:root {
  --t-info: oklch(0.55 0.04 255); --t-warn: oklch(0.6 0.08 70); --t-bad: oklch(0.55 0.1 25); --t-done: oklch(0.55 0.04 160); --t-wait: oklch(0.55 0.05 300); --t-active: oklch(0.45 0.02 260);
  --pad: 20px; --row: 12px;
}
* { box-sizing: border-box; }
html, body, #root { height: 100%; margin: 0; }
body { background: var(--bg); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
em { font-style: normal; }
.mono { font-family: ui-monospace, monospace; font-size: 12.5px; }
.muted { color: var(--mute); }
.sm { font-size: 12.5px; }
.txt-warn { color: var(--t-warn); }
.txt-bad { color: var(--t-bad); }
.r { text-align: right; } .c { text-align: center; }
.ic { flex: none; }

/* ---------- shell ---------- */
.app { height: 100%; display: flex; }
.side { width: 236px; flex: none; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { display: flex; gap: 10px; align-items: center; padding: 18px 18px 16px; }
.brand-m { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line2); display: grid; place-items: center; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--acc); }
.brand b { display: block; font-weight: 600; font-size: 13px; letter-spacing: .04em; }
.brand em { display: block; font-size: 12px; color: var(--mute); }
.side-n { padding: 6px 10px; display: flex; flex-direction: column; gap: 1px; flex: 1; }
.nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--ink2); }
.nav:hover { background: var(--sunk); }
.nav.on { background: var(--sunk); color: var(--ink); font-weight: 500; box-shadow: inset 2px 0 0 var(--acc); }
.nav span:nth-child(2) { flex: 1; }
.cnt { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; border: 1px solid var(--line2); font-size: 11px; display: inline-grid; place-items: center; color: var(--ink2); background: var(--surface); font-weight: 500; }
.side-p, .rail-p { padding: 14px 18px; border-top: 1px solid var(--line); }
.partner b { display: block; font-weight: 500; }
.partner em { display: block; font-size: 12px; color: var(--mute); margin-bottom: 8px; }
.side-main, .rail-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.scopebar { display: flex; align-items: center; gap: 12px; padding: 10px 28px; border-bottom: 1px solid var(--line); background: var(--surface); }
.scope-l { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.scope { display: flex; gap: 6px; flex-wrap: wrap; }
.scope-b { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--line); color: var(--ink2); background: var(--surface); }
.scope-b:hover { border-color: var(--line2); }
.scope-b.on { border-color: var(--acc); color: var(--ink); font-weight: 500; }
.scope-b i, .rail-c i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.scope-b i.all, .rail-c i.all { border: 1.5px solid var(--mute); }
.scope-b.paused { color: var(--mute); }
.main { flex: 1; overflow: auto; padding: 0 28px 48px; }
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 24px 0 18px; }
.ph h1 { font-size: 24px; font-weight: 400; margin: 6px 0 2px; }
.ph-r { display: flex; align-items: center; gap: 12px; }
.crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.env { font-size: 11.5px; color: var(--mute); border: 1px dashed var(--line2); border-radius: 4px; padding: 3px 8px; }

