/* Check-in · Samsung T&L Open House
   Look vom Namensschild: Weiß, Tiefschwarz, kühles Grau, ein Blau aus der Punkt-Welle. */
:root {
  --ink: #0d0e11;
  --ink-2: #33363d;
  --muted: #6c7079;
  --faint: #9ea2aa;
  --line: #e7e9ed;
  --line-2: #d6d9df;
  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --bg-3: #edeff3;
  --blue: #1e4beb;
  --blue-2: #6f97ff;
  --blue-soft: #ebf0ff;
  --warn: #8f4400;
  --warn-bg: #fff3e2;
  --error: #b42318;
  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.caption { margin: 0; font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
kbd { font-family: inherit; font-size: 11px; font-weight: 600; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; color: var(--muted); background: #fff; }
.link { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.link:hover { text-decoration-color: var(--ink); }
.muted { color: var(--muted); }

/* ---------- Buttons & Felder ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #2a2c31; }
.btn-secondary { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-secondary:hover:not(:disabled) { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); height: 44px; padding: 0 14px; font-weight: 500; }
.btn-quiet { color: var(--muted); font-size: 13.5px; }
.btn-ghost:hover:not(:disabled) { background: var(--bg-3); }
.btn-xl { height: 58px; font-size: 16px; width: 100%; }
.btn-lg { height: 50px; font-size: 15.5px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); }
.icon-btn:hover { background: var(--bg-3); }
.input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 15px; font-weight: 400; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; padding: 10px 14px; resize: vertical; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(13, 14, 17, .06); }
.input.is-bad { border-color: var(--error); }

.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--bg-3); color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; }
.tag-dark { background: var(--ink); color: #fff; }
.tag-line { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.tag-blue { background: var(--blue-soft); color: var(--blue); }

.st-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px var(--faint); }
.st-in .st-dot { background: var(--blue); box-shadow: none; }
.st-left .st-dot { background: var(--line-2); box-shadow: none; }

/* ---------- Login ---------- */
.login { position: relative; min-height: 100vh; display: grid; place-items: center start; padding: 32px 16px 32px clamp(16px, 13vw, 220px); overflow: hidden; }
.login-wave { position: absolute; right: 0; bottom: 0; width: min(1100px, 78%); height: min(760px, 80vh); pointer-events: none; }
.login-wave svg, .dash-wave svg { width: 100%; height: 100%; display: block; }
.login-card { position: relative; width: min(400px, 100%); display: flex; flex-direction: column; }
.login-card h1 { margin: 22px 0 10px; font-size: 68px; font-weight: 300; letter-spacing: -.035em; line-height: 1; }
.login-sub { margin: 0 0 40px; color: var(--ink-2); }
.f-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.login-err { min-height: 22px; margin: 8px 0 6px; color: var(--error); font-size: 13.5px; }
.demo-note { margin: 16px 0 0; font-size: 12.5px; color: var(--faint); text-align: center; }

/* ---------- Desk ---------- */
.view-desk { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 24px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: #fff; flex: none; }
.brand { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand strong { font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.kpis { display: flex; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.kpi { display: flex; flex-direction: column; padding: 2px 18px; border-left: 1px solid var(--line); min-width: max-content; }
.kpi:first-child { border-left: 0; }
.kpi-v { font-size: 25px; font-weight: 300; line-height: 1.1; letter-spacing: -.02em; }
.kpi-v small { font-size: 14px; color: var(--faint); font-weight: 400; margin-left: 1px; letter-spacing: 0; }
.kpi-l { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.top-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.printer-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.printer-pill:hover { border-color: var(--ink); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.tone-ok { background: #16a34a; }
.tone-sim { background: var(--blue-2); }
.tone-off { background: #d97706; }
.sync-pill { cursor: pointer; }
.sync-pill[hidden] { display: none; }
.dup-box { margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--warn-bg); box-shadow: inset 0 0 0 1px #f2d3a8; }
.dup-box p { margin: 0 0 10px; color: var(--warn); }
.dup-hit { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; margin-bottom: 6px; padding: 10px 12px; border: 0; border-radius: 10px; background: #fff; text-align: left; box-shadow: 0 0 0 1px #f2d3a8; }
.dup-hit span { display: flex; flex-direction: column; }
.dup-hit small { color: var(--muted); }
.dup-go { font-weight: 600; font-size: 13.5px; }
.dup-hit:hover { box-shadow: 0 0 0 1px var(--ink); }
.dup-box .link { margin-top: 6px; font-size: 13.5px; }
.imp-det { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.imp-det summary { padding: 11px 0; cursor: pointer; font-weight: 500; }
.imp-det summary b { margin-left: 4px; }
.imp-det ul { margin: 0 0 12px; padding: 0; list-style: none; max-height: 180px; overflow-y: auto; }
.imp-det li { padding: 5px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.imp-det li small { color: var(--muted); }
.imp-det .arrow { color: var(--muted); margin: 0 4px; }

.desk { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 440px; }
.list-pane { display: flex; flex-direction: column; min-height: 0; padding: 20px 24px 0; }
.search-row { display: flex; gap: 10px; }
.search { flex: 1; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; color: var(--muted); cursor: text; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(13, 14, 17, .05); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 19px; color: var(--ink); }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { display: none; }
.search:focus-within kbd { visibility: hidden; }
.search-row .btn { height: 58px; border-radius: 14px; }
.chips { display: flex; gap: 6px; margin: 14px 0 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.chip:hover { border-color: var(--line-2); }
.chip span { color: var(--faint); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-on span { color: rgba(255, 255, 255, .6); }
.list { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -10px; padding: 0 10px 28px; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 78px; align-items: center; gap: 14px; width: 100%; padding: 12px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.row:hover { background: var(--bg-2); }
.row.is-active { background: var(--bg-2); box-shadow: inset 3px 0 0 var(--ink); }
.row.is-sel { background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--blue); }
.row-main { display: flex; flex-direction: column; min-width: 0; }
.row-name { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-name b { font-weight: 600; }
.row-sub { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-tags { display: flex; gap: 5px; }
.row-time { display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.st-in .row-time { color: var(--blue); font-weight: 600; }
.st-left .row-name { color: var(--muted); }
.printed { display: inline-flex; color: var(--faint); }
.list-empty { padding: 56px 12px; text-align: center; color: var(--muted); }
.list-empty .btn { margin-top: 6px; }

/* Detail */
.detail-pane { background: var(--bg-2); border-left: 1px solid var(--line); overflow-y: auto; min-height: 0; }
.detail-inner { position: relative; display: flex; flex-direction: column; padding: 28px 28px 32px; }
.sheet-close { display: none; position: absolute; top: 14px; right: 14px; }
.status { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.status.st-in { color: var(--blue); }
.d-name { margin: 0; font-size: 36px; font-weight: 300; line-height: 1.06; letter-spacing: -.025em; overflow-wrap: anywhere; }
.d-name b { font-weight: 600; }
.d-title { margin: 0 0 6px; font-size: 28px; font-weight: 600; letter-spacing: -.015em; }
.d-company { margin: 12px 0 0; font-size: 17px; font-weight: 500; }
.d-role { margin: 2px 0 0; color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line-2); }
.facts:empty { display: none; }
.fact dt { font-size: 11.5px; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.fact dd { margin: 0; font-weight: 500; }
.d-field { margin-top: 22px; }
.d-label { display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.d-label small { font-weight: 500; color: var(--warn); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-3); }
.seg button { height: 40px; border: 0; border-radius: 9px; background: transparent; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(13, 14, 17, .08), 0 0 0 1px rgba(13, 14, 17, .05); }
.sticker-wrap { margin-top: 24px; }
.sticker { position: relative; aspect-ratio: 991 / 413; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 10px 24px -14px rgba(13, 14, 17, .3); }
.sticker canvas { display: block; width: 100%; height: 100%; }
.sticker-meta { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.d-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-row-split .btn { height: 52px; }
.just-in { margin: 0 0 18px; padding: 14px 18px; border-radius: 14px; background: var(--blue); color: #fff; font-size: 22px; font-weight: 600; letter-spacing: -.01em; animation: justin 6s var(--ease) forwards; }
@keyframes justin { 0% { opacity: 0; transform: translateY(-6px); } 6% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; } }
.gform .d-actions { position: sticky; bottom: 0; z-index: 2; margin: 18px -28px -32px; padding: 14px 28px 20px; background: var(--bg-2); box-shadow: 0 -1px 0 var(--line-2); }

.big-count { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 14px; }
.big-count span { font-size: 92px; font-weight: 300; line-height: .9; letter-spacing: -.045em; }
.big-count small { font-size: 15px; color: var(--muted); }
.meter { height: 6px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--blue-2)); transition: width .6s var(--ease); }
.hint { margin: 18px 0 32px; color: var(--muted); font-size: 13.5px; line-height: 1.75; }
.recent { display: flex; flex-direction: column; margin-top: 8px; }
.recent-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line-2); background: none; text-align: left; }
.recent-row span { display: flex; flex-direction: column; font-weight: 500; min-width: 0; }
.recent-row small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.recent-row time { color: var(--blue); font-weight: 600; font-size: 13px; }
.recent-row:hover span { text-decoration: underline; text-underline-offset: 3px; }

.gform .f { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--faint); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-err { min-height: 18px; margin: 10px 0 0; color: var(--error); font-size: 13px; }

/* ---------- Toast, Popover, Modal, Slip ---------- */
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 16px; min-height: 48px; max-width: calc(100vw - 32px); padding: 7px 7px 7px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 14px 36px -14px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .25s var(--ease); pointer-events: auto; }
.toast:not(:has(button)) { padding-right: 20px; }
.toast.in { opacity: 1; transform: none; }
.toast button { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; }
.toast button:hover { background: rgba(255, 255, 255, .24); }
.toast-warn { background: var(--warn-bg); color: var(--warn); box-shadow: 0 0 0 1px #f2d3a8, 0 14px 36px -14px rgba(0, 0, 0, .25); }

.popover { position: fixed; z-index: 60; min-width: 290px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 44px -14px rgba(13, 14, 17, .28); animation: pop .14s var(--ease); }
.popover button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: none; text-align: left; font-size: 14px; font-weight: 500; }
.popover button:hover:not(:disabled), .popover button:focus-visible { background: var(--bg-2); outline: none; }
.popover button small { font-size: 12px; font-weight: 400; color: var(--muted); }
.popover button.is-active span::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--blue); vertical-align: 1px; }
.popover button:disabled { opacity: .45; cursor: default; }
.popover hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--line); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }

.modal-wrap { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(13, 14, 17, .32); opacity: 0; transition: opacity .18s; }
.modal-wrap.in { opacity: 1; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 20px; background: #fff; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .35); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 0 24px; }
.modal-head h2 { margin: 0; font-size: 20px; font-weight: 600; }
.modal-body { padding: 10px 24px 24px; }
.modal-body > p:first-child { margin-top: 4px; }
.modal-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.modal .sticker { margin-top: 14px; }
.drop { display: grid; place-items: center; height: 140px; margin-top: 14px; border: 1.5px dashed var(--line-2); border-radius: 14px; color: var(--ink-2); font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.is-over { border-color: var(--blue); background: var(--blue-soft); }
.imp-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-top: 18px; }
.imp-sum div { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); }
.imp-sum b { font-size: 28px; font-weight: 300; letter-spacing: -.02em; }
.imp-sum span { font-size: 12.5px; color: var(--muted); }
.radio-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.radio-list label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.radio-list label:has(input:checked) { border-color: var(--ink); }
.radio-list span { flex: 1; font-weight: 500; }
.radio-list input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.progress { height: 6px; margin-top: 14px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.progress span { display: block; width: 0; height: 100%; background: var(--blue); transition: width .2s; }

.slip { position: fixed; left: 24px; bottom: 24px; z-index: 55; width: 300px; padding: 10px 10px 8px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 24px 48px -16px rgba(13, 14, 17, .35); opacity: 0; transform: translateY(24px) scale(.96); transition: transform .45s var(--ease), opacity .3s; pointer-events: none; }
.slip.in { opacity: 1; transform: none; }
.slip img { display: block; width: 100%; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.slip span { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); text-align: center; }

/* ---------- Dashboard ---------- */
.dash, .dinner { position: relative; max-width: 1320px; margin: 0 auto; padding: 40px 40px 56px; }
.dash-wave { position: absolute; top: 0; right: 0; width: min(760px, 68%); height: 420px; pointer-events: none; opacity: .7; transform: scaleY(-1); -webkit-mask-image: linear-gradient(to top, #000 35%, transparent); mask-image: linear-gradient(to top, #000 35%, transparent); }
.dash-head { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 36px; }
.dash-head h1 { margin: 14px 0 8px; font-size: clamp(40px, 5vw, 66px); font-weight: 300; letter-spacing: -.035em; line-height: 1; }
.dash-sub { margin: 0; color: var(--ink-2); }
.dash-tools { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; font-size: 13.5px; }
.live { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; }
.live time { font-weight: 400; color: var(--muted); min-width: 60px; }
.live.is-off .live-dot { background: #d97706; animation: none; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30, 75, 235, .45); } 70% { box-shadow: 0 0 0 9px rgba(30, 75, 235, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 75, 235, 0); } }
.hero { position: relative; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; border-top: 1px solid var(--ink); background: rgba(255, 255, 255, .7); }
.hk { display: flex; flex-direction: column; padding: 18px 24px 22px; border-right: 1px solid var(--line); }
.hk:first-child { padding-left: 0; }
.hk:last-child { border-right: 0; }
.hk-l { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hk-v { margin: 14px 0 8px; font-size: clamp(52px, 5.6vw, 88px); font-weight: 300; letter-spacing: -.045em; line-height: .95; }
.hk-v small { margin-left: 2px; font-size: .38em; letter-spacing: 0; color: var(--faint); }
.hk-main .hk-v { color: var(--blue); }
.hk-s { font-size: 13px; color: var(--muted); }
.insight { position: relative; max-width: 920px; margin: 30px 0 34px; font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.insight b { color: var(--ink); font-weight: 600; }
.card { position: relative; padding: 22px 24px 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.card h3 { margin: 0; font-size: 16px; font-weight: 600; }
.card-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.count { margin-left: 4px; font-weight: 400; color: var(--muted); }
.field-card { margin-bottom: 20px; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0; font-size: 12.5px; color: var(--muted); }
.lg { display: inline-block; width: 12px; height: 9px; margin-right: 6px; border-radius: 50%; vertical-align: -1px; }
.lg-in { background: var(--blue); }
.lg-left { background: #afc1f8; }
.lg-out { background: #e3e6ed; }
.field { position: relative; }
.field-svg { display: block; width: 100%; height: auto; }
.fd { transform-box: fill-box; transform-origin: center; transition: fill .5s; }
.fd:hover { stroke: var(--ink); stroke-width: 1.5; }
.fd-new { animation: dotpop 1s var(--ease); }
@keyframes dotpop { 0% { transform: scale(2.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.field-tip { position: absolute; z-index: 5; display: flex; flex-direction: column; gap: 1px; min-width: 160px; max-width: 220px; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12.5px; pointer-events: none; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .4); }
.field-tip span { color: rgba(255, 255, 255, .7); }
.field-tip[hidden] { display: none; }
.dash-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; margin-bottom: 20px; align-items: start; }
.chart { display: block; width: 100%; height: auto; }
.chart .gl { stroke: var(--line); stroke-width: 1; }
.chart .ax { font-size: 11px; fill: var(--faint); }
.chart .mk { stroke: var(--line-2); stroke-dasharray: 3 4; }
.chart .mk-t { font-size: 11px; font-weight: 600; fill: var(--muted); }
.chart .end-t { font-size: 13px; font-weight: 600; fill: var(--blue); }
.chart-empty { padding: 40px 0; text-align: center; color: var(--muted); font-size: 14px; }
.dinner-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dn { padding: 16px 18px; border-radius: 14px; background: var(--bg-2); }
.dn-head { display: flex; justify-content: space-between; font-size: 13px; }
.dn-name { font-weight: 600; }
.dn-time { color: var(--muted); }
.dn-v { margin: 12px 0 6px; font-size: 68px; font-weight: 300; letter-spacing: -.045em; line-height: .95; }
.dn-s { margin: 0; font-size: 12.5px; color: var(--muted); }
.dn-diets { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 0; }
.dn-diets span { padding: 2px 8px; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 12px; }
.mini-list { max-height: 372px; overflow-y: auto; margin: 0 -8px; padding: 0 8px; }
.mini-list.is-scroll { -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); padding-bottom: 40px; }
.ml-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ml-name { display: flex; flex-direction: column; min-width: 0; }
.ml-name b { font-weight: 600; }
.ml-name small { font-size: 12.5px; color: var(--muted); }
.ml-tags { display: flex; gap: 4px; flex: none; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 92px; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.br-l { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-bar { height: 8px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.br-bar span { display: block; height: 100%; border-radius: inherit; background: var(--blue); transition: width .6s var(--ease); }
.br-v { text-align: right; font-weight: 600; white-space: nowrap; }
.br-v small { display: inline-block; width: 40px; margin-left: 6px; color: var(--ink-2); font-size: 12.5px; font-weight: 400; }
.dash-foot { margin: 28px 0 0; font-size: 12.5px; color: var(--faint); }

/* ---------- Restaurant ---------- */
.dinner { max-width: 1100px; }
.dinner-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.dcard { padding: 28px 30px 30px; border: 1px solid var(--line); border-radius: 24px; }
.dc-head { display: flex; justify-content: space-between; align-items: baseline; }
.dc-head h2 { margin: 0; font-size: 26px; font-weight: 600; }
.dc-head span { color: var(--muted); }
.dc-v { margin: 24px 0 8px; font-size: clamp(120px, 16vw, 200px); font-weight: 300; letter-spacing: -.055em; line-height: .88; color: var(--blue); }
.dc-l { margin: 0; font-size: 18px; font-weight: 500; }
.dc-s { margin: 10px 0 0; color: var(--muted); }
.dc-diets { display: grid; gap: 6px; margin: 18px 0 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--line); }
.dc-diets b { display: inline-block; min-width: 28px; font-weight: 600; }
.dinner-foot { max-width: 640px; margin: 28px 0 0; color: var(--muted); }

/* ---------- Responsiv ---------- */
@media (max-width: 1180px) {
  .desk { grid-template-columns: minmax(0, 1fr) 390px; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hk:nth-child(2) { border-right: 0; }
  .hk:nth-child(3) { padding-left: 0; }
  .hk:nth-child(n+3) { border-top: 1px solid var(--line); }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 979px) {
  .topbar { flex-wrap: wrap; gap: 10px 16px; padding: 12px 16px; }
  .kpis { order: 3; width: 100%; margin-left: 0; }
  .kpi:first-child { padding-left: 0; }
  .top-actions { margin-left: auto; }
  .desk { grid-template-columns: 1fr; }
  .list-pane { padding: 14px 16px 0; }
  .detail-pane { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; max-height: 88vh; border-left: 0; border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .3); transform: translateY(105%); transition: transform .3s var(--ease); }
  .detail-pane.open { transform: none; }
  .sheet-close { display: inline-grid; }
  .detail-pane .detail-inner { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .gform .d-actions { margin: 18px -28px calc(-24px - env(safe-area-inset-bottom)); padding-bottom: calc(20px + env(safe-area-inset-bottom)); background: #fff; }
  .row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .row-tags { display: none; }
  .search-row .btn span { display: none; }
  .search-row .btn { width: 58px; padding: 0; }
  .search kbd { display: none; }
  .dash, .dinner { padding: 24px 16px 40px; }
  .dash-wave { display: none; }
  .brand { flex: 1; }
  .card { padding: 18px 16px 20px; }
  .dash-head { flex-direction: column; }
  .dash-tools { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .login { place-items: center; padding: 32px 16px; }
  .detail-inner { padding-left: 20px; padding-right: 20px; }
  .gform .d-actions { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .login-wave { width: 100%; height: 55vh; opacity: .55; }
  .hk { padding: 14px 12px 16px 0 !important; }
  .hk:nth-child(odd) { padding-left: 0 !important; }
  .hk:nth-child(even) { padding-left: 14px !important; }
  .hk-v { font-size: 48px; }
  .dinner-box { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 92px 1fr 86px; }
  .facts { grid-template-columns: 1fr; }
  .login-card h1 { font-size: 54px; }
  .insight { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
