  * { margin:0; padding:0; box-sizing:border-box; }
  :root{
    --bg:#f6f7fb; --surface:#ffffff; --line:#e7e9f2; --line-soft:#eef0f6;
    --text:#171a26; --muted:#6d7387; --faint:#9aa0b4;
    --brand:#5b5fe9; --brand-dark:#4a4ed4; --brand-soft:#eef0ff;
    --admin:#7048e8; --admin-soft:#f1ebff;
    --userc:#2f7de1; --user-soft:#e7f1ff;
    --shadow-sm:0 1px 2px rgba(23,26,38,.05);
    --shadow-md:0 8px 24px rgba(23,26,38,.10);
    --shadow-lg:0 20px 50px rgba(23,26,38,.18);
    --sidebar-w:256px;
  }
  html,body{ height:100%; }
  body{ font-family:'Inter',system-ui,sans-serif; background:var(--bg); color:var(--text); font-size:14px; line-height:1.45; overflow:hidden; }
  .display{ font-family:'Space Grotesk',sans-serif; }
  button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
  input,select,textarea{ font-family:inherit; font-size:inherit; color:inherit; }
  svg{ display:block; }
  .app{ display:flex; height:100vh; }

  /* ============ AUTH SCREEN ============ */
  .auth{
    position:fixed; inset:0; z-index:300; overflow:auto; padding:24px;
    background:
      radial-gradient(1000px 500px at 85% -10%, rgba(143,91,232,.16), transparent 60%),
      radial-gradient(800px 500px at -10% 110%, rgba(91,95,233,.14), transparent 60%), var(--bg);
    display:grid; place-items:center; transition:opacity .3s ease;
  }
  .auth.hidden{ opacity:0; pointer-events:none; }
  .auth-card{
    width:min(430px,100%); background:#fff; border:1px solid var(--line); border-radius:20px;
    box-shadow:var(--shadow-lg); padding:28px 26px 22px; animation:fadeUp .4s ease;
  }
  .auth-top{ display:flex; align-items:center; gap:12px; margin-bottom:18px; }
  .auth-top .logo-mark{ width:44px; height:44px; border-radius:13px; }
  .auth-top h1{ font-size:20px; font-weight:700; letter-spacing:-.02em; }
  .auth-top p{ font-size:11.5px; color:var(--faint); margin-top:1px; }
  .auth-tabs{ display:flex; gap:2px; background:#eff1f7; padding:3px; border-radius:11px; margin-bottom:16px; }
  .auth-tabs button{ flex:1; padding:8px; border-radius:8px; font-size:13px; font-weight:700; color:var(--muted); transition:all .16s; }
  .auth-tabs button.active{ background:#fff; color:var(--text); box-shadow:var(--shadow-sm); }
  .afield{ margin-bottom:12px; }
  .afield label{ display:block; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--faint); margin-bottom:5px; }
  .pw-wrap{ position:relative; }
  .pw-wrap .eye{ position:absolute; right:8px; top:50%; transform:translateY(-50%); width:26px; height:26px; border-radius:7px; display:grid; place-items:center; color:var(--faint); }
  .pw-wrap .eye:hover{ background:#f2f4fa; color:var(--text); }
  .role-pick{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .role-opt{ border:1.5px solid var(--line); border-radius:11px; padding:10px; text-align:left; transition:all .15s; }
  .role-opt:hover{ border-color:#c9cdf0; }
  .role-opt.active{ border-color:var(--brand); background:var(--brand-soft); }
  .role-opt .rn{ font-size:12px; font-weight:800; display:flex; align-items:center; gap:6px; }
  .role-opt .rd{ font-size:10.5px; color:var(--muted); margin-top:3px; line-height:1.4; }
  .auth-err{ display:none; font-size:12px; font-weight:600; color:#d92d20; background:#ffe9e9; border-radius:9px; padding:8px 11px; margin-bottom:11px; }
  .auth-err.show{ display:block; animation:shake .3s; }
  .auth-btn{ width:100%; justify-content:center; padding:11px; font-size:14px; }
  .auth-note{ font-size:11px; color:var(--faint); margin-top:14px; line-height:1.55; text-align:center; }
  .auth-note b{ color:var(--muted); }

  /* ============ SIDEBAR ============ */
  .sidebar{ width:var(--sidebar-w); background:var(--surface); border-right:1px solid var(--line); display:flex; flex-direction:column; flex-shrink:0; z-index:60; }
  .logo-row{ display:flex; align-items:center; gap:11px; padding:20px 18px 16px; }
  .logo-mark{ width:38px; height:38px; border-radius:11px; flex-shrink:0; background:linear-gradient(135deg,#6a6ef0 0%, #8f5be8 60%, #b454d8 100%); display:grid; place-items:center; color:#fff; box-shadow:0 6px 14px rgba(91,95,233,.35); }
  .logo-name{ font-size:18px; font-weight:700; letter-spacing:-.02em; }
  .logo-sub{ font-size:10.5px; color:var(--faint); font-weight:500; letter-spacing:.06em; text-transform:uppercase; }
  .side-scroll{ flex:1; overflow-y:auto; padding:4px 12px 12px; }
  .side-scroll::-webkit-scrollbar{ width:8px; } .side-scroll::-webkit-scrollbar-thumb{ background:#dfe2ee; border-radius:8px; }
  .side-label{ font-size:10.5px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--faint); padding:16px 8px 7px; }
  .nav-btn, .side-item{ width:100%; display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:9px; font-size:13.5px; font-weight:500; color:#3d4152; text-align:left; transition:background .15s,color .15s; }
  .nav-btn svg{ color:var(--faint); transition:color .15s; }
  .nav-btn:hover, .side-item:hover{ background:#f2f4fa; }
  .nav-btn.active{ background:var(--brand-soft); color:var(--brand-dark); font-weight:600; }
  .nav-btn.active svg{ color:var(--brand-dark); }
  .side-item .dot{ width:9px; height:9px; border-radius:3px; flex-shrink:0; }
  .side-item .count-pill{ margin-left:auto; font-size:11px; font-weight:600; color:var(--muted); background:#f1f3f9; padding:1px 8px; border-radius:20px; }
  .side-item.active{ background:var(--brand-soft); color:var(--brand-dark); }
  .side-item.active .count-pill{ background:#fff; color:var(--brand-dark); }
  .member-item{ gap:11px; }
  .member-item .m-info{ flex:1; min-width:0; }
  .member-item .m-name{ font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .member-item .m-role{ font-size:11px; color:var(--faint); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .member-item.active{ background:var(--brand-soft); }
  .mini-role{ font-size:8.5px; font-weight:800; letter-spacing:.05em; padding:1.5px 5px; border-radius:5px; margin-left:5px; vertical-align:1px; }
  .mini-role.admin{ background:var(--admin-soft); color:var(--admin); }
  .mini-role.user{ background:var(--user-soft); color:var(--userc); }
  .avatar{ border-radius:50%; color:#fff; display:inline-grid; place-items:center; font-weight:700; flex-shrink:0; user-select:none; box-shadow:inset 0 -2px 4px rgba(0,0,0,.12); }
  .av-22{ width:22px; height:22px; font-size:9px; } .av-26{ width:26px; height:26px; font-size:10px; }
  .av-30{ width:30px; height:30px; font-size:11px; } .av-32{ width:32px; height:32px; font-size:12px; }
  .av-44{ width:44px; height:44px; font-size:15px; }
  .side-foot{ padding:12px 18px; border-top:1px solid var(--line-soft); }
  .reset-link{ font-size:12px; color:var(--faint); display:flex; align-items:center; gap:6px; transition:color .15s; }
  .reset-link:hover{ color:#e5484d; }

  /* ============ MAIN ============ */
  .main{ flex:1; display:flex; flex-direction:column; min-width:0; }
  .topbar{ background:var(--surface); border-bottom:1px solid var(--line); padding:14px 24px 0; }
  .top-row1{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
  .burger{ display:none; padding:7px; border-radius:8px; color:var(--muted); }
  .burger:hover{ background:#f2f4fa; }
  .crumb h1{ font-size:19px; font-weight:700; letter-spacing:-.02em; line-height:1.15; }
  .crumb p{ font-size:12px; color:var(--muted); margin-top:1px; }
  .search-wrap{ position:relative; margin-left:auto; }
  .search-wrap > svg{ position:absolute; left:11px; top:50%; transform:translateY(-50%); color:var(--faint); pointer-events:none; }
  #searchInput{ width:200px; padding:8px 12px 8px 34px; border:1px solid var(--line); border-radius:10px; background:#fafbfe; font-size:13px; outline:none; transition:all .15s; }
  #searchInput:focus{ border-color:var(--brand); background:#fff; box-shadow:0 0 0 3px rgba(91,95,233,.14); width:240px; }

  .bell-btn{ position:relative; width:38px; height:38px; border-radius:11px; border:1px solid var(--line); background:#fff; display:grid; place-items:center; color:#4b5063; transition:all .15s; flex-shrink:0; }
  .bell-btn:hover{ border-color:#c9cdf0; box-shadow:var(--shadow-sm); color:var(--brand); }
  .bell-badge{ position:absolute; top:-5px; right:-5px; min-width:17px; height:17px; border-radius:9px; background:#e5484d; color:#fff; font-size:9.5px; font-weight:800; display:grid; place-items:center; padding:0 4px; border:2px solid #fff; animation:pop .25s ease; }

  .notif-panel{ position:fixed; z-index:220; width:min(350px, calc(100vw - 20px)); background:#fff; border:1px solid var(--line); border-radius:15px; box-shadow:var(--shadow-lg); animation:pop .18s ease; overflow:hidden; }
  .np-head{ display:flex; align-items:center; gap:6px; padding:12px 14px 9px; border-bottom:1px solid var(--line-soft); }
  .np-head b{ font-size:13.5px; }
  .np-tabs{ display:flex; gap:2px; background:#eff1f7; padding:2.5px; border-radius:9px; margin-left:auto; }
  .np-tabs button{ font-size:11px; font-weight:700; padding:4px 10px; border-radius:7px; color:var(--muted); }
  .np-tabs button.active{ background:#fff; color:var(--text); box-shadow:var(--shadow-sm); }
  .np-mark{ font-size:11px; font-weight:700; color:var(--brand); padding:4px 6px; border-radius:6px; }
  .np-mark:hover{ background:var(--brand-soft); }
  .np-body{ max-height:380px; overflow-y:auto; }
  .np-body::-webkit-scrollbar{ width:7px; } .np-body::-webkit-scrollbar-thumb{ background:#dfe2ee; border-radius:6px; }
  .np-item{ display:flex; gap:10px; padding:11px 14px; border-bottom:1px solid var(--line-soft); cursor:pointer; transition:background .13s; width:100%; text-align:left; }
  .np-item:hover{ background:#f8f9fd; }
  .np-item.unread{ background:#f5f6ff; }
  .np-item.unread:hover{ background:#eef0ff; }
  .np-ico{ width:30px; height:30px; border-radius:9px; display:grid; place-items:center; flex-shrink:0; }
  .np-txt{ flex:1; min-width:0; }
  .np-sub{ font-size:12.5px; font-weight:700; line-height:1.35; }
  .np-body-t{ font-size:11.5px; color:var(--muted); margin-top:2px; line-height:1.45; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .np-time{ font-size:10px; color:var(--faint); margin-top:4px; font-weight:600; }
  .np-dot{ width:8px; height:8px; border-radius:50%; background:var(--brand); flex-shrink:0; margin-top:5px; }
  .np-dot.off{ background:transparent; }
  .np-empty{ text-align:center; color:var(--faint); font-size:12.5px; padding:34px 20px; }
  .em-status{ font-size:9px; font-weight:800; letter-spacing:.05em; padding:2px 7px; border-radius:5px; text-transform:uppercase; }
  .em-status.simulated{ background:#f1f3f7; color:var(--muted); }
  .em-status.sent{ background:#e9f9ee; color:#2f9e44; }
  .em-status.failed{ background:#ffe9e9; color:#d92d20; }

  .user-chip{ display:flex; align-items:center; gap:8px; padding:4px 10px 4px 5px; border:1px solid var(--line); border-radius:12px; background:#fff; transition:all .15s; flex-shrink:0; }
  .user-chip:hover{ border-color:#c9cdf0; box-shadow:var(--shadow-sm); }
  .u-name{ font-size:12.5px; font-weight:700; }
  .user-chip .chev{ color:var(--faint); }
  .user-menu{ position:fixed; z-index:220; width:290px; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-lg); padding:14px; animation:pop .18s ease; }
  .um-head{ display:flex; align-items:center; gap:11px; padding-bottom:11px; border-bottom:1px solid var(--line-soft); }
  .um-head .n{ font-size:13.5px; font-weight:700; }
  .um-head .r{ font-size:11px; color:var(--faint); margin-top:1px; word-break:break-all; }
  .um-set{ padding:11px 0 4px; border-bottom:1px solid var(--line-soft); }
  .um-set-row{ display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12px; font-weight:600; color:#3d4152; padding:4px 0; }
  .um-set-row small{ display:block; font-weight:500; color:var(--faint); font-size:10.5px; margin-top:1px; }
  .um-endpoint{ width:100%; margin-top:7px; padding:7px 10px; font-size:11.5px; }
  .switch{ position:relative; width:40px; height:23px; border-radius:20px; background:#d9dcea; transition:background .2s; flex-shrink:0; }
  .switch::after{ content:''; position:absolute; top:2.5px; left:3px; width:18px; height:18px; border-radius:50%; background:#fff; transition:left .2s; box-shadow:0 1px 3px rgba(0,0,0,.25); }
  .switch.on{ background:#7048e8; } .switch.on::after{ left:19px; }
  .switch.mini{ width:34px; height:20px; } .switch.mini::after{ width:15px; height:15px; } .switch.mini.on::after{ left:16px; }
  .um-perms{ padding:10px 0 4px; }
  .um-perm{ display:flex; gap:8px; align-items:flex-start; font-size:11.5px; color:var(--muted); padding:3.5px 0; line-height:1.45; }
  .um-perm svg{ color:#2f9e44; flex-shrink:0; margin-top:1.5px; }
  .um-out{ margin-top:9px; width:100%; display:flex; align-items:center; justify-content:center; gap:7px; font-size:12.5px; font-weight:700; color:#e5484d; background:#fff5f5; border:1px solid #ffd9d9; padding:9px; border-radius:10px; transition:all .15s; }
  .um-out:hover{ background:#ffe9e9; }
  .role-badge{ font-size:9.5px; font-weight:800; letter-spacing:.06em; padding:4px 8px; border-radius:7px; display:inline-flex; gap:4.5px; align-items:center; flex-shrink:0; }
  .role-badge.admin{ background:var(--admin-soft); color:var(--admin); }
  .role-badge.user{ background:var(--user-soft); color:var(--userc); }

  .btn-primary{ display:inline-flex; align-items:center; gap:7px; background:var(--brand); color:#fff; font-weight:600; font-size:13.5px; padding:9px 16px; border-radius:10px; box-shadow:0 4px 12px rgba(91,95,233,.32); transition:all .15s; flex-shrink:0; }
  .btn-primary:hover{ background:var(--brand-dark); transform:translateY(-1px); box-shadow:0 6px 16px rgba(91,95,233,.4); }
  .btn-primary:active{ transform:translateY(0); }
  .btn-ghost{ display:inline-flex; align-items:center; gap:6px; font-weight:600; font-size:13px; padding:8px 14px; border-radius:10px; border:1px solid var(--line); color:#4b5063; background:#fff; transition:all .15s; }
  .btn-ghost:hover{ background:#f5f6fa; border-color:#d8dbe8; }
  .top-row2{ display:flex; align-items:center; gap:12px; margin-top:14px; flex-wrap:wrap; }
  .tabs{ display:flex; gap:2px; background:#eff1f7; padding:3px; border-radius:11px; }
  .tab{ display:flex; align-items:center; gap:6px; padding:6px 13px; border-radius:8px; font-size:12.5px; font-weight:600; color:var(--muted); transition:all .18s; white-space:nowrap; }
  .tab:hover{ color:var(--text); }
  .tab.active{ background:#fff; color:var(--text); box-shadow:var(--shadow-sm); }
  .tab.active svg{ color:var(--brand); }
  .filter-group{ display:flex; align-items:center; gap:8px; margin-left:auto; flex-wrap:wrap; }
  .mem-stack{ display:flex; align-items:center; }
  .mem-btn{ padding:2px; border-radius:50%; transition:transform .15s; position:relative; margin-left:-6px; }
  .mem-btn:first-child{ margin-left:0; }
  .mem-btn .avatar{ border:2px solid #fff; transition:box-shadow .15s; }
  .mem-btn:hover{ transform:translateY(-2px); z-index:2; }
  .mem-btn.active .avatar{ box-shadow:0 0 0 2px #fff, 0 0 0 4.5px var(--brand); }
  .mem-btn.active::after{ content:''; position:absolute; right:0; bottom:0; width:9px; height:9px; border-radius:50%; background:#2f9e44; border:2px solid #fff; }
  select.ctl{ padding:7px 30px 7px 11px; border:1px solid var(--line); border-radius:9px; background:#fff; font-size:12.5px; font-weight:500; color:#4b5063; outline:none; cursor:pointer; appearance:none; flex-shrink:0;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236d7387' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:right 9px center; transition:border-color .15s; }
  select.ctl:hover{ border-color:#c9cde0; }
  select.ctl:focus{ border-color:var(--brand); box-shadow:0 0 0 3px rgba(91,95,233,.12); }
  .chip-row{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:10px 0 12px; min-height:0; }
  .chip-row:empty{ display:none; }
  .f-chip{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; background:var(--brand-soft); color:var(--brand-dark); padding:4px 6px 4px 11px; border-radius:20px; animation:pop .2s ease; white-space:nowrap; flex-shrink:0; }
  .f-chip button{ display:grid; place-items:center; width:16px; height:16px; border-radius:50%; color:var(--brand-dark); }
  .f-chip button:hover{ background:rgba(91,95,233,.18); }
  .clear-all{ font-size:12px; font-weight:600; color:var(--muted); text-decoration:underline; white-space:nowrap; flex-shrink:0; }
  .clear-all:hover{ color:#e5484d; }

  .kpi-strip{ display:flex; gap:14px; padding:18px 24px 0; flex-wrap:wrap; }
  .kpi{ flex:1; min-width:150px; background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:13px 16px; display:flex; align-items:center; gap:12px; box-shadow:var(--shadow-sm); animation:fadeUp .35s ease both; }
  .kpi:nth-child(2){ animation-delay:.04s; } .kpi:nth-child(3){ animation-delay:.08s; } .kpi:nth-child(4){ animation-delay:.12s; }
  .kpi-ico{ width:38px; height:38px; border-radius:10px; display:grid; place-items:center; flex-shrink:0; }
  .kpi-num{ font-family:'Space Grotesk'; font-size:21px; font-weight:700; line-height:1; letter-spacing:-.02em; }
  .kpi-lbl{ font-size:11.5px; color:var(--muted); font-weight:500; margin-top:3px; }

  .col-jump{ display:none; gap:7px; overflow-x:auto; padding:14px 24px 0; scrollbar-width:none; background:var(--bg); flex-shrink:0; }
  .col-jump::-webkit-scrollbar{ display:none; }
  .col-jump.show{ display:flex; }
  .jump-btn{ display:flex; align-items:center; gap:6px; white-space:nowrap; font-size:12px; font-weight:700; color:var(--muted); background:#fff; border:1px solid var(--line); padding:6px 12px; border-radius:20px; box-shadow:var(--shadow-sm); transition:all .15s; flex-shrink:0; }
  .jump-btn .dot{ width:8px; height:8px; border-radius:50%; }
  .jump-btn b{ font-weight:700; opacity:.6; }
  .jump-btn.active{ background:var(--text); color:#fff; border-color:var(--text); }

  .view-wrap{ flex:1; overflow:auto; padding:18px 24px 24px; -webkit-overflow-scrolling:touch; }
  .view-wrap::-webkit-scrollbar{ height:10px; width:10px; }
  .view-wrap::-webkit-scrollbar-thumb{ background:#d8dbe8; border-radius:8px; }

  .board{ display:flex; gap:16px; align-items:flex-start; min-height:100%; position:relative; }
  .col{ width:295px; flex-shrink:0; background:#eef0f6; border-radius:14px; padding:0 0 8px; }
  .col-head{ display:flex; align-items:center; gap:8px; padding:12px 12px 10px; }
  .col-dot{ width:9px; height:9px; border-radius:3px; }
  .col-name{ font-size:13px; font-weight:700; letter-spacing:.01em; }
  .col-count{ font-size:11px; font-weight:700; color:var(--muted); background:#fff; border-radius:20px; padding:1px 8px; box-shadow:var(--shadow-sm); }
  .col-add{ margin-left:auto; width:24px; height:24px; border-radius:7px; display:grid; place-items:center; color:var(--muted); transition:all .15s; }
  .col-add:hover{ background:#fff; color:var(--brand); transform:scale(1.08); }
  .col-body{ padding:2px 8px 4px; min-height:110px; border-radius:10px; transition:background .15s, outline .15s; outline:2px dashed transparent; outline-offset:-4px; }
  .col-body.drag-over{ background:#e6e8f2; outline-color:#b9bde0; }
  .col-empty{ font-size:12px; color:var(--faint); text-align:center; padding:22px 0; border:1.5px dashed #d5d9e8; border-radius:10px; margin:2px 2px 6px; }

  .card{ background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:12px 13px; margin-bottom:8px; cursor:pointer; user-select:none; box-shadow:var(--shadow-sm); transition:box-shadow .16s, transform .16s, border-color .16s, opacity .16s; animation:fadeUp .3s ease both; touch-action:manipulation; }
  .card[draggable="true"]{ cursor:grab; }
  .card:hover{ transform:translateY(-2px); box-shadow:var(--shadow-md); border-color:#d5d9ec; }
  .card.dragging{ opacity:.45; transform:rotate(2.5deg) scale(1.02); box-shadow:var(--shadow-lg); }
  .card-top{ display:flex; align-items:center; gap:5px; flex-wrap:wrap; margin-bottom:8px; }
  .card-code{ font-size:10.5px; font-weight:700; color:var(--faint); letter-spacing:.04em; margin-right:auto; }
  .tag{ font-size:10.5px; font-weight:600; padding:2.5px 8px; border-radius:6px; }
  .prio{ font-size:10.5px; font-weight:700; padding:2.5px 8px; border-radius:6px; display:inline-flex; align-items:center; gap:4px; }
  .move-btn{ display:none; width:26px; height:26px; border-radius:7px; place-items:center; color:var(--muted); background:#f4f5fa; transition:all .15s; flex-shrink:0; margin-left:2px; }
  .move-btn:active{ transform:scale(.9); background:var(--brand-soft); color:var(--brand); }
  .lock-ico{ width:22px; height:22px; border-radius:6px; display:grid; place-items:center; color:var(--faint); background:#f4f5fa; flex-shrink:0; }
  .wf-chip{ display:inline-flex; align-items:center; gap:4.5px; font-size:10.5px; font-weight:700; padding:2.5px 8px; border-radius:6px; background:#f1ebff; color:#7048e8; }
  .wf-chip.rev{ background:#ffe9e9; color:#d92d20; }
  .wf-chip.ok{ background:#e9f9ee; color:#2f9e44; }
  .card-title{ font-size:13.5px; font-weight:600; line-height:1.35; margin-bottom:4px; }
  .card-desc{ font-size:12px; color:var(--muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-bottom:9px; }
  .prog-row{ display:flex; align-items:center; gap:8px; margin-bottom:9px; }
  .prog-bar{ flex:1; height:5px; border-radius:5px; background:#eef0f6; overflow:hidden; }
  .prog-fill{ height:100%; border-radius:5px; background:linear-gradient(90deg,#6a6ef0,#8f5be8); transition:width .4s ease; }
  .prog-num{ font-size:10.5px; font-weight:700; color:var(--muted); min-width:28px; text-align:right; }
  .card-foot{ display:flex; align-items:center; gap:8px; border-top:1px solid var(--line-soft); padding-top:9px; }
  .due-chip{ display:inline-flex; align-items:center; gap:4.5px; font-size:11px; font-weight:600; color:var(--muted); background:#f4f5fa; padding:3px 8px; border-radius:7px; }
  .due-chip.overdue{ background:#ffe9e9; color:#d92d20; }
  .due-chip.soon{ background:#fff6e0; color:#b7791f; }
  .cmt-chip{ display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:600; color:var(--muted); background:#f4f5fa; padding:3px 8px; border-radius:7px; }
  .card-foot .avatar{ margin-left:auto; }
  .done-badge{ display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:700; color:#2f9e44; background:#e9f9ee; padding:3px 8px; border-radius:7px; margin-left:auto; }

  .status-pop{ position:fixed; z-index:160; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow-lg); padding:6px; min-width:158px; animation:pop .18s ease; }
  .status-pop .pop-label{ font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--faint); padding:5px 10px 7px; }
  .status-pop button{ display:flex; align-items:center; gap:9px; width:100%; padding:9px 10px; border-radius:8px; font-size:13px; font-weight:600; color:#3d4152; }
  .status-pop button:active, .status-pop button:hover{ background:#f2f4fa; }
  .status-pop .dot{ width:9px; height:9px; border-radius:3px; flex-shrink:0; }

  .list-group{ background:var(--surface); border:1px solid var(--line); border-radius:14px; margin-bottom:16px; overflow:hidden; box-shadow:var(--shadow-sm); animation:fadeUp .3s ease both; }
  .group-head{ display:flex; align-items:center; gap:9px; padding:11px 16px; border-bottom:1px solid var(--line-soft); }
  .group-head .g-name{ font-size:13px; font-weight:700; }
  .group-head .g-count{ font-size:11px; font-weight:700; color:var(--muted); }
  .group-bar{ width:4px; height:18px; border-radius:3px; }
  .list-head-row{ display:grid; grid-template-columns:36px minmax(0,1.7fr) 160px 105px 95px 130px; gap:10px; padding:7px 16px 7px 14px; font-size:10.5px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--faint); border-bottom:1px solid var(--line-soft); }
  .list-row{ display:grid; grid-template-columns:36px minmax(0,1.7fr) 160px 105px 95px 130px; gap:10px; padding:11px 16px 11px 14px; align-items:center; border-bottom:1px solid var(--line-soft); cursor:pointer; transition:background .13s; }
  .list-row:last-child{ border-bottom:none; }
  .list-row:hover{ background:#f8f9fd; }
  .chk{ width:20px; height:20px; border-radius:6px; border:2px solid #cfd3e4; display:grid; place-items:center; color:transparent; transition:all .16s; background:#fff; }
  .chk:hover{ border-color:var(--brand); transform:scale(1.08); }
  .chk.on{ background:#2f9e44; border-color:#2f9e44; color:#fff; }
  .chk-lock{ width:20px; height:20px; display:grid; place-items:center; color:#d0d4e2; }
  .lr-title{ font-size:13.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .list-row.is-done .lr-title{ text-decoration:line-through; color:var(--faint); }
  .lr-tags{ display:flex; gap:4px; margin-top:4px; flex-wrap:wrap; }
  .lr-assign{ display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:500; color:#4b5063; min-width:0; }
  .lr-assign span{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .lr-prog{ display:flex; align-items:center; gap:8px; }
  .lr-prog .prog-bar{ width:64px; flex:none; }

  .cal-toolbar{ display:flex; align-items:center; gap:10px; margin-bottom:14px; flex-wrap:wrap; }
  .cal-title{ font-size:18px; font-weight:700; letter-spacing:-.01em; min-width:170px; }
  .cal-nav{ display:flex; gap:4px; }
  .cal-nav button{ width:32px; height:32px; border-radius:9px; border:1px solid var(--line); background:#fff; display:grid; place-items:center; color:#4b5063; transition:all .14s; }
  .cal-nav button:hover{ border-color:var(--brand); color:var(--brand); }
  .cal-grid{ background:var(--surface); border:1px solid var(--line); border-radius:14px; overflow:hidden; box-shadow:var(--shadow-sm); }
  .cal-dow{ display:grid; grid-template-columns:repeat(7,1fr); border-bottom:1px solid var(--line); }
  .cal-dow div{ padding:9px 12px; font-size:11px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--faint); }
  .cal-cells{ display:grid; grid-template-columns:repeat(7,1fr); }
  .cal-cell{ min-height:112px; border-right:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); padding:7px 7px 4px; cursor:pointer; transition:background .13s; position:relative; }
  .cal-cell:nth-child(7n){ border-right:none; }
  .cal-cell:hover{ background:#f8f9fd; }
  .cal-cell.dim{ background:#fbfbfe; } .cal-cell.dim .cal-dnum{ color:#c8ccdb; }
  .cal-dnum{ font-size:12px; font-weight:600; color:var(--muted); width:24px; height:24px; display:grid; place-items:center; border-radius:8px; margin-bottom:4px; }
  .cal-cell.today .cal-dnum{ background:var(--brand); color:#fff; box-shadow:0 3px 8px rgba(91,95,233,.4); }
  .cal-chip{ font-size:10.5px; font-weight:600; padding:3px 6px 3px 7px; border-radius:5px; margin-bottom:3px; border-left:3px solid; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transition:transform .12s; display:block; width:100%; text-align:left; }
  .cal-chip:hover{ transform:translateX(2px); }
  .cal-chip.dim{ opacity:.55; }
  .more-btn{ font-size:10.5px; font-weight:700; color:var(--brand); padding:1px 6px; border-radius:5px; }
  .more-btn:hover{ background:var(--brand-soft); }

  .dash-grid{ display:grid; grid-template-columns:repeat(12,1fr); gap:16px; }
  .dash-card{ background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:18px; box-shadow:var(--shadow-sm); animation:fadeUp .35s ease both; }
  .dc-3{ grid-column:span 3; } .dc-4{ grid-column:span 4; } .dc-5{ grid-column:span 5; } .dc-12{ grid-column:span 12; }
  .dc-title{ font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--faint); margin-bottom:14px; }
  .dist-row{ margin-bottom:13px; }
  .dist-top{ display:flex; justify-content:space-between; font-size:12.5px; font-weight:600; margin-bottom:5px; }
  .dist-top b{ color:var(--muted); }
  .dist-bar{ height:8px; border-radius:6px; background:#f0f1f7; overflow:hidden; }
  .dist-fill{ height:100%; border-radius:6px; transition:width .6s cubic-bezier(.2,.8,.2,1); }
  .donut-wrap{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
  .donut-svg{ transform:rotate(-90deg); }
  .donut-center{ font-family:'Space Grotesk'; }
  .legend{ display:flex; flex-direction:column; gap:8px; }
  .legend-row{ display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:500; }
  .legend-row .sw{ width:10px; height:10px; border-radius:3px; }
  .legend-row b{ margin-left:auto; padding-left:14px; }
  .wl-row{ display:flex; align-items:center; gap:10px; margin-bottom:12px; }
  .wl-name{ font-size:12.5px; font-weight:600; width:110px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex-shrink:0; }
  .wl-bar{ flex:1; height:9px; border-radius:6px; background:#f0f1f7; overflow:hidden; }
  .wl-fill{ height:100%; border-radius:6px; transition:width .6s cubic-bezier(.2,.8,.2,1); }
  .wl-num{ font-size:12px; font-weight:700; color:var(--muted); width:18px; text-align:right; }
  .up-row{ display:flex; align-items:center; gap:11px; padding:9px 6px; border-radius:9px; cursor:pointer; transition:background .13s; }
  .up-row:hover{ background:#f6f7fc; }
  .up-date{ width:46px; flex-shrink:0; text-align:center; background:#f2f4fa; border-radius:9px; padding:5px 2px; }
  .up-date b{ display:block; font-family:'Space Grotesk'; font-size:15px; line-height:1; }
  .up-date span{ font-size:9.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--faint); }
  .up-date.hot{ background:#ffe9e9; } .up-date.hot span{ color:#d92d20; } .up-date.hot b{ color:#d92d20; }
  .up-title{ flex:1; font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .empty-note{ font-size:13px; color:var(--faint); text-align:center; padding:26px 0; }
  .big-empty{ text-align:center; padding:70px 20px; color:var(--muted); animation:fadeUp .3s ease; }
  .big-empty .ring{ width:74px; height:74px; margin:0 auto 16px; border-radius:50%; background:var(--brand-soft); display:grid; place-items:center; color:var(--brand); }
  .big-empty h3{ font-size:16px; font-weight:700; color:var(--text); margin-bottom:5px; }
  .big-empty p{ font-size:13px; margin-bottom:16px; }

  /* modal */
  .overlay{ position:fixed; inset:0; background:rgba(20,22,34,.45); backdrop-filter:blur(3px); display:grid; place-items:center; z-index:100; opacity:0; pointer-events:none; transition:opacity .2s; }
  .overlay.open{ opacity:1; pointer-events:auto; }
  .modal{ width:min(560px, calc(100vw - 32px)); max-height:calc(100vh - 48px); overflow-y:auto; background:#fff; border-radius:18px; box-shadow:var(--shadow-lg); transform:translateY(14px) scale(.97); transition:transform .22s cubic-bezier(.2,.9,.3,1.2); }
  .overlay.open .modal{ transform:none; }
  .modal::-webkit-scrollbar{ width:8px; } .modal::-webkit-scrollbar-thumb{ background:#dfe2ee; border-radius:8px; }
  .modal-head{ display:flex; align-items:center; padding:20px 22px 0; gap:10px; }
  .modal-head h2{ font-size:17px; font-weight:700; letter-spacing:-.01em; }
  .modal-x{ margin-left:auto; width:32px; height:32px; border-radius:9px; display:grid; place-items:center; color:var(--muted); transition:all .14s; }
  .modal-x:hover{ background:#f2f4fa; color:var(--text); }
  .modal-body{ padding:16px 22px 6px; }
  .field{ margin-bottom:15px; }
  .field label{ display:block; font-size:11px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--faint); margin-bottom:6px; }
  .in{ width:100%; padding:9px 12px; border:1px solid var(--line); border-radius:10px; font-size:13.5px; background:#fafbfe; outline:none; transition:all .15s; }
  .in:focus{ border-color:var(--brand); background:#fff; box-shadow:0 0 0 3px rgba(91,95,233,.14); }
  .in:disabled{ opacity:.7; background:#f2f3f8; cursor:not-allowed; }
  .in.err{ border-color:#e5484d; box-shadow:0 0 0 3px rgba(229,72,77,.13); animation:shake .3s; }
  textarea.in{ resize:vertical; min-height:66px; }
  .f-row{ display:flex; gap:12px; } .f-row .field{ flex:1; }
  .seg{ display:flex; gap:6px; flex-wrap:wrap; }
  .seg-btn{ flex:1; padding:7px 8px; border-radius:9px; border:1.5px solid var(--line); font-size:12px; font-weight:700; color:var(--muted); background:#fff; transition:all .14s; display:flex; align-items:center; justify-content:center; gap:5px; }
  .seg-btn:hover{ transform:translateY(-1px); }
  .seg-btn .pdot{ width:8px; height:8px; border-radius:50%; }
  .av-pick{ display:flex; gap:8px; flex-wrap:wrap; }
  .av-pick-btn{ display:flex; flex-direction:column; align-items:center; gap:5px; padding:7px 6px; border-radius:11px; border:1.5px solid transparent; transition:all .14s; width:64px; }
  .av-pick-btn:hover{ background:#f5f6fb; }
  .av-pick-btn.active{ background:var(--brand-soft); border-color:#c7cbf5; }
  .av-pick-btn span{ font-size:10px; font-weight:600; color:var(--muted); max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .tag-pick{ display:flex; gap:7px; flex-wrap:wrap; }
  .tag-pick button{ font-size:12px; font-weight:600; padding:6px 12px; border-radius:20px; border:1.5px solid var(--line); background:#fff; color:var(--muted); transition:all .14s; }
  .tag-pick button:hover{ border-color:#c0c4d8; transform:translateY(-1px); }
  .tag-pick button.on{ border-color:transparent; }
  .range-wrap{ display:flex; align-items:center; gap:14px; }
  input[type=range]{ flex:1; appearance:none; height:6px; border-radius:6px; background:linear-gradient(90deg,var(--brand) var(--pct,0%), #eef0f6 var(--pct,0%)); outline:none; }
  input[type=range]::-webkit-slider-thumb{ appearance:none; width:18px; height:18px; border-radius:50%; background:#fff; border:2.5px solid var(--brand); box-shadow:0 2px 6px rgba(91,95,233,.4); cursor:pointer; }
  input[type=range]:disabled{ opacity:.6; }
  .range-val{ font-family:'Space Grotesk'; font-weight:700; font-size:15px; min-width:44px; text-align:right; color:var(--brand-dark); }
  .modal-foot{ display:flex; align-items:center; gap:9px; padding:6px 22px 20px; }
  .btn-danger{ color:#e5484d; font-weight:600; font-size:13px; padding:8px 13px; border-radius:9px; display:flex; align-items:center; gap:6px; transition:background .14s; }
  .btn-danger:hover{ background:#ffe9e9; }
  .modal-foot .spacer{ flex:1; }
  .ro-note{ display:flex; gap:9px; align-items:flex-start; background:#fff8e6; border:1px solid #f5e3ae; color:#8a6d1a; font-size:12px; font-weight:500; line-height:1.5; padding:10px 12px; border-radius:10px; margin-bottom:14px; }
  .ro-note svg{ flex-shrink:0; margin-top:1.5px; }
  .modal-ro .seg, .modal-ro .av-pick, .modal-ro .tag-pick, .modal-ro .range-wrap input[type=range]{ pointer-events:none; opacity:.65; }

  .cm-list{ display:flex; flex-direction:column; gap:10px; max-height:190px; overflow-y:auto; margin-bottom:10px; padding-right:2px; }
  .cm-list::-webkit-scrollbar{ width:6px; } .cm-list::-webkit-scrollbar-thumb{ background:#dfe2ee; border-radius:6px; }
  .cm-row{ display:flex; gap:9px; animation:fadeUp .25s ease; }
  .cm-bubble{ background:#f6f7fb; border:1px solid var(--line-soft); border-radius:4px 12px 12px 12px; padding:8px 11px; flex:1; min-width:0; }
  .cm-row.mine .cm-bubble{ background:var(--brand-soft); border-color:#dcdffb; }
  .cm-head{ font-size:11px; font-weight:700; color:#4b5063; display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
  .cm-head span{ color:var(--faint); font-weight:500; }
  .cm-text{ font-size:12.5px; margin-top:3px; line-height:1.5; word-wrap:break-word; }
  .cm-input-row{ display:flex; gap:8px; }
  .cm-empty{ font-size:12px; color:var(--faint); text-align:center; padding:10px 0 12px; }

  .wf-toggle-row{ display:flex; align-items:center; justify-content:space-between; background:#fafbfe; border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin-bottom:10px; gap:10px; }
  .wf-tl{ font-size:13px; font-weight:600; display:flex; gap:8px; align-items:center; color:#3d4152; }
  .wf-tl svg{ color:#7048e8; }
  .wf-ts{ font-size:11px; font-weight:700; color:var(--faint); background:#eef0f6; padding:2px 8px; border-radius:20px; }
  .wf-ts.on{ background:#f1ebff; color:#7048e8; }
  .wf-step-edit{ display:flex; gap:7px; align-items:center; margin-bottom:8px; }
  .wf-num{ width:22px; height:22px; border-radius:50%; background:#f1ebff; color:#7048e8; font-size:11px; font-weight:700; display:grid; place-items:center; flex-shrink:0; }
  .wf-step-edit .in{ padding:7px 10px; font-size:12.5px; }
  .wf-label{ flex:2; min-width:0; }
  .wf-who{ flex:1; min-width:86px; cursor:pointer; }
  .wf-del{ width:27px; height:27px; border-radius:7px; display:grid; place-items:center; color:var(--faint); flex-shrink:0; transition:all .14s; }
  .wf-del:hover{ background:#ffe9e9; color:#e5484d; }
  .wf-addrow{ display:flex; gap:8px; margin-top:2px; }
  .wf-add{ font-size:12.5px; font-weight:700; color:#7048e8; padding:7px 12px; border-radius:9px; border:1.5px dashed #cdbcf5; transition:all .15s; flex:1; }
  .wf-add:hover{ background:#f7f3ff; }
  .wf-template{ font-size:12px; font-weight:600; color:var(--muted); padding:7px 10px; border-radius:9px; border:1.5px solid var(--line); transition:all .15s; white-space:nowrap; }
  .wf-template:hover{ background:#f5f6fa; }
  .wf-hint{ font-size:11.5px; color:var(--faint); margin-top:9px; line-height:1.5; }
  .wf-banner{ display:flex; align-items:center; gap:9px; padding:11px 13px; border-radius:10px; font-size:12.5px; font-weight:600; margin-bottom:10px; flex-wrap:wrap; }
  .wf-banner.ok{ background:#e9f9ee; color:#2b8a3e; }
  .wf-banner.rev{ background:#ffe9e9; color:#b42318; }
  .wf-banner .btn-primary{ margin-left:auto; padding:7px 12px; font-size:12px; }
  .wf-timeline{ border:1px solid var(--line); border-radius:12px; padding:2px 14px; background:#fafbfe; }
  .wf-step{ display:flex; gap:12px; padding:13px 0; border-bottom:1px dashed var(--line); }
  .wf-step:last-child{ border-bottom:none; }
  .wf-dot{ width:27px; height:27px; border-radius:50%; display:grid; place-items:center; font-size:11px; font-weight:700; flex-shrink:0; margin-top:1px; }
  .wf-step.pending .wf-dot{ background:#eef0f6; color:var(--faint); }
  .wf-step.active .wf-dot{ background:var(--brand); color:#fff; box-shadow:0 0 0 4px rgba(91,95,233,.16); }
  .wf-step.approved .wf-dot{ background:#e9f9ee; color:#2f9e44; }
  .wf-step.rejected .wf-dot{ background:#ffe9e9; color:#e5484d; }
  .wf-step-body{ flex:1; min-width:0; }
  .wf-step-label{ font-size:13px; font-weight:700; }
  .wf-step-meta{ display:flex; align-items:center; gap:6px; font-size:11.5px; color:var(--muted); margin-top:4px; flex-wrap:wrap; }
  .wf-acting{ font-size:10px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; background:var(--brand-soft); color:var(--brand-dark); padding:2px 7px; border-radius:6px; }
  .wf-comment{ margin-top:8px; font-size:12px; background:#ffe9e9; color:#b42318; padding:8px 11px; border-radius:8px; line-height:1.5; }
  .wf-actions{ display:flex; gap:8px; margin-top:11px; flex-wrap:wrap; }
  .btn-approve{ background:#2f9e44; color:#fff; font-weight:700; font-size:12.5px; padding:8px 15px; border-radius:9px; display:inline-flex; gap:6px; align-items:center; box-shadow:0 3px 10px rgba(47,158,68,.3); transition:all .15s; }
  .btn-approve:hover{ filter:brightness(1.07); transform:translateY(-1px); }
  .btn-reject{ background:#fff; color:#e5484d; border:1.5px solid #ffc9c9; font-weight:700; font-size:12.5px; padding:8px 15px; border-radius:9px; display:inline-flex; gap:6px; align-items:center; transition:all .15s; }
  .btn-reject:hover{ background:#ffe9e9; }
  .btn-reject.solid{ background:#e5484d; color:#fff; border-color:#e5484d; }
  .wf-reject-box{ margin-top:11px; animation:fadeUp .2s ease; }
  .wf-reject-box textarea{ min-height:58px; font-size:12.5px; }
  .wf-history{ margin-top:12px; }
  .wf-history-title{ font-size:10.5px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--faint); margin-bottom:6px; }
  .wf-h-row{ font-size:11.5px; color:var(--muted); padding:3.5px 0; display:flex; gap:8px; line-height:1.45; }
  .wf-h-row b{ color:#4b5063; font-weight:700; flex-shrink:0; min-width:44px; }

  .toasts{ position:fixed; bottom:22px; right:22px; display:flex; flex-direction:column; gap:10px; z-index:320; }
  .toast{ background:#1d2030; color:#fff; font-size:13px; font-weight:500; padding:11px 16px; border-radius:12px; box-shadow:var(--shadow-lg); display:flex; align-items:center; gap:12px; max-width:min(340px, calc(100vw - 44px)); animation:toastIn .3s cubic-bezier(.2,.9,.3,1.2); cursor:default; }
  .toast.out{ animation:toastOut .25s ease forwards; }
  .toast .t-ico{ color:#6ee7a0; flex-shrink:0; }
  .toast.warn .t-ico{ color:#ffb02e; }
  .toast button{ color:#9ba3ff; font-weight:700; font-size:12.5px; letter-spacing:.03em; padding:3px 6px; border-radius:6px; flex-shrink:0; }
  .toast button:hover{ background:rgba(255,255,255,.1); }
  .backdrop{ position:fixed; inset:0; background:rgba(20,22,34,.35); z-index:50; display:none; }

  @keyframes fadeUp{ from{ opacity:0; transform:translateY(8px);} to{ opacity:1; transform:none;} }
  @keyframes pop{ from{ transform:scale(.85); opacity:0;} to{ transform:none; opacity:1;} }
  @keyframes shake{ 0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }
  @keyframes toastIn{ from{ opacity:0; transform:translateX(30px);} to{ opacity:1; transform:none;} }
  @keyframes toastOut{ to{ opacity:0; transform:translateY(8px);} }

  @media (max-width:1180px){ .dc-3{ grid-column:span 6; } .dc-4{ grid-column:span 6; } .dc-5{ grid-column:span 12; } }
  @media (max-width:920px){
    .sidebar{ position:fixed; left:0; top:0; bottom:0; transform:translateX(-102%); transition:transform .25s ease; box-shadow:var(--shadow-lg); }
    body.side-open .sidebar{ transform:none; }
    body.side-open .backdrop{ display:block; }
    .burger{ display:grid; }
    #searchInput{ width:130px; } #searchInput:focus{ width:150px; }
    .list-head-row{ display:none; }
    .list-row{ grid-template-columns:32px minmax(0,1fr); }
    .lr-assign,.lr-due-cell,.lr-prog,.list-row .prio-cell{ display:none; }
  }
  @media (max-width:760px){
    .topbar{ padding:10px 14px 0; }
    .top-row1{ gap:9px; }
    .crumb h1{ font-size:16px; } .crumb p{ font-size:11px; }
    .btn-primary{ padding:9px 12px; font-size:12.5px; }
    .u-name{ display:none; }
    .top-row2{ margin-top:10px; gap:8px; }
    .filter-group{ margin-left:0; width:100%; overflow-x:auto; flex-wrap:nowrap; padding-bottom:4px; scrollbar-width:none; }
    .filter-group::-webkit-scrollbar{ display:none; }
    .mem-stack{ flex-shrink:0; }
    .chip-row{ padding:8px 0 10px; overflow-x:auto; flex-wrap:nowrap; scrollbar-width:none; }
    .chip-row::-webkit-scrollbar{ display:none; }
    .kpi-strip{ padding:12px 14px 0; gap:9px; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
    .kpi-strip::-webkit-scrollbar{ display:none; }
    .kpi{ min-width:132px; flex:0 0 auto; padding:10px 12px; gap:10px; }
    .kpi-ico{ width:32px; height:32px; } .kpi-num{ font-size:18px; }
    .col-jump{ padding:10px 14px 0; }
    .view-wrap{ padding:12px 14px 20px; scroll-snap-type:x mandatory; scroll-padding-left:14px; overscroll-behavior-x:contain; }
    .board{ gap:12px; }
    .col{ width:84vw; scroll-snap-align:start; }
    .card-title{ font-size:14px; }
    .cal-grid{ min-width:680px; } .cal-cell{ min-height:96px; }
    .cal-title{ min-width:0; font-size:16px; }
    .dash-grid > .dash-card{ grid-column:span 12 !important; }
    .move-btn{ display:grid; }
  }
  @media (hover:none) and (pointer:coarse){ .move-btn{ display:grid; } }
  @media (max-width:560px){
    .tab span{ display:none; } .tab{ padding:7px 11px; }
    .f-row{ flex-direction:column; gap:0; }
    .search-wrap{ order:5; width:100%; }
    #searchInput, #searchInput:focus{ width:100%; }
    .modal{ border-radius:16px; }
    .modal-body{ padding:14px 16px 4px; }
    .modal-head{ padding:16px 16px 0; }
    .modal-foot{ padding:6px 16px 16px; }
    .wf-step-edit{ flex-wrap:wrap; }
    .wf-label{ flex:1 1 100%; order:2; }
    .wf-who{ order:3; }
    .role-pick{ grid-template-columns:1fr; }
    .toasts{ left:14px; right:14px; bottom:14px; align-items:center; }
  }