:root {
    --bg: #f4ecdf;
    --bg-strong: #e5d5b9;
    --paper: rgba(255, 251, 245, 0.88);
    --paper-strong: #fff8ef;
    --line: rgba(68, 50, 30, 0.14);
    --ink: #24160f;
    --muted: #715c4d;
    --accent: #0d7a63;
    --accent-strong: #0a5e4d;
    --warn: #b4473b;
    --shadow: 0 26px 80px rgba(36, 22, 15, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --body-font: "Avenir Next", "Segoe UI", sans-serif;
    --display-font:
        "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--body-font);
    background:
        radial-gradient(
            circle at top left,
            rgba(255, 255, 255, 0.7),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(13, 122, 99, 0.15),
            transparent 28%
        ),
        linear-gradient(135deg, #f3e7d1 0%, #f1ebdf 48%, #e4d8c4 100%);
}

a {
    color: inherit;
}

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

.page-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 24px 48px;
}

.landing-shell {
    padding-bottom: 72px;
}

.landing-hero {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    align-items: stretch;
    margin-bottom: 24px;
}

.hero-panel,
.metric-card,
.section-card,
.final-cta {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--paper);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-panel,
.section-card,
.final-cta {
    padding: 28px;
}

.hero-panel::after,
.metric-card::after,
.section-card::after,
.final-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.34),
        transparent 38%,
        rgba(13, 122, 99, 0.05) 100%
    );
    pointer-events: none;
}

.hero-copy-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 18px;
    text-decoration: none;
    color: #fbf6ef;
    background: linear-gradient(
        135deg,
        var(--accent) 0%,
        var(--accent-strong) 100%
    );
    font-weight: 700;
    box-shadow: 0 14px 26px rgba(13, 122, 99, 0.22);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        opacity 180ms ease;
}

.button-link:hover {
    transform: translateY(-1px);
}

.ghost-link {
    color: var(--ink);
    background: rgba(113, 92, 77, 0.12);
    box-shadow: none;
}

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

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

.promise-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promise-card,
.feature-card,
.proof-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    background: rgba(255, 248, 239, 0.74);
}

.promise-title,
.metric-label,
.proof-kicker {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.promise-copy,
.metric-copy,
.feature-card p,
.proof-card p,
.loop-step p {
    margin: 0;
    line-height: 1.55;
    color: var(--muted);
}

.stats-row,
.feature-grid,
.proof-grid {
    display: grid;
    gap: 16px;
}

.stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 24px;
}

.metric-card {
    padding: 20px;
}

.metric-value {
    margin: 0 0 8px;
    font-family: var(--display-font);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    line-height: 1;
}

.landing-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-head {
    max-width: 70ch;
    margin-bottom: 18px;
}

.section-head h2 {
    max-width: 22ch;
}

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

.feature-card h3,
.proof-card h3 {
    margin-bottom: 10px;
}

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

.loop-step {
    border-top: 3px solid rgba(13, 122, 99, 0.34);
    padding-top: 14px;
}

.loop-step span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.loop-step strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--display-font);
    font-size: 1.05rem;
}

.proof-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.proof-highlight {
    background: linear-gradient(
        160deg,
        rgba(13, 122, 99, 0.12),
        rgba(255, 248, 239, 0.84)
    );
}

.proof-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.proof-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.proof-list li::before {
    content: "•";
    color: var(--accent-strong);
    font-weight: 700;
}

.final-cta {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    margin-top: 20px;
}

.hero-link-row {
    margin: 18px 0 0;
}

.hero {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    align-items: end;
    margin-bottom: 24px;
}

.context-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.context-side-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-copy {
    margin: -4px 0 18px;
    color: var(--muted);
    line-height: 1.55;
}

.eyebrow,
.panel-kicker,
.status-label {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--display-font);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.75rem, 6vw, 5rem);
    line-height: 0.98;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.1rem;
}

.hero-copy,
.status-note,
.subhead p,
.spotlight-copy,
.field span,
.meta-grid dt,
.meta-grid dd,
.action-list,
.gate-list,
#summaryOutput {
    line-height: 1.5;
}

.hero-copy {
    max-width: 58ch;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-note {
    max-width: 60ch;
    margin: 14px 0 0;
    color: rgba(36, 22, 15, 0.78);
    font-size: 0.95rem;
}

.status-card,
.panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--paper);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.status-card {
    padding: 24px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    margin: 0 0 10px;
    background: rgba(180, 71, 59, 0.12);
    color: var(--warn);
    font-size: 1rem;
    font-weight: 700;
}

.status-chip.ready {
    background: rgba(13, 122, 99, 0.14);
    color: var(--accent-strong);
}

.status-subhead {
    margin: 18px 0 6px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status-meta,
.status-micro {
    margin: 0;
}

.status-meta {
    color: var(--ink);
    font-weight: 700;
    line-height: 1.4;
}

.status-meta.ready {
    color: var(--accent-strong);
}

.status-meta.error {
    color: var(--warn);
}

.status-micro {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

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

.writing-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
}

.writing-side-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
}

