/* ds/tokens/fonts.css */
/* ============================================================
   Camila Monteiro — Webfonts
   Variable fonts shipped with the system.
   ============================================================ */

@font-face {
  font-family: "Sora";
  src: url("/static/ds/assets/fonts/Sora.woff2?v=ebe022f74b") format("woff2"),
       url("/static/ds/assets/fonts/Sora.ttf?v=457ec8aa0c") format("truetype-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/static/ds/assets/fonts/Fraunces.woff2?v=e77714add8") format("woff2"),
       url("/static/ds/assets/fonts/Fraunces.ttf?v=51ac98af1f") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/static/ds/assets/fonts/Fraunces-Italic.woff2?v=113ba7fc26") format("woff2"),
       url("/static/ds/assets/fonts/Fraunces-Italic.ttf?v=97f41caeb6") format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Cedarville Cursive";
  src: url("/static/ds/assets/fonts/CedarvilleCursive-Regular.woff2?v=bb5cb36cbc") format("woff2"),
       url("/static/ds/assets/fonts/CedarvilleCursive-Regular.ttf?v=8d31107b80") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ds/tokens/colors.css */
/* ============================================================
   Camila Monteiro — Color tokens
   Sourced from the brand palette (paleta.png).
   A bright, optimistic palette anchored on a deep ink navy,
   with a single warm gold as signature accent and red reserved
   for handwritten flourishes. Predominantly light + airy.
   ============================================================ */

:root {
  /* ---- Brand core ---- */
  --cm-navy:        #23246C;  /* primary ink — logo, headlines, body */
  --cm-gold:        #EBBE21;  /* signature accent — logo mark, sparkle */
  --cm-red:         #E23526;  /* handwritten accent / energy only */

  /* ---- Soft brand tints (collage / surface palette) ---- */
  --cm-pink:        #ECC2BF;  /* rosa claro */
  --cm-teal:        #45937E;  /* verde */
  --cm-blue:        #A6CDDC;  /* azul claro */
  --cm-cream:       #F0DFD2;  /* creme */

  /* ---- Paper & neutrals ---- */
  --cm-white:       #FFFFFF;
  --cm-paper:       #F7F2EC;  /* warm off-white page (paper texture base) */
  --cm-bone:        #EFE9E1;  /* slightly deeper paper */
  --cm-ink-700:     #3A3B7A;  /* navy, one step lighter for secondary text */
  --cm-ink-500:     #6E6FA0;  /* muted navy — captions, meta */
  --cm-line:        #E2DACE;  /* hairline borders on paper */
  --cm-line-navy:   rgba(35,36,108,0.16); /* navy hairline (rules under headings) */

  /* ---- Navy tint scale (for fills on navy surfaces) ---- */
  --cm-navy-900:    #1A1B52;
  --cm-navy-800:    #23246C;
  --cm-navy-700:    #34357F;
  --cm-navy-100:    rgba(35,36,108,0.08);
  --cm-navy-200:    rgba(35,36,108,0.16);

  /* ---- Gold tint scale ---- */
  --cm-gold-soft:   #F6E6A4;
  --cm-gold-700:    #C99E12;

  /* ============================================================
     Semantic aliases — reference these in components
     ============================================================ */

  /* Surfaces */
  --surface-page:     var(--cm-paper);
  --surface-card:     var(--cm-white);
  --surface-inverse:  var(--cm-navy);
  --surface-cream:    var(--cm-cream);
  --surface-sunken:   var(--cm-bone);

  /* Text */
  --text-heading:     var(--cm-navy);
  --text-body:        var(--cm-navy);
  --text-muted:       var(--cm-ink-500);
  --text-on-navy:     var(--cm-cream);
  --text-on-navy-dim: rgba(240,223,210,0.72);
  --text-script:      var(--cm-red);   /* handwriting flourish */

  /* Brand roles */
  --brand:            var(--cm-navy);
  --brand-accent:     var(--cm-gold);
  --brand-flourish:   var(--cm-red);

  /* Lines & borders */
  --border-soft:      var(--cm-line);
  --border-rule:      var(--cm-line-navy);

  /* Interactive */
  --action-fill:      var(--cm-navy);
  --action-fill-hover:var(--cm-navy-900);
  --action-text:      var(--cm-cream);
  --focus-ring:       var(--cm-gold);

  /* Semantic status (kept on-palette) */
  --status-success:   var(--cm-teal);
  --status-alert:     var(--cm-red);
  --status-info:      var(--cm-blue);
}

/* ds/tokens/typography.css */
/* ============================================================
   Camila Monteiro — Typography tokens
   Three voices:
   • Sora        — the workhorse. UI, body, and bold sans headlines.
   • Fraunces    — editorial serif display, often italic, for an
                   elegant "out of the box" headline moment.
   • Cedarville  — handwritten script, the brand's warm human voice
                   (the "Camila" wordmark, red flourishes).
   ============================================================ */

:root {
  /* ---- Families ---- */
  --font-sans:   "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif:  "Fraunces", Georgia, "Times New Roman", serif;
  --font-script: "Cedarville Cursive", "Brush Script MT", cursive;

  /* Semantic family roles */
  --font-display: var(--font-serif);  /* big elegant moments */
  --font-heading: var(--font-sans);   /* confident bold headlines */
  --font-body:    var(--font-sans);
  --font-flourish:var(--font-script); /* handwritten accents */

  /* ---- Weights (Sora axis) ---- */
  --fw-light:     300; /* @kind font */
  --fw-regular:   400; /* @kind font */
  --fw-medium:    500; /* @kind font */
  --fw-semibold:  600; /* @kind font */
  --fw-bold:      700; /* @kind font */
  --fw-extrabold: 800; /* @kind font */

  /* ---- Type scale (rem, 1rem = 16px) ---- */
  --fs-display:   4.5rem;   /* 72 — hero / cover */
  --fs-h1:        3rem;     /* 48 */
  --fs-h2:        2.25rem;  /* 36 */
  --fs-h3:        1.625rem; /* 26 */
  --fs-h4:        1.25rem;  /* 20 */
  --fs-lg:        1.125rem; /* 18 */
  --fs-body:      1rem;     /* 16 */
  --fs-sm:        0.875rem; /* 14 */
  --fs-xs:        0.75rem;  /* 12 */

  /* ---- Line heights ---- */
  --lh-tight:     1.05; /* @kind font */
  --lh-snug:      1.2; /* @kind font */
  --lh-heading:   1.25; /* @kind font */
  --lh-body:      1.6; /* @kind font */
  --lh-relaxed:   1.75; /* @kind font */

  /* ---- Letter spacing ---- */
  --ls-tight:    -0.02em; /* @kind font */
  --ls-normal:    0; /* @kind font */
  --ls-wide:      0.04em; /* @kind font */
  --ls-eyebrow:   0.18em;  /* @kind font */
}

/* ds/tokens/spacing.css */
/* ============================================================
   Camila Monteiro — Spacing, radii, shadows, layout
   Generous, airy whitespace. Soft shadows. Gentle rounding —
   nothing too sharp; the brand reads warm and human.
   ============================================================ */

:root {
  /* ---- Spacing scale (4px base) ---- */
  --space-0:   0;
  --space-1:   0.25rem;  /* 4 */
  --space-2:   0.5rem;   /* 8 */
  --space-3:   0.75rem;  /* 12 */
  --space-4:   1rem;     /* 16 */
  --space-5:   1.5rem;   /* 24 */
  --space-6:   2rem;     /* 32 */
  --space-7:   3rem;     /* 48 */
  --space-8:   4rem;     /* 64 */
  --space-9:   6rem;     /* 96 */
  --space-10:  8rem;     /* 128 */

  /* ---- Radii ---- */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --radius-pill: 999px;
  --radius-photo: 6px;   /* polaroid / framed photos */

  /* ---- Shadows (soft, warm-tinted) ---- */
  --shadow-xs:  0 1px 2px rgba(35,36,108,0.06);
  --shadow-sm:  0 2px 8px rgba(35,36,108,0.08);
  --shadow-md:  0 8px 24px rgba(35,36,108,0.10);
  --shadow-lg:  0 18px 48px rgba(35,36,108,0.14);
  --shadow-photo: 0 12px 30px rgba(35,36,108,0.18); /* lifted polaroid */

  /* ---- Borders ---- */
  --border-width: 1.5px; /* @kind spacing */
  --border-width-strong: 2px; /* @kind spacing */

  /* ---- Layout ---- */
  --container-sm:  640px;
  --container-md:  920px;
  --container-lg:  1160px;
  --container-xl:  1320px;
  --gutter:        var(--space-5);

  /* ---- Motion ---- */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1); /* @kind other */
  --ease-soft:  cubic-bezier(0.4, 0, 0.2, 1); /* @kind other */
  --dur-fast:   140ms; /* @kind other */
  --dur-base:   240ms; /* @kind other */
  --dur-slow:   420ms; /* @kind other */
}

