:root {
  --ink: #111111;
  --blue: #00A0E8;
  --blue-2: #4DC4F2;
  --blue-dark: #0077B6;
  --red: #E31E24;
  --navy: #005A87;
  --navy-2: #0077B0;
  --navy-3: #0090CC;
  --gold: var(--blue);
  --gold-2: var(--blue-2);
  --gold-dim: rgba(0, 160, 232, .16);
  --cream: #f3f9fc;
  --paper: #f7fbfd;
  --line: #d5e6ef;
  --muted: #5b6b75;
  --text: #1a1a1a;
  --ok: #1f7a5c;
  --warn: #b7791f;
  --danger: #E31E24;
  --info: #00A0E8;
  --sidebar: 268px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 90, 135, .08);
  --font: "Outfit", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: clip; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  min-width: 0;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
img, video, iframe { max-width: 100%; }
img, video { height: auto; }
iframe { width: 100%; }
canvas { max-width: 100%; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, a, summary, .btn, .icon-btn { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; margin: 0 0 .4em; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100%); max-width: 100%; padding-inline: 20px; margin-inline: auto; box-sizing: border-box; }
.container-wide { width: min(1280px, 100%); max-width: 100%; padding-inline: 16px; margin-inline: auto; box-sizing: border-box; }
.hero, .page-hero, .section { min-width: 0; }
.hero-grid, .container, .container-wide, .main, .card, .pub-header .inner, .app-header-bar {
  min-width: 0; max-width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; border-radius: 999px; padding: .78rem 1.25rem; font-weight: 600;
  cursor: pointer; transition: .2s ease; font-size: .92rem; line-height: 1;
}
.btn-gold { background: linear-gradient(180deg, #1aadef, var(--blue-dark)); color: #fff; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,160,232,.38); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-ghost-dark { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-sm { padding: .45rem .85rem; font-size: .8rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-block { width: 100%; }

/* Public header */
.pub-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(16px);
  border-bottom: 3px solid var(--blue);
}
.pub-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: .75rem; position: relative; flex-wrap: nowrap;
}
.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); min-width: 0; }
.brand span { min-width: 0; overflow: hidden; }
.brand-logo {
  display: block; height: clamp(36px, 7vw, 56px); width: auto;
  max-width: min(240px, calc(100vw - 96px));
  object-fit: contain; background: #fff; border-radius: 8px; flex-shrink: 1; min-width: 0;
}
.pub-header .brand-logo { height: clamp(38px, 6.5vw, 56px); }
.app-header .brand-logo { height: clamp(32px, 5.5vw, 40px); max-width: min(180px, 46vw); padding: 2px 5px; border-radius: 8px; }
.auth-brand .brand-logo { height: clamp(48px, 14vw, 68px); max-width: min(260px, 80vw); margin-inline: auto; }
.pub-footer .brand-logo { height: clamp(40px, 12vw, 52px); max-width: min(240px, 80vw); }
.ico { display: inline-block; vertical-align: -3px; flex-shrink: 0; }
.side-nav .ico { opacity: .75; }
.app-nav .ico { opacity: .8; }
.side-nav a.active .ico, .app-nav a.active .ico { opacity: 1; color: var(--gold-2); }

