:root {
  --bg: #edf3f9;
  --bg-strong: #dbe6f2;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-warm: rgba(255, 251, 245, 0.92);
  --surface-cool: rgba(246, 250, 254, 0.9);
  --surface-blue: rgba(243, 248, 253, 0.92);
  --surface-tint: rgba(248, 251, 255, 0.78);
  --sidebar: #10233e;
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --text: #122033;
  --muted: #66768a;
  --line: rgba(32, 57, 87, 0.11);
  --accent: #0e5ea8;
  --accent-soft: rgba(14, 94, 168, 0.12);
  --accent-strong: #0a4c88;
  --priority-accent: rgba(214, 129, 54, 0.18);
  --alert-accent: rgba(194, 64, 64, 0.16);
  --program-accent: rgba(23, 94, 166, 0.12);
  --document-accent: rgba(75, 116, 164, 0.12);
  --routine-accent: rgba(11, 124, 113, 0.14);
  --supplement-accent: rgba(80, 108, 141, 0.12);
  --warn: #d38136;
  --danger: #c24040;
  --success: #24825d;
  --shadow: 0 24px 60px rgba(18, 36, 58, 0.12);
  --card-shadow: 0 14px 28px rgba(29, 55, 89, 0.08), 0 2px 10px rgba(29, 55, 89, 0.05);
  --card-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  --radius: 24px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  background:
    radial-gradient(circle at 18% 12%, rgba(248, 240, 226, 0.28), transparent 21rem),
    radial-gradient(circle at top left, rgba(159, 190, 224, 0.22), transparent 22rem),
    radial-gradient(circle at 76% 18%, rgba(188, 210, 234, 0.22), transparent 24rem),
    radial-gradient(circle at bottom right, rgba(84, 131, 180, 0.12), transparent 26rem),
    linear-gradient(180deg, #f7f9fc 0%, #eaf0f7 54%, #e5edf6 100%);
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 22px;
  color: #f4ecdf;
  background:
    radial-gradient(circle at top right, rgba(100, 155, 210, 0.18), transparent 14rem),
    radial-gradient(circle at 18% 18%, rgba(45, 109, 161, 0.14), transparent 18rem),
    linear-gradient(180deg, #0f213a 0%, #122746 54%, #12233d 100%);
  border-right: 1px solid var(--sidebar-border);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03), 18px 0 38px rgba(10, 18, 31, 0.12);
  overflow-y: auto;
  overflow-x: hidden;
}

.brand h1,
.hero h2,
.panel-title,
.card-title,
.dialog-header h3,
.section-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 6px 0 2px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 20px rgba(4, 10, 18, 0.22))
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.08));
  flex: 0 0 auto;
}

.brand-row h1 {
  line-height: 1;
  font-size: 2.65rem;
  letter-spacing: 0.015em;
  color: #fff2df;
  text-shadow: 0 8px 18px rgba(2, 8, 16, 0.14);
}

.brand-row .status-badge {
  flex: 0 0 auto;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.01em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  opacity: 0.72;
}

.brand p,
.muted {
  color: rgba(244, 236, 223, 0.72);
  line-height: 1.35;
}

.brand p {
  margin: 6px 0 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  color: rgba(244, 236, 223, 0.8);
  text-shadow: 0 3px 10px rgba(2, 8, 16, 0.08);
}

.brand p span {
  display: block;
}

.panel,
.hero-card,
.card,
.module-banner {
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.panel {
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.data-panel {
  padding: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: none;
  opacity: 0.76;
  overflow: hidden;
}

.data-panel-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  color: rgba(244, 236, 223, 0.68);
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  list-style: none;
}

.data-panel-summary::-webkit-details-marker {
  display: none;
}

.data-panel-caret {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(244, 236, 223, 0.62);
  font-size: 0.72rem;
}

.data-panel[open] .data-panel-caret {
  transform: rotate(45deg);
}

.data-panel-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 0 8px 8px;
}

.data-panel .action {
  width: 100%;
  margin-top: 0;
  min-height: 28px;
  padding: 5px 6px;
  border-radius: 8px;
  font-size: 0.56rem;
  font-weight: 400;
  line-height: 1.1;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(244, 236, 223, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.data-panel .action:not(:first-of-type) {
  background: rgba(255, 255, 255, 0.035);
  color: rgba(244, 236, 223, 0.58);
}

.data-panel .action:first-of-type {
  background: rgba(15, 118, 110, 0.13);
  color: rgba(220, 255, 248, 0.86);
  border-color: rgba(173, 235, 230, 0.11);
}

.documents-module {
  align-content: start;
  grid-auto-rows: max-content;
}

.documents-topbar,
.documents-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.documents-toolbar {
  align-items: flex-end;
}

.documents-topbar {
  align-items: center;
  justify-content: space-between;
}

.documents-topbar,
.documents-toolbar,
.documents-table-wrap {
  align-self: start;
}

.documents-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.documents-tab {
  border: 1px solid rgba(56, 43, 32, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 10px;
}

.documents-tab.active {
  background: var(--accent);
  color: #fff;
}

.documents-search {
  flex: 1 1 360px;
  min-width: 260px;
}

.documents-search input,
.documents-filter select,
.documents-tag-filter {
  border: 1px solid rgba(56, 43, 32, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  min-height: 34px;
  padding: 7px 9px;
}

.documents-search input {
  width: 100%;
}

.documents-filter {
  display: grid;
  gap: 3px;
}

.documents-filter span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.documents-tag-filter {
  width: 130px;
}

.documents-toolbar > .inline-button {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1;
}

.documents-primary-action {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
}

.documents-table-wrap {
  overflow-x: auto;
}

.documents-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.documents-certificates-table {
  min-width: 820px;
}

.documents-table th,
.documents-table td {
  border-bottom: 1px solid rgba(56, 43, 32, 0.09);
  padding: 9px 8px;
  text-align: left;
  vertical-align: top;
}

.documents-table th {
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.documents-table td {
  font-size: 0.78rem;
}

.documents-table td strong,
.documents-table td > span:not(.documents-tag):not(.documents-warning) {
  display: block;
}

.documents-table td > span:not(.documents-tag):not(.documents-warning) {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 2px;
}

.documents-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 260px;
  white-space: nowrap;
}

.documents-actions .inline-button {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 0.74rem;
  line-height: 1;
}

.documents-tag,
.documents-warning {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  margin: 0;
  padding: 3px 6px;
}

.documents-tag {
  background: rgba(56, 43, 32, 0.08);
  color: var(--muted);
}

.documents-warning {
  background: rgba(154, 72, 60, 0.1);
  color: #9a483c;
}

.document-picker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.document-picker-button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.document-picker-hint {
  min-width: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

.documents-expired {
  background: rgba(154, 72, 60, 0.07);
}

.documents-expiring {
  background: rgba(156, 126, 51, 0.09);
}

.documents-empty {
  padding: 16px;
}

.panel-title,
.hero-label {
  margin-bottom: 12px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #2b3f57;
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.today-title {
  margin-bottom: 8px;
}

.status-badge,
.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  border: 1px solid rgba(175, 190, 208, 0.22);
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.9), rgba(247, 250, 254, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.status-badge.online {
  background: linear-gradient(180deg, rgba(47, 121, 132, 0.42), rgba(35, 91, 101, 0.32));
  border-color: rgba(110, 214, 180, 0.26);
  color: #c9ffd8;
  box-shadow:
    inset 0 1px 0 rgba(201, 255, 216, 0.16),
    0 0 0 1px rgba(116, 214, 197, 0.12),
    0 8px 18px rgba(8, 28, 36, 0.16);
}

.status-badge.offline {
  background: rgba(230, 172, 78, 0.12);
  border-color: rgba(255, 209, 132, 0.16);
  color: #ffd79c;
}

.stack {
  display: grid;
  gap: 12px;
}

.stack.compact {
  gap: 7px;
}

.mini-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.mini-stat strong {
  font-size: 0.98rem;
}

.sidebar-muted {
  display: none;
}

.nav-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 11px;
  margin-top: 18px;
}

.nav-section-heading {
  margin-bottom: 8px;
}

.nav-button,
.action,
.icon-button,
.inline-button {
  border: 0;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease, background 140ms ease, border-color 140ms ease;
}

.nav-button:hover,
.action:hover,
.icon-button:hover,
.inline-button:hover {
  transform: translateY(-1px);
}

.action:disabled,
.action[disabled],
.inline-button:disabled,
.inline-button[disabled] {
  opacity: 1;
  cursor: not-allowed;
  transform: none;
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  color: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028));
  border: 1px solid rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 6px 16px rgba(8, 12, 11, 0.11);
  text-align: left;
}

.nav-button.active {
  background:
    linear-gradient(180deg, rgba(32, 110, 126, 0.34), rgba(17, 78, 96, 0.24));
  border-color: rgba(173, 235, 230, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(201, 245, 239, 0.1),
    inset 0 0 18px rgba(143, 226, 227, 0.06),
    0 8px 20px rgba(7, 28, 26, 0.18);
}

.nav-button:hover {
  border-color: rgba(173, 235, 230, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.045));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 18px rgba(8, 12, 11, 0.11);
}

.nav-section {
  display: grid;
  gap: 5px;
}

.nav-section-top {
  margin-bottom: 2px;
}

.nav-section-footer {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-section-collapsible {
  min-width: 0;
}

.nav-section-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 5px;
  cursor: pointer;
  list-style: none;
}

.nav-section-summary::-webkit-details-marker {
  display: none;
}

.nav-section-summary .nav-section-title {
  padding: 0;
}

.nav-section-caret {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(244, 236, 223, 0.5);
  font-size: 0.68rem;
  line-height: 1;
  transition: transform 140ms ease, background 140ms ease;
}

.nav-section-collapsible[open] .nav-section-caret {
  transform: rotate(45deg);
  background: rgba(15, 118, 110, 0.12);
}

.nav-section-title {
  padding: 0 5px;
  color: rgba(244, 236, 223, 0.42);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-section-items {
  display: grid;
  gap: 5px;
}

.nav-section-collapsible .nav-section-items {
  padding-left: 0;
  padding-top: 1px;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(221, 244, 239, 0.76);
  font-size: 0.68rem;
  line-height: 1;
  flex: 0 0 auto;
}

.nav-button.active .nav-icon {
  background: rgba(201, 245, 239, 0.16);
  color: #dcfff8;
}

.nav-button-disabled {
  opacity: 0.42;
  cursor: default;
  box-shadow: none;
}

.nav-button-disabled:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.035);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028));
}

.nav-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.87rem;
  letter-spacing: 0.01em;
}

.sidebar-ops-card {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.sidebar-ops-title {
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #f5f8fc;
}

.sidebar-ops-copy {
  margin-top: 8px;
  color: rgba(244, 248, 255, 0.66);
  font-size: 0.72rem;
  line-height: 1.6;
}

.action,
.icon-button,
.inline-button {
  border-radius: 14px;
}

.action {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--accent);
  color: white;
}

.main .action,
.card .action,
.module-toolbar .action {
  border: 1px solid transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 22px rgba(18, 58, 103, 0.12);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.main .action:not(.secondary):not(.ghost),
.card .action:not(.secondary):not(.ghost),
.module-toolbar .action:not(.secondary):not(.ghost) {
  background: linear-gradient(180deg, #356bb0 0%, #2f5fa2 100%);
  color: #f7fbff;
  border-color: rgba(35, 84, 144, 0.88);
  text-shadow: 0 1px 0 rgba(18, 37, 63, 0.16);
}

.main .action:not(.secondary):not(.ghost):hover,
.card .action:not(.secondary):not(.ghost):hover,
.module-toolbar .action:not(.secondary):not(.ghost):hover {
  background: linear-gradient(180deg, #3a74bc 0%, #315f9f 100%);
  border-color: rgba(33, 79, 137, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 28px rgba(26, 71, 123, 0.16);
}

.action.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #f4ecdf;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.main .action.secondary,
.card .action.secondary,
.module-toolbar .action.secondary {
  background: linear-gradient(180deg, rgba(245, 249, 254, 0.98), rgba(232, 240, 249, 0.96));
  color: #28486a;
  border: 1px solid rgba(128, 159, 195, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(204, 220, 238, 0.38),
    0 10px 22px rgba(44, 79, 120, 0.08);
}

.main .action.secondary:hover,
.card .action.secondary:hover,
.module-toolbar .action.secondary:hover {
  background: linear-gradient(180deg, rgba(238, 245, 253, 1), rgba(224, 235, 247, 1));
  color: #1f4268;
  border-color: rgba(87, 131, 182, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(197, 216, 236, 0.44),
    0 14px 26px rgba(44, 79, 120, 0.1);
}

.main .action.secondary:disabled,
.main .action.secondary[disabled],
.card .action.secondary:disabled,
.card .action.secondary[disabled],
.module-toolbar .action.secondary:disabled,
.module-toolbar .action.secondary[disabled] {
  background: linear-gradient(180deg, rgba(247, 248, 250, 0.98), rgba(239, 242, 246, 0.98));
  color: #99a6b5;
  border-color: rgba(178, 188, 200, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(220, 225, 232, 0.45);
  opacity: 1;
  cursor: not-allowed;
  transform: none;
}

.action.ghost,
.icon-button,
.inline-button {
  background: transparent;
  color: inherit;
  border: 1px solid var(--line);
}

.action.ghost {
  color: var(--text);
}

.inline-button {
  padding: 8px 10px;
}

.main {
  height: 100vh;
  padding: 10px 18px 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(98, 128, 162, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 128, 162, 0.024) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.26;
  pointer-events: none;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0;
  flex-shrink: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(143, 158, 178, 0.16);
}

.hero-copy {
  min-width: 0;
}

.hero-heading-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.hero h2 {
  font-size: 1.18rem;
  line-height: 1;
}

.hero p {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.22;
  font-size: 0.79rem;
}

.card,
.module-banner {
  background: var(--surface);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(247, 250, 254, 0.72));
  border: 1px solid rgba(188, 203, 220, 0.52);
  box-shadow: var(--card-shadow), var(--card-highlight);
  backdrop-filter: blur(10px);
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(86, 70, 53, 0.1);
  background: rgba(255, 251, 245, 0.72);
}

.hero-meta-plain {
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.hero-save-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
  color: #7c8a9b;
}

.hero-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 8px;
  margin-right: 6px;
  border-radius: 999px 0 0 999px;
  border-right: 1px solid rgba(86, 70, 53, 0.12);
  background: rgba(15, 118, 110, 0.08);
}

.hero-score .hero-meta-label {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero-score .hero-meta-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.hero-meta-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b98a7;
}

.hero-meta-value {
  font-size: 0.72rem;
  color: #42556d;
}

.flash {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-strong);
  border: 1px solid rgba(15, 118, 110, 0.16);
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-line;
}

.flash-sidebar {
  margin-top: 14px;
  box-shadow: 0 12px 24px rgba(12, 34, 31, 0.12);
}

.module-root,
.module-grid,
.stats-grid,
.split-grid,
.list-grid {
  display: grid;
  gap: 12px;
}

.module-root {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.module-root::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.dashboard-list::-webkit-scrollbar {
  width: 8px;
}

.module-root::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb,
.dashboard-list::-webkit-scrollbar-thumb {
  background: rgba(108, 120, 136, 0.22);
  border-radius: 999px;
}

.module-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: 1 / -1; }

.module-banner,
.card {
  padding: 20px;
  border-radius: var(--radius);
}

.module-banner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.module-banner p,
.support-copy,
.empty-state,
.card-copy,
.small {
  color: var(--muted);
  line-height: 1.6;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 2fr);
}

.dashboard-grid-block {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.dashboard-column {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.dashboard-card {
  padding: 10px 12px 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 251, 245, 0.78);
  box-shadow: var(--shadow);
  position: relative;
}

.dashboard-card::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 4px;
  border-radius: 999px;
  background: rgba(56, 43, 32, 0.08);
}

.dashboard-card-priority::before {
  background: var(--priority-accent);
}

.dashboard-card-alerts::before {
  background: var(--alert-accent);
}

.dashboard-card-program::before {
  background: var(--program-accent);
}

.dashboard-card-documents::before {
  background: var(--document-accent);
}

.dashboard-card-routine::before {
  background: var(--routine-accent);
}

.dashboard-card-supplements::before {
  background: var(--supplement-accent);
}

.dashboard-card .card-header {
  margin-bottom: 8px;
}

.dashboard-card-tall {
  min-height: 454px;
}

.dashboard-card-equal {
  height: 222px;
  min-height: 222px;
  overflow: hidden;
}

.dashboard-card-equal .card-header {
  margin-bottom: 6px;
}

.dashboard-card-program .dashboard-program-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.dashboard-card-program .dashboard-section-title {
  white-space: nowrap;
}

.dashboard-card-program .activity-filter-row.compact {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.dashboard-card-equal .dashboard-list-fixed {
  height: 170px;
  max-height: 170px;
}

.dashboard-card-equal .dashboard-list.tight {
  height: 170px;
  max-height: 170px;
}

.dashboard-card-priority,
.dashboard-card-program {
  display: flex;
  flex-direction: column;
}

.dashboard-card-priority .dashboard-list,
.dashboard-card-program .dashboard-list {
  flex: 1;
  min-height: 0;
}

.dashboard-card-priority-tall {
  grid-row: span 2;
  height: 454px;
  min-height: 454px;
}

.dashboard-card-priority-tall .dashboard-list-fixed {
  height: 402px;
  max-height: 402px;
}

.dashboard-card-tall {
  max-height: 454px;
  overflow: hidden;
}

.dashboard-card-tall .dashboard-list-tall {
  max-height: 402px;
  height: 402px;
}

.dashboard-list-fixed {
  overscroll-behavior: contain;
}

.dashboard-list-fixed .dashboard-item {
  min-height: 0;
}

.dashboard-card-equal .empty-state {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.72rem;
  line-height: 1.35;
}

.dashboard-system-grid {
  grid-template-columns: minmax(260px, 0.75fr) minmax(360px, 1.25fr);
}

.data-management-grid {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(260px, 1.2fr) minmax(360px, 2fr);
  gap: 12px;
  align-items: start;
}

.dashboard-system-card {
  min-height: 0;
}

.system-status-list {
  display: grid;
  gap: 8px;
}

.system-status-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.system-status-row strong {
  max-width: 58%;
  color: var(--text);
  text-align: right;
  overflow-wrap: anywhere;
}

.activity-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.activity-log-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}

.activity-log-entry {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
}

.activity-log-entry.failure {
  border-color: rgba(181, 66, 66, 0.3);
  background: rgba(181, 66, 66, 0.06);
}

.data-management-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.data-management-actions .action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  opacity: 1;
  font-size: 0.78rem;
  line-height: 1.2;
}

.data-management-actions .action:first-child {
  color: #fffaf1;
  background: var(--accent);
  border-color: var(--accent);
}

.data-management-actions .action.secondary,
.data-management-actions .action.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--line);
}

.data-management-actions .action:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 118, 110, 0.26);
}

.data-management-actions .action:first-child:hover {
  color: #fffaf1;
  background: var(--accent-strong);
}

.data-management-activity .activity-log-list {
  max-height: 520px;
}

.dashboard-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.dashboard-list > * {
  flex: 0 0 auto;
}

.dashboard-list.tight {
  max-height: 210px;
}

.dashboard-list-tall {
  max-height: 356px;
}

.dashboard-item {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 252, 248, 0.92);
  border: 1px solid var(--line);
}

.dashboard-item.dashboard-item-compact {
  padding: 5px 8px;
  border-radius: 8px;
}

.dashboard-alert-item {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.dashboard-priority-item {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.dashboard-priority-item:hover {
  border-color: rgba(46, 125, 112, 0.24);
  transform: translateY(-1px);
}

.dashboard-alert-item .item-title {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-alert-item .item-title span:first-child,
.dashboard-alert-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-alert-meta {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.dashboard-alert-countdown {
  flex: 0 0 auto;
  max-width: 74px;
  padding: 3px 7px;
  font-size: 0.66rem;
  line-height: 1;
  white-space: nowrap;
}

.dashboard-alert-item:hover {
  border-color: rgba(46, 125, 112, 0.24);
  transform: translateY(-1px);
}

.dashboard-item .item-title {
  font-size: 0.9rem;
}

.dashboard-item-compact .row-between {
  align-items: center;
  gap: 8px;
}

.dashboard-item-tags {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex: 0 0 auto;
}

.dashboard-schedule-tag {
  color: #2f6fb3;
  background: rgba(47, 111, 179, 0.08);
  border-color: rgba(47, 111, 179, 0.16);
}

.dashboard-agenda-filter {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px;
  border-radius: 8px;
  border: 1px solid rgba(56, 43, 32, 0.08);
  background: rgba(255, 252, 248, 0.56);
}

.agenda-filter-button {
  min-height: 22px;
  padding: 3px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.66rem;
  white-space: nowrap;
}

.dashboard-card-program .agenda-filter-button {
  min-height: 20px;
  padding: 2px 6px;
  font-size: 0.62rem;
}

.agenda-filter-button.active {
  color: var(--text);
  background: rgba(56, 43, 32, 0.08);
}

.agenda-all-day {
  display: grid;
  gap: 4px;
  padding: 3px 0 5px;
}

.agenda-section-label {
  color: var(--muted);
  font-size: 0.64rem;
  text-transform: uppercase;
}

.agenda-item {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.agenda-item.missed {
  border-color: rgba(181, 66, 66, 0.18);
}

.agenda-time {
  color: #2f6fb3;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.agenda-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.agenda-source-badge {
  padding: 3px 6px;
  font-size: 0.62rem;
}

.agenda-source-badge.task {
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.16);
}

.agenda-source-badge.meeting {
  color: #2f6fb3;
  background: rgba(47, 111, 179, 0.08);
  border-color: rgba(47, 111, 179, 0.16);
}

.agenda-source-badge.google {
  color: #2f6fb3;
  background: rgba(47, 111, 179, 0.08);
  border-color: rgba(47, 111, 179, 0.16);
}

.agenda-source-badge.apple {
  color: #5a5f66;
  background: rgba(56, 43, 32, 0.06);
  border-color: rgba(56, 43, 32, 0.12);
}

.agenda-source-badge.converted {
  color: var(--success);
  background: rgba(42, 139, 87, 0.1);
  border-color: rgba(42, 139, 87, 0.16);
}

.agenda-sync-note {
  padding: 4px 7px;
  color: var(--muted);
  font-size: 0.68rem;
  border-radius: 8px;
  background: rgba(255, 252, 248, 0.72);
  border: 1px dashed rgba(56, 43, 32, 0.12);
}

.agenda-state {
  display: grid;
  gap: 4px;
}

.agenda-state span {
  font-size: 0.68rem;
}

.dashboard-item-compact .item-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
}

.dashboard-card-priority .dashboard-item-compact,
.dashboard-card-program .dashboard-item-compact {
  padding: 5px 8px;
}

.dashboard-item-compact .item-meta,
.dashboard-item-compact .small {
  margin: 2px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.73rem;
  line-height: 1.28;
}

.supplement-group {
  gap: 6px;
  padding: 6px 2px 4px;
  background: transparent;
  border: 0;
}

.supplement-group-header {
  margin-bottom: 4px;
}

.supplement-time {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #694d96;
  font-size: 0.82rem;
}

.supplement-group-list {
  display: grid;
  gap: 3px;
}

.supplement-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
  font-size: 0.78rem;
}

.supplement-dose {
  font-size: 0.68rem;
  white-space: nowrap;
  color: var(--muted);
}

.supplement-entry {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.supplement-bullet {
  flex: 0 0 auto;
  color: #694d96;
  font-size: 0.78rem;
}

.dashboard-card-supplements .dashboard-list,
.dashboard-card-supplements .dashboard-item,
.dashboard-card-supplements .item-meta,
.dashboard-card-supplements .item-title {
  font-size: 0.78rem;
}

.dashboard-card-supplements .dashboard-section-title {
  font-size: 0.98rem;
}

.health-page {
  display: grid;
  gap: 10px;
}

.health-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 251, 245, 0.78);
  box-shadow: 0 14px 34px rgba(68, 50, 31, 0.08);
}

.health-topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.health-primary-action {
  width: auto;
  min-height: 34px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.health-tab-shell,
.health-tab-panels,
.health-tab-panel {
  display: grid;
  gap: 10px;
}

.health-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 3px;
  height: 38px;
  padding: 3px;
  border-radius: 14px;
  border: 1px solid rgba(56, 43, 32, 0.1);
  background: rgba(255, 251, 245, 0.46);
  width: fit-content;
  overflow: hidden;
}

.health-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-width: 96px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.74rem;
  line-height: 1;
  white-space: nowrap;
}

