/* ═══════════════════════════════════════════
   Team Tasks — стиль в духе task-manager
   Монохром + один акцент (синий). Приоритет — только цвет кольца чекбокса,
   просрочка — только красный ярлык срока. Никаких бейджей и цветных строк.
   ═══════════════════════════════════════════ */

:root{
  /* акцент интерфейса — системный синий Apple */
  --accent:      #0071E3;
  --accent-tint: rgba(0,113,227,.10);

  /* поверхности */
  --bg:         #F5F5F7;
  --surface:    #FFFFFF;
  --surface-2:  #F7F7F9;
  --line:       rgba(0,0,0,.10);
  --line-soft:  rgba(0,0,0,.05);

  /* сайдбар */
  --side-bg:    rgba(243,243,246,.85);
  --side-fg:    #1D1D1F;
  --side-dim:   rgba(60,60,67,.62);
  --side-hover: rgba(0,0,0,.05);

  /* текст */
  --text:       #1D1D1F;
  --text-2:     #6E6E73;
  --text-3:     #98989D;

  /* статусы */
  --green:      #1F8A3D;
  --green-bg:   #E8F6EC;
  --blue:       #0071E3;
  --blue-bg:    #E9F2FD;
  --red:        #E0352B;
  --red-bg:     #FCEDEB;
  --amber-bg:   #FBF3E4;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 14px;
  --shadow:    0 1px 1px rgba(0,0,0,.03), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.16), 0 2px 10px rgba(0,0,0,.07);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --serif: "New York", Georgia, serif;
}

/* Тёмная палитра: системная (если не выбрана светлая) или явный выбор */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:        #161618;
    --surface:   #1F1F22;
    --surface-2: #29292C;
    --line:      rgba(255,255,255,.13);
    --line-soft: rgba(255,255,255,.07);
    --side-bg:   rgba(30,30,32,.85);
    --side-fg:   #F5F5F7;
    --side-dim:  rgba(235,235,245,.55);
    --side-hover:rgba(255,255,255,.07);
    --text:      #F5F5F7;
    --text-2:    #A1A1A6;
    --text-3:    #7A7A80;
    --accent:      #0A84FF;
    --accent-tint: rgba(10,132,255,.16);
    --blue:      #409CFF;
    --green:     #30D158;
    --red:       #FF6961;
    --green-bg:  rgba(48,209,88,.16);
    --blue-bg:   rgba(10,132,255,.18);
    --red-bg:    rgba(255,105,97,.16);
    --amber-bg:  rgba(217,119,6,.18);
    --shadow:    0 1px 2px rgba(0,0,0,.45);
    --shadow-lg: 0 14px 44px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"]{
  --bg:        #161618;
  --surface:   #1F1F22;
  --surface-2: #29292C;
  --line:      rgba(255,255,255,.13);
  --line-soft: rgba(255,255,255,.07);
  --side-bg:   rgba(30,30,32,.85);
  --side-fg:   #F5F5F7;
  --side-dim:  rgba(235,235,245,.55);
  --side-hover:rgba(255,255,255,.07);
  --text:      #F5F5F7;
  --text-2:    #A1A1A6;
  --text-3:    #7A7A80;
  --accent:      #0A84FF;
  --accent-tint: rgba(10,132,255,.16);
  --blue:      #409CFF;
  --green:     #30D158;
  --red:       #FF6961;
  --green-bg:  rgba(48,209,88,.16);
  --blue-bg:   rgba(10,132,255,.18);
  --red-bg:    rgba(255,105,97,.16);
  --amber-bg:  rgba(217,119,6,.18);
  --shadow:    0 1px 2px rgba(0,0,0,.45);
  --shadow-lg: 0 14px 44px rgba(0,0,0,.6);
}