/* ds/tokens/base.css */
/* ============================================================
   Camila Monteiro — Base element styles
   Light reset + sensible defaults using the tokens.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: var(--lh-heading);
  font-weight: var(--fw-bold);
  margin: 0 0 var(--space-4);
  letter-spacing: var(--ls-tight);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }

a { color: var(--cm-navy); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

strong, b { font-weight: var(--fw-bold); }

img { max-width: 100%; display: block; }

::selection { background: var(--cm-gold-soft); color: var(--cm-navy); }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* ---- Brand utility classes ---- */

/* Elegant editorial display — Fraunces, often italic */
.cm-display {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
}
.cm-display--italic { font-style: italic; }

/* Confident bold sans headline (the workhorse headline) */
.cm-headline {
  font-family: var(--font-heading);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
  color: var(--cm-navy);
}

/* Handwritten flourish — red script */
.cm-flourish {
  font-family: var(--font-flourish);
  color: var(--text-script);
  font-weight: 400;
  line-height: 1.3;
}

/* Uppercase eyebrow / kicker */
.cm-eyebrow {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--cm-ink-500);
}

/* Paper texture page background helper */
.cm-paper-bg {
  background-color: var(--cm-paper);
  background-image: url("/static/ds/assets/backgrounds/paper-cream.jpg?v=b6047d7085");
  background-size: cover;
  background-position: center;
}

/* The signature 4-point sparkle, drawn in CSS so it tints freely */
.cm-sparkle {
  display: inline-block;
  width: 1em; height: 1em;
  background: currentColor;
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
}

/* app.css */
/* ============================================================
   Sistema Constelli — camada de produto sobre o
   Camila Monteiro Design System (ds/styles.css).
   Só usa os tokens do DS; nada de cor solta.
   ============================================================ */

:root {
  --sidebar-w: 248px;
  --st-rascunho-bg: var(--cm-bone);        --st-rascunho-fg: var(--cm-ink-700);
  --st-aprovacao-bg: var(--cm-gold-soft);  --st-aprovacao-fg: #6B5300;
  --st-ajustes-bg: var(--cm-pink);         --st-ajustes-fg: #7A1F16;
  --st-aprovado-bg: #D6E8EF;               --st-aprovado-fg: #1F4E60;
  --st-publicado-bg: #D4E8E1;              --st-publicado-fg: #24594B;
  --st-erro-bg: #F9D5D1;                   --st-erro-fg: #A8231A;
}

html { scroll-behavior: smooth; }
body { min-height: 100vh; }
/* Textura de papel numa única peça, fixa atrás de tudo e cobrindo a tela inteira:
   nunca repete, então não aparecem emendas (funciona também no iPhone). */
