:root {
    --bg-top: #f7fbff;
    --bg-mid: #d9edff;
    --bg-bottom: #eaf4ff;
    --panel: rgba(255, 255, 255, 0.78);
    --panel-strong: rgba(255, 255, 255, 0.92);
    --panel-dark: rgba(7, 28, 58, 0.84);
    --line: rgba(154, 192, 234, 0.44);
    --line-strong: rgba(90, 150, 231, 0.24);
    --ink: #0a2342;
    --muted: #5e7592;
    --blue: #176bff;
    --blue-strong: #0d53d9;
    --blue-deep: #082d76;
    --cyan: #22c7ff;
    --teal: #19c7b2;
    --amber: #ffbf47;
    --rose: #ff6c7b;
    --success-bg: rgba(30, 202, 138, 0.16);
    --success-text: #007b52;
    --warning-bg: rgba(255, 191, 71, 0.22);
    --warning-text: #9a6300;
    --danger-bg: rgba(255, 108, 123, 0.18);
    --danger-text: #b02a44;
    --info-bg: rgba(34, 199, 255, 0.2);
    --info-text: #006ca1;
    --neutral-bg: rgba(89, 117, 154, 0.16);
    --neutral-text: #526783;
    --shadow-xl: 0 36px 80px rgba(24, 75, 145, 0.16);
    --shadow-lg: 0 24px 48px rgba(24, 75, 145, 0.12);
    --shadow-md: 0 16px 32px rgba(24, 75, 145, 0.1);
    --radius-2xl: 34px;
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 12%, rgba(54, 157, 255, 0.24), transparent 24%),
        radial-gradient(circle at 90% 4%, rgba(33, 199, 255, 0.24), transparent 20%),
        radial-gradient(circle at 88% 84%, rgba(25, 199, 178, 0.16), transparent 24%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 48%, var(--bg-bottom) 100%);
    min-height: 100vh;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    filter: blur(18px);
    pointer-events: none;
    z-index: 0;
}

body::before {
    top: 80px;
    right: -70px;
    background: radial-gradient(circle, rgba(17, 107, 255, 0.16) 0%, rgba(17, 107, 255, 0) 72%);
}

body::after {
    bottom: -60px;
    left: -70px;
    background: radial-gradient(circle, rgba(34, 199, 255, 0.14) 0%, rgba(34, 199, 255, 0) 72%);
}

a {
    color: inherit;
    text-decoration: none;
}

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

.flash-bar {
    position: sticky;
    top: 10px;
    z-index: 70;
    padding: 12px 14px 0;
}

.flash-wrap {
    width: min(100%, 1180px);
    margin: 0 auto;
    display: grid;
    gap: 10px;
}

.flash {
    padding: 14px 16px;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    font-weight: 800;
}

.flash-success {
    background: linear-gradient(180deg, #effff8 0%, #ddfff0 100%);
    color: #0c7b53;
}

.flash-error {
    background: linear-gradient(180deg, #fff1f4 0%, #ffe4ea 100%);
    color: #bb2445;
}

.site-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 18px 14px 108px;
}

.site-frame,
.app-page-frame {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.portal-header-shell {
    margin-bottom: 18px;
}

.portal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 18px 20px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 252, 255, 0.62) 100%);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.portal-brand {
    max-width: 680px;
}

.brand-kicker,
.section-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-mark,
.portal-title {
    display: block;
    margin: 0;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: var(--ink);
}

.brand-mark {
    font-size: clamp(1.4rem, 4vw, 2.4rem);
}

.portal-title {
    font-size: clamp(1.35rem, 5vw, 2.1rem);
}

.portal-summary {
    margin: 10px 0 0;
    max-width: 58ch;
    color: var(--muted);
    line-height: 1.65;
}

.header-nav,
.portal-nav {
    display: none;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.header-nav a,
.portal-nav a,
.mobile-dock a {
    position: relative;
    padding: 12px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-md);
    color: var(--ink);
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.header-nav a:hover,
.portal-nav a:hover,
.mobile-dock a:hover {
    transform: translateY(-2px);
}

.header-nav .header-cta,
.portal-nav .is-active,
.mobile-dock .is-active {
    background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 54%, var(--cyan) 100%);
    color: #fff;
    box-shadow: 0 18px 36px rgba(23, 107, 255, 0.26);
}

