/* Mesma linguagem visual do sistema de almoço: fonte do sistema, listas agrupadas,
   modo escuro automático e cores das marcas via data-brand. */
:root {
  --bg: #f5f5f7; --card: #fff; --card-2: #fbfbfd;
  --ink: #1d1d1f; --ink-2: #6e6e73; --ink-3: #86868b;
  --sep: rgba(60, 60, 67, .13); --fill: rgba(118, 118, 128, .12); --fill-2: rgba(118, 118, 128, .2);
  /* cor de ação: neutra (preto) até a pessoa escolher a empresa */
  --accent: #1d1d1f; --accent-press: #000; --accent-ink: #fff; --accent-text: #1d1d1f; --accent-soft: rgba(0, 0, 0, .06);
  --em: linear-gradient(90deg, #ff5500, #f5a300);
  --green: #34c759; --orange: #ff9500; --red: #ff3b30;
  --bar: rgba(245, 245, 247, .78);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 24px rgba(0, 0, 0, .04);
  --oggi: #ff5500; --oggi-deep: #c43d00; --ontrade: #ffdf0e;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Segoe UI Variable Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --r: 14px; --r-lg: 22px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --card: #1c1c1e; --card-2: #2c2c2e;
    --ink: #f5f5f7; --ink-2: #a1a1a6; --ink-3: #8e8e93;
    --sep: rgba(84, 84, 88, .55); --fill: rgba(118, 118, 128, .24); --fill-2: rgba(118, 118, 128, .36);
    --accent: #f5f5f7; --accent-press: #fff; --accent-ink: #000; --accent-text: #f5f5f7; --accent-soft: rgba(255, 255, 255, .1);
    --em: linear-gradient(90deg, #ff8a3d, #ffdf0e);
    --green: #30d158; --orange: #ff9f0a; --red: #ff453a;
    --bar: rgba(0, 0, 0, .72); --shadow: none;
    --oggi-deep: #ff8a4c;
  }
}
/* Oggi Live: laranja e preto · Ontrade: amarelo e preto */
:root[data-brand=oggi] { --accent: #ff5500; --accent-press: #e84d00; --accent-ink: #111; --accent-text: #c43d00; --accent-soft: rgba(255, 85, 0, .1); --em: linear-gradient(90deg, #ff6a1a, #ff4500); }
:root[data-brand=ontrade] { --accent: #ffdf0e; --accent-press: #f2d000; --accent-ink: #111; --accent-text: #1d1d1f; --accent-soft: rgba(255, 223, 14, .2); }
@media (prefers-color-scheme: dark) {
  :root[data-brand=oggi] { --accent: #ff5f0f; --accent-press: #ff7a33; --accent-text: #ff7a33; --em: linear-gradient(90deg, #ff8a4d, #ff5500); }
  :root[data-brand=ontrade] { --accent-text: #ffdf0e; --em: linear-gradient(90deg, #ffe45c, #ffc400); }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.47; letter-spacing: -.022em; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { -webkit-user-select: none; user-select: none; }
.hidden { display: none !important; }
.muted { color: var(--ink-3); }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
.wrap.wide { max-width: 1180px; }
:focus { outline: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.row input:focus-visible { outline: none; }

/* barra de navegação translúcida */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: .5px solid var(--sep); }
.nav .in { max-width: 640px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav.wide .in { max-width: 1180px; }
.nav-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav-logo { height: 36px; width: auto; max-width: 120px; object-fit: contain; display: block; }
.nav-title { font-size: 17px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-title::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; transition: background .3s; }
.nav-logo:not(.hidden) + .nav-title { border-left: .5px solid var(--sep); padding-left: 10px; }
.nav-logo:not(.hidden) + .nav-title::before { display: none; }
.pill-chip { font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--fill); border-radius: 99px; padding: 4px 11px; white-space: nowrap; letter-spacing: -.01em; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.me-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 4px; border: 0; border-radius: 99px; background: var(--fill); cursor: pointer; font-size: 15px; font-weight: 500; }
.me-chip:active { background: var(--fill-2); }

/* título */
.hero { padding: 36px 0 4px; }
.kicker { font-size: 15px; font-weight: 600; color: var(--ink-2); margin: 0 0 8px; letter-spacing: -.01em; }
h1 { font-size: 34px; line-height: 1.12; font-weight: 700; letter-spacing: -.035em; margin: 0; }
h1 em { font-style: normal; background: var(--em); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Ontrade no claro: amarelo não se lê como texto, vira marca-texto atrás do preto */
@media (prefers-color-scheme: light) {
  :root[data-brand=ontrade] h1 em { background: linear-gradient(transparent 58%, #ffdf0e 58%, #ffdf0e 92%, transparent 92%); -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); padding: 0 .06em; margin: 0 -.06em; }
}
h2 { font-size: 22px; font-weight: 700; letter-spacing: -.03em; margin: 0; }
.lede { font-size: 17px; color: var(--ink-2); margin: 12px 0 0; }
.notice { margin: 14px 0 0; font-size: 15px; font-weight: 600; color: var(--accent-text); letter-spacing: -.01em; }

/* listas agrupadas */
.section { margin-top: 34px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 8px; }
.section-head h2 { font-size: 22px; }
.group { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.group.flat { box-shadow: none; background: var(--bg); }
@media (prefers-color-scheme: dark) { .group.flat { background: var(--card-2); } }
.foot-note { font-size: 13px; color: var(--ink-3); padding: 8px 16px 0; margin: 0; letter-spacing: -.005em; }
.link { background: none; border: 0; padding: 0 2px; min-height: 44px; display: inline-flex; align-items: center; color: var(--accent-text); cursor: pointer; font-size: 15px; border-radius: 8px; }
.link:active { opacity: .5; }
.section-head .link { margin: -11px -2px; }
.empty { text-align: center; color: var(--ink-3); padding: 36px 20px; margin: 0; }

/* controle segmentado */
.segmented { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--fill); border-radius: 10px; padding: 2px; margin-bottom: 14px; }
.segmented::before { content: ''; position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); background: var(--oggi); border-radius: 8px; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); transition: transform .3s cubic-bezier(.3,.7,.4,1), opacity .2s, background .3s; opacity: 0; }
.segmented[data-sel="0"]::before { opacity: 1; }
.segmented[data-sel="1"]::before { opacity: 1; transform: translateX(100%); background: var(--ontrade); }
.segmented button { position: relative; z-index: 1; border: 0; background: none; min-height: 40px; padding: 0 8px; font-size: 15px; font-weight: 500; cursor: pointer; border-radius: 8px; color: var(--ink); }
.segmented button[aria-pressed=true] { color: #111; font-weight: 600; }

/* campos estilo Ajustes */
.row { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 16px; position: relative; }
.row + .row::before { content: ''; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--sep); }
.row label { width: 86px; flex: none; font-size: 17px; }
.row input, .row select { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 17px; padding: 0; min-height: 50px; color: var(--ink); -webkit-appearance: none; appearance: none; border-radius: 0; }
.row input::placeholder { color: var(--ink-3); opacity: .7; }
.row input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--card) inset; -webkit-text-fill-color: var(--ink); caret-color: var(--ink); }
.row:focus-within label { color: var(--accent-text); }
.row select option { background: var(--card); color: var(--ink); }

/* cartão "agendando como" */
.me { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(180deg, #a1a1aa, #71717a); color: #fff; display: grid; place-items: center; font-size: 19px; font-weight: 600; flex: none; letter-spacing: 0; }
.avatar.oggi, .avatar.ontrade { background: #111; }
.avatar.oggi { color: var(--oggi); }
.avatar.ontrade { color: var(--ontrade); }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; background: #111; color: #fff; }
.avatar.sm.super { background: linear-gradient(135deg, #ff5500, #ffdf0e); color: #111; }
@media (prefers-color-scheme: dark) { .avatar.oggi, .avatar.ontrade { background: #2c2c2e; } .avatar.sm { background: #3a3a3c; } }
.me .who { min-width: 0; flex: 1; }
.me .who b { display: block; font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .who span { display: block; color: var(--ink-2); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* dias e horários livres */
.cal { width: 46px; height: 50px; border-radius: 11px; background: var(--card-2); box-shadow: inset 0 0 0 .5px var(--sep); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.cal small { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--red); line-height: 1; }
.cal b { font-size: 23px; font-weight: 500; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.slot-day { padding: 14px 16px 16px; position: relative; }
.slot-day + .slot-day::before { content: ''; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--sep); }
.slot-day-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.dtxt { flex: 1; min-width: 0; }
.dtxt b { display: block; font-weight: 500; font-size: 17px; }
.dtxt small { display: block; color: var(--ink-2); font-size: 14px; letter-spacing: -.01em; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.time { height: 46px; border: 0; border-radius: 11px; background: var(--fill); font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; line-height: 1.1; transition: background .15s, color .15s, transform .1s; touch-action: manipulation; }
.time:active { transform: scale(.96); }
.time[aria-pressed=true] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.time.gone { background: none; box-shadow: inset 0 0 0 1px var(--sep); color: var(--ink-3); cursor: default; font-size: 14px; }
.time.gone span { text-decoration: line-through; }
.time.gone small { display: block; font-size: 11px; letter-spacing: 0; }
.time.gone:active { transform: none; }

/* barra de ação fixa */
.dock-space { height: 140px; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid var(--sep); padding: 12px max(20px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); transition: transform .32s cubic-bezier(.3,.7,.4,1); }
.dock .in { max-width: 600px; margin: 0 auto; }
.dock.idle, body.typing .dock { transform: translateY(110%); }
.cta { width: 100%; height: 52px; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-size: 17px; font-weight: 600; cursor: pointer; transition: background .3s, color .3s, transform .1s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.cta:active { background: var(--accent-press); transform: scale(.985); }
.cta:disabled { background: var(--fill-2); color: var(--ink-3); cursor: default; transform: none; }
.error { color: var(--red); font-size: 14px; text-align: center; margin: 0 0 10px; font-weight: 500; }
.stack .error, .edit-dlg .error { margin: 0; }
.foot { text-align: center; color: var(--ink-3); font-size: 13px; padding: 48px 0 0; }
.foot b { color: var(--ink-2); font-weight: 600; }
.foot .heart { color: var(--red); }

/* confirmação: cartão estilo Wallet */
.done { padding: 40px 0; }
.badge { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin-bottom: 20px; box-shadow: 0 8px 24px color-mix(in srgb, var(--green) 35%, transparent); }
.pass { margin-top: 28px; border-radius: var(--r-lg); overflow: hidden; background: var(--card); box-shadow: 0 2px 6px rgba(0,0,0,.05), 0 18px 50px rgba(0,0,0,.08); }
.pass-top { position: relative; padding: 22px 22px 20px; color: #fff; background: radial-gradient(90% 120% at 0% 100%, rgba(255, 85, 0, .38), transparent 70%), #111; border-bottom: 5px solid #ff5500; }
.pass-top.ontrade { background: radial-gradient(90% 120% at 0% 100%, rgba(255, 223, 14, .28), transparent 70%), #111; border-bottom-color: #ffdf0e; }
.pass-top .lbl { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.pass-top .val { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; padding-right: 96px; }
.pass-logo { position: absolute; top: 18px; right: 20px; height: 40px; width: auto; }
.pass-logo:not([src]) { display: none; }
.pass ul { list-style: none; margin: 0; padding: 4px 0; }
.pass li { display: flex; align-items: center; gap: 14px; padding: 14px 22px; position: relative; }
.pass li + li::before { content: ''; position: absolute; top: 0; left: 22px; right: 0; border-top: .5px solid var(--sep); }
.pass li .cal { width: 40px; height: 44px; }
.pass li .cal b { font-size: 19px; }
.pass li .t { flex: 1; min-width: 0; }
.pass li .t b { display: block; font-weight: 600; font-size: 19px; font-variant-numeric: tabular-nums; }
.pass li .t small { display: block; color: var(--ink-2); font-size: 14px; }
.btn-secondary { display: block; width: 100%; margin-top: 20px; height: 50px; border: 0; border-radius: 14px; background: var(--fill); color: var(--accent-text); font-size: 17px; font-weight: 500; cursor: pointer; }
.btn-secondary:active { background: var(--fill-2); }

/* botões e diálogos */
.btn { height: 36px; padding: 0 16px; border-radius: 99px; border: 0; background: var(--fill); color: var(--accent-text); font-weight: 500; cursor: pointer; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.btn:active { background: var(--fill-2); }
.btn.solid { background: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--red); }
.btn:disabled { opacity: .5; cursor: default; }
.edit-dlg { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; border: 0; border-radius: var(--r-lg); padding: 22px; background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.edit-dlg::backdrop { background: rgba(0,0,0,.45); }
.edit-dlg h2 { margin-bottom: 14px; }
.edit-dlg p.lede { margin: 0; font-size: 16px; }
.ed-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.edit-dlg .error { margin-top: 12px; }

@media (min-width: 740px) {
  .hero { padding-top: 64px; }
  h1 { font-size: 48px; letter-spacing: -.04em; }
  .section { margin-top: 44px; }
}
@media (max-width: 360px) {
  .wrap, .nav .in, .dock { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 30px; }
  .row label { width: 78px; font-size: 16px; }
  .row input { font-size: 16px; }
  .pill-chip { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration: underline; text-underline-offset: 3px; }
  .cta:not(:disabled):hover, .btn.solid:hover { background: var(--accent-press); }
  .btn:not(.solid):not(:disabled):hover, .btn-secondary:hover { background: var(--fill-2); }
  .time:not(.gone):not([aria-pressed=true]):hover { background: var(--fill-2); }
  .segmented button:not([aria-pressed=true]):hover { color: var(--ink-2); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* PC e notebook: tudo em uma tela, só a lista de horários rola */
@media (min-width: 1000px) {
  main.wrap, .nav:not(.wide) .in { max-width: 1200px; }
  #form:not(.hidden) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px); column-gap: 64px; align-items: center; min-height: calc(100vh - 53px); }
  .col-a { padding: 28px 0; }
  .col-b { padding: 28px 0 8px; }
  .hero { padding-top: 0; }
  h1 { font-size: clamp(34px, 3.3vw, 46px); }
  .section { margin-top: 26px; }
  .col-b > .section:first-child { margin-top: 0; }
  .segmented { margin-bottom: 10px; }
  .row { min-height: 46px; } .row input { min-height: 46px; }
  .slots-scroll { max-height: calc(100vh - 53px - 186px); overflow-y: auto; overscroll-behavior: contain; }
  .dock, .dock.idle { position: static; transform: none; padding: 12px 0 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .dock .in { max-width: none; }
  .dock-space { display: none; }
  .col-b .foot { padding: 14px 0 0; }
  body.typing .dock { transform: none; }
  #done:not(.hidden) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); grid-template-rows: 1fr auto auto auto auto 1fr auto; column-gap: 72px; max-width: 1100px; margin: 0 auto; min-height: calc(100vh - 53px); padding: 24px 0; }
  #done > .badge { grid-row: 2; grid-column: 1; margin-bottom: 18px; }
  #done > h1 { grid-row: 3; grid-column: 1; }
  #done > .lede { grid-row: 4; grid-column: 1; max-width: 460px; }
  #done > #another { grid-row: 5; grid-column: 1; justify-self: start; width: auto; padding: 0 24px; margin-top: 24px; }
  #done > .pass { grid-row: 1 / 7; grid-column: 2; align-self: center; margin-top: 0; }
  #done > .foot { grid-row: 7; grid-column: 1 / -1; padding-top: 24px; }
}

/* ---------- painel ---------- */
.admin-hero { padding: 40px 0 0; }
.admin-hero h1 { font-size: 40px; }
.sub { color: var(--ink-2); margin: 6px 0 0; font-size: 15px; }
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px; margin-top: 20px; }
.card.narrow { max-width: 520px; }
.card .me { padding: 0 0 4px; }
.login-box { margin-top: 28px; }
.login-box .cta { margin-top: 16px; }
.bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.grp { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 20px; align-items: start; }
.tabs { display: inline-grid; grid-auto-flow: column; background: var(--fill); border-radius: 10px; padding: 2px; margin-top: 28px; }
.tab { border: 0; background: none; padding: 7px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; }
.tab.on { background: var(--card); box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); font-weight: 600; }
@media (prefers-color-scheme: dark) { .tab.on { background: #636366; } }
.tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 99px; background: var(--fill-2); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.tab-count:empty { display: none; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: rgba(255, 85, 0, .12); color: var(--oggi-deep); white-space: nowrap; }
.pill.ont { background: rgba(255, 223, 14, .28); color: var(--ink); }
.pill.off { background: var(--fill); color: var(--ink-2); }
.wa-link { color: var(--ink); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wa-link::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #25d366; margin-right: 6px; vertical-align: 1px; }
.wa-link:hover { text-decoration: underline; }
.note { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-top: 20px; padding: 6px 16px; min-height: 48px; border-radius: var(--r); background: color-mix(in srgb, var(--orange) 12%, var(--card)); font-size: 15px; font-weight: 500; }
.search { width: 100%; height: 44px; margin: 14px 0 4px; padding: 0 14px 0 38px; border: 0; border-radius: 12px; outline: 0; font-size: 16px; color: var(--ink); background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.8-3.8'/%3E%3C/svg%3E") no-repeat 13px center; }
.search::placeholder { color: var(--ink-3); }

/* faixa de dias */
.day-strip { display: flex; gap: 8px; overflow-x: auto; margin-top: 20px; padding: 2px; scrollbar-width: none; }
.day-strip::-webkit-scrollbar { display: none; }
.daychip { flex: none; width: 76px; padding: 9px 4px 8px; border: 0; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.daychip small { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--red); }
.daychip b { font-size: 24px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.daychip span { font-size: 12px; color: var(--ink-2); }
.daychip.on { background: #111; color: #fff; }
.daychip.on small, .daychip.on span { color: rgba(255,255,255,.75); }
@media (prefers-color-scheme: dark) { .daychip.on { background: #f5f5f7; color: #000; } .daychip.on small, .daychip.on span { color: rgba(0,0,0,.65); } }

/* horário na agenda */
.slot { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 13px 0; border-top: .5px solid var(--sep); }
.slot:first-child { border-top: 0; }
.slot-time b { display: block; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.2; }
.slot-time small { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.slot-who b { font-weight: 600; margin-right: 6px; }
.slot-who .meta { display: block; color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.slot-who .state { color: var(--ink-3); }
.slot.is-free .slot-time b, .slot.is-blocked .slot-time b { font-weight: 500; color: var(--ink-2); }
.slot.is-blocked .slot-time b { text-decoration: line-through; }
.slot-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.slot-actions .btn { height: 32px; padding: 0 12px; font-size: 14px; }
.mark[aria-pressed=true][data-status=done] { background: var(--green); color: #fff; }
.mark[aria-pressed=true][data-status=no_show] { background: var(--red); color: #fff; }

/* criar horários */
.sl-duration { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: flex-end; }
.sl-duration .chip { height: 32px; min-width: 42px; padding: 0 8px; border: 0; border-radius: 9px; background: var(--fill); font-size: 14px; font-weight: 500; cursor: pointer; }
.sl-duration .chip[aria-pressed=true] { background: var(--accent); color: var(--accent-ink); }
.row input.short { flex: none; width: 52px; text-align: right; }
.row .unit { color: var(--ink-2); font-size: 15px; }
.preview { font-size: 15px; color: var(--ink-2); margin: 0; }
.preview b { color: var(--ink); font-weight: 600; }
.preview-times { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.preview-times span { font-size: 13px; font-variant-numeric: tabular-nums; background: var(--fill); padding: 2px 8px; border-radius: 7px; }
.ok-msg { color: var(--green); font-weight: 600; font-size: 14px; margin: 0; text-align: center; }

/* feriados, arquivo e usuários */
.hol-form { display: grid; grid-template-columns: 170px 1fr auto; gap: 10px; margin: 16px 0 8px; }
.hol-form input { height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 16px; min-width: 0; }
@media (prefers-color-scheme: dark) { .hol-form input { background: var(--card-2); } }
.hol-form .btn { height: 44px; }
.line { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: .5px solid var(--sep); flex-wrap: wrap; }
.line:first-child { border-top: 0; }
.line-txt { flex: 1; min-width: 160px; }
.line-txt b { display: block; font-weight: 600; }
.line-txt b small { font-weight: 400; color: var(--ink-3); }
.line-txt span { color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.line .avatar.sm { width: 40px; height: 40px; font-size: 15px; }
.role { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--fill); color: var(--ink-2); white-space: nowrap; }
.role.superadmin { background: #111; color: #ffdf0e; }
.line-actions { display: flex; gap: 8px; }
.cred { margin-top: 20px; padding: 18px; border-radius: var(--r); background: color-mix(in srgb, var(--green) 10%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 35%, transparent); }
.cred-title { margin: 0; font-weight: 700; font-size: 17px; }
.cred dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0 16px; font-size: 15px; }
.cred dt { color: var(--ink-2); }
.cred dd { margin: 0; font-weight: 600; word-break: break-all; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .02em; }
.must { margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--orange) 14%, var(--card)); font-weight: 500; font-size: 15px; }

select.select { height: 36px; padding: 0 34px 0 14px; border-radius: 99px; border: 0; background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; font-size: 15px; font-weight: 500; cursor: pointer; }
select.select option { background: var(--card); color: var(--ink); }

@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 720px) {
  .slot { grid-template-columns: 62px minmax(0, 1fr); }
  .slot-actions { grid-column: 1 / -1; justify-content: flex-start; padding-left: 76px; }
}
@media (max-width: 560px) {
  .admin-hero h1 { font-size: 34px; }
  .tabs { display: grid; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .tab { padding: 7px 4px; min-height: 36px; }
  .card { padding: 18px; }
  .card > .bar { flex-direction: column; align-items: stretch; }
  .card > .bar .grp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card > .bar .grp .select, .card > .bar .grp #clearFree { grid-column: 1 / -1; }
  .card > .bar .btn, .card > .bar .select { justify-content: center; height: 44px; width: 100%; }
  .me-chip span:last-child { display: none; }
  .me-chip { padding: 0 4px; }
  .line-actions { width: 100%; }
  .line-actions .btn { flex: 1; height: 40px; }
  .hol-form { grid-template-columns: 1fr; }
  .slot-actions { padding-left: 0; }
  .slot-actions .btn { height: 36px; flex: 1; }
  .note .btn { width: 100%; }
}

/* ---------- agenda impressa: folha A4 ---------- */
#view-print .card { background: var(--fill); box-shadow: none; }
#sheets { overflow-x: auto; padding: 4px 0 8px; }
.sheet { --ink: #111; --ink-2: #555; --ink-3: #888; --sep: #d6d6d6; width: 210mm; min-height: 297mm; margin: 16px auto 0; padding: 14mm; background: #fff; color: #111; font-size: 10pt; box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 18px 50px rgba(0,0,0,.12); border-radius: 2px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 10px; border-bottom: 2px solid #111; }
.sheet-eyebrow { font-size: 9pt; letter-spacing: .06em; text-transform: uppercase; color: #666; font-weight: 600; }
.sheet-title { font-size: 20pt; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.sheet-meta { font-size: 9pt; color: #555; text-align: right; line-height: 1.5; }
.ptable { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 8px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ptable col.ct { width: 15%; } .ptable col.cc { width: 15%; } .ptable col.cw { width: 20%; } .ptable col.cp { width: 12%; }
.ptable th { padding: 8px 6px; text-align: left; border-bottom: 1px solid #111; font-size: 8.5pt; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.ptable td { padding: 9px 6px; border-bottom: 1px solid #ccc; vertical-align: middle; }
.ptable tr { break-inside: avoid; page-break-inside: avoid; }
.ptable thead { display: table-header-group; }
.ptable td.t { font-size: 12pt; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptable td.t small { font-size: 8.5pt; font-weight: 400; color: #666; }
.ptable td.nm { font-size: 12.5pt; font-weight: 600; }
.ptable tr.vago td { color: #888; }
.ptable tr.vago td.nm { font-size: 10pt; font-weight: 400; }
.ptable td.p, .ptable th.p { text-align: center; }
.box { display: inline-block; width: 14px; height: 14px; border: 1.2px solid #111; border-radius: 3px; vertical-align: -2px; }
.co-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.co-dot.oggi { background: #ff5500; }
.co-dot.ontrade { background: #ffdf0e; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }

@page { size: A4 portrait; margin: 14mm; }
@media print {
  html, body { background: #fff; color: #000; }
  .noprint, .nav { display: none !important; }
  #app > div { display: none !important; }
  #app > #view-print { display: block !important; }
  .wrap { max-width: none; padding: 0; }
  #view-print .card { background: #fff; padding: 0; margin: 0; border-radius: 0; }
  #sheets { overflow: visible; padding: 0; }
  .sheet { width: auto; min-height: 0; margin: 0; padding: 0; box-shadow: none; }
}
