/* MC Financeiro — Área da equipa
   Mesma identidade dos HTML originais (bronze, marfim, IBM Plex). */
:root{
  --bronze:#8E5E34; --ivory:#F7F3EB; --charcoal:#111111;
  --gray-light:#E4E4E2; --gray-mid:#8E8A86;
  --bg:var(--ivory); --surface:#FFFFFF; --surface-2:#FBF9F4;
  --border:var(--gray-light); --text:var(--charcoal); --text-muted:var(--gray-mid);
  --accent:var(--bronze); --accent-soft:#EFE3D6;
  --required:#B4472F; --danger:#C4453F; --ok:#4CAF6D; --warn:#D98A3D;
  --radius:14px;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#111111; --surface:#1B1A18; --surface-2:#221F1C; --border:#3A342E;
    --text:#F7F3EB; --text-muted:#B7AFA3; --accent:#C4915C; --accent-soft:#3A2A1C;
  }
}
:root[data-theme="dark"]{
  --bg:#111111; --surface:#1B1A18; --surface-2:#221F1C; --border:#3A342E;
  --text:#F7F3EB; --text-muted:#B7AFA3; --accent:#C4915C; --accent-soft:#3A2A1C;
}

*{ box-sizing:border-box; }
html{ scroll-padding-top: env(safe-area-inset-top, 0px); }
body{
  margin:0; min-height:100vh; min-height:100dvh; display:flex; flex-direction:column; background:var(--bg); color:var(--text);
  font-family:'IBM Plex Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing:antialiased; transition:background .2s ease, color .2s ease;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
a{ color:var(--accent); }
h1{ font-family:'IBM Plex Serif', Georgia, serif; font-size:27px; line-height:1.28; font-weight:600; margin:0 0 12px; }
h2{ font-family:'IBM Plex Serif', Georgia, serif; font-size:18px; line-height:1.35; font-weight:600; margin:0 0 8px; display:flex; align-items:center; gap:8px; }
.eyebrow{ font-size:13px; color:var(--accent); font-weight:600; margin:0 0 8px; }
.section-label{ font-size:13px; color:var(--accent); font-weight:600; margin:0 0 6px; }
p.lead{ color:var(--text-muted); font-size:14.5px; line-height:1.65; margin:0 0 18px; }
p.lead.small{ font-size:13.5px; margin-bottom:16px; }
.muted{ color:var(--text-muted); font-weight:400; }
.req-mark{ color:var(--required); font-weight:700; margin-left:2px; }
.q-text{ font-size:14px; font-weight:600; margin:4px 0 10px; }
.hint{ display:block; font-size:12.5px; color:var(--text-muted); margin-top:6px; }
.count{ font-family:'IBM Plex Sans', sans-serif; font-size:12px; font-weight:600; color:var(--text-muted); background:var(--surface-2); border:1px solid var(--border); border-radius:20px; padding:2px 9px; }

/* ---------- Avatares e etiquetas ---------- */
.avatar{
  width:36px; height:36px; border-radius:50%; flex-shrink:0;
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--accent); color:#fff; font-size:13px; font-weight:700; letter-spacing:.02em;
}
.avatar.soft{ background:var(--accent-soft); color:var(--accent); }
.avatar.lg{ width:58px; height:58px; font-size:19px; }
.badge{
  display:inline-block; font-family:'IBM Plex Sans', sans-serif; font-size:11.5px; font-weight:600;
  color:var(--text-muted); background:var(--surface-2); border:1px solid var(--border);
  border-radius:20px; padding:2px 9px; vertical-align:middle;
}
.badge-role{ color:var(--accent); background:var(--accent-soft); border-color:transparent; }
.badge-warn{ color:#fff; background:var(--warn); border-color:transparent; }

/* ---------- Formulários (iguais aos do diagnóstico) ---------- */
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:13px; color:var(--text-muted); margin-bottom:6px; }
.field input, .field select, .row-actions select{
  width:100%; background:var(--surface-2); border:1px solid var(--border); color:var(--text);
  border-radius:10px; padding:12px 14px; font-size:15px; font-family:inherit; outline:none;
}
.field input:focus, .field select:focus{ border-color:var(--accent); }
.field input:disabled{ opacity:.65; }
.pass-wrap{ position:relative; }
.pass-wrap input{ padding-right:84px; }
.pass-toggle{
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  background:transparent; border:none; color:var(--accent); font:inherit; font-size:12.5px; font-weight:600;
  cursor:pointer; padding:8px 10px;
}
.check{ display:flex; align-items:center; gap:9px; font-size:13.5px; color:var(--text-muted); margin:6px 0 20px; cursor:pointer; }
.check input{ width:17px; height:17px; accent-color:var(--accent); }