.health-tab.active {
  color: var(--accent-strong);
  border-color: rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.1);
}

.health-tab-panel {
  display: none;
}

.health-tab-panel.active {
  display: grid;
}

.health-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.health-summary article {
  display: grid;
  gap: 3px;
  align-content: center;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 13px;
  border: 1px solid rgba(56, 43, 32, 0.1);
  background: rgba(255, 251, 245, 0.62);
}

.health-summary span,
.health-list-header p,
.health-supplement-meta,
.health-supplement-secondary,
.health-supplement-row p {
  color: var(--muted);
}

.health-summary span {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.health-summary strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  line-height: 1;
}

.health-panel {
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 251, 245, 0.7);
  box-shadow: 0 16px 36px rgba(68, 50, 31, 0.08);
}

.health-list-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 9px;
}

.health-list-header h4,
.health-supplement-title-row h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.health-list-header h4 {
  font-size: 1rem;
}

.health-list-header p {
  margin: 2px 0 0;
  font-size: 0.76rem;
}

.health-supplement-list {
  display: grid;
  gap: 7px;
}

.health-supplement-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(56, 43, 32, 0.1);
  background: rgba(255, 252, 248, 0.82);
}

.health-supplement-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.health-supplement-title-row,
.health-supplement-meta,
.health-supplement-secondary,
.health-supplement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.health-supplement-title-row h4 {
  min-width: 0;
  font-size: 0.98rem;
  line-height: 1.05;
}

.health-supplement-meta,
.health-supplement-secondary {
  font-size: 0.74rem;
  line-height: 1.25;
}

.health-supplement-meta span:not(:last-child)::after,
.health-supplement-secondary span:not(:last-child)::after {
  content: "·";
  margin-left: 7px;
  color: rgba(107, 100, 92, 0.56);
}

.health-status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  border: 1px solid rgba(56, 43, 32, 0.1);
}

.health-status.active {
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.1);
}

.health-status.inactive {
  color: var(--muted);
  background: rgba(56, 43, 32, 0.05);
}

.health-supplement-row p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
}

.health-supplement-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.health-row-action {
  min-height: 29px;
  padding: 6px 9px;
  border-radius: 9px;
  font-size: 0.72rem;
}

.health-delete-action {
  color: var(--danger);
  border-color: rgba(181, 66, 66, 0.16);
  background: rgba(181, 66, 66, 0.04);
}

.health-empty {
  padding: 14px;
}

.health-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.health-design-card {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 13px;
  border-radius: 14px;
  border: 1px solid rgba(56, 43, 32, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.86), rgba(250, 244, 235, 0.72));
}

.health-card-kicker {
  color: var(--accent-strong);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.health-design-card h5 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
}

.health-design-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.health-capability-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 9px;
}

.health-capability-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent-strong);
  font-size: 0.72rem;
}

.obligations-page {
  align-items: start;
}

.obligations-header,
.obligations-empty {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.86), rgba(248, 241, 232, 0.76)),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 16rem);
  box-shadow: var(--shadow);
}

.obligations-header {
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.72fr);
  align-items: end;
}

.obligations-title-block p,
.obligations-empty p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.obligations-search input,
.obligations-sort select {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(56, 43, 32, 0.14);
  background: rgba(255, 252, 247, 0.9);
  color: var(--text);
}

.obligations-search input {
  padding: 0 13px;
}

.obligations-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 190px;
  gap: 10px;
  align-items: end;
}

.obligations-chip-row,
.obligation-badges,
.obligation-actions,
.obligations-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.obligations-filter,
.obligation-add-small {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.44);
}

.obligations-filter.active {
  color: var(--accent-strong);
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(15, 118, 110, 0.12);
}

.obligations-sort {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.obligations-sort select {
  padding: 0 10px;
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0;
}

.obligations-primary {
  margin: 0;
  min-height: 42px;
  border-radius: 8px;
}

.obligation-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.obligation-stat {
  display: grid;
  gap: 5px;
  min-height: 74px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 251, 245, 0.82);
  box-shadow: 0 14px 34px rgba(68, 50, 31, 0.08);
}

.obligation-stat span {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

.obligation-stat strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  line-height: 1.05;
}

.obligation-stat.danger strong { color: var(--danger); }
.obligation-stat.warn strong { color: var(--warn); }
.obligation-stat.notice strong { color: #8a6b18; }
.obligation-stat.money strong { color: var(--accent-strong); }
.obligation-stat.muted strong { color: var(--muted); }

.obligations-empty {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.obligations-empty .section-title {
  font-size: 1.08rem;
}

.obligations-sections {
  display: grid;
  gap: 10px;
}

.obligation-section {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 251, 245, 0.72);
  box-shadow: 0 16px 36px rgba(68, 50, 31, 0.08);
  overflow: hidden;
}

.obligation-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  border-bottom: 1px solid rgba(56, 43, 32, 0.08);
}

.obligation-section summary::-webkit-details-marker {
  display: none;
}

.obligation-section summary strong {
  font-family: "Space Grotesk", sans-serif;
}

.obligation-section-meta,
.obligation-section-overdue {
  display: inline-flex;
  align-items: center;
  margin-left: 9px;
  color: var(--muted);
  font-size: 0.72rem;
}

.obligation-section-overdue {
  color: var(--danger);
}

.obligation-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.obligation-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid rgba(56, 43, 32, 0.12);
  background: rgba(255, 252, 248, 0.92);
}

.obligation-card.requires-manual {
  border-color: rgba(181, 66, 66, 0.22);
  box-shadow: inset 4px 0 0 rgba(181, 66, 66, 0.18);
}

.obligation-card-top,
.obligation-card-meta,
.obligation-finance-line {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.obligation-card-top > div {
  min-width: 0;
}

.obligation-card .item-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  line-height: 1.2;
}

.obligation-card .small {
  margin: 0;
}

.obligation-card-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.obligation-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.obligation-countdown,
.obligation-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 25px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.68rem;
  line-height: 1.15;
  white-space: nowrap;
}

.obligation-countdown {
  flex: 0 0 auto;
  font-weight: 700;
}

.obligation-badge {
  color: var(--muted);
  background: rgba(56, 43, 32, 0.055);
}

.obligation-tone-overdue {
  color: var(--danger);
  background: rgba(181, 66, 66, 0.1);
  border-color: rgba(181, 66, 66, 0.16);
}

.obligation-tone-due-soon {
  color: var(--warn);
  background: rgba(194, 107, 49, 0.1);
  border-color: rgba(194, 107, 49, 0.16);
}

.obligation-tone-upcoming {
  color: #8a6b18;
  background: rgba(198, 156, 42, 0.13);
  border-color: rgba(198, 156, 42, 0.18);
}

.obligation-tone-safe {
  color: var(--success);
  background: rgba(42, 139, 87, 0.1);
  border-color: rgba(42, 139, 87, 0.14);
}

.obligation-tone-muted {
  color: var(--muted);
  background: rgba(56, 43, 32, 0.06);
  border-color: rgba(56, 43, 32, 0.1);
}

.obligation-badge.cost,
.obligation-badge.finance {
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.14);
}

.obligation-badge.auto {
  color: #5d6f22;
  background: rgba(126, 151, 50, 0.12);
}

.obligation-badge.manual {
  color: var(--danger);
  background: rgba(181, 66, 66, 0.1);
}

.obligation-badge.priority-critical,
.obligation-badge.priority-high {
  color: var(--danger);
}

.obligation-finance-line {
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
  padding-top: 2px;
}

.obligation-actions {
  padding-top: 2px;
}

.obligation-actions .inline-button {
  border-radius: 8px;
  padding: 7px 9px;
}

.obligation-actions .danger {
  color: var(--danger);
  border-color: rgba(181, 66, 66, 0.2);
}

.obligation-section-empty {
  grid-column: 1 / -1;
  padding: 5px 2px 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.72rem;
}

.obligations-header,
.obligations-empty {
  padding: 2px 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.obligations-header {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(240px, 0.8fr);
  gap: 10px;
  align-items: end;
}

.obligations-title-block .eyebrow {
  display: none;
}

.obligations-title-block .section-title {
  font-size: 1.1rem;
}

.obligations-title-block p,
.obligations-empty p {
  margin: 3px 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.obligations-search input,
.obligations-sort select {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.obligations-controls {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.obligations-chip-row {
  gap: 6px;
}

.obligations-filter,
.obligation-add-small {
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
}

.obligations-filter.active {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.16);
  color: var(--accent-strong);
}

.obligations-sort {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
}

.obligations-sort select {
  width: 136px;
  font-size: 0.76rem;
}

.obligations-primary {
  width: auto;
  min-height: 36px;
  padding: 9px 13px;
}

.obligations-tax-link {
  min-height: 36px;
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.16);
}

.obligation-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 0 3px;
  border-top: 1px solid rgba(56, 43, 32, 0.08);
  border-bottom: 1px solid rgba(56, 43, 32, 0.08);
}

.obligation-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-height: 0;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.obligation-stat + .obligation-stat {
  border-left: 1px solid rgba(56, 43, 32, 0.1);
  border-radius: 0;
}

.obligation-stat span {
  font-size: 0.66rem;
  line-height: 1.1;
}

.obligation-stat strong {
  font-size: 0.88rem;
}

.obligation-stat.warn strong,
.obligation-stat.notice strong {
  color: #8a6b18;
}

.obligation-stat.money strong {
  color: var(--text);
}

.obligations-empty {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px dashed rgba(56, 43, 32, 0.16);
  background: rgba(255, 255, 255, 0.34);
}

.obligations-empty .section-title {
  font-size: 0.94rem;
}

.obligations-empty-actions {
  gap: 6px;
}

.obligations-empty-actions .inline-button {
  padding: 7px 9px;
  border-radius: 8px;
}

.obligations-sections {
  gap: 8px;
}

.obligation-section {
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.obligation-section + .obligation-section {
  padding-top: 8px;
  border-top: 1px solid rgba(56, 43, 32, 0.08);
}

.obligation-section summary {
  padding: 5px 0 7px;
  border-bottom: 0;
}

.obligation-section-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.obligation-section summary strong {
  font-size: 0.98rem;
}

.obligation-section-meta,
.obligation-section-overdue,
.obligation-section-upcoming {
  margin-left: 0;
  font-size: 0.7rem;
}

.obligation-section-overdue {
  color: var(--danger);
}

.obligation-section-upcoming {
  color: #8a6b18;
}

.obligation-card-grid {
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 0;
}

.obligation-card {
  grid-template-columns: minmax(190px, 1.1fr) minmax(140px, 0.7fr) auto;
  gap: 7px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: none;
}

.obligation-card:has(.obligation-complete.is-undo) {
  opacity: 0.7;
}

.obligation-card.requires-manual {
  border-color: var(--line);
  box-shadow: none;
}

.obligation-card-left,
.obligation-card-center {
  min-width: 0;
}

.obligation-card-left .item-meta {
  margin-top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  line-height: 1.25;
}

.obligation-card .item-title {
  overflow: hidden;
  font-size: 0.88rem;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.obligation-card-center {
  color: var(--muted);
  overflow: hidden;
  font-size: 0.71rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.obligation-card-right {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 4px;
  min-width: 0;
}

.obligation-countdown,
.obligation-badge {
  min-height: 20px;
  padding: 3px 6px;
  border-radius: 8px;
  font-size: 0.62rem;
}

.obligation-badges {
  grid-column: 1 / 2;
  gap: 5px;
  display: contents;
}

.obligation-note {
  grid-column: 1 / -1;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.73rem;
  line-height: 1.3;
}

.obligation-actions {
  display: contents;
}

.obligation-view,
.obligation-complete {
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 8px;
  font-size: 0.68rem;
  line-height: 1.1;
}

.obligation-view {
  color: var(--text);
  background: rgba(255, 255, 255, 0.4);
}

.obligation-complete {
  color: var(--accent-strong);
  border-color: rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.08);
}

.obligation-complete.is-undo {
  color: var(--muted);
  border-color: rgba(56, 43, 32, 0.12);
  background: transparent;
}

.obligation-overflow {
  position: relative;
  flex: 0 0 auto;
}

.obligation-overflow summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 24px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  list-style: none;
}

.obligation-overflow summary::-webkit-details-marker {
  display: none;
}

.obligation-overflow-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 5px);
  right: 0;
  display: grid;
  min-width: 112px;
  padding: 5px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: 0 14px 30px rgba(68, 50, 31, 0.12);
}

.obligation-overflow-menu button {
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.obligation-overflow-menu button:hover {
  background: rgba(15, 118, 110, 0.08);
}

.obligation-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  justify-content: flex-end;
  background: rgba(31, 24, 20, 0.28);
}

.obligation-detail-drawer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(460px, calc(100vw - 24px));
  height: 100%;
  padding: 16px;
  overflow: auto;
  border-left: 1px solid rgba(56, 43, 32, 0.16);
  background: var(--surface-strong);
  box-shadow: 0 24px 70px rgba(31, 24, 20, 0.18);
}

.obligation-detail-header,
.obligation-detail-actions,
.obligation-detail-signals {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.obligation-detail-header h3 {
  margin: 2px 0 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
  line-height: 1.15;
}

.obligation-detail-header p,
.obligation-detail-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.obligation-detail-signals {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.obligation-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.obligation-detail-field,
.obligation-detail-block {
  display: grid;
  gap: 4px;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.obligation-detail-field span,
.obligation-detail-block span {
  color: var(--muted);
  font-size: 0.68rem;
}

.obligation-detail-field strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.obligation-detail-actions {
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 8px;
}

.obligation-detail-actions .danger {
  color: var(--danger);
  border-color: rgba(181, 66, 66, 0.18);
}

.obligation-tone-overdue {
  color: var(--danger);
  background: rgba(181, 66, 66, 0.08);
  border-color: rgba(181, 66, 66, 0.12);
}

.obligation-tone-due-soon,
.obligation-tone-upcoming {
  color: #8a6b18;
  background: rgba(198, 156, 42, 0.1);
  border-color: rgba(198, 156, 42, 0.14);
}

.obligation-tone-safe {
  color: var(--success);
  background: rgba(42, 139, 87, 0.08);
  border-color: rgba(42, 139, 87, 0.12);
}

.obligation-badge.manual,
.obligation-badge.auto,
.obligation-badge.finance {
  color: var(--muted);
  background: rgba(56, 43, 32, 0.045);
  border-color: rgba(56, 43, 32, 0.08);
}

.dashboard-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.dashboard-score strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
}

.dashboard-hero {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
  align-items: stretch;
  margin-bottom: 0;
}

.dashboard-lead {
  display: flex;
  flex-direction: column;
  height: 148px;
  min-height: 0;
  overflow: hidden;
  padding: 12px 14px 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 14rem),
    rgba(255, 250, 243, 0.82);
  box-shadow: var(--shadow);
}

.dashboard-lead-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.dashboard-lead-date {
  color: var(--muted);
  font-size: 0.75rem;
}

.dashboard-lead h3 {
  margin: 0 0 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
  line-height: 1.05;
}

.dashboard-lead p {
  margin: 0;
  max-width: 50rem;
  color: var(--muted);
  line-height: 1.3;
  font-size: 0.8rem;
}

.lead-summary {
  display: grid;
  gap: 7px;
  flex: 1;
  align-content: center;
  min-height: 0;
}

.lead-summary p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-summary strong {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.lead-focus {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
  line-height: 1.05;
  font-weight: 700;
}

.lead-focus strong {
  flex: 0 0 auto;
  color: var(--accent-strong);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-focus span,
.lead-next {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-next {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.18;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.signal-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.72rem;
}

.signal-pill.alert {
  background: rgba(181, 66, 66, 0.1);
  color: var(--danger);
  border-color: rgba(181, 66, 66, 0.12);
}

.signal-pill.warn {
  background: rgba(194, 107, 49, 0.1);
  color: var(--warn);
  border-color: rgba(194, 107, 49, 0.12);
}

.signal-pill.ok {
  background: rgba(42, 139, 87, 0.1);
  color: var(--success);
  border-color: rgba(42, 139, 87, 0.12);
}

.hero-side {
  display: grid;
  align-content: stretch;
  min-height: 0;
}

.hero-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 251, 245, 0.82);
  box-shadow: var(--shadow);
}

.hero-metric strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  line-height: 1;
}

.hero-metric-label {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-mini-panel {
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 251, 245, 0.82);
  box-shadow: var(--shadow);
}

.hero-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  font-size: 0.8rem;
}

.hero-mini-row strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
}

.dashboard-section-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
}

.jobs-grid {
  align-items: start;
}

.jobs-workspace {
  display: grid;
  gap: 9px;
  grid-template-columns: 292px minmax(0, 1fr);
  align-items: start;
  min-height: 0;
}

.jobs-rail,
.jobs-stage {
  min-width: 0;
}

.jobs-rail {
  display: grid;
  gap: 9px;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: stretch;
  max-height: calc(100vh - 108px);
  overflow: hidden;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.78), rgba(247, 240, 229, 0.72)),
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.06), transparent 14rem);
  box-shadow: 0 14px 38px rgba(68, 50, 31, 0.08);
}

.jobs-stage {
  display: grid;
  gap: 12px;
  align-content: start;
  align-items: start;
}

.jobs-rail-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.jobs-rail-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jobs-rail-tools .icon-button {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 10px;
}

.jobs-rail-stats {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jobs-rail-inline {
  padding-top: 12px;
  border-top: 1px dashed rgba(32, 26, 20, 0.12);
}

.jobs-mini-stat {
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(251, 246, 238, 0.72));
}

.jobs-mini-stat strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
}

.jobs-hero {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 6fr) minmax(320px, 4fr);
}

.jobs-lead,
.jobs-runway {
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
}

.jobs-lead {
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(242, 170, 76, 0.18), transparent 18rem),
    radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.14), transparent 16rem),
    rgba(255, 250, 243, 0.84);
}

.jobs-lead h3 {
  margin: 0 0 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  line-height: 1.04;
}

.jobs-lead p {
  margin: 0;
  max-width: 48rem;
  color: var(--muted);
  line-height: 1.5;
}

.jobs-runway {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 251, 245, 0.82);
}

.job-featured,
.job-card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.94);
}

.job-featured {
  padding: 16px;
  border-radius: 18px;
}

.job-target {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(18, 32, 30, 0.04);
  border: 1px dashed rgba(32, 26, 20, 0.12);
}

.job-target-inline {
  margin-top: 0;
  padding: 8px 10px;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-top: 8px;
}

.jobs-domains,
.jobs-side-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.jobs-domains {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jobs-domain-card,
.jobs-side-card {
  min-height: 100%;
}

.jobs-domain-list,
.jobs-mini-list,
.jobs-principles {
  max-height: none;
}

.job-card {
  padding: 14px;
  border-radius: 16px;
}

.job-energy-light {
  box-shadow: inset 0 0 0 1px rgba(42, 139, 87, 0.08);
}

.job-energy-medium {
  box-shadow: inset 0 0 0 1px rgba(194, 107, 49, 0.1);
}

.job-energy-deep {
  box-shadow: inset 0 0 0 1px rgba(181, 66, 66, 0.12);
}

.jobs-mix {
  display: grid;
  gap: 10px;
}

.jobs-mix-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 252, 248, 0.9);
  border: 1px solid var(--line);
}

.jobs-mix-row strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.jobs-tree-column,
.jobs-detail-column,
.jobs-side-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.jobs-tree-card,
.jobs-detail-card,
.jobs-side-card {
  min-height: 100%;
}

.jobs-tree-list,
.jobs-timeline {
  display: grid;
  gap: 7px;
}

.jobs-tree-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 3px;
}

.jobs-tree-list::-webkit-scrollbar {
  width: 6px;
}

.jobs-tree-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(82, 71, 57, 0.16);
}

.jobs-tree-item {
  padding: 9px 10px;
  border-radius: 13px;
  border: 1px solid rgba(56, 43, 32, 0.09);
  border-left: 3px solid rgba(15, 118, 110, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(251, 247, 240, 0.62));
}

.job-event-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  padding: 6px 8px 6px 0;
  border-radius: 12px;
  border: 1px solid rgba(56, 43, 32, 0.08);
  background: rgba(255, 252, 247, 0.64);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.job-event-card:hover {
  background: rgba(255, 252, 247, 0.86);
  border-color: rgba(56, 43, 32, 0.13);
  transform: translateY(-1px);
}

.job-event-card-compact {
  background: rgba(255, 255, 255, 0.72);
}

.jobs-future-section {
  display: grid;
  gap: 7px;
  padding: 9px;
  border-radius: 14px;
  border: 1px solid rgba(217, 119, 6, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 251, 235, 0.72), rgba(255, 252, 247, 0.58));
}

.jobs-future-title {
  color: #9a5a08;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jobs-future-list {
  display: grid;
  gap: 6px;
}

.job-event-marker {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-left: -21px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: var(--accent);
  color: #fff;
  font-size: 0.5rem;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(68, 50, 31, 0.1);
}

.job-event-body {
  min-width: 0;
}

.job-event-description {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.42;
  font-size: 0.79rem;
  display: -webkit-box;
  max-height: 2.84em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.jobs-event-type-tag {
  padding: 2px 6px;
  font-size: 0.6rem;
  opacity: 0.82;
}

.jobs-event-card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.jobs-followup-date {
  color: #9a5a08;
  border-color: rgba(217, 119, 6, 0.16);
  background: rgba(255, 247, 237, 0.8);
}

.jobs-followup-date.done {
  color: var(--success);
  border-color: rgba(42, 139, 87, 0.16);
  background: rgba(42, 139, 87, 0.08);
}

.jobs-starred-badge {
  color: #9a5a08;
  border-color: rgba(217, 119, 6, 0.14);
  background: rgba(255, 247, 237, 0.72);
}

.jobs-star-action,
.jobs-favorites-toggle {
  color: #9a5a08;
  border-color: rgba(217, 119, 6, 0.16);
  background: rgba(255, 247, 237, 0.52);
}

.jobs-star-action.active,
.jobs-favorites-toggle.active {
  color: #7c3f00;
  border-color: rgba(217, 119, 6, 0.32);
  background: rgba(255, 237, 213, 0.9);
}

.jobs-followup-action {
  color: #9a5a08;
  border-color: rgba(217, 119, 6, 0.16);
  background: rgba(255, 247, 237, 0.58);
}

.jobs-timeline-list.hidden {
  display: none;
}

.jobs-event-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(31, 24, 20, 0.46);
  backdrop-filter: blur(2px);
}

.jobs-event-detail-modal {
  width: min(860px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.06), transparent 16rem),
    #fffaf1;
  box-shadow: 0 28px 80px rgba(46, 32, 18, 0.24);
}

.jobs-event-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.jobs-event-detail-title {
  margin: 3px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
  line-height: 1.2;
}

.jobs-event-detail-section {
  display: grid;
  gap: 8px;
  padding: 11px;
  border-radius: 14px;
  border: 1px solid rgba(56, 43, 32, 0.08);
  background: rgba(255, 255, 255, 0.84);
}

.jobs-event-detail-section h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jobs-event-detail-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jobs-event-detail-field {
  display: grid;
  gap: 3px;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid rgba(56, 43, 32, 0.07);
  background: rgba(255, 252, 247, 0.9);
}