body.paper { background-color: var(--cm-paper); }
body.paper::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--cm-paper) url("/static/ds/assets/backgrounds/paper-cream.jpg?v=b6047d7085") center / cover no-repeat;
}

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--cm-navy); color: var(--text-on-navy);
  display: flex; flex-direction: column; padding: var(--space-5) var(--space-4);
}
.brand { display: flex; align-items: center; gap: var(--space-3); padding: 0 var(--space-2) var(--space-5); color: var(--cm-cream); }
.brand img { width: 44px; height: 44px; border-radius: var(--radius-md); }
.brand b { font-weight: var(--fw-extrabold); letter-spacing: var(--ls-tight); font-size: var(--fs-lg); display: block; line-height: 1.1; }
.brand small { color: var(--text-on-navy-dim); font-size: var(--fs-xs); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 10px var(--space-3); border-radius: var(--radius-pill);
  color: var(--text-on-navy-dim); font-weight: var(--fw-medium); font-size: var(--fs-sm);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast);
}
.nav a:hover { background: var(--cm-navy-700); color: var(--cm-cream); text-decoration: none; }
.nav a.on { background: var(--cm-cream); color: var(--cm-navy); font-weight: var(--fw-semibold); }
.nav a svg { width: 18px; height: 18px; stroke-width: 1.8; flex: none; }
.nav .count {
  margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--radius-pill);
  background: var(--cm-gold); color: var(--cm-navy); font-size: 11px; font-weight: var(--fw-bold);
  display: inline-flex; align-items: center; justify-content: center;
}
.nav .count.alert { background: var(--cm-red); color: var(--cm-white); }
.nav-label { color: var(--text-on-navy-dim); font-size: 10px; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; font-weight: var(--fw-semibold); padding: var(--space-5) var(--space-3) var(--space-2); }
.sidebar-foot { margin-top: auto; padding-top: var(--space-5); border-top: 1px solid var(--cm-navy-700); display: flex; align-items: center; gap: var(--space-3); }
.sidebar-foot .who { flex: 1; min-width: 0; font-size: var(--fs-sm); }
.sidebar-foot .who b { display: block; color: var(--cm-cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot .who a { color: var(--text-on-navy-dim); font-size: var(--fs-xs); }
.sidebar-foot button { background: none; border: 0; color: var(--text-on-navy-dim); cursor: pointer; padding: 6px; border-radius: var(--radius-sm); }
.sidebar-foot button:hover { color: var(--cm-cream); background: var(--cm-navy-700); }

.main { min-width: 0; padding: var(--space-6) clamp(16px, 4vw, 56px) var(--space-8); }
.wrap { max-width: var(--container-lg); margin: 0 auto; }
.topbar { display: none; }

/* ---------- headers ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }
.page-head h1 { margin: 0; font-size: clamp(2rem, 4vw, var(--fs-h1)); font-weight: var(--fw-extrabold); line-height: var(--lh-tight); }
.page-head h1 em { font-family: var(--font-display); font-style: italic; font-weight: var(--fw-semibold); }
.page-head .sub { color: var(--text-muted); margin: var(--space-2) 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); }
.eyebrow .cm-sparkle { color: var(--cm-gold); width: 12px; height: 12px; }
.flourish { font-family: var(--font-flourish); color: var(--text-script); font-size: 1.9rem; line-height: 1.1; display: block; margin-bottom: var(--space-1); }
h2.sec { font-size: var(--fs-h4); font-weight: var(--fw-bold); display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); }
h2.sec .n { font-size: var(--fs-xs); color: var(--text-muted); font-weight: var(--fw-semibold); background: var(--cm-navy-100); border-radius: var(--radius-pill); padding: 2px 9px; }
h2.sec .cm-sparkle { color: var(--cm-gold); width: 14px; height: 14px; }

/* ---------- cards ---------- */
.card { background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--cm-navy-100); padding: var(--space-5); }
.card + .card { margin-top: var(--space-5); }
.card.tight { padding: var(--space-4); }
.card.inverse { background: var(--cm-navy); color: var(--cm-cream); border: 0; }
.card.inverse h2, .card.inverse h3 { color: var(--cm-cream); }
.grid { display: grid; gap: var(--space-5); }
.grid.two { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.grid.half { grid-template-columns: 1fr 1fr; }
.stack > * + * { margin-top: var(--space-5); }
.empty { color: var(--text-muted); font-size: var(--fs-sm); padding: var(--space-4) 0; display: flex; gap: var(--space-2); align-items: center; }
.empty .cm-sparkle { color: var(--cm-gold); width: 12px; height: 12px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-bottom: var(--space-6); }
.stat { background: var(--surface-card); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); border: 1px solid var(--cm-navy-100); box-shadow: var(--shadow-xs); }
.stat b { display: block; font-size: 2rem; font-weight: var(--fw-extrabold); line-height: 1.1; letter-spacing: var(--ls-tight); }
.stat span { font-size: var(--fs-sm); color: var(--text-muted); }
.stat.warn b { color: var(--cm-red); }
a.stat:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
a.stat { transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font: inherit; font-weight: var(--fw-semibold); font-size: var(--fs-sm);
  padding: 10px 20px; border-radius: var(--radius-pill); border: var(--border-width) solid transparent;
  background: var(--action-fill); color: var(--action-text); cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), box-shadow var(--dur-fast);
}
.btn:hover { background: var(--action-fill-hover); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn.gold { background: var(--cm-gold); color: var(--cm-navy); }
.btn.gold:hover { background: var(--cm-gold-700); }
.btn.ghost { background: transparent; color: var(--cm-navy); border-color: var(--cm-navy-200); }
.btn.ghost:hover { background: var(--cm-navy-100); box-shadow: none; }
.btn.soft { background: var(--cm-navy-100); color: var(--cm-navy); }
.btn.soft:hover { background: var(--cm-navy-200); box-shadow: none; }
.btn.danger { background: transparent; color: var(--st-erro-fg); border-color: var(--st-erro-bg); }
.btn.danger:hover { background: var(--st-erro-bg); box-shadow: none; }
.btn.ok { background: var(--cm-teal); color: var(--cm-white); }
.btn.ok:hover { background: #377866; }
.btn.sm { padding: 6px 14px; font-size: var(--fs-xs); }
.btn.icon { padding: 8px; border-radius: 50%; }
.btns { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--cm-navy); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: var(--fs-sm); }
.link.muted { color: var(--text-muted); }

/* ---------- forms ---------- */
label.f { display: block; margin-bottom: var(--space-4); }
label.f > span { display: block; font-size: var(--fs-sm); font-weight: var(--fw-semibold); margin-bottom: 6px; }
label.f > small { display: block; color: var(--text-muted); font-size: var(--fs-xs); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=datetime-local],
input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: var(--fs-sm); color: var(--cm-navy);
  background: var(--cm-white); border: var(--border-width) solid var(--cm-line); border-radius: var(--radius-md);
  padding: 10px 14px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
textarea { min-height: 120px; resize: vertical; line-height: var(--lh-body); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cm-navy); box-shadow: 0 0 0 3px var(--cm-gold-soft); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-3); }
.check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--cm-navy); margin-top: 2px; flex: none; }
.inline-form { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.inline-form input[type=text] { flex: 1 1 220px; }
.inline-form select, .inline-form input[type=date] { width: auto; flex: 0 1 auto; }
.swatches { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.swatches label { cursor: pointer; }
.swatches input { position: absolute; opacity: 0; }
.swatches i { display: block; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--cm-white); box-shadow: 0 0 0 1.5px var(--cm-line); }
.swatches input:checked + i { box-shadow: 0 0 0 2.5px var(--cm-navy); }
.swatches input:focus-visible + i { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ---------- flash ---------- */
.flashes { position: fixed; top: var(--space-4); right: var(--space-4); z-index: 50; display: flex; flex-direction: column; gap: var(--space-2); max-width: min(420px, calc(100vw - 32px)); }
.flash { padding: 12px 18px; border-radius: var(--radius-md); box-shadow: var(--shadow-md); font-size: var(--fs-sm); font-weight: var(--fw-medium); display: flex; gap: var(--space-3); align-items: center; animation: drop var(--dur-slow) var(--ease-out); }
.flash.ok { background: var(--cm-navy); color: var(--cm-cream); }
.flash.ok .cm-sparkle { color: var(--cm-gold); }
.flash.erro { background: var(--st-erro-bg); color: var(--st-erro-fg); }
.flash.info { background: var(--cm-gold-soft); color: var(--cm-navy); }
.flash button { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; font-size: 18px; line-height: 1; opacity: .7; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- pills / tags ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: var(--fw-semibold); padding: 3px 10px; border-radius: var(--radius-pill); white-space: nowrap; line-height: 1.5; }
.st-rascunho { background: var(--st-rascunho-bg); color: var(--st-rascunho-fg); }
.st-em_aprovacao { background: var(--st-aprovacao-bg); color: var(--st-aprovacao-fg); }
.st-ajustes { background: var(--st-ajustes-bg); color: var(--st-ajustes-fg); }
.st-aprovado, .st-publicando { background: var(--st-aprovado-bg); color: var(--st-aprovado-fg); }
.st-publicado { background: var(--st-publicado-bg); color: var(--st-publicado-fg); }
.st-erro { background: var(--st-erro-bg); color: var(--st-erro-fg); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; box-shadow: inset 0 0 0 1px rgba(35,36,108,.15); }
.client-tag { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--cm-ink-700); }
.meta { color: var(--text-muted); font-size: var(--fs-xs); }
.net { font-size: 11px; color: var(--text-muted); display: inline-flex; gap: 4px; align-items: center; }
.net svg { width: 13px; height: 13px; }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: var(--space-3); align-items: center; padding: 12px 0; border-top: 1px solid var(--cm-line); }
.list > li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: var(--fw-semibold); font-size: var(--fs-sm); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--cm-navy); }
.list a.title:hover { text-decoration: underline; }
.thumb { width: 52px; height: 52px; border-radius: var(--radius-sm); object-fit: cover; background: var(--cm-bone); flex: none; display: flex; align-items: center; justify-content: center; color: var(--cm-ink-500); }
.thumb svg { width: 20px; height: 20px; }

/* tarefas */
.task { position: relative; }
.task .tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--cm-navy-200); background: var(--cm-white); cursor: pointer; flex: none; display: flex; align-items: center; justify-content: center; color: transparent; transition: all var(--dur-fast) var(--ease-out); padding: 0; }
.task .tick:hover { border-color: var(--cm-teal); color: var(--cm-teal); }
.task .tick svg { width: 14px; height: 14px; stroke-width: 3; }
.task.done .tick { background: var(--cm-teal); border-color: var(--cm-teal); color: var(--cm-white); }
.task.done .title { text-decoration: line-through; color: var(--text-muted); }
.task .late { color: var(--st-erro-fg); font-weight: var(--fw-semibold); }
.task .actions { display: flex; gap: 4px; opacity: 0; transition: opacity var(--dur-fast); }
.task:hover .actions, .task:focus-within .actions { opacity: 1; }
.rec { display: inline-flex; gap: 3px; align-items: center; }
.rec svg { width: 12px; height: 12px; }
details.edit > summary { list-style: none; cursor: pointer; }
details.edit > summary::-webkit-details-marker { display: none; }
details.edit[open] { flex-basis: 100%; }

