/* CostCubes — Cost Intelligence & Business Performance. Design tokens + public site + application shell. */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #10243A; --blue: #1F4E78; --teal: #2F6FA8; --teal-ink: #1F4E78; --teal-soft: #E8F0F8;
  --bg: #F3F6F9; --white: #FFFFFF; --ink: #182230; --muted: #5B6B80; --muted-2: #8493A6;
  --line: #E1E7EF; --line-2: #CFD8E3;
  --good: #16865C; --good-soft: #E5F4EC; --warn: #B7770B; --warn-soft: #FDF3E1; --bad: #C53B3B; --bad-soft: #FBE9E9;
  --radius: 6px; --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(16,36,58,.05), 0 4px 16px rgba(16,36,58,.05);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-font-family: var(--font); --bs-body-color: var(--ink); --bs-border-color: var(--line);
  --bs-link-color: var(--teal-ink); --bs-link-hover-color: var(--blue); --bs-link-color-rgb: 31,78,120;
}
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--white); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { color: var(--navy); font-weight: 650; letter-spacing: -0.015em; line-height: 1.2; }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 2000; border-radius: 4px; }
.skip-link:focus { left: 8px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); }
.muted { color: var(--muted); }
.small-muted { color: var(--muted); font-size: 13px; }
.tabular { font-variant-numeric: tabular-nums; }
.container-xl { max-width: 1240px; }