.option-list{ display:grid; gap:8px; margin-bottom:16px; }
.option{
  background:var(--surface-2); border:1px solid var(--border); border-radius:10px;
  padding:12px 14px; cursor:pointer; font-size:14px; color:var(--text);
  display:flex; align-items:flex-start; gap:10px; transition:border-color .15s ease, background .15s ease;
}
.option:hover{ border-color:var(--accent); }
.option input{ margin:3px 0 0; accent-color:var(--accent); }
.option span{ display:flex; flex-direction:column; gap:2px; }
.option small{ color:var(--text-muted); font-size:12.5px; }
.option:has(input:checked){ border-color:var(--accent); background:var(--accent-soft); }

/* ---------- Botões (iguais aos originais) ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; text-decoration:none;
  border:none; border-radius:10px; padding:13px 22px; font-size:15px; font-weight:600; cursor:pointer; font-family:inherit;
}
.btn-primary{ background:var(--accent); color:#fff; width:100%; }
.btn-primary:hover{ opacity:.92; }
.btn-outline{ background:transparent; border:1px solid var(--border); color:var(--text); }
.btn-outline:hover{ border-color:var(--accent); }
.card > form > .btn-outline{ width:100%; }
.btn-ghost{ background:transparent; color:var(--text-muted); }
.btn-ghost:hover{ color:var(--text); }
.btn-danger{ background:transparent; border:1px solid var(--border); color:var(--danger); }
.btn-danger:hover{ border-color:var(--danger); }
.btn-sm{ padding:8px 13px; font-size:13px; width:auto; }

/* ---------- Avisos ---------- */
.alert{ border-radius:10px; padding:12px 14px; font-size:14px; margin-bottom:18px; border:1px solid var(--border); background:var(--surface-2); }
.alert-error{ border-left:3px solid var(--danger); }
.alert-info{ border-left:3px solid var(--accent); }
.note{ font-size:13px; margin:14px 0 0; }
.note.ok{ color:var(--ok); }
.note.warn{ color:var(--warn); }
.toast{
  position:fixed; left:50%; bottom:calc(24px + env(safe-area-inset-bottom, 0px)); transform:translateX(-50%);
  background:var(--text); color:var(--bg); padding:12px 18px; border-radius:10px; font-size:14px; font-weight:500;
  z-index:50; box-shadow:0 8px 30px rgba(0,0,0,.18); max-width:calc(100% - 28px);
  animation:toastIn .25s ease, toastOut .3s ease 4.5s forwards;
}
@keyframes toastIn{ from{ opacity:0; transform:translate(-50%, 8px); } }
@keyframes toastOut{ to{ opacity:0; visibility:hidden; } }

/* ---------- Link de convite ---------- */
.link-card{ border-color:var(--accent); }
.copy-row{ display:flex; gap:8px; margin-bottom:12px; }
.copy-row input{
  flex:1; min-width:0; background:var(--surface-2); border:1px solid var(--border); color:var(--text);
  border-radius:10px; padding:10px 12px; font-size:13.5px; font-family:inherit;
}
.share-row{ display:flex; gap:8px; flex-wrap:wrap; }
@media (max-width: 520px){ .copy-row{ flex-direction:column; } .share-row .btn{ flex:1 1 100%; } }

