/* Titanium look kit (Andy, 2026-10-31): the one brand guide every Titanium page follows.
   Typeface, colors, the black sidebar, the top bar and the shared parts (cards, tiles, tabs, tables,
   chips, buttons, the date range, the sign-in box, the suggestion box). Pages link this file instead
   of carrying their own copy, so a change here reaches every page. What a page DOES stays in the page.
   Started from Outstanding Revenue, the first page built on the 2026-10-17 Unified Shell mockup.
   Guide: sites/kit/index.html. Change a part here, not in a page. */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');
  :root {
    --canvas: #f5f6f7; --card: #ffffff; --line: #e3e6ea; --row: #eef0f2; --ink: #14181d; --muted: #5b6470;
    --ink2: #3c4550; --rail: #111418; --rail-on: #24303a; --rail-icon: #8a939e; --teal: #0e7490;
    --teal-dark: #0b5c72; --teal-soft: #e6f2f4; --chip: #f0f2f4; --warn: #b45309; --warn-soft: #fdf3e7;
    --bad: #b42318; --bad-soft: #fcefee;
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.45 'IBM Plex Sans', system-ui, sans-serif; }
  a { color: var(--teal); } a:hover { color: var(--teal-dark); }
  .mono { font-family: 'IBM Plex Mono', monospace; font-size: 13px; }
  .shell { min-height: 100vh; display: flex; }
  nav.rail { flex: 0 0 64px; background: var(--rail); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 0; }
  .logo { width: 36px; height: 36px; border-radius: 8px; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
  .rail a { width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--rail-icon); }
  .rail a[aria-current] { color: #fff; background: var(--rail-on); }
  .rail svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  header.top { min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 10px 28px; background: #fff; border-bottom: 1px solid var(--line); }
  .pill { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
  .pill .dot { width: 8px; height: 8px; border-radius: 4px; background: var(--teal); }
  .search { flex: 1 1 260px; max-width: 520px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 8px; background: var(--chip); color: var(--muted); }
  .search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); outline: none; }
  .who { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
  .avatar { width: 32px; height: 32px; border-radius: 16px; background: #dfe7ea; color: var(--teal-dark); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
  button.link { border: 0; background: none; color: var(--teal); font: inherit; cursor: pointer; padding: 0; }
  main { padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 20px; max-width: 1280px; width: 100%; }
  .title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
  h1 { margin: 0; font-size: 22px; font-weight: 600; }
  h2 { margin: 0; font-size: 17px; font-weight: 600; }
  .sub { color: var(--muted); font-size: 13px; }
  .eyebrow { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
  .tabs { display: flex; flex-wrap: wrap; gap: 8px; }
  .tab { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 10px 14px; font: inherit; color: var(--ink); cursor: pointer; text-align: left; min-width: 220px; }
  .tab[aria-selected="true"] { border-color: #cfe3e8; background: #f7fbfc; box-shadow: inset 3px 0 0 var(--teal); }
  .tab .amt { font-size: 20px; font-weight: 600; display: block; margin-top: 2px; }
  .tab .n { font-size: 12px; color: var(--muted); }
  .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
  .tile { padding: 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line); cursor: pointer; text-align: left; font: inherit; color: inherit; }
  .tile[aria-pressed="true"] { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
  .tile .k { font-size: 12px; color: var(--muted); }
  .tile .v { font-size: 20px; font-weight: 600; margin-top: 2px; }
  .tile .d { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .tile.old .v { color: var(--bad); }
  .card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
  table { width: 100%; border-collapse: collapse; min-width: 760px; }
  th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 500; padding: 12px 16px; white-space: nowrap; cursor: pointer; user-select: none; }
  th.num, td.num { text-align: right; }
  th[aria-sort="ascending"]::after { content: " ↑"; } th[aria-sort="descending"]::after { content: " ↓"; }
  td { padding: 11px 16px; border-top: 1px solid var(--row); vertical-align: top; }
  tr.sum td { font-weight: 600; background: #fafbfc; }
  .chip { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--chip); color: var(--ink2); white-space: nowrap; }
  .chip.warn { background: var(--warn-soft); color: var(--warn); } .chip.bad { background: var(--bad-soft); color: var(--bad); }
  .chip.teal { background: var(--teal-soft); color: var(--teal-dark); }
  .foot { color: var(--muted); font-size: 13px; }
  .range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; color: var(--muted); }
  .range input { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; color: var(--ink); background: #fff; }
  .range .preset { height: 30px; border: 1px solid var(--line); border-radius: 15px; padding: 0 12px; background: #fff; font: inherit; font-size: 12px; color: var(--ink2); cursor: pointer; }
  .range .preset[aria-pressed="true"] { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-soft); }
  /* suggestions */
  .btn.ghost { background: #fff; color: var(--teal-dark); border: 1px solid var(--line); height: 36px; padding: 0 14px; }
  dialog#sug { border: 1px solid var(--line); border-radius: 10px; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: 86vh; color: var(--ink); }
  dialog#sug::backdrop { background: rgba(17, 20, 24, .35); }
  .sug-in { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
  .sug-in textarea { width: 100%; min-height: 110px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; color: var(--ink); resize: vertical; }
  .sug-item { border-top: 1px solid var(--row); padding: 10px 0; font-size: 13px; }
  .sug-item .meta { color: var(--muted); font-size: 12px; margin-bottom: 3px; }
  .sug-item .ans { margin-top: 4px; color: var(--teal-dark); }
  /* sign-in */
  .gate { max-width: 380px; margin: 12vh auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
  .gate label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
  .gate input { height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: inherit; color: var(--ink); }
  .btn { height: 38px; border: 0; border-radius: 8px; background: var(--teal); color: #fff; font: inherit; font-weight: 500; cursor: pointer; }
  .err { color: var(--bad); font-size: 13px; }
  [hidden] { display: none !important; }
  @media (max-width: 720px) {
    nav.rail { flex-basis: 48px; padding: 10px 0; gap: 4px; }
    nav.rail .logo { width: 30px; height: 30px; font-size: 13px; margin-bottom: 8px; }
    nav.rail a.logo { width: 30px; height: 30px; }
    .rail a { width: 36px; height: 36px; }
    .rail svg { width: 18px; height: 18px; }
    header.top, main { padding-left: 16px; padding-right: 16px; }
    .tab { min-width: 0; flex: 1 1 100%; }
  }

  /* sidebar (drawn by kit.js) */
  nav.rail a[aria-disabled="true"], nav.rail a.locked { opacity: .35; cursor: default; }
  nav.rail .rail-gap { flex: 1; }
  nav.rail { position: sticky; top: 0; height: 100vh; overflow-y: auto; }  /* the gear stays in reach on long pages */
  nav.rail .logo { text-decoration: none; }
  nav.rail a.logo { width: 36px; height: 36px; color: #fff; background: var(--teal); }  /* on the Hub the logo is the home link */
  .rail-tip { position: fixed; z-index: 50; background: var(--rail); color: #fff; font-size: 12px; padding: 5px 9px; border-radius: 6px; pointer-events: none; white-space: nowrap; }

  /* new version bar (kit.js) */
  .ti-new-version { position: fixed; z-index: 60; left: 50%; top: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 10px; background: var(--rail); color: #fff; font-size: 13px; box-shadow: 0 6px 24px rgba(17, 20, 24, .25); }
  .ti-new-version .btn { height: 30px; padding: 0 14px; }
