/* Vendored verbatim from the Claude Design project (a085aab3), tokens/colors.css.
   Re-sync with `DesignSync get_file`; keep this file a byte-for-byte copy below
   the header so the diff stays readable. */

/* ============================================================
   Laminar — Color tokens
   Source of truth: Figma "Default" mode variable export (Base,
   Grey, Light blue, Lime, Citrine, Magenta, Apricot, Lilac, Clay,
   Charts Tint, Utility). Every hex below is one of those exact
   swatches — no invented shades. Neutral ramp = Grey + Base only.
   ============================================================ */

:root {
  /* ---- Base ---- */
  --black:        #000000;
  --black-85:     rgba(0,0,0,0.85);
  --black-60:     rgba(0,0,0,0.6);
  --white:        #FFFFFF;
  --white-60:     rgba(255,255,255,0.6);
  --white-40:     rgba(255,255,255,0.4);

  /* ---- Grey (Neutral ramp — exact Figma "Grey" collection, no added steps) ---- */
  --grey-950:      #F2F2F2;
  --grey-900:      #E5E5E5;
  --grey-700:      #B3B3B3;
  --grey-400:      #666666;
  --grey-150-rule: #252525;
  --grey-100-bg:   #161616;
  --grey-image-overlay: rgba(102,102,102,0.75);

  /* Neutral-ramp aliases (kept for existing components; values collapse onto the Grey set above) */
  --neutral-50:  var(--grey-950);
  --neutral-100: var(--grey-950);
  --neutral-200: var(--grey-900);
  --neutral-300: var(--grey-700);
  --neutral-400: var(--grey-400);
  --neutral-500: var(--grey-400);
  --neutral-600: var(--grey-150-rule);
  --neutral-700: var(--grey-150-rule);
  --neutral-800: var(--grey-100-bg);
  --neutral-900: var(--grey-100-bg);
  --neutral-950: var(--black);
  --paper:       var(--white);
  --paper-blue:  var(--white);

  /* ---- UI palette aliases (unchanged names, collapsed onto Grey set) ---- */
  --ui-black:        var(--black);
  --ui-white:        var(--white);
  --ui-paper:        var(--white);
  --ui-paper-blue:   var(--white);
  --ui-dark-grey-3:  var(--grey-150-rule);
  --ui-dark-grey-2:  var(--grey-150-rule);
  --ui-dark-grey-1:  var(--grey-400);
  --ui-grey:         var(--grey-400);
  --ui-light-grey-4: var(--grey-400);
  --ui-light-grey-3: var(--grey-700);
  --ui-light-grey-2: var(--grey-700);
  --ui-light-grey-1: var(--grey-900);

  /* ---- Accent: Light Blue ---- */
  --light-blue-pale:   #F0FBFF;
  --light-blue-light:  #CCF2FF;
  --light-blue:        #80DFFF;
  --light-blue-medium: #277B97;
  --light-blue-dark:   #0D161A;
  --light-blue-text:   var(--light-blue-medium);
  --light-blue-bg:     var(--light-blue-pale);
  --light-blue-shade-1: var(--light-blue-medium);
  --light-blue-tint-2:  var(--charts-tint-light-blue-60);

  /* ---- Accent: Lime ---- */
  --lime-pale:   #F1FFF0;
  --lime-light:  #DCFFD9;
  --lime:        #A5FF9E;
  --lime-medium: #098000;
  --lime-dark:   #0A1909;
  --lime-text:   var(--lime-medium);
  --lime-bg:     var(--lime-pale);

  /* ---- Accent: Citrine ---- */
  --citrine-pale:   #FCFCE3;
  --citrine-light:  #FAFAC0;
  --citrine:        #F2F261;
  --citrine-medium: #767600;
  --citrine-dark:   #161609;
  --citrine-text:   var(--citrine-medium);
  --citrine-bg:     var(--citrine-pale);

  /* ---- Accent: Magenta ---- */
  --magenta-pale:   #FFE8FF;
  --magenta-light:  #FFB2FF;
  --magenta:        #FF66FF;
  --magenta-medium: #BF2EBF;
  --magenta-dark:   #220E22;
  --magenta-text:   var(--magenta-medium);
  --magenta-bg:     var(--magenta-pale);

  /* ---- Accent: Apricot ---- */
  --apricot-pale:   #FFE9D9;
  --apricot-light:  #FF8F40;
  --apricot:        #FF6A00;
  --apricot-medium: #C05000;
  --apricot-dark:   #261000;
  --apricot-text:   var(--apricot-medium);
  --apricot-bg:     var(--apricot-pale);

  /* ---- Accent: Lilac ---- */
  --lilac-pale:   #F2F0FF;
  --lilac-light:  #E6E0FF;
  --lilac:        #BFB2FF;
  --lilac-medium: #7467B7;
  --lilac-dark:   #16151F;
  --lilac-text:   var(--lilac-medium);
  --lilac-bg:     var(--lilac-pale);

  /* ---- Clay ---- */
  --clay-pale:   #F7FAF5;
  --clay-light:  #ECF2E6;
  --clay:        #DAE5CF;
  --clay-medium: #6B7560;
  --clay-dark:   #161611;
  --clay-text:   var(--clay-medium);
  --clay-bg:     var(--clay-pale);

  /* ---- Charts Tint (exact alpha swatches used on chart fills) ---- */
  --charts-tint-lime-60:       rgba(165,255,158,0.6);
  --charts-tint-lime-30:       rgba(165,255,158,0.3);
  --charts-tint-light-blue-60: rgba(128,223,255,0.5);
  --charts-tint-light-blue-40: rgba(128,223,255,0.6);
  --charts-tint-lilac-60:      rgba(191,178,255,0.6);
  --charts-tint-lilac-40:      rgba(191,178,255,0.6);
  --charts-tint-magenta-60:    rgba(255,102,255,0.6);
  --charts-tint-magenta-40:    rgba(255,102,255,0.4);
  --charts-tint-apricot-60:    rgba(255,106,0,0.6);
  --charts-tint-apricot-40:    rgba(255,106,0,0.6);
  --charts-tint-citrine-60:    rgba(242,242,97,0.6);
  --charts-tint-citrine-40:    rgba(242,242,97,0.4);
  --charts-tint-clay-60:       rgba(218,229,207,0.6);
  --charts-tint-clay-40:       rgba(218,229,207,0.4);

  /* ---- Source-system brand colors (unchanged — not part of Accent/Neutral scope) ---- */
  --source-salesforce: #00A1E0;
  --source-sap:        #0370F2;
  --source-servicenow: #00850B;

  /* ============================================================
     Status palette — destructive + medium warning
     (left as-is: outside the Accent-family / Neutral-ramp scope,
     except Utility/Alert below which is the Figma-specified red)
  ============================================================ */
  --utility-alert: #CC1414;
  --destructive:         #C91919;
  --destructive-shade-1: #942525;
  --destructive-shade-2: #552222;
  --destructive-shade-3: #331212;
  --destructive-shade-4: #1A0808;
  --destructive-tint-4:  rgba(255,0,93,0.03);
  --destructive-tint-3:  rgba(255,0,93,0.06);
  --destructive-tint-2:  rgba(255,0,93,0.12);
  --destructive-tint-1:  rgba(255,0,93,0.25);

  --medium:         #D9AB21;
  --medium-shade-1: #997A1F;
  --medium-shade-2: #5C4B17;
  --medium-shade-3: #33290A;
  --medium-shade-4: #1A1404;
  --medium-tint-4:  rgba(217,171,33,0.06);
  --medium-tint-3:  rgba(217,171,33,0.25);
  --medium-tint-2:  rgba(217,171,33,0.50);
  --medium-tint-1:  rgba(217,171,33,0.66);
  --medium-text:    var(--medium-shade-2);
  --medium-bg:      var(--medium-tint-4);

  /* ============================================================
     Semantic aliases — light theme
  ============================================================ */
  --background:           var(--white);
  --foreground:           var(--black);
  --card:                 var(--white);
  --card-foreground:      var(--black);
  --popover:              var(--white);
  --popover-foreground:   var(--black);

  --primary:              var(--grey-150-rule);
  --primary-foreground:   var(--grey-950);
  --secondary:            var(--grey-950);
  --secondary-foreground: var(--grey-150-rule);
  --muted:                var(--grey-950);
  --muted-foreground:     var(--grey-400);
  --accent:               var(--grey-950);
  --accent-foreground:    var(--grey-150-rule);
  --destructive-foreground: var(--white);

  --border: var(--grey-900);
  --input:  var(--grey-900);
  --ring:   var(--grey-400);

  /* Sidebar */
  --sidebar:                   var(--grey-950);
  --sidebar-foreground:        var(--black);
  --sidebar-accent:            var(--grey-950);
  --sidebar-accent-foreground: var(--grey-150-rule);
  --sidebar-border:            var(--grey-900);

  /* Status semantics */
  --status-success:    var(--lime-medium);
  --status-success-bg: var(--lime-pale);
  --status-warning:    var(--apricot-medium);
  --status-warning-bg: var(--apricot-pale);
  --status-medium:     var(--medium-shade-2);
  --status-medium-bg:  var(--medium-tint-4);
  --status-info:       var(--lilac-medium);
  --status-info-bg:    var(--lilac-pale);
  --status-danger:     var(--utility-alert);
  --status-danger-bg:  var(--destructive-tint-3);
}