.pub-topbar {
  background: var(--blue); color: rgba(255,255,255,.92); font-size: .78rem;
  border-bottom: 3px solid var(--red);
}
.pub-topbar .inner { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 34px; flex-wrap: wrap; }
.pub-topbar a { color: #fff; }
.pub-topbar span { display: inline-flex; align-items: center; gap: .35rem; }
.brand strong { display: block; font-size: 1.05rem; letter-spacing: .04em; }
.brand small { color: var(--gold-2); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.pub-nav { display: flex; gap: 1.15rem; align-items: center; }
.pub-nav a { color: var(--text); font-size: .9rem; }
.pub-nav a:hover { color: var(--blue-dark); }
.pub-actions { display: flex; gap: .5rem; align-items: center; flex-shrink: 0; }
.pub-header .btn-ghost {
  color: var(--navy); border-color: rgba(0,90,135,.28);
}
.pub-menu { display: flex; align-items: center; gap: 1.2rem; margin-left: auto; }
.nav-toggle { display: none; }
.pub-header .nav-toggle {
  display: none;
  width: 42px; height: 42px; border-color: rgba(0,160,232,.45);
  background: transparent; color: var(--navy); margin-left: auto; flex-shrink: 0;
}
.scrim {
  display: none; position: fixed; inset: 0; z-index: 45;
  background: rgba(7,17,31,.5);
}
.scrim.is-on { display: block; }
body.menu-lock { overflow: hidden; }

.hero {
  background:
    radial-gradient(900px 420px at 88% 0%, rgba(0,160,232,.18), transparent 55%),
    linear-gradient(168deg, #003d5c 0%, #005a87 48%, #00A0E8 100%);
  color: #fff; padding: 5.8rem 0 5rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,160,232,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,160,232,.05) 1px, transparent 1px);
  background-size: 72px 72px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 520px; height: 520px;
  border: 1px solid rgba(227,30,36,.28); border-radius: 50%;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-grid > * { min-width: 0; max-width: 100%; }
.kicker {
  color: var(--blue-dark); letter-spacing: .22em; text-transform: uppercase;
  font-size: .72rem; font-weight: 600; margin-bottom: .8rem;
}
.hero .kicker, .page-hero .kicker, .section-navy .kicker, .quote-band .kicker {
  color: var(--blue-2);
}
.hero h1 { font-size: clamp(2.1rem, 6vw, 4.3rem); line-height: 1.08; max-width: 16ch; overflow-wrap: anywhere; }
.hero p.lead { color: rgba(255,255,255,.78); font-size: 1.12rem; max-width: 46ch; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px; padding: 1.4rem; backdrop-filter: blur(10px);
}
.hero-card h3 { color: var(--gold-2); font-size: 1.2rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: .8rem; margin-top: 1rem; }
.stat-row div { background: rgba(0,0,0,.2); border-radius: 12px; padding: .8rem; }
.stat-row strong { display: block; font-size: 1.35rem; color: #fff; }
.stat-row span { font-size: .75rem; color: rgba(255,255,255,.65); }

.section { padding: 4.5rem 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: #fff; }
.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow); min-width: 0;
}
.card:has(table.data) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.svc-card { padding: 1.5rem; transition: .2s; }
.svc-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.svc-ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--gold-dim);
  display: grid; place-items: center; margin-bottom: .8rem; font-size: 1.2rem;
}
.page-hero {
  background:
    radial-gradient(700px 240px at 90% 0%, rgba(0,160,232,.16), transparent 50%),
    var(--navy);
  color: #fff; padding: 3.6rem 0 2.6rem;
  border-bottom: 3px solid var(--red);
}

.pub-footer { background: #003d5c; color: rgba(255,255,255,.75); padding: 3rem 0 1.4rem; }
.pub-footer h4 { color: var(--gold-2); }
.pub-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2rem; padding-top: 1rem; font-size: .82rem; }

.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 40;
  background: #128C7E; color: #fff; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: 0 12px 28px rgba(18,140,126,.38);
  transition: .2s;
}
.wa-float:hover { transform: translateY(-2px); background: #0e7a6e; }

.chat-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 41;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(180deg, #1aadef, var(--blue-dark));
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(0,160,232,.48);
  border: 2px solid rgba(255,255,255,.35);
  transition: .2s;
}
.chat-float .ico { stroke-width: 2.2; }
.chat-float:hover { transform: translateY(-2px); }
.chat-float .badge-dot { top: 2px; right: 2px; min-width: 18px; height: 18px; font-size: .7rem; }
.ia-float {
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #0a6ea3, #005A87);
  box-shadow: 0 12px 28px rgba(0,90,135,.4);
}
.ai-draft {
  margin-top: .7rem;
  padding: .75rem .85rem;
  border-radius: 10px;
  background: #fff;
  border: 1px dashed rgba(0,90,135,.35);
  white-space: pre-wrap;
  font-size: .88rem;
  line-height: 1.45;
}
.ai-draft .btn { margin-top: .55rem; }

.dl-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(31,122,92,.12);
  background: var(--ok); vertical-align: middle;
}
.dl-soon { background: var(--warn); box-shadow: 0 0 0 3px rgba(183,121,31,.15); }
.dl-overdue { background: var(--danger); box-shadow: 0 0 0 3px rgba(180,35,24,.15); }

.step-flag {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted);
}
.step-flag.done { color: var(--ok); }
.step-flag.current { color: #8a5b12; }

.card-h {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line);
}
.card-h h3 { margin: 0; font-size: 1.15rem; }

.kpi { position: relative; overflow: hidden; }
.kpi .kpi-ico {
  position: absolute; right: 12px; top: 12px; opacity: .18; color: var(--navy);
}
.kpi strong { letter-spacing: -.03em; }

