/* Presentation layer for the standalone staff PWA; no shared-site selectors or behavior changes. */
:root {
  --bg: #121614;
  --panel: #1a1f1c;
  --text: #edf2ee;
  --muted: #94a39a;
  --line: #303b34;
  --lime: #c5fa50;
  --amber: #d9bc88;
}
body { font-size: 14px; line-height: 1.6; background: var(--bg); }
.app-header { padding: calc(15px + env(safe-area-inset-top)) 22px 15px; }
.brand { gap: 10px; }
.brand > img { width: 34px; height: 34px; border-radius: 10px; }
.brand > span { font-size: 17px; font-weight: 650; letter-spacing: -.25px; }
.brand small { font-size: 10px; letter-spacing: 1px; margin-top: 4px; }
.icon-button { width: 40px; height: 40px; border-radius: 10px; background: var(--panel); }
.avatar { width: 38px; height: 38px; border-radius: 12px; background: #c5fa5010; border-color: #c5fa5040; }
main { padding: 22px 22px calc(104px + env(safe-area-inset-bottom)); }
h1 { font-size: 26px; line-height: 1.3; letter-spacing: -.5px; font-weight: 650; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 600; }
.page-head { margin-bottom: 18px; }
.page-head h1 { font-size: 25px; }
.page-head .sub { margin-top: 6px; }
.eyebrow { color: var(--muted); font-size: 10px; letter-spacing: 1.2px; margin-bottom: 7px; }
.sub { line-height: 1.65; }
.card { border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: none; }
.primary, .secondary, .quiet { min-height: 44px; border-radius: 10px; padding: 10px 15px; font-size: 13px; font-weight: 600; }
.primary { color: #17200d; }
.secondary { background: #252f28; color: var(--text); border-color: #46564b; }
.quiet { color: #c4d1c7; }
.text-button { font-size: 12px; }
.hero { background: radial-gradient(ellipse at 100% 0, #c5fa500d, transparent 64%), var(--panel); border-color: #445338; border-top: 2px solid #c5fa5070; padding: 22px; position: relative; }
.hero h1 { font-size: 27px; line-height: 1.3; max-width: 100%; letter-spacing: -.5px; }
.hero h1 em { color: var(--lime); font-weight: inherit; }
.hero .hero-decoration { display: block; position: absolute; right: 21px; top: 23px; font-size: 46px; line-height: 1; color: #c5fa5012; transform: none; pointer-events: none; }
.hero::after { content: ""; position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-top: 1px solid #c5fa5038; border-right: 1px solid #c5fa5038; border-radius: 0 8px 0 0; pointer-events: none; }
.hero p { max-width: 100%; }
.hero-bottom { margin-top: 18px; padding-top: 15px; border-color: #c5fa5025; }
.hero-bottom small { font-size: 11px; line-height: 1.7; }
.hero .primary { padding: 10px 15px; }
.pill { border-color: #c5fa5055; background: #c5fa500b; color: var(--lime); padding: 5px 10px; border-radius: 10px; }
.pill.paused { background: #202823; border-color: var(--line); }
.metrics { gap: 10px; margin: 16px 0 22px; }
.metric { padding: 14px; border-radius: 12px; background: var(--panel); }
.metric strong { font-size: 26px; font-weight: 650; letter-spacing: -.5px; }
.metric span { display: block; font-size: 12px; margin-top: 3px; }
.section-heading { margin: 22px 0 12px; }
.section-heading h2 { font-size: 17px; }
.orders-grid { gap: 12px; }
.order { padding: 18px; margin: 0; border-top: 2px solid #c5fa503b; }
.order:has(button.primary[data-detail]) { border-top-color: var(--lime); }
.order-top { align-items: flex-start; gap: 10px; }
.game-cover { width: 42px; height: 44px; border-radius: 8px; background: #29372c; }
.order-top h3 { white-space: normal; overflow: visible; text-overflow: clip; font-size: 14px; line-height: 1.5; }
.order-top small { display: block; font-size: 11px; line-height: 1.6; margin-top: 3px; }
.badge { flex: none; border-radius: 7px; background: #c5fa500b; border-color: #c5fa5038; padding: 4px 7px; line-height: 1.45; }
.badge.wait { background: #302b21; border-color: #554832; }
.badge.finished { color: #a6b2aa; background: #202722; }
.order-id { color: var(--muted); font-size: 11px; margin-top: 14px; letter-spacing: .2px; }
.order-terms { color: #c2cec6; font-size: 12px; line-height: 1.65; }
.order-project { margin: 6px 0; font-size: 12px; }
.order-project strong { color: var(--text); }
.order-note { line-height: 1.7; margin-bottom: 15px; }
.order-footer { gap: 12px; padding-top: 13px; }
.order-footer strong { color: var(--text); font-size: 22px; letter-spacing: -.4px; }
.order-footer small { font-size: 11px; margin-bottom: 2px; }
.order-footer button { font-size: 12px; min-height: 42px; }
.empty { padding: 26px 18px; border: 1px solid var(--line); border-radius: 12px; }
.empty > svg { width: 28px; height: 28px; color: var(--muted); margin-bottom: 8px; }
.empty p { margin-bottom: 10px; }
.list-note { font-size: 11px; margin: 16px 0; }
.bottom-nav { background: #1a1f1c; backdrop-filter: none; border-color: var(--line); border-radius: 12px 12px 0 0; padding-top: 7px; box-shadow: none; }
.bottom-nav a { color: var(--muted); gap: 4px; }
.bottom-nav a.active::before { width: 16px; background: var(--lime); }
.nav-count { color: #1c2a1c; background: var(--lime); }
.filters { background: #171d19; border-radius: 10px; padding: 4px; gap: 4px; }
.filters button { border-radius: 7px; font-size: 12px; color: #a6b5aa; }
.filters button.active { background: var(--lime); color: #1b291c; }
label.field { margin-top: 16px; color: #c3d0c7; }
input, select, textarea { border-color: #3a4a3f; border-radius: 10px; background: #151b17; padding: 11px 12px; min-height: 44px; }
input::placeholder, textarea::placeholder { color: #819187; opacity: 1; }
.check { min-height: 0; padding: 0; }
.contact-fields { grid-template-columns: 90px minmax(0,1fr); }
.toggle-row strong { font-size: 14px; }
.toggle-row small { color: var(--muted); }
.toggle-row input { min-height: 28px; background: #35443a; }
.toggle-row input::before { background: #a0afa4; }
.toggle-row input:checked { background: var(--lime); border-color: var(--lime); }
.toggle-row input:checked::before { background: #203023; }
.notice { border-color: #c5fa5030; background: #c5fa5005; color: #c4d4b9; border-radius: 10px; padding: 12px; font-size: 12px; line-height: 1.8; }
.notice.amber { background: #2b271e; border-color: #564b35; color: var(--amber); }
.connection { background: #302a20; color: #e1c797; border: 1px solid #554832; border-radius: 10px; }
.error { color: #f1b3a8; line-height: 1.65; }
.settings-footer { background: var(--panel); backdrop-filter: none; padding-top: 12px; }
.profile-head { gap: 14px; }
.profile-head .avatar { width: 58px; height: 58px; border-radius: 14px; font-size: 19px; }
.profile-head h1 { font-size: 24px; }
.menu-link { padding: 14px 0; gap: 11px; font-size: 13px; }
.menu-link > svg { color: #b4c9b7; width: 21px; height: 21px; }
.menu-link small { color: var(--muted); line-height: 1.6; }
.steps { gap: 12px; margin-top: 18px; }
.steps li { border-color: #c5fa5040; padding-top: 11px; }
.steps b { color: var(--lime); font-size: 10px; }
.gate-grid { gap: 16px; grid-template-columns: .95fr 1.05fr; }
.gate-grid .hero { height: auto; min-height: 0; }
.login-note { line-height: 1.7; }
.password-wrap button { top: 5px; }
.install-strip { padding: 14px; gap: 12px; border-color: var(--line); border-radius: 12px; background: #171d19; margin-top: 18px; }
.install-strip > img { width: 36px; height: 36px; border-radius: 10px; }
.install-strip strong { font-size: 13px; }
.install-strip p { line-height: 1.6; }
.install-strip button { min-height: 42px; }
.spinner { border-color: #34433a; border-top-color: var(--lime); }
dialog { border-radius: 14px; background: var(--panel); border-color: #425447; padding: 22px; box-shadow: none; }
dialog::backdrop { background: #060a07bf; backdrop-filter: none; }
.sheet-head { margin-bottom: 16px; }
.sheet-head h2 { font-size: 18px; }
.sheet-head button { border-radius: 10px; width: 36px; height: 36px; }
.detail-price { font-size: 28px; letter-spacing: -.6px; margin: 16px 0; }
.detail-price small { font-size: 11px; }
.detail-line { padding: 11px 0; line-height: 1.65; }
.detail-line span { color: var(--muted); }
.detail-line b { color: var(--text); }
.detail-note { border-color: #657f67; padding-left: 11px; line-height: 1.8; }
.verify { padding: 12px; border: 1px solid #c5fa5050; border-radius: 10px; background: #c5fa5008; margin: 18px 0; }
.verify input { margin-top: 3px; }
.sheet-actions { gap: 10px; margin-top: 16px; }
.toast { background: var(--lime); color: #17200d; border: 1px solid #aacb52; border-radius: 10px; box-shadow: none; }
.install-steps { color: #c0cec3; line-height: 1.75; }
.version { color: var(--muted); margin-top: 20px; }
.state-empty { padding: 30px 20px; }
.state-empty h1 { font-size: 24px; }
.state-empty .avatar { width: 58px; height: 58px; border-radius: 14px; font-size: 20px; }
.staff-announcement { background: #c5fa5005; border-color: #c5fa5038; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.staff-announcement small { color: var(--lime); }
.staff-announcement strong { font-weight: 600; }
.staff-announcement p { color: #b1c0b4; line-height: 1.75; }
.team-info { gap: 10px; border: 1px solid #c5fa5038; border-radius: 10px; background: #c5fa5005; padding: 12px; }
.team-info > strong { color: var(--lime); font-size: 13px; }
.team-info > div { border-top: 1px solid #35483a; padding-top: 9px; gap: 4px; }
.team-info > div > b { font-weight: 600; }
.team-info small { color: var(--muted); }
.team-info .copy-value { color: var(--text); }
/* Preferences overrides are isolated by this PWA-only stylesheet. */
.staff-cap-section { margin: 20px 0; }
.staff-cap-section legend { color: var(--text); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.staff-cap-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); gap: 10px; }
.staff-cap-card { background: #151c17; border-color: #35453b; border-radius: 10px; padding: 12px; }
.staff-cap-card:has(input:checked) { background: #c5fa5008; border-color: #9ab850; }
.staff-cap-title { gap: 9px; margin-bottom: 10px; }
.staff-cap-title strong { font-size: 13px; line-height: 1.5; }
.staff-cap-icon { background: #c5fa5012; color: var(--lime); font-size: 18px; }
.staff-cap-options { gap: 5px 12px; }
.staff-cap-options label { min-height: 32px; font-size: 12px; color: #d0dcd2; }
.staff-cap-options input { min-height: 0; padding: 0; }
.staff-catalog-note { font-size: 11px; line-height: 1.75; margin: 10px 0; }
.staff-projects { border-color: #34453a; margin-top: 10px; padding-top: 7px; }
.staff-projects summary { color: #b7cfb5; padding: 6px 0; }
.staff-project { padding: 8px 0; border-color: #34453a; }
.staff-project span { color: var(--lime); font-weight: 500; }
.staff-project small { color: var(--muted); font-size: 11px; }
.staff-party-tabs { gap: 8px; }
.staff-party-tabs button { min-height: 42px; border-color: #3e5143; background: #202923; border-radius: 8px; font-size: 12px; }
.staff-party-tabs button[aria-pressed="true"] { color: var(--lime); border-color: #9ab850; background: #c5fa5010; }
.staff-party-tabs small { color: var(--muted); }
.staff-party-projects { border-color: #c5fa5045; padding-left: 10px; }
.staff-party-projects h4 { color: var(--lime); }
@media (max-width: 650px) {
  .app-header { padding-left: 18px; padding-right: 18px; }
  main { padding: 20px 18px calc(100px + env(safe-area-inset-bottom)); }
  .gate-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero { padding: 20px; }
  .hero h1 { font-size: 26px; }
  .card { padding: 18px; }
  .order { padding: 16px; }
  .page-head h1 { font-size: 24px; }
  .metric { padding: 13px 11px; }
  .metric strong { font-size: 25px; }
  .metric span { font-size: 11px; }
  .hero-bottom { align-items: center; }
  .hero-bottom small { max-width: 170px; }
  .steps { gap: 10px; }
  dialog { border-radius: 14px 14px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
  .bottom-nav { border-radius: 12px 12px 0 0; }
}
@media (max-width: 370px) {
  .brand > span { font-size: 16px; }
  .brand small { letter-spacing: .5px; }
  .app-header { gap: 9px; }
  .install-strip { flex-wrap: wrap; }
  .install-strip > div { min-width: 170px; }
  .install-strip button { margin-left: auto; }
  .order-footer { flex-wrap: wrap; align-items: center; }
  .order-footer button { margin-left: auto; }
}