:root[data-theme="dark"] {
  --background:           var(--black);
  --foreground:           var(--white);
  --card:                 var(--grey-100-bg);
  --card-foreground:      var(--white);
  --popover:              var(--grey-100-bg);
  --popover-foreground:   var(--white);

  --primary:              var(--grey-900);
  --primary-foreground:   var(--grey-100-bg);
  --secondary:            var(--grey-100-bg);
  --secondary-foreground: var(--white);
  --muted:                var(--grey-100-bg);
  --muted-foreground:     var(--grey-400);
  --accent:               var(--grey-150-rule);
  --accent-foreground:    var(--white);
  --destructive:          #E84444;

  --border: rgba(255,255,255,0.1);
  --input:  rgba(255,255,255,0.15);
  --ring:   var(--grey-400);

  --sidebar:                   var(--grey-100-bg);
  --sidebar-foreground:        var(--white);
  --sidebar-accent:            var(--grey-150-rule);
  --sidebar-accent-foreground: var(--white);
  --sidebar-border:            rgba(255,255,255,0.1);
}

/* ============================================================
   Explicit light lock — pins a document to the light theme even
   if a host injects `.dark` on <html>. Opt in with
   <html data-theme="light"> (or class="light"). Higher specificity
   than the bare `.dark` scope, so it wins; documents that want dark
   simply omit it and use [data-theme="dark"] / .dark instead.
   ============================================================ */
