:root {
  --color-base-bg: #F5F0D7;
  --color-text-ink: #151A1C;
  --color-floating-window: #FFFBEF;
  --color-soft-highlight: #FFF3D1;
  --color-outline: #151A1C;
  --color-muted-text: #4E5A5E;
  --color-primary-action: #151A1C;
  --color-primary-action-text: #FFFBEF;
  --color-success: #2F7D4F;
  --color-warning: #B7791F;
  --color-danger: #B42318;
  --color-info: #2563EB;
  --shadow-soft: 0 16px 45px rgba(21, 26, 28, 0.10);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-base-bg);
  color: var(--color-text-ink);
}
a { color: inherit; font-weight: 700; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--color-text-ink); color: var(--color-primary-action-text); padding: 0.75rem 1rem; z-index: 20; }
.skip-link:focus { left: 1rem; top: 1rem; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.sidebar { padding: 1.25rem; border-right: 2px solid rgba(21,26,28,.12); position: sticky; top: 0; height: 100vh; }
.brand-block { display: flex; gap: .8rem; align-items: center; margin-bottom: 1.5rem; }
.brand-mark { width: 48px; height: 48px; border-radius: 16px; background: var(--color-text-ink); color: var(--color-primary-action-text); display: grid; place-items: center; font-weight: 900; letter-spacing: .08em; }
.brand-block span { display: block; color: var(--color-muted-text); font-size: .9rem; }
.nav-list { display: grid; gap: .45rem; }
.nav-list a { text-decoration: none; padding: .8rem .9rem; border-radius: 14px; font-weight: 800; }
.nav-list a:hover, .nav-list a:focus { background: var(--color-soft-highlight); outline: 2px solid var(--color-outline); outline-offset: 2px; }
.badge { background: var(--color-danger); color: white; border-radius: 99px; padding: .1rem .45rem; font-size: .75rem; }

.main-area { min-width: 0; }
.topbar { min-height: 72px; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 2px solid rgba(21,26,28,.12); }
.topbar small { display: block; color: var(--color-muted-text); }
.topbar-actions { display: flex; gap: .75rem; align-items: center; }
.user-chip { padding: .5rem .75rem; background: var(--color-floating-window); border: 1px solid rgba(21,26,28,.18); border-radius: 999px; }
.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: none; cursor: pointer; color: var(--color-text-ink); font-weight: 800; }
.content { padding: 1.6rem; max-width: 1280px; }

.hero-card, .card, .form-panel { background: var(--color-floating-window); border: 2px solid rgba(21,26,28,.14); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 1.25rem; margin-bottom: 1.2rem; }
.hero-card { padding: clamp(1.5rem, 4vw, 4rem); max-width: 900px; }
.hero-card h1, .page-heading h1 { font-size: clamp(2rem, 4vw, 4rem); line-height: .98; margin: .2rem 0 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 900; color: var(--color-muted-text); font-size: .78rem; }
.muted { color: var(--color-muted-text); }
.error-text { color: var(--color-danger); font-weight: 700; }
.big-value { font-size: 1.4rem; font-weight: 900; }
.status-chip { background: var(--color-soft-highlight); border: 1px solid rgba(21,26,28,.18); padding: .2rem .55rem; border-radius: 999px; font-weight: 800; }
.soft { background: var(--color-soft-highlight); }

.grid { display: grid; gap: 1rem; margin-bottom: 1.2rem; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section-head, .page-heading-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.page-heading { margin-bottom: 1rem; }

.button, button.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: .7rem 1rem; border-radius: 14px; background: var(--color-primary-action); color: var(--color-primary-action-text); border: 2px solid var(--color-outline); text-decoration: none; cursor: pointer; font-weight: 900; }
.button.secondary { background: var(--color-floating-window); color: var(--color-text-ink); }
.button.full { width: 100%; }
.button:hover, button:hover { transform: translateY(-1px); }

.form-panel { max-width: 820px; }
.form-panel.narrow { max-width: 460px; }
form p { margin: 0 0 1rem; }
label { display: block; font-weight: 900; margin-bottom: .35rem; }
.form-control, input, select, textarea { width: 100%; min-height: 44px; border: 2px solid rgba(21,26,28,.24); border-radius: 14px; padding: .75rem .85rem; background: white; color: var(--color-text-ink); font: inherit; }
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #7b8588; }
input:focus, select:focus, textarea:focus, button:focus, a:focus { outline: 3px solid var(--color-soft-highlight); outline-offset: 3px; border-color: var(--color-outline); }
.helptext { color: var(--color-muted-text); display: block; margin-top: .25rem; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: .85rem; border-bottom: 1px solid rgba(21,26,28,.14); vertical-align: top; }
.data-table th { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-muted-text); }
.clean-list { list-style: none; margin: 0; padding: 0; }
.clean-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid rgba(21,26,28,.12); }

.module-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.module-grid.large { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.module-pill, .module-toggle { border-radius: 16px; border: 2px solid rgba(21,26,28,.14); padding: .9rem; background: white; display: grid; gap: .25rem; }
.module-pill span, .module-pill small, .module-toggle small { color: var(--color-muted-text); }
.module-pill.enabled { border-color: var(--color-success); background: #f3fff7; }
.module-pill.disabled { opacity: .68; }
.module-toggle { grid-template-columns: auto 1fr; align-items: start; cursor: pointer; }
.module-toggle input { width: auto; min-height: auto; margin-top: .25rem; }

.notification-list { list-style: none; padding: 0; margin: 0; }
.notification-item { padding: 1rem; border-radius: 16px; border: 1px solid rgba(21,26,28,.12); background: white; margin-bottom: .7rem; }
.notification-item.unread { background: var(--color-soft-highlight); border-color: var(--color-outline); }
.filter-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: .75rem; margin-bottom: 1rem; }
.messages { margin-bottom: 1rem; }
.message { padding: .8rem 1rem; border-radius: 14px; background: var(--color-soft-highlight); border: 1px solid rgba(21,26,28,.16); font-weight: 800; }
.message.error { color: var(--color-danger); }
.message.success { color: var(--color-success); }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; border-right: 0; border-bottom: 2px solid rgba(21,26,28,.12); }
  .nav-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { align-items: flex-start; gap: 1rem; flex-direction: column; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .filter-row { grid-template-columns: 1fr; }
  .content { padding: 1rem; }
  .data-table { display: block; overflow-x: auto; }
}

