@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/onest-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
:root {
  --ok: #1f9d55; --danger: #c2413a; --err-fg: #a12a22; --info-bg: #e8eef7; --info-fg: #3f6391;
  --shadow-rgb: 20,26,40;
  color-scheme: light;
}
html[data-at="dark"] {
  --ok: #2bb36a; --danger: #e5605a; --err-fg: #ff9b91; --info-bg: #1d2a40; --info-fg: #8fb4e8;
  --shadow-rgb: 0,0,0;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { html[data-at="auto"] {
  --ok: #2bb36a; --danger: #e5605a; --err-fg: #ff9b91; --info-bg: #1d2a40; --info-fg: #8fb4e8;
  --shadow-rgb: 0,0,0;
  color-scheme: dark;
} }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ci { width: 18px; height: 18px; flex: none; }

.app { display: grid; min-height: 100vh; }
.sb { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--sb); color: var(--sb-text); overflow-y: auto; }
.sb__brand { display: flex; align-items: center; text-decoration: none; }
.sb__brand img { flex: none; border-radius: 50%; }
.sb__brand span { display: flex; flex-direction: column; line-height: 1.1; }
.sb__brand b { -webkit-text-stroke: .4px #fff; }
.sb__brand small { text-transform: uppercase; }
.sb__site { display: flex; align-items: center; gap: 10px; border: 1px solid var(--sb-line); text-decoration: none; transition: border-color .2s; }
.sb__site:hover { border-color: var(--sb-3); }
.sb__site-dot { border-radius: 50%; flex: none; }
.sb__site-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; flex: 1; }
.sb__site-txt b { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sb__site .ci { width: 15px; height: 15px; }
.sb__nav { display: flex; flex-direction: column; }
.sb__group { text-transform: uppercase; color: var(--sb-muted); }
.sb__link { position: relative; display: flex; align-items: center; text-decoration: none; font-weight: 500; transition: background-color .15s, color .15s; }
.sb__link span { flex: 1; }
.sb__link:hover { background: var(--sb-2); color: #fff; }

.sb__link.is-active::before { position: absolute; left: -14px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }

.badge { font-style: normal; display: grid; place-items: center; }

.sb__foot { margin-top: auto; display: flex; justify-content: space-between; color: var(--sb-muted); border-top: 1px solid var(--sb-line); }
.sb-backdrop { display: none; }

.mn { display: flex; flex-direction: column; min-width: 0; }
.tb { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; background: color-mix(in srgb, var(--card) 88%, transparent); border-bottom: 1px solid var(--line); }
.tb__burger { display: none; border: 0; background: none; padding: 6px; cursor: pointer; color: var(--ink); }
.tb__crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); min-width: 0; }
.tb__crumbs .ci { width: 14px; height: 14px; }
.tb__crumbs b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.tb__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.tb__btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-weight: 600; transition: border-color .15s; }
.tb__btn:hover { border-color: var(--line-3); }
.tb__btn .ci { width: 15px; height: 15px; }
.tb__user { display: flex; align-items: center; gap: 9px; padding-left: 12px; border-left: 1px solid var(--line); }
.tb__avatar { display: grid; place-items: center; font-weight: 700; }
.tb__name { font-weight: 600; font-size: 13.5px; }
.tb__logout { display: grid; place-items: center; width: 32px; height: 32px; color: var(--muted); }

.ct { flex: 1; width: 100%; display: flex; flex-direction: column; }
.ct__title { margin: 0; }
.ct__lead { margin: -8px 0 0; color: var(--soft); }
.hint { color: var(--soft); margin: 0; }

.empty { background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--soft); margin: 0; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.cf { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--line); color: var(--muted); }
.cf__brand { display: inline-flex; align-items: center; gap: 8px; }
.cf__brand img { flex: none; border-radius: 50%; filter: grayscale(1); opacity: .55; }
.cf__brand b { color: var(--ink); }
.cf a { font-weight: 600; text-decoration: none; }

.alert { margin: 0; font-weight: 500; border: 1px solid transparent; }
.dp-todo { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; font-weight: 400; }
.dp-todo a { color: inherit; }
.alert--ok { border-color: color-mix(in srgb, var(--ok-fg) 25%, var(--card)); }
.alert--err { background: var(--err-bg); color: var(--err-fg); border-color: color-mix(in srgb, var(--err-fg) 25%, var(--card)); }

.stats { display: grid; }
.stat { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }

.stat__ic { display: grid; place-items: center; margin-bottom: 10px; }

.stat b { letter-spacing: -.02em; line-height: 1.1; }
.stat small { color: var(--soft); }
.dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card__head h2 { margin: 0; }
.card__head a { display: inline-flex; align-items: center; gap: 2px; }
.card__head .ci { width: 15px; height: 15px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick a { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 13.5px; transition: border-color .15s, background-color .15s; }
.quick a:hover { background: var(--surface); }

.form { display: flex; flex-direction: column; gap: 16px; }
.form--narrow { max-width: 460px; }
.form__bar { position: sticky; bottom: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); border-top: 1px solid var(--line); display: flex; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.grid4 { display: grid; grid-template-columns: 1fr 1fr 170px 140px; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; margin: 0; min-width: 0; }
fieldset.card legend { float: left; width: 100%; padding: 0 0 4px; margin-bottom: 2px; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
fieldset.card legend + * { clear: both; }
.f { display: flex; flex-direction: column; gap: 6px; }
.label { font-weight: 600; color: var(--soft); }
small { color: var(--muted); font-size: 12.5px; }
input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], input[type="tel"], input[type="url"], input[type="time"], input[type="datetime-local"], input[type="month"], textarea, select {
  width: 100%; font: inherit; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:hover, textarea:hover, select:hover { border-color: var(--line-3); }
input:focus, textarea:focus, select:focus { outline: none; }
input[type="file"] { font: inherit; font-size: 13px; color: var(--soft); }
input[type="file"]::file-selector-button { font: inherit; font-weight: 600; margin-right: 10px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--card); cursor: pointer; }
textarea { resize: vertical; line-height: 1.55; }

.abtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }

.abtn--ghost { background: var(--card); color: var(--ink); align-self: flex-start; }

.abtn--danger { background: var(--card); border-color: color-mix(in srgb, var(--danger) 35%, var(--card)); color: var(--danger); align-self: flex-start; }
.abtn--danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

.rep { display: flex; flex-direction: column; gap: 10px; }
.rep__row.card { position: relative; padding-top: 18px; box-shadow: none; }
.rep__row.card > .row-ctrl { position: absolute; top: 12px; right: 12px; }
.rep__row.card > .f:first-of-type, .rep__row.card > .imgfield:first-of-type, .rep__row.card > .grid2:first-of-type { margin-right: 110px; }
.rep--cats > .rep__row.card { background: var(--surface); }
.row-ctrl { display: flex; gap: 4px; }
.ibtn { width: 30px; height: 30px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 13px; color: var(--soft); transition: border-color .15s, color .15s; }
.ibtn:hover { border-color: var(--ink); color: var(--ink); }
.ibtn--del:hover { border-color: var(--danger); color: var(--danger); background: var(--err-bg); }
.rep__row.line { display: grid; grid-template-columns: 1fr 220px auto; gap: 8px; align-items: center; }
.rep__row.line--img { grid-template-columns: 64px 1fr auto; }
.rep__row.line--img:has(> input[type="text"] + input[type="text"]) { grid-template-columns: 64px 1fr 1fr auto; }
@media (max-width: 720px) { .rep__row.line--img:has(> input[type="text"] + input[type="text"]) { grid-template-columns: 64px 1fr auto; } .rep__row.line--img > input[type="text"] + input[type="text"] { grid-column: 2; grid-row: 2; } }
.rep__row.ost-row { grid-template-columns: 1fr 240px 170px auto; align-items: end; }
.thumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--surface-2); display: block; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.imgfield { display: flex; gap: 14px; align-items: flex-start; }
.imgfield__preview { width: 88px; height: 88px; flex: none; border: 1px solid var(--line); background: var(--surface) repeating-conic-gradient(var(--surface-2) 0 25%, var(--card) 0 50%) 0 0 / 14px 14px; display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: 12px; }
.imgfield__preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.imgfield__body { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.imgfield__path { font-size: 12.5px !important; color: var(--soft) !important; background: var(--surface) !important; }

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap--flat { border: 0; box-shadow: none; margin: 0 -8px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--surface); color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface); }

.table form { margin: 0; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-right: 110px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--soft); }
.tag--warn { background: var(--warn-bg); color: var(--warn-fg); }
.f--inline { flex-direction: row; align-items: center; gap: 10px; max-width: 300px; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--card); }
.login-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 48px; background: var(--sb); color: var(--sb-text); }
.login-aside::before { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--brand-rgb),.35), transparent 65%); }
.login-aside::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 9px); pointer-events: none; }
.login-aside > * { position: relative; z-index: 1; }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand img { border-radius: 9px; }
.login-brand b { display: block; font-family: Onest, var(--font); font-size: 26px; font-weight: 900; letter-spacing: .02em; line-height: 1; color: #fff; text-shadow: 0 1px 0 #9aa0aa, 0 2px 0 #5d636d, 0 3px 0 #2c3138, 0 6px 10px rgba(0,0,0,.55); -webkit-text-stroke: .4px #fff; }
.login-brand small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-top: 6px; }
.login-hero h2 { margin: 0 0 12px; color: #fff; font-size: 34px; line-height: 1.15; letter-spacing: -.02em; max-width: 14ch; }
.login-hero p { margin: 0; max-width: 40ch; font-size: 15.5px; }
.login-aside__foot { font-size: 13px; color: var(--sb-muted); }
.login-aside__foot a { color: #fff; text-decoration: none; font-weight: 600; }
.login-main { display: grid; place-items: center; padding: 32px; }
.login { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.login__title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.login__sub { margin: -8px 0 6px; color: var(--soft); }
.login .abtn { min-height: 46px; }

@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, 1fr); } .dash { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  
  .sb { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform .25s; }
  .sb.is-open { transform: none; }
  .sb-backdrop.is-open { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.4); }
  .tb { padding: 0 16px; }
  .tb__burger { display: grid; }
  .tb__name, .tb__btn span { display: none; }
  .ct { padding: 20px 16px 32px; }
  .form__bar { margin: 0 -16px; padding: 12px 16px; }
  .cf { padding: 16px; }
  
  .rep__row.line, .rep__row.ost-row { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-aside { display: none; }
}
@media (max-width: 560px) { .stats, .quick { grid-template-columns: 1fr; } }
.seg { display: inline-flex; background: var(--surface-2); align-self: flex-start; flex-wrap: wrap; }
.seg__item { text-decoration: none; font-weight: 600; color: var(--soft); transition: background-color .15s, color .15s; }
.seg__item:hover { color: var(--ink); }
.seg__item.is-active { background: var(--card); color: var(--ink); }
.ftabs { position: sticky; z-index: 6; display: flex; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ftabs::-webkit-scrollbar { display: none; }
.ftabs__btn { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2, var(--line)); font: inherit; font-weight: 600; line-height: 1.3; cursor: pointer; white-space: nowrap; transition: border-color .15s, background-color .15s, color .15s; }

.ftabs__btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ftabs__btn.is-active { box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 30%, transparent); }

.ftab { display: flex; flex-direction: column; gap: 16px; }
.ftab[hidden] { display: none; }
@media (max-width: 960px) { .ftabs { margin: 0 -16px 4px; padding: 10px 16px; } }
@media (max-width: 600px) {  .ftabs__btn { font-size: 13.5px; } }
input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], input[type="tel"], input[type="url"], input[type="time"], input[type="datetime-local"], input[type="month"], select { height: 42px; min-height: 42px; }
select { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a5f6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; }
select:disabled { opacity: .5; cursor: default; }
.ibtn { display: inline-grid; place-items: center; padding: 0; }
.ibtn svg, .back-link svg, .ext-link svg { width: 15px; height: 15px; }
.back-link, .ext-link { display: inline-flex; align-items: center; gap: 4px; }

.rte { border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); transition: border-color .15s, box-shadow .15s; }

.rte__sel:disabled { opacity: .45; cursor: default; }
.rte__bar { border-radius: 10px 10px 0 0; position: sticky; top: 60px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px; background: var(--surface); border-bottom: 1px solid var(--line); }
.rte__bar button { display: inline-flex; align-items: center; gap: 6px; height: 34px; min-width: 34px; padding: 0 8px; border: 0; border-radius: 7px; background: none; color: var(--soft); cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; }
.rte__bar button svg { width: 17px; height: 17px; }
.rte__bar button:hover { background: var(--surface-2); color: var(--ink); }
.rte__bar button.is-on { background: var(--brand-soft); color: var(--brand); }
.rte__sel { width: auto; min-height: 34px !important; height: 34px; padding: 0 34px 0 10px; font-size: 13px; border-radius: 7px; background-position: right 10px center; }
.rte__sel--icon { max-width: 150px; }
.rte__sep { width: 1px; height: 22px; margin: 0 4px; background: var(--line); }
.rte__mode { margin-left: auto; border: 1px solid var(--line) !important; }
.rte__area { border-radius: 0 0 10px 10px; min-height: 320px; max-height: 70vh; overflow-y: auto; padding: 18px 22px; outline: none; font-size: 15px; line-height: 1.65; color: var(--ink); }
.rte__area > :first-child { margin-top: 0; }
.rte__area p { margin: 0 0 12px; }
.rte__area h2 { font-size: 22px; margin: 22px 0 10px; }
.rte__area h3 { font-size: 18px; margin: 20px 0 8px; }
.rte__area h4 { font-size: 16px; margin: 16px 0 6px; }
.rte__area h2[data-icon]::before, .rte__area h3[data-icon]::before, .rte__area h4[data-icon]::before { content: attr(data-icon); display: inline-block; margin-right: 8px; padding: 2px 7px; border-radius: 5px; background: #5b6f5f; color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.rte__area ul, .rte__area ol { margin: 0 0 12px; padding-left: 24px; }
.rte__area a { color: var(--brand); }
.rte__area .rt-callout { padding: 12px 16px; border-radius: 8px; background: #5b6f5f; color: #fff; }
.rte__area .rt-callout a { color: #fff; }
.rte__area .rt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.rte__area .rt-card { padding: 10px 12px; border: 1px solid var(--line); border-top: 3px solid #5b6f5f; border-radius: 8px; }
.rte__area .rt-card p { margin: 0; }
.rte__area .rt-card__title { font-weight: 700; }
.rte__area figure { margin: 0 0 12px; }
.rte__area img { max-width: 100%; border-radius: 8px; }
.rte__area figcaption { font-size: 13px; color: var(--muted); }
.rte__area hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.rte__src { display: none; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; min-height: 320px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; padding: 16px 18px; }
.rte.is-source .rte__area { display: none; }
.rte.is-source .rte__src { display: block; }
.rte.is-source .rte__bar > :not(.rte__mode) { opacity: .35; pointer-events: none; }
.ftab .rte__bar { top: 108px; }
.rte__area [data-icon="alert"]::before { content: "Внимание"; }
.rte__area [data-icon="tools"]::before { content: "Инструмент"; }
.rte__area [data-icon="price"]::before { content: "Цена"; }
.rte__area [data-icon="star"]::before { content: "Звезда"; }
.rte__area [data-icon="sofa"]::before { content: "Диван"; }
.rte__area [data-icon="check"]::before { content: "Галочка"; }
.rte__area [data-icon="clock"]::before { content: "Часы"; }
.rte__area [data-icon="phone"]::before { content: "Телефон"; }
.login-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; font-size: 15.5px; font-weight: 400; color: #c7cbdb; }
.login-list li { display: flex; align-items: center; gap: 12px; }
.login-list span { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--brand-rgb),.16); color: #8fb4e8; }
.login-list svg { width: 15px; height: 15px; }
.tg-card legend { display: flex; align-items: center; gap: 8px; }
.tg-status { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 99px; background: var(--surface-2); color: var(--soft); font-weight: 600; font-size: 13px; }
.tg-status span { width: 8px; height: 8px; border-radius: 50%; background: #b8bcc5; }
.tg-status.is-on { background: var(--ok-bg); color: var(--ok-fg); }
.tg-status.is-on span { background: #1f9d55; box-shadow: 0 0 0 3px rgba(31,157,85,.18); }
.tg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tg-actions .abtn--ghost { align-self: auto; }
.tg-result { padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.55; }
.tg-result.is-ok { background: var(--ok-bg); color: var(--ok-fg); }
.tg-result.is-err { background: var(--err-bg); color: var(--err-fg); }
.tg-chats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tg-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--ok-fg) 30%, var(--card)); border-radius: 9px; background: var(--card); font: inherit; cursor: pointer; text-align: left; }
.tg-chip small { font-size: 12px; color: var(--muted); }
.tg-chip:hover { border-color: #1f9d55; }
.tg-chip.is-added { border-color: #1f9d55; background: var(--ok-bg); }
.tg-toggles { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; }
.check--danger { color: var(--danger); }
.sm-table td { vertical-align: middle; }
.sm-table .sm-on { width: 44px; text-align: center; }
.sm-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); }
.sm-table .sm-prio { width: 170px; height: 36px; min-height: 36px; }
.sm-table .sm-group td { background: var(--surface); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 9px; padding-bottom: 9px; }
.sm-table tr.is-off td:not(.sm-on) { opacity: .45; }
.sm-table a.muted { font-size: 12.5px; text-decoration: none; color: var(--muted); font-weight: 400; }
.sm-table a.muted:hover { color: var(--brand); }
.lay-list { gap: 6px; }
.lay-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.lay-row .row-ctrl { margin-left: auto; }
.lay-row__check span { font-weight: 600; }
.lay-row.is-muted .lay-row__check span { color: var(--muted); }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.mod { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s; }
.mod:hover { border-color: var(--line-3); }
.mod input { position: absolute; opacity: 0; pointer-events: none; }
.mod__switch { position: relative; flex: none; width: 42px; height: 24px; margin-top: 2px; border-radius: 99px; background: var(--line-2); transition: background-color .2s; }
.mod__switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.mod input:checked + .mod__switch { background: var(--brand); }
.mod input:checked + .mod__switch::after { transform: translateX(18px); }
.mod input:focus-visible + .mod__switch { outline: 2px solid var(--brand); outline-offset: 2px; }
.mod__body { display: flex; flex-direction: column; gap: 3px; }
.mod__body b { font-size: 15.5px; }
.mod__body small { color: var(--soft); font-size: 13px; line-height: 1.45; }
.mod__body .tag { align-self: flex-start; margin-top: 4px; font-style: normal; }
.theme-color { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.theme-color input[type="color"] { width: 64px; height: 44px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); cursor: pointer; }
.theme-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-preset { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.theme-preset:hover { box-shadow: 0 0 0 2px var(--ink); }
.theme-preset.is-active { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--brand); }
.theme-radius { display: flex; gap: 12px; flex-wrap: wrap; }
.theme-radius__opt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.theme-radius__opt input { position: absolute; opacity: 0; }
.theme-radius__opt span { width: 72px; height: 44px; background: var(--brand-soft); border: 2px solid var(--brand); }
.theme-radius__opt b { font-size: 13px; font-weight: 600; }

.seg__item small { color: var(--muted); font-weight: 500; margin-left: 2px; }
.list-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.list-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.list-filter select { width: 220px; }
.list-filter input { width: 220px; }
.prod-table td { vertical-align: middle; }
.prod-table__img { width: 64px; }
.prod-table__img img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; display: block; }
.prod-table .tag { margin: 4px 4px 0 0; }

.mod--inline { box-shadow: none; }
.ftabs__btn small { color: var(--muted); font-weight: 500; }
.cf-list { gap: 6px; }
.cf-head, .cf-row { display: grid; grid-template-columns: 40px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) 130px 104px; gap: 10px; align-items: center; }
.cf-head { padding: 0 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cf-row { padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.cf-row__main { display: flex; flex-direction: column; gap: 3px; }
.cf-row__main small { font-size: 11.5px; }
.cf-row textarea { min-height: 42px; }
.cf-row__req span { font-size: 13px; }
.cf-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cf-add select { width: 240px; }
.order-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: start; }
.order-fields { margin: 0; display: grid; gap: 10px; }
.order-fields div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; }
.order-fields dt { color: var(--muted); font-size: 13.5px; }
.order-fields dd { margin: 0; font-weight: 500; }
.order-fields a { color: var(--brand); }
.order-total td { background: var(--surface); }
.ost { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }

@media (max-width: 1100px) { .cf-head { display: none; } .cf-row { grid-template-columns: 40px 1fr; } .cf-row > *:nth-child(n+5) { grid-column: 2; } .order-grid { grid-template-columns: 1fr; } }
.cf-row:not(.is-custom) .js-remove { visibility: hidden; }
.svc-nav { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.svc-tree { list-style: none; margin: 0; padding: 0; }
.svc-tree .svc-tree { padding-left: 18px; margin-left: 10px; border-left: 1px dashed var(--line-2); }
.svc-tree__item { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 7px; text-decoration: none; color: var(--ink); font-size: 14px; }
.svc-tree__item:hover { background: var(--surface); }
.svc-tree__item.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.svc-nav__add { display: flex; flex-direction: column; gap: 8px; padding-left: 24px; border-left: 1px solid var(--line); }
.svc-nav__add .abtn { align-self: flex-start; }
@media (max-width: 960px) { .svc-nav { grid-template-columns: 1fr; } .svc-nav__add { padding-left: 0; border-left: 0; } }
.cat-checks { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.prop-row { grid-template-columns: 1fr 140px auto !important; }
.bks { display: flex; flex-direction: column; gap: 10px; }
.bk { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.bk.is-off { opacity: .6; }
.bk.is-drag { opacity: .4; outline: 2px dashed var(--brand); }
.bk__head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.bk__drag { cursor: grab; color: var(--muted); display: grid; place-items: center; width: 24px; }
.bk__drag:active { cursor: grabbing; }
.bk__title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; padding: 6px 0; }
.bk__title b { font-size: 15px; white-space: nowrap; }
.bk__title span { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk__on { position: relative; cursor: pointer; display: flex; align-items: center; }
.bk__on input { position: absolute; opacity: 0; }
.bk__on input:checked + .mod__switch { background: var(--brand); }
.bk__on input:checked + .mod__switch::after { transform: translateX(18px); }
.bk__tools { display: flex; gap: 4px; }
.bk__chev svg { transition: transform .2s; }
.bk.is-open .bk__chev svg { transform: rotate(180deg); }
.bk__body { display: none; padding: 4px 18px 20px 48px; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.bk.is-open .bk__body { display: flex; }
.bk__body > .hint { margin: 0; font-size: 13px; }
.bf-list { display: flex; flex-direction: column; gap: 8px; }
.bf-row { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; background: var(--surface); box-shadow: none; position: relative; }
.bf-row > .row-ctrl { position: absolute; top: 10px; right: 10px; }
.bf-row > :nth-child(2) { margin-right: 110px; }
.bf-row .bf-row { background: var(--card); }
.bf-refs { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.f--num input { max-width: 160px; }
.bk-add { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.bk-add select { flex: 1; min-width: 260px; max-width: 560px; }
.convert-card p { margin: 0; }
.bf-single { display: flex; flex-direction: column; gap: 14px; }
.inline-form { display: inline-flex; gap: 2px; vertical-align: middle; margin-right: 8px; }
.bk--content { background: repeating-linear-gradient(135deg, var(--surface) 0 10px, var(--surface-2) 10px 20px); border-style: dashed; border-color: var(--line-3); box-shadow: none; }
.bk--content .bk__title { cursor: default; }
.tag--ok { background: var(--ok-bg); color: var(--ok-fg); }
.slug-field { display: flex; gap: 8px; align-items: stretch; }
.slug-field input { flex: 1; min-width: 0; }
.slug-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; height: auto; min-height: 42px; }
.layout-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.layout-pick__item { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.layout-pick__item input { position: absolute; opacity: 0; }
.layout-pick__item:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.layout-pick__scheme { display: flex; gap: 6px; height: 54px; margin-bottom: 4px; }
.layout-pick__scheme i { border-radius: 6px; background: var(--line-2); }
.layout-pick__scheme i:first-child { background: var(--line-3); }
.layout-pick__scheme--pager, .layout-pick__scheme--more { align-items: flex-end; justify-content: center; padding-bottom: 6px; }
.layout-pick__scheme--pager i { flex: none; width: 18px; height: 18px; }
.layout-pick__scheme--more i { flex: none; width: 96px; height: 20px; border-radius: 999px; }
.layout-pick__item small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.ipick__btn { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font: inherit; font-size: 14px; cursor: pointer; }
.ipick__btn:hover { border-color: var(--brand); }
.ipick__btn .rt-ico, .ipick-pop .rt-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.ipick__btn .rt-ico svg, .ipick-pop .rt-ico svg { width: 20px; height: 20px; }
.ipick__chev { color: var(--muted); }
.ipick-pop { position: absolute; z-index: 300; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(0,0,0,.18); }
.ipick-pop__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 4px; }
.ipick-pop__item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1px solid transparent; border-radius: 10px; background: none; cursor: pointer; font: inherit; }
.ipick-pop__item small { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.2; }
.ipick-pop__item:hover { background: var(--surface); }
.ipick-pop__item.is-on { border-color: var(--brand); background: var(--brand-soft); }
.tpal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tpal__item { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; font: inherit; text-align: left; }
.tpal__item:hover { border-color: var(--line-3); }
.tpal__item.is-active { border-color: var(--brand); background: var(--brand-soft); }
.tpal__sw { display: flex; height: 34px; border-radius: 8px; overflow: hidden; }
.tpal__sw i { flex: 1; }
.tpal__sw i:first-child { flex: 2; }
.tpal__item b { font-size: 13.5px; }
.tcolors { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tcolor { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.tcolor small { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.tcolor input[type=color] { width: 46px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); opacity: .45; cursor: pointer; }
.tcolor.is-on input[type=color] { opacity: 1; }
.tprev { --p-accent: #5b6f5f; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tprev__dark { padding: 10px 16px; background: var(--p-dark); color: rgba(255,255,255,.8); font-size: 13px; }
.tprev__body { padding: 22px 20px; background: var(--p-bg); }
.tprev__h { font-size: 24px; font-weight: 800; color: var(--p-head); margin: 0 0 6px; }
.tprev__t { color: var(--p-text); margin: 0; font-size: 15px; }
.tprev__row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.tprev__ico { width: 40px; height: 40px; border-radius: 10px; background: var(--p-accent2); }
.tprev__num { font-size: 28px; font-weight: 800; color: var(--p-accent2); }
.tprev__btn { padding: 12px 22px; border-radius: var(--p-btn-r); background: var(--p-btn); color: var(--p-btn-text); font-weight: 600; }
.tprev__link { color: var(--p-accent); font-weight: 600; text-decoration: underline; }
.tprev__alt { padding: 14px 20px; background: var(--p-alt); color: var(--p-text); font-size: 14px; }
.st-now { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.st-now > div { display: flex; flex-direction: column; gap: 2px; }
.st-now b { font-size: 20px; }
.st-now__mode { font-size: 24px !important; color: var(--brand); }
.st-now small { color: var(--muted); font-size: 12.5px; }
.st-now__dl { margin-left: auto; }
.st-modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.st-mode { position: relative; display: block; padding: 16px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.st-mode input { position: absolute; opacity: 0; }
.st-mode:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.st-mode.is-off { opacity: .55; cursor: not-allowed; }
.st-mode__body { display: flex; flex-direction: column; gap: 6px; }
.st-mode__body b { font-size: 16px; }
.st-mode__body em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--brand); color: #fff; margin-left: 6px; vertical-align: middle; }
.st-mode__body small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.st-how p { margin: 0 0 8px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.st-how p:last-child { margin: 0; }
.alert--warn { background: var(--warn-bg); color: var(--warn-fg); }
.st-emerg { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.st-emerg p { margin: 0; font-size: 14px; color: var(--ink-soft); max-width: 70ch; }
.st-emerg.is-alert { border: 2px solid #d33; background: var(--err-bg); }
.card.st-now { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-align: left; gap: 16px 40px; }
.card.st-now > div { align-items: flex-start; }
.card.st-emerg { display: flex; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
.pay-state b { display: block; font-size: 20px; margin-top: 4px; }
.pay-state small { display: block; margin-top: 4px; color: var(--warn-fg); }

.pay-state--off b { color: var(--muted); }
.order-pay { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.order-pay p { margin: 0; }
.order-pay__note { color: var(--err-fg); font-size: 13.5px; }
.order-pay__act { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.tag--err { background: var(--err-bg); color: var(--err-fg); }
.alert--ok { background: var(--ok-bg); color: var(--ok-fg); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; align-items: start; }
@media (max-width: 1100px) { .grid3 { grid-template-columns: 1fr; } }
.tier-row { grid-template-columns: 1fr 160px auto !important; align-items: end; }
.cl-search { display: flex; gap: 8px; max-width: 520px; }
.cl-search input { flex: 1; }
.phx-row { grid-template-columns: 1fr 1fr auto !important; align-items: end; }
.menu-row__ico { align-items: start; }
.menu-ico-img .imgfield { margin: 0; }
.rt-ico--none { width: 34px; height: 34px; border-radius: 9px; border: 1.5px dashed var(--line-3); background: none !important; display: inline-block; }
.ipick-pop__none .rt-ico { background: var(--surface) !important; color: var(--muted) !important; }

.path-field { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.path-field input { border: 0 !important; border-radius: 0 !important; flex: 1; min-width: 0; font-weight: 700; padding-left: 2px !important; box-shadow: none !important; }
.path-field__pre, .path-field__post { display: flex; align-items: center; padding: 0 2px 0 12px; color: var(--muted); font-size: 14px; background: var(--surface); white-space: nowrap; }
.path-field__post { padding: 0 12px 0 2px; }
.mail-test { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.mail-test .f { flex: 1 1 280px; max-width: 420px; }
.mail-tr summary { cursor: pointer; font-weight: 600; color: var(--soft); }
.mail-tr pre { margin: 10px 0 0; padding: 12px 14px; background: var(--surface); border-radius: 10px; max-height: 340px; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.code-input { font-size: 26px !important; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.tfa-state { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.login-main { align-content: center; row-gap: 10px; }
.login--sub { gap: 0; }
.login__alt { margin: 0; color: var(--soft); font-size: 14px; text-align: center; }
.login__alt a { color: var(--brand); font-weight: 600; text-decoration: none; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); font-weight: 600; cursor: pointer; }
.linkbtn:hover, .login__alt a:hover { text-decoration: underline; }
.rd-grid { display: grid; grid-template-columns: 1fr auto 1fr 180px; gap: 12px; align-items: end; }
.rd-arrow { display: grid; place-items: center; height: 44px; color: var(--muted); }
.rd-bulk summary { cursor: pointer; }
.rd-bulk[open] summary { margin-bottom: 12px; }
.rd-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.table tr.is-off td { opacity: .55; }
@media (max-width: 900px) { .rd-grid { grid-template-columns: 1fr; } .rd-arrow { display: none; } }
.rev-list { display: flex; flex-direction: column; gap: 12px; }
.rev-item { gap: 10px; }
.rev-item.is-current { border-color: color-mix(in srgb, var(--ok-fg) 30%, var(--card)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ok-fg) 30%, var(--card)); }
.rev-item__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.rev-diff summary { cursor: pointer; color: var(--soft); font-weight: 600; }
.rev-diff[open] summary { margin-bottom: 10px; }
.rev-table td { vertical-align: top; font-size: 13.5px; }
.rev-old { color: var(--err-fg); background: var(--err-bg); }
.rev-new { color: var(--ok-fg); background: var(--ok-bg); }
.rev-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--soft); }
.rev-link:hover { color: var(--brand); }
.rev-link small { font-size: 12px; padding: 1px 7px; border-radius: 99px; background: var(--surface-2); }
.bk-now { display: flex; align-items: center; gap: 12px; }
.bk-actions { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; }
.bk-actions .inline-form { margin-right: 0; }
.bk-restore summary { list-style: none; }
.bk-restore summary::-webkit-details-marker { display: none; }
.bk-restore__form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); min-width: 240px; }
.rev-link { text-decoration: none; margin-left: 14px; }
.img-opt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.img-opt__bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 12px; }
.img-opt__bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .3s; }

.ord-notify { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px; }
.ord-hist ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; display: grid; gap: 4px; }
.ord-export summary { cursor: pointer; }
.ord-export__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 12px 0 8px; }
.ord-export__form .f { min-width: 160px; }
.var-row { grid-template-columns: minmax(140px, 1.6fr) 1fr 110px 100px 140px auto auto !important; }
@media (max-width: 1100px) { .var-row { grid-template-columns: 1fr 1fr !important; } }
.io-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.io-card h2, .io-help h2 { margin: 0; font-size: 18px; }
.io-fmt, .io-btns { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.io-help ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--soft); }
.io-sum { margin: 4px 0; }
.io-list ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; font-size: 13.5px; max-height: 340px; overflow: auto; }
.io-list--err li { color: var(--err-fg); }
.io-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.st-out { color: var(--err-fg); }
@media (max-width: 1000px) { .io-grid { grid-template-columns: 1fr; } }

.tb__search { position: relative; display: flex; align-items: center; gap: 8px; flex: 0 1 360px; padding: 0 10px 0 12px; border: 1px solid var(--line); transition: border-color .15s, background-color .15s; }
.tb__search:focus-within { border-color: var(--line-3); background: var(--card); }
.tb__search .ci { width: 16px; height: 16px; color: var(--muted); }
.tb__search input[type=search] { flex: 1; min-width: 0; border: 0; background: none; padding: 0; height: 100%; font: inherit; color: var(--ink); outline: none; box-shadow: none; }
.tb__search input::-webkit-search-cancel-button { display: none; }
.tb__search kbd { font: 600 11.5px/1 var(--font); color: var(--muted); border: 1px solid var(--line); padding: 3px 6px; background: var(--card); }
.tb__search:focus-within kbd { display: none; }
.tb__sugg { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 320px; max-height: 70vh; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(var(--shadow-rgb),.16); padding: 6px; z-index: 60; }
.tb__sugg[hidden] { display: none; }
.tb__sugg-g { margin: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tb__sugg-g:first-child { margin-top: 4px; }
.tb__sugg a { display: flex; flex-direction: column; padding: 7px 10px; border-radius: 8px; text-decoration: none; line-height: 1.35; }
.tb__sugg a small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb__sugg a:hover, .tb__sugg a.is-active { background: var(--bg); }
.tb__sugg a.tb__sugg-all { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; color: var(--brand); font-weight: 600; }
.tb__sugg-empty { padding: 12px 10px; color: var(--muted); }
.tb__btn--icon { width: 36px; padding: 0; justify-content: center; }

.help { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--card); box-shadow: -12px 0 40px rgba(var(--shadow-rgb),.18); z-index: 90; overflow-y: auto; padding: 26px 26px 30px; animation: helpIn .22s ease-out; }
.help[hidden], .help-bd[hidden] { display: none; }
.help-bd { position: fixed; inset: 0; background: rgba(var(--shadow-rgb),.35); z-index: 89; }
@keyframes helpIn { from { transform: translateX(24px); opacity: 0; } }
.help__close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: var(--bg); color: var(--soft); cursor: pointer; }
.help__close svg { width: 18px; height: 18px; }
.help__close:hover { color: var(--ink); }
.help__title { margin: 0 44px 14px 0; font-size: 19px; }
.help p, .help li { color: var(--ink); }
.help ul, .help ol { padding-left: 20px; }
.help li + li { margin-top: 6px; }
.help__foot { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

body.is-modal { overflow: hidden; }
.mpick { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.mpick[hidden] { display: none; }
.mpick__bd { position: absolute; inset: 0; background: rgba(var(--shadow-rgb),.5); }
.mpick__box { position: relative; display: flex; flex-direction: column; width: min(960px, 100%); max-height: calc(100vh - 40px); background: var(--card); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.25); overflow: hidden; }
.mpick__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mpick__head b { font-size: 16px; margin-right: auto; }
.mpick__head input[type=search] { width: 220px; height: 36px; }
.mpick__up { cursor: pointer; }
.mpick__grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; padding: 16px; align-content: start; min-height: 240px; }
.mpick__grid > p { grid-column: 1 / -1; color: var(--muted); text-align: center; margin: 40px 0; }
.mpick__item { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .15s, background-color .15s; }
.mpick__item:hover, .mpick__item:focus-visible { border-color: var(--brand); background: var(--brand-soft); outline: none; }
.mpick__item img, .mpick__item .mlib__doc { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; background: var(--bg); }
.mpick__name { font-size: 12px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mpick__foot { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--line); min-height: 52px; color: var(--muted); font-size: 13px; }
.mpick__foot:empty { display: none; }

.mlib-drop { margin: 0 0 18px; padding: 26px 20px; border: 2px dashed var(--line-2); border-radius: var(--radius); background: var(--card); text-align: center; transition: border-color .15s, background-color .15s; }
.mlib-drop p { margin: 0 0 4px; font-size: 15px; }
.mlib-drop small { color: var(--muted); }
.mlib-drop.is-over { border-color: var(--brand); background: var(--brand-soft); }
.mlib-drop__status { margin-top: 10px; font-size: 13.5px; color: var(--soft); }
.mlib-drop__status:empty { display: none; }
.mlib-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 10px; }
.mlib-bar input[type=search] { width: 240px; margin-left: auto; }
.mlib { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.mlib__item { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.mlib__item:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.mlib__item.is-unused { border-style: dashed; }
.mlib__thumb { display: block; aspect-ratio: 4 / 3; background: var(--bg) repeating-conic-gradient(var(--surface-2) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.mlib__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mlib__meta { display: flex; flex-direction: column; padding: 8px 10px 10px; min-width: 0; }
.mlib__name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mlib__meta small { color: var(--muted); font-size: 12px; }
.mlib__sel { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

.mlib__doc { display: grid; place-items: center; width: 100%; height: 100%; font: 800 20px/1 var(--font); letter-spacing: .04em; color: var(--doc, var(--sb-muted)); background: color-mix(in srgb, var(--doc, var(--sb-muted)) 10%, var(--card)); }
.mlib-pages { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 18px; }
.mlib-file { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.mlib-file__prev { padding: 12px; display: grid; place-items: center; min-height: 260px; }
.mlib-file__prev img { max-width: 100%; max-height: 520px; border-radius: 8px; display: block; }
.mlib-file__prev .mlib__doc { width: 160px; height: 200px; border-radius: 10px; font-size: 30px; }
.mlib-file__name { margin: 0 0 14px; font-size: 18px; word-break: break-all; }
.mlib-file .card > * + * { margin-top: 14px; }
.mlib-usage { margin: 6px 0 0; padding-left: 18px; }
.mlib-usage li + li { margin-top: 4px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }

.srch-group { margin-bottom: 16px; }
.srch-group h2 { margin: 0 0 8px; font-size: 16px; }
.srch-list { list-style: none; margin: 0; padding: 0; }
.srch-list li { padding: 9px 0; border-top: 1px solid var(--line); }
.srch-list li:first-child { border-top: 0; }
.srch-list a { font-weight: 600; text-decoration: none; }
.srch-list a:hover { color: var(--brand); }
.srch-list small { display: block; color: var(--muted); font-size: 13px; }

.launch { padding: 0; }
.launch summary { display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.launch summary::-webkit-details-marker { display: none; }
.launch summary::after { content: ""; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); }

.launch__title { font-weight: 700; font-size: 16px; }
.launch__bar { flex: 1; max-width: 280px; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.launch__bar i { display: block; height: 100%; background: var(--ok); border-radius: inherit; }
.launch__cnt { color: var(--muted); font-size: 13.5px; margin-right: auto; }
.launch__list { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 4px 22px; }
.launch__list li { display: flex; gap: 11px; padding: 9px 0; border-top: 1px solid var(--line); }
.launch__list li > div { display: flex; flex-direction: column; min-width: 0; }
.launch__list a { text-decoration: none; }
.launch__list a:hover b { color: var(--brand); }
.launch__list small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.launch__list li.is-done b { color: var(--muted); font-weight: 500; text-decoration: line-through; }
.launch__mark { flex: none; width: 20px; height: 20px; margin-top: 1px; border: 2px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; }
.launch__mark svg { width: 12px; height: 12px; }
.is-done .launch__mark { border-color: var(--ok); background: var(--ok); color: #fff; }

.imgfield__row { display: flex; gap: 8px; }
.imgfield__row input { flex: 1; min-width: 0; }
.imgfield__row .abtn { flex: none; }

@media (max-width: 900px) {
  .tb__search { flex: 1 1 auto; margin-left: 8px; }
  .tb__search kbd { display: none; }
  .mlib-file { grid-template-columns: 1fr; }
  .mlib-bar input[type=search] { margin-left: 0; flex: 1; }
}
@media (max-width: 600px) {
  .tb__crumbs { display: none; }
  
  .tb__search:focus-within { width: auto; padding: 0 10px; }
  
  .tb__search:focus-within input[type=search] { position: static; width: auto; opacity: 1; }
  
  .mlib { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .mpick__head { flex-wrap: wrap; }
  .mpick__head input[type=search] { order: 5; width: 100%; }
}
.mpick__head .ibtn { display: grid; place-items: center; width: 36px; height: 36px; }
.mpick__head .ibtn svg { width: 18px; height: 18px; }
.mlib__thumb, .mlib__thumb:hover { text-decoration: none; }
.mlib__sel input { accent-color: var(--brand); box-shadow: 0 0 0 2px #fff; }

.draft-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin: 0 0 16px; padding: 14px 18px; border: 1px solid color-mix(in srgb, var(--warn-fg) 35%, var(--card)); border-left: 4px solid #e0a800; border-radius: var(--radius); background: var(--warn-bg); }
.draft-note__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 320px; }
.draft-note__txt span, .draft-note__txt small { color: var(--soft); font-size: 13.5px; }
.draft-note__warn { color: var(--warn-fg) !important; font-weight: 600; }
.draft-note__act { display: flex; flex-wrap: wrap; gap: 8px; }
.form__bar--draft { flex-wrap: wrap; gap: 10px; }
.form__bar--draft .abtn .ci { width: 16px; height: 16px; margin-right: 6px; }
.drafts-tbl__chk { width: 36px; }
.drafts-tbl td { vertical-align: top; }

.launch__wiz { margin: 0; color: var(--muted); font-size: 13.5px; }
.launch__wiz a { font-weight: 600; }
.wiz { max-width: 860px; }
.wiz__steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.wiz__steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.wiz__num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); font-size: 12.5px; background: var(--card); }
.wiz__num svg { width: 13px; height: 13px; }
.wiz__steps li.is-cur { color: var(--ink); }
.wiz__steps li.is-cur .wiz__num { border-color: var(--brand); background: var(--brand); color: #fff; }
.wiz__steps li.is-done .wiz__num { border-color: var(--ok); background: var(--ok); color: #fff; }
.wiz__card { display: flex; flex-direction: column; gap: 14px; padding: 26px 28px; }
.wiz__card h2 { margin: 0; font-size: 21px; }
.wiz__card .hint { margin: 0; }
.wiz__sub { margin: 4px 0 0; display: flex; flex-direction: column; gap: 12px; }
.wiz__checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2px 22px; }
.wiz__checks li { display: flex; gap: 11px; padding: 10px 0; border-top: 1px solid var(--line); }
.wiz__checks li > div { display: flex; flex-direction: column; }
.wiz__checks small { color: var(--muted); font-size: 12.5px; }
.wiz__mark { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; margin-top: 1px; }
.wiz__mark svg { width: 12px; height: 12px; }
.is-ok .wiz__mark { background: var(--ok); }
.is-warn .wiz__mark { background: #e0a800; }
.is-bad .wiz__mark { background: var(--danger); }
.wiz__mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.wiz__mod { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.wiz__mod:hover { border-color: var(--line-2); }
.wiz__mod:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.wiz__mod:has(input:disabled) { opacity: .55; cursor: default; }
.wiz__mod input { margin-top: 3px; accent-color: var(--brand); flex: none; }
.wiz__mod span { display: flex; flex-direction: column; }
.wiz__mod small { color: var(--soft); font-size: 12.5px; line-height: 1.4; }
.wiz__bar { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.wiz__skip { margin-top: 12px; text-align: center; }
.wiz__done { text-align: center; padding: 10px 0; }
.wiz__big { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.wiz__big svg { width: 32px; height: 32px; }
.wiz__done .hint { max-width: 560px; margin: 8px auto 0; }
.wiz__mod { transition: border-color .15s, background-color .15s; align-items: flex-start; }

.code-card { display: flex; flex-direction: column; gap: 12px; }
textarea.code-area { width: 100%; min-height: 420px; padding: 14px 16px; font: 13.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; white-space: pre; overflow-wrap: normal; overflow: auto; resize: vertical; background: var(--field); }
.code-help summary { cursor: pointer; font-weight: 600; }
.code-help p { color: var(--soft); font-size: 13.5px; }
.code-pre { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--sb); color: #d7dbe2; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; }
.tb__btn { white-space: nowrap; }

.edition-card { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.addons { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.addon { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 10px; }
.addon small { color: var(--soft); font-size: 12.5px; line-height: 1.4; }
.addon .tag { align-self: flex-start; margin-top: 4px; }
.addon.is-on { border-style: solid; border-color: color-mix(in srgb, var(--ok-fg) 30%, var(--card)); background: var(--ok-bg); }

.tstyles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tstyle { display: flex; flex-direction: column; gap: 3px; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.tstyle:hover { border-color: var(--line-3); }
.tstyle.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.tstyle b { font-size: 13.5px; }
.tstyle small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.tstyle__pic { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); align-content: start; gap: 5px; height: 64px; margin: 0 auto 6px; width: 100%; padding: 8px; border-radius: 6px; background: var(--bg); }
.tstyle__pic--narrow { padding-left: 24px; padding-right: 24px; }
.tstyle__pic--wide { padding-left: 4px; padding-right: 4px; }
.tstyle__pic--compact { gap: 3px; }
.tstyle__pic--compact i { height: 22px; }
.tstyle__pic i { height: 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line-2); }
.tstyle__pic em { position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); width: 34px; height: 9px; border-radius: var(--br); background: var(--sb); }
.tview__opts { margin-top: 16px; gap: 16px 24px; }
.topts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.topt { flex: 1 1 110px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; text-align: center; transition: border-color .15s; }
.topt input { position: absolute; opacity: 0; pointer-events: none; }
.topt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.topt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.topt b { font-size: 13.5px; }
.topt small { color: var(--muted); font-size: 12px; }
.topt__pic { display: flex; width: 72px; border-radius: 5px; background: var(--bg); }
.topt__pic i { display: block; border-radius: 3px; background: var(--line-3); }
.topt__pic--w-narrow i { width: 40%; }
.topt__pic--w-normal i { width: 66%; }
.topt__pic--w-wide i { width: 92%; }
.topt__pic { justify-content: center; gap: 3px; height: 34px; margin-bottom: 4px; padding: 5px; flex-direction: row; }
.topt__pic--d-compact, .topt__pic--d-normal, .topt__pic--d-relaxed { flex-direction: column; align-items: center; }
.topt__pic--d-compact i { width: 80%; height: 5px; }
.topt__pic--d-normal i { width: 70%; height: 6px; }
.topt__pic--d-relaxed i { width: 60%; height: 6px; margin: 1px 0; }
.topt__pic--d-compact { gap: 2px; justify-content: center; }
.topt__pic--d-normal { gap: 3px; justify-content: center; }
.topt__pic--d-relaxed { gap: 4px; justify-content: center; }

@media (min-width: 1500px) {
  .ct { max-width: 1680px; }
  .fcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .fcol { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
  .fcol > fieldset.card { margin: 0; }
}

.gal .rep__row { cursor: grab; transition: opacity .15s, background-color .15s; }
.gal .rep__row.is-drag { opacity: .45; background: var(--brand-soft); }
.gal .rep__row.is-loading { opacity: .6; }
.gal .rep__row.is-loading .thumb { position: relative; }
.gal .rep__row.is-loading .thumb::after { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border: 2px solid #fff; border-top-color: transparent; border-radius: 50%; animation: galspin .8s linear infinite; }
@keyframes galspin { to { transform: rotate(360deg); } }
.gal-add { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding: 14px; border: 2px dashed var(--line-2); border-radius: 10px; transition: border-color .15s, background-color .15s; }
.gal-add.is-over { border-color: var(--brand); background: var(--brand-soft); }
.gal-add label.abtn { cursor: pointer; }
.gal-add__status { margin-left: auto; font-weight: 600; color: var(--brand); font-size: 13px; }
@media (min-width: 1500px) {
  .bf-single, .bf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; align-items: start; }
  .bf-single > :not(.f):not(.check):not(.imgfield), .bf-row > :not(.f):not(.check):not(.imgfield):not(.row-ctrl),
  .bf-single > .f:has(textarea), .bf-row > .f:has(textarea), .bf-single > .f:has([data-rte]), .bf-row > .f:has([data-rte]) { grid-column: 1 / -1; }
  .bf-single > .check, .bf-row > .check { align-self: center; }
  .bf-row > :nth-child(2) { margin-right: 0; }
  .bf-row { padding-top: 46px; }
  .fcol .bf-single, .fcol .bf-row { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding-top: 14px; }
  .fcol .bf-row > :nth-child(2) { margin-right: 110px; }
}
@media (min-width: 1500px) {
  .rep:has(> .rep__row.card + .rep__row.card) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .rep:has(> .rep__row.card + .rep__row.card) > :not(.rep__row) { grid-column: 1 / -1; }
  .rep:has(> .rep__row.card + .rep__row.card) > .bf-row { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding-top: 14px; }
  .rep:has(> .rep__row.card + .rep__row.card) > .bf-row > :nth-child(2) { margin-right: 110px; }
  .fcol .rep:has(> .rep__row.card + .rep__row.card) { display: flex; flex-direction: column; }
}

.ipick-pop { max-height: 460px; padding: 0 10px 10px; }
.ipick-pop__search { position: sticky; top: 0; z-index: 1; margin: 0 -10px 4px; padding: 10px; background: var(--card); border-bottom: 1px solid var(--line); }
.ipick-pop__search input { width: 100%; height: 38px; }
.ipick-pop__g { margin: 10px 4px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ipick-pop__g[hidden], .ipick-pop__grid[hidden], .ipick-pop__item[hidden] { display: none; }

a.tb__user { text-decoration: none; color: inherit; }
.tb__name { display: flex; flex-direction: column; line-height: 1.2; }
.tb__name small { font-weight: 500; font-size: 11.5px; color: var(--muted); }
.tb__user--out { padding-left: 4px; border-left: 0; }
@media (max-width: 760px) { .tb__name { display: none; } }

.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.role { cursor: pointer; }
.role input { position: absolute; opacity: 0; pointer-events: none; }
.role__box { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; transition: border-color .15s, background-color .15s; }
.role__box small { color: var(--soft); font-size: 12.5px; line-height: 1.4; }
.role input:checked + .role__box { border-color: var(--brand); background: var(--brand-soft); }
.role input:focus-visible + .role__box { outline: 2px solid var(--brand); outline-offset: 2px; }
.users-tbl tr.is-off td { opacity: .6; }
.users-tbl .tag { margin: 0 4px 4px 0; }

.wiz__pick { margin: 8px 0 18px; }
.wiz__pick > label { position: relative; }
.wiz__pick input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.wiz__pick .tstyle:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.wiz__pick .tpal__item:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.wiz__pick > label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.bulk { position: sticky; top: 64px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--brand); border-radius: 12px; background: var(--card); box-shadow: 0 8px 24px rgba(17, 24, 39, .1); }
.bulk[hidden] { display: none; }
.bulk__n { font-size: 14px; white-space: nowrap; }
.bulk select, .bulk input[type=number] { width: auto; min-width: 0; padding: 7px 10px; font-size: 14px; }
.bulk select { padding-right: 34px; }
.bulk input[type=number] { width: 110px; }
.bulk__opt { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bulk__opt[hidden] { display: none; }
.bulk .check { margin: 0; }
.prod-table tr.is-picked td { background: var(--brand-soft); }
.guide { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.guide__toc { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 10px; }
.guide__toc nav { display: flex; flex-direction: column; gap: 1px; max-height: calc(100vh - 220px); overflow-y: auto; }
.guide__toc nav a { padding: 6px 10px; border-radius: 8px; color: var(--ink-soft, var(--soft)); text-decoration: none; font-size: 14px; }
.guide__toc nav a:hover, .guide__toc nav a.is-active { background: var(--brand-soft); color: var(--ink, var(--ink)); }
.guide__toc nav a[hidden] { display: none; }
.guide__toc .abtn { align-self: flex-start; gap: 6px; }
.guide__toc .abtn svg { width: 16px; height: 16px; }
.guide__q { width: 100%; }
.guide__body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.guide__body > .hint { margin: 0; }
.guide__sec { scroll-margin-top: 76px; }
.guide__sec[hidden] { display: none; }
.guide__txt { font-size: 15px; line-height: 1.6; }
.guide__txt h3 { margin: 18px 0 6px; font-size: 15.5px; }
.guide__txt p, .guide__txt ul, .guide__txt ol { margin: 0 0 10px; }
.guide__txt ul, .guide__txt ol { padding-left: 22px; }
.guide__txt li { margin: 3px 0; }
.guide__txt mark { background: var(--warn-bg); color: var(--ink); border-radius: 3px; }
@media (max-width: 900px) { .guide { grid-template-columns: 1fr; } .guide__toc { position: static; } .guide__toc nav { max-height: none; flex-direction: row; flex-wrap: wrap; } }
@media print {
  .sb, .tb, .guide__toc, .help, .help-bd, .alert { display: none !important; }
  .guide { display: block; }
  .guide__sec { break-inside: avoid-page; box-shadow: none; border: 0; padding: 0; margin: 0 0 18px; }
  .guide__sec .abtn { display: none; }
  body, .main { background: var(--card) !important; }
}
.guide__chev { display: inline-block; vertical-align: -2px; color: var(--muted); }
.promo-code { display: flex; gap: 8px; }
.promo-code input { flex: 1; min-width: 0; }

.promo-on { margin-bottom: 16px; }
[data-promo-value][hidden] { display: none; }
.pick { display: flex; flex-direction: column; gap: 10px; }
.pick__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; max-height: 460px; overflow-y: auto; padding: 2px; }
.pick__item { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; }
.pick__item[hidden] { display: none; }
.pick__item:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pick__item input { flex: none; }
.pick__img { flex: none; width: 40px; height: 40px; border-radius: 6px; overflow: hidden; background: var(--surface); }
.pick__img img { width: 100%; height: 100%; object-fit: cover; }
.pick__item b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.pick__item small { color: var(--muted); font-size: 12.5px; }
.ord-docs { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ord-docs__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ord-docs__head b { margin-right: 6px; }
.ord-docs__head .abtn svg { width: 15px; height: 15px; }
.ord-docs summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.ord-docs__form { margin-top: 10px; }
.i18n-cfg { margin-bottom: 16px; }
.i18n-cfg__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 6px 0; }
.i18n-cfg__row .check { margin: 0; }
.i18n-bar { display: inline-block; width: 120px; height: 6px; margin-right: 8px; border-radius: 3px; background: var(--surface-2); vertical-align: middle; overflow: hidden; }
.i18n-bar i { display: block; height: 100%; background: #22a35a; }
.i18n-h { margin: 0 0 12px; font-size: 20px; }
.i18n-filter { margin-bottom: 14px; justify-content: flex-start; }
.i18n-filter .check { margin: 0; }
.i18n-group { display: flex; flex-direction: column; gap: 10px; }
.i18n-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; padding-top: 10px; border-top: 1px dashed var(--line); }
.i18n-group > legend + .i18n-row { border-top: 0; padding-top: 0; }
.i18n-row__src small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 12px; }
.i18n-row__text { font-size: 14px; line-height: 1.5; color: var(--soft); white-space: pre-line; max-height: 220px; overflow: auto; }
.i18n-row__dst input, .i18n-row__dst textarea { width: 100%; }
.i18n-pages { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 12px; align-items: center; }
.i18n-pages a { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px; text-decoration: none; color: var(--ink, var(--ink)); }
.i18n-pages a.is-on { background: var(--brand); color: #fff; }
@media (max-width: 900px) { .i18n-row { grid-template-columns: 1fr; } }
.i18n-filter .check { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.i18n-filter input[type=checkbox] { width: auto; flex: none; }
.i18n-filter input[type=text] { max-width: 320px; }
.pro-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 13.5px; }
.pro-note b { padding: 2px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-size: 12px; }
:where(.ost--k-new) { background: var(--brand-soft); color: var(--brand); }
:where(.ost--k-work) { background: var(--info-bg); color: var(--info-fg); }
:where(.ost--k-done) { background: var(--ok-bg); color: var(--ok-fg); }
:where(.ost--k-cancel) { background: var(--surface-2); color: var(--muted); }
.ost[style*="--st"] { background: color-mix(in srgb, var(--st) 14%, var(--card)); color: var(--st); }
.oitems { display: flex; flex-direction: column; gap: 10px; }
.oitems__t input { width: 100%; min-width: 0; padding: 7px 10px; }
.oitems__t .oitems__qty { width: 80px; }
.oitems__t .oitems__price { width: 110px; }
.oitems__t td { vertical-align: middle; }
.oitems__add { display: flex; gap: 8px; flex-wrap: wrap; }
.oitems__add input { flex: 1; min-width: 240px; }
.oitems__total { margin: 0; text-align: right; }

.oitems__grand { margin: 4px 0 0; text-align: right; font-size: 17px; }
.oitems__grand .muted { display: block; font-size: 13px; }
.order-new .card { display: flex; flex-direction: column; gap: 14px; }
.order-new .card > .muted { margin: 0; }
.ord-edit { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ord-edit > summary { cursor: pointer; font-weight: 600; }
.order-new [data-new-addr][hidden] { display: none; }
.ord-edit > .form { margin-top: 12px; }
.ord-top { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.ord-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: 1; min-width: 260px; }
.ord-search input[type=search] { flex: 1; min-width: 220px; }
.ord-search__tip { flex-basis: 100%; color: var(--muted); }

.mail-pv__frame { width: 100%; height: 560px; border: 1px solid var(--line); background: var(--surface); margin: 8px 0; }
.audit { display: flex; flex-direction: column; gap: 14px; }
.audit__form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.audit__form .f { width: 220px; }
.audit__form .abtn svg { width: 18px; height: 18px; margin-right: 6px; }
.audit__prog { display: flex; flex-direction: column; gap: 6px; }
.audit__prog[hidden] { display: none; }
.audit__bar { height: 8px; border-radius: 6px; background: var(--bg); overflow: hidden; }
.audit__bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.audit__prog p { margin: 0; }
.audit__bad { color: var(--danger); }
.audit__ok { color: var(--ok); }
.audit__clean { margin: 14px 0 0; color: var(--ok); font-weight: 600; }
.audit__grp { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

.audit__grp > p { margin: 8px 0; }
.audit__what { word-break: break-word; max-width: 420px; }
.audit__pg { display: block; font-size: 13px; word-break: break-all; }
div.hint { display: flex; flex-direction: column; gap: 8px; }
div.hint p { margin: 0; }
.feeds { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; }
.feed-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.feed-card .f { width: 100%; }
.feed-card.is-off { opacity: .7; }
.fx-now { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.fx-now__nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.fx-now__nums > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.fx-now__nums b { font-size: 20px; }
.fx-now__nums b small { font-size: 14px; font-weight: 500; }
.feed-card__nums { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--soft); }
.feed-card__warn { color: #b45309; }
.feed-cats { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 8px 0 4px; }
.actlog-flt { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.actlog-flt .f { min-width: 160px; flex: 1; }
.actlog-t td { vertical-align: top; }
.actlog-t tr.is-bad td { background: var(--err-bg); }
.pay-tabs { margin-bottom: 16px; }
.pay-prov { display: flex; flex-direction: column; gap: 12px; }
.pay-prov__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.pay-prov__head h2 { margin: 0; font-size: 18px; }

.pay-urls { display: grid; gap: 10px; }
.card-acts { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.pay-prov__more > summary { cursor: pointer; padding: 4px 0; }
.pay-prov__more[open] > summary { margin-bottom: 12px; }
.pay-prov__more .pay-urls { margin-top: 14px; }
.card.actlog-flt { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: flex-start; }
.card.actlog-flt .f { flex: 1 1 180px; }
.order-src { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 12px; }
.order-src small { color: var(--soft); }
.dsum { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.seg--sm .seg__item { padding: 5px 10px; font-size: 13px; }
.dsum__kpi { display: flex; flex-wrap: wrap; gap: 14px 36px; }
.dsum__kpi > div { display: flex; flex-direction: column; gap: 2px; }
.dsum__kpi b { font-size: 24px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.dsum__kpi b small { font-size: 13px; font-weight: 500; color: var(--soft); }
.dsum__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 13px; color: var(--soft); }
.dsum__legend span { display: inline-flex; align-items: center; gap: 6px; }
.dsum__legend .dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.dchart { width: 100%; height: auto; display: block; }
.dchart__grid { stroke: var(--surface-2); stroke-width: 1; }
.dchart__base { stroke: var(--line-3); stroke-width: 1; }
.dchart__ax { font-size: 10px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.dchart__hit { fill: transparent; }
.dchart__day:hover .dchart__hit { fill: var(--surface); }
.dsum__tbl summary { cursor: pointer; font-size: 14px; color: var(--soft); }
.dsum__tbl .table-wrap { max-height: 320px; overflow: auto; margin-top: 8px; }
.dash--3 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); margin-bottom: 18px; }
.rte__sel--style { max-width: 190px; }
.rte__area blockquote { margin: 0 0 12px; padding: 4px 0 4px 16px; border-left: 3px solid var(--line-3); color: var(--soft); font-style: italic; }
.rte__area .rt-lead { font-size: 17px; color: var(--ink); }
.rte__area .rt-note { font-size: 13px; color: var(--muted); }
.rte__area .rt-info, .rte__area .rt-ok, .rte__area .rt-warn { padding: 10px 14px; border-radius: 8px; border-left: 4px solid; }
.rte__area .rt-info { background: var(--info-bg); border-color: #5b6f5f; }
.rte__area .rt-ok { background: var(--ok-bg); border-color: #2f8a4c; }
.rte__area .rt-warn { background: var(--warn-bg); border-color: #c98a12; }
.rte__area a.rt-btn { display: inline-block; padding: 6px 14px; border-radius: 8px; background: #5b6f5f; color: #fff; text-decoration: none; font-weight: 600; }
.rte__area table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 14px; }
.rte__area th, .rte__area td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; min-width: 60px; }
.rte__area th { background: var(--surface); }
.rv-photos { display: flex; flex-direction: column; gap: 6px; }
.rv-photos__list { display: flex; flex-wrap: wrap; gap: 10px; }
.rv-photo { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; }
.rv-photo img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; display: block; border: 1px solid var(--line); }

.og-set > div { display: flex; flex-direction: column; gap: 14px; }

.og-prev figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.ilink-row__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
@media (max-width: 900px) { .og-set, .ilink-row__grid { grid-template-columns: 1fr; } }

.lg { min-height: 100vh; margin: 0; display: flex; flex-direction: column; color: var(--ink); }
.lg__bg { position: fixed; inset: 0; z-index: 0; }
.lg__bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(var(--shadow-rgb),.07) 1px, transparent 1px); background-size: 18px 18px; }
.lg__wrap { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1040px; margin: auto; padding: 40px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.lg__card { display: flex; flex-direction: column; gap: 26px; padding: 44px 48px 30px; background: var(--card); }
.lg__brand { display: flex; align-items: center; gap: 12px; }
.lg__brand img { flex: none; width: 44px; height: 44px; border-radius: 50%; }
.lg__brand b { display: block; line-height: 1; color: var(--ink); }
.lg__brand small { display: block; margin-top: 5px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; }
.lg__form { display: flex; flex-direction: column; gap: 16px; margin-top: auto; }
.lg__title { margin: 0; line-height: 1.15; }
.lg__sub { margin: -6px 0 6px; color: var(--soft); line-height: 1.5; }
.lg__sub b { color: var(--ink); font-weight: 600; }
.lg__field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--soft); }
.lg__inp { position: relative; display: flex; align-items: center; }
.lg__inp > svg { position: absolute; left: 15px; width: 19px; height: 19px; color: var(--muted); pointer-events: none; transition: color .15s; }
.lg__inp input { width: 100%; padding: 0 48px 0 46px; border: 1.5px solid var(--line); background: var(--field); font: inherit; font-weight: 500; color: var(--ink); transition: border-color .15s, box-shadow .15s, background-color .15s; }
.lg__inp input::placeholder { color: var(--muted); font-weight: 400; }
.lg__inp input:focus { outline: 0; background: var(--field); }

.lg__inp .code-input { letter-spacing: .3em; font-size: 20px; }
.lg__eye { position: absolute; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }

.lg__eye svg { width: 19px; height: 19px; }
.lg__check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--soft); cursor: pointer; }
.lg__check input { width: 18px; height: 18px; accent-color: var(--brand); }
.lg__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; border: 0; font: inherit; font-weight: 700; cursor: pointer; transition: background-color .15s, transform .15s, box-shadow .15s; }
.lg__btn svg { width: 18px; height: 18px; transition: transform .15s; }

.lg__btn:hover svg { transform: translateX(3px); }

.lg__btn.is-busy { opacity: .75; pointer-events: none; }
.lg__msg { margin: 0; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.lg__msg--err { background: var(--err-bg); color: var(--err-fg); }
.lg__msg--ok { background: var(--ok-bg); color: var(--ok-fg); }
.lg__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 0; font-size: 14px; color: var(--muted); }
.lg__alt a, .lg__alt .linkbtn { font-weight: 600; text-decoration: none; }
.lg__copy { margin: auto 0 0; padding-top: 10px; font-size: 12.5px; color: var(--muted); }
.lg__copy a { color: var(--soft); font-weight: 600; text-decoration: none; }
.lg__side { position: relative; overflow: hidden; color: #c7cbdb; }
.lg__side::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.022) 0 2px, transparent 2px 10px); pointer-events: none; }
.lg__lamp { position: absolute; left: 50%; top: -140px; width: 560px; height: 560px; margin-left: -280px; border-radius: 50%; background: radial-gradient(circle, rgba(120,170,255,.42) 0%, rgba(47,134,234,.16) 38%, transparent 68%); filter: blur(4px); animation: lg-glow 6s ease-in-out infinite alternate; }
@keyframes lg-glow { from { opacity: .8; transform: scale(.97); } to { opacity: 1; transform: scale(1.03); } }
.lg__side-in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; }
.lg__kicker { margin: 0 0 14px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; }
.lg__h { margin: 0; font-family: Onest, var(--font); line-height: 1.2; letter-spacing: -.01em; color: #f3f5fb; }
.lg__nw { white-space: nowrap; }
.lg__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; font-size: 15px; color: #c7cbdb; }
.lg__list li { display: flex; align-items: center; gap: 12px; }
.lg__list span { flex: none; display: grid; place-items: center; width: 26px; height: 26px; }
.lg__list svg { width: 14px; height: 14px; }
@media (max-width: 860px) {
  .lg__wrap { grid-template-columns: 1fr; max-width: 480px; padding: 20px 16px; }
  .lg__card { padding: 32px 24px 24px; }
  .lg__side { display: none; }
  .lg__title { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .lg__lamp { animation: none; } }

.toasts { position: fixed; top: 74px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; width: min(400px, calc(100vw - 32px)); pointer-events: none; }
.toast { position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 16px 16px; background: #232838; color: #f5f6fb; pointer-events: auto; opacity: 0; transform: translateX(16px) scale(.98); transition: opacity .22s, transform .22s; }
.toast.is-in { opacity: 1; transform: none; }
.toast.is-out { opacity: 0; transform: translateX(16px); }
.toast__ico { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.1); }
.toast__ico svg { width: 16px; height: 16px; }
.toast--ok .toast__ico { background: #4f8a57; color: #fff; }
.toast--err .toast__ico { background: #c0564a; color: #fff; }
.toast--warn .toast__ico { background: #d39a3c; color: #2a1d10; }
.toast--info .toast__ico { background: #7b8fa6; color: #fff; }
.toast__msg { flex: 1; min-width: 0; padding-top: 3px; font-size: 14px; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
.toast__x { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin: -2px -4px 0 0; padding: 0; border: 0; border-radius: 8px; background: none; color: rgba(255,255,255,.55); cursor: pointer; }
.toast__x:hover { background: rgba(255,255,255,.1); color: #fff; }
.toast__x svg { width: 15px; height: 15px; }
.toast__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255,255,255,.18); transform-origin: left; animation: toast-bar linear forwards; }
.toast--ok .toast__bar { background: #7fb487; }
.toast--err .toast__bar { background: #e08b80; }
.toast--warn .toast__bar { background: #e8b868; }
.toast.is-paused .toast__bar { animation-play-state: paused; }
@keyframes toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.dlg { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(var(--shadow-rgb),.42); backdrop-filter: blur(3px); opacity: 0; transition: opacity .16s; }
.dlg.is-in { opacity: 1; }
.dlg__box { width: 100%; max-width: 440px; padding: 24px; border-radius: 18px; background: var(--card); box-shadow: 0 30px 80px rgba(var(--shadow-rgb),.35); transform: translateY(8px) scale(.98); transition: transform .16s; }
.dlg.is-in .dlg__box { transform: none; }
.dlg__head { display: flex; align-items: center; gap: 12px; }
.dlg__ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; }
.dlg__ico svg { width: 20px; height: 20px; }
.dlg__ico--info { background: var(--brand-soft); color: var(--brand); }
.dlg__ico--danger { background: var(--err-bg); color: #b4473b; }
.dlg__title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.dlg__msg { margin: 12px 0 0 52px; color: var(--soft); font-size: 14.5px; line-height: 1.55; }
.dlg__inp { display: block; width: 100%; height: 46px; margin-top: 16px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 11px; background: var(--field); font: inherit; font-size: 15px; color: var(--ink); }
.dlg__inp:focus { outline: 0; }
.dlg__btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.abtn--danger-solid { background: #b4473b; border-color: #b4473b; color: #fff; }
.abtn--danger-solid:hover { background: #9c3a30; border-color: #9c3a30; }
body.is-dlg { overflow: hidden; }
@media (max-width: 720px) { .toasts { top: auto; bottom: 16px; right: 16px; left: 16px; width: auto; } .dlg__msg { margin-left: 0; } }
.abtn--soft { border-color: transparent; }

.abtn--text { background: none; border-color: transparent; color: var(--soft); }
.abtn--text:hover { color: var(--ink); background: rgba(var(--shadow-rgb),.05); }
.form__bar--edit { flex-wrap: wrap; align-items: center; }
.form__bar--edit .form__cancel { margin-left: auto; }
.act { display: flex; flex-direction: column; gap: 14px; }
.act__top { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.act__sw.mod { padding: 0; border: 0; box-shadow: none; background: none; }
.act__state { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.act__state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.act__state--on { background: var(--ok-bg); color: var(--ok-fg); }
.act__state--plan { background: var(--warn-bg); color: var(--warn-fg); }
.act__state--off { background: var(--surface-2); color: #857a6e; }
.act__dates { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); align-items: end; }
.act__dates small { grid-column: 1 / -1; color: var(--muted); }

.imgfield__up { cursor: pointer; flex: none; }
.imgfield__up .ci { width: 15px; height: 15px; }
.imgfield__row { flex-wrap: wrap; }
.tb__crumbs span, .tb__crumbs a { white-space: nowrap; }

.mlib__sel input { width: 20px; height: 20px; }
.mlib__item:not(.is-sel) .mlib__sel input { opacity: .75; }
.mlib-bulk { align-items: center; flex-wrap: wrap; }
.mlib-bulk__n { margin-right: 6px; color: var(--soft); }
.mlib-bulk__del { margin-left: auto; }
.mlib-bulk__del:disabled { opacity: .45; cursor: default; }
.qe-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qe-cols { position: relative; }
.qe-cols > summary { list-style: none; cursor: pointer; }
.qe-cols > summary::-webkit-details-marker { display: none; }
.qe-cols > summary .ci, .qe-tools .abtn .ci { width: 15px; height: 15px; }
.qe-cols__pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; display: grid; gap: 8px; min-width: 220px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(var(--shadow-rgb),.16); }
.qe-tools [data-qe-start]:disabled { opacity: .5; cursor: default; }
.qe-table .qe-e { display: none; }
.qe-table tr.is-edit { background: var(--brand-soft); }
.qe-table tr.is-edit .qe-v { display: none; }
.qe-table tr.is-edit .qe-e { display: block; }
.qe-table .qe-e input[type=text], .qe-table .qe-e input[type=number], .qe-table .qe-e select { width: 100%; min-width: 90px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); font: inherit; font-size: 14px; }
.qe-table .qe-cell--title .qe-e input { min-width: 200px; }
.qe-table .qe-e input:focus, .qe-table .qe-e select:focus { outline: 0; }
.qe-checks { display: grid; gap: 4px; }
.qe-table tr.is-edit .qe-checks { display: grid; }
.qe-specs { display: grid; gap: 2px; font-size: 13px; }
.qe-specs i { font-style: normal; color: var(--muted); }
.qe-specs-e { display: grid; gap: 6px; min-width: 180px; }
.qe-table tr.is-edit .qe-specs-e { display: grid; }
.qe-specs-e label { display: grid; gap: 2px; }
.qe-specs-e small { color: var(--muted); font-size: 12px; }
.qe-bar { align-items: center; }
.gal-meta { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr); gap: 8px; align-items: center; }
.gal-meta .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-meta input { height: 36px; min-width: 0; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); font: inherit; font-size: 13.5px; }
.gal-meta input::placeholder { color: var(--muted); }
@media (max-width: 900px) { .gal-meta { grid-template-columns: 1fr; } }
.ico-set { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 24px; align-items: start; }
.ico-set__fields { display: grid; gap: 18px; }
.color-row { display: flex; align-items: center; gap: 12px; }
.color-row input[type=color] { width: 48px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); }
.color-row small { color: var(--muted); }
.ico-prev { display: grid; gap: 14px; padding: 18px; border-radius: 14px; background: var(--line); }
.ico-prev__tab { border-radius: 10px 10px 0 0; background: var(--line-2); padding: 8px 10px 0; display: flex; align-items: flex-end; gap: 10px; }
.ico-prev__dots { display: flex; gap: 5px; padding-bottom: 12px; }
.ico-prev__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-3); }
.ico-prev__t { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 220px; padding: 8px 12px; border-radius: 9px 9px 0 0; background: var(--card); font-size: 12.5px; }
.ico-prev__t img { width: 16px; height: 16px; object-fit: contain; flex: none; }
.ico-prev__t b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ico-prev__t svg { width: 12px; height: 12px; flex: none; color: var(--muted); margin-left: auto; }
.ico-prev__serp { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; background: var(--card); }
.ico-prev__serp img { width: 28px; height: 28px; border-radius: 50%; object-fit: contain; background: var(--surface-2); padding: 4px; }
.ico-prev__serp span { display: grid; line-height: 1.25; font-size: 13px; }
.ico-prev__serp small { color: var(--sb-muted); }
.ico-prev__home { display: grid; justify-items: center; gap: 6px; padding: 18px; border-radius: 14px; background: linear-gradient(160deg, #5b6f8c, #2f3d55); }
.ico-prev__app { display: block; width: 64px; height: 64px; border-radius: 15px; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.28); }
.ico-prev__app img { width: 100%; height: 100%; object-fit: cover; }
.ico-prev__home small { color: #fff; font-size: 11.5px; }
@media (max-width: 900px) { .ico-set { grid-template-columns: 1fr; } }
.dpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.dpick__item { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.dpick__item:hover { border-color: var(--line-3); }
.dpick__item input { position: absolute; opacity: 0; pointer-events: none; }

.dpick__item:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.dpick__item b { font-size: 14.5px; }
.dpick__item small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.sch { --sch-a: var(--brand); --sch-b: var(--line-3); --sch-c: var(--line-2); --sch-d: var(--line-3); display: flex; flex-direction: column; height: 84px; margin-bottom: 4px; border-radius: 9px; background: var(--surface); overflow: hidden; }
.sch .sch { height: auto; margin: 0; background: none; flex: 1; }
.sch--dark { background: var(--sb-line); }
.sch__r { display: flex; }
.sch__r i, .sch__c i, .sch i { display: block; flex-shrink: 0; }
.sch__c { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 5px; border-radius: 6px; background: var(--card); overflow: hidden; }
.seg--radio { margin-top: 12px; }
.seg--radio .seg__item { position: relative; cursor: pointer; }
.seg--radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg--radio .seg__item:has(input:checked) { background: var(--card); color: var(--ink); }

.tb__theme { display: inline-flex; gap: 2px; background: var(--surface-2); }
.tb__theme-btn { display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; transition: background-color .15s, color .15s; }
.tb__theme-btn .ci { width: 16px; height: 16px; }
.tb__theme-btn:hover { color: var(--ink); }
.tb__theme-btn.is-on { background: var(--card); }
@media (max-width: 720px) { .tb__theme { display: none; } }

.setl { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 24px; align-items: start; }

.setl__main > .ftabs.is-in-nav, .setl__main form > .ftabs.is-in-nav { display: none; }

@media (max-width: 1100px) {
  .setl { grid-template-columns: minmax(0, 1fr); }

  .setl__main > .ftabs.is-in-nav, .setl__main form > .ftabs.is-in-nav { display: flex; }
}
.setl__main fieldset.card, .setl__main section.card { scroll-margin-top: 76px; }

.ge { display: flex; flex-direction: column; gap: 12px; }
.ge-table tr.is-picked td { background: var(--brand-soft); }
.ge-table tr.is-muted .ge-title a { opacity: .6; }
.ge-title { display: flex; align-items: center; gap: 10px; }
.ge-title .tag { margin: 4px 4px 0 0; }
.ge-branch { flex: none; width: 12px; height: 12px; margin-top: -8px; border-left: 1.5px solid var(--line-3); border-bottom: 1.5px solid var(--line-3); border-radius: 0 0 0 4px; }
.ge-noimg { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.ge-noimg svg { width: 22px; height: 22px; }
.ge-acts a { white-space: nowrap; }
.ctree { display: grid; align-items: start; }
.ctree--solo, .ctree:not(:has(> .ctree__side)) { grid-template-columns: minmax(0, 1fr); }

.ctree__side { position: sticky; overflow: auto; padding: 10px 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); scrollbar-width: thin; }
.ctree__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 6px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.ctree__head b { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ctree__head .ibtn { width: 30px; height: 30px; }
.ctree__head .ibtn .ci { width: 16px; height: 16px; }
.ctree__list { list-style: none; margin: 0; padding: 0 0 0 14px; }
.ctree__list--top { padding-left: 0; }
.ctree__list[hidden] { display: none; }
.ctree__row { display: flex; align-items: center; gap: 2px; border-radius: 8px; transition: background-color .15s; }
.ctree__row:hover { background: var(--surface); }
.ctree__row.is-active { background: var(--brand-soft); }
.ctree__row.is-active .ctree__link { color: var(--ink); font-weight: 600; }
.ctree__row.is-off .ctree__link span { opacity: .55; }
.ctree__tog { flex: none; display: grid; place-items: center; width: 22px; height: 30px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 6px; }
.ctree__tog svg { width: 14px; height: 14px; transition: transform .15s; }
.ctree__tog[aria-expanded="true"] svg { transform: rotate(90deg); }
.ctree__tog:hover { color: var(--ink); }
.ctree__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 4px; color: var(--soft); text-decoration: none; font-size: 14px; }
.ctree__link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctree__link small { margin-left: auto; padding-left: 6px; color: var(--muted); font-size: 12px; }
.ctree__link .ci, .ctree__ico { flex: none; width: 16px; height: 16px; color: var(--brand); }
.ctree__edit { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--muted); opacity: 0; transition: opacity .15s; }
.ctree__edit .ci { width: 14px; height: 14px; }
.ctree__row:hover .ctree__edit, .ctree__row.is-active .ctree__edit, .ctree__edit:focus-visible { opacity: 1; }
.ctree__edit:hover { color: var(--brand); background: var(--card); }
.ctree__prod a { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 26px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 13.5px; }
.ctree__prod a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctree__prod a:hover { background: var(--surface); color: var(--ink); }
.ctree__prod .ctree__ico { width: 14px; height: 14px; color: var(--muted); }
.ctree__prod.is-off a { opacity: .55; }
.ctree__main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ctree__block { display: flex; flex-direction: column; gap: 12px; }
.ctree__bh { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ctree__bh h2 { margin: 0; font-size: 18px; }
.ctree__bh h2 small { color: var(--muted); font-weight: 500; font-size: 14px; }
.ctree__cur { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.ctree__path { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0; font-size: 15px; }
.ctree__path a { color: var(--soft); text-decoration: none; }
.ctree__path a:hover { color: var(--brand); }
.ctree__path .ci { width: 14px; height: 14px; color: var(--muted); }
.ctree__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ctree__btns .ci { width: 15px; height: 15px; }
@media (max-width: 1100px) { .ctree { grid-template-columns: minmax(0, 1fr); } .ctree__side { position: static; max-height: 360px; } }
.qe-bar[hidden], .form__bar[hidden] { display: none; }
.qe-tools [data-ge-start]:disabled { opacity: .5; cursor: default; }
.ge-table .qe-cell--title { min-width: 220px; }
.svc-new { position: relative; }
.svc-new > summary { list-style: none; cursor: pointer; display: inline-flex; }
.svc-new > summary::-webkit-details-marker { display: none; }
.svc-new__form { margin-top: 12px; min-width: min(640px, 90vw); }
.svc-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.svc-path .back-link { margin-right: 6px; }
.svc-path__sep .ci { width: 14px; height: 14px; color: var(--muted); }
.svc-path a:not(.back-link):not(.ext-link) { color: var(--soft); text-decoration: none; }
.svc-path__end { margin-left: auto; display: inline-flex; gap: 14px; align-items: center; }
.svc-kids { display: flex; flex-direction: column; gap: 12px; }
.svc-kids__add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.svc-kids__add input { flex: 1 1 220px; width: auto; }
.bc-picks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }
.bc-picks .check { margin: 0; }
.bc-picks--tree { flex-direction: column; gap: 6px; }
.bc-picks__lv2 { margin-left: 22px !important; }
.bc-picks__lv3 { margin-left: 44px !important; }
.bc-picks__sub span::before { content: "— "; color: var(--muted); }
.psi { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 80px; }
.psi-run { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--surface); font-size: 14px; }
.psi-run[hidden] { display: none; }
.psi-run .img-opt__bar { margin: 0; }
.psi-empty, .psi-last { margin: 0; color: var(--soft); font-size: 14px; }
.psi-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.psi-page + .psi-page { border-top: 1px solid var(--line); }
.psi-page > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 10px 18px; padding: 12px 16px; cursor: pointer; list-style: none; }
.psi-devs { display: flex; flex-direction: column; gap: 6px; }
.psi-page > summary::-webkit-details-marker { display: none; }
.psi-page > summary:hover { background: var(--surface); }
.psi-page__url { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psi-page__url a { color: var(--ink); text-decoration: none; }
.psi-page__url a:hover { color: var(--brand); }
.psi-page__chev { flex: none; color: var(--muted); transition: transform .2s; }
.psi-page[open] .psi-page__chev { transform: rotate(180deg); }
.psi-dev { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.psi-dev__lbl { width: 70px; color: var(--muted); font-size: 12.5px; }
.psi-score { display: inline-grid; place-items: center; min-width: 36px; height: 28px; padding: 0 6px; border-radius: 99px; font-size: 13.5px; font-weight: 800; background: var(--surface-2); color: var(--soft); }
.psi-score--good { background: #e5f6ec; color: #11803d; }
.psi-score--avg { background: #fff3d9; color: #a35b00; }
.psi-score--poor { background: #fde8e6; color: #c22a1f; }
.psi-m { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 8px; border-radius: 7px; font-size: 13px; font-weight: 700; background: var(--surface); color: var(--ink); white-space: nowrap; }
.psi-m small { font-size: 11px; font-weight: 600; color: var(--muted); }
.psi-m::before { content: ""; align-self: center; width: 7px; height: 7px; border-radius: 50%; background: var(--line-3); }
.psi-m--good::before { background: #16a34a; }
.psi-m--avg::before { background: #f59e0b; }
.psi-m--poor::before { background: #dc2626; }
.psi-spark { color: var(--muted); }
.psi-spark--good { color: #16a34a; } .psi-spark--avg { color: #f59e0b; } .psi-spark--poor { color: #dc2626; }
.psi-page__body { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border-top: 1px solid var(--line); }
.psi-det { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; }
.psi-det + .psi-det { border-top: 1px dashed var(--line-2); }
.psi-det__h { margin: 0; font-weight: 700; }
.psi-det__sub { margin: 4px 0 0; color: var(--soft); font-size: 13px; }
.psi-ms { display: flex; flex-wrap: wrap; gap: 6px; }
.psi-ms .psi-m { background: var(--card); border: 1px solid var(--line); padding: 5px 10px; font-size: 14px; }
.psi-opps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.psi-opp { padding: 10px 12px 10px 14px; border-radius: 9px; background: var(--card); border: 1px solid var(--line); }
.psi-opp--poor { border-left-color: #dc2626; }
.psi-opp__t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 14px; }
.psi-opp__t small { color: var(--muted); font-size: 12.5px; }
.psi-opp__a { margin: 4px 0 0; color: var(--soft); font-size: 13px; line-height: 1.5; }
.psi-opp__a a { color: var(--brand); font-weight: 600; }
.psi-hist { display: flex; flex-wrap: wrap; gap: 8px; }
.psi-hist__i { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.psi-hist__i small { color: var(--muted); font-size: 11px; }
.psi-det__more { margin: 0; font-size: 13.5px; }
.psi-det__more a { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-weight: 600; }
.psi-det__more svg { width: 14px; height: 14px; }
.psi-legend { margin: 0; color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.psi-legend .psi-m { font-weight: 500; }
.psi-set { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.psi-howto { padding: 10px 14px; border-radius: 10px; background: var(--surface); font-size: 13.5px; }
.psi-howto summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.psi-howto ol { margin: 10px 0 2px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--soft); line-height: 1.5; }
.psi-howto a { color: var(--brand); }
html[data-at="dark"] .psi-score--good { background: #133022; color: #6fd39a; }
html[data-at="dark"] .psi-score--avg { background: #3a2f12; color: #f0c56a; }
html[data-at="dark"] .psi-score--poor { background: #3b1715; color: #ff9b91; }
@media (max-width: 760px) { .psi-page > summary { grid-template-columns: minmax(0, 1fr) 18px; gap: 8px 12px; } .psi-devs { grid-column: 1 / -1; grid-row: 2; } .psi-dev__lbl { width: 100%; } .psi-spark { display: none; } }
@media (prefers-color-scheme: dark) { html[data-at="auto"] .psi-score--good { background: #133022; color: #6fd39a; } html[data-at="auto"] .psi-score--avg { background: #3a2f12; color: #f0c56a; } html[data-at="auto"] .psi-score--poor { background: #3b1715; color: #ff9b91; } }
.abtn:disabled { opacity: .5; cursor: not-allowed; }
.psi-howto summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.psi-howto summary::-webkit-details-marker { display: none; }
.psi-howto summary svg { transition: transform .2s; }
.psi-howto[open] summary svg { transform: rotate(180deg); }
.hpre { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.hpre__item { display: flex; flex-direction: column; gap: 8px; padding: 8px 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.hpre__item:hover { border-color: var(--brand); }
.hpre__item.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 35%, transparent); }
.hpre__item b { font-weight: 600; }
.hpre__pic { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); }
.hpre__pic i { display: block; height: 5px; border-radius: 3px; background: currentColor; opacity: .55; flex: 1; }
.hpre__pic i:first-child { flex: none; width: 26%; height: 9px; opacity: .95; }
.hpre__pic i:last-child { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.rpick { display: flex; flex-direction: column; gap: 14px; }
.rpick__label { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.rpick__label small { color: var(--muted); font-weight: 400; }
.rpick__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rpick__chip { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 4px; border: 1px solid var(--brand); border-radius: 10px; background: var(--brand-soft); cursor: grab; }
.rpick__chip.is-drag { opacity: .45; }
.rpick__grip { flex: none; display: grid; place-items: center; width: 22px; color: var(--muted); }
.rpick__grip svg { width: 16px; height: 16px; }
.rpick__txt { flex: 1; min-width: 0; }
.rpick__txt b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpick__txt small { color: var(--muted); font-size: 12.5px; }
.rpick__del { flex: none; width: 30px; height: 30px; }
.rpick__del svg { width: 15px; height: 15px; }
.rpick__empty { margin: 0; font-size: 14px; }
.rpick__find { display: flex; flex-direction: column; gap: 10px; }
.rpick__types { align-self: flex-start; }
.rpick__types .seg__item { border: 0; background: none; font-family: inherit; cursor: pointer; }
.rpick__types .seg__item.is-active { background: var(--card); }
.ctree__prod.is-cur a { background: var(--brand-soft); color: var(--ink); font-weight: 600; }
.ctree__prod[draggable="true"] a { cursor: grab; }
body.is-dnd, body.is-dnd * { cursor: grabbing !important; user-select: none; }
.drag-h { flex: none; display: inline-grid; place-items: center; width: 22px; height: 28px; margin: 0 2px 0 -4px; border-radius: 6px; color: var(--muted); cursor: grab; touch-action: none; opacity: .55; transition: opacity .15s, color .15s, background-color .15s; }
.drag-h svg { width: 15px; height: 15px; }
.drag-h:hover { opacity: 1; color: var(--brand); background: var(--brand-soft); }
.drag-h--off { visibility: hidden; }
td.sm-on:has(.drag-h) { white-space: nowrap; width: 64px; }
td.sm-on .drag-h { vertical-align: middle; margin-right: 6px; }
tr:hover > td.sm-on .drag-h { opacity: 1; }
.drag-h--tree { width: 16px; height: 22px; margin: 0 0 0 -6px; opacity: 0; }
.ctree--dnd .ctree__prod a, .ctree--dnd [data-move-id] .ctree__link { cursor: grab; }
.ctree--dnd .ctree__prod a:hover .drag-h--tree, .ctree--dnd .ctree__row:hover .drag-h--tree { opacity: .8; }
.ctree--dnd .ctree__prod a:hover .drag-h--tree + .ctree__ico, .ctree--dnd .ctree__row[data-move-id]:hover .drag-h--tree + .ctree__ico { display: none; }
.dnd-ghost { position: fixed; left: 0; top: 0; z-index: 10000; display: flex; align-items: center; gap: 10px; max-width: 340px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); box-shadow: 0 18px 44px rgba(var(--shadow-rgb, 0,0,0), .32), 0 2px 6px rgba(var(--shadow-rgb, 0,0,0), .14); pointer-events: none; transition: border-color .15s, box-shadow .15s; will-change: transform; }
.dnd-ghost.is-ok { border-color: var(--brand); box-shadow: 0 18px 44px rgba(var(--brand-rgb), .28), 0 0 0 3px rgba(var(--brand-rgb), .18); }
.dnd-ghost__grip { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); }
.dnd-ghost__grip svg { width: 16px; height: 16px; }
.dnd-ghost__body { display: flex; flex-direction: column; min-width: 0; }
.dnd-ghost__body b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.dnd-ghost__body small { display: flex; align-items: center; gap: 2px; color: var(--muted); font-size: 12.5px; }
.dnd-ghost__body small svg { width: 13px; height: 13px; }
.dnd-ghost__body small i { font-style: normal; font-weight: 600; color: var(--brand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctree .is-dragging { opacity: .4; }
.ctree .is-dragging .ctree__link, .ctree__prod.is-dragging a { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(var(--brand-rgb), .08) 6px 12px); border-radius: 8px; }
.ctree__row.is-drop { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.ctree__row.is-drop .ctree__link { color: var(--ink); font-weight: 600; }
.ctree__row.is-drop-no { box-shadow: inset 0 0 0 1.5px var(--line-3); opacity: .7; }
.ctree .is-moving { opacity: .3; }
tr.dnd-ph td { padding: 0 !important; border: 0; }
tr.dnd-ph td span { display: block; margin: 4px 8px; border: 2px dashed rgba(var(--brand-rgb), .55); border-radius: 10px; background: rgba(var(--brand-rgb), .06); }
tr.is-just-moved > td { animation: dnd-flash 1.2s ease; }
@keyframes dnd-flash { 0% { background: rgba(var(--brand-rgb), .18); } 100% { background: transparent; } }
.ctree__tip { margin: 10px 6px 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.ctree--edit .ctree__main { gap: 0; }
.ge-ext { display: inline-grid; place-items: center; width: 26px; height: 26px; vertical-align: middle; color: var(--muted); border-radius: 6px; }
.ge-ext:hover { color: var(--brand); background: var(--surface); }
.ge-ext .ci { width: 15px; height: 15px; }
.lead-file { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 13px; }
.lead-file .ci { width: 14px; height: 14px; }
.guide__code { margin: 10px 0 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow-x: auto; font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
.guide__code code { font: inherit; }
.mob-list { display: grid; gap: 0; }
.mob-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mob-row:last-child { border-bottom: 0; }
.mob-row .seg--radio { margin-top: 0; flex: none; }
.gcols-note { display: block; max-width: 420px; margin-top: 2px; font-weight: 400; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.mob-peek .layout-pick__item { max-width: 220px; }
.mob-sch { height: 70px; }
@media (max-width: 640px) { .mob-row { flex-direction: column; align-items: flex-start; gap: 8px; } }

.fm-cols { display: grid; gap: 12px; margin-top: 14px; }
.fm-col { padding: 14px 16px; }
.fm-col__head { display: flex; align-items: flex-end; gap: 12px; }
.fm-col__head .f { flex: 1; margin: 0; }
.fm-col__head .check { margin: 0 0 10px; white-space: nowrap; }
.fm-col__head .ibtn { margin-bottom: 4px; }
.fm-links { display: grid; gap: 6px; margin-top: 12px; padding-left: 26px; }
.fm-link { display: flex; align-items: center; gap: 8px; }
.fm-link input[type="text"] { flex: 1 1 0; min-width: 0; }
.fm-link input[type="text"] + input[type="text"] { flex: 1.3 1 0; }
.fm-link__hide { margin: 0; white-space: nowrap; }
.fm-grip { flex: none; display: grid; place-items: center; width: 22px; height: 34px; color: var(--muted, #8a8f98); cursor: grab; touch-action: none; }
.fm-col__head .fm-grip { margin-bottom: 4px; }
[data-sort-item].is-sorting { opacity: .6; outline: 2px dashed currentColor; outline-offset: 2px; }
body.is-sorting-body { cursor: grabbing; user-select: none; }
@media (max-width: 720px) { .fm-link { flex-wrap: wrap; } .fm-link input[type="text"] { flex: 1 1 calc(100% - 40px); } .fm-links { padding-left: 0; } .fm-col__head { flex-wrap: wrap; } }
.rte__area .rt-hl { margin: 10px 0; padding: 14px 18px; border-radius: 10px; background: #f2bf49; color: #1d1d1b; }
.rte__area .rt-hl--accent { background: #5b6f5f; color: #fff; }
.rte__area .rt-hl--red { background: #c8372d; color: #fff; }
.rte__area .rt-hl--gray { background: #eceef1; color: #1d1f22; }
.rte__area .rt-hl p { margin: 0 0 6px; color: inherit; }
.rte__area .rt-hl p:last-child { margin-bottom: 0; }
.rte__area .rt-hl a { color: inherit; }
.rte__area .rt-hl .rt-hl__title { font-size: 20px; font-weight: 800; line-height: 1.25; }
.rte__sel--hl { max-width: 170px; }
.imgfield__clear[hidden] { display: none; }
.imgfield__clear svg { width: 16px; height: 16px; }

.ipick--mini { flex: none; }
.ipick--mini .ipick__btn { padding: 3px; gap: 0; border-radius: 10px; }
.ipick--mini .ipick__btn > span:not(.rt-ico), .ipick--mini .ipick__chev { display: none; }
.ipick--mini .rt-ico { width: 32px; height: 32px; }
.fm-col__head .ipick--mini { margin-bottom: 2px; }
.mail-look { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.mail-look__set { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mail-look__pv { min-width: 0; }
.mail-look__subj { margin: 0 0 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-weight: 600; font-size: 13.5px; }
.mail-look .mail-pv__frame { height: 640px; margin: 0; }
@media (max-width: 1100px) { .mail-look { grid-template-columns: minmax(0, 1fr); } }
.tg-emoji { display: grid; grid-template-columns: minmax(0, 320px) auto; gap: 8px 10px; align-items: end; margin-top: 14px; }
.tg-emoji small { grid-column: 1 / -1; color: var(--muted); }
@media (max-width: 720px) { .tg-emoji { grid-template-columns: minmax(0, 1fr); } }
.soc-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px 24px; align-items: start; }
.soc-prev { max-width: 440px; }
.soc-set__fields { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.soc-prev__card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.soc-prev__card img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.soc-prev__noimg { display: grid; place-items: center; aspect-ratio: 1200 / 630; color: var(--muted); font-size: 13px; background: var(--surface-2); }
.soc-prev__txt { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.soc-prev__txt small { color: var(--muted); font-size: 12px; }
.soc-prev__txt b { font-size: 14px; line-height: 1.35; }
.soc-prev__txt span { color: var(--soft); font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.og-colors { display: grid; gap: 16px; }
.og-set__fields { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 1100px) { .soc-set, .og-colors { grid-template-columns: minmax(0, 1fr); } }

:root {
  --brand: #2a62c4; --brand-h: #1f4f9f; --brand-rgb: 42,98,196;
  --ink: #14181f; --soft: #434a58; --muted: #727a8a; --line: #e0e3e9; --line-2: #d1d6de; --line-3: #b9c0cc; --bg: #f3f4f6; --card: #ffffff; --field: #ffffff; --surface: #f5f6f8; --surface-2: #eaecf0;
  --sb: #14161d; --sb-2: #1c1f27; --sb-3: #272b36; --sb-text: #b4bac8; --sb-line: #252833; --sb-muted: #6c7386;
  --btn: #14181f; --btn-h: #2b313c; --btn-ink: #ffffff;
  --ok-bg: #e6f4ec; --ok-fg: #1c7a45; --err-bg: #fbeceb; --warn-bg: #fbf3df; --warn-fg: #8a6412;
  --radius: 8px; --r-ctl: 6px; --px: 28px;
  --font: "Onest", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: none;
}
html[data-at="dark"] {
  --brand: #6ea4f5; --brand-h: #8bb6f7; --brand-rgb: 110,164,245;
  --ink: #eef0f5; --soft: #c2c7d4; --muted: #878ea0; --line: #292d39; --line-2: #343947; --line-3: #474d5e; --bg: #14161d; --card: #1b1e26; --field: #15171e; --surface: #21242d; --surface-2: #292d38;
  --sb: #0f1116; --sb-2: #191b22; --sb-3: #242731; --sb-text: #aeb4c3; --sb-line: #20232c; --sb-muted: #666d80;
  --btn: #eef0f5; --btn-h: #d6d9e3; --btn-ink: #14161d;
  --ok-bg: #15281d; --ok-fg: #6fcf97; --err-bg: #331a1a; --warn-bg: #33290f; --warn-fg: #e9c268;
  --shadow: none;
}
@media (prefers-color-scheme: dark) { html[data-at="auto"] {
  --brand: #6ea4f5; --brand-h: #8bb6f7; --brand-rgb: 110,164,245;
  --ink: #eef0f5; --soft: #c2c7d4; --muted: #878ea0; --line: #292d39; --line-2: #343947; --line-3: #474d5e; --bg: #14161d; --card: #1b1e26; --field: #15171e; --surface: #21242d; --surface-2: #292d38;
  --sb: #0f1116; --sb-2: #191b22; --sb-3: #242731; --sb-text: #aeb4c3; --sb-line: #20232c; --sb-muted: #666d80;
  --btn: #eef0f5; --btn-h: #d6d9e3; --btn-ink: #14161d;
  --ok-bg: #15281d; --ok-fg: #6fcf97; --err-bg: #331a1a; --warn-bg: #33290f; --warn-fg: #e9c268;
  --shadow: none;
} }

body { font: 14px/1.5 var(--font); }
* { scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-3); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
html { scrollbar-width: auto; }
html::-webkit-scrollbar { width: 11px; }

.app { grid-template-columns: 236px minmax(0, 1fr); }
.sb { padding: 14px 10px 10px; scrollbar-color: var(--sb-3) transparent; }
.sb__brand { gap: 10px; padding: 2px 8px 14px; }

.sb__brand b { -webkit-text-stroke: 0; }
.sb__brand small { font-size: 10px; font-weight: 600; letter-spacing: .12em; color: var(--sb-muted); }
.sb__site { margin: 0 0 8px; padding: 8px 10px; border-radius: var(--r-ctl); background: none; }
.sb__site:hover { background: var(--sb-2); }
.sb__site-dot { width: 7px; height: 7px; box-shadow: none; background: #3bb56c; }
.sb__site-txt b { font-size: 13px; font-weight: 600; }
.sb__site-txt small { font-size: 11.5px; color: var(--sb-muted); }
.sb__site .ci { color: var(--sb-muted); }
.sb__nav { gap: 1px; }
.sb__group { margin: 16px 10px 5px; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; }
.sb__group:first-child { margin-top: 6px; }
.sb__link { gap: 10px; padding: 7px 10px; border-radius: var(--r-ctl); font-size: 13.5px; }
.sb__link .ci { width: 17px; height: 17px; color: var(--sb-muted); transition: color .15s; }
.sb__link:hover .ci { color: #fff; }
.sb__link.is-active { background: var(--sb-3); color: #fff; font-weight: 600; }
.sb__link.is-active::before { content: none; }
.sb__link.is-active .ci { color: #fff; }
.sb__link.has-kids.is-open { background: none; }
.sb__chev { flex: none; width: 14px; height: 14px; color: var(--sb-muted); transition: transform .15s; }
.sb__link.is-open .sb__chev { transform: rotate(90deg); color: #fff; }
.sb__kids { display: flex; flex-direction: column; gap: 1px; margin: 1px 0 6px; }
.sb__kid { display: block; padding: 6px 10px 6px 37px; border-radius: var(--r-ctl); color: var(--sb-text); text-decoration: none; font-size: 13.5px; line-height: 1.35; transition: background-color .15s, color .15s; }
.sb__kid:hover { background: var(--sb-2); color: #fff; }
.sb__kid.is-active { background: var(--sb-3); color: #fff; font-weight: 600; }
.sb__sub { display: flex; flex-direction: column; margin: 2px 0 4px; }
.sb__sub a { display: block; padding: 4px 10px 4px 49px; border-radius: var(--r-ctl); color: var(--sb-muted); text-decoration: none; font-size: 13px; line-height: 1.35; cursor: pointer; }
.sb__sub a:hover { color: #fff; }
.sb__sub a.is-on { color: #fff; }
.sb__kids--solo .sb__sub a { padding-left: 37px; }
.sb__foot { padding: 10px 10px 2px; font-size: 11px; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 5px; font-size: 11px; font-weight: 700; background: #fff; color: #14161d; }
.badge--warn { background: #e9b949; color: #1a1a1a; }

.tb { height: 52px; gap: 12px; padding: 0 var(--px); background: var(--bg); backdrop-filter: none; }
.tb__crumbs { font-size: 13px; }
.tb__search { height: 34px; flex-basis: 340px; margin-left: 12px; border-radius: var(--r-ctl); background: var(--card); }
.tb__search kbd { border-bottom-width: 1px; border-radius: 4px; }
.tb__btn { height: 34px; padding: 0 12px; border-radius: var(--r-ctl); font-size: 13px; }
.tb__theme { padding: 2px; border-radius: var(--r-ctl); }
.tb__theme-btn { width: 28px; height: 28px; border-radius: 4px; }
.tb__theme-btn.is-on { color: var(--ink); box-shadow: none; border: 1px solid var(--line-2); }
.tb__avatar { width: 30px; height: 30px; border-radius: var(--r-ctl); background: var(--surface-2); color: var(--ink); font-size: 12.5px; }
.tb__logout { border-radius: var(--r-ctl); }
.tb__logout:hover { background: var(--surface-2); color: var(--ink); }

.ct, .ct:has(.ctree) { max-width: none; }
.ct { padding: 22px var(--px) 36px; gap: 14px; }
.ct__title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.ct__lead { margin-top: -6px; }
.cf { max-width: none; padding: 14px var(--px) 18px; font-size: 12.5px; }
.cf a { color: var(--ink); border-bottom: 1px solid var(--line-3); padding-bottom: 1px; }
.cf a:hover { text-decoration: none; border-bottom-color: var(--ink); }
.cf__brand img { width: 20px; height: 20px; }

.hint { max-width: 110ch; }
.hint a:not(.abtn), .form a:not(.abtn), .ct > p a:not(.abtn), .alert a, .table a, .card small a, .back-link, .ext-link, .card__head a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-3); padding-bottom: 1px; transition: border-color .15s; }
.hint a:not(.abtn):hover, .form a:not(.abtn):hover, .ct > p a:not(.abtn):hover, .alert a:hover, .table a:hover, .card small a:hover, .back-link:hover, .ext-link:hover, .card__head a:hover { border-bottom-color: var(--ink); }
.form a.sb__link, .form a.ctree__link, .form a.ctree__edit, .form a.ibtn, .form a.tag, .table a.ibtn, .table a.abtn, .form .ctree a, .ctree a, .form a.thumb, .table a.thumb, .form a.seg__item, .form .quick a, .form a.stat, .form a.lead-file, .table a.lead-file { border-bottom: 0; padding-bottom: 0; }
.back-link, .ext-link { border-bottom: 0; padding-bottom: 0; }
.back-link:hover, .ext-link:hover { color: var(--ink); }

.card { padding: 18px 20px; gap: 14px; box-shadow: none; }
fieldset.card > legend, .card__head h2 { font-size: 15px; font-weight: 700; }
.card__head a { font-size: 13px; }
.empty { border-style: solid; padding: 22px; }
.alert { border-radius: var(--r-ctl); padding: 10px 14px; }
.label { font-size: 12.5px; }

input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel], input[type=date], input[type=datetime-local], input[type=time], input[type=search], select, textarea { border-radius: var(--r-ctl); }
.abtn { min-height: 36px; padding: 0 16px; border-radius: var(--r-ctl); font-size: 13.5px; }
.abtn--sm { min-height: 32px; padding: 0 11px; font-size: 13px; }
.abtn--primary { background: var(--btn); color: var(--btn-ink); }
.abtn--primary:hover { background: var(--btn-h); color: var(--btn-ink); }
.abtn--ghost { border: 1px solid var(--line-2); }
.abtn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.abtn--soft { background: var(--surface-2); color: var(--ink); }
.abtn--soft:hover { background: var(--line-2); }
.ibtn { border-radius: var(--r-ctl); }
.imgfield__preview { border-radius: var(--r-ctl); }
.tag { border-radius: 4px; padding: 2px 8px; }
.check input { accent-color: var(--brand); }

.ftabs { top: 52px; gap: 4px; margin: 0 calc(var(--px) * -1) 4px; padding: 8px var(--px); }
.ftabs__btn { border-radius: var(--r-ctl); border-color: transparent; background: none; padding: 7px 13px; font-size: 13.5px; color: var(--soft); box-shadow: none; }
.ftabs__btn:hover { border-color: transparent; background: var(--surface-2); color: var(--ink); }
.ftabs__btn.is-active { background: var(--card); border-color: var(--line-2); color: var(--ink); box-shadow: none; }
.ftabs__btn.is-active:hover { color: var(--ink); }
.ftabs__btn.is-active small { color: var(--muted); }
.seg { padding: 3px; gap: 2px; border-radius: var(--r-ctl); }
.seg__item { padding: 6px 13px; border-radius: 4px; font-size: 13.5px; }
.seg--radio .seg__item:has(input:checked), .seg__item.is-active { box-shadow: none; outline: 1px solid var(--line-2); }
.form__bar { margin: 0 calc(var(--px) * -1); padding: 12px var(--px); background: var(--bg); backdrop-filter: none; }
.setl__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.setl__main .form__bar { margin: 0 calc(var(--px) * -1); border-radius: 0; }

.table-wrap { box-shadow: none; }
.table { font-size: 13.5px; }
.table th, .table td { padding: 9px 14px; }
.table th { font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 600; white-space: nowrap; }

.stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.stat { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding: 14px 16px; box-shadow: none; transition: border-color .15s; }
.stat:hover { transform: none; box-shadow: none; border-color: var(--line-3); }
.stat__ic { width: 34px; height: 34px; margin: 0; border-radius: var(--r-ctl); grid-row: span 2; }
.stat__ic--red, .stat__ic--amber, .stat__ic--blue, .stat__ic--green { background: var(--surface-2); color: var(--soft); }
.stat b { font-size: 24px; font-weight: 700; }
.stat small { flex-basis: 100%; font-size: 12.5px; }
.quick a { border-radius: var(--r-ctl); padding: 10px 12px; }
.quick a:hover { border-color: var(--line-3); }
.quick .ci { color: var(--soft); }

.pay-state--ok, .pay-state--warn, .pay-state--off { border-left: 1px solid var(--line); }
.pay-state b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #9aa1ae; vertical-align: 1px; }
.pay-state--ok b::before { background: #2fa866; }
.pay-state--warn b::before { background: #d9a520; }
.psi-opp { border-left: 1px solid var(--line); }

.ctree__side { box-shadow: none; top: 68px; max-height: calc(100vh - 84px); }
.ctree { grid-template-columns: 280px minmax(0, 1fr); gap: 18px; }
.toast { border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.mail-pv__frame { border-radius: var(--r-ctl); }

.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px 18px; align-items: start; }
.fgrid > .f { min-width: 0; }
.leads-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.leads-top .hint { margin: 0; }
.leads-more { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }

@media (max-width: 960px) {
  :root { --px: 16px; }
  .app { grid-template-columns: minmax(0, 1fr); }
}
:root { --brand-soft: #eef0f4; }
html[data-at="dark"] { --brand-soft: #252934; }
@media (prefers-color-scheme: dark) { html[data-at="auto"] { --brand-soft: #252934; } }
input:focus, textarea:focus, select:focus, .rte:focus-within, .dlg__inp:focus, .qe-table .qe-e input:focus, .qe-table .qe-e select:focus { box-shadow: none; border-color: var(--ink); }
.theme-radius__opt:has(input:checked), .dpick__item:has(input:checked), .mlib__item.is-sel { box-shadow: none; border-color: var(--ink); }
.launch { margin-bottom: 0; }

.dchart { max-width: 1100px; }
.dot--l, .dchart__b--l { background: var(--ink); fill: var(--ink); }
.dot--o, .dchart__b--o { background: var(--muted); fill: var(--muted); }
.ord-export > summary, .mail-tr > summary, .rd-bulk > summary, .rev-diff > summary, .code-help > summary, .ord-docs > summary, .ord-edit > summary, .dsum__tbl > summary { list-style: none; display: flex; align-items: center; gap: 8px; color: var(--ink); border-bottom: 0; padding-bottom: 0; }
.ord-export > summary::-webkit-details-marker, .mail-tr > summary::-webkit-details-marker, .rd-bulk > summary::-webkit-details-marker, .rev-diff > summary::-webkit-details-marker, .code-help > summary::-webkit-details-marker, .ord-docs > summary::-webkit-details-marker, .ord-edit > summary::-webkit-details-marker, .dsum__tbl > summary::-webkit-details-marker { display: none; }
.ord-export > summary::before, .mail-tr > summary::before, .rd-bulk > summary::before, .rev-diff > summary::before, .code-help > summary::before, .ord-docs > summary::before, .ord-edit > summary::before, .dsum__tbl > summary::before { content: ""; flex: none; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .15s; }
.ord-export[open] > summary::before, .mail-tr[open] > summary::before, .rd-bulk[open] > summary::before, .rev-diff[open] > summary::before, .code-help[open] > summary::before, .ord-docs[open] > summary::before, .ord-edit[open] > summary::before, .dsum__tbl[open] > summary::before { transform: rotate(90deg); }
.leads-more .ord-export { flex: 0 1 560px; padding: 12px 16px; }
.lg__brand small { color: var(--muted); letter-spacing: .12em; }

.lg__title { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.lg__inp input { height: 46px; border-width: 1px; border-radius: var(--r-ctl); font-size: 15px; }
.lg__inp input:focus { border-color: var(--ink); box-shadow: none; }
.lg__inp:focus-within > svg, .lg__eye.is-on { color: var(--ink); }
.lg__eye { border-radius: var(--r-ctl); }
.lg__eye:hover { background: var(--surface-2); color: var(--ink); }
.lg__btn { height: 46px; border-radius: var(--r-ctl); background: var(--btn); color: var(--btn-ink); }
.lg__btn:hover { background: var(--btn-h); box-shadow: none; }
.lg__btn:active { transform: none; }
.lg__msg { border-radius: var(--r-ctl); }
.lg__alt a, .lg__alt .linkbtn { color: var(--ink); border-bottom: 1px solid var(--line-3); padding-bottom: 1px; }
.lg, .lg__bg { background: var(--bg); }
.lg__bg::after, .lg__lamp, .lg__side::after { display: none; }
.lg__card { border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; box-shadow: none; }
.lg__side { border-radius: 0 10px 10px 0; background: #101218; box-shadow: none; border: 1px solid #20232c; }
.lg__kicker { color: #7d8496; letter-spacing: .12em; }
.lg__h { font-size: 26px; font-weight: 700; }
.lg__list span { border-radius: var(--r-ctl); background: #1c1f27; color: #c7cbdb; }
.lg__btn { box-shadow: none; font-size: 15px; }
@media (max-width: 860px) { .lg__card { border-right: 1px solid var(--line); border-radius: 10px; } }
.og-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 20px 24px; align-items: start; }
.og-colors { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.og-prev { margin: 0; max-width: 520px; }
.og-prev img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-ctl); }

p:has(> .back-link), p:has(> .ext-link) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; }
.back-link, .ext-link { vertical-align: middle; }

.ctree__main .ftabs { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }

.ctree__list--top .ctree__list { padding-left: 0; }
.ctree__list--top .ctree__list > li > .ctree__row { padding-left: 14px; }
.ctree__list--top .ctree__list .ctree__list > li > .ctree__row { padding-left: 28px; }
.ctree__list--top .ctree__list .ctree__list .ctree__list > li > .ctree__row { padding-left: 42px; }
.ctree__list--top .ctree__list > .ctree__prod a { padding-left: 40px; }
.ctree__list--top .ctree__list .ctree__list > .ctree__prod a { padding-left: 54px; }
.ctree__list--top .ctree__list .ctree__list .ctree__list > .ctree__prod a { padding-left: 68px; }

@font-face { font-family: "Tektur"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/tektur-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF; }
.sb__brand b { font-family: "Tektur", Onest, var(--font); font-size: 22px; font-weight: 800; letter-spacing: .01em; line-height: 1; color: #fff; text-shadow: 0 1px 0 #9aa0aa, 0 2px 0 #5d636d, 0 3px 0 #2c3138, 0 5px 8px rgba(0, 0, 0, .55); -webkit-text-stroke: .3px #fff; }
.sb__brand small { margin-top: 5px; }
.lg__brand b { font-family: "Tektur", Onest, var(--font); font-size: 24px; font-weight: 800; letter-spacing: .01em; }

.spam-toggle { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0 0; }
.spam-box { margin-top: 14px; }

.spam-box .table { margin: 10px 0 14px; }
.spam-box__txt { max-width: 520px; font-size: 13px; color: var(--soft); }

.bk-add > select[data-bk-type] { flex: 0 1 340px; width: 340px; min-width: 220px; max-width: 100%; }
.sb__brand img { width: 38px; height: 38px; }

@media (max-width: 960px) {
  .sb { width: min(300px, 86vw); height: 100%; height: 100dvh; bottom: auto; overscroll-behavior: contain; }
  .ct { padding-top: 18px; }
  .ctree { grid-template-columns: minmax(0, 1fr); }
  .ctree__side { position: static; max-height: 320px; }
  .fgrid, .og-set, .soc-set, .og-colors, .mods, .feeds, .addons, .pick__list, .launch__list, .wiz__checks, .wiz__mods { grid-template-columns: minmax(0, 1fr); }
  .grid2, .grid4 { grid-template-columns: minmax(0, 1fr); }
  .tb__crumbs { display: none; }
  .rep:has(> .rep__row.card + .rep__row.card) { display: flex; flex-direction: column; }
  
  .rep__row.card { padding-top: 12px; }
  .rep__row.card > .row-ctrl, .bf-row > .row-ctrl { position: static; align-self: flex-end; margin: 0 -4px -6px 0; }
  .rep__row.card > .f:first-of-type, .rep__row.card > .imgfield:first-of-type, .rep__row.card > .grid2:first-of-type, .bf-row > :nth-child(2), .rep:has(> .rep__row.card + .rep__row.card) > .bf-row > :nth-child(2) { margin-right: 0; }
  input[type=date], input[type=datetime-local], input[type=time], input[type=month] { width: 100%; min-width: 0; max-width: 100%; }
  .card__head { flex-wrap: wrap; }
  .card__head .abtn, .card__head > a { flex: none; white-space: nowrap; }
  .table th, .table td { padding: 8px 10px; }
  
  .table-wrap > .table:has(th:nth-child(4)) { width: max-content; min-width: 100%; }
  .table-wrap > .table:has(th:nth-child(4)) td { max-width: 260px; }
  
  .table-wrap { -webkit-overflow-scrolling: touch; background:
    linear-gradient(to right, var(--card) 40%, transparent) left / 28px 100% no-repeat local,
    linear-gradient(to left, var(--card) 40%, transparent) right / 28px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .28), transparent) left / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .28), transparent) right / 12px 100% no-repeat scroll,
    var(--card); }
  .mpick { padding: 0; }
  .mpick__box { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .mpick__head { flex-wrap: wrap; }
  .mpick__head input[type=search] { flex: 1 1 160px; width: auto; min-width: 0; }
  .mpick__grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; padding: 10px; }
}
@media (max-width: 720px) { .act__dates { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  
  .tb { gap: 8px; }
  .tb__search { position: relative; flex: 1 1 auto; width: auto; min-width: 0; margin-left: 4px; padding: 0 10px; justify-content: flex-start; }
  .tb__search:focus-within { position: relative; left: auto; right: auto; z-index: auto; }
  .tb__search input[type=search] { position: static; inset: auto; flex: 1; width: auto; min-width: 0; opacity: 1; }
  .tb__search .ci { flex: none; }
  .tb__sugg { position: fixed; top: 56px; left: 12px; right: 12px; min-width: 0; }
  .tb__actions { gap: 6px; flex: none; }
  .tb__user { padding-left: 6px; }
  .tb__btn--icon, .tb__actions > a.tb__btn { width: 34px; padding: 0; justify-content: center; }
  
  .ftabs { flex-wrap: nowrap; gap: 2px; }
  .ftabs__btn { padding: 7px 11px; }
  .seg { display: flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar, .form__bar::-webkit-scrollbar, .rte__bar::-webkit-scrollbar { display: none; }
  .seg__item { flex: none; white-space: nowrap; padding: 6px 11px; }
  
  .form__bar, .form__bar--draft, .form__bar--edit, .mlib-bulk { flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
  .form__bar > * { flex: none; white-space: nowrap; }
  .form__bar--edit .form__cancel, .mlib-bulk__del { margin-left: auto; }
  .mlib-bulk { position: static; }
  
  .rte__bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; top: 52px; }
  .rte__bar > * { flex: none; }
  .ftab .rte__bar { top: 102px; }
  
  .imgfield { gap: 10px; }
  .imgfield__preview { width: 64px; height: 64px; }
  .imgfield__row { flex-wrap: wrap; gap: 6px; }
  .imgfield__row input { flex: 1 1 calc(100% - 44px); }
  .imgfield__row .abtn--sm { padding: 0 9px; }
  .imgfield__row .imgfield__clear { order: 1; width: 38px; padding: 0; justify-content: center; }
  .imgfield__row .imgfield__up, .imgfield__row [data-media-pick] { order: 2; }
  .imgfield__row:not(:has(.imgfield__clear:not([hidden]))) input { flex-basis: 100%; }
  
  .slug-btn { gap: 0; padding: 0 10px; font-size: 0; min-height: 40px; }
  .slug-btn svg { width: 17px; height: 17px; }
  .path-field__pre { max-width: 45%; overflow: hidden; text-overflow: ellipsis; padding-left: 10px; font-size: 13px; }
  .cl-search { flex-wrap: wrap; }
  .cl-search select { flex: 1 1 100%; }
  .cl-search input { flex: 1 1 140px; min-width: 0; }
  .mlib-bar { gap: 8px 10px; }
  .mlib-bar input[type=search] { flex: 1 1 160px; width: auto; min-width: 0; }
  .svc-path__end { margin-left: 0; flex-basis: 100%; }
  .bk-add { flex-wrap: wrap; }
  .bk-add > select[data-bk-type] { flex: 1 1 100%; width: 100%; min-width: 0; }
  .stats, .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 12px; gap: 2px 10px; }
  .stat b { font-size: 20px; }
  .stat__ic { width: 30px; height: 30px; }
  .quick a { padding: 9px 10px; font-size: 13px; }
  .launch summary { flex-wrap: wrap; gap: 8px 12px; padding: 12px 14px; }
  .launch__cnt { margin: 0 0 0 auto; }
  .launch summary::after { order: 1; }
  .launch__bar { order: 2; flex: 1 1 100%; max-width: none; }
  .launch__list { padding: 4px 14px 12px; }
  
  .bk__head { display: grid; grid-template-columns: 24px minmax(0, 1fr) repeat(3, 30px); gap: 2px 4px; padding: 8px 10px; align-items: center; }
  .bk__tools { display: contents; }
  .bk__drag { grid-column: 1; grid-row: 1; }
  .bk__title { grid-column: 2 / 5; grid-row: 1; padding: 4px 0; flex-wrap: wrap; gap: 2px 8px; }
  .bk__title b { white-space: normal; line-height: 1.3; }
  .bk__title span { flex-basis: 100%; }
  .bk__chev { grid-column: 5; grid-row: 1; }
  .bk__on { grid-column: 2; grid-row: 2; justify-self: start; }
  .bk__tools > [data-bk-up] { grid-column: 3; grid-row: 2; }
  .bk__tools > [data-bk-down] { grid-column: 4; grid-row: 2; }
  .bk__tools > [data-bk-del] { grid-column: 5; grid-row: 2; }
  .bk__body { padding: 14px 12px 16px; }
}

.vh, fieldset.card > legend.vh { position: absolute !important; float: none; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
fieldset.card > .card__legend { font-size: 15px; font-weight: 700; line-height: 1.4; padding-bottom: 12px; margin-bottom: 2px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.tg-card > .card__legend { display: flex; align-items: center; gap: 8px; }
.i18n-group > .card__legend + .i18n-row, .i18n-group > .card__legend + legend + .i18n-row { border-top: 0; padding-top: 0; }

.spam-box > summary, .audit__grp > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.spam-box > summary::-webkit-details-marker, .audit__grp > summary::-webkit-details-marker { display: none; }
.spam-box > summary::before, .audit__grp > summary::before { content: ""; flex: none; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .15s; }
.spam-box[open] > summary::before, .audit__grp[open] > summary::before { transform: rotate(90deg); }

.card.launch { padding: 0; gap: 0; }
.launch summary { padding: 16px 20px; }
.launch summary::after { width: 16px; height: 16px; border: 0; background: var(--muted); transform: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.launch[open] summary::after { transform: rotate(180deg); }
.launch__list { padding: 0 20px 14px; }
.launch__wiz { padding: 0 20px 18px; }
.launch__wiz a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-3); padding-bottom: 1px; }
.launch__wiz a:hover { border-color: var(--ink); }

.pay-prov__more { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.pay-prov__more > summary.pay-more { list-style: none; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 16px; align-items: center; gap: 4px 14px; padding: 14px 18px; margin: 0; cursor: pointer; border-radius: inherit; transition: background-color .15s; }
.pay-prov__more > summary.pay-more::-webkit-details-marker { display: none; }
.pay-prov__more > summary.pay-more:hover { background: var(--surface); }
.pay-prov__more[open] > summary.pay-more { margin: 0; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.pay-more__ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); color: var(--soft); }
.pay-more__ic svg { width: 19px; height: 19px; }
.pay-more__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-more__txt b { font-size: 14.5px; }
.pay-more__txt small { line-height: 1.4; }
.pay-more__st { white-space: nowrap; }
.pay-more__chev { display: grid; color: var(--muted); transition: transform .2s; }
.pay-more__chev svg { width: 16px; height: 16px; }
.pay-prov__more[open] .pay-more__chev { transform: rotate(180deg); }
.pay-more__body { padding: 16px 18px 18px; }
.pay-more__body .pay-urls { margin-top: 14px; }

input[type=date], input[type=datetime-local], input[type=month], input[type=time] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; height: 42px; line-height: 22px; text-align: left; }
input[type=date], input[type=datetime-local], input[type=month] { position: relative; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23818899'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5m-9-6h.008v.008H12v-.008ZM12 15h.008v.008H12V15Zm0 2.25h.008v.008H12v-.008ZM9.75 15h.008v.008H9.75V15Zm0 2.25h.008v.008H9.75v-.008ZM7.5 15h.008v.008H7.5V15Zm0 2.25h.008v.008H7.5v-.008Zm6.75-4.5h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V15Zm0 2.25h.008v.008h-.008v-.008Zm2.25-4.5h.008v.008H16.5v-.008Zm0 2.25h.008v.008H16.5V15Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 19px 19px; cursor: pointer; }
input[type=date]::-webkit-calendar-picker-indicator, input[type=datetime-local]::-webkit-calendar-picker-indicator, input[type=month]::-webkit-calendar-picker-indicator { position: absolute; top: 0; right: 0; bottom: 0; width: 44px; height: auto; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
input::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 22px; line-height: 22px; }
input::-webkit-datetime-edit { padding: 0; line-height: 22px; }
@supports (-moz-appearance: none) { input[type=date], input[type=datetime-local], input[type=month] { background-image: none; padding-right: 12px; } }
.f--date input { max-width: 260px; }
.act__dates { gap: 12px 16px; }
.act__dates small { margin-top: -4px; }

.ct > .dsum, .ct > .dash--3 { margin-bottom: 0; }

.tfa-form { display: flex; flex-direction: column; gap: 14px; }
.tfa-form > .hint, .tfa-form > .label { margin: 0; }

@media (max-width: 960px) {
  
  .rep__row.line, .rep__row.line.ost-row, .rep__row.line--img:has(> input[type="text"] + input[type="text"]) { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); align-items: center; }
  .rep__row.line > *:not(.row-ctrl):not([type=hidden]) { grid-column: 1 / -1; grid-row: auto; }
  .rep__row.line > *:not([type=hidden]):first-child, .rep__row.line > [type=hidden]:first-child + *:not([type=hidden]), .rep__row.line > [type=hidden]:first-child + [type=hidden] + * { grid-column: 1; grid-row: 1; }
  .rep__row.line > .row-ctrl { grid-column: 2; grid-row: 1; align-self: center; margin: 0; }
  .rep__row.line:has(> .f:first-child) > .row-ctrl { align-self: end; margin-bottom: 4px; }
  .rep__row.line > .row-ctrl .ibtn { width: 34px; height: 34px; }
  .rep__row.line--img > .row-ctrl { align-self: start; }
  .rep__row.line input[type=text], .rep__row.line input[type=number], .rep__row.line select { background: var(--card); }
  .gal-meta { grid-template-columns: minmax(0, 1fr); }
  .f--date input { max-width: none; }
  .pay-prov__more > summary.pay-more { grid-template-columns: 36px minmax(0, 1fr) 16px; padding: 12px 14px; gap: 6px 12px; }
  .pay-more__st { grid-column: 2; grid-row: 2; justify-self: start; }
  .pay-more__chev { grid-column: 3; grid-row: 1; }
  .pay-more__body { padding: 14px; }
  .launch summary { padding: 14px 16px; }
  .launch__list { padding: 0 16px 12px; }
  .launch__wiz { padding: 0 16px 16px; }
}

@media (min-width: 1500px) {
  .fcol .bf-single > .check, .fcol .bf-row > .check, .rep:has(> .rep__row.card + .rep__row.card) > .bf-row > .check { align-self: flex-start; }
}

.dp { position: relative; display: block; width: 100%; }
.dp__inp { padding-right: 40px !important; font-variant-numeric: tabular-nums; }
.dp__ico { position: absolute; top: 0; right: 0; bottom: 0; width: 43px; display: flex; align-items: center; justify-content: flex-end; padding: 0 12px 0 0; border: 0; background: none; color: #818899; cursor: pointer; }
.dp.is-open .dp__inp { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),.12); }
.dp__inp:disabled + .dp__ico { pointer-events: none; opacity: .5; }

.dp-pop { position: absolute; z-index: 450; display: flex; padding: 10px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(var(--shadow-rgb),.18); font-size: 13px; opacity: 0; transform: translateY(-4px); transition: opacity .14s, transform .14s; user-select: none; }
.dp-pop.is-in { opacity: 1; transform: none; }
.dp-pop button { font: inherit; color: inherit; cursor: pointer; }
.dp__cal { width: 238px; display: flex; flex-direction: column; }
.dp__head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.dp__title { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 8px; border: 0; border-radius: 7px; background: none; font-weight: 700 !important; font-size: 13.5px !important; }
.dp__title svg { color: var(--muted); }
.dp__title:hover { background: var(--surface); }
.dp__nav { display: flex; gap: 2px; }
.dp__arr { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--soft) !important; }
.dp__arr:hover { background: var(--surface); color: var(--brand) !important; }
.dp__wd, .dp__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp__wd span { height: 24px; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.dp__d { height: 32px; padding: 0; border: 1px solid transparent; border-radius: 7px; background: none; font-variant-numeric: tabular-nums; transition: background-color .12s; }
.dp__d:hover { background: var(--surface); }
.dp__d.is-we, .dp__wd .is-we { color: var(--danger); }
.dp__d.is-out { color: var(--muted); opacity: .55; }
.dp__d.is-today { border-color: var(--brand); color: var(--brand); font-weight: 700; }
.dp__d.is-on, .dp__mo.is-on, .dp__t.is-on { background: var(--brand) !important; border-color: var(--brand); color: #fff !important; font-weight: 700; opacity: 1; }
.dp__d:disabled { opacity: .3; cursor: default; background: none; }
.dp__months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; min-height: 228px; align-content: center; }
.dp__mo { height: 44px; border: 1px solid transparent; border-radius: 8px; background: none; }
.dp__mo:hover { background: var(--surface); }
.dp__mo.is-today { border-color: var(--brand); color: var(--brand); font-weight: 700; }
.dp__foot { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.dp__link { padding: 0 0 1px; border: 0; border-bottom: 1px solid rgba(var(--brand-rgb),.35); background: none; color: var(--brand) !important; font-weight: 600 !important; line-height: 1.3; }
.dp__link:hover { border-bottom-color: var(--brand); }
.dp__link[data-a="clear"] { color: var(--muted) !important; border-bottom-color: var(--line-3); }
.dp__link[data-a="clear"]:hover { color: var(--danger) !important; border-bottom-color: var(--danger); }
.dp__ok { margin-left: auto; height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: var(--brand); color: #fff !important; font-weight: 600 !important; }
.dp__ok:hover { background: var(--brand-h); }
.dp__time { display: flex; gap: 4px; margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line); }
.dp__tcol { display: flex; flex-direction: column; width: 46px; }
.dp__tlab { height: 30px; display: grid; place-items: center; margin-bottom: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.dp__tlist { height: 262px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; overscroll-behavior: contain; }
.dp__tlist::-webkit-scrollbar { width: 4px; }
.dp__tlist::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
.dp__t { flex: none; height: 30px; padding: 0; border: 0; border-radius: 7px; background: none; font-variant-numeric: tabular-nums; }
.dp__t:hover { background: var(--surface); }
@media (max-width: 420px) {
  .dp-pop--dt { flex-direction: column; }
  .dp-pop--dt .dp__time { margin: 10px 0 0; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .dp-pop--dt .dp__tcol { flex: 1; flex-direction: row; align-items: center; width: auto; gap: 6px; }
  .dp-pop--dt .dp__tlab { margin: 0; width: 34px; flex: none; }
  .dp-pop--dt .dp__tlist { height: auto; flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .dp-pop--dt .dp__t { width: 36px; }
  .dp-pop--dt .dp__time { flex-direction: column; }
}

.lead-table .sm-on { width: 40px; text-align: center; vertical-align: top; }
.lead-table input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); cursor: pointer; }
.lead-table tr.is-picked td { background: var(--brand-soft); }
.spam-box .bulk { position: static; box-shadow: none; }

.rep__row.rv-row { padding-top: 14px; }
.rv-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rv-head__ttl { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.rv-head__ttl b { font-size: 14.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.rv-head__ttl b:empty { display: none; }
.rv-head__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-head > .row-ctrl { margin-left: auto; position: static; }
.rep__row.card.rv-row > .f:first-of-type { margin-right: 0; }

.uav { flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-weight: 700; }
.uav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uav--s { width: 36px; height: 36px; font-size: 14px; }
.uav--m { width: 88px; height: 88px; font-size: 30px; }
.uwho { display: flex; align-items: center; gap: 10px; min-width: 0; }
.uwho a { color: inherit; }
.ucon { display: inline-flex; align-items: center; flex-wrap: nowrap; gap: 6px; white-space: nowrap; }
.ucon__tel { margin-right: 2px; color: var(--ink); font-weight: 600; white-space: nowrap; text-decoration: none; padding-bottom: 1px; border-bottom: 1px solid var(--line-3); }
.ucon__tel:hover { color: var(--brand); border-bottom-color: var(--brand); }
.ucon__msg { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; text-decoration: none; transition: transform .15s, background-color .15s; }
.ucon__msg .ui-ico, .ucon__msg svg { width: 16px; height: 16px; display: block; }
.ucon__msg:hover { transform: translateY(-1px); }
.ucon__msg--telegram { color: #229ED9; background: rgba(34,158,217,.13); }
.ucon__msg--whatsapp { color: #25D366; background: rgba(37,211,102,.13); }
.ucon__msg--viber { color: #7360F2; background: rgba(115,96,242,.14); }
.ucon__msg--telegram:hover { background: rgba(34,158,217,.24); }
.ucon__msg--whatsapp:hover { background: rgba(37,211,102,.24); }
.ucon__msg--viber:hover { background: rgba(115,96,242,.26); }
.uprof { display: grid; grid-template-columns: auto 1fr; gap: 18px 22px; align-items: start; }
.uprof__photo { display: flex; align-items: center; gap: 14px; }
.uprof__pbtns { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.uprof__pbtns small { color: var(--muted); font-size: 12px; }
.uprof__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.uprof__msg { display: flex; flex-wrap: wrap; gap: 6px 16px; min-height: 42px; align-items: center; }
.check--sm span { font-size: 13px; }
.form__bar--inline { position: static; margin: 14px 0 0; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
.tb__avatar--img { overflow: hidden; padding: 0; background: none; }
.tb__avatar--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.users-tbl td { vertical-align: middle; }
@media (max-width: 1100px) { .uprof { grid-template-columns: 1fr; } .uprof__body { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .uprof__body { grid-template-columns: 1fr; } .uav--m { width: 72px; height: 72px; } }
@media (max-width: 640px) {
  .users-tbl thead { display: none; }
  .users-tbl, .users-tbl tbody, .users-tbl tr, .users-tbl td { display: block; width: auto; }
  .users-tbl tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .users-tbl tr:last-child { border-bottom: 0; }
  .users-tbl td { padding: 3px 0 3px 46px; border: 0; white-space: normal; }
  .users-tbl td:first-child { padding-left: 0; }
  .users-tbl td:nth-child(4):not(.muted)::before, .users-tbl td:nth-child(4).muted::before { content: 'Последний вход: '; }
  .users-tbl td:last-child { padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
}
