@font-face {
  font-family: "Haffer XH";
  src: url("fonts/haffer-xh-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Haffer XH";
  src: url("fonts/haffer-xh-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Haffer SQXH";
  src: url("fonts/haffer-sqxh.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --algo-dark-blue:       #0B3A4E;  /* Primary       - Pantone 548 C */
  --algo-dark-blue-deep:  #062735;  /* His shade for the pressed/hover state of a blue button */
  --algo-turquoise:       #6CC4BD;  /* Secondary     - Pantone 570 C */
  --algo-orange:          #FA801C;  /* Tertiary      - Pantone 1495 C */
  --algo-dark-grey:       #45484A;  /* Secondary     - Pantone 2336 C */

  --algo-dark-blue-90:    #234c5f;
  --algo-dark-blue-70:    #4c6e7d;
  --algo-dark-blue-20:    #cfd8dc;
  --algo-dark-blue-10:    #e7ebee;
  --algo-dark-blue-05:    #f3f5f7;

  --algo-turquoise-70:    #93d3ce;
  --algo-turquoise-40:    #c4e7e4;
  --algo-turquoise-15:    #e8f6f4;

  --algo-orange-70:       #fba659;
  --algo-orange-15:       #fee5cf;

  --algo-black:           #0B0E10;
  --algo-grey-90:         #1f2224;
  --algo-grey-70:         --algo-dark-grey;
  --algo-grey-50:         #6b7073;
  --algo-grey-30:         #a8acaf;
  --algo-grey-15:         #d4d6d8;
  --algo-grey-08:         #e8eaeb;
  --algo-grey-04:         #f4f5f6;
  --algo-paper:           #fafbfb;
  --algo-white:           #ffffff;

  --bg:                   var(--algo-white);
  --bg-elevated:          var(--algo-white);          /* --surface   */
  --bg-muted:             var(--algo-dark-blue-05);   /* --bg-2      */
  --bg-chip:              var(--algo-dark-blue-10);   /* --chip      */
  --bg-inverse:           var(--algo-dark-blue);      /* --primary-bg */
  --bg-inverse-hover:     var(--algo-dark-blue-deep); /* his .abtn.primary:hover */
  --bg-accent-soft:       var(--algo-turquoise-15);   /* --soft      */
  --bg-bubble:            var(--algo-turquoise-15);

  --fg-primary:           var(--algo-dark-blue);   /* --fg-strong: headings, key UI text */
  --fg-body:              var(--algo-dark-grey);   /* --fg: recommended body color per guidelines */
  --fg-muted:             var(--algo-grey-50);     /* --muted      */
  --fg-inverse:           var(--algo-white);       /* --primary-fg */
  --fg-bubble:            var(--fg-primary);       /* --bubble-fg  */
  --fg-accent:            var(--algo-orange);      /* used sparingly */
  --fg-link:              var(--algo-dark-blue);
  --fg-link-hover:        var(--algo-orange);

  --border-subtle:        var(--algo-grey-08);      /* --line      */
  --border:               var(--algo-grey-15);      /* --line-2    */
  --border-accent:        var(--algo-turquoise-40); /* --soft-line */
  --border-strong:        var(--algo-dark-blue);

  --success:              #2A8C6B;
  --success-soft:        #dcefe6;
  --warning:              var(--algo-orange);
  --warn-bg:              #FFF1E3;
  --warn-line:            #F6D0AD;
  --fg-warning:           #8A4A10;
  --danger:               #C0392B;
  --info:                 var(--algo-turquoise);

  --font-sans:            "Haffer XH", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono:            "Haffer SQXH", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fw-regular:           400;
  --fw-semibold:          600;

  --fs-display-xl:        72px;   /* hero / brand statements */
  --fs-display-lg:        56px;
  --fs-display:           44px;
  --fs-h1:                36px;
  --fs-h2:                28px;
  --fs-h3:                22px;
  --fs-h4:                18px;
  --fs-body-lg:           18px;
  --fs-body:              16px;
  --fs-body-sm:           14px;
  --fs-caption:           13px;
  --fs-overline:          12px;

  --lh-tight:             1.05;
  --lh-snug:              1.2;
  --lh-normal:            1.45;
  --lh-relaxed:           1.6;

  --tracking-tight:       -0.02em;
  --tracking-normal:      0;
  --tracking-wide:        0.04em;
  --tracking-overline:    0.18em;   /* used for the wide-spaced caps Algo favors */

  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --radius-none:   0;
  --radius-sm:     2px;
  --radius:        4px;
  --radius-md:     8px;
  --radius-lg:     12px;
  --radius-pill:   999px;

  --shadow-xs:   0 1px 2px rgba(11, 58, 78, 0.06);
  --shadow-sm:   0 2px 6px rgba(11, 58, 78, 0.08);
  --shadow-md:   0 8px 24px rgba(11, 58, 78, 0.10);
  --shadow-lg:   0 16px 48px rgba(11, 58, 78, 0.14);

  --focus-ring:  0 0 0 3px rgba(108, 196, 189, 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --algo-dark-grey:       #d3dbdf;  /* his --fg */
    --algo-dark-blue-70:    #9aa8b0;  /* derived: the typing dot has to show on dark */
    --algo-dark-blue-10:    #45525b;  /* his --line-2 */
    --algo-dark-blue-05:    #2c373e;  /* his --chip */
    --algo-turquoise-15:    #1d3537;  /* his --soft */
    --algo-turquoise-40:    #2e5657;  /* his --soft-line */
    --algo-grey-50:         #9aa8b0;  /* his --muted */
    --algo-grey-30:         #7c8a92;  /* derived: one step quieter than his --muted */
    --algo-grey-15:         #45525b;  /* his --line-2 */
    --algo-grey-08:         #313b42;  /* his --line */
    --algo-grey-04:         #232b30;  /* his --bg-2 */

    --bg:                   #1b2125;  /* his --bg */
    --bg-elevated:          #20282d;  /* his --surface */
    --bg-muted:             var(--algo-grey-04);       /* his --bg-2 */
    --bg-chip:              var(--algo-dark-blue-05);  /* his --chip crosses over with --bg-2 */
    --bg-inverse:           #e8eef1;  /* his --primary-bg */
    --bg-inverse-hover:     var(--algo-white);
    --fg-inverse:           var(--algo-dark-blue);  /* his --primary-fg */
    --bg-bubble:            #22393b;  /* his --bubble */
    --fg-bubble:            #e8f6f4;  /* his --bubble-fg */
    --fg-primary:           #f2f5f6;  /* his --fg-strong */
    --fg-link:              #f2f5f6;  /* his .link is --fg-strong, not the brand blue */
    --border-strong:        #f2f5f6;  /* his .comp.focus border */
    --success:              #5cc39c;
  --success-soft:        #dcefe6;  /* his --ok */
    --warn-bg:              #3a2a1c;  /* his --warn-bg */
    --warn-line:            #6b4a2c;  /* his --warn-line */
    --fg-warning:           #fbc08a;  /* his --warn-fg */
    --danger:               #ff8a96;  /* his dark --ox-red */

    --shadow-xs:   0 1px 2px rgba(0, 0, 0, 0.19);
    --shadow-sm:   0 2px 6px rgba(0, 0, 0, 0.26);
    --shadow-md:   0 8px 24px rgba(0, 0, 0, 0.32);
    --shadow-lg:   0 16px 48px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  --algo-dark-grey:       #d3dbdf;
  --algo-dark-blue-70:    #9aa8b0;
  --algo-dark-blue-10:    #45525b;
  --algo-dark-blue-05:    #2c373e;
  --algo-turquoise-15:    #1d3537;
  --algo-turquoise-40:    #2e5657;
  --algo-grey-50:         #9aa8b0;
  --algo-grey-30:         #7c8a92;
  --algo-grey-15:         #45525b;
  --algo-grey-08:         #313b42;
  --algo-grey-04:         #232b30;

  --bg:                   #1b2125;
  --bg-elevated:          #20282d;
  --bg-muted:             var(--algo-grey-04);
  --bg-chip:              var(--algo-dark-blue-05);
  --bg-inverse:           #e8eef1;
  --bg-inverse-hover:     var(--algo-white);
  --fg-inverse:           var(--algo-dark-blue);
  --bg-bubble:            #22393b;
  --fg-bubble:            #e8f6f4;
  --fg-primary:           #f2f5f6;
  --fg-link:              #f2f5f6;
  --border-strong:        #f2f5f6;
  --success:              #5cc39c;
  --success-soft:        #dcefe6;
  --warn-bg:              #3a2a1c;
  --warn-line:            #6b4a2c;
  --fg-warning:           #fbc08a;
  --danger:               #ff8a96;

  --shadow-xs:   0 1px 2px rgba(0, 0, 0, 0.19);
  --shadow-sm:   0 2px 6px rgba(0, 0, 0, 0.26);
  --shadow-md:   0 8px 24px rgba(0, 0, 0, 0.32);
  --shadow-lg:   0 16px 48px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--fg-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  color: var(--fg-primary);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug);
  margin: 0;
}

p { margin: 0; line-height: var(--lh-relaxed); }

a {
  color: var(--fg-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

button, input, textarea { font-family: inherit; }

.pane {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg-body);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

.eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-muted); }
.h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; color: var(--fg-primary); }
.lead { margin: 0; font-size: 13px; line-height: 1.5; color: var(--fg-muted); }

.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic.s12 { width: 12px; height: 12px; }
.ic.s14 { width: 14px; height: 14px; }
.ic.s18 { width: 18px; height: 18px; }
.ic.s20 { width: 20px; height: 20px; }
.ic.s28 { width: 28px; height: 28px; }

.ib { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 4px; background: none; color: var(--fg-muted); padding: 0; cursor: pointer; text-decoration: none; }
.ib:hover, .ib.on { background: var(--bg-muted); color: var(--fg-primary); }
.sp { flex: 1; }

.phead { height: 48px; flex-shrink: 0; display: flex; align-items: center; gap: 2px; padding: 0 6px 0 14px; border-bottom: 1px solid var(--border-subtle); }
.pname { font-size: 14px; font-weight: 600; color: var(--fg-primary); margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--border); line-height: 16px; white-space: nowrap; }

.ctx { display: flex; align-items: center; gap: 8px; margin: 10px 12px 0; padding: 7px 10px; border: 1px solid var(--border-subtle); border-radius: 6px; background: var(--bg-muted); font-size: 12px; color: var(--fg-muted); flex-shrink: 0; }
.ctx .t { flex: 1; min-width: 0; }
.ctx b { display: block; color: var(--fg-primary); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pbody { flex: 1; min-height: 0; overflow: hidden; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.pbody.center { justify-content: center; }
#thread { display: flex; flex-direction: column; gap: 10px; }
#thread:empty { display: none; }

.comp-wrap { flex-shrink: 0; padding: 6px 10px 12px; }
.comp { border: 1px solid var(--border); border-radius: 8px; background: var(--bg-elevated); padding: 8px 8px 8px 12px; display: flex; flex-direction: column; gap: 4px; }
.comp:focus-within { border-color: var(--border-strong); box-shadow: var(--focus-ring); }
.comp textarea { width: 100%; min-height: 38px; border: 0; outline: none; resize: none; background: transparent; color: var(--fg-body); font: inherit; font-size: 13px; line-height: 1.45; padding: 3px 0; box-shadow: none; }
.comp textarea { field-sizing: content; max-height: 220px; overflow-y: auto; scrollbar-width: thin; }
.comp textarea::placeholder { color: var(--fg-muted); }
.ctools { display: flex; align-items: center; gap: 6px; }
.ctog { height: 28px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg-elevated); color: var(--fg-muted); font: 600 12px var(--font-sans); cursor: pointer; }
.ctog[aria-pressed="true"] { background: var(--bg-accent-soft); border-color: var(--border-accent); color: var(--fg-primary); }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px; border-radius: 4px; background: var(--bg-chip); color: var(--fg-primary); font-size: 10.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.link { color: var(--fg-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.link:hover { color: var(--algo-orange); }
.seg { display: flex; padding: 2px; background: var(--bg-muted); border: 1px solid var(--border-subtle); border-radius: 6px; }
.seg button { height: 26px; padding: 0 9px; border: 0; border-radius: 4px; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--fg-muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--bg-inverse); color: var(--fg-inverse); }
.send { width: 32px; height: 32px; border-radius: 6px; border: 0; background: var(--bg-inverse); color: var(--fg-inverse); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; text-decoration: none; }
.send.off, .send:disabled { opacity: .35; cursor: default; }
.hint { font-size: 11px; color: var(--fg-muted); text-align: center; padding-top: 6px; }

.cchips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.cchip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 4px 0 8px; border-radius: 4px; background: var(--bg-accent-soft); border: 1px solid var(--border-accent); color: var(--fg-primary); font-size: 12px; font-weight: 600; }
.cchip.mail { background: var(--bg-muted); border-color: var(--border); font-weight: 500; max-width: 100%; min-width: 0; }
.cchip.mail .ct { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cchip button { width: 18px; height: 18px; border: 0; border-radius: 3px; background: none; color: var(--fg-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.cchip button:hover { background: var(--border-accent); color: var(--fg-primary); }

.qa { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 1px solid var(--border-subtle); border-radius: 6px; background: var(--bg-elevated); color: var(--fg-primary); text-decoration: none; text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.qa:hover { border-color: var(--border-accent); background: var(--bg-muted); }
.qa .qi { width: 28px; height: 28px; border-radius: 4px; background: var(--bg-chip); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--fg-primary); }
.qa .qt { flex: 1; min-width: 0; }
.qa b { display: block; font-size: 13px; font-weight: 600; }
.qa span.d { display: block; font-size: 12px; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa.skill { border-style: dashed; }

.bubble { align-self: flex-end; max-width: 90%; padding: 9px 12px; border-radius: 8px; background: var(--bg-bubble); color: var(--fg-bubble); font-size: 13px; line-height: 1.45; }
.meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-muted); }
.meta b { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; flex-shrink: 0; color: var(--fg-primary); font-size: 13px; font-weight: 600; }
.meta b::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--algo-orange); }
.stepsbtn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; font: inherit; font-size: 12px; color: var(--fg-muted); padding: 2px 4px; border-radius: 4px; }
.done { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg-elevated); overflow: hidden; }
.done-h { display: flex; gap: 10px; align-items: center; padding: 12px; border-bottom: 1px solid var(--border-subtle); background: var(--bg-muted); }
.done-h .ok { width: 28px; height: 28px; border-radius: 999px; background: var(--success-soft); color: var(--success); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.done-h b { display: block; font-size: 13px; font-weight: 600; color: var(--fg-primary); }
.done-h span { display: block; font-size: 12px; color: var(--fg-muted); }

.cov { display: flex; flex-direction: column; }
.cov-r { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-bottom: 1px solid var(--border-subtle); font-size: 12.5px; line-height: 1.45; color: var(--fg-body); }
.cov-r:last-child { border-bottom: 0; }
.cov-r .n { font: 600 11px/18px var(--font-mono); color: var(--fg-muted); width: 14px; flex-shrink: 0; }
.cov-r b { color: var(--fg-primary); font-weight: 600; }
.cov-r.need { background: var(--warn-bg); }
.cov-r.need b, .cov-r.need .n { color: var(--fg-warning); }

.ans { font-size: 13px; line-height: 1.55; color: var(--fg-body); display: flex; flex-direction: column; gap: 10px; }
.ans p { margin: 0; }
.ans b, .ans strong { color: var(--fg-primary); font-weight: 600; }
.sec { display: flex; flex-direction: column; gap: 6px; }
.cite { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; margin-left: 4px; border: 0; border-radius: 999px; background: var(--bg-chip); color: var(--fg-muted); font: 500 11px/1 var(--font-sans); vertical-align: 1px; white-space: nowrap; cursor: pointer; }
.cite:hover { background: var(--algo-orange); color: var(--algo-white); }
.cite.k { background: var(--bg-accent-soft); color: var(--fg-primary); }
.cite:not([role]) { cursor: default; }

.next { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--border-accent); border-radius: 8px; background: var(--bg-accent-soft); line-height: 1.45; }
.next p { margin: 0; font-size: 13px; color: var(--fg-primary); line-height: 1.5; }
.muted { color: var(--fg-muted); }