/* ---------- board ---------- */
.filters { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-5); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--surface-card); border: 1px solid var(--cm-line); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--cm-navy); }
.chip:hover { text-decoration: none; border-color: var(--cm-navy-200); }
.chip.on { background: var(--cm-navy); color: var(--cm-cream); border-color: var(--cm-navy); }
.board { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(190px, 1fr)); gap: var(--space-4); overflow-x: auto; padding-bottom: var(--space-4); }
.col { background: rgba(255,255,255,.55); border: 1px solid var(--cm-line); border-radius: var(--radius-lg); padding: var(--space-3); min-height: 200px; }
.col h3 { font-size: var(--fs-sm); margin: var(--space-1) var(--space-2) var(--space-3); display: flex; justify-content: space-between; align-items: center; }
.pcard { display: block; background: var(--surface-card); border-radius: var(--radius-md); padding: var(--space-3); box-shadow: var(--shadow-xs); border: 1px solid var(--cm-navy-100); margin-bottom: var(--space-3); color: var(--cm-navy); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
.pcard:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pcard img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: var(--space-3); background: var(--cm-bone); }
.pcard b { display: block; font-size: var(--fs-sm); line-height: 1.35; margin: 6px 0; }
.pcard .foot { display: flex; justify-content: space-between; gap: var(--space-2); align-items: center; flex-wrap: wrap; }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.cal-head h2 { margin: 0; font-size: var(--fs-h3); font-weight: var(--fw-extrabold); min-width: 220px; }
.cal-head h2 em { font-family: var(--font-display); font-style: italic; font-weight: var(--fw-semibold); color: var(--cm-ink-500); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface-card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--cm-navy-100); box-shadow: var(--shadow-sm); }
.cal .wd { padding: 10px; font-size: 10px; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; font-weight: var(--fw-semibold); color: var(--text-muted); background: var(--cm-paper); border-bottom: 1px solid var(--cm-line); }
.cal .day { min-height: 128px; border-right: 1px solid var(--cm-line); border-bottom: 1px solid var(--cm-line); padding: 6px; position: relative; transition: background var(--dur-fast); }
.cal .day:nth-child(7n+7) { border-right: 0; }
.cal .day.out { background: var(--cm-paper); }
.cal .day.out .num { opacity: .45; }
.cal .day.drag { background: var(--cm-gold-soft); }
.cal .num { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; font-size: var(--fs-xs); font-weight: var(--fw-semibold); border-radius: 50%; }
.cal .day.today .num { background: var(--cm-navy); color: var(--cm-cream); }
.cal .day .add { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); opacity: 0; transition: opacity var(--dur-fast); }
.cal .day:hover .add { opacity: 1; }
.cal .day .add:hover { background: var(--cm-navy-100); color: var(--cm-navy); text-decoration: none; }
.cal .day .add svg { width: 14px; height: 14px; }
.ev { display: flex; gap: 6px; align-items: center; font-size: 11px; line-height: 1.3; padding: 4px 6px; border-radius: var(--radius-sm); margin-top: 3px; color: var(--cm-navy); background: var(--cm-navy-100); border-left: 0; cursor: pointer; }
.ev:hover { text-decoration: none; background: var(--cm-navy-200); }
.ev .t { font-weight: var(--fw-bold); flex: none; }
.ev .x { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev.st-publicado { opacity: .7; }
.ev[draggable=true] { cursor: grab; }
.legend { display: flex; gap: var(--space-4); flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--space-4); }

