/* ==========================================================================
   MCIT, Consultoria em Tecnologia
   Folha de estilo unica: site publico, backoffice e area de cliente.
   Paleta derivada do logotipo (navy #0B2E62, azul #3C99E2).
   ========================================================================== */

:root {
  --navy-950: #020B18;
  --navy-900: #041428;
  --navy-800: #07213F;
  --navy-700: #0B2E62;
  --navy-600: #14417F;
  --blue-600: #1B62BE;
  --blue-500: #2B80D6;
  --blue-400: #3C99E2;
  --blue-300: #7BC0EF;
  --blue-200: #B9DCF7;
  --blue-100: #DCEBFA;
  --ice: #F1F6FC;

  --ink: #0E1B2E;
  --ink-2: #33455E;
  --muted: #64748B;
  --line: #DFE7F1;
  --line-soft: #EDF2F8;
  --white: #FFFFFF;

  --ok: #17845A;
  --ok-bg: #E2F5EC;
  --warn: #9A6100;
  --warn-bg: #FCF0DA;
  --danger: #B5232C;
  --danger-bg: #FBE6E7;
  --info: #14417F;
  --info-bg: #E4EFFB;

  --radius: 12px;
  --radius-lg: 18px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(6, 25, 55, .06), 0 1px 3px rgba(6, 25, 55, .04);
  --shadow: 0 4px 16px rgba(6, 25, 55, .08);
  --shadow-lg: 0 18px 48px rgba(4, 20, 40, .16);
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.15em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
small { font-size: .85rem; }
code { font-family: var(--mono); font-size: .9em; background: var(--ice); padding: .12em .38em; border-radius: 5px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.ico { flex: none; vertical-align: middle; }
.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;
}
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 4px; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--navy-700);
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- botoes ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
  padding: .78rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none !important; transition: .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue-500); color: #fff; border-color: var(--blue-500); box-shadow: 0 6px 18px rgba(43, 128, 214, .28); }