/* ---------- Listas ---------- */
.list{ display:grid; gap:10px; margin-top:14px; }
.row{
  display:flex; align-items:center; gap:14px; background:var(--surface-2);
  border:1px solid var(--border); border-radius:12px; padding:14px 16px; flex-wrap:wrap;
}
.row.is-suspended{ opacity:.7; }
.row-main{ flex:1; min-width:180px; }
.row-title{ font-weight:600; font-size:14.5px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.row-sub{ font-size:13px; color:var(--text-muted); margin-top:2px; }
.row-actions{ display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.row-actions form{ margin:0; }
.row-actions select{ width:auto; padding:7px 10px; font-size:13px; border-radius:8px; }
.empty{ color:var(--text-muted); font-size:14px; margin:12px 0 0; }

.profile-hero{ display:flex; align-items:center; gap:18px; }
.profile-hero h2{ margin:0 0 2px; }
.role-line{ margin-top:8px; font-size:13px; color:var(--text-muted); }

/* ================================================================
   Estrutura da aplicação
   Telemóvel < 768px · Tablet 768–1023px · Computador ≥ 1024px
   ================================================================ */
.ic{ width:19px; height:19px; flex-shrink:0; }
.container{ max-width:1180px; margin:0 auto; padding:0 24px; }

/* Ícones do tema: mostra a lua no modo claro e o sol no modo escuro */
[data-theme-toggle] .ic + .ic{ display:none; }
html.is-dark [data-theme-toggle] .ic:first-of-type{ display:none; }
html.is-dark [data-theme-toggle] .ic + .ic{ display:inline-block; }

/* ---------- Cabeçalho ---------- */
.hdr{
  position:sticky; top:0; z-index:40;
  background:color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter:saturate(1.4) blur(10px); backdrop-filter:saturate(1.4) blur(10px);
  border-bottom:1px solid var(--border);
  padding-top:env(safe-area-inset-top, 0px);
}
.hdr-in{ max-width:1180px; margin:0 auto; padding:0 24px; height:66px; display:flex; align-items:center; gap:28px; }
.logo{ display:flex; align-items:center; gap:11px; text-decoration:none; color:var(--text); flex-shrink:0; }
.logo-txt{ display:flex; flex-direction:column; line-height:1.15; min-width:0; }
.logo-txt b{ font-family:'IBM Plex Serif', Georgia, serif; font-size:17px; font-weight:700; letter-spacing:-.005em; white-space:nowrap; }
.logo-txt small{ font-size:10.5px; font-weight:700; color:var(--accent); text-transform:uppercase; letter-spacing:.14em; margin-top:3px; white-space:nowrap; }

/* Emblema da marca */
.brand-mark{
  position:relative; width:42px; height:42px; border-radius:13px; flex-shrink:0;
  display:inline-flex; align-items:center; justify-content:center; color:#fff;
  background:linear-gradient(145deg, #B07A47 0%, #8E5E34 52%, #6B4424 100%);
  box-shadow:0 1px 0 rgba(255,255,255,.35) inset, 0 6px 16px -6px rgba(142,94,52,.65);
  overflow:hidden;
}
.brand-mark::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(255,255,255,.22), transparent 55%); pointer-events:none; }
.brand-glyph{ width:30px; height:30px; position:relative; z-index:1; }
.brand-mark.lg{ width:64px; height:64px; border-radius:18px; margin-bottom:14px; }
.brand-mark.lg .brand-glyph{ width:46px; height:46px; }
.brand-mark.has-logo{ background:var(--surface); box-shadow:0 0 0 1px var(--border), 0 6px 16px -8px rgba(0,0,0,.25); }
.brand-mark.has-logo::after{ display:none; }
.brand-mark img{ width:100%; height:100%; object-fit:contain; }
.logo:hover .brand-mark{ transform:translateY(-1px); }
.brand-mark{ transition:transform .15s ease; }
.brand-preview{ display:flex; align-items:center; gap:12px; padding:16px; border:1px dashed var(--border); border-radius:12px; margin-bottom:18px; background:var(--surface-2); }

.menu{ display:flex; align-items:center; gap:4px; flex:1; }
.menu a{
  display:inline-flex; align-items:center; gap:8px; text-decoration:none;
  color:var(--text-muted); font-size:14px; font-weight:600; padding:9px 14px; border-radius:10px;
  transition:background .15s ease, color .15s ease;
}
.menu a:hover{ color:var(--text); background:var(--surface-2); }
.menu a.active{ color:var(--accent); background:var(--accent-soft); }

.hdr-actions{ display:flex; align-items:center; gap:8px; margin-left:auto; }
.icon-btn{
  width:40px; height:40px; border-radius:10px; border:1px solid var(--border); background:var(--surface);
  color:var(--text); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; padding:0;
}
.icon-btn:hover{ border-color:var(--accent); color:var(--accent); }
.burger{ display:none; }

.user-menu{ position:relative; }
.user-btn{
  display:flex; align-items:center; gap:10px; background:transparent; border:1px solid transparent;
  border-radius:12px; padding:4px 8px 4px 4px; cursor:pointer; color:var(--text); font-family:inherit; text-align:left;
}
.user-btn:hover, .user-btn[aria-expanded="true"]{ background:var(--surface); border-color:var(--border); }
.user-btn .ic{ width:16px; height:16px; color:var(--text-muted); }
.user-meta{ display:flex; flex-direction:column; line-height:1.2; }
.user-name{ font-size:13.5px; font-weight:600; }
.user-role{ font-size:12px; color:var(--text-muted); }
.user-drop{
  position:absolute; right:0; top:calc(100% + 8px); width:250px; z-index:60;
  background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:8px;
  box-shadow:0 14px 40px rgba(0,0,0,.14);
}
.drop-head{ padding:10px 10px 12px; border-bottom:1px solid var(--border); margin-bottom:6px; display:flex; flex-direction:column; gap:2px; }
.drop-head small{ color:var(--text-muted); font-size:12.5px; overflow:hidden; text-overflow:ellipsis; }
.user-drop a{ display:flex; align-items:center; gap:10px; padding:10px; border-radius:9px; text-decoration:none; color:var(--text); font-size:14px; }
.user-drop a:hover{ background:var(--surface-2); color:var(--accent); }

/* ---------- Menu lateral (telemóvel) ---------- */
.drawer{ position:fixed; inset:0; z-index:80; }
.drawer-bg{ position:absolute; inset:0; background:rgba(0,0,0,.45); animation:fadeIn .2s ease; }
.drawer-panel{
  position:absolute; top:0; right:0; bottom:0; width:min(320px, 86vw);
  background:var(--surface); border-left:1px solid var(--border);
  display:flex; flex-direction:column; padding:calc(14px + env(safe-area-inset-top, 0px)) 14px calc(14px + env(safe-area-inset-bottom, 0px));
  animation:slideIn .22s ease;
}
.drawer-top{ display:flex; align-items:center; gap:10px; padding:4px 4px 16px; border-bottom:1px solid var(--border); }
.drawer-top .user-meta{ flex:1; min-width:0; }
.drawer-nav{ display:flex; flex-direction:column; gap:4px; padding:14px 0; flex:1; }
.drawer-nav a, .drawer-link{
  display:flex; align-items:center; gap:12px; padding:13px 12px; border-radius:11px; text-decoration:none;
  color:var(--text); font-size:15px; font-weight:600; background:transparent; border:none; width:100%;
  font-family:inherit; cursor:pointer; text-align:left;
}
.drawer-nav a:hover, .drawer-link:hover{ background:var(--surface-2); }
.drawer-nav a.active{ color:var(--accent); background:var(--accent-soft); }
.drawer-foot{ border-top:1px solid var(--border); padding-top:10px; display:flex; flex-direction:column; gap:2px; }
.drawer-link{ font-weight:500; color:var(--text-muted); }
@keyframes fadeIn{ from{ opacity:0; } }
@keyframes slideIn{ from{ transform:translateX(100%); } }

/* ---------- Conteúdo ---------- */
.main{ flex:1; padding:34px 0 56px; }
.page-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:6px; }
.page-head .lead{ max-width:620px; }
.head-actions{ display:flex; gap:8px; margin-bottom:18px; flex-wrap:wrap; }
.card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:28px 26px; margin-bottom:20px; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:start; margin-bottom:20px; }
.grid-2 > .card{ margin-bottom:0; }

