:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #050505;
    color: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: #050505;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.app-shell {
    width: min(100% - 2rem, 70rem);
    min-height: 100vh;
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
}

.topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    min-height: 6rem;
    margin-bottom: clamp(2.5rem, 8vw, 6rem);
    padding: .65rem .8rem .65rem .65rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .045);
    color: rgba(255, 255, 255, .58);
    font-size: .9rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.brand {
    display: block;
    justify-self: start;
    width: clamp(12rem, 25vw, 16rem);
    height: 4.5rem;
    overflow: hidden;
    border-radius: .55rem;
}

.brand img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}

.topbar-add {
    grid-column: 2;
    justify-self: center;
}

.topbar-logout {
    grid-column: 3;
    justify-self: end;
}

.text-link {
    color: inherit;
    text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
    color: #ffffff;
}

.nav-button {
    display: grid;
    min-height: 2.9rem;
    place-items: center;
    padding: 0 1.15rem;
    border-radius: .8rem;
    background: #ffffff;
    color: #050505;
    font-weight: 800;
    text-decoration: none;
}

.nav-button:hover,
.nav-button:focus-visible {
    background: #d9d9d9;
}

.breadcrumb {
    display: inline-block;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, .58);
    font-size: .9rem;
    text-decoration: none;
}

.breadcrumb:hover,
.breadcrumb:focus-visible {
    color: #ffffff;
}

.panel {
    width: 100%;
}

.section-header,
.dialog-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.login-card {
    width: min(100%, 28rem);
    padding: clamp(2rem, 7vw, 3.5rem);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .055);
    box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, .55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.eyebrow {
    margin: 0 0 .75rem;
    color: rgba(255, 255, 255, .58);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .18em;
}

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

.help-text {
    margin: 1rem 0 2rem;
    color: rgba(255, 255, 255, .58);
    line-height: 1.6;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1rem;
}

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

.choice-card {
    position: relative;
    display: flex;
    min-height: 13rem;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .055);
    color: #ffffff;
    text-decoration: none;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.choice-card:hover,
.choice-card:focus-visible {
    border-color: rgba(255, 255, 255, .65);
    background: rgba(255, 255, 255, .09);
    transform: translateY(-2px);
    outline: none;
}

.choice-kicker {
    color: rgba(255, 255, 255, .48);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.furnace-code,
.option-label {
    font-size: clamp(2.75rem, 9vw, 5rem);
    line-height: 1;
}

.option-label {
    font-size: clamp(2rem, 7vw, 3.5rem);
}

.choice-arrow {
    position: absolute;
    right: 1.5rem;
    bottom: 1.35rem;
    color: rgba(255, 255, 255, .58);
    font-size: 1.4rem;
}

form {
    display: grid;
    gap: .9rem;
}

input,
select,
button,
.button-link {
    width: 100%;
    min-height: 3.4rem;
    border-radius: .8rem;
    font: inherit;
}

.small-button {
    width: auto;
    min-width: 9rem;
    min-height: 2.9rem;
    flex: 0 0 auto;
}

.icon-button {
    width: 2.75rem;
    min-height: 2.75rem;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .05);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 400;
}

