:root {
    --ink: #162e32;
    --muted: #6f7d80;
    --teal: #166c61;
    --teal-soft: #e7f1ed;
    --canvas: #f5f6f3;
    --line: #e4e9e4;
    --white: #fff;
    --radius: 15px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: 'Segoe UI', Aptos, Arial, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, a:focus-visible { outline: 3px solid #64b1a1; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.8rem, 2.5vw, 2.5rem); line-height: 1.2; font-weight: 650; letter-spacing: -.06rem; margin-bottom: .65rem; }
h2 { font-size: 1.2rem; line-height: 1.35; letter-spacing: -.02rem; margin-bottom: .4rem; }
h3 { font-size: 1rem; margin-bottom: .5rem; }
p { margin-bottom: 1rem; }
.muted, .fine { color: var(--muted); }
.fine { font-size: .8rem; margin-top: 1.5rem; }
.eyebrow { color: var(--teal); font-size: .68rem; font-weight: 750; letter-spacing: .12rem; display: block; margin-bottom: 1rem; }
.eyebrow.light { color: #a0cec1; }
.button { display: inline-flex; gap: 1rem; align-items: center; justify-content: center; padding: .82rem 1.25rem; border-radius: 8px; border: 1px solid transparent; font-weight: 650; font-size: .85rem; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-1px); }
.primary { background: var(--teal); color: white; }
.primary:hover { background: #0f574e; }
.secondary { background: white; border-color: #d2ddd6; color: var(--ink); }
.secondary:hover { background: #f2f6f2; }
.white { background: #fff; color: #154d45; }
.danger { color: #a14439; background: #fff5f1; border-color: #efd5cc; }
.full { width: 100%; }
.brand { display: flex; align-items: center; gap: .8rem; color: white; font-size: 1.65rem; font-weight: 700; letter-spacing: -.07rem; }
.brand-mark { display: inline-flex; position: relative; align-items: center; justify-content: center; width: 38px; height: 38px; background: #d7edc5; color: #1b5547; border-radius: 11px; font-size: 1.8rem; font-weight: 700; line-height: 1; }
.brand-mark span { font-size: .8rem; margin-top: -.8rem; margin-left: -.1rem; }
.brand.dark { color: var(--ink); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 245px; background: #143439; color: #bfd0cd; padding: 2rem 1.25rem 1rem; display: flex; flex-direction: column; z-index: 10; }
.sidebar .brand { padding-left: .65rem; margin-bottom: 3.2rem; }
.workspace-label { color: #6f9697; font-size: .59rem; letter-spacing: .13rem; padding: 0 .8rem; margin-bottom: 1rem; font-weight: 700; }
.sidebar nav { display: grid; gap: .45rem; }
.nav-link { display: flex; gap: .9rem; align-items: center; padding: .85rem .9rem; font-size: .84rem; border-radius: 8px; transition: background .2s; }
.nav-link:hover { background: #20464a; }
.nav-link.active { background: #2a5552; color: #fff; }
.nav-icon { font-size: 1.3rem; line-height: 1; width: 22px; text-align: center; color: #a1c0b8; }
.nav-link.active .nav-icon { color: #c9eaa6; }
.sidebar-note { margin-top: auto; border: 1px solid #365256; border-radius: 10px; padding: 1rem; font-size: .75rem; }
.sidebar-note strong { color: #e4e9df; font-size: .77rem; display: block; margin: .55rem 0 .25rem; }
.sidebar-note p { margin: 0; color: #a1b7b3; }
.signal { display: block; width: 20px; height: 5px; background: #ccebb2; border-radius: 4px; }
.sidebar-bottom { display: flex; align-items: center; gap: .6rem; border-top: 1px solid #365256; padding-top: 1.2rem; margin-top: 1.2rem; }
.sidebar-bottom strong { display: block; font-size: .74rem; color: white; }
.sidebar-bottom small { display: block; font-size: .62rem; max-width: 135px; overflow-wrap: anywhere; }
.avatar { flex: 0 0 32px; height: 32px; background: #355153; border-radius: 50%; text-align: center; line-height: 32px; color: #c8e5cb; }
.icon-button { padding: .2rem .45rem; border: none; background: transparent; font-size: 1.45rem; color: inherit; line-height: 1.2; }
.main { margin-left: 245px; padding: 0 3rem; max-width: 1760px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; height: 80px; border-bottom: 1px solid var(--line); font-size: .65rem; color: var(--muted); letter-spacing: .06rem; }
.topbar > div { display: flex; align-items: center; gap: .5rem; letter-spacing: 0; font-size: .73rem; }
.status-dot { display: inline-block; background: #448d6e; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-dot.warning { background: #cf8f45; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin: 2.2rem 0 1.8rem; }
.page-heading .eyebrow { margin-bottom: .6rem; }
.page-heading p { color: var(--muted); margin-bottom: 0; font-size: .88rem; }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; padding: 2.5rem 3rem; background: #204e47; border-radius: var(--radius); color: white; overflow: hidden; position: relative; min-height: 300px; }
.hero h2 { font-size: 2.2rem; font-weight: 550; line-height: 1.15; letter-spacing: -.07rem; margin-bottom: 1rem; }
.hero p { font-size: .85rem; color: #c1d6cd; margin-bottom: 1.5rem; }
.hero .eyebrow { font-size: .61rem; }
.hero-link { font-size: .82rem; margin-left: 1.1rem; color: #dbe8de; display: inline-block; }
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; }
.orbit { position: absolute; width: 330px; height: 330px; border: 1px solid #497368; border-radius: 50%; }
.orbit-two { width: 460px; height: 460px; border-color: #3c655b; }
.mail-card { position: relative; width: 220px; height: 212px; background: #f4f4e7; border-radius: 12px; transform: rotate(-7deg); box-shadow: 0 18px 55px #0d302744; color: #35594b; padding: 1rem 1.1rem; }
.mail-card-top { display: flex; justify-content: space-between; align-items: center; font-size: .48rem; letter-spacing: .08rem; font-weight: 700; }
.mini-logo { font-size: 1.4rem; letter-spacing: -.07rem; }
.envelope { border-radius: 7px; height: 82px; width: 130px; background: #d7e4b7; margin: 1.2rem auto; position: relative; overflow: hidden; border: 1px solid #bdd0a0; }
.envelope:before { content: ''; position: absolute; width: 95px; height: 95px; background: #e9efd8; transform: rotate(45deg); top: -63px; left: 16px; border: 1px solid #bdceac; }
.mail-card-foot { text-align: center; font-size: .56rem; }
.mail-card-foot .status-dot { width: 5px; height: 5px; margin-right: 4px; }
.floating-chip { background: #cee7b7; color: #31574d; position: absolute; bottom: 5px; right: 0; padding: .65rem 1rem; border-radius: 7px; font-size: .75rem; font-weight: 650; transform: rotate(3deg); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.6rem 0; }
.stats article { display: flex; align-items: center; gap: .85rem; background: white; border: 1px solid var(--line); border-radius: 11px; padding: 1.1rem; }
.stats small { display: block; color: var(--muted); font-size: .69rem; }
.stats strong { font-size: 1.7rem; line-height: 1.2; font-weight: 600; display: block; margin-top: .35rem; }
.stat-icon { width: 41px; height: 41px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 1.45rem; }
.teal { background: #e6f0e9; color: #387b6a; }
.blue { background: #eaf0f6; color: #4a7896; }
.green { background: #eef3df; color: #69834b; }
.orange { background: #fcf1e6; color: #b07c46; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.65rem; }
.panel-heading p { margin: 0; color: var(--muted); font-size: .78rem; }
.panel-heading h2 { font-size: 1.15rem; }
label.search-label { margin: 0; }
.search-label input { width: 255px; background: #fafbf8; margin: 0; font-size: .76rem; padding: .65rem .8rem; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
.jobs-table th { background: #fafbf9; font-size: .58rem; letter-spacing: .06rem; font-weight: 600; color: var(--muted); padding: .8rem 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
.jobs-table th:first-child, .jobs-table td:first-child { padding-left: 1.65rem; }
.jobs-table td { padding: 1.2rem 1rem; border-bottom: 1px solid #edf0e9; vertical-align: middle; }
.jobs-table tr:last-child td { border-bottom: none; }
.mailbox-cell { display: flex; gap: .8rem; align-items: center; }
.mailbox-cell strong { display: block; font-size: .77rem; max-width: 195px; overflow-wrap: anywhere; }
.mailbox-cell div > span { display: block; font-size: .7rem; color: var(--muted); max-width: 200px; overflow-wrap: anywhere; }
.customer-icon { width: 33px; height: 33px; flex-shrink: 0; border: 1px solid #e4e7df; border-radius: 8px; text-align: center; line-height: 31px; background: #f8f9f3; font-size: .75rem; }
.type-label { font-size: .74rem; white-space: nowrap; }
.progress-top { display: flex; justify-content: space-between; font-size: .63rem; min-width: 130px; gap: .7rem; }
progress { appearance: none; border: 0; width: 100%; height: 5px; display: block; border-radius: 5px; margin: .35rem 0; overflow: hidden; background: #e9eee7; }
progress::-webkit-progress-bar { background: #e9eee7; border-radius: 5px; }
progress::-webkit-progress-value { background: #4f9280; border-radius: 5px; }
progress::-moz-progress-bar { background: #4f9280; border-radius: 5px; }
.progress-detail { font-size: .61rem; color: var(--muted); white-space: nowrap; }
.badge { display: inline-flex; gap: .4rem; align-items: center; font-size: .63rem; padding: .25rem .6rem; background: #f0f2ef; border-radius: 5px; white-space: nowrap; color: #738179; }
.badge i { height: 5px; width: 5px; border-radius: 50%; background: currentColor; }
.badge.running { background: #eaf1f8; color: #3e7195; }
.badge.completed { background: #eaf3e9; color: #528260; }
.badge.failed, .badge.paused { background: #fff0dc; color: #9f7035; }
.badge.cancelled { background: #f6eae6; color: #a16a5c; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; min-width: 100px; }
.text-button { background: none; border: 0; color: #6f7d79; padding: .2rem 0; font-size: .65rem; text-decoration: underline; text-underline-offset: 3px; }
.download-button { font-size: .65rem; border: 1px solid #d8e3d8; padding: .25rem .5rem; border-radius: 5px; color: var(--teal); white-space: nowrap; }
.panel-foot { border-top: 1px solid var(--line); padding: .8rem 1.65rem; color: var(--muted); font-size: .65rem; }
.empty { text-align: center; padding: 2.5rem 1rem; }
.empty > span { display: inline-flex; background: var(--teal-soft); color: var(--teal); font-size: 2rem; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px; margin-bottom: 1rem; }
.empty p { font-size: .83rem; color: var(--muted); }
.no-results { text-align: center; font-size: .85rem; color: var(--muted); }
.main-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem 0; color: #8b9590; font-size: .66rem; }
.notice { border: 1px solid #eadab9; background: #fff8e9; padding: 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .85rem; overflow-wrap: anywhere; }
.notice.error, .is-error { color: #a24439; }
.notice.error { background: #fff3ef; border-color: #f0d5ce; }
.notice.success { background: #eef7ec; border-color: #d7e7d1; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(230px, 1fr); gap: 2rem; align-items: start; }
.transfer-form { padding: 2rem; }
label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 1.1rem; }
input, select { display: block; width: 100%; margin-top: .45rem; border: 1px solid #dce3dc; border-radius: 7px; background: white; color: var(--ink); padding: .8rem .85rem; font-size: .87rem; line-height: 1.4; }
input:focus, select:focus { outline: 2px solid #b1d4c3; outline-offset: 1px; border-color: #8eb7a2; }
input::placeholder { color: #9aa49d; }
select { appearance: auto; padding-right: .8rem; }
label small { display: block; color: var(--muted); font-weight: 400; font-size: .73rem; margin-top: .35rem; }
.field-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1rem; }
.section-title { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 1.3rem; }
.section-title p { font-size: .78rem; color: var(--muted); margin-bottom: 0; }
.section-title h2 { font-size: 1.05rem; }
.number { width: 29px; height: 29px; display: inline-flex; align-items: center; justify-content: center; background: #eaf1e6; color: #658563; border-radius: 8px; font-size: .8rem; flex-shrink: 0; }
.spaced { border-top: 1px solid var(--line); padding-top: 1.6rem; margin-top: 1.7rem; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .76rem; font-weight: 400; margin-top: 1.5rem; }
.check input { flex: 0 0 17px; width: 17px; height: 17px; margin-top: .2rem; accent-color: var(--teal); }
.form-actions { border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: 1.4rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-actions > span { font-size: .68rem; color: var(--muted); max-width: 150px; }
.form-message, .connection-result { font-size: .8rem; margin: .75rem 0 0; }
.connection-result { color: var(--teal); }
.aside-info { padding: 1rem .75rem; color: var(--muted); font-size: .85rem; }
.aside-info h2, .aside-info h3 { color: var(--ink); }
.aside-symbol { background: #e1ebd7; color: #5f8158; border-radius: 13px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; margin-bottom: 1.4rem; }
.checklist { padding: 0; list-style: none; font-size: .8rem; }
.checklist li { margin-bottom: .8rem; }
.checklist li:before { content: '✓'; color: #5f8b67; margin-right: .7rem; }
.aside-divider { height: 1px; background: var(--line); margin: 1.7rem 0; }
.optional { color: var(--muted); font-weight: 400; }
.file-drop { border: 1px dashed #abc2b0; border-radius: 10px; background: #f8faf4; padding: 1.3rem; text-align: center; cursor: pointer; }
.file-drop > span, .file-drop > strong { display: block; }
.file-drop input { background: transparent; border: 0; font-size: .73rem; padding: .65rem 0 0; }
.upload-symbol { color: var(--teal); font-size: 2rem; line-height: 1.3; }
#file-caption { font-size: .72rem; color: var(--muted); margin-top: .3rem; overflow-wrap: anywhere; }
.upload-status { position: fixed; z-index: 90; right: 1.5rem; bottom: 1.5rem; width: min(440px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow-y: auto; padding: 1.35rem 1.5rem; border: 1px solid #b9d2c8; border-radius: var(--radius); background: #fff; box-shadow: 0 12px 45px #162e322b; font-size: .8rem; }
.upload-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.upload-kicker { display: block; color: var(--teal); font-size: .62rem; font-weight: 700; letter-spacing: .1rem; }
.upload-heading h2 { font-size: 1rem; margin: .25rem 0 0; }
#upload-percent { flex-shrink: 0; color: var(--teal); font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.upload-filename { overflow-wrap: anywhere; color: var(--muted); font-size: .72rem; margin: .6rem 0 .85rem; }
.upload-status progress { height: 14px; border-radius: 7px; margin: .5rem 0 .7rem; }
.upload-status progress::-webkit-progress-value { background: var(--teal); }
.upload-status progress::-moz-progress-bar { background: var(--teal); }
.upload-details { display: flex; justify-content: space-between; gap: .25rem 1rem; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
#upload-label { font-weight: 600; }
#upload-speed, #upload-remaining { color: var(--muted); font-size: .72rem; }
#upload-remaining { margin: .3rem 0 .85rem; }
#upload-phase { margin: 0; font-size: .78rem; font-weight: 600; overflow-wrap: anywhere; }
#upload-phase::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: .45rem; border-radius: 50%; background: var(--teal); animation: upload-pulse 1.6s ease-in-out infinite; }
.upload-status .upload-note { margin: .65rem 0 0; padding-top: .65rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.upload-status[data-state="error"] { border-color: #e0b4ab; }
.upload-status[data-state="error"] #upload-phase { color: #a24439; }
.upload-status[data-state="error"] #upload-phase::before { background: #a24439; animation: none; }
.upload-status[data-state="retrying"] #upload-phase { color: #926422; }
#upload-close { margin-top: .65rem; }
@keyframes upload-pulse { 50% { opacity: .35; } }
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1rem; }
.help-card { padding: 1.8rem; }
.help-card .number { margin-bottom: 1rem; }
.help-card p { color: var(--muted); font-size: .85rem; }
.help-card p:last-child { margin-bottom: 0; }
#toast { position: fixed; right: 2rem; top: 1rem; z-index: 30; background: white; box-shadow: 0 5px 35px #183b3929; border: 1px solid var(--line); border-radius: 10px; max-width: 450px; padding: 1rem 1.3rem; font-size: .85rem; }
dialog { border: 1px solid var(--line); border-radius: 16px; padding: 1.7rem; width: min(700px, calc(100% - 2rem)); max-height: 88vh; color: var(--ink); box-shadow: 0 20px 90px #0d2b3140; }
dialog::backdrop { background: #102f3466; backdrop-filter: blur(3px); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.dialog-top h2 { margin: 0; }
dialog p { font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
dialog h3 { margin-top: 1rem; }
.detail-table th, .detail-table td { font-size: .78rem; border-bottom: 1px solid var(--line); padding: .6rem; }
.detail-table small { display: block; color: var(--muted); }
.checksum { background: #f3f6ef; border-radius: 8px; padding: .8rem; font-size: .7rem; margin: 1rem 0; }
.checksum code { display: block; overflow-wrap: anywhere; margin-top: .4rem; }
.dialog-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.resolve-form { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1rem; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-story { background: #1b4641; color: #f9faf1; padding: 3rem 4rem; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.story-main { margin: auto 0; padding: 4rem 0; max-width: 500px; }
.story-main h1 { font-size: clamp(3rem, 5.6vw, 5.3rem); font-weight: 500; line-height: 1.08; letter-spacing: -.2rem; margin: 1.5rem 0; }
.story-main p { color: #b8d0c7; max-width: 350px; }
.story-footer { color: #8caf9f; font-size: .75rem; }
.route-art { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; font-size: .65rem; }
.route-art span { padding: .7rem .8rem; border: 1px solid #52776b; border-radius: 6px; }
.route-art b { color: #b8d8a7; }
.login-form-wrap { display: flex; justify-content: center; align-items: center; padding: 3rem; }
.login-card { width: 100%; max-width: 385px; }
.login-card h2 { font-size: 1.8rem; margin-bottom: .8rem; }
.login-card > p { font-size: .9rem; }
.login-card form { margin-top: 2rem; }
.setup-body { padding: 3rem 1rem; }
.setup-card { max-width: 680px; padding: 2.5rem; margin: 0 auto; }
.setup-card .brand { margin-bottom: 2rem; }
.setup-card h1 { font-size: 2rem; }
.requirements { list-style: none; padding: 0; margin: 1.5rem 0; }
.requirements li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: .35rem 0; font-size: .8rem; }
.requirements b { color: var(--teal); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 1700px) { .main { padding-left: 4rem; padding-right: 4rem; } }
@media (max-width: 1250px) {
    .sidebar { width: 220px; }
    .main { margin-left: 220px; padding: 0 1.6rem; }
    .hero { padding: 2rem; }
    .stats { gap: .7rem; }
    .stats article { padding: 1rem .7rem; }
    .stat-icon { width: 32px; height: 36px; }
    .stats small { font-size: .63rem; }
    .form-layout { gap: 1rem; }
    .transfer-form { padding: 1.5rem; }
    .jobs-table td, .jobs-table th { padding-left: .7rem; padding-right: .7rem; }
    .customer-icon { display: none; }
    .hero-link { display: block; margin: .8rem 0 0; }
}
@media (max-width: 950px) {
    .sidebar { width: 195px; padding-left: .8rem; padding-right: .8rem; }
    .main { margin-left: 195px; }
    .nav-link { font-size: .76rem; gap: .55rem; }
    .hero h2 { font-size: 1.8rem; }
    .hero { grid-template-columns: 1.4fr 1fr; }
    .mail-card { width: 170px; height: 185px; }
    .envelope { width: 110px; height: 65px; }
    .floating-chip { right: -1rem; bottom: 0; font-size: .6rem; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .form-layout { grid-template-columns: 1fr; }
    .aside-info { padding: 1rem; }
    .page-heading > .button { white-space: nowrap; }
    .panel-heading { align-items: flex-start; flex-direction: column; }
    .search-label, .search-label input { width: 100%; }
    .login-story { padding: 2.5rem; }
    .login-form-wrap { padding: 2rem; }
}
@media (max-width: 700px) {
    .upload-status { right: 1rem; bottom: 1rem; padding: 1rem; }
    .sidebar { position: relative; width: 100%; padding: 1rem; }
    .sidebar .brand { margin: 0 0 1rem; padding: 0; font-size: 1.35rem; }
    .sidebar nav { display: flex; gap: .3rem; overflow-x: auto; padding-bottom: .1rem; }
    .nav-link { white-space: nowrap; padding: .55rem .65rem; }
    .nav-icon { font-size: 1rem; width: auto; }
    .workspace-label, .sidebar-note, .sidebar-bottom { display: none; }
    .sidebar-bottom { display: flex; position: absolute; right: 1rem; top: .9rem; margin: 0; padding: 0; border: 0; }
    .sidebar-bottom .avatar, .sidebar-bottom > div { display: none; }
    .main { margin: 0; padding: 0 1rem; }
    .topbar { height: 53px; font-size: .55rem; }
    .topbar > div { font-size: .65rem; }
    .page-heading { align-items: flex-start; flex-direction: column; margin: 1.5rem 0; gap: 1rem; }
    .page-heading h1 { font-size: 1.8rem; }
    .hero { grid-template-columns: 1fr; padding: 1.7rem; }
    .hero-art { display: none; }
    .hero h2 { font-size: 2rem; }
    .hero-link { display: inline-block; margin: 0 0 0 .8rem; font-size: .75rem; }
    .hero .button { padding: .75rem .9rem; }
    .stats { margin: 1rem 0; }
    .stats article { gap: .65rem; }
    .stats strong { font-size: 1.5rem; }
    .panel-heading { padding: 1.2rem; }
    .panel-foot { padding: .8rem 1rem; }
    .main-footer { flex-direction: column; gap: .3rem; }
    .field-row, .help-grid { grid-template-columns: 1fr; gap: 0; }
    .help-card { margin-bottom: 1rem; padding: 1.3rem; }
    .login-layout { grid-template-columns: 1fr; }
    .login-story { padding: 1.5rem; min-height: 210px; }
    .story-main { padding: 1.5rem 0 0; }
    .story-main h1 { font-size: 2.4rem; letter-spacing: -.07rem; margin: 0; }
    .story-main h1 br { display: none; }
    .story-main h1 br:after { content: ' '; }
    .story-main h1 { max-width: 330px; }
    .story-main p, .story-main .eyebrow, .story-footer, .route-art { display: none; }
    .login-form-wrap { padding: 2rem 1.5rem; }
    .login-card h2 { font-size: 1.5rem; }
    .setup-card { padding: 1.5rem; }
    #toast { right: 1rem; left: 1rem; top: .7rem; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    #upload-phase::before { animation: none; }
    html { scroll-behavior: auto; }
    *, *:before, *:after { transition: none !important; }
}