/* Painel de Leads */
.frame-wrap{ position:relative; }
.app-frame{ display:block; width:100%; height:70vh; min-height:620px; border:0; background:transparent; }
.app-frame.is-overlay{ position:fixed; inset:0; width:100vw; height:100vh; height:100dvh; min-height:0; z-index:100; background:var(--bg); }
body.has-overlay{ overflow:hidden; }

/* ---------- Rodapé ---------- */
.ftr{ border-top:1px solid var(--border); background:var(--surface); padding-bottom:env(safe-area-inset-bottom, 0px); }
.ftr-in{
  max-width:1180px; margin:0 auto; padding:20px 24px; display:flex; justify-content:space-between; align-items:center; gap:10px 24px;
  flex-wrap:wrap; font-size:13px; color:var(--text-muted);
}
.ftr-dev b{ color:var(--accent); font-weight:700; letter-spacing:.01em; }

/* ---------- Ecrãs de entrada ---------- */
.auth{ flex:1; width:100%; max-width:460px; margin:0 auto; padding:48px 18px 40px; display:flex; flex-direction:column; justify-content:center; }
.auth-brand{ display:flex; flex-direction:column; align-items:center; margin-bottom:22px; text-align:center; }
.auth-brand .brand-name{ font-family:'IBM Plex Serif', Georgia, serif; font-size:24px; font-weight:700; letter-spacing:-.01em; }
.auth-brand .brand-tag{ font-size:11px; font-weight:700; color:var(--accent); text-transform:uppercase; letter-spacing:.16em; margin-top:6px; }
.auth-card{ padding:34px 30px; }
.auth-card .btn-primary{ margin-top:4px; }
.cta-note{ text-align:center; font-size:12.5px; color:var(--text-muted); margin:16px 0 0; }
.theme-pill{
  align-self:center; display:inline-flex; align-items:center; gap:8px; background:var(--surface-2); border:1px solid var(--border);
  color:var(--text); border-radius:20px; padding:7px 14px; font-size:12.5px; cursor:pointer; font-family:inherit;
}
.theme-pill .ic{ width:16px; height:16px; }
.theme-pill:hover{ border-color:var(--accent); }
body.is-auth .ftr{ background:transparent; }
body.is-auth .ftr-in{ justify-content:center; text-align:center; flex-direction:column; gap:4px; }

