/* Painel de inscrições · mesmo design system do Day Use de IA (dayusedeia.com.br)
   tinta #171820 · roxo #6717df · cinza #565965 · linha #dcdde7 · papel #eefbff
   Inter Tight + vidro claro e toroide em arame no fundo. */
:root {
  --ws-black: #171820;
  --ws-orange: #6717df;
  --ws-orange-dark: #4a0fa3;
  --ws-slate: #565965;
  --ws-gray: #7d8090;
  --ws-light: #dcdde7;
  --paper: #eefbff;
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-blur: blur(22px) saturate(1.1);
  --glass-shadow: 0 14px 44px rgba(25, 26, 25, 0.08);
  --grad: linear-gradient(105deg, #ae00dd 8%, #7215ed 45%, #0096c8 95%);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-fast: 160ms;
  --ok: #1d7a46; --ok-bg: rgba(29, 122, 70, .12);
  --warn: #9a5800; --warn-bg: rgba(255, 162, 77, .22);
  --bad: #b3261e; --bad-bg: rgba(179, 38, 30, .1);
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; font-synthesis: none; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter Tight', Arial, Helvetica, sans-serif; font-weight: 400; line-height: 1.5; background: var(--paper); color: var(--ws-black); -webkit-font-smoothing: antialiased; }
::selection { background: var(--ws-orange); color: #fff; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, tr:focus-visible { outline: 2px solid var(--ws-orange); outline-offset: 3px; }
.hidden { display: none !important; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 32px); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; color: var(--ws-slate); }
.gradient { background-image: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.serif { font-family: 'Nanum Myeongjo', Georgia, serif; }

/* fundo fixo com toroide em arame */
.bg-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(ellipse at 100% 0, rgba(103, 23, 223, 0.18), transparent 46%), radial-gradient(ellipse at 0 100%, rgba(246, 212, 250, 0.45), transparent 52%), linear-gradient(145deg, #edfaff, #eafcff 38%, #f8edff); }
.studio-sculpture { position: absolute; top: 50%; right: -8vw; width: min(860px, 68vw); aspect-ratio: 600 / 560; translate: 0 -50%; }
.studio-sculpture-scroll { width: 100%; height: 100%; will-change: transform; }
.studio-sculpture-turn { width: 100%; height: 100%; animation: studio-breathe 12s cubic-bezier(0.77, 0, 0.175, 1) infinite alternate; }
.studio-sculpture svg { width: 100%; height: 100%; overflow: visible; }
.studio-wire path { fill: none; stroke: rgba(103, 23, 223, 0.42); stroke-width: 0.65px; }
.studio-wire .studio-ring { stroke: rgba(82, 86, 90, 0.5); stroke-width: 0.75px; }
.studio-satellite circle:first-child { fill: #6717df; opacity: 0.16; }
.studio-satellite circle:last-child { fill: #6717df; }
.studio-satellite { transform-origin: 300px 280px; animation: studio-satellite 24s linear infinite; }
@keyframes studio-breathe { 0% { transform: rotate(-4deg) translateY(-6px); } 100% { transform: rotate(5deg) translateY(6px); } }
@keyframes studio-satellite { 100% { transform: rotate(360deg); } }
@media (max-width: 760px) { .studio-sculpture { right: -38vw; top: 34%; width: 150vw; opacity: 0.8; } }

/* vidro claro, borda branca */
.glass, .card { background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .glass, .card { background: rgba(255, 255, 255, 0.92); } }
.card { border-radius: 28px; padding: clamp(20px, 2.6vw, 30px); }

/* botões: preto da marca, laranja ao passar o mouse */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 13px 28px; border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition-property: color, background-color, border-color, scale; transition-duration: var(--dur-fast); transition-timing-function: var(--ease-out); }
.btn:active { scale: 0.97; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-dark { background: var(--ws-black); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.55); color: var(--ws-black); border-color: var(--ws-black); }
.btn-sm { min-height: 36px; padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) { .btn-dark:hover { background: var(--ws-orange); } .btn-ghost:hover { background: var(--ws-black); color: #fff; } }

/* navegação em pílula */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 20; display: flex; justify-content: center; padding-inline: 16px; pointer-events: none; }
.nav-in { pointer-events: auto; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 18px; border-radius: 999px; max-width: 100%; background: rgba(255, 255, 255, 0.7); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 8px 30px rgba(25, 26, 25, 0.08); }
.brand { display: inline-flex; align-items: center; margin-right: 8px; }
.brand img { height: clamp(18px, 2.6vw, 24px); width: auto; }
.nav-title { font-size: 13px; font-weight: 600; color: var(--ws-slate); padding: 0 10px 0 14px; border-left: 1px solid var(--ws-light); white-space: nowrap; }
.nav-stamp { font-size: 12px; color: var(--ws-gray); padding: 0 8px; white-space: nowrap; }
@media (max-width: 860px) { .nav-title, .nav-stamp { display: none; } }
@media (max-width: 520px) { .nav-in .btn-ghost.csv { display: none; } }

/* login: painel da marca + cartão de acesso (mesmo design system: preto, laranja, vidro claro) */
.login { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; padding: 16px; }
.login-brand { position: relative; overflow: hidden; border-radius: 28px; color: #fff; padding: clamp(26px, 4vw, 52px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; box-shadow: var(--glass-shadow);
  background: radial-gradient(120% 90% at 16% 0, rgba(103, 23, 223, 0.42), rgba(25, 26, 25, 0) 58%), radial-gradient(80% 60% at 100% 100%, rgba(0, 150, 200, 0.2), rgba(25, 26, 25, 0) 60%), var(--ws-black); }
.login-logo-pill { display: inline-flex; align-items: center; background: #fff; border-radius: 999px; padding: 12px 22px; }
.login-logo-pill img { height: 22px; width: auto; }
.login-brand .eyebrow { margin-top: 48px; color: #c9cac9; }
.login-brand h2 { margin-top: 14px; font-size: clamp(42px, 5.4vw, 76px); letter-spacing: -0.05em; line-height: .98; font-weight: 800; padding-bottom: .06em; }
.login-brand-t { margin-top: 18px; max-width: 46ch; color: #c9cac9; font-size: 17px; line-height: 1.6; }
.login-brand small { color: var(--ws-gray); font-size: 13px; line-height: 1.6; max-width: 54ch; }
.login-main { display: grid; place-items: center; padding: 24px 8px; }
.login-card { width: min(460px, 100%); border-radius: 28px; padding: clamp(26px, 4vw, 40px); }
.login-card h1 { font-size: clamp(34px, 4.6vw, 46px); letter-spacing: -0.05em; line-height: 1; font-weight: 800; }
.login-card .lead { margin-top: 12px; color: var(--ws-slate); font-size: 16px; line-height: 1.6; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 20px 0 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--ws-slate); }
.field input { height: 50px; border: 1px solid var(--ws-light); border-radius: 14px; padding: 0 16px; background: rgba(255, 255, 255, .85); outline: none; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.field input:focus { border-color: var(--ws-orange); box-shadow: 0 0 0 3px rgba(103, 23, 223, .15); }
.pw { position: relative; }
.pw input { width: 100%; padding-right: 96px; }
.pw-eye { position: absolute; right: 6px; top: 50%; translate: 0 -50%; height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font-size: 13px; font-weight: 600; color: var(--ws-slate); cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast); }
@media (hover: hover) and (pointer: fine) { .pw-eye:hover { background: var(--ws-light); color: var(--ws-black); } }
.login-keep { margin-top: 16px; border: 1px solid var(--ws-light); border-radius: 999px; padding: 11px 16px; background: rgba(255, 255, 255, .7); font-weight: 500; }
.msg { min-height: 22px; margin: 12px 0; font-size: 14px; color: var(--bad); }
.login-alt { margin-top: 14px; }
.login-alt .btn-link { margin-top: 6px; }
.msg.ok { color: var(--ok, #1a7f4b); }
.nav-user { font-size: 13px; font-weight: 600; color: var(--ws-slate); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .nav-user { display: none; } }
.btn-link { display: block; margin: 12px auto 0; padding: 10px 14px; border: 0; background: transparent; font-size: 14px; font-weight: 600; color: var(--ws-slate); cursor: pointer; border-radius: 999px; transition: color var(--dur-fast); }
@media (hover: hover) and (pointer: fine) { .btn-link:hover { color: var(--ws-orange-dark); } }
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-brand { gap: 20px; }
  .login-brand .eyebrow { margin-top: 28px; }
  .login-brand h2 { font-size: clamp(38px, 11vw, 56px); }
  .login-brand-t { font-size: 15px; }
  .login-brand small { display: none; }
  .login-main { padding: 8px 0 24px; }
}

/* topo da página */
main { padding-block: 112px 72px; }
h1.page { margin-top: 14px; font-size: clamp(46px, 8vw, 104px); letter-spacing: -0.05em; line-height: .96; font-weight: 800; padding-bottom: .06em; }
.sub { margin-top: 20px; max-width: 60ch; font-size: 17px; line-height: 1.65; color: var(--ws-slate); }

/* indicadores */
.kpis { display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.kpi { border-radius: 24px; padding: 22px 24px; }
.kpi small { display: block; font-size: 13px; font-weight: 600; color: var(--ws-slate); }
.kpi strong { display: block; margin-top: 12px; font-size: clamp(28px, 3vw, 42px); letter-spacing: -0.05em; line-height: 1; font-weight: 800; }
.kpi em { display: block; margin-top: 10px; font-style: normal; font-size: 13px; color: var(--ws-slate); }
.kpi.main { background: var(--ws-black); border-color: var(--ws-black); color: #fff; box-shadow: var(--glass-shadow); }
.kpi.main small, .kpi.main em { color: #c9cac9; }
.kpi.main strong { background-image: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; font-size: clamp(34px, 4vw, 54px); }

.split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.panel h3 { font-size: 12px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; color: var(--ws-slate); margin-bottom: 18px; }
.row { margin-bottom: 14px; } .row:last-child { margin-bottom: 0; }
.row-h { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.row-h b { font-weight: 700; } .row-h span { color: var(--ws-slate); text-align: right; }
.bar { height: 8px; border-radius: 99px; background: rgba(25, 26, 25, .07); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--grad); transition: width .6s var(--ease-out); }
.bar.dark i { background: var(--ws-black); }
.empty-s { color: var(--ws-gray); font-size: 14px; }

/* filtros */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 40px; }
.filters input[type=search], .filters select { height: 44px; border: 1px solid var(--ws-light); border-radius: 999px; padding: 0 16px; background: rgba(255, 255, 255, .8); outline: none; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.filters input[type=search] { flex: 1 1 260px; min-width: 200px; }
.filters input:focus, .filters select:focus { border-color: var(--ws-orange); box-shadow: 0 0 0 3px rgba(103, 23, 223, .15); }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ws-slate); cursor: pointer; user-select: none; }
.chk input { accent-color: var(--ws-orange); width: 16px; height: 16px; }
.count { margin-left: auto; color: var(--ws-slate); font-size: 14px; font-weight: 600; }

/* tabela */
.table-box { margin-top: 14px; border-radius: 28px; overflow: auto; padding: 6px; }
table { border-collapse: collapse; width: 100%; min-width: 1120px; }
th { text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.6px; color: var(--ws-slate); padding: 16px 14px; border-bottom: 1px solid var(--ws-light); white-space: nowrap; }
td { padding: 14px; border-bottom: 1px solid rgba(25, 26, 25, .06); vertical-align: top; font-size: 14px; }
tbody tr { cursor: pointer; transition: background-color var(--dur-fast); }
tbody tr:hover { background: rgba(103, 23, 223, .05); }
tbody tr:last-child td { border-bottom: 0; }
.nm { font-weight: 700; letter-spacing: -0.01em; } .mut { color: var(--ws-slate); font-size: 13px; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.tag { display: inline-block; border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #fff; border: 1px solid var(--ws-light); color: var(--ws-slate); }
.tag.pago { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.tag.aguardando { background: var(--warn-bg); border-color: transparent; color: var(--warn); }
.tag.divergente { background: var(--bad-bg); border-color: transparent; color: var(--bad); }
.tag.pix { color: var(--ws-black); } .tag.card { color: var(--ws-black); }
.tag.workshop { border-color: rgba(103, 23, 223, .45); color: var(--ws-orange-dark); background: rgba(103, 23, 223, .08); }
.tag.dayusedeia { background: var(--ws-black); border-color: var(--ws-black); color: #fff; }
.tag.test { margin-left: 6px; background: var(--ws-light); border-color: transparent; color: var(--ws-slate); }
.state { padding: 56px 20px; text-align: center; color: var(--ws-slate); }

/* detalhe */
dialog { border: 0; border-radius: 28px; padding: 0; width: min(660px, calc(100% - 24px)); max-height: calc(100vh - 32px); background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .4); color: var(--ws-black); }
dialog::backdrop { background: rgba(25, 26, 25, .5); backdrop-filter: blur(3px); }
.dlg-h { display: flex; align-items: flex-start; gap: 12px; padding: 26px 28px 6px; }
.dlg-h h4 { font-size: 30px; letter-spacing: -0.045em; line-height: 1.05; font-weight: 800; }
.dlg-x { margin-left: auto; flex: none; border: 1px solid var(--ws-light); background: #fff; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 15px; transition: background-color var(--dur-fast), color var(--dur-fast); }
.dlg-x:hover { background: var(--ws-black); color: #fff; }
.dlg-b { padding: 8px 28px 28px; }
dl { display: grid; grid-template-columns: 170px 1fr; margin: 0; }
dt, dd { margin: 0; padding: 11px 0; border-bottom: 1px solid rgba(25, 26, 25, .06); font-size: 14px; }
dt { color: var(--ws-slate); font-weight: 600; } dd { word-break: break-word; }
dd a { color: var(--ws-orange-dark); font-weight: 600; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }

@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } .kpi.main { grid-column: 1 / -1; } .split { grid-template-columns: 1fr; } }
@media (max-width: 560px) { dl { grid-template-columns: 1fr; } dt { border-bottom: 0; padding-bottom: 0; } .kpis { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } .studio-sculpture-turn, .studio-satellite { animation: none; } }

/* ficha do cadastro */
.ficha-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ficha-nav { display: flex; align-items: center; gap: 8px; }
.ficha-nav .mut { margin-right: 6px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.ficha-head { margin-top: 36px; }
h1.ficha-title { font-size: clamp(38px, 6.4vw, 84px); overflow-wrap: anywhere; }
.ficha-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ficha-resumo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.mini { border-radius: 24px; padding: 20px 24px; }
.mini small { display: block; font-size: 13px; font-weight: 600; color: var(--ws-slate); }
.mini strong { display: block; margin-top: 10px; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.045em; line-height: 1.05; font-weight: 800; }
.mini em { display: block; margin-top: 8px; font-style: normal; font-size: 13px; color: var(--ws-slate); }
.mini.ok { background: var(--ws-black); border-color: var(--ws-black); color: #fff; }
.mini.ok small, .mini.ok em { color: #c9cac9; }
.aviso { margin-top: 14px; border-radius: 20px; padding: 16px 22px; font-weight: 600; background: var(--warn-bg); border-color: transparent; color: var(--warn); }
.ficha-acoes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.ficha-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
.ficha-wide { grid-column: 1 / -1; }
.ficha-card h3 { font-size: 12px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; color: var(--ws-slate); margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; }
.kv .k, .kv .v { padding: 11px 0; border-bottom: 1px solid rgba(25, 26, 25, .07); font-size: 14.5px; }
.kv .k { color: var(--ws-slate); font-weight: 600; padding-right: 14px; }
.kv .v { word-break: break-word; font-weight: 500; }
.kv .v a { color: var(--ws-orange-dark); font-weight: 600; }
.kv > :nth-last-child(-n+2) { border-bottom: 0; }
.tl { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.tl::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--ws-light); }
.tl li { position: relative; display: flex; flex-direction: column; padding: 8px 0 14px; }
.tl li::before { content: ""; position: absolute; left: -26px; top: 12px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--ws-gray); }
.tl li.feito::before { background: var(--ws-orange); border-color: var(--ws-orange); box-shadow: 0 0 0 5px rgba(103, 23, 223, .18); }
.tl li b { font-size: 15px; }
.outros { display: grid; gap: 8px; }
.outro { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; text-align: left; border: 1px solid var(--ws-light); background: rgba(255, 255, 255, .7); border-radius: 18px; padding: 12px 16px; cursor: pointer; transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.outro:hover { border-color: var(--ws-orange); background: #fff; }
.outro span { color: var(--ws-slate); font-size: 14px; flex: 1; }
@media (max-width: 900px) { .ficha-resumo, .ficha-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv .k { border-bottom: 0; padding-bottom: 0; } }

/* equipe */
.team-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.team-box { margin-top: 18px; border-radius: 28px; overflow: auto; padding: 6px; }
.team-box h3 { padding: 16px 14px 4px; font-size: 18px; letter-spacing: -0.02em; }
.team-box .nota { padding: 0 14px 10px; font-size: 13.5px; color: var(--ws-slate); line-height: 1.55; }
.team-box td .sub-em { display: block; color: var(--ws-slate); font-size: 13px; margin-top: 2px; word-break: break-all; }
.team-box td.acao { text-align: right; white-space: nowrap; }
.btn-danger { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn-ghost.rm { border-color: var(--bad); color: var(--bad); }
@media (hover: hover) and (pointer: fine) { .btn-danger:hover { background: #8e1e18; } .btn-ghost.rm:hover { background: var(--bad); color: #fff; } }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(25, 26, 25, .55); }
.modal-card { width: min(440px, 100%); border-radius: 24px; padding: clamp(22px, 4vw, 32px); background: #fff; }
.modal-card h2 { font-size: 28px; letter-spacing: -0.04em; line-height: 1.05; font-weight: 800; }
.modal-card .lead { margin-top: 10px; color: var(--ws-slate); line-height: 1.55; }
.modal-acoes { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ===== menu lateral e estrutura do painel ===== */
.app { display: grid; grid-template-columns: 276px minmax(0, 1fr); min-height: 100vh; min-height: 100svh; }
.app-main { min-width: 0; }
.app-main main { padding-block: 36px 72px; }
.side { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; gap: 18px; margin: 12px 0 12px 12px; height: calc(100vh - 24px); height: calc(100svh - 24px); padding: 18px 14px 14px; border-radius: 28px; background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); z-index: 30; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 0; }
.side-top .brand { margin: 0; } .side-top .brand img { height: 22px; }
.side-x { display: none; width: 36px; height: 36px; border: 1px solid var(--ws-light); border-radius: 50%; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.side-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 4px 0; }
.side-grupo { display: flex; flex-direction: column; gap: 2px; }
.side-h { margin: 6px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--ws-gray); }
.side-nav a { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 9px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ws-black); text-decoration: none; transition: background-color var(--dur-fast), color var(--dur-fast); }
@media (hover: hover) and (pointer: fine) { .side-nav a:hover { background: rgba(25, 26, 25, .07); } .side-nav a[aria-current="page"]:hover { background: var(--ws-black); } }
.side-nav a[aria-current="page"] { background: var(--ws-black); color: #fff; }
.ic { flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.ic-users { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6'/%3E%3Cpath d='M16 4.7a3.5 3.5 0 0 1 0 6.6M18 14.4c2.3.6 3.5 2.6 3.5 5.6'/%3E%3C/svg%3E"); }
.ic-id { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='3'/%3E%3Ccircle cx='9' cy='11' r='2.2'/%3E%3Cpath d='M5.8 16c.6-1.6 1.8-2.4 3.2-2.4s2.6.8 3.2 2.4M15 10h3.5M15 14h3.5'/%3E%3C/svg%3E"); }
.ic-shield { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7.5 3v5.5c0 4.6-3.1 8.2-7.5 9.5-4.4-1.3-7.5-4.9-7.5-9.5V6z'/%3E%3C/svg%3E"); }
.ic-page { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Cpath d='M3 9h18M7 6.5h.01M10 6.5h.01'/%3E%3C/svg%3E"); }
.ic-cart { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.5l2 11h11l2-8H6.5'/%3E%3Ccircle cx='9' cy='19.5' r='1.3'/%3E%3Ccircle cx='17' cy='19.5' r='1.3'/%3E%3C/svg%3E"); }
.side-user { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, .72); border: 1px solid var(--ws-light); }
.side-user b { font-size: 15px; overflow-wrap: anywhere; }
.side-user span { font-size: 13px; color: var(--ws-slate); margin-bottom: 10px; }
.topbar { display: none; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 25; padding: 10px 16px; background: rgba(244, 244, 243, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--ws-light); }
.topbar-t { font-weight: 700; font-size: 15px; }
.side-scrim { position: fixed; inset: 0; z-index: 28; background: rgba(25, 26, 25, .5); }
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .topbar { display: flex; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(310px, 86vw); height: auto; margin: 10px; transform: translateX(calc(-100% - 20px)); transition: transform .26s var(--ease-out); background: rgba(255, 255, 255, .96); }
  .side.aberto { transform: none; }
  .side-x { display: inline-grid; place-items: center; }
  .app-main main { padding-block: 22px 56px; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }

/* cabeçalho das telas */
.page-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-acoes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
h1.page { font-size: clamp(40px, 5.6vw, 76px); }
.lgpd { margin: 14px 4px 0; padding: 12px 18px; border-radius: 18px; font-size: 13.5px; color: var(--ws-slate); background: rgba(255, 255, 255, .6); border: 1px solid var(--ws-light); }
.lgpd:empty { display: none; }
.tag.on { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.tag.off { background: var(--ws-light); border-color: transparent; color: var(--ws-slate); }
.tag.voce { margin-left: 8px; background: var(--ws-black); border-color: var(--ws-black); color: #fff; }
.tag.perm { margin: 2px 4px 2px 0; font-weight: 600; }
.filters.solto { margin-top: 28px; }

/* tabelas das telas de equipe (linhas não abrem ficha) */
.tab-box { margin-top: 14px; border-radius: 28px; overflow: auto; padding: 6px; }
.tab-box table { min-width: 760px; }
.tab-box tbody tr { cursor: default; }
.tab-box h3 { padding: 16px 14px 4px; font-size: 18px; letter-spacing: -0.02em; }
.tab-box .nota { padding: 0 14px 10px; font-size: 13.5px; color: var(--ws-slate); line-height: 1.55; }
.tab-box td .sub-em { display: block; color: var(--ws-slate); font-size: 13px; margin-top: 2px; word-break: break-all; }
.tab-box td.acao { text-align: right; white-space: nowrap; }
.tab-box td.acao .btn { margin-left: 6px; }
.tab-box .matriz { min-width: 0; }
.matriz th, .matriz td { text-align: center; }
.matriz th:first-child, .matriz td:first-child { text-align: left; }
.matriz .sim { color: var(--ok); font-weight: 800; }
.matriz .nao { color: var(--ws-gray); }
.log { list-style: none; margin: 0; padding: 4px 14px 14px; }
.log li { display: grid; grid-template-columns: 128px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(25, 26, 25, .06); font-size: 14px; }
.log li:last-child { border-bottom: 0; }
.log .quando { color: var(--ws-slate); font-size: 13px; }
.log .quem { font-weight: 700; }
@media (max-width: 560px) { .log li { grid-template-columns: 1fr; gap: 2px; } }

/* modal dos formulários */
.modal-card { max-height: calc(100vh - 32px); max-height: calc(100svh - 32px); overflow-y: auto; }
.modal .field { margin-top: 16px; }
.modal .field select, .modal .field textarea { border: 1px solid var(--ws-light); border-radius: 14px; padding: 0 14px; background: rgba(255, 255, 255, .85); outline: none; }
.modal .field select { height: 50px; }
.modal .field textarea { min-height: 72px; padding: 12px 14px; resize: vertical; }
.modal .field select:focus, .modal .field textarea:focus { border-color: var(--ws-orange); box-shadow: 0 0 0 3px rgba(103, 23, 223, .15); }
.modal .field .ajuda { font-size: 12.5px; color: var(--ws-slate); }
.modal .chk { margin-top: 16px; }
.perms-lista { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.perms-lista .chk { margin: 0; padding: 10px 14px; border: 1px solid var(--ws-light); border-radius: 14px; background: rgba(255, 255, 255, .7); }
.perms-lista .chk.bloq { opacity: .55; cursor: not-allowed; }
.modal-acoes { margin-top: 6px; }
.btn-danger { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn-ghost.rm { border-color: var(--bad); color: var(--bad); }
@media (hover: hover) and (pointer: fine) { .btn-danger:hover { background: #8e1e18; } .btn-ghost.rm:hover { background: var(--bad); color: #fff; } }

/* telas de produto */
.prod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; align-items: start; }
.prod-grid .kpis { grid-column: 1 / -1; margin-top: 14px; grid-template-columns: repeat(5, 1fr); }
.prod-wide { grid-column: 1 / -1; }
.dias { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 8px; }
.dias .d { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.dias .d i { display: block; width: 100%; min-height: 3px; border-radius: 8px 8px 3px 3px; background: var(--grad); }
.dias .d i.zero { background: rgba(25, 26, 25, .1); }
.dias .d span { font-size: 10.5px; color: var(--ws-slate); white-space: nowrap; }
.dias .d b { font-size: 11.5px; line-height: 1; }
.rec { list-style: none; margin: 0; padding: 0; }
.rec li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(25, 26, 25, .07); font-size: 14px; }
.rec li:last-child { border-bottom: 0; }
.rec .mut { flex: 1; }
@media (max-width: 1100px) { .prod-grid .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .prod-grid { grid-template-columns: minmax(0, 1fr); } }

/* formulários em seções (funcionário e cliente) */
.modal-card.largo { width: min(700px, 100%); }
#mdCampos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
#mdCampos > * { grid-column: 1 / -1; }
#mdCampos > .meia { grid-column: auto; }
.md-secao { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--ws-light); font-size: 12px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--ws-slate); }
#mdCampos > .md-secao:first-child { margin-top: 14px; padding-top: 0; border-top: 0; }
.modal-card .field input[readonly] { background: var(--paper); color: var(--ws-slate); }
.modal .field input[type=text], .modal .field input[type=email], .modal .field input[type=tel], .modal .field input[type=password] { width: 100%; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.tag.manual { background: var(--ws-light); border-color: transparent; color: var(--ws-slate); }
.tab-box td .sub-em + .sub-em { margin-top: 0; }
@media (max-width: 560px) { #mdCampos > .meia { grid-column: 1 / -1; } }

/* menu completo: telas sem permissão ficam com cadeado */
.side-nav a.bloq { color: var(--ws-gray); }
.side-nav a.bloq::after { content: ""; margin-left: auto; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--lock) center / contain no-repeat; mask: var(--lock) center / contain no-repeat; --lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='3'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.sem-acesso { max-width: 640px; margin-top: 10px; }
.sem-acesso h2 { margin-top: 10px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.045em; line-height: 1; font-weight: 800; }
.sem-acesso p:last-child { margin-top: 14px; color: var(--ws-slate); line-height: 1.6; }

/* tela Cadastro de clientes */
.ic-chart { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M21 20H3'/%3E%3C/svg%3E"); }
.ic-edit { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16z'/%3E%3Cpath d='M13.5 6.5l4 4'/%3E%3C/svg%3E"); }
.ic-trash { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 11v6M14 11v6'/%3E%3C/svg%3E"); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-left: 4px; border: 0; border-radius: 50%; background: transparent; color: var(--ws-slate); cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast); }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .icon-btn:not(:disabled):hover { background: rgba(25, 26, 25, .08); color: var(--ws-black); } .icon-btn:not(:disabled):hover .ic-trash { color: var(--bad); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--ws-light); border-radius: 999px; background: rgba(255, 255, 255, .8); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.chip.on { background: var(--ws-black); border-color: var(--ws-black); color: #fff; }
@media (hover: hover) and (pointer: fine) { .chip:not(.on):hover { border-color: var(--ws-black); } }
.tab-box .tab-larga { min-width: 1080px; }
.tab-clientes tbody tr { transition: background-color var(--dur-fast); }
@media (hover: hover) and (pointer: fine) { .tab-clientes tbody tr:hover { background: rgba(103, 23, 223, .05); } }
.md-info { list-style: none; margin: 8px 0 0; padding: 0; }
.md-info li { padding: 8px 0; border-bottom: 1px solid rgba(25, 26, 25, .07); font-size: 13.5px; color: var(--ws-slate); }
.md-info li:last-child { border-bottom: 0; }

.tab-box td .sub-em.nowrap { white-space: nowrap; word-break: normal; }
.tab-clientes td:first-child { min-width: 190px; }

.ic-plus { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); width: 14px; height: 14px; }