.mobile-dock {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 80;
    width: min(calc(100% - 20px), 520px);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 8px;
    padding: 10px;
    border-radius: 24px;
    background: rgba(9, 28, 58, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 22px 46px rgba(6, 18, 44, 0.28);
    backdrop-filter: blur(18px);
}

.mobile-dock a {
    min-height: 52px;
    padding: 10px 8px;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
}

.mobile-dock .dock-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
}

.landing-stack,
.page-grid,
.list-stack,
.action-grid,
.stats-grid,
.hero-points,
.hero-actions,
.mock-tags,
.mock-list,
.steps-grid,
.roles-grid,
.meta-list,
.meta-grid,
.form-stack,
.checkbox-grid,
.split-grid,
.action-row,
.auth-grid,
.feature-list,
.overview-metrics,
.overview-tags,
.info-stack {
    display: grid;
    gap: 14px;
}

.page-grid,
.auth-grid {
    grid-template-columns: 1fr;
}

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

.action-row {
    grid-template-columns: 1fr;
}

.hero-panel,
.story-band,
.roles-panel,
.step-panel,
.panel-card,
.overview-panel {
    position: relative;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(18px);
}

.hero-panel,
.story-band,
.roles-panel,
.step-panel,
.panel-card,
.overview-panel {
    padding: 20px;
}

.panel-card::before,
.overview-panel::before,
.hero-panel::before,
.story-band::before,
.roles-panel::before,
.step-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.7) 0%, rgba(130, 188, 255, 0.12) 46%, rgba(34, 199, 255, 0.16) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hero-panel {
    background:
        radial-gradient(circle at top right, rgba(34, 199, 255, 0.2), transparent 28%),
        radial-gradient(circle at 12% 20%, rgba(23, 107, 255, 0.16), transparent 22%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 247, 255, 0.94) 52%, rgba(223, 238, 255, 0.98) 100%);
}

.hero-copy,
.story-copy,
.overview-copy {
    position: relative;
    z-index: 1;
}

.eyebrow-pill,
.micro-pill {
    display: inline-flex;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.eyebrow-pill {
    background: rgba(14, 105, 255, 0.08);
    color: var(--blue-deep);
    box-shadow: inset 0 0 0 1px rgba(85, 157, 255, 0.26);
}

.micro-pill {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.86);
}

.hero-copy h1,
.story-copy h2,
.section-heading h2,
.panel-card h2,
.overview-copy h2,
.auth-showcase h2 {
    margin: 12px 0 0;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(2.4rem, 7vw, 4.4rem);
}

.story-copy h2,
.section-heading h2,
.panel-card h2,
.overview-copy h2,
.auth-showcase h2 {
    font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.hero-lead,
.story-copy p,
.step-panel p,
.role-card p,
.panel-copy,
.request-card p,
.overview-copy p,
.auth-showcase p,
.mini-note p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-lead {
    max-width: 60ch;
    margin: 18px 0 0;
    font-size: 1rem;
}

.point-card,
.stat-card,
.role-card,
.action-tile,
.metric-card,
.feature-card,
.mini-note {
    position: relative;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 251, 255, 0.72) 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.point-card strong,
.stat-card strong,
.action-tile strong,
.metric-card strong,
.feature-card strong,
.mini-note strong {
    display: block;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

.point-card span,
.action-tile span,
.stat-card span,
.metric-card span,
.feature-card span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.86rem;
}

.action-tile {
    color: var(--ink);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.action-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 133, 255, 0.28);
    box-shadow: 0 18px 34px rgba(22, 95, 194, 0.14);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 18px;
    border: 0;
    border-radius: 18px;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: -0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.button:hover {
    transform: translateY(-2px);
    filter: saturate(1.06);
}

.button-primary {
    background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 56%, var(--cyan) 100%);
    color: #fff;
    box-shadow: 0 18px 34px rgba(23, 107, 255, 0.28);
}

.button-secondary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(229, 242, 255, 0.98) 100%);
    color: var(--blue-deep);
    border: 1px solid rgba(134, 183, 244, 0.6);
}

.button-ghost {
    background: rgba(255, 255, 255, 0.66);
    color: var(--ink);
    border: 1px solid rgba(211, 226, 246, 0.9);
}

.button-block {
    width: 100%;
}

