:root {
    --ink-strong: #0f2740;
    --ink-soft: #36506c;
    --ink-muted: #5d738b;
    --sky-panel: rgba(255, 252, 245, 0.9);
    --sand: #f4ebd7;
    --sand-deep: #e8d7b3;
    --cream: #fff8ec;
    --coral: #e4764d;
    --coral-deep: #b84f2c;
    --teal: #2f7f77;
    --teal-deep: #1f5f58;
    --gold: #d7a647;
    --red: #b7443e;
    --blue: #4f77c7;
    --shadow: 0 24px 60px rgba(15, 39, 64, 0.16);
    --border: rgba(15, 39, 64, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    background:
        radial-gradient(circle at top left, rgba(212, 166, 71, 0.32), transparent 34%),
        radial-gradient(circle at top right, rgba(47, 127, 119, 0.24), transparent 28%),
        linear-gradient(180deg, #fbf5e8 0%, #f2e6cf 52%, #efe4d7 100%);
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--ink-strong);
    font-family: "Avenir Next", "Trebuchet MS", sans-serif;
    line-height: 1.5;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 39, 64, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 39, 64, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    opacity: 0.35;
}

.page-shell {
    position: relative;
    padding: 28px 18px 42px;
    max-width: 1280px;
    margin: 0 auto;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: var(--radius-xl);
    background: rgba(255, 252, 245, 0.76);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(15, 39, 64, 0.1);
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--ink-strong);
    text-decoration: none;
    min-width: 0;
}

.app-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--coral), var(--teal));
    color: white;
    font-family: "Iowan Old Style", "Palatino Linotype", serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.04em;
    box-shadow: 0 16px 28px rgba(47, 127, 119, 0.18);
}

.app-brand-copy {
    display: grid;
    gap: 4px;
}

.app-brand-copy strong {
    display: block;
    font-family: "Iowan Old Style", "Palatino Linotype", serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.app-brand-copy small {
    color: var(--ink-soft);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.app-header-nav {
    display: grid;
    justify-items: end;
    gap: 10px;
}

.task-nav {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 39, 64, 0.08);
}

.task-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 800;
    border: 1px solid transparent;
    transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.task-link:hover,
.task-link.is-current {
    background: white;
    color: var(--ink-strong);
    border-color: rgba(15, 39, 64, 0.08);
    box-shadow: 0 12px 24px rgba(15, 39, 64, 0.08);
}

.top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
}

.top-nav-secondary .nav-link:hover,
.top-nav-secondary .nav-link.is-current {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(15, 39, 64, 0.08);
    color: var(--ink-strong);
}

.nav-link:hover,
.nav-link.is-current {
    background: rgba(255, 255, 255, 0.82);
}

.hero,
.stat-card,
.panel,
.notice {
    animation: rise-in 420ms ease both;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.75fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 20px;
}

.hero-copy,
.hero-meta,
.panel,
.stat-card {
    background: var(--sky-panel);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 24px 26px;
    border-radius: var(--radius-xl);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--ink-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-badge-live {
    color: var(--teal-deep);
}

.hero-copy h1,
.panel h2 {
    margin: 0;
    font-family: "Iowan Old Style", "Palatino Linotype", serif;
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.hero-copy h1 {
    font-size: clamp(2.05rem, 3.6vw, 3.6rem);
    max-width: 14ch;
}

.hero-copy-wide h1 {
    max-width: 18ch;
}

.hero-text,
.panel-note,
.panel-intro,
.helper-copy,
.field small,
.meta-label,
.eyebrow,
.meta-card small,
.signal-card p,
.preview-card p,
.stat-note,
.source-copy,
.result-state-copy,
.detail-card small {
    color: var(--ink-soft);
}

.hero-text {
    max-width: 58ch;
    font-size: 1rem;
    margin: 10px 0 0;
}

.panel-intro {
    margin: 0 0 14px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}

.ghost-button,
.hero-status,
.count-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 0.86rem;
    font-weight: 700;
}

.ghost-button {
    border: 1px solid rgba(15, 39, 64, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink-strong);
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(15, 39, 64, 0.06);
}

.primary-button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 39, 64, 0.22);
}

.hero-status.is-ready {
    background: rgba(47, 127, 119, 0.12);
    color: var(--teal-deep);
}

.hero-status.is-warning {
    background: rgba(215, 166, 71, 0.15);
    color: #8f6411;
}

.hero-meta {
    display: grid;
    gap: 16px;
    padding: 14px;
    border-radius: var(--radius-xl);
}

.meta-card {
    padding: 15px 16px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(250, 243, 230, 0.88));
    border: 1px solid rgba(15, 39, 64, 0.08);
}

.meta-card strong {
    display: block;
    margin-top: 6px;
    font-size: 1.15rem;
}

.meta-card small {
    display: block;
    margin-top: 6px;
}

.eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.73rem;
    font-weight: 700;
}

.notice-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.notice {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
}

.notice-emphasis {
    display: grid;
    gap: 6px;
}

.notice-emphasis strong {
    color: var(--ink-strong);
}

.notice-success {
    background: rgba(47, 127, 119, 0.12);
    border-color: rgba(47, 127, 119, 0.24);
}

.notice-error {
    background: rgba(183, 68, 62, 0.12);
    border-color: rgba(183, 68, 62, 0.24);
}

.notice-warning {
    background: rgba(215, 166, 71, 0.15);
    border-color: rgba(215, 166, 71, 0.3);
}

.notice-info {
    background: rgba(79, 119, 199, 0.12);
    border-color: rgba(79, 119, 199, 0.24);
}

.inline-link {
    color: var(--coral-deep);
    font-weight: 700;
    text-decoration: none;
}

.inline-link:hover {
    text-decoration: underline;
}

.flow-strip,
.signal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.flow-step,
.signal-card {
    background: rgba(255, 252, 245, 0.78);
    border: 1px solid rgba(15, 39, 64, 0.08);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: 0 12px 30px rgba(15, 39, 64, 0.08);
}

.flow-step {
    position: relative;
    overflow: hidden;
}

.flow-step::after {
    content: "";
    position: absolute;
    inset: auto -18px -28px auto;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(79, 119, 199, 0.08);
}

