:root {
  --bg: #04060c; --surface: #0a1020; --surface2: #0f1830; --border: #1a2744;
  --accent: #2f5bff; --accent2: #16277a; --text: #e7ecf9; --muted: #8693b3;
  --danger: #ef4467; --ok: #22c58b; --warn: #f0b429; --radius: 12px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 420px at 15% -10%, color-mix(in srgb, var(--accent2) 55%, transparent), transparent 70%),
              radial-gradient(700px 380px at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
svg.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.125em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 14px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* layout */
.wrap-page { width: min(1120px, 100% - 40px); margin-inline: auto; }
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--border); }
.topbar .wrap-page { height: 64px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .14em; font-size: 15px; }
.brand .mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 15px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
main { padding: 40px 0 80px; }
footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 13px; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 500; font-size: 14px; transition: .15s; white-space: nowrap; }
.btn:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); background: var(--surface2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 86%, #fff); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--surface); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn.icon { width: 32px; padding: 0; height: 32px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.field { display: grid; gap: 6px; }
.field > label { font-size: 13px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); padding: 10px 12px; outline: none; transition: .15s; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input[type=color] { width: 44px; height: 36px; padding: 2px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
input[type=file] { color: var(--muted); font-size: 13px; }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }

/* superfícies */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card.outline { background: transparent; }
.panel-title { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.badge.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.badge.bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.badge.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.badge.blue { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* hero */
.hero { padding: 56px 0 40px; max-width: 760px; }
.hero.center { margin-inline: auto; text-align: center; }
.hero.center .row { justify-content: center; }
.hero h1 { font-size: clamp(34px, 5.5vw, 56px); font-weight: 700; margin-bottom: 16px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 580px; margin-bottom: 28px; }
.hero.center p { margin-inline: auto; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.block { margin-top: 56px; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.section-head h2 { font-size: 22px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(var(--cols, 3), 1fr); }
.feature { display: grid; gap: 10px; }
.feature .ico, .mod-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }
.feature h3 { font-size: 16px; }

.mod-card { display: grid; gap: 14px; cursor: pointer; transition: .18s; position: relative; }
.mod-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.mod-card h3 { font-size: 17px; }
.mod-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; color: var(--muted); font-size: 13px; }
.mod-card.locked { opacity: .65; cursor: default; }
.mod-card.locked:hover { transform: none; border-color: var(--border); }

/* auth */
.auth { width: min(420px, 100%); margin: 40px auto; }
.auth h1 { font-size: 26px; margin-bottom: 6px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; background: none; border-inline: 0; border-top: 0; white-space: nowrap; }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.err { color: var(--danger); font-size: 13px; min-height: 18px; }

/* módulo / conteúdo */
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.sec { margin-top: 28px; }
.sec h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.list { display: grid; gap: 8px; }
.item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); cursor: pointer; transition: .15s; }
.item:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: var(--surface2); }
.item .ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-size: 17px; }
.item .t { font-weight: 500; }
.viewer { max-width: 860px; }
.viewer video, .viewer img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); background: #000; max-height: 78vh; object-fit: contain; }
.prose { line-height: 1.75; }
.prose h2 { font-size: 22px; margin: 28px 0 10px; } .prose h3 { font-size: 17px; margin: 22px 0 8px; }
.prose p { margin: 0 0 14px; color: #cdd6ee; } .prose ul { margin: 0 0 14px; padding-left: 22px; color: #cdd6ee; }
.prose code { background: var(--surface2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }

/* tabelas e modal */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 12px 14px; background: var(--surface); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(2, 4, 10, .72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); width: min(560px, 100%); max-height: 92vh; overflow-y: auto; padding: 24px; }
.modal.wide { width: min(760px, 100%); }
.modal h2 { font-size: 19px; margin-bottom: 18px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; gap: 8px; }
.toast { background: var(--surface2); border: 1px solid var(--border); padding: 12px 16px; border-radius: 10px; font-size: 14px; display: flex; gap: 10px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: up .2s; }
.toast.ok .ic { color: var(--ok); } .toast.err .ic { color: var(--danger); }
@keyframes up { from { opacity: 0; transform: translateY(8px); } }
.spinner { width: 22px; height: 22px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* admin */
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--border); padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.side .brand { padding: 4px 10px 22px; }
.side a, .side button.lnk { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: var(--muted); cursor: pointer; background: none; border: 0; font-size: 14px; text-align: left; width: 100%; }
.side a:hover, .side button.lnk:hover { color: var(--text); background: var(--surface); }
.side a.active { color: var(--text); background: var(--surface2); box-shadow: inset 2px 0 0 var(--accent); }
.side .sp { flex: 1; }
.content { padding: 32px 40px 80px; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat .n { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-pick button { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg); color: var(--muted); cursor: pointer; font-size: 18px; display: grid; place-items: center; }
.icon-pick button.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.chk { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; background: var(--bg); }
.chk-list { display: grid; gap: 6px; max-height: 190px; overflow-y: auto; }
.mod-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.mod-row + .mod-row { margin-top: 8px; }
.sect-box { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; background: var(--surface); }
.sect-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.sect-box .item { border: 0; border-radius: 0; border-bottom: 1px solid var(--border); background: transparent; cursor: default; }
.sect-box .item:last-child { border-bottom: 0; }
.preview { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--bg); }
.login-box { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.keybox { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-size: 14px; white-space: pre-wrap; max-height: 260px; overflow: auto; user-select: all; }

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(min(var(--cols, 3), 2), 1fr); }
  .admin { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--border); padding: 12px; }
  .side .brand { padding: 4px 8px; width: 100%; }
  .side .sp { display: none; }
  .content { padding: 22px 16px 60px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } .wrap-page { width: calc(100% - 28px); } }


