:root {
  --bg: #17181b; --panel: #1f2024; --panel-solid: #1f2024; --panel2: #26282c; --border: #303237; --border-hi: #4b4e55;
  --text: #ffffff; --text2: #e9eaec; --muted: #a2a5ac; --muted2: #8c8f96; --faint: #686b72;
  --inv-bg: #ffffff; --inv-text: #17181b; --hover: rgba(255, 255, 255, 0.05); --hover2: rgba(255, 255, 255, 0.09);
  --green: #00ff80; --red: #ff5050; --amber: #ffc44d; --switch-on: #44cc66; --switch-off: #3a3a3a;
  --radius: 6px; --radius-sm: 4px; --shadow: 0 0 22px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.22, 1, 0.36, 1); --dur: 0.18s;
  --side: 248px; --gap: 12px; --pad: 14px; --row: 40px;
}
:root[data-theme="black"] {
  --bg: #000000; --panel: #030303; --panel-solid: #030303; --panel2: #070707; --border: #262626; --border-hi: #4a4a4a;
  --text: #f6f6f6; --text2: #eeeeee; --muted: #a4a4a4; --muted2: #929292; --faint: #656565;
  --inv-bg: #ffffff; --inv-text: #000000; --hover: rgba(255, 255, 255, 0.04); --hover2: rgba(255, 255, 255, 0.07);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
:root[data-theme="light"] {
  --bg: #ececec; --panel: rgba(255, 255, 255, 0.88); --panel-solid: #ffffff; --panel2: #f4f4f4; --border: #d6d6d6; --border-hi: #a9a9a9;
  --text: #090909; --text2: #111111; --muted: #5b5b5b; --muted2: #6d6d6d; --faint: #9a9a9a;
  --inv-bg: #090909; --inv-text: #ffffff; --hover: rgba(0, 0, 0, 0.04); --hover2: rgba(0, 0, 0, 0.07);
  --green: #00a854; --red: #e0303a; --amber: #b67b00; --switch-off: #c9c9c9; --shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
:root[data-motion="0"] *, :root[data-motion="0"] *::before, :root[data-motion="0"] *::after { animation: none !important; transition: none !important; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overscroll-behavior: none; }
body {
  font: 600 14px/1.45 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--text2); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--inv-bg); color: var(--inv-text); }
* { scrollbar-width: none; -ms-overflow-style: none; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

@keyframes uiOpen { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes uiClose { to { opacity: 0; transform: scale(0.97); } }
@keyframes uiRow { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes uiPop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes uiFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes uiSlide { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: -200px 0; } to { background-position: 200px 0; } }
.uiRow { animation: uiRow .22s var(--ease) backwards; }
.uiPop { animation: uiPop .16s ease-out; }
.uiOpen { animation: uiOpen var(--dur) var(--ease); }

.app { position: relative; z-index: 1; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); height: calc(100vh / var(--z, 1)); height: calc(100dvh / var(--z, 1)); width: 100%; }
.side { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 6px 14px 14px; min-height: 0; height: 100%; min-width: 0; animation: uiSlide .3s var(--ease); }
.app { transition: grid-template-columns .28s var(--ease); }
.app.side-resizing { transition: none; cursor: col-resize; user-select: none; }
.app.side-resizing * { cursor: col-resize !important; }
.side-grip { position: absolute; top: 0; bottom: 0; right: -5px; width: 10px; cursor: col-resize; z-index: 5; outline: none; }
.side-grip::after { content: ''; position: absolute; top: 14px; bottom: 14px; left: 4px; width: 2px; border-radius: 2px; background: var(--border-hi); opacity: 0; transition: opacity .2s var(--ease), background .2s var(--ease); }
.side-grip:hover::after, .side-grip:focus-visible::after, .app.side-resizing .side-grip::after { opacity: 1; }
.app.side-resizing .side-grip::after { background: var(--text); }
.nav-t { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.brand img { width: 36px; height: 36px; border-radius: 6px; display: block; }
.brand-title { color: var(--text); font-size: 15px; font-weight: 700; }
.brand-sub { color: var(--muted); font-size: 11px; font-weight: 500; }
.nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 0; min-height: 0; }
.nav-group { color: var(--muted); font-size: 11px; font-weight: 700; padding: 12px 6px 4px; display: flex; justify-content: space-between; align-items: center; }
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 12px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer;
  text-align: left; transition: background .2s linear, color .2s linear, border-color .2s linear, transform .2s var(--ease);
}
.nav-item:hover { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); }
.nav-item.active { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); }
.nav-item:active { transform: scale(0.98); }
.nav-item .ico { width: 16px; height: 16px; flex: none; opacity: .9; }
.nav-item .cnt { margin-left: auto; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--hover2); }
.nav-item.active .cnt, .nav-item:hover .cnt { background: rgba(0, 0, 0, 0.12); }
.nav-item.nav-soon { opacity: .55; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: .2s linear; }
.me:hover { border-color: var(--border-hi); }
.me img, .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--panel2); object-fit: cover; flex: none; display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.me-name { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-sub { font-size: 11px; color: var(--muted); font-weight: 500; }

.main { min-width: 0; display: flex; flex-direction: column; padding: 14px 14px 14px 4px; gap: var(--gap); min-height: 0; }
.header { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.header .title { color: var(--text); font-size: 16px; font-weight: 700; }
.header .crumb { color: var(--muted); font-size: 12px; font-weight: 500; }
.header .grow { flex: 1; }
.burger { display: none; width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: transparent; cursor: pointer; place-items: center; }
.key { display: inline-flex; align-items: center; justify-content: center; background: var(--inv-bg); color: var(--inv-text); border-radius: 3px; padding: 1px 6px; font-size: 11px; font-weight: 700; }
.view { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: var(--gap); padding-right: 4px; padding-bottom: 30px; min-height: 0; }
.view.snug { padding-bottom: 0; }
.app-promo { position: fixed; left: 50%; top: 14px; z-index: 60; display: flex; gap: 14px; align-items: center; width: min(680px, calc(100vw - 32px)); padding: 12px 12px 12px 14px; border: 1px solid var(--border); border-radius: 18px; background: color-mix(in srgb, var(--panel-solid, #0c0c0c) 88%, transparent); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); opacity: 0; transform: translate(-50%, -24px) scale(.98); transition: opacity .35s var(--ease), transform .5s var(--ease); pointer-events: none; }
.app-promo.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.app-promo-logo { width: 46px; height: 46px; border-radius: 12px; flex: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.app-promo-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.app-promo-text b { color: var(--text); font-size: 15px; }
.app-promo-text > span { color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.45; }
.app-promo-acts { display: flex; align-items: center; gap: 10px; flex: none; }
.app-promo-acts .link { background: none; border: 0; padding: 0 4px; color: var(--faint); font-size: 12px; cursor: pointer; }
.app-promo-acts .link:hover { color: var(--text2); }
.app-promo-x { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--faint); cursor: pointer; transition: color .2s, background .2s; }
.app-promo-x:hover { color: var(--text); background: var(--hover, rgba(255, 255, 255, .06)); }
.app-promo-x svg { width: 15px; height: 15px; }
@media (max-width: 860px) {
  .app-promo { left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top)); width: auto; flex-wrap: wrap; align-items: flex-start; transform: translateY(-24px) scale(.98); }
  .app-promo.show { transform: none; }
  .app-promo-text { flex: 1 1 calc(100% - 110px); }
  .app-promo-acts { order: 3; width: 100%; padding-left: 60px; }
}
.app-guide { display: flex; flex-direction: column; gap: 12px; }
.app-guide-step { display: flex; gap: 12px; align-items: center; }
.app-guide-step > b { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--inv-bg); color: var(--inv-text); font-size: 13px; }
.app-guide-step span { color: var(--text2); line-height: 1.4; }
.app-guide-step .ico { width: 15px; height: 15px; vertical-align: -2px; }
.app-set-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.apps { display: flex; flex-direction: column; gap: var(--gap); }
.apps-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: center; padding: 28px; border: 1px solid var(--border); border-radius: 22px; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--inv-bg) 7%, transparent), transparent 60%), var(--panel); overflow: hidden; }
.apps-logo { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.apps-hero h2 { margin: 18px 0 10px; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; color: var(--text); }
.apps-hero p { margin: 0; max-width: 560px; color: var(--muted); font-size: 15px; line-height: 1.55; font-weight: 500; }
.apps-hero-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.apps-status { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.apps-phone { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.apps-phone-frame { width: 270px; height: 565px; padding: 9px; border-radius: 46px; background: #050505; border: 1px solid #2a2a2a; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .04); box-sizing: border-box; }
.apps-phone-screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #000; }
.apps-phone-screen iframe { position: absolute; left: 0; top: 0; width: 390px; height: 844px; border: 0; background: #000; display: block; transform: scale(calc(250 / 390)); transform-origin: 0 0; }
.apps-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.apps-feature { padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
.apps-feature > span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--inv-bg); color: var(--inv-text); }
.apps-feature > span svg { width: 19px; height: 19px; }
.apps-feature b { color: var(--text); font-size: 14px; }
.apps-feature p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; font-weight: 500; }
.apps-install { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.apps-card { padding: 20px; border: 1px solid var(--border); border-radius: 20px; background: var(--panel); display: flex; flex-direction: column; gap: 14px; }
.apps-card.here { border-color: color-mix(in srgb, var(--inv-bg) 35%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-bg) 18%, transparent); }
.apps-card-head { display: flex; align-items: center; gap: 12px; }
.apps-card-head > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.apps-card-head b { color: var(--text); font-size: 17px; }
.apps-card-head span:not(.tag):not(.apps-os) { color: var(--muted); font-size: 13px; font-weight: 500; }
.apps-os { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--inv-bg) 10%, transparent); color: var(--text); }
.apps-os svg { width: 20px; height: 20px; }
.apps-note { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--amber, #f5b43c) 9%, transparent); border: 1px solid color-mix(in srgb, var(--amber, #f5b43c) 28%, transparent); color: var(--text2); font-size: 13px; line-height: 1.5; font-weight: 500; }
.apps-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 10px; }
.apps-steps li { counter-increment: st; display: flex; align-items: center; gap: 12px; color: var(--text2); font-size: 14px; line-height: 1.4; }
.apps-steps li::before { content: counter(st); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--inv-bg); color: var(--inv-text); font-size: 12px; font-weight: 700; }
.apps-steps .ico { width: 15px; height: 15px; vertical-align: -2px; }
.apps-card-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; }
.apps-faq { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 18px; background: var(--panel); overflow: hidden; }
.apps-q + .apps-q { border-top: 1px solid var(--border); }
.apps-q-head { width: 100%; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; color: var(--text); font: inherit; font-size: 14px; text-align: left; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.apps-q-head:hover { background: color-mix(in srgb, var(--inv-bg) 4%, transparent); }
.apps-q-head .chev { width: 16px; height: 16px; flex: none; transition: transform .3s var(--ease); color: var(--faint); }
.apps-q.open .apps-q-head .chev { transform: rotate(180deg); }
.apps-q-body { height: 0; overflow: hidden; opacity: 0; transition: height .32s var(--ease), opacity .25s var(--ease); }
.apps-q.open .apps-q-body { opacity: 1; }
.apps-q-body p { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: 13.5px; line-height: 1.55; font-weight: 500; }
.has-fab .apps { padding-bottom: 76px; }
.apps-pp { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 16px; align-items: center; padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--inv-bg) 5%, transparent); border: 1px solid var(--border); }
.apps-pp-text { display: flex; flex-direction: column; gap: 6px; }
.apps-pp-text b { color: var(--text); font-size: 14px; }
.apps-pp-text span { color: var(--muted); font-size: 13px; line-height: 1.5; font-weight: 500; }
.apps-pp-demo { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 12px; border-radius: 18px; background: #1f2229; color: #e6e8ee; font-size: 11px; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); user-select: none; }
.apps-pp-shield svg { width: 18px; height: 18px; color: #a9c4f5; }
.apps-pp-brand { color: #b8bcc6; font-size: 10px; }
.apps-pp-title { font-size: 13px; font-weight: 600; margin: 2px 0 4px; text-align: center; }
.apps-pp-link { color: #c9ccd4; font-size: 10.5px; margin-bottom: 4px; }
.apps-pp-btn { position: relative; width: 100%; padding: 7px 0; border-radius: 999px; background: #afc6ef; color: #1b2b48; text-align: center; font-weight: 600; font-size: 11px; opacity: .55; }
.apps-pp-btn.on { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(62, 207, 110, .55); animation: ppPulse 1.8s var(--ease) infinite; }
.apps-pp-btn i { position: absolute; right: -6px; top: -10px; padding: 2px 7px; border-radius: 999px; background: #3ecf6e; color: #04150a; font-style: normal; font-size: 9.5px; font-weight: 700; }
@keyframes ppPulse { 0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(62, 207, 110, .5); } 50% { box-shadow: 0 0 0 2px #fff, 0 0 0 8px rgba(62, 207, 110, 0); } }
@media (prefers-reduced-motion: reduce) { .apps-pp-btn.on { animation: none; } }
@media (max-width: 560px) { .apps-pp { grid-template-columns: 1fr; } .apps-pp-demo { max-width: 220px; justify-self: center; width: 100%; } }
@media (max-width: 1100px) { .apps-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .apps-hero { grid-template-columns: 1fr; padding: 20px; }
  .apps-phone { display: none; }
  .apps-hero h2 { font-size: 23px; }
  .apps-install, .apps-features { grid-template-columns: 1fr; }
}
.view.enter { animation: uiFade .2s ease-out; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { flex: 1; min-width: 110px; text-align: center; padding: 10px 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); color: var(--muted); font-size: 13px; cursor: pointer; transition: .2s linear; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); }

.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--pad); }
.panel-title { color: var(--text); font-size: 14px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.panel-sub { color: var(--muted); font-size: 12px; font-weight: 500; margin-top: -6px; margin-bottom: 10px; }
.grid { display: grid; gap: var(--gap); }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; transition: border-color .2s linear, transform .2s var(--ease); }
.tile:hover { border-color: var(--border-hi); transform: translateY(-1px); }
.tile .num { color: var(--text); font-size: 26px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.15; }
.tile .lbl { color: var(--muted); font-size: 12px; font-weight: 500; }
.tile .hint { color: var(--faint); font-size: 11px; font-weight: 500; margin-top: 2px; }

.muted { color: var(--muted); font-weight: 500; font-size: 12px; }
.faint { color: var(--faint); font-weight: 500; font-size: 12px; }
.green { color: var(--green); } .red { color: var(--red); } .amber { color: var(--amber); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.sep { height: 1px; background: var(--border); margin: 10px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--inv-bg); color: var(--inv-text); border: 1px solid var(--inv-bg); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: .2s linear; white-space: nowrap; text-decoration: none;
}
.btn:hover { filter: brightness(0.88); }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: var(--panel); color: var(--muted); border-color: var(--border); }
.btn.ghost:hover { color: var(--text); border-color: var(--border-hi); filter: none; }
.btn.green { background: transparent; color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.btn.green:hover { background: var(--green); color: #050505; filter: none; }
.btn.red { background: transparent; color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); }
.btn.red:hover { background: var(--red); color: #fff; filter: none; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn[disabled], .btn.busy { opacity: .45; pointer-events: none; }
.btn.busy::after { content: ''; width: 11px; height: 11px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.field-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.input, .select, .textarea {
  width: 100%; min-height: 36px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--panel-solid); border: 1px solid var(--border);
  color: var(--text); font-size: 13px; font-weight: 600; outline: none; transition: border-color .15s linear, box-shadow .15s linear;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--border-hi); box-shadow: 0 0 0 3px var(--hover2); }
.textarea { min-height: 110px; resize: vertical; font-weight: 500; line-height: 1.5; }
.select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 16px, calc(100% - 10px) 16px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.search { position: relative; flex: 1; min-width: 180px; }
.search .input { padding-left: 32px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--muted); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--border); color: var(--muted); font-size: 12px; cursor: pointer; transition: .2s linear; }
.chip:hover { color: var(--text); }
.chip.active { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.green { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.tag.red { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.tag.amber { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.role { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; font-size: 11px; border: 1px solid var(--border); background: var(--panel2); color: var(--text); white-space: nowrap; }
.role i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }

.switch { position: relative; width: 40px; height: 20px; flex: none; cursor: pointer; }
.switch input { display: none; }
.switch span { position: absolute; inset: 3px 0; border-radius: 99px; background: var(--switch-off); transition: all .3s ease; }
.switch span::after { content: ''; position: absolute; top: -3px; left: -1px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); transition: all .3s ease; }
.switch input:checked + span { background: var(--switch-on); }
.switch input:checked + span::after { left: calc(100% - 19px); }
.setting { display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: var(--row); background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.setting .grow { flex: 1; min-width: 0; }
.setting .s-title { color: var(--text); font-size: 13px; }
.setting .s-sub { color: var(--muted); font-size: 12px; font-weight: 500; }

.table { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.thead, .trow { display: grid; gap: 10px; align-items: center; padding: 9px 14px; }
.thead { color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--border); }
.trow { border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text); transition: background .15s linear; }
.trow:last-child { border-bottom: 0; }
.trow:hover { background: var(--hover); }
.trow.click { cursor: pointer; }
.trow .details { color: var(--muted2); font-size: 12px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cell-sub { color: var(--muted); font-size: 11px; font-weight: 500; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--pad); transition: border-color .2s linear; }
.card:hover { border-color: var(--border-hi); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card-title { color: var(--text); font-size: 14px; font-weight: 700; }
.qa { display: grid; gap: 8px; margin-top: 10px; }
.q { color: var(--muted); font-size: 12px; }
.a { color: var(--text); font-weight: 500; white-space: pre-wrap; word-break: break-word; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbs img { width: 120px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); cursor: zoom-in; transition: transform .2s var(--ease); }
.thumbs img:hover { transform: scale(1.04); }
.empty { text-align: center; color: var(--faint); padding: 36px 10px; font-weight: 500; }
.empty b { display: block; color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.skeleton { height: 54px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(90deg, var(--panel) 0, var(--panel2) 50%, var(--panel) 100%) 0 0 / 400px 100%; animation: shimmer 1.1s linear infinite; }

.chat { display: flex; flex-direction: column; gap: 10px; max-height: 58vh; overflow-y: auto; padding: 4px; }
.msg { display: flex; gap: 10px; animation: uiRow .2s var(--ease) backwards; }
.msg .bubble { flex: 1; min-width: 0; background: var(--panel2); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; }
.msg.bot .bubble { border-style: dashed; }
.msg .who { color: var(--text); font-size: 12px; font-weight: 700; display: flex; gap: 8px; align-items: baseline; }
.msg .who span { color: var(--faint); font-weight: 500; font-size: 11px; }
.msg .txt { color: var(--text2); font-weight: 500; white-space: pre-wrap; word-break: break-word; margin-top: 2px; }
.msg img.att { max-width: 240px; max-height: 180px; border-radius: var(--radius-sm); margin-top: 6px; display: block; border: 1px solid var(--border); }

.matrix { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); max-height: 70vh; }
.matrix table { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 12px; }
.matrix th, .matrix td { padding: 7px 10px; border-bottom: 1px solid var(--border); text-align: center; white-space: nowrap; }
.matrix th { position: sticky; top: 0; background: var(--panel-solid); color: var(--muted); z-index: 2; font-weight: 600; }
.matrix th.grp { top: 0; color: var(--text); }
.matrix td:first-child, .matrix th:first-child { position: sticky; left: 0; background: var(--panel-solid); text-align: left; z-index: 1; color: var(--text); }
.matrix th:first-child { z-index: 3; }
.matrix tr:hover td { background: var(--hover); }
.cbx { width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--border-hi); display: inline-grid; place-items: center; cursor: pointer; transition: .15s linear; background: transparent; }
.cbx.on { background: var(--inv-bg); border-color: var(--inv-bg); }
.cbx.on::after { content: ''; width: 8px; height: 4px; border-left: 2px solid var(--inv-text); border-bottom: 2px solid var(--inv-text); transform: rotate(-45deg) translate(1px, -1px); }

.modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; animation: uiFade .24s ease-out; }
.modal-back.closing { animation: modalBackOut .24s ease forwards; pointer-events: none; }
@keyframes modalBackOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.975); } to { opacity: 1; transform: none; } }
@keyframes modalOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal { width: min(560px, 100%); max-height: 88vh; overflow-y: auto; background: var(--panel-solid); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); animation: modalIn .3s var(--ease); }
.modal.wide { width: min(860px, 100%); }
.modal-back.closing .modal { animation: modalOut .22s cubic-bezier(.4, 0, .6, 1) forwards; }
.modal-title { color: var(--text); font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; gap: 10px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.picker-list { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow-y: auto; margin-top: 8px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); cursor: pointer; transition: .12s linear; color: var(--muted); }
.pick:hover { background: var(--hover); color: var(--text); }
.pick.on { color: var(--text); background: var(--hover2); border-color: var(--border-hi); }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .88); display: grid; place-items: center; animation: uiFade .15s; cursor: zoom-out; }
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: var(--radius); animation: uiOpen .2s var(--ease); }

.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { background: var(--panel-solid); border: 1px solid var(--border); border-left: 3px solid var(--green); color: var(--text); border-radius: var(--radius); padding: 10px 14px; font-size: 13px; box-shadow: var(--shadow); animation: uiPop .18s ease-out; max-width: 360px; }
.toast.err { border-left-color: var(--red); }
.toast.out { animation: uiFade .2s reverse forwards; }

.chart { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 10px; }
.chart .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; }
.chart .bar i { width: 100%; max-width: 26px; border-radius: 3px 3px 0 0; background: var(--inv-bg); opacity: .85; transform-origin: bottom; animation: grow .5s var(--ease) backwards; min-height: 2px; }
.chart .bar i.b { background: var(--muted); opacity: .5; }
.chart .bar span { color: var(--faint); font-size: 10px; font-weight: 500; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.legend { display: flex; gap: 14px; color: var(--muted); font-size: 12px; font-weight: 500; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--inv-bg); margin-right: 6px; vertical-align: -1px; }
.legend i.b { background: var(--muted); opacity: .5; }

.soon { display: grid; place-items: center; text-align: center; padding: 60px 20px; gap: 10px; }
.soon h2 { margin: 0; color: var(--text); font-size: 28px; letter-spacing: -0.5px; }
.soon .list { display: grid; gap: 6px; margin-top: 10px; text-align: left; }
.soon .list div { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); color: var(--muted); font-weight: 500; }

