/* Tokens: Design System Antigravity v6 (NewUX Onyx, semente Teal #042428). */
:root {
  color-scheme: dark;
  --frame: #0a292d; --stage: #042428; --card: #102f32; --raised: #123034; --selected: #1c393d; --key: #213d41;
  --fg: #fff; --fg-2: #bbc4c5; --fg-3: #849496;
  --edge: rgba(255,255,255,.08); --line: rgba(255,255,255,.06); --highlight: rgba(255,255,255,.085);
  --primary: #2f71e3; --success: #7aae66; --warning: #e8975f; --link: #6a9fcb;
  --r-md: 12px; --r-lg: 16px; --r-xl: 20px;
  --shadow: 0 20px 44px -12px rgba(0,0,0,.375), 0 3px 10px -2px rgba(0,0,0,.275);
  font: 16px/1.5 "Google Sans Flex", "Google Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--frame); color: var(--fg);
}
* { box-sizing: border-box }
body { margin: 0; background: var(--frame); -webkit-font-smoothing: antialiased }
.shell { max-width: 720px; margin: auto; padding: max(12px, env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom)) }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; margin-bottom: 8px }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -.01em }
.brand b { font-weight: 600; color: var(--fg-2) }
.mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--key); box-shadow: inset 0 1px 0 var(--highlight); font-weight: 700; font-size: 15px }
.env { font-size: 12px; color: var(--warning); border: 1px solid rgba(232,151,95,.35); border-radius: 999px; padding: 3px 10px }
.stage { background: var(--stage); border: .5px solid var(--edge); border-radius: var(--r-md); padding: 12px; display: grid; gap: 12px }
h1, h2, h3, p { margin: 0 }
h1 { font-size: clamp(28px, 8vw, 36px); line-height: 1.1; font-weight: 600; letter-spacing: -.035em }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em }
h3 { font-size: 13px; font-weight: 500; color: var(--fg-3); margin: 16px 4px 8px }
.note, .hint, .stamp { color: var(--fg-2) }
.hint, .stamp { font-size: 14px }

/* Precisa de você: the one thing this page exists for. */
.need, .card { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-xl); padding: 20px; box-shadow: var(--shadow), inset 0 1px 0 var(--highlight); display: grid; gap: 14px }
.need.is-live { background: linear-gradient(160deg, #143a3e, var(--card) 60%) }
.need-head { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.count { min-width: 52px; height: 52px; padding: 0 14px; border-radius: 999px; display: grid; place-items: center; font-size: 26px; font-weight: 650; background: var(--primary); font-variant-numeric: tabular-nums }
.is-off .count { background: var(--key); color: var(--fg-2) }
.origin { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500 }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(122,174,102,.18) }
.is-off .origin { color: var(--warning) }
.is-off .dot { background: var(--warning); box-shadow: 0 0 0 4px rgba(232,151,95,.18) }
.items { list-style: none; margin: 0; padding: 0; border-radius: var(--r-lg); background: var(--raised); overflow: hidden }
.items li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; overflow-wrap: anywhere }
.items li + li { border-top: 1px solid var(--line) }
.chip { flex: none; font-size: 12px; color: var(--fg-2); background: var(--key); border-radius: 999px; padding: 3px 10px }
.blocked { font-size: 14px; color: var(--fg); background: rgba(232,151,95,.12); border: 1px solid rgba(232,151,95,.3); border-radius: var(--r-md); padding: 12px 14px }

a, button { font: inherit; color: inherit }
.primary { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .12s, filter .12s }
.primary:active { transform: scale(.98); filter: brightness(1.1) }
.ghost { min-height: 44px; padding: 0 16px; border: 1px solid var(--edge); border-radius: 999px; background: transparent; color: var(--fg-2); cursor: pointer }
button:disabled { opacity: .6; cursor: wait }

/* Projetos */
.projects { padding: 8px 4px 4px }
.projects > .hint { margin: 4px 0 0 }
.list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-lg); overflow: hidden }
.list li + li { border-top: 1px solid var(--line) }
.list a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; text-decoration: none }
.list a:active { background: var(--selected) }
.avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--key); font-weight: 600; color: var(--fg-2) }
.label { flex: 1; min-width: 0; display: grid }
.label strong { font-weight: 500 }
.label small { color: var(--fg-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none }
.list .icon { color: var(--fg-3); width: 18px; height: 18px }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 4px }
.foot a { color: var(--link); text-underline-offset: 4px; padding: 10px 0 }

/* Tab bar: the only floating layer, so the only glass. */
.tabs { position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 4px; padding: 6px;
  border-radius: 999px; background: rgba(14,45,49,.94); border: 1px solid var(--highlight); box-shadow: var(--shadow) }
@supports (backdrop-filter: blur(1px)) { .tabs { background: rgba(14,45,49,.72); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4) } }
.tabs a { display: grid; justify-items: center; gap: 2px; min-width: 84px; min-height: 52px; padding: 6px 12px; border-radius: 999px; font-size: 12px; color: var(--fg-2); text-decoration: none }
.tabs a[aria-current="page"] { background: var(--selected); color: var(--fg) }

/* Entrada */
label { display: grid; gap: 6px; font-size: 14px; color: var(--fg-2) }
form { display: grid; gap: 14px }
input { width: 100%; min-height: 48px; border-radius: var(--r-md); border: 1px solid var(--edge); background: var(--stage); padding: 10px 14px; color: var(--fg); font: inherit; font-size: 16px }
input:focus { border-color: var(--primary); outline: none }

:focus-visible { outline: 2px solid var(--link); outline-offset: 3px }
[hidden], #status:empty { display: none }
#status { color: var(--warning); font-size: 14px }
@media (min-width: 760px) { .shell { padding-top: 24px } .stage { padding: 16px } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important } }
