/* Lohana Alves · Nail Design — preto e dourado, com respiros em branco e marfim. */

:root {
  --black: #0d0c0a;
  --ink: #1b1915;
  --ink-2: #2b2721;
  --gold: #a99647; /* dourado do logotipo */
  --gold-bright: #d3bd6f; /* dourado sobre preto */
  --gold-deep: #75641f; /* dourado para texto sobre claro */
  --gold-wash: #f4eeda;
  --ivory: #faf8f2;
  --white: #fff;
  --line: #e8e2d1;
  --line-strong: #d8d0ba;
  --text: #1d1b17;
  --muted: #6f695d;
  --on-dark: #f3efe4;
  --on-dark-muted: #b5ad9b;
  --danger: #a23e37;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 64px;
  --env-h: 0px; /* altura da faixa de ambiente (só fora de produção) */
  --shadow: 0 14px 34px rgba(70, 52, 10, 0.12); /* sombra quente, no tom do dourado */
  --gold-line: rgba(211, 189, 111, 0.32);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--text); font: 400 16px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; text-wrap: balance; }
h1, h2, h3, strong { font-variant-numeric: lining-nums; }
h1 { font-size: 2.1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }

.icon { width: 20px; height: 20px; flex: none; }
.sparkle { width: 11px; height: 11px; flex: none; color: var(--gold); }
.muted { color: var(--muted); }
.hint { margin-top: 12px; font-size: 0.82rem; color: var(--muted); }
.price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gap-top { margin-top: 14px; }
.stack { display: grid; gap: 16px; align-content: start; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 0.74rem; font-weight: 500; color: var(--gold-deep); }
.link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font-size: 0.9rem; font-weight: 500; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.link .icon { width: 15px; height: 15px; }

/* ---------- botões ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border: 1px solid transparent; border-radius: 999px; background: none; font-size: 0.94rem; font-weight: 500; white-space: nowrap; transition: background 0.15s, border-color 0.15s, opacity 0.15s; }
.btn .icon { width: 18px; height: 18px; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 1.02rem; }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 0.86rem; }
.btn-dark { background: var(--black); color: var(--gold-bright); }
.btn-dark:hover:not(:disabled) { background: var(--ink-2); }
.btn-gold { background: var(--gold-bright); color: var(--black); }
.btn-gold:hover { background: #dfcb85; }
.btn-outline { border-color: var(--gold); color: var(--text); background: var(--white); }
.btn-outline:hover { background: var(--gold-wash); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { background: rgba(13, 12, 10, 0.05); color: var(--text); }
.btn-text { color: var(--danger); padding-inline: 12px; }
.btn-text:hover { background: rgba(162, 62, 55, 0.08); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-sso { width: 100%; border-color: var(--line-strong); background: var(--white); }
.btn-sso:hover { background: var(--ivory); border-color: var(--gold); }
.sso-icon { width: 18px; height: 18px; }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: none; color: inherit; }
.icon-btn:hover { background: rgba(125, 110, 50, 0.14); }
.icon-btn-line { border: 1px solid var(--line-strong); background: var(--white); }

/* ---------- formulários ---------- */

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .field > legend { font-size: 0.82rem; font-weight: 500; color: var(--muted); }
.field > legend { margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.select-sm { width: auto; min-height: 38px; padding: 4px 10px; font-size: 0.9rem; }
input:not([type='checkbox']), select, textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--white); }
textarea { resize: vertical; min-height: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(169, 150, 71, 0.22); }
input[readonly] { background: var(--ivory); color: var(--muted); }
.form-error { padding: 10px 14px; border-radius: 10px; background: #f8e9e7; color: var(--danger); font-size: 0.88rem; }

.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.tab { padding: 12px 2px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; font-weight: 500; color: var(--muted); }
.tab.is-active { color: var(--text); border-color: var(--gold); }

.switch { position: relative; width: 44px; height: 26px; flex: none; padding: 0; border: 0; border-radius: 999px; background: #cfc8b6; transition: background 0.15s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform 0.15s; }
.switch.is-on { background: var(--black); }
.switch.is-on i { transform: translateX(18px); background: var(--gold-bright); }

.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); }
.segmented button { min-height: 34px; padding: 4px 18px; border: 0; border-radius: 999px; background: none; font-size: 0.88rem; font-weight: 500; color: var(--muted); }
.segmented .is-active { background: var(--black); color: var(--gold-bright); }

.search { display: flex; align-items: center; gap: 10px; max-width: 420px; margin-bottom: 16px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--muted); }
.search input { border: 0; padding-inline: 0; background: none; color: var(--text); box-shadow: none !important; }
.search:focus-within { border-color: var(--gold); }

/* ---------- peças comuns ---------- */

.avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--gold-wash); color: var(--gold-deep); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; }

