/* ==================================================================
   TITIK TALENTA — design system
   Mobile-first. All brand values live in :root below.
   ⚠️ PROVISIONAL palette sampled from the three supplied marketing banners.
      Swapping in the official brand guideline = editing this one block.
   ================================================================== */

:root {
  /* brand — sampled from the official logo & app icon */
  --navy: #0A1C48;
  --navy-deep: #061334;
  --navy-soft: #16326B;
  --navy-tint: #ECF1FA;
  --blue-bright: #1E4AD6;
  --cyan: #23E0DB;
  --cyan-deep: #12B6BE;
  --teal: #0FA3A8;
  --teal-dark: #0A7A82;
  --teal-tint: #E4F6F8;
  --yellow: #FFD23F;
  --yellow-dark: #E0AE12;
  --yellow-tint: #FFF6D9;

  /* neutrals */
  --ink: #0F1B2A;
  --ink-2: #33475E;
  --muted: #5C6C82;
  --muted-2: #93A2B3;
  --bg: #F4F7FA;
  --surface: #FFFFFF;
  --surface-2: #FAFCFD;
  --line: #E2E8EF;
  --line-2: #EDF1F6;

  /* semantics */
  --ok: #1D8A5F;
  --ok-tint: #E6F5ED;
  --warn: #B7791F;
  --warn-tint: #FDF4E3;
  --danger: #C0392B;
  --danger-tint: #FBEBE9;
  --info: #2A6FDB;
  --info-tint: #E9F1FD;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(10, 28, 72, .06), 0 1px 3px rgba(10, 28, 72, .05);
  --shadow: 0 4px 16px rgba(10, 28, 72, .08);
  --shadow-lg: 0 18px 40px rgba(10, 28, 72, .14);
  --pad: 16px;
  --gap: 16px;
  --section: 40px;
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --sidebar: 264px;
  --tabbar: 62px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

/* Grid/flex children default to min-width:auto, which lets a wide table or long word blow the
   whole layout past the viewport. Every generated app hits this — neutralise it globally. */
.tt-grid > *, .tt-grid-2 > *, .tt-grid-3 > *, .tt-grid-4 > *, .tt-grid-wide > *,
.tt-col > *, .tt-row > *, .tt-row-between > *, .tt-row-wrap > *, .tt-shell > *, .tt-content > * {
  min-width: 0;
}
.tt-row, .tt-row-between, .tt-row-wrap, .tt-card-head, .tt-btn-group { flex-wrap: wrap; }
h1, h2, h3, h4, .tt-metric-value, .tt-metric-label, .tt-metric-sub, .tt-badge, .tt-chip, .tt-small, td, th, p, dd, dt { overflow-wrap: anywhere; }

img, svg { max-width: 100%; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.22; color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.28rem; }
h3 { font-size: 1.08rem; }
h4 { font-size: .98rem; }
p { margin: 0 0 1em; }
small, .tt-small { font-size: .8rem; }
.tt-xs { font-size: .74rem; }
.tt-muted { color: var(--muted); }
.tt-ink2 { color: var(--ink-2); }
.tt-nowrap { white-space: nowrap; }
.tt-center { text-align: center; }
.tt-right { text-align: right; }
.tt-mono { font-variant-numeric: tabular-nums; }
.tt-strong { font-weight: 700; color: var(--navy); }
.tt-hide-mobile { display: none; }
.tt-only-mobile { display: block; }
.tt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tt-icon { flex: none; }

/* ---------------- layout primitives ---------------- */
.tt-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.tt-wrap-narrow { max-width: 780px; }
.tt-row { display: flex; align-items: center; gap: 10px; }
.tt-row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tt-row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tt-col { display: flex; flex-direction: column; gap: 10px; }
.tt-spacer { flex: 1 1 auto; }
.tt-stack > * + * { margin-top: 14px; }
.tt-section { margin: var(--section) 0; }
.tt-section-sm { margin: 24px 0; }
.tt-section-head { margin-bottom: 18px; }
.tt-section-head p { color: var(--muted); margin: 0; }

.tt-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.tt-grid-2 { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.tt-grid-3 { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.tt-grid-4 { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tt-grid-wide { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .tt-grid-2, .tt-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tt-hide-mobile { display: initial; }
  .tt-only-mobile { display: none; }
}
@media (min-width: 1000px) {
  .tt-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tt-grid-wide { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  body { font-size: 15.5px; }
  h1 { font-size: 1.9rem; }
}

/* Narrow phones: keep KPI cards readable two-up without letting their content overflow. */
@media (max-width: 560px) {
  .tt-card { padding: 13px; }
  .tt-card-head { margin-bottom: 10px; }
  .tt-card-ico { width: 30px; height: 30px; border-radius: 9px; }
  .tt-metric-value { font-size: 1.24rem; }
  .tt-metric-label { font-size: .7rem; letter-spacing: .03em; }
  .tt-metric-sub { font-size: .72rem; }
  .tt-page-head h1 { font-size: 1.24rem; }
  .tt-kv { gap: 8px; }
}

/* ---------------- cards ---------------- */
.tt-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--pad);
  min-width: 0;
}
.tt-card-flush { padding: 0; overflow: hidden; }
.tt-card-pad-sm { padding: 12px; }
.tt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.tt-card-head h2, .tt-card-head h3 { margin: 0; }
.tt-card-head p { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
.tt-card-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tt-card-ico {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center; background: var(--navy-tint); color: var(--navy);
}
.tt-card-ico.is-teal { background: var(--teal-tint); color: var(--teal-dark); }
.tt-card-ico.is-yellow { background: var(--yellow-tint); color: var(--warn); }
.tt-card-ico.is-danger { background: var(--danger-tint); color: var(--danger); }

.tt-metric { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tt-metric-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.tt-metric-value { font-size: 1.52rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.1; }
.tt-metric-value.is-teal { color: var(--teal-dark); }
.tt-metric-value.is-danger { color: var(--danger); }
.tt-metric-value.is-warn { color: var(--warn); }
.tt-metric-sub { font-size: .78rem; color: var(--muted); }
.tt-metric-row { display: flex; align-items: baseline; gap: 8px; }

.tt-delta { display: inline-flex; align-items: center; gap: 3px; font-size: .76rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.tt-delta.up { background: var(--ok-tint); color: var(--ok); }
.tt-delta.down { background: var(--danger-tint); color: var(--danger); }
.tt-delta.flat { background: var(--line-2); color: var(--muted); }

/* ---------------- buttons ---------------- */
.tt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer;
  background: var(--navy); color: #fff; transition: .16s ease; text-align: center;
  min-height: 42px;
}
.tt-btn:hover { color: #fff; filter: brightness(1.08); }
.tt-btn:active { transform: translateY(1px); }
.tt-btn-accent { background: var(--teal-dark); }
.tt-btn-accent:hover { color: #fff; background: #086066; filter: none; }
.tt-btn-yellow { background: var(--yellow); color: var(--navy-deep); }
.tt-btn-yellow:hover { color: var(--navy-deep); }
.tt-btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.tt-btn-ghost:hover { color: var(--navy); border-color: var(--navy); background: var(--surface-2); }
.tt-btn-soft { background: var(--navy-tint); color: var(--navy); }
.tt-btn-soft:hover { color: var(--navy); background: #E2EBF5; }
.tt-btn-danger { background: var(--danger); }
.tt-btn-sm { padding: 6px 12px; font-size: .8rem; min-height: 34px; }
.tt-btn-xs { padding: 4px 10px; font-size: .74rem; min-height: 28px; gap: 5px; }
.tt-btn-lg { padding: 14px 24px; font-size: .96rem; min-height: 50px; }
.tt-btn-block { width: 100%; }
.tt-btn[disabled], .tt-btn.is-disabled { opacity: .5; cursor: not-allowed; }
.tt-btn-icon { padding: 8px; border-radius: 10px; min-height: 38px; background: transparent; color: var(--ink-2); border-color: transparent; }
.tt-btn-icon:hover { background: var(--line-2); color: var(--navy); }
.tt-btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.tt-link { font-weight: 700; color: var(--teal-dark); display: inline-flex; align-items: center; gap: 4px; }
.tt-link:hover { color: var(--navy); }

/* ---------------- badges / chips ---------------- */
.tt-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; background: var(--line-2); color: var(--ink-2);
  white-space: nowrap; letter-spacing: .01em;
}
.tt-badge.is-ok { background: var(--ok-tint); color: var(--ok); }
.tt-badge.is-warn { background: var(--warn-tint); color: var(--warn); }
.tt-badge.is-danger { background: var(--danger-tint); color: var(--danger); }
.tt-badge.is-info { background: var(--info-tint); color: var(--info); }
.tt-badge.is-teal { background: var(--teal-tint); color: var(--teal-dark); }
.tt-badge.is-navy { background: var(--navy); color: #fff; }
.tt-badge.is-yellow { background: var(--yellow-tint); color: var(--warn); }
.tt-badge.is-muted { background: var(--line-2); color: var(--muted); }
.tt-badge-lg { padding: 5px 12px; font-size: .78rem; }
.tt-dot-badge { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

.tt-chipline { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-chip {
  padding: 4px 10px; border-radius: 8px; background: var(--surface-2);
  border: 1px solid var(--line); font-size: .76rem; color: var(--ink-2);
}
.tt-chip.is-teal { background: var(--teal-tint); border-color: #BFE7E5; color: var(--teal-dark); }

/* ---------------- avatar ---------------- */
.tt-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--navy-tint); color: var(--navy); font-weight: 800; font-size: .8rem;
  border: 1px solid var(--line);
}
.tt-avatar.is-teal { background: var(--teal-tint); color: var(--teal-dark); }
.tt-avatar.is-yellow { background: var(--yellow-tint); color: var(--warn); }
.tt-avatar-lg { width: 56px; height: 56px; font-size: 1.05rem; }
.tt-avatar-xl { width: 76px; height: 76px; font-size: 1.4rem; }
.tt-avatar-sm { width: 30px; height: 30px; font-size: .68rem; }

/* ---------------- table ---------------- */
.tt-table-wrap { overflow-x: auto; margin: 0 -4px; min-width: 0; max-width: 100%; }
.tt-table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 600px; }
.tt-table th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
  background: var(--surface-2); position: sticky; top: 0;
}
.tt-table td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tt-table tbody tr:hover { background: var(--surface-2); }
.tt-table tbody tr.is-clickable { cursor: pointer; }
.tt-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tt-table-compact td, .tt-table-compact th { padding: 6px 8px; }
.tt-table-cards { min-width: 0; }
/* Card-style rows on small screens */
@media (max-width: 699px) {
  .tt-table-cards { min-width: 0; display: block; }
  .tt-table-cards thead { display: none; }
  .tt-table-cards tbody, .tt-table-cards tr, .tt-table-cards td { display: block; width: 100%; }
  .tt-table-cards tr {
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px;
    margin-bottom: 10px; background: #fff;
  }
  .tt-table-cards td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; }
  .tt-table-cards td::before {
    content: attr(data-label); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
    color: var(--muted); font-weight: 700; flex: none;
  }
  .tt-table-cards td.is-num { text-align: right; }
}

/* ---------------- forms ---------------- */
.tt-field { display: block; margin-bottom: 14px; min-width: 0; }
.tt-label { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-bottom: 5px; }
.tt-label .tt-req { color: var(--danger); }
.tt-hint { font-size: .76rem; color: var(--muted); margin-top: 4px; }
.tt-input, .tt-select, .tt-textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .88rem; background: #fff; color: var(--ink); min-height: 42px;
}
.tt-textarea { min-height: 96px; resize: vertical; }
.tt-input:focus, .tt-select:focus, .tt-textarea:focus {
  outline: 2px solid rgba(15, 163, 160, .35); outline-offset: 1px; border-color: var(--teal);
}
.tt-input[readonly] { background: var(--surface-2); color: var(--muted); }
.tt-form-grid { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .tt-form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tt-form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tt-form-grid .tt-field-full { grid-column: 1 / -1; }
.tt-check { display: flex; align-items: flex-start; gap: 9px; font-size: .85rem; margin-bottom: 9px; cursor: pointer; }
.tt-check input { margin: 3px 0 0; width: 17px; height: 17px; accent-color: var(--teal); flex: none; }
.tt-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 6px; }
.tt-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tt-table form.tt-row, .tt-table .tt-row { flex-wrap: wrap; }
.tt-table .tt-select, .tt-table .tt-input { max-width: 100%; }
.tt-toolbar .tt-input, .tt-toolbar .tt-select { width: auto; min-width: 132px; }
.tt-searchbox { position: relative; flex: 1 1 200px; }
.tt-searchbox .tt-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.tt-searchbox .tt-input { padding-left: 38px; }

/* segmented control */
.tt-seg { display: inline-flex; background: var(--line-2); border-radius: 999px; padding: 3px; gap: 2px; overflow-x: auto; max-width: 100%; }
.tt-seg a, .tt-seg button {
  border: 0; background: transparent; font: inherit; font-size: .8rem; font-weight: 700; color: var(--muted);
  padding: 6px 13px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.tt-seg a.is-active, .tt-seg button.is-active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }

/* ---------------- banners / carousel ---------------- */
.tt-hide-print { }
@media print { .tt-hide-print { display: none; } }
.tt-carousel { position: relative; }
.tt-carousel-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 2px;
}
.tt-carousel-track::-webkit-scrollbar { display: none; }
.tt-slide {
  flex: 0 0 100%; scroll-snap-align: center; min-width: 0;
  border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.tt-slide-inner { display: flex; flex-direction: column; }
.tt-slide-body { padding: 14px; flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; }
.tt-slide-art {
  background: linear-gradient(150deg, #EAF4FA 0%, #E6F6F5 60%, #FFF6D9 100%);
  display: flex; align-items: center; justify-content: center; padding: 10px; min-height: 96px;
}
.tt-slide-art .tt-art { width: 100%; height: auto; max-width: 190px; }
.tt-slide.is-navy .tt-slide-body { background: var(--navy); color: #DBE6F2; }
.tt-slide.is-navy h3 { color: #fff; }
.tt-slide.is-navy .tt-slide-point { color: #C7D6E6; }
.tt-slide-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow); color: var(--navy-deep); font-size: .7rem; font-weight: 800;
  padding: 4px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}
.tt-slide h3 { font-size: .98rem; margin: 0; }
.tt-slide-inner { flex-direction: row; }
.tt-slide-art { width: 38%; }
.tt-slide-body { width: 62%; }
/* Mobile carousel stays compact: the portal's real content must be visible above the fold. */
@media (max-width: 700px) {
  .tt-slide { border-radius: var(--radius-sm); }
  .tt-slide-art { min-height: 72px; padding: 8px; width: 30%; }
  .tt-slide-art .tt-art { max-width: 84px; }
  .tt-slide-body { padding: 12px; width: 70%; gap: 6px; }
  .tt-slide h3 { font-size: .9rem; line-height: 1.25; }
  .tt-slide p {
    font-size: .74rem; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .tt-slide-badge { font-size: .62rem; padding: 3px 9px; }
  .tt-slide-ctas { padding-top: 2px; gap: 6px; }
  .tt-slide-ctas .tt-btn { flex: 0 1 auto; min-height: 32px; padding: 6px 11px; font-size: .76rem; }
  .tt-slide-ctas .tt-btn svg { width: 13px; height: 13px; }
  .tt-carousel-nav { margin-top: 6px; }
  .tt-carousel-nav .tt-btn-icon { min-height: 32px; padding: 6px; }
}
.tt-slide h3 em { font-style: normal; color: var(--teal); }
.tt-slide.is-navy h3 em { color: var(--yellow); }
.tt-slide p { margin: 0; font-size: .84rem; color: var(--muted); }
.tt-slide-points { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
/* Below the desktop two-column breakpoint the extra "points" row is dropped so the carousel
   stays short enough that the portal content below it is still visible without scrolling. */
@media (max-width: 899px) {
  .tt-slide-points { display: none; }
}
.tt-slide-point {
  font-size: .72rem; font-weight: 600; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px;
}
.tt-slide-ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.tt-slide-ctas .tt-btn { flex: 1 1 auto; }
.tt-carousel-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.tt-carousel-dots { display: flex; gap: 6px; }
.tt-carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0;
}
.tt-carousel-dots button.is-active { background: var(--teal); width: 22px; border-radius: 999px; }
@media (min-width: 900px) {
  .tt-slide-body { padding: 24px 26px; width: 56%; }
  .tt-slide-art { width: 44%; min-height: 210px; }
  .tt-slide-art .tt-art { max-width: 300px; }
  .tt-slide h3 { font-size: 1.3rem; }
  .tt-slide p { font-size: .84rem; }
  .tt-slide-points { display: flex; }
}

/* ---------------- logo (official mark + wordmark, one inline SVG) ---------------- */
.tt-lockup { display: inline-flex; align-items: center; text-decoration: none; min-width: 0; }
.tt-lockup-link { display: inline-flex; text-decoration: none; border-radius: 8px; }
.tt-lockup-link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.tt-logo { display: block; flex: none; }
.tt-logo-print { display: none; }
.tt-mark { flex: none; }
.tt-topbar .tt-logo { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }

/* ---------------- portal shell ---------------- */
.tt-app { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.tt-topbar {
  position: sticky; top: 0; z-index: 30; background: var(--navy); color: #fff;
  padding: 8px 0; box-shadow: var(--shadow);
}
.tt-topbar-inner { display: flex; align-items: center; gap: 10px; padding: 0 14px; max-width: 1440px; margin: 0 auto; }
.tt-topbar-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; flex: none; }

/* Global search in the top bar — a real field, not a decorative icon. */
.tt-topbar-search { display: none; position: relative; align-items: center; flex: 1 1 auto; max-width: 420px; min-width: 0; }
.tt-topbar-search .tt-icon { position: absolute; left: 11px; color: #9FB4CA; pointer-events: none; }
.tt-topbar-input {
  width: 100%; height: 34px; padding: 0 30px 0 34px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .11); color: #fff; font: inherit; font-size: .84rem;
  transition: background-color .15s ease, border-color .15s ease;
}
.tt-topbar-input::placeholder { color: #9FB4CA; }
.tt-topbar-input:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .24); }
.tt-topbar-input:focus { outline: none; background: #fff; color: var(--navy); border-color: #fff; }
.tt-topbar-input:focus + .tt-topbar-kbd { display: none; }
.tt-topbar-input:focus ~ .tt-icon, .tt-topbar-search:focus-within .tt-icon { color: var(--muted); }
.tt-topbar-kbd {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  font: inherit; font-size: .66rem; font-weight: 700; color: #9FB4CA;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 5px; padding: 0 5px; line-height: 16px;
  pointer-events: none;
}
.tt-topbar-searchbtn { display: inline-flex; }
@media (min-width: 768px) {
  .tt-topbar-search { display: flex; }
  .tt-topbar-searchbtn { display: none; }
}

/* results dropdown */
.tt-search-pop {
  position: absolute; z-index: 70; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-height: min(60vh, 460px); overflow-y: auto; padding: 6px;
}
.tt-search-pop.is-static { position: static; box-shadow: none; border: 0; padding: 0; margin-top: 4px; }
.tt-search-group {
  padding: 7px 8px 4px; font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);   /* 5.35:1 on white — muted-2 was only 2.6:1 */
}
.tt-search-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 9px;
  text-decoration: none; color: var(--ink); font-size: .85rem;
}
.tt-search-item:hover, .tt-search-item.is-active { background: var(--navy-tint); color: var(--navy); }
.tt-search-item b { display: block; font-size: .85rem; color: var(--navy); font-weight: 700; }
.tt-search-item .tt-search-sub { font-size: .74rem; color: var(--muted); display: block; margin-top: 1px; }
.tt-search-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--teal); }
.tt-search-dot[data-kind="briefcase"], .tt-search-dot[data-kind="handshake"] { background: var(--navy); }
.tt-search-dot[data-kind="headset"] { background: var(--warn); }
.tt-search-dot[data-kind="user"], .tt-search-dot[data-kind="users"] { background: var(--info); }
.tt-search-dot[data-kind="layers"] { background: var(--muted-2); }
.tt-search-empty { padding: 14px; text-align: center; font-size: .84rem; color: var(--muted); }
.tt-search-all {
  display: block; text-align: center; padding: 9px; margin-top: 4px; border-top: 1px solid var(--line-2);
  font-size: .8rem; font-weight: 700; color: var(--teal-dark); text-decoration: none;
}
.tt-search-all:hover { color: var(--navy); }
.tt-sheet-search { max-width: 520px; }
.tt-sheet-search-form { display: flex; gap: 8px; margin-bottom: 10px; }
.tt-topbar .tt-btn-icon { color: #C7D6E6; }
.tt-topbar .tt-btn-icon:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.tt-topbar-user { display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 0; color: #fff; cursor: pointer; font: inherit; }
.tt-topbar-user .tt-avatar { background: rgba(255, 255, 255, .16); color: #fff; border-color: transparent; width: 32px; height: 32px; }
.tt-topbar-user-meta { display: none; text-align: left; line-height: 1.15; }
.tt-topbar .tt-btn-icon { width: 34px; height: 34px; min-height: 34px; padding: 0; border-radius: 9px; }
.tt-topbar-user { height: 34px; }
.tt-topbar-user-meta b { font-size: .82rem; display: block; }
.tt-topbar-user-meta span { font-size: .7rem; color: #9FB4CA; }
.tt-bell-dot { position: relative; }
.tt-bell-dot::after {
  content: attr(data-count); position: absolute; top: -2px; right: -2px; min-width: 17px; height: 17px;
  border-radius: 999px; background: var(--yellow); color: var(--navy-deep); font-size: .62rem; font-weight: 800;
  display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--navy);
}
@media (min-width: 1000px) {
  .tt-topbar-user-meta { display: block; }
}

.tt-shell { flex: 1 1 auto; display: flex; max-width: 1440px; margin: 0 auto; width: 100%; padding: 0 0 76px; min-width: 0; }
.tt-sidebar {
  display: none; width: var(--sidebar); flex: none; padding: 18px 12px 30px;
  border-right: 1px solid var(--line); background: var(--surface);
}
.tt-side-group { margin-bottom: 18px; }
.tt-side-label { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-2); padding: 0 10px 6px; }
.tt-side-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  color: var(--ink-2); font-size: .86rem; font-weight: 600; margin-bottom: 2px;
}
.tt-side-link:hover { background: var(--navy-tint); color: var(--navy); }
.tt-side-link.is-active { background: var(--navy); color: #fff; position: relative; }
.tt-side-link.is-active .tt-icon { color: var(--cyan); }
.tt-side-link.is-active::before {
  content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--cyan);
}
.tt-side-badge { margin-left: auto; }
@media (min-width: 1000px) { .tt-sidebar { display: block; } }

.tt-content { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.tt-main { flex: 1 1 auto; min-width: 0; padding: 16px 14px 40px; }
@media (min-width: 1000px) { .tt-main { padding: 22px 26px 50px; } }

.tt-page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.tt-page-head h1 { margin: 0 0 4px; font-size: 1.4rem; }
.tt-page-head p { margin: 0; color: var(--muted); font-size: .86rem; }
.tt-breadcrumb { font-size: .76rem; color: var(--muted); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* mobile bottom tab bar */
.tt-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: #fff;
  border-top: 1px solid var(--line); display: flex; padding: 6px 4px 8px;
  box-shadow: 0 -4px 18px rgba(11, 37, 69, .07);
}
.tt-tabbar a {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: .66rem; font-weight: 600; color: var(--muted); text-align: center; padding: 4px 2px 2px;
  min-width: 0; border-radius: 8px; position: relative;
}
.tt-tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-tabbar a.is-active { color: var(--navy); font-weight: 800; }
.tt-tabbar a.is-active .tt-icon { color: var(--teal); }
.tt-tabbar a.is-active::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--teal);
}
@media (min-width: 1000px) { .tt-tabbar { display: none; } .tt-shell { padding-bottom: 30px; } }

/* ---------------- overlays ---------------- */
.tt-sheet-backdrop {
  position: fixed; inset: 0; background: rgba(8, 26, 51, .5); z-index: 60;
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
  opacity: 0; visibility: hidden; transition: .2s ease;
}
.tt-sheet-backdrop.is-open { opacity: 1; visibility: visible; }
.tt-sheet {
  background: #fff; border-radius: 20px 20px 0 0; width: 100%; max-width: 620px;
  max-height: 92vh; overflow-y: auto; padding: 18px 18px 24px; transform: translateY(14px); transition: .2s ease;
}
.tt-sheet-backdrop.is-open .tt-sheet { transform: translateY(0); }
.tt-sheet-wide { max-width: 940px; }
.tt-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tt-sheet-head h2 { margin: 0; font-size: 1.1rem; }
.tt-sheet-head p { margin: 3px 0 0; font-size: .82rem; color: var(--muted); }
.tt-grabber { width: 42px; height: 4px; border-radius: 999px; background: var(--line); margin: 0 auto 14px; }
@media (min-width: 700px) {
  .tt-sheet-backdrop { align-items: center; padding: 24px; }
  .tt-sheet { border-radius: var(--radius-lg); max-height: 88vh; }
  .tt-grabber { display: none; }
}

.tt-menu {
  position: absolute; z-index: 65; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 240px; padding: 6px; display: none;
}
.tt-menu.is-open { display: block; }
.tt-menu a, .tt-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: transparent;
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--ink-2); border-radius: 9px; cursor: pointer; text-align: left;
}
.tt-menu a:hover, .tt-menu button:hover { background: var(--navy-tint); color: var(--navy); }
.tt-menu-sep { height: 1px; background: var(--line); margin: 5px 0; }
.tt-menu-head { padding: 10px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.tt-user-scope { display: flex; flex-direction: column; gap: 3px; margin-top: 9px; font-size: .74rem; color: var(--ink-2); }
.tt-user-scope span { display: inline-flex; align-items: center; gap: 5px; }
.tt-user-scope .tt-icon { color: var(--muted); }
.tt-user-scope-note { color: var(--muted); font-size: .72rem; padding-top: 3px; border-top: 1px dashed var(--line); margin-top: 3px; }
.tt-menu a[data-unread] { font-weight: 700; }
.tt-menu a[data-unread]::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-left: auto; flex: none; }

.tt-toast-host { position: fixed; left: 50%; transform: translateX(-50%); bottom: 78px; z-index: 90; display: flex; flex-direction: column; gap: 8px; width: calc(100% - 32px); max-width: 420px; }
.tt-toast {
  background: var(--navy-deep); color: #fff; padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: .85rem; box-shadow: var(--shadow-lg); display: flex; gap: 9px; align-items: flex-start;
  animation: tt-in .18s ease;
}
.tt-toast.is-ok { background: #0E6B49; }
.tt-toast.is-danger { background: #96291E; }
@keyframes tt-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- kanban ---------------- */
.tt-kanban { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; align-items: flex-start; }
.tt-kanban-col { flex: 0 0 268px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.tt-kanban-col.is-over { border-color: var(--teal); background: var(--teal-tint); }
.tt-kanban-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.tt-kanban-head b { font-size: .8rem; color: var(--navy); }
.tt-kanban-count { font-size: .7rem; font-weight: 800; background: var(--line-2); border-radius: 999px; padding: 1px 8px; color: var(--ink-2); }
.tt-kanban-list { display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.tt-kcard {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px; cursor: grab; font-size: .82rem;
}
.tt-kcard.is-dragging { opacity: .45; }
.tt-kcard:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.tt-kcard-name { font-weight: 700; color: var(--navy); font-size: .86rem; }
.tt-kcard-meta { color: var(--muted); font-size: .74rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tt-kcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; }

/* ---------------- misc blocks ---------------- */
.tt-progress { height: 7px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.tt-progress > span { display: block; height: 100%; background: var(--teal); border-radius: 999px; }
.tt-progress.is-navy > span { background: var(--navy); }
.tt-progress.is-yellow > span { background: var(--yellow); }
.tt-progress.is-danger > span { background: var(--danger); }
.tt-progress-row { display: flex; align-items: center; gap: 10px; }
.tt-progress-row .tt-progress { flex: 1 1 auto; }

.tt-funnel { display: flex; flex-direction: column; gap: 7px; }
.tt-funnel-row { display: grid; grid-template-columns: 108px 1fr 74px; gap: 8px; align-items: center; font-size: .78rem; }
.tt-funnel-bar { height: 24px; border-radius: 6px; background: linear-gradient(90deg, var(--navy), var(--navy-soft)); position: relative; min-width: 8px; }
.tt-funnel-bar.is-teal { background: linear-gradient(90deg, #086066, var(--teal-dark)); }
.tt-funnel-bar.is-yellow { background: linear-gradient(90deg, var(--yellow-dark), var(--yellow)); }
.tt-funnel-bar.is-muted { background: var(--line); }
.tt-funnel-ring { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: .7rem; font-weight: 800; color: #fff; }
.tt-funnel-bar.is-muted .tt-funnel-ring, .tt-funnel-bar.is-yellow .tt-funnel-ring { color: var(--ink-2); }

.tt-timeline { position: relative; padding-left: 20px; }
.tt-timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tt-timeline-item { position: relative; padding-bottom: 14px; }
.tt-timeline-item::before {
  content: ''; position: absolute; left: -17px; top: 5px; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 2px solid var(--teal);
}
.tt-timeline-item.is-muted::before { border-color: var(--line); }
.tt-timeline-item b { font-size: .84rem; color: var(--navy); display: block; }
.tt-timeline-item p { margin: 1px 0 0; font-size: .8rem; color: var(--muted); }
.tt-timeline-item time { font-size: .72rem; color: var(--muted-2); }

.tt-checklist { display: flex; flex-direction: column; gap: 8px; }
.tt-chk {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface-2);
}
.tt-chk.is-verified { border-color: #BFE7D6; background: var(--ok-tint); }
.tt-chk.is-missing { border-color: #F0C4BE; background: var(--danger-tint); }
.tt-chk.is-submitted { border-color: #C9E3F7; background: var(--info-tint); }
.tt-chk-ico { flex: none; margin-top: 1px; color: var(--muted); }
.tt-chk.is-verified .tt-chk-ico { color: var(--ok); }
.tt-chk.is-missing .tt-chk-ico { color: var(--danger); }
.tt-chk-body { min-width: 0; flex: 1 1 auto; }
.tt-chk-body b { font-size: .84rem; color: var(--navy); }
.tt-chk-body p { margin: 2px 0 0; font-size: .76rem; color: var(--muted); }
.tt-chk-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: .72rem; color: var(--muted); }

.tt-stars { display: inline-flex; gap: 2px; color: var(--yellow-dark); }
.tt-stars .is-empty { color: var(--line); }

.tt-masked { letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.tt-masked.is-locked { color: var(--muted); background: var(--line-2); border-radius: 6px; padding: 1px 7px; }

.tt-empty { text-align: center; padding: 30px 18px; color: var(--muted); }
.tt-empty .tt-icon { color: var(--muted-2); margin-bottom: 8px; }
.tt-empty b { display: block; color: var(--navy); font-size: .94rem; margin-bottom: 4px; }

.tt-kv { display: grid; grid-template-columns: 1fr; gap: 10px; }
.tt-kv > div { min-width: 0; }
.tt-kv dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.tt-kv dd { margin: 2px 0 0; font-size: .88rem; color: var(--ink); }
@media (min-width: 700px) { .tt-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tt-kv-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .tt-kv-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tt-callout { border-left: 4px solid var(--teal); background: var(--teal-tint); padding: 12px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .84rem; }
.tt-callout.is-warn { border-color: var(--yellow-dark); background: var(--yellow-tint); }
.tt-callout.is-danger { border-color: var(--danger); background: var(--danger-tint); }
.tt-callout.is-navy { border-color: var(--navy); background: var(--navy-tint); }
.tt-callout b { display: block; margin-bottom: 3px; color: var(--navy); }

.tt-note-demo {
  display: flex; gap: 8px; align-items: flex-start; font-size: .76rem; color: var(--muted);
  background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 10px 12px;
}

.tt-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: 16px; }
.tt-tabs a, .tt-tabs button {
  padding: 9px 13px; font-size: .84rem; font-weight: 700; color: var(--muted); border: 0; background: transparent;
  border-bottom: 2.5px solid transparent; white-space: nowrap; cursor: pointer; font-family: inherit;
}
.tt-tabs a.is-active, .tt-tabs button.is-active { color: var(--navy); border-bottom-color: var(--teal); }

.tt-acc { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; background: #fff; }
.tt-acc summary { padding: 12px 14px; cursor: pointer; font-weight: 700; font-size: .86rem; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.tt-acc summary::-webkit-details-marker { display: none; }
.tt-acc[open] summary { border-bottom: 1px solid var(--line); }
.tt-acc-body { padding: 13px 14px; font-size: .84rem; color: var(--ink-2); }

.tt-pill-list { display: flex; flex-direction: column; gap: 9px; }
.tt-list-item {
  display: flex; gap: 11px; align-items: flex-start; padding: 11px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; min-width: 0;
}
.tt-list-item.is-clickable:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.tt-list-item-body { min-width: 0; flex: 1 1 auto; }
.tt-list-item-body b { color: var(--navy); font-size: .87rem; }
.tt-list-item-body p { margin: 2px 0 0; font-size: .79rem; color: var(--muted); }

/* bar/line charts drawn as CSS + inline SVG */
.tt-barchart { display: flex; align-items: flex-end; gap: 8px; height: 168px; padding-top: 8px; overflow-x: auto; }
.tt-barchart .tt-bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 30px; flex: 1 1 0; height: 100%; justify-content: flex-end; }
.tt-barchart .tt-bar-stack { display: flex; flex-direction: column-reverse; width: 100%; max-width: 30px; height: 100%; justify-content: flex-start; border-radius: 6px; overflow: hidden; background: var(--line-2); }
.tt-barchart .tt-bar { width: 100%; background: var(--navy); transition: .2s; }
.tt-barchart .tt-bar.is-teal { background: var(--teal); }
.tt-barchart .tt-bar.is-yellow { background: var(--yellow); }
.tt-barchart .tt-bar.is-navy-soft { background: #4B6B92; }
.tt-barchart .tt-bar-label { font-size: .68rem; color: var(--muted); }
.tt-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .76rem; color: var(--muted); }
.tt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tt-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.tt-sparkline { width: 100%; height: 54px; }

/* ---------------- public site ---------------- */
.tt-site-header {
  position: sticky; top: 0; z-index: 40; background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .18s ease;
}
.tt-site-header.is-stuck { box-shadow: 0 2px 14px rgba(10, 28, 72, .07); }
.tt-site-header-inner {
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px; max-width: 1200px; margin: 0 auto; height: 64px;
}
.tt-site-header .tt-lockup-link { flex: none; }

/* Nav: one line, always. Each link is its own flex item that cannot shrink or wrap, and the
   active state is a quiet accent underline instead of a coloured box. */
.tt-site-nav {
  display: none; align-items: center; gap: 2px;
  margin-left: 18px; min-width: 0; flex: 0 1 auto;
}
.tt-snav-link {
  position: relative; display: inline-flex; align-items: center;
  white-space: nowrap; flex: none;
  font-size: .84rem; font-weight: 600; letter-spacing: -.005em;
  color: var(--ink-2); text-decoration: none;
  padding: 9px 11px; border-radius: 8px;
  transition: color .14s ease, background-color .14s ease;
}
.tt-snav-link:hover { color: var(--navy); background: var(--navy-tint); }
.tt-snav-link.is-active { color: var(--navy); font-weight: 700; }
.tt-snav-link.is-active::after {
  content: ''; position: absolute; left: 11px; right: 11px; bottom: 1px;
  height: 2.5px; border-radius: 2px; background: var(--teal);
}
.tt-snav-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }

.tt-site-header-cta {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto; padding-left: 14px; flex: none;
}
.tt-snav-btn { white-space: nowrap; }
.tt-site-mobile-menu { display: inline-flex; }
/* the menu button matches the height of the CTA next to it, so the row reads as one line */
.tt-site-header .tt-btn-icon { width: 36px; height: 34px; padding: 0; min-height: 34px; }

/* Very narrow phones: one primary action only — the secondary lives in the sheet. */
@media (max-width: 639px) {
  .tt-site-header-cta .tt-btn-ghost { display: none; }
  .tt-site-header .tt-snav-btn { padding: 6px 12px; }
}

/* The full nav needs room for seven labels plus two buttons — below this width the sheet takes
   over, so nothing ever wraps onto a second line. */
@media (min-width: 1140px) {
  .tt-site-nav { display: flex; }
  .tt-site-mobile-menu { display: none; }
}
@media (min-width: 1000px) and (max-width: 1099px) {
  /* mid widths with the sheet still in use: keep the row airy by dropping one action */
  .tt-site-header-inner { gap: 8px; }
}

/* mobile / tablet navigation sheet */
.tt-sheet-nav { max-width: 460px; }
.tt-sheet-nav .tt-sheet-head p { font-size: .78rem; color: var(--muted); margin: 6px 0 0; }
.tt-snav-mobile { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 16px; }
.tt-snav-mobile-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 12px; border-radius: 10px; text-decoration: none;
  font-size: .92rem; font-weight: 600; color: var(--ink-2);
  border: 1px solid transparent;
}
.tt-snav-mobile-link .tt-icon { color: var(--muted-2); }
.tt-snav-mobile-link:hover { background: var(--navy-tint); color: var(--navy); }
.tt-snav-mobile-link.is-active {
  background: var(--teal-tint); border-color: #B9E7E4; color: var(--navy); font-weight: 700;
}
.tt-snav-mobile-link.is-active .tt-icon { color: var(--teal-dark); }
.tt-snav-mobile-cta { display: flex; flex-direction: column; gap: 8px; }

.tt-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 55%, #0A2E4D 100%); color: #E4EDF6; padding: 34px 0 42px; position: relative; overflow: hidden; }
.tt-hero::after {
  content: ''; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(15, 163, 160, .5), transparent 62%);
}
.tt-hero h1 { color: #fff; font-size: 1.7rem; }
.tt-hero h1 em { font-style: normal; color: var(--yellow); }
.tt-hero p { color: #B9CBDE; }
.tt-hero-grid { display: grid; gap: 26px; grid-template-columns: 1fr; align-items: center; position: relative; z-index: 1; }
.tt-hero-art { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg); padding: 12px; }
.tt-hero-art .tt-art { width: 100%; height: auto; }
@media (min-width: 900px) {
  .tt-hero { padding: 58px 0 66px; }
  .tt-hero h1 { font-size: 2.5rem; }
  .tt-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 40px; }
}
.tt-hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
@media (min-width: 700px) { .tt-hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tt-hero-stat b { display: block; font-size: 1.35rem; color: #fff; font-weight: 800; }
.tt-hero-stat span { font-size: .76rem; color: #9FB4CA; }

.tt-site-footer { background: var(--navy-deep); color: #A9BDD2; padding: 34px 0 26px; margin-top: 40px; }
.tt-site-footer h4 { color: #fff; font-size: .84rem; text-transform: uppercase; letter-spacing: .05em; }
.tt-site-footer a { color: #A9BDD2; font-size: .84rem; display: block; padding: 3px 0; }
.tt-site-footer a:hover { color: #fff; }
.tt-footer-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .tt-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; } }
.tt-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 24px; padding-top: 16px; font-size: .78rem; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

.tt-price-card { display: flex; flex-direction: column; gap: 14px; position: relative; }
.tt-price-card.is-featured { border-color: var(--teal); box-shadow: var(--shadow); }
.tt-price-card.is-featured::before {
  content: 'Paling populer'; position: absolute; top: -12px; left: 18px; background: var(--teal); color: #fff;
  font-size: .68rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
}
.tt-price { font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.tt-price small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.tt-feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; font-size: .84rem; color: var(--ink-2); }
.tt-feature-list li { display: flex; gap: 8px; align-items: flex-start; }
.tt-feature-list .tt-icon { color: var(--teal); flex: none; margin-top: 2px; }

.tt-steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 700px) { .tt-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tt-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tt-step { counter-increment: s; }
.tt-step::before {
  content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 10px;
}
.tt-logo-strip { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.tt-logo-chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; color: var(--ink-2);
  font-size: .84rem; background: #fff;
}

/* ---------------- login / demo ---------------- */
.tt-login { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.tt-login-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 60%, #0A2E4D 100%); color: #DCE7F1; padding: 26px 20px 30px; }
.tt-login-hero h1 { color: #fff; font-size: 1.45rem; }
.tt-login-hero h1 em { font-style: normal; color: var(--yellow); }
.tt-login-panel { padding: 22px 16px 40px; }
.tt-login-card { max-width: 560px; margin: 0 auto; }
@media (min-width: 1000px) {
  .tt-login { grid-template-columns: 1fr 1fr; min-height: 100vh; }
  .tt-login-hero { padding: 50px 48px; display: flex; flex-direction: column; justify-content: center; }
  .tt-login-hero h1 { font-size: 2.1rem; }
  .tt-login-panel { padding: 42px 40px; overflow-y: auto; max-height: 100vh; }
}
.tt-role-grid { display: grid; gap: 9px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .tt-role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tt-role-btn {
  display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; cursor: pointer; font: inherit; text-align: left; width: 100%;
}
.tt-role-btn:hover { border-color: var(--teal); background: var(--teal-tint); }
.tt-role-btn.is-active { border-color: var(--teal); background: var(--teal-tint); box-shadow: var(--shadow-sm); }
.tt-role-btn-body { min-width: 0; }
.tt-role-btn-body b { display: block; font-size: .86rem; color: var(--navy); }
.tt-role-btn-body span { font-size: .74rem; color: var(--muted); }
.tt-account-row { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; width: 100%; font: inherit; text-align: left; }
.tt-account-row:hover { border-color: var(--teal); background: var(--teal-tint); }
.tt-account-row.is-active { border-color: var(--teal); background: var(--teal-tint); }
.tt-pin { display: flex; gap: 8px; justify-content: center; margin: 4px 0 12px; }
.tt-pin input {
  width: 46px; height: 54px; text-align: center; font-size: 1.3rem; font-weight: 800; letter-spacing: .05em;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--navy);
}
.tt-pin input:focus { outline: 2px solid rgba(15, 163, 160, .4); border-color: var(--teal); }
.tt-denied { max-width: 520px; margin: 80px auto; padding: 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); text-align: center; }

.tt-switch-banner {
  background: var(--yellow-tint); color: var(--navy-deep); font-size: .72rem; font-weight: 600;
  padding: 4px 12px; text-align: center; display: flex; gap: 6px; justify-content: center; align-items: center;
  flex-wrap: wrap; border-bottom: 1px solid #F3E3AE;
}
.tt-switch-banner .tt-icon { color: var(--warn); }
.tt-switch-banner b { font-weight: 800; }
.tt-switch-banner a { color: var(--teal-dark); font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.tt-switch-banner a:hover { color: var(--navy); }
.tt-switch-banner > span { min-width: 0; }
@media (max-width: 639px) {
  .tt-hide-sm { display: none !important; }
  .tt-switch-banner { padding: 5px 10px; gap: 5px; }
}
.tt-masking-bar {
  background: var(--navy-deep); color: #C7D6E6; font-size: .74rem; padding: 5px 12px;
  display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap;
}

/* print */
@media print {
  .tt-sidebar, .tt-tabbar, .tt-topbar, .tt-btn, .tt-toolbar { display: none !important; }
  .tt-main { padding: 0; }
  .tt-card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .tt-print-brand { display: block !important; margin-bottom: 16px; }
}

.tt-lockup { display: inline-flex; align-items: center; text-decoration: none; }
.tt-lockup-link { display: inline-flex; text-decoration: none; border-radius: 8px; }
.tt-lockup-link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.tt-logo { display: block; flex: none; }
.tt-mark { flex: none; }