/* Calendiário · estilos · versão 0.5 · 2026-10-13 */
:root {
  --bg: #F5F2EC; --paper: #FFFFFF; --ink: #14122B; --muted: #5B5873;
  --line: #D9D4C8; --line-soft: #ECE8DF; --sel: color-mix(in srgb, var(--accent) 16%, var(--paper));
  --accent: #FF5A1F; --on-accent: #14122B; --hot: #D6213A; --gold: #FFC21A;
  --side-bg: #14122B; --side-ink: #F6F1E7; --side-muted: #B4B0CC; --side-line: #35315A; --side-sel: #2A2750;
  --display: 'Gabarito', 'Trebuchet MS', system-ui, sans-serif;
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hard: 3px 3px 0 var(--ink);
  --r: 4px; --hh: 52px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0D1F; --paper: #17152E; --ink: #F6F1E7; --muted: #A9A5C4;
    --line: #34305A; --line-soft: #26234A;
    --accent: #FF7A45; --on-accent: #14122B; --hot: #FF7A8A;
    --side-bg: #0A0918; --side-line: #2A2750;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0D1F; --paper: #17152E; --ink: #F6F1E7; --muted: #A9A5C4;
  --line: #34305A; --line-soft: #26234A;
  --accent: #FF7A45; --on-accent: #14122B; --hot: #FF7A8A;
  --side-bg: #0A0918; --side-line: #2A2750;
  color-scheme: dark;
}
/* Marcas: cada aplicativo troca só estas variáveis */
:root[data-marca="juridico"] { --accent: #C9A227; --side-bg: #0B1F3A; --side-line: #24406A; --side-sel: #16315A; }
:root[data-marca="custom"] { --side-line: color-mix(in srgb, var(--side-bg) 72%, var(--side-ink)); --side-sel: color-mix(in srgb, var(--side-bg) 85%, var(--side-ink)); --side-muted: color-mix(in srgb, var(--side-ink) 72%, var(--side-bg)); }
:root[data-marca="psi"] { --accent: #F07B5E; --side-bg: #2E1A3B; --side-line: #4A2E5E; --side-sel: #3C2450; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- estrutura ---------- */
.app { display: grid; grid-template-columns: 268px minmax(0, 1fr) auto; height: 100dvh; }
.side { --bg: var(--side-bg); --paper: var(--side-bg); --ink: var(--side-ink); --muted: var(--side-muted); --line: var(--side-line); --line-soft: var(--side-line); --sel: var(--side-sel); --hard: 3px 3px 0 var(--side-ink);
  background: var(--side-bg); color: var(--side-ink); overflow-y: auto; overflow-x: hidden; padding: 20px 18px; display: flex; flex-direction: column; gap: 24px; }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--paper); }
.view { flex: 1; min-height: 0; overflow: auto; position: relative; }
.tasks { width: 340px; border-left: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; min-height: 0; }

/* ---------- botões (assinatura: sombra dura + deslocamento de 3px) ---------- */
.btn { border: 1.5px solid var(--ink); border-radius: var(--r); padding: 8px 14px; font-weight: 600; background: var(--paper); transition: transform .12s, box-shadow .12s; white-space: nowrap; text-align: center; }
@media (hover: hover) { .btn:hover { transform: translate(-3px, -3px); box-shadow: var(--hard); } }
.btn:active { transform: none; box-shadow: none; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.danger { color: var(--hot); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--accent); }