/* ---------- post editor ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-6); align-items: start; }
.preview { position: sticky; top: var(--space-5); }
.phone { background: var(--cm-white); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--cm-navy-100); }
.phone .ph-head { display: flex; align-items: center; gap: var(--space-2); padding: 12px 14px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.phone .ph-av { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: var(--fw-bold); }
.phone .ph-media { aspect-ratio: 4/5; background: var(--cm-bone); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--cm-ink-500); }
.phone .ph-media.story { aspect-ratio: 9/16; }
.phone .ph-media img, .phone .ph-media video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.phone .ph-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; z-index: 2; }
.phone .ph-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); }
.phone .ph-dots i.on { background: var(--cm-white); }
.phone .ph-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--cm-navy); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.phone .ph-nav.l { left: 8px; } .phone .ph-nav.r { right: 8px; }
.phone .ph-cap { padding: 12px 14px 16px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; max-height: 220px; overflow-y: auto; }
.phone .ph-cap b { margin-right: 4px; }
.mediagrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--space-2); margin-bottom: var(--space-3); }
.mediagrid .m { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--cm-bone); cursor: grab; }
.mediagrid .m img, .mediagrid .m video { width: 100%; height: 100%; object-fit: cover; }
.mediagrid .m .del { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--st-erro-fg); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mediagrid .m .del svg { width: 14px; height: 14px; }
.mediagrid .m .n { position: absolute; bottom: 4px; left: 4px; background: var(--cm-navy); color: var(--cm-cream); font-size: 10px; font-weight: var(--fw-bold); border-radius: var(--radius-pill); padding: 1px 7px; }
.drop { border: 2px dashed var(--cm-navy-200); border-radius: var(--radius-md); padding: var(--space-5); text-align: center; color: var(--text-muted); font-size: var(--fs-sm); cursor: pointer; transition: all var(--dur-fast); display: block; }
.drop:hover, .drop.over { border-color: var(--cm-navy); background: var(--cm-navy-100); color: var(--cm-navy); }
.drop input { display: none; }
.drop svg { width: 24px; height: 24px; margin: 0 auto var(--space-2); display: block; }
.counter { text-align: right; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.counter.over { color: var(--st-erro-fg); font-weight: var(--fw-semibold); }
.statusbar { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; padding: var(--space-4) var(--space-5); background: var(--surface-card); border-radius: var(--radius-lg); border: 1px solid var(--cm-navy-100); margin-bottom: var(--space-5); }
.statusbar .grow { flex: 1; }
.steps { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.steps span { font-size: 11px; font-weight: var(--fw-semibold); color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.steps span.on { color: var(--cm-navy); }
.steps span.on i { background: var(--cm-gold); border-color: var(--cm-gold); }
.steps i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--cm-navy-200); display: inline-block; }
.steps .sep { width: 16px; height: 2px; background: var(--cm-navy-200); }
.alert { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: var(--fs-sm); margin-bottom: var(--space-4); display: flex; gap: var(--space-3); align-items: flex-start; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.alert.erro { background: var(--st-erro-bg); color: var(--st-erro-fg); }
.alert.info { background: var(--cm-gold-soft); color: var(--cm-navy); }
.alert.ok { background: var(--st-publicado-bg); color: var(--st-publicado-fg); }

/* comments */
.thread { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.thread li { display: flex; gap: var(--space-3); margin-bottom: var(--space-4); }
.thread .av { width: 32px; height: 32px; border-radius: 50%; background: var(--cm-navy-100); color: var(--cm-navy); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: var(--fw-bold); flex: none; }
.thread .av.cliente { background: var(--cm-pink); }
.thread .av.sys { background: var(--cm-bone); color: var(--cm-gold-700); }
.thread .av.sys .cm-sparkle { width: 12px; height: 12px; }
.thread .bubble { background: var(--cm-paper); border-radius: 4px var(--radius-md) var(--radius-md) var(--radius-md); padding: 10px 14px; font-size: var(--fs-sm); flex: 1; white-space: pre-wrap; }
.thread .bubble.ajuste { background: var(--st-ajustes-bg); }
.thread .bubble.aprovacao { background: var(--st-publicado-bg); }
.thread .bubble.sistema { background: transparent; padding: 6px 0; color: var(--text-muted); font-size: var(--fs-xs); }
.thread .who { font-size: var(--fs-xs); font-weight: var(--fw-bold); display: block; margin-bottom: 2px; white-space: normal; }
.thread .who .meta { font-weight: var(--fw-regular); margin-left: 6px; }

/* table */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { text-align: left; font-size: 10px; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-muted); font-weight: var(--fw-semibold); padding: 0 var(--space-3) var(--space-3); }
.table td { padding: var(--space-3); border-top: 1px solid var(--cm-line); vertical-align: middle; }
.table tr.off td { opacity: .5; }
.client-card { display: flex; gap: var(--space-4); align-items: center; }
.client-av { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: var(--fw-extrabold); font-size: var(--fs-lg); flex: none; }
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-4); }
.clients a.card { color: var(--cm-navy); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
.clients a.card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.conn { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }

/* auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: var(--cm-navy); color: var(--cm-cream); display: flex; flex-direction: column; justify-content: space-between; padding: var(--space-8) var(--space-7); position: relative; overflow: hidden; }
.auth-art img { width: 84px; border-radius: var(--radius-lg); }
.auth-art h1 { color: var(--cm-cream); font-size: clamp(2.2rem, 4vw, var(--fs-display)); font-weight: var(--fw-extrabold); line-height: var(--lh-tight); margin: 0; }
.auth-art h1 em { font-family: var(--font-display); font-style: italic; font-weight: var(--fw-semibold); color: var(--cm-gold); }
.auth-art .big-sparkle { position: absolute; right: -40px; top: 18%; width: 260px; height: 260px; color: var(--cm-gold); opacity: .9; }
.auth-art .big-sparkle.two { width: 110px; height: 110px; right: 190px; top: 12%; color: var(--cm-cream); opacity: .25; }
.auth-art .flourish { color: var(--cm-pink); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: var(--space-7) var(--space-5); }
.auth-form form { width: 100%; max-width: 380px; }
.auth-form h2 { font-size: var(--fs-h2); font-weight: var(--fw-extrabold); margin-bottom: var(--space-2); }

.hide { display: none !important; }
.muted { color: var(--text-muted); }
.right { margin-left: auto; }
.mt { margin-top: var(--space-5); }
.mb0 { margin-bottom: 0; }
hr.soft { border: 0; border-top: 1px solid var(--cm-line); margin: var(--space-5) 0; }
code.k { background: var(--cm-bone); padding: 2px 6px; border-radius: var(--radius-xs); font-size: .85em; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .editor { grid-template-columns: 1fr; }
  .preview { position: static; max-width: 380px; }
  .editor.client-view .preview { order: -1; }
  .grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 40; transform: translateX(-100%); transition: transform var(--dur-base) var(--ease-out); }
  body.menu-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  body.menu-open .scrim { position: fixed; inset: 0; background: rgba(26,27,82,.4); z-index: 30; }
  .topbar { display: flex; align-items: center; gap: var(--space-3); padding: 12px 16px; background: var(--cm-navy); color: var(--cm-cream); position: sticky; top: 0; z-index: 20; }
  .topbar button { background: none; border: 0; color: var(--cm-cream); padding: 4px; cursor: pointer; }
  .topbar img { width: 32px; height: 32px; border-radius: var(--radius-sm); }
  .topbar b { font-weight: var(--fw-bold); }
  .main { padding: var(--space-5) 16px var(--space-8); }
  .stats { grid-template-columns: 1fr 1fr; }
  .grid.half { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: var(--space-6) var(--space-5); min-height: 240px; }
  .auth-art .big-sparkle { width: 140px; height: 140px; right: -20px; }
  .cal { display: block; border-radius: var(--radius-lg); }
  .cal .wd, .cal .day.out:not(.has) { display: none; }
  .cal .day { min-height: 0; border-right: 0; display: grid; grid-template-columns: 44px 1fr; gap: 0 var(--space-2); padding: 10px 12px; }
  .cal .day .num { grid-row: span 9; }
  .cal .day .add { opacity: 1; }
  .cal .day:not(.has):not(.today) { display: none; }
  .task .actions { opacity: 1; }
  .board { grid-template-columns: repeat(var(--cols, 5), 260px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ícones dentro de textos e selos */
.pill svg { width: 12px; height: 12px; }
h2.sec svg { width: 18px; height: 18px; color: var(--cm-ink-500); }
.ev svg { width: 11px; height: 11px; flex: none; margin-left: auto; }
.alert a { font-weight: var(--fw-semibold); text-decoration: underline; text-underline-offset: 3px; }
.alert a svg { width: 13px; height: 13px; display: inline; vertical-align: -1px; margin: 0; }
.meta svg, p.meta svg { width: 13px; height: 13px; vertical-align: -2px; }
.cm-eyebrow a { color: inherit; }
#pv-empty svg { width: 44px; height: 44px; stroke-width: 1.2; opacity: .6; }

/* ============================================================
   Central da agência: entregas, comercial, finanças, WhatsApp
   ============================================================ */
.late { color: var(--st-erro-fg) !important; font-weight: var(--fw-semibold); }
.in { color: var(--st-publicado-fg); }
.out { color: var(--st-erro-fg); }
.stat b.in, .stat b.out { font-size: 1.6rem; }
.table-wrap { overflow-x: auto; margin: 0 calc(var(--space-2) * -1); padding: 0 var(--space-2); }
.table tr.paid td { opacity: .6; }
.quick-add { margin-bottom: var(--space-3); padding: var(--space-2); background: var(--cm-paper); border-radius: var(--radius-pill); }
.quick-add input[type=text] { border-color: transparent; background: var(--cm-white); border-radius: var(--radius-pill); }
.quick-add select, .quick-add input[type=date] { border-radius: var(--radius-pill); }
.quick-add .btn { border-radius: var(--radius-pill); }
.meta.note { display: block; margin-top: 2px; white-space: pre-line; }
.meta.quote { display: block; font-style: italic; margin-top: 4px; }
.chips-mini { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chips-mini span { font-size: 11px; font-weight: var(--fw-semibold); padding: 2px 9px; border-radius: var(--radius-pill); background: var(--cm-navy-100); color: var(--cm-ink-700); }
.chips-mini span.warn { background: var(--st-erro-bg); color: var(--st-erro-fg); }
.pend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.warn-card { border-color: var(--st-erro-bg); }

/* status de entrega como select colorido */
.status-select { width: auto; padding: 5px 10px; font-size: 12px; font-weight: var(--fw-semibold); border-radius: var(--radius-pill); border-color: transparent; cursor: pointer; }
.dst-fazer { background: var(--cm-bone); color: var(--cm-ink-700); }
.dst-producao { background: var(--st-aprovado-bg); color: var(--st-aprovado-fg); }
.dst-ajuste { background: var(--st-ajustes-bg); color: var(--st-ajustes-fg); }
.dst-aprovacao { background: var(--st-aprovacao-bg); color: var(--st-aprovacao-fg); }
.dst-entregue { background: var(--st-publicado-bg); color: var(--st-publicado-fg); }
.qst-rascunho, .cst-rascunho { background: var(--st-rascunho-bg); color: var(--st-rascunho-fg); }
.qst-enviado, .cst-enviado { background: var(--st-aprovacao-bg); color: var(--st-aprovacao-fg); }
.qst-aprovado, .cst-assinado { background: var(--st-publicado-bg); color: var(--st-publicado-fg); }
.qst-recusado, .qst-expirado, .cst-cancelado { background: var(--st-erro-bg); color: var(--st-erro-fg); }
.cst-encerrado { background: var(--cm-bone); color: var(--cm-ink-500); }

/* edição em linha (popover) */
.row-edit[open] { position: relative; }
.row-edit .pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; width: min(460px, 86vw); background: var(--surface-card);
  border: 1px solid var(--cm-navy-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-4); text-align: left; }

/* relatório */
.report-head { display: flex; gap: var(--space-3); align-items: center; padding-bottom: var(--space-4); margin-bottom: var(--space-4); border-bottom: 1px solid var(--cm-line); }
.report-head img { border-radius: var(--radius-md); }
.report-head h2 { font-size: var(--fs-h4); }
.report-head h2 em { font-family: var(--font-display); font-style: italic; font-weight: var(--fw-semibold); }
h3.acc { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: var(--ls-wide); margin: var(--space-5) 0 var(--space-2); display: flex; gap: var(--space-2); align-items: center; }
h3.acc .n { font-size: 11px; color: var(--text-muted); background: var(--cm-navy-100); border-radius: var(--radius-pill); padding: 1px 8px; letter-spacing: 0; }
.totals { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--cm-line); }
.totals div { background: var(--cm-paper); border-radius: var(--radius-md); padding: var(--space-2) var(--space-4); }
.totals b { display: block; font-size: var(--fs-h4); font-weight: var(--fw-extrabold); }
.totals span { font-size: var(--fs-xs); color: var(--text-muted); }

