/* vCard — shared styles (site, consoles, public card) */
:root {
  --bg: #f4f6fb; --surface: #ffffff; --surface-2: #f8fafc; --border: #e3e8f0; --text: #0f172a; --muted: #64748b;
  --brand: #2f5bea; --brand-ink: #ffffff; --brand-soft: #e8eefe; --accent: #0ea5a4;
  --ok: #15803d; --ok-soft: #dcfce7; --err: #b91c1c; --err-soft: #fee2e2; --warn: #a16207; --warn-soft: #fef3c7;
  --radius: 12px; --shadow: 0 1px 2px rgba(15,23,42,.05), 0 6px 24px rgba(15,23,42,.06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120; --surface: #111a2e; --surface-2: #0f172a; --border: #22304a; --text: #e5eaf3; --muted: #93a1b8;
    --brand: #6d8cff; --brand-soft: #1b2850; --ok-soft: #12321f; --err-soft: #3b1414; --warn-soft: #3a2c0a; --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1120; --surface: #111a2e; --surface-2: #0f172a; --border: #22304a; --text: #e5eaf3; --muted: #93a1b8;
  --brand: #6d8cff; --brand-soft: #1b2850; --ok-soft: #12321f; --err-soft: #3b1414; --warn-soft: #3a2c0a; --shadow: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font: 15px/1.55 var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
img { max-width: 100%; }

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .6em 1.1em; border-radius: 9px; border: 1px solid var(--brand);
  background: var(--brand); color: var(--brand-ink); font: 600 .92rem var(--font); cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn-sm { padding: .35em .75em; font-size: .82rem; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; }
.linkbtn.danger { color: var(--err); }
.form label { display: block; font-weight: 600; font-size: .88rem; margin: 0 0 .9rem; }
.form label small { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; margin-top: .3rem; padding: .62em .75em; border: 1px solid var(--border); border-radius: 9px; background: var(--surface);
  color: var(--text); font: 400 .95rem var(--font); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
input[type=checkbox], input[type=radio] { width: auto; margin: 0 .4em 0 0; vertical-align: middle; accent-color: var(--brand); }
input[type=color] { padding: 2px; height: 42px; }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex !important; align-items: flex-start; gap: .2em; font-weight: 400 !important; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.field-err input, .field-err select, .field-err textarea { border-color: var(--err); }
.flash { padding: .7em 1em; border-radius: 9px; margin: 0 0 1rem; font-size: .92rem; }
.flash.ok { background: var(--ok-soft); color: var(--ok); } .flash.err { background: var(--err-soft); color: var(--err); }
.flash.info { background: var(--brand-soft); color: var(--text); }

/* Auth page */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1000px 500px at 10% -10%, var(--brand-soft), transparent), var(--bg); }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.auth-brand { display: flex; align-items: center; gap: .6em; font-weight: 800; font-size: 1.1rem; margin-bottom: 1.4rem; color: var(--text); }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--accent)); display: grid; place-items: center; color: #fff; font-weight: 800; }
.tabs { display: flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 4px; margin-bottom: 1.2rem; }
.tabs button { flex: 1; border: 0; background: none; padding: .55em; border-radius: 7px; font: 600 .9rem var(--font); color: var(--muted); cursor: pointer; }
.tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.auth-foot { text-align: center; margin-top: 1.2rem; font-size: .82rem; color: var(--muted); }
.cf-turnstile { margin: 0 0 1rem; min-height: 65px; }