.timeline-side-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.trail-summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trail-summary-card,
.trail-summary-empty {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px;
    background: rgba(255, 248, 239, 0.76);
}

.trail-summary-empty {
    border-style: dashed;
    color: var(--muted);
    line-height: 1.55;
}

.trail-summary-label,
.trail-summary-value {
    margin: 0;
}

.trail-summary-label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.trail-summary-value {
    margin-top: 8px;
    font-weight: 700;
    line-height: 1.5;
}

.panel {
    padding: 24px;
}

.panel::after,
.status-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.38),
        transparent 36%,
        rgba(13, 122, 99, 0.04) 100%
    );
    pointer-events: none;
}

.panel-header,
.subhead {
    margin-bottom: 18px;
}

.subhead p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pack-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pack-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 248, 239, 0.74);
}

.pack-card.applied {
    border-color: rgba(13, 122, 99, 0.3);
    background: rgba(238, 247, 242, 0.72);
}

.pack-meta h3 {
    margin-top: 2px;
}

.pack-capability {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pack-reason {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.pack-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.pack-bullets li {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 251, 245, 0.82);
    color: var(--muted);
    line-height: 1.45;
}

.pack-action {
    align-self: flex-start;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

input[type="text"],
input[type="number"],
textarea,
select {
    width: 100%;
    border: 1px solid rgba(68, 50, 30, 0.18);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    background: var(--paper-strong);
    color: var(--ink);
    resize: vertical;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(13, 122, 99, 0.56);
    box-shadow: 0 0 0 4px rgba(13, 122, 99, 0.12);
    transform: translateY(-1px);
}

input[type="text"]:disabled,
input[type="number"]:disabled,
textarea:disabled,
select:disabled {
    background: rgba(232, 223, 212, 0.78);
    color: rgba(113, 92, 77, 0.82);
    cursor: not-allowed;
}

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

.writing-textarea {
    min-height: 540px;
}

.analysis-textarea {
    min-height: 140px;
}

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

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

button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    cursor: pointer;
    color: #fbf6ef;
    background: linear-gradient(
        135deg,
        var(--accent) 0%,
        var(--accent-strong) 100%
    );
    font-weight: 700;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        opacity 180ms ease;
    box-shadow: 0 14px 26px rgba(13, 122, 99, 0.22);
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
    box-shadow: none;
}

.ghost-button {
    color: var(--ink);
    background: rgba(113, 92, 77, 0.12);
    box-shadow: none;
}

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

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

.context-summary-grid.compact {
    grid-template-columns: 1fr;
}

.meta-grid div,
.judge-grid div,
.spotlight-card,
.summary-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px;
    background: rgba(255, 248, 239, 0.72);
}

.meta-grid dt {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.meta-grid dd,
.judge-grid dd {
    margin: 6px 0 0;
    font-weight: 700;
}

.context-summary-grid dt,
.context-summary-grid dd {
    margin: 0;
}

.context-summary-grid dt {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.context-summary-grid dd {
    margin-top: 6px;
    line-height: 1.6;
}

.judge-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}

.judge-grid dt {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.spotlight-label {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.spotlight-copy {
    margin: 0;
    font-size: 1.02rem;
}

.shortcut-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px;
    background: rgba(255, 248, 239, 0.72);
}

.shortcut-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.action-list,
.gate-list,
.gap-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-item,
.gate-list li,
.gap-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 248, 239, 0.76);
}

.action-item label {
    display: flex;
    gap: 12px;
    width: 100%;
    cursor: pointer;
}

.action-item input[type="checkbox"],
.checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    margin-top: 3px;
}

.action-item.done {
    color: var(--muted);
}

.action-item.done .action-copy {
    text-decoration: line-through;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 248, 239, 0.66);
}

.gate-list li::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(180, 71, 59, 0.15);
    color: var(--warn);
    font-size: 0.78rem;
    font-weight: 700;
}

.gate-list li.ready::before {
    content: "✓";
    background: rgba(13, 122, 99, 0.16);
    color: var(--accent-strong);
}

.judgement-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(238, 247, 242, 0.72);
}

.gap-list li::before {
    content: "•";
    color: var(--warn);
    font-weight: 700;
}

.gap-list li.ready::before {
    content: "✓";
    color: var(--accent-strong);
}

.judgement-next-card {
    background: rgba(255, 252, 247, 0.72);
}

.context-route-card {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(238, 247, 242, 0.72);
}

.context-route-card button {
    width: 100%;
    margin-top: 14px;
}

.context-access-note {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(13, 122, 99, 0.16);
    border-radius: var(--radius-md);
    background: rgba(238, 247, 242, 0.68);
    color: var(--muted);
}

.context-handoff-panel {
    margin-bottom: 20px;
}