/* orçamento */
.items { display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-2) 0 var(--space-3); }
.item { display: grid; grid-template-columns: 1fr 64px 110px 92px 36px; gap: var(--space-2); align-items: center; }
.sumbox { background: var(--cm-paper); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.sumbox div { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--fs-sm); padding: 3px 0; }
.sumbox div.big { font-size: var(--fs-lg); border-top: 1px solid var(--cm-line); margin-top: 4px; padding-top: 8px; }
.sumbox b small { font-size: var(--fs-xs); font-weight: var(--fw-regular); color: var(--text-muted); }
.seg { display: inline-flex; background: var(--cm-paper); border-radius: var(--radius-pill); padding: 3px; margin-bottom: var(--space-4); }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 6px 16px; border-radius: var(--radius-pill); font-size: var(--fs-sm); font-weight: var(--fw-semibold); cursor: pointer; color: var(--text-muted); }
.seg input:checked + span { background: var(--cm-navy); color: var(--cm-cream); }
.seg input:focus-visible + span { outline: 2px solid var(--focus-ring); }
textarea.doc-edit { font-size: var(--fs-sm); line-height: 1.7; min-height: 480px; }

/* gráfico de barras simples */
.bars { display: flex; align-items: flex-end; gap: var(--space-3); height: 150px; padding-top: var(--space-2); }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.bar-pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.bar-pair i { width: 40%; max-width: 18px; border-radius: 4px 4px 0 0; min-height: 2px; }
.b-in { background: var(--cm-teal); }
.b-out { background: var(--cm-pink); }
.bar-col span { font-size: 11px; color: var(--text-muted); }
.meter { height: 6px; background: var(--cm-bone); border-radius: var(--radius-pill); margin-top: 4px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--cm-navy); border-radius: var(--radius-pill); }

/* WhatsApp */
.sug-form { width: 100%; }
.sug-title { font-weight: var(--fw-semibold); }

/* páginas públicas (orçamento / contrato) */
.pub-head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) clamp(16px, 4vw, 40px); background: var(--cm-navy); color: var(--cm-cream); }
.pub-head img { border-radius: var(--radius-sm); }
.pub-head .btn.ghost { color: var(--cm-cream); border-color: var(--cm-navy-700); }
.pub { max-width: 860px; margin: 0 auto; padding: var(--space-6) 16px var(--space-8); }
.doc { padding: clamp(24px, 5vw, 56px); }
.doc-title { font-size: clamp(1.8rem, 4vw, var(--fs-h2)); font-weight: var(--fw-extrabold); margin: var(--space-2) 0; }
.doc-body p { font-size: var(--fs-sm); line-height: 1.75; }
.signature { margin-top: var(--space-6); padding: var(--space-4); border: 1.5px dashed var(--cm-navy-200); border-radius: var(--radius-md); }
.pub-foot { text-align: center; margin-top: var(--space-7); color: var(--text-muted); font-size: var(--fs-sm); }
.pub-foot .flourish { display: block; }

