/* HackLive - "Night Blue" look (2026-10-15): deep navy that fades to blue, one bright blue for actions,
   rounded cards and buttons, pill tags, geometric sans. Dark by default, light optional
   (html[data-theme], set by /tema.js before first paint). Font self-hosted in /fonts: Outfit (SIL OFL).
   The video stage (.palco) always uses the dark tokens: tiles sit on black.
   Previous "Press Sheet" stylesheet: ~/deploy-backups/golive-web-public-*-pre-hgstyle.tgz */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/outfit-latin-wght-normal.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: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/outfit-latin-ext-wght-normal.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; }

/* ============ Tokens ============ */
:root, html[data-theme="dark"] {
  --papel: #08081c;       /* page */
  --papel-2: #191d24;     /* cards, inputs */
  --papel-3: #232834;     /* hover */
  --tinta: #fcfcfc;
  --tinta-2: #c4c9d4;
  --tinta-3: #8b93a3;
  --fio: #2c3240;
  --fio-forte: #3a4152;
  --acento: #2b8cff;      /* brighter blue reads better on navy */
  --acento-forte: #0070d1;
  --acento-tinta: #ffffff;
  --brilho: linear-gradient(180deg, #08081c 0%, #08081c 30%, #0a2a5a 72%, #08081c 100%);
  --sombra: 0 10px 30px rgb(0 0 0 / .35);
  color-scheme: dark;
}
html[data-theme="light"] {
  --papel: #fcfcfc;
  --papel-2: #ffffff;
  --papel-3: #f1f4f9;
  --tinta: #1d1f24;
  --tinta-2: #363636;
  --tinta-3: #6b7280;
  --fio: #ebebeb;
  --fio-forte: #d5d9e0;
  --acento: #0a7fe6;
  --acento-forte: #0070d1;
  --acento-tinta: #ffffff;
  --brilho: linear-gradient(180deg, #eef4fc 0%, #fcfcfc 70%);
  --sombra: 0 10px 30px rgb(16 40 80 / .08);
  color-scheme: light;
}
:root {
  --sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --serif: var(--sans);
  --mono: var(--sans);
  --larg: 1220px;
  --mg: clamp(16px, 3.2vw, 32px);
  --r: 10px;
  --r-card: 20px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: var(--papel); color: var(--tinta);
  font: 400 1.0625rem/1.55 var(--sans);
  font-kerning: normal; -webkit-font-smoothing: antialiased;
}
body:not(.sala) { background: var(--brilho) no-repeat, var(--papel); background-size: 100% 900px, auto; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--sans); font-weight: 500; letter-spacing: -.02em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--acento); }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
code {
  font: 500 .88em/1 ui-monospace, Consolas, monospace;
  background: var(--papel-3); border-radius: 6px; padding: 2px 6px;
}
.muted { color: var(--tinta-3); font-size: .9rem; }

/* "on air" dot */
.pulso { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; flex: none; box-shadow: 0 0 0 4px rgb(61 220 132 / .18); animation: pulso 1.6s ease-in-out infinite; }
@keyframes pulso { 50% { opacity: .35; } }