:root[data-theme="light"], :root.light {
  --background:           var(--white);
  --foreground:           var(--black);
  --card:                 var(--white);
  --card-foreground:      var(--black);
  --popover:              var(--white);
  --popover-foreground:   var(--black);

  --primary:              var(--grey-150-rule);
  --primary-foreground:   var(--grey-950);
  --secondary:            var(--grey-950);
  --secondary-foreground: var(--grey-150-rule);
  --muted:                var(--grey-950);
  --muted-foreground:     var(--grey-400);
  --accent:               var(--grey-950);
  --accent-foreground:    var(--grey-150-rule);
  --destructive:          #C91919;

  --border: var(--grey-900);
  --input:  var(--grey-900);
  --ring:   var(--grey-400);

  --sidebar:                   var(--grey-950);
  --sidebar-foreground:        var(--black);
  --sidebar-accent:            var(--grey-950);
  --sidebar-accent-foreground: var(--grey-150-rule);
  --sidebar-border:            var(--grey-900);

  color-scheme: light;
}
/* Vendored verbatim from the Claude Design project (a085aab3), tokens/spacing.css.
   Re-sync with `DesignSync get_file`. */

/* ============================================================
   Laminar — Spacing, radius, shadow & layout tokens
   Tight 4px-based spacing. Small radii (the product reads crisp,
   not pill-soft). Shadows are barely-there — elevation comes from
   1px borders and subtle surface shifts.
   ============================================================ */

:root {
  /* 4px base spacing scale */
  --space-0:   0px;
  --space-0-5: 2px;
  --space-1:   4px;
  --space-1-5: 6px;
  --space-2:   8px;
  --space-2-5: 10px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;

  /* Radii */
  --radius-xs:   2px;
  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   8px;
  --radius-xl:   14px;
  --radius-full: 9999px;

  /* Borders */
  --border-width: 1px;
  --border-width-2: 2px;

  /* Shadows — minimal elevation system */
  --shadow-xs: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.06), 0 1px 1px 0 rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.06);

  /* Control heights (shadcn size ramp) */
  --control-h-xs: 28px;
  --control-h-sm: 32px;
  --control-h-md: 36px;
  --control-h-lg: 40px;
}
/* Vendored verbatim from the Claude Design project (a085aab3), tokens/typography.css.
   Re-sync with `DesignSync get_file`. */

/* ============================================================
   Laminar — Typography tokens
   One typeface, one weight. Hierarchy comes from SIZE and color
   only — no bold, no second face.
   Scale mirrors the Tailwind/shadcn ramp used in the product.
   ============================================================ */

