:root {
  --bg: #0b0b0a;
  --panel: #151513;
  --panel-2: #1d1c19;
  --line: #2b2a25;
  --text: #f5f1e6;
  --muted: #9b968a;
  --yellow: #ffc20e;
  --yellow-2: #ffd64d;
  --ink: #111;
  --ok: #3fcf73;
  --bad: #ff5b4f;
  --radius: 16px;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.45; }
body { min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--yellow); }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 18px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Cabeçalho com favo de mel ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(env(safe-area-inset-top, 0px) + 22px) 0 26px;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(255, 194, 14, .22), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .09; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64l28 16v32M28 64L0 80v32' fill='none' stroke='%23ffc20e' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 42px 73px;
  -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 75%);
  mask-image: linear-gradient(to left, #000 10%, transparent 75%);
}
.brand { position: relative; display: flex; align-items: center; gap: 14px; }
.brand img { width: 62px; height: 62px; object-fit: contain; flex: none; }
.brand .kicker { font-family: var(--display); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--yellow); }
.brand h1 { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 30px; line-height: 1; letter-spacing: .01em; }
.hero p.sub { position: relative; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.stripe { height: 6px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--ink) 14px 28px); }

.demo-bar { background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 600; text-align: center; padding: 7px 12px; }
.demo-bar button { background: none; border: 0; text-decoration: underline; font-weight: 700; cursor: pointer; padding: 0 4px; color: var(--ink); }

h2.sec { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 15px; color: var(--muted); font-weight: 500; margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; }
h2.sec::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Faixa de dias ---------- */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 18px 10px; margin: 0 -18px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 62px; scroll-snap-align: start; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 9px 0 8px; text-align: center; transition: transform .12s, background .15s, border-color .15s;
}
.day:active { transform: scale(.96); }
.day .dw { font-family: var(--display); font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.day .dn { font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1.1; }
.day .dm { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.day .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); margin: 5px auto 0; }
.day.off { opacity: .35; }
.day.off .dot { background: transparent; }
.day[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.day[aria-pressed="true"] .dw, .day[aria-pressed="true"] .dm { color: rgba(0,0,0,.65); }
.day[aria-pressed="true"] .dot { background: var(--ink); }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 4px; }
.chip { background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 7px 14px; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--yellow); color: var(--yellow); background: rgba(255,194,14,.08); }

/* ---------- Cartões de horário ---------- */
.slots { display: grid; gap: 10px; }
.slot {
  display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 14px;
  width: 100%; text-align: left; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  transition: border-color .15s, transform .12s;
}
.slot:hover { border-color: #4a463a; }
.slot:active { transform: scale(.985); }
.slot .t { font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1; }
.slot .t small { display: block; font-family: var(--body); font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.slot .tp { font-weight: 600; }
.slot .meta { font-size: 13px; color: var(--muted); }
.slot .go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 18px; }
.slot[disabled] { cursor: default; opacity: .45; }
.slot[disabled] .go { background: var(--panel-2); color: var(--muted); font-size: 11px; width: auto; padding: 0 10px; border-radius: 999px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); color: var(--muted); }
.tag.y { background: rgba(255,194,14,.14); color: var(--yellow); }