.hero-device {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    padding: 14px;
    border-radius: 30px;
    background: linear-gradient(180deg, #09244a 0%, #134b95 100%);
    box-shadow: 0 30px 60px rgba(10, 31, 64, 0.3);
}

.device-chrome {
    display: flex;
    gap: 6px;
    padding: 2px 6px 12px;
}

.device-chrome span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.44);
}

.device-screen {
    padding: 14px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(34, 199, 255, 0.24), transparent 34%),
        linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
}

.screen-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--blue-deep);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mock-card {
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 20px;
    background: var(--panel-strong);
    border: 1px solid rgba(192, 214, 238, 0.88);
    box-shadow: var(--shadow-md);
}

.mock-card-hero {
    background: linear-gradient(145deg, #0f4da1 0%, #1771ff 56%, #22c7ff 100%);
    color: #fff;
}

.mock-card-hero p,
.mock-card-hero span {
    color: rgba(255, 255, 255, 0.86);
}

.mock-card-soft {
    background: linear-gradient(180deg, #f8fcff 0%, #eef7ff 100%);
}

.mock-row,
.request-head,
.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mock-row strong {
    font-size: 0.95rem;
}

.mock-row span {
    font-size: 0.76rem;
    font-weight: 800;
}

.mock-card p,
.request-head p {
    margin: 0;
    line-height: 1.6;
}

.mock-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.mock-list li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(171, 198, 230, 0.8);
}

.mock-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.mock-list b,
.mock-list small {
    display: block;
}

.mock-list small {
    margin-top: 4px;
    color: var(--muted);
}

.mock-tags span,
.overview-tags span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.mock-tags span {
    background: rgba(255, 255, 255, 0.14);
}

.overview-panel {
    background:
        radial-gradient(circle at top right, rgba(35, 199, 255, 0.18), transparent 26%),
        linear-gradient(145deg, rgba(8, 45, 118, 0.92) 0%, rgba(20, 80, 214, 0.92) 58%, rgba(34, 199, 255, 0.88) 100%);
    color: #fff;
}

.overview-panel::before {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.02) 60%, rgba(255, 255, 255, 0.22) 100%);
}

.theme-service {
    background:
        radial-gradient(circle at top right, rgba(25, 199, 178, 0.22), transparent 24%),
        linear-gradient(145deg, rgba(5, 52, 94, 0.92) 0%, rgba(8, 109, 183, 0.9) 54%, rgba(25, 199, 178, 0.88) 100%);
}

.theme-admin {
    background:
        radial-gradient(circle at top right, rgba(255, 191, 71, 0.24), transparent 24%),
        linear-gradient(145deg, rgba(19, 30, 68, 0.94) 0%, rgba(44, 77, 167, 0.92) 56%, rgba(23, 107, 255, 0.88) 100%);
}

.overview-panel .section-kicker,
.overview-panel p,
.overview-panel span,
.overview-panel .micro-pill,
.auth-showcase .section-kicker {
    color: rgba(255, 255, 255, 0.82);
}

.overview-panel h2,
.auth-showcase h2 {
    color: #fff;
}

.overview-copy p {
    max-width: 60ch;
}

.metric-card {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.metric-card strong,
.metric-card span {
    color: #fff;
}

.metric-card span {
    opacity: 0.76;
}

.overview-tags span {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.compact-overview {
    padding-block: 18px;
}

.auth-showcase {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 32%),
        linear-gradient(145deg, rgba(8, 45, 118, 0.92) 0%, rgba(20, 80, 214, 0.92) 52%, rgba(34, 199, 255, 0.88) 100%);
    color: #fff;
}

.auth-showcase::before {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.03) 62%, rgba(255, 255, 255, 0.2) 100%);
}

.auth-showcase .panel-copy,
.auth-showcase p,
.auth-showcase span {
    color: rgba(255, 255, 255, 0.84);
}

.feature-card {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.feature-card strong,
.feature-card span {
    color: #fff;
}

.feature-card span {
    opacity: 0.82;
}

.story-band {
    background:
        radial-gradient(circle at right top, rgba(35, 199, 255, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(244, 249, 255, 0.68) 100%);
}

.step-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(247, 251, 255, 0.76) 100%);
}

.step-panel::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -28px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(23, 107, 255, 0.12) 0%, rgba(23, 107, 255, 0) 74%);
}

.step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 52%, var(--cyan) 100%);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.step-panel h3,
.role-card strong,
.request-head strong {
    font-size: 1.08rem;
    letter-spacing: -0.03em;
}