:root {
  --font-sans: "Basel Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Single weight — the brand never uses bold for emphasis */
  --font-weight: 400;

  /* Type scale (font-size / line-height) */
  --text-xs:    12px;   --text-xs-lh:   16px;
  --text-sm:    14px;   --text-sm-lh:   20px;
  --text-base:  16px;   --text-base-lh: 24px;
  --text-lg:    18px;   --text-lg-lh:   28px;
  --text-xl:    20px;   --text-xl-lh:   28px;
  --text-2xl:   24px;   --text-2xl-lh:  32px;
  --text-3xl:   30px;   --text-3xl-lh:  36px;
  --text-4xl:   40px;   --text-4xl-lh:  44px;

  --tracking-tight:  -0.01em;
  --tracking-normal: 0em;
  --tracking-wide:   0.02em;

  /* ---- App type scale ---- */
  --app-h1-size:        21px;  --app-h1-lh:        1.4;  /* @kind other */
  --app-h2-size:        14px;  --app-h2-lh:        1.4;  /* @kind other */
  --app-body-1-size:    14px;  --app-body-1-lh:    1.4;  /* @kind other */
  --app-body-2-size:    12px;  --app-body-2-lh:    1.4;  /* @kind other */
  --app-label-1-size:    8px;  --app-label-1-lh:   1.28; /* @kind other */
  --app-caption-1-size: 10px;  --app-caption-1-lh: 1.4;  /* @kind other */
  --app-caption-2-size:  8px;  --app-caption-2-lh: 1.4;  /* @kind other */
}
/*
 * Wayfinder's own styles, on the Laminar brand tokens the build puts before them in app.css. The
 * brand switches its tokens on data-theme, which the app sets once it runs; until then the page
 * takes the system's background so a dark system never flashes white.
 */

:root {
  color-scheme: light;
  --wayfinder-navy: #1d2433;
  --code-string: var(--lime-text);
  --code-keyword: var(--magenta-text);
  --code-number: var(--citrine-text);
  --code-type: var(--light-blue-text);
  --map-sea: var(--light-blue-bg);
  --map-realm: var(--lime-bg);
  --map-harbour: var(--citrine-bg);
  --map-depth: var(--light-blue-text);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --muted-foreground: var(--grey-700);
  --code-string: var(--lime);
  --code-keyword: var(--magenta);
  --code-number: var(--citrine);
  --code-type: var(--light-blue);
  --map-sea: var(--light-blue-dark);
  --map-realm: var(--lime-dark);
  --map-harbour: var(--citrine-dark);
  --map-depth: var(--light-blue);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --background: var(--black);
    --foreground: var(--white);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-synthesis: none;
  font-family: var(--font-sans);
  font-weight: var(--font-weight);
  font-size: var(--text-sm);
  line-height: var(--text-sm-lh);
  color: var(--foreground);
  background: var(--background);
}

a {
  color: inherit;
}

code,
pre,
.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--text-xs);
}

.muted {
  color: var(--muted-foreground);
}

.failure {
  padding: var(--space-3);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-md);
  background: var(--muted);
}

button,
select,
input {
  font: inherit;
  height: var(--control-h-sm);
  padding: 0 var(--space-3);
  border: var(--border-width) solid var(--grey-400);
  border-radius: var(--radius-md);
  background: var(--background);
  color: inherit;
}

button {
  cursor: pointer;
  background: var(--primary);
  color: var(--primary-foreground);
}

button.quiet {
  background: transparent;
  color: inherit;
}

:focus-visible {
  outline: var(--border-width-2) solid var(--foreground);
  outline-offset: var(--space-0-5);
}

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

.skip {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 2;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--foreground);
  color: var(--background);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

main:focus,
h1:focus,
h2:focus {
  outline: none;
}

button[aria-disabled="true"] {
  opacity: 0.6;
  cursor: progress;
}

.top {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: var(--border-width) solid var(--border);
  background: var(--background);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  padding: var(--space-2) var(--space-4) 0;
}

.tools {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

.tools select.branch {
  max-width: 14rem;
}

.context {
  padding: var(--space-1) var(--space-4) var(--space-2);
}

.top a {
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  white-space: nowrap;
}

.search.compact {
  flex: 1;
  min-width: 12rem;
  max-width: 40rem;
}

.search.hero input[type="search"] {
  width: 100%;
  height: var(--control-h-lg);
  margin: var(--space-2) 0 var(--space-4);
  font-size: var(--text-base);
}

.search input[type="search"] {
  width: 100%;
}

.stamp {
  color: var(--muted-foreground);
  font-size: var(--text-xs);
}

main {
  padding: var(--space-4) var(--space-6);
}

.home {
  max-width: 720px;
  margin: var(--space-12) auto;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0;
  list-style: none;
}

.examples a {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--muted);
  text-decoration: none;
}

.symbols {
  padding: 0;
  list-style: none;
}

.symbols li {
  padding: var(--space-1) 0;
}

.match {
  margin: var(--space-4) 0;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.match .scroll {
  overflow-x: auto;
}

.lines tr.gap td {
  color: var(--muted-foreground);
  background: var(--muted);
  line-height: 1;
}

.match h3 {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  background: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--font-weight);
}

.lines {
  width: 100%;
  border-collapse: collapse;
}

