/* Contab-e — folha de estilo
   Identidade: livro-caixa + guia de imposto + carimbo. */
:root {
  --ink: #12312b;
  --brand: #17604f;
  --brand-2: #0f4a3d;
  --paper: #f5f7f4;
  --white: #ffffff;
  --rule: #d5e2db;
  --rule-2: #e7efea;
  --muted: #5b6f68;
  --stamp: #3047c9;
  --due: #b77900;
  --danger: #b42318;
  --ok: #157347;
  --radius: 6px;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--brand-2); }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.num, .money, td.n { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Botões */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--brand); background: var(--brand); color: #fff; font: 600 16px/1 var(--body); padding: 14px 22px; border-radius: var(--radius); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn-stamp { background: var(--stamp); border-color: var(--stamp); }
.btn-stamp:hover { background: #2236a3; border-color: #2236a3; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-link { background: none; border: 0; color: var(--brand); padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Cabeçalho do site */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--ink); text-decoration: none; letter-spacing: -.03em; display: flex; align-items: center; gap: 8px; }
.logo svg { width: 30px; height: 30px; }
.logo b { color: var(--stamp); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover, .nav a.active { color: var(--brand); text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { color: #fff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: var(--radius); padding: 8px 10px; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: stretch; padding: 12px 22px 22px; border-bottom: 1px solid var(--rule); gap: 4px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
}

/* Hero */
.hero { padding: 72px 0 84px; border-bottom: 1px solid var(--rule); background:
  repeating-linear-gradient(to bottom, transparent 0 39px, var(--rule-2) 39px 40px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero-note { font-size: 15px; color: var(--muted); }
.stats { display: flex; gap: 34px; margin-top: 34px; flex-wrap: wrap; }
.stats div { border-left: 3px solid var(--brand); padding-left: 12px; }
.stats strong { display: block; font-family: var(--display); font-size: 26px; font-variant-numeric: tabular-nums; }
.stats span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 44px 0 56px; } }

/* A guia (peça visual do hero) */
.guia { position: relative; background: var(--white); border: 1px solid var(--rule); border-radius: 4px; padding: 26px 26px 22px; box-shadow: 0 18px 40px -24px rgba(18, 49, 43, .45); transform: rotate(-1.2deg); max-width: 440px; justify-self: center; width: 100%; }
.guia::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 10px; background: radial-gradient(circle at 7px -2px, transparent 7px, var(--white) 7.5px) repeat-x; background-size: 14px 10px; }
.guia-top { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px dashed var(--rule); padding-bottom: 14px; margin-bottom: 14px; }
.guia-top h3 { margin: 0; font-size: 18px; }
.guia-top small { color: var(--muted); font-size: 13px; display: block; }
.guia-top svg { width: 34px; height: 34px; flex-shrink: 0; }
.guia dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; font-size: 15px; }
.guia dt { color: var(--muted); }
.guia dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.guia .total { border-top: 1px solid var(--ink); margin-top: 12px; padding-top: 12px; display: flex; justify-content: space-between; font-family: var(--display); font-size: 22px; font-weight: 700; }
.barcode { margin-top: 16px; height: 46px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); opacity: .85; }
.carimbo { position: absolute; right: 34px; bottom: 30px; border: 4px solid var(--stamp); color: var(--stamp); font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: .06em; padding: 2px 16px; border-radius: 8px; transform: rotate(-14deg); opacity: .88; mix-blend-mode: multiply; animation: carimbar .5s cubic-bezier(.2, 1.6, .4, 1) .7s both; }
.carimbo small { display: block; font-size: 11px; letter-spacing: 0; font-weight: 600; text-align: center; margin-top: -4px; }
@keyframes carimbar { from { transform: rotate(-14deg) scale(2.2); opacity: 0; } to { transform: rotate(-14deg) scale(1); opacity: .88; } }
@media (prefers-reduced-motion: reduce) { .carimbo { animation: none; } html { scroll-behavior: auto; } }

