/* ==========================================================================
   Painel: layout (sidebar desktop / navegação inferior mobile), páginas e agenda
   ========================================================================== */
html, body { height: 100%; }
body { overflow-x: hidden; }
.boot { min-height: 100dvh; display: grid; place-items: center; }

/* Login / primeiro acesso */
.auth-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 600px at 10% -10%, var(--brand-50), transparent), var(--bg); }
.auth-card { width: min(420px, 100%); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.auth-brand .logo-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.auth-card.wide { width: min(560px, 100%); }
.logo-mark { flex: none; }

/* Entrar / criar conta (tela dividida) */
.auth-split { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--bg); }
.auth-hero { position: relative; padding: 40px clamp(24px, 5vw, 64px); color: #fff; display: flex; flex-direction: column; gap: 40px;
  background: radial-gradient(900px 500px at 0% 0%, rgba(255,255,255,.14), transparent), linear-gradient(150deg, var(--brand) 0%, #5c2440 100%); }
.auth-hero-body { margin-block: auto; max-width: 460px; }
.auth-hero h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.2; margin: 0 0 24px; color: #fff; }
.auth-points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 12px; align-items: center; font-size: 1rem; opacity: .95; }
.auth-points .icon { flex: none; width: 22px; height: 22px; }
.auth-trial { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.14); padding: 8px 14px; border-radius: 999px; font-weight: 600; margin: 0; }
.auth-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: inherit; text-decoration: none; }
.auth-logo .logo-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.18); color: #fff; }
.auth-panel .auth-logo { color: var(--ink); margin-bottom: 18px; }
.auth-panel .auth-logo .logo-mark { background: var(--brand); }
.auth-panel { display: grid; place-items: center; padding: 32px 16px; }
.auth-panel .auth-card { width: min(440px, 100%); }
.auth-panel h1 { font-size: 1.5rem; margin: 0 0 4px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--gray-50); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.auth-tabs a { text-align: center; padding: 9px 8px; border-radius: 9px; font-weight: 650; color: var(--muted); text-decoration: none; }
.auth-tabs a.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.pw-group { display: flex; align-items: stretch; position: relative; }
.pw-group input { padding-right: 44px; }
.pw-group .btn { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) {
  .auth-split { grid-template-columns: minmax(0, 1fr); }
  .auth-hero { display: none; }
  .auth-panel { align-items: start; padding-top: 28px; }
}

/* Licença bloqueada */
.lic-card { text-align: left; }
.lic-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--bad-50); color: var(--bad); display: grid; place-items: center; }
.lic-icon .icon { width: 26px; height: 26px; }
.lic-foot { border-top: 1px solid var(--line-2); padding-top: 12px; }

/* Avisos no topo do painel (teste/vencimento/onboarding) */
.banners { display: grid; gap: 8px; padding: 12px 24px 0; }
.banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 14px; border-radius: 10px; font-size: .9rem; background: var(--gray-50); color: var(--ink-2); }
.banner.info { background: var(--brand-50); color: var(--brand-600); }
.banner.warn { background: var(--warn-50); color: var(--warn); }
@media (max-width: 900px) { .banners { padding: 10px 16px 0; } }