/* v0.2 polish */
body {
  font-family: Futura, Jost, Montserrat, "Trebuchet MS", Arial, sans-serif;
}
.page-heading.compact h1 { font-size: clamp(2rem, 3vw, 3.1rem); }
.quick-actions, .button-row, .action-list { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin-bottom: 1rem; }
.action-list { flex-direction: column; align-items: stretch; }
.button.ghost { background: var(--color-floating-window); color: var(--color-text-ink); }
.button.danger, button.danger { background: var(--color-danger); color: white; border-color: var(--color-danger); }
.button[disabled], button[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.tiny { font-size: .82rem; }
.empty-state { color: var(--color-muted-text); font-weight: 700; }
.callout { padding: .85rem 1rem; border-radius: 16px; border: 1px solid rgba(21,26,28,.16); background: var(--color-soft-highlight); margin: 1rem 0; font-weight: 800; }
.progress-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .65rem; }
.progress-item { border: 1px solid rgba(21,26,28,.14); background: white; border-radius: 14px; padding: .75rem; font-weight: 800; display: flex; gap: .55rem; align-items: center; }
.progress-item span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; border: 1px solid rgba(21,26,28,.2); }
.progress-item.done { background: #f3fff7; border-color: var(--color-success); }
.progress-item.done span { background: var(--color-success); color: white; }
.enabled-badge { background: #f3fff7; border-color: var(--color-success); }
.danger-zone { border-color: rgba(180,35,24,.35); }
.form-section h2 { margin-bottom: .5rem; }

/* v0.2.1 subscription/security entitlement layer */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.info-grid div {
    border: 1px solid rgba(21, 26, 28, 0.14);
    border-radius: 14px;
    padding: 0.75rem;
    background: rgba(255, 251, 239, 0.7);
}
.info-grid span {
    display: block;
    font-size: 0.78rem;
    color: var(--color-muted-text);
    margin-bottom: 0.2rem;
}
.info-grid strong { display: block; }
.warning-card {
    border-color: var(--color-warning);
    box-shadow: 0 0 0 3px rgba(183, 121, 31, 0.12);
}
.button.danger {
    background: var(--color-danger);
    border-color: var(--color-danger);
    color: #fff;
}
.module-toggle.readonly {
    cursor: default;
}

/* v0.2.2 security polish */
.small { font-size: 0.85rem; }
.security-metric { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid rgba(21, 26, 28, 0.12); }
.danger-zone { border-color: rgba(180, 35, 24, 0.35); }
.form-panel.narrow { max-width: 680px; }

/* v0.2.3 active activity monitoring */
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 1.25rem; align-items: start; }
.table-wrap { overflow-x: auto; }
.danger-card {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}
.status-chip.high, .status-chip.critical, .status-chip.error { background: #fff1f0; border-color: var(--color-danger); color: var(--color-danger); }
.status-chip.warning { background: #fff8e6; border-color: var(--color-warning); color: #7a4b00; }
.status-chip.info, .status-chip.notice { background: var(--color-soft-highlight); }
hr { border: 0; border-top: 1px solid rgba(21,26,28,.14); margin: 1rem 0; }
.narrow-card { max-width: 840px; }
@media (max-width: 1100px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .cards-4, .split-panel { grid-template-columns: 1fr; } }

/* v0.2.4 monitoring polish */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.85rem;
    align-items: end;
}
.filter-grid p { margin: 0; }
.form-actions { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; }
.pagination { display: flex; gap: .75rem; align-items: center; justify-content: center; margin-top: 1rem; }
.clean-list li p { margin: .35rem 0 0; color: var(--color-text-ink); font-weight: 500; }
.clean-list li { align-items: flex-start; }


/* v0.2.9 MFA lock-flow and system audit polish */
.nav-list-locked { gap: 0; }
.nav-locked-note { display: block; padding: .85rem 1rem; border: 2px solid rgba(21,26,28,.18); border-radius: 14px; background: var(--color-soft-highlight); font-weight: 900; }
.mfa-panel .checkbox-row { display: inline-flex; align-items: center; gap: .6rem; margin: .9rem 0 1rem; font-weight: 800; }
.mfa-panel .checkbox-row input[type=checkbox], input.native-checkbox, input[type=checkbox] { width: 18px; min-width: 18px; height: 18px; min-height: 18px; padding: 0; margin: 0; accent-color: var(--color-primary-action); }
.mfa-dev-code { max-width: 100%; }
.mfa-links { margin-top: .85rem; }

/* v0.2.9 product readiness, document guidance and command centre */
.brand-service { display: block; font-size: .7rem; color: var(--color-muted-text); margin-top: .15rem; max-width: 150px; line-height: 1.15; }
.provider-strip { display: flex; gap: 1rem; justify-content: space-between; align-items: center; background: var(--color-soft-highlight); }
.document-upload-grid { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); align-items: start; }
.sticky-help { position: sticky; top: 1rem; }
.visibility-guide-list { display: grid; gap: .65rem; }
.visibility-guide-item { border: 1px solid rgba(21,26,28,.14); border-radius: 14px; background: #fff; padding: .75rem; display: grid; gap: .25rem; }
.visibility-guide-item span { color: var(--color-muted-text); }
.visibility-guide-item small { font-weight: 700; color: var(--color-muted-text); }
.field-access_profile select, .field-visibility select { border-color: var(--color-outline); background: var(--color-soft-highlight); }
.article-list { display: grid; gap: .75rem; }
.article-card { border: 1px solid rgba(21,26,28,.14); border-radius: 16px; background: #fff; padding: .9rem; }
.article-card h3 { margin: .2rem 0; }
.info-grid.single { grid-template-columns: 1fr; }
@media (max-width: 1000px) { .document-upload-grid { grid-template-columns: 1fr; } .sticky-help { position: static; } }

/* v0.2.10 public demo showcase portal */
.demo-hero { max-width: 1040px; }
.demo-banner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding: .9rem 1rem; border: 2px solid var(--color-outline); border-radius: 18px; background: var(--color-soft-highlight); margin-bottom: 1rem; font-weight: 800; }
.demo-card { display: grid; gap: .65rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .8rem; }
.demo-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.demo-nav span { border: 1px solid rgba(21,26,28,.16); background: var(--color-floating-window); border-radius: 999px; padding: .45rem .75rem; font-weight: 900; }
.workflow-chain { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.workflow-step { position: relative; border: 2px solid rgba(21,26,28,.14); border-radius: 18px; background: white; padding: .85rem; display: grid; gap: .25rem; }
.workflow-step.done { border-color: var(--color-success); background: #f3fff7; }
.workflow-step.current { border-color: var(--color-warning); background: #fff8e6; }
.workflow-number { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: var(--color-text-ink); color: var(--color-primary-action-text); font-weight: 900; }
.workflow-step h3 { margin: .25rem 0; }
.workflow-step p { margin: .25rem 0 0; color: var(--color-muted-text); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.check-list li { padding: .65rem .75rem; border: 1px solid rgba(21,26,28,.14); background: white; border-radius: 14px; font-weight: 800; }
.check-list li:before { content: '✓'; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--color-success); color: white; margin-right: .5rem; font-size: .8rem; }

/* v0.2.11 document control helpers */
.required{color:var(--accent-red,#9b2d2d);font-weight:800}.preview-box{white-space:pre-wrap;max-height:520px;overflow:auto;background:#fffdf4;border:1px solid rgba(0,0,0,.12);border-radius:16px;padding:18px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.document-preview-image{max-width:100%;border-radius:18px;border:1px solid rgba(0,0,0,.14)}.document-preview-frame{width:100%;min-height:620px;border:1px solid rgba(0,0,0,.14);border-radius:18px;background:#fff}.approval-panel form{margin-top:12px}.table-scroll{overflow:auto}.tiny{font-size:.82rem;word-break:break-all}

/* v0.2.12 ETSHUB permission, visibility and approval polish */
.chip-row .status-chip { display: inline-flex; align-items: center; margin: .15rem .25rem .15rem 0; }
.compact-chain { margin: .7rem 0 1rem; }
.workflow-step.blocked { border-color: var(--color-danger); background: #fff1f0; }
.workflow-step.waiting { opacity: .72; }
.visibility-guide-item strong { font-size: 1rem; }
.approval-panel textarea + button, .approval-panel textarea { margin-top: .65rem; }
.approval-panel form + form { border-top: 1px solid rgba(21,26,28,.14); padding-top: .85rem; }
.required { color: var(--color-danger); }

/* v0.2.13 audit packs, export history and print-ready reports */
.no-print { display: flex; }
@media print {
  body { background: #fff; color: #111; }
  .sidebar, .topbar, .no-print, .messages, .skip-link { display: none !important; }
  .app-shell { display: block; }
  .content { max-width: none; padding: 0; }
  .card, .hero-card, .form-panel { box-shadow: none; border: 1px solid #bbb; break-inside: avoid; page-break-inside: avoid; background: #fff; }
  .grid, .cards-2, .cards-3, .cards-4 { display: block; }
  .data-table { display: table; font-size: 10pt; }
  .data-table th, .data-table td { padding: 6px; }
  a { text-decoration: none; }
}


/* v0.2.16 system review, visual QA and readiness mapping */
.readiness-grid { align-items: stretch; }
.readiness-card { min-height: 100%; }
.readiness-card h2 { margin-top: .2rem; }
.readiness-status { display: inline-flex; margin: .35rem 0 .55rem; }
.split-row { display: flex; gap: .8rem; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.code-block { white-space: pre-wrap; border: 1px solid rgba(21,26,28,.16); border-radius: 16px; background: #fffdf4; padding: 1rem; overflow: auto; font-size: .92rem; }
.data-table td { vertical-align: top; }
@media (max-width: 760px) { .split-row { display: grid; } }

/* v0.2.17/0.2.18 global visual QA repairs and VOT foundation */
.app-shell { min-height: 100dvh; }
.sidebar { overflow-y: auto; padding-bottom: calc(35px + 1.25rem); }
.nav-list { padding-bottom: 35px; }
.content { padding-bottom: max(35px, 2.2rem); }
.card, .form-panel, .hero-card { overflow-wrap: anywhere; }
.safe-text, .big-value, .user-chip, .data-table td { overflow-wrap: anywhere; word-break: break-word; }
.status-chip.active, .status-chip.foundation { background: #f3fff7; border-color: var(--color-success); color: #174b2e; }
.status-chip.coming-soon { background: #fff8e6; border-color: var(--color-warning); color: #7a4b00; }
.status-chip.disabled { background: #f4f4f1; color: var(--color-muted-text); }
.safe-card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.safe-card { border: 2px solid rgba(21,26,28,.14); border-radius: 18px; background: #fff; padding: 1rem; min-height: 220px; display: grid; grid-template-rows: 1fr auto; gap: .8rem; }
.safe-card h2, .safe-card h3 { margin: .35rem 0; line-height: 1.1; }
.safe-card-footer { border-top: 1px solid rgba(21,26,28,.12); padding-top: .7rem; display: flex; justify-content: space-between; gap: .75rem; align-items: center; flex-wrap: wrap; font-weight: 800; }
.module-grid-safe { align-items: stretch; }
.module-card-safe { border-radius: 18px; border: 2px solid rgba(21,26,28,.14); padding: 1rem; background: white; min-height: 190px; display: grid; grid-template-rows: 1fr auto; gap: .85rem; }
.module-card-safe.active, .module-card-safe.foundation { border-color: rgba(47,125,79,.45); background: #f8fff9; }
.module-card-safe.coming-soon { border-color: rgba(183,121,31,.45); background: #fffdf4; }
.module-card-body { display: grid; grid-template-columns: 20px 1fr; gap: .65rem; align-items: start; }
.module-card-body h3 { margin: 0 0 .25rem; line-height: 1.12; }
.module-marker { width: 16px; height: 16px; border-radius: 5px; background: var(--color-text-ink); margin-top: .2rem; box-shadow: inset 0 0 0 3px var(--color-soft-highlight); }
.module-card-footer { display: flex; gap: .75rem; justify-content: space-between; align-items: center; border-top: 1px solid rgba(21,26,28,.12); padding-top: .7rem; flex-wrap: wrap; }
.module-card-footer span { font-size: .85rem; color: var(--color-muted-text); font-weight: 800; }
.timeline-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.timeline-list li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; border-bottom: 1px solid rgba(21,26,28,.12); padding-bottom: .85rem; }
.timeline-dot { width: 16px; height: 16px; border-radius: 999px; background: var(--color-text-ink); margin-top: .25rem; box-shadow: 0 0 0 4px var(--color-soft-highlight); }
.lifecycle-grid { display: grid; gap: .8rem; }
.lifecycle-step { border: 1px solid rgba(21,26,28,.14); border-radius: 16px; padding: .85rem; background: white; display: grid; gap: .2rem; }
.lifecycle-step.current { border-color: var(--color-warning); background: #fff8e6; }
.inline-form .form-control { margin: .4rem 0; }
.demo-safety-label { display: inline-flex; align-items: center; padding: .35rem .65rem; border-radius: 999px; border: 1px solid rgba(21,26,28,.16); background: var(--color-soft-highlight); font-weight: 900; }
@media (max-width: 900px) { .sidebar { padding-bottom: 35px; } .module-card-safe, .safe-card { min-height: auto; } }

/* v0.3.0 business-standard layout additions */
.workflow-canvas{background:#17305f;border-radius:28px;padding:28px;margin:24px 0;overflow:auto;box-shadow:inset 0 0 0 2px rgba(255,255,255,.1)}
.flow-row{display:flex;align-items:center;gap:12px;min-width:920px}
.flow-node{min-width:135px;min-height:86px;padding:14px;border-radius:14px;color:white;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-weight:700;box-shadow:0 8px 22px rgba(0,0,0,.25)}
.flow-node span{font-size:12px;opacity:.9;margin-bottom:6px}.flow-node.start{background:#0fc7b8}.flow-node.process{background:#b36af2}.flow-node.decision{background:#f4a62a;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);padding:28px}.flow-node.document{background:#f8d93a;color:#151A1C}.flow-arrow{font-size:30px;color:white;font-weight:900}.table-wrap{overflow:auto}.small{padding:.45rem .7rem;font-size:.85rem}.payslip-preview{background:#fffef6;border:3px solid #1857ff}.payslip-header{background:#1857ff;color:#fff;display:flex;justify-content:space-between;gap:16px;padding:10px 14px;margin:-1rem -1rem 1rem -1rem;flex-wrap:wrap}.compact{gap:1rem}.payslip-preview table{width:100%;border-collapse:collapse;margin:12px 0}.payslip-preview th,.payslip-preview td{border:1px solid #1857ff;padding:8px;text-align:left}.payslip-preview h3{margin-top:18px}

/* v0.3.1 compact business layout, active import actions and future-placeholder colour */
:root { --color-future-placeholder: #8B1E1E; }
.content { max-width: none; width: 100%; padding: 1rem 1.25rem max(35px, 1.5rem); }
.sidebar { width: 250px; padding: .95rem; }
.app-shell { grid-template-columns: 250px minmax(0, 1fr); }
.brand-block { margin-bottom: .85rem; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; }
.nav-list { gap: .18rem; }
.nav-list a { padding: .48rem .6rem; border-radius: 10px; font-size: .95rem; line-height: 1.12; }
.topbar { min-height: 54px; padding: .65rem 1.15rem; }
.page-heading.compact-page, .compact-page { margin-bottom: .65rem; }
.page-heading.compact-page h1, .compact-page h1 { font-size: clamp(1.55rem, 2.1vw, 2.45rem); margin: .1rem 0 .35rem; }
.page-heading.compact-page p, .compact-page p { margin: .2rem 0; }
.card.dense-card, .dense-card { padding: .85rem; margin-bottom: .75rem; border-radius: 16px; box-shadow: 0 8px 24px rgba(21, 26, 28, .07); }
.dense-card h2, .dense-card h3 { margin: .1rem 0 .45rem; line-height: 1.08; }
.dense-callout { padding: .65rem .8rem; margin: .55rem 0 .75rem; }
.button-row.compact-actions, .compact-actions { gap: .45rem; margin-bottom: .65rem; }
.button-row.no-margin { margin: 0; }
.button.small, button.small, .small.button { min-height: 32px; padding: .38rem .62rem; border-radius: 10px; font-size: .82rem; }
.grid.two, .compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: .75rem; align-items: start; }
.compact-dashboard .card { min-height: 0; }
.form-grid, .dense-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .65rem; align-items: end; }
.grid-span-2 { grid-column: span 2; }
.compact-form label { margin: 0; }
.compact-form input, .compact-form select, .compact-form textarea { min-height: 36px; border-radius: 10px; padding: .48rem .6rem; }
.compact-form textarea { min-height: 68px; }
.checkbox-inline { display: inline-flex; align-items: center; gap: .45rem; align-self: center; }
.checkbox-inline input { width: 18px; min-width: 18px; }
.data-table.dense-table th, .data-table.dense-table td, .dense-table th, .dense-table td { padding: .42rem .5rem; font-size: .88rem; line-height: 1.22; }
.data-table.dense-table th, .dense-table th { font-size: .72rem; white-space: nowrap; }
.sheet-table { min-width: 980px; }
.spreadsheet-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .45rem; }
.spreadsheet-panel.one-col { grid-template-columns: 1fr; }
.spreadsheet-panel div, .compact-row-list div { border: 1px solid rgba(21,26,28,.14); border-radius: 10px; background: rgba(255,251,239,.55); padding: .45rem .55rem; display: grid; gap: .1rem; }
.spreadsheet-panel span, .compact-row-list span { color: var(--color-muted-text); font-size: .76rem; font-weight: 800; }
.compact-row-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .5rem; }
.future-placeholder, .placeholder-future, .not-developed, .future-note, .placeholder-note { color: var(--color-future-placeholder) !important; font-weight: 900; }
input::placeholder, textarea::placeholder { color: var(--color-future-placeholder); opacity: .85; }
.compact-denied { max-width: 620px; padding: 1rem; }
.compact-denied h1 { font-size: clamp(1.55rem, 2vw, 2.3rem); margin: .2rem 0 .5rem; }
@media (min-width: 1400px) { .content { padding-right: 2rem; } .dashboard-grid { grid-template-columns: repeat(3, minmax(320px, 1fr)); } }
@media (max-width: 900px) { .app-shell { grid-template-columns: 1fr; } .sidebar { width: auto; } .grid.two, .compact-grid { grid-template-columns: 1fr; } .grid-span-2 { grid-column: auto; } }

.status-chip.danger { background: #fff1f0; border-color: var(--color-danger); color: var(--color-danger); }

/* v0.3.4 compliance / sensitive-data / Revenue-readiness layout */
.grid.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; align-items: start; }
.compact-page-header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; margin-bottom: .8rem; flex-wrap: wrap; }
.compact-page-header h1 { margin: .1rem 0 .25rem; font-size: clamp(1.5rem, 2vw, 2.25rem); }
.compact-page-header p { margin: .1rem 0; max-width: 900px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .65rem; margin-bottom: .8rem; }
.kpi-card { border: 1px solid rgba(21,26,28,.14); border-radius: 16px; padding: .75rem; background: #fff; display: grid; gap: .1rem; }
.kpi-card strong { font-size: 1.5rem; line-height: 1; }
.kpi-card span { font-size: .78rem; font-weight: 900; color: var(--color-muted-text); text-transform: uppercase; letter-spacing: .04em; }
.mini-record { border: 1px solid rgba(21,26,28,.14); border-radius: 14px; padding: .7rem; margin-bottom: .55rem; background: rgba(255,251,239,.6); }
.placeholder-red { color: var(--color-future-placeholder, #8B1E1E) !important; font-weight: 900; }
.danger-box { border: 2px solid var(--color-danger, #8B1E1E); background: #fff1f0; border-radius: 14px; padding: .8rem; margin-top: .8rem; color: #5b1212; }
.button.danger, button.danger { background: #8B1E1E; color: white; border-color: #8B1E1E; }
.detail-grid.compact-detail { display: grid; grid-template-columns: minmax(150px, 240px) 1fr; gap: .45rem .8rem; }
.detail-grid.compact-detail dt { font-weight: 900; color: var(--color-muted-text); }
.detail-grid.compact-detail dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) { .grid.two-col { grid-template-columns: 1fr; } .compact-page-header { display: grid; } .detail-grid.compact-detail { grid-template-columns: 1fr; } }

/* v0.3.5 ERP control backbone */
.sticky-actions{position:sticky;bottom:0;background:rgba(245,240,215,.96);padding:.6rem 0;margin-top:.7rem;border-top:1px solid rgba(21,26,28,.12);display:flex;gap:.5rem;flex-wrap:wrap;z-index:4}
.status-chip{display:inline-flex;align-items:center;border:1px solid rgba(21,26,28,.18);border-radius:999px;padding:.22rem .48rem;background:#f2fff4;font-size:.78rem;font-weight:900;white-space:nowrap}.status-chip.danger{background:#fff1f0;border-color:#8B1E1E;color:#8B1E1E}.danger-card{border-color:#8B1E1E}.danger-card h2,.danger-card li{color:#8B1E1E}.sheet-table th,.sheet-table td{white-space:nowrap}.detail-grid{display:grid}.compact-detail{grid-template-columns:minmax(120px,220px) minmax(0,1fr);gap:.35rem .8rem}.compact-detail dt{font-weight:900;color:var(--color-muted-text)}.compact-detail dd{margin:0;overflow-wrap:anywhere}.flow-node.decision{min-width:130px;min-height:100px}.workflow-canvas .flow-row{padding-bottom:.6rem}.table-toolbar{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:.5rem}.table-toolbar input,.table-toolbar select{min-height:34px;padding:.35rem .55rem;border-radius:10px}.erp-tabs{display:flex;gap:.35rem;flex-wrap:wrap;margin:.4rem 0 .8rem}.erp-tabs a{border:1px solid rgba(21,26,28,.18);border-radius:999px;padding:.35rem .65rem;background:#fff;font-weight:900;text-decoration:none;color:var(--color-text-ink)}
@media (min-width:1200px){.dense-form-grid p{margin:.15rem 0}.dense-form-grid input,.dense-form-grid select{min-height:34px}.dense-form-grid textarea{min-height:62px}.card.dense-card{padding:.72rem}.data-table.dense-table td{padding:.34rem .44rem}}

/* v0.3.6 role-based modular navigation and UI cleanup */
.sidebar { overflow-y: auto; padding-bottom: 48px; }
.grouped-nav { display: grid; gap: .45rem; }
.nav-group { border-bottom: 1px solid rgba(21,26,28,.08); padding-bottom: .25rem; }
.nav-group-toggle { width: 100%; text-align: left; background: transparent; border: 0; padding: .25rem .2rem; color: var(--color-muted-text); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 1000; cursor: pointer; }
.nav-group-links { display: grid; gap: .12rem; }
.nav-group-collapsed .nav-group-links { display: none; }
.nav-group-links a { display: block; text-decoration: none; padding: .42rem .55rem; border-radius: 10px; font-size: .92rem; line-height: 1.08; font-weight: 900; }
.nav-group-links a:hover, .nav-group-links a:focus { background: var(--color-soft-highlight); outline: 2px solid var(--color-outline); outline-offset: 1px; }
.topbar { gap: .75rem; flex-wrap: wrap; }
.topbar-left { display: grid; gap: .25rem; min-width: 260px; }
.hub-nav-controls { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.mini-nav-button { min-height: 26px; padding: .18rem .48rem; border-radius: 999px; border: 1px solid rgba(21,26,28,.25); background: var(--color-floating-window); color: var(--color-text-ink); font-weight: 900; font-size: .72rem; text-decoration: none; cursor: pointer; }
.mini-nav-button:hover, .mini-nav-button:focus { outline: 2px solid var(--color-outline); background: var(--color-soft-highlight); }
.requisition-form-card { padding: .75rem; }
.requisition-layout-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: .75rem; align-items: start; }
.form-section-block { border: 1px solid rgba(21,26,28,.14); border-radius: 14px; background: rgba(255,251,239,.62); padding: .65rem; }
.form-section-block h2 { margin: 0 0 .45rem; font-size: 1rem; }
.two-row-grid { grid-template-columns: repeat(3, minmax(170px, 1fr)); }
.business-reason-panel, .requester-comment-panel { min-height: 100%; }
.business-reason-field, .business-reason-panel textarea { min-height: 150px !important; }
.requester-comment-panel textarea { min-height: 110px !important; }
.business-reason-readonly { background: #fff; border: 1px solid rgba(21,26,28,.12); border-radius: 12px; padding: .55rem; min-height: 80px; }
.mini-form { margin-top: .65rem; padding-top: .55rem; border-top: 1px solid rgba(21,26,28,.12); }
.compact-timeline li { grid-template-columns: 16px 1fr; }
.hr-tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; margin-bottom: .85rem; }
.hr-nav-tile { display: grid; grid-template-columns: 1fr auto; gap: .2rem .7rem; text-decoration: none; background: var(--color-floating-window); border: 2px solid rgba(21,26,28,.14); border-radius: 16px; padding: .8rem; box-shadow: 0 8px 24px rgba(21,26,28,.07); }
.hr-nav-tile span { color: var(--color-muted-text); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 1000; }
.hr-nav-tile strong { font-size: 1.6rem; line-height: 1; }
.hr-nav-tile p { grid-column: 1 / -1; margin: .25rem 0 0; color: var(--color-muted-text); font-weight: 700; }
.hr-nav-tile.warning { border-color: rgba(183,121,31,.45); }
.hr-nav-tile.danger { border-color: rgba(139,30,30,.5); }
.hr-nav-tile.ok { border-color: rgba(47,125,79,.35); }
.status-chip.warning { background: #fff8e6; border-color: var(--color-warning); color: #7a4c00; }
.status-chip.active { background: #f3fff7; border-color: var(--color-success); color: var(--color-success); }
@media (max-width: 1100px) { .requisition-layout-grid { grid-template-columns: 1fr; } .two-row-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); } }
@media (max-width: 700px) { .two-row-grid { grid-template-columns: 1fr; } .hub-nav-controls { display: none; } }

/* v0.3.6.1 NAV/UI HOTFIX — stable role-based sidebar and real internal shortcuts */
.app-shell {
  grid-template-columns: 268px minmax(0, 1fr);
}
.sidebar {
  width: 268px;
  min-width: 268px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.05rem .85rem 64px;
  background: var(--color-base-bg);
}
.brand-block {
  align-items: flex-start;
  gap: .65rem;
  margin-bottom: 1rem;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex: 0 0 44px;
}
.brand-block strong { display:block; line-height:1.05; }
.brand-block span { line-height: 1.12; }
.brand-service { max-width: 148px; }
.sidebar-nav {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: .72rem;
  width: 100%;
}
.sidebar-nav-section {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
}
.sidebar-nav-title {
  display: block;
  margin: .15rem 0 .24rem;
  padding: .18rem .25rem;
  color: var(--color-muted-text);
  font-size: .66rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 1000;
}
.sidebar-nav-links {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: .12rem;
  width: 100%;
}
.sidebar-nav-link {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: .42rem .55rem;
  border-radius: 11px;
  text-decoration: none;
  font-size: .95rem;
  line-height: 1.08;
  font-weight: 900;
  color: var(--color-text-ink);
  overflow-wrap: anywhere;
}
.sidebar-nav-link:hover,
.sidebar-nav-link:focus {
  background: var(--color-soft-highlight);
  outline: 2px solid var(--color-outline);
  outline-offset: 1px;
}
.sidebar-nav-link .badge { float: right; margin-left: .35rem; }
.grouped-nav,
.nav-list.grouped-nav,
.nav-group,
.nav-group-links {
  grid-template-columns: 1fr !important;
}
.nav-group-toggle { display: none !important; }
.topbar {
  min-height: 76px;
  gap: .85rem;
  padding: .85rem 1.35rem;
  align-items: center;
}
.topbar-left {
  display: grid;
  gap: .22rem;
  min-width: 280px;
}
.topbar-left strong {
  font-size: 1.05rem;
  line-height: 1.12;
}
.hub-nav-controls { display: none !important; }
.hub-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  margin-top: .22rem;
}
.hub-shortcuts a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: .28rem .68rem;
  border-radius: 999px;
  border: 1px solid rgba(21,26,28,.22);
  background: var(--color-floating-window);
  text-decoration: none;
  font-size: .78rem;
  line-height: 1;
  font-weight: 900;
  color: var(--color-text-ink);
}
.hub-shortcuts a:hover,
.hub-shortcuts a:focus {
  background: var(--color-soft-highlight);
  outline: 2px solid var(--color-outline);
  outline-offset: 1px;
}
.solo-internal-nav {
  gap: .5rem;
  margin-top: .55rem;
}
.solo-internal-nav a {
  min-height: 42px;
  padding: .58rem 1rem;
  border: 2px solid rgba(21,26,28,.28);
  font-size: .94rem;
  line-height: 1.05;
  box-shadow: 0 1px 0 rgba(21,26,28,.06);
}
.solo-internal-nav a:hover,
.solo-internal-nav a:focus {
  border-color: var(--color-outline);
  background: var(--color-soft-highlight);
}
.solo-internal-nav a.active {
  background: var(--color-primary-action);
  border-color: var(--color-outline);
  color: var(--color-primary-action-text);
}
.user-chip {
  white-space: nowrap;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.content {
  max-width: 1440px;
  width: 100%;
}
/* More breathing room for cards/panels without returning to giant whitespace */
.card, .form-panel, .hero-card {
  overflow: hidden;
}
.dashboard-grid, .grid, .hr-tile-grid {
  align-items: start;
}
.data-table th, .data-table td {
  overflow-wrap: anywhere;
}
/* Requisition form readability hotfix */
.requisition-form-card {
  padding: 1rem;
}
.requisition-layout-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
  gap: 1rem;
}
.two-row-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem;
}
.business-reason-field, .business-reason-panel textarea {
  min-height: 180px !important;
}
.requester-comment-panel textarea {
  min-height: 130px !important;
}
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 248px minmax(0, 1fr); }
  .sidebar { width: 248px; min-width: 248px; }
  .requisition-layout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; width: auto; min-width: 0; height: auto; max-height: none; border-right: 0; border-bottom: 2px solid rgba(21,26,28,.12); }
  .sidebar-nav { grid-template-columns: 1fr !important; }
  .sidebar-nav-links { grid-template-columns: 1fr !important; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .topbar-actions { width: 100%; justify-content: space-between; }
}
@media (max-width: 700px) {
  .hub-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-shortcuts a { width: 100%; }
  .user-chip { max-width: 220px; }
}

/* v0.3.7 access backbone navigation cards */
.nav-card { text-decoration: none; min-height: 118px; transition: transform .12s ease, box-shadow .12s ease; }
.nav-card:hover, .nav-card:focus { transform: translateY(-2px); box-shadow: var(--shadow-soft); outline: 2px solid var(--color-outline); outline-offset: 2px; }
.status-chip.none { color: var(--color-danger); background: #fff1f0; }
.status-chip.view { background: var(--color-soft-highlight); }
.status-chip.create, .status-chip.edit { color: #7a4b00; background: #fff8e6; }
.status-chip.approve, .status-chip.admin { color: var(--color-success); background: #f3fff7; }
.sidebar-nav-link { word-break: normal; overflow-wrap: break-word; hyphens: auto; }
.sidebar-nav-section + .sidebar-nav-section { margin-top: .35rem; }
.page-heading-row .button-row .button.ghost:first-child { font-size: 1.02rem; min-height: 50px; padding-left: 1rem; padding-right: 1.1rem; }

/* v0.3.7.1 access/UI stabilisation */
.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .75rem;
  align-items: stretch;
}
.pipeline-step {
  position: relative;
  border: 2px solid rgba(21,26,28,.12);
  border-radius: 18px;
  background: var(--color-floating-window);
  padding: .9rem;
  min-height: 112px;
  display: grid;
  gap: .35rem;
}
.pipeline-step span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-text-ink);
  color: var(--color-floating-window);
  font-weight: 900;
}
.pipeline-step strong { font-size: 1rem; line-height: 1.15; }
.pipeline-step em { font-style: normal; color: var(--color-muted); font-weight: 900; }
.hr-nav-tile {
  min-height: 132px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  column-gap: .75rem;
  align-items: start;
}
.hr-nav-tile p { grid-column: 1 / -1; margin-top: .25rem; }
.hr-nav-tile strong { font-size: 1.6rem; }
.back-button { font-size: 1rem; min-height: 46px; padding-left: 1rem; padding-right: 1.1rem; }
.access-denied-panel { max-width: 760px; }
.chain-line { font-size: 1.05rem; line-height: 1.7; }

/* v0.5.2.4 Eterna Solo UI clarity, compact cockpit and accent system */
:root {
  --eterna-bg: #F5F0D7;
  --eterna-card: #FFFBEF;
  --eterna-ink: #151A1C;
  --eterna-soft-highlight: #FFF3D1;
  --eterna-accent: #B86A24;
  --eterna-info: #276C73;
  --eterna-success: #2F7D5C;
  --eterna-danger: #B33A2E;
  --eterna-border: rgba(21, 26, 28, 0.16);
  --eterna-muted: #566064;
}

.solo-sidebar-nav .sidebar-nav-link:hover,
.solo-sidebar-nav .sidebar-nav-link:focus,
.solo-sidebar-nav .sidebar-nav-link.solo-nav-today {
  box-shadow: inset 4px 0 0 var(--eterna-accent);
}

.solo-utility-nav {
  margin-top: 1.2rem;
  padding-top: .75rem;
  border-top: 1px solid var(--eterna-border);
}

.solo-top-shortcuts a:first-child {
  border-color: var(--eterna-accent);
}

.solo-page-shell {
  margin: 0 0 .8rem;
}

.solo-status-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem .55rem;
  margin-bottom: .65rem;
}

.solo-status-name {
  font-size: .86rem;
  font-weight: 900;
}

.solo-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--eterna-border);
}

.solo-title-row h1 {
  font-size: clamp(1.75rem, 2.35vw, 2.65rem);
  line-height: 1;
  margin: .12rem 0 .32rem;
}

.solo-page-hint {
  margin: 0;
  max-width: 860px;
}

.solo-title-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.solo-internal-nav.compact {
  margin: 0 0 .9rem;
  gap: .35rem;
}

.solo-internal-nav.compact a {
  min-height: 34px;
  padding: .38rem .72rem;
  font-size: .82rem;
  border-width: 1px;
}

.solo-internal-nav.compact a.active {
  background: var(--eterna-ink);
  color: var(--eterna-card);
}

.solo-helper-panel {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  max-width: 340px;
}

.solo-helper-panel details {
  border: 2px solid var(--eterna-info);
  border-radius: 18px;
  background: var(--eterna-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.solo-helper-panel summary {
  cursor: pointer;
  list-style: none;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: .65rem .9rem;
  background: var(--eterna-info);
  color: #fff;
  font-weight: 1000;
}

.solo-helper-panel summary::-webkit-details-marker { display: none; }
.solo-helper-panel p, .solo-helper-panel .button-row { margin: .75rem .9rem; }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.status-chip.success,
.status-chip.active,
.status-chip.paid,
.status-chip.matched,
.status-chip.generated,
.status-chip.ready,
.status-chip.good,
.status-chip.ok {
  color: var(--eterna-success);
  background: #eefaf3;
  border-color: rgba(47, 125, 92, .35);
}

.status-chip.info,
.status-chip.reviewed,
.status-chip.notice {
  color: var(--eterna-info);
  background: #eef8f8;
  border-color: rgba(39, 108, 115, .35);
}

.status-chip.warning,
.status-chip.high,
.status-chip.needs,
.status-chip.suggested,
.status-chip.needs_review,
.status-chip.records_changed_after_export {
  color: #7a3f08;
  background: #fff6e8;
  border-color: rgba(184, 106, 36, .55);
}

.status-chip.danger,
.status-chip.critical,
.status-chip.overdue,
.status-chip.failed,
.status-chip.locked,
.status-chip.expired,
.status-chip.unmatched {
  color: var(--eterna-danger);
  background: #fff1ef;
  border-color: rgba(179, 58, 46, .4);
}

.solo-stage-chip {
  box-shadow: inset 4px 0 0 var(--eterna-accent);
}

.card.warning-card,
.highlight-card {
  border-color: rgba(184, 106, 36, .55);
  box-shadow: 0 0 0 3px rgba(184, 106, 36, .08), var(--shadow-soft);
}

.metric-row .card,
.solo-kpi-row .card {
  border-left: 5px solid var(--eterna-border);
}

.solo-kpi-row .card:nth-child(1) { border-left-color: var(--eterna-success); }
.solo-kpi-row .card:nth-child(2) { border-left-color: var(--eterna-danger); }
.solo-kpi-row .card:nth-child(3) { border-left-color: var(--eterna-accent); }
.solo-kpi-row .card:nth-child(4) { border-left-color: var(--eterna-info); }

.solo-form-card {
  max-width: none;
}

.stacked-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: .85rem 1rem;
}

.stacked-form p {
  grid-column: span 6;
  margin: 0;
}

.stacked-form p:has(textarea),
.stacked-form p:has(input[type="file"]),
.stacked-form p:has(input[type="checkbox"]) {
  grid-column: span 12;
}

.stacked-form p:nth-child(1),
.stacked-form p:nth-child(2),
.stacked-form p:nth-child(3) {
  grid-column: span 4;
}

.stacked-form label {
  font-size: .88rem;
  margin-bottom: .25rem;
}

.stacked-form input,
.stacked-form select,
.stacked-form textarea {
  min-height: 40px;
  padding: .58rem .7rem;
}

.stacked-form .helptext {
  font-size: .78rem;
}

.form-compact-note {
  margin-bottom: .85rem;
}

.data-table th {
  white-space: nowrap;
  overflow-wrap: normal;
}

.data-table td {
  overflow-wrap: break-word;
}

.bank-row-money-in td:first-child,
.csv-card-money-in, .bank-card-money-in {
  border-left: 5px solid var(--eterna-success);
}

.bank-row-money-out td:first-child,
.csv-card-money-out, .bank-card-money-out {
  border-left: 5px solid var(--eterna-danger);
}

.bank-row-transfer td:first-child,
.csv-card-transfer, .bank-card-transfer {
  border-left: 5px solid var(--eterna-info);
}

.bank-row-personal td:first-child,
.csv-card-personal, .bank-card-personal {
  border-left: 5px solid var(--eterna-muted);
}

.transaction-summary-card {
  border-left: 6px solid var(--eterna-accent);
}

.mini-chart {
  min-height: 210px;
}

.month-bar i {
  background: var(--eterna-success) !important;
}

.month-bar b {
  background: var(--eterna-danger) !important;
  opacity: .75 !important;
}

.month-bar em {
  background: var(--eterna-accent) !important;
  opacity: .85 !important;
  border: 0 !important;
}

.issue-actions {
  display: grid;
  gap: .45rem;
  min-width: 180px;
}

.issue-actions .button,
.issue-actions button {
  min-height: 34px;
  padding: .35rem .55rem;
  font-size: .82rem;
}

@media (max-width: 1100px) {
  .solo-title-row { grid-template-columns: 1fr; }
  .solo-title-actions { justify-content: flex-start; }
  .solo-helper-panel { position: static; max-width: none; margin-bottom: 1rem; }
}

@media (max-width: 900px) {
  .stacked-form p,
  .stacked-form p:nth-child(1),
  .stacked-form p:nth-child(2),
  .stacked-form p:nth-child(3) {
    grid-column: span 12;
  }
}

/* v0.5.2.5 Eterna Solo UI architecture and Settings repair */
.solo-status-note {
  font-size: .78rem;
  font-weight: 900;
}

.solo-helper-panel {
  position: sticky;
  float: right;
  right: 0;
  bottom: auto;
  z-index: 3;
  width: min(260px, 42vw);
  margin: -.25rem 0 .75rem .75rem;
}

.solo-helper-panel details {
  box-shadow: 0 10px 24px rgba(21, 26, 28, .08);
}

.solo-helper-panel summary {
  min-height: 36px;
  padding: .48rem .75rem;
  justify-content: center;
}

.solo-helper-panel details[open] {
  width: min(340px, 90vw);
}

.solo-settings-form {
  display: grid;
  gap: 1rem;
  clear: both;
}

.solo-settings-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.settings-summary-card {
  background: linear-gradient(135deg, var(--eterna-card), var(--eterna-soft-highlight));
  border: 1px solid var(--eterna-border);
  border-radius: 18px;
  padding: .95rem 1rem;
  box-shadow: 0 12px 30px rgba(21, 26, 28, .06);
}

.settings-summary-card span {
  color: var(--eterna-muted);
  display: block;
  font-size: .72rem;
  font-weight: 1000;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.settings-summary-card strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.1;
  margin: .18rem 0 .35rem;
}

.settings-summary-card p {
  margin: 0;
  color: var(--eterna-muted);
  font-weight: 750;
}

.solo-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.settings-card {
  margin-bottom: 0;
  min-width: 0;
}

.settings-card-head {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: start;
  margin-bottom: .85rem;
}

.settings-card-head h2 {
  margin: .1rem 0 0;
  line-height: 1.05;
}

.settings-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .72rem .85rem;
}

.settings-field-grid.settings-compact-grid {
  margin-top: .9rem;
}

.settings-field {
  display: grid;
  gap: .25rem;
  min-width: 0;
}

.settings-field label {
  color: var(--eterna-muted);
  font-size: .82rem;
  font-weight: 1000;
  letter-spacing: .01em;
}

.settings-field input,
.settings-field select,
.settings-field textarea,
.solo-settings-form input[type="text"],
.solo-settings-form input[type="email"],
.solo-settings-form input[type="number"],
.solo-settings-form input[type="date"],
.solo-settings-form input[type="time"],
.solo-settings-form select,
.solo-settings-form textarea {
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  border: 1px solid rgba(21, 26, 28, .22);
  border-radius: 12px;
  background: #fffdf8;
  color: var(--eterna-ink);
  padding: .58rem .68rem;
  font: inherit;
  font-weight: 750;
}

.settings-field textarea {
  min-height: 88px;
  resize: vertical;
}

.settings-span-2 {
  grid-column: 1 / -1;
}

.settings-toggle-list {
  display: grid;
  gap: .55rem;
  margin-top: .85rem;
}

.settings-toggle {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: .65rem;
  align-items: start;
  border: 1px solid rgba(21, 26, 28, .13);
  border-radius: 14px;
  background: rgba(255, 251, 239, .7);
  padding: .68rem .72rem;
  cursor: pointer;
}

.settings-toggle:hover,
.settings-toggle:focus-within {
  border-color: rgba(184, 106, 36, .55);
  background: #fffaf0;
}

.settings-toggle input[type="checkbox"] {
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin-top: .08rem;
  padding: 0 !important;
  border-radius: 5px;
  accent-color: var(--eterna-info);
}

.settings-toggle strong {
  display: block;
  line-height: 1.15;
}

.settings-toggle small {
  display: block;
  color: var(--eterna-muted);
  font-size: .82rem;
  font-weight: 750;
  margin-top: .18rem;
}

.settings-rule-list {
  display: grid;
  gap: .55rem;
}

.settings-rule-list p {
  margin: 0;
  border-left: 4px solid var(--eterna-border);
  padding-left: .72rem;
}

.settings-save-bar {
  position: sticky;
  bottom: .75rem;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 2px solid rgba(21, 26, 28, .18);
  border-radius: 20px;
  background: rgba(255, 251, 239, .96);
  box-shadow: 0 16px 40px rgba(21, 26, 28, .13);
  padding: .82rem 1rem;
  backdrop-filter: blur(8px);
}

.settings-save-bar p {
  margin: .1rem 0 0;
}

.solo-settings-form .errorlist {
  color: var(--eterna-danger);
  margin: .2rem 0 0;
  padding-left: 1rem;
  font-weight: 850;
}

@media (max-width: 1200px) {
  .solo-settings-summary,
  .solo-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .settings-card-head,
  .settings-save-bar {
    display: grid;
  }
  .settings-field-grid {
    grid-template-columns: 1fr;
  }
  .settings-span-2 {
    grid-column: auto;
  }
  .solo-helper-panel {
    float: none;
    position: static;
    width: auto;
    margin: 0 0 .85rem;
  }
}

/* v0.5.2.6 Future Eterna — selected visual direction #50 */
:root {
  --eterna-bg: #F5F0D7;
  --eterna-card: #FFFBEF;
  --eterna-ink: #151A1C;
  --eterna-soft-highlight: #FFF3D1;
  --eterna-accent: #B86A24;
  --eterna-info: #277277;
  --eterna-success: #2F7D5C;
  --eterna-danger: #B33A2E;
  --eterna-border: rgba(21, 26, 28, 0.13);
  --eterna-muted: #566064;
  --future-shadow: 0 18px 45px rgba(21, 26, 28, .10);
  --future-shadow-light: 0 10px 26px rgba(21, 26, 28, .055);
}

body {
  background:
    radial-gradient(circle at top right, rgba(39, 114, 119, .10), transparent 32rem),
    linear-gradient(135deg, #F7F1D7 0%, #F5F0D7 52%, #F3EDCF 100%);
}

.content {
  max-width: 1500px;
}

.sidebar {
  background: linear-gradient(180deg, rgba(255,251,239,.62), rgba(245,240,215,.96));
  border-right: 1px solid rgba(21,26,28,.10);
}

.brand-mark {
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(21,26,28,.12);
}

.topbar {
  background: rgba(245, 240, 215, .78);
  border-bottom: 1px solid rgba(21,26,28,.10);
  backdrop-filter: blur(10px);
}

.solo-page-shell {
  background: linear-gradient(135deg, rgba(255,251,239,.72), rgba(255,243,209,.34));
  border: 1px solid rgba(21,26,28,.10);
  border-radius: 28px;
  padding: 1rem 1.15rem;
  box-shadow: var(--future-shadow-light);
}

.solo-title-row {
  border-bottom: 0;
  padding-bottom: 0;
}

.solo-title-row h1 {
  letter-spacing: -.055em;
  font-size: clamp(2rem, 3.1vw, 3.45rem);
}

.solo-page-hint {
  font-size: 1rem;
  font-weight: 800;
}

.solo-status-strip {
  margin-bottom: .8rem;
}

.solo-status-note {
  color: var(--eterna-muted);
}

.solo-internal-nav.compact {
  margin: .85rem 0 1rem;
}

.solo-internal-nav.compact a,
.hub-shortcuts a {
  background: rgba(255,251,239,.84);
  border-color: rgba(21,26,28,.16);
  box-shadow: 0 6px 18px rgba(21,26,28,.035);
}

.solo-internal-nav.compact a.active,
.hub-shortcuts a.active {
  background: var(--eterna-ink);
  color: var(--eterna-card);
  border-color: var(--eterna-ink);
}

.card,
.form-panel,
.hero-card,
.settings-card,
.settings-summary-card {
  border: 1px solid rgba(21,26,28,.11);
  border-radius: 24px;
  background: rgba(255,251,239,.94);
  box-shadow: var(--future-shadow-light);
}

.card:hover,
.settings-card:hover,
.settings-summary-card:hover {
  box-shadow: var(--future-shadow);
}

.button,
button.button,
.dsa-actions a,
.dsa-actions button {
  border-radius: 14px;
  font-weight: 950;
}

.button:not(.ghost):not(.secondary),
button.button:not(.ghost):not(.secondary) {
  background: var(--eterna-ink);
  color: var(--eterna-card);
  border-color: var(--eterna-ink);
}

.button.ghost,
.button.secondary {
  background: rgba(255,251,239,.88);
  border-color: rgba(21,26,28,.22);
  color: var(--eterna-ink);
}

.status-chip {
  border-radius: 999px;
  padding: .26rem .58rem;
  font-size: .78rem;
}

.solo-stage-chip {
  color: #7a3f08;
  background: #fff6e8;
  border-color: rgba(184, 106, 36, .44);
}

.solo-helper-panel {
  float: none !important;
  position: static !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 0 1rem !important;
  clear: both;
}

.solo-helper-panel details {
  border: 1px solid rgba(39,114,119,.20);
  border-radius: 20px;
  background: rgba(255,251,239,.82);
  box-shadow: var(--future-shadow-light);
}

.solo-helper-panel summary {
  justify-content: flex-start;
  min-height: 38px;
  background: rgba(39,114,119,.10);
  color: var(--eterna-info);
}

.solo-kpi-row .card,
.metric-row .card {
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: .25rem;
  border-left-width: 6px;
}

.metric-card span,
.metric-row .card span {
  color: var(--eterna-muted);
  font-size: .76rem;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.metric-card strong,
.metric-row .card strong {
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  letter-spacing: -.04em;
}

.highlight-card,
.warning-card {
  border-color: rgba(184,106,36,.34);
  box-shadow: 0 0 0 3px rgba(184,106,36,.055), var(--future-shadow-light);
}

.future-settings-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.future-settings-menu {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: .28rem;
  background: rgba(255,251,239,.92);
  border: 1px solid rgba(21,26,28,.11);
  border-radius: 24px;
  padding: .85rem;
  box-shadow: var(--future-shadow-light);
}

.future-settings-menu .eyebrow {
  margin: .15rem .55rem .45rem;
}

.future-settings-menu a {
  color: var(--eterna-ink);
  text-decoration: none;
  border-radius: 14px;
  padding: .68rem .75rem;
  font-weight: 950;
}

.future-settings-menu a:hover,
.future-settings-menu a:focus {
  background: var(--eterna-soft-highlight);
  outline: 2px solid rgba(184,106,36,.35);
}

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

.settings-summary-card {
  background: linear-gradient(135deg, rgba(255,251,239,.96), rgba(255,243,209,.58));
  min-height: 128px;
}

.settings-summary-card strong {
  font-size: 1.18rem;
}

.solo-settings-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.settings-card {
  scroll-margin-top: 1rem;
  padding: 1.25rem;
}

.settings-card-head {
  border-bottom: 1px solid rgba(21,26,28,.08);
  padding-bottom: .7rem;
}

.settings-card-head h2 {
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  letter-spacing: -.045em;
}

.settings-field-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.settings-field input,
.settings-field select,
.settings-field textarea,
.solo-settings-form input[type="text"],
.solo-settings-form input[type="email"],
.solo-settings-form input[type="number"],
.solo-settings-form input[type="date"],
.solo-settings-form input[type="time"],
.solo-settings-form select,
.solo-settings-form textarea {
  background: #fffdf7;
  border-color: rgba(21,26,28,.16);
  border-radius: 14px;
  min-height: 44px;
}

.settings-toggle {
  border-color: rgba(21,26,28,.10);
  background: rgba(255,243,209,.28);
}

.settings-toggle input[type="checkbox"] {
  accent-color: var(--eterna-info);
}

.settings-save-bar {
  bottom: 1rem;
  border-color: rgba(21,26,28,.14);
  background: rgba(255,251,239,.96);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(21,26,28,.16);
}

.future-issue-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
}

.future-issue-list,
.future-decision-panel {
  padding: 1.1rem;
}

.future-issue-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 1rem;
  align-items: start;
  border: 1px solid rgba(21,26,28,.10);
  border-radius: 20px;
  background: rgba(255,253,247,.72);
  padding: 1rem;
  margin-top: .75rem;
}

.future-issue-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .85rem;
}

.future-issue-main h3 {
  margin: 0 0 .25rem;
  font-size: 1.18rem;
  letter-spacing: -.025em;
}

.future-issue-main p {
  margin: .28rem 0;
}

.future-issue-actions {
  display: grid;
  gap: .5rem;
}

.future-issue-actions .button,
.future-issue-actions button,
.future-issue-actions input {
  width: 100%;
  min-height: 36px;
}

.future-issue-actions input {
  border: 1px solid rgba(21,26,28,.16);
  border-radius: 12px;
  padding: .45rem .6rem;
  background: #fffdf7;
  margin-bottom: .35rem;
}

.future-decision-panel {
  position: sticky;
  top: 1rem;
}

.future-decision-panel h2 {
  letter-spacing: -.04em;
}

.mini-card {
  border: 1px solid rgba(21,26,28,.11);
  border-radius: 20px;
  padding: 1rem;
  background: rgba(255,251,239,.86);
  box-shadow: var(--future-shadow-light);
}

.link-button {
  background: none;
  border: 0;
  text-decoration: underline;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  color: var(--eterna-ink);
}

@media (min-width: 1350px) {
  .dashboard-grid, .grid.cards-3 {
    gap: 1rem;
  }
  .solo-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .settings-card:nth-child(4),
  .settings-card:nth-child(6) {
    grid-column: span 2;
  }
}

@media (max-width: 1100px) {
  .future-settings-layout,
  .future-issue-board {
    grid-template-columns: 1fr;
  }
  .future-settings-menu,
  .future-decision-panel {
    position: static;
  }
  .future-settings-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .future-settings-menu .eyebrow {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .solo-page-shell {
    border-radius: 20px;
    padding: .85rem;
  }
  .solo-settings-summary,
  .settings-field-grid,
  .future-issue-card,
  .future-issue-main,
  .future-settings-menu {
    grid-template-columns: 1fr;
  }
  .settings-save-bar {
    position: static;
  }
}

/* v0.5.2.7 Eterna Solo Cockpit — navigation, no-lost-work UX and protected workspace */
:root {
  --esc-ink: #151A1C;
  --esc-card: #FFFBEF;
  --esc-bg: #F5F0D7;
  --esc-soft: #FFF3D1;
  --esc-teal: #276C73;
  --esc-teal-dark: #17464B;
  --esc-amber: #B86A24;
  --esc-green: #2F7D5C;
  --esc-red: #B33A2E;
  --esc-border: rgba(21,26,28,.13);
  --esc-shadow: 0 18px 48px rgba(21,26,28,.10);
  --esc-shadow-soft: 0 8px 24px rgba(21,26,28,.055);
}

.esc-cockpit-shell {
  display: block;
  min-width: 0;
  padding-bottom: 1rem;
}

.esc-command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: .8rem;
  align-items: center;
  margin: 0 0 .85rem;
  padding: .7rem .8rem;
  border: 1px solid rgba(21,26,28,.11);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,251,239,.95), rgba(255,243,209,.55));
  box-shadow: var(--esc-shadow-soft);
  position: sticky;
  top: .5rem;
  z-index: 8;
  backdrop-filter: blur(10px);
}

.esc-command-left,
.esc-command-right,
.esc-command-centre {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-width: 0;
  flex-wrap: wrap;
}

.esc-command-right { justify-content: flex-end; }
.esc-command-centre { justify-content: center; }
.esc-nav-button { min-height: 38px; padding: .48rem .7rem; }
.esc-home-button { min-height: 40px; }

.esc-location-chip,
.esc-save-state {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(21,26,28,.14);
  background: rgba(255,251,239,.9);
  padding: .32rem .68rem;
  font-weight: 950;
  white-space: nowrap;
}

.esc-save-state {
  color: var(--esc-green);
  background: rgba(47,125,92,.08);
  border-color: rgba(47,125,92,.22);
}
.esc-save-state.is-dirty,
[data-esc-inline-status].is-dirty { color: #7a3f08; background: #fff6e8; border-color: rgba(184,106,36,.45); }
.esc-save-state.is-saving,
[data-esc-inline-status].is-saving { color: var(--esc-teal); background: #eef8f8; border-color: rgba(39,108,115,.32); }
.esc-save-state.is-restored,
[data-esc-inline-status].is-restored { color: var(--esc-amber); background: #fff6e8; border-color: rgba(184,106,36,.45); }

.esc-breadcrumbs {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--eterna-muted, #566064);
  font-weight: 850;
  font-size: .9rem;
  margin: 0 0 .7rem .25rem;
}
.esc-breadcrumbs a { color: var(--esc-teal-dark); text-decoration: none; font-weight: 950; }
.esc-breadcrumbs a:hover { text-decoration: underline; }

.esc-dsa-panel {
  margin-bottom: 1rem !important;
}
.esc-dsa-panel details {
  border-color: rgba(39,108,115,.20) !important;
}
.esc-dsa-panel summary::after {
  content: 'Local first';
  margin-left: auto;
  font-size: .76rem;
  color: var(--esc-teal-dark);
  background: rgba(39,108,115,.10);
  border-radius: 999px;
  padding: .18rem .45rem;
}
.esc-dsa-body { padding: 0 .9rem .75rem; }

.esc-brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.esc-brief-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: clamp(1rem, 2vw, 1.6rem);
  background: radial-gradient(circle at top right, rgba(39,108,115,.12), transparent 32%), linear-gradient(135deg, rgba(255,251,239,.98), rgba(255,243,209,.72));
}

.esc-brief-copy h2 {
  margin: .1rem 0 .45rem;
  font-size: clamp(2rem, 3.2vw, 3.45rem);
  line-height: .98;
  letter-spacing: -.06em;
}

.esc-brief-main {
  max-width: 760px;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  font-weight: 800;
  line-height: 1.55;
}

.esc-brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}

.esc-readiness-ring {
  width: clamp(135px, 14vw, 180px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  border: 12px solid rgba(39,108,115,.18);
  box-shadow: inset 0 0 0 2px rgba(255,251,239,.95), 0 14px 34px rgba(39,108,115,.14);
  background: #fffdf7;
}
.esc-readiness-ring span {
  color: var(--esc-teal-dark);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 1000;
  letter-spacing: -.06em;
  line-height: 1;
}
.esc-readiness-ring small {
  color: var(--eterna-muted, #566064);
  font-weight: 900;
  margin-top: .3rem;
}

.esc-next-action-card {
  display: grid;
  align-content: start;
  gap: .65rem;
  border-left: 6px solid var(--esc-amber);
}
.esc-next-action-card h2,
.esc-next-action-card h3 { margin: 0; }
.esc-impact-list {
  display: grid;
  gap: .4rem;
  padding: .75rem;
  border-radius: 16px;
  background: rgba(255,243,209,.45);
  font-weight: 800;
}

.esc-cockpit-zones {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.esc-zone-card {
  display: grid;
  gap: .7rem;
  align-content: start;
  min-height: 250px;
}
.esc-zone-card h2 { margin: 0; letter-spacing: -.035em; }
.esc-zone-today { border-top: 5px solid var(--esc-amber); }
.esc-zone-dsa { border-top: 5px solid var(--esc-teal); }

.esc-metric-stack {
  display: grid;
  gap: .55rem;
}
.esc-metric-stack div,
.compact-info-grid div {
  border: 1px solid rgba(21,26,28,.09);
  border-radius: 16px;
  padding: .72rem;
  background: rgba(255,253,247,.72);
}
.esc-metric-stack span,
.compact-info-grid span {
  display: block;
  color: var(--eterna-muted, #566064);
  font-size: .75rem;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.esc-metric-stack strong,
.compact-info-grid strong {
  display: block;
  margin-top: .14rem;
  font-size: 1.28rem;
  letter-spacing: -.04em;
}

.esc-queue-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .7rem;
  align-items: start;
  padding: .62rem 0;
  border-bottom: 1px solid rgba(21,26,28,.09);
}
.esc-queue-row:last-child { border-bottom: 0; }
.esc-queue-row p { margin: .15rem 0 0; }
.esc-queue-row a { font-weight: 950; color: var(--esc-ink); text-decoration-thickness: 1px; }

.esc-pipeline-grid,
.esc-review-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.esc-review-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.esc-lifecycle {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .8rem 0;
}
.esc-lifecycle span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  background: rgba(39,108,115,.08);
  border: 1px solid rgba(39,108,115,.18);
  color: var(--esc-teal-dark);
  padding: .32rem .62rem;
  font-weight: 950;
}

.esc-weekly-review-card {
  border-color: rgba(39,108,115,.25);
  background: radial-gradient(circle at top left, rgba(39,108,115,.09), transparent 28%), rgba(255,251,239,.94);
}
.esc-boundary-card { margin-bottom: 5rem; }

/* Protected forms */
.esc-form-workspace .section-head { align-items: start; }
.stacked-form .esc-form-field {
  grid-column: span 6;
  display: grid;
  gap: .28rem;
  min-width: 0;
  margin: 0;
}
.stacked-form .esc-form-field:nth-of-type(1),
.stacked-form .esc-form-field:nth-of-type(2),
.stacked-form .esc-form-field:nth-of-type(3) {
  grid-column: span 4;
}
.stacked-form .esc-form-field:has(textarea),
.stacked-form .esc-form-field:has(input[type="file"]),
.stacked-form .esc-form-field:has(input[type="checkbox"]) {
  grid-column: span 12;
}
.stacked-form .esc-form-field label {
  color: var(--eterna-muted, #566064);
  font-size: .86rem;
  font-weight: 1000;
  margin-bottom: .12rem;
}
.stacked-form .esc-form-field input,
.stacked-form .esc-form-field select,
.stacked-form .esc-form-field textarea {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(21,26,28,.18);
  background: #fffdf7;
  padding: .62rem .72rem;
  font: inherit;
  font-weight: 750;
}
.stacked-form .esc-form-field textarea { min-height: 94px; resize: vertical; }
.stacked-form .esc-form-field input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  accent-color: var(--esc-teal);
}
.form-wide,
.esc-form-actions {
  grid-column: 1 / -1;
}
.esc-form-actions {
  position: sticky;
  bottom: .75rem;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  padding: .75rem;
  margin-top: .4rem;
  border: 1px solid rgba(21,26,28,.12);
  border-radius: 18px;
  background: rgba(255,251,239,.96);
  box-shadow: var(--esc-shadow-soft);
  backdrop-filter: blur(8px);
}
.helptext {
  color: var(--eterna-muted, #566064);
  font-size: .82rem;
  font-weight: 750;
}
.has-errors input,
.has-errors select,
.has-errors textarea { border-color: var(--esc-red) !important; }

/* Settings cockpit */
.esc-settings-cockpit { align-items: start; }
.esc-settings-tabs {
  display: grid;
  gap: .85rem;
  min-width: 0;
}
.esc-settings-tab {
  padding: 0 !important;
  overflow: hidden;
}
.esc-settings-tab > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, rgba(255,251,239,.98), rgba(255,243,209,.45));
  border-bottom: 1px solid rgba(21,26,28,.08);
}
.esc-settings-tab > summary::-webkit-details-marker { display: none; }
.esc-settings-tab > summary small {
  display: block;
  color: var(--eterna-muted, #566064);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .72rem;
}
.esc-settings-tab > summary strong {
  display: block;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  letter-spacing: -.035em;
}
.esc-settings-tab[open] > summary {
  box-shadow: inset 5px 0 0 var(--esc-teal);
}
.esc-settings-tab > *:not(summary) {
  margin-left: 1.15rem;
  margin-right: 1.15rem;
}
.esc-settings-tab > .settings-field-grid,
.esc-settings-tab > .settings-toggle-list,
.esc-settings-tab > .settings-rule-list,
.esc-settings-tab > .button-row,
.esc-settings-tab > .esc-advanced-settings {
  margin-bottom: 1.15rem;
}
.esc-settings-tab > p { margin-top: 1rem; }
.compact-toggle-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.esc-advanced-settings {
  border: 1px dashed rgba(21,26,28,.18);
  border-radius: 18px;
  background: rgba(255,253,247,.7);
  padding: .85rem;
}
.esc-advanced-settings > summary {
  cursor: pointer;
  font-weight: 1000;
  color: var(--esc-teal-dark);
  margin-bottom: .7rem;
}
.esc-save-bar .button-row { margin-bottom: 0; }

/* Draft warning modal */
.esc-draft-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(21,26,28,.38);
  backdrop-filter: blur(4px);
}
.esc-draft-modal-backdrop[hidden] { display: none; }
.esc-draft-modal {
  width: min(540px, 96vw);
  border: 1px solid rgba(21,26,28,.14);
  border-radius: 26px;
  background: var(--esc-card);
  color: var(--esc-ink);
  padding: 1.2rem;
  box-shadow: 0 28px 80px rgba(21,26,28,.24);
}
.esc-draft-modal h2 {
  margin: 0 0 .45rem;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: -.045em;
}
.esc-draft-modal p { font-weight: 800; }

/* Keep screenshots and long settings pages sane */
.solo-settings-form,
.esc-cockpit-shell { max-width: 100%; }
.settings-card,
.card,
.esc-zone-card { overflow-wrap: anywhere; }
.table-scroll,
.table-wrap { max-width: 100%; overflow-x: auto; }

.esc-mobile-bottom-nav {
  display: none;
}

@media (max-width: 1280px) {
  .esc-cockpit-zones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .esc-zone-dsa { grid-column: span 2; }
}

@media (max-width: 1100px) {
  .esc-command-bar {
    position: static;
    grid-template-columns: 1fr;
  }
  .esc-command-centre { justify-content: flex-start; }
  .esc-command-right { justify-content: flex-start; }
  .esc-brief-grid,
  .esc-brief-card,
  .esc-pipeline-grid,
  .esc-review-board {
    grid-template-columns: 1fr;
  }
  .esc-readiness-ring { width: 140px; justify-self: start; }
  .compact-toggle-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .content { padding-bottom: 92px; }
  .esc-command-left,
  .esc-command-right,
  .esc-command-centre,
  .esc-brief-actions,
  .button-row,
  .actions-row { width: 100%; }
  .esc-command-left .button,
  .esc-command-right .button,
  .esc-brief-actions .button,
  .button-row .button,
  .actions-row .button { flex: 1 1 auto; justify-content: center; }
  .solo-internal-nav.compact { display: none; }
  .esc-cockpit-zones { grid-template-columns: 1fr; }
  .esc-zone-dsa { grid-column: auto; }
  .stacked-form .esc-form-field,
  .stacked-form .esc-form-field:nth-of-type(1),
  .stacked-form .esc-form-field:nth-of-type(2),
  .stacked-form .esc-form-field:nth-of-type(3) { grid-column: span 12; }
  .esc-form-actions { position: static; }
  .esc-settings-menu { display: none; }
  .esc-settings-tab > summary { align-items: flex-start; display: grid; }
  .esc-mobile-bottom-nav {
    position: fixed;
    left: .55rem;
    right: .55rem;
    bottom: .55rem;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .25rem;
    padding: .35rem;
    border: 1px solid rgba(21,26,28,.13);
    border-radius: 22px;
    background: rgba(255,251,239,.96);
    box-shadow: 0 18px 45px rgba(21,26,28,.18);
    backdrop-filter: blur(10px);
  }
  .esc-mobile-bottom-nav a {
    display: grid;
    place-items: center;
    min-height: 46px;
    border-radius: 16px;
    color: var(--esc-ink);
    text-decoration: none;
    font-size: .78rem;
    font-weight: 950;
  }
  .esc-mobile-bottom-nav a.active,
  .esc-mobile-bottom-nav a:focus,
  .esc-mobile-bottom-nav a:hover {
    background: var(--esc-ink);
    color: var(--esc-card);
  }
}
.esc-export-fieldset {
  border: 1px solid rgba(21,26,28,.13);
  border-radius: 18px;
  background: rgba(255,243,209,.28);
  padding: .85rem;
  display: grid;
  gap: .45rem;
}
.esc-export-fieldset legend {
  font-weight: 1000;
  padding: 0 .35rem;
}
.esc-export-fieldset label {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin: 0;
}

/* v0.5.2.7.1 ESC visual compression and no-duplicate-identity hotfix */
body:has(.esc-cockpit-shell) .topbar {
  min-height: 58px;
  padding: .55rem 1.15rem;
}
body:has(.esc-cockpit-shell) .topbar-left.solo-topbar-left {
  min-width: 0;
  display: flex;
  align-items: center;
}
body:has(.esc-cockpit-shell) .topbar-left.solo-topbar-left small,
body:has(.esc-cockpit-shell) .topbar-left.solo-topbar-left strong {
  display: none !important;
}
body:has(.esc-cockpit-shell) .solo-top-shortcuts {
  margin-top: 0;
}
body:has(.esc-cockpit-shell) .topbar-actions {
  margin-left: auto;
}
body:has(.esc-cockpit-shell) .sidebar {
  width: 238px;
  min-width: 238px;
  padding: .95rem .75rem 48px;
}
body:has(.esc-cockpit-shell) .app-shell {
  grid-template-columns: 238px minmax(0, 1fr);
}
body:has(.esc-cockpit-shell) .brand-block {
  margin-bottom: .75rem;
}
body:has(.esc-cockpit-shell) .brand-block span,
body:has(.esc-cockpit-shell) .brand-service {
  font-size: .72rem;
  line-height: 1.08;
}
body:has(.esc-cockpit-shell) .sidebar-nav {
  gap: .42rem;
}
body:has(.esc-cockpit-shell) .sidebar-nav-title {
  margin: .1rem 0 .16rem;
  padding: .1rem .22rem;
  font-size: .62rem;
}
body:has(.esc-cockpit-shell) .sidebar-nav-link {
  min-height: 30px;
  padding: .34rem .5rem;
  font-size: .88rem;
  border-radius: 10px;
}
body:has(.esc-cockpit-shell) .solo-utility-nav {
  margin-top: .65rem;
  padding-top: .55rem;
}
body:has(.esc-cockpit-shell) .content {
  padding: 1rem 1.25rem;
  max-width: none;
}
body:has(.esc-cockpit-shell) .esc-command-bar {
  grid-template-columns: auto minmax(160px, 1fr) auto;
  gap: .55rem;
  margin-bottom: .55rem;
  padding: .52rem .62rem;
  border-radius: 18px;
  position: sticky;
  top: .35rem;
}
body:has(.esc-cockpit-shell) .esc-command-centre {
  justify-content: flex-start;
}
body:has(.esc-cockpit-shell) .esc-command-left,
body:has(.esc-cockpit-shell) .esc-command-right,
body:has(.esc-cockpit-shell) .esc-command-centre {
  gap: .32rem;
}
body:has(.esc-cockpit-shell) .esc-nav-button,
body:has(.esc-cockpit-shell) .esc-home-button,
body:has(.esc-cockpit-shell) .esc-command-bar .button {
  min-height: 36px;
  padding: .42rem .68rem;
}
body:has(.esc-cockpit-shell) .esc-location-chip,
body:has(.esc-cockpit-shell) .esc-save-state {
  min-height: 30px;
  padding: .24rem .55rem;
  font-size: .82rem;
}
body:has(.esc-cockpit-shell) .esc-breadcrumbs {
  margin: 0 0 .42rem .15rem;
  font-size: .82rem;
}
body:has(.esc-cockpit-shell) .solo-page-shell {
  margin: 0 0 .55rem;
  padding: .42rem .35rem .58rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body:has(.esc-cockpit-shell) .solo-status-strip {
  margin: 0 0 .28rem;
  gap: .28rem .42rem;
  font-size: .82rem;
}
body:has(.esc-cockpit-shell) .solo-status-note {
  font-size: .8rem;
  font-weight: 850;
}
body:has(.esc-cockpit-shell) .solo-page-shell .eyebrow {
  display: none;
}
body:has(.esc-cockpit-shell) .solo-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 0;
  border: 0;
}
body:has(.esc-cockpit-shell) .solo-title-row h1 {
  font-size: clamp(1.45rem, 2.1vw, 2.05rem);
  line-height: 1.02;
  margin: 0;
  letter-spacing: -.045em;
}
body:has(.esc-cockpit-shell) .solo-page-hint {
  max-width: 850px;
  margin: .18rem 0 0;
  font-size: .88rem;
  line-height: 1.25;
  font-weight: 800;
}
body:has(.esc-cockpit-shell) .solo-title-actions {
  flex-shrink: 0;
}
body:has(.esc-cockpit-shell) .solo-title-actions .button {
  min-height: 34px;
  padding: .38rem .62rem;
  font-size: .82rem;
}
body:has(.esc-cockpit-shell) .solo-internal-nav.compact {
  margin: .42rem 0 .65rem;
}
body:has(.esc-cockpit-shell) .solo-internal-nav.compact a {
  min-height: 30px;
  padding: .3rem .58rem;
  font-size: .78rem;
}
body:has(.esc-cockpit-shell) .esc-dsa-panel {
  margin-bottom: .65rem !important;
}
body:has(.esc-cockpit-shell) .esc-dsa-panel summary {
  min-height: 34px;
  padding: .48rem .7rem;
}
body:has(.esc-cockpit-shell) .card.solo-form-card {
  padding: 1rem;
}
body:has(.esc-cockpit-shell) .solo-settings-summary {
  margin-bottom: .8rem;
}
body:has(.esc-cockpit-shell) .settings-summary-card p,
body:has(.esc-cockpit-shell) .settings-rule-list p {
  line-height: 1.35;
}
@media (max-width: 1100px) {
  body:has(.esc-cockpit-shell) .app-shell { grid-template-columns: 1fr; }
  body:has(.esc-cockpit-shell) .sidebar { width: auto; min-width: 0; }
  body:has(.esc-cockpit-shell) .esc-command-bar { grid-template-columns: 1fr; }
  body:has(.esc-cockpit-shell) .esc-command-right { justify-content: flex-start; }
}
@media (max-width: 760px) {
  body:has(.esc-cockpit-shell) .topbar { padding: .55rem .8rem; }
  body:has(.esc-cockpit-shell) .content { padding: .75rem .75rem 92px; }
  body:has(.esc-cockpit-shell) .solo-title-row { display: grid; }
  body:has(.esc-cockpit-shell) .solo-title-actions { width: 100%; }
  body:has(.esc-cockpit-shell) .solo-title-actions .button { flex: 1 1 auto; }
}

/* v0.5.2.7.2 ESC full UI alignment to Future Eterna mockup */
:root {
  --esc-bg: #f7f1d8;
  --esc-card: #fffaf0;
  --esc-card-soft: #fff6df;
  --esc-ink: #101820;
  --esc-muted: #5a6668;
  --esc-line: rgba(16,24,32,0.14);
  --esc-accent: #10202a;
  --esc-teal: #1f7a78;
  --esc-green: #24785a;
  --esc-amber: #bd6a24;
  --esc-danger: #9b2c2c;
  --esc-shadow-soft: 0 14px 42px rgba(16,24,32,.08);
  --esc-shadow-card: 0 8px 24px rgba(16,24,32,.055);
}

body.is-solo-cockpit,
body.is-solo-cockpit .main-area,
body.is-solo-cockpit .content {
  background:
    radial-gradient(circle at top right, rgba(31,122,120,.08), transparent 34%),
    linear-gradient(180deg, #fffaf0 0%, var(--esc-bg) 58%, #f5efd5 100%);
  color: var(--esc-ink);
}
body.is-solo-cockpit .app-shell { grid-template-columns: 220px minmax(0,1fr); }
body.is-solo-cockpit .sidebar {
  width: 220px;
  min-width: 220px;
  padding: .82rem .68rem 44px;
  border-right: 1px solid var(--esc-line);
  background: linear-gradient(180deg, rgba(255,250,240,.96), rgba(247,241,216,.92));
  box-shadow: none;
}
body.is-solo-cockpit .brand-block {
  gap: .62rem;
  margin-bottom: .8rem;
  padding: .1rem .1rem .55rem;
  border-bottom: 1px solid rgba(16,24,32,.08);
}
body.is-solo-cockpit .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--esc-accent);
  color: var(--esc-card);
  box-shadow: 0 10px 24px rgba(16,24,32,.14);
}
body.is-solo-cockpit .brand-block strong { font-size: .96rem; letter-spacing: .02em; }
body.is-solo-cockpit .brand-block span { font-size: .72rem; line-height: 1.1; }
body.is-solo-cockpit .brand-service { font-size: .62rem; max-width: 128px; }
body.is-solo-cockpit .solo-sidebar-nav { gap: .28rem; }
body.is-solo-cockpit .sidebar-nav-title {
  margin: .12rem 0 .25rem;
  padding: 0 .18rem;
  color: var(--esc-muted);
  font-size: .62rem;
  letter-spacing: .18em;
}
body.is-solo-cockpit .sidebar-nav-links { gap: .25rem; }
body.is-solo-cockpit .sidebar-nav-link {
  min-height: 36px;
  padding: .45rem .56rem;
  border-radius: 12px;
  font-size: .91rem;
  line-height: 1.1;
  border: 1px solid transparent;
  background: transparent;
  color: var(--esc-ink);
}
body.is-solo-cockpit .sidebar-nav-link:hover,
body.is-solo-cockpit .sidebar-nav-link:focus,
body.is-solo-cockpit .sidebar-nav-link.active {
  background: var(--esc-accent);
  color: var(--esc-card);
  border-color: var(--esc-accent);
  outline: none;
  box-shadow: 0 10px 22px rgba(16,24,32,.13);
}

body.is-solo-cockpit .topbar {
  min-height: 48px;
  padding: .44rem 1.2rem;
  border-bottom: 1px solid var(--esc-line);
  background: rgba(255,250,240,.96);
  gap: .75rem;
}
body.is-solo-cockpit .topbar-left.solo-topbar-left {
  display: flex;
  align-items: center;
  min-width: 0;
}
body.is-solo-cockpit .solo-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--esc-ink);
  font-weight: 900;
  min-width: 0;
}
body.is-solo-cockpit .solo-topbar-brand strong { font-size: .95rem; letter-spacing: .02em; }
body.is-solo-cockpit .solo-topbar-brand span:not(.solo-topbar-divider) {
  color: var(--esc-ink);
  font-size: .9rem;
  white-space: nowrap;
}
body.is-solo-cockpit .solo-topbar-divider {
  width: 1px;
  height: 20px;
  background: rgba(16,24,32,.22);
}
body.is-solo-cockpit .topbar-actions { margin-left: auto; gap: .65rem; }
body.is-solo-cockpit .user-chip {
  min-height: 34px;
  padding: .32rem .72rem;
  border-radius: 999px;
  background: rgba(255,250,240,.88);
  border: 1px solid var(--esc-line);
  font-size: .9rem;
  font-weight: 850;
}
body.is-solo-cockpit .link-button {
  padding: .2rem .25rem;
  min-height: auto;
  border: 0;
  text-decoration: underline;
  font-size: .84rem;
}

body.is-solo-cockpit .content {
  width: 100%;
  max-width: none;
  padding: .72rem 1.05rem 1.2rem;
}
body.is-solo-cockpit .esc-cockpit-shell {
  width: 100%;
  display: grid;
  gap: .55rem;
}
body.is-solo-cockpit .esc-command-bar {
  position: sticky;
  top: .4rem;
  z-index: 22;
  display: grid;
  grid-template-columns: auto minmax(220px,1fr) auto;
  align-items: center;
  gap: .55rem;
  min-height: 52px;
  margin: 0;
  padding: .42rem .52rem;
  border: 1px solid var(--esc-line);
  border-radius: 18px;
  background: rgba(255,250,240,.94);
  box-shadow: var(--esc-shadow-card);
  backdrop-filter: blur(12px);
}
body.is-solo-cockpit .esc-command-left,
body.is-solo-cockpit .esc-command-centre,
body.is-solo-cockpit .esc-command-right {
  display: flex;
  align-items: center;
  gap: .38rem;
  min-width: 0;
}
body.is-solo-cockpit .esc-command-centre { justify-content: flex-start; }
body.is-solo-cockpit .esc-command-right { justify-content: flex-end; }
body.is-solo-cockpit .esc-command-bar .button,
body.is-solo-cockpit .esc-nav-button,
body.is-solo-cockpit .esc-home-button {
  min-height: 34px;
  padding: .38rem .68rem;
  border-radius: 12px;
  border-width: 1px;
  font-size: .84rem;
  font-weight: 950;
  white-space: nowrap;
}
body.is-solo-cockpit .esc-home-button {
  background: var(--esc-accent);
  color: var(--esc-card);
  border-color: var(--esc-accent);
}
body.is-solo-cockpit .esc-breadcrumbs {
  display: flex;
  align-items: center;
  gap: .38rem;
  margin: 0;
  min-width: 0;
  color: var(--esc-muted);
  font-size: .86rem;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.is-solo-cockpit .esc-breadcrumbs a {
  color: var(--esc-ink);
  text-decoration: none;
  font-weight: 950;
}
body.is-solo-cockpit .esc-save-state {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(36,120,90,.24);
  background: rgba(36,120,90,.10);
  color: var(--esc-green);
  padding: .24rem .64rem;
  font-size: .82rem;
  font-weight: 950;
}
body.is-solo-cockpit .solo-status-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .36rem .45rem;
  min-height: 36px;
  margin: 0;
  padding: .38rem .62rem;
  border: 1px solid rgba(189,106,36,.22);
  border-radius: 13px;
  background: rgba(255,246,223,.72);
  color: var(--esc-ink);
  box-shadow: none;
}
body.is-solo-cockpit .solo-stage-chip,
body.is-solo-cockpit .solo-status-strip .status-chip {
  min-height: 24px;
  padding: .13rem .44rem;
  font-size: .74rem;
  font-weight: 950;
  border-radius: 999px;
}
body.is-solo-cockpit .solo-status-note {
  color: var(--esc-muted);
  font-size: .82rem;
  font-weight: 850;
}
body.is-solo-cockpit .solo-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  min-height: 54px;
  margin: 0;
  padding: .35rem .15rem .2rem;
  border: 0;
  background: transparent;
}
body.is-solo-cockpit .solo-title-row h1 {
  margin: 0;
  color: var(--esc-ink);
  font-size: clamp(1.7rem, 2.6vw, 2.65rem);
  line-height: .98;
  letter-spacing: -.06em;
}
body.is-solo-cockpit .solo-page-hint {
  margin: .28rem 0 0;
  max-width: 850px;
  color: var(--esc-muted);
  font-size: .93rem;
  font-weight: 750;
  line-height: 1.32;
}
body.is-solo-cockpit .solo-title-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .05rem;
}
body.is-solo-cockpit .solo-title-actions:empty { display: none; }
body.is-solo-cockpit .solo-title-actions .button {
  min-height: 34px;
  padding: .38rem .62rem;
  border-width: 1px;
  border-radius: 12px;
  font-size: .82rem;
}
body.is-solo-cockpit .solo-internal-nav.compact,
body.is-solo-cockpit .solo-helper-panel { display: none !important; }

body.is-solo-cockpit .card,
body.is-solo-cockpit .form-panel,
body.is-solo-cockpit .hero-card {
  border: 1px solid var(--esc-line);
  border-radius: 20px;
  background: rgba(255,250,240,.9);
  box-shadow: var(--esc-shadow-card);
  padding: 1rem;
  margin-bottom: .78rem;
}
body.is-solo-cockpit .hero-card {
  max-width: none;
  padding: 1rem;
}
body.is-solo-cockpit .hero-card h1,
body.is-solo-cockpit .hero-card h2,
body.is-solo-cockpit .card h2 {
  margin-top: 0;
  letter-spacing: -.045em;
}
body.is-solo-cockpit .button,
body.is-solo-cockpit button.button {
  border-width: 1px;
  border-radius: 13px;
}
body.is-solo-cockpit .button.ghost,
body.is-solo-cockpit .button.secondary {
  background: rgba(255,250,240,.88);
  color: var(--esc-ink);
  border-color: var(--esc-line);
}
body.is-solo-cockpit .grid,
body.is-solo-cockpit .cards-2,
body.is-solo-cockpit .cards-3,
body.is-solo-cockpit .cards-4 { gap: .72rem; margin-bottom: .72rem; }

body.is-solo-cockpit .esc-form-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: .82rem;
  align-items: start;
  margin-top: .1rem;
}
body.is-solo-cockpit .esc-form-card,
body.is-solo-cockpit .esc-side-dsa-panel {
  min-width: 0;
  margin-bottom: 4.7rem;
}
body.is-solo-cockpit .esc-side-dsa-panel {
  position: sticky;
  top: 4.4rem;
  display: grid;
  gap: .68rem;
}
body.is-solo-cockpit .esc-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .82rem;
}
body.is-solo-cockpit .esc-card-title-row.compact { align-items: center; }
body.is-solo-cockpit .esc-card-title-row h2 {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  letter-spacing: -.04em;
}
body.is-solo-cockpit .stacked-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: .62rem .72rem;
  margin: 0;
}
body.is-solo-cockpit .stacked-form .esc-form-field {
  grid-column: span 6;
  display: grid;
  gap: .25rem;
  min-width: 0;
  margin: 0;
}
body.is-solo-cockpit .stacked-form .esc-form-field:nth-of-type(1),
body.is-solo-cockpit .stacked-form .esc-form-field:nth-of-type(2),
body.is-solo-cockpit .stacked-form .esc-form-field:nth-of-type(3) { grid-column: span 4; }
body.is-solo-cockpit .stacked-form .esc-form-field:has(textarea),
body.is-solo-cockpit .stacked-form .esc-form-field.esc-file-field,
body.is-solo-cockpit .stacked-form .esc-form-field:has(input[type="checkbox"]) { grid-column: 1 / -1; }
body.is-solo-cockpit .stacked-form label {
  margin: 0;
  color: var(--esc-ink);
  font-size: .82rem;
  font-weight: 900;
}
body.is-solo-cockpit .stacked-form input,
body.is-solo-cockpit .stacked-form select,
body.is-solo-cockpit .stacked-form textarea {
  min-height: 42px;
  border: 1px solid rgba(16,24,32,.18);
  border-radius: 13px;
  background: rgba(255,253,247,.92);
  padding: .58rem .68rem;
  font-weight: 750;
}
body.is-solo-cockpit .stacked-form textarea { min-height: 80px; }
body.is-solo-cockpit .esc-upload-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: .7rem .8rem;
  border: 1.5px dashed rgba(16,24,32,.25);
  border-radius: 15px;
  background: rgba(255,253,247,.66);
}
body.is-solo-cockpit .esc-upload-copy { display: grid; gap: .12rem; }
body.is-solo-cockpit .esc-upload-copy strong { font-size: .94rem; }
body.is-solo-cockpit .esc-upload-copy span { color: var(--esc-muted); font-size: .82rem; font-weight: 750; }
body.is-solo-cockpit .esc-upload-zone input[type=file] {
  width: auto;
  max-width: 260px;
  min-height: auto;
  padding: .35rem;
  background: transparent;
}
body.is-solo-cockpit .esc-vat-helper {
  margin: .1rem 0;
  padding: .62rem .75rem;
  border-color: rgba(189,106,36,.22);
  background: rgba(255,246,223,.78);
}
body.is-solo-cockpit .form-wide { grid-column: 1 / -1; }
body.is-solo-cockpit .esc-form-actions {
  position: fixed;
  left: calc(220px + 1.05rem);
  right: 1.05rem;
  bottom: .75rem;
  z-index: 35;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin: 0;
  padding: .58rem .72rem;
  border: 1px solid var(--esc-line);
  border-radius: 17px;
  background: rgba(255,250,240,.96);
  box-shadow: 0 18px 48px rgba(16,24,32,.14);
  backdrop-filter: blur(12px);
}
body.is-solo-cockpit .esc-draft-footer-status {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  color: var(--esc-ink);
  font-size: .88rem;
}
body.is-solo-cockpit .status-dot {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(36,120,90,.14);
  color: var(--esc-green);
  font-size: .78rem;
  font-weight: 1000;
}
body.is-solo-cockpit .esc-form-action-buttons { margin: 0; justify-content: flex-end; }
body.is-solo-cockpit .esc-form-action-buttons .button { min-height: 40px; min-width: 120px; }
body.is-solo-cockpit .esc-side-dsa-panel hr { margin: .2rem 0; }
body.is-solo-cockpit .esc-next-mini {
  display: grid;
  gap: .22rem;
  padding: .72rem .78rem;
  border: 1px solid rgba(31,122,120,.18);
  border-radius: 14px;
  background: rgba(31,122,120,.06);
  text-decoration: none;
}
body.is-solo-cockpit .esc-next-mini span {
  color: var(--esc-muted);
  font-size: .86rem;
  font-weight: 750;
}
body.is-solo-cockpit .esc-dsa-action-list { display: grid; gap: .48rem; }
body.is-solo-cockpit .esc-dsa-action-list .button { justify-content: flex-start; width: 100%; }

body.is-solo-cockpit .esc-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: .68rem;
  margin-bottom: .72rem;
}
body.is-solo-cockpit .esc-metric-card {
  display: grid;
  gap: .15rem;
  min-height: 82px;
  align-content: center;
}
body.is-solo-cockpit .esc-metric-card span {
  color: var(--esc-muted);
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}
body.is-solo-cockpit .esc-metric-card strong {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  letter-spacing: -.055em;
  line-height: 1;
}
body.is-solo-cockpit .esc-content-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .72rem;
}
body.is-solo-cockpit .esc-page-action-row,
body.is-solo-cockpit .actions-row,
body.is-solo-cockpit .dsa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .46rem;
  margin: 0 0 .72rem;
}
body.is-solo-cockpit .esc-compact-table-card .section-head { margin-bottom: .45rem; }
body.is-solo-cockpit .data-table th,
body.is-solo-cockpit .data-table td,
body.is-solo-cockpit table th,
body.is-solo-cockpit table td { padding: .62rem .7rem; }

body.is-solo-cockpit .esc-brief-grid { gap: .72rem; margin-bottom: .72rem; }
body.is-solo-cockpit .esc-brief-card { padding: 1rem; }
body.is-solo-cockpit .esc-brief-copy h2 { font-size: clamp(1.65rem, 2.6vw, 2.5rem); }
body.is-solo-cockpit .esc-brief-actions { gap: .45rem; margin-top: .7rem; }
body.is-solo-cockpit .esc-readiness-ring { width: clamp(112px, 11vw, 150px); border-width: 9px; }
body.is-solo-cockpit .esc-cockpit-zones { gap: .72rem; margin-bottom: .72rem; }
body.is-solo-cockpit .esc-zone-card { min-height: 0; gap: .5rem; }
body.is-solo-cockpit .esc-pipeline-grid,
body.is-solo-cockpit .esc-review-board { gap: .72rem; margin-bottom: .72rem; }
body.is-solo-cockpit .esc-boundary-card,
body.is-solo-cockpit .esc-weekly-review-card { margin-bottom: .72rem; }

body.is-solo-cockpit .settings-save-bar,
body.is-solo-cockpit .esc-save-bar {
  position: sticky;
  bottom: .75rem;
  z-index: 30;
  margin-bottom: 0;
  padding: .72rem;
  border: 1px solid var(--esc-line);
  border-radius: 18px;
  background: rgba(255,250,240,.96);
  box-shadow: 0 18px 48px rgba(16,24,32,.12);
}
body.is-solo-cockpit .solo-settings-summary { gap: .68rem; margin-bottom: .72rem; }
body.is-solo-cockpit .settings-summary-card { padding: .78rem; border-radius: 16px; }
body.is-solo-cockpit .future-settings-layout { gap: .72rem; }
body.is-solo-cockpit .esc-settings-tab > summary { padding: .72rem .86rem; }
body.is-solo-cockpit .esc-settings-tab > *:not(summary) { margin-left: .86rem; margin-right: .86rem; }
body.is-solo-cockpit .settings-field-grid { gap: .62rem; }
body.is-solo-cockpit .settings-toggle { padding: .68rem; }

@media (max-width: 1200px) {
  body.is-solo-cockpit .esc-summary-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  body.is-solo-cockpit .esc-content-grid-3,
  body.is-solo-cockpit .esc-review-board { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  body.is-solo-cockpit .app-shell { grid-template-columns: 1fr; }
  body.is-solo-cockpit .sidebar { display: none; }
  body.is-solo-cockpit .content { padding: .7rem .75rem 96px; }
  body.is-solo-cockpit .esc-command-bar { grid-template-columns: 1fr; position: static; }
  body.is-solo-cockpit .esc-command-left,
  body.is-solo-cockpit .esc-command-centre,
  body.is-solo-cockpit .esc-command-right { width: 100%; justify-content: flex-start; }
  body.is-solo-cockpit .esc-form-page-grid { grid-template-columns: 1fr; }
  body.is-solo-cockpit .esc-side-dsa-panel { position: static; margin-bottom: .72rem; }
  body.is-solo-cockpit .esc-form-actions { left: .75rem; right: .75rem; bottom: 4.8rem; }
  body.is-solo-cockpit .topbar { padding: .48rem .75rem; }
  body.is-solo-cockpit .solo-topbar-brand span:not(.solo-topbar-divider) { white-space: normal; }
}
@media (max-width: 720px) {
  body.is-solo-cockpit .topbar { align-items: flex-start; flex-direction: column; }
  body.is-solo-cockpit .topbar-actions { margin-left: 0; width: 100%; justify-content: space-between; }
  body.is-solo-cockpit .solo-title-row { display: grid; min-height: 0; }
  body.is-solo-cockpit .solo-title-actions { width: 100%; flex-wrap: wrap; }
  body.is-solo-cockpit .solo-title-actions .button { flex: 1 1 auto; }
  body.is-solo-cockpit .stacked-form .esc-form-field,
  body.is-solo-cockpit .stacked-form .esc-form-field:nth-of-type(1),
  body.is-solo-cockpit .stacked-form .esc-form-field:nth-of-type(2),
  body.is-solo-cockpit .stacked-form .esc-form-field:nth-of-type(3) { grid-column: 1 / -1; }
  body.is-solo-cockpit .esc-form-actions { position: static; display: grid; }
  body.is-solo-cockpit .esc-form-action-buttons { display: grid; grid-template-columns: 1fr; width: 100%; }
  body.is-solo-cockpit .esc-form-action-buttons .button { width: 100%; }
  body.is-solo-cockpit .esc-summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body.is-solo-cockpit .esc-command-bar .button { flex: 1 1 auto; }
  body.is-solo-cockpit .esc-command-left,
  body.is-solo-cockpit .esc-command-right { flex-wrap: wrap; }
  body.is-solo-cockpit .esc-breadcrumbs { white-space: normal; }
  body.is-solo-cockpit .esc-mobile-bottom-nav { display: grid; }
}
body.is-solo-cockpit .topbar-left.solo-topbar-left .solo-topbar-brand strong,
body.is-solo-cockpit .topbar-left.solo-topbar-left .solo-topbar-brand span {
  display: inline-flex !important;
}
body.is-solo-cockpit .topbar-left.solo-topbar-left .solo-topbar-divider {
  display: inline-block !important;
}
body.is-solo-cockpit .dsa-card,
body.is-solo-cockpit .dsa-summary-tile,
body.is-solo-cockpit .dsa-table,
body.is-solo-cockpit .dsa-item-card {
  background: rgba(255,250,240,.9) !important;
  border: 1px solid var(--esc-line) !important;
  border-radius: 18px !important;
  box-shadow: var(--esc-shadow-card) !important;
}
body.is-solo-cockpit .dsa-card { padding: 1rem !important; margin-bottom: .72rem !important; }
body.is-solo-cockpit .dsa-actions { gap: .45rem !important; margin: 0 0 .72rem !important; }
body.is-solo-cockpit .dsa-btn,
body.is-solo-cockpit .dsa-actions a,
body.is-solo-cockpit .dsa-actions button {
  min-height: 36px !important;
  padding: .42rem .7rem !important;
  border-radius: 13px !important;
  background: rgba(255,250,240,.88) !important;
  color: var(--esc-ink) !important;
  border: 1px solid var(--esc-line) !important;
  font-weight: 900 !important;
}
body.is-solo-cockpit .dsa-table th,
body.is-solo-cockpit .dsa-table td { padding: .62rem .7rem !important; }
body.is-solo-cockpit .solo-title-row h1 { font-size: clamp(1.55rem, 2.2vw, 2.25rem); }

/* v0.5.2.7.3 — settings anchor and localhost navigation hotfix */
.future-settings-menu a.active,
.esc-settings-menu a.active {
  background: var(--esc-ink, #151A1C);
  color: var(--esc-card, #FFFBEF);
  box-shadow: 0 8px 18px rgba(21,26,28,.10);
}
.esc-settings-tab:target,
.esc-settings-tab[open] {
  scroll-margin-top: 96px;
}

/* v0.5.2.7.5 — ESC Visual QA repair: mobile cards, compact cockpit, safe bottoms */
:root {
  --esc-sticky-footer-height: 82px;
  --esc-mobile-nav-height: 76px;
  --esc-safe-bottom: env(safe-area-inset-bottom, 0px);
}
body.is-solo-cockpit .esc-cockpit-shell,
body.is-solo-cockpit .solo-settings-form,
body.is-solo-cockpit .esc-form-page-grid,
body.is-solo-cockpit .esc-review-board,
body.is-solo-cockpit .esc-cockpit-zones,
body.is-solo-cockpit .esc-content-grid-3,
body.is-solo-cockpit .esc-compact-table-card {
  padding-bottom: max(1.25rem, calc(var(--esc-safe-bottom) + 1.25rem));
}
body.is-solo-cockpit .esc-mobile-record-list { display: none; }
body.is-solo-cockpit .esc-mobile-record-card {
  display: grid;
  gap: .52rem;
  padding: .9rem .95rem;
  border: 1px solid var(--esc-line);
  border-radius: 18px;
  background: rgba(255,250,240,.94);
  box-shadow: 0 14px 32px rgba(16,24,32,.06);
}
body.is-solo-cockpit .esc-mobile-record-title {
  font-weight: 1000;
  color: var(--esc-ink);
  letter-spacing: -.025em;
  line-height: 1.15;
}
body.is-solo-cockpit .esc-mobile-record-meta,
body.is-solo-cockpit .esc-mobile-record-note {
  color: var(--esc-muted);
  font-size: .92rem;
  font-weight: 720;
  line-height: 1.3;
}
body.is-solo-cockpit .esc-mobile-record-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
body.is-solo-cockpit .esc-account-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .72rem;
  margin-bottom: .8rem;
}
body.is-solo-cockpit .esc-account-card {
  min-height: 136px;
  display: grid;
  align-content: start;
  gap: .32rem;
}
body.is-solo-cockpit .esc-account-card span {
  color: var(--esc-muted);
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}
body.is-solo-cockpit .esc-account-card strong { font-size: 1.08rem; line-height: 1.15; }
body.is-solo-cockpit .esc-brief-grid-compact {
  grid-template-columns: minmax(0, 1fr) minmax(270px, .54fr);
  gap: .62rem;
  margin-bottom: .62rem;
}
body.is-solo-cockpit .esc-brief-card-compact { padding: .82rem .9rem; min-height: 0; }
body.is-solo-cockpit .esc-brief-card-compact .esc-brief-main { gap: .6rem; }
body.is-solo-cockpit .esc-brief-card-compact .esc-brief-copy h2 { font-size: clamp(1.45rem, 2.15vw, 2.15rem); margin: .08rem 0 .18rem; }
body.is-solo-cockpit .esc-brief-card-compact .esc-brief-copy p { margin: 0; }
body.is-solo-cockpit .esc-brief-card-compact .esc-brief-actions { margin-top: .58rem; }
body.is-solo-cockpit .esc-readiness-ring-compact { width: clamp(92px, 9vw, 126px); border-width: 8px; }
body.is-solo-cockpit .esc-next-action-card-compact { padding: .82rem .9rem; min-height: 0; gap: .38rem; }
body.is-solo-cockpit .esc-next-action-card-compact h3 { margin: 0; font-size: 1.05rem; }
body.is-solo-cockpit .esc-next-action-card-compact p { margin: 0; }
body.is-solo-cockpit .esc-quick-action-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .55rem; }
body.is-solo-cockpit .esc-settings-tab:target,
body.is-solo-cockpit .esc-settings-tab.is-active,
body.is-solo-cockpit .esc-settings-tab[open] {
  outline: 2px solid rgba(31,122,120,.28);
  outline-offset: 2px;
  box-shadow: 0 18px 42px rgba(31,122,120,.09);
}

@media (max-width: 1100px) {
  body.is-solo-cockpit .esc-account-status-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body.is-solo-cockpit .esc-brief-grid-compact { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body.is-solo-cockpit .content {
    padding-bottom: calc(var(--esc-mobile-nav-height) + var(--esc-safe-bottom) + 1.25rem) !important;
  }
  body.is-solo-cockpit .esc-cockpit-shell,
  body.is-solo-cockpit .solo-settings-form,
  body.is-solo-cockpit .esc-form-page-grid,
  body.is-solo-cockpit .esc-mobile-record-list,
  body.is-solo-cockpit .esc-compact-table-card,
  body.is-solo-cockpit .card {
    padding-bottom: max(.95rem, calc(var(--esc-safe-bottom) + .95rem));
  }
  body.is-solo-cockpit .topbar {
    flex-direction: row;
    align-items: center;
    gap: .45rem;
    padding: .42rem .55rem;
    min-height: 44px;
  }
  body.is-solo-cockpit .solo-topbar-brand {
    gap: .25rem;
    font-size: .86rem;
    line-height: 1.05;
  }
  body.is-solo-cockpit .solo-topbar-brand strong { font-size: .92rem; }
  body.is-solo-cockpit .solo-topbar-brand .solo-topbar-divider,
  body.is-solo-cockpit .solo-topbar-brand span:last-child { display: none !important; }
  body.is-solo-cockpit .topbar-actions {
    margin-left: auto;
    width: auto;
    gap: .35rem;
    justify-content: flex-end;
  }
  body.is-solo-cockpit .account-chip { padding: .34rem .52rem; font-size: .78rem; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.is-solo-cockpit .logout-link { font-size: .78rem; }
  body.is-solo-cockpit .esc-command-bar {
    gap: .38rem;
    padding: .45rem;
    border-radius: 16px;
    margin-bottom: .45rem;
  }
  body.is-solo-cockpit .esc-command-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .36rem;
  }
  body.is-solo-cockpit .esc-command-left [data-esc-forward] { display: none; }
  body.is-solo-cockpit .esc-command-left .button,
  body.is-solo-cockpit .esc-command-right .button {
    min-height: 36px;
    padding: .38rem .55rem;
    font-size: .84rem;
  }
  body.is-solo-cockpit .esc-command-centre { order: 3; }
  body.is-solo-cockpit .esc-breadcrumbs {
    font-size: .76rem;
    line-height: 1.15;
    padding: 0 .1rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.is-solo-cockpit .esc-command-right {
    justify-content: space-between;
    gap: .35rem;
  }
  body.is-solo-cockpit .esc-save-state {
    min-height: 26px;
    padding: .15rem .48rem;
    font-size: .72rem;
  }
  body.is-solo-cockpit .solo-status-strip {
    gap: .28rem;
    padding: .36rem .5rem;
    margin-bottom: .45rem;
    border-radius: 13px;
  }
  body.is-solo-cockpit .solo-stage-chip { font-size: .68rem; padding: .12rem .34rem; }
  body.is-solo-cockpit .solo-status-note { font-size: .72rem; line-height: 1.2; }
  body.is-solo-cockpit .solo-title-row {
    gap: .38rem;
    padding: .25rem 0 .45rem;
    margin-bottom: .35rem;
  }
  body.is-solo-cockpit .solo-title-row h1 { font-size: clamp(1.25rem, 7vw, 1.72rem); margin: 0; }
  body.is-solo-cockpit .solo-page-hint { font-size: .84rem; line-height: 1.25; }
  body.is-solo-cockpit .solo-title-actions .button { min-height: 34px; font-size: .82rem; padding: .35rem .55rem; }
  body.is-solo-cockpit .esc-desktop-record-table { display: none !important; }
  body.is-solo-cockpit .esc-mobile-record-list { display: grid; gap: .58rem; margin-top: .58rem; padding-bottom: calc(var(--esc-mobile-nav-height) + var(--esc-safe-bottom) + 1rem); }
  body.is-solo-cockpit .esc-account-status-grid { grid-template-columns: 1fr; gap: .58rem; }
  body.is-solo-cockpit .esc-account-card { min-height: 0; }
  body.is-solo-cockpit .esc-brief-card-compact,
  body.is-solo-cockpit .esc-next-action-card-compact { padding: .75rem; }
  body.is-solo-cockpit .esc-brief-card-compact .esc-brief-main { grid-template-columns: 1fr; }
  body.is-solo-cockpit .esc-readiness-ring-compact { width: 92px; }
  body.is-solo-cockpit .esc-form-actions,
  body.is-solo-cockpit .settings-save-bar,
  body.is-solo-cockpit .esc-save-bar {
    margin-bottom: calc(var(--esc-mobile-nav-height) + var(--esc-safe-bottom));
  }
}

/* v0.5.2.7.6 — ESC expanded record and receipt detail evidence sheets */
body.is-solo-cockpit .esc-record-detail-card {
  padding: 1rem;
  border: 1px solid var(--esc-line);
  border-radius: 20px;
  background: rgba(255,250,240,.96);
  box-shadow: var(--esc-shadow-card);
}
body.is-solo-cockpit .esc-record-detail-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(180px, 260px);
  align-items: start;
  gap: .9rem;
}
body.is-solo-cockpit .esc-record-detail-head h2 {
  margin: .08rem 0 .28rem;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}
body.is-solo-cockpit .esc-record-amount-panel {
  display: grid;
  gap: .2rem;
  padding: .8rem;
  border: 1px solid rgba(31,122,120,.18);
  border-radius: 18px;
  background: rgba(255,246,223,.72);
  text-align: right;
}
body.is-solo-cockpit .esc-record-amount-panel span {
  color: var(--esc-muted);
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}
body.is-solo-cockpit .esc-record-amount-panel strong {
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  line-height: 1;
  letter-spacing: -.05em;
}
body.is-solo-cockpit .esc-record-amount-panel small { color: var(--esc-muted); font-weight: 850; }
body.is-solo-cockpit .esc-detail-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: .58rem;
  margin-top: .85rem;
}
body.is-solo-cockpit .esc-detail-summary-grid.compact { grid-template-columns: repeat(3, minmax(0,1fr)); }
body.is-solo-cockpit .esc-detail-summary-grid > div,
body.is-solo-cockpit .esc-detail-kv {
  display: grid;
  gap: .15rem;
  padding: .62rem .68rem;
  border: 1px solid var(--esc-line);
  border-radius: 14px;
  background: rgba(255,255,255,.34);
}
body.is-solo-cockpit .esc-detail-summary-grid span,
body.is-solo-cockpit .esc-detail-kv span,
body.is-solo-cockpit .esc-detail-note span {
  color: var(--esc-muted);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .075em;
}
body.is-solo-cockpit .esc-detail-summary-grid strong,
body.is-solo-cockpit .esc-detail-kv strong {
  color: var(--esc-ink);
  font-size: .96rem;
  line-height: 1.2;
  word-break: break-word;
}
body.is-solo-cockpit .esc-record-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .72rem;
}
body.is-solo-cockpit .esc-detail-section {
  display: grid;
  gap: .62rem;
  padding: .95rem;
}
body.is-solo-cockpit .esc-detail-section h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -.025em;
}
body.is-solo-cockpit .esc-detail-note {
  display: grid;
  gap: .2rem;
  padding: .7rem .75rem;
  border: 1px solid var(--esc-line);
  border-radius: 14px;
  background: rgba(255,255,255,.30);
}
body.is-solo-cockpit .esc-detail-note p { margin: 0; line-height: 1.38; }
body.is-solo-cockpit .esc-evidence-list {
  display: grid;
  gap: .52rem;
}
body.is-solo-cockpit .esc-evidence-list.compact { gap: .4rem; }
body.is-solo-cockpit .esc-evidence-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: .72rem;
  padding: .68rem .72rem;
  border: 1px solid var(--esc-line);
  border-radius: 15px;
  background: rgba(255,255,255,.32);
}
body.is-solo-cockpit .esc-evidence-row p { margin: .18rem 0 0; line-height: 1.32; }
body.is-solo-cockpit .esc-evidence-actions,
body.is-solo-cockpit .button-row.tight { display: flex; flex-wrap: wrap; gap: .35rem; }
body.is-solo-cockpit .esc-checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .52rem;
}
body.is-solo-cockpit .esc-check-item {
  padding: .68rem .75rem;
  border: 1px solid var(--esc-line);
  border-radius: 15px;
  background: rgba(255,255,255,.32);
}
body.is-solo-cockpit .esc-check-item.is-ok { border-color: rgba(36,120,90,.26); background: rgba(36,120,90,.08); }
body.is-solo-cockpit .esc-check-item.needs-work { border-color: rgba(189,106,36,.30); background: rgba(255,246,223,.72); }
body.is-solo-cockpit .esc-check-item strong { display:block; margin-bottom:.25rem; }
body.is-solo-cockpit .esc-check-item p { margin:0; color:var(--esc-muted); line-height:1.3; font-weight:720; }
body.is-solo-cockpit .esc-timeline-list { display:grid; gap:.45rem; }
body.is-solo-cockpit .esc-timeline-item {
  padding:.62rem .7rem;
  border-left: 4px solid rgba(31,122,120,.35);
  border-radius: 12px;
  background: rgba(255,255,255,.32);
}
body.is-solo-cockpit .esc-timeline-item strong { display:block; }
body.is-solo-cockpit .esc-timeline-item span { display:block; color:var(--esc-muted); font-size:.82rem; font-weight:850; margin:.12rem 0; }
body.is-solo-cockpit .esc-timeline-item p { margin:0; }