/* Seções */
.section { padding: 84px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* Planos como colunas do livro-caixa */
.ledger { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); background: var(--white); border: 1px solid var(--rule); border-radius: 4px; }
.ledger .col { padding: 28px 24px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; position: relative; }
.ledger .col:first-child { border-left: 0; }
.ledger .col.hl { box-shadow: inset 0 4px 0 var(--stamp); background: #f7f8ff; }
.ledger .tag { position: absolute; top: 12px; right: 14px; font-size: 13px; color: var(--stamp); font-weight: 600; }
.ledger h3 { margin-bottom: 4px; }
.ledger .target { font-size: 14px; color: var(--muted); min-height: 66px; }
.ledger .price { white-space: nowrap; font-family: var(--display); font-size: clamp(28px, 2.6vw, 38px); font-weight: 700; font-variant-numeric: tabular-nums; margin: 10px 0 2px; letter-spacing: -.02em; }
.ledger .price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.ledger ul { list-style: none; padding: 0; margin: 18px 0 24px; font-size: 15px; flex: 1; }
.ledger li { padding: 8px 0 8px 24px; border-top: 1px solid var(--rule-2); position: relative; }
.ledger li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.ledger .btn { justify-content: center; }
.ledger .col:not(:has(.btn)) { padding-bottom: 28px; }
.plans-note { margin-top: 18px; color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .ledger { grid-template-columns: 1fr 1fr; } .ledger .col:nth-child(3) { border-left: 0; } .ledger .col:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 620px) { .ledger { grid-template-columns: 1fr; } .ledger .col { border-left: 0; border-top: 1px solid var(--rule); } .ledger .col:first-child { border-top: 0; } .ledger .target { min-height: 0; } }

/* Passos (sequência real) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; }
.steps li { list-style: none; padding: 0 28px 0 0; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--brand); border-radius: 50%; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--brand); margin-bottom: 16px; background: var(--paper); }
.steps { padding: 0; margin: 0; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 44px; right: 28%; border-top: 2px dashed var(--rule); z-index: 0; }
.steps li { position: relative; z-index: 1; }
.steps p { color: var(--muted); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 28px; } .steps::before { display: none; } }

/* Diferenciais */
.reasons { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.reasons div { padding: 22px 0; border-top: 1px solid var(--rule); }
.reasons h3 { margin-bottom: 6px; }
.reasons p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; } }

/* Depoimentos */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.quotes figure { margin: 0; padding: 0 0 0 20px; border-left: 3px solid var(--stamp); }
.quotes blockquote { margin: 0 0 12px; font-size: 17px; }
.quotes figcaption { font-size: 14px; color: var(--muted); }
.quotes figcaption strong { color: var(--ink); display: block; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--rule); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 16px 32px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 18px; color: var(--muted); }