.form-panel,
.auth-form-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(247, 251, 255, 0.76) 100%);
}

.form-panel.wide-panel {
    max-width: 100%;
}

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

.field span,
.checkbox-panel legend {
    font-size: 0.92rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid rgba(194, 214, 239, 0.92);
    background: rgba(251, 253, 255, 0.96);
    color: var(--ink);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(23, 107, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(23, 107, 255, 0.12);
    background: #fff;
}

textarea {
    min-height: 126px;
    resize: vertical;
}

select:disabled,
input:disabled,
textarea:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.field-error {
    color: var(--danger-text);
    font-size: 0.82rem;
    font-weight: 800;
}

.checkbox-panel {
    border: 1px solid rgba(194, 214, 239, 0.92);
    border-radius: 20px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(246, 250, 255, 0.92) 0%, rgba(238, 246, 255, 0.9) 100%);
}

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

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(215, 228, 245, 0.76);
}

.checkbox-row input {
    width: 18px;
    height: 18px;
}

.checkbox-empty-state {
    padding: 12px 2px;
    color: var(--muted);
    font-size: 0.9rem;
}

.meta-list > div,
.meta-grid > div {
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(181, 204, 230, 0.95);
}

.meta-list > div:last-child,
.meta-grid > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.meta-list span,
.meta-grid span {
    color: var(--muted);
    font-size: 0.83rem;
}

.meta-list strong,
.meta-grid strong {
    letter-spacing: -0.02em;
}

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

.request-card {
    background:
        radial-gradient(circle at top right, rgba(34, 199, 255, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 252, 255, 0.76) 100%);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
    background: var(--neutral-bg);
    color: var(--neutral-text);
}

.status-pill.is-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.status-pill.is-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.status-pill.is-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.status-pill.is-info {
    background: var(--info-bg);
    color: var(--info-text);
}

.status-pill.is-muted {
    background: rgba(91, 114, 148, 0.18);
    color: #576a83;
}

.status-pill.is-neutral {
    background: var(--neutral-bg);
    color: var(--neutral-text);
}

.empty-panel {
    text-align: center;
    place-items: center;
}

.empty-panel .button {
    margin-top: 8px;
}

.mini-note {
    background: linear-gradient(180deg, rgba(240, 247, 255, 0.96) 0%, rgba(232, 243, 255, 0.86) 100%);
}

.sticky-action {
    position: sticky;
    bottom: 84px;
    padding-top: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(250, 253, 255, 0.74) 30%, rgba(250, 253, 255, 0.98) 100%);
}

.highlight-stats {
    align-content: start;
}

.side-info {
    align-self: start;
}

@media (min-width: 768px) {
    .site-shell {
        padding-top: 28px;
        padding-bottom: 42px;
    }

    .portal-nav,
    .header-nav {
        display: flex;
    }

    .mobile-dock {
        display: none;
    }

    .hero-panel {
        display: grid;
        grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.98fr);
        gap: 26px;
        align-items: center;
        padding: 30px;
    }

    .hero-points,
    .steps-grid,
    .roles-grid,
    .stats-grid,
    .overview-metrics {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-actions,
    .compact-actions {
        grid-template-columns: repeat(3, auto);
        justify-content: flex-start;
    }

    .page-grid {
        grid-template-columns: 320px minmax(0, 1fr);
        align-items: start;
    }

    .auth-grid {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        align-items: stretch;
    }

    .single-col {
        grid-template-columns: minmax(0, 580px);
        justify-content: center;
    }

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

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

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

    .action-row {
        grid-template-columns: repeat(3, auto);
        justify-content: flex-start;
    }

    .overview-tags {
        grid-template-columns: repeat(3, max-content);
        align-content: end;
        justify-content: flex-start;
    }

    .overview-panel {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
        align-items: center;
        gap: 24px;
        padding: 24px 26px;
    }

    .sticky-action {
        position: static;
        background: none;
        padding-top: 0;
    }
}

@media (min-width: 1024px) {
    .site-shell {
        padding-inline: 24px;
    }

    .hero-panel,
    .panel-card,
    .overview-panel,
    .story-band,
    .roles-panel,
    .step-panel {
        padding: 28px;
    }

    .portal-header {
        padding: 22px 24px;
    }

    .page-grid {
        grid-template-columns: 360px minmax(0, 1fr);
    }

    .auth-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    }
}