/* Onboarding */
.onb { min-height: 100dvh; background: radial-gradient(1200px 600px at 10% -10%, var(--brand-50), transparent), var(--bg); }
.onb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(16px, 4vw, 40px); }
.onb-top .logo-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.onb-body { display: grid; grid-template-columns: 260px minmax(0, 720px); gap: 28px; justify-content: center; padding: 12px clamp(16px, 4vw, 40px) 48px; }
.onb-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: sticky; top: 16px; }
.onb-steps button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; text-align: left; cursor: pointer; }
.onb-steps button:hover { background: var(--surface); }
.onb-steps li.current button { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: var(--shadow-sm); }
.onb-num { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--gray-50); color: var(--ink-2); }
.onb-steps li.current .onb-num { background: var(--brand); color: #fff; }
.onb-steps li.done .onb-num { background: var(--ok-50); color: var(--ok); }
.onb-progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: 14px; }
.onb-progress > div { height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s ease; }
.onb-head { margin-bottom: 16px; }
.onb-head h1 { margin: 2px 0 4px; font-size: 1.4rem; }
.onb-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.onb-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.onb-list li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.onb-inline { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; }
.onb-link { margin-top: 14px; padding: 12px; border-radius: 10px; background: var(--brand-50); }
.onb-link code { font-size: .88rem; }
.onb-qr { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.onb-check { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.onb-check li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
.onb-check li.ok { color: var(--ok); } .onb-check li.bad { color: var(--bad); }
.onb-check li .btn { margin-left: auto; }
@media (max-width: 900px) {
  .onb-body { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .onb-steps ol { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .onb-steps li { flex: none; }
  .onb-steps button span:last-child { display: none; }
  .onb-steps li.current button span:last-child { display: inline; }
}

/* Layout */
.layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 10px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 16px; min-width: 0; }
.brand img, .brand .logo-mark { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: none; }
.brand .logo-mark { background: var(--brand); color: #fff; display: grid; place-items: center; }
.brand .name { font-weight: 700; font-size: .98rem; line-height: 1.2; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 550; font-size: .92rem; min-height: 40px; }
.nav a:hover { background: var(--gray-50); text-decoration: none; }
.nav a.active { background: var(--brand-50); color: var(--brand); }
.nav a .icon { width: 19px; height: 19px; }
.side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; }
.user-chip:hover { background: var(--gray-50); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(247, 245, 243, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: calc(10px + var(--safe-t)) 24px 10px; display: flex; align-items: center; gap: 12px; min-height: 60px; }
.topbar h1 { font-size: 1.2rem; margin: 0; }
.topbar .spacer { flex: 1; }
.wa-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.wa-pill .dot.on { background: var(--ok); } .wa-pill .dot.off { background: var(--bad); } .wa-pill .dot.wait { background: var(--warn); }
.content { padding: 20px 24px 40px; width: 100%; max-width: 1400px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mobile-only { display: none !important; }

/* Navegação inferior (mobile) */
.bottom-nav { display: none; }
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .topbar { padding: calc(8px + var(--safe-t)) 16px 8px; min-height: 54px; }
  .topbar h1 { font-size: 1.08rem; }
  .content { padding: 14px 16px calc(84px + var(--safe-b)); }
  .mobile-only { display: inline-flex !important; }
  .desktop-only { display: none !important; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + var(--safe-b)); }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .68rem; font-weight: 600; color: var(--muted); min-height: 52px; border: 0; background: none; border-radius: 10px; cursor: pointer; }
  .bottom-nav a.active { color: var(--brand); }
  .bottom-nav a:hover { text-decoration: none; }
  .bottom-nav .icon { width: 22px; height: 22px; }
}
.drawer-nav a, .drawer-nav button { width: 100%; border: 0; background: none; cursor: pointer; font: inherit; text-align: left; display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 10px; color: var(--ink); font-weight: 550; min-height: 48px; }
.drawer-nav a.active { background: var(--brand-50); color: var(--brand); }
.drawer-nav a:hover, .drawer-nav button:hover { text-decoration: none; background: var(--gray-50); }

/* KPIs */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.kpi .l { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; }
.kpi .v { font-size: 1.5rem; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .s { font-size: .78rem; color: var(--muted); }
.kpi.accent { border-left: 3px solid var(--brand); }
.kpi.good .v { color: var(--ok); } .kpi.bad .v { color: var(--bad); } .kpi.warn .v { color: var(--warn); }
.dash-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line-2); min-width: 0; }
.list-item:last-child { border-bottom: 0; }
.list-item .time { font-weight: 700; font-variant-numeric: tabular-nums; width: 48px; flex: none; }
.list-item.clickable { cursor: pointer; border-radius: 8px; padding-left: 6px; padding-right: 6px; }
.list-item.clickable:hover { background: var(--surface-2); }

/* Gráficos */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-size: 10px; fill: var(--muted); font-family: var(--font); }
.chart .bar { fill: var(--brand); } .chart .bar2 { fill: var(--gold); }
.chart .bar:hover, .chart .bar2:hover { opacity: .8; }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2; }
.chart .area { fill: var(--brand-50); }
.chart .grid-line { stroke: var(--line-2); }
.legend { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--brand); margin-right: 5px; vertical-align: -1px; }
.legend span.b2::before { background: var(--gold); }