.trust-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.trust-bar div { background: #fff; padding: 1.15rem 1.2rem; }
.trust-bar strong { display: block; font-family: var(--serif); font-size: 1.35rem; }
.trust-bar span { font-size: .78rem; color: var(--muted); }

.method-list { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.method-list li {
  display: grid; grid-template-columns: 36px 1fr; gap: .85rem; align-items: start;
  padding: .55rem 0; border-bottom: 1px solid var(--line);
}
.method-n {
  width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: var(--gold-2);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

.quote-band { background: var(--navy); color: #fff; padding: 3.4rem 0; position: relative; }
.quote-band p {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.35;
  max-width: 22em; margin: 0 auto; text-align: center;
}
.quote-band cite { display: block; margin-top: 1rem; color: var(--gold-2); font-style: normal; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; text-align: center; }

.hours-row { display: flex; gap: 1.5rem; flex-wrap: wrap; color: rgba(255,255,255,.7); font-size: .9rem; margin-top: 1.2rem; }
.contact-tile { display: flex; gap: .9rem; align-items: flex-start; }
.contact-tile .ico-wrap {
  width: 42px; height: 42px; border-radius: 12px; background: var(--gold-dim); color: var(--navy);
  display: grid; place-items: center; flex-shrink: 0;
}

.user-chip {
  display: flex; align-items: center; gap: .65rem;
}
.user-chip-link {
  display: flex; align-items: center; gap: .65rem;
  min-width: 0;
}
.user-chip-link:hover .user-meta strong { color: var(--navy); }
.user-meta { text-align: left; font-size: .82rem; }
.row-actions {
  display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end;
  white-space: nowrap;
}
.access-edit {
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
}
.access-edit:last-of-type { border-bottom: 0; }
.access-delete { margin: .35rem 0 .75rem; }
.signup-actions {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-width: 220px;
}
.signup-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}
.signup-actions select,
.signup-actions .input {
  min-width: 160px;
  flex: 1;
}
.access-pending {
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.access-pending:last-of-type { border-bottom: 0; }
.sidebar::-webkit-scrollbar { width: 8px; }

.app-nav a { position: relative; }
.app-nav a.active::before { display: none; }

.filters { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .75rem; }

.legend-prazos { display: flex; gap: 1rem; font-size: .78rem; color: var(--muted); align-items: center; }
.legend-prazos span { display: inline-flex; align-items: center; gap: .35rem; }

.page-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); }

.auth-box h2 { font-size: 1.8rem; }

.pub-footer { padding: 3.4rem 0 1.4rem; }
.pub-footer .brand { margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: .45rem; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .9rem; }

/* Auth */
html:has(body.auth-body),
body.auth-body {
  min-height: 100%;
  min-height: 100dvh;
  width: 100%;
  background:
    radial-gradient(720px 380px at 50% 12%, rgba(0,160,232,.22), transparent 55%),
    radial-gradient(900px 520px at 80% 100%, rgba(0,90,135,.85), transparent 50%),
    linear-gradient(165deg, #003d5c, #005a87 55%, #0077B0);
}
.auth-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  box-sizing: border-box;
}
.auth-stack {
  width: min(440px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.auth-back {
  align-self: flex-start;
  margin-bottom: .85rem;
  min-height: 42px;
  padding: .45rem .95rem;
  border-radius: 999px;
  font-weight: 600;
  gap: .4rem;
}
.auth-card {
  width: 100%;
  background: var(--paper);
  border-radius: 20px;
  padding: 2.1rem 1.9rem 1.7rem;
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
  border: 1px solid rgba(0,160,232,.28);
}
.auth-brand {
  color: var(--navy);
  justify-content: center;
  margin-bottom: 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.auth-brand small { display: block; color: var(--muted); letter-spacing: .08em; font-size: .68rem; }
.auth-box { width: 100%; }
.auth-foot {
  margin: 1.25rem 0 0;
  color: rgba(255,255,255,.45);
  font-size: .82rem;
  text-align: center;
  width: 100%;
}
.logo-auth {
  display: block;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--navy);
}
.auth-links {
  margin-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; }
.input, select, textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: .72rem .85rem; font-size: .95rem; color: var(--text);
  max-width: 100%; min-width: 0;
}
textarea { min-height: 110px; resize: vertical; }
.input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(0,160,232,.45); border-color: var(--gold);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.help { font-size: .78rem; color: var(--muted); }

/* Alerts */
.alert { padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .9rem; }
.alert-error { background: #fde8e8; color: #9b1c1c; }
.alert-success { background: #e4f5ec; color: #146c43; }
.alert-info { background: #e8f1f8; color: #184e77; }

/* App shell */
.app { display: flex; flex-direction: column; min-height: 100vh; min-width: 0; overflow-x: clip; }
.app-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: rgba(255,255,255,.82);
  border-bottom: 3px solid var(--red);
}
.app-header-bar {
  display: flex; align-items: center; gap: .85rem;
  padding: .65rem 1.15rem;
}
.app-nav {
  display: flex; align-items: center; flex-wrap: wrap; gap: .15rem .1rem;
  padding: 0 1rem .55rem;
}
.app-nav a {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .7rem; border-radius: 8px;
  color: rgba(255,255,255,.78); font-size: .84rem; white-space: nowrap;
}
.app-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.app-nav a.active { background: var(--gold-dim); color: var(--gold-2); }
.app-nav .side-sec {
  width: 1px; height: 22px; padding: 0; margin: 0 .45rem;
  background: rgba(255,255,255,.18); font-size: 0; overflow: hidden;
}
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .7rem; border: 0; border-radius: 8px;
  background: transparent; color: rgba(255,255,255,.78);
  font: inherit; font-size: .84rem; font-weight: 500;
  cursor: pointer; white-space: nowrap;
}
.nav-drop-btn .ico:last-child { opacity: .55; width: 14px; height: 14px; }
.nav-drop-btn:hover,
.nav-drop.open .nav-drop-btn,
.nav-drop.is-current .nav-drop-btn {
  background: rgba(255,255,255,.08); color: #fff;
}
.nav-drop.is-current .nav-drop-btn { background: var(--gold-dim); color: var(--gold-2); }
.nav-drop-menu {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 230px; z-index: 61;
  background: #00466d; border: 1px solid rgba(0,160,232,.28);
  border-radius: 12px; padding: .4rem;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.nav-drop.open .nav-drop-menu { display: block; }
@media (min-width: 1241px) {
  .nav-drop:hover > .nav-drop-menu { display: block; }
}
.nav-drop-menu a { width: 100%; white-space: nowrap; }
.side-brand { display: flex; gap: .7rem; align-items: center; padding: 0; color: #fff; min-width: 0; flex-shrink: 0; }
.side-brand small {
  display: block; font-size: .68rem; letter-spacing: .1em; color: var(--gold-2);
}
.app-header .avatar {
  background: rgba(0,160,232,.18);
  color: var(--gold-2);
  border: 1px solid rgba(0,160,232,.35);
}
.app-header .user-meta { color: #fff; }
.app-header .user-meta .help { color: rgba(255,255,255,.55); }
.app-header .btn-ghost-dark {
  color: #fff; border-color: rgba(255,255,255,.28);
}
.app-header .session-label { color: #fff; margin-right: auto; }
.app-header .session-label .help { color: rgba(255,255,255,.5); }
.header-menu-btn {
  border-color: rgba(0,160,232,.45) !important;
  background: transparent !important;
  color: var(--gold-2) !important;
}
.main { min-width: 0; flex: 1; }
.search-box { flex: 1; max-width: 460px; position: relative; min-width: 0; }
.search-box input { padding-left: 2.2rem; min-width: 0; }
.search-box .ico, .search-box svg { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); opacity: .45; pointer-events: none; }
.top-actions { display: flex; align-items: center; gap: .7rem; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; position: relative; cursor: pointer;
}
.badge-dot {
  position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--danger); color: #fff; border-radius: 99px; font-size: .65rem;
  display: grid; place-items: center;
}
.avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--gold-2);
  display: grid; place-items: center; font-size: .78rem; font-weight: 700;
}
.content { padding: 1.4rem; min-width: 0; max-width: 100%; }
.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.page-title h1 { font-size: 1.85rem; }

.notif-tabs {
  display: flex; gap: .4rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.notif-tabs a, .notif-tabs button {
  padding: .38rem .9rem; border-radius: 999px; font-size: .84rem; font-weight: 600;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  cursor: pointer;
}
.notif-tabs a.active, .notif-tabs button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.notif-card { padding: 0; overflow: hidden; }
.notif-list { display: flex; flex-direction: column; }
.notif-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: .75rem;
  align-items: start;
  padding: .95rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: #f3f9fc; }
.notif-item.unread { background: rgba(0,160,232,.1); }
.notif-item.unread:hover { background: rgba(0,160,232,.16); }
.notif-body { display: flex; flex-direction: column; gap: .18rem; min-width: 0; }
.notif-top { display: flex; align-items: baseline; gap: .65rem; flex-wrap: wrap; }
.notif-body strong { font-size: .93rem; line-height: 1.3; color: var(--navy); }
.notif-body .help {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-time {
  font-size: .72rem; color: var(--muted); white-space: nowrap; padding-top: .12rem;
}
.notif-item.unread .notif-time { color: var(--gold); font-weight: 600; }
.notif-ico {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; flex-shrink: 0;
}
.notif-ico.tone-navy { background: var(--navy); color: var(--gold-2); }
.notif-ico.tone-warn { background: #f8ecd4; color: var(--warn); }
.notif-ico.tone-ok { background: #e4f5ec; color: var(--ok); }
.notif-ico.tone-info { background: #e8f1f8; color: var(--info); }
.notif-item.unread .notif-ico { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gold); }
.notif-empty { text-align: center; padding: 2.6rem 1.2rem; color: var(--muted); }
.notif-empty.sm { padding: 1.5rem 1rem; }
.notif-empty .notif-ico { margin: 0 auto .7rem; }
.notif-list.compact .notif-item { padding: .75rem 0; border-bottom-color: var(--line); }
.notif-wrap { position: relative; }
.notif-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: min(400px, calc(100vw - 24px));
  background: #fff; color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(7,17,31,.28);
  z-index: 80;
  overflow: hidden;
}
.notif-panel[hidden] { display: none !important; }
.notif-panel-h {
  display: flex; justify-content: space-between; align-items: center; gap: .6rem;
  padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: #f3f9fc;
}
.notif-panel-h strong { color: var(--navy); font-size: .95rem; }
.notif-panel-list { max-height: min(420px, 62vh); overflow-y: auto; }
.notif-panel .notif-item { padding: .78rem .95rem; }
.notif-panel-f {
  display: block; text-align: center; padding: .78rem;
  font-size: .84rem; font-weight: 600; color: var(--navy);
  border-top: 1px solid var(--line); background: #f3f9fc;
}
.notif-panel-f:hover { color: var(--gold); }
.app-header .notif-panel .btn-ghost-dark {
  color: var(--navy); border-color: var(--line); background: #fff;
}
.app-header .icon-btn[data-notif-toggle][aria-expanded="true"] {
  background: var(--gold-2);
  border-color: var(--gold);
}

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.05rem 1.15rem; }
.kpi span { color: var(--muted); font-size: .8rem; }
.kpi strong { display: block; font-size: 1.7rem; font-family: var(--serif); margin-top: .15rem; }
.kpi.gold { border-top: 3px solid var(--gold); }
.kpi.ok { border-top: 3px solid var(--ok); }
.kpi.warn { border-top: 3px solid var(--warn); }
.kpi.danger { border-top: 3px solid var(--danger); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.card:has(> table.data),
.content :has(> table.data) { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
canvas { max-width: 100%; }
table.data th, table.data td { padding: .7rem .65rem; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
table.data tr:hover td { background: #f3f9fc; }

.badge { display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.badge-success { background: #e4f5ec; color: #146c43; }
.badge-danger { background: #fde8e8; color: #9b1c1c; }
.badge-warning { background: #fdf3d8; color: #8a5b12; }
.badge-info { background: #e8f1f8; color: #184e77; }
.badge-muted { background: #eef0f3; color: #4b5563; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  display: grid; grid-template-columns: 28px 1fr; gap: .85rem; padding-bottom: 1.1rem;
  position: relative;
}
.timeline li::before {
  content: ""; position: absolute; left: 13px; top: 22px; bottom: 0; width: 2px; background: var(--line);
}
.timeline li:last-child::before { display: none; }
.dot {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--line); background: #fff; font-size: .8rem;
}
.dot.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.dot.current { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; }

.chat-layout { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); min-height: calc(100vh - 140px); gap: 1rem; }
.chat-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: auto; }
.chat-item { display: block; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.chat-item.active, .chat-item:hover { background: var(--cream); }
.chat-thread { background: #fff; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; }
.chat-msgs { flex: 1; padding: 1rem; overflow: auto; display: flex; flex-direction: column; gap: .7rem; }
.bubble { max-width: 75%; padding: .7rem .9rem; border-radius: 14px; font-size: .92rem; }
.bubble.me { margin-left: auto; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { background: var(--cream); border-bottom-left-radius: 4px; }
.chat-form { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--line); }

.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters .input, .filters select { width: auto; min-width: 160px; }

.pagination { display: flex; gap: .35rem; margin-top: 1rem; flex-wrap: wrap; }
.pagination a { padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 8px; }
.pagination a.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; margin-bottom: .6rem; }
.faq summary { cursor: pointer; font-weight: 600; }

.mobile-only { display: none; }
.session-label { min-width: 0; }
.session-label strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42vw; }

@media (max-width: 1240px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pub-topbar { display: none; }
  .nav-toggle, .pub-header .nav-toggle, .mobile-only { display: grid; }
  .icon-btn.mobile-only { display: grid; }
  .pub-header .inner { min-height: 64px; }
  .pub-menu {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    margin: 0; z-index: 52;
    flex-direction: column; align-items: stretch; gap: .4rem;
    background: #fff; padding: .6rem 1.1rem 1.15rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
    max-height: min(80vh, 640px); overflow-y: auto;
  }
  .pub-menu.open { display: flex; }
  .pub-nav {
    display: flex; flex-direction: column; gap: 0; align-items: stretch;
  }
  .pub-nav a {
    padding: .85rem .35rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    min-height: 44px;
    display: flex; align-items: center;
  }
  .pub-actions {
    display: flex; flex-direction: column; gap: .55rem; margin-top: .65rem;
  }
  .pub-actions .btn { width: 100%; min-height: 44px; }
  .app-nav {
    display: none;
    flex-direction: column; align-items: stretch; flex-wrap: nowrap;
    padding: .4rem .85rem 1rem; gap: .15rem;
    max-height: min(70vh, 560px); overflow: auto;
  }
  .app-nav.open { display: flex; }
  .app-nav a { white-space: normal; padding: .7rem .75rem; min-height: 44px; }
  .app-nav .side-sec { display: none; }
  .nav-drop { width: 100%; }
  .nav-drop-btn { width: 100%; justify-content: space-between; padding: .7rem .75rem; min-height: 44px; }
  .nav-drop-menu {
    position: static; min-width: 0; margin: 0 0 .35rem .4rem;
    background: transparent; border: 0; box-shadow: none; padding: 0;
    border-radius: 0;
  }
  .nav-drop-menu a { padding-left: 1.1rem; }
  .app-header-bar { padding: .65rem .85rem; flex-wrap: wrap; }
  .search-box { max-width: none; min-width: 0; order: 3; flex-basis: 100%; }
  .content { padding: 1rem max(.85rem, env(safe-area-inset-right, 0px)) 5.5rem max(.85rem, env(safe-area-inset-left, 0px)); }
  .user-meta { display: none; }
  .page-title { flex-wrap: wrap; align-items: flex-start; }
  .page-title h1 { font-size: clamp(1.4rem, 5vw, 1.85rem); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ai-wrap { grid-template-columns: 1fr; }
  .conta-subnav { top: 64px; }
}

@media (max-width: 900px) {
  .chat-layout { grid-template-columns: 1fr; min-height: 0; }
  .hero { padding: 3.4rem 0 2.8rem; }
  .hero h1 { max-width: none; font-size: clamp(1.75rem, 8vw, 2.4rem); overflow-wrap: anywhere; }
  .hero::after { display: none; }
  .lead, p, h1, h2, h3, td, th { overflow-wrap: anywhere; }
  .section { padding: 2.8rem 0; }
  .page-hero { padding: 2.4rem 0 1.8rem; }
  .chat-list { max-height: 280px; }
  .chat-thread { min-height: 60vh; }
  .chat-form { flex-wrap: wrap; }
  .chat-form .input { flex: 1 1 100%; }
  .chat-form input[type="file"] { max-width: 100%; }
  .bubble { max-width: 90%; word-break: break-word; }
  .filters { flex-direction: column; }
  .filters .input, .filters select, .filters .btn { width: 100%; min-width: 0; }
  .card-h { flex-wrap: wrap; }
  .legend-prazos { flex-wrap: wrap; }
  .pub-footer { padding-bottom: 6.2rem; }
  .hide-sm { display: none; }
  table.data { min-width: 560px; }
  .ai-chat { min-height: 420px; }
  .conta-search .input { min-width: 0; width: 100%; }
  .conta-hero h1 { max-width: none; }
  .conta-rules > li { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container, .container-wide { padding-inline: max(14px, env(safe-area-inset-left, 0px)) max(14px, env(safe-area-inset-right, 0px)); }
  .kpi-grid { gap: .7rem; }
  .kpi { padding: .85rem .9rem; }
  .kpi strong { font-size: 1.4rem; }
  .top-actions { gap: .35rem; }
  .session-label .help { display: none; }
  .input, select, textarea { font-size: 16px; }
  .auth-wrap { padding: 1.25rem .85rem; }
  .auth-card { padding: 1.5rem 1.15rem 1.3rem; border-radius: 16px; }
  .hero-cta .btn, .page-title .btn { width: 100%; }
  .page-title { flex-direction: column; align-items: stretch; }
  .contact-tile { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { min-height: 44px; }
  .user-chip { min-width: 0; }
  .app-header .brand-logo { max-width: min(150px, 40vw); }
  iframe { height: 240px; }
}

@media (max-width: 420px) {
  .wa-float, .chat-float { width: 50px; height: 50px; }
  .ia-float { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
  .pub-chat-float { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .notif-item { grid-template-columns: 36px minmax(0, 1fr); }
  .notif-panel { right: -4px; width: min(400px, calc(100vw - 16px)); }
  .pub-header .brand-logo { max-width: calc(100vw - 88px); height: 36px; }
  .hero { padding: 2.4rem 0 2rem; }
  .section { padding: 2.1rem 0; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .pub-menu.open, .app-nav.open { max-height: 70vh; }
  .hero { padding: 2rem 0; }
  .auth-wrap { padding: .8rem; }
}

.print-only { display: none !important; }

.doc-letterhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0 0 .85rem;
  margin-bottom: 1.1rem;
  border-bottom: 3px solid var(--red, #E31E24);
}
.doc-letterhead-brand .brand-logo {
  height: 58px;
  max-width: 220px;
  padding: 0;
  background: #fff;
}
.doc-letterhead-meta {
  text-align: right;
  font-size: .82rem;
  color: var(--muted, #5a6a75);
  line-height: 1.35;
}
.doc-letterhead-meta strong {
  display: block;
  color: var(--navy, #005A87);
  font-size: .78rem;
  letter-spacing: .04em;
  margin-bottom: .15rem;
}
.doc-letterhead-meta span { display: block; }

@media print {
  .print-only { display: flex !important; }
  .sidebar, .topbar, .app-header, .app-nav, .btn, .no-print,
  .chat-float, .wa-float, .scrim, .pub-topbar, .pub-header, .pub-footer,
  .conta-subnav, .nav-toggle, .filters, .notif-tabs { display: none !important; }
  .app, .main, .content { display: block !important; background: #fff !important; box-shadow: none !important; }
  .doc-letterhead { break-after: avoid; }
  a { text-decoration: none; color: inherit; }
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}

.conta-subnav {
  background: #003d5c;
  border-bottom: 1px solid rgba(0,160,232,.22);
  position: sticky;
  top: 74px;
  z-index: 40;
}
.conta-subnav .inner {
  display: flex;
  gap: .15rem;
  overflow-x: auto;
  padding: .45rem 0;
  -webkit-overflow-scrolling: touch;
}
.conta-subnav a {
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  padding: .45rem .75rem;
  border-radius: 999px;
}
.conta-subnav a:hover,
.conta-subnav a.is-on {
  color: var(--gold-2);
  background: rgba(0,160,232,.14);
}
.conta-hero h1 { max-width: 18ch; }
.conta-trust { margin-bottom: 0; }
.conta-hub-grid { align-items: stretch; }
.pgc-class-n {
  width: 40px; height: 40px; border-radius: 12px;
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 1.1rem; margin-bottom: .7rem;
}
.conta-prose { max-width: 820px; }
.conta-prose h2 { font-size: 1.45rem; margin-top: 1.6rem; }
.conta-prose p { color: var(--text); }
.conta-list { margin: 0; padding-left: 1.15rem; }
.conta-list li { margin: .35rem 0; }
.conta-ol { margin: 0; padding-left: 1.2rem; }
.conta-ol li { margin: .4rem 0; }
.conta-rules { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .85rem; }
.conta-rules > li { display: grid; grid-template-columns: 36px 1fr; gap: 1rem; align-items: start; }
.conta-search { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.conta-search .input { flex: 1; min-width: 200px; }
.conta-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.conta-chips a, .chip-btn {
  display: inline-flex; align-items: center;
  padding: .35rem .7rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: .8rem; font-weight: 600; color: var(--navy); cursor: pointer;
}
.conta-chips a.is-on, .chip-btn:hover, .conta-chips a:hover {
  border-color: var(--gold); background: var(--gold-dim);
}
.escola-card .card-h { align-items: center; }
.tpl-row { padding: .55rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .15rem; }
.tpl-row:last-child { border-bottom: 0; }
.qa-list { list-style: none; padding: 0; margin: 0; }
.qa-list li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.qa-list label { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.glossary details { padding: .65rem .85rem; }
.ai-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 1.2rem; align-items: start; }
.ai-chat { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 480px; }
.ai-msgs { flex: 1; padding: 1.1rem; display: flex; flex-direction: column; gap: .7rem; background: #f3f9fc; min-height: 360px; max-height: 62vh; overflow: auto; }
.ai-msgs .bubble small { display: block; opacity: .7; font-size: .72rem; margin-bottom: .25rem; }
.ai-msgs .bubble ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.ai-side { display: flex; flex-direction: column; gap: 1rem; }
.ai-classif {
  margin-top: .55rem; padding: .55rem .7rem; border-radius: 10px;
  background: rgba(0,160,232,.16); font-size: .88rem; font-weight: 600; color: var(--navy);
}
.ai-disc { font-size: .75rem; color: var(--muted); margin-top: .45rem; }
.req-actions { display: flex; flex-direction: column; gap: .45rem; min-width: 220px; }
.req-convert { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.req-convert select, .req-convert .input { min-width: 0; max-width: 160px; }

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.2rem;
}
.photo-frame {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-width: 0;
}
.photo-frame img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  object-position: center;
  background: #eef6fb;
  display: block;
}
.photo-frame figcaption {
  padding: .85rem 1.05rem 1.05rem;
}
.photo-frame figcaption strong {
  display: block;
  color: var(--navy);
  font-size: .98rem;
}
.photo-frame.photo-tall img { object-position: center; }

.ia-studio {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: calc(100dvh - 132px);
}
.ia-hero {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1.2rem; flex-wrap: wrap;
  background:
    radial-gradient(640px 220px at 92% 0%, rgba(0,160,232,.28), transparent 52%),
    linear-gradient(180deg, #005A87 0%, #003d5c 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem 1rem;
  border-bottom: 3px solid var(--red);
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}
.ia-id { display: flex; gap: 1rem; align-items: flex-start; min-width: 0; }
.ia-avatar {
  width: 64px; height: 64px; flex: 0 0 64px;
  border-radius: 18px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.15rem; letter-spacing: .04em;
  background: linear-gradient(180deg, #1aadef, #005A87);
  color: #fff;
  border: 2px solid rgba(255,255,255,.35);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.ia-id-copy { min-width: 0; }
.ia-hero .kicker { color: var(--gold-2); margin-bottom: .25rem; }
.ia-hero h1 {
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  margin: 0 0 .2rem;
  color: #fff;
  max-width: none;
  line-height: 1.15;
}
.ia-role { margin: 0; color: rgba(255,255,255,.82); font-size: .92rem; }
.ia-focus { margin: .45rem 0 0; color: rgba(255,255,255,.72); font-size: .88rem; max-width: 46em; }
.ia-hero-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; }
.ia-scope {
  font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.ia-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
  flex: 0 0 auto;
}
.ia-kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .75rem .9rem;
  box-shadow: var(--shadow);
}
.ia-kpi span { display: block; color: var(--muted); font-size: .75rem; font-weight: 600; }
.ia-kpi strong { display: block; font-family: var(--serif); font-size: 1.55rem; color: var(--navy); margin-top: .1rem; }
.ia-kpi.is-hot { border-top: 3px solid var(--danger); }
.ia-kpi.is-hot strong { color: var(--danger); }
.ia-chat-head {
  display: flex; align-items: center; gap: .7rem;
  padding: .75rem 1.05rem;
  background: #003d5c;
  color: #fff;
  border-bottom: 2px solid var(--red);
}
.ia-chat-head strong { display: block; font-size: .95rem; }
.ia-chat-head div span { font-size: .75rem; color: rgba(255,255,255,.7); }
.ia-pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: #3dd68c;
  box-shadow: 0 0 0 0 rgba(61,214,140,.55);
  animation: ia-pulse 1.8s ease-out infinite;
  flex: 0 0 10px;
}
@keyframes ia-pulse {
  0% { box-shadow: 0 0 0 0 rgba(61,214,140,.5); }
  70% { box-shadow: 0 0 0 8px rgba(61,214,140,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,214,140,0); }
}
.ia-studio .ai-chat {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ia-studio .chip-btn { text-align: left; }
body:has(.ia-studio) .ia-float { display: none; }
.ia-studio .ai-wrap {
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, .7fr);
  align-items: stretch;
  flex: 1;
  min-height: 0;
}
.ia-studio .ai-msgs {
  flex: 1 1 auto;
  min-height: 140px;
  max-height: none;
  padding: 1.25rem 1.3rem;
}
.ia-composer {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1rem 1.15rem 1.1rem;
  background:
    radial-gradient(520px 140px at 100% 0%, rgba(0,160,232,.12), transparent 55%),
    #fff;
  border-top: 3px solid var(--red);
  flex: 0 0 auto;
}
.ia-composer-who {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.ia-composer-avatar {
  width: 42px; height: 42px; flex: 0 0 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  background: var(--navy); color: var(--gold-2);
}
.ia-composer-who strong { display: block; font-size: .95rem; color: var(--navy); }
.ia-composer-who span { font-size: .78rem; color: var(--muted); }
.ia-composer-field {
  min-height: 230px;
  max-height: 380px;
  width: 100%;
  resize: vertical;
  line-height: 1.5;
  font-size: 1.05rem;
  padding: 1.05rem 1.1rem;
  border-radius: 14px;
  border-color: rgba(0,90,135,.28);
  background: #f7fbfe;
}
.ia-composer-field:focus {
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(0,160,232,.16);
}
.ia-composer-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}
.ia-composer-bar .help { margin: 0; max-width: 42em; }
.ia-composer-bar .btn { min-height: 48px; padding-inline: 1.2rem; white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.settings-stack { display: flex; flex-direction: column; gap: 1.2rem; }
.settings-stack .card { margin: 0; }
.settings-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: .85rem;
}

@media (max-width: 900px) {
  .ia-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ia-hero-meta { align-items: flex-start; }
  .ia-studio { min-height: 0; }
  .ia-studio .ai-wrap { grid-template-columns: 1fr; flex: none; }
  .ia-studio .ai-chat { height: auto; min-height: 520px; }
  .ia-studio .ai-msgs { max-height: 32vh; min-height: 160px; flex: 1 1 220px; }
  .ia-composer-field { min-height: 150px; }
  .ia-composer-bar .btn { width: 100%; }
}
@media (max-width: 640px) {
  .ia-hero { padding: 1.1rem 1rem 1rem; }
  .ia-avatar { width: 52px; height: 52px; flex-basis: 52px; border-radius: 14px; font-size: 1rem; }
}

@media (max-width: 640px) {
  .photo-frame img { height: 300px; }
}

.feas-calc { max-width: 860px; }
.feas-verdict {
  font-weight: 600;
  padding: .85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--cream);
}
.feas-verdict.is-ok { border-color: var(--ok); background: rgba(22, 163, 74, .08); }
.feas-verdict.is-warn { border-color: var(--warn); background: rgba(217, 119, 6, .08); }
.nav-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.15rem; height: 1.15rem; padding: 0 .32rem; margin-left: .2rem;
  border-radius: 999px; background: var(--danger); color: #fff;
  font-size: .68rem; font-weight: 700; line-height: 1;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.2rem;
}
.video-card h3 { margin-top: .85rem; font-size: 1.15rem; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #0b1c24; border-radius: 12px; overflow: hidden;
}
.video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-feature {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr);
  gap: 1.4rem; align-items: center;
}
@media (max-width: 800px) {
  .video-feature { grid-template-columns: 1fr; }
}