.badge { display: inline-block; padding: 3px 10px; border: 1px solid transparent; border-radius: 999px; font-size: 0.74rem; font-weight: 500; white-space: nowrap; }
.badge-pending { background: var(--gold-wash); color: var(--gold-deep); border-color: var(--gold); border-style: dashed; }
.badge-confirmed { background: var(--black); color: var(--gold-bright); }
.badge-done { background: #eceae3; color: #57524a; }
.badge-cancelled { background: #f8e9e7; color: var(--danger); }
.badge-no_show { background: transparent; color: var(--danger); border-color: var(--danger); }

.empty { display: grid; justify-items: center; gap: 14px; padding: 28px 20px; text-align: center; color: var(--muted); }
.empty-dark { border-radius: 18px; background: var(--black); color: var(--on-dark); }

.list { border: 1px solid var(--line); border-radius: 16px; background: var(--white); overflow: hidden; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; }
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row > div { display: grid; gap: 2px; min-width: 0; }
.list-row .muted { font-size: 0.84rem; }
.list-row.is-off { color: var(--muted); }
.list-total { background: var(--ivory); }
.hours-list .list-row { padding-block: 10px; font-size: 0.94rem; }

.demo-box { margin-top: 24px; padding: 14px 16px; border: 1px dashed var(--gold); border-radius: 14px; background: #fffdf6; font-size: 0.84rem; color: var(--muted); }
.demo-box p { display: flex; align-items: center; gap: 8px; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.demo-box-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-bright); }
.brand img { height: 36px; width: auto; }
.app-version { font-size: 0.74rem; letter-spacing: 0.08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.auth-card .app-version { margin-top: 18px; text-align: center; }
.side .app-version { margin-top: 12px; padding-left: 6px; color: var(--on-dark-muted); }
.admin-top .app-version { margin-left: auto; color: var(--on-dark-muted); }

/* ---------- entrada ---------- */

.auth { min-height: calc(100dvh - var(--env-h)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-brand { position: relative; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 48px 32px; background: radial-gradient(120% 80% at 50% 0%, #26221a 0%, var(--black) 62%); color: var(--on-dark); text-align: center; overflow: hidden; }
.auth-logo { width: min(300px, 62%); }
.auth-tag { margin-top: 14px; font-size: 0.8rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold-bright); }
.auth-lede { margin-top: 10px; font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--on-dark-muted); }
.auth-spark { position: absolute; color: var(--gold); opacity: 0.55; }
.auth-spark-a { top: 14%; left: 16%; width: 22px; height: 22px; }
.auth-spark-b { bottom: 16%; right: 18%; width: 14px; height: 14px; }
.auth-panel { display: grid; place-items: center; padding: 40px 24px; background: var(--white); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { margin-bottom: 6px; }
.sso { display: grid; gap: 10px; margin-top: 24px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0 6px; font-size: 0.78rem; color: var(--muted); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-card .form { margin-top: 18px; }
.auth-tabs { margin-top: 22px; }
.auth-back-link { margin-bottom: 18px; font-weight: 400; }
.btn-ghost-light { border-color: rgba(211, 189, 111, 0.5); color: var(--gold-bright); background: transparent; }
.btn-ghost-light:hover { background: rgba(211, 189, 111, 0.12); }

/* ---------- página inicial pública ---------- */

.landing { min-height: 100dvh; background: var(--ivory); }
.land-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.land-top { position: absolute; top: var(--env-h); left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1200px; margin: 0 auto; padding: 16px 20px; }
.land-nav { display: none; gap: 4px; }
.land-nav button { padding: 8px 14px; border: 0; border-radius: 999px; background: none; font-size: 0.92rem; color: var(--on-dark-muted); }
.land-nav button:hover { color: var(--gold-bright); }
.land-top-actions { display: flex; align-items: center; gap: 10px; }
.land-login { padding: 8px 18px; border: 1px solid rgba(211, 189, 111, 0.5); border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--gold-bright); }
.land-login:hover { background: rgba(211, 189, 111, 0.12); }
.land-top-cta { display: none; }

.land-hero { position: relative; overflow: hidden; background: radial-gradient(90% 120% at 82% 40%, #2a251a 0%, var(--black) 62%); color: var(--on-dark); }
.land-hero-in { display: grid; max-width: 1200px; margin: 0 auto; padding: 96px 20px 48px; }
.land-art { display: grid; place-items: center; order: -1; margin-bottom: 20px; }
.land-mark { width: min(170px, 42vw); }
.land-copy { display: grid; justify-items: center; gap: 16px; text-align: center; }
.land-copy h1 { max-width: 15ch; font-size: clamp(2.3rem, 9vw, 3.1rem); line-height: 1.04; color: var(--on-dark); }
.land-sub { max-width: 38ch; font-size: 1.08rem; color: var(--on-dark-muted); }
.land-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.land-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 12px; padding-top: 18px; border-top: 1px solid rgba(211, 189, 111, 0.22); font-size: 0.92rem; color: var(--on-dark-muted); }
.land-facts li { display: flex; align-items: center; gap: 10px; white-space: nowrap; }

.land-menu { padding: 56px 0 24px; }
.land-head { margin-bottom: 28px; }
.land-head h2 { font-size: clamp(2rem, 6vw, 2.8rem); }
.land-head p { margin-top: 6px; color: var(--muted); }
.menu-grid { display: grid; gap: 36px 56px; }
.menu-cat h3 { margin-bottom: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--gold); font-size: 1.5rem; color: var(--gold-deep); }
.menu-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; }
.menu-item + .menu-item { border-top: 1px solid var(--line); }
.menu-body { flex: 1; min-width: 0; }
.menu-line { display: flex; align-items: baseline; gap: 10px; }
.menu-name { font-weight: 500; font-size: 1.04rem; }
.menu-dots { flex: 1; min-width: 16px; border-bottom: 1.5px dotted var(--line-strong); transform: translateY(-4px); }
.menu-line .price { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; font-variant-numeric: lining-nums; }
.menu-desc { margin-top: 3px; font-size: 0.88rem; color: var(--muted); }
.menu-time { color: var(--gold-deep); font-weight: 500; }

.land-how { padding: 48px 0; background: var(--gold-wash); }
.how-steps { display: grid; gap: 22px; }
.how-steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 2px; align-items: baseline; }
.how-n { grid-row: span 2; font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 3rem; line-height: 0.9; font-weight: 600; color: var(--gold); }
.how-steps strong { font-size: 1.05rem; }
.how-steps li > span:last-child { color: var(--muted); }

.land-hours { padding: 56px 0; background: var(--black); color: var(--on-dark); }
.land-hours h2 { color: var(--on-dark); font-size: clamp(1.9rem, 5vw, 2.5rem); }
.land-hours-grid { display: grid; gap: 28px; }
.land-status { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 500; color: var(--gold-bright); }
.land-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 0 4px rgba(211, 189, 111, 0.2); }
.land-hours-note { margin-top: 10px; max-width: 34ch; color: var(--on-dark-muted); }
.land-week li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(211, 189, 111, 0.18); color: var(--on-dark); font-variant-numeric: tabular-nums; }
.land-week li.is-off { color: var(--on-dark-muted); }
.land-week li.is-today { color: var(--gold-bright); font-weight: 500; }

.land-final { padding: 64px 0 72px; text-align: center; }
.land-final h2 { max-width: 20ch; margin: 0 auto 22px; font-size: clamp(1.9rem, 6vw, 2.8rem); }
.land-final .land-cta-row { justify-content: center; }
.land-final .btn-ghost-light { color: var(--gold-deep); border-color: var(--gold); }
.land-final .btn-ghost-light:hover { background: var(--gold-wash); }
.land-foot { padding: 20px; background: var(--black); text-align: center; font-size: 0.8rem; color: var(--on-dark-muted); }
.land-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(13, 12, 10, 0.94); transform: translateY(110%); transition: transform 0.25s ease; }
.land-sticky.is-visible { transform: none; }


@media (min-width: 760px) {
  .land-wrap { padding: 0 32px; }
  .land-sticky { display: none; }
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .how-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .how-steps li { grid-template-columns: 1fr; row-gap: 6px; padding-top: 18px; border-top: 1px solid var(--gold); }
  .how-n { grid-row: auto; font-size: 3.4rem; }
  .land-hours-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
}

@media (min-width: 960px) {
  .land-wrap { padding: 0 40px; }
  .land-nav { display: flex; }
  .land-top { padding: 22px 40px; }
  .land-top-cta { display: inline-flex; }
  .land-hero-in { grid-template-columns: 1.1fr 0.9fr; align-items: center; min-height: min(760px, calc(100dvh - var(--env-h))); padding: 120px 40px 72px; gap: 32px; }
  .land-art { order: 0; margin: 0; }
  .land-mark { width: min(340px, 30vw); filter: drop-shadow(0 18px 60px rgba(169, 150, 71, 0.18)); }
  .land-copy { justify-items: start; text-align: left; gap: 20px; }
  .land-copy h1 { max-width: 16ch; font-size: clamp(3rem, 4.4vw, 4.2rem); }
  .land-sub { font-size: 1.18rem; }
  .land-cta-row { justify-content: flex-start; }
  .land-facts { justify-content: flex-start; margin-top: 18px; }
  .land-menu { padding-top: 88px; }
  .land-how { padding: 72px 0; }
  .land-hours { padding: 88px 0; }
}

.thumb { width: 52px; height: 52px; flex: none; border-radius: 12px; object-fit: cover; background: var(--gold-wash); }
.thumb-lg { width: 84px; height: 84px; border-radius: 16px; }
.thumb-empty { display: inline-grid; place-items: center; color: var(--gold); }
.photo-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.detail-photo { display: grid; gap: 6px; margin-bottom: 14px; font-size: 0.84rem; color: var(--muted); }
.detail-photo img { width: 100%; max-height: 280px; border-radius: 14px; object-fit: cover; }
.row-service .thumb { width: 44px; height: 44px; }
.option .thumb { align-self: center; }
.list-row .thumb { margin-right: 4px; }
.install-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding: 14px 16px; border: 1px solid var(--gold); border-radius: 16px; background: #fffdf6; }
.install-card > div { display: grid; gap: 2px; min-width: 0; }
.install-card .muted { font-size: 0.84rem; }
.auth-link { justify-self: center; margin-top: 2px; }
.auth-mark { margin-bottom: 18px; }
.auth-back { margin-top: 22px; }
.auth-card .form .hint { margin-top: -6px; }
.boot { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; background: var(--black); color: var(--on-dark-muted); text-align: center; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-brand { padding: 36px 24px 56px; }
  .auth-logo { width: auto; height: 150px; }
  .auth-lede { font-size: 1.2rem; }
  .auth-panel { align-items: start; margin-top: -24px; padding: 28px 20px 40px; border-radius: 24px 24px 0 0; position: relative; }
}

/* ---------- área da cliente ---------- */

.client-top { border-bottom: 1px solid var(--gold-line); position: sticky; top: var(--env-h); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 24px; background: var(--black); }
.client-nav { display: flex; gap: 4px; }
.client-nav a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; color: var(--on-dark-muted); }
.client-nav a:hover { color: var(--on-dark); }
.client-nav a.is-active { background: rgba(211, 189, 111, 0.14); color: var(--gold-bright); }
.client-nav .icon { width: 18px; height: 18px; }
.client-main { max-width: 680px; margin: 0 auto; padding: 28px 20px 64px; }