.jobs-event-detail-field span,
.jobs-event-detail-block > span {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.jobs-event-detail-field-value {
  white-space: pre-wrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.4;
}

.jobs-event-detail-block {
  display: grid;
  gap: 5px;
}

.jobs-event-detail-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.jobs-event-detail-object {
  display: grid;
  gap: 6px;
}

.jobs-event-detail-object-row {
  display: grid;
  gap: 4px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(56, 43, 32, 0.07);
}

.jobs-event-detail-object-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.jobs-event-detail-object-row > span {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.jobs-event-detail-meta,
.jobs-event-detail-tags,
.jobs-event-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jobs-event-detail-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}

.jobs-event-detail-meta span {
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(56, 43, 32, 0.08);
  background: rgba(255, 255, 255, 0.52);
}

.jobs-event-detail-body {
  white-space: pre-wrap;
  color: var(--text);
  line-height: 1.58;
  font-size: 0.92rem;
}

.jobs-tree-item-active {
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.06);
}

.jobs-tree-item-watching {
  box-shadow: inset 0 0 0 1px rgba(194, 107, 49, 0.08);
}

.jobs-tree-item-paused {
  box-shadow: inset 0 0 0 1px rgba(89, 102, 117, 0.08);
}

.jobs-tree-item-archived {
  opacity: 0.9;
}

.jobs-detail-shell {
  display: grid;
  gap: 10px;
  align-content: start;
  align-items: start;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-left: 3px solid rgba(15, 118, 110, 0.28);
  background:
    radial-gradient(circle at top right, rgba(194, 107, 49, 0.08), transparent 18rem),
    linear-gradient(180deg, rgba(255, 251, 246, 0.92), rgba(248, 241, 231, 0.88));
  box-shadow: 0 14px 38px rgba(68, 50, 31, 0.08);
}

.jobs-detail-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(32, 26, 20, 0.08);
}

.jobs-detail-name {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  line-height: 1;
}

.jobs-detail-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.86rem;
}

.jobs-detail-note {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.82rem;
}

.jobs-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.jobs-detail-actions .action,
.jobs-detail-actions .inline-button,
.job-actions .inline-button {
  width: auto;
  margin-top: 0;
  padding: 3px 6px;
  border-radius: 8px;
  font-size: 0.62rem;
  background: rgba(255, 255, 255, 0.42);
  color: var(--text);
  border: 1px solid rgba(56, 43, 32, 0.1);
}

.jobs-detail-actions .action {
  min-height: auto;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-strong);
  border-color: rgba(15, 118, 110, 0.16);
}

.jobs-context-bar {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  width: 100%;
}

.jobs-context-chip {
  display: grid;
  gap: 3px;
  align-content: start;
  min-height: 0;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(56, 43, 32, 0.08);
  background: rgba(255, 255, 255, 0.56);
}

.jobs-context-chip span {
  color: var(--muted);
  font-size: 0.76rem;
}

.jobs-context-chip strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
}

.jobs-composer-shell {
  padding: 10px;
  border-radius: 15px;
  border: 1px dashed rgba(32, 26, 20, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.86), rgba(249, 242, 231, 0.78));
}

.jobs-composer-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.jobs-timeline-list {
  display: grid;
  gap: 7px;
  position: relative;
  padding-left: 16px;
}

.jobs-timeline-list::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 5px;
  width: 1px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.28), rgba(194, 107, 49, 0.18));
}

.jobs-tree-item.active {
  border-color: rgba(15, 118, 110, 0.26);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.jobs-agency-tone-teal {
  --jobs-agency-accent: #0f766e;
}

.jobs-agency-tone-blue {
  --jobs-agency-accent: #2563eb;
}

.jobs-agency-tone-purple {
  --jobs-agency-accent: #7c3aed;
}

.jobs-agency-tone-yellow {
  --jobs-agency-accent: #d97706;
}

.jobs-agency-tone-slate {
  --jobs-agency-accent: #475569;
}

.jobs-tree-item[class*="jobs-agency-tone-"],
.jobs-detail-shell[class*="jobs-agency-tone-"] {
  border-left-color: color-mix(in srgb, var(--jobs-agency-accent, var(--accent)) 52%, transparent);
}

.jobs-tree-item[class*="jobs-agency-tone-"].active {
  border-color: color-mix(in srgb, var(--jobs-agency-accent, var(--accent)) 34%, var(--line));
  border-left-color: var(--jobs-agency-accent, var(--accent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--jobs-agency-accent, var(--accent)) 10%, transparent);
}

.jobs-tree-item[class*="jobs-agency-tone-"] .jobs-recruiter-chip.active {
  background: color-mix(in srgb, var(--jobs-agency-accent, var(--accent)) 8%, white);
  border-color: color-mix(in srgb, var(--jobs-agency-accent, var(--accent)) 26%, var(--line));
}

.jobs-detail-shell[class*="jobs-agency-tone-"] .jobs-timeline-list::before {
  background: linear-gradient(180deg, color-mix(in srgb, var(--jobs-agency-accent, var(--accent)) 34%, transparent), rgba(32, 26, 20, 0.08));
}

.jobs-tree-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.jobs-tree-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.jobs-tree-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.jobs-tree-actions-compact {
  gap: 6px;
}

.jobs-mini-action {
  padding: 3px 6px;
  border-radius: 8px;
  font-size: 0.62rem;
  background: rgba(255, 255, 255, 0.38);
}

.jobs-tree-children {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(32, 26, 20, 0.12);
}

.jobs-recruiter-chip {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid rgba(56, 43, 32, 0.08);
  background: rgba(255, 255, 255, 0.42);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.jobs-recruiter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.24);
}

.jobs-recruiter-chip.active {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.22);
}

.jobs-inline-recruiter-panel {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(32, 26, 20, 0.12);
}

.jobs-recruiter-chip-meta {
  color: var(--muted);
  font-size: 0.72rem;
}

.jobs-detail-meta,
.jobs-info-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.jobs-detail-meta-row,
.jobs-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 252, 248, 0.9);
  border: 1px solid var(--line);
}

.jobs-detail-meta-row strong,
.jobs-info-row strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
}

.jobs-event-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.jobs-event-block {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(18, 32, 30, 0.04);
  border: 1px dashed rgba(32, 26, 20, 0.12);
}

.jobs-event-block p {
  margin: 6px 0 0;
  color: var(--text);
  line-height: 1.5;
}

.jobs-doc-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.jobs-quick-add-panel {
  display: grid;
  gap: 10px;
}

.jobs-inline-form {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(32, 26, 20, 0.12);
}

.jobs-inline-form:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.jobs-inline-form-tight {
  gap: 8px;
}

.job-event-contacted_me .job-event-marker {
  background: #2563eb;
}

.job-event-i_reached_out .job-event-marker {
  background: var(--success);
}

.job-event-follow_up .job-event-marker {
  background: var(--warn);
}

.job-event-interview .job-event-marker {
  background: #7c3aed;
}

.job-event-offer .job-event-marker {
  background: #15803d;
}

.job-event-rejection .job-event-marker {
  background: var(--danger);
}

.job-event-note .job-event-marker {
  background: #64748b;
}

.jobs-package-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 5px;
}

.jobs-tag {
  background: rgba(255, 255, 255, 0.62);
  padding: 2px 6px;
  font-size: 0.6rem;
  color: rgba(32, 26, 20, 0.72);
}

.jobs-tag-cv {
  border-color: rgba(15, 118, 110, 0.16);
  color: var(--accent-strong);
}

.jobs-tag-package {
  border-color: rgba(194, 107, 49, 0.16);
  color: var(--warn);
}

.jobs-status {
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
}

.jobs-status-active {
  color: var(--success);
}

.jobs-status-future {
  color: var(--warn);
}

.jobs-status-closed {
  color: var(--muted);
}

.jobs-quick-event-form {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(220px, 1.6fr) minmax(160px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.jobs-quick-event-form .field {
  gap: 5px;
}

.jobs-quick-event-form .action {
  margin-top: 0;
}

.dashboard-card-compact {
  height: 148px;
  padding: 8px 9px 8px;
}

.quick-grid {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 6px 7px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 246, 238, 0.92));
  color: var(--text);
  text-align: center;
  font-size: 0.72rem;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.quick-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.24);
  background: rgba(255, 252, 248, 1);
}

.quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 20px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-strong);
  font-size: 0.62rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  flex: 0 0 auto;
}

.quick-label {
  min-width: 0;
}

.stat-card {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
}

.card-header,
.row-between,
.list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.card-header {
  margin-bottom: 14px;
}

.card-title {
  font-size: 1.1rem;
}

.list-grid {
  gap: 14px;
}

.routine-summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.routine-summary-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.75rem;
}

.routine-section + .routine-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.routine-flow-card {
  display: grid;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(252, 247, 239, 0.9));
}

.routine-flow-running {
  border-color: rgba(15, 118, 110, 0.24);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.routine-flow-complete {
  border-color: rgba(42, 139, 87, 0.2);
}

.routine-flow-skipped {
  opacity: 0.88;
  border-style: dashed;
}

.routine-card-actions,
.routine-control-row,
.routine-footer-actions,
.routine-dashboard-actions,
.routine-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.routine-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.routine-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  font-size: 0.76rem;
}

.routine-energy-energizing {
  color: var(--warn);
  border-color: rgba(194, 107, 49, 0.18);
}

.routine-energy-calming {
  color: var(--accent-strong);
  border-color: rgba(15, 118, 110, 0.18);
}

.routine-energy-neutral {
  color: var(--muted);
}

.routine-day-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.routine-start-button {
  width: auto;
  margin-top: 0;
}

.routine-flow-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(56, 43, 32, 0.08);
}

.routine-flow-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.routine-progress-copy {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
}

.routine-mode-button {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  cursor: pointer;
}

.routine-mode-button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.routine-flow-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.list-item,
.timeline-item,
.project-item,
.note-item,
.routine-item,
.finance-item {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.finance-module {
  align-items: start;
}

.finance-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 0 4px;
}

.finance-topbar p {
  margin: 4px 0 0;
  max-width: 56rem;
  color: var(--muted);
  line-height: 1.45;
}

.finance-actions,
.finance-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.finance-action {
  width: auto;
  margin-top: 0;
  border-radius: 8px;
}

.finance-subnav,
.finance-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.finance-subnav {
  justify-content: space-between;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.62);
}

.finance-subnav-group,
.finance-subnav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.finance-subnav-button {
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.finance-subnav-button.active {
  color: var(--accent-strong);
  border-color: rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.1);
}

.finance-summary-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.finance-summary-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.finance-summary-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.finance-summary-card,
.finance-panel,
.finance-record-card,
.finance-trip-card {
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.finance-summary-card {
  min-height: 96px;
  padding: 14px;
  border-radius: 16px;
}

.finance-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.finance-summary-card strong {
  display: block;
  margin-top: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  line-height: 1.12;
}

.finance-summary-card.positive strong {
  color: var(--success);
}

.finance-summary-card.warn strong {
  color: var(--warn);
}

.finance-summary-card.calm strong {
  color: var(--accent-strong);
}

.finance-panel {
  padding: 18px;
  border-radius: 18px;
}

.finance-panel-head {
  margin-bottom: 12px;
}

.finance-ranked-list,
.finance-insight-list,
.finance-mini-list,
.finance-report-list,
.finance-collection-grid,
.finance-trip-grid {
  display: grid;
  gap: 10px;
}

.finance-ranked-list > div,
.finance-mini-list > div,
.finance-report-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(56, 43, 32, 0.04);
}

.finance-ranked-list span,
.finance-mini-list span,
.finance-report-list span {
  color: var(--muted);
  line-height: 1.35;
}

.finance-ranked-list strong,
.finance-mini-list strong,
.finance-report-list strong {
  font-family: "Space Grotesk", sans-serif;
  text-align: right;
}

.finance-insight-list p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent-strong);
  line-height: 1.45;
}

.finance-mini-section + .finance-mini-section,
.finance-ratio {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.finance-chart {
  display: grid;
  gap: 8px;
}

.finance-chart-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 54px;
  gap: 10px;
  align-items: center;
}

.finance-chart-row span,
.finance-chart-row strong {
  font-size: 0.76rem;
}

.finance-chart-row div,
.finance-ratio-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(56, 43, 32, 0.08);
  overflow: hidden;
}

.finance-chart-row i,
.finance-ratio-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.finance-chart-row i.negative {
  background: var(--warn);
}

.finance-filterbar {
  margin-bottom: 14px;
}

.finance-filter-control {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.7rem;
}

.finance-filter-control select,
.finance-filter-control input,
.finance-filter-static {
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  padding: 7px 9px;
}

.finance-filter-search {
  min-width: min(100%, 260px);
}

.finance-filter-static {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
}

.finance-table-wrap {
  overflow-x: auto;
}

.finance-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.finance-table th,
.finance-table td {
  padding: 10px 9px;
  border-bottom: 1px solid rgba(56, 43, 32, 0.09);
  text-align: left;
  vertical-align: top;
}

.finance-table th {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.finance-table td {
  font-size: 0.78rem;
}

.finance-amount {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  white-space: nowrap;
}

.finance-amount.positive {
  color: var(--success);
}

.finance-amount.negative {
  color: var(--warn);
}

.finance-collection-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.finance-record-card,
.finance-trip-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
}

.finance-record-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.finance-record-meta {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.75rem;
}

.finance-record-card > strong,
.finance-trip-total strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
}

.religious-giving-panel {
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.92), rgba(244, 250, 246, 0.82));
}

.finance-trip-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.finance-trip-costs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.finance-trip-costs span {
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(56, 43, 32, 0.04);
  color: var(--muted);
  font-size: 0.68rem;
}

.finance-trip-costs strong {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
}

.finance-trip-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.inline-button.danger {
  color: var(--danger);
}

.tax-module {
  align-items: start;
}

.tax-header,
.tax-empty {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 2px 0 4px;
}

.tax-header p,
.tax-empty p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.tax-create {
  width: auto;
  margin-top: 0;
  border-radius: 8px;
}

.tax-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.tax-stat,
.tax-cases,
.tax-detail-panel,
.tax-empty {
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.82);
  box-shadow: 0 14px 34px rgba(68, 50, 31, 0.08);
}

.tax-stat {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 11px 12px;
  border-radius: 8px;
}

.tax-stat span,
.tax-detail-metric span,
.tax-card-meta,
.tax-card-next,
.tax-links,
.muted-dark {
  color: var(--muted);
}

.tax-stat strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
}

.tax-stat.danger strong {
  color: var(--danger);
}

.tax-cases,
.tax-detail-panel,
.tax-empty {
  border-radius: 8px;
  padding: 14px;
}

.tax-toolbar {
  display: grid;
  gap: 12px;
}

.tax-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tax-filters label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tax-filters select {
  min-width: 0;
  padding: 8px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  font-size: 0.76rem;
  text-transform: none;
  letter-spacing: 0;
}

.tax-case-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.tax-case-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(56, 43, 32, 0.1);
  background: rgba(255, 255, 255, 0.58);
}

.tax-card-main {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.tax-card-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Space Grotesk", sans-serif;
}

.tax-card-meta,
.tax-card-next {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
}

.tax-card-side,
.tax-detail-actions,
.tax-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tax-card-side {
  justify-content: flex-end;
}

.tax-risk,
.tax-count,
.tax-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(56, 43, 32, 0.055);
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.15;
  white-space: nowrap;
}

.tax-risk-high {
  color: var(--danger);
  background: rgba(181, 66, 66, 0.1);
}

.tax-risk-medium {
  color: var(--warn);
  background: rgba(194, 107, 49, 0.1);
}

.tax-risk-low {
  color: var(--success);
  background: rgba(42, 139, 87, 0.1);
}

.tax-detail-panel {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 0;
}

.tax-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.tax-detail-head h3,
.tax-detail-head p,
.tax-detail-section p {
  margin: 0;
}

.tax-detail-head h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
}

.tax-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tax-detail-metric {
  display: grid;
  gap: 3px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(56, 43, 32, 0.08);
}

.tax-detail-metric strong {
  font-family: "Space Grotesk", sans-serif;
}

.tax-detail-section {
  display: grid;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid rgba(56, 43, 32, 0.08);
  line-height: 1.45;
}

.tax-detail-section strong {
  font-family: "Space Grotesk", sans-serif;
}

.tax-detail-section ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.tax-detail-actions .danger {
  color: var(--danger);
  border-color: rgba(181, 66, 66, 0.2);
}

.notes-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 2px 0 4px;
}

.notes-module,
.tasks-module {
  align-content: start;
  grid-auto-rows: max-content;
}

.notes-toolbar,
.notes-list,
.tasks-toolbar,
.tasks-list {
  align-self: start;
}

.tasks-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 2px 0 4px;
}

.notes-search {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1 1 260px;
}

.tasks-search {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1 1 260px;
}

.notes-search input {
  width: min(360px, 100%);
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
}

.tasks-search input {
  width: min(360px, 100%);
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
}

.notes-filters,
.tasks-filters,
.note-actions,
.task-actions,
.task-tags,
.task-detail-actions,
.task-detail-meta,
.task-detail-stamps,
.note-tags,
.note-timestamps,
.note-detail-actions,
.project-note-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.notes-filter.active,
.tasks-filter.active,
.note-badge {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.16);
  color: var(--accent-strong);
}

.notes-create,
.tasks-create {
  width: auto;
  margin-top: 0;
  padding: 9px 13px;
  border-radius: 8px;
}

.notes-grid {
  display: grid;
  gap: 8px;
}

.tasks-grid {
  display: grid;
  gap: 8px;
}

.note-card {
  display: grid;
  gap: 8px;
  padding: 12px 13px;
  border-radius: 8px;
}

.task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.task-card.done {
  background: rgba(255, 255, 255, 0.58);
}

.task-card-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.task-card-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.task-title-line,
.task-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.task-title-line .item-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
}

.task-tags {
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.task-card.done .item-title {
  color: var(--muted);
  text-decoration: line-through;
}

.task-context-line {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: nowrap;
  margin-top: 0;
  color: var(--muted);
  font-size: 0.7rem;
  overflow: hidden;
  white-space: nowrap;
}

.task-context-line > * {
  flex: 0 0 auto;
}

.task-preview {
  display: -webkit-box;
  margin-top: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.task-context-badge,
.task-priority,
.task-status {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  padding: 3px 6px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 0.66rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-context-badge {
  background: rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.14);
  color: var(--accent-strong);
  cursor: pointer;
}

.task-priority {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.48);
}

.task-priority-a {
  color: var(--danger);
  border-color: rgba(171, 72, 60, 0.18);
  background: rgba(181, 66, 66, 0.1);
}

.task-priority-b {
  color: var(--warn);
  border-color: rgba(194, 107, 49, 0.18);
  background: rgba(194, 107, 49, 0.1);
}

.task-priority-c {
  color: #2f6fb3;
  border-color: rgba(47, 111, 179, 0.18);
  background: rgba(47, 111, 179, 0.1);
}

.task-status {
  color: var(--muted);
  background: transparent;
}

.task-check {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(15, 118, 110, 0.36);
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 0.72rem;
  line-height: 1;
}

.task-card.done .task-check,
.project-task-row.done .task-check {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.task-due,
.task-timestamps {
  color: rgba(107, 100, 92, 0.78);
  font-size: 0.68rem;
  line-height: 1.45;
}

.task-due.overdue {
  color: var(--danger);
}

.task-actions {
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: nowrap;
}

.tasks-cockpit-grid {
  align-content: start;
}

.tasks-toolbar-card {
  position: sticky;
  top: 10px;
  z-index: 16;
  padding: 10px 14px;
}

.tasks-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.tasks-toolbar-left,
.tasks-toolbar-center,
.tasks-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tasks-toolbar-center {
  justify-content: center;
  flex-wrap: wrap;
}

.tasks-toolbar-right {
  justify-content: flex-end;
}

.tasks-open-pill,
.tasks-summary-chip {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  line-height: 1;
}

.tasks-open-pill strong,
.tasks-summary-chip strong {
  font-size: 0.8rem;
  margin-right: 4px;
}

.tasks-summary-chip {
  cursor: pointer;
}

.tasks-summary-chip.active {
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.24);
  transform: translateY(-1px);
}

.tasks-summary-chip.is-critical {
  color: #9d5e20;
}

.tasks-summary-chip.is-overdue {
  color: #3f7b62;
}

.tasks-filter-menu {
  position: relative;
}

.tasks-filter-menu summary {
  list-style: none;
}

.tasks-filter-menu summary::-webkit-details-marker {
  display: none;
}

.tasks-filter-trigger {
  min-width: 84px;
}

.tasks-filter-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 48px));
  padding: 12px;
  display: grid;
  gap: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--card-shadow);
}

.tasks-filter-field {
  display: grid;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--muted);
}

.tasks-filter-field select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.tasks-toolbar-create.aircraft-header-create-button {
  padding: 6px 10px;
  min-height: auto;
  border-radius: 999px;
  font-size: 0.74rem;
}

.tasks-column-header-card {
  position: sticky;
  top: 82px;
  z-index: 15;
  padding: 0;
}

.tasks-column-header {
  display: grid;
  grid-template-columns: minmax(360px, 2.35fr) minmax(90px, 0.62fr) minmax(78px, 0.54fr) minmax(78px, 0.54fr) minmax(84px, 0.56fr) minmax(96px, 0.62fr) minmax(248px, 1.4fr);
  gap: 8px;
  align-items: center;
  padding: 11px 16px;
  border-radius: 24px;
  background: rgba(245, 241, 234, 0.94);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tasks-list-card {
  padding: 0;
  overflow: visible;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: -2px;
}

.tasks-list {
  display: grid;
}

.tasks-group-block {
  display: grid;
}

.tasks-group-divider {
  padding: 7px 16px 5px;
  color: #73859b;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(247, 244, 238, 0.86);
  border-top: 1px solid rgba(128, 112, 96, 0.08);
}

.tasks-group-list {
  display: grid;
}

.tasks-row {
  display: grid;
  grid-template-columns: minmax(360px, 2.35fr) minmax(90px, 0.62fr) minmax(78px, 0.54fr) minmax(78px, 0.54fr) minmax(84px, 0.56fr) minmax(96px, 0.62fr) minmax(248px, 1.4fr);
  gap: 8px;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(128, 112, 96, 0.12);
  background: rgba(255, 255, 255, 0.84);
}

.tasks-row.priority-critical {
  background: linear-gradient(90deg, rgba(181, 66, 66, 0.12), rgba(255, 252, 252, 0.98) 18%, rgba(255, 255, 255, 0.96) 54%);
}

.tasks-row.priority-high {
  background: linear-gradient(90deg, rgba(194, 107, 49, 0.08), rgba(255, 255, 255, 0.96) 18%);
}

.tasks-row-main {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}

.tasks-row-accent {
  border-radius: 999px;
  background: rgba(116, 104, 94, 0.18);
}

.tasks-row-accent.priority-critical {
  background: var(--danger);
}

.tasks-row-accent.priority-high {
  background: var(--warn);
}

.tasks-row-accent.priority-normal {
  background: #94a3b8;
}

.tasks-row-accent.priority-low {
  background: rgba(148, 163, 184, 0.45);
}

.tasks-row-titleblock {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.tasks-row-titleline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.tasks-row-titleline .item-title {
  min-width: 0;
}

.tasks-row-subline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.74rem;
}

.tasks-row-cell {
  min-width: 0;
  color: var(--text);
  font-size: 0.8rem;
}

.tasks-row-cell.is-overdue {
  color: var(--danger);
  font-weight: 600;
}

.tasks-row-cell.is-due-today {
  color: var(--warn);
  font-weight: 600;
}

.tasks-row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.tasks-row-actions .ams-chip-button {
  width: 100%;
  min-width: 0;
  padding: 4px 7px;
  font-size: 0.66rem;
  line-height: 1.12;
  white-space: nowrap;
}

.tasks-quick-action.done {
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-strong);
  font-weight: 700;
}

.tasks-quick-action.progress {
  border-color: rgba(194, 107, 49, 0.24);
  background: rgba(194, 107, 49, 0.08);
  color: #9a551c;
}

.tasks-quick-action.cancel {
  border-color: rgba(181, 66, 66, 0.18);
  background: rgba(181, 66, 66, 0.05);
  color: #b15f5f;
}

.tasks-quick-action.edit {
  color: #5f7086;
}