.empty { text-align: center; color: var(--muted); padding: 34px 16px; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty b { display: block; color: var(--text); font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 18px; margin-bottom: 4px; }

/* ---------- Botões / formulários ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 14px 18px; font-weight: 700; cursor: pointer; text-decoration: none; font-size: 16px; }
.btn.pri { background: var(--yellow); color: var(--ink); }
.btn.pri:active { background: var(--yellow-2); }
.btn.sec { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.btn.ok { background: var(--ok); color: #06200f; }
.btn.bad { background: transparent; color: var(--bad); border: 1px solid rgba(255,91,79,.4); }
.btn.wa { background: #25d366; color: #052e14; }
.btn.block { width: 100%; }
.btn.sm { padding: 9px 12px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: default; }

label.f { display: block; margin: 0 0 14px; }
label.f span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.in, select.in, textarea.in {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; outline: none;
}
.in:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,194,14,.15); }
textarea.in { resize: vertical; min-height: 70px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: 13px; color: var(--muted); }

/* ---------- Folha inferior ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.62); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 92dvh; overflow-y: auto;
  background: var(--panel); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0;
  padding: 10px 0 calc(22px + var(--safe-b)); transform: translateY(105%); transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 14px; }
.sheet.open { transform: none; }
.sheet-bg.open { opacity: 1; pointer-events: auto; }
.sheet h3 { font-family: var(--display); text-transform: uppercase; font-size: 22px; margin: 0 0 4px; }
.resumo { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 12px; padding: 12px 14px; margin: 12px 0 18px; }
.resumo b { font-family: var(--display); font-size: 20px; font-weight: 600; }

/* ---------- Reservas do aluno ---------- */
.mine { display: grid; gap: 10px; }
.mine .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st.pendente { color: var(--yellow); }
.st.confirmada { color: var(--ok); }
.st.recusada, .st.cancelada { color: var(--bad); }

.ok-hero { text-align: center; padding: 8px 4px 4px; }
.ok-hero .hex { width: 74px; height: 84px; margin: 0 auto 10px; background: var(--yellow); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); display: grid; place-items: center; color: var(--ink); font-size: 34px; font-weight: 900; }

footer.foot { color: var(--muted); font-size: 13px; text-align: center; padding: 34px 18px calc(30px + var(--safe-b)); }

#toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translate(-50%, 20px); background: var(--text); color: var(--ink); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--bad); color: #fff; }
.has-nav #toast { bottom: calc(92px + var(--safe-b)); }