/* ============ Top bar (home) ============ */
.cabecalho { max-width: var(--larg); margin: 0 auto; padding: 0 var(--mg); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faixa-edicao {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font: 400 .9rem/1 var(--sans); color: var(--tinta-2);
  padding: 18px 0;
}
.edicao { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: none; }
.faixa-dir, .topo-dir { display: flex; align-items: center; gap: 8px; flex: none; }
.faixa-dir a, button.tema {
  font: 500 .9rem/1 var(--sans); letter-spacing: 0; text-transform: none;
  text-decoration: none; color: var(--tinta); background: transparent; border: 1px solid var(--fio-forte);
  padding: 10px 16px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center;
}
.faixa-dir a:hover, button.tema:hover { background: var(--papel-3); border-color: var(--fio-forte); color: var(--tinta); }

/* the brand sits in the bar, left; the links stay right */
.masthead { order: -1; padding: 18px 0; }
.marca {
  display: inline-flex; align-items: center; text-decoration: none; color: var(--tinta);
  font: 700 1.6rem/1 var(--sans); letter-spacing: -.03em;
}
/* brand chip: blue tile with a white "play" mark */
.marca::before {
  content: ""; width: 34px; height: 34px; margin-right: 10px; border-radius: 10px; flex: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 3.5v9l7.5-4.5z' fill='%23fff'/%3E%3C/svg%3E") center / 18px no-repeat,
    linear-gradient(135deg, #2b8cff, #0070d1 55%, #3b2fd9);
  box-shadow: 0 6px 16px rgb(0 112 209 / .35);
}
.marca i { font-style: normal; font-weight: 400; color: var(--acento); }
.marca:hover { color: var(--tinta); }
.reg { display: none; }

/* ============ Buttons ============ */
button, .botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border: 1px solid var(--acento-forte); border-radius: var(--r);
  background: var(--acento-forte); color: var(--acento-tinta);
  font: 700 .95rem/1 var(--sans); letter-spacing: 0; text-transform: none;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
button:hover, .botao:hover { background: var(--acento); border-color: var(--acento); color: #fff; box-shadow: 0 6px 18px rgb(0 112 209 / .3); }
button.secondary { background: #fcfcfc; border-color: #fcfcfc; color: #0070d1; }
button.secondary:hover { background: #fff; border-color: #fff; color: #005fb3; }
html[data-theme="light"] button.secondary { background: #fff; border-color: #0070d1; }
html[data-theme="light"] button.secondary:hover { background: #eef4fc; }
button.danger { background: transparent; border-color: #e5484d; color: #ff6b70; }
button.danger:hover { background: #e5484d; border-color: #e5484d; color: #fff; box-shadow: none; }
button.ativo, button.ativo:hover { background: #fcfcfc; border-color: #fcfcfc; color: #0070d1; }
html[data-theme="light"] button.ativo, html[data-theme="light"] button.ativo:hover { background: #1d1f24; border-color: #1d1f24; color: #fff; }
button.pequeno { padding: 9px 14px; font-size: .85rem; }
button.desligado { opacity: .55; text-decoration: line-through; }
button:disabled { opacity: .5; cursor: default; box-shadow: none; }

/* ============ Forms ============ */
label {
  display: block; margin-bottom: 8px;
  font: 500 .9rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--tinta-2);
}
input[type=text], select {
  width: 100%; border-radius: var(--r);
  font: 400 1rem/1.3 var(--sans); color: var(--tinta);
  background: var(--papel); border: 1px solid var(--fio-forte);
  padding: 13px 14px;
}
input[type=text]::placeholder { color: var(--tinta-3); }
input[type=text]:focus, select:focus { outline: 3px solid rgb(43 140 255 / .25); outline-offset: 0; border-color: var(--acento); }
input[type=checkbox] { accent-color: var(--acento); width: 17px; height: 17px; margin: 2px 0 0; flex: none; }
.row { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.row-junto { margin: 0; }
.opcao {
  display: flex; align-items: flex-start; gap: 9px; margin: 0; cursor: pointer;
  font: 400 .95rem/1.4 var(--sans); color: var(--tinta-2);
}
.opcao-espaco { margin: 16px 0 20px; }

/* range inputs: rounded track, round thumb */
input[type=range] { -webkit-appearance: none; appearance: none; background: none; height: 18px; margin: 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--fio-forte); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; background: var(--acento); border: 2px solid #fff; border-radius: 50%; }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--fio-forte); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--acento); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; background: var(--acento); border: 2px solid #fff; border-radius: 50%; }

/* cards */
.card { margin: 0; }
.card h2 { margin: 0 0 18px; font: 500 clamp(1.5rem, 2.4vw, 1.9rem)/1.1 var(--sans); }

/* ============ Home ============ */
main { display: block; max-width: var(--larg); margin: 0 auto; padding: 0 var(--mg) 40px; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); align-items: center;
  padding: clamp(36px, 6vw, 80px) 0 clamp(36px, 5vw, 64px);
}
.passos {
  list-style: none; margin: 0; padding: 10px; counter-reset: passo;
  background: var(--papel-2); border: 1px solid var(--fio); border-radius: 30px; box-shadow: var(--sombra);
}
.passos li {
  counter-increment: passo; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px;
  padding: 14px; border-radius: 20px;
}
.passos li + li { margin-top: 2px; }
.passos li:hover { background: var(--papel-3); }
.passos li::before {
  content: counter(passo); grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font: 700 1.1rem/1 var(--sans);
  background: rgb(43 140 255 / .14); color: var(--acento);
}
.passos b { font: 600 1.1rem/1.25 var(--sans); }
.passos span { margin-top: 3px; font-size: .95rem; line-height: 1.45; color: var(--tinta-2); }
.passos em { font-style: normal; font-weight: 600; color: var(--tinta); }
.hero-rotulo {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 8px 14px;
  font: 500 .9rem/1 var(--sans); color: var(--tinta);
  background: rgb(43 140 255 / .12); border: 1px solid rgb(43 140 255 / .35); border-radius: 999px;
}
.hero h1 {
  margin: 0; max-width: 16ch; text-wrap: balance;
  font: 500 clamp(2.6rem, 6vw, 4.2rem)/1.04 var(--sans); letter-spacing: -.035em;
}
.hero h1 .h1-link {
  color: var(--acento); text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em;
}
.hero h1 .h1-link:hover { color: var(--tinta); }
.hero p:not(.hero-rotulo) {
  margin: 20px 0 0; max-width: 46ch;
  font: 400 clamp(1.1rem, 1.6vw, 1.3rem)/1.5 var(--sans); color: var(--tinta-2);
}
.home-grade {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 20px;
  margin-top: 8px;
}
.home-grade > .card, .home-col > .card {
  padding: clamp(22px, 3vw, 32px); background: var(--papel-2); border: 1px solid var(--fio);
  border-radius: 30px; box-shadow: var(--sombra);
}
.home-grade > .card #create { width: 100%; }
.home-col { display: flex; flex-direction: column; gap: 20px; }
.room-list { display: flex; flex-direction: column; gap: 8px; }
.room-list > .muted { padding: 4px 0; font-size: .95rem; }
.room-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 10px 10px 16px; border: 1px solid var(--fio); border-radius: 16px; background: var(--papel);
}
.room-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 1.05rem/1.25 var(--sans); }
.room-item a { flex: none; text-decoration: none; }

.rodape-live {
  width: min(calc(100% - 2 * var(--mg)), calc(var(--larg) - 2 * var(--mg)));
  margin: clamp(48px, 7vw, 88px) auto 0; padding: 22px 0 32px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--fio);
}
.rodape-live .app-pilula { position: static; }
.rodape-live p { margin: 0; font: 400 .95rem/1.5 var(--sans); color: var(--tinta-3); }
.rodape-live span { font: 700 1.05rem/1 var(--sans); color: var(--tinta); letter-spacing: -.02em; }
.rodape-live span i { font-style: normal; font-weight: 400; color: var(--acento); }
.rodape-live p a { color: var(--tinta); text-decoration-color: var(--acento); }

/* Windows app: pill, bottom right */
.app-pilula {
  position: fixed; right: 14px; bottom: 14px; z-index: 40;
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px;
  font: 600 .88rem/1 var(--sans); color: #0070d1; text-decoration: none;
  background: #fcfcfc; border: 1px solid #fcfcfc; border-radius: 999px; box-shadow: var(--sombra);
}
.app-pilula:hover { color: #005fb3; background: #fff; }
html[data-theme="light"] .app-pilula { border-color: #0070d1; }

/* ============ Room: compact one-row header ============ */
body.sala { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.topo { flex: none; position: relative; margin: 0; padding: 0 16px; background: var(--papel); border-bottom: 1px solid var(--fio); }
.topo-interno { display: flex; align-items: center; gap: 8px 16px; padding: 10px 0; min-width: 0; }
.topo .marca { flex: none; font-size: 1.35rem; }
.topo .marca::before { width: 28px; height: 28px; border-radius: 8px; }
.sala-nome {
  display: inline-flex; align-items: center; gap: 9px; min-width: 0; padding: 7px 14px;
  font: 500 .95rem/1.2 var(--sans); color: var(--tinta);
  background: var(--papel-2); border: 1px solid var(--fio); border-radius: 999px;
}
.sala-nome span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#copyLinkBtn { margin-right: auto; }
.controles { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.controles button { padding: 10px 14px; font-size: .88rem; }
.topo-dir { padding-left: 6px; }
.topo-link { padding: 8px 10px; font: 500 .9rem/1 var(--sans); text-decoration: none; color: var(--tinta-2); border-radius: 999px; }
.topo-link:hover { color: var(--tinta); background: var(--papel-3); }

body.sala main { flex: 1; min-height: 0; max-width: none; margin: 0; padding: 0; display: flex; }

/* join step */
.entrar {
  width: min(460px, calc(100vw - 32px)); margin: 9vh auto auto; padding: 32px;
  background: var(--papel-2); border: 1px solid var(--fio); border-radius: 30px; box-shadow: var(--sombra);
}
.entrar .cartola {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 7px 12px;
  font: 500 .85rem/1 var(--sans); color: var(--acento);
  background: rgb(43 140 255 / .12); border-radius: 999px;
}
.entrar h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
.row-entrar { margin: 18px 0 0; }
.entrar .nota { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--fio); line-height: 1.5; }

/* stage + sidebar */
.sala-layout { flex: 1; min-width: 0; display: flex; }
.lateral {
  width: 248px; flex: none; display: flex; flex-direction: column; gap: 12px;
  padding: 16px; border-right: 1px solid var(--fio); overflow-y: auto; background: var(--papel);
}
.lateral-cabeca { display: flex; align-items: center; justify-content: space-between; }
.lateral-cabeca h2 { margin: 0; font: 600 1rem/1 var(--sans); }
.contagem { font: 600 .8rem/1 var(--sans); color: #fff; background: var(--acento-forte); padding: 4px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.participant-list { display: flex; flex-direction: column; gap: 4px; }
.participant-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-radius: 12px; border: 1px solid transparent;
  font-size: .95rem;
}
.participant-item:hover { background: var(--papel-2); }
.participant-item.compartilhando { cursor: pointer; }
.participant-item.compartilhando .quem { color: var(--tinta); }
.participant-item.compartilhando:hover .quem { color: var(--acento); }
.participant-item.focado { background: rgb(43 140 255 / .12); border-color: rgb(43 140 255 / .4); }
.participant-item .quem { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.participant-item .quem .muted { font: 500 .78rem/1 var(--sans); }
.participant-item .icones { flex: none; font-size: .8rem; letter-spacing: 2px; }
.lateral-rodape { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--fio); }
.lateral-rodape .opcao { font-size: .88rem; }
.dica { margin: 0; font-size: .85rem; line-height: 1.45; color: var(--tinta-2); }
.dica b { color: var(--tinta); }

/* The stage is always dark (video sits on black), whatever the page theme. */
.palco {
  --papel: #08081c; --papel-2: #191d24; --papel-3: #232834; --tinta: #fcfcfc; --tinta-2: #c4c9d4; --tinta-3: #8b93a3;
  --fio: #2c3240; --fio-forte: #3a4152; --acento: #2b8cff; --acento-forte: #0070d1; --acento-tinta: #fff;
  color-scheme: dark;
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px;
  background: #050512; color: var(--tinta);
}
.status {
  margin: 0; padding: 10px 14px; font-size: .92rem; line-height: 1.45;
  background: var(--papel-2); border: 1px solid var(--fio); border-radius: 14px;
}
.palco > #enableAudioBtn { align-self: flex-start; }

/* view bar: layout, size, own preview, wide */
.vista { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; flex: none; padding-bottom: 10px; }
.segmented.compacto { display: inline-flex; gap: 2px; margin: 0; padding: 3px; background: var(--papel-2); border: 1px solid var(--fio); border-radius: 12px; }
.segmented.compacto button {
  flex: none; padding: 7px 12px; font-size: .82rem; font-weight: 500; margin: 0;
  background: transparent; border: 0; border-radius: 9px; color: var(--tinta-2); box-shadow: none;
}
.segmented.compacto button:hover { background: var(--papel-3); color: var(--tinta); box-shadow: none; }
.segmented.compacto button.active { color: #fff; background: var(--acento-forte); }
.tamanho { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--tinta-2); font-size: .85rem; }
.tamanho input { width: 130px; }
.tamanho span { min-width: 4ch; color: var(--tinta); font-variant-numeric: tabular-nums; }
.vista button.pequeno { padding: 8px 12px; }
.vista button.secondary { background: var(--papel-2); border-color: var(--fio); color: var(--tinta-2); }
.vista button.secondary:hover { border-color: var(--fio-forte); background: var(--papel-3); color: var(--tinta); box-shadow: none; }
.vista button.ativo, .vista button.ativo:hover { background: #fcfcfc; border-color: #fcfcfc; color: #0070d1; }
body.largo .lateral { display: none; }

/* screens: JS places each tile in its own 16:9 box */
.telas { flex: 1; min-height: 0; position: relative; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; }
.telas.sem-eu .tile.local { display: none; }
.tile {
  position: absolute; overflow: hidden; background: #000; border: 1px solid var(--fio); border-radius: 16px;
  cursor: zoom-in; transition: left .2s, top .2s, width .2s, height .2s;
}
.telas.foco .tile.principal { cursor: zoom-out; border-color: var(--acento); box-shadow: 0 0 0 1px var(--acento); }
.tile video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.tile .name, .tile .vol-control, .tile .fullscreen-btn { position: absolute; color: var(--tinta); background: rgb(8 8 28 / .78); backdrop-filter: blur(6px); }
.tile .name {
  bottom: 10px; left: 10px; padding: 6px 12px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 500 .85rem/1.2 var(--sans); border-radius: 999px;
}
.tile .fullscreen-btn {
  top: 10px; right: 10px; padding: 6px 10px; font: 400 .95rem/1 var(--sans);
  border: 0; border-radius: 10px; opacity: 0; transition: opacity .15s;
}
.tile .fullscreen-btn:hover { background: var(--acento-forte); color: #fff; box-shadow: none; }
.tile .vol-control { bottom: 10px; right: 10px; display: flex; align-items: center; gap: 8px; padding: 5px 12px; font-size: .82rem; border-radius: 999px; opacity: 0; transition: opacity .15s; }
.tile:hover .fullscreen-btn, .tile:hover .vol-control, .tile:focus-within .fullscreen-btn, .tile:focus-within .vol-control { opacity: 1; }
.tile .vol-slider { width: 84px; }
.vazio {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 24px; text-align: center; color: var(--tinta-2); pointer-events: none;
  border: 1px dashed var(--fio-forte); border-radius: 24px;
  background: radial-gradient(ellipse at 50% 120%, rgb(0 112 209 / .25), transparent 60%);
}
.vazio > b { font: 500 clamp(1.7rem, 3.2vw, 2.5rem)/1.1 var(--sans); letter-spacing: -.03em; color: var(--tinta); }
.vazio > span { max-width: 46ch; font-size: 1rem; line-height: 1.5; }
.vazio span b { color: var(--tinta); }

/* ============ Modal ============ */
.modal-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgb(5 5 18 / .7); backdrop-filter: blur(4px); }
.modal { width: 460px; max-width: 100%; margin: 0; padding: 26px 28px 24px; background: var(--papel-2); border: 1px solid var(--fio); border-radius: 30px; box-shadow: var(--sombra); }
.modal h2 { margin: 0 0 16px; font-size: 1.7rem; }
.segmented { display: flex; gap: 8px; margin-top: 4px; }
.segmented button {
  flex: 1; flex-direction: column; gap: 4px; padding: 12px 8px; margin: 0;
  background: var(--papel); border: 1px solid var(--fio-forte); border-radius: 14px; color: var(--tinta);
  font-size: .9rem; line-height: 1.3; white-space: normal;
}
.segmented button:hover { background: var(--papel-3); color: var(--tinta); border-color: var(--fio-forte); box-shadow: none; }
.segmented button .muted { font: 400 .8rem/1.2 var(--sans); color: var(--tinta-3); }
.segmented button.active, .segmented button.active:hover { border-color: var(--acento); background: rgb(43 140 255 / .12); box-shadow: 0 0 0 1px var(--acento); }
.rotulo-espaco { margin-top: 16px; }
.row-modal { margin: 22px 0 0; justify-content: flex-end; }
.nota-modal { margin: 10px 0 0; font-size: .85rem; }

/* ============ Mobile ============ */
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .masthead { padding: 14px 0; }
  .faixa-edicao { padding: 14px 0; }
  .faixa-dir a { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .home-grade { grid-template-columns: 1fr; }

  body.sala { height: auto; min-height: 100vh; overflow: auto; }
  .topo-interno { flex-wrap: wrap; }
  .sala-nome { flex: 1; }
  #copyLinkBtn { margin-right: 0; }
  .topo-dir { margin-left: auto; }
  .controles { order: 10; width: 100%; }
  .sala-layout { flex-direction: column; }
  .lateral { width: auto; border-right: 0; border-bottom: 1px solid var(--fio); }
  .lateral-rodape { margin-top: 0; }
  .telas { min-height: 60vh; }
}
@media (max-width: 560px) {
  .topo-link { display: none; }
  .topo-dir { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