@media (max-width: 1100px) {
  body.is-solo-cockpit .esc-detail-summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body.is-solo-cockpit .esc-record-detail-grid { grid-template-columns: 1fr; }
  body.is-solo-cockpit .esc-checklist-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  body.is-solo-cockpit .esc-record-detail-head { grid-template-columns: 1fr; }
  body.is-solo-cockpit .esc-record-amount-panel { text-align: left; }
  body.is-solo-cockpit .esc-detail-summary-grid,
  body.is-solo-cockpit .esc-detail-summary-grid.compact,
  body.is-solo-cockpit .esc-checklist-grid { grid-template-columns: 1fr; }
  body.is-solo-cockpit .esc-evidence-row { grid-template-columns: 1fr; align-items: start; }
  body.is-solo-cockpit .esc-evidence-actions .button,
  body.is-solo-cockpit .esc-mobile-record-actions .button { width: 100%; justify-content: center; }
}

@media print {
  body.is-solo-cockpit .esc-command-bar,
  body.is-solo-cockpit .solo-status-strip,
  body.is-solo-cockpit .solo-title-actions,
  body.is-solo-cockpit .esc-mobile-bottom-nav,
  body.is-solo-cockpit .no-print { display: none !important; }
  body.is-solo-cockpit,
  body.is-solo-cockpit .main-area,
  body.is-solo-cockpit .content { background: #fff !important; color: #111 !important; }
  body.is-solo-cockpit .content { padding: 0 !important; }
  body.is-solo-cockpit .solo-title-row { margin-bottom: 8px !important; }
  body.is-solo-cockpit .solo-title-row h1 { font-size: 18pt !important; }
  body.is-solo-cockpit .solo-page-hint { font-size: 9pt !important; }
  body.is-solo-cockpit .esc-record-detail-card,
  body.is-solo-cockpit .esc-detail-section,
  body.is-solo-cockpit .card { box-shadow: none !important; background: #fff !important; border-color: #aaa !important; break-inside: avoid; page-break-inside: avoid; }
  body.is-solo-cockpit .esc-record-detail-grid,
  body.is-solo-cockpit .esc-detail-summary-grid,
  body.is-solo-cockpit .esc-checklist-grid { gap: 8px !important; }
  body.is-solo-cockpit .esc-record-detail-grid { grid-template-columns: 1fr 1fr; }
  body.is-solo-cockpit .esc-detail-summary-grid { grid-template-columns: repeat(4, 1fr); }
  body.is-solo-cockpit .esc-checklist-grid { grid-template-columns: repeat(2, 1fr); }
  body.is-solo-cockpit .esc-record-amount-panel { background: #fff !important; }
}

/* v0.5.2.7.7 Year-End pack result centre and repair QA */
.esc-export-ready-card {
  border-color: rgba(36,120,90,.35);
  background: linear-gradient(135deg, rgba(255,250,240,.98), rgba(235,251,243,.72));
}
.esc-pack-location-box {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: .9rem;
  border: 1px solid rgba(16,24,32,.12);
  border-radius: 18px;
  background: rgba(255,251,239,.78);
}
.esc-pack-location-box span,
.esc-export-summary-grid span {
  display: block;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .68rem;
  color: var(--esc-muted);
  font-weight: 950;
  margin-bottom: .2rem;
}
.esc-export-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 1rem 0;
}
.esc-export-summary-grid article {
  padding: .9rem;
  border: 1px solid rgba(16,24,32,.12);
  border-radius: 18px;
  background: rgba(255,251,239,.72);
}
.esc-year-end-form {
  align-items: start;
}
.esc-year-end-form .esc-form-field:first-of-type {
  grid-column: span 4;
}
.esc-year-end-form .esc-form-field:nth-of-type(2) {
  grid-column: span 8;
}
.esc-export-checklist {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.esc-pack-history-card .table-scroll {
  margin-top: .35rem;
}
.small-button {
  min-height: 32px;
  padding: .35rem .65rem;
  font-size: .82rem;
}
@media (max-width: 900px) {
  .esc-pack-location-box,
  .esc-export-summary-grid,
  .esc-export-checklist {
    grid-template-columns: 1fr;
  }
  .esc-year-end-form .esc-form-field:first-of-type,
  .esc-year-end-form .esc-form-field:nth-of-type(2) {
    grid-column: span 12;
  }
}
@media print {
  .esc-command-bar,
  .solo-status-strip,
  .sidebar,
  .topbar,
  .esc-mobile-bottom-nav,
  .button,
  .solo-title-actions {
    display: none !important;
  }
  body, .content, .esc-cockpit-shell {
    background: #fff !important;
    color: #000 !important;
  }
  .card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
}

/* v0.5.2.7.9 hosting-readiness polish: cleaner export download UX and user-facing copy */
body.is-solo-cockpit .esc-download-primary {
  white-space: nowrap;
  word-break: normal;
  min-width: max-content;
}
body.is-solo-cockpit .esc-pack-download-panel .esc-download-primary {
  min-height: 48px;
  padding-inline: 1.15rem;
}
body.is-solo-cockpit .esc-pack-card-list {
  display: grid;
  gap: .78rem;
  margin-top: .75rem;
}
body.is-solo-cockpit .esc-pack-card {
  display: grid;
  gap: .7rem;
  padding: .95rem;
  border: 1px solid var(--esc-line);
  border-radius: 18px;
  background: rgba(255,250,240,.92);
  box-shadow: var(--esc-shadow-card);
}
body.is-solo-cockpit .esc-pack-card.is-current {
  border-color: rgba(36,120,90,.35);
  background: linear-gradient(135deg, rgba(255,250,240,.98), rgba(235,251,243,.74));
}
body.is-solo-cockpit .esc-pack-card-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .9rem;
}
body.is-solo-cockpit .esc-pack-card-main h3 {
  margin: .08rem 0 .18rem;
  font-size: 1.12rem;
}
body.is-solo-cockpit .esc-pack-card-main p { margin: 0; }
body.is-solo-cockpit .esc-pack-card-details {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(160px, .8fr) minmax(160px, .8fr);
  gap: .55rem;
}
body.is-solo-cockpit .esc-pack-card-details > div {
  padding: .62rem .68rem;
  border: 1px solid rgba(16,24,32,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.32);
  min-width: 0;
}
body.is-solo-cockpit .esc-pack-card-details span {
  display: block;
  color: var(--esc-muted);
  text-transform: uppercase;
  letter-spacing: .075em;
  font-size: .68rem;
  font-weight: 950;
  margin-bottom: .2rem;
}
body.is-solo-cockpit .esc-pack-card-details strong {
  display: block;
  line-height: 1.28;
  word-break: normal;
  overflow-wrap: anywhere;
}
body.is-solo-cockpit .esc-pack-card-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .45rem;
}
body.is-solo-cockpit .esc-pack-history-card table .button,
body.is-solo-cockpit .small-button {
  white-space: nowrap;
  word-break: normal;
  min-width: 96px;
}
@media (max-width: 900px) {
  body.is-solo-cockpit .esc-pack-card-main,
  body.is-solo-cockpit .esc-pack-card-actions,
  body.is-solo-cockpit .esc-pack-location-box {
    display: grid;
    grid-template-columns: 1fr;
  }
  body.is-solo-cockpit .esc-pack-card-details {
    grid-template-columns: 1fr;
  }
  body.is-solo-cockpit .esc-download-primary {
    width: 100%;
  }
}

/* v0.5.2.8.0 beta readiness: keep Year-End pack downloads readable on desktop and mobile. */
body.is-solo-cockpit .esc-pack-card-actions .esc-download-primary,
body.is-solo-cockpit .esc-pack-download-panel .esc-download-primary {
  min-width: 168px;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
  padding: 12px 18px;
}
body.is-solo-cockpit .esc-pack-card-actions {
  align-items: center;
  justify-content: flex-end;
}
@media (max-width: 760px) {
  body.is-solo-cockpit .esc-pack-card-actions .esc-download-primary,
  body.is-solo-cockpit .esc-pack-download-panel .esc-download-primary {
    width: 100%;
    min-width: 0;
  }
}

/* v0.5.2.8.2 — secure access/login layout repair
   The global .stacked-form grid is for cockpit record forms only. Login uses
   its own vertical form so labels, inputs and buttons cannot collapse into
   narrow grid columns. */
.auth-page {
  width: 100%;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(1rem, 3vw, 2.5rem) 0;
}
.login-panel.auth-card,
.form-panel.narrow.login-panel {
  width: min(100%, 680px);
  max-width: 680px;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.login-panel h1 {
  margin: .25rem 0 .65rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}
.auth-intro { margin: 0 0 1.05rem; }
.auth-provider-block { display: grid; gap: .65rem; margin: 1rem 0 1.1rem; }
.auth-provider-block .tiny { margin: 0; font-size: .84rem; line-height: 1.45; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: .7rem 0 1rem;
  color: var(--color-muted-text);
  font-size: .76rem;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(21,26,28,.16);
}
.auth-login-form {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: .9rem !important;
  width: 100%;
  max-width: 100%;
}
.auth-login-form .auth-field,
.auth-login-form .auth-error,
.auth-login-form .auth-submit {
  grid-column: 1 / -1 !important;
  width: 100%;
  min-width: 0;
}
.auth-login-form label {
  display: block;
  margin: 0 0 .35rem;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  line-height: 1.2;
}
.auth-login-form .form-control,
.auth-login-form input[type="text"],
.auth-login-form input[type="password"] {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}
.auth-login-form .button,
.auth-login-form button {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: normal;
}
.auth-help-links { margin: 1rem 0 0; }
.google-login-button {
  min-height: 50px;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: normal;
}
@media (max-width: 900px) {
  .auth-page { min-height: auto; padding: 1rem 0; }
  .login-panel.auth-card,
  .form-panel.narrow.login-panel { max-width: none; }
}


/* v0.5.2.8.3 — authentication and beta access visual polish.
   Auth/recovery pages must not inherit cockpit record-form wrapping rules. */
.route-login .topbar-actions { visibility: hidden; }
.auth-page {
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.25rem, 4vw, 3rem);
}
.auth-page .form-panel,
.auth-page .card,
.auth-card {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.auth-card {
  width: min(100%, 700px);
}
.auth-card p,
.auth-card li,
.auth-card small,
.auth-card span,
.auth-card a,
.auth-card label,
.auth-card button {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}
.auth-provider-block .tiny,
.auth-card .tiny,
.auth-card .muted {
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}
.auth-login-form p {
  margin: 0;
  display: grid;
  gap: .35rem;
}
.auth-login-form p label { margin: 0; }
.auth-login-form ul.errorlist {
  margin: .25rem 0 0;
  padding-left: 1.1rem;
  color: var(--color-danger);
  font-weight: 800;
}
.beta-access-card .info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .auth-page { padding: 1rem; justify-content: stretch; }
  .auth-card { width: 100%; }
  .beta-access-card .info-grid { grid-template-columns: 1fr; }
}

/* v0.5.2.8.4 — Receipt saved comment visibility */
.receipt-saved-comment,
.receipt-comment-panel {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(38, 133, 143, 0.24);
  border-radius: 16px;
  background: rgba(255, 250, 235, 0.78);
}
.receipt-saved-comment.detail {
  margin: 16px 0;
  background: rgba(255, 246, 219, 0.92);
}
.receipt-saved-comment span,
.receipt-comment-panel .section-head h3 {
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.receipt-saved-comment p,
.receipt-comment-body,
.receipt-comment-snippet {
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
}
.receipt-saved-comment p,
.receipt-comment-body {
  margin: 6px 0 0;
  font-weight: 700;
  line-height: 1.35;
}
.receipt-comment-snippet {
  display: inline-block;
  margin-top: 4px;
  max-width: min(560px, 100%);
  font-size: 0.88rem;
  line-height: 1.3;
}
@media (max-width: 760px) {
  .receipt-saved-comment,
  .receipt-comment-panel {
    padding: 11px 12px;
    border-radius: 14px;
  }
}