.flow-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--coral), var(--coral-deep));
    color: white;
    font-weight: 700;
}

.flow-step strong,
.signal-card strong,
.preview-card strong,
.aside-card h3 {
    display: block;
    font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.flow-step p,
.signal-card p,
.preview-card p {
    margin-bottom: 0;
}

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

.signal-card strong {
    margin: 8px 0 10px;
    font-size: 1.2rem;
}

.signal-label,
.preview-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-muted);
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.stat-card {
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: auto -20px -26px auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    opacity: 0.18;
}

.tone-queued::after {
    background: var(--gold);
}

.tone-running::after {
    background: var(--blue);
}

.tone-completed::after {
    background: var(--teal);
}

.tone-failed::after {
    background: var(--red);
}

.stat-label {
    display: block;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.stat-value {
    display: block;
    margin-top: 8px;
    font-size: 2.8rem;
    line-height: 1;
}

.stat-note {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
}

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

.task-hub-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
    gap: 14px;
    align-items: start;
}

.task-hub-main,
.task-hub-aside {
    display: grid;
    gap: 14px;
}

.panel {
    border-radius: var(--radius-xl);
    padding: 20px;
}

.panel-form {
    grid-column: span 2;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.panel h2 {
    font-size: clamp(1.6rem, 2.3vw, 2.25rem);
}

.panel-note {
    margin: 0;
    max-width: 30ch;
    text-align: right;
}

.count-chip {
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--ink-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.intake-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
    gap: 20px;
    align-items: start;
}

.upload-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px 20px;
    align-items: start;
}

.field,
.checkbox-field {
    display: grid;
    gap: 8px;
}

.field span,
.checkbox-field span {
    font-weight: 700;
}

.field input[type="file"],
.field input[type="text"],
.field input[type="password"] {
    width: 100%;
    border: 1px solid rgba(15, 39, 64, 0.16);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink-strong);
    font: inherit;
}

.field input[type="file"] {
    padding: 12px;
}

.field input:focus {
    outline: 3px solid rgba(79, 119, 199, 0.18);
    border-color: var(--blue);
}

.preview-card,
.aside-card {
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(251, 244, 232, 0.88));
    border: 1px solid rgba(15, 39, 64, 0.08);
}

.preview-card {
    grid-column: 1 / -1;
    padding: 18px;
}

.preview-card strong {
    margin: 6px 0 10px;
    font-size: 1.15rem;
}

.checkbox-field {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
    align-items: center;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.approval-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(248, 240, 225, 0.9));
    border: 1px solid rgba(15, 39, 64, 0.08);
}

.approval-toolbar-copy strong {
    display: block;
    font-family: "Iowan Old Style", "Palatino Linotype", serif;
    font-size: 1.2rem;
}

.approval-toolbar-copy p {
    margin: 8px 0 0;
}

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

.intake-aside {
    display: grid;
    gap: 14px;
}

.aside-card {
    padding: 18px 18px 16px;
}

.task-card {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 240, 225, 0.92));
    border: 1px solid rgba(15, 39, 64, 0.08);
    box-shadow: 0 12px 30px rgba(15, 39, 64, 0.08);
}

.task-card-highlight {
    background: linear-gradient(180deg, rgba(240, 249, 246, 0.96), rgba(228, 243, 239, 0.94));
}

.task-card h3 {
    margin: 0 0 10px;
    font-family: "Iowan Old Style", "Palatino Linotype", serif;
    font-size: 1.3rem;
}

.task-copy {
    margin: 0 0 12px;
    color: var(--ink-soft);
}

.task-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.aside-card-soft {
    background: linear-gradient(180deg, rgba(252, 247, 238, 0.96), rgba(247, 237, 220, 0.92));
}

.aside-card h3 {
    margin: 0 0 12px;
    font-size: 1.45rem;
}

.aside-list {
    margin: 0;
    padding-left: 18px;
    color: var(--ink-soft);
}

.aside-list li + li {
    margin-top: 8px;
}

.primary-button {
    border: 0;
    border-radius: 14px;
    padding: 14px 22px;
    font: inherit;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, var(--coral), var(--coral-deep));
    box-shadow: 0 18px 32px rgba(184, 79, 44, 0.24);
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 40px rgba(184, 79, 44, 0.3);
}

.primary-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

thead th {
    text-align: left;
    color: var(--ink-soft);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(15, 39, 64, 0.1);
}

tbody td {
    padding: 14px 0;
    border-bottom: 1px solid rgba(15, 39, 64, 0.08);
    vertical-align: top;
}

.selection-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.selection-cell input {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
}

.table-number {
    white-space: nowrap;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 0.84rem;
    font-weight: 700;
}

.status-pill.tone-queued {
    background: rgba(215, 166, 71, 0.14);
    color: #8f6411;
}

.status-pill.tone-running {
    background: rgba(79, 119, 199, 0.14);
    color: #2f5395;
}

.status-pill.tone-completed {
    background: rgba(47, 127, 119, 0.14);
    color: var(--teal-deep);
}

.status-pill.tone-ready {
    background: rgba(47, 127, 119, 0.14);
    color: var(--teal-deep);
}

.status-pill.tone-warning {
    background: rgba(215, 166, 71, 0.15);
    color: #8f6411;
}

.status-pill.tone-empty {
    background: rgba(79, 119, 199, 0.14);
    color: #2f5395;
}

.status-pill.tone-failed {
    background: rgba(183, 68, 62, 0.14);
    color: #8a2f2a;
}

.table-link {
    color: var(--coral-deep);
    font-weight: 700;
    text-decoration: none;
}

.table-link:hover {
    text-decoration: underline;
}

.empty-state {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(245, 237, 224, 0.8));
    border: 1px dashed rgba(15, 39, 64, 0.14);
}

.empty-state p {
    margin-bottom: 0;
    color: var(--ink-soft);
}

.source-grid,
.workflow-grid,
.metric-grid {
    display: grid;
    gap: 18px;
}

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

.source-grid {
    margin-bottom: 18px;
}

.source-card {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 240, 225, 0.92));
    border: 1px solid rgba(15, 39, 64, 0.08);
}

.source-card-compact .upload-form {
    gap: 14px 16px;
}

.source-card-api {
    background: linear-gradient(180deg, rgba(245, 251, 249, 0.92), rgba(235, 246, 243, 0.94));
}

.source-card-heading {
    margin-bottom: 18px;
}

.source-card-heading h3 {
    margin: 0 0 10px;
    font-family: "Iowan Old Style", "Palatino Linotype", serif;
    font-size: 1.6rem;
}

.source-card-heading p:last-child {
    margin-bottom: 0;
    color: var(--ink-soft);
}

.source-copy {
    margin: 0 0 8px;
}

.source-copy strong {
    color: var(--ink-strong);
}

.upload-form-single {
    grid-template-columns: 1fr;
}

.inline-notice {
    margin-bottom: 16px;
}

.field input[type="date"],
.field input[type="search"] {
    width: 100%;
    border: 1px solid rgba(15, 39, 64, 0.16);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink-strong);
    font: inherit;
}

.field input[type="date"]:focus,
.field input[type="search"]:focus {
    outline: 3px solid rgba(79, 119, 199, 0.18);
    border-color: var(--blue);
}

.field-inline {
    align-items: start;
}

.preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ghost-button-small {
    padding: 9px 12px;
    font-size: 0.8rem;
}

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

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

.metric-card {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 240, 225, 0.9));
    border: 1px solid rgba(15, 39, 64, 0.08);
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    font-family: "Iowan Old Style", "Palatino Linotype", serif;
    font-size: 1.5rem;
}

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

.obligation-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 16px;
    padding: 22px;
    border: 1px solid rgba(15, 39, 64, 0.09);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
}

.obligation-card-climate {
    background: linear-gradient(180deg, rgba(241, 249, 246, 0.95), rgba(231, 245, 239, 0.92));
}

.obligation-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ink-strong);
    color: #fff;
    font-weight: 800;
}

.obligation-card h3 {
    margin: 2px 0 10px;
    font-family: "Iowan Old Style", "Palatino Linotype", serif;
    font-size: 1.35rem;
}

.obligation-card p {
    color: var(--ink-soft);
}

.declaration-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin: 18px 0 0;
    padding-top: 15px;
    border-top: 1px solid rgba(15, 39, 64, 0.1);
}

.declaration-total span,
.declaration-total strong {
    color: var(--ink-strong);
}

.filing-warning {
    margin-top: 18px;
}

.filing-primary {
    color: var(--ink-strong);
    font-weight: 800;
}

.filing-primary small,
td small {
    display: block;
    margin-top: 5px;
    color: var(--ink-soft);
    font-weight: 500;
    line-height: 1.35;
}

.filing-period {
    display: block;
    white-space: nowrap;
    font-weight: 700;
}

.filing-period + .filing-period {
    margin-top: 10px;
}

.filing-row-excluded {
    opacity: 0.62;
}

.monthly-tax-home .page-shell {
    max-width: 1180px;
}

.monthly-shell {
    display: grid;
    gap: 26px;
    padding: 42px 0 72px;
}

.monthly-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    padding: 12px 4px 8px;
}

.monthly-heading h1 {
    margin: 4px 0 8px;
    font-family: "Iowan Old Style", "Palatino Linotype", serif;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    letter-spacing: -0.045em;
}

.monthly-heading .hero-text {
    max-width: 620px;
    margin: 0;
}

.month-picker {
    min-width: 245px;
}

.month-picker label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.month-picker select {
    width: 100%;
    appearance: none;
    padding: 13px 44px 13px 15px;
    border: 1px solid rgba(15, 39, 64, 0.14);
    border-radius: 14px;
    background:
        linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%) calc(100% - 19px) 19px / 6px 6px no-repeat,
        linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%) calc(100% - 13px) 19px / 6px 6px no-repeat,
        rgba(255, 255, 255, 0.82);
    color: var(--ink-strong);
    font: inherit;
    font-weight: 700;
}

.filing-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    border: 1px solid rgba(15, 39, 64, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.65);
    color: var(--ink-soft);
}

.filing-status-bar div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filing-status-bar strong {
    color: var(--ink-strong);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d49a36;
}

.status-dot-ready {
    background: #2d9b73;
    box-shadow: 0 0 0 5px rgba(45, 155, 115, 0.11);
}

.monthly-obligations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.monthly-obligation {
    display: flex;
    min-height: 350px;
    flex-direction: column;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(15, 39, 64, 0.08);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 241, 229, 0.95));
    box-shadow: 0 18px 45px rgba(30, 46, 61, 0.07);
}

.monthly-obligation-climate {
    background: linear-gradient(145deg, rgba(244, 251, 248, 0.96), rgba(226, 242, 235, 0.96));
}

.monthly-obligation-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 44px;
}

.monthly-due {
    color: var(--ink-soft);
    font-size: 0.75rem;
    text-align: right;
    text-transform: uppercase;
}

.monthly-due strong {
    display: block;
    margin-top: 3px;
    color: var(--ink-strong);
    font-size: 1.05rem;
    text-transform: none;
}

.monthly-obligation h2 {
    margin: 5px 0 8px;
    font-family: "Iowan Old Style", "Palatino Linotype", serif;
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    letter-spacing: -0.04em;
}

.monthly-obligation > p:not(.eyebrow) {
    margin: 0 0 28px;
    color: var(--ink-soft);
}

.monthly-obligation .primary-button {
    align-self: start;
    margin-top: auto;
}