.task-management-priority,
.task-management-status,
.task-context-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  white-space: nowrap;
}

.task-management-priority.priority-critical {
  color: var(--danger);
  background: rgba(181, 66, 66, 0.1);
  border-color: rgba(181, 66, 66, 0.2);
}

.task-management-priority.priority-high {
  color: var(--warn);
  background: rgba(194, 107, 49, 0.08);
  border-color: rgba(194, 107, 49, 0.18);
}

.task-management-priority.priority-normal {
  color: #6d6256;
  background: rgba(116, 104, 94, 0.08);
  border-color: rgba(116, 104, 94, 0.14);
}

.task-management-priority.priority-low {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
  border-style: dashed;
}

.task-management-status.status-open {
  color: #2f6fb3;
}

.task-management-status.status-in_progress {
  color: var(--warn);
}

.task-management-status.status-done {
  color: var(--accent-strong);
}

.task-management-status.status-cancelled {
  color: var(--muted);
}

.task-context-link {
  cursor: pointer;
}

.task-context-badge.is-static {
  cursor: default;
}

.tasks-empty-state-wrap {
  padding: 8px 10px 12px;
}

.tasks-empty-state-wrap .empty-state {
  padding: 12px 14px;
  border-radius: 14px;
}

.tasks-toolbar-card .ams-toolbar-action {
  padding: 8px 14px;
  min-height: 40px;
  border-radius: 18px;
  font-size: 0.88rem;
}

.people-event-row.is-overdue,
.aircraft-inline-feed-row.is-overdue {
  box-shadow: inset 3px 0 0 var(--danger);
}

@media (max-width: 1100px) {
  .tasks-toolbar-card {
    top: 0;
  }

  .tasks-column-header-card {
    top: 84px;
  }

  .tasks-column-header-card {
    display: none;
  }

  .tasks-toolbar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tasks-toolbar-left,
  .tasks-toolbar-center,
  .tasks-toolbar-right {
    justify-content: flex-start;
  }

  .tasks-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tasks-row-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.note-card-open {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.note-card-head {
  align-items: flex-start;
}

.note-preview {
  display: -webkit-box;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.note-badge,
.note-tags span {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  padding: 4px 7px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-badge {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.16);
  color: var(--accent-strong);
  cursor: pointer;
}

.note-tags span {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
}

.note-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.note-timestamps,
.project-note-meta {
  color: rgba(107, 100, 92, 0.78);
  font-size: 0.68rem;
  line-height: 1.45;
}

.note-icon-button {
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(107, 100, 92, 0.78);
  cursor: pointer;
  font-size: 0.68rem;
}

.note-icon-button:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.48);
  color: var(--text);
}

.note-icon-button.danger:hover {
  color: var(--danger);
}

.note-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(31, 24, 20, 0.34);
}

.agenda-detail-backdrop,
.task-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(31, 24, 20, 0.34);
}

.agenda-detail-modal,
.task-detail-modal {
  width: min(760px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.task-detail-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.task-detail-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  line-height: 1.2;
}

.task-detail-meta,
.task-detail-stamps {
  color: var(--muted);
  font-size: 0.76rem;
}

.task-detail-body {
  white-space: pre-wrap;
  font-size: 0.92rem;
  line-height: 1.5;
}

.note-detail-modal {
  width: min(720px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 18px;
  display: grid;
  gap: 13px;
  border-radius: 8px;
}

.note-detail-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.note-detail-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  line-height: 1.25;
}

.note-detail-body {
  white-space: pre-wrap;
  line-height: 1.62;
  font-size: 0.92rem;
}

.item-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.card-copy {
  color: var(--muted);
  font-size: 0.85rem;
}

.item-meta,
.field-hint,
.timeline-date {
  color: var(--muted);
  font-size: 0.8rem;
}

.routine-item-active {
  border-color: rgba(15, 118, 110, 0.22);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.06);
}

.routine-days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.routine-day-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.routine-checklist {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.routine-checklist-row {
  display: flex;
  gap: 10px;
  align-items: start;
  font-size: 0.92rem;
}

.routine-bullet {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 auto;
}

.dashboard-routine-item {
  display: grid;
  gap: 10px;
}

.dashboard-routine-item {
  gap: 8px;
  padding: 8px 10px;
}

.dashboard-routine-item.expanded {
  background: rgba(255, 252, 248, 0.96);
}

.dashboard-routine-toggle {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.dashboard-routine-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-routine-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
}

.dashboard-routine-count {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.dashboard-routine-subline,
.dashboard-routine-check {
  font-size: 0.72rem;
  line-height: 1.45;
}

.dashboard-routine-subline {
  margin-top: 4px;
  color: var(--muted);
}

.dashboard-routine-expand {
  display: grid;
  gap: 6px;
  padding-top: 0;
}

.dashboard-routine-checklist {
  display: grid;
  gap: 2px;
}

.dashboard-routine-check {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--text);
  padding: 2px 0;
  cursor: pointer;
}

.dashboard-routine-check.done {
  color: var(--muted);
  text-decoration: line-through;
}

.dashboard-routine-check input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.routine-dashboard-checklist {
  display: grid;
  gap: 8px;
}

.routine-check-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(56, 43, 32, 0.08);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, opacity 140ms ease;
}

.routine-check-item input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.routine-check-item span {
  line-height: 1.4;
}

.routine-check-item.done {
  background: rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.22);
}

.routine-check-item.done span {
  color: var(--muted);
  text-decoration: line-through;
}

.task-priority-a { color: var(--danger); }
.task-priority-b { color: var(--warn); }
.task-priority-c { color: #2f6fb3; }

.tag {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  color: var(--text);
}

.tag.task-priority-a {
  color: var(--danger);
  background: rgba(181, 66, 66, 0.1);
  border-color: rgba(181, 66, 66, 0.18);
}

.tag.task-priority-b {
  color: var(--warn);
  background: rgba(194, 107, 49, 0.1);
  border-color: rgba(194, 107, 49, 0.18);
}

.tag.task-priority-c {
  color: #2f6fb3;
  background: rgba(47, 111, 179, 0.1);
  border-color: rgba(47, 111, 179, 0.18);
}

.tag.done {
  background: rgba(42, 139, 87, 0.12);
  color: var(--success);
}

.tag.doing {
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-strong);
}

.tag.warn {
  background: rgba(194, 107, 49, 0.12);
  color: var(--warn);
}

.tag.todo {
  background: rgba(194, 107, 49, 0.12);
  color: var(--warn);
}

.empty-state {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  background: rgba(255, 253, 249, 0.64);
}

.family-people-grid,
.family-sections,
.family-record-list,
.family-year-summary {
  display: grid;
  gap: 10px;
}

.family-people-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.family-person-card {
  display: grid;
  gap: 0;
  min-height: 112px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(250, 245, 236, 0.9));
}

.family-person-card[open] {
  grid-column: 1 / -1;
}

.family-person-summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-height: 112px;
  padding: 13px;
  cursor: pointer;
  list-style: none;
}

.family-person-summary::-webkit-details-marker {
  display: none;
}

.family-person-summary .item-title {
  line-height: 1.16;
}

.family-card-foot {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.family-open-label {
  align-self: flex-start;
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 8px;
  border: 1px solid rgba(56, 43, 32, 0.09);
  background: rgba(255, 255, 255, 0.54);
  color: var(--accent-strong);
  font-size: 0.66rem;
}

.family-person-card[open] .family-open-label {
  color: var(--muted);
}

.family-person-card[open] .family-open-label::before {
  content: "Acik ";
}

.family-person-detail {
  display: grid;
  gap: 12px;
  padding: 0 13px 13px;
}

.family-person-top,
.family-record {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.family-actions,
.family-section-actions,
.family-summary-strip,
.family-alert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.family-actions {
  justify-content: flex-end;
  flex: 0 0 auto;
}

.family-actions .inline-button,
.family-section-actions .inline-button {
  padding: 5px 7px;
  border-radius: 8px;
  font-size: 0.68rem;
}

.family-create-button {
  width: auto;
  min-width: 160px;
  margin-top: 0;
  padding: 10px 14px;
  border-radius: 8px;
}

.family-section {
  display: grid;
  gap: 8px;
  padding: 11px;
  border-radius: 12px;
  border: 1px solid rgba(56, 43, 32, 0.08);
  background: rgba(255, 255, 255, 0.56);
}

.family-section h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}

.family-subsection {
  display: grid;
  gap: 7px;
}

.family-subsection-title {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.family-field-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.family-fact {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(56, 43, 32, 0.07);
  background: rgba(255, 252, 248, 0.84);
}

.family-fact span {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.family-fact strong {
  overflow-wrap: anywhere;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
}

.family-record {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(56, 43, 32, 0.08);
  background: rgba(255, 253, 249, 0.86);
}

.family-record-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 7px 10px;
  font: inherit;
  color: inherit;
  text-align: left;
}

.family-record-link {
  width: 100%;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.family-record-link:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.22);
  background: rgba(247, 252, 250, 0.96);
}

.family-record-inline-title {
  flex: 0 0 auto;
  max-width: min(34%, 280px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
}

.family-record-inline-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.8rem;
}

.family-record .item-title {
  font-size: 0.92rem;
}

.family-record .small,
.family-notes {
  margin: 4px 0 0;
}

.family-year-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(56, 43, 32, 0.08);
  background: rgba(255, 253, 249, 0.86);
  font-size: 0.78rem;
}

.family-year-row strong,
.family-year-row span {
  overflow-wrap: anywhere;
}

.project-module {
  align-content: start;
  min-height: 100%;
  height: 100%;
}

.aircraft-cockpit-layout {
  align-items: start;
  min-height: 100%;
}

.aircraft-project-navigator,
.aircraft-project-cockpit {
  padding: 14px;
}

.aircraft-project-cockpit {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 14px;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
}

.aircraft-cockpit-layout {
  min-height: 100%;
  height: 100%;
}

.aircraft-project-navigator {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 100%;
}

.aircraft-project-nav-list {
  margin-top: 10px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.aircraft-project-nav-list .family-record-link.active {
  border-color: rgba(15, 118, 110, 0.36);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.16), 0 10px 22px rgba(15, 118, 110, 0.12);
  background: linear-gradient(180deg, rgba(247, 252, 250, 0.99), rgba(225, 244, 238, 0.99));
  transform: translateX(2px);
}

.aircraft-project-nav-list .family-record-link.active .family-record-inline-title {
  color: #155e55;
}

.aircraft-project-nav-list .family-record-link.active .family-record-inline-meta {
  color: #4d7e77;
}

.aircraft-project-card-clickable {
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.aircraft-project-card-clickable:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.22);
  background: rgba(247, 252, 250, 0.98);
}

.aircraft-workspace-header,
.aircraft-workspace-actions,
.aircraft-workspace-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.aircraft-workspace-tabbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.aircraft-workspace-tabbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}

.aircraft-header-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.aircraft-status-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.aircraft-status-chip {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(208, 218, 230, 0.68);
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.94), rgba(248, 251, 255, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 10px 22px rgba(71, 92, 121, 0.05);
}

.aircraft-status-chip span {
  color: var(--muted);
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.aircraft-status-chip strong {
  font-size: 0.84rem;
}

.aircraft-workspace-tabs {
  flex: 1 1 auto;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.aircraft-workspace-tabs::-webkit-scrollbar {
  display: none;
}

.aircraft-workspace-tabs .inline-button {
  flex: 0 0 auto;
  padding: 7px 13px;
}

.aircraft-workspace-tabs .inline-button.active {
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 0 0 1px rgba(15, 118, 110, 0.08);
  color: var(--accent-strong);
}

.aircraft-workspace-body {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.aircraft-workspace-body.aircraft-workspace-body-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.aircraft-overview-grid {
  gap: 12px;
  min-height: 100%;
  height: 100%;
  align-items: stretch;
}

.aircraft-overview-panel {
  padding: 14px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.aircraft-project-info-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.aircraft-project-info-panel .stack {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.aircraft-overview-stack {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  height: 100%;
}

.aircraft-overview-feed {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  height: 100%;
}

.aircraft-inline-feed-scroll {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.aircraft-feed-header,
.aircraft-feed-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.aircraft-feed-header {
  justify-content: space-between;
  flex-wrap: nowrap;
}

.aircraft-feed-header .panel-title,
.aircraft-feed-header .item-meta {
  margin: 0;
}

.aircraft-feed-header .panel-title {
  font-size: 0.79rem;
  letter-spacing: 0.04em;
}

.aircraft-feed-header .item-meta {
  font-size: 0.66rem;
}

.aircraft-feed-add-button {
  padding: 4px 8px;
  font-size: 0.68rem;
  line-height: 1;
}

.aircraft-inline-feed-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(208, 218, 230, 0.58);
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.94), rgba(248, 251, 255, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  text-align: left;
}

.aircraft-inline-feed-row:hover {
  border-color: rgba(46, 125, 112, 0.22);
  transform: translateY(-1px);
}

.aircraft-inline-feed-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.aircraft-task-check-button {
  min-width: 52px;
  padding: 4px 8px;
  font-size: 0.66rem;
  line-height: 1;
  flex: 0 0 auto;
}

.aircraft-inline-feed-main,
.aircraft-inline-feed-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aircraft-inline-feed-main {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.82rem;
  color: var(--text);
}

.aircraft-inline-feed-meta {
  flex: 0 0 auto;
  font-size: 0.7rem;
  color: var(--muted);
}

.aircraft-record-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid rgba(225, 232, 240, 0.72);
  text-align: left;
}

.aircraft-record-row-button {
  padding: 10px 0;
  border: 0;
  background: transparent;
}

.aircraft-record-row-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.aircraft-record-row-main .item-title {
  font-size: 0.9rem;
  line-height: 1.25;
}

.aircraft-record-row-main .item-meta {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aircraft-record-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding-top: 2px;
}

.aircraft-task-stack,
.aircraft-group-stack {
  display: grid;
  gap: 10px;
}

.aircraft-task-stack {
  padding-bottom: 10px;
}

.aircraft-workpack-intro {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.aircraft-workpack-shell {
  min-height: 100%;
  height: 100%;
}

.aircraft-workpack-nav,
.aircraft-workpack-detail {
  display: grid;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.aircraft-workpack-nav {
  grid-template-rows: auto minmax(0, 1fr);
}

.aircraft-workpack-nav-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.aircraft-workpack-nav-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(218, 226, 236, 0.78);
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.96), rgba(248, 251, 255, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  text-align: left;
}

.aircraft-workpack-nav-item.active {
  border-color: rgba(15, 118, 110, 0.34);
  background: linear-gradient(180deg, rgba(247, 252, 250, 0.98), rgba(236, 248, 244, 0.97));
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08), 0 12px 28px rgba(15, 118, 110, 0.08);
}

.aircraft-workpack-nav-copy,
.aircraft-workpack-nav-side,
.aircraft-workpack-detail-title,
.aircraft-workpack-subtask-side {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.aircraft-workpack-nav-side,
.aircraft-workpack-subtask-side {
  justify-items: end;
}

.aircraft-workpack-nav-item .item-title {
  font-size: 1.05rem;
  line-height: 1.2;
}

.aircraft-workpack-nav-item .item-meta {
  font-size: 0.78rem;
  line-height: 1.3;
  color: #74849a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aircraft-workpack-nav-status {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  line-height: 1;
  color: #6f8097;
}

.aircraft-workpack-detail {
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 12px;
}

.aircraft-workpack-detail-head,
.aircraft-workpack-subtask-row,
.aircraft-workpack-subtask-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.aircraft-workpack-detail-titleblock {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.aircraft-workpack-detail-controls {
  display: grid;
  justify-items: end;
  gap: 8px;
  flex: 0 0 auto;
}

.aircraft-workpack-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.aircraft-workpack-subtask-cta {
  text-align: right;
}

.aircraft-workpack-progress {
  margin-top: 2px;
}

.aircraft-workpack-subtasks {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
}

.aircraft-workpack-subtask-list {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.aircraft-workpack-subtask-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(218, 226, 236, 0.74);
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.96), rgba(248, 251, 255, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.aircraft-workpack-subtask-card > summary {
  list-style: none;
}

.aircraft-workpack-subtask-card > summary::-webkit-details-marker {
  display: none;
}

.aircraft-workpack-subtask-card.is-expanded {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 24px rgba(71, 92, 121, 0.07);
}

.aircraft-workpack-subtask-button {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.aircraft-workpack-subtask-copy {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.aircraft-workpack-subtask-topline,
.aircraft-workpack-subtask-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.aircraft-workpack-subtask-topactions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.aircraft-workpack-subtask-bottomleft,
.aircraft-workpack-subtask-bottomactions,
.aircraft-workpack-inline-check {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aircraft-workpack-inline-check {
  cursor: pointer;
}

.aircraft-workpack-inline-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent);
}

.aircraft-workpack-inline-check span {
  font-size: 0.82rem;
  color: #6d7f96;
}

.aircraft-workpack-subtask-copy .item-title {
  font-size: 1.02rem;
  line-height: 1.25;
}

.aircraft-workpack-subtask-copy .item-meta {
  font-size: 0.78rem;
  line-height: 1.2;
  color: #74849a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aircraft-workpack-subtask-body {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.aircraft-workpack-subtask-body[hidden] {
  display: none;
}

.aircraft-workpack-subtask-actions {
  justify-content: flex-end;
}

.aircraft-workpack-step-list {
  display: grid;
  gap: 6px;
  padding-top: 4px;
}

.aircraft-workpack-step-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 42px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(225, 232, 240, 0.78);
}

.aircraft-workpack-step-checkbox {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--accent);
}

.aircraft-workpack-step-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.aircraft-workpack-step-title {
  min-width: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aircraft-workpack-step-row.is-complete .aircraft-workpack-step-title,
.aircraft-workpack-step-toggle.done .aircraft-workpack-step-title {
  color: var(--muted);
  text-decoration: line-through;
}

.aircraft-workpack-step-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aircraft-workpack-action,
.aircraft-workpack-textaction {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  color: #73839a;
  font-size: 0.8rem;
  line-height: 1.1;
}

.aircraft-workpack-step-toggle:hover .aircraft-workpack-step-title,
.aircraft-workpack-action:hover,
.aircraft-workpack-textaction:hover {
  color: #30465d;
}

.aircraft-workpack-action.danger,
.aircraft-workpack-textaction.danger {
  color: #a05858;
}

.aircraft-main-task-head,
.aircraft-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.aircraft-main-task-head:hover .item-title,
.aircraft-group-head:hover .item-title {
  color: var(--accent-strong);
}

.aircraft-main-task-card.is-expanded,
.aircraft-group-card.is-expanded {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 16px 34px rgba(71, 92, 121, 0.08);
}

.aircraft-group-stack {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 2px solid rgba(15, 118, 110, 0.12);
}

.aircraft-group-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(208, 218, 230, 0.64);
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.92), rgba(247, 250, 255, 0.84));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 8px 22px rgba(71, 92, 121, 0.05);
}

.aircraft-checklist {
  display: grid;
  gap: 8px;
}

.aircraft-checklist-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(208, 218, 230, 0.58);
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.94), rgba(248, 251, 255, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.aircraft-checklist-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.aircraft-checklist-copy strong,
.aircraft-checklist-copy span {
  overflow-wrap: anywhere;
}

.aircraft-main-task-card .data-card-actions,
.aircraft-group-card .data-card-actions,
.aircraft-checklist-row .data-card-actions {
  gap: 5px;
}

.aircraft-project-info-panel .mini-stat,
.aircraft-overview-feed .mini-stat {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(208, 218, 230, 0.54);
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.88), rgba(248, 251, 255, 0.8));
}

.aircraft-mini-stat {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(208, 218, 230, 0.54);
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.88), rgba(248, 251, 255, 0.8));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.aircraft-header-create-button {
  padding: 6px 10px;
  font-size: 0.74rem;
  line-height: 1.1;
  color: #eef6ff;
  border: 1px solid rgba(18, 64, 112, 0.55);
  background: linear-gradient(180deg, #2f5f99 0%, #234b79 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 18px rgba(19, 52, 92, 0.18);
}

.aircraft-header-create-button:hover {
  color: #f7fbff;
  border-color: rgba(16, 55, 100, 0.62);
  background: linear-gradient(180deg, #376ca9 0%, #275381 100%);
}

.aircraft-projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.aircraft-projects-grid .project-card {
  min-width: 0;
}

.aircraft-projects-grid .item-title {
  font-size: 0.9rem;
}

.aircraft-projects-grid .data-card {
  padding: 12px;
}

.project-toolbar {
  padding: 2px 0 0;
}

.project-grid-shell {
  grid-column: 1 / -1;
  align-self: start;
}

.project-toolbar-row,
.project-system-card-head,
.project-system-card-footer,
.project-detail-top,
.project-detail-head,
.project-detail-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.project-toolbar-count,
.project-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid transparent;
  white-space: nowrap;
}

.project-toolbar-count {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.project-toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.project-system-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.project-system-card {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(250, 245, 236, 0.92));
}

.project-card-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.project-card-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.project-card-row-title {
  align-items: flex-start;
}

.project-card-row-meta {
  align-items: start;
}

.project-system-card .item-title,
.project-detail-title {
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(32, 26, 20, 0.08);
  overflow: hidden;
}

.project-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d8b7f 0%, #58b7a4 100%);
}

.project-next-action-copy {
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.project-progress-count,
.project-card-dates {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

.project-card-dates {
  display: grid;
  gap: 2px;
  justify-items: end;
  white-space: nowrap;
}

.project-status-pill.active {
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.16);
}

.project-status-pill.paused {
  color: var(--warn);
  background: rgba(194, 107, 49, 0.12);
  border-color: rgba(194, 107, 49, 0.16);
}

.project-status-pill.planning {
  color: #355e9a;
  background: rgba(74, 115, 194, 0.12);
  border-color: rgba(74, 115, 194, 0.16);
}

.project-status-pill.completed {
  color: var(--success);
  background: rgba(42, 139, 87, 0.12);
  border-color: rgba(42, 139, 87, 0.16);
}

.project-card-actions {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}

.project-icon-button {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
}

.project-icon-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
}

.project-icon-button.danger:hover {
  color: var(--danger);
}

.project-system-empty {
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  background: rgba(255, 253, 249, 0.72);
  width: min(240px, 100%);
}

.project-toolbar-action {
  width: auto;
  margin-top: 0;
  padding: 9px 14px;
}

.project-toolbar-action.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
}

.project-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(31, 24, 20, 0.38);
}

.project-detail-modal {
  width: min(1120px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: hidden;
  padding: 14px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.project-detail-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 10px;
  padding-right: 2px;
}

.project-detail-head {
  align-items: flex-start;
}

.project-detail-title {
  font-family: "Space Grotesk", sans-serif;
}

.project-detail-section {
  display: grid;
  gap: 7px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  background: rgba(15, 118, 110, 0.06);
}

.project-detail-section-top,
.project-phase-row,
.project-phase-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-detail-goal {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  line-height: 1.35;
}

.project-detail-next {
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(15, 118, 110, 0.12);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  line-height: 1.35;
}

.project-detail-label {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-detail-list {
  display: grid;
  gap: 6px;
}

.project-detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(180px, 1fr);
  gap: 10px;
  align-items: start;
}

.project-detail-panel {
  display: grid;
  gap: 8px;
  min-height: 220px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(56, 43, 32, 0.08);
}

.project-detail-panel-tasks {
  background: rgba(255, 255, 255, 0.58);
}

.project-detail-panel-notes {
  background: rgba(247, 241, 230, 0.72);
}

.project-detail-panel-phases {
  background: rgba(255, 255, 255, 0.38);
}

.project-check-row,
.project-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
}

.project-check-row input,
.project-task-row input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--accent);
}

.project-check-row {
  justify-content: flex-start;
}

.project-task-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
}

.project-task-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.project-task-row.done .project-task-title {
  color: var(--muted);
  text-decoration: line-through;
}

.project-detail-notes {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  list-style: none;
}

.project-note-row {
  display: grid;
  gap: 5px;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid rgba(56, 43, 32, 0.08);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.45;
}

