/* Eternis galerias: visual em estilo Material (Roboto, cartões brancos, azul como cor de ação). */
:root {
  --bg: #f8f6f4;
  --surface: #ffffff;
  --text: rgba(0, 0, 0, .87);
  --text-2: rgba(0, 0, 0, .6);
  --text-3: rgba(0, 0, 0, .4);
  --line: rgba(0, 0, 0, .12);
  /* Cores da marca (tiradas da logo): bronze #A08671 e grafite #5E5E5E */
  --primary: #a08671;
  --primary-ink: #806651;
  --primary-hover: #8f7560;
  --primary-soft: #f4eee9;
  --graphite: #5e5e5e;
  --done: #806651;
  --ok: #2e7d4f;
  --warn: #d84b3e;
  --wa: #1fa855;
  --teal: #00897b;
  --pill-done: #dd5a4f;
  --shadow: 0 1px 4px rgba(0, 0, 0, .14);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .2);
  --shadow-3: 0 8px 28px rgba(0, 0, 0, .28);
  --radius: 3px;
  --maxw: 1160px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.5 Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-ink); text-decoration: none; }
h1 { font-size: 22px; font-weight: 400; margin: 0 0 2px; }
h2 { font-size: 18px; font-weight: 400; margin: 0 0 4px; }
h3 { font-size: 12px; font-weight: 500; margin: 0; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
p { margin: 0 0 10px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.muted { color: var(--text-2); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; word-break: break-all; }
.code { font-family: ui-monospace, Menlo, monospace; letter-spacing: .04em; color: var(--text); }
.warn { color: var(--warn); }
.error { color: var(--warn); }
.ellipsis { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spacer { flex: 1; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
.pad { padding: 16px; }

/* ---------- Ícones ---------- */
.ic { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.ic.huge { width: 52px; height: 52px; stroke-width: 1.4; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border: 0; border-radius: 2px; background: transparent;
  font: 500 13.5px/1 Roboto, -apple-system, sans-serif; text-transform: uppercase; letter-spacing: .03em;
  color: rgba(0, 0, 0, .72); cursor: pointer; white-space: nowrap; transition: background .15s, box-shadow .15s;
}
.btn .ic { width: 18px; height: 18px; }
.btn:hover { background: rgba(0, 0, 0, .05); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-hover); }
.btn.raised { height: 48px; box-shadow: var(--shadow-2); }
.btn.raised:hover { box-shadow: 0 4px 10px rgba(0, 0, 0, .22); }
.btn.outline { border: 1px solid var(--line); }
.btn.block { width: 100%; height: 48px; }
.btn.small { height: 32px; padding: 0 8px; font-size: 12px; }
.btn.danger, button.danger { color: var(--warn); }
.btn.primary-text { color: var(--primary-ink); }
.btn.wa-text { color: var(--wa); }
.btn.wa { background: var(--wa); color: #fff; }
.iconbtn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: transparent; color: rgba(0, 0, 0, .6); cursor: pointer; position: relative; list-style: none;
}
.iconbtn:hover { background: rgba(0, 0, 0, .06); }
.iconbtn::-webkit-details-marker, .menu summary::-webkit-details-marker { display: none; }

/* ---------- Campos ---------- */
.field { display: block; margin: 0 0 18px; }
.field-label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 2px; }
.field-hint { display: block; font-size: 12px; color: var(--text-3); margin-top: 4px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text); background: transparent;
  border: 0; border-bottom: 1px solid rgba(0, 0, 0, .3); border-radius: 0; padding: 8px 0 7px; outline: none;
}
select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 2px center / 16px no-repeat; padding-right: 22px; cursor: pointer; }
textarea { resize: vertical; border: 1px solid rgba(0, 0, 0, .2); border-radius: 2px; padding: 8px 10px; }
input:focus, select:focus { border-bottom: 2px solid var(--primary); padding-bottom: 6px; }
textarea:focus { border-color: var(--primary); }
input[type="file"] { border: 1px dashed rgba(0, 0, 0, .25); padding: 14px; border-radius: 2px; font-size: 13px; }
input[type="checkbox"] { width: auto; }
label.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

/* Interruptor */
.switch-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin: 4px 0 18px; cursor: pointer; }
.switch-row strong { display: block; font-weight: 400; font-size: 15px; }
.switch-row small { display: block; color: var(--text-2); font-size: 12.5px; max-width: 320px; }
.switch {
  appearance: none; flex: none; width: 36px; height: 14px; border-radius: 7px; background: rgba(0, 0, 0, .3);
  position: relative; cursor: pointer; margin: 0 4px; border: 0; padding: 0; transition: background .15s;
}
.switch::after {
  content: ""; position: absolute; top: -3px; left: -4px; width: 20px; height: 20px; border-radius: 50%;
  background: #f5f5f5; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .15s, background .15s;
}
.switch:checked { background: rgba(0, 137, 123, .5); }
.switch:checked::after { transform: translateX(20px); background: var(--teal); }

