:root {
  color-scheme: light;
  --canvas: #fbfdfd;
  --ink: #0c1116;
  --muted: #606d73;
  --green: #15b184;
  --green-dark: #006449;
  --green-soft: #dcf8ed;
  --line: #e4eaec;
  --surface: #fff;
  --surface-soft: #f3f7f5;
  --danger: #a33125;
  font-family: MiSans, "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; letter-spacing: 0; -webkit-tap-highlight-color: transparent; }
html { min-width: 320px; scroll-padding-top: 80px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: inherit; line-height: 1.6; }
button, input, textarea, select { font: inherit; }
button, a, summary { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 4px; }
::selection { background: var(--green-soft); color: var(--green-dark); }
.site-header { position: sticky; top: 0; z-index: 85; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 58px; padding: 0 30px; border-bottom: 1px solid #edf1f2; background: rgb(251 253 253 / 97%); }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 650; white-space: nowrap; }
.brand img { width: 26px; height: 26px; object-fit: contain; }
.header-context { color: var(--muted); font-size: 13px; }
.site-back, .nav-workbench, .header-link { display: inline-flex; align-items: center; justify-self: end; min-height: 44px; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 13px; }
.site-back:hover, .nav-workbench:hover, .header-link:hover, .brand:hover { color: var(--green-dark); }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 13px; }
.site-nav a, .site-nav button { display: inline-flex; align-items: center; min-height: 44px; border: 0; background: transparent; color: var(--muted); }
.site-nav .active, .site-nav [aria-current="page"] { color: var(--green-dark); font-weight: 650; }
.eyebrow { color: var(--green-dark); font-size: 13px; font-weight: 650; line-height: 1.5; }
.app { width: min(1060px, calc(100% - 80px)); max-width: 1060px; min-height: calc(100dvh - 58px); margin: 0 auto; }
.page { display: none; padding-bottom: 72px; }
.page.active { display: block; }
.nav, .workspace-heading, .workbench-intro { position: static; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px 0 28px; border: 0; background: transparent; color: var(--ink); }
.nav h1, .workspace-heading h1, .workbench-intro h1 { margin-top: 10px; font-size: 32px; line-height: 1.4; font-weight: 720; }
.nav .page-description, .workspace-heading > p, .workbench-intro > p { margin-top: 12px; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.8; }
.nav small { color: var(--muted); font-size: 12px; font-weight: 400; }
.session-pill, .session-label { display: inline-flex; flex-shrink: 0; align-items: center; gap: 7px; width: fit-content; padding: 5px 10px; border-radius: 6px; background: var(--green-soft); color: var(--green-dark); font-size: 12px; font-weight: 500; white-space: nowrap; }
.session-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green-dark); }
.content { padding: 0; }
.card { margin-bottom: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: none; }
.card h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; color: var(--ink); font-size: 17px; font-weight: 650; line-height: 1.5; }
.card h2 small { color: var(--muted); font-size: 12px; font-weight: 400; }
.card-description { margin: -6px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.8; }
label { display: block; margin: 16px 0 8px; color: #33463e; font-size: 13px; font-weight: 550; }
input[type="text"], input[type="password"], input[type="search"], input[type="number"], textarea, select { width: 100%; min-width: 0; min-height: 46px; height: 46px; padding: 0 13px; border: 1px solid #d2dcd7; border-radius: 8px; outline: none; background: var(--canvas); color: var(--ink); font-size: 15px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #7b8983; opacity: 1; }
input:focus, textarea:focus, select:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px #dcf8ed; }
input[aria-invalid="true"] { border-color: var(--danger); }
input[type="checkbox"], input[type="radio"] { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--green-dark); cursor: pointer; }
textarea { min-height: 116px; height: auto; padding: 12px 13px; resize: vertical; line-height: 1.7; }
select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%23606d73' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.btn, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; height: auto; margin-top: 16px; padding: 11px 20px; border: 1px solid transparent; border-radius: 8px; background: var(--green); color: #06392b; font-size: 14px; font-weight: 650; line-height: 1.5; text-align: center; }
.btn:hover, .button:hover { background: #10a078; color: #052c21; }
.btn:active, .button:active { opacity: .86; }
.btn:disabled, .button:disabled { border-color: transparent; background: #dfeae5; color: #73827a; cursor: not-allowed; }
.btn.green, .btn.purple { background: var(--green); color: #06392b; }
.btn.green:disabled, .btn.purple:disabled, .btn.red:disabled, .btn.gray:disabled { background: #dfeae5; color: #73827a; cursor: not-allowed; }
.btn.red { background: #fcf0ee; color: var(--danger); }
.btn.red:hover { background: #f8e3df; }
.btn.gray, .button-secondary { background: var(--surface-soft); color: #40574b; }
.btn.gray:hover, .button-secondary:hover { background: #e8efeb; }
.btn.small { min-height: 44px; height: auto; padding: 9px 14px; margin-top: 10px; font-size: 13px; }
.status { display: none; margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 400; line-height: 1.7; overflow-wrap: anywhere; }
.status.ok { display: block; background: var(--green-soft); color: var(--green-dark); }
.status.err { display: block; background: #fcf0ee; color: var(--danger); }
.status.load { display: block; background: var(--surface-soft); color: #40574b; }
.hint { margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-wrap; }
.search-box { display: flex; align-items: stretch; gap: 12px; }
.search-box input { flex: 1; min-width: 0; }
.search-box .btn { flex: 0 0 104px; width: 104px; margin: 0; }
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-variant-numeric: tabular-nums; }
.chip { display: inline-flex; align-items: center; width: fit-content; gap: 5px; padding: 5px 10px; border: 0; border-radius: 6px; background: var(--surface-soft); color: var(--muted); font-size: 12px; }
.chip b { margin-left: 2px; color: var(--ink); font-weight: 650; }
.filters { display: flex; gap: 12px; margin-top: 16px; }
.filters select { min-height: 44px; height: 44px; max-width: 240px; background-color: var(--canvas); font-size: 13px; }
.list { margin-top: 20px; }
.kcard { margin: 0; padding: 17px 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; cursor: pointer; }
.kcard:last-child { border-bottom: 0; }
.kcard:hover, .kcard:active { background: #f5faf7; }
.kc-top { display: flex; align-items: center; gap: 10px; }
.kc-name { max-width: 45%; overflow: hidden; color: var(--ink); font-size: 15px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.kmeta { flex: 1; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.kc-bot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-top: 9px; padding: 0; border: 0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.kc-code { color: var(--green-dark); font-weight: 550; }
.kc-price { color: var(--ink); font-weight: 650; }
.kc-price2 { color: var(--muted); }
.tag { display: inline-block; width: fit-content; padding: 3px 7px; border-radius: 5px; font-size: 11px; line-height: 1.5; white-space: nowrap; }
.t1, .t4 { background: var(--green-soft); color: var(--green-dark); }
.t2 { background: #fff3dd; color: #8a5916; }
.t3, .t6, .t9 { background: #eef2f0; color: var(--muted); }
.t5 { background: #fcf0ee; color: var(--danger); }
.empty { padding: 40px 8px; color: var(--muted); font-size: 13px; text-align: center; }
.empty .e { display: block; margin-bottom: 10px; color: #8a9d93; font-size: 32px; }
.query-empty, .empty-start { padding: 48px 20px 64px; text-align: center; }
.empty-symbol { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 12px; background: var(--green-soft); color: var(--green-dark); font-size: 36px; line-height: 1; }
.query-empty h2, .empty-start h2 { margin-bottom: 8px; font-size: 17px; font-weight: 600; }
.query-empty p, .empty-start p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.mask { position: fixed; inset: 0; z-index: 99; display: none; background: rgb(12 28 22 / 38%); }
.sheet { position: fixed; left: 50%; bottom: 0; z-index: 100; width: min(560px, 100%); max-width: 560px; max-height: min(86dvh, 820px); padding: 24px 24px calc(24px + env(safe-area-inset-bottom)); overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; background: white; box-shadow: 0 -8px 48px #0c241d14; transform: translateX(-50%); }
.sheet h3 { margin-bottom: 20px; color: var(--ink); font-size: 20px; font-weight: 650; }
.sheet .row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #edf1ef; color: var(--muted); font-size: 13px; }
.sheet .row b { color: var(--ink); font-weight: 550; text-align: right; overflow-wrap: anywhere; }
.sheet .btns { display: flex; gap: 10px; margin-top: 20px; }
.sheet .btns .btn { flex: 1; min-width: 0; min-height: 44px; height: auto; margin: 0; padding-inline: 10px; font-size: 13px; }
.sheet .btn { min-height: 44px; }
.opt { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 12px 4px; border-bottom: 1px solid #edf1ef; font-size: 13px; }
.opt:last-child { border-bottom: 0; }
.opt input[type="radio"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green-dark); }
.opt .sub { color: var(--muted); font-size: 12px; line-height: 1.7; }
.q { margin-bottom: 8px; padding: 12px; border-radius: 8px; background: var(--surface-soft); font-size: 13px; line-height: 1.8; }
.q b, .demand-box b { color: var(--green-dark); }
.qa { margin-top: 4px; color: var(--ink); white-space: pre-wrap; }
.tbl { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.tbl th { padding: 12px 10px; border-bottom: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); font-weight: 550; text-align: left; white-space: nowrap; }
.tbl td { padding: 12px 10px; border-bottom: 1px solid #edf1ef; color: var(--ink); vertical-align: top; white-space: nowrap; }
.demand-box { padding: 16px; border-radius: 8px; background: var(--surface-soft); color: var(--ink); font-size: 13px; line-height: 2; overflow-wrap: anywhere; }
.login-note { margin-top: 16px; padding: 12px; border-radius: 8px; background: var(--surface-soft); color: var(--muted); font-size: 13px; line-height: 1.8; }
details summary { min-height: 44px; margin-top: 10px; padding-block: 10px; color: var(--green-dark); font-size: 13px; cursor: pointer; }
code { padding: 2px 5px; border-radius: 4px; background: var(--surface-soft); font-size: 12px; }
.tabbar { position: fixed; top: 0; left: 50%; bottom: auto; z-index: 90; display: flex; align-items: center; gap: 4px; width: 390px; max-width: 390px; min-height: 58px; padding: 0; border: 0; background: transparent; transform: translateX(-50%); }
.tabbar .tb { display: inline-flex; flex: 1; flex-direction: row; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; }
.tabbar .tb .ic { display: inline-flex; width: 18px; height: 18px; font-size: 18px; line-height: 1; }
.tabbar svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar .tb.active { background: var(--green-soft); color: var(--green-dark); font-weight: 650; }
.tabbar .tb:hover { color: var(--green-dark); }
body:not(.is-locked) .header-context { visibility: hidden; }
body.is-locked .tabbar { display: none; }
.m-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.m-run { margin-bottom: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.m-run .hdr { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; cursor: pointer; }
.m-run .body { display: none; max-height: 360px; margin-top: 14px; padding-top: 14px; overflow: auto; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.9; }
.m-run.open .body { display: block; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: 16px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--green-dark); font-size: 13px; }
.back:hover { background: var(--surface-soft); }
.m-topbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--muted); font-size: 13px; }
.m-topbar b { color: var(--ink); font-weight: 600; }
.m-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.m-toolbar h2 { color: var(--ink); font-size: 17px; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 8px; }
.tbl-wrap .tbl { min-width: 640px; margin-top: 0; }
.m-task { overflow-wrap: anywhere; }
.m-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.m-tab { min-height: 44px; padding: 9px 14px; border: 1px solid transparent; border-radius: 7px; background: var(--surface-soft); color: var(--muted); font-size: 12px; cursor: pointer; }
.m-tab b { color: var(--green-dark); }
.m-tab.on { border-color: #bce8d6; background: var(--green-soft); color: var(--green-dark); }
.m-tab.on b { color: var(--green-dark); }
#mDetailTable tr { cursor: pointer; }
#mDetailTable tr:hover { background: var(--surface-soft); }
.m-bar, .m-queue { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; padding: 12px; border: 0; border-radius: 8px; background: var(--surface-soft); color: var(--muted); font-size: 13px; }
.m-queue-run { background: #fff5e2; color: #7b5416; }
.m-queue-done { background: var(--green-soft); color: var(--green-dark); }
.m-queue-err { background: #fcf0ee; color: var(--danger); }
.m-btn { min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font-size: 12px; cursor: pointer; }
.m-btn-p { border-color: #bce8d6; color: var(--green-dark); }
.m-btn-p:hover { background: var(--green-soft); color: var(--green-dark); }
.m-cb { width: 18px; height: 18px; accent-color: var(--green-dark); cursor: pointer; }

/* Shared entry and platform sign-in surfaces. */
.access-page { background-image: radial-gradient(#e9f1ed .65px, transparent .65px); background-size: 24px 24px; }
.access-page .header-context { visibility: visible; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; gap: 96px; width: min(1060px, calc(100% - 80px)); margin: 0 auto; padding: 96px 0 72px; }
.auth-intro { padding-top: 16px; }
.auth-intro h1 { margin: 14px 0 20px; font-size: 48px; line-height: 1.3; font-weight: 750; }
.product-highlight { display: inline; padding: 3px 8px 7px; border-radius: 12px; background: var(--green-soft); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.auth-description { max-width: 430px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.auth-steps { display: flex; gap: 0; margin: 38px 0 0; padding: 0; list-style: none; }
.auth-steps li, .auth-steps .step { flex: 1; padding-right: 16px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.auth-steps .step-number { display: block; margin-bottom: 8px; color: #75867c; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.auth-steps .current { color: var(--green-dark); font-weight: 650; }
.auth-steps .current .step-number { color: var(--green-dark); }
.auth-panel { min-width: 0; margin: 0; padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: none; }
.auth-panel .panel-step { margin-bottom: 10px; color: var(--green-dark); font-size: 12px; font-weight: 650; }
.auth-panel h2 { display: block; margin-bottom: 10px; color: var(--ink); font-size: 24px; font-weight: 650; line-height: 1.5; }
.auth-panel .panel-description { color: var(--muted); font-size: 13px; line-height: 1.8; }
.auth-panel form { margin-top: 24px; }
.auth-panel label { margin-top: 20px; }
.auth-panel form > label:first-child { margin-top: 0; }
.password-field { position: relative; }
.password-field input { padding-right: 66px; }
.password-toggle { position: absolute; top: 1px; right: 1px; display: inline-flex; align-items: center; justify-content: center; width: 60px; min-height: 44px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--green-dark); font-size: 12px; font-weight: 550; }
.password-toggle:hover { background: var(--green-soft); }
.form-error, .error { min-height: 28px; padding-top: 6px; color: var(--danger); font-size: 12px; line-height: 1.7; }
.auth-panel .btn { margin-top: 6px; }
.login-warning, .platform-warning, .session-warning, .login-notice { margin-top: 24px; padding: 14px 16px; border-radius: 8px; background: #fff7e8; color: #795319; font-size: 12px; font-weight: 400; line-height: 1.8; }
.login-warning strong, .platform-warning strong, .session-warning strong { display: block; margin-bottom: 5px; color: #704811; font-size: 13px; font-weight: 650; }
.account-back { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 12px; color: var(--green-dark); font-size: 13px; }
.account-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.auth-footnote, .account-footnote { margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.8; text-align: center; }
.access-footer { width: min(1060px, calc(100% - 80px)); margin: 0 auto; padding: 0 0 28px; color: var(--muted); font-size: 12px; }
#pageMe.active { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; gap: 96px; padding-top: 72px; }
.account-heading { display: block; padding: 30px 0 0; }
.account-heading h1 { margin-top: 14px; font-size: 44px; line-height: 1.35; }
.account-heading .page-description { max-width: 390px; font-size: 15px; line-height: 1.9; }
.account-content { min-width: 0; }
.account-card { margin-bottom: 0; padding: 28px; border-radius: 14px; }
.login-steps { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin: 0 0 28px; padding: 0 0 24px; border-bottom: 1px solid var(--line); list-style: none; }
.login-steps li { display: flex; align-items: center; gap: 7px; color: #687970; font-size: 12px; white-space: nowrap; }
.login-steps li > span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #f0f4f2; color: var(--muted); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.login-steps li.complete { color: var(--green-dark); }
.login-steps li.complete > span { background: var(--green-soft); color: var(--green-dark); }
.login-steps li.current { color: var(--green-dark); font-weight: 650; }
.login-steps li.current > span { background: var(--green-dark); color: white; }
#loginState { color: var(--green-dark); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
#loginState:not(:empty) { margin-bottom: 16px; }
#loginForm > label:first-child { margin-top: 0; }
.consent-label { display: flex; align-items: flex-start; gap: 9px; min-height: 44px; margin: 14px 0 0; padding: 9px 0; color: #40574b; font-size: 13px; font-weight: 400; cursor: pointer; }
.consent-label input { margin: 2px 0 0; }
#loginBtn { margin-top: 10px; }
.account-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-block: 16px; color: var(--muted); font-size: 13px; }
#accountLabel { color: var(--ink); font-weight: 600; }
.workspace-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

@media (min-width: 761px) {
  .search-card { padding: 28px; }
  #pageBatch > .content { max-width: 800px; }
}
@media (max-width: 1100px) {
  .auth-layout, #pageMe.active { gap: 48px; }
  .auth-intro h1 { font-size: 42px; }
  .account-heading h1 { font-size: 38px; }
  .login-steps { gap: 6px; }
  .login-steps li { gap: 5px; font-size: 11px; }
}
@media (max-width: 760px) {
  .site-header { min-height: 58px; padding-inline: 20px; gap: 12px; }
  .app { width: calc(100% - 40px); }
  .header-context { font-size: 12px; }
  .site-back { font-size: 12px; }
  .site-nav { gap: 14px; }
  .nav, .workspace-heading, .workbench-intro { align-items: flex-start; padding: 32px 0 24px; }
  .nav h1, .workspace-heading h1, .workbench-intro h1 { font-size: 27px; }
  .nav .page-description { font-size: 13px; }
  .session-pill { display: none; }
  .card { padding: 20px; }
  .tabbar { top: auto; bottom: 0; width: 100%; max-width: none; min-height: 66px; gap: 0; padding: 4px 12px calc(4px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgb(251 253 253 / 98%); }
  .tabbar .tb { flex-direction: column; gap: 4px; min-height: 56px; padding: 6px 8px; border-radius: 8px; font-size: 11px; }
  .tabbar .tb .ic { width: 21px; height: 21px; }
  .tabbar .tb.active { background: transparent; color: var(--green-dark); }
  body:not(.is-locked) .header-context { visibility: visible; }
  .page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .m-grid { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr; gap: 28px; width: min(480px, calc(100% - 40px)); padding: 36px 0 40px; }
  .auth-intro { padding: 0; }
  .auth-intro h1 { margin: 12px 0 16px; font-size: 34px; }
  .auth-description { max-width: none; font-size: 14px; line-height: 1.9; }
  .auth-steps { margin-top: 24px; }
  .auth-steps li, .auth-steps .step { font-size: 12px; }
  .auth-steps .step-number { margin-bottom: 4px; }
  .auth-panel { padding: 24px; }
  .auth-panel h2 { font-size: 21px; }
  .auth-panel form { margin-top: 22px; }
  .access-footer { width: min(480px, calc(100% - 40px)); padding-bottom: 24px; text-align: center; }
  #pageMe.active { grid-template-columns: 1fr; gap: 24px; max-width: 480px; margin-inline: auto; padding-top: 0; }
  .account-heading { padding: 32px 0 0; }
  .account-heading h1 { font-size: 30px; }
  .account-heading .page-description { font-size: 14px; }
  .account-card { padding: 24px; }
  .login-steps { gap: 10px; }
  .login-steps li { gap: 6px; font-size: 12px; }
  .is-locked #pageMe.active { padding-bottom: 40px; }
  .sheet { padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .site-header { grid-template-columns: auto 1fr auto; padding-inline: 16px; gap: 12px; }
  .brand { gap: 7px; font-size: 14px; }
  .brand img { width: 25px; height: 25px; }
  .header-context { font-size: 11px; text-align: center; }
  .site-back { gap: 4px; font-size: 11px; }
  .app { width: calc(100% - 32px); }
  .nav h1 { font-size: 25px; }
  .nav .page-description { max-width: 320px; }
  .card { padding: 18px; }
  .card h2 { font-size: 16px; }
  .search-box { gap: 8px; }
  .search-box .btn { flex-basis: 72px; width: 72px; padding-inline: 12px; }
  .filters { gap: 8px; }
  .filters select { padding-left: 10px; }
  .kc-top { gap: 7px; }
  .kc-name { max-width: 44%; font-size: 14px; }
  .kmeta { font-size: 11px; }
  .query-empty { padding: 36px 12px 48px; }
  .query-empty p { max-width: 280px; margin-inline: auto; }
  .auth-layout { width: calc(100% - 32px); padding-top: 30px; }
  .auth-intro h1 { font-size: 32px; }
  .product-highlight { padding-inline: 6px; border-radius: 9px; }
  .auth-panel, .account-card { padding: 22px; }
  .login-steps { gap: 6px; margin-bottom: 24px; padding-bottom: 20px; }
  .login-steps li { gap: 5px; font-size: 11px; }
  .login-steps li > span { width: 22px; height: 22px; }
  .session-warning, .login-warning { padding: 13px; }
  input[type="text"], input[type="password"], input[type="search"], input[type="number"], textarea, select { font-size: 16px; }
  .m-task b { font-size: 13px; }
}
@media (max-width: 360px) {
  .header-context { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .auth-intro h1 { font-size: 28px; }
  .auth-panel, .account-card { padding: 18px; }
  .login-steps li { gap: 4px; font-size: 10px; }
  .login-steps li > span { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
