/* fabiomagalhaes.co.uk: restrained executive portfolio.
   Palette: navy, charcoal, white, one teal accent. System fonts only. */
:root {
  --navy: #0f1f3d;
  --charcoal: #1f2430;
  --ink: #161b26;
  --text: #2c3446;
  --muted: #5b6475;
  --line: #e2e6ee;
  --bg: #f6f7f9;
  --paper: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0b5a54;
  --teal-soft: #e6f3f1;
  --radius: 10px;
  --maxw: 1120px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.eyebrow { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-dark); font-weight: 700; margin-bottom: 14px; }
.lede { font-size: 1.15rem; color: var(--text); max-width: 62ch; }
.muted { color: var(--muted); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font-family: var(--serif); font-weight: 700; font-size: 1.12rem; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { text-decoration: none; color: var(--text); padding: 8px 12px; border-radius: 6px; font-size: .95rem; font-weight: 600; }
.nav a:hover { background: var(--bg); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; }

/* buttons */
.btn { display: inline-block; padding: 13px 22px; border-radius: 8px; font-weight: 700; text-decoration: none; font-size: .98rem; border: 2px solid var(--navy); cursor: pointer; font-family: var(--sans); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* hero */
.hero { padding: 72px 0 64px; background: var(--paper); }
.hero .wrap { display: grid; grid-template-columns: 1fr 230px; gap: 56px; align-items: center; }
.hero h1 { max-width: 18ch; }
.hero .photo { width: 230px; height: 230px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(15,31,61,.12); }
.tagline { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* sections */
section.block { padding: 72px 0; }
section.alt { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card.top { border-top: 3px solid var(--teal); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); }
.badge.neutral { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.work-card .industry { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.fact { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; color: var(--navy); }
.fact + .fact { border-top: 0; padding-top: 6px; margin-top: 6px; font-weight: 500; color: var(--text); font-size: .95rem; }
.note { font-size: .88rem; color: var(--muted); margin-top: 22px; }

/* career list */
.career { list-style: none; margin: 0; padding: 0; }
.career li { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.career li:last-child { border-bottom: 1px solid var(--line); }
.career .co { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.career .ds { color: var(--muted); font-size: .88rem; }
.career .rl { font-weight: 700; color: var(--ink); }

/* maturity strip */
.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 22px 0; padding: 0; list-style: none; counter-reset: lvl; }
.levels li { counter-increment: lvl; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px; font-size: .9rem; font-weight: 600; color: var(--navy); }
.levels li::before { content: "Level " counter(lvl); display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 4px; }
.levels li:nth-child(n+4) { background: var(--navy); color: #fff; border-color: var(--navy); }
.levels li:nth-child(n+4)::before { color: #9fd6cf; }

/* certs */
.cert-group { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 34px 0 12px; }
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.cert { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.cert img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.cert strong { display: block; color: var(--navy); font-size: .96rem; line-height: 1.3; }
.cert span { font-size: .8rem; color: var(--muted); }
.pending { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pending li { padding: 12px 16px; border: 1px dashed #b9c0cd; border-radius: 8px; background: var(--paper); }
.pending strong { color: var(--navy); }

/* experience */
.job { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); }
.job:first-of-type { border-top: 0; }
.job .meta .co { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.job .meta .ds { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.job .meta .rl { font-weight: 700; color: var(--ink); margin-top: 10px; }
.job ul { padding-left: 20px; margin: 0 0 1em; }
.job li { margin-bottom: .5em; }
.job h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .84rem; margin: 0; }

/* page head, contact, prose */
.page-head { padding: 64px 0 28px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
form .row { margin-bottom: 18px; }
label { display: block; font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: 6px; }
input[type=text], input[type=email], textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #b9c0cd; border-radius: 8px; background: #fff; color: var(--ink); }
textarea { min-height: 150px; resize: vertical; }
#contact-form-status { margin-top: 14px; font-weight: 600; display: none; }
#contact-form-status.show { display: block; }
#contact-form-status.ok { color: var(--teal-dark); }
#contact-form-status.err { color: #a3261c; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose li { margin-bottom: .4em; }

/* footer */
.site-footer { background: var(--charcoal); color: #cdd3df; padding: 48px 0 36px; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .small { width: 100%; font-size: .82rem; color: #98a1b3; border-top: 1px solid #343b4b; padding-top: 18px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero .photo { width: 140px; height: 140px; order: -1; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .levels { grid-template-columns: 1fr; }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .job, .career li { grid-template-columns: 1fr; gap: 10px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16.5px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 24px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; }
  .grid-4, .grid-3, .grid-2, .certs { grid-template-columns: 1fr; }
  section.block { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* platform / tool chips */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.tool { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-weight: 600; color: var(--navy); font-size: .95rem; line-height: 1.3; }
.tool img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.tool .mono { width: 28px; height: 28px; flex: none; border-radius: 7px; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
@media (max-width: 900px) { .tools { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .tools { grid-template-columns: 1fr; } }

/* AI status badges and wide tool rows */
.badge.s-production, .badge.s-implemented, .badge.s-hands-on, .badge.s-certified { background: var(--teal-soft); color: var(--teal-dark); }
.badge.s-in-development, .badge.s-data-alignment { background: #e8edf7; color: var(--navy); }
.badge.s-concept, .badge.s-exploring { background: var(--bg); color: var(--muted); border: 1px dashed #b9c0cd; }
.tools-2 { grid-template-columns: repeat(2, 1fr); }
.tool-wide { align-items: flex-start; }
.tool-wide strong { margin-right: 6px; }
@media (max-width: 700px) { .tools-2 { grid-template-columns: 1fr; } }

/* framework library lists */
.fw-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: .94rem; }
.fw-list li { padding-left: 16px; position: relative; color: var(--text); }
.fw-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* case studies */
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { color: var(--teal-dark); text-decoration: underline; }
.cs-grid { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.cs-aside { display: grid; gap: 16px; position: sticky; top: 90px; }
.cs-section { margin-top: 34px; }
.cs-section h2 { font-size: 1.35rem; margin-bottom: .45em; }
.cs-section ul { padding-left: 20px; }
.cs-section li { margin-bottom: .45em; }
.flow { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 0; margin: 14px 0 6px; }
.flow li { background: var(--navy); color: #fff; padding: 9px 15px; border-radius: 8px; font-weight: 600; font-size: .92rem; position: relative; }
.flow li:not(:last-child)::after { content: "\2192"; position: absolute; right: -19px; top: 50%; transform: translateY(-50%); color: var(--teal); font-weight: 700; }
@media (max-width: 900px) { .cs-grid { grid-template-columns: 1fr; } .cs-aside { position: static; } }


/* ---- refinement: tighter rhythm, strip, clickable cards, diagrams, stats ---- */
.hero { padding: 56px 0 48px; }
section.block { padding: 56px 0; }
.page-head { padding: 48px 0 20px; }
.section-head { margin-bottom: 26px; }
.mini-h { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: var(--sans); }
.strip { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.strip .wrap { display: flex; align-items: center; gap: 18px 36px; flex-wrap: wrap; }
.strip-label { margin: 0; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.strip-list { list-style: none; display: flex; gap: 10px 34px; flex-wrap: wrap; padding: 0; margin: 0; }
.strip-list li { display: flex; flex-direction: column; line-height: 1.25; }
.strip-list strong { font-family: var(--serif); color: var(--navy); font-size: 1.05rem; }
.strip-list span { font-size: .78rem; color: var(--muted); }
a.card-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.card-link:hover { border-color: var(--teal); transform: translateY(-2px); color: inherit; }
a.card-link .more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: .9rem; color: var(--teal-dark); }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; padding: 0; margin: 22px 0 0; }
.stats li { background: var(--navy); color: #fff; border-radius: 10px; padding: 16px 22px; min-width: 170px; }
.stats strong { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.stats span { font-size: .85rem; color: #c9d3e6; }
.ai-facts { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.ai-facts dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 8px; }
.ai-facts dd { margin: 0; font-size: .95rem; }
.fw-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.layers-stack { display: grid; gap: 8px; }
.layer { display: flex; flex-direction: column; padding: 13px 18px; border-radius: 8px; color: #fff; }
.layer strong { font-size: 1rem; }
.layer span { font-size: .84rem; opacity: .88; }
.layer.l0 { background: #0f1f3d; } .layer.l1 { background: #173055; } .layer.l2 { background: #1f4a6b; } .layer.l3 { background: #0f6272; } .layer.l4 { background: #0f766e; }
.layers-cross { margin-top: 8px; padding: 12px 18px; border: 2px solid var(--teal); border-radius: 8px; background: var(--teal-soft); display: flex; flex-direction: column; color: var(--navy); }
.layers-cross span { font-size: .84rem; color: var(--muted); }
.pyramid { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; justify-items: center; }
.pyramid li { padding: 10px 16px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; text-align: center; }
.pyramid strong { color: var(--navy); }
.pyramid span { font-size: .82rem; color: var(--muted); }
.pyramid .p0 { width: 52%; } .pyramid .p1 { width: 62%; } .pyramid .p2 { width: 74%; } .pyramid .p3 { width: 87%; } .pyramid .p4 { width: 100%; background: var(--navy); border-color: var(--navy); }
.pyramid .p4 strong { color: #fff; } .pyramid .p4 span { color: #c9d3e6; }
@media (max-width: 900px) { .fw-visual { grid-template-columns: 1fr; gap: 28px; } .pyramid li { width: 100% !important; } section.block { padding: 44px 0; } }


/* ---- Lab prototypes ---- */
.pa-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.pa-label { display: block; font-weight: 700; color: var(--navy); font-size: .9rem; margin: 0 0 6px; }
.pa-row { text-align: right; font-size: .8rem; color: var(--muted); }
.pa-scenarios { display: flex; gap: 8px; flex-wrap: wrap; }
.pa-chip { font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid #b9c0cd; background: #fff; color: var(--navy); cursor: pointer; }
.pa-chip:hover { border-color: var(--teal); background: var(--teal-soft); }
.pa-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
.pa-status { margin: 12px 0 0; font-weight: 600; min-height: 1.4em; }
.pa-status.ok { color: var(--teal-dark); } .pa-status.err { color: #a3261c; }
.pa-results { margin-top: 28px; }
.pa-head h2 { margin-bottom: .2em; }
.pa-tabs, .cc-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 18px 0 20px; }
.pa-tab, .cc-tab { font: inherit; font-weight: 700; font-size: .92rem; padding: 10px 16px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); cursor: pointer; }
.pa-tab.on, .cc-tab.on { color: var(--navy); border-bottom-color: var(--teal); }
.pa-diagram { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pa-diagram svg { display: block; width: 100%; height: auto; min-width: 640px; }
.pa-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 0; margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.pa-sec { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; background: #fff; }
.pa-sec summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--navy); }
.pa-rows { padding: 4px 16px 6px; display: grid; gap: 8px; }
.pa-rowitem { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pa-rowitem input[type=text], .pa-rowitem select { padding: 8px 10px; font-size: .9rem; border: 1px solid #b9c0cd; border-radius: 6px; width: auto; flex: 1 1 160px; min-width: 120px; background: #fff; font-family: inherit; }
.pa-cell { display: flex; flex: 1 1 160px; margin: 0; font-weight: 400; }
.pa-cell input[type=text], .pa-cell select { flex: 1; }
.pa-cell.chk { flex: 0 0 auto; align-items: center; gap: 6px; font-size: .85rem; }
.pa-del { font: inherit; font-size: .82rem; padding: 6px 10px; border: 1px solid #d6b4b0; border-radius: 6px; background: #fff; color: #a3261c; cursor: pointer; }
.pa-add { margin: 6px 16px 14px; padding: 8px 14px; font-size: .88rem; }
.pa-json { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.5; padding: 14px; border: 1px solid #b9c0cd; border-radius: 8px; }
.cc-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.cc-top p { margin: 2px 0 0; font-size: .85rem; }
.cc-top-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cc-top-controls label { font-weight: 600; margin: 0; font-size: .9rem; }
.cc-top-controls select, .cc-main select, .cc-main textarea { font: inherit; font-size: .92rem; padding: 7px 10px; border: 1px solid #b9c0cd; border-radius: 6px; background: #fff; max-width: 100%; }
.cc-main textarea { width: 100%; font-family: inherit; }
.cc-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 20px; }
.cc-tiles.small { grid-template-columns: repeat(3, 1fr); }
.cc-tile { background: var(--navy); color: #fff; border-radius: 10px; padding: 14px 16px; }
.cc-tile.click { cursor: pointer; border: 2px solid var(--teal); }
.cc-tile strong { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; }
.cc-tile span { font-size: .78rem; color: #c9d3e6; }
.cc-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.cc-side { display: grid; gap: 6px; }
.cc-item { text-align: left; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.cc-item.on { border-color: var(--teal); background: var(--teal-soft); }
.cc-item strong { font-size: .92rem; color: var(--navy); } .cc-item span { font-size: .78rem; color: var(--muted); }
.cc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #b9c0cd; }
.cc-dot.active { background: #15803d; } .cc-dot.paused { background: #b45309; } .cc-dot.staging { background: #1d4ed8; }
.cc-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.cc-main h2 { margin-bottom: .3em; } .cc-main h3 { font-size: 1.05rem; margin-top: 1.6em; }
.cc-tablewrap { overflow-x: auto; }
.cc-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.cc-table th { text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.cc-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cc-chip { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); text-transform: capitalize; }
.cc-chip.ok { background: var(--teal-soft); color: var(--teal-dark); border-color: transparent; }
.cc-chip.err { background: #fbe4e2; color: #a3261c; border-color: transparent; }
.cc-chip.warn { background: #fdf0d8; color: #8a5a00; border-color: transparent; }
.cc-chip.wait { background: #e8edf7; color: var(--navy); border-color: transparent; }
.cc-chip.in { background: #0f6272; color: #fff; border-color: transparent; } .cc-chip.out { background: #9fd0cb; color: #0b3b38; border-color: transparent; }
.cc-btn { font: inherit; font-weight: 700; font-size: .85rem; padding: 7px 14px; border-radius: 6px; border: 2px solid var(--navy); background: var(--navy); color: #fff; cursor: pointer; }
.cc-btn.ghost { background: #fff; color: var(--navy); }
.cc-btn:disabled, .pa-tab:disabled, select:disabled, textarea:disabled { opacity: .5; cursor: not-allowed; }
.cc-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.cc-dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; margin: 14px 0; }
.cc-dl dt { font-weight: 700; color: var(--muted); font-size: .85rem; } .cc-dl dd { margin: 0; }
.cc-checks { display: flex; gap: 18px; flex-wrap: wrap; } .cc-checks label { font-weight: 400; margin: 0; }
.cc-bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; border-bottom: 1px solid var(--line); padding-top: 8px; }
.cc-bar { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; font-size: .7rem; color: var(--muted); }
.cc-barstack { width: 100%; height: 124px; display: flex; flex-direction: column; justify-content: flex-end; }
.cc-seg.in { background: #0f6272; } .cc-seg.out { background: #9fd0cb; }
.cc-legend { margin: 8px 0 0; font-size: .8rem; }
.cc-hbars { display: grid; gap: 8px; }
.cc-hbar { display: grid; grid-template-columns: 220px 1fr 60px; gap: 12px; align-items: center; font-size: .88rem; }
.cc-hbar > div { background: var(--bg); border-radius: 4px; height: 12px; overflow: hidden; } .cc-hfill { height: 100%; background: var(--teal); }
.cc-hbar strong { text-align: right; color: var(--navy); }
@media (max-width: 900px) { .cc-layout { grid-template-columns: 1fr; } .cc-tiles { grid-template-columns: repeat(2, 1fr); } .cc-tiles.small { grid-template-columns: repeat(2, 1fr); } .cc-hbar { grid-template-columns: 1fr 1fr 56px; } .cc-dl { grid-template-columns: 1fr; } }
