/* mediorisco.pt — one stylesheet, mobile-first. Replaces ~20 theme CSS files and Bootstrap.
   Blue and white, from the shield logo. System fonts only: nothing is loaded from third parties. */

:root {
  --navy: #1b3a8c;
  --navy-900: #0d1b3e;
  --blue: #1f4fbf;
  --blue-50: #f1f4fb;
  --accent: #2d6cdf;       /* the lighter blue in the shield */
  --accent-600: #1f4fbf;
  --accent-100: #e8effd;
  --pale: #f5f8fd;
  --ink: #141a2b;
  --ink-2: #5a6274;
  --line: #e3e8f2;
  --bg: #ffffff;
  --bg-alt: var(--pale);
  --ok: #2f7d4f;
  --err: #b42318;
  --radius: 10px;
  --shadow: 0 1px 1px rgba(13, 27, 62, .04), 0 12px 32px -12px rgba(13, 27, 62, .14);
  --ease: cubic-bezier(.77, 0, .175, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; }
h1, h2 { font-weight: 750; letter-spacing: -.02em; color: var(--navy-900); }
h1 { font-size: clamp(2rem, 6.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h1 em, h2 em { font-style: normal; color: var(--accent); }
h3 { font-size: 1.05rem; font-weight: 650; letter-spacing: .005em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.plain { list-style: none; margin: 0; padding: 0; }
/* Small label with a short blue rule in front of it. */
.eyebrow { display: inline-flex; align-items: center; gap: .8em; text-transform: uppercase; letter-spacing: .14em;
  font-size: .74rem; font-weight: 700; color: var(--accent-600); margin-bottom: .9em; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 44ch; }

/* --- buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.4em; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-size: .98rem; font-weight: 650; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s; }
.btn-primary { background: var(--accent-600); color: #fff; box-shadow: 0 6px 16px -6px rgba(31, 79, 191, .55); }
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); }
.site-nav .btn-primary:hover { transform: none; }
.btn-ghost { background: #fff; color: var(--navy-900); border-color: #cfd7e6; }
.btn-ghost:hover { background: var(--accent-100); }
.btn-sm { min-height: 40px; padding: .5em 1em; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: .85em 1.6em; font-size: 1.04rem; }
.btn-block { width: 100%; }

/* --- top bar + header ------------------------------------------------------- */
.topbar { background: var(--navy-900); color: #b9c2d6; font-size: .8rem; letter-spacing: .04em; border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar .wrap { display: flex; gap: 1.6em; padding-top: .5em; padding-bottom: .5em; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.hide-sm { display: none; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  backdrop-filter: saturate(1.3) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 70px; }
.brand { display: flex; align-items: center; gap: .7em; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 4px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.15rem; font-weight: 750; color: var(--navy); letter-spacing: -.01em; }
.brand-text small { font-size: .74rem; color: var(--ink-2); margin-top: 2px; }

.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 11px 9px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { height: 1.5px; background: var(--navy-900); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 20px; flex-direction: column; }
.site-nav.open { display: flex; }
.site-nav a { padding: .9em .2em; text-decoration: none; color: var(--ink); font-size: .98rem; font-weight: 600;
  border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--accent-600); }
.site-nav .btn { margin-top: 16px; color: #fff; border-bottom: 0; }

/* --- hero ---------------------------------------------------------------------
   Phone first: copy and the CTA come BEFORE the photos, so the button is on screen without
   scrolling. Only the photo changes — the headline and the button never move. */
.hero { background: linear-gradient(180deg, var(--pale), #fff); padding: 36px 0 40px; }
.hero-grid { display: grid; gap: 28px; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; margin: 26px 0 20px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2);
  font-size: .92rem; }
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: .45em; }

/* Slider. Each photo drifts slowly (Ken Burns); the incoming one is revealed by a curtain wipe
   led by a thin white line. Pure CSS transitions driven by two classes set in site.js. */
.hero-frame { position: relative; }
.hero-frame::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; background: var(--accent-100); border-radius: var(--radius); }
.hero-media { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--navy-900); box-shadow: var(--shadow); }
.hero-media .slide { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease); z-index: 1; }
.hero-media .slide.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.hero-media .slide.is-leaving { clip-path: inset(0 0 0 0); z-index: 1; transition: none; }
.hero-media .slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 8s linear; }
.hero-media .slide.is-active img, .hero-media .slide.is-leaving img { transform: scale(1.0); }
/* the bright leading edge of the curtain */
.hero-media .slide::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 3px; background: #fff;
  box-shadow: 0 0 18px rgba(255,255,255,.9); opacity: 0; transition: opacity .3s; }