/* Console layout */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: linear-gradient(90deg, var(--surface) 249px, var(--border) 249px 250px, transparent 250px); }
.side { background: var(--surface); border-right: 1px solid var(--border); padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .auth-brand { margin: 4px 8px 18px; }
.nav a { display: flex; align-items: center; gap: .65em; padding: .55em .75em; border-radius: 9px; color: var(--text); font-weight: 500; font-size: .93rem; margin-bottom: 2px; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.on { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.nav .grp { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 10px 6px; font-weight: 700; }
.nav svg { width: 18px; height: 18px; flex: none; }
.main { min-width: 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 28px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.top h1 { font-size: 1.2rem; margin: 0; }
.top .who { display: flex; align-items: center; gap: .6em; font-size: .9rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); color: var(--brand); display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.content { padding: 24px 28px 60px; max-width: 1240px; }
.menu-btn { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 6px 9px; color: var(--text); cursor: pointer; }
.badge-role { font-size: .72rem; background: var(--brand-soft); color: var(--brand); padding: .15em .55em; border-radius: 99px; font-weight: 700; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; background: none; }
  .side { position: fixed; z-index: 20; left: 0; top: 0; width: 270px; transform: translateX(-105%); transition: transform .2s; box-shadow: var(--shadow); }
  .side.open { transform: none; }
  .menu-btn { display: inline-block; }
  .top, .content { padding-left: 16px; padding-right: 16px; }
  .top .who .nm { display: none; }
}

/* Panels, stats, tables */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.6rem; line-height: 1.2; }
.stat span { color: var(--muted); font-size: .85rem; }
.toolbar { display: flex; gap: .6rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .search { display: flex; gap: .5rem; flex: 1; max-width: 520px; }
.toolbar .search input, .toolbar select { margin: 0; }
.toolbar select { width: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: .7em .9em; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl th { background: var(--surface-2); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.act { white-space: nowrap; text-align: right; }
.tbl td.act > * + * { margin-left: .7em; }
.chk { width: 36px; }
.pill { display: inline-block; font-size: .74rem; font-weight: 700; padding: .18em .6em; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.pill.active, .pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.suspended, .pill.inactive { background: var(--err-soft); color: var(--err); }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.pager { display: flex; gap: .4rem; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: .88rem; }
.bulkbar { display: none; align-items: center; gap: .8rem; padding: .6em .9em; background: var(--brand-soft); border-radius: 10px; margin-bottom: 10px; font-size: .9rem; }
.bulkbar.show { display: flex; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 8px; }
.chart i { flex: 1; background: var(--brand); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.chart i:hover { opacity: 1; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { display: flex; justify-content: space-between; gap: 1rem; padding: .6em 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.list-plain li:last-child { border: 0; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 1000px) { .two-col { grid-template-columns: 1fr; } }
.two-col > * { min-width: 0; }
.list-plain li > span:first-child { min-width: 0; overflow-wrap: anywhere; }

/* Permission matrix */
.perm-matrix td.pc, .perm-matrix th.pc { text-align: center; width: 90px; }
.perm-matrix tr.pm-cat td { background: var(--surface-2); font-weight: 700; }
.perm-matrix .pm-indent { padding-left: 1.4em; display: inline-block; }
.pm-na { color: var(--muted); }

/* Card editor + cards grid */
.editor { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
.editor .preview { position: sticky; top: 80px; }
@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } .editor .preview { position: static; } }
.phone { width: 100%; max-width: 360px; margin: 0 auto; border: 10px solid #0f172a; border-radius: 34px; overflow: hidden; height: 680px; background: #fff; }
.phone iframe { width: 100%; height: 100%; border: 0; }
.img-pick { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.img-pick .thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--border); }
.img-pick .thumb.wide { width: 120px; }
.repeat-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: .5rem; margin-bottom: .5rem; align-items: center; }
.repeat-row input { margin: 0; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ccard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ccard .band { height: 64px; }
.ccard .body { padding: 0 16px 16px; flex: 1; }
.ccard .body .avatar { width: 58px; height: 58px; border: 3px solid var(--surface); margin-top: -29px; font-size: 1.1rem; }
.ccard .meta { display: flex; gap: 1rem; color: var(--muted); font-size: .82rem; margin: .5rem 0; }
.ccard .foot { display: flex; gap: .4rem; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--border); }
.qr-box { display: inline-block; padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: #fff; line-height: 0; }
.qr-box canvas, .qr-box img { width: 120px; height: 120px; image-rendering: pixelated; }

/* Modal */
.modal-back { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: 16px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal h2 { margin-bottom: .8rem; }
.modal .actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1rem; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #0f172a; color: #fff; padding: .7em 1.2em; border-radius: 10px; z-index: 60; font-size: .9rem; box-shadow: var(--shadow); }
.toast.err { background: var(--err); }

/* Public site (landing + policies) */
.site-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1180px; margin: 0 auto; }
.site-head .auth-brand { margin: 0; }
.site-head nav { display: flex; gap: .6rem; align-items: center; }
.hero { max-width: 1180px; margin: 0 auto; padding: 60px 24px 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.02em; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.hero .cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: 0; box-shadow: var(--shadow); max-width: 330px; margin: 0 auto; overflow: hidden; }
.mock .band { height: 110px; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.mock .in { padding: 0 22px 22px; text-align: center; }
.mock .face { width: 86px; height: 86px; border-radius: 50%; background: #dbe4ff; border: 4px solid var(--surface); margin: -43px auto 8px; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; color: var(--brand); }
.mock .row { display: flex; justify-content: center; gap: 8px; margin: 14px 0; }
.mock .row span { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); }
.mock .bar { height: 42px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); margin-top: 8px; }
.features { max-width: 1180px; margin: 0 auto; padding: 20px 24px 60px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; }
.feature p { color: var(--muted); margin: 0; font-size: .93rem; }
.site-foot { border-top: 1px solid var(--border); padding: 24px; text-align: center; color: var(--muted); font-size: .86rem; }
.site-foot a { color: var(--muted); margin: 0 .5em; }
.doc { max-width: 820px; margin: 0 auto; padding: 30px 24px 60px; }
.doc h1 { font-size: 2rem; } .doc h2 { margin-top: 1.8em; }
.doc p, .doc li { color: var(--text); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 30px; } .site-head { padding: 14px 16px; } .site-head nav .hide-sm { display: none; } }

/* Phone field, login switch, OTP, SSO */
.phone-field { display: grid; grid-template-columns: 112px 1fr; gap: .4rem; margin-top: .3rem; }
.phone-field select, .phone-field input { margin: 0; }
.phone-field select { padding-right: .3em; text-overflow: ellipsis; }
.seg { display: flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 3px; margin-bottom: 1rem; }
.seg button { flex: 1; border: 0; background: none; padding: .45em; border-radius: 6px; font: 600 .85rem var(--font); color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.otp-input { font: 700 1.5rem/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .4em; text-align: center; }
.or { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .82rem; margin: 1.2rem 0 1rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.policy-bar { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--warn-soft); color: var(--text); border-radius: 10px; padding: .7em 1em; margin-bottom: 16px; font-size: .9rem; }
.verified { color: var(--ok); font-weight: 700; font-size: .8rem; }
/* v1.2: single sign-on buttons, login methods, policies, login history */
.sso-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; min-height: 44px; margin-bottom: .55rem; padding: .55em 1em; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: 600 .92rem var(--font); text-decoration: none; transition: background .15s, border-color .15s; }
.sso-btn:hover { background: var(--surface-2); border-color: var(--muted); text-decoration: none; }
.sso-btn svg { width: 20px; height: 20px; flex: none; }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.tabs a { flex: 1; text-align: center; padding: .55em; border-radius: 7px; font: 600 .9rem var(--font); color: var(--muted); text-decoration: none; }
.tabs a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.switch { position: relative; display: inline-block !important; width: 42px; height: 24px; margin: 0 !important; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--border); border-radius: 99px; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.switch input:disabled + span { opacity: .55; }
.lm-table td { vertical-align: middle; }
.lm-table .pc, .lm-table th.pc { text-align: center; width: 96px; }
.sso-cfg { border: 1px solid var(--border); border-radius: 10px; padding: .2rem 1rem; margin-bottom: .6rem; }
.sso-cfg[open] { padding-bottom: .6rem; }
.sso-cfg summary { cursor: pointer; padding: .6rem 0; list-style-position: inside; }
.sms-test { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; }
.sms-test label { flex: 1; min-width: 240px; margin-bottom: 0; }
textarea.mono, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.45; }
.pol-preview { max-height: 640px; overflow: auto; padding: 0 .4rem; font-size: .9rem; }
.pol-preview h2 { font-size: 1.05rem; } .pol-preview h3 { font-size: .95rem; }
.pol-cols { align-items: start; }
.list-plain.logins li { align-items: flex-start; }
/* Password fields: show / hide eye */
.pw-wrap { position: relative; display: block; margin-top: .3rem; }
.pw-wrap input { margin-top: 0; padding-right: 2.7rem; }
.pw-eye { position: absolute; top: 0; bottom: 0; right: 3px; width: 2.4rem; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; }
.pw-eye:hover, .pw-eye.on { color: var(--brand); }
.pw-eye:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.pw-eye svg { width: 19px; height: 19px; }
/* Backups */
.bk-top { align-items: start; }
.bk-choice { display: grid; gap: .5rem; margin-bottom: 1rem; }
.bk-opt { border: 1px solid var(--border); border-radius: 10px; padding: .6rem .8rem; margin: 0 !important; cursor: pointer; }
.bk-opt span { display: flex; flex-direction: column; }
.bk-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.bk-days { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }
.bk-day { margin: 0 !important; }
.bk-day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-day span { display: inline-block; padding: .4em .75em; border: 1px solid var(--border); border-radius: 8px; font-weight: 600; font-size: .85rem; cursor: pointer; user-select: none; }
.bk-day input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.bk-day input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
code.cron { display: inline-block; word-break: break-all; padding: .4em .6em; background: var(--surface-2); border-radius: 8px; font-size: .8rem; }
.lbl { display: block; font-weight: 600; font-size: .88rem; }
/* Help & user guide */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.help { max-width: 1180px; margin: 0 auto; padding: 0 20px 60px; }
.help-hero { text-align: center; padding: 36px 0 26px; }
.help-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: .6rem 0 .4rem; }
.help-hero .lead { color: var(--muted); max-width: 640px; margin: 0 auto 1.2rem; }
.help-find input { max-width: 560px; margin: 0 auto; display: block; padding: .8em 1em; border-radius: 12px; }
.help-layout { display: grid; grid-template-columns: 230px 1fr; gap: 32px; align-items: start; }
.help-toc { position: sticky; top: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; font-size: .9rem; }
.help-toc ol { margin: .6rem 0 0; padding-left: 1.2rem; }
.help-toc li { margin: .3rem 0; }
.help-toc a { color: var(--text); text-decoration: none; }
.help-toc a:hover, .help-toc a.on { color: var(--brand); font-weight: 600; }
.help-main { min-width: 0; }
.help-sec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; scroll-margin-top: 16px; }
.help-sec h2 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; font-size: 1.35rem; }
.help-sec h3 { font-size: 1.02rem; margin: 1.2rem 0 .4rem; }
.help-sec li { margin: .3rem 0; line-height: 1.55; }
.help-sec .num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .95rem; align-items: center; justify-content: center; flex: none; }
.help-row { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.help .steps li { margin: .45rem 0; }
.help .tip { background: var(--brand-soft); border-radius: 10px; padding: .7em 1em; font-size: .92rem; }
.help .callout { border: 1px solid var(--border); border-left: 4px solid var(--ok); border-radius: 10px; padding: .8em 1.1em; margin-top: 1rem; }
.help .callout ul { margin: .4rem 0 0; }
.help .cols2 { columns: 2; column-gap: 1.6rem; padding-left: 1.1rem; }
.help .cols2 li { break-inside: avoid; }
.help details { border: 1px solid var(--border); border-radius: 10px; padding: .1rem 1rem; margin-bottom: .6rem; }
.help details summary { cursor: pointer; font-weight: 600; padding: .7rem 0; }
.help details p { margin: 0 0 .9rem; color: var(--muted); }
.help-cta { text-align: center; padding: 30px 20px; background: var(--brand-soft); border-radius: var(--radius); }
.help-cta h2 { margin: 0 0 .3rem; }
.help-none { padding: 1rem; background: var(--surface); border-radius: 10px; }
.eye-inline { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat; color: var(--muted); }
/* Illustrations */
.shot { margin: 0; }
.shot figcaption, .tpl-row figcaption { font-size: .82rem; color: var(--muted); text-align: center; margin-top: .6rem; }
.mock-phone { width: 250px; margin: 0 auto; border: 10px solid #0f172a; border-radius: 30px; background: #0f172a; box-shadow: 0 18px 40px rgba(15,23,42,.18); }
.mock-phone .mock-screen { background: var(--surface); border-radius: 20px; padding: 22px 16px; min-height: 380px; }
.mock-win { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 14px 34px rgba(15,23,42,.12); }
.mock-bar { display: flex; gap: 5px; padding: 8px 10px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.mock-win .mock-screen { padding: 12px; font-size: .74rem; }
.m-title { font-weight: 800; font-size: 1.05rem; margin-bottom: .4rem; }
.m-muted { color: var(--muted); font-size: .75rem; margin: .3rem 0 .7rem; }
.m-center { text-align: center; }
.m-label { font-weight: 600; font-size: .72rem; margin: .5rem 0 .2rem; }
.m-input { border: 1px solid var(--border); border-radius: 8px; padding: .45em .6em; font-size: .75rem; color: var(--muted); position: relative; }
.m-input.sm { display: inline-block; min-width: 120px; padding: .3em .5em; }
.m-pw i { position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); background: var(--brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat; }
.m-btn { display: block; text-align: center; background: var(--brand); color: #fff; border-radius: 8px; padding: .55em; font-weight: 700; font-size: .78rem; margin-top: .8rem; }
.m-btn.ghost { background: none; color: var(--text); border: 1px solid var(--border); }
.m-btn.sm { display: inline-block; margin: 0; padding: .3em .7em; }
.m-code { display: flex; gap: 5px; margin: .2rem 0; }
.m-code span { flex: 1; text-align: center; border: 1px solid var(--border); border-radius: 7px; padding: .4em 0; font-weight: 800; font-family: ui-monospace, monospace; }
.m-sso { display: flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid var(--border); border-radius: 8px; padding: .5em; font-weight: 600; font-size: .75rem; margin-bottom: .4rem; }
.m-sso i { width: 13px; height: 13px; border-radius: 50%; }
.m-sso i.g { background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }
.m-sso i.ms { border-radius: 2px; background: linear-gradient(90deg, #f35325 50%, #81bc06 0) top/100% 50% no-repeat, linear-gradient(90deg, #05a6f0 50%, #ffba08 0) bottom/100% 50% no-repeat; }
.m-or { text-align: center; color: var(--muted); font-size: .7rem; margin: .5rem 0; }
.m-seg { display: flex; background: var(--surface-2); border-radius: 8px; padding: 3px; font-size: .72rem; font-weight: 600; }
.m-seg span { flex: 1; text-align: center; padding: .35em; border-radius: 6px; color: var(--muted); }
.m-seg span.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.m-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.m-stats div { border: 1px solid var(--border); border-radius: 8px; padding: 6px; }
.m-stats b { display: block; font-size: .95rem; } .m-stats span { color: var(--muted); font-size: .66rem; }
.m-panel { border: 1px solid var(--border); border-radius: 8px; padding: 8px; }
.m-ph { font-weight: 800; margin-bottom: 4px; }
.m-li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border); }
.m-li span small { display: block; color: var(--muted); }
.m-li > small { text-align: right; color: var(--muted); }
.m-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.m-table { width: 100%; border-collapse: collapse; }
.m-table th, .m-table td { text-align: left; padding: 5px 4px; border-top: 1px solid var(--border); }
.m-table th { color: var(--muted); font-weight: 600; border-top: 0; }
.phone-frame { width: 280px; height: 520px; margin: 0 auto; border: 10px solid #0f172a; border-radius: 34px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px rgba(15,23,42,.18); }
.phone-frame .phone-card { width: 375px; transform: scale(.7); transform-origin: top left; pointer-events: none; }
.phone-frame.sm { width: 200px; height: 360px; border-width: 8px; border-radius: 26px; }
.phone-frame.sm .phone-card { transform: scale(.488); }
.tpl-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tpl-row figure { margin: 0; }
.share-box { border: 1px solid var(--border); border-radius: 14px; padding: 18px; text-align: center; background: var(--surface); }
.qr-demo canvas { width: 150px; height: 150px; border-radius: 8px; }
.share-link { margin: .7rem 0; } .share-link code { display: block; font-size: .78rem; word-break: break-all; }
.share-btns { display: flex; gap: 8px; } .share-btns .m-btn { flex: 1; margin: 0; }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: center; }
.qr-grid canvas { width: 120px; height: 120px; border: 1px solid var(--border); border-radius: 8px; }
.qr-grid span { display: block; font-size: .78rem; color: var(--muted); margin-top: .3rem; }
@media (max-width: 900px) {
  .help-layout { grid-template-columns: 1fr; }
  .help-toc { position: static; }
  .help-toc ol { columns: 2; }
  .help-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .help { padding: 0 14px 40px; }
  .help-sec { padding: 18px 16px; }
  .help .cols2, .help-toc ol { columns: 1; }
  .tpl-row { grid-template-columns: 1fr; }
  .phone-frame.sm { width: 230px; height: 414px; } .phone-frame.sm .phone-card { transform: scale(.571); }
  .m-stats { grid-template-columns: repeat(2, 1fr); }
}
