@import url("brand.css");

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
a { color: var(--primary); }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: #0F172A; color: #CBD5E1; padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { padding: 4px 10px 18px; }
.sidebar .brand img { height: 34px; display: block; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #CBD5E1; text-decoration: none; font-weight: 600; font-size: 14px; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; font-family: inherit; }
.nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-link.active { background: var(--grad); color: #fff; }
.nav-link svg { width: 18px; height: 18px; flex: none; }
.sidebar .spacer { flex: 1; }
.sidebar .who { padding: 10px 12px; font-size: 13px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 8px; }
.sidebar .who strong { display: block; color: #fff; }
.main { padding: 28px 32px 60px; max-width: 1280px; width: 100%; min-width: 0; }
.topbar-mobile, .scrim { display: none; }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; }
  .main { padding: 18px 14px 50px; }
  .btn.sm { min-height: 34px; }
  /* Barra superior com o botão «sanduíche» */
  .topbar-mobile { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; background: #0F172A; padding: 8px 12px; min-height: 56px; }
  .topbar-mobile img { height: 28px; display: block; }
  .hamb { width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; }
  .hamb:hover { background: rgba(255,255,255,.18); }
  .hamb svg { width: 24px; height: 24px; }
  /* Menu lateral como gaveta (esconde-se sozinho) */
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; height: auto; width: min(290px, 86vw); z-index: 60; overflow-y: auto; transform: translateX(-102%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; box-shadow: none; padding: 18px 14px; }
  .sidebar .nav-link { min-height: 44px; }
  .menu-open .sidebar { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; box-shadow: 8px 0 32px rgba(0,0,0,.35); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(15,23,42,.55); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .menu-open .scrim { opacity: 1; pointer-events: auto; }
  body.menu-lock { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .sidebar, .scrim { transition: none !important; } }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumb a { text-decoration: none; }

/* ---------- Componentes ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; transition: .12s; white-space: nowrap; }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn.primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(79,70,229,.3); }
.btn.primary:hover { filter: brightness(1.07); color: #fff; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card > h2 { margin-bottom: 4px; }
.card > .desc { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field > label, .lbl { font-weight: 600; font-size: 13px; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input[type=password], input[type=search], select, textarea {
  font-family: inherit; font-size: 14.5px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
input[type=color] { width: 48px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin-bottom: 10px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--primary); }
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline input[type=number] { width: 90px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--primary-50); color: var(--primary); white-space: nowrap; }
.pill.ok { background: #D1FAE5; color: #047857; }
.pill.warn { background: #FEF3C7; color: #B45309; }
.pill.gray { background: #E2E8F0; color: #475569; }
.pill.bad { background: #FFE4E6; color: #BE123C; }
.pill.coral { background: #FFE4DF; color: #C2410C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.ok { background: #064E3B; color: #6EE7B7; } :root:not([data-theme="light"]) .pill.warn { background: #78350F; color: #FCD34D; } :root:not([data-theme="light"]) .pill.gray { background: #263049; color: #B6BFD4; } :root:not([data-theme="light"]) .pill.bad { background: #881337; color: #FDA4AF; } }

.tabs { display: flex; gap: 2px; box-shadow: inset 0 -1px 0 var(--line); margin: 0 0 22px; overflow-x: auto; overflow-y: hidden; }
.tab { padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.stat { padding: 16px 18px; }
.stat .n { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.stat .l { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .s { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.bar.mint > i { background: var(--mint); }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--primary-50); }
.scroll-x { overflow-x: auto; }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }

/* Cartões de evento */
.event-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; position: relative; overflow: hidden; padding-top: 24px; transition: .15s; }
.event-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--ev, var(--primary)); }
.event-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.event-card h3 { font-size: 17px; }
.event-card .meta { color: var(--muted); font-size: 13.5px; display: flex; flex-direction: column; gap: 2px; }
.event-card .nums { display: flex; gap: 18px; margin-top: 4px; }
.event-card .nums b { font-size: 20px; letter-spacing: -0.02em; display: block; }
.event-card .nums span { font-size: 12px; color: var(--muted); font-weight: 600; }
.event-card.new { align-items: center; justify-content: center; border-style: dashed; color: var(--primary); font-weight: 700; min-height: 170px; box-shadow: none; background: transparent; cursor: pointer; font-size: 15px; font-family: inherit; }

/* Modal / toast */
.overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; z-index: 50; }
.modal { background: var(--surface); border-radius: var(--radius-lg); padding: 24px; width: 100%; max-width: 560px; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.modal.wide { max-width: 820px; }
.modal h2 { margin-bottom: 16px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.toasts { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: #0F172A; color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); max-width: 360px; }
.toast.err { background: var(--danger); }
.toast.ok { background: #047857; }

/* Login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 10% -10%, #C7D2FE55, transparent), radial-gradient(900px 500px at 100% 110%, #DDD6FE66, transparent), var(--bg); }
.login-card { width: 100%; max-width: 400px; }
.login-card img.logo { height: 44px; display: block; margin: 0 auto 8px; }
.login-card .tag { text-align: center; color: var(--muted); margin-bottom: 22px; font-size: 14px; }

/* Lista de inscrições */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { max-width: 280px; }
.toolbar select { width: auto; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-family: inherit; color: var(--muted); }
.chip.done { background: #D1FAE5; border-color: transparent; color: #047857; cursor: default; }
.chip:not(.done):hover { border-color: var(--primary); color: var(--primary); }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; word-break: break-word; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 6px; } }

/* Construtor de formulário */
.builder { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1050px) { .builder { grid-template-columns: 1fr; } }
.fb-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface); margin-bottom: 10px; }
.fb-row.sys { background: var(--primary-50); }
.fb-head { display: grid; grid-template-columns: 1fr 190px auto; gap: 8px; align-items: center; }
.fb-body { margin-top: 10px; display: grid; gap: 8px; }
.fb-row .tools { display: flex; gap: 4px; }
.icon-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; color: var(--muted); font-size: 14px; font-family: inherit; display: inline-grid; place-items: center; }
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.preview-pane { position: sticky; top: 16px; }
.preview-form { background: var(--bg); border-radius: 14px; padding: 18px; border: 1px dashed var(--line); }
@media (max-width: 560px) { .fb-head { grid-template-columns: 1fr; } }

