/* Trueline digital identity, derived from docs/BrandIdentityShowcase.png. */
@font-face {
  font-family: Montserrat;
  src: local("Montserrat"), url("/assets/fonts/Montserrat.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --navy: #546371;
  --warm-white: #ece8de;
  --sage: #a8b8a8;
  --copper: #815924;
  --charcoal: #3b4644;
  --ink: #293c49;
  --muted: #59666c;
  --line: #dcded9;
  --paper: #f7f6f2;
  --white: #fff;
  --soft: #efeee8;
  --accent: var(--copper);
  --shadow: 0 18px 55px #293c4914;
  font-family: Montserrat, "Avenir Next", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.7; }
a { color: var(--copper); text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--copper); }
button { cursor: pointer; border: 0; }
button:disabled { opacity: .55; cursor: wait; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(27px, 2.5vw, 37px); line-height: 1.2; letter-spacing: -1.2px; font-weight: 600; margin-bottom: 13px; }
h2 { font-size: 20px; line-height: 1.4; letter-spacing: -.45px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 600; color: var(--copper); margin-bottom: 15px; }
.icon { display: inline-block; width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.brand-lockup { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; width: max-content; max-width: 100%; }
.brand-symbol { width: 38px; height: 73px; flex-shrink: 0; }
.brand-type { display: flex; flex-direction: column; }
.brand-name { font-weight: 650; font-size: 32px; letter-spacing: -1.7px; line-height: 1.15; }
.brand-rule { width: 35px; height: 2px; margin: 5px 0 7px; background: var(--copper); }
.brand-tagline { font-size: 10px; letter-spacing: .65px; white-space: nowrap; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 258px; background: #fdfcf9; border-right: 1px solid var(--line); padding: 30px 22px 25px; display: flex; flex-direction: column; z-index: 5; overflow-y: auto; }
.workspace-label { font-size: 9px; font-weight: 600; letter-spacing: 1.8px; margin: 30px 10px 26px; color: var(--navy); }
.workspace-label::before { content: ""; display: block; width: 28px; height: 2px; background: var(--copper); margin-bottom: 16px; }
.workspace-label span { display: block; font-size: 11px; letter-spacing: 0; color: var(--muted); font-weight: 400; margin-top: 6px; }
.sidebar nav { display: flex; flex-direction: column; gap: 5px; }
.sidebar nav a { display: flex; gap: 12px; align-items: center; padding: 11px 12px; color: var(--navy); text-decoration: none; border-radius: 3px; font-size: 12px; border-left: 2px solid transparent; }
.sidebar nav a .icon { width: 19px; height: 19px; }
.sidebar nav a.active { background: var(--charcoal); color: white; border-left-color: #c49a64; }
.sidebar nav a:not(.active):hover { background: var(--warm-white); color: var(--ink); }
.sidebar nav a[hidden] { display: none; }
.nav-label { font-size: 9px; letter-spacing: 1.6px; color: var(--muted); margin: 23px 14px 8px; }
.sidebar-footer { margin-top: auto; font-size: 9px; letter-spacing: 1px; color: var(--navy); padding: 30px 12px 0; }
.sidebar-footer p { font-size: 10px; letter-spacing: 0; margin: 8px 0; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #637760; display: inline-block; margin-right: 6px; }
.text-button { background: none; color: var(--copper); padding: 5px 0; text-align: left; }
.main-shell { margin-left: 258px; }
.topbar { min-height: 76px; border-bottom: 1px solid var(--line); padding: 18px 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 11px; color: var(--muted); background: #fdfcf9; }
.topbar > div { display: flex; align-items: center; gap: 15px; min-width: 0; }
.dev-tag { font-size: 9px; letter-spacing: 1px; padding: 3px 7px; border: 1px solid #c5c9c5; border-radius: 2px; }
.page-footer { display: flex; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); margin: 0 42px; padding: 24px 0; font-size: 9px; letter-spacing: 1.5px; color: var(--muted); }
.page-footer strong { font-weight: 600; }
.page-footer span { font-size: 10px; letter-spacing: 0; }
.page-footer strong span { margin-left: 12px; font-weight: 400; }
main#content { max-width: 1530px; min-height: calc(100vh - 154px); margin: auto; padding: 40px 42px 60px; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 30px; }
.page-heading p { margin: 0; color: var(--muted); max-width: 680px; font-size: 13px; }
.page-heading .eyebrow { color: var(--copper); font-size: 10px; margin-bottom: 13px; }
.heading-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.primary, .secondary, .danger { border-radius: 3px; padding: 11px 17px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 16px; text-decoration: none; min-height: 43px; }
.primary { background: var(--copper); color: white; border: 1px solid var(--copper); }
.primary:hover { background: #69461b; border-color: #69461b; }
.secondary { background: var(--white); color: var(--ink); border: 1px solid #c8cdc9; }
.secondary:hover { background: var(--warm-white); border-color: var(--sage); }
.danger { color: #963e35; border: 1px solid #d6b5ae; background: white; }
.primary span { font-size: 16px; }
.hero { border-radius: 3px; background: var(--charcoal); color: white; padding: 32px 35px; display: flex; justify-content: space-between; align-items: center; gap: 30px; position: relative; overflow: hidden; margin-bottom: 0; border-top: 3px solid var(--copper); }
.hero h2 { font-size: 26px; color: var(--warm-white); letter-spacing: -.7px; margin-bottom: 10px; max-width: 600px; }
.hero p { font-size: 12px; color: #e0e5df; max-width: 650px; margin: 0; }
.hero .eyebrow { color: #d6bb96; font-size: 9px; margin-bottom: 12px; }
.hero-mark { width: 61px; height: 118px; flex-shrink: 0; margin: 0 18px; }
.hero-mark img { width: 100%; height: 100%; }
.expertise-strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.expertise-strip > span { display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 500; }
.expertise-strip .icon { width: 24px; height: 24px; }
.expertise-strip.workspace-expertise { padding: 21px 28px; margin-bottom: 25px; background: var(--warm-white); border: 1px solid #e0dbd0; border-top: 0; }
.workspace-expertise > span { padding-left: 20px; border-left: 1px solid #c9cbc2; }
.workspace-expertise > span:first-child { border-left: 0; padding-left: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin: 24px 0; }
.stat { border: 1px solid var(--line); background: white; border-radius: 3px; padding: 23px; border-top: 2px solid var(--sage); min-width: 0; }
.stat-label { font-size: 11px; color: var(--muted); margin-bottom: 15px; }
.stat-value { font-size: 34px; letter-spacing: -1px; line-height: 1.25; font-weight: 500; overflow-wrap: anywhere; }
.stat-foot { font-size: 10px; color: var(--muted); margin-top: 13px; }
.grid-two { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; margin: 22px 0; }
.panel { padding: 26px; background: white; border: 1px solid var(--line); border-radius: 3px; margin-bottom: 20px; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 22px; }
.panel-heading h2 { margin: 0; }
.panel-heading a { font-size: 11px; }
.panel p:last-child { margin-bottom: 0; }
.notice { padding: 15px 18px; border: 1px solid #d5ddd3; border-left: 3px solid var(--sage); background: #f0f3ee; border-radius: 2px; font-size: 12px; margin-bottom: 20px; }
.notice.warning { background: #f7f1e8; border-color: #deceb5; border-left-color: var(--copper); }
.notice.error { background: #faf0ed; border-color: #dfbbb4; color: #89382f; }
.empty { padding: 44px 25px; text-align: center; background: #faf9f5; border: 1px dashed #c7cdc5; border-radius: 3px; }
.empty-icon { color: var(--navy); line-height: 1; margin-bottom: 20px; }
.empty-icon .icon { width: 35px; height: 35px; }
.empty h3 { font-size: 18px; margin-bottom: 8px; }
.empty p { max-width: 500px; margin: 0 auto 22px; color: var(--muted); font-size: 12px; }
.badge { display: inline-block; font-size: 9px; letter-spacing: .4px; border-radius: 2px; padding: 4px 7px; background: #eeefec; color: var(--charcoal); font-weight: 600; white-space: nowrap; }
.badge.APPROVED, .badge.CONFIRMED, .badge.SUCCEEDED, .badge.CAPTURED, .badge.DONE { background: #e8eee5; color: #3b543b; }
.badge.DRAFT, .badge.NEW, .badge.IN_REVIEW, .badge.READY, .badge.QUEUED { background: #e9edf0; color: #445869; }
.badge.REJECTED, .badge.DEAD, .badge.FAILED, .badge.HIGH, .badge.SUPERSEDED { background: #f4e9e3; color: #89442e; }
.badge.practice { background: #f3eadb; color: #735021; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.insight-card { border-top: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 47px minmax(0,1fr) auto; gap: 18px; align-items: start; }
.insight-card:first-child { border-top: 0; padding-top: 0; }
.insight-card:last-child { padding-bottom: 0; }
.score { width: 44px; height: 44px; border-radius: 3px; background: var(--warm-white); color: var(--copper); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 500; }
.insight-card h3 { margin: 0 0 8px; font-size: 15px; }
.insight-card h3 a { text-decoration: none; color: var(--ink); }
.insight-card h3 a:hover { text-decoration: underline; }
.insight-card p { font-size: 12px; color: var(--muted); margin: 0; }
.insight-meta { font-size: 10px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.insight-card .arrow { font-size: 22px; text-decoration: none; color: var(--copper); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { font-size: 9px; letter-spacing: .9px; text-transform: uppercase; color: var(--navy); font-weight: 600; padding: 13px; background: #f2f1eb; border-bottom: 1px solid var(--line); }
td { padding: 18px 13px; border-bottom: 1px solid #e5e7e1; vertical-align: top; }
tr:last-child td { border-bottom: none; }
td strong { font-weight: 600; }
td p { font-size: 11px; color: var(--muted); margin: 4px 0 0; }
.table-wrap { overflow-x: auto; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row-actions button { padding: 7px 10px; min-height: 36px; font-size: 10px; }
.score-number { font-size: 20px; font-weight: 600; color: var(--copper); }
.toolbar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.toolbar label { margin: 0; flex: 1; min-width: 130px; }
.toolbar .search { flex: 2; }
label { display: block; font-size: 11px; font-weight: 600; color: var(--navy); margin-bottom: 17px; }
input, select, textarea { display: block; width: 100%; margin-top: 7px; border: 1px solid #c5cbc7; background: white; border-radius: 3px; padding: 11px 12px; color: var(--ink); font-size: 13px; min-height: 44px; }
input:focus, select:focus, textarea:focus { border-color: var(--copper); }
textarea { min-height: 110px; resize: vertical; }
input[type=checkbox] { display: inline-block; width: auto; min-height: 0; margin: 0 8px 0 0; accent-color: var(--copper); }
label.check { display: flex; align-items: center; gap: 3px; min-height: 30px; }
code { background: var(--soft); padding: 3px 6px; border-radius: 2px; font-size: 12px; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.8 Montserrat, "Segoe UI", Arial, sans-serif; color: var(--charcoal); }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; font-size: 13px; }
.split { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 24px; }
.detail-kicker { margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.detail-facts { border-left: 3px solid var(--sage); padding-left: 23px; }
.note { padding: 14px 0; border-top: 1px solid var(--line); }
.note small { color: var(--muted); font-size: 10px; }
.catalogue-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.expertise-heading { display: flex; align-items: center; gap: 14px; }
.expertise-heading .icon { box-sizing: content-box; padding: 12px; width: 28px; height: 28px; border: 1px solid var(--sage); border-radius: 50%; color: var(--navy); }
.capability-list { padding-left: 18px; color: var(--navy); font-size: 12px; line-height: 2; }
.scenario-card { border-top: 1px solid var(--line); padding: 15px 0; }
.scenario-card h3 { margin: 0 0 6px; }
.scenario-card p { font-size: 12px; color: var(--muted); }
.chart { width: 100%; height: 170px; display: block; }
.chart rect { fill: var(--sage); }
.chart rect:last-of-type { fill: var(--copper); }
.chart text { font-size: 10px; fill: var(--navy); }
.chart line { stroke: var(--line); }
.legend-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.legend-row:last-child { border: 0; }
.solution-dot { width: 8px; height: 8px; border-radius: 1px; display: inline-block; background: var(--navy); margin-right: 9px; }
.solution-dot.learn { background: var(--sage); }
.solution-dot.thrive { background: var(--copper); }
.timeline { padding-left: 20px; border-left: 1px solid var(--sage); margin: 20px 0; }
.timeline li { padding: 0 0 20px 8px; list-style: none; }
.timeline a { font-size: 12px; }
.timeline small { display: block; color: var(--muted); font-size: 10px; }
.auth-body { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.auth-card { max-width: 495px; width: 100%; align-self: center; justify-self: center; padding: 55px 35px; }
.auth-card .brand-lockup { margin-bottom: 58px; }
.auth-card .brand-symbol { width: 46px; height: 89px; }
.auth-card .brand-name { font-size: 40px; }
.auth-card .brand-tagline { font-size: 12px; }
.auth-card h1 { font-size: 37px; }
.auth-card form { margin-top: 32px; }
.auth-card .primary { width: 100%; justify-content: space-between; }
.auth-card .small { margin-top: 25px; line-height: 1.8; }
.auth-aside { background: var(--charcoal); min-height: 100vh; padding: 60px clamp(30px, 5vw, 80px); display: flex; flex-direction: column; justify-content: flex-end; color: var(--warm-white); overflow: hidden; position: relative; border-top: 6px solid var(--copper); }
.auth-plumb { position: absolute; right: 14%; top: 5%; width: min(32%,180px); height: 40%; opacity: .8; }
.auth-message { position: relative; margin-top: 280px; }
.auth-message .eyebrow { color: #d6bb96; font-size: 9px; }
.auth-message h2 { font-size: clamp(36px, 4vw, 58px); letter-spacing: -2px; line-height: 1.15; margin-bottom: 18px; font-weight: 500; }
.auth-message > p:not(.eyebrow) { font-size: 17px; }
.copper-rule { display: block; width: 45px; height: 3px; background: #bb935e; margin: 30px 0 48px; }
.auth-aside .expertise-strip { gap: 18px; }
.auth-aside .expertise-strip > span { flex-direction: column; align-items: flex-start; gap: 12px; font-size: 8px; letter-spacing: 1.5px; }
.auth-aside .expertise-strip .icon { color: #cfdbcf; }
.invite-body { display: flex; justify-content: center; border-top: 5px solid var(--copper); background: linear-gradient(120deg, var(--warm-white), var(--paper)); }
.invite-body .auth-card { margin: 40px 20px; padding: 45px; background: #fffdf9; border: 1px solid var(--line); }
.mfa-card { max-width: 650px; margin: 35px auto; padding: 35px; border-top: 3px solid var(--copper); }
.mfa-secret { font-size: 19px; letter-spacing: 2px; display: block; padding: 20px; background: var(--warm-white); overflow-wrap: anywhere; }
.loading { padding: 65px; color: var(--muted); }
dialog { max-width: 700px; width: calc(100% - 40px); border: 1px solid var(--line); border-top: 3px solid var(--copper); border-radius: 3px; padding: 30px; box-shadow: var(--shadow); max-height: 90vh; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #293c496b; }
.close-dialog { margin-top: 20px; }
#toast { position: fixed; right: 25px; bottom: 25px; z-index: 50; max-width: min(450px, calc(100vw - 40px)); border-radius: 3px; padding: 0; box-shadow: var(--shadow); background: var(--charcoal); color: white; font-size: 12px; }
#toast:not(:empty) { padding: 15px 22px; border-left: 3px solid #c49a64; }
.skip { position: fixed; top: -80px; left: 10px; background: white; padding: 10px; z-index: 99; }
.skip:focus { top: 10px; }
.matrix td { text-align: center; }
.matrix td:first-child { text-align: left; min-width: 180px; }
.matrix .filled { color: var(--copper); font-weight: 700; }
.inline-form { display: flex; gap: 8px; align-items: end; }
.inline-form label { flex: 1; }
.nowrap { white-space: nowrap; }
.metrics-list { padding: 0; list-style: none; }
.metrics-list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.mono { font-family: monospace; font-size: 11px; overflow-wrap: anywhere; }
@media (min-width: 1500px) {
  .main-shell { margin-left: 275px; }
  .sidebar { width: 275px; padding-left: 30px; padding-right: 30px; }
  main#content { padding-left: 55px; padding-right: 55px; }
}
@media (max-width: 1150px) {
  .sidebar { width: 228px; padding: 28px 15px; }
  .main-shell { margin-left: 228px; }
  .brand-name { font-size: 29px; }
  .brand-symbol { width: 32px; height: 62px; }
  main#content { padding: 30px 27px; }
  .topbar { padding: 18px 27px; }
  .grid-two { grid-template-columns: 1fr; }
  .stats { gap: 10px; }
  .stat { padding: 17px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .split { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .page-footer { margin: 0 27px; }
  .catalogue-grid { gap: 14px; }
  .workspace-expertise > span { padding-left: 12px; gap: 7px; font-size: 9px; }
  .expertise-strip.workspace-expertise { padding: 20px; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: 100%; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
  .sidebar .brand-symbol { width: 28px; height: 54px; }
  .sidebar .brand-name { font-size: 28px; }
  .sidebar .brand-tagline { font-size: 9px; }
  .workspace-label, .nav-label { display: none; }
  .sidebar nav { margin-top: 18px; flex-direction: row; overflow-x: auto; gap: 5px; padding-bottom: 8px; }
  .sidebar nav a { white-space: nowrap; font-size: 11px; padding: 9px 10px; }
  .sidebar nav a .icon { width: 16px; height: 16px; }
  .sidebar-footer { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 6px 0 0; font-size: 8px; }
  .sidebar-footer p { display: none; }
  .sidebar-footer form { margin-left: auto; }
  .main-shell { margin: 0; }
  .topbar { min-height: 55px; font-size: 10px; padding: 14px 20px; gap: 10px; }
  .topbar #identity { max-width: 165px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar > div { gap: 8px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 29px; }
  main#content { padding: 28px 20px; }
  .hero { padding: 26px 23px; }
  .hero h2 { font-size: 22px; }
  h1 { font-size: 29px; }
  .heading-actions { flex-wrap: wrap; }
  .panel { padding: 20px; }
  .panel-heading { flex-wrap: wrap; gap: 10px; }
  .catalogue-grid { grid-template-columns: 1fr; }
  .page-footer { display: block; margin: 0 20px; }
  .page-footer > span { display: block; margin-top: 8px; }
  .auth-body { display: block; }
  .auth-card { margin: auto; padding: 45px 25px; }
  .auth-card .brand-lockup { margin-bottom: 45px; }
  .auth-card h1 { font-size: 32px; }
  .auth-aside { display: none; }
  .invite-body .auth-card { margin: 20px auto; border: 0; padding: 30px 25px; }
  .insight-card { gap: 12px; grid-template-columns: 38px minmax(0,1fr) auto; }
  .insight-card .score { width: 38px; height: 38px; font-size: 18px; }
  .toolbar { gap: 8px; }
  .toolbar label { min-width: 110px; }
  .mfa-card { padding: 25px; margin: 10px auto; }
  .expertise-strip.workspace-expertise { padding: 16px 10px; gap: 5px; }
  .workspace-expertise > span { flex-direction: column; padding: 0; gap: 7px; font-size: 8px; letter-spacing: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