/* ---------- Cartões e estrutura ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card-head h2 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; margin: 0; }
.card-head form { margin: 0; }
.alert { padding: 12px 16px; border-radius: var(--radius); background: #fdecea; margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.alert.ok { background: #e7f4ec; color: var(--ok); }
.empty { text-align: center; padding: 48px 16px; color: var(--text-2); }
.empty .ic.huge { color: var(--text-3); margin-bottom: 8px; }

/* ---------- Topo do estúdio ---------- */
.appbar { background: var(--surface); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 20; }
.appbar-top, .appnav { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.appbar-top { height: 60px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.appbar-title { display: flex; align-items: center; min-width: 0; flex: 1; }
.studio-name { font-size: 18px; font-weight: 500; color: rgba(0, 0, 0, .64); white-space: nowrap; }
.crumb { font-size: 16px; color: var(--text-2); border-left: 1px solid var(--line); margin-left: 18px; padding-left: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar-right { display: flex; align-items: center; gap: 4px; }
.bell .dot { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #e53935; color: #fff; font-size: 10px; font-weight: 500; display: grid; place-items: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #c7c7c7; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 500; cursor: pointer; list-style: none; margin-left: 6px; }
.appnav { display: flex; justify-content: center; gap: 4px; height: 52px; overflow-x: auto; scrollbar-width: none; }
.appnav a { display: flex; align-items: center; gap: 8px; padding: 0 18px; color: var(--text); border-bottom: 2px solid transparent; white-space: nowrap; }
.appnav a:hover { background: rgba(0, 0, 0, .03); }
.appnav a .ic { width: 18px; height: 18px; color: rgba(0, 0, 0, .7); }
.appnav a.on { color: var(--primary-ink); font-weight: 500; border-bottom-color: var(--primary-ink); }
.appnav a.on .ic { color: var(--primary-ink); }
@media (max-width: 640px) {
  .appnav { justify-content: flex-start; }
  .appnav a { padding: 0 12px; }
  .crumb { display: none; }
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 24px 16px 40px; }
.appfoot { text-align: center; color: var(--text-3); font-size: 12px; padding: 8px 16px 32px; }

/* Menus "⋮" */
.menu { position: relative; display: inline-block; }
.menu > summary { list-style: none; cursor: pointer; }
.menu-list {
  position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 220px; background: var(--surface);
  border-radius: 2px; box-shadow: var(--shadow-3); padding: 6px 0; display: grid;
}
.menu-list.right { left: auto; right: 0; }
.menu-list.pad { padding: 16px 16px 0; min-width: 260px; }
.menu-list > a, .menu-list > button, .menu-list form button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px; border: 0; background: none;
  font: inherit; font-size: 14px; color: var(--text); text-align: left; cursor: pointer; white-space: nowrap;
}
.menu-list > a:hover, .menu-list > button:hover, .menu-list form button:hover { background: rgba(0, 0, 0, .05); }
.menu-list form { margin: 0; }
.menu-list .ic { width: 18px; height: 18px; color: var(--text-2); }
.menu-list button.danger, .menu-list button.danger .ic { color: var(--warn); }
.menu-list button.on { color: var(--primary-ink); font-weight: 500; }

/* ---------- Lista de galerias ---------- */
.toolbar, .pagebar { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.pagebar { margin-bottom: 16px; }
.page-title { font-size: 22px; margin: 0; }
.searchbar { display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 12px 0 20px; margin-bottom: 28px; }
.searchbar > .ic { color: rgba(0, 0, 0, .6); }
.searchbar input { border: 0; font-size: 16px; padding: 0; height: 100%; }
.searchbar input:focus { border: 0; padding: 0; }
.section-label { font-size: 13px; font-weight: 500; color: var(--text-2); margin: 0 0 10px 24px; }
.list { overflow: hidden; }
.list-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 190px 220px; align-items: center; gap: 20px;
  padding: 12px 24px; color: var(--text); border-bottom: 1px solid var(--line); min-height: 68px;
}
.list-row:last-of-type { border-bottom: 0; }
a.list-row:hover { background: #fafafa; }
.list-row.static { grid-template-columns: 44px minmax(0, 1fr) auto; }
.list-main { display: grid; min-width: 0; }
.list-main strong { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-empty { padding: 24px; text-align: center; margin: 0; }
.round-cover { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #dcdcdc; color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 500; flex: none; }
.round-cover img { width: 100%; height: 100%; object-fit: cover; }
.round-cover.big { width: 56px; height: 56px; font-size: 18px; background: var(--primary); }
.chips { display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; justify-content: flex-start; }
.chip { background: #ececec; border-radius: 16px; padding: 5px 12px; font-size: 13px; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .list-row { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; padding: 12px 16px; }
  .list-row .status { grid-column: 2; }
  .list-row .chips { grid-column: 2; }
}

/* Status: ponto cheio (finalizada) ou círculo vazado (aguardando) */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; color: var(--text-2); white-space: nowrap; }
.status i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-block; }
.status.s-finalizada { color: var(--done); }
.status.s-finalizada i { background: currentColor; }
.status.s-vazia { color: var(--text-3); }
.status.s-vazia i { border-style: dashed; }

/* Notificações */
.notifications-card { margin-top: 32px; }
.notifications { list-style: none; padding: 0; margin: 0; }
.notifications li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.notifications li:last-child { border-bottom: 0; }
.notifications li a { color: var(--text); }
.notifications li.unread { background: var(--primary-soft); }
.notifications li.unread a { font-weight: 500; }

/* ---------- Página da galeria ---------- */
.sheet { padding: 24px 24px 28px; }
.sheet-head { margin-bottom: 28px; }
.sheet-head.row { align-items: center; }
.notice-line { background: #fff8e5; padding: 6px 10px; border-radius: 2px; display: inline-block; margin-top: 6px; }
.sheet-section { margin-top: 32px; }
.sheet-section:first-of-type { margin-top: 0; }
.section-title { font-size: 18px; font-weight: 400; margin: 0 0 2px; }
.sheet-section > .muted { margin-bottom: 18px; }
.sheet-foot { border-top: 1px solid var(--line); margin: 24px -24px -28px; padding: 14px 24px; display: flex; justify-content: flex-end; background: #fafafa; }
.narrow-sheet { max-width: 720px; margin: 0 auto; }
.narrow-form { max-width: 620px; }
.job { color: var(--primary-ink); font-weight: 500; min-height: 0; }
.job:empty { display: none; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, 250px); gap: 16px; padding: 4px 8px; }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; } }
.tile { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); min-height: 260px; color: var(--text); }
.tile-add {
  box-shadow: none; border: 3px dashed rgba(0, 0, 0, .14); background: rgba(0, 0, 0, .012);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  font: inherit; color: rgba(0, 0, 0, .55); cursor: pointer; padding: 20px;
}
.tile-add:hover { border-color: var(--primary); color: var(--primary-ink); }
.tile-add strong { font-size: 20px; font-weight: 500; }
.tile-add span { font-size: 13px; color: var(--text-3); max-width: 170px; }
.folder-card { display: flex; flex-direction: column; overflow: hidden; }
.folder-card:hover { box-shadow: var(--shadow-2); }
.folder-cover { height: 140px; flex: none; overflow: hidden; background: #eee; display: grid; place-items: center; color: var(--text-3); }
.folder-cover img { width: 100%; height: 140px; object-fit: cover; display: block; }
.folder-body { padding: 14px 16px; display: grid; gap: 6px; min-width: 0; }
.folder-body strong { font-size: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv { margin: 0; display: grid; gap: 2px; }
.kv > div { display: flex; justify-content: space-between; gap: 8px; color: rgba(0, 0, 0, .7); }
.kv dt { margin: 0; }
.kv dd { margin: 0; font-weight: 500; color: var(--text); }
.kv .warn dd, .kv .warn dt { color: var(--warn); }
.client-card { padding: 12px 16px 8px; display: flex; flex-direction: column; gap: 4px; }
.client-card-top { display: flex; align-items: center; margin: 0 -8px 6px 0; }
.client-card-top .iconbtn { width: 34px; height: 34px; }
.client-name { font-size: 16px; font-weight: 500; color: var(--text); }
.client-card .kv { margin: 12px 0 4px; }
.client-card-actions { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -8px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 32px; overflow: hidden; }
.stat { background: var(--surface); padding: 14px 16px; display: grid; }
.stat span { color: var(--text-2); font-size: 12.5px; }
.stat strong { font-size: 28px; font-weight: 500; }
.stat small { font-size: 15px; color: var(--text-2); font-weight: 400; }
.stat.warn strong { color: var(--warn); }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr 1fr; } }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.thumbs figure { margin: 0; position: relative; background: #eee; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.thumbs figcaption { font-size: 11.5px; color: var(--text-2); padding: 4px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--bg); }
.thumbs .remove { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s; }
.thumbs .remove .ic { width: 16px; height: 16px; }
.thumbs figure:hover .remove { opacity: 1; }
@media (hover: none) { .thumbs .remove { opacity: 1; } }
.thumbs figure.is-selected { outline: 5px solid var(--primary); outline-offset: -5px; }
.sel-band { position: absolute; left: 0; right: 0; top: calc(100% - 52px); background: var(--primary); color: #fff; text-align: center; font-size: 11px; font-weight: 500; text-transform: uppercase; padding: 3px; }
.comments { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.comments li { display: grid; gap: 2px; padding: 10px 12px; background: #fafafa; border-left: 3px solid var(--primary); }
.sheet-section textarea.mono { margin-bottom: 10px; }

/* ---------- Janelas (modais) ---------- */
dialog.modal { border: 0; padding: 0; border-radius: 3px; box-shadow: var(--shadow-3); width: min(600px, calc(100vw - 24px)); max-height: calc(100vh - 40px); color: var(--text); }
dialog.small-modal { width: min(460px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(0, 0, 0, .5); }
.modal-form { display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 14px 24px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 21px; margin: 0; }
.modal-body { padding: 24px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #fafafa; border-top: 1px solid var(--line); }
.group-title { font-size: 16px; margin: 0 0 2px; display: flex; gap: 8px; align-items: center; }
.sub-form { display: grid; gap: 4px; justify-items: start; }
.sub-form .field, .sub-form input[type="file"] { width: 100%; }
.sub-form input[type="file"] { margin: 8px 0 12px; }
.sub-form progress { width: 100%; }
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 24px; counter-reset: s; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); counter-increment: s; }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: #bdbdbd; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 500; }
.steps li.on { color: var(--text); font-weight: 500; }
.steps li.on::before { background: var(--primary); }
.steps li + li::after { content: none; }

/* ---------- Fila de produção ---------- */
.filters { display: flex; align-items: center; gap: 14px; padding: 6px 16px; margin: 0; }
.filters .ic { color: var(--text-2); }
.filters select { width: auto; border: 0; padding: 6px 22px 6px 0; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 14px; overflow-x: auto; padding: 8px 2px 16px; }
.column { background: #eeeeee; border-radius: var(--radius); padding: 12px 10px; min-height: 60vh; }
.column h3 { display: flex; justify-content: space-between; align-items: center; margin: 2px 4px 12px; }
.column.over { outline: 2px dashed var(--primary); outline-offset: -2px; background: var(--primary-soft); }
.count { background: var(--surface); border-radius: 10px; padding: 1px 8px; font-weight: 500; color: var(--text); }
.cards { display: grid; gap: 8px; min-height: 40px; }
.kcard { background: var(--surface); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); cursor: grab; display: grid; gap: 3px; border-left: 3px solid transparent; }
.kcard:hover { box-shadow: var(--shadow-2); }
.kcard.late { border-left-color: var(--warn); }
.kcard a { color: var(--text); font-size: 14.5px; }
.kcard .ic { width: 14px; height: 14px; margin-top: -2px; }
.kcard.dragging { opacity: .5; }
.tag { justify-self: start; margin-top: 4px; font-size: 11px; font-weight: 500; background: #e3f6ea; color: var(--wa); padding: 2px 8px; border-radius: 10px; }
body.studio main:has(.board) { max-width: none; }

/* ---------- Login do estúdio ---------- */
body.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: linear-gradient(160deg, #eef3f8, #f9f9f9 60%); }
.login-card { background: var(--surface); box-shadow: var(--shadow-2); border-radius: var(--radius); padding: 36px 32px 28px; width: min(400px, 100%); }
.login-brand { font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); margin-bottom: 18px; }
.login-card h1 { font-size: 24px; }
.login-card .muted { margin-bottom: 28px; }

/* =================== Cliente =================== */
body.client { background: var(--bg); }

/* Entrada com código */
body.gate { min-height: 100vh; }
.gate-hero { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(ellipse at 50% 30%, #3a3a3a, #141414 70%); color: #fff; text-align: center; }
.gate-in { width: min(420px, 100%); }
.gate-studio { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; opacity: .75; margin-bottom: 14px; }
.gate-hero h1 { font-size: clamp(34px, 7vw, 56px); font-weight: 400; line-height: 1.1; margin-bottom: 28px; }
.gate-card { background: var(--surface); color: var(--text); text-align: left; border-radius: var(--radius); box-shadow: var(--shadow-3); padding: 24px; }
.gate-card input { font-size: 20px; letter-spacing: .12em; text-transform: uppercase; }

/* Capa */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 420px; display: grid; place-items: center; overflow: hidden; background: #1b1b1b; color: #fff; text-align: center; }
.hero-bg { position: absolute; inset: -20px; background: center / cover no-repeat; filter: blur(2px); transform: scale(1.02); }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .52); }
.hero-in { position: relative; z-index: 1; padding: 0 20px; }
.hero-count { font-size: 14px; font-weight: 300; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px; }
.hero h1 { font-size: clamp(40px, 9vw, 72px); font-weight: 400; line-height: 1.08; margin: 0 0 6px; }
.hero-studio { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; opacity: .8; margin-bottom: 28px; }
.scroll-hint { position: absolute; z-index: 1; bottom: 84px; left: 50%; transform: translateX(-50%); width: 24px; height: 36px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 12px; background: none; cursor: pointer; padding: 0; }
.scroll-hint span { position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(10px); } }

/* Barra fixa */
.cbar { position: sticky; top: 0; z-index: 10; height: 60px; background: var(--surface); display: flex; align-items: center; gap: 12px; padding: 0 24px; transition: box-shadow .2s; }
.cbar.stuck { box-shadow: 0 1px 4px rgba(13, 26, 44, .2); }
.cbar-title { display: grid; min-width: 0; line-height: 1.25; }
.cbar-title strong { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbar-title span { font-size: 11.5px; color: var(--text-2); letter-spacing: .12em; text-transform: uppercase; }
.cbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.folder-select { width: auto; max-width: 180px; font-size: 13.5px; }
.counter { display: grid; text-align: right; line-height: 1.2; }
.counter strong { font-size: 16px; font-weight: 500; }
.counter strong.over { color: var(--warn); }
.counter span { font-size: 11.5px; color: var(--text-2); }
.filter-menu summary.btn { padding: 0 10px; }
@media (max-width: 600px) {
  .cbar { padding: 0 8px 0 14px; gap: 8px; }
  .cbar-title span { display: none; }
  .filter-menu #filter-label { display: none; }
  .folder-select { max-width: 110px; }
}
.client-notice { max-width: 900px; margin: 16px auto 0; padding: 10px 16px; text-align: center; color: var(--text-2); }
.client-notice.locked { background: #fff3e0; color: var(--text); border-radius: var(--radius); }

/* Mosaico */
.masonry { display: flex; gap: 12px; align-items: flex-start; padding: 20px 32px 120px; }
.mcol { flex: 1; min-width: 0; display: grid; gap: 12px; }
@media (max-width: 600px) { .masonry { gap: 10px; padding: 12px 12px 110px; } .mcol { gap: 10px; } }
.grid-empty { width: 100%; text-align: center; color: var(--text-2); padding: 60px 16px; }
.tile-photo, .masonry .tile { position: relative; background: #e9e9e9; cursor: zoom-in; border-radius: 2px; overflow: hidden; min-height: 0; box-shadow: none; }
.masonry .tile img { width: 100%; height: auto; display: block; pointer-events: none; }
.masonry .tile .shield, .stage .shield { position: absolute; inset: 0; }
.masonry .tile .band { display: none; }
.masonry .tile.selected { background: var(--primary); padding: 5px 5px 0; }
.masonry .tile.selected .band { display: block; color: #fff; text-align: center; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; line-height: 34px; }
.masonry .tile .marks { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; z-index: 2; opacity: 0; transition: opacity .15s; }
.masonry .tile:hover .marks, .masonry .tile.selected .marks, .masonry .tile.favorite .marks { opacity: 1; }
@media (hover: none) { .masonry .tile .marks { opacity: 1; } }
.mark { width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 7px; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; display: grid; place-items: center; }
.mark svg { width: 20px; height: 20px; }
.mark.sel.on { background: #fff; color: var(--primary); }
.mark.fav.on { background: #fff; color: #e0466f; }
.mark.fav.on svg { fill: currentColor; }
.masonry .tile.selected .mark.fav:not(.on) { background: rgba(0, 0, 0, .35); }
.has-comment { position: absolute; left: 10px; top: 10px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; display: grid; place-items: center; z-index: 2; }
.masonry .tile.selected .has-comment { left: 13px; top: 13px; }
.has-comment svg { width: 15px; height: 15px; }

/* Pílula de status */
.pill-bar { position: fixed; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 15; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.pill { pointer-events: auto; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 4px 4px 24px; border-radius: 24px; background: #323232; color: #fff; box-shadow: var(--shadow-3); font-size: 14px; text-transform: uppercase; letter-spacing: .02em; max-width: 100%; }
.pill b { font-weight: 700; }
.pill button { height: 40px; padding: 0 18px; border: 0; border-radius: 20px; background: var(--primary); color: #fff; font: 500 13px Roboto, sans-serif; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; white-space: nowrap; }
.pill button:hover { background: var(--primary-hover); }
.pill.over { background: #5d4037; }
.pill.done, .pill.expired { background: var(--pill-done); padding-right: 24px; }
.pill.wa { background: var(--wa); padding: 0 22px; font-size: 12.5px; color: #fff; }
@media (max-width: 480px) { .pill { font-size: 12px; gap: 8px; padding-left: 16px; } .pill button { padding: 0 12px; font-size: 12px; } }

/* Foto ampliada */
.viewer { position: fixed; inset: 0; z-index: 40; background: rgba(21, 21, 21, .94); color: #fff; display: grid; grid-template-rows: 60px 1fr auto; }
.viewer-top { display: flex; align-items: center; gap: 4px; padding: 0 8px; }
.viewer-name { display: flex; align-items: center; gap: 8px; font-size: 15px; min-width: 0; margin-left: 6px; }
.viewer-name .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-name .ic { opacity: .8; }
.vbtn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.vbtn:hover { background: rgba(255, 255, 255, .1); }
.vbtn .ic { width: 24px; height: 24px; }
.vbtn.fav.on { color: #ff6b8e; }
.vbtn.fav.on .heart { fill: currentColor; }
.viewer .stage { position: relative; display: grid; place-items: center; overflow: hidden; padding: 0 72px; }
.viewer .stage img { max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100svh - 140px); object-fit: contain; pointer-events: none; user-select: none; box-shadow: 0 6px 30px rgba(0, 0, 0, .5); }
.viewer .nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 56px; height: 72px; border: 0; background: none; color: #fff; cursor: pointer; display: grid; place-items: center; opacity: .85; }
.viewer .nav .ic { width: 40px; height: 40px; stroke-width: 1.4; }
.viewer .nav:hover { opacity: 1; }
.viewer .prev { left: 4px; } .viewer .next { right: 4px; }
.viewer-bar { display: flex; justify-content: center; gap: 12px; padding: 10px 12px calc(14px + env(safe-area-inset-bottom)); }
.vtoggle { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 20px; background: rgba(255, 255, 255, .1); color: #fff; font: 500 13.5px Roboto, sans-serif; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.vtoggle svg { width: 18px; height: 18px; }
.vtoggle:hover { background: rgba(255, 255, 255, .18); }
.vtoggle.on { background: var(--primary); }
.vtoggle.comment-btn.on { background: rgba(255, 255, 255, .22); }
@media (max-width: 640px) {
  .viewer .stage { padding: 0; }
  .viewer .stage img { max-height: calc(100svh - 150px); box-shadow: none; }
  .viewer .nav { width: 44px; }
  .viewer .nav .ic { width: 32px; height: 32px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
  .viewer-name { font-size: 13px; }
}

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: #323232; color: #fff; padding: 12px 20px; border-radius: 2px; z-index: 60; font-size: 14px; max-width: 90vw; text-align: center; box-shadow: var(--shadow-3); }

.nocopy, .nocopy img { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.blur main, body.blur .viewer, body.blur .hero { filter: blur(24px); }

/* O interruptor precisa vencer as regras genéricas de input. */
input.switch, input.switch:focus { width: 36px; height: 14px; border: 0; padding: 0; margin: 0 4px; }
body.viewing .pill-bar { display: none; }

/* ---------- Observações na grade do cliente ---------- */
.masonry .tile.favorite .marks, .masonry .tile.has-obs .marks { opacity: 1; }
.mark.obs.on { background: #fff; color: var(--primary-ink); }
.mark.obs.on svg { fill: rgba(160, 134, 113, .2); }

/* ---------- Início ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 1000px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.stat-card { display: grid; gap: 2px; padding: 16px; margin: 0; color: var(--text); border-top: 4px solid #bdbdbd; transition: box-shadow .15s; }
.stat-card:hover { box-shadow: var(--shadow-2); }
.stat-card strong { font-size: 34px; font-weight: 500; line-height: 1.15; }
.stat-label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.stat-hint { font-size: 12px; color: var(--text-3); }
.stat-card.c-wait { border-top-color: #9e9e9e; }
.stat-card.c-blue { border-top-color: var(--primary); }
.stat-card.c-blue strong { color: var(--primary-ink); }
.stat-card.c-teal { border-top-color: var(--teal); }
.stat-card.c-red { border-top-color: var(--warn); }
.stat-card.c-red strong { color: var(--warn); }
.home-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .home-cols { grid-template-columns: 1fr; } }
.highlight { padding: 20px 24px; display: grid; gap: 2px; background: linear-gradient(120deg, var(--primary-soft), #fff 70%); }
.big-number { font-size: 48px; font-weight: 500; color: var(--primary-ink); line-height: 1.1; }
.notifications-card { margin-top: 0; }
.mini-links { display: grid; }
.mini-links a { display: flex; gap: 12px; align-items: center; padding: 14px 16px; color: var(--text); border-bottom: 1px solid var(--line); }
.mini-links a:last-child { border-bottom: 0; }
.mini-links a:hover { background: #fafafa; }
.mini-links .ic { color: var(--text-2); }

/* ---------- Listas extras ---------- */
.list.bordered { border: 1px solid var(--line); border-radius: var(--radius); }
.people-row { grid-template-columns: 44px minmax(0, 1fr) 120px 180px; }
.ap-row { grid-template-columns: 48px minmax(0, 1fr) 130px auto; }
.ap-row .actions { gap: 0; justify-content: flex-end; }
.ap-row.cancelado .list-main { opacity: .5; text-decoration: line-through; }
.ap-row .list-main a { color: var(--text); }
.date-badge { width: 44px; height: 44px; border-radius: 4px; background: var(--primary-soft); color: var(--primary-ink); display: grid; place-items: center; line-height: 1; }
.date-badge b { font-size: 17px; font-weight: 500; }
.date-badge small { font-size: 10.5px; text-transform: uppercase; }
.status.ap-confirmado, .status.ap-realizado { color: var(--teal); }
.status.ap-confirmado i, .status.ap-realizado i { background: currentColor; }
.status.ap-agendado { color: var(--primary-ink); }
.status.ap-cancelado { color: var(--text-3); }
@media (max-width: 760px) {
  .people-row, .ap-row { grid-template-columns: 44px minmax(0, 1fr); }
  .people-row > :nth-child(n+3), .ap-row > .status { grid-column: 2; }
  .ap-row .actions { grid-column: 2; justify-content: flex-start; }
}
.wa-text { color: var(--wa); }
.note-box { background: #fff8e5; border-left: 3px solid #f2b736; padding: 10px 14px; white-space: pre-wrap; margin: 0; }
.kicons { display: flex; gap: 10px; color: var(--text-2); font-size: 12px; }
.kicons:empty { display: none; }
.kicon { display: inline-flex; align-items: center; gap: 3px; }
.kicon .ic { width: 15px; height: 15px; }
.column.flash { animation: flash 1.6s ease 2; }
@keyframes flash { 50% { background: var(--primary-soft); } }

/* Escolha cliente cadastrado / novo */
.segmented { display: flex; border: 1px solid var(--primary); border-radius: 3px; overflow: hidden; margin-bottom: 20px; }
.segmented label { flex: 1; text-align: center; padding: 9px 8px; font-size: 13px; font-weight: 500; text-transform: uppercase; color: var(--primary-ink); cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--primary); color: #fff; }

/* ---------- Agenda ---------- */
.month-nav { display: flex; align-items: center; gap: 4px; }
.month-nav strong { display: inline-block; font-size: 18px; font-weight: 400; min-width: 170px; text-align: center; }
.month-nav strong::first-letter { text-transform: uppercase; }
.cal-card { padding: 0; overflow: hidden; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-head { padding: 10px 8px; font-size: 11.5px; font-weight: 500; text-transform: uppercase; color: var(--text-2); border-bottom: 1px solid var(--line); text-align: center; }
.day { min-height: 104px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.day:nth-child(7n + 7) { border-right: 0; }
.day.out { background: #fafafa; }
.day-num { align-self: flex-start; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: var(--text); }
.day-num:hover { background: rgba(0, 0, 0, .06); }
.day.today .day-num { background: var(--primary); color: #fff; }
.ev { display: block; font-size: 12px; padding: 2px 6px; border-radius: 2px; background: var(--primary-soft); color: var(--primary-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev b { font-weight: 500; }
.ev.confirmado, .ev.realizado { background: #e0f2f1; color: var(--teal); }
.ev.cancelado { background: #f2f2f2; color: var(--text-3); text-decoration: line-through; }
@media (max-width: 640px) { .day { min-height: 64px; padding: 3px; } .ev { font-size: 10.5px; padding: 1px 3px; } .ev b { display: none; } .month-nav strong { min-width: 0; font-size: 15px; } }
.ap-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* Cartões manuais na fila */
.kcard.manual { position: relative; border-left: 3px solid #9575cd; }
.kcard.manual.late { border-left-color: var(--warn); }
.kedit { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.kedit:hover { background: rgba(0, 0, 0, .06); color: var(--text); }
.kedit .ic { width: 16px; height: 16px; margin: 0; }
.knotes { white-space: pre-wrap; color: var(--text-2); }
.manual-tag { background: #ede7f6; color: #5e35b1; }

/* Entrega final */
.delivery-form { display: grid; gap: 8px; justify-items: start; max-width: 620px; margin-top: 8px; }
.delivery-form .field { width: 100%; margin-bottom: 4px; }
.delivery-banner { max-width: 900px; margin: 20px auto 0; padding: 16px 20px; background: #e7f4ec; border-left: 4px solid var(--ok); border-radius: var(--radius); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.delivery-banner div { flex: 1; min-width: 220px; display: grid; }
.delivery-banner strong { font-size: 16px; font-weight: 500; }
.delivery-banner span { font-size: 13px; color: var(--text-2); }
.section-title .ic { margin-right: 6px; }

/* =====================================================================
   Design 2: marca Eternis, profundidade e movimento
   ===================================================================== */
:root {
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(60, 40, 25, .06), 0 2px 8px rgba(60, 40, 25, .06);
  --shadow-2: 0 4px 14px rgba(60, 40, 25, .12), 0 2px 4px rgba(60, 40, 25, .06);
  --shadow-3: 0 18px 50px rgba(30, 20, 12, .28);
  --radius: 6px;
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
::selection { background: rgba(160, 134, 113, .3); }
body { color: #2c2622; }
h1, .page-title, .sheet-head h1, .section-title { font-family: var(--serif); font-weight: 500; letter-spacing: .01em; }
h1, .page-title { font-size: 30px; }
.section-title { font-size: 24px; }

/* Topo do painel: logo, vidro fosco e sombra ao rolar */
.appbar { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: none; border-bottom: 1px solid rgba(160, 134, 113, .18); transition: box-shadow .3s var(--ease); }
body.scrolled .appbar { box-shadow: 0 6px 24px rgba(60, 40, 25, .08); }
.appbar-top { height: 68px; }
.studio-name { display: flex; align-items: center; }
.studio-name .logo { height: 38px; width: auto; display: block; transition: transform .4s var(--ease); }
.studio-name:hover .logo { transform: scale(1.04); }
.crumb { font-family: var(--serif); font-size: 19px; color: var(--graphite); }
.appnav a { position: relative; border-bottom: 0; transition: color .2s; }
.appnav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; background: var(--primary-ink); transform: scaleX(0); transition: transform .35s var(--ease); }
.appnav a:hover::after { transform: scaleX(.4); }
.appnav a.on::after { transform: scaleX(1); }
.appnav a.on, .appnav a.on .ic { color: var(--primary-ink); }
.avatar { background: linear-gradient(135deg, #b9a08b, #806651); }
.bell .dot { background: #c0533f; }

/* Cartões e listas: superfície mais leve, hover com elevação */
.card, .tile { border-radius: var(--radius); box-shadow: var(--shadow); }
.card, .tile, .list-row, .kcard, .stat-card { transition: box-shadow .3s var(--ease), transform .35s var(--ease), background .2s; }
a.list-row:hover { background: #fbf8f5; }
.folder-card:hover, .client-card:hover, .stat-card:hover, .kcard:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.tilt { transition: transform .12s linear, box-shadow .3s var(--ease); will-change: transform; }
.tile-add { border-color: rgba(160, 134, 113, .35); color: var(--primary-ink); background: linear-gradient(135deg, rgba(160, 134, 113, .04), rgba(160, 134, 113, .1)); }
.tile-add:hover { border-color: var(--primary); background: rgba(160, 134, 113, .14); }
.tile-add .ic.huge { transition: transform .5s var(--ease); }
.tile-add:hover .ic.huge { transform: translateY(-4px) scale(1.08); }
.folder-cover img { transition: transform .8s var(--ease); }
.folder-card:hover .folder-cover img { transform: scale(1.06); }
.stat-card { border-top-width: 3px; }
.stat-card strong { font-family: var(--serif); font-size: 42px; font-weight: 500; }
.big-number { font-family: var(--serif); font-size: 64px; color: var(--primary-ink); }
.highlight { position: relative; overflow: hidden; }
.highlight::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(160, 134, 113, .25), transparent 70%); animation: glow 7s ease-in-out infinite alternate; }
@keyframes glow { to { transform: translate(-40px, 30px) scale(1.2); } }
.chip { background: #f1ebe5; color: #5c4a3c; }
.status.s-finalizada { color: var(--primary-ink); }
.searchbar { border-radius: 40px; }
.column { background: #f0ebe6; border-radius: 10px; }
.kcard { border-radius: 8px; }

/* Botões: cantos suaves e onda ao tocar */
.btn { border-radius: 6px; position: relative; overflow: hidden; transition: background .2s, box-shadow .3s var(--ease), transform .2s var(--ease); }
.btn.raised:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, #b29884, #8f7560); }
.btn.primary:hover { background: linear-gradient(135deg, #a58b77, #806651); }
.wave { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: scale(0); animation: wave .65s var(--ease) forwards; pointer-events: none; }
.btn.text .wave, .btn.outline .wave { background: rgba(160, 134, 113, .25); }
@keyframes wave { to { transform: scale(1); opacity: 0; } }

/* Janelas: entrada suave */
dialog.modal { border-radius: 10px; }
dialog.modal[open] { animation: pop .32s var(--ease); }
dialog::backdrop { background: rgba(30, 22, 16, .45); backdrop-filter: blur(3px); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-head h2 { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.switch:checked { background: rgba(160, 134, 113, .5); }
.switch:checked::after { background: var(--primary-ink); }
input:focus, select:focus { border-bottom-color: var(--primary); }

/* Surgir ao rolar (scrollytelling) */
.rv { opacity: 0; transform: translateY(18px); }
.rv.in { opacity: 1; transform: none; transition: opacity .6s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.masonry .tile.rv { transform: translateY(26px) scale(.97); }

/* Cena 3D (login do estúdio e entrada da cliente) */
.scene3d { position: fixed; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.scene3d.on { opacity: 1; }
.gate-hero .scene3d { position: absolute; }
body.login { background: radial-gradient(ellipse at 50% 35%, #3b302a 0%, #1a1513 65%, #110e0c 100%); display: block; padding: 0; }
.login-wrap { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; align-content: center; gap: 28px; padding: 24px 16px; }
.login-logo { width: min(300px, 70vw); filter: drop-shadow(0 4px 20px rgba(0, 0, 0, .5)); animation: rise 1.2s var(--ease) both; }
.glass { background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .5); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); border-radius: 14px; animation: rise 1.2s .15s var(--ease) both; }
.login-card h1 { font-size: 32px; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.gate-hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #3b302a 0%, #1a1513 65%, #110e0c 100%); }
.gate-in { position: relative; z-index: 1; }
.gate-logo { width: min(260px, 64vw); margin: 0 auto 18px; display: block; filter: drop-shadow(0 4px 20px rgba(0, 0, 0, .5)); animation: rise 1.1s var(--ease) both; }
.gate-hero h1 { font-family: var(--serif); font-weight: 400; animation: rise 1.1s .1s var(--ease) both; }
.gate-card { border-radius: 14px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: rise 1.1s .2s var(--ease) both; }

/* Capa da cliente: camadas com parallax + WebGL + sticky (a grade sobe por cima da capa) */
.hero { position: sticky; top: 0; z-index: 0; background: #14100e; }
.hero::after { background: rgba(20, 14, 10, .35); z-index: 1; }
.hero .layer { position: absolute; inset: 0; }
.hero-bg { transform: translateY(calc(var(--hp, 0) * 18vh)) scale(calc(1.02 + var(--hp, 0) * .08)); }
.hero-gl { width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease; z-index: 1; }
.hero-gl.on { opacity: 1; }
.hero-gl.on ~ .hero-in { text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero-in { z-index: 2; transform: translateY(calc(var(--hp, 0) * -22vh)); opacity: calc(1 - var(--hp, 0) * 1.6); }
.hero-logo { width: min(240px, 58vw); display: block; margin: 0 auto 18px; filter: drop-shadow(0 4px 20px rgba(0, 0, 0, .45)); animation: rise 1.2s var(--ease) both; }
.hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(46px, 10vw, 92px); letter-spacing: .02em; animation: rise 1.2s .12s var(--ease) both; }
.hero-count { animation: rise 1.2s .2s var(--ease) both; letter-spacing: .3em; }
.hero #see { animation: rise 1.2s .3s var(--ease) both; border-radius: 40px; padding: 0 30px; }
.scroll-hint { z-index: 2; opacity: calc(1 - var(--hp, 0) * 3); }
.hero ~ * { position: relative; z-index: 1; }
.hero ~ .cbar { z-index: 10; }
body.client.app { background: #f8f6f4; }
/* tudo que vem depois da capa cobre a capa (efeito sticky): fundo sólido de ponta a ponta */
.hero ~ main { background: #f8f6f4; }
.hero ~ .client-notice, .hero ~ .delivery-banner { box-shadow: 0 0 0 100vmax #f8f6f4; clip-path: inset(-20px -100vmax); margin-top: 0; margin-bottom: 0; }
.hero ~ .client-notice:not(.locked) { background: #f8f6f4; }
.hero ~ .delivery-banner { margin-top: 0; }
.cbar { box-shadow: 0 -18px 40px rgba(0, 0, 0, .18); }
.cbar-title strong { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.masonry { background: #f8f6f4; min-height: 100vh; }
.masonry .tile { border-radius: 4px; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.masonry .tile:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(40, 25, 15, .22); }
.masonry .tile img { transition: transform 1.2s var(--ease), filter .4s; }
.masonry .tile:hover img { transform: scale(1.04); }
.masonry .tile.selected { background: var(--primary); }
.mark.sel.on { color: var(--primary-ink); }
.pill { background: rgba(40, 32, 27, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pill.over { background: rgba(92, 58, 44, .95); }
.viewer { background: rgba(16, 12, 10, .96); }
.viewer .stage img { animation: fadein .35s ease; }
@keyframes fadein { from { opacity: .3; transform: scale(.985); } }
.vtoggle.on { background: var(--primary); }
.delivery-banner { border-left-color: var(--primary); background: linear-gradient(120deg, #f4eee9, #fff); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-bg, .hero-in { transform: none !important; opacity: 1 !important; }
}
/* Login: conteúdo à esquerda e lente 3D à direita em telas largas */
@media (min-width: 900px) {
  .login-wrap { width: 100%; justify-items: start; padding-left: max(8vw, 48px); }
  .login-wrap .login-card { width: 400px; }
  .login-logo { width: 300px; margin-left: 50px; }
}
.hero:has(.hero-gl.on)::after { background: transparent; }
.stat-card strong, .big-number, .counter strong, .date-badge b { font-variant-numeric: lining-nums tabular-nums; }
.studio-name .logo { height: 44px; }