/* Email / certificado */
.split { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.list-pick { display: flex; flex-direction: column; gap: 6px; }
.list-pick button { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 12px; font-family: inherit; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); }
.list-pick button.active { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.list-pick small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.phs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ph { font-family: ui-monospace, Menlo, monospace; font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--primary-50); color: var(--primary); border: 0; cursor: pointer; }
iframe.pv { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-height: 480px; }
iframe.pv.pdf { min-height: 520px; }
.logo-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.logo-thumb { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; height: 64px; display: grid; place-items: center; }
.logo-thumb img { max-height: 46px; max-width: 120px; }
.logo-thumb button { position: absolute; top: -8px; right: -8px; }

.qrow { display: grid; grid-template-columns: 1fr 160px auto; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--surface); }
@media (max-width: 700px) { .qrow { grid-template-columns: 1fr; } }
.q-res { margin-bottom: 18px; }
.q-res .row { display: grid; grid-template-columns: 34px 1fr 40px; gap: 8px; align-items: center; font-size: 13px; margin: 3px 0; }
.q-res .big { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.q-res blockquote { margin: 6px 0; padding: 8px 12px; background: var(--bg); border-radius: 8px; font-size: 14px; }

.copybox { display: flex; gap: 8px; }
.copybox input { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.warnbox { background: #FEF3C7; color: #92400E; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; }
.infobox { background: var(--primary-50); color: var(--ink-2); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; }
.sep { height: 1px; background: var(--line); margin: 18px 0; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.spark i { flex: 1; min-width: 4px; background: var(--grad); border-radius: 3px 3px 0 0; opacity: .85; }
.spark i:hover { opacity: 1; }
.grid > .card { margin-top: 0; }
.spark i { max-width: 26px; }
.toolbar .btn.primary { margin-left: auto; }

/* Powered by webIQ (discreto, como no Comunilog360) */
.powered-by { text-align: center; font-size: 11.5px; color: var(--muted); }
.powered-by a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.powered-by a:hover { color: var(--primary); text-decoration: underline; }
.sidebar .powered-by { color: rgba(255,255,255,.32); margin-top: 10px; font-size: 11px; }
.sidebar .powered-by a { color: rgba(255,255,255,.55); }
.sidebar .powered-by a:hover { color: #fff; }

/* ---------- Login (ecrã dividido) ---------- */
.login-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); background: var(--surface); }
.login-brand { position: relative; overflow: hidden; color: #fff; padding: 40px 52px; display: flex; flex-direction: column; gap: 22px;
  background: radial-gradient(900px 500px at 105% -10%, rgba(255,107,87,.38), transparent 60%), radial-gradient(700px 520px at -10% 110%, rgba(124,58,237,.9), transparent 60%), linear-gradient(145deg, #3B33C9 0%, #4F46E5 45%, #6D28D9 100%); }
.login-brand::before, .login-brand::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); pointer-events: none; }
.login-brand::before { width: 520px; height: 520px; right: -190px; top: 120px; }
.login-brand::after { width: 320px; height: 320px; left: -120px; bottom: 60px; }
.lb-logo { height: 38px; align-self: flex-start; position: relative; z-index: 1; }
.lb-copy { position: relative; z-index: 1; margin-top: 18px; }
.lb-copy h1 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 10px; }
.lb-copy p { margin: 0; font-size: 17px; opacity: .88; max-width: 420px; }
.lb-features { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.lb-features li { display: flex; gap: 14px; align-items: center; }
.lb-features .ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 19px; flex: none; backdrop-filter: blur(4px); }
.lb-features b { display: block; font-size: 15px; }
.lb-features li span:not(.ico) { font-size: 13.5px; opacity: .8; }

.scene { position: relative; height: 250px; margin: 10px 0 6px; z-index: 1; }
.tk { position: absolute; background: #fff; color: #0F172A; border-radius: 18px; box-shadow: 0 24px 50px rgba(15,23,42,.35); padding: 16px 18px; }
.tk-top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #475569; margin-bottom: 12px; }
.tk .dot { width: 9px; height: 9px; border-radius: 50%; background: #4F46E5; }
.tk .dot.coral { background: #FF6B57; }
.tk-front { left: 6%; top: 40px; width: min(380px, 88%); transform: rotate(-3deg); animation: floaty 6s ease-in-out infinite; }
.tk-front::before, .tk-front::after { content: ""; position: absolute; top: 58%; width: 22px; height: 22px; border-radius: 50%; background: #4F46E5; }
.tk-front::before { left: -11px; } .tk-front::after { right: -11px; }
.tk-body { display: flex; justify-content: space-between; gap: 14px; align-items: center; border-top: 2px dashed #E2E8F0; padding-top: 14px; }
.tk-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.tk-sub { font-size: 12.5px; color: #64748B; margin: 2px 0 8px; }
.tk-ok { display: inline-block; background: #D1FAE5; color: #047857; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tk-qr { width: 74px; height: 74px; color: #0F172A; flex: none; }
.tk-qr svg { width: 100%; height: 100%; display: block; }
.tk-back { right: 4%; top: 0; width: 260px; transform: rotate(5deg); opacity: .92; animation: floaty 7s ease-in-out infinite reverse; }
.tk-line { height: 8px; border-radius: 99px; background: #E2E8F0; margin-top: 8px; } .w70 { width: 70%; } .w40 { width: 40%; }
.chip-float { position: absolute; background: rgba(255,255,255,.95); color: #0F172A; font-size: 12.5px; font-weight: 700; padding: 8px 14px; border-radius: 999px; box-shadow: 0 10px 28px rgba(15,23,42,.3); }
.chip-float.c1 { right: 6%; bottom: 8px; color: #047857; } .chip-float.c2 { left: 2%; bottom: 0; color: #4F46E5; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .tk-front, .tk-back { animation: none; } }

.login-panel { display: grid; place-items: center; padding: 40px 28px; background: var(--bg); }
.login-box { width: 100%; max-width: 380px; }
.login-box .lp-logo { display: none; height: 40px; margin-bottom: 26px; }
.login-box h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 4px; }
.login-box > p { margin: 0 0 26px; }
.login-form input { padding: 12px 14px; font-size: 15.5px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-wrap .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; font-size: 16px; padding: 6px 8px; opacity: .55; border-radius: 8px; }
.pw-wrap .eye:hover { opacity: 1; background: var(--primary-50); }
.btn.lg { width: 100%; padding: 13px 16px; font-size: 15.5px; border-radius: 12px; margin-top: 4px; }

@media (max-width: 920px) {
  .login-split { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-panel { min-height: 100vh; background: radial-gradient(900px 420px at 100% -10%, rgba(124,58,237,.16), transparent), radial-gradient(700px 400px at -10% 110%, rgba(79,70,229,.14), transparent), var(--bg); }
  .login-box .lp-logo { display: block; }
}

.sidebar .who .versao { opacity: .55; font-size: 12px; }

.login-contact { display: flex; gap: 12px; align-items: flex-start; margin-top: 26px; padding: 14px 16px; border-radius: 14px; background: var(--primary-50); color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.login-contact b { color: var(--ink); }
.login-contact a { font-weight: 700; white-space: nowrap; }
.login-contact .lc-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; font-size: 16px; }

.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.lb-cta { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin: 22px 0 6px; padding: 16px 20px; border-radius: 16px; background: #fff; color: var(--primary-600); text-decoration: none; box-shadow: 0 10px 30px rgba(15,23,42,.25); transition: transform .15s, box-shadow .15s; }
.lb-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(15,23,42,.32); }
.lb-cta-t { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.lb-cta-t b { font-size: 16px; letter-spacing: -0.01em; }
.lb-cta-t small { color: var(--muted); font-size: 13px; }
.lb-cta-a { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }

/* ---------- Telemóvel: campos e grelhas não alargam a página; alvos de toque maiores ---------- */
.field, .grid > *, .card, .qrow > *, .inline > *, .page-head > * { min-width: 0; }
input, select, textarea { max-width: 100%; }
@media (max-width: 700px) {
  .qrow { grid-template-columns: minmax(0, 1fr); }
  .fb-row .tools { flex-wrap: wrap; }
  .icon-btn { width: 40px; height: 40px; }
  .pill { white-space: normal; text-align: left; border-radius: 14px; }
  .crumb a { display: inline-block; padding: 12px 6px; margin: -12px -6px; }
  .chip { min-height: 32px; padding: 6px 12px; }
  .inline input:not([type=checkbox]):not([type=radio]) { flex: 1 1 140px; min-width: 0; }
}
@media (max-width: 700px) { .copybox { flex-wrap: wrap; } .copybox > input { flex: 1 1 160px; min-width: 0; } .copybox > span { white-space: normal !important; word-break: break-all; } }

.sig-up { display: grid; gap: 6px; margin: -4px 0 14px; }
.sig-thumb { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 180px; height: 70px; border: 1px dashed var(--line); border-radius: 10px; background: repeating-conic-gradient(#f1f5f9 0% 25%, #fff 0% 50%) 50% / 14px 14px; }
.sig-thumb img { max-width: 160px; max-height: 58px; object-fit: contain; }
.sig-thumb .icon-btn { position: absolute; top: -10px; right: -10px; background: var(--surface); }
input[type=file] { max-width: 100%; min-width: 0; }
.sig-up > * { max-width: 100%; }

.ajuda-topo { white-space: pre-line; margin: 0 0 4px; }