.foot { display: flex; align-items: center; gap: 2px; padding-top: 8px; border-top: 1px solid var(--border-subtle); }
.foot .ib { width: 28px; height: 28px; }

.menu { position: absolute; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: 8px; box-shadow: var(--shadow-lg); padding: 4px; display: flex; flex-direction: column; gap: 1px; z-index: 5; }
.mi { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 6px 10px; border: 0; border-radius: 4px; background: none; font: inherit; font-size: 13px; color: var(--fg-body); text-align: left; cursor: pointer; width: 100%; }
.mi:hover, .mi.on { background: var(--bg-muted); color: var(--fg-primary); }
.mh { padding: 8px 10px 4px; }
.msep { height: 1px; background: var(--border-subtle); margin: 4px 2px; }

.banner { display: flex; flex-direction: column; gap: 8px; margin: 10px 12px 0; padding: 10px 12px; border-radius: 6px; background: var(--warn-bg); border: 1px solid var(--warn-line); font-size: 12px; color: var(--fg-primary); }
.banner .row { display: flex; gap: 8px; }
.mini { height: 26px; padding: 0 10px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg-elevated); color: var(--fg-primary); font: 600 12px var(--font-sans); cursor: pointer; }
.mini.p { background: var(--bg-inverse); border-color: var(--bg-inverse); color: var(--fg-inverse); }