.glass-dialog {
    width: min(calc(100% - 2rem), 28rem);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 1.25rem;
    background: rgba(18, 18, 18, .94);
    color: #ffffff;
    box-shadow: 0 2rem 7rem rgba(0, 0, 0, .8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.glass-dialog::backdrop {
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(5px);
}

.glass-dialog form {
    padding: 2rem;
}

.glass-dialog h2 {
    margin: 0 0 2rem;
    font-size: 2rem;
}

.glass-dialog label {
    color: rgba(255, 255, 255, .58);
    font-size: .8rem;
    font-weight: 700;
}

input,
select {
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 0 1rem;
    outline: none;
    background: rgba(255, 255, 255, .04);
    color: #ffffff;
    font-size: 1rem;
}

input {
    font-size: 1.35rem;
    letter-spacing: .3em;
    text-align: center;
}

select option {
    background: #151515;
    color: #ffffff;
}

input:focus,
select:focus {
    border-color: rgba(255, 255, 255, .72);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .08);
}

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

.form-grid label {
    display: grid;
    gap: .55rem;
}

.form-grid input {
    letter-spacing: normal;
    text-align: left;
}

.rodding-fieldset {
    display: grid;
    gap: 1rem;
    margin: .65rem 0 0;
    padding: 1.25rem 0 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.rodding-fieldset legend {
    padding: 0 .7rem 0 0;
    color: #ffffff;
    font-size: .9rem;
    font-weight: 800;
}

.anchor-positions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.anchor-positions label {
    display: grid;
    gap: .55rem;
}

.anchor-positions input {
    letter-spacing: normal;
    text-align: left;
}

.module-list {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, .035);
}

.module-list-header,
.module-row {
    display: grid;
    grid-template-columns: 3rem minmax(7rem, 1.3fr) repeat(4, minmax(4.5rem, 1fr)) 4.25rem;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
}

.module-list-header {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .48);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.module-list-header span:last-child {
    text-align: center;
}

.module-row + .module-row {
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.module-row span {
    color: rgba(255, 255, 255, .58);
    font-size: .9rem;
}

.module-row strong {
    color: #ffffff;
    font-size: 1.05rem;
}

.module-check {
    position: relative;
    display: grid;
    width: 2.3rem;
    height: 2.3rem;
    place-items: center;
    cursor: pointer;
}

.module-check input {
    position: absolute;
    width: 1px;
    min-height: 1px;
    margin: 0;
    opacity: 0;
}

.module-check span {
    display: grid;
    width: 2.3rem;
    height: 2.3rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: .65rem;
    color: transparent;
    font-size: 1rem;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.module-check input:checked + span {
    border-color: #ffffff;
    background: #ffffff;
    color: #050505;
}

.module-check input:focus-visible + span {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .1);
}

.module-check input:disabled + span {
    opacity: .55;
    cursor: wait;
}

.module-row.is-complete {
    background: rgba(255, 255, 255, .045);
}

.module-row.is-complete > span strong {
    opacity: .58;
    text-decoration: line-through;
}

.module-actions {
    display: flex;
    justify-content: center;
    gap: .3rem;
}

.module-icon-button {
    width: 1.9rem;
    min-height: 1.9rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: .5rem;
    background: rgba(255, 255, 255, .05);
    color: #ffffff;
    font-size: .95rem;
    font-weight: 400;
}

.module-icon-button:hover,
.module-icon-button:focus-visible {
    border-color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .12);
}

.delete-module-button:hover,
.delete-module-button:focus-visible {
    background: #ffffff;
    color: #050505;
}

.module-rodding {
    grid-column: 2 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.module-rodding > strong {
    width: 100%;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.empty-state {
    padding: 2.5rem 1.25rem;
    color: rgba(255, 255, 255, .48);
    text-align: center;
}

.completion-summary {
    margin: -1rem 0 1rem;
    color: rgba(255, 255, 255, .58);
    text-align: right;
}

.completion-summary strong {
    color: #ffffff;
}

.clear-completed-button {
    width: auto;
    min-height: 1.8rem;
    margin-left: .55rem;
    padding: 0 .7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .055);
    color: var(--text);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.clear-completed-button:hover,
.clear-completed-button:focus-visible {
    background: #ffffff;
    color: #050505;
}

.clear-completed-button:disabled {
    background: transparent;
    color: var(--faint);
    opacity: .55;
}

.inline-message {
    min-height: 1.25rem;
    margin: -0.65rem 0 .65rem;
    color: #ffffff;
    font-size: .85rem;
    text-align: right;
}

button,
.button-link {
    display: grid;
    place-items: center;
    border: 0;
    padding: 0 1rem;
    background: #ffffff;
    color: #050505;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

button:hover,
.button-link:hover {
    background: #d9d9d9;
}

button:disabled {
    cursor: wait;
    opacity: .7;
}

.message {
    min-height: 1.4rem;
    margin: .1rem 0 0;
    color: rgba(255, 255, 255, .58);
    font-size: .9rem;
    text-align: center;
}

.message.error {
    color: #ffffff;
}

.message.success {
    color: #ffffff;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 38rem) {
    .section-header {
        align-items: stretch;
        flex-direction: column;
    }

    .small-button {
        min-width: 0;
        width: auto;
    }

    .topbar {
        min-height: 4.5rem;
        padding: .5rem .65rem .5rem .5rem;
    }

    .brand {
        width: 6.5rem;
        height: 3.1rem;
    }

    .small-button,
    .nav-button {
        min-height: 2.6rem;
        padding: 0 .75rem;
        font-size: .78rem;
    }

    .choice-grid--two {
        grid-template-columns: 1fr;
    }

    .choice-card {
        min-height: 10.5rem;
    }

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

    .anchor-positions {
        grid-template-columns: 1fr;
    }

    .module-list-header {
        display: none;
    }

    .module-row {
        grid-template-columns: 3rem repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .module-check {
        grid-row: 1 / span 3;
        align-self: start;
    }

    .module-rodding {
        grid-column: 2 / -1;
    }

    .module-actions {
        grid-column: 2 / -1;
        justify-content: flex-start;
    }

    .module-row span::before {
        content: attr(data-label);
        display: block;
        margin-bottom: .25rem;
        color: rgba(255, 255, 255, .42);
        font-size: .65rem;
        font-weight: 800;
        letter-spacing: .1em;
        text-transform: uppercase;
    }
}

/* Industrial hex atmosphere */
:root {
    --accent-red: #ed1c2e;
    --accent-blue: #2364aa;
    --red-glow: rgba(237, 28, 46, .16);
    --blue-glow: rgba(35, 100, 170, .18);
}

body {
    isolation: isolate;
    background: #050505;
}

body::before {
    z-index: -2;
    opacity: .72;
    background-color: transparent;
    background-image:
        linear-gradient(30deg, rgba(255, 255, 255, .045) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, .045) 87.5%, rgba(255, 255, 255, .045)),
        linear-gradient(150deg, rgba(255, 255, 255, .045) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, .045) 87.5%, rgba(255, 255, 255, .045)),
        linear-gradient(30deg, rgba(255, 255, 255, .045) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, .045) 87.5%, rgba(255, 255, 255, .045)),
        linear-gradient(150deg, rgba(255, 255, 255, .045) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, .045) 87.5%, rgba(255, 255, 255, .045)),
        linear-gradient(60deg, rgba(255, 255, 255, .025) 25%, transparent 25.5%, transparent 75%, rgba(255, 255, 255, .025) 75%, rgba(255, 255, 255, .025)),
        linear-gradient(60deg, rgba(255, 255, 255, .025) 25%, transparent 25.5%, transparent 75%, rgba(255, 255, 255, .025) 75%, rgba(255, 255, 255, .025));
    background-position: 0 0, 0 0, 48px 84px, 48px 84px, 0 0, 48px 84px;
    background-size: 96px 168px;
    content: "";
    mask-image: radial-gradient(ellipse at 50% 28%, #000 12%, rgba(0, 0, 0, .82) 48%, transparent 88%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 28%, #000 12%, rgba(0, 0, 0, .82) 48%, transparent 88%);
}

body::after {
    position: fixed;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 8% 8%, rgba(237, 28, 46, .2), transparent 25rem),
        radial-gradient(circle at 92% 12%, rgba(35, 100, 170, .22), transparent 28rem),
        radial-gradient(circle at 28% 92%, rgba(35, 100, 170, .09), transparent 24rem),
        radial-gradient(circle at 78% 88%, rgba(237, 28, 46, .08), transparent 22rem);
    content: "";
    pointer-events: none;
}

.topbar {
    overflow: hidden;
    border-color: rgba(255, 255, 255, .15);
    background: linear-gradient(115deg, rgba(15, 15, 15, .9), rgba(5, 5, 5, .82));
    box-shadow:
        -.8rem 1.4rem 4rem rgba(237, 28, 46, .075),
        .8rem 1.4rem 4rem rgba(35, 100, 170, .09),
        inset 0 1px 0 rgba(255, 255, 255, .07);
}

.topbar::after {
    position: absolute;
    right: 12%;
    bottom: 0;
    left: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(237, 28, 46, .75), rgba(255, 255, 255, .28), rgba(35, 100, 170, .75), transparent);
    content: "";
    opacity: .8;
}