.lines td {
  padding: 0 var(--space-2);
  vertical-align: top;
}

.lines .number {
  width: 1%;
  text-align: right;
  color: var(--muted-foreground);
  user-select: none;
}

.lines .number a {
  text-decoration: none;
}

.lines .code {
  white-space: pre;
}

.lines .code a {
  text-decoration: underline dotted;
}

.lines tr.current td.number {
  background: var(--muted);
  color: var(--foreground);
  box-shadow: inset 3px 0 var(--foreground);
}

.lines td.number a {
  display: block;
  min-width: 24px;
}

@media (pointer: coarse) {
  .lines td {
    line-height: 24px;
  }
}

mark {
  border-radius: var(--radius-xs);
  background: var(--charts-tint-citrine-60);
  color: inherit;
  box-shadow: inset 0 -2px var(--citrine-text);
}

:root[data-theme="dark"] mark {
  background: var(--citrine-medium);
  color: var(--white);
  box-shadow: inset 0 -2px var(--citrine);
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b,
th {
  font-weight: var(--font-weight);
}

.file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--space-4);
  align-items: start;
}

.file > .pane {
  grid-column: 1;
  grid-row: 1;
}

.file > .panel {
  grid-column: 2;
  grid-row: 1;
}

.file.unlinked {
  grid-template-columns: minmax(0, 1fr);
}

.pane {
  overflow-x: auto;
}

.panel {
  position: sticky;
  top: calc(var(--top-height, 0px) + var(--space-4));
  max-height: calc(100vh - var(--top-height, 0px) - var(--space-8));
  overflow-y: auto;
  padding: var(--space-3);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-md);
}

.panel,
.panel code {
  overflow-wrap: anywhere;
}

.panel h2 {
  margin: 0 0 var(--space-1);
  font-size: var(--text-lg);
  line-height: var(--text-lg-lh);
}

.panel h2 code {
  font-size: inherit;
}

.panel h3 {
  margin: var(--space-4) 0 var(--space-1);
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.panel h4 {
  margin: var(--space-3) 0 var(--space-1);
  font-weight: var(--font-weight);
  color: var(--muted-foreground);
}

.references {
  margin: 0;
  padding: 0;
  list-style: none;
}

.references li {
  display: flex;
  gap: var(--space-2);
  padding: 0 var(--space-1);
  border-radius: var(--radius-sm);
}

.references li a {
  flex: none;
  min-width: 4ch;
  text-align: right;
}

.references li code {
  min-width: 0;
  overflow: hidden;
  white-space: pre;
  text-overflow: ellipsis;
  overflow-wrap: normal;
}

.references li.current {
  background: var(--muted);
}

.signature {
  white-space: pre-wrap;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--muted);
}

.branches td {
  padding: var(--space-1) var(--space-3) var(--space-1) 0;
}

.crumbs {
  margin: 0 0 var(--space-3);
  font-size: var(--text-base);
  overflow-wrap: anywhere;
}

.crumbs .file-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.home .tree {
  padding: var(--space-6) 0 0;
}

.entries {
  border-collapse: collapse;
  min-width: 50%;
}

.entries td {
  padding: var(--space-1) var(--space-3) var(--space-1) 0;
}

.entries tr:hover td {
  background: var(--muted);
}

.entries .icon {
  width: var(--space-4);
  color: var(--muted-foreground);
}

.entries a {
  text-decoration: none;
}

.entries a:hover {
  text-decoration: underline;
}

.token-comment {
  color: var(--muted-foreground);
}

.token-string {
  color: var(--code-string);
}

.token-keyword {
  color: var(--code-keyword);
}

.token-number {
  color: var(--code-number);
}

.token-type {
  color: var(--code-type);
}

.token-heading {
  color: var(--code-type);
  font-size: var(--text-sm);
}

.auth {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  min-height: 100vh;
  padding: 0;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  background: var(--wayfinder-navy);
}

.auth-brand img {
  width: min(100%, 520px);
  height: auto;
  mask-image:
    linear-gradient(to right, transparent, #000 16%, #000 84%, transparent),
    linear-gradient(to bottom, transparent, #000 9%, #000 89%, transparent);
  mask-composite: intersect;
}

.auth-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
}

.auth-content h1 {
  margin: 0;
  font-size: var(--text-2xl);
  line-height: var(--text-2xl-lh);
}

.auth-content p {
  margin: 0;
}

.auth-content .actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.auth-content .actions button {
  width: 100%;
  height: var(--control-h-md);
}

button.secondary {
  background: transparent;
  color: inherit;
}

button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.notice {
  padding: var(--space-3);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-md);
  background: var(--muted);
}

html {
  scroll-padding-top: calc(var(--top-height, 0px) + var(--space-4));
}

.file.previewing {
  grid-template-columns: minmax(0, 1fr);
}

.file-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  margin: 0 0 var(--space-3);
}

.file.previewing .file-heading {
  max-width: 80ch;
  font-size: var(--text-base);
}

.file-heading .crumbs {
  margin: 0;
}

.view-toggle {
  display: inline-flex;
  flex: none;
  padding: var(--space-0-5);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.view-toggle a {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--muted-foreground);
}

.view-toggle a:hover {
  color: var(--foreground);
}

.view-toggle a[aria-current="page"] {
  background: var(--foreground);
  color: var(--background);
}

.markdown {
  max-width: 80ch;
  font-size: var(--text-base);
  line-height: var(--text-base-lh);
  font-synthesis: none;
  overflow-wrap: break-word;
}

.markdown > :first-child,
.markdown > .heading:first-child > :first-child {
  margin-top: 0;
}

.markdown .heading {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6 {
  margin: var(--space-8) 0 var(--space-3);
  font-weight: var(--font-weight);
}

.markdown .level-1,
.markdown .level-2 {
  margin-bottom: var(--space-3);
  border-bottom: var(--border-width) solid var(--border);
}

.markdown .level-1 > h1,
.markdown .level-2 > h2 {
  margin-bottom: var(--space-2);
}

.markdown h1 {
  font-size: var(--text-3xl);
  line-height: var(--text-3xl-lh);
}

.markdown h2 {
  font-size: var(--text-2xl);
  line-height: var(--text-2xl-lh);
}

.markdown h3 {
  font-size: var(--text-xl);
  line-height: var(--text-xl-lh);
}

.markdown h4 {
  font-size: var(--text-lg);
  line-height: var(--text-lg-lh);
}

.markdown h5,
.markdown h6 {
  font-size: var(--text-base);
  line-height: var(--text-base-lh);
  color: var(--muted-foreground);
}

.markdown h6 {
  font-size: var(--text-sm);
}

.markdown .anchor {
  color: var(--muted-foreground);
  text-decoration: none;
  user-select: none;
  opacity: 0;
}

.markdown .heading:hover .anchor,
.markdown .anchor:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .markdown .anchor {
    opacity: 1;
  }
}

.markdown strong {
  font-weight: var(--font-weight);
  background: linear-gradient(transparent 62%, var(--charts-tint-citrine-40) 0);
}

.markdown p,
.markdown ul,
.markdown ol,
.markdown blockquote,
.markdown .table-scroll,
.markdown .code-block,
.markdown .diagram {
  margin: 0 0 var(--space-4);
}

.markdown li > p {
  margin: 0 0 var(--space-1);
}

.markdown ul,
.markdown ol {
  padding-left: var(--space-6);
}

.markdown li.task {
  list-style: none;
}

.markdown .task-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  margin: 0 var(--space-2) 0 calc(-1em - var(--space-2));
  border: var(--border-width) solid var(--foreground);
  border-radius: var(--radius-xs);
  vertical-align: -0.125em;
  font-size: var(--text-sm);
  line-height: 1;
}

.markdown .task-box.checked {
  background: var(--foreground);
  color: var(--background);
}

.markdown .task-box.checked::before {
  content: "\2713";
}

.markdown li.task > .task-box + p {
  display: inline;
}

.markdown blockquote {
  padding: 0 var(--space-4);
  border-left: var(--border-width-2) solid var(--muted-foreground);
  color: var(--foreground);
}

.markdown code,
.markdown pre {
  font-size: var(--text-sm);
}

.markdown :not(pre) > code {
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
  background: var(--muted);
}

.markdown .code-block,
.markdown .diagram {
  overflow: hidden;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-md);
}

.markdown .code-block {
  background: var(--background);
}

.markdown .code-block figcaption,
.markdown .diagram figcaption {
  padding: var(--space-1) var(--space-3);
  border-bottom: var(--border-width) solid var(--border);
  color: var(--muted-foreground);
  font-size: var(--text-xs);
}

.markdown pre {
  margin: 0;
  padding: var(--space-3);
  overflow-x: auto;
  line-height: var(--text-sm-lh);
}

.markdown .diagram figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
}

.markdown .diagram-source summary {
  cursor: pointer;
}

.markdown .diagram-source[open] {
  flex-basis: 100%;
}

.markdown .diagram-source .code-block {
  margin: var(--space-2) 0 0;
}

.markdown .diagram-canvas {
  display: flex;
  justify-content: center;
  padding: var(--space-4);
  overflow-x: auto;
  background: var(--white);
  color: var(--black);
}

.markdown .diagram-canvas img {
  max-width: 100%;
  height: auto;
}

