  :root{
    --bg:#0F172A; --surface:#161E2E; --surface2:#1E2433; --border:rgba(255,255,255,.08);
    --fg:#F8FAFC; --muted:#94A3B8; --faint:#64748B;
    --primary:#D97706; --accent:#6366F1;
    --green:#22C55E; --amber:#F59E0B; --red:#EF4444;
    --green-bg:rgba(34,197,94,.14); --amber-bg:rgba(245,158,11,.14); --red-bg:rgba(239,68,68,.16);
    --indigo-bg:rgba(99,102,241,.16);
  }
  *{ box-sizing:border-box; margin:0; padding:0; }
  html,body{ max-width:100%; overflow-x:hidden; }
  body{ font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
        background:var(--bg); color:var(--fg); min-height:100dvh; -webkit-text-size-adjust:100%;
        font-feature-settings:'tnum' 1; }
  header{ background:var(--surface); border-bottom:1px solid var(--border);
          padding:13px 20px; display:flex; align-items:center; gap:12px; flex-wrap:wrap;
          position:sticky; top:0; z-index:40; }
  .brand{ display:flex; align-items:center; gap:9px; }
  .status-dot{ width:9px; height:9px; border-radius:50%; background:var(--green);
               box-shadow:0 0 8px var(--green); animation:pulse 2s infinite; flex:none; }
  @keyframes pulse{ 0%,100%{opacity:1} 50%{opacity:.35} }
  header h1{ font-size:16px; font-weight:700; letter-spacing:-.01em; }
  .meta{ font-size:12px; color:var(--faint); margin-left:auto; font-weight:500; }
  .icon-btn{ background:var(--surface2); border:1px solid var(--border); color:var(--muted);
             height:32px; padding:0 12px; border-radius:8px; cursor:pointer; font-size:12px;
             font-weight:600; font-family:inherit; display:inline-flex; align-items:center; gap:6px;
             transition:all .18s ease; }
  .icon-btn:hover{ color:var(--fg); border-color:rgba(255,255,255,.18); }
  .icon-btn.on{ color:var(--green); border-color:rgba(34,197,94,.4); background:var(--green-bg); }
  .icon-btn svg{ width:15px; height:15px; stroke:currentColor; fill:none; stroke-width:2; }
  .container{ padding:20px; max-width:1600px; margin:0 auto; }
  .tabs{ display:flex; gap:6px; margin-bottom:18px; flex-wrap:wrap; }
  .tab{ background:var(--surface); border:1px solid var(--border); color:var(--muted);
        padding:8px 15px; border-radius:9px; cursor:pointer; font-size:13px; font-weight:600;
        display:inline-flex; align-items:center; gap:7px; transition:all .18s ease; }
  .tab:hover{ color:var(--fg); }
  .tab svg{ width:15px; height:15px; stroke:currentColor; fill:none; stroke-width:2; }
  .tab.active{ background:var(--indigo-bg); border-color:rgba(99,102,241,.45); color:#C7D2FE; }
  .stats{ display:flex; gap:12px; margin-bottom:20px; flex-wrap:wrap; }
  .stat{ background:var(--surface); border:1px solid var(--border); border-radius:12px;
         padding:14px 18px; min-width:128px; flex:1; }
  .stat-num{ font-size:27px; font-weight:700; line-height:1; }
  .stat-num.red{ color:var(--red); } .stat-num.amber{ color:var(--amber); }
  .stat-num.green{ color:var(--green); } .stat-num.hot{ color:#FB923C; }
  .stat-label{ font-size:12px; color:var(--faint); margin-top:7px; font-weight:500;
               display:flex; align-items:center; gap:5px; }
  .stat-label svg{ width:13px; height:13px; stroke:currentColor; fill:none; stroke-width:2; }

  /* KANBAN */
  .board{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:14px; }
  .col{ background:var(--surface); border:1px solid var(--border); border-radius:14px;
        display:flex; flex-direction:column; min-height:120px; }
  .col-head{ padding:13px 15px; border-bottom:1px solid var(--border); display:flex;
             align-items:center; gap:9px; position:sticky; top:0; }
  .col-dot{ width:9px; height:9px; border-radius:50%; flex:none; }
  .col-dot.spot_moscow{ background:var(--primary); box-shadow:0 0 7px var(--primary); }
  .col-dot.regions_spb{ background:var(--accent); box-shadow:0 0 7px var(--accent); }
  .col-dot.cashless_intl{ background:#14B8A6; box-shadow:0 0 7px #14B8A6; }
  .col-dot.unknown{ background:var(--faint); }
  .col-title{ font-size:14px; font-weight:700; }
  .col-resp{ font-size:11px; color:var(--faint); font-weight:500; }
  .col-cover{ font-size:11px; color:#FDBA74; font-weight:600; display:flex; align-items:center; gap:4px; margin-top:1px; }
  .col-cover svg{ width:12px; height:12px; stroke:currentColor; fill:none; stroke-width:2; }
  .col.covered{ border-color:rgba(251,146,60,.35); }
  .col-count{ margin-left:auto; background:var(--surface2); color:var(--muted);
              font-size:12px; font-weight:700; min-width:24px; height:24px; padding:0 7px;
              border-radius:7px; display:inline-flex; align-items:center; justify-content:center; }
  .col-body{ padding:11px; display:flex; flex-direction:column; gap:10px; flex:1; }
  .col-empty{ color:var(--faint); font-size:13px; text-align:center; padding:22px 8px; }

  /* CARD */
  .card{ background:var(--surface2); border:1px solid var(--border); border-left:3px solid var(--faint);
         border-radius:11px; padding:12px 13px; transition:border-color .2s ease, box-shadow .2s ease; }
  .card.w-green{ border-left-color:var(--green); }
  .card.w-amber{ border-left-color:var(--amber); }
  .card.w-red{ border-left-color:var(--red); box-shadow:0 0 0 1px rgba(239,68,68,.25), 0 0 16px rgba(239,68,68,.12); }
  .card.hot{ border-left-color:#FB923C; }
  @keyframes flashcard{ 0%,100%{box-shadow:none} 30%{box-shadow:0 0 0 2px var(--red),0 0 18px rgba(239,68,68,.35)} }
  .card.flash{ animation:flashcard 1.1s ease-in-out 3; }
  .card-top{ display:flex; align-items:center; gap:8px; margin-bottom:7px; }
  .chat-name{ font-weight:600; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .wait{ margin-left:auto; font-weight:700; font-size:15px; font-variant-numeric:tabular-nums; color:var(--muted); flex:none; }
  .wait.amber{ color:var(--amber); } .wait.red{ color:var(--red); }
  .question{ color:var(--muted); font-size:13px; line-height:1.45; margin-bottom:9px;
             display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .chips{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-bottom:10px; }
  .chip{ display:inline-flex; align-items:center; gap:4px; padding:2px 8px; border-radius:6px;
         font-size:11px; font-weight:600; white-space:nowrap; }
  .chip svg{ width:12px; height:12px; stroke:currentColor; fill:none; stroke-width:2; }
  .chip-wait{ background:var(--amber-bg); color:var(--amber); }
  .chip-urgent{ background:var(--red-bg); color:#FCA5A5; }
  .chip-hot{ background:rgba(251,146,60,.16); color:#FDBA74; }
  .chip-taken{ background:var(--indigo-bg); color:#C7D2FE; }
  .card-actions{ display:flex; gap:7px; align-items:center; }
  .btn{ border:none; border-radius:8px; cursor:pointer; font-size:12px; font-weight:600;
        font-family:inherit; padding:7px 11px; display:inline-flex; align-items:center; gap:5px;
        transition:filter .15s ease; }
  .btn:hover{ filter:brightness(1.12); }
  .btn svg{ width:13px; height:13px; stroke:currentColor; fill:none; stroke-width:2; }
  .btn-ok{ background:var(--green-bg); color:#86EFAC; }
  .btn-take{ background:var(--indigo-bg); color:#C7D2FE; }
  .btn-wrong{ background:rgba(255,71,87,.10); border:1px solid rgba(255,71,87,.35); color:#ff6b78; }
  .btn-review{ background:rgba(255,165,2,.10); border:1px solid rgba(255,165,2,.35); color:#ffb84d; }
  .btn.sel{ outline:2px solid rgba(199,210,254,.6); outline-offset:1px; }
  .comment-box{ margin-top:8px; }
  .comment-inp{ width:100%; min-height:54px; resize:vertical; background:#0c0f15;
    border:1px solid var(--border); color:var(--fg); padding:8px 10px; border-radius:8px;
    font-size:12px; font-family:inherit; outline:none; box-sizing:border-box; }
  .comment-inp:focus{ border-color:rgba(99,102,241,.5); }
  .btn-done{ display:block; width:100%; margin-top:6px; text-align:center;
    background:rgba(46,213,115,.14); border:1px solid rgba(46,213,115,.4); color:#54e08a; }
  .btn-link{ background:transparent; color:var(--faint); margin-left:auto; padding:7px 4px; }
  .btn-link:hover{ color:var(--accent); }

  /* TABLE (closed/rating) */
  table{ width:100%; border-collapse:collapse; background:var(--surface);
         border-radius:12px; overflow:hidden; border:1px solid var(--border); }
  th{ background:var(--surface2); color:var(--faint); font-size:11px; text-transform:uppercase;
      letter-spacing:.05em; padding:11px 14px; text-align:left; font-weight:600; }
  td{ padding:13px 14px; border-top:1px solid var(--border); font-size:14px; vertical-align:top; }
  .badge{ display:inline-block; padding:2px 8px; border-radius:6px; font-size:11px; font-weight:600; white-space:nowrap; }
  .badge-ok{ background:var(--green-bg); color:#86EFAC; }
  .badge-abandon{ background:rgba(217,119,6,.16); color:#FCD34D; }
  .badge-miss{ background:rgba(239,68,68,.16); color:#FCA5A5; }
  .badge-review{ background:rgba(217,119,6,.16); color:#FCD34D; border:1px solid rgba(217,119,6,.35); }
  .subdiv{ font-size:12px; color:var(--muted); }
  .comment-cell{ max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

  /* Closed filters */
  .closed-filters{ display:flex; gap:20px; flex-wrap:wrap; align-items:center; margin-bottom:16px; padding:12px 16px;
      background:var(--surface2); border-radius:12px; border:1px solid var(--border); }
  .filter-group{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
  .filter-label{ font-size:12px; color:var(--faint); font-weight:600; text-transform:uppercase; letter-spacing:.05em; }
  .filter-btn{ font-size:12px; padding:5px 12px; border-radius:8px; background:var(--surface); border:1px solid var(--border);
      color:var(--muted); cursor:pointer; transition:all .15s; }
  .filter-btn:hover{ border-color:var(--accent); color:var(--text); }
  .filter-btn.active{ background:var(--accent); color:#fff; border-color:var(--accent); }
  .closed-filters input[type="date"]{ background:var(--surface); border:1px solid var(--border); color:var(--text);
      padding:5px 10px; border-radius:8px; font-size:13px; font-family:inherit; }
  .closed-filters input[type="date"]::-webkit-calendar-picker-indicator{ filter:invert(.7); }
  .filter-btn-reset{ margin-left:auto; background:transparent; border-color:var(--red); color:var(--red); }
  .filter-btn-reset:hover{ background:rgba(239,68,68,.15); }
  .wait-time{ font-weight:700; font-variant-numeric:tabular-nums; }
  .wait-time.red{ color:var(--red); } .wait-time.amber{ color:var(--amber); }
  .empty{ text-align:center; padding:56px; color:var(--faint); font-size:15px; }
  .link{ color:var(--accent); text-decoration:none; font-size:12px; white-space:nowrap; }
  .link:hover{ text-decoration:underline; }
  .updated{ font-size:11px; color:var(--faint); margin-top:12px; text-align:right; }
  .rate-bar{ height:6px; border-radius:3px; background:var(--surface2); overflow:hidden; margin-top:4px; }
  .rate-bar>span{ display:block; height:100%; background:var(--green); }

  /* SETTINGS */
  .settings-card{ background:var(--surface); border:1px solid var(--border); border-radius:12px;
                  padding:16px 18px; margin-bottom:12px; }
  .settings-card h3{ font-size:14px; font-weight:700; margin-bottom:3px; display:flex; align-items:center; gap:8px; }
  .settings-card .hint{ font-size:12px; color:var(--faint); margin-bottom:13px; }
  .frow{ display:grid; grid-template-columns:120px 1fr; gap:10px; align-items:center; margin-bottom:9px; }
  .frow label{ font-size:12px; color:var(--muted); font-weight:500; }
  .frow input{ background:var(--bg); border:1px solid var(--border); color:var(--fg);
               border-radius:8px; padding:8px 11px; font-size:13px; font-family:inherit; width:100%; }
  .frow input:focus{ outline:none; border-color:var(--accent); }
  .save-row{ margin-top:6px; }
  .btn-save{ background:var(--primary); color:#fff; padding:9px 18px; font-size:13px; }
  .saved-tag{ color:var(--green); font-size:12px; margin-left:10px; font-weight:600; }
  .cover-block{ margin-top:13px; padding-top:13px; border-top:1px dashed var(--border); }
  .cover-title{ font-size:12px; font-weight:700; color:#FDBA74; display:flex; align-items:center; gap:6px; margin-bottom:10px; }
  .cover-title svg{ width:14px; height:14px; stroke:currentColor; fill:none; stroke-width:2; }
  .cover-now{ background:rgba(251,146,60,.12); border:1px solid rgba(251,146,60,.3); border-radius:8px;
              padding:8px 11px; font-size:12px; color:#FDBA74; display:flex; align-items:center; gap:7px;
              flex-wrap:wrap; margin-bottom:11px; }
  .cover-now svg{ width:13px; height:13px; stroke:currentColor; fill:none; stroke-width:2; }
  .btn-clear{ background:var(--red-bg); color:#FCA5A5; padding:4px 10px; margin-left:auto; }

  /* LOGIN */
  #login-overlay{ position:fixed; inset:0; z-index:9999; background:var(--bg);
    display:flex; align-items:center; justify-content:center; }
  .login-box{ background:var(--surface); border:1px solid var(--border); border-radius:16px;
    padding:36px 32px; width:340px; max-width:90vw; text-align:center; }
  .login-box h2{ font-size:20px; font-weight:700; margin-bottom:6px; }
  .login-box .sub{ font-size:13px; color:var(--faint); margin-bottom:22px; }
  .login-box input{ width:100%; background:var(--bg); border:1px solid var(--border); color:var(--fg);
    border-radius:10px; padding:11px 14px; font-size:15px; font-family:inherit; outline:none;
    margin-bottom:14px; }
  .login-box input:focus{ border-color:var(--accent); }
  .login-box .btn-login{ width:100%; background:var(--accent); color:#fff; border:none;
    border-radius:10px; padding:12px; font-size:15px; font-weight:600; font-family:inherit;
    cursor:pointer; transition:filter .15s; }
  .login-box .btn-login:hover{ filter:brightness(1.15); }
  .login-box .login-err{ color:var(--red); font-size:13px; margin-top:10px; min-height:18px; }

  /* WALLBOARD MODE (office TV) */
  body.wall .container{ max-width:none; padding:18px; }
  body.wall .tabs, body.wall .stat-label{ }
  body.wall .stats{ margin-bottom:16px; }
  body.wall .stat-num{ font-size:40px; }
  body.wall .stat-label{ font-size:15px; }
  body.wall .col-title{ font-size:18px; }
  body.wall .chat-name{ font-size:17px; }
  body.wall .question{ font-size:15px; -webkit-line-clamp:1; }
  body.wall .wait{ font-size:20px; }
  body.wall .card-actions{ display:none; }      /* доска для просмотра, не управления */
  body.wall .tab[data-view="closed"], body.wall .tab[data-view="rating"], body.wall .tab[data-view="settings"]{ display:none; }

  /* MODAL: создание группы */
  .modal-overlay{ position:fixed; inset:0; z-index:9000; background:rgba(0,0,0,.65);
    display:flex; align-items:center; justify-content:center; backdrop-filter:blur(4px); }
  .modal-box{ background:var(--surface); border:1px solid var(--border); border-radius:16px;
    width:520px; max-width:92vw; max-height:90vh; overflow-y:auto; }
  .modal-head{ display:flex; align-items:center; justify-content:space-between;
    padding:18px 20px 14px; border-bottom:1px solid var(--border); }
  .modal-head h2{ font-size:16px; font-weight:700; }
  .modal-close{ background:none; border:none; color:var(--muted); font-size:22px; cursor:pointer;
    width:32px; height:32px; display:flex; align-items:center; justify-content:center;
    border-radius:8px; transition:all .15s; }
  .modal-close:hover{ background:var(--surface2); color:var(--fg); }
  .modal-body{ padding:18px 20px; }
  .grp-section{ margin:14px 0; }
  .grp-section-title{ font-size:12px; font-weight:700; color:var(--muted); text-transform:uppercase;
    letter-spacing:.04em; margin-bottom:8px; }
  .grp-section-head{ display:flex; align-items:center; gap:8px; margin-bottom:8px; }
  .grp-section-head .grp-section-title{ margin-bottom:0; }
  .grp-selectall{ display:flex; align-items:center; gap:6px; cursor:pointer; user-select:none; }
  .grp-selectall input[type="checkbox"]{ width:14px; height:14px; accent-color:var(--accent); cursor:pointer; }
  .grp-extra-input{ width:100%; background:var(--bg); border:1px solid var(--border); color:var(--fg);
    border-radius:8px; padding:8px 11px; font-size:13px; font-family:inherit; }
  .grp-extra-input:focus{ outline:none; border-color:var(--accent); }
  .grp-extra-hint{ font-size:11px; color:var(--faint); margin-top:4px; }
  .grp-result{ background:var(--green-bg); border:1px solid rgba(34,197,94,.35); border-radius:8px;
    padding:10px 14px; font-size:13px; color:#86EFAC; margin-top:8px; }
  .grp-checks{ display:flex; flex-wrap:wrap; gap:6px; }
  .grp-check{ display:inline-flex; align-items:center; gap:5px; padding:5px 10px;
    background:var(--surface2); border:1px solid var(--border); border-radius:8px;
    font-size:12px; font-weight:500; cursor:pointer; transition:all .15s; user-select:none; }
  .grp-check:hover{ border-color:rgba(255,255,255,.18); }
  .grp-check.sel{ background:var(--indigo-bg); border-color:rgba(99,102,241,.45); color:#C7D2FE; }
  .grp-check input{ display:none; }
  .grp-tabs{ display:flex; flex-wrap:wrap; gap:6px; }
  .grp-tab{ background:var(--surface); border:1px solid var(--border); color:var(--muted);
        padding:6px 12px; border-radius:8px; cursor:pointer; font-size:12px; font-weight:600;
        transition:all .18s ease; user-select:none; }
  .grp-tab:hover{ color:var(--fg); }
  .grp-tab.active{ background:var(--indigo-bg); border-color:rgba(99,102,241,.45); color:#C7D2FE; }
  .grp-preview{ font-size:13px; color:var(--accent); font-weight:600; padding:8px 12px;
        background:var(--surface); border:1px solid var(--border); border-radius:8px;
        margin:10px 0; min-height:20px; word-break:break-all; }
  .grp-error{ color:var(--red); font-size:12px; min-height:16px; margin-top:6px; }
  .grp-history{ padding:14px 20px 18px; border-top:1px solid var(--border); }
  .grp-req{ font-size:12px; padding:6px 0; border-bottom:1px solid var(--border); display:flex;
    align-items:center; gap:8px; }
  .grp-req:last-child{ border-bottom:none; }
  .grp-status{ display:inline-block; width:8px; height:8px; border-radius:50%; flex:none; }
  .grp-status.pending{ background:var(--amber); }
  .grp-status.done{ background:var(--green); }
  .grp-status.error{ background:var(--red); }

  /* MIGRATE MODAL */
  .migrate-modal-box{ width:720px; max-width:95vw; }
  .migrate-search-wrap{ padding:10px 20px 0; }
  .migrate-search-wrap input{ width:100%; background:var(--bg); border:1px solid var(--border); color:var(--fg);
    border-radius:8px; padding:9px 12px; font-size:13px; font-family:inherit; }
  .migrate-search-wrap input:focus{ outline:none; border-color:var(--accent); }
  .migrate-body{ max-height:65vh; overflow-y:auto; padding:10px 20px 18px !important; }
  .mig-row{ display:flex; align-items:center; gap:10px; padding:10px 12px; margin-bottom:6px;
    background:var(--surface2); border:1px solid var(--border); border-radius:10px;
    font-size:13px; transition:all .15s; }
  .mig-row:hover{ border-color:rgba(255,255,255,.14); }
  .mig-row.migrated{ opacity:.55; }
  .mig-info{ flex:1; min-width:0; }
  .mig-chat{ font-weight:600; color:var(--fg); word-break:break-word; }
  .mig-client{ font-size:12px; color:var(--muted); margin-top:2px; }
  .mig-badge{ display:inline-block; padding:2px 7px; border-radius:5px; font-size:10px;
    font-weight:700; text-transform:uppercase; letter-spacing:.03em; margin-left:6px; }
  .mig-badge.chat-badge{ background:rgba(99,102,241,.2); color:#A5B4FC; }
  .mig-badge.client-badge{ background:rgba(34,197,94,.18); color:#86EFAC; }
  .mig-badge.matched{ background:rgba(245,158,11,.18); color:#FCD34D; }
  .mig-new-name{ font-size:11px; color:var(--accent); margin-top:3px; }
  .mig-btn{ background:var(--accent); color:#fff; border:none; border-radius:7px; padding:6px 14px;
    font-size:12px; font-weight:600; cursor:pointer; white-space:nowrap; transition:all .15s; flex:none; }
  .mig-btn:hover{ filter:brightness(1.15); }
  .mig-btn:disabled{ opacity:.5; cursor:default; filter:none; }
  .mig-btn.done{ background:var(--green); }
  .mig-btn.err{ background:var(--red); }
  .mig-status{ font-size:11px; margin-top:3px; }
  .mig-status.ok{ color:var(--green); }
  .mig-status.fail{ color:var(--red); }
  .mig-no-match{ color:var(--faint); font-style:italic; }

  /* COURIERS */
  .couriers-filters{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:16px;
    padding:12px 16px; background:var(--surface2); border-radius:12px; border:1px solid var(--border); }
  .couriers-chart-wrap{ background:var(--surface); border:1px solid var(--border); border-radius:14px;
    padding:16px; margin-bottom:16px; overflow-x:auto; }
  .couriers-chart-wrap canvas{ width:100%; display:block; }
  .couriers-table table{ margin-top:0; }
  .courier-dot{ display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:8px;
    vertical-align:middle; flex:none; }
  #couriers-table table{ width:100%; }

  /* ACTIVITY */
  .activity-filters{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-bottom:16px;
    padding:12px 16px; background:var(--surface2); border-radius:12px; border:1px solid var(--border); }
  .activity-filters input[type="date"]{ background:var(--surface); border:1px solid var(--border); color:var(--fg);
    padding:5px 10px; border-radius:8px; font-size:13px; font-family:inherit; }
  .activity-filters input[type="date"]::-webkit-calendar-picker-indicator{ filter:invert(.7); }
  .activity-filters select{ background:var(--surface); border:1px solid var(--border); color:var(--fg);
    padding:5px 12px; border-radius:8px; font-size:13px; font-family:inherit; cursor:pointer; min-width:120px; }
  .activity-filters select:focus{ outline:none; border-color:var(--accent); }
  .activity-chart-wrap{ background:var(--surface); border:1px solid var(--border); border-radius:14px;
    padding:16px; margin-bottom:16px; overflow-x:auto; }
  .activity-chart-wrap canvas{ width:100%; display:block; }

  @media (max-width:640px){
    .container{ padding:12px; }
    .stats{ display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
    .stat{ min-width:0; } .stat-num{ font-size:23px; }
    .board{ grid-template-columns:1fr; }
    table,thead,tbody,th,td,tr{ display:block; width:100%; }
    thead{ display:none; }
    tr{ margin-bottom:12px; border:1px solid var(--border); border-radius:10px; overflow:hidden; }
    td{ border-top:none; padding:8px 14px; display:flex; justify-content:space-between; gap:12px; align-items:center; min-width:0; }
    td>*{ min-width:0; overflow:hidden; text-overflow:ellipsis; }
    td:before{ content:attr(data-label); color:var(--faint); font-size:11px; text-transform:uppercase; flex:none; align-self:center; }
    .frow{ grid-template-columns:1fr; gap:4px; }
  }
  .btn-del{ background:none; border:none; color:var(--faint); font-size:18px; cursor:pointer; padding:2px 6px; border-radius:4px; line-height:1; }
  .btn-del:hover{ color:var(--red); background:rgba(239,68,68,.15); }
