/* my.kontentferma — фирменный стиль КонтентФермы (как kontentferma.com и KF Approval) */
:root {
  --green: #004643;
  --green-deep: #003940;
  --coral: #ff5f60;
  --coral-dark: #c8282d;
  --amber: #e3a21a;
  --amber-ink: #6e4a00;
  --amber-bg: #fff0cc;
  --mint: #7fb5ae;
  --mint-bg: #d9ece9;
  --ink: #0e2423;
  --ink-2: #2b3d3b;
  --muted: #4f6260;
  --muted-2: #5a6b69;
  --line: #e3eae8;
  --line-2: #edf1f0;
  --ground: #f3f5f4;
  --card: #ffffff;
  --soft: #f6f8f7;
  --chip: #eff4f3;
  --radius: 24px;
  --pill: 999px;
  --font: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- login ---------- */
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: linear-gradient(150deg, var(--green) 0%, var(--green-deep) 100%);
}
.login-card { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 28px; color: #fff; }
.login h1 { margin: 0; font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -1.2px; }
.login p { margin: 0; color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.5; }
.login form { background: #fff; color: var(--ink); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 80px rgba(0,20,18,.35); }
.login .error { background: #ffe4e4; color: #9e1f24; padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; }
.login .hint { font-size: 13px; color: var(--muted-2); }

.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input {
  height: 50px; border-radius: 14px; border: 1.5px solid #d3ddda; padding: 0 16px; font-size: 15px;
  background: #fff; outline: none; width: 100%;
}
.input:focus { border-color: var(--green); }
select.input { padding: 0 12px; }

/* ---------- buttons ---------- */
.btn { border: 0; border-radius: var(--pill); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .12s, filter .12s, background .12s; text-decoration: none; white-space: nowrap; }
.btn-cta { height: 48px; padding: 0 24px; background: var(--coral); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 8px 20px rgba(255,95,96,.32); }
.btn-cta:hover { filter: brightness(.96); transform: translateY(-1px); }
.btn-cta:disabled { background: #f2c4c4; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-ghost { height: 38px; padding: 0 16px; background: var(--chip); color: var(--green); font-size: 13px; }
.btn-ghost:hover { background: #e3eeec; }
.btn-ghost.lg { height: 48px; padding: 0 20px; font-size: 15px; }
.icon-btn { width: 40px; height: 40px; border-radius: var(--pill); border: 0; background: var(--chip); color: var(--green); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-btn:hover { background: #e3eeec; }

.pill { height: 38px; padding: 0 16px; border-radius: var(--pill); font-size: 13px; font-weight: 700; border: 1.5px solid #d3ddda; background: #fff; color: var(--ink-2); transition: all .12s; }
.pill:hover { border-color: var(--green); }
.pill[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.pill .n { opacity: .7; font-weight: 600; margin-left: 4px; }
.pill.hot[aria-pressed="true"] { background: var(--coral-dark); border-color: var(--coral-dark); }

.seg { display: inline-flex; gap: 4px; background: #e6ecea; padding: 4px; border-radius: var(--pill); }
.seg button { border: 0; border-radius: var(--pill); min-height: 36px; padding: 0 16px; background: transparent; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--green); color: #fff; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--green) 264px, var(--ground) 264px); }
.side {
  background: var(--green); color: #fff; padding: 24px 16px; display: flex; flex-direction: column; gap: 28px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; color: #fff; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 14px; background: var(--coral); display: grid; place-items: center; font-weight: 800; font-size: 17px; letter-spacing: -.5px; flex-shrink: 0; }
.brand b { display: block; font-weight: 800; font-size: 16px; }
.brand small { font-size: 12px; color: rgba(255,255,255,.72); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: rgba(255,255,255,.6); padding: 0 12px 6px; }
.nav-label.gap { padding-top: 18px; }
.nav a {
  display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 14px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; transition: background .12s;
}
.nav a:hover { background: rgba(255,255,255,.09); }
.nav a[aria-current="page"] { background: #fff; color: var(--green); }
.nav a span.t { flex-grow: 1; }
.badge { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: var(--pill); background: rgba(255,255,255,.16); }
.nav a[aria-current="page"] .badge { background: var(--chip); }
.badge.hot { background: var(--coral); color: #fff; }
.nav a[aria-current="page"] .badge.hot { background: var(--coral); color: #fff; }
.svc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #fff; text-decoration: none; min-height: 44px; }
.svc:hover { background: rgba(255,255,255,.09); }
.svc .dot { width: 10px; height: 10px; border-radius: var(--pill); flex-shrink: 0; }
.svc span.t { display: flex; flex-direction: column; gap: 1px; flex-grow: 1; }
.svc b { font-size: 14px; }
.svc small { font-size: 12px; color: rgba(255,255,255,.7); }
.svc[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.me { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--green-deep); }
.me .av { background: #fff; color: var(--green); }
.me div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex-grow: 1; }
.me b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { font-size: 12px; color: rgba(255,255,255,.72); }
.me button { background: rgba(255,255,255,.12); color: #fff; }
.me button:hover { background: rgba(255,255,255,.2); }

.main { padding: 28px 40px 64px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar .cap { font-size: 13px; font-weight: 600; color: var(--muted); }
.topbar h1 { margin: 4px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -.6px; }
.topbar .actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #dce4e2; border-radius: var(--pill); padding: 0 16px; height: 44px; width: 260px; color: var(--muted); }
.search input { border: 0; outline: none; background: transparent; font-size: 14px; flex-grow: 1; min-width: 0; color: var(--ink); }

/* ---------- cards & grids ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { background: #fff; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); }
.kpi .l { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi .l i { width: 8px; height: 8px; border-radius: var(--pill); display: inline-block; }
.kpi .v { font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.kpi .h { font-size: 12px; color: var(--muted-2); }
.kpi.dark { background: var(--green); border-color: var(--green); color: #fff; }
.kpi.dark .l, .kpi.dark .h { color: rgba(255,255,255,.85); }
.kpi.alert .v { color: var(--coral-dark); }
.kpi.alert { border-color: #f3c9c9; }
.kpi.placeholder { border: 2px dashed #cbd8d5; background: transparent; min-height: 120px; }
.kpi.placeholder .v { color: #b5c4c1; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.cols.half { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cols.wide-r { grid-template-columns: minmax(0, 1fr) 380px; }
.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.panel { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.panel-h { padding: 20px 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.panel-h.row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-h h2 { margin: 0; font-size: 17px; font-weight: 800; }
.panel-h .sub { font-size: 13px; color: var(--muted-2); }
.panel-b { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }

.group-h { display: flex; gap: 10px; padding: 12px 20px; background: var(--soft); border-top: 1px solid var(--line-2); font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.group-h .n { font-weight: 600; color: var(--muted-2); }
.group-h.over { color: var(--coral-dark); }
.group-h.today { color: var(--green); }

.task { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 128px; gap: 14px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line-2); transition: background .12s; }
.task:hover { background: #f7faf9; }
.task .chk { width: 26px; height: 26px; border-radius: var(--pill); padding: 0; border: 2px solid #b9c7c4; background: #fff; display: grid; place-items: center; }
.task .chk:hover { border-color: var(--green); }
.task .chk:disabled { opacity: .4; cursor: default; }
.task.done .chk { background: var(--green); border-color: var(--green); }
.task .body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.task .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted-2); }
.task .meta b { color: var(--ink-2); font-weight: 700; }
.task .title { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); text-decoration: none; }
.task .title:hover { color: var(--green); text-decoration: underline; }
.task.done .body { opacity: .6; }
.task.done .title { text-decoration: line-through; color: var(--muted-2); }
.task .due { font-size: 13px; font-weight: 700; text-align: right; color: var(--muted); }
.task .due.over { color: var(--coral-dark); }
.task .due.today { color: #8a5200; }
.prio { font-size: 11px; font-weight: 800; color: var(--coral-dark); }

.tag { font-weight: 800; font-size: 11px; letter-spacing: .4px; padding: 3px 9px; border-radius: var(--pill); white-space: nowrap; }
.tag-SMM { background: #ffe4e4; color: #9e1f24; }
.tag-PR { background: var(--mint-bg); color: var(--green); }
.tag-PERF { background: var(--amber-bg); color: var(--amber-ink); }
.tag-MGMT { background: #e9ecef; color: #37424d; }
.tag-INT { background: #e5e8fa; color: #2b3489; }
.tag-STRAT { background: #efe6f7; color: #5b2a86; }

.st { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: var(--pill); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.st-todo { background: #eef1f0; color: #475553; }
.st-work { background: #ddf0ec; color: #00534f; }
.st-review { background: var(--amber-bg); color: var(--amber-ink); }
.st-fix { background: #ffe4e4; color: #9e1f24; }
.st-done { background: var(--green); color: #fff; }
.st-paused, .st-archived { background: #eef1f0; color: #6b7a78; }

.av { width: 36px; height: 36px; border-radius: var(--pill); flex-shrink: 0; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--mint-bg); color: var(--green); }
.av.lg { width: 40px; height: 40px; font-size: 13px; }

/* notifications */
.notif { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-top: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.notif:hover { background: #f7faf9; }
.notif.unread { background: #fbfdfc; }
.notif .b { display: flex; flex-direction: column; gap: 6px; flex-grow: 1; min-width: 0; }
.notif .src { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted-2); }
.notif .src b { color: var(--ink-2); }
.notif .txt { font-size: 14px; line-height: 1.45; font-weight: 500; overflow-wrap: anywhere; }
.notif.unread .txt { font-weight: 600; }
.notif .act { font-size: 13px; font-weight: 700; color: var(--green); }
.notif .dot { width: 10px; height: 10px; border-radius: var(--pill); margin-top: 6px; flex-shrink: 0; }
.notif.unread .dot { background: var(--coral); }
.notif.compact { padding: 12px 20px; gap: 12px; }
.notif.compact .txt { font-size: 13px; }
.kind { font-size: 11px; font-weight: 800; letter-spacing: .4px; padding: 3px 9px; border-radius: var(--pill); }
.kind-mention, .kind-dm { background: var(--mint-bg); color: var(--green); }
.kind-approval { background: #ffe4e4; color: #9e1f24; }
.kind-board, .kind-comment { background: #e9ecef; color: #37424d; }
.kind-system { background: var(--amber-bg); color: var(--amber-ink); }
.av.k-mention, .av.k-dm { background: var(--green); color: #fff; }
.av.k-approval { background: var(--coral); color: #fff; }
.av.k-system { background: var(--amber-bg); color: var(--amber-ink); }

/* routes block */
.routes { background: var(--green); color: #fff; border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.routes h2 { margin: 0; font-size: 17px; font-weight: 800; }
.routes .sub { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 4px; }
.route { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.route:hover { background: rgba(255,255,255,.14); }
.route .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.route .t { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.route b { font-size: 15px; }
.route small { font-size: 12px; color: rgba(255,255,255,.75); }
.route .n { font-size: 20px; font-weight: 800; }

/* bars */
.bar { height: 12px; border-radius: var(--pill); background: #eef2f1; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: var(--pill); }
.bar.sm { height: 8px; }
.pipe-row { display: grid; grid-template-columns: 210px minmax(0, 1fr) 40px; gap: 12px; align-items: center; }
.pipe-row .l { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pipe-row .n { font-size: 14px; font-weight: 800; text-align: right; }
.c-todo { background: #b9c7c4; } .c-work { background: var(--green); } .c-review { background: var(--amber); }
.c-fix { background: var(--coral); } .c-done { background: var(--mint); }

.exec-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 130px; gap: 16px; align-items: center; }
.exec-row .name { display: flex; flex-direction: column; gap: 2px; }
.exec-row .name b { font-size: 14px; }
.exec-row .name small, .exec-row .r small { font-size: 12px; color: var(--muted-2); }
.stackbar { display: flex; height: 22px; border-radius: 8px; overflow: hidden; gap: 2px; background: #f3f6f5; }
.stackbar i { display: block; height: 100%; }
.exec-row .r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.exec-row .r b { font-size: 18px; font-weight: 800; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; font-weight: 600; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.s-ontime { background: var(--green); } .s-late { background: var(--mint); } .s-over { background: var(--coral); } .s-work { background: #dbe4e2; } .s-nodl { background: #b9c7c4; }
.good { color: var(--green); } .mid { color: #8a5200; } .bad { color: var(--coral-dark); }

.trow { display: grid; grid-template-columns: minmax(0, 1.6fr) 70px 80px 80px minmax(0, 1fr) 44px; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line-2); }
.trow.head { font-size: 11px; font-weight: 800; letter-spacing: .6px; color: var(--muted-2); background: var(--soft); padding: 10px 20px; text-transform: uppercase; }
.trow .num { font-size: 15px; font-weight: 800; text-align: right; }
.trow .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trow .who div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.trow .who b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .who small { font-size: 12px; color: var(--muted-2); }

.person { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line-2); }
.person .mid-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.person .mid-col b { font-size: 14px; }
.person .r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; font-weight: 700; }
.person .r b { font-size: 14px; font-weight: 800; }

.stuck { display: flex; flex-direction: column; gap: 6px; padding: 14px 20px; border-top: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.stuck:hover { background: #f7faf9; }
.stuck .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted-2); }
.stuck .meta b { color: var(--ink-2); }
.stuck .t { font-size: 14px; font-weight: 600; line-height: 1.35; }
.stuck .d { font-size: 12px; color: var(--muted); }
.stuck .d b { color: var(--coral-dark); }

.empty { padding: 40px 20px; text-align: center; color: var(--muted-2); font-size: 14px; border-top: 1px solid var(--line-2); }
.note { font-size: 12px; font-weight: 700; color: var(--amber-ink); background: var(--amber-bg); padding: 6px 12px; border-radius: var(--pill); }
.banner { background: #ffe4e4; color: #9e1f24; border-radius: 16px; padding: 14px 18px; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.loading { padding: 60px 20px; text-align: center; color: var(--muted-2); font-weight: 600; }
.skeleton { background: linear-gradient(90deg, #eef2f1 0%, #f7f9f8 50%, #eef2f1 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 20px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* settings */
.set-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 20px; border-top: 1px solid var(--line-2); }
.set-row .l { font-weight: 800; font-size: 14px; padding-top: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 6px 0 14px; border-radius: var(--pill); background: var(--mint-bg); color: var(--green); font-size: 13px; font-weight: 700; }
.chip button { width: 26px; height: 26px; border-radius: var(--pill); border: 0; background: rgba(0,70,67,.12); color: var(--green); display: grid; place-items: center; padding: 0; }
.chips select { height: 36px; border-radius: var(--pill); border: 1.5px dashed #b9c7c4; padding: 0 12px; background: #fff; font-size: 13px; font-weight: 600; color: var(--muted); }
.sync-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 110px 70px minmax(0, 1.6fr); gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line-2); font-size: 13px; }
.sync-row.head { font-size: 11px; font-weight: 800; letter-spacing: .6px; color: var(--muted-2); background: var(--soft); text-transform: uppercase; }
.sync-row .err { color: var(--coral-dark); font-weight: 600; overflow-wrap: anywhere; }
.sync-row .ok { color: var(--green); font-weight: 700; }
code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: 12px; }

/* modal & toast */
.overlay { position: fixed; inset: 0; background: rgba(0,40,38,.55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.dialog { background: #fff; border-radius: 28px; width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,30,28,.35); }
.dialog-h { background: var(--green); color: #fff; padding: 24px 28px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-radius: 28px 28px 0 0; }
.dialog-h h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.dialog-h p { margin: 4px 0 0; font-size: 13px; color: rgba(255,255,255,.78); }
.dialog-h .icon-btn { background: rgba(255,255,255,.12); color: #fff; }
.dialog-b { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dialog-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.dialog-f .hint { font-size: 12px; color: var(--muted-2); max-width: 260px; }
.dialog-f .btns { display: flex; gap: 10px; margin-left: auto; }
.form-error { background: #ffe4e4; color: #9e1f24; padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; }

#toast-root { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; background: var(--green-deep); color: #fff; padding: 12px 14px 12px 18px; border-radius: var(--pill); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 12px; box-shadow: 0 16px 40px rgba(0,30,28,.35); max-width: 92vw; animation: up .2s ease-out; }
.toast .ok { width: 24px; height: 24px; border-radius: var(--pill); background: var(--coral); display: grid; place-items: center; flex-shrink: 0; }
.toast button { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: var(--pill); height: 32px; padding: 0 14px; font-weight: 700; font-size: 13px; }
.toast.err { background: var(--coral-dark); }
@keyframes up { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- mobile ---------- */
.mob-top { display: none; }
@media (max-width: 1100px) {
  .cols, .cols.wide-r { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; background: var(--ground); }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 40; transform: translateX(-100%); transition: transform .2s; height: 100vh; }
  .shell.menu-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0,40,38,.45); }
  .mob-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--green); color: #fff; position: sticky; top: 0; z-index: 30; }
  .mob-top .icon-btn { background: rgba(255,255,255,.12); color: #fff; }
  .main { padding: 20px 16px 48px; }
  .kpis, .kpis.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols.half { grid-template-columns: 1fr; }
  .task { grid-template-columns: 28px minmax(0, 1fr); }
  .task .st, .task .due { grid-column: 2; justify-self: start; text-align: left; }
  .task .st { display: none; }
  .search { display: none; }
  .trow { grid-template-columns: minmax(0, 1fr) 54px 54px 44px; }
  .trow > :nth-child(4), .trow > :nth-child(5) { display: none; }
  .exec-row { grid-template-columns: 1fr; gap: 8px; }
  .exec-row .r { align-items: flex-start; flex-direction: row; gap: 8px; }
  .pipe-row { grid-template-columns: 130px minmax(0, 1fr) 32px; }
  .grid2 { grid-template-columns: 1fr; }
  .set-row { grid-template-columns: 1fr; }
  .sync-row { grid-template-columns: 1fr 70px; }
  .sync-row > :nth-child(2), .sync-row > :nth-child(4) { display: none; }
  .topbar h1 { font-size: 26px; }
}