h1 {
    text-shadow: -.75rem .75rem 3rem rgba(237, 28, 46, .1), .75rem .75rem 3rem rgba(35, 100, 170, .12);
}

.login-card,
.glass-dialog {
    box-shadow:
        -1.5rem 2rem 6rem rgba(237, 28, 46, .1),
        1.5rem 2rem 6rem rgba(35, 100, 170, .12),
        inset 0 1px 0 rgba(255, 255, 255, .07);
}

.choice-card {
    isolation: isolate;
}

.choice-card::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 0 0, rgba(237, 28, 46, .13), transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(35, 100, 170, .15), transparent 45%);
    content: "";
    opacity: .15;
    transition: opacity 220ms ease;
}

.choice-card:hover::before,
.choice-card:focus-visible::before {
    opacity: 1;
}

.choice-card:hover,
.choice-card:focus-visible {
    border-color: rgba(255, 255, 255, .42);
    box-shadow:
        -.9rem 1.5rem 3.8rem rgba(237, 28, 46, .09),
        .9rem 1.5rem 3.8rem rgba(35, 100, 170, .11),
        inset 0 1px 0 rgba(255, 255, 255, .08);
}

.choice-arrow {
    box-shadow: -.25rem .35rem 1.25rem rgba(237, 28, 46, .08), .25rem .35rem 1.25rem rgba(35, 100, 170, .1);
}

.module-list {
    border-color: rgba(255, 255, 255, .13);
    background: linear-gradient(145deg, rgba(17, 17, 17, .8), rgba(7, 7, 7, .76));
    box-shadow:
        -1rem 2rem 5rem rgba(237, 28, 46, .07),
        1rem 2rem 5rem rgba(35, 100, 170, .085),
        inset 0 1px 0 rgba(255, 255, 255, .045);
}

.module-row {
    background: linear-gradient(105deg, rgba(237, 28, 46, .018), rgba(255, 255, 255, .026) 45%, rgba(35, 100, 170, .022));
}

.module-row:hover {
    border-color: rgba(255, 255, 255, .16);
    background: linear-gradient(105deg, rgba(237, 28, 46, .055), rgba(255, 255, 255, .045) 45%, rgba(35, 100, 170, .065));
    box-shadow: inset 3px 0 0 rgba(237, 28, 46, .42), inset -3px 0 0 rgba(35, 100, 170, .48);
    transform: translateY(-1px);
}

.module-row.is-complete {
    background: linear-gradient(105deg, rgba(237, 28, 46, .035), rgba(255, 255, 255, .06) 45%, rgba(35, 100, 170, .04));
}

.module-check input:checked + span {
    box-shadow: -.25rem .35rem 1rem rgba(237, 28, 46, .14), .25rem .35rem 1rem rgba(35, 100, 170, .16);
}

.module-icon-button:hover,
.module-icon-button:focus-visible {
    border-color: rgba(255, 255, 255, .45);
    box-shadow: -.2rem .35rem 1rem rgba(237, 28, 46, .09), .2rem .35rem 1rem rgba(35, 100, 170, .11);
}

.completion-summary,
.trim-notice {
    background: linear-gradient(110deg, rgba(237, 28, 46, .06), rgba(255, 255, 255, .045) 45%, rgba(35, 100, 170, .07));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.notes-card {
    border-color: rgba(255, 255, 255, .14);
    background: linear-gradient(135deg, rgba(20, 20, 20, .83), rgba(8, 8, 8, .78));
    box-shadow:
        -1rem 1.7rem 4.5rem rgba(237, 28, 46, .065),
        1rem 1.7rem 4.5rem rgba(35, 100, 170, .075),
        inset 0 1px 0 rgba(255, 255, 255, .05);
}

textarea:focus,
input:focus,
select:focus {
    border-color: rgba(255, 255, 255, .52);
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, .055),
        -.35rem .45rem 1.7rem rgba(237, 28, 46, .055),
        .35rem .45rem 1.7rem rgba(35, 100, 170, .065);
}

.topbar-add,
.nav-button,
.notes-save-button {
    position: relative;
    overflow: hidden;
}

.topbar-add::after,
.nav-button::after,
.notes-save-button::after {
    position: absolute;
    top: -70%;
    left: -35%;
    width: 28%;
    height: 240%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
    content: "";
    opacity: 0;
    transform: rotate(18deg);
    transition: left 420ms ease, opacity 180ms ease;
}

.topbar-add:hover::after,
.nav-button:hover::after,
.notes-save-button:hover::after {
    left: 108%;
    opacity: .55;
}

@media (max-width: 48rem) {
    body::before {
        opacity: .48;
        background-size: 72px 126px;
        background-position: 0 0, 0 0, 36px 63px, 36px 63px, 0 0, 36px 63px;
    }

    body::after {
        background:
            radial-gradient(circle at 0 5%, rgba(237, 28, 46, .16), transparent 18rem),
            radial-gradient(circle at 100% 12%, rgba(35, 100, 170, .18), transparent 20rem);
    }
}