.markdown .diagram-canvas.failed {
  justify-content: flex-start;
  padding: var(--space-3);
  background: none;
  color: inherit;
}

.markdown .diagram-canvas.failed .failure {
  width: 100%;
  margin: 0;
}

.markdown .diagram-canvas .muted {
  margin: 0;
  color: var(--grey-400);
}

.diagram-scratch {
  position: absolute;
  top: 0;
  left: -10000px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

.markdown .table-scroll {
  overflow-x: auto;
}

.markdown table {
  border-collapse: collapse;
}

.markdown th,
.markdown td {
  padding: var(--space-1-5) var(--space-3);
  border: var(--border-width) solid var(--border);
  vertical-align: top;
  text-align: left;
}

.markdown th {
  background: var(--muted);
  font-weight: var(--font-weight);
}

.markdown .align-center {
  text-align: center;
}

.markdown .align-right {
  text-align: right;
}

.markdown .properties table {
  width: 100%;
}

.markdown .properties caption {
  padding: 0 0 var(--space-1);
  color: var(--muted-foreground);
  font-size: var(--text-xs);
  text-align: left;
}

.markdown .properties th {
  width: 1%;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--text-sm);
}

.markdown hr {
  margin: var(--space-6) 0;
  border: 0;
  border-top: var(--border-width) solid var(--border);
}

.markdown a {
  text-underline-offset: 0.15em;
}

.markdown a.external::after,
.panel a.external::after {
  content: "\2197" / "";
  margin-left: 0.1em;
  font-size: 0.8em;
}

.markdown .image-placeholder {
  display: inline-block;
  padding: 0 var(--space-2);
  border: var(--border-width) dashed var(--muted-foreground);
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  font-size: var(--text-sm);
  text-decoration: underline;
}

@media (max-width: 760px) {
  .auth {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .auth-brand {
    padding: var(--space-4);
  }

  .auth-brand img {
    width: min(70vw, 260px);
  }

  .auth-content {
    justify-content: flex-start;
    padding: var(--space-6) var(--space-4);
  }
}

.match h3 a,
.symbols li {
  overflow-wrap: anywhere;
}

.branch-switch {
  display: flex;
  gap: var(--space-1);
}

.settings {
  position: relative;
}

.settings summary {
  display: flex;
  align-items: center;
  height: var(--control-h-sm);
  padding: 0 var(--space-3);
  border: var(--border-width) solid var(--grey-400);
  border-radius: var(--radius-md);
  cursor: pointer;
  list-style: none;
}

.settings summary::-webkit-details-marker {
  display: none;
}

.settings .menu {
  position: absolute;
  right: 0;
  z-index: 3;
  display: grid;
  gap: var(--space-3);
  width: 18rem;
  margin-top: var(--space-1);
  padding: var(--space-3);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
  box-shadow: var(--shadow-md);
}

.settings fieldset {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  border: 0;
}

.settings legend {
  margin-bottom: var(--space-1);
  color: var(--muted-foreground);
}

.settings label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.settings input {
  height: auto;
  margin: 0;
}

.settings .muted {
  margin: 0;
  font-size: var(--text-xs);
}

.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}

.panel .close {
  flex: none;
  font-size: var(--text-sm);
}

.repository .facts {
  padding-left: var(--space-5);
}

.globs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  margin: var(--space-2) 0;
  padding: 0;
  list-style: none;
}

.globs code {
  padding: 0 var(--space-1);
  border-radius: var(--radius-sm);
  background: var(--muted);
}

.excluded p,
.not-searched p {
  margin: var(--space-1) 0;
}

.not-searched {
  margin: 0 0 var(--space-3);
  color: var(--muted-foreground);
}

.not-searched summary {
  cursor: pointer;
}

.branches th {
  text-align: left;
  font-weight: var(--font-weight);
}

@media (max-width: 900px) {
  .file {
    grid-template-columns: minmax(0, 1fr);
  }

  .file:has(> .panel:not(.empty)) {
    padding-bottom: 50vh;
  }

  .file > .panel:not(.empty) {
    position: fixed;
    inset: auto 0 0;
    z-index: 2;
    max-height: 50vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--background);
    box-shadow: var(--shadow-lg);
  }

  .file > .pane,
  .file > .panel {
    grid-column: 1;
    grid-row: auto;
  }

  .panel {
    position: static;
  }

  .panel.empty {
    display: none;
  }
}

@media (max-width: 640px), (max-height: 500px) {
  .top {
    position: static;
  }

  html {
    scroll-padding-top: var(--space-4);
  }
}

