/* Widhura Pack Studio — local assets, native typography, one clear workflow. */
:root {
  color-scheme: light;
  --bg: #f5f2ec;
  --surface: #fff;
  --surface-2: #faf8f4;
  --ink: #1b1712;
  --ink-2: #4a4238;
  --muted: #73695d;
  --line: #e6e0d5;
  --line-strong: #d8d0c2;
  --accent: #995b0d;
  --accent-bright: #d98a24;
  --accent-soft: #fbeedc;
  --rail: #1a1611;
  --success: #286341;
  --danger: #a52a23;
  --radius: 12px;
  --font: "Segoe UI Variable Text", "Segoe UI", "Nirmala UI", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "Cascadia Mono", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font: 400 clamp(30px, 3.4vw, 43px)/1.15 var(--serif); letter-spacing: -1.2px; }
h2 { font-size: 19px; font-weight: 600; letter-spacing: -.4px; line-height: 1.35; }
h3 { font-size: 15px; font-weight: 650; }
h4 { font-size: 13px; font-weight: 650; }
p { color: var(--muted); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
::selection { background: #f1d4aa; color: var(--ink); }
.shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 31px 20px 22px; background: var(--rail); color: #c3b8a7; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; padding: 0 5px; }
.brand-mark { width: 41px; height: 43px; display: grid; align-content: center; position: relative; color: #f4e6cf; font: 32px/1 var(--serif); letter-spacing: -5px; }
.brand-mark span { color: var(--accent-bright); display: inline; position: absolute; right: 2px; bottom: 3px; }
.brand strong { display: block; color: #fff7eb; font: 600 24px/1.1 var(--serif); letter-spacing: -.7px; }
.brand small { display: block; font-size: 8px; letter-spacing: 1.45px; margin-top: 6px; color: #b5a995; }
.rail-rule { height: 1px; background: #383127; margin: 29px 6px 29px; }
.rail-label { font-size: 10px; letter-spacing: 1.6px; color: #a49680; padding: 0 15px; margin-bottom: 12px; }
.rail nav { display: grid; gap: 7px; }
.rail nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 7px; color: #baae9a; text-decoration: none; font-size: 13px; border: 1px solid transparent; }
.rail nav a:hover { background: #292219; color: #fff4e3; }
.rail nav a[aria-current="page"] { color: #ffdcab; background: #362a1b; border-color: #5a4225; }
.nav-icon { width: 18px; font-size: 20px; line-height: 1; text-align: center; color: #c49a64; }
.nav-count { margin-left: auto; font: 10px var(--mono); border-radius: 4px; padding: 2px 6px; background: #493720; color: #f8d19a; }
.rail-note { margin: auto 14px 44px; padding-top: 65px; }
.tiny-label { font-size: 9px; font-weight: 650; letter-spacing: 1.15px; }
.rail-note .tiny-label { color: #a79983; font-size: 8px; letter-spacing: 1.2px; }
.rail-note p { color: #ecdfc9; font: 24px/1.4 var(--serif); margin: 17px 0 15px; letter-spacing: -.4px; }
.rail-note-detail { display: block; color: #aa9d87; font-size: 11px; line-height: 1.8; }
.rail-bottom { display: flex; align-items: center; gap: 7px; font-size: 11px; border-top: 1px solid #383127; padding: 19px 9px 0; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #c69146; }
.rail-tag { margin-left: auto; font: 8px var(--mono); color: #c4af8f; border: 1px solid #493e2e; padding: 3px 5px; border-radius: 3px; letter-spacing: 1px; }
.workspace { min-width: 0; }
.topbar { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 45px; border-bottom: 1px solid var(--line); background: rgba(250, 248, 244, .8); }
.breadcrumb { display: flex; align-items: center; gap: 13px; font-size: 12px; color: var(--muted); }
.breadcrumb strong { font-weight: 500; color: var(--ink-2); }
.breadcrumb > span { color: #b8ad9c; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.private-label { font-size: 11px; color: var(--muted); }
.private-label::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 7px 2px 0; border-radius: 50%; background: var(--accent); }
main { max-width: 1530px; margin: 0 auto; padding: 40px 45px 20px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.eyebrow { display: block; color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: 1.65px; line-height: 1.5; margin-bottom: 12px; }
.page-heading p { font-size: 13px; margin-top: 11px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 15px; min-height: 42px; padding: 10px 17px; border: 1px solid transparent; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1.5; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s; flex-shrink: 0; }
.button > span[aria-hidden] { font-size: 17px; font-weight: 400; line-height: 1; }
.button-primary { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 2px 3px #5d3e1810; }
.button-primary:hover:not(:disabled) { background: #7e4708; border-color: #7e4708; }
.button-ink { color: #fff8ef; background: var(--ink); }
.button-ink:hover:not(:disabled) { background: #3c3022; }
.button-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink-2); }
.button-secondary:hover:not(:disabled) { background: var(--surface-2); border-color: #b8a68f; }
.button-quiet { background: transparent; color: var(--ink-2); }
.button-quiet:hover:not(:disabled) { background: #eae3d8; }
.button-small { min-height: 34px; font-size: 11px; padding: 7px 12px; gap: 8px; }
button:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 3px #1b171203; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-bottom: 24px; }
.stat-card { display: flex; flex-direction: column; padding: 22px 24px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat-card > span { color: var(--ink-2); font-size: 12px; font-weight: 500; }
.stat-card > strong { font: 400 38px/1.15 var(--serif); margin: 9px 0 10px; letter-spacing: -1px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-card > small { color: var(--muted); font-size: 10px; }
.welcome-card { display: flex; justify-content: space-between; align-items: center; overflow: hidden; min-height: 265px; padding: 32px 36px; border: 1px solid #e4d7c2; border-radius: var(--radius); background: #eee5d5; }
.welcome-copy { max-width: 410px; position: relative; z-index: 1; }
.welcome-copy h2 { font: 400 30px/1.2 var(--serif); letter-spacing: -.8px; }
.welcome-copy p { color: #685b48; font-size: 12px; max-width: 350px; margin: 13px 0 22px; line-height: 1.8; }
.format-illustration { display: flex; align-items: center; justify-content: center; margin: 0 12px 0 30px; flex-shrink: 0; }
.format-sheet { width: 120px; height: 166px; padding: 20px 16px; border: 1px solid #d7cbb6; border-radius: 4px 12px 4px 4px; background: #fcfaf5; box-shadow: 0 12px 20px #614b2210; }
.source-sheet { transform: rotate(-8deg) translateY(8px); }
.format-sheet > span { display: block; color: #8b7c66; font-size: 6px; letter-spacing: 1px; font-weight: 600; white-space: nowrap; }
.format-sheet > strong { display: block; font: 32px var(--serif); margin: 12px 0; color: #625847; }
.format-sheet i { display: block; height: 3px; width: 90%; margin-top: 7px; background: #e3dbce; }
.format-sheet i:last-of-type { width: 60%; }
.pack-sheet { transform: rotate(7deg); height: 182px; width: 134px; background: #9b601e; border-color: #885418; }
.pack-sheet > span { color: #f4d6ab; }
.pack-sheet > strong { color: #fff5e3; font-size: 34px; }
.pack-sheet i { background: #c18c4b; }
.pack-sheet small { display: block; font-size: 5px; letter-spacing: .7px; color: #f1d4ad; margin-top: 17px; }
.format-arrow { font-size: 22px; color: #a18a68; padding: 0 17px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 30px 0 15px; }
.section-heading h2 { font-size: 17px; }
.section-heading p { margin-top: 5px; font-size: 11px; }
.list-card { overflow: hidden; }
.empty-state { padding: 33px 24px; text-align: center; }
.empty-state h3 { margin-bottom: 7px; font-size: 14px; }
.empty-state p { font-size: 12px; max-width: 470px; margin: 0 auto; }
.empty-state .button { margin-top: 17px; }
.empty-icon { display: grid; place-items: center; width: 39px; height: 43px; margin: 0 auto 15px; border: 1px solid var(--line-strong); border-radius: 4px 10px 4px 4px; color: var(--accent); font: 12px var(--mono); background: var(--surface-2); }
.upload-row { display: flex; align-items: center; gap: 16px; padding: 19px 22px; }
.upload-row + .upload-row { border-top: 1px solid var(--line); }
.file-icon { display: grid; place-items: center; width: 39px; height: 43px; border: 1px solid var(--line); border-radius: 5px; flex-shrink: 0; background: var(--surface-2); color: var(--accent); font: 9px var(--mono); }
.upload-row-info { flex: 1; min-width: 0; }
.upload-row-info strong { display: block; overflow-wrap: anywhere; font-size: 12px; font-weight: 600; }
.upload-row-info p { font-size: 10px; margin-top: 4px; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 9px; font-weight: 600; white-space: nowrap; }
.badge-ready { background: #eaf2ec; color: var(--success); }
.badge-uploaded { background: #f2eee6; color: #6c6050; }
.badge-empty { background: #fff1d9; color: #895714; }
.badge-error { background: #fbece9; color: var(--danger); }
.trust-strip { display: flex; gap: 13px; padding: 21px 4px; align-items: center; }
.trust-icon { color: var(--accent); font-size: 21px; }
.trust-strip p { font-size: 11px; }
.trust-strip strong { color: var(--ink-2); font-weight: 600; }
.page-footer { margin-top: 40px; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; }
.footer-separator { color: #b6aa97; margin: 0 8px; }
.outline-tag { border: 1px solid var(--line-strong); color: var(--muted); padding: 7px 11px; border-radius: 5px; font: 10px var(--mono); white-space: nowrap; }
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 0 0 26px; list-style: none; border-bottom: 1px solid var(--line-strong); }
.workflow li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; padding: 0 0 15px; position: relative; }
.workflow li > span { font: 10px var(--mono); border: 1px solid var(--line-strong); border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; }
.workflow li[aria-current="step"] { color: var(--accent); font-weight: 600; }
.workflow li[aria-current="step"]::after { content: ""; height: 2px; background: var(--accent); position: absolute; bottom: -1px; left: 0; right: 22px; }
.workflow li[aria-current="step"] > span { background: var(--accent-soft); border-color: #d9b88b; }
.workflow li.is-complete { color: var(--success); }
.workflow li.is-complete > span { background: #edf4ef; border-color: #c5d7ca; }
.builder-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: start; gap: 25px; }
.builder-main { min-width: 0; }
.section-card { padding: 25px; margin-bottom: 22px; }
.card-heading { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 23px; }
.card-heading h2 { font-size: 17px; }
.card-heading p { font-size: 11px; margin-top: 5px; }
.step-number { display: grid; place-items: center; flex-shrink: 0; width: 29px; height: 29px; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent); border-radius: 6px; font: 10px var(--mono); }
.plain-fieldset { margin: 0; border: 0; padding: 0; min-width: 0; }
label, legend { display: block; font-size: 11px; color: var(--ink-2); font-weight: 600; margin-bottom: 7px; }
input:not([type="checkbox"]):not([type="file"]), select, textarea { display: block; width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; color: var(--ink); font-size: 12px; }
input::placeholder, textarea::placeholder { color: #887c6c; }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); }
select { padding-right: 25px; text-overflow: ellipsis; }
textarea { resize: vertical; min-height: 70px; }
.help { font-size: 10px; line-height: 1.7; }
.field .help { margin-top: 6px; }
.drop-zone { position: relative; background: var(--surface-2); border: 1px dashed #cabb9f; border-radius: 8px; padding: 26px 18px 18px; text-align: center; transition: background .15s, border-color .15s; }
.drop-zone.is-dragging { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px #d98a241a; }
.upload-symbol { display: grid; place-items: center; width: 34px; height: 37px; border: 1px solid #d8c8ae; border-radius: 5px 10px 5px 5px; margin: 0 auto 13px; font-size: 22px; line-height: 1; color: var(--accent); background: #fff; }
.drop-zone label { color: var(--accent); cursor: pointer; font-size: 13px; }
.drop-zone label span { color: var(--ink-2); font-weight: 400; }
.drop-zone input { display: block; max-width: 100%; width: 280px; margin: 11px auto; font-size: 10px; color: var(--muted); }
.drop-zone input::file-selector-button { border: 1px solid var(--line-strong); color: var(--ink-2); background: #fff; padding: 5px 9px; border-radius: 4px; margin-right: 8px; cursor: pointer; font: inherit; }
.drop-zone > p { font-size: 10px; }
.drop-zone .selected-file { margin-top: 8px; color: var(--ink-2); overflow-wrap: anywhere; }
.upload-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 16px; }
.existing-source { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 23px; }
.source-summary { display: flex; gap: 15px; justify-content: space-between; align-items: center; border: 1px solid var(--line); background: var(--surface-2); padding: 13px; margin-top: 16px; border-radius: 6px; }
.source-summary > div { min-width: 0; }
.source-summary strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.source-summary .help { display: block; margin-top: 4px; }
.operation-status { border: 1px solid #e1c59f; background: #fffbf4; border-radius: 6px; padding: 13px; margin-top: 16px; }
.operation-status > div { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 11px; }
#operation-detail { margin-left: auto; color: var(--muted); font-size: 10px; }
progress { display: block; width: 100%; height: 6px; margin-top: 12px; accent-color: var(--accent); border: 0; border-radius: 5px; overflow: hidden; background: #eee5d7; }
progress::-webkit-progress-bar { background: #eee5d7; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 5px; }
progress::-moz-progress-bar { background: var(--accent); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #e4d4bd; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.aside-note { padding: 8px 2px 21px; }
.aside-note .eyebrow { font-size: 8px; letter-spacing: 1.3px; }
.aside-note h3 { font: 400 24px/1.25 var(--serif); letter-spacing: -.5px; margin: 14px 0; }
.aside-note p { font-size: 11px; line-height: 1.9; }
.aside-divider { height: 1px; background: var(--line-strong); margin: 23px 0; }
.aside-note ol { margin: 13px 0; padding-left: 17px; font-size: 11px; color: var(--muted); }
.aside-note li { padding: 0 0 10px 3px; }
.aside-note li strong { color: var(--ink-2); font-weight: 600; }
.aside-note .help { font-size: 10px; }
.compact-note { padding-top: 21px; border-top: 1px solid var(--line-strong); }
.compact-note .tiny-label { color: var(--accent); font-size: 8px; }
.compact-note p { margin-top: 10px; }
.table-summary { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 10px; margin: 10px 0; }
.inline-callout { padding: 14px 16px; border-radius: 6px; border: 1px solid; margin-top: 16px; font-size: 11px; }
.inline-callout > strong { font-size: 12px; }
.inline-callout p { margin-top: 6px; color: inherit; line-height: 1.8; }
.warning-callout { color: #7c4d13; border-color: #e4c896; background: #fff7e8; }
.error-callout { color: var(--danger); border-color: #e6b8ae; background: #fff2ef; overflow-wrap: anywhere; }
.subsection-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 22px; margin: 24px 0 17px; }
.subsection-heading h3 { font-size: 12px; }
.subsection-heading > span { color: var(--muted); font-size: 9px; text-align: right; }
.language-grid { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); gap: 15px; align-items: center; margin-bottom: 10px; }
.language-group { background: var(--surface-2); border: 1px solid var(--line); padding: 15px; border-radius: 7px; }
.language-group .tiny-label { display: block; color: var(--accent); font-size: 8px; margin-bottom: 16px; }
.language-group label { margin-top: 10px; font-size: 10px; }
.direction-arrow { color: var(--accent); font-size: 21px; text-align: center; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.span-two { grid-column: 1 / -1; }
.required-label, .optional-label { display: inline; font-size: 9px; font-weight: 400; color: var(--muted); margin-left: 5px; }
.required-label { color: var(--accent); }
.meaning-fieldset { padding: 0; margin: 22px 0 0; border: 0; min-width: 0; }
.meaning-fieldset legend { float: left; width: 100%; }
.meaning-fieldset > p { clear: both; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 7px; }
.checkbox-option { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 10px; border: 1px solid var(--line); background: #fff; border-radius: 5px; font: 10px/1.7 var(--mono); cursor: pointer; min-width: 0; }
.checkbox-option:has(input:checked) { background: #fdf7ee; border-color: #dcc5a7; }
.checkbox-option:has(input:disabled) { background: #f5f3ef; color: #908778; cursor: default; }
.checkbox-option input { margin: 2px 0 0; width: 14px; height: 14px; accent-color: var(--accent); flex-shrink: 0; }
.checkbox-option > span { overflow-wrap: anywhere; }
.checkbox-option small { font: 9px var(--font); display: block; color: var(--muted); }
.preview-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 13px; }
.preview-content { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; min-width: 0; }
.empty-preview { text-align: center; padding: 30px 15px; font-size: 11px; background: var(--surface-2); }
.table-scroll { overflow: auto; max-height: 380px; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 11px; }
caption { text-align: left; padding: 12px; font-size: 10px; color: var(--muted); }
th { position: sticky; top: 0; z-index: 1; padding: 11px 14px; background: #f2eee6; border-bottom: 1px solid var(--line-strong); font: 10px var(--mono); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); min-width: 110px; max-width: 350px; overflow-wrap: anywhere; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr:nth-child(even) td { background: #fcfbf8; }
.cell-value { max-height: 130px; overflow: auto; white-space: pre-wrap; }
.cell-null { color: #918473; font: italic 10px var(--mono); }
.build-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.build-footer > div { min-width: 0; }
.build-footer strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.build-footer p { margin-top: 5px; }
.result-card { padding: 27px; background: #f5f8f2; border-color: #c9d8bf; }
.result-card .eyebrow { color: var(--success); }
.result-card > p { font-size: 12px; margin-top: 8px; overflow-wrap: anywhere; }
.result-stats { display: flex; flex-wrap: wrap; gap: 24px; padding: 18px 0 8px; }
.result-stat strong { font: 25px var(--serif); color: var(--ink); }
.result-stat span { font-size: 10px; display: block; color: var(--muted); }
.result-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.pack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pack-grid > .empty-state { grid-column: 1 / -1; padding: 64px 24px; }
.pack-card { padding: 25px; min-width: 0; }
.pack-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.pack-monogram { font: 10px var(--mono); color: var(--accent); border: 1px solid #e2d0b8; padding: 7px 9px; border-radius: 5px; background: var(--accent-soft); }
.pack-card h2 { font-size: 17px; overflow-wrap: anywhere; }
.pack-direction { color: var(--accent); font-size: 11px; margin: 9px 0; overflow-wrap: anywhere; }
.pack-counts { display: flex; flex-wrap: wrap; gap: 8px 15px; color: var(--muted); font-size: 11px; margin-top: 17px; }
.pack-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 17px; margin-top: 20px; }
.pack-card-footer time { font-size: 10px; color: var(--muted); }
.pack-details { margin-top: 16px; font-size: 10px; color: var(--muted); }
.pack-details summary { cursor: pointer; color: var(--ink-2); }
.pack-details dl { margin: 12px 0 0; }
.pack-details dt { font-weight: 600; color: var(--ink-2); margin-top: 9px; }
.pack-details dd { margin: 3px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.pack-details .checksum { font: 9px/1.7 var(--mono); }
.library-footnote { margin-top: 23px; font-size: 11px; }
.notice { padding: 13px 16px; border: 1px solid #d6c8b1; border-radius: 7px; background: #fffaf0; font-size: 12px; color: var(--ink-2); margin-bottom: 24px; overflow-wrap: anywhere; }
.notice.is-error { border-color: #e2b6ad; background: #fff2ef; color: var(--danger); }
.notice.is-success { border-color: #c5d8c6; background: #edf5ed; color: var(--success); }
.auth-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); align-items: center; gap: 65px; min-height: calc(100vh - 220px); padding: 40px 14px; }
.auth-intro h1 { font-size: clamp(36px, 4.5vw, 59px); line-height: 1.12; letter-spacing: -1.7px; }
.auth-intro > p { font-size: 13px; line-height: 1.9; margin-top: 24px; max-width: 370px; }
.auth-intro .eyebrow { margin-bottom: 23px; }
.auth-features { display: flex; align-items: center; gap: 11px; font-size: 10px; color: var(--ink-2); margin-top: 24px; }
.auth-features > span[aria-hidden] { color: var(--accent); }
.edition-label { display: block; margin-top: 65px; font-size: 8px; letter-spacing: 2px; color: var(--muted); }
.auth-card { padding: 32px; }
.auth-card h2 { font: 400 26px/1.25 var(--serif); letter-spacing: -.7px; margin-bottom: 11px; }
.auth-card > p { font-size: 12px; line-height: 1.8; }
.auth-card > label { margin-top: 29px; }
.auth-card .button { width: 100%; margin-top: 20px; justify-content: space-between; }
.auth-card .step-number { margin-bottom: 18px; }
.auth-footnote { display: flex; align-items: center; gap: 8px; padding-top: 22px; margin-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.mini-lock { display: inline-block; width: 9px; height: 8px; border: 1px solid var(--muted); border-radius: 2px; position: relative; flex-shrink: 0; }
.mini-lock::before { content: ""; width: 5px; height: 5px; border: 1px solid var(--muted); border-radius: 4px 4px 0 0; position: absolute; top: -5px; left: 1px; }
.config-key { display: block; font: 11px/1.7 var(--mono); overflow-wrap: anywhere; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 12px; margin: 18px 0; }
.auth-card p.help { font-size: 10px; }
.field-error { margin-top: 8px; color: var(--danger); font-size: 11px; }
.connection-panel { min-height: 60vh; padding: 80px 15px; text-align: center; }
.connection-panel h1 { font-size: 34px; margin-top: 18px; }
.connection-panel p { margin: 18px auto 24px; max-width: 500px; }
.connection-panel .spinner { width: 28px; height: 28px; }
.skip-link { position: fixed; z-index: 10; top: 10px; left: 10px; transform: translateY(-150%); padding: 10px 15px; background: #fff; color: var(--ink); border-radius: 5px; }
.skip-link:focus { transform: none; }
.noscript-message { position: fixed; z-index: 20; inset: 15px 15px auto; padding: 20px; background: #fff3df; color: #6d4210; border: 1px solid #caab7b; }
@media (min-width: 1550px) { main { padding-top: 48px; } .welcome-card { min-height: 285px; } }
@media (max-width: 1250px) {
  .shell { grid-template-columns: 214px minmax(0, 1fr); }
  .rail { padding-inline: 15px; }
  main { padding: 32px 30px 20px; }
  .topbar { padding-inline: 30px; }
  .builder-grid { grid-template-columns: minmax(0, 1fr) 195px; gap: 20px; }
  .section-card { padding: 21px; }
  .welcome-card { padding: 28px; }
  .format-sheet { width: 96px; height: 146px; padding: 17px 12px; }
  .pack-sheet { width: 110px; height: 162px; }
  .format-arrow { padding-inline: 12px; }
  .format-illustration { margin-right: 0; margin-left: 20px; }
  .auth-panel { gap: 35px; padding-inline: 0; }
  .auth-card { padding: 26px; }
}
@media (max-width: 1040px) {
  .builder-grid { grid-template-columns: minmax(0, 1fr); }
  .builder-aside { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; }
  .aside-note { padding-top: 0; }
  .compact-note { padding: 0 0 0 24px; border-top: 0; border-left: 1px solid var(--line-strong); }
  .aside-note h3 br { display: none; }
  .format-illustration { transform: scale(.88); transform-origin: right center; margin-left: -5px; }
  .welcome-copy { max-width: 290px; }
  .welcome-copy h2 { font-size: 26px; }
  .welcome-copy .eyebrow { font-size: 8px; }
  .auth-panel { grid-template-columns: 1fr; min-height: auto; max-width: 530px; margin: 0 auto; }
  .auth-intro h1 br { display: none; }
  .auth-intro h1 { font-size: 45px; }
  .edition-label { display: none; }
  .auth-intro > p { max-width: none; }
}
@media (max-width: 820px) {
  .shell { display: block; }
  .rail { position: static; height: auto; padding: 17px 24px 12px; }
  .brand { padding: 0; }
  .brand strong { font-size: 23px; }
  .brand small { font-size: 7px; }
  .brand-mark { height: 35px; font-size: 29px; }
  .rail-rule, .rail-label, .rail-note, .rail-bottom { display: none; }
  .rail nav { display: flex; gap: 8px; margin-top: 17px; }
  .rail nav a { flex: 1; justify-content: center; font-size: 11px; padding: 9px 10px; gap: 8px; }
  .nav-count { margin-left: 2px; }
  .nav-icon { font-size: 17px; }
  .topbar { min-height: 57px; padding: 11px 25px; }
  main { padding: 28px 25px 18px; }
  .page-heading { margin-bottom: 25px; }
  .auth-panel { padding-top: 20px; }
  .welcome-copy { max-width: 350px; }
  .stat-card { padding: 18px; }
  .stat-card > small { font-size: 9px; }
}
@media (max-width: 600px) {
  .rail { padding: 15px 17px 10px; }
  .rail nav { gap: 3px; }
  .rail nav a { padding: 9px 7px; font-size: 10px; }
  .nav-count { display: none; }
  .topbar { padding-inline: 18px; }
  .private-label { display: none; }
  main { padding: 25px 17px 17px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 19px; }
  .page-heading h1 { font-size: 33px; }
  .page-heading p { font-size: 12px; }
  .stats-grid { gap: 8px; }
  .stat-card { padding: 13px 10px; border-radius: 8px; }
  .stat-card > span { font-size: 10px; min-height: 30px; }
  .stat-card > strong { font-size: 31px; margin: 6px 0; }
  .stat-card > small { line-height: 1.6; }
  .welcome-card { display: block; padding: 26px; position: relative; }
  .welcome-copy { max-width: none; }
  .welcome-copy p { max-width: none; }
  .format-illustration { display: none; }
  .section-heading p { font-size: 10px; }
  .section-heading h2 { font-size: 16px; }
  .upload-row { padding: 16px 13px; gap: 10px; flex-wrap: wrap; }
  .upload-row-info { flex-basis: calc(100% - 52px); }
  .upload-row .badge { margin-left: 49px; }
  .upload-row > .button { margin-left: auto; }
  .page-footer { font-size: 9px; gap: 12px; flex-wrap: wrap; }
  .workflow { gap: 8px; }
  .workflow li { font-size: 10px; gap: 7px; align-items: flex-start; }
  .workflow li > span { width: 23px; height: 23px; font-size: 9px; flex-shrink: 0; }
  .workflow li[aria-current="step"]::after { right: 0; }
  .section-card { padding: 19px 16px; border-radius: 9px; }
  .card-heading { gap: 10px; }
  .card-heading h2 { font-size: 16px; }
  .card-heading p { font-size: 10px; }
  .upload-actions, .build-footer { flex-direction: column; align-items: stretch; gap: 12px; }
  .upload-actions .button, .build-footer .button { width: 100%; }
  .source-summary { flex-wrap: wrap; }
  .language-grid { gap: 8px; grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr); }
  .language-group { padding: 10px; }
  .language-group .tiny-label { font-size: 7px; letter-spacing: .5px; }
  .direction-arrow { font-size: 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .subsection-heading { gap: 8px; }
  .subsection-heading > span { font-size: 8px; }
  .checkbox-grid { gap: 6px; }
  .checkbox-option { padding: 9px 7px; font-size: 9px; gap: 6px; }
  .preview-toolbar { flex-wrap: wrap; }
  .builder-aside { grid-template-columns: 1fr; gap: 10px; }
  .compact-note { border-left: 0; border-top: 1px solid var(--line-strong); padding: 20px 0 0; }
  .pack-grid { grid-template-columns: 1fr; }
  .pack-card { padding: 20px; }
  .auth-intro h1 { font-size: 39px; }
  .auth-intro > p { margin-top: 17px; font-size: 12px; }
  .auth-panel { gap: 26px; padding-block: 10px; }
  .auth-card { padding: 24px; }
  .auth-card h2 { font-size: 25px; }
  .auth-intro .eyebrow { margin-bottom: 16px; }
  .connection-panel { padding: 55px 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