.project-note-row-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.project-note-title {
  display: block;
  overflow: hidden;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-note-meta {
  color: rgba(107, 100, 92, 0.78);
  font-size: 0.68rem;
  line-height: 1.3;
}

.project-task-group {
  display: grid;
  gap: 5px;
}

.project-task-group + .project-task-group {
  padding-top: 7px;
  border-top: 1px solid rgba(56, 43, 32, 0.08);
}

.project-task-group-title {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.3;
}

.project-task-group-list {
  display: grid;
  gap: 6px;
}

.project-phase-row {
  padding: 4px 0;
}

.project-phase-actions {
  flex: 0 0 auto;
}

.project-link-meta,
.project-detail-empty,
.project-system-card-footer .inline-button,
.project-system-card-footer .item-meta {
  color: var(--muted);
  font-size: 0.74rem;
}

.project-detail-empty {
  padding: 2px 0;
}

.editor-dialog {
  width: min(680px, calc(100vw - 32px));
  border: 0;
  padding: 0;
  border-radius: 24px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 32px 90px rgba(46, 32, 18, 0.28);
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  z-index: 90;
}

.editor-dialog::backdrop {
  background: rgba(31, 24, 20, 0.42);
}

body.editor-open::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(31, 24, 20, 0.42);
  z-index: 40;
}

.editor-dialog form {
  padding: 22px;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.editor-fields {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field label {
  font-size: 0.82rem;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
}

.field input:focus::placeholder,
.field textarea:focus::placeholder {
  color: transparent;
}

.field-readonly {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  color: rgba(107, 100, 92, 0.82);
  font-size: 0.8rem;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-group.checkbox-group-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.checkbox-chip {
  position: relative;
  cursor: pointer;
}

.checkbox-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  text-align: center;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.checkbox-chip input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.checkbox-chip:hover span {
  transform: translateY(-1px);
}

.single-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  cursor: pointer;
}

.single-checkbox input {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--accent);
}

.single-checkbox span {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.dialog-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 18px;
  padding: 0;
}

.dialog-actions-spacer {
  flex: 1;
}

.dialog-actions .action {
  width: auto;
  margin-top: 0;
}

.dialog-actions .action.danger {
  color: var(--danger);
  border-color: rgba(181, 66, 66, 0.28);
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.self-development-module {
  align-content: start;
}

.self-development-toolbar,
.self-development-card-top,
.self-development-detail-top,
.self-development-meta-row,
.self-development-foot,
.self-development-card-actions,
.self-development-stamps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.self-development-toolbar {
  justify-content: space-between;
  padding: 2px 0 4px;
}

.self-development-count,
.self-development-pill,
.self-development-status,
.self-development-priority {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  padding: 4px 7px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.self-development-create {
  width: auto;
  margin-top: 0;
  padding: 9px 13px;
  border-radius: 8px;
}

.self-development-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.self-development-card {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.self-development-card-top,
.self-development-detail-top {
  justify-content: space-between;
  align-items: flex-start;
}

.self-development-open,
.self-development-next {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.self-development-open .item-title,
.self-development-detail-title {
  display: block;
  overflow: hidden;
  font-size: 0.96rem;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.self-development-next {
  display: -webkit-box;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.self-development-level,
.self-development-foot,
.self-development-stamps,
.self-development-empty-line {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.self-development-foot,
.self-development-stamps {
  justify-content: space-between;
}

.self-development-status.active {
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.16);
}

.self-development-status.planned {
  color: #355e9a;
  background: rgba(74, 115, 194, 0.12);
  border-color: rgba(74, 115, 194, 0.16);
}

.self-development-status.paused,
.self-development-priority.high {
  color: var(--warn);
  background: rgba(194, 107, 49, 0.12);
  border-color: rgba(194, 107, 49, 0.16);
}

.self-development-status.completed {
  color: var(--success);
  background: rgba(42, 139, 87, 0.12);
  border-color: rgba(42, 139, 87, 0.16);
}

.self-development-priority.medium {
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.14);
}

.self-development-priority.low {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
}

.self-development-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(31, 24, 20, 0.34);
}

.self-development-detail-modal {
  width: min(980px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: hidden;
  padding: 14px;
  border-radius: 8px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.self-development-detail-title-wrap {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.self-development-detail-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 10px;
  padding-right: 2px;
}

.self-development-summary,
.self-development-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(56, 43, 32, 0.08);
  background: rgba(255, 255, 255, 0.56);
}

.self-development-goal {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  line-height: 1.38;
}

.self-development-next-block {
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.12);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  line-height: 1.35;
}

.self-development-notes {
  white-space: pre-wrap;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.self-development-detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.self-development-detail-columns .self-development-panel:nth-child(3) {
  grid-column: 1 / -1;
}

.self-development-linked-list {
  display: grid;
  gap: 6px;
}

.self-development-linked-row,
.self-development-note-row,
.self-development-milestone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid rgba(56, 43, 32, 0.08);
  background: rgba(255, 255, 255, 0.56);
}

.self-development-note-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.self-development-milestone {
  grid-template-columns: 16px minmax(0, 1fr);
}

.self-development-linked-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.self-development-linked-main strong,
.self-development-milestone strong {
  overflow: hidden;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.self-development-linked-main span {
  display: -webkit-box;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.self-development-linked-row.done strong,
.self-development-milestone.done strong {
  color: var(--muted);
  text-decoration: line-through;
}

.travel-module {
  align-content: start;
}

.travel-topbar,
.travel-actions,
.travel-filterbar,
.travel-trip-head,
.travel-trip-meta,
.travel-detail-head,
.travel-section-head,
.travel-record,
.travel-record-actions {
  display: flex;
  gap: 10px;
}

.travel-topbar {
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 251, 245, 0.78);
  box-shadow: 0 14px 34px rgba(68, 50, 31, 0.08);
}

.travel-actions {
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.travel-actions.compact {
  flex-wrap: nowrap;
}

.travel-action {
  width: auto;
  min-height: 34px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.74rem;
}

.travel-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.travel-summary article {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(56, 43, 32, 0.1);
  background: rgba(255, 251, 245, 0.68);
}

.travel-summary span,
.travel-trip-meta,
.travel-route,
.travel-record span,
.travel-record p,
.travel-empty-line,
.travel-notes,
.travel-overview span {
  color: var(--muted);
}

.travel-summary span,
.travel-trip-meta,
.travel-record span,
.travel-record p,
.travel-empty-line,
.travel-overview span {
  font-size: 0.74rem;
  line-height: 1.35;
}

.travel-summary strong,
.travel-trip-head strong,
.travel-detail-title,
.travel-section h4,
.travel-record strong,
.travel-overview strong {
  font-family: "Space Grotesk", sans-serif;
}

.travel-summary strong {
  display: block;
  margin-top: 7px;
  font-size: 1.05rem;
}

.travel-filterbar {
  flex-wrap: wrap;
  padding: 3px;
  border-radius: 14px;
  border: 1px solid rgba(56, 43, 32, 0.1);
  background: rgba(255, 251, 245, 0.46);
  width: fit-content;
}

.travel-filter {
  min-height: 30px;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.74rem;
}

.travel-filter.active {
  color: var(--accent-strong);
  border-color: rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.1);
}

.travel-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 2fr);
  gap: 12px;
  align-items: start;
}

.travel-trip-list,
.travel-record-list,
.travel-section-grid,
.travel-detail-panel {
  display: grid;
  gap: 8px;
}

.travel-trip-list {
  max-height: calc(100vh - 290px);
  overflow: auto;
  padding-right: 3px;
}

.travel-trip-card,
.travel-detail-panel,
.travel-section {
  border: 1px solid rgba(56, 43, 32, 0.1);
  background: rgba(255, 251, 245, 0.72);
}

.travel-trip-card {
  border-radius: 14px;
}

.travel-trip-card.active {
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(240, 252, 249, 0.78);
}

.travel-trip-open {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.travel-trip-head,
.travel-detail-head,
.travel-section-head,
.travel-record {
  align-items: flex-start;
  justify-content: space-between;
}

.travel-trip-meta {
  flex-wrap: wrap;
}

.travel-route {
  font-size: 0.78rem;
}

.travel-status {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(56, 43, 32, 0.1);
  font-size: 0.66rem;
  background: rgba(56, 43, 32, 0.05);
  color: var(--muted);
}

.travel-status.active,
.travel-status.booking {
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.1);
}

.travel-status.completed {
  color: var(--success);
  background: rgba(42, 139, 87, 0.1);
}

.travel-status.cancelled {
  color: var(--danger);
  background: rgba(181, 66, 66, 0.1);
}

.travel-detail-panel {
  padding: 14px;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(68, 50, 31, 0.08);
}

.travel-detail-title {
  font-size: 1.32rem;
  line-height: 1.05;
}

.travel-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.travel-overview div {
  display: grid;
  gap: 4px;
  min-height: 54px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(56, 43, 32, 0.1);
  background: rgba(255, 255, 255, 0.48);
}

.travel-notes {
  margin: 0;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(56, 43, 32, 0.04);
  font-size: 0.78rem;
  line-height: 1.45;
}

.travel-section-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.travel-section {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 138px;
  padding: 12px;
  border-radius: 14px;
}

.travel-section h4 {
  margin: 0;
  font-size: 0.96rem;
}

.travel-record {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(56, 43, 32, 0.08);
  background: rgba(255, 252, 248, 0.78);
}

.travel-record > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.travel-record strong,
.travel-record span,
.travel-record p {
  overflow: hidden;
  text-overflow: ellipsis;
}

.travel-record p {
  margin: 0;
}

.travel-record-actions {
  flex: 0 0 auto;
  align-items: center;
}

.travel-empty-line {
  padding: 8px 0;
}

.business-module {
  align-content: start;
}

.business-topbar,
.business-actions,
.business-section-title,
.business-panel-head,
.business-record-main,
.business-record-actions,
.business-chip-row {
  display: flex;
  gap: 10px;
}

.business-topbar,
.business-section,
.business-bya-panel {
  border: 1px solid rgba(56, 43, 32, 0.1);
  background: rgba(255, 251, 245, 0.74);
}

.business-topbar {
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(68, 50, 31, 0.08);
}

.business-actions {
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.business-action {
  width: auto;
  min-height: 34px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.74rem;
}

.business-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.business-money-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.business-summary article,
.business-money-summary article {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(56, 43, 32, 0.1);
  background: rgba(255, 251, 245, 0.68);
}

.business-summary span,
.business-money-summary span,
.business-record span,
.business-record p,
.business-empty {
  color: var(--muted);
}

.business-summary span,
.business-money-summary span,
.business-record span,
.business-record p,
.business-chip-row span {
  font-size: 0.74rem;
  line-height: 1.35;
}

.business-summary strong,
.business-money-summary strong,
.business-section-title h3,
.business-bya-panel h4,
.business-record strong {
  font-family: "Space Grotesk", sans-serif;
}

.business-summary strong,
.business-money-summary strong {
  display: block;
  margin-top: 7px;
  font-size: 1.05rem;
}

.business-money-summary article {
  background: rgba(255, 252, 248, 0.78);
}

.business-money-summary article.positive strong {
  color: var(--success);
}

.business-money-summary article.negative strong {
  color: var(--danger);
}

.business-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(68, 50, 31, 0.07);
}

.business-section-live {
  border-color: rgba(15, 118, 110, 0.16);
  background: rgba(240, 252, 249, 0.62);
}

.business-section-title,
.business-panel-head,
.business-record-main {
  align-items: flex-start;
  justify-content: space-between;
}

.business-section-title h3,
.business-bya-panel h4 {
  margin: 0;
}

.business-section-title h3 {
  font-size: 1.05rem;
}

.business-card-grid,
.business-bya-grid,
.business-record-list {
  display: grid;
  gap: 8px;
}

.business-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.business-bya-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.business-bya-panel {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 138px;
  padding: 12px;
  border-radius: 14px;
}

.business-bya-panel:first-child {
  grid-column: 1 / -1;
}

.business-record {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(56, 43, 32, 0.08);
  background: rgba(255, 252, 248, 0.82);
}

.business-record-main > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.business-record strong,
.business-record span,
.business-record p {
  overflow: hidden;
  text-overflow: ellipsis;
}

.business-record p {
  margin: 0;
}

.business-record-actions {
  flex: 0 0 auto;
  align-items: center;
}

.business-chip-row {
  flex-wrap: wrap;
}

.business-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 8px;
  border: 1px solid rgba(56, 43, 32, 0.09);
  background: rgba(56, 43, 32, 0.04);
}

@media (max-width: 1024px) {
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .sidebar {
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--sidebar-border);
  }

  .stats-grid,
  .split-grid,
  .dashboard-grid,
  .dashboard-hero,
  .data-management-grid,
  .health-summary,
  .health-metric-grid,
  .jobs-hero,
  .jobs-domains,
  .obligations-header,
  .obligations-controls,
  .obligations-empty,
  .tax-stats,
  .tax-filters,
  .tax-detail-grid,
  .finance-topbar,
  .finance-summary-grid,
  .finance-summary-grid-4,
  .finance-summary-grid-5,
  .finance-collection-grid,
  .finance-trip-grid,
  .finance-trip-costs,
  .travel-summary,
  .business-summary,
  .business-money-summary,
  .business-card-grid,
  .business-bya-grid,
  .travel-layout,
  .travel-overview,
  .travel-section-grid {
    grid-template-columns: 1fr;
  }

  .obligation-stats,
  .obligation-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jobs-workspace,
  .jobs-context-bar,
  .jobs-quick-event-form {
    grid-template-columns: 1fr;
  }

  .jobs-rail {
    max-height: none;
    overflow: visible;
  }

  .jobs-tree-list {
    overflow: visible;
    padding-right: 0;
  }

  .jobs-event-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid-block {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .routine-summary-grid {
    grid-template-columns: 1fr;
  }

  .family-people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .family-field-grid {
    grid-template-columns: 1fr;
  }

  .project-system-grid {
    grid-template-columns: 1fr;
  }

  .project-detail-columns {
    grid-template-columns: 1fr;
  }

  .self-development-grid,
  .self-development-detail-columns {
    grid-template-columns: 1fr;
  }

  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-12 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .main,
  .sidebar {
    padding: 18px;
  }

  .hero,
  .module-banner,
  .health-topbar,
  .travel-topbar,
  .business-topbar,
  .business-section-title,
  .business-record-main,
  .card-header,
  .tax-header,
  .tax-empty,
  .tax-detail-head,
  .travel-detail-head,
  .travel-record,
  .family-person-top,
  .family-record,
  .row-between,
  .list-row,
  .banner-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-heading-row {
    align-items: flex-start;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .health-tabs {
    width: 100%;
  }

  .travel-filterbar,
  .travel-actions,
  .business-actions {
    width: 100%;
  }

  .travel-actions.compact {
    flex-wrap: wrap;
  }

  .documents-topbar,
  .documents-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .documents-tabs {
    width: 100%;
  }

  .documents-tab,
  .documents-search,
  .documents-filter,
  .documents-tag-filter,
  .documents-primary-action {
    width: 100%;
  }

  .documents-primary-action {
    margin-left: 0;
  }

  .travel-action,
  .business-action,
  .travel-filter {
    flex: 1;
  }

  .health-tab {
    flex: 1;
  }

  .health-supplement-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .health-supplement-actions {
    justify-content: flex-start;
  }

  .family-people-grid {
    grid-template-columns: 1fr;
  }

  .family-year-row {
    grid-template-columns: 1fr;
  }

  .obligation-stats,
  .obligation-card-grid,
  .tax-case-card {
    grid-template-columns: 1fr;
  }

  .tax-card-side {
    justify-content: flex-start;
  }

  .obligation-section summary,
  .obligation-finance-line {
    align-items: stretch;
    flex-direction: column;
  }

  body {
    height: auto;
    overflow: auto;
  }

  .main,
  .module-root {
    height: auto;
    overflow: visible;
  }
}

@media (max-width: 1024px) {
  .obligation-stats {
    display: flex;
    grid-template-columns: none;
  }

  .obligation-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .obligation-section summary,
  .obligation-card-right {
    flex-direction: row;
    align-items: center;
  }

  .obligation-card {
    grid-template-columns: 1fr;
  }

  .obligation-card-right {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Finance Expenses review layer */
.finance-expenses-shell,
.expense-panel {
  border-radius: 14px;
}

.finance-expenses-shell {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.68);
}

.finance-expenses-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.finance-expenses-head p {
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.78rem;
}

.finance-expense-primary,
.expense-small-button {
  padding: 7px 10px;
  min-height: 30px;
  font-size: 0.72rem;
}

.expense-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: end;
}

.expense-compact-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.expense-compact-grid .finance-summary-card {
  min-height: 74px;
  padding: 11px;
  border-radius: 12px;
}

.expense-compact-grid .finance-summary-card strong {
  margin-top: 6px;
  font-size: 1rem;
}

.expense-panel {
  padding: 14px;
}

.expense-section-title {
  margin-bottom: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
}

.expense-table-wrap {
  overflow-x: auto;
}

.expense-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.expense-table th,
.expense-table td {
  padding: 8px 7px;
  border-bottom: 1px solid rgba(56, 43, 32, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 0.74rem;
}

.expense-table th {
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.expense-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

.expense-review-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.expense-review-list article,
.expense-review-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px;
  border-radius: 8px;
  border: 1px solid rgba(194, 107, 49, 0.12);
  background: rgba(194, 107, 49, 0.055);
}

.finance-compact-summary .finance-summary-card {
  min-height: 74px;
  padding: 11px;
  border-radius: 8px;
}

.expense-only-module .finance-subnav,
.expense-only-module .finance-panel {
  border-radius: 8px;
}

.expense-only-module .finance-panel {
  padding: 14px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

.expense-only-module .finance-panel-head {
  margin-bottom: 10px;
}

.expense-only-module .finance-panel-head h4 {
  margin: 2px 0 0;
  font-size: 1rem;
  line-height: 1.25;
}

.expense-records-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.expense-records-head .eyebrow {
  margin-bottom: 1px;
}

.expense-records-head h4 {
  line-height: 1.05;
}

.expense-only-module .finance-panel .eyebrow {
  letter-spacing: 0.08em;
  font-size: 0.62rem;
}

.expense-only-module .finance-ranked-list > div,
.expense-only-module .finance-mini-list > div,
.expense-only-module .finance-report-list > div {
  min-height: 30px;
  padding: 7px 9px;
  background: rgba(56, 43, 32, 0.035);
}

.expense-only-module .finance-chart-row {
  grid-template-columns: 34px minmax(0, 1fr) minmax(64px, auto);
}

.expense-only-module .finance-chart-row div,
.expense-only-module .finance-ratio-bar {
  height: 8px;
}

.finance-compact-summary .finance-summary-card strong {
  margin-top: 6px;
  font-size: 1rem;
}

.mini-action {
  width: auto;
  min-height: 28px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  font-size: 0.7rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.mini-action.danger {
  color: var(--warn);
}

.finance-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(15, 118, 110, 0.07);
  color: var(--accent-strong);
  font-size: 0.68rem;
  line-height: 1;
}

.expense-only-module .finance-row-actions {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 6px;
}

.expenses-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 12px;
  align-items: start;
}

.expenses-overview-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.expenses-overview-main .finance-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.expenses-insight-grid {
  display: block;
}

.expense-insight-primary {
  min-width: 0;
}

.expense-review-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: 340px;
}

.expense-stacked-divider {
  height: 1px;
  margin: 12px 0;
  background: var(--line);
}

.expense-stacked-head {
  margin-top: 0;
}

.expense-review-panel .expense-review-list {
  overflow-y: auto;
  padding-right: 4px;
}

.expense-only-module .finance-filterbar {
  display: grid;
  grid-template-columns: 1.05fr 0.52fr 0.72fr 1.05fr 0.66fr 0.66fr 0.8fr 0.8fr 0.9fr 1.1fr;
  gap: 8px;
  align-items: end;
}

.expense-only-module .finance-filter-control {
  min-width: 0;
}

.expense-only-module .finance-filter-control-search input,
.expense-only-module .finance-filter-control select,
.expense-only-module .finance-filter-control input {
  width: 100%;
}

.expense-only-module .finance-table th:last-child,
.expense-only-module .finance-table td:last-child {
  min-width: 210px;
  white-space: nowrap;
}

.expense-records-table {
  min-width: 1420px;
  table-layout: fixed;
}

.expense-records-table th:nth-child(1),
.expense-records-table td:nth-child(1) {
  width: 112px;
  white-space: nowrap;
}

.expense-records-table th:nth-child(2),
.expense-records-table td:nth-child(2) {
  width: 31%;
}

.expense-records-table th:nth-child(3),
.expense-records-table td:nth-child(3) {
  width: 98px;
  white-space: nowrap;
}

.expense-records-table th:nth-child(4),
.expense-records-table td:nth-child(4) {
  width: 86px;
  white-space: nowrap;
}

.expense-records-table th:nth-child(5),
.expense-records-table td:nth-child(5) {
  width: 180px;
}

.expense-records-table th:nth-child(6),
.expense-records-table td:nth-child(6),
.expense-records-table th:nth-child(7),
.expense-records-table td:nth-child(7) {
  width: 96px;
  white-space: nowrap;
}

.expense-records-table th:nth-child(8),
.expense-records-table td:nth-child(8) {
  width: 118px;
  white-space: nowrap;
}

.expense-records-table th:nth-child(9),
.expense-records-table td:nth-child(9) {
  width: 148px;
}

.expense-records-table th:nth-child(10),
.expense-records-table td:nth-child(10) {
  width: 210px;
  white-space: nowrap;
}

.expense-records-table .expense-title-cell strong {
  display: block;
}

.expense-records-table .expense-title-cell small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-records-table .expense-category-cell,
.expense-records-table .expense-title-cell {
  overflow: hidden;
}

.expense-records-table .expense-category-cell small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-records-table .expense-date-cell {
  font-variant-numeric: tabular-nums;
}

.expense-recurring-table {
  min-width: 1380px;
  table-layout: fixed;
}

.expense-recurring-table th:nth-child(1),
.expense-recurring-table td:nth-child(1) {
  width: 31%;
}

.expense-recurring-table th:nth-child(2),
.expense-recurring-table td:nth-child(2) {
  width: 86px;
  white-space: nowrap;
}

.expense-recurring-table th:nth-child(3),
.expense-recurring-table td:nth-child(3) {
  width: 92px;
  white-space: nowrap;
}

.expense-recurring-table th:nth-child(4),
.expense-recurring-table td:nth-child(4) {
  width: 78px;
  white-space: nowrap;
}

.expense-recurring-table th:nth-child(5),
.expense-recurring-table td:nth-child(5) {
  width: 170px;
}

.expense-recurring-table th:nth-child(6),
.expense-recurring-table td:nth-child(6),
.expense-recurring-table th:nth-child(7),
.expense-recurring-table td:nth-child(7) {
  width: 112px;
  white-space: nowrap;
}

.expense-recurring-table th:nth-child(8),
.expense-recurring-table td:nth-child(8) {
  width: 78px;
  white-space: nowrap;
}

.expense-recurring-table th:nth-child(9),
.expense-recurring-table td:nth-child(9) {
  width: 300px;
  white-space: nowrap;
}

.expense-recurring-table .expense-title-cell strong,
.expense-recurring-table .expense-title-cell small {
  display: inline;
}

.expense-recurring-table .expense-title-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-recurring-table .expense-title-cell small {
  margin-left: 6px;
  white-space: nowrap;
}

.expense-recurring-table .expense-date-cell {
  font-variant-numeric: tabular-nums;
}

.expense-review-list strong,
.expense-review-list b {
  display: block;
  font-family: "Space Grotesk", sans-serif;
}

.expense-review-list span,
.expense-review-list small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

@media (max-width: 1024px) {
  .expenses-overview-grid {
    grid-template-columns: 1fr;
  }

  .expenses-insight-grid {
    display: block;
  }

  .expense-insight-primary,
  .expense-review-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .expense-review-panel {
    max-height: none;
  }

  .expense-only-module .finance-filterbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-expenses-head,
  .expense-compact-grid {
    grid-template-columns: 1fr;
  }
}

.hero-ams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-copy-compact {
  flex: 1;
  min-width: 0;
}

.hero-heading-row-compact {
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.hero-title-block {
  display: flex;
  align-items: baseline;
  min-width: 0;
  margin-right: 4px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 0;
}

.hero-stats-inline {
  margin-top: 0;
  min-width: 0;
  flex: 1;
}

.hero-stats-inline .pill {
  padding: 1px 6px;
  font-size: 0.64rem;
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.88), rgba(243, 247, 252, 0.72));
  border-color: rgba(182, 197, 214, 0.2);
  color: #53657b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  border-radius: 999px;
}

.hero-stats strong {
  margin-right: 6px;
  font-family: "Space Grotesk", sans-serif;
}

.overview-focus-birthdays {
  margin-left: auto;
  display: grid;
  gap: 2px;
  justify-items: end;
  text-align: right;
  min-width: 180px;
}

.overview-focus-birthdays-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6c7c91;
}

.overview-focus-birthdays strong {
  font-size: 0.82rem;
  color: #27425d;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
  justify-content: flex-end;
}

.hero-save-button {
  padding: 4px 9px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(248, 242, 231, 0.92));
  color: #84684a;
  border: 1px solid rgba(190, 167, 136, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 4px 10px rgba(139, 109, 69, 0.08);
  font-size: 0.78rem;
}

.hero-save-button:hover {
  border-color: rgba(165, 140, 107, 0.52);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(248, 240, 227, 0.96));
}

.hero-actions .action {
  margin-top: 0;
}

.module-toolbar {
  padding: 18px 20px;
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.data-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.94), rgba(248, 251, 255, 0.88));
  border: 1px solid rgba(208, 218, 230, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 10px 28px rgba(71, 92, 121, 0.06);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background 140ms ease;
}