/* ================= Tablet ================= */
@media (max-width: 1023px){
  .container, .hdr-in, .ftr-in{ padding-left:20px; padding-right:20px; }
  .hdr-in{ gap:16px; }
  .user-btn .user-meta, .user-btn > .ic{ display:none; }
  .user-btn{ padding:3px; }
  .grid-2{ grid-template-columns:1fr; }
  .main{ padding-top:28px; }
}

/* ================= Telemóvel ================= */
@media (max-width: 767px){
  .container, .hdr-in{ padding-left:14px; padding-right:14px; }
  .hdr-in{ height:58px; }
  .menu, .user-menu{ display:none; }
  .burger{ display:inline-flex; }
  .brand-mark{ width:36px; height:36px; border-radius:11px; }
  .brand-glyph{ width:26px; height:26px; }
  .logo-txt b{ font-size:15px; }
  .logo-txt small{ font-size:9.5px; letter-spacing:.12em; }
  h1{ font-size:24px; }
  .main{ padding:22px 0 40px; }
  .card{ padding:22px 16px; border-radius:12px; }
  .head-actions{ width:100%; }
  .head-actions .btn{ flex:1; }
  .ftr-in{ flex-direction:column; text-align:center; gap:4px; padding:18px 14px; }
  .row{ padding:12px; }
  .row-actions{ width:100%; }
  .row-actions form{ flex:1 1 auto; }
  .row-actions .btn, .row-actions select{ width:100%; }
  .profile-hero{ flex-direction:column; text-align:center; }
  .auth-card{ padding:26px 20px; }
}