.hero { display: grid; gap: 6px; }
.hero h1 { font-size: 2.6rem; }
.hero-sub { max-width: 34ch; margin: 2px 0 18px; font-size: 1.05rem; color: var(--muted); }
.status-line { font-size: 0.86rem; color: var(--gold-deep); font-weight: 500; }
.list-tap > li + li { border-top: 1px solid var(--line); }
.list-tap .list-row { width: 100%; padding: 16px; border: 0; background: none; text-align: left; transition: background 0.15s; }
.list-tap .list-row:hover { background: var(--gold-wash); }
.list-tap .list-row + .list-row { border-top: 0; }
.list-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.list-main .muted { font-size: 0.84rem; }
.list-go { width: 18px; height: 18px; color: var(--gold); }
.hours-list .is-today { background: var(--gold-wash); font-weight: 500; }
.quick-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.quick { display: grid; gap: 1px; justify-items: center; padding: 12px 6px; border: 1px solid var(--gold); border-radius: 14px; background: #fffdf6; color: var(--text); }
.quick span { font-size: 0.8rem; color: var(--gold-deep); }
.quick strong { font-family: var(--serif); font-size: 1.55rem; line-height: 1.1; }
.quick:hover { background: var(--gold-wash); }
.quick.is-active { border-color: var(--black); background: var(--black); }
.quick.is-active span, .quick.is-active strong { color: var(--gold-bright); }
.month-mark { align-self: center; flex: none; padding: 0 4px 0 8px; font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: var(--gold-deep); writing-mode: vertical-rl; transform: rotate(180deg); }
.panel-attention { margin-bottom: 20px; border-color: var(--gold); background: #fffdf6; }
.panel-attention .panel-head { border-color: var(--gold-line); }
.panel-attention .rows > li + li { border-color: var(--gold-line); }
.page-sub { margin-top: 6px; color: var(--muted); }
.kpis-quiet { margin: 20px 0 0; }
.kpis-quiet .kpi:first-child { border-color: var(--line); background: var(--white); color: var(--text); }
.kpis-quiet .kpi:first-child .kpi-label, .kpis-quiet .kpi:first-child .muted { color: var(--muted); }
.kpis-quiet .kpi:first-child strong { color: var(--text); }
.ag-col.is-addable { cursor: cell; }
.ag-col.is-addable:hover { background-color: rgba(244, 238, 218, 0.45); }
.block { margin-top: 30px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.block-title { margin-bottom: 12px; font-size: 1.4rem; }
.block-title::first-letter { text-transform: uppercase; }
.page-head { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.page-head .icon-btn { margin-left: -10px; }

.appt-card { display: flex; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.appt-date { display: grid; align-content: center; justify-items: center; width: 68px; flex: none; padding: 10px 0; border-radius: 12px; background: var(--gold-wash); color: var(--gold-deep); font-size: 0.74rem; }
.appt-date strong { font-family: var(--serif); font-size: 2rem; line-height: 1; letter-spacing: 0; color: var(--text); }
.appt-info { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.appt-info h3 { font-size: 1.3rem; }
.appt-info p { font-size: 0.9rem; color: var(--muted); }
.appt-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.appt-note { font-size: 0.84rem; color: var(--muted); }
.appt-note a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.appt-card-dark .appt-note { color: var(--on-dark-muted); }
.appt-card-dark .appt-note a { color: var(--gold-bright); }
.policy-panel { margin-bottom: 20px; }
.policy-body { display: grid; gap: 10px; padding: 16px 18px 18px; justify-items: start; }
.policy-body select { width: auto; min-width: 220px; }

.appt-card.is-cancelled h3 { text-decoration: line-through; color: var(--muted); }
.appt-card-dark { border-color: var(--black); background: var(--black); color: var(--on-dark); box-shadow: var(--shadow); }
.appt-card-dark .appt-date { background: rgba(211, 189, 111, 0.14); color: var(--gold-bright); }
.appt-card-dark .appt-date strong { color: var(--on-dark); }
.appt-card-dark .appt-info p { color: var(--on-dark-muted); }
.appt-card-dark .badge-confirmed { background: var(--gold-bright); color: var(--black); }
.appt-card-dark .badge-pending { background: none; color: var(--gold-bright); }
.appt-card-dark .btn-text { color: var(--on-dark-muted); }
.appt-card-dark .btn-text:hover { background: rgba(255, 255, 255, 0.08); }

.steps { display: flex; gap: 8px; margin-bottom: 4px; font-size: 0.84rem; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps li + li::before { content: ''; width: 18px; height: 1px; background: var(--line-strong); }
.steps li > span { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 0.78rem; font-weight: 500; }
.steps .icon { width: 14px; height: 14px; }
.steps .is-active { color: var(--text); font-weight: 500; }
.steps .is-active > span { border-color: var(--black); background: var(--black); color: var(--gold-bright); }
.steps .is-done > span { border-color: var(--gold); background: var(--gold-wash); color: var(--gold-deep); }

.options { display: grid; gap: 10px; }
.option { display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--white); text-align: left; transition: border-color 0.15s, background 0.15s; }
.option:hover { border-color: var(--line-strong); }
.option.is-on { border-color: var(--gold); background: #fffdf6; }
.option-check { display: grid; place-items: center; width: 24px; height: 24px; flex: none; margin-top: 1px; border: 1.5px solid var(--line-strong); border-radius: 50%; }
.option-check .icon { width: 14px; height: 14px; }
.option.is-on .option-check { border-color: var(--black); background: var(--black); color: var(--gold-bright); }
.option-body { display: grid; gap: 3px; flex: 1; min-width: 0; }
.option-body .muted { font-size: 0.86rem; }
.option-meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 0.8rem; color: var(--gold-deep); }
.option-meta .icon { width: 14px; height: 14px; }

.sticky-bar { position: sticky; bottom: 16px; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding: 12px 12px 12px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); box-shadow: var(--shadow); }
.sticky-bar > div { display: grid; min-width: 0; line-height: 1.25; }
.sticky-bar .muted { font-size: 0.8rem; }

.date-strip { display: flex; gap: 8px; margin: 0 -20px; padding: 2px 20px 10px; overflow-x: auto; scrollbar-width: thin; }
.date-chip { display: grid; justify-items: center; gap: 1px; min-width: 60px; flex: none; padding: 10px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--white); font-size: 0.72rem; color: var(--muted); }
.date-chip strong { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; letter-spacing: 0; color: var(--text); }
.date-chip:disabled { background: none; opacity: 0.4; cursor: not-allowed; }
.date-chip.is-active { border-color: var(--black); background: var(--black); color: var(--gold-bright); }
.date-chip.is-active strong { color: var(--on-dark); }
.date-strip { align-items: stretch; }
.slot-label { margin: 14px 0 8px; font-size: 0.74rem; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { min-height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--white); font-weight: 500; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--gold); }
.slot.is-active { border-color: var(--black); background: var(--black); color: var(--gold-bright); }

.summary { border-radius: 18px; overflow: hidden; }
.summary .list { border-radius: 0 0 18px 18px; border-top: 0; }
.summary-when { padding: 22px 20px; background: var(--black); }
.summary-when .eyebrow { color: var(--gold-bright); }
.summary-time { margin-top: 6px; font-family: var(--serif); font-size: 3rem; font-weight: 600; line-height: 1; color: var(--on-dark); }
.summary-time span { font-family: var(--sans); font-size: 0.9rem; font-weight: 400; color: var(--on-dark-muted); }

.done { display: grid; gap: 14px; justify-items: center; padding-top: 24px; text-align: center; }
.done .appt-card { width: 100%; margin: 10px 0; text-align: left; }
.done-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--black); color: var(--gold-bright); }
.done-mark .icon { width: 32px; height: 32px; }

.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head .avatar { width: 56px; height: 56px; font-size: 1.1rem; }
.profile-head div { display: grid; }
.profile-head .muted { font-size: 0.86rem; }
.client-main > .btn-ghost { margin-top: 12px; }

@media (max-width: 760px) {
  .client-top { justify-content: center; height: 56px; }
  .client-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--black); }
  .client-nav a { flex: 1; flex-direction: column; justify-content: center; gap: 3px; padding: 0; border-radius: 0; font-size: 0.68rem; }
  .client-nav a.is-active { background: none; }
  .client-nav .icon { width: 22px; height: 22px; }
  .client-main { padding: 22px 16px calc(var(--nav-h) + 40px); }
  .date-strip { margin: 0 -16px; padding-inline: 16px; }
  .sticky-bar { bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px); }
  .hero h1 { font-size: 2.2rem; }
  .steps li:not(.is-active) { font-size: 0; gap: 0; }
  .steps li:not(.is-active) > span { font-size: 0.78rem; }
  .steps li + li::before { margin-right: 8px; }
}