.prototype-log-card {
    background: linear-gradient(
        180deg,
        rgba(255, 251, 245, 0.82),
        rgba(238, 247, 242, 0.78)
    );
}

.prototype-log-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prototype-log-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 14px;
    background: rgba(255, 252, 247, 0.84);
}

.prototype-log-item.kind-decision {
    border-color: rgba(13, 122, 99, 0.28);
    background: rgba(238, 247, 242, 0.82);
}

.prototype-log-item.kind-warning {
    border-color: rgba(180, 71, 59, 0.3);
    background: rgba(255, 245, 242, 0.86);
}

.prototype-log-item.kind-verification {
    border-color: rgba(13, 122, 99, 0.28);
    background: rgba(239, 249, 244, 0.84);
}

.prototype-log-item.kind-export {
    border-color: rgba(31, 76, 131, 0.22);
    background: rgba(244, 248, 253, 0.88);
}

.prototype-log-item.kind-system {
    border-color: rgba(113, 92, 77, 0.24);
    background: rgba(245, 241, 233, 0.88);
}

.prototype-log-item.empty {
    color: var(--muted);
    border-style: dashed;
}

.prototype-log-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.prototype-log-title,
.prototype-log-time,
.prototype-log-detail {
    margin: 0;
}

.prototype-log-title {
    font-weight: 700;
    line-height: 1.45;
}

.prototype-log-time {
    color: var(--muted);
    font-size: 0.86rem;
    white-space: nowrap;
}

.prototype-log-detail {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.prototype-log-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.prototype-log-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(113, 92, 77, 0.12);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.timeline-link-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.timeline-link-fallback {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.heat-strip {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.heat-strip-item,
.weakness-card,
.focus-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 248, 239, 0.78);
}

.heat-strip-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    min-height: 132px;
    padding: 16px;
    color: var(--ink);
    box-shadow: none;
}

.heat-strip-item.focused {
    border-color: rgba(13, 122, 99, 0.48);
    box-shadow: 0 0 0 4px rgba(13, 122, 99, 0.12);
}

.heat-strip-item.severity-critical,
.weakness-card.severity-critical {
    border-color: rgba(180, 71, 59, 0.28);
    background: rgba(255, 245, 242, 0.88);
}

.heat-strip-item.severity-watch,
.weakness-card.severity-watch {
    border-color: rgba(170, 112, 26, 0.22);
    background: rgba(255, 249, 238, 0.86);
}

.heat-strip-item.severity-healthy,
.weakness-card.severity-healthy,
.focus-card {
    border-color: rgba(13, 122, 99, 0.2);
    background: rgba(238, 247, 242, 0.76);
}

.heat-strip-empty,
.weakness-card.empty {
    padding: 16px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    color: var(--muted);
    background: rgba(255, 251, 245, 0.74);
    line-height: 1.55;
}

.heat-label {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.heat-risk,
.focus-title,
.weakness-heading {
    margin: 0;
    font-weight: 700;
    line-height: 1.45;
}

.heat-risk {
    font-size: 1rem;
}

.heat-meta {
    margin-top: auto;
    color: var(--muted);
    font-size: 0.86rem;
}

.weakness-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.weakness-card {
    padding: 16px;
}

.weakness-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.weakness-tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(113, 92, 77, 0.12);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: capitalize;
}

.weakness-tag.severity-critical {
    background: rgba(180, 71, 59, 0.12);
    color: var(--warn);
}

.weakness-tag.severity-watch {
    background: rgba(170, 112, 26, 0.12);
    color: #8b5c18;
}

.weakness-tag.severity-healthy {
    background: rgba(13, 122, 99, 0.12);
    color: var(--accent-strong);
}

.weakness-summary,
.weakness-repair,
.focus-summary,
.focus-repair,
.focus-evidence {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.weakness-action {
    margin-top: 14px;
}

.focus-card {
    padding: 18px;
}

.focus-summary {
    margin-top: 8px;
}

.focus-excerpt {
    margin: 14px 0 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 252, 247, 0.82);
    line-height: 1.65;
}

#summaryOutput {
    min-height: 280px;
}

@media (max-width: 1120px) {
    .landing-hero,
    .hero,
    .context-grid,
    .timeline-grid,
    .writing-grid,
    .workspace-grid,
    .stats-row,
    .feature-grid,
    .proof-grid,
    .loop-strip,
    .final-cta {
        grid-template-columns: 1fr;
    }
}

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

    .panel,
    .status-card,
    .hero-panel,
    .metric-card,
    .section-card,
    .final-cta {
        padding: 20px;
    }

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

    .context-summary-grid {
        grid-template-columns: 1fr;
    }

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

    .shortcut-card {
        flex-direction: column;
        align-items: stretch;
    }

    .timeline-filter-grid {
        grid-template-columns: 1fr;
    }

    .prototype-log-top {
        flex-direction: column;
    }

    .prototype-log-time {
        white-space: normal;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button-link {
        width: 100%;
    }
}