/* ---------- notificações ---------- */
.nb-bell{position:relative}
.nb-badge{position:absolute;top:2px;right:2px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:#ff3b5c;color:#fff;font-size:10px;font-weight:700;line-height:16px;text-align:center;display:none;pointer-events:none}
.nb-badge.on{display:block}
.nb-pops{position:fixed;top:14px;right:14px;z-index:1200;display:flex;flex-direction:column;gap:10px;width:min(380px,calc(100vw - 28px))}
.nb-pop{display:flex;align-items:flex-start;gap:12px;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 12px 40px rgba(0,0,0,.5);animation:nb-in .25s ease;text-align:left}
.nb-pop.static{animation:none;box-shadow:none;max-width:380px}
.nb-pop img{border-radius:10px;flex:none}
.nb-pop-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;cursor:pointer}
.nb-pop.static .nb-pop-txt{cursor:default}
.nb-pop-txt span{color:var(--muted);font-size:14px;overflow-wrap:anywhere}
.nb-pop-x{background:none;border:0;color:var(--muted);cursor:pointer;padding:2px;flex:none}
.nb-pop-x .ic{width:16px;height:16px}
@keyframes nb-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.nb-invite{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom, 0px));transform:translateX(-50%);z-index:1100;width:min(520px,calc(100vw - 24px));display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 12px 40px rgba(0,0,0,.55)}
.nb-invite img{border-radius:10px;flex:none}
.nb-invite .grow{flex:1;min-width:160px}
.nb-invite-actions{display:flex;gap:8px;margin-left:auto}
.nb-status{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface2);font-size:14px}
.nb-status .grow{flex:1;min-width:0}
.nb-status>.ic{flex:none;color:var(--accent)}
.nb-list{display:flex;flex-direction:column;gap:8px;max-height:50vh;overflow:auto}
.nb-item{padding:12px 14px;border:1px solid var(--border);border-radius:var(--radius)}
.nb-item.link{cursor:pointer}
.nb-item.link:hover{background:var(--surface2)}
.nb-item-head{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.nb-item p{margin-top:4px;font-size:14px;overflow-wrap:anywhere}
.nb-steps{padding-left:20px;display:flex;flex-direction:column;gap:8px}


/* ---------- logo ---------- */
.mod-ico, .feature .ico, .item .ico { flex: none; }
.brand .logo { height: 26px; width: auto; flex: none; display: block; }
.tabbar { display: none; }
html { -webkit-text-size-adjust: 100%; }
a, button, .item, .mod-card { -webkit-tap-highlight-color: transparent; }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .m-hide { display: none !important; }
  .wrap-page { width: calc(100% - 32px); }
  .topbar { padding-top: env(safe-area-inset-top, 0px); }
  .topbar .wrap-page { height: 56px; gap: 10px; }
  .topbar .brand { font-size: 0; gap: 0; letter-spacing: 0; }
  .topbar .brand .logo { height: 28px; }
  .nav { gap: 4px; }
  .nav .btn { height: 38px; padding: 0 12px; font-size: 13px; }
  .nav .btn.icon { width: 40px; height: 40px; padding: 0; font-size: 18px; }
  main { padding: 22px 0 48px; }
  footer { padding: 22px 0; text-align: center; }
  #app > div:has(> .tabbar) footer { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }

  /* barra inferior (usuário logado) */
  .tabbar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-top: 1px solid var(--border); padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .tab-i { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 50px; padding: 4px; border: 0; background: none;
    color: var(--muted); font-size: 11px; font-weight: 500; border-radius: 12px; cursor: pointer; }
  .tab-i .ic { font-size: 21px; }
  .tab-i.on { color: var(--accent); }
  .tab-i:active { background: var(--surface); }

  /* formulários: 16px evita o zoom automático do iPhone */
  input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea { font-size: 16px; padding: 12px 14px; }
  .btn { height: 44px; }
  .btn.sm { height: 36px; }
  .btn.icon { width: 40px; height: 40px; }

  /* página inicial */
  .hero { padding: 20px 0 12px; }
  .hero h1 { font-size: clamp(28px, 8.4vw, 40px); margin-bottom: 12px; }
  .hero p { font-size: 16px; margin-bottom: 22px; }
  .hero .row { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero .row .btn { height: 48px; font-size: 15px; }
  .eyebrow { font-size: 11px; margin-bottom: 14px; }
  .block { margin-top: 32px; }
  .section-head { margin-bottom: 14px; }
  .section-head h2 { font-size: 20px; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 18px; }
  .feature { grid-template-columns: 42px 1fr; column-gap: 14px; row-gap: 2px; align-items: center; }
  .feature .ico { grid-row: span 2; }
  .feature p { grid-column: 2; }
  .mod-card { grid-template-columns: 42px 1fr; column-gap: 14px; row-gap: 10px; align-items: center; }
  .mod-card .meta { grid-column: 1 / -1; margin-top: 0; }
  .mod-card:hover { transform: none; }

  /* biblioteca, módulo e conteúdo */
  .page-head { margin-bottom: 18px !important; }
  .page-head h1 { font-size: 24px !important; }
  .page-head > .btn { width: 100%; }
  main h1 { overflow-wrap: anywhere; }
  .crumbs { font-size: 13px; margin-bottom: 16px; }
  .sec { margin-top: 22px; }
  .item { padding: 12px; gap: 12px; }
  .item > .badge { display: none; }
  .item .t { overflow-wrap: anywhere; }
  .viewer video, .viewer img { max-height: 62vh; }
  .viewer .card.row { flex-wrap: wrap; }
  .viewer .card.row .btn { width: 100%; }
  .prose h2 { font-size: 20px; }
  .prose code { overflow-wrap: anywhere; }
  .auth { margin: 8px auto 24px; }
  .auth h1 { font-size: 24px; }
  .empty { padding: 36px 16px; }

  /* modal vira folha inferior */
  .modal-bg { padding: 0; place-items: end center; }
  .modal, .modal.wide { width: 100%; max-height: 88vh; border-radius: 20px 20px 0 0; border-bottom: 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px)); animation: sheet .22s ease; }
  .modal .actions { flex-wrap: wrap; }
  .modal .actions .btn { flex: 1; }
  @keyframes sheet { from { transform: translateY(24px); opacity: 0; } }
  .toasts { left: 16px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .nb-pops { top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; left: 12px; width: auto; }
  .nb-invite { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .nb-invite-actions { width: 100%; }
  .nb-invite-actions .btn { flex: 1; }
  .nb-status { flex-wrap: wrap; }
  .nb-status .btn { width: 100%; }
  .nb-item-head { flex-direction: column; gap: 2px; }

  /* painel admin */
  .side { position: sticky; top: 0; z-index: 20; flex-wrap: nowrap; overflow-x: auto; gap: 2px; padding: 8px 10px; background: var(--bg); scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side .brand { width: auto; padding: 0 10px 0 4px; font-size: 0; gap: 0; }
  .side a, .side button.lnk { width: auto; white-space: nowrap; padding: 9px 12px; }
  .side a.active { box-shadow: inset 0 -2px 0 var(--accent); }
  .content { padding: 18px 14px 60px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat .n { font-size: 24px; }
  .mod-row { flex-wrap: wrap; }
  .sect-box .item { flex-wrap: wrap; }
  td, th { padding: 10px 12px; }
}


/* ---------- imagem como ícone do módulo ---------- */
.mod-ico.img { background: none; border-color: var(--border); overflow: hidden; padding: 0; }
.mod-ico.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mod-card .mod-ico.img { width: 52px; height: 52px; border-radius: 13px; }
@media (max-width: 640px) {
  .tabbar { grid-template-columns: repeat(4, 1fr); }
  .mod-card { grid-template-columns: auto 1fr; }
}