.btn-primary:hover { background: var(--blue-600); border-color: var(--blue-600); transform: translateY(-1px); }
.btn-navy { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.btn-navy:hover { background: var(--navy-600); border-color: var(--navy-600); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-outline { background: #fff; color: var(--navy-700); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue-400); color: var(--blue-600); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { filter: brightness(.92); }
.btn-sm { padding: .45rem .85rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- navegacao publica ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(4, 20, 40, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.site-header .container { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.site-nav a {
  color: rgba(255, 255, 255, .84); font-weight: 500; font-size: .95rem;
  padding: .5rem .8rem; border-radius: 8px; text-decoration: none;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); text-decoration: none; }
.site-nav a.active { color: #fff; background: rgba(60, 153, 226, .22); }
.lang-switch { display: flex; align-items: center; gap: .15rem; margin-left: .4rem; padding-left: .8rem; border-left: 1px solid rgba(255, 255, 255, .18); }
.lang-switch a { font-size: .8rem; font-weight: 700; letter-spacing: .06em; padding: .35rem .5rem; color: rgba(255, 255, 255, .55); }
.lang-switch a.active { color: #fff; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.nav-cta { margin-left: .6rem; }
.nav-toggle {
  display: none; margin-left: auto; background: transparent; border: 1px solid rgba(255, 255, 255, .28);
  color: #fff; border-radius: 8px; padding: .4rem .55rem; cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding: .6rem 24px 1.1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem .2rem; border-radius: 0; }
  .lang-switch { margin: .6rem 0 0; padding: .6rem 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .nav-cta { margin: .8rem 0 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(43, 128, 214, .38), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-950) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("/img/world-map.jpg") no-repeat 18% 12%;
  background-size: 62% auto; opacity: .34; mix-blend-mode: screen; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 46% 42% at 30% 26%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 46% 42% at 30% 26%, #000 25%, transparent 72%);
}
.hero-tech {
  position: absolute; top: 0; right: 0; height: 100%; width: 34%;
  background: url("/img/hero-tech.jpg") no-repeat center / cover;
  opacity: .85;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 38%);
  mask-image: linear-gradient(to right, transparent, #000 38%);
  pointer-events: none;
}
.hero-globe {
  position: absolute; left: -60px; bottom: -70px; width: 460px; max-width: 46%;
  opacity: .5; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 30% 70%, #000 45%, transparent 78%);
  mask-image: radial-gradient(circle at 30% 70%, #000 45%, transparent 78%);
}
.hero .container { position: relative; z-index: 2; padding-top: 6.5rem; padding-bottom: 6.5rem; }
.hero-inner { max-width: 660px; }
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-300); margin-bottom: 1.1rem;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--blue-400); border-radius: 2px; }
.hero h1 { color: #fff; margin-bottom: .6rem; }
.hero p { color: rgba(226, 238, 250, .88); font-size: 1.12rem; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  margin-top: 3.4rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .16);
  max-width: 620px;
}
.hero-stats .n { font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1.1; }
.hero-stats .l { font-size: .84rem; color: rgba(214, 231, 248, .75); }
@media (max-width: 720px) {
  .hero .container { padding-top: 4rem; padding-bottom: 4rem; }
  .hero::before { display: none; }
  .hero-tech { width: 100%; opacity: .22; -webkit-mask-image: none; mask-image: none; }
  .hero-globe { display: none; }
  .hero-stats { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* ---------- seccoes ---------- */
.section { padding: 5.2rem 0; }
.section-alt { background: var(--ice); }
.section-navy { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(222, 234, 248, .85); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
.section-navy .section-head p { color: rgba(222, 234, 248, .85); }
.section-navy .kicker { color: var(--blue-300); }

/* ---------- grelhas e cartoes ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.7rem; box-shadow: var(--shadow-sm); transition: .2s ease;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-2); margin-bottom: 0; font-size: .96rem; }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--blue-300); box-shadow: var(--shadow); transform: translateY(-3px); text-decoration: none; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--navy-700); margin-bottom: 1.1rem;
}
a.card:hover .card-icon { background: var(--blue-500); color: #fff; }
.card-link { margin-top: 1.1rem; font-weight: 600; font-size: .9rem; color: var(--blue-600); display: inline-flex; align-items: center; gap: .35rem; }

.feature { display: flex; gap: 1rem; }
.feature .ico-wrap { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(60, 153, 226, .16); color: var(--blue-300); flex: none; }
.feature h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.feature p { font-size: .95rem; margin: 0; }

.checklist { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; padding: .42rem 0; color: var(--ink-2); }
.checklist li .ico { color: var(--blue-500); margin-top: .22rem; }
.section-navy .checklist li { color: rgba(222, 234, 248, .9); }
.section-navy .checklist li .ico { color: var(--blue-300); }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.4rem; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2.2rem; } }
.media-frame {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--shadow-lg);
}

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-700), var(--blue-600));
  color: #fff; border-radius: var(--radius-lg); padding: 3rem; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(230, 240, 252, .9); max-width: 52ch; margin-left: auto; margin-right: auto; }
@media (max-width: 680px) { .cta-band { padding: 2rem 1.4rem; } }

/* ---------- pagina de servico ---------- */
.page-head {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  color: #fff; padding: 4.2rem 0 3.4rem; position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; right: -10%; top: -40%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(60, 153, 226, .32), transparent 65%);
}
.page-head::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 38%;
  background: url("/img/hero-tech.jpg") no-repeat center / cover; opacity: .55;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 70%);
  mask-image: linear-gradient(to right, transparent, #000 70%);
  pointer-events: none;
}
@media (max-width: 720px) { .page-head::before { display: none; } }
.page-head .container { position: relative; z-index: 2; }
.page-head h1 { color: #fff; max-width: 20ch; }
.page-head p { color: rgba(222, 234, 248, .88); max-width: 62ch; font-size: 1.08rem; margin-bottom: 0; }
.breadcrumb { font-size: .85rem; color: rgba(206, 226, 246, .7); margin-bottom: 1.2rem; }
.breadcrumb a { color: rgba(206, 226, 246, .9); }
.prose { font-size: 1.04rem; color: var(--ink-2); }
.prose h2 { color: var(--ink); margin-top: 2.2rem; }
.aside-box { background: var(--ice); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; }
.aside-box h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.service-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.service-nav a {
  font-size: .88rem; padding: .45rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
}
.service-nav a:hover, .service-nav a.active { background: var(--navy-700); color: #fff; border-color: var(--navy-700); text-decoration: none; }

/* ---------- formularios ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .38rem; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: .8rem; color: var(--muted); }
.field .req { color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url],
input[type=date], input[type=number], input[type=search], input[type=file], select, textarea {
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .68rem .8rem;
  width: 100%; transition: .15s ease;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(60, 153, 226, .18); outline: none; }
input.err, textarea.err, select.err { border-color: var(--danger); background: #fffafa; }
.checkbox { display: flex; align-items: center; gap: .55rem; font-size: .92rem; color: var(--ink-2); }
.checkbox input { width: auto; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 0 0 1.4rem; }
legend { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 0 .4rem; }

.alert { border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1.4rem; font-size: .94rem; display: flex; gap: .6rem; align-items: flex-start; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-err { background: var(--danger-bg); color: var(--danger); }
.alert-info { background: var(--info-bg); color: var(--info); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert a { color: inherit; text-decoration: underline; }

/* ---------- rodape ---------- */
.site-footer { background: var(--navy-950); color: rgba(206, 224, 244, .72); padding: 3.6rem 0 1.6rem; font-size: .93rem; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer a { color: rgba(206, 224, 244, .8); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.4rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .22rem 0; }
.site-footer .brand img { height: 32px; margin-bottom: 1rem; }
.footer-bottom {
  margin-top: 2.8rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; font-size: .85rem;
}

/* ==========================================================================
   Autenticacao
   ========================================================================== */
.auth-page {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
  background: var(--ice);
}
.auth-side {
  position: relative; overflow: hidden; color: #fff; padding: 3.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
}
.auth-side::before {
  content: ""; position: absolute; inset: 0;
  background: url("/img/hero-tech.jpg") no-repeat right center / cover; opacity: .5;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 60%);
  mask-image: linear-gradient(to right, transparent, #000 60%);
}
.auth-side > * { position: relative; z-index: 2; }
.auth-side img.logo { height: 40px; width: auto; }
.auth-side h2 { color: #fff; max-width: 16ch; }
.auth-side p { color: rgba(222, 234, 248, .8); max-width: 42ch; }
.auth-main { display: grid; place-items: center; padding: 2.5rem 1.5rem; }
.auth-card { width: 100%; max-width: 410px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.6rem; margin-bottom: .2rem; }
.auth-card .sub { color: var(--muted); font-size: .93rem; margin-bottom: 1.6rem; }
.auth-card .field { margin-bottom: 1rem; }
.auth-foot { margin-top: 1.4rem; font-size: .86rem; color: var(--muted); text-align: center; }
@media (max-width: 900px) { .auth-page { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ==========================================================================
   Backoffice e area de cliente
   ========================================================================== */
.app { min-height: 100vh; display: grid; grid-template-columns: 252px 1fr; background: var(--ice); }
.app-side {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-950));
  color: rgba(214, 230, 247, .8); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.app-side .side-brand { padding: 1.3rem 1.3rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.app-side .side-brand img { height: 30px; }
.side-role { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-300); margin-top: .5rem; }
.side-nav { padding: 1rem .8rem; flex: 1; }
.side-nav .group { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: rgba(160, 190, 222, .55); padding: 1rem .7rem .4rem; }
.side-nav a {
  display: flex; align-items: center; gap: .7rem; padding: .62rem .75rem; border-radius: 9px;
  color: rgba(214, 230, 247, .82); font-size: .92rem; font-weight: 500; text-decoration: none; margin-bottom: 2px;
}
.side-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.side-nav a.active { background: var(--blue-500); color: #fff; box-shadow: 0 4px 14px rgba(43, 128, 214, .35); }
.side-foot { padding: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.side-user { color: #fff; font-weight: 600; }
.side-foot .email { color: rgba(190, 214, 240, .7); font-size: .8rem; word-break: break-all; margin-bottom: .7rem; }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-bar {
  background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 1.8rem;
  display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 40;
}
.app-bar h1 { font-size: 1.32rem; margin: 0; }
.app-bar .crumb { font-size: .82rem; color: var(--muted); }
.app-bar .actions { margin-left: auto; display: flex; gap: .6rem; flex-wrap: wrap; }
.app-body { padding: 1.8rem; flex: 1; }
.side-toggle { display: none; background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: .35rem .5rem; cursor: pointer; color: var(--ink-2); }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .app-side { position: fixed; left: 0; top: 0; width: 252px; z-index: 90; transform: translateX(-100%); transition: .2s ease; }
  .app-side.open { transform: none; box-shadow: var(--shadow-lg); }
  .side-toggle { display: inline-flex; }
  .app-body { padding: 1.1rem; }
  .app-bar { padding: .9rem 1.1rem; }
}

/* ---------- painel ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 1.4rem; }
.panel-head { padding: 1rem 1.3rem; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: .8rem; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1.02rem; }
.panel-head .actions { margin-left: auto; display: flex; gap: .5rem; }
.panel-body { padding: 1.3rem; }
.panel-body.tight { padding: 0; }
.panel-foot { padding: .9rem 1.3rem; border-top: 1px solid var(--line-soft); background: #FBFDFF; border-radius: 0 0 var(--radius) var(--radius); }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.3rem; box-shadow: var(--shadow-sm);
}
.stat .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.stat .value { font-size: 1.95rem; font-weight: 700; color: var(--navy-700); line-height: 1.15; margin-top: .3rem; }
.stat .sub { font-size: .82rem; color: var(--muted); }

/* ---------- tabelas ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th {
  text-align: left; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; padding: .75rem 1rem; border-bottom: 1px solid var(--line);
  background: #FBFDFF; white-space: nowrap;
}
table.data td { padding: .8rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tbody tr:hover { background: #F7FBFF; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; }
table.data td.actions { text-align: right; white-space: nowrap; }
table.data a.rowlink { font-weight: 600; color: var(--navy-700); }
table.data a.rowlink:hover { color: var(--blue-600); }

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty .ico { color: var(--blue-300); margin-bottom: .6rem; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700;
  letter-spacing: .03em; padding: .22rem .6rem; border-radius: 999px; text-transform: uppercase;
  background: var(--line-soft); color: var(--ink-2); white-space: nowrap;
}
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: var(--line-soft); color: var(--muted); }

/* ---------- barra de progresso ---------- */
.progress { height: 7px; background: var(--line-soft); border-radius: 999px; overflow: hidden; min-width: 90px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-500), var(--blue-400)); border-radius: 999px; }
.progress-row { display: flex; align-items: center; gap: .6rem; }
.progress-row b { font-size: .82rem; color: var(--ink-2); min-width: 34px; text-align: right; }

/* ---------- separadores ---------- */
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.tabs a {
  padding: .65rem 1rem; font-size: .92rem; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none;
}
.tabs a:hover { color: var(--navy-700); text-decoration: none; }
.tabs a.active { color: var(--navy-700); border-bottom-color: var(--blue-500); }

/* ---------- listas de definicoes ---------- */
.dl { display: grid; grid-template-columns: 190px 1fr; gap: .1rem 1rem; font-size: .94rem; }
.dl dt { color: var(--muted); padding: .5rem 0; border-bottom: 1px solid var(--line-soft); font-size: .86rem; }
.dl dd { margin: 0; padding: .5rem 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.dl dt:last-of-type, .dl dd:last-of-type { border-bottom: 0; }
@media (max-width: 640px) { .dl { grid-template-columns: 1fr; } .dl dt { border-bottom: 0; padding-bottom: 0; } }

/* ---------- segredos ---------- */
.secret { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .88rem; }
.secret .val {
  background: var(--ice); border: 1px solid var(--line); border-radius: 6px; padding: .2rem .55rem;
  min-width: 120px; display: inline-block; letter-spacing: .06em;
}
.icon-btn {
  background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: .3rem .42rem;
  cursor: pointer; color: var(--ink-2); display: inline-flex; line-height: 0;
}
.icon-btn:hover { border-color: var(--blue-400); color: var(--blue-600); }

/* ---------- linha do tempo ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1.5rem 1.6rem; border-left: 2px solid var(--line); }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: .35rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--blue-500); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--blue-200);
}
.timeline .when { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.timeline h4 { margin: .15rem 0 .3rem; font-size: 1rem; }
.timeline p { font-size: .93rem; color: var(--ink-2); margin: 0; }

/* ---------- utilitarios ---------- */
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.mono { font-family: var(--mono); }
.row { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .6rem; } .mb-2 { margin-bottom: 1.2rem; } .mb-3 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; }
.filters .field { min-width: 180px; }

@media print {
  .app-side, .app-bar .actions, .site-header, .site-footer, .btn { display: none !important; }
  .app { grid-template-columns: 1fr; }
  body { background: #fff; }
}