.data-card:hover {
  border-color: rgba(46, 125, 112, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.98), rgba(246, 250, 255, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 16px 34px rgba(71, 92, 121, 0.08);
  transform: translateY(-1px);
}

.data-card-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.78rem;
}

.data-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 0.71rem;
}

.data-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ams-record-grid {
  align-items: start;
}

.ams-record-card {
  gap: 9px;
}

.ams-record-head {
  align-items: start;
  gap: 10px;
}

.ams-record-copyblock {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ams-record-summary {
  margin: 0;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ams-record-meta {
  gap: 6px 9px;
  font-size: 0.69rem;
}

.ams-chip-row {
  gap: 6px;
}

.ams-stat-pill {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.64rem;
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.92), rgba(242, 247, 252, 0.82));
  border: 1px solid rgba(196, 208, 224, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.daily-agenda-topbar {
  display: flex;
  align-items: flex-start;
  padding: 0;
  margin: 0 0 2px;
}

.daily-agenda-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: start;
  width: 100%;
}

.daily-agenda-header-left,
.daily-agenda-header-center,
.daily-agenda-header-right {
  min-width: 0;
}

.daily-agenda-header-center {
  display: flex;
  justify-content: center;
}

.daily-agenda-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.daily-agenda-date-inline input {
  min-width: 148px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(56, 43, 32, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font: inherit;
}

.daily-agenda-quickadd {
  position: relative;
}

.daily-agenda-quickadd-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10;
  min-width: 180px;
  display: grid;
  gap: 2px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(196, 208, 224, 0.72);
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(247, 250, 255, 0.96));
  box-shadow: 0 14px 30px rgba(67, 89, 117, 0.12);
}

.daily-agenda-quickadd-option {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  text-align: left;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.daily-agenda-quickadd-option:hover {
  background: rgba(47, 95, 153, 0.08);
}

.daily-agenda-shell {
  padding: 0;
  min-height: 0;
}

.daily-agenda-workspace {
  min-width: 0;
  margin-top: -2px;
}

.daily-agenda-main {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
  gap: 16px;
  align-items: start;
}

.daily-agenda-main-left,
.daily-agenda-main-right {
  min-width: 0;
}

.daily-agenda-dayview,
.daily-agenda-board {
  display: grid;
  gap: 12px;
  align-items: start;
}

.daily-agenda-board-3day {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
}

.daily-agenda-board-week {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.daily-agenda-day-column {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.daily-agenda-day-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 4px;
  border-bottom: 1px solid rgba(203, 214, 226, 0.38);
}

.daily-agenda-day-label {
  color: #8a97a8;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.daily-agenda-day-date {
  margin-top: 2px;
  color: #3c536c;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
}

.daily-agenda-day-count {
  padding: 4px 8px;
  border-radius: 999px;
  color: #5f738b;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  background: rgba(245, 248, 252, 0.9);
  border: 1px solid rgba(200, 212, 226, 0.66);
}

.daily-agenda-timeline {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.daily-agenda-time-rail {
  display: grid;
  gap: 14px;
  padding-top: 4px;
  color: #91a2b7;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
}

.daily-agenda-track {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.daily-agenda-slot {
  min-height: 46px;
  display: grid;
  gap: 6px;
  align-content: start;
  padding-top: 1px;
}

.daily-agenda-slot.is-empty {
  min-height: 46px;
}

.daily-agenda-item {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 52px;
  max-height: 60px;
  padding: 8px 10px 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(208, 218, 230, 0.46);
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.daily-agenda-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #4e84c4;
}

.daily-agenda-item.tone-critical::before {
  background: #d04f4f;
}

.daily-agenda-item.tone-high::before {
  background: #d38a2d;
}

.daily-agenda-item.is-meeting {
  background: linear-gradient(180deg, rgba(241, 247, 255, 0.96), rgba(255, 255, 255, 0.82));
}

.daily-agenda-item.status-done {
  border-color: rgba(42, 139, 87, 0.22);
}

.daily-agenda-item.status-cancelled {
  border-color: rgba(181, 66, 66, 0.18);
  opacity: 0.84;
}

.daily-agenda-item.is-compact {
  min-height: 48px;
  padding: 7px 9px 7px 11px;
}

.daily-agenda-item-main {
  width: 100%;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.daily-agenda-item-time {
  color: var(--accent-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.daily-agenda-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.daily-agenda-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  color: var(--muted);
  font-size: 0.64rem;
}

.daily-agenda-context-badge {
  color: #6b7f98;
  background: rgba(99, 123, 153, 0.08);
  border-color: rgba(99, 123, 153, 0.16);
}

.daily-agenda-priority-badge.tone-critical {
  color: #b64242;
  background: rgba(208, 79, 79, 0.1);
  border-color: rgba(208, 79, 79, 0.18);
}

.daily-agenda-priority-badge.tone-high {
  color: #a46a17;
  background: rgba(211, 138, 45, 0.12);
  border-color: rgba(211, 138, 45, 0.2);
}

.daily-agenda-priority-badge.tone-normal {
  color: #40699f;
  background: rgba(78, 132, 196, 0.1);
  border-color: rgba(78, 132, 196, 0.18);
}

.daily-agenda-actions {
  padding-left: 74px;
}

.daily-agenda-queue {
  display: grid;
  gap: 8px;
  align-content: start;
}

.daily-agenda-queue-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  padding: 0 0 4px;
  border-bottom: 1px solid rgba(203, 214, 226, 0.38);
}

.daily-agenda-queue-list {
  display: grid;
  gap: 8px;
}

.daily-agenda-suggestion {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid rgba(208, 218, 230, 0.5);
  background: rgba(255, 255, 255, 0.72);
}

.daily-agenda-suggestion-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.daily-agenda-suggestion-title {
  color: #354b64;
  font-size: 0.82rem;
  font-weight: 700;
}

.daily-agenda-suggestion-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.daily-agenda-queue-empty {
  color: #8191a4;
  font-size: 0.76rem;
  padding-top: 4px;
}

.agenda-source-badge.converted {
  color: #7b5940;
  background: rgba(166, 120, 84, 0.1);
  border-color: rgba(166, 120, 84, 0.18);
}

@media (max-width: 1180px) {
  .daily-agenda-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .daily-agenda-header-center {
    justify-content: flex-start;
  }

  .daily-agenda-header-right {
    justify-content: flex-start;
  }

  .daily-agenda-main {
    grid-template-columns: 1fr;
  }

  .daily-agenda-board-3day,
  .daily-agenda-board-week {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .daily-agenda-item-main {
    grid-template-columns: 1fr;
  }

  .daily-agenda-actions {
    padding-left: 0;
  }

  .daily-agenda-timeline {
    grid-template-columns: 1fr;
  }

  .daily-agenda-time-rail {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 10px;
  }

  .daily-agenda-item {
    max-height: none;
  }
}

.ams-record-actions {
  gap: 5px;
  margin-top: 2px;
}

.meetings-module-grid {
  align-content: start;
}

.meetings-shell {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 18px;
  min-height: clamp(560px, calc(100vh - 225px), 760px);
  align-items: start;
}

.meetings-nav-panel,
.meetings-detail-panel {
  min-width: 0;
  height: 100%;
}

.meetings-nav-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.meetings-nav-head,
.meetings-section-head,
.meetings-detail-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.meetings-nav-search input {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(56, 43, 32, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font: inherit;
}

.meetings-nav-groups,
.meetings-nav-group,
.meetings-nav-group-list,
.meetings-detail-shell,
.meetings-detail-section,
.meeting-list-block,
.meeting-list-copy,
.meeting-summary-list {
  display: grid;
  gap: 10px;
}

.meetings-nav-group-title {
  color: #8190a3;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meeting-nav-card {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(205, 215, 228, 0.72);
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(247, 250, 255, 0.92));
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.meeting-nav-card:hover,
.meeting-nav-card.active {
  border-color: rgba(71, 126, 182, 0.34);
  box-shadow: 0 14px 30px rgba(67, 89, 117, 0.1);
  transform: translateY(-1px);
}

.meeting-nav-card-top,
.meeting-nav-indicators,
.meeting-action-meta,
.meetings-detail-meta,
.meetings-detail-actions,
.meeting-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meeting-nav-card-top {
  justify-content: space-between;
  align-items: start;
}

.meeting-nav-title,
.meeting-list-title {
  color: #314860;
  font-size: 0.88rem;
  font-weight: 700;
}

.meeting-nav-meta,
.meeting-nav-context,
.meeting-nav-indicators,
.meeting-action-meta,
.meetings-detail-meta,
.meetings-section-empty,
.meetings-nav-empty,
.meeting-notes-block {
  color: #728398;
  font-size: 0.75rem;
}

.meeting-nav-indicators {
  gap: 6px 12px;
}

.meeting-warning-chip {
  color: #a65d1d;
  background: rgba(227, 164, 71, 0.16);
  border: 1px solid rgba(227, 164, 71, 0.26);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.66rem;
  font-weight: 700;
}

.meeting-status-badge,
.meeting-important-badge,
.meeting-item-tag,
.meeting-priority-badge,
.meeting-task-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(198, 209, 223, 0.68);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meeting-status-badge.status-scheduled {
  color: #446585;
  background: rgba(78, 132, 196, 0.08);
}

.meeting-status-badge.status-done {
  color: #2a8b57;
  background: rgba(42, 139, 87, 0.1);
}

.meeting-status-badge.status-in_progress,
.meeting-status-badge.action-open {
  color: #a46a17;
  background: rgba(211, 138, 45, 0.12);
}

.meeting-status-badge.status-cancelled,
.meeting-status-badge.action-closed {
  color: #8a4a4a;
  background: rgba(194, 82, 82, 0.12);
}

.meeting-status-badge.action-converted_to_task {
  color: #2f6b49;
  background: rgba(78, 159, 108, 0.12);
}

.meeting-important-badge {
  color: #8d5f17;
  background: rgba(222, 176, 76, 0.14);
}

.meeting-item-tag {
  color: #5f6f82;
  background: rgba(99, 123, 153, 0.08);
}

.meeting-priority-badge.priority-critical {
  color: #b64242;
  background: rgba(208, 79, 79, 0.12);
}

.meeting-priority-badge.priority-high {
  color: #a46a17;
  background: rgba(211, 138, 45, 0.14);
}

.meeting-priority-badge.priority-normal,
.meeting-priority-badge.priority-low {
  color: #446585;
  background: rgba(78, 132, 196, 0.08);
}

.meeting-task-link {
  color: #35684c;
  background: rgba(70, 147, 101, 0.1);
}

.meetings-detail-panel {
  padding: 18px;
}

.meetings-detail-shell {
  align-content: start;
}

.meetings-detail-titleblock {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.meetings-detail-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meetings-detail-topline h2 {
  margin: 0;
  color: #2e4359;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.32rem;
}

.meetings-detail-section {
  padding-top: 14px;
  border-top: 1px solid rgba(205, 215, 228, 0.52);
}

.meetings-section-title {
  color: #314860;
  font-size: 0.88rem;
  font-weight: 700;
}

.meeting-summary-list p,
.meeting-notes-block {
  margin: 0;
  line-height: 1.45;
}

.meeting-list-item {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(205, 215, 228, 0.56);
  background: rgba(255, 255, 255, 0.72);
}

.meeting-list-copy {
  min-width: 0;
}

.meeting-action-item {
  align-items: center;
  position: relative;
  padding-left: 18px;
}

.meeting-action-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 14px 0 0 14px;
  background: #8ea0b5;
}

.meeting-action-accent.priority-critical {
  background: #d04f4f;
}

.meeting-action-accent.priority-high {
  background: #d38a2d;
}

.meeting-owner-warning {
  color: #b44f2d;
  font-weight: 700;
}

.meeting-task-state {
  color: #6f8094;
  font-size: 0.7rem;
  font-weight: 700;
}

.meeting-task-state.is-created {
  color: #2f6b49;
}

.meeting-inline-form {
  display: grid;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(205, 215, 228, 0.6);
  background: rgba(250, 252, 255, 0.92);
}

.meeting-inline-form input,
.meeting-inline-form textarea,
.meeting-inline-form select {
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(56, 43, 32, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
}

.meeting-inline-form textarea {
  min-height: 92px;
  resize: vertical;
}

.meeting-inline-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.meeting-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.decision-inline-form {
  grid-template-columns: minmax(0, 1fr) 180px auto;
  align-items: center;
}

.decision-inline-form .meeting-inline-actions {
  justify-content: flex-end;
}

.meeting-notes-block {
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px dashed rgba(201, 212, 226, 0.88);
  background: rgba(251, 252, 255, 0.76);
  white-space: pre-wrap;
}

.meetings-empty-state {
  display: grid;
  place-items: center;
  min-height: 320px;
}

.tasks-row.is-selected {
  border-color: rgba(71, 126, 182, 0.42);
  box-shadow: 0 0 0 2px rgba(71, 126, 182, 0.12);
}

@media (max-width: 1080px) {
  .meetings-shell {
    grid-template-columns: 1fr;
  }

  .meeting-inline-grid {
    grid-template-columns: 1fr 1fr;
  }

  .decision-inline-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .meeting-list-item,
  .meetings-detail-header {
    display: grid;
  }

  .meeting-inline-grid {
    grid-template-columns: 1fr;
  }
}

.ams-chip-button {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  line-height: 1;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.94), rgba(246, 249, 253, 0.84));
  border: 1px solid rgba(196, 208, 224, 0.64);
  color: #55677d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.ams-chip-button:hover {
  border-color: rgba(46, 125, 112, 0.24);
  color: #2d4259;
}

.ams-chip-button.active {
  color: #2e5f54;
  background: linear-gradient(180deg, rgba(240, 250, 247, 0.96), rgba(230, 245, 240, 0.88));
  border-color: rgba(83, 157, 138, 0.3);
}

.ams-chip-button.is-disabled,
.ams-chip-button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.ams-chip-button.danger {
  color: #9f3e3e;
  border-color: rgba(194, 64, 64, 0.16);
  background: linear-gradient(180deg, rgba(255, 248, 248, 0.95), rgba(252, 241, 241, 0.88));
}

.ams-toolbar-action {
  width: auto;
  margin-top: 0;
  padding: 7px 11px;
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 16px rgba(17, 63, 97, 0.1);
  font-weight: 650;
  letter-spacing: 0.01em;
  font-size: 0.78rem;
  min-height: 38px;
}

.people-module-grid {
  align-content: start;
}

.people-console-layout {
  align-items: start;
  min-height: 100%;
  height: clamp(560px, calc(100vh - 225px), 690px);
}

.people-toolbar {
  gap: 8px;
  padding: 12px 16px;
}

.people-toolbar-row,
.people-toolbar-actions,
.people-chip-row,
.people-warning-list,
.people-panel-metrics,
.people-summary-list,
.people-detail-list,
.people-mini-list,
.people-profile-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.people-toolbar-row {
  align-items: center;
  justify-content: space-between;
}

.people-toolbar-row-top {
  gap: 14px;
}

.people-toolbar-row-actions {
  justify-content: space-between;
}

.people-toolbar-title-strip {
  display: flex;
  align-items: center;
  min-width: 0;
}

.people-toolbar-title-strip .panel-title {
  margin: 0;
}

.people-toolbar-counters {
  justify-content: flex-end;
  min-width: 0;
}

.people-toolbar-actions {
  align-items: flex-end;
  justify-content: flex-start;
}

.people-toolbar-actions-compact {
  flex-wrap: nowrap;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 1px;
}

.people-toolbar-actions-compact .ams-toolbar-action {
  flex: 0 0 auto;
}

.people-toolbar-actions-left {
  justify-content: flex-start;
  min-width: 0;
}

.people-toolbar-actions-right {
  justify-content: flex-end;
  margin-left: auto;
}

.people-toolbar .people-summary-pill {
  padding: 5px 10px;
  font-size: 0.72rem;
}

.people-date-control {
  display: grid;
  gap: 4px;
  min-width: 180px;
}

.people-date-control input {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid rgba(196, 208, 224, 0.72);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.people-summary-pill {
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.94), rgba(241, 247, 252, 0.86));
  border: 1px solid rgba(188, 206, 227, 0.62);
}

.people-summary-pill strong {
  margin-right: 5px;
}

.people-summary-pill-warn {
  border-color: rgba(211, 129, 54, 0.32);
  color: #8a5d26;
}

.people-summary-pill-ok {
  border-color: rgba(36, 130, 93, 0.24);
  color: #23684d;
}

.people-warning-card,
.people-side-card,
.people-detail-card,
.people-roster-card,
.people-weekly-card,
.people-monthly-card,
.people-report-shell {
  padding: 16px 18px;
}

.people-staff-navigator,
.people-staff-console {
  padding: 14px;
}

.people-staff-navigator {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.people-staff-console {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.people-staff-nav-list {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  margin-top: 6px;
  display: grid;
  gap: 12px;
}

.people-navigator-search {
  display: block;
}

.people-navigator-search input {
  width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(196, 208, 224, 0.72);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 0.74rem;
}

.people-navigator-filter-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.people-navigator-select {
  display: block;
  min-width: 0;
}

.people-navigator-select select {
  width: 100%;
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 10px;
  border: 1px solid rgba(196, 208, 224, 0.7);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 253, 0.9));
  color: #465b73;
  font-size: 0.72rem;
}

.people-staff-nav-list .family-record-link.active {
  border-color: rgba(97, 184, 174, 0.48);
  box-shadow:
    inset 0 0 0 1px rgba(97, 184, 174, 0.22),
    0 10px 24px rgba(61, 121, 114, 0.12);
  background: linear-gradient(180deg, rgba(246, 253, 251, 0.99), rgba(228, 246, 241, 0.99));
  transform: translateX(1px);
}

.people-staff-nav-list .family-record-link.active .family-record-inline-title {
  color: #155e55;
}

.people-staff-nav-list .family-record-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding: 6px 13px;
  border-radius: 15px;
  border: 1px solid rgba(224, 218, 208, 0.68);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 249, 244, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 3px 10px rgba(89, 105, 129, 0.03);
}

.people-staff-nav-list .family-record-inline-title {
  min-width: 0;
  max-width: none;
  width: auto;
  font-size: 0.91rem;
  font-weight: 500;
  color: #1f2d3d;
}

.people-staff-nav-list .family-record-inline-meta {
  text-align: right;
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.86rem;
  color: #667991;
  min-width: 52px;
  flex: 0 0 auto;
}

.people-staff-nav-list .family-record-link.active .family-record-inline-meta {
  color: #4d7e77;
}

.people-console-grid {
  min-height: 0;
  align-items: start;
}

.people-manager-counters {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.people-manager-counters-compact {
  gap: 8px;
}

.people-manager-counters-compact .aircraft-status-chip {
  padding: 8px 10px;
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 6px 14px rgba(71, 92, 121, 0.04);
}

.people-manager-counters-compact .aircraft-status-chip span {
  font-size: 0.61rem;
}

.people-manager-counters-compact .aircraft-status-chip strong {
  font-size: 0.8rem;
}

.people-staff-record-header {
  margin-bottom: 4px;
}

.people-staff-record-titleblock {
  min-width: 0;
}

.people-staff-record-heading {
  display: grid;
  gap: 3px;
}

.people-staff-record-heading .panel-title {
  margin: 0;
}

.people-detail-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.people-tab-panel {
  display: grid;
  gap: 10px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  align-content: start;
}

.people-tab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  align-content: start;
}

.people-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  align-items: start;
}

.people-profile-main,
.people-profile-side,
.people-photo-card {
  min-width: 0;
}

.people-profile-rows {
  display: grid;
  gap: 10px;
}

.people-profile-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.people-profile-label {
  color: #59708a;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.people-profile-value-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.people-profile-value {
  color: #1d2a3a;
  font-size: 0.98rem;
  font-weight: 700;
}

.people-profile-side {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: end;
}

.people-photo-card {
  display: flex;
  justify-content: flex-end;
  align-items: start;
  width: 100%;
}

.people-photo-frame {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(205, 216, 230, 0.72);
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(245, 249, 253, 0.93));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 8px 22px rgba(87, 104, 127, 0.06);
}

.people-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b8ea6;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.people-profile-side-meta {
  display: grid;
  gap: 6px;
  width: 100%;
  justify-items: end;
}

.notes-module {
  align-content: start;
  min-height: 100%;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}

.notes-toolbar-card,
.notes-navigator-card,
.notes-detail-card {
  min-height: 0;
}

.notes-navigator-card,
.notes-detail-card {
  height: 100%;
  overflow: hidden;
}

.notes-toolbar-card,
.notes-navigator,
.notes-detail-shell {
  padding: 14px 16px;
}

.notes-toolbar,
.notes-toolbar-actions,
.notes-detail-top,
.notes-detail-actions,
.notes-detail-badges,
.notes-stamp-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.notes-toolbar {
  gap: 12px;
}

.notes-toolbar-actions {
  justify-content: flex-end;
  gap: 10px;
}

.notes-summary-strip {
  justify-content: flex-start;
  gap: 8px;
}

.notes-summary-pill {
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(242, 247, 252, 0.88));
  border: 1px solid rgba(188, 206, 227, 0.62);
  white-space: nowrap;
}

.notes-navigator {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
}

.notes-navigator-top {
  display: grid;
  gap: 6px;
}

.notes-search {
  display: grid;
}

.notes-search input {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(196, 208, 224, 0.72);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 0.76rem;
}

.notes-filter-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.notes-filter-chip {
  width: 100%;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 9px;
  border: 1px solid rgba(198, 209, 223, 0.75);
  background: rgba(255, 255, 255, 0.72);
  color: #506478;
  cursor: pointer;
  font-size: 0.7rem;
}

.notes-filter-chip.active {
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(225, 244, 238, 0.94);
  color: #155e55;
}

.notes-nav-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.notes-row {
  width: 100%;
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 10px 11px;
  padding-left: 14px;
  border-radius: 14px;
  border: 1px solid rgba(222, 216, 207, 0.72);
  border-left: 4px solid rgba(138, 155, 174, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 248, 243, 0.96));
  color: inherit;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.notes-row.importance-important {
  border-left-color: rgba(211, 129, 54, 0.94);
}

.notes-row.importance-critical {
  border-left-color: rgba(194, 64, 64, 0.96);
}

.notes-row:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.2);
}

