/* OL.R Vitrine: base compartilhada (mobile first).
   --brand vem da cor da loja (vitrine e painel da loja) ou do grafite da OL.R (plataforma).
   Fonte: a do sistema em tudo; a vitrine acrescenta Bricolage Grotesque só nos títulos (loja.css). */
:root {
  --brand: #0f766e;
  --brand-soft: color-mix(in srgb, var(--brand) 11%, #fff);
  --brand-line: color-mix(in srgb, var(--brand) 35%, #fff);
  --brand-deep: color-mix(in srgb, var(--brand) 78%, #000);
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f4f2ee;
  --ink: #16181d;
  --ink-2: #4a505c;
  --ink-3: #737a88;
  --line: #e3e6eb;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --danger-line: #fecdca;
  --ok: #067647;
  --ok-soft: #ecfdf3;
  --ok-line: #abefc6;
  --whats: #1f9d55;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(16 24 40 / 5%), 0 0 0 1px rgb(16 24 40 / 3%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.mono { font-family: var(--mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; min-width: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 18px; height: 18px; flex: none; }
.ico.ico-lg { width: 30px; height: 30px; }
[hidden] { display: none !important; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 650; font-size: 15px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .12s ease-out, border-color .12s ease-out, filter .12s ease-out;
}
.btn:hover { border-color: var(--ink-3); }
.btn:focus-visible, .link:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); border-color: var(--brand); }
.btn-soft { background: var(--brand-soft); border-color: transparent; color: var(--brand-deep); }
.btn-soft:hover { border-color: var(--brand-line); }
.btn-danger { color: var(--danger); border-color: var(--danger-line); }
.btn-danger:hover { border-color: var(--danger); background: var(--danger-soft); }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger-solid:hover { filter: brightness(1.1); border-color: var(--danger); }
.btn-whats { background: var(--whats); border-color: var(--whats); color: #fff; }
.btn-whats:hover { filter: brightness(1.06); border-color: var(--whats); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-sm .ico { width: 16px; height: 16px; }
.btn-icon { width: 36px; min-height: 36px; padding: 0; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--brand-deep); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.back:hover { color: var(--ink); }
.back .ico { width: 16px; height: 16px; }

/* ---------- Cartões, avisos, selos ---------- */
.card { background: var(--surface); border-radius: var(--radius); padding: 20px 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (min-width: 720px) { .card { padding: 24px; } }
.card > h2, .card > h3, .card-title { font-size: 19px; font-weight: 750; }
.card-sub { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.card-danger { border-color: var(--danger-line); }
.card-danger > h3 { color: var(--danger); }

.flash { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; margin: 0 0 16px; font-weight: 600; font-size: 15px; border: 1px solid; }
.flash-ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }
.flash-err { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-line); }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
.badge-brand { background: var(--brand-soft); color: var(--brand-deep); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-off { background: var(--danger-soft); color: var(--danger); }
.badge-ok::before, .badge-off::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Pílula de status que também é botão (Disponível / Esgotado) */
.status { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; font-size: 14px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-on { background: var(--ok-soft); color: var(--ok); }
.status-off { background: var(--danger-soft); color: var(--danger); }
.status:hover { filter: brightness(.97); }

.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: 15px; background: var(--surface-2); color: var(--ink-2); flex: none; }
.avatar-brand { background: var(--brand-soft); color: var(--brand-deep); }
.avatar-sq { border-radius: 12px; }

/* ---------- Formulários ---------- */
.field { display: block; min-width: 0; }
fieldset.fs { border: 0; padding: 0; margin-left: 0; margin-right: 0; margin-bottom: 0; min-width: 0; }
.field > span, .label { display: block; font-weight: 650; font-size: 14px; margin-bottom: 6px; }
.field small, .help { display: block; color: var(--ink-3); font-size: 13px; margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=search], input[type=number], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; padding-right: 40px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%234a505c' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
::placeholder { color: #9aa0ab; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form > input { flex: 1; min-width: 180px; }

/* Opções em botão (vitrine: entrega/pagamento) */
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-row label { flex: 1; min-width: 96px; }
.radio-row input { position: absolute; opacity: 0; }
.radio-row span { display: block; text-align: center; padding: 11px 10px; border: 1px solid var(--line); border-radius: 12px; font-weight: 650; cursor: pointer; background: var(--surface); }
.radio-row input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); box-shadow: inset 0 0 0 1px var(--brand); }
.radio-row input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Opções em cartão (painel: tipo de vitrine) */
.choices { display: grid; gap: 10px; }
@media (min-width: 560px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface); }
.choice input { position: absolute; opacity: 0; }
.choice b { display: block; font-size: 15px; }
.choice small { display: block; color: var(--ink-3); font-size: 13px; }
.choice svg { width: 40px; height: 40px; flex: none; color: var(--ink-3); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.choice:has(input:checked) b, .choice:has(input:checked) svg { color: var(--brand-deep); }
.choice:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Amostras de cor */
.swatches { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.swatch { position: relative; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: block; }
.swatch input { position: absolute; opacity: 0; inset: 0; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 10%); }
.swatch:has(input:checked) span { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--c); }
.swatch:has(input:focus-visible) span { outline: 2px solid var(--ink); outline-offset: 5px; }
.swatch-custom span { background: conic-gradient(#e11d48, #f59e0b, #16a34a, #0ea5e9, #7c3aed, #e11d48); }
.swatch-custom input[type=color] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }

/* Envio de foto */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 150px; padding: 18px; border: 1.5px dashed #c9ccd3; border-radius: 14px; background: var(--surface-2); text-align: center; cursor: pointer; overflow: hidden; }
.dropzone:hover { border-color: var(--brand); }
.dropzone:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .ico { width: 28px; height: 28px; color: var(--brand); }
.dropzone b { font-size: 15px; }
.dropzone small { color: var(--ink-3); font-size: 13px; }
.dropzone img { width: 140px; height: 140px; object-fit: cover; border-radius: 12px; }
.dropzone.has-img { flex-direction: row; justify-content: flex-start; gap: 16px; text-align: left; min-height: 0; }
.dropzone-cover img { width: 100%; height: auto; aspect-ratio: 3 / 1; }
.dropzone-cover.has-img { flex-direction: column; align-items: stretch; text-align: center; }
.dropzone-logo img { width: 88px; height: 88px; border-radius: 20px; }

/* ---------- Listas ---------- */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.list-head { padding: 10px 16px; background: var(--surface-2); font-weight: 700; font-size: 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.list-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .grow > strong, .list-item .grow > a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.list-item .grow > span { display: block; color: var(--ink-3); font-size: 14px; }
.list-item .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--brand-soft); color: var(--brand-deep); flex: none; display: grid; place-items: center; font-weight: 750; font-size: 15px; }
@media (max-width: 559px) {
  .list-item .actions.wrap-mobile { width: 100%; padding-left: 64px; }
}

/* Cartões expansíveis */
details.card { padding: 0; }
details.card > summary { display: flex; align-items: center; gap: 12px; padding: 16px; cursor: pointer; list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary .ico { transition: transform .15s ease-out; color: var(--ink-3); }
details.card[open] > summary { border-bottom: 1px solid var(--line); background: var(--brand-soft); border-radius: var(--radius) var(--radius) 0 0; }
details.card[open] > summary .ico { transform: rotate(180deg); }
details.card[open] { border-color: var(--brand-line); }
details.card > .details-body { padding: 16px; }
.add-dashed { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border: 1.5px dashed #c9ccd3; border-radius: var(--radius); color: var(--brand-deep); font-weight: 700; background: transparent; }
details.add > summary { list-style: none; cursor: pointer; }
details.add > summary::-webkit-details-marker { display: none; }
details.add[open] > summary { margin-bottom: 12px; }

/* Código copiável (senha temporária) */
.secret { display: flex; align-items: center; gap: 12px; font: 600 22px/1.3 var(--mono); background: var(--surface-2); padding: 14px 14px 14px 18px; border-radius: 12px; letter-spacing: .02em; }
.secret span { flex: 1; user-select: all; word-break: break-all; }
.kv { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.kv dt { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.kv dd { margin: 0 0 8px; font-family: var(--mono); word-break: break-all; }
.kv dd:last-child { margin-bottom: 0; }

/* ---------- Painéis (loja e plataforma) ---------- */
.panel-top { background: var(--surface); border-bottom: 1px solid var(--line); }
.panel-top .wrap { display: flex; align-items: center; gap: 8px; min-height: 60px; }
.panel-top form { display: flex; }
.brand-id { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; text-decoration: none; }
.brand-id strong { font-size: 16px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.panel-nav { background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; z-index: 4; }
.panel-nav::-webkit-scrollbar { display: none; }
.panel-nav .wrap { display: flex; gap: 2px; }
.panel-nav a { padding: 12px 10px; text-decoration: none; font-weight: 650; font-size: 14px; color: var(--ink-3); border-bottom: 2px solid transparent; white-space: nowrap; }
.panel-nav a:hover { color: var(--ink); }
.panel-nav a[aria-current="page"] { color: var(--brand-deep); border-color: var(--brand); }
.panel-main { padding-top: 20px; padding-bottom: 72px; }
@media (min-width: 720px) { .panel-main { padding-top: 28px; } }
.narrow { max-width: 760px; }
.page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .back { margin-bottom: 10px; }
.page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.page-head p { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.hello { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.note { color: var(--ink-3); font-size: 13px; margin-top: 12px; text-align: center; }

/* Formulário com prévia ao lado (desktop) */
.with-preview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.with-preview > * { min-width: 0; }
@media (min-width: 960px) { .with-preview { grid-template-columns: minmax(0, 1fr) 340px; } .with-preview > aside { position: sticky; top: 64px; } }
.preview-box { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.preview-box > .preview-label { display: flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--brand-deep); background: var(--surface); border-bottom: 1px solid var(--line); }
.preview-box > .preview-label .ico { width: 16px; height: 16px; }
.preview-box > .preview-body { padding: 14px; }
@media (max-width: 959px) { .hide-mobile { display: none !important; } }
#pv-loja { padding: 0; }
.preview-box .sf-top { margin: 0; padding: 0; max-width: none; }
.preview-box .sf-cover { height: 110px; border-radius: 0; }
.preview-box .sf-id { display: flex; flex-direction: column; padding: 0 14px 16px; }
.preview-box .sf-logo { width: 72px; height: 72px; margin-top: -36px; font-size: 24px; border-radius: 20px; }
.preview-box .sf-title { margin-top: 10px; }
.preview-box .sf-id h1 { font-size: 22px; }
.preview-box .sf-actions { margin-top: 12px; }

/* Barra de salvar fixa no celular */
.savebar { position: sticky; bottom: 0; z-index: 4; margin: 16px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
@media (min-width: 720px) { .savebar { position: static; margin: 16px 0 0; padding: 0; background: none; border: 0; backdrop-filter: none; } .savebar .btn { width: auto; } }

/* Indicadores (plataforma) */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.stat span { display: block; font-size: 12px; font-weight: 650; color: var(--ink-3); }
.stat b { display: block; font-size: 26px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat small { color: var(--ink-3); font-size: 12px; }
.stat-ok b { color: var(--ok); }
.stat-off b { color: var(--danger); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters .search-box { flex: 1 1 260px; position: relative; }
.filters .search-box .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.filters .search-box input { padding-left: 42px; border-radius: 999px; }
.chips { display: flex; gap: 6px; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 650; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Linha de loja: cartão no celular, tabela no desktop */
.trow { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.trow:last-child { border-bottom: 0; }
.trow .t-name strong { font-weight: 700; }
.trow .t-sub { font-family: var(--mono); font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .t-meta { grid-column: 1 / -1; color: var(--ink-2); font-size: 14px; }
.trow .t-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.trow .t-actions form, .trow .t-actions form .btn { display: flex; width: 100%; }
.trow.is-off .t-name strong { color: var(--ink-3); }
.thead { display: none; }
@media (min-width: 900px) {
  .thead, .trow { display: grid; grid-template-columns: 40px minmax(0, 2.2fr) 1.2fr 1fr auto; gap: 14px; }
  .thead { padding: 10px 16px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
  .trow .t-meta { display: contents; }
  .trow .t-actions { grid-column: auto; margin: 0; display: flex; }
  .trow .t-meta .sep { display: none; }
}
.t-city .ico { width: 14px; height: 14px; vertical-align: -2px; color: var(--ink-3); }

/* ---------- Login e mensagens ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-head { text-align: center; margin-bottom: 8px; }
.auth-head .brand-mark { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; margin: 0 auto 12px; }
.auth-head .kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.auth-head h1 { font-size: 24px; font-weight: 800; }
.msg-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--danger-soft); color: var(--danger); }
.msg-icon .ico { width: 30px; height: 30px; }
.msg-icon.neutral { background: var(--surface-2); color: var(--ink-2); }

/* Temas por área */
.pn { --bg: #f4f1ec; --surface-2: #f3efe8; }
.pf { --bg: #f3f4f6; --surface-2: #f1f2f4; }

/* ---------- Horário de funcionamento (editor estilo WhatsApp Business) ---------- */
.switch { appearance: none; -webkit-appearance: none; position: relative; width: 44px; height: 26px; margin: 0; border-radius: 999px; background: #cfd3da; cursor: pointer; flex: none; transition: background-color .15s ease-out; }
.switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 25%); transition: transform .15s ease-out; }
.switch:checked { background: var(--brand); }
.switch:checked::before { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.week { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.day { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.day:last-child { border-bottom: 0; }
.day-head { display: flex; align-items: center; gap: 12px; font-weight: 700; cursor: pointer; }
.day-closed { color: var(--ink-3); font-size: 14px; margin: 0; }
.day-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.slot { display: flex; align-items: center; gap: 6px; min-width: 0; }
.slot input[type=time] { width: auto; flex: 1; min-width: 0; max-width: 140px; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-variant-numeric: tabular-nums; }
.slot input[type=time]:focus { outline: 2px solid var(--brand); border-color: transparent; }
.slot .btn-icon { font-size: 20px; color: var(--ink-3); }
.day-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.day-actions .link { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.day-actions .link .ico { width: 15px; height: 15px; }
/* Dia desligado: cinza, sem horários */
.day:not(:has(.switch:checked)) { background: var(--surface-2); }
.day:not(:has(.switch:checked)) .day-head span { color: var(--ink-3); }
.day:not(:has(.switch:checked)) .day-body { display: none; }
.day:has(.switch:checked) .day-closed { display: none; }
@media (min-width: 720px) {
  .day { grid-template-columns: 170px minmax(0, 1fr); align-items: start; padding: 14px; }
  .day-head { min-height: 42px; }
  .day-closed, .day-body { padding-left: 0; }
  .day-closed { line-height: 42px; }
}
