/* Tikku SFA — one stylesheet. Mobile first; sidebar layout from 900px. */
:root {
  /* Tikku navy, taken from the logo (#333A66). Neutrals lean the same blue-violet way. */
  --bg: #F4F5FA; --surface: #FFFFFF; --surface-2: #ECEEF7; --line: #DDE0EE; --line-strong: #C3C8DE;
  --fg: #151933; --muted: #4D5378; --faint: #8589AA;
  --brand: #3A46A3; --brand-ink: #FFFFFF; --brand-soft: #E8EAF7; --brand-line: #A9B0E3;
  --deep: #333A66; --deep-2: #4A5396; --on-deep: #FFFFFF; --on-deep-muted: rgba(255,255,255,.74); --on-deep-line: rgba(255,255,255,.16);
  --good: #18794E; --good-soft: #E1F4EA; --warn: #8F5B00; --warn-soft: #FFF1D0; --bad: #B42318; --bad-soft: #FDE5E1; --info: #2F6FA8; --info-soft: #E2EEF8;
  --shadow: 0 1px 2px rgba(21,25,51,.06), 0 8px 28px rgba(21,25,51,.09);
  --r: 12px; --tab-h: 62px;
  --f: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #0C0E1A; --surface: #141729; --surface-2: #1B1F35; --line: #252A45; --line-strong: #363C5F;
  --fg: #E7E9F5; --muted: #A6AACB; --faint: #727795;
  --brand: #9DA8F5; --brand-ink: #10142E; --brand-soft: #1E2350; --brand-line: #3E4794;
  --deep: #1B1F3D; --deep-2: #2C3266; --on-deep: #FFFFFF; --on-deep-muted: rgba(255,255,255,.72); --on-deep-line: rgba(255,255,255,.12);
  --good: #5FD39A; --good-soft: #10291D; --warn: #E9B24E; --warn-soft: #32270E; --bad: #F38B7F; --bad-soft: #3A1915; --info: #7FB6EA; --info-soft: #132538;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.35); color-scheme: dark; } }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--fg); font: 15px/1.45 var(--f); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.005em; text-wrap: balance; font-family: var(--display); font-weight: 800; }
.kpi .v, .brand b { font-family: var(--display); }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 15px; }
p { margin: 0; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.spread { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }

/* shell */
.app { min-height: 100%; display: flex; }
.side { display: none; }
.main { flex: 1; min-width: 0; padding: 0 16px calc(var(--tab-h) + 24px + env(safe-area-inset-bottom, 0px)); }
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); margin: 0 -16px 12px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.top h1 { font-size: 18px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn { width: 40px; height: 40px; border-radius: 10px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--fg); position: relative; flex: none; }
.iconbtn:hover { background: var(--surface-2); }
.iconbtn svg { width: 22px; height: 22px; }
.dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabs button { border: 0; background: none; height: var(--tab-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--muted); cursor: pointer; }
.tabs button svg { width: 23px; height: 23px; }
.tabs button[aria-current="page"] { color: var(--brand); font-weight: 600; }
.tabs .fab { position: relative; }
.tabs .fab span.c { width: 50px; height: 50px; border-radius: 16px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; margin-top: -18px; box-shadow: var(--shadow); }
.netbar { margin: 0 -16px 10px; padding: 7px 16px; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.netbar.off { background: var(--warn-soft); color: var(--warn); }
.netbar.sync { background: var(--info-soft); color: var(--info); }
@media (min-width: 900px) {
  .side { display: flex; flex-direction: column; width: 236px; flex: none; position: sticky; top: 0; height: 100vh; overflow: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; gap: 2px; }
  .tabs { display: none; }
  .main { padding: 0 28px 40px; max-width: 1400px; }
  .top { margin: 0 -28px 18px; padding: 14px 28px; }
  .netbar { margin: 0 -28px 12px; padding: 7px 28px; }
  h1 { font-size: 24px; }
}
.brand { display: flex; gap: 10px; align-items: center; padding: 2px 8px 18px; }
.mark { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: 17px; flex: none; }
.brand b { display: block; font-size: 15.5px; } .brand small { color: var(--muted); font-size: 12px; }
.nav { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; border: 0; background: none; width: 100%; text-align: left; color: var(--muted); font-weight: 500; cursor: pointer; }
.nav svg { width: 19px; height: 19px; flex: none; }
.nav:hover { background: var(--surface-2); color: var(--fg); }
.nav[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.side .me { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--line); font-size: 13px; }

/* cards & blocks */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card.pad { padding: 14px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.section { margin-top: 18px; }
.section > .row.spread { margin-bottom: 8px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; }
button.kpi { cursor: pointer; } button.kpi:hover { border-color: var(--brand-line); }
.kpi .v { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi .s { font-size: 12.5px; color: var(--muted); }
.kpi.alert { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.kpi.alert .v { color: var(--warn); }
.dash { display: grid; gap: 14px; grid-template-columns: minmax(0,1fr); }
@media (min-width: 1100px) { .dash { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); } }

.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; cursor: pointer; color: inherit; }
.item:last-child { border-bottom: 0; }
.item:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.item .t { font-weight: 600; } .item .sub { font-size: 13px; color: var(--muted); }
.item .right { margin-left: auto; text-align: right; flex: none; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); } .pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.info { background: var(--info-soft); color: var(--info); }
.pill.off { background: var(--surface-2); color: var(--muted); } .pill.brand { background: var(--brand-soft); color: var(--brand); }
.tag { display: inline-block; padding: 1px 7px; border-radius: 5px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 600; }

/* forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; color: var(--fg); }
.btn:hover { border-color: var(--brand-line); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.btn.ghost { border-color: transparent; background: none; }
.btn.block { width: 100%; }
.btn.big { min-height: 56px; font-size: 17px; border-radius: 14px; }
.btn.sm { min-height: 34px; padding: 5px 11px; font-size: 13.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.in, select.in, textarea.in { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 16px; color: var(--fg); }
textarea.in { min-height: 84px; resize: vertical; }
.in:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.hint { font-size: 12.5px; color: var(--faint); font-weight: 400; }
.err { color: var(--bad); font-size: 13px; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); }
.search .in { padding-left: 38px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 6px 13px; font-size: 13.5px; cursor: pointer; white-space: nowrap; color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.switch { appearance: none; width: 40px; height: 24px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch:checked { background: var(--brand); } .switch:checked::after { transform: translateX(16px); }

/* tables */
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); white-space: nowrap; font-weight: 600; position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }

/* sheet (bottom drawer on phone, side panel on desktop) */
.scrim { position: fixed; inset: 0; background: rgba(6,12,28,.5); z-index: 50; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 92vh; z-index: 51; background: var(--surface); border-radius: 18px 18px 0 0; display: flex; flex-direction: column; box-shadow: var(--shadow); padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (min-width: 900px) { .sheet { left: auto; top: 0; bottom: 0; width: 520px; max-height: none; border-radius: 0; } }
.sheet-h { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.sheet-b { overflow: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.sheet-f { padding: 12px 18px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.sheet-f .btn { flex: 1; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 18px + env(safe-area-inset-bottom, 0px)); z-index: 70; background: var(--fg); color: var(--bg); padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow); max-width: calc(100% - 32px); font-size: 14px; }
@media (min-width: 900px) { .toast { bottom: 24px; } }
.note { padding: 11px 13px; border-radius: 10px; background: var(--info-soft); font-size: 14px; }
.note.warn { background: var(--warn-soft); } .note.bad { background: var(--bad-soft); } .note.good { background: var(--good-soft); }
.empty { padding: 36px 18px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.empty h3 { color: var(--fg); }
.loading { padding: 50px 0; text-align: center; color: var(--muted); }

/* inline icons inside text */
.note svg, .netbar svg, p svg, a svg, .small svg, .tiny svg { width: 17px; height: 17px; vertical-align: -3px; flex: none; }
td.pcol { min-width: 150px; }

/* order screens */
.qty { display: flex; align-items: center; gap: 4px; }
.qty button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 20px; font-weight: 600; cursor: pointer; line-height: 1; color: var(--fg); }
.qty input { width: 52px; height: 38px; text-align: center; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font-variant-numeric: tabular-nums; font-size: 16px; }
.qty .lbl { font-size: 11px; color: var(--faint); width: 30px; text-align: center; }
.prod { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; align-items: center; }
.prod.on { background: color-mix(in srgb, var(--brand-soft) 55%, transparent); }
.prod .n { font-weight: 600; font-size: 14.5px; }
.prod .m { font-size: 12.5px; color: var(--muted); }
.cartbar { position: sticky; bottom: calc(var(--tab-h) + 8px + env(safe-area-inset-bottom, 0px)); z-index: 15; margin-top: 12px; background: var(--brand); color: var(--brand-ink); border-radius: 14px; padding: 10px 12px 10px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .cartbar { bottom: 16px; } }
.cartbar .btn { background: var(--brand-ink); color: var(--brand); border: 0; }
.timeline { display: flex; flex-direction: column; }
.tl { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 10px; padding-bottom: 14px; position: relative; }
.tl::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl .b { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); border: 2px solid var(--brand); }
.tl.cur .b { background: var(--brand); }
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.steps span { height: 6px; border-radius: 3px; background: var(--line); }
.steps span.on { background: var(--brand); }
.steps-l { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; font-size: 11px; color: var(--muted); margin-top: 5px; }

/* camera */
.cam { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; max-height: 60vh; margin: 0 auto; width: 100%; }
.cam video, .cam img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.cam img.raw { transform: none; }

/* map */
.map { height: 360px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
@media (min-width: 900px) { .map { height: 480px; } }

/* bars */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 110px; padding-top: 8px; }
.bars .b { flex: 1; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .85; }
.bars .b.today { opacity: 1; }
.bars-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 4px; }

.login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.login .box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.hide-sm { display: none; } @media (min-width: 900px) { .hide-sm { display: initial; } .hide-lg { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* category filter */
.catf { display: grid; gap: 8px; }
.catsel { display: grid; gap: 4px; }
.catsel select { font-weight: 600; }
.chip .cnt { opacity: .6; font-size: 12px; margin-left: 2px; }
.cathead { background: var(--brand-soft); color: var(--brand) !important; padding: 8px 14px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
@media (min-width: 900px) { .catf { grid-template-columns: 280px 1fr; align-items: end; } }

/* performance */
.perf td.num, .perf th.num { white-space: nowrap; }
.perf tr.click:hover td { background: var(--brand-soft); }
.up { color: var(--good); font-weight: 600; }
.down { color: var(--bad); font-weight: 600; }
.barrow { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; gap: 8px; align-items: center; padding: 6px 0; font-size: 14px; }
.barrow .bar { height: 10px; border-radius: 5px; background: var(--brand); min-width: 2px; }
.access { display: grid; gap: 2px; }
.access label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.access label:last-child { border-bottom: 0; }
.access .d { font-size: 12px; color: var(--muted); }
.access-h svg { width: 18px; height: 18px; flex: none; }
.pfilter { display: grid; gap: 8px; }
.pfsel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pfsel label { display: grid; gap: 4px; min-width: 0; }
@media (min-width: 900px) { .pfilter { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; } .pfilter > .row { grid-column: 1 / -1; } }

/* ---------- Tikku blue shell ---------- */
/* phone: solid blue app bar */
.top { background: var(--deep); color: var(--on-deep); border-bottom: 0; backdrop-filter: none; }
.top .iconbtn { color: var(--on-deep); }
.top .iconbtn:hover { background: var(--on-deep-line); }
.top .btn { background: var(--on-deep-line); border-color: transparent; color: var(--on-deep); }
.top .btn.primary { background: var(--on-deep); color: var(--deep); }
.top .dot { box-shadow: 0 0 0 2px var(--deep); }
.tabs .fab span.c { background: linear-gradient(160deg, var(--deep-2), var(--deep)); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--deep) 45%, transparent); }
@media (min-width: 900px) {
  .top { background: color-mix(in srgb, var(--bg) 92%, transparent); color: var(--fg); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
  .top .iconbtn { color: var(--fg); }
  .top .btn { background: var(--surface); border-color: var(--line-strong); color: var(--fg); }
  .top .btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
  /* desktop: deep blue sidebar */
  .side { background: linear-gradient(180deg, var(--deep) 0%, color-mix(in srgb, var(--deep) 88%, #000) 100%); border-right: 0; color: var(--on-deep); }
  .side .nav { color: var(--on-deep-muted); }
  .side .nav:hover { background: var(--on-deep-line); color: var(--on-deep); }
  .side .nav[aria-current="page"] { background: rgba(255,255,255,.95); color: var(--deep); font-weight: 600; }
  .side .brand small { color: var(--on-deep-muted); }
  .side .me { border-top-color: var(--on-deep-line); }
  .side .me .muted { color: var(--on-deep-muted); }
  .side .me .btn { color: var(--on-deep); }
}
/* logo tile: white so any company logo sits cleanly */
.mark { background: #fff; color: var(--deep); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.mark img { width: 100%; height: 100%; object-fit: contain; padding: 3px; display: block; }
.side .mark { box-shadow: none; }

/* login */
.login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; place-items: stretch; padding: 0; background: var(--bg); }
.login-brand { background: radial-gradient(120% 140% at 0% 0%, var(--deep-2) 0%, var(--deep) 60%); color: var(--on-deep); padding: calc(28px + env(safe-area-inset-top, 0px)) 20px 64px; display: flex; flex-direction: column; gap: 14px; }
.login-brand .mark { width: 64px; height: 64px; border-radius: 16px; font-size: 28px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.login-brand h1 { font-size: 26px; color: var(--on-deep); }
.login-brand p { color: var(--on-deep-muted); max-width: 34ch; }
.login-brand ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.login-brand li { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--on-deep-line); color: var(--on-deep); }
.login .box { width: auto; max-width: 420px; margin: -44px 16px 24px; align-self: start; justify-self: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 420px) { .login .box { width: calc(100% - 32px); } }
@media (min-width: 900px) {
  .login { grid-template-rows: 1fr; grid-template-columns: minmax(360px, 44%) 1fr; }
  .login-brand { padding: 56px 48px; justify-content: center; }
  .login-brand h1 { font-size: 34px; }
  .login .box { margin: 0; align-self: center; padding: 30px 28px; }
}
.install { display: flex; gap: 10px; align-items: center; }

/* Tikku wordmark (white letters) on the navy sidebar and login panel */
.wordmark { display: block; height: auto; }
.side .brand { padding: 4px 8px 20px; flex-direction: column; align-items: flex-start; gap: 6px; }
.side .brand .wordmark { width: 118px; }
.side .brand small { font-size: 12px; letter-spacing: .02em; }
.login-brand .wordmark { width: 180px; }
@media (min-width: 900px) { .login-brand .wordmark { width: 240px; } }
.login-brand { position: relative; overflow: hidden; }
.login-brand::after { content: ""; position: absolute; right: -90px; bottom: -120px; width: 320px; height: 300px; background: var(--on-deep-line); border-radius: 0 0 46% 60% / 0 0 62% 54%; transform: rotate(-12deg); pointer-events: none; }
.login-brand > * { position: relative; z-index: 1; }
.mark.def { background: transparent; box-shadow: none; }
.mark.def img { padding: 0; }
.login .box { position: relative; z-index: 2; }
/* "Live" chip: location sharing is on (Start Market … End Market) */
.livechip { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--good-soft); color: var(--good); cursor: pointer; flex: none; }
.top .livechip { background: rgba(255,255,255,.16); color: #fff; }
@media (min-width: 900px) { .top .livechip { background: var(--good-soft); color: var(--good); } }
.livechip .blink { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: livepulse 2s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.6); } 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
@media (prefers-reduced-motion: reduce) { .livechip .blink { animation: none; } }
.photogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.photogrid .photo { display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--fg); text-decoration: none; font-size: 12.5px; }
.photogrid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--surface-2); }
.photogrid .photo > span { padding: 0 10px 10px; color: var(--muted); }
.photogrid .photo b { color: var(--fg); }
.chip svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
