/* 4 · PAPER — editorial quente: serifa, terracota, coluna de leitura generosa */
:root{
  color-scheme:light;
  --bg:#faf6f0; --surface:#fffdf9; --surface-2:#f3ece1; --text:#2b2118; --muted:#6b5c4d; --border:#e8dfd1; --border-strong:#d8c9b4;
  --accent:#c4552d; --accent-strong:#b04a23; --accent-text:#ab4521; --accent-soft:#c4552d14; --accent-ink:#fff; --on-accent:#fff; --ok:#3a7349; --warn:#94590a; --off:#736555; --danger:#a8391b;
  --ink:#1c1713; --ease:cubic-bezier(.2,.7,.2,1);
  --sh-sm:0 1px 2px rgba(70,42,18,.06);
  --sh-md:0 1px 0 var(--inset-hl) inset,0 1px 2px rgba(70,42,18,.05),0 14px 34px -22px rgba(90,58,28,.32);
  --sh-lg:0 2px 6px rgba(70,42,18,.06),0 34px 70px -34px rgba(70,40,15,.42);
  --inset-hl:#fff; --shadow-c:#5a3a1c; --scroll-shadow:rgba(70,42,18,.16);
  --bg-glow:none; --field:#fff; --placeholder:#7d6e5e; --text-2:#4d3d2f; --chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b5c4d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --hover:#fbf6ef; --hover-2:#eadfce; --hover-3:#f6efe5; --border-hover:#cbb99f; --toggle-off:#8f7f6a; --meter-bg:#e5d8c6;
  --sidebar:#f3ebdf; --sidebar-line:#ebe1d2; --brand-halo:#e8b09a;
  --pri-top:#c9592f; --pri-bot:#b04a23; --pri-line:#a4431f; --pri-top-h:#cf6036; --pri-bot-h:#a9461f; --pri-glow:#b04a23; --pri-hl:rgba(255,255,255,.22);
  --accent-ring:#c4552d22; --stop:#8f3317; --stop-line:#7d2c13;
  --danger-soft:#a8391b14; --danger-line:#d9a79a; --danger-bg:#f6d9d1; --danger-bg2:#fdf1ee; --danger-bd:#b4361f; --danger-strong:#9b2c18; --danger-bd2:#e6b0a4;
  --ok-bg:#e1efe3; --ok-line:#d3e3cf; --pos:#1f7a45; --warn-bg2:#f6e7c8;
  --notice-bg:#fbf1e6; --notice-line:#f0dcc4; --notice-text:#4a3626;
  --warn-bg:#fff3d6; --warn-line:#e6b64a; --warn-text:#5a3d00; --warn-ico:#b07a00; --warn-strong:#4a3000;
  --bw-bg:#fbe9d2; --bw-line:#f0cf9f; --bw-text:#6b3a07; --bw-ico:#b86a10; --bi-bg:#eaf1e6; --bi-line:#cfe0c7; --bi-text:#2f4a2a;
  --inv-a:#fdf0ea; --inv-b:#fbe6d9; --inv-line:#e9b99f; --inv-h:#8f3a1c; --inv-text:#5c3a2a;
  --bal-a:#fff4ec; --bal-b:#fbe9dc; --bal-line:#f0d4c2; --feat-bg:#fcebe0; --feat-line:#f2d3c1; --pay-line:#efd9c9;
  --tint-bg:#fff6f0; --tint-line:#e7c3ad; --aud-ico:#e9dfd1;
  --free:#6b7fa8; --free-bg:#e4e9f4; --free-ink:#4a5f8f; --free-line:#cdd6ea; --proj-bg:#f4ead9; --proj-ink:#8a5a2b; --proj-line:#e6d5b8;
  --scrim:#2b211844; --scrim-strong:#2b2118a8; --scrim-m:rgba(43,33,24,.4);
  --code-bg:#2b2118; --code-bar:#3a2e24; --code-text:#f4e9d8; --toast-bg:#241c15; --toast-text:#fbf4ea;
  --radius:14px; --font:"Inter",system-ui,sans-serif; --display:"Fraunces",Georgia,serif; --side-w:224px;
}
/* Tema escuro: só quando a pessoa escolhe "Escuro" em Minha conta (<html data-theme="dark">). O padrão é sempre o claro. */
html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#0d0f16; --surface:#151823; --surface-2:#1c2030; --text:#e8ebf4; --muted:#98a1b5; --border:#262b3b; --border-strong:#626c8c;
  --accent:#ff8a5c; --accent-strong:#ff9d75; --accent-text:#ff9d75; --accent-soft:#ff8a5c22; --accent-ink:#1a0f0a; --on-accent:#1a0f0a; --ok:#6ee7b7; --warn:#f5c26b; --off:#8d96ab; --danger:#ff8f8f;
  --ink:#07080c;
  --sh-sm:0 1px 2px rgba(0,0,0,.45);
  --sh-md:0 1px 0 var(--inset-hl) inset,0 1px 2px rgba(0,0,0,.4),0 14px 34px -22px rgba(0,0,0,.8);
  --sh-lg:0 2px 6px rgba(0,0,0,.4),0 34px 70px -34px rgba(0,0,0,.9);
  --inset-hl:rgba(255,255,255,.04); --shadow-c:#000; --scroll-shadow:rgba(0,0,0,.55);
  --field:#0f111a; --placeholder:#8b94a8; --text-2:#c9cfde; --chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a1b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --hover:#1a1e2c; --hover-2:#262b3e; --hover-3:#202538; --border-hover:#6a7494; --toggle-off:#5d6684; --meter-bg:#262b3b;
  --sidebar:#0f121b; --sidebar-line:#1d2231; --brand-halo:#6a4fb0;
  --pri-top:#ffa07a; --pri-bot:#ff8a5c; --pri-line:#ffb394; --pri-top-h:#ffb08f; --pri-bot-h:#ff9a70; --pri-glow:#ff8a5c; --pri-hl:rgba(255,255,255,.3);
  --accent-ring:#ff8a5c40; --stop:#ff7a7a; --stop-line:#ff9a9a;
  --danger-soft:#ff8f8f1c; --danger-line:#6b3a44; --danger-bg:#34181f; --danger-bg2:#251820; --danger-bd:#ff8f8f; --danger-strong:#ffa8a8; --danger-bd2:#5a2f3a;
  --ok-bg:#12261f; --ok-line:#1f4a3a; --pos:#6ee7b7; --warn-bg2:#33280f;
  --notice-bg:#1a1e2d; --notice-line:#2c3350; --notice-text:#dfe3f0;
  --warn-bg:#2a2210; --warn-line:#6e5718; --warn-text:#f5deaa; --warn-ico:#f5c26b; --warn-strong:#ffeec7;
  --bw-bg:#2a2210; --bw-line:#6e5718; --bw-text:#f5deaa; --bw-ico:#f5c26b; --bi-bg:#112321; --bi-line:#1f4a3a; --bi-text:#c8f2e0;
  --inv-a:#231a2e; --inv-b:#2b1c33; --inv-line:#5a3d78; --inv-h:#ffb59a; --inv-text:#ddd0e8;
  --bal-a:#231c2c; --bal-b:#2a1f33; --bal-line:#4a3a66; --feat-bg:#261f33; --feat-line:#4a3a66; --pay-line:#3a3f5c;
  --tint-bg:#261d2b; --tint-line:#5a3c4a; --aud-ico:#232839;
  --free:#8fb0ff; --free-bg:#172036; --free-ink:#a9c1ff; --free-line:#2d3b66; --proj-bg:#2b2214; --proj-ink:#f0c27d; --proj-line:#4f3f22;
  --scrim:#000000a0; --scrim-strong:#000000c4; --scrim-m:rgba(0,0,0,.62);
  --code-bg:#080a10; --code-bar:#12151f; --code-text:#e6e9f2; --toast-bg:#232839; --toast-text:#eef1f8;
  --bg-glow:radial-gradient(900px 520px at 85% -8%,rgba(124,92,255,.13),transparent 70%),radial-gradient(700px 480px at 6% 108%,rgba(110,231,183,.07),transparent 70%);
}
body{font-size:16px;background:var(--bg)}
.sidebar{background:var(--surface-2);border-right:0;padding:26px 18px}
.brand{font-weight:600;font-size:25px;letter-spacing:-.02em}
.brand-mark{border-radius:50%;background:var(--accent);width:22px;height:22px;box-shadow:6px 0 0 -2px var(--brand-halo)}
.nav-item{border-radius:10px}.nav-item.is-active{background:var(--surface);box-shadow:0 1px 0 var(--border)}
.eyebrow{letter-spacing:.14em;font-weight:600}
.display{font-weight:600;letter-spacing:-.025em;line-height:1.05}.display em{font-style:italic;color:var(--accent)}
.h1{font-weight:600;font-size:32px}
.view{padding-top:44px}.view-head{margin-bottom:30px}
.card,.stat{border-radius:var(--radius);box-shadow:var(--sh-md)}
.card-title{font-weight:600;font-size:24px}
button.primary{border-radius:999px;padding:12px 24px;box-shadow:0 8px 20px -10px var(--accent)}
.field input{border-radius:12px;background:var(--field)}
.tabs,.seg{border-radius:999px}.tab,.seg-btn{border-radius:999px}
.chat{max-width:720px}.messages{gap:30px;padding-top:6px}
.msg{display:grid;grid-template-columns:34px 1fr;gap:4px 14px}
.msg .who{grid-row:1/3;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:0;margin:0;background:var(--accent)}
.msg .who::after{content:"A";font:600 16px var(--display);color:var(--on-accent)}
.msg.user .who{background:var(--text)}.msg.user .who::after{color:var(--bg)}.msg.user .who::after{content:"V"}
.msg .body{font-size:17px;line-height:1.65}.msg.user .body{background:none;padding:0;max-width:none;font-weight:500}
.composer{border-radius:26px;box-shadow:0 20px 40px -32px var(--shadow-c);background:var(--field)}
.price b{font-weight:600}.stat b{font-weight:600}
.spark i{background:var(--accent);opacity:.8;border-radius:99px 99px 0 0}
.bar i{background:var(--accent)}.pill{background:transparent;border:1px solid var(--border)}
.qr{filter:sepia(.9) saturate(2.5) hue-rotate(-18deg);border-radius:16px}
.table th{font-family:var(--display);font-weight:600;font-size:14px}