/* ---------------------------------------------------------------- buttons */
.btn { font-weight: 600; font-size: 14px; border-radius: var(--radius); padding: 10px 18px; letter-spacing: .005em; transition: background-color .15s, border-color .15s, color .15s, transform .15s; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; }
.btn-dark { background: var(--navy); border-color: var(--navy); }
.btn-dark:hover { background: var(--blue); border-color: var(--blue); }
.btn-outline { background: transparent; border: 1px solid var(--line-2); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn-ghost-light { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn-danger { background: var(--bad); border-color: var(--bad); }
.btn-link-plain { background: none; border: 0; padding: 0; color: var(--teal-ink); font-weight: 600; font-size: 14px; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .55; pointer-events: none; }

/* ---------------------------------------------------------------- forms */
.form-label { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-control, .form-select { border-color: var(--line-2); border-radius: var(--radius); font-size: 14px; padding: 9px 12px; color: var(--ink); }
.form-control:focus, .form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(47,111,168,.15); }
.form-text { color: var(--muted); font-size: 12.5px; }
.field-error { color: var(--bad); font-size: 12.5px; margin-top: 4px; }
.form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- badges & flags */
.badge-s { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; line-height: 1.4; }
.badge-good { background: var(--good-soft); color: var(--good); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-neutral { background: #EDF1F6; color: #475569; }
.badge-teal { background: var(--teal-soft); color: var(--teal-ink); }
.sev { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.sev-critical, .sev-high { background: var(--bad); } .sev-medium { background: var(--warn); } .sev-low { background: var(--muted-2); }
.demo-ribbon { background: #F2C14E; color: var(--navy); font-size: 12.5px; font-weight: 600; text-align: center; padding: 6px 12px; }
.label-illustrative { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); background: var(--warn-soft); border-radius: 4px; padding: 2px 7px; }
.label-unreviewed { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6B4E00; background: #FFF1C2; border-radius: 4px; padding: 2px 7px; }

/* ---------------------------------------------------------------- flash */
.flash { border-radius: var(--radius); padding: 12px 16px; font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.flash-success { background: var(--good-soft); border-color: #BFE3CF; color: #0F5E40; }
.flash-error { background: var(--bad-soft); border-color: #F1C4C4; color: #8E2525; }
.flash-info { background: #EAF2FA; border-color: #C9DCEE; color: var(--blue); }
.flash-warning { background: var(--warn-soft); border-color: #F2D9A6; color: #7A4F06; }

/* ================================================================ PUBLIC SITE */
.site-header { position: sticky; top: 0; z-index: 1020; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.wordmark { display: inline-flex; align-items: center; text-decoration: none !important; flex-shrink: 0; line-height: 0; }
.wordmark img { display: block; max-width: 100%; height: 44px; width: auto; }
.wordmark.on-dark { background: #fff; border-radius: 8px; padding: 7px 10px; }
.wordmark.on-dark img { height: 34px; }
.main-nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.main-nav a { color: var(--ink); font-size: 14px; font-weight: 500; padding: 8px 10px; border-radius: 5px; white-space: nowrap; }
.header-cta .btn { white-space: nowrap; }

.main-nav a:hover, .main-nav a.active { color: var(--navy); background: var(--bg); text-decoration: none; }
.header-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 5px; padding: 7px 10px; color: var(--navy); }
.nav-panel { display: contents; }
/* About Us dropdown */
.nav-dd { position: relative; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; padding: 8px 10px; border-radius: 5px; white-space: nowrap; cursor: pointer; }
.nav-dd-btn svg { transition: transform .15s; }
.nav-dd-btn:hover, .nav-dd-btn.active, .nav-dd.open .nav-dd-btn { color: var(--navy); background: var(--bg); }
.nav-dd-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 32px -16px rgba(16,36,58,.35); padding: 6px; z-index: 1030; }
.nav-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-dd-menu a { display: block; padding: 9px 12px !important; border-radius: 5px; }
.nav-dd.open .nav-dd-menu { display: block; }
.nav-dd.open .nav-dd-btn svg { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 1321px) { .nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { display: block; } }
.main-nav a { padding: 8px 11px; }
@media (max-width: 1280px) { .main-nav a { padding: 8px 7px; font-size: 13.5px; } .header-cta { gap: 8px; } .site-header .inner { gap: 14px; } }
@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel { display: none; }
  .site-header.open .nav-panel { display: block; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -18px rgba(16,36,58,.4); max-height: calc(100vh - 68px); overflow-y: auto; }
  .site-header.open .main-nav { display: flex; flex-direction: column; align-items: stretch; padding: 10px 16px 6px; }
  .site-header.open .header-cta { display: flex; flex-wrap: wrap; padding: 4px 16px 16px; }
  .site-header.open .main-nav a { padding: 10px 8px; }
  .nav-dd-btn { width: 100%; justify-content: space-between; padding: 10px 8px; }
  .nav-dd-menu { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 4px 10px; padding: 0 0 0 6px; min-width: 0; }
  .nav-dd-menu::before { display: none; }
}

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--bg); }
.section-dark { background: var(--navy); color: #C9D6E3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 38px); margin: 10px 0 14px; }
.section-head p { font-size: 17px; color: var(--muted); margin: 0; }

.hero { background: linear-gradient(180deg, #F7F9FC 0%, #fff 100%); border-bottom: 1px solid var(--line); padding: 72px 0 80px; overflow: hidden; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.028em; margin: 16px 0 20px; max-width: 14ch; }
.hero .lede { font-size: 18px; color: var(--muted); max-width: 54ch; margin-bottom: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; color: var(--muted); font-size: 13.5px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof svg { color: var(--teal); }

/* Dashboard preview */
.preview { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 30px 60px -30px rgba(16,36,58,.35), var(--shadow); overflow: hidden; }
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #FBFCFE; font-size: 12px; color: var(--muted); }
.preview-bar .dots { display: flex; gap: 6px; } .preview-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #D7DEE8; display: block; }
.preview-body { padding: 18px; display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; background: #fff; min-width: 0; }
.kpi .k { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v { font-size: 20px; font-weight: 650; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.25; margin-top: 2px; }
.kpi .d { font-size: 11.5px; font-weight: 600; } .d.up-bad, .d.down-bad { color: var(--bad); } .d.up-good, .d.down-good { color: var(--good); }
.preview-charts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.chart-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-width: 0; }
.chart-card h4 { font-size: 12.5px; font-weight: 600; color: var(--ink); margin: 0 0 8px; letter-spacing: 0; }
.chart-box { position: relative; height: 170px; }
.chart-box.tall { height: 260px; } .chart-box.short { height: 140px; }
.opp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.opp-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.opp-list li:last-child { border-bottom: 0; }
@media (max-width: 991px) { .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } .preview-charts { grid-template-columns: 1fr; } }

.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.value-grid > div { padding: 28px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value-grid h3 { font-size: 17px; margin: 14px 0 8px; }
.value-grid p { color: var(--muted); font-size: 14.5px; margin: 0; }
.icon-box { width: 38px; height: 38px; border-radius: 8px; background: var(--teal-soft); color: var(--teal-ink); display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 991px) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .value-grid { grid-template-columns: 1fr; } }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 12px; }
.steps li { list-style: none; position: relative; padding-top: 46px; font-size: 14px; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-weight: 700; color: var(--teal-ink); font-size: 13px; letter-spacing: .08em; }
.steps li::after { content: ""; position: absolute; top: 26px; left: 0; right: -12px; height: 1px; background: var(--line-2); }
.steps li:last-child::after { right: 0; }
.steps strong { display: block; color: var(--navy); font-size: 15px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; padding: 0; } .steps li::after { display: none; } }
@media (max-width: 575px) { .steps { grid-template-columns: 1fr; } }

.cap-list { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.cap { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.cap:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.cap h3 { font-size: 16px; margin: 12px 0 6px; } .cap p { color: var(--muted); font-size: 14px; margin: 0; }
@media (max-width: 991px) { .cap-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .cap-list { grid-template-columns: 1fr; } }

.ind-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.ind-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px 16px; background: #fff; color: var(--ink); display: flex; flex-direction: column; gap: 6px; min-height: 140px; transition: border-color .15s, transform .15s; }
.ind-card:hover { border-color: var(--teal); text-decoration: none; transform: translateY(-2px); }
.ind-card .code { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted-2); }
.ind-card strong { color: var(--navy); font-size: 15px; line-height: 1.3; }
.ind-card span.more { margin-top: auto; font-size: 13px; color: var(--teal-ink); font-weight: 600; }
@media (max-width: 1100px) { .ind-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 575px) { .ind-grid { grid-template-columns: 1fr 1fr; } }

.lifecycle { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 0; }
.lifecycle > div { padding: 22px 18px; border-left: 1px solid rgba(255,255,255,.14); }
.lifecycle > div:first-child { border-left: 0; padding-left: 0; }
.lifecycle .n { font-size: 12px; color: var(--teal); font-weight: 700; letter-spacing: .1em; }
.lifecycle h3 { font-size: 16px; margin: 8px 0 6px; color: #fff; }
.lifecycle p { font-size: 13.5px; color: #A9BACB; margin: 0; }
.lifecycle .tag { display: inline-block; margin-top: 10px; font-size: 11px; padding: 2px 7px; border-radius: 4px; background: rgba(255,255,255,.08); color: #C9D6E3; }
@media (max-width: 991px) { .lifecycle { grid-template-columns: 1fr 1fr; } .lifecycle > div { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding-left: 0; } }

.report-tiles { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }
.report-tile { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.report-tile .thumb { aspect-ratio: 16 / 10; background: var(--navy); padding: 14px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.report-tile .thumb .bars { display: flex; align-items: flex-end; gap: 5px; height: 46%; }
.report-tile .thumb .bars i { flex: 1; background: var(--teal); opacity: .85; border-radius: 2px 2px 0 0; display: block; }
.report-tile .thumb .bars i:nth-child(even) { background: #4C7598; }
.report-tile .thumb .t { font-size: 12px; font-weight: 600; line-height: 1.3; }
.report-tile .meta { padding: 12px 14px; font-size: 13px; }
.report-tile .meta strong { display: block; color: var(--navy); font-size: 13.5px; }
@media (max-width: 1100px) { .report-tiles { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 575px) { .report-tiles { grid-template-columns: 1fr 1fr; } }

.cta-band { background: var(--navy); color: #C9D6E3; border-radius: var(--radius-lg); padding: 52px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); margin: 0 0 10px; }
@media (max-width: 767px) { .cta-band { grid-template-columns: 1fr; padding: 32px 24px; } }

.page-head { background: var(--bg); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.page-head h1 { font-size: clamp(30px, 3.6vw, 44px); margin: 10px 0 12px; max-width: 22ch; }
.page-head p.lede { font-size: 17px; color: var(--muted); max-width: 62ch; margin: 0; }

.prose { max-width: 760px; font-size: 16px; }
.prose h2 { font-size: 22px; margin: 34px 0 10px; }
.prose ul { padding-left: 20px; } .prose li { margin-bottom: 6px; }
.notice-review { background: var(--warn-soft); color: #7A4F06; border: 1px solid #F2D9A6; border-radius: var(--radius); padding: 10px 14px; font-size: 13.5px; margin-bottom: 24px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 991px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { flex: none; color: var(--teal); margin-top: 3px; }

.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; align-items: stretch; }
.price-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px; background: #fff; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal) inset; }
.price-card h3 { font-size: 18px; margin: 6px 0 10px; }
.price-card .price { font-size: 24px; font-weight: 700; color: var(--navy); margin: 12px 0 2px; }
.price-card ul { padding-left: 18px; font-size: 14px; color: var(--ink); margin: 14px 0 20px; } .price-card li { margin-bottom: 6px; }
.price-card .btn { margin-top: auto; }
@media (max-width: 1100px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .price-grid { grid-template-columns: 1fr; } }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 20px; line-height: 1; color: var(--teal-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.card-s { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: 24px; }
.site-footer { background: var(--navy); color: #93A8BE; padding: 56px 0 28px; font-size: 14px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #C9D6E3; } .site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 1030; background: #25D366; color: #fff; border-radius: 999px; padding: 8px 18px 8px 8px; font-weight: 600; font-size: 14.5px; line-height: 1.15;
  box-shadow: 0 10px 24px -6px rgba(16,36,58,.35), 0 2px 6px rgba(0,0,0,.12); display: inline-flex; gap: 10px; align-items: center; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.wa-float:hover, .wa-float:focus-visible { color: #fff; text-decoration: none; background: #1EBE5A; transform: translateY(-2px); box-shadow: 0 14px 28px -6px rgba(16,36,58,.4), 0 2px 6px rgba(0,0,0,.12); }
.wa-float .wa-ic { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; }
.wa-float .wa-txt { display: flex; flex-direction: column; }
.wa-float .wa-txt small { font-size: 11.5px; font-weight: 500; opacity: .92; }
@media (max-width: 575px) { .wa-float { padding: 8px; right: 14px; bottom: 14px; } .wa-float .wa-ic { width: 44px; height: 44px; } .wa-float .wa-txt { display: none; } }
.btn-whatsapp { background: #25D366; border-color: #25D366; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-whatsapp:hover, .btn-whatsapp:focus { background: #1EBE5A; border-color: #1EBE5A; color: #fff; }

.auth-wrap { min-height: calc(100vh - 69px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--navy); color: #A9BACB; padding: 64px 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { color: #fff; font-size: 30px; max-width: 16ch; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ================================================================ APP SHELL */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.sidebar { background: var(--navy); color: #A9BACB; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .wordmark { margin: 2px 4px 20px; align-self: flex-start; }
.sidebar .wordmark.on-dark img { height: 34px; }
.sidebar .side-brand { margin: -12px 6px 16px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #93A8BE; }
.side-nav { display: grid; gap: 2px; }
.side-nav .grp { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #6D839A; margin: 18px 10px 6px; font-weight: 600; }
.side-nav a { display: flex; align-items: center; gap: 10px; color: #C9D6E3; font-size: 14px; padding: 8px 10px; border-radius: 6px; font-weight: 500; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.side-nav a.active { background: rgba(47,111,168,.16); color: #fff; box-shadow: inset 2px 0 0 var(--teal); }
.side-nav a svg { flex: none; opacity: .85; }
.side-foot { margin-top: auto; padding: 14px 10px 4px; font-size: 12px; color: #6D839A; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.topbar .title { font-weight: 600; color: var(--navy); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.bell { position: relative; color: var(--navy); display: inline-flex; padding: 6px; border-radius: 6px; }
.bell:hover { background: var(--bg); }
.bell .count { position: absolute; top: 0; right: -2px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 5px; }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-ink); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.app-main { padding: 26px 28px 60px; min-width: 0; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 8px; color: var(--navy); }
@media (max-width: 991px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; z-index: 1040; transform: translateX(-100%); transition: transform .2s; }
  .app.nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(16,36,58,.35); }
  .menu-btn { display: inline-flex; }
  .app-main { padding: 18px 16px 48px; } .topbar { padding: 12px 16px; }
  .user-chip .name { display: none; }
}

.page-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.page-title h1 { font-size: 24px; margin: 4px 0 0; }
.page-title .meta { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 20px; min-width: 0; }
.panel-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.panel-h h2, .panel-h h3 { font-size: 15.5px; margin: 0; letter-spacing: -0.005em; }
.panel-b { padding: 18px 20px; }
.panel-b.flush { padding: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 15px 16px; min-width: 0; }
.stat .k { font-size: 12.5px; color: var(--muted); }
.stat .v { font-size: 24px; font-weight: 650; color: var(--navy); font-variant-numeric: tabular-nums; margin-top: 2px; line-height: 1.2; }
.stat .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat a { color: inherit; } .stat a:hover { text-decoration: none; }
.stat.accent { border-left: 3px solid var(--teal); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 1199px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 991px) { .grid-2, .grid-3, .grid-main { grid-template-columns: minmax(0, 1fr); } }

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FBFCFE; white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: #FBFCFE; }
.tbl .num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .code { font-size: 12px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.tbl .total td { font-weight: 650; background: #F7F9FC; }
.tbl td.flag-mismatch { background: var(--bad-soft) !important; color: var(--bad); font-weight: 600; }
.tbl td.flag-missing { background: var(--warn-soft) !important; color: var(--warn); }
.empty { text-align: center; color: var(--muted); padding: 36px 20px; font-size: 14px; }
.empty svg { color: var(--muted-2); margin-bottom: 8px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: thin; }
.tabs a { padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tabs a:hover { color: var(--navy); text-decoration: none; }
.tabs a.active { color: var(--navy); border-bottom-color: var(--teal); }
.tabs .n { font-size: 11px; background: #EDF1F6; color: #475569; border-radius: 999px; padding: 0 6px; }

.stepper { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.stepper li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); padding: 6px 10px; border-radius: 999px; background: #F1F4F8; }
.stepper li.done { color: var(--good); background: var(--good-soft); }
.stepper li.current { color: #fff; background: var(--navy); font-weight: 600; }
.progress-s { height: 8px; background: #E9EEF4; border-radius: 999px; overflow: hidden; }
.progress-s > i { display: block; height: 100%; background: var(--teal); border-radius: 999px; }

.dropzone { border: 1.5px dashed var(--line-2); border-radius: var(--radius-lg); padding: 34px 20px; text-align: center; background: #FBFCFE; transition: border-color .15s, background .15s; cursor: pointer; }
.dropzone.drag { border-color: var(--teal); background: var(--teal-soft); }
.dropzone h3 { font-size: 16px; margin: 10px 0 4px; }
.upload-queue { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.upload-queue li { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font-size: 13.5px; background: #fff; }
.upload-queue .row1 { display: flex; justify-content: space-between; gap: 10px; }
.upload-queue .bar { height: 4px; background: #E9EEF4; border-radius: 9px; margin-top: 8px; overflow: hidden; } .upload-queue .bar i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .2s; }

.finding { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 14px; background: #fff; }
.finding h3 { font-size: 16px; margin: 6px 0 8px; }
.finding .ev { font-size: 13px; color: var(--muted); }
.hyp { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.hyp li { font-size: 14px; padding-left: 14px; position: relative; } .hyp li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.conf { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: 4px; margin-left: 4px; }
.conf-high { background: var(--good-soft); color: var(--good); } .conf-medium { background: #EAF2FA; color: var(--blue); } .conf-low { background: #EDF1F6; color: #475569; }
.matrix { position: relative; aspect-ratio: 1; max-width: 360px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; background: #fff; }
.matrix > div { border: 1px solid var(--line); padding: 8px; font-size: 11px; font-weight: 600; color: var(--muted); }
.matrix > div.q1 { background: var(--teal-soft); color: var(--teal-ink); }
.matrix .dot { position: absolute; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; transform: translate(-50%, -50%); }
.kv { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 8px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 500; } .kv dd { margin: 0; overflow-wrap: anywhere; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.filter-bar .form-control, .filter-bar .form-select { width: auto; min-width: 160px; padding: 6px 10px; font-size: 13px; }
.integration { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.integration:last-child { border-bottom: 0; }
.note-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.note-list li { font-size: 14px; border-left: 2px solid var(--line-2); padding-left: 12px; }
details.editor > summary { cursor: pointer; font-weight: 600; color: var(--teal-ink); font-size: 13.5px; }
details.editor[open] > summary { margin-bottom: 12px; }
.json-area { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.invoice { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; }
@media print {
  .sidebar, .topbar, .no-print, .demo-ribbon, .wa-float { display: none !important; }
  .app { display: block; background: #fff; } .app-main { padding: 0; } .invoice { border: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.integration .badge-s { white-space: normal; text-align: right; max-width: 60%; }
.kv dd, .kv dt { min-width: 0; }
@media (max-width: 575px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } .kv dd { margin-bottom: 8px; } .tabs a { padding: 10px 10px; } }
.hero h1 { max-width: 16ch; }
.container-xl { padding-left: 16px; padding-right: 16px; }

/* ---------------------------------------------------------------- CostCubes 2.0: functional intelligence, scorecard, exceptions */
.text-good { color: var(--good) !important; } .text-warn { color: var(--warn) !important; } .text-bad { color: var(--bad) !important; }
.tbl tr.grp-row td { background: var(--bg); font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 8px; padding-bottom: 8px; }
.tbl-compact td, .tbl-compact th { padding-top: 7px; padding-bottom: 7px; }
.tbl-form td { vertical-align: top; } .tbl-form .form-control { min-width: 70px; }
.stat-grid-7 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.profile-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.profile-strip > div { background: #fff; padding: 11px 14px; display: flex; flex-direction: column; min-width: 0; }
.profile-strip .k { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.profile-strip .v { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.profile-strip .s { font-size: 12px; color: var(--muted); }
.persp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.persp { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 13px 15px; background: #fff; min-width: 0; }
.persp.total { background: var(--navy); border-color: var(--navy); }
.persp.total .k, .persp.total .s { color: rgba(255,255,255,.75); } .persp.total .v { color: #fff; }
.persp .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.persp .v { font-size: 26px; font-weight: 650; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.2; margin: 2px 0; }
.persp .s { font-size: 12px; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: 0; }
.dot-green { background: var(--good); } .dot-amber { background: var(--warn); } .dot-red { background: var(--bad); }
.fn-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 1500px) { .fn-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; } }
@media (max-width: 1100px) { .fn-grid { grid-template-columns: 1fr; } }
.ex-list { list-style: none; padding: 0; margin: 0; } .ex-list li { padding: 5px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.ex-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.ex-facts > div { background: var(--bg); border-radius: var(--radius); padding: 9px 11px; display: flex; flex-direction: column; min-width: 0; }
.ex-facts .k { font-size: 11.5px; color: var(--muted); font-weight: 600; } .ex-facts .v { font-weight: 650; color: var(--navy); } .ex-facts .s { font-size: 11.5px; color: var(--muted); }
.stepper li.blocked { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); font-weight: 600; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filter-bar .form-select, .filter-bar .form-control { width: auto; min-width: 150px; max-width: 100%; }
@media (max-width: 600px) { .filter-bar .form-select, .filter-bar .form-control { flex: 1 1 100%; } }
.fn-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.fn-tile { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; background: #fff; }
.fn-tile h3 { font-size: 15.5px; margin: 8px 0 6px; } .fn-tile p { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; }
.fn-tile .code { font-size: 11.5px; }
.flow { counter-reset: flow; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; list-style: none; padding: 0; }
.flow li { counter-increment: flow; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 16px 14px; background: #fff; position: relative; }
.flow li::before { content: counter(flow, decimal-leading-zero); font-size: 12px; font-weight: 700; color: var(--teal-ink); letter-spacing: .08em; display: block; margin-bottom: 6px; }
.flow li strong { display: block; color: var(--navy); margin-bottom: 4px; } .flow li span { font-size: 13.5px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-note { border-left: 3px solid var(--warn); background: var(--warn-soft); padding: 10px 14px; border-radius: var(--radius); font-size: 13.5px; }
.tbl-bsc th:first-child, .tbl-bsc td:first-child { min-width: 260px; }
.tbl-bsc td:last-child { min-width: 200px; }
.tbl-bsc td:first-child .small-muted { display: block; max-width: 360px; }

.nav-count { margin-left: auto; background: var(--warn, #B7791F); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; line-height: 1.5; }
.tpl-group { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; background: #fff; }
.tpl-group > summary { padding: 9px 12px; cursor: pointer; }
.tpl-group[open] > summary { border-bottom: 1px solid var(--line); }
.tpl-group .tbl td { vertical-align: middle; }

.visually-hidden-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dropzone-form { display: block; cursor: pointer; text-align: center; }
.dropzone-form .h3 { font-size: 15px; font-weight: 600; color: var(--navy); margin: 6px 0 2px; }
.dropzone-form.has-files { border-color: var(--teal); background: var(--teal-soft); }
.dropzone-form .dz-names { display: block; margin-top: 6px; color: var(--navy); word-break: break-word; }
.doc-table td { vertical-align: top; }
.doc-removed td { opacity: .55; }
.doc-extract pre { white-space: pre-wrap; max-height: 220px; overflow: auto; font-size: 11.5px; background: var(--bg); padding: 8px; border-radius: 4px; margin: 6px 0 0; }
.rec-note { border-left: 3px solid var(--teal); background: var(--teal-soft); padding: 10px 12px; border-radius: 4px; }
.progress-bar { height: 8px; background: #E6ECF2; border-radius: 999px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: var(--blue, #1F4E78); border-radius: 999px; }
.asm-card .panel-h h2 a { color: var(--navy); }
.asm-kv { grid-template-columns: 190px minmax(0,1fr); }
/* ---- simplified portal (2.1) ---- */
.side-group { margin-top: 14px; }
.side-group > summary { list-style: none; cursor: pointer; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #6D839A; padding: 6px 10px; font-weight: 600; display: flex; justify-content: space-between; }
.side-group > summary::-webkit-details-marker { display: none; }
.side-group > summary::after { content: '+'; font-size: 13px; letter-spacing: 0; }
.side-group[open] > summary::after { content: '–'; }
.side-nav > a { font-size: 14.5px; padding: 10px 10px; }
.hello { margin-bottom: 22px; }
.hello h1 { font-size: 28px; margin: 2px 0 4px; }
.hello .meta { color: var(--muted); font-size: 15px; }
.next-card { border: 1px solid var(--line); border-left: 4px solid var(--blue, #1F4E78); background: #fff; border-radius: 10px; padding: 22px 24px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.next-card.warn { border-left-color: var(--warn); }
.next-card.good { border-left-color: var(--good); }
.next-card .lbl { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.next-card h2 { font-size: 21px; margin: 4px 0 6px; }
.next-card p { margin: 0; color: var(--ink); max-width: 640px; }
.btn-lg-x { padding: 12px 22px; font-size: 15.5px; font-weight: 600; border-radius: 8px; }
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: s; }
.steps4 li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.steps4 li .n { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #EEF2F6; color: var(--muted); font-weight: 700; font-size: 13px; flex: none; }
.steps4 li.done { color: var(--good); } .steps4 li.done .n { background: var(--good-soft); color: var(--good); }
.steps4 li.current { color: var(--navy); font-weight: 600; border-color: var(--blue, #1F4E78); } .steps4 li.current .n { background: var(--navy); color: #fff; }
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.scard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.scard .k { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.scard .v { font-size: 18px; font-weight: 600; color: var(--navy); margin: 6px 0 4px; }
.scard .s { font-size: 13.5px; color: var(--muted); }
.kcards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; text-decoration: none !important; display: block; }
.kcard:hover { border-color: var(--blue, #1F4E78); }
.kcard .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.kcard .v { font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1.2; margin-top: 4px; }
.kcard.on { border-color: var(--blue, #1F4E78); box-shadow: inset 0 -3px 0 var(--blue, #1F4E78); }
.simple-list { list-style: none; margin: 0; padding: 0; }
.simple-list li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.simple-list li:first-child { border-top: 0; }
.simple-list .ic { width: 38px; height: 38px; border-radius: 8px; background: #EEF3F8; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; flex: none; }
.simple-list .main { flex: 1; min-width: 0; }
.simple-list .main strong { display: block; overflow-wrap: anywhere; }
.simple-list .meta { font-size: 13px; color: var(--muted); }
.upload-cta { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 16px; border: 2px dashed var(--line-2); border-radius: 12px; background: #FBFCFE; text-align: center; cursor: pointer; }
.upload-cta.drag, .upload-cta.has-files { border-color: var(--blue, #1F4E78); background: var(--teal-soft); }
.upload-cta .btn { pointer-events: none; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; vertical-align: -3px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; } .faq details:first-child { border-top: 0; }
.faq summary { font-weight: 600; cursor: pointer; color: var(--navy); }
.faq p { margin: 8px 0 0; color: var(--ink); }
.adv { border: 1px solid var(--line); border-radius: 8px; padding: 0; margin-top: 14px; }
.adv > summary { padding: 12px 16px; cursor: pointer; font-weight: 600; color: var(--navy); }
.adv[open] > summary { border-bottom: 1px solid var(--line); }
.adv > .adv-b { padding: 16px; }
.step-panel .panel-h h2 .no { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; align-items: center; justify-content: center; margin-right: 8px; }
.step-panel.done .panel-h h2 .no { background: var(--good); }
@media (max-width: 991px) { .kcards { grid-template-columns: repeat(2, minmax(0,1fr)); } .steps4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 575px) { .cards2 { grid-template-columns: minmax(0,1fr); } .next-card { padding: 18px; } .hello h1 { font-size: 23px; } .steps4 li { font-size: 13px; padding: 10px; } }
/* ---- SOP workspace (2.2) ---- */
.phase-bar { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0 0 16px; }
.phase-bar li { flex: 1 1 90px; text-align: center; font-size: 12.5px; padding: 7px 6px; border-radius: 6px; background: #EEF2F6; color: var(--muted); font-weight: 600; }
.phase-bar li.done { background: var(--good-soft); color: var(--good); }
.phase-bar li.current { background: var(--navy); color: #fff; }
.next-card.neutral { border-left-color: var(--line-2); }
.act-row form { margin: 0; }
details.act { position: relative; }
details.act > summary { list-style: none; }
details.act > summary::-webkit-details-marker { display: none; }
details.act[open] > summary { background: var(--teal-soft); }
.act-b { position: absolute; right: 0; z-index: 20; margin-top: 6px; width: min(360px, 86vw); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(16,36,58,.14); padding: 14px; }
@media (max-width: 575px) { .act-b { position: static; width: 100%; box-shadow: none; } .phase-bar li { flex-basis: 70px; font-size: 11.5px; } }
.help-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--navy); font-weight: 600; padding: 6px 10px; border-radius: 6px; }
.help-link:hover { background: var(--bg); text-decoration: none; }

/* ---------------------------------------------------------------- CostCubes Resources library */
.res-toolbar { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.res-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.res-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--navy); font-size: 13.5px; font-weight: 500; background: #fff; transition: border-color .15s, background .15s; }
.res-chip .n { font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 0 7px; line-height: 18px; }
.res-chip:hover { border-color: var(--navy); text-decoration: none; }
.res-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.res-chip.active .n { background: rgba(255,255,255,.16); color: #fff; }
.res-search { position: relative; display: flex; gap: 8px; flex: 1 1 280px; max-width: 420px; }
.res-search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; display: inline-flex; }
.res-search .form-control { padding-left: 36px; }
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.res-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 22px 20px; box-shadow: 0 1px 2px rgba(16,36,58,.04), 0 8px 24px -18px rgba(16,36,58,.25); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; min-width: 0; }
.res-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 2px 4px rgba(16,36,58,.05), 0 22px 40px -22px rgba(16,36,58,.38); }
.res-card[hidden] { display: none; }
.res-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.res-icon { display: inline-flex; line-height: 0; }
.res-pptx { color: #C4502B; } .res-xlsx { color: #1E7B45; } .res-pdf { color: #C53B3B; } .res-docx { color: #2B5797; }
.res-cat { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); background: var(--teal-soft); border-radius: 4px; padding: 4px 8px; text-align: right; }
.res-title { font-size: 17.5px; line-height: 1.3; margin: 0 0 8px; color: var(--navy); }
.res-desc { color: var(--muted); font-size: 14px; margin: 0 0 18px; flex: 1 1 auto; }
.res-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.res-meta { display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); line-height: 1.35; min-width: 0; }
.res-meta strong { color: var(--ink); font-weight: 600; font-size: 13px; }
.res-foot .btn { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.res-empty { text-align: center; padding: 48px 16px; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); color: var(--muted); }
.res-empty[hidden] { display: none; }
.res-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding: 22px 24px; background: var(--bg); border-radius: var(--radius-lg); }
@media (max-width: 1100px) { .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .res-grid { grid-template-columns: 1fr; } .res-search { max-width: none; } .res-toolbar { align-items: stretch; } }

/* Page sub-links and Resources "more" strip */
.sub-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; font-weight: 600; }
.sub-links a { color: var(--teal-ink); }
.res-more { margin-top: 44px; }
.res-more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.res-more-grid a { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); background: #fff; transition: border-color .15s, transform .15s; }
.res-more-grid a:hover { border-color: var(--teal); transform: translateY(-2px); text-decoration: none; }
.res-more-grid svg { color: var(--teal-ink); flex-shrink: 0; margin-top: 2px; }
.res-more-grid strong { display: block; color: var(--navy); font-size: 14.5px; }
.res-more-grid small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
@media (max-width: 991px) { .res-more-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .res-more-grid { grid-template-columns: 1fr; } }

