:root {
    --blue:#0078d4; --blue-dark:#106ebe; --topbar:#1b1a19; --nav:#f3f2f1;
    --bg:#faf9f8; --card:#fff; --line:#edebe9; --ink:#201f1e; --mut:#605e5c;
    --ok:#107c10; --warn:#797673; --bad:#a4262c;
  }
  * { box-sizing:border-box; }
  html,body { height:100%; }
  body { margin:0; font:14px/1.4 "Segoe UI", system-ui, sans-serif; color:var(--ink); background:var(--bg); }

  #topbar { height:48px; background:var(--topbar); color:#fff; display:flex; align-items:center; padding:0 16px; gap:14px; }
  #topbar .brand { font-size:15px; font-weight:600; white-space:nowrap; }
  #topbar .brand span { font-weight:350; opacity:.85; }
  #topbar .spacer { flex:1; }
  #topbar .who { font-size:12px; text-align:right; line-height:1.3; }
  #topbar .who .roles { color:#9fd3ff; }
  /* Running-job chip — persistent across pages, so a job in flight is never invisible. */
  #job-chip { display:none; align-items:center; gap:7px; font-size:12px; color:#fff;
    background:#323130; border:1px solid #605e5c; border-radius:12px; padding:4px 12px; cursor:pointer; }
  #job-chip:hover { background:#484644; }
  #job-chip .spin { display:inline-block; animation:spin 1.4s linear infinite; }
  @keyframes spin { to { transform:rotate(360deg); } }
  #topbar button { background:transparent; color:#fff; border:1px solid #605e5c; border-radius:2px; padding:5px 12px; cursor:pointer; font:inherit; }
  #topbar button:hover { background:#323130; }

  #shell { display:flex; height:calc(100% - 48px); }
  nav { width:212px; background:var(--nav); border-right:1px solid var(--line); padding-top:8px; flex-shrink:0; }
  nav .item { display:flex; align-items:center; gap:10px; padding:9px 16px; cursor:pointer; border-left:3px solid transparent; user-select:none; }
  nav .item:hover { background:#edebe9; }
  nav .item.active { background:#edebe9; border-left-color:var(--blue); font-weight:600; }
  nav .item .ic { width:18px; text-align:center; color:var(--blue); }
  nav .group { padding:14px 16px 4px; font-size:11px; font-weight:700; letter-spacing:.6px;
    text-transform:uppercase; color:#797673; user-select:none; }
  main { flex:1; overflow:auto; padding:20px 28px; }
  .crumb { color:var(--mut); font-size:12px; margin-bottom:4px; }
  h1 { font-size:22px; font-weight:600; margin:0 0 2px; }
  .sub { color:var(--mut); margin:0 0 18px; }

  .card { background:var(--card); border:1px solid var(--line); border-radius:4px; padding:16px 20px; box-shadow:0 1px 2px rgba(0,0,0,.04); }
  .cards { display:flex; gap:14px; flex-wrap:wrap; margin-bottom:18px; }
  .stat { min-width:165px; }
  .stat .n { font-size:28px; font-weight:600; color:var(--blue); }
  .stat .n.bad { color:var(--bad); }
  .stat .l { color:var(--mut); font-size:12px; }
  .toolbar { display:flex; gap:8px; align-items:center; margin-bottom:12px; flex-wrap:wrap; }
  .toolbar .grow { flex:1; }
  .toolbar input[type=text], .toolbar select { width:auto; min-width:180px; }
  button.cmd { background:none; border:none; color:var(--ink); padding:7px 10px; cursor:pointer; font:inherit; border-radius:2px; display:inline-flex; gap:6px; align-items:center; }
  button.cmd:hover:not(:disabled) { background:#f3f2f1; color:var(--blue); }
  button.cmd:disabled { color:#c8c6c4; cursor:default; }
  button.cmd .ic { color:var(--blue); }
  button.cmd:disabled .ic { color:#c8c6c4; }
  button.primary { background:var(--blue); color:#fff; border:1px solid var(--blue); border-radius:2px; padding:7px 20px; cursor:pointer; font:inherit; }
  button.primary:hover:not(:disabled) { background:var(--blue-dark); }
  button.primary:disabled { background:#f3f2f1; color:#a19f9d; border-color:#f3f2f1; cursor:default; }
  button.ghost { background:#fff; border:1px solid #8a8886; border-radius:2px; padding:7px 20px; cursor:pointer; font:inherit; }
  table { width:100%; border-collapse:collapse; font-size:13px; background:var(--card); }
  th { text-align:left; color:var(--mut); font-weight:600; padding:9px 12px; border-bottom:1px solid var(--line); font-size:12px; }
  td { padding:9px 12px; border-bottom:1px solid var(--line); vertical-align:middle; }
  tr.row:hover { background:#f3f2f1; cursor:pointer; }
  .pill { display:inline-flex; align-items:center; gap:5px; border-radius:10px; padding:2px 10px; font-size:12px; background:#f3f2f1; white-space:nowrap; }
  .pill::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--warn); flex-shrink:0; }
  .pill.draft::before { background:#797673; } .pill.approved::before { background:#0078d4; }
  .pill.published::before { background:var(--ok); } .pill.withdrawn::before { background:#a19f9d; }
  .pill.live { background:#dff6dd; font-weight:600; } .pill.live::before { background:var(--ok); }
  .pill.s-applied::before,.pill.s-framework-staged::before,.pill.s-session-start::before,.pill.s-agent-updated::before,
  .pill.s-baseline-floor::before { background:var(--ok); }
  .pill.s-pending-next-launch::before,.pill.s-baseline-fallback::before,.pill.s-agent-update-started::before { background:#0078d4; }
  .pill.s-drift::before,.pill.s-tamper::before,.pill.s-failed::before,.pill.s-rollback-attempt::before,
  .pill.s-launch-blocked::before,.pill.s-launch-unmanaged::before,.pill.s-session-unattested::before,
  .pill.s-schema-mismatch::before { background:var(--bad); }
  .pill.s-policy-expired::before { background:#ca5010; } /* needs renewal, not an attack */
  .alertdot { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--bad); margin-right:6px; }
  input[type=text],input[type=number],select,textarea { border:1px solid #8a8886; border-radius:2px; padding:6px 8px; font:inherit; width:100%; background:#fff; }
  input:focus,select:focus { outline:2px solid var(--blue); outline-offset:-1px; }
  label { display:block; margin:12px 0 4px; font-size:13px; font-weight:600; }
  .hint { color:var(--mut); font-size:12px; }
  .chip { display:inline-block; background:#eff6fc; color:#004578; border-radius:2px; padding:1px 8px; font-size:11px; margin:0 4px 3px 0; }
  .chip.warn { background:#fff4ce; color:#8a6d00; }
  /* target picker (group/device assignment) */
  .picker { display:flex; flex-direction:column; gap:6px; }
  .pchips { display:flex; flex-wrap:wrap; gap:6px; min-height:24px; align-items:center; }
  .pchip { display:inline-flex; align-items:center; gap:6px; background:#eff6fc; color:#004578;
    border:1px solid #c7e0f4; border-radius:12px; padding:2px 6px 2px 10px; font-size:12px; }
  .pchip a { color:#605e5c; text-decoration:none; font-size:11px; line-height:1; }
  .pchip a:hover { color:var(--bad,#a4262c); }
  .pick-in-wrap { position:relative; }
  .pick-in { width:100%; box-sizing:border-box; }
  .pick-spin { position:absolute; right:8px; top:7px; color:#797673; }
  .pick-drop { position:absolute; z-index:30; left:0; right:0; top:calc(100% + 2px); background:#fff;
    border:1px solid var(--line,#e1dfdd); border-radius:4px; box-shadow:0 4px 16px rgba(0,0,0,.12);
    max-height:240px; overflow:auto; }
  .pick-opt { padding:6px 10px; cursor:pointer; border-bottom:1px solid #f3f2f1; }
  .pick-opt:last-child { border-bottom:0; }
  .pick-opt:hover { background:#eff6fc; }
  .pick-opt.chosen { background:#f3f9ff; }
  .mono { font-family:monospace; font-size:11px; }
  .readymeter { display:flex; align-items:center; gap:10px; margin:10px 0 2px; }
  .readymeter-bar { flex:0 0 200px; height:10px; background:#f3f2f1; border-radius:5px; overflow:hidden; }
  .readymeter-fill { height:100%; background:var(--ok); border-radius:5px; transition:width .3s; }
  .readymeter-label { font-size:12px; color:#605e5c; }
  .bar { height:8px; background:#f3f2f1; border-radius:4px; overflow:hidden; }
  .bar > div { height:100%; background:var(--blue); }
  .empty { padding:36px; text-align:center; color:var(--mut); background:var(--card); border:1px dashed var(--line); border-radius:4px; }

  #blade-mask { position:fixed; inset:0; background:rgba(0,0,0,.35); display:none; z-index:40; }
  #blade { position:fixed; top:0; right:-760px; width:740px; max-width:96vw; height:100%; background:#fff;
           box-shadow:-6px 0 18px rgba(0,0,0,.25); z-index:50; transition:right .2s ease; display:flex; flex-direction:column; }
  #blade.open { right:0; }
  #blade header { padding:16px 24px 10px; border-bottom:1px solid var(--line); display:flex; align-items:flex-start; }
  #blade header h2 { margin:0; font-size:18px; font-weight:600; }
  #blade header .x { margin-left:auto; background:none; border:none; font-size:16px; cursor:pointer; color:var(--mut); }
  #blade .body { flex:1; overflow:auto; padding:16px 24px; }
  #blade footer { border-top:1px solid var(--line); padding:12px 24px; display:flex; gap:10px; }
  details.cat { border-bottom:1px solid var(--line); }
  details.cat summary { cursor:pointer; padding:9px 4px; font-weight:600; }
  .setrow { padding:10px 4px 12px 18px; border-top:1px solid #f5f4f3; }
  .setrow .nm { font-weight:600; }
  .setrow .ds { color:var(--mut); font-size:12px; margin:2px 0 8px; max-width:580px; }
  .setrow .ctl { display:flex; gap:10px; align-items:center; max-width:580px; }
  .setrow .ctl > :first-child { flex:1; }
  .setrow .ctl select.enf { width:150px; }
  .steps { display:flex; gap:4px; margin-bottom:16px; }
  .steps div { flex:1; text-align:center; padding:7px; font-size:12px; border-bottom:3px solid var(--line); color:var(--mut); }
  .steps div.on { border-color:var(--blue); color:var(--ink); font-weight:600; }
  .warnbox { background:#fff4ce; border:1px solid #ffb900; border-radius:2px; padding:10px 14px; margin:10px 0; font-size:13px; }
  .errbox { background:#fde7e9; border:1px solid var(--bad); border-radius:2px; padding:10px 14px; margin:10px 0; font-size:13px; white-space:pre-wrap; }
  .timeline { margin:10px 0; padding:0; list-style:none; font-size:13px; }
  .timeline li { padding:4px 0 4px 20px; position:relative; }
  .timeline li::before { content:''; position:absolute; left:4px; top:9px; width:8px; height:8px; border-radius:50%; background:var(--blue); }
  .timeline li.off::before { background:#c8c6c4; }

  #toast { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); background:#323130; color:#fff;
           padding:11px 20px; border-radius:2px; opacity:0; transition:opacity .25s; z-index:99; max-width:600px;
           pointer-events:none; /* a faded toast still covered the blade footer's primary button */ }
  #signin { position:fixed; inset:0; background:var(--bg); display:flex; align-items:center; justify-content:center; z-index:90; }
  #signin .card { width:400px; text-align:center; padding:40px 32px; }

  /* ================= brand mark ================= */
  #topbar .brand { display:flex; align-items:center; gap:9px; cursor:pointer; }
  #topbar .brand .logo { flex-shrink:0; filter:drop-shadow(0 0 6px rgba(31,224,200,.35)); }
  #signin .logo { display:block; margin:0 auto 4px; }

  /* ================= HOME (js/home.js) — everything scoped to .home ================= */
  .home { --pk:#0f6cbd; --pk-t:#ebf3fc; --cf:#b45f06; --cf-t:#fff4e5; --ctl:#6b47dc; --ctl-t:#f1edfd;
    --tr:#0b8073; --tr-t:#e3f5f2; --hm-bad:#c4314b; --hm-bad-t:#fdecee; --hm-line:#e9e7e4;
    --hm-display:"Segoe UI Variable Display","Segoe UI",system-ui,sans-serif;
    max-width:1480px; margin:0 auto 28px; container-type:inline-size; }
  .home .hm-pk { --c:var(--pk); --t:var(--pk-t); }  .home .hm-cf { --c:var(--cf); --t:var(--cf-t); }
  .home .hm-ctl { --c:var(--ctl); --t:var(--ctl-t); } .home .hm-tr { --c:var(--tr); --t:var(--tr-t); }
  .home > * { animation:hm-rise .5s cubic-bezier(.2,.7,.2,1) both; }
  .home > :nth-child(4) { animation-delay:.06s; }
  .home > :nth-child(5), .home > :nth-child(6) { animation-delay:.12s; }
  .home > :nth-child(7) { animation-delay:.18s; }
  @keyframes hm-rise { from { opacity:0; transform:translateY(10px); } }

  /* hero */
  .hm-hero { position:relative; overflow:hidden; isolation:isolate; display:flex; align-items:center; gap:32px;
    padding:30px 36px; border-radius:16px; color:#fff;
    background:
      radial-gradient(560px 300px at 6% -18%, rgba(77,163,255,.42), transparent 70%),
      radial-gradient(520px 340px at 96% -10%, rgba(167,139,250,.36), transparent 70%),
      radial-gradient(560px 260px at 62% 135%, rgba(31,224,200,.28), transparent 70%),
      linear-gradient(135deg, #0a1631 0%, #0e2048 52%, #142a58 100%);
    box-shadow:0 16px 36px -18px rgba(10,22,49,.55); }
  .hm-hero::before { content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
    background-image:linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size:32px 32px;
    -webkit-mask-image:radial-gradient(ellipse 70% 90% at 78% 50%, #000 10%, transparent 75%);
            mask-image:radial-gradient(ellipse 70% 90% at 78% 50%, #000 10%, transparent 75%); }
  .hm-mark { position:absolute; z-index:-1; right:220px; top:50%; height:290px; width:auto; opacity:.09;
    transform:translateY(-50%) rotate(-8deg); pointer-events:none; }
  .hm-hero-main { flex:1; min-width:0; }
  .hm-over { display:flex; flex-wrap:wrap; gap:4px 12px; font-size:12px; font-weight:600; letter-spacing:.1em;
    text-transform:uppercase; color:#9db2d3; }
  .hm-over span:empty { display:none; }
  .hm-over span + span::before { content:'·'; margin-right:12px; color:#5f7699; }
  .hm-hero h1 { margin:8px 0; font:600 34px/1.15 var(--hm-display); letter-spacing:-.015em; color:#fff; }
  .hm-lead { margin:0; max-width:680px; min-height:23px; font-size:15.5px; line-height:1.5; color:#d3deee; }
  .hm-lead b { color:#fff; font-weight:600; }
  .hm-pills { display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
  .hm-pills:empty { display:none; }
  .hm-pill { display:inline-flex; align-items:center; gap:8px; padding:6px 13px 6px 11px; border-radius:999px;
    font-size:12.5px; color:#dfe7f3; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.13); }
  .hm-pill b { color:#fff; font-weight:600; }
  .hm-pill i { width:8px; height:8px; border-radius:50%; background:var(--c);
    box-shadow:0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent), 0 0 12px var(--c); }
  .hm-ring { position:relative; flex-shrink:0; width:200px; text-align:center; }
  .hm-ring svg { display:block; width:152px; height:152px; margin:0 auto; overflow:visible; }
  .hm-ring circle { fill:none; stroke-width:11; }
  .hm-ring .track { stroke:rgba(255,255,255,.1); }
  .hm-ring .arc { filter:drop-shadow(0 0 5px var(--glow)); animation:hm-draw 1.1s cubic-bezier(.3,.7,.2,1) .15s both; }
  @keyframes hm-draw { from { stroke-dasharray:0 400; } }
  .hm-ring .num { position:absolute; left:0; right:0; top:0; height:152px; display:flex; flex-direction:column;
    align-items:center; justify-content:center; }
  .hm-ring .num b { font:600 38px/1 var(--hm-display); letter-spacing:-.02em; }
  .hm-ring .num span { margin-top:5px; font-size:12px; color:#9db2d3; }
  .hm-ring .legend { display:flex; flex-wrap:wrap; justify-content:center; gap:4px 12px; margin-top:12px; font-size:12px; color:#c3d0e3; }
  .hm-ring .legend i { display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:6px; background:var(--c); }
  .hm-ring .legend a { color:#7fe9da; }

  /* loading placeholders */
  .hm-skel { display:block; margin:0 0 8px; border-radius:8px; background:linear-gradient(90deg, #f0eeeb 25%, #f8f7f5 50%, #f0eeeb 75%);
    background-size:200% 100%; animation:hm-shimmer 1.4s ease-in-out infinite; }
  .hm-skel.dark { display:inline-block; height:16px; margin:0; background:linear-gradient(90deg, rgba(255,255,255,.08) 25%,
    rgba(255,255,255,.16) 50%, rgba(255,255,255,.08) 75%); background-size:200% 100%; }
  @keyframes hm-shimmer { from { background-position:200% 0; } to { background-position:-200% 0; } }

  /* cards + layout */
  .hm-card { background:#fff; border:1px solid var(--hm-line); border-radius:14px; padding:18px 20px;
    box-shadow:0 1px 2px rgba(16,24,40,.04), 0 4px 14px -6px rgba(16,24,40,.08); }
  .hm-card > h3 { display:flex; align-items:center; gap:8px; margin:0 0 14px; font-size:15px; font-weight:600; }
  .hm-more { margin-left:auto; display:inline-flex; align-items:center; gap:4px; font-size:12.5px; font-weight:600;
    color:var(--blue); text-decoration:none; }
  .hm-more:hover { text-decoration:underline; }
  .hm-count { min-width:22px; height:22px; padding:0 7px; border-radius:11px; display:inline-grid; place-items:center;
    font-size:12px; font-weight:700; color:#fff; background:var(--hm-bad); }
  .hm-count:empty { display:none; }
  .hm-row { display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:18px; margin-top:18px; }
  .hm-h { display:flex; align-items:center; flex-wrap:wrap; gap:6px 18px; margin:30px 2px 12px; }
  .hm-h h2 { margin:0; font:600 18px/1.2 var(--hm-display); }
  .hm-series { display:flex; flex-wrap:wrap; gap:4px 16px; font-size:12.5px; color:var(--mut); }
  .hm-series i { display:inline-block; width:8px; height:8px; margin-right:6px; border-radius:50%; background:var(--c); }
  .hm-empty { padding:18px; text-align:center; font-size:13px; color:var(--mut); border:1px dashed var(--hm-line); border-radius:10px; }

  /* needs your attention */
  .hm-items { display:flex; flex-direction:column; gap:8px; }
  .hm-item { --c:var(--pk); --t:var(--pk-t); display:flex; align-items:center; gap:14px; padding:11px 14px; cursor:pointer;
    background:#fff; border:1px solid var(--hm-line); border-radius:11px; transition:border-color .15s, box-shadow .15s, transform .15s; }
  .hm-item:hover, .hm-item:focus-visible { outline:none; transform:translateY(-1px); border-color:color-mix(in srgb, var(--c) 40%, #fff);
    box-shadow:0 6px 16px -10px color-mix(in srgb, var(--c) 60%, transparent); }
  .hm-item.bad { --c:var(--hm-bad); --t:var(--hm-bad-t); } .hm-item.warn { --c:var(--cf); --t:var(--cf-t); }
  .hm-item.info { --c:var(--pk); --t:var(--pk-t); }      .hm-item.progress { --c:var(--ctl); --t:var(--ctl-t); }
  .hm-item .ico, .hm-act .ico, .hm-ph .ico { display:grid; place-items:center; flex-shrink:0; border-radius:10px; color:var(--c); background:var(--t); }
  .hm-item .ico, .hm-act .ico { width:38px; height:38px; }
  .hm-item .ico.spin svg { animation:spin 1.4s linear infinite; }
  .hm-item .tx { flex:1; min-width:0; }
  .hm-item .tx b { display:block; font-weight:600; }
  .hm-item .tx span { display:block; margin-top:2px; font-size:12.5px; color:var(--mut); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .hm-item .go { display:inline-flex; align-items:center; gap:4px; font-size:12.5px; font-weight:600; color:var(--c); white-space:nowrap; }
  .hm-clear { display:flex; align-items:center; gap:16px; padding:20px 8px; }
  .hm-clear .ico { width:54px; height:54px; flex-shrink:0; display:grid; place-items:center; border-radius:50%; color:var(--tr);
    background:var(--tr-t); box-shadow:0 0 0 7px color-mix(in srgb, var(--tr-t) 55%, transparent); }
  .hm-clear b { display:block; font-size:16px; font-weight:600; }
  .hm-clear span { display:block; margin-top:3px; color:var(--mut); }
  .hm-passed { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; margin-top:14px; padding-top:12px;
    border-top:1px dashed var(--hm-line); font-size:12px; color:var(--mut); }
  .hm-passed .lbl { margin-right:2px; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
  .hm-passed .ok { display:inline-flex; align-items:center; gap:5px; padding:3px 10px 3px 7px; border-radius:999px;
    color:#0a6b60; background:var(--tr-t); }

  /* quick start */
  .hm-actions { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
  .hm-act { display:flex; align-items:center; gap:12px; padding:11px 12px; text-align:left; font:inherit; color:inherit; cursor:pointer;
    background:#fff; border:1px solid var(--hm-line); border-radius:11px; transition:border-color .15s, box-shadow .15s, transform .15s; }
  .hm-act:hover, .hm-act:focus-visible { outline:none; transform:translateY(-1px); border-color:color-mix(in srgb, var(--c) 45%, #fff);
    box-shadow:0 6px 16px -10px color-mix(in srgb, var(--c) 70%, transparent); }
  .hm-act .tx { min-width:0; }
  .hm-act b { display:block; font-size:13.5px; font-weight:600; }
  .hm-act .tx span { display:block; font-size:12px; line-height:1.35; color:var(--mut); }

  /* get started */
  .hm-setup { margin-top:18px; }
  .hm-setup-head { display:flex; align-items:center; flex-wrap:wrap; gap:10px 18px; }
  .hm-setup-head h2 { margin:0; font:600 17px/1.2 var(--hm-display); }
  .hm-setup-head .hint { margin:4px 0 0; }
  .hm-setup-head .hm-more { margin-left:0; }
  .hm-progress { flex:1; min-width:140px; max-width:320px; height:8px; margin-left:auto; border-radius:4px; overflow:hidden; background:#efedea; }
  .hm-progress div { height:100%; border-radius:4px; background:linear-gradient(90deg, #4DA3FF, #A78BFA 60%, #1FE0C8); }
  .hm-steps { list-style:none; margin:16px 0 0; padding:0; display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:12px; }
  .hm-steps li { display:flex; flex-direction:column; gap:4px; padding:14px; border-radius:11px; border:1px solid var(--hm-line); background:#fcfcfb; }
  .hm-steps li.next { background:#fff; border-color:color-mix(in srgb, var(--c) 45%, #fff);
    box-shadow:0 8px 20px -14px color-mix(in srgb, var(--c) 80%, transparent); }
  .hm-steps li.done { opacity:.72; }
  .hm-steps .n { width:26px; height:26px; margin-bottom:6px; display:grid; place-items:center; border-radius:50%;
    font-size:12px; font-weight:700; color:var(--c); background:var(--t); }
  .hm-steps li.done .n { color:#fff; background:var(--c); }
  .hm-steps b { font-weight:600; }
  .hm-steps .t { font-size:12.5px; color:var(--mut); }
  .hm-link { align-self:flex-start; margin-top:auto; padding:8px 0 0; display:inline-flex; align-items:center; gap:5px;
    font:inherit; font-size:13px; font-weight:600; color:var(--c); background:none; border:0; cursor:pointer; }
  .hm-link:hover { text-decoration:underline; }

  /* pillars */
  .hm-pillars { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:18px; }
  .hm-pillar { position:relative; overflow:hidden; display:flex; flex-direction:column; gap:12px; padding:18px 18px 16px; }
  .hm-pillar::before { content:''; position:absolute; left:0; right:0; top:0; height:3px; background:var(--c); }
  .hm-pillar::after { content:''; position:absolute; right:-70px; top:-80px; width:200px; height:200px; border-radius:50%; pointer-events:none;
    background:radial-gradient(circle, color-mix(in srgb, var(--c) 13%, transparent), transparent 70%); }
  .hm-ph { display:flex; align-items:center; gap:10px; }
  .hm-ph .ico { width:34px; height:34px; border-radius:9px; }
  .hm-ph .nm { font-size:14.5px; font-weight:600; }
  .hm-ph a { position:relative; z-index:1; margin-left:auto; display:inline-flex; align-items:center; gap:3px;
    font-size:12.5px; font-weight:600; color:var(--c); text-decoration:none; }
  .hm-ph a:hover { text-decoration:underline; }
  .hm-big { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 9px; }
  .hm-big b { font:600 38px/1 var(--hm-display); letter-spacing:-.02em; color:var(--ink); }
  .hm-big span { font-size:13px; color:var(--mut); }
  .hm-facts { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:7px; font-size:13px; }
  .hm-facts li { display:flex; align-items:baseline; gap:9px; }
  .hm-facts li::before { content:''; flex-shrink:0; width:6px; height:6px; border-radius:50%; background:var(--c); opacity:.55; transform:translateY(-2px); }
  .hm-facts b { font-weight:600; }
  .hm-pols { list-style:none; margin:0; padding:10px 0 0; display:flex; flex-direction:column; gap:7px; font-size:12.5px; border-top:1px dashed var(--hm-line); }
  .hm-pols li { display:flex; align-items:center; gap:8px; min-width:0; }
  .hm-pols .v { flex-shrink:0; padding:1px 6px; border-radius:6px; font-size:11px; font-weight:700; color:var(--c); background:var(--t); }
  .hm-pols b { min-width:0; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .hm-pols em { flex-shrink:0; margin-left:auto; font-style:normal; font-size:11.5px; color:var(--mut); }
  .hm-latest, .hm-signer, .hm-meter { padding-top:10px; font-size:12.5px; border-top:1px dashed var(--hm-line); }
  .hm-latest span { display:block; margin-bottom:2px; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--mut); }
  .hm-latest b { display:block; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .hm-latest em, .hm-signer em { font-style:normal; color:var(--mut); }
  .hm-signer { display:flex; align-items:flex-start; gap:8px; color:var(--c); }
  .hm-signer span { color:var(--ink); }
  .hm-signer em { display:block; font-size:12px; }
  .hm-signer a { display:block; color:var(--c); font-weight:600; }
  .hm-meter .lbl { display:flex; justify-content:space-between; gap:8px; margin-bottom:6px; color:var(--mut); }
  .hm-meter .lbl b { color:var(--ink); }
  .hm-meter .bar { height:8px; border-radius:4px; background:var(--t); }
  .hm-meter .bar > div { height:100%; border-radius:4px; background:var(--c); }
  .hm-note { margin:0; font-size:12.5px; color:var(--mut); }
  .hm-pcta { margin-top:auto; width:100%; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 12px;
    font:inherit; font-size:13px; font-weight:600; color:var(--c); background:var(--t); border:0; border-radius:9px; cursor:pointer;
    transition:filter .15s; }
  .hm-pcta:hover { filter:brightness(.96) saturate(1.25); }

  /* activity + check-ins */
  .hm-feed, .hm-devs { list-style:none; margin:0; padding:0; }
  .hm-feed li { display:flex; align-items:center; gap:12px; padding:9px 0; border-top:1px solid #f2f0ee; }
  .hm-feed li:first-child { padding-top:0; border-top:0; }
  .hm-av { width:32px; height:32px; flex-shrink:0; display:grid; place-items:center; border-radius:50%;
    font-size:12px; font-weight:700; color:#fff; background:var(--c); }
  .hm-feed .tx { flex:1; min-width:0; }
  .hm-feed .tx b { font-weight:600; }
  .hm-feed .s { font-size:12px; color:var(--mut); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .hm-feed time, .hm-devs time { flex-shrink:0; font-size:12px; color:var(--mut); white-space:nowrap; }
  .hm-devs li { display:flex; align-items:center; gap:10px; margin:0 -8px; padding:9px 8px; border-radius:8px; cursor:pointer; }
  .hm-devs li:hover { background:#f6f5f3; }
  .hm-devs b { min-width:0; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .hm-devs em { font-style:normal; font-size:12px; color:var(--mut); }
  .hm-devs time { margin-left:auto; }
  .hm-dot { width:9px; height:9px; flex-shrink:0; border-radius:50%; background:var(--c);
    box-shadow:0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
  .hm-devfoot { margin-top:10px; padding-top:10px; font-size:12px; color:var(--mut); border-top:1px solid #f2f0ee; }

  /* narrower main areas (the nav stays) */
  @container (max-width:1100px) { .hm-pillars { grid-template-columns:repeat(2, minmax(0,1fr)); } }
  @container (max-width:900px) {
    .hm-row { grid-template-columns:minmax(0,1fr); }
    .hm-hero { flex-direction:column; align-items:flex-start; }
    .hm-ring { align-self:center; }
    .hm-mark { display:none; }
  }
  @container (max-width:560px) {
    .hm-pillars, .hm-actions { grid-template-columns:minmax(0,1fr); }
    .hm-hero { padding:24px 20px; }
    .hm-hero h1 { font-size:28px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .home *, .home *::before, .home *::after { animation:none !important; transition:none !important; }
  }