/* ---------- primitives ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 7px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); font-weight: 400; white-space: nowrap; transition: border-color .15s, background .15s; }
.btn:hover:not(:disabled) { border-color: #b9bec7; background: #fafbfc; }
.btn:disabled { color: #b0b5bd; cursor: not-allowed; border-color: var(--line); }
.btn-primary { border-color: var(--acc); color: var(--acc); font-weight: 500; }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--acc) 6%, white); border-color: var(--acc); }
.btn-ghost { border-color: transparent; color: var(--ink2); background: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--sunk); border-color: transparent; }
.btn-danger { color: var(--t-bad); border-color: color-mix(in srgb, var(--t-bad) 40%, white); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; gap: 5px; }
.btn-full { width: 100%; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; color: var(--ink2); background: var(--sunk); white-space: nowrap; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--tc, var(--mute)); }
.t-info { --tc: var(--t-info); } .t-warn { --tc: var(--t-warn); } .t-bad { --tc: var(--t-bad); color: var(--t-bad); } .t-done { --tc: var(--t-done); } .t-wait { --tc: var(--t-wait); } .t-active { --tc: var(--t-active); color: var(--ink); background: #e4e7ec; } .t-mute { --tc: #b3b8c0; color: var(--mute); } .t-neutral { --tc: #9aa0aa; }
.ctag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink2); white-space: nowrap; }
.ctag i { width: 8px; height: 8px; border-radius: 2px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.card > div:not(.card-b) { overflow-x: auto; }
.grid-2-1 > *, .kpis { min-width: 0; }
.main > * { max-width: 100%; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px var(--pad); border-bottom: 1px solid var(--line); }
.card-h h3 { font-size: 14px; }
.card-x { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.card-b { padding: var(--pad); }
.empty { color: var(--mute); padding: 14px 0; font-size: 13px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 7px; background: var(--sunk); color: var(--ink2); font-size: 13px; margin-bottom: 14px; }
.note .ic { margin-top: 2px; color: var(--mute); }
.n-warn { background: color-mix(in srgb, var(--t-warn) 9%, white); }
.msg { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 8px 10px; border-radius: 6px; margin-top: 8px; }
.msg .ic { margin-top: 2px; }
.m-bad { color: var(--t-bad); background: color-mix(in srgb, var(--t-bad) 7%, white); }
.m-warn { color: color-mix(in srgb, var(--t-warn) 70%, black); background: color-mix(in srgb, var(--t-warn) 9%, white); }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; min-width: 0; }
.field-l { font-size: 12px; color: var(--ink2); font-weight: 500; }
.field-h { font-size: 12px; color: var(--mute); } .field-err { font-size: 12px; color: var(--t-bad); }
.inp { height: 36px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 7px; background: var(--surface); width: 100%; }
textarea.inp { height: auto; padding: 8px 10px; resize: vertical; }
.inp:focus, .sel:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 10%, transparent); }
.inp-ro { display: flex; align-items: center; background: var(--sunk); border-color: var(--line); }
.sel { height: 32px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 7px; background: var(--surface); }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 7px; padding: 2px; background: var(--surface); }
.seg button { height: 26px; padding: 0 12px; border-radius: 5px; color: var(--ink2); font-size: 13px; white-space: nowrap; }
.seg button.on { background: var(--sunk); color: var(--ink); font-weight: 500; }
.sw { width: 30px; height: 18px; border-radius: 9px; border: 1px solid var(--line2); background: var(--sunk); position: relative; vertical-align: middle; transition: .15s; }
.sw i { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 1px solid var(--line2); transition: .15s; }
.sw.on { background: var(--acc); border-color: var(--acc); } .sw.on i { left: 14px; border-color: var(--acc); }
.sw:disabled { opacity: .45; cursor: not-allowed; }
.chk { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink2); cursor: pointer; }
.chk input, td input[type=checkbox] { accent-color: var(--acc); }
.link { color: var(--acc); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; font-size: 13px; }
.link:hover { text-decoration-color: var(--acc); }
.prog { position: relative; height: 6px; border-radius: 3px; background: var(--sunk); margin: 8px 0 6px; }
.prog-f { height: 100%; border-radius: 3px; background: var(--acc); opacity: .75; }
.prog-m { position: absolute; top: -3px; width: 1px; height: 12px; background: var(--ink2); }
.row-end { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.row-gap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; margin: 14px 0; }
.dl span { display: block; font-size: 11.5px; color: var(--mute); margin-bottom: 2px; }
.dl b { font-weight: 500; }
.sub { display: block; font-size: 12px; color: var(--mute); margin-top: 1px; font-weight: 400; }
.dots { margin: 4px 0 0; padding-left: 16px; } .dots li { margin-bottom: 4px; } .dots li::marker { color: var(--mute); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 13px; z-index: 100; animation: tin .2s ease; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
@keyframes tin { from { opacity: 0; transform: translate(-50%, 6px); } }

/* overlays */
.ovl { position: fixed; inset: 0; background: rgba(35, 39, 47, .18); z-index: 40; display: flex; justify-content: flex-end; animation: fin .15s; }
.ovl-c { justify-content: center; align-items: center; }
@keyframes fin { from { opacity: 0; } }
.drawer { width: 520px; max-width: 100%; height: 100%; background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; animation: din .2s ease; }
.drawer.wide { width: 620px; }
@keyframes din { from { transform: translateX(24px); opacity: .6; } }
.drawer-h { display: flex; justify-content: space-between; gap: 12px; padding: 18px 24px 14px; border-bottom: 1px solid var(--line); }
.drawer-h h2 { font-size: 18px; font-weight: 400; margin-top: 4px; }
.drawer-sub { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--mute); }
.drawer-b { flex: 1; overflow: auto; padding: 16px 24px 24px; }
.drawer-f { padding: 14px 24px; border-top: 1px solid var(--line); }
.x { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; color: var(--mute); }
.x:hover { background: var(--sunk); }
.modal { max-width: calc(100vw - 32px); max-height: calc(100vh - 48px); background: var(--surface); border-radius: 10px; border: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(30,34,42,.12); }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.modal-h h2 { font-size: 16px; }
.modal-b { padding: 18px 22px 6px; overflow: auto; }
.modal-f { padding: 14px 22px; border-top: 1px solid var(--line); }