/* Chamada final */
.cta-band { background: var(--brand); color: #fff; padding: 64px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .85; }
.cta-band .btn { background: #fff; color: var(--brand); border-color: #fff; }
.cta-band .btn:hover { background: var(--paper); }

/* Rodapé */
.site-footer { background: var(--ink); color: #c9d6d1; padding: 60px 0 26px; font-size: 15px; }
.site-footer a { color: #e4eeea; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 4px 0; }
.site-footer .logo { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Páginas internas */
.page-head { padding: 56px 0 36px; border-bottom: 1px solid var(--rule); }
.page-head p { color: var(--muted); font-size: 19px; max-width: 60ch; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: 4px; }
.prose blockquote { border-left: 3px solid var(--brand); margin: 1em 0; padding-left: 18px; color: var(--muted); }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 36px; }
.posts article { border-top: 3px solid var(--ink); padding-top: 16px; }
.posts time { font-size: 14px; color: var(--muted); }
.posts h3 a { color: var(--ink); text-decoration: none; }
.posts h3 a:hover { color: var(--brand); }
.two-col { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.aside-box { background: var(--white); border: 1px solid var(--rule); border-radius: 4px; padding: 24px; }

/* Formulários */
.form label { display: block; font-weight: 600; font-size: 15px; margin: 16px 0 6px; }
.form .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=month], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid #b9cbc3; border-radius: var(--radius); padding: 11px 13px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 2px solid rgba(23, 96, 79, .2); outline-offset: 0; }
textarea { min-height: 120px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 15px; }
.check input { margin-top: 5px; }
.form-actions { margin-top: 24px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; }

/* Alertas */
.alert { padding: 13px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 15px; border: 1px solid; }
.alert-success { background: #edf8f1; border-color: #b7e2c8; color: #0f5132; }
.alert-error { background: #fdf0ef; border-color: #f3c4bf; color: #8a1c12; }
.alert-info { background: #eef1fd; border-color: #c6cff5; color: #1f2f8a; }
.alert-warning { background: #fdf7e6; border-color: #f0dc9c; color: #6d4a00; }

/* Cookies */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto; background: var(--ink); color: #e4eeea; padding: 16px 18px; border-radius: 8px; display: none; gap: 14px; align-items: center; z-index: 90; font-size: 14px; }
.cookie.show { display: flex; }
.cookie a { color: #fff; }
.cookie .btn { flex-shrink: 0; }

/* Autenticação */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--brand); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(255, 255, 255, .07) 39px 40px); }
.auth-side .logo { color: #fff; }
.auth-side .logo b { color: #c9d2ff; }
.auth-side h2 { font-size: 2.2rem; max-width: 16ch; }
.auth-side p { opacity: .85; max-width: 40ch; }
.auth-main { display: grid; place-items: center; padding: 40px 22px; }
.auth-box { width: 100%; max-width: 430px; }
.auth-box h1 { font-size: 2rem; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }
.plan-pick { display: grid; gap: 8px; }
.plan-pick label { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid #b9cbc3; border-radius: var(--radius); padding: 12px 14px; background: #fff; cursor: pointer; font-weight: 500; }
.plan-pick input { margin-right: 8px; }
.plan-pick label:has(input:checked) { border-color: var(--stamp); box-shadow: inset 0 0 0 1px var(--stamp); background: #f7f8ff; }

/* ---------- Painéis (cliente e contador) ---------- */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #c9d6d1; padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { color: #fff; font-size: 22px; padding: 0 10px 18px; }
.side .logo b { color: #aab7ff; }
.side .company { margin: 0 6px 18px; padding: 12px; background: rgba(255, 255, 255, .06); border-radius: var(--radius); font-size: 14px; }
.side .company strong { color: #fff; display: block; line-height: 1.3; }
.side nav a { display: flex; align-items: center; gap: 10px; color: #c9d6d1; text-decoration: none; padding: 9px 12px; border-radius: var(--radius); font-size: 15px; font-weight: 500; }
.side nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side nav a.active { background: var(--brand); color: #fff; }
.side nav .group { font-size: 13px; color: #7f9690; margin: 18px 12px 6px; }
.side nav .count { margin-left: auto; background: var(--stamp); color: #fff; border-radius: 10px; font-size: 12px; padding: 0 7px; line-height: 20px; }
.side svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.main { min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 30px; border-bottom: 1px solid var(--rule); background: var(--white); gap: 12px; }
.topbar .who { font-size: 14px; color: var(--muted); }
.topbar .burger { display: none; }
.content { padding: 30px; max-width: 1240px; }
.content h1 { font-size: 1.9rem; margin-bottom: 4px; }
.content .sub { color: var(--muted); margin-bottom: 26px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.head-row h1 { margin: 0; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; width: 260px; z-index: 80; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; }
  .topbar .burger { display: block; }
  .content { padding: 20px 16px; }
}

.panel { background: var(--white); border: 1px solid var(--rule); border-radius: 8px; margin-bottom: 22px; }
.panel-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--rule); gap: 10px; flex-wrap: wrap; }
.panel-h h2 { font-size: 1.1rem; margin: 0; }
.panel-b { padding: 20px; }
.panel-b.flush { padding: 0; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; background: var(--white); border: 1px solid var(--rule); border-radius: 8px; margin-bottom: 22px; }
.kpis > div { padding: 18px 20px; border-left: 1px solid var(--rule); }
.kpis > div:first-child { border-left: 0; }
.kpis span { font-size: 14px; color: var(--muted); display: block; }
.kpis strong { font-family: var(--display); font-size: 28px; font-variant-numeric: tabular-nums; display: block; line-height: 1.2; }
.kpis a { font-size: 13px; }
@media (max-width: 700px) { .kpis > div { border-left: 0; border-top: 1px solid var(--rule); } .kpis > div:first-child { border-top: 0; } }

.meter { height: 12px; background: var(--rule-2); border-radius: 6px; overflow: hidden; margin: 10px 0 6px; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.meter.warn i { background: var(--due); }
.meter.over i { background: var(--danger); }

.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 10px 14px; border-bottom: 1px solid var(--rule); background: #fafcfb; white-space: nowrap; }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--rule-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t td.n, .t th.n { text-align: right; }
.t .actions { white-space: nowrap; text-align: right; }
.t .actions form { display: inline; }
.t a.strong { font-weight: 600; color: var(--ink); text-decoration: none; }
.t a.strong:hover { color: var(--brand); }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

.badge { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 20px; border: 1px solid; white-space: nowrap; }
.badge-green { color: #0f5132; background: #edf8f1; border-color: #b7e2c8; }
.badge-blue { color: #1f2f8a; background: #eef1fd; border-color: #c6cff5; }
.badge-amber { color: #6d4a00; background: #fdf7e6; border-color: #f0dc9c; }
.badge-red { color: #8a1c12; background: #fdf0ef; border-color: #f3c4bf; }
.badge-gray { color: #475569; background: #f1f5f9; border-color: #dbe2ea; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters input, .filters select { width: auto; min-width: 160px; padding: 8px 11px; font-size: 15px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--brand); }

.thread { display: grid; gap: 14px; }
.msg { border: 1px solid var(--rule); border-radius: 8px; padding: 14px 16px; background: var(--white); max-width: 760px; }
.msg.staff { background: #f2f8f5; border-color: #c4ddd2; margin-left: auto; }
.msg header { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.msg header strong { color: var(--ink); }
.msg p:last-child { margin: 0; }

.dropzone { border: 2px dashed #b9cbc3; border-radius: 8px; padding: 26px; text-align: center; background: #fafcfb; cursor: pointer; }
.dropzone.drag { border-color: var(--brand); background: #eef6f2; }
.dropzone input[type=file] { display: block; margin: 10px auto 0; }
.file-list { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: left; }

.pager { display: flex; gap: 4px; padding: 14px 20px; flex-wrap: wrap; }
.pager a, .pager span { padding: 5px 11px; border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; color: var(--ink); font-size: 14px; }
.pager a.on { background: var(--brand); color: #fff; border-color: var(--brand); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 10px 0; border-top: 1px solid var(--rule-2); display: flex; gap: 10px; align-items: center; font-size: 15px; }
.checklist li:first-child { border-top: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); flex-shrink: 0; }
.dot.ok { background: var(--ok); }
.dot.due { background: var(--due); }
.dot.late { background: var(--danger); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cols-21 { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 1000px) { .cols-2, .cols-21 { grid-template-columns: 1fr; } }
dl.info { display: grid; grid-template-columns: 170px 1fr; gap: 8px 14px; margin: 0; font-size: 15px; }
dl.info dt { color: var(--muted); }
dl.info dd { margin: 0; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form select, .inline-form input { width: auto; padding: 7px 10px; font-size: 14px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 11px; color: var(--muted); gap: 4px; }
.bars i { width: 100%; max-width: 34px; background: var(--brand); border-radius: 3px 3px 0 0; min-height: 2px; }
.bars div:hover i { background: var(--stamp); }
.nav-toggle svg, .burger svg { width: 22px; height: 22px; display: block; color: var(--ink); }
@media (max-width: 640px) {
  .cookie { flex-wrap: wrap; }
  .cookie > span { flex-basis: 100%; }
  .cookie .btn { flex: 1; justify-content: center; }
}
.t td.n, .t td.num { white-space: nowrap; }