@media (max-width: 1100px) { .pend-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .item { grid-template-columns: 1fr 56px 92px; }
  .item .rec { grid-column: 1 / 3; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media print {
  body.paper::before, .sidebar, .topbar, .no-print, .flashes, .page-head .btns { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; }
  .card { box-shadow: none; border: 0; }
  .grid.two { display: block; }
  body { background: #fff; }
}
/* colunas da grade nunca crescem além da tela por causa de conteúdo largo */
.grid > *, .stack > * { min-width: 0; }
@media (max-width: 1100px) { .grid.two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .grid.half { grid-template-columns: minmax(0, 1fr); }
  .quick-add { border-radius: var(--radius-lg); }
  .quick-add select { flex: 1 1 auto; }
}

/* ---------- conectar o Claude ---------- */
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.copy-row code { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; font-size: var(--fs-xs); background: rgba(35,36,108,.06);
  border: 1px solid rgba(35,36,108,.12); border-radius: 10px; padding: 10px 12px; line-height: 1.5; }
.steps { margin: 0 0 8px; padding-left: 1.2em; display: grid; gap: 4px; }
.examples { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.examples li { font-family: var(--font-display, serif); font-style: italic; padding-left: 14px; border-left: 2px solid var(--cm-gold, #C9A24A); }

/* ---------- ficha da marca ---------- */
.grid.brand-grid { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
.brand-toc { position: sticky; top: var(--space-4); display: grid; gap: 2px; font-size: var(--fs-xs); }
.brand-toc a { padding: 6px 10px; border-radius: 10px; color: var(--cm-navy); text-decoration: none; border-left: 3px solid var(--cm-gold); }
.brand-toc a:hover { background: var(--surface-card); }
.brand-toc a.empty { border-left-color: var(--cm-line); color: var(--text-muted); }
.brand-toc a.ok { border-left-color: #45937E; }
.md h4 { font-family: var(--font-heading); font-size: var(--fs-sm); margin: var(--space-3) 0 var(--space-1); color: var(--cm-navy); }
.md h4:first-child { margin-top: 0; }
.md ul { margin: 0 0 var(--space-2); padding-left: 1.2em; display: grid; gap: 4px; }
.md p { margin: 0 0 var(--space-2); }
textarea.mono { font-size: var(--fs-sm); line-height: 1.55; }
.qa { padding: 10px 0; border-bottom: 1px solid var(--cm-line); display: grid; gap: 4px; }
.qa:last-child { border-bottom: 0; }
.qa div { white-space: pre-wrap; }
.q-edit { margin: 0; padding-left: 1.4em; display: grid; gap: var(--space-3); }
.q-edit li { display: grid; gap: 6px; padding-bottom: var(--space-3); border-bottom: 1px solid var(--cm-line); }
.q-row { display: flex; gap: 6px; flex-wrap: wrap; }
.q-row .q-label { flex: 1 1 280px; min-width: 0; font-weight: var(--fw-semibold); }
.q-row select { flex: 0 1 200px; min-width: 0; }
label.check { display: inline-flex; gap: 8px; align-items: center; font-size: var(--fs-sm); }
.progress { height: 8px; background: var(--cm-navy-100); border-radius: 999px; overflow: hidden; margin-top: var(--space-3); }
.progress span { display: block; height: 100%; background: var(--cm-gold); }
.q-pub small { display: block; color: var(--text-muted); margin-bottom: 4px; }
fieldset.q-pub { border: 0; padding: 0; margin: 0 0 var(--space-3); }
fieldset.q-pub legend { font-weight: var(--fw-semibold); margin-bottom: 4px; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--cm-line); background: var(--surface-card); cursor: pointer; font-size: var(--fs-sm); }
.opt input:checked + span { background: var(--cm-navy); color: var(--cm-cream); border-color: var(--cm-navy); }
.opt input:focus-visible + span { outline: 2px solid var(--cm-gold); outline-offset: 2px; }
.req { color: #C0392B; }
@media (max-width: 900px) { .grid.brand-grid { grid-template-columns: 1fr; } .brand-toc { position: static; display: flex; flex-wrap: wrap; } }

/* ---------- ficha no desenho do Notion: cartões e colunas ---------- */
.callout { background: var(--cm-paper); border: 1px solid var(--cm-line); border-radius: 14px; padding: var(--space-3); min-width: 0; }
.callout.lead { background: var(--cm-navy-100); border-color: transparent; margin-bottom: var(--space-3); }
.callout .callout-t { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--cm-navy); margin-bottom: 4px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-2); }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-4); }
.cols .col { min-width: 0; padding-top: var(--space-2); border-top: 2px solid var(--cm-gold); }
.cols .col h4 { margin-top: 0; }
.sec-intro { margin-bottom: var(--space-3); }
.md i { color: var(--text-muted); }
.docs { margin: 0; padding-left: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px var(--space-3); }
.docs li { display: grid; gap: 2px; padding: 8px 0 8px 12px; border-left: 3px solid var(--cm-gold); }
.docs li.empty { border-left-color: var(--cm-line); }
.docs li a { text-decoration: none; color: var(--cm-navy); }
.brand-home h3.acc { margin-top: var(--space-4); }
@media (max-width: 700px) { .cols { grid-template-columns: 1fr; } }

/* =====================================================================
   Visual leve (nov/2026): fundo liso, mais respiro, borboletas e rosa.
   Esta camada vem por último e ajusta o que está acima.
   ===================================================================== */
:root {
  --page: #FBF8F4;            /* fundo liso, quente e claro */
  --rose: #ECC2BF;            /* rosa da paleta */
  --rose-soft: #F9EDEB;       /* rosa bem clarinho para fundos */
  --rose-ink: #A4524C;        /* rosa escuro para texto sobre rosa-claro */
  --hair: rgba(35,36,108,.07);
  --shadow-soft: 0 1px 2px rgba(35,36,108,.04), 0 10px 30px rgba(35,36,108,.05);
}
body, body.paper { background: var(--page); }
body.paper::before { display: none; }

.main { padding: var(--space-7) clamp(16px, 4.5vw, 72px) var(--space-9, 96px); }
.page-head { margin-bottom: var(--space-7); align-items: center; }
.page-head .sub { margin-top: var(--space-2); }
.cm-eyebrow.eyebrow { margin-bottom: var(--space-2); }
.cm-sparkle, h2.sec .cm-sparkle, .empty .cm-sparkle { color: var(--rose); }

.card { border: 0; box-shadow: var(--shadow-soft); border-radius: 24px; padding: clamp(20px, 2.6vw, 32px); }
.card + .card, .stack > * + * { margin-top: var(--space-6); }
.grid { gap: var(--space-6); }
h2.sec { font-size: 1.15rem; margin-bottom: var(--space-4); }
h2.sec svg { color: var(--rose-ink); }
.list li { padding-block: 14px; }
.stat { border: 0; box-shadow: var(--shadow-soft); border-radius: 20px; }
.stats { gap: var(--space-4); }

/* menu lateral mais leve */
.nav { gap: 4px; }
.nav a { padding-block: 10px; border-radius: 14px; }
.nav a.on { background: var(--rose); color: var(--cm-navy); }
.nav a .count { background: var(--rose); color: var(--cm-navy); }
.nav a.on .count { background: var(--cm-white); }
.sidebar-bfly { width: 72px; margin: auto auto 0 var(--space-3); opacity: .95; transform: rotate(-14deg); pointer-events: none; }

/* cabeçalho com borboleta */
.page-head.hero { position: relative; }
.deco-butterfly { width: clamp(84px, 11vw, 132px); transform: rotate(12deg); filter: drop-shadow(0 8px 14px rgba(35,36,108,.12)); }
@keyframes flutter { 0%, 100% { transform: rotate(12deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .deco-butterfly { animation: none; } }

.notice { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; background: var(--rose-soft); color: var(--cm-navy);
  border-radius: 18px; padding: 14px 18px; margin-bottom: var(--space-5); font-size: var(--fs-sm); }
.notice svg { width: 18px; height: 18px; color: var(--rose-ink); flex: none; }
.notice .grow { flex: 1 1 240px; min-width: 0; }

/* ---------- Hoje ---------- */
.today { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-7); align-items: start; }
@media (max-width: 1080px) { .today { grid-template-columns: 1fr; } }
.today-main > * + * { margin-top: var(--space-6); }
.sec-row { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); flex-wrap: wrap; }
.sec-row h2.sec { margin: 0; }
.sec-row .right { margin-left: auto; }
.small-link { font-size: var(--fs-xs); }
.seg { display: inline-flex; background: var(--rose-soft); border-radius: 999px; padding: 3px; }
.seg a { padding: 5px 14px; border-radius: 999px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--cm-navy); text-decoration: none; }
.seg a.on { background: var(--cm-white); box-shadow: 0 1px 3px rgba(35,36,108,.1); }

.add-task, .add-row { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.add-task { background: var(--rose-soft); border-radius: 18px; padding: 8px; margin-bottom: var(--space-4); }
.add-task input[type=text] { flex: 1 1 260px; min-width: 0; border: 0; background: var(--cm-white); border-radius: 12px; padding: 12px 14px; font-size: 1rem; }
.add-task select { flex: 0 1 190px; min-width: 0; border: 0; border-radius: 12px; background: var(--cm-white); }
.add-task .btn, .btn.icon { border-radius: 12px; }

.tasks { list-style: none; margin: 0; padding: 0; }
.tasks .task { display: flex; gap: var(--space-3); align-items: flex-start; padding: 16px 4px; border-bottom: 1px solid var(--hair); }
.tasks .task:last-child { border-bottom: 0; }
.tasks .task .tick { margin-top: 1px; border-color: var(--rose); }
.tasks .task .tick:hover { border-color: var(--rose-ink); color: var(--rose-ink); background: var(--rose-soft); }
.tasks .title { display: block; font-weight: var(--fw-semibold); line-height: 1.4; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: #F3EFEA; color: var(--cm-ink-700); text-decoration: none; }
.tag svg { width: 11px; height: 11px; }
.tag.late { background: var(--rose-soft); color: var(--rose-ink); font-weight: var(--fw-semibold); }
.tag.link:hover { background: var(--rose-soft); }
.tasks .later { opacity: 0; transition: opacity .15s; }
.tasks .task:hover .later, .tasks .task:focus-within .later { opacity: 1; }
@media (hover: none) { .tasks .later { opacity: 1; } }
details.note summary, details.done-today > summary, details.inbox > summary { cursor: pointer; font-size: var(--fs-xs); color: var(--text-muted); list-style: none; }
details.note summary::-webkit-details-marker, details.done-today > summary::-webkit-details-marker, details.inbox > summary::-webkit-details-marker { display: none; }
details.note p { margin: 6px 0 0; font-size: var(--fs-sm); color: var(--cm-ink-700); white-space: pre-wrap; }
details.done-today, details.inbox { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--hair); }
details.inbox > summary { display: inline-flex; gap: 8px; align-items: center; font-size: var(--fs-sm); color: var(--cm-navy); font-weight: var(--fw-semibold); }
details.inbox > summary svg { width: 16px; height: 16px; color: var(--rose-ink); }
details.inbox form { margin-top: var(--space-3); display: grid; gap: var(--space-3); }
.quote { margin: 6px 0 0; font-family: var(--font-display); font-style: italic; color: var(--text-muted); font-size: var(--fs-sm); }

.empty-art { list-style: none; text-align: center; padding: var(--space-6) 0 var(--space-4); color: var(--text-muted); }
.empty-art img { width: 110px; transform: rotate(-10deg); margin-bottom: var(--space-2); }
.empty-art b { color: var(--cm-navy); }

.today-side { display: grid; gap: var(--space-4); }
.side-title { margin: 0; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); font-weight: var(--fw-semibold); }
.side-card { background: var(--cm-white); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow-soft); }
.side-card h3 { display: flex; gap: 8px; align-items: center; font-size: var(--fs-sm); margin: 0 0 6px; }
.side-card h3 svg { width: 16px; height: 16px; color: var(--rose-ink); }
.mini { list-style: none; margin: 0; padding: 0; }
.mini li { display: flex; gap: var(--space-2); align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.mini li:last-child { border-bottom: 0; padding-bottom: 0; }
.mini .grow { flex: 1; min-width: 0; }
.mini .title { display: block; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--cm-navy); text-decoration: none; overflow-wrap: anywhere; }
.mini .meta { font-size: 12px; }
.late { color: var(--rose-ink); }
.side-empty { text-align: center; padding: var(--space-5) var(--space-3); color: var(--text-muted); font-size: var(--fs-sm); }
.side-empty img { width: 84px; transform: rotate(14deg); }
.side-link { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--cm-navy); text-decoration: none; padding: 12px 16px; border-radius: 16px; background: var(--rose-soft); }
.side-link svg { width: 16px; height: 16px; }
.side-link span { margin-left: auto; }

/* ---------- abas e menu "Criar" ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: calc(-1 * var(--space-4)) 0 var(--space-6); }
.tabs button { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.tabs button:hover { color: var(--cm-navy); background: var(--rose-soft); }
.tabs button.on { background: var(--cm-navy); color: var(--cm-white); }
.tabs button .n { background: var(--rose); color: var(--cm-navy); border-radius: 999px; padding: 0 7px; font-size: 11px; }
.tabs button:focus-visible { outline: 2px solid var(--rose-ink); outline-offset: 2px; }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--cm-white); border-radius: 16px; box-shadow: 0 12px 32px rgba(35,36,108,.14); padding: 6px; min-width: 200px; display: grid; }
.menu-list a { padding: 10px 14px; border-radius: 10px; color: var(--cm-navy); text-decoration: none; font-size: var(--fs-sm); }
.menu-list a:hover { background: var(--rose-soft); }
.kind-tag { display: inline-block; font-size: var(--fs-xs); font-weight: var(--fw-semibold); padding: 4px 12px; border-radius: 999px; background: var(--rose-soft); color: var(--rose-ink); }
.kind-tag.agencia { background: #E6F0F4; color: #2E6378; }
.pend-stack { display: grid; gap: var(--space-6); }
.pend-stack > div { min-width: 0; }

/* ---------- ficha da marca, mais arejada ---------- */
.callout { background: var(--page); border: 0; border-radius: 18px; padding: 18px 20px; }
.callout.lead { background: var(--rose-soft); }
.callouts { gap: var(--space-3); }
.cols { gap: var(--space-5) var(--space-6); }
.cols .col { border-top-color: var(--rose); padding-top: var(--space-3); }
.docs li { border-left-color: var(--rose); }
.brand-toc a { border-left-color: var(--rose); }

/* estados vazios com borboleta */
.empty-bfly { width: 22px; height: auto; transform: rotate(-12deg); flex: none; }

/* login */
.auth-art .bfly-a { position: absolute; width: 200px; right: -30px; top: 16%; transform: rotate(14deg); }
.auth-art .bfly-b { position: absolute; width: 96px; right: 190px; top: 8%; transform: rotate(-18deg); opacity: .95; }
@media (max-width: 900px) { .auth-art .bfly-a { width: 120px; } .auth-art .bfly-b { display: none; } }
.sidebar-bfly { margin-top: auto; margin-bottom: var(--space-3); } .sidebar-bfly ~ .sidebar-foot { margin-top: 0; }
@media (max-width: 700px) { .page-head.hero { padding-right: 76px; } .page-head.hero .deco-butterfly { position: absolute; right: 0; top: 0; width: 68px; } }
/* colagem do cabeçalho: rosa atrás, borboleta azul na frente */
.page-head.hero .deco { position: relative; width: clamp(110px, 13vw, 160px); height: clamp(90px, 10vw, 128px); flex: none; }
.page-head.hero .deco .deco-butterfly { position: absolute; right: 0; top: 0; width: 78%; }
.page-head.hero .deco .deco-rose { position: absolute; left: 0; bottom: 0; width: 46%; transform: rotate(-8deg); filter: drop-shadow(0 6px 10px rgba(35,36,108,.12)); }
@media (max-width: 700px) { .page-head.hero .deco { position: absolute; right: 0; top: 0; width: 90px; height: 76px; } .page-head.hero .deco .deco-butterfly { position: absolute; width: 74%; } }
.empty-art img { width: 90px; }
.alert.info { background: var(--rose-soft); }
details.add-panel { padding-block: 18px; }
details.add-panel > summary.sec-summary { list-style: none; cursor: pointer; display: flex; gap: 8px; align-items: center; font-weight: var(--fw-bold); font-size: 1.05rem; color: var(--cm-navy); }
details.add-panel > summary::-webkit-details-marker { display: none; }
details.add-panel > summary svg { width: 18px; height: 18px; color: var(--rose-ink); }
details.add-panel[open] > summary { margin-bottom: var(--space-2); }
.add-task input[type=date] { flex: 0 1 160px; min-width: 0; border: 0; border-radius: 12px; background: var(--cm-white); }
.add-task details.more { flex-basis: 100%; padding: 0 6px; }
.add-task details.more > summary { cursor: pointer; font-size: var(--fs-xs); color: var(--text-muted); list-style: none; padding: 2px 0; }
.add-task details.more > summary::-webkit-details-marker { display: none; }
.add-task .more-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--space-2) var(--space-3); padding: var(--space-2) 0 var(--space-1); }
.add-task .more-row .f { margin: 0; }
.add-task .more-row select, .add-task .more-row input { border: 0; border-radius: 12px; background: var(--cm-white); }
/* troca de página suave nos navegadores que suportam (sem "piscar" em branco) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .12s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
