:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f2f3f3;
  background: #0e1011;
  font-synthesis: none;
  --muted: #959ba1;
  --soft: #bdc2c6;
  --lime: #d4ff72;
  --border: #30363a;
  --panel: #171a1d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.shell { max-width: 1100px; margin: auto; padding: 0 30px; position: relative; }
.site-header { min-height: 98px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #24282b; }
.brand { display: inline-flex; gap: 16px; align-items: center; font-size: 21px; letter-spacing: 3px; font-weight: 680; }
.logo { width: 48px; height: 48px; display: grid; place-items: center; color: #17220a; background: var(--lime); border-radius: 15px; font-size: 27px; letter-spacing: 0; }
.profile-button, .icon-button { border: 1px solid #3b434b; background: #1a1e22; color: #c4cbd0; display: grid; place-items: center; border-radius: 50%; }
.profile-button { width: 44px; height: 44px; font-size: 17px; }
.icon-button { width: 42px; height: 42px; font-size: 23px; line-height: 1; flex: none; }
main { min-height: 72vh; padding: 0 0 70px; }
.landing-intro { padding: 84px 0 95px; max-width: 780px; }
.landing-intro.operator-intro { padding-bottom: 60px; }
.landing-intro:not(.operator-intro) { padding-top: 38px; }
.eyebrow, .section-kicker { color: var(--lime); letter-spacing: 2.6px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.eyebrow-dot { display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--lime); vertical-align: 1px; }
h1 { font-size: clamp(48px, 8vw, 94px); line-height: 1.04; letter-spacing: -.07em; font-weight: 540; margin: 58px 0 28px; }
h1 span { color: #7e858b; }
h2 { font-size: 23px; letter-spacing: -.03em; font-weight: 560; margin: 0 0 18px; }
h3 { font-size: 16px; font-weight: 560; margin: 0 0 12px; }
p { line-height: 1.65; color: var(--muted); font-size: 14px; }
.landing-intro > p { font-size: clamp(16px, 2.4vw, 22px); line-height: 1.48; max-width: 570px; margin: 0; }
.landing-intro:not(.operator-intro) h1 { margin-top: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 19px; min-height: 46px; color: #e9ecec; border: 1px solid var(--border); background: #252a2e; border-radius: 11px; font-size: 13px; }
.btn.primary { background: var(--lime); border-color: var(--lime); color: #152005; font-weight: 640; }
.btn.danger { background: transparent; border-color: #805250; color: #ffbcb8; }
.btn.hero-cta { width: min(100%, 570px); margin-top: 58px; justify-content: space-between; padding: 20px 26px; min-height: 70px; border-radius: 17px; font-size: 18px; }
.hero-cta span { color: #1a250d; font-size: 30px; font-weight: 300; }
.process-strip { display: flex; align-items: stretch; margin-top: 30px; width: min(100%, 570px); border: 1px solid var(--border); border-radius: 17px; padding: 24px 26px; }
.process-strip > div { flex: 1; display: flex; gap: 13px; padding: 0 14px; border-right: 1px solid var(--border); font-size: 13px; line-height: 1.5; color: var(--soft); }
.process-strip > div:first-child { padding-left: 0; }
.process-strip > div:last-child { border-right: 0; padding-right: 0; }
.process-strip b { color: var(--lime); font-size: 12px; }
.home-orders { scroll-margin-top: 30px; }
.section-kicker { color: #7b8389; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 17px 0 28px; }
.section-heading h2 { font-size: clamp(29px, 4vw, 42px); margin: 0; }
.heading-actions { display: flex; gap: 10px; align-items: center; }
.filter-menu { position: relative; border: 0; padding: 0; margin: 0; }
.filter-menu > summary { list-style: none; }
.filter-menu > summary::-webkit-details-marker { display: none; }
.filter-menu[open] > summary { color: var(--lime); border-color: #718a50; }
.filter-options { position: absolute; right: 0; top: 52px; z-index: 4; width: min(250px, calc(100vw - 36px)); padding: 8px; border: 1px solid #444c50; border-radius: 14px; background: #202528; box-shadow: 0 18px 40px #0009; }
.filter-heading { padding: 10px 12px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.filter-options button { width: 100%; padding: 12px; display: flex; justify-content: space-between; border: 0; border-radius: 8px; background: transparent; color: #e9ecec; text-align: left; font-size: 13px; }
.filter-options button:hover, .filter-options button.selected { background: #303a2b; color: var(--lime); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.empty-home { grid-column: 1 / -1; border: 1px dashed #3a4248; border-radius: 18px; padding: 36px; display: flex; align-items: center; gap: 25px; color: #bec5ca; }
.empty-home strong { font-size: 16px; font-weight: 520; }
.empty-home p { margin: 6px 0 0; }
.empty-mark { width: 54px; height: 54px; flex: none; background: #1b2617; border-radius: 15px; display: grid; place-items: center; color: var(--lime); font-size: 27px; }
.page-controls { display: flex; justify-content: space-between; margin-top: 18px; }
.account-menu { position: absolute; right: 30px; top: 80px; z-index: 5; width: min(280px, calc(100vw - 36px)); border: 1px solid var(--border); border-radius: 13px; background: #202429; padding: 12px; box-shadow: 0 15px 40px #0008; }
.account-menu .muted { padding: 9px 11px 12px; }
.account-menu button { width: 100%; background: transparent; color: #e9ecec; border: 0; padding: 12px; border-radius: 7px; text-align: left; font-size: 13px; }
.account-menu button:hover { background: #30363a; }
.site-footer { display: flex; justify-content: center; border-top: 1px solid var(--border); padding: 25px 0 max(25px, env(safe-area-inset-bottom, 0px)); }
.site-footer button { border: 0; background: transparent; color: var(--lime); font-size: 14px; padding: 12px 20px; }
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 34px 0 24px; }
.hero h1 { font-size: clamp(31px, 4.5vw, 46px); letter-spacing: -.045em; margin: 14px 0 12px; }
.hero p { max-width: 500px; margin: 0; }
.card { background: var(--panel); border: 1px solid var(--border); padding: 24px; border-radius: 15px; }
.order-card { display: flex; flex-direction: column; gap: 20px; text-align: left; color: inherit; transition: border-color .15s; }
.order-card:hover { border-color: #84946b; }
.card-top, .card-bottom { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.card-bottom { border-top: 1px solid var(--border); padding-top: 17px; }
.muted, .small { color: var(--muted); font-size: 12px; }
.pill { display: inline-block; border: 1px solid #4a5940; border-radius: 7px; background: #273324; color: #d4eab3; padding: 5px 9px; font-size: 10px; }
.pill.neutral { border-color: #40484e; background: #292d32; color: #c4ccd1; }
.pill.cancelled { border-color: #6d4543; background: #392323; color: #ffb4ae; }
.pill.completed { border-color: #464c50; background: #292d30; color: #aeb6bc; }
.order-title { font-size: 18px; line-height: 1.4; letter-spacing: -.02em; }
.price { font-size: 18px; font-variant-numeric: tabular-nums; }
.quote-compact-total { color: var(--lime); font-size: clamp(30px, 5vw, 44px); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.quote-details { margin: 18px 0; }
.payment-claim { padding-top: 16px; }
.payment-claim .btn { width: 100%; }
.cancel-section { display: flex; justify-content: center; margin: 18px 0 0; padding: 0 0 4px; }
.btn.cancel-button { width: min(100%, 280px); border-color: #4d4545; background: transparent; color: #c8bdbc; }
.btn.cancel-button:hover { border-color: #9e6e68; color: #ffdad5; }
.notice { padding: 16px 18px; border: 1px solid var(--border); border-radius: 10px; color: #b8c0c4; font-size: 12px; line-height: 1.65; background: #1b1f22; margin: 18px 0; }
.notice.warning { border-color: #655e36; color: #d8d0aa; }
.empty { text-align: center; padding: 60px 24px; grid-column: 1/-1; }
.empty-icon { color: var(--lime); font-size: 38px; }
.empty p { max-width: 400px; margin: 12px auto 24px; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.stack { display: grid; gap: 18px; }
.order-layout { gap: 14px; margin-top: 12px; }
.order-layout .stack { gap: 12px; }
.order-layout .card { padding: 20px; }
.order-layout .item-detail { padding: 10px 0; }
.order-layout .timeline li { padding-bottom: 16px; }
.order-layout .quote-details { margin: 12px 0; }
.back { color: var(--muted); display: inline-block; margin-top: 28px; margin-bottom: 3px; font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.full { grid-column: 1/-1; }
label { display: grid; gap: 8px; font-size: 12px; color: #c6ccce; }
input, textarea, select { width: 100%; border: 1px solid #3a4246; background: #121516; color: #f0f2f2; padding: 12px; border-radius: 9px; outline: none; min-height: 44px; }
input:focus, textarea:focus, select:focus { border-color: var(--lime); }
textarea { resize: vertical; min-height: 88px; }
input[type=checkbox] { width: 18px; min-height: 18px; accent-color: var(--lime); }
.check { display: flex; align-items: flex-start; gap: 10px; line-height: 1.55; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.item-form + .item-form { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 24px; }
.summary-row { display: flex; justify-content: space-between; gap: 18px; font-size: 12px; line-height: 1.5; padding: 10px 0; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 20px; font-size: 18px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 22px 22px; border-left: 1px solid #3e4935; margin-left: 4px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.timeline p { font-size: 12px; margin: 7px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline .muted { font-size: 10px; }
.item-detail { border-top: 1px solid var(--border); padding: 14px 0; }
.item-detail:first-of-type { border-top: 0; }
.item-detail a, .amount-green { color: var(--lime); }
.item-detail a { font-size: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
details { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
summary { cursor: pointer; font-size: 13px; color: #d7dede; }
.operator-box { border-color: #526044; }
.operator-box h2 { margin-top: 16px; }
.operator-tools form { margin-top: 18px; }
.workflow-panel { padding: 22px; border-radius: 14px; background: #20271e; border: 1px solid #45593e; }
.workflow-panel h3 { font-size: 20px; margin: 16px 0 8px; }
.workflow-panel p { margin: 0 0 18px; }
.workflow-action { margin-top: 0 !important; }
.workflow-action .btn { width: 100%; justify-content: space-between; }
.workflow-hint { color: #d5c99e; font-size: 12px; margin-top: 12px; }
.exception-box { margin-top: 24px; }
.exception-box > p { font-size: 12px; }
.exception-choices { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 9px; }
.exception-choices legend { color: var(--soft); font-size: 12px; margin-bottom: 10px; }
.exception-choice { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 11px; background: #15191b; cursor: pointer; }
.exception-choice:has(input:checked) { border-color: #a4bd78; background: #222b20; }
.exception-choice input { width: 18px; min-height: 18px; flex: none; accent-color: var(--lime); }
.exception-choice strong, .exception-choice small { display: block; }
.exception-choice strong { font-size: 13px; font-weight: 580; color: #f2f3f3; }
.exception-choice small { margin-top: 3px; font-size: 11px; line-height: 1.4; color: var(--muted); }
.qr-panel, .qr-upload { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.payment-settings { margin: 0 0 28px; padding: 18px 22px; }
.payment-settings > summary { font-size: 15px; color: #e9ecec; font-weight: 560; }
.payment-settings-body { margin-top: 16px; }
.payment-settings-body > p { margin-top: 0; }
.payment-settings .payment-qr { margin-left: 0; width: min(100%, 220px); }
.payment-settings .qr-upload { margin-top: 12px; padding-top: 14px; }
.payment-qr { display: block; width: min(100%, 280px); aspect-ratio: 1; object-fit: contain; padding: 12px; background: white; border-radius: 12px; margin: 14px auto; }
.qr-panel strong { color: #f2f3f3; }
.quote-builder > p { font-size: 12px; }
.quote-builder form { display: grid; gap: 18px; }
.quote-fields { display: grid; gap: 10px; }
.quote-line { padding: 12px 14px; border: 1px solid var(--border); background: #15191b; border-radius: 11px; }
.quote-line > label:first-child { font-size: 13px; display: grid; grid-template-columns: minmax(0,1fr) minmax(110px,150px); align-items: center; gap: 10px; }
.quote-input { display: flex; align-items: center; position: relative; }
.quote-input input { padding-right: 32px; text-align: right; }
.quote-input > span { position: absolute; right: 11px; color: var(--soft); }
.quote-goods-currency { margin-top: 12px; }
.fx-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.quote-extra { margin: 0; padding-top: 12px; }
.quote-extra .quote-line { margin-top: 10px; }
.quote-total { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.quote-total span { color: var(--soft); font-size: 13px; }
.quote-total strong { color: var(--lime); font-size: 23px; font-weight: 550; }
.skeleton { padding: 70px 0; text-align: center; color: var(--muted); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
#toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); max-width: min(520px,90vw); background: #354032; color: #e6f7d1; padding: 16px 22px; border: 1px solid #627454; border-radius: 12px; z-index: 10; font-size: 13px; box-shadow: 0 10px 30px #0008; }
.error { border-color: #84504d; }
.quote-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.order-title, .item-detail, .summary-row { overflow-wrap: anywhere; }
.space-1 { margin-top: 24px; }.space-2 { margin-top: 12px; }.space-3 { margin-top: 20px; }.space-4 { margin: 16px 0; }.space-5 { margin: 12px 0; }.space-6 { margin-top: 18px; }.space-7 { margin-top: 25px; }.space-8 { margin-top: 16px; }
@media (max-width: 760px) {
  .shell { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
  .site-header { min-height: 76px; }
  .brand { font-size: 18px; gap: 12px; }.logo { width: 42px; height: 42px; border-radius: 13px; font-size: 23px; }
  main { padding-bottom: 48px; }.landing-intro { padding: 68px 0 74px; }.landing-intro:not(.operator-intro) { padding-top: 26px; }.landing-intro.operator-intro { padding-bottom: 45px; }
.landing-intro h1 { margin: 63px 0 27px; font-size: clamp(46px, 10.7vw, 76px); }
  .landing-intro > p { font-size: 17px; }.btn.hero-cta { width: 100%; margin-top: 51px; }
  .process-strip { padding: 22px 18px; }.process-strip > div { display: block; padding: 0 12px; font-size: 11px; }.process-strip b { display: block; margin-bottom: 7px; }.process-strip > div:first-child { padding-left: 0; }
  .section-heading h2 { font-size: 29px; }.grid, .page-layout { grid-template-columns: 1fr; }
  .card { padding: 20px; }.hero { display: block; }.hero h1 { font-size: 34px; }.hero .btn { margin-top: 20px; width: 100%; }
  .form-grid { gap: 12px; }.form-actions { flex-wrap: wrap; }.form-actions .primary { flex: 1; }
  .account-menu { right: 18px; top: 70px; }
}
@media (max-width: 390px) { .process-strip { padding: 17px 12px; }.process-strip > div { padding: 0 7px; }.landing-intro h1 { font-size: 43px; }.fx-fields { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.state-guide { margin: 14px 0 0; font-size: 12px; color: #aab4ba; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.order-head .hero { flex: 1; min-width: 0; }
.order-summary { margin: 0 0 4px; color: var(--soft); font-size: 13px; }
.order-summary strong { color: var(--lime); font-weight: 560; }
.history-extra { margin-top: 15px; }
.history-extra summary { color: var(--lime); cursor: pointer; font-size: 12px; }
.history-extra .timeline { margin-top: 18px; }
@media (max-width: 760px) { .order-head .hero { margin-right: 0; }.order-head .icon-button { margin-top: 20px; } }
@media (max-width: 760px) { .guest-intro { padding-bottom: 35px; } }
.text-button { border: 0; background: transparent; color: var(--muted); padding: 8px; font-size: 12px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.order-upload { margin: 20px 0; padding: 18px; border: 1px dashed var(--border); border-radius: 14px; }
.order-upload .small { display: block; margin-top: 10px; }
.order-image { display: block; max-width: 100%; max-height: 520px; object-fit: contain; border-radius: 12px; }
.delivery-estimate { padding: 14px; background: #202629; border-radius: 12px; font-size: 13px; color: var(--soft); }
@media (max-width: 360px) { .landing-intro h1 { font-size: 40px; } }