/* Modern monochrome refresh */
:root {
    --page: #050505;
    --surface: rgba(15, 15, 15, .78);
    --surface-raised: rgba(24, 24, 24, .72);
    --line: rgba(255, 255, 255, .11);
    --line-strong: rgba(255, 255, 255, .24);
    --muted: rgba(255, 255, 255, .56);
    --faint: rgba(255, 255, 255, .36);
    --text: #f7f7f7;
    --shadow: 0 1.5rem 5rem rgba(0, 0, 0, .38);
    font-family: "Segoe UI Variable", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    position: relative;
    background:
        radial-gradient(circle at 50% -15%, rgba(255, 255, 255, .075), transparent 32rem),
        var(--page);
    color: var(--text);
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: 4rem 4rem;
    content: "";
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .7), transparent 85%);
}

.app-shell {
    width: min(100% - 2.5rem, 76rem);
    padding: 1.25rem 0 5rem;
}

.topbar {
    position: sticky;
    z-index: 20;
    top: 1rem;
    min-height: 5.5rem;
    margin-bottom: clamp(3.5rem, 8vw, 6.5rem);
    padding: .55rem .75rem .55rem .6rem;
    border-color: var(--line);
    border-radius: 1.35rem;
    background: rgba(8, 8, 8, .78);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .045);
    color: var(--muted);
    backdrop-filter: blur(28px) saturate(120%);
    -webkit-backdrop-filter: blur(28px) saturate(120%);
}

.brand {
    width: clamp(11rem, 21vw, 14.5rem);
    height: 4.15rem;
    border-radius: .95rem;
}

.topbar-add,
.nav-button {
    min-height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 999px;
    box-shadow: 0 .35rem 1.25rem rgba(255, 255, 255, .08);
    font-size: .82rem;
    letter-spacing: .015em;
    transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.topbar-add:hover,
.topbar-add:focus-visible,
.nav-button:hover,
.nav-button:focus-visible {
    background: #ffffff;
    box-shadow: 0 .55rem 1.5rem rgba(255, 255, 255, .12);
    transform: translateY(-1px);
}

.topbar-logout {
    padding: .65rem .85rem;
    border-radius: 999px;
    transition: color 150ms ease, background 150ms ease;
}

.topbar-logout:hover,
.topbar-logout:focus-visible {
    background: rgba(255, 255, 255, .07);
}

.panel {
    animation: modern-enter 360ms ease-out both;
}

.eyebrow {
    margin-bottom: .9rem;
    color: var(--faint);
    font-size: .69rem;
    letter-spacing: .22em;
}

h1 {
    max-width: 16ch;
    color: var(--text);
    font-size: clamp(2.5rem, 6vw, 4.4rem);
    font-weight: 650;
    letter-spacing: -.055em;
    line-height: .96;
}

.help-text {
    max-width: 38rem;
    margin: 1.2rem 0 2.4rem;
    color: var(--muted);
    font-size: 1rem;
}

.breadcrumb {
    margin-bottom: 2.5rem;
    padding: .55rem .8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .025);
    color: var(--muted);
    font-size: .78rem;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.breadcrumb:hover,
.breadcrumb:focus-visible {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, .06);
}

.login-card {
    border-color: var(--line);
    border-radius: 2rem;
    background: var(--surface);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.choice-grid {
    gap: 1.25rem;
}

.choice-card {
    min-height: 12rem;
    padding: 1.4rem;
    border-color: var(--line);
    border-radius: 1.55rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 1rem 3rem rgba(0, 0, 0, .16);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.choice-card:hover,
.choice-card:focus-visible {
    border-color: rgba(255, 255, 255, .35);
    background: linear-gradient(145deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .04));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1.5rem 3.5rem rgba(0, 0, 0, .28);
    transform: translateY(-4px);
}

.choice-kicker {
    color: var(--faint);
    letter-spacing: .2em;
}

.furnace-code,
.option-label {
    font-weight: 560;
    letter-spacing: -.055em;
}

.choice-arrow {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    right: 1.25rem;
    bottom: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .035);
    font-size: 1rem;
}

input,
select,
button,
.button-link {
    border-radius: .95rem;
}

input,
select {
    min-height: 3.45rem;
    border-color: var(--line);
    background: rgba(255, 255, 255, .035);
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

input:hover,
select:hover {
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .05);
}

