/* ===== LoncherApp — shared component kit (app.css) =====
   Loaded globally after _Layout's <style>. Uses NEW classes or higher-specificity
   selectors so it enhances without fighting existing rules. */

/* --- surfaces --- */
main .card { border:1px solid var(--line); box-shadow:0 1px 2px rgba(15,23,42,.04), 0 10px 26px rgba(15,23,42,.05); }

/* --- page header (title + subtitle + actions) --- */
.page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:18px; }
.page-head h1 { margin:0; font-size:26px; }
.page-head .sub { color:var(--muted); font-size:14px; margin:4px 0 0; }
.eyebrow2 { display:inline-block; background:var(--primary-tint); color:var(--primary-dark); font-weight:700; font-size:12px; padding:4px 11px; border-radius:999px; }

/* --- buttons: subtle lift (transition is additive; no conflict) --- */
.btn { transition:transform .12s ease, background .15s, box-shadow .15s; }
main .btn:hover { transform:translateY(-1px); }
main .btn:active { transform:translateY(0); }
main .btn.violet { background:linear-gradient(135deg,#8b5cf6,#7c3aed); }
main .btn.violet:hover { background:linear-gradient(135deg,#7c3aed,#6d28d9); }

/* --- inputs (higher specificity wins over base) --- */
main .card input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
main .card select { border-radius:11px; padding:11px 13px; border:1px solid #d9e2f0; }
main .card input:focus, main .card select:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(37,99,235,.15); outline:none; }

/* --- tables → modern data-tables --- */
.card table { border-collapse:separate; border-spacing:0; width:100%; }
.card table thead th { background:#f8fafc; color:var(--muted); font-size:11.5px; text-transform:uppercase;
  letter-spacing:.04em; font-weight:700; padding:11px 12px; border-bottom:1px solid var(--line); }
.card table tbody td { padding:13px 12px; border-bottom:1px solid #eef2f7; font-size:14px; vertical-align:middle; }
.card table tbody tr:hover td { background:#f8fbff; }
.card table tbody tr:last-child td { border-bottom:0; }
.card table tfoot td { padding:12px; font-weight:800; border-top:2px solid var(--line); }
@media (max-width:640px){ .card table { display:block; overflow-x:auto; white-space:nowrap; } }

/* --- status pills (unifies .status / .tag / .st across pages) --- */
.status, .tag, .st { display:inline-block; padding:3px 10px; border-radius:999px; font-size:12px; font-weight:700; line-height:1.55; }
.status.ok,  .tag.ok,  .st.stamped   { background:#e7f9ee; color:#047857; }
.status.no,  .tag.no,  .st.failed    { background:#fef2f2; color:#b91c1c; }
.status.warn,.tag.warn               { background:#fff7ed; color:#b45309; }
.status.info,.st.draft,.st.stamping  { background:#eff6ff; color:#1d4ed8; }
.st.cancelled                        { background:#eef2f6; color:#475569; }

/* --- KPI tiles --- */
.kpi-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; margin-bottom:18px; }
.kpi { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:18px 20px; box-shadow:0 1px 2px rgba(15,23,42,.04); }
.kpi .n { font-size:26px; font-weight:800; letter-spacing:-.6px; color:var(--text); }
.kpi .l { color:var(--muted); font-size:13px; margin-top:2px; }
.kpi.accent .n { color:var(--primary); } .kpi.green .n { color:#16a34a; } .kpi.amber .n { color:#d97706; }

/* --- money helpers --- */
.amt-in { color:#16a34a; font-weight:700; } .amt-out { color:#dc2626; font-weight:700; }

/* --- filter bar --- */
.filter-bar { display:flex; gap:12px; align-items:flex-end; flex-wrap:wrap; }

/* --- receipt (payment result / sandbox) --- */
.receipt { max-width:440px; margin:10px auto; text-align:center; }
.receipt .ricon { width:88px; height:88px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:44px; margin:4px auto 16px; }
.receipt .ricon.ok { background:#e7f9ee; color:#16a34a; }
.receipt .ricon.bad { background:#fef2f2; color:#dc2626; }
.receipt .ricon.pending { background:#fff7ed; color:#d97706; }
.receipt .amt { font-size:36px; font-weight:800; letter-spacing:-1px; margin:2px 0; }
.receipt .rows { text-align:left; border-top:1px dashed var(--line); border-bottom:1px dashed var(--line); margin:18px 0; padding:6px 0; }
.receipt .rrow { display:flex; justify-content:space-between; gap:12px; padding:7px 0; font-size:14px; }
.receipt .rrow span:first-child { color:var(--muted); }
.receipt .rrow strong { font-weight:700; }

/* --- settings grid (profile) --- */
.settings-grid { display:grid; grid-template-columns:280px 1fr; gap:18px; align-items:start; }
.settings-grid .stack { display:flex; flex-direction:column; gap:18px; }
.profile-sum { text-align:center; }
.profile-sum .pav { width:80px; height:80px; border-radius:50%; margin:0 auto 12px;
  background:linear-gradient(135deg,#818cf8,#7c3aed); color:#fff; font-weight:800; font-size:28px;
  display:flex; align-items:center; justify-content:center; }
.profile-sum .active-chip { display:inline-flex; align-items:center; gap:5px; margin-top:10px; padding:4px 12px;
  border-radius:999px; background:#e7f9ee; color:#16a34a; font-size:12px; font-weight:700; }
@media (max-width:760px){ .settings-grid { grid-template-columns:1fr; } }

/* Settings card with a side illustration (Profile: Datos personales / Seguridad / Avisos). */
.setting-row { display:flex; align-items:center; gap:20px; }
.setting-row .sr-body { flex:1; min-width:0; }
.setting-row .sr-illus { width:100px; height:100px; flex:0 0 auto; }
@media (max-width:900px){ .setting-row .sr-illus { display:none; } }

/* Show/hide toggle on password inputs. */
.pw-wrap { position:relative; }
.pw-wrap input { padding-right:42px; }
.pw-wrap .pw-toggle { position:absolute; top:50%; right:10px; transform:translateY(-50%); border:0; background:none;
  color:#94a3b8; cursor:pointer; padding:4px; display:flex; }
.pw-wrap .pw-toggle:hover { color:var(--primary); }
.pw-wrap .pw-toggle svg { width:18px; height:18px; }

/* --- wallet: amount pad + method card --- */
.amount-pad { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:6px; }
.amount-pad button { flex:1 1 0; min-width:92px; padding:15px 10px; border:1px solid var(--line); background:#fff;
  border-radius:12px; font-size:17px; font-weight:800; color:var(--text); cursor:pointer; transition:.12s; }
.amount-pad button:hover { border-color:var(--primary); color:var(--primary); }
.amount-pad button[aria-pressed="true"] { border-color:var(--primary); background:var(--primary-tint); color:var(--primary-dark); }
.method-card { display:flex; align-items:center; gap:12px; padding:14px 16px; border:1px solid var(--primary);
  background:var(--primary-tint); border-radius:12px; }
.method-card .mico { font-size:24px; } .method-card strong { display:block; font-size:15px; }

/* --- connection cards (vendor) --- */
.conn-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:14px; }
.conn { border:1px solid var(--line); border-radius:14px; padding:18px; background:var(--card); }
.conn .top { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.conn h3 { margin:0; font-size:16px; }

/* --- filter chips / tabs (statement, filters) --- */
.chips { display:flex; gap:8px; flex-wrap:wrap; }
.chips a { padding:8px 16px; border-radius:999px; border:1px solid var(--line); background:#fff;
  color:var(--muted); font-size:14px; font-weight:600; transition:.12s; }
.chips a:hover { border-color:var(--primary); color:var(--primary); text-decoration:none; }
.chips a.on { background:var(--primary); border-color:var(--primary); color:#fff; }

/* --- Pagination bar: page-size chips + prev/next --- */
.pager { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  margin-top:18px; padding-top:16px; border-top:1px solid var(--line); }
.pager-size { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:13px; }
.pager-size .chips a { padding:5px 12px; font-size:13px; }
.pager-nav { display:flex; align-items:center; gap:12px; }
.pager-btn { padding:8px 16px; font-size:13px; }
.pager-btn.disabled { opacity:.4; pointer-events:none; }
.pager-status { color:var(--muted); font-size:13px; font-weight:600; white-space:nowrap; font-variant-numeric:tabular-nums; }
@media (max-width:560px){ .pager { flex-direction:column; align-items:flex-start; } }

/* --- statement / activity list (Transactions, reusable) --- */
.stmt { display:flex; flex-direction:column; }
.day-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  padding:18px 2px 8px; border-bottom:1px solid var(--line); margin-top:8px; }
.stmt > .day-head:first-child { margin-top:0; }
.day-head .d { font-size:13px; font-weight:700; color:var(--text); }
.day-head .net { font-size:12.5px; font-weight:700; font-variant-numeric:tabular-nums; }
.stmt-row { display:flex; align-items:center; gap:14px; padding:13px 2px; border-bottom:1px solid #eef2f7; }
.stmt-row:last-child { border-bottom:0; }
.stmt-ico { width:42px; height:42px; flex:0 0 42px; border-radius:12px; display:flex; align-items:center;
  justify-content:center; font-size:19px; background:#eff6ff; }
.stmt-ico.in { background:#e7f9ee; } .stmt-ico.out { background:#fef2f2; } .stmt-ico.neutral { background:#eff6ff; }
.stmt-main { flex:1 1 auto; min-width:0; }
.stmt-main .ttl { font-weight:600; font-size:15px; }
.stmt-main .sub2 { color:var(--muted); font-size:12.5px; margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stmt-amt { text-align:right; flex:0 0 auto; white-space:nowrap; }
.stmt-amt .a { font-weight:800; font-size:15px; font-variant-numeric:tabular-nums; }
.stmt-amt .b { color:var(--muted); font-size:12px; margin-top:2px; font-variant-numeric:tabular-nums; }

/* --- empty state --- */
.empty { text-align:center; padding:34px 18px; }
.empty .em { font-size:34px; }
.empty p { color:var(--muted); margin:10px 0 0; }

/* --- mini 7-day bar trend --- */
.trend { display:flex; align-items:flex-end; gap:8px; height:140px; padding-top:8px; }
.trend .col { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:6px; height:100%; }
.trend .bar { width:100%; max-width:36px; background:var(--primary); border-radius:6px 6px 0 0; min-height:3px; transition:height .3s; }
.trend .col.today .bar { background:#16a34a; }
.trend .cap { font-size:11px; color:var(--muted); text-transform:capitalize; }
.trend .val { font-size:11px; font-weight:700; color:var(--text); min-height:14px; }

/* --- category horizontal bars --- */
.catbar { display:flex; flex-direction:column; gap:12px; }
.catbar .row2 { display:grid; grid-template-columns:110px 1fr auto; align-items:center; gap:12px; }
.catbar .nm { font-size:14px; font-weight:600; }
.catbar .track { background:#eef2f7; border-radius:999px; height:10px; overflow:hidden; }
.catbar .fill { display:block; height:100%; background:var(--primary); border-radius:999px; }
.catbar .amt { font-size:13px; font-weight:700; font-variant-numeric:tabular-nums; }

/* --- cash summary grid --- */
.cash-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; }
.cash-grid .cl { color:var(--muted); font-size:13px; }
.cash-grid .cv { font-size:18px; font-weight:700; margin-top:2px; }

/* --- topbar on app pages (everything except the landing) --- */
body.is-app header { background:#2663db; border-bottom-color:#1c47a8; box-shadow:0 3px 16px rgba(20,40,90,.28); }
/* keep the bar's own links (e.g. Ingresar/Registrarse on auth pages) readable on the dark bar;
   `> a` targets only the bar's direct links, never the white dropdown menu items. */
body.is-app .bar nav > a { color:#fff; }
body.is-app .bar nav > a:hover { color:#dbe7ff; }

/* ============================================================
   MOCKUP SHELL — navy sidebar (logo + support) + navy-left topbar
   ============================================================ */
/* Topbar: navy strip on the left (256px, merges with the sidebar) + white to the right.
   Navy tone matches the sidebar's own top color exactly, so the seam is invisible. */
body.has-shell header { background:linear-gradient(90deg,#132a52 0,#132a52 256px,#fff 256px); border-bottom:1px solid var(--line); box-shadow:none; }
body.has-shell .bar { height:66px; }
body.has-shell .bar nav > a { color:#334155; }
.brand.app-brand { display:flex; align-items:center; gap:10px; color:#fff; font-weight:800; font-size:19px; white-space:nowrap; }
.brand.app-brand .apple { width:30px; height:30px; border-radius:9px; background:linear-gradient(135deg,#fb923c,#f97316); display:flex; align-items:center; justify-content:center; font-size:16px; flex:0 0 30px; }
.brand.app-brand .gold { color:#fbbf24; }
.topbell { display:flex; align-items:center; color:#475569; padding:4px; }
.topbell svg { width:23px; height:23px; }
.topbell:hover { color:#374151; text-decoration:none; }

/* Sidebar collapse/expand toggle, sits in the navy strip next to the brand. */
.sidebar-toggle { display:flex; align-items:center; justify-content:center; width:32px; height:32px; margin-left:6px;
  border:0; border-radius:9px; background:#1f2937; color:#fff; cursor:pointer; flex:0 0 32px; }
.sidebar-toggle svg { width:18px; height:18px; }
.sidebar-toggle:hover { background:#374151; }

/* Sidebar: navy gradient column (slightly lighter than the original navy) with the nav on
   top and the support card pinned bottom. */
/* Sticks below the topbar and keeps its own scroll, so the nav stays put while the page scrolls. */
body.has-shell .sidebar { background:linear-gradient(180deg,#132a52,#0f1e3c); border-right:0; width:256px; flex:0 0 256px;
  padding:16px 14px 20px; display:flex; flex-direction:column; transition:width .18s ease, padding .18s ease;
  position:sticky; top:66px; height:calc(100vh - 66px); overflow-y:auto; align-self:flex-start; }
.side-nav { display:flex; flex-direction:column; gap:4px; }
.side-nav a { display:flex; align-items:center; gap:12px; padding:11px 14px; border:0; border-radius:12px; color:#c7d2e6; font-weight:600; font-size:15px; }
.side-nav a svg { width:20px; height:20px; flex:0 0 20px; }
.side-nav a:hover { background:rgba(255,255,255,.06); color:#fff; text-decoration:none; }
/* Selected item: a shade darker than the base accent, a matching shadow "box", and a red icon
   so the active page reads instantly even among the icon-only collapsed state. */
.side-nav a.active { background:linear-gradient(135deg,#2456cc,#3d36b0); color:#fff; border-radius:12px; box-shadow:0 10px 24px rgba(20,40,90,.55); }
.side-nav a.active svg { stroke:var(--danger); }
/* Applies to every app-shell sidebar link (parent side-nav + vendor/school direct links). */
body.has-shell .sidebar a { color:#c7d2e6; font-weight:600; border-color:transparent; }
body.has-shell .sidebar a:hover { background:rgba(255,255,255,.06); color:#fff; text-decoration:none; }
body.has-shell .sidebar a.active { background:linear-gradient(135deg,#2456cc,#3d36b0); color:#fff; border-radius:12px; box-shadow:0 10px 24px rgba(20,40,90,.55); }
body.has-shell .sidebar a.active svg { stroke:var(--danger); }

/* --- Collapsed sidebar: icons only --- */
body.sidebar-collapsed.has-shell .sidebar { width:76px; flex:0 0 76px; padding:16px 10px; }
body.sidebar-collapsed .side-nav a,
body.sidebar-collapsed .sidebar a { justify-content:center; padding:12px; gap:0; }
body.sidebar-collapsed .sidebar .lbl,
body.sidebar-collapsed .brand.app-brand .lbl { display:none; }
body.sidebar-collapsed.has-shell header { background:linear-gradient(90deg,#132a52 0,#132a52 76px,#fff 76px); }
body.sidebar-collapsed .sidebar-toggle svg { transform:rotate(180deg); }
@media (max-width:860px){
  body.has-shell header { background:#132a52; }
  body.has-shell .bar nav > a, body.has-shell .topbell { color:#fff; }
  .sidebar-toggle { display:none; } /* the sidebar itself is hidden below 860px in favor of the bottom nav */
}

/* Mockup KPI tile: soft-tint circle icon (left) + label + colored number. */
.mkpi-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:14px; margin-bottom:18px; }
.mkpi { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:18px 20px; display:flex; align-items:center; gap:14px; box-shadow:0 8px 24px rgba(16,32,64,.05); }
.mkpi .ic { width:46px; height:46px; flex:0 0 46px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.mkpi .ic svg { width:22px; height:22px; fill:none; stroke-width:2; }
.mkpi .l { color:var(--muted); font-size:13px; }
.mkpi .n { font-size:22px; font-weight:800; letter-spacing:-.4px; }
.mkpi .ic.g{background:#e7f9ee;stroke:#16a34a} .mkpi .ic.r{background:#fdecec;stroke:#dc2626}
.mkpi .ic.b{background:#e9f0ff;stroke:#2f6bff} .mkpi .ic.v{background:#f1eafe;stroke:#7c3aed}

/* Page header with a floating illustration on the right. */
.page-head.with-illus { align-items:center; }
.page-head .head-illus { width:120px; height:120px; flex:0 0 auto; }
@media (max-width:640px){ .page-head .head-illus { display:none; } }

/* --- Wallet: balance summary strip + mini-stats --- */
.wsum { background:var(--card); border:1px solid var(--line); border-radius:20px; padding:22px 26px;
  box-shadow:0 8px 24px rgba(16,32,64,.05); display:flex; align-items:center; gap:28px; flex-wrap:wrap; margin-bottom:18px; }
.wsum .wbal { display:flex; align-items:center; gap:16px; }
.wsum .wbal .ic { width:54px; height:54px; flex:0 0 54px; border-radius:50%; background:#e9f0ff; display:flex; align-items:center; justify-content:center; }
.wsum .wbal .ic svg { width:26px; height:26px; }
.wsum .wbal .l { color:var(--muted); font-size:13px; }
.wsum .wbal .n { font-size:30px; font-weight:800; letter-spacing:-.6px; }
.wsum .wbal .pill { display:inline-flex; align-items:center; margin-top:4px; padding:3px 10px; border-radius:999px; font-size:12px; font-weight:700; }
.wsum .wbal .pill.ok { background:#e7f9ee; color:#16a34a; }
.wsum .wstats { display:flex; gap:26px; margin-left:auto; flex-wrap:wrap; }
.wsum .wstats .st { padding-left:22px; border-left:1px solid var(--line); }
.wsum .wstats .st:first-child { border-left:0; padding-left:0; }
.wsum .wstats .l { color:var(--muted); font-size:12px; }
.wsum .wstats .n { font-size:16px; font-weight:700; margin-top:2px; font-variant-numeric:tabular-nums; }
@media (max-width:760px){ .wsum { flex-direction:column; align-items:flex-start; } .wsum .wstats { margin-left:0; } }

/* Selected amount chip gets a small checkmark badge (no JS/DOM change needed). */
.amount-pad button[aria-pressed="true"] { position:relative; }
.amount-pad button[aria-pressed="true"]::after { content:"✓"; position:absolute; top:-8px; right:-8px; width:19px; height:19px;
  border-radius:50%; background:var(--primary); color:#fff; font-size:11px; font-weight:800; display:flex; align-items:center; justify-content:center; }

/* --- Small "link another child" card, sits beside a primary form --- */
.mini-link-card { flex:0 0 240px; background:var(--card); border:1px solid var(--line); border-radius:20px; padding:22px;
  text-align:center; display:flex; flex-direction:column; align-items:center; }
.mini-link-card img { width:76px; height:76px; margin-bottom:4px; }
.mini-link-card h3 { font-size:15.5px; margin:6px 0 4px; }
.mini-link-card p { color:var(--muted); font-size:13px; margin:0 0 14px; }

/* --- Security reassurance strip --- */
.secbar { display:flex; align-items:center; gap:14px; background:#eef4ff; border-radius:16px; padding:16px 20px; margin-top:4px; }
.secbar img { width:40px; height:40px; flex:0 0 40px; }
.secbar b { font-size:14.5px; display:block; }
.secbar span { color:var(--muted); font-size:13px; }
.secbar .badge { margin-left:auto; width:38px; height:38px; flex:0 0 38px; border-radius:50%; background:#dbe7ff; display:flex; align-items:center; justify-content:center; }
.secbar .badge svg { width:18px; height:18px; }
@media (max-width:560px){ .secbar { flex-wrap:wrap; } .secbar .badge { margin-left:0; } }
.secbar.rose { background:#fdf2f6; }
.secbar.rose .badge { background:#fbcfe1; }
.secbar.rose .badge svg { stroke:#e11d48; }

/* --- topbar user menu (dropdown) --- */
.usermenu { position:relative; }
.usermenu-btn { display:flex; align-items:center; gap:9px; background:#fff; border:1px solid #93c5fd;
  border-radius:999px; padding:5px 12px 5px 5px; cursor:pointer; font:inherit; color:var(--text); line-height:1; transition:.12s; }
.usermenu-btn:hover { border-color:var(--primary); box-shadow:0 1px 3px rgba(37,99,235,.14); }
.um-av { width:30px; height:30px; flex:0 0 30px; border-radius:50%; background:var(--primary); color:#fff;
  font-weight:800; font-size:12px; display:flex; align-items:center; justify-content:center; }
.um-name { font-size:14px; font-weight:600; color:var(--text); max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.um-caret { width:15px; height:15px; flex:0 0 15px; color:var(--muted); transition:transform .15s; }
.usermenu-btn[aria-expanded="true"] .um-caret { transform:rotate(180deg); }
.usermenu-pop { position:absolute; right:0; top:calc(100% + 8px); min-width:214px; background:#fff;
  border:1px solid var(--line); border-radius:14px; box-shadow:0 14px 36px rgba(15,23,42,.16); padding:6px;
  z-index:60; opacity:0; transform:translateY(-6px); pointer-events:none; transition:opacity .14s, transform .14s; }
.usermenu.open .usermenu-pop { opacity:1; transform:translateY(0); pointer-events:auto; }
.usermenu-head { padding:8px 12px 6px; }
.usermenu-head .n { font-weight:700; font-size:14px; color:var(--text); }
.usermenu-head .r { color:var(--muted); font-size:12px; margin-top:1px; }
.usermenu-sep { height:1px; background:var(--line); margin:6px 4px; }
.usermenu-pop .usermenu-item { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:9px;
  color:var(--text); font-size:14px; font-weight:600; }
.usermenu-pop button.usermenu-item { width:100%; border:0; background:none; font:inherit; text-align:left; cursor:pointer; }
.usermenu-pop .usermenu-item:hover { background:var(--primary-tint); color:var(--primary-dark); text-decoration:none; }
.usermenu-pop .usermenu-item.danger { color:var(--danger); }
.usermenu-pop .usermenu-item.danger:hover { background:#fef2f2; color:#b91c1c; }

/* --- Guía de uso (role-aware site guide modal) --- */
.guide-overlay { position:fixed; inset:0; background:rgba(10,20,40,.5); backdrop-filter:blur(2px);
  display:flex; align-items:center; justify-content:center; padding:20px; z-index:200; }
.guide-overlay[hidden] { display:none; }
.guide-modal { position:relative; background:#fff; border-radius:22px; width:100%; max-width:480px;
  max-height:min(640px,90vh); overflow-y:auto; padding:30px 26px 22px; box-shadow:0 30px 70px rgba(10,20,40,.35); }
.guide-close { position:absolute; top:16px; right:16px; width:34px; height:34px; border-radius:50%; border:0;
  background:#f1f5f9; color:#475569; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.guide-close svg { width:16px; height:16px; }
.guide-close:hover { background:#e2e8f0; }
.guide-head h2 { font-size:22px; font-weight:800; margin:8px 0 4px; letter-spacing:-.4px; }
.guide-list { display:flex; flex-direction:column; gap:8px; margin-top:18px; }
.guide-item { display:flex; align-items:center; gap:14px; padding:12px; border-radius:14px; border:1px solid var(--line); color:var(--text); }
.guide-item:hover { border-color:#cfe0ff; background:var(--primary-tint); text-decoration:none; }
.guide-item .gi-ico { width:40px; height:40px; flex:0 0 40px; border-radius:11px; background:#eef4ff;
  display:flex; align-items:center; justify-content:center; font-size:19px; }
.guide-item .gi-txt { flex:1; min-width:0; display:flex; flex-direction:column; }
.guide-item .gi-txt b { font-size:14.5px; font-weight:700; }
.guide-item .gi-txt span { font-size:12.5px; color:var(--muted); }
.guide-item .gi-arrow { width:16px; height:16px; color:#94a3b8; flex:0 0 16px; }
@media (max-width:480px){ .guide-modal { padding:24px 18px 18px; } }
.umi-ico { width:18px; text-align:center; font-size:15px; }
@media (max-width:520px){ .um-name { display:none; } }
