:root {
  --ink: #292c28;
  --muted: #6b7268;
  --blue: #7b5d2b;
  --blue-deep: #61481f;
  --sky: #f3eddf;
  --gold: #dcc59a;
  --paper: #fff;
  --ground: #f4f5f2;
  --line: #e3e6de;
  --red: #b42338;
  --green: #246a50;
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--ground);
  font-synthesis: none;
  color-scheme: light;
}
* { box-sizing: border-box }
body { margin: 0; font-size: 14px; line-height: 1.65 }
::selection { background: #e8d9bb }
button, input, select, textarea { font: inherit }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent }
button { cursor: pointer }
button:disabled { cursor: wait; opacity: .55 }
button:focus-visible, a:focus-visible { outline: 3px solid #ae8b4d; outline-offset: 3px }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(123, 93, 43, .12);
}
[hidden] { display: none !important }
a { color: var(--blue) }
h1, h2, h3, p { margin-top: 0 }
h1 { font-size: 32px; line-height: 1.4; letter-spacing: -.7px; margin-bottom: 14px }
h2 { font-size: 18px; line-height: 1.5; margin-bottom: 12px }
h3 { font-size: 16px }
p { margin-bottom: 12px }
small, .muted { color: var(--muted); font-size: 12px; font-weight: 400 }
svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round }
.skip-link { position: fixed; top: 8px; left: 16px; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; background: var(--paper); border-radius: 6px; z-index: 30 }
.skip-link:focus { width: auto; height: auto; overflow: visible; clip-path: none; padding: 10px 16px; border: 1px solid var(--blue) }
.topbar { background: var(--paper); border-bottom: 1px solid var(--line) }
.topbar-inner { max-width: 1200px; min-height: 80px; padding: 16px 24px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex-shrink: 0 }
.brand-symbol, .auth-symbol { display: grid; place-items: center; width: 42px; height: 42px; background: var(--ink); color: var(--gold); border-radius: 12px; flex-shrink: 0 }
.brand-symbol svg, .auth-symbol svg { width: 25px; height: 25px }
.brand-copy { display: flex; align-items: center; gap: 16px }
.brand-copy strong { font-size: 22px; font-weight: 700; letter-spacing: .06em }
.brand-copy > span { font-size: 12px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 16px }
.topbar-actions { display: flex; align-items: center; gap: 24px; min-width: 0 }
.admin-entry { color: var(--muted); font-size: 12px; text-decoration: none; white-space: nowrap }
.admin-entry:hover { color: var(--blue) }
.secondary.identity-button { max-width: 180px; overflow: hidden; text-overflow: ellipsis; border-color: #d8c6a2; background: #faf8f3; color: var(--blue) }
main { max-width: 1200px; margin: auto; padding: 0 24px 64px; min-height: calc(100svh - 164px) }
.main-nav { display: flex; gap: 8px; margin: 24px 0; padding: 5px; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #eceedf40 }
.main-nav button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 22px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; transition: color .15s, background .15s }
.main-nav svg { width: 17px; height: 17px }
.main-nav button:hover { color: var(--ink) }
.main-nav button.selected { border-color: var(--line); background: var(--paper); color: var(--ink); box-shadow: 0 2px 4px #292c2808 }
.intro { position: relative; isolation: isolate; overflow: hidden; min-height: 320px; padding: 36px 44px; background: #000; color: #fff; border-radius: 18px }
.student-galaxy { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none }
.intro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #141711f0, #1417119c 43%, #14171100 76%); pointer-events: none }
.intro-copy { max-width: 540px }
.intro-copy h1 { font-size: 40px; line-height: 1.4; letter-spacing: .02em; font-weight: 600; margin-bottom: 16px }
.intro-copy p { color: #c1c6bb; line-height: 1.85; font-size: 13px; margin-bottom: 22px }
.intro-actions { display: flex; align-items: center; gap: 22px }
.intro-actions .primary { display: inline-flex; align-items: center; gap: 20px; background: var(--gold); color: #30291c; border-color: var(--gold); font-size: 13px }
.intro-actions .primary:hover { background: #eed9ae; border-color: #eed9ae }
.intro-actions svg { width: 16px; height: 16px }
.intro-link.quiet { padding: 8px 0; color: #e0dbc9; font-size: 12px; font-weight: 500; min-height: 40px }
.intro-link.quiet:hover { background: none; color: #fff; text-decoration: underline }
.intro-signature { position: absolute; right: 32px; bottom: 28px; display: flex; align-items: center; gap: 10px; color: #baab8b; font-size: 11px }
.intro-signature svg { width: 18px; height: 18px }
.process-strip { list-style: none; margin: 0 0 30px; padding: 22px 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); gap: 20px }
.process-strip li { display: flex; align-items: center; gap: 14px; min-width: 0 }
.process-strip li:not(:first-child) { border-left: 1px solid var(--line); padding-left: 26px }
.process-strip b { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border: 1px solid #d9cfbb; border-radius: 50%; color: var(--blue); font-size: 12px; font-weight: 600 }
.process-strip strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.5 }
.process-strip span { display: block; font-size: 11px; color: var(--muted); margin-top: 4px }
.catalog-heading { scroll-margin-top: 24px }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px }
.catalog-heading h2 { margin-bottom: 6px; font-size: 21px; letter-spacing: -.3px }
.catalog-heading p { margin-bottom: 0; font-size: 12px }
.service-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid #d8ddd2; border-radius: 10px; background: var(--paper); color: var(--muted); width: 300px; max-width: 100% }
.service-search svg { width: 17px; height: 17px }
.service-search input { min-width: 0; width: 100%; padding: 11px 0; min-height: 42px; border: 0; background: none; color: var(--ink); font-size: 12px }
.service-search input:focus-visible { border: 0; box-shadow: none }
.service-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(123, 93, 43, .12) }
.category-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px }
.category-chip { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--muted); min-height: 40px; padding: 8px 14px; font-size: 12px; transition: background .15s, color .15s }
.category-chip svg { width: 16px; height: 16px }
.category-chip .category-count { font-size: 11px; min-width: 18px; text-align: center; opacity: .75 }
.category-chip:hover { background: #e9ede3; color: var(--ink) }
.category-chip[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600 }
.catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px }
.service-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; transition: border-color .15s, box-shadow .15s }
.service-card:not(.disabled):hover, .service-card:focus-within { border-color: #c0ac85; box-shadow: 0 6px 18px #292c2808 }
.service-card .card-body { display: flex; flex-direction: column; padding: 24px 24px 20px; flex: 1 }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px }
.service-icon { display: grid; place-items: center; width: 46px; height: 46px; background: #eef2e9; color: #56674b; border-radius: 13px }
.service-icon svg { width: 26px; height: 26px; stroke-width: 1.5 }
.service-icon.punch { background: #edf3ef; color: #52725f }
.service-icon.course { background: #f6f0e5; color: #886e40 }
.service-icon.other { background: #eeedf5; color: #6d648a }
.availability { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); background: #f2f3ee; border-radius: 5px; padding: 4px 8px; white-space: nowrap }
.availability.ready { color: var(--green); background: #eef5ec }
.availability.ready::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor }
.service-card .card-category { color: var(--muted); font-size: 11px; margin-bottom: 6px }
.service-card h2 { font-size: 19px; line-height: 1.55; margin-bottom: 10px; overflow-wrap: anywhere }
.card-description { color: var(--muted); font-size: 12px; line-height: 1.85; margin-bottom: 18px }
.card-note { font-size: 10px; margin-top: auto }
.card-bottom { padding: 17px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); background: #fcfcf9 }
.service-card .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; font-weight: 600; font-size: 24px; line-height: 1.4; letter-spacing: -.6px; overflow-wrap: anywhere }
.service-card .price small { font-size: 11px; letter-spacing: 0 }
.card-bottom button { padding: 9px 13px; min-height: 38px; font-size: 12px }
.service-card.disabled { background: #fafbf8; border-style: dashed }
.service-card.disabled .service-icon { color: #89929e; background: #eff1f4 }
.service-card.disabled button { cursor: not-allowed; opacity: 1; color: var(--muted); background: #f0f2eb }
.service-card.disabled .price { color: var(--muted) }
.primary, .secondary, .quiet { min-height: 42px; border: 1px solid transparent; border-radius: 7px; padding: 10px 18px; line-height: 1.5; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s, color .15s }
.primary { background: var(--ink); color: #fff }
.primary:hover { background: #424737 }
.secondary { background: var(--paper); border-color: var(--line); color: var(--ink) }
.secondary:hover { border-color: #c0ac85; color: var(--blue); background: #faf8f3 }
.quiet { background: transparent; color: var(--blue); padding: 8px }
.quiet:hover { background: var(--sky) }
button:not(:disabled):active { transform: translateY(1px) }
.wide { width: 100% }
.notice, .inline-notice { padding: 12px 16px; background: var(--sky); color: var(--blue); border: 1px solid #e7dcc4; border-radius: 8px; margin: 16px 0; font-size: 12px; overflow-wrap: anywhere }
#demo-banner { background: #eeefe9; color: #626a59; border-color: var(--line) }
.notice.warning { background: #fff4dd; color: #775015 }
.back { padding: 0; margin: 0 0 18px; min-height: 32px; font-size: 12px }
.back span { margin-right: 6px }
.order-heading, .page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px }
.order-heading > div, .page-heading > div { min-width: 0 }
.order-heading p { font-size: 12px; color: var(--muted); margin-bottom: 6px }
.order-heading h1, .page-heading h1 { font-size: 28px; margin: 0; overflow-wrap: anywhere }
.page-heading p { color: var(--muted); font-size: 13px; margin: 9px 0 0 }
.page-heading button { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0 }
.page-heading button svg { width: 16px; height: 16px }
.step-label { font-size: 12px; color: var(--blue); background: var(--sky); border-radius: 5px; padding: 5px 10px; white-space: nowrap }
.checkout-progress { display: flex; list-style: none; padding: 0; margin: 0 0 26px; gap: 22px }
.checkout-progress li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted) }
.checkout-progress li:not(:last-child)::after { content: ""; width: 36px; height: 1px; background: var(--line); margin-left: 14px }
.checkout-progress b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; border: 1px solid #d2d9e1; font-size: 11px; font-weight: 500 }
.checkout-progress .completed { color: var(--blue) }
.checkout-progress .completed b { background: var(--sky); border-color: #e0d2b6 }
.checkout-progress .active { color: var(--blue); font-weight: 600 }
.checkout-progress .active b { background: var(--blue); color: white; border-color: var(--blue) }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 294px; gap: 24px }
.order-layout > div { min-width: 0 }
.paper { background: var(--paper); padding: 30px; border: 1px solid var(--line); border-radius: 14px }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px }
.section-heading h2 { margin: 0; flex-shrink: 0; font-size: 16px }
.section-heading span { color: var(--muted); font-size: 11px; text-align: right }
.divided { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 24px }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 500; min-width: 0 }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #d8ddd2; border-radius: 8px; padding: 11px 12px; background: #fdfdfa; color: var(--ink); font-size: 14px; min-height: 46px; font-weight: 400; transition: border-color .15s, box-shadow .15s }
.field input::placeholder { color: #838c98 }
.field input[readonly] { background: var(--ground); color: var(--muted) }
.field textarea { min-height: 96px; resize: vertical }
.field.full { grid-column: 1 / -1 }
.field.checkbox { flex-direction: row; align-items: center }
.field.checkbox input { width: 18px; min-height: 18px }
input[type=checkbox], input[type=radio] { accent-color: var(--blue) }
.required-mark { color: var(--red) }
.inline-note { font-size: 12px; color: var(--muted); padding: 14px 0 0 }
.course-panel { min-width: 0 }
.course-panel > button { margin-top: 16px }
#course-status { margin: 12px 0 }
.course-list { display: grid; gap: 10px }
.course-option { display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 9px; background: #fdfdfa; cursor: pointer }
.course-option:has(input:checked) { border-color: var(--blue); background: var(--sky) }
.course-option:focus-within { outline: 2px solid var(--blue); outline-offset: 2px }
.course-option input { margin: 5px 0 0; width: 16px; height: 16px; flex-shrink: 0 }
.course-option > span { min-width: 0 }
.course-option strong { display: block; font-size: 13px; overflow-wrap: anywhere }
.course-option small { display: block; margin-top: 4px; overflow-wrap: anywhere }
.completed-course { background: var(--ground); color: var(--muted); cursor: default }
.completed-course input:disabled { cursor: default }
.task-row:has(.task-course-progress) { flex-wrap: wrap }
.task-course-progress { width: 100%; border-top: 1px dashed var(--line); padding-top: 12px }
.task-course-progress p { margin: 10px 0 0; overflow-wrap: anywhere }
.upload-zone { display: flex; flex-direction: column; align-items: center; padding: 24px 14px; border: 1px dashed #c3b28d; background: #faf9f4; border-radius: 10px; cursor: pointer; text-align: center; transition: background .15s, border-color .15s }
.upload-zone:hover, .upload-zone:focus-within { border-color: var(--blue); background: var(--sky) }
.upload-zone svg { width: 26px; height: 26px; color: var(--blue); margin-bottom: 12px }
.upload-zone strong { font-size: 13px; font-weight: 500 }
.upload-zone span { font-size: 11px; color: var(--muted); margin: 6px 0 14px }
.upload-zone input { max-width: 100%; font-size: 12px }
.upload-zone input::file-selector-button { border: 1px solid var(--line); border-radius: 5px; padding: 6px 10px; margin-right: 10px; background: var(--paper); color: var(--blue); cursor: pointer }
#upload-status { margin-top: 12px }
.file-row { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 0 }
.file-row > span { min-width: 0; flex: 1; overflow-wrap: anywhere }
.file-row label { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; overflow-wrap: anywhere }
.file-row label input { flex-shrink: 0 }
.file-row .quiet { font-size: 12px; padding: 8px; flex-shrink: 0 }
.checkout-aside { align-self: start; background: #faf8f2; border: 1px solid #e2d6be; border-radius: 14px; padding: 24px; position: sticky; top: 24px; min-width: 0 }
.aside-top > span { font-size: 11px; color: var(--muted) }
.aside-top h2 { font-size: 18px; margin: 10px 0; overflow-wrap: anywhere }
.aside-top p { font-size: 12px; color: var(--muted); overflow-wrap: anywhere }
.quote-summary { padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 16px }
.quote-summary .total { font-size: 32px; line-height: 1.5; font-weight: 600; letter-spacing: -.8px; color: var(--blue); overflow-wrap: anywhere }
.quote-summary p { color: var(--muted); font-size: 12px; margin-bottom: 6px }
.quote-summary p:last-child { margin-bottom: 0 }
.balance-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; margin: 18px 0 8px }
.aside-note { display: flex; align-items: flex-start; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px; font-size: 11px; color: var(--muted) }
.aside-note svg { width: 17px; height: 17px; color: var(--green); margin-top: 2px }
.action-dock { position: sticky; bottom: 16px; margin: 24px 0 0; padding: 18px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; display: flex; justify-content: space-between; align-items: center; gap: 20px; box-shadow: 0 5px 24px rgba(37, 45, 56, .06); z-index: 4 }
.action-dock > div:first-child { min-width: 0 }
.action-dock b { display: block; font-size: 13px; font-weight: 500; overflow-wrap: anywhere }
.action-dock small { display: block; font-size: 11px; margin-top: 4px; overflow-wrap: anywhere }
.dock-buttons { display: flex; gap: 10px; flex-shrink: 0 }
.summary-list { margin: 0 0 26px }
.summary-list div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line) }
.summary-list dt { font-size: 12px; color: var(--muted); overflow-wrap: anywhere }
.summary-list dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; white-space: pre-wrap }
.payment-option { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-top: 12px; cursor: pointer; transition: background .15s, border-color .15s }
.payment-option:hover { border-color: #c0ac85 }
.payment-option:has(input:checked) { border-color: var(--blue); background: #faf7ef }
.payment-option input { margin: 0 8px 0 0 }
.payment-option b { font-size: 13px; font-weight: 600 }
.payment-option small { display: block; margin: 8px 0 0 25px; font-size: 11px }
#confirmation-panel > .muted { margin: 18px 0 0 }
.empty { grid-column: 1 / -1; padding: 42px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; text-align: center }
.empty h2 { font-size: 18px; margin-bottom: 10px }
.empty p { color: var(--muted); font-size: 13px; overflow-wrap: anywhere }
.empty button { margin-top: 8px }
.loading-state { color: var(--muted) }
.loading-spinner { display: inline-block; width: 24px; height: 24px; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; margin-bottom: 12px }
.inline-notice { margin-bottom: 24px }
.request-row, .saved-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; transition: border-color .15s }
.request-row:hover, .saved-row:hover { border-color: #c0ac85 }
.request-row > div:first-child, .saved-row > div:first-child { min-width: 0 }
.request-row h2, .saved-row h2 { font-size: 16px; margin-bottom: 6px; overflow-wrap: anywhere }
.request-row small, .saved-row small { display: block; overflow-wrap: anywhere }
.request-row p { margin-top: 8px; margin-bottom: 0; overflow-wrap: anywhere }
.request-status { display: inline-block; border-radius: 5px; background: var(--sky); color: var(--blue); font-size: 11px; padding: 4px 9px; margin-bottom: 10px }
.request-status.rejected, .request-status.failed { color: var(--red); background: #fceef0 }
.request-status.ordered, .request-status.succeeded { color: var(--green); background: #eaf4ee }
.request-status.cancelled { color: var(--muted); background: #f0f2f5 }
.row-actions { display: flex; flex-shrink: 0; gap: 8px; align-items: center; flex-wrap: wrap }
.identity-tag { display: inline-block; padding: 5px 12px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; background: var(--sky); color: var(--blue); border-radius: 6px }
.saved-section { margin-bottom: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); min-width: 0 }
.saved-section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px }
.saved-section-heading > svg { color: var(--blue); width: 22px; height: 22px }
.saved-section-heading h2 { font-size: 16px; margin-bottom: 0; flex: 1 }
.saved-section-heading > span { min-width: 26px; padding: 2px 8px; border-radius: 6px; background: var(--ground); color: var(--muted); text-align: center; font-size: 12px }
.saved-section .saved-row { margin: 0; padding: 18px 0; border-width: 0 0 1px; border-radius: 0 }
.saved-section .saved-row:last-child { border-bottom: 0; padding-bottom: 0 }
.saved-section .empty { border: 1px dashed var(--line); background: var(--ground); padding: 26px 18px }
.saved-section .empty p { margin-bottom: 0 }
.logout-button { margin-top: 24px }
.success-view { padding: 48px 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; max-width: 640px; margin: 40px auto; text-align: center }
.success-symbol { display: grid; place-items: center; width: 64px; height: 64px; background: #eaf4ee; color: var(--green); border-radius: 50%; margin: 0 auto 24px; font-size: 28px }
.success-view h1 { font-size: 26px }
.success-view p { color: var(--muted); overflow-wrap: anywhere }
.success-view .row-actions { justify-content: center; margin-top: 28px }
.auth-dialog, .detail-dialog { border: 1px solid var(--line); border-radius: 14px; padding: 36px; max-width: 460px; width: calc(100% - 32px); color: var(--ink); background: var(--paper); max-height: calc(100dvh - 40px); overflow: auto; box-shadow: 0 24px 72px rgba(37, 45, 56, .16) }
.detail-dialog { max-width: 700px }
.auth-dialog::backdrop, .detail-dialog::backdrop { background: rgba(23, 28, 20, .55) }
.dialog-close { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 24px; padding: 0 }
.dialog-close:hover { background: var(--ground); color: var(--ink) }
.auth-symbol { margin-bottom: 24px; width: 48px; height: 48px; border-radius: 14px }
.auth-dialog h2 { margin-bottom: 12px; font-size: 24px; letter-spacing: -.4px }
.auth-dialog p { color: var(--muted); font-size: 12px }
.auth-dialog .field { margin-top: 18px }
.auth-dialog .form-error { color: var(--red); margin: 12px 0; min-height: 20px; overflow-wrap: anywhere }
.auth-dialog #auth-toggle { margin-top: 8px; font-size: 12px; font-weight: 400 }
.admin-link { display: block; text-align: center; color: var(--muted); font-size: 11px; margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line); text-decoration: none }
.admin-link:hover { color: var(--blue) }
.attachment-preview { max-width: 100%; max-height: 380px; object-fit: contain; display: block; margin: 16px auto }
.task-row { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px }
.task-row > div { min-width: 0; overflow-wrap: anywhere }
.task-row small { display: block; margin-top: 4px }
.pending { color: var(--blue) }
.footer { max-width: 1152px; margin: auto; padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px }
.footer strong { font-weight: 500; color: #57616e }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 13px 20px; color: #fff; background: var(--ink); border-radius: 8px; z-index: 20; font-size: 13px; box-shadow: 0 5px 22px rgba(37, 45, 56, .15); overflow-wrap: anywhere }
.toast.error { background: var(--red) }
@media (prefers-reduced-motion: no-preference) {
  .loading-spinner { animation: spin .85s linear infinite }
  .auth-dialog[open], .detail-dialog[open] { animation: dialog-in .18s ease-out }
  .toast { animation: toast-in .18s ease-out }
}
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 6px) } to { opacity: 1; transform: translate(-50%, 0) } }
@media (max-width: 1200px) {
  .footer { margin: 0 24px }
  .service-card .card-body { padding: 22px 20px 18px }
  .card-bottom { padding: 16px 20px }
}
@media (max-width: 900px) {
  .intro { padding: 34px; min-height: 310px }
  .intro-copy h1 { font-size: 36px }
  .process-strip { padding-left: 10px; padding-right: 10px; gap: 16px }
  .process-strip li:not(:first-child) { padding-left: 18px }
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px }
  .order-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 18px }
  .paper, .checkout-aside { padding: 22px }
}
@media (max-width: 700px) {
  .topbar-inner { min-height: 76px; gap: 12px; padding: 16px 20px }
  .brand-copy { flex-direction: column; align-items: flex-start; gap: 0 }
  .brand-copy strong { font-size: 19px }
  .brand-copy > span { padding-left: 0; border: 0; font-size: 10px }
  .brand-symbol { width: 38px; height: 38px; border-radius: 10px }
  .topbar-actions { gap: 12px }
  .identity-button { max-width: 135px; min-height: 38px; font-size: 12px; padding: 8px 12px }
  main { padding: 0 20px 42px }
  .main-nav { gap: 4px; margin: 20px 0; width: 100% }
  .main-nav button { flex: 1; gap: 7px; min-height: 44px; padding: 10px 8px; font-size: 12px }
  .intro { padding: 30px; min-height: 310px; border-radius: 14px }
  .intro::before { background: linear-gradient(90deg, #141711e8, #1417119c 60%, #14171122) }
  .intro-copy h1 { font-size: 34px; margin-bottom: 12px }
  .intro-copy p { font-size: 13px; margin-bottom: 24px }
  .intro-signature { display: none }
  .intro-actions { gap: 18px }
  .process-strip { padding: 20px 0; gap: 12px; margin-bottom: 24px }
  .process-strip li { flex-direction: column; gap: 9px }
  .process-strip li:not(:first-child) { padding-left: 0; border-left: 0 }
  .process-strip b { width: 25px; height: 25px; font-size: 10px }
  .process-strip strong { font-size: 12px }
  .process-strip span { font-size: 10px; line-height: 1.75 }
  .catalog-heading { align-items: flex-start; flex-direction: column; gap: 14px }
  .catalog-heading h2 { font-size: 19px }
  .service-search { width: 100% }
  .service-search input { font-size: 16px; min-height: 44px }
  .category-filters { gap: 6px; margin-bottom: 18px }
  .category-chip { font-size: 11px; padding: 8px 10px; min-height: 44px; gap: 6px }
  .order-layout { grid-template-columns: minmax(0, 1fr) }
  .checkout-aside { position: static }
  .action-dock { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; border-radius: 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); gap: 16px }
  .action-dock b { font-size: 11px }
  .action-dock small { font-size: 10px }
  .dock-buttons { gap: 8px }
  .dock-buttons button { font-size: 12px; padding: 10px 13px }
  #order-view { padding-bottom: 156px }
  body:has(#order-view:not([hidden])) .toast { bottom: calc(112px + env(safe-area-inset-bottom)) }
  .order-heading h1, .page-heading h1 { font-size: 25px }
  .checkout-progress { gap: 12px }
  .checkout-progress li { gap: 7px; font-size: 11px }
  .checkout-progress li:not(:last-child)::after { width: 24px; margin-left: 8px }
  .footer { margin: 0 20px; padding: 20px 0 24px; font-size: 10px }
}
@media (max-width: 500px) {
  .topbar-inner { padding: 14px 16px }
  .brand { gap: 9px }
  .topbar-actions { gap: 10px }
  .admin-entry { font-size: 10px }
  main { padding-left: 16px; padding-right: 16px }
  .main-nav button { padding: 10px 4px }
  .main-nav svg { width: 15px; height: 15px }
  .intro { padding: 28px 22px; min-height: 310px }
  .intro-copy h1 { font-size: 32px; line-height: 1.5 }
  .process-strip { gap: 12px }
  .catalog { grid-template-columns: minmax(0, 1fr); gap: 14px }
  .card-top { margin-bottom: 16px }
  .service-card .card-body { padding: 22px 22px 18px }
  .card-bottom { padding: 16px 22px }
  .card-description { margin-bottom: 14px }
  .card-bottom button { min-height: 42px }
  .order-heading, .page-heading { gap: 12px }
  .page-heading button { font-size: 12px; padding: 9px 12px }
  .order-heading h1, .page-heading h1 { font-size: 23px }
  .page-heading p { font-size: 12px }
  .step-label { font-size: 10px; padding: 4px 8px }
  .checkout-progress { gap: 10px; justify-content: space-between }
  .checkout-progress li { gap: 6px; font-size: 10px }
  .checkout-progress li:not(:last-child)::after { display: none }
  .checkout-progress b { width: 23px; height: 23px; font-size: 10px }
  .paper { padding: 22px 18px }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 16px }
  .section-heading { align-items: flex-start; gap: 10px }
  .section-heading span { font-size: 10px; max-width: 150px }
  .section-heading h2 { font-size: 15px }
  .field input, .field select, .field textarea { font-size: 16px }
  .action-dock { flex-wrap: wrap; gap: 9px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) }
  .action-dock > div:first-child { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px }
  .action-dock small { text-align: right; margin-top: 0; max-width: 58% }
  .dock-buttons { width: 100% }
  .dock-buttons button { flex: 1; min-height: 44px; font-size: 13px }
  .summary-list div { grid-template-columns: 82px minmax(0, 1fr); gap: 10px }
  .payment-option { padding: 14px }
  .payment-option b { font-size: 12px }
  .request-row, .saved-row { align-items: flex-start; flex-direction: column; padding: 20px; gap: 16px }
  .row-actions { width: 100%; justify-content: flex-end }
  .row-actions button { font-size: 12px; padding: 10px 13px }
  .identity-tag { max-width: 104px; font-size: 11px }
  .saved-section { padding: 20px 18px }
  .saved-section-heading { gap: 10px }
  .saved-section-heading h2 { font-size: 15px }
  .footer { margin-left: 16px; margin-right: 16px; flex-direction: column; gap: 6px }
  .auth-dialog, .detail-dialog { padding: 28px 22px; max-height: calc(100dvh - 32px) }
  .auth-dialog h2 { font-size: 22px }
  .upload-zone { padding: 20px 10px }
  .upload-zone span { font-size: 10px }
  .file-row { gap: 8px }
  .file-row .quiet { padding: 8px 5px; font-size: 11px }
  .success-view { padding: 36px 22px; margin: 24px auto }
  .success-view h1 { font-size: 23px }
  .task-row { align-items: flex-start; flex-direction: column }
}
@media (max-width: 360px) {
  .brand-symbol { width: 34px; height: 34px }
  .brand-copy strong { font-size: 17px }
  .admin-entry { max-width: 40px; white-space: normal; line-height: 1.5; text-align: center }
  .identity-button { max-width: 114px; padding: 8px 10px; font-size: 11px }
  .intro-copy h1 { font-size: 30px }
  .main-nav button { font-size: 11px; gap: 5px }
  .category-chip { padding-left: 8px; padding-right: 8px; gap: 5px }
  .category-chip svg { display: none }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important }
}