input:focus,
select:focus {
    border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .055);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .065);
}

.glass-dialog {
    width: min(calc(100% - 2rem), 35rem);
    border-color: var(--line-strong);
    border-radius: 1.75rem;
    background: rgba(10, 10, 10, .96);
    box-shadow: 0 2.5rem 8rem rgba(0, 0, 0, .72), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.glass-dialog::backdrop {
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(10px);
}

.glass-dialog form {
    padding: clamp(1.5rem, 5vw, 2.5rem);
}

.glass-dialog h2 {
    margin-bottom: 2.25rem;
    font-size: 2.25rem;
    font-weight: 620;
    letter-spacing: -.045em;
}

.glass-dialog label {
    color: var(--muted);
    font-size: .74rem;
    letter-spacing: .02em;
}

.icon-button {
    border-color: var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .035);
}

.rodding-fieldset {
    margin-top: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, .025);
}

.rodding-fieldset legend {
    padding: 0 .65rem;
    font-size: .78rem;
    letter-spacing: .04em;
}

.completion-summary {
    display: flex;
    width: max-content;
    align-items: baseline;
    gap: .15rem;
    margin: -4.15rem 0 1.4rem auto;
    padding: .65rem .9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .035);
    color: var(--muted);
    font-size: .8rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.completion-summary strong {
    font-size: 1rem;
}

.inline-message {
    margin-bottom: .75rem;
}

.module-list {
    padding: .45rem;
    border-color: var(--line);
    border-radius: 1.5rem;
    background: rgba(12, 12, 12, .68);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .03);
    backdrop-filter: blur(20px);
}

.module-list-header {
    padding: .9rem 1.1rem;
    border-bottom: 0;
    color: var(--faint);
    font-size: .64rem;
    letter-spacing: .13em;
}

.module-row {
    margin-top: .35rem;
    padding: 1.1rem;
    border: 1px solid transparent;
    border-radius: 1.05rem;
    background: rgba(255, 255, 255, .026);
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.module-row + .module-row {
    border-top-color: transparent;
}

.module-row:hover {
    border-color: var(--line);
    background: rgba(255, 255, 255, .045);
}

.module-row.is-complete {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .055);
}

.module-row span {
    color: var(--muted);
    font-size: .82rem;
}

.module-row strong {
    font-size: 1rem;
    font-weight: 620;
}

.module-check,
.module-check span {
    width: 2.1rem;
    height: 2.1rem;
}

.module-check span {
    border-color: var(--line-strong);
    border-radius: .7rem;
    background: rgba(255, 255, 255, .025);
}

.module-actions {
    gap: .4rem;
}

.module-icon-button {
    width: 2rem;
    min-height: 2rem;
    border-color: var(--line);
    border-radius: .65rem;
    background: rgba(255, 255, 255, .035);
}

.module-rodding {
    margin-top: .1rem;
    border-color: rgba(255, 255, 255, .075);
}

.module-rodding > strong {
    color: var(--faint);
    font-size: .66rem;
    letter-spacing: .14em;
}

.empty-state {
    margin: .35rem;
    border: 1px dashed var(--line-strong);
    border-radius: 1rem;
    color: var(--faint);
}

button,
.button-link {
    transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

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

@keyframes modern-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 48rem) {
    .app-shell {
        width: min(100% - 1.25rem, 76rem);
    }

    .topbar {
        top: .6rem;
        margin-bottom: 3.5rem;
        border-radius: 1.1rem;
    }

    .brand {
        width: 7.25rem;
        height: 3.15rem;
    }

    h1 {
        font-size: clamp(2.5rem, 13vw, 3.6rem);
    }

    .completion-summary {
        margin: -1rem 0 1rem;
    }

    .module-row {
        border-color: rgba(255, 255, 255, .06);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.notes-card {
    margin-top: 1.5rem;
    padding: clamp(1.25rem, 4vw, 1.75rem);
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: var(--surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 1.25rem 3.5rem rgba(0, 0, 0, .2);
    backdrop-filter: blur(20px);
}

.notes-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.notes-heading h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 620;
    letter-spacing: -.03em;
}

.notes-heading > span {
    padding: .45rem .65rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--faint);
    font-size: .68rem;
}

textarea {
    width: 100%;
    min-height: 9rem;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1rem;
    outline: none;
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    font: inherit;
    line-height: 1.55;
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

textarea:hover {
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .045);
}

textarea:focus {
    border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .05);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .065);
}