.monthly-note,
.monthly-empty {
    padding: 22px 26px;
    border: 1px solid rgba(15, 39, 64, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
}

.monthly-note p {
    margin: 5px 0 0;
    color: var(--ink-soft);
}

.monthly-empty {
    padding: 70px 30px;
    text-align: center;
}

.monthly-empty-icon {
    display: block;
    margin-bottom: 12px;
    color: var(--ink-soft);
    font-size: 2.5rem;
}

.monthly-empty h2 {
    margin-bottom: 8px;
}

.monthly-empty p {
    max-width: 520px;
    margin: 0 auto;
    color: var(--ink-soft);
}

.monthly-refresh-form {
    margin-top: 24px;
}

.monthly-empty .monthly-empty-footnote {
    margin-top: 14px;
    font-size: 0.9rem;
}

.provisional-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.provisional-notice div {
    display: grid;
    gap: 4px;
}

.provisional-notice form {
    flex: 0 0 auto;
}

.run-month-heading {
    align-items: end;
}

.run-month-heading .hero-copy {
    max-width: 720px;
}

.run-month-picker {
    min-width: 230px;
    margin-left: auto;
}

.run-month-controls {
    display: grid;
    min-width: 245px;
    gap: 10px;
    margin-left: auto;
}

.run-month-controls .run-month-picker {
    min-width: 0;
    margin-left: 0;
}

.run-current-month-link {
    justify-content: center;
    width: 100%;
}

.reservation-filing-list {
    display: grid;
    gap: 16px;
}

.reservation-filing-card {
    overflow: hidden;
    border: 1px solid rgba(15, 39, 64, 0.09);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
}

.reservation-filing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(15, 39, 64, 0.08);
}

.reservation-filing-header h3 {
    margin: 4px 0 5px;
    font-family: "Iowan Old Style", "Palatino Linotype", serif;
    font-size: 1.45rem;
}

.reservation-filing-header p {
    margin: 0;
    color: var(--ink-soft);
}

.reservation-stay {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink-soft);
    white-space: nowrap;
}

.reservation-stay strong {
    margin-left: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(15, 39, 64, 0.07);
    color: var(--ink-strong);
    font-size: 0.78rem;
}

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

.reservation-obligation {
    padding: 22px 24px;
}

.reservation-obligation + .reservation-obligation {
    border-left: 1px solid rgba(15, 39, 64, 0.08);
}

.reservation-obligation-takk {
    background: rgba(225, 243, 235, 0.48);
}

.reservation-amount,
.reservation-deadline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
}

.reservation-amount {
    margin-top: 15px;
}

.reservation-amount span,
.reservation-deadline span {
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.reservation-amount strong {
    color: var(--ink-strong);
    font-family: "Iowan Old Style", "Palatino Linotype", serif;
    font-size: 1.75rem;
}

.reservation-deadline {
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid rgba(15, 39, 64, 0.08);
}

.reservation-deadline strong {
    font-size: 0.9rem;
}

.takk-period-list {
    display: grid;
    gap: 8px;
    margin-top: 13px;
}

.takk-period-list > span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.takk-period-list strong {
    color: var(--ink-strong);
}

.reservation-audit {
    border-top: 1px solid rgba(15, 39, 64, 0.08);
}

.reservation-audit summary {
    padding: 13px 24px;
    color: var(--ink-soft);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
}

.reservation-audit > div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 0 24px 18px;
}

.reservation-audit span {
    color: var(--ink-soft);
    font-size: 0.76rem;
}

.reservation-audit strong {
    display: block;
    margin-top: 3px;
    color: var(--ink-strong);
}

.filter-shell {
    min-width: min(100%, 320px);
}

.field-compact span {
    font-size: 0.8rem;
}

tbody small,
.signal-card small,
.metric-card small {
    color: var(--ink-soft);
}

.results-grid,
.detail-grid,
.result-stat-grid {
    display: grid;
    gap: 18px;
}

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

.result-card,
.detail-card {
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 240, 225, 0.92));
    border: 1px solid rgba(15, 39, 64, 0.08);
    box-shadow: 0 12px 30px rgba(15, 39, 64, 0.08);
}

.result-card {
    padding: 18px;
}

.result-card-topline {
    margin-bottom: 14px;
}

.result-card .hero-badges {
    margin-bottom: 10px;
}

.result-card h3 {
    margin: 0 0 10px;
    font-family: "Iowan Old Style", "Palatino Linotype", serif;
    font-size: 1.55rem;
}

.result-card p {
    margin: 0;
    color: var(--ink-soft);
}

.result-state-copy {
    margin-top: 10px;
}

.result-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.result-stat,
.detail-card {
    padding: 16px 18px;
}

.result-stat {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(15, 39, 64, 0.08);
}

.result-stat strong,
.detail-card strong {
    display: block;
    margin-top: 8px;
    font-family: "Iowan Old Style", "Palatino Linotype", serif;
    font-size: 1.2rem;
    line-height: 1.2;
}

.detail-card small {
    display: block;
    margin-top: 8px;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

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

.notice-stack-spaced {
    margin-top: 18px;
}

.guidance-card {
    padding: 20px 22px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 240, 225, 0.92));
    border: 1px solid rgba(15, 39, 64, 0.08);
}

.checklist-list {
    margin: 0;
    padding-left: 20px;
    color: var(--ink-strong);
}

.checklist-list li + li {
    margin-top: 10px;
}

.payload-details {
    min-width: 230px;
}

.payload-details summary {
    cursor: pointer;
    color: var(--coral-deep);
    font-weight: 700;
}

.info-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--ink-soft);
}

.info-list li + li {
    margin-top: 8px;
}

.info-list strong {
    color: var(--ink-strong);
}

.payload-grid {
    display: grid;
    gap: 10px;
    margin: 12px 0 0;
}

.payload-item {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 39, 64, 0.08);
}

.payload-item dt {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    font-weight: 700;
}

.payload-item dd {
    margin: 6px 0 0;
    color: var(--ink-strong);
    word-break: break-word;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}