/* ================= Níveis e permissões ================= */
.super-dot{ display:inline-block; width:7px; height:7px; border-radius:50%; background:linear-gradient(135deg,#C4915C,#6B4424); margin-left:3px; vertical-align:middle; box-shadow:0 0 0 2px var(--accent-soft); }
.badge-super{ color:#fff; background:linear-gradient(135deg,#B07A47,#6B4424); }
.avatar.super{ background:linear-gradient(135deg,#B07A47,#5B381C); box-shadow:0 0 0 2px var(--accent-soft); }
.row.is-super{ border-color:color-mix(in srgb, var(--accent) 45%, var(--border)); }
.option.is-super{ border-style:dashed; }

.perm-wrap{ overflow-x:auto; margin-top:12px; border:1px solid var(--border); border-radius:12px; }
.perm-table{ width:100%; border-collapse:collapse; min-width:560px; font-size:14px; }
.perm-table th, .perm-table td{ padding:12px 14px; border-bottom:1px solid var(--border); text-align:center; vertical-align:middle; }
.perm-table tr:last-child td{ border-bottom:none; }
.perm-table th{ background:var(--surface-2); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); }
.perm-table th:first-child, .perm-table td:first-child{ text-align:left; }
.perm-table td:first-child b{ display:block; font-weight:600; }
.perm-table td:first-child small{ display:block; color:var(--text-muted); font-size:12.5px; margin-top:2px; }
.perm-table .col-super{ background:color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.perm-table th.col-super{ color:var(--accent); }
.perm-yes{ color:var(--ok); font-weight:700; font-size:16px; }
.perm-no{ color:var(--text-muted); opacity:.6; }

.switch{ position:relative; display:inline-block; width:42px; height:24px; cursor:pointer; }
.switch input{ position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; z-index:1; }
.switch span{ position:absolute; inset:0; background:var(--border); border-radius:24px; transition:background .18s ease; }
.switch span::before{ content:''; position:absolute; width:18px; height:18px; left:3px; top:3px; background:#fff; border-radius:50%; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:transform .18s ease; }
.switch input:checked + span{ background:var(--accent); }
.switch input:checked + span::before{ transform:translateX(18px); }
.switch input:focus-visible + span{ outline:2px solid var(--accent); outline-offset:2px; }

.form-foot{ display:flex; justify-content:flex-end; margin-top:16px; }
.btn-auto{ width:auto; }

.can-list{ list-style:none; margin:10px 0 0; padding:0; display:grid; gap:8px; }
.can-list li{ display:flex; align-items:baseline; gap:10px; font-size:14px; padding:10px 12px; background:var(--surface-2); border:1px solid var(--border); border-radius:10px; flex-wrap:wrap; }
.can-list li::before{ font-weight:700; width:16px; text-align:center; }
.can-list li.yes::before{ content:'✓'; color:var(--ok); }
.can-list li.no{ color:var(--text-muted); }
.can-list li.no::before{ content:'✕'; color:var(--danger); opacity:.7; }
.can-list small{ color:var(--text-muted); font-size:12.5px; }

.prefix-input{ display:flex; align-items:stretch; border:1px solid var(--border); border-radius:10px; overflow:hidden; background:var(--surface-2); }
.prefix-input span{ padding:12px 0 12px 12px; color:var(--text-muted); font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:60%; display:flex; align-items:center; }
.field .prefix-input input{ border:none; border-radius:0; padding-left:2px; background:transparent; }

.sys-info{ display:grid; grid-template-columns:auto 1fr; gap:10px 18px; margin:8px 0 0; font-size:14px; }
.sys-info dt{ color:var(--text-muted); }
.sys-info dd{ margin:0; font-weight:600; }
code{ background:var(--surface-2); border:1px solid var(--border); border-radius:6px; padding:1px 6px; font-size:.92em; }

@media (max-width: 767px){
  .form-foot .btn{ width:100%; }
}

.grid-2.tight{ gap:0 18px; margin-bottom:0; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:0 18px; }
@media (max-width: 1023px){ .grid-3{ grid-template-columns:1fr 1fr; } }
@media (max-width: 767px){ .grid-3{ grid-template-columns:1fr; } }

.field textarea{ width:100%; background:var(--surface-2); border:1px solid var(--border); color:var(--text); border-radius:10px; padding:12px 14px; font-size:14px; font-family:inherit; line-height:1.55; outline:none; resize:vertical; }
.field textarea:focus{ border-color:var(--accent); }

.day-pick{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:16px; }
.day-pick label{ cursor:pointer; }
.day-pick input{ position:absolute; opacity:0; pointer-events:none; }
.day-pick span{ display:inline-block; min-width:52px; text-align:center; padding:9px 10px; border-radius:10px; border:1px solid var(--border); background:var(--surface-2); font-size:13.5px; font-weight:600; color:var(--text-muted); }
.day-pick input:checked + span{ background:var(--accent); border-color:var(--accent); color:#fff; }
.day-pick input:focus-visible + span{ outline:2px solid var(--accent); outline-offset:2px; }