.notes-row.active {
  border-color: rgba(15, 118, 110, 0.34);
  background: linear-gradient(180deg, rgba(247, 252, 250, 0.99), rgba(225, 244, 238, 0.99));
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12), 0 10px 22px rgba(15, 118, 110, 0.1);
}

.notes-row-top,
.notes-row-meta,
.notes-row-submeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notes-row-title {
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1b2a3b;
}

.notes-row-date,
.notes-row-meta,
.notes-row-submeta {
  font-size: 0.68rem;
  color: #6a7d91;
}

.notes-row-meta span,
.notes-row-submeta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notes-detail-shell {
  display: grid;
  gap: 14px;
  min-height: 100%;
  overflow: auto;
  align-content: start;
  padding-right: 4px;
}

.notes-detail-titleblock {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.notes-detail-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.48rem;
  line-height: 1.05;
}

.notes-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.notes-detail-field {
  display: grid;
  gap: 6px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(204, 216, 230, 0.7);
  background: rgba(255, 255, 255, 0.72);
}

.notes-detail-field span {
  color: #667991;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.notes-detail-field strong {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  color: #1b2a3b;
  font-size: 0.82rem;
}

.notes-content-block {
  display: grid;
  gap: 7px;
}

.notes-content {
  margin: 0;
  padding: 14px;
  min-height: 300px;
  border-radius: 16px;
  border: 1px solid rgba(205, 216, 230, 0.74);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.93));
  color: #182638;
  font: inherit;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow: auto;
}

.notes-importance-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(196, 208, 224, 0.84);
  background: rgba(255, 255, 255, 0.84);
  color: #5d7087;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.notes-importance-chip.importance-important {
  border-color: rgba(211, 129, 54, 0.28);
  background: rgba(211, 129, 54, 0.12);
  color: #8a5d26;
}

.notes-importance-chip.importance-critical {
  border-color: rgba(194, 64, 64, 0.3);
  background: rgba(194, 64, 64, 0.12);
  color: #933f3f;
}

.notes-stamp-row {
  justify-content: flex-start;
  color: #667991;
  font-size: 0.72rem;
}

@media (max-width: 980px) {
  .notes-module {
    height: auto;
  }

  .notes-detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .notes-filter-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.people-profile-side-meta .people-profile-row {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
}

.people-profile-side-meta .people-profile-label,
.people-profile-side-meta .people-profile-value {
  font-size: 0.88rem;
  letter-spacing: normal;
  text-transform: none;
}

.people-profile-side-meta .people-profile-value-wrap {
  min-width: 0;
}

.people-profile-side-meta .people-profile-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.people-tab-scroll {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.people-tab-titlebar {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.people-tab-title-meta {
  color: #4d627b;
  font-size: 0.9rem;
}

.people-authorization-matrix {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.people-rating-panel {
  display: grid;
  gap: 8px;
}

.people-authorization-rating-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.people-authorization-rating-item {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(205, 216, 230, 0.68);
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(245, 249, 253, 0.93));
  color: #42576f;
  font-size: 0.75rem;
  line-height: 1.35;
}

@media (max-width: 1200px) {
  .checkbox-group.checkbox-group-3col,
  .people-authorization-rating-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .people-profile-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .people-profile-side {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .checkbox-group.checkbox-group-3col,
  .people-authorization-rating-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .people-profile-row,
  .people-profile-meta-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.people-tab-log-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
}

.people-check-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(191, 205, 221, 0.78);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 253, 0.92));
  color: #52667d;
  font: inherit;
}

.people-check-toggle-box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(168, 185, 206, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: transparent;
  font-size: 0.78rem;
  line-height: 1;
}

.people-check-toggle-label {
  font-size: 0.74rem;
  font-weight: 600;
}

.people-check-toggle.is-checked {
  border-color: rgba(97, 184, 174, 0.54);
  background: linear-gradient(180deg, rgba(246, 253, 251, 0.99), rgba(228, 246, 241, 0.99));
  color: #1f6b63;
}

.people-check-toggle.is-checked .people-check-toggle-box {
  border-color: rgba(74, 160, 148, 0.78);
  background: rgba(74, 160, 148, 0.12);
  color: #1f6b63;
}

.people-warning-list {
  margin-top: 12px;
}

.people-warning-pill {
  background: rgba(255, 244, 232, 0.92);
  border: 1px solid rgba(211, 129, 54, 0.18);
  color: #8b5f2b;
}

.people-view-switch,
.people-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.people-weekly-grid,
.people-weekend-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.people-weekend-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.people-week-card,
.people-month-day {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(205, 216, 230, 0.62);
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.96), rgba(244, 248, 252, 0.9));
}

.people-week-card-weekend,
.people-month-day.has-warning {
  border-color: rgba(211, 129, 54, 0.28);
}

.people-week-metrics,
.people-month-metrics,
.people-report-summary-grid {
  display: grid;
  gap: 8px;
}

.people-report-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.people-mini-metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.74rem;
}

.people-mini-metric span {
  color: var(--muted);
}

.people-mini-metric strong {
  color: #21334c;
}

.people-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.people-print-report,
.people-report-body,
.people-report-section {
  display: grid;
  gap: 12px;
}

.people-report-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.people-report-meta {
  display: grid;
  gap: 6px;
  color: #5d7088;
  font-size: 0.76rem;
}

.people-report-table {
  width: 100%;
  border-collapse: collapse;
}

.people-report-table th,
.people-report-table td {
  padding: 8px 10px;
  border: 1px solid rgba(205, 216, 230, 0.72);
  text-align: left;
}

.people-report-table th {
  background: rgba(235, 242, 250, 0.96);
  color: #314862;
}

.warning-tag {
  color: #9a6124;
  background: rgba(255, 244, 232, 0.9);
}

.ok-tag {
  color: #22674c;
  background: rgba(236, 249, 244, 0.9);
}

.people-roster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.people-side-card,
.people-detail-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.people-summary-list,
.people-detail-list,
.people-mini-list,
.people-history-summary {
  display: grid;
  gap: 8px;
}

.people-profile-chip-row {
  margin-bottom: 10px;
}

.people-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(32, 57, 87, 0.08);
  font-size: 0.74rem;
}

.people-summary-line:last-child {
  border-bottom: 0;
}

.people-toolbar .action.is-active-view {
  background: linear-gradient(180deg, rgba(229, 239, 250, 0.98), rgba(214, 228, 244, 0.98));
  color: #1f4268;
  border-color: rgba(74, 121, 176, 0.54);
}

.people-mini-section,
.people-detail-section {
  display: grid;
  gap: 8px;
}

.people-staff-console .aircraft-workspace-body {
  min-height: 0;
}

.people-staff-console .aircraft-workspace-body-scroll {
  overflow: hidden;
}

.people-staff-console .aircraft-overview-grid {
  min-height: 0;
  height: auto;
  align-items: start;
}

.people-staff-console .aircraft-overview-panel {
  height: auto;
}

.people-staff-console .aircraft-overview-stack {
  gap: 12px;
}

.people-mini-title,
.people-role-title {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: #42556e;
}

.people-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.people-staff-card {
  position: relative;
}

.people-staff-card.is-selected {
  border-color: rgba(14, 94, 168, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 36px rgba(49, 89, 134, 0.11);
}

.people-card-hit {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  border-radius: inherit;
  cursor: pointer;
}

.people-staff-card > *:not(.people-card-hit) {
  position: relative;
  z-index: 1;
}

.people-event-list,
.people-roster-groups,
.people-group-role-list {
  display: grid;
  gap: 10px;
}

.people-matrix-card {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
}

.people-matrix-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.people-matrix-filter {
  display: grid;
  gap: 4px;
}

.people-matrix-filter select {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid rgba(196, 208, 224, 0.72);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.people-matrix-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(210, 220, 233, 0.62);
  background: rgba(250, 252, 255, 0.78);
}

.people-matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1120px;
}

.people-matrix-table th,
.people-matrix-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(32, 57, 87, 0.08);
  font-size: 0.72rem;
  text-align: left;
  vertical-align: top;
}

.people-matrix-table th {
  position: sticky;
  top: 0;
  background: rgba(235, 242, 250, 0.96);
  color: #314862;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 1;
}

.people-event-row,
.people-group-block,
.people-weekend-row {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.7);
  border: 1px solid rgba(210, 220, 233, 0.62);
}

.people-group-head,
.people-staff-row,
.people-weekend-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.people-group-team,
.people-staff-name {
  font-weight: 700;
}

.people-staff-row {
  padding: 6px 0;
  border-bottom: 1px dashed rgba(32, 57, 87, 0.1);
}

.people-staff-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.people-staff-meta {
  color: var(--muted);
  font-size: 0.7rem;
  text-align: right;
}

@media (max-width: 1100px) {
  .people-console-layout {
    height: auto;
  }

  .people-roster-grid,
  .people-card-grid {
    grid-template-columns: 1fr;
  }

  .people-matrix-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .people-manager-counters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .people-navigator-filter-strip {
    grid-template-columns: 1fr;
  }

  .people-tab-grid {
    grid-template-columns: 1fr;
  }

  .people-weekly-grid,
  .people-month-grid,
  .people-report-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .people-toolbar-actions,
  .people-chip-row,
  .people-warning-list {
    justify-content: flex-start;
  }

  .people-summary-line,
  .people-group-head,
  .people-staff-row,
  .people-weekend-row {
    flex-direction: column;
  }

  .people-staff-meta {
    text-align: left;
  }

  .people-matrix-filters {
    grid-template-columns: 1fr;
  }

  .people-console-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .people-staff-navigator,
  .people-staff-console {
    height: auto;
    min-height: 0;
  }

  .people-weekly-grid,
  .people-weekend-summary-grid,
  .people-month-grid,
  .people-report-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body.print-manpower-report .sidebar,
  body.print-manpower-report .hero,
  body.print-manpower-report .module-toolbar,
  body.print-manpower-report .no-print,
  body.print-manpower-report .people-view-switch,
  body.print-manpower-report .people-toolbar-actions,
  body.print-manpower-report .flash {
    display: none !important;
  }

  body.print-manpower-report .app-shell,
  body.print-manpower-report .main,
  body.print-manpower-report .module-root,
  body.print-manpower-report .people-module-grid {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.print-manpower-report .people-report-shell,
  body.print-manpower-report .people-print-report {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: #fff !important;
  }
}

.ams-toolbar-filters {
  gap: 6px;
}

.ams-decision-strip {
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.86), rgba(236, 243, 252, 0.78));
  border: 1px solid rgba(194, 207, 226, 0.48);
  color: #62748b;
}

.data-grid.aircraft-projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.aircraft-projects-grid > .card,
.aircraft-projects-grid > .data-card,
.aircraft-projects-grid .project-card {
  min-width: 0;
}

.aircraft-projects-grid .data-card {
  gap: 7px;
  padding: 12px;
  border-radius: 14px;
}

.aircraft-projects-grid .item-title {
  font-size: 0.86rem;
  line-height: 1.12;
}

.aircraft-projects-grid .item-meta,
.aircraft-projects-grid .data-card-meta {
  font-size: 0.67rem;
}

.aircraft-projects-grid .metric-row {
  gap: 6px;
}

.aircraft-projects-grid .pill,
.aircraft-projects-grid .tag {
  padding: 5px 9px;
  font-size: 0.64rem;
}

.aircraft-projects-grid .data-card-actions {
  gap: 5px;
  margin-top: 2px;
}

.aircraft-projects-grid .data-card-actions .inline-button {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  line-height: 1;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 10px;
}

.quick-tile {
  min-width: 140px;
  min-height: 58px;
  border: 1px solid rgba(14, 94, 168, 0.14);
  background: linear-gradient(180deg, rgba(239, 247, 255, 0.96), rgba(224, 236, 247, 0.96));
  color: var(--text);
}

.quick-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
}

.quick-tile-compact {
  min-width: 0;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  background: rgba(237, 244, 251, 0.9);
}

.quick-tile-compact .quick-label {
  font-size: 0.76rem;
  white-space: nowrap;
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.decision-strip {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(14, 94, 168, 0.06);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.tag.warn {
  background: rgba(214, 129, 54, 0.1);
  border: 1px solid rgba(214, 129, 54, 0.16);
  color: #96602a;
}

.tag.danger {
  background: rgba(194, 64, 64, 0.1);
  border: 1px solid rgba(194, 64, 64, 0.16);
  color: #9f3e3e;
}

.tag.ok {
  background: rgba(36, 130, 93, 0.1);
  border: 1px solid rgba(36, 130, 93, 0.14);
  color: #2f7157;
}

.overview-focus-strip {
  display: grid;
  gap: 5px;
  padding: 8px 12px;
  position: relative;
}

.overview-focus-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.overview-focus-date {
  color: #79889b;
  font-size: 0.68rem;
  font-weight: 700;
}

.overview-focus-main {
  display: grid;
  gap: 3px;
}

.overview-health-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding-top: 1px;
}

.overview-health-label {
  color: #7f8ea0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.overview-health-chip {
  padding: 2px 7px;
  font-size: 0.64rem;
}

.overview-health-chip.stable,
.overview-status-chip.stable {
  color: #2f7157;
  background: rgba(36, 130, 93, 0.08);
  border-color: rgba(36, 130, 93, 0.14);
}

.overview-health-chip.warn,
.overview-status-chip.warn {
  color: #96602a;
  background: rgba(214, 129, 54, 0.1);
  border-color: rgba(214, 129, 54, 0.16);
}

.overview-health-chip.danger,
.overview-status-chip.danger {
  color: #9f3e3e;
  background: rgba(194, 64, 64, 0.1);
  border-color: rgba(194, 64, 64, 0.16);
}

.overview-health-chip.info,
.overview-status-chip.info {
  color: #355d8c;
  background: rgba(68, 118, 178, 0.08);
  border-color: rgba(68, 118, 178, 0.16);
}

.overview-health-chip.muted,
.overview-status-chip.muted {
  color: #6f8094;
  background: rgba(125, 145, 170, 0.08);
  border-color: rgba(125, 145, 170, 0.14);
}

.overview-action-chip {
  cursor: pointer;
}

.overview-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f5d92;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.overview-inline-link:hover {
  color: #1d4c80;
  text-decoration: underline;
}

.release-chip.info {
  color: #355d8c;
  background: rgba(68, 118, 178, 0.08);
  border-color: rgba(68, 118, 178, 0.16);
}

.overview-focus-inline-main {
  display: block;
}

.overview-focus-stack-main {
  display: grid;
  gap: 2px;
}

.overview-focus-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.2;
}

.overview-focus-inline strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.overview-focus-label {
  color: #8090a3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.63rem;
  font-weight: 700;
}

.overview-focus-label-inline {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
}

.overview-focus-line-inline {
  gap: 6px;
  font-size: 0.84rem;
  line-height: 1.18;
  min-width: 0;
}

.overview-focus-line-inline strong {
  font-size: 1.02rem;
  color: #24364b;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  flex: 1 1 auto;
}

.overview-focus-inline-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.overview-focus-inline-split.single {
  grid-template-columns: minmax(0, 1fr);
}

.overview-focus-divider {
  color: rgba(86, 70, 53, 0.3);
  line-height: 1;
}

.overview-focus-separator {
  color: rgba(86, 70, 53, 0.35);
  font-size: 0.85rem;
  line-height: 1;
}

.overview-focus-badges,
.overview-manpower-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.overview-status-chip {
  padding: 2px 7px;
  font-size: 0.64rem;
}

.overview-quick-panel,
.overview-metric-card,
.overview-panel {
  padding: 12px;
}

.overview-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.overview-list {
  display: grid;
  gap: 8px;
}

.overview-list-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.overview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(207, 216, 226, 0.68);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(250, 252, 254, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 1px 2px rgba(72, 97, 125, 0.04);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.overview-row:hover {
  border-color: rgba(46, 125, 112, 0.24);
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.98), rgba(247, 250, 254, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 8px 18px rgba(56, 79, 109, 0.06);
  transform: translateY(-1px);
}

.overview-project-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.overview-project-line {
  display: grid;
  gap: 6px;
  width: 100%;
  text-align: left;
  min-height: 46px;
  padding: 9px 10px;
}

.overview-shell-projects .overview-project-line {
  min-height: 56px;
  padding: 9px 11px;
  border-radius: 10px;
  border-color: rgba(226, 215, 197, 0.54);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(250, 252, 254, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 1px 2px rgba(72, 97, 125, 0.04);
}

.overview-shell-projects .overview-project-line:hover {
  border-color: rgba(15, 118, 110, 0.2);
  background: linear-gradient(180deg, rgba(248, 252, 250, 0.98), rgba(242, 248, 246, 0.94));
}

.overview-shell-projects .overview-list {
  gap: 7px;
}

.overview-row-topline {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.overview-project-inline-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  min-width: 0;
}

.overview-project-progress-label {
  color: #8d9aac;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.62rem;
}

.overview-project-progress {
  margin-top: 6px;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(172, 189, 209, 0.16);
  overflow: hidden;
}

.overview-project-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(65, 143, 166, 0.82), rgba(92, 173, 168, 0.72));
}

.overview-project-count {
  padding: 2px 7px;
  font-size: 0.63rem;
}

.overview-panel-head {
  display: grid;
  gap: 1px;
  margin-bottom: 7px;
}

.overview-panel-head-with-actions {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.overview-panel-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.overview-panel-sublabel {
  color: #91a0b0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.overview-row-simple {
  min-height: 50px;
}

.overview-row-main {
  min-width: 0;
}

.overview-row-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #24364b;
}

.overview-row-meta {
  margin-top: 2px;
  color: #8895a5;
  font-size: 0.72rem;
  line-height: 1.28;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Space Grotesk", sans-serif;
}

.overview-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.overview-row-sidecopy {
  color: #8b98a8;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.15;
  white-space: nowrap;
}

.overview-time {
  min-width: 48px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.overview-panel .empty-state {
  padding: 6px 10px;
  font-size: 0.68rem;
  color: #93a0ae;
}

.overview-inline-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #7f8ea0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
}

.overview-count-chip {
  flex: 0 0 auto;
  max-width: 84px;
  padding: 4px 8px;
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
}

.overview-count-chip.info {
  color: #355d8c;
  background: rgba(68, 118, 178, 0.08);
  border-color: rgba(68, 118, 178, 0.16);
}

.overview-alert-row,
.overview-note-row,
.overview-project-priority-row {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.overview-shell-priority .overview-list,
.overview-shell-notes .overview-list {
  gap: 7px;
}

.overview-alert-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.overview-alert-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.overview-alert-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2b3a4d;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.18;
}

.overview-alert-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #7f8c9c;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
}

.overview-alert-side {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.overview-project-priority-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  min-height: 46px;
  text-align: left;
}

.overview-project-priority-top {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.overview-project-priority-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #26384e;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.overview-project-priority-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #76879a;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.67rem;
  font-weight: 600;
  overflow: hidden;
}

.overview-project-priority-meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overview-note-row .overview-alert-title {
  font-size: 0.8rem;
}

