:root {
    --ink: #172033;
    --muted: #5f6b7a;
    --paper: #f4efe6;
    --surface: rgba(255, 252, 247, 0.92);
    --surface-strong: #fffaf0;
    --line: rgba(23, 32, 51, 0.12);
    --accent: #b45309;
    --accent-deep: #7c2d12;
    --accent-soft: #fde7c7;
    --success: #1d6f5f;
    --danger: #a53a28;
    --shadow: 0 24px 60px rgba(23, 32, 51, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(244, 160, 84, 0.18), transparent 28%),
        linear-gradient(180deg, #fbf5ea 0%, #f1ece5 100%);
}

a {
    color: inherit;
}

.shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(251, 245, 234, 0.84);
    border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner,
.section-heading,
.summary-header,
.hero-actions,
.hero {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.page-space {
    padding: 2rem 0 4rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 0;
    text-decoration: none;
}

.brand strong,
h1,
h2,
h3,
legend {
    font-family: "Sora", "Segoe UI", sans-serif;
}

.brand small,
.muted,
.hero-text,
.form-meta,
.meta-chip,
.metric-card span,
.metric-card small {
    color: var(--muted);
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.8rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
}

.site-nav {
    display: flex;
    gap: 0.9rem;
    align-items: center;
}

.site-nav a,
.ghost-button,
.primary-button,
button {
    border-radius: 999px;
    text-decoration: none;
    font: inherit;
}

.site-nav a {
    padding: 0.75rem 0.95rem;
}

.nav-cta,
.primary-button,
button.primary-button {
    border: none;
    color: white;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    box-shadow: var(--shadow);
}

.primary-button,
.ghost-button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.2rem;
    cursor: pointer;
}

.ghost-button {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
}

.inline-form {
    margin: 0;
}

.flash {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--line);
}

.flash-success {
    background: rgba(29, 111, 95, 0.1);
    border-color: rgba(29, 111, 95, 0.2);
}

.flash-error {
    background: rgba(165, 58, 40, 0.1);
    border-color: rgba(165, 58, 40, 0.2);
}

.flash-list,
.simple-list,
.ordered-list {
    margin: 0.85rem 0 0;
    padding-left: 1.2rem;
}

.hero {
    align-items: stretch;
    padding: 1.5rem 0 2rem;
}

.hero-copy,
.hero-panel,
.surface-card,
.auth-card,
.metric-card,
.step-card,
.category-card {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);margin-bottom: 10px;
}

.hero-copy {
    flex: 1.2;
    padding: 2rem;
}

.hero-panel {
    flex: 0.8;
    padding: 1.25rem;
    display: grid;
    gap: 1rem;
}

.metric-card,
.surface-card,
.auth-card,
.category-card,
.step-card {
    padding: 1.4rem;
}

.eyebrow {
    margin: 0 0 0.5rem;
    color: var(--accent-deep);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 600;
}

h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.05;
}

h2 {
    margin: 0 0 0.85rem;
    font-size: 1.3rem;
}

h3 {
    margin: 0 0 0.8rem;
    font-size: 1rem;
}

.grid-two,
.category-grid,
.step-grid,
.detail-grid,
.form-grid {
    display: grid;
    gap: 1rem;
}

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

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

.detail-grid,
.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.user-dashboard-page .detail-grid span{
    margin-left: 10px;
}
.step-card span {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    color: white;
    background: var(--accent-deep);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: 70vh;
}

.auth-card {
    width: min(100%, 560px);
}

.stack-form,
.radio-stack {
    display: grid;
    gap: 1rem;
}

label span,
legend {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(23, 32, 51, 0.18);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.88);
    font: inherit;
}

textarea {
    resize: vertical;
    min-height: 8rem;
}

.radio-option {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.65);
}

.radio-option input {
    width: auto;
    margin: 0;
}

.tip-banner,
.meta-chip,
.status-pill {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    border-radius: 999px;
    padding: 0.65rem 0.9rem;
    font-size: 0.92rem;
}

.tip-banner,
.meta-chip {
    background: var(--accent-soft);
    color: var(--accent-deep);
}

.status-pill {
    background: rgba(23, 32, 51, 0.08);
}

.status-pill.is-success {
    background: rgba(29, 111, 95, 0.12);
    color: var(--success);
}

.status-pill.is-error {
    background: rgba(165, 58, 40, 0.12);
    color: var(--danger);
}

.hidden-field {
    display: none;
}

.full-width {
    width: 100%;
}

.full-span {
    grid-column: 1 / -1;
}

.compact-heading {
    margin-bottom: 1rem;
}

.records-list,
.upload-group {
    display: grid;
    gap: 1rem;
}

.submission-progress {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.progress-step {
    min-width: 0;
    height: 100%;
}

.progress-step-link {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    width: 100%;
    min-height: 100%;
    height: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.progress-step-link:hover {
    transform: translateY(-1px);
    border-color: rgba(180, 83, 9, 0.3);
}

.progress-step-number {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border-radius: 999px;
    background: rgba(23, 32, 51, 0.08);
    color: var(--muted);
    font-weight: 700;
}

.progress-step-copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
    align-content: start;
}

.progress-step-copy small {
    color: var(--muted);
}

.progress-step-copy strong {
    font-size: 0.92rem;
    line-height: 1.3;
}

.progress-step.is-complete .progress-step-link {
    border-color: rgba(29, 111, 95, 0.22);
    background: rgba(29, 111, 95, 0.08);
}

.progress-step.is-complete .progress-step-number {
    color: white;
    background: var(--success);
}

.progress-step.is-current .progress-step-link {
    border-color: rgba(180, 83, 9, 0.3);
    background: rgba(253, 231, 199, 0.55);
}

.progress-step.is-current .progress-step-number {
    color: white;
    background: var(--accent-deep);
}

.progress-step.is-locked .progress-step-link {
    opacity: 0.58;
    cursor: not-allowed;
    pointer-events: none;
}

.checklist-items {
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.checklist-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.95rem 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.58);
}

.checklist-item.is-complete {
    border-color: rgba(29, 111, 95, 0.25);
    background: rgba(29, 111, 95, 0.08);
}

.checklist-icon {
    display: inline-grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    flex: 0 0 1.6rem;
    color: var(--muted);
    background: rgba(23, 32, 51, 0.08);
    font-weight: 700;
}

.checklist-item.is-complete .checklist-icon {
    color: white;
    background: var(--success);
}

.checklist-copy {
    display: grid;
    gap: 0.2rem;
}

.checklist-copy small {
    color: var(--success);
    font-weight: 600;
}

.nested-card {
    box-shadow: none;
    background: rgba(255, 255, 255, 0.62);
}

.upload-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
}

.upload-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1.2rem 0 2rem;
    color: var(--muted);
}

@media (max-width: 900px) {
    .hero,
    .header-inner,
    .footer-inner,
    .section-heading,
    .summary-header,
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .grid-two,
    .category-grid,
    .step-grid,
    .detail-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .submission-progress {
        grid-template-columns: 1fr;
    }

    .site-nav {
        flex-wrap: wrap;
    }
}
