:root {
--font-head: 'Unbounded', 'Trebuchet MS', system-ui, sans-serif;
--font-body: 'Golos Text', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}
:root, [data-theme="dark"] {
--bg: #17161B;
--bg-glow-1: rgba(62, 203, 221, .10);
--bg-glow-2: rgba(110, 120, 255, .07);
--surface: #2E2833;
--surface-2: #3E3642;
--ink: #F3EFF5;
--ink-soft: #A79FB0;
--accent: #3ECBDD;
--accent-dark: #2FAFC0;
--accent-soft: #3ECBDD22;
--accent-glow: #3ECBDD40;
--on-accent: #231F22;
--border: #443B4A;
--danger: #E0685F;
--danger-dark: #C9524A;
--header-bg: #1C181F;
--sidebar: #1C181F;
--green: #4ED08A;
--green-bg: #4ED08A1F;
--yellow: #F0E169;
--yellow-bg: #F0E1691F;
--red-bg: #E0685F1F;
--shadow: 0 14px 40px rgba(0,0,0,.30);
--field-bg: #3E3642;
--edge: rgba(255,255,255,.07);
}
[data-theme="light"] {
--bg: #EEF1F5;
--bg-glow-1: rgba(14, 124, 140, .10);
--bg-glow-2: rgba(80, 100, 200, .07);
--surface: #FFFFFF;
--surface-2: #E4E7EC;
--ink: #1A1D21;
--ink-soft: #5A6270;
--accent: #0E7C8C;
--accent-dark: #0A5F6B;
--accent-soft: #0E7C8C1A;
--accent-glow: #0E7C8C2E;
--on-accent: #FFFFFF;
--border: #D3D8E0;
--danger: #C9524A;
--danger-dark: #A63F38;
--header-bg: #1A1D21;
--sidebar: #1A1D21;
--green: #2F9E6A;
--green-bg: #2F9E6A1A;
--yellow: #B98900;
--yellow-bg: #E0B93A1F;
--red-bg: #C9524A14;
--shadow: 0 14px 36px rgba(30,40,60,.11);
--field-bg: #FFFFFF;
--edge: rgba(255,255,255,.9);
}
:root, [data-theme="dark"], [data-theme="light"] {
--line: var(--border);
--muted: var(--ink-soft);
--warn: var(--yellow);
--warn-bg: var(--yellow-bg);
--danger-bg: var(--red-bg);
--rail: var(--sidebar);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
body {
margin: 0;
background:
radial-gradient(1100px 520px at 12% -12%, var(--bg-glow-1), transparent 62%),
radial-gradient(900px 480px at 100% -6%, var(--bg-glow-2), transparent 60%),
var(--bg);
background-attachment: fixed;
color: var(--ink);
font-family: var(--font-body);
font-size: 15px;
line-height: 1.5;
}
h1, h2, h3 {
font-family: var(--font-head);
font-weight: 600;
letter-spacing: -0.02em;
margin: 0;
}
a { color: var(--accent); }
.app { display: flex; min-height: 100vh; position: relative; z-index: 1; }
.main-area { flex: 1; min-width: 0; }
.page { max-width: 860px; margin: 0 auto; padding: 40px 28px 80px; }
.page.wide { max-width: 1080px; }
.card[id] { scroll-margin-top: 24px; }
.sidebar { width: 66px; flex-shrink: 0; }
.rail {
position: fixed; top: 0; left: 0; bottom: 0; z-index: 40;
width: 66px; background: var(--sidebar);
display: flex; flex-direction: column; gap: 3px;
padding: 14px 13px; white-space: nowrap;
transition: width .3s cubic-bezier(.4,0,.2,1), box-shadow .3s ease;
overflow-x: hidden; overflow-y: auto; scrollbar-width: none;
}
.rail::-webkit-scrollbar { width: 0; }
.rail:hover, .rail:focus-within { width: 250px; box-shadow: 22px 0 50px rgba(0,0,0,.30); }
.rail.rail-noanim { transition: none !important; }
.rail .logo {
width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
background: var(--accent);
display: flex; align-items: center; justify-content: center;
margin-bottom: 20px; color: var(--on-accent); text-decoration: none;
}
.rail .logo svg { width: 21px; height: 21px; }
.rail .nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-item, .icon-btn, .account {
display: flex; align-items: center; gap: 14px; flex-shrink: 0;
height: 42px; padding: 0 11px; border-radius: 11px;
color: #8B8494; cursor: pointer; text-decoration: none;
background: transparent; border: none; width: 100%; text-align: left;
font-family: var(--font-body); font-size: 14px; font-weight: 500;
transition: background .18s, color .18s;
margin: 0; box-shadow: none;
}
.nav-item svg, .icon-btn svg, .account svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav-item:hover, .icon-btn:hover, .account:hover { background: rgba(255,255,255,.08); color: #fff; transform: none; box-shadow: none; }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }
.tip { opacity: 0; transform: translateX(-6px); transition: opacity .22s ease, transform .3s cubic-bezier(.4,0,.2,1); }
.rail:hover .tip, .rail:focus-within .tip { opacity: 1; transform: none; }
.rail-badge {
margin-left: auto; background: var(--accent-soft); color: var(--accent);
font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 9px;
opacity: 0; transition: opacity .22s ease;
}
.rail-badge.warn { background: var(--yellow-bg); color: var(--yellow); }
.rail:hover .rail-badge, .rail:focus-within .rail-badge { opacity: 1; }
.side-bottom { display: flex; flex-direction: column; gap: 3px; padding-top: 12px; }
.rail-shop { display: block; padding: 6px 12px 8px; margin-bottom: 6px; border-radius: 11px; text-decoration: none; opacity: 0; transition: opacity .22s ease, background .18s; overflow: hidden; white-space: nowrap; }
.rail-shop:hover { background: rgba(255,255,255,.06); }
.rail:hover .rail-shop, .rail:focus-within .rail-shop { opacity: 1; }
.rail-shop b {
display: block; color: #fff; font-family: var(--font-head);
font-size: 15px; font-weight: 600; letter-spacing: -.02em;
overflow: hidden; text-overflow: ellipsis;
}
.rail-shop span { font-size: 11.5px; color: #8B8494; }
.rail-group {
font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
color: #6E6776; font-weight: 600; padding: 15px 12px 6px;
opacity: 0; transition: opacity .22s ease;
}
.rail:hover .rail-group, .rail:focus-within .rail-group { opacity: 1; }
.rail-me { height: 50px; }
.me-ava {
width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
background: var(--surface-2); color: var(--ink);
display: flex; align-items: center; justify-content: center;
font-family: var(--font-head); font-weight: 600; font-size: 14px;
}
.me-who { overflow: hidden; white-space: nowrap; line-height: 1.25; }
.me-who b { display: block; color: #fff; font-size: 13.5px; font-weight: 600; }
.me-who span { font-size: 12px; color: #8B8494; }
.rail-more { display: none; }
html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after {
transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease, stroke .45s ease !important;
}
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.seg button {
background: transparent; color: var(--ink-soft); border: 0; margin: 0; padding: 9px 16px; border-radius: 10px;
font-size: 14px; box-shadow: none; transition: background .2s, color .2s;
}
.seg button:hover { background: var(--surface); color: var(--ink); transform: none; box-shadow: none; }
.seg button[aria-pressed="true"], .seg button[aria-pressed="true"]:hover { background: var(--accent); color: var(--on-accent); }
.mob-only { display: none; }
@media (max-width: 760px) {
.mob-only { display: block; }
.desk-only { display: none !important; }
}
.mob-only[hidden] { display: none !important; }
.mob-title { display: none; align-items: center; gap: 10px; margin-bottom: 14px; }
.mob-title h1 { margin: 2px 0 0; font-size: 22px; }
.mob-title .muted { display: block; font-size: 12px; }
.mob-back {
flex: none; width: 38px; height: 38px; margin: 0; padding: 0; border-radius: 12px;
background: var(--surface); border: 1px solid var(--border); color: var(--ink);
display: inline-flex; align-items: center; justify-content: center; box-shadow: none;
}
.mob-back:hover { background: var(--surface-2); transform: none; box-shadow: none; }
.mob-back svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .mob-title { display: flex; } }
.more-list { display: flex; flex-direction: column; gap: 8px; }
.more-list + .card { margin-top: 16px; }
.more-row {
display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 13px 16px; border-radius: 14px;
border: 1px solid var(--border); background: var(--surface); color: var(--ink); text-decoration: none; font: inherit;
font-size: 14.5px; font-weight: 500; text-align: left; cursor: pointer; box-shadow: none; white-space: normal;
}
.more-row:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); transform: none; box-shadow: none; }
.more-row svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.more-row span { flex: 1; }
.more-row i { color: var(--ink-soft); font-style: normal; }
.more-sep { height: 1px; background: var(--border); margin: 4px 0; }
@media (max-width: 760px) {
.page { padding: 22px 16px 110px; }
.sidebar { width: 0; }
.rail {
width: 100%; height: auto; bottom: 0; top: auto; flex-direction: row;
padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); gap: 0;
overflow: visible; box-shadow: 0 -10px 30px rgba(0,0,0,.25);
}
.rail:hover, .rail:focus-within { width: 100%; box-shadow: 0 -10px 30px rgba(0,0,0,.25); }
.rail .logo, .rail-group, .rail-shop, .side-bottom { display: none; }
.rail .nav { flex-direction: row; gap: 0; }
.rail .nav .nav-item:not(.rail-mob) { display: none; }
.rail-more { display: flex; }
.nav-item { flex: 1; min-width: 0; width: auto; flex-direction: column; gap: 3px; height: auto; padding: 7px 4px; font-size: 9.5px; }
.nav-item .tip { opacity: 1; transform: none; font-size: 9.5px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rail-badge { display: none; }
}
.card {
position: relative;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 18px;
padding: 24px;
margin-bottom: 16px;
box-shadow: var(--shadow);
overflow: hidden;
overflow: clip;
}
.card::before { content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 1px; background: var(--edge); }
.card h2 { font-size: 19px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.card p.hint { color: var(--ink-soft); font-size: 13px; margin: 0 0 16px; }
.card > h2 + p.hint, .card > h3 + p.hint { margin-top: -8px; }
.acc-body > .card:first-child > h2:first-child + p.hint { margin-top: 0; }
@media (max-width: 760px) { .card { padding: 18px 16px; border-radius: 16px; } }
.page-top { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.page-top h1 { font-size: 32px; line-height: 1.12; }
.page-top .under { color: var(--ink-soft); font-size: 14.5px; margin: 6px 0 0; }
.page-top .top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-header p { margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 760px) {
.page-top h1, .page-header h2 { font-size: 24px; }
.page-top .top-right { margin-left: 0; }
}
.sec-lab { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--ink-soft); font-weight: 600; margin: 26px 0 16px; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--ink-soft); text-decoration: none; font-size: 14px; transition: color .15s; }
.back-link:hover { color: var(--accent); }
.hint { color: var(--ink-soft); font-size: 13px; }
.muted { color: var(--ink-soft); font-size: 14px; }
.empty { color: var(--ink-soft); font-size: 14px; padding: 8px 0 16px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 5px; }
input:where(:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])), textarea {
width: 100%;
padding: 11px 13px;
border: 1px solid var(--border);
border-radius: 11px;
font-family: var(--font-body);
font-size: 15px;
background: var(--field-bg);
color: var(--ink);
transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--ink-soft); opacity: .7; }
textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
input[readonly]:not(.inline-editable) { color: var(--ink-soft); }
input[type=radio] { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--accent); margin: 0; }
input[type=checkbox]{-webkit-appearance:none;appearance:none;position:relative;width:42px;height:24px;flex:0 0 auto;margin:0;
border-radius:13px;background:var(--surface-2);border:1px solid var(--border);cursor:pointer;vertical-align:middle;
transition:background .25s,border-color .25s}
input[type=checkbox]::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;
background:var(--ink-soft);transition:transform .32s cubic-bezier(.34,1.6,.5,1),background .25s}
input[type=checkbox]:checked{background:var(--accent);border-color:var(--accent)}
input[type=checkbox]:checked::after{transform:translateX(18px);background:var(--on-accent)}
input[type=checkbox]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
input[type=checkbox]:disabled{opacity:.45;cursor:not-allowed}
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }
input[type=file] { font-family: inherit; font-size: 14px; color: var(--ink-soft); }
input[type=file]::file-selector-button { margin-right: 12px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink); font: 600 13px var(--font-body); cursor: pointer; transition: border-color .15s; }
input[type=file]::file-selector-button:hover { border-color: var(--accent); }
input[type=range] { accent-color: var(--accent); }
select {
width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 11px;
font-size: 15px; background: var(--field-bg); color: var(--ink); font-family: var(--font-body);
}
.field { margin-bottom: 14px; }
.rem-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.rem-chip { position: relative; display: inline-flex; align-items: center; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13.5px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.rem-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; }
.rem-chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.rem-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.rem-phrase { margin: 4px 0 18px; color: var(--accent); font-size: 13.5px; }
.field > label + p.hint { margin: -2px 0 8px; }
.row { display: flex; gap: 12px; }
.row .field { flex: 1; }
.row-end { align-items: flex-end; }
@media (max-width: 760px) { .row { flex-wrap: wrap; } }
details > summary { display: inline-block; }
details > summary::-webkit-details-marker { display: none; }
details > summary::marker { content: ""; }
summary { outline: none; }
.invite-link-box { display: flex; gap: 8px; align-items: center; }
.invite-link-box input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.invite-link-box button { margin: 0; flex: none; }
@media (max-width: 560px) { .invite-link-box { flex-wrap: wrap; } .invite-link-box button { width: 100%; } }
.sw-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.sw-row:first-of-type { border-top: none; }
.sw-row .sw-bd { flex: 1; min-width: 0; }
.sw-row .sw-bd b { display: block; font-size: 14.5px; }
.sw-row .sw-bd span { color: var(--ink-soft); font-size: 13px; }
.sw {
position: relative; width: 46px; height: 27px; border-radius: 14px; flex-shrink: 0;
background: var(--surface-2); border: 1px solid var(--border);
cursor: pointer; padding: 0; margin: 0; box-shadow: none; transition: background .25s, border-color .25s;
}
.sw:hover { background: var(--surface-2); transform: none; box-shadow: none; }
.sw::after {
content: ""; position: absolute; top: 2px; left: 2px;
width: 21px; height: 21px; border-radius: 50%; background: var(--ink-soft);
transition: transform .32s cubic-bezier(.34,1.6,.5,1), background .25s;
}
.sw.on, .sw.on:hover { background: var(--accent); border-color: var(--accent); }
.sw.on::after { transform: translateX(19px); background: var(--on-accent); }
.sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sw-extra { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .2s; }
.sw-block.on .sw-extra { max-height: 160px; opacity: 1; }
.sw-extra-in { padding: 0 0 14px; max-width: 280px; }
.opt-card {
display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px;
border: 1px solid var(--border); border-radius: 12px; background: var(--field-bg);
cursor: pointer; font-weight: 400; color: var(--ink); transition: border-color .15s, background .15s, box-shadow .15s;
}
.opt-card:hover { border-color: var(--accent); }
.opt-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-glow); }
.opt-card .t { flex: 1; min-width: 0; }
.opt-card .t b { display: block; font-size: 14px; }
.opt-card .t span { display: block; font-size: 12.5px; color: var(--ink-soft); }
.opt-card .r { font-size: 12px; color: var(--ink-soft); white-space: nowrap; text-align: right; }
.opt-card .r small { display: block; font-size: 11.5px; margin-top: 2px; white-space: normal; }
.opt-card .r b { font-size: 13px; font-weight: 600; color: var(--ink); }
@media (max-width: 560px) { .opt-card { flex-wrap: wrap; } .opt-card .r { flex-basis: 100%; padding-left: 28px; text-align: left; white-space: normal; } }
.note-field {
min-height: 110px; font-size: 14.5px; line-height: 1.55; padding: 13px 15px; border-radius: 13px; background: var(--surface-2);
}
.note-field:focus { background: var(--field-bg); }
button, .btn {
background: var(--accent);
color: var(--on-accent);
border: none;
border-radius: 12px;
padding: 11px 18px;
font-size: 14px;
font-weight: 600;
font-family: var(--font-body);
cursor: pointer;
white-space: nowrap;
text-decoration: none;
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
line-height: 1.3;
transition: background .16s, transform .16s, box-shadow .16s, color .16s, border-color .16s;
}
button:hover, .btn:hover { background: var(--accent-dark); color: var(--on-accent); transform: translateY(-1px); box-shadow: 0 10px 26px var(--accent-glow); }
button:active, .btn:active { transform: translateY(0); box-shadow: none; }
button:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
button svg, .btn svg { width: 16px; height: 16px; flex: none; }
button.danger, .btn.danger {
background: transparent; color: var(--danger); border: 1px solid var(--border); padding: 10px 16px;
}
button.danger:hover, .btn.danger:hover { background: var(--red-bg); border-color: var(--danger); color: var(--danger); box-shadow: none; }
@media (hover: none) { button.danger, .btn.danger { color: var(--danger); border-color: var(--danger); } }
button.success { background: var(--green); color: #fff; }
button.success:hover { background: var(--green); color: #fff; box-shadow: 0 10px 26px var(--green-bg); }
.btn.ghost, button.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.btn.ghost:hover, button.ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--accent); box-shadow: none; }
button.quiet, .btn.quiet { background: transparent; color: var(--ink-soft); border: 1px solid var(--border); }
button.quiet:hover, .btn.quiet:hover { background: var(--surface-2); color: var(--ink); border-color: var(--accent); box-shadow: none; }
.btn.sm, button.sm { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.icon-btn { padding: 7px; line-height: 0; }
.icon-btn svg { width: 15px; height: 15px; display: block; }
.btn-big { display: inline-flex; margin-top: 20px; padding: 13px 22px; font-size: 15px; }
.link-btn { background: none; border: 0; padding: 4px 8px; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; margin: 0; box-shadow: none; }
.link-btn:hover { background: none; color: var(--accent-dark); transform: none; box-shadow: none; }
.btn-exit {
display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 13px 22px; border-radius: 13px;
border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 600; box-shadow: none;
text-decoration: none; transition: border-color .15s, background .15s, color .15s;
}
.btn-exit svg { width: 18px; height: 18px; color: var(--ink-soft); }
.btn-exit:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); transform: none; box-shadow: none; }
.btn-exit:hover svg { color: var(--accent); }
.opt-row { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 14.5px; line-height: 1.45; cursor: pointer; }
.opt-row input[type="checkbox"] { margin: 0; flex: none; }
.speech-form .unified-only { display: none; }
.speech-form:has(input[name="use_unified_prompt"]:checked) .unified-only { display: block; }
.speech-form:has(input[name="use_unified_prompt"]:checked) .split-only { display: none; }
.confirm-field { margin-top: 16px; }
.confirm-field input { border-color: var(--danger); }
.confirm-field input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 25%, transparent); }
.danger-zone { border-color: var(--danger) !important; }
.danger-zone::before { background: var(--danger) !important; opacity: .5; }
.danger-zone h2 { color: var(--danger); }
.btn-danger {
display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--danger);
background: transparent; color: var(--danger); font-size: 14.5px; font-weight: 600; box-shadow: none;
}
.btn-danger:hover { background: var(--red-bg); color: var(--danger); transform: none; box-shadow: none; }
.btn-danger.solid { background: var(--danger); color: #fff; }
.btn-danger.solid:hover { background: var(--danger-dark); color: #fff; }
.acct-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.rowlink {
display: flex; align-items: center; gap: 12px; padding: 11px 12px 11px 11px; border: 1px solid var(--border); border-radius: 14px;
background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; max-width: 420px;
transition: border-color .15s, background .15s;
}
.rowlink:hover { border-color: var(--accent); background: var(--accent-soft); }
.rowlink .ri { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.rowlink .ri svg { width: 19px; height: 19px; }
.rowlink .rt { flex: 1; min-width: 0; }
.rowlink .rt small { display: block; color: var(--ink-soft); font-weight: 400; font-size: 12.5px; margin-top: 1px; }
.rowlink .chev { flex: none; color: var(--ink-soft); }
.rowlink .chev svg { width: 18px; height: 18px; }
.saved, .info { background: var(--accent-soft); border-left: 3px solid var(--accent); color: var(--ink); padding: 11px 15px; border-radius: 0 10px 10px 0; margin: 0 0 16px; font-size: 14px; font-weight: 500; }
.saved { background: var(--green-bg); border-left-color: var(--green); color: var(--green); font-weight: 600; }
.error, .err { background: var(--red-bg); border-left: 3px solid var(--danger); color: var(--danger); padding: 11px 15px; border-radius: 0 10px 10px 0; margin: 0 0 14px; font-size: 14px; }
p.warn, div.warn { background: var(--yellow-bg); border-left: 3px solid var(--yellow); color: var(--yellow); padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: 14px; margin: 0 0 16px; line-height: 1.5; }
.live-toast {
position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); z-index: 60; max-width: min(92vw, 520px);
background: #1A1D21; color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow);
opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; border-left: 4px solid var(--accent);
}
.live-toast.show { opacity: 1; transform: translate(-50%, 0); }
.live-toast.gone { border-left-color: var(--danger); }
@media (max-width: 760px) { .live-toast { bottom: calc(74px + env(safe-area-inset-bottom)); } }
#kbNet {
position: fixed; top: 0; left: 0; right: 0; z-index: 80; padding: 9px 16px; padding-top: max(9px, env(safe-area-inset-top));
font-size: 13px; font-weight: 500; text-align: center; line-height: 1.35; transform: translateY(-100%); transition: transform .25s;
}
#kbNet.show { transform: none; }
#kbNet.off { background: var(--danger); color: #fff; }
#kbNet.flaky { background: #C98A16; color: #fff; }
html.kb-offline .page { padding-top: calc(40px + 30px); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; display: block; position: relative; }
.agent .pill.ok i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
.pill.ok, .pill.on { background: var(--green-bg); color: var(--green); }
.pill.ok i, .pill.on i { background: var(--green); }
.pill.warn { background: var(--yellow-bg); color: var(--yellow); }
.pill.warn i { background: var(--yellow); }
.pill.off, .pill.danger { background: var(--red-bg); color: var(--danger); }
.pill.off i, .pill.danger i { background: var(--danger); }
.pill.mut { background: var(--surface-2); color: var(--ink-soft); font-weight: 500; }
.pill.mut i { background: var(--ink-soft); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.badge.active { background: var(--green-bg); color: var(--green); }
.badge.trial { background: var(--yellow-bg); color: var(--yellow); }
.badge.warn { background: var(--yellow-bg); color: var(--yellow); }
.badge.suspended { background: var(--red-bg); color: var(--danger); }
.qh {
display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 7px; margin: 0 0 0 7px; padding: 0;
border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent); background: var(--accent-soft); color: var(--accent);
font: 800 12px/1 var(--font-body); cursor: help; vertical-align: middle; flex: none; box-shadow: none; -webkit-user-select: none; user-select: none;
transition: transform .15s cubic-bezier(.3,1.6,.5,1), box-shadow .15s, border-color .15s;
}
.qh:hover, .qh:focus-visible { border-color: var(--accent); transform: translateY(-1px) rotate(-6deg); box-shadow: 0 4px 12px var(--accent-glow); outline: none; }
.hintpop {
position: fixed; z-index: 1200; width: max-content; max-width: min(340px, calc(100vw - 20px)); padding: 14px 16px 15px; border-radius: 16px;
background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.34), 0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent);
opacity: 0; transform: translateY(5px) scale(.97); transform-origin: var(--hp-x, 50%) 0; pointer-events: none;
transition: opacity .14s ease, transform .16s cubic-bezier(.2,.9,.3,1);
}
.hintpop.above { transform-origin: var(--hp-x, 50%) 100%; transform: translateY(-5px) scale(.97); }
.hintpop.show { opacity: 1; transform: none; pointer-events: auto; }
.hp-arrow { position: absolute; top: -6px; left: calc(var(--hp-x, 50%) - 6px); width: 12px; height: 12px; background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 3px 0 0 0; transform: rotate(45deg); }
.hintpop.above .hp-arrow { top: auto; bottom: -6px; transform: rotate(225deg); }
.hp-short { display: block; font: 700 14px/1.4 var(--font-body); }
.hp-long { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--muted); white-space: pre-line; }
.hp-long[hidden] { display: none; }
.hp-grip, .hp-ok { display: none; }
.hintback { position: fixed; inset: 0; z-index: 1190; background: rgba(8,6,10,.5); opacity: 0; pointer-events: none; transition: opacity .2s; }
.hintback.show { opacity: 1; pointer-events: auto; }
.hintpop.sheet {
left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; max-width: none; padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
border-radius: 22px 22px 0 0; border-width: 1px 0 0; transform: translateY(100%); opacity: 1; transform-origin: 50% 100%; transition: transform .3s cubic-bezier(.2,.9,.3,1);
}
.hintpop.sheet.show { transform: none; }
.hintpop.sheet .hp-arrow { display: none; }
.hintpop.sheet .hp-grip { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 14px; }
.hintpop.sheet .hp-short { font-size: 16px; }
.hintpop.sheet .hp-long { font-size: 14.5px; }
.hintpop.sheet .hp-ok { display: block; width: 100%; margin: 18px 0 0; min-height: 46px; border-radius: 14px; border: 0; background: var(--accent); color: #0E1A14; font: 700 15px/1 var(--font-body); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .hintpop, .hintpop.sheet, .qh { transition: none; } }
.grid-table { margin-bottom: 18px; }
.grid-header, .grid-row { display: grid; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.grid-header { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.grid-header.masters-grid, .grid-row.masters-grid { grid-template-columns: 2fr 2fr 250px; }
.masters-grid > .grid-actions, .catalogs-grid > .grid-actions { justify-content: flex-end; }
.grid-header.items-grid, .grid-row.items-grid { grid-template-columns: minmax(0, 1fr) auto; }
.item-data { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; overflow-wrap: anywhere; }
.item-data b { font-weight: 600; color: var(--ink-soft); }
.grid-header.services-grid, .grid-row.services-grid { grid-template-columns: 1.2fr 0.7fr 0.9fr auto; }
.grid-header.catalogs-grid, .grid-row.catalogs-grid { grid-template-columns: 1fr 2fr 180px; }
.grid-header.billing-grid, .grid-row.billing-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; }
.grid-row:last-child { border-bottom: none; }
.grid-row input:not([type=checkbox]) { padding: 9px 11px; font-size: 14px; }
.grid-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.grid-actions form { display: inline; margin: 0; }
.grid-actions .btn, .grid-actions button { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
body:has(.lockscreen) .auth-brand { display: none; }
body:has(.lockscreen) .login-wrap { grid-template-columns: 1fr; }
body:has(.lockscreen) .login-box { max-width: none; background: none; border: 0; box-shadow: none; padding: 0; }
body:has(.lockscreen) .login-box::before { display: none; }
.lockscreen{display:flex;flex-direction:column;align-items:center;text-align:center;padding:8px 0;
padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom));position:relative}
.lockscreen::before{content:"";position:absolute;inset:-40px -20px;pointer-events:none;
background:radial-gradient(520px 360px at 50% 38%,var(--accent-soft),transparent 70%)}
.lock-card{position:relative;width:100%;max-width:360px;text-align:center;display:flex;flex-direction:column;align-items:center}
@media (min-width:600px){
.lock-card{padding:36px 30px 30px;background:var(--surface);border:1px solid var(--line);border-radius:28px;box-shadow:0 24px 70px rgba(0,0,0,.22)}
.pad button{background:var(--surface-2)}
}
.lock-mark{width:56px;height:56px;border-radius:17px;background:var(--accent);color:var(--on-accent);
display:flex;align-items:center;justify-content:center;margin-bottom:22px;
box-shadow:0 10px 30px var(--accent-glow),0 0 0 6px var(--accent-soft)}
.lock-mark svg{width:28px;height:28px}
.lock-mark.bio{width:76px;height:76px;border-radius:24px;background:var(--accent-soft);color:var(--accent)}
.lock-mark.bio svg{width:40px;height:40px}
.lock-card h1{font-family:var(--font-head);font-weight:600;font-size:24px;margin:0 0 6px;color:var(--ink)}
.lock-sub{margin:0;color:var(--muted);font-size:14px;line-height:1.45;max-width:300px}
.pin-dots{display:flex;gap:18px;justify-content:center;margin:30px 0 8px}
.pin-dots i{width:16px;height:16px;border-radius:50%;border:2px solid var(--line);background:transparent;
transition:background .1s,border-color .1s,transform .12s cubic-bezier(.22,1,.36,1)}
.pin-dots i.on{background:var(--accent);border-color:var(--accent);transform:scale(1.12)}
.lock-msg{min-height:20px;margin:0 0 14px;font-size:13.5px;color:var(--muted)}
.lock-msg.bad{color:var(--danger)}
.pad{display:grid;grid-template-columns:repeat(3,76px);gap:12px 22px;justify-content:center}
.pad button{width:76px;height:76px;margin:0;padding:0;border-radius:50%;border:none;background:var(--surface);
color:var(--ink);font-family:var(--font-head);font-size:26px;font-weight:500;box-shadow:none;
display:flex;align-items:center;justify-content:center;transition:background .12s,transform .08s;
-webkit-tap-highlight-color:transparent;user-select:none}
.pad button:hover{background:var(--surface-2);transform:none;box-shadow:none}
.pad button:active{background:var(--accent-soft);transform:scale(.94)}
.pad .pad-side{background:transparent;color:var(--muted)}
.pad .pad-side svg{width:30px;height:30px}
.pad #padBio{color:var(--accent)}
.pad #padBio.busy{opacity:.5}
.lock-foot{margin-top:26px;font-size:14px}
.lock-foot a,.lock-foot .linkish{color:var(--accent);font-weight:600;text-decoration:none;background:none;border:none;
padding:0;margin:0;font-family:inherit;font-size:inherit;box-shadow:none;cursor:pointer}
.lock-foot a:hover,.lock-foot .linkish:hover{text-decoration:underline;transform:none;box-shadow:none;background:none}
.lock-btn{width:100%;max-width:280px;margin:8px 0 0}
.lockscreen.shake{animation:lockshake .28s cubic-bezier(.36,.07,.19,.97)}
.lockscreen.shake .pin-dots i.on{background:var(--danger);border-color:var(--danger)}
@keyframes lockshake{10%,90%{transform:translateX(-2px)}20%,80%{transform:translateX(4px)}30%,50%,70%{transform:translateX(-8px)}40%,60%{transform:translateX(8px)}}
.lock-ok{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:60;
background:color-mix(in srgb,var(--bg) 55%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
opacity:0;pointer-events:none;transition:opacity .12s ease-out}
.lockscreen.done .lock-ok{opacity:1;pointer-events:auto}
.lock-ok-badge{width:112px;height:112px;border-radius:50%;background:var(--accent);color:var(--on-accent);
display:flex;align-items:center;justify-content:center;box-shadow:0 18px 50px var(--accent-glow);
transform:scale(.4);opacity:0}
.lockscreen.done .lock-ok-badge{animation:lockpop .33s cubic-bezier(.22,1,.36,1) forwards}
.lock-ok-badge svg{width:56px;height:56px}
.lock-ok-path{stroke-dasharray:30;stroke-dashoffset:30}
.lockscreen.done .lock-ok-path{animation:lockdraw .2s .08s cubic-bezier(.4,0,.2,1) forwards}
@keyframes lockpop{0%{transform:scale(.5);opacity:0}60%{transform:scale(1.04);opacity:1}100%{transform:scale(1);opacity:1}}
@keyframes lockdraw{to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){.lockscreen.shake,.lockscreen.done .lock-ok-badge,.lockscreen.done .lock-ok-path{animation:none}.lockscreen.done .lock-ok-badge{transform:none;opacity:1}.lock-ok-path{stroke-dashoffset:0}}
@media (max-width:400px){.pad{grid-template-columns:repeat(3,70px);gap:10px 18px}.pad button{width:70px;height:70px;font-size:24px}}
@media (max-height:640px){.lock-mark{width:44px;height:44px;border-radius:13px;margin-bottom:12px}.lock-mark svg{width:22px;height:22px}
.pin-dots{margin:18px 0 4px}.pad{gap:8px 18px}.pad button{width:64px;height:64px;font-size:22px}.lock-foot{margin-top:16px}}
.dim { color: var(--ink-soft); font-size: 13px; }
.dim.xs { font-size: 12px; }
.mb-row { margin: 0 0 14px; }
.mt-row { margin-top: 12px; }
.wfull { width: 100%; }
.grid-row.fn-grid, .grid-header.fn-grid { grid-template-columns: 1.4fr 1fr 1fr 56px 190px; gap: 10px; }
.grid-row.fn-grid.wide, .grid-header.fn-grid.wide { grid-template-columns: 1.4fr 1.2fr 1fr 56px 190px; }
.fn-grid > .grid-actions { justify-content: flex-end; }
.fn-toggle { margin: 0; display: flex; }
@media (max-width: 560px) {
.grid-row.fn-grid, .grid-header.fn-grid { grid-template-columns: 1fr !important; }
}
.import-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.import-actions .hint { margin: 0 0 0 auto; }
.import-list { max-height: 60vh; overflow-y: auto; margin: 0 -4px 16px; padding: 0 4px; }
.import-list .opt-row { margin-bottom: 10px; }
.lesson {
display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; margin: 0 0 0 10px;
padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2);
color: var(--accent); font-family: var(--font-body); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.lesson:hover { border-color: var(--accent); background: var(--accent-soft); }
.lesson svg { width: 15px; height: 15px; flex: none; }
.lesson-overlay { padding: 16px; }
.lesson-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; width: min(860px, 100%); overflow: hidden; }
.lesson-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.lesson-head .modal-title { margin: 0; font-size: 16px; }
.lesson-frame { aspect-ratio: 16 / 9; background: #000; }
.lesson-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 560px) { .lesson { margin-left: 0; margin-top: 8px; display: flex; width: fit-content; } }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; color: var(--ink-soft); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.search-overlay { align-items: flex-start; padding-top: 12vh; }
.search-overlay.show { display: flex; animation: modalFade .14s ease both; }
.search-overlay.show .search-box { animation: modalRise .18s cubic-bezier(.2,.7,.3,1) both; }
.search-box {
width: min(560px, 92vw); background: var(--surface); border: 1px solid var(--border);
border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
}
.search-box input[type="search"] {
width: 100%; border: 0; border-bottom: 1px solid var(--border); border-radius: 0;
padding: 16px 18px; font-size: 16px; background: transparent;
}
.search-box input[type="search"]:focus { box-shadow: none; }
.search-list { max-height: 52vh; overflow-y: auto; }
.search-item {
display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
padding: 11px 18px; text-decoration: none; color: var(--ink); font-size: 14.5px;
}
.search-item b { font-weight: 600; }
.search-item .g { color: var(--ink-soft); font-size: 12.5px; white-space: nowrap; }
.search-item.on, .search-item:hover { background: var(--accent-soft); color: var(--accent); }
.search-item.on .g, .search-item:hover .g { color: var(--accent); opacity: .8; }
.search-empty { margin: 0; padding: 16px 18px; color: var(--ink-soft); font-size: 14px; }
.search-foot { margin: 0; padding: 10px 18px; border-top: 1px solid var(--border);
color: var(--ink-soft); font-size: 12px; }
@media (max-width: 760px) {
.search-overlay { padding-top: 6vh; }
.search-foot { display: none; }
}
.chart{display:block;color:var(--ink);overflow:visible}
.chart text{font-family:var(--font-body)}
.shares{display:flex;flex-direction:column;gap:8px}
.share{display:grid;grid-template-columns:minmax(90px,160px) 1fr auto;gap:10px;align-items:center;font-size:13.5px}
.share-l{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.share-bar{height:10px;border-radius:5px;background:var(--surface-2);overflow:hidden}
.share-bar i{display:block;height:100%;border-radius:5px;background:var(--accent)}
.share-v{white-space:nowrap;font-weight:600} .share-v small{color:var(--muted);font-weight:400;margin-left:4px}
@media (max-width:560px){.share{grid-template-columns:minmax(70px,110px) 1fr auto;font-size:12.5px}}
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.chart-legend i.lg { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; background: var(--border); }
.chart-legend i.lg.on { background: var(--accent); }
.chart-legend i.lg.ok { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.chart-legend i.lg.off { background: var(--danger); opacity: .7; }
.cnote { display: block; font-style: italic; margin-top: 2px; white-space: pre-line; }
.cnote.ai { font-style: normal; color: var(--ink-soft); font-size: 13px; }
.cnote.ai::before { content: "агент: "; color: var(--accent); font-weight: 600; }
.cell-link { display: flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 600; text-decoration: none; min-width: 0; }
.cell-link:hover { text-decoration: underline; }
.master-photo.empty { display: inline-block; background: var(--border); }
.about-master { display: flex; gap: 18px; align-items: flex-start; }
.about-master .master-photo-large { margin: 0; }
.about-name { margin: 0 0 6px; font-size: 18px; font-weight: 600; font-family: var(--font-head); }
@media (max-width: 560px) { .about-master { flex-direction: column; gap: 12px; } }
.mono-soft { color: var(--ink-soft); font-size: 13px; font-variant-numeric: tabular-nums; }
.ch.sm { width: 22px; height: 22px; border-radius: 7px; }
.ch.sm svg { width: 13px; height: 13px; }
.handoff { border-color: var(--accent); }
.handoff::before { background: var(--accent) !important; }
.card-split { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 18px; }
.card-split h3 { margin: 0 0 6px; font-size: 16px; font-family: var(--font-head); }
.card-split > .hint { margin: 0 0 14px; }
.master-photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.master-photo-large { width: 120px; height: 120px; border-radius: 16px; object-fit: cover; border: 2px solid var(--border); margin-bottom: 16px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95em; }
@media (max-width: 760px) {
.grid-header { display: none; }
.grid-row, .grid-header.masters-grid, .grid-row.masters-grid,
.grid-header.services-grid, .grid-row.services-grid,
.grid-header.catalogs-grid, .grid-row.catalogs-grid,
.grid-header.billing-grid, .grid-row.billing-grid { grid-template-columns: 1fr !important; gap: 8px; padding: 12px 0; }
.grid-actions { justify-content: flex-start; }
}
.sel { position: relative; }
.sel select.sel-native { position: absolute; opacity: 0; pointer-events: none; width: 100%; height: 100%; left: 0; top: 0; }
.sel > .sel-btn {
width: 100%; display: flex; align-items: center; gap: 10px; margin: 0;
padding: 11px 13px; border: 1px solid var(--border); border-radius: 11px;
background: var(--field-bg); color: var(--ink);
font-family: var(--font-body); font-size: 15px; font-weight: 400;
text-align: left; cursor: pointer; box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.sel > .sel-btn:hover { background: var(--field-bg); color: var(--ink); border-color: var(--accent); transform: none; box-shadow: none; }
.sel.open > .sel-btn { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.sel > .sel-btn .sel-cur { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel > .sel-btn .sel-arw { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink-soft); transition: transform .25s ease, color .2s; }
.sel.open > .sel-btn .sel-arw { transform: rotate(180deg); color: var(--accent); }
.sel-list {
position: fixed; z-index: 500; background: var(--surface); border: 1px solid var(--border);
border-radius: 13px; box-shadow: var(--shadow); padding: 5px; max-height: 260px; overflow-y: auto;
opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s ease, transform .22s ease;
}
.sel-list.open { opacity: 1; transform: none; pointer-events: auto; }
.sel-list .sel-opt {
width: 100%; display: flex; align-items: center; gap: 10px; background: transparent; border: 0; margin: 0;
border-radius: 9px; padding: 10px 11px; font-size: 14px; font-family: var(--font-body); color: var(--ink);
text-align: left; cursor: pointer; font-weight: 400; box-shadow: none; white-space: normal;
}
.sel-list .sel-opt:hover, .sel-list .sel-opt:focus-visible { background: var(--surface-2); color: var(--ink); transform: none; box-shadow: none; outline: none; }
.sel-list .sel-opt[hidden] { display: none; }
.sel-list .sel-opt.on { color: var(--accent); font-weight: 600; }
.sel-list .sel-opt .sel-tick { width: 15px; height: 15px; flex-shrink: 0; opacity: 0; }
.sel-list .sel-opt.on .sel-tick { opacity: 1; }
.dpick { position: relative; }
.dpick .dpick-native { position: absolute; opacity: 0; pointer-events: none; width: 100%; height: 100%; left: 0; top: 0; }
.dpick > .dpick-btn {
width: 100%; display: flex; align-items: center; gap: 10px; margin: 0; padding: 11px 13px;
border: 1px solid var(--border); border-radius: 11px; background: var(--field-bg); color: var(--ink);
font-family: var(--font-body); font-size: 15px; font-weight: 400; text-align: left; cursor: pointer; box-shadow: none;
transition: border-color .15s, box-shadow .15s;
}
.dpick > .dpick-btn:hover { background: var(--field-bg); color: var(--ink); border-color: var(--accent); transform: none; box-shadow: none; }
.dpick > .dpick-btn:disabled { opacity: .5; cursor: default; }
.dpick.open > .dpick-btn { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.dpick > .dpick-btn svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); }
.dpick > .dpick-btn span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dpick > .dpick-btn span.muted { color: var(--ink-soft); }
.cal {
position: fixed; z-index: 500; background: var(--surface); border: 1px solid var(--border);
border-radius: 18px; box-shadow: var(--shadow); padding: 18px; width: 320px; display: flex; flex-direction: column;
opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s ease, transform .22s ease;
}
.cal.open { opacity: 1; transform: none; pointer-events: auto; }
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal-head b { font-family: var(--font-head); font-size: 15.5px; flex: 1; text-align: center; font-weight: 600; }
.cal-nav {
width: 34px; height: 34px; margin: 0; padding: 0; border-radius: 11px; border: 1px solid var(--border); background: var(--surface-2);
color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0; box-shadow: none;
}
.cal-nav svg { width: 17px; height: 17px; flex: none; }
.cal-nav:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: none; box-shadow: none; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.cal-week span { text-align: center; font-size: 11px; color: var(--ink-soft); text-transform: uppercase; font-weight: 700; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid > span { height: 36px; }
.cal-day {
height: 36px; margin: 0; min-width: 0; border: none; background: transparent; color: var(--ink); border-radius: 10px;
cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 500; display: flex; align-items: center; justify-content: center; padding: 0; box-shadow: none;
}
.cal-day:hover { background: var(--surface-2); color: var(--ink); transform: none; box-shadow: none; }
.cal-day:disabled { opacity: .3; pointer-events: none; }
.cal-day.today { font-weight: 700; color: var(--accent); }
.cal-day.sel, .cal-day.sel:hover { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.cal-foot { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.cal-foot button {
flex: 1; margin: 0; padding: 9px 12px; border-radius: 11px; border: 1px solid var(--border);
background: var(--surface-2); color: var(--ink); font-size: 13.5px; font-weight: 600; box-shadow: none;
}
.cal-foot button:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); transform: none; box-shadow: none; }
.cal-foot button[data-close] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cal-foot button[data-close]:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--on-accent); }
.tcal {
position: fixed; z-index: 500; background: var(--surface); border: 1px solid var(--border);
border-radius: 16px; box-shadow: var(--shadow); padding: 12px; width: 260px;
opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s ease, transform .22s ease;
}
.tcal.open { opacity: 1; transform: none; pointer-events: auto; }
.tcal-head { font-size: 10.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--ink-soft); font-weight: 700; margin: 0 0 6px; }
.tcal-head + .tcal-grid { margin-bottom: 10px; }
.tcal-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.tcal-cell {
margin: 0; height: 32px; padding: 0; background: transparent; color: var(--ink);
border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; box-shadow: none;
}
.tcal-cell:hover { background: var(--surface-2); border-color: var(--border); color: var(--ink); transform: none; box-shadow: none; }
.tcal-cell.sel, .tcal-cell.sel:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 700; }
.tcal-foot { display: flex; justify-content: flex-end; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.tcal-foot button { background: transparent; border: none; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; margin: 0; padding: 4px 8px; box-shadow: none; }
.tcal-foot button:hover { background: var(--accent-soft); color: var(--accent); transform: none; box-shadow: none; }
.pop-backdrop { display: none; position: fixed; inset: 0; background: rgba(10,8,14,.55); z-index: 499; opacity: 0; transition: opacity .2s ease; }
@media (max-width: 640px) {
.cal, .tcal {
position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none;
border-radius: 20px 20px 0 0; transform: translateY(16px); max-height: 80vh; overflow-y: auto; overscroll-behavior: auto;
padding-bottom: calc(18px + env(safe-area-inset-bottom));
}
.cal.open, .tcal.open { transform: translateY(0); }
.cal-day { font-size: 15px; }
.tcal { width: auto; padding: 16px 16px 20px; }
.tcal-cell { height: 44px; font-size: 16px; }
.pop-backdrop.open { display: block; opacity: 1; }
}
.note-pop {
position: fixed; z-index: 500; background: var(--surface); border: 1px solid var(--border);
border-radius: 14px; padding: 12px; box-shadow: var(--shadow); width: 280px;
opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .16s, transform .16s;
}
.note-pop.open { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 640px) { .note-pop { width: calc(100vw - 24px); } }
body.tabs-on .pane { display: none; }
body.tabs-on .pane.active { display: block; }
.pane-more-only { display: none; }
@media (max-width: 760px) { body.tabs-on .pane-more-only.active { display: block; } }
.check { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.check:last-child { border-bottom: none; }
.check > div { flex: 1; min-width: 0; }
.check .btn { flex: none; }
.status-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 130% at 100% 0%, var(--accent-soft), transparent 60%); }
.status-card > * { position: relative; }
.status-face { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.status-emo { width: 68px; height: 68px; border-radius: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.status-emo svg { width: 32px; height: 32px; }
.status-emo.ok { background: var(--green-bg); color: var(--green); }
.status-emo.todo { background: var(--yellow-bg); color: var(--yellow); }
.status-txt { flex: 1; min-width: 220px; }
.status-txt h2 { font-size: 25px; margin-bottom: 6px; }
.status-txt p { color: var(--ink-soft); font-size: 15.5px; margin: 0; max-width: 54ch; }
@media (max-width: 560px) { .status-txt h2 { font-size: 21px; } .status-emo { width: 56px; height: 56px; border-radius: 16px; } }
.check-mark { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.check-mark svg { width: 14px; height: 14px; }
.check.ok .check-mark { background: var(--green-bg); color: var(--green); }
.check.todo .check-mark { background: var(--yellow-bg); color: var(--yellow); }
.check-title { font-weight: 600; font-size: 14px; }
.check-text { font-size: 13px; color: var(--ink-soft); }
.check.todo .check-title { color: var(--ink); }
.segs { display: flex; gap: 5px; }
.segs i { flex: 1; height: 7px; border-radius: 4px; background: var(--surface-2); }
.segs i.done { background: var(--green); }
.segs i.miss { background: var(--yellow); }
.sub-info { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface-2); border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.sub-info:empty { display: none; }
.list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.agent {
position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
padding: 22px 24px; box-shadow: var(--shadow); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.agent::before { content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 1px; background: var(--edge); }
.agent:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 24px 56px var(--accent-glow); }
.a-top { display: flex; align-items: center; gap: 16px; }
.a-mark {
width: 54px; height: 54px; border-radius: 17px; flex-shrink: 0; background: var(--accent-soft); color: var(--accent);
display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 600; font-size: 20px;
}
.agent.paused .a-mark { background: var(--red-bg); color: var(--danger); }
.a-name { flex: 1; min-width: 0; }
.a-name a { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -.025em; display: block; line-height: 1.3; }
.a-name a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.a-name .addr { color: var(--ink-soft); font-size: 13.5px; }
.a-open { width: 21px; height: 21px; flex-shrink: 0; color: var(--ink-soft); transition: transform .2s, color .2s; }
.agent:hover .a-open { transform: translateX(5px); color: var(--accent); }
.a-del { position: relative; z-index: 1; display: inline; margin: 0; }
.a-body { display: flex; align-items: center; gap: 24px; margin-top: 20px; flex-wrap: wrap; }
.ready { flex: 1; min-width: 230px; }
.ready p { margin: 9px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.a-facts { display: flex; gap: 22px; flex-wrap: wrap; }
.fact b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.fact span { color: var(--ink-soft); font-size: 11px; text-transform: uppercase; letter-spacing: .7px; }
.chans { display: flex; gap: 6px; }
.ch { width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); color: var(--ink-soft); display: flex; align-items: center; justify-content: center; }
.ch svg { width: 16px; height: 16px; }
.ch.on { background: var(--accent-soft); color: var(--accent); }
.owner-line { color: var(--ink-soft); font-size: 13px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.owner-line svg { width: 14px; height: 14px; }
@media (max-width: 640px) {
.agent { padding: 18px 16px; }
.a-top { flex-wrap: wrap; }
.a-top .pill { order: 3; }
.a-body { gap: 14px; }
.a-facts { gap: 14px; }
}
.todo {
position: relative; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
background: var(--surface); border: 1px solid var(--yellow); border-radius: 20px;
padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--shadow); overflow: hidden;
}
.todo::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 120% at 0% 50%, var(--yellow-bg), transparent 60%); }
.todo > * { position: relative; }
.todo .ic { width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0; background: var(--yellow-bg); color: var(--yellow); display: flex; align-items: center; justify-content: center; }
.todo .ic svg { width: 26px; height: 26px; }
.todo .bd { flex: 1; min-width: 220px; }
.todo .bd b { display: block; font-family: var(--font-head); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.todo .bd span { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 560px) { .todo { padding: 18px 16px; } .todo .btn { width: 100%; } }
.plat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.plat-row.four { grid-template-columns: repeat(4, 1fr); }
.plat-cell { padding: 18px 20px; margin-bottom: 0; }
.plat-cell.alert { border-color: var(--yellow); }
.plat-cell.good .plat-v { color: var(--green); }
.plat-l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--ink-soft); }
.plat-v { font-family: var(--font-head); font-size: 26px; font-weight: 600; line-height: 1.2; margin-top: 5px; font-variant-numeric: tabular-nums; }
.plat-cell.alert .plat-v { color: var(--yellow); }
@media (max-width: 900px) { .plat-row.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
.plat-row, .plat-row.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plat-cell { padding: 14px 14px; }
.plat-v { font-size: 20px; }
.plat-row > .plat-cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.prob, .orow { display: flex; align-items: center; gap: 15px; padding: 15px 14px; border-radius: 14px; margin: 0 -14px; transition: background .18s; }
.prob:hover, .orow:hover { background: var(--surface-2); }
.prob + .prob, .orow + .orow { border-top: 1px solid var(--border); }
.prob .ic, .orow .av { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.prob.crit .ic { background: var(--red-bg); color: var(--danger); }
.prob.warn .ic { background: var(--yellow-bg); color: var(--yellow); }
.prob .ic svg { width: 19px; height: 19px; }
.prob .bd, .orow .bd { flex: 1; min-width: 0; }
.prob .bd b, .orow .bd b { display: block; font-size: 15.5px; font-weight: 600; }
.prob .bd span, .orow .bd span { color: var(--ink-soft); font-size: 13.5px; }
.orow .av { background: var(--surface-2); color: var(--ink-soft); font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: -.02em; }
.orow .money { font-family: var(--font-head); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.orow .hint { white-space: nowrap; }
.orow form { margin: 0; }
@media (max-width: 560px) {
.prob, .orow { flex-wrap: wrap; margin: 0 -8px; padding: 13px 8px; gap: 10px 12px; }
.orow .hint { white-space: normal; }
.orow .bd { flex: 1 0 100%; }
.orow .hint, .orow .money { flex: 0 0 auto; }
.orow .money { margin-left: auto; }
}
.search { position: relative; margin-bottom: 16px; }
.search input { background: var(--surface); border-radius: 13px; padding: 14px 16px 14px 46px; font-size: 15.5px; }
.search > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-soft); pointer-events: none; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chips button {
border: 1px solid var(--border); background: var(--bg); color: var(--ink-soft); margin: 0;
border-radius: 20px; padding: 8px 15px; font-size: 13.5px; font-weight: 600; box-shadow: none;
transition: border-color .15s, color .15s, background .15s;
}
.chips button:hover { border-color: var(--accent); color: var(--ink); background: var(--bg); transform: none; box-shadow: none; }
.chips button[aria-pressed="true"], .chips button[aria-pressed="true"]:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 6px 16px var(--accent-glow); }
.range-inputs { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; }
.range-field { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 6px; }
.range-field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-soft); font-weight: 700; }
.range-arrow { color: var(--ink-soft); margin-top: 30px; }
.range-arrow svg { width: 16px; height: 16px; display: block; }
@media (max-width: 560px) { .range-inputs { flex-wrap: wrap; } .range-arrow { display: none; } }
.billing-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.billing-actions form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.billing-actions .dpick { width: 170px; }
.stats-row { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.cost-total { font-weight: 700; color: var(--ink); font-size: 15px; }
.wh-default {
display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 6px;
}
.wh-default-label { flex: 1; min-width: 180px; }
.wh-default-label b { display: block; font-size: 15px; }
.wh-default-label span { color: var(--ink-soft); font-size: 12.5px; }
.wh-field { display: block; flex: 0 1 150px; }
.wh-field span { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 5px; }
.wh-field .dpick > .dpick-btn { padding: 9px 11px; font-size: 14px; }
.wh-row { padding: 4px 0; border-bottom: 1px solid var(--border); }
.wh-row:last-of-type { border-bottom: none; }
.wh-head { display: flex; align-items: center; gap: 12px; padding: 10px 0; flex-wrap: wrap; }
.wh-day { font-weight: 600; width: 118px; flex-shrink: 0; }
.wh-state { flex: 1; min-width: 0; }
.wh-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--surface-2); color: var(--ink); border-radius: 8px; padding: 5px 11px; font-size: 13.5px; }
.wh-chip.own { background: var(--accent-soft); color: var(--accent); }
.wh-chip.off { background: var(--red-bg); color: var(--danger); }
.wh-edit { background: transparent; color: var(--ink); border: 1px solid var(--border); padding: 7px 13px; font-size: 13px; border-radius: 9px; margin: 0; box-shadow: none; }
.wh-edit:hover { background: var(--surface-2); color: var(--ink); border-color: var(--accent); transform: none; box-shadow: none; }
.wh-edit-box { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.wh-edit-box.open { max-height: 320px; }
.wh-fields { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.wh-reset { background: transparent; color: var(--ink-soft); border: 1px solid var(--border); padding: 7px 13px; font-size: 13px; border-radius: 9px; margin: 0 0 12px; box-shadow: none; }
.wh-reset:hover { color: var(--ink); background: var(--surface-2); border-color: var(--accent); transform: none; box-shadow: none; }
.wh-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); white-space: nowrap; font-weight: 500; margin: 0; cursor: pointer; }
.overnight-field { display: flex; align-items: flex-end; padding-bottom: 2px; }
.overnight-field label { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; color: var(--ink); }
@media (max-width: 760px) {
.wh-day { width: 100%; }
.wh-field { flex: 1 1 130px; }
.wh-head { gap: 8px; }
}
.modal-overlay { position: fixed; inset: 0; background: rgba(20,16,22,.62); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 1300; padding: 20px; }
.modal-overlay.open { display: flex; animation: modalFade .18s ease both; }
.modal-box { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: 14px; padding: 26px 24px 20px; max-width: 440px; width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.modal-overlay.open .modal-box { animation: modalRise .22s cubic-bezier(.2,.7,.3,1) both; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); margin: 0 0 14px; }
.modal-icon svg { width: 22px; height: 22px; }
.modal-title { font-family: var(--font-head); font-weight: 700; font-size: 19px; margin: 0 0 10px; color: var(--ink); }
.modal-text { font-size: 14px; color: var(--ink-soft); margin: 0 0 20px; line-height: 1.5; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.modal-cancel { background: transparent; color: var(--ink-soft); border: 1px solid var(--border); }
.modal-cancel:hover { background: var(--bg); color: var(--ink); box-shadow: none; }
.modal-ok { background: var(--accent); }
.modal-box.danger { border-top-color: var(--danger); }
.modal-box.danger .modal-icon { background: var(--red-bg); color: var(--danger); }
.modal-box.danger .modal-ok { background: var(--danger); color: #fff; }
.modal-box.danger .modal-ok:hover { background: var(--danger-dark); color: #fff; }
@media (max-width: 560px) { .modal-actions { flex-direction: column-reverse; } .modal-actions button { width: 100%; } }
.confirm-box { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--danger); border-radius: 14px; padding: 26px 24px 20px; max-width: 480px; box-shadow: var(--shadow); margin: 20px 0; }
.pwmeter { height: 4px; border-radius: 2px; background: var(--border); margin: 6px 0 2px; overflow: hidden; }
.pwmeter-fill { height: 100%; width: 0; background: var(--danger); transition: width .15s, background-color .15s; }
.pwmeter-text { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 4px; min-height: 1.4em; }
.pwreq { margin: 10px 0 0; padding: 0 0 0 18px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.install [hidden] { display: none !important; }
.install button[data-install-btn] { display: inline-flex; align-items: center; gap: 8px; margin-top: 0; }
.install button svg { width: 18px; height: 18px; }
.install-ios { font-size: 14px; line-height: 1.6; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.install .kbd { display: inline-block; padding: 1px 8px; border-radius: 7px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; white-space: nowrap; }
@media (display-mode: standalone) { .page { padding-top: calc(40px + env(safe-area-inset-top)); } }
.login-wrap { min-height: 100vh; display: flex; }
.auth-brand { flex: 1; position: relative; overflow: hidden; background: var(--sidebar); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 52px 56px; }
.auth-brand::before { content: ""; position: absolute; inset: 0 -60px; background: repeating-linear-gradient(120deg, transparent 0 24px, var(--accent-soft) 24px 48px); animation: authDrift 10s linear infinite; }
.auth-brand::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, rgba(0,0,0,.46), rgba(0,0,0,0) 68%), radial-gradient(120% 90% at 5% 45%, rgba(0,0,0,.34), transparent 68%); }
@keyframes authDrift { from { transform: translateX(-55.43px); } to { transform: translateX(0); } }
.auth-brand > * { position: relative; z-index: 2; }
.auth-mark { width: 116px; height: 116px; border-radius: 34px; margin-bottom: 28px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.auth-mark svg { width: 62px; height: 62px; }
.auth-name { font-family: var(--font-head); font-size: 32px; font-weight: 600; letter-spacing: -.03em; margin-bottom: 14px; }
.auth-lead { color: #C6C0CE; font-size: 16.5px; max-width: 36ch; }
.auth-stats { display: flex; gap: 30px; margin-top: 34px; }
.auth-stats b { display: block; font-family: var(--font-head); font-size: 21px; font-weight: 600; line-height: 1.15; }
.auth-stats span { font-size: 12.5px; color: #9E97A8; }
.auth-pane { flex: 1; display: flex; align-items: center; justify-content: center; padding: 44px 26px; }
.login-box { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: 32px; width: 100%; max-width: 400px; }
.login-box::before { content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 1px; background: var(--edge); }
.login-box h1 { font-size: 24px; margin-bottom: 6px; }
.login-box p.sub { color: var(--ink-soft); font-size: 14px; margin: 0 0 22px; }
.login-box form > button[type=submit] { width: 100%; margin-top: 6px; padding: 13px 0; font-size: 15px; border-radius: 12px; }
.auth-foot { margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); text-align: center; line-height: 1.5; }
.auth-foot a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }
.auth-foot + .auth-foot { margin-top: 8px; }
@media (max-width: 860px) {
.login-wrap { flex-direction: column; }
.auth-brand { padding: 30px 24px 26px; flex: none; }
.auth-mark { width: 76px; height: 76px; border-radius: 24px; margin-bottom: 18px; }
.auth-mark svg { width: 40px; height: 40px; }
.auth-name { font-size: 25px; }
.auth-lead { font-size: 15px; }
.auth-stats { margin-top: 22px; gap: 22px; }
.auth-stats b { font-size: 18px; }
.auth-pane { padding: 28px 16px 44px; }
.login-box { padding: 26px 20px; }
}
@page { margin: 14mm 11mm; }
@media print {
.rail, .sidebar, .theme-btn, .modal-overlay, .live-toast, .mob-title, .back-link, button, .no-print { display: none !important; }
.page { padding: 0 !important; max-width: none !important; }
body { background: #fff; color: #000; font-size: 10.5pt; }
.card { border: 1px solid #bbb; background: #fff; box-shadow: none; padding: 4mm 5mm; margin: 2mm 0; break-inside: avoid; }
.card::before { display: none; }
a { color: #000; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (max-width: 760px) {
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not(#kb-z),
select:not(#kb-z), textarea:not(#kb-z) { font-size: 16px; }
}
@media (pointer: coarse) {
.qh { position: relative; }
.qh::after { content: ""; position: absolute; inset: -13px; }
input[type=radio]:not(#kb-z) { min-width: 20px; min-height: 20px; }
}
@media (max-width: 560px) { .orow { flex-wrap: wrap; } .orow .acct-actions { width: 100%; } }
.secbody .card { background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; padding: 18px 0; margin: 0; }
.secbody > .card:first-child, .secbody > #quick > .card:first-child { border-top: 0; }
.secbody .card > h2 { font-size: 15px; }
.secbody .secact { box-sizing: border-box; height: 42px; margin: 0; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; }
.ava { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 30%; overflow: hidden; background: var(--accent-soft); color: var(--accent); font-family: var(--font-head); font-weight: 700; }
.ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avapick { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 4px; }
.avapick-b { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.avapick.busy .target { opacity: .5; }
.avapick-b > label, .avapick-b > button { box-sizing: border-box; height: 42px; margin: 0; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; line-height: 1; border-radius: 12px; }
.lock-form{width:100%;max-width:300px;margin-top:14px}
.lock-form .wide,button.wide{width:100%}
.form-narrow{max-width:360px}
.mt-12{margin-top:12px}.mt-14{margin-top:14px}
.hint.flush,.acct-actions.flush{margin:0}
.hint.tight{margin:0 0 6px}
.pointer{cursor:pointer}
.lock-alt{margin:0 0 10px}
.lock-alt:last-child{margin-bottom:0}
.algo{list-style:none;margin:0;padding:0}
.algo-step{display:flex;gap:12px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--line)}
.algo-step:first-child{border-top:0}
.algo-n{flex:0 0 26px;height:26px;border-radius:50%;background:var(--accent-soft);color:var(--ink);font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
.algo-n.off{opacity:.45}
.algo-t{flex:1;font-size:14px;line-height:1.45}
.algo-lock{flex:0 0 18px;color:var(--ink-soft);opacity:.7}
.algo-lock svg{width:16px;height:16px}
.algo-step.locked .algo-t{color:var(--ink-soft)}
.algo-step .opt-row{flex:1;margin:0}
.algo-edit{flex:1;display:flex;flex-direction:column;gap:4px}
.algo-step input[type=text],.algo-step textarea,.algo-step select{flex:1;min-width:0;margin:0}
.algo-step textarea{min-height:0;resize:vertical;line-height:1.4;field-sizing:content}
.algo-step select{flex:0 1 230px}
.algo-step.new{opacity:.9}
.algo-reset{margin-top:14px}
.learn-row{display:flex;gap:14px;justify-content:space-between;align-items:flex-start;padding:12px 0;border-top:1px solid var(--line)}
.learn-row:first-of-type{border-top:0}
.learn-row.off .learn-body{opacity:.5}
.learn-body p{margin:4px 0;font-size:14px;line-height:1.45}
.learn-actions{display:flex;gap:8px;flex-wrap:wrap;flex:0 0 auto}
.learn-actions form{margin:0}
.learn-switch{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:6px 0}
@media (max-width:640px){.learn-row{flex-direction:column}.algo-step select{flex:1 1 100%}.algo-step.custom.new{flex-wrap:wrap}}
.bal-card.banned { border-color: var(--danger); }
.bal-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 10px; }
.bal-name { min-width: 0; }
.bal-name b { display: block; font-family: var(--font-head); font-size: 18px; font-weight: 700; }
.bal-name span { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 3px; }
.bal-sum { text-align: right; flex: none; }
.bal-sum b { display: block; font-family: var(--font-head); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bal-sum b.low { color: var(--danger); }
.bal-sum span { display: block; color: var(--ink-soft); font-size: 12.5px; margin-top: 2px; }
.bal-form { margin: 12px 0 0; }
.bal-inputs { display: flex; gap: 8px; flex-wrap: wrap; }
.bal-inputs input { margin: 0; }
.bal-inputs input[type="number"] { flex: 0 1 220px; }
.bal-inputs input[type="text"] { flex: 1 1 220px; }
.bal-inputs button { margin: 0; }
.bal-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.bal-actions button, .bal-actions .btn { margin: 0; }
.bal-sp { flex: 1; }
.mtable-wrap { overflow-x: auto; }
.mtable { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.mtable th, .mtable td { padding: 10px 8px; border-top: 1px solid var(--border); text-align: right; white-space: nowrap; }
.mtable thead th { border-top: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-soft); font-weight: 600; }
.mtable tbody th { text-align: left; font-weight: 500; color: var(--ink-soft); white-space: normal; }
.mtable td small { display: block; font-size: 11.5px; color: var(--ink-soft); }
.mtable tr:last-child th, .mtable tr:last-child td { color: var(--ink); }
.mtable b.neg, .hsum.neg { color: var(--danger); }
.hsum.pos { color: var(--green); }
.field-err{display:flex;align-items:center;gap:7px;margin:7px 2px 0;color:var(--danger);font-size:12.5px;font-weight:600;line-height:1.3;animation:fieldErrIn .22s ease both}
.field-err::before{content:"!";flex:none;width:16px;height:16px;border-radius:50%;background:var(--danger);color:#fff;font-size:11px;font-weight:800;display:inline-flex;align-items:center;justify-content:center}
[aria-invalid="true"]{border-color:var(--danger) !important;box-shadow:0 0 0 3px var(--danger-bg) !important}
@keyframes fieldErrIn{from{opacity:0;transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){.field-err{animation:none}}
.credit { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.bal-sum .credit { display: inline-flex; align-items: flex-end; }
.bal-sum .credit, .bal-sum .credit span { color: inherit; font-size: inherit; margin: 0; }
.credit-plus { font-style: normal; font-weight: 700; white-space: nowrap; font-size: max(12px, .55em); color: var(--green); margin-top: 3px;
animation: creditIn .5s ease both; transition: opacity .4s, transform .4s; }
@keyframes creditIn { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .credit-plus { animation: none; transition: none; } }
.hrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.hrow:first-of-type { border-top: 0; }
.hrow .bd { flex: 1; min-width: 0; }
.hrow .bd b { display: block; font-size: 14px; font-weight: 600; }
.hrow .bd span { display: block; font-size: 12.5px; color: var(--ink-soft); }
.hsum { font-family: var(--font-head); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 760px) {
.bal-top { flex-direction: column; gap: 6px; }
.bal-sum { text-align: left; }
.bal-sp { display: none; }
.mtable { font-size: 13px; }
.mtable th, .mtable td { padding: 9px 5px; }
}
.pane-head { margin: 4px 0 16px; scroll-margin-top: 24px; }
.pane-head h2 { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin: 0; }
.pane-head p { color: var(--ink-soft); font-size: 14px; margin: 5px 0 0; }
.acc { display: flex; align-items: center; gap: 13px; margin: 0 0 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; scroll-margin-top: 20px; }
.acc:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.acc:active { transform: scale(.995); }
.acc .ri { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.acc .ri svg { width: 19px; height: 19px; }
.acc .rt { flex: 1; min-width: 0; font-weight: 650; font-size: 15px; }
.acc .rt small { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-weight: 400; font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.acc .rt small.ok::before, .acc .rt small.warn::before, .acc .rt small.off::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; }
.acc .rt small.ok::before { background: var(--green); }
.acc .rt small.warn::before { background: var(--yellow); }
.acc .rt small.off::before { background: var(--danger); }
.acc .chev { flex: none; color: var(--muted); }
.acc .chev svg { width: 18px; height: 18px; }
.acc.danger { margin-top: 22px; }
.acc.danger .ri { background: var(--red-bg); color: var(--danger); }
.acc.danger:hover { border-color: var(--danger); box-shadow: none; }
.acc-body { position: relative; }
.acc-body > .card { background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; padding: 18px 0 4px; margin: 0; }
.acc-body > .card::before { display: none; }
.acc-body > .card:first-child { border-top: 0; padding-top: 0; }
.acc-body > .card > h2 { font-size: 15px; }
.acc-body > .card:first-child > h2:first-child { position: absolute; top: 0; right: 0; margin: 0; font-size: 0; line-height: 0; display: flex; gap: 6px; }
.acc-body > .card:first-child > h2:first-child > * { font-size: 13px; line-height: normal; }
.acc-body > .card:first-child:has(> h2:first-child > .qh, > h2:first-child > .lesson) > :nth-child(2) { padding-right: 34px; }
@media (max-width: 760px) {
.pane-head h2 { font-size: 20px; }
.acc { padding: 11px 12px; gap: 11px; }
.acc .ri { width: 34px; height: 34px; border-radius: 10px; }
}
.bal-btn { display: inline-flex; align-items: center; gap: 12px; padding: 9px 12px 9px 10px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.bal-btn:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.bal-btn:active { transform: scale(.98); }
.bal-btn .bal-ico { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--green-bg); color: var(--green); }
.bal-btn .bal-ico svg { width: 20px; height: 20px; }
.bal-btn .bal-txt { display: flex; flex-direction: column; line-height: 1.15; }
.bal-btn .bal-txt small { font-size: 11.5px; color: var(--ink-soft); text-transform: lowercase; }
.bal-btn .bal-txt b { font-family: var(--font-head); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bal-btn .bal-go { color: var(--muted); display: flex; }
.bal-btn .bal-go svg { width: 16px; height: 16px; }
.bal-btn.warn .bal-ico { background: var(--yellow-bg); color: var(--yellow); }
.bal-btn.warn { border-color: var(--yellow); }
.bal-btn.off .bal-ico { background: var(--red-bg); color: var(--danger); }
.bal-btn.off { border-color: var(--danger); }
.bal-btn.off .bal-txt b { color: var(--danger); }
.bal-btn.mob-only { display: none; }
@media (max-width: 760px) { .bal-btn.mob-only { display: flex; margin: 0 0 14px; } }
.bal-banned { margin-bottom: 16px; }
.modal-input { width: 100%; box-sizing: border-box; margin: 0 0 18px; min-height: 76px; resize: vertical; }
.kb-notice { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10, 8, 12, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: kbnIn .25s ease; }
.kb-notice[hidden] { display: none; }
.kb-notice-box { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--danger); border-radius: 22px; padding: 26px 24px 22px; box-shadow: 0 24px 70px rgba(0, 0, 0, .5); text-align: center; }
.kb-notice-ico { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; background: var(--red-bg); color: var(--danger); }
.kb-notice-ico svg { width: 28px; height: 28px; }
.kb-notice-box h2 { font-size: 21px; margin: 0 0 10px; }
.kb-notice-box p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin: 0 0 20px; }
.kb-notice-act { display: flex; flex-direction: column; gap: 8px; }
.kb-notice-act .btn, .kb-notice-act button { width: 100%; margin: 0; justify-content: center; text-align: center; }
@keyframes kbnIn { from { opacity: 0; } to { opacity: 1; } }
.setlist { max-width: 640px; }
.setlist-form { margin: 0; }
button.acc { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.acc-det { margin: 0 0 8px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; overflow: clip; transition: border-color .15s, box-shadow .15s; scroll-margin-top: 20px; }
.acc-det > summary { display: flex; align-items: center; gap: 13px; padding: 12px 14px; cursor: pointer; list-style: none; color: var(--ink); }
.acc-det > summary::-webkit-details-marker { display: none; }
.acc-det:hover { border-color: var(--accent); }
.acc-det[open] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.acc-det .ri { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.acc-det .ri svg { width: 19px; height: 19px; }
.acc-det .rt { flex: 1; min-width: 0; font-weight: 650; font-size: 15px; }
.acc-det .rt small { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-weight: 400; font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.acc-det .rt small.ok::before, .acc-det .rt small.warn::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; }
.acc-det .rt small.ok::before { background: var(--green); }
.acc-det .rt small.warn::before { background: var(--yellow); }
.acc-det .chev { flex: none; color: var(--muted); transition: transform .2s; }
.acc-det .chev svg { width: 18px; height: 18px; }
.acc-det[open] > summary .chev { transform: rotate(90deg); }
.acc-det > .acc-body { padding: 16px 18px 16px; border-top: 1px solid var(--border); }
@media (max-width: 760px) {
.acc-det > summary { padding: 11px 12px; gap: 11px; }
.acc-det .ri { width: 34px; height: 34px; border-radius: 10px; }
.acc-det > .acc-body { padding: 14px 14px; }
}
.acc-det > .acc-body > .card:first-child > h2:first-child { top: 14px; right: 16px; }
.sel-list { border-radius: 16px; padding: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.sel-list .sel-opt { justify-content: flex-start; gap: 12px; padding: 11px 12px; font-size: 14.5px; line-height: 1.35; border-radius: 11px; }
.sel-list .sel-opt + .sel-opt { margin-top: 2px; }
.sel-list .sel-opt > span { flex: 1; min-width: 0; }
.sel-list .sel-opt .sel-tick { order: 2; width: 18px; height: 18px; color: var(--accent); }
.sel-list .sel-opt.on, .sel-list .sel-opt.on:hover { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
.sel-list { left: 10px !important; right: 10px !important; width: auto !important; top: auto !important;
bottom: calc(10px + env(safe-area-inset-bottom)) !important; max-height: 62vh !important; border-radius: 20px; padding: 8px;
transform: translateY(24px); box-shadow: 0 0 0 100vmax rgba(8, 6, 10, .55), 0 -10px 40px rgba(0, 0, 0, .35); }
.sel-list.open { transform: none; }
.sel-list .sel-opt { padding: 14px; font-size: 15.5px; }
}
.savebar:has(.savemark:is([data-state="saving"], [data-state="ok"], [data-state="err"])) { position: sticky; }
.savebar { position: static; bottom: 12px; display: flex; justify-content: flex-end; align-items: center; margin: 16px 0 2px; z-index: 3; pointer-events: none; }
.savemark { pointer-events: auto; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; min-width: 168px; padding: 11px 20px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink-soft); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); transition: background .2s, color .2s, border-color .2s, transform .2s; }
.savemark[data-state="saving"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: scale(1.03); }
.savemark[data-state="ok"] { background: var(--green-bg); border-color: var(--green); color: var(--green); }
.savemark[data-state="err"] { background: var(--red-bg); border-color: var(--danger); color: var(--danger); }
.savemark[data-state="idle"]:not(.float) { background: transparent; border-color: transparent; box-shadow: none; min-width: 0; padding: 6px 4px; font-size: 13px; font-weight: 500; }
.savemark .dots { display: none; gap: 5px; }
.savemark[data-state="saving"] .dots { display: flex; }
.savemark .dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: kbdot 1s ease-in-out infinite; }
.savemark .dots i:nth-child(2) { animation-delay: .15s; }
.savemark .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes kbdot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
button.busy { position: relative; color: transparent !important; pointer-events: none; }
button.busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--on-accent) var(--on-accent) transparent transparent; animation: kbspin .7s linear infinite; }
button.ghost.busy::after, button.danger.busy::after { border-color: var(--ink) var(--ink) transparent transparent; }
button:not(.sw):active { transform: scale(.97); }
@keyframes kbspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .savemark .dots i, button.busy::after { animation: none; opacity: .7; } }
@media (max-width: 760px) { .savebar { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.deal-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; }
.deal-fields .field { margin: 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.deal-fields .df-wide { grid-column: span 2; }
.gift-fields .df-wide { grid-column: span 3; }
.deal-add { margin: 0; }
.deal-add > button { margin-top: 14px; }
.deal-list { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--border); }
.deal-head { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: 13px; font-weight: 650; color: var(--ink-soft); }
.deal-row { display: flex; gap: 14px; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); scroll-margin-top: 20px; }
.deal-head + .deal-row { border-top: 0; }
.deal-row.off .deal-code, .deal-row.off .deal-body > p { opacity: .55; }
.deal-body { min-width: 0; }
.deal-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.deal-title b { font-size: 15px; overflow-wrap: anywhere; }
.deal-code { letter-spacing: .04em; }
.deal-title .pill { padding: 3px 10px; font-size: 12px; }
.deal-body > p { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); overflow-wrap: anywhere; }
.deal-body > small.hint { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.deal-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.deal-actions form { margin: 0; }
.deal-edit { margin: 8px 0; padding: 14px; border: 1px solid var(--accent); border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 3px var(--accent-glow); scroll-margin-top: 20px; }
.svc-card { margin: 12px 0; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.svc-new { border-style: dashed; }
.svc-item { margin: 10px 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.svc-view { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 12px 14px; }
.svc-main { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.svc-main b { overflow-wrap: anywhere; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-pencil { width: 36px; height: 36px; margin: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: transparent; border: 1px solid var(--border); color: var(--ink-soft); }
.svc-pencil:hover { color: var(--accent); border-color: var(--accent); }
.svc-pencil svg { width: 16px; height: 16px; }
.svc-item .svc-card { display: none; margin: 0; border: 0; border-radius: 0 0 14px 14px; background: transparent; }
.svc-item.editing .svc-card { display: block; animation: svcOpen .22s ease both; }
.svc-item.editing .svc-view { display: none; }
@keyframes svcOpen { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.svc-card .deal-foot { flex-wrap: wrap; }
.page.soft-out { opacity: 0; transform: translateY(6px); transition: opacity .13s ease, transform .13s ease; }
.page.soft-in { animation: softIn .28s cubic-bezier(.2,.9,.3,1) both; }
@keyframes softIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page.soft-out { transition: none; } .page.soft-in { animation: none; } }
.savemark.float { position: fixed; right: 18px; bottom: 18px; z-index: 80; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s, background .2s; }
.savemark.float.show { opacity: 1; transform: none; }
@media (max-width: 760px) { .savemark.float { bottom: calc(84px + env(safe-area-inset-bottom)); right: 12px; } }
.deal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.deal-foot .savebar { position: static; margin: 0; }
@media (max-width: 760px) {
.deal-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gift-fields .df-wide { grid-column: span 2; }
.deal-row { flex-direction: column; align-items: stretch; gap: 10px; }
.deal-actions > * { flex: 1; }
.deal-actions .btn, .deal-actions button { width: 100%; justify-content: center; }
.deal-add > button { width: 100%; }
}
.savebar > button { pointer-events: auto; margin: 0 auto 0 0; }
.savebar { flex-wrap: wrap; gap: 10px; }
.savemark { white-space: nowrap; }
@media (max-width: 760px) { .savemark { min-width: 0; } }
a:focus-visible, button:focus-visible, summary:focus-visible, [role=button]:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hint-list { margin: 8px 0 12px; padding-left: 20px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; }
.hint-list li + li { margin-top: 4px; }
.kb-ask{--kb-bottom:18px}
.kb-ask-btn{position:fixed;right:18px;bottom:var(--kb-bottom);z-index:900;display:inline-flex;align-items:center;gap:8px;margin:0;padding:11px 16px;border-radius:999px;border:1px solid var(--line);
background:var(--surface);color:var(--ink);font:600 14px var(--font-body,inherit);cursor:pointer;box-shadow:0 8px 26px rgba(0,0,0,.28);transition:transform .15s,border-color .15s}
.kb-ask-btn:hover{transform:translateY(-1px);border-color:var(--accent)}
.kb-ask-btn svg{width:18px;height:18px;color:var(--accent);flex:none}
.kb-ask-panel{position:fixed;right:18px;bottom:calc(var(--kb-bottom) + 54px);z-index:910;width:390px;max-width:calc(100vw - 24px);height:min(560px,calc(100vh - 110px));display:flex;flex-direction:column;
background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 50px rgba(0,0,0,.4);overflow:hidden}
.kb-ask-panel[hidden]{display:none}
.kb-ask-head{display:flex;align-items:baseline;gap:8px;padding:13px 14px 11px 16px;border-bottom:1px solid var(--line)}
.kb-ask-head b{font-size:15px}
.kb-ask-sub{color:var(--muted);font-size:12px;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kb-ask-x{margin:0 0 0 auto;padding:0 6px;border:0;background:transparent;color:var(--muted);font-size:24px;line-height:1;cursor:pointer}
.kb-ask-log{flex:1;overflow-y:auto;padding:14px 14px 6px;display:flex;flex-direction:column;gap:10px}
.kb-msg{max-width:92%;padding:9px 12px;border-radius:14px;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.kb-msg p{margin:0}
.kb-msg p+p,.kb-msg p+.kb-ask-show,.kb-msg p+.kb-card{margin-top:8px}
.kb-msg.me{align-self:flex-end;background:var(--accent);color:var(--on-accent)}
.kb-msg.bot{align-self:flex-start;background:var(--surface-2)}
.kb-msg.wait{color:var(--muted);letter-spacing:2px}
.kb-ask-show{margin:8px 0 0;padding:7px 12px;border-radius:10px;border:1px solid var(--accent);background:transparent;color:var(--accent);font:600 13px var(--font-body,inherit);cursor:pointer}
.kb-ask-hints{display:flex;flex-wrap:wrap;gap:7px;padding:0 14px 8px}
.kb-ask-hints:empty{display:none}
.kb-ask-chip{margin:0;padding:7px 12px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--ink);font:500 13px var(--font-body,inherit);cursor:pointer}
.kb-ask-chip:hover{border-color:var(--accent);color:var(--accent)}
.kb-ask-form{display:flex;gap:8px;padding:10px 12px 12px;border-top:1px solid var(--line)}
.kb-ask-form input{flex:1;min-width:0;margin:0;padding:10px 12px;border-radius:12px;font-size:14px}
.kb-ask-send{margin:0;width:42px;flex:none;display:flex;align-items:center;justify-content:center;padding:0;border-radius:12px;border:0;background:var(--accent);color:var(--on-accent);cursor:pointer}
.kb-ask-send svg{width:18px;height:18px}
.kb-card{margin-top:8px;padding:11px 12px;border-radius:12px;border:1px solid var(--line);background:var(--surface)}
.kb-card.danger{border-color:var(--danger)}
.kb-card-t{margin:0 0 10px;font-size:14px}
.kb-card-row{display:flex;gap:8px}
.kb-card-row button{margin:0;padding:9px 14px;border-radius:10px;font:600 13px var(--font-body,inherit);cursor:pointer}
.kb-card-ok-btn{border:0;background:var(--accent);color:var(--on-accent)}
.kb-card.danger .kb-card-ok-btn{background:var(--danger);color:#fff}
.kb-card-no-btn{border:1px solid var(--line);background:transparent;color:var(--ink)}
.kb-card-row button:disabled{opacity:.55;cursor:default}
.kb-card-ok{margin:0;color:var(--accent);font-weight:600}
.kb-card-no{margin:0;color:var(--muted)}
.kb-card-err{margin:0 0 8px;color:var(--danger);font-size:13px}
.kb-guide{position:fixed;top:12px;left:50%;transform:translateX(-50%);z-index:950;display:flex;align-items:center;gap:10px;max-width:calc(100vw - 24px);padding:9px 10px 9px 14px;border-radius:14px;
background:var(--surface);color:var(--ink);border:1px solid var(--accent);box-shadow:0 10px 34px rgba(0,0,0,.38);font-size:14px}
.kb-guide[hidden]{display:none}
.kb-guide-n{flex:none;color:var(--muted);font-size:12px;white-space:nowrap}
.kb-guide-t{min-width:0;font-weight:600}
.kb-guide-b{flex:none;display:flex;gap:6px}
.kb-guide-btn{margin:0;padding:6px 11px;border-radius:9px;border:1px solid var(--line);background:transparent;color:var(--ink);font:600 13px var(--font-body,inherit);cursor:pointer}
.kb-guide-btn:disabled{opacity:.4;cursor:default}
.kb-guide-btn:last-child{padding:6px 10px}
.kb-guide-go,.kb-guide-btn#kbGuideNext{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.kb-ring{position:fixed;z-index:940;pointer-events:none;border-radius:12px;border:2px solid var(--accent);box-shadow:0 0 0 4px var(--accent-soft,rgba(62,203,221,.2)),0 0 22px var(--accent-glow,rgba(62,203,221,.4));animation:kbRing 1.4s ease-in-out infinite}
.kb-ring[hidden]{display:none}
@keyframes kbRing{0%,100%{box-shadow:0 0 0 3px var(--accent-soft,rgba(62,203,221,.2)),0 0 14px var(--accent-glow,rgba(62,203,221,.3))}50%{box-shadow:0 0 0 9px var(--accent-soft,rgba(62,203,221,.2)),0 0 30px var(--accent-glow,rgba(62,203,221,.5))}}
@media (prefers-reduced-motion:reduce){.kb-ring{animation:none}}
@media (max-width:760px){
.kb-ask{--kb-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
.kb-ask-btn{right:12px;padding:12px}
.kb-ask-btn span{display:none}
.kb-ask-panel{right:12px;left:12px;width:auto;max-width:none;height:min(70vh,520px);bottom:calc(var(--kb-bottom) + 52px)}
.kb-ask-sub{display:none}
.kb-guide{top:calc(8px + env(safe-area-inset-top,0px));flex-wrap:wrap;justify-content:space-between}
}