.overview-today-panel {
  border: 1px solid rgba(197, 176, 142, 0.28);
  background:
    radial-gradient(circle at top right, rgba(255, 244, 217, 0.46), transparent 40%),
    radial-gradient(circle at 12% 20%, rgba(247, 237, 221, 0.26), transparent 36%),
    linear-gradient(135deg, rgba(255, 252, 246, 0.99), rgba(250, 244, 234, 0.9));
  box-shadow:
    0 18px 38px rgba(171, 154, 127, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.overview-manpower-panel {
  padding: 8px;
  background:
    radial-gradient(circle at top right, rgba(232, 241, 250, 0.32), transparent 42%),
    linear-gradient(135deg, rgba(252, 254, 255, 0.95), rgba(244, 248, 252, 0.86));
  border-color: rgba(177, 198, 220, 0.42);
  box-shadow:
    0 14px 28px rgba(38, 67, 101, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.overview-manpower-inline {
  margin-top: 6px;
  color: #8b98a7;
  font-size: 0.68rem;
  line-height: 1.35;
  font-family: "Space Grotesk", sans-serif;
}

.overview-manpower-pill-row {
  display: grid;
  grid-template-columns: 94px repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.overview-manpower-pill {
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 0.74rem;
  font-weight: 600;
  font-family: "IBM Plex Mono", monospace;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 4px 10px rgba(41, 63, 91, 0.05);
}

.overview-manpower-pill-label {
  min-width: 0;
  width: 100%;
  justify-content: center;
  letter-spacing: 0.06em;
}

.overview-manpower-pill-metric {
  width: 100%;
  justify-content: flex-start;
  gap: 8px;
  padding-inline: 10px 12px;
}

.overview-manpower-pill-value {
  display: inline-flex;
  justify-content: flex-end;
  min-width: 2ch;
  text-align: right;
}

.overview-manpower-pill-text {
  white-space: nowrap;
}

.overview-manpower-pill-early {
  color: #876423;
  background: linear-gradient(180deg, rgba(255, 244, 212, 0.96), rgba(249, 232, 179, 0.9));
  border-color: rgba(214, 177, 92, 0.34);
}

.overview-manpower-pill-late {
  color: #355d8c;
  background: linear-gradient(180deg, rgba(230, 241, 255, 0.96), rgba(205, 225, 248, 0.9));
  border-color: rgba(115, 160, 214, 0.3);
}

.overview-manpower-panel .panel-title {
  margin-bottom: 1px;
}

.overview-manpower-panel .overview-manpower-summary {
  margin-bottom: 1px;
}

.overview-manpower-panel .pill,
.overview-today-panel .pill {
  padding: 2px 6px;
  font-size: 0.66rem;
}

.overview-manpower-panel .overview-list {
  gap: 3px;
}

.overview-manpower-panel .overview-row {
  padding: 5px 7px;
}

.overview-manpower-panel .overview-row-title {
  font-size: 0.72rem;
}

.overview-manpower-panel .overview-row-meta {
  font-size: 0.6rem;
}

.overview-quick-panel {
  display: grid;
  align-content: start;
  gap: 10px;
}

.quick-tile-compact {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  background: rgba(255, 251, 245, 0.94);
  border: 1px solid rgba(86, 70, 53, 0.1);
}

.quick-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-strong);
  font-size: 0.62rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.quick-tile-compact .quick-label {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overview-dual-list {
  display: grid;
  gap: 10px;
}

.overview-subpanel {
  display: grid;
  gap: 5px;
}

.overview-subpanel-title {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-shell-grid {
  grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 2fr);
  grid-template-rows: 112px minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  min-height: 100%;
  height: 100%;
  position: relative;
}

.overview-shell-grid::before {
  content: "";
  position: absolute;
  inset: 122px 0 0;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(245, 249, 253, 0.28), rgba(238, 244, 250, 0.16));
  pointer-events: none;
}

.overview-shell-today {
  grid-column: 1 / span 2;
  grid-row: 1;
  min-height: 112px;
  max-height: 112px;
  padding: 8px 10px;
}

.overview-shell-manpower {
  grid-column: 3 / span 2;
  grid-row: 1;
  min-height: 112px;
  max-height: 112px;
  padding: 8px 10px;
}

.overview-shell-priority {
  grid-column: 1;
  grid-row: 2;
}

.overview-shell-schedule {
  grid-column: 1;
  grid-row: 3;
}

.overview-shell-projects {
  grid-column: 2;
  grid-row: 2 / span 2;
}

.overview-shell-meetings {
  grid-column: 3;
  grid-row: 2 / span 2;
}

.overview-shell-notes {
  grid-column: 4;
  grid-row: 2 / span 2;
}

.overview-shell-grid .overview-panel,
.overview-shell-grid .overview-today-panel {
  min-height: 0;
}

.overview-shell-grid .overview-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
}

.overview-shell-projects,
.overview-shell-meetings,
.overview-shell-notes,
.overview-shell-announcements,
.overview-shell-priority,
.overview-shell-schedule {
  min-height: 0;
}

.overview-shell-projects .overview-panel-scroll,
.overview-shell-meetings .overview-panel-scroll,
.overview-shell-notes .overview-panel-scroll,
.overview-shell-announcements .overview-panel-scroll,
.overview-shell-priority .overview-panel-scroll,
.overview-shell-schedule .overview-panel-scroll,
.overview-shell-manpower .overview-panel-scroll {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 4px;
}

.overview-shell-projects .overview-panel-scroll,
.overview-shell-meetings .overview-panel-scroll {
  max-height: 100%;
}

.overview-panel-scroll::-webkit-scrollbar {
  width: 8px;
}

.overview-panel-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(192, 178, 156, 0.42), rgba(168, 184, 205, 0.34));
  border-radius: 999px;
}

.overview-shell-priority .overview-panel-scroll,
.overview-shell-notes .overview-panel-scroll {
  scrollbar-width: thin;
}

.overview-shell-priority,
.overview-shell-schedule,
.overview-shell-projects,
.overview-shell-meetings,
.overview-shell-notes,
.overview-shell-announcements {
  height: 100%;
}

.overview-shell-priority,
.overview-shell-projects,
.overview-shell-meetings,
.overview-shell-schedule,
.overview-shell-notes,
.overview-shell-announcements {
  grid-template-rows: auto minmax(0, 1fr);
}

.overview-shell-grid .overview-panel {
  padding: 12px 12px 10px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 252, 249, 0.92), rgba(246, 250, 254, 0.84));
  border-color: rgba(180, 198, 217, 0.46);
  box-shadow:
    0 14px 30px rgba(30, 55, 88, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.overview-shell-grid .overview-panel:hover,
.overview-today-panel:hover {
  box-shadow:
    0 16px 34px rgba(30, 55, 88, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.overview-shell-grid .overview-panel .panel-title {
  margin-bottom: 0;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: #30455e;
  text-transform: none;
}

.overview-shell-priority {
  background:
    radial-gradient(circle at left 18%, rgba(255, 239, 218, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(255, 252, 248, 0.94), rgba(247, 249, 253, 0.84));
  border-left: 1px solid rgba(212, 171, 121, 0.34);
  box-shadow:
    0 16px 32px rgba(168, 130, 76, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.overview-shell-projects {
  background:
    radial-gradient(circle at top right, rgba(227, 238, 249, 0.28), transparent 40%),
    linear-gradient(145deg, rgba(249, 252, 255, 0.94), rgba(245, 249, 253, 0.84));
  border-left: 1px solid rgba(123, 169, 216, 0.28);
  box-shadow:
    0 16px 32px rgba(58, 106, 148, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.overview-shell-meetings {
  background:
    radial-gradient(circle at top left, rgba(236, 244, 252, 0.26), transparent 36%),
    linear-gradient(145deg, rgba(251, 253, 255, 0.93), rgba(245, 249, 253, 0.83));
  border-left: 1px solid rgba(149, 187, 221, 0.24);
}

.overview-shell-schedule {
  background:
    radial-gradient(circle at top left, rgba(235, 245, 243, 0.24), transparent 38%),
    linear-gradient(145deg, rgba(251, 253, 252, 0.94), rgba(246, 250, 252, 0.84));
  border-left: 1px solid rgba(127, 186, 170, 0.24);
}

.overview-shell-notes,
.overview-shell-announcements {
  background:
    radial-gradient(circle at top right, rgba(241, 242, 249, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(252, 253, 255, 0.93), rgba(246, 249, 253, 0.83));
  border-left: 1px solid rgba(171, 186, 209, 0.18);
}

.overview-shell-priority .overview-list,
.overview-shell-projects .overview-list,
.overview-shell-meetings .overview-list,
.overview-shell-schedule .overview-list,
.overview-shell-announcements .overview-list {
  align-content: start;
  min-height: 0;
}

.overview-shell-priority .overview-list,
.overview-shell-notes .overview-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  gap: 10px;
}

.overview-shell-priority .overview-row,
.overview-shell-notes .overview-row {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.overview-shell-priority .overview-row:hover,
.overview-shell-notes .overview-row:hover {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.overview-shell-priority .overview-row-button,
.overview-shell-notes .overview-row-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 8px 6px;
}

.overview-shell-priority .overview-row-title,
.overview-shell-notes .overview-row-title {
  display: block;
  font-size: 1rem;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overview-shell-notes .overview-dual-list {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.overview-shell-notes .overview-subpanel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.overview-shell-notes .overview-subpanel .overview-list {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  padding-right: 4px;
}

.overview-shell-grid .overview-row,
.overview-shell-grid .overview-row-simple {
  min-height: 0;
}

.overview-row-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.overview-shell-priority .overview-dashboard-row,
.overview-shell-notes .overview-dashboard-row,
.overview-shell-projects .overview-dashboard-project-row {
  width: 100%;
}

.overview-shell-priority .overview-dashboard-row,
.overview-shell-notes .overview-dashboard-row {
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 252, 248, 0.92);
  border: 1px solid var(--line);
  box-shadow: none;
  position: relative;
}

.overview-shell-priority .overview-dashboard-row:hover,
.overview-shell-notes .overview-dashboard-row:hover {
  border-color: rgba(46, 125, 112, 0.24);
  transform: translateY(-1px);
}

.overview-shell-priority .overview-dashboard-row::before {
  content: "";
  position: absolute;
  inset: 5px auto 5px 0;
  width: 3px;
  border-radius: 999px;
  background: rgba(110, 136, 168, 0.45);
}

.overview-shell-priority .overview-dashboard-row.priority-critical::before {
  background: rgba(198, 78, 59, 0.82);
}

.overview-shell-priority .overview-dashboard-row.priority-overdue::before {
  background: rgba(214, 129, 54, 0.82);
}

.overview-shell-priority .overview-dashboard-row.priority-today::before,
.overview-shell-priority .overview-dashboard-row.priority-high::before {
  background: rgba(203, 154, 76, 0.82);
}

.overview-shell-priority .overview-dashboard-row .item-title,
.overview-shell-notes .overview-dashboard-row .item-title {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.overview-shell-priority .overview-dashboard-row .item-title span:first-child,
.overview-shell-notes .overview-dashboard-row .item-title span:first-child,
.overview-shell-priority .overview-dashboard-row .dashboard-alert-meta,
.overview-shell-notes .overview-dashboard-row .dashboard-alert-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-shell-projects .overview-dashboard-project-row {
  display: grid;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 252, 248, 0.92);
  border: 1px solid var(--line);
}

.overview-shell-projects .overview-dashboard-project-row:hover {
  border-color: rgba(46, 125, 112, 0.24);
  transform: translateY(-1px);
}

.overview-shell-projects .overview-dashboard-project-row .dashboard-item-tags {
  gap: 4px;
}

.overview-shell-projects .overview-project-priority-title {
  font-size: 0.84rem;
}

.overview-shell-projects .overview-project-priority-meta {
  gap: 6px;
  font-size: 0.66rem;
}

.overview-dashboard-priority-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.overview-priority-task,
.overview-priority-project {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-priority-task {
  color: #2b3a4d;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
}

.overview-priority-project {
  color: #7c8da0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: right;
}

.overview-dashboard-note-row .overview-priority-task {
  max-width: 100%;
}

.overview-dashboard-note-row {
  grid-template-columns: minmax(0, 2.6fr) minmax(0, 0.9fr);
}

.overview-dashboard-note-row .overview-priority-project {
  text-align: right;
  text-overflow: clip;
}

.overview-dashboard-note-row.is-important {
  background: linear-gradient(180deg, rgba(255, 248, 232, 0.96), rgba(252, 245, 225, 0.92));
  border-color: rgba(209, 174, 102, 0.4);
}

.overview-dashboard-note-row.is-critical {
  background: linear-gradient(180deg, rgba(255, 242, 239, 0.96), rgba(252, 232, 227, 0.92));
  border-color: rgba(204, 111, 98, 0.4);
}

.overview-meeting-row.has-alert {
  border-color: rgba(214, 129, 54, 0.26);
  box-shadow: inset 3px 0 0 rgba(214, 129, 54, 0.4);
}

.overview-agenda-empty {
  display: grid;
  gap: 6px;
  align-content: start;
}

.overview-agenda-empty-copy {
  color: #8ea0b4;
  font-size: 0.82rem;
}



.overview-row-button:disabled {
  cursor: default;
  opacity: 1;
}

.overview-shell-grid .empty-state {
  padding: 5px 9px;
  border: 1px dashed rgba(191, 201, 213, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.38), rgba(248, 250, 253, 0.26));
  color: #9eabb8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  justify-self: start;
  max-width: 100%;
  font-family: "Space Grotesk", sans-serif;
}

.project-release-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.project-release-date {
  color: #8d9aac;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.66rem;
}

.project-progress-compact {
  margin-top: 8px;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(172, 189, 209, 0.16);
  overflow: hidden;
}

.project-progress-compact span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(47, 111, 179, 0.8), rgba(72, 164, 153, 0.74));
}

.project-card:hover {
  box-shadow:
    0 16px 32px rgba(30, 55, 88, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.overview-shell-priority,
.overview-shell-schedule,
.overview-shell-projects,
.overview-shell-meetings,
.overview-shell-notes,
.overview-shell-announcements {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.overview-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 2fr);
  gap: 10px;
}

.overview-home-card {
  padding: 10px 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.95), rgba(255, 249, 241, 0.9));
  border: 1px solid rgba(189, 164, 126, 0.14);
  box-shadow: 0 12px 24px rgba(171, 154, 127, 0.12);
}

.overview-home-today { grid-column: 1 / span 2; }
.overview-home-quick { grid-column: 3 / span 2; }
.overview-panel-stack-a { grid-column: 1; }
.overview-panel-stack-b { grid-column: 1; }
.overview-panel-tall { grid-column: 2; grid-row: 2 / span 2; }
.overview-panel-slim:nth-of-type(5) { grid-column: 3; grid-row: 2 / span 2; }
.overview-panel-slim:nth-of-type(6) { grid-column: 4; grid-row: 2 / span 2; }

.overview-home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.overview-home-date {
  color: #6e7480;
  font-size: 0.72rem;
  font-weight: 700;
}

.overview-home-copy {
  display: grid;
  gap: 6px;
}

.overview-home-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  font-size: 0.86rem;
  line-height: 1.3;
}

.overview-home-label {
  color: #3e7b71;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.67rem;
  font-weight: 700;
}

.overview-home-line strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
}

.overview-home-next {
  color: #6a665f;
  font-weight: 700;
}

.overview-home-metrics,
.overview-manpower-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  margin-top: 12px;
}

.overview-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.74rem;
}

.overview-chip.tone-red {
  background: rgba(233, 131, 116, 0.12);
  border-color: rgba(233, 131, 116, 0.14);
  color: #c66e61;
}

.overview-chip.tone-orange {
  background: rgba(227, 170, 108, 0.12);
  border-color: rgba(227, 170, 108, 0.15);
  color: #bf8750;
}

.overview-chip.tone-green {
  background: rgba(95, 165, 120, 0.12);
  border-color: rgba(95, 165, 120, 0.16);
  color: #58946e;
}

.overview-metric-text {
  color: #5f5c58;
  font-size: 0.74rem;
  font-weight: 500;
}

.overview-quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.overview-quick-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(189, 164, 126, 0.2);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
}

.overview-quick-link-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(122, 170, 160, 0.16);
  color: #5f857f;
  font-size: 0.62rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.overview-quick-link-label {
  font-size: 0.82rem;
  white-space: nowrap;
}

.overview-panel-shell {
  display: grid;
  gap: 8px;
  height: 100%;
}

.overview-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.overview-panel-title-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
}

.overview-panel-body {
  display: grid;
  gap: 8px;
}

.overview-panel-body-scroll {
  max-height: 456px;
  overflow-y: auto;
  padding-right: 4px;
}

.overview-panel-body-scroll::-webkit-scrollbar {
  width: 8px;
}

.overview-panel-body-scroll::-webkit-scrollbar-thumb {
  background: rgba(182, 165, 139, 0.45);
  border-radius: 999px;
}

.overview-home-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(189, 164, 126, 0.18);
  background: rgba(255, 255, 255, 0.52);
  color: var(--text);
  text-align: left;
}

.overview-home-item-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.overview-home-item-title {
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overview-home-item-meta {
  color: #7b756d;
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overview-home-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(231, 196, 183, 0.8);
  background: rgba(255, 244, 240, 0.9);
  color: #c17b69;
  font-size: 0.72rem;
}

.overview-home-item-project .overview-home-item-badge {
  border-color: rgba(195, 193, 200, 0.72);
  background: rgba(251, 251, 253, 0.92);
  color: #596474;
}

.overview-slim-card {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(189, 164, 126, 0.18);
  background: rgba(255, 255, 255, 0.46);
  text-align: left;
  color: var(--text);
}

.overview-slim-title {
  font-size: 0.84rem;
  font-weight: 700;
}

.overview-slim-meta {
  color: #7b756d;
  font-size: 0.72rem;
}

.overview-slim-copy {
  color: #8a847c;
  font-size: 0.7rem;
}

.overview-supplement-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 6px 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--text);
}

.overview-supplement-time {
  color: #7968b5;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.overview-supplement-line {
  color: #5c5851;
  font-size: 0.72rem;
  line-height: 1.45;
}

.overview-empty-row {
  padding: 14px 12px;
  border: 1px dashed rgba(189, 164, 126, 0.24);
  border-radius: 16px;
  color: #8a847c;
  font-size: 0.78rem;
}

@media (max-width: 1100px) {
  .data-grid {
    grid-template-columns: 1fr;
  }

  .data-grid.aircraft-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aircraft-header-grid,
  .aircraft-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-ams {
    flex-direction: column;
    align-items: flex-start;
  }

  .overview-list-wide {
    grid-template-columns: 1fr;
  }

  .overview-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-home-today,
  .overview-home-quick,
  .overview-panel-stack-a,
  .overview-panel-stack-b,
  .overview-panel-tall,
  .overview-panel-slim:nth-of-type(5),
  .overview-panel-slim:nth-of-type(6) {
    grid-column: auto;
    grid-row: auto;
  }

  .overview-panel-body-scroll {
    max-height: 320px;
  }
}

@media (max-width: 800px) {
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .sidebar,
  .main {
    height: auto;
  }

  body {
    overflow: auto;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .quick-grid {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .data-grid.aircraft-projects-grid {
    grid-template-columns: 1fr;
  }

  .aircraft-header-grid,
  .aircraft-status-strip,
  .aircraft-checklist-row {
    grid-template-columns: 1fr;
  }

  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-9,
  .span-12 {
    grid-column: 1 / -1;
  }

  .overview-home-grid {
    grid-template-columns: 1fr;
  }

  .overview-quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .overview-shell-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-shell-today,
  .overview-shell-manpower,
  .overview-shell-priority,
  .overview-shell-schedule,
  .overview-shell-projects,
  .overview-shell-meetings,
  .overview-shell-notes,
  .overview-shell-announcements {
    grid-column: auto;
    grid-row: auto;
  }

  .overview-shell-projects .overview-panel-scroll,
  .overview-shell-meetings .overview-panel-scroll,
  .overview-shell-notes .overview-panel-scroll,
  .overview-shell-announcements .overview-panel-scroll,
  .overview-shell-priority .overview-panel-scroll,
  .overview-shell-schedule .overview-panel-scroll,
  .overview-shell-manpower .overview-panel-scroll {
    max-height: 260px;
  }

  .overview-manpower-pill-row {
    grid-template-columns: 84px repeat(4, minmax(0, 1fr));
  }

  .aircraft-workspace-tabbar {
    align-items: stretch;
    flex-direction: column;
  }

  .aircraft-workspace-tabbar-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 800px) {
  .overview-shell-grid {
    grid-template-columns: 1fr;
  }

  .overview-manpower-pill-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-manpower-pill-label {
    grid-column: 1 / -1;
  }
}

.mobile-topbar,
.sidebar-backdrop {
  display: none;
}

.mobile-topbar {
  align-items: center;
  gap: 10px;
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mobile-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}

.mobile-brand-name {
  min-width: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #20344d;
  letter-spacing: 0.02em;
}

.mobile-menu-button {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(127, 149, 174, 0.22);
  background: rgba(255, 252, 248, 0.84);
  color: #20344d;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 10px 22px rgba(40, 67, 98, 0.08);
}

@media (min-width: 901px) and (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 224px minmax(0, 1fr);
  }

  .sidebar {
    padding: 18px 14px;
  }

  .brand-row h1 {
    font-size: 2.1rem;
  }

  .brand p {
    font-size: 0.86rem;
  }

  .main {
    padding: 10px 14px 8px;
  }

  .hero-ams {
    align-items: stretch;
    gap: 12px;
  }

  .hero-heading-row-compact {
    align-items: flex-start;
    gap: 8px;
  }

  .hero-title-block {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .hero-stats {
    gap: 5px;
  }

  .hero-stats-inline .pill {
    padding: 3px 8px;
    font-size: 0.67rem;
  }

  .hero-meta-plain {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .hero-actions .action,
  .hero-save-button {
    min-height: 40px;
    padding: 9px 12px;
  }

  .overview-shell-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    height: auto;
    min-height: 0;
  }

  .overview-shell-grid::before {
    inset: 0;
    opacity: 0.45;
  }

  .overview-shell-today,
  .overview-shell-manpower,
  .overview-shell-priority,
  .overview-shell-schedule,
  .overview-shell-projects,
  .overview-shell-meetings,
  .overview-shell-notes,
  .overview-shell-announcements {
    grid-row: auto;
    min-height: 0;
    max-height: none;
    height: auto;
  }

  .overview-shell-today {
    grid-column: 1;
  }

  .overview-shell-manpower {
    grid-column: 2;
  }

  .overview-shell-priority {
    grid-column: 1;
  }

  .overview-shell-meetings {
    grid-column: 2;
  }

  .overview-shell-schedule {
    grid-column: 1;
  }

  .overview-shell-projects {
    grid-column: 2;
  }

  .overview-shell-notes {
    grid-column: 1 / -1;
  }

  .overview-shell-projects .overview-panel-scroll,
  .overview-shell-meetings .overview-panel-scroll,
  .overview-shell-notes .overview-panel-scroll,
  .overview-shell-announcements .overview-panel-scroll,
  .overview-shell-priority .overview-panel-scroll,
  .overview-shell-schedule .overview-panel-scroll,
  .overview-shell-manpower .overview-panel-scroll {
    max-height: 320px;
  }

  .dashboard-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid-block {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(82vw, 320px);
    height: 100dvh;
    padding: 18px 16px 22px;
    border-right: 1px solid var(--sidebar-border);
    border-bottom: 0;
    box-shadow:
      inset -1px 0 0 rgba(255, 255, 255, 0.03),
      22px 0 44px rgba(8, 16, 28, 0.22);
    z-index: 40;
    transform: translateX(calc(-100% - 12px));
    transition: transform 180ms ease;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(11, 22, 35, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 35;
  }

  body.nav-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 24;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 10px 0 8px;
    margin-bottom: 4px;
    background:
      linear-gradient(180deg, rgba(237, 243, 249, 0.96), rgba(237, 243, 249, 0.82));
    backdrop-filter: blur(14px);
  }

  .mobile-topbar .status-badge {
    justify-self: end;
    min-height: 36px;
  }

  .main {
    height: auto;
    min-height: 100vh;
    padding: 0 14px 16px;
    overflow: visible;
  }

  .main::before {
    background-size: 28px 28px;
  }

  .module-root {
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .hero,
  .hero-ams,
  .hero-heading-row-compact,
  .hero-meta-plain {
    align-items: stretch;
  }

  .hero,
  .hero-ams {
    gap: 10px;
  }

  .hero {
    padding-bottom: 10px;
  }

  .hero-title-block {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .hero-stats {
    gap: 6px;
  }

  .hero-stats-inline {
    flex: 1 1 100%;
  }

  .hero-stats-inline .pill {
    padding: 4px 8px;
    font-size: 0.68rem;
  }

  .hero-save-inline {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-actions .action,
  .hero-save-button,
  .nav-button,
  .inline-button,
  .quick-tile,
  .overview-row-button,
  .documents-tab,
  .travel-action,
  .business-action,
  .ams-toolbar-action {
    min-height: 44px;
  }

  .nav-button,
  .inline-button,
  .action {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .module-grid,
  .dashboard-hero,
  .dashboard-grid,
  .dashboard-grid-block,
  .overview-home-grid,
  .overview-shell-grid {
    grid-template-columns: 1fr;
  }

  .overview-shell-grid {
    grid-template-rows: auto;
    gap: 10px;
    height: auto;
    min-height: 0;
  }

  .overview-shell-grid::before {
    display: none;
  }

  .overview-shell-today,
  .overview-shell-manpower,
  .overview-shell-priority,
  .overview-shell-schedule,
  .overview-shell-projects,
  .overview-shell-meetings,
  .overview-shell-notes,
  .overview-shell-announcements,
  .dashboard-lead,
  .dashboard-card-compact,
  .dashboard-card-equal,
  .dashboard-card-priority-tall,
  .dashboard-card-tall {
    grid-column: 1 / -1;
    grid-row: auto;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .overview-shell-today,
  .overview-shell-manpower {
    min-height: auto;
    max-height: none;
  }

  .overview-shell-grid .overview-panel,
  .overview-today-panel,
  .dashboard-card,
  .dashboard-lead,
  .module-banner,
  .card {
    padding: 12px;
  }

  .overview-shell-projects .overview-panel-scroll,
  .overview-shell-meetings .overview-panel-scroll,
  .overview-shell-notes .overview-panel-scroll,
  .overview-shell-announcements .overview-panel-scroll,
  .overview-shell-priority .overview-panel-scroll,
  .overview-shell-schedule .overview-panel-scroll,
  .overview-shell-manpower .overview-panel-scroll,
  .dashboard-card-equal .dashboard-list-fixed,
  .dashboard-card-equal .dashboard-list.tight,
  .dashboard-card-priority-tall .dashboard-list-fixed,
  .dashboard-card-tall .dashboard-list-tall {
    height: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .overview-focus-top,
  .overview-focus-inline-split,
  .overview-project-priority-top,
  .overview-dashboard-priority-row,
  .overview-dashboard-note-row,
  .overview-row,
  .overview-project-row {
    grid-template-columns: 1fr;
  }

  .overview-focus-top {
    align-items: flex-start;
  }

  .overview-focus-birthdays {
    min-width: 0;
    margin-left: 0;
    justify-items: start;
    text-align: left;
  }

  .overview-row-tags,
  .overview-row-sidecopy {
    justify-content: flex-start;
    text-align: left;
  }

  .overview-priority-project,
  .overview-dashboard-note-row .overview-priority-project {
    text-align: left;
  }

  .overview-manpower-pill-row,
  .overview-quick-links,
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-manpower-pill-label {
    grid-column: 1 / -1;
  }

  .quick-grid {
    gap: 8px;
  }

  .quick-tile {
    flex-direction: column;
    padding: 10px 8px;
  }

  .dashboard-hero,
  .dashboard-grid-block {
    gap: 10px;
  }
}

@media (max-width: 767px) {
  .sidebar {
    width: min(84vw, 312px);
  }

  .hero-meta-plain {
    gap: 10px;
  }

  .hero-actions .action {
    flex: 1 1 calc(50% - 6px);
  }

  .overview-focus-line-inline strong,
  .overview-row-title,
  .overview-priority-task {
    white-space: normal;
  }

  .overview-row-meta,
  .overview-alert-meta,
  .overview-project-priority-meta span {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .main {
    padding: 0 10px 14px;
  }

  .mobile-topbar {
    padding: 8px 0 6px;
  }

  .mobile-brand-logo {
    width: 32px;
    height: 32px;
  }

  .mobile-brand-name {
    font-size: 0.98rem;
  }

  .sidebar {
    width: min(86vw, 296px);
  }

  .hero h2 {
    font-size: 1.04rem;
  }

  .hero-stats-inline .pill,
  .overview-health-chip,
  .overview-status-chip,
  .signal-pill {
    font-size: 0.66rem;
  }

  .overview-shell-grid .overview-panel,
  .overview-today-panel,
  .dashboard-card,
  .dashboard-lead,
  .module-banner,
  .card {
    padding: 10px;
  }

  .overview-manpower-pill {
    padding-inline: 10px;
  }
}