.login-wrap { position: fixed; inset: 0; z-index: 2; display: grid; place-items: center; padding: 16px; }
.login { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; text-align: center; display: grid; gap: 14px; justify-items: center; animation: uiOpen .3s var(--ease); }
.login-logo { width: 88px; height: 88px; border-radius: 12px; }
.login h1 { margin: 0; color: var(--text); font-size: 20px; }
.login .btn { width: 100%; padding: 12px; font-size: 14px; }
.login .btn.tg { background: #2aabee; border-color: #2aabee; color: #fff; }
.login .btn.ds { background: #5865f2; border-color: #5865f2; color: #fff; }
.login-code { color: var(--text); font-size: 34px; font-weight: 800; letter-spacing: 10px; padding: 8px 18px 8px 28px; border-radius: var(--radius); background: var(--panel-solid); border: 1px solid var(--border); }
.login-ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--green); color: var(--green); font-size: 30px; animation: uiOpen .3s var(--ease); }
.dots::after { content: ''; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.overlay { display: none; }

@media (max-width: 1100px) { .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  body { overflow: auto; }
  .app { grid-template-columns: 1fr; height: auto; min-height: 100dvh; }
  .side { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: 280px; background: var(--panel-solid); border-right: 1px solid var(--border); transform: translateX(-102%); transition: transform .28s var(--ease); animation: none; }
  .side.open { transform: none; }
  .side-grip { display: none; }
  .overlay.show { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, .55); animation: uiFade .2s; }
  .main { padding: 10px; }
  .burger { display: grid; }
  .view { overflow: visible; }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr 1fr; }
  .thead { display: none; }
  .trow { grid-template-columns: 1fr !important; gap: 4px; }
  .tab { min-width: 90px; padding: 9px 8px; }
}
@media (max-width: 480px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } .header .crumb { display: none; } }
svg { width: 16px; height: 16px; flex: none; }
svg.ico { vertical-align: -3px; }
.btn svg { width: 14px; height: 14px; }
.btn.sm svg { width: 13px; height: 13px; }
.burger svg { width: 18px; height: 18px; color: var(--text); }
.panel-title svg { width: 16px; height: 16px; color: var(--muted); }
.icon-btn { width: 34px; height: 34px; padding: 0; }
.view > *, .stack > *, .main > * { flex-shrink: 0; }
html, body, .view, .nav, .chat, .matrix, .picker-list, .modal, .tabs, .table { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }
.reloading { opacity: .55; pointer-events: none; transition: opacity .15s linear; }
.uiRow { animation-duration: .16s; }
.view.enter { animation: none; }
.table { overflow-x: auto; }
.trow > *, .thead > * { min-width: 0; }
.trow .role, .trow .tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.card-head > div:first-child { min-width: 0; }
.card-title, .s-title { overflow-wrap: anywhere; }
.setting { flex-wrap: wrap; }
.setting .chips { flex-wrap: wrap; }
.header .hide-sm { display: inline; }
.matrix table { width: max-content; }
@media (max-width: 860px) { .header .hide-sm { display: none; } .setting > .select, .setting > .input { max-width: 100% !important; flex: 1 1 100%; } }
.main { padding: 14px 14px 14px 8px; }
.nav-group { cursor: pointer; user-select: none; border-radius: 4px; transition: color .15s linear, background .15s linear; }
.nav-group:hover { color: var(--text); }
.nav-group .chev { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.nav-group.closed .chev { transform: rotate(-90deg); }
.nav-group.dragging { opacity: .4; }
.nav-item.dragging { opacity: .4; }
.nav-item.drop-before { box-shadow: 0 -2px 0 var(--text); }
.nav-item.drop-after { box-shadow: 0 2px 0 var(--text); }
.nav-item { touch-action: pan-y; }
.nav-sec { display: flex; flex-direction: column; gap: 4px; }
.nav-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .28s var(--ease), opacity .22s ease; }
.nav-body.closed { grid-template-rows: 0fr; opacity: 0; }
.nav-body > div { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 4px; }
.nav-sec.drop-before { box-shadow: 0 -2px 0 var(--text); }
.nav-sec.drop-after { box-shadow: 0 2px 0 var(--text); }
.nav-ghost { position: fixed; z-index: 90; pointer-events: none; padding: 6px 10px; border-radius: 4px; background: var(--inv-bg); color: var(--inv-text); font-size: 11px; font-weight: 700; box-shadow: var(--shadow); }