/* Agenda */
.agenda-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.agenda-toolbar .date-nav { display: flex; align-items: center; gap: 4px; }
.agenda-toolbar .date-label { font-weight: 650; min-width: 0; padding: 0 6px; }
.agenda-toolbar select { width: auto; min-width: 160px; }
.agenda-toolbar input[type=date] { width: auto; }
.agenda-shell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.agenda-scroll { overflow: auto; max-height: calc(100dvh - 210px); -webkit-overflow-scrolling: touch; position: relative; }
.agenda-grid { display: grid; position: relative; min-width: 100%; }
.agenda-head { position: sticky; top: 0; z-index: 5; display: grid; background: var(--surface); border-bottom: 1px solid var(--line); }
.agenda-head .col-h { padding: 8px 10px; font-weight: 650; font-size: .86rem; border-left: 1px solid var(--line-2); display: flex; align-items: center; gap: 8px; min-width: 0; }
.agenda-head .col-h.today { color: var(--brand); }
.agenda-head .corner { position: sticky; left: 0; background: var(--surface); z-index: 6; }
.time-col { position: sticky; left: 0; z-index: 4; background: var(--surface); border-right: 1px solid var(--line); }
.time-col .t { position: absolute; right: 6px; font-size: .7rem; color: var(--muted); transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.time-col .t:first-child { transform: translateY(2px); }
.day-col { position: relative; border-left: 1px solid var(--line-2); background: repeating-linear-gradient(135deg, #f4f1ef 0 6px, #f8f6f4 6px 12px); cursor: crosshair; }
.day-col .work { position: absolute; left: 0; right: 0; background: var(--surface); }
.day-col .hline { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line-2); pointer-events: none; }
.day-col .hline.half { border-top-style: dashed; opacity: .6; }
.day-col .block { position: absolute; left: 2px; right: 2px; border-radius: 6px; background: repeating-linear-gradient(135deg, #ece7e3 0 5px, #e3ddd8 5px 10px); color: var(--ink-2); font-size: .72rem; padding: 3px 6px; overflow: hidden; z-index: 1; cursor: pointer; border: 1px dashed #cfc6bf; }
.now-line { position: absolute; left: 0; right: 0; border-top: 2px solid var(--bad); z-index: 3; pointer-events: none; }
.now-line::before { content: ''; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.appt-card { position: absolute; left: 3px; right: 3px; border-radius: 8px; padding: 4px 7px; font-size: .76rem; line-height: 1.25; overflow: hidden; z-index: 2; cursor: pointer; border-left: 4px solid var(--c, var(--brand));
  background: color-mix(in srgb, var(--c, var(--brand)) 13%, white); color: var(--ink); box-shadow: var(--shadow-sm); transition: box-shadow .12s, transform .12s; }
.appt-card:hover { box-shadow: var(--shadow); z-index: 3; }
.appt-card .t { font-weight: 700; font-variant-numeric: tabular-nums; }
.appt-card .n { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt-card .s { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt-card .flags { position: absolute; top: 3px; right: 4px; display: flex; gap: 3px; }
.appt-card.st-cancelled, .appt-card.st-no_show { opacity: .55; text-decoration: line-through; }
.appt-card.st-pending { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, white) 0 8px, color-mix(in srgb, var(--c) 16%, white) 8px 16px); }
.appt-card.st-completed { background: color-mix(in srgb, var(--c) 6%, #f4f4f4); }
.appt-card.st-in_service { box-shadow: 0 0 0 2px var(--violet); }
.appt-card.st-reschedule_requested { box-shadow: 0 0 0 2px #e08a2c; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.pending { background: var(--warn); } .status-dot.confirmed { background: var(--info); } .status-dot.in_service { background: var(--violet); }
.status-dot.completed { background: var(--ok); } .status-dot.cancelled, .status-dot.no_show { background: var(--bad); } .status-dot.reschedule_requested { background: #e08a2c; }
.agenda-list .day-h { padding: 10px 14px; background: var(--surface-2); font-weight: 650; font-size: .85rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; }
.agenda-list .row-item { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; border-left: 4px solid var(--c, var(--brand)); }
.agenda-list .row-item:hover { background: var(--surface-2); }
.legend-status { display: flex; gap: 12px; flex-wrap: wrap; font-size: .76rem; color: var(--muted); padding: 8px 12px; border-top: 1px solid var(--line); }
.legend-status span { display: inline-flex; align-items: center; gap: 5px; }

/* Detalhe do agendamento */
.detail-grid { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 12px; font-size: .92rem; margin-bottom: 14px; }
.detail-grid dt { color: var(--muted); }
.detail-grid dd { margin: 0; font-weight: 550; min-width: 0; overflow-wrap: anywhere; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.timeline { border-left: 2px solid var(--line); margin: 8px 0 0 6px; padding-left: 14px; font-size: .84rem; }
.timeline div { margin-bottom: 8px; position: relative; }
.timeline div::before { content: ''; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }

/* Autocomplete */
.ac { position: relative; }
.ac-list { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; }
.ac-list button { display: flex; width: 100%; text-align: left; gap: 10px; padding: 10px 12px; border: 0; background: none; cursor: pointer; align-items: center; min-height: 44px; }
.ac-list button:hover, .ac-list button.active { background: var(--brand-50); }
.selected-client { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--brand-100); background: var(--brand-50); border-radius: 10px; }

/* Pagamento */
.pay-summary { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.pay-summary .line { display: flex; justify-content: space-between; padding: 3px 0; font-size: .92rem; }
.pay-summary .total { font-size: 1.2rem; font-weight: 700; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.pay-item { display: grid; grid-template-columns: minmax(0, 1fr) 130px 40px; gap: 8px; margin-bottom: 8px; }

/* Cliente */
.client-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.pro-card { display: flex; gap: 12px; align-items: flex-start; }
.pro-card .meta { min-width: 0; flex: 1; }
.color-swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; vertical-align: -2px; }
.sched-row { display: grid; grid-template-columns: 110px repeat(4, minmax(0, 1fr)); gap: 8px; align-items: center; margin-bottom: 8px; }
@media (max-width: 600px) { .sched-row { grid-template-columns: 1fr 1fr; } .sched-row .wd { grid-column: 1 / -1; } }
.svc-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 110px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
@media (max-width: 600px) { .svc-row { grid-template-columns: 1fr 1fr; } .svc-row .check { grid-column: 1 / -1; } }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; padding: 4px; }
.bubble { max-width: 82%; padding: 7px 11px; border-radius: 12px; white-space: pre-wrap; font-size: .9rem; overflow-wrap: anywhere; }
.bubble.in { background: var(--gray-50); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.out { background: #dcf3e3; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.out.human { background: #e3ecfb; }
.bubble .meta { display: block; font-size: .68rem; color: var(--muted); margin-top: 3px; }
.conv-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 12px; }
@media (max-width: 900px) { .conv-layout { grid-template-columns: minmax(0, 1fr); } }
.qr-img { width: 260px; max-width: 100%; border-radius: 12px; border: 1px solid var(--line); margin: 8px 0; }

/* Configurações */
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.settings-nav { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; }
.settings-nav button { text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 10px; font-weight: 550; color: var(--ink-2); cursor: pointer; min-height: 40px; }
.settings-nav button.active { background: var(--brand-50); color: var(--brand); }
@media (max-width: 900px) {
  .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .settings-nav button { white-space: nowrap; }
}
.hours-row { display: grid; grid-template-columns: 130px 1fr 1fr; gap: 8px; align-items: center; margin-bottom: 6px; }
.logo-preview { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); background: var(--surface-2); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
.filters .field { margin: 0; min-width: 140px; flex: 1 1 140px; max-width: 240px; }
.sim-box { display: flex; flex-direction: column; gap: 8px; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; background: var(--gray-50); padding: 2px 6px; border-radius: 6px; }