.chipbtn { height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg-elevated); color: var(--fg-primary); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chipbtn:hover { border-color: var(--fg-primary); }

.abtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14px/1 var(--font-sans); padding: 12px 22px; border-radius: 4px; border: 1.5px solid transparent; cursor: pointer; transition: all .15s ease; text-decoration: none; white-space: nowrap; }
.abtn:active { transform: scale(.99); }
.abtn.sm { font-size: 13px; padding: 8px 14px; }
.abtn.primary { background: var(--bg-inverse); border-color: var(--bg-inverse); color: var(--fg-inverse); }
.abtn.primary:hover { background: var(--bg-inverse-hover); border-color: var(--bg-inverse-hover); }

.stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.stepper button { width: 32px; height: 30px; border: 0; background: var(--bg-elevated); color: var(--fg-primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.stepper span { min-width: 52px; text-align: center; font-size: 12px; font-weight: 600; color: var(--fg-primary); border-left: 1px solid var(--border); border-right: 1px solid var(--border); height: 30px; line-height: 30px; }

#pane { height: 100%; }

:root { zoom: var(--zoom, 1); }
:root[data-zoom="80"]  { --zoom: 0.8; }
:root[data-zoom="90"]  { --zoom: 0.9; }
:root[data-zoom="100"] { --zoom: 1; }
:root[data-zoom="110"] { --zoom: 1.1; }
:root[data-zoom="120"] { --zoom: 1.2; }
:root[data-zoom="130"] { --zoom: 1.3; }
:root[data-zoom="140"] { --zoom: 1.4; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden;
}

textarea.aa-input { font-family: var(--font-sans); }
textarea.aa-input::placeholder { color: var(--fg-muted); }
textarea.aa-input:focus { outline: none; }
.aa-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--algo-dark-blue-70); display: inline-block; animation: aaBlink 1.2s infinite ease-in-out; }
.aa-scroll::-webkit-scrollbar { width: 8px; }
.aa-scroll::-webkit-scrollbar-thumb { background: var(--algo-grey-15); border-radius: 999px; }
@keyframes aaPulse { 0% { box-shadow: 0 0 0 0 rgba(108,196,189,0.55);} 70% { box-shadow: 0 0 0 16px rgba(108,196,189,0);} 100% { box-shadow: 0 0 0 0 rgba(108,196,189,0);} }
@keyframes aaUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes aaPanelIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes aaSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes aaBlink { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.ob { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 28px 22px 22px; gap: 18px; }
.ob .grow { flex: 1; }
.ob .priv { font-size: 12.5px; line-height: 1.5; color: var(--fg-body); }
.h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: var(--fg-primary); }
.card { border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg-elevated); }
.priv { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.45; color: var(--fg-muted); }
.stepl { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); text-align: center; }
.fade { animation: fadein .18s cubic-bezier(.2,0,0,1); }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ms-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 44px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg-elevated); color: var(--fg-primary); font: 600 14px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.ms-btn:hover { background: var(--bg-muted); }
.msq { display: grid; grid-template-columns: repeat(2, 9px); gap: 1px; }
.msq i { width: 9px; height: 9px; display: block; }
.stp { display: flex; gap: 14px; padding: 14px 16px; align-items: flex-start; border-bottom: 1px solid var(--border-subtle); }
.stp:last-child { border-bottom: 0; }
.stp .n { width: 26px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font: 600 12px var(--font-mono); border: 1.5px solid var(--border); color: var(--fg-muted); }
.stp.s-done .n { background: #2a8c6b; border-color: #2a8c6b; color: #fff; }
.stp.s-now { background: var(--bg-muted); }
.stp.s-now .n { border-color: var(--fg-primary); color: var(--fg-primary); }
.stp b { display: block; font-size: 14px; font-weight: 600; color: var(--fg-primary); margin-bottom: 2px; }
.stp span.d { display: block; font-size: 12.5px; line-height: 1.45; color: var(--fg-muted); }
.stp.s-todo b { color: var(--fg-body); font-weight: 400; }
.prog { display: flex; flex-direction: column; gap: 12px; }
.bar { height: 4px; border-radius: 999px; background: var(--border-subtle); overflow: hidden; }
.bar i { display: block; height: 100%; width: 72%; background: var(--algo-turquoise); }
.spin { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.prog-r { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--fg-body); }
.prog-r .c { width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid var(--border-subtle); color: var(--success); background: var(--bg); }
.prog-r.now .c { color: var(--algo-orange); border-color: var(--warn-line); background: var(--warn-bg); }
.prog-r b { display: block; font-weight: 600; color: var(--fg-primary); }
.prog-r span { display: block; font-size: 12px; color: var(--fg-muted); }
.profile { border: 1px solid var(--border); border-radius: 4px; background: var(--bg-elevated); padding: 10px 12px; font-size: 12.5px; line-height: 1.5; color: var(--fg-body); display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.profile h5 { margin: 0 0 3px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.profile ul { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 3px; }
.profile b { color: var(--fg-primary); font-weight: 600; }

#pane.first-run > :not(#onboard) { display: none; }
#onboard { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.mem-list { display: flex; flex-direction: column; gap: 8px; overflow: auto; flex: 1; min-height: 0; }
.mem-row { border: 1px solid var(--border); border-radius: 4px; background: var(--bg-elevated); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.mem-text { font-size: 12.5px; line-height: 1.5; color: var(--fg-body); white-space: pre-wrap; outline: none; }
.mem-text:focus { color: var(--fg-primary); }
.mem-meta { display: flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-muted); }
.mem-action { margin-left: auto; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.mem-row.going { opacity: .45; }
