/* Shared app shell for the student portal and admin panel */
body.panel { background: #f6f1e7; }
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100dvh; }
.side { background: var(--green); color: #d9e2da; padding: 22px 16px; position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.side .logo { padding: 4px 8px 22px; }
.side .logo b { color: #fff; font-size: 18px; }
.side .logo small { color: #9fb3a5; }
.side .logo-mark { background: #ffd7a8; color: var(--green); }
.side-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8ea595; font-weight: 700; padding: 16px 12px 6px; }
.side a.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s; color: #d9e2da; }
.side a.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.side a.nav-item.active { background: #fffcf6; color: var(--green); }
.side a.nav-item .count { margin-left: auto; font-size: 12px; background: var(--saffron); color: #fff; border-radius: 99px; padding: 1px 8px; }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); display: flex; gap: 10px; align-items: center; }
.side-foot .avatar { background: var(--saffron); }
.side-foot b { color: #fff; font-size: 14px; display: block; line-height: 1.2; }
.side-foot span { font-size: 12px; color: #9fb3a5; text-transform: capitalize; }
.side-foot button { background: rgba(255,255,255,.08); border-color: transparent; color: #fff; flex: none; }
.side-foot #pwBtn { margin-left: auto; }
.side-foot > div { min-width: 0; overflow: hidden; }
.main { min-width: 0; padding: 28px 36px 60px; }
.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.topbar h1 { font-size: 32px; }
.topbar .sub { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.topbar .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mobile-top { display: none; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.kpi .k-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; font-weight: 700; }
.kpi .k-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; }
.kpi b { font-family: var(--serif); font-size: 32px; font-weight: 500; display: block; margin-top: 10px; line-height: 1.1; }
.kpi small { color: var(--muted); font-size: 12.5px; font-weight: 600; }

.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-bottom: 18px; }
.panel-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; min-width: 0; }
.panel-card h3 { font-family: var(--sans); font-size: 16px; font-weight: 800; margin-bottom: 4px; letter-spacing: 0; }
.panel-card .ph { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 10px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 14px 16px; background: #fcf8f0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { transition: background .15s; }
.t tbody tr:hover { background: #fdfaf3; }
.t .who { display: flex; gap: 10px; align-items: center; }
.t .who .avatar { width: 34px; height: 34px; font-size: 13px; }
.t .who b { display: block; font-size: 14px; }
.t .who span { color: var(--muted); font-size: 12.5px; }
.t .thumb { width: 52px; height: 40px; border-radius: 10px; object-fit: cover; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions .icon-btn { width: 32px; height: 32px; border-radius: 10px; }
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.toolbar .input, .toolbar .select { width: auto; padding: 9px 12px; font-size: 14px; background: #fff; }
.toolbar .search-in { min-width: 240px; }

/* Lists */
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: 0; }
.list-item .meta { color: var(--muted); font-size: 12.5px; }
.dot-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }

/* Charts */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 220px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; min-width: 0; }
.bar i { display: block; width: 100%; max-width: 34px; background: linear-gradient(180deg, #3f7a57, var(--green)); border-radius: 8px 8px 4px 4px; transition: height .8s var(--ease); position: relative; }
.bar i:hover::after { content: attr(data-v); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-style: normal; font-size: 11.5px; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.bar span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.hbar { display: grid; gap: 12px; }
.hbar div { display: grid; gap: 6px; font-size: 13.5px; }
.hbar .l { display: flex; justify-content: space-between; font-weight: 600; }

/* Kanban */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.col { background: #efe7d7; border-radius: 18px; padding: 12px; min-height: 300px; }
.col h4 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; padding: 4px 6px 12px; display: flex; justify-content: space-between; }
.col.drag { background: #e4ede5; outline: 2px dashed var(--green-2); }
.lead-card { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--line); cursor: grab; display: grid; gap: 6px; font-size: 13.5px; transition: box-shadow .2s; }
.lead-card:hover { box-shadow: var(--shadow); }
.lead-card b { font-size: 14.5px; }
.lead-card .f { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }

/* Drawer */
.drawer-o { position: fixed; inset: 0; background: rgba(20,24,18,.4); z-index: 90; animation: fade .2s forwards; opacity: 0; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--paper); z-index: 91; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(30px); opacity: 0; animation: slidein .35s var(--ease) forwards; }
@keyframes slidein { to { transform: none; opacity: 1; } }
.drawer-h { padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.drawer-h h3 { font-size: 24px; }
.drawer-b { padding: 22px 24px; overflow-y: auto; flex: 1; display: grid; gap: 14px; align-content: start; }
.drawer-f { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 23px; border-radius: 99px; background: #d8cdb8; position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked { background: var(--green-2); }
.switch input:checked::after { transform: translateX(17px); }

/* Login */
.login-wrap { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.login-art { background: var(--green) center / cover; position: relative; display: flex; align-items: flex-end; padding: 48px; color: #fff; }
.login-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,58,43,.15), rgba(16,32,23,.88)); }
.login-art > div { position: relative; }
.login-art h2 { color: #fff; font-size: 40px; margin-bottom: 10px; }
.login-form { display: grid; place-items: center; padding: 40px 24px; }
.login-form form { width: min(400px, 100%); display: grid; gap: 16px; }
.login-form h1 { font-size: 36px; }
.demo-box { background: var(--saffron-soft); border: 1px dashed #e3b27c; border-radius: 14px; padding: 14px 16px; font-size: 13.5px; display: grid; gap: 6px; }
.demo-box button { background: none; border: 0; padding: 0; color: var(--green-2); font-weight: 700; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 70; transform: translateX(-100%); transition: transform .35s var(--ease); }
  .side.open { transform: none; box-shadow: var(--shadow-lg); }
  .mobile-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
  .main { padding: 20px 16px 50px; }
  .topbar { flex-wrap: wrap; }
  .topbar h1 { font-size: 26px; }
  .topbar .actions { margin-left: 0; width: 100%; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { min-height: 220px; padding: 26px; }
  .login-art h2 { font-size: 28px; }
  .toolbar .search-in { min-width: 0; flex: 1; }
}
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi { padding: 14px; } .kpi b { font-size: 24px; } }

/* ---------- v3 modules ---------- */
.kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpis-6 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpis-6 .kpi b, .kpis-5 .kpi b { font-size: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.panel-card table.t { min-width: 460px; }
.panel-card .table-wrap { border: 0; border-radius: 0; }
.meta { color: var(--muted); font-size: 12.5px; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--green-2); font-weight: 700; cursor: pointer; text-decoration: underline; font-size: 12.5px; }
.delta { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--line-2); color: var(--muted); }
.delta.up { background: var(--green-soft); color: var(--green-2); }
.delta.down { background: var(--rose-soft); color: var(--rose); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lchart { width: 100%; height: 240px; display: block; }
.lchart .grid { stroke: var(--line-2); stroke-dasharray: 3 4; }
.lchart text { font-size: 11px; fill: var(--muted); font-family: var(--sans); }
.funnel { display: grid; gap: 12px; }
.f-row { display: grid; gap: 6px; }
.f-bar { height: 30px; border-radius: 8px; transition: width .8s var(--ease); }
.f-l { font-size: 13.5px; }
table.pl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.pl td { padding: 7px 0; border-bottom: 1px solid var(--line-2); }
table.pl td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
table.pl .tot td { font-weight: 800; border-bottom: 1px solid var(--line); }
table.pl .net td { font-weight: 800; font-size: 16px; border: 0; padding-top: 12px; color: var(--green-2); }

/* page tabs */
.ptabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.ptabs a { display: flex; gap: 8px; align-items: center; padding: 11px 14px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ptabs a:hover { color: var(--ink); }
.ptabs a.active { color: var(--green); border-bottom-color: var(--green); }
.ptabs .count { background: var(--line-2); color: var(--ink-2); font-size: 11.5px; border-radius: 99px; padding: 1px 8px; }

/* integrations */
.int-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin-bottom: 18px; font-size: 15px; }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.int-card { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; font: inherit; color: inherit; }
.int-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.int-card b { font-size: 17px; margin-top: 8px; }
.int-card p { font-size: 13.5px; color: var(--muted); }
.int-group { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--muted); }
.int-top { display: flex; justify-content: space-between; align-items: center; }
.int-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.int-ic .lucide { width: 22px; height: 22px; }
.int-cta { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: 14px; color: var(--green-2); display: inline-flex; gap: 6px; align-items: center; }
.int-err { font-size: 12.5px; color: var(--rose); display: flex; gap: 6px; align-items: flex-start; }
.int-err .lucide { width: 14px; height: 14px; margin-top: 2px; }
.int-head { display: flex; gap: 14px; align-items: flex-start; }
.int-steps { margin: 0; padding: 14px 16px 14px 34px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: 13.5px; display: grid; gap: 6px; color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--line-2); color: var(--muted); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.connected { background: var(--green-soft); color: var(--green-2); }
.pill.error { background: var(--rose-soft); color: var(--rose); }
.copy-row { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 12px; }
.copy-row code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 12.5px; }
.chk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.chk { display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 600; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.chk.dim { opacity: .55; cursor: default; }

/* WhatsApp */
.wa-banner { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 16px; background: var(--saffron-soft); color: #7a4510; margin-bottom: 16px; flex-wrap: wrap; }
.wa-banner.ok { background: #e3f6ea; color: #156b3b; }
.wa-banner > .lucide { width: 24px; height: 24px; flex: none; }
.wa-banner div { flex: 1; min-width: 220px; display: grid; }
.wa-banner span { font-size: 13.5px; opacity: .9; }
.wa-phone { background: #efe7dc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23d8cbb6'/%3E%3C/svg%3E"); border-radius: 14px; padding: 12px; }
.wa-bubble { background: #dcf8c6; border-radius: 10px 10px 10px 2px; padding: 8px 10px 18px; font-size: 13.5px; line-height: 1.45; position: relative; max-width: 100%; box-shadow: 0 1px 1px rgba(0,0,0,.08); word-wrap: break-word; text-align: left; }
.wa-bubble mark { background: rgba(31,157,85,.18); color: inherit; border-radius: 4px; padding: 0 2px; }
.wa-meta { position: absolute; right: 8px; bottom: 3px; font-size: 10.5px; color: #6c7a67; }
.flow-explain { display: grid; gap: 4px; }
.fe { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; position: relative; }
.fe:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 44px; bottom: -6px; width: 2px; background: var(--line); }
.fe-ic { width: 36px; height: 36px; border-radius: 11px; background: #e3f6ea; color: #1f9d55; display: grid; place-items: center; flex: none; }
.fe b { display: block; font-size: 14px; }
.fe span { font-size: 13px; color: var(--muted); }
.auto-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.auto-row:last-child { border-bottom: 0; }
.auto-ic { width: 42px; height: 42px; border-radius: 13px; background: #e3f6ea; color: #1f9d55; display: grid; place-items: center; flex: none; }
.auto-main { flex: 1; min-width: 0; }
.auto-main b { font-size: 15px; }
.auto-flow { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.auto-flow .sep { width: 14px; height: 14px; color: #c5b79c; }
.chip-ev, .chip-step { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 8px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.chip-ev { background: var(--green); color: #fff; }
.chip-step .lucide { width: 13px; height: 13px; }
.auto-stats { display: grid; font-size: 12.5px; color: var(--muted); text-align: right; min-width: 92px; }
.auto-stats b { color: var(--ink); }
.flow { display: grid; gap: 0; margin-top: 6px; }
.node { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; position: relative; margin-bottom: 22px; }
.node:not(.add-step)::after { content: ""; position: absolute; left: 30px; bottom: -23px; height: 22px; width: 2px; background: #c8dccd; }
.node.trig { background: var(--green); border-color: var(--green); color: #fff; }
.node.trig .muted { color: #cfe0d4; }
.node-h { display: flex; gap: 10px; align-items: center; }
.node-h b { font-size: 14.5px; }
.node-act { margin-left: auto; display: flex; gap: 4px; }
.node-act .icon-btn { width: 30px; height: 30px; border-radius: 9px; }
.n-ic { width: 32px; height: 32px; border-radius: 10px; background: #e3f6ea; color: #1f9d55; display: grid; place-items: center; }
.node.trig .n-ic { background: rgba(255,255,255,.14); color: #ffd7a8; }
.row2 { display: grid; grid-template-columns: 1fr 140px; gap: 8px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.add-step { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 14px; border: 1.5px dashed #c8dccd; border-radius: 16px; }
.add-step .chip { font-size: 12.5px; padding: 6px 10px; }
.var-help { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.var-help code, .var-help .chip { font-size: 11.5px; padding: 2px 7px; background: var(--line-2); border-radius: 6px; border: 0; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tpl-card { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 10px; cursor: pointer; font: inherit; color: inherit; transition: box-shadow .2s; align-content: start; }
.tpl-card:hover { box-shadow: var(--shadow); }
.tpl-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.tpl-card code { font-size: 11.5px; color: var(--muted); }
.inbox { display: grid; grid-template-columns: 320px 1fr; height: calc(100dvh - 300px); min-height: 460px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.threads { border-right: 1px solid var(--line); overflow-y: auto; }
.thread { width: 100%; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line-2); background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.thread:hover { background: #fcf8f0; }
.thread.active { background: #e3f6ea; }
.thread .avatar { width: 38px; height: 38px; font-size: 13px; }
.thread b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread .count { background: #1f9d55; color: #fff; font-size: 11px; border-radius: 99px; padding: 1px 7px; }
.conv { display: flex; flex-direction: column; min-width: 0; }
.conv-h { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.conv-b { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: #efe7dc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23d8cbb6'/%3E%3C/svg%3E"); }
.msg { max-width: 72%; padding: 8px 11px 6px; border-radius: 12px; font-size: 14px; box-shadow: 0 1px 1px rgba(0,0,0,.08); display: grid; gap: 2px; }
.msg span { font-size: 10.5px; color: #6c7a67; text-align: right; }
.msg.out { align-self: flex-end; background: #dcf8c6; border-bottom-right-radius: 3px; }
.msg.in { align-self: flex-start; background: #fff; border-bottom-left-radius: 3px; }
.conv-f { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.conv-f .input { flex: 1; }

/* team */
.acc-chips { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.acc-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 12px; }
.acc-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc-grp { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.acc-grp > span { grid-column: 1 / -1; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--muted); margin-top: 4px; }
.perm-t td, .perm-t th { padding: 9px 12px; }
.perm-t tr.grp td { background: #fcf8f0; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--muted); }
.perm-t input { width: 17px; height: 17px; accent-color: var(--green-2); cursor: pointer; }

/* export */
.exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.exp-card { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.exp-card b { font-size: 15px; }
.exp-card.locked { opacity: .6; }
.toolbar .field { display: grid; gap: 4px; }
.toolbar .field label { font-size: 12px; font-weight: 700; color: var(--muted); }

@media (max-width: 1100px) { .kpis-5, .kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .inbox { grid-template-columns: 1fr; height: auto; }
  .threads { max-height: 280px; border-right: 0; border-bottom: 1px solid var(--line); }
  .conv { min-height: 420px; }
  .auto-row { flex-wrap: wrap; }
  .auto-stats { text-align: left; grid-auto-flow: column; gap: 12px; }
}
@media (max-width: 600px) { .kpis-5, .kpis-6 { grid-template-columns: 1fr 1fr; } .row3, .chk-grid, .acc-grp { grid-template-columns: 1fr; } .msg { max-width: 88%; } }
.node.trig .select, .node.trig .input { color: var(--ink); }
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.seg::-webkit-scrollbar { display: none; }
.seg button, .seg a { flex: none; white-space: nowrap; }
@media (max-width: 600px) { .toolbar .seg { width: 100%; } .topbar .actions .seg { width: 100%; } }