.ava { position: relative; flex: none; border-radius: 50%; overflow: hidden; background: var(--panel2); display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ava.s20 { width: 20px; height: 20px; font-size: 10px; }
.ava.s28 { width: 28px; height: 28px; font-size: 12px; }
.ava.s36 { width: 36px; height: 36px; font-size: 14px; }
.ava.s96 { width: 96px; height: 96px; font-size: 36px; }
.who-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; cursor: pointer; border-radius: 99px; padding: 1px 8px 1px 1px; transition: background .15s linear; color: var(--text); }
.who-chip:hover { background: var(--hover2); }
.who-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sheet-back { position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .55); animation: uiFade .2s ease-out; }
.sheet-back.closing { animation: uiFade .2s ease-in reverse forwards; }
.sheet { position: fixed; z-index: 46; top: 0; right: 0; bottom: 0; width: min(760px, 100%); background: var(--panel-solid); border-left: 1px solid var(--border); overflow-y: auto; animation: sheetIn .32s var(--ease); box-shadow: var(--shadow); }
.sheet.closing { animation: sheetOut .22s ease-in forwards; }
@keyframes sheetIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheetOut { to { transform: translateX(40px); opacity: 0; } }
.sheet-top { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; background: linear-gradient(var(--panel-solid) 60%, transparent); }
.p-banner { height: 170px; margin: -56px 0 0; background: repeating-linear-gradient(135deg, var(--panel2) 0 22px, var(--panel) 22px 44px); background-size: cover; background-position: center; position: relative; display: flex; align-items: center; justify-content: flex-end; overflow: hidden; }
.p-banner .mono { font-size: 140px; font-weight: 800; opacity: .06; margin-right: 30px; line-height: 1; user-select: none; color: var(--text); }
.p-head { padding: 0 18px 14px; position: relative; }
.p-head .ava { margin-top: -50px; border: 4px solid var(--panel-solid); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.p-name { color: var(--text); font-size: 22px; font-weight: 800; margin-top: 8px; letter-spacing: -.3px; overflow-wrap: anywhere; }
.p-sub { color: var(--muted); font-size: 12px; font-weight: 500; font-family: ui-monospace, Consolas, monospace; }
.p-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.p-body { padding: 0 18px 30px; display: flex; flex-direction: column; gap: 10px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); font-weight: 500; }
.kv span:last-child { color: var(--text); text-align: right; overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.sec { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; user-select: none; color: var(--text); font-weight: 700; font-size: 14px; }
.sec-head .chev { width: 14px; height: 14px; color: var(--muted); transition: transform .3s var(--ease); }
.sec-head.closed .chev { transform: rotate(-90deg); }
.sec-head .cnt { color: var(--muted); font-weight: 600; font-size: 12px; margin-left: 6px; }
.sec-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .34s var(--ease), opacity .26s ease; }
.sec-body.open { grid-template-rows: 1fr; opacity: 1; }
.sec-inner { overflow: hidden; min-height: 0; }
.sec-inner > div { padding: 0 14px 12px; }
.log-row { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); align-items: flex-start; font-size: 13px; color: var(--text); }
.log-row:first-child { border-top: 0; }
.log-row .when { margin-left: auto; color: var(--faint); font-size: 11px; white-space: nowrap; font-weight: 500; }
.log-row .det { color: var(--muted2); font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.act { text-align: left; border: 1px solid var(--border); background: var(--panel2); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; transition: transform .15s var(--ease), border-color .15s linear, background .15s linear; color: var(--text); }
.act:hover { transform: translateY(-2px); border-color: var(--border-hi); }
.act:active { transform: scale(.98); }
.act b { display: block; font-size: 13px; }
.act span { display: block; font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.act.red b { color: var(--red); }
.act.green b { color: var(--green); }
.lightbox.closing { animation: uiFade .16s ease-in reverse forwards; }
.toast.out { animation: toastOut .22s ease-in forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateX(16px); } }
.collapse-out { animation: uiFade .16s ease-in reverse forwards; }
.staff-group { margin-top: 6px; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.staff-card { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color .15s linear, transform .15s var(--ease); min-width: 0; }
.staff-card:hover { border-color: var(--border-hi); transform: translateY(-1px); }
.staff-card .meta { min-width: 0; flex: 1; }
.staff-card .nm { color: var(--text); font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-card .sb { color: var(--muted); font-size: 11px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot-on { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.dot-off { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
@media (max-width: 860px) { .p-banner { height: 130px; } .acts { grid-template-columns: 1fr 1fr; } }
.panel-title { justify-content: flex-start; }
.panel-title > .legend, .panel-title > .btn, .panel-title > .tag, .panel-title > .row:last-child { margin-left: auto; }
.trow .row.end { flex-wrap: nowrap; }
.dd { position: relative; width: 100%; min-width: 0; }
.dd-btn { width: 100%; min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--panel-solid); border: 1px solid var(--border); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; transition: border-color .15s linear, box-shadow .15s linear; }
.dd-btn:hover { border-color: var(--border-hi); }
.dd.open .dd-btn { border-color: var(--border-hi); box-shadow: 0 0 0 3px var(--hover2); }
.dd-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-arrow { width: 0; height: 0; flex: none; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--muted); transition: transform .22s var(--ease), border-color .15s linear; }
.dd.open .dd-arrow { transform: rotate(180deg); border-top-color: var(--text); }
.dd-list { position: fixed; z-index: 300; max-height: 280px; overflow-y: auto; padding: 4px; border-radius: var(--radius); background: var(--panel-solid); border: 1px solid var(--border); box-shadow: var(--shadow); transform-origin: top center; animation: ddIn .18s var(--ease); }
.dd-list.up { transform-origin: bottom center; animation-name: ddInUp; }
.dd-list.closing { animation: ddOut .14s ease-in forwards; }
.dd-list.up.closing { animation-name: ddOutUp; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ddInUp { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ddOut { to { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes ddOutUp { to { opacity: 0; transform: translateY(6px) scale(.98); } }
.dd-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .12s linear, color .12s linear; }
.dd-opt:hover, .dd-opt.kb { background: var(--hover2); color: var(--text); }
.dd-opt.active { color: var(--text); background: var(--hover); }
.dd-opt.active::after { content: ''; width: 9px; height: 5px; border-left: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(-45deg) translateY(-2px); flex: none; }
input[type="checkbox"]:not(.switch input) { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; flex: none; margin: 0; border-radius: 4px; border: 1px solid var(--border-hi); background: transparent; cursor: pointer; display: inline-grid; place-items: center; transition: background .15s linear, border-color .15s linear; vertical-align: -4px; }
input[type="checkbox"]:not(.switch input)::after { content: ''; width: 8px; height: 4px; border-left: 2px solid var(--inv-text); border-bottom: 2px solid var(--inv-text); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s var(--ease); }
input[type="checkbox"]:not(.switch input):checked { background: var(--inv-bg); border-color: var(--inv-bg); }
input[type="checkbox"]:not(.switch input):checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.pick input[type="checkbox"] { margin-right: 2px; }
input[type="datetime-local"], input[type="number"] { color-scheme: dark; }
:root[data-theme="light"] input[type="datetime-local"], :root[data-theme="light"] input[type="number"] { color-scheme: light; }
input[type="number"]::-webkit-inner-spin-button { opacity: .4; }
.s-sub::first-letter, .tile .lbl::first-letter, .tile .hint::first-letter, .panel-sub::first-letter, .act span::first-letter, .staff-card .sb::first-letter,
.field-label::first-letter, .log-row .det::first-letter, .me-sub::first-letter, .brand-sub::first-letter, div.muted::first-letter, div.cell-sub::first-letter,
.setting .s-title::first-letter, .empty b::first-letter, .header .crumb::first-letter { text-transform: uppercase; }
:root[nighteye] svg.ico, :root[nighteye] svg.ico path, :root[nighteye] .header svg, :root[nighteye] .header svg path, :root[nighteye] .btn svg, :root[nighteye] .btn svg path, :root[nighteye] .panel-title svg, :root[nighteye] .panel-title svg path { fill: none !important; stroke: currentColor !important; }
:root[nighteye] .nav-item.active, :root[nighteye] .nav-item:hover, :root[nighteye] .tab.active, :root[nighteye] .chip.active, :root[nighteye] .btn:not(.ghost):not(.green):not(.red), :root[nighteye] .key { background-color: var(--inv-bg) !important; color: var(--inv-text) !important; }
:root[nighteye] body, :root[nighteye] html { background-color: var(--bg) !important; }

.pick-cur { display: flex; align-items: center; gap: 8px; }
.pick-cur[hidden], .pick-in[hidden] { display: none; }
.pick-list { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.pick-item { display: flex; align-items: center; gap: 8px; text-align: left; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel2); color: var(--text); cursor: pointer; font: inherit; }
.pick-item:hover { border-color: var(--accent, var(--text)); }
.pick-item span { color: var(--muted); font-size: 12px; margin-left: auto; }
.msg .who em.src { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.msg .who em.src-tg { color: #3aa3e3; border-color: rgba(58,163,227,.35); }
.msg .who em.src-ds { color: #7983f5; border-color: rgba(121,131,245,.35); }

.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.mono.click { cursor: pointer; }
.mono.click:hover { color: var(--text); }
.mail { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 12px; height: calc(100vh - 150px); min-height: 420px; }
.mail-side { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; }
.mail-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mail-bar .tab { flex: none; min-width: 0; padding: 7px 12px; background: var(--panel2); }
.mail-bar .tab.active { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); }
.tab-n:not(:empty) { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; }
.mail-src { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.mail-src[hidden] { display: none; }
.mail-list { flex: 1; min-height: 0; overflow-y: auto; margin-top: 8px; display: flex; flex-direction: column; gap: 4px; scrollbar-width: none; }
.mail-list::-webkit-scrollbar { display: none; }
.mail-item { position: relative; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 9px 10px 9px 14px; border-radius: var(--radius-sm); border: 1px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; transition: .15s linear; min-width: 0; }
.mail-item:hover { background: var(--panel2); border-color: var(--border); }
.mail-item.active { background: var(--panel2); border-color: var(--border); }
.mail-item.unread::before { content: ''; position: absolute; left: 4px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
.mail-item.unread b, .mail-item.unread .mail-item-subj { color: var(--text); font-weight: 700; }
.mail-item-top { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.mail-item-top b { color: var(--text2); font-weight: 600; font-size: 13px; min-width: 0; }
.mail-item-top .when { flex: none; color: var(--faint); font-size: 11px; }
.mail-item-subj { color: var(--text2); }
.mail-item-prev { color: var(--faint); }
.mail-item-st { margin-top: 3px; }
.src-chip { display: inline-block; padding: 0 6px; margin-right: 6px; border: 1px solid var(--border); border-radius: 99px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); }
.mail-note { padding: 18px 10px; color: var(--muted); font-size: 13px; text-align: center; }
.mail-pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 0; }
.mail-read { min-height: 0; overflow-y: auto; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: none; }
.mail-read::-webkit-scrollbar { display: none; }
.mail-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--faint); font-size: 13px; }
.mail-empty svg { width: 36px; height: 36px; }
.mail-subj { color: var(--text); font-size: 18px; font-weight: 800; letter-spacing: -.2px; overflow-wrap: anywhere; }
.mail-meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; min-width: 0; }
.mail-tags { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mail-back { display: none; margin-bottom: 8px; }
.mail-body { flex-shrink: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--panel2); }
.mail-frame { display: block; width: 100%; height: 320px; border: 0; background: #fff; }
.mail-text { padding: 14px; color: var(--text2); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; }
.mail-att { display: flex; gap: 10px; flex-wrap: wrap; padding: 10px; border-top: 1px solid var(--border); }
.att-card { display: flex; flex-direction: column; width: 200px; max-width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg2, transparent); }
.att-prev { display: grid; place-items: center; height: 120px; padding: 0; border: 0; border-bottom: 1px solid var(--border); background: var(--bg3, rgba(127,127,127,.08)); cursor: pointer; overflow: hidden; }
.att-prev img { width: 100%; height: 100%; object-fit: cover; }
.att-ext { font: 700 13px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--muted); }
.att-info { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px 4px; font-size: 12.5px; min-width: 0; }
.att-act { display: flex; gap: 6px; padding: 4px 8px 8px; }
.att-act .btn { flex: 1; justify-content: center; }
.att-view { text-align: center; }
.att-view img, .att-view video { max-width: 100%; max-height: 70vh; border-radius: 6px; }
.att-text { max-height: 70vh; overflow: auto; margin: 0; padding: 12px; font-size: 12.5px; white-space: pre-wrap; word-break: break-word; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.mail-thread summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 4px 0; }
.mail-reply { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.mail-reply .textarea { min-height: 110px; }
@media (max-width: 860px) {
  .mail { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .mail-side { max-height: none; }
  .mail-list { max-height: none; overflow: visible; }
  .mail-read { display: none; }
  .mail.reading .mail-side { display: none; }
  .mail.reading .mail-read { display: flex; }
  .mail-back { display: inline-flex; }
  .mail-tags { margin-left: 0; }
  .mail-meta { flex-wrap: wrap; }
}
.mail-side .search { flex: none; }

.ava.s64 { width: 64px; height: 64px; font-size: 26px; }
.pick-list > * { animation: uiPop .16s ease-out backwards; }
.pick-list.closing > * { animation: ddOut .14s ease-in forwards; }
.pick-cur, .pick-in { animation: uiPop .16s ease-out; }
.pick-cur.closing, .pick-in.closing { animation: ddOut .13s ease-in forwards; }
.sc-fab { position: fixed; right: 20px; bottom: 20px; z-index: 45; width: 56px; height: 56px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; background: var(--inv-bg); color: var(--inv-text); box-shadow: 0 8px 26px rgba(0, 0, 0, .45); animation: scFabIn .42s cubic-bezier(.34, 1.56, .64, 1) both; transition: transform .18s ease, box-shadow .18s ease; }
.sc-fab svg { pointer-events: none; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.sc-fab:hover { transform: scale(1.07); box-shadow: 0 10px 30px rgba(0, 0, 0, .55); }
.sc-fab:active { transform: scale(.93); }
.sc-fab.open-state svg { transform: rotate(-12deg) scale(.9); }
.sc-fab::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--inv-bg); opacity: 0; animation: scPulse 2.8s ease-out infinite; pointer-events: none; }
.sc-fab.open-state::after { animation: none; }
.sc-dot { position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--red); color: #fff; border: 3px solid var(--bg, #000); font-size: 10.5px; font-weight: 700; line-height: 15px; text-align: center; display: none; }
.sc-fab.unread .sc-dot { display: block; animation: scDot .4s cubic-bezier(.34, 1.56, .64, 1) both, scBlink 1.4s ease-in-out .4s infinite; }
.sc-fab.unread { animation: scFabIn .42s cubic-bezier(.34, 1.56, .64, 1) both, scNudge 4s ease-in-out 1.2s infinite; }
@keyframes scBlink { 50% { opacity: .35; transform: scale(.88); } }
@keyframes scNudge { 0%, 86%, 100% { transform: none; } 89% { transform: rotate(-9deg); } 92% { transform: rotate(8deg); } 95% { transform: rotate(-4deg); } }
@keyframes scFabIn { from { transform: scale(0) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes scPulse { 0% { transform: scale(1); opacity: .5; } 70% { transform: scale(1.28); opacity: 0; } 100% { opacity: 0; } }
@keyframes scDot { from { transform: scale(0); } to { transform: scale(1); } }
.sc-panel { position: fixed; right: 20px; bottom: 88px; z-index: 45; width: 360px; max-width: calc(100vw - 40px); height: 62vh; max-height: 560px; min-height: 320px; display: flex; flex-direction: column; overflow: hidden; background: var(--panel-solid); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 22px 60px rgba(0, 0, 0, .6); transform-origin: bottom right; transform: translateY(20px) scale(.86); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .3s cubic-bezier(.34, 1.4, .5, 1), opacity .22s ease, visibility .3s; }
.sc-panel.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
.sc-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--panel2); }
.sc-head img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.sc-head-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sc-head-t b { color: var(--text); font-size: 14px; }
.sc-head-t span { color: var(--muted); font-size: 11px; font-weight: 500; }
.sc-ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; transition: .15s; }
.sc-ic:hover { background: var(--hover2); color: var(--text); }
.sc-ic svg { width: 18px; height: 18px; }
.sc-chat { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: none; }
.sc-chat::-webkit-scrollbar { display: none; }
.sc-day { align-self: center; padding: 2px 10px; border-radius: 99px; border: 1px solid var(--border); color: var(--faint); font-size: 11px; font-weight: 600; margin: 4px 0; }
.sc-msg { display: flex; animation: scMsg .24s ease-out backwards; }
.sc-msg.own { justify-content: flex-end; }
@keyframes scMsg { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.sc-bub { max-width: 82%; padding: 8px 11px; border-radius: 14px 14px 14px 4px; background: var(--panel2); border: 1px solid var(--border); color: var(--text2); font-size: 13.5px; line-height: 1.45; }
.sc-msg.own .sc-bub { border-radius: 14px 14px 4px 14px; background: var(--inv-bg); border-color: var(--inv-bg); color: var(--inv-text); }
.sc-who { font-size: 11px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.sc-txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.sc-img { display: block; max-width: 100%; max-height: 200px; border-radius: 9px; margin-bottom: 4px; cursor: zoom-in; }
.sc-at { font-size: 10px; opacity: .55; text-align: right; margin-top: 2px; }
.sc-foot { border-top: 1px solid var(--border); padding: 10px; background: var(--panel-solid); transition: opacity .15s; }
.sc-foot.sending { opacity: .6; pointer-events: none; }
.sc-inrow { display: flex; align-items: flex-end; gap: 6px; }
.sc-inrow textarea { flex: 1; min-width: 0; font: inherit; font-size: 13.5px; color: var(--text); background: var(--panel2); border: 1px solid var(--border); border-radius: 12px; padding: 9px 11px; outline: none; resize: none; max-height: 110px; scrollbar-width: none; transition: border-color .15s; }
.sc-inrow textarea:focus { border-color: var(--muted2); }
.sc-send { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--inv-bg); color: var(--inv-text); cursor: pointer; transition: transform .15s; }
.sc-send:hover { transform: scale(1.06); }
.sc-send:active { transform: scale(.94); }
.sc-prev { display: none; position: relative; width: 72px; margin-bottom: 8px; animation: uiPop .16s ease-out; }
.sc-prev.show { display: block; }
.sc-prev img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); display: block; }
.sc-prev-x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--panel-solid); color: var(--text); cursor: pointer; padding: 0; }
.sc-prev-x svg { width: 12px; height: 12px; }
.has-fab .toasts { bottom: 88px; }
.sup-read { padding: 0; gap: 0; overflow: hidden; }
.sup-read .mail-head { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.sup-read .mail-empty { margin: auto; }
.sup-read > .sk, .sup-read > .skeleton { margin: 14px; }
.sup-chat { padding: 16px; }
.sup-chat .sc-bub { max-width: min(70%, 620px); }
.sup-foot { padding: 12px; }
.mail-item { position: relative; }
.sup-n { flex: none; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.sup-item { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; }
.sup-item.unread::before { display: none; }
.sup-av { position: relative; flex: none; display: inline-flex; }
.sup-item.unread .sup-av::after { content: ''; position: absolute; top: 0; right: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 2px var(--panel); }
.sup-item.unread.active .sup-av::after, .sup-item.unread:hover .sup-av::after { box-shadow: 0 0 0 2px var(--panel2); }
.sup-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sup-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sup-line .mail-item-prev { flex: 1; min-width: 0; }
@media (max-width: 860px) {
  .sc-fab { right: 14px; bottom: 14px; }
  .sc-panel { right: 10px; left: 10px; bottom: 80px; width: auto; max-width: none; height: min(70vh, 560px); }
  .has-fab .toasts { bottom: 80px; }
  .sup-read { min-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) { .sc-fab, .sc-fab::after, .sc-panel, .sc-msg { animation: none; transition: none; } }
.sc-fab svg { width: 26px; height: 26px; }
.sn-ed .sn-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.sn-ed .sn-body { min-height: 260px; font-size: 13.5px; line-height: 1.55; }
.sn-en { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 12px; transition: border-color .25s ease, background .25s ease; }
.sn-en[open] { background: var(--panel); }
.sn-en:hover { border-color: var(--muted2, var(--border)); }
.sn-en summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; color: var(--text); font-size: 13px; font-weight: 600; padding: 11px 0; }
.sn-en summary::-webkit-details-marker { display: none; }
.sn-en summary svg { width: 16px; height: 16px; color: var(--muted); transform: rotate(-90deg); transition: transform .3s var(--ease); }
.sn-en[open]:not(.closing-d) summary svg { transform: none; }
.sn-en summary em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 12px; margin-left: auto; }
.det-body { overflow: hidden; }
.sn-en .det-body > .stack { padding-bottom: 12px; }
.sn-drop { width: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; align-content: center; gap: 6px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--panel2); color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; transition: .15s; }
.sn-drop:hover { border-color: var(--muted); color: var(--text); }
.sn-drop svg { width: 22px; height: 22px; }
.sn-thumb { position: relative; flex: none; width: 76px; height: 54px; border-radius: var(--radius-sm); overflow: hidden; background: var(--panel2); border: 1px solid var(--border); }
.sn-thumb.wide { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.sn-thumb img, .sn-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sn-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; padding: 0; }
.sn-x svg { width: 14px; height: 14px; }
.sn-badge { position: absolute; left: 4px; bottom: 4px; padding: 0 5px; border-radius: 4px; background: rgba(0, 0, 0, .75); color: #fff; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.sn-n { position: absolute; left: 4px; top: 4px; min-width: 18px; padding: 0 4px; border-radius: 4px; background: var(--inv-bg); color: var(--inv-text); font-size: 10px; font-weight: 800; text-align: center; }
.sn-media { display: flex; flex-direction: column; gap: 6px; }
.sn-mi { display: flex; align-items: center; gap: 8px; animation: uiPop .18s ease-out; }
.sn-mi .input { flex: 1; min-width: 0; }
.sn-mact { display: flex; gap: 2px; flex: none; }
.sn-ic { min-width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 6px; background: var(--panel2); color: var(--muted); cursor: pointer; font: 700 11px/1 ui-monospace, Consolas, monospace; padding: 0 4px; }
.sn-ic:hover:not(:disabled) { color: var(--text); border-color: var(--muted); }
.sn-ic:disabled { opacity: .35; cursor: default; }
.sn-ic svg { width: 13px; height: 13px; }
.sn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 10px; }
.sn-card { display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; transition: transform .18s ease, border-color .18s ease; }
.sn-card:hover { transform: translateY(-2px); border-color: var(--muted2); }
.sn-ccover { aspect-ratio: 16 / 8; background: var(--panel2); display: grid; place-items: center; color: var(--faint); overflow: hidden; }
.sn-ccover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sn-card:hover .sn-ccover img { transform: scale(1.04); }
.sn-ccover svg { width: 28px; height: 28px; }
.sn-cbody { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.sn-cmeta { display: flex; justify-content: space-between; color: var(--faint); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.sn-cbody b { font-size: 15px; line-height: 1.3; }
.sn-cbody p { margin: 0; color: var(--muted); font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sn-ctags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.sn-preview h2 { margin: 6px 0 8px; font-size: 26px; letter-spacing: -.02em; }
.sn-pcover { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius); margin-bottom: 10px; }
.sn-pmeta { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.sn-lead { color: var(--muted); font-size: 15px; }
.sn-article { color: var(--text2); font-size: 15px; line-height: 1.65; }
.sn-article h3 { font-size: 19px; margin: 18px 0 6px; color: var(--text); }
.sn-article a { color: var(--text); text-decoration: underline; }
.sn-article .sn-m { margin: 14px 0; }
.sn-article .sn-m img, .sn-article .sn-m video { width: 100%; border-radius: var(--radius); display: block; }
.sn-article figcaption { color: var(--faint); font-size: 12px; margin-top: 4px; }
.sn-yt { position: relative; aspect-ratio: 16 / 9; }
.sn-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
@media (max-width: 860px) { .sn-ed .sn-cols { grid-template-columns: 1fr; } }

.login .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.brand-ico { width: 20px; height: 20px; flex: none; }
.p-banner.has-img { height: auto; aspect-ratio: 5 / 2; background-size: cover; background-position: center; background-repeat: no-repeat; }
@media (max-width: 860px) { .p-banner.has-img { height: auto; } }
@media (max-width: 860px) {
  .tabs { flex-wrap: wrap; }
  .tab { min-width: 0; flex: 1 1 calc(50% - 6px); padding: 9px 8px; font-size: 12.5px; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; display: flex; align-items: center; justify-content: center; text-align: center; }
  .mail-bar .tab { flex: 1 1 auto; }
}

@media (max-width: 860px) {
  .table:has(.pp-row) .thead { display: none; }
  .pp-row { grid-template-columns: 1fr !important; gap: 0 !important; padding: 10px 12px !important; }
  .pp-row > [data-lbl] { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 6px 0; border-bottom: 1px dashed var(--border); white-space: normal; overflow: visible; text-overflow: clip; }
  .pp-row > [data-lbl]:last-child { border-bottom: 0; }
  .pp-row > [data-lbl]::before { content: attr(data-lbl); flex: none; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
  .pp-row > [data-lbl] > * { min-width: 0; text-align: right; overflow-wrap: anywhere; }
}
.chip.disabled { opacity: .45; cursor: not-allowed; }
.sm-hero { margin-bottom: 12px; }
.sm-state { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); transition: border-color .3s ease, background .3s ease; }
.sm-state b { display: block; font-size: 16px; color: var(--text); }
.sm-state span:not(.sm-pulse) { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.sm-pulse { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.sm-pulse::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: smPulse 2.2s ease-out infinite; }
.sm-state.off { border-color: var(--amber); }
.sm-state.off .sm-pulse { background: var(--amber); }
.sm-state.off .sm-pulse::after { border-color: var(--amber); }
@keyframes smPulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.sm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.sm-wide { grid-column: 1 / -1; }
@media (max-width: 980px) { .sm-grid { grid-template-columns: 1fr; } }
.sm-card .panel-title { display: flex; align-items: center; gap: 8px; }
.sm-card .panel-title svg { width: 16px; height: 16px; color: var(--muted); }
.sm-secs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
@media (max-width: 760px) { .sm-secs { grid-template-columns: 1fr; } }
.sm-sec { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.sm-sec:hover { border-color: var(--muted2, var(--border)); background: var(--panel); }
.sm-sec .grow { min-width: 0; }
.lb-tabs { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-bottom: 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.lb-t { position: relative; z-index: 1; min-width: 46px; padding: 4px 10px; border: 0; background: none; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; cursor: pointer; transition: color .25s ease; }
.lb-t.active { color: var(--inv-text); }
.lb-ink { position: absolute; z-index: 0; left: 0; top: 0; bottom: 0; width: 50%; background: var(--inv-bg); transition: transform .32s var(--ease); }
.lb-view { overflow: hidden; }
.lb-track { display: flex; width: 200%; transition: transform .38s var(--ease); }
.lb-pane { width: 50%; padding: 2px; }
.lb .lb-pane:nth-child(2) { opacity: .4; transition: opacity .3s ease; }
.lb .lb-pane:nth-child(1) { transition: opacity .3s ease; }
.lb[data-i="1"] .lb-pane:nth-child(2) { opacity: 1; }
.lb[data-i="1"] .lb-pane:nth-child(1) { opacity: .4; }
.sm-cd { padding: 16px; border-radius: var(--radius-sm); background: var(--inv-bg); color: var(--inv-text); text-align: center; }
.sm-cd-t { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.sm-cd-row { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.sm-cd-c { min-width: 74px; padding: 8px 6px; border-radius: var(--radius-sm); background: rgba(127, 127, 127, .14); }
.sm-cd-c b { display: block; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sm-cd-c span { display: block; margin-top: 4px; font-size: 11px; opacity: .7; }
.sm-cd-empty { margin-top: 8px; opacity: .75; font-size: 13px; }
.sm-save { position: sticky; bottom: 14px; z-index: 5; display: flex; align-items: center; gap: 8px; width: fit-content; margin: 14px 0 0 auto; padding: 8px 8px 8px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel-solid); box-shadow: var(--shadow); font-size: 13px; color: var(--muted); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .25s ease, transform .35s var(--ease); }
.sm-save.show { opacity: 1; transform: none; pointer-events: auto; }
.sm-save span { margin-right: 6px; }
a[data-href] { cursor: pointer; }
.sm-state .grow, .sm-sec .grow { flex: 1; min-width: 0; }
.sm-card .s-sub, .sm-sec .s-sub { color: var(--muted); font-weight: 500; font-size: 12.5px; line-height: 1.45; }
.sm-sec .s-title { font-weight: 600; }
:root { accent-color: var(--text); caret-color: var(--text); }
::-moz-selection { background: var(--inv-bg); color: var(--inv-text); }
.chip.active::selection, .btn:not(.ghost)::selection, .btn:not(.ghost) ::selection, .sc-fab ::selection, .sm-cd ::selection { background: var(--text); color: var(--bg, #000); }
:focus:not(:focus-visible) { outline: none; }
:where(button, a, [tabindex], summary, .chip, label.switch):focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 1000px var(--panel2) inset; box-shadow: 0 0 0 1000px var(--panel2) inset; caret-color: var(--text); transition: background-color 99999s ease 0s; }
input::-webkit-calendar-picker-indicator { filter: invert(var(--icon-invert, 1)) grayscale(1); opacity: .7; cursor: pointer; }
:root[data-theme="light"] { --icon-invert: 0; }
.sm-cd { -webkit-user-select: none; user-select: none; cursor: default; -webkit-touch-callout: none; }
.dot-on.idle { background: var(--amber); }
.dot-on.dnd { background: var(--red); }
.p-now { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.p-now-h { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); margin-bottom: 6px; }
.p-now-h .dot-on { box-shadow: 0 0 0 0 var(--green); animation: nowPulse 2s ease-out infinite; }
@keyframes nowPulse { 0% { box-shadow: 0 0 0 0 rgba(0, 255, 128, .45); } 100% { box-shadow: 0 0 0 8px rgba(0, 255, 128, 0); } }
.p-now-r { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; padding: 5px 0; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--border); }
.p-now-r:first-of-type { border-top: 0; }
.p-now-r.on { color: var(--text); }
.p-now-s { font-weight: 700; }
.p-now-r.on .p-now-s::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: 1px; }
.p-now-t a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sn-pick svg { transform: rotate(-90deg); color: var(--muted); transition: transform .2s ease; }
.sn-pick:hover svg { transform: rotate(-90deg) translateY(2px); }
.gl-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s var(--ease), opacity .2s ease, margin .3s var(--ease); }
.gl-hint.show { max-height: 120px; opacity: 1; margin-top: 8px; }
.gl-hint .chip { font-size: 12px; padding: 4px 9px; }
.gl-ok { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-weight: 600; }
.gl-ok svg { width: 14px; height: 14px; }
.gl-bad { color: var(--red); font-weight: 600; }
.staff-card .sb-act { display: flex; flex-direction: column; gap: 1px; margin-top: 3px; color: var(--text2); }
.staff-card .sb-act span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-card .sb-act b { color: var(--green); font-weight: 700; margin-right: 3px; }
.srv-pane { min-height: 120px; }
.srv-pane.in { animation: srvIn .28s var(--ease); }
@keyframes srvIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.srv-form { display: grid; grid-template-columns: 180px 150px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
@media (max-width: 760px) { .srv-form { grid-template-columns: 1fr 1fr; } .srv-form .input { grid-column: 1 / -1; } }
.srv-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.srv-check input { accent-color: var(--text); }
.srv-check.locked { opacity: .55; cursor: default; }
.srv-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .srv-grid2 { grid-template-columns: 1fr; } }
.srv-box { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel); }
.srv-box .panel-title { margin: 0 0 8px; font-size: 13px; }
.srv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
@media (max-width: 760px) { .srv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.srv-stats div { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.srv-stats span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.srv-stats b { display: block; margin-top: 3px; font-size: 17px; font-variant-numeric: tabular-nums; }
.srv-log { display: flex; flex-direction: column; }
.srv-log-r { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--border); font-size: 13px; }
.srv-log-r:first-child { border-top: 0; }
.srv-log-r .cell-sub { white-space: nowrap; }
.srv-pick { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 240px; overflow-y: auto; }
.srv-perms { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; max-height: 50vh; overflow-y: auto; }
.srv-perm-g { display: flex; flex-direction: column; gap: 4px; }
.srv-perm-g .cell-sub { margin-bottom: 2px; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.srv-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lg-tabs { margin-bottom: 10px; }
.lg-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; align-items: end; }
.lg-filters + .lg-filters { margin-top: 8px; }
.lg-bottom .chips { align-self: end; padding-bottom: 3px; }
.lg-actions { justify-content: flex-end; }
.lg-head, .lg-row { display: grid; grid-template-columns: 110px 90px minmax(0, 2fr) 70px 70px minmax(0, 1fr) 110px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 0; font-size: 13px; }
.lg-head { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border); }
.lg-row { border-top: 1px solid var(--border); transition: background .15s linear; }
.lg-row:first-child { border-top: 0; }
.lg-row.linked { background: var(--hover2); }
.lg-row > span { min-width: 0; overflow-wrap: anywhere; }
.lg-det { margin-top: 2px; }
.lg-open { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); font-size: 11px; font-weight: 600; cursor: pointer; transition: .15s linear; }
.lg-open:hover { color: var(--text); border-color: var(--border-hi); }
.lg-empty { padding: 18px 0; text-align: center; }
.lg-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.lg-side { background: var(--panel2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; }
.lg-who { font-weight: 700; margin-bottom: 6px; }
.lg-who span { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 6px; }
.lg-line { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid var(--border); font-size: 13px; }
.lg-line:first-of-type { border-top: 0; }
.lg-code { font-style: normal; color: var(--muted); font-size: 11px; margin-left: 4px; }
@media (max-width: 900px) { .lg-head { display: none; } .lg-head, .lg-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .srv-filters { grid-template-columns: 1fr 1fr; } }
.game-code { margin: 6px auto 14px; width: fit-content; padding: 14px 26px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: 700 34px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .3em; color: var(--text); user-select: all; }
.ac-feed { height: min(62vh, 640px); overflow-y: auto; padding: 10px 12px; border-radius: var(--radius-sm); background: #0b0b0d; border: 1px solid var(--border); font: 500 13px/1.55 'Segoe UI', Arial, sans-serif; color: #fff; }
.ac-line { padding: 2px 0; word-break: break-word; animation: srvIn .25s var(--ease); }
.ac-line.ac-from-panel { background: rgba(255, 255, 255, .03); }
.ac-time { color: #8c8c8c; margin-right: 6px; font-variant-numeric: tabular-nums; }
.ac-tag { display: inline-block; padding: 1px 5px; margin-right: 5px; border-radius: 4px; font: inherit; line-height: 1.4; background: #2a2a2a; color: #fff; }
.ac-send { display: flex; gap: 8px; margin-top: 10px; }
.ac-send .input { flex: 1; }
.ld { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 600; padding: 6px 0; }
.ld.ld-page { justify-content: center; padding: 48px 0; font-size: 14px; }
.ld-ring { width: 22px; height: 22px; flex: none; animation: ldSpin 1.1s linear infinite; }
.ld.ld-page .ld-ring { width: 30px; height: 30px; }
.ld-track { fill: none; stroke: var(--border); stroke-width: 2.6; }
.ld-arc { fill: none; stroke: var(--text); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 57 57; stroke-dashoffset: 54; transform-origin: 12px 12px; animation: ldArc 1.6s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes ldSpin { to { transform: rotate(360deg); } }
@keyframes ldArc { 0% { stroke-dashoffset: 54; } 55% { stroke-dashoffset: 8; } 100% { stroke-dashoffset: 54; transform: rotate(360deg); } }
.ld-modal { display: flex; align-items: center; justify-content: center; min-height: 90px; }
.srv-dur { display: flex; gap: 6px; align-items: center; min-width: 0; }
.srv-dur-own { display: flex; gap: 6px; animation: srvIn .25s var(--ease); }
.srv-dur-own[hidden] { display: none; }
.srv-dur-own .input { width: 80px; }
.srv-form { grid-template-columns: 170px minmax(150px, auto) minmax(0, 1fr) auto auto; }
.ask-link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: opacity .2s; }
.ask-link:hover { opacity: .75; }
.vf-pick { display: flex; gap: 8px; align-items: flex-start; flex: none; }
.vf-box { position: relative; width: 300px; max-width: 60vw; }
.vf-drop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; display: grid; gap: 2px; padding: 4px; background: var(--panel-solid); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .18s var(--ease), transform .18s var(--ease); max-height: 300px; overflow-y: auto; }
.vf-drop.open { opacity: 1; transform: none; pointer-events: auto; }
.vf-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: background-color .18s var(--ease); }
.vf-item:hover { background: var(--hover2); }
.vf-item b { display: block; font-size: 14px; }
.vf-empty { padding: 10px; color: var(--muted); font-size: 13px; }
@media (max-width: 700px) { .vf-pick { width: 100%; } .vf-box { flex: 1; width: auto; max-width: none; } }
.vf-box input[type=search]::-webkit-search-cancel-button { display: none; }
.feed-row { align-items: flex-start; gap: 12px; }
.feed-src { flex: none; min-width: 74px; padding: 3px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 11px; text-align: center; color: var(--muted); }
.feed-src--ds { color: #8b9cf7; border-color: rgba(139, 156, 247, .35); }
.feed-src--game { color: #e6b450; border-color: rgba(230, 180, 80, .35); }
.feed-src--forum { color: #5fb878; border-color: rgba(95, 184, 120, .35); }
.feed-meta { display: grid; justify-items: end; gap: 2px; flex: none; font-size: 12px; text-align: right; }
.pc { display: grid; gap: 14px; }
.pc-sec { display: grid; gap: 6px; }
.pc-k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pc-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.pc-links > div { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.pc-links span { font-size: 11px; color: var(--muted); }
.pc-links b { font-size: 13px; word-break: break-word; }
.pc a.log-row { color: inherit; text-decoration: none; }
.feed-row > .grow { flex: 1; min-width: 0; }
.pc .log-row > .grow { flex: 1; min-width: 0; }
.fp-pick { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 800px) { .fp-pick { grid-template-columns: 1fr; } }
.fp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fp-chips .chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: none; color: var(--text); font: inherit; font-size: 12px; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.fp-chips .chip:hover { background: var(--hover2); }
.fp-chips .chip.active { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); }
.fp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 6px; border-radius: var(--radius-sm); transition: background-color .2s var(--ease); flex-wrap: wrap; }
.fp-row + .fp-row { border-top: 1px solid var(--border); }
.fp-row.changed { background: var(--hover2); }
.fp-title { flex: 1; min-width: 200px; font-size: 13px; }
.fp-seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.fp-opt { padding: 5px 10px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.fp-opt:hover { color: var(--text); }
.fp-opt.on { background: var(--inv-bg); color: var(--inv-text); }
.fp-opt.on.fp-content_allow, .fp-opt.on.fp-allow { background: #2ea043; color: #fff; }
.fp-opt.on.fp-deny, .fp-opt.on.fp-never, .fp-opt.on.fp-reset { background: #da3633; color: #fff; }
.fp-int { max-width: 130px; }
.fp-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.fp-check { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; cursor: pointer; transition: background-color .2s var(--ease); }
.fp-check:hover { background: var(--hover2); }
.fp-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fp-sugg .chip { padding: 4px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.fp-sugg .chip:hover { color: var(--text); background: var(--hover2); }
.fp-sugg .chip.active { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); }
.fp-row, .fp-check, .fp-chips .chip { animation: fpIn .28s var(--ease) both; }
@keyframes fpIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.fp-tree { display: grid; gap: 4px; max-height: 320px; overflow-y: auto; padding: 2px; }
.fp-tree .fp-check { padding: 6px 10px; }
.sn-ed .sn-cols > .stack { align-self: start; }
.sn-media { gap: 10px; }
.sn-media .sn-mi { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); transition: border-color .25s var(--ease); }
.sn-media .sn-mi:hover { border-color: var(--muted2, var(--border)); }
.sn-media .sn-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 0; background: #000; }
.sn-media .sn-thumb img, .sn-media .sn-thumb video { transition: transform .5s var(--ease); }
.sn-media .sn-mi:hover .sn-thumb img { transform: scale(1.03); }
.sn-media .sn-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 34%, transparent 66%, rgba(0, 0, 0, .55)); pointer-events: none; }
.sn-media .sn-n { position: absolute; z-index: 1; left: 10px; bottom: 9px; top: auto; min-width: 0; padding: 0; border-radius: 0; background: none; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: left; }
.sn-play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.sn-play svg { width: 16px; height: 16px; margin-left: 2px; }
.sn-mi:hover .sn-play:not(.yt) { opacity: 0; transform: scale(.85); }
.sn-tools { position: absolute; z-index: 1; top: 8px; right: 8px; display: flex; gap: 4px; opacity: 0; transform: translateY(-4px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.sn-mi:hover .sn-tools, .sn-tools:focus-within { opacity: 1; transform: none; }
.sn-tools .sn-ic { width: 28px; min-width: 28px; border: 0; border-radius: 7px; background: rgba(0, 0, 0, .62); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sn-tools .sn-ic:hover:not(:disabled) { background: #fff; color: #000; }
.sn-tools .sn-ic.rm:hover { background: #e5484d; color: #fff; }
.sn-tools .sn-ic svg { width: 14px; height: 14px; transform: rotate(180deg); }
.sn-tools .sn-ic.dn svg { transform: none; }
.sn-tools .sn-ic.rm svg { transform: none; }
.sn-mbody { flex: 1; min-width: 0; display: grid; gap: 8px; padding: 10px; }
.sn-mrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sn-where { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.sn-where i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); transition: background .25s var(--ease); }
.sn-where.in { color: var(--text); }
.sn-where.in i { background: var(--text); }
.sn-mempty { padding: 22px 14px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); font-size: 12.5px; text-align: center; }
.sn-mbusy { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); color: var(--muted); font-size: 12.5px; animation: uiPop .18s ease-out; }
.sn-mspin { width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--text); border-radius: 50%; animation: snSpin .8s linear infinite; }
@keyframes snSpin { to { transform: rotate(360deg); } }
@media (hover: none) {
  .sn-tools, .cdn-acts, .ch-row .ch-c.acts, .rr-mcopy, .ra-item .ra-del, .nb-card .nb-more { opacity: 1; transform: none; pointer-events: auto; }
  .wtip { display: none !important; }
}
.fq-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 6px; border-radius: var(--radius-sm); transition: background-color .2s var(--ease); animation: fpIn .28s var(--ease) both; }
.fq-row + .fq-row { border-top: 1px solid var(--border); }
.fq-row.on { background: var(--hover2); }
.fq-row input[type=checkbox], .fq-all input { margin-top: 3px; }
.fq-row .grow { flex: 1; min-width: 0; }
.fq-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.fq-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; max-width: 52%; }
.fq-all { display: flex; align-items: center; gap: 8px; padding: 2px 6px 10px; font-size: 13px; color: var(--muted); cursor: pointer; }
.fq-bulk { position: sticky; top: 8px; z-index: 5; animation: fpIn .22s var(--ease) both; }
.fq-tpls { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fq-tpls .chip { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: none; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.fq-tpls .chip:hover { background: var(--hover2); }
.fq-tpls .chip.active { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); }
.fq-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 10px; }
.btn.red-t { color: #f85149; }
.btn.green-t { color: #3fb950; }
@media (max-width: 800px) { .fq-row { flex-wrap: wrap; } .fq-acts { max-width: none; justify-content: flex-start; } }
@media (max-width: 760px) { .row > .tabs { flex: 1 1 100% !important; flex-wrap: wrap; } .row > .tabs .tab { flex: 1 1 calc(50% - 6px); min-width: 0; } .row > .select, .row > .dd, .row > .input, .row > div > .dd { max-width: 100% !important; flex: 1 1 100%; } }
.fq-list { margin: 0 0 12px 18px; padding: 0; line-height: 1.7; font-size: 13px; }
.fq-quote { padding: 10px 12px; border-left: 3px solid var(--text); border-radius: 4px; background: var(--hover2); font-size: 13px; white-space: pre-line; }
.sn-play svg { fill: currentColor; }
.sn-media .sn-thumb img, .sn-media .sn-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cdn { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 320px; }
.cdn-head { gap: 10px; }
.cdn-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; min-width: 0; }
.cdn-crumbs i { font-style: normal; color: var(--faint); padding: 0 2px; }
.cdn-crumb { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; padding: 5px 8px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.cdn-crumb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdn-crumb svg { width: 15px; height: 15px; flex: none; }
.cdn-crumb:hover { background: var(--panel2); color: var(--text); }
.cdn-crumb.cur { color: var(--text); }
.cdn-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.cdn-note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--text); }
.cdn-note b { color: var(--text); }
.cdn-note.open { border-color: color-mix(in srgb, var(--amber) 40%, var(--border)); }
.cdn-note.open svg { color: var(--amber); }
.cdn-bulk { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel2); font-size: 13px; font-weight: 600; animation: uiPop .18s ease-out; }
.cdn-bulk[hidden] { display: none; }
.cdn-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.cdn-row { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-top: 1px solid var(--border); transition: background .2s var(--ease); }
.cdn-row:first-child { border-top: 0; }
.cdn-row:hover, .cdn-row.on { background: var(--panel2); }
.cdn-check { flex: none; width: 20px; height: 20px; margin: 0 4px; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: none; color: transparent; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.cdn-check svg { width: 13px; height: 13px; }
.cdn-check:hover { border-color: var(--muted); }
.cdn-check.on { background: var(--inv-bg); border-color: var(--inv-bg); color: var(--inv-text); }
.cdn-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 7px 4px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.cdn-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); color: var(--muted); transition: transform .25s var(--ease), color .2s var(--ease); }
.cdn-ico svg { width: 16px; height: 16px; }
.cdn-ico.dir { color: var(--text); }
.cdn-row:hover .cdn-ico { transform: scale(1.06); }
.cdn-name { min-width: 0; display: grid; gap: 1px; }
.cdn-name b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdn-name em { font-style: normal; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdn-access { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 6px; font-size: 12px; color: var(--muted); cursor: pointer; }
.cdn-acts { flex: none; display: flex; gap: 2px; opacity: .45; transition: opacity .2s var(--ease); }
.cdn-row:hover .cdn-acts, .cdn-acts:focus-within { opacity: 1; }
.cdn-act { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.cdn-act svg { width: 15px; height: 15px; }
.cdn-act:hover { background: var(--border); color: var(--text); }
.cdn-act.red:hover { background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red); }
.cdn-empty { display: grid; justify-items: center; gap: 6px; padding: 46px 16px; color: var(--muted); font-size: 12.5px; text-align: center; }
.cdn-empty svg { width: 26px; height: 26px; color: var(--faint); margin-bottom: 4px; }
.cdn-empty b { color: var(--text); font-size: 14px; }
.cdn-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--faint); font-size: 12px; padding: 0 2px; }
.cdn-queue { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); animation: uiPop .18s ease-out; }
.cdn-queue:empty { display: none; }
.cdn-qhead { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.cdn-qhead span { color: var(--muted); margin-right: auto; }
.cdn-qtop { display: flex; align-items: center; gap: 8px; font-size: 12.5px; min-height: 30px; }
.cdn-qname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdn-qtop em { font-style: normal; color: var(--muted); flex: none; }
.cdn-q.error .cdn-qtop em { color: var(--red); }
.cdn-q.done .cdn-qtop em { color: var(--green); }
.cdn-bar { height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; }
.cdn-bar i { display: block; height: 100%; background: var(--text); transform-origin: left; transition: transform .3s var(--ease); }
.cdn-q.done .cdn-bar i { background: var(--green); }
.cdn-q.error .cdn-bar i, .cdn-q.cancel .cdn-bar i { background: var(--faint); }
.cdn-dropzone { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 8px; border: 2px dashed var(--muted); border-radius: var(--radius); background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--text); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); }
.cdn-dropzone svg { width: 26px; height: 26px; }
.cdn.drag .cdn-dropzone { opacity: 1; }
.cdn-tree { display: flex; flex-direction: column; gap: 2px; max-height: 320px; margin-top: 8px; overflow-y: auto; scrollbar-width: none; }
.cdn-tree::-webkit-scrollbar { display: none; }
.cdn-tnode { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid transparent; border-radius: var(--radius-sm); background: none; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease); }
.cdn-tnode[hidden] { display: none; }
.cdn-tnode svg { width: 14px; height: 14px; flex: none; color: var(--muted); }
.cdn-tnode em { font-style: normal; margin-left: auto; color: var(--faint); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50%; }
.cdn-tnode:hover { background: var(--panel2); }
.cdn-tnode.on { border-color: var(--text); background: var(--panel2); }
.cdn-ttl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cdn-chip { padding: 6px 12px; border: 1px solid var(--border); border-radius: 99px; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.cdn-chip:hover { color: var(--text); border-color: var(--muted); }
.cdn-chip.on { background: var(--inv-bg); border-color: var(--inv-bg); color: var(--inv-text); }
.cdn-url { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); font: 12.5px/1.5 ui-monospace, Consolas, monospace; word-break: break-all; user-select: all; }
.cdn-keys { display: flex; flex-direction: column; gap: 6px; }
.cdn-key { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel); }
.cdn-key div { min-width: 0; display: grid; gap: 2px; }
.cdn-key em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.cdn-mini { padding: 14px; border: 1px dashed var(--border); border-radius: var(--radius-sm); color: var(--muted); font-size: 12.5px; text-align: center; }
.cdn-knew { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
@media (max-width: 640px) { .cdn-acts { opacity: 1; } .cdn-access span { display: none; } .cdn-name em { white-space: normal; } }
.cdn-keypage { padding: 16px; max-width: 860px; }
.cdn-keypage + .cdn-keypage { margin-top: 12px; }
.cdn-keypage .field-label { margin-bottom: 4px; }
.nav-group.static { cursor: default; }
.nav-group.static:hover { color: var(--muted); }
.nav-recent { margin-bottom: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.nav-recent .nav-group { padding-top: 2px; }
.ch { display: flex; flex-direction: column; gap: 10px; }
.ch-top { gap: 10px; }
.ch-search { position: relative; flex: 1; min-width: 220px; max-width: 460px; display: block; }
.ch-search svg { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; color: var(--muted); pointer-events: none; }
.ch-search .input { padding-left: 34px; width: 100%; }
.ch-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--border); border-radius: 99px; background: var(--panel); color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.ch-chip em { font-style: normal; font-weight: 700; font-size: 11px; padding: 0 6px; border-radius: 99px; background: var(--hover2); color: var(--text); }
.ch-chip:hover { color: var(--text); border-color: var(--muted); }
.ch-chip.on { background: var(--inv-bg); border-color: var(--inv-bg); color: var(--inv-text); }
.ch-chip.on em { background: color-mix(in srgb, var(--inv-text) 14%, transparent); color: var(--inv-text); }
.ch-chip.red:not(.on) { border-color: color-mix(in srgb, var(--red) 45%, transparent); color: var(--red); }
.ch-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.ch-dot.amber, .ch-tag.amber i, .ch-color.amber { background: var(--amber); }
.ch-dot.green, .ch-tag.green i, .ch-color.green { background: var(--green); }
.ch-dot.red, .ch-tag.red i, .ch-color.red { background: var(--red); }
.ch-dot.blue, .ch-tag.blue i, .ch-color.blue { background: #5aa7ff; }
.ch-tag.gray i, .ch-color.gray { background: var(--muted); }
.ch-tag { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 3px 10px; border: 1px solid var(--border); border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-tag i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.ch-tag.amber { border-color: color-mix(in srgb, var(--amber) 40%, var(--border)); }
.ch-tag.green { border-color: color-mix(in srgb, var(--green) 35%, var(--border)); }
.ch-tag.red { border-color: color-mix(in srgb, var(--red) 40%, var(--border)); }
.ch-tag.blue { border-color: color-mix(in srgb, #5aa7ff 40%, var(--border)); }
.ch-table { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.ch-head, .ch-line { display: grid; grid-template-columns: 74px minmax(110px, 1.1fr) 112px minmax(140px, 2fr) minmax(100px, 1fr) minmax(150px, 190px) 118px 104px; align-items: center; gap: 10px; padding: 0 12px; }
.ch-head { min-height: 38px; border-bottom: 1px solid var(--border); background: var(--panel2); }
.ch-th { display: inline-flex; align-items: center; gap: 4px; min-width: 0; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-align: left; cursor: pointer; transition: color .2s var(--ease); }
.ch-th span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-th .chev { width: 12px; height: 12px; flex: none; opacity: 0; transition: opacity .2s var(--ease), transform .25s var(--ease); }
.ch-th:hover, .ch-th.on { color: var(--text); }
.ch-th.on .chev { opacity: 1; }
.ch-th .chev.up { transform: rotate(180deg); }
.ch-th.acts { cursor: default; }
.ch-row { border-top: 1px solid var(--border); transition: background .2s var(--ease); }
.ch-head + .ch-row { border-top: 0; }
.ch-row:hover { background: var(--panel2); }
.ch-row.has-del { background: color-mix(in srgb, var(--red) 5%, transparent); }
.ch-line { min-height: 50px; padding-top: 7px; padding-bottom: 7px; cursor: default; }
.ch-c { min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-c.id, .ch-c.date { color: var(--muted); font-size: 12px; }
.ch-c.reason { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--text2); line-height: 1.4; }
.ch-c.checker em { font-style: normal; color: var(--faint); }
.ch-c.static { display: flex; align-items: center; gap: 6px; }
.ch-rep { padding: 1px 6px; border: 1px solid var(--border); border-radius: 99px; background: none; color: var(--muted); font: 700 10.5px/1.4 inherit; cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease); }
.ch-rep:hover { color: var(--text); border-color: var(--muted); }
.ch-st { max-width: 100%; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.ch-st:hover { transform: translateY(-1px); opacity: .85; }
.ch-c.acts { display: flex; justify-content: flex-end; gap: 2px; overflow: visible; opacity: .5; transition: opacity .2s var(--ease); }
.ch-row:hover .ch-c.acts, .ch-c.acts:focus-within { opacity: 1; }
.ch-act { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease); }
.ch-act svg { width: 15px; height: 15px; }
.ch-act .up, .ch-act svg.up { transform: rotate(180deg); }
.ch-act:hover:not(:disabled) { background: var(--border); color: var(--text); }
.ch-act.red:hover:not(:disabled) { background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red); }
.ch-act:disabled { opacity: .3; cursor: default; }
.ch-del { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 12px 10px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--red) 40%, var(--border)); border-radius: var(--radius-sm); font-size: 12.5px; line-height: 1.5; color: var(--text2); }
.ch-del > svg { width: 15px; height: 15px; flex: none; color: var(--red); }
.ch-del > span:first-of-type { flex: 1; min-width: 200px; }
.ch-empty { display: grid; justify-items: center; gap: 6px; padding: 46px 16px; color: var(--muted); font-size: 12.5px; text-align: center; }
.ch-empty svg { width: 26px; height: 26px; color: var(--faint); margin-bottom: 4px; }
.ch-empty b { color: var(--text); font-size: 14px; }
.ch-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 0 2px; color: var(--faint); font-size: 12px; }
.ch-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-pick.col { flex-direction: column; }
.ch-opt { padding: 7px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: none; text-align: left; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease); }
.ch-opt:hover { background: var(--panel2); }
.ch-opt.on { border-color: var(--text); background: var(--panel2); }
.ch-opt .ch-tag { border-color: transparent; padding: 0 4px; }
.ch-hist { padding-top: 12px; border-top: 1px solid var(--border); display: grid; gap: 4px; }
.ch-hrow { display: grid; grid-template-columns: 112px minmax(80px, 150px) 1fr; gap: 10px; font-size: 12px; line-height: 1.5; }
.ch-hrow span { color: var(--faint); }
.ch-hrow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-hrow em { font-style: normal; color: var(--muted); }
.ch-slist { display: flex; flex-direction: column; gap: 8px; }
.ch-sitem { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel); }
.ch-sitem .input { flex: 1; min-width: 180px; }
.ch-colors { display: flex; gap: 6px; }
.ch-color { width: 20px; height: 20px; padding: 0; border: 2px solid transparent; border-radius: 50%; cursor: pointer; outline: 1px solid var(--border); outline-offset: 1px; transition: transform .2s var(--ease), outline-color .2s var(--ease); }
.ch-color:hover { transform: scale(1.12); }
.ch-color.on { outline: 2px solid var(--text); }
.ch-done { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); cursor: pointer; }
.ch-sacts { display: flex; gap: 2px; }
.ch-scount { flex-basis: 100%; font-style: normal; font-size: 11.5px; color: var(--faint); }
.ch-memos { display: flex; flex-direction: column; gap: 10px; }
.ch-memo { padding: 18px 20px; }
.ch-memo header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.ch-memo h2 { margin: 0 0 4px; font-size: 19px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.ch-memo header em { font-style: normal; font-size: 12px; color: var(--faint); }
.ch-pin { display: inline-grid; place-items: center; color: var(--muted); }
.ch-pin svg { width: 15px; height: 15px; }
.ch-mbody { color: var(--text2); font-size: 14.5px; line-height: 1.65; overflow-wrap: anywhere; }
.ch-mbody > :first-child { margin-top: 0; }
.ch-mbody > :last-child { margin-bottom: 0; }
.ch-mbody p { margin: 0 0 12px; }
.ch-mbody h3 { margin: 20px 0 8px; font-size: 16px; color: var(--text); }
.ch-mbody ul, .ch-mbody ol { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 4px; }
.ch-mbody blockquote { margin: 0 0 12px; padding: 10px 14px; border-left: 2px solid var(--text); background: var(--panel2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text); }
.ch-mbody code { padding: 1px 6px; border: 1px solid var(--border); border-radius: 5px; background: var(--bg); font: 12.5px ui-monospace, Consolas, monospace; }
.ch-mbody a { color: var(--text); text-decoration: underline; }
.ch-ed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.ch-prev { min-height: 280px; max-height: 420px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); overflow-y: auto; scrollbar-width: none; }
.ch-prev::-webkit-scrollbar { display: none; }
.ch-stats { display: flex; flex-direction: column; gap: 12px; }
.ch-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.ch-tile { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.ch-tile em { font-style: normal; font-size: 12px; color: var(--muted); }
.ch-tile b { font-size: 26px; letter-spacing: -.02em; line-height: 1; }
.ch-shead, .ch-srow { display: grid; grid-template-columns: 40px minmax(160px, 1.6fr) repeat(3, 84px) repeat(var(--ch-cols, 0), minmax(90px, 1fr)) 124px; align-items: center; gap: 10px; padding: 0 12px; min-height: 44px; }
.ch-shead { min-height: 38px; border-bottom: 1px solid var(--border); background: var(--panel2); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ch-shead span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-srow { border-top: 1px solid var(--border); font-size: 13px; transition: background .2s var(--ease); }
.ch-shead + .ch-srow { border-top: 0; }
.ch-srow:hover { background: var(--panel2); }
.ch-srow .num, .ch-shead .num { text-align: right; font-variant-numeric: tabular-nums; }
.ch-srow .num { color: var(--muted); }
.ch-srow .num.cur { color: var(--text); font-weight: 700; }
.ch-who { display: grid; gap: 5px; min-width: 0; }
.ch-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-meter { display: block; height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; }
.ch-meter i { display: block; height: 100%; background: var(--text); transform-origin: left; transition: transform .5s var(--ease); }
@media (max-width: 980px) {
  .ch-head { display: none; }
  .ch-line { grid-template-columns: 1fr auto; gap: 4px 10px; padding-top: 10px; padding-bottom: 10px; }
  .ch-c.id { order: 1; } .ch-c.acts { order: 2; opacity: 1; } .ch-c.nick { order: 3; grid-column: 1 / -1; font-size: 15px; }
  .ch-c.static { order: 4; } .ch-c.status { order: 5; justify-self: end; } .ch-c.reason { order: 6; grid-column: 1 / -1; }
  .ch-c.checker { order: 7; color: var(--muted); } .ch-c.date { order: 8; justify-self: end; }
  .ch-ed { grid-template-columns: 1fr; }
  .ch-table { overflow-x: auto; scrollbar-width: none; }
  .ch-shead, .ch-srow { min-width: 720px; }
  .ch-hrow { grid-template-columns: 1fr; gap: 0; padding: 4px 0; }
}
.ch-c.date { display: grid; gap: 2px; white-space: normal; }
.ch-wait { font-style: normal; font-size: 11.5px; color: var(--amber); font-variant-numeric: tabular-nums; transition: color .3s var(--ease); }
.ch-wait.late { color: var(--red); font-weight: 700; }
.ch-work { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.ch-work i { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--amber); animation: chPulse 1.6s ease-in-out infinite; }
.ch-work.me { color: var(--text); font-weight: 600; }
.ch-work.me i { background: var(--green); }
.ch-work.ch-checking i { background: #5aa7ff; }
.ch-work.ch-checking { white-space: normal; }
.ch-work.ch-awaiting { white-space: normal; }
.ch-work.ch-awaiting i { background: var(--amber); animation: none; }
.ch-work.ch-awaiting.me { color: var(--amber); }
.att-row.att-warn b { color: var(--amber); }
@keyframes chPulse { 50% { opacity: .35; } }
.ch-act.on { background: var(--inv-bg); color: var(--inv-text); }
.ch-act.on:hover:not(:disabled) { background: var(--inv-bg); color: var(--inv-text); opacity: .85; }
.ch-player { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel); }
.ch-phead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ch-phead > div { display: grid; gap: 2px; min-width: 0; }
.ch-phead b { font-size: 15px; }
.ch-phead em { font-style: normal; font-size: 12px; color: var(--muted); }
.ch-events { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--border); }
.ch-prevchecks { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ch-pc { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 9px; border: 1px solid var(--border); border-radius: 99px; background: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; transition: border-color .2s var(--ease), color .2s var(--ease); }
.ch-pc:hover { border-color: var(--muted); color: var(--text); }
.ch-pc .ch-tag { border-color: transparent; padding: 0 6px 0 0; }
.ch-plinks { gap: 6px; }
.ch-ttl-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ch-chip.sm { padding: 4px 10px; font-size: 12px; }
.ch-memo { padding: 0; overflow: hidden; transition: border-color .25s var(--ease); }
.ch-memo.unread { border-color: color-mix(in srgb, var(--text) 45%, var(--border)); }
.ch-memo header { margin: 0; padding: 16px 18px; border-bottom: 0; cursor: pointer; align-items: center; transition: background .2s var(--ease); }
.ch-memo header:hover { background: var(--panel2); }
.ch-memo h2 { font-size: 17px; }
.ch-mtags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ch-mtags:empty { display: none; }
.ch-mtag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border: 1px solid var(--border); border-radius: 99px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ch-mtag svg { width: 11px; height: 11px; }
.ch-mtag.pin { color: var(--text); }
.ch-mtag.new { background: var(--inv-bg); border-color: var(--inv-bg); color: var(--inv-text); }
.ch-mright { flex: none; flex-wrap: nowrap; gap: 2px; }
.ch-mchev { display: grid; place-items: center; width: 30px; height: 30px; color: var(--muted); }
.ch-mchev svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.ch-memo.open .ch-mchev svg { transform: rotate(180deg); }
.ch-mfold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.ch-mfold > div { overflow: hidden; min-height: 0; }
.ch-memo.open .ch-mfold { grid-template-rows: 1fr; }
.ch-memo .ch-mbody { padding: 16px 18px 4px; border-top: 1px solid var(--border); }
.ch-memo footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 18px 16px; }
.ch-readok { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--green); }
.ch-readok svg { width: 14px; height: 14px; }
.ch-rd { display: grid; gap: 4px; }
.ch-rdrow { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; }
.ch-rdrow em { font-style: normal; color: var(--muted); font-size: 12px; }
.ch-rdrow.no b { color: var(--muted); font-weight: 500; }
.ch-tile span { font-size: 11.5px; color: var(--muted); }
.ch-tile span i { font-style: normal; }
.ch-norm { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.ch-norm > svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.ch-norm.on > svg { color: var(--green); }
.ch-norm > div { flex: 1; min-width: 220px; display: grid; gap: 2px; }
.ch-norm span { font-size: 12.5px; color: var(--muted); }
.ch-srow.low { background: color-mix(in srgb, var(--amber) 6%, transparent); }
.lu-list { display: grid; gap: 6px; margin-top: 8px; }
.lu-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel); }
.lu-row span { display: grid; gap: 1px; min-width: 0; }
.lu-row em, .lu-opt em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.lu-found { display: grid; gap: 4px; margin-top: 10px; max-height: 300px; overflow-y: auto; scrollbar-width: none; }
.lu-found::-webkit-scrollbar { display: none; }
.lu-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid transparent; border-radius: var(--radius-sm); background: none; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease); }
.lu-opt span { display: grid; gap: 1px; min-width: 0; }
.lu-opt:hover { background: var(--panel2); }
.lu-opt.on { border-color: var(--text); background: var(--panel2); }
.ch-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.ch-range .input { width: auto; min-width: 150px; padding-top: 6px; padding-bottom: 6px; color-scheme: dark; }
:root[data-theme="light"] .ch-range .input { color-scheme: light; }
.ch-range em { font-style: normal; color: var(--faint); }
.feed-find { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.feed-find .ch-search { max-width: 420px; }
.fold { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .38s var(--ease), opacity .3s var(--ease), margin .38s var(--ease); }
.fold > div { overflow: hidden; min-height: 0; }
.fold.closed { grid-template-rows: 0fr; opacity: 0; pointer-events: none; }
.view > .fold.closed, .cdn > .fold.closed { margin-top: calc(-1 * var(--gap, 10px)); }
.cdn > .fold.closed { margin-top: -10px; }
.cdn-bulk { animation: none; }
.cdn-queue.closing { opacity: 0; transform: translateY(6px); transition: opacity .22s var(--ease), transform .22s var(--ease); }
:root[data-motion="0"] .fold, :root[data-motion="0"] .ch-mfold { transition: none; }
.ch-stats > .fold.closed { margin-top: -12px; }
.trp { display: flex; flex-direction: column; gap: 10px; }
.trp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 12px; border-top: 1px solid var(--border); transition: background .2s var(--ease); }
.trp-row:first-child { border-top: 0; }
.trp-row:hover { background: var(--panel2); }
.trp-ru { font-size: 13px; line-height: 1.5; color: var(--text2); overflow-wrap: anywhere; padding-top: 8px; }
.trp-en { display: grid; gap: 6px; min-width: 0; }
.trp-en .textarea { min-height: 38px; resize: none; overflow: hidden; font-size: 13px; line-height: 1.5; }
.trp-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trp-meta em { font-style: normal; font-size: 11.5px; color: var(--faint); }
.trp-acts { margin-left: auto; gap: 4px; }
@media (max-width: 760px) { .trp-row { grid-template-columns: 1fr; gap: 6px; } .trp-ru { padding-top: 0; } }
.view > .vp { display: contents; }
.view > .vp > * { flex-shrink: 0; }
.view > .vp > .fold.closed { margin-top: calc(-1 * var(--gap, 10px)); }
.trp [hidden] { display: none !important; }
.cv-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.cv-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; border-top: 1px solid var(--border); transition: background .2s var(--ease); }
.cv-row:first-child { border-top: 0; }
.cv-row:hover { background: var(--panel2); }
.cv-row b { font-size: 13px; }
.chart .bar { position: relative; outline: none; cursor: default; }
.chart .bar > .row i { transition: opacity .2s var(--ease), filter .2s var(--ease); }
.chart:hover .bar:not(:hover) > .row i { opacity: .35; }
.chart .bar:hover > .row i, .chart .bar:focus-visible > .row i { opacity: 1; }
.chart .bar .bar-tip { position: absolute; z-index: 5; left: 50%; bottom: calc(100% + 6px); display: grid; gap: 4px; min-width: 190px; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-solid, var(--panel)); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); color: var(--text); font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, 4px); transition: opacity .18s var(--ease), transform .18s var(--ease); }
.chart .bar:hover .bar-tip, .chart .bar:focus-visible .bar-tip { opacity: 1; transform: translate(-50%, 0); }
.chart .bar.first .bar-tip { left: 0; transform: translate(0, 4px); }
.chart .bar.first:hover .bar-tip, .chart .bar.first:focus-visible .bar-tip { transform: translate(0, 0); }
.chart .bar.last .bar-tip { left: auto; right: 0; transform: translate(0, 4px); }
.chart .bar.last:hover .bar-tip, .chart .bar.last:focus-visible .bar-tip { transform: translate(0, 0); }
.chart .bar.on .bar-tip { opacity: 1; transform: translate(-50%, 0); }
.chart .bar.first.on .bar-tip, .chart .bar.last.on .bar-tip { transform: translate(0, 0); }
.chart.has-on .bar:not(.on) > .row i { opacity: .35; }
.chart .bar.on > .row i { opacity: 1; }
.chart .bar .bar-tip em { font-style: normal; color: var(--muted); font-size: 11px; font-weight: 600; }
.chart .bar .bar-tip span { display: flex; align-items: center; gap: 6px; color: var(--text); font-size: 12px; font-weight: 500; }
.chart .bar .bar-tip span i { width: 8px; height: 8px; min-height: 0; max-width: none; border-radius: 2px; background: var(--inv-bg); opacity: .85; animation: none; flex: none; }
.chart .bar .bar-tip span i.b { background: var(--muted); opacity: .5; }
.chart .bar .bar-tip b { font-variant-numeric: tabular-nums; }
.chart .bar .bar-tip u { text-decoration: none; color: var(--muted); }
.panel:has(> .chart) { overflow: visible; }
.chart .bar i.d, .legend i.d, .chart .bar .bar-tip span i.d { background: repeating-linear-gradient(135deg, var(--inv-bg) 0 3px, transparent 3px 6px); opacity: .8; outline: 1px solid color-mix(in srgb, var(--inv-bg) 55%, transparent); outline-offset: -1px; }
.chart .bar .bar-tip { min-width: 210px; gap: 5px; }
.chart .bar .bar-tip .bt-head { font-size: 13px; padding-bottom: 2px; }
.chart .bar .bar-tip .bt-head u { color: var(--text); }
.chart .bar .bar-tip .bt-sub { justify-content: flex-start; }
.chart .bar .bar-tip .bt-sub u { flex: 1; }
.chart .bar .bar-tip .bt-sub b { min-width: 18px; text-align: right; }
.chart .bar .bar-tip .bt-sep { height: 1px; background: var(--border); margin: 2px 0; }
.chart .bar > .row { flex-wrap: nowrap !important; min-width: 0; }
.chart .bar > .row > i { flex: 1 1 0; min-width: 0; max-width: 18px; }
.rp, .am { display: flex; flex-direction: column; gap: 10px; }
.rp-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; border: 0; border-top: 1px solid var(--border); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background .2s var(--ease); }
.rp-row:first-child { border-top: 0; }
.rp-row:hover { background: var(--panel2); }
.rp-id { flex: none; width: 60px; color: var(--muted); font-size: 12px; }
.rp-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rp-main b { font-size: 14px; }
.rp-main em { font-style: normal; font-size: 12px; color: var(--muted); }
.rp-main i { font-style: normal; font-size: 12.5px; color: var(--text2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rp-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.rp-info > div { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel); }
.rp-info span { font-size: 11.5px; color: var(--muted); }
.rp-info b { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.rp-box { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.am-rule { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.am-rhead { display: flex; align-items: center; gap: 12px; }
.am-rbody { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.am-inline { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.am-num { text-align: center; padding-left: 6px; padding-right: 6px; }
.am-ladder { display: flex; flex-direction: column; gap: 6px; }
.am-step { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel); }
.am-step > .mono { width: 18px; color: var(--muted); font-size: 12px; }
.am-step > .ch-act { margin-left: auto; }
.am-save { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; position: sticky; bottom: 0; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel-solid, var(--panel)); }
.am-rhead .grow { flex: 1; min-width: 0; }
.am-rule .s-title { color: var(--text); font-size: 13px; }
.am-rule .s-sub { color: var(--muted); font-size: 12px; font-weight: 500; }
.am-save { padding-right: 84px; z-index: 2; }
.att .panel-title { margin-bottom: 6px; }
.att-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; margin-top: 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel2); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease); }
.att-row:hover { background: var(--panel); border-color: var(--border-strong, var(--border)); }
.att-row b { font-size: 13.5px; font-weight: 600; }
.att-row span { flex: 1; font-size: 12px; color: var(--muted); }
.att-row svg { width: 16px; height: 16px; color: var(--muted); }
.pal-back { align-items: flex-start; padding-top: 10vh; }
.pal { width: min(640px, calc(100% - 24px)); margin: 0 auto; background: var(--panel-solid, var(--panel)); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.5); overflow: hidden; transform: translateY(-8px); opacity: 0; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.modal-back.open .pal { transform: none; opacity: 1; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--muted); }
.pal-in svg { width: 18px; height: 18px; flex: none; }
.pal-q { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: 500 15px/1.3 inherit; outline: 0; }
.pal-in kbd { font: 600 10px/1 inherit; color: var(--muted); border: 1px solid var(--border); border-radius: 5px; padding: 4px 6px; }
.pal-list { max-height: 60vh; overflow-y: auto; padding: 6px; }
.pal-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pal-row.on, .pal-row:hover { background: var(--panel2); }
.pal-row > svg { width: 18px; height: 18px; color: var(--muted); flex: none; margin: 0 5px; }
.pal-row span { flex: 1; min-width: 0; display: grid; }
.pal-row b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-row small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-row em { font-style: normal; font-size: 11px; color: var(--muted); flex: none; }
.pal-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 13px; }
.undo-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13px; }
.undo-row:first-of-type { border-top: 0; }
.undo-row .grow { min-width: 0; }
.undo-row .det { font-size: 12px; color: var(--muted); }
.tpl-row { display: flex; gap: 6px; padding: 0 12px 8px; }
.rules-prev h3 { font-size: 14px; margin: 12px 0 6px; } .rules-prev ul { margin: 6px 0 10px; padding-left: 18px; } .rules-prev li { padding: 2px 0; font-size: 13px; } .rules-prev p { margin: 0 0 8px; font-size: 13px; }
.pick-all { margin-bottom: 8px; color: var(--text); }
.pick-all b { display: block; }
.pick.dim { opacity: .45; }
.role-all i { background: var(--text); }
.ma-hero { display: flex; gap: 22px; align-items: center; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.ma-phone { position: relative; flex: none; width: 118px; height: 212px; border-radius: 18px; border: 1px solid var(--border-hi); background: #0b0b0b; padding: 14px 12px; display: flex; flex-direction: column; gap: 7px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.ma-ph-top { display: flex; justify-content: center; gap: 4px; margin-bottom: 4px; } .ma-ph-top i { width: 22px; height: 4px; border-radius: 2px; background: #2a2a2a; } .ma-ph-top i:last-child { width: 4px; }
.ma-ph-ava { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#3a3a3a,#1a1a1a); border: 1px solid #333; }
.ma-ph-line { height: 6px; border-radius: 3px; background: #262626; } .ma-ph-line.w60 { width: 60%; } .ma-ph-line.w40 { width: 40%; } .ma-ph-line.w80 { width: 80%; } .ma-ph-line.w70 { width: 70%; }
.ma-ph-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin: 4px 0; } .ma-ph-grid b { height: 22px; border-radius: 6px; background: #161616; border: 1px solid #262626; }
.ma-ph-badge { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; background: #fafafa; color: #0a0a0a; }
.ma-url { display: inline-flex; gap: 6px; align-items: center; } .ma-url .input { min-width: 280px; font-family: var(--mono); font-size: 12px; }
.setting.ma-warn { border-color: var(--border-hi); background: var(--hover); }
@media (max-width: 720px) { .ma-hero { flex-direction: column; align-items: flex-start; } .ma-url .input { min-width: 0; width: 100%; } }
.dv-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.dv-sub { color: var(--muted); font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.dv-kv { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel2); min-width: 0; animation: dvIn .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
.dv-kv.wide { grid-column: 1 / -1; }
.dv-kv .k { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.dv-kv .v { font-size: 13.5px; color: var(--text); word-break: break-word; line-height: 1.4; }
.dv-kv .v.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.dv-kv .v a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.dv-sec { margin-top: 14px; animation: dvIn .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
.dv-sec-title { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.dv-sec-body .qa { margin: 0; }
.dv-text { font-size: 13.5px; line-height: 1.55; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.dv-ol { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.6; color: var(--text); }
.dv-notes { display: flex; flex-direction: column; gap: 6px; }
.dv-note { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; color: var(--text); }
.trow.click { cursor: pointer; }
.trow.click:hover { background: var(--hover); }
@keyframes dvIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dv-kv, .dv-sec { animation: none; } }
.tm-group { padding: 14px 16px; }
.tm-group.off { opacity: .55; }
.tm-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.tm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; margin-top: 12px; }
.tm-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel2); min-width: 0; transition: opacity .2s; }
.tm-row.off { opacity: .45; }
.tm-row b { font-size: 13px; }
.tm-row .avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.ln-off { opacity: .5; }
.lt-grid { display: grid; grid-template-columns: 230px 1fr 1fr; gap: 8px 12px; align-items: center; }
.lt-grid .h { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 2px; border-bottom: 1px solid var(--border); }
.lt-grid .k { font-size: 13px; color: var(--text); padding-right: 6px; }
.lk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.ln-ctl { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.ln-ctl .field { flex: 0 0 auto; }
.ln-ctl .select { width: 220px; }
@media (max-width: 900px) { .lt-grid { grid-template-columns: 1fr; } .lt-grid .h { display: none; } .lt-grid .k { margin-top: 8px; } .lk-grid { grid-template-columns: 1fr; } }
.ln-fresh i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--muted); display: inline-block; margin-right: 6px; vertical-align: 0; }
.ln-fresh.on { color: var(--text); border-color: var(--border-hi); }
.ln-fresh.on i { background: var(--text); border-color: var(--text); }
.ln-sw { display: flex; align-items: center; justify-content: center; }
.la-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.la-stat { padding: 10px 12px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.la-stat b { display: block; font-size: 22px; line-height: 1.1; color: var(--text); }
.la-stat span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la-acc { grid-template-columns: 52px minmax(160px, 1.4fr) 110px minmax(160px, 1.3fr) 130px; }
.la-hw { grid-template-columns: minmax(140px, 1fr) minmax(140px, 1.4fr) 100px 220px 100px; }
.la-pa { grid-template-columns: minmax(150px, 1fr) minmax(160px, 1.2fr) 200px 140px; }
@media (max-width: 900px) { .la-hw, .la-pa { grid-template-columns: 1fr; } }
.ch-who[data-hunter] { cursor: pointer; }
.ch-who[data-hunter]:hover b { text-decoration: underline; }
.ch-who em.tag { margin-left: 6px; font-style: normal; font-size: 11px; }
.ch-hcl { display: flex; flex-direction: column; gap: 4px; max-height: 340px; overflow: auto; }
.ch-hc { display: grid; grid-template-columns: 70px minmax(120px, 1fr) 90px auto 120px; gap: 10px; align-items: center; text-align: left; padding: 8px 10px; border: 1px solid var(--line, #232323); border-radius: 8px; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.ch-hc:hover { background: rgba(255, 255, 255, .04); }
.hc-row { grid-template-columns: 130px 110px minmax(160px, 1fr) minmax(180px, 1.2fr) 110px; align-items: center; }
@media (max-width: 900px) { .hc-row { grid-template-columns: 1fr 1fr; } }
.la-on { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.la-srv { grid-template-columns: minmax(160px, 1.1fr) 170px 130px minmax(140px, 1.3fr) 110px 250px; }
.la-srv > * { text-align: left; justify-self: start; max-width: 100%; }
.la-srv > :last-child { justify-self: end; }
.la-srv .mono { text-align: left; }
.la-dev { grid-template-columns: minmax(170px, 1.4fr) repeat(var(--n, 1), minmax(80px, 1fr)) 100px 100px; }
.la-log { grid-template-columns: 150px minmax(120px, 1fr) minmax(160px, 1.6fr) 140px; }
.la-lks { display: inline-flex; gap: 4px; }
.la-lk { min-width: 26px; height: 22px; padding: 0 5px; display: inline-grid; place-items: center; border: 1px dashed var(--border); border-radius: 4px; font-size: 10.5px; font-weight: 700; color: var(--muted2); }
.la-lk.on { border-style: solid; border-color: var(--border-hi); color: var(--text); }
.la-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.la-seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; flex: none; }
.la-seg button { height: 34px; padding: 0 14px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.la-seg button.on { background: var(--inv-bg); color: var(--inv-text); }
.la-seg button:disabled { cursor: default; }
.la-box { width: 18px; height: 18px; accent-color: #fff; cursor: pointer; }
.la-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.la-check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text); cursor: pointer; }
.la-check input { width: 16px; height: 16px; accent-color: #fff; }
.setting.la-sub { margin-top: -4px; }
@media (max-width: 900px) { .la-stats { grid-template-columns: repeat(2, 1fr); } .la-acc, .la-srv, .la-log { grid-template-columns: 1fr; } .la-dev { grid-template-columns: 1fr; } }
.la-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.la-ban { grid-template-columns: 160px minmax(140px, 1.4fr) minmax(100px, 1fr) 190px auto; }
@media (max-width: 900px) { .la-ban { grid-template-columns: 1fr; } }
.la-lk { cursor: default; transition: border-color .15s, color .15s, background .15s; }
.la-lk:hover { border-color: var(--text); color: var(--text); }
.la-tip { position: fixed; z-index: 9999; max-width: 320px; padding: 9px 12px; background: #fafafa; color: #0a0a0a; border-radius: 8px; box-shadow: 0 12px 34px rgba(0, 0, 0, .55); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .14s ease, transform .16s ease; visibility: hidden; }
.la-tip.show { opacity: 1; transform: none; visibility: visible; }
.la-tip::after { content: ''; position: absolute; left: var(--ax, 50%); top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: #fafafa; border-bottom-width: 0; }
.la-tip.below::after { top: auto; bottom: 100%; border-top-color: transparent; border-top-width: 0; border-bottom-width: 6px; border-bottom-color: #fafafa; }
.la-tip .k { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #777; }
.la-tip b { display: block; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.la-tip .s { display: block; margin-top: 1px; font-size: 11.5px; color: #555; }

/* Правила проекта и помощник */
.rr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1180px) { .rr { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } .rr-ai { position: sticky; top: 12px; height: calc(100vh / var(--z, 1) - 120px); } }
.rr-ai, .rr-docw { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.rr-ai { display: flex; flex-direction: column; overflow: hidden; min-height: 520px; }
.rr-ai-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.rr-bot, .rr-av { flex: none; display: grid; place-items: center; border-radius: var(--radius); background: var(--inv-bg); color: var(--inv-text); }
.rr-bot { width: 38px; height: 38px; }
.rr-bot svg { width: 19px; height: 19px; }
.rr-ai-title { font-size: 15px; font-weight: 700; color: var(--text); }
.rr-ai-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.rr-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent); flex: none; }
.rr-dot.off { background: var(--faint); box-shadow: none; }
.rr-icon-b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; flex: none; transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.rr-icon-b:hover { background: var(--hover2); color: var(--text); }
.rr-icon-b:active { transform: scale(.94); }
.rr-icon-b svg { width: 15px; height: 15px; }
.rr-chat { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; }
.rr-chat::-webkit-scrollbar { display: none; width: 0; height: 0; }
.rr-turn { display: flex; flex-direction: column; gap: 10px; }
.rr-turn.leaving { animation: rrLeave .28s cubic-bezier(.4, 0, .2, 1) both; }
.rr-msg.mine.anim { animation: rrSend .42s cubic-bezier(.22, 1, .36, 1) both; transform-origin: 100% 100%; }
.rr-msg.bot.anim { animation: rrReply .46s cubic-bezier(.22, 1, .36, 1) both; transform-origin: 0 100%; }
.rr-msg.bot.anim-late { animation: rrReply .4s cubic-bezier(.22, 1, .36, 1) .16s both; transform-origin: 0 100%; }
.rr-time.anim { animation: rrFade .5s ease .2s both; }
.rr-msg.mine.anim .rr-bubble { animation: rrPop .42s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes rrSend { from { opacity: 0; transform: translate(18px, 10px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes rrReply { from { opacity: 0; transform: translate(-14px, 12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes rrLeave { to { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes rrFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rrPop { 0% { filter: brightness(1.25); } 100% { filter: none; } }
:root[data-motion="0"] .rr-msg.anim, :root[data-motion="0"] .rr-msg.anim-late, :root[data-motion="0"] .rr-turn.leaving { animation: none !important; }
.rr-msg { display: flex; align-items: flex-end; gap: 8px; min-width: 0; position: relative; }
.rr-msg.mine { justify-content: flex-end; }
.rr-av { width: 28px; height: 28px; overflow: hidden; border-radius: 50%; }
.rr-av svg { width: 15px; height: 15px; }
.rr-av .avatar, .rr-av img { width: 28px; height: 28px; }
.rr-msg.mine .rr-av { background: var(--panel2); }
.rr-bubble { max-width: min(560px, 86%); padding: 10px 13px; border-radius: var(--radius); font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; min-width: 0; }
.rr-msg.mine .rr-bubble { background: var(--inv-bg); color: var(--inv-text); border-bottom-right-radius: 2px; }
.rr-msg.bot .rr-bubble { background: var(--panel2); color: var(--text2); border: 1px solid var(--border); border-bottom-left-radius: 2px; }
.rr-bubble.rr-wide { max-width: min(640px, 92%); flex: 1; white-space: normal; padding: 0; overflow: hidden; }
.rr-intro { color: var(--muted) !important; }
.rr-time { font-size: 10.5px; color: var(--faint); text-align: center; }
.rr-err { color: var(--red) !important; border-color: color-mix(in srgb, var(--red) 35%, transparent) !important; }
.rr-typing { display: inline-flex; gap: 4px; align-items: center; padding: 13px 14px !important; }
.rr-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: rrDot 1.1s infinite ease-in-out; }
.rr-typing i:nth-child(2) { animation-delay: .15s; }
.rr-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes rrDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes rrIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rr-composer { display: flex; align-items: flex-end; gap: 8px; margin: 0 14px; padding: 6px 6px 6px 14px; border: 1px solid var(--border-hi); border-radius: var(--radius); background: var(--panel2); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.rr-composer:focus-within { border-color: var(--text); box-shadow: 0 0 0 3px var(--hover2); }
.rr-composer.off { opacity: .55; }
.rr-q-in { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; line-height: 1.45; padding: 7px 0; max-height: 160px; }
.rr-q-in::placeholder { color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-send { flex: none; width: 36px; height: 36px; border-radius: var(--radius-sm); border: 0; background: var(--inv-bg); color: var(--inv-text); display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.rr-send svg { width: 16px; height: 16px; }
.rr-send:hover { transform: scale(1.06); }
.rr-send:active { transform: scale(.94); }
.rr-send:disabled { opacity: .4; cursor: default; transform: none; }
.rr-composer.busy .rr-send { opacity: .5; pointer-events: none; }
.rr-hint { font-size: 11px; color: var(--faint); text-align: center; padding: 7px 14px 12px; }
.rr-ans { display: flex; flex-direction: column; gap: 11px; padding: 13px 14px; font-size: 13px; line-height: 1.5; color: var(--text2); }
.rr-ans-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rr-kind { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-sm); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border: 1px solid var(--border-hi); color: var(--text); }
.rr-kind.kind-verdict { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); }
.rr-kind.kind-clean { background: transparent; color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.rr-kind.kind-unreg { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, transparent); background: color-mix(in srgb, var(--amber) 8%, transparent); }
.rr-kind.kind-clarify, .rr-kind.kind-off { color: var(--muted); }
.rr-sum { font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.45; }
.rr-vio { border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--panel); }
.rr-vio-h { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.rr-who { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.rr-who svg { width: 14px; height: 14px; color: var(--muted); }
.rr-sec-n { font-size: 11.5px; color: var(--faint); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.rr-chip { font: inherit; font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: var(--radius-sm); border: 1px solid var(--border-hi); background: var(--panel2); color: var(--text); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.rr-chip:hover { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); }
.rr-quote { color: var(--muted); font-size: 12.5px; padding-left: 10px; border-left: 2px solid var(--border-hi); }
.rr-rec { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--hover2); }
.rr-rec span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; }
.rr-rec b { font-size: 15px; color: var(--text); }
.rr-scale { display: flex; flex-direction: column; gap: 6px; }
.rr-scale-h { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 800; }
.rr-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.rr-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--panel2); font-size: 11.5px; font-weight: 600; color: var(--text2); font-style: normal; }
.rr-pill em { font-style: normal; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 2px; background: var(--hover2); color: var(--muted); font-size: 10px; font-weight: 800; }
.rr-why { display: flex; gap: 6px; align-items: flex-start; color: var(--muted); font-size: 12px; }
.rr-why svg { width: 13px; height: 13px; flex: none; margin-top: 2px; }
.rr-list { border-radius: var(--radius); padding: 9px 11px; background: var(--panel); border: 1px solid var(--border); }
.rr-list-h { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 800; margin-bottom: 5px; }
.rr-list ul { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 3px; color: var(--text2); font-size: 12.5px; }
.rr-list-unreg { border-color: color-mix(in srgb, var(--amber) 35%, transparent); background: color-mix(in srgb, var(--amber) 6%, transparent); }
.rr-list-unreg .rr-list-h { color: var(--amber); }
.rr-list-ok .rr-list-h { color: var(--green); }
.rr-note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 12px; }
.rr-note svg { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.rr-used { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.rr-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--border); padding-top: 9px; font-size: 11px; flex-wrap: wrap; }
.rr-fb { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; transition: all .2s var(--ease); }
.rr-fb svg { width: 12px; height: 12px; }
.rr-fb:hover { color: var(--text); border-color: var(--border-hi); }
.rr-fb.on { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.rr-fb.bad.on { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); }
.rr-docw { display: flex; flex-direction: column; overflow: hidden; }
.rr-doc-top { position: sticky; top: 0; z-index: 3; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 12px; background: var(--panel-solid); border-bottom: 1px solid var(--border); }
.rr-search { position: relative; display: flex; align-items: center; gap: 10px; }
.rr-search .input { padding-left: 38px; flex: 1; border-radius: var(--radius-sm); height: 40px; }
.rr-search-i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); display: inline-flex; pointer-events: none; }
.rr-search-i svg { width: 16px; height: 16px; }
.rr-found { font-size: 12px; color: var(--muted); white-space: nowrap; }
.rr-toc { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
.rr-toc::-webkit-scrollbar { display: none; }
.rr-toc-b { flex: none; font: inherit; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; transition: all .2s var(--ease); }
.rr-toc-b:hover { color: var(--text); border-color: var(--border-hi); }
.rr-toc-b.on { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); }
.rr-doc { display: flex; flex-direction: column; gap: 26px; padding: 18px 16px 6px; }
.rr-sec { scroll-margin-top: 120px; }
.rr-sec-h { display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.rr-sec-h h2 { font-size: 19px; letter-spacing: -.015em; margin: 0; color: var(--text); }
.rr-sec-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 11.5px; color: var(--faint); }
.rr-src { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.rr-src:hover { color: var(--text); }
.rr-src svg { width: 12px; height: 12px; }
.rr-body h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; color: var(--muted); margin: 18px 0 8px; }
.rr-body p { margin: 0 0 8px; color: var(--text2); font-size: 13.5px; line-height: 1.6; }
.rr-body ul { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rr-body li { color: var(--text2); font-size: 13.5px; line-height: 1.55; border-radius: var(--radius); transition: background .25s var(--ease); }
.rr-body li:not(.rr-rule) { padding: 6px 10px; }
.rr-rule { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 9px 10px; border: 1px solid transparent; }
.rr-rule:hover { background: var(--hover); border-color: var(--border); }
.rr-rule-top { margin-top: 8px; }
.rr-rule-top .rr-txt > div:first-child { color: var(--text); font-weight: 700; }
.rr-num { justify-self: start; align-self: start; font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--hover2); color: var(--text); margin-top: 1px; }
.rr-rule-top .rr-num { background: var(--inv-bg); color: var(--inv-text); }
.rr-txt { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.rr-callout { margin-left: 56px; padding: 8px 12px !important; border-left: 2px solid var(--border-hi); border-radius: 0 var(--radius) var(--radius) 0 !important; background: var(--hover); font-size: 12.5px !important; color: var(--muted) !important; }
.rr-body li i, .rr-body p i { color: var(--text); font-style: normal; font-weight: 600; }
.rr-body .rr-hit { background: var(--hover2); border-color: var(--border-hi); }
.rr-body .rr-flash { animation: rrflash 1.6s var(--ease); }
@keyframes rrflash { 0%, 30% { background: color-mix(in srgb, var(--amber) 22%, transparent); border-color: color-mix(in srgb, var(--amber) 55%, transparent); } 100% { background: transparent; } }
.rr-upd { font-size: 11px; padding: 10px 16px 16px; }
@media (max-width: 860px) { .rr-ai { min-height: 62vh; } .rr-rule { grid-template-columns: 40px minmax(0, 1fr); } .rr-callout { margin-left: 0; } .rr-bubble { max-width: 92%; } }
.ra-head { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.ra-head-i { flex: none; width: 46px; height: 46px; border-radius: var(--radius); display: grid; place-items: center; background: var(--inv-bg); color: var(--inv-text); }
.ra-head-i svg { width: 22px; height: 22px; }
.ra-title { font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.ra-sub { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 3px; max-width: 760px; }
.ra-state { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--green) 40%, transparent); color: var(--green); font-size: 12px; font-weight: 700; }
.ra-state.off { color: var(--muted); border-color: var(--border); }
.ra-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ra-tile { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); min-width: 0; }
.ra-tile-i { flex: none; width: 36px; height: 36px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--hover2); color: var(--text); }
.ra-tile-i svg { width: 17px; height: 17px; }
.ra-tile.amber .ra-tile-i { color: var(--amber); background: color-mix(in srgb, var(--amber) 13%, transparent); }
.ra-tile.green .ra-tile-i { color: var(--green); background: color-mix(in srgb, var(--green) 13%, transparent); }
.ra-tile.red .ra-tile-i { color: var(--red); background: color-mix(in srgb, var(--red) 13%, transparent); }
.ra-tile b { display: block; font-size: 22px; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.ra-tile span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra-tile small { font-size: 11px; color: var(--faint); }
.ra-set { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; align-items: start; }
.ra-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); min-width: 0; }
.ra-card-h { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 13.5px; }
.ra-card-h svg { width: 16px; height: 16px; color: var(--muted); }
.ra-card-h .tag { margin-left: auto; }
.ra-row { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.ra-row.col { flex-direction: column; align-items: stretch; gap: 8px; }
.ra-k { font-size: 12.5px; font-weight: 700; color: var(--text2); }
.ra-d { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.ra-seg { display: flex; padding: 3px; gap: 3px; border-radius: var(--radius); background: var(--panel2); border: 1px solid var(--border); }
.ra-seg button { flex: 1; font: inherit; font-size: 12px; font-weight: 700; padding: 7px 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease); }
.ra-seg button:hover { color: var(--text); }
.ra-seg button.on { background: var(--inv-bg); color: var(--inv-text); }
.ra-key { display: flex; gap: 8px; }
.ra-key .input { flex: 1; min-width: 0; }
.ra-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.ra-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ra-logw { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.ra-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.ra-tabs button { flex: none; display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 12.5px; font-weight: 700; padding: 7px 13px; border-radius: var(--radius-sm); border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.ra-tabs button:hover { color: var(--text); background: var(--hover); }
.ra-tabs button.on { background: var(--inv-bg); color: var(--inv-text); }
.ra-tabs button span { font-size: 11px; padding: 0 7px; border-radius: var(--radius-sm); background: var(--hover2); }
.ra-tabs button.on span { background: rgba(127, 127, 127, .25); }
.ra-log { display: flex; flex-direction: column; }
.ra-item { border-bottom: 1px solid var(--border); }
.ra-item:last-child { border-bottom: 0; }
.ra-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; cursor: pointer; list-style: none; transition: background .2s var(--ease); }
.ra-item summary::-webkit-details-marker { display: none; }
.ra-item summary:hover { background: var(--hover); }
.ra-item-q { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ra-item-q b { font-size: 12px; color: var(--muted); font-weight: 700; }
.ra-item-q span { font-size: 13.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ra-item-m { display: flex; align-items: center; gap: 8px; flex: none; font-size: 11.5px; }
.ra-item-m .tag svg { width: 11px; height: 11px; }
.ra-item[open] summary { background: var(--hover); }
.ra-item-b .rr-ans { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel2); }
.ra-meta { font-size: 11px; color: var(--faint); margin-top: 8px; }
.ra-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 16px; color: var(--muted); }
.ra-empty svg { width: 24px; height: 24px; }
.ra-pager { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
@media (max-width: 1100px) { .ra-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ra-set { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ra-two { grid-template-columns: 1fr; } .ra-head { flex-wrap: wrap; } .ra-item summary { flex-direction: column; align-items: stretch; gap: 6px; } .ra-item-m { justify-content: flex-start; } }
.rr-msg.mine .rr-bubble { box-shadow: none; }
.rr-mcopy { align-self: center; display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel); color: var(--muted); cursor: pointer; opacity: 0; transform: scale(.9); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease), color .2s var(--ease), background .2s var(--ease); }
.rr-mcopy svg { width: 13px; height: 13px; }
.rr-msg:hover .rr-mcopy, .rr-mcopy:focus-visible { opacity: 1; transform: none; pointer-events: auto; }
.rr-mcopy:hover { color: var(--text); background: var(--hover2); }
.rr-msg.bot .rr-mcopy { align-self: flex-start; margin-top: 4px; }
.rr-pill.cmd { cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.rr-pill.cmd:hover, .rr-pill.cmd:focus-visible { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); outline: none; }
.rr-pill.cmd:hover em, .rr-pill.cmd:focus-visible em { background: rgba(127, 127, 127, .28); color: inherit; }
.rr-pill.on { border-color: var(--text); color: var(--text); }
.rr-pill.on em { background: var(--inv-bg); color: var(--inv-text); }
.ra-seg { position: relative; }
.ra-seg button { position: relative; z-index: 1; transition: color .28s var(--ease); }
.ra-seg button.on { background: transparent; color: var(--inv-text); }
.ra-seg-ind { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: 0; border-radius: var(--radius-sm); background: var(--inv-bg); transition: transform .34s cubic-bezier(.22, 1, .36, 1), width .34s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.ra-tabs { justify-content: space-between; align-items: center; gap: 8px; }
.ra-tabs-l { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ra-chev { display: inline-grid; place-items: center; color: var(--faint); transform: rotate(-90deg); transition: transform .3s var(--ease); }
.ra-chev svg { width: 14px; height: 14px; }
.ra-item[open]:not(.closing-d) .ra-chev { transform: none; }
.ra-del { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--faint); cursor: pointer; opacity: .55; transition: opacity .2s var(--ease), color .2s var(--ease), background .2s var(--ease); }
.ra-tabs-r { display: flex; align-items: center; gap: 8px; flex: none; }
.ra-selbar { display: inline-flex; align-items: center; gap: 8px; animation: rrIn .22s var(--ease); }
.ra-selbar[hidden] { display: none; }
.ra-pick { flex: none; cursor: pointer; }
.ra-item summary { justify-content: flex-start; }
.ra-item-q { flex: 1; }
.ra-item.picked > summary { background: var(--hover2); }
.ra-del svg { width: 14px; height: 14px; }
.ra-item summary:hover .ra-del, .ra-del:focus-visible { opacity: 1; }
.ra-del:hover { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.ra-item .det-body { overflow: hidden; }
.ra-item.removing { animation: raOut .26s var(--ease) forwards; }
@keyframes raOut { to { opacity: 0; transform: translateX(14px); } }
.ra-q-full { font-size: 13.5px; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; padding: 10px 12px; border-radius: var(--radius); background: var(--hover); margin-bottom: 10px; }
.ra-item-b { padding: 4px 16px 16px; }
.stats-row { display: flex; gap: 10px; flex-wrap: wrap; }
.stats-row .stat { flex: 1 1 140px; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; background: var(--panel); }
.stats-row .stat b { font-size: 22px; color: var(--text); }
.stats-row .stat span { font-size: 12px; color: var(--muted); }
.hk-setting { align-items: flex-start; }
.hk-setting .grow { min-width: 0; }
.hk-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.hk-row { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel2); animation: rrIn .25s var(--ease); }
.hk-row.off { opacity: .5; }
.hk-keys { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-height: 36px; padding: 4px 10px; border-radius: var(--radius-sm); border: 1px dashed transparent; background: transparent; cursor: pointer; font: inherit; color: var(--text); text-align: left; transition: border-color .2s var(--ease), background .2s var(--ease); }
.hk-keys:hover { border-color: var(--border-hi); background: var(--hover); }
.hk-keys.rec { border-color: var(--text); background: var(--hover2); }
.hk-keys i, .hk-b i { font-style: normal; color: var(--faint); font-size: 11px; }
kbd { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: var(--radius-sm); border: 1px solid var(--border-hi); border-bottom-width: 2px; background: var(--panel); color: var(--text); font: 700 11.5px/1 inherit; font-family: inherit; }
.hk-wait { font-size: 12px; color: var(--muted); animation: hkPulse 1.2s ease-in-out infinite; }
@keyframes hkPulse { 50% { opacity: .45; } }
.hk-act { min-width: 0; width: 100%; }
.hk-del { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm); border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.hk-del:hover { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.hk-del svg { width: 15px; height: 15px; }
.hk-empty { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px dashed var(--border-hi); border-radius: var(--radius); color: var(--muted); font-size: 12.5px; }
.hk-empty svg { width: 18px; height: 18px; flex: none; }
.hk-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.hk-builtin { margin-top: 14px; padding: 12px; border-radius: var(--radius); background: var(--hover); display: flex; flex-direction: column; gap: 7px; }
.hk-builtin-h { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 800; }
.hk-b { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.hk-b > span { display: inline-flex; align-items: center; gap: 4px; min-width: 250px; }
.hk-flash { animation: hkFlash 1.4s var(--ease); }
@keyframes hkFlash { 0%, 35% { background: var(--hover2); box-shadow: 0 0 0 2px var(--border-hi); } 100% { background: transparent; box-shadow: none; } }
@media (max-width: 600px) { .hk-row { grid-template-columns: minmax(0, 1fr) auto; } .hk-act { grid-column: 1 / -1; grid-row: 2; } }
.setp { display: flex; flex-direction: column; gap: var(--gap); }
.setp > * { flex-shrink: 0; }
.setp > .panel-title ~ .panel-title { margin-top: 8px; }
.setp > .fold.closed { margin-top: calc(-1 * var(--gap, 10px)); }
@media (max-width: 640px) {
  .setp > .panel-title { margin: 12px 0 -4px; padding: 0 15px; font-size: 13.5px; }
  .setp > .panel-title:first-child { margin-top: 2px; }
  .setp .setting { padding: 12px 14px; min-height: 52px; column-gap: 14px; row-gap: 12px; }
  .setp .setting .s-title { font-size: 14px; line-height: 1.3; overflow-wrap: break-word; }
  .setp .setting .s-sub { margin-top: 3px; font-size: 12.5px; line-height: 1.45; overflow-wrap: break-word; }
  .setp .setting > .grow { flex: 1 1 0; min-width: 0; }
  .setp .setting > :not(.grow):not(.switch):not(.tag) { flex: 1 1 100%; max-width: 100% !important; min-width: 0; }
  .setp .setting > [data-gameact]:has(> .tag) { flex: none; }
  .setp .setting > [data-gameact] { display: flex; }
  .setp .setting > [data-gameact] > .btn { flex: 1; }
  .setp .setting > .btn, .setp .setting > .row > .btn, .setp .setting > [data-gameact] > .btn, .setp .app-set-row > .btn, .setp-acts > .btn { min-height: 44px; font-size: 13px; padding: 10px 14px; }
  .setp .setting > .row { flex-wrap: nowrap !important; }
  .setp .setting > .row > .btn { flex: 1 1 0; min-width: 0; }
  .setp .setting > .chips { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
  .setp .setting > .chips:has(> :nth-child(4)) { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setp .setting > .chips > .chip { min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; padding: 6px 8px; }
  .setp .setting > .dd .dd-btn, .setp .setting > .select { min-height: 44px; }
  .setp .switch::before { content: ''; position: absolute; inset: -12px -10px; }
  .setp > .setting, .setp > .fold .setting { position: relative; }
  .setp > .setting + .setting, .setp > .setting + .fold, .setp > .fold + .setting { margin-top: calc(-1 * var(--gap)); }
  .setp > .setting:has(+ .setting), .setp > .setting:has(+ .fold), .setp > .fold:has(+ .setting) .setting { border-bottom-width: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .setp > .setting + .setting, .setp > .fold + .setting, .setp > .setting + .fold .setting { border-top-color: transparent; border-top-left-radius: 0; border-top-right-radius: 0; }
  .setp > .setting + .setting::before, .setp > .fold + .setting::before, .setp > .setting + .fold .setting::before { content: ''; position: absolute; top: -1px; left: 14px; right: 0; height: 1px; background: var(--border); }
  .setp > .faint { padding: 0 15px; line-height: 1.45; }
  .setp .app-set-row > .btn, .setp-acts > .btn { flex: 1 1 100%; }
  .setp .hk-del { width: 44px; height: 44px; }
  .setp .hk-actions > .btn { flex: 1 1 auto; min-height: 44px; }
  .setp .sess .trow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; padding: 12px 14px; }
  .setp .sess .trow > :first-child { flex: 1 1 100%; font-weight: 600; font-size: 14px; overflow-wrap: break-word; }
  .setp .sess .trow > .cell-sub { font-size: 12px; }
}
.apps-steps li { display: block; position: relative; min-height: 26px; padding: 3px 0 3px 38px; }
.apps-steps li::before { position: absolute; left: 0; top: 50%; margin-top: -13px; }
@media (max-width: 560px) {
  .row > .search { flex: 1 1 100%; min-width: 0; }
  .ch-range { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 8px; }
  .ch-range .input { width: 100%; min-width: 0; }
  .ch-range > em, .ch-range > .btn { grid-column: 1 / -1; justify-self: start; }
  .chart .bar .bar-tip { left: 0; transform: translate(0, 4px); }
  .chart .bar:nth-last-child(-n+7) .bar-tip { left: auto; right: 0; }
  .chart .bar:hover .bar-tip, .chart .bar:focus-visible .bar-tip, .chart .bar.on .bar-tip { transform: translate(0, 0); }
}
@media (max-width: 480px) {
  .grid.c2:has(> .tile), .grid.c3:has(> .tile), .grid.c4:has(> .tile), .ch-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.ra-log { animation: rrFade .35s ease both; }
.ra-tiles .ra-tile b { transition: color .3s var(--ease); }

/* Пополнения */
.pay-fold { display: grid; grid-template-rows: 0fr; opacity: 0; transform: translateY(-4px); transition: grid-template-rows .32s var(--ease), opacity .24s var(--ease), transform .32s var(--ease), margin .32s var(--ease); margin-bottom: -12px; }
.pay-fold > div { overflow: hidden; min-height: 0; }
.pay-fold.open { grid-template-rows: 1fr; opacity: 1; transform: none; margin-bottom: 0; }
.pay-attn { cursor: pointer; transition: border-color .2s linear, background .2s linear; }
.pay-attn:hover { border-color: var(--text); }
.pay-stat b { font-variant-numeric: tabular-nums; transition: color .2s linear; }
.pay-search { position: relative; display: flex; align-items: center; min-width: 240px; }
.pay-search > .ico { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--muted); pointer-events: none; transition: color .2s linear; }
.pay-search .input { width: 100%; padding-left: 34px; padding-right: 34px; transition: border-color .2s linear, box-shadow .2s var(--ease); }
.pay-search:focus-within > .ico { color: var(--text); }
.pay-spin { position: absolute; right: 11px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--text); opacity: 0; transform: scale(.6); transition: opacity .2s linear, transform .25s var(--ease); animation: spin .7s linear infinite; pointer-events: none; }
.pay-spin.on { opacity: 1; transform: none; }
.pay-reload .ico { transition: transform .5s var(--ease); }
.pay-reload.spin .ico { transform: rotate(360deg); }
.pay-chips .chip { transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), transform .18s var(--ease); }
.pay-chips .chip:active { transform: scale(.96); }
.pay-count { transition: opacity .2s linear; }
.pay-box { position: relative; transition: height .34s var(--ease); }
.pay-list { transition: opacity .18s linear, transform .22s var(--ease), filter .22s linear; }
.pay-box.loading .pay-list { opacity: .45; transform: translateY(3px); filter: saturate(.6); pointer-events: none; }
.pay-box.loading + .pay-pager, .pay-box.loading ~ .pay-count { opacity: .5; }
.pay-row { display: grid; grid-template-columns: 118px minmax(0,1.2fr) 110px minmax(0,1.3fr) auto; gap: 12px; align-items: center; padding: 10px 14px; transition: background .18s linear, transform .2s var(--ease); }
.pay-row:hover { transform: translateX(2px); }
.pay-row:active { transform: translateX(2px) scale(.997); }
.pay-anim .pay-row, .pay-anim .pay-empty { animation: uiRow .34s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 22ms); }
.pay-pager .btn { animation: uiFade .25s var(--ease) backwards; }
.pay-soft .dv-grid, .pay-soft .dv-head { animation: uiFade .3s var(--ease) backwards; }
@media (max-width: 900px) { .pay-row { grid-template-columns: 1fr auto; } .pay-row > :nth-child(1), .pay-row > :nth-child(4) { display: none; } }
@media (prefers-reduced-motion: reduce) { .pay-fold, .pay-box, .pay-list, .pay-row, .pay-chips .chip, .pay-reload .ico, .pay-spin { transition: none; animation: none; } .pay-anim .pay-row, .pay-anim .pay-empty, .pay-soft .dv-grid, .pay-soft .dv-head { animation: none; } }
.pm-card { display: grid; gap: 10px; }
.pm-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pm-fields { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.pm-fields > .input { flex: 1 1 200px; min-width: 0; }
.pm-f { display: grid; gap: 4px; flex: 1 1 150px; min-width: 0; }
.pm-f.wide { flex: 3 1 260px; }
.pm-form { display: grid; gap: 12px; }
.pm-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.pm-list { overflow: hidden; }
.pm-row { grid-template-columns: 72px 48px minmax(0, 1fr) auto; transition: background .2s linear, transform .32s var(--ease), height .28s var(--ease), opacity .24s linear, padding .28s var(--ease); }
.pm-row .pm-name, .pm-row .pm-state { transition: opacity .25s linear, filter .25s linear; }
.pm-row.off .pm-name { opacity: .5; }
.pm-row.pm-moved { background: var(--hover); }
.pm-row.pm-new { animation: pmIn .45s var(--ease); }
.pm-row.pm-gone { opacity: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
@keyframes pmIn { from { opacity: 0; transform: translateY(-6px); } }
.pm-arrows { display: flex; gap: 4px; }
.pm-arrows .btn { width: 30px; height: 30px; padding: 0; justify-content: center; transition: opacity .2s linear, filter .2s linear, transform .15s var(--ease); }
.pm-arrows .btn:disabled { opacity: .3; pointer-events: none; }
.pm-sw { display: flex; align-items: center; justify-content: center; height: 30px; }
.pm-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-name .cell-sub:last-child { white-space: normal; }
.pm-act { display: flex; align-items: center; gap: 6px; }
.pm-state .tag { transition: color .25s linear, border-color .25s linear; }
.pm-save { transition: opacity .25s linear, filter .2s linear, transform .15s var(--ease); }
.pm-save:disabled { opacity: .4; cursor: default; }
.pm-card .pay-fold, .pm-form .pay-fold { margin-bottom: 0; }
@media (max-width: 640px) { .pm-row { grid-template-columns: 72px 48px minmax(0, 1fr); } .pm-act { grid-column: 1 / -1; justify-content: flex-end; } }
.pm-grid { display: grid; gap: 18px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.pm-gsec { display: grid; gap: 8px; }
.pm-gh { margin: 0; font: 600 10.5px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pm-cards { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-height: 64px; border-radius: var(--radius-sm); transition: background .2s linear, box-shadow .2s linear; }
@media (max-width: 1100px) { .pm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pm-dragging .pm-cards { box-shadow: inset 0 0 0 1px var(--border); }
.pm-dragging .pm-cards:hover { background: var(--hover); }
.pm-empty { display: none; align-items: center; justify-content: center; min-height: 64px; border: 1px dashed var(--border-hi); border-radius: var(--radius-sm); color: var(--muted); font-size: 12px; }
.pm-cards > .pm-empty:only-child, .pm-dragging .pm-cards > .pm-empty:only-child { display: flex; }
.pm-c { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 128px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel2, var(--panel)); cursor: grab; user-select: none; touch-action: none; transition: border-color .2s linear, background .2s linear, opacity .25s linear, transform .3s var(--ease), box-shadow .2s linear; }
.pm-c:hover { border-color: var(--border-hi); }
.pm-c:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.pm-c.off { opacity: .45; border-style: dashed; }
.pm-c.off:hover { opacity: .75; }
.pm-c.pm-drag { opacity: .18; border-style: dashed; }
.pm-c.pm-new { animation: pmIn .45s var(--ease); }
.pm-c.pm-gone { opacity: 0; transform: scale(.94); pointer-events: none; }
.pm-ghost { position: fixed; z-index: 2147482000; margin: 0; pointer-events: none; cursor: grabbing; transform: rotate(-1.5deg) scale(1.03); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); opacity: .96; transition: transform .18s var(--ease), box-shadow .2s linear; }
.pm-ghost.pm-land { transition: left .22s var(--ease), top .22s var(--ease), transform .22s var(--ease), box-shadow .22s linear; transform: none; box-shadow: none; }
.pm-ctop { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: auto; }
.pm-ico { width: 22px; height: 22px; color: var(--text); transition: transform .3s var(--ease); }
.pm-c:hover .pm-ico { transform: translateX(2px); }
.pm-cname { margin-top: 12px; font-size: 14.5px; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-csub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-cfoot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; }
.pm-range, .pm-cprov { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-sw { cursor: pointer; }
.mail-read .mail-body:has(.mail-frame) { flex: 1 0 auto; display: flex; flex-direction: column; }
.mail-frame { height: min(68vh, 760px); opacity: 0; transition: opacity .22s var(--ease); }
.mail-frame.ready { opacity: 1; }
.mail-read { transition: opacity .18s linear; }
.mail-read.mail-swap { opacity: .55; }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; width: 100%; }
.otp[hidden] { display: none; }
.otp-d { width: 100%; min-width: 0; aspect-ratio: 1 / 1.15; padding: 0; box-sizing: border-box; text-align: center; font-size: 24px; font-weight: 700; color: var(--text); background: var(--panel-solid); border: 1px solid var(--border); border-radius: var(--radius); outline: none; caret-color: transparent; transition: border-color .15s ease, transform .15s ease; }
.otp-d:focus { border-color: var(--text); transform: translateY(-1px); }
.otp-d.on { border-color: var(--muted); }
.otp-bad { animation: otpShake .32s ease; }
@keyframes otpShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@media (prefers-reduced-motion: reduce) { .otp-bad { animation: none; } .otp-d { transition: none; } }

.nb { display: grid; gap: 12px; }
.nb-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.nb-title h2 { margin: 0; color: var(--text); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.nb-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.nb-qa { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 6px 6px 12px; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.nb-qa:focus-within { border-color: var(--border-hi); box-shadow: 0 0 0 3px var(--hover2); }
.nb-qa .input { border: 0; background: transparent; box-shadow: none; padding-left: 0; min-width: 0; flex: 1; }
.nb-qa-ico { color: var(--faint); display: flex; }
.nb-qa-ico svg { width: 15px; height: 15px; }
.nb-bar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; }
.nb-seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.nb-seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.nb-seg button:hover { color: var(--text); }
.nb-seg button.on { background: var(--inv-bg); color: var(--inv-text); }
.nb-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.nb-cnt { opacity: .6; font-variant-numeric: tabular-nums; margin-left: 2px; }
.nb-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.nb-tools .input { width: 180px; }
.nb-tools > .select, .nb-tools > .input { width: auto !important; flex: 0 0 auto; }
.nb-tools > .select { min-width: 160px; }
.nb-chips .chip { white-space: nowrap; }
.nb-main.nb-swap { animation: uiFade .22s var(--ease); }
.nb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 12px; align-items: start; }
.nb-grid.one { grid-template-columns: 1fr; }
.nb-list { display: grid; gap: 8px; }
.nb-list .nb-card { display: grid; grid-template-columns: 120px 1fr; }
.nb-list .nb-card:not(:has(.nb-cover)) { grid-template-columns: 1fr; }
.nb-list .nb-cover { aspect-ratio: auto; height: 100%; min-height: 90px; }
.nb-card { --tint: transparent; position: relative; background: linear-gradient(var(--tint), var(--tint)), var(--panel); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); overflow: hidden; cursor: pointer; outline: none;
  animation: nbIn .32s var(--ease) both; animation-delay: calc(var(--i) * 25ms); transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.nb-card:hover, .nb-card:focus-visible { transform: translateY(-2px); border-color: var(--border-hi); box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }
.nb-card.pinned { border-color: var(--border-hi); }
.nb-card.archived { opacity: .7; }
.nb-card.dragging { opacity: .45; transform: scale(.98); }
.nb-card.over { border-color: var(--text); box-shadow: 0 0 0 2px var(--hover2); }
.nb-card.nb-bump { animation: nbBump .4s var(--ease); }
@keyframes nbIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes nbBump { 40% { transform: scale(1.02); } }
.nb-cover { position: relative; aspect-ratio: 16 / 9; background: var(--panel2); overflow: hidden; }
.nb-cover.big { aspect-ratio: 21 / 9; border-radius: var(--radius); margin-bottom: 12px; }
.nb-cover img, .nb-thumb img, .nb-cover-pick img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.nb-cover img.on, .nb-thumb img.on, .nb-cover-pick img.on { opacity: 1; }
.nb-card:hover .nb-cover img.on { transform: scale(1.03); }
.nb-noimg { display: none; }
.nb-in { padding: 12px 14px 14px; display: grid; gap: 8px; min-width: 0; }
.nb-top { display: flex; align-items: center; gap: 8px; }
.nb-kind { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.nb-kind::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.nb-kind svg { display: none; }
.nb-pin { color: var(--muted); display: flex; margin-left: auto; }
.nb-pin svg { width: 13px; height: 13px; }
.nb-pin + .nb-more { margin-left: 0; }
.nb-more { margin-left: auto; border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; width: 28px; height: 24px; border-radius: var(--radius-sm); cursor: pointer; opacity: .55; transition: opacity var(--dur), background var(--dur); }
.nb-card:hover .nb-more, .nb-more:focus-visible { opacity: 1; }
.nb-more:hover { background: var(--hover2); color: var(--text); }
.nb-in h3 { margin: 0; color: var(--text); font-size: 15px; font-weight: 700; line-height: 1.3; text-wrap: balance; overflow-wrap: anywhere; }
.nb-body { color: var(--text2); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.nb-body.full { font-size: 14px; margin: 4px 0 12px; }
.nb-body a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.nb-li { padding-left: 14px; position: relative; }
.nb-li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.nb-checks { display: grid; gap: 4px; }
.nb-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text2); cursor: pointer; }
.nb-check input { margin-top: 3px; accent-color: var(--green); }
.nb-check span { transition: color var(--dur), opacity var(--dur); }
.nb-check.on span { color: var(--faint); text-decoration: line-through; }
.nb-prog { display: grid; gap: 6px; }
.nb-num { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.nb-num b { color: var(--text); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.nb-prog.big .nb-num b { font-size: 32px; }
.nb-num span { color: var(--muted); font-size: 13px; font-weight: 600; }
.nb-bar { height: 8px; border-radius: 99px; background: var(--panel2); overflow: hidden; }
.nb-bar.thin { height: 6px; }
.nb-prog.big .nb-bar { height: 12px; }
.nb-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--text) 70%, transparent), var(--text)); transform-origin: left center; animation: nbFill .9s var(--ease) both; }
.nb-bar.full i { background: linear-gradient(90deg, color-mix(in srgb, var(--green) 70%, transparent), var(--green)); }
@keyframes nbFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.nb-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nb-eta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.nb-eta svg { width: 13px; height: 13px; }
.nb-spark { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; align-items: end; height: 34px; margin-top: 2px; }
.nb-prog.big .nb-spark { height: 70px; }
.nb-spark i { display: block; height: max(var(--h), 2px); border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--text) 55%, transparent); transform-origin: bottom; animation: grow .6s var(--ease) both; }
.nb-spark i.neg { background: color-mix(in srgb, var(--red) 75%, transparent); }
.nb-spark i:last-child { background: var(--text); }
.nb-thumbs, .nb-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.nb-gallery { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); margin-top: 6px; }
.nb-thumb { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--panel2); border: 0; padding: 0; cursor: zoom-in; }
.nb-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.nb-badges:empty { display: none; }
.nb-badge, .nb-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--hover); border: 1px solid var(--border); border-radius: 99px; padding: 2px 8px; }
.nb-badge svg { width: 11px; height: 11px; }
.nb-badge.auto { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.nb-badge.team { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.nb-tag { background: transparent; }
.nb-quick { display: flex; gap: 6px; margin-top: 2px; }
.nb-quick .input { height: 30px; padding: 4px 10px; font-size: 13px; min-width: 0; }
.nb-menu { position: fixed; z-index: 60; min-width: 210px; background: var(--panel-solid); border: 1px solid var(--border-hi); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px; display: grid; animation: uiPop .16s var(--ease); }
.nb-menu.closing { animation: uiFade .14s reverse forwards; }
.nb-menu button { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; color: var(--text2); font: inherit; font-size: 13px; font-weight: 600; padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; text-align: left; }
.nb-menu button svg { width: 14px; height: 14px; color: var(--muted); }
.nb-menu button:hover { background: var(--hover2); color: var(--text); }
.nb-menu button.red, .nb-menu button.red svg { color: var(--red); }
.nb-detail { display: grid; gap: 10px; }
.nb-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: 13px; font-weight: 600; }
.nb-link svg { width: 13px; height: 13px; }
.nb-entry-form { display: grid; grid-template-columns: 140px 150px 1fr auto; gap: 6px; margin-top: 6px; }
.nb-hist { display: grid; gap: 2px; margin-top: 6px; max-height: 320px; overflow-y: auto; }
.nb-hist-title { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.nb-row { display: grid; grid-template-columns: 90px 60px 1fr auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--radius-sm); font-size: 13px; animation: uiRow .25s var(--ease) both; }
.nb-row:hover { background: var(--hover); }
.nb-amt { color: var(--green); font-weight: 800; font-variant-numeric: tabular-nums; }
.nb-row.neg .nb-amt { color: var(--red); }
.nb-rd { color: var(--muted); font-variant-numeric: tabular-nums; }
.nb-rn { color: var(--text2); min-width: 0; overflow-wrap: anywhere; }
.nb-x { border: 0; background: transparent; color: var(--faint); width: 24px; height: 24px; border-radius: var(--radius-sm); display: grid; place-items: center; cursor: pointer; }
.nb-x:hover { color: var(--red); background: var(--hover2); }
.nb-x svg { width: 13px; height: 13px; }
.nb-thumb .nb-x { position: absolute; top: 4px; right: 4px; background: rgba(0, 0, 0, .55); color: #fff; }
.nb-edit { display: grid; gap: 12px; }
.nb-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nb-2[hidden] { display: none; }
.nb-cover-pick { position: relative; height: 130px; border: 1px dashed var(--border-hi); border-radius: var(--radius); display: grid; place-items: center; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; overflow: hidden; transition: border-color var(--dur), background var(--dur); }
.nb-cover-pick:hover, .nb-cover-pick.over { border-color: var(--text); background: var(--hover); }
.nb-cover-pick span { display: flex; align-items: center; gap: 8px; }
.nb-cover-pick svg { width: 16px; height: 16px; }
.nb-cover-pick img { position: absolute; inset: 0; }
.nb-cover-pick .nb-x { position: absolute; top: 6px; right: 6px; background: rgba(0, 0, 0, .55); color: #fff; z-index: 1; }
.nb-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); background: var(--dot); cursor: pointer; transition: transform .15s var(--ease), border-color .15s; }
.nb-sw:hover { transform: scale(1.1); }
.nb-sw.on { border-color: var(--text); transform: scale(1.12); }
.nb-chl { display: grid; gap: 6px; margin-bottom: 6px; }
.nb-chl:empty { display: none; }
.nb-chi { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; animation: uiRow .2s var(--ease); }
.nb-chi input[type=checkbox] { accent-color: var(--green); }
.nb-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.nb-kinds.two { grid-template-columns: 1fr 1fr; margin-bottom: 12px; }
.nb-kindcard { display: grid; gap: 4px; justify-items: start; text-align: left; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; transition: border-color .18s var(--ease), transform .18s var(--ease), background .18s; animation: nbIn .3s var(--ease) both; }
.nb-kindcard svg { width: 20px; height: 20px; color: var(--text); margin-bottom: 4px; }
.nb-kindcard b { color: var(--text); font-size: 14px; }
.nb-kindcard:hover, .nb-kindcard.on { border-color: var(--text); transform: translateY(-2px); background: var(--hover); }
.nb-key { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; background: var(--panel2); border: 1px solid var(--border-hi); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px; }
.nb-key code { color: var(--text); font-size: 18px; font-weight: 800; letter-spacing: .08em; user-select: all; font-variant-numeric: tabular-nums; }
.nb-keyin { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; text-align: center; font-size: 16px; }
.nb-prev { margin-top: 10px; }
.nb-prevcard { border: 1px solid var(--border-hi); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.nb-err { color: var(--red); font-size: 13px; font-weight: 600; animation: uiFade .2s; }
.nb-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; max-height: 360px; overflow-y: auto; }
.nb-person { display: grid; gap: 2px; text-align: left; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; transition: border-color var(--dur); }
.nb-person:hover { border-color: var(--border-hi); }
.nb-person b { color: var(--text); font-size: 13px; }
.nb-people.pick .nb-person { grid-template-columns: auto 1fr; column-gap: 8px; }
.nb-people.pick .nb-person input { grid-row: span 2; accent-color: var(--green); }
.nb-team { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; display: grid; gap: 6px; }
.nb-lb { display: grid; grid-template-columns: 22px minmax(90px, 160px) 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.nb-pl { color: var(--faint); font-weight: 800; font-variant-numeric: tabular-nums; }
.nb-lb:nth-of-type(1) .nb-pl { color: var(--amber); }
.nb-ln { color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-lv { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.nb-newteam { border: 1px dashed var(--border-hi); border-radius: var(--radius); padding: 10px 12px; }
.nb-newteam summary { cursor: pointer; display: flex; align-items: center; gap: 6px; color: var(--text); font-weight: 700; font-size: 13px; }
.nb-newteam summary svg { width: 14px; height: 14px; }
.nb-newteam[open] > *:not(summary) { animation: uiRow .25s var(--ease) both; }
.nb-newteam .field { margin-top: 10px; }
.nb-sec { display: grid; gap: 8px; margin-bottom: 18px; }
.nb-sec h4 { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.nb-cal { display: grid; gap: 8px; }
.nb-cal-head { display: flex; align-items: center; gap: 8px; }
.nb-cal-head b { color: var(--text); font-size: 15px; text-transform: capitalize; margin-right: auto; order: -1; }
.nb-week, .nb-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.nb-week span { color: var(--faint); font-size: 11px; font-weight: 700; text-transform: uppercase; text-align: center; padding: 4px 0; }
.nb-day { min-height: 88px; display: flex; flex-direction: column; gap: 3px; align-items: stretch; text-align: left; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px; color: var(--muted); font: inherit; cursor: pointer; transition: border-color var(--dur), background var(--dur); min-width: 0; }
.nb-day.out { background: transparent; border-color: transparent; cursor: default; }
.nb-day:not(.out):hover { border-color: var(--border-hi); background: var(--hover); }
.nb-day.today { border-color: var(--text); }
.nb-dn { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nb-day.today .nb-dn { color: var(--text); }
.nb-ev { display: block; font-size: 11px; font-weight: 600; color: var(--text2); padding: 2px 6px; border-radius: 3px; background: var(--hover2); border-left: 2px solid var(--dot, var(--muted)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-ev-remind { border-left-color: var(--amber); }
.nb-ev-deadline { border-left-color: var(--red); }
.nb-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-card { background: var(--paint, linear-gradient(transparent, transparent)), var(--panel); }
.nb-pal { display: grid; gap: 10px; }
.nb-pal-row { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 10px; }
.nb-pal-l { color: var(--faint); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.nb-sw { --sw: var(--panel); background: var(--sw); }
.nb-sw[data-color="none"] { background: var(--bg); box-shadow: inset 0 0 0 1px var(--border-hi); }
.nb-custom { border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; background: var(--panel); }
.nb-custom summary { cursor: pointer; display: flex; align-items: center; gap: 6px; color: var(--text); font-size: 13px; font-weight: 700; list-style: none; }
.nb-custom summary::-webkit-details-marker { display: none; }
.nb-custom summary svg { width: 14px; height: 14px; color: var(--muted); }
.nb-custom[open] .nb-custom-in { animation: uiRow .25s var(--ease) both; }
.nb-custom-in { display: grid; gap: 12px; margin-top: 12px; }
.nb-ctype { justify-self: start; }
.nb-cpick { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-cin { display: flex; align-items: center; gap: 10px; background: var(--panel2); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 10px 6px 6px; cursor: pointer; transition: border-color var(--dur); }
.nb-cin:hover { border-color: var(--border-hi); }
.nb-cin[hidden] { display: none; }
.nb-cin input { width: 34px; height: 34px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; }
.nb-cin input::-webkit-color-swatch-wrapper { padding: 0; }
.nb-cin input::-webkit-color-swatch { border: 2px solid var(--border-hi); border-radius: 50%; }
.nb-cin input::-moz-color-swatch { border: 2px solid var(--border-hi); border-radius: 50%; }
.nb-cin span { color: var(--muted); font-size: 12px; font-weight: 600; }
.nb-cin code { color: var(--text); font-size: 12px; font-weight: 700; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.nb-range { display: grid; grid-template-columns: 96px 1fr 48px; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 600; }
.nb-range[hidden] { display: none; }
.nb-range b { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.nb-range input { width: 100%; accent-color: var(--text); }
.nb-preview { display: grid; gap: 6px; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 14px; background: var(--paint, linear-gradient(transparent, transparent)), var(--panel); transition: background .25s var(--ease); }
.nb-preview b { color: var(--text); font-size: 14px; }
.nb-kind::before, .nb-ev { --dotx: var(--dot, var(--border-hi)); }
.nb-kind::before { background: var(--dot, var(--border-hi)); }
.nb-ev { border-left: 0; position: relative; padding-left: 9px; }
.nb-ev::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px 0 0 3px; background: var(--dot, var(--muted)); }
.nb-ev-remind::before { background: var(--amber); }
.nb-ev-deadline::before { background: var(--red); }
@media (max-width: 760px) {
  .nb-pal-row { grid-template-columns: 1fr; gap: 6px; }
  .nb-range { grid-template-columns: 80px 1fr 44px; }
}
.nb-edit input[type="number"], .nb-entry-form input, .nb-newteam input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.nb-edit input[type="number"]::-webkit-inner-spin-button, .nb-edit input[type="number"]::-webkit-outer-spin-button, .nb-newteam input[type="number"]::-webkit-inner-spin-button, .nb-newteam input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.nb-shared { border-color: color-mix(in srgb, var(--amber) 35%, var(--border)); }
.nb-shared.pinned { box-shadow: 0 0 0 1px color-mix(in srgb, var(--amber) 40%, transparent); }
.nb-who { display: grid; gap: 3px; }
.nb-whoi { display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: center; font-size: 12px; color: var(--text2); }
.nb-whoi b { color: var(--faint); font-weight: 800; font-variant-numeric: tabular-nums; }
.nb-whoi:first-child b { color: var(--amber); }
.nb-whoi i { font-style: normal; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.nb-sharedbtn { width: 100%; margin-bottom: 12px; border-style: dashed; }
@media (max-width: 760px) {
  .nb-bar-row { flex-direction: column; align-items: stretch; }
  .nb-seg { display: flex; }
  .nb-seg button { flex: 1; }
  .nb-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .nb-chips .chip { flex: none; }
  .nb-tools { width: 100%; }
  .nb-tools > .select, .nb-tools > .input { flex: 1 1 140px !important; min-width: 0; }
  .nb-actions { width: 100%; }
  .nb-actions .btn { flex: 1 1 auto; }
  .nb-entry-form { grid-template-columns: 1fr 1fr; }
  .nb-entry-form .btn { grid-column: 1 / -1; }
  .nb-2, .nb-kinds.two { grid-template-columns: 1fr; }
  .nb-day { min-height: 54px; }
  .nb-ev { font-size: 0; padding: 0; height: 4px; }
  .nb-list .nb-card { grid-template-columns: 1fr; }
  .nb-row { grid-template-columns: 70px 50px 1fr auto; }
}
@media (prefers-reduced-motion: reduce) {
  .nb-card, .nb-bar i, .nb-spark i, .nb-kindcard, .nb-row { animation: none !important; transition: none !important; }
}
.perm-search { position: sticky; top: -16px; z-index: 2; display: flex; align-items: center; gap: 8px; margin: -16px -16px 6px; padding: 12px 16px; background: var(--panel-solid); border-bottom: 1px solid var(--border); }
.perm-search svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.perm-search .input { flex: 1; min-width: 0; }
.perm-search .faint { white-space: nowrap; font-variant-numeric: tabular-nums; }
[data-pg][hidden], .pick[hidden] { display: none !important; }

.login.acc-box { width: min(440px, 100%); justify-items: stretch; text-align: left; }
.login.acc-box > .login-logo, .login.acc-box > h1, .login.acc-box > .muted { justify-self: center; text-align: center; }
.login.acc-wide { width: min(560px, 100%); }
.acc-form { display: grid; gap: 12px; width: 100%; }
.acc-field { display: grid; gap: 6px; }
.acc-field > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.acc-form .btn { width: 100%; justify-content: center; }
.acc-hint { font-size: 12px; color: var(--muted); min-height: 0; margin-top: -6px; }
.acc-hint.bad { color: var(--red, #e5484d); }
.acc-otp { display: grid; gap: 8px; justify-items: center; }
.acc-otp[hidden] { display: none; }
.acc-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.acc-note { padding: 10px 12px; width: 100%; box-sizing: border-box; }
.acc-rows { display: grid; gap: 8px; width: 100%; }
.acc-rows .setting { margin: 0; }
.acc-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; }
.acc-actions .btn:first-child:not(.ghost) { flex: 1 1 200px; justify-content: center; }
.ds-btn { background: #5865f2; border-color: #5865f2; color: #fff; }
.ds-btn:hover { background: #4752c4; border-color: #4752c4; color: #fff; }

html.app-mode .side, html.app-mode .overlay, html.app-mode .header, html.app-mode .burger, html.app-mode .side-grip, html.app-mode #banner, html.app-mode .sc-fab, html.app-mode .sc-panel { display: none !important; }
html.app-mode .app { grid-template-columns: minmax(0, 1fr) !important; height: auto; min-height: 100dvh; }
html.app-mode .main { padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 20px); }
html.app-mode body { overflow: auto; overflow-x: hidden; }
html.app-mode .view { overflow: visible; }
.apps-live { transition: opacity .18s ease; }
.apps-live.fading { opacity: 0; }
.apps-live[hidden] { display: none; }
.apps-card-head .apps-whatsnew { font-size: 12px !important; line-height: 1.45; }
.apps-sk { display: block; border-radius: 8px; background: color-mix(in srgb, var(--text) 7%, transparent); position: relative; overflow: hidden; max-width: 100%; }
.apps-sk::after, .apps-phone-screen.apps-wait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 8%, transparent), transparent); transform: translateX(-100%); animation: appsShim 1.3s infinite; pointer-events: none; }
.apps-skel { transition: opacity .16s ease; }
.apps-skel.out { opacity: 0; }
.apps-skel .apps-feature, .apps-skel .apps-card { gap: 10px; }
.apps-phone-screen.apps-wait iframe { opacity: 0; transition: opacity .35s var(--ease); }
.apps-phone-screen.apps-wait.apps-ready iframe { opacity: 1; }
.apps-phone-screen.apps-wait.apps-ready::after { opacity: 0; animation: none; transition: opacity .35s ease; }
.apps-enter .apps-hero-text > *, .apps-enter .apps-feature, .apps-enter .apps-install, .apps-enter > .panel-title, .apps-enter .apps-faq, .apps-enter > .setting { animation: appsUp .5s var(--ease) both; }
.apps-enter .apps-hero-text > :nth-child(2) { animation-delay: .04s; }
.apps-enter .apps-hero-text > :nth-child(3) { animation-delay: .08s; }
.apps-enter .apps-hero-text > :nth-child(4) { animation-delay: .12s; }
.apps-enter .apps-hero-text > :nth-child(5) { animation-delay: .16s; }
.apps-enter .apps-phone { animation: appsPhone .55s var(--ease) .06s both; }
.apps-enter .apps-feature:nth-child(1) { animation-delay: .14s; }
.apps-enter .apps-feature:nth-child(2) { animation-delay: .18s; }
.apps-enter .apps-feature:nth-child(3) { animation-delay: .22s; }
.apps-enter .apps-feature:nth-child(4) { animation-delay: .26s; }
.apps-enter > .panel-title, .apps-enter .apps-install { animation-delay: .3s; }
.apps-enter .apps-faq, .apps-enter > .setting { animation-delay: .36s; }
@keyframes appsUp { from { opacity: 0; transform: translateY(10px); } }
@keyframes appsPhone { from { opacity: 0; transform: scale(.96); } }
@keyframes appsShim { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .apps-enter *, .apps-enter .apps-phone, .apps-sk::after, .apps-phone-screen.apps-wait::after { animation: none !important; } .apps-phone-screen.apps-wait iframe, .apps-skel { transition: none !important; } }
.hb-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.hb-previews { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.3fr); gap: 14px; align-items: end; }
.hb-frame { margin: 0; min-width: 0; }
.hb-frame figcaption { margin-top: 8px; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.hb-desk { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #0c0c0c; box-shadow: var(--shadow); }
.hb-desk figcaption { padding: 0 10px 8px; }
.hb-chrome { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; background: #161616; border-bottom: 1px solid #222; }
.hb-chrome i { width: 8px; height: 8px; border-radius: 50%; background: #3a3a3a; }
.hb-chrome span { margin-left: 10px; padding: 2px 10px; border-radius: 4px; background: #0d0d0d; color: #8a8a8a; font-size: 10.5px; }
.hb-phone .hb-screen { border-radius: 22px; border: 6px solid #111; outline: 1px solid var(--border); box-shadow: var(--shadow); }
.hb-screen { position: relative; overflow: hidden; background: #f3f3f3; }
.hb-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; background: #f3f3f3; color: #0a0a0a; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-user-select: none; user-select: none; --ink: #0a0a0a; --ink2: #3b3b3b; --mute: #6a6a6a; --line: #cfcfcf; --plate: #e4e4e4; }
.hbp-nav { display: flex; align-items: center; gap: 26px; height: 100px; padding: 36px 20px 0; border-bottom: 1px solid #ddd; background: #fafafa; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #3b3b3b; }
.hbp-nav b { margin-right: auto; font-size: 24px; text-transform: none; letter-spacing: -.02em; color: #0a0a0a; font-weight: 500; }
.hbp-nav em { font-style: normal; padding: 10px 16px; border-radius: 6px; background: #0a0a0a; color: #fff; text-transform: none; font-weight: 600; letter-spacing: 0; }
.hbp-hero { position: relative; display: grid; grid-template-columns: 7fr 5fr; gap: 10px; padding: 56px 20px 60px; color: var(--ink); }
.hbp-bg, .hbp-figbg { position: absolute; inset: 0; overflow: hidden; display: none; cursor: crosshair; }
.hbp-copy, .hbp-figwrap { position: relative; z-index: 1; min-width: 0; pointer-events: none; }
.hbp-copy { display: flex; flex-direction: column; gap: 40px; }
.hbp-eye { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink2); }
.hbp-copy h1 { margin: 0; font-size: 96px; line-height: 1.04; letter-spacing: -.035em; font-weight: 700; color: var(--ink); }
.hbp-copy h1 span { color: var(--mute); }
.hbp-lead { max-width: 46ch; font-size: 18px; line-height: 1.5; color: var(--ink2); }
.hbp-btns { display: flex; gap: 10px; }
.hbp-btns i { font-style: normal; display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 8px; border: 1px solid var(--ink); background: var(--ink); color: #f3f3f3; font-size: 15px; font-weight: 600; }
.m-full .hbp-btns i { color: #0a0a0a; }
.hbp-btns i.g { background: transparent; color: var(--ink); }
.hbp-fig { position: relative; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--plate); pointer-events: auto; }
.hbp-fig .t { position: absolute; top: 14px; z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: .05em; color: var(--ink2); }
.hbp-fig .t.l { left: 16px; }
.hbp-fig .t.r { right: 16px; }
.hbp-pers { position: absolute; left: 50%; bottom: 0; width: 46%; height: 82%; transform: translateX(-50%); border-radius: 46% 46% 0 0 / 22% 22% 0 0; background: linear-gradient(#c9c9c9, #8a8a8a); opacity: .75; transition: opacity .3s; }
.hbp-cap { display: flex; justify-content: space-between; padding-top: 10px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.hbp-m { position: absolute; inset: 0; filter: grayscale(var(--hb-g, 1)) blur(var(--hb-b, 0px)); transform: scale(var(--hb-sc, 1)); }
.hbp-m img, .hbp-m video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.hbp-lq { filter: blur(22px); transform: scale(1.12); }
.hbp-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,calc(var(--hb-a,.45)*1)) 0%, rgba(0,0,0,calc(var(--hb-a,.45)*.78)) 30%, rgba(0,0,0,calc(var(--hb-a,.45)*.36)) 62%, rgba(0,0,0,calc(var(--hb-a,.45)*.2)) 100%), linear-gradient(180deg, rgba(0,0,0,calc(var(--hb-a,.45)*.45)) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 58%, rgba(0,0,0,calc(var(--hb-a,.45)*.9)) 100%), radial-gradient(120% 90% at 65% 40%, rgba(0,0,0,0) 50%, rgba(0,0,0,calc(var(--hb-a,.45)*.6)) 100%); }
.hbp-figbg .hbp-shade { background: linear-gradient(180deg, rgba(0,0,0,calc(var(--hb-a,.45)*.75)) 0%, rgba(0,0,0,calc(var(--hb-a,.45)*.25)) 30%, rgba(0,0,0,calc(var(--hb-a,.45)*.2)) 65%, rgba(0,0,0,calc(var(--hb-a,.45)*.6)) 100%); }
.hbp-dot { position: absolute; z-index: 3; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 2px 10px rgba(0,0,0,.5); pointer-events: none; transition: left .2s var(--ease), top .2s var(--ease); }
.hbp-dot::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #fff; }
.hb-stage.m-full .hbp-bg { display: block; background: #0a0a0a; }
.hb-stage.m-card .hbp-figbg { display: block; }
.hb-stage.m-card .hbp-pers { opacity: 0; }
.hb-stage.m-card .hbp-fig .t { color: rgba(255,255,255,.88); }
.hb-stage.m-full .hbp-hero { --ink: #f5f5f5; --ink2: rgba(245,245,245,.82); --mute: rgba(245,245,245,.6); --plate: rgba(14,14,14,.55); }
.hb-stage.m-full .hbp-fig { -webkit-backdrop-filter: blur(18px) saturate(.8); backdrop-filter: blur(18px) saturate(.8); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.hb-stage.m-full .hbp-copy h1, .hb-stage.m-full .hbp-lead { text-shadow: 0 1px 28px rgba(0,0,0,.35); }
.hb-stage.is-mob .hbp-nav { height: 64px; padding: 0 20px; }
.hb-stage.is-mob .hbp-nav b { font-size: 22px; }
.hbp-burger { width: 24px; height: 8px; border-top: 2px solid #0a0a0a; border-bottom: 2px solid #0a0a0a; }
.hb-stage.is-mob .hbp-hero { grid-template-columns: 1fr; gap: 32px; padding: 28px 20px 40px; }
.hb-stage.is-mob .hbp-copy { gap: 28px; }
.hb-stage.is-mob .hbp-copy h1 { font-size: 40px; }
.hb-stage.is-mob .hbp-lead { font-size: 16px; }
.hb-stage.is-mob .hbp-btns { flex-wrap: wrap; }
.hb-stage.is-mob .hbp-bg .hbp-shade { background: linear-gradient(180deg, rgba(0,0,0,calc(var(--hb-a,.45)*.55)) 0%, rgba(0,0,0,calc(var(--hb-a,.45)*.85)) 35%, rgba(0,0,0,calc(var(--hb-a,.45)*.7)) 65%, rgba(0,0,0,calc(var(--hb-a,.45)*.95)) 100%); }
.hb-stage.is-mob .hbp-bg { bottom: auto; height: 780px; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.hb-stage.is-mob.m-full .hbp-hero { background: #0a0a0a; }
.hb-dropnote { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; border: 2px dashed var(--text); border-radius: 10px; background: color-mix(in srgb, var(--bg) 80%, transparent); font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.hb-wrap.drag .hb-dropnote { opacity: 1; }
.hb-side { display: grid; gap: 12px; min-width: 0; }
.hb-side .chips { margin-top: 4px; }
.hb-ranges { display: grid; gap: 8px; }
.hb-range { grid-template-columns: 90px 1fr 54px; }
.hb-gray, .hb-focal { cursor: default; }
.hb-focal { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.hb-focal .s-title, .hb-gray .s-title { font-weight: 600; }
.hb-actions { gap: 8px; flex-wrap: wrap; }
.hb-info { display: grid; gap: 3px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--panel2); }
.hb-info b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hb-info span { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.hb-info .hb-warn { color: var(--amber); }
.hb-empty { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px dashed var(--border-hi); color: var(--muted); font-size: 13px; line-height: 1.45; }
.hb-job { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.hb-job b { font-size: 13.5px; }
.hb-job > span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.hb-job.bad { border-color: color-mix(in srgb, var(--red) 55%, transparent); }
.hb-job.bad b { color: var(--red); }
.hb-job.ok { border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.hb-bar { height: 4px; border-radius: 2px; background: var(--hover2); overflow: hidden; }
.hb-bar i { display: block; height: 100%; background: var(--text); transform-origin: left; transition: transform .5s var(--ease); }
@media (max-width: 1180px) { .hb-wrap { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .hb-previews { grid-template-columns: 1fr; } .hb-phone { max-width: 240px; } }
.hb-stage.m-full .hbp-fig { pointer-events: none; }
.hb-sw { display: flex; }

.ch-team { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ch-team-row { display: grid; grid-template-columns: minmax(180px, 2fr) minmax(130px, 1.3fr) repeat(4, 64px) minmax(110px, 1fr); gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); color: var(--text); cursor: pointer; font: inherit; }
.ch-team-row:hover { border-color: color-mix(in srgb, var(--text) 25%, var(--border)); }
.ch-team-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ch-team-name img, .ch-team-name i { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; display: grid; place-items: center; font-style: normal; font-weight: 700; background: var(--border); }
.ch-team-name span { display: flex; flex-direction: column; min-width: 0; }
.ch-team-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-team-name em, .ch-team-n em, .ch-team-acc, .ch-team-last { font-style: normal; font-size: 12px; color: var(--muted); }
.ch-team-acc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.5; }
.ch-team-n { display: flex; flex-direction: column; align-items: center; }
.ch-team-n b { font-size: 17px; }
.ch-team-n.live b { color: #5aa7ff; }
.ch-team-checks { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow: auto; }
.ch-team-check { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; text-align: left; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: none; color: var(--text); cursor: pointer; font: inherit; }
.ch-team-check.on, .ch-team-check:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--border)); }
.ch-team-check em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.ch-team-note { padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.ch-team-note em { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-style: normal; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .ch-team-row { grid-template-columns: 1fr repeat(3, 52px); } .ch-team-acc, .ch-team-last, .ch-team-row .ch-team-n:nth-of-type(5) { display: none; } }

.rg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.rg-card { border: 1px solid var(--border); border-radius: 14px; background: var(--panel); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rg-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.rg-big { display: flex; align-items: flex-end; gap: 8px; flex: none; padding: 6px; border-radius: 12px; background: #1e1f22; }
.rg-meta { display: flex; flex-direction: column; min-width: 0; }
.rg-meta b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-meta em { font-style: normal; font-size: 12px; color: var(--muted); }
.rg-meta em.rg-own { color: var(--amber); }
.rg-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rg-row .select { flex: 1; min-width: 140px; }
.rg-row input[type=color] { width: 38px; height: 34px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; cursor: pointer; }
.rg-hex { width: 92px; }
.rg-nick { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin-left: auto; }
.rg-alts { display: flex; gap: 6px; align-items: center; }
.rg-alt { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: #1e1f22; cursor: pointer; padding: 0; }
.rg-alt.on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.pc-line, .pc-head { display: grid; grid-template-columns: 84px minmax(150px, 1.4fr) minmax(100px, 1fr) 132px minmax(150px, 190px) 110px 110px; align-items: center; gap: 10px; padding: 0 12px; }
.pc-head { min-height: 38px; border-bottom: 1px solid var(--border); background: var(--panel2); }
.pc-line { min-height: 54px; padding-top: 8px; padding-bottom: 8px; cursor: pointer; }
.pc-code { font-weight: 700; letter-spacing: .06em; color: var(--text); }
.pc-date { color: var(--muted); font-size: 12px; }
.pc-sep { width: 1px; align-self: stretch; margin: 2px 4px; background: var(--border); }
.pc-risk { display: inline-flex; align-items: baseline; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pc-risk b { min-width: 30px; padding: 2px 7px; border-radius: 8px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text); border: 1px solid var(--border); }
.pc-risk.lv-red b { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, var(--border)); background: color-mix(in srgb, var(--red) 10%, transparent); }
.pc-risk.lv-amber b { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, var(--border)); background: color-mix(in srgb, var(--amber) 10%, transparent); }
.pc-risk.lv-green b { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, var(--border)); }
.pc-mini, .pc-bar { height: 3px; margin-top: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.pc-bar { height: 6px; margin: 10px 0 4px; }
.pc-mini i, .pc-bar i { display: block; height: 100%; background: var(--text); transform-origin: left; transition: transform .6s var(--ease); }
.pc-report { gap: 12px; }
.pc-back { transform: rotate(90deg); }
.pc-hero { display: grid; gap: 14px; padding: 18px 20px; }
.pc-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.pc-hero-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pc-hero-id b { font-size: 16px; }
.pc-big { font-size: 26px; font-weight: 800; letter-spacing: .08em; line-height: 1; }
.pc-big2 { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pc-hero-risk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-hero-risk .pc-risk b { font-size: 18px; padding: 4px 10px; }
.pc-reco { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--panel2); font-size: 13px; line-height: 1.5; }
.pc-reco svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.pc-reco.lv-red { border-color: color-mix(in srgb, var(--red) 40%, var(--border)); }
.pc-reco.lv-amber { border-color: color-mix(in srgb, var(--amber) 40%, var(--border)); }
.pc-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 16px; }
.pc-meta span { display: grid; gap: 3px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.pc-meta b { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); overflow-wrap: anywhere; }
.pc-acts, .pc-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-note { padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--panel2); font-size: 12.5px; line-height: 1.5; color: var(--text2); }
.pc-note.lv-amber { border-color: color-mix(in srgb, var(--amber) 40%, var(--border)); background: color-mix(in srgb, var(--amber) 7%, transparent); }
.pc-note.lv-red { border-color: color-mix(in srgb, var(--red) 40%, var(--border)); background: color-mix(in srgb, var(--red) 7%, transparent); }
.pc-note.lv-green { border-color: color-mix(in srgb, var(--green) 35%, var(--border)); background: color-mix(in srgb, var(--green) 6%, transparent); }
.pc-live { display: grid; gap: 8px; }
.pc-link { padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pc-player { padding: 16px 18px; }
.pc-pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pc-pcol { min-width: 0; }
.pc-ph { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.pc-ph svg { width: 14px; height: 14px; }
.pc-plinks { margin-top: 8px; }
.pc-hw { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); display: grid; gap: 6px; }
.pc-hwrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.pc-hwrow.bad b { color: var(--red); }
.pc-tl summary, details.card > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; list-style: none; }
.pc-tl summary svg, details.card > summary svg { width: 15px; height: 15px; }
.pc-steps { display: grid; gap: 0; margin-top: 10px; }
.pc-step { position: relative; display: grid; grid-template-columns: 16px 170px minmax(140px, 220px) 1fr; gap: 10px; align-items: baseline; padding: 6px 0; font-size: 12.5px; }
.pc-step i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); align-self: center; }
.pc-step.last i { background: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 14%, transparent); }
.pc-step span { color: var(--faint); font-size: 12px; }
.pc-step em { font-style: normal; color: var(--muted); }
.pc-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); scrollbar-width: none; }
.pc-tabs::-webkit-scrollbar { display: none; }
.pc-tab { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease); }
.pc-tab:hover { color: var(--text); background: var(--panel2); }
.pc-tab.on { background: var(--inv-bg); color: var(--inv-text); }
.pc-tab em { font-style: normal; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 99px; background: var(--hover2); color: var(--text); }
.pc-tab.on em { background: color-mix(in srgb, var(--inv-text) 14%, transparent); color: var(--inv-text); }
.pc-tabbody { display: grid; gap: 10px; min-height: 120px; }
.pc-tiles .ch-tile b { font-size: 22px; }
.pc-red { color: var(--red); }
.pc-amber { color: var(--amber); }
.pc-green { color: var(--green); }
.pc-gray { color: var(--muted); }
.pc-flag { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--border); border-left-width: 3px; border-radius: var(--radius); background: var(--panel); }
.pc-flag.lv-red { border-left-color: var(--red); }
.pc-flag.lv-amber { border-left-color: var(--amber); }
.pc-flag.lv-gray, .pc-flag.lv-green { border-left-color: var(--border-hi); }
.pc-flag.muted { opacity: .55; }
.pc-fhead { display: flex; gap: 12px; align-items: flex-start; }
.pc-fhead b { font-size: 14px; }
.pc-fhead .faint { margin-top: 3px; font-size: 12.5px; line-height: 1.5; }
.pc-fscore { flex: none; min-width: 34px; padding: 3px 7px; border-radius: 8px; border: 1px solid var(--border); text-align: center; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.pc-fscore.lv-red { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, var(--border)); background: color-mix(in srgb, var(--red) 10%, transparent); }
.pc-fscore.lv-amber { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, var(--border)); background: color-mix(in srgb, var(--amber) 10%, transparent); }
.pc-fscore.lv-gray { color: var(--muted); }
.pc-evs { display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--panel2); }
.pc-ev { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; font-size: 12px; line-height: 1.5; }
.pc-ev > span:first-child { color: var(--muted); }
.pc-ev .mono { overflow-wrap: anywhere; display: flex; align-items: center; gap: 4px; }
.pc-copy { width: 22px; height: 22px; flex: none; }
.pc-copy svg { width: 12px; height: 12px; }
.pc-pre { margin: 0; max-height: 260px; overflow: auto; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); font: 12px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; color: var(--text2); }
.pc-mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pc-mod { padding: 4px 10px; border-radius: 99px; border: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.pc-mod.ok { color: var(--text); }
.pc-mod.error, .pc-mod.timeout { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, var(--border)); }
.pc-ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 3px; font-size: 13px; color: var(--text2); }
.pc-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pc-grid2 > .card { display: grid; gap: 2px; align-content: start; }
.pc-tbl { display: grid; margin-top: 8px; }
.pc-trow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 7px 2px; border-top: 1px solid var(--border); font-size: 12.5px; min-width: 0; }
.pc-trow:first-child { border-top: 0; }
.pc-trow.bad b { color: var(--red); }
.pc-path { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text2); flex: 1 1 260px; }
.pc-sign { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-sign svg { width: 12px; height: 12px; flex: none; }
.pc-sign.no { color: var(--amber); }
.pc-tool { gap: 10px; }
.pc-pager { justify-content: center; gap: 10px; margin-top: 8px; }
.pc-timeline { display: grid; gap: 10px; }
.pc-tg { display: grid; gap: 2px; }
.pc-tgh { font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0; border-bottom: 1px solid var(--border); }
.pc-te { display: grid; grid-template-columns: 78px 120px minmax(0, 1fr) minmax(0, 200px); gap: 10px; align-items: center; padding: 4px 0; font-size: 12.5px; }
.pc-evk { justify-self: start; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--border); font-size: 11px; font-weight: 700; color: var(--text2); }
.pc-evk.delete, .pc-evk.logclear { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, var(--border)); }
.pc-evk.run { color: var(--text); border-color: var(--text); }
.pc-evk.rename, .pc-evk.time, .pc-evk.shadow { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 40%, var(--border)); }
.pc-mark { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--inv-bg); color: var(--inv-text); font-size: 12.5px; font-weight: 700; }
.pc-mark svg { width: 14px; height: 14px; }
.pc-fhd, .pc-fline { display: grid; grid-template-columns: minmax(220px, 2.4fr) minmax(120px, 1.2fr) minmax(120px, 1fr) 150px 64px; gap: 10px; align-items: center; padding: 0 12px; }
.pc-fhd { min-height: 38px; border-bottom: 1px solid var(--border); background: var(--panel2); }
.pc-fline { min-height: 50px; padding-top: 7px; padding-bottom: 7px; cursor: pointer; }
.pc-fline .cell-sub { overflow: hidden; text-overflow: ellipsis; }
.pc-srcs { display: flex; flex-wrap: wrap; gap: 4px; white-space: normal; }
.pc-srcs i { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); }
.pc-bhd, .pc-bline { display: grid; grid-template-columns: 170px minmax(160px, 1.6fr) minmax(140px, 1.4fr) 64px 90px 72px; gap: 10px; align-items: center; padding: 0 12px; }
.pc-bhd { min-height: 38px; border-bottom: 1px solid var(--border); background: var(--panel2); }
.pc-bline { min-height: 50px; padding-top: 7px; padding-bottom: 7px; }
.pc-phd, .pc-pline { display: grid; grid-template-columns: 170px minmax(140px, 1fr) 150px minmax(200px, 2fr); gap: 10px; align-items: center; padding: 0 12px; }
.pc-phd { min-height: 38px; border-bottom: 1px solid var(--border); background: var(--panel2); }
.pc-pline { min-height: 50px; padding-top: 7px; padding-bottom: 7px; cursor: pointer; }
.pc-swrow { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13px; cursor: pointer; }
.pc-swrow:first-of-type { border-top: 0; }
.pc-comment { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.pc-ctext { margin-top: 4px; white-space: pre-wrap; font-size: 13px; line-height: 1.5; color: var(--text2); }
.pc-shot { width: 100%; margin-top: 8px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.pc-help { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; border: 1px solid var(--border-hi); color: var(--muted); font-size: 10px; font-weight: 800; cursor: help; vertical-align: 1px; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.pc-help:hover, .pc-help:focus { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); outline: none; }
.pc-prep { display: grid; gap: 4px; }
.pc-rechecks { gap: 6px; }
.ch-pcs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ch-pcb { display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px; border: 1px solid var(--border); border-radius: 99px; background: none; color: var(--muted); font: 700 10.5px/1.5 ui-monospace, Consolas, monospace; cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease); }
.ch-pcb:hover:not(:disabled) { color: var(--inv-text); background: var(--inv-bg); border-color: var(--inv-bg); }
.ch-pcb:disabled { cursor: default; }
.ch-pcb.lv-red { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, var(--border)); }
.ch-pcb.lv-amber { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 40%, var(--border)); }
.ch-pcb.lv-green { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, var(--border)); }
@media (max-width: 980px) {
  .pc-head, .pc-fhd, .pc-bhd, .pc-phd { display: none; }
  .pc-line, .pc-fline, .pc-bline, .pc-pline { grid-template-columns: 1fr auto; gap: 4px 10px; padding-top: 10px; padding-bottom: 10px; }
  .pc-pgrid, .pc-grid2 { grid-template-columns: 1fr; }
  .pc-step { grid-template-columns: 16px 1fr; }
  .pc-step span, .pc-step em { grid-column: 2; }
  .pc-te { grid-template-columns: 70px 1fr; }
  .pc-te .pc-path, .pc-te > span:last-child { grid-column: 1 / -1; }
  .pc-ev { grid-template-columns: 1fr; gap: 0; }
  .pc-tab { min-height: 44px; }
  .pc-acts .btn, .pc-facts .btn { min-height: 44px; }
}
