/*
 * UMMIGO KDS web (resources/views/kds/index.blade.php): header, tickets, all-day count,
 * completed list, settings, live riders, rider sheet, assign rider, new order popup and the
 * lock screen. Dark by default; html.light switches the tokens.
 */
.kw {
    --bg: #0D0D0D; --surf: #1A1A1A; --surf2: #262626; --ink: #F4F4EF; --ink2: #A8A8A1; --line: #2E2E2E;
    --pri: #A4E635; --priInk: #111; --field: #232323; --fline: #343434;
    --hdr: #000; --hsurf: #161616; --hline: #2C2C2C; --hink: #fff; --hink2: #C9C9C2; --hpill: #2C2C2C; --hon: #2C2C2C;
    --lime: #A4E635; --amber: #F5B73B; --red: #E5483B; --blue: #2F6BFF;
    color-scheme: dark;
    position: fixed; inset: 0; display: flex; flex-direction: column; overflow: hidden;
    background: var(--bg); color: var(--ink); z-index: 10;
}
html.light .kw {
    --bg: #F3F3EF; --surf: #fff; --surf2: #EAEAE4; --ink: #111; --ink2: #62625C; --line: #E4E4DE;
    --pri: #111; --priInk: #fff; --field: #EFF2F9; --fline: #E1E4EC;
    --hdr: #fff; --hsurf: #F3F3EF; --hline: #E4E4DE; --hink: #111; --hink2: #62625C; --hpill: #E4E4DE; --hon: #fff;
    color-scheme: light;
}
.kw, .kw * { font-family: 'Satoshi', 'Plus Jakarta Sans', system-ui, sans-serif; box-sizing: border-box; }
.kw button { color: inherit; font-family: inherit; }
.kw * { scrollbar-width: thin; scrollbar-color: rgba(128, 128, 120, .35) transparent; }
@keyframes kwFade { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
@keyframes kwFadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes kwPop { from { opacity: 0; transform: scale(.94) } to { opacity: 1; transform: none } }
@keyframes kwNew { 0% { box-shadow: 0 0 0 0 rgba(164, 230, 53, .9) } 100% { box-shadow: 0 0 0 22px rgba(164, 230, 53, 0) } }
@keyframes kwBlink { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
@keyframes kwRing { 0%, 100% { transform: rotate(0) } 10%, 30% { transform: rotate(-16deg) } 20%, 40% { transform: rotate(16deg) } 50% { transform: rotate(0) } }
@keyframes kwPulse { 0% { transform: scale(1); opacity: .7 } 100% { transform: scale(2.4); opacity: 0 } }
@keyframes kwShake { 0%, 100% { transform: none } 20%, 60% { transform: translateX(-10px) } 40%, 80% { transform: translateX(10px) } }

/* ── Header ───────────────────────────────────────────── */
.kw-hdr { flex: none; background: var(--hdr); border-bottom: 1px solid var(--hline); padding: 14px 22px 12px; display: flex; flex-direction: column; gap: 12px; }
.kw-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kw-row2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kw-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.kw-logo i { width: 30px; height: 30px; border-radius: 50%; border: 7px solid var(--lime); background: #111; }
.kw-logo b { font-weight: 800; font-size: 22px; color: var(--hink); letter-spacing: -.02em; }
.kw-logo span { font-size: 11px; font-weight: 800; background: var(--lime); color: #111; padding: 3px 7px; border-radius: 5px; }
.kw-vsep { width: 1px; height: 28px; background: var(--hline); flex: none; }
.kw-clock { display: flex; align-items: center; gap: 8px; flex: none; }
.kw-clock b { font-size: 20px; font-weight: 800; color: var(--hink); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 118px; }
.kw-clock i { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); animation: kwBlink 2s ease-in-out infinite; }
.kw-clock i.down { background: var(--red); }
.kw-clock em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--red); }
.kw-sel { position: relative; }
.kw-sel select { appearance: none; height: 42px; border-radius: 999px; border: 1px solid var(--hline); background: var(--hsurf); color: var(--hink); font: 700 14px 'Satoshi', sans-serif; padding: 0 38px 0 16px; cursor: pointer; outline: none; max-width: 220px; }
.kw-sel.lime select { border: 1.5px solid var(--lime); }
.kw-sel svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--hink2); }
.kw-sel.lime svg { color: #6FA31C; }
.kw-grow { flex: 1; }
.kw-tools { display: flex; align-items: center; gap: 2px; background: var(--hsurf); border: 1px solid var(--hline); border-radius: 999px; padding: 3px; }
.kw-tool { width: 38px; height: 38px; border-radius: 50%; border: none; background: transparent; color: var(--hink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: none; }
.kw-tool:hover { background: var(--hdr); }
.kw-tool.on { background: var(--hon); }
.kw-tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.kw-riders-btn { height: 44px; border-radius: 999px; border: 1px solid var(--hline); background: var(--hsurf); color: var(--hink); display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 0 18px; font: 700 14px 'Satoshi', sans-serif; white-space: nowrap; }
.kw-riders-btn.on { background: var(--lime); border-color: var(--lime); color: #111; }
.kw-riders-btn svg, .kw-logout svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.kw-n { min-width: 22px; height: 22px; border-radius: 999px; background: var(--hpill); color: var(--hink2); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.on > .kw-n { background: #111; color: var(--lime); }
.kw-logout { height: 44px; border-radius: 999px; border: 1px solid rgba(229, 72, 59, .45); background: transparent; color: var(--red) !important; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 0 16px; font: 700 14px 'Satoshi', sans-serif; white-space: nowrap; }
.kw-logout:hover { background: rgba(229, 72, 59, .1); }
.kw-seg { display: flex; background: var(--hsurf); border: 1px solid var(--hline); border-radius: 999px; padding: 3px; flex: none; }
.kw-seg button { height: 38px; border: none; border-radius: 999px; background: transparent; color: var(--hink); font: 700 14px 'Satoshi', sans-serif; padding: 0 8px 0 16px; cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.kw-seg button.on { background: var(--lime); color: #111; }
.kw-types { flex: 1 1 300px; min-width: 0; display: flex; gap: 6px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; }
.kw-type { height: 40px; border-radius: 999px; border: 1px solid var(--hline); background: transparent; color: var(--hink); font: 700 14px 'Satoshi', sans-serif; padding: 0 8px 0 16px; cursor: pointer; white-space: nowrap; flex: none; display: flex; align-items: center; gap: 8px; }
.kw-type.on { background: var(--lime); border-color: var(--lime); color: #111; }
.kw-legend { display: flex; gap: 16px; flex-wrap: wrap; flex: none; }
.kw-legend span { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--hink2); font-weight: 700; white-space: nowrap; }
.kw-legend i { width: 11px; height: 11px; border-radius: 3px; }

/* ── Body ─────────────────────────────────────────────── */
.kw-body { flex: 1; min-height: 0; display: flex; position: relative; }
.kw-scroll { flex: 1; min-width: 0; overflow-y: auto; }
.kw-grid { padding: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.kw-tk { background: var(--surf); border-radius: 26px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.kw-tk.fresh { border: 2px solid var(--lime); animation: kwPop .3s ease-out, kwNew 1.2s ease-out 3; }
.kw-tk-h { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--lime); color: #111; }
.kw-tk-h.warn { background: var(--amber); color: #111; }
.kw-tk-h.late { background: var(--red); color: #fff; }
.kw-tk-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kw-tk-tags .t { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; background: rgba(0, 0, 0, .14); padding: 4px 9px; border-radius: 999px; }
.kw-tk-tags .a { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; background: #111; color: var(--lime); padding: 4px 9px; border-radius: 999px; }
.kw-tk-tags .k { width: 26px; height: 26px; border-radius: 8px; background: #111; color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-left: auto; }
.kw-tk-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.kw-tk-main .who { min-width: 0; }
.kw-tk-main .who b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kw-tk-main .meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; flex-wrap: wrap; font-size: 13px; font-weight: 700; opacity: .9; }
.kw-tk-main .meta em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; border: 1.5px solid currentColor; opacity: .85; }
.kw-tk-main .tm { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.kw-tk-main .tm b { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.02em; }
.kw-tk-main .tm b.blink { animation: kwBlink 1s ease-in-out infinite; }
.kw-tk-main .tm span { font-size: 11px; font-weight: 800; letter-spacing: .06em; opacity: .9; white-space: nowrap; }
.kw-note { background: #FDF0C7; color: #6B4700; font-size: 13.5px; font-weight: 700; padding: 9px 16px; }
.kw-ln { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border: none; border-top: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; width: 100%; }
.kw-ln:hover { background: var(--surf2); }
.kw-ln .q { flex: none; min-width: 34px; height: 34px; padding: 0 7px; border-radius: 11px; background: var(--surf2); color: var(--ink); font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.kw-ln .nm { flex: 1; min-width: 0; }
.kw-ln .nm b { display: block; font-size: 17px; font-weight: 700; line-height: 1.3; }
.kw-ln .nm span { display: block; font-size: 13.5px; color: var(--red); font-weight: 700; line-height: 1.35; }
.kw-ln .nw { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; background: var(--lime); color: #111; padding: 3px 7px; border-radius: 999px; flex: none; }
.kw-ln .st { font-size: 12px; font-weight: 700; color: var(--ink2); white-space: nowrap; flex: none; text-transform: capitalize; }
.kw-ln.done { background: var(--surf2); opacity: .5; }
.kw-ln.done .nm b { text-decoration: line-through; }
.kw-ln.done .q { background: var(--lime); color: #111; }
.kw-rider { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--surf2); }
.kw-av { border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; font-weight: 800; }
.kw-rider .kw-av { width: 36px; height: 36px; font-size: 12.5px; }
.kw-rider .tx { flex: 1; min-width: 0; }
.kw-rider .tx small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--ink2); }
.kw-rider .tx b { display: block; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kw-rider .tx b.none { color: var(--red); }
.kw-btn-sm { height: 38px; border-radius: 999px; border: none; background: var(--pri); color: var(--priInk) !important; font: 800 13.5px 'Satoshi', sans-serif; padding: 0 16px; cursor: pointer; white-space: nowrap; flex: none; }
.kw-acts { display: flex; gap: 8px; padding: 12px 16px 14px; border-top: 1px solid var(--line); margin-top: auto; }
.kw-acts button { flex: 1; height: 52px; border-radius: 999px; font: 800 15px 'Satoshi', sans-serif; cursor: pointer; white-space: nowrap; }
.kw-acts .ol { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); }
.kw-acts .ol:hover { background: var(--surf2); }
.kw-acts .go { flex: 1.3; border: none; background: var(--lime); color: #111; }
.kw-acts .go:hover { filter: brightness(1.05); }
.kw-acts button:active { transform: scale(.98); }
.kw-empty { min-height: 440px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; color: var(--ink2); padding: 20px; }
.kw-empty i { width: 84px; aspect-ratio: 1; border-radius: 26%; background: var(--lime); rotate: -10deg; }
.kw-empty b { font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin-top: 8px; }
.kw-empty span { font-size: 16px; }

/* ── All-day / Completed / Settings ───────────────────── */
.kw-page { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.kw-page-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.kw-page-h b { font-size: 32px; font-weight: 800; letter-spacing: -.035em; }
.kw-page-h span { font-size: 15px; color: var(--ink2); font-weight: 600; }
.kw-ad { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.kw-ad > div { background: var(--surf); border: 1px solid var(--line); border-radius: 24px; padding: 20px; display: flex; align-items: center; gap: 16px; }
.kw-ad .n { font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; min-width: 1.3em; font-variant-numeric: tabular-nums; }
.kw-ad .t { min-width: 0; }
.kw-ad .t b { display: block; font-size: 17px; font-weight: 700; line-height: 1.25; }
.kw-ad .t span { display: block; font-size: 13.5px; color: var(--ink2); font-weight: 600; margin-top: 2px; text-transform: capitalize; }
.kw-dash { border: 1.5px dashed var(--line); border-radius: 22px; padding: 48px 20px; text-align: center; color: var(--ink2); font-size: 16px; }
.kw-done-wrap { overflow-x: auto; }
.kw-done { min-width: 820px; background: var(--surf); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.kw-done-r { display: grid; grid-template-columns: 120px minmax(0, 2fr) minmax(0, 1.2fr) 110px 90px 112px; gap: 12px; padding: 14px 20px; align-items: center; border-top: 1px solid var(--line); font-size: 14.5px; }
.kw-done-r.h { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--ink2); background: var(--surf2); border-top: none; }
.kw-done-r .no { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.kw-done-r .sm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kw-done-r .mu { color: var(--ink2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kw-done-r .tk { font-weight: 800; font-variant-numeric: tabular-nums; }
.kw-done-r .tk.late { color: var(--red); }
.kw-done-r button { height: 38px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 800 13px 'Satoshi', sans-serif; cursor: pointer; }
.kw-done-r button:hover { background: var(--lime); border-color: var(--lime); color: #111; }
.kw-set { padding: 22px 22px 40px; max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; animation: kwFade .25s ease-out; }
.kw-set-h { display: flex; align-items: center; gap: 12px; }
.kw-set-h b { font-size: 32px; font-weight: 800; letter-spacing: -.035em; }
.kw-round { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surf); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: none; color: var(--ink); }
.kw-me { background: var(--lime); color: #111; border-radius: 28px; padding: 22px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.kw-me .kw-av { width: 60px; height: 60px; background: var(--blue); color: #fff; font-size: 20px; border: 2px solid #111; }
.kw-me > div b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.kw-me > div span { display: block; font-size: 14px; font-weight: 600; color: #2D3D10; }
.kw-card { background: var(--surf); border: 1px solid var(--line); border-radius: 28px; padding: 6px 24px; }
.kw-card-t { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--ink2); padding: 16px 0 0; }
.kw-sr { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.kw-sr:first-child, .kw-card-t + .kw-sr { border-top: none; }
.kw-sr .tx { min-width: 0; flex: 1 1 240px; }
.kw-sr .tx b { display: block; font-size: 16px; font-weight: 700; }
.kw-sr .tx span { display: block; font-size: 13.5px; color: var(--ink2); margin-top: 2px; }
.kw-opts { display: flex; background: var(--surf2); border-radius: 999px; padding: 4px; flex-wrap: wrap; }
.kw-opts button { height: 38px; border: none; border-radius: 999px; background: transparent; color: var(--ink); font: 700 13.5px 'Satoshi', sans-serif; cursor: pointer; padding: 0 16px; white-space: nowrap; }
.kw-opts button.on { background: var(--pri); color: var(--priInk); }
.kw-opts button:disabled { opacity: .5; cursor: wait; }
.kw-set-note { font-size: 13px; color: var(--ink2); font-weight: 600; padding: 0 0 16px; }

/* ── Riders panel ─────────────────────────────────────── */
.kw-rp { width: 340px; max-width: 90vw; flex: none; border-left: 1px solid var(--line); background: var(--surf); display: flex; flex-direction: column; min-height: 0; animation: kwFadeIn .2s ease-out; }
@media (max-width: 1099px) { .kw-rp { position: absolute; right: 0; top: 0; bottom: 0; z-index: 30; box-shadow: -20px 0 40px rgba(0, 0, 0, .25); } }
.kw-rp-h { padding: 20px 22px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.kw-rp-h svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.kw-rp-h b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; flex: 1; }
.kw-rp-h span { font-size: 12.5px; font-weight: 800; background: var(--lime); color: #111; padding: 5px 11px; border-radius: 999px; }
.kw-rp-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 10px; }
.kw-r { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; cursor: pointer; }
.kw-r:hover { background: var(--surf2); }
.kw-r.off { opacity: .6; }
.kw-r-top { display: flex; align-items: center; gap: 12px; }
.kw-r .kw-av { width: 46px; height: 46px; font-size: 15px; }
.kw-r .tx { flex: 1; min-width: 0; }
.kw-r .tx b { display: block; font-size: 15.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kw-r .tx span { display: block; font-size: 13px; color: var(--ink2); font-weight: 600; }
.kw-chip { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.kw-chip i { width: 7px; height: 7px; border-radius: 50%; }
.kw-chip.free { background: rgba(164, 230, 53, .2); color: var(--ink); }
.kw-chip.free i { background: var(--lime); }
.kw-chip.busy { background: rgba(245, 183, 59, .18); color: #B07A00; }
html:not(.light) .kw-chip.busy { color: var(--amber); }
.kw-chip.busy i { background: var(--amber); }
.kw-chip.off { background: var(--surf2); color: var(--ink2); }
.kw-chip.off i { background: #8A8A84; }
.kw-chip.cur { background: rgba(164, 230, 53, .2); color: var(--ink); }
.kw-chip.cur i { background: var(--lime); }
.kw-bar { display: flex; align-items: center; gap: 10px; }
.kw-r .kw-bar { padding-left: 58px; }
.kw-bar div { flex: 1; height: 6px; border-radius: 3px; background: var(--surf2); overflow: hidden; }
.kw-bar div i { display: block; height: 100%; background: var(--lime); border-radius: 3px; transition: width .4s; }
.kw-bar span { font-size: 12px; font-weight: 700; color: var(--ink2); white-space: nowrap; }
.kw-rp-f { border-top: 1px solid var(--line); padding: 14px 22px; font-size: 13px; color: var(--ink2); font-weight: 600; }

/* ── Modals ───────────────────────────────────────────── */
.kw-veil { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 62; display: flex; align-items: center; justify-content: center; padding: 20px; animation: kwFadeIn .2s ease-out; }
.kw-modal { width: 100%; max-height: 100%; background: var(--surf); color: var(--ink); border-radius: 30px; display: flex; flex-direction: column; overflow: hidden; animation: kwPop .25s ease-out; }
.kw-modal-h { padding: 24px 26px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.kw-modal-h b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.kw-modal-h span { display: block; font-size: 14.5px; color: var(--ink2); font-weight: 600; margin-top: 4px; }
.kw-x { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; font: 700 18px 'Satoshi', sans-serif; color: var(--ink); flex: none; }
.kw-keys { display: flex; flex-direction: column; padding: 0 28px 24px; }
.kw-keys div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.kw-keys span { font-size: 15.5px; font-weight: 600; }
.kw-keys b { font-size: 14px; font-weight: 800; background: var(--surf2); padding: 5px 12px; border-radius: 10px; white-space: nowrap; }
.kw-as-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 18px 8px; display: flex; flex-direction: column; gap: 8px; }
.kw-as { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; width: 100%; }
.kw-as:hover { background: var(--surf2); }
.kw-as.off { opacity: .5; cursor: not-allowed; }
.kw-as .kw-av { width: 44px; height: 44px; font-size: 14px; }
.kw-as .tx { flex: 1; min-width: 0; }
.kw-as .tx b { display: block; font-size: 15.5px; font-weight: 800; }
.kw-as .tx span { display: block; font-size: 13px; color: var(--ink2); font-weight: 600; }
.kw-modal-f { padding: 14px 26px 22px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink2); font-weight: 600; }
.kw-rd-h { padding: 24px 26px 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.kw-rd-h .kw-av { width: 60px; height: 60px; font-size: 19px; }
.kw-rd-h .tx { flex: 1; min-width: 0; }
.kw-rd-h .tx b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.kw-rd-h .tx span { display: block; font-size: 14px; color: var(--ink2); font-weight: 600; margin-top: 3px; }
.kw-rd-err { margin: 0 26px 14px; background: rgba(229, 72, 59, .12); color: var(--red); font-size: 14px; font-weight: 700; padding: 12px 16px; border-radius: 16px; animation: kwShake .4s ease-in-out; }
.kw-rd-stats { padding: 0 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.kw-rd-stats div { background: var(--surf2); border-radius: 20px; padding: 14px 16px; }
.kw-rd-stats span { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.kw-rd-stats b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.kw-rd-stats b.red { color: var(--red); }
.kw-rd-bar { padding: 16px 26px 4px; }
.kw-rd-bar div { height: 10px; border-radius: 5px; }
.kw-rd-bar span { font-size: 14px; font-weight: 800; color: var(--ink); }
.kw-rd-f { padding: 14px 26px 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.kw-pill { height: 38px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: 700 13.5px 'Satoshi', sans-serif; padding: 0 14px; cursor: pointer; white-space: nowrap; }
.kw-pill.on { background: var(--pri); border-color: var(--pri); color: var(--priInk); }
.kw-rd-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 26px 22px; }
.kw-ro { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.kw-ro-t { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kw-ro-t > b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.kw-ro-t .tx { flex: 1 1 160px; min-width: 0; }
.kw-ro-t .tx b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kw-ro-t .tx span { display: block; font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.kw-ro-t .am { font-size: 15px; font-weight: 800; white-space: nowrap; }
.kw-pay { font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; white-space: nowrap; background: rgba(164, 230, 53, .2); color: var(--ink); }
.kw-pay.un { background: rgba(229, 72, 59, .12); color: var(--red); }
.kw-steps { flex: 1 1 280px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.kw-steps div { display: flex; flex-direction: column; gap: 5px; }
.kw-steps i { height: 6px; border-radius: 3px; background: var(--surf2); }
.kw-steps span { font-size: 11.5px; font-weight: 700; color: var(--ink2); }
.kw-steps .on i { background: var(--lime); }
.kw-steps .on span { color: var(--ink); }
.kw-red-btn { height: 42px; border-radius: 999px; border: 1.5px solid var(--red); background: transparent; color: var(--red) !important; font: 800 13.5px 'Satoshi', sans-serif; padding: 0 18px; cursor: pointer; }

/* New order popup */
.kw-in { width: 100%; max-width: 560px; max-height: 100%; background: var(--surf); color: var(--ink); border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 40px 100px rgba(0, 0, 0, .45); animation: kwPop .3s cubic-bezier(.2, .8, .2, 1); }
.kw-in-h { background: var(--lime); color: #111; padding: 26px 28px; display: flex; align-items: center; gap: 20px; position: relative; overflow: hidden; }
.kw-in-h::after { content: ''; position: absolute; right: -40px; top: -50px; width: 180px; aspect-ratio: 1; border-radius: 26%; background: #111; opacity: .08; rotate: 16deg; }
.kw-bell { position: relative; width: 72px; height: 72px; flex: none; }
.kw-bell span { position: absolute; inset: 0; border-radius: 50%; background: #111; }
.kw-bell span.p1 { animation: kwPulse 1.4s ease-out infinite; }
.kw-bell span.p2 { animation: kwPulse 1.4s .7s ease-out infinite; }
.kw-bell span.c { display: flex; align-items: center; justify-content: center; }
.kw-bell svg { width: 34px; height: 34px; fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: kwRing 1.1s ease-in-out infinite; transform-origin: 50% 15%; }
.kw-in-h .tx { position: relative; flex: 1; min-width: 0; }
.kw-in-h .tx small { display: block; font-size: 13px; font-weight: 800; letter-spacing: .14em; }
.kw-in-h .tx b { display: block; font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kw-in-h .more { position: relative; font-size: 12.5px; font-weight: 800; background: #111; color: var(--lime); padding: 6px 12px; border-radius: 999px; white-space: nowrap; align-self: flex-start; }
.kw-in-who { padding: 20px 28px 8px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.kw-in-who b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.025em; }
.kw-in-who span { display: block; font-size: 14px; color: var(--ink2); font-weight: 600; margin-top: 3px; }
.kw-in-who em { font-style: normal; font-size: 14px; font-weight: 800; color: var(--ink2); white-space: nowrap; }
.kw-in-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 28px 8px; }
.kw-in-list div { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.kw-in-list .q { flex: none; min-width: 36px; height: 36px; padding: 0 7px; border-radius: 11px; background: var(--surf2); font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.kw-in-list .nm { min-width: 0; }
.kw-in-list .nm b { display: block; font-size: 17px; font-weight: 700; }
.kw-in-list .nm span { display: block; font-size: 13.5px; color: var(--red); font-weight: 700; }
.kw-in-f { padding: 16px 28px 24px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); }
.kw-in-f .acc { height: 60px; border-radius: 999px; border: none; background: var(--pri); color: var(--priInk) !important; font: 800 17px 'Satoshi', sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
.kw-in-f .acc em { font-style: normal; font-size: 12px; font-weight: 800; opacity: .6; border: 1.5px solid currentColor; border-radius: 6px; padding: 1px 6px; }
.kw-in-f .row { display: flex; gap: 10px; flex-wrap: wrap; }
.kw-in-f .row button { flex: 1 1 140px; height: 50px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: 700 15px 'Satoshi', sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.kw-in-f .row button.all { border: none; background: var(--lime); color: #111; font-weight: 800; }
.kw-in-f .row button.mute { flex: 0 1 120px; }
.kw-in-f .row svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Lock screen */
.kw-lock { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: row; background: #111; animation: kwFadeIn .25s ease-out; }
.kw-lock-hero { flex: 1 1 0; position: relative; overflow: hidden; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
@media (max-width: 899px) { .kw-lock-hero { display: none; } }
.kw-lock-hero .s1 { position: absolute; right: -10%; top: -12%; width: 40%; aspect-ratio: .85; background: var(--lime); rotate: 12deg; }
.kw-lock-hero .s2 { position: absolute; right: 16%; top: 24%; width: 20%; aspect-ratio: 1; background: var(--blue); border-radius: 22%; rotate: -8deg; }
.kw-lock-hero .s3 { position: absolute; right: 3%; top: 52%; width: 14%; aspect-ratio: 1; background: var(--amber); border-radius: 22%; rotate: 18deg; }
.kw-lock-hero .kw-logo { position: relative; }
.kw-lock-hero .kw-logo b { color: #fff; font-size: 26px; }
.kw-lock-me { position: relative; display: flex; align-items: center; gap: 18px; }
.kw-lock-me .kw-av { width: 88px; height: 88px; border: 2px solid var(--lime); background: var(--blue); color: #fff; font-size: 30px; }
.kw-lock-me > div span { display: block; font-size: 17px; color: #BDBDB6; font-weight: 600; }
.kw-lock-me > div b { display: block; font-size: 44px; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.kw-lock-form { flex: 1 1 0; min-width: 0; background: var(--surf); color: var(--ink); padding: 40px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; overflow-y: auto; }
.kw-lock-form .h { text-align: center; }
.kw-lock-form .h b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.kw-lock-form .h span { display: block; font-size: 16px; color: var(--ink2); margin-top: 6px; font-weight: 600; }
.kw-lock-form .h span.err { color: var(--red); }
.kw-lock-in { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; }
.kw-lock-in.shake { animation: kwShake .4s ease-in-out; }
.kw-lock-in input { height: 60px; border-radius: 18px; border: 1.5px solid var(--fline); background: var(--field); color: var(--ink); font: 700 20px 'Satoshi', sans-serif; padding: 0 20px; outline: none; text-align: center; letter-spacing: .1em; }
.kw-lock-in input:focus { border-color: var(--lime); }
.kw-lock-in button { height: 60px; border-radius: 999px; border: none; background: var(--pri); color: var(--priInk) !important; font: 800 17px 'Satoshi', sans-serif; cursor: pointer; }
.kw-lock-form .ft { font-size: 14px; color: var(--ink2); font-weight: 600; }
.kw-lock-form .ft button { border: none; background: none; color: var(--red) !important; font: 700 14px 'Satoshi', sans-serif; cursor: pointer; padding: 0; }

.kw-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #111; color: #fff; font-size: 15px; font-weight: 700; padding: 13px 22px; border-radius: 999px; z-index: 90; white-space: nowrap; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); animation: kwFade .2s ease-out; border: 1px solid #2C2C2C; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 700px) {
    .kw-hdr { padding: 12px 14px 10px; }
    .kw-grid, .kw-page { padding: 14px; }
    .kw-grid { grid-template-columns: 1fr; }
    .kw-clock b { font-size: 17px; min-width: 0; }
    .kw-legend { gap: 10px; }
}