/* ---------- painel da profissional ---------- */

.admin { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100dvh - var(--env-h)); }
.side { position: sticky; top: var(--env-h); display: flex; flex-direction: column; height: calc(100dvh - var(--env-h)); padding: 28px 14px 18px; background: var(--black); color: var(--on-dark); }
.side-logo { width: 116px; margin: 0 auto 30px; }
.side-nav { display: grid; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; font-size: 0.94rem; color: var(--on-dark-muted); }
.side-nav a:hover { color: var(--on-dark); background: rgba(255, 255, 255, 0.05); }
.side-nav a.is-active { background: rgba(211, 189, 111, 0.14); color: var(--gold-bright); }
.side-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 14px 6px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.side-foot div { display: grid; flex: 1; min-width: 0; font-size: 0.9rem; line-height: 1.25; }
.side-foot span { font-size: 0.76rem; color: var(--on-dark-muted); }
.side .avatar { background: rgba(211, 189, 111, 0.16); color: var(--gold-bright); }
.side .icon-btn { color: var(--on-dark-muted); }
.admin-top { display: none; }
.admin-main { max-width: 1180px; padding: 32px 36px 64px; }

.page-head-admin { justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.page-head-admin h1 { margin-top: 4px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.kpi-label { font-size: 0.82rem; color: var(--muted); }
.kpi strong { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; line-height: 1.05; }
.kpi .muted { font-size: 0.8rem; }
.kpi:first-child { border-color: var(--black); background: var(--black); color: var(--on-dark); }
.kpi:first-child .kpi-label, .kpi:first-child .muted { color: var(--on-dark-muted); }
.kpi:first-child strong { color: var(--gold-bright); }

.cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: var(--white); overflow: hidden; }
.panel + .panel, .panel + .hint { margin-top: 16px; }
.stack > .panel + .panel { margin-top: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1.35rem; }

.rows > li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; }
.rows > li + li { border-top: 1px solid var(--line); }
.rows > li.is-off { color: var(--muted); }
.rows > li.is-off .row-text strong { text-decoration: line-through; }
.row-appt { flex-wrap: wrap; }
.row-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 200px; padding: 0; border: 0; background: none; text-align: left; }
.row-main:hover .row-text strong { text-decoration: underline; text-underline-offset: 3px; }
.row-time { display: grid; width: 64px; white-space: nowrap; flex: none; line-height: 1.25; font-variant-numeric: tabular-nums; }
.row-time span { font-size: 0.76rem; color: var(--muted); }
.row-text { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.row-text > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-text .muted { font-size: 0.84rem; }
.row-actions { display: flex; gap: 4px; margin-left: auto; }
.row-meta { font-size: 0.86rem; color: var(--muted); white-space: nowrap; }
.rows-tight > li { padding-inline: 0; }
.row-hours strong { width: 130px; font-weight: 500; }
.hours-range { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 0.9rem; }
.hours-range select { width: auto; min-height: 38px; padding: 4px 10px; }

.hint-top { margin: -8px 0 16px; max-width: 640px; }
.row-member { flex-wrap: wrap; }
.row-member .badge { margin-left: auto; }
.row-member .row-actions { margin-left: 0; }
.dev-grid { display: grid; }
.dev-grid > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 0.9rem; }
.dev-grid > div:first-child { border-top: 0; }
.dev-grid dt { color: var(--muted); }
.dev-grid dd { min-width: 0; overflow-wrap: anywhere; }
.dev-ok { color: #2f6b3a; font-weight: 500; }
.dev-bad { color: var(--danger); font-weight: 500; }
.dev-body { display: grid; gap: 14px; padding: 16px 18px 18px; }
.dev-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dev-preview { margin-top: 20px; }
.dev-subject { padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.dev-subject .muted { margin-right: 8px; }
.dev-preview iframe { display: block; width: 100%; height: 640px; border: 0; background: var(--ivory); }
.dev-log { display: grid; grid-template-columns: 80px 1fr; gap: 12px; font-size: 0.88rem; align-items: baseline; }
.dev-log.is-error span:last-child { color: var(--danger); }
.panel + .panel { margin-top: 16px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; font-size: 0.82rem; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 12px 18px; font-size: 0.72rem; font-weight: 500; text-align: left; color: var(--muted); }
.table td { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.is-off { color: var(--muted); }
.table tr.is-link { cursor: pointer; }
.table tr.is-link:hover { background: var(--ivory); }
.table-compact td, .table-compact th { padding-block: 9px; }
.cell-client { display: flex; align-items: center; gap: 12px; }
.cell-client > span:last-child { display: grid; line-height: 1.3; }
.cell-client .muted { font-size: 0.82rem; }

/* conflitos */

.nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: auto; padding: 0 6px; border-radius: 999px; background: var(--danger); color: var(--white); font: 600 0.72rem/1 var(--sans); }
.conflict-panel { margin-bottom: 20px; border-color: #e2b6b1; background: #fdf4f2; }
.conflict-panel .panel-head { border-color: #efd0cc; }
.conflict-panel h2 { display: flex; align-items: center; gap: 10px; }
.conflict-panel h2 .icon { color: var(--danger); }
.conflict-panel .nav-badge { margin-left: 0; }
.conflict-panel .rows > li + li { border-color: #efd0cc; }
.conflict-panel .row-text > * { white-space: normal; }
.conflict-banner { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 14px; padding: 12px 16px; border: 1px solid #e2b6b1; border-radius: 14px; background: #fdf4f2; color: #7c2f29; text-align: left; font-size: 0.92rem; }
.conflict-banner span { flex: 1; }
.conflict-banner u { font-weight: 500; text-underline-offset: 3px; }
.conflict-card { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; }
.conflict-card header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.86rem; }
.conflict-items { margin-top: 8px; }
.conflict-items li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 7px 0; font-size: 0.92rem; }
.conflict-items li + li { border-top: 1px solid var(--line); }
.conflict-items strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.conflict-items span { flex: 1; min-width: 140px; color: var(--muted); }
.conflict-fixes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge-conflict { background: #f8e9e7; color: var(--danger); }
.form-warning { display: grid; gap: 6px; justify-items: start; margin-top: 4px; padding: 12px 14px; border: 1px solid #e2b6b1; border-radius: 12px; background: #fdf4f2; color: #7c2f29; font-size: 0.88rem; }
.form-warning strong { display: flex; align-items: center; gap: 8px; }
.form-warning .icon { width: 17px; height: 17px; }
.form-warning ul { padding-left: 18px; list-style: disc; }
.form-warning .link { color: #7c2f29; }

/* agenda */

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.toolbar-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar-nav h2 { margin-left: 8px; font-size: 1.5rem; }
.toolbar-nav h2::first-letter { text-transform: uppercase; }
.agenda-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.agenda { min-width: calc(54px + var(--cols) * 118px); }
.ag-head, .ag-body { display: grid; grid-template-columns: 54px repeat(var(--cols), minmax(0, 1fr)); }
.ag-head { border-bottom: 1px solid var(--line); }
.ag-day { display: grid; justify-items: center; gap: 2px; padding: 10px 0; border: 0; border-left: 1px solid var(--line); background: none; font-size: 0.7rem; color: var(--muted); }
.ag-day strong { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0; color: var(--text); }
.ag-day:hover strong { background: var(--gold-wash); }
.ag-day.is-today strong { background: var(--black); color: var(--gold-bright); }
.ag-body { padding: 12px 0; }
.ag-times { position: relative; }
.ag-times span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ag-col { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px); }
.ag-off { position: absolute; left: 0; right: 0; background: rgba(29, 27, 23, 0.045); }
.ag-closed { display: grid; place-items: center; font-size: 0.72rem; color: var(--muted); }
.ag-event { position: absolute; left: 4px; right: 4px; display: flex; flex-direction: column; justify-content: flex-start; padding: 5px 9px; border: 1.5px solid transparent; border-radius: 9px; text-align: left; font-size: 0.76rem; line-height: 1.3; overflow: hidden; }
.ag-event strong, .ag-event span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-event strong { font-weight: 600; }
.ag-event:hover { filter: brightness(1.12); z-index: 2; }
.ev-confirmed { background: var(--black); color: var(--gold-bright); }
.ev-confirmed span { color: var(--on-dark-muted); }
.ev-pending { background: var(--gold-wash); color: var(--text); border-color: var(--gold); border-style: dashed; }
.ev-done { background: #eceae3; color: #57524a; }
.ev-no_show { background: #f8e9e7; color: var(--danger); border-color: #e2b6b1; }
.ag-event.is-conflict { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--danger); z-index: 1; }
.ag-event.is-conflict strong::before { content: '⚠ '; }
.ag-block { position: absolute; left: 4px; right: 4px; display: flex; align-items: flex-start; gap: 6px; padding: 5px 9px; border-radius: 9px; background: repeating-linear-gradient(135deg, #f1eee6 0 6px, #e4dfd2 6px 8px); font-size: 0.74rem; color: var(--muted); overflow: hidden; }
.ag-block .icon { width: 13px; height: 13px; margin-top: 2px; }
.ag-now { position: absolute; left: 0; right: 0; z-index: 3; height: 2px; background: var(--danger); pointer-events: none; }
.ag-now::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 0.8rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend i { position: static; display: block; width: 16px; height: 16px; padding: 0; border-width: 1.5px; border-style: solid; border-color: transparent; border-radius: 5px; }
.legend i.ev-pending { border-color: var(--gold); border-style: dashed; }
.legend i.is-conflict { border-color: var(--danger); }

@media (max-width: 900px) {
  .admin { display: block; }
  .side { position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 30; display: block; height: auto; padding: 0 0 env(safe-area-inset-bottom); }
  .side-logo, .side-foot, .side .app-version { display: none; }
  .side-nav { display: flex; height: var(--nav-h); }
  .side-nav a { flex: 1; flex-direction: column; justify-content: center; gap: 3px; padding: 0; border-radius: 0; font-size: 0.66rem; }
  .side-nav a.is-active { background: none; }
  .side-nav a { position: relative; }
  .side-nav .nav-badge { position: absolute; top: 8px; left: calc(50% + 6px); margin: 0; }
  .admin-top { position: sticky; top: var(--env-h); z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 8px 0 16px; background: var(--black); color: var(--on-dark-muted); }
  .admin-main { padding: 22px 16px calc(var(--nav-h) + 40px); }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi strong { font-size: 1.9rem; }
  .cols { grid-template-columns: 1fr; }
  .page-actions .btn { flex: 1; }
}
@media (max-width: 700px) {
  .hide-sm { display: none; }
  .table th, .table td { padding-inline: 12px; }
  .row-service { flex-wrap: wrap; }
  .row-service .row-text { flex-basis: 100%; }
  .row-service .row-meta { margin-right: auto; }
  .row-hours { flex-wrap: wrap; }
}

/* ---------- faixa de ambiente (dev / local) ---------- */

body.has-env-bar { --env-h: 30px; padding-top: var(--env-h); }
.env-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: flex; align-items: center; justify-content: center; gap: 10px; height: var(--env-h); padding: 0 12px; font-size: 0.78rem; color: #fff; white-space: nowrap; overflow: hidden; }
.env-bar strong { padding: 1px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.28); letter-spacing: 0.12em; }
.env-bar span { overflow: hidden; text-overflow: ellipsis; }
.env-dev { background: repeating-linear-gradient(135deg, #c2410c 0 14px, #b03a0a 14px 28px); }
.env-local { background: repeating-linear-gradient(135deg, #1d4ed8 0 14px, #1a44bd 14px 28px); }

/* ---------- modal e toast ---------- */

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(13, 12, 10, 0.6); animation: fade 0.15s; }
.modal { width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); overflow-y: auto; border-radius: 22px; background: var(--white); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); animation: rise 0.2s; }
.modal-wide { max-width: 580px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 14px 6px 22px; }
.modal-head h2 { font-size: 1.6rem; }
.modal-body { padding: 8px 22px 22px; }
.modal-text { color: var(--muted); }
.modal-sub { margin: 18px 0 4px; font-size: 1.2rem; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.detail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.detail-head > div { display: grid; gap: 2px; flex: 1; min-width: 0; justify-items: start; }
.detail > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.detail dt { font-size: 0.84rem; color: var(--muted); }
.detail dd::first-letter { text-transform: uppercase; }
.durations { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.durations summary { font-weight: 500; cursor: pointer; }
.durations summary .muted { font-weight: 400; font-size: 0.86rem; }
.durations .hint { margin: 8px 0 4px; }
.durations .rows > li { padding-block: 8px; }
.mini-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini-kpis div { display: grid; padding: 12px 8px; border-radius: 14px; background: var(--ivory); text-align: center; }
.mini-kpis strong { font-family: var(--serif); font-size: 1.5rem; }
.mini-kpis span { font-size: 0.74rem; color: var(--muted); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; max-height: 232px; padding: 8px; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 12px; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 0.9rem; line-height: 1.3; cursor: pointer; }
.check:hover { background: var(--ivory); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--black); }
.check small { display: block; font-size: 0.78rem; color: var(--muted); }

@media (max-width: 600px) {
  .modal-backdrop { place-items: end center; padding: 0; }
  .modal { max-width: none; max-height: 92dvh; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .checks { grid-template-columns: 1fr; }
  .field-row-3 { grid-template-columns: 1fr 1fr; }
  .field-row-3 > :first-child { grid-column: 1 / -1; }
  .modal-actions .btn { flex: 1; }
}

#toast-root { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + 24px); z-index: 100; display: grid; justify-items: center; gap: 8px; padding: 0 16px; pointer-events: none; }
.toast { padding: 11px 20px; border: 1px solid var(--gold); border-radius: 999px; background: var(--black); color: var(--on-dark); font-size: 0.9rem; box-shadow: var(--shadow); animation: rise 0.2s; transition: opacity 0.3s; }
.toast-out { opacity: 0; }

/* ---------- animações de entrada (classe aplicada em #app ao abrir uma tela) ---------- */

.is-entering .client-main > *,
.is-entering .admin-main > *,
.is-entering .auth-card > *,
.is-entering .kpi,
.is-entering .cols > * { animation: enter 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.is-entering :is(.client-main, .admin-main, .auth-card, .kpis, .cols) > :nth-child(2) { animation-delay: 0.07s; }
.is-entering :is(.client-main, .admin-main, .auth-card, .kpis, .cols) > :nth-child(3) { animation-delay: 0.14s; }
.is-entering :is(.client-main, .admin-main, .auth-card, .kpis, .cols) > :nth-child(4) { animation-delay: 0.21s; }
.is-entering :is(.client-main, .admin-main, .auth-card, .kpis, .cols) > :nth-child(5) { animation-delay: 0.28s; }
.is-entering :is(.client-main, .admin-main, .auth-card, .kpis, .cols) > :nth-child(6) { animation-delay: 0.35s; }
.is-entering :is(.client-main, .admin-main, .auth-card, .kpis, .cols) > :nth-child(n + 7) { animation-delay: 0.42s; }
.is-entering .ag-event, .is-entering .ag-block { animation: fade 0.5s 0.25s backwards; }
.is-entering .done-mark { animation: pop 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) backwards; }

.is-entering .auth-logo { animation: logo-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.is-entering .auth-tag { animation: enter 0.6s 0.45s backwards; }
.is-entering .auth-lede { animation: enter 0.6s 0.6s backwards; }
.is-entering .auth-panel { animation: fade 0.5s backwards; }
.auth-spark { animation: twinkle 4.5s ease-in-out infinite; }
.auth-spark-b { animation-delay: -2s; }

@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } }
@keyframes logo-in { from { opacity: 0; transform: scale(0.94); filter: blur(8px); } }
@keyframes twinkle { 50% { opacity: 0.15; transform: scale(0.6) rotate(45deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