/* ---------- barra de entrada ---------- */
.top { padding: 14px 20px 10px; border-bottom: 1px solid var(--line); background: var(--paper); }
.entry { display: flex; gap: 10px; }
.entry input { flex: 1; min-width: 0; font-size: 18px; padding: 12px 14px; background: var(--bg); border: 2px solid var(--ink); border-radius: var(--r); transition: transform .12s, box-shadow .12s, background .12s; }
.entry input::placeholder { color: var(--muted); }
.entry input:focus { outline: none; transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--accent); background: var(--paper); }
.preview { min-height: 26px; padding: 8px 2px 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.preview .tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border: 1.5px solid var(--ink); border-radius: 2px; padding: 0 6px; color: var(--ink); }
.preview .ttl { color: var(--ink); font-weight: 700; }
.preview .when { color: var(--ink); }
.preview .warn { color: var(--hot); font-weight: 600; }
.preview .ex { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.preview .ex:hover { color: var(--accent); }

/* ---------- cabeçalho da vista ---------- */
.bar { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bar h1 { font: 700 26px/1.1 var(--display); letter-spacing: -.01em; margin: 0 auto 0 6px; min-width: 0; }
.navbtns { display: inline-flex; gap: 6px; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.seg button { padding: 7px 14px; font-weight: 600; border-right: 1.5px solid var(--ink); text-align: center; }
.seg button:last-child { border-right: 0; }
.seg button:hover { background: var(--sel); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.count { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 5px; background: var(--hot); color: var(--paper); border-radius: 2px; font-size: 12px; text-align: center; }

/* ---------- grade de horas (dia e semana) ---------- */
.tg { min-width: 100%; }
.tg-top { position: sticky; top: 0; z-index: 6; background: var(--paper); border-bottom: 1.5px solid var(--ink); }
.tg-head, .tg-allday, .tg-body { display: grid; }
.tg-corner { border-right: 1px solid var(--line-soft); }
.tg-corner.small { font-size: 10px; color: var(--muted); padding: 7px 5px 0; text-align: right; line-height: 1.1; }
.tg-day { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 8px 4px; border-left: 1px solid var(--line-soft); text-align: center; }
.tg-day .dw { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.tg-day .dn { font: 800 26px/1 var(--display); padding: 2px 8px; border-radius: 2px; }
.tg-day:hover .dn { background: var(--sel); }
.tg-day.is-today .dn { background: var(--accent); color: var(--on-accent); }
.tg-allday { min-height: 28px; border-top: 1px solid var(--line-soft); }
.tg-adcell { border-left: 1px solid var(--line-soft); padding: 3px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tg-body { position: relative; }
.tg-hours { position: relative; height: calc(24 * var(--hh)); }
.tg-hours span { position: absolute; right: 6px; transform: translateY(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tg-col { position: relative; height: calc(24 * var(--hh)); border-left: 1px solid var(--line-soft); cursor: cell;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hh) - 1px), var(--line-soft) calc(var(--hh) - 1px), var(--line-soft) var(--hh)); }
.tg-col.is-today { background-color: color-mix(in srgb, var(--accent) 9%, transparent); }
.nowline { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid var(--hot); z-index: 4; pointer-events: none; }
.nowline::before { content: ''; position: absolute; left: -1px; top: -6px; width: 9px; height: 9px; background: var(--hot); }

.ev { position: absolute; z-index: 2; left: calc(100% / var(--n) * var(--c) + 2px); width: calc(100% / var(--n) - 4px);
  padding: 2px 6px; overflow: hidden; background: var(--cc); color: var(--ct); border: 2px solid var(--ink); border-radius: 3px;
  font-size: 12.5px; line-height: 1.25; transition: transform .12s, box-shadow .12s; }
.anim .ev { animation: entra .28s both; animation-delay: calc(var(--i, 0) * 25ms); }
.ev:hover, .ev:focus-visible { transform: translate(-3px, -3px); box-shadow: var(--hard); z-index: 5; }
.ev .t { display: block; font-weight: 700; overflow: hidden; }
.ev .m { display: block; font-size: 11.5px; color: inherit; opacity: .85; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ev.short { display: flex; gap: 6px; align-items: baseline; white-space: nowrap; }
.ev.short .t { overflow: hidden; text-overflow: ellipsis; }

.chip { display: block; width: 100%; padding: 1px 6px; font-size: 12px; line-height: 1.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--cc); color: var(--ct); border: 1.5px solid var(--ink); border-radius: 3px; transition: transform .12s, box-shadow .12s; }
.chip:hover, .chip:focus-visible { transform: translate(-3px, -3px); box-shadow: var(--hard); position: relative; z-index: 3; }
.chip.allday { font-weight: 800; }
.chip .h { color: inherit; opacity: .8; margin-right: 4px; font-variant-numeric: tabular-nums; }

.novo { animation: pulso 1.4s ease-out 1; }
@keyframes entra { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 var(--accent); } 40% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- vista mês ---------- */
.mv { display: grid; grid-template-rows: auto 1fr; min-height: 100%; }
.mv-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1.5px solid var(--ink); }
.mv-head span { padding: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.mv-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(104px, 1fr); }
.mcell { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 4px; display: flex; flex-direction: column; gap: 2px; cursor: cell; min-width: 0; }
.mcell.out { background: color-mix(in srgb, var(--bg) 70%, transparent); }
.mcell.out .mnum { color: var(--muted); }
.mnum { align-self: flex-start; font: 700 16px/1 var(--display); padding: 3px 6px; border-radius: 2px; }
.mnum:hover { background: var(--sel); }
.mcell.is-today .mnum { background: var(--accent); color: var(--on-accent); }
.more { font-size: 11.5px; color: var(--muted); padding: 0 6px; font-weight: 700; }
.more:hover { color: var(--ink); text-decoration: underline; }

/* ---------- barra lateral ---------- */
.brand { font: 800 28px/1 var(--display); letter-spacing: -.03em; }
.brand em { font-style: normal; color: var(--accent); }
.brand small { display: block; margin-top: 6px; font: 500 12px/1.3 var(--sans); letter-spacing: 0; color: var(--muted); }
.side h2 { font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.mini-head { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.mini-title { flex: 1; font: 700 17px/1 var(--display); }
.mini-nav { width: 28px; height: 28px; text-align: center; border-radius: 2px; font-size: 18px; line-height: 26px; }
.mini-nav:hover { background: var(--sel); }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.mini-grid .wd { font-size: 10.5px; color: var(--muted); text-align: center; padding: 3px 0; font-weight: 700; }
.mini-d { position: relative; height: 30px; text-align: center; font-size: 13px; line-height: 30px; border-radius: 2px; font-variant-numeric: tabular-nums; }
.mini-d:hover { background: var(--sel); }
.mini-d.out { color: var(--muted); }
.mini-d.sel { background: var(--sel); }
.mini-d.is-today { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.mini-d.has::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 12px; height: 2px; margin-left: -6px; background: currentColor; opacity: .55; }
.cals { display: grid; gap: 2px; }
.calrow { display: flex; align-items: center; gap: 6px; border-radius: 2px; }
.calrow:hover { background: var(--sel); }
.cal { display: flex; align-items: center; gap: 10px; padding: 5px 4px; }
.cal .sw { flex: none; width: 16px; height: 16px; border: 2px solid var(--cc); background: var(--cc); border-radius: 2px; }
.cal[aria-pressed="false"] .sw { background: transparent; }
.cal[aria-pressed="false"] .nm { color: var(--muted); }
.cal .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caledit { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.caledit:hover { color: var(--ink); }
.opts { display: grid; gap: 10px; font-size: 13px; }
.opts .lab { color: var(--muted); font-size: 12px; margin-bottom: 4px; display: block; }
.opts .seg { display: flex; }
.opts .seg button { flex: 1; padding: 4px 6px; font-size: 13px; }
.side-foot { margin-top: auto; display: grid; gap: 8px; font-size: 12px; color: var(--muted); }
.side-foot kbd { font: 600 11px var(--sans); border: 1px solid var(--line); background: var(--paper); border-radius: 2px; padding: 0 5px; }
.demo-note { font-size: 12px; border: 1.5px dashed var(--line); border-radius: var(--r); padding: 8px 10px; color: var(--muted); }

/* ---------- tarefas ---------- */
.tasks-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; }
.tasks-head h2 { margin: 0; font: 800 24px/1 var(--display); }
.tk-add { padding: 6px 18px 12px; }
.tk-add input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--paper); transition: transform .12s, box-shadow .12s; }
.tk-add input:focus { outline: none; transform: translate(-3px, -3px); box-shadow: var(--hard); }
.tk-list { flex: 1; overflow: auto; padding: 0 18px 24px; }
.tk-group h3 { font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.tk-group.late h3 { color: var(--hot); }
.tk { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.tk .box { flex: none; width: 20px; height: 20px; margin-top: 2px; border: 2px solid var(--ink); border-radius: 2px; background: var(--paper); display: grid; place-items: center; transition: transform .12s, box-shadow .12s; font-weight: 800; font-size: 14px; line-height: 1; color: var(--on-accent); }
.tk .box { position: relative; }
.tk .box::before { content: ''; position: absolute; inset: -10px; }
.tk .box:hover { transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--ink); }
.tk.done .box { background: var(--accent); }
.tk.done .box::after { content: '✓'; }
.tk .main-b { flex: 1; min-width: 0; padding: 1px 0; }
.tk .ti { display: block; overflow-wrap: anywhere; }
.tk.done .ti { text-decoration: line-through; color: var(--muted); }
.tk .me { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: var(--muted); }
.tk .me .late { color: var(--hot); font-weight: 700; }
.tk .me .pr { color: var(--hot); font-weight: 800; }
.tk .me .cb { display: inline-block; width: 8px; height: 8px; background: var(--cc); margin-right: 5px; }
.tk-empty { color: var(--muted); font-size: 14px; padding: 18px 0; }

/* ---------- diálogos ---------- */
dialog { border: 1.5px solid var(--ink); border-radius: var(--r); padding: 0; background: var(--paper); color: var(--ink); width: min(540px, calc(100vw - 24px)); box-shadow: 6px 6px 0 var(--ink); max-height: calc(100dvh - 24px); }
dialog::backdrop { background: rgba(20, 30, 24, .5); }
.dlg { padding: 20px; display: grid; gap: 14px; }
.dlg h2 { margin: 0; font: 800 24px/1.1 var(--display); }
.fld { display: grid; gap: 4px; min-width: 0; }
.fld > label, .fld > .lab { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fld input[type="text"], .fld input[type="email"], .fld input[type="password"], .fld input[type="date"], .fld input[type="time"], .fld select, .fld textarea { width: 100%; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--bg); transition: box-shadow .12s, transform .12s; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--ink); background: var(--paper); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.fld textarea { min-height: 70px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chk { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.chk input { width: 18px; height: 18px; accent-color: var(--accent); }
.dlg-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dlg-foot .sp { flex: 1; }
.erro { color: var(--hot); font-weight: 600; font-size: 14px; margin: 0; min-height: 0; }
.nota { font-size: 12.5px; color: var(--muted); margin: 0; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 32px; height: 32px; background: var(--cc); border: 2px solid var(--paper); outline: 2px solid transparent; border-radius: 2px; transition: transform .12s, box-shadow .12s; }
.swatches button:hover { transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--ink); }
.swatches button[aria-checked="true"] { outline-color: var(--ink); }

/* ---------- avisos ---------- */
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 60; width: min(480px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; background: var(--ink); color: var(--paper); padding: 11px 14px; border-radius: var(--r); box-shadow: 3px 3px 0 var(--accent); animation: entra .2s both; font-size: 14px; }
.toast span { flex: 1; min-width: 0; }
.toast button { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- navegação móvel ---------- */
.bnav { display: none; }

@media (max-width: 899px) {
  .app { display: block; }
  .main { height: 100dvh; padding-bottom: 58px; }
  .side { position: fixed; top: 0; bottom: 58px; left: 0; width: min(330px, 88vw); z-index: 30; transform: translateX(-104%); visibility: hidden; transition: transform .2s, visibility 0s .2s; box-shadow: 6px 0 0 var(--accent); }
  .side.open { transform: none; visibility: visible; transition-delay: 0s; }
  .tasks { position: fixed; inset: 0 0 58px 0; width: auto; z-index: 30; }
  .bnav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: 58px; z-index: 40; background: var(--paper); border-top: 1.5px solid var(--ink); }
  .bnav button { font-weight: 700; font-size: 13px; text-align: center; border-right: 1px solid var(--line); }
  .bnav button:last-child { border-right: 0; background: var(--accent); color: var(--on-accent); }
  .bnav button[aria-current="true"] { box-shadow: inset 0 -4px 0 var(--accent); }
  .top { padding: 10px 12px 6px; }
  .entry input { font-size: 16px; padding: 10px 12px; }
  .entry .btn { display: none; }
  .bar { padding: 8px 12px; gap: 8px; }
  .bar h1 { font-size: 21px; flex-basis: 100%; order: -1; margin: 0; }
  .toasts { bottom: 70px; }
  .mv-grid { grid-auto-rows: minmax(84px, 1fr); }
  .tasks-toggle { display: none; }
  .mv-head span { padding: 6px 2px; text-align: center; font-size: 11px; }
}
@media (max-width: 899px) {
  .fld input, .fld select, .fld textarea, .tk-add input { font-size: 16px; }
}
@media (max-width: 520px) {
  .row2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.pick { display: grid; gap: 8px; }
.pick label, .swatches .other { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.pick input[type="color"], .swatches input[type="color"] { width: 44px; height: 30px; padding: 0; border: 2px solid var(--ink); border-radius: 3px; background: none; cursor: pointer; }
.swatches .other { margin-left: 4px; color: var(--muted); }

/* ---------- entrada (conta) ---------- */
body.gated .app, body.gated .bnav { display: none; }
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.auth[hidden] { display: none; }
.auth-art { background: var(--side-bg); color: var(--side-ink); padding: clamp(28px, 6vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.auth-art .brand { font: 800 26px/1 var(--display); }
.auth-art .brand em { font-style: normal; color: var(--accent); }
.auth-art h2 { font: 800 clamp(38px, 6vw, 84px)/.95 var(--display); margin: 0; letter-spacing: -.02em; max-width: 11ch; }
.auth-art h2 span { background: var(--accent); color: var(--on-accent); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.auth-demo { display: grid; gap: 10px; max-width: 420px; }
.auth-demo .typed { border: 1.5px solid var(--side-line); border-radius: var(--r); padding: 10px 12px; font-size: 15px; color: var(--side-muted); }
.auth-demo .out { background: var(--accent); color: var(--on-accent); border: 2px solid var(--side-ink); border-radius: var(--r); padding: 10px 12px; font-weight: 700; box-shadow: 4px 4px 0 var(--side-ink); transform: translateX(18px); }
.auth-demo .out small { display: block; font-weight: 500; opacity: .85; }
.auth-card { align-self: center; justify-self: center; width: min(400px, calc(100vw - 32px)); display: grid; gap: 14px; padding: 28px 4px; }
.auth-card h1 { font: 800 34px/1 var(--display); margin: 0; }
.auth-card .btn.primary { padding: 11px 14px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.auth-card .info { color: var(--ink); font-weight: 600; font-size: 14px; margin: 0; }
.auth-card .info:empty, .auth-card .erro:empty { display: none; }
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 22px 20px 26px; gap: 18px; }
  .auth-art h2 { font-size: 44px; max-width: none; }
  .auth-demo { display: none; }
  .auth-card { padding: 22px 0 40px; }
  .auth-card .fld input { font-size: 16px; }
}

/* ---------- reservas e horários ---------- */
#rsdlg { width: min(680px, calc(100vw - 24px)); }
.rs { padding: 20px; display: grid; gap: 16px; }
.rs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rs-head h2 { margin: 0; font: 800 24px/1.1 var(--display); }
.rs-sec { display: grid; gap: 10px; padding-top: 14px; border-top: 1.5px solid var(--line); }
.rs-sec h3 { margin: 0; font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rs-sec .btn.primary { justify-self: start; }
.rs .vazio { margin: 0; color: var(--muted); font-size: 14px; }
.rs-link, .rs-bk { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; border: 1.5px solid var(--line); border-left: 6px solid var(--accent); border-radius: var(--r); padding: 10px 12px; background: var(--bg); }
.rs-link.off { border-left-color: var(--line); opacity: .75; }
.rs-info { display: grid; gap: 2px; min-width: 0; flex: 1 1 240px; }
.rs-info span { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.rs-info code { font: 12px/1.3 ui-monospace, Menlo, Consolas, monospace; color: var(--muted); overflow-wrap: anywhere; user-select: all; }
.rs-act { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.link.danger { color: var(--hot); }
.rs-dia { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rs-dia b { min-width: 118px; font-size: 14px; display: inline-block; }
.rs-dia b::first-letter { text-transform: uppercase; }
.faixa { display: inline-flex; align-items: center; gap: 6px; background: var(--sel); border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 4px 2px 12px; font-size: 14px; font-weight: 600; }
.faixa button { width: 24px; height: 24px; border-radius: 50%; text-align: center; font-weight: 800; line-height: 22px; }
.faixa button:hover { background: var(--ink); color: var(--paper); }
.rs-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rs-add select, .rs-add input { padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--bg); }
.reserva-btn { width: 100%; background: var(--accent); color: var(--on-accent); }
@media (max-width: 899px) { .rs-add select, .rs-add input { font-size: 16px; } }

/* pedidos aguardando aprovação */
.ev.pend, .chip.pend { border-style: dashed; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.38) 0 7px, transparent 7px 14px); }
.rs-bk.pend { border-left-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, var(--bg)); }
