/* LTD — a app (PWA). Reconstrução do modo App do protótipo v4 (design/HANDOFF.md,
   secção "App"): Bone para Today, Compass e Self; preto e carbono em Create.
   Sem estilos inline — a CSP é 'self' — por isso o que muda com o estado muda
   por classe, e os poucos valores contínuos (alturas, ângulos) vão pelo CSSOM. */

@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 200 700; font-display: swap; src: url(/fonts/hanken-grotesk-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 200 700; font-display: swap; src: url(/fonts/hanken-grotesk-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/dm-mono-400-latin.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/dm-mono-500-latin.woff2) format("woff2"); }

:root {
  --bone: #ECEAE4; --bone-2: #F6F5F1; --bone-3: #DCD9D1; --black: #000; --carbon: #121418; --graphite: #1C1F24; --steel: #2B2F36;
  --ash: #5E646D; --mist: #8A9099; --silver: #A9AEB7; --ink-2: #3B3F45; --line-light: #C9C6BE; --line-light-2: #D9D6CE;
  --signal: #1F5BFF; --signal-deep: #1A4FE0; --red: #FF1F2E; --red-deep: #C8102E;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --bg: var(--bone); --fg: var(--black); --muted: var(--ash); --body: var(--ink-2); --line: var(--line-light); --card: var(--bone-2);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--fg); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; transition: background-color .5s ease, color .5s ease; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
h1, h2, p { margin: 0; }

/* modo Create: o fundo inteiro passa a preto com carbono */
body.criar { --bg: #000; --fg: var(--bone); --muted: var(--silver); --body: var(--silver); --line: var(--steel); --card: var(--carbon); color-scheme: dark;
  background-color: #000; background-image: linear-gradient(118deg, transparent 12%, #FFFFFF12 42%, transparent 62%), radial-gradient(120% 90% at 50% 50%, transparent 40%, #00000099 100%), url(/assets/carbon-tile.svg); background-size: 100% 100%, 100% 100%, 9px 9px; background-attachment: fixed; }

.ecra { max-width: 480px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top, 0px)) 20px calc(124px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 20px; }
.cabeca { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; }
.marca { width: 58px; color: var(--fg); }
.marca svg { display: block; width: 100%; height: auto; }
.marca .corte { stroke: var(--bg); }
.meta { font: 400 10px var(--mono); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.avatar--fora { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.col { display: flex; flex-direction: column; }
.g6 { gap: 6px; } .g8 { gap: 8px; } .g14 { gap: 14px; } .g16 { gap: 16px; } .g18 { gap: 18px; } .g20 { gap: 20px; }
.titulo { font-weight: 300; font-size: 48px; line-height: .98; letter-spacing: -.055em; margin-top: 8px; }
.titulo--44 { font-size: 44px; } .titulo--42 { font-size: 42px; margin-top: 0; } .titulo--46 { font-size: 46px; }
.eco { color: #8A8F96; } body.criar .eco { color: var(--ash); }
.vermelho-fundo { color: var(--red-deep); }
.corpo { font-size: 15px; line-height: 1.5; color: var(--body); }
.corpo--14 { font-size: 14px; }
.lista { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.linha { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; border-bottom: 1px solid var(--line); font-size: 15px; }
.linha .meta { font-size: 10px; letter-spacing: .12em; white-space: nowrap; }
.aviso { font: 400 10px var(--mono); letter-spacing: .12em; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; padding: 10px 12px; }

/* Today */
.rumo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.rumo-n { display: flex; align-items: flex-start; }
.rumo-n b { font-weight: 200; font-size: 84px; line-height: .85; letter-spacing: -.07em; }
.rumo-n span { font-weight: 300; font-size: 36px; color: var(--red); }
.traco { height: 3px; background: linear-gradient(90deg, #1F5BFF, #FF1F2E); transform: rotate(-1deg); }
.carbono { position: relative; overflow: hidden; border-radius: 24px; padding: 22px; color: var(--bone); display: flex; flex-direction: column; gap: 8px; background-color: #0E0F11; background-image: linear-gradient(118deg, transparent 12%, #FFFFFF12 42%, transparent 62%), radial-gradient(120% 90% at 50% 50%, transparent 40%, #00000099 100%), url(/assets/carbon-tile.svg); background-size: 100% 100%, 100% 100%, 9px 9px; }
.carbono::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 20%, #FFFFFF14 46%, transparent 64%), radial-gradient(100% 80% at 100% 0%, #1F5BFF33, #1F5BFF00 60%); }
.carbono > * { position: relative; }
.carbono .meta { color: var(--silver); }
.carbono b { font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.carbono .sub { font-size: 13px; color: var(--silver); }
.correcao { width: 100%; background: var(--red); color: #000; border-radius: 24px; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 14px; transition: background-color .3s, color .3s; }
.correcao.feita { background: #000; color: var(--bone); }
.correcao .meta { color: inherit; font-weight: 500; }
.correcao b { font-weight: 600; font-size: 18px; line-height: 1.25; }
.correcao small { font-size: 13px; }
.correcao .marco { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-weight: 700; font-size: 18px; }

/* Compass */
.bussola { position: relative; width: 250px; height: 250px; align-self: center; }
.bussola svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bussola circle { fill: none; transition: stroke-width .3s; }
.bussola .fundo { stroke: var(--line-light-2); }
.bussola .l { stroke: #000; } .bussola .t { stroke: var(--signal); } .bussola .d { stroke: var(--red); }
.bussola-centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bussola-centro b { font-weight: 200; font-size: 48px; line-height: 1; letter-spacing: -.06em; }
.bussola-centro .meta { font-size: 9px; }
.tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.letra { border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 4px; background: var(--bone-2); color: #000; border: 1px solid var(--line-light-2); }
.letra.sel-0 { background: #000; color: #fff; border-color: transparent; }
.letra.sel-1 { background: var(--signal); color: #fff; border-color: transparent; }
.letra.sel-2 { background: var(--red); color: #000; border-color: transparent; }
.letra .topo { display: flex; justify-content: space-between; align-items: baseline; }
.letra b { font-weight: 700; font-size: 22px; }
.letra .n { font-weight: 300; font-size: 24px; letter-spacing: -.04em; }
.letra .meta { font-size: 9px; letter-spacing: .1em; color: inherit; }
.cartao { background: var(--card); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.cor-0 { color: #000; } .cor-1 { color: var(--signal-deep); } .cor-2 { color: var(--red-deep); }
.fases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fase { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ash); font-weight: 500; }
.fase i { height: 4px; border-radius: 2px; background: var(--ash); }
.fase--passada i { background: var(--signal-deep); }
.fase--agora { color: #000; font-weight: 700; } .fase--agora i { background: var(--red); }
.area { display: grid; grid-template-columns: 104px minmax(0, 1fr) 38px; gap: 12px; align-items: center; height: 46px; border-bottom: 1px solid var(--line); font-size: 14px; }
.area i { height: 2px; background: var(--mist); transform-origin: left center; }
.area .mais { background: var(--red); } .area .menos { background: var(--signal); }
.area b { font: 500 12px var(--mono); text-align: right; color: var(--ash); }
.area b.mais { color: var(--red-deep); background: none; } .area b.menos { color: var(--signal-deep); background: none; }
.legenda { font-size: 12px; color: var(--ash); }

/* Self */
.segmentos { display: grid; grid-template-columns: 1fr 1fr; background: var(--bone-3); border-radius: 999px; padding: 4px; margin-top: 6px; }
.segmentos button { height: 40px; border-radius: 999px; display: grid; place-items: center; font-weight: 600; font-size: 14px; color: var(--ink-2); text-align: center; }
.segmentos button[aria-pressed="true"] { background: #000; color: var(--bone); }
.nota { background: var(--card); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.nota p { font-size: 17px; line-height: 1.45; }
.nota .rodape { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.nota .area-tag { color: var(--red-deep); }
.nota .apagar { font: 400 10px var(--mono); letter-spacing: .12em; color: var(--ash); padding: 4px 0; }
.nova-nota { display: flex; flex-direction: column; gap: 8px; }
.nova-nota textarea { width: 100%; min-height: 96px; border-radius: 20px; border: 1px solid var(--line); background: var(--bone-2); color: #000; padding: 14px 16px; font: 400 16px/1.45 var(--sans); resize: vertical; }
.escrever { width: 100%; background: var(--signal); color: #fff; border-radius: 24px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; }
.escrever b { font-size: 16px; font-weight: 600; } .escrever small { font-size: 12px; }
.escrever .circulo { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; font-size: 22px; }
.progresso { background: #000; color: var(--bone); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.progresso .meta { color: var(--silver); }
.barras { display: flex; align-items: flex-end; gap: 3px; height: 110px; }
.barras i { flex: 1; border-radius: 2px; background: var(--steel); }
.barras i.b { background: var(--signal); } .barras i.v { background: var(--red); }
.progresso .fim { display: flex; justify-content: space-between; align-items: baseline; }
.progresso .fim span { font-size: 14px; color: var(--silver); }
.progresso .fim b { font-weight: 200; font-size: 40px; letter-spacing: -.05em; color: var(--red); }
.linha button, button.linha { width: 100%; }
.valor-0 { color: var(--red-deep); } .valor-1 { color: var(--signal-deep); } .valor-2, .valor-3 { color: var(--ash); }

/* conta */
.conta { background: var(--card); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.conta b { font-weight: 600; font-size: 16px; }
.conta form { display: flex; flex-direction: column; gap: 8px; }
.conta input { width: 100%; height: 50px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); padding: 0 18px; font: 400 16px var(--sans); }
.botao { height: 50px; border-radius: 999px; background: #000; color: var(--bone); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; font-weight: 600; font-size: 15px; }
.botao--claro { background: var(--bone); color: #000; }
.botao--linha { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.estado-conta { font-size: 13px; color: var(--body); min-height: 1.4em; }
.sync { font: 400 10px var(--mono); letter-spacing: .12em; color: var(--muted); }

/* Create */
.dominios { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dominio { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--steel); padding: 16px; min-height: 128px; display: flex; flex-direction: column; justify-content: space-between; color: var(--bone); background-color: #0E0F11; background-image: linear-gradient(118deg, transparent 12%, #FFFFFF12 42%, transparent 62%), radial-gradient(120% 90% at 50% 50%, transparent 40%, #00000099 100%), url(/assets/carbon-tile.svg); background-size: 100% 100%, 100% 100%, 9px 9px; }
.dominio .topo { display: flex; justify-content: space-between; }
.dominio b { font-weight: 500; font-size: 22px; letter-spacing: -.03em; display: block; }
.dominio small { font-size: 12px; line-height: 1.35; color: var(--silver); }
.dom-0 { color: var(--red); } .dom-1 { color: var(--signal); } .dom-2 { color: var(--silver); }
.chips { display: flex; gap: 6px; overflow-x: auto; margin-top: 6px; }
.chip { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; display: flex; align-items: center; font-size: 14px; font-weight: 600; border: 1px solid var(--steel); }
.chip[aria-pressed="true"] { background: var(--bone); color: #000; border-color: var(--bone); }
.cores { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cores .opcoes { display: flex; gap: 6px; }
.cor { height: 34px; padding: 0 10px 0 5px; border-radius: 999px; border: 1px solid var(--steel); display: flex; align-items: center; gap: 6px; font-size: 12px; }
.cor[aria-pressed="true"] { border-color: var(--red); }
.cor i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #3A3F47; }
.cw-0 { background: #000; color: var(--bone); } .cw-1 { background: var(--steel); color: var(--bone); } .cw-2 { background: var(--bone); color: #000; }
.pecas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.peca { border-radius: 20px; overflow: hidden; border: 2px solid var(--graphite); background: var(--carbon); }
.peca[aria-pressed="true"] { border-color: var(--red); }
.peca .amostra { aspect-ratio: 1.15; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; font: 400 10px var(--mono); transition: background-color .3s; }
.peca .amostra span:last-child { font-size: 9px; letter-spacing: .14em; }
.peca .nome { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; }
.peca .nome span { font: 500 13px var(--mono); color: var(--red); }
.total { background: var(--bone); color: #000; border-radius: 24px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; }
.total .meta { color: var(--ash); font-weight: 500; }
.total b { font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.total span.pedir { background: #000; color: var(--bone); border-radius: 999px; padding: 12px 18px; font-weight: 600; font-size: 13px; opacity: .45; }
.caixa { background: var(--carbon); border: 1px solid var(--steel); border-radius: 20px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; }
.caixa b { font-weight: 600; font-size: 16px; display: block; }
.caixa small { font-size: 13px; color: var(--silver); }
.interruptor { width: 48px; height: 28px; flex: none; border-radius: 999px; background: var(--steel); display: flex; justify-content: flex-start; padding: 3px; transition: background-color .2s; }
.interruptor i { width: 22px; height: 22px; border-radius: 50%; background: var(--silver); }
[aria-pressed="true"] > .interruptor { background: var(--red); justify-content: flex-end; }
[aria-pressed="true"] > .interruptor i { background: #000; }
.som { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 1; background: var(--carbon); }
.som img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.som::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, #000000E6 100%); }
.som .texto { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; }
.som b { font-weight: 700; font-size: 40px; line-height: .86; letter-spacing: -.05em; }
.som .meta { color: var(--red); font-size: 11px; }
.refeicao { background: var(--carbon); border: 1px solid var(--steel); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.refeicao b { font-weight: 500; font-size: 17px; }
.meta.v { color: var(--red); } .meta.a { color: var(--signal); }
.lugares { display: flex; flex-direction: column; border-left: 1px solid var(--steel); margin-left: 6px; }
.lugar { position: relative; padding: 0 0 26px 24px; display: flex; flex-direction: column; gap: 4px; }
.lugar::before { content: ""; position: absolute; left: -8px; top: 8px; width: 15px; height: 3px; background: var(--signal); transform: rotate(-1deg); }
.lugar--0::before { background: var(--bone); } .lugar--3::before { background: var(--red); }
.lugar b { font-weight: 300; font-size: 32px; letter-spacing: -.04em; }
.lugar small { font-size: 13px; color: var(--silver); }
.dados-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dados-3 div { background: var(--carbon); border: 1px solid var(--steel); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.dados-3 b { font-weight: 200; font-size: 34px; line-height: 1; letter-spacing: -.05em; }
.dados-3 span { font-size: 11px; line-height: 1.3; color: var(--silver); }

/* navegação */
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: calc(78px + env(safe-area-inset-bottom, 0px)); padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); background: #ECEAE4F2; border-top: 1px solid var(--line-light); display: grid; grid-template-columns: repeat(4, 1fr); z-index: 30; }
.nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--ash); }
.nav button i { width: 20px; height: 3px; background: transparent; transform: rotate(-1deg); }
.nav button[aria-current="page"] { color: #000; font-weight: 700; }
.nav button[aria-current="page"] i { background: linear-gradient(90deg, #1F5BFF, #FF1F2E); }
.nav-criar { position: fixed; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); width: calc(100% - 24px); max-width: 456px; height: 62px; border-radius: 999px; background: #1C1F24E6; border: 1px solid var(--steel); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); display: grid; grid-template-columns: 54px repeat(4, 1fr); align-items: center; padding: 0 4px; z-index: 30; }
.nav-criar .voltar { width: 48px; height: 48px; border-radius: 50%; background: var(--bone); color: #000; display: grid; place-items: center; font-size: 18px; font-weight: 700; }
.nav-criar button:not(.voltar) { height: 48px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 500; color: #C9CDD3; }
.nav-criar button[aria-current="page"] { background: var(--bone); color: #000; font-weight: 700; }

/* A cápsula: a lista de peças, a marca da pessoa e a conta da mala. */
.capsula { border-top: 1px solid var(--steel); padding-top: 22px; margin-top: 6px; }
.cap-lista { display: flex; flex-direction: column; border-top: 1px solid var(--steel); }
.cap-linha { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 54px; border-bottom: 1px solid var(--steel); }
.cap-linha--zero .cap-nome { color: var(--mist); }
.cap-cor { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #3A3F47; }
.cap-cor--preto { background: #000; } .cap-cor--branco { background: #FFFFFF; } .cap-cor--bege { background: #D8C8AE; }
.cap-nome { display: flex; flex-direction: column; font-size: 15px; font-weight: 600; }
.cap-nome small { font: 400 10px var(--mono); letter-spacing: .1em; color: var(--silver); }
.cap-passos { display: flex; align-items: center; gap: 4px; }
.cap-passos button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #3A3F47; background: #0E0F11; font-size: 18px; }
.cap-passos b { min-width: 26px; text-align: center; font: 500 15px var(--mono); }
.cap-logo { display: flex; flex-direction: column; gap: 8px; }
.cap-logo input { height: 50px; border-radius: 999px; border: 1px solid var(--steel); background: var(--carbon); color: var(--bone); padding: 0 18px; font: 600 18px var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.cap-logo small { font-size: 13px; color: var(--silver); }
.cap-total small { font-size: 12px; color: var(--ash); }
.cap-estado { background: #000; color: var(--bone); border-radius: 999px; padding: 12px 16px; font: 500 12px var(--mono); letter-spacing: .1em; white-space: nowrap; }
.cap-total--passa .cap-estado { background: var(--red-deep); }

/* A correcção do dia, escrita pela pessoa, com a área (bussola.js). */
.correcao-bloco { display: flex; flex-direction: column; gap: 10px; }
.correcao-bloco input { height: 50px; border-radius: 999px; border: 1px solid var(--line); background: var(--bone-2); color: #000; padding: 0 18px; font: 400 16px var(--sans); }
.chips--envolve { flex-wrap: wrap; overflow: visible; }
.chip--claro { border-color: var(--line); color: #000; }
.chip--claro[aria-pressed="true"] { background: #000; color: var(--bone); border-color: #000; }
.decisao { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.decisao .chip { height: 30px; padding: 0 12px; font-size: 11px; font-family: var(--mono); letter-spacing: .08em; }
.cap-tem { align-self: flex-start; margin-top: 4px; font: 500 9px var(--mono); letter-spacing: .12em; padding: 4px 8px; border-radius: 999px; border: 1px solid #3A3F47; color: var(--silver); }
.cap-tem[aria-pressed="true"] { background: var(--bone); color: #000; border-color: var(--bone); }

/* Site · App · Brand — o mesmo selector do site, no topo da app. */
.modos { display: flex; align-self: center; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.modos a { padding: 6px 14px; border-radius: 999px; font: 600 13px var(--sans); color: var(--muted); text-decoration: none; }
.modos a[aria-current="page"] { background: var(--red); color: #000; }

/* ESCURO POR OMISSÃO (1 out 2026), como o site. O desenho original da app era
   Bone em Hoje, Bússola e Eu, e preto só em Criar; esse claro continua a existir
   e é escolha da pessoa (Eu › Progresso › Tema), guardado em ltd-tema e lido no
   <head> por /assets/tema.js, para não piscar. Aqui só o que tinha cor fixa. */
:root:not([data-theme="light"]) { color-scheme: dark; }
:root:not([data-theme="light"]) body:not(.criar) { --bg: #000; --fg: var(--bone); --muted: var(--silver); --body: var(--silver); --line: var(--steel); --card: var(--carbon); color-scheme: dark; }
:root:not([data-theme="light"]) body:not(.criar) .marca .corte { stroke: #000; }
:root:not([data-theme="light"]) body:not(.criar) .vermelho-fundo { color: var(--red); }
:root:not([data-theme="light"]) body:not(.criar) .correcao.feita { background: var(--carbon); color: var(--bone); box-shadow: inset 0 0 0 1px var(--steel); }
:root:not([data-theme="light"]) body:not(.criar) .bussola .l { stroke: var(--bone); }
:root:not([data-theme="light"]) body:not(.criar) .bussola .fundo { stroke: var(--graphite); }
:root:not([data-theme="light"]) body:not(.criar) .letra { background: var(--carbon); color: var(--bone); border-color: var(--steel); }
:root:not([data-theme="light"]) body:not(.criar) .letra.sel-0 { background: var(--bone); color: #000; }
:root:not([data-theme="light"]) body:not(.criar) .cor-0 { color: var(--bone); }
:root:not([data-theme="light"]) body:not(.criar) .cor-1 { color: #6B93FF; }
:root:not([data-theme="light"]) body:not(.criar) .cor-2 { color: var(--red); }
:root:not([data-theme="light"]) body:not(.criar) .fase--agora { color: var(--bone); }
:root:not([data-theme="light"]) body:not(.criar) .area b.mais { color: var(--red); }
:root:not([data-theme="light"]) body:not(.criar) .area b.menos { color: #6B93FF; }
:root:not([data-theme="light"]) body:not(.criar) .segmentos { background: var(--graphite); }
:root:not([data-theme="light"]) body:not(.criar) .segmentos button[aria-pressed="true"] { background: var(--bone); color: #000; }
:root:not([data-theme="light"]) body:not(.criar) .nova-nota textarea,
:root:not([data-theme="light"]) body:not(.criar) .correcao-bloco input { background: var(--carbon); color: var(--bone); border-color: var(--steel); }
:root:not([data-theme="light"]) body:not(.criar) .progresso { background: var(--carbon); box-shadow: inset 0 0 0 1px var(--steel); }
:root:not([data-theme="light"]) body:not(.criar) .botao { background: var(--bone); color: #000; }
:root:not([data-theme="light"]) body:not(.criar) .botao--linha { background: transparent; color: var(--fg); }
:root:not([data-theme="light"]) body:not(.criar) .chip--claro { color: var(--bone); border-color: var(--steel); }
:root:not([data-theme="light"]) body:not(.criar) .chip--claro[aria-pressed="true"] { background: var(--bone); color: #000; border-color: var(--bone); }
:root:not([data-theme="light"]) body:not(.criar) .nav { background: #000000F2; border-top-color: var(--steel); }
:root:not([data-theme="light"]) body:not(.criar) .nav button[aria-current="page"] { color: var(--bone); }