/* ─── Дополнения Team Tasks (§6.10) ─── */
:root{
  --p-high: var(--red);  --p-medium: #E8960C;  --p-low: var(--blue);  --p-none: var(--text-3);
  --side-w: 216px;  --detail-w: 380px;  --row-h: 40px;  --row-h-touch: 48px;  --topbar-h: 52px;
  --avatar-palette: #0071E3 #1F8A3D #E8960C #B4479B #C0392B #2C7A7B #6D4C41 #5C6BC0;   /* hash(userId) % 8 */
  --list-palette: #0071e3 #34c759 #ff9500 #ff3b30 #af52de #5ac8fa #ffcc00 #8e8e93 #a2845e #ff2d55;
  --amber: #E8960C;
  --t: .14s ease;
  color-scheme: light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){ --p-medium: #FFB340; --amber: #FFB340; color-scheme: dark; }
}
:root[data-theme="dark"]{ --p-medium: #FFB340; --amber: #FFB340; color-scheme: dark; }

/* ─────────── База ─────────── */
*{box-sizing:border-box; margin:0; padding:0}
[hidden]{display:none !important}
html,body{height:100%}
body{
  font-family:var(--sans);
  background:var(--bg);
  color:var(--text);
  font-size:13px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow:hidden;
}
button,input,select,textarea{font:inherit; color:inherit}
button{cursor:pointer}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
svg{width:16px; height:16px; fill:currentColor; flex:none}
input::placeholder, textarea::placeholder{color:var(--text-3)}
:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
input:focus-visible, textarea:focus-visible, select:focus-visible{outline:0}
.mono{font-family:var(--mono)}
.muted{color:var(--text-2)}
.row{display:flex; align-items:center; gap:8px}
.spacer{flex:1}
.danger{color:var(--red)}

/* ─────────── Каркас: сайдбар | main | панель задачи ─────────── */
.app{display:flex; height:100vh; height:100dvh; overflow:hidden; position:relative}

.sidebar{
  width:var(--side-w); flex:none;
  background:var(--side-bg); color:var(--side-fg);
  backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  border-right:1px solid var(--line-soft);
  display:flex; flex-direction:column;
  padding:18px 12px 14px;
  overflow-y:auto; overflow-x:hidden;
  scrollbar-width:thin;
}
.brand{display:flex; align-items:center; gap:10px; padding:2px 8px 18px}
.brand-mark{width:30px; height:30px; flex:none; fill:var(--accent)}
.brand-mark .tick{stroke:#fff; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round}
.brand-text{display:flex; flex-direction:column; gap:2px; min-width:0}
.brand-name{font-size:13.5px; font-weight:700; letter-spacing:-.01em; white-space:nowrap}
.brand-sub{font-size:9.5px; color:var(--side-dim); letter-spacing:.14em; text-transform:uppercase; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
/* Переключатель компаний (администратор): весь бренд — кнопка меню */
.brand.is-switchable{cursor:pointer; border-radius:var(--r-sm); margin:0 -2px 12px; padding:6px 6px 6px 10px; transition:background var(--t)}
.brand.is-switchable:hover{background:var(--side-hover)}
.brand .brand-text{flex:1}
.brand-switch{
  width:26px; height:26px; flex:none; margin-left:auto; border:0; border-radius:var(--r-sm); background:transparent;
  color:var(--side-dim); display:grid; place-items:center; cursor:pointer; padding:0; transition:color var(--t), background var(--t);
}
.brand-switch[hidden]{display:none}
.brand-switch svg{width:18px; height:18px; fill:currentColor}
.brand.is-switchable:hover .brand-switch, .brand-switch:hover, .brand-switch:focus-visible{color:var(--side-fg)}

.nav{display:flex; flex-direction:column; gap:2px}
.nav-item{
  display:flex; align-items:center; gap:10px; width:100%;
  padding:7px 10px; border:0; border-radius:8px; min-height:32px;
  background:transparent; color:var(--side-fg);
  cursor:pointer; text-align:left; font-size:13px;
  transition:background var(--t), color var(--t);
}
.nav-item > span:not(.n-count):not(.nav-hash){flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.nav-item svg{width:15px; height:15px; color:var(--accent)}
.nav-item:hover{background:var(--side-hover)}
.nav-item.is-active{background:var(--accent); color:#fff; font-weight:500}
.nav-item.is-active svg{color:#fff}
.n-count{flex:none; font-size:11.5px; color:var(--side-dim); font-variant-numeric:tabular-nums; font-weight:500}
.n-count.danger{color:var(--red)}
.nav-item.is-active .n-count, .nav-item.is-active .n-count.danger{color:rgba(255,255,255,.85)}
.nav-dot{width:9px; height:9px; border-radius:3px; background:var(--dot, var(--accent)); flex:none; margin:0 3px}
.nav-item.is-active .nav-dot{box-shadow:0 0 0 1.5px rgba(255,255,255,.7)}
.nav-hash{color:var(--side-dim); font-weight:600; width:15px; text-align:center; flex:none}
.nav-item.is-active .nav-hash{color:rgba(255,255,255,.85)}

.nav-group{
  display:flex; align-items:center; gap:6px; margin:14px 4px 4px 10px;
  font-size:10.5px; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:var(--side-dim);
}
.nav-group .spacer{flex:1}
.nav-group-add{
  width:20px; height:20px; border:0; border-radius:6px; background:transparent; color:var(--side-dim);
  display:grid; place-items:center; cursor:pointer;
}
.nav-group-add:hover{background:var(--side-hover); color:var(--side-fg)}
.nav-group-add svg{width:13px; height:13px}
.nav-tags summary{
  list-style:none; cursor:pointer; user-select:none; display:flex; align-items:center; gap:6px;
  margin:14px 4px 4px 10px; font-size:10.5px; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:var(--side-dim);
}
.nav-tags summary::-webkit-details-marker{display:none}
.nav-tags summary::after{content:'▸'; font-size:10px; margin-left:2px; opacity:.8}
.nav-tags[open] summary::after{content:'▾'}
.nav-sub{padding-left:22px}
.nav-sub .nav-item{min-height:28px; padding:5px 10px; font-size:12.5px}
.nav-empty{font-size:11.5px; color:var(--side-dim); padding:4px 10px; opacity:.85}

.sidebar-foot{margin-top:auto; display:flex; flex-direction:column; gap:2px; padding-top:14px}
.ghost-btn{
  border:0; background:transparent; color:var(--side-dim);
  padding:6px 10px; border-radius:8px; cursor:pointer; font-size:12px; text-align:left;
  transition:background var(--t), color var(--t); display:flex; align-items:center; gap:8px;
}
.ghost-btn:hover{background:var(--side-hover); color:var(--side-fg)}
.ghost-btn.is-active{color:var(--side-fg); font-weight:500}
.me-chip{
  display:flex; align-items:center; gap:9px; width:100%;
  border:0; background:transparent; color:var(--side-fg); border-radius:8px; padding:6px 10px; cursor:pointer; text-align:left;
  transition:background var(--t);
}
.me-chip:hover, .me-chip.is-active{background:var(--side-hover)}
.me-chip .avatar{width:26px; height:26px; font-size:10.5px}
.me-name{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12.5px; font-weight:500}
.me-role{font-size:10.5px; color:var(--side-dim); display:block; font-weight:400; line-height:1.2}

.main{flex:1; display:flex; flex-direction:column; overflow:hidden; min-width:0}

.topbar{
  display:flex; align-items:center; gap:12px; flex:none;
  min-height:var(--topbar-h); padding:8px 22px 8px 26px;
  border-bottom:1px solid var(--line-soft);
}
.topbar-left{flex:1; min-width:0; display:flex; flex-direction:column; justify-content:center}
.page-title{font-size:20px; font-weight:700; letter-spacing:-.022em; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:flex; align-items:center; gap:8px}
.page-title .list-dot{width:10px; height:10px}
.page-sub{font-size:12px; color:var(--text-2); margin-top:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.page-sub:empty{display:none}
.topbar-actions{display:flex; align-items:center; gap:4px; flex:none}
#btnMenu{display:none}

.content{flex:1; overflow-y:auto; padding:18px 26px 60px}
.content > *{max-width:880px}
.content > .wide, .content > .pg-wide{max-width:none}

/* Затемнение (drawer / slide-over) */
.dim{position:fixed; inset:0; background:rgba(0,0,0,.28); z-index:60; animation:fade .18s ease}
@keyframes fade{from{opacity:0}}

/* ─────────── Кнопки ─────────── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  height:32px; padding:0 14px; border-radius:999px;
  border:1px solid var(--line); background:var(--surface); color:var(--text);
  cursor:pointer; font-size:12.5px; font-weight:500; white-space:nowrap;
  transition:background var(--t), border-color var(--t), transform .1s, opacity var(--t);
}
.btn:hover{background:var(--surface-2)}
.btn:active{transform:scale(.97)}
.btn:disabled{opacity:.5; cursor:default; transform:none}
.btn svg{width:14px; height:14px}
.btn.primary{background:var(--accent); border-color:var(--accent); color:#fff}
.btn.primary:hover{filter:brightness(1.08); background:var(--accent)}
.btn.danger-ghost{border-color:transparent; background:transparent; color:var(--red)}
.btn.danger-ghost:hover{background:var(--red-bg)}
.btn.danger{background:var(--red); border-color:var(--red); color:#fff}
.btn.sm{height:27px; padding:0 10px; font-size:12px}
.btn.wide{width:100%}
.icon-btn{
  width:30px; height:30px; display:grid; place-items:center; flex:none;
  border:0; background:transparent; border-radius:8px; cursor:pointer; color:var(--text-2);
  transition:background var(--t), color var(--t);
}
.icon-btn:hover{background:var(--line-soft); color:var(--text)}
.icon-btn svg{width:17px; height:17px}
.icon-btn.sm{width:24px; height:24px}
.icon-btn.sm svg{width:13px; height:13px}
.link-btn{border:0; background:transparent; color:var(--accent); cursor:pointer; padding:0; font-size:inherit}
.link-btn:hover{text-decoration:underline}

/* ─────────── Карточки, секции, поля ─────────── */
.card{
  background:var(--surface); border:0;
  border-radius:var(--r); box-shadow:var(--shadow); padding:18px 20px;
}
.card + .card{margin-top:14px}
.card-title{font-size:13px; font-weight:600; margin-bottom:12px; letter-spacing:-.01em; display:flex; align-items:center; gap:8px}

.section-title{
  font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.07em;
  color:var(--text-3); margin:22px 0 8px;
  display:flex; align-items:baseline; gap:8px;
}
.section-title:first-child{margin-top:0}
.section-title .count{color:var(--text-3); font-weight:500; letter-spacing:0}
.section-title.danger{color:var(--red)}
.section-title.danger .count{color:var(--red)}

details.quiet{margin-top:18px}
details.quiet summary{
  list-style:none; cursor:pointer; font-size:11.5px; color:var(--text-3);
  padding:6px 2px; user-select:none; display:inline-flex; align-items:center; gap:4px;
}
details.quiet summary::-webkit-details-marker{display:none}
details.quiet summary::before{content:'▸'; width:10px; font-size:10px}
details.quiet[open] summary::before{content:'▾'}
details.quiet summary:hover{color:var(--text-2)}
details.quiet > .tasks{margin-top:6px}

.field{display:flex; flex-direction:column; gap:5px; min-width:0}
.field > span, .field > label{font-size:11.5px; color:var(--text-2); font-weight:500}
.field input, .field select, .field textarea, .input{
  border:1px solid var(--line); background:var(--surface-2); border-radius:var(--r-sm);
  padding:7px 10px; font-size:12.5px; outline:0; width:100%; min-height:32px;
  transition:border-color var(--t), box-shadow var(--t);
}
.field textarea{resize:vertical; min-height:66px; font-family:inherit}
.field input:focus, .field select:focus, .field textarea:focus, .input:focus{
  border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-tint); background:var(--surface);
}
.field input.is-invalid{border-color:var(--red)}
.field .hint, .hint{font-size:11px; color:var(--text-3)}
.field input[type="color"]{padding:2px 4px; height:32px; cursor:pointer}
.field input[type="checkbox"], .field input[type="radio"]{width:auto; min-height:0; accent-color:var(--accent)}
.form-error{font-size:12px; color:var(--red); background:var(--red-bg); border-radius:var(--r-sm); padding:7px 10px}

/* Переключатель */
.switch{position:relative; display:inline-flex; align-items:center; gap:8px; cursor:pointer; user-select:none; font-size:12.5px}
.switch input{position:absolute; opacity:0; width:0; height:0}
.switch i{
  width:34px; height:20px; border-radius:999px; background:var(--line); position:relative; flex:none;
  transition:background var(--t);
}
.switch i::after{
  content:''; position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.25); transition:transform var(--t);
}
.switch input:checked + i{background:var(--accent)}
.switch input:checked + i::after{transform:translateX(14px)}
.switch input:focus-visible + i{outline:2px solid var(--accent); outline-offset:2px}
.switch input:disabled + i{opacity:.5}

/* Сегментированный переключатель */
.segmented{display:inline-flex; background:var(--line-soft); border-radius:9px; padding:2px; gap:1px; max-width:100%; overflow-x:auto}
.seg{
  border:0; background:transparent; color:var(--text-2); border-radius:7px; padding:4px 11px; font-size:12px; font-weight:500;
  cursor:pointer; white-space:nowrap; transition:background var(--t), color var(--t), box-shadow var(--t); display:inline-flex; align-items:center; gap:6px;
}
.seg:hover{color:var(--text)}
.seg.is-active{background:var(--surface); color:var(--text); box-shadow:0 1px 2px rgba(0,0,0,.12)}
.seg:disabled{opacity:.5; cursor:default}

/* Чип (цвет через --chip) */
.chip{
  display:inline-flex; align-items:center; gap:4px;
  font-size:10.5px; font-weight:600; padding:1px 7px; border-radius:5px; line-height:1.6;
  color:var(--chip, var(--text-2)); background:color-mix(in srgb, var(--chip, #888) 12%, transparent);
  white-space:nowrap;
}

/* Сводная строка показателей */
.statbar{display:grid; grid-template-columns:repeat(auto-fit, minmax(130px, 1fr)); overflow:hidden; padding:0}
.stat{padding:13px 18px; border-left:1px solid var(--line-soft); min-width:0}
.stat:first-child{border-left:0}
.stat-label{font-size:11px; color:var(--text-2); text-transform:uppercase; letter-spacing:.05em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.stat-value{font-size:22px; font-weight:700; letter-spacing:-.02em; margin-top:4px; line-height:1.1; font-variant-numeric:tabular-nums; white-space:nowrap}
.stat-hint{font-size:11px; color:var(--text-3); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

/* Компактная таблица */
.table{width:100%; border-collapse:collapse; font-size:13px}
.table th{
  text-align:left; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.05em; color:var(--text-2);
  padding:8px 10px; border-bottom:1px solid var(--line-soft); white-space:nowrap;
}
.table td{padding:8px 10px; border-bottom:1px solid var(--line-soft); vertical-align:middle}
.table tbody tr:last-child td{border-bottom:0}
.table tbody tr:hover td{background:var(--side-hover)}
.table .num{text-align:right; font-variant-numeric:tabular-nums}
.table-wrap{overflow-x:auto}

/* Баннеры */
.banner{padding:10px 14px; border-radius:var(--r-sm); font-size:12.5px; display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.banner.success{background:var(--green-bg); color:var(--green)}
.banner.warn{background:var(--amber-bg); color:var(--amber)}
.banner.danger{background:var(--red-bg); color:var(--red)}
.banner .btn{height:26px; padding:0 10px; font-size:11.5px}

/* Пустые состояния */
.empty{text-align:center; padding:34px 20px; color:var(--text-3)}
.empty-title{font-size:13px; font-weight:600; color:var(--text-2)}
.empty-hint{font-size:12px; margin-top:4px}
.empty.mini{padding:12px 14px; font-size:12px}
.empty.mini .empty-title{font-size:12px; font-weight:500; color:var(--text-3)}

/* ─────────── Аватар ─────────── */
.avatar{
  display:inline-grid; place-items:center; flex:none; border-radius:50%;
  width:22px; height:22px; font-size:9.5px; font-weight:700; letter-spacing:.02em;
  background:var(--av, var(--text-3)); color:#fff; line-height:1; user-select:none;
}
.avatar.inactive{opacity:.45}

/* ─────────── Задачи ─────────── */
.tasks{
  display:flex; flex-direction:column;
  background:var(--surface); border-radius:var(--r); box-shadow:var(--shadow); overflow:hidden;
}
.tasks:empty{display:none}
.task{
  display:flex; align-items:center; gap:11px; padding:0 14px 0 12px; min-height:var(--row-h);
  border-top:1px solid var(--line-soft); cursor:default; position:relative;
  transition:background var(--t), opacity .15s;
}
.task:first-child{border-top:0}
.task:hover{background:var(--surface-2)}
.task:focus-visible{outline:0; box-shadow:inset 0 0 0 2px var(--accent)}
.task.is-selected, .task.is-selected:hover{background:var(--accent-tint)}
.task.done{opacity:.55}
.task.done .task-title{text-decoration:line-through; color:var(--text-2)}
.task.pending{opacity:.55; pointer-events:none}
.task.fade-out{opacity:0; transition:opacity .15s}

.check{
  width:18px; height:18px; border-radius:50%; border:2px solid var(--p-none);
  flex:none; cursor:pointer; display:grid; place-items:center; background:transparent; position:relative;
  transition:background var(--t), border-color var(--t); padding:0;
}
.check::before{content:''; position:absolute; inset:-9px}       /* зона нажатия ≥ 36px */
.check svg{width:11px; height:11px; color:var(--text-3); opacity:0; transition:opacity var(--t)}
.check:hover svg{opacity:.55}
.check.p-high{border-color:var(--p-high)}
.check.p-medium{border-color:var(--p-medium)}
.check.p-low{border-color:var(--p-low)}
.check.p-none{border-color:var(--p-none)}
.check.on{background:var(--accent); border-color:var(--accent)}
.check.on svg{opacity:1; color:#fff}
.check:disabled{cursor:default; opacity:.6}
.check.lg{width:22px; height:22px}
.check.lg svg{width:13px; height:13px}

.task-body{flex:1; min-width:0; display:flex; align-items:center; gap:10px; cursor:pointer; padding:8px 0; align-self:stretch}
.task-title{flex:1; min-width:0; font-size:13px; font-weight:500; line-height:1.35; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.task-meta{flex:none; display:flex; align-items:center; gap:8px; font-size:11.5px; color:var(--text-3); white-space:nowrap; max-width:60%}
.task-meta > *{flex:none}
.m-subs, .m-comments{font-variant-numeric:tabular-nums}
.m-list{display:inline-flex; align-items:center; gap:5px; color:var(--text-2); max-width:120px; overflow:hidden; text-overflow:ellipsis}
.list-dot{width:8px; height:8px; border-radius:50%; background:var(--dot, var(--accent)); flex:none; display:inline-block}
.tag-chip{
  display:inline-flex; align-items:center; font-size:10.5px; font-weight:500; padding:0 6px; border-radius:5px; line-height:18px;
  background:var(--line-soft); color:var(--text-2); max-width:110px; overflow:hidden; text-overflow:ellipsis;
}
.m-more{font-size:10.5px; color:var(--text-3)}
.m-due{font-variant-numeric:tabular-nums; color:var(--text-2)}
.m-due.due-today{color:var(--accent); font-weight:500}
.m-due.overdue{color:var(--red); font-weight:500}
.m-done{color:var(--text-3)}

/* ─────────── Быстрое добавление ─────────── */
.quick-add{
  display:flex; align-items:flex-start; gap:9px; margin:0 0 16px; position:relative;
  border:1px dashed var(--line); border-radius:var(--r-sm); padding:5px 10px 5px 12px;
  background:transparent; transition:border-color var(--t), background var(--t);
}
.quick-add:focus-within{border-color:var(--accent); border-style:solid; background:var(--surface)}
.quick-add > svg{width:14px; height:14px; color:var(--text-3); margin-top:9px}
.qa-main{flex:1; min-width:0; display:flex; flex-direction:column}
.qa-input{width:100%; border:0; outline:0; background:transparent; font-size:13px; padding:5px 0; min-height:30px}
.qa-chips{display:flex; flex-wrap:wrap; gap:5px; padding:0 0 6px}
.qa-chip{
  display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:500; padding:1px 8px; border-radius:999px; line-height:1.7;
  background:var(--accent-tint); color:var(--accent); white-space:nowrap; max-width:220px; overflow:hidden; text-overflow:ellipsis;
}
.qa-chip.muted{background:var(--line-soft); color:var(--text-2)}
.qa-chip.unresolved{background:var(--line-soft); color:var(--text-3)}
.qa-chip.p-high{color:var(--p-high); background:color-mix(in srgb, var(--p-high) 12%, transparent)}
.qa-chip.p-medium{color:var(--p-medium); background:color-mix(in srgb, var(--p-medium) 14%, transparent)}
.qa-chip.p-low{color:var(--p-low); background:color-mix(in srgb, var(--p-low) 12%, transparent)}
.qa-chip .list-dot{width:7px; height:7px}
.tg-body .quick-add{margin:6px 0 0; border-color:transparent; padding-left:14px}
.tg-body .quick-add:hover{border-color:var(--line)}
.tg-body .quick-add:focus-within{border-color:var(--accent)}

/* Автодополнение (@ # ~) */
.ac{
  position:absolute; left:28px; top:calc(100% + 4px); z-index:30; min-width:240px; max-width:360px;
  background:var(--surface); border-radius:var(--r-sm); box-shadow:var(--shadow-lg); padding:4px; border:1px solid var(--line-soft);
}
.ac-row{
  display:flex; align-items:center; gap:9px; padding:6px 9px; border-radius:6px; cursor:pointer; font-size:12.5px;
}
.ac-row.is-active, .ac-row:hover{background:var(--accent-tint)}
.ac-name{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.ac-sub{color:var(--text-3); font-size:11px; font-variant-numeric:tabular-nums}
.ac-hash{color:var(--text-3); width:16px; text-align:center; font-weight:600}

/* ─────────── Команда ─────────── */
.team-group{margin-bottom:14px}
.tg-head{
  display:flex; align-items:center; gap:10px; padding:8px 4px; cursor:pointer; user-select:none; border-radius:var(--r-sm);
}
.tg-head:hover{background:var(--side-hover)}
.tg-head .avatar{width:26px; height:26px; font-size:10.5px}
.tg-name{font-size:13.5px; font-weight:600; letter-spacing:-.01em}
.tg-sub{font-size:11.5px; color:var(--text-3); font-variant-numeric:tabular-nums; flex:1}
.tg-sub .danger{color:var(--red); font-weight:500}
.tg-caret{color:var(--text-3); font-size:11px; transition:transform var(--t)}
.team-group.collapsed .tg-caret{transform:rotate(-90deg)}
.team-group.collapsed .tg-body{display:none}
.tg-body .empty{padding:10px 14px; text-align:left}

/* ─────────── Панель задачи ─────────── */
.detail{
  width:var(--detail-w); flex:none; display:none; flex-direction:column;
  background:var(--surface); border-left:1px solid var(--line-soft); position:relative; min-width:0;
}
.app.has-detail .detail{display:flex}
.d-progress{position:absolute; left:0; top:0; height:1px; width:0; background:var(--accent); z-index:2; opacity:0; transition:width .4s ease, opacity .3s}
.d-progress.on{width:85%; opacity:1}
.d-head{display:flex; align-items:flex-start; gap:8px; padding:12px 12px 4px 16px; flex:none}
.d-head .check{margin-top:9px}
.d-head .big-title{flex:1}
.d-back{display:none}
.big-title{
  width:100%; border:0; outline:0; background:transparent;
  font-size:16px; font-weight:600; letter-spacing:-.01em; padding:6px 2px 4px;
  resize:none; overflow:hidden; line-height:1.4; font-family:inherit; min-height:34px;
}
.big-title::placeholder{color:var(--text-3); font-weight:500}
.big-title:disabled{color:var(--text); opacity:1; -webkit-text-fill-color:var(--text)}
.d-body{flex:1; overflow-y:auto; padding:4px 16px 24px}
.d-banner{margin:6px 0 10px}
.d-rows{display:flex; flex-direction:column; border-top:1px solid var(--line-soft); margin-top:8px}
.d-row{display:flex; align-items:center; gap:8px; min-height:38px; border-bottom:1px solid var(--line-soft); padding:4px 0}
.d-row.top{align-items:flex-start}
.d-row.top .d-label{padding-top:8px}
.d-label{width:96px; flex:none; font-size:12px; color:var(--text-2)}
.d-ctl{flex:1; min-width:0; display:flex; align-items:center; gap:6px; flex-wrap:wrap}
.d-select{
  flex:1; min-width:0; border:1px solid transparent; background:transparent; border-radius:6px; padding:5px 6px; font-size:12.5px; outline:0; cursor:pointer;
  transition:border-color var(--t), background var(--t); max-width:100%;
}
.d-select:hover{border-color:var(--line)}
.d-select:focus{border-color:var(--accent); background:var(--surface-2)}
.d-select:disabled{cursor:not-allowed; color:var(--text-2); opacity:1}
.prio-seg{display:inline-flex; gap:2px; background:var(--line-soft); border-radius:8px; padding:2px}
.prio-seg .seg{padding:3px 8px; font-size:11.5px; gap:5px}
.prio-dot{width:8px; height:8px; border-radius:50%; background:var(--pc, var(--text-3)); display:inline-block}
.prio-seg .seg.is-active .prio-dot{box-shadow:0 0 0 2px color-mix(in srgb, var(--pc, var(--text-3)) 25%, transparent)}
.d-due input{
  border:1px solid transparent; background:transparent; border-radius:6px; padding:4px 6px; font-size:12.5px; outline:0; color:var(--text);
  font-family:inherit; min-width:0;
}
.d-due input:hover{border-color:var(--line)}
.d-due input:focus{border-color:var(--accent); background:var(--surface-2)}
.d-due input:disabled{color:var(--text-2)}
.d-due input[type="date"]{width:134px}
.d-due input[type="time"]{width:84px}
.d-due-quick{
  border:1px solid var(--line); background:transparent; color:var(--text-2); border-radius:999px; padding:1px 9px; font-size:11px; cursor:pointer;
  transition:border-color var(--t), color var(--t);
}
.d-due-quick:hover{border-color:var(--accent); color:var(--accent)}
.d-baseline{flex-basis:100%; font-size:11.5px; color:var(--text-3); padding:0 6px 4px}
.d-lock-hint{font-size:11px; color:var(--text-3); flex-basis:100%; padding:0 6px 4px}

.tag-editor{display:flex; flex-wrap:wrap; gap:5px; align-items:center; flex:1; padding:4px 0; position:relative; min-width:0}
.tag-editor .tag-chip{gap:4px; line-height:20px; max-width:180px}
.tag-chip .x{border:0; background:transparent; color:inherit; padding:0 0 0 2px; cursor:pointer; opacity:.6; font-size:12px; line-height:1}
.tag-chip .x:hover{opacity:1}
.tag-input{border:0; outline:0; background:transparent; font-size:12.5px; min-width:80px; flex:1; padding:2px 4px}
.tag-editor .ac{left:0; top:100%}

.d-section{margin-top:18px}
.d-section-title{
  font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.07em; color:var(--text-3); margin-bottom:6px;
  display:flex; align-items:baseline; gap:8px;
}
.d-section-title .count{font-weight:500; letter-spacing:0}
.d-desc-view{
  font-size:12.5px; line-height:1.55; white-space:pre-wrap; word-break:break-word; padding:6px 8px; border-radius:6px; min-height:34px;
  cursor:text; color:var(--text); border:1px solid transparent; transition:border-color var(--t);
}
.d-desc-view:hover{border-color:var(--line)}
.d-desc-view.placeholder{color:var(--text-3)}
.d-desc-view.locked{cursor:default}
.d-desc-view.locked:hover{border-color:transparent}
.d-desc-edit{
  width:100%; border:1px solid var(--accent); background:var(--surface-2); border-radius:6px; padding:6px 8px; font-size:12.5px; line-height:1.55;
  resize:none; outline:0; font-family:inherit; min-height:60px; overflow:hidden;
}

.subs{display:flex; flex-direction:column; gap:1px}
.sub-row{display:flex; align-items:center; gap:8px; min-height:30px; padding:0 2px; border-radius:6px}
.sub-row:hover{background:var(--surface-2)}
.sub-row input[type="checkbox"]{accent-color:var(--accent); margin:0; flex:none; width:15px; height:15px; cursor:pointer}
.sub-row.done .sub-title{text-decoration:line-through; color:var(--text-3)}
.sub-title{
  flex:1; min-width:0; border:1px solid transparent; background:transparent; border-radius:6px;
  padding:4px 7px; font-size:12.5px; outline:0;
}
.sub-title:focus{border-color:var(--accent); background:var(--surface)}
.sub-title:disabled{color:var(--text)}
.sub-del{opacity:0; transition:opacity var(--t)}
.sub-row:hover .sub-del, .sub-row:focus-within .sub-del{opacity:1}
.sub-add{
  border:0; background:transparent; color:var(--text-3); padding:6px 8px; font-size:12.5px; cursor:pointer; text-align:left; border-radius:6px; margin-top:2px;
}
.sub-add:hover{color:var(--accent); background:var(--surface-2)}

.feed{display:flex; flex-direction:column; gap:2px}
.feed-act{font-size:11.5px; color:var(--text-3); padding:4px 8px; line-height:1.45}
.feed-act b{font-weight:600; color:var(--text-2)}
.feed-comment{display:flex; gap:9px; padding:8px 8px; border-radius:var(--r-sm); position:relative}
.feed-comment:hover{background:var(--surface-2)}
.fc-body{flex:1; min-width:0}
.fc-head{display:flex; align-items:baseline; gap:8px; font-size:12px}
.fc-name{font-weight:600}
.fc-time{color:var(--text-3); font-size:11px; font-variant-numeric:tabular-nums}
.fc-kind{color:var(--text-2); font-size:11px; background:var(--surface-2); border-radius:999px; padding:0 7px; line-height:16px}
/* §11.6: фото сданной работы в ленте; метки «на проверке» / «перенос?» / групповое поручение в строке; просьба о переносе в панели */
.fc-photos{display:flex; flex-wrap:wrap; gap:6px; margin-top:6px}
.fc-photos img{width:88px; height:66px; object-fit:cover; border-radius:6px; border:1px solid var(--line-soft); display:block}
.m-review{background:var(--amber-bg); color:var(--amber); font-weight:500}
.m-ask{background:var(--amber-bg); color:var(--amber)}
.m-group{background:var(--line-soft); color:var(--text-2); font-variant-numeric:tabular-nums}
.d-ask{color:var(--amber); display:flex; align-items:center; gap:6px; flex-wrap:wrap}
.d-due > .btn{height:26px; padding:0 10px; font-size:11.5px}
.banner .btn + .btn{margin-left:2px}
.fc-text{font-size:12.5px; line-height:1.5; white-space:pre-wrap; word-break:break-word; margin-top:2px}
.fc-del{position:absolute; right:6px; top:6px; opacity:0}
.feed-comment:hover .fc-del{opacity:1}
.composer{margin-top:10px; display:flex; flex-direction:column; gap:6px}
.composer textarea{
  width:100%; border:1px solid var(--line); background:var(--surface-2); border-radius:var(--r-sm); padding:7px 10px; font-size:12.5px;
  resize:none; outline:0; font-family:inherit; min-height:36px; overflow:hidden; line-height:1.5;
}
.composer textarea:focus{border-color:var(--accent); background:var(--surface)}
.composer-foot{display:flex; align-items:center; gap:8px}
.composer-foot .hint{flex:1}
.d-foot{font-size:11.5px; color:var(--text-3); margin-top:18px; padding-top:12px; border-top:1px solid var(--line-soft)}
.d-sheet-actions{display:none}
.d-empty{padding:40px 20px; text-align:center; color:var(--text-3); font-size:12.5px}
.sub-row.new input[type="checkbox"]{opacity:.35}

/* ─────────── Мелочи вьюх ─────────── */
.view-tools{display:flex; align-items:center; gap:8px; margin:0 0 12px}
.more-row{padding:14px 0 4px; text-align:center}
.list-form, .pw-form{display:flex; flex-direction:column; gap:12px}
.qa-chip .avatar{font-size:7px}
.task .avatar{font-size:9px}

/* ─────────── Палитра поиска ─────────── */
.overlay.palette-overlay{align-items:flex-start; padding-top:12vh}
.palette{width:100%; max-width:560px; padding:0; overflow:hidden; display:flex; flex-direction:column; max-height:70vh; box-shadow:var(--shadow-lg)}
.palette-input{
  width:100%; border:0; outline:0; background:transparent; padding:14px 18px; font-size:15px; border-bottom:1px solid var(--line-soft);
}
.palette-list{overflow-y:auto; padding:6px}
.palette-list:empty{display:none}
.p-row{display:flex; align-items:center; gap:10px; padding:7px 12px; border-radius:8px; cursor:pointer; min-height:40px}
.p-row.is-active, .p-row:hover{background:var(--accent-tint)}
.p-row.done{opacity:.55}
.p-row.done .p-title{text-decoration:line-through}
.p-row .check{width:14px; height:14px; border-width:1.5px; cursor:default; pointer-events:none}
.p-row .check svg{width:9px; height:9px}
.p-title{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; font-weight:500}
.p-meta{flex:none; font-size:11.5px; color:var(--text-3); white-space:nowrap; display:flex; gap:8px; align-items:center; max-width:45%; overflow:hidden}
.p-hint{padding:14px 18px; font-size:12px; color:var(--text-3)}

/* ─────────── Модалка, меню ─────────── */
.overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.35);
  backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center; z-index:100; padding:20px;
  animation:fade .15s ease;
}
.modal{
  background:var(--surface); border-radius:var(--r-lg); box-shadow:var(--shadow-lg);
  width:100%; max-width:480px; max-height:88vh; display:flex; flex-direction:column;
  animation:pop .18s cubic-bezier(.2,.9,.3,1.05);
}
@keyframes pop{from{opacity:0; transform:translateY(10px) scale(.98)}}
.modal-head{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:15px 18px 8px}
.modal-head h2{font-size:15px; font-weight:600; letter-spacing:-.01em}
.modal-body{padding:6px 18px 16px; overflow-y:auto; display:flex; flex-direction:column; gap:12px; font-size:12.5px}
.modal-body p{color:var(--text-2)}
.modal-foot{display:flex; align-items:center; justify-content:flex-end; gap:8px; padding:12px 18px; border-top:1px solid var(--line-soft)}
.modal-foot:empty{display:none}

.menu{
  position:fixed; z-index:120; min-width:180px; background:var(--surface); border-radius:var(--r-sm); box-shadow:var(--shadow-lg);
  border:1px solid var(--line-soft); padding:4px; animation:pop .12s ease;
}
.menu-item{
  display:flex; align-items:center; gap:8px; width:100%; border:0; background:transparent; text-align:left;
  padding:7px 10px; border-radius:6px; font-size:12.5px; cursor:pointer; color:var(--text);
}
.menu-item:hover{background:var(--side-hover)}
.menu-item.danger{color:var(--red)}
.menu-sep{height:1px; background:var(--line-soft); margin:4px 2px}

.swatches{display:flex; flex-wrap:wrap; gap:8px}
.swatch{width:26px; height:26px; border-radius:50%; border:2px solid transparent; background:var(--sw); cursor:pointer; padding:0; transition:transform .1s}
.swatch:hover{transform:scale(1.1)}
.swatch.is-active{border-color:var(--text); box-shadow:inset 0 0 0 2px var(--surface)}
.order-list{display:flex; flex-direction:column; gap:2px}
.order-row{display:flex; align-items:center; gap:8px; padding:5px 6px; border-radius:6px; background:var(--surface-2)}
.order-row .name{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}

/* ─────────── Тост, загрузка ─────────── */
.toast{
  position:fixed; bottom:26px; left:50%; transform:translateX(-50%);
  background:var(--text); color:var(--bg);
  padding:9px 18px; border-radius:999px; font-size:12.5px; font-weight:500;
  box-shadow:var(--shadow-lg); z-index:200; max-width:min(80vw, 520px);
  display:flex; align-items:center; gap:12px; white-space:nowrap;
  animation:toast-in .2s ease;
}
.toast > span{overflow:hidden; text-overflow:ellipsis}
.toast-action{border:0; background:transparent; color:var(--accent); font-weight:600; cursor:pointer; padding:0; font-size:12.5px; filter:brightness(1.4)}
.toast-action:hover{text-decoration:underline}
@keyframes toast-in{from{opacity:0; transform:translate(-50%,8px)}}

.boot{position:fixed; inset:0; display:grid; place-items:center; background:var(--bg); z-index:300}
.spinner{
  width:26px; height:26px; border-radius:50%;
  border:2.5px solid var(--line); border-top-color:var(--accent);
  animation:spin .7s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.loading-row{padding:16px; text-align:center; color:var(--text-3); font-size:12px}

/* ─────────── Экраны входа / первичной настройки ─────────── */
.auth{
  position:fixed; inset:0; overflow-y:auto; background:var(--bg); z-index:50;
  display:flex; flex-direction:column; align-items:center; justify-content:center; padding:24px 16px; gap:22px;
}
.auth-brand{display:flex; align-items:center; gap:10px; max-width:100%}
.auth-brand .brand-mark{width:36px; height:36px}
.auth-card{width:100%; max-width:360px; padding:22px 22px 18px; display:flex; flex-direction:column; gap:12px}
.auth-title{font-size:16px; font-weight:700; letter-spacing:-.015em}
.auth-sub{font-size:12.5px; color:var(--text-2); margin-top:-6px}
.auth-hint{font-size:11.5px; color:var(--text-3); text-align:center; margin-top:2px}
.auth-card .btn.primary{margin-top:4px; height:36px}

/* ─────────── Адаптив ─────────── */
@media (max-width:1099px){
  .sidebar{width:200px}
  .detail{
    position:fixed; top:0; right:0; bottom:0; width:var(--detail-w); max-width:100%;
    box-shadow:var(--shadow-lg); z-index:70; animation:slide-in .18s ease;
  }
  @keyframes slide-in{from{transform:translateX(24px); opacity:0}}
}

@media (max-width:760px){
  :root{--row-h: var(--row-h-touch)}
  .sidebar{
    position:fixed; top:0; left:0; bottom:0; width:min(84vw, 300px); z-index:80;
    transform:translateX(-100%); transition:transform .2s ease; box-shadow:none;
    background:var(--bg); backdrop-filter:none; -webkit-backdrop-filter:none;
    padding-top:calc(18px + env(safe-area-inset-top));
  }
  .app.drawer-open .sidebar{transform:none; box-shadow:var(--shadow-lg)}
  #btnMenu{display:grid}
  .topbar{padding:8px 10px 8px 12px; min-height:52px}
  .page-title{font-size:17px}
  .content{padding:12px 12px 90px}
  .content > *{max-width:none}

  .task{gap:10px; padding:0 12px}
  .task-body{flex-wrap:wrap; gap:2px 8px; padding:7px 0}
  .task-title{flex-basis:100%; white-space:normal; overflow:visible; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical}
  .task-meta{max-width:100%; flex-wrap:wrap; gap:6px 8px; font-size:11px}
  .task-meta:empty{display:none}
  .check::before{inset:-13px}

  .detail{
    position:fixed; inset:0; width:auto; max-width:none; border-left:0; z-index:70; animation:sheet-in .2s ease;
  }
  @keyframes sheet-in{from{transform:translateY(24px); opacity:0}}
  .d-head{padding:8px 8px 4px 12px; align-items:center; flex-wrap:wrap}
  .d-back{display:inline-flex; align-items:center; gap:2px; border:0; background:transparent; color:var(--accent); font-size:14px; padding:6px 8px 6px 4px; cursor:pointer; border-radius:8px}
  .d-back:hover{background:var(--accent-tint)}
  .d-head .d-back{order:-2}
  .d-head .d-menu{order:-1; margin-left:auto}
  .d-close{display:none}
  .d-title-row{display:flex; align-items:flex-start; gap:10px; flex-basis:100%; padding:2px 6px 0 4px}
  .d-title-row .check{margin-top:9px}
  .d-body{padding:4px 14px 90px}
  .d-label{width:86px}
  .d-sheet-actions{
    display:flex; position:absolute; left:0; right:0; bottom:0; padding:10px 14px calc(10px + env(safe-area-inset-bottom));
    background:var(--surface); border-top:1px solid var(--line-soft); z-index:3;
  }
  .d-sheet-actions .btn{width:100%; height:44px; font-size:14px}

  /* палитра — сверху, иначе на телефоне её закрывает клавиатура */
  .overlay.palette-overlay{padding:8px; padding-top:max(8px, env(safe-area-inset-top)); align-items:flex-start}
  .palette{max-height:85vh}
  .overlay{padding:8px; align-items:flex-end}
  .modal{max-width:100%; max-height:94vh; border-radius:var(--r-lg) var(--r-lg) 0 0}
  .statbar{grid-template-columns:repeat(2,1fr)}
  .stat{border-left:0; border-top:1px solid var(--line-soft)}
  .stat:first-child, .stat:nth-child(2){border-top:0}
  .quick-add{margin-bottom:12px}
  .ac{left:8px; right:8px; max-width:none}
  .toast{bottom:calc(16px + env(safe-area-inset-bottom)); white-space:normal; max-width:92vw}
}
@media (min-width:761px){
  .d-title-row{display:contents}
}
@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important}
}

/* ─── Профиль Inter Agro (SPEC-companies §11): логотип, личные дела, мастер «+» ─── */
.brand-logo{height:34px; width:auto; max-width:66px; flex:none; object-fit:contain}
.auth-brand .brand-logo{height:56px; max-width:110px}
.m-personal{background:var(--line-soft); color:var(--text-3); font-weight:500}
.quick-add > .qa-plus{border:0; background:transparent; padding:0; margin-top:5px; cursor:pointer; color:var(--text-3); display:inline-flex; border-radius:6px}
.quick-add > .qa-plus:hover, .quick-add > .qa-plus:focus-visible{color:var(--accent); outline:none}
.quick-add > .qa-plus svg{width:20px; height:20px}
.wiz{display:flex; flex-direction:column; gap:12px; min-width:0}
.wiz-steps{display:flex; flex-wrap:wrap; gap:4px 10px; font-size:11px; color:var(--text-3)}
.wiz-steps .on{color:var(--accent); font-weight:600}
.wiz-q{font-size:15px; font-weight:600}
.wiz-opts{display:flex; flex-direction:column; gap:6px; max-height:46vh; overflow:auto}
.wiz-opt{display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--line-soft); border-radius:10px; background:var(--surface); color:var(--text); text-align:left; font-size:14px; cursor:pointer}
.wiz-opt:hover, .wiz-opt.is-active{border-color:var(--accent)}
.wiz-opt .list-dot{width:9px; height:9px}
.wiz-quick{display:flex; flex-wrap:wrap; gap:6px}
.wiz-sum{display:flex; flex-direction:column; gap:6px; font-size:14px}
.wiz-sum b{font-weight:600}
.wiz-foot{display:flex; gap:8px; justify-content:flex-end; padding-top:4px}