@media (max-width: 640px) {
  main {
    padding: var(--space-4);
  }

  .context .stamp {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .match .lines .code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .markdown .diagram-canvas {
    justify-content: flex-start;
  }

  .markdown .diagram-canvas img {
    max-width: 200%;
  }

  .search.compact {
    flex-basis: 100%;
    max-width: none;
  }

  .tools {
    order: 1;
    flex-wrap: wrap;
    gap: var(--space-2);
    width: 100%;
    margin-left: 0;
  }

  .branch-switch {
    flex: 1 1 100%;
    min-width: 0;
  }

  .tools select.branch {
    flex: 1;
    min-width: 0;
    max-width: none;
  }
}

/*
 * The map: each level of how Wayfinder is built drawn as an archipelago, its islands tinted by
 * what they are, its routes dotted across a sea with a graticule and depth contours.
 */
.map .chart {
  margin: var(--space-4) 0;
  overflow-x: auto;
}

.map-drawing {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-md);
  transform-origin: 0 0;
  font-family: var(--font-sans);
}

.map-drawing .sea {
  fill: var(--map-sea);
}

.map-drawing .graticule line {
  stroke: var(--map-depth);
  stroke-width: 0.5;
  opacity: 0.18;
}

.map-drawing .depths path {
  fill: none;
  stroke: var(--map-depth);
  stroke-width: 0.75;
  opacity: 0.3;
}

.map-drawing .depths path + path {
  opacity: 0.15;
}

.map-drawing .coast {
  fill: var(--card);
  stroke: var(--foreground);
  stroke-width: 1.25;
  stroke-opacity: 0.55;
  transition: stroke-width 120ms ease;
}

.map-drawing .kind-system .coast,
.map-drawing .kind-container .coast {
  fill: var(--map-realm);
}

.map-drawing .kind-store .coast {
  fill: var(--map-harbour);
}

.map-drawing .kind-external .coast,
.map-drawing .kind-person .coast {
  fill: var(--muted);
  stroke-dasharray: 4 3;
}

.map-drawing .foreign {
  fill: url(#map-hatch);
  pointer-events: none;
}

.map-drawing .hatch {
  stroke: var(--muted-foreground);
  stroke-width: 1;
  opacity: 0.25;
}

.map-drawing text {
  fill: var(--foreground);
  font-size: 11px;
}

.map-drawing .name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.map-drawing .kind,
.map-drawing .route-label {
  fill: var(--muted-foreground);
  font-style: italic;
}

.map-drawing .enter {
  fill: var(--foreground);
  font-size: 15px;
}

.map-drawing .voyage {
  fill: none;
  stroke: var(--foreground);
  stroke-width: 1.5;
  stroke-dasharray: 1 5;
  stroke-linecap: round;
  opacity: 0.6;
}

.map-drawing .guide {
  fill: none;
  stroke: none;
}

.map-drawing .route polygon {
  fill: var(--foreground);
  opacity: 0.6;
}

.map-drawing .route-label {
  font-size: 10.5px;
  paint-order: stroke;
  stroke: var(--map-sea);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.map-drawing .cartouche .outer {
  fill: var(--card);
  stroke: var(--foreground);
  stroke-width: 1.5;
}

.map-drawing .cartouche .inner {
  fill: none;
  stroke: var(--foreground);
  stroke-width: 0.5;
}

.map-drawing .cartouche .title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.map-drawing .cartouche .subtitle {
  fill: var(--muted-foreground);
  font-style: italic;
}

.map-drawing .compass .ring {
  fill: none;
  stroke: var(--foreground);
  stroke-width: 0.75;
  opacity: 0.5;
}

.map-drawing .compass .point {
  fill: var(--card);
  stroke: var(--foreground);
  stroke-width: 0.75;
}

.map-drawing .compass .point.north {
  fill: var(--foreground);
}

.map-drawing .compass .north-label {
  font-size: 12px;
  font-weight: 700;
}

.map-drawing a {
  cursor: pointer;
}

.map-drawing a:hover .coast,
.map-drawing a:focus-visible .coast {
  stroke-width: 2.5;
  stroke-opacity: 1;
}

.map-drawing a:focus-visible {
  outline: none;
}

.map-drawing a:focus-visible .coast {
  stroke: var(--ring);
}

@media (max-width: 640px) {
  .map-drawing {
    max-width: none;
    width: 720px;
  }
}

.map-described .parts,
.map-described .relations {
  padding-left: var(--space-5);
}

.map-described li {
  margin: var(--space-1) 0;
}

/* Where a symbol the code only uses comes from: a plain note, not an error. */
.panel .origin {
  margin: var(--space-2) 0;
  padding: var(--space-2) var(--space-3);
  border-left: var(--border-width-2) solid var(--light-blue-text);
  border-radius: var(--radius-sm);
  background: var(--muted);
}
