
  :root {
    --color-purple:#8a4cc1; --color-purple-light:#bd92e6;
    --color-amber:#e29e1d; --color-amber-light:#f2b948;
    --accent:var(--color-purple); --accent-ink:#fff; --accent-soft:rgba(138,76,193,.14);
    --bg:#f6f5f8; --card:#ffffff; --card-2:#edeaf2; --line:#e4e1ea;
    --g-we:rgba(18,21,32,.07);
    --text:#18151c; --muted:#56525f;
    --topbar:#ffffff;
    --bar-bg:#e4e1ea;
    --sidebar:#ffffff; --sidebar-text:#56525f; --sidebar-strong:#18151c; --sidebar-muted:#9a96a3; --sidebar-hover:#f1eef6;
    --radius:18px; --radius-lg:24px;
    --pad-card:18px 20px; --pad-tile:14px 16px;
    --shadow:0 1px 2px rgba(16,12,24,.05), 0 1px 3px rgba(16,12,24,.05);
    --sb-w:240px;
    --tb-h:56px; --stick-h:112px;
    --srch-max:560px;
    --sel-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%2356525f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.75 6 6.25 11 1.75'/%3E%3C/svg%3E");
  }
  :root[data-sidebar="full"]{ --sb-w:236px; }
  :root[data-sidebar="mini"]{ --sb-w:72px; }
  :root[data-sidebar="hidden"]{ --sb-w:0px; }
  :root[data-theme="dark"] {
    --accent-soft:rgba(138,76,193,.24);
    --bg:#0c0b0e; --card:#16141b; --card-2:#1c1a22; --line:#2a2733;
    --text:#f6f4f1; --muted:#aaa6b3;
    --g-we:rgba(255,255,255,.06);
    --topbar:#131218;
    --bar-bg:#2a2733;
    --sidebar:#16141b; --sidebar-text:#d7d3de; --sidebar-strong:#ffffff; --sidebar-muted:#8b8796; --sidebar-hover:rgba(255,255,255,.08);
    --shadow:0 1px 2px rgba(0,0,0,.4);
    --sel-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23aaa6b3' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.75 6 6.25 11 1.75'/%3E%3C/svg%3E");
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --accent-soft:rgba(138,76,193,.24);
      --bg:#0c0b0e; --card:#16141b; --card-2:#1c1a22; --line:#2a2733;
      --text:#f6f4f1; --muted:#aaa6b3;
      --g-we:rgba(255,255,255,.06);
      --topbar:#131218;
      --bar-bg:#2a2733;
      --sidebar:#16141b; --sidebar-text:#d7d3de; --sidebar-strong:#ffffff; --sidebar-muted:#8b8796; --sidebar-hover:rgba(255,255,255,.08);
      --shadow:0 1px 2px rgba(0,0,0,.4);
      --sel-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23aaa6b3' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.75 6 6.25 11 1.75'/%3E%3C/svg%3E");
    }
  }
  * { box-sizing:border-box; }
  html,body { height:100%; }
  body { margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif; color:var(--text); background:var(--bg); -webkit-text-size-adjust:100%; }
  a { color:var(--accent); text-decoration:none; }
  a:hover { text-decoration:underline; }
  svg { display:block; }
  .ic svg { width:20px; height:20px; }
  .shell { min-height:100dvh; }
  .sidebar {
    position:fixed; z-index:50; top:0; bottom:0; left:0; width:240px;
    background:var(--sidebar); color:var(--sidebar-text);
    display:flex; flex-direction:column; padding:10px 8px; overflow-y:auto;
    transform:translateX(-100%); transition:transform .22s ease;
  }
  :root[data-sidebar="full"] .sidebar, :root[data-sidebar="mini"] .sidebar { transform:none; }
  .scrim { position:fixed; inset:0; z-index:40; background:rgba(0,0,0,.5); opacity:0; visibility:hidden; transition:.2s; }
  :root[data-sidebar="full"] .scrim, :root[data-sidebar="mini"] .scrim { opacity:1; visibility:visible; }
  .brand { display:flex; align-items:center; gap:11px; padding:6px 10px 10px; white-space:nowrap; }
  .brand-logo { width:32px; height:32px; flex:none; border-radius:8px; object-fit:contain; }
  .brand-text { display:flex; flex-direction:column; line-height:1.15; min-width:0; }
  .brand-name { color:var(--sidebar-strong); font-weight:700; font-size:15px; letter-spacing:.02em; text-transform:uppercase; }
  .brand-sub { color:var(--sidebar-muted); font-size:11.5px; }
  .sidebar nav { display:flex; flex-direction:column; gap:2px; }
  .sidebar nav a { display:flex; align-items:center; gap:12px; padding:8px 14px; border-radius:999px; color:var(--sidebar-text); font-size:14px; white-space:nowrap; }
  .sidebar nav a .ic { flex:none; color:var(--sidebar-muted); }
  .sidebar nav a .label { min-width:0; overflow:hidden; text-overflow:ellipsis; }
  .sidebar nav a:hover { background:var(--sidebar-hover); color:var(--sidebar-strong); text-decoration:none; }
  .sidebar nav a:hover .ic { color:var(--sidebar-strong); }
  .sidebar nav a.active { background:var(--accent-soft); color:var(--accent); font-weight:600; }
  .sidebar nav a.active .ic { color:var(--accent); }
  .sidebar .group { margin:10px 0 3px; font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--sidebar-muted); padding:0 11px; }
  .sidebar .soon { display:flex; align-items:center; gap:11px; padding:7px 11px; font-size:14px; color:var(--sidebar-muted); cursor:default; white-space:nowrap; }
  .sidebar .group-sep { height:1px; margin:12px 11px 10px; padding:0; background:var(--line); }
  .sidebar .soon-tag { margin-left:auto; padding:1px 7px; border-radius:999px; background:var(--sidebar-hover); font-size:10.5px; }
  .sidebar .soon:has(.soon-tag) { gap:9px; padding-right:8px; }
  .sidebar .soon .ic { flex:none; }
  .sidebar .spacer { flex:1; min-height:8px; }
  .stoper { display:flex; flex-direction:column; gap:4px; }
  .stp-row { display:flex; align-items:center; gap:6px; padding:6px 8px 6px 11px; border-radius:10px; background:var(--sidebar-hover); font-size:13px; }
  .stp-row .stp-txt { flex:1; min-width:0; display:flex; flex-direction:column; }
  .stp-row .stp-n { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--sidebar-strong); }
  .stp-row .stp-t { font-variant-numeric:tabular-nums; font-weight:700; color:var(--accent); }
  .stp-row .stp-s { font-size:11.5px; color:var(--sidebar-muted); }
  .stp-row form { margin:0; }
  .stp-btn { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; flex:none; padding:0; border:0; border-radius:999px; background:transparent; color:var(--sidebar-muted); cursor:pointer; }
  .stp-btn:hover { background:var(--sidebar-hover); color:var(--sidebar-strong); }
  .stp-btn .ic svg { width:15px; height:15px; }
  .stp-ok:hover { color:var(--accent); }
  .stp-dot { width:7px; height:7px; flex:none; border-radius:50%; background:var(--accent); animation:stp-puls 2s ease-in-out infinite; }
  @keyframes stp-puls { 0%,100%{opacity:1} 50%{opacity:.25} }
  .stp-done { flex-wrap:wrap; }
  .stp-akcje { display:flex; align-items:center; gap:4px; }
  .stp-i { width:4.2em; padding:2px 5px; font-size:12.5px; font-variant-numeric:tabular-nums; }
  .stp-start button { display:flex; align-items:center; gap:11px; width:100%; padding:7px 11px; border:0; border-radius:10px; background:transparent; color:var(--sidebar-text); font:inherit; font-size:14px; cursor:pointer; }
  .stp-start button:hover { background:var(--sidebar-hover); color:var(--sidebar-strong); }
  .stp-start .ic { flex:none; color:var(--sidebar-muted); }
  .stp-start button:hover .ic { color:var(--accent); }
  .nav-go .ic { flex:none; }
  .wy-sum { display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-top:1px solid var(--line); font-variant-numeric:tabular-nums; }
  .wy-sum b { font-size:15px; }
  .wy-sum-mocno { border-top-width:2px; }
  .wy-zle b { color:#dc2626; }
  .wy-cena input { margin:0; text-align:right; font-weight:700; font-variant-numeric:tabular-nums; }
  .stp-inline { margin:0; }
  .stp-inline .stp-t { margin-left:6px; font-variant-numeric:tabular-nums; font-weight:700; }
  @media (prefers-reduced-motion:reduce) { .stp-dot { animation:none; } }
  .devswitch { margin-top:6px; }
  .devswitch nav a { font-size:12.5px; padding:7px 14px; }
  .sb-collapse { display:none; align-items:center; gap:12px; width:100%; margin-top:4px; padding:8px 14px; border:0; border-radius:999px; background:transparent; color:var(--sidebar-text); font:inherit; font-size:14px; cursor:pointer; white-space:nowrap; }
  .sb-collapse:hover { background:var(--sidebar-hover); color:var(--sidebar-strong); }
  .sb-collapse .ic { flex:none; color:var(--sidebar-muted); }
  .sb-collapse:hover .ic { color:var(--sidebar-strong); }
  .sb-collapse .ic svg { transition:transform .2s ease; }
  :root[data-sidebar="mini"] .sb-collapse .ic svg { transform:rotate(180deg); }
  .main { display:flex; flex-direction:column; min-width:0; min-height:100dvh; }
  .topbar { position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:10px; padding:14px 16px 10px; background:var(--bg); }
  .topbar h1 { font-size:22px; font-weight:800; letter-spacing:-.02em; margin:0; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .topbar-slot { flex:1; min-width:0; display:flex; align-items:center; gap:10px; }
  .topbar-slot .lead-toolbar { flex:1; min-width:0; margin:0; }
  .topbar-slot .lt-row1 { flex-wrap:nowrap; }
  .topbar-back { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; flex:none; margin:0; border:1px solid var(--line); border-radius:999px; background:var(--card); color:var(--text); box-shadow:var(--shadow); text-decoration:none; }
  .topbar-back .ic { display:flex; }
  .topbar-back:hover { background:var(--accent-soft); border-color:var(--accent); text-decoration:none; }
  .topbar-title { font-size:19px; font-weight:800; letter-spacing:-.02em; margin:0; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .topbar-slot .badge { flex:none; }
  .topbar-slot .tb-extra { flex:none; display:inline-flex; align-items:center; gap:10px; }
  @media (max-width:640px){
    .topbar-slot .tb-extra,
    .topbar-slot .stg-badge,
    .topbar-slot .proj-status-top { display:none; }
    .topbar-slot .topbar-title { flex:1 1 auto; min-width:88px; }
    .topbar-slot .nav-go { width:42px; padding:0; border-radius:999px; }
    .topbar-slot .nav-go-lbl { display:none; }
    .topbar-slot .st-inline .btn-sm { width:42px; padding:0; border-radius:999px; }
    .topbar-slot .st-inline .st-lbl { display:none; }
    .topbar-slot .st-inline .btn-sm:has(.st-t) { width:auto; padding:0 12px; }
    .topbar { gap:8px; }
    .topbar .iconbtn, .topbar-back { width:38px; height:38px; }
    .topbar .iconbtn .ic svg, .topbar-back .ic svg { width:19px; height:19px; }
  }
  @media (max-width:860px){
    .topbar-slot > .set-tabs .cl-tab:not(.active) > span:not(.ic) { display:none; }
    .topbar-slot > .set-tabs .cl-tab { padding:0 13px; }
  }
  .iconbtn, .dd-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; width:42px; height:42px; padding:0; margin:0; border:1px solid var(--line); border-radius:999px; background:var(--card); color:var(--text); cursor:pointer; box-shadow:var(--shadow); font:inherit; font-size:13px; font-weight:600; }
  .iconbtn:hover, .dd-btn:hover { background:var(--accent-soft); border-color:var(--accent); }
  .topbar .sb-toggle { display:none; }
  .iconbtn.avatar { border:0; background:var(--accent); color:var(--accent-ink); }
  .iconbtn.avatar:hover { filter:brightness(1.06); }
  details.menu { position:relative; }
  details.menu > summary { list-style:none; }
  details.menu > summary::-webkit-details-marker { display:none; }
  .menu-pop { position:absolute; right:0; top:46px; min-width:200px; background:var(--card); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); padding:6px; z-index:60; }
  .menu-head { padding:8px 16px; font-size:12px; color:var(--muted); border-bottom:1px solid var(--line); margin-bottom:4px; word-break:break-word; }
  .menu-pop a, .menu-pop button { display:flex; align-items:center; gap:9px; width:100%; margin:0; padding:9px 16px; border-radius:999px; font-size:14px; color:var(--text); background:transparent; border:0; cursor:pointer; text-align:left; }
  .menu-pop a:hover, .menu-pop button:hover { background:var(--accent-soft); text-decoration:none; }
  .menu-sep { padding:9px 16px 3px; font-size:11px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; color:var(--muted); }
  .menu-pop form { margin:0; }
  .acc-cur { display:flex; align-items:center; gap:9px; padding:9px 16px; border-radius:999px; font-size:14px; font-weight:700; color:var(--accent); }
  .acc-cur svg { width:16px; height:16px; flex:0 0 auto; }
  .acc-demo { font-size:10px; font-weight:800; padding:1px 6px; border-radius:999px; background:var(--accent); color:#fff; }
  details.bell > summary { position:relative; }
  .bell-dot { position:absolute; top:-3px; right:-3px; min-width:17px; height:17px; padding:0 4px; border-radius:999px; background:#b91c1c; color:#fff; font-size:10.5px; font-weight:800; line-height:17px; text-align:center; box-shadow:0 0 0 2px var(--bg); }
  .bell-dot[hidden] { display:none; }
  .nt-pop { width:340px; max-width:calc(100vw - 24px); padding:0; overflow:hidden; }
  .nt-head { display:flex; align-items:center; gap:8px; padding:10px 12px; border-bottom:1px solid var(--line); font-size:13px; }
  .nt-head strong { flex:1; }
  .nt-mark { width:auto !important; padding:4px 8px !important; font-size:12px; color:var(--muted) !important; }
  .nt-list { max-height:min(60vh,420px); overflow-y:auto; }
  .nt-item { position:relative; display:flex !important; align-items:flex-start; gap:10px; padding:10px 22px 10px 12px !important; border-radius:0 !important; border-bottom:1px solid var(--line); color:var(--text); text-decoration:none; }
  .nt-item:hover { background:var(--accent-soft); text-decoration:none; }
  .nt-item:last-child { border-bottom:0; }
  .nt-item.unread::after { content:""; position:absolute; right:9px; top:16px; width:7px; height:7px; border-radius:999px; background:var(--accent); }
  .nt-ic { flex:none; width:30px; height:30px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; background:var(--card-2); color:var(--muted); }
  .nt-ic .ic svg { width:16px; height:16px; }
  .nt-item.unread .nt-ic { background:var(--accent-soft); color:var(--accent); }
  .nt-txt { display:flex; flex-direction:column; gap:2px; min-width:0; }
  .nt-title { font-size:13.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .nt-item.unread .nt-title { font-weight:800; }
  .nt-body { font-size:12.5px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .nt-time { font-size:11.5px; color:var(--muted); }
  .nt-all { justify-content:center; border-top:1px solid var(--line); border-radius:0 !important; font-size:13px; font-weight:600; }
  .nt-page { padding:0; overflow:hidden; }
  .nt-item.nt-big { padding:13px 26px 13px 14px !important; }
  .nt-item.nt-big.unread { border-left:3px solid var(--accent); padding-left:11px !important; }
  .nt-big .nt-title, .nt-big .nt-body { white-space:normal; overflow:visible; }
  .nt-big .nt-ic { width:34px; height:34px; }
  .nt-actions { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
  @media (max-width:560px){
    .nt-pop { position:fixed; left:10px; right:10px; top:62px; width:auto; max-width:none; }
  }
  .nav-dot { flex:none; margin-left:auto; min-width:18px; height:18px; padding:0 4px; border-radius:999px; background:var(--accent); color:#fff; font-size:10.5px; font-weight:800; line-height:18px; text-align:center; }
  .sidebar nav a:has(.nav-dot) { gap:9px; padding-right:8px; }
  :root[data-sidebar="mini"] .nav-dot { display:none; }
  .sup-kinds { display:flex; flex-wrap:wrap; gap:8px; }
  .sup-chip { margin-right:7px; vertical-align:1px; }
  .main:has(.sup-split) { height:100dvh; }
  .content:has(.sup-split) { display:flex; flex-direction:column; flex:1; min-height:0; overflow:hidden; }
  .sup-split { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr); gap:14px; flex:1; min-height:0; }
  @media (min-width:1000px){ .sup-split { grid-template-columns:minmax(0,1fr) 380px; } }
  @media (min-width:1400px){ .sup-split { grid-template-columns:minmax(0,1fr) 440px; } }
  .topbar-blank { flex:1; }
  .sup-listcol { display:none; flex-direction:column; min-height:0; overflow-y:auto; padding-right:2px; }
  @media (min-width:1000px){ .sup-listcol { display:flex; } }
  .sup-listcol .lt-row2 { margin-bottom:10px; }
  .sup-listcol .lead-tstack, .sup-listcol .lead-table { min-width:0; }
  .sup-listcol .lead-thead-wrap { top:0; }
  .sup-head-tools { display:none; flex:1; min-width:0; align-items:center; gap:10px; }
  .sup-head-name { flex:1; min-width:0; }
  @media (min-width:1000px){ .sup-head-tools { display:flex; } .sup-head-blank, .sup-head-name { display:none; } }
  .sup-conv { position:relative; display:flex; flex-direction:column; min-height:0; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
  .sup-conv-head { flex:none; display:flex; align-items:center; gap:10px; padding:10px 14px; border-bottom:1px solid var(--line); }
  .sup-conv-t { flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
  .sup-conv-t strong { font-size:15.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .sup-conv-sub { font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .sup-tags { flex:none; display:flex; align-items:center; gap:6px; }
  .sup-back, .sup-x { flex:none; display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:999px; border:1px solid var(--line); background:var(--card); color:var(--text); text-decoration:none; font-size:18px; line-height:1; }
  .sup-back:hover, .sup-x:hover { background:var(--accent-soft); border-color:var(--accent); text-decoration:none; }
  .sup-x { display:none; }
  .sup-x .ic svg, .sup-back .ic svg { width:17px; height:17px; }
  .sup-back .ic { display:flex; }
  @media (min-width:1000px){ .sup-back { display:none; } .sup-x { display:inline-flex; } }
  .sup-conv-ai { display:none; flex:none; align-items:center; justify-content:center; width:34px; height:34px; border-radius:999px; border:1px solid var(--line); background:var(--card); color:var(--accent); text-decoration:none; }
  .sup-conv-ai:hover { background:var(--accent-soft); border-color:var(--accent); text-decoration:none; }
  .sup-conv-ai .ic svg { width:19px; height:19px; }
  @media (max-width:999px){
    .shell:has(.ai-fab) .sup-conv-ai { display:inline-flex; }
    .sup-conv-t { display:none; }
    .sup-tags { margin-right:auto; }
  }
  .sup-rel { color:var(--accent); }
  .sup-rel strong { font-weight:600; }
  .sup-esc { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 16px 8px; padding:8px 12px;
             border:1px solid var(--line); border-radius:12px; background:var(--card-2); font-size:13px; }
  .sup-esc .ic svg { width:16px; height:16px; vertical-align:-3px; }
  .sup-esc-btn { margin-left:auto; display:inline-flex; align-items:center; gap:6px; padding:6px 12px; font-size:13px; }
  .sup-tag > summary { cursor:pointer; list-style:none; }
  .sup-tag > summary::-webkit-details-marker { display:none; }
  .sup-tag > summary:hover { filter:brightness(.96); }
  .sup-tag .sup-tag-pop { top:calc(100% + 6px); left:auto; right:0; min-width:150px; padding:5px; }
  .sup-tag-pop form { display:flex; flex-direction:column; gap:2px; }
  .sup-tag-pop button { display:flex; justify-content:flex-start; width:100%; margin:0; padding:8px 16px; border:0; border-radius:999px; background:none; color:var(--text); font:inherit; font-size:13.5px; font-weight:500; text-align:left; cursor:pointer; }
  .sup-tag-pop button:hover { background:var(--card-2); }
  @media (max-width:520px){ .sup-conv-sub { display:none; } .sup-tags .badge { font-size:11px; } }
  :root { --dock-w:380px; --dock-gap:24px; }
  .proj-chatdock { position:fixed; z-index:44; top:var(--tb-h); right:0; bottom:0; left:0; display:flex; }
  .proj-chat { flex:1; min-height:0; }
  .proj-chat-note { flex:none; padding:12px 14px; border-top:1px solid var(--line); font-size:13px; }
  @media (min-width:1000px){
    .proj-chatdock { left:auto; width:calc(var(--dock-w) + var(--dock-gap) * 2); padding:6px var(--dock-gap) var(--dock-gap) var(--dock-gap); }
    .content:has(.proj-chatdock) { padding-right:calc(var(--dock-w) + var(--dock-gap) * 2); }
    .shell:has(.proj-chatdock) .proj-fab,
    .shell:has(.proj-chatdock) .cal-fab-menu,
    .shell:has(.proj-chatdock) .fab,
    .shell:has(.proj-chatdock) .emp-fab { right:calc(var(--dock-w) + var(--dock-gap) * 2); }
  }
  @media (min-width:1400px){ :root { --dock-w:440px; } }
  .proj-chatfab { position:fixed; right:24px; bottom:24px; z-index:40; text-decoration:none;
    transition:bottom .16s ease, opacity .14s ease, transform .14s ease; }
  .cal-fab.proj-chatfab { background:var(--card); color:var(--accent); border:1px solid var(--line);
    box-shadow:var(--shadow); }
  .cal-fab.proj-chatfab:hover { border-color:var(--accent); filter:none; text-decoration:none; }
  .proj-chatfab .ic svg { width:24px; height:24px; }
  .content:has(.proj-fab) .proj-chatfab, .content:has(.cal-fab-menu) .proj-chatfab,
  .content:has(.fab) .proj-chatfab { bottom:94px; }
  .shell:has(.content .cal-fab-menu[open]) .proj-chatfab { opacity:0; transform:scale(.85); pointer-events:none; }
  .proj-chatfab.has-new::after { content:""; position:absolute; top:4px; right:4px; width:12px; height:12px;
    border-radius:999px; background:#e5484d; border:2px solid var(--card); }
  @media (max-width:860px){ .proj-chatfab { right:16px; bottom:16px; }
    .content:has(.proj-fab) .proj-chatfab, .content:has(.cal-fab-menu) .proj-chatfab,
    .content:has(.fab) .proj-chatfab { bottom:86px; } }
  @media (max-width:999px){ .shell:has(.proj-chatdock) .proj-fab, .shell:has(.proj-chatdock) .cal-fab-menu,
    .shell:has(.proj-chatdock) .fab, .shell:has(.proj-chatdock) .ai-fab { display:none; } }
  .shell:has(.ai-fab) .proj-chat .sup-conv-ai { display:inline-flex; }
  @media (max-width:999px){ .proj-chat .sup-conv-t { display:flex; } .proj-chat { border-radius:0; border:0; } }
  .sup-scroll { flex:1; min-height:0; overflow-y:auto; padding:14px; }
  .sup-thread { display:flex; flex-direction:column; justify-content:flex-end; gap:10px; min-height:100%; }
  .sup-day { display:flex; align-items:center; justify-content:center; margin:6px 0 2px; }
  .sup-day span { padding:3px 10px; border-radius:999px; background:var(--card-2); color:var(--muted); font-size:11.5px; font-weight:600; }
  .sup-msg { display:flex; align-items:flex-end; gap:8px; max-width:82%; }
  .sup-msg.them { align-self:flex-start; }
  .sup-msg.me { align-self:flex-end; flex-direction:row-reverse; }
  .sup-av { flex:none; width:30px; height:30px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; background:var(--card-2); color:var(--muted); font-size:11.5px; font-weight:800; }
  .sup-av.acr { background:var(--accent-soft); color:var(--accent); }
  .sup-bub { min-width:0; padding:8px 12px; border-radius:16px; background:var(--card-2); }
  .sup-msg.them .sup-bub { border-bottom-left-radius:5px; }
  .sup-msg.me .sup-bub { border-bottom-right-radius:5px; background:var(--accent); color:var(--accent-ink); }
  .sup-msg.me .sup-bub .muted { color:inherit; opacity:.75; }
  .sup-bub-head { display:flex; align-items:baseline; gap:8px; margin-bottom:2px; font-size:11.5px; }
  .sup-bub-head strong { font-size:12px; }
  .sup-bub-body { font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
  .sup-atts { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
  .sup-att-img { display:block; width:150px; height:110px; border-radius:12px; overflow:hidden; border:1px solid var(--line); background:var(--card); }
  .sup-att-img img { width:100%; height:100%; object-fit:cover; display:block; }
  .sup-att-audio { height:36px; max-width:230px; }
  .sup-att-file { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px; background:var(--card); border:1px solid var(--line); font-size:12.5px; color:var(--text); text-decoration:none; }
  .sup-att-file:hover, .sup-att-img:hover { border-color:var(--accent); }
  .sup-att-file .ic svg { width:15px; height:15px; }
  .sup-att-name { max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .viewas-bar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:9px 18px;
                background:#fef3c7; color:#78350f; font-size:13px; border-bottom:1px solid #fcd34d; }
  .viewas-t { display:inline-flex; align-items:center; gap:7px; }
  .viewas-t .ic svg { width:15px; height:15px; }
  .viewas-x { margin-left:auto; padding:5px 13px; border-radius:999px; background:#78350f; color:#fff; font-weight:600; }
  .viewas-x:hover { text-decoration:none; filter:brightness(1.15); }
  @media (prefers-color-scheme:dark) {
    :root:not([data-theme="light"]) .viewas-bar { background:rgba(245,158,11,.16); color:#fcd34d; border-bottom-color:rgba(245,158,11,.35); }
    :root:not([data-theme="light"]) .viewas-x { background:#fcd34d; color:#3b2606; }
  }
  :root[data-theme="dark"] .viewas-bar { background:rgba(245,158,11,.16); color:#fcd34d; border-bottom-color:rgba(245,158,11,.35); }
  :root[data-theme="dark"] .viewas-x { background:#fcd34d; color:#3b2606; }
  .sup-to { color:var(--accent); font-weight:600; }
  .sup-to-pick { flex:none; padding:6px 12px 0; border-top:1px solid var(--line); background:var(--card); }
  .sup-to-pick > summary { display:inline-flex; align-items:center; gap:6px; padding:4px 0; list-style:none; cursor:pointer; font-size:12.5px; color:var(--muted); }
  .sup-to-pick > summary::-webkit-details-marker { display:none; }
  .sup-to-pick > summary:hover { color:var(--accent); }
  .sup-to-pick > summary .ic svg { width:14px; height:14px; }
  .sup-to-pick[open] > summary { color:var(--accent); margin-bottom:8px; }
  .sup-to-pick .rzd-hint { margin:0 0 8px; font-size:11.5px; color:var(--muted); }
  .sup-bar { flex:none; display:flex; align-items:flex-end; gap:6px; padding:10px 12px; border-top:1px solid var(--line); background:var(--card); margin:0; }
  .sup-comp-bar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:10px; }
  .sup-bar .sup-ic, .sup-comp-bar .sup-ic { flex:none; display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; margin:0; padding:0; border:0; border-radius:999px; background:none; color:var(--muted); cursor:pointer; }
  .sup-bar .sup-ic:hover, .sup-comp-bar .sup-ic:hover { background:var(--card-2); color:var(--accent); }
  .sup-bar .sup-ic .ic svg, .sup-comp-bar .sup-ic .ic svg { width:20px; height:20px; }
  .sup-ic.rec { color:#dc2626; background:rgba(220,38,38,.12); }
  .sup-field { flex:1; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:6px; min-height:40px; padding:7px 18px; border-radius:20px; background:var(--card-2); }
  .sup-field textarea { display:block; width:100%; min-height:22px; max-height:130px; padding:0; border:0; background:none; color:var(--text); font:inherit; font-size:14px; line-height:1.45; resize:none; }
  .sup-bar .sup-field textarea, .sup-bar .sup-field textarea:focus,
  .sup-comp-bar .sup-field textarea, .sup-comp-bar .sup-field textarea:focus { outline:none; border:0; box-shadow:none; }
  .sup-submit { border-radius:999px; padding:11px 20px; }
  .sup-attbar { display:flex; flex-wrap:wrap; gap:6px; }
  .sup-attbar[hidden] { display:none; }
  .sup-attchip { display:inline-flex; align-items:center; gap:6px; padding:3px 9px; border-radius:999px; background:var(--card); border:1px solid var(--line); font-size:11.5px; color:var(--muted); }
  .sup-attchip.err { border-color:#dc2626; color:#b91c1c; }
  .sup-attchip.rec { border-color:#dc2626; color:#b91c1c; }
  .sup-send { flex:none; display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; margin:0; padding:0; border:0; border-radius:999px; background:var(--accent); color:var(--accent-ink); cursor:pointer; }
  .sup-send:hover { filter:brightness(1.06); }
  .sup-send .ic svg { width:19px; height:19px; }
  .sup-att-hint { font-size:12px; }
  .sup-toasts { position:relative; z-index:6; height:0; display:flex; flex-direction:column; align-items:center; gap:6px; padding:0 12px; pointer-events:none; }
  .sup-toast { position:relative; flex:none; margin-top:10px; max-width:100%; overflow:hidden; padding:8px 13px 10px; border-radius:13px; border:1px solid #f2b8b8; background:#fef2f2; color:#991b1b; font-size:12.5px; font-weight:600; line-height:1.35; box-shadow:0 8px 22px rgba(15,23,42,.16); animation:sup-toast-in .22s ease-out, sup-toast-out .3s ease-in 3s forwards; }
  :root[data-theme="dark"] .sup-toast { border-color:#7f1d1d; background:#2a1414; color:#fca5a5; }
  .sup-toast-bar { position:absolute; left:0; right:0; bottom:0; height:3px; background:rgba(220,38,38,.18); }
  .sup-toast-bar i { display:block; height:100%; background:#dc2626; transform-origin:left center; animation:sup-toast-bar 3s linear forwards; }
  @keyframes sup-toast-in { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
  @keyframes sup-toast-out { to { opacity:0; transform:translateY(-14px); visibility:hidden; } }
  @keyframes sup-toast-bar { from { transform:scaleX(1); } to { transform:scaleX(0); } }
  @media (prefers-reduced-motion:reduce){ .sup-toast { animation:sup-toast-out .01s linear 3s forwards; } .sup-toast-bar i { animation-duration:3s; } }
  .sup-flash { position:fixed; left:50%; bottom:22px; transform:translateX(-50%); z-index:70; max-width:calc(100vw - 32px);
    display:flex; align-items:center; gap:6px; padding:10px 16px; border-radius:999px; border:1px solid #a7d5b5; background:#ecfdf3;
    color:#14532d; font-size:13px; font-weight:600; box-shadow:0 10px 28px rgba(15,23,42,.18); animation:sup-toast-in .22s ease-out; }
  .sup-flash a { color:inherit; text-decoration:underline; }
  :root[data-theme="dark"] .sup-flash { border-color:#166534; background:#0f2a1b; color:#86efac; }
  .sup-cards { display:grid; gap:12px; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); }
  .sup-card { display:flex; flex-direction:column; gap:6px; text-decoration:none; color:inherit; border-left:3px solid var(--line); }
  .sup-card:hover { border-color:var(--accent); text-decoration:none; }
  .sup-card.sup-prioL-critical { border-left-color:#dc2626; }
  .sup-card.sup-prioL-high { border-left-color:#f59e0b; }
  .sup-card.sup-prioL-normal { border-left-color:var(--accent); }
  .sup-card.sup-prioL-low { border-left-color:#94a3b8; }
  .sup-card-top { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
  .sup-card-title { font-weight:700; font-size:14.5px; }
  .sup-card-sub, .sup-card-foot { font-size:12.5px; }
  .sup-card-foot code { font-size:11.5px; }
  .dd-group + .dd-group { margin-top:6px; padding-top:6px; border-top:1px solid var(--line); }
  .dd-group-t { display:block; padding:2px 16px 4px; font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); }
  .lead-table.sup-table.sup-narrow .col-contact, .lead-table.sup-table.sup-narrow .col-cat { display:none; }
  .lead-table.sup-table.sup-narrow .col-name { width:52%; }
  .lead-table.sup-table.sup-narrow .col-status { width:22%; }
  .lead-table.sup-table.sup-narrow .col-date { width:26%; }
  .lead-table .lead-row.is-open > td { background:var(--accent-soft); }
  .lead-table.sup-table .col-name { width:37%; }
  .lead-table.sup-table .col-contact { width:19%; }
  .lead-table.sup-table .col-cat { width:12%; }
  .lead-table.sup-table .col-status { width:13%; }
  .lead-table.sup-table .col-date { width:19%; }
  @media (max-width:860px) {
    .lead-table.sup-table .col-cat, .lead-table.sup-table .col-contact { display:none; }
    .lead-table.sup-table .col-name { width:56%; }
    .lead-table.sup-table .col-status { width:22%; }
    .lead-table.sup-table .col-date { width:22%; }
  }
  @media (max-width:600px) {
    .lead-table.sup-table .col-name { width:62%; }
    .lead-table.sup-table .col-date { width:38%; }
    .sup-msg { max-width:96%; }
  }
  .content { padding:16px; width:100%; }
  .content.is-loading { opacity:.55; transition:opacity .1s ease; pointer-events:none; }
  .sup-aiprompt { margin:0 16px 8px; border:1px solid var(--line); border-radius:12px; background:var(--card-2); padding:8px 12px; }
  .sup-aiprompt summary { cursor:pointer; font-size:13px; color:var(--muted); }
  .sup-aiprompt textarea { width:100%; min-height:170px; margin:8px 0 6px; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12.5px; }
  .sup-aiprompt button { padding:6px 12px; font-size:13px; }
  .sup-aip-gen { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:6px; font-size:12px; }
  .tiles { display:grid; gap:14px; grid-template-columns:repeat(2,1fr); grid-auto-rows:164px; grid-auto-flow:row dense; align-items:stretch; }
  @media (min-width:720px){ .tiles { grid-template-columns:repeat(3,1fr); } }
  @media (min-width:1120px){ .tiles { grid-template-columns:repeat(4,1fr); } }
  .tile { background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:var(--pad-tile); box-shadow:var(--shadow); display:flex; flex-direction:column; overflow:hidden; }
  .tile[hidden] { display:none; }
  .tile-w2 { grid-column:span 2; }
  .tile-h2 { grid-row:span 2; }
  .tile-title { font-size:13px; font-weight:600; color:var(--muted); }
  .pin-form { display:flex; margin:0; flex:none; }
  .pin-form.is-hidden { display:none; }
  .pin-menu { display:none; }
  @media (max-width:640px){
    .pin-top { display:none; }
    .pin-menu:not(.is-hidden) { display:block; }
  }
  .pin-menu button.is-on { color:var(--accent); }
  .pin-menu button.is-on svg { fill:currentColor; }
  .pin-btn.is-on { color:var(--accent); border-color:var(--accent); background:var(--accent-soft); }
  .pin-btn.is-on svg { fill:currentColor; }
  .pin-btn.is-limit { color:#dc2626; border-color:#dc2626; animation:pin-shake .45s ease; }
  @keyframes pin-shake { 20%{transform:translateX(-3px)} 45%{transform:translateX(3px)} 70%{transform:translateX(-2px)} 100%{transform:none} }
  .sb-pins .sb-pin { position:relative; }
  .sb-pins .sb-pin > a { padding-right:34px; }
  .sb-pins .sb-pin > a.is-here { background:var(--accent-soft); color:var(--accent); font-weight:600; }
  .sb-pins .sb-pin > a.is-here .ic { color:var(--accent); }
  .sb-pins form { margin:0; }
  .sb-pinx { position:absolute; right:9px; top:50%; transform:translateY(-50%); display:flex; margin:0; padding:3px; border:0; border-radius:8px; background:none; color:var(--sidebar-muted); cursor:pointer; opacity:0; }
  .sb-pinx .ic svg, .pin-off .ic svg { width:14px; height:14px; }
  .sb-pin:hover .sb-pinx, .sb-pinx:focus-visible { opacity:1; }
  .sb-pinx:hover { color:var(--sidebar-strong); background:var(--sidebar-hover); }
  :root[data-sidebar="mini"] .sb-pinx { display:none; }
  :root[data-sidebar="mini"] .sb-pins .sb-pin > a { padding-right:0; }
  .tile-pin { position:relative; gap:6px; }
  .tile-pin .tile-title { display:flex; align-items:center; gap:6px; }
  .tile-pin .tile-title .ic svg { width:15px; height:15px; }
  .pin-hit { position:absolute; inset:0; z-index:1; border-radius:inherit; }
  .tile-pin:has(.pin-hit:hover), .tile-pin:has(.pin-hit:focus-visible) { border-color:var(--accent); }
  .pin-name { font-size:16px; font-weight:700; letter-spacing:-.01em; line-height:1.25; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  .pin-body { margin-top:auto; display:flex; flex-direction:column; gap:2px; }
  .pin-line { font-size:12px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pin-late { color:#dc2626; font-weight:600; }
  .tile-pin-dead .pin-name, .tile-pin-dead .tile-title { color:var(--muted); }
  .tile-pin-dead .pin-line { white-space:normal; }
  .pin-off { position:absolute; top:10px; right:10px; z-index:2; margin:0; }
  .pin-off button { display:flex; margin:0; padding:4px; border:0; border-radius:999px; background:none; color:var(--muted); cursor:pointer; opacity:0; }
  .tile-pin:hover .pin-off button, .pin-off button:focus-visible { opacity:1; }
  .pin-off button:hover { color:var(--text); background:var(--card-2); }
  .set-tabs { margin-bottom:20px; }
  .topbar-slot .set-tabs { margin-bottom:0; }
  .set-wrap { display:flex; flex-direction:column; gap:34px; }
  @media (min-width:1080px){
    .set-wrap.cols { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 30px; align-items:start; }
  }
  .set-sec { min-width:0; }
  .set-wrap.boxed { gap:18px; }
  .set-wrap.boxed .set-sec { background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:18px 20px 20px; box-shadow:var(--shadow); }
  .set-wrap.boxed .set-sec-b { max-width:none; }
  .set-sec-h { display:flex; align-items:flex-start; gap:12px; margin:0 0 14px; }
  .set-sec-ic { flex:none; width:36px; height:36px; border-radius:11px; display:grid; place-items:center;
    background:var(--accent-soft); color:var(--accent); }
  .set-sec-ic .ic { color:var(--accent); }
  .set-sec-ic .ic svg { width:18px; height:18px; }
  .set-sec-tx { min-width:0; display:flex; flex-direction:column; gap:2px; padding-top:1px; }
  .set-sec-t { font-size:17px; font-weight:700; letter-spacing:-.01em; }
  .set-sec-d { color:var(--muted); font-size:13px; line-height:1.5; }
  .set-sec-b { max-width:720px; }
  .set-sec.wide .set-sec-b { max-width:none; }
  .set-sec-b > :first-child { margin-top:0; }
  .set-sec-b > form.card { margin:0; }
  .set-hint { font-size:12.5px; line-height:1.55; margin:12px 0 0; max-width:760px; }
  .set-sec-b > .set-hint:first-child { margin:0 0 14px; }
  .set-cards { display:flex; flex-direction:column; gap:14px; }
  .set-cards > .card { margin:0; }
  .set-scroll { max-height:520px; overflow:auto; }
  .stat-tile, .src-tile, .act-tile { min-height:0; gap:10px; }
  .stat-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
  .stat-foot { font-size:12.5px; }
  .src-list { display:flex; flex-direction:column; gap:7px; }
  .src-row { display:grid; grid-template-columns:minmax(60px,1fr) 2fr auto; align-items:center; gap:8px; font-size:13px; }
  .src-label { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text); }
  .src-bar { height:7px; border-radius:999px; background:var(--accent-soft); overflow:hidden; }
  .src-bar > span { display:block; height:100%; border-radius:999px; background:var(--accent); }
  .src-n { font-weight:700; font-variant-numeric:tabular-nums; }
  .act-list { display:flex; flex-direction:column; gap:4px; }
  .act-row { display:flex; align-items:center; gap:10px; padding:8px 6px; border-radius:10px; color:var(--text); font-size:13.5px; }
  .act-row:hover { background:var(--accent-soft); text-decoration:none; }
  .act-row .ic { margin-left:auto; color:var(--muted); }
  .act-row .ic svg { width:16px; height:16px; }
  .act-n { min-width:26px; text-align:center; font-weight:800; font-size:16px; font-variant-numeric:tabular-nums; color:var(--muted); }
  .act-row.hot .act-n { color:#dc2626; }
  .dash-search { display:flex; justify-content:center; margin:2px 0 18px; }
  .dash-search .search-box { flex:0 1 560px; max-width:560px; }
  .dash-search .search-box input { height:46px; font-size:15px; border-radius:999px; }
  @media (max-width:640px){ .dash-search { margin-bottom:14px; } .dash-search .search-box input { height:42px; } }
  .szk-wrap { display:flex; flex-direction:column; }
  .szk-bar { display:flex; justify-content:center; margin:2px 0 22px; }
  .szk-bar .search-box { flex:0 1 560px; max-width:560px; }
  .szk-bar .search-box input { height:46px; font-size:15px; border-radius:999px; }
  .szk-none { max-width:60ch; margin:6px auto; text-align:center; line-height:1.6; }
  .szk-list { display:flex; flex-direction:column; gap:4px; }
  .szk-row { display:flex; align-items:center; gap:12px; padding:10px 12px; border:1px solid var(--line);
    border-radius:12px; background:var(--card); color:var(--text); }
  .szk-row:hover { border-color:var(--accent); text-decoration:none; }
  .szk-ic { flex:none; width:34px; height:34px; border-radius:10px; display:grid; place-items:center;
    background:var(--accent-soft); color:var(--accent); }
  .szk-ic .ic svg { width:17px; height:17px; }
  .szk-tx { min-width:0; display:flex; flex-direction:column; gap:1px; }
  .szk-tx strong { font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .szk-tx .muted { font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .szk-row > .ic { margin-left:auto; color:var(--muted); }
  .szk-row > .ic svg { width:16px; height:16px; }
  .site-hero, .site-list, .site-shots, .site-today, .site-log, .site-empty-tile { gap:10px; min-height:0; }
  .site-frame { flex:1; min-height:0; display:flex; flex-direction:column; border:1px solid var(--line);
    border-radius:12px; overflow:hidden; background:var(--card-2); }
  .site-bar { flex:none; display:flex; align-items:center; gap:5px; padding:7px 10px; border-bottom:1px solid var(--line); background:var(--card); }
  .site-dot { width:7px; height:7px; border-radius:50%; background:var(--line); flex:none; }
  .site-url { margin-left:6px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
    font-size:11.5px; color:var(--muted); background:var(--card-2); border-radius:999px; padding:2px 10px; }
  .site-page { flex:1; min-height:0; display:flex; flex-direction:column; justify-content:center; gap:6px; padding:12px 14px; overflow:hidden; }
  .site-shot { position:relative; flex:1; min-height:0; overflow:hidden; background:var(--card); }
  .site-shot iframe { position:absolute; left:0; top:0; width:1280px; height:900px; border:0;
    transform-origin:0 0; pointer-events:none; background:var(--card); }
  .site-shot::before { content:""; position:absolute; inset:0; background:
    repeating-linear-gradient(135deg, var(--card) 0 10px, var(--card-2) 10px 20px); opacity:.5; }
  .site-shot iframe { position:absolute; z-index:1; }
  .site-name { font-size:18px; font-weight:800; letter-spacing:-.01em; line-height:1.2; }
  .site-contact { display:flex; flex-wrap:wrap; gap:4px 8px; font-size:12.5px; color:var(--muted); }
  .site-contact > span + span::before { content:"· "; }
  .site-miss { color:#dc2626; }
  .site-social { display:flex; gap:6px; }
  .site-soc { font-size:11px; color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:1px 8px; }
  .site-hoursline { font-size:12.5px; color:var(--text); }
  .site-hoursline.site-miss { color:#dc2626; }
  .site-chips { margin-top:4px; display:flex; flex-wrap:wrap; gap:6px; }
  .site-chip { font-size:11.5px; font-weight:600; color:var(--accent); background:var(--accent-soft); border-radius:999px; padding:3px 10px; }
  .site-off { font-size:12.5px; line-height:1.5; margin:2px 0 0; }
  .site-frame-off { border-style:dashed; }
  .site-foot { flex:none; display:flex; align-items:center; justify-content:space-between; gap:10px; }
  .site-last { font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .site-go { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; font-size:13px; font-weight:600;
    color:var(--accent); background:var(--accent-soft); border-radius:999px; padding:6px 12px; }
  .site-go:hover { text-decoration:none; filter:brightness(.97); }
  .site-go .ic svg { width:15px; height:15px; }
  .site-more { display:inline-flex; align-items:center; gap:4px; font-size:12.5px; font-weight:600; color:var(--accent); }
  .site-more:hover { text-decoration:none; }
  .site-more .ic svg { width:14px; height:14px; }
  .site-items { flex:1; min-height:0; display:flex; flex-direction:column; gap:2px; overflow:hidden; }
  .site-item { display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:10px;
    padding:5px 6px; border-radius:10px; color:var(--text); font-size:13.5px; }
  .site-item:hover { background:var(--accent-soft); text-decoration:none; }
  .site-thumb { width:32px; height:32px; border-radius:8px; object-fit:cover; background:var(--card-2); }
  .site-thumb-x { display:grid; place-items:center; color:var(--muted); }
  .site-thumb-x .ic svg { width:15px; height:15px; }
  .site-item-n { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .site-item-p { font-variant-numeric:tabular-nums; white-space:nowrap; font-size:13px; }
  .site-item-p s { font-weight:400; margin-right:4px; }
  .site-item.is-off { opacity:.6; }
  .site-item.is-off .site-item-n::after { content:" · ukryta"; color:var(--muted); font-size:11.5px; }
  .site-badge { position:absolute; top:5px; left:5px; font-size:10px; font-weight:700; color:#92400e;
    background:#fde68a; border-radius:999px; padding:1px 7px; }
  .site-hours { font-size:22px; line-height:1.1; }
  .site-hours.is-txt { font-size:16px; color:var(--muted); }
  .site-week { display:flex; gap:4px; }
  .site-day { flex:1; height:22px; display:grid; place-items:center; border-radius:6px; font-size:11px;
    font-weight:700; background:var(--card-2); color:var(--muted); }
  .site-day.is-otw { background:var(--accent-soft); color:var(--accent); }
  .site-day.is-zam { background:rgba(239,68,68,.12); color:#dc2626; text-decoration:line-through; }
  .site-day.is-now { box-shadow:0 0 0 2px var(--accent); }
  .site-todaylink { margin-top:auto; display:flex; align-items:flex-end; gap:6px; font-size:12.5px; line-height:1.35; color:var(--muted); }
  .site-todaylink:hover { text-decoration:none; color:var(--text); }
  .site-todaylink .ic { margin-left:auto; flex:none; }
  .site-todaylink .ic svg { width:14px; height:14px; }
  .site-log-list { flex:1; min-height:0; display:flex; flex-direction:column; gap:9px; overflow:hidden; }
  .site-log-row { display:flex; flex-direction:column; gap:1px; padding-left:9px; border-left:2px solid var(--accent-soft); }
  .site-log-tx { font-size:12.5px; line-height:1.35; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  .site-log-m { font-size:11px; }
  .site-empty { flex:1; min-height:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; text-align:center; }
  .site-empty p { margin:0; max-width:38ch; }
  .site-empty-tx { font-size:12.5px; line-height:1.5; margin:0; }
  .site-empty-tile .site-go { margin-top:auto; align-self:flex-start; }
  @media (max-width:719px){
    .site-empty-tile { grid-column:span 2; }
    .tile[data-tile="site-todo"], .tile[data-tile="site-log"] { grid-column:span 2; }
  }
  .ops-status { padding:10px 12px; border-radius:10px; font-size:13.5px; font-weight:600; }
  .ops-status.good { color:#15803d; background:rgba(34,197,94,.12); }
  .ops-status.bad { color:#dc2626; background:rgba(239,68,68,.12); }
  .ops-bar { margin:2px 0 0; }
  .ops-bar .search-box { max-width:320px; }
  .lead-table.ops-btable .col-name { width:34%; }
  .lead-table.ops-btable .col-cat { width:16%; }
  .lead-table.ops-btable .col-date { width:26%; }
  .lead-table.ops-btable .col-status { width:24%; }
  .lead-table.ops-etable .col-date { width:16%; }
  .lead-table.ops-etable .col-cat { width:18%; }
  .lead-table.ops-etable .col-status { width:16%; }
  .lead-table.ops-etable .col-detail { width:50%; white-space:normal; }
  @media (max-width:600px){
    .lead-table.ops-btable .col-cat { display:none; }
    .lead-table.ops-etable .col-status { display:none; }
    .lead-table.ops-etable .col-date { width:26%; }
    .lead-table.ops-etable .col-cat { width:28%; }
    .lead-table.ops-etable .col-detail { width:46%; }
  }
  .chart-tile { padding-bottom:0; overflow:hidden; }
  .chart-head { display:flex; align-items:center; justify-content:space-between; gap:12px 16px; flex-wrap:wrap; padding-bottom:6px; }
  .chart-headline { display:flex; align-items:center; gap:10px 12px; flex-wrap:wrap; }
  .chart-headline .tile-title { font-size:14px; }
  .stat-big { font-size:26px; font-weight:800; line-height:1; letter-spacing:-.02em; color:var(--text); }
  .delta { display:inline-flex; align-items:center; line-height:1; font-size:12.5px; font-weight:700; padding:4px 9px; border-radius:999px; }
  .delta.up { color:#15803d; background:rgba(34,197,94,.12); }
  .delta.down { color:#dc2626; background:rgba(239,68,68,.12); }
  .delta.flat { color:var(--muted); background:var(--card-2); }
  :root[data-theme="dark"] .delta.up { background:rgba(34,197,94,.18); color:#4ade80; }
  :root[data-theme="dark"] .delta.down { background:rgba(239,68,68,.18); color:#f87171; }
  .chart-plot { position:relative; --foot:28px; height:210px; margin-top:8px; padding-left:18px; }
  .chart-grid { position:absolute; left:18px; right:0; top:0; bottom:var(--foot); pointer-events:none; z-index:0; }
  .grid { position:absolute; left:0; right:0; height:0; border-top:1px dashed var(--line); }
  .grid:first-child { border-top-style:solid; }
  .grid span { position:absolute; left:-18px; top:-7px; width:15px; text-align:right; font-size:10px; color:var(--muted); }
  .bars { position:absolute; left:18px; right:0; top:0; bottom:0; display:flex; align-items:flex-end; gap:0; }
  .bar-col { position:relative; flex:1 1 0; height:100%; display:flex; align-items:flex-end; cursor:default; outline:none; }
  .bar-col:not(:last-child)::after { content:""; position:absolute; right:-1px; top:0; bottom:0; width:2px; background:var(--card); z-index:3; }
  .bar { position:relative; z-index:1; width:100%; height:calc(var(--foot) + (100% - var(--foot)) * var(--hf)); background:var(--bar-bg); border-radius:10px 10px 0 0;
         display:flex; flex-direction:column; align-items:center; justify-content:space-between; gap:4px; padding:8px 4px 6px; transition:background .15s ease; }
  .bar-val { font-size:12px; font-weight:700; line-height:1; color:var(--text); }
  .bar-cap { font-size:11px; font-weight:600; line-height:1; color:var(--muted); }
  .bar-col.feat .bar { background:var(--accent); }
  .bar-col.feat .bar-val, .bar-col.feat .bar-cap { color:var(--accent-ink); }
  .bars:hover .bar-col.feat:not(:hover) .bar, .bars:focus-within .bar-col.feat:not(:focus) .bar { background:var(--bar-bg); }
  .bars:hover .bar-col.feat:not(:hover) .bar-val, .bars:focus-within .bar-col.feat:not(:focus) .bar-val { color:var(--text); }
  .bars:hover .bar-col.feat:not(:hover) .bar-cap, .bars:focus-within .bar-col.feat:not(:focus) .bar-cap { color:var(--muted); }
  .bar-col:hover .bar, .bar-col:focus .bar { background:var(--accent); }
  .bar-col:hover .bar-val, .bar-col:focus .bar-val, .bar-col:hover .bar-cap, .bar-col:focus .bar-cap { color:var(--accent-ink); }
  .bar-tip { position:absolute; left:50%; bottom:calc(var(--foot) + (100% - var(--foot)) * var(--hf) + 6px); top:auto; padding:3px 8px; font-size:12px; font-weight:600; color:#fff; background:#08070a; border:1px solid rgba(255,255,255,.14); border-radius:7px; white-space:nowrap; opacity:0; transform:translate(-50%,4px); transition:.12s; pointer-events:none; z-index:6; }
  .bar-col:hover .bar-tip, .bar-col:focus .bar-tip { opacity:1; transform:translate(-50%,0); }
  .dash-foot { display:flex; justify-content:flex-end; margin-top:16px; }
  details.customize { position:relative; }
  details.customize > summary { list-style:none; display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border:1px solid var(--line); border-radius:10px; background:var(--card); color:var(--text); font-size:13px; font-weight:600; cursor:pointer; box-shadow:var(--shadow); }
  details.customize > summary::-webkit-details-marker { display:none; }
  details.customize > summary:hover { border-color:var(--accent); }
  .cz-pop { position:absolute; right:0; bottom:46px; min-width:230px; background:var(--card); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); padding:10px; z-index:30; }
  .cz-pop .cz-title { font-size:12px; color:var(--muted); margin-bottom:8px; }
  .cz-pop label { display:flex; align-items:center; gap:9px; padding:7px 14px; border-radius:999px; font-size:14px; cursor:pointer; }
  .cz-pop label:hover { background:var(--accent-soft); }
  .cz-pop input { width:auto; margin:0; }
  .card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:var(--pad-card); margin-bottom:16px; box-shadow:var(--shadow); }
  .card .meta { color:var(--muted); font-size:13px; }
  .lead-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .lead-thead-wrap { position:sticky; top:var(--stick-h); z-index:6; overflow-x:hidden; padding:6px 0 13px; background:var(--bg); }
  .lead-list .lead-table-wrap { scrollbar-width:none; }
  .lead-list .lead-table-wrap::-webkit-scrollbar { display:none; }
  .lead-tstack { min-width:780px; }
  .lead-tsection + .lead-tsection { margin-top:22px; }
  .lead-table { width:100%; min-width:780px; table-layout:fixed; border-collapse:separate; border-spacing:0; background:transparent; }
  .lead-tstack .lead-table { min-width:0; }
  .lead-table .col-date { width:12%; }
  .lead-table .col-name { width:23%; }
  .lead-table .col-contact { width:21%; }
  .lead-table .col-status { width:13%; }
  .lead-table .col-cat { width:15%; }
  .lead-table .col-assigned { width:16%; }
  .lead-table th, .lead-table td { text-align:left; white-space:nowrap; }
  .lead-table td { overflow:hidden; text-overflow:ellipsis; padding:14px 16px; font-size:14px; }
  .lead-table thead th { background:var(--card-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:5px 4px; }
  .lead-table thead th:first-child { border-left:1px solid var(--line); border-top-left-radius:999px; border-bottom-left-radius:999px; }
  .lead-table thead th:last-child { border-right:1px solid var(--line); border-top-right-radius:999px; border-bottom-right-radius:999px; }
  .lead-table thead .th-sort, .lead-table thead .th-static { display:inline-flex; align-items:center; gap:5px; max-width:100%; padding:7px 12px; border-radius:999px; color:var(--muted); font-weight:700; font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .lead-table thead .th-sort:hover { color:var(--text); text-decoration:none; background:var(--card); }
  .lead-table thead .th-sort.active { background:var(--card); color:var(--accent); box-shadow:var(--shadow); }
  .lead-table thead .th-static { cursor:default; }
  .lead-table tbody td { background:var(--card); border-bottom:1px solid var(--line); color:var(--text); }
  .lead-table tbody td:first-child { border-left:1px solid var(--line); }
  .lead-table tbody td:last-child { border-right:1px solid var(--line); }
  .lead-table tbody .g-first td { border-top:1px solid var(--line); }
  .lead-table tbody .g-first td:first-child { border-top-left-radius:var(--radius-lg); }
  .lead-table tbody .g-first td:last-child { border-top-right-radius:var(--radius-lg); }
  .lead-table tbody .g-last td:first-child { border-bottom-left-radius:var(--radius-lg); }
  .lead-table tbody .g-last td:last-child { border-bottom-right-radius:var(--radius-lg); }
  .lead-table tbody tr[data-href] { cursor:pointer; transition:background .12s ease; }
  .lead-table tbody tr[data-href]:hover td { background:var(--accent-soft); }
  .row-name { font-weight:600; color:var(--text); }
  .row-sub { display:block; margin-top:2px; font-size:12px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; }
  .lead-table tbody tr[data-href]:hover .row-name { color:var(--accent); text-decoration:none; }
  .asg-mini { display:none; }
  .st-dot { display:none; }
  .badge { display:inline-block; padding:2px 9px; border-radius:999px; font-size:12px; font-weight:600; white-space:nowrap; }
  .badge.new { background:#eff6ff; color:#1d4ed8; }
  .badge.in_progress { background:#fffbeb; color:#b45309; }
  .badge.won { background:#ecfdf5; color:#047857; }
  .badge.lost { background:#fef2f2; color:#b91c1c; }
  :root[data-theme="dark"] .badge.new { background:rgba(59,130,246,.18); color:#93c5fd; }
  :root[data-theme="dark"] .badge.in_progress { background:rgba(245,158,11,.18); color:#fcd34d; }
  :root[data-theme="dark"] .badge.won { background:rgba(16,185,129,.18); color:#6ee7b7; }
  :root[data-theme="dark"] .badge.lost { background:rgba(239,68,68,.18); color:#fca5a5; }
  .muted { color:var(--muted); }
  .tabs { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:14px; }
  .tabs a { padding:6px 12px; border-radius:999px; border:1px solid var(--line); background:var(--card); font-size:13px; color:var(--text); }
  .tabs a:hover { text-decoration:none; border-color:var(--accent); }
  .tabs a.active { background:var(--accent); color:var(--accent-ink); border-color:var(--accent); }
  .tabs a.active .muted { color:rgba(255,255,255,.8); }
  .search { margin-bottom:16px; }
  form.stack label { display:block; margin:12px 0 4px; font-size:13px; color:var(--muted); }
  input,select,textarea { font:inherit; padding:11px 18px; border:1px solid var(--line); border-radius:999px; width:100%; box-sizing:border-box; background:var(--card); color:var(--text); }
  input:focus,select:focus,textarea:focus { outline:2px solid var(--accent-soft); border-color:var(--accent); }
  input[type="checkbox"],input[type="radio"] { width:auto; }
  input[type="file"] { display:flex; align-items:center; height:40px;
    padding:0 16px 0 6px; border-radius:999px; cursor:pointer; font-size:13.5px; line-height:38px; }
  input[type="file"]::file-selector-button { margin:0 12px 0 0; padding:0 15px; height:28px; border:0;
    border-radius:999px; background:var(--accent-soft); color:var(--accent); font:inherit;
    font-weight:600; cursor:pointer; }
  input[type="file"]:hover::file-selector-button { background:var(--accent); color:var(--accent-ink); }
  .fpick { display:flex; align-items:center; gap:10px; min-width:0; margin:6px 0 0; }
  .fpick-b { position:relative; overflow:hidden; flex:0 0 auto; margin:0; }
  .fpick-b > input[type="file"] { position:absolute; inset:0; width:100%; height:100%;
    padding:0; margin:0; border:0; border-radius:0; opacity:0; cursor:pointer; }
  .fpick-n { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
    font-size:13px; color:var(--text); }
  .fpick-n.muted { color:var(--muted); }
  .fpick .rzd-cclear { position:static; transform:none; flex:0 0 auto; }
  select:not([multiple]):not([size]) { appearance:none; -webkit-appearance:none; padding-right:36px;
    background-image:var(--sel-arrow); background-repeat:no-repeat; background-position:right 14px center; }
  .search input { max-width:420px; }
  textarea { min-height:120px; resize:vertical; border-radius:18px; }
  button { display:inline-flex; align-items:center; justify-content:center; gap:8px; margin-top:14px; padding:10px 22px; font:inherit; font-weight:600; border:0; border-radius:999px; background:var(--accent); color:var(--accent-ink); cursor:pointer; }
  button .ic svg { width:17px; height:17px; }
  button:hover { filter:brightness(1.06); }
  .backlink { display:inline-flex; align-items:center; gap:6px; margin-bottom:8px; }
  .backlink .ic svg { width:16px; height:16px; }
  h2 { font-size:15px; margin:22px 0 10px; }
  .lead-toolbar { display:flex; flex-direction:column; gap:8px; margin-bottom:18px; container-type:inline-size; container-name:tbar; }
  .lt-row1 { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
  .lt-row2 { display:flex; align-items:flex-end; justify-content:space-between; gap:10px; }
  .lt-count { font-size:13px; color:var(--muted); }
  .lt-actions { display:inline-flex; align-items:center; gap:8px; margin-left:auto; }
  .lt-row2:has(.lt-actions) { margin-bottom:10px; }
  .lt-dd { display:inline-flex; align-items:center; gap:10px; }
  .lt-dd-desktop { display:none; }
  .search-box { position:relative; flex:1 1 200px; min-width:150px; max-width:460px; margin:0; }
  .search-box > .ic { position:absolute; left:15px; top:50%; transform:translateY(-50%); color:var(--muted); pointer-events:none; }
  .search-box > .ic svg { width:18px; height:18px; }
  .search-box input { padding:11px 40px 11px 44px; border-radius:999px; background:var(--card); box-shadow:var(--shadow); }
  .search-clear { position:absolute; right:10px; top:50%; transform:translateY(-50%); width:28px; height:28px; margin:0; padding:0; display:none; align-items:center; justify-content:center; border:0; border-radius:999px; background:var(--card-2); color:var(--muted); box-shadow:none; cursor:pointer; }
  .search-clear:hover { background:var(--card-2); color:var(--text); filter:none; }
  .search-clear .ic svg { width:15px; height:15px; }
  .search-box.has-text .search-clear { display:inline-flex; }
  .dd { position:relative; flex:none; }
  .dd > summary { list-style:none; }
  .dd > summary::-webkit-details-marker { display:none; }
  .dd-btn { color:var(--muted); }
  .dd-btn:not(:has(.ic)) { width:auto; padding:0 15px; white-space:nowrap; }
  .dd-btn .ic { flex:none; }
  .dd-btn .ic svg { width:18px; height:18px; }
  .dd-label { display:none; }
  .dd-btn.on { color:var(--accent); border-color:var(--accent); background:var(--accent-soft); }
  .dd[open] > .dd-btn { color:var(--accent); border-color:var(--accent); }
  .seg.seg-desktop { display:none; }
  .dd-pop { position:absolute; left:0; top:48px; z-index:30; min-width:170px; max-height:min(60dvh,480px); overflow-y:auto; background:var(--card); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); padding:6px; }
  .dd-pop-wide { min-width:214px; }
  .dd + .dd .dd-pop { left:auto; right:0; }
  .dd-pop a { display:block; padding:9px 16px; border-radius:999px; font-size:14px; color:var(--text); }
  .dd-pop a:hover { background:var(--card-2); text-decoration:none; }
  .dd-pop a.active { background:var(--accent-soft); color:var(--accent); font-weight:600; }
  .dd-filter { display:flex; flex-direction:column; gap:1px; }
  .dd-check { display:flex; align-items:center; gap:10px; padding:9px 14px; border-radius:999px; cursor:pointer; font-size:14px; color:var(--text); }
  .dd-check:hover { background:var(--card-2); }
  .dd-box { display:none; }
  .dd-dot { flex:none; width:9px; height:9px; border-radius:50%; }
  .dd-dot.new { background:#3b82f6; } .dd-dot.in_progress { background:#f59e0b; }
  .dd-dot.won { background:#10b981; } .dd-dot.lost { background:#ef4444; }
  .dd-check-label { flex:1; }
  .dd-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:6px; padding-top:8px; border-top:1px solid var(--line); }
  .dd-pop .dd-clear { display:inline-flex; padding:7px 16px; border-radius:999px; font-size:13px; color:var(--muted); }
  .dd-pop .dd-clear:hover { background:var(--card-2); color:var(--text); text-decoration:none; }
  .dd-apply { margin:0; padding:8px 18px; font-size:13px; border-radius:999px; }
  .dd-pop:has(.fpn) { min-width:250px; }
  .fpn { gap:1px; }
  .fpn-cat > summary { list-style:none; display:flex; align-items:center; gap:9px; padding:10px; border-radius:11px; cursor:pointer; font-size:14px; font-weight:600; color:var(--text); }
  .fpn-cat > summary::-webkit-details-marker { display:none; }
  .fpn-cat > summary:hover { background:var(--card-2); }
  .fpn-cat[open] > summary { color:var(--accent); }
  .fpn-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .fpn-n { flex:none; display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:var(--accent); color:var(--accent-ink); font-size:11px; font-weight:700; }
  .fpn-car { flex:none; display:inline-flex; color:var(--muted); transform:rotate(90deg); }
  .fpn-car svg { width:15px; height:15px; }
  .fpn-cat[open] > summary .fpn-car { transform:rotate(-90deg); color:var(--accent); }
  .fpn-b { display:flex; flex-direction:column; gap:1px; margin:0 0 6px 15px; padding-left:8px; border-left:2px solid var(--line); }
  .fpn-b .dd-check { padding:8px 9px; font-size:13.5px; }
  .dd-sort-row { display:flex; align-items:center; gap:6px; padding:4px 6px 4px 16px; border-radius:999px; }
  .dd-sort-row:hover { background:var(--card-2); }
  .dd-sort-label { flex:1; font-size:14px; color:var(--text); }
  .dd-pop .dd-arr { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; padding:0; border-radius:999px; font-size:11px; color:var(--muted); border:1px solid var(--line); }
  .dd-pop .dd-arr:hover { background:var(--card-2); color:var(--text); text-decoration:none; }
  .dd-pop .dd-arr.active { background:var(--accent-soft); color:var(--accent); border-color:transparent; font-weight:700; }
  .seg { display:inline-flex; align-items:center; background:var(--card-2); border:1px solid var(--line); border-radius:999px; padding:4px; gap:3px; flex:none; }
  .seg > label { position:relative; display:inline-flex; margin:0; }
  .seg > label > input { position:absolute; inset:0; width:100%; height:100%; margin:0; padding:0; border:0; opacity:0; cursor:pointer; }
  .seg a, .seg > label > span, .seg > button { display:inline-flex; align-items:center; justify-content:center; gap:7px; height:32px; margin:0; padding:0 16px; border:0; border-radius:999px; background:transparent; font:inherit; font-size:13px; font-weight:600; color:var(--muted); white-space:nowrap; cursor:pointer; }
  .seg a:hover, .seg > label:hover > span, .seg > button:hover { text-decoration:none; color:var(--text); }
  .seg a.active, .seg > label > input:checked + span, .seg > button.active, .seg > button.on { background:var(--card); color:var(--accent); box-shadow:var(--shadow); }
  .seg > label > input:focus-visible + span { outline:2px solid var(--accent); outline-offset:1px; }
  .seg a.active .ic { color:var(--accent); }
  .seg a .ic svg, .seg > label > span .ic svg, .seg > button .ic svg { width:17px; height:17px; }
  .seg.seg-mobile a { padding:0 13px; }
  .seg.seg-sm { padding:3px; gap:2px; }
  .seg.seg-sm a, .seg.seg-sm > label > span, .seg.seg-sm > button { height:26px; padding:0 12px; font-size:12px; gap:6px; }
  .seg.seg-sm a .ic svg, .seg.seg-sm > label > span .ic svg { width:15px; height:15px; }
  @media (max-width:560px){ .seg { gap:2px; } .seg a { padding:0 11px; } .seg.seg-sm a { padding:0 9px; } }
  @media (max-width:400px){ .seg a { padding:0 8px; } .seg.seg-sm a { padding:0 7px; } }
  @media (max-width:560px){
    .seg { max-width:100%; flex-wrap:nowrap; }
    .seg a:has(.ic) > span:not(.ic) { display:none; }
    .seg a:has(.ic) { padding:0 11px; gap:0; }
  }
  .st-sec { margin-bottom:24px; }
  .lead-cards { display:grid; gap:12px; grid-template-columns:repeat(auto-fill,minmax(248px,1fr)); }
  .lead-card { display:flex; flex-direction:column; gap:10px; background:var(--card); border:1px solid var(--line); border-radius:18px; padding:var(--pad-tile); box-shadow:var(--shadow); color:var(--text); transition:border-color .15s ease, transform .15s ease; }
  .lead-card:hover { text-decoration:none; border-color:var(--accent); transform:translateY(-2px); }
  .is-new:not(tr) { animation:acNew 2.6s ease-out 1; }
  tr.is-new td { animation:acNewCell 2.6s ease-out 1; }
  @keyframes acNew {
    0% { box-shadow:0 0 0 0 rgba(22,163,74,.55), 0 0 0 1px rgba(22,163,74,.9) inset; }
    35% { box-shadow:0 0 0 7px rgba(22,163,74,0), 0 0 0 1px rgba(22,163,74,.9) inset; }
    70% { box-shadow:0 0 0 0 rgba(22,163,74,.45), 0 0 0 1px rgba(22,163,74,.7) inset; }
    100% { box-shadow:0 0 0 8px rgba(22,163,74,0), 0 0 0 1px rgba(22,163,74,0) inset; }
  }
  @keyframes acNewCell { 0%,55% { background:rgba(22,163,74,.16); } 100% { background:transparent; } }
  @media (prefers-reduced-motion:reduce) {
    .is-new:not(tr) { animation:none; outline:2px solid rgba(22,163,74,.8); }
    tr.is-new td { animation:none; background:rgba(22,163,74,.12); }
  }
  .lc-head { display:flex; align-items:center; gap:11px; }
  .lc-avatar { flex:none; width:40px; height:40px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; background:var(--card-2); color:var(--muted); }
  .lc-avatar .ic svg { width:21px; height:21px; }
  .lc-id { display:flex; flex-direction:column; align-items:flex-end; gap:4px; min-width:0; flex:1; text-align:right; }
  .lc-name { font-weight:700; font-size:15px; letter-spacing:-.01em; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .lc-sub { display:flex; align-items:center; justify-content:flex-end; gap:9px; font-size:13px; color:var(--muted); flex-wrap:wrap; }
  .lc-cat { text-transform:capitalize; }
  .lc-foot { display:flex; align-items:center; justify-content:space-between; gap:8px 10px; flex-wrap:wrap; font-size:13px; border-top:1px solid var(--line); padding-top:13px; }
  .lc-assignee { display:inline-flex; align-items:center; gap:7px; font-weight:600; min-width:0; }
  .lc-assignee .ic svg { width:15px; height:15px; }
  .lc-assignee.muted { font-weight:500; }
  .lc-date { color:var(--muted); white-space:nowrap; }
  .lead-card[data-href] { cursor:pointer; }
  a.lc-name { color:inherit; }
  .lead-card[data-href]:hover a.lc-name { color:var(--accent); }
  a.lc-name:hover { text-decoration:none; }
  .lc-f { color:inherit; }
  .lc-f:hover { text-decoration:none; color:var(--accent); }
  a.lc-cat.lc-f:hover, a.lc-svc.lc-f:hover { color:var(--accent); }
  a.stg-badge.lc-f:hover { filter:brightness(1.06); box-shadow:0 0 0 1px var(--sb) inset; }
  a.lc-date.lc-f:hover { color:var(--accent); }
  .lc-asg > summary { list-style:none; cursor:pointer; }
  .lc-asg > summary::-webkit-details-marker { display:none; }
  .lc-asg > summary .ic:last-child { color:var(--muted); }
  .lc-asg > summary .ic:last-child svg { width:13px; height:13px; }
  .lc-asg > summary:hover, .lc-asg[open] > summary { color:var(--accent); }
  .lc-asg-t { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .lc-asg-pop { top:26px; left:-8px; min-width:200px; max-width:236px; }
  .lc-asg-f { margin:0; display:flex; flex-direction:column; gap:1px; }
  .lc-asg-o { display:flex; flex-direction:column; align-items:stretch; gap:1px; width:100%; text-align:left; padding:8px 16px;
    border:0; border-radius:999px; background:none; color:var(--text); font:inherit; font-size:14px; cursor:pointer; }
  .lc-asg-o:hover { background:var(--card-2); }
  .lc-asg-o.active { background:var(--accent-soft); color:var(--accent); font-weight:600; }
  .lc-asg-n, .lc-asg-s { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .lc-asg-s { font-size:11.5px; font-weight:500; color:var(--muted); }
  .lc-asg-o.active .lc-asg-s { color:inherit; opacity:.75; }
  .lead-card:has(.dd[open]) { position:relative; z-index:5; }
  .lc-msg { display:flex; }
  .msg-chip { display:inline-flex; align-items:center; gap:5px; padding:3px 9px; border-radius:999px; font-size:11px; font-weight:700; white-space:nowrap; }
  .msg-chip::before { content:""; width:5px; height:5px; border-radius:999px; background:currentColor; }
  .msg-chip.new { background:rgba(220,38,38,.12); color:#dc2626; }
  .msg-chip.reply { background:#fff4e0; color:#b45309; }
  .msg-chip.wait { background:var(--card-2); color:var(--muted); }
  :root[data-theme="dark"] .msg-chip.new { background:rgba(239,68,68,.18); color:#f87171; }
  :root[data-theme="dark"] .msg-chip.reply { background:rgba(226,158,29,.18); color:var(--color-amber-light); }
  .empty { padding:28px; text-align:center; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); }
  .empty-tx { margin:0; padding:2px 0 4px; font-size:13px; line-height:1.6; color:var(--muted); }
  .empty-tx-c { text-align:center; padding:22px 12px; }
  .empty-lg { display:flex; flex-direction:column; align-items:center; gap:8px; padding:44px 24px;
    border-style:dashed; background:none; color:var(--muted); }
  .empty-lg svg { width:26px; height:26px; opacity:.6; }
  .empty-lg strong { color:var(--text); font-size:14.5px; }
  .empty-lg span { font-size:13px; max-width:44ch; line-height:1.6; }
  .empty-lg .btn-pill { margin-top:6px; }
  .empty-lg-in { margin-bottom:18px; }
  .emp-banner { padding:11px 14px; border-radius:12px; margin-bottom:16px; font-size:14px; font-weight:600; border:1px solid var(--line); }
  .emp-banner.ok { background:rgba(16,185,129,.12); color:#047857; border-color:rgba(16,185,129,.25); }
  .emp-banner.err { background:rgba(239,68,68,.12); color:#b91c1c; border-color:rgba(239,68,68,.25); }
  :root[data-theme="dark"] .emp-banner.ok { color:#6ee7b7; }
  :root[data-theme="dark"] .emp-banner.err { color:#fca5a5; }
  .emp-toast { position:fixed; left:50%; bottom:26px; z-index:60; margin:0; width:max-content;
               max-width:min(520px, calc(100vw - 32px)); background:var(--card);
               border-color:rgba(16,185,129,.35); box-shadow:0 10px 30px rgba(16,12,24,.18);
               opacity:0; transform:translate(-50%,14px); pointer-events:none;
               transition:opacity .22s ease, transform .22s ease; }
  .emp-toast.on { opacity:1; transform:translate(-50%,0); }
  .content:has(.cal-fab-menu), .content:has(.cal-fab), .content:has(.proj-fab) { padding-bottom:104px; }
  .emp-banner.warn { background:rgba(245,158,11,.14); color:#92400e; border-color:rgba(245,158,11,.3); }
  :root[data-theme="dark"] .emp-banner.warn { color:#fcd34d; }
  .emp-layout { display:grid; gap:16px; grid-template-columns:1fr; align-items:start; }
  .emp-add-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:4px; }
  .emp-add-head strong { font-size:15px; }
  .emp-count { font-size:13px; font-weight:700; color:var(--muted); background:var(--card-2); border-radius:999px; padding:2px 11px; }
  .emp-add button { display:inline-flex; align-items:center; gap:8px; }
  .emp-add button .ic svg { width:17px; height:17px; }
  .emp-card { padding:var(--pad-tile); }
  .emp-owner { background:var(--card-2); }
  .emp-row-head { display:flex; align-items:center; gap:12px; }
  .emp-avatar { flex:none; width:40px; height:40px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; background:var(--card-2); color:var(--muted); }
  .emp-owner .emp-avatar { background:var(--card); }
  .emp-avatar .ic svg { width:21px; height:21px; }
  .emp-id { display:flex; flex-direction:column; min-width:0; flex:1; }
  .emp-name { font-weight:700; font-size:15px; letter-spacing:-.01em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .emp-sub { font-size:13px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .emp-you { font-size:11px; font-weight:700; color:var(--accent); background:var(--accent-soft); border-radius:999px; padding:1px 8px; margin-left:6px; }
  .emp-leadcount { font-size:13px; white-space:nowrap; }
  .emp-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:11px; }
  .emp-chip { font-size:12px; font-weight:600; color:var(--accent); background:var(--accent-soft); border-radius:999px; padding:3px 10px; }
  details.emp-config { margin-top:12px; border-top:1px solid var(--line); padding-top:10px; }
  details.emp-config > summary { list-style:none; display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:var(--muted); cursor:pointer; }
  details.emp-config > summary::-webkit-details-marker { display:none; }
  details.emp-config > summary:hover { color:var(--text); }
  details.emp-config[open] > summary { color:var(--accent); margin-bottom:10px; }
  details.emp-config .ic svg { width:16px; height:16px; }
  .emp-perms { display:grid; gap:8px; margin-top:6px; }
  .emp-perm { position:relative; display:flex; align-items:center; gap:12px; min-height:48px; padding:7px 12px 7px 14px; border:1px solid var(--line); border-radius:999px; cursor:pointer; transition:border-color .12s ease, background .12s ease; }
  .emp-perm:hover { border-color:var(--accent); }
  .emp-perm:has(input:checked) { background:var(--accent-soft); border-color:var(--accent); }
  .emp-perm .wh-toggle { flex:none; margin:0; }
  .emp-perm-text { display:flex; flex-direction:column; gap:2px; min-width:0; }
  .emp-perm-label { font-size:14px; font-weight:600; }
  .emp-perm-desc { font-size:12.5px; color:var(--muted); line-height:1.45; }
  .emp-perm-i { margin-left:auto; flex:none; display:inline-flex; }
  .emp-perm.soon { opacity:.6; cursor:not-allowed; }
  .emp-perm.emp-perm-link { cursor:pointer; }
  .emp-perm-link .emp-perm-name { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:14.5px; font-weight:650; color:var(--text); }
  .emp-perm-link .emp-perm-name::after { content:""; position:absolute; inset:0; border-radius:inherit; }
  .emp-perm-link:hover .emp-perm-name { color:var(--accent); text-decoration:none; }
  .emp-perm-link .wh-toggle { position:relative; z-index:1; }
  .emp-perm-link .emp-perm-name .emp-perm-dot { color:var(--muted); font-weight:400; }
  .emp-perm-link .emp-perm-name .emp-perm-cnt { color:var(--muted); font-weight:500; font-size:13px; }
  .emp-perm-link .emp-go { margin-left:auto; flex:none; color:var(--muted); display:inline-flex; }
  .emp-perm-link .emp-go svg { width:16px; height:16px; }
  .emp-perm-link:hover .emp-go { color:var(--accent); }
  .emp-perm-grp { display:grid; gap:8px; margin-bottom:14px; }
  .emp-perm-grp:last-child { margin-bottom:0; }
  .emp-perm-grp-h { font-size:12px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; color:var(--muted); }
  .emp-soon-tag { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); background:var(--card-2); border-radius:999px; padding:1px 7px; margin-left:6px; vertical-align:middle; }
  .emp-actions { display:flex; gap:10px; margin-top:12px; }
  .emp-actions button { margin-top:0; }
  @media (min-width:861px){ .emp-layout { grid-template-columns:360px 1fr; } }
  .emp-grid { display:grid; gap:12px; grid-template-columns:repeat(auto-fill,minmax(248px,1fr)); }
  .emp-tile { display:flex; flex-direction:column; gap:12px; background:var(--card); border:1px solid var(--line); border-radius:18px; padding:var(--pad-tile); box-shadow:var(--shadow); color:var(--text); transition:border-color .15s ease, transform .15s ease; }
  a.emp-tile:hover { text-decoration:none; border-color:var(--accent); transform:translateY(-2px); }
  .emp-tile.emp-owner { background:var(--card-2); }
  .emp-tile-head { display:flex; align-items:center; gap:11px; }
  .emp-tile.emp-owner .emp-avatar { background:var(--card); }
  .emp-tile-id { display:flex; flex-direction:column; min-width:0; flex:1; gap:3px; }
  .emp-tile-name { font-weight:700; font-size:15px; letter-spacing:-.01em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .emp-tile-email { font-size:13px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .emp-func { display:inline-flex; align-items:center; gap:6px; align-self:flex-start; max-width:100%; font-size:12px; font-weight:600; color:var(--accent); background:var(--accent-soft); border-radius:999px; padding:3px 10px; }
  .emp-func .ic svg { width:13px; height:13px; }
  .emp-func.muted { color:var(--muted); background:var(--card-2); font-weight:500; }
  .emp-tile-foot { display:flex; align-items:center; justify-content:space-between; gap:8px 10px; font-size:13px; color:var(--muted); border-top:1px solid var(--line); padding-top:12px; }
  .emp-go { display:inline-flex; align-items:center; gap:4px; color:var(--accent); font-weight:600; }
  .emp-go .ic svg { width:15px; height:15px; }
  .emp-foot { display:flex; align-items:center; justify-content:flex-end; gap:14px; margin-top:8px; flex-wrap:wrap; }
  .emp-limit-hint { font-size:13px; }
  .emp-back { display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--muted); margin-bottom:14px; }
  .emp-back .ic svg { width:16px; height:16px; }
  .emp-back:hover { color:var(--accent); text-decoration:none; }
  .emp-form-narrow { max-width:600px; }
  .emp-detail-head { display:flex; align-items:center; gap:14px; }
  .emp-detail-head .emp-avatar { width:52px; height:52px; }
  .emp-detail-head .emp-avatar .ic svg { width:26px; height:26px; }
  .emp-detail-id { display:flex; flex-direction:column; gap:4px; min-width:0; }
  .emp-detail-name { font-size:18px; font-weight:700; letter-spacing:-.01em; }
  .emp-detail-email { font-size:14px; color:var(--muted); }
  .emp-detail-leads { margin:12px 0 0; font-size:13px; }
  .emp-tile-tags { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
  .badge.emp-st-active { background:#ecfdf5; color:#047857; }
  .badge.emp-st-probation { background:#eff6ff; color:#1d4ed8; }
  .badge.emp-st-leave { background:#fffbeb; color:#b45309; }
  .badge.emp-st-notice { background:#fef2f2; color:#b91c1c; }
  .badge.emp-st-inactive { background:var(--card-2); color:var(--muted); }
  :root[data-theme="dark"] .badge.emp-st-active { background:rgba(16,185,129,.18); color:#6ee7b7; }
  :root[data-theme="dark"] .badge.emp-st-probation { background:rgba(59,130,246,.18); color:#93c5fd; }
  :root[data-theme="dark"] .badge.emp-st-leave { background:rgba(245,158,11,.18); color:#fcd34d; }
  :root[data-theme="dark"] .badge.emp-st-notice { background:rgba(239,68,68,.18); color:#fca5a5; }
  @media (max-width:640px){
    .lt-row2:has(.emp-roles-link) { flex-wrap:wrap; }
    .emp-roles-link { margin-left:0; }
  }
  .emp-roles-link { margin-left:auto; display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600;
                    color:var(--muted); text-decoration:none; white-space:nowrap; }
  .emp-roles-link:hover { color:var(--accent); }
  .emp-roles-link svg { width:16px; height:16px; }
  .rl-badge { display:inline-block; padding:2px 10px; border-radius:999px; font-size:12.5px; font-weight:650; white-space:nowrap; }
  .rl-c-niebieski { background:#eff6ff; color:#1d4ed8; }
  .rl-c-zielony { background:#ecfdf5; color:#047857; }
  .rl-c-fioletowy { background:#f5f3ff; color:#6d28d9; }
  .rl-c-pomaranczowy { background:#fffbeb; color:#b45309; }
  .rl-c-czerwony { background:#fef2f2; color:#b91c1c; }
  .rl-c-szary { background:var(--card-2); color:var(--muted); }
  :root[data-theme="dark"] .rl-c-niebieski { background:rgba(59,130,246,.18); color:#93c5fd; }
  :root[data-theme="dark"] .rl-c-zielony { background:rgba(16,185,129,.18); color:#6ee7b7; }
  :root[data-theme="dark"] .rl-c-fioletowy { background:rgba(139,92,246,.22); color:#c7b6fb; }
  :root[data-theme="dark"] .rl-c-pomaranczowy { background:rgba(245,158,11,.18); color:#fcd34d; }
  :root[data-theme="dark"] .rl-c-czerwony { background:rgba(239,68,68,.18); color:#fca5a5; }
  .rl-palf { margin-bottom:18px; }
  .rl-palf-l { display:block; margin:0 0 8px; font-size:13px; color:var(--muted); }
  .rl-pal { display:flex; flex-wrap:wrap; gap:10px; }
  .rl-pal label.rl-sw { position:relative; display:block; cursor:pointer; line-height:0; margin:0; }
  .rl-sw input { position:absolute; opacity:0; pointer-events:none; }
  .rl-sw span { display:block; width:30px; height:30px; border-radius:50%; background:currentColor;
                box-shadow:0 0 0 2px var(--card),0 0 0 3px var(--line); }
  .rl-sw input:checked + span { box-shadow:0 0 0 2px var(--card),0 0 0 4px currentColor; }
  .rl-sw input:focus-visible + span { outline:2px solid var(--accent-soft); outline-offset:3px; }
  .tg-bar { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin:0 0 14px; }
  .tg { display:inline-flex; align-items:center; gap:6px; height:27px; padding:0 12px; border-radius:999px;
        font-size:12.5px; font-weight:650; white-space:nowrap; box-sizing:border-box; }
  a.tg:hover { text-decoration:none; box-shadow:0 0 0 2px var(--card),0 0 0 3px currentColor; }
  .tg-sm { height:21px; padding:0 9px; font-size:11px; font-weight:600; gap:4px; }
  .tg-mini { display:inline-flex; flex-wrap:wrap; align-items:center; gap:5px; vertical-align:middle; }
  .col-name .tg-mini { margin-left:8px; }
  .lead-card .tg-mini { margin-top:7px; }
  .tg-add { border:1px dashed var(--line); color:var(--muted); background:transparent; cursor:pointer;
            list-style:none; user-select:none; }
  .tg-add::-webkit-details-marker { display:none; }
  .tg-add::marker { content:""; }
  .tg-add:hover { border-color:var(--accent); color:var(--accent); }
  .tg-add .ic svg { width:14px; height:14px; }
  .tg-dd { display:inline-flex; }
  .tg-dd .dd-pop { top:33px; min-width:252px; }
  .tg-pick-list { max-height:min(46dvh,320px); overflow-y:auto; }
  .tg-swatch { flex:none; width:11px; height:11px; border-radius:50%; background:currentColor; }
  .tg-new { margin-top:6px; padding:8px 4px 0; border-top:1px solid var(--line); }
  .tg-new input { margin:0; font-size:13.5px; }
  .tg-pick-hint { margin-right:auto; font-size:12px; }
  .dd-dot.tg-dot { background:currentColor; }
  .emp-fab { position:fixed; right:24px; bottom:24px; z-index:40; width:58px; height:58px; border-radius:999px;
             display:inline-flex; align-items:center; justify-content:center; background:var(--accent); color:var(--accent-ink);
             box-shadow:0 6px 20px rgba(0,0,0,.22); text-decoration:none; transition:transform .12s ease, filter .12s ease; }
  .emp-fab:hover { text-decoration:none; transform:translateY(-2px); filter:brightness(.97); }
  .emp-fab-plus { font-size:32px; font-weight:400; line-height:1; margin-top:-3px; }
  .emp-fab.disabled { background:var(--card-2); color:var(--muted); cursor:not-allowed; box-shadow:var(--shadow); }
  .emp-fab-info { background:var(--card); color:var(--text); border:1px solid var(--line); }
  .emp-fab-info:hover { filter:none; border-color:var(--accent); color:var(--accent); }
  .emp-fab-i { font-size:24px; font-weight:700; line-height:1; }
  @media (min-width:900px){ .emp-fab-info { display:none; } }
  .emp-back-bar { position:sticky; top:52px; z-index:6; margin:-24px -24px 12px; padding:12px 24px; background:var(--bg); }
  @media (max-width:860px){ .emp-back-bar { top:50px; margin:-16px -16px 12px; padding:10px 16px; } }
  .emp-back-bar .emp-back { margin:0; }
  .emp-detail-layout { display:grid; gap:16px; grid-template-columns:1fr; align-items:start; }
  .emp-profile-main { display:flex; flex-direction:column; gap:0; min-width:0; }
  .emp-ph-head { display:flex; align-items:center; gap:9px; margin-bottom:6px; }
  .emp-ph-head strong { font-size:14px; }
  .emp-ph-head .ic svg { width:18px; height:18px; color:var(--muted); }
  .emp-ph p { margin:0; font-size:13px; }
  .emp-info { display:none; min-width:0; border:1px solid var(--line); border-radius:18px; background:var(--card); box-shadow:var(--shadow); padding:var(--pad-card); }
  .emp-info.emp-info-page { display:block; }
  .emp-ibox-photo { position:relative; width:96px; height:96px; margin:4px auto 26px; border-radius:999px; background:var(--card-2); display:flex; align-items:center; justify-content:center; color:var(--muted); }
  .emp-ibox-photo .ic svg { width:44px; height:44px; }
  .emp-ibox-photo-soon { position:absolute; bottom:-18px; left:0; right:0; text-align:center; font-size:11px; color:var(--muted); }
  @media (min-width:900px){
    .emp-detail-layout { grid-template-columns:minmax(0,1fr) 340px; }
    .emp-profile-main { padding-right:6px; }
    .emp-info { display:block; align-self:start; position:sticky; top:52px; max-height:calc(100dvh - 70px); overflow-y:auto; }
  }
  .fab { position:fixed; right:24px; bottom:24px; z-index:45; width:58px; height:58px; border-radius:999px;
         display:inline-flex; align-items:center; justify-content:center; background:var(--accent); color:var(--accent-ink);
         box-shadow:0 8px 24px rgba(138,76,193,.34); text-decoration:none; transition:transform .14s ease, filter .14s ease, box-shadow .14s ease; }
  .fab:hover { text-decoration:none; transform:translateY(-2px); filter:brightness(1.04); box-shadow:0 10px 28px rgba(138,76,193,.42); }
  .fab:active { transform:translateY(0); }
  .fab .ic svg { width:26px; height:26px; }
  .fab-plus { font-size:32px; font-weight:300; line-height:1; margin-top:-2px; }
  .fab.disabled { background:var(--card-2); color:var(--muted); cursor:not-allowed; box-shadow:var(--shadow); }
  @media (max-width:860px){ .fab { right:16px; bottom:16px; width:54px; height:54px; } }
  button.is-busy, .is-busy[type="submit"] { position:relative; pointer-events:none;
    background:var(--card-2); color:var(--muted); box-shadow:none; }
  button.is-busy::after {
    content:""; position:absolute; right:9px; top:50%; width:12px; height:12px; margin-top:-6px;
    border:2px solid currentColor; border-right-color:transparent; border-radius:50%;
    animation:acrm-spin .7s linear infinite; }
  button.is-busy { padding-right:28px; }
  @keyframes acrm-spin { to { transform:rotate(360deg); } }
  @media (prefers-reduced-motion:reduce){ button.is-busy::after { animation:none; } }
  .shell:has(.svc-modal.open) .fab,
  .shell:has(.svc-modal.open) .cal-fab,
  .shell:has(.svc-modal.open) .cal-fab-menu,
  .shell:has(.svc-modal.open) .ai-fab { display:none; }
  .sheet { position:fixed; inset:0; z-index:60; display:none; align-items:flex-end; justify-content:center; }
  .sheet:target, .sheet.is-open { display:flex; }
  .sheet-back { position:absolute; inset:0; background:rgba(8,7,10,.5); backdrop-filter:blur(2px); }
  .sheet-card { position:relative; z-index:1; width:100%; max-width:560px; max-height:90dvh; overflow-y:auto;
                background:var(--card); border:1px solid var(--line); border-radius:22px 22px 0 0;
                box-shadow:0 -10px 44px rgba(0,0,0,.3); padding:18px 20px 24px; margin:0; }
  .sheet:target .sheet-card, .sheet.is-open .sheet-card { animation:sheet-up .2s cubic-bezier(.22,.8,.36,1); }
  .sheet-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
  .sheet-head strong { font-size:16px; letter-spacing:-.01em; }
  .sheet-close { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; flex:none; border-radius:999px;
                 border:1px solid var(--line); background:var(--card); color:var(--muted); font-size:19px; line-height:1; text-decoration:none; }
  .sheet-close:hover { border-color:var(--accent); color:var(--accent); text-decoration:none; }
  .sheet-card form { margin:0; }
  .sheet-card .card { border:0; box-shadow:none; padding:0; margin:0; background:transparent; }
  @keyframes sheet-up { from { transform:translateY(24px); } to { transform:none; } }
  @media (min-width:640px){
    .sheet { align-items:center; }
    .sheet-card { border-radius:22px; margin:0 16px; }
    @keyframes sheet-up { from { transform:translateY(10px) scale(.985); opacity:.5; } to { transform:none; opacity:1; } }
  }
  .dt-cols { display:grid; gap:16px; grid-template-columns:1fr; align-items:start; }
  .dt-main { min-width:0; display:flex; flex-direction:column; }
  .dt-side { min-width:0; display:flex; flex-direction:column; }
  @media (min-width:900px){
    .dt-cols { grid-template-columns:minmax(0,1fr) 360px; }
    .dt-side { position:sticky; top:64px; }
  }
  .dt-narrow { max-width:760px; }
  .dt-sec-title { font-size:14px; font-weight:700; margin:0 0 12px; }
  .dt-sec-sub { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.04em;
                color:var(--muted); margin:16px 0 2px; }
  @media (max-width:640px){ .ad-bt { display:none; } }
  .dt-side > .stack .dt-sec-title { margin-top:0; }
  .dt-ro { display:contents; border:0; padding:0; margin:0; }
  .dt-ro input, .dt-ro select, .dt-ro textarea { opacity:.65; cursor:not-allowed; }
  .lead-contact { display:flex; flex-wrap:wrap; gap:8px 10px; }
  .lead-contact-item { display:inline-flex; align-items:center; gap:7px; padding:6px 12px; border-radius:999px;
                       background:var(--card-2); border:1px solid var(--line); font-size:13px; font-weight:600; color:var(--text); }
  a.lead-contact-item:hover { border-color:var(--accent); color:var(--accent); text-decoration:none; }
  .lead-contact-item.muted { font-weight:500; }
  .lead-contact-item .ic svg { width:15px; height:15px; }
  .lead-message { margin:14px 0 0; font-size:15px; line-height:1.5; white-space:pre-wrap; }
  @media (min-width:861px){
    .scrim { display:none; }
    .shell { display:grid; grid-template-columns:var(--sb-w) 1fr; transition:grid-template-columns .18s ease; }
    .sidebar { position:sticky; top:8px; height:calc(100dvh - 16px); width:auto; margin:8px 0 8px 8px;
               border-radius:22px; border:1px solid var(--line); box-shadow:var(--shadow); transform:none; overflow-x:hidden; transition:padding .18s ease; }
    :root[data-sidebar="hidden"] .sidebar { display:none; }
    .sb-collapse { display:flex; }
    .topbar .sb-burger { display:none; }
    .content { padding:8px 24px 24px; }
    .topbar { padding-left:24px; padding-right:24px; }
    :root { --tb-h:66px; --stick-h:66px; }
    :root[data-sidebar="mini"] .sidebar { padding:10px 6px; align-items:center; }
    :root[data-sidebar="mini"] .sidebar .label,
    :root[data-sidebar="mini"] .brand-text,
    :root[data-sidebar="mini"] .devswitch,
    :root[data-sidebar="mini"] .chev,
    :root[data-sidebar="mini"] .soon-label { display:none; }
    :root[data-sidebar="mini"] .sidebar nav { align-items:center; gap:6px; }
    :root[data-sidebar="mini"] .sidebar nav a,
    :root[data-sidebar="mini"] .sidebar .soon,
    :root[data-sidebar="mini"] .sb-collapse { justify-content:center; gap:0; width:46px; height:46px; padding:0; margin-left:auto; margin-right:auto; }
    :root[data-sidebar="mini"] .brand { justify-content:center; gap:0; padding:6px 0 12px; }
    :root[data-sidebar="mini"] .group { flex:none; width:30px; height:1px; margin:10px auto 8px; padding:0; overflow:hidden; text-indent:-999em; background:var(--line); }
    :root[data-sidebar="mini"] .stp-row { flex-direction:column; gap:2px; padding:6px 2px; }
    :root[data-sidebar="mini"] .stp-row .stp-n,
    :root[data-sidebar="mini"] .stp-row .stp-s,
    :root[data-sidebar="mini"] .stp-akcje .stp-i,
    :root[data-sidebar="mini"] .stp-dot { display:none; }
    :root[data-sidebar="mini"] .stp-start button { justify-content:center; gap:0; width:46px; height:46px; padding:0; margin:0 auto; }
    .lt-row1 { flex-wrap:nowrap; }
    .lt-row1 .search-box { flex:1 1 340px; max-width:var(--srch-max); }
    .dd-btn { width:auto; padding:0 15px; color:var(--text); }
    .dd-btn .ic { color:var(--muted); }
    .dd-label { display:inline; }
    .seg.seg-desktop { display:inline-flex; margin-left:auto; }
    .seg.seg-mobile { display:none; }
    .lt-dd-desktop { display:inline-flex; }
    .lt-dd-mobile { display:none; }
    .lt-row2 { padding-left:2px; }
  }
  @media (max-width:860px){
    .lt-row1 .dd-pop { left:auto; right:0; }
  }
  @media (min-width:861px){
    @container tbar (max-width:776px){ .lt-row1 .dd-btn { width:42px; padding:0; } .lt-row1 .dd-label { display:none; } }
    @container tbar (max-width:626px){
      .lt-row1 .seg-desktop a > span:not(.ic) { display:none; }
      .lt-row1 { gap:8px; }
      .lt-row1 .search-box { min-width:120px; }
    }
    .lead-toolbar:has(.fin-period) .lt-row1 .search-box { flex:1 1 220px; max-width:var(--srch-max); }
    @container tbar (max-width:1051px){
      .lead-toolbar:has(.fin-period) .lt-row1 .dd-btn:not(.fp-btn) { width:42px; padding:0; }
      .lead-toolbar:has(.fin-period) .lt-row1 .dd-label { display:none; }
    }
    @container tbar (max-width:946px){ .lead-toolbar:has(.fin-period) .lt-row1 .seg-desktop a > span:not(.ic) { display:none; } }
    @container tbar (max-width:806px){ .lead-toolbar:has(.fin-period) .lt-row1 .fp-nav { display:none; } }
  }
  @media (max-width:860px){
    .topbar { padding-bottom:0; }
    .content { padding-top:14px; }
    .content > .lt-row2 { position:sticky; top:var(--tb-h); z-index:7; margin:-14px -16px 0; padding:14px 16px; background:var(--bg); }
    .content > .lt-row2:has(.lt-actions) { margin-bottom:0; }
    .emp-banner { border-radius:999px; padding:13px 22px; }
  }
  @media (max-width:659px){
    .lt-row2 { align-items:center; }
    .lt-row2 .seg-mobile { margin-left:auto; }
    .lt-row2 .lt-count { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .lt-row2 .dd-pop, .lt-row2 .dd + .dd .dd-pop { left:0; right:auto; }
  }
  @media (min-width:660px) and (max-width:860px){
    .lt-row1 { flex-wrap:nowrap; }
    .lt-dd-desktop { display:inline-flex; }
    .lt-dd-mobile { display:none; }
    .seg.seg-desktop { display:inline-flex; margin-left:auto; }
    .seg.seg-desktop a > span:not(.ic) { display:none; }
    .seg.seg-desktop a { padding:0 13px; }
    .seg.seg-mobile { display:none; }
    .lt-row2 { padding-left:2px; }
  }
  @media (max-width:600px){
    .lead-table, .lead-tstack { min-width:0; }
    .lead-tsection + .lead-tsection { margin-top:18px; }
    .lead-table .col-contact, .lead-table .col-status { display:none; }
    .lead-table .col-date { width:24%; }
    .lead-table .col-name { width:30%; }
    .lead-table .col-cat { width:22%; }
    .lead-table .col-assigned { width:24%; }
    .lead-table thead th { padding:6px 4px; }
    .lead-table thead .th-sort, .lead-table thead .th-static { font-size:12px; padding:7px 9px; }
    .lead-table td { padding:13px 11px; font-size:13px; }
    .lead-table thead .th-sort, .lead-table thead .th-static { display:inline-block; vertical-align:middle; }
    .lead-table .col-date { white-space:nowrap; }
    .asg-full { display:none; }
    .asg-mini { display:inline-block; font-weight:600; color:var(--muted); }
    .st-dot { display:inline-block; width:9px; height:9px; margin:-2px 7px 0 0; border-radius:50%; vertical-align:middle; }
    .st-dot.new { background:#3b82f6; box-shadow:0 0 0 3px rgba(59,130,246,.16), 0 0 7px rgba(59,130,246,.6); }
    .st-dot.in_progress { background:#f59e0b; box-shadow:0 0 0 3px rgba(245,158,11,.16), 0 0 7px rgba(245,158,11,.6); }
    .st-dot.won { background:#10b981; box-shadow:0 0 0 3px rgba(16,185,129,.16), 0 0 7px rgba(16,185,129,.6); }
    .st-dot.lost { background:#ef4444; box-shadow:0 0 0 3px rgba(239,68,68,.16), 0 0 7px rgba(239,68,68,.6); }
  }
  @media (max-width:480px){
    .lead-table .col-cat { display:none; }
    .lead-table .col-date { width:31%; }
    .lead-table .col-name { width:37%; }
    .lead-table .col-assigned { width:32%; }
  }
  .cal2-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
  .topbar-slot .cal2-bar { margin:0; width:100%; }
  .topbar-slot .cal2-title { font-size:19px; }
  .cal2-left { display:flex; align-items:center; gap:12px; min-width:0; }
  .cal2-title { font-size:20px; font-weight:800; letter-spacing:-.02em; margin:0; white-space:nowrap; }
  .cal2-today { display:inline-flex; align-items:center; height:42px; box-sizing:border-box; font-size:13px; font-weight:600; padding:0 18px; border:1px solid var(--line); border-radius:999px; color:var(--text); text-decoration:none; }
  .cal2-today:hover { border-color:var(--accent); color:var(--accent); text-decoration:none; }
  .cal2-right { display:flex; align-items:center; gap:10px; }
  .cal2-nav { display:inline-flex; gap:4px; }
  .cal2-navbtn { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border:1px solid var(--line); border-radius:999px; color:var(--text); text-decoration:none; }
  .cal2-navbtn:hover { border-color:var(--accent); color:var(--accent); text-decoration:none; }
  .cal2-navbtn .ic svg { width:18px; height:18px; }
  .cal2-seg { flex:none; }
  .cal2-who { position:relative; }
  .cal2-who > summary { list-style:none; cursor:pointer; display:inline-flex; align-items:center; gap:7px; height:42px; box-sizing:border-box; padding:0 16px; border:1px solid var(--line); border-radius:999px; font-size:13px; font-weight:600; max-width:200px; }
  .cal2-who > summary::-webkit-details-marker { display:none; }
  .cal2-who > summary span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cal2-who > summary .ic svg { width:15px; height:15px; color:var(--muted); flex:none; }
  .cal2-who[open] > summary { border-color:var(--accent); color:var(--accent); }
  .cal2-open { display:inline-flex; align-items:center; gap:7px; height:42px; box-sizing:border-box;
               padding:0 16px; border:1px solid var(--line); border-radius:999px; font-size:13px;
               font-weight:600; color:var(--text); text-decoration:none; white-space:nowrap; }
  .cal2-open:hover { border-color:var(--accent); color:var(--accent); text-decoration:none; }
  .cal2-open .ic svg { width:15px; height:15px; color:var(--muted); flex:none; }
  .cal2-open:hover .ic svg { color:var(--accent); }
  .cal2-who-pop { position:absolute; right:0; top:calc(100% + 6px); z-index:30; min-width:210px; background:var(--card); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); padding:6px; max-height:320px; overflow:auto; }
  .cal2-who-pop a { display:block; padding:8px 16px; border-radius:999px; font-size:13px; color:var(--text); text-decoration:none; white-space:nowrap; }
  .cal2-who-pop a:hover { background:var(--card-2); text-decoration:none; }
  .cal2-who-pop a.active { background:var(--accent-soft); color:var(--accent); font-weight:600; }
  .cal2-ev-scheduled { background:#eef4ff; color:#1d4ed8; border:1px solid #dbe6ff; }
  .cal2-ev-done { background:#ecfdf5; color:#047857; border:1px solid #cdeede; }
  .cal2-ev-cancelled { background:var(--card-2); color:var(--muted); border:1px solid var(--line); text-decoration:line-through; }
  .cal2-ev-reminder { background:#fff7ed; color:#c2410c; border:1px solid #fed7aa; }
  .cal2-ev-reminder .ic svg, .cal2-ev-task .ic svg { display:inline-block; width:12px; height:12px; vertical-align:-2px; margin-right:3px; }
  .cal2-ev-work { background:#f5f3ff; color:#6d28d9; border:1px solid #e4defd; }
  .cal2-ev-task { background:#ecfeff; color:#0e7490; border:1px solid #cbeef5; }
  :root[data-theme="dark"] .cal2-ev-reminder { background:rgba(249,115,22,.16); color:#fdba74; border-color:rgba(249,115,22,.3); }
  :root[data-theme="dark"] .cal2-ev-scheduled { background:rgba(59,130,246,.16); color:#bcd3ff; border-color:rgba(59,130,246,.3); }
  :root[data-theme="dark"] .cal2-ev-done { background:rgba(16,185,129,.16); color:#9ff0cf; border-color:rgba(16,185,129,.3); }
  :root[data-theme="dark"] .cal2-ev-work { background:rgba(139,92,246,.18); color:#c7b6fb; border-color:rgba(139,92,246,.32); }
  :root[data-theme="dark"] .cal2-ev-task { background:rgba(6,182,212,.16); color:#9be3f0; border-color:rgba(6,182,212,.32); }
  .cgrid { border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--card); }
  .cgrid-head, .cgrid-body { display:grid; grid-template-columns:54px repeat(1,1fr); }
  .cgrid-head { border-bottom:1px solid var(--line); background:var(--card); }
  .cgrid-corner { border-right:1px solid var(--line); }
  .cgrid-dayhead { display:flex; flex-direction:column; align-items:center; gap:1px; padding:8px 4px; border-left:1px solid var(--line); color:var(--text); text-decoration:none; }
  .cgrid-dayhead:hover { text-decoration:none; background:var(--card-2); }
  .cgrid-dow { font-size:11px; font-weight:700; text-transform:uppercase; color:var(--muted); letter-spacing:.03em; }
  .cgrid-dnum { font-size:17px; font-weight:700; }
  .cgrid-coltoday .cgrid-dnum { display:inline-flex; align-items:center; justify-content:center; min-width:26px; height:26px; border-radius:999px; background:var(--accent); color:var(--accent-ink); }
  .cgrid-scroll { max-height:calc(100vh - 230px); overflow-y:auto; overflow-x:hidden; }
  .cgrid-hours { position:relative; }
  .cgrid-hour { height:72px; position:relative; border-right:1px solid var(--line); }
  .cgrid-hour span { position:absolute; top:-7px; right:7px; font-size:11px; color:var(--muted); background:var(--card); padding:0 2px; }
  .cgrid-hour:first-child span { top:4px; }
  .cgrid-col { position:relative; border-left:1px solid var(--line); background:repeating-linear-gradient(to bottom, transparent 0, transparent 71px, var(--line) 71px, var(--line) 72px); }
  .cgrid-coltoday.cgrid-col { background-color:rgba(99,102,241,.04); }
  .cgrid-ev { position:absolute; border-radius:8px; padding:3px 7px; overflow:hidden; display:flex; flex-direction:column; gap:1px; font-size:12px; line-height:1.25; text-decoration:none; }
  .cgrid-ev:hover { text-decoration:none; filter:brightness(.97); z-index:4; }
  .cgrid-ev-time { font-size:10.5px; opacity:.85; }
  .cgrid-ev-title { font-weight:600; overflow:hidden; text-overflow:ellipsis; }
  .cgrid-now { position:absolute; left:0; right:0; height:2px; background:#ef4444; z-index:3; }
  .cgrid-now::before { content:""; position:absolute; left:-1px; top:-3px; width:8px; height:8px; border-radius:999px; background:#ef4444; }
  .cgrid-c2,.cgrid-c3,.cgrid-c4,.cgrid-c5,.cgrid-c6,.cgrid-c7 { display:none; }
  @media (min-width:560px){ .cgrid-head,.cgrid-body{ grid-template-columns:54px repeat(2,1fr);} .cgrid-c2{ display:flex; } .cgrid-col.cgrid-c2{ display:block; } }
  @media (min-width:900px){ .cgrid-head,.cgrid-body{ grid-template-columns:54px repeat(3,1fr);} .cgrid-c3{ display:flex; } .cgrid-col.cgrid-c3{ display:block; } }
  @media (min-width:1300px){ .cgrid-head,.cgrid-body{ grid-template-columns:54px repeat(5,1fr);} .cgrid-c4,.cgrid-c5{ display:flex; } .cgrid-col.cgrid-c4,.cgrid-col.cgrid-c5{ display:block; } }
  @media (min-width:1700px){ .cgrid-head,.cgrid-body{ grid-template-columns:54px repeat(7,1fr);} .cgrid-c6,.cgrid-c7{ display:flex; } .cgrid-col.cgrid-c6,.cgrid-col.cgrid-c7{ display:block; } }
  .cgrid-solo .cgrid-head, .cgrid-solo .cgrid-body { grid-template-columns:54px 1fr; }
  .cgrid-solo .cgrid-dayhead { flex-direction:row; align-items:baseline; gap:8px; }
  .cmonth-dows { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; margin-bottom:6px; }
  .cmonth-dow { font-size:11px; font-weight:700; text-transform:uppercase; color:var(--muted); text-align:center; }
  .cmonth-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
  .cmonth-cell { position:relative; min-width:0; min-height:96px; border:1px solid var(--line); border-radius:10px; padding:5px; background:var(--card); display:flex; flex-direction:column; gap:3px; overflow:hidden; }
  .cmonth-cell:hover { border-color:var(--accent); }
  .cmonth-cell.cmonth-off { background:repeating-linear-gradient(45deg, var(--dz-bg) 0 5px, transparent 5px 10px), var(--card); }
  .cmonth-off-t { position:absolute; top:5px; right:7px; z-index:1; max-width:70%; overflow:hidden; text-overflow:ellipsis;
                  white-space:nowrap; font-size:9.5px; font-weight:800; color:var(--dz); pointer-events:none; }
  .cyear-day.cyear-off { color:var(--dz); font-weight:800; background:var(--dz-bg); }
  .cmonth-celllink { position:absolute; inset:0; z-index:0; border-radius:10px; }
  .cmonth-out { background:var(--card-2); }
  .cmonth-out .cmonth-num { color:var(--muted); }
  .cmonth-num { position:relative; z-index:1; align-self:flex-start; font-size:13px; font-weight:700; color:var(--text); min-width:24px; height:24px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; }
  .cmonth-today .cmonth-num { background:var(--accent); color:var(--accent-ink); }
  .cmonth-evs { position:relative; z-index:1; display:flex; flex-direction:column; gap:3px; min-width:0; }
  .cmonth-ev { display:flex; align-items:center; gap:5px; min-width:0; max-width:100%; overflow:hidden; font-size:11px; padding:2px 6px; border-radius:6px; text-decoration:none; }
  .cmonth-ev:hover { text-decoration:none; filter:brightness(.97); }
  .cmonth-ev-dot { flex:none; width:6px; height:6px; border-radius:999px; background:currentColor; opacity:.7; }
  .cmonth-ev-t { min-width:0; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cmonth-more { font-size:11px; font-weight:600; color:var(--muted); padding-left:6px; }
  @media (max-width:600px){ .cmonth-cell { min-height:62px; } .cmonth-ev-t { display:none; } .cmonth-ev { gap:0; padding:2px; } }
  .cyear { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }
  .cyear-m { border:1px solid var(--line); border-radius:12px; padding:10px; background:var(--card); }
  .cyear-mtitle { display:block; font-size:14px; font-weight:700; margin-bottom:6px; text-decoration:none; color:var(--text); }
  .cyear-mtitle:hover { color:var(--accent); text-decoration:none; }
  .cyear-dows { display:grid; grid-template-columns:repeat(7,1fr); }
  .cyear-dows span { font-size:10px; color:var(--muted); text-align:center; }
  .cyear-grid { display:grid; grid-template-columns:repeat(7,1fr); }
  .cyear-day { display:flex; align-items:center; justify-content:center; aspect-ratio:1; font-size:11px; color:var(--text); text-decoration:none; border-radius:999px; }
  .cyear-day:hover { text-decoration:none; background:var(--card-2); }
  .cyear-empty { visibility:hidden; }
  .cyear-hasev { font-weight:700; color:var(--accent); background:var(--accent-soft); }
  .cyear-today { outline:2px solid var(--accent); }
  .cal-fab-menu { position:fixed; right:24px; bottom:24px; z-index:40; }
  .cal-fab { list-style:none; cursor:pointer; width:58px; height:58px; border-radius:999px; display:flex; align-items:center; justify-content:center; background:var(--accent); color:var(--accent-ink); box-shadow:0 6px 20px rgba(0,0,0,.22); }
  .cal-fab::-webkit-details-marker { display:none; }
  .cal-fab:hover { filter:brightness(.97); }
  .cal-fab.disabled { background:var(--card-2); color:var(--muted); cursor:not-allowed; box-shadow:var(--shadow); }
  .cal-fab.disabled:hover { filter:none; }
  .cal-fab-plus { display:flex; transition:transform .18s ease; }
  .cal-fab-plus .ic svg { width:26px; height:26px; }
  .cal-fab-menu[open] .cal-fab-plus { transform:rotate(45deg); }
  @media (hover:hover) and (pointer:fine) {
    .cal-fab[data-tip]::before { content:attr(data-tip); position:absolute; right:calc(100% + 10px); top:50%;
      padding:8px 13px; border-radius:999px; background:var(--card); color:var(--text);
      border:1px solid var(--line); box-shadow:var(--shadow); font-size:13px; font-weight:600;
      line-height:1.1; white-space:nowrap; opacity:0; pointer-events:none;
      transform:translateY(-50%) translateX(8px);
      transition:opacity .14s ease, transform .14s ease; }
    .cal-fab[data-tip]:hover::before { opacity:1; transform:translateY(-50%) translateX(0); }
    .cal-fab-menu[open] .cal-fab[data-tip]::before { opacity:0; }
  }
  .cal-fab-pop { position:absolute; right:2px; bottom:70px; display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
  .cal-fab-menu[open] .cal-fab-pop { animation:fabpop .16s ease both; }
  @keyframes fabpop { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
  .cal-fab-item { display:inline-flex; align-items:center; gap:10px; background:var(--card); border:1px solid var(--line); border-radius:999px; padding:10px 16px; box-shadow:var(--shadow); color:var(--text); text-decoration:none; font-weight:600; font-size:14px; white-space:nowrap; }
  .cal-fab-item:hover { border-color:var(--accent); color:var(--accent); text-decoration:none; }
  .cal-fab-item .ic svg { width:17px; height:17px; }
  .cal-fab-item.soon { opacity:.55; cursor:not-allowed; }
  button.cal-fab-item { font-family:inherit; cursor:pointer; }
  .cal-soon { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); background:var(--card-2); border-radius:999px; padding:1px 7px; }
  .cal-ctx { position:fixed; z-index:60; display:flex; flex-direction:column; align-items:stretch; gap:6px;
             padding:8px; background:var(--card); border:1px solid var(--line); border-radius:16px;
             box-shadow:0 12px 32px rgba(0,0,0,.22); animation:fabpop .12s ease both; }
  .cal-ctx[hidden] { display:none; }
  .cal-ctx-when { padding:3px 10px 5px; font-size:12.5px; font-weight:650; color:var(--muted); white-space:nowrap; }
  .cal-ctx .cal-fab-item { box-shadow:none; justify-content:flex-start; padding:9px 14px; }
  .cgrid-col, .cmonth-cell { -webkit-touch-callout:none; }
  .cal-new-title { font-size:20px; font-weight:800; letter-spacing:-.02em; margin:14px 0 14px; }
  .cal-form { max-width:560px; }
  .cal-form-actions button { border-radius:999px; padding:11px 22px; white-space:nowrap; display:inline-flex; align-items:center; gap:8px; }
  .cal-form-actions button .ic svg { width:17px; height:17px; }
  .cal-ico { position:relative; }
  .cal-ico .cal-ico-b svg { width:16px; height:16px; }
  .cal-ico input { padding-left:36px; }
  .cal-ico input::-webkit-calendar-picker-indicator { opacity:0; cursor:pointer; }
  .cal-when { margin-top:4px; }
  .cal-when-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:8px; }
  @media (max-width:600px){ .cal-when-row { grid-template-columns:1fr; } }
  .cal-dur { display:flex; align-items:center; gap:8px; }
  .cal-dur input { width:74px; }
  .cal-dur span { color:var(--muted); font-size:13px; }
  .cal-ico-b { position:absolute; left:9px; top:50%; transform:translateY(-50%); display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; padding:0; margin:0; border:0; background:transparent; color:var(--muted); cursor:pointer; border-radius:6px; }
  .cal-ico-b:hover { color:var(--accent); background:var(--card-2); }
  .cgrid-ev[data-move] { cursor:grab; touch-action:none; -webkit-user-select:none; user-select:none; }
  .cgrid-ev[data-move]:active { cursor:grabbing; }
  .cgrid-ev.cgrid-ev-drag { opacity:.92; z-index:30; box-shadow:0 10px 24px rgba(0,0,0,.28); cursor:grabbing; transition:top .08s ease, left .08s ease; }
  .cal2-bar-m { display:none; }
  @media (max-width:860px){
    .topbar-slot .cal2-left, .topbar-slot .cal2-seg { display:none; }
    .topbar-slot .cal2-bar { flex-wrap:nowrap; justify-content:flex-start; }
    .topbar-slot .cal2-right { flex-wrap:nowrap; gap:8px; }
    .cal2-bar-m { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:14px; }
    .cal2-bar-m .cal2-left { flex:1; min-width:0; gap:8px; }
    .cal2-bar-m .cal2-title { overflow:hidden; text-overflow:ellipsis; font-size:17px; }
    .cal2-bar-m .cal2-today { padding:0 11px; flex:none; }
    .topbar-slot .cal2-nav { gap:4px; }
    .topbar-slot .cal2-who > summary { padding:0 14px; }
  }
  @media (max-width:439px){
    .cal2-who > summary > span:not(.ic) { display:none; }
    .topbar-slot .cal2-who > summary { width:42px; padding:0; justify-content:center; }
  }
  @media (max-width:600px){
    #cal-root { max-width:100%; overflow-x:hidden; }
    .cal2-bar { gap:8px; }
    .cal2-title { font-size:18px; }
    .cal2-left { gap:8px; }
    .cgrid-head, .cgrid-body { grid-template-columns:42px repeat(1,1fr); }
    .cgrid-solo .cgrid-head, .cgrid-solo .cgrid-body { grid-template-columns:42px 1fr; }
    .cgrid-hour span { font-size:10px; right:5px; }
    .cyear { grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; }
    .cal-fab-menu { right:16px; bottom:16px; }
  }
  @media (max-width:860px){
    .main:has(.cgrid-scroll) { height:100dvh; min-height:0; overflow:hidden; }
    .content:has(.cgrid-scroll) { display:flex; flex-direction:column; flex:1; min-height:0; }
    .content:has(.cgrid-scroll) #cal-root { display:flex; flex-direction:column; flex:1; min-height:0; }
    .content:has(.cgrid-scroll) .cgrid { display:flex; flex-direction:column; min-height:0; }
    .cgrid-scroll { flex:1; min-height:0; max-height:none; -webkit-overflow-scrolling:touch; touch-action:pan-y; }
  }
  @media (min-width:861px){
    .main:has(#cal-root:not(.cal-client) .cgrid-scroll),
    .main:has(#cal-root:not(.cal-client) .cmonth-grid) { height:100dvh; min-height:0; overflow:hidden; }
    .content:has(#cal-root:not(.cal-client) .cgrid-scroll),
    .content:has(#cal-root:not(.cal-client) .cmonth-grid) { display:flex; flex-direction:column; flex:1; min-height:0; }
    .content:has(.cgrid-scroll) > #cal-root:not(.cal-client),
    .content:has(.cmonth-grid) > #cal-root:not(.cal-client) { display:flex; flex-direction:column; flex:1; min-height:0; }
    #cal-root:not(.cal-client) .cgrid { display:flex; flex-direction:column; min-height:0; }
    #cal-root:not(.cal-client) .cgrid-scroll { flex:1; min-height:0; max-height:none; }
    .content:has(#cal-root:not(.cal-client) .cmonth-grid) { overflow-y:auto; }
    .content:has(.cmonth-grid) > #cal-root:not(.cal-client),
    #cal-root:not(.cal-client) .cmonth { display:flex; flex-direction:column; flex:1 0 auto; min-height:0; }
    #cal-root:not(.cal-client) .cmonth-grid { flex:1 0 auto; grid-auto-rows:minmax(96px,1fr); }
  }
  .cal-layout { display:grid; gap:16px; grid-template-columns:1fr; align-items:start; }
  @media (min-width:900px){ .cal-layout { grid-template-columns:1fr 360px; } }
  .cal-section { margin-bottom:28px; }
  .cal-section-title { display:flex; align-items:center; gap:9px; font-size:15px; font-weight:700; margin:0 0 14px; }
  .cal-section-title .ic svg { width:18px; height:18px; color:var(--muted); }
  .cal-count { font-size:12px; font-weight:700; color:var(--muted); background:var(--card-2); border-radius:999px; padding:1px 9px; margin-left:6px; }
  .cal-week { display:flex; flex-direction:column; gap:10px; }
  .cal-week-day { border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
  .cal-week-label { display:flex; align-items:center; gap:8px; padding:8px 14px; font-size:13px; font-weight:700; color:var(--muted); background:var(--card-2); text-transform:capitalize; }
  .cal-today .cal-week-label { color:var(--accent); background:var(--accent-soft); }
  .cal-today-tag { font-size:11px; font-weight:700; background:var(--accent); color:var(--accent-ink); border-radius:999px; padding:1px 8px; }
  .cal-empty-day { font-size:13px; color:var(--muted); margin:0; padding:10px 14px; }
  .cal-week-day .cal-card { margin-bottom:0; border:0; border-top:1px solid var(--line); border-radius:0; box-shadow:none; }
  .cal-week-day .cal-card:first-of-type { border-top:0; }
  .cal-card { padding:14px 16px; }
  .cal-card-head { display:flex; gap:14px; align-items:flex-start; }
  .cal-card-time { flex:none; min-width:82px; display:flex; flex-direction:column; gap:2px; }
  .cal-date { font-size:12px; font-weight:600; color:var(--muted); }
  .cal-time { font-size:14px; font-weight:700; color:var(--accent); }
  .cal-card-body { flex:1; min-width:0; }
  .cal-title { display:block; font-size:15px; font-weight:700; margin-bottom:6px; word-break:break-word; }
  .cal-chips { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:6px; }
  .cal-chip-lead,.cal-chip-who,.cal-chip-eng { display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:600; color:var(--muted); background:var(--card-2); border-radius:999px; padding:2px 9px; }
  .cal-chip-lead .ic svg,.cal-chip-who .ic svg,.cal-chip-eng .ic svg { width:13px; height:13px; }
  .cal-desc { font-size:13px; color:var(--muted); margin:6px 0 0; white-space:pre-wrap; word-break:break-word; }
  .cal-card-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; padding-top:12px; border-top:1px solid var(--line); }
  .cal-status-done { opacity:.65; }
  .cal-status-cancelled { opacity:.45; }
  .badge.cal-status-scheduled { background:rgba(59,130,246,.12); color:#1d4ed8; }
  .badge.cal-status-done { background:rgba(16,185,129,.12); color:#047857; }
  .badge.cal-status-cancelled { background:var(--card-2); color:var(--muted); }
  .badge.cal-kind-work { background:rgba(139,92,246,.14); color:#6d28d9; }
  .badge.cal-kind-meeting { background:rgba(59,130,246,.12); color:#1d4ed8; }
  :root[data-theme="dark"] .badge.cal-kind-work { background:rgba(139,92,246,.22); color:#c7b6fb; }
  :root[data-theme="dark"] .badge.cal-status-scheduled { background:rgba(59,130,246,.18); color:#93c5fd; }
  :root[data-theme="dark"] .badge.cal-status-done { background:rgba(16,185,129,.18); color:#6ee7b7; }
  .btn-sm { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:6px 16px; margin:0; font-size:12.5px; font-weight:600; border-radius:999px; cursor:pointer; border:1px solid var(--line); background:var(--card-2); color:var(--text); text-decoration:none; }
  .btn-sm .ic { flex:none; }
  .btn-sm .ic svg { width:15px; height:15px; }
  .btn-sm:hover { border-color:var(--accent); color:var(--accent); text-decoration:none; filter:none; }
  .cal-add-head { margin-bottom:4px; }
  .cal-add-head strong { font-size:15px; }
  .cal-dates { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
  .cal-form-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
  .cal-form-actions button { margin-top:0; }
  .req { color:#dc2626; margin-left:2px; }
  input.pole-zle,textarea.pole-zle{border-color:#dc2626 !important;
    box-shadow:0 0 0 3px rgba(220,38,38,.14) !important}
  .wal-b{display:block; margin:5px 2px 0; font-size:12px; line-height:1.35; color:#dc2626}
  :root[data-theme="dark"] .wal-b{color:#fca5a5}
  .pipe-board { display:flex; gap:12px; overflow-x:auto; padding:2px 2px 10px; align-items:flex-start; scroll-snap-type:x proximity; }
  .pipe-col { flex:0 0 268px; max-width:268px; background:var(--card-2); border:1px solid var(--line);
              border-top:3px solid var(--bk,var(--line)); border-radius:16px; display:flex; flex-direction:column; scroll-snap-align:start;
              transition:box-shadow .15s, border-color .15s; }
  .pipe-col.drop-hot { border-color:var(--bk); box-shadow:0 0 0 3px color-mix(in srgb, var(--bk) 30%, transparent); }
  .pipe-col-head { display:flex; align-items:center; gap:8px; padding:11px 13px 6px; user-select:none; -webkit-user-select:none; cursor:default; }
  .pipe-col-dot { flex:none; width:9px; height:9px; border-radius:50%; background:var(--bk,var(--muted)); }
  .pipe-col-title { font-weight:700; font-size:13.5px; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pipe-col-count { flex:none; min-width:22px; height:21px; padding:0 7px; display:inline-flex; align-items:center; justify-content:center;
                    border-radius:999px; background:color-mix(in srgb, var(--bk) 16%, var(--card)); color:var(--bk); font-size:12px; font-weight:700; }
  .pipe-col-info { display:flex; align-items:baseline; gap:8px; padding:0 13px 9px; border-bottom:1px solid var(--line); min-height:8px; }
  .pipe-col-sub { font-size:11.5px; color:var(--muted); flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pipe-col-sum { flex:none; font-size:11.5px; font-weight:700; color:var(--text); }
  .pipe-col-open { flex:none; display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px;
                   border-radius:8px; color:var(--muted); opacity:.55; }
  .pipe-col-open:hover { opacity:1; color:var(--accent); background:var(--card); text-decoration:none; }
  .pipe-col-open .ic svg { width:15px; height:15px; }
  .pipe-more, .lst-more { display:block; margin:0 10px 10px; padding:7px 8px; text-align:center; font-size:12px; font-weight:600;
               color:var(--muted); border:1px dashed var(--line); border-radius:11px; text-decoration:none; }
  .pipe-more:hover, .lst-more:hover { color:var(--accent); border-color:var(--accent); text-decoration:none; }
  .pipe-more-row, .lst-more-row { display:flex; justify-content:center; margin-top:14px; }
  .pipe-more-row .pipe-more, .lst-more-row .lst-more { margin:0; padding:9px 18px; }
  .pipe-void { max-width:620px; margin:18px auto 0; padding:22px 24px; text-align:center;
               background:transparent; border:1.5px dashed var(--line); border-radius:var(--radius); }
  .pipe-void strong { font-size:16px; }
  .pipe-void p { margin:8px 0 0; font-size:13px; line-height:1.55; color:var(--muted); }
  .pipe-void .pv-acts { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; margin-top:18px; }
  @media (max-width:560px){ .pipe-void .pv-acts { justify-content:center; } }
  .pipe-focus-head { display:flex; align-items:center; gap:11px; margin-bottom:18px; }
  .pipe-back { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; flex:none;
               border:1px solid var(--line); border-radius:999px; background:var(--card); color:var(--text); box-shadow:var(--shadow); }
  .pipe-back:hover { background:var(--accent-soft); border-color:var(--accent); text-decoration:none; }
  .pipe-focus-title { font-size:19px; font-weight:800; letter-spacing:-.02em; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pipe-focus-sub { font-size:12px; }
  .pipe-grid { display:grid; gap:12px; grid-template-columns:repeat(auto-fill,minmax(248px,1fr)); align-content:start; }
  .pipe-grid .pipe-grip { display:none; }
  .pipe-col-body { display:flex; flex-direction:column; gap:9px; padding:10px; min-height:56px; }
  .pipe-empty { text-align:center; padding:14px 6px; font-size:12.5px; border:1px dashed var(--line); border-radius:12px; }
  .pipe-card { background:var(--card); border:1px solid var(--line); border-radius:13px; box-shadow:var(--shadow);
               transition:border-color .12s, box-shadow .12s, transform .12s; touch-action:pan-y; }
  .pipe-card:hover { border-color:var(--accent); box-shadow:0 2px 10px rgba(0,0,0,.07); }
  .pipe-card-main { display:flex; flex-direction:column; gap:7px; padding:11px 12px; text-decoration:none; color:inherit; cursor:pointer; }
  .pipe-card-main:hover { text-decoration:none; }
  .pipe-card-top { display:flex; align-items:center; gap:6px; }
  .pipe-grip { margin-left:auto; flex:none; color:var(--muted); opacity:.45; cursor:grab; }
  .pipe-grip .ic svg { width:15px; height:15px; }
  .pipe-card:hover .pipe-grip { opacity:.9; }
  .badge.pipe-kind { font-size:10.5px; letter-spacing:.02em; text-transform:uppercase; font-weight:700; }
  .badge.pipe-kind-eng { background:color-mix(in srgb, #6366f1 14%, var(--card)); color:#4338ca; }
  .badge.pipe-kind-lead { background:color-mix(in srgb, #3b82f6 14%, var(--card)); color:#1d4ed8; }
  :root[data-theme="dark"] .badge.pipe-kind-eng { background:rgba(99,102,241,.2); color:#c7d2fe; }
  :root[data-theme="dark"] .badge.pipe-kind-lead { background:rgba(59,130,246,.2); color:#bfdbfe; }
  .pipe-tag { font-size:10.5px; font-weight:700; padding:2px 7px; border-radius:999px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
              background:color-mix(in srgb, var(--bk) 15%, var(--card)); color:color-mix(in srgb, var(--bk) 72%, var(--text)); }
  .pipe-card-title { font-weight:700; font-size:13.5px; line-height:1.3; }
  .pipe-card-sub { display:flex; align-items:center; gap:5px; font-size:12px; color:var(--muted); min-width:0; }
  .pipe-card-sub .ic { flex:none; }
  .pipe-card-sub .ic svg { width:13px; height:13px; }
  .pipe-cut { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pipe-card-foot { display:flex; gap:10px; padding-top:2px; border-top:1px solid var(--line); margin-top:1px; }
  .pipe-f { display:flex; flex-direction:column; gap:1px; min-width:0; flex:1; padding-top:6px; }
  .pipe-f-l { font-size:10.5px; text-transform:uppercase; letter-spacing:.03em; color:var(--muted); font-weight:600; }
  .pipe-f-v { font-size:13px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pipe-f-v.warn { color:#b45309; }
  .pipe-f-v.ok { color:#047857; font-weight:600; font-size:12px; }
  :root[data-theme="dark"] .pipe-f-v.warn { color:#fcd34d; }
  :root[data-theme="dark"] .pipe-f-v.ok { color:#6ee7b7; }
  .pipe-card-meta { display:flex; align-items:center; gap:9px; font-size:11.5px; color:var(--muted); }
  .pipe-who { display:inline-flex; align-items:center; gap:4px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pipe-who.warn { color:#b45309; font-weight:600; }
  :root[data-theme="dark"] .pipe-who.warn { color:#fcd34d; }
  .pipe-card-meta .ic { flex:none; }
  .pipe-card-meta .ic svg { width:12.5px; height:12.5px; }
  .pipe-age { margin-left:auto; white-space:nowrap; }
  .pipe-card.pipe-dragging { opacity:.95; z-index:40; position:relative; cursor:grabbing;
                             box-shadow:0 12px 28px rgba(0,0,0,.24); border-color:var(--accent); }
  .pipe-card.pipe-saving { opacity:.55; }
  .pipe-move { border-top:1px solid var(--line); padding:7px 9px; display:flex; gap:6px; }
  .pipe-move select { flex:1; margin:0; font-size:12px; padding:5px 24px 5px 7px; background-position:right 8px center; }
  .pipe-move button { margin:0; padding:5px 10px; font-size:12px; }
  .pipe-dd-dot { flex:none; width:9px; height:9px; border-radius:50%; }
  .dd-pop .dd-sort-opt { display:flex; align-items:center; gap:9px; }
  @media (max-width:700px){ .pipe-col { flex:0 0 84vw; max-width:84vw; } }
  .cpipe-box { border-top:1px solid var(--line); margin-top:18px; padding-top:14px; }
  .cpipe-head { display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin-bottom:6px; }
  .cpipe-head strong { font-size:15px; }
  .cpipe-n { font-size:12px; font-weight:700; color:var(--muted); background:var(--card-2); border-radius:999px; padding:1px 9px; }
  .cpipe-hint { margin:0 0 12px; font-size:12.5px; line-height:1.5; }
  .cpipe-mode { display:inline-flex; margin:0 0 0 auto; padding:3px; gap:3px; background:var(--card-2); border:1px solid var(--line); border-radius:999px; }
  .cpipe-mode-b, form label.cpipe-mode-b {
                  display:inline-flex; align-items:center; margin:0; padding:5px 12px; font:inherit; font-size:12.5px; font-weight:700;
                  border:0; border-radius:999px; background:transparent; color:var(--muted); cursor:pointer; }
  .cpipe-mode-b:hover { filter:none; color:var(--text); }
  .cpipe-mode-b.on { background:var(--card); color:var(--accent); box-shadow:var(--shadow); }
  .cpipe-mode-b input { position:absolute; opacity:0; pointer-events:none; }
  form label.cpipe-mode-b:has(input:checked) { background:var(--card); color:var(--accent); box-shadow:var(--shadow); }
  form label.cpipe-mode-b:not(:has(input:checked)) { background:transparent; color:var(--muted); box-shadow:none; }
  .cpipe-mode-b input:focus-visible ~ span { outline:2px solid var(--accent-soft); outline-offset:3px; border-radius:999px; }
  .cpipe-board { display:flex; flex-direction:column; gap:10px; }
  .cpipe-col { --bk:#94a3b8; --tint:color-mix(in srgb, var(--bk) 7%, var(--card)); background:var(--tint);
               border:1.5px solid color-mix(in srgb, var(--bk) 32%, var(--line)); border-radius:16px;
               transition:border-color .18s ease, box-shadow .18s ease; }
  .cpipe-col.drop-hot { border-color:var(--bk); box-shadow:0 0 0 3px color-mix(in srgb, var(--bk) 28%, transparent); }
  .cpipe-chead { display:flex; align-items:center; gap:8px; padding:9px 12px; }
  .cpipe-cdot { flex:none; width:9px; height:9px; border-radius:50%; background:var(--bk); }
  .cpipe-ctitle { font-weight:700; font-size:13.5px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cpipe-ccount { flex:none; font-size:11.5px; font-weight:700; color:var(--bk); background:color-mix(in srgb, var(--bk) 14%, var(--card)); border-radius:999px; padding:1px 8px; }
  .cpipe-addf { margin:0 0 0 auto; display:flex; }
  .cpipe-add { margin:0; width:28px; height:28px; padding:0; border-radius:50%; background:var(--card-2); color:var(--muted); border:1px solid var(--line); }
  .cpipe-add:hover { filter:none; background:color-mix(in srgb, var(--bk) 14%, var(--card)); color:var(--bk); border-color:var(--bk); }
  .cpipe-add .ic svg { width:15px; height:15px; }
  .cpipe-drop { display:flex; flex-direction:column; gap:7px; padding:0 10px 11px; }
  .cpipe-drop:empty { padding-bottom:9px; }
  .cpipe-drop:empty::after { content:""; display:block; height:22px; border:1px dashed color-mix(in srgb, var(--bk) 40%, var(--line)); border-radius:999px; }
  .cpipe-stage { display:flex; align-items:center; gap:8px; background:var(--card); border:1px solid var(--line); border-radius:999px; padding:5px 6px 5px 10px; box-shadow:var(--shadow); }
  .cpipe-stage.dragging { opacity:.35; }
  .cpipe-grip { flex:none; color:var(--muted); cursor:grab; display:inline-flex; }
  .cpipe-grip:active { cursor:grabbing; }
  .cpipe-grip svg { width:15px; height:17px; }
  .cpipe-name { flex:1 1 auto; min-width:0; margin:0; padding:6px 10px; font-size:13.5px; font-weight:600; background:transparent; border:1px solid transparent; border-radius:999px; }
  .cpipe-name:hover { border-color:var(--line); }
  .cpipe-name:focus { background:var(--card); border-color:var(--accent); }
  .cpipe-delf { margin:0; flex:none; display:flex; }
  .cpipe-del { margin:0; width:30px; height:30px; padding:0; border-radius:50%; background:transparent; color:var(--muted); border:1px solid var(--line); }
  .cpipe-del:hover { filter:none; background:rgba(239,68,68,.12); color:#ef4444; border-color:#ef4444; }
  .cpipe-del .ic svg { width:15px; height:15px; }
  .cpipe-bar { display:flex; align-items:center; gap:10px; margin-top:10px; min-height:16px; }
  .cpipe-status { font-size:12.5px; }
  .cpipe-status.ok { color:#047857; }
  .svcb-pipe { display:inline-flex; align-items:center; gap:5px; text-decoration:none; font-size:11.5px; }
  .svcb-pipe .ic svg { width:13px; height:13px; }
  .pconf-board { display:flex; flex-direction:column; gap:16px; max-width:720px; margin-bottom:18px; }
  .pconf-bucket { --tint:color-mix(in srgb, var(--bk) 7%, var(--card)); background:var(--tint); border:1.5px solid color-mix(in srgb, var(--bk) 38%, var(--line)); border-radius:18px; display:flex; flex-direction:column; box-shadow:0 0 0 3px color-mix(in srgb, var(--bk) 9%, transparent), 0 6px 22px color-mix(in srgb, var(--bk) 15%, transparent); transition:box-shadow .18s ease, opacity .18s ease, border-color .18s ease; }
  .pconf-bucket.off { opacity:.5; }
  .pconf-bucket.drop-hot { border-color:var(--bk); box-shadow:0 0 0 3px color-mix(in srgb, var(--bk) 40%, transparent), 0 8px 26px color-mix(in srgb, var(--bk) 24%, transparent); }
  .pconf-bhead { display:flex; align-items:center; gap:9px; padding:13px 15px; }
  .pconf-bdot { flex:none; width:11px; height:11px; border-radius:50%; background:var(--bk); box-shadow:0 0 0 3px color-mix(in srgb, var(--bk) 22%, transparent); }
  .pconf-btitle { font-weight:800; font-size:15px; letter-spacing:.01em; }
  .pconf-bcount { font-size:12px; font-weight:700; color:var(--bk); background:color-mix(in srgb, var(--bk) 13%, var(--card)); border-radius:999px; padding:1px 9px; }
  .pconf-toggle { margin-left:auto; }
  .pconf-drop { display:flex; flex-direction:column; gap:9px; padding:2px 12px 14px; min-height:20px; }
  .pconf-drop.drop-hot { }
  .pconf-stage { display:flex; align-items:center; gap:11px; background:var(--card); border:1px solid var(--line); border-radius:999px; padding:7px 8px 7px 12px; box-shadow:var(--shadow); transition:transform .16s ease, box-shadow .16s ease, opacity .16s ease; }
  .pconf-stage.dragging { opacity:.35; }
  .pconf-stage.drop-anim { animation:pconf-pop .22s ease; }
  @keyframes pconf-pop { 0%{ transform:scale(.97); } 55%{ transform:scale(1.025); box-shadow:0 6px 18px color-mix(in srgb, var(--bk) 30%, transparent); } 100%{ transform:scale(1); } }
  .pconf-grip { flex:none; color:var(--muted); cursor:grab; display:inline-flex; touch-action:none; }
  .pconf-grip:active { cursor:grabbing; }
  .pconf-grip svg { width:16px; height:18px; }
  .pconf-num { flex:none; width:27px; height:27px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:12.5px; font-weight:800; color:var(--bk); background:color-mix(in srgb, var(--bk) 15%, var(--card)); }
  .pconf-name { flex:1 1 auto; min-width:0; margin:0; padding:8px 12px; font-size:14px; font-weight:600; background:transparent; border:1px solid transparent; border-radius:999px; }
  .pconf-name:hover { border-color:var(--line); }
  .pconf-name:focus { background:var(--card); border-color:var(--accent); }
  .pconf-count { flex:none; min-width:20px; text-align:center; font-size:12px; font-weight:700; }
  .pconf-move { flex:none; display:flex; align-items:center; gap:4px; }
  .pconf-bkt-sel { max-width:132px; padding:4px 7px; font-size:12px; border-radius:9px;
    border:1px solid var(--line); background:var(--card); color:var(--text); }
  @media (max-width:640px){ .pconf-bkt-sel { max-width:96px; } }
  .pconf-del { flex:none; display:flex; align-items:center; }
  .pconf-trash { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; margin:0; padding:0; border-radius:50%; background:transparent; color:var(--muted); border:1px solid var(--line); transition:.15s; }
  .pconf-trash:hover { filter:none; background:rgba(239,68,68,.12); color:#ef4444; border-color:#ef4444; }
  .pconf-trash .ic svg { width:16px; height:16px; }
  .pconf-fab-form { margin:0; }
  .pconf-fab-dot { flex:none; width:11px; height:11px; border-radius:50%; }
  .pconf-bar { display:flex; align-items:center; gap:12px; max-width:720px; }
  .pconf-bar button { margin:0; }
  .pconf-status { font-size:13px; }
  .pconf-status.ok { color:#047857; }
  @media (max-width:520px){
    .pconf-name { font-size:13.5px; }
    .pconf-stage { gap:8px; }
  }
  .badge.pipe-stage-nowy { background:#eff6ff; color:#1d4ed8; }
  .badge.pipe-stage-kontakt { background:#f5f3ff; color:#6d28d9; }
  .badge.pipe-stage-umowiony { background:#fefce8; color:#a16207; }
  .badge.pipe-stage-przyszedl { background:#ecfeff; color:#0e7490; }
  .badge.pipe-stage-staly { background:#ecfdf5; color:#047857; }
  .badge.pipe-stage-odpadl { background:var(--card-2); color:var(--muted); }
  :root[data-theme="dark"] .badge.pipe-stage-nowy { background:rgba(59,130,246,.15); color:#93c5fd; }
  :root[data-theme="dark"] .badge.pipe-stage-kontakt { background:rgba(139,92,246,.15); color:#c4b5fd; }
  :root[data-theme="dark"] .badge.pipe-stage-umowiony { background:rgba(234,179,8,.15); color:#fde047; }
  :root[data-theme="dark"] .badge.pipe-stage-przyszedl { background:rgba(6,182,212,.15); color:#67e8f9; }
  :root[data-theme="dark"] .badge.pipe-stage-staly { background:rgba(16,185,129,.15); color:#6ee7b7; }
  .kc-card { display:flex; flex-direction:column; gap:14px; }
  .kc-head { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
  .kc-head strong { font-size:15px; }
  .kc-total { font-size:13px; color:var(--muted); }
  .kc-total strong { color:inherit; font-size:14px; }
  .kc-visits { display:flex; flex-direction:column; gap:6px; }
  .kc-visit { display:grid; grid-template-columns:auto 1fr auto auto; align-items:center; gap:10px; padding:8px 10px; background:var(--card-2); border:1px solid var(--line); border-radius:9px; font-size:13px; }
  .kc-visit-when { font-size:12px; white-space:nowrap; }
  .kc-visit-title { font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .kc-visit-price { font-weight:600; white-space:nowrap; }
  .kc-note-add, .cl-note-add { display:flex; flex-direction:column; gap:8px; }
  .kc-note-add { margin-bottom:12px; }
  .kc-note-add textarea, .cl-note-add textarea, textarea.ta-sm { min-height:54px; resize:vertical; }
  .kc-note-add button, .cl-note-add button { align-self:flex-start; margin-top:0; }
  .kc-notes { display:flex; flex-direction:column; gap:8px; }
  .kc-note { padding:11px 14px; background:var(--card-2); border:1px solid var(--line); border-radius:14px; }
  .kc-note-meta { font-size:11.5px; margin-bottom:3px; }
  .kc-note-body { font-size:13.5px; line-height:1.45; overflow-wrap:anywhere; }
  @media (max-width:560px) { .kc-visit { grid-template-columns:1fr auto; row-gap:4px; } .kc-visit-when { grid-column:1 / -1; } }
  .cal-chip-price { display:inline-flex; align-items:center; font-size:12px; font-weight:600; padding:1px 8px; border-radius:999px; background:#ecfdf5; color:#047857; border:1px solid rgba(4,120,87,.2); }
  :root[data-theme="dark"] .cal-chip-price { background:rgba(16,185,129,.15); color:#6ee7b7; border-color:rgba(16,185,129,.3); }
  .stg-badge { display:inline-flex; align-items:center; gap:6px; padding:2px 10px; border-radius:999px; font-size:12px; font-weight:600; white-space:nowrap;
    color:var(--sb); background:color-mix(in srgb, var(--sb) 14%, var(--card)); border:1px solid color-mix(in srgb, var(--sb) 38%, transparent); }
  .stg-badge::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--sb); box-shadow:0 0 6px color-mix(in srgb, var(--sb) 70%, transparent); }
  .cat-stg::before { border-radius:2px; }
  .cl-tabs { display:flex; gap:3px; width:fit-content; max-width:100%; overflow-x:auto; margin-bottom:16px; padding:4px; scrollbar-width:none; background:var(--card-2); border:1px solid var(--line); border-radius:999px; }
  .cl-tabs::-webkit-scrollbar { display:none; }
  .proj-bar { position:sticky; top:var(--tb-h); z-index:7; display:flex; flex-direction:column;
    gap:10px; background:var(--bg); margin:-8px -24px 0; padding:8px 24px 14px; }
  .pb-r1, .pb-r2 { display:flex; align-items:center; gap:10px; min-width:0; }
  .proj-bar .cl-tabs { margin:0; flex:0 1 auto; min-width:0; }
  .pb-tools { display:flex; align-items:center; gap:10px; flex:1 1 240px; min-width:0; }
  .pb-tools .search-box { flex:1 1 auto; min-width:0; }
  .proj-bar .seg.seg-desktop { display:inline-flex; flex:none; margin-left:auto; }
  .pb-r2 { transition:transform .2s cubic-bezier(.4,0,.2,1), opacity .16s ease,
                      margin-bottom .2s cubic-bezier(.4,0,.2,1); }
  .proj-bar[data-bar2="off"] .pb-r2 { transform:translateY(-8px); opacity:0; pointer-events:none;
    margin-bottom:calc(-1 * (var(--pb-r2h, 42px) + 10px)); }
  @media (prefers-reduced-motion:reduce){ .pb-r2 { transition:none; } }
  @media (max-width:860px){
    .proj-bar { margin:-14px -16px 0; padding:14px 16px; }
    .proj-bar .cl-tab { padding:0 11px; gap:6px; }
    .proj-bar .seg.seg-desktop a > span:not(.ic) { display:none; }
  }
  .cl-tab { display:inline-flex; align-items:center; gap:7px; height:32px; padding:0 16px; border-radius:999px; font-size:13px; font-weight:600; color:var(--muted); text-decoration:none; white-space:nowrap; }
  .cl-tab .ic svg { width:16px; height:16px; }
  .cl-tab:hover { color:var(--text); text-decoration:none; }
  .cl-tab.active { background:var(--card); color:var(--accent); box-shadow:var(--shadow); }
  .cl-tab.active .ic { color:var(--accent); }
  .cl-tab-count { display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 5px; border-radius:999px; background:var(--card-2); color:var(--muted); font-size:11px; font-weight:700; line-height:1; }
  .cl-tab.active .cl-tab-count { background:var(--accent-soft); color:var(--accent); }
  .cl-body { display:flex; flex-direction:column; gap:16px; }
  .out-pill { display:inline-flex; align-items:center; padding:3px 11px; border-radius:999px; font-size:13px; font-weight:700; color:#b45309; background:#fffbeb; border:1px solid rgba(180,83,9,.28); }
  .out-pill.ok { color:#047857; background:#ecfdf5; border-color:rgba(4,120,87,.22); }
  :root[data-theme="dark"] .out-pill { color:#fcd34d; background:rgba(245,158,11,.14); border-color:rgba(245,158,11,.3); }
  :root[data-theme="dark"] .out-pill.ok { color:#6ee7b7; background:rgba(16,185,129,.14); border-color:rgba(16,185,129,.3); }
  .cl-grid { display:grid; gap:14px; grid-template-columns:minmax(0,1fr); margin-top:14px; }
  @media (min-width:760px){ .cl-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); } }
  .cl-grid > .card, .cl-grid > .cl-card { margin:0; height:100%; }
  .cl-grid-full { grid-column:1 / -1; }
  .cl-card { display:flex; flex-direction:column; gap:12px; background:var(--card); border:1px solid var(--line);
    border-radius:var(--radius); padding:16px 18px; box-shadow:var(--shadow); }
  .cl-card-head { display:flex; align-items:center; gap:9px; }
  .cl-card-head h3 { margin:0; font-size:14.5px; font-weight:700; letter-spacing:-.01em; }
  .cl-card-count { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 6px;
    border-radius:999px; background:var(--card-2); color:var(--muted); font-size:11.5px; font-weight:700; line-height:1; }
  .cl-card-link { margin-left:auto; font-size:12.5px; font-weight:600; color:var(--muted); text-decoration:none; white-space:nowrap; }
  .cl-card-link:hover { color:var(--accent); text-decoration:none; }
  .cl-list { display:flex; flex-direction:column; gap:8px; }
  .cl-item { display:flex; align-items:center; gap:10px; padding:10px 13px; background:var(--card-2); border:1px solid var(--line);
    border-radius:12px; color:var(--text); text-decoration:none; }
  a.cl-item:hover { border-color:var(--accent); text-decoration:none; }
  .cl-item-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
  .cl-item-t { font-weight:600; font-size:13.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cl-item-s { font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cl-item-v { font-size:13.5px; font-weight:700; white-space:nowrap; }
  .cl-item-v.due { color:#b45309; }
  @media (max-width:640px){
    .cl-item { flex-wrap:wrap; row-gap:7px; }
    .cl-item-main { flex:1 1 150px; }
    .cl-item-v { margin-left:auto; }
  }
  :root[data-theme="dark"] .cl-item-v.due { color:#fcd34d; }
  .cl-crm-link { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin:0; }
  .cl-crm-link select { flex:1 1 160px; min-width:0; width:auto; }
  .cl-note { padding:10px 13px; background:var(--card-2); border:1px solid var(--line); border-radius:12px; }
  .cl-note-meta { font-size:11.5px; margin-bottom:3px; }
  .cl-note-body { font-size:13.5px; line-height:1.45; }
  .st-tiles-sm .st-tile-v { font-size:19px; }
  .fin-cards { display:grid; gap:14px; grid-template-columns:1fr; margin-top:4px; }
  @media (min-width:860px){ .fin-cards { grid-template-columns:1fr 1fr; } }
  .fin-cards > .fin-card, .fin-cards > .fin2-card { margin:0; height:100%; min-width:0; display:flex; flex-direction:column; }
  .fin-cards > * { min-width:0; }
  .fin-card-full { grid-column:1 / -1; min-width:0; }
  .fin-total-row td { font-weight:700; border-top:2px solid var(--line); background:var(--card-2); }
  .fin-total-row td.due { color:#b45309; }
  :root[data-theme="dark"] .fin-total-row td.due { color:#fcd34d; }
  .tax-grid { display:flex; flex-direction:column; gap:2px; margin-top:4px; }
  .tax-row { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:7px 2px; border-bottom:1px dashed var(--line); }
  .tax-row:last-child { border-bottom:0; }
  .tax-l { font-size:13.5px; color:var(--muted); }
  .tax-v { font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; }
  .tax-row.tax-strong { padding-top:9px; }
  .tax-row.tax-strong .tax-l { color:var(--text); font-weight:600; }
  .tax-row.tax-strong .tax-v { font-size:16px; font-weight:800; }
  .tax-hint { font-size:11px; }
  .tax-ok .tax-v { color:#047857; } .tax-warn .tax-v { color:#b45309; }
  :root[data-theme="dark"] .tax-ok .tax-v { color:#6ee7b7; } :root[data-theme="dark"] .tax-warn .tax-v { color:#fcd34d; }
  .int-f { display:contents; }
  .int-state { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:14px 0 6px; font-size:13px; }
  .int-state-top { margin-top:0; margin-bottom:14px; }
  .int-who { font-weight:600; }
  .int-state .int-act { margin-left:auto; }
  .int-desc { font-size:13px; line-height:1.5; margin-bottom:14px; }
  .int-desc p { margin:0; }
  .int-svc { display:flex; align-items:flex-start; gap:12px; padding:10px 0; border-top:1px solid var(--line); }
  .int-svc-t { flex:1; min-width:0; }
  .int-svc-t strong { font-size:13.5px; }
  .int-svc-t p { margin:2px 0 0; font-size:12.5px; line-height:1.45; }
  .int-warn { font-size:12px; opacity:.85; }
  .int-warn::before { content:"⚠︎ "; }
  .int-svc .int-act { flex:none; white-space:nowrap; padding-top:1px; }
  .int-block { margin-top:20px; padding-top:16px; border-top:1px solid var(--line); }
  .int-warn-b { margin:6px 0; }
  .int-share { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:12px 0 0; font-size:12.5px; }
  .int-more { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 4px; }
  .int-more-t { flex:1 1 100%; margin:0; }
  .int-check { margin:0 0 18px; }
  .co-row { display:grid; gap:0 14px; grid-template-columns:1fr; }
  @media (min-width:560px){ .co-row.addr { grid-template-columns:minmax(0,1fr) minmax(0,2fr); } }
  .co-hint { display:block; margin-top:5px; font-size:11.5px; font-weight:500; color:var(--muted); line-height:1.45; }
  .co-lead { font-size:12.5px; line-height:1.5; margin:0 0 14px; }
  .co-form .rzd-head:not(:first-of-type) { margin-top:28px; padding-top:22px; border-top:1px solid var(--line); }
  .co-site { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 4px;
    padding:12px 14px; background:var(--card-2); border-radius:14px; }
  .co-site-t { flex:1 1 100%; margin:0; }
  .co-state { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0; font-size:13px; }
  .co-push { margin:0; }
  .co-after-rows { margin-top:18px; }
  .co-det { margin-top:14px; border:1px solid var(--line); border-radius:14px; padding:12px 14px; background:var(--card-2); }
  .co-det summary { cursor:pointer; font-size:13px; font-weight:600; }
  .co-det[open] summary { margin-bottom:6px; }
  .co-legacy { font-size:12.5px; line-height:1.5; margin:0; padding:9px 11px; border-radius:8px;
    background:rgba(245,158,11,.1); border:1px solid rgba(245,158,11,.3); }
  .co-krows { display:flex; flex-direction:column; gap:8px; margin-top:6px; }
  .co-krow { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.3fr) 34px;
    gap:8px; align-items:center; }
  .co-krow input { width:100%; margin:0; border-radius:999px; }
  .co-khead { padding:0 16px; font-size:11.5px; letter-spacing:.05em; text-transform:uppercase;
    color:var(--muted); font-weight:600; }
  .co-krows .rz-addbtn { align-self:flex-start; }
  .co-kmain { text-align:center; font-size:11px; font-weight:700; color:var(--muted); }
  .co-krows [data-rows] { display:flex; flex-direction:column; gap:8px; }
  @media (max-width:640px){
    .co-krow { grid-template-columns:minmax(0,1fr) 34px; }
    .co-krow .co-kphone, .co-krow .co-kmail { grid-column:1 / 2; }
    .co-khead span:nth-child(2), .co-khead span:nth-child(3) { display:none; }
  }
  .fin-check-cell { align-self:end; padding-bottom:11px; }
  .fin-check { flex-direction:row !important; align-items:center; gap:8px !important; font-weight:500 !important; }
  .fin-check input { width:auto; }
  .rec-off td { opacity:.55; }
  .rec-acts { display:flex; gap:6px; justify-content:flex-end; }
  .rec-acts form { display:inline; }
  .exp-scan { vertical-align:middle; color:var(--muted); }
  .exp-scan:hover { color:var(--accent); }
  .exp-scan .ic svg { width:15px; height:15px; }
  .rz-late td { background:color-mix(in srgb, #ef4444 6%, transparent); }
  .fv-actions { display:flex; flex-wrap:wrap; gap:8px; }
  .fv-actions form { display:inline; }
  .fv-addrow { display:grid; grid-template-columns:1fr 64px 64px 110px 84px auto; gap:6px; margin-top:10px; align-items:center; }
  .fv-addrow input, .fv-addrow select { margin:0; }
  .fv-addrow button { margin:0; white-space:nowrap; }
  @media (max-width:700px){ .fv-addrow { grid-template-columns:1fr 1fr; } .fv-addrow input[name="item_name"] { grid-column:1/-1; } }
  .bcg-wrap { display:grid; gap:16px; grid-template-columns:1fr; }
  @media (min-width:720px){ .bcg-wrap { grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); align-items:center; } }
  .bcg-plot { position:relative; padding:2px 6px 34px 46px; margin:6px 0 0; }
  .bcg-area { position:relative; aspect-ratio:1.4/1; min-height:210px; border:1px solid var(--line); border-radius:12px; background:linear-gradient(var(--card-2),var(--card)); }
  .bcg-med-v { position:absolute; top:0; bottom:0; width:0; border-left:1px dashed var(--line); }
  .bcg-med-h { position:absolute; left:0; right:0; height:0; border-top:1px dashed var(--line); }
  .bcg-q { position:absolute; font-size:10px; font-weight:700; color:var(--muted); opacity:.6; text-transform:uppercase; letter-spacing:.02em; }
  .bcg-q-tl { top:6px; left:8px; } .bcg-q-tr { top:6px; right:8px; } .bcg-q-bl { bottom:6px; left:8px; } .bcg-q-br { bottom:6px; right:8px; }
  .bcg-ty { position:absolute; left:-8px; transform:translate(-100%,50%); font-size:10px; color:var(--muted); white-space:nowrap; }
  .bcg-tx { position:absolute; bottom:-6px; transform:translate(-50%,100%); font-size:10px; color:var(--muted); white-space:nowrap; }
  .bcg-bubble { position:absolute; transform:translate(-50%,50%); border-radius:999px; opacity:.85; cursor:default; box-shadow:0 2px 6px rgba(0,0,0,.12); }
  .bcg-star { background:#f59e0b; } .bcg-cow { background:#10b981; } .bcg-quest { background:#6366f1; } .bcg-dog { background:#9ca3af; }
  .bcg-bubble:hover, .bcg-bubble:focus-visible { opacity:1; z-index:9; outline:2px solid var(--card); }
  .bcg-bubble::after { content:attr(data-tip); position:absolute; left:50%; bottom:calc(100% + 9px); transform:translateX(-50%);
    width:max-content; max-width:210px; background:#111827; color:#f9fafb; font-size:11.5px; line-height:1.45; font-weight:500;
    padding:7px 9px; border-radius:9px; box-shadow:0 6px 18px rgba(0,0,0,.28); opacity:0; visibility:hidden; pointer-events:none; z-index:10; }
  .bcg-bubble:hover::after, .bcg-bubble:focus-visible::after { opacity:1; visibility:visible; }
  .bcg-bubble.bcg-tip-l::after { left:auto; right:0; transform:none; }
  .bcg-axis-y { position:absolute; left:2px; top:50%; transform:rotate(-90deg) translateX(50%); transform-origin:left center; font-size:10px; font-weight:600; color:var(--muted); white-space:nowrap; }
  .bcg-axis-x { position:absolute; bottom:2px; left:calc(46px + (100% - 52px)/2); transform:translateX(-50%); font-size:10px; font-weight:600; color:var(--muted); white-space:nowrap; }
  .bcg-legend { display:flex; flex-direction:column; gap:7px; }
  .bcg-legrow { display:flex; align-items:center; gap:8px; font-size:13px; }
  .bcg-legname { flex:1 1 auto; min-width:0; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .bcg-legnums { flex:none; font-size:12px; font-variant-numeric:tabular-nums; }
  .bcg-legq { flex:none; font-size:12px; }
  .bcg-hint { font-size:11.5px; line-height:1.5; margin:4px 0 0; }
  .bcg-dot { width:12px; height:12px; border-radius:999px; flex:none; }
  .fin-head { display:flex; align-items:center; gap:10px; flex:1 1 auto; min-width:0; }
  .fin-head .fin-tabs { flex:0 1 auto; min-width:0; }
  .fin-head .fin-period { margin-left:auto; flex:0 0 auto; max-width:100%; }
  @media (max-width:1279px){
    .fin-head { flex-wrap:wrap; }
    .fin-head .fin-period { margin-left:0; width:100%; }
    .fin-head .fin-period .fp-dd { flex:1 1 auto; width:auto; }
  }
  @media (min-width:1280px){
    .fin-head .fp-range { display:none; }
    .fin-head .cl-tab { padding:0 12px; }
  }
  @media (max-width:760px){
    .topbar:has(.fin-head) { flex-wrap:wrap; }
    .topbar:has(.fin-head) .topbar-slot, .topbar:has(.fin-head) .fin-head { display:contents; }
    .topbar:has(.fin-head) .fin-period { flex:1 1 0%; min-width:0; margin:0; }
    .topbar:has(.fin-head) .fin-period .fp-dd { flex:1 1 auto; width:auto; }
    .topbar:has(.fin-head) .fin-tabs { order:2; flex:1 0 100%; min-width:0; margin-top:2px; }
  }
  @media (max-width:489px){
    .topbar:has(.fin-head) .fp-nav { display:none; }
    .topbar:has(.fin-head) .fp-btn > .ic { display:none; }
    .topbar:has(.fin-head) .fp-range { display:none; }
  }
  .fin-period { display:flex; align-items:center; gap:8px; margin:0; flex-wrap:nowrap; }
  .fp-nav { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; flex:none; border-radius:999px; background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow); color:var(--muted); }
  .fp-nav:hover { color:var(--accent); border-color:var(--accent); text-decoration:none; }
  .fp-nav.disabled { opacity:.35; pointer-events:none; }
  .fp-nav .ic svg { width:17px; height:17px; }
  .fin-period .fp-dd { flex:0 1 200px; width:200px; min-width:0; }
  .fin-period .fp-btn { width:100%; height:42px; justify-content:flex-start; padding:0 14px; gap:9px; overflow:hidden; }
  .fin-period .fp-btn > .ic svg { width:18px; height:18px; }
  .fp-text { flex:1 1 auto; min-width:0; display:flex; align-items:center; justify-content:center; gap:7px; overflow:hidden; }
  .fp-label { min-width:0; font-weight:700; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .fp-label::first-letter { text-transform:uppercase; }
  .fp-range { min-width:0; font-size:12px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .fp-caret { display:inline-flex; flex:none; transform:rotate(90deg); color:var(--muted); }
  .fp-caret svg { width:18px; height:18px; }
  details[open] > .fp-btn .fp-caret { transform:rotate(-90deg); }
  .fp-pop { left:auto; right:0; top:44px; min-width:min(340px,86vw); width:max-content; max-width:min(420px,86vw); padding:9px; }
  .fp-presets { display:flex; flex-direction:column; gap:7px; }
  .fp-cols { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
  .fp-col { display:flex; flex-direction:column; gap:5px; }
  .fp-presets a { display:block; padding:8px 13px; border:1px solid var(--line); border-radius:999px;
    background:var(--card); color:var(--text); font-size:13px; font-weight:600; text-align:center; white-space:nowrap; }
  .fp-presets a:hover { border-color:var(--accent); color:var(--accent); background:var(--accent-soft); text-decoration:none; }
  .fp-presets a.active { border-color:var(--accent); background:var(--accent); color:#fff; }
  .fp-form { border-top:1px solid var(--line); margin-top:9px; padding-top:10px; display:flex; align-items:flex-end; gap:8px; flex-wrap:wrap; }
  .fp-form-title { width:100%; font-size:11.5px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.03em; }
  .fp-dates { display:flex; gap:8px; flex:1 1 auto; min-width:0; }
  .fp-dates label { display:flex; flex-direction:column; gap:3px; font-size:11.5px; font-weight:600; color:var(--muted); flex:1 1 0; min-width:0; }
  .fp-dates input { width:100%; padding:7px 9px; font-size:13px; }
  .fp-dates .cal-ico input { padding-left:32px; }
  .fp-dates .cal-ico-b { left:7px; }
  .fp-form .btn-sm { border-radius:999px; margin-left:auto; }
  @media (max-width:560px){ .fp-cols { grid-template-columns:1fr; } .fp-range { display:none; } }
  .fin-tabs { margin-bottom:0; }
  .fin-secseg { margin-bottom:14px; max-width:100%; overflow-x:auto; }
  .fin-gran-l { font-size:12px; }
  .st-tile-s { font-size:11px; }
  .fin-delta { display:inline-block; margin-left:7px; font-size:11.5px; font-weight:700; vertical-align:2px; }
  .fin-delta.up { color:#047857; }
  .fin-delta.down { color:#b91c1c; }
  .fin-delta.flat { color:var(--muted); font-weight:600; }
  :root[data-theme="dark"] .fin-delta.up { color:#6ee7b7; }
  :root[data-theme="dark"] .fin-delta.down { color:#fca5a5; }
  .fin-ins-list { margin:6px 0 0; padding-left:18px; display:flex; flex-direction:column; gap:7px; font-size:13.5px; line-height:1.5; }
  .fin-ins-list li::marker { color:var(--accent); }
  .fin-svc-row.fin-svc-abc { grid-template-columns:auto minmax(80px,1.3fr) 2fr auto auto; }
  .fin-abc { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:6px; font-size:11px; font-weight:800; }
  .fin-abc.abc-A { background:rgba(16,185,129,.16); color:#047857; }
  .fin-abc.abc-B { background:rgba(245,158,11,.16); color:#b45309; }
  .fin-abc.abc-C { background:var(--card-2); color:var(--muted); }
  :root[data-theme="dark"] .fin-abc.abc-A { color:#6ee7b7; }
  :root[data-theme="dark"] .fin-abc.abc-B { color:#fcd34d; }
  .fin-scn-row { display:grid; gap:14px; grid-template-columns:1fr; margin:14px 0; }
  @media (min-width:760px){ .fin-scn-row { grid-template-columns:repeat(3,1fr); } }
  .fin-scn { margin:0; min-width:0; }
  .fin-scn-v { font-size:24px; font-weight:800; letter-spacing:-.02em; margin-top:2px; }
  .fin-scn-v.ok { color:#047857; }
  .fin-scn-v.bad { color:#b91c1c; }
  :root[data-theme="dark"] .fin-scn-v.ok { color:#6ee7b7; }
  :root[data-theme="dark"] .fin-scn-v.bad { color:#fca5a5; }
  .fin-scn-l { font-size:12px; }
  .fin-scn-grid { margin-top:10px; border-top:1px solid var(--line); padding-top:8px; }
  .fin-scn-neutralny { border-color:var(--accent); }
  .fin-bar-fut { background:repeating-linear-gradient(135deg,#a78bfa,#a78bfa 4px,#c4b5fd 4px,#c4b5fd 8px); }
  .fin-dot-fut { background:#a78bfa; }
  .fin-chart { display:flex; gap:10px; align-items:flex-end; overflow-x:auto; padding:8px 2px 0; }
  .fin-bar { display:flex; flex-direction:column; align-items:center; gap:6px; min-width:26px; }
  .fin-bar-track { display:flex; align-items:flex-end; gap:3px; height:92px; }
  .fin-bar-charged, .fin-bar-paid { width:12px; border-radius:4px 4px 0 0; min-height:2px; }
  .fin-bar-charged { background:#8b5cf6; }
  .fin-bar-paid { background:#10b981; }
  .fin-bar-x { font-size:11px; color:var(--muted); white-space:nowrap; }
  .fin-legend { display:flex; gap:18px; margin-top:12px; font-size:12px; color:var(--muted); }
  .fin-legend i { display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:6px; vertical-align:-1px; }
  .fin-dot-charged { background:#8b5cf6; }
  .fin-dot-paid { background:#10b981; }
  .fin-dot-hours { background:#f59e0b; }
  .fin-block-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:10px; }
  .fin-sub { margin-top:6px; }
  .fin-chart2 { display:flex; gap:10px; align-items:flex-start; }
  .fin-yaxis { display:flex; flex-direction:column; justify-content:space-between; align-items:flex-end; height:92px; margin-top:8px; flex:none; font-size:10px; line-height:1; color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
  .fin-plot { position:relative; flex:1; min-width:0; }
  .fin-grid { position:absolute; left:0; right:0; top:8px; height:92px; display:flex; flex-direction:column; justify-content:space-between; pointer-events:none; }
  .fin-grid i { display:block; height:0; border-top:1px dashed var(--line); opacity:.7; }
  .fin-plot .fin-chart { position:relative; }
  .fin-bar-hours { width:12px; border-radius:4px 4px 0 0; min-height:2px; background:#f59e0b; }
  .fin-svc-list { display:flex; flex-direction:column; gap:10px; }
  .fin-svc-row { display:grid; grid-template-columns:minmax(90px,1.4fr) 2fr auto auto; align-items:center; gap:10px; font-size:13px; }
  .fin-svc-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
  .fin-svc-bar { height:8px; border-radius:999px; background:var(--card-2); overflow:hidden; }
  .fin-svc-bar > span { display:block; height:100%; border-radius:999px; background:#8b5cf6; }
  .fin-svc-val { white-space:nowrap; font-variant-numeric:tabular-nums; }
  .fin-svc-pct { min-width:34px; text-align:right; font-variant-numeric:tabular-nums; }
  @media (max-width:560px){ .fin-svc-row { grid-template-columns:1fr auto; } .fin-svc-bar { display:none; }
    .fin-svc-row.fin-svc-abc { grid-template-columns:auto 1fr auto auto; } }
.zl-braki { display: block; font-size: 12px; }
.zl-strata { color: var(--bad, #b91c1c); }
.tabela-otulina { overflow-x: auto; }
  .lead-table.stk-table .col-name { width:28%; }
  .lead-table.stk-table .col-cat { width:15%; }
  .lead-table.stk-table .col-qty { width:13%; }
  .lead-table.stk-table .col-status { width:13%; }
  .lead-table.stk-table .col-contact { width:17%; }
  .lead-table.stk-table .col-act { width:14%; }
  .stk-kindcell { display:inline-flex; align-items:center; gap:7px; color:var(--muted); }
  .stk-kindcell .ic svg { width:16px; height:16px; }
  .stk-name { font-weight:600; font-size:14.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .stk-sub { font-size:12.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .stk-qty { flex:none; font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap; }
  .stk-qty .muted { font-size:12.5px; font-weight:600; }
  .stk-steps { display:inline-flex; align-items:center; gap:6px; flex:none; }
  .stk-steps form { margin:0; }
  .stk-step { margin:0; padding:0; width:34px; height:34px; border-radius:999px; font-size:17px; font-weight:700;
              background:var(--card-2); color:var(--text); border:1px solid var(--line); box-shadow:none; }
  .stk-step:hover { filter:none; border-color:var(--accent); color:var(--accent); }
  .stk-take, .stk-back { width:auto; height:30px; padding:0 12px; font-size:12.5px; font-weight:700; }
  .stk-back { background:var(--accent); color:var(--accent-ink); border-color:transparent; }
  .stk-back:hover { color:var(--accent-ink); border-color:transparent; filter:brightness(1.06); }
  .stk-kind { flex:none; display:inline-flex; color:var(--muted); }
  .stk-kind .ic svg { width:18px; height:18px; }
  .stk-card-head .stk-name { display:flex; align-items:center; gap:7px; }
  .stk-kindbadge { display:inline-flex; align-items:center; gap:5px; background:var(--card-2); color:var(--muted); }
  .stk-kindbadge .ic svg { width:14px; height:14px; }
  .stk-kind-hint { margin:-4px 0 4px; font-size:12.5px; }
  .stk-modal-title { display:inline-flex; align-items:center; gap:9px; min-width:0; }
  .stk-modal-title .ic { flex:none; color:var(--accent); }
  .stk-modal-title .ic svg { width:18px; height:18px; }
  .stk-modal-hint { margin:-6px 0 14px; font-size:13px; line-height:1.5; }
  .stk-more { margin:2px 0; }
  .stk-more > summary { cursor:pointer; font-size:13px; padding:4px 0; }
  .stk-more .stack { padding-top:6px; }
  .stk-card { gap:8px; border-top:3px solid transparent; }
  .stk-card.stk-out { border-top-color:#ef4444; }
  .stk-card.stk-low { border-top-color:#f59e0b; }
  .stk-card-head { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--text); }
  .stk-card-head:hover { text-decoration:none; color:var(--accent); }
  .stk-card-qty { font-size:24px; font-weight:800; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
  .stk-card-qty .muted { font-size:13px; font-weight:600; }
  .stk-hero { display:flex; flex-direction:column; gap:8px; }
  .stk-hero-top { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
  .stk-hero-act { margin-left:auto; display:inline-flex; }
  .stk-hero-sub { font-size:13px; line-height:1.55; }
  .stk-hero-sub:empty { display:none; }
  .stk-detail .dt-side { padding-bottom:80px; }
  .stk-detail .dt-side .rzd-bar { flex-wrap:wrap; }
  .stk-detail-qty { font-size:28px; font-weight:800; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
  .stk-unit-list { display:flex; flex-direction:column; gap:10px; }
  .stk-unit { padding:10px 12px; border:1px solid var(--line); border-radius:14px; background:var(--card-2); }
  .stk-unit.repair { border-color:#f59e0b55; }
  .stk-unit.gone { opacity:.55; }
  .stk-unit-head { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
  .stk-unit-name { font-variant-numeric:tabular-nums; }
  .stk-unit-where { flex:1; min-width:120px; font-size:13px; }
  .stk-unit-quick { margin:0; }
  .stk-unit-meta { margin:5px 0 0; font-size:12.5px; line-height:1.5; }
  .stk-warr { color:#059669; }
  .stk-warr-over { color:#dc2626; }
  :root[data-theme="dark"] .stk-warr { color:#34d399; }
  :root[data-theme="dark"] .stk-warr-over { color:#f87171; }
  .stk-unit-more { margin:6px 0 0; }
  .stk-unit-more > summary { cursor:pointer; font-size:12.5px; padding:3px 0; }
  .stk-unit-body { display:flex; flex-direction:column; gap:14px; padding:10px 0 2px; }
  .stk-unit-body .stack { margin:0; }
  .stk-unit-body .rz-f { margin-bottom:12px; }
  .stk-unit-body .rzd-bar { margin-top:10px; padding-top:12px; }
  .stk-unit-body form { margin:0; }
  .stk-unit-hist { padding-top:2px; border-top:1px solid var(--line); }
  .stk-unit-del { margin:0; }
  .stk-unit-add { margin:12px 0 0; padding-top:10px; border-top:1px solid var(--line); }
  .stk-unit-add > summary { cursor:pointer; display:flex; align-items:center; gap:6px; font-size:13.5px; font-weight:600; }
  .stk-unit-add .ic svg { width:15px; height:15px; }
  .stk-unit-tag { font-size:12px; padding:1px 7px; border-radius:99px; background:var(--card-2);
                  color:var(--muted); font-variant-numeric:tabular-nums; }
  .stk-svc-form { display:flex; gap:8px; flex-wrap:wrap; margin:0; }
  .stk-svc-form input { flex:0 1 170px; }
  .stk-svc-form button { margin:0; }
  .stk-movebox .stack, .stk-service, .stk-units, .stk-hist { margin-top:0; }
  .stk-hist-list { display:flex; flex-direction:column; }
  .stk-hist-row { display:grid; grid-template-columns:64px minmax(0,1fr) auto auto; align-items:center; gap:10px;
                  padding:8px 0; border-bottom:1px solid var(--line); font-size:13.5px; }
  .stk-hist-row:last-child { border-bottom:0; }
  .stk-hist-d { font-weight:800; font-variant-numeric:tabular-nums; text-align:right; }
  .stk-hist-d.up { color:#059669; }
  .stk-hist-d.down { color:#dc2626; }
  .stk-hist-d.zero { color:var(--muted); }
  :root[data-theme="dark"] .stk-hist-d.up { color:#34d399; }
  :root[data-theme="dark"] .stk-hist-d.down { color:#f87171; }
  .stk-hist-main { display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0; }
  .stk-hist-proj { font-size:12px; padding:1px 7px; border-radius:99px; background:var(--card-2); text-decoration:none; color:var(--muted); }
  .stk-hist-val { font-variant-numeric:tabular-nums; font-weight:600; white-space:nowrap; }
  .stk-hist-when { display:flex; flex-direction:column; align-items:flex-end; gap:1px;
                   font-size:12px; white-space:nowrap; line-height:1.35; }
  @media (max-width:560px){
    .stk-hist-row { grid-template-columns:56px minmax(0,1fr) auto; }
    .stk-hist-when { grid-column:2/-1; }
  }
  @media (max-width:600px){
    .lead-table.stk-table .col-cat { display:none; }
    .lead-table.stk-table .col-name { width:39%; }
    .lead-table.stk-table .col-qty { width:27%; }
    .lead-table.stk-table .col-act { width:34%; }
    .lead-table.stk-table td.col-act { overflow:visible; white-space:normal; }
    .lead-table.stk-table td.col-act .stk-steps { flex-wrap:wrap; justify-content:flex-end; gap:5px; }
    .lead-table.stk-table td { padding:13px 9px; }
    .stk-take, .stk-back { padding:0 10px; font-size:12px; }
  }
  .st-wrap { display:flex; flex-direction:column; gap:14px; }
  .st-tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(168px,1fr)); gap:12px; }
  .st-tiles + .st-tiles { margin-top:12px; }
  .st-tiles-5 { grid-template-columns:repeat(5,minmax(0,1fr)); }
  @media (max-width:900px) { .st-tiles-5 { grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); } }
  @media (max-width:1200px) { .st-tiles-5 { grid-template-columns:repeat(auto-fit,minmax(168px,1fr)); } }
  .st-tile { display:flex; flex-direction:column; gap:3px; min-width:0; padding:var(--pad-tile); background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
  .st-tile-l { display:flex; align-items:center; gap:7px; font-size:11.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); }
  .st-tile-l .ic svg { width:15px; height:15px; }
  .st-tile-v { font-size:26px; font-weight:800; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
  .st-tile-s { font-size:12px; }
  .st-tile.ok .st-tile-v { color:#047857; }
  .st-tile.warn .st-tile-v { color:#b45309; }
  .st-tile.bad .st-tile-v { color:#b91c1c; }
  :root[data-theme="dark"] .st-tile.ok .st-tile-v { color:#6ee7b7; }
  :root[data-theme="dark"] .st-tile.warn .st-tile-v { color:#fcd34d; }
  :root[data-theme="dark"] .st-tile.bad .st-tile-v { color:#fca5a5; }
  .st-grid { display:grid; gap:14px; grid-template-columns:1fr; }
  @media (min-width:900px){ .st-grid { grid-template-columns:1fr 1fr; } }
  .st-grid > .st-card { margin:0; height:100%; min-width:0; }
  .st-card-full { grid-column:1 / -1; min-width:0; }
  .st-head { display:flex; align-items:center; gap:8px; margin-bottom:13px; font-size:14px; }
  .st-head-t { font-size:14px; font-weight:700; }
  .st-head-t::first-letter { text-transform:uppercase; }
  .st-head .ic { color:var(--muted); flex:none; }
  .st-head .ic svg { width:17px; height:17px; }
  .st-list { display:flex; flex-direction:column; gap:11px; }
  .st-row { display:flex; flex-direction:column; gap:5px; min-width:0; }
  .st-row-top { display:flex; align-items:baseline; justify-content:space-between; gap:12px; font-size:13px; }
  .st-row-l { min-width:0; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .st-row-v { flex:none; color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
  .st-bar { display:block; height:7px; border-radius:999px; background:var(--card-2); overflow:hidden; }
  .st-bar > i { display:block; height:100%; border-radius:999px; background:var(--accent); }
  .st-more { margin-top:12px; }
  .st-more > summary { display:inline-flex; align-items:center; gap:6px; padding:6px 14px; border-radius:999px; background:var(--card-2); border:1px solid var(--line); font-size:12.5px; font-weight:600; color:var(--muted); cursor:pointer; list-style:none; }
  .st-more > summary::-webkit-details-marker { display:none; }
  .st-more > summary:hover { color:var(--text); border-color:var(--accent); }
  .st-more[open] > summary { margin-bottom:12px; color:var(--accent); border-color:var(--accent); }
  .st-note { font-size:11.5px; line-height:1.5; margin:12px 0 0; }
  .st-vbar { display:block; width:12px; border-radius:4px 4px 0 0; min-height:2px; background:var(--accent); }
  .st-rd-wrap { display:flex; flex-direction:column; align-items:center; gap:10px; margin-bottom:20px; }
  .st-rd { display:block; width:100%; max-width:520px; height:auto; overflow:visible; }
  .st-rd-grid { fill:none; stroke:var(--line); stroke-width:1; }
  .st-rd-grid.st-rd-out { stroke:var(--muted); opacity:.4; }
  .st-rd-ax { stroke:var(--line); stroke-width:1; }
  .st-rd-lb { fill:var(--muted); font-size:12.5px; font-weight:600; }
  .st-rd-area { fill-opacity:.16; stroke-width:2; stroke-linejoin:round; }
  .st-rd-dot { stroke:var(--card); stroke-width:2; }
  .st-rd-pt { cursor:default; }
  .st-rd-leg { display:flex; flex-wrap:wrap; justify-content:center; gap:6px 18px; font-size:12.5px; }
  .st-rd-leg span { display:inline-flex; align-items:center; gap:7px; }
  .st-rd-leg i { flex:none; width:11px; height:11px; border-radius:3px; }
  .tab-wrap { overflow-x:auto; }
  .tab-box { border:1px solid var(--line); border-radius:var(--radius); background:var(--card); }
  .tab { width:100%; border-collapse:collapse; font-size:13.5px; }
  .tab th { padding:10px 14px; border-bottom:1px solid var(--line); font-size:11px; font-weight:700;
    text-transform:uppercase; letter-spacing:.03em; color:var(--muted); text-align:left; white-space:nowrap; }
  .tab td { padding:9px 14px; border-bottom:1px solid var(--line); vertical-align:middle; }
  .tab tbody tr:last-child td { border-bottom:0; }
  .tab tbody tr:hover { background:var(--card-2); }
  .tab .col-r, .tab .col-num, .tab .stt-v,
  .tab-num th:not(:first-child):not(.col-l), .tab-num td:not(:first-child):not(.col-l) {
    text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
  .tab .col-l { text-align:left; white-space:normal; }
  .tab .col-full { width:100%; }
  .tab td.due { color:#b45309; font-weight:600; }
  :root[data-theme="dark"] .tab td.due { color:#fcd34d; }
  .tab td.ok { color:#047857; font-weight:700; }
  .tab td.warn { color:#b45309; font-weight:700; }
  .tab td.bad { color:#b91c1c; font-weight:700; }
  :root[data-theme="dark"] .tab td.ok { color:#6ee7b7; }
  :root[data-theme="dark"] .tab td.warn { color:#fcd34d; }
  :root[data-theme="dark"] .tab td.bad { color:#fca5a5; }
  .tab td.stt-l { position:relative; min-width:110px; max-width:220px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .tab td.stt-l > span { position:relative; }
  .tab .stt-fill { position:absolute; left:0; top:4px; bottom:4px; border-radius:5px; background:var(--card-2); }
  .tab tr.g-res-bad td { background:rgba(220,38,38,.06); }
  @media (max-width:560px) {
    .tab { font-size:12.5px; }
    .tab td, .tab th { padding-left:8px; padding-right:8px; }
    .tab .stt-nm { display:none; }
    .tab td.stt-l { min-width:96px; }
  }
  .kb-card-top { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px; }
  .kb-kind { display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); }
  .kb-kind .ic svg { width:14px; height:14px; }
  .kb-steps-hint { font-size:12.5px; line-height:1.5; }
  .kb-pin { display:inline-flex; align-items:center; gap:4px; }
  .kb-pin .ic svg { width:13px; height:13px; }
  .kb-steps { margin-top:16px; }
  .kb-steps-total { margin-left:auto; font-size:12px; }
  .kb-step { border-top:1px solid var(--line); padding:10px 0; }
  .kb-step:first-of-type { border-top:0; }
  .kb-step-sum { display:flex; align-items:center; gap:10px; cursor:pointer; list-style:none; font-size:13.5px; }
  .kb-step-sum::-webkit-details-marker { display:none; }
  .kb-step-n { flex:none; width:24px; height:24px; display:grid; place-items:center; border-radius:999px; background:var(--card-2); font-size:12px; font-weight:700; color:var(--muted); }
  .kb-step-t { font-weight:600; }
  .kb-step-est { margin-left:auto; font-size:12px; white-space:nowrap; }
  .kb-step-body { margin:8px 0 0 34px; font-size:13px; line-height:1.6; }
  .kb-step-form { display:flex; flex-direction:column; gap:8px; margin:10px 0 0 34px; }
  .kb-step-btns { display:flex; flex-wrap:wrap; gap:8px; }
  .kb-step-add { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }
  .kb-step-add input[name="title"] { flex:1 1 220px; }
  .kb-step-add input[name="estimate"] { flex:0 1 150px; }
  .kb-run { margin-top:16px; }
  .kb-run-lead { font-size:12.5px; line-height:1.55; margin:0; }
  .kb-body { font-size:14px; line-height:1.7; margin:10px 0 14px; }
  .kb-chips { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
  .kb-chip { display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:999px; background:var(--card-2); border:1px solid var(--line); font-size:11.5px; color:var(--muted); }
  .kb-chip .ic svg { width:13px; height:13px; }
  .kb-przyp { display:flex; flex-direction:column; gap:2px; margin:0 0 2px; }
  .kb-przyp .fpn-cat > summary { padding:9px 10px; font-size:13.5px; }
  .kb-przyp .fpn-cat > summary > .ic svg { width:15px; height:15px; color:var(--muted); }
  .kb-przyp .fpn-cat[open] > summary > .ic svg { color:var(--accent); }
  .kb-przyp .fpn-b { max-height:240px; overflow-y:auto; }
  .kb-przyp-hint { font-size:12px; line-height:1.5; margin:0 0 4px; }
  .kb-card .kb-chips { margin:8px 0 0; }
  .kb-card .tg-mini { margin-top:8px; }
  .kb-edit { margin-top:16px; }
  .kb-edit-sum { display:inline-flex; align-items:center; gap:7px; cursor:pointer; list-style:none; font-size:13px; font-weight:600; color:var(--muted); }
  .kb-edit-sum::-webkit-details-marker { display:none; }
  .kb-edit-sum:hover { color:var(--accent); }
  .kb-edit-sum .ic svg { width:15px; height:15px; }
  .kb-edit[open] > .kb-edit-sum { margin-bottom:14px; color:var(--accent); }
  .kb-step-edit { margin:10px 0 0 34px; }
  .mm-cards { display:grid; gap:12px; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); }
  .mm-card { display:flex; flex-direction:column; gap:0; border:1px solid var(--line); border-radius:var(--radius); background:var(--card); box-shadow:var(--shadow); overflow:hidden; text-decoration:none; color:var(--text); }
  a.mm-card:hover { border-color:var(--accent); }
  .mm-card-b { display:flex; flex-direction:column; gap:3px; padding:10px 12px 12px; font-size:13px; }
  .mm-card-b strong { font-size:13.5px; }
  .mm-card-b .muted { font-size:11.5px; }
  .mm-thumb { height:120px; padding:10px; background:var(--card-2); border-bottom:1px solid var(--line); }
  .mm-thumb svg { width:100%; height:100%; display:block; }
  .mm-thumb svg rect { fill:var(--line); }
  .mm-thumb svg rect.mm-th-frame { fill:none; stroke:var(--line); stroke-width:6; }
  .mm-thumb svg rect.mm-th-sticky { fill:#f5c451; }
  .mm-thumb svg rect.mm-th-c { fill:var(--mm-c); }
  .mm-thumb-empty { display:grid; place-items:center; color:var(--muted); }
  .mm-thumb-empty .ic svg { width:28px; height:28px; }
  .mm-card-new .mm-card-b { gap:8px; }
  .mm-card-new input { font-size:13px; }
  .main:has(.mmv) { height:100dvh; }
  .content:has(.mmv) { display:flex; flex-direction:column; flex:1; min-height:0; overflow:hidden; }
  .mmv { position:relative; flex:1; min-height:0; display:flex; }
  .mmv:fullscreen { padding:0; background:var(--bg); }
  .mmv.is-fullwin { position:fixed; inset:0; z-index:55; margin:0; padding:0; border-radius:0; background:var(--bg); }
  .mmv.is-fullwin .mm-vp { border-radius:0; border:0; }
  :root.mm-fullwin, :root.mm-fullwin body { overflow:hidden; }
  .mm-vp { position:absolute; inset:0; overflow:auto; outline:none; touch-action:none;
    user-select:none; -webkit-user-select:none;
    border:1px solid var(--line); border-radius:var(--radius); background:var(--card);
    background-image:radial-gradient(var(--line) 1px, transparent 1px); background-size:22px 22px; }
  .mm-vp.is-live { overflow:hidden; }
  .mmv:fullscreen .mm-vp { border-radius:0; border:0; }
  .mm-vp.is-move { cursor:grab; }
  .mm-vp.is-grab { cursor:grab; }
  .mm-vp.is-panning { cursor:grabbing; }
  .mm-vp.is-add, .mm-vp.is-link { cursor:crosshair; }
  .mm-cv { position:absolute; left:0; top:0; transform-origin:0 0; }
  .mm-lines { position:absolute; inset:0; z-index:2; overflow:visible; pointer-events:none; }
  .mm-lines path { fill:none; }
  .mm-br { stroke:var(--line); stroke-width:2; }
  .mm-rel { stroke:var(--muted); stroke-width:2; }
  .mm-rel.is-dashed { stroke-dasharray:6 5; }
  .mm-hit { stroke:transparent; stroke-width:16; fill:none; pointer-events:stroke; cursor:pointer; }
  .mm-rel.is-sel { stroke:var(--accent); stroke-width:3; }
  .mm-lines g[data-rels] .mm-rel.is-sel { filter:drop-shadow(0 0 3px color-mix(in srgb, var(--accent) 45%, transparent)); }
  .mm-lines marker path { fill:var(--muted); stroke:none; }
  .mm-draft { stroke:var(--accent); stroke-width:2; stroke-dasharray:5 4; }
  .mm-draft.is-branch { stroke-dasharray:none; }
  .mm-tools, .mm-zoom, .mm-props { position:absolute; z-index:8; display:flex; align-items:center; gap:2px;
    padding:5px; border:1px solid var(--line); border-radius:999px; background:var(--card);
    box-shadow:0 10px 28px rgba(0,0,0,.16); }
  .mm-tools { left:12px; top:50%; transform:translateY(-50%); flex-direction:column; }
  .mm-zoom { right:12px; bottom:12px; }
  .mm-props { left:50%; bottom:12px; transform:translateX(-50%); max-width:min(96%,720px); }
  .mm-props[hidden] { display:none; }
  .mm-t { display:grid; place-items:center; width:32px; height:32px; flex:none; margin:0; padding:0; border:0; border-radius:999px;
    background:transparent; color:var(--muted); font-size:15px; font-weight:600; cursor:pointer;
    transition:background .12s ease, color .12s ease; }
  .mm-t:hover { background:var(--card-2); color:var(--text); }
  .mm-t.is-on { background:var(--accent); color:#fff; }
  .mm-t .ic svg { width:16px; height:16px; }
  .mm-zin { width:62px; height:32px; flex:none; margin:0; padding:0; border:0; border-radius:999px;
    background:var(--card-2); color:var(--text); font:inherit; font-size:12px; font-weight:600;
    font-variant-numeric:tabular-nums; text-align:center; min-height:0; cursor:text; }
  .mm-zin:hover { background:color-mix(in srgb, var(--accent) 12%, var(--card-2)); color:var(--accent); }
  .mm-zin:focus { outline:none; background:var(--card); box-shadow:0 0 0 2px var(--accent); color:var(--text); }
  .mm-t-danger:hover { background:color-mix(in srgb, #ef4444 16%, var(--card)); color:#ef4444; }
  .mm-sep { flex:none; background:var(--line); }
  .mm-tools .mm-sep { width:20px; height:1px; margin:4px 0; }
  .mm-zoom .mm-sep, .mm-props .mm-sep { width:1px; height:20px; margin:0 4px; }
  .mm-ic-exit, .mmv.is-full .mm-ic-full { display:none; }
  .mmv.is-full .mm-ic-exit { display:inline-flex; }
  .mm-grp { position:relative; display:flex; }
  .mm-t-grp { position:relative; }
  .mm-mi { display:none; }
  .mm-mi.is-on { display:grid; place-items:center; }
  .mm-tri { position:absolute; right:4px; bottom:4px; width:0; height:0; opacity:.55;
    border-left:4px solid transparent; border-bottom:4px solid currentColor; }
  .mm-fly { position:absolute; left:calc(100% + 10px); top:50%; transform:translateY(-50%); z-index:9;
    display:flex; flex-direction:column; gap:2px; padding:6px; border:1px solid var(--line);
    border-radius:20px; background:var(--card); box-shadow:0 12px 30px rgba(0,0,0,.2); }
  .mm-fly[hidden] { display:none; }
  .mm-fi { display:flex; align-items:center; gap:9px; width:100%; margin:0; padding:6px 14px 6px 10px; border:0;
    border-radius:999px; background:transparent; color:var(--text); font:inherit; font-size:12.5px;
    text-align:left; white-space:nowrap; cursor:pointer; }
  .mm-fi:hover { background:var(--card-2); color:var(--accent); }
  .mm-fi .ic { display:flex; }
  .mm-fi .ic svg { width:16px; height:16px; }
  .mm-fi em { margin-left:auto; padding-left:10px; font-style:normal; font-size:11px; color:var(--muted); }
  .mm-save { position:absolute; right:12px; top:12px; z-index:8; padding:5px 11px; border-radius:999px;
    background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow);
    font-size:11.5px; color:var(--muted); opacity:0; transition:opacity .15s ease; pointer-events:none; }
  .mm-save.is-on { opacity:1; }
  .mm-save.is-bad { color:#ef4444; font-weight:600; border-color:#ef4444; }
  .mm-hint { position:absolute; left:66px; bottom:16px; z-index:7; max-width:min(46vw,560px);
    font-size:11px; line-height:1.5; color:var(--muted); pointer-events:none; transition:opacity .15s ease; }
  .mmv:has(.mm-props:not([hidden])) .mm-hint { opacity:0; }
  .mm-empty { position:absolute; left:50%; top:42%; z-index:7; transform:translate(-50%,-50%);
    width:min(90%,420px); padding:18px 20px; border:1px solid var(--line); border-radius:var(--radius);
    background:var(--card); box-shadow:var(--shadow); text-align:center; font-size:13px; color:var(--muted); }
  .mm-empty p { margin:0 0 12px; padding-right:18px; }
  .mm-empty[hidden] { display:none; }
  .mm-empty-x { position:absolute; top:4px; right:6px; width:26px; height:26px; margin:0; padding:0;
    border:0; border-radius:999px; background:transparent; color:var(--muted);
    font-size:19px; line-height:1; cursor:pointer; }
  .mm-empty-x:hover { background:var(--card-2); color:var(--text); filter:none; }
  .mm-n { position:absolute; z-index:3; box-sizing:border-box; display:flex; align-items:center; gap:6px; padding:9px 12px;
    border:1px solid var(--line); border-radius:12px; background:var(--card); box-shadow:var(--shadow);
    font-size:13px; line-height:1.35; color:var(--text); overflow:hidden; touch-action:none; cursor:move;
    user-select:none; -webkit-user-select:none; }
  .mm-n:hover { border-color:color-mix(in srgb, var(--accent) 55%, var(--line)); }
  .mm-n.is-sel { border-color:var(--accent); box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); overflow:visible; }
  .mm-n.is-target { border-color:var(--accent); background:color-mix(in srgb, var(--accent) 12%, var(--card)); }
  .mm-lab { display:block; width:100%; overflow:hidden; overflow-wrap:anywhere; white-space:pre-wrap; }
  .mm-k-ellipse { border-radius:50%; align-items:center; justify-content:center; padding:16px; text-align:center; }
  .mm-k-ellipse .mm-lab { text-align:center; }
  .mm-k-diamond { background:transparent; border-color:transparent; box-shadow:none;
    align-items:center; justify-content:center; padding:0 24px; text-align:center; }
  .mm-k-diamond::before { content:""; position:absolute; inset:14.65%;
    border:1px solid var(--line); border-radius:10px; background:var(--card); box-shadow:var(--shadow);
    transform:rotate(45deg); }
  .mm-k-diamond .mm-lab, .mm-k-diamond .mm-badge,
  .mm-k-diamond .mm-task, .mm-k-diamond .mm-ref { position:relative; z-index:1; }
  .mm-k-diamond .mm-lab { text-align:center; }
  .mm-k-diamond:hover { border-color:transparent; }
  .mm-k-diamond:hover::before { border-color:color-mix(in srgb, var(--accent) 55%, var(--line)); }
  .mm-k-diamond.is-sel { box-shadow:none; border-color:transparent; }
  .mm-k-diamond.is-sel::before { border-color:var(--accent); box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
  .mm-k-sticky { align-items:flex-start; border-radius:4px; border-color:#e3b13d; background:#f7d774; color:#3b2f10; box-shadow:0 6px 14px rgba(0,0,0,.16); font-size:13.5px; }
  .mm-k-text { border-color:transparent; background:transparent; box-shadow:none; padding:4px 6px; font-size:15px; font-weight:600; }
  .mm-k-text:hover { border-color:var(--line); }
  .mm-f { position:absolute; z-index:1; box-sizing:border-box; border:1.5px dashed var(--line); border-radius:16px;
    background:color-mix(in srgb, var(--muted) 6%, transparent); touch-action:none; cursor:move; }
  .mm-f.is-sel { border-color:var(--accent); border-style:solid; }
  .mm-f-t { position:absolute; left:12px; top:-11px; padding:1px 8px; border-radius:999px; background:var(--card); border:1px solid var(--line); font-size:11.5px; font-weight:700; color:var(--muted); white-space:nowrap; }
  .mm-n.is-collapsed { border-style:dashed; }
  .mm-badge { flex:none; margin-left:auto; padding:1px 7px; border-radius:999px; background:var(--card-2); font-size:11px; font-weight:700; color:var(--muted); }
  .mm-task { flex:none; margin-left:auto; color:var(--muted); position:relative; z-index:1; }
  .mm-task .ic svg { width:14px; height:14px; }
  .mm-n.has-ref { align-items:flex-start; padding-bottom:26px; }
  .mm-ref { position:absolute; left:10px; right:10px; bottom:7px; z-index:4; display:flex; align-items:center; gap:4px;
    max-width:calc(100% - 20px); font-size:11px; color:var(--accent); text-decoration:none; }
  .mm-ref span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .mm-ref:hover span { text-decoration:underline; }
  .mm-ref .ic svg { width:12px; height:12px; flex:none; }
  .mm-n.is-editing { cursor:text; }
  .mm-lab[contenteditable], .mm-f-t[contenteditable] { user-select:text; -webkit-user-select:text;
    cursor:text; outline:none; min-width:8px; }
  .mm-handles { position:absolute; inset:0; pointer-events:none; }
  .mm-h { position:absolute; pointer-events:auto; box-sizing:border-box; border:1.5px solid var(--accent); background:var(--card); }
  .mm-h-se { right:-5px; bottom:-5px; width:10px; height:10px; border-radius:3px; cursor:nwse-resize; }
  .mm-h-link { right:-15px; top:50%; width:12px; height:12px; margin-top:-6px; border-radius:999px; cursor:crosshair; }
  .mm-h-link:hover { background:var(--accent); }
  .mm-marq { position:absolute; z-index:6; border:1px solid var(--accent); background:color-mix(in srgb, var(--accent) 12%, transparent); pointer-events:none; }
  .mm-props-n { flex:0 1 auto; max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
    padding:0 8px 0 10px; font-size:12px; line-height:32px; color:var(--muted); }
  .mm-sws { display:flex; align-items:center; gap:5px; padding:0 4px; }
  .mm-sw { display:block; width:24px; height:24px; flex:none; padding:0; margin:0; border:1px solid var(--line);
    border-radius:999px; background:var(--mm-c,var(--card)); cursor:pointer; transition:transform .1s ease; }
  .mm-sw:hover { transform:scale(1.14); }
  .mm-sw-0 { background:linear-gradient(to top left, transparent calc(50% - 1px), var(--muted) 50%, transparent calc(50% + 1px)), var(--card); }
  .mm-refbox { position:absolute; left:50%; bottom:calc(100% + 10px); transform:translateX(-50%);
    width:min(92vw,340px); padding:12px; border:1px solid var(--line); border-radius:20px;
    background:var(--card); box-shadow:0 14px 34px rgba(0,0,0,.2); }
  .mm-refbox[hidden] { display:none; }
  .mm-rk-row { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:8px; }
  .mm-rk { display:inline-flex; align-items:center; gap:5px; margin:0; padding:4px 9px; border:1px solid var(--line);
    border-radius:999px; background:var(--card); color:var(--muted); font-size:11.5px; cursor:pointer; }
  .mm-rk .ic svg { width:13px; height:13px; }
  .mm-rk:hover { color:var(--text); }
  .mm-rk.is-on { background:var(--accent); border-color:var(--accent); color:#fff; }
  .mm-rq { width:100%; margin:0 0 8px; border-radius:999px; font-size:13px; }
  .mm-rlist { display:flex; flex-direction:column; gap:2px; max-height:200px; overflow:auto; }
  .mm-rhit { margin:0; padding:6px 11px; border:0; border-radius:999px; background:transparent; color:var(--text);
    font-size:12.5px; text-align:left; cursor:pointer; }
  .mm-rhit:hover { background:var(--card-2); color:var(--accent); }
  .mm-rempty { padding:6px 9px; font-size:12px; color:var(--muted); }
  .mm-rclear { width:100%; margin-top:8px; padding:6px; border:1px solid var(--line); border-radius:999px;
    background:transparent; color:var(--muted); font-size:12px; cursor:pointer; }
  .mm-rclear:hover { color:#ef4444; border-color:#ef4444; }
  .mm-nameform { display:flex; align-items:center; min-width:0; }
  .mm-head-acts { display:flex; align-items:center; gap:6px; }
  .mm-head-acts form { display:flex; margin:0; }
  .mm-head-acts .mm-t { width:34px; height:34px; border:1px solid var(--line); background:var(--card);
    color:var(--muted); box-shadow:var(--shadow); }
  .mm-head-acts .mm-t .ic svg { width:17px; height:17px; }
  .mm-head-acts .mm-t:hover { background:var(--accent-soft); border-color:var(--accent); color:var(--accent); }
  .mm-head-acts .mm-t-danger:hover { background:color-mix(in srgb, #ef4444 14%, var(--card));
    border-color:#ef4444; color:#ef4444; }
  .mm-ctx { position:fixed; z-index:1200; min-width:186px; padding:6px; border:1px solid var(--line); border-radius:18px; background:var(--card); box-shadow:0 12px 30px rgba(0,0,0,.22); }
  .mm-ctx button { display:block; width:100%; margin:0; padding:7px 12px; border:0; border-radius:999px; background:transparent; color:var(--text); font-size:13px; text-align:left; cursor:pointer; }
  .mm-ctx button:hover { background:var(--card-2); color:var(--accent); }
  .mm-c-green  { --mm-c:#10b981; }
  .mm-c-amber  { --mm-c:#f59e0b; }
  .mm-c-red    { --mm-c:#ef4444; }
  .mm-c-indigo { --mm-c:#6366f1; }
  .mm-c-teal   { --mm-c:#14b8a6; }
  .mm-c-pink   { --mm-c:#ec4899; }
  .mm-c-slate  { --mm-c:#94a3b8; }
  .mm-n.mm-c-green, .mm-n.mm-c-amber, .mm-n.mm-c-red, .mm-n.mm-c-indigo,
  .mm-n.mm-c-teal, .mm-n.mm-c-pink, .mm-n.mm-c-slate {
    background:color-mix(in srgb, var(--mm-c) 16%, var(--card));
    border-color:color-mix(in srgb, var(--mm-c) 55%, var(--line));
  }
  .mm-k-sticky.mm-c-green, .mm-k-sticky.mm-c-amber, .mm-k-sticky.mm-c-red, .mm-k-sticky.mm-c-indigo,
  .mm-k-sticky.mm-c-teal, .mm-k-sticky.mm-c-pink, .mm-k-sticky.mm-c-slate {
    background:color-mix(in srgb, var(--mm-c) 62%, #fff);
    border-color:color-mix(in srgb, var(--mm-c) 78%, #000);
    color:#1f2430;
  }
  .mm-n.mm-k-diamond.mm-c-green, .mm-n.mm-k-diamond.mm-c-amber, .mm-n.mm-k-diamond.mm-c-red,
  .mm-n.mm-k-diamond.mm-c-indigo, .mm-n.mm-k-diamond.mm-c-teal, .mm-n.mm-k-diamond.mm-c-pink,
  .mm-n.mm-k-diamond.mm-c-slate { background:transparent; border-color:transparent; }
  .mm-k-diamond.mm-c-green::before, .mm-k-diamond.mm-c-amber::before, .mm-k-diamond.mm-c-red::before,
  .mm-k-diamond.mm-c-indigo::before, .mm-k-diamond.mm-c-teal::before, .mm-k-diamond.mm-c-pink::before,
  .mm-k-diamond.mm-c-slate::before {
    background:color-mix(in srgb, var(--mm-c) 16%, var(--card));
    border-color:color-mix(in srgb, var(--mm-c) 55%, var(--line));
  }
  .mm-f.mm-c-green, .mm-f.mm-c-amber, .mm-f.mm-c-red, .mm-f.mm-c-indigo,
  .mm-f.mm-c-teal, .mm-f.mm-c-pink, .mm-f.mm-c-slate {
    border-color:color-mix(in srgb, var(--mm-c) 60%, var(--line));
    background:color-mix(in srgb, var(--mm-c) 7%, transparent);
  }
  @media (max-width:719px){
    .mm-hint { display:none; }
    .mm-tools { left:8px; padding:4px; }
    .mm-tools .mm-t { width:30px; height:30px; }
    .mm-fly { left:calc(100% + 6px); }
    .mm-zoom { right:8px; top:8px; bottom:auto; }
    .mm-empty { left:auto; right:10px; transform:translateY(-50%); max-width:calc(100% - 72px); }
    .mm-props { left:8px; right:8px; bottom:8px; transform:none; max-width:none; flex-wrap:wrap; justify-content:center; }
    .mm-props-n { display:none; }
    .mm-lab[contenteditable="true"]:focus, .mm-f-t[contenteditable="true"]:focus { font-size:16px; }
  }
  .wl-wrap { overflow-x:auto; }
  .wl-row { display:grid; grid-template-columns:140px 1fr 92px; gap:12px; align-items:center; min-width:480px; padding:10px 0; border-top:1px solid var(--line); }
  .wl-head { border-top:0; padding-top:0; font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); }
  .wl-who { display:flex; flex-direction:column; gap:2px; min-width:0; font-size:13px; }
  .wl-name { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .wl-func { font-size:11.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .wl-days { display:flex; gap:4px; }
  .wl-day { display:flex; flex-direction:column; align-items:center; gap:4px; width:32px; flex:none; }
  .wl-day.wl-wknd { opacity:.62; }
  .wl-col { display:flex; align-items:flex-end; width:100%; height:36px; background:var(--card-2); border-radius:5px; overflow:hidden; }
  .wl-fill { display:block; width:100%; border-radius:5px; background:var(--accent); }
  .wl-fill.full { background:#f59e0b; }
  .wl-fill.over { background:#ef4444; }
  .wl-dlab { font-size:10px; line-height:1.2; color:var(--muted); white-space:nowrap; }
  .wl-sum { display:flex; flex-direction:column; align-items:flex-end; gap:1px; text-align:right; }
  .wl-pct { font-size:16px; font-weight:800; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
  .wl-pct.full { color:#b45309; }
  .wl-pct.over { color:#b91c1c; }
  .wl-hrs { font-size:11.5px; font-variant-numeric:tabular-nums; white-space:nowrap; }
  .wl-chips { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:6px; }
  .wl-chip { display:inline-flex; align-items:center; gap:5px; padding:3px 9px; border-radius:999px; background:var(--card-2); border:1px solid var(--line); font-size:11.5px; color:var(--muted); }
  .wl-chip .ic svg { width:13px; height:13px; }
  .wl-chip-w { color:#b45309; border-color:#f59e0b55; }
  .wl-chip-b { color:#b91c1c; border-color:#ef444455; }
  @media (max-width:719px){
    .wl-row { grid-template-columns:1fr auto; min-width:0; gap:8px 12px; }
    .wl-days { grid-column:1 / -1; overflow-x:auto; padding-bottom:2px; }
    .wl-sum { flex-direction:row; align-items:baseline; gap:8px; }
    .wl-head .wl-days { display:none; }
  }
  :root[data-theme="dark"] .wl-pct.full, :root[data-theme="dark"] .wl-chip-w { color:#fcd34d; }
  :root[data-theme="dark"] .wl-pct.over, :root[data-theme="dark"] .wl-chip-b { color:#fca5a5; }
  @media (max-width:700px){
    .fin-bar { min-width:38px; }
  }
  .eng-mini-list { display:flex; flex-direction:column; gap:7px; }
  .eng-mini { display:flex; align-items:center; gap:10px; padding:9px 12px; background:var(--card-2); border:1px solid var(--line); border-radius:11px; text-decoration:none; color:var(--text); }
  .eng-mini:hover { border-color:var(--accent); text-decoration:none; }
  .eng-mini-t { flex:1; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .eng-mini-out { font-weight:700; font-size:13px; white-space:nowrap; }
  .eng-mini-out.due { color:#b45309; }
  :root[data-theme="dark"] .eng-mini-out.due { color:#fcd34d; }
  .eng-proj-card { margin-bottom:14px; }
  .eng-proj-add { display:inline-flex; align-items:center; gap:5px; }
  .eng-proj-add .ic svg { width:15px; height:15px; }
  .eng-proj-list { display:flex; flex-direction:column; gap:7px; margin-top:10px; }
  .eng-proj-item { display:flex; align-items:center; gap:10px; padding:9px 12px; background:var(--card-2); border:1px solid var(--line); border-left:3px solid var(--muted); border-radius:11px; text-decoration:none; color:var(--text); }
  .eng-proj-item:hover { border-color:var(--accent); text-decoration:none; }
  .eng-proj-item.proj-active { border-left-color:#3b82f6; }
  .eng-proj-item.proj-on_hold { border-left-color:#eab308; }
  .eng-proj-item.proj-done { border-left-color:#10b981; }
  .eng-proj-name { flex:1; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .eng-proj-meta { font-size:12px; white-space:nowrap; }
  .eng-gantt { margin-top:12px; display:flex; flex-direction:column; gap:6px; }
  .eng-gantt-axis { display:flex; justify-content:space-between; font-size:11px; color:var(--muted); margin-bottom:2px; }
  .eng-gantt-row { display:grid; grid-template-columns:120px 1fr; align-items:center; gap:10px; text-decoration:none; color:var(--text); }
  .eng-gantt-row:hover { text-decoration:none; }
  .eng-gantt-name { font-size:12px; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .eng-gantt-track { position:relative; height:16px; background:var(--card-2); border:1px solid var(--line); border-radius:6px; }
  .eng-gantt-bar { position:absolute; top:1px; bottom:1px; border-radius:5px; background:#3b82f6; min-width:4px; }
  .eng-gantt-bar.proj-on_hold { background:#eab308; }
  .eng-gantt-bar.proj-done { background:#10b981; }
  .eng-gantt-row:hover .eng-gantt-bar { filter:brightness(1.08); }
  .proj-eng-ctx { display:flex; align-items:center; gap:8px; padding:9px 12px; background:var(--card-2); border:1px solid var(--line); border-radius:10px; font-size:13px; }
  .proj-eng-ctx .ic svg { width:16px; height:16px; color:var(--accent); }
  .proj-eng-crumb { display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--muted); text-decoration:none; margin-bottom:8px; }
  .proj-eng-crumb:hover { color:var(--accent); text-decoration:none; }
  .proj-eng-crumb .ic svg { width:15px; height:15px; }
  .eng-toolbar { display:flex; justify-content:flex-end; }
  .eng-add-form { margin-top:0; border-top-left-radius:0; }
  .eng-add-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px 12px; }
  .eng-add-grid > div { display:flex; flex-direction:column; }
  .eng-add-grid > .eng-cycle { display:none; }
  .eng-add-grid:has(select[name="billing_type"] option[value="subscription"]:checked) > .eng-cycle { display:flex; }
  .eng-svc-badge { background:var(--card-2); color:var(--muted); }
  .eng-svc-badge.off { background:rgba(245,158,11,.14); color:#b45309; }
  :root[data-theme="dark"] .eng-svc-badge.off { color:#fcd34d; }
  .eng-newsvc { display:flex; gap:9px; align-items:flex-start; font-size:13.5px; font-weight:500; cursor:pointer; }
  .eng-newsvc[hidden] { display:none; }
  .eng-newsvc input { width:auto; margin-top:3px; }
  .eng-list { display:flex; flex-direction:column; gap:9px; }
  .eng-row { display:flex; align-items:center; gap:12px; padding:14px 16px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); text-decoration:none; color:var(--text); }
  .eng-row:hover { border-color:var(--accent); text-decoration:none; }
  .eng-grip { flex:none; display:inline-flex; color:var(--muted); }
  .eng-grip .ic svg { width:18px; height:18px; }
  .eng-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
  .eng-title { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .eng-sub { font-size:12.5px; }
  .eng-due { font-weight:700; font-size:14px; white-space:nowrap; }
  @media (max-width:640px){
    .eng-row { flex-wrap:wrap; row-gap:8px; }
    .eng-main { flex:1 1 calc(100% - 60px); }
    .eng-title { white-space:normal; }
    .eng-due { margin-left:auto; }
  }
  .eng-due.due { color:#b45309; }
  :root[data-theme="dark"] .eng-due.due { color:#fcd34d; }
  .fin-table td, .fin-table th { padding:9px 12px; }
  .fin-table .col-r { text-align:right; white-space:nowrap; }
  .fin-table td.due, .agenda .due { color:#b45309; font-weight:600; }
  :root[data-theme="dark"] .fin-table td.due { color:#fcd34d; }
  .fin-note { font-size:12.5px; }
  .agenda { display:flex; flex-direction:column; gap:7px; }
  .agenda-row { display:grid; grid-template-columns:auto auto 1fr auto; align-items:center; gap:12px; padding:10px 12px; background:var(--card-2); border:1px solid var(--line); border-radius:11px; text-decoration:none; color:var(--text); }
  .agenda-row:hover { border-color:var(--accent); text-decoration:none; }
  .agenda-ic { display:inline-flex; color:var(--accent); } .agenda-ic .ic svg { width:16px; height:16px; }
  .agenda-when { font-size:12.5px; white-space:nowrap; }
  .agenda-title { font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .agenda-meta { font-size:12px; white-space:nowrap; }
  @media (max-width:560px){ .agenda-row { grid-template-columns:auto 1fr; } .agenda-when { grid-column:2; } .agenda-meta { grid-column:2; } }
  .ev-kind-pick { display:flex; flex-wrap:wrap; gap:8px; }
  .ev-kind-opt { display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border:1px solid var(--line); border-radius:10px; cursor:pointer; font-size:13px; background:var(--card-2); }
  .ev-kind-opt input[type][type] { display:none; }
  .ev-kind-opt .ic svg { width:15px; height:15px; }
  .ev-kind-opt:has(input:checked) { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); font-weight:600; }
  .ev-timeline { display:flex; flex-direction:column; gap:9px; }
  .ev-row { display:flex; align-items:flex-start; gap:12px; padding:12px 14px; background:var(--card); border:1px solid var(--line); border-radius:13px; }
  .ev-ic { flex:none; display:inline-flex; width:32px; height:32px; align-items:center; justify-content:center; border-radius:50%; background:var(--card-2); color:var(--muted); }
  .ev-ic .ic svg { width:17px; height:17px; }
  .ev-work .ev-ic { color:#2563eb; background:rgba(37,99,235,.12); }
  .ev-payment .ev-ic { color:#047857; background:rgba(4,120,87,.12); }
  .ev-meeting .ev-ic { color:#7c3aed; background:rgba(124,58,237,.12); }
  .ev-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
  .ev-head { font-size:14px; } .ev-kind { font-weight:600; }
  .ev-meta { font-size:12px; }
  .ev-note { font-size:13px; margin-top:4px; line-height:1.4; }
  .ev-amt { flex:none; font-weight:700; font-size:14px; white-space:nowrap; }
  .ev-amt.due { color:#2563eb; } .ev-amt.pay { color:#047857; }
  :root[data-theme="dark"] .ev-amt.due { color:#93c5fd; } :root[data-theme="dark"] .ev-amt.pay { color:#6ee7b7; }
  .ev-add .dt-sec-title { margin-top:0; }
  .ev-add:not(:has(input[name="kind"][value="work"]:checked)) [data-ev-field="due"],
  .ev-edit-form:not(:has(input[name="kind"][value="work"]:checked)) [data-ev-field="due"],
  .ev-add:not(:has(input[name="kind"][value="payment"]:checked)) [data-ev-field="advance"],
  .ev-edit-form:not(:has(input[name="kind"][value="payment"]:checked)) [data-ev-field="advance"] { display:none; }
  .ev-adv-check { align-self:end; margin-bottom:6px; }
  .ev-edit { margin-top:6px; }
  .ev-edit > summary { list-style:none; cursor:pointer; font-size:12px; display:inline-flex; }
  .ev-edit > summary::-webkit-details-marker { display:none; }
  .ev-edit > summary:hover { color:var(--accent); }
  .ev-edit-form { margin-top:8px; padding:12px; background:var(--card-2); border:1px solid var(--line); border-radius:11px; }
  .ev-edit-form .ev-kind-pick { margin-bottom:2px; }
  .ev-proj-badge { display:inline-flex; align-items:center; gap:4px; margin-left:8px; padding:1px 8px; font-size:11px; font-weight:600; border-radius:999px; background:var(--card-2); border:1px solid var(--line); color:var(--muted); vertical-align:middle; }
  .ev-proj-badge .ic svg { width:12px; height:12px; }
  .ev-proj-head { margin-bottom:12px; }
  .eng-card-badges { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0; }
  .eng-simple-head { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:2px 0 14px; }
  .eng-simple-title { margin:0; font-size:20px; line-height:1.25; }
  .badge.due-badge { background:rgba(245,158,11,.14); color:#b45309; }
  :root[data-theme="dark"] .badge.due-badge { color:#fcd34d; }
  .eng-more { border-top:1px solid var(--line); padding-top:10px; }
  .eng-more > summary { cursor:pointer; font-size:13px; list-style:none; }
  .eng-more > summary::-webkit-details-marker { display:none; }
  .eng-more > summary::before { content:"▸ "; }
  .eng-more[open] > summary::before { content:"▾ "; }
  .eng-more > .stack { margin-top:12px; }
  .svcb-board { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(430px,100%),1fr));
    gap:16px; align-items:start; }
  .svcb-hint { padding:20px 4px; }
  .svcb-cat { --cc:#64748b; --tint:color-mix(in srgb, var(--cc) 7%, var(--card)); background:var(--tint); border:1.5px solid color-mix(in srgb, var(--cc) 34%, var(--line)); border-radius:16px; box-shadow:0 0 0 3px color-mix(in srgb, var(--cc) 8%, transparent); }
  .svcb-cat.active { box-shadow:0 0 0 3px color-mix(in srgb, var(--cc) 30%, transparent); }
  .svcb-cathead { display:flex; align-items:center; gap:9px; padding:12px 14px; }
  .svcb-catdot { flex:none; width:11px; height:11px; border-radius:50%; background:var(--cc); }
  .svcb-cattitle { font-weight:700; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .svcb-catcount { flex:none; min-width:22px; height:22px; padding:0 7px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; background:color-mix(in srgb, var(--cc) 16%, var(--card)); color:var(--cc); font-size:12px; font-weight:700; }
  .svcb-catbtn { flex:none; display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:999px; color:var(--muted); }
  .svcb-catbtn:hover { background:color-mix(in srgb, var(--cc) 14%, var(--card)); color:var(--cc); }
  .svcb-catbtn .ic svg { width:16px; height:16px; }
  .svcb-items { display:flex; flex-direction:column; gap:8px; padding:2px 12px 13px; }
  .svcb-item { position:relative; display:flex; align-items:center; gap:12px; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:10px 13px; box-shadow:var(--shadow); color:var(--text); text-decoration:none; }
  .svcb-item:hover { border-color:var(--accent); text-decoration:none; }
  .svcb-item.active { border-color:var(--accent); box-shadow:0 0 0 2px var(--accent-soft); }
  .svcb-item.off > :not(.svcb-peek) { opacity:.5; }
  .svcb-item-name { flex:1; min-width:0; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .svcb-item-meta { flex:none; display:inline-flex; align-items:center; gap:7px; }
  .svcb-dur { font-size:12px; color:var(--muted); background:var(--card-2); border-radius:999px; padding:2px 9px; white-space:nowrap; }
  .svcb-price { font-size:12.5px; font-weight:700; color:var(--text); white-space:nowrap; }
  .svcb-more-cb { display:none; }
  .svcb-hid { display:none; }
  .svcb-more-cb:checked ~ .svcb-items .svcb-hid { display:flex; }
  .svcb-board.dragging .svcb-hid { display:flex; }
  .svcb-more { display:block; margin:0 12px 12px; padding:7px; border:1px solid color-mix(in srgb, var(--cc) 30%, var(--line)); border-radius:10px; background:color-mix(in srgb, var(--cc) 8%, var(--card)); color:var(--muted); font-size:12.5px; font-weight:600; text-align:center; cursor:pointer; }
  .svcb-more:hover { color:var(--cc); border-color:var(--cc); }
  .svcb-more-off { display:none; }
  .svcb-more-cb:checked ~ .svcb-more .svcb-more-on { display:none; }
  .svcb-more-cb:checked ~ .svcb-more .svcb-more-off { display:inline; }
  .svcb-item.dragging { opacity:.4; }
  .svcb-items.drop-hot { outline:2px dashed color-mix(in srgb, var(--cc) 55%, transparent); outline-offset:1px; border-radius:12px; }
  .svcb-board.dragging [data-drop] { min-height:46px; }
  .svcb-item img { -webkit-user-drag:none; user-select:none; }
  .svcb-drag-status { padding:2px 4px 10px; font-size:12.5px; }
  .svcb-drag-status.ok { color:var(--ok,#16a34a); }
  .svcb-drag-status:empty { display:none; }
  .svcb-peek { display:none; }
  @media (hover:hover) and (pointer:fine){
    .svcb-peek { position:fixed; z-index:40;
      display:flex; flex-direction:column; gap:8px; padding:13px 15px 12px;
      background:var(--card); border:1px solid var(--line); border-radius:14px;
      box-shadow:0 18px 44px rgba(0,0,0,.24); pointer-events:none;
      opacity:0; visibility:hidden; transform:translateY(-5px);
      transition:opacity .13s ease, transform .13s ease, visibility 0s linear .13s; }
    .svcb-item.peek-up .svcb-peek { transform:translateY(5px); }
    .svcb-item:hover .svcb-peek { opacity:1; visibility:visible; transform:none; transition-delay:.45s; }
    .svcb-board.dragging .svcb-peek { display:none; }
  }
  .svcb-peek-t { display:flex; align-items:center; gap:8px; min-width:0; }
  .svcb-peek-t b { font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .svcb-peek-desc { font-size:12.5px; line-height:1.45; color:var(--text); }
  .svcb-peek-facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(84px,1fr)); gap:7px 12px;
    padding-top:9px; border-top:1px solid var(--line); }
  .svcb-peek-f { display:flex; flex-direction:column; gap:1px; min-width:0; font-size:12.5px; }
  .svcb-peek-f .muted { font-size:11.5px; }
  .svcb-peek-imgs { display:flex; flex-wrap:wrap; gap:6px; }
  .svcb-peek-imgs img { flex:0 0 auto; width:108px; height:108px; object-fit:cover;
    border-radius:10px; background:var(--card-2); }
  .svcb-cat-add { display:flex; align-items:center; justify-content:center; gap:10px; min-height:70px; padding:14px;
                  background:transparent; border:1.5px dashed var(--line); box-shadow:none; color:var(--muted); font-weight:600; }
  .svcb-cat-add:hover { border-color:var(--accent); color:var(--accent); text-decoration:none; }
  .svcb-add-plus { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:50%; background:var(--card-2); }
  .svcb-cat-add:hover .svcb-add-plus { background:var(--accent-soft); }
  .svcb-add-plus .ic svg { width:17px; height:17px; }
  .svc-modal { position:fixed; inset:0; z-index:60; }
  .svc-modal-bd { position:absolute; inset:0; background:rgba(15,23,42,.5); }
  .svc-detail { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
                display:flex; flex-direction:column;
                width:min(560px,calc(100vw - 32px)); max-height:min(86vh,760px); overflow-y:auto; overscroll-behavior:contain;
                overflow-anchor:none;
                background:var(--card); border:1px solid var(--line); border-radius:18px; padding:18px 18px 22px; box-shadow:0 24px 60px rgba(0,0,0,.32); }
  .svc-detail-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
  .svc-detail > .svc-detail-head { position:sticky; top:-18px; z-index:2; background:var(--card); padding:4px 0 10px; margin-top:-4px; }
  .svc-detail-head strong { font-size:15px; }
  .svc-detail-close { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:10px; color:var(--muted); }
  .svc-detail-close:hover { background:var(--card-2); color:var(--text); }
  .svc-form label { display:block; font-size:13px; font-weight:600; margin-bottom:5px; }
  .svc-form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; align-items:end; }
  .svc-form-grid > div { display:flex; flex-direction:column; justify-content:flex-end; min-width:0; }
  .svc-form-grid input, .svc-form-grid select { margin:0; }
  .svc-active { display:flex; align-items:center; gap:8px; font-weight:500 !important; font-size:13.5px; }
  .svc-active input { width:auto; }
  .svc-caps-hint { margin:0; font-size:12.5px; }
  .svc-swrow { display:flex; align-items:center; gap:11px; min-height:48px; padding:7px 12px 7px 14px;
    margin-top:12px; border:1px solid var(--line); border-radius:999px; background:var(--card);
    box-shadow:var(--shadow); }
  .svc-swrow:not(:has(input:checked)) { background:var(--card-2); box-shadow:none; }
  .svc-swrow-t { display:flex; flex-direction:column; gap:1px; min-width:0; font-size:13.5px; }
  .svc-swrow-t .muted { font-size:12.5px; }
  .svc-swrow input[type="text"], .svc-swrow .stk-eqty { height:34px; padding:0 14px; border-radius:999px; }
  .svc-fold { position:relative; margin-top:12px; border:1px solid var(--line); border-radius:var(--radius);
    background:var(--card-2); overflow:hidden; }
  .svc-fold-h { display:flex; align-items:center; gap:9px; padding:11px 14px; cursor:pointer;
    list-style:none; user-select:none; }
  .svc-fold-h::-webkit-details-marker { display:none; }
  .svc-fold-h:hover { background:var(--card); }
  .svc-fold-t { font-weight:600; font-size:13.5px; flex:none; }
  .svc-fold-n { flex:none; min-width:20px; padding:1px 7px; border-radius:999px; background:var(--line);
    font-size:11.5px; font-weight:700; text-align:center; }
  .svc-fold-desc { font-size:12.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .svc-fold-caret { display:inline-flex; flex:none; color:var(--muted); transition:transform .15s ease; }
  .svc-fold-caret svg { width:15px; height:15px; }
  .svc-fold-d[open] > .svc-fold-h .svc-fold-caret { transform:rotate(90deg); }
  .svc-fold-b { padding:2px 14px 14px; }
  .svc-fold-hint { margin:0 0 10px; font-size:12.5px; }
  .svc-fold:has(.svc-fold-sw) .svc-fold-h { padding-right:62px; }
  .svc-fold > label.svc-fold-sw { position:absolute; top:12px; right:14px; z-index:2; }
  .svc-fold:has(.svc-fold-sw input:not(:checked)) .svc-fold-b { display:none; }
  .svc-fold:has(.svc-fold-sw input:not(:checked)) .svc-fold-h { cursor:default; pointer-events:none; }
  .svc-fold:has(.svc-fold-sw input:not(:checked)) .svc-fold-caret,
  .svc-fold:has(.svc-fold-sw input:not(:checked)) .svc-fold-n { visibility:hidden; }
  .svc-fold-b > .cpipe-box, .svc-fold-b > .card { border:0; background:transparent; box-shadow:none; padding:0; margin:0; }
  .svcd-rows { display:flex; flex-direction:column; gap:6px; margin-bottom:10px; }
  .svcd-row { display:flex; align-items:center; gap:9px; padding:7px 10px; border:1px solid var(--line);
    border-radius:10px; background:var(--card); font-size:13.5px; }
  .svcd-row .doc-glyph { flex:none; font-size:15px; }
  .svcd-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .svcd-row form { margin:0; }
  .svcd-req button { margin:0; border:0; background:none; padding:0; cursor:pointer; font:inherit; }
  .svcd-x { margin:0; background:none; border:0; color:var(--muted); font-size:18px; line-height:1;
    padding:2px 6px; border-radius:8px; cursor:pointer; }
  .svcd-x:hover { background:var(--card-2); color:#dc2626; }
  .svcd-pick { display:flex; gap:8px; align-items:center; margin:0; }
  .svcd-pick select { flex:1; min-width:0; margin:0; border-radius:999px;
    padding-left:16px; padding-right:40px; background-position:right 16px center; }
  .svcd-pick .btn-pill { margin:0; flex:none; }
  .svcd-up { margin-top:12px; }
  .svcd-upsum { display:inline-flex; list-style:none; cursor:pointer; }
  .svcd-upsum::-webkit-details-marker { display:none; }
  .svcd-upsum .ic svg { width:14px; height:14px; }
  .svcd-up[open] .svcd-upsum { border-color:var(--accent); color:var(--accent); }
  .svcd-upform { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:12px 0 0; }
  .svcd-upform .fpick { flex:1 1 100%; margin:0; }
  .svcd-upform input[name="title"] { flex:1 1 200px; min-width:0; margin:0; height:40px;
    border-radius:999px; padding-left:16px; }
  .svcd-upform select { flex:0 1 170px; min-width:0; margin:0; height:40px; border-radius:999px;
    padding-left:16px; padding-right:40px; background-position:right 16px center; }
  .svcd-upform .btn-pill { margin:0; flex:none; height:40px; }
  .svcd-uphint { margin:8px 0 0; font-size:12px; }
  .svc-palette { display:flex; flex-wrap:wrap; gap:9px; }
  .svc-swatch { position:relative; cursor:pointer; line-height:0; }
  .svc-swatch input { position:absolute; opacity:0; pointer-events:none; }
  .svc-swatch span { display:block; width:28px; height:28px; border-radius:50%; background:var(--sw); box-shadow:0 0 0 2px var(--card), 0 0 0 3px var(--line); }
  .svc-swatch input:checked + span { box-shadow:0 0 0 2px var(--card), 0 0 0 4px var(--sw); }
  .svc-swatch input:focus-visible + span { outline:2px solid var(--accent-soft); outline-offset:3px; }
  .svc-bar { display:flex; align-items:center; gap:10px; margin-top:20px; padding-top:14px; border-top:1px solid var(--line); }
  .svc-detail > .svc-bar { position:sticky; bottom:0; z-index:3; margin-top:auto; margin-bottom:-22px;
    background:var(--card); padding-bottom:18px; box-shadow:0 -12px 18px -16px rgba(0,0,0,.4); }
  .svc-detail:has(> .svc-detail-b) { overflow:hidden; padding-bottom:18px; }
  .svc-detail-b { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; overflow-anchor:none;
                  margin:0 -18px; padding:0 18px; }
  .svc-detail:has(> .svc-detail-b) > .svc-detail-head { position:static; padding:0 0 10px; margin:0 0 12px; }
  .svc-detail:has(> .svc-detail-b) > .svc-bar { position:static; margin:0; padding:14px 0 0; box-shadow:none; }
  .svc-bar-save { margin:0; margin-left:auto; }
  .svc-bar-del { order:-1; margin:0; margin-right:auto; }
  .svc-bar-del button { margin:0; }
  .svc-bar-full { margin-left:auto; }
  .svc-bar-full .ic svg { width:15px; height:15px; }
  .svc-bar:has(.svc-bar-full) .svc-bar-save { margin-left:0; }
  @media (min-width:901px){
    .svc-detail-quick { width:min(480px,calc(100vw - 32px)); }
  }
  .svc-quick-img { display:block; width:100%; max-height:190px; object-fit:cover; border-radius:12px; margin-bottom:14px; }
  .svc-quick-note { margin:0; font-size:12.5px; }
  .btn-pill { border-radius:999px; padding:10px 22px; }
  a.btn-pill, label.btn-pill, summary.btn-pill { display:inline-flex; align-items:center; justify-content:center;
    gap:8px; font-weight:600; border:0; background:var(--accent); color:var(--accent-ink);
    cursor:pointer; text-decoration:none; box-sizing:border-box; }
  a.btn-pill:hover, label.btn-pill:hover, summary.btn-pill:hover { filter:brightness(1.06); text-decoration:none; }
  summary.btn-pill { list-style:none; }
  summary.btn-pill::-webkit-details-marker { display:none; }
  button.btn-2, a.btn-2, label.btn-2, summary.btn-2,
  button.rzd-btn-2, a.rzd-btn-2, label.rzd-btn-2, summary.rzd-btn-2 {
    background:var(--card); color:var(--text); box-shadow:inset 0 0 0 1px var(--line); }
  button.btn-2:hover, a.btn-2:hover, label.btn-2:hover, summary.btn-2:hover,
  button.rzd-btn-2:hover, a.rzd-btn-2:hover, label.rzd-btn-2:hover, summary.rzd-btn-2:hover {
    filter:none; background:var(--card); color:var(--accent); box-shadow:inset 0 0 0 1px var(--accent); }
  button.btn-danger, a.btn-danger, label.btn-danger { display:inline-flex; align-items:center; gap:7px;
    background:transparent; color:#b91c1c; border:0; box-shadow:inset 0 0 0 1px var(--line); }
  button.btn-danger:hover, a.btn-danger:hover, label.btn-danger:hover {
    filter:none; background:rgba(239,68,68,.1); box-shadow:inset 0 0 0 1px #ef4444; }
  .btn-danger .ic svg { width:16px; height:16px; }
  :root[data-theme="dark"] .btn-danger { color:#fca5a5; }
  .dd-sep { height:1px; background:var(--line); margin:6px 4px; }
  .lc-svc { display:inline-flex; align-items:center; gap:5px; font-size:12.5px; color:var(--muted); }
  .lc-svc .ic svg { width:13px; height:13px; }
  .cal-client { margin-top:2px; }
  @media (max-width:900px){
    .svc-modal-bd { display:none; }
    .svc-detail { inset:0; left:0; top:0; transform:none; width:auto; max-width:none; max-height:none;
                  border:0; border-radius:0; padding:16px 16px 0; box-shadow:none; }
    .svc-detail > .svc-detail-head { top:-16px; }
    .svc-detail > .svc-bar { margin-bottom:0; padding-bottom:16px; }
    .svc-detail:has(> .svc-detail-b) { padding:16px 16px 12px; }
    .svc-detail-b { margin:0 -16px; padding:0 16px; }
    .shell:has(.svc-modal.open) .ai-fab { display:none; }
  }
  .tk-layout { display:grid; grid-template-columns:1fr; gap:16px; }
  @media (min-width:900px) { .tk-layout { grid-template-columns:1fr 340px; } .tk-col-add { order:2; } }
  .tk-toolbar { margin-bottom:14px; }
  .dd-fgroup { font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); font-weight:700; margin:8px 6px 2px; }
  .dd-fgroup:first-child { margin-top:2px; }
  .dd-select { width:100%; margin:4px 0 2px; padding:8px 30px 8px 10px; border:1px solid var(--line); border-radius:10px; background-color:var(--card); color:var(--text); font:inherit; background-position:right 10px center; }
  .tk-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:12px; }
  @media (max-width:640px){
    .tk-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .tk-grid .tk-card { padding:11px 12px; gap:8px; }
    .tk-grid .tk-card-title { font-size:13.5px; }
    .tk-grid .tk-card-desc { font-size:11.5px; }
    .tk-grid .tk-card-foot { flex-direction:column; align-items:stretch; gap:3px; padding-top:7px; font-size:11px; }
    .tk-grid .tk-card-who { max-width:100%; }
    .tk-grid .tk-term { font-size:11px; }
    .tk-grid .tk-card-top .badge { padding:2px 8px; font-size:10.5px; }
    .tk-grid .tk-card-top { flex-wrap:wrap; padding-right:26px; }
    .tk-grid .tk-card-spacer { display:none; }
    .tk-grid .tk-card .tk-checkform { position:absolute; top:11px; right:12px; }
  }
  .tk-card { position:relative; display:flex; flex-direction:column; gap:10px; padding:14px 16px; }
  .tk-card-top { display:flex; align-items:center; gap:6px; }
  .tk-card-spacer { flex:1 1 auto; }
  .tk-card-link { display:flex; flex-direction:column; gap:4px; color:inherit; min-width:0; }
  .tk-card-link:hover { text-decoration:none; }
  .tk-card-link:hover .tk-card-title { color:var(--accent); }
  .tk-card-title { font-weight:700; font-size:15px; line-height:1.3; letter-spacing:-.01em; overflow-wrap:anywhere; }
  .tk-card-desc { font-size:12.5px; line-height:1.45; color:var(--muted); overflow-wrap:anywhere; }
  .tk-card-done .tk-card-title { text-decoration:line-through; color:var(--muted); }
  .tk-card-foot { display:flex; align-items:center; gap:8px; margin-top:auto; padding-top:8px;
    border-top:1px solid var(--line); font-size:12px; }
  .tk-card-who { display:inline-flex; align-items:center; gap:5px; min-width:0; flex:0 1 auto;
    color:var(--muted); overflow:hidden; white-space:nowrap; }
  .tk-card-who span { overflow:hidden; text-overflow:ellipsis; }
  .tk-card-who .ic { flex:none; }
  .tk-card-who .ic svg { width:13px; height:13px; }
  .tk-card-foot .tk-term { margin-left:auto; }
  .tk-card[data-href] { cursor:pointer; transition:box-shadow .14s ease, border-color .14s ease; }
  .tk-card[data-href]:hover { border-color:var(--accent-soft); box-shadow:var(--shadow); }
  .tk-card[data-href]:hover .tk-card-title { color:var(--accent); }
  .tk-badge-f { cursor:pointer; text-decoration:none; transition:filter .12s ease, transform .12s ease; }
  .tk-badge-f:hover { text-decoration:none; filter:brightness(.94); transform:translateY(-1px); }
  .tk-card-go { text-decoration:none; }
  .tk-card-go:hover { text-decoration:none; color:var(--accent); }
  .tk-card-day { display:inline-flex; margin-left:auto; text-decoration:none; border-radius:8px; }
  .tk-card-day:hover { text-decoration:none; }
  .tk-card-day:hover .tk-term { text-decoration:underline; text-underline-offset:2px; }
  .tk-card-foot .tk-card-day .tk-term { margin-left:0; }
  .tk-term { display:inline-flex; align-items:center; font-weight:600; font-size:12px; white-space:nowrap; }
  .tk-term-overdue { color:#dc2626; }
  .tk-term-today { color:#059669; }
  .tk-term-tomorrow { color:#2563eb; }
  .tk-term-upcoming { color:#7c3aed; }
  .tk-term-closed, .tk-term-none { color:var(--muted); font-weight:500; }
  .tk-chip { display:inline-flex; align-items:center; gap:4px; font-size:11.5px; color:var(--muted); background:var(--card-2); border:1px solid var(--line); border-radius:999px; padding:2px 8px; }
  .tk-chip .ic svg { width:12px; height:12px; }
  .tk-chip-dep { color:var(--accent); border-color:var(--accent-soft); }
  .tk-checkform { display:inline-flex; margin:0; }
  .tk-prio-urgent { background:#fee2e2; color:#b91c1c; }
  .tk-prio-high { background:#fef3c7; color:#b45309; }
  .tk-prio-normal { background:var(--accent-soft); color:var(--accent); }
  .tk-prio-low { background:var(--card-2); color:var(--muted); }
  .tk-td-title a { font-weight:600; color:var(--text); }
  .tk-td-title a:hover { color:var(--accent); }
  .tk-td-check { width:34px; }
  .tk-tr-done .tk-td-title a { text-decoration:line-through; color:var(--muted); }
  .tk-multi { width:100%; padding:6px; border:1px solid var(--line); border-radius:10px; background:var(--card); color:var(--text); font:inherit; }
  .pt-wrap { display:flex; flex-direction:column; gap:10px; }
  .pt-top { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:2px 2px 0; }
  .pt-sum { display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:13.5px; color:var(--muted); }
  .pt-sum b { color:var(--text); font-weight:650; }
  .pt-dot { color:var(--line); }
  .pt-bad { color:#dc2626; font-weight:700; }
  .pt-ok { color:#059669; font-weight:700; }
  .pt-prog { display:flex; align-items:center; gap:7px; }
  .pt-prog-bar { display:block; width:120px; height:8px; border-radius:999px; background:var(--card-2); border:1px solid var(--line); overflow:hidden; }
  .pt-prog-bar i { display:block; height:100%; background:#10b981; }
  .pt-prog-txt { font-size:12.5px; font-weight:750; color:var(--text); }
  .pt-late { font-size:12px; font-weight:700; color:#dc2626; background:rgba(220,38,38,.1); border-radius:999px; padding:2px 9px; }
  .pt-btn { display:inline-flex; align-items:center; gap:6px; height:32px; margin:0; padding:0 12px; font-size:12.5px; font-weight:600; border-radius:999px; border:1px solid var(--line); background:var(--card); color:var(--text); cursor:pointer; box-shadow:none; }
  .pt-btn:hover { border-color:var(--accent); color:var(--accent); filter:none; }
  .pt-btn.on { background:var(--accent); border-color:var(--accent); color:#fff; }
  .pt-btn.on:hover { color:#fff; filter:brightness(1.06); }
  .pt-btn .ic svg { width:15px; height:15px; }
  .pt-status { margin-left:auto; font-size:12.5px; }
  .pt-status.ok { color:#047857; }
  .pt-scroll { overflow-x:auto; overscroll-behavior-x:contain; }
  .pt-heads, .pt-row { display:grid; grid-template-columns:52px 18px minmax(0,1.4fr) minmax(0,1fr); column-gap:10px; }
  .pt-heads { padding:0 0 4px; font-size:11px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.03em; }
  .pt-list { list-style:none; margin:0; padding:0; }
  .pt-row { align-items:stretch; padding-bottom:12px; }
  .pt-row:last-child { padding-bottom:0; }
  .pt-row:last-child .pt-rail::before { bottom:auto; height:22px; }
  .pt-row:last-child .pt-rail::after { display:none; }
  .pt-slot, .pt-fslot { min-width:0; display:flex; flex-direction:column; }
  .pt-when { display:flex; flex-direction:column; align-items:flex-end; justify-content:flex-start; padding-top:6px; line-height:1.15; }
  .pt-when-m { font-size:10.5px; font-weight:800; color:var(--accent); text-transform:uppercase; }
  .pt-when-d { font-size:17px; font-weight:800; color:var(--text); }
  .pt-when-w { font-size:10px; color:var(--muted); text-transform:uppercase; }
  .pt-rail { position:relative; }
  .pt-rail::before { content:""; position:absolute; left:50%; top:0; bottom:0; width:2px; margin-left:-1px; background:var(--line); }
  .pt-rail::after { content:""; position:absolute; left:50%; bottom:2px; width:7px; height:7px; margin-left:-4px; border-right:2px solid var(--line); border-bottom:2px solid var(--line); transform:rotate(45deg); }
  .pt-rail.is-thin::after, .pt-rail.is-add::after { display:none; }
  .pt-rail.is-add::before { width:0; background:none; border-left:2px dashed var(--line); }
  .pt-row:first-child .pt-rail::before { top:14px; }
  .pt-dot-node { position:absolute; left:50%; top:16px; width:11px; height:11px; margin-left:-5.5px; border-radius:50%; background:var(--muted); box-shadow:0 0 0 3px var(--bg); }
  .pt-dot-fact { position:absolute; left:50%; top:19px; width:8px; height:8px; margin-left:-4px; border-radius:50%; background:var(--bg); border:2px solid var(--line); }
  .pt-card { min-width:0; padding:var(--pad-tile); background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
  .pt-plan { --pc:#94a3b8; position:relative; border-left:3px solid var(--pc); }
  .pt-plan.pt-st-doing { --pc:var(--accent); }
  .pt-plan.pt-st-done { --pc:#10b981; }
  .pt-plan.pt-st-late { --pc:#dc2626; }
  .pt-plan.pt-st-cancelled { --pc:var(--line); opacity:.6; }
  .pt-plan.is-now { border-color:var(--accent); border-left-color:var(--pc); }
  .pt-plan.dragging { opacity:.4; }
  .pt-line1 { display:flex; align-items:center; gap:8px; min-width:0; flex-wrap:wrap; }
  .pt-grip { flex:none; display:inline-flex; color:var(--muted); cursor:grab; }
  .pt-grip .ic svg { width:16px; height:16px; }
  .pt-num { flex:none; min-width:14px; font-size:11.5px; font-weight:800; color:var(--muted); }
  .pt-name { flex:1 1 auto; min-width:130px; font-size:14px; font-weight:600; color:var(--text); text-decoration:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pt-name:hover { color:var(--accent); text-decoration:none; }
  .pt-tag, .pt-who { flex:none; max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11.5px; color:var(--muted); background:var(--card-2); border:1px solid var(--line); border-radius:999px; padding:1px 8px; }
  .pt-dates { display:flex; align-items:center; gap:6px; margin-top:7px; flex-wrap:wrap; }
  .pt-dates input { width:132px; height:29px; margin:0; padding:0 8px; font-size:12.5px; }
  .pt-dates.pt-ro { font-size:12.5px; color:var(--muted); }
  .pt-arr { color:var(--muted); font-size:12px; }
  .pt-len { font-size:11.5px; color:var(--muted); }
  .pt-real { position:relative; display:flex; flex-direction:column; justify-content:center; gap:5px; background:var(--card-2); }
  .pt-real.is-done { background:rgba(16,185,129,.08); border-color:rgba(16,185,129,.35); }
  .pt-real.is-doing, .pt-real.is-next { border-color:var(--accent); }
  .pt-real.is-off { opacity:.6; }
  .pt-fwho { font-size:11.5px; font-weight:700; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pt-fline { font-size:12.5px; color:var(--text); }
  .pt-fline b { font-weight:650; }
  .pt-fbot { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  .pt-delta { font-size:11.5px; font-weight:600; color:var(--muted); }
  .pt-delta.ok { color:#059669; }
  .pt-delta.bad { color:#dc2626; }
  .pt-delta.warn { color:#b45309; }
  .pt-here-plan { background:var(--card); color:var(--accent); border:1px solid var(--accent); }
  .pt-here { position:absolute; top:-9px; left:12px; padding:1px 8px; border-radius:999px; background:var(--accent); color:#fff; font-size:10px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; }
  .pt-actf { margin-left:auto; }
  .pt-act { height:27px; margin:0; padding:0 12px; font-size:12px; font-weight:600; border-radius:999px; border:1px solid var(--line); background:var(--card); color:var(--text); cursor:pointer; box-shadow:none; }
  .pt-act:hover { border-color:var(--accent); color:var(--accent); filter:none; }
  .pt-act.on { background:var(--accent); border-color:var(--accent); color:#fff; }
  .pt-act.on:hover { color:#fff; filter:brightness(1.06); }
  .pt-act.ghost { border-color:transparent; background:transparent; color:var(--muted); }
  .pt-now { display:flex; align-items:center; gap:10px; padding:2px 0 14px; }
  .pt-now::before, .pt-now::after { content:""; flex:1 1 auto; height:0; border-top:2px dashed #dc2626; opacity:.55; }
  .pt-now::before { flex:0 0 52px; }
  .pt-now-lbl { flex:none; padding:2px 10px; border-radius:999px; background:#dc2626; color:#fff; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.03em; }
  .pt-gap { display:flex; align-items:center; gap:10px; padding:0 0 12px; font-size:11.5px; color:var(--muted); }
  .pt-gap::before { content:""; flex:0 0 52px; }
  .pt-gap::after { content:""; flex:1 1 auto; height:0; border-top:1px dashed var(--line); }
  .pt-gap span { flex:none; padding:1px 9px; border-radius:999px; border:1px dashed var(--line); background:var(--card-2); }
  .pt-add { border-style:dashed; background:var(--card-2); box-shadow:none; }
  .pt-add-l1 { display:flex; align-items:center; gap:8px; }
  .pt-add-ic { flex:none; display:inline-flex; color:var(--muted); }
  .pt-add input[name=title] { flex:1 1 120px; min-width:0; height:32px; margin:0; }
  .pt-add-when { margin-top:6px; font-size:11.5px; color:var(--muted); }
  .pt-add-when summary { cursor:pointer; }
  .pt-add-when .pt-dates { margin-top:6px; }
  .pt-orphan { display:flex; align-items:center; gap:9px; flex-wrap:wrap; padding:9px 12px; border-radius:11px; font-size:13px; background:var(--accent-soft); color:var(--text); }
  .pt-orphan .ic svg { width:17px; height:17px; color:var(--accent); }
  @media (max-width:860px){
    .pt-heads, .pt-list { min-width:660px; }
    .pt-dates input { width:120px; }
    .pt-status { margin-left:0; }
  }
  .g-toolbar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
  .g-toolbar .dd-btn { height:36px; }
  .g-zoom { flex:0 0 auto; }
  .g-tbtn { display:inline-flex; align-items:center; gap:6px; height:36px; margin:0; padding:0 12px; font-size:13px; font-weight:600; border-radius:999px; border:1px solid var(--line); background:var(--card); color:var(--text); cursor:pointer; box-shadow:none; }
  .g-tbtn:hover { border-color:var(--accent); color:var(--accent); filter:none; }
  .g-sum { margin-left:auto; font-size:12.5px; white-space:nowrap; }
  .g-chart { position:sticky; top:var(--stick-h); z-index:8; padding-bottom:10px; margin-bottom:4px; background:var(--bg); }
  .g-scroll { --gname:250px; overflow:auto; max-height:min(46vh, 460px); border:1px solid var(--line); border-radius:12px; background:var(--card); overscroll-behavior-x:contain; }
  .g-chart.is-mini .g-scroll { max-height:136px; }
  .g-inner { position:relative; }
  .g-mini-btn { position:absolute; right:10px; bottom:-2px; z-index:9; display:inline-flex; align-items:center; gap:5px; margin:0; padding:3px 10px; font-size:11.5px; font-weight:600; border-radius:0 0 10px 10px; border:1px solid var(--line); border-top:0; background:var(--card-2); color:var(--muted); cursor:pointer; box-shadow:none; }
  .g-mini-btn:hover { color:var(--accent); filter:none; }
  .g-mini-btn .ic { width:14px; height:14px; transform:rotate(90deg); }
  .g-chart .g-mini-off, .g-chart.is-mini .g-mini-on { display:none; }
  .g-chart.is-mini .g-mini-off { display:inline-flex; align-items:center; gap:5px; }
  .g-chart.is-mini .g-mini-btn .ic { transform:rotate(-90deg); }
  .g-head { position:sticky; top:0; z-index:6; display:flex; background:var(--card-2); border-bottom:1px solid var(--line); }
  .g-head-name { position:sticky; left:0; z-index:7; flex:0 0 var(--gname); width:var(--gname); display:flex; align-items:center; gap:6px; padding:0 10px; font-size:12px; font-weight:700; color:var(--muted); background:var(--card-2); border-right:1px solid var(--line); }
  .g-head-name .ic { width:15px; height:15px; }
  .g-head-time { flex:0 0 auto; }
  .g-mos { display:flex; height:20px; }
  .g-mo { flex:0 0 auto; padding:2px 6px; font-size:11px; font-weight:700; color:var(--muted); border-left:1px solid var(--line); white-space:nowrap; overflow:hidden; }
  .g-ticks { display:flex; height:24px; border-top:1px solid var(--line); }
  .g-tick { flex:0 0 auto; display:flex; flex-direction:column; align-items:center; justify-content:center; border-left:1px solid var(--line); color:var(--muted); overflow:hidden; }
  .g-tick b { font-size:10.5px; font-weight:700; line-height:1.1; }
  .g-tick span { font-size:8.5px; line-height:1.1; text-transform:uppercase; }
  .g-tick-we { background:var(--g-we); }
  .g-body { position:relative; }
  .g-over { position:absolute; left:var(--gname); top:0; right:0; bottom:0; z-index:1; pointer-events:none; }
  .g-links { position:absolute; left:0; top:0; width:100%; height:100%; overflow:visible; }
  .g-link { fill:none; stroke:var(--muted); stroke-width:1.3; opacity:.7; }
  .g-link-bad { stroke:#dc2626; stroke-width:1.8; opacity:1; }
  .g-ah { fill:var(--muted); } .g-ah-bad { fill:#dc2626; }
  .g-row { display:flex; align-items:stretch; height:30px; box-sizing:border-box; border-bottom:1px solid var(--line); }
  summary.g-row { list-style:none; cursor:pointer; }
  summary.g-row::-webkit-details-marker { display:none; }
  summary.g-row::marker { content:""; }
  .g-name { position:sticky; left:0; z-index:3; flex:0 0 var(--gname); width:var(--gname); display:flex; align-items:center; gap:6px; padding:0 10px; font-size:12.5px; background:var(--card); border-right:1px solid var(--line); overflow:hidden; }
  .g-row-stage .g-name { background:var(--card-2); font-weight:700; }
  .g-row-task .g-name { padding-left:26px; }
  .g-nm { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text); }
  a.g-nm:hover { color:var(--accent); text-decoration:none; }
  .g-caret { flex:none; width:9px; height:9px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:rotate(45deg) translate(-2px,-2px); transition:transform .12s; }
  .g-grp:not([open]) .g-caret { transform:rotate(-45deg) translate(-1px,1px); }
  .g-cnt { flex:none; font-size:10.5px; font-weight:700; color:var(--muted); background:var(--card); border:1px solid var(--line); border-radius:999px; padding:0 6px; }
  .g-cnt-warn { color:#b45309; border-color:#f59e0b; }
  .g-who { flex:none; font-size:9.5px; font-weight:800; letter-spacing:.02em; color:var(--muted); background:var(--card-2); border:1px solid var(--line); border-radius:999px; padding:1px 5px; }
  .g-st-planned { --gc:#94a3b8; } .g-st-active { --gc:var(--accent); } .g-st-done { --gc:#10b981; }
  .g-ts-todo { --gc:#94a3b8; } .g-ts-doing { --gc:var(--accent); } .g-ts-done { --gc:#10b981; }
  .g-dot { flex:none; width:9px; height:9px; border-radius:3px; background:var(--gc); }
  .g-tdot { flex:none; width:7px; height:7px; border-radius:50%; background:var(--gc); }
  .g-track { position:relative; flex:1 1 auto; height:100%;
    background-image:
      repeating-linear-gradient(90deg, var(--g-we) 0 calc(var(--gpx) * 2), transparent calc(var(--gpx) * 2) calc(var(--gpx) * 7)),
      repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px var(--gunit));
    background-position: var(--gwe) 0, 0 0; }
  .g-bar { position:absolute; z-index:2; display:flex; align-items:center; justify-content:center; overflow:hidden; text-decoration:none; }
  .g-bar:hover { filter:brightness(1.08); text-decoration:none; outline:1.5px solid var(--accent); }
  .g-bar-stage { top:5px; height:20px; border-radius:6px; border:1.5px solid var(--gc); background:var(--card-2); }
  .g-bar-derived { border-style:dashed; }
  .g-fill { position:absolute; left:0; top:0; bottom:0; background:var(--gc); opacity:.45; }
  .g-bar-txt { position:relative; font-size:10px; font-weight:800; color:var(--text); }
  .g-bar-task { top:9px; height:12px; border-radius:4px; background:var(--gc); }
  .g-bar-task.g-prio-urgent { box-shadow:0 0 0 2px rgba(220,38,38,.55); }
  .g-zamk { position:absolute; top:0; bottom:0;
            background:repeating-linear-gradient(45deg, rgba(220,38,38,.16) 0 4px, transparent 4px 8px); }
  .g-today { position:absolute; top:0; bottom:0; background:rgba(220,38,38,.10); border-left:2px dashed #dc2626; }
  .g-today span { position:absolute; top:0; left:3px; font-size:9px; font-weight:800; color:#dc2626; }
  .g-list { display:flex; flex-direction:column; gap:10px; }
  .g-item { padding:0; overflow:hidden; }
  .g-item-head, .g-task-head { display:flex; align-items:center; gap:8px; cursor:pointer; list-style:none; }
  .g-item-head::-webkit-details-marker, .g-task-head::-webkit-details-marker { display:none; }
  .g-item-head { padding:11px 14px; }
  .g-item-head:hover, .g-task-head:hover { background:var(--card-2); }
  .g-item-name { flex:none; font-size:14.5px; }
  .g-item-dates, .g-task-dates { flex:1; min-width:0; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .g-item-cnt { flex:none; font-size:12px; }
  .g-prog { flex:0 0 84px; height:6px; border-radius:999px; background:var(--card-2); overflow:hidden; }
  .g-prog i { display:block; height:100%; background:var(--accent); }
  .g-badge-planned { background:var(--card-2); color:var(--muted); }
  .g-badge-active { background:var(--accent-soft); color:var(--accent); }
  .g-badge-done { background:rgba(16,185,129,.15); color:#059669; }
  .g-prio-urgent { background:rgba(220,38,38,.14); color:#dc2626; }
  .g-prio-high { background:rgba(245,158,11,.16); color:#b45309; }
  .g-flag { display:inline-flex; color:#dc2626; }
  .g-flag .ic { width:16px; height:16px; }
  .g-item-body { display:flex; flex-direction:column; gap:10px; padding:0 14px 14px; }
  .g-desc { margin:0; font-size:13px; color:var(--muted); white-space:pre-wrap; }
  .g-actions { display:flex; flex-wrap:wrap; gap:8px; }
  .g-chips { display:flex; flex-wrap:wrap; align-items:center; gap:6px; font-size:12px; }
  .g-chip { padding:3px 10px; border-radius:999px; border:1px solid var(--line); background:var(--card-2); color:var(--text); font-size:12px; text-decoration:none; }
  .g-chip:hover { border-color:var(--accent); color:var(--accent); text-decoration:none; }
  .g-warn { display:flex; align-items:center; gap:6px; padding:7px 10px; border-radius:9px; font-size:12.5px; color:#dc2626; background:rgba(220,38,38,.09); }
  .g-warn .ic { width:16px; height:16px; flex:none; }
  .g-tasks { display:flex; flex-direction:column; gap:6px; }
  .g-none { margin:0; font-size:13px; }
  .g-task { border:1px solid var(--line); border-radius:10px; background:var(--card-2); overflow:hidden; }
  .g-task-head { padding:8px 10px; }
  .g-task-name { flex:none; font-size:13px; font-weight:600; }
  .g-task-body { display:flex; flex-direction:column; gap:8px; padding:0 10px 10px; }
  .g-kv { display:grid; grid-template-columns:auto 1fr; gap:2px 12px; font-size:12.5px; }
  .g-off-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
  .g-off-head .ic { width:16px; height:16px; color:var(--muted); }
  .g-off-head .muted { font-size:12.5px; }
  .g-item.is-hit, .g-task.is-hit { outline:2px solid var(--accent); outline-offset:1px; }
  .g-ghost { position:absolute; left:0; bottom:2px; height:3px; border-radius:2px; background:var(--muted); opacity:.42; z-index:1; }
  .g-tail { position:absolute; top:11px; height:8px; border-radius:0 4px 4px 0; z-index:1;
    background:repeating-linear-gradient(135deg, rgba(220,38,38,.55) 0 4px, transparent 4px 8px); border-right:2px solid #dc2626; }
  .g-tail-push { background:repeating-linear-gradient(135deg, rgba(245,158,11,.55) 0 4px, transparent 4px 8px); border-right-color:#f59e0b; }
  .g-row-stage .g-tail { top:8px; height:14px; }
  .g-slip { flex:none; font-size:9.5px; font-weight:800; color:#b45309; background:rgba(245,158,11,.16); border-radius:999px; padding:1px 5px; }
  .g-solo { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11.5px; font-weight:400; color:var(--muted); }
  .g-caret-off { visibility:hidden; }
  .g-neg { color:#dc2626; } .g-pos { color:#059669; }
  .g-bar.g-ms { top:8px; height:14px; background:transparent; overflow:visible; }
  .g-bar.g-ms::before { content:""; position:absolute; inset:0;
    background:var(--gc,#6366f1); border:1.5px solid var(--card); transform:rotate(45deg); border-radius:2px; }
  .g-bar.g-ms:hover { outline:none; }
  .g-bar.g-ms:hover::before { filter:brightness(1.15); box-shadow:0 0 0 2px var(--accent); }
  .g-msdot { flex:none; width:9px; height:9px; background:#6366f1; transform:rotate(45deg); border-radius:2px; }
  .g-bar.is-crit { box-shadow:0 0 0 2px #dc2626; }
  .g-bar.is-bad { outline:1.5px dashed #f59e0b; outline-offset:1px; }
  .g-link-ss { stroke-dasharray:4 3; }
  .g-drawlink { fill:none; stroke:var(--accent); stroke-width:2; stroke-dasharray:5 4; }
  .g-chart.is-edit .g-bar[data-drag] { cursor:grab; }
  .g-chart.is-dragging, .g-chart.is-dragging .g-bar[data-drag] { cursor:grabbing; user-select:none; }
  .g-h { position:absolute; top:0; bottom:0; width:7px; cursor:ew-resize; opacity:0; background:var(--card); }
  .g-h-l { left:0; border-radius:4px 0 0 4px; } .g-h-r { right:0; border-radius:0 4px 4px 0; }
  .g-bar:hover .g-h { opacity:.55; }
  .g-lk { position:absolute; top:50%; width:11px; height:11px; margin-top:-5.5px; border-radius:50%;
    background:var(--card); border:2px solid var(--accent); opacity:0; cursor:crosshair; transition:opacity .1s; }
  .g-lk-l { left:-14px; } .g-lk-r { right:-14px; }
  .g-bar:hover .g-lk, .g-chart.is-picking .g-lk { opacity:1; }
  .g-chart.is-picking .g-bar { cursor:crosshair; }
  .g-bar.is-linktarget { outline:2px solid var(--accent); outline-offset:2px; }
  .g-row.is-droptarget { background:var(--accent-soft); }
  .g-row.is-droptarget .g-name { background:var(--accent-soft); }
  .g-tip { position:fixed; z-index:60; padding:4px 9px; border-radius:7px; font-size:11.5px; font-weight:700;
    background:var(--text); color:var(--bg); pointer-events:none; opacity:0; transform:translate(-50%,0); transition:opacity .08s; white-space:nowrap; }
  .g-tip.is-on { opacity:.94; }
  .g-toast { position:fixed; left:50%; bottom:22px; z-index:60; transform:translate(-50%,14px);
    display:flex; align-items:center; gap:12px; padding:9px 14px; border-radius:11px; font-size:13px;
    background:var(--text); color:var(--bg); box-shadow:0 8px 24px rgba(0,0,0,.22); opacity:0; pointer-events:none; transition:opacity .14s, transform .14s; }
  .g-toast.is-on { opacity:1; transform:translate(-50%,0); pointer-events:auto; }
  .g-toast button { margin:0; padding:3px 10px; font-size:12px; font-weight:700; border-radius:7px;
    border:1px solid currentColor; background:transparent; color:var(--bg); cursor:pointer; box-shadow:none; }
  .g-ctx { position:fixed; z-index:70; min-width:210px; padding:5px; border-radius:11px;
    border:1px solid var(--line); background:var(--card); box-shadow:0 12px 32px rgba(0,0,0,.18); }
  .g-ctx em { display:block; padding:5px 9px 3px; font-size:10.5px; font-weight:800; font-style:normal;
    text-transform:uppercase; letter-spacing:.03em; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .g-ctx > button { display:block; width:100%; margin:0; padding:6px 9px; text-align:left; font-size:13px;
    border:0; border-radius:7px; background:transparent; color:var(--text); cursor:pointer; box-shadow:none; }
  .g-ctx > button:hover { background:var(--card-2); color:var(--accent); filter:none; }
  .g-ctx-sep { display:block; height:1px; margin:4px 6px; background:var(--line); }
  .g-ctx-pct { display:flex; gap:4px; padding:2px 6px 5px; }
  .g-ctx-pct button { flex:1; margin:0; padding:4px 0; font-size:11.5px; font-weight:700; border-radius:6px;
    border:1px solid var(--line); background:var(--card-2); color:var(--text); cursor:pointer; box-shadow:none; }
  .g-ctx-pct button:hover { border-color:var(--accent); color:var(--accent); filter:none; }
  .g-toolbar .g-tbtn-bad { border-color:#dc2626; color:#dc2626; text-decoration:none; }
  .g-toolbar .g-tbtn-bad b { font-size:11px; background:#dc2626; color:#fff; border-radius:999px; padding:0 6px; }
  .g-toolbar .g-tbtn-ok { color:#059669; border-color:rgba(16,185,129,.5); cursor:default; }
  .g-tbtn-cta { border-color:var(--accent); color:var(--accent); }
  .g-tform { display:flex; align-items:center; gap:6px; margin:0; }
  .g-base-at { font-size:11.5px; white-space:nowrap; }
  .g-probs { padding:0; overflow:hidden; }
  .g-probs-head { display:flex; align-items:center; gap:8px; padding:10px 14px; cursor:pointer; list-style:none; }
  .g-probs-head::-webkit-details-marker { display:none; }
  .g-probs-head .ic { width:17px; height:17px; color:#dc2626; }
  .g-probs-body { display:flex; flex-direction:column; gap:9px; padding:0 14px 14px; }
  .g-probs-hint { margin:0; font-size:12.5px; }
  .g-prob-list { display:flex; flex-direction:column; gap:5px; margin:0; padding:0; list-style:none; }
  .g-prob { display:flex; align-items:baseline; gap:8px; font-size:12.5px; }
  .g-prob-tag { flex:none; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.02em;
    color:#b45309; background:rgba(245,158,11,.15); border-radius:999px; padding:1px 7px; }
  .g-prob-cycle .g-prob-tag, .g-prob-order .g-prob-tag { color:#dc2626; background:rgba(220,38,38,.13); }
  .g-prob-milestone .g-prob-tag { color:#4f46e5; background:rgba(99,102,241,.15); }
  .g-prob-txt { color:var(--text); text-decoration:none; }
  .g-prob-txt:hover { color:var(--accent); }
  .g-prob-soft .g-prob-tag { color:var(--muted); background:var(--card-2); }
  .g-prob-more > summary { display:inline-block; margin-top:6px; font-size:12px; font-weight:600; color:var(--accent); cursor:pointer; list-style:none; }
  .g-prob-more > summary::-webkit-details-marker { display:none; }
  .g-prob-more > .g-prob-list { margin-top:5px; }
  .g-fixbtn { align-self:flex-start; }
  .g-fix { display:flex; flex-direction:column; gap:10px; }
  .g-fix-head { display:flex; align-items:center; gap:8px; }
  .g-fix-head .ic { width:17px; height:17px; color:var(--accent); }
  .g-fix-list { display:flex; flex-direction:column; gap:5px; margin:0; padding:0; list-style:none; font-size:12.5px; }
  .g-fix-list li { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; }
  .g-fix-move { font-variant-numeric:tabular-nums; }
  .g-res { display:flex; flex-direction:column; gap:16px; margin-top:10px; }
  .g-res-block { display:flex; flex-direction:column; gap:8px; }
  .g-res-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  .g-res-head .ic { width:17px; height:17px; color:var(--muted); }
  .g-res-hint { margin:0; font-size:12.5px; }
  .g-res-q, .g-res-when, .g-res-left { white-space:nowrap; font-variant-numeric:tabular-nums; }
  .g-res-task { max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .g-res-block > .btn-sm { align-self:flex-start; }
  .g-res-people { display:flex; flex-wrap:wrap; gap:8px; }
  .g-res-person { display:inline-flex; align-items:center; gap:8px; padding:5px 11px; border-radius:999px;
    border:1px solid var(--line); background:var(--card-2); color:var(--text); font-size:12.5px; text-decoration:none; }
  .g-res-person:hover { border-color:var(--accent); color:var(--accent); text-decoration:none; }
  .g-res-person b { font-variant-numeric:tabular-nums; }
  .g-chipwrap { display:inline-flex; align-items:center; gap:2px; }
  .g-chip-k { font-size:10px; font-weight:800; text-transform:uppercase; color:var(--muted); margin-right:4px; }
  @media (max-width:760px) {
    .g-scroll { --gname:150px; max-height:min(40vh, 320px); }
    .g-toolbar .g-sum { display:none; }
    .g-tbtn span:not(.ic) { display:none; }
    .g-tbtn { padding:0 10px; }
  }
  .tk-section { margin-bottom:18px; }
  .tk-count { font-size:12px; color:var(--muted); background:var(--card-2); border:1px solid var(--line); border-radius:999px; padding:1px 8px; }
  .tk-h-overdue { color:#dc2626; }
  .tk-h-today { color:#0e7490; }
  .tk-list { display:flex; flex-direction:column; gap:8px; }
  .tk-item { background:var(--card); border:1px solid var(--line); border-radius:11px; }
  .tk-item.tk-b-overdue { border-left:3px solid #ef4444; }
  .tk-item.tk-b-today { border-left:3px solid #06b6d4; }
  .tk-row { display:flex; align-items:flex-start; gap:10px; padding:10px 12px; }
  .tk-check { flex:0 0 auto; width:20px; height:20px; padding:0; margin:1px 0 0; border:2px solid var(--line); border-radius:6px; background:var(--card-2); cursor:pointer; color:#fff; font-size:13px; line-height:1; }
  .tk-check:hover { border-color:var(--accent,#3b82f6); }
  .tk-check.done { background:#10b981; border-color:#10b981; }
  .tk-main { flex:1 1 auto; min-width:0; }
  .tk-title { font-weight:500; font-size:14px; line-height:1.3; }
  .tk-done .tk-title { text-decoration:line-through; color:var(--muted); }
  .tk-desc { font-size:12.5px; margin-top:2px; }
  .tk-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:5px; font-size:12px; }
  .tk-due { display:inline-flex; align-items:center; gap:4px; color:var(--muted); }
  .tk-due .ic, .tk-lead .ic, .tk-who .ic { width:13px; height:13px; }
  .tk-due.overdue { color:#dc2626; font-weight:600; }
  .tk-due.today { color:#0e7490; font-weight:600; }
  .tk-lead { display:inline-flex; align-items:center; gap:4px; color:var(--accent,#3b82f6); text-decoration:none; }
  .tk-lead:hover { text-decoration:underline; }
  .tk-who { display:inline-flex; align-items:center; gap:4px; }
  .tk-del { flex:0 0 auto; background:none; border:0; color:var(--muted); cursor:pointer; padding:2px; margin:0; border-radius:6px; opacity:.5; }
  .tk-del:hover { opacity:1; color:#dc2626; }
  .tk-del .ic { width:15px; height:15px; }
  .tk-add input[name="title"] { width:100%; }
  .tk-add-row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
  .tk-add-row input, .tk-add-row select { flex:1 1 auto; min-width:0; }
  .tk-add-row button { margin-top:0; flex:0 0 auto; }
  .tk-status-actions { display:flex; flex-direction:column; gap:8px; margin:0; }
  .tk-status-actions .btn-sm { width:100%; padding:11px 16px; font-size:13.5px; }
  .tk-done-wrap { margin-top:8px; }
  .tk-done-wrap summary { cursor:pointer; padding:6px 0; font-size:13px; }
  .tk-done-wrap .tk-list { margin-top:8px; }
  .cal-task { display:flex; align-items:center; gap:6px; padding:6px 9px; margin-top:6px; background:var(--card-2); border:1px solid var(--line); border-left:3px solid #06b6d4; border-radius:8px; text-decoration:none; color:inherit; font-size:12.5px; }
  .cal-task:hover { border-color:var(--accent,#3b82f6); }
  .cal-task .ic { width:13px; height:13px; flex:0 0 auto; color:#0e7490; }
  .cal-task-time { font-weight:600; flex:0 0 auto; }
  .cal-task-title { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cal-task-lead { flex:0 0 auto; }
  .tk-undo{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
  .tk-undo-f,.tk-czas-f{margin:0}
  .tk-undo-akcje{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
  .tk-czas-f{display:flex;align-items:center;gap:6px}
  .tk-czas-l{white-space:nowrap}
  .tk-czas-i{width:5.5em;padding:3px 6px}
  .notes-layout { display:grid; grid-template-columns:1fr; gap:16px; }
  @media (min-width:900px) { .notes-layout { grid-template-columns:1fr 320px; } .notes-add { order:2; align-self:start; } }
  .notes-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px; align-content:start; }
  .note-card { display:flex; flex-direction:column; gap:6px; text-decoration:none; color:inherit; }
  .note-card:hover { border-color:var(--accent,#3b82f6); }
  .note-title { font-weight:600; font-size:14px; }
  .note-body { font-size:13px; line-height:1.45; color:var(--text); overflow:hidden; }
  .note-meta { font-size:11.5px; margin-top:auto; }
  .note-priv { font-weight:700; padding:1px 6px; border-radius:999px; background:var(--card-2); color:var(--muted); }
  .proj-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:14px; }
  .proj-card { display:flex; flex-direction:column; gap:8px; text-decoration:none; color:inherit; min-height:190px; padding:18px; }
  .proj-card:hover { border-color:var(--accent,#3b82f6); }
  .proj-card.proj-done { opacity:.72; }
  .proj-card-badge { align-self:flex-start; text-transform:uppercase; letter-spacing:.05em; font-size:11px; font-weight:600; }
  .proj-card-title { font-weight:700; font-size:19px; line-height:1.2; margin-top:2px; }
  .proj-card-client { display:inline-flex; align-items:center; gap:5px; font-size:12px; }
  .proj-card-client .ic { width:13px; height:13px; }
  .proj-card-foot { margin-top:auto; display:flex; flex-direction:column; gap:12px; padding-top:8px; }
  .proj-card-label { font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted,#6b7280); }
  .proj-card-value { font-size:15px; font-weight:600; margin-top:2px; }
  .proj-card-prog-head { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:6px; }
  .proj-card-pct { font-size:15px; font-weight:700; color:var(--accent,#3b82f6); }
  .badge.proj-badge-active { background:#eff6ff; color:#1d4ed8; }
  .badge.proj-badge-on_hold { background:#fefce8; color:#a16207; }
  .badge.proj-badge-done { background:#ecfdf5; color:#047857; }
  :root[data-theme="dark"] .badge.proj-badge-active { background:rgba(59,130,246,.15); color:#93c5fd; }
  :root[data-theme="dark"] .badge.proj-badge-on_hold { background:rgba(234,179,8,.15); color:#fde047; }
  :root[data-theme="dark"] .badge.proj-badge-done { background:rgba(16,185,129,.15); color:#6ee7b7; }
  .proj-fab { position:fixed; right:24px; bottom:24px; z-index:40; text-decoration:none; }
  .proj-fab:hover { text-decoration:none; }
  .proj-prog { height:7px; border-radius:6px; background:var(--border,#e5e7eb); overflow:hidden; }
  .proj-prog-bar { display:block; height:100%; border-radius:6px; background:var(--accent,#3b82f6); }
  .proj-detail-head { display:flex; align-items:flex-start; gap:12px; flex-wrap:wrap; margin:6px 0 8px; }
  .proj-detail-title { font-size:24px; font-weight:700; margin:0; flex:1; min-width:0; }
  .proj-status-top { margin-top:6px; }
  .proj-detail-desc { font-size:14px; margin:0; max-width:760px; white-space:pre-wrap; }
  .proj-tabs { display:flex; gap:4px; flex-wrap:wrap; border-bottom:1px solid var(--border,#e5e7eb); margin-bottom:18px; }
  .proj-tabs a { display:inline-flex; align-items:center; gap:6px; padding:8px 12px; font-size:13px;
    color:var(--muted,#6b7280); text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-1px; white-space:nowrap; }
  .proj-tabs a .ic { width:15px; height:15px; }
  .proj-tabs a:hover { color:var(--text,#111827); }
  .proj-tabs a.active { color:var(--accent,#3b82f6); border-bottom-color:var(--accent,#3b82f6); font-weight:600; }
  .proj-tab-count { background:var(--border,#e5e7eb); color:var(--text,#111827); border-radius:9px; padding:0 6px; font-size:11px; }
  .proj-ov { display:grid; gap:18px; grid-template-columns:1fr; margin-top:18px; align-items:start; }
  .proj-ov-l { order:2; display:flex; flex-direction:column; gap:18px; }
  .proj-ov-r { order:1; display:flex; flex-direction:column; gap:18px; }
  @media (min-width:1100px) {
    .proj-ov { grid-template-columns:1fr 1fr; }
    .proj-ov-l { order:1; }
    .proj-ov-r { order:2; }
  }
  .proj-ov .card { margin:0; }
  .proj-sec-h { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
  .proj-sec-h strong { display:flex; align-items:center; gap:8px; font-size:15px; }
  .proj-sec-h .ic svg { width:17px; height:17px; color:var(--muted); }
  .proj-sec-a { display:inline-flex; align-items:center; gap:5px; font-size:12.5px; text-decoration:none; }
  .proj-sec-a .ic svg { width:14px; height:14px; }
  .proj-sec-a:hover { text-decoration:none; }
  .btn-pill:disabled, button:disabled { background:var(--card-2); color:var(--muted);
    box-shadow:none; cursor:not-allowed; opacity:1; }
  .btn-pill:disabled:hover, button:disabled:hover { background:var(--card-2); color:var(--muted); filter:none; }
  .proj-sec-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px;
                  margin:0; height:34px; padding:0 18px; border:0; border-radius:999px;
                  background:var(--accent); color:var(--accent-ink); box-shadow:none;
                  font:inherit; font-weight:600; font-size:13.5px; line-height:1; text-decoration:none; }
  .proj-sec-btn:hover { filter:brightness(.97); background:var(--accent); color:var(--accent-ink); text-decoration:none; }
  .proj-sec-btn .ic svg { width:15px; height:15px; }
  .pev-box { display:flex; flex-direction:column; }
  .pev-tbl { border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--card); }
  .pev-row { display:grid; align-items:center; gap:10px; padding:9px 12px; color:var(--text);
             text-decoration:none; grid-template-columns:30px minmax(0,1fr) 92px 96px 84px 116px; }
  .pev-row + .pev-row, .pev-more-i .pev-row { border-top:1px solid var(--line); }
  a.pev-row:hover { background:var(--card-2); text-decoration:none; }
  .pev-h { background:var(--card-2); color:var(--muted); font-size:12.5px; font-weight:700;
           text-transform:uppercase; letter-spacing:.03em; padding:9px 12px; }
  .pev-h:hover { background:var(--card-2); }
  .pev-ic { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px;
            flex:none; border-radius:999px; background:var(--card-2); color:var(--muted); }
  .pev-h .pev-ic { background:none; }
  .pev-ic .ic svg { width:15px; height:15px; }
  .pev-payment { background:var(--accent-soft); color:var(--accent); }
  .pev-row:has(.pev-change) .pev-t { color:var(--muted); white-space:normal; line-height:1.45; }
  .pev-b { display:flex; flex-direction:column; gap:2px; min-width:0; }
  .pev-t { font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pev-m { font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pev-c { font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-align:left; }
  .pev-when { font-variant-numeric:tabular-nums; }
  .pev-tag { display:inline-block; padding:3px 9px; border-radius:999px; background:var(--card-2);
             color:var(--muted); font-size:11.5px; font-weight:650; letter-spacing:0; text-transform:none; }
  .pev-h .pev-tag { display:none; }
  .pev-amt { font-size:13.5px; font-weight:700; font-variant-numeric:tabular-nums; text-align:left;
             white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .pev-h .pev-b, .pev-h .pev-c, .pev-h .pev-amt, .pev-h .pev-state {
    font-size:12.5px; font-weight:700; letter-spacing:.03em; text-align:left; }
  .pev-state { font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .pev-tbl.pev-fin .pev-row { grid-template-columns:30px minmax(0,1fr) 104px 104px 104px 76px 88px; }
  .pev-tot { background:var(--card-2); font-weight:700; }
  .pev-tot .pev-m { font-weight:500; }
  @container sec (max-width:640px){
    .pev-tbl.pev-fin .pev-row { grid-template-columns:30px minmax(0,1fr) 104px 104px 104px; }
    .pev-tbl.pev-fin .pev-row > :nth-child(6), .pev-tbl.pev-fin .pev-row > :nth-child(7) { display:none; }
  }
  @media (max-width:720px){
    .pev-tbl.pev-fin .pev-row { grid-template-columns:30px minmax(0,1fr) 96px 96px; }
    .pev-tbl.pev-fin .pev-row > :nth-child(5), .pev-tbl.pev-fin .pev-row > :nth-child(6),
    .pev-tbl.pev-fin .pev-row > :nth-child(7) { display:none; }
  }
  .pev-in { color:#047857; }
  .pev-out { color:#b91c1c; }
  :root[data-theme="dark"] .pev-in { color:#6ee7b7; }
  :root[data-theme="dark"] .pev-out { color:#fca5a5; }
  .proj-sec { container-type:inline-size; container-name:sec; }
  @container sec (max-width:620px){
    .pev-who { display:none; }
    .pev-row { grid-template-columns:30px minmax(0,1fr) 92px 84px 116px; }
  }
  @container sec (max-width:470px){
    .pev-kind { display:none; }
    .pev-row { grid-template-columns:30px minmax(0,1fr) 84px 116px; }
  }
  @container sec (max-width:330px){
    .pev-when { display:none; }
    .pev-row { grid-template-columns:30px minmax(0,1fr) 108px; }
  }
  .pev-row.pev-ct { grid-template-columns:30px minmax(0,1fr) 128px 100px 132px 34px; }
  .pev-ct[data-href] { cursor:pointer; }
  .pev-ct[data-href]:hover { background:var(--card-2); }
  .pev-h.pev-ct:hover { background:var(--card-2); }
  .pev-ct .pev-t a { color:inherit; text-decoration:none; }
  .pev-ct[data-href]:hover .pev-t a { color:var(--accent); }
  .pev-ct-x { display:flex; justify-content:flex-end; }
  .pev-ct-x .lnk { display:inline-flex; align-items:center; justify-content:center; width:26px;
                   height:26px; padding:0; border-radius:999px; color:var(--muted); opacity:0; }
  .pev-ct-x .lnk .ic svg { width:14px; height:14px; }
  .pev-ct:hover .pev-ct-x .lnk, .pev-ct-x .lnk:focus-visible { opacity:1; }
  .pev-ct-x .lnk:hover { background:var(--card-2); color:#b91c1c; }
  @media (hover:none){ .pev-ct-x .lnk { opacity:1; } }
  @container sec (max-width:560px){
    .pev-ctw { display:none; }
    .pev-row.pev-ct { grid-template-columns:30px minmax(0,1fr) 128px 132px 34px; }
  }
  @container sec (max-width:430px){
    .pev-ctk { display:none; }
    .pev-row.pev-ct { grid-template-columns:30px minmax(0,1fr) 96px 30px; }
  }
  .kc-add-w { display:none; margin-top:14px; }
  .kc-add-c:checked ~ .kc-add-w { display:block; }
  .kc-add-b { cursor:pointer; }
  .kc-add-c:checked ~ .proj-sec-h .kc-add-b { background:var(--card-2); color:var(--muted); }
  .pev-row.pev-empty { display:block; padding:14px 12px; color:var(--muted); font-size:13px; }
  .pev-more-w { display:grid; grid-template-rows:0fr; transition:grid-template-rows .26s cubic-bezier(.4,0,.2,1); }
  .pev-more-i { overflow:hidden; }
  .pev-more-c:checked ~ .pev-tbl .pev-more-w, .pev-more-c:checked ~ .tl .pev-more-w { grid-template-rows:1fr; }
  .pev-more-b { display:inline-flex; align-items:center; justify-content:center; gap:6px;
                align-self:center; margin-top:10px; padding:7px 16px; border-radius:999px;
                border:1px solid var(--line); background:var(--card); color:var(--muted);
                font-size:12.5px; font-weight:600; cursor:pointer; text-decoration:none;
                transition:color .15s ease, border-color .15s ease; }
  .pev-more-b:hover { color:var(--accent); border-color:var(--accent); text-decoration:none; }
  .pev-more-b .ic svg { width:15px; height:15px; transition:transform .26s cubic-bezier(.4,0,.2,1); }
  .pev-more-z { display:none; }
  .pev-more-c:checked ~ .pev-more-b .pev-more-a { display:none; }
  .pev-more-c:checked ~ .pev-more-b .pev-more-z { display:inline; }
  .pev-more-c:checked ~ .pev-more-b .ic svg { transform:rotate(180deg); }
  .pn-list { border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--card); }
  .pn { display:flex; align-items:flex-start; gap:10px; padding:10px 12px; color:var(--text); text-decoration:none; }
  .pn + .pn { border-top:1px solid var(--line); }
  a.pn:hover { background:var(--card-2); text-decoration:none; }
  .pn-b { flex:1; min-width:0; font-size:13.5px; white-space:pre-wrap; overflow-wrap:anywhere; }
  .pn-m { flex:none; font-size:11.5px; }
  .pev-kinds { margin:0 0 4px; }
  .pev-dur { display:flex; }
  .pev-dur .cal-ico { flex:0 0 132px; }
  .pev-form .pev-only-work, .pev-form .pev-only-meeting,
  .pev-form .pev-only-payment, .pev-form .pev-only-other { display:none; }
  .pev-form:has(input[name="kind"][value="work"]:checked) .pev-only-work,
  .pev-form:has(input[name="kind"][value="meeting"]:checked) .pev-only-meeting,
  .pev-form:has(input[name="kind"][value="payment"]:checked) .pev-only-payment,
  .pev-form:has(input[name="kind"][value="other"]:checked) .pev-only-other { display:block; }
  .ct-delf { display:contents; }
  .proj-dane { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; align-items:start; }
  @media (min-width:1000px) { .proj-dane { grid-template-columns:minmax(0,1fr) minmax(0,1fr); } }
  .proj-dane > .card { margin:0; }
  .proj-dane-bar { grid-column:1 / -1; margin-bottom:96px; }
  .proj-next { margin-bottom:18px; }
  .proj-next-h { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:10px; }
  .proj-next-h a { font-size:12.5px; text-decoration:none; }
  .proj-next-r { display:flex; align-items:center; justify-content:space-between; gap:12px;
                 padding:9px 10px; margin:0 -10px; border-radius:10px; color:var(--text);
                 text-decoration:none; }
  .proj-next-r + .proj-next-r { box-shadow:inset 0 1px 0 var(--line); }
  .proj-next-r:hover { background:var(--card-2); text-decoration:none; }
  .proj-next-t { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }
  .proj-next-m { display:flex; align-items:center; gap:8px; flex:none; font-size:12.5px; }
  .proj-next-late { color:#b91c1c; font-weight:600; }
  :root[data-theme="dark"] .proj-next-late { color:#fca5a5; }
  .proj-overview-grid { display:grid; grid-template-columns:1fr; gap:18px; }
  @media (min-width:1000px) { .proj-overview-grid { grid-template-columns:1fr 1fr; align-items:start; } }
  .proj-overview-info { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px 18px; }
  .proj-kv span.muted { font-size:11px; text-transform:uppercase; letter-spacing:.03em; }
  .proj-kv-full { grid-column:1/-1; }
  .proj-desc-text { white-space:pre-wrap; font-size:13px; line-height:1.5; }
  .proj-chips { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
  .proj-chip { display:inline-flex; align-items:center; gap:4px; background:var(--border,#eef2f7); border-radius:14px; padding:2px 10px; font-size:12px; }
  .proj-chip-x button, .proj-chip-x { background:none; border:none; cursor:pointer; color:var(--muted,#6b7280); font-size:14px; line-height:1; padding:0 2px; }
  .proj-chip-x .ic svg { width:13px; height:13px; }
  .proj-inline-form { display:inline-flex; gap:4px; align-items:center; }
  .proj-form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px; }
  .proj-form-grid > *, .proj-form-grid input, .proj-form-grid select { min-width:0; }
  .proj-stage { display:flex; flex-direction:column; gap:8px; margin-bottom:12px; border-left:3px solid var(--border,#e5e7eb); }
  .proj-stage-active { border-left-color:#3b82f6; }
  .proj-stage-done { border-left-color:#10b981; opacity:.85; }
  .proj-stage-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
  .proj-stage-dates, .proj-stage-count { display:inline-flex; align-items:center; gap:4px; font-size:12px; }
  .proj-stage-tasks { margin:0; padding-left:4px; list-style:none; font-size:13px; }
  .proj-stage-tasks li { padding:1px 0; }
  .proj-stage-tasks li.done { color:var(--muted,#6b7280); text-decoration:line-through; }
  .proj-stage-edit { margin-top:4px; }
  .proj-stage-edit summary { font-size:12px; cursor:pointer; }
  .badge.proj-stbadge-planned { background:#f3f4f6; color:#4b5563; }
  .badge.proj-stbadge-active { background:#eff6ff; color:#1d4ed8; }
  .badge.proj-stbadge-done { background:#ecfdf5; color:#047857; }
  .proj-tasksec { margin-bottom:16px; }
  .proj-tasksec-title { display:flex; align-items:center; gap:8px; font-size:14px; margin:0 0 8px; }
  .proj-fin-lists { display:grid; grid-template-columns:1fr; gap:18px; }
  @media (min-width:760px) { .proj-fin-lists { grid-template-columns:1fr 1fr; } }
  .proj-fin-row { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid var(--border,#f1f5f9); font-size:13px; }
  .proj-fin-label { flex:1; }
  .proj-fin-amt { font-weight:600; font-variant-numeric:tabular-nums; }
  .proj-fin-income { color:#047857; }
  .proj-fin-cost { color:#b91c1c; }
  .proj-fin-date { font-size:11px; }
  .proj-member { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 0; border-bottom:1px solid var(--line); }
  .proj-member:last-child { border-bottom:0; }
  .proj-member-info { display:flex; align-items:center; gap:10px; }
  .proj-team-card { margin-top:18px; }
  .proj-team-add { margin-top:10px; }
  .proj-team-add > summary { display:inline-flex; align-items:center; gap:6px; cursor:pointer; font-size:13px; font-weight:600; }
  .proj-team-add > summary .ic svg { width:15px; height:15px; }
  .proj-team-add[open] > summary { margin-bottom:10px; }
  .proj-fold { margin-top:18px; }
  .proj-fold > summary { display:flex; align-items:center; gap:8px; cursor:pointer; list-style:none; }
  .proj-fold > summary::-webkit-details-marker { display:none; }
  .proj-fold > summary .muted { margin-left:auto; font-size:12px; }
  .proj-fold > summary .muted::after { content:"rozwiń"; }
  .proj-fold[open] > summary .muted::after { content:"zwiń"; }
  .proj-fold-body { margin-top:14px; }
  .doc-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:12px; align-content:start; }
  .doc-card { display:flex; flex-direction:column; gap:6px; }
  .doc-card:hover { border-color:var(--accent); }
  .doc-card-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
  .doc-kind { display:inline-flex; align-items:center; gap:6px; min-width:0; font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); }
  .doc-kind-t { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .doc-glyph { font-size:15px; line-height:1; flex:none; }
  .doc-title { font-weight:600; font-size:14px; word-break:break-word; }
  .doc-title a { color:inherit; text-decoration:none; }
  .doc-title a:hover { color:var(--accent); text-decoration:underline; }
  .doc-body { font-size:13px; line-height:1.45; color:var(--muted); white-space:pre-wrap; overflow:hidden; }
  .doc-meta { font-size:11.5px; margin-top:auto; }
  .doc-chip { font-size:11px; padding:2px 8px; border-radius:999px; background:var(--card-2); border:1px solid var(--line); white-space:nowrap; max-width:60%; overflow:hidden; text-overflow:ellipsis; }
  .doc-chip.firm { background:transparent; }
  .doc-edit > summary { font-size:12px; color:var(--muted); cursor:pointer; list-style:none; }
  .doc-edit > summary::-webkit-details-marker { display:none; }
  .doc-edit > summary::before { content:"✎ "; }
  .doc-edit[open] > summary { color:var(--accent); }
  .doc-edit form { margin-top:8px; }
  .doc-row { margin-bottom:10px; display:flex; flex-direction:column; gap:8px; }
  .doc-main { display:flex; align-items:center; gap:12px; }
  .doc-txt { flex:1; min-width:0; }
  .doc-pick { flex:none; }
  .doc-pick button { margin-top:0; padding:6px 14px; font-size:13px; }
  .doc-row2 { flex-wrap:wrap; align-items:center; justify-content:flex-start; }
  .doc-row2 .doc-kinds { margin-bottom:0; }
  .doc-table .col-name .doc-glyph { margin-right:7px; }
  .doc-table .col-cat, .doc-table .col-contact { color:var(--muted); }
  .doc-postac { display:inline-block; font-size:11px; padding:2px 9px; border-radius:999px; background:var(--card-2); color:var(--muted); white-space:nowrap; }
  @media (max-width:659px){
    .doc-row2 .doc-kinds .cl-tab:not(.active) > span:not(.ic) { display:none; }
    .doc-row2 .seg-mobile { order:1; }
    .doc-row2 .fin-period { order:2; flex:1 1 100%; min-width:0; }
    .doc-row2 .fin-period .fp-dd { flex:1 1 auto; width:auto; min-width:0; }
  }
  .doc-tools { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
  .doc-gen-btn { border-color:var(--accent); color:var(--accent); }
  .doc-st { flex:none; font-size:10px; padding:1px 7px; border-radius:999px; border:1px solid var(--line); text-transform:none; letter-spacing:0; }
  .doc-st-draft { background:var(--card-2); }
  .doc-st-sent { background:rgba(59,130,246,.14); color:#1d4ed8; border-color:transparent; }
  .doc-st-signed { background:rgba(16,185,129,.16); color:#047857; border-color:transparent; }
  .doc-st-rejected { background:rgba(239,68,68,.14); color:#b91c1c; border-color:transparent; }
  :root[data-theme="dark"] .doc-st-sent { color:#93c5fd; }
  :root[data-theme="dark"] .doc-st-signed { color:#6ee7b7; }
  :root[data-theme="dark"] .doc-st-rejected { color:#fca5a5; }
  .tpl-h { margin:6px 0 4px; font-size:19px; }
  .tpl-card .tpl-acts { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:4px; }
  .tpl-card .tpl-del { margin:0 0 0 auto; display:inline-flex; }
  .tpl-card .tpl-del button { display:inline-flex; align-items:center; justify-content:center;
    width:30px; height:30px; margin:0; padding:0; background:transparent; border:1px solid transparent;
    border-radius:999px; color:var(--muted); cursor:pointer; opacity:.6; }
  .tpl-card:hover .tpl-del button { opacity:1; }
  .tpl-card .tpl-del button:hover { background:rgba(239,68,68,.1); border-color:#ef4444; color:#b91c1c; opacity:1; }
  .tpl-card .tpl-del svg { width:15px; height:15px; }
  .tpl-aside { position:sticky; top:12px; }
  .tpl-body { width:100%; min-height:420px; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:13px; line-height:1.6; resize:vertical; }
  .gen-lead { margin:0 0 14px; }
  .gen-src { font-size:11px; text-transform:uppercase; letter-spacing:.04em; }
  .gen-empty { border-color:#e0b200 !important; background:rgba(255,214,0,.07); }
  .gen-chk { display:flex; gap:8px; align-items:flex-start; font-size:13px; margin-top:10px; }
  .gen-chk input { margin-top:2px; }
  .edx-name { flex:0 1 auto; width:14ch; min-width:80px; max-width:min(46vw,520px); margin:0; height:42px;
    padding:0 12px; font-size:17px; font-weight:800;
    letter-spacing:-.02em; background:transparent; border-color:transparent; }
  .edx-name:hover { border-color:var(--line); }
  .edx-name:focus { background:var(--card); border-color:var(--accent); }
  .edx-mirror { position:fixed; left:-9999px; top:0; visibility:hidden; white-space:pre; padding:0; }
  .edx-info { position:relative; flex:none; display:flex; align-items:center; }
  .edx-i { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px;
    flex:none; margin:0; padding:0; border:1px solid var(--line); border-radius:999px;
    background:var(--card); color:var(--muted); box-shadow:var(--shadow); cursor:pointer; }
  .edx-i .ic { display:flex; }
  .edx-i .ic svg { width:18px; height:18px; }
  .edx-i:hover, .edx-info.open .edx-i { background:var(--accent-soft); border-color:var(--accent); color:var(--accent); }
  .edx-ipop { position:absolute; top:100%; left:0; z-index:45; padding-top:8px; width:340px;
    max-width:min(340px,90vw); visibility:hidden; opacity:0; transition:opacity .12s ease; }
  .edx-info:hover .edx-ipop, .edx-info:focus-within .edx-ipop,
  .edx-info.open .edx-ipop { visibility:visible; opacity:1; }
  @media (max-width:900px){
    .edx-ipop { position:fixed; top:var(--tb-h); left:12px; right:12px; width:auto; max-width:none; }
  }
  .edx-icard { display:flex; flex-direction:column; gap:4px; padding:14px; background:var(--card);
    border:1px solid var(--line); border-radius:16px; box-shadow:0 12px 34px rgba(16,12,24,.18); }
  .edx-icard label { font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; color:var(--muted); }
  .edx-icard select, .edx-icard input { width:100%; margin:0 0 6px; }
  .edx-icard form { margin:6px 0 0; padding-top:10px; border-top:1px solid var(--line); }
  .edx-icard form button { margin:0; width:100%; justify-content:center; }
  .edx-sp { flex:1 1 auto; }
  .edx-state { flex:none; font-size:12px; font-weight:600; color:var(--muted); white-space:nowrap; }
  .edx-state.dirty { color:#b45309; }
  .edx-state.err { color:#b91c1c; }
  .edx-act { display:inline-flex; align-items:center; justify-content:center; gap:7px; flex:none; margin:0;
    height:42px; padding:0 16px; border:1px solid var(--line); border-radius:999px; background:var(--card);
    color:var(--text); font:inherit; font-size:13px; font-weight:600; cursor:pointer; box-shadow:var(--shadow); }
  .edx-act:hover { border-color:var(--accent); color:var(--accent); }
  .edx-act.prim { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }
  .edx-act.prim:hover { color:var(--accent-ink); filter:brightness(1.06); }
  .edx-act svg { width:17px; height:17px; }
  @media (max-width:900px){
    .topbar:has(.edx-name):not(:has(.mm-nameform)) { flex-wrap:wrap; row-gap:8px; }
    .topbar:has(.edx-name):not(:has(.mm-nameform)) .topbar-slot { flex:1 1 100%; order:2; }
    .topbar:has(.mm-nameform) .mm-nameform { flex:1 1 60px; }
    .topbar:has(.mm-nameform) .edx-name { flex:1 1 auto; width:auto; max-width:none; }
    .edx-sp { display:none; }
    .edx-name { flex:1 1 60px; }
    .edx-act { width:42px; padding:0; }
    .edx-act-lab { display:none; }
  }
  @media (max-width:520px){ .edx-state { display:none; } }
  .ed-toolwrap { position:sticky; top:var(--tb-h); z-index:19; margin:0 0 16px; padding:0 0 12px;
    background:var(--bg); }
  .ed-bar { display:flex; align-items:center; gap:3px;
    width:fit-content; max-width:100%; padding:4px; margin:0; overflow-x:auto; scrollbar-width:none;
    background:var(--card-2); border:1px solid var(--line); border-radius:999px; }
  .ed-bar::-webkit-scrollbar { display:none; }
  .ed-b { display:inline-flex; align-items:center; justify-content:center; gap:7px; flex:none; margin:0;
    height:32px; min-width:32px; padding:0 14px; font:inherit; font-size:13px; font-weight:600; line-height:1;
    background:transparent; border:0; border-radius:999px; color:var(--muted); cursor:pointer; white-space:nowrap; }
  .ed-b:hover { color:var(--text); }
  .ed-b.on { background:var(--card); color:var(--accent); box-shadow:var(--shadow); }
  .ed-b.ed-ico { width:32px; padding:0; gap:0; }
  .ed-b svg { width:16px; height:16px; flex:none; }
  .ed-b .ed-gl { font-size:14.5px; line-height:1; }
  .ed-size { min-width:112px; color:var(--text); }
  .ed-align-m { display:none; }
  .ed-bar.c1 .ed-o2 { width:32px; padding:0; gap:0; }
  .ed-bar.c1 .ed-o2 .ed-lab { display:none; }
  .ed-bar.c2 .ed-o1 { width:32px; padding:0; gap:0; }
  .ed-bar.c2 .ed-o1 .ed-lab { display:none; }
  .ed-bar.c3 .ed-a { display:none; }
  .ed-bar.c3 .ed-align-m { display:inline-flex; }
  .ed-sheetwrap { display:block; min-width:0; padding-bottom:40px; }
  .ed-paper { width:210mm; max-width:100%; margin:0 auto; background:#fff; color:#111;
    border:1px solid var(--line); border-radius:8px; padding:20mm; min-height:297mm;
    box-shadow:0 2px 18px rgba(16,12,24,.13); }
  .ed-doc { min-height:calc(297mm - 40mm - 20px); outline:none; color:#111; overflow-wrap:break-word;
    font:10.5pt/1.5 "Liberation Serif","Times New Roman",Times,serif; }
  .ed-doc:focus { outline:none; }
  :root[data-theme="dark"] .ed-paper { background:#fff; }
  @media (max-width:900px){
    .ed-paper { width:auto; max-width:100%; margin:0; padding:18px 14px; border-radius:12px;
      min-height:60vh; }
    .ed-doc { min-height:56vh; font-size:12.5pt; }
  }
  .edx-fab { position:fixed; right:24px; bottom:24px; z-index:40; margin:0; border:1px solid var(--line);
    background:var(--card); color:var(--accent); box-shadow:var(--shadow);
    transition:right .18s ease, bottom .16s ease, opacity .14s ease, transform .14s ease; }
  .edx-fab:hover { border-color:var(--accent); filter:none; }
  .edx-fab .ic svg { width:24px; height:24px; }
  @media (max-width:600px){ .edx-fab { right:16px; bottom:16px; } }
  :root { --edock-w:320px; }
  .ed-dock { position:fixed; z-index:44; top:var(--tb-h); right:0; bottom:0; left:0; display:flex;
    visibility:hidden; opacity:0; transform:translateX(14px);
    transition:opacity .18s ease, transform .18s ease, visibility .18s; }
  .ed-dock.open { visibility:visible; opacity:1; transform:none; }
  .ed-side { flex:1; min-width:0; min-height:0; display:flex; flex-direction:column;
    background:var(--card); border:1px solid var(--line); border-radius:16px; overflow:hidden;
    box-shadow:0 10px 34px rgba(16,12,24,.16); }
  @media (min-width:1000px){
    .ed-dock { left:auto; width:calc(var(--edock-w) + var(--dock-gap) * 2);
      padding:6px var(--dock-gap) var(--dock-gap) var(--dock-gap); }
    .content:has(.ed-dock.open) { padding-right:calc(var(--edock-w) + var(--dock-gap) * 2); }
    .shell:has(.ed-dock.open) .edx-fab,
    .shell:has(.ed-dock.open) .ai-fab { right:calc(var(--edock-w) + var(--dock-gap) * 2); }
  }
  @media (max-width:999px){
    .ed-side { border-radius:0; border-left:0; border-right:0; border-bottom:0; }
    .shell:has(.ed-dock.open) .edx-fab, .shell:has(.ed-dock.open) .ai-fab { opacity:0; pointer-events:none; }
  }
  .edf-head { display:flex; align-items:center; gap:8px; padding:14px 14px 10px; border-bottom:1px solid var(--line); }
  .edf-head strong { flex:1; min-width:0; }
  .edf-x { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; margin:0;
    flex:none; border:1px solid var(--line); border-radius:999px; background:var(--card); color:var(--muted); cursor:pointer; }
  .edf-x:hover { border-color:var(--accent); color:var(--accent); }
  .edf-x svg { width:16px; height:16px; }
  .edf-body { flex:1; min-height:0; overflow:auto; padding:12px 14px 24px; }
  .edf-hint { font-size:12px; margin:0 0 10px; }
  .edf-search { width:100%; margin:0 0 8px; }
  .edf-own { width:100%; margin:0 0 4px; justify-content:center; }
  .edf-grp-t { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em;
    color:var(--muted); margin:14px 0 7px; }
  .edf-list { display:flex; flex-wrap:wrap; gap:6px; }
  .edf-item { margin:0; padding:5px 11px; font:inherit; font-size:12.5px; border-radius:999px;
    background:var(--card-2); border:1px solid transparent; color:var(--text); cursor:pointer; text-align:left; }
  .edf-item:hover { border-color:var(--accent); color:var(--accent); }
  .ed-menu { position:absolute; z-index:60; min-width:230px; max-width:300px; max-height:320px; overflow:auto;
    background:var(--card); border:1px solid var(--line); border-radius:12px; padding:5px;
    box-shadow:0 10px 30px rgba(16,12,24,.18); }
  .ed-mi { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; margin:0;
    padding:7px 10px; background:transparent; border:0; border-radius:8px; color:var(--text);
    font:inherit; font-size:13px; text-align:left; cursor:pointer; }
  .ed-mi em { font-style:normal; font-size:11px; color:var(--muted); }
  .ed-mi.on, .ed-mi:hover { background:var(--accent); color:var(--accent-ink); }
  .ed-mi.on em, .ed-mi:hover em { color:rgba(255,255,255,.75); }
  .ed-mi-h1 { font-size:17px; font-weight:800; }
  .ed-mi-h2 { font-size:14.5px; font-weight:700; }
  .ed-mi-h3 { font-size:13.5px; font-weight:700; }
  .ed-mi-mono { font-family:ui-monospace,Consolas,monospace; font-size:12.5px; }
  .ed-mi-small { font-size:11.5px; }
  .ed-menu-row { display:flex; gap:2px; padding:2px; }
  .ed-menu-row button { display:inline-flex; align-items:center; justify-content:center; width:38px; height:34px;
    margin:0; background:transparent; border:0; border-radius:8px; color:var(--text); cursor:pointer; }
  .ed-menu-row button:hover, .ed-menu-row button.on { background:var(--accent); color:var(--accent-ink); }
  .ed-menu-row svg { width:17px; height:17px; }
  .ed-own { display:flex; flex-direction:column; gap:8px; padding:12px; }
  .ed-own label { font-size:12px; color:var(--muted); }
  .ed-own input { width:100%; }
  .ed-own button { margin:0; }
  .ed-tab { min-width:0; width:max-content; max-width:none; }
  .ed-grid { display:grid; grid-template-columns:repeat(8,20px); gap:3px; padding:6px 6px 2px; }
  .ed-grid i { width:20px; height:16px; border:1px solid var(--line); border-radius:3px; background:var(--card-2); cursor:pointer; }
  .ed-grid i.on { background:var(--accent); border-color:var(--accent); }
  .ed-grid-lab { font-size:11.5px; font-weight:600; color:var(--muted); padding:3px 7px 7px; }
  .ed-tab-own { display:flex; align-items:center; gap:6px; padding:8px 6px 3px; border-top:1px solid var(--line); }
  .ed-tab-own input { width:92px; margin:0; padding:6px 10px; font-size:12.5px; border-radius:999px; }
  .ed-tab-own button { flex:none; margin:0; padding:7px 13px; font-size:12.5px; border-radius:999px; }
  .ed-ctx { min-width:214px; max-width:260px; max-height:min(440px,80vh); }
  .ed-ctx-t { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em;
    color:var(--muted); padding:7px 10px 5px; }
  .ed-ctx-seg { display:flex; margin:0 5px 5px; padding:3px; }
  .ed-ctx-seg > button { flex:1; height:28px; padding:0; font-size:12px; }
  .ed-ctx-i { display:flex; align-items:center; gap:8px; width:100%; margin:0; padding:7px 16px;
    background:transparent; border:0; border-radius:999px; color:var(--text); font:inherit; font-size:13px;
    font-weight:500; text-align:left; cursor:pointer; }
  .ed-ctx-i:hover { background:var(--accent); color:var(--accent-ink); }
  .ed-ctx-i.danger { color:#b91c1c; }
  .ed-ctx-i.danger:hover { background:#b91c1c; color:#fff; }
  .ed-ctx-hr { height:1px; margin:5px 7px; background:var(--line); }
  :root[data-theme="dark"] .badge.proj-stbadge-planned { background:rgba(148,163,184,.18); color:#cbd5e1; }
  :root[data-theme="dark"] .badge.proj-stbadge-active { background:rgba(59,130,246,.15); color:#93c5fd; }
  :root[data-theme="dark"] .badge.proj-stbadge-done { background:rgba(16,185,129,.15); color:#6ee7b7; }
  :root[data-theme="dark"] .proj-fin-income { color:#6ee7b7; }
  :root[data-theme="dark"] .proj-fin-cost { color:#fca5a5; }
  .svc-layout { display:grid; grid-template-columns:1fr; gap:24px; }
  @media (min-width:900px) { .svc-layout { grid-template-columns:1fr 1fr; } }
  .svc-list { display:flex; flex-direction:column; gap:8px; margin-bottom:14px; }
  .svc-row { display:grid; grid-template-columns:1fr 70px 80px auto auto auto; gap:8px; align-items:center; padding:8px 10px; }
  .svc-row input[name="duration_min"], .svc-row input[name="price"] { text-align:center; }
  .svc-active { display:flex; align-items:center; gap:5px; font-size:12px; white-space:nowrap; }
  .svc-add-row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
  .svc-add-row input { flex:1 1 auto; min-width:0; }
  .svc-add-row button { flex:0 0 auto; margin-top:0; }
  .bk-wrap { max-width:560px; margin:0 auto; padding:24px 16px 40px; }
  .bk-card { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:var(--pad-card); }
  .bk-head { display:flex; flex-direction:column; gap:2px; margin-bottom:18px; padding-bottom:14px; border-bottom:1px solid var(--line); }
  .bk-brand { font-size:20px; font-weight:700; }
  .bk-sub { font-size:13px; color:var(--muted); }
  .bk-step { font-size:12.5px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); margin:16px 0 8px; }
  .bk-services { display:flex; flex-direction:column; gap:8px; }
  .bk-service { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 14px; border:1px solid var(--line); border-radius:11px; text-decoration:none; color:inherit; }
  .bk-service:hover, .bk-service.sel { border-color:var(--accent,#3b82f6); background:var(--card-2); }
  .bk-service-name { font-weight:600; }
  .bk-selected { margin:10px 0 4px; font-weight:600; }
  .bk-days { display:flex; flex-direction:column; gap:12px; margin-bottom:6px; }
  .bk-day-label { font-size:13px; font-weight:600; margin-bottom:6px; text-transform:capitalize; }
  .bk-slots { display:flex; flex-wrap:wrap; gap:7px; }
  .bk-slot { position:relative; }
  .bk-slot input { position:absolute; opacity:0; inset:0; cursor:pointer; }
  .bk-slot span { display:block; padding:7px 12px; border:1px solid var(--line); border-radius:8px; font-size:13px; cursor:pointer; }
  .bk-slot input:checked + span { background:var(--accent,#3b82f6); color:#fff; border-color:var(--accent,#3b82f6); }
  .bk-form { display:flex; flex-direction:column; }
  .bk-form input, .bk-form textarea { margin-bottom:10px; }
  .bk-consent { display:flex; align-items:flex-start; gap:8px; font-size:12.5px; color:var(--muted); margin:4px 0 14px; }
  .bk-btn { display:inline-block; text-align:center; padding:12px 18px; background:var(--accent,#3b82f6); color:#fff; border:0; border-radius:10px; font:inherit; font-weight:600; cursor:pointer; text-decoration:none; }
  .bk-btn:hover { filter:brightness(1.05); }
  .bk-ok { text-align:center; padding:14px 0; }
  .bk-ok-mark { width:54px; height:54px; margin:0 auto 12px; border-radius:50%; background:#10b981; color:#fff; font-size:28px; line-height:54px; }
  .bk-err { background:rgba(239,68,68,.1); color:#b91c1c; border:1px solid rgba(239,68,68,.3); padding:12px 14px; border-radius:10px; margin-bottom:14px; }
  .bk-foot { text-align:center; font-size:11.5px; margin-top:14px; }
  .set-dict { padding:4px 6px; margin:0 0 12px; }
  .set-dict-row { display:flex; align-items:center; gap:8px; margin:0; padding:7px 6px; border-top:1px solid var(--line); }
  .set-dict-row:first-child { border-top:0; }
  .set-dict-row input[name="name"] { flex:1 1 auto; min-width:0; margin:0; background:transparent; border-color:transparent; font-weight:600; }
  .set-dict-row input[name="name"]:hover { border-color:var(--line); }
  .set-dict-row input[name="name"]:focus { background:var(--card); border-color:var(--accent); }
  .set-dict-n { flex:0 0 auto; min-width:26px; text-align:center; font-size:12px; font-variant-numeric:tabular-nums; }
  .set-dict-add { max-width:440px; margin:0; }
  label.wh-toggle, span.wh-toggle, form label.wh-toggle, form span.wh-toggle {
    flex:none; display:inline-flex; align-items:center; margin:0; cursor:pointer; position:relative; }
  .wh-toggle input { position:absolute; opacity:0; pointer-events:none; }
  .wh-switch { flex:none; width:38px; height:22px; border-radius:999px; background:var(--line); position:relative; transition:background .15s ease; }
  .wh-switch::after { content:""; position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.3); transition:transform .15s ease; }
  .wh-toggle input:checked + .wh-switch { background:var(--accent); }
  .wh-toggle input:checked + .wh-switch::after { transform:translateX(16px); }
  .wh-toggle input:focus-visible + .wh-switch { outline:2px solid var(--accent-soft); outline-offset:2px; }
  .wh-toggle input:disabled + .wh-switch { opacity:.45; cursor:not-allowed; }
  .wh-toggle.ok input:checked + .wh-switch { background:#10b981; }
  .wh-toggle.ok input:focus-visible + .wh-switch { outline:2px solid rgba(16,185,129,.4); }
  .swrow .wh-on { display:none; }
  .swrow:has(input:checked) .wh-on { display:inline; }
  .swrow:has(input:checked) .wh-off { display:none; }
  .mod-group + .mod-group { margin-top:18px; }
  .mod-group-title { margin:0 0 2px; padding:0 2px; font-size:11.5px; font-weight:700;
                     text-transform:uppercase; letter-spacing:.06em; color:var(--muted);
                     display:flex; align-items:baseline; gap:8px; }
  .mod-group-title .meta { margin-left:auto; font-weight:600; letter-spacing:0; text-transform:none; }
  .mod-row { display:flex; align-items:center; gap:14px; margin:0; padding:11px 2px; }
  .mod-row + .mod-row { border-top:1px solid var(--line); }
  .mod-tx { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px; }
  .mod-tx strong { font-size:14.5px; font-weight:600; }
  .mod-tx .muted { font-size:12.5px; line-height:1.45; }
  .mod-row .wh-toggle { flex:none; }
  .mod-list { padding-bottom:6px; }
  .lw-toggle { display:flex; gap:4px; padding:4px; margin:0 0 18px; border:1px solid var(--line);
               border-radius:999px; background:var(--card-2); }
  .lw-toggle .lw-tog { flex:1; position:relative; display:flex; align-items:center; justify-content:center;
                       margin:0; padding:9px 6px; border-radius:999px; font-size:13.5px; font-weight:600;
                       color:var(--muted); cursor:pointer; transition:background .16s ease, color .16s ease; }
  .lw-tog input { position:absolute; opacity:0; width:0; height:0; pointer-events:none; }
  .lw-tog:hover { color:var(--text); }
  .lw-tog:has(input:checked) { background:var(--card); color:var(--accent); box-shadow:0 1px 3px rgba(0,0,0,.10); }
  .lw-tog:has(input:focus-visible) { outline:2px solid var(--accent-soft); outline-offset:2px; }
  .lw-pane { display:none; animation:lwIn .18s ease; }
  @keyframes lwIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }
  .pk-wrap{margin:2px 0 0}
  .pk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:9px}
  .pk-tile{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;
    padding:11px 13px;border:1.5px solid var(--line);border-radius:14px;background:var(--card);
    color:var(--text);text-align:left;cursor:pointer;transition:border-color .12s,background .12s,color .12s}
  .pk-tile:hover{box-shadow:0 0 0 3px var(--accent-soft)}
  .pk-top{display:flex;align-items:center;gap:8px;width:100%}
  .pk-nm{font-size:13.5px;font-weight:700;line-height:1.25}
  .pk-lv{font-size:12.5px;font-weight:700}
  .pk-n{font-size:11px;color:var(--muted);font-weight:400;line-height:1.4}
  .pk-dots{display:flex;gap:3px;margin-left:auto;flex:none}
  .pk-dots i{width:5px;height:5px;border-radius:50%;background:var(--line)}
  .pk-tile[data-lvl="1"] .pk-dots i:nth-child(1),
  .pk-tile[data-lvl="2"] .pk-dots i:nth-child(-n+2),
  .pk-tile[data-lvl="3"] .pk-dots i{background:currentColor}
  .pk-wrap{--pk1:#2563eb;--pk1b:rgba(37,99,235,.10);--pk1t:#1d4ed8;
    --pk2:#047857;--pk2b:rgba(4,120,87,.10);--pk2t:#047857}
  :root[data-theme="dark"] .pk-wrap{--pk1b:rgba(96,165,250,.16);--pk1t:#93c5fd;
    --pk2b:rgba(52,211,153,.16);--pk2t:#6ee7b7}
  @media (prefers-color-scheme:dark){
    :root:not([data-theme="light"]) .pk-wrap{--pk1b:rgba(96,165,250,.16);--pk1t:#93c5fd;
      --pk2b:rgba(52,211,153,.16);--pk2t:#6ee7b7}
  }
  .pk-tile[data-lvl="0"] .pk-lv{color:var(--muted)}
  .pk-tile[data-lvl="1"]{border-color:var(--pk1);background:var(--pk1b)}
  .pk-tile[data-lvl="1"] .pk-lv,.pk-tile[data-lvl="1"] .pk-dots{color:var(--pk1t)}
  .pk-tile[data-lvl="2"]{border-color:var(--pk2);background:var(--pk2b)}
  .pk-tile[data-lvl="2"] .pk-lv,.pk-tile[data-lvl="2"] .pk-dots{color:var(--pk2t)}
  .pk-tile[data-lvl="3"]{border-color:var(--accent);background:var(--accent-soft)}
  .pk-tile[data-lvl="3"] .pk-lv,.pk-tile[data-lvl="3"] .pk-dots{color:var(--accent)}
  .pk-adds{display:flex;flex-direction:column;gap:8px}
  .pk-add{flex-direction:row;align-items:center;gap:12px}
  .pk-add-t{display:flex;flex-direction:column;gap:2px;min-width:0;text-align:left}
  .pk-add .pk-lv{flex:none;margin-left:auto;padding:4px 12px;border-radius:999px;background:var(--card-2);
    font-size:12px;white-space:nowrap}
  .pk-add[data-lvl="3"] .pk-lv{background:var(--accent);color:#fff}
  .pk-sep{margin:16px 0 8px;font-size:11px;font-weight:800;letter-spacing:.03em;
    text-transform:uppercase;color:var(--muted)}
  .pk-stan{margin:12px 0 0;font-size:12.5px}
  .pk-ns{font-size:12.5px;margin:8px 0 0}
  .mod-box:has(.mod-mode input[value="pak"]:checked) .mod-pane[data-mode="pak"] { display:block; }
  .mod-box:has(.mod-mode input[value="adv"]:checked) .mod-pane[data-mode="adv"] { display:block; }
  .mod-mode { margin:0 0 14px; }
  .pkg-soon { display:inline-flex; align-items:center; gap:5px; padding:2px 8px; border-radius:999px;
              background:var(--color-amber-light); color:#3a2a05; font-size:11px; font-weight:700;
              text-transform:uppercase; letter-spacing:.04em; }
  .pkg-lim { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:10px 2px; }
  .pkg-lim input { width:110px; }
  .adm-feed, .adm-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
  .adm-feed li { display:grid; grid-template-columns:auto 1fr auto; align-items:baseline; gap:10px;
                 padding:8px 2px; font-size:13.5px; }
  .adm-feed li + li, .adm-list li + li { border-top:1px solid var(--line); }
  .adm-feed-when { white-space:nowrap; font-size:12px; }
  .adm-feed-what { min-width:0; overflow:hidden; text-overflow:ellipsis; }
  .adm-feed-who { white-space:nowrap; font-size:12px; }
  .adm-list li { padding:9px 2px; font-size:13.5px; }
  .adm-list .meta { display:block; margin-top:2px; font-size:12px; overflow-wrap:anywhere; }
  .adm-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
  .adm-row .meta { display:inline; margin:0; }
  .adm-row .adm-row-a { margin-left:auto; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  .adm-row .badge { background:var(--card-2); color:var(--muted); }
  .adm-row-a .btn-pill { margin:0; padding:7px 16px; font-size:13px; }
  .adm-key { font-family:monospace; font-size:13px; overflow-wrap:anywhere; }
  .adm-danger { border-color:#ef4444; }
  .adm-danger .rzd-head strong { color:#ef4444; }
  .adm-linked { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
  .adm-due { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; padding:10px 12px;
             background:var(--card-2); border:1px solid var(--line); border-radius:var(--radius); }
  .adm-due strong { font-size:22px; font-weight:700; }
  .adm-due.warn strong { color:#b45309; }
  .adm-due .muted { font-size:12.5px; }
  .adm-meta { display:flex; flex-wrap:wrap; gap:22px; }
  .adm-meta > span { display:flex; flex-direction:column; gap:2px; font-size:13.5px; }
  .adm-meta code { font-family:monospace; font-size:13px; }
  @media (max-width:560px) {
    .adm-feed li { grid-template-columns:1fr auto; row-gap:2px; }
    .adm-feed-what { grid-column:1 / -1; order:3; }
  }
  .lsrc-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:10px; }
  .lsrc-pill { display:flex; align-items:center; gap:5px; margin:0; padding:5px 6px 5px 10px;
               background:var(--card); border:1px solid var(--line); border-radius:999px; box-shadow:var(--shadow); }
  .lsrc-pill:focus-within { border-color:var(--accent); }
  .lsrc-name { flex:1 1 auto; min-width:0; margin:0; padding:6px 9px; font-size:14px; font-weight:600;
               background:transparent; border:1px solid transparent; border-radius:999px; }
  .lsrc-name:hover { border-color:var(--line); }
  .lsrc-name:focus { background:var(--card); border-color:var(--accent); }
  .lsrc-n { flex:none; min-width:24px; padding:2px 8px; text-align:center; font-size:12px; font-weight:700;
            font-variant-numeric:tabular-nums; color:var(--muted); background:var(--card-2); border-radius:999px; }
  .lsrc-btn { flex:none; margin:0; width:30px; height:30px; padding:0; border-radius:50%;
              background:transparent; color:var(--muted); border:1px solid var(--line); }
  .lsrc-btn:hover { filter:none; border-color:var(--accent); color:var(--accent); }
  .lsrc-btn .ic svg { width:16px; height:16px; }
  .lsrc-del:hover { background:rgba(239,68,68,.12); color:#ef4444; border-color:#ef4444; }
  .lsrc-add { background:transparent; border-style:dashed; box-shadow:none; }
  .cl-next-now { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
  .cl-next-t { font-weight:650; }
  .cl-next-w { font-size:12.5px; font-variant-numeric:tabular-nums; }
  .cl-next, .cl-lost { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0; }
  .cl-next input[name="next_action"], .cl-lost input[name="lost_note"] { flex:1 1 220px; min-width:0; margin:0; }
  .cl-next input[type="datetime-local"] { flex:0 0 auto; margin:0; }
  .cl-lost select { flex:0 0 auto; margin:0; }
  .cl-next-quick { display:flex; gap:6px; flex-wrap:wrap; }
  .cl-next-quick .dd-btn { width:auto; height:auto; padding:7px 14px; font-size:12.5px; white-space:nowrap; }
  .cl-next-done { margin:10px 0 0; }
  .msg-chip.nx-over { background:rgba(239,68,68,.14); color:#ef4444; }
  .msg-chip.nx-today { background:rgba(245,158,11,.16); color:#b45309; }
  :root[data-theme="dark"] .msg-chip.nx-today { color:#fbbf24; }
  @media (prefers-color-scheme:dark) { :root:not([data-theme="light"]) .msg-chip.nx-today { color:#fbbf24; } }
  .ai-draft { margin:4px 0 0; padding:10px 12px; background:var(--card-2); border-radius:12px; }
  .ai-draft-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
  .ai-draft-i { flex:1 1 240px; min-width:0; margin:0; }
  .ai-draft-b { flex:none; white-space:nowrap; }
  .ai-draft-b .ic svg { width:15px; height:15px; }
  .ai-draft-h { margin:8px 0 0; font-size:12.5px; }
  .imp-check { display:flex; align-items:center; gap:8px; margin:2px 0 10px; font-size:13.5px; }
  .imp-check input { margin:0; width:auto; }
  .imp-stats { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:6px; }
  .tl-box { display:flex; flex-direction:column; }
  .tl { position:relative; display:flex; flex-direction:column; }
  .tl::before { content:""; position:absolute; left:15px; top:14px; bottom:14px; width:2px; background:var(--line); }
  .tl-row { position:relative; display:grid; grid-template-columns:32px 1fr auto; align-items:center; gap:10px;
            padding:7px 8px; border-radius:10px; text-decoration:none; color:inherit; }
  a.tl-row:hover { background:var(--card-2); }
  .tl-dot { position:relative; z-index:1; display:grid; place-items:center; width:32px; height:32px;
            border-radius:50%; background:var(--card); border:2px solid var(--line); color:var(--muted); }
  .tl-dot .ic svg { width:15px; height:15px; }
  .tl-body { min-width:0; display:flex; flex-direction:column; gap:1px; }
  .tl-t { font-size:13.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .tl-s { font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .tl-when { font-size:12px; font-variant-numeric:tabular-nums; white-space:nowrap; }
  .tl-in .tl-dot { border-color:var(--accent); color:var(--accent); }
  .tl-pay .tl-dot { border-color:#16a34a; color:#16a34a; }
  .tl-won .tl-dot { border-color:#16a34a; color:#16a34a; }
  .tl-lost .tl-dot { border-color:#ef4444; color:#ef4444; }
  .tl-future { opacity:.72; }
  .tl-future .tl-dot { border-style:dashed; }
  .tl-next .tl-dot { border-color:#f59e0b; color:#f59e0b; }
  @media (max-width:560px) {
    .tl-row { grid-template-columns:32px 1fr; }
    .tl-when { grid-column:2; justify-self:start; }
  }
  .kc-msg-att { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
  .kc-att { display:inline-flex; align-items:center; gap:6px; max-width:100%; padding:5px 12px 5px 9px;
            font-size:12.5px; text-decoration:none; color:inherit;
            background:var(--card-2); border:1px solid var(--line); border-radius:999px; }
  .kc-att:hover { border-color:var(--accent); color:var(--accent); }
  .kc-att .ic svg { width:14px; height:14px; }
  .kc-att-n { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
  .kc-att-s { flex:none; font-variant-numeric:tabular-nums; }
  .mt-sig { margin:0 0 14px; }
  .mt-sig:last-child { margin-bottom:0; }
  .mt-wrap { display:flex; flex-direction:column; gap:12px; }
  .mt-bar { display:flex; justify-content:flex-end; }
  .mt-list { display:flex; flex-direction:column; gap:6px; }
  .mt-row { display:flex; align-items:center; gap:12px; padding:10px 14px; text-decoration:none; color:inherit;
            background:var(--card); border:1px solid var(--line); border-radius:14px; }
  .mt-row:hover { border-color:var(--accent); }
  .mt-row.active { border-color:var(--accent); background:var(--card-2); }
  .mt-row-main { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px; }
  .mt-row-t { font-weight:650; font-size:14px; }
  .mt-row-s { font-size:12.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .mt-row-tags { flex:none; display:flex; gap:6px; align-items:center; }
  .mt-edit { display:flex; flex-direction:column; gap:12px; }
  .mt-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; }
  .mt-pal { display:flex; flex-direction:column; gap:8px; padding:12px; background:var(--card-2); border-radius:14px; }
  .mt-pal-g { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
  .mt-pal-t { flex:0 0 100%; font-size:12px; text-transform:uppercase; letter-spacing:.04em; }
  .mt-chip { margin:0; padding:4px 11px; font-size:12.5px; font-weight:600; color:var(--muted);
             background:var(--card); border:1px solid var(--line); border-radius:999px; }
  .mt-chip:hover { filter:none; border-color:var(--accent); color:var(--accent); }
  .wh-wrap { max-width:760px; }
  .wh-who-row { display:flex; align-items:center; gap:10px; margin:0 0 14px; flex-wrap:wrap; }
  .wh-who-l { flex:none; font-size:13px; color:var(--muted); }
  .wh-who { margin:0; flex:0 1 360px; min-width:0; padding:9px 16px; border-radius:999px; }
  .wh-form { margin:0; }
  .wh-grid { display:flex; flex-direction:column; gap:8px; }
  .wh-day { display:flex; align-items:center; gap:10px; min-height:48px; padding:7px 7px 7px 12px;
            background:var(--card); border:1px solid var(--line); border-radius:999px; box-shadow:var(--shadow); }
  .wh-name { flex:0 0 auto; min-width:92px; font-weight:600; font-size:13.5px; }
  .wh-state { flex:1 1 auto; min-width:0; font-size:12.5px; color:var(--muted); }
  .wh-times { flex:none; display:inline-flex; align-items:center; gap:6px; }
  .wh-t input[type="time"] { width:auto; margin:0; height:34px; padding:0 14px 0 32px; font-size:13.5px;
                             border-radius:999px; font-variant-numeric:tabular-nums; }
  .wh-t .cal-ico-b { left:7px; width:22px; height:22px; }
  .wh-t .cal-ico-b svg { width:15px; height:15px; }
  .wh-dash { color:var(--muted); }
  .wh-day:not(:has(input:checked)) { background:var(--card-2); box-shadow:none; }
  .wh-day:not(:has(input:checked)) .wh-times { visibility:hidden; }
  .wh-bar { display:flex; align-items:center; gap:10px; margin-top:16px; }
  .wh-bar button { margin:0; }
  .wh-bar .btn-pill { margin-left:auto; }
  .wh-copy { display:inline-flex; align-items:center; gap:7px; padding:8px 14px; border:1px dashed var(--line);
             border-radius:999px; background:none; color:var(--muted); font:inherit; font-size:13px; cursor:pointer; }
  .wh-copy .ic svg { width:15px; height:15px; }
  .wh-copy:hover { border-color:var(--accent); color:var(--accent); filter:none; }
  @media (max-width:640px){
    .wh-day { gap:6px; padding:7px 7px 7px 10px; }
    .wh-dash { margin:0 -1px; }
    .wh-name { flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .wh-state { flex:none; order:2; margin-left:auto; }
    .wh-day:has(input:checked) .wh-state { display:none; }
    .wh-times { order:3; flex:0 1 auto; min-width:0; gap:4px; padding-left:0; }
    .wh-t { flex:0 1 auto; min-width:0; }
    .wh-name { flex:1 1 auto; }
    .wh-t .cal-ico-b { display:none; }
    .wh-t input[type="time"] { width:auto; padding:0 6px; font-size:13px; text-align:center; }
    .wh-t input[type="time"]::-webkit-calendar-picker-indicator { display:none; }
    .wh-day:not(:has(input:checked)) .wh-times { display:none; }
    .wh-bar { flex-wrap:wrap; }
    .wh-bar .btn-pill { width:100%; margin-left:0; }
  }
  .dz-y { --dz:#dc2626; --dz-bg:rgba(220,38,38,.13); }
  .dz-o { --dz:#2563eb; --dz-bg:rgba(37,99,235,.13); }
  .dz-m { --dz:#7c3aed; --dz-bg:rgba(124,58,237,.13); }
  .dz-wrap { max-width:760px; margin:0; }
  .dz-group { margin:0 0 12px; }
  .dz-group-t { display:block; font-size:12.5px; font-weight:600; color:var(--dz); margin-bottom:6px; }
  .dz-chips { display:flex; flex-wrap:wrap; gap:6px; }
  .dz-chip { display:inline-flex; align-items:center; gap:8px; padding:5px 6px 5px 12px; font-size:12.5px;
             border:1px solid var(--dz); background:var(--dz-bg); color:var(--dz); border-radius:999px; }
  .dz-chip-d { font-weight:700; font-variant-numeric:tabular-nums; }
  .dz-chip-t { color:var(--text); }
  .dz-chip-x { margin:0; padding:0; width:20px; height:20px; display:inline-flex; align-items:center; justify-content:center;
               background:none; border:0; color:inherit; border-radius:50%; cursor:pointer; }
  .dz-chip-x:hover { background:var(--dz); color:#fff; filter:none; }
  .dz-chip-x svg { width:12px; height:12px; }
  .dz-bar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:6px; }
  .dz-bar .btn-pill, .dz-bar button { margin:0; display:inline-flex; align-items:center; gap:7px; text-decoration:none; }
  .dz-add { background:var(--accent); color:var(--accent-ink); }
  .dz-add:hover { color:var(--accent-ink); text-decoration:none; filter:brightness(1.06); }
  .dz-ghost { background:transparent; border:1px solid var(--line); color:var(--muted); }
  .dz-ghost:hover { border-color:var(--accent); color:var(--accent); filter:none; }
  .dz-kal { margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }
  .dz-pills { display:flex; flex-wrap:wrap; gap:6px; }
  .dz-pill { display:inline-flex; align-items:center; gap:7px; padding:7px 14px; border-radius:999px;
             border:1px solid var(--line); background:var(--card); font-size:12.5px; font-weight:600;
             color:var(--muted); text-decoration:none; }
  .dz-pill:hover { border-color:var(--dz); color:var(--dz); text-decoration:none; }
  .dz-pill.active { border-color:var(--dz); background:var(--dz-bg); color:var(--dz); }
  .dz-dot { width:9px; height:9px; border-radius:50%; background:var(--dz); flex:none; }
  .dz-nazwa { display:flex; align-items:center; gap:8px; margin:10px 0 0; }
  .dz-nazwa input { margin:0; flex:0 1 280px; min-width:0; padding:8px 14px; border-radius:999px; font-size:13px; }
  .dz-head { display:flex; align-items:center; gap:8px; margin:14px 0 10px; }
  .dz-tytul { font-weight:700; font-size:15px; }
  .dz-nav { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; flex:none;
            border:1px solid var(--line); border-radius:999px; color:var(--muted); text-decoration:none; }
  .dz-nav:hover { border-color:var(--accent); color:var(--accent); text-decoration:none; }
  .dz-nav svg { width:16px; height:16px; }
  .dz-widok { margin-left:auto; font-size:12.5px; }
  .dz-dows { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; margin-bottom:4px; }
  .dz-dows span { text-align:center; font-size:11.5px; color:var(--muted); }
  .dz-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
  .dz-d { display:flex; align-items:center; justify-content:center; height:40px; margin:0; padding:0;
          border:1px solid var(--line); border-radius:10px; background:var(--card); color:var(--text);
          font:inherit; font-size:13px; font-weight:600; cursor:pointer; }
  .dz-d:hover { border-color:var(--accent); color:var(--accent); filter:none; }
  .dz-d.dz-on { background:var(--dz-bg); border-color:var(--dz); color:var(--dz); }
  .dz-d.dz-on:hover { filter:none; opacity:.75; }
  .dz-dzis { box-shadow:inset 0 0 0 2px var(--accent); }
  .dz-pusto { border-color:transparent; background:none; cursor:default; }
  .dz-mies { max-width:520px; }
  .dz-rok { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:16px; }
  .dz-rok-t { display:block; font-weight:600; font-size:13px; margin-bottom:6px; }
  .dz-d.dz-mini { height:24px; font-size:11px; border-radius:6px; }
  .dz-grid.dz-mini, .dz-dows.dz-mini { gap:2px; }
  @media (max-width:640px){
    .dz-d { height:34px; }
    .dz-rok { grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); }
    .dz-nazwa input { flex:1 1 100%; }
  }
  .cat-seed { display:none; }
  .cat-hint-on { display:none; }
  .svc-form:has(input[name="mode"][value="free"]:checked) .cat-seed-free,
  .svc-form:has(input[name="mode"][value="linked"]:checked) .cat-seed-linked { display:block; }
  .svc-form:has(input[name="mode"][value="none"]:checked) .cat-hint-none { display:block; }
  .svc-form:not(:has(input[name="mode"][value="none"]:checked)) .cat-hint-none { display:none; }
  .svc-form:not(:has(input[name="mode"][value="none"]:checked)) .cat-hint-on { display:block; }
  .cpipe-seed { margin:0; padding:8px 13px; font-size:13.5px; border-radius:999px; background:var(--card); }
  form label.cpipe-add-lbl { display:inline-flex; align-items:center; justify-content:center; margin:0 0 0 auto; }
  .set-switch-card { display:flex; flex-direction:column; gap:10px; margin:0; }
  .set-switch-foot { display:flex; align-items:center; gap:10px; }
  .set-switch-foot:empty { display:none; }
  .aud-box { display:flex; flex-direction:column; gap:14px; }
  .aud-bar { margin-bottom:2px; }
  .aud-bar .search-box { max-width:340px; }
  .lead-table.aud-table .col-date { width:13%; }
  .lead-table.aud-table .col-name { width:17%; }
  .lead-table.aud-table .col-cat { width:18%; }
  .lead-table.aud-table .col-status { width:14%; }
  .lead-table.aud-table .col-detail { width:38%; }
  @media (max-width:600px){
    .lead-table.aud-table .col-name, .lead-table.aud-table .col-status { display:none; }
    .lead-table.aud-table .col-date { width:26%; }
    .lead-table.aud-table .col-cat { width:30%; }
    .lead-table.aud-table .col-detail { width:44%; }
  }
  .lead-toolbar:has(.fin-period) .fp-range { display:none; }
  .lead-toolbar:has(.fin-period) .fin-period { flex:0 1 auto; min-width:0; }
  .lead-toolbar:has(.fin-period) .search-box { flex:1 1 150px; min-width:110px; max-width:260px; }
  @media (min-width:861px){ .lead-toolbar:has(.fin-period) .lt-row1 .search-box { flex:1 1 220px; max-width:var(--srch-max); } }
  .lt-search { display:contents; }
  .lt-search-mobile { display:none; }
  .lead-toolbar:has(.fin-period) .lt-row1 .search-box { min-width:180px; }
  @media (max-width:1130px){
    .main:has(.lt-row2 .lt-search-mobile) .lt-search-desktop { display:none; }
    .lt-row2:has(.lt-search-mobile) .lt-search-mobile { display:contents; }
  }
  @media (min-width:861px) and (max-width:1130px){
    .lt-row2:has(.lt-search-mobile) { margin-bottom:14px; }
  }
  @media (max-width:860px){
    .lead-toolbar:has(.fin-period) .fin-period { flex:1 1 0%; min-width:0; }
    .lead-toolbar:has(.fin-period) .fin-period .fp-dd { flex:1 1 auto; width:auto; }
    .lt-row2:has(.lt-search-mobile) { gap:8px; }
    .lt-row2:has(.lt-search-mobile) .search-box { flex:1 1 80px; min-width:64px; max-width:none; }
    .lt-row2:has(.lt-search-mobile) .search-box input { padding-left:38px; padding-right:12px; }
    .lt-row2:has(.lt-search-mobile) .search-box > .ic { left:13px; }
    .lt-row2:has(.lt-search-mobile) .seg-mobile { margin-left:0; }
  }
  .lead-toolbar:has(.set-tabs) .lt-row1 .set-tabs { margin-left:auto; min-width:0; }
  .lead-toolbar:has(.set-tabs) .lt-row1 .search-box { flex:0 1 260px; min-width:180px; }
  @media (min-width:861px){
    @media (max-width:1265px){
      .lead-toolbar:has(.set-tabs) .lt-row1 .dd-btn { width:42px; padding:0; }
      .lead-toolbar:has(.set-tabs) .lt-row1 .dd-label { display:none; }
    }
    @media (max-width:965px){
      .lead-toolbar:has(.set-tabs) .cl-tab:not(.active) > span:not(.ic) { display:none; }
      .lead-toolbar:has(.set-tabs) .cl-tab { padding:0 13px; }
    }
  }
  @media (max-width:1130px){
    .lead-toolbar:has(.set-tabs) .lt-search-desktop { display:none; }
  }
  @media (min-width:660px) and (max-width:860px){
    .lead-toolbar:has(.set-tabs) .lt-dd-desktop { display:none; }
    .lead-toolbar:has(.set-tabs) .lt-dd-mobile { display:inline-flex; }
  }
  @media (max-width:860px){
    .lead-toolbar:has(.set-tabs) .lt-row1 .set-tabs { margin-left:0; flex:1 1 auto; }
    .lead-toolbar:has(.set-tabs) .cl-tab:not(.active) > span:not(.ic) { display:none; }
    .lead-toolbar:has(.set-tabs) .cl-tab { padding:0 13px; }
  }
  @media (max-width:489px){
    .lead-toolbar:has(.fin-period) .fp-nav { display:none; }
    .lead-toolbar:has(.fin-period) .fp-btn > .ic { display:none; }
    .lead-toolbar:has(.fin-period) .fp-btn { padding:0 11px; gap:6px; }
  }
  @media (max-width:600px){
    .lead-table.mk-table .mk-c-leads, .lead-table.mk-table .mk-c-clients,
    .lead-table.mk-table .mk-c-rev { display:none; }
    .lead-table.mk-table .col-name { width:44%; }
    .lead-table.mk-table .mk-c-spend { width:28%; }
    .lead-table.mk-table .mk-c-roas { width:28%; }
  }
  @media (max-width:1240px){
    .lead-toolbar:has(.fin-period) .dd-btn:not(.fp-btn) { width:42px; padding:0; }
    .lead-toolbar:has(.fin-period) .dd-label { display:none; }
  }
  @media (max-width:860px){ .lead-toolbar:has(.fin-period) .fp-btn { width:100%; height:42px; padding:0 14px; } }
  @media (max-width:489px){ .lead-toolbar:has(.fin-period) .fp-btn { padding:0 11px; gap:6px; } }
  .mk-section { display:flex; flex-direction:column; gap:8px; margin-bottom:18px; }
  .mk-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:14px; }
  .mk-tile { display:flex; flex-direction:column; gap:9px; padding:16px; border:1px solid var(--line);
    border-radius:var(--radius-lg); background:var(--card); color:inherit; text-decoration:none; transition:border-color .15s, transform .15s; }
  .mk-tile:hover { border-color:var(--accent); transform:translateY(-1px); }
  .mk-tile-head { display:flex; align-items:center; gap:9px; }
  .mk-tile-name { font-weight:600; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .mk-tile-sub { font-size:12.5px; }
  .mk-ch { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px;
    border-radius:999px; background:var(--card-2); flex:none; }
  .mk-ch .ic { width:16px; height:16px; }
  .mk-cells { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; padding:10px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
  .mk-cell { display:flex; flex-direction:column; gap:2px; min-width:0; }
  .mk-cell-v { font-weight:600; font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .mk-cell-l { font-size:11.5px; }
  .mk-tile-foot { display:flex; align-items:flex-start; gap:10px; }
  .mk-verdict { font-size:12.5px; line-height:1.45; flex:1; }
  .mk-roas { display:inline-flex; align-items:center; padding:3px 11px; border-radius:999px; font-weight:600;
    font-size:13.5px; background:var(--card-2); flex:none; }
  .mk-roas.ok { background:rgba(34,197,94,.16); color:#16a34a; }
  .mk-roas.warn { background:rgba(245,158,11,.16); color:#b45309; }
  .mk-roas.bad { background:rgba(239,68,68,.16); color:#dc2626; }
  .mk-budget { display:flex; flex-direction:column; gap:4px; font-size:12px; }
  .mk-budget-bar { height:5px; border-radius:999px; background:var(--card-2); overflow:hidden; }
  .mk-budget-bar span { display:block; height:100%; background:var(--accent); }
  .mk-warn { display:flex; align-items:flex-start; gap:9px; padding:11px 14px; margin-bottom:14px;
    border:1px solid var(--line); border-radius:var(--radius); background:var(--card-2); font-size:13px; line-height:1.5; }
  .mk-warn .ic { width:17px; height:17px; flex:none; margin-top:1px; color:#b45309; }
  .mk-chcell { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
  .mk-chcell .ic { width:16px; height:16px; flex:none; color:var(--muted); }
  .lead-table.mk-table .col-name { width:26%; }
  .lead-table.mk-table .col-cat { width:13%; }
  .lead-table.mk-table .col-status { width:13%; }
  .lead-table.mk-table .col-num { width:12%; text-align:right; }
  .lead-table.mk-table td.col-num, .lead-table.mk-table th.col-num { text-align:right; }
  @media (max-width:860px){
    .lead-table.mk-table .col-cat, .lead-table.mk-table .col-status { display:none; }
    .lead-table.mk-table .col-name { width:34%; }
    .lead-table.mk-table .col-num { width:16.5%; }
    .mk-cells { grid-template-columns:repeat(2,1fr); }
  }
  .mk-title { font-size:19px; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .mk-verdict-card { margin:0 0 14px; }
  .mk-sum { font-weight:600; color:var(--muted); font-size:14px; margin-left:6px; }
  .mk-td-date { white-space:nowrap; font-size:13px; }
  .mk-td-act { width:34px; text-align:right; }
  .mk-icon-btn { border:0; background:none; color:var(--muted); cursor:pointer; padding:4px; border-radius:8px; }
  .mk-icon-btn:hover { color:#dc2626; background:var(--card-2); }
  .mk-icon-btn .ic { width:16px; height:16px; }
  .mk-spend-form { display:grid; grid-template-columns:1fr auto auto auto; gap:10px; align-items:end; }
  .mk-spend-form label { display:flex; flex-direction:column; gap:4px; font-size:13px; margin:0; }
  .mk-two { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .mk-actions { display:flex; gap:10px; flex-wrap:wrap; }
  .mk-ul { margin:0; padding-left:18px; display:flex; flex-direction:column; gap:6px; font-size:13.5px; line-height:1.55; }
  .mk-method { margin:0; }
  .mk-form label { display:flex; flex-direction:column; gap:4px; margin-bottom:9px; font-size:13px; }
  @media (max-width:700px){
    .mk-spend-form { grid-template-columns:1fr 1fr; }
    .mk-spend-form button { grid-column:1 / -1; }
    .mk-two { grid-template-columns:1fr; }
  }
  .cfg-box .st-head { display:flex; align-items:center; gap:8px; }
  .cfg-hint { margin:2px 0 12px; font-size:13px; }
  .cfg-groups { display:flex; flex-direction:column; gap:14px; }
  .cfg-gbox { --cc:#6366f1; background:color-mix(in srgb, var(--cc) 6%, var(--card));
    border:1.5px solid color-mix(in srgb, var(--cc) 26%, var(--line)); border-radius:var(--radius);
    padding:2px 12px 12px; margin-bottom:14px; }
  .cfg-groups > .cfg-gbox { margin-bottom:0; }
  .cfg-gbox:nth-of-type(5n+2) { --cc:#0ea5e9; }
  .cfg-gbox:nth-of-type(5n+3) { --cc:#14b8a6; }
  .cfg-gbox:nth-of-type(5n+4) { --cc:#f59e0b; }
  .cfg-gbox:nth-of-type(5n+5) { --cc:#ec4899; }
  .cfg-ghead { display:flex; align-items:center; gap:9px; padding:11px 2px 9px; min-width:0; }
  .cfg-gdot { flex:none; width:11px; height:11px; border-radius:50%; background:var(--cc); }
  .cfg-gnum { flex:none; min-width:21px; height:21px; padding:0 6px; display:inline-flex; align-items:center;
    justify-content:center; border-radius:999px; background:color-mix(in srgb, var(--cc) 16%, var(--card));
    color:var(--cc); font-size:11.5px; font-weight:700; }
  .cfg-gname { flex:1; min-width:0; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cfg-gname-i { flex:1; min-width:0; margin:0; padding:5px 12px; font-weight:700; font-size:14px;
    background:transparent; border:1px solid transparent; border-radius:999px; }
  .cfg-gname-i:hover { border-color:color-mix(in srgb, var(--cc) 30%, var(--line)); background:var(--card); }
  .cfg-gname-i:focus { border-color:var(--accent); background:var(--card); }
  .cfg-grule { flex:none; font-size:12px; }
  .cfg-gn { flex:none; min-width:22px; height:22px; padding:0 7px; display:inline-flex; align-items:center;
    justify-content:center; border-radius:999px; background:color-mix(in srgb, var(--cc) 16%, var(--card));
    color:var(--cc); font-size:12px; font-weight:700; }
  .cfg-rule { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:0 2px 10px; }
  .cfg-segs { display:inline-flex; gap:2px; padding:2px; border:1px solid var(--line);
    border-radius:999px; background:var(--card); }
  .cfg-seg { position:relative; margin:0; }
  .cfg-seg input { position:absolute; inset:0; margin:0; opacity:0; cursor:pointer; }
  .cfg-seg span { display:inline-block; padding:5px 12px; border-radius:999px; font-size:12.5px;
    color:var(--muted); white-space:nowrap; cursor:pointer; }
  .cfg-seg input:checked + span { background:var(--accent); color:#fff; font-weight:600; }
  .cfg-seg input:focus-visible + span { outline:2px solid var(--accent); outline-offset:1px; }
  .cfg-lim { display:none; align-items:center; gap:8px; font-size:12px; color:var(--muted); }
  .cfg-lim label { display:inline-flex; align-items:center; gap:4px; margin:0; }
  .cfg-lim input { width:56px; margin:0; padding:4px 6px; font-size:13px; text-align:center; }
  .cfg-req { display:inline-flex; align-items:center; gap:5px; margin:0; font-size:12px; color:var(--muted); }
  .cfg-req input { margin:0; }
  .cfg-rule:has(input[value="custom"]:checked) .cfg-lim { display:inline-flex; }
  .cfg-rule:has(input[value="custom"]:checked) .cfg-req { display:none; }
  .cfg-things { display:flex; flex-direction:column; gap:8px; }
  .cfg-th { position:relative; background:var(--card); border:1px solid var(--line);
    border-radius:999px; box-shadow:var(--shadow); }
  .cfg-th[open] { border-radius:var(--radius); border-color:color-mix(in srgb, var(--cc) 40%, var(--line)); }
  .cfg-th-h { display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-width:0;
    padding:9px 42px 9px 15px; cursor:pointer; list-style:none; border-radius:inherit; }
  .cfg-th-h::-webkit-details-marker { display:none; }
  .cfg-th-h:hover .cfg-th-name { color:var(--accent); }
  .cfg-caret { display:inline-flex; flex:none; color:var(--muted); transition:transform .15s ease; }
  .cfg-caret svg { width:15px; height:15px; }
  .cfg-th[open] > .cfg-th-h .cfg-caret { transform:rotate(90deg); }
  .cfg-th-name { flex:1; min-width:90px; font-weight:600; font-size:13.5px;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cfg-th-x { position:absolute; top:8px; right:8px; margin:0; }
  .cfg-th-b { display:flex; flex-direction:column; gap:10px; padding:2px 12px 12px; }
  .cfg-thumb { flex:none; width:38px; height:38px; border-radius:9px; object-fit:cover; background:var(--card-2); }
  .cfg-thumb-sm { width:32px; height:32px; border-radius:8px; }
  .cfg-chips { display:inline-flex; align-items:center; flex-wrap:wrap; gap:5px; flex:none; }
  .cfg-chip { padding:2px 8px; border-radius:999px; background:var(--card-2); color:var(--text);
    font-size:11.5px; white-space:nowrap; }
  .cfg-chip.muted { color:var(--muted); }
  .cfg-chip-ref { background:var(--accent-soft); color:var(--accent); font-weight:600; }
  .cfg-chip-def { background:color-mix(in srgb, #16a34a 14%, var(--card)); color:#16a34a; font-weight:600; }
  .cfg-chip-off { background:color-mix(in srgb, #dc2626 12%, var(--card)); color:#dc2626; font-weight:600; }
  .cfg-chip-qty { background:color-mix(in srgb, #7c3aed 13%, var(--card)); color:#7c3aed; font-weight:600; }
  .cfg-frow { display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap; }
  .cfg-f { display:flex; flex-direction:column; gap:3px; margin:0; min-width:0; flex:1 1 150px; }
  .cfg-f-l { font-size:11.5px; font-weight:600; color:var(--muted); }
  .cfg-f input, .cfg-f select, .cfg-f textarea { width:100%; margin:0; padding:6px 9px; font-size:13.5px; }
  .cfg-f-name { flex:1 1 200px; }
  .cfg-f-wide { flex:1 1 100%; }
  .cfg-f-num { flex:0 0 108px; }
  .cfg-f-num input { text-align:right; font-variant-numeric:tabular-nums; }
  .cfg-f-chk { flex:0 0 auto; flex-direction:row; align-items:center; gap:6px;
    padding-bottom:7px; font-size:12.5px; color:var(--muted); }
  .cfg-f-chk input { width:auto; margin:0; }
  .cfg-edesc { resize:vertical; min-height:46px; }
  .cfg-refnote { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; flex:1 1 220px;
    padding:8px 13px; border-radius:12px; background:var(--accent-soft); font-size:12.5px; }
  .cfg-reflink { font-weight:600; }
  .cfg-adv { border:1px dashed var(--line); border-radius:12px; }
  .cfg-adv-h { display:flex; align-items:center; gap:7px; padding:7px 12px; cursor:pointer;
    font-size:12.5px; font-weight:600; color:var(--muted); list-style:none; }
  .cfg-adv-h::-webkit-details-marker { display:none; }
  .cfg-adv-h::before { content:""; flex:none; width:0; height:0; border:5px solid transparent;
    border-left-color:currentColor; transition:transform .12s; }
  .cfg-adv[open] > .cfg-adv-h::before { transform:rotate(90deg) translateX(-1px); }
  .cfg-adv[open] > .cfg-adv-h { color:var(--text); }
  .cfg-adv-b { display:flex; flex-direction:column; gap:9px; padding:0 12px 11px; }
  .cfg-adv-note { font-size:11.5px; line-height:1.45; margin:0; }
  .cfg-tiers { display:flex; flex-direction:column; gap:5px; }
  .cfg-tier { display:flex; align-items:center; gap:6px; }
  .cfg-tier-l { flex:none; font-size:12px; color:var(--muted); }
  .cfg-tier input { width:86px; margin:0; padding:5px 8px; font-size:13px;
    text-align:right; font-variant-numeric:tabular-nums; }
  .cfg-tier input:first-of-type { width:66px; }
  .cfg-ereq { width:100%; margin:0; padding:5px; font-size:13px; }
  .cfg-gadd { display:flex; flex-direction:column; gap:8px; margin-top:10px; }
  .cfg-plus { display:inline-flex; align-items:center; justify-content:center; gap:7px; margin:0;
    padding:9px 16px; border:1.5px dashed color-mix(in srgb, var(--cc,var(--line)) 34%, var(--line));
    border-radius:999px; background:transparent; color:var(--muted); font-size:12.5px; font-weight:600; cursor:pointer; }
  .cfg-plus:hover { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); }
  .cfg-plus svg { width:15px; height:15px; }
  .cfg-pickref { display:block; width:100%; min-width:0; }
  .cfg-pickref .rzd-combo { width:100%; }
  .cfg-pickref select, .cfg-pickref .rzd-cin { width:100%; margin:0; height:40px; font-size:13px; }
  .cfg-plus-add { width:100%; }
  .cfg-plus-grp { width:100%; margin-top:14px; padding:12px; font-size:13.5px; }
  .cfg-x { margin:0; padding:2px 6px; border:0; border-radius:999px; background:none; color:var(--muted);
    font-size:18px; line-height:1; cursor:pointer; }
  .cfg-x:hover { background:var(--card-2); color:#dc2626; }
  .cfg-addrow { margin:8px 0 0; padding:6px 14px; border:1px dashed var(--line); border-radius:999px;
    background:none; color:var(--muted); font-size:13px; cursor:pointer; }
  .cfg-addrow:hover { border-color:var(--accent); color:var(--accent); }
  .cfg-emat, .cfg-photo { margin:0; padding:8px 13px; border:1px solid var(--line);
    border-radius:12px; background:var(--card-2); }
  .cfg-emat summary { list-style:none; font-size:12px; font-weight:600; color:var(--muted); cursor:pointer; }
  .cfg-emat summary::-webkit-details-marker { display:none; }
  .cfg-emat summary::before { content:"+ "; font-weight:700; }
  .cfg-emat[open] summary::before { content:"− "; }
  .cfg-photo { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:12.5px; }
  .cfg-photo form { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0; }
  .cfg-photo .fpick { max-width:260px; margin:0; }
  .cfg-photo .btn-pill { margin:0; height:40px; }
  .cfg-copy { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:14px; padding-top:12px;
    border-top:1px solid var(--line); font-size:13px; }
  .cfg-copy label { margin:0; white-space:nowrap; }
  .cfg-copy select { flex:1; min-width:140px; }
  .cfg-picks { display:flex; flex-direction:column; gap:6px; }
  .cfg-pick { display:flex; align-items:center; gap:10px; margin:0; padding:8px 12px;
    background:var(--card); border:1px solid var(--line); border-radius:12px;
    box-shadow:var(--shadow); cursor:pointer; }
  .cfg-pick:hover { border-color:var(--accent); }
  .cfg-pick:has(input:checked) { border-color:var(--accent); box-shadow:0 0 0 2px var(--accent-soft); }
  .cfg-pick.off { opacity:.55; }
  .cfg-pick input { flex:none; margin:0; }
  .cfg-pick-txt { flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
  .cfg-pick-name { font-weight:600; font-size:13.5px; }
  .cfg-pick-desc { font-size:12px; line-height:1.4; overflow:hidden;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  .cfg-pick-price { flex:none; white-space:nowrap; font-weight:600; font-size:13px; font-variant-numeric:tabular-nums; }
  .cfg-pick-dur { flex:none; white-space:nowrap; font-size:12px; }
  .cfg-pick-qty { flex:none; display:inline-flex; align-items:center; gap:5px; font-size:12px; }
  .cfg-pick-qty input { width:64px; margin:0; padding:5px 8px; font-size:13px;
    text-align:right; font-variant-numeric:tabular-nums; }
  .cfg-pick-none .cfg-pick-name { font-weight:500; }
  .cfg-sum { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; margin-top:14px; padding-top:12px;
    border-top:2px solid var(--line); font-size:14px; }
  .cfg-sum strong { font-size:18px; }
  .cfg-sum .muted { font-size:12px; }
  .cfg-bar { display:flex; justify-content:flex-end; margin-top:12px; }
  @media (max-width:760px){
    .cfg-f-name, .cfg-refnote { flex:1 1 100%; }
    .cfg-segs { width:100%; justify-content:space-between; }
    .cfg-seg span { padding:5px 9px; }
    .cfg-pickref { flex:1 1 100%; }
  }
  .cfg-sw { flex:none; display:inline-block; width:26px; height:26px; border-radius:50%;
    background:var(--sw, transparent); border:1px solid color-mix(in srgb, var(--text) 18%, transparent);
    box-shadow:inset 0 0 0 2px color-mix(in srgb, #fff 35%, transparent); }
  .cfg-sw-none { border-style:dashed; box-shadow:none; }
  .cfg-sw-xs { width:13px; height:13px; box-shadow:none; }
  .cfg-chip-lib { background:color-mix(in srgb, #0ea5e9 13%, var(--card)); color:#0369a1; font-weight:600; }
  .cfg-libnote { justify-content:flex-end; }
  .cfg-libname { display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-height:34px; font-size:13.5px; }
  .cfg-gsw { flex:none; display:inline-flex; align-items:center; font-size:11px; }
  .cfg-gsw .cfg-sw { margin-left:-4px; border-color:var(--card); }
  .cfg-gsw .cfg-sw:first-child { margin-left:0; }
  .cfg-gsw .muted { margin-left:4px; }
  .cfg-gtog { flex:none; margin:0; padding:3px; border:0; border-radius:999px; background:none;
    color:var(--muted); cursor:pointer; line-height:0; }
  .cfg-gtog:hover { background:var(--card-2); color:var(--text); }
  .cfg-gtog svg { width:16px; height:16px; transform:rotate(90deg); transition:transform .15s ease; }
  .cfg-gedit.cfg-zw .cfg-gtog svg { transform:rotate(0deg); }
  .cfg-gedit.cfg-zw > :not(.cfg-ghead) { display:none; }
  .cfg-gedit.cfg-zw { padding-bottom:2px; }
  .cfg-gfold > summary { list-style:none; cursor:pointer; }
  .cfg-gfold > summary::-webkit-details-marker { display:none; }
  .cfg-gcaret { flex:none; display:inline-flex; color:var(--muted); transition:transform .15s ease; }
  .cfg-gcaret svg { width:15px; height:15px; }
  .cfg-gfold[open] > summary .cfg-gcaret { transform:rotate(90deg); }
  .cfg-gfold:not([open]) { padding-bottom:2px; }
  .cfg-gpicked { flex:0 1 auto; min-width:0; display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap;
    font-size:12px; color:var(--muted); }
  .cfg-gpick { display:inline-flex; align-items:center; gap:4px; padding:1px 8px; border-radius:999px;
    background:var(--card); border:1px solid var(--line); color:var(--text); white-space:nowrap; }
  .cfg-gfold .cfg-gname { flex:0 1 auto; }
  .cfg-gfold .cfg-grule { margin-left:auto; }
  .opl-intro { margin:0 0 12px; font-size:13px; max-width:820px; }
  .opl-sw { width:22px; height:22px; }
  .opl-noc { flex:none; width:22px; height:22px; display:inline-flex; align-items:center; justify-content:center;
    border-radius:8px; background:var(--card2, var(--card)); border:1px solid var(--line); color:var(--muted); }
  .opl-it .svcb-item-name { display:flex; flex-direction:column; gap:1px; min-width:0; }
  .opl-op { font-size:11.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .opl-kwota { font-variant-numeric:tabular-nums; }
  .opl-strip { flex:none; display:inline-flex; align-items:center; margin-left:4px; }
  .opl-strip .cfg-sw { margin-left:-5px; border-color:var(--card); }
  .opl-strip .cfg-sw:first-child { margin-left:0; }
  .opl-two { display:grid; grid-template-columns:1fr 90px 130px; gap:10px; align-items:end; }
  .opl-two .rz-f { display:flex; flex-direction:column; gap:4px; margin:0; }
  .opl-two .rz-f > span { font-size:12px; color:var(--muted); }
  .opl-two input, .opl-two select { margin:0; }
  .opl-f-hex input[type=color] { width:100%; height:38px; padding:3px; }
  .opl-f-kw input { text-align:right; font-variant-numeric:tabular-nums; }
  .opl-lista summary { cursor:pointer; font-size:13px; font-weight:600; color:var(--muted); }
  .opl-lista textarea { width:100%; font-family:inherit; font-size:13px; }
  .opl-gdzie h4 { margin:14px 0 6px; font-size:13px; }
  .opl-uzycia { margin:0; padding-left:18px; font-size:13px; display:flex; flex-direction:column; gap:3px; }
  @media (max-width:760px){
    .opl-two { grid-template-columns:1fr 80px; }
    .opl-f-kw { grid-column:span 2; }
    .opl-strip { display:none; }
    .cfg-gsw { display:none; }
  }
  .au-glowka { margin-top:16px; }
  .aq-list { display:flex; flex-direction:column; gap:10px; interpolate-size:allow-keywords; }
  .aq { position:relative; border:1px solid var(--line); border-radius:999px; background:var(--card);
    transition:border-radius .45s ease, background-color .3s ease, box-shadow .3s ease; }
  .aq:has(.aq-d[open]) { border-radius:26px; box-shadow:var(--shadow); }
  .aq-d::details-content { block-size:0; overflow:hidden;
    transition:block-size .45s ease, content-visibility .45s allow-discrete; }
  .aq-d[open]::details-content { block-size:auto; }
  .aq-d[open]:has(.dd[open])::details-content,
  .aq-d[open]:has(.rzd-cpop:not([hidden]))::details-content { overflow:visible; }
  .aq:has(.dd[open]), .aq:has(.rzd-cpop:not([hidden])) { z-index:5; }
  .aq:has(.aq-act input:not(:checked)) { background:var(--card-2); box-shadow:none; }
  .aq:has(.aq-act input:not(:checked)) .aq-b { display:none; }
  .aq:has(.aq-act input:not(:checked)) .aq-h { cursor:default; pointer-events:none; }
  .aq:has(.aq-act input:not(:checked)) .aq-t { color:var(--muted); }
  .aq:has(.aq-act input:not(:checked)) .aq-caret,
  .aq:has(.aq-act input:not(:checked)) .aq-n { visibility:hidden; }
  .aq-h { display:flex; align-items:center; gap:10px; min-height:58px; padding:13px 168px 13px 18px;
    cursor:pointer; list-style:none; -webkit-user-select:none; user-select:none; }
  .aq-h::-webkit-details-marker { display:none; }
  .aq-h:hover .aq-t { color:var(--accent); }
  .aq-caret { flex:none; display:inline-flex; color:var(--muted); transition:transform .45s ease; }
  .aq-caret svg { width:16px; height:16px; }
  .aq-d[open] > .aq-h .aq-caret { transform:rotate(90deg); }
  .aq-num { flex:none; min-width:24px; height:24px; display:inline-flex; align-items:center; justify-content:center;
    padding:0 6px; border:1px solid var(--line); border-radius:999px; background:var(--card-2);
    font-size:12px; font-weight:700; color:var(--muted); font-variant-numeric:tabular-nums; }
  .aq-t { flex:1; min-width:0; font-size:14px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .aq-tag { flex:none; padding:2px 10px; border:1px solid var(--line); border-radius:999px;
    background:var(--card-2); font-size:11.5px; font-weight:600; color:var(--muted); }
  .aq-tag-bad { color:#dc2626; border-color:#dc2626; background:transparent; }
  .aq-n { flex:none; min-width:22px; padding:1px 7px; border-radius:999px; background:var(--line);
    font-size:11.5px; font-weight:700; color:var(--muted); text-align:center; }
  .aq-act { position:absolute; top:17px; right:16px; z-index:2; display:flex; align-items:center; gap:4px; }
  .aq-act > label.wh-toggle { position:relative; margin:0; flex:none; }
  .aq-del { flex:none; width:30px; height:30px; padding:0; margin:0; border:0; border-radius:999px;
    background:transparent; color:var(--muted); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
  .aq-del:hover { background:var(--card-2); color:#dc2626; filter:none; }
  .aq-del svg { width:16px; height:16px; }
  .aq-mv { flex:none; width:26px; height:26px; padding:0; margin:0; border:0; border-radius:999px;
    background:transparent; color:var(--muted); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
  .aq-mv:hover { background:var(--card-2); color:var(--accent); filter:none; }
  .aq-mv svg { width:15px; height:15px; }
  .aq-mv-up svg { transform:rotate(180deg); }
  .aq-list > .aq:first-child .aq-mv-up,
  .aq-list > .aq:last-child .aq-mv:not(.aq-mv-up) { opacity:.25; pointer-events:none; }
  .aq-b { padding:0 20px 18px; }
  .aq-f-main { margin-bottom:12px; }
  .aq-f-main > label { font-size:12px; font-weight:600; color:var(--muted); }
  .aq-f-main > input { height:50px; font-size:16px; font-weight:600; }
  .aq-f-sub { margin-bottom:16px; }
  .aq-f-sub > input { height:38px; font-size:13px; background:var(--card-2); }
  .aq-ansbox { --aq-cols:20px minmax(120px,1.1fr) minmax(150px,1.25fr) minmax(130px,1fr) 30px; display:none; }
  .aq-ah { display:grid; grid-template-columns:var(--aq-cols); gap:8px; padding:0 2px 6px;
    font-size:11.5px; font-weight:600; color:var(--muted); }
  .aq-ans { display:flex; flex-direction:column; gap:8px; }
  .aq-a { display:grid; grid-template-columns:var(--aq-cols); gap:8px; align-items:center; }
  .aq-a > *, .aq-a > .rzd-combo { min-width:0; }
  .aq-a input, .aq-a select, .aq-a .rzd-cin { height:40px; margin:0; border-radius:999px; padding-left:16px; padding-right:16px; }
  .aq-a select { padding-right:40px; background-position:right 16px center; }
  .aq-a .rzd-cin { padding-right:40px; }
  .aq-a-m { flex:none; width:18px; height:18px; border:2px solid var(--line); border-radius:50%; transition:border-radius .25s ease; }
  .aq:has(.aq-k[value="many"]:checked) .aq-a-m { border-radius:6px; }
  .aq-x { flex:none; width:30px; height:30px; padding:0; margin:0; border:0; border-radius:999px;
    background:transparent; color:var(--muted); font-size:17px; line-height:1; cursor:pointer;
    display:inline-flex; align-items:center; justify-content:center; }
  .aq-x:hover { background:var(--card-2); color:var(--text); filter:none; }
  .aq-x-warn { color:#dc2626; }
  .aq-add, .aq-addq { display:inline-flex; align-items:center; justify-content:center; gap:7px; margin:10px 0 0;
    height:40px; padding:0 18px; border:1px dashed var(--line); border-radius:999px; background:transparent;
    color:var(--muted); font-size:13px; font-weight:600; cursor:pointer; }
  .aq-add:hover, .aq-addq:hover { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); filter:none; }
  .aq-add svg, .aq-addq svg { width:15px; height:15px; }
  .aq-addq { width:100%; height:48px; margin-top:12px; font-size:13.5px; }
  .aq-open { display:block; }
  .aq-lab { display:block; margin-bottom:6px; font-size:11.5px; font-weight:600; color:var(--muted); }
  .aq-pv { display:none; width:100%; height:40px; padding:0 16px; border-radius:999px;
    background:var(--card-2); color:var(--muted); }
  textarea.aq-pv { height:auto; padding:10px 15px; border-radius:16px; }
  .aq-pv-cal { display:none; }
  .aq-pv-cal input { width:100%; border-radius:999px; background:var(--card-2); }
  .aq:has(.aq-k[value="one"]:checked) .aq-ansbox,
  .aq:has(.aq-k[value="many"]:checked) .aq-ansbox { display:block; }
  .aq:has(.aq-k[value="one"]:checked) .aq-open,
  .aq:has(.aq-k[value="many"]:checked) .aq-open { display:none; }
  .aq-pv-one { display:block; }
  .aq:has(.aq-k[value="text"]:checked) .aq-pv-text { display:block; }
  .aq:has(.aq-k[value="date"]:checked) .aq-pv-cal,
  .aq:has(.aq-k[value="datetime"]:checked) .aq-pv-cal,
  .aq:has(.aq-k[value="time"]:checked) .aq-pv-cal { display:block; }
  .aq:has(.aq-k[value="text"]:checked) .aq-pv-one,
  .aq:has(.aq-k[value="date"]:checked) .aq-pv-one,
  .aq:has(.aq-k[value="datetime"]:checked) .aq-pv-one,
  .aq:has(.aq-k[value="time"]:checked) .aq-pv-one { display:none; }
  .aq-more { margin-top:18px; padding-top:16px; border-top:1px solid var(--line); }
  .aq-row1 { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
  .aq-seg { position:relative; flex-wrap:wrap; }
  .aq-seg-x { display:inline-flex; align-items:center; justify-content:center; gap:5px; height:32px; padding:0 13px;
    border-radius:999px; font-size:13px; font-weight:600; color:var(--muted); white-space:nowrap;
    cursor:pointer; list-style:none; }
  .aq-seg-x::-webkit-details-marker { display:none; }
  .aq-seg-x svg { width:14px; height:14px; }
  .aq-seg:has(.aq-k-inne:checked) .aq-seg-x { background:var(--card); color:var(--accent); box-shadow:var(--shadow); }
  .aq-kmore .dd-pop { top:40px; left:auto; right:0; min-width:190px; }
  .aq-req { display:inline-flex; align-items:center; gap:10px; margin:0 0 0 auto; font-size:13px; color:var(--muted); }
  .aq-req .wh-toggle { margin:0; }
  .aq-unit, .aq-var { display:none; }
  .aq:has(.aq-k[value="number"]:checked) .aq-unit { display:block; }
  .aq:has(select[name^="p_target_"] option[value="umowa"]:checked) .aq-var { display:block; }
  .aq-if { display:grid; gap:12px; align-items:start;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.25fr); }
  .aq-if[hidden] { display:none; }
  .aq-if > .rz-f { margin-bottom:0; min-width:0; }
  .aq-if > .rz-f[hidden] { display:none; }
  @media (max-width:1000px) { .aq-if { grid-template-columns:1fr; } }
  .aq-ifq-f select, .aq-ifop-f select { text-overflow:ellipsis; }
  .aq-chips { display:flex; flex-wrap:wrap; gap:6px; }
  .aq-ifg { display:contents; }
  .aq-ifg[hidden] { display:none; }
  .aq-if .aq-chip { display:inline-flex; align-items:center; gap:9px; margin:0;
    padding:7px 14px 7px 11px; border:1px solid var(--line); border-radius:999px;
    background:var(--card); font-size:13px; color:var(--text); }
  .aq-if .aq-chip:has(input:checked) { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); }
  .aq-chip .dd-check-label { flex:none; }
  .aq-if-e { margin:0; font-size:12.5px; }
  .aq-if-none { margin:0; font-size:12.5px; }
  .aq-if-dead { margin:0; font-size:12.5px; color:#dc2626; }
  @media (max-width:760px) {
    .aq-ansbox { --aq-cols:20px minmax(0,1fr) 30px; }
    .aq-ah > :nth-child(3), .aq-ah > :nth-child(4) { display:none; }
    .aq-a-m { grid-column:1; grid-row:1; }
    .aq-a-l { grid-column:2; grid-row:1; }
    .aq-x    { grid-column:3; grid-row:1; }
    .aq-a > .rzd-combo, .aq-a > .aq-a-r, .aq-a > .aq-a-h { grid-column:2/4; }
    .aq-h { padding:12px 96px 12px 14px; gap:8px; }
    .aq-b { padding:0 14px 16px; }
    .aq-tag:not(.aq-tag-bad) { display:none; }
    .aq-seg { width:100%; }
    .aq-seg > label { flex:1 1 auto; }
    .aq-seg > label > span { width:100%; padding:0 8px; }
    .aq-seg-x { flex:1 1 100%; }
    .aq-req { margin-left:0; }
  }
  .au-start { display:flex; flex-direction:column; align-items:flex-start; gap:10px; padding:6px 0 2px; }
  .au-start-s { margin:0; font-size:12px; }
  .au-marks { display:inline-flex; align-items:center; gap:8px; }
  .au-mark { display:inline-flex; color:var(--muted); }
  .au-mark svg { width:15px; height:15px; }
  .au-tr-go .btn-pill { background:var(--card); color:var(--text); border:1px solid var(--line); box-shadow:none; }
  .au-tr-go .btn-pill:hover { border-color:var(--accent); color:var(--accent); filter:none; }
  .au-sec { display:flex; flex-direction:column; gap:8px; }
  .au-link { display:flex; align-items:center; gap:8px; padding:10px 12px; border:1px solid var(--line);
    border-radius:var(--radius); text-decoration:none; color:inherit; }
  .au-link:hover { border-color:var(--accent); }
  .au-hint { display:flex; gap:8px; align-items:flex-start; margin:0 0 12px; padding:10px 12px;
    background:var(--bg); border-radius:var(--radius); font-size:13px; line-height:1.45; }
  .au-hint .ic { flex:none; opacity:.7; }
  .au-picks { margin-top:2px; }
  .au-oferta { margin-top:12px; }
  .au-adr { margin-bottom:0; }
  .au-bgs { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
  .au-bg { display:inline-flex; align-items:center; gap:7px; padding:6px 12px; border-radius:999px;
    background:var(--card-2); font-size:12.5px; color:var(--muted); }
  .au-bg svg { width:14px; height:14px; }
  .au-bg-rec { color:#c0392b; }
  .au-dot { flex:none; width:8px; height:8px; border-radius:50%; background:#c0392b; animation:au-puls 1.4s ease-in-out infinite; }
  @keyframes au-puls { 0%,100% { opacity:1 } 50% { opacity:.25 } }
  @media (prefers-reduced-motion: reduce) { .au-dot { animation:none } }
  .au-rows { display:flex; flex-direction:column; }
  .au-row { display:flex; justify-content:space-between; gap:16px; padding:8px 0; border-bottom:1px solid var(--line); }
  .au-row:last-child { border-bottom:0; }
  .au-row-q { color:var(--muted); font-size:13px; }
  .au-row-v { text-align:right; }
  .au-var { margin-left:6px; padding:1px 6px; border-radius:999px; background:var(--bg); font-size:11px;
    font-family:ui-monospace, SFMono-Regular, Menlo, monospace; }
  .au-when { margin:0 0 10px; }
  .au-meta { display:inline-flex; align-items:center; gap:7px; margin:0 0 12px; padding:7px 13px; border-radius:999px;
    background:var(--card-2); font-size:12.5px; color:var(--muted); text-decoration:none; }
  a.au-meta:hover { color:var(--accent); background:var(--accent-soft); text-decoration:none; }
  .au-meta svg { width:14px; height:14px; }
  .au-rec { display:flex; flex-direction:column; gap:6px; margin-top:14px; }
  .au-rec audio { width:100%; }
  .au-tr { margin-top:14px; padding:14px 16px; background:var(--bg); border-radius:var(--radius); }
  .au-tr-h { display:flex; align-items:center; gap:8px; margin:0 0 8px; font-size:13px; font-weight:700; color:var(--muted); }
  .au-tr-h svg { width:15px; height:15px; }
  .au-tr-s { margin:0 0 10px; font-size:14px; line-height:1.5; }
  .au-tr-pkt { margin:0; padding-left:20px; font-size:13.5px; line-height:1.6; }
  .au-tr-raw { margin-top:12px; }
  .au-tr-raw > summary { cursor:pointer; font-size:12.5px; font-weight:600; color:var(--muted); }
  .au-tr-raw > p { margin:8px 0 0; max-height:340px; overflow:auto; font-size:13px; line-height:1.6;
    white-space:pre-wrap; color:var(--muted); }
  .au-tr-f { margin:12px 0 0; font-size:11.5px; }
  .au-tr-stan { display:flex; align-items:flex-start; gap:8px; margin:14px 0 0; padding:10px 12px;
    background:var(--bg); border-radius:var(--radius); font-size:13px; line-height:1.45; color:var(--muted); }
  .au-tr-stan svg { flex:none; width:15px; height:15px; margin-top:1px; }
  .au-tr-bad { color:#dc2626; }
  .au-tr-go { margin-top:10px; }
  .au-zals, .au-wiads { margin-top:16px; }
  .au-zal { display:flex; align-items:center; gap:10px; padding:7px 0; border-bottom:1px solid var(--line); }
  .au-zal:last-of-type { border-bottom:0; }
  .au-zal-n { flex:1; display:flex; align-items:center; gap:8px; min-width:0; color:inherit; text-decoration:none; }
  .au-zal-n span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .au-zal-n:hover { color:var(--accent); }
  .au-zal-n svg { flex:none; width:15px; height:15px; opacity:.7; }
  .au-zal-m { flex:none; font-size:12px; }
  .au-zal-x { display:inline-flex; padding:4px; border:0; background:none; color:var(--muted); cursor:pointer; }
  .au-zal-x:hover { color:#dc2626; }
  .au-zal-x svg { width:15px; height:15px; }
  .au-zal-up { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:10px; }
  .au-zal-up .fpick { flex:1 1 220px; margin:0; }
  .au-wiad { margin:8px 0; padding:10px 12px; background:var(--bg); border-radius:var(--radius); }
  .au-wiad > summary { display:flex; align-items:center; gap:8px; flex-wrap:wrap; cursor:pointer; font-size:13px; }
  .au-wiad-t { font-weight:700; }
  .au-wiad-b { width:100%; margin-top:10px; padding:10px 12px; font-size:13.5px; line-height:1.6;
    background:var(--card); border:1px solid var(--line); border-radius:var(--radius); resize:vertical; }
  .au-wiads .au-bar { margin-top:8px; }
  .au-bar-odb { margin-top:12px; padding-top:12px; border-top:1px solid var(--line); font-size:12.5px; }
  .au-bgs-pick { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
  .au-bgs-pick .au-bg { font-size:11.5px; padding:4px 10px; }
  .au-znane { color:var(--accent); background:var(--accent-soft); }
  .au-note { margin:12px 0 0; padding:10px 12px; background:var(--bg); border-radius:var(--radius); font-size:13px; }
  .au-bar { display:flex; gap:8px; align-items:center; margin-top:14px; flex-wrap:wrap; }
  .au-pauza { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 12px; padding:12px 16px;
    border:1px dashed var(--accent); border-radius:var(--radius); background:var(--accent-soft); }
  .au-pauza-i { flex:none; display:inline-flex; color:var(--accent); }
  .au-pauza-i svg { width:18px; height:18px; }
  .au-pauza-t { flex:1; min-width:180px; display:flex; flex-direction:column; gap:2px; font-size:13px; }
  .au-pauza-t .muted { font-size:12px; line-height:1.5; }
  .au-pauza form { margin:0; }
  .au-kb { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin:0 0 14px; padding-bottom:12px;
    border-bottom:1px solid var(--line); }
  .au-kb-l { display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:600;
    letter-spacing:.03em; text-transform:uppercase; color:var(--muted); }
  .au-kb-l svg { width:13px; height:13px; }
  .au-kb-c { padding:5px 13px; border:1px solid var(--line); border-radius:999px; background:var(--card);
    color:var(--text); font-size:12.5px; cursor:pointer; max-width:100%; overflow:hidden;
    text-overflow:ellipsis; white-space:nowrap; }
  .au-kb-c:hover { border-color:var(--accent); color:var(--accent); background:var(--accent-soft); filter:none; }
  .au-kbv-h { display:flex; align-items:center; gap:12px; margin:0 0 14px; padding-bottom:12px;
    border-bottom:1px solid var(--line); }
  .au-kbv-h strong { flex:1; min-width:0; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .au-kbv-x { flex:none; }
  .au-kbv-b .kb-view-in { max-width:none; }
  .au-kbv-b .kb-blok { margin-bottom:22px; }
  .au-kbv-b .kb-h2 { font-size:17px; }
  .au-kbv-b .kb-blok-tekst p, .au-kbv-b .kb-lista-t { font-size:14.5px; line-height:1.7; }
  .ct-wiz.au-czyta .ct-wiz-f { display:none; }
  .sheet-pyt .sheet-card { max-width:430px; }
  .sheet-pyt-t { display:block; margin-bottom:8px; font-size:17px; }
  .sheet-pyt .sheet-card p { margin:0 0 10px; font-size:13px; line-height:1.6; }
  .sheet-pyt-s { color:var(--accent); }
  .sheet-pyt-acts { display:flex; flex-direction:column; gap:8px; margin-top:16px; }
  .sheet-pyt-acts .btn-pill { width:100%; justify-content:center; }
  input[type="checkbox"][type="checkbox"], input[type="radio"][type="radio"] {
    appearance:none; -webkit-appearance:none; flex:none; box-sizing:border-box;
    width:19px; height:19px; padding:0; margin:0; vertical-align:middle;
    border:1.5px solid var(--line); background:var(--card); cursor:pointer;
    display:inline-flex; align-items:center; justify-content:center; transition:.12s;
  }
  input[type="checkbox"][type="checkbox"] { border-radius:7px; }
  input[type="radio"][type="radio"] { border-radius:50%; }
  input[type="checkbox"]:hover, input[type="radio"]:hover { border-color:var(--accent); }
  input[type="checkbox"][type="checkbox"]::after {
    content:""; width:5px; height:9px; margin-top:-2px;
    border:solid transparent; border-width:0 2px 2px 0; transform:rotate(43deg);
    transition:border-color .12s ease;
  }
  input[type="radio"][type="radio"]::after {
    content:""; width:9px; height:9px; border-radius:50%; background:transparent; transition:background .12s ease;
  }
  input[type="checkbox"]:checked { background:var(--accent); border-color:var(--accent); }
  input[type="checkbox"]:checked::after { border-color:var(--accent-ink); }
  input[type="radio"]:checked { background:var(--card); border-color:var(--accent); border-width:2px; }
  input[type="radio"]:checked::after { background:var(--accent); }
  input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline:2px solid var(--accent-soft); outline-offset:2px; }
  input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity:.5; cursor:not-allowed; }
  input[type="checkbox"][hidden], input[type="radio"][hidden] { display:none; }
  .badge, .g-chip, .kb-chip, .proj-chip, .emp-chip, .tk-chip, .site-chip, .cfg-chip,
  .wl-chip, .mt-chip, .msg-chip, .pipe-tag, .sup-tag, .kb-przyp-chip, .doc-chip {
    display:inline-flex; align-items:center; gap:5px;
    padding:3px 10px; border-radius:999px;
    font-size:12px; font-weight:600; line-height:1.5;
    white-space:nowrap; text-decoration:none; vertical-align:middle;
  }
  .badge.badge-ramka { background:var(--card-2); border:1px solid var(--line); color:var(--muted); font-weight:500; }
  .g-chip, .kb-chip, .proj-chip, .emp-chip, .tk-chip, .site-chip, .cfg-chip,
  .wl-chip, .mt-chip, .doc-chip, .kb-przyp-chip {
    background:var(--card-2); border:1px solid var(--line); color:var(--muted); font-weight:500;
  }
  a.g-chip:hover, a.kb-chip:hover, a.proj-chip:hover, a.emp-chip:hover, a.tk-chip:hover,
  a.site-chip:hover, a.cfg-chip:hover, a.doc-chip:hover, a.kb-przyp-chip:hover {
    border-color:var(--accent); color:var(--accent); text-decoration:none;
  }
  .wl-chip.wl-chip-w { color:#b45309; border-color:#f59e0b55; }
  .wl-chip.wl-chip-b { color:#b91c1c; border-color:#ef444455; }
  .tk-chip.tk-chip-dep { color:var(--accent); border-color:var(--accent-soft); }
  :root[data-theme="dark"] .wl-chip.wl-chip-w { color:#fcd34d; }
  :root[data-theme="dark"] .wl-chip.wl-chip-b { color:#fca5a5; }
  .badge:has(.badge-x), .proj-chip:has(.proj-chip-x), .dz-chip:has(.dz-chip-x) { padding-right:4px; gap:4px; }
  .badge-x, .proj-chip-x, .dz-chip-x {
    flex:none; display:inline-flex; align-items:center; justify-content:center;
    width:18px; height:18px; margin:0; padding:0; border:0; border-radius:999px;
    background:none; color:inherit; opacity:.6; cursor:pointer; font:inherit; line-height:1;
  }
  .badge-x:hover, .proj-chip-x:hover, .dz-chip-x:hover { opacity:1; background:rgba(0,0,0,.08); filter:none; }
  :root[data-theme="dark"] .badge-x:hover, :root[data-theme="dark"] .proj-chip-x:hover,
  :root[data-theme="dark"] .dz-chip-x:hover { background:rgba(255,255,255,.14); }
  .badge-x svg, .proj-chip-x svg, .dz-chip-x svg { width:12px; height:12px; }
  .rzd-chips{display:flex;flex-wrap:wrap;gap:8px}
  .rzd-chip{display:inline-flex;align-items:center;gap:8px;padding:7px 16px;border:1px solid var(--line);
            border-radius:999px;background:var(--card);font-size:13px;line-height:1.35;cursor:pointer;transition:.12s}
  .rzd-chip:hover{border-color:var(--accent);color:var(--accent)}
  .rzd-chip input{flex:none;margin:0}
  .rzd-chip:has(input:checked){background:var(--accent-soft);border-color:var(--accent);color:var(--accent);font-weight:600}
  .rzd-chip:has(input:focus-visible){outline:2px solid var(--accent-soft);outline-offset:2px}
  .rzd-chip.on{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);font-weight:600}
  a.rzd-chip:hover{text-decoration:none}
  .rzd-chip small{opacity:.7;font-weight:400}
  .rzd-chip.off{opacity:.5;cursor:not-allowed}
  .jz-blk{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
  .jz-sec{margin-top:4px}
  .jz-sec .lw-toggle{margin:8px 0 14px}
  .jz-grp{margin-top:14px}
  .jz-grp-t{display:block;margin-bottom:6px;font-size:12px;font-weight:600;color:var(--muted)}
  .jz-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:8px;margin-bottom:8px}
  .jz-one{width:100%;margin-bottom:8px}
  .jz-opts{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));margin:10px 0 4px}
  .jz-opt{display:flex;align-items:center;gap:9px;margin:0;padding:9px 12px;border:1px solid var(--line);
    border-radius:12px;background:var(--card);cursor:pointer;font-size:13.5px;transition:border-color .12s}
  .jz-opt:hover{border-color:var(--accent)}
  .jz-opt:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
  .jz-flag{font-size:16px;line-height:1}
  .rz-form{display:contents}
  .rzd-sec{padding:var(--pad-card)}
  .rzd-head{margin-bottom:14px}
  .rzd-head strong{font-size:14.5px;font-weight:650}
  .rzd-n{flex:none;min-width:20px;padding:1px 7px;border-radius:999px;background:var(--line);
         color:var(--muted);font-size:11.5px;font-weight:600;text-align:center}
  .rzd-head-a{margin-left:auto;display:inline-flex;align-items:center;gap:10px;flex:0 1 auto;min-width:0}
  .rzd-head{min-width:0}
  .rzd-head strong{flex:none}
  .rzd-head-a .rz-addbtn{margin:0}
  .rzd-hint{margin:0 0 12px;font-size:12.5px;line-height:1.5}
  .rzd-hint:last-child{margin-bottom:0}
  .rzd-i{position:relative;flex:none;display:inline-flex;align-items:center;justify-content:center;
         width:24px;height:24px;border:1.5px solid var(--line);border-radius:50%;background:var(--card);
         color:var(--muted);font-size:13px;font-weight:700;font-style:normal;line-height:1;
         cursor:default;-webkit-user-select:none;user-select:none}
  .rzd-i:hover,.rzd-i:focus{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);outline:none}
  .rzd-i::after{content:attr(data-tip);position:absolute;z-index:40;bottom:calc(100% + 8px);left:-8px;
    width:max-content;max-width:min(340px,72vw);padding:10px 13px;border:1px solid var(--line);
    border-radius:13px;background:var(--card);color:var(--text);box-shadow:0 12px 32px rgba(0,0,0,.18);
    font-size:12.5px;font-weight:400;line-height:1.5;text-align:left;white-space:normal;
    opacity:0;visibility:hidden;transition:opacity .12s ease;pointer-events:none}
  .rzd-i:hover::after,.rzd-i:focus::after{opacity:1;visibility:visible}
  :root[data-tip="js"] .rzd-i::after{content:none}
  .rzd-tip{position:fixed;z-index:90;left:0;top:0;max-width:min(340px,calc(100vw - 24px));
    padding:10px 13px;border:1px solid var(--line);border-radius:13px;background:var(--card);
    color:var(--text);box-shadow:0 12px 32px rgba(0,0,0,.22);font-size:12.5px;line-height:1.5;
    text-align:left;opacity:0;visibility:hidden;transition:opacity .12s ease;pointer-events:none}
  .rzd-tip.on{opacity:1;visibility:visible}
  .rzd-fold{padding:0}
  .rzd-fold > summary{list-style:none;display:flex;align-items:center;gap:10px;margin:0;padding:18px 20px;cursor:pointer}
  .rzd-fold > summary::-webkit-details-marker{display:none}
  .rzd-fold > summary:hover{color:var(--accent)}
  .rzd-fold > summary strong{font-size:14.5px;font-weight:650}
  .rzd-fold[open] > summary{padding-bottom:10px}
  .rzd-fold-x{margin-left:auto;flex:none;color:var(--muted);display:inline-flex;transition:transform .15s ease}
  .rzd-fold-x svg{width:18px;height:18px}
  .rzd-fold[open] .rzd-fold-x{transform:rotate(90deg)}
  .rzd-fold-b{padding:0 20px 18px}
  .rzd-sum-lead{margin:0 0 16px;font-size:12.5px;line-height:1.5}
  .rzd-sum-r{display:flex;gap:12px;align-items:baseline;padding:6px 0;border-bottom:1px solid var(--line)}
  .rzd-sum-r:last-child{border-bottom:0}
  .rzd-sum-r > span{flex:none;width:110px;font-size:12.5px}
  .rzd-sum-r > b{min-width:0;font-weight:600;font-size:13.5px;overflow-wrap:anywhere}
  .rzd-sum-hint{margin-top:10px}
  .rz-f{margin-bottom:18px}
  .rz-f:last-child{margin-bottom:0}
  .rz-f > label,.rz-fl > label{display:block;margin:0 0 6px;font-size:13px;line-height:24px;color:var(--muted)}
  .rz-fl{display:flex;align-items:center;gap:6px;margin:0 0 6px}
  .rz-fl > label{margin:0}
  .rz-f > input,.rz-f > select,.rz-f > textarea{width:100%;margin:0;border-radius:999px;padding-left:16px;padding-right:16px}
  .rz-f > select{padding-right:40px;background-position:right 16px center}
  .rz-f > textarea{border-radius:16px;padding-left:15px;padding-right:15px}
  .rzd-desc{padding-left:15px;padding-right:15px}
  .rzd-grid{display:grid;gap:18px;grid-template-columns:repeat(2,minmax(0,1fr))}
  @media (max-width:720px){.rzd-grid{grid-template-columns:1fr}}
  .rzd-grid > .rz-f-wide{grid-column:1/-1}
  .rzd-grid3{display:grid;gap:14px;grid-template-columns:1fr 1fr 1fr}
  @media (max-width:640px){.rzd-grid3{grid-template-columns:1fr}}
  .rzd-desc{width:100%;margin:0;min-height:132px;resize:vertical;border-radius:16px}
  .cal-ico input{border-radius:999px}
  .rzd-grp + .rzd-grp{margin-top:14px}
  .rzd-grp-t{margin:0 0 8px;font-size:11.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);font-weight:600}
  .dt-pair{display:flex;flex-wrap:wrap;gap:6px}
  .dt-pair-d{flex:2 1 140px;min-width:0}
  .dt-pair-t{flex:1 1 96px;min-width:0}
  .dt-pair input{min-width:0;width:100%}
  @media (max-width:560px){
    .dt-pair-d{flex:1.35 1 0}
    .dt-pair .cal-ico input{padding-left:30px}
    .dt-pair .cal-ico-b{left:5px;width:22px}
  }
  .rz-f > input,.rz-f > select,.rz-f .cal-ico input,.rz-f .rzd-cin{height:40px}
  .rz-f > select:not([multiple]):not([size]),
  .aq-a select,
  .svcd-upform select,
  .eng-simple .rzd-grid > div > select
  {padding-top:0;padding-bottom:0}
  .rzd-grid > .rz-f,.lw-dt > .rz-f{margin-bottom:0}
  .rzd-rows{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--card)}
  .rzd-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(160px,1.7fr) 44px;align-items:stretch}
  .rzd-row + .rzd-row,.rzd-rows > div > .rzd-row{border-top:1px solid var(--line)}
  .rzd-rowhead{padding:0;background:var(--card-2)}
  .rzd-rowhead span{padding:9px 16px;font-size:11px;font-weight:600;letter-spacing:.05em;
    text-transform:uppercase;color:var(--muted)}
  .rzd-in,
  .rzd-rows .rzd-row > input:not([type="checkbox"]):not([type="radio"]),
  .rzd-rows .rzd-row > select{width:100%;height:46px;margin:0;padding:0 16px;border:0;border-radius:0;
    background-color:transparent;font-size:14px}
  .rzd-rows .rzd-row > select{padding-right:34px;background-position:right 12px center}
  .rzd-rows .rzd-row > .rzd-combo > .rzd-cin{height:46px;padding:0 16px;border:0;border-radius:0;
    background-color:transparent}
  .rzd-rows .rzd-row > .rzd-combo > .rzd-cclear{display:none}
  .rzd-in::placeholder{color:var(--muted);opacity:.65}
  .rzd-in-k{font-weight:600}
  .rzd-in:focus,
  .rzd-rows .rzd-row > input:focus,
  .rzd-rows .rzd-row > select:focus,
  .rzd-rows .rzd-row > .rzd-combo > .rzd-cin:focus{background-color:var(--accent-soft);outline:0;box-shadow:none}
  .rzd-rm,
  .rzd-rows .rzd-row > .rzd-rowx{width:44px;height:auto;margin:0;padding:0;border:0;border-radius:0;
    background:transparent;color:var(--muted);cursor:pointer;display:flex;align-items:center;
    justify-content:center;opacity:.5;transition:.12s}
  .rzd-row:hover .rzd-rm,.rzd-row:focus-within .rzd-rm,
  .rzd-rows .rzd-row:hover > .rzd-rowx,.rzd-rows .rzd-row:focus-within > .rzd-rowx{opacity:1}
  .rzd-rm:hover,.rzd-rows .rzd-row > .rzd-rowx:hover{color:#ef4444;background:transparent;filter:none}
  .rzd-rm .ic svg,.rzd-rowx .ic svg{width:15px;height:15px}
  .rzd-rowx{width:40px;height:40px;margin:0;padding:0;border:1px solid var(--line);
    border-radius:999px;background:var(--card);color:var(--muted);font-size:18px;line-height:1;cursor:pointer}
  .rzd-rowx:hover{border-color:#dc2626;color:#dc2626;filter:none}
  @media (max-width:560px){
    .rzd-row:not(.zst-row){grid-template-columns:minmax(0,1fr) 44px}
    .rzd-rm,.rzd-rows .rzd-row:not(.zst-row) > .rzd-rowx{grid-column:2;grid-row:1 / span 2}
    .rzd-in,.rzd-rows .rzd-row > input:not([type="checkbox"]):not([type="radio"]),
    .rzd-rows .rzd-row > select,.rzd-rows .rzd-row > .rzd-combo > .rzd-cin{height:40px}
    .rzd-rowhead:not(.zst-row) span:nth-child(n+2){display:none}
  }
  .rz-addbtn{display:inline-flex;align-items:center;gap:6px;margin:12px 0 0;padding:8px 14px;border:1px dashed var(--line);
             border-radius:999px;background:none;color:var(--muted);font:inherit;font-size:13px;cursor:pointer}
  .rz-addbtn .ic svg{width:14px;height:14px}
  .rz-addbtn:hover{border-color:var(--accent);color:var(--accent);filter:none}
  .rzd-bar{display:flex;align-items:center;gap:10px;margin:18px 0 96px;padding-top:16px;border-top:1px solid var(--line)}
  .rzd-bar-r{margin-left:auto;display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
  .rzd-bar-r .rzd-btn-save{order:2}
  .rzd-bar .btn-pill{margin:0}
  .rzd-bar a.btn-pill{display:inline-flex;align-items:center;justify-content:center;gap:8px;
    text-decoration:none;white-space:nowrap}
  .rzd-bar-del{order:-1;margin-right:auto}
  .rzd-bar-flat{margin-bottom:0}
  @media (max-width:560px){.rzd-bar{flex-wrap:wrap}.rzd-bar-r{width:100%;margin-left:0}}
  .rzd-save-b{display:inline-flex;align-items:center;gap:8px;height:42px;margin:0;padding:0 18px;border:0;
              border-radius:999px;background:var(--accent);color:var(--accent-ink);box-shadow:var(--shadow);
              font-size:13.5px;font-weight:650;cursor:pointer}
  .rzd-save-b:hover{filter:brightness(1.06)}
  .rzd-save-b svg{width:16px;height:16px}
  @media (max-width:640px){
    .topbar-slot .tb-extra:has(.rzd-save-b){display:inline-flex}
    .rzd-save-b span{display:none}
    .rzd-save-b{width:38px;height:38px;padding:0;justify-content:center}
  }
  .rzd-combo{position:relative}
  .rzd-combo .rzd-combo-native{position:absolute;opacity:0;pointer-events:none;height:0;padding:0;border:0}
  .rzd-cin{width:100%;margin:0;border-radius:999px;padding-left:16px;padding-right:40px}
  .rzd-cclear{position:absolute;top:50%;right:8px;transform:translateY(-50%);width:28px;height:28px;padding:0;margin:0;
              border:0;border-radius:999px;background:transparent;color:var(--muted);cursor:pointer;
              display:flex;align-items:center;justify-content:center}
  .rzd-cclear[hidden]{display:none}
  .rzd-cclear:hover{background:var(--card-2);color:var(--text);filter:none}
  .rzd-cclear .ic svg{width:14px;height:14px}
  .rzd-cpop{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 6px);padding:6px;
            background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 32px rgba(0,0,0,.16);
            max-height:min(50dvh,320px);overflow:auto}
  .rzd-copt{display:flex;flex-direction:column;gap:1px;padding:9px 13px;border-radius:12px;cursor:pointer;font-size:14px}
  .rzd-copt small{font-size:12px;color:var(--muted)}
  .rzd-copt:hover,.rzd-copt.on{background:var(--accent-soft);color:var(--accent)}
  .rzd-cnone{padding:9px 13px;font-size:13px;color:var(--muted)}
  .rzd-cin.rzd-cbad{border-color:#dc2626;box-shadow:0 0 0 3px rgba(220,38,38,.14)}
  .rzd-cwarn{margin:6px 0 0;font-size:12px;color:#dc2626}
  .rzd-cwarn[hidden]{display:none}
  :root[data-theme="dark"] .rzd-cwarn{color:#fca5a5}
  .mpk{position:relative}
  .mpk-src{display:flex;flex-direction:column;gap:2px}
  .mpk.is-js .mpk-src{display:none}
  .mpk-box{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:44px;padding:6px 8px;
           border:1px solid var(--line);border-radius:16px;background:var(--field,var(--card));cursor:text}
  .mpk-box:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
  .mpk-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:4px 4px 4px 11px;border-radius:999px;
            background:var(--card-2);border:1px solid var(--line);font-size:12.5px;line-height:1.2}
  .mpk-chip > .ic svg,.mpk-chip .dd-dot{width:13px;height:13px;flex:none}
  .mpk-chip-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mpk-chip-new{border-style:dashed;color:var(--accent)}
  .mpk-x{flex:none;width:19px;height:19px;padding:0;margin:0;border:0;border-radius:999px;background:transparent;
         color:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;line-height:1}
  .mpk-x:hover{background:var(--line);color:var(--text);filter:none}
  .mpk-in{flex:1 1 140px;min-width:120px;height:30px;margin:0;padding:0 6px;border:0;background:transparent;font-size:14px}
  .mpk-in:focus{outline:none;box-shadow:none}
  .mpk-pop{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 6px);padding:6px;
           background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 32px rgba(0,0,0,.16);
           max-height:min(52dvh,340px);overflow:auto}
  .mpk-opt{display:flex;align-items:center;gap:9px;padding:9px 12px;border-radius:12px;cursor:pointer;font-size:14px}
  .mpk-opt > .ic svg,.mpk-opt .dd-dot{width:15px;height:15px;flex:none;color:var(--muted)}
  .mpk-opt small{margin-left:auto;padding-left:10px;font-size:11.5px;color:var(--muted);white-space:nowrap}
  .mpk-opt:hover,.mpk-opt.on{background:var(--accent-soft);color:var(--accent)}
  .mpk-opt.on > .ic svg{color:var(--accent)}
  .mpk-nav{font-weight:600}
  .mpk-nav .mpk-car{margin-left:10px;display:inline-flex;color:var(--muted)}
  .mpk-nav .mpk-car svg{width:14px;height:14px}
  .mpk-none{padding:9px 12px;font-size:13px;color:var(--muted)}
  .mpk-hint{margin:6px 0 0;font-size:12px;color:var(--muted)}
  .lead-table.adm-table .col-name{width:24%}
  .lead-table.adm-table .col-status{width:13%}
  .lead-table.adm-table .col-client{width:20%}
  .lead-table.adm-table .col-num{width:9%}
  .lead-table.adm-table .col-mods{width:25%}
  @media (max-width:600px){
    .lead-table.adm-table .col-client,.lead-table.adm-table .col-mods{display:none}
    .lead-table.adm-table .col-users{display:none}
    .lead-table.adm-table .col-status{display:table-cell;width:34%}
    .lead-table.adm-table .col-name{width:48%}
    .lead-table.adm-table .col-num{width:18%}
  }
  .tw-mods{display:flex;flex-wrap:wrap;gap:8px}
  .tw-chip-ro{cursor:default;padding:7px 14px}
  .ai-fab { position:fixed; right:24px; bottom:24px; z-index:39; text-decoration:none;
    background:var(--card); color:var(--accent); border:1px solid var(--line); box-shadow:var(--shadow);
    transition:bottom .16s ease, opacity .14s ease, transform .14s ease; }
  .shell:has(.content .cal-fab, .content .emp-fab, .content .fab) .ai-fab { bottom:94px; }
  .shell:has(.content .mmv) .ai-fab { bottom:var(--fab-plotno, 70px); }
  .shell:has(.content .proj-chatfab) .ai-fab { bottom:94px; }
  .shell:has(.content .proj-chatfab):has(.content .cal-fab:not(.proj-chatfab), .content .emp-fab, .content .fab) .ai-fab { bottom:164px; }
  @media (max-width:719px){
    .shell:has(.content .mm-props:not([hidden])) .ai-fab { bottom:104px; }
  }
  .shell:has(.content .cal-fab-menu[open]) .ai-fab { opacity:0; transform:scale(.85); pointer-events:none; }
  .ai-fab:hover { border-color:var(--accent); filter:none; text-decoration:none; }
  .ai-fab .ic svg { width:24px; height:24px; }
  @media (min-width:1000px){ .shell:has(.content .sup-conv) .ai-fab { right:calc(380px + 38px); } }
  @media (min-width:1400px){ .shell:has(.content .sup-conv) .ai-fab { right:calc(440px + 38px); } }
  @media (min-width:1000px){ .shell:has(.content .proj-chatdock) .ai-fab { right:calc(var(--dock-w) + var(--dock-gap) * 2); } }
  @media (max-width:999px){ .shell:has(.content .sup-conv) .ai-fab { display:none; } }
  @media (max-width:600px){
    .shell:has(.content .cal-fab-menu) .ai-fab { right:16px; bottom:86px; }
    .shell:has(.content .proj-chatfab) .ai-fab { right:16px; bottom:86px; }
    .shell:has(.content .edx-fab) .ai-fab { right:16px; bottom:86px; }
    .shell:has(.content .proj-chatfab):has(.content .cal-fab:not(.proj-chatfab), .content .emp-fab, .content .fab) .ai-fab { bottom:156px; }
  }
  .ai-bar { display:flex; align-items:center; gap:10px; }
  .ai-bar .ai-go { margin-left:auto; display:inline-flex; align-items:center; gap:8px; border-radius:999px; padding:11px 20px; }
  .ai-mic { width:44px; height:44px; flex:none; border-radius:999px; border:1px solid var(--line);
    background:var(--card-2); color:var(--text); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
  .ai-mic:hover { border-color:var(--accent); color:var(--accent); }
  .ai-mic.rec { background:#e5484d; border-color:#e5484d; color:#fff; animation:ai-pulse 1.1s ease-in-out infinite; }
  @keyframes ai-pulse { 50% { opacity:.6 } }
  .ai-hint { font-size:13px; }
  .ai-out:empty { display:none; }
  .ai-out { margin-top:14px; }
  .ai-err { margin:0; padding:11px 13px; border-radius:12px; background:var(--card-2); border:1px solid var(--line); color:var(--muted); font-size:14px; }
  .ai-card { border:1px solid var(--line); border-radius:var(--radius); padding:14px; background:var(--card-2); }
  .ai-head { display:flex; align-items:center; gap:8px; margin-bottom:4px; }
  .ai-head .ic svg { width:18px; height:18px; }
  .ai-tag { margin-left:auto; font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); }
  .ai-row { display:flex; gap:12px; flex-wrap:wrap; }
  .ai-row > span { flex:1 1 160px; display:flex; flex-direction:column; }
  .ai-link { display:flex; align-items:center; gap:7px; margin:2px 0 0; font-size:13px; color:var(--muted); }
  .ai-link .ic svg { width:15px; height:15px; }
  .ai-more summary { cursor:pointer; font-size:13px; color:var(--muted); padding:4px 0; }
  .ai-pick-q { margin:0; font-size:13px; }
  .ai-picks { display:flex; flex-direction:column; gap:6px; }
  .ai-pick { display:flex; flex-direction:column; align-items:flex-start; gap:2px; width:100%;
    text-align:left; padding:9px 12px; border:1px solid var(--line); border-radius:12px;
    background:var(--card); color:var(--text); cursor:pointer; font:inherit; }
  .ai-pick:hover { border-color:var(--accent); color:var(--accent); }
  .ai-pick-n { font-weight:600; font-size:14px; }
  .ai-pick-s { font-size:12px; }
  .ai-one { display:flex; flex-direction:column; gap:2px; margin:2px 0 0; font-size:14px; }
  .ai-one .muted { font-size:12px; }
.au-szukajka{margin-bottom:14px}
.au-szukajka input{width:100%;max-width:420px}
.au-siatka{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.au-kafel{display:flex;flex-direction:column;gap:6px;text-align:left;padding:12px 14px;
  border:1px solid var(--line);border-radius:var(--radius);background:var(--card);
  color:var(--text);text-decoration:none;font:inherit;cursor:pointer}
.au-kafel:hover{border-color:var(--accent)}
.au-kafel[hidden]{display:none}
.au-top{display:flex;align-items:center;gap:8px}
.au-top .ic svg{width:18px;height:18px}
.au-nazwa{font-weight:700;flex:1;overflow-wrap:anywhere}
.au-kiedy{font-size:12px;color:var(--muted)}
.au-opis{font-size:12px;color:var(--muted);margin:0;overflow-wrap:anywhere}
.au-ostatnio{font-size:12px;color:var(--muted)}
.au-zle{color:#dc2626}
.au-stan{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;
  font-size:11px;font-weight:700;white-space:nowrap;background:var(--card-2);color:var(--muted)}
.au-on{background:rgba(34,150,83,.14);color:#1f8a4c}
.auv .mm-vp{cursor:default}
.auv .mm-vp.is-panning{cursor:grabbing}
.auv .mm-vp.is-select{cursor:crosshair}
.au-n{overflow:visible;padding:8px 12px;gap:9px;cursor:grab}
.au-n.is-off{opacity:.5;border-style:dashed}
.au-n-ic{display:flex;flex:0 0 auto;color:var(--muted)}
.au-n-ic svg{width:18px;height:18px}
.au-n-txt{display:flex;flex-direction:column;min-width:0;flex:1}
.au-n-tit{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.au-n-sub{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.au-g-wyzwalacz{border-left:4px solid var(--accent)}
.au-g-dane{border-left:4px solid #2f8fd8}
.au-g-przeplyw{border-left:4px solid #b45309}
.au-g-akcja{border-left:4px solid #1f8a4c}
.au-d{cursor:grab}
.au-p{position:absolute;width:12px;height:12px;border-radius:50%;background:var(--card);
  border:2px solid var(--muted);box-sizing:border-box}
.au-p-in{left:-7px;top:50%;margin-top:-6px}
.au-p-out{right:-7px;margin-top:-6px;cursor:crosshair;background:var(--accent);border-color:var(--accent)}
.au-p-out:hover{transform:scale(1.4)}
.au-elab{font-size:10px;fill:var(--muted)}
.au-ex{fill:#dc2626;pointer-events:all;cursor:pointer}
.au-ex-t{fill:#fff;font-size:13px;font-weight:700;pointer-events:none}
.auv .mm-save{right:auto;left:12px;top:12px}
.auv .mm-hint{left:14px;top:52px;bottom:auto;max-width:min(40vw,420px)}
@media (max-width:1100px){ .auv .mm-hint{display:none} }
.auv .mm-rel.is-cel{stroke:var(--accent);stroke-width:4}
.au-noscript{position:absolute;left:50%;top:16px;transform:translateX(-50%);z-index:9;margin:0;
  padding:8px 14px;border-radius:999px;background:var(--card);border:1px solid var(--line);font-size:12px}
.au-cap{position:absolute;left:50%;transform:translateX(-50%);z-index:8;display:flex;
  align-items:center;gap:2px;padding:5px;border:1px solid var(--line);border-radius:999px;
  background:var(--card);box-shadow:0 10px 28px rgba(0,0,0,.16);max-width:min(96%,760px);
  flex-wrap:wrap;justify-content:center}
.au-bar{bottom:12px}
.au-sel{bottom:62px}
.au-sel[hidden]{display:none}
.au-cap .mm-t[hidden]{display:none}
.au-formy{display:flex;gap:2px;margin:0}
.au-b{margin:0;padding:0 14px;height:32px;border:0;border-radius:999px;background:transparent;
  color:var(--muted);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;white-space:nowrap}
.au-b:hover{background:var(--card-2);color:var(--text)}
.au-b-mocny{background:var(--accent);color:#fff}
.au-b-mocny:hover{background:var(--accent);color:#fff;filter:brightness(1.06)}
.au-wl.is-on{background:rgba(34,150,83,.16);color:#1f8a4c}
.au-t-uwaga{position:relative;color:#b45309}
.au-lic{position:absolute;right:1px;top:1px;min-width:14px;height:14px;padding:0 3px;
  border-radius:999px;background:#b45309;color:#fff;font-size:9px;font-weight:700;line-height:14px}
.au-side{position:absolute;right:12px;top:12px;bottom:64px;z-index:9;width:320px;display:flex;
  flex-direction:column;border:1px solid var(--line);border-radius:24px;background:var(--card);
  box-shadow:0 14px 34px rgba(0,0,0,.2);overflow:hidden}
.au-side[hidden]{display:none}
.shell:has(.content .auv .au-side:not([hidden])) .ai-fab{display:none}
.au-side-h{display:flex;align-items:center;gap:8px;padding:12px 10px 12px 18px;border-bottom:1px solid var(--line)}
.au-side-t{flex:1;display:flex;align-items:center;gap:7px;min-width:0;font-weight:700;font-size:13.5px}
.au-side-nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.au-side-b{flex:1;overflow:auto;padding:14px 14px 18px}
.au-side-b[hidden]{display:none}
.au-side-grupa{font-size:11px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;
  color:var(--muted);margin:14px 4px 5px}
.au-side-grupa:first-child{margin-top:2px}
.au-szuk{width:100%;height:38px;margin:0 0 10px;padding:0 14px;border-radius:999px;font-size:13px}
.au-i{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:17px;height:17px;
  margin:0;padding:0;border:1px solid var(--line);border-radius:999px;background:var(--card-2);
  color:var(--muted);font:inherit;font-size:10.5px;font-weight:700;line-height:1;cursor:pointer}
.au-i:hover{border-color:var(--accent);color:var(--accent)}
.au-i.is-on{border-color:var(--accent);background:var(--accent);color:#fff}
.au-i-txt{margin:0 0 8px;padding:9px 13px;border-radius:14px;background:var(--card-2);
  font-size:11.5px;line-height:1.5;color:var(--muted)}
.au-i-txt[hidden]{display:none}
.au-fields{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--card)}
.au-pole{display:flex;flex-direction:column;gap:6px;margin:0;padding:11px 14px 13px}
.au-pole + .au-pole{border-top:1px solid var(--line)}
.au-pole-h{display:flex;align-items:center;gap:6px}
.au-etykieta{flex:1;font-size:11px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--muted)}
.au-pole input,.au-pole textarea,.au-pole select{width:100%;height:38px;margin:0;padding:0 13px;
  border:1px solid transparent;border-radius:13px;background:var(--card-2);font-size:13.5px;color:var(--text)}
.au-pole textarea{height:auto;padding:9px 13px;border-radius:15px;line-height:1.45}
.au-pole select{padding-right:30px}
.au-pole input:focus,.au-pole textarea:focus,.au-pole select:focus{outline:0;border-color:var(--accent);
  background:var(--card);box-shadow:none}
.au-dni{display:flex;flex-wrap:wrap;gap:5px}
.au-dzien{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border:1px solid var(--line);
  border-radius:999px;font-size:12px;background:var(--card);cursor:pointer}
.au-dzien:has(input:checked){border-color:var(--accent);background:var(--accent-soft, var(--card-2))}
.au-chips{display:flex;flex-wrap:wrap;gap:5px}
.au-chips-wstaw{margin:2px 0 0}
.au-chip{display:inline-flex;align-items:center;gap:4px;margin:0;padding:4px 10px;border:1px solid var(--line);
  border-radius:999px;font-size:11px;background:var(--card);color:var(--muted);cursor:pointer}
.au-chip.is-on{border-color:var(--accent);color:var(--text);background:var(--accent-soft, var(--card-2))}
.au-chip input[type][type]{display:none}
.au-poz-w{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:1px 0}
.au-poz{display:flex;flex:1;align-items:center;justify-content:flex-start;gap:10px;min-width:0;
  text-align:left;margin:0;padding:9px 12px;
  border:1px solid transparent;border-radius:16px;background:none;color:var(--text);cursor:pointer}
.au-poz:hover{border-color:var(--accent);background:var(--card-2)}
.au-poz .ic{display:flex;color:var(--muted)}
.au-poz svg{width:16px;height:16px}
.au-poz-nazwa{display:block;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.au-poz-w .au-i-txt{flex-basis:100%;margin:2px 0 8px}
.au-uwagi{border:1px solid rgba(226,158,29,.5);background:rgba(226,158,29,.10);
  border-radius:16px;padding:10px 14px;margin-bottom:12px}
.au-uwagi p{margin:2px 0;font-size:12.5px}
.au-run{border:1px solid var(--line);border-radius:16px;padding:9px 13px;margin-bottom:7px;background:var(--card)}
.au-run summary{display:flex;flex-wrap:wrap;gap:2px 10px;font-size:12.5px;cursor:pointer}
.au-run-kiedy{font-weight:600}
.au-run-tryb{color:var(--muted)}
.au-run pre{white-space:pre-wrap;font-size:11.5px;margin:8px 0 4px;overflow-wrap:anywhere}
@media (max-width:719px){
  .au-side{left:8px;right:8px;top:auto;bottom:136px;width:auto;max-height:48%}
  .au-bar{left:8px;right:8px;bottom:8px;transform:none;max-width:none}
  .au-sel{left:8px;right:8px;bottom:80px;transform:none;max-width:none}
  :root:has(.auv){--fab-plotno:118px}
  .shell:has(.content .auv) .ai-fab{display:none}
  .au-b{padding:0 10px}
  .au-sel .mm-props-n{display:none}
}
:root[data-theme="dark"] .au-on{color:#4ade80}
:root[data-theme="dark"] .au-zle{color:#f87171}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .au-on{color:#4ade80}
  :root:not([data-theme="light"]) .au-zle{color:#f87171}
}
  .cgrid-allday { border-bottom:1px solid var(--line); background:var(--card-2); max-height:104px; overflow-y:auto; }
  .cgrid-adcorner { display:flex; align-items:center; justify-content:flex-end; padding:4px 7px; font-size:10px;
    line-height:1.15; text-align:right; text-transform:uppercase; letter-spacing:.03em; color:var(--muted); }
  .cgrid-adcell { flex-direction:column; gap:3px; padding:4px; border-left:1px solid var(--line); min-height:26px; }
  .cgrid-adcell.cgrid-c1 { display:flex; }
  .cgrid-adev { display:flex; align-items:center; gap:4px; border-radius:8px; padding:2px 6px; font-size:12px;
    line-height:1.3; font-weight:600; text-decoration:none; overflow:hidden; }
  .cgrid-adev:hover { text-decoration:none; filter:brightness(.97); }
  .cgrid-adev-t { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cgrid-adev .ic svg { width:12px; height:12px; flex:0 0 auto; }
.rzd-sec .svc-cycle{display:none}
.rzd-sec:has(select[name="billing_type"] option[value="subscription"]:checked) .svc-cycle{display:block}
.svc-warianty{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.svc-war-row input:disabled{opacity:.6}
  .ct-tabs{margin-bottom:16px}
  .prd-grid .empty-tx{grid-column:1 / -1}
  .rzd-head .wh-toggle{margin:0}
  .svc-stan:has(> .rzd-head input[type="checkbox"]:not(:checked)) .svc-stan-b{display:none}
  .svc-swrow .stk-eqty{width:74px;margin:0;flex:none}
  .svc-swrow{display:flex;align-items:center;gap:12px;margin:0 0 18px}
  .svc-swrow:last-child{margin-bottom:0}
  .cl-sum-row{display:flex;gap:18px;flex-wrap:wrap;margin:0 0 14px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
  .cl-sum b{font-variant-numeric:tabular-nums}
  .cl-sum b.neg{color:var(--danger,#dc2626)}
  .kc-cost{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
  .kc-cost:last-child{border-bottom:0}
  .kc-cost-t{display:flex;flex-direction:column;gap:2px;min-width:0}
  .kc-cost-t b{font-weight:600}
  .kc-cost-a{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}
  .kc-cost form{display:inline}
  .kc-cost .lnk{background:none;border:0;padding:0;color:var(--muted);cursor:pointer;text-decoration:underline;font-size:.85em}
  .kc-cost .lnk:hover{color:var(--fg)}
  .cl-money{display:flex;gap:20px;flex-wrap:wrap;padding:4px 0 12px}
  .cl-money-i{display:flex;flex-direction:column;gap:2px}
  .cl-money-i b{font-size:1.15em;font-variant-numeric:tabular-nums}
  .cl-money-i b.neg{color:var(--danger,#dc2626)}
  .cl-note{white-space:normal;margin:0;padding:4px 0}
  .ll-edits{display:flex;flex-direction:column;gap:8px;margin-top:8px}
  .ll-edit{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:8px}
  @media (max-width:640px){.ll-edit{grid-template-columns:1fr}}
  .row-btns{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
  .kw-kinds{margin:0 0 16px}
  .kw-kindq{margin:0 0 8px;font-size:13px;font-weight:600}
  .kw-kinds:not(:has(input:checked)){border-style:dashed;border-color:var(--accent-soft)}
  .kw-rate{display:grid;gap:18px;grid-template-columns:repeat(4,minmax(0,1fr))}
  @media (max-width:900px){.kw-rate{grid-template-columns:repeat(2,minmax(0,1fr))}}
  @media (max-width:520px){.kw-rate{grid-template-columns:1fr}}
  .kw-rate > .rz-f,.kw-rate .kw-cyc > .rz-f{margin-bottom:0}
  .kw-rate:has(select[name="rate_billing"] option[value="service"]:checked) .kw-cyc,
  .kw-rate:has(select[name="rate_billing"] option[value="hour"]:checked) .kw-cyc{display:none}
  .lw-toggle:has(.lw-tog input[value="link"]:checked) ~ .dw-step1 .lw-pane[data-tryb="link"]{display:block}
  .lw-toggle:has(.lw-tog input[value="file"]:checked) ~ .dw-step1 .dw-opt{display:inline}
  .dw-opt{display:none}
  .dw-l{display:none}
  .dw-l-other{display:inline}
  .lw-toggle:has(.lw-tog input[value="note"]:checked) ~ .dw-step1 .dw-l-note{display:inline}
  .lw-toggle:has(.lw-tog input[value="note"]:checked) ~ .dw-step1 .dw-l-other{display:none}
  .lw-toggle:has(.lw-tog input[value="note"]:checked) ~ .dw-step1 .rzd-desc{min-height:150px}
  .eng-simple .rzd-grid > div > label{display:block;margin:0 0 6px;font-size:13px;color:var(--muted)}
  .eng-simple .rzd-grid > div > input,.eng-simple .rzd-grid > div > select{width:100%;margin:0;height:40px;
    border-radius:999px;padding-left:16px;padding-right:16px}
  .eng-simple .rzd-grid > div > select{padding-right:40px;background-position:right 16px center}
  .eng-simple .rzd-grid > .eng-cycle{display:none}
  .eng-simple .rzd-grid:has(select[name="billing_type"] option[value="subscription"]:checked) > .eng-cycle{display:block}
  .eng-simple .eng-newsvc:not([hidden]){display:flex;align-items:flex-start;gap:8px;margin:10px 0 0;font-size:13px}
  .eng-simple .eng-newsvc input{margin:2px 0 0;flex:none}
  .eng-simple .rzd-bar a.btn-pill{display:inline-flex;align-items:center;gap:7px;text-decoration:none}
  .eng-pay-sum{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0 0 12px;font-size:13px;color:var(--muted)}
  .eng-pay-sum b{font-size:15px;color:var(--text);font-variant-numeric:tabular-nums}
  .eng-pay-sum .due b{color:#dc2626}
  .eng-pay-sum .ok b{color:#059669}
  :root[data-theme="dark"] .eng-pay-sum .due b{color:#f87171}
  :root[data-theme="dark"] .eng-pay-sum .ok b{color:#34d399}
  .eng-pay-list{display:flex;flex-direction:column;gap:8px;margin:0 0 16px}
  .eng-pay-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto 30px;align-items:center;gap:10px;
    margin:0;padding:9px 14px;background:var(--card-2);border:1px solid var(--line);border-radius:14px}
  .eng-pay-d{font-size:12.5px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
  .eng-pay-t{min-width:0;font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .eng-pay-a{font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
  .eng-pay-row .rzd-rowx{width:30px;height:30px}
  .eng-pay-row .rzd-rowx .ic svg{width:13px;height:13px}
  .eng-pay .fin-check{margin-top:14px}
  .eng-pay-btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
  .eng-pay-btns .btn-pill{margin:0}
  @media (max-width:560px){
    .eng-pay-row{grid-template-columns:minmax(0,1fr) auto 30px;row-gap:2px}
    .eng-pay-d{grid-column:1/-1}
  }
  .kd-inline{display:contents}
  .rz-f > .ll-row{margin:0 0 8px}
  .rz-f > .ll-edits{display:flex;flex-direction:column;gap:8px}
  .kc-note-add{display:block;margin:0 0 16px}
  .kc-note-t{width:100%;margin:0;min-height:96px;resize:vertical;border-radius:16px;padding:11px 15px}
  .kc-note-add .rzd-bar{margin-top:12px}
  .kc-msgs{display:flex;flex-direction:column;gap:10px}
  .kc-msg{padding:12px 14px;border-radius:16px;background:var(--card-2);border:1px solid var(--line)}
  .kc-msg.in{border-left:3px solid var(--accent)}
  .kc-msg.out{margin-left:36px;background:var(--card)}
  .kc-msg-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;margin-bottom:6px}
  .kc-msg-t{margin-left:auto;font-variant-numeric:tabular-nums}
  .kc-msg-s{font-weight:650;font-size:14px;margin-bottom:4px}
  .kc-msg-b{font-size:13.5px;line-height:1.5;overflow-wrap:anywhere}
  @media (max-width:640px){.kc-msg.out{margin-left:0}.kc-msg-t{margin-left:0;width:100%}}
  .kb-sug{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0 0 14px}
  .kb-sug-l{font-size:12.5px;color:var(--muted);margin-right:2px}
  .kb-sug-c{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;
            border:1px solid var(--line);background:var(--card);color:var(--text);font-size:12.5px;text-decoration:none}
  .kb-sug-c:hover{border-color:var(--accent);color:var(--accent)}
  .kb-sug-c svg{width:13px;height:13px}
  .kb-sug-n{color:var(--muted);font-size:11px}
  .kb-act{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0 0 14px}
  .kb-act-c{display:inline-flex;align-items:center;gap:7px;padding:5px 8px 5px 13px;border-radius:999px;
            background:var(--accent-soft);color:var(--accent);font-size:12.5px;text-decoration:none}
  .kb-act-x{font-size:14px;line-height:1;opacity:.7}
  .kb-act-c:hover .kb-act-x{opacity:1}
  .kb-act-clr{font-size:12.5px;color:var(--muted);text-decoration:none}
  .kb-act-clr:hover{color:var(--accent)}
  .kb-act-n{margin-left:auto;font-size:12.5px;color:var(--muted)}
  .kb-sec{margin-bottom:22px}
  .kb-sec-h{display:flex;align-items:center;gap:9px;margin:0 0 10px;padding:0 2px}
  .kb-sec-t{font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
  .kb-sec-n{min-width:20px;padding:1px 7px;border-radius:999px;background:var(--card-2);color:var(--muted);
            font-size:11px;font-weight:600;text-align:center}
  .kb-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
  .kb-card{display:flex;flex-direction:column;gap:7px;padding:15px 17px;border:1px solid var(--line);
           border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow);
           color:var(--text);text-decoration:none;transition:border-color .12s,transform .12s}
  .kb-card:hover{border-color:var(--accent);transform:translateY(-1px)}
  .kb-card-h{display:flex;align-items:flex-start;gap:8px}
  .kb-card-t{flex:1;min-width:0;font-size:14.5px;font-weight:640;line-height:1.35}
  .kb-ok{flex:none;display:inline-flex;color:#16a34a}
  .kb-ok svg{width:15px;height:15px}
  :root[data-theme="dark"] .kb-ok{color:#4ade80}
  .kb-card-b{font-size:12.5px;line-height:1.5;color:var(--muted);
             display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .kb-card-m{margin-top:auto;padding-top:2px;font-size:11.5px;color:var(--muted)}
  .kb-nikt{display:flex;gap:10px;margin:0 0 12px;padding:10px 14px;border-radius:var(--radius);
           border:1px solid color-mix(in srgb,#f59e0b 40%,var(--line));
           background:color-mix(in srgb,#f59e0b 8%,transparent);font-size:13px;line-height:1.55}
  .kb-nikt svg{width:16px;height:16px;flex:none;color:#b45309;margin-top:2px}
  :root[data-theme="dark"] .kb-nikt svg{color:#fbbf24}
  .kb-chips{display:flex;flex-wrap:wrap;gap:6px}
  .kb-chip{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:3px 11px;border-radius:999px;
           background:var(--card-2);border:1px solid var(--line);font-size:11.5px;color:var(--muted);
           text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  a.kb-chip:hover{border-color:var(--accent);color:var(--accent)}
  .kb-chip svg{width:12px;height:12px;flex:none}
  .kb-chip-n{opacity:.75}
  .kb-find{position:sticky;top:0;z-index:6;max-width:820px;margin:0 auto 16px;
           padding:8px 0;background:var(--bg)}
  .kb-find-in{display:flex;align-items:center;gap:9px;height:42px;padding:0 16px;border-radius:999px;
              border:1px solid var(--line);background:var(--card);box-shadow:var(--shadow)}
  .kb-find-in svg{width:15px;height:15px;flex:none;color:var(--muted)}
  .kb-find-in input{flex:1;min-width:0;height:100%;margin:0;padding:0;border:0;background:transparent;
                    color:var(--text);font-size:14px;outline:none}
  .kb-find-in input::-webkit-search-cancel-button{filter:grayscale(1);opacity:.5}
  .kb-find-n{flex:none;font-size:11.5px;color:var(--muted);white-space:nowrap}
  .kb-find-res{display:flex;flex-direction:column;gap:6px;margin-top:8px;padding:8px;
               border:1px solid var(--line);border-radius:var(--radius);background:var(--card);
               box-shadow:var(--shadow)}
  .kb-find-r{display:flex;flex-direction:column;gap:2px;width:100%;padding:8px 12px;border:0;
             border-radius:12px;background:transparent;color:var(--text);text-align:left;cursor:pointer}
  .kb-find-r:hover{background:var(--accent-soft);filter:none}
  .kb-find-w{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
  .kb-find-t{font-size:13px;line-height:1.5;color:var(--muted);
             display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .kb-find-t b{color:var(--text);background:var(--accent-soft);border-radius:4px;padding:0 2px}
  .kb-find-more{padding:2px 12px 4px;font-size:11.5px;color:var(--muted)}
  mark.kb-hl{background:color-mix(in srgb,var(--accent) 26%,transparent);color:inherit;
             border-radius:4px;padding:0 2px}
  .kb-view{max-width:820px;margin:0 auto;interpolate-size:allow-keywords}
  .kb-view-h{margin:0 0 20px}
  .kb-view-h .kb-chips{margin-bottom:12px}
  .kb-lead{margin:0;font-size:18.5px;line-height:1.6;color:var(--muted)}
  .kb-ver{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;font-size:12.5px}
  .kb-ver svg{width:14px;height:14px}
  .kb-edit-b{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 17px;border-radius:999px;
             border:1px solid var(--line);background:var(--card);color:var(--text);box-shadow:var(--shadow);
             font-size:13.5px;font-weight:600;text-decoration:none}
  .kb-edit-b:hover{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);text-decoration:none}
  .kb-edit-b svg{width:17px;height:17px}
  @media (max-width:640px){
    .topbar-slot .tb-extra:has(.kb-edit-b){display:inline-flex}
    .tb-extra .kb-ver{display:none}
    .kb-edit-b span{display:none}
    .kb-edit-b{width:38px;height:38px;padding:0;justify-content:center}
  }
  .kb-blok{margin:0 0 34px}
  .kb-h2{margin:0 0 12px;font-size:21px;font-weight:700;line-height:1.3;letter-spacing:-.015em}
  .kb-h2-row{display:flex;align-items:baseline;gap:12px;margin-bottom:12px}
  .kb-h2-row .kb-h2{margin:0;flex:1;min-width:0}
  .kb-h2-x{flex:none;font-size:12.5px;color:var(--muted)}
  .kb-blok-tekst p{margin:0 0 14px;font-size:16px;line-height:1.8}
  .kb-blok-tekst p:last-child{margin-bottom:0}
  .kb-view strong{font-weight:680}
  .kb-view em{font-style:italic}
  .kb-view code{padding:1px 6px;border-radius:6px;background:var(--card-2);border:1px solid var(--line);
                font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em}
  .kb-mnt{display:inline;padding:1px 6px;border-radius:999px;font-size:.92em;font-weight:550;
          white-space:nowrap;box-decoration-break:clone;-webkit-box-decoration-break:clone}
  .kb-mnt-o{background:var(--accent-soft);color:var(--accent)}
  .kb-mnt-r{background:var(--card-2);box-shadow:inset 0 0 0 1px var(--line);color:var(--text)}
  .kb-mnt-o::before{content:"@";margin-right:1px;opacity:.5;font-weight:600}
  .kb-mnt-r::before{content:"/";margin-right:1px;opacity:.45;font-weight:600}
  .kb-uwaga{display:flex;gap:12px;padding:14px 16px;border-radius:var(--radius);
            border:1px solid color-mix(in srgb,#f59e0b 40%,var(--line));
            background:color-mix(in srgb,#f59e0b 8%,transparent)}
  .kb-uwaga > .ic{flex:none;color:#b45309}
  .kb-uwaga > .ic svg{width:18px;height:18px}
  .kb-uwaga strong{display:block;margin-bottom:4px;font-size:14px}
  .kb-uwaga p{margin:0 0 8px;font-size:14px;line-height:1.65}
  .kb-uwaga p:last-child{margin-bottom:0}
  :root[data-theme="dark"] .kb-uwaga > .ic{color:#fbbf24}
  .kb-fig{margin:0 0 26px}
  .kb-fig img{display:block;width:100%;height:auto;border-radius:var(--radius);border:1px solid var(--line)}
  .kb-fig figcaption{margin-top:8px;font-size:12.5px;color:var(--muted);text-align:center}
  .kb-fig-prev{margin-bottom:14px}
  .kb-fig-prev img{display:block;max-width:100%;max-height:220px;border-radius:12px;border:1px solid var(--line)}
  .kb-lista{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:11px}
  .kb-lista-i{display:flex;gap:12px}
  .kb-lista-d{flex:none;width:7px;height:7px;margin-top:8px;border-radius:999px;background:var(--accent)}
  .kb-lista-c{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
  .kb-lista-t{font-size:16px;line-height:1.6}
  .kb-lista-o{font-size:14.5px;line-height:1.65;color:var(--muted)}
  .kb-links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
  .kb-links a{display:flex;align-items:center;gap:9px;padding:11px 18px;border-radius:999px;
              border:1px solid var(--line);background:var(--card);color:var(--text);font-size:14px;text-decoration:none}
  .kb-links a:hover{border-color:var(--accent);color:var(--accent)}
  .kb-links svg{width:15px;height:15px;flex:none;color:var(--muted)}
  .kb-links span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .kb-qa{display:flex;flex-direction:column;gap:8px}
  .kb-qa-i{border:1px solid var(--line);border-radius:23px;background:var(--card);overflow:hidden}
  .kb-qa-q{display:flex;align-items:center;gap:12px;min-height:46px;padding:11px 20px;cursor:pointer;
           list-style:none;font-size:14.5px;font-weight:600}
  .kb-qa-q::-webkit-details-marker{display:none}
  .kb-qa-q > span:first-child{flex:1;min-width:0}
  .kb-qa-c{flex:none;display:inline-flex;color:var(--muted);transition:transform .2s ease}
  .kb-qa-c svg{width:16px;height:16px}
  .kb-qa-i:hover{border-color:var(--accent)}
  .kb-qa-i[open] > .kb-qa-q{color:var(--accent)}
  .kb-qa-i[open] > .kb-qa-q .kb-qa-c,
  .kb-tr[open] > .kb-tr-s .kb-qa-c,
  .kb-run[open] > .kb-run-s .kb-qa-c,
  .kb-more[open] > .kb-more-s .kb-qa-c{transform:rotate(180deg)}
  .kb-qa-i[open] .kb-qa-c{color:var(--accent)}
  .kb-qa-a{padding:0 20px 15px}
  .kb-qa-a p{margin:0 0 8px;font-size:14px;line-height:1.65}
  .kb-qa-a p:last-child{margin-bottom:0}
  .kb-qa-i::details-content,.kb-tr::details-content,.kb-run::details-content,.kb-more::details-content{
    block-size:0;overflow:hidden;transition:block-size .24s ease,content-visibility .24s allow-discrete}
  .kb-qa-i[open]::details-content,.kb-tr[open]::details-content,
  .kb-run[open]::details-content,.kb-more[open]::details-content{block-size:auto}
  @supports not selector(::details-content){
    .kb-qa-i[open] .kb-qa-a,.kb-tr[open] .kb-tr-b{animation:kbRozwin .2s ease}
    @keyframes kbRozwin{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
  }
  .kb-tr{border:1px solid var(--line);border-radius:23px;background:var(--card-2);overflow:hidden}
  .kb-tr-s{display:flex;align-items:center;gap:10px;min-height:46px;padding:11px 20px;cursor:pointer;
           list-style:none;font-size:13.5px;font-weight:600;color:var(--muted)}
  .kb-tr-s::-webkit-details-marker{display:none}
  .kb-tr-s > span:nth-child(2){flex:1;min-width:0}
  .kb-tr-s svg{width:15px;height:15px}
  .kb-tr-b{padding:0 20px 15px;font-size:13.5px;line-height:1.7;color:var(--muted);max-height:420px;overflow:auto}
  .kb-tr-b p{margin:0 0 10px}
  .kb-prep{display:flex;flex-direction:column;gap:10px;background:var(--card-2)}
  .kb-prep-r{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 12px}
  .kb-prep-l{display:inline-flex;align-items:center;gap:7px;min-width:150px;font-size:12px;font-weight:650;
             letter-spacing:.03em;text-transform:uppercase;color:var(--muted)}
  .kb-prep-l svg{width:14px;height:14px}
  .kb-prep-v{display:flex;flex-wrap:wrap;gap:6px;flex:1;min-width:0}
  .kb-tag{display:inline-flex;align-items:center;gap:5px;padding:3px 11px;border-radius:999px;
          background:var(--card);border:1px solid var(--line);font-size:12.5px}
  .kb-tag small{font-size:10.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
  .kb-tag-x{border-color:var(--accent);color:var(--accent)}
  .kb-tag-x small{color:inherit;opacity:.75}
  .kb-steps-l{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
  .kb-step{display:flex;gap:16px;padding:16px 0;border-top:1px solid var(--line)}
  .kb-step:first-child{border-top:0;padding-top:2px}
  .kb-step-n{flex:none;width:26px;height:26px;display:grid;place-items:center;border-radius:999px;
             background:var(--accent-soft);color:var(--accent);font-size:12px;font-weight:700}
  .kb-step-c{flex:1;min-width:0;display:flex;flex-direction:column;gap:7px}
  .kb-step-h{display:flex;align-items:baseline;gap:10px}
  .kb-step-t{flex:1;min-width:0;font-size:16px;font-weight:650;line-height:1.4}
  .kb-step-est{flex:none;display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--muted);white-space:nowrap}
  .kb-step-est svg{width:13px;height:13px}
  .kb-step-b{font-size:15px;line-height:1.7}
  .kb-step-b p{margin:0 0 8px}
  .kb-step-b p:last-child{margin-bottom:0}
  .kb-run{margin-top:8px;padding:0;overflow:hidden}
  .kb-run-s{display:flex;align-items:center;gap:11px;padding:15px 18px;cursor:pointer;list-style:none;font-size:14.5px}
  .kb-run-s::-webkit-details-marker{display:none}
  .kb-run-s strong{font-weight:650}
  .kb-run-s svg{width:17px;height:17px;color:var(--muted)}
  .kb-run-n{margin-left:auto;font-size:12.5px;color:var(--muted)}
  .kb-run .rzd-hint{margin:0 18px 6px}
  .kb-run-f{display:flex;flex-direction:column;gap:2px;padding:0 18px 16px}
  .kb-run-f .btn-pill{align-self:flex-start;margin-top:4px}
  .kb-foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:4px 4px 24px;font-size:12px;color:var(--muted)}
  .kb-foot-f{margin-left:auto}
  .kb-foot-b{margin:0;height:34px;padding:0 16px;display:inline-flex;align-items:center;gap:7px;font-size:12.5px}
  .kb-foot-b svg{width:14px;height:14px}
  .kb-body-empty{margin:0;font-size:13.5px;color:var(--muted)}
  .kb-blk-ops{display:flex;align-items:center;gap:4px}
  .kb-blk-b{width:30px;height:30px;margin:0;padding:0;display:inline-flex;align-items:center;justify-content:center;
            border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--muted);font-size:11px}
  .kb-blk-b:hover:not(:disabled){border-color:var(--accent);color:var(--accent);filter:none}
  .kb-blk-b:disabled{opacity:.35;cursor:default}
  .kb-blk-b svg{width:15px;height:15px}
  .kb-blk-up svg{transform:rotate(180deg)}
  .kb-blk-del:hover{border-color:#dc2626;color:#dc2626}
  .kb-rows{display:flex;flex-direction:column;gap:10px;margin-bottom:2px}
  .kb-rows-l{display:flex;flex-direction:column;gap:10px}
  .kb-rows:not([data-js]) .kb-row-add,.kb-rows:not([data-js]) .kb-row-x{display:none}
  .kb-row{display:flex;gap:10px;align-items:flex-start}
  .kb-row-n{flex:none;width:24px;height:24px;margin-top:8px;display:grid;place-items:center;border-radius:999px;
            background:var(--card-2);color:var(--muted);font-size:11px;font-weight:700}
  .kb-row-f{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
  .kb-row-f input,.kb-row-f textarea{width:100%;margin:0;border-radius:999px;padding-left:16px;padding-right:16px}
  .kb-row-f textarea{border-radius:16px;padding-left:15px;padding-right:15px;min-height:0;
                     field-sizing:content;max-height:320px}
  .kb-row-x{flex:none;width:30px;height:30px;margin:5px 0 0;padding:0;display:inline-flex;align-items:center;
            justify-content:center;border:1px solid transparent;border-radius:999px;background:transparent;color:var(--muted)}
  .kb-row-x:hover{border-color:#dc2626;color:#dc2626;background:var(--card);filter:none}
  .kb-row-x svg{width:14px;height:14px}
  .kb-row-ops{flex:none;display:flex;align-items:center;gap:4px;margin-top:5px}
  .kb-row-add{align-self:flex-start;margin:2px 0 0 34px;padding:7px 15px;display:inline-flex;align-items:center;gap:7px;
              border:1px dashed var(--line);border-radius:999px;background:transparent;color:var(--muted);font-size:12.5px}
  .kb-row-add:hover:not(:disabled){border-color:var(--accent);color:var(--accent);background:var(--card);filter:none}
  .kb-row-add svg{width:14px;height:14px}
  .kb-srow .kb-row-f{gap:7px}
  .kb-srow-h{display:flex;gap:8px;align-items:center}
  .kb-srow-h > input{flex:1;min-width:0}
  .kb-srow-e{flex:none;display:inline-flex;align-items:center;gap:6px;padding:0 12px 0 13px;height:38px;
             border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--muted)}
  .kb-srow-e svg{width:14px;height:14px}
  .kb-srow-e input{width:86px;margin:0;padding:0;border:0;background:none;color:var(--text);font:inherit;font-size:13px}
  .kb-srow-e input::-webkit-calendar-picker-indicator{display:none}
  .kb-srow-e:focus-within{border-color:var(--accent)}
  .kb-tabe{gap:0}
  .kb-tabe-w{overflow-x:auto;border:1px solid var(--line);border-radius:16px 16px 0 0;background:var(--card)}
  .kb-tabe table{width:100%;border-collapse:collapse}
  .kb-tabe th,.kb-tabe td{padding:0;border-left:1px solid var(--line);border-top:1px solid var(--line);
                          vertical-align:middle;position:relative}
  .kb-tabe thead th{border-top:0;background:var(--card-2)}
  .kb-tabe th:first-child,.kb-tabe td:first-child{border-left:0}
  .kb-tabe input{width:100%;min-width:118px;margin:0;padding:10px 13px;border:0;border-radius:0;
                 background:transparent;color:var(--text);font:inherit;font-size:14px;box-shadow:none}
  .kb-tabe input:focus{outline:2px solid var(--accent);outline-offset:-2px;background:var(--card)}
  .kb-tabe thead input{font-weight:650;font-size:13px}
  .kb-tabe-g{width:38px;min-width:38px;text-align:center;background:var(--card-2)}
  .kb-tabe-g .kb-row-n{margin:0 auto;background:transparent}
  .kb-grip{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
  .kb-grip:active{cursor:grabbing}
  .kb-tabe-g .kb-grip:hover{background:var(--accent-soft);color:var(--accent)}
  .kb-col-grip{position:absolute;top:50%;left:5px;transform:translateY(-50%);display:inline-flex;
               color:var(--muted);opacity:0;transition:opacity .12s}
  .kb-col-grip svg{width:13px;height:13px}
  .kb-tabe th:hover .kb-col-grip{opacity:.75}
  .kb-col-grip:hover{opacity:1;color:var(--accent)}
  .kb-tabe thead input{padding-left:24px}
  .kb-tabe-drag{cursor:grabbing;user-select:none;-webkit-user-select:none}
  .kb-tabe-drag input{pointer-events:none}
  .kb-tabe-plus{width:26px;height:26px;margin:0;padding:0;display:inline-flex;align-items:center;
                justify-content:center;border:1px dashed var(--line);border-radius:8px;background:var(--card);color:var(--muted)}
  .kb-tabe-plus:hover:not(:disabled){border-color:var(--accent);border-style:solid;color:var(--accent);filter:none}
  .kb-tabe-plus:disabled{opacity:.35}
  .kb-tabe-plus svg{width:13px;height:13px}
  .kb-tabe-e{width:34px;min-width:34px;background:var(--card-2)}
  .kb-tabe-e .kb-row-x{margin:0 auto}
  .kb-tabe .kb-col-x{position:absolute;top:3px;right:3px;width:20px;height:20px;margin:0;
                     background:var(--card);opacity:0;transition:opacity .12s}
  .kb-tabe th:hover .kb-col-x,.kb-tabe .kb-col-x:focus{opacity:1}
  .kb-tabe .kb-col-x svg{width:11px;height:11px}
  .kb-tabe-row{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin:0;
               padding:11px;border:1px solid var(--line);border-top:0;border-radius:0 0 16px 16px;
               background:var(--card-2);color:var(--muted);font-size:13px}
  .kb-tabe-row:hover{background:var(--accent-soft);color:var(--accent);filter:none}
  .kb-tabe-row svg{width:14px;height:14px}
  .kb-rows:not([data-js]) .kb-tabe-row,.kb-rows:not([data-js]) .kb-tabe-plus,
  .kb-rows:not([data-js]) .kb-col-x{display:none}
  .kb-rows:not([data-js]) .kb-tabe-w{border-radius:16px}
  .kb-add{margin:0 0 16px}
  .kb-add-s{display:flex;align-items:center;justify-content:center;gap:9px;padding:16px;cursor:pointer;list-style:none;
            border:1px dashed var(--line);border-radius:var(--radius);background:var(--card);
            font-size:14px;font-weight:600;color:var(--muted);transition:border-color .12s,color .12s}
  .kb-add-s::-webkit-details-marker{display:none}
  .kb-add-s:hover{border-color:var(--accent);color:var(--accent)}
  .kb-add[open] .kb-add-s{border-color:var(--accent);color:var(--accent);border-bottom-left-radius:0;border-bottom-right-radius:0}
  .kb-add-s svg{width:17px;height:17px}
  .kb-add-g{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
            padding:12px;border:1px dashed var(--line);border-top:0;
            border-bottom-left-radius:var(--radius);border-bottom-right-radius:var(--radius)}
  .kb-add-o{display:grid;grid-template-columns:auto 1fr;gap:2px 11px;width:100%;margin:0;padding:12px 13px;
            border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--text);text-align:left}
  .kb-add-o:hover{border-color:var(--accent);filter:none}
  .kb-add-i{grid-row:1/3;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;
            border-radius:9px;background:var(--accent-soft);color:var(--accent)}
  .kb-add-i svg{width:16px;height:16px}
  .kb-add-t{font-size:13.5px;font-weight:640}
  .kb-add-d{font-size:11.5px;line-height:1.45;color:var(--muted)}
  @media (max-width:560px){
    .kb-row-add{margin-left:0}
    .kb-srow{flex-wrap:wrap;align-items:center}
    .kb-srow .kb-row-n{order:1;margin-top:0}
    .kb-srow .kb-row-ops,.kb-srow .kb-row-x{order:2;margin:0 0 0 auto}
    .kb-srow .kb-row-f{order:3;flex:1 1 100%}
    .kb-srow-e{padding:0 10px}
    .kb-srow-e input{width:68px}
  }
  .kbtr-step .lw-pane[data-tryb]{display:none}
  .lw-toggle:has(.lw-tog input[value="sam"]:checked) ~ .kbtr-step .lw-pane[data-tryb="sam"]{display:block}
  .lw-toggle:has(.lw-tog input[value="sam"]:checked) ~ .kbtr-step .kbtr-rodo{display:none}
  .lw-toggle:has(.lw-tog input[value="plik"]:checked) ~ .kbtr-step .lw-pane[data-tryb="plik"]{display:block}
  .lw-toggle:has(.lw-tog input[value="nagranie"]:checked) ~ .kbtr-step .lw-pane[data-tryb="nagranie"]{display:block}
  .lw-toggle:has(.lw-tog input[value="link"]:checked) ~ .kbtr-step .lw-pane[data-tryb="link"]{display:block}
  .kbtr-rec{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:4px 0 8px}
  .kbtr-rec-btn{background:transparent;color:var(--text);border:1px solid var(--line);box-shadow:none}
  .kbtr-rec-btn:hover{background:var(--accent-soft)}
  .kbtr-rec-btn.on{background:transparent;color:#c0392b;border-color:#c0392b}
  .kbtr-rec-stan{font-size:13px}
  .kbtr-tytul{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
  .kbtr-info{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;margin-bottom:14px}
  .kbtr-info .ic{flex:none;opacity:.7}
  .kbtr-info .muted{font-size:13px;margin-top:2px}
  .kbtr-err{border-color:#e0b4b4}
.kt-sprz{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.kt-sprz-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding:8px 10px;border:1px solid var(--line);border-radius:8px}
.kt-sprz-nazwa{font-weight:600}
.kt-sprz-kod{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;
  padding:1px 6px;border-radius:5px;background:var(--card-2)}
.kt-sprz-adres{font-size:12px;overflow-wrap:anywhere}
.kt-sprz-cmd{margin:10px 0 0}
.kt-sprz-cmd code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;
  padding:4px 8px;border-radius:6px;background:var(--card-2);border:1px solid var(--line)}
.kt-grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.kt-empty{margin:0}
.kt-tile{display:flex;flex-direction:column;gap:0;padding:0;overflow:hidden;
  transition:border-color .12s,transform .12s}
.kt-tile:hover{border-color:var(--accent);transform:translateY(-1px)}
.kt-tile.is-here{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}
.kt-tile-h{display:flex;align-items:center;gap:11px;padding:14px 15px 0}
.kt-tile-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.kt-name{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:14.5px;font-weight:650;line-height:1.25}
.kt-meta{font-size:12px;overflow-wrap:anywhere}
.kt-av{flex:none;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;
  border-radius:13px;background:var(--card-2);color:var(--muted);font-size:14.5px;font-weight:700;letter-spacing:.02em}
.kt-av-demo{background:var(--accent-soft);color:var(--accent)}
.kt-tag{font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;background:var(--accent);color:#fff}
.kt-tag-off{background:#b45309}
.kt-open{display:block;text-decoration:none;color:inherit}
.kt-open:hover{text-decoration:none}
.kt-chips{display:flex;flex-wrap:wrap;gap:6px;padding:11px 15px 0}
.kt-chip{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;
  background:var(--card-2);color:var(--muted);font-size:11.5px;font-weight:600}
.kt-chip .ic svg{width:13px;height:13px}
.kt-chip-on{background:var(--accent-soft);color:var(--accent)}
.kt-chip-off{opacity:.75}
.kt-tile-f{display:flex;align-items:center;gap:10px;margin-top:auto;padding:12px 15px;
  border-top:1px solid var(--line)}
.kt-tile-f .kt-go-f{margin-left:auto}
.kt-go-f{margin:0}
.kt-go{margin:0;padding:8px 18px;font-size:13.5px}
.kt-set{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:13px;text-decoration:none;font-weight:600}
.kt-set:hover{color:var(--accent);text-decoration:none}
.kt-set .ic svg{width:15px;height:15px}
.kt-here{display:inline-flex;align-items:center;gap:6px;margin-left:auto;font-size:13px;font-weight:700;
  color:var(--accent);white-space:nowrap}
.kt-here .ic svg{width:16px;height:16px}
.kt-tile:not(.kt-demo) .kt-tile-f{justify-content:flex-end}
.kt-pop{width:min(680px,calc(100vw - 32px));max-height:min(760px,calc(100dvh - 72px));
  padding:16px 18px 18px}
.kt-pop-h{display:flex;align-items:center;gap:11px}
.kt-pop-t{display:flex;flex-direction:column;gap:1px;min-width:0;margin-right:auto}
.kt-pop-t strong{font-size:15.5px;font-weight:650;overflow-wrap:anywhere}
.kt-pop-t .muted{font-size:12px;overflow-wrap:anywhere}
.kt-pop-h .kt-go{padding:7px 15px;font-size:13px}
.kt-tabs{flex:none;margin:12px 0 0}
.kt-tabs .lw-tog{gap:7px}
.kt-tabs .lw-tog .ic svg{width:16px;height:16px}
.kt-pop-b{padding-top:14px}
.kt-pop-b .emp-banner{margin:0 0 14px}
.kt-pop:has(.kt-tabs input[value="moduly"]:checked) .kt-pane[data-tab="moduly"]{display:block}
.kt-pop:has(.kt-tabs input[value="ust"]:checked) .kt-pane[data-tab="ust"]{display:block}
.kt-blk + .kt-blk{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.kt-blk form{margin:0}
.kt-blk .rz-f{margin-bottom:12px}
.kt-perms{display:flex;flex-direction:column;gap:2px;margin-bottom:4px}
.kt-perm-off{opacity:.6}
.kt-key{margin:0 0 10px;font-size:12px;overflow-wrap:anywhere}
.kt-key code{font-size:11.5px;padding:1px 5px;border-radius:6px;background:var(--card-2)}
.kt-bar{position:sticky;bottom:-18px;z-index:2;display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  margin:16px -18px -18px;padding:12px 18px;border-top:1px solid var(--line);background:var(--card)}
.kt-bar .btn-pill{margin:0 0 0 auto}
.kt-bar-i{font-size:12px;flex:1 1 180px;min-width:0}
.kt-bar-flat{position:static;margin:0;padding:0;border-top:0;background:none}
.kt-bar-flat .btn-pill{margin-left:0}
.kt-blk-del .rzd-head strong{color:#b91c1c}
.kt-danger{background:#b91c1c}
.kt-danger:hover{filter:brightness(1.08)}
.kt-sum-chips{display:flex;flex-wrap:wrap;gap:7px}
.kt-sum-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 12px;border-radius:999px;
  background:var(--card-2);font-size:12.5px}
.kt-sum-chip b{font-weight:700;color:var(--accent)}
.kt-sum-chip-add{background:var(--accent-soft);color:var(--accent);font-weight:600}
@media (max-width:900px){
  .kt-pop{width:auto;max-width:none;max-height:none;padding:16px 16px 12px}
  .kt-bar{margin:14px -16px -12px;padding:12px 16px;bottom:-12px}
  .kt-pop-h .kt-go{padding:7px 13px}
}
  .lw-mt{margin-top:4px}
  .lw-step2:has(.lw-tog input[value="usluga"]:checked) .lw-pane[data-tryb="usluga"],
  .lw-step2:has(.lw-tog input[value="produkt"]:checked) .lw-pane[data-tryb="produkt"],
  .lw-step2:has(.lw-tog input[value="projekt"]:checked) .lw-pane[data-tryb="projekt"],
  .lw-step2:has(.lw-tog input[value="nic"]:checked) .lw-pane[data-tryb="nic"]{display:block}
  .lw-dt{margin-bottom:18px}
  .lw-dt input{margin:0;border-radius:999px}
  .lw-dt label{display:block;margin:0 0 6px;font-size:13px;color:var(--muted)}
  .lw-note{min-height:0}
  .lw-nic{margin:24px 0;font-size:13.5px;line-height:1.6;text-align:center}
  .lw-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
  .lw-list li{display:flex;gap:12px;align-items:baseline;justify-content:space-between;
    padding:7px 12px;border:1px solid var(--line);border-radius:12px;font-size:13.5px}
  .lt-row1 .of-kinds { margin-bottom:0; flex:0 0 auto; }
  @container tbar (max-width:1116px){
    .lead-toolbar:has(.of-kinds) .lt-row1 .dd-btn:not(.fp-btn) { width:42px; padding:0; }
    .lead-toolbar:has(.of-kinds) .lt-row1 .dd-label { display:none; }
  }
  @container tbar (max-width:966px){
    .lead-toolbar:has(.of-kinds) .lt-row1 .seg-desktop a > span:not(.ic) { display:none; }
    .lead-toolbar:has(.of-kinds) .lt-row1 .search-box { min-width:120px; }
  }
  @container tbar (max-width:800px){
    .lead-toolbar:has(.of-kinds) .lt-row1 .of-kinds { flex:0 1 auto; min-width:150px; }
  }
  @container tbar (max-width:1391px){
    .lead-toolbar:has(.of-kinds):has(.fin-period) .lt-row1 .dd-btn:not(.fp-btn) { width:42px; padding:0; }
    .lead-toolbar:has(.of-kinds):has(.fin-period) .lt-row1 .dd-label { display:none; }
  }
  @container tbar (max-width:1286px){
    .lead-toolbar:has(.of-kinds):has(.fin-period) .lt-row1 .seg-desktop a > span:not(.ic) { display:none; }
  }
  @container tbar (max-width:1146px){
    .lead-toolbar:has(.of-kinds):has(.fin-period) .lt-row1 .fp-nav { display:none; }
  }
  @container tbar (max-width:1040px){
    .lead-toolbar:has(.of-kinds):has(.fin-period) .lt-row1 .of-kinds { flex:0 1 auto; min-width:150px; }
  }
  @media (max-width:1130px){
    .lead-toolbar:has(.of-kinds) .lt-search-desktop { display:none; }
  }
  @media (max-width:900px){
    .lead-toolbar:has(.of-kinds) .lt-dd-desktop { display:none; }
    .of-row2 .lt-dd-mobile { display:inline-flex; }
  }
  @container tbar (max-width:520px){
    .lead-toolbar:has(.of-kinds) .lt-row1 .of-kinds,
    .lead-toolbar:has(.of-kinds):has(.fin-period) .lt-row1 .of-kinds { flex:1 1 auto; min-width:0; }
  }
  .of-kind{margin:0 0 22px}
  .of-kind-h{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-weight:600}
  .of-kind-h .ic svg{width:18px;height:18px}
  .of-kind-only{margin-left:auto;font-size:12px;font-weight:400;color:var(--muted);text-decoration:none}
  .of-kind-only:hover{color:var(--accent);text-decoration:underline}
  .of-thumb-empty{display:flex;align-items:center;justify-content:center;width:40px;height:40px;
    border-radius:8px;background:var(--card-2);color:var(--muted)}
  .of-thumb-empty svg{width:18px;height:18px}
  .of-table .col-photo{width:56px}
  .of-table .col-date{width:150px}
  .of-table .col-status{width:120px}
  .of-table tr.of-off .row-name{opacity:.6}
  .of-cmp{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:16px}
  .of-cmp select{flex:1 1 190px;min-width:0;max-width:280px;margin:0;border-radius:999px;
    padding-left:16px;padding-right:40px;background-position:right 16px center}
  .of-cmp .btn{flex:0 0 auto;margin:0;border-radius:999px;padding:10px 22px}
  @media (max-width:560px){ .of-cmp select{flex:1 1 100%;max-width:none} .of-cmp .btn{width:100%} }
  .pw-mt{margin-top:14px}
  .pw-wklejka{width:100%;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em}
  .pot-msg{gap:6px;flex-wrap:wrap}
  .pot-kontakt{text-transform:none}
  .pot-promote{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 16px}
  .pot-promote .muted{font-size:.85em;flex:1 1 260px}
  .pot-next-now{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
  .pot-note-f{display:flex;gap:8px;align-items:flex-start;margin-bottom:12px}
  .pot-note-f textarea{flex:1 1 auto;margin:0}
  .pot-note{padding:8px 0;border-bottom:1px solid var(--line)}
  .pot-note:last-child{border-bottom:0}
  .pot-note-h{font-size:.8em}
  .pot-note-b{white-space:pre-wrap}
  .pot-del{margin:18px 0 0;text-align:right}
  .lnk-danger{display:inline-flex;gap:6px;align-items:center;background:none;border:0;color:var(--muted);cursor:pointer;font:inherit}
  .lnk-danger:hover{color:#dc2626}
  .pf-meta{gap:14px 26px}
  .pf-meta > span{min-width:0}
  .pf-meta .meta{font-size:11.5px;color:var(--muted);font-weight:600}
  .pf-v{display:inline-flex;align-items:center;gap:6px}
  .pf-grp{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
  .pf-grp .meta{font-size:11.5px;color:var(--muted);font-weight:600}
  .pf-grps .pf-grp:last-child{margin-bottom:0}
  .pf-chips{display:flex;flex-wrap:wrap;gap:6px}
  .pf-upr{background:var(--card-2);color:var(--muted);font-weight:600}
  .pf-bar{flex-wrap:wrap;margin-top:16px}
  .pf-bar .btn-pill{margin:0 0 0 auto}
  .pf-bar-i{font-size:12px;flex:1 1 200px;min-width:0}
  .lw-dt{margin-bottom:18px}
  .lw-dt input{margin:0;border-radius:999px}
  .lw-dt label{display:block;margin:0 0 6px;font-size:13px;color:var(--muted)}
  .lw-dt-rows{display:flex;flex-direction:column;gap:14px}
  .pr-dwarn{display:flex;align-items:center;gap:7px;margin:0;font-size:13px;color:#b91c1c}
  .pr-dwarn[hidden]{display:none}
  .pr-dwarn .ic svg{width:16px;height:16px}
  :root[data-theme="dark"] .pr-dwarn{color:#fca5a5}
  .pr-topen{position:absolute;opacity:0;width:0;height:0;pointer-events:none}
  .pr-tadd{display:inline-flex;align-items:center;gap:6px;margin:10px 0 0;padding:9px 16px;
    border:1px dashed var(--line);border-radius:999px;color:var(--accent);font-size:13.5px;
    font-weight:600;cursor:pointer;user-select:none}
  .pr-tadd:hover{background:var(--accent-soft);border-style:solid}
  .pr-tadd .ic svg{width:15px;height:15px}
  .pr-tform{overflow:hidden;max-height:0;opacity:0;
    transition:max-height .28s cubic-bezier(.4,0,.2,1),opacity .2s ease}
  .pr-tasks-sec:has(.pr-topen:checked) .pr-tform{max-height:760px;opacity:1}
  .pr-tasks-sec:has(.pr-topen:checked) .pr-tadd{display:none}
  .pr-tform-in{padding-top:14px}
  .pr-tlist{list-style:none;margin:0 0 2px;padding:0;display:flex;flex-direction:column}
  .pr-titem{display:flex;align-items:center;gap:10px;padding:9px 10px;margin:0 -10px;border-radius:12px}
  .pr-titem + .pr-titem{box-shadow:inset 0 1px 0 var(--line)}
  .pr-titem:hover{background:var(--card-2)}
  .pr-titem .pev-b{flex:1}
  .pr-tdel{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;
    border:0;border-radius:999px;background:transparent;color:var(--muted);cursor:pointer}
  .pr-tdel:hover{background:var(--card-2);color:#b91c1c}
  .pr-tdel .ic svg{width:14px;height:14px}
.rl-sec{margin:0 0 26px}
.rl-h{font-size:15px;font-weight:700;margin:0 0 10px}
.rl-list{display:flex;flex-direction:column;gap:8px}
.rl-row{display:flex;align-items:center;gap:12px;min-height:58px;padding:10px 16px;border:1px solid var(--line);
        border-radius:16px;background:var(--card);color:var(--text)}
.rl-row:hover{border-color:var(--accent);text-decoration:none}
.rl-dot{flex:none;width:14px;height:14px;border-radius:50%;background:currentColor}
.rl-row-b{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;min-width:0}
.rl-row-n{font-size:15.5px;font-weight:650}
.rl-row-m{font-size:13px;color:var(--muted);white-space:nowrap}
.rl-sep{margin-right:7px}
.rl-row-go{margin-left:auto;flex:none;color:var(--muted);display:inline-flex}
.rl-row-go svg{width:18px;height:18px}
.rl-row:hover .rl-row-go{color:var(--accent)}
.rl-add{display:flex;align-items:center;gap:8px;min-height:52px;padding:10px 16px;border:1px dashed var(--line);
        border-radius:16px;color:var(--muted);font-size:13.5px}
.rl-add:hover{border-color:var(--accent);color:var(--accent);text-decoration:none}
.rl-add .ic svg{width:16px;height:16px}
  .sms-warn { display:flex; gap:9px; align-items:flex-start; margin:0 0 12px; padding:10px 12px; border-radius:12px;
    background:var(--card-2); border:1px solid var(--line); font-size:13px; color:var(--muted); }
  .sms-warn .ic svg { width:17px; height:17px; flex:none; margin-top:1px; }
  .sms-test { margin-top:14px; }
  .sms-test-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
  .sms-test-row input { flex:1 1 180px; }
  .sms-test-row button { display:inline-flex; align-items:center; gap:7px; }
  .sms-count { font-size:12px; color:var(--muted); }
  .sms-count.multi { color:#e5a13d; }
  .sms-count.ucs2 { color:#e5484d; }
  .sms-actions { display:flex; gap:8px; align-items:center; }
  .sms-actions button[type=submit] { margin-left:auto; display:inline-flex; align-items:center; gap:7px; }
  .sms-strip { background:var(--card-2); border:1px solid var(--line); color:var(--muted); font-size:12px; padding:6px 10px; border-radius:999px; cursor:pointer; }
  .sms-strip:hover { border-color:var(--accent); color:var(--accent); }
  .sms-mkt { background:var(--card-2); border:1px solid var(--line); color:var(--text); }
  .sms-consent-save { margin:0; }
  .sms-log { display:flex; flex-direction:column; gap:8px; }
  .sms-log-i { border-left:3px solid var(--line); padding:2px 0 2px 10px; font-size:13px; }
  .sms-log-i.bad { border-left-color:#e5484d; color:var(--muted); }
  .stk-kindtog .lw-tog{font-size:13px;padding-left:4px;padding-right:4px}
  @media (max-width:520px){
    .stk-kindtog{flex-wrap:wrap}
    .stk-kindtog .lw-tog{flex:1 1 44%}
  }
  .stk-khint{display:none;margin-top:-10px}
  .stk-kinds:has(.lw-tog input[value="material"]:checked) .stk-khint[data-kind="material"],
  .stk-kinds:has(.lw-tog input[value="product"]:checked) .stk-khint[data-kind="product"],
  .stk-kinds:has(.lw-tog input[value="tool"]:checked) .stk-khint[data-kind="tool"],
  .stk-kinds:has(.lw-tog input[value="asset"]:checked) .stk-khint[data-kind="asset"]{display:block}
  .stk-w-sum{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 18px;padding:12px 14px;
    border:1px solid var(--line);border-radius:14px;background:var(--card-2)}
  .stk-w-sum>span{display:flex;flex-direction:column;gap:2px;font-size:13px}
  .stk-w-sum b{font-size:16px}
  .stk-w-plus,.stk-w-eq{font-size:18px;color:var(--muted);align-self:center}
  .stk-w-will b,.stk-w-hi{color:var(--accent)}
  .stk-name-f{position:relative}
  .stk-pop{padding:6px}
  .stk-opt{display:flex;flex-direction:row;justify-content:space-between;align-items:baseline;
    gap:12px;width:100%;margin:0;border:0;background:none;text-align:left;font:inherit;
    color:var(--text);box-shadow:none}
  .stk-opt small{color:var(--muted);font-size:12px;white-space:nowrap}
  .stk-opt:hover,.stk-opt.on{background:var(--accent-soft);color:var(--accent)}
  .stk-src{display:none}
  .stk-msg{margin-top:-8px}
  .stk-msg-dokup{color:var(--text)}
  .stk-undo{margin:0 0 0 4px;padding:0;border:0;background:none;color:var(--accent);
    font:inherit;font-size:12.5px;text-decoration:underline;cursor:pointer}
  .stk-pick.is-dokup .rz-f:has(#sw-place){display:none}
  .stk-pricetog .lw-tog{font-size:13px}
  .stk-warr-chips{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:-8px 0 18px;font-size:13px}
  .stk-chip{padding:4px 11px;border:1px solid var(--line);border-radius:999px;background:var(--card);
    color:var(--muted);font-size:12.5px;cursor:pointer}
  .stk-chip:hover{color:var(--accent);border-color:var(--accent-soft)}
  .stk-brk{width:auto;height:30px;padding:0 12px;font-size:12.5px;font-weight:700;
    border-color:var(--danger,#dc2626);color:var(--danger,#dc2626)}
  .stk-brk:hover{border-color:var(--danger,#dc2626);color:#fff;background:var(--danger,#dc2626);filter:none}
.tg-row{gap:10px;flex-wrap:wrap}
.tg-rowf{flex:1 1 200px;min-width:0;margin:0}
.tg-rowf input{margin:0;background:transparent;border-color:transparent;font-weight:600;width:100%}
.tg-rowf input:hover{border-color:var(--line)}
.tg-rowf input:focus{background:var(--card);border-color:var(--accent)}
.tg-pal{flex:0 0 auto;gap:7px}
.tg-pal .rl-sw span{width:20px;height:20px}
.tg-n{flex:0 0 auto;text-decoration:none}
.tg-n:hover{color:var(--accent)}
.tg-del{margin:0}
.tg-tryb{margin-top:12px;max-width:440px}
.tg-tryb-w .lw-tog{white-space:nowrap}
.tg-tryb-l{font-size:13px;color:var(--muted);margin-bottom:8px}
.tg-tryb-w{width:fit-content;max-width:100%}
.tg-tryb-h{margin:10px 0 0}
.tg-tryb button{margin-top:14px}
.tgv-sec{margin:0 0 26px}
.tgv-h{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700;margin:0 0 10px}
.tgv-h .ic svg{width:17px;height:17px}
.tgv-n{font-size:13px;font-weight:500;color:var(--muted)}
.tgv-list{display:flex;flex-direction:column;gap:8px}
.tgv-row{display:flex;align-items:center;gap:12px;min-height:52px;padding:10px 16px;border:1px solid var(--line);
         border-radius:16px;background:var(--card);color:var(--text)}
.tgv-row:hover{border-color:var(--accent);text-decoration:none}
.tgv-row-n{font-size:15px;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tgv-row-go{margin-left:auto;flex:none;color:var(--muted);display:inline-flex}
.tgv-row-go svg{width:18px;height:18px}
.tgv-row:hover .tgv-row-go{color:var(--accent)}
  .tk-seg{max-width:100%}
  .tk-head-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:18px 16px;
    align-items:start;margin-bottom:18px}
  .tk-head-grid .rz-f{margin:0}
  @media (max-width:820px){.tk-head-grid{grid-template-columns:1fr}}
  .rzd-sec-thin .rzd-head{margin-bottom:0}
  .rzd-headlink{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:600;
    min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .rzd-headlink .ic svg{width:15px;height:15px}
  .tk-os-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 14px}
  .tk-os-pill{width:auto;height:38px;padding:0 10px 0 16px;gap:8px;color:var(--text);white-space:nowrap}
  .tk-os-pill .ic svg{width:16px;height:16px}
  .tk-os-pill > .ic:last-child{color:var(--muted)}
  .tk-os-pill > .ic:last-child svg{width:15px;height:15px}
  .tk-os-static{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 16px;
    border:1px solid var(--line);border-radius:999px;background:var(--card-2);
    color:var(--text);font-size:13px;font-weight:600;cursor:default}
  .tk-os-static .ic svg{width:16px;height:16px}
  .tk-os-pop{min-width:230px}
  .dd-grp{padding:8px 12px 4px;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);font-weight:600}
  .tk-cmp{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 16px}
  .tk-cmp select{flex:1 1 180px;min-width:0;max-width:250px;margin:0;border-radius:999px;
    padding-left:16px;padding-right:40px;background-position:right 16px center}
  .tk-cmp .btn{flex:0 0 auto;margin:0}
  @media (max-width:560px){ .tk-cmp select{flex:1 1 100%;max-width:none} .tk-cmp .btn{width:100%} }
  .lead-table.tkl-table .col-check{width:46px}
  .lead-table.tkl-table .col-name{width:28%}
  .lead-table.tkl-table .col-cat{width:11%}
  .lead-table.tkl-table .col-status{width:11%}
  .lead-table.tkl-table .col-contact{width:15%}
  .lead-table.tkl-table .col-assigned{width:13%}
  .lead-table.tkl-table .col-date{width:19%}
  .lead-table.tkl-noemp .col-name{width:36%}
  .lead-table.tkl-noemp .col-contact{width:19%}
  .lead-table.tkl-table td.col-check{padding-left:14px;padding-right:0;overflow:visible}
  .lead-table.tkl-table td.col-check .tk-checkform{vertical-align:middle}
  .lead-row.tk-tr-done .row-name{text-decoration:line-through;color:var(--muted)}
  @media (max-width:600px){
    .lead-table.tkl-table .col-contact,.lead-table.tkl-table .col-status,
    .lead-table.tkl-table .col-assigned{display:none}
    .lead-table.tkl-table .col-check{width:38px}
    .lead-table.tkl-table .col-name{width:42%}
    .lead-table.tkl-table .col-cat{width:26%}
    .lead-table.tkl-table .col-date{width:32%}
    .lead-table.tkl-table td.col-check{padding-left:10px}
    .lead-table.tkl-table td{padding-left:9px;padding-right:9px}
  }
  .wy-lead{max-width:70ch;margin:0 0 16px}
  .wy-kafle{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;margin-bottom:18px}
  .wy-kafel{display:flex;flex-direction:column;gap:5px;padding:14px 16px;border:1px solid var(--line);
    border-radius:14px;background:var(--card);color:var(--text);text-decoration:none;box-shadow:var(--shadow)}
  .wy-kafel:hover{border-color:var(--accent);text-decoration:none}
  .wy-kafel-t{font-weight:700}
  .wy-kafel-o,.wy-kafel-m{font-size:12.5px}
  .wy-nowy{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
  .wy-nowy .rz-f{flex:1 1 260px;margin:0}
  .wy-edytuj{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
  .wy-rows{display:flex;flex-direction:column;gap:10px}
  .wy-row{display:grid;gap:8px;align-items:end}
  .wy-row input,.wy-row select,.wy-row textarea{margin:0;min-width:0;height:auto;width:100%}
  .wy-c{display:block;min-width:0}
  .wy-c-l{display:none;margin-bottom:3px;font-size:11px;color:var(--muted)}
  .wy-rows > .wy-row:first-child .wy-c-l{display:block}
  .wy-row-pole{grid-template-columns:minmax(0,2.2fr) 76px 116px 92px 76px 76px 34px}
  .wy-row-pole .wy-opts{grid-column:1/-1;display:none}
  .wy-row-pole:has(select option[value="choice"]:checked) .wy-opts{display:block}
  .wy-row-poz{grid-template-columns:minmax(0,2fr) 70px 70px minmax(0,1fr) minmax(0,1fr) 100px 100px 76px 34px}
  .wy-x{flex:none;padding:2px 8px;border:0;background:none;color:var(--muted);font-size:19px;
    line-height:1;border-radius:8px;cursor:pointer;text-align:center}
  .wy-x .ic svg{width:15px;height:15px}
  .wy-x:hover{background:var(--card-2);color:#dc2626}
  .wy-x-off{color:var(--line);cursor:default}
  .wy-chk{display:flex;gap:9px;align-items:flex-start;margin-top:12px;font-size:13px}
  .wy-chk input{margin:2px 0 0;flex:none}
  @media (max-width:900px){
    .wy-row{position:relative;grid-template-columns:repeat(2,minmax(0,1fr));
      padding:12px;border:1px solid var(--line);border-radius:12px}
    .wy-row > :first-child{grid-column:1/-1;padding-right:30px}
    .wy-c-l{display:block}
    .wy-row .wy-opts{grid-column:1/-1}
    .wy-row .wy-x{position:absolute;top:8px;right:8px;margin:0}
    .wy-row .wy-x-off{display:none}
  }
  .wy-licz{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:18px;align-items:start}
  @media (max-width:900px){ .wy-licz{grid-template-columns:1fr} }
  .wy-wynik{position:sticky;top:16px}
  .wy-skad{display:block;font-size:11.5px;color:var(--muted)}
  .inv-pal{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 4px}
  .inv-pal .mt-chip{cursor:default}
  .inv-pal code{opacity:.6;font-size:11.5px}
  .inv-prev{margin-top:14px}
  .inv-prev-sub{margin:0 0 10px}
  .inv-prev-p{margin:0 0 10px;line-height:1.5;max-width:60ch}
  .inv-prev-p:last-child{margin-bottom:0;color:var(--muted)}
  .zst-row{grid-template-columns:minmax(0,1fr) 88px 96px 44px}
  .zst-qty{text-align:right}
  @media (max-width:560px){ .zst-row{grid-template-columns:minmax(0,1fr) 54px 72px 44px} }
  .zst-sum{align-self:center;padding-right:12px;text-align:right;font-variant-numeric:tabular-nums;color:var(--muted)}
  .zst-calc{display:flex;flex-direction:column;gap:2px;margin:0 0 12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg2)}
  .zst-line{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-variant-numeric:tabular-nums}
  .zst-line span{color:var(--muted)}
  .zst-disc b{color:var(--ok,#10b981)}
  .zst-final{margin-top:4px;padding-top:6px;border-top:1px dashed var(--line);font-size:1.05rem}
  .zst-final b{font-size:1.15rem}
  .zst-badge{background:color-mix(in srgb,var(--ok,#10b981) 16%,transparent);border-color:transparent}
  .zst-warn{color:var(--warn,#f59e0b)}
  .lw-links{display:flex;flex-direction:column;gap:8px;margin-top:14px}
  .lw-link{display:flex;gap:8px;align-items:center}
  .lw-link input{margin:0;border-radius:999px;padding-left:16px}
  .lw-link input:first-child{flex:2 1 0;min-width:0}
  .lw-link input:nth-child(2){flex:1 1 0;min-width:0}
  .lw-link-x{flex:none;margin:0;padding:2px 8px;border:0;background:none;color:var(--muted);
    font-size:19px;line-height:1;border-radius:8px;cursor:pointer}
  .lw-link-x:hover{background:var(--card-2);color:#dc2626}
  .ll-row{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
  .ll-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border:1px solid var(--line);
    border-radius:999px;background:var(--card-2);font-size:12.5px;color:var(--text);text-decoration:none}
  .ll-chip:hover{border-color:var(--accent);color:var(--accent);text-decoration:none}
  .ll-edits{display:flex;flex-direction:column;gap:8px}
  .ll-edit{display:flex;gap:8px}
  .ll-edit input{margin:0}
  .ll-edit input:first-child{flex:2 1 0;min-width:0}
  .ll-edit input:nth-child(2){flex:1 1 0;min-width:0}
  .rz-f .ll-edit input{width:100%;height:40px;border-radius:999px;padding-left:16px;padding-right:16px}
  .prd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;margin-bottom:12px}
  .prd-tile{position:relative;margin:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--card-2)}
  .prd-tile.cover{border-color:var(--accent,#2563eb)}
  .prd-tile img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}
  .prd-cover-tag{position:absolute;left:6px;top:6px;font-size:11px;padding:2px 7px;border-radius:99px;
    background:rgba(0,0,0,.65);color:#fff}
  .prd-tile-bar{position:absolute;right:6px;top:6px;display:flex;gap:4px;align-items:flex-start}
  .prd-tile-bar form{margin:0}
  .prd-tile-b{font-size:11px;padding:2px 7px;border-radius:99px;border:0;cursor:pointer;
    background:rgba(0,0,0,.65);color:#fff}
  .prd-tile-x{width:22px;height:22px;line-height:1;border:0;border-radius:99px;cursor:pointer;
    background:rgba(0,0,0,.65);color:#fff}
  .prd-tile-x .ic svg{width:13px;height:13px}
  .prd-up{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0}
  .prd-up .fpick{flex:1 1 100%;max-width:100%;margin:0}
  .prd-up input[name=alt]{flex:1 1 220px;min-width:0;margin:0;height:40px;border-radius:999px;padding-left:16px}
  .prd-up .btn-pill{margin:0;flex:none;height:40px}
  .prd-srows{display:flex;flex-direction:column;gap:8px}
  .svcb-new{position:relative; animation:svcbNew 2.6s ease-out 1}
  @keyframes svcbNew{
    0%{box-shadow:0 0 0 0 rgba(22,163,74,.55), 0 0 0 1px rgba(22,163,74,.9) inset}
    35%{box-shadow:0 0 0 7px rgba(22,163,74,0), 0 0 0 1px rgba(22,163,74,.9) inset}
    70%{box-shadow:0 0 0 0 rgba(22,163,74,.45), 0 0 0 1px rgba(22,163,74,.7) inset}
    100%{box-shadow:0 0 0 8px rgba(22,163,74,0), 0 0 0 1px rgba(22,163,74,0) inset}
  }
  @media (prefers-reduced-motion:reduce){ .svcb-new{animation:none; outline:2px solid rgba(22,163,74,.8)} }
  .prd-thumb{width:38px;height:38px;border-radius:8px;object-fit:cover;flex:0 0 auto;background:var(--card-2)}
  .prd-old{opacity:.6}
  .prd-promo{color:#dc2626}
  .stk-needs .st-head{display:flex;align-items:center;gap:8px}
  .stk-need-hint{margin:2px 0 10px;font-size:13px}
  .stk-need-list{display:flex;flex-direction:column;gap:2px;margin-bottom:8px}
  .stk-need{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto auto auto;align-items:center;gap:8px;
    padding:7px 0;border-bottom:1px solid var(--line)}
  .stk-need:last-child{border-bottom:0}
  .stk-need-name{font-weight:600;color:inherit;text-decoration:none;display:flex;align-items:center;gap:6px;min-width:0}
  .stk-need-name:hover{text-decoration:underline}
  .stk-need-task{font-size:11px;padding:1px 6px;border-radius:99px;background:var(--card-2);color:var(--muted);font-weight:500;white-space:nowrap}
  .stk-need-qty{white-space:nowrap;font-variant-numeric:tabular-nums}
  .stk-need-cost{white-space:nowrap;font-variant-numeric:tabular-nums}
  .stk-need-hand{font-size:12px;white-space:nowrap}
  .stk-need-issue{display:flex;gap:4px;margin:0}
  .stk-need-issue input{width:64px;padding:4px 6px;font-size:13px}
  .stk-need-issue button{padding:4px 10px;font-size:13px}
  .stk-need-issue button:disabled,.stk-need-issue input:disabled{opacity:.4;cursor:not-allowed;filter:none}
  .stk-need-sum{display:flex;align-items:baseline;gap:8px;padding-top:8px;border-top:2px solid var(--line);font-size:14px}
  .stk-need-sum strong{font-size:16px}
  .stk-need-sum .muted{font-size:12px}
  .stk-need-add{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
  .stk-erows{display:flex;flex-direction:column;gap:2px}
  .stk-erow{display:grid;grid-template-columns:minmax(0,1fr) 72px auto auto;align-items:center;gap:8px;
    padding:5px 0;border-bottom:1px solid var(--line)}
  .stk-erow:last-child{border-bottom:0}
  .stk-ename{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13.5px}
  .stk-eqty{padding:5px 8px;font-size:13.5px;text-align:right;font-variant-numeric:tabular-nums}
  .stk-eunit{font-size:12px;white-space:nowrap}
  .stk-epick{display:grid;grid-template-columns:minmax(0,1fr) 72px auto;gap:6px;align-items:center;margin-top:8px}
  .stk-epick select,.stk-epick input{padding:5px 8px;font-size:13.5px;margin:0}
  .stk-epick .cfg-addrow{margin:0}
  .stk-epick select{padding-right:26px;background-position:right 8px center}
  .stk-epick-empty{margin:8px 0 0;font-size:13px}
  .svc-margin{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-top:6px;font-size:14px}
  .svc-margin strong{font-size:16px}
  .svc-margin .muted{font-size:12px}
  .svc-margin-pos{color:#059669}
  .svc-margin-neg{color:#dc2626}
  :root[data-theme="dark"] .svc-margin-pos{color:#34d399}
  :root[data-theme="dark"] .svc-margin-neg{color:#f87171}
  .stk-issued{display:flex;flex-direction:column;gap:0;margin-bottom:8px}
  .stk-issued-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:10px;
    padding:7px 0;border-bottom:1px solid var(--line);font-size:13.5px}
  .stk-issued-row:last-child{border-bottom:0}
  .stk-issued-q{font-variant-numeric:tabular-nums;white-space:nowrap}
  .stk-issued-v{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}
  .stk-issued-w{font-size:12px;white-space:nowrap}
  @media (max-width:760px){
    .stk-need{grid-template-columns:minmax(0,1fr) auto;row-gap:4px}
    .stk-need-state,.stk-need-cost{grid-column:1}
    .stk-need-issue{grid-column:1/-1}
  }
  .ct-wiz{width:var(--wiz-w,620px); max-width:calc(100vw - 32px);
    height:min(660px, calc(100dvh - 72px)); max-height:none; padding:0; overflow:hidden;
    transition:width .32s cubic-bezier(.4,0,.2,1), height .38s cubic-bezier(.4,0,.2,1)}
  .ct-wiz.ct-busy{cursor:progress}
  .ct-wiz-h{position:relative; flex:none; padding:16px 52px 14px; text-align:center;
    border-bottom:1px solid var(--line)}
  .ct-bars{display:flex; gap:6px; margin:0 auto 12px; max-width:320px}
  .ct-bar{flex:1; height:5px; border-radius:999px; background:var(--line); transition:background .3s ease}
  .ct-bar.done{background:var(--accent)}
  .ct-bar.on{background:var(--accent); animation:ctPulse 1.7s ease-in-out infinite}
  @keyframes ctPulse{
    0%,100%{box-shadow:0 0 0 0 rgba(124,58,237,.45)}
    50%{box-shadow:0 0 0 4px rgba(124,58,237,0)}
  }
  .ct-wiz-t{display:block; font-size:16px; font-weight:650; line-height:1.25}
  .ct-wiz-s{display:block; margin-top:2px; font-size:12px}
  .ct-wiz-x{position:absolute; right:10px; top:12px}
  .ct-wiz-b{flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:var(--pad-card);
    transition:opacity .16s ease, transform .16s ease}
  .ct-wiz-f{flex:none; display:flex; align-items:center; gap:10px; padding:14px;
    border-top:1px solid var(--line); background:var(--card)}
  .ct-wiz-sp{flex:1}
  .ct-wiz-f .btn-pill{margin:0}
  .ct-wiz-f .btn-pill,.ct-skip{height:40px; padding:0 18px; border-radius:999px;
    display:inline-flex; align-items:center; gap:6px; font-size:14px; line-height:1}
  .ct-skip{color:var(--muted); text-decoration:none}
  .ct-skip:hover{background:var(--card-2); color:var(--text); text-decoration:none}
  .ct-next .ic svg,.ct-back .ic svg{width:16px; height:16px}
  .ct-next:disabled{background:var(--card-2); color:var(--muted); box-shadow:none; cursor:not-allowed}
  .ct-next:disabled:hover{background:var(--card-2); color:var(--muted)}
  .ct-err{margin:0 0 14px; padding:10px 14px; border:1px solid rgba(220,38,38,.35);
    border-radius:12px; background:rgba(220,38,38,.08); color:#b91c1c; font-size:13.5px; line-height:1.45}
  :root[data-theme="dark"] .ct-err{color:#fca5a5}
  .ct-wiz .card{border:0; background:transparent; box-shadow:none; padding:0; margin:0 0 20px}
  .ct-wiz .card:last-child{margin-bottom:0}
  .ct-wiz .rzd-head{margin-bottom:12px}
  .ct-wiz.ct-fin{width:340px; height:200px; border:3px dashed #22c55e; background:var(--card);
    box-shadow:0 18px 44px rgba(22,163,74,.22)}
  .ct-wiz.ct-fin > .ct-wiz-h,.ct-wiz.ct-fin > .ct-wiz-b,.ct-wiz.ct-fin > .ct-wiz-f{
    opacity:0; pointer-events:none; transition:opacity .12s ease}
  .ct-done{position:absolute; inset:0; z-index:5; display:flex; align-items:center; justify-content:center;
    padding:16px; text-align:center; background:var(--card); border-radius:15px; pointer-events:none;
    opacity:0; transition:opacity .22s ease .1s}
  .ct-done.on{opacity:1}
  .ct-done-in{display:flex; flex-direction:column; align-items:center; gap:8px; min-width:0;
    color:#15803d; font-size:16px; font-weight:650;
    transform:scale(.9); transition:transform .34s cubic-bezier(.2,.9,.3,1.4) .1s}
  .ct-done.on .ct-done-in{transform:none}
  .ct-done-in small{font-size:12.5px; font-weight:500; color:var(--muted); max-width:280px;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
  .ct-done-ring{display:inline-flex; align-items:center; justify-content:center; width:52px; height:52px;
    border-radius:50%; background:rgba(34,197,94,.14); color:#16a34a}
  .ct-done-ring .ic svg{width:30px; height:30px; stroke-width:2.4}
  .ct-done.ct-blad{pointer-events:auto}
  .ct-done.ct-blad .ct-done-in{color:#b91c1c}
  .ct-done.ct-blad .ct-done-ring{background:rgba(239,68,68,.14); color:#dc2626}
  .ct-done.ct-blad .ct-done-in small{white-space:normal; text-overflow:clip; max-width:320px}
  .ct-done.ct-blad .ct-done-ring .ic{display:none}
  .ct-done.ct-blad .ct-done-ring::after{content:"!"; font-size:28px; font-weight:800; line-height:1}
  .ct-wiz.ct-fin:has(.ct-done.ct-blad){border-color:#ef4444}
  .ct-done-go{margin-top:6px}
  @media (max-width:900px){
    .ct-wiz{width:auto; max-width:none; height:100%; padding:0; transition:none}
    .ct-wiz-b{padding:16px}
    .ct-wiz.ct-fin{position:absolute; inset:auto; left:50%; top:50%; transform:translate(-50%,-50%);
      width:min(320px, calc(100vw - 48px)); height:190px; border-radius:18px}
  }
  .dd-pop, .menu-pop, .cz-pop, .cal2-who-pop, .ed-menu, .rzd-cpop, .mpk-pop {
    padding:6px; border:1px solid var(--line); border-radius:16px; background:var(--card);
    box-shadow:0 12px 32px rgba(0,0,0,.16); }
  .dd-pop > a, .menu-pop > a, .menu-pop > button, .cz-pop label, .cal2-who-pop > a,
  .ed-mi, .rzd-copt, .mpk-opt, .rzd-cnone {
    border-radius:999px; padding:9px 16px; }
  .ed-mi.on, .ed-mi:hover { background:var(--accent-soft); color:var(--accent); }
  .ed-mi.on em, .ed-mi:hover em { color:var(--accent); }
  .rz-cards{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));margin-top:14px}
  .rz-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);overflow:hidden;text-decoration:none;color:inherit;transition:border-color .12s,transform .12s}
  .rz-card:hover{border-color:var(--accent);transform:translateY(-1px)}
  .rz-card-cover{display:block;width:100%;aspect-ratio:4/3;background:var(--card-2);overflow:hidden}
  .rz-card-cover img{width:100%;height:100%;object-fit:cover;display:block}
  .rz-cover-empty{display:flex;align-items:center;justify-content:center;color:var(--muted);opacity:.5}
  .rz-card-body{display:flex;flex-direction:column;gap:6px;padding:12px 14px 14px}
  .rz-card-title{font-weight:600;font-size:14px;line-height:1.3}
  .rz-card-sub{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px}
  .rz-card-meta{font-size:12px}
  .lead-table.rz-table .col-photo{width:78px}
  .lead-table.rz-table .col-name{width:28%}
  .lead-table.rz-table .col-contact{width:20%}
  .lead-table.rz-table .col-date{width:15%}
  .lead-table.rz-table .col-cat{width:12%}
  .lead-table.rz-table .col-status{width:16%}
  .lead-table.rz-table td.col-photo{padding-top:8px;padding-bottom:8px;overflow:visible}
  .rz-thumb{display:block;width:46px;height:46px;border-radius:10px;overflow:hidden;background:var(--card-2)}
  .rz-thumb img{width:100%;height:100%;object-fit:cover;display:block}
  .rz-thumb.rz-cover-empty{display:flex}
  @media (max-width:600px){
    .lead-table.rz-table .col-contact,.lead-table.rz-table .col-cat{display:none}
    .lead-table.rz-table .col-status{display:table-cell;width:34%}
    .lead-table.rz-table .col-photo{width:54px}
    .lead-table.rz-table .col-name{width:28%}
    .lead-table.rz-table .col-date{width:92px}
    .lead-table.rz-table td{padding-left:9px;padding-right:9px}
    .rz-thumb{width:38px;height:38px}
  }
  @media (max-width:480px){
    .lead-table.rz-table .col-date{display:none}
    .lead-table.rz-table .col-photo{width:54px}
    .lead-table.rz-table .col-name{width:45%}
    .lead-table.rz-table .col-status{width:40%}
  }
  .rz-prog{font-size:13px;min-height:0}
  .rz-prog:not(:empty){margin:10px 0 0}
  .rz-carousel{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x proximity;padding:14px 2px 8px;
               scrollbar-width:thin}
  .rz-slide{position:relative;flex:0 0 170px;width:170px;aspect-ratio:1;border-radius:14px;overflow:hidden;
            background:var(--card-2);border:1px solid var(--line);scroll-snap-align:start}
  .rz-slide img,.rz-slide video{width:100%;height:100%;object-fit:cover;display:block}
  .rz-slide .rz-vidtag{position:absolute;left:8px;top:8px;background:rgba(0,0,0,.6);color:#fff;font-size:10px;padding:2px 7px;border-radius:999px}
  .rz-slide .rz-del{position:absolute;right:8px;top:8px;margin:0;width:28px;height:28px;padding:0;border-radius:999px;
                    background:rgba(0,0,0,.55);color:#fff;border:0;font-size:15px;line-height:1;cursor:pointer;opacity:0;transition:opacity .12s}
  .rz-slide:hover .rz-del,.rz-slide:focus-within .rz-del{opacity:1}
  @media (hover:none){.rz-slide .rz-del{opacity:1}}
  @media (max-width:720px){.rz-slide{flex-basis:140px;width:140px}}
  .dd-sort-note{padding:8px 12px 2px;font-size:12px;color:var(--muted);line-height:1.4}
.emp-pd{display:none}
.wyn-grid:has(select[name="wage_kind"] option[value="miesiac"]:checked) .emp-pd-m{display:block}
.wyn-grid:has(select[name="wage_kind"] option[value="godzina"]:checked) .emp-pd-m{display:block}
.wyn-grid:has(select[name="wage_kind"] option[value="tydzien"]:checked) .emp-pd-w{display:block}
.wyn-grid:has(select[name="wage_kind"] option[value="dwa_tyg"]:checked) .emp-pd-w{display:block}
.wyn-hint-prow{display:none}
.wyn-sec:has(select[name="wage_kind"] option[value="prowizja"]:checked) .wyn-kwota,
.wyn-sec:has(select[name="wage_kind"] option[value="prowizja"]:checked) .wyn-hint{display:none}
.wyn-sec:has(select[name="wage_kind"] option[value="prowizja"]:checked) .wyn-hint-prow{display:block}
.wyn-u{display:none}
.wyn-grid:has(select[name="wage_kind"] option[value="godzina"]:checked) .wyn-u-godzina,
.wyn-grid:has(select[name="wage_kind"] option[value="miesiac"]:checked) .wyn-u-miesiac,
.wyn-grid:has(select[name="wage_kind"] option[value="tydzien"]:checked) .wyn-u-tydzien,
.wyn-grid:has(select[name="wage_kind"] option[value="dwa_tyg"]:checked) .wyn-u-dwa_tyg,
.wyn-grid:has(select[name="wage_kind"] option[value="zlecenie"]:checked) .wyn-u-zlecenie{display:inline}
.wyn-only-godzina,.wyn-only-zlecenie{display:none}
.wyn-sec:has(select[name="wage_kind"] option[value="godzina"]:checked) .wyn-only-godzina{display:inline}
.wyn-sec:has(select[name="wage_kind"] option[value="zlecenie"]:checked) .wyn-only-zlecenie{display:inline}
.wyn-part{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.wyn-part-h{display:flex;align-items:center;gap:8px;margin:0 0 12px}
.wyn-part-h > strong{font-size:13.5px;font-weight:650}
.wyn-part-a{margin-left:auto;font-size:12.5px}
.wyn-sec > .fin-check{margin-top:14px}
.wyn-sec .rzd-hint{margin:10px 0 0}
.com-nodes{display:flex;flex-direction:column;gap:8px}
.com-node{position:relative;display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid var(--line);
  border-radius:14px;background:var(--card-2);font-size:13.5px}
.com-node-od{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.com-node-od b{font-weight:650}
.com-node-ar{flex:none;color:var(--muted)}
.com-node-ile{flex:none;font-variant-numeric:tabular-nums;font-weight:700;color:var(--accent)}
.com-node-jak{flex:none;font-size:11.5px;color:var(--muted);background:var(--card);
  border:1px solid var(--line);border-radius:999px;padding:2px 9px;white-space:nowrap}
.com-node form{margin:0}
.com-node.is-opt{margin-left:22px;border-style:dashed}
@media (max-width:560px){
  .com-node{flex-wrap:wrap}
  .com-node-od{flex:1 0 100%}
  .com-node-ar{display:none}
}
.com-node.is-opt::before{content:"+";position:absolute;left:-15px;top:50%;transform:translateY(-50%);
  color:var(--muted);font-weight:700}
.com-add{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1.05fr) 92px minmax(0,1fr) auto;
  gap:12px;align-items:end;margin-top:14px}
.com-add .rz-f{margin:0}
.com-add-cel .rzd-combo{width:100%}
.com-add-go{margin:0;height:40px;padding:0 20px;font-size:13px;white-space:nowrap}
.com-add-go .ic svg{width:16px;height:16px}
@media (max-width:860px){.com-add{grid-template-columns:1fr}.com-add-go{width:100%}}
.emp-adv-add{display:grid;grid-template-columns:minmax(0,180px) 175px minmax(0,1fr) auto;
  gap:10px;align-items:center;margin-top:14px}
.emp-adv-add input{margin:0;height:40px}
.emp-adv-add .cal-ico input{height:40px}
@media (max-width:860px){
  .emp-adv-add{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .emp-adv-add input[name="note"]{grid-column:1/-1}
  .emp-adv-add .com-add-go{grid-column:1/-1;width:100%}
}
.site-rz-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,1fr);
  grid-template-rows:repeat(2,minmax(0,1fr));gap:6px}
.site-rz{position:relative;border-radius:10px;overflow:hidden;background:var(--card-2);display:block}
.site-rz img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.site-rz-x{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted)}
.site-rz-t{position:absolute;left:0;right:0;bottom:0;padding:14px 7px 5px;font-size:11px;color:#fff;
  background:linear-gradient(to top, rgba(0,0,0,.72), transparent);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.norole{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 150px);padding:16px}
.norole-box{max-width:520px;text-align:center;padding:22px 24px;margin:0}
.norole-h{font-size:17px;font-weight:800;margin-bottom:8px}
.norole-p{margin:0;font-size:14px;font-weight:500;line-height:1.6;opacity:.92}
.lw-dup { margin:0 0 14px; padding:10px 14px; border:1px solid rgba(180,83,9,.35); border-radius:12px;
  background:rgba(217,119,6,.10); font-size:13.5px; line-height:1.45; }
.lw-dup ul { margin:6px 0 8px; padding-left:18px; }
.lw-dup p { margin:0; font-size:12.5px; }
.eng-zal{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 10px}
.eng-zal-i{width:4.5em;padding:3px 6px}
.pd-kasa .pd-cykl{display:none}
.pd-kasa:has(select[data-eng-billing] option[value="subscription"]:checked) .pd-cykl{display:block}
.pd-w{margin-top:18px}
.pd-newsvc{margin-top:10px}

.ed-doc h1,.ed-doc h2,.ed-doc h3{margin:0 0 10px;line-height:1.3;page-break-after:avoid;font-weight:700}
.ed-doc h1{font-size:16pt;text-align:center;margin:0 0 16px}
.ed-doc h2{font-size:12.5pt;text-align:center;margin:16px 0 8px}
.ed-doc h3{font-size:11pt;margin:14px 0 6px}
.ed-doc p{margin:0 0 7px;text-align:justify}
.ed-doc p.dg-small{font-size:8.5pt;color:#333}
.ed-doc pre,.ed-doc pre.dg-mono{margin:0 0 7px;font:9.5pt/1.5 "Liberation Mono",Consolas,monospace;white-space:pre-wrap}
.ed-doc .ta-l{text-align:left}
.ed-doc .ta-c{text-align:center}
.ed-doc .ta-r{text-align:right}
.ed-doc .ta-j{text-align:justify}
.ed-doc ul.dg-list,.ed-doc ol.dg-list{margin:0 0 8px;padding-left:24px}
.ed-doc ul.dg-list li,.ed-doc ol.dg-list li{margin:0 0 3px}
.ed-doc table.dg-table{width:100%;table-layout:fixed;border-collapse:collapse;margin:0 0 10px;font-size:10pt;page-break-inside:avoid}
.ed-doc table.dg-table td{border:.5pt solid #777;padding:4px 7px;vertical-align:top;text-align:left}
.ed-doc table.dg-table.hh tr:first-child td{background:#eee;font-weight:700;border-bottom:1.4pt solid #444}
.ed-doc table.dg-table.hc tr td:first-child{border-right:1.4pt solid #444;font-weight:700}
.ed-doc .dg-break{page-break-after:always;break-after:page;height:0;margin:26px 0;border-top:1px dashed #b9bec7;position:relative}
.ed-doc .dg-break::after{content:"nowa strona";position:absolute;top:-8px;left:50%;transform:translateX(-50%);background:#fff;padding:0 8px;font:9pt system-ui,sans-serif;color:#98a0ac}
.ed-doc .dg-sig{display:flex;gap:40px;margin:40px 0 6px;page-break-inside:avoid}
.ed-doc .dg-sig-col{flex:1;text-align:center;display:block}
.ed-doc .dg-sig-line{display:block;border-bottom:1px dotted #333;height:1px;margin:0 0 6px}
.ed-doc .dg-sig-cap{font-size:8.5pt;color:#333}
.ed-doc .dg-field{background:#eef2ff;color:#3730a3;border:1px solid #c7d2fe;border-radius:99px;padding:0 7px;white-space:nowrap;font-size:.94em}

.ed-doc .dg-field{cursor:pointer;user-select:none}
.ed-doc .dg-field:hover{background:#e0e7ff;border-color:#a5b4fc}
.ed-doc table.dg-table td{position:relative}
.ed-doc table.dg-table td::after{content:"";position:absolute;top:0;right:-4px;width:8px;height:100%;cursor:col-resize;z-index:2}
.ed-doc table.dg-table tr td:last-child::after{display:none}
.ed-doc.is-colres,.ed-doc.is-colres *{cursor:col-resize!important;user-select:none}
