/* Y Note + Cazieo web apps — corporate premium design system.
 * Layout: app column (phone) or nav rail + content (computer). Cazieo screens use .cz, Y Note screens use .yn.
 * Type: Inter for UI, Manrope for headings and money. Colour: navy ink, brand primary, one restrained accent. */
:root {
  --bg: #f3f5f9;
  --card: #ffffff;
  --ink: #0b1b3f;
  --ink-2: #33415c;
  --muted: #6b7690;
  --line: #e3e7ef;
  --soft: #eef1f7;
  --in: #0f8a5f;
  --in-bg: #e6f5ee;
  --out: #c2412d;
  --out-bg: #fbece9;
  --warn: #a8670f;
  --warn-bg: #fdf3e2;
  --yn: #2f3e9e;
  --yn-2: #4c5bc4;
  --yn-deep: #13205e;
  --yn-orange: #ef7a1a;
  --cz: #08312e;
  --cz-2: #0e7c6b;
  --gold: #c9a227;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 27, 63, .05), 0 6px 18px rgba(11, 27, 63, .06);
  --shadow-lg: 0 18px 48px rgba(11, 27, 63, .18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Tamil", "Noto Sans Devanagari", sans-serif;
  --display: "Manrope", "Inter", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1d; --card: #121a2c; --ink: #e7ebf5; --ink-2: #c4cbe0; --muted: #8d97b2; --line: #222c44; --soft: #182238;
    --in: #3cc48f; --in-bg: #0d2a20; --out: #f07b67; --out-bg: #34150f; --warn: #e2a04a; --warn-bg: #2f2210;
    --yn: #8d9bff; --yn-2: #a7b2ff; --cz-2: #36c2a8; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f1d; --card: #121a2c; --ink: #e7ebf5; --ink-2: #c4cbe0; --muted: #8d97b2; --line: #222c44; --soft: #182238;
  --in: #3cc48f; --in-bg: #0d2a20; --out: #f07b67; --out-bg: #34150f; --warn: #e2a04a; --warn-bg: #2f2210;
  --yn: #8d9bff; --yn-2: #a7b2ff; --cz-2: #36c2a8; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3); color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea, label { touch-action: manipulation; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent, var(--yn)); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- frame ---------- */
.app { position: relative; display: flex; flex-direction: column; height: 100%; max-width: 520px; margin: 0 auto; background: var(--bg); overflow: hidden; }
.app.wide { max-width: 1180px; }
.main { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; min-height: 58px; background: var(--card); border-bottom: 1px solid var(--line); }
.top h1 { font: 700 18px/1.2 var(--display); margin: 0; flex: 1; letter-spacing: -.01em; }
.top .back { border: 1px solid var(--line); background: var(--card); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 17px; display: grid; place-items: center; color: var(--ink); }
.scroll { flex: 1; overflow-y: auto; padding: 4px 16px 28px; overscroll-behavior: contain; }
.nav { display: flex; background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.nav button { flex: 1; border: 0; background: none; padding: 6px 2px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 600; color: var(--muted); cursor: pointer; position: relative; letter-spacing: .01em; }
.nav button .i { width: 40px; height: 28px; border-radius: 14px; display: grid; place-items: center; transition: background .15s; }
.nav button .i svg { width: 21px; height: 21px; }
.nav button.on { color: var(--accent); }
.nav button.on .i { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.badge { position: absolute; top: 0; right: calc(50% - 24px); background: var(--out); color: #fff; font-size: 10px; min-width: 18px; height: 18px;
  border-radius: 9px; display: grid; place-items: center; padding: 0 5px; font-weight: 700; border: 2px solid var(--card); }
svg.ic-svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- building blocks ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin: 12px 0; }
.card h3 { margin: 0 0 10px; font: 700 15px/1.3 var(--display); letter-spacing: -.005em; }
.label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
b.ell, span.ell { display: block; }
[hidden] { display: none !important; }
.hr { height: 1px; background: var(--line); margin: 12px 0; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: var(--soft); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pill.in { background: var(--in-bg); color: var(--in); }
.pill.out { background: var(--out-bg); color: var(--out); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.btn { border: 0; border-radius: 12px; min-height: 48px; padding: 12px 18px; font-weight: 650; cursor: pointer; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .08s, opacity .2s, box-shadow .2s; box-shadow: 0 1px 2px rgba(11,27,63,.12); }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--soft); color: var(--ink); box-shadow: none; }
.btn.line { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn.green { background: var(--in); }
.btn.red { background: var(--out); }
.btn.sm { min-height: 36px; padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.link { border: 0; background: none; color: var(--accent); font-weight: 650; cursor: pointer; padding: 8px 0; }
.field { display: block; margin: 12px 0; }
.field > span { display: block; font-size: 12px; color: var(--ink-2); margin: 0 0 6px 2px; font-weight: 650; }
.input { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px 14px; outline: none; font-size: 16px; min-height: 48px; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea.input { resize: vertical; min-height: 70px; }
.input.big { font: 700 20px/1.2 var(--display); letter-spacing: .02em; min-width: 0; }
.otp { font: 700 24px var(--display); letter-spacing: .45em; text-align: center; }
.err { color: var(--out); font-size: 13px; min-height: 18px; margin: 4px 2px; }
.list > * + * { border-top: 1px solid var(--line); }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 2px; cursor: pointer; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--display); color: #fff; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; background: var(--soft); }
.amt { font: 700 15px var(--display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.amt.in { color: var(--in); }
.amt.out { color: var(--out); }
.empty { text-align: center; color: var(--muted); padding: 32px 10px; }
.empty .big { font-size: 40px; }
.steps { display: flex; gap: 6px; margin: 2px 0 16px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps i.on { background: var(--accent); }
.hint { background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); }
.demo-code { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin: 8px 0; }
.demo-code b { letter-spacing: .15em; font-size: 15px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* icon grid (same icons in Cazieo and Y Note) */
.icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 6px; }
.icons button { border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0;
  font-size: 11px; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.2; user-select: none; -webkit-user-select: none; min-width: 0; overflow-wrap: break-word; letter-spacing: -.01em; }
.icons .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: var(--soft);
  border: 1px solid var(--line); transition: transform .1s, box-shadow .15s; }
.icons button:active .ic { transform: scale(.94); }
.icons.recv .ic { background: var(--in-bg); border-color: color-mix(in srgb, var(--in) 25%, transparent); }
.icons button.sel .ic { box-shadow: 0 0 0 3px var(--accent); }

/* sheets, toasts */
.overlay { position: absolute; inset: 0; background: rgba(8, 15, 35, .5); z-index: 50; display: flex; align-items: flex-end; animation: fade .15s; }
.overlay.mid { align-items: center; justify-content: center; padding: 16px; }
.sheet { background: var(--card); width: 100%; border-radius: 22px 22px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  max-height: 92%; overflow-y: auto; animation: up .2s ease-out; box-shadow: var(--shadow-lg); }
.overlay.mid .sheet { border-radius: 20px; max-width: 420px; }
.sheet .grab { width: 40px; height: 4px; background: var(--line); border-radius: 4px; margin: 0 auto 12px; }
.sheet h2 { margin: 4px 0 12px; font: 700 18px/1.3 var(--display); }
.sheet h4 { margin: 14px 0 8px; }
@keyframes up { from { transform: translateY(32px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.toast { position: absolute; left: 50%; bottom: 86px; transform: translateX(-50%); background: #0b1b3f; color: #fff; padding: 10px 16px;
  border-radius: 12px; font-size: 13.5px; z-index: 80; max-width: 90%; box-shadow: var(--shadow-lg); animation: up .2s; }
.toast.ok { background: var(--in); }
.toast.bad { background: var(--out); }
.spin { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: rot .8s linear infinite; display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }

/* PIN pad */
.pinbox { position: relative; display: block; margin: 14px auto 18px; max-width: 260px; cursor: text; }
.pin-in { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; font-size: 16px; color: transparent; caret-color: transparent; }
.pinbox:focus-within .dots i { border-color: var(--accent-2, var(--accent)); }
.dots { display: flex; justify-content: center; gap: 14px; padding: 10px 0; pointer-events: none; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); }
.dots i.f { background: var(--accent); }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keys button { border: 1px solid var(--line); background: var(--soft); border-radius: 14px; height: 56px; font: 650 22px var(--display); cursor: pointer; user-select: none; -webkit-user-select: none; }
.keys button:active { background: var(--line); }

/* ---------- Cazieo (banking) ---------- */
.cz { --accent: var(--cz-2); --accent-2: #14a38a; }
.cz .top { background: var(--cz); color: #fff; border-bottom: 0; }
.cz .top .back { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; }
.cz .hero { background: linear-gradient(140deg, #052320 0%, #08312e 45%, #0e5c50 100%); color: #fff; border-radius: 18px; padding: 20px; margin: 12px 0;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cz .hero::after { content: ""; position: absolute; inset: auto -60px -80px auto; width: 220px; height: 220px; border-radius: 50%;
  border: 30px solid rgba(201, 162, 39, .14); }
.cz .hero .bal { font: 800 32px/1.1 var(--display); letter-spacing: -.02em; margin: 6px 0; font-variant-numeric: tabular-nums; }
.cz .hero .id { font-size: 12.5px; opacity: .85; }
.cz .hero .eye { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; border-radius: 8px; padding: 4px 10px; cursor: pointer; font-size: 12px; }
.cz .logo { font: 800 20px var(--display); letter-spacing: .01em; }
.cz .logo b { color: var(--gold); }
.brand-cz { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; font: 900 32px var(--display); color: var(--gold);
  background: linear-gradient(140deg, #052320, #0e5c50); margin: 0 auto 12px; box-shadow: var(--shadow-lg); }
.approve-code { font: 800 60px var(--display); text-align: center; letter-spacing: .08em; color: var(--accent); margin: 6px 0; }

/* ---------- Y Note ---------- */
.yn { --accent: var(--yn); --accent-2: var(--yn-2); }
.yn .hello { background: linear-gradient(140deg, var(--yn-deep) 0%, #24318a 55%, #3445b4 100%); color: #fff; border-radius: 18px; padding: 18px 18px 16px;
  margin: 12px 0; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.yn .hello::after { content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; border: 26px solid rgba(239, 122, 26, .16); }
.yn .hello h2 { margin: 2px 0 4px; font: 800 21px/1.2 var(--display); }
.brand-yn { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; font: 900 30px var(--display); color: #fff;
  background: linear-gradient(140deg, var(--yn-deep), #3445b4); margin: 0 auto 12px; box-shadow: var(--shadow-lg); border-bottom: 4px solid var(--yn-orange); }
.paybtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.paybtn { border: 0; border-radius: 14px; padding: 14px; text-align: left; cursor: pointer; color: #fff; position: relative; box-shadow: var(--shadow); }
.paybtn.in { background: linear-gradient(140deg, #0b6b49, #0f8a5f); }
.paybtn.out { background: linear-gradient(140deg, #9c321f, #c2412d); }
.paybtn .n { position: absolute; top: 10px; right: 10px; background: #fff; color: #0b1b3f; font-weight: 800; font-size: 11px; border-radius: 99px; padding: 2px 8px; }
.paybtn b { display: block; font: 800 20px var(--display); margin-top: 4px; font-variant-numeric: tabular-nums; }
.txn { padding-left: 10px !important; position: relative; }
.txn.in { box-shadow: inset 3px 0 0 var(--in); }
.txn.out { box-shadow: inset 3px 0 0 var(--out); }
.txn.held { background: var(--soft); }
.tabs { display: flex; background: var(--soft); border-radius: 12px; padding: 4px; margin: 10px 0 4px; border: 1px solid var(--line); }
.tabs button { flex: 1; border: 0; background: none; padding: 9px 6px; border-radius: 9px; font-weight: 650; cursor: pointer; color: var(--muted); font-size: 13.5px; }
.tabs button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.tabs button.on.in { color: var(--in); }
.tabs button.on.out { color: var(--out); }
.bar { height: 8px; background: var(--soft); border-radius: 8px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 8px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { border: 1px solid var(--line); background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 4px; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; color: var(--ink-2); }
.tile .e { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.tile .e svg { width: 20px; height: 20px; }

/* astrology */
.astro-now { border-radius: 18px; padding: 18px; color: #fff; margin: 12px 0; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.astro-now.good { background: linear-gradient(140deg, #064e36, #0f8a5f); }
.astro-now.normal { background: linear-gradient(140deg, #6b4507, #a8670f); }
.astro-now.bad { background: linear-gradient(140deg, #7a1f12, #c2412d); }
.astro-now .lv { font: 800 26px/1.15 var(--display); margin: 2px 0 4px; }
.astro-now .why { font-size: 14px; opacity: .92; }
.astro-chip { display: flex; align-items: center; gap: 10px; border-radius: 14px; padding: 12px 14px; margin: 12px 0; cursor: pointer; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.good { background: var(--in); } .dot.normal { background: var(--warn); } .dot.bad { background: var(--out); }
.hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 6px; }
.hour { border-radius: 10px; padding: 7px 8px; font-size: 12px; border: 1px solid var(--line); background: var(--card); }
.hour b { display: block; font: 700 13px var(--display); font-variant-numeric: tabular-nums; }
.hour.good { background: var(--in-bg); border-color: color-mix(in srgb, var(--in) 30%, transparent); }
.hour.normal { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.hour.bad { background: var(--out-bg); border-color: color-mix(in srgb, var(--out) 30%, transparent); }
.hour.now { outline: 2px solid var(--ink); outline-offset: 1px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 650; }

/* chat — full screen, nothing else visible */
.chat { display: flex; flex-direction: column; height: 100%; }
.chat .msgs { flex: 1; overflow-y: auto; padding: 12px; background: var(--soft);
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 9%, transparent) 1px, transparent 1px); background-size: 18px 18px; }
.overlay.page { z-index: 70; background: var(--bg); align-items: stretch; animation: none; }
.bubble { max-width: 80%; margin: 3px 0; padding: 8px 10px 6px; border-radius: 14px 14px 14px 4px; background: var(--card); border: 1px solid var(--line);
  word-wrap: break-word; position: relative; }
.bubble.me { margin-left: auto; background: #dfe6ff; color: #0b1b3f; border-color: #c9d3fb; border-radius: 14px 14px 4px 14px; }
:root[data-theme="dark"] .bubble.me { background: #24318a; color: #e7ebf5; border-color: #2f3e9e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bubble.me { background: #24318a; color: #e7ebf5; border-color: #2f3e9e; } }
.bubble .t { font-size: 10.5px; color: var(--muted); text-align: right; margin-top: 2px; font-variant-numeric: tabular-nums; }
.bubble.me .t { color: #5b6a9a; }
.bubble .tick.read { color: #1d8bd8; }
.bubble img, .bubble video { max-width: 100%; border-radius: 10px; display: block; max-height: 300px; }
.bubble audio { width: 230px; max-width: 100%; }
.bubble .mapbox { width: 240px; max-width: 100%; height: 140px; border: 0; border-radius: 10px; display: block; }
.daysep { text-align: center; margin: 10px 0; }
.daysep span { background: var(--card); border: 1px solid var(--line); padding: 3px 10px; border-radius: 8px; font-size: 11.5px; color: var(--muted); }
.composer { display: flex; gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); align-items: flex-end; }
.composer .input { border-radius: 22px; padding: 10px 14px; }
.round { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; flex: none; display: grid; place-items: center; }
.round.ghost { background: var(--soft); color: var(--ink); }
.round svg { width: 21px; height: 21px; }
.attach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.attach button { border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.attach .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.attach .ic svg { width: 24px; height: 24px; }
.typing { font-size: 12px; color: var(--in); }

/* reels */
.reels { flex: 1; overflow-y: scroll; scroll-snap-type: y mandatory; background: #000; }
.reel { height: 100%; scroll-snap-align: start; position: relative; display: grid; place-items: center; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel .cap { position: absolute; left: 12px; right: 70px; bottom: 16px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.reel .side { position: absolute; right: 10px; bottom: 24px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.reel .side button { border: 0; background: rgba(0,0,0,.35); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.reel .side small { display: block; color: #fff; font-size: 11px; text-align: center; margin-top: -10px; }
.reel .mute { position: absolute; top: 12px; right: 12px; color: #fff; background: rgba(0,0,0,.4); border-radius: 99px; padding: 4px 10px; font-size: 12px; }

/* meet */
.meet { position: absolute; inset: 0; background: #070c18; color: #fff; z-index: 75; display: flex; flex-direction: column; }
.meet .vids { flex: 1; display: grid; gap: 6px; padding: 6px; grid-template-columns: 1fr; grid-auto-rows: 1fr; }
.meet .vids.n3, .meet .vids.n4 { grid-template-columns: 1fr 1fr; }
.meet .v { position: relative; background: #111a2e; border-radius: 16px; overflow: hidden; }
.meet .v video { width: 100%; height: 100%; object-fit: cover; }
.meet .v span { position: absolute; left: 8px; bottom: 8px; font-size: 12px; background: rgba(0,0,0,.5); padding: 2px 8px; border-radius: 8px; }
.meet .self { position: absolute; right: 12px; top: 60px; width: 30%; max-width: 160px; aspect-ratio: 3/4; z-index: 2; border: 2px solid rgba(255,255,255,.35); }
.meet .ctrl { display: flex; justify-content: center; gap: 14px; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); }
.meet .ctrl button { width: 54px; height: 54px; border-radius: 50%; border: 0; background: #26324d; color: #fff; font-size: 20px; cursor: pointer; }
.meet .ctrl button.off { background: #f1f5f9; color: #0b1b3f; }
.meet .ctrl button.end { background: #c2412d; }
.meet .bar2 { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }

/* QR sign-in (web.ynote.pro on computers) */
.qrpage { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; max-width: 1000px; margin: 0 auto; padding: 56px 24px; }
.qrpage h1 { font: 800 32px/1.15 var(--display); letter-spacing: -.02em; margin: 0 0 8px; }
.qrpage ol { padding-left: 20px; line-height: 2; font-size: 16px; color: var(--ink-2); }
.qrbox { background: #fff; border-radius: 20px; padding: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; place-items: center; position: relative; min-height: 300px; }
.qrbox svg { width: 270px; height: 270px; max-width: 100%; }
.qrbox .expired { position: absolute; inset: 0; background: rgba(255,255,255,.94); display: grid; place-items: center; border-radius: 20px; color: #0b1b3f; }
.webtop { background: var(--yn-deep); color: #fff; padding: 14px 24px; display: flex; align-items: center; gap: 12px; border-bottom: 3px solid var(--yn-orange); }
.webtop b { font: 800 19px var(--display); }
@media (max-width: 760px) { .qrpage { grid-template-columns: 1fr; padding: 24px 16px; } }

/* scanner */
.scanner { position: relative; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 1; max-width: 100%; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.9); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }

/* computer layout */
@media (min-width: 900px) {
  .app.wide { flex-direction: row; }
  .app.wide .nav { flex-direction: column; width: 96px; border-top: 0; border-right: 1px solid var(--line); padding: 18px 8px; justify-content: flex-start; gap: 8px; order: -1; }
  .app.wide .nav button { flex: none; padding: 8px 2px; }
  .app.wide .main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
  .app.wide .scroll { padding: 8px 28px 32px; }
}
