:root {
  --bg: #faf7f5;
  --surface: #ffffff;
  --ink: #2a2023;
  --muted: #76696d;
  --line: #eadfe0;
  --accent: #b5174e;
  --accent-soft: #fbe8ef;
  --good: #1c7c54;
  --warn: #a86a00;
  --bad: #c0362c;
  --warm-bg: #fff4dc;
  --good-bg: #e2f4ea;
  --bad-bg: #fde8e5;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 system-ui, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: inherit; }
.layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { font-size: 18px; font-weight: 700; color: var(--accent); text-decoration: none; display: block; padding: 0 10px 14px; }
.side h4 { margin: 16px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.side a.item { display: block; padding: 6px 10px; border-radius: 7px; text-decoration: none; }
.side a.item:hover { background: var(--bg); }
.side a.item.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.main { padding: 22px 26px 60px; min-width: 0; }
.top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 16px; margin: 26px 0 10px; }
.hint { color: var(--muted); margin: 4px 0 14px; max-width: 760px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
select, input, textarea, button { font: inherit; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); }
input[type=number] { width: 104px; }
button, .btn { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; padding: 6px 12px; border-radius: 7px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.tabs a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; background: var(--surface); }
.tabs a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface); }
tr:last-child td { border-bottom: 0; }
td.wrap { white-space: normal; min-width: 220px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
.client { font-weight: 600; text-decoration: none; }
.client:hover { color: var(--accent); text-decoration: underline; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.dot.new { background: var(--bad); }
.dot.warm { background: #e0a100; }
.dot.loyal { background: var(--good); }
.good { color: var(--good); }
.bad { color: var(--bad); }
.muted { color: var(--muted); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 99px; background: var(--bg); }
.pill.overdue { background: var(--bad-bg); color: var(--bad); }
.pill.soon { background: var(--warm-bg); color: var(--warn); }
.pill.recent { background: var(--good-bg); color: var(--good); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tile { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.tile:hover { border-color: var(--accent); }
.tile b { display: block; font-size: 24px; }
.tile span { color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.kpi b { display: block; font-size: 24px; }
.kpi span { color: var(--muted); font-size: 13px; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart text { font-size: 11px; fill: var(--muted); }
.chart .val { fill: var(--ink); font-weight: 600; }
.legend { color: var(--muted); font-size: 12px; margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; margin: 0 4px 0 10px; border-radius: 2px; }
.form-row { display: grid; gap: 4px; margin-bottom: 10px; }
.form-row label { font-size: 12px; color: var(--muted); }
.form-row select, .form-row textarea, .form-row input { width: 100%; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.facts span { display: block; font-size: 12px; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; max-width: 800px; }
.pager { margin-top: 12px; display: flex; gap: 8px; }
.act { display: inline-block; padding: 3px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-size: 13px; text-decoration: none; white-space: nowrap; }
a.act:hover { border-color: var(--accent); color: var(--accent); }
.act.main { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
a.act.main:hover { color: #fff; opacity: .9; }
.act.off { color: var(--muted); background: var(--bg); cursor: not-allowed; }
.row-actions { display: flex; gap: 4px; }
tr.done td { background: var(--good-bg); }
.card-dialog { width: min(920px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); }
.card-dialog::backdrop { background: rgba(42, 32, 35, .45); }
.card-body { padding: 18px 20px; overflow-y: auto; max-height: calc(100vh - 34px); }
.card-close { position: absolute; top: 8px; right: 10px; z-index: 1; width: 32px; height: 32px; padding: 0; background: var(--surface); border-color: var(--line); color: var(--ink); font-size: 20px; line-height: 1; font-weight: 400; }
.panel section { margin-top: 16px; }
.panel h3 { font-size: 14px; margin: 0 0 6px; }
.panel-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding-right: 34px; }
.panel-who { display: flex; flex-direction: column; gap: 1px; }
.panel-reason { font-size: 12px; font-weight: 600; color: var(--accent); }
.panel-name { font-size: 19px; }
.panel-phone { font-size: 15px; font-variant-numeric: tabular-nums; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.panel-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; padding: 9px 12px; border-radius: 8px; background: var(--bg); font-size: 13px; color: var(--muted); }
.panel-facts b { color: var(--ink); font-weight: 600; }
.panel-note { margin: 8px 0 0; font-size: 13px; }
.client-tip { position: fixed; z-index: 5; width: 720px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow: hidden; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 8px 28px rgba(42, 32, 35, .22); font-size: 12px; pointer-events: none; }
.client-tip[hidden] { display: none; }
.tip-name { display: block; font-size: 15px; color: var(--accent); text-align: center; }
.client-tip h4 { margin: 10px 0 4px; font-size: 12px; font-weight: 600; }
.client-tip table { border: 1px solid var(--line); }
.client-tip th, .client-tip td { padding: 3px 7px; }
.client-tip td.wrap { min-width: 120px; }
.client-tip p { margin: 4px 0 0; }
.tip-more { color: var(--muted); }
.tip-flag { padding: 3px 8px; border-radius: 6px; text-align: center; }
.tip-flag.lost { background: var(--bad-bg); }
.tip-flag.back { background: var(--good-bg); }
.panel-flag { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.panel-flag.lost { background: var(--bad-bg); }
.panel-flag.back { background: var(--good-bg); }
tr.gone td { opacity: .45; }
.panel-table { max-height: 190px; overflow-y: auto; }
.panel-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 12px; margin-top: 16px; padding: 12px 14px 14px; border-radius: 8px; background: var(--accent-soft); }
.panel-form .wide { grid-column: 1 / -1; }
.panel-form p { margin: 0 0 8px; }
.status { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: var(--muted); }
.status.arrived { background: var(--good); }
.status.no_show { background: var(--bad); }
.status.cancelled { background: var(--bad); opacity: .5; }
.status.planned { background: #e0a100; }
.panel-page { max-width: 960px; }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login { width: 100%; max-width: 340px; }
.login .brand { padding: 0 0 14px; }
.narrow { max-width: 420px; }
button.quiet { background: var(--surface); border-color: var(--line); color: var(--ink); font-weight: 400; }
button.link-item { display: block; width: 100%; text-align: left; background: none; border: 0; color: inherit; font-weight: 400; padding: 6px 10px; border-radius: 7px; }
button.link-item:hover { background: var(--bg); }
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: sticky; z-index: 2; height: auto; display: flex; align-items: center; gap: 2px; overflow-x: auto; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side h4 { display: none; }
  .brand { padding: 0 8px 0 0; font-size: 15px; white-space: nowrap; }
  .side a.item, .side form { white-space: nowrap; flex: none; }
  .main { padding: 16px; }
  .split { grid-template-columns: 1fr; }
}

/* Карточка клиента: данные */
.panel-flag.note { background: var(--warm-bg); }
.panel-edit { margin-top: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.panel-edit summary { cursor: pointer; font-weight: 600; }
.panel-edit form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 12px; margin-top: 10px; }
.panel-edit .wide { grid-column: 1 / -1; }
.panel-edit p { margin: 0 0 8px; }

/* Журнал записи */
.main.j-main { padding: 0; height: 100vh; overflow: hidden; background: #f3f3f4; }
.j-page { --j-yellow: #ffcb00; --j-ink: #2b3134; --j-line: #e7eaec; --j-muted: #8a8f93; display: flex; flex-direction: column; height: 100%; padding: 10px 12px 12px; color: var(--j-ink); }
.j-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.j-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--j-line); border-radius: 8px; background: #fff; color: var(--j-ink); text-decoration: none; font-size: 13px; white-space: nowrap; }
a.j-btn:hover { background: #f7f7f7; }
.j-btn-group { display: inline-flex; }
.j-btn-group .j-btn:first-child { border-radius: 8px 0 0 8px; border-right: 0; }
.j-btn-group .j-btn:last-child { border-radius: 0 8px 8px 0; }
.j-title { font-size: 15px; margin: 0 10px; white-space: nowrap; }
.j-select { height: 32px; max-width: 220px; border-radius: 8px; border-color: var(--j-line); font-size: 13px; }
.j-spacer { flex: 1 1 auto; }
.j-total { font-weight: 600; }
.j-banner { margin-bottom: 8px; padding: 7px 12px; border-radius: 8px; background: #fff9df; font-size: 13px; }
.j-board { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; background: #fff; border: 1px solid var(--j-line); border-radius: 12px; }
.j-empty { padding: 40px; text-align: center; color: var(--j-muted); }
.j-heads { position: sticky; top: 0; z-index: 3; display: flex; min-width: min-content; background: #fff; border-bottom: 1px solid var(--j-line); }
.j-axis-cap { flex: 0 0 52px; position: sticky; left: 0; background: #fff; z-index: 1; }
.j-axis-cap:last-child { right: 0; left: auto; }
.j-head { flex: 1 0 118px; width: 118px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 8px 8px 8px 6px; background: none; border: 0; border-radius: 0; color: var(--j-ink); font-weight: 400; text-align: left; font-size: 12px; line-height: 1.25; }
.j-head:hover { background: #fafafa; }
.j-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #efe7ea; color: #6a5a60; font-weight: 600; font-size: 13px; }
.j-head-text { display: block; min-width: 0; width: 100%; }
.j-head-text b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; }
.j-head-text small { display: block; color: var(--j-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.j-body { position: relative; display: flex; min-width: min-content; }
.j-axis { position: sticky; left: 0; z-index: 2; flex: 0 0 52px; background: #fff; }
.j-axis.right { left: auto; right: 0; }
.j-axis span { position: absolute; right: 6px; transform: translateY(-1px); color: var(--j-ink); font-size: 16px; line-height: 1; }
.j-axis span sup { font-size: 10px; color: var(--j-muted); margin-left: 1px; }
.j-axis span b { font-weight: 500; }
.j-axis span.half { font-size: 11px; color: var(--j-muted); }
.j-col { position: relative; flex: 1 0 118px; width: 118px; border-left: 1px solid var(--j-line); background-image: repeating-linear-gradient(to bottom, #eef0f1 0, #eef0f1 1px, transparent 1px, transparent 30px); cursor: pointer; }
.j-off { position: absolute; left: 0; right: 0; background-color: #eceef0; background-image: repeating-linear-gradient(to bottom, #e2e4e6 0, #e2e4e6 1px, transparent 1px, transparent 30px); cursor: default; }
.j-off span { display: block; padding: 2px 5px; font-size: 10px; color: var(--j-muted); }
.j-ghost { position: absolute; left: 1px; right: 1px; z-index: 1; height: 15px; padding: 0 5px; background: #1ab394; color: #fff; font-size: 10px; line-height: 15px; border-radius: 3px; pointer-events: none; white-space: nowrap; overflow: hidden; }
.j-block { --head: #1ab394; --fill: #93e0cf; position: absolute; z-index: 1; overflow: hidden; border-radius: 4px; background: var(--fill); color: #262626; cursor: pointer; font-size: 11px; line-height: 1.22; touch-action: none; user-select: none; box-shadow: 0 0 0 1px #fff; }
.j-block.online { --head: #907b9f; --fill: #cdb4dc; }
.j-block.confirmed { --head: #1ab394; --fill: #d8e45f; }
.j-block.arrived { --fill: #ffa873; }
.j-block.noshow { --head: #c0564d; --fill: #f2b5ae; }
.j-block.dragging { z-index: 4; opacity: .85; box-shadow: 0 6px 16px rgba(0, 0, 0, .28); cursor: grabbing; }
.j-block:focus-visible { outline: 2px solid var(--j-ink); }
.j-block-head { display: flex; justify-content: space-between; gap: 4px; padding: 0 4px; background: var(--head); color: #fff; font-size: 10px; font-weight: 600; line-height: 15px; white-space: nowrap; }
.j-block-head i { font-style: normal; opacity: .8; font-size: 7px; }
.j-block-body { padding: 2px 4px; }
.j-block-body b, .j-block-body em, .j-block-body span { display: block; overflow-wrap: anywhere; }
.j-block-body em { font-style: normal; color: #4d4d4d; }
.j-block-body span { font-weight: 500; }
.j-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; cursor: ns-resize; }
.j-now { position: absolute; left: 52px; right: 52px; z-index: 2; height: 0; border-top: 2px solid #e4483c; pointer-events: none; }
.j-toast { position: fixed; left: 50%; bottom: 20px; z-index: 6; transform: translateX(-50%); max-width: 560px; padding: 10px 16px; border-radius: 8px; background: var(--j-ink); color: #fff; font-size: 13px; }
.j-toast[hidden] { display: none; }

/* Мини-календарь в боковой панели */
.j-cal { padding: 0 6px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.j-cal-head { display: flex; align-items: center; gap: 2px; margin-bottom: 6px; font-size: 13px; }
.j-cal-head span { flex: 1; font-weight: 500; }
.j-cal-head a { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; text-decoration: none; font-size: 16px; }
.j-cal-head a:hover { background: var(--bg); }
.j-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; text-align: center; font-size: 12px; }
.j-cal-wd { color: var(--muted); font-size: 10px; padding-bottom: 3px; }
.j-cal-day { display: block; padding: 3px 0; border-radius: 6px; text-decoration: none; }
.j-cal-day:hover { background: var(--bg); }
.j-cal-day.other { color: #b8afb2; }
.j-cal-day.today { font-weight: 700; text-decoration: underline; }
.j-cal-day.sel { background: #ffcb00; color: #2b3134; font-weight: 600; }

/* Окно записи */
.j-dialog { --j-yellow: #ffcb00; --j-ink: #2b3134; --j-line: #e7eaec; --j-muted: #8a8f93; width: min(1180px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 14px; background: #f3f3f4; color: var(--j-ink); overflow: visible; }
.j-dialog-body:focus { outline: none; }
.j-dialog::backdrop, .j-shift::backdrop { background: rgba(30, 30, 30, .55); }
.j-dialog-close { position: absolute; top: -2px; right: -34px; width: 32px; height: 32px; padding: 0; background: none; border: 0; color: #fff; font-size: 26px; font-weight: 400; }
@media (max-width: 1260px) { .j-dialog-close { top: 6px; right: 8px; color: var(--j-ink); z-index: 2; } }
.j-card { display: grid; grid-template-columns: 240px minmax(0, 1fr) 330px; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; height: min(800px, calc(100vh - 24px)); padding: 10px; font-size: 13px; }
.j-card label, .j-label { display: block; font-size: 12px; color: #676a6c; }
.j-card input, .j-card select, .j-card textarea { width: 100%; margin-top: 3px; border-color: var(--j-line); border-radius: 7px; font-size: 13px; color: var(--j-ink); }
.j-card-left, .j-card-right, .j-card-center { min-height: 0; overflow-y: auto; background: #fff; border-radius: 10px; padding: 12px; }
.j-card-left { background: none; padding: 2px; }
.j-group { display: grid; gap: 8px; padding: 10px; border-radius: 10px; background: #fff; }
.j-two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: -5px; }
.j-group select[name=duration] { margin-top: -3px; }
.j-comment { margin-top: 8px; padding: 10px; border-radius: 10px; background: #fff; }
.j-meta { display: grid; gap: 6px; margin-top: 8px; padding: 10px; border-radius: 10px; background: #fff; }
.j-meta small, .j-facts-grid small { display: block; color: var(--j-muted); font-size: 11px; }
.j-states { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.j-card label.j-state { display: inline-block; cursor: pointer; }
.j-state input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.j-state span { display: inline-block; padding: 5px 12px; border: 1px solid var(--j-line); border-radius: 8px; background: #fff; color: var(--j-ink); font-size: 13px; }
.j-state input:checked + span { background: #1e1e1e; border-color: #1e1e1e; color: #fff; font-weight: 500; }
.j-state input:focus-visible + span { outline: 2px solid var(--j-yellow); }
.j-lines:not(:empty) { margin-bottom: 10px; padding: 2px 12px; border: 1px solid var(--j-line); border-radius: 10px; }
.j-line { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--j-line); }
.j-line:last-child { border-bottom: 0; }
.j-line-name { flex: 1 1 auto; min-width: 0; }
.j-line-name small { display: block; color: var(--j-muted); font-size: 11px; }
.j-card label.j-line-price { display: flex; align-items: center; gap: 4px; color: var(--j-ink); font-size: 13px; white-space: nowrap; }
.j-line-price input { width: 74px; margin: 0; text-align: right; }
.j-line-remove { width: 26px; height: 26px; padding: 0; background: none; border: 0; color: var(--j-muted); font-size: 18px; font-weight: 400; }
.j-services { padding: 10px; border-radius: 10px; background: #f3f3f4; }
.j-popular-title { margin: 10px 2px 8px; font-size: 12px; font-weight: 500; }
.j-popular { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.j-svc-tile { display: block; width: 100%; padding: 10px; border: 1px solid var(--j-line); border-radius: 9px; background: #fff; color: var(--j-ink); text-align: left; font-weight: 400; font-size: 13px; min-height: 76px; }
.j-svc-tile:hover, .j-svc-row:hover { border-color: var(--j-yellow); }
.j-svc-tile b { display: block; font-weight: 500; }
.j-svc-tile small, .j-svc-row small { display: block; margin-top: 4px; color: var(--j-muted); font-size: 11px; }
.j-all { margin-top: 10px; }
.j-all summary { padding: 4px 2px; cursor: pointer; font-weight: 500; }
.j-all-group[hidden], .j-svc-row[hidden], [data-popular][hidden] { display: none; }
.j-all h5 { margin: 10px 2px 4px; font-size: 12px; font-weight: 600; color: #676a6c; }
.j-svc-row { display: flex; justify-content: space-between; gap: 10px; width: 100%; margin-bottom: 4px; padding: 7px 10px; border: 1px solid var(--j-line); border-radius: 7px; background: #fff; color: var(--j-ink); text-align: left; font-weight: 400; font-size: 13px; }
.j-svc-row b { font-weight: 400; }
.j-svc-row small { margin: 0; white-space: nowrap; }
.j-total-row { display: flex; justify-content: space-between; margin-top: 12px; padding: 0 4px; font-size: 15px; }
.j-card-right h4 { margin: 18px 0 8px; font-size: 15px; font-weight: 600; }
.j-card-right [data-client-pick] label { margin-bottom: 10px; }
[data-client-pane][hidden], [data-client-pick][hidden] { display: none; }
.j-link { padding: 0; background: none; border: 0; color: var(--j-ink); font-weight: 400; font-size: 12px; margin-bottom: 12px; }
.j-link:hover { text-decoration: underline; }
.j-client-name { font-size: 15px; font-weight: 500; }
.j-client-phone { display: block; margin-bottom: 12px; color: #676a6c; font-variant-numeric: tabular-nums; text-decoration: none; }
.j-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.j-tile { display: grid; place-items: center; min-height: 62px; padding: 6px; border: 1px solid var(--j-line); border-radius: 8px; font-size: 11px; line-height: 1.2; text-align: center; text-decoration: none; }
.j-tile:hover { border-color: var(--j-yellow); }
.j-facts { margin: 0; }
.j-facts dt { color: var(--j-muted); font-size: 11px; }
.j-facts dd { margin: 0 0 8px; overflow-wrap: anywhere; }
.j-facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.j-found-row { display: block; width: 100%; padding: 6px 8px; margin-bottom: 4px; background: none; border: 1px solid var(--j-line); border-radius: 7px; color: var(--j-ink); font-weight: 400; text-align: left; }
.j-found-row:hover { border-color: var(--j-yellow); }
.j-found-row b { display: block; font-weight: 500; }
.j-found-row small { color: var(--j-muted); }
.j-card-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.j-card-foot p { margin: 0; flex: 1 1 auto; font-weight: 500; }
.j-card-foot .j-spacer { flex: 0 1 auto; }
.j-card-foot p[hidden] + .j-spacer { flex: 1 1 auto; }
.j-yellow { padding: 8px 16px; border: 0; border-radius: 8px; background: #ffcb00; color: #2b3134; font-weight: 500; }
.j-yellow:hover { background: #f3c100; }
.j-yellow:disabled { opacity: .6; }
.j-quiet { padding: 8px 14px; border: 1px solid #e7eaec; border-radius: 8px; background: #fff; color: #2b3134; font-weight: 400; }
.j-shift { width: min(380px, calc(100vw - 24px)); padding: 16px; border: 0; border-radius: 12px; color: #2b3134; }
.j-shift h3 { margin: 0; font-size: 15px; }
.j-shift p { margin: 2px 0 10px; }
.j-shift-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; font-size: 12px; }
.j-shift-row input { width: 100%; margin-top: 3px; }
.j-shift-actions { display: flex; gap: 6px; }
@media (max-width: 980px) {
  .j-card { grid-template-columns: 1fr; grid-template-rows: none; height: auto; max-height: calc(100vh - 24px); overflow-y: auto; }
  .j-card-left, .j-card-right, .j-card-center { overflow: visible; }
  .j-dialog { overflow: auto; }
}
@media (max-width: 800px) {
  .main.j-main { height: calc(100vh - 52px); }
  .j-cal { display: none; }
}
/* Оплата в карточке записи */
.j-block.paid { --fill: #ffa873; }
.j-block.unpaid { --fill: #ffa873; }
.j-block.unpaid .j-block-head { background: #c0564d; }
.j-due { font-style: normal; font-size: 10px !important; opacity: 1 !important; }
.j-pay { margin-top: 12px; padding: 12px; border: 1px solid var(--j-line); border-radius: 10px; }
.j-pay-due { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: #676a6c; }
.j-pay-due b { font-size: 22px; color: var(--j-ink); }
.j-pay-hint { margin: 2px 0 8px; font-size: 11px; color: var(--j-muted); }
.j-pay-amount { max-width: 180px; margin-bottom: 8px; }
.j-pay-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.j-pay-way { display: grid; gap: 6px; padding: 10px; border: 1px solid #ffcb00; border-radius: 9px; background: #fffdf3; }
.j-pay-way select { margin: 0; }
.j-paid { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; }
.j-paid span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e2f4ea; color: #1c7c54; }
.j-payments { margin: 10px 0 0; padding: 0; list-style: none; font-size: 12px; }
.j-payments li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--j-line); }
.j-payments li span { flex: 1; color: #676a6c; }
.j-payments .j-link { margin: 0; color: #c0362c; }

/* Финансы */
.main.f-main { background: #f3f3f4; }
.f-main { --j-yellow: #ffcb00; --j-ink: #2b3134; --j-line: #e7eaec; --j-muted: #8a8f93; color: #2b3134; }
.f-main .j-yellow, .f-main .j-quiet { display: inline-block; text-decoration: none; cursor: pointer; font-size: 13px; }
.f-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; margin: -22px -26px 16px; padding: 14px 26px 16px; background: #fff; border-bottom: 1px solid var(--j-line); }
.f-head h1 { font-size: 24px; }
.f-crumb { font-size: 12px; color: var(--j-muted); }
.f-error { padding: 9px 12px; border-radius: 8px; background: var(--bad-bg); color: var(--bad); font-weight: 500; }
.f-forms { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-bottom: 12px; }
.f-form > summary { list-style: none; }
.f-form > summary::-webkit-details-marker { display: none; }
.f-form[open] > summary { margin-bottom: 8px; }
.f-form form, .f-edit form { padding: 12px; background: #fff; border: 1px solid var(--j-line); border-radius: 10px; }
.f-add { position: relative; }
.f-add[open] form { position: absolute; right: 0; z-index: 4; width: min(560px, calc(100vw - 32px)); box-shadow: 0 8px 28px rgba(0, 0, 0, .15); }
.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 12px; margin-bottom: 10px; }
.f-grid label, .f-filters label { display: grid; gap: 3px; font-size: 12px; color: #676a6c; }
.f-grid input, .f-grid select, .f-filters input, .f-filters select { width: 100%; border-color: var(--j-line); color: var(--j-ink); }
.f-wide { grid-column: 1 / -1; }
.f-check { display: flex !important; align-items: center; gap: 6px; }
.f-check input { width: auto !important; }
.f-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 12px; align-items: end; margin-bottom: 12px; padding: 12px; background: #fff; border: 1px solid var(--j-line); border-radius: 10px; }
.f-filters .j-btn-group { align-self: end; }
.f-day-title { align-self: center; font-size: 15px; }
.f-found { margin: 0 0 8px; color: #676a6c; }
.f-table th { background: #fafafa; }
.f-table td.num, .f-table th.num { white-space: nowrap; }
.f-cancelled td { opacity: .5; text-decoration: line-through; }
.f-cancelled td:last-child { text-decoration: none; }
.f-cancel { padding: 3px 8px; background: none; border: 1px solid var(--j-line); color: #676a6c; font-weight: 400; font-size: 12px; }
.f-cancel:hover { border-color: var(--bad); color: var(--bad); }
.f-due td { background: var(--bad-bg); }
.f-card { margin-bottom: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--j-line); border-radius: 12px; }
.f-card.off { opacity: .6; }
.f-card-title { display: flex; align-items: baseline; gap: 10px; }
.f-card-title h2 { margin: 0 0 10px; font-size: 20px; font-weight: 500; }
.f-card-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; gap: 18px; }
.f-days a { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--j-line); color: #2a6fb0; text-decoration: none; font-size: 13px; }
.f-days a b { margin-left: auto; color: var(--j-ink); font-weight: 500; }
.f-day-tag { padding: 1px 5px; border-radius: 4px; background: #1ab394; color: #fff; font-size: 10px; font-weight: 600; }
.f-chart svg { display: block; width: 100%; height: auto; }
.f-chart rect { fill: #1ab394; }
.f-chart .f-hit { fill: transparent; }
.f-bar:hover rect:not(.f-hit) { fill: #128a72; }
.f-axis { stroke: var(--j-line); stroke-width: 1; }
.f-chart text { font-size: 10px; fill: var(--j-muted); }
.f-chart-cap { margin: 2px 0 10px; font-size: 11px; color: var(--j-muted); }
.f-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.f-kpis b { display: block; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.f-kpis span { font-size: 12px; color: var(--j-muted); }
.f-kpis-top { margin-bottom: 8px; padding: 14px 16px; background: #fff; border: 1px solid var(--j-line); border-radius: 10px; }
.f-top h3 { margin: 0 0 6px; font-size: 13px; }
.f-top h3 + p, .f-top p + h3 { margin-top: 0; }
.f-top p { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 4px; font-size: 12px; }
.f-top p + h3 { margin-top: 14px; }
.f-edit { margin-top: 12px; }
.f-edit summary { cursor: pointer; font-size: 12px; color: #676a6c; }
.f-edit form { margin-top: 8px; }
.f-row-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.f-row-form input[name=name] { flex: 1 1 260px; }
.f-kind { min-width: 200px; color: #676a6c; }
.f-wide-table { max-height: calc(100vh - 260px); overflow: auto; }
.f-report th, .f-report td { padding: 5px 8px; font-size: 12px; }
.f-report thead th { position: sticky; top: 0; z-index: 1; }
.f-report thead tr + tr th { top: 27px; }
.f-group { text-align: center; border-left: 1px solid var(--j-line); }
.f-sticky { position: sticky; left: 0; z-index: 1; background: #fff; min-width: 220px; white-space: normal; }
thead .f-sticky { z-index: 2; background: #fafafa; }
.f-sum { border-right: 1px solid var(--j-line); }
.f-section td { background: #f7f8f9; font-weight: 600; }
.f-sub td { font-weight: 500; }
.f-indent { padding-left: 22px !important; }
.f-indent2 { padding-left: 38px !important; color: #555; }
.f-margin td { font-weight: 400 !important; color: #676a6c; }
@media (max-width: 1100px) { .f-card-grid { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .f-head { margin: -16px -16px 12px; padding: 12px 16px; } }

/* Связанные записи: один визит к нескольким мастерам */
.j-visit { margin-top: 12px; padding: 12px 14px; border: 1px solid #e3e5e8; border-radius: 8px; background: #fff; }
.j-visit-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; font-size: 13px; }
.j-visit-head .j-link, .j-visit-unlink { margin: 0; color: #1a73c8; }
.j-visit-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.j-visit-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; text-align: left;
  border: 1px solid #e3e5e8; border-radius: 6px; background: #f7f8fa; color: var(--j-ink); font: inherit; font-size: 13px; cursor: pointer; }
.j-visit-row:hover { border-color: #c9ccd1; background: #f0f2f5; }
.j-visit-row small { display: block; color: #676a6c; font-size: 11px; }
.j-visit-row b { white-space: nowrap; }
.j-visit-ok { font-style: normal; color: #1f8a4c; }
.j-visit-sum { display: flex; justify-content: space-between; margin: 10px 0 6px; font-size: 13px; }
.j-visit-unlink { font-size: 12px; }
.j-visit-empty { margin: 8px 0 0; font-size: 12px; }
.j-link-note { margin: 0 0 10px; padding: 8px 10px; border-radius: 6px; background: #eef5fc; color: #1d4f80; font-size: 12px; }
.j-chain { font-style: normal; }

/* График работы */
.sch-month { min-width: 130px; text-align: center; }
.sch-scroll { max-height: calc(100vh - 230px); overflow: auto; }
.sch { border-collapse: separate; border-spacing: 0; width: max-content; }
.sch th, .sch td { padding: 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.sch thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); }
.sch .sch-name { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 190px; max-width: 220px; padding: 6px 10px; white-space: normal; font-weight: 600; color: var(--ink); font-size: 13px; }
.sch thead .sch-name { z-index: 3; color: var(--muted); }
.sch-link { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.sch-total { padding: 6px 8px !important; font-size: 12px; color: var(--muted); min-width: 64px; }
.sch-total span { display: block; }
.sch-day { width: 52px; text-align: center !important; padding: 4px 0 !important; font-weight: 400 !important; }
.sch-day b { display: block; font-size: 14px; color: var(--ink); }
.sch-day small { display: block; }
.sch-day.we small, .sch-day.we b { color: var(--bad); }
.sch-day.today b { background: #ffd34d; border-radius: 6px; margin: 0 8px; }
.sch-count { display: block; font-size: 11px; color: var(--muted); }
.sch-cell { width: 52px; height: 58px; }
.sch-btn { all: unset; box-sizing: border-box; position: relative; display: flex; flex-direction: column; justify-content: flex-start; width: 100%; height: 58px; padding: 4px 5px; font-size: 11px; line-height: 1.25; cursor: pointer; color: var(--ink); }
.sch-btn:hover { background: var(--bg); }
.sch-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sch-btn.k-work { background: #e3f5e4; color: #1f6b33; }
.sch-btn.k-sick, .sch-btn.k-absent { background: var(--bad-bg); color: var(--bad); }
.sch-btn.k-vacation, .sch-btn.k-paid_off, .sch-btn.k-unpaid { background: var(--warm-bg); color: var(--warn); }
.sch-btn[aria-pressed=true] { box-shadow: inset 0 0 0 2px var(--accent); background-image: linear-gradient(rgba(181, 23, 78, .1), rgba(181, 23, 78, .1)); }
.sch-short { font-weight: 700; font-size: 13px; }
.sch-appts { position: absolute; left: 5px; bottom: 3px; font-weight: 700; }
.sch-pause { position: absolute; right: 4px; bottom: 3px; font-style: normal; }
.sch-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: #e3f5e4; vertical-align: -2px; }
.sch-bar { position: sticky; bottom: 12px; display: flex; gap: 10px; align-items: center; width: max-content; margin: 12px 0 0; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.sch-dialog { border: 1px solid var(--line); border-radius: 12px; padding: 20px; width: min(420px, calc(100vw - 32px)); }
.sch-dialog h3 { margin: 0 0 12px; }
.sch-dialog form > label, .sch-dialog fieldset, .sch-dialog [data-sch-work] { display: block; margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.sch-dialog label > select, .sch-dialog label > input[type=number] { display: block; width: 100%; margin-top: 4px; }
.sch-dialog fieldset { border: 0; padding: 0; }
.sch-weekdays label { display: inline-flex; gap: 3px; margin-right: 8px; color: var(--ink); font-size: 13px; }
.sch-row { display: flex; gap: 8px; align-items: center; margin: 4px 0 8px; }
.sch-row label { flex: 1; font-size: 12px; color: var(--muted); }
.sch-row input[type=number] { width: 100%; }
.sch-label { display: block; font-size: 12px; color: var(--muted); }
.sch-row .sch-label { min-width: 56px; }
.sch-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Услуги мастера и онлайн-запись */
.inline-form { margin: 0 0 14px; }
.ms-group { margin: 0 0 10px; }
.ms-group summary { cursor: pointer; padding: 8px 0; }
.ms-group input[type=number] { width: 110px; }
.j-not-offered { display: none !important; }
.j-pause { background: repeating-linear-gradient(45deg, #f3eef0, #f3eef0 6px, #ebe3e6 6px, #ebe3e6 12px); }
.online-form { max-width: 720px; }
.online-form h2 { margin-top: 0; }
.online-closed { display: block; font-size: 12px; color: var(--muted); }
.online-closed textarea { display: block; width: 260px; margin-top: 4px; }
.slots .pill { margin: 0 4px 6px 0; }
.sch-dialog [hidden], .sch-bar[hidden] { display: none !important; }
.j-shift-pick { display: block; margin: 0 0 10px; font-size: 12px; color: #6b7378; }
.j-shift-pick select { display: block; width: 100%; margin-top: 4px; }
.j-shift-pick[hidden], .j-shift [data-shift-off][hidden] { display: none; }
.j-btn[disabled] { opacity: .5; cursor: default; }


/* Разделы в боковом меню */
.brand span { display: block; margin-top: 1px; font-size: 11px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.side .nav-head { display: block; margin: 2px 0; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.side .nav-head:hover { background: var(--bg); }
.side .nav-head.on { background: var(--accent-soft); color: var(--accent); }
.side .nav-user { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); }
.side .nav-user h4 { margin: 0 10px 6px; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
.side .nav-user .item { padding: 6px 10px; }
.side .nav-admin { margin: 0 10px 8px; }
.side .nav-admin label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.side .nav-admin select { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 12px; color: var(--ink); }
.side .nav-admin small { display: block; margin-top: 4px; font-size: 11px; line-height: 1.3; color: var(--muted); }

/* Вкладки раздела: страницы внутри раздела */
.section-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 16px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.section-tabs a { padding: 6px 12px; border-radius: 7px; text-decoration: none; color: var(--muted); font-size: 13px; }
.section-tabs a:hover { background: var(--bg); color: var(--ink); }
.section-tabs a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.section-tabs + .f-head { margin-top: 0; }

/* Лёгкая глубина: карточки и плитки */
.card, .scroll, .tile, .kpi, .f-card { box-shadow: 0 1px 2px rgba(42, 32, 35, .05); }
.tile, .kpi, .card { transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease; }
.tile:hover { box-shadow: 0 6px 18px rgba(42, 32, 35, .10); transform: translateY(-1px); }
.tile b { color: var(--accent); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

@media (max-width: 800px) {
  .side .nav-head { margin: 0; padding: 6px 10px; white-space: nowrap; font-size: 13px; }
  .side .nav-user { margin: 0; padding: 0; border: 0; display: flex; align-items: center; }
  .side .nav-user h4 { display: none; }
  .section-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .section-tabs a { white-space: nowrap; }
}
.bar-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 13px; }
.bar-name { flex: 0 0 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { flex: 1; background: #f4e6ea; border-radius: 4px; height: 12px; }
.bar i { display: block; height: 12px; background: var(--accent); border-radius: 4px; }

/* Цветовые схемы: выбираются в Настройки → Оформление. */
body.theme-yc {
  --bg: #f5f5f5; --surface: #ffffff; --ink: #1f1f1f; --muted: #6b6b6b; --line: #e2e2e2;
  --accent: #f2c200; --accent-soft: #fff6d0; --good: #1c7c54; --warn: #a86a00; --bad: #c0362c;
  --warm-bg: #fff4dc; --good-bg: #e2f4ea; --bad-bg: #fde8e5;
}
body.theme-yc button, body.theme-yc .btn { color: #1f1f1f; }
body.theme-yc .brand { color: #1f1f1f; }
body.theme-neutral {
  --bg: #f4f6f9; --surface: #ffffff; --ink: #1e2733; --muted: #64707d; --line: #dde3ea;
  --accent: #2a6fb5; --accent-soft: #e6f0fb;
}
body.theme-dark {
  --bg: #17141a; --surface: #211d24; --ink: #f2edf0; --muted: #a89fa6; --line: #3a333c;
  --accent: #e0568b; --accent-soft: #3a2430; --good: #4cc38a; --warn: #e0b054; --bad: #e2685e;
  --warm-bg: #3a2f1e; --good-bg: #1e3a2c; --bad-bg: #3a2320;
}
body.theme-dark .side { background: var(--surface); }
body.theme-dark .j-block { background: #2a2430; }

/* Компактная таблица статистики мастеров. */
table.compact { font-size: 13px; }
table.compact th, table.compact td { padding: 7px 10px; vertical-align: top; }
table.compact small.muted { display: block; margin-top: 2px; font-size: 11px; line-height: 1.35; color: var(--muted); }
.load { display: inline-block; width: 56px; height: 6px; margin-left: 8px; background: var(--accent-soft); border-radius: 3px; vertical-align: middle; overflow: hidden; }
.load i { display: block; height: 6px; background: var(--accent); }

/* Аналитика мастеров — оформление как в DABRO. */
.masters-head { margin-bottom: 14px; }
.masters-head .eyebrow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.masters-head h1 { margin: 2px 0 2px; font-size: 26px; }
.masters-sub { margin: 0; color: var(--muted); font-size: 13px; }
.masters-filter { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.filter-field { display: flex; flex-direction: column; gap: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.filter-field select, .filter-field input { text-transform: none; letter-spacing: 0; font-size: 13px; }
.filter-field .dates { display: flex; gap: 6px; }
.period-pills { display: flex; gap: 6px; }
.period-pills a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: 13px; }
.period-pills a.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.masters-filter .spacer { flex: 1; }
.masters-apply { height: 34px; }
.masters-kpis { margin-bottom: 16px; }
.masters-title { font-size: 16px; margin: 18px 0 2px; }
.masters-note { color: var(--muted); font-size: 12px; margin: 2px 0 10px; }
.table-wrap { overflow: auto; max-height: 72vh; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.masters-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.masters-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.masters-table thead th a { text-decoration: none; color: inherit; }
.masters-table tbody td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.masters-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.masters-table tbody tr:hover td { background: var(--accent-soft); }
.masters-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.masters-table td.strong { font-weight: 700; }
.master-cell b { font-size: 13px; }
.master-cell small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; max-width: 320px; }
.load-cell { white-space: nowrap; }
.load-num { font-weight: 600; }
.bar.bar-bad i { background: var(--bad); }