.notes-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notes-footer .message {
    margin: 0;
    text-align: left;
}

.notes-save-button {
    width: auto;
    min-width: 8.5rem;
    min-height: 2.8rem;
    flex: 0 0 auto;
    border-radius: 999px;
}

.trim-notice {
    display: flex;
    align-items: center;
    gap: .55rem;
    width: max-content;
    max-width: 100%;
    margin: -1rem 0 1.35rem;
    padding: .7rem .9rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, .055);
    color: var(--muted);
    font-size: .82rem;
}

.trim-notice span {
    color: var(--faint);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.trim-notice strong {
    color: #ffffff;
}

.trim-notice + .completion-summary {
    margin: 0 0 1.4rem auto;
}

@media (max-width: 38rem) {
    .notes-heading,
    .notes-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .notes-heading > span,
    .notes-save-button {
        width: max-content;
    }

    .trim-notice {
        align-items: flex-start;
        flex-wrap: wrap;
        border-radius: 1rem;
    }
}

/* Final monochrome gradient layer */
body {
    background:
        linear-gradient(145deg, #151515 0%, #0b0b0b 38%, #050505 72%, #020202 100%);
}

body::before {
    display: none;
}

body::after {
    background:
        radial-gradient(circle at 12% 2%, rgba(255, 255, 255, .035), transparent 28rem),
        radial-gradient(circle at 88% 14%, rgba(255, 255, 255, .025), transparent 32rem);
}

.topbar {
    box-shadow: 0 1.4rem 4rem rgba(0, 0, 0, .4), 0 0 2.5rem rgba(255, 255, 255, .025), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.topbar::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), rgba(255, 255, 255, .32), rgba(255, 255, 255, .08), transparent);
}

h1 {
    text-shadow: 0 1.2rem 3.5rem rgba(255, 255, 255, .035);
}

.login-card,
.glass-dialog {
    box-shadow: 0 2rem 7rem rgba(0, 0, 0, .68), 0 0 3rem rgba(255, 255, 255, .03), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.choice-card::before {
    background:
        radial-gradient(circle at 0 0, rgba(255, 255, 255, .1), transparent 46%),
        radial-gradient(circle at 100% 100%, rgba(255, 255, 255, .065), transparent 46%);
}

.choice-card:hover,
.choice-card:focus-visible {
    box-shadow: 0 1.6rem 4.5rem rgba(0, 0, 0, .48), 0 0 2.5rem rgba(255, 255, 255, .045), inset 0 1px 0 rgba(255, 255, 255, .09);
}

.choice-arrow {
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .4), 0 0 1.2rem rgba(255, 255, 255, .04);
}

.module-list {
    box-shadow: 0 2rem 5.5rem rgba(0, 0, 0, .55), 0 0 3rem rgba(255, 255, 255, .025), inset 0 1px 0 rgba(255, 255, 255, .045);
}

.module-row,
.module-row.is-complete {
    background: linear-gradient(105deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .045) 45%, rgba(255, 255, 255, .02));
}

.module-row:hover {
    background: linear-gradient(105deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .075) 45%, rgba(255, 255, 255, .04));
    box-shadow: inset 3px 0 0 rgba(255, 255, 255, .38), inset -3px 0 0 rgba(255, 255, 255, .16);
}

.module-check input:checked + span,
.module-icon-button:hover,
.module-icon-button:focus-visible {
    box-shadow: 0 .4rem 1.25rem rgba(0, 0, 0, .4), 0 0 1.2rem rgba(255, 255, 255, .08);
}

.completion-summary,
.trim-notice {
    background: linear-gradient(110deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .075) 48%, rgba(255, 255, 255, .035));
}

.notes-card {
    box-shadow: 0 1.8rem 5rem rgba(0, 0, 0, .5), 0 0 2.5rem rgba(255, 255, 255, .025), inset 0 1px 0 rgba(255, 255, 255, .05);
}

textarea:focus,
input:focus,
select:focus {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .055), 0 .6rem 2rem rgba(0, 0, 0, .3), 0 0 1.5rem rgba(255, 255, 255, .035);
}

@media (max-width: 48rem) {
    body::after {
        background: radial-gradient(circle at 50% 0, rgba(255, 255, 255, .028), transparent 24rem);
    }
}
