:root {
  font-family: Montserrat, Arial, sans-serif;
  color: #26383f;
  background: #f3f5f7;
  font-size: 14px;
  --teal: #0f777c;
  --border: #dde4e7;
  --muted: #617078;
  --soft: #e7f3f2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
[contenteditable] {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #c98320;
}
a {
  color: var(--teal);
  text-underline-offset: 3px;
}
button {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  color: #26383f;
  padding: 10px 14px;
  font-weight: 600;
}
button:hover {
  background: #edf3f4;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.primary:hover {
  background: #096166;
}
.danger {
  color: #b23037;
}
.quiet {
  border-color: transparent;
  background: transparent;
}
.small {
  padding: 6px 10px;
  font-size: 12px;
}
.muted {
  color: var(--muted);
  line-height: 1.6;
}
.tiny {
  font-size: 12px;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin: 0 0 10px;
}
h2 {
  font-size: 19px;
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
  margin: 0 0 10px;
}
p {
  line-height: 1.65;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}
.topbar {
  height: 72px;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 212px;
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  color: #234148;
  letter-spacing: -0.5px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: white;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-top: 3px;
}
.search {
  flex: 1;
  max-width: 670px;
  position: relative;
}
.search input {
  padding-left: 38px;
  background: #f2f5f6;
  border: 1px solid transparent;
}
.search span {
  position: absolute;
  left: 14px;
  top: 12px;
}
.top-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dfeeee;
  display: inline-grid;
  place-items: center;
  color: #096166;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}
aside.sidebar {
  padding: 28px 16px;
  background: #fff;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: #617078;
  padding: 0 14px;
  margin: 4px 0 14px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav button {
  text-align: left;
  border: 0;
  background: transparent;
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  color: #54636b;
  font-size: 13px;
}
.nav button.active {
  background: var(--soft);
  color: #075f65;
}
.nav .icon {
  width: 19px;
  text-align: center;
  font-size: 17px;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.main {
  padding: 32px 36px 60px;
  max-width: 1500px;
  width: 100%;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 26px;
}
.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--teal);
  margin-bottom: 9px;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 22px;
}
.card.flush {
  padding: 0;
  overflow: hidden;
}
.card-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-head h2 {
  margin: 0;
  font-size: 16px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 19px;
}
.stat strong {
  display: block;
  font-size: 27px;
  margin: 10px 0 6px;
  font-weight: 600;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.stat .eyebrow {
  font-size: 10px;
}
.feed-person {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 18px;
}
.feed-person strong {
  font-size: 13px;
}
.feed-person small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.feed h3 {
  font-size: 17px;
}
.feed .body {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.8;
}
.feed-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #edf0f2;
  margin-top: 18px;
  padding-top: 14px;
}
.feed-footer button {
  font-size: 12px;
}
.pill {
  display: inline-block;
  padding: 5px 9px;
  background: #edf1f4;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  color: #54626b;
  white-space: nowrap;
}
.pill.teal,
.pill.yes,
.pill.approved,
.pill.done {
  background: #e2f2ec;
  color: #226445;
}
.pill.pending,
.pill.maybe,
.pill.deferred,
.pill.doing {
  background: #fff3d8;
  color: #855b13;
}
.pill.no,
.pill.rejected {
  background: #fbe9e9;
  color: #a02f3c;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
  min-width: 0;
}
.list-row {
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #edf0f2;
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row h3 {
  margin: 0 0 5px;
}
.date-box {
  background: #edf5f5;
  border-radius: 6px;
  text-align: center;
  padding: 9px 12px;
  min-width: 55px;
  color: var(--teal);
}
.date-box b {
  display: block;
  font-size: 22px;
}
.date-box span {
  font-size: 9px;
  text-transform: uppercase;
}
.empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--muted);
}
.empty .empty-icon {
  font-size: 26px;
  color: #729597;
  margin-bottom: 14px;
}
.empty h3 {
  color: #34484e;
  font-size: 16px;
}
.empty p {
  font-size: 12px;
  max-width: 420px;
  margin: 8px auto 20px;
}
.composer {
  display: flex;
  gap: 12px;
  align-items: center;
}
.composer button {
  text-align: left;
  flex: 1;
  border-radius: 22px;
  background: #f4f6f7;
  color: var(--muted);
  font-weight: 400;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.lane {
  background: #eaf0f2;
  padding: 14px;
  border-radius: 9px;
  min-height: 330px;
}
.lane h2 {
  font-size: 12px;
  padding: 4px 4px 14px;
  display: flex;
  justify-content: space-between;
}
.task-card {
  margin-bottom: 12px;
  padding: 18px;
}
.task-card h3 {
  line-height: 1.5;
}
.task-card select {
  font-size: 11px;
  padding: 6px;
  margin-top: 14px;
}
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filters select {
  width: auto;
  min-width: 160px;
}
.detail-title {
  margin-bottom: 24px;
}
.detail-title h1 {
  margin: 12px 0;
}
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.body {
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.body > *:first-child {
  margin-top: 0;
}
.body > *:last-child {
  margin-bottom: 0;
}
.body table {
  border-collapse: collapse;
}
.body th,
.body td {
  border: 1px solid var(--border);
  padding: 8px;
}
.body a {
  overflow-wrap: anywhere;
}
.metadata {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  font-size: 12px;
  line-height: 1.6;
}
.metadata dt {
  color: var(--muted);
}
.metadata dd {
  margin: 0;
}
.zone-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.zone {
  background: #f3f7f7;
  border: 1px solid #e2ebeb;
  border-radius: 6px;
  padding: 12px;
  flex: 1;
  min-width: 130px;
}
.zone strong {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}
.zone small {
  font-size: 10px;
  color: var(--muted);
}
.comment {
  border-bottom: 1px solid #edf0f2;
  padding: 18px 0;
}
.comment .body {
  padding-left: 47px;
  font-size: 13px;
}
.field {
  display: block;
  margin-bottom: 17px;
  font-size: 12px;
  font-weight: 600;
}
.field > span {
  display: block;
  margin-bottom: 7px;
}
.field small {
  display: block;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 6px;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cdd7dc;
  border-radius: 6px;
  padding: 11px 12px;
  background: white;
  color: #26383f;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--teal);
}
input[type="file"] {
  font-size: 12px;
}
.check {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  margin: 10px 0;
  line-height: 1.5;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.full {
  grid-column: 1/-1;
}
.editor {
  border: 1px solid #cdd7dc;
  border-radius: 6px;
  overflow: hidden;
  background: white;
}
.toolbar {
  display: flex;
  gap: 2px;
  padding: 6px;
  border-bottom: 1px solid var(--border);
  background: #f6f8f9;
  flex-wrap: wrap;
}
.toolbar button {
  padding: 5px 9px;
  border: 0;
  background: transparent;
  font-size: 12px;
}
.rich {
  min-height: 120px;
  padding: 12px;
  font-weight: 400;
  line-height: 1.7;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.rich:focus {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}
.rich:empty:before {
  content: attr(data-placeholder);
  color: #78868c;
}
.editor-compact .rich {
  min-height: 85px;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  max-width: 750px;
  width: calc(100% - 32px);
  max-height: 90vh;
  box-shadow: 0 20px 80px #142b3e33;
}
dialog::backdrop {
  background: #182f4166;
}
dialog header {
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
dialog header h2 {
  margin: 0;
}
dialog form,
.dialog-body {
  padding: 24px;
}
dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.error {
  color: #a52e39;
  background: #fcedee;
  border-radius: 5px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.6;
}
.notice {
  background: #eaf4f3;
  border: 1px solid #cbe4e2;
  padding: 16px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.7;
}
.warning {
  background: #fff7e6;
  border-color: #f0dfb5;
  color: #745415;
}
.login-card {
  max-width: 460px;
  margin: 12vh auto 40px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
}
.login-card .brand-mark {
  margin-bottom: 24px;
}
.login-card h1 {
  font-size: 27px;
}
.login-card p {
  font-size: 13px;
}
.login-card button.primary {
  width: 100%;
}
.login-foot {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #243e43;
  color: white;
  z-index: 100;
  padding: 14px 22px;
  border-radius: 8px;
  max-width: 90vw;
  box-shadow: 0 4px 20px #0002;
  font-size: 13px;
}
#toast:empty {
  display: none;
}
.skip {
  position: fixed;
  left: 10px;
  top: -60px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.guide details {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 20px;
}
.guide summary {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.guide details p,
.guide details li {
  font-size: 13px;
  line-height: 1.9;
}
.guide details li {
  margin: 8px 0;
}
.guide details[open] summary {
  margin-bottom: 14px;
}
.table-wrap {
  overflow: auto;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
table.data th {
  text-align: left;
  background: #f6f8f9;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
table.data td,
table.data th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.link-button {
  border: 0;
  padding: 0;
  background: none !important;
  color: var(--teal);
  text-align: left;
  font-weight: 600;
}
.file-icon {
  font-size: 20px;
  color: #778e9b;
  background: #f0f4f6;
  padding: 12px;
  border-radius: 7px;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.tabs button.active {
  background: var(--soft);
  border-color: #b7d9d8;
  color: var(--teal);
}
.member-picker {
  max-height: 170px;
  overflow: auto;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 6px;
}
.badge-count {
  background: #b43841;
  color: white;
  border-radius: 12px;
  padding: 2px 6px;
  font-size: 10px;
}
.mobile-nav {
  display: none;
}
.mt {
  margin-top: 20px;
}
.mb {
  margin-bottom: 20px;
}
.preline {
  white-space: pre-line;
}
.unread {
  border-left: 3px solid var(--teal);
}
.calendar-month {
  font-size: 15px;
  margin: 25px 0 12px;
}
.breadcrumbs {
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.print-only {
  display: none;
}
@media (min-width: 1500px) {
  .main {
    padding-left: 48px;
    padding-right: 48px;
  }
}
@media (max-width: 1100px) {
  .columns {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .main {
    padding: 26px 22px;
  }
  .layout {
    grid-template-columns: 200px 1fr;
  }
  .brand {
    min-width: 174px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .topbar {
    gap: 20px;
    padding: 0 20px;
  }
}
@media (max-width: 850px) {
  .columns {
    grid-template-columns: 1fr;
  }
  .columns > .stack:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .layout {
    grid-template-columns: 175px 1fr;
  }
  .sidebar .nav button {
    font-size: 11px;
    padding: 10px;
  }
  .sidebar {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .kanban {
    grid-template-columns: 1fr;
  }
  .lane {
    min-height: 100px;
  }
  .topbar .brand {
    min-width: unset;
  }
  .topbar .brand small {
    display: none;
  }
  .topbar {
    gap: 16px;
  }
  .topbar .brand {
    font-size: 15px;
  }
  .main {
    padding: 24px 18px;
  }
  .top-actions .profile-label {
    display: none;
  }
}
@media (max-width: 600px) {
  .topbar {
    height: auto;
    min-height: 68px;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .search {
    order: 3;
    max-width: none;
    flex-basis: 100%;
  }
  .layout {
    display: block;
  }
  .sidebar {
    display: none !important;
  }
  .mobile-nav {
    display: block;
    width: 100%;
    margin-bottom: 22px;
  }
  .main {
    padding: 20px 16px;
  }
  .columns > .stack:last-child {
    display: flex;
  }
  .page-head {
    align-items: flex-start;
    gap: 10px;
  }
  .page-head h1 {
    font-size: 23px;
  }
  .page-head button {
    font-size: 11px;
    padding: 10px;
  }
  .grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 14px;
  }
  .card {
    padding: 18px;
  }
  .login-card {
    margin: 7vh 16px;
    padding: 28px;
  }
  .metadata {
    grid-template-columns: 100px 1fr;
  }
  .zone {
    min-width: 90px;
    padding: 9px;
  }
  .zone strong {
    font-size: 12px;
  }
  .feed-footer {
    gap: 5px;
    flex-wrap: wrap;
  }
  .top-actions {
    gap: 4px;
  }
  dialog form,
  .dialog-body {
    padding: 18px;
  }
  .full {
    grid-column: auto;
  }
}
@media print {
  .topbar,
  .sidebar,
  .mobile-nav,
  .detail-actions,
  .filters,
  .tabs,
  button,
  .composer,
  #toast,
  .skip,
  .no-print {
    display: none !important;
  }
  .layout {
    display: block;
  }
  .main {
    padding: 0;
    max-width: none;
  }
  .card {
    break-inside: avoid;
    box-shadow: none;
  }
  .columns {
    display: block;
  }
  .columns > .stack {
    margin-bottom: 20px;
  }
  .print-only {
    display: block;
  }
  body {
    background: white;
    font-size: 11px;
  }
  .body {
    font-size: 11px;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  .page-head {
    margin-top: 20px;
  }
}