/* ---------- pages ---------- */
.page { display: flex; flex-direction: column; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kpi { background: var(--surface); padding: 14px var(--pad); }
.kpi span { display: block; font-size: 12px; color: var(--mute); }
.kpi b { display: block; font-size: 22px; font-weight: 300; margin-top: 2px; letter-spacing: -.01em; }
.kpi em { font-size: 11.5px; color: var(--mute); }
.kpi-bad b { color: var(--t-bad); }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.acoes { display: flex; flex-direction: column; }
.acao { display: flex; align-items: center; gap: 12px; padding: var(--row) 4px; border-bottom: 1px solid var(--line); width: 100%; }
.acao:last-child { border-bottom: 0; }
.acao:hover { background: #fafbfc; }
.acao-ic { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--tc); flex: none; }
.acao-t { flex: 1; min-width: 0; } .acao-t b { display: block; font-weight: 500; } .acao-t em { display: block; font-size: 12.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acao > .ic:last-child { color: var(--mute); }
.a-info { --tc: var(--t-info); } .a-warn { --tc: var(--t-warn); } .a-bad { --tc: var(--t-bad); } .a-wait { --tc: var(--t-wait); }
.acoes.compact .acao { padding: 8px 2px; position: relative; padding-left: 12px; }
.acoes.compact .acao::before { content: ''; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--tc); }
.acoes.compact .acao-t b { font-weight: 400; font-size: 13px; }
.tl { display: flex; flex-direction: column; }
.tl-i { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); width: 100%; }
.tl-i:last-child { border-bottom: 0; }
.tl-t { width: 62px; font-family: ui-monospace, monospace; font-size: 13px; } .tl-t em { display: block; font-family: 'IBM Plex Sans'; font-size: 11.5px; color: var(--mute); }
.tl-bar { width: 3px; align-self: stretch; border-radius: 2px; }
.tl-c { flex: 1; min-width: 0; } .tl-c b { display: block; font-weight: 500; font-size: 13px; } .tl-c em { font-size: 12px; color: var(--mute); }
.feed { list-style: none; margin: 0; padding: 0; } .feed li { padding: 6px 0; font-size: 13px; color: var(--ink2); border-bottom: 1px solid var(--line); } .feed li:last-child { border: 0; } .feed em { font-family: ui-monospace; font-size: 11.5px; color: var(--mute); margin-right: 8px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-weight: 500; font-size: 11.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfc; }
.tbl th.r { text-align: right; } .tbl th.c { text-align: center; }
.tbl td { padding: var(--row) 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th:first-child, .tbl td:first-child { padding-left: var(--pad); }
.tbl th:last-child, .tbl td:last-child { padding-right: var(--pad); }
.tbl td b { font-weight: 500; }
.tbl tr.clk { cursor: pointer; } .tbl tr.clk:hover td { background: #fafbfc; }
.tbl tr.is-pick td { background: color-mix(in srgb, var(--acc) 4%, white); }
.tbl-mini td { padding: 9px 12px; vertical-align: middle; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 11px; border-radius: 15px; border: 1px solid transparent; color: var(--ink2); display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.chip:hover { border-color: var(--line); }
.chip.on { border-color: var(--line2); background: var(--surface); color: var(--ink); font-weight: 500; }
.chip em { font-size: 11.5px; color: var(--mute); font-weight: 400; }
.search { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 7px; background: var(--surface); color: var(--mute); }
.search input { border: 0; outline: 0; background: none; width: 200px; color: var(--ink); }
.board { display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.board-c { background: var(--sunk); border-radius: var(--r); padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 200px; }
.board-c header { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 4px; } .board-c header em { font-size: 12px; color: var(--mute); }
.bcard { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 10px; display: flex; flex-direction: column; gap: 3px; }
.bcard:hover { border-color: var(--line2); }
.bcard b { font-weight: 500; font-size: 13px; } .bcard em { font-size: 12px; color: var(--mute); }
.bcard-t, .bcard-f { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; color: var(--ink2); }
.bcard-f { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }

/* os drawer */
.os-top { display: flex; gap: 8px; flex-wrap: wrap; }
.panel { border: 1px solid var(--acc); border-radius: var(--r); padding: 16px; margin: 14px 0; }
.panel h4 { margin-bottom: 12px; font-size: 14px; }
.sub-card { border-top: 1px solid var(--line); padding: 14px 0 4px; margin-top: 4px; }
.sub-card h4 { font-size: 13px; margin-bottom: 4px; }
.sub-card .dl { margin: 10px 0; }
.quote { color: var(--ink2); padding: 10px 14px; background: var(--sunk); border-radius: 7px; margin: 6px 0 12px; font-size: 13px; }
.hist { list-style: none; padding: 0; margin: 8px 0 0; position: relative; }
.hist li { padding: 0 0 10px 18px; position: relative; font-size: 13px; color: var(--ink2); }
.hist li::before { content: ''; position: absolute; left: 3px; top: 7px; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--mute); background: #fff; }
.hist li::after { content: ''; position: absolute; left: 6px; top: 15px; bottom: 0; width: 1px; background: var(--line); }
.hist li:last-child::after { display: none; }
.hist em { font-family: ui-monospace; font-size: 11.5px; color: var(--mute); margin-right: 8px; }
.evid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 10px 0; }
.evph { aspect-ratio: 4/3; border-radius: 6px; border: 1px solid var(--line); background: repeating-linear-gradient(135deg, var(--sunk) 0 6px, #f8f9fa 6px 12px); display: flex; align-items: flex-end; padding: 6px; }
.evph span { font-family: ui-monospace; font-size: 10.5px; color: var(--ink2); background: rgba(255,255,255,.85); padding: 1px 5px; border-radius: 3px; }
.sched-info { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink2); margin: -2px 0 6px; }
.sched-info .ic { margin-top: 2px; color: var(--mute); }
.sched .row-end { margin-top: 14px; }

/* overview variants */
.ccols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.ccol { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad); display: flex; flex-direction: column; }
.ccol.is-paused { background: #fafbfc; }
.ccol-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ccol-h .ctag { font-size: 15px; color: var(--ink); font-weight: 500; } .ccol-h em { display: block; font-size: 12px; color: var(--mute); margin-top: 2px; }
.ccol-n { display: grid; grid-template-columns: repeat(4, 1fr); padding: 12px 0; border-bottom: 1px solid var(--line); }
.ccol-n span { display: block; font-size: 11.5px; color: var(--mute); } .ccol-n b { font-size: 20px; font-weight: 300; } .ccol-n b.sm { font-size: 14px; font-weight: 400; }
.ccol h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); font-weight: 500; margin: 14px 0 4px; }
.ccol-f { margin-top: 14px; }
.wk { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.wk-d { display: flex; flex-direction: column; gap: 6px; min-height: 220px; }
.wk-d header { font-size: 12px; color: var(--mute); padding-bottom: 6px; border-bottom: 1px solid var(--line); } .wk-d header b { color: var(--ink); font-weight: 500; }
.wk-d.is-today header { border-bottom-color: var(--acc); }
.wk-i { padding: 7px 8px; border-radius: 6px; border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--c); font-size: 12px; }
.wk-i:hover { border-color: var(--line2); }
.wk-i b { display: block; font-weight: 500; } .wk-i em { color: var(--mute); }
.wk-i.is-lote { background: repeating-linear-gradient(135deg, #fff 0 5px, var(--sunk) 5px 6px); }
.wk-e { font-size: 12px; color: #bbc0c7; }

/* agenda */
.grid-agenda { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
.legend { display: flex; gap: 12px; }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cal-h, .cal-r { display: grid; grid-template-columns: 150px repeat(6, minmax(0, 1fr)); }
.cal-h > div { padding: 10px; font-size: 12px; color: var(--mute); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); background: #fafbfc; }
.cal-h > div:first-child { border-left: 0; }
.cal-h > div.is-today { color: var(--ink); box-shadow: inset 0 -2px 0 var(--acc); }
.cal-h b { color: var(--ink); font-weight: 500; }
.cal-r { border-bottom: 1px solid var(--line); } .cal-r:last-child { border-bottom: 0; }
.cal-rh { padding: 10px; font-size: 13px; display: flex; flex-direction: column; gap: 1px; }
.cal-rh i { width: 8px; height: 8px; border-radius: 2px; margin-bottom: 4px; }
.cal-rh b { font-weight: 500; } .cal-rh em { font-size: 11px; color: var(--mute); }
.cal-c { border-left: 1px solid var(--line); padding: 6px; min-height: 96px; display: flex; flex-direction: column; gap: 5px; transition: background .1s; }
.cal-c.is-today { background: #fbfbfc; }
.cal-c.is-over { background: color-mix(in srgb, var(--acc) 7%, white); outline: 1px dashed var(--acc); outline-offset: -3px; }
.cal-c.is-closed { background: repeating-linear-gradient(135deg, #fff 0 6px, #f3f4f6 6px 7px); }
.cal-closed { font-size: 11px; color: var(--mute); }
.ev { border: 1px solid var(--line); border-radius: 6px; padding: 5px 7px; font-size: 11.5px; background: #fff; box-shadow: inset 3px 0 0 var(--c); cursor: pointer; display: flex; flex-direction: column; line-height: 1.3; }
.ev[draggable=true] { cursor: grab; }
.ev:hover { border-color: var(--line2); }
.ev b { font-family: ui-monospace; font-weight: 500; font-size: 11px; } .ev span { color: var(--ink2); } .ev em { color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-execucao { background: #f1f2f5; } .ev-concluido { opacity: .55; }
.ev-lote { background: repeating-linear-gradient(135deg, #fff 0 5px, var(--sunk) 5px 6px); }
.ev.is-drag { opacity: .4; }

/* lotes */
.lotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.lote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad); display: flex; flex-direction: column; gap: 6px; }
.lote:hover, .lote.is-sel { border-color: var(--line2); }
.lote.is-sel { box-shadow: 0 0 0 1px var(--acc); }
.lote-h { display: flex; justify-content: space-between; }
.lote h3 { font-size: 16px; font-weight: 400; margin-top: 6px; }
.lote-p { margin: 8px 0 2px; }
.lote .dl { margin: 6px 0 0; }
.lote-big { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 0; } .lote-big b { font-size: 36px; font-weight: 300; } .lote-big span { color: var(--mute); }
.pick { border: 1px solid var(--line); border-radius: 7px; max-height: 200px; overflow: auto; margin: 10px 0; }
.pick-i { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); width: 100%; }
.pick-i:hover { background: #fafbfc; } .pick-i b { font-weight: 500; width: 90px; } .pick-i em { flex: 1; font-size: 12.5px; color: var(--mute); }

/* condos */
.condos { display: flex; flex-direction: column; gap: 16px; }
.condo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.condo.is-sel { box-shadow: 0 0 0 1px var(--acc); }
.condo-h { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--pad); border-bottom: 1px solid var(--line); gap: 12px; }
.condo-h h3 { font-size: 17px; font-weight: 400; display: flex; align-items: center; gap: 10px; } .condo-h h3 i { width: 10px; height: 10px; border-radius: 3px; }
.condo-h em { font-size: 12.5px; color: var(--mute); }
.condo > .msg { margin: 12px var(--pad) 0; }
.condo-g { display: grid; grid-template-columns: repeat(3, 1fr); }
.condo-s { padding: 14px var(--pad); border-left: 1px solid var(--line); font-size: 13px; }
.condo-s:first-child { border-left: 0; }
.condo-s h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); font-weight: 500; margin: 12px 0 5px; }
.condo-s h4:first-child { margin-top: 0; }
.condo-s p { margin-bottom: 3px; }
.condo-s .dl { margin: 4px 0; }
.svl { list-style: none; padding: 0; margin: 0 0 8px; }
.svl li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.svl li em { font-size: 12px; color: var(--t-done); white-space: nowrap; }
.svl li.off span { color: var(--mute); } .svl li.off em { color: var(--mute); }
.condo-f { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--pad); border-top: 1px solid var(--line); background: #fafbfc; border-radius: 0 0 var(--r) var(--r); font-size: 12.5px; }
.lockc { color: #b3b8c0; display: inline-flex; }
.legend-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; } .legend-row span { display: inline-flex; gap: 6px; align-items: center; }

/* equipe */
.acc { height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px; border: 1px solid var(--line2); }
.acc-autorizado { border-color: transparent; background: color-mix(in srgb, var(--t-done) 12%, white); color: color-mix(in srgb, var(--t-done) 70%, black); }
.acc-pendente { border-color: transparent; background: color-mix(in srgb, var(--t-wait) 10%, white); color: var(--t-wait); cursor: default; }
.acc-nenhum { color: var(--mute); border-style: dashed; }
.acc-nenhum:hover { color: var(--acc); border-color: var(--acc); }
.acc-autorizado:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t-bad) 40%, white); }

/* financeiro */
.wallet { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; margin-bottom: 10px; }
.wallet > div { flex: 1; } .wallet em { display: block; font-size: 12px; color: var(--mute); }

/* qualidade */
.qcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.qcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad); }
.qcard .dl { margin: 12px 0 6px; }
.recl { padding: 12px 0; border-bottom: 1px solid var(--line); }
.recl:last-child { border-bottom: 0; }
.recl.is-sel { background: color-mix(in srgb, var(--acc) 3%, white); margin: 0 -12px; padding: 12px; border-radius: 6px; }
.recl b { font-weight: 500; }
.recl-r .row-end { margin-top: 8px; }
.aval { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; } .aval:last-child { border: 0; }
.aval p { color: var(--ink2); margin-top: 3px; }
.stars { color: var(--ink2); letter-spacing: 1px; font-size: 13px; } .stars i { color: #d6d9de; font-style: normal; }

@media (max-width: 1180px) {
  .grid-2-1, .grid-agenda { grid-template-columns: 1fr; }
  .condo-g { grid-template-columns: 1fr; } .condo-s { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- multi-nicho ---------- */
.side-pick { padding: 0 14px 10px; }
.npick { display: flex; flex-direction: column; gap: 4px; }
.npick span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.npick select { height: 32px; border: 1px solid var(--line2); border-radius: 7px; background: var(--sunk); padding: 0 8px; font-size: 12.5px; width: 100%; }
.inp-xs { height: 28px; width: 80px; padding: 0 6px; text-align: right; }
/* custódia 06 */
.steps { list-style: none; padding: 0; margin: 10px 0 4px; display: flex; gap: 6px; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mute); padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; }
.steps li i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; font-style: normal; font-size: 11px; flex: none; }
.steps li.ok { color: var(--ink); } .steps li.ok i { background: var(--acc); border-color: var(--acc); color: #fff; }
.cam { display: grid; grid-template-columns: 180px 1fr; gap: 14px; align-items: start; margin-top: 8px; }
.cam-v { aspect-ratio: 16/10; border-radius: 6px; border: 1px solid var(--line); background: repeating-linear-gradient(135deg, var(--sunk) 0 6px, #f8f9fa 6px 12px); display: flex; align-items: flex-end; padding: 6px; }
.cam-v span { font-family: ui-monospace; font-size: 10.5px; background: rgba(255,255,255,.88); padding: 1px 5px; border-radius: 3px; color: var(--ink2); }
.cam-v.live { border-color: var(--acc); }
.chat { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; max-height: 220px; overflow: auto; }
.chat-m { max-width: 80%; padding: 7px 10px; border-radius: 8px; font-size: 13px; background: var(--sunk); align-self: flex-start; }
.chat-m.parceiro { align-self: flex-end; background: color-mix(in srgb, var(--acc) 8%, white); }
.chat-m em { display: block; font-size: 11px; color: var(--mute); }
.chat-f { display: flex; gap: 8px; }
/* agenda dia */
.dayv-h { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: #fafbfc; }
.dayv-h > div { padding: 9px 10px; border-left: 1px solid var(--line); font-size: 12.5px; } .dayv-h > div:first-child { border-left: 0; }
.dayv-h b { display: block; font-weight: 500; } .dayv-h em { font-size: 11.5px; color: var(--mute); }
.dayv-b { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(0, 1fr)); position: relative; }
.dayv-t { position: relative; } .dayv-t span { position: absolute; right: 8px; white-space: nowrap; font-family: ui-monospace; font-size: 11px; color: var(--mute); transform: translateY(-2px); }
.dayv-c { position: relative; border-left: 1px solid var(--line); }
.dayv-c > i { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); opacity: .7; }
.ev-ag { position: absolute; left: 4px; right: 4px; overflow: hidden; text-align: left; }
.ev-solicitada { border-style: dashed; background: #fff; } .ev-atendida, .ev-ausente { opacity: .55; }
.ev-ausente { text-decoration: line-through; }
.privacy { background: color-mix(in srgb, var(--t-wait) 5%, white); margin: 10px -10px 0; padding: 14px 10px 8px; border-radius: 6px; border-top: 0; }
.privacy h4 { display: flex; align-items: center; gap: 6px; }
/* encomenda */
.ciclo { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px var(--pad); flex-wrap: wrap; }
.ciclo-s { display: flex; gap: 6px; flex-wrap: wrap; }
.ciclo-i { display: flex; align-items: center; gap: 9px; padding: 4px 14px 4px 4px; position: relative; }
.ciclo-i + .ciclo-i::before { content: ''; width: 18px; height: 1px; background: var(--line2); margin-right: 4px; }
.ciclo-i i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; font-style: normal; font-size: 11.5px; color: var(--mute); flex: none; }
.ciclo-i.ok i { background: var(--acc); border-color: var(--acc); color: #fff; }
.ciclo-i b { display: block; font-weight: 500; font-size: 13px; } .ciclo-i em { font-size: 11.5px; color: var(--mute); }
.prodv { border-bottom: 1px solid var(--line); } .prodv:last-of-type { border-bottom: 0; }
.prodv header { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--pad) 4px; } .prodv header em { font-size: 12px; color: var(--mute); }
.prodv header b { font-weight: 500; color: var(--ink); font-size: 14px; }
.prodv.is-done { background: #fafbfc; } .prodv.is-done td { color: var(--mute); }
/* coletiva */
.cgrp { display: flex; flex-direction: column; gap: 10px; }
.cgrp-h { display: flex; align-items: center; gap: 10px; font-size: 14px; } .cgrp-h .ctag { font-size: 14px; color: var(--ink); font-weight: 500; }
.cprog { display: block; width: 100%; padding: 8px 0; border-bottom: 1px solid var(--line); } .cprog:last-child { border-bottom: 0; }
.cprog b { font-weight: 500; font-size: 13px; }
/* suspenso */
.susp-h { display: flex; gap: 16px; align-items: flex-start; padding: 18px var(--pad); background: var(--surface); border: 1px dashed var(--line2); border-radius: var(--r); }
.susp-h h2 { font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.susp-ic { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); display: grid; place-items: center; color: var(--t-warn); flex: none; }