/* ---------- Painel da professora ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11,11,10,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.top img { width: 38px; height: 38px; object-fit: contain; }
.top .ttl { font-family: var(--display); text-transform: uppercase; font-size: 20px; font-weight: 600; flex: 1; line-height: 1; }
.top .ttl small { display: block; font-family: var(--body); text-transform: none; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 3px; }
.icon-btn { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; }

main.admin { padding-bottom: calc(100px + var(--safe-b)); }
.view { display: none; }
.view.on { display: block; }

.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(21,21,19,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.nav .wrap { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 4px; }
.nav button { background: none; border: 0; padding: 10px 0 9px; display: grid; justify-items: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; cursor: pointer; position: relative; }
.nav svg { width: 24px; height: 24px; }
.nav button[aria-current="page"] { color: var(--yellow); }
.badge { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; display: grid; place-items: center; }
.badge:empty { display: none; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.stat b { display: block; font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1.1; }
.stat span { font-size: 12px; color: var(--muted); }
.stat.y b { color: var(--yellow); }

.req { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.req.novo { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,194,14,.12); }
.req .hd { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.req .nm { font-weight: 700; font-size: 17px; }
.req .when { font-family: var(--display); font-size: 20px; font-weight: 600; text-transform: uppercase; }
.req .when small { font-family: var(--body); text-transform: none; font-size: 13px; color: var(--muted); font-weight: 400; }
.req .obs { background: var(--bg); border-radius: 10px; padding: 9px 12px; font-size: 14px; color: #d8d3c6; }
.req .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.req .acts.three { grid-template-columns: 1fr 1fr 1fr; }
.list { display: grid; gap: 10px; }

.daygroup { margin-bottom: 18px; }
.daygroup h4 { margin: 0 0 8px; font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; font-size: 16px; font-weight: 500; }
.daygroup h4 span { color: var(--muted); font-family: var(--body); text-transform: none; font-size: 13px; }
.aslot { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; margin-bottom: 8px; }
.aslot .t { font-family: var(--display); font-size: 22px; font-weight: 600; }
.aslot .who { font-size: 13px; color: var(--muted); }
.aslot .who b { color: var(--text); font-weight: 600; }
.fill { height: 5px; border-radius: 4px; background: var(--panel-2); overflow: hidden; margin-top: 6px; }
.fill i { display: block; height: 100%; background: var(--yellow); }
.del { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px; border-radius: 8px; }
.del:hover { color: var(--bad); background: rgba(255,91,79,.08); }

.card-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.card-box h3 { margin: 0 0 6px; font-family: var(--display); text-transform: uppercase; font-size: 19px; font-weight: 600; }
.wk { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 14px; }
.wk button { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 0; font-family: var(--display); font-size: 13px; cursor: pointer; }
.wk button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); font-weight: 700; }
.times { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.time-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,194,14,.12); color: var(--yellow); border-radius: 999px; padding: 6px 6px 6px 12px; font-weight: 700; font-family: var(--display); font-size: 16px; }
.time-pill button { background: rgba(0,0,0,.3); border: 0; width: 22px; height: 22px; border-radius: 50%; color: var(--yellow); cursor: pointer; }
.add-time { display: flex; gap: 8px; }
.add-time .in { flex: 1; }
.preview-n { font-size: 14px; color: var(--muted); margin: 6px 0 14px; }
.preview-n b { color: var(--yellow); }
.linkbox { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 12px; margin: 10px 0 12px; }
.linkbox code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--yellow-2); }
ol.steps { padding-left: 20px; margin: 8px 0 12px; color: #d8d3c6; font-size: 14px; }
ol.steps li { margin-bottom: 6px; }

.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login .box { width: 100%; max-width: 380px; }
.login .brand { justify-content: center; flex-direction: column; text-align: center; margin-bottom: 24px; }
.login .brand img { width: 96px; height: 96px; }

.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 3px; margin-bottom: 14px; }
.seg button { background: none; border: 0; padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); }

@media (min-width: 700px) {
  .brand h1 { font-size: 38px; }
  .brand img { width: 76px; height: 76px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.tag { white-space: nowrap; }
.req .when small { display: block; margin-top: 2px; }

/* Google Agenda e alunos */
.gitem { display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: center; padding: 10px 14px; margin-bottom: 8px; border-radius: 14px; border: 1px dashed #3a382f; background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(255,255,255,.025) 8px 16px); }
.gitem .t { font-family: var(--display); font-size: 18px; font-weight: 500; color: var(--muted); line-height: 1.1; }
.gitem .t small { display: block; font-family: var(--body); font-size: 12px; }
.gitem .nm { font-size: 14px; font-weight: 600; }
.gitem .src { font-size: 12px; color: var(--muted); }
.aslot.conf { border-color: rgba(255,91,79,.45); }
.warn { font-size: 12px; color: var(--bad); font-weight: 600; margin-top: 4px; }
.tag.novo { background: var(--yellow); color: var(--ink); }
.contato { display: grid; gap: 4px; font-size: 14px; color: #d8d3c6; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.contato a { color: var(--yellow-2); text-decoration: none; }
.contato .k { color: var(--muted); }
.aluno { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 8px; }
.aluno .top-l { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.aluno .nm { font-weight: 700; font-size: 17px; }
.aluno .links { display: flex; flex-wrap: wrap; gap: 8px; }
.aluno .links a { font-size: 13px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }

/* ---------- Fluxo do aluno ---------- */
.passo { margin: 26px 0 0; }
.passo > .n { font-family: var(--display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin-bottom: 4px; }
.passo > h2 { font-family: var(--display); text-transform: uppercase; font-size: 22px; margin: 0 0 12px; line-height: 1.1; }
.opts { display: grid; gap: 10px; }
.opts.dois { grid-template-columns: 1fr 1fr; }
.opt { text-align: left; cursor: pointer; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 3px; transition: border-color .15s, background .15s; }
.opt b { font-size: 16px; }
.opt span { font-size: 13px; color: var(--muted); }
.opt[aria-pressed="true"] { border-color: var(--yellow); background: rgba(255,194,14,.08); box-shadow: 0 0 0 3px rgba(255,194,14,.12); }
.opt[aria-pressed="true"] b { color: var(--yellow); }
.opt .preco { font-family: var(--display); font-size: 20px; color: var(--text); font-weight: 600; }
.opt .preco s { color: var(--muted); font-size: 14px; margin-right: 6px; font-weight: 400; }
.opt.linha { grid-template-columns: 1fr auto; align-items: center; }
.info { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: #d8d3c6; }
.grade { display: grid; gap: 6px; }
.grade div { display: flex; justify-content: space-between; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.grade b { font-family: var(--display); font-size: 18px; font-weight: 600; }
.semana { display: grid; gap: 12px; }
.semana .dia h4 { margin: 0 0 6px; font-family: var(--display); text-transform: uppercase; font-size: 15px; font-weight: 500; letter-spacing: .04em; }
.semana .dia h4 small { font-family: var(--body); text-transform: none; color: var(--muted); font-size: 12px; letter-spacing: 0; margin-left: 6px; }
.horas { display: flex; flex-wrap: wrap; gap: 8px; }
.hora { min-width: 74px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-family: var(--display); font-size: 18px; font-weight: 600; cursor: pointer; }
.hora[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.hora:disabled { opacity: .3; cursor: default; text-decoration: line-through; font-weight: 400; }
.check { display: flex; gap: 10px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--yellow); margin: 1px 0 0; flex: none; }
.fixo { position: sticky; bottom: 0; padding: 12px 0 calc(12px + var(--safe-b)); background: linear-gradient(transparent, var(--bg) 30%); margin-top: 16px; }

.hrow { display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: center; padding: 10px 14px; margin-bottom: 8px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.hrow .t { font-family: var(--display); font-size: 20px; font-weight: 600; }
.hrow.livre { opacity: .55; border-style: dashed; }
.hrow.pend { border-color: var(--yellow); }
.hrow.g { border-style: dashed; background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(255,255,255,.025) 8px 16px); }
.hrow .nm { font-weight: 600; font-size: 15px; }
.hrow .s { font-size: 12px; color: var(--muted); }
.ed-dia { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.ed-dia h4 { margin: 0 0 8px; font-family: var(--display); text-transform: uppercase; font-size: 15px; font-weight: 500; }
.ed-dia .add { display: flex; gap: 8px; margin-top: 8px; }
.ed-dia .add .in { padding: 8px 10px; }
.passo > h2.sec { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 15px; color: var(--muted); font-weight: 500; margin: 22px 0 10px; }

/* ---------- Calendário do painel ---------- */
.calnav { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 10px; }
.calnav b { font-family: var(--display); text-transform: uppercase; font-size: 20px; font-weight: 600; }
.calleg { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.calleg span { display: inline-flex; align-items: center; gap: 5px; }
.calleg i, .cal-d .dots i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.d-res { background: var(--yellow); }
.d-pend { background: transparent; box-shadow: inset 0 0 0 1.5px var(--yellow); }
.d-g { background: #8d887c; }
.d-t { background: #5bc0eb; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-h { text-align: center; font-size: 11px; color: var(--muted); font-weight: 700; padding: 2px 0 4px; text-transform: uppercase; }
.cal-d { position: relative; min-height: 66px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 5px 4px 4px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow: hidden; }
.cal-d.vz { background: transparent; border-color: transparent; cursor: default; }
.cal-d .n { font-family: var(--display); font-size: 15px; font-weight: 600; line-height: 1; }
.cal-d .dots { display: flex; flex-wrap: wrap; gap: 2px; }
.cal-d .q { position: absolute; top: 4px; right: 5px; font-size: 10px; color: var(--muted); font-weight: 700; }
.cal-d .lv { margin-top: auto; font-size: 9.5px; color: var(--ok); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-d.hj { border-color: var(--yellow); }
.cal-d.hj .n { color: var(--yellow); }
.cal-d.sel { background: rgba(255,194,14,.12); border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(255,194,14,.25); }
.cal-d.pass { opacity: .45; }
.cal-d:hover { border-color: #5a5546; }
.tip { position: absolute; z-index: 25; width: 240px; background: #222119; border: 1px solid #4a463a; border-radius: 12px; padding: 10px 12px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.5); pointer-events: none; }
.tip b { display: block; font-size: 12px; color: var(--yellow); margin-bottom: 6px; }
.tip div { padding: 2px 0; }
.tip div span { display: inline-block; width: 44px; font-family: var(--display); font-weight: 600; }
.tip em { color: var(--yellow); font-style: normal; font-size: 11px; }
.mini-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mini-acts .btn { padding: 7px 10px; font-size: 13px; }
.add-dia { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; }
.add-dia .in { width: auto; padding: 8px 10px; }
@media (min-width: 700px) { .cal-d { min-height: 82px; } .cal-d .n { font-size: 17px; } }

/* ---------- Horários compactos ---------- */
.ed-grid { display: grid; gap: 6px; }
@media (min-width: 640px) { .ed-grid { grid-template-columns: 1fr 1fr; } }
.ed-grid .ed-dia { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: start; padding: 8px 10px; margin: 0; border-radius: 12px; }
.ed-grid .ed-dia h4 { margin: 6px 0 0; font-size: 13px; color: var(--yellow); }
.ed-hrs { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.chip-h { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 8px; background: rgba(255,194,14,.12); color: var(--yellow); border: 0; font-family: var(--display); font-weight: 600; font-size: 14px; cursor: pointer; }
.chip-h span { opacity: .55; font-size: 12px; }
.chip-h:hover { background: rgba(255,91,79,.18); color: var(--bad); }
.ed-add { display: inline-flex; align-items: center; border: 1px dashed var(--line); border-radius: 8px; overflow: hidden; }
.ed-add input { background: transparent; border: 0; color: var(--text); padding: 4px 4px 4px 8px; font-size: 13px; width: 92px; }
.ed-add button { background: var(--panel-2); border: 0; color: var(--yellow); font-weight: 800; padding: 5px 9px; cursor: pointer; }
.livres-dia { padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; margin: 8px 0; display: grid; gap: 8px; }
.chip-h.livre { background: rgba(63,207,115,.12); color: var(--ok); }

/* Abas no topo (dentro do cabeçalho fixo) */
.top .nav { position: static; background: transparent; border-top: 1px solid var(--line); padding-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.top .nav .wrap { height: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0 4px; }
.top .nav button { padding: 8px 0 7px; grid-template-columns: auto auto auto; justify-content: center; align-items: center; gap: 6px; font-size: 13px; border-bottom: 2px solid transparent; }
.top .nav svg { width: 19px; height: 19px; }
.top .nav button[aria-current="page"] { border-bottom-color: var(--yellow); }
.top .nav .badge { top: 3px; left: auto; right: 6px; }
main.admin { padding-bottom: calc(40px + var(--safe-b)); }
.has-nav #toast { bottom: calc(24px + var(--safe-b)); }
@media (max-width: 380px) { .top .nav button { grid-template-columns: 1fr; gap: 2px; font-size: 11px; } }
.top .nav .badge { position: static; display: inline-grid; margin-left: -2px; }
.top .nav .badge:empty { display: none; }
@media (max-width: 380px) { .top .nav .badge { position: absolute; top: 2px; right: 8px; } }

/* Abas: a selecionada vira um botão branco com texto preto */
.top .nav .wrap { gap: 6px; padding: 6px 8px 8px; }
.top .nav button { border-bottom: 0; border-radius: 10px; padding: 8px 4px; color: var(--muted); transition: background .15s, color .15s; }
.top .nav button:hover { background: var(--panel-2); color: var(--text); }
.top .nav button[aria-current="page"] { background: #fff; color: #111; font-weight: 700; border-bottom: 0; }
.top .nav button[aria-current="page"] svg { stroke: #111; }

/* Seletor de horário digital */
.sel-hora { display: inline-flex; align-items: center; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 4px 6px; }
.sel-hora select { background: transparent; border: 0; color: var(--text); font-family: var(--display); font-size: 18px; font-weight: 600; padding: 4px 2px; -webkit-appearance: none; appearance: none; text-align: center; cursor: pointer; }
.sel-hora select option { background: var(--panel); color: var(--text); }
.sel-hora b { color: var(--muted); }
.sel-hora.compacto { border: 0; padding: 0 2px 0 6px; background: transparent; }
.sel-hora.compacto select { font-size: 14px; padding: 4px 0; }
.ed-add { gap: 0; }
.top .nav .wrap { gap: 4px; padding: 6px 6px 8px; }
.top .nav button { font-size: 12.5px; gap: 5px; padding: 8px 2px; min-width: 0; }
.top .nav svg { width: 17px; height: 17px; }

/* Experimental com data */
.hora.exp { display: grid; justify-items: center; gap: 1px; min-width: 86px; padding: 8px 10px; font-size: 14px; }
.hora.exp span { font-family: var(--body); font-size: 12px; font-weight: 600; color: inherit; opacity: .8; }
.hora.exp b { font-size: 18px; }
.hora.exp small { font-family: var(--body); font-size: 11px; font-weight: 500; opacity: .75; }
.hora.exp:disabled { text-decoration: none; }
/* Consentimento */
.check.consent { margin: 6px 0 4px; font-size: 13px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--yellow); text-decoration: underline; cursor: pointer; font: inherit; }
.sheet h3 + p, .sheet p { line-height: 1.5; }
/* Aviso de versão nova */
.barra-versao { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + var(--safe-b)); z-index: 70; display: flex; align-items: center; gap: 12px;
  background: var(--yellow); color: #111; font-weight: 700; font-size: 14px; padding: 10px 10px 10px 16px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); white-space: nowrap; }
.barra-versao button { background: #111; color: #fff; border: 0; border-radius: 10px; padding: 8px 12px; font-weight: 700; cursor: pointer; }

/* CT fechado e feriados no calendário */
.d-f { background: var(--bad); }
.cal-d.fechado { background: repeating-linear-gradient(-45deg, rgba(255,91,79,.10) 0 6px, transparent 6px 12px), var(--panel); border-color: rgba(255,91,79,.4); }
.cal-d .fx { font-size: 10px; font-weight: 700; color: var(--bad); text-transform: uppercase; }
.cal-d .fer { margin-top: auto; font-size: 9.5px; color: #ff9d8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fechado-box { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; background: rgba(255,91,79,.10); border: 1px solid rgba(255,91,79,.35); }
.fechado-box b { color: var(--bad); }
.fechado-box span { font-size: 13px; color: #d8d3c6; }
.fechado-box .btn { justify-self: start; }
/* Números do mês */
.numeros { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.numeros summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.numeros summary::-webkit-details-marker { display: none; }
.numeros summary b { font-family: var(--display); text-transform: uppercase; font-size: 16px; }
.numeros .stats { grid-template-columns: repeat(3, 1fr); }
.numeros .card-box { background: var(--bg); margin-bottom: 0; }
.barra { height: 8px; border-radius: 6px; background: var(--panel-2); overflow: hidden; }
.barra i { display: block; height: 100%; background: var(--yellow); border-radius: 6px; }
.orig { display: grid; grid-template-columns: 1fr 1.4fr 24px; gap: 8px; align-items: center; font-size: 13px; margin: 6px 0; }
.orig b { text-align: right; }
/* Editor de planos e grade */
.cf-grupo { margin-top: 12px; }
.cf-grupo > b { display: block; font-size: 13px; color: var(--yellow); margin-bottom: 6px; }
.cf-plano { display: grid; grid-template-columns: 1fr 96px auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.cf-plano.oculto input.in { opacity: .45; }
.cf-plano .in, .cf-grade .in { padding: 8px 10px; font-size: 14px; }
.cf-rs { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.cf-vis { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.cf-vis input { accent-color: var(--yellow); }
.cf-grade { display: grid; grid-template-columns: 1.2fr 1fr 1fr 32px; gap: 6px; margin-bottom: 6px; align-items: center; }
.aviso-res{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:10px;padding:10px 12px;border-radius:12px;background:rgba(255,194,14,.08);border:1px solid rgba(255,194,14,.25);font-size:14px}
.info-sec{margin-top:26px}
.info-card{display:block;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin-bottom:10px;color:var(--text)}
.info-card summary{cursor:pointer;font-weight:700;list-style:none}
.info-card summary::-webkit-details-marker{display:none}
.info-card summary::after{content:"＋";float:right;color:var(--yellow)}
.info-card[open] summary::after{content:"－"}
.info-card p{margin:8px 0 0;color:var(--muted);line-height:1.5}
.info-link{text-decoration:none}
