/* Identidade aprovada a 1/10/2026: só estes tokens; sem sombras, gradientes nem ícones decorativos. */
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/manrope-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/manrope-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/manrope-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #22374B; --ink: #26384A; --gold: #9C7C38; --ground: #F1ECE0; --surface: #FFFFFF;
  --muted: #5B6875; --line: #E3DCCB; --line-soft: #EEE8DA; --field: #D9D0BC;
  --safe-top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: calc(var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px));
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ground); color: var(--ink);
  font-family: "Manrope", sans-serif; font-size: 16px; -webkit-text-size-adjust: 100%; }
a { color: var(--navy); }
button, input, select, textarea { font-family: "Manrope", sans-serif; }
textarea:focus, input:focus, select:focus { outline: 2px solid var(--navy); outline-offset: 1px; }

#app { min-height: 100%; display: flex; flex-direction: column; padding-top: var(--safe-top); }
.screen { flex-grow: 1; display: flex; flex-direction: column; min-height: 0; }
header.top { padding: 16px 20px 8px; display: flex; flex-direction: column; gap: 14px; }
.topline { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.topline.end { justify-content: flex-end; }
.kicker { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.logo { height: 32px; width: auto; display: block; }
.backlink { font-size: 15px; text-decoration: none; min-height: 44px; display: flex; align-items: center; color: var(--navy);
  background: none; border: 0; padding: 0; cursor: pointer; }
.titles { display: flex; flex-direction: column; gap: 4px; }
h1 { margin: 0; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 30px; line-height: 1.1; color: var(--navy); }
.sub { margin: 0; font-size: 14px; color: var(--muted); }
main.body { flex-grow: 1; overflow-y: auto; padding: 8px 20px 20px; display: flex; flex-direction: column; gap: 22px;
  -webkit-overflow-scrolling: touch; }
section { display: flex; flex-direction: column; gap: 10px; }
h2 { margin: 0; padding-bottom: 6px; border-bottom: 1px solid var(--gold); font-family: "Cormorant Garamond", serif;
  font-weight: 600; font-size: 20px; color: var(--navy); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; }
.card.pad { padding: 14px; gap: 4px; }
.row { display: flex; gap: 14px; padding: 14px; text-decoration: none; color: var(--ink); border: 0;
  border-bottom: 1px solid var(--line-soft); background: none; text-align: left; font-size: 16px; width: 100%; min-height: 44px; cursor: pointer; }
.row:last-child { border-bottom: 0; }
.row.col { flex-direction: column; gap: 2px; }
.row.between { justify-content: space-between; align-items: center; gap: 12px; }
.time { width: 48px; flex-shrink: 0; font-size: 15px; font-weight: 600; color: var(--navy); }
.time.muted { font-weight: 400; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 2px; }
.strong { font-size: 16px; font-weight: 600; }
.small { font-size: 14px; color: var(--muted); }
.note { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.calm { margin: 0; padding: 14px; font-size: 15px; color: var(--muted); }
.chev { font-size: 18px; color: var(--muted); }
.approval { padding: 14px; gap: 12px; }
.approval p { margin: 0; font-size: 16px; line-height: 1.4; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.btn { height: 48px; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; display: flex;
  align-items: center; justify-content: center; text-decoration: none; }
.btn.primary { background: var(--navy); color: #FFFFFF; border: 0; }
.btn.outline { background: var(--surface); color: var(--navy); border: 1px solid var(--navy); }
.btn.big { height: 52px; border-radius: 12px; }
.result { display: flex; justify-content: space-between; align-items: center; }
.result span { font-size: 14px; font-weight: 600; color: var(--navy); }
.linkbtn { min-height: 44px; border: 0; background: transparent; color: var(--navy); font-size: 14px; text-decoration: underline; cursor: pointer; }
.actions3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.actions3 .btn { font-size: 15px; }
.field-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.field-row:last-child { border-bottom: 0; }
.field-row.top { align-items: flex-start; }
.field-row label, .field-row .lbl { width: 56px; flex-shrink: 0; font-size: 13px; color: var(--muted); }
.field-row select, .field-row input { flex-grow: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; color: var(--ink); min-height: 32px; padding: 2px 0; }
.field-row .val { flex-grow: 1; font-size: 16px; background: none; border: 0; padding: 0; text-align: left; color: var(--ink); }
.textlabel { font-family: "Cormorant Garamond", serif; font-size: 20px; font-weight: 600; color: var(--navy); }
textarea.body { min-height: 330px; resize: none; padding: 16px; background: var(--surface); border: 1px solid var(--field);
  border-radius: 12px; font-size: 16px; line-height: 1.5; color: var(--ink); width: 100%; overflow: hidden; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { font-size: 14px; color: var(--muted); }
.kv span:last-child { font-size: 15px; text-align: right; word-break: break-word; }
.formstate { font-size: 13px; color: var(--muted); white-space: nowrap; }
.search { display: flex; flex-direction: column; gap: 6px; }
.search label { font-size: 13px; color: var(--muted); }
.search input { height: 48px; padding: 0 14px; background: var(--surface); border: 1px solid var(--field); border-radius: 12px; font-size: 16px; color: var(--ink); }
footer.save { padding: 12px 20px calc(24px + var(--safe-bottom)); background: var(--ground); border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; }
footer.save p { margin: 0; font-size: 14px; color: var(--navy); text-align: center; }
nav.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface);
  border-top: 1px solid var(--line); padding-bottom: calc(18px + var(--safe-bottom)); position: sticky; bottom: 0; }
nav.tabs a { min-height: 52px; display: flex; align-items: center; justify-content: center; border-top: 2px solid transparent;
  font-size: 14px; color: var(--muted); text-decoration: none; }
nav.tabs a.on { border-top-color: var(--gold); font-weight: 600; color: var(--navy); }
.error { color: #9B2C2C; }
.pull { text-align: center; font-size: 13px; color: var(--muted); height: 0; overflow: hidden; transition: height .15s; }
.sheet { position: fixed; inset: 0; background: rgba(34, 55, 75, 0.35); display: flex; align-items: flex-end;
  padding: 20px 20px calc(20px + var(--safe-bottom)); z-index: 10; }
.sheet-card { width: 100%; }
a.btn { box-sizing: border-box; }