.hero-media .slide.is-revealing::after { opacity: 1; }
.hero-dots { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; gap: 8px; z-index: 5; }
.hero-dots button { flex: 1; max-width: 64px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.hero-dots button::before, .hero-dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; }
.hero-dots button::before { background: rgba(255,255,255,.45); }
.hero-dots button::after { background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dots button[aria-current="true"]::after { animation: hero-progress var(--slide-ms, 6500ms) linear forwards; }
.hero-media.paused .hero-dots button[aria-current="true"]::after { animation-play-state: paused; }
@keyframes hero-progress { to { transform: scaleX(1); } }

/* --- sections ----------------------------------------------------------------- */
.section { padding: 56px 0; }
.section-alt { background: var(--pale); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 28px; max-width: 640px; }
.section-head p { color: var(--ink-2); }
.page-head { background: linear-gradient(180deg, var(--pale), #fff); padding: 44px 0 12px; }

.split-cards { display: grid; gap: 16px; }
.split-card { position: relative; display: block; padding: 30px 26px; border-radius: var(--radius); background: var(--accent-100);
  color: var(--ink); text-decoration: none; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.split-card::after { content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.split-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.split-card:hover::after { transform: scaleX(1); }
.split-card h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); }
.split-card-dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.split-card-dark::after { background: #fff; }
.split-card-dark h2 { color: #fff; }
.split-card-dark p { color: #c3cbe0; }
.split-card-dark .card-cta, .split-card-dark .card-cta span { color: #fff; }
.split-kicker { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-600); margin-bottom: 10px; }
.split-card-dark .split-kicker { color: #9dbcf5; }

.cards { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-img { overflow: hidden; aspect-ratio: 16 / 10; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover img { transform: scale(1.05); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; border-top: 3px solid var(--accent); }
.card-body h3 { font-size: 1.12rem; font-weight: 700; color: var(--navy-900); margin-bottom: .35em; }
.card-body p { color: var(--ink-2); font-size: .95rem; flex: 1; }
.card-cta { font-size: .95rem; font-weight: 700; color: var(--accent-600); }
.card-cta span { display: inline-block; transition: transform .3s var(--ease); color: var(--accent); }
.card:hover .card-cta span, .split-card:hover .card-cta span { transform: translateX(5px); }

.step-list { list-style: none; counter-reset: s; padding: 0; margin: 0 0 32px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step-list li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; column-gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step-list li::before { content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-100);
  color: var(--accent-600); font-weight: 800; display: grid; place-items: center; }
.step-list strong { font-size: 1.08rem; font-weight: 700; color: var(--navy-900); }
.step-list span { color: var(--ink-2); }

.contact-strip { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.contact-strip h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-600); font-weight: 700; margin-bottom: .4em; }
.contact-strip p { margin: 0; font-size: 1.05rem; font-weight: 650; line-height: 1.45; color: var(--navy-900); }
.contact-strip a { color: var(--navy-900); text-decoration: none; }

.contact-grid { display: grid; gap: 16px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: var(--radius); padding: 26px; }
.contact-card h2 { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-600); }
.big { font-size: 1.2rem; font-weight: 700; }
.big a { text-decoration: none; }
.plain.big li { display: flex; flex-direction: column; margin-bottom: .7em; }
.plain.big span { font-size: .85rem; font-weight: 400; }

/* --- the form ---------------------------------------------------------------------- */
.form-section { background: linear-gradient(180deg, var(--pale), #fff 70%); }
.form-grid { display: grid; gap: 28px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 1.8em; position: relative; margin-bottom: .55em; color: var(--ink-2); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.form-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); scroll-margin-top: 90px; }

.field { margin-bottom: 16px; }
.field-row { display: grid; gap: 0 16px; }
label { display: block; font-weight: 650; margin-bottom: 6px; font-size: .95rem; color: var(--navy-900); }
.optional { font-weight: 400; color: var(--ink-2); text-transform: none; letter-spacing: 0; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%; min-height: 50px; padding: 11px 14px; font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
  color: var(--ink); background: #fff; border: 1px solid #cfd7e6; border-radius: 8px; appearance: none; transition: border-color .2s, box-shadow .2s; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--accent-600) 50%), linear-gradient(135deg, var(--accent-600) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45, 108, 223, .18); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.field-error { color: var(--err); font-size: .88rem; margin: 6px 0 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .9rem; letter-spacing: 0; text-transform: none; color: var(--ink-2); margin: 0 0 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--navy-900); }
.form-note { text-align: center; color: var(--ink-2); font-size: .9rem; margin: 14px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; }
.alert-error { background: #fdf3f2; color: var(--err); border: 1px solid #f3cfcb; }
.success { text-align: center; padding: 20px 4px; }
.success h2 { color: var(--ok); }
.success h2::after { content: ""; display: block; width: 48px; height: 1px; background: var(--accent); margin: 14px auto 0; }

/* --- footer ------------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #b9c2d6; padding: 52px 0 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #9dbcf5; }
.site-footer h3 { color: #fff; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1em; }
.site-footer .muted { color: #8892aa; }
.site-footer li { margin-bottom: .45em; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 36px; }
.brand-footer { margin-bottom: 14px; }
.brand-footer strong { color: #fff; }
.brand-footer small { color: #8fa2c9; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; padding-bottom: 22px; font-size: .8rem; color: #8892aa;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; letter-spacing: .03em; }
.footer-bottom a { color: #8892aa; }

/* Phones: product cards two-up and compact — seven full-width cards made the page endless. */
@media (max-width: 599px) {
  .card-body { padding: 12px 12px 14px; border-top-width: 2px; }
  .card-body h3 { font-size: .98rem; line-height: 1.25; }
  .card-body p { display: none; }
  .card-cta { font-size: .88rem; margin-top: 6px; }
  .card-img { aspect-ratio: 4 / 3; }
  .hero-frame::before { inset: 8px -8px -8px 8px; }
}

/* footer "Contacte-me" box: light inputs on the navy ground */
.footer-links { margin-top: 14px; }
.footer-callback .muted { margin-bottom: 12px; }
.callback-form input[type=email], .callback-form input[type=tel] { min-height: 46px; margin-bottom: 10px; background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.22); color: #fff; }
.callback-form input::placeholder { color: #9aa7c4; }
.callback-form input:focus { border-color: #9dbcf5; box-shadow: 0 0 0 3px rgba(157, 188, 245, .25); }
.callback-form .check { color: #b9c2d6; font-size: .85rem; margin-bottom: 12px; }
.callback-form .field-error { color: #ffb4ab; margin: -4px 0 10px; }
.callback-form .btn-primary { background: #fff; color: var(--navy-900); box-shadow: none; }
.callback-form .btn-primary:hover { background: var(--accent-100); }
.form-card .callback-form input[type=email], .form-card .callback-form input[type=tel] { background: #fff; color: var(--ink); border-color: #cfd7e6; }
.form-card .callback-form .check { color: var(--ink-2); }
.form-card .callback-form .field-error { color: var(--err); }
.form-card .callback-form .btn-primary { background: var(--accent-600); color: #fff; }
.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; }

/* --- larger screens ------------------------------------------------------------------ */
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .split-cards { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 34px; }
  .split-card { padding: 40px 36px; }
}
@media (min-width: 900px) {
  .hide-sm { display: inline; }
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 6px;
    padding: 0; border: 0; box-shadow: none; background: transparent; }
  .site-nav a { border: 0; padding: .6em .9em; position: relative; }
  .site-nav a:not(.btn)::after { content: ""; position: absolute; left: .9em; right: .9em; bottom: .25em; height: 1px; background: var(--accent);
    transform: scaleX(0); transition: transform .35s var(--ease); }
  .site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav .btn { margin: 0 0 0 14px; }
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 64px; }
  .section { padding: 88px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .step-list { grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 0; }
  .step-list li { border-top: 3px solid var(--accent); border-bottom: 0; }
  .contact-strip { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }
  .form-grid { grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
  .form-intro { position: sticky; top: 110px; }
  .page-head { padding: 72px 0 16px; }
}
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .hero-media .slide img { transform: none !important; }
}

/* --- backoffice ------------------------------------------------------------------------ */
.bo body, body.bo { background: var(--bg-alt); }
.bo-bar { background: var(--navy-900); color: #fff; border-bottom: 2px solid var(--accent); }
.bo-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.bo-bar a { color: #fff; text-decoration: none; }
.bo-bar .who { font-size: .85rem; color: #cbd5e1; }
.btn-onbar { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-onbar:hover { background: rgba(255,255,255,.1); }
.bo-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0 6px; -webkit-overflow-scrolling: touch; }
.bo-tabs a { white-space: nowrap; padding: .5em 1em; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.bo-tabs a[aria-current="page"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); box-shadow: inset 0 -2px 0 var(--accent); }
.bo-tabs .count { opacity: .7; font-weight: 400; margin-left: .3em; }
.bo-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0 14px; }
.bo-tools form { display: flex; gap: 8px; flex: 1; min-width: 220px; flex-wrap: wrap; }
.bo-tools input[type=search] { flex: 1 1 200px; }
.bo-tools input[type=search] { min-height: 42px; }
.bo-tools .btn { min-height: 42px; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table.bo-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.bo-table th, .bo-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bo-table th { background: var(--bg-alt); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); white-space: nowrap; }
.bo-table tr:last-child td { border-bottom: 0; }
.bo-table .msg { max-width: 36ch; white-space: pre-wrap; word-break: break-word; color: var(--ink-2); }
.badge { display: inline-block; padding: .15em .6em; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge-novo { background: #dbeafe; color: #1e40af; }
.badge-contactado { background: #fef9c3; color: #854d0e; }
.badge-fechado { background: #dcfce7; color: #166534; }
.badge-spam { background: #f1f5f9; color: #64748b; }
.status-form { display: flex; gap: 6px; align-items: center; }
.status-form select { min-height: 36px; padding: 4px 30px 4px 10px; font-size: 14px; width: auto; }
.status-form button { min-height: 36px; padding: 4px 12px; font-size: .85rem; }
.empty { padding: 32px; text-align: center; color: var(--ink-2); }
.pager { display: flex; gap: 8px; justify-content: center; margin: 16px 0 32px; }
.login-box { max-width: 400px; margin: 48px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.login-box h1 { font-size: 1.5rem; }

/* On phones, each row becomes a card: tables do not fit at 360px. */
@media (max-width: 760px) {
  .bo-table thead { display: none; }
  .bo-table, .bo-table tbody, .bo-table tr, .bo-table td { display: block; width: 100%; }
  .bo-table tr { padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .bo-table td { border: 0; padding: 4px 12px; }
  .bo-table td[data-l]::before { content: attr(data-l); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
  .bo-table .msg { max-width: none; }
  .bo-bar .who { display: none; }
}

/* backoffice: Definições */
.set-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 14px 0; }
.set-card h2 { font-size: 1.15rem; margin-bottom: .6em; }
.set-status { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 16px; }
.set-status dt { color: var(--ink-2); font-size: .9rem; }
.set-status dd { margin: 0; }
.alert-ok { background: #ecfdf3; color: #14532d; border: 1px solid #bbe5c8; }
.small { font-size: .85rem; }
@media (max-width: 599px) { .set-status { grid-template-columns: 1fr; gap: 2px; } .set-status dd { margin-bottom: 8px; } }
.guide { background: var(--pale); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 0 0 18px; }
.guide summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.guide-steps { margin: 12px 0 8px; padding-left: 1.3em; }
.guide-steps > li { margin-bottom: 10px; }
.guide-steps ul { margin: 6px 0 0; padding-left: 1.2em; }
.guide code { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 0 .3em; font-size: .9em; }
.notice { background: var(--accent-100); border: 1px solid #c9d8f8; border-left: 4px solid var(--accent); border-radius: 8px;
  padding: 12px 16px; margin: 10px 0 4px; color: var(--navy-900); font-size: .95rem; }