.auth-card {
    width: min(100%, 420px);
    padding: 26px 24px;
    border-radius: var(--radius-xl);
    background: rgba(255, 252, 245, 0.92);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.auth-card h1 {
    margin: 0;
    font-family: "Iowan Old Style", "Palatino Linotype", serif;
    font-size: clamp(2rem, 5vw, 2.6rem);
    letter-spacing: -0.03em;
}

.auth-copy {
    margin: 10px 0 18px;
    color: var(--ink-soft);
}

.auth-form {
    display: grid;
    gap: 16px;
}

.ghost-button:focus-visible,
.primary-button:focus-visible,
.task-link:focus-visible,
.nav-link:focus-visible,
.field input:focus-visible,
.payload-details summary:focus-visible {
    outline: 3px solid rgba(79, 119, 199, 0.24);
    outline-offset: 2px;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1120px) {
    .hero,
    .dashboard-grid,
    .stats-grid,
    .upload-form,
    .flow-strip,
    .signal-grid,
    .intake-grid,
    .source-grid,
    .workflow-grid,
    .metric-grid,
    .task-hub-grid,
    .signal-grid-four,
    .results-grid,
    .detail-grid,
    .result-stat-grid {
        grid-template-columns: 1fr;
    }

    .panel-form {
        grid-column: auto;
    }

    .panel-heading,
    .form-actions,
    .approval-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel-note {
        text-align: left;
        max-width: none;
    }

    .approval-toolbar-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .page-shell {
        padding: 16px 12px 28px;
    }

    .app-header,
    .top-nav,
    .task-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .app-header-nav {
        justify-items: stretch;
    }

    .hero-copy,
    .hero-meta,
    .panel,
    .stat-card {
        padding: 20px;
    }

    .hero-actions {
        align-items: stretch;
    }

    .ghost-button,
    .hero-status,
    .primary-button,
    .task-link,
    .top-nav-secondary .nav-link {
        width: 100%;
        justify-content: center;
    }

    .count-chip {
        width: auto;
        justify-content: flex-start;
    }

    table {
        min-width: 0;
    }
}

/* 2026 redesign layer */

:root {
    --ink-strong: #0f1728;
    --ink-soft: #4f5f73;
    --ink-muted: #7b8898;
    --surface-0: #f3f5f8;
    --surface-1: #ffffff;
    --surface-2: #f7f9fc;
    --surface-3: #eef4fb;
    --line: rgba(15, 23, 40, 0.09);
    --line-strong: rgba(15, 23, 40, 0.16);
    --blue: #1f6fff;
    --blue-deep: #0f5fdf;
    --blue-tint: #eaf2ff;
    --teal: #1c8b73;
    --teal-deep: #146a58;
    --gold: #ad7a1f;
    --red: #c44d40;
    --shadow-soft: 0 14px 40px rgba(15, 23, 40, 0.07);
    --shadow-medium: 0 24px 60px rgba(15, 23, 40, 0.1);
    --radius-2xl: 32px;
    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --font-sans: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

html {
    background:
        radial-gradient(circle at top left, rgba(31, 111, 255, 0.08), transparent 30%),
        radial-gradient(circle at top right, rgba(15, 23, 40, 0.05), transparent 24%),
        linear-gradient(180deg, #f7f9fc 0%, #f2f4f8 50%, #eff2f6 100%);
}

body {
    color: var(--ink-strong);
    font-family: var(--font-sans);
    line-height: 1.55;
}

body::before {
    display: none;
}

.workspace-page {
    min-height: 100vh;
}

.page-shell {
    max-width: 1440px;
    padding: 26px 22px 64px;
}

.app-header {
    position: sticky;
    top: 18px;
    z-index: 20;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(24px);
    border: 1px solid var(--line);
    box-shadow: 0 14px 36px rgba(15, 23, 40, 0.08);
}

.app-brand {
    gap: 12px;
}

.app-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(180deg, #182234 0%, #0f1728 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-family: var(--font-sans);
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.app-brand-copy {
    gap: 2px;
}

.app-brand-copy strong,
.hero-copy h1,
.panel h2,
.task-card h3,
.source-card-heading h3,
.result-card h3,
.detail-card strong,
.metric-card strong,
.auth-card h1,
.meta-card strong,
.preview-card strong,
.approval-toolbar-copy strong,
.signal-card strong,
.stat-value,
.result-stat strong {
    font-family: var(--font-sans);
}

.app-brand-copy strong {
    font-size: 1.08rem;
    font-weight: 650;
    letter-spacing: -0.04em;
}

.app-brand-copy small {
    font-size: 0.69rem;
    color: var(--ink-muted);
    letter-spacing: 0.12em;
}

.app-header-nav {
    gap: 8px;
}

.task-nav,
.top-nav {
    gap: 8px;
}

.task-nav {
    padding: 4px;
    border-radius: 999px;
    background: rgba(243, 246, 250, 0.88);
    border: 1px solid var(--line);
}

.task-link,
.nav-link {
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.task-link {
    padding: 11px 16px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 600;
}

.task-link:hover,
.task-link.is-current {
    background: var(--surface-1);
    color: var(--ink-strong);
    border-color: var(--line);
    box-shadow: 0 6px 20px rgba(15, 23, 40, 0.06);
}

.nav-link {
    padding: 9px 12px;
    color: var(--ink-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.top-nav-secondary .nav-link:hover,
.top-nav-secondary .nav-link.is-current,
.nav-link:hover,
.nav-link.is-current {
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--line);
    color: var(--ink-strong);
}

.hero,
.stat-card,
.panel,
.notice {
    animation: none;
}

.hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.82fr);
    gap: 20px;
    margin-bottom: 28px;
}

.hero-copy,
.panel,
.stat-card,
.signal-card,
.source-card,
.task-card,
.result-card,
.detail-card,
.metric-card,
.result-stat,
.preview-card,
.guidance-card,
.auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.hero-copy {
    padding: 34px 36px;
    border-radius: var(--radius-2xl);
}

.hero-meta {
    display: grid;
    gap: 14px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border: 0;
    box-shadow: none;
}

.meta-card {
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    box-shadow: none;
}

.meta-card strong {
    margin-top: 8px;
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.03em;
}

.meta-card small,
.helper-copy,
.panel-note,
.panel-intro,
.hero-text,
.signal-card p,
.task-copy,
.source-copy,
.result-state-copy,
.detail-card small,
.auth-copy,
.field small {
    color: var(--ink-soft);
}

.hero-badges {
    gap: 8px;
    margin-bottom: 14px;
}

.hero-badge {
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
}

.hero-badge-live {
    color: var(--blue-deep);
    background: var(--blue-tint);
    border-color: rgba(31, 111, 255, 0.14);
}

.hero-copy h1,
.panel h2,
.auth-card h1 {
    color: var(--ink-strong);
    font-weight: 670;
    letter-spacing: -0.055em;
}

.hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.6rem, 4vw, 4.25rem);
    line-height: 0.96;
}

.hero-copy-wide h1 {
    max-width: 14ch;
}

.hero-text {
    max-width: 62ch;
    margin-top: 14px;
    font-size: 1.05rem;
    line-height: 1.72;
}

.hero-actions {
    gap: 12px;
    margin-top: 28px;
}

.eyebrow,
.meta-label,
.signal-label,
.preview-label,
.count-chip,
.stat-label {
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.count-chip {
    align-self: center;
    white-space: nowrap;
}

.panel {
    padding: 28px;
    border-radius: var(--radius-2xl);
}

.panel-form {
    grid-column: 1 / -1;
}

.panel-heading {
    gap: 16px;
    margin-bottom: 16px;
}

.panel h2 {
    font-size: clamp(1.42rem, 2.2vw, 2.12rem);
    line-height: 1.02;
}

.panel-intro {
    max-width: 74ch;
    margin-bottom: 18px;
    line-height: 1.65;
}

.panel-note {
    max-width: 28ch;
    text-align: left;
    font-size: 0.88rem;
}

.notice-stack {
    gap: 12px;
    margin-bottom: 20px;
}

.notice {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
    box-shadow: none;
}

.notice-success {
    background: rgba(28, 139, 115, 0.08);
    border-color: rgba(28, 139, 115, 0.18);
}

.notice-warning {
    background: rgba(173, 122, 31, 0.09);
    border-color: rgba(173, 122, 31, 0.2);
}

.notice-error {
    background: rgba(196, 77, 64, 0.09);
    border-color: rgba(196, 77, 64, 0.2);
}

.notice-info {
    background: rgba(31, 111, 255, 0.08);
    border-color: rgba(31, 111, 255, 0.18);
}

.notice-emphasis {
    gap: 5px;
}

.notice-emphasis strong {
    font-weight: 650;
}

.inline-link,
.table-link,
.payload-details summary {
    color: var(--blue-deep);
    font-weight: 650;
    text-decoration: none;
}

.inline-link:hover,
.table-link:hover,
.payload-details summary:hover {
    text-decoration: underline;
}

.signal-grid,
.stats-grid,
.results-grid,
.detail-grid,
.result-stat-grid,
.metric-grid,
.task-hub-grid,
.task-hub-main,
.task-hub-aside {
    gap: 16px;
}

.signal-card,
.stat-card,
.result-stat,
.metric-card,
.detail-card,
.task-card,
.source-card,
.preview-card,
.guidance-card {
    border-radius: 22px;
}

.signal-card,
.stat-card,
.result-stat,
.metric-card {
    padding: 20px 22px;
}

.signal-card strong,
.result-stat strong,
.metric-card strong,
.detail-card strong {
    margin-top: 10px;
    font-size: 1.18rem;
    font-weight: 650;
    letter-spacing: -0.03em;
}

.signal-card p,
.result-card p,
.metric-card p {
    line-height: 1.6;
}

.stats-grid {
    margin-bottom: 24px;
}

.stat-card {
    padding: 22px 24px;
}

.stat-card::after,
.flow-step::after {
    display: none;
}

.stat-value {
    margin-top: 12px;
    font-size: clamp(2.2rem, 3vw, 3rem);
    font-weight: 670;
    letter-spacing: -0.06em;
}

.stat-note {
    margin-top: 10px;
    color: var(--ink-soft);
}

.dashboard-grid {
    gap: 16px;
}

.task-hub-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.82fr);
    align-items: start;
}

.source-card,
.task-card,
.result-card {
    padding: 22px;
}

.source-card,
.task-card,
.result-card,
.metric-card,
.detail-card,
.result-stat {
    background: rgba(255, 255, 255, 0.92);
}

.source-card-api,
.task-card-highlight {
    background:
        linear-gradient(180deg, rgba(238, 244, 251, 0.95), rgba(247, 249, 252, 0.96));
    border-color: rgba(31, 111, 255, 0.12);
}

.source-card-heading {
    margin-bottom: 18px;
}

.source-card-heading h3,
.task-card h3,
.result-card h3 {
    font-size: 1.38rem;
    font-weight: 650;
    letter-spacing: -0.04em;
}

.source-card-heading h3 {
    margin-bottom: 8px;
}

.field,
.checkbox-field {
    gap: 8px;
}

.field span,
.checkbox-field span {
    color: var(--ink-strong);
    font-size: 0.92rem;
    font-weight: 600;
}

.field input[type="file"],
.field input[type="text"],
.field input[type="password"],
.field input[type="date"],
.field input[type="search"] {
    border: 1.5px solid var(--line);
    border-radius: 16px;
    padding: 14px 15px;
    background: var(--surface-2);
    color: var(--ink-strong);
    font-family: var(--font-sans);
    font-size: 0.96rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.field input::placeholder {
    color: #96a2b0;
}

.field input:focus,
.field input[type="date"]:focus,
.field input[type="search"]:focus {
    outline: none;
    border-color: rgba(31, 111, 255, 0.42);
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(31, 111, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.preview-card {
    padding: 18px 20px;
    background: var(--surface-2);
    box-shadow: none;
}

.preview-card strong {
    margin: 7px 0 8px;
    font-size: 1.05rem;
    font-weight: 640;
}

.form-actions {
    justify-content: flex-start;
    gap: 14px 18px;
}

.approval-toolbar {
    padding: 18px 20px;
    border-radius: 22px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.approval-toolbar-copy strong {
    font-size: 1.08rem;
    font-weight: 650;
    letter-spacing: -0.03em;
}

.approval-toolbar-copy p {
    margin-top: 6px;
}

.approval-toolbar .count-chip {
    font-size: 0.84rem;
    letter-spacing: 0;
    text-transform: none;
}

.primary-button,
.ghost-button {
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 15px;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.primary-button {
    background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
    box-shadow: 0 14px 28px rgba(31, 111, 255, 0.22);
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(31, 111, 255, 0.26);
}

.ghost-button {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line-strong);
    box-shadow: none;
    color: var(--ink-strong);
}

.ghost-button:hover {
    background: #ffffff;
    border-color: rgba(15, 23, 40, 0.22);
}

.ghost-button-small {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
}

.selection-cell {
    gap: 8px;
    font-weight: 600;
}

.selection-cell input,
.checkbox-field input {
    accent-color: var(--blue);
}

.table-wrap {
    overflow-x: auto;
    border-top: 1px solid rgba(15, 23, 40, 0.06);
}

table {
    min-width: 860px;
}

thead th {
    padding: 14px 0 12px;
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    border-bottom-color: rgba(15, 23, 40, 0.08);
}

tbody tr {
    transition: background 140ms ease;
}

tbody tr:hover {
    background: rgba(238, 244, 251, 0.46);
}

tbody td {
    padding: 16px 0;
    color: var(--ink-soft);
    border-bottom-color: rgba(15, 23, 40, 0.07);
}

tbody td strong {
    color: var(--ink-strong);
    font-weight: 620;
}

tbody small {
    display: block;
    margin-top: 4px;
    color: var(--ink-muted);
    line-height: 1.45;
}

.table-number {
    color: var(--ink-strong);
    font-variant-numeric: tabular-nums;
}

.status-pill {
    padding: 6px 10px;
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 650;
}

.status-pill.tone-queued {
    background: rgba(173, 122, 31, 0.12);
    color: #835d19;
    border-color: rgba(173, 122, 31, 0.16);
}

.status-pill.tone-running,
.status-pill.tone-empty {
    background: rgba(31, 111, 255, 0.1);
    color: var(--blue-deep);
    border-color: rgba(31, 111, 255, 0.16);
}

.status-pill.tone-completed,
.status-pill.tone-ready {
    background: rgba(28, 139, 115, 0.1);
    color: var(--teal-deep);
    border-color: rgba(28, 139, 115, 0.16);
}

.status-pill.tone-warning {
    background: rgba(173, 122, 31, 0.12);
    color: #835d19;
    border-color: rgba(173, 122, 31, 0.16);
}

.status-pill.tone-failed {
    background: rgba(196, 77, 64, 0.1);
    color: #9f3b31;
    border-color: rgba(196, 77, 64, 0.16);
}

.empty-state {
    padding: 24px;
    border-radius: 22px;
    background: var(--surface-2);
    border: 1px dashed rgba(15, 23, 40, 0.14);
}

.empty-state strong {
    display: block;
    margin-bottom: 6px;
    font-weight: 620;
}

.empty-state p {
    color: var(--ink-soft);
    line-height: 1.6;
}

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

.result-card-topline {
    margin-bottom: 12px;
}

.result-card .hero-badges {
    margin-bottom: 12px;
}

.result-card h3 {
    margin-bottom: 8px;
}

.result-stat-grid,
.detail-grid,
.metric-grid,
.signal-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.result-stat,
.metric-card,
.detail-card {
    background: var(--surface-2);
    box-shadow: none;
}

.detail-card {
    padding: 18px 20px;
}

.guidance-card {
    padding: 20px 22px;
    background: var(--surface-2);
    box-shadow: none;
}

.checklist-list,
.aside-list,
.info-list {
    color: var(--ink-soft);
    line-height: 1.6;
}

.checklist-list li + li,
.aside-list li + li,
.info-list li + li {
    margin-top: 8px;
}

.payload-details {
    min-width: 240px;
}

.payload-grid {
    gap: 10px;
}

.payload-item {
    padding: 11px 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
}

.payload-item dt {
    color: var(--ink-muted);
}

.payload-item dd {
    color: var(--ink-strong);
}

.filter-shell {
    min-width: min(100%, 340px);
}

.workspace-home .hero-copy {
    padding: 40px 40px 36px;
}

.workspace-home .upload-form-single {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.workspace-home .upload-form-single > .inline-notice,
.workspace-home .upload-form-single > .field:nth-of-type(3),
.workspace-home .upload-form-single > .field-inline,
.workspace-home .upload-form-single > .preview-card,
.workspace-home .upload-form-single > .form-actions {
    grid-column: 1 / -1;
}

.workspace-home .task-card,
.workspace-home .result-card {
    min-height: 100%;
}

.workspace-cleaning .hero,
.workspace-run .hero,
.workspace-diagnostics .hero {
    grid-template-columns: minmax(0, 1.38fr) minmax(300px, 0.86fr);
}

.workspace-cleaning .approval-toolbar-actions {
    gap: 10px;
}

.workspace-diagnostics .admin-panel {
    background: linear-gradient(180deg, rgba(245, 247, 250, 0.96), rgba(240, 243, 247, 0.96));
    border-style: dashed;
    box-shadow: none;
}

.workspace-diagnostics .panel-heading .count-chip,
.workspace-run .panel-heading .count-chip {
    align-self: flex-start;
}

.workspace-login .auth-shell {
    min-height: 100vh;
    padding: 24px 16px;
    background:
        radial-gradient(circle at top, rgba(31, 111, 255, 0.08), transparent 28%),
        linear-gradient(180deg, #f7f9fc 0%, #eef2f6 100%);
}

.workspace-login .auth-card {
    width: min(100%, 438px);
    padding: 34px 32px;
    border-radius: 30px;
    box-shadow: var(--shadow-medium);
}

.workspace-login .auth-card h1 {
    font-size: clamp(2.2rem, 5vw, 2.85rem);
    line-height: 0.98;
}

.workspace-login .auth-copy {
    margin: 12px 0 20px;
    line-height: 1.7;
}

.workspace-login .auth-form {
    gap: 18px;
}

.workspace-login .primary-button {
    width: 100%;
}

.ghost-button:focus-visible,
.primary-button:focus-visible,
.task-link:focus-visible,
.nav-link:focus-visible,
.field input:focus-visible,
.payload-details summary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(31, 111, 255, 0.14);
}

.aade-copy-panel {
    padding: 24px;
    background: linear-gradient(180deg, #f4f8ff 0%, #eef5ff 100%);
    border-bottom: 1px solid var(--line);
}

.aade-copy-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.aade-copy-heading h4 {
    margin: 3px 0 0;
    font-size: 1.22rem;
    letter-spacing: -0.025em;
}

.aade-ready-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(28, 139, 115, 0.12);
    color: var(--teal-deep);
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.aade-copy-intro {
    max-width: 800px;
    margin: 9px 0 18px;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.aade-copy-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.aade-copy-row {
    display: grid;
    grid-template-columns: 32px minmax(170px, 0.9fr) minmax(190px, 1.25fr) 112px;
    align-items: center;
    gap: 10px 16px;
    padding: 13px 14px;
    border: 1px solid rgba(31, 111, 255, 0.11);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.88);
}

.aade-copy-row-manual {
    border-color: rgba(173, 122, 31, 0.22);
    background: rgba(255, 250, 239, 0.94);
}

.aade-step-number {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: var(--blue-tint);
    color: var(--blue-deep);
    font-size: 0.78rem;
    font-weight: 850;
}

.aade-step-copy {
    min-width: 0;
}

.aade-step-copy > span {
    display: block;
    color: var(--ink-strong);
    font-size: 0.88rem;
    font-weight: 800;
}

.aade-step-copy small {
    display: block;
    margin-top: 2px;
    color: var(--ink-muted);
    font-size: 0.7rem;
    line-height: 1.3;
}

.aade-step-value {
    min-width: 0;
    color: var(--ink-strong);
    font-size: 0.98rem;
    overflow-wrap: anywhere;
}

.aade-copy-button,
.aade-step-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 10px;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
}

.aade-copy-button {
    border: 1px solid rgba(31, 111, 255, 0.25);
    background: #ffffff;
    color: var(--blue-deep);
    cursor: pointer;
    transition: background 130ms ease, border-color 130ms ease, color 130ms ease;
}

.aade-copy-button:hover {
    border-color: var(--blue);
    background: var(--blue-tint);
}

.aade-copy-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(31, 111, 255, 0.14);
}

.aade-copy-button:disabled {
    cursor: default;
    opacity: 1;
}

.aade-copy-button.is-copied {
    border-color: rgba(28, 139, 115, 0.28);
    background: rgba(28, 139, 115, 0.1);
    color: var(--teal-deep);
}

.aade-copy-button.is-copy-error {
    border-color: rgba(196, 77, 64, 0.28);
    background: rgba(196, 77, 64, 0.08);
    color: var(--red);
}

.aade-step-action {
    background: rgba(15, 23, 40, 0.06);
    color: var(--ink-soft);
    text-align: center;
}

.aade-step-action-manual {
    background: rgba(173, 122, 31, 0.12);
    color: #815a16;
}

.aade-step-hint {
    grid-column: 2 / -1;
    margin: -3px 0 0;
    color: var(--ink-muted);
    font-size: 0.72rem;
    line-height: 1.35;
}

.aade-blank-fields {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.aade-blank-fields strong {
    color: var(--ink-strong);
}

@media (max-width: 1180px) {
    .hero,
    .workspace-cleaning .hero,
    .workspace-run .hero,
    .workspace-diagnostics .hero,
    .dashboard-grid,
    .stats-grid,
    .signal-grid,
    .signal-grid-four,
    .results-grid,
    .detail-grid,
    .result-stat-grid,
    .metric-grid,
    .task-hub-grid {
        grid-template-columns: 1fr;
    }

    .workspace-home .upload-form-single {
        grid-template-columns: 1fr;
    }

    .workspace-home .upload-form-single > .field:nth-of-type(3),
    .workspace-home .upload-form-single > .field-inline,
    .workspace-home .upload-form-single > .preview-card,
    .workspace-home .upload-form-single > .form-actions {
        grid-column: auto;
    }

    .hero-copy h1,
    .hero-copy-wide h1 {
        max-width: 14ch;
    }
}

@media (max-width: 900px) {
    .provisional-notice {
        align-items: stretch;
        flex-direction: column;
    }

    .provisional-notice .ghost-button {
        width: 100%;
    }

    .obligation-grid {
        grid-template-columns: 1fr;
    }

    .monthly-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .run-month-heading {
        align-items: stretch;
    }

    .run-month-picker {
        width: 100%;
        margin-left: 0;
    }

    .run-month-controls {
        width: 100%;
        margin-left: 0;
    }

    .reservation-filing-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .reservation-stay {
        flex-wrap: wrap;
        white-space: normal;
    }

    .reservation-obligation-grid {
        grid-template-columns: 1fr;
    }

    .reservation-obligation + .reservation-obligation {
        border-top: 1px solid rgba(15, 39, 64, 0.08);
        border-left: 0;
    }

    .reservation-audit > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aade-copy-row {
        grid-template-columns: 32px minmax(145px, 0.9fr) minmax(160px, 1.2fr) 104px;
    }

    .month-picker {
        width: 100%;
    }

    .monthly-obligations {
        grid-template-columns: 1fr;
    }

    .page-shell {
        padding: 18px 14px 40px;
    }

    .app-header {
        position: static;
        padding: 14px;
    }

    .app-header,
    .app-header-nav,
    .task-nav,
    .top-nav {
        align-items: stretch;
    }

    .panel,
    .hero-copy,
    .workspace-login .auth-card {
        padding: 24px;
    }

    .hero-actions,
    .form-actions,
    .approval-toolbar,
    .approval-toolbar-actions,
    .panel-heading {
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .hero-copy h1,
    .hero-copy-wide h1,
    .workspace-login .auth-card h1 {
        max-width: none;
        font-size: clamp(2.15rem, 10vw, 2.9rem);
    }

    .hero-text,
    .panel-intro,
    .auth-copy {
        font-size: 0.98rem;
    }

    .hero-actions,
    .form-actions,
    .approval-toolbar-actions {
        width: 100%;
    }

    .primary-button,
    .ghost-button,
    .task-link,
    .nav-link {
        width: 100%;
        justify-content: center;
    }

    .count-chip {
        width: auto;
    }

    .table-wrap {
        border-top: 0;
    }

    .aade-copy-panel {
        padding: 20px 16px;
    }

    .aade-copy-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .aade-copy-row {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        gap: 8px 10px;
    }

    .aade-step-copy {
        grid-column: 2 / -1;
    }

    .aade-step-value {
        grid-column: 2;
    }

    .aade-copy-button,
    .aade-step-action {
        grid-column: 3;
        grid-row: 2;
        min-width: 92px;
    }

    .aade-step-hint {
        grid-column: 2 / -1;
    }
}
