/* Painel · Marcela Girardi */
:root {
  --ivory: #f3eee6; --ivory-2: #e9e1d3; --paper: #fbf8f3; --white: #fff;
  --ink: #171513; --ink-2: #221f1b; --ink-3: #2e2924; --mute: #756c61; --mute-2: #a39a8d;
  --gold: #c9a15a; --gold-d: #96702f; --gold-l: #ead3a0; --line: #e6dccb; --line-d: rgba(201, 161, 90, .2);
  --gold-grad: linear-gradient(100deg, #8a6224 0%, #c9973f 22%, #f3dca3 44%, #d6aa58 60%, #8a6224 100%);
  --ok: #3f7d4e; --ok-bg: #e6f1e7; --warn: #a3661a; --warn-bg: #fbefdc; --bad: #a4422e; --bad-bg: #f8e3dd; --info: #2f5f8a; --info-bg: #e2edf6; --mute-bg: #eeeae3;
  --serif: 'Cormorant Garamond', Georgia, serif; --sans: 'Jost', system-ui, sans-serif;
  --r: 14px; --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--ivory); color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.loading { text-align: center; color: var(--mute); padding: 80px 0; }
.i { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- login ---------- */
.login { min-height: 100svh; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at 50% 0%, rgba(201, 161, 90, .22), transparent 60%), radial-gradient(ellipse at 50% 100%, rgba(120, 14, 26, .45), transparent 60%), var(--ink); }
.login-card { width: min(420px, 100%); background: var(--paper); border-radius: 22px; padding: 36px 32px 26px; text-align: center; box-shadow: 0 40px 90px -30px #000; animation: up .7s var(--ease); }
@keyframes up { from { opacity: 0; transform: translateY(20px); } }
.login-card img.lg { width: 70px; margin: 0 auto 10px; }
.login-card h1 { margin: 0; font: 500 2rem/1.1 var(--serif); }
.login-card > p { color: var(--mute); margin: 6px 0 20px; }
.login-card .form { text-align: left; }
.demo-note { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 10px 12px; font-size: .86rem; text-align: left; }

/* ---------- estrutura ---------- */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100svh; }
.side { position: sticky; top: 0; height: 100svh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 20px 14px 16px; background: var(--ink); color: #d9d0c2; background-image: radial-gradient(ellipse at 0% 0%, rgba(201, 161, 90, .16), transparent 55%), radial-gradient(ellipse at 100% 100%, rgba(120, 14, 26, .35), transparent 60%); }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; text-decoration: none; border-bottom: 1px solid var(--line-d); margin-bottom: 10px; }
.side-brand img { width: 40px; }
.side-brand b { display: block; font: 500 1.25rem/1 var(--serif); color: #f3ede3; }
.side-brand small { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-l); }
.side-label { margin: 14px 10px 4px; font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: #8d8475; }
.nav { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-decoration: none; font-size: .9rem; color: #cfc6b8; transition: background .25s, color .25s; }
.nav:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav.on { background: linear-gradient(90deg, rgba(155, 24, 36, .35), rgba(201, 161, 90, .06)); color: var(--gold-l); box-shadow: inset 2px 0 0 var(--gold); }
.badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: #1a140b; font-size: .72rem; font-weight: 600; display: grid; place-items: center; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-d); display: grid; gap: 2px; }
.side-foot a, .side-foot button { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; text-decoration: none; font-size: .86rem; color: #b9b0a2; cursor: pointer; text-align: left; }
.side-foot a:hover, .side-foot button:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; }
.me b { display: block; font-size: .88rem; color: #f3ede3; }
.me small { font-size: .74rem; color: #8d8475; }
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--gold-grad); color: #1a140b; font-weight: 600; font-size: .85rem; }
.av.sm { width: 32px; height: 32px; font-size: .75rem; }
.credit-box { margin-top: 12px; padding: 12px 10px 4px; border-top: 1px solid var(--line-d); text-align: center; }
.cb-by { margin: 0; font-size: .7rem; color: #8d8475; display: flex; align-items: center; justify-content: center; gap: 4px; }
.cb-heart { width: 12px; color: var(--gold); animation: beat 1.6s infinite; }
@keyframes beat { 15% { transform: scale(1.25); } 30% { transform: scale(1); } }
.cb-names { margin: 4px 0 0; font-size: .82rem; }
.cb-link { color: var(--gold-l); text-decoration: none; }
.cb-link:hover { text-decoration: underline; }
.cb-sep { margin: 0 6px; color: #6d655a; }
.phrase { margin: 10px 0 0; font: italic 500 1.05rem/1.25 var(--serif); color: transparent; background: var(--gold-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; transition: background-position 1.2s; cursor: default; }
.phrase:hover { background-position: -100% 0; }
.main { min-width: 0; display: flex; flex-direction: column; }
.demo-bar { margin: 0; padding: 8px 24px; background: var(--warn-bg); color: var(--warn); font-size: .84rem; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 16px 28px; background: rgba(243, 238, 230, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top h1 { margin: 0; font: 500 1.8rem/1.1 var(--serif); }
.top .sp { flex: 1; }
.menu-btn { display: none !important; }
.page { padding: 24px 28px 60px; display: grid; gap: 18px; align-content: start; }

/* ---------- componentes ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; min-width: 0; }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.card-h h2 { margin: 0; font: 500 1.35rem/1.2 var(--serif); }
.card-h p { margin: 0; font-size: .82rem; color: var(--mute); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.kpi { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 14px; overflow: hidden; }
.kpi::after { content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 161, 90, .16), transparent 70%); }
.kpi small { display: block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.kpi b { display: block; font: 500 2.1rem/1.1 var(--serif); margin-top: 4px; }
.kpi .sub { font-size: .78rem; color: var(--mute); }
.kpi-ico { position: absolute; right: 14px; top: 14px; color: var(--gold-d); }
.kpi.link { cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; }
.kpi.link:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(60, 40, 10, .5); }
.delta { font-size: .76rem; font-weight: 500; margin-left: 6px; }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: .88rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, transform .2s; }
.btn:hover { border-color: var(--gold); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-p { background: var(--ink); color: var(--gold-l); border-color: var(--ink); }
.btn-p:hover { background: var(--ink-3); border-color: var(--gold); }
.btn-gold { background: var(--gold-grad); background-size: 200% 100%; color: #1a140b; border: 0; }
.btn-gold:hover { background-position: 100% 0; }
.btn-ghost { background: none; border-color: transparent; }
.btn-ghost:hover { background: rgba(0, 0, 0, .05); border-color: transparent; }
.btn-bad { color: var(--bad); }
.btn-bad:hover { border-color: var(--bad); background: var(--bad-bg); }
.btn-wa { background: #1f8a4c; color: #fff; border-color: #1f8a4c; }
.btn-wa:hover { background: #18723e; border-color: #18723e; }
.btn-sm { min-height: 32px; padding: 0 11px; font-size: .8rem; border-radius: 8px; }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.hint { font-size: .8rem; color: var(--mute); margin: 4px 0 0; }
.muted { color: var(--mute); }
.small { font-size: .82rem; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: .72rem; font-weight: 500; background: var(--mute-bg); color: var(--mute); white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); } .tag.warn { background: var(--warn-bg); color: var(--warn); } .tag.bad { background: var(--bad-bg); color: var(--bad); } .tag.info { background: var(--info-bg); color: var(--info); } .tag.gold { background: #f6ecd6; color: var(--gold-d); }
.tag.paid { background: var(--ink); color: var(--gold-l); }
.empty { text-align: center; color: var(--mute); padding: 30px 10px; font-size: .9rem; }
.empty b { display: block; font: 500 1.2rem var(--serif); color: var(--ink); margin-bottom: 4px; }
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--ivory-2); }
.tabs button { border: 0; background: none; padding: 7px 13px; border-radius: 8px; font-size: .84rem; cursor: pointer; color: var(--mute); }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); font-weight: 500; }
.search { position: relative; flex: 1; min-width: 180px; max-width: 360px; }
.search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--mute); }
.search input { padding-left: 38px !important; }
.inp, .form input, .form select, .form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: .92rem; transition: border-color .2s, box-shadow .2s; }
.inp:focus, .form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 161, 90, .18); }
.form { display: grid; gap: 12px; }
.f { display: grid; gap: 5px; min-width: 0; }
.f > span { font-size: .74rem; font-weight: 500; letter-spacing: .04em; color: var(--mute); }
.f textarea { resize: vertical; min-height: 80px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.check { display: flex; gap: 8px; align-items: center; font-size: .9rem; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--gold-d); }
.list { display: grid; }
.li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; transition: background .2s; }
.li:last-child { border-bottom: 0; }
.li:hover { background: rgba(201, 161, 90, .07); }
.li b { font-weight: 500; }
.li small { display: block; font-size: .8rem; color: var(--mute); }
.li .r { text-align: right; display: grid; justify-items: end; gap: 4px; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 400; background: var(--ink); color: var(--gold-l); padding: 12px 18px; border-radius: 12px; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .5); font-size: .9rem; max-width: calc(100% - 32px); animation: up .4s var(--ease); }

/* modal e gaveta */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(15, 12, 9, .55); backdrop-filter: blur(4px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal-card { width: min(560px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--paper); border-radius: 18px; padding: 22px 24px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); animation: up .4s var(--ease); }
.modal-card.wide { width: min(980px, 100%); }
.modal-card h2 { margin: 0 0 6px; font: 500 1.6rem/1.15 var(--serif); }
.modal-card > p { color: var(--mute); margin: 0 0 14px; }
.modal-card .actions { margin-top: 16px; }
.mh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.mh h2 { margin: 0; }
.drawer { position: fixed; inset: 0; z-index: 250; display: flex; justify-content: flex-end; background: rgba(15, 12, 9, .4); animation: fade .25s; }
.drawer-in { width: min(640px, 100%); height: 100%; overflow-y: auto; background: var(--paper); box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .5); animation: slide .4s var(--ease); display: flex; flex-direction: column; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.dh { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; gap: 12px; padding: 18px 22px 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
.dh h2 { margin: 0; font: 500 1.6rem/1.15 var(--serif); }
.dh p { margin: 2px 0 0; color: var(--mute); font-size: .86rem; }
.dh .x { margin-left: auto; }
.db { padding: 18px 22px 30px; display: grid; gap: 16px; }
.dtabs { display: flex; gap: 4px; padding: 0 22px; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 72px; z-index: 2; overflow-x: auto; }
.dtabs button { border: 0; background: none; padding: 12px 10px; font-size: .88rem; color: var(--mute); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.dtabs button[aria-selected="true"] { color: var(--ink); border-color: var(--gold); font-weight: 500; }
.box { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--white); }
.box h3 { margin: 0 0 8px; font: 500 1.1rem var(--serif); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 4px 12px; font-size: .86rem; margin: 0; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; word-break: break-word; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 1px solid var(--line); display: grid; gap: 12px; }
.timeline li { position: relative; font-size: .86rem; }
.timeline li::before { content: ''; position: absolute; left: -21px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--paper); }
.timeline li.ok::before { background: var(--ok); } .timeline li.warn::before { background: var(--warn); }
.timeline small { color: var(--mute); display: block; }
.note-add { display: grid; grid-template-columns: 130px 1fr auto; gap: 8px; align-items: start; }

/* CRM quadro */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { background: var(--ivory-2); border-radius: 14px; padding: 10px; min-height: 200px; transition: background .2s, box-shadow .2s; }
.col.over { background: #efe3cc; box-shadow: inset 0 0 0 2px var(--gold); }
.col-h { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; }
.col-h b { font-size: .86rem; font-weight: 500; }
.col-h .n { font-size: .74rem; color: var(--mute); background: var(--paper); border-radius: 99px; padding: 1px 8px; }
.col-h .v { margin-left: auto; font-size: .76rem; color: var(--gold-d); font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.c-sky { background: #5b8fb9; } .c-gold { background: var(--gold); } .c-lilac { background: #9b7fb3; } .c-coral { background: #d47c5c; } .c-leaf { background: #5c9a6a; } .c-mute { background: #a39a8d; }
.lcard { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; cursor: grab; display: grid; gap: 5px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.lcard:hover { box-shadow: 0 10px 24px -16px rgba(60, 40, 10, .5); border-color: #dccfb6; }
.lcard.drag { opacity: .45; transform: rotate(2deg); }
.lcard b { font-weight: 500; font-size: .92rem; }
.lcard small { font-size: .78rem; color: var(--mute); }
.lcard .row { gap: 6px; }
.late { color: var(--bad) !important; font-weight: 500; }

/* gráficos */
.chart { width: 100%; height: auto; }
.chart text { font-size: 10px; fill: var(--mute); font-family: var(--sans); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .bar { fill: var(--gold); transition: fill .2s; }
.chart .bar.b2 { fill: var(--ink); }
.chart .bar:hover { fill: var(--gold-d); }
.legend { display: flex; gap: 14px; font-size: .78rem; color: var(--mute); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.hbars { display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 1.4fr) auto 1fr; gap: 10px; align-items: center; font-size: .86rem; }
.hbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar b { font-weight: 500; font-variant-numeric: tabular-nums; min-width: 26px; text-align: right; }
.hbar i { height: 8px; border-radius: 4px; background: var(--ivory-2); overflow: hidden; }
.hbar i span { display: block; height: 100%; background: var(--gold-grad); border-radius: 4px; }
.funnel { display: grid; gap: 8px; }
.fn-row { display: grid; grid-template-columns: 170px 1fr 70px; gap: 10px; align-items: center; font-size: .86rem; }
.fn-bar { height: 26px; background: var(--ivory-2); border-radius: 7px; overflow: hidden; }
.fn-bar i { display: block; height: 100%; background: var(--gold-grad); border-radius: 7px; }
.fn-row b { text-align: right; font-weight: 500; }
.fn-row b small { color: var(--mute); font-weight: 400; margin-left: 4px; }

/* arquivos, prévias e editor */
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.file { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); aspect-ratio: 1; display: grid; place-items: center; font-size: .78rem; color: var(--mute); text-align: center; }
.file img, .file video { width: 100%; height: 100%; object-fit: cover; }
.file .x { position: absolute; right: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; }
.file .nm { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop { border: 1.5px dashed #d5c6a8; border-radius: 12px; padding: 16px; text-align: center; color: var(--mute); font-size: .86rem; cursor: pointer; transition: background .2s, border-color .2s; }
.drop:hover, .drop.over { background: #fbf3e3; border-color: var(--gold); }
.editor-bar { display: flex; gap: 4px; flex-wrap: wrap; padding: 6px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--ivory); }
.editor-bar button, .editor-bar select { border: 1px solid transparent; background: none; border-radius: 6px; padding: 4px 9px; cursor: pointer; font-size: .84rem; }
.editor-bar button:hover { background: var(--white); border-color: var(--line); }
.editor { min-height: 360px; max-height: 60svh; overflow-y: auto; padding: 18px 22px; border: 1px solid var(--line); border-radius: 0 0 10px 10px; background: var(--white); font: 400 15px/1.7 Georgia, serif; }
.editor:focus { outline: none; border-color: var(--gold); }
.editor h3 { font-size: 15px; margin: 16px 0 6px; }
.editor p { margin: 0 0 10px; }
.var-miss { background: #fff1c2; border-radius: 3px; padding: 0 2px; }
.doc-frame { background: var(--ivory-2); border-radius: 12px; padding: 16px; max-height: 64svh; overflow-y: auto; }
.preview-card { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; }
.dep-thumb { width: 120px; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--ink); display: grid; place-items: center; color: var(--gold-l); font-size: .74rem; text-align: center; }
.dep-thumb img, .dep-thumb video { width: 100%; height: 100%; object-fit: cover; }
.deps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.copy { display: flex; gap: 8px; }
.copy input { font-family: ui-monospace, monospace; font-size: .82rem; }
.sec-title { margin: 6px 0 0; font: 500 1.3rem var(--serif); }
.arr-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--white); display: grid; gap: 10px; }
.arr-item h4 { margin: 0; font: 500 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); }
.record { border: 1px solid #cfe1d2; background: #f3f9f4; border-radius: 12px; padding: 14px; }
.record.warn { border-color: #efd7b4; background: #fdf6ea; }
.record h3 { margin: 0 0 8px; font: 500 1.15rem var(--serif); }

@media (max-width: 1100px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 260; width: 270px; transform: translateX(-100%); transition: transform .35s var(--ease); }
  .menu-open .side { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .4); }
  .menu-btn { display: inline-flex !important; }
  .top { padding: 10px 14px; flex-wrap: wrap; row-gap: 8px; }
  .top .sp { display: none; }
  .top #acts { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .top #acts:empty { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px; } .kpi b { font-size: 1.6rem; } .kpi small { font-size: .66rem; }
  .kpi-ico { display: none; }
  .top h1 { font-size: 1.45rem; }
  .page { padding: 16px 14px 50px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .f2, .f3 { grid-template-columns: 1fr; }
  .note-add { grid-template-columns: 1fr; }
  .fn-row { grid-template-columns: 110px 1fr 60px; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 6px; }
  .preview-card { grid-template-columns: 90px 1fr; }
  .dep-thumb { width: 90px; }
}
@media print { body > *:not(#print-area) { display: none !important; } #print-area { display: block !important; } }
