@charset "UTF-8";
/* ---------------------------------------
// Everwall HUD — launcher (dashboard + login)
//
// Built on the HUD design system in scss/hud/. No framework.
// Compiled by Prepros to css/launcher.css.
----------------------------------------*/
/* ---------------------------------------
// HUD design system — web fonts
//
// Avenir Next (fonts.com). Font files are served from account.everwall.com (CORS: *).
//
// The fonts.com licence ping (fast.fonts.net/t/1.css) is loaded from
// inc/templates/layout.phtml as a non-blocking <link> rather than imported here:
// it is an empty, uncacheable response, and importing it would hold up the whole
// stylesheet on every page load waiting for it.
//
// layout.phtml also preloads the two woff2 files, so with a blocking font-display
// the text paints in Avenir straight away instead of swapping in later.
----------------------------------------*/
@font-face {
  font-family: "AvenirNextLTW01-Regular";
  font-weight: 400;
  font-display: block;
  src: url("https://account.everwall.com/fonts/fontscom/e9167238-3b3f-4813-a04a-a384394eed42.eot?#iefix");
  src: url("https://account.everwall.com/fonts/fontscom/e9167238-3b3f-4813-a04a-a384394eed42.eot?#iefix") format("eot"), url("https://account.everwall.com/fonts/fontscom/2cd55546-ec00-4af9-aeca-4a3cd186da53.woff2") format("woff2"), url("https://account.everwall.com/fonts/fontscom/1e9892c0-6927-4412-9874-1b82801ba47a.woff") format("woff"), url("https://account.everwall.com/fonts/fontscom/46cf1067-688d-4aab-b0f7-bd942af6efd8.ttf") format("truetype");
}
@font-face {
  font-family: "AvenirNextLTW01-Medium";
  font-weight: 500;
  font-display: block;
  src: url("https://account.everwall.com/fonts/fontscom/1a7c9181-cd24-4943-a9d9-d033189524e0.eot?#iefix");
  src: url("https://account.everwall.com/fonts/fontscom/1a7c9181-cd24-4943-a9d9-d033189524e0.eot?#iefix") format("eot"), url("https://account.everwall.com/fonts/fontscom/627fbb5a-3bae-4cd9-b617-2f923e29d55e.woff2") format("woff2"), url("https://account.everwall.com/fonts/fontscom/f26faddb-86cc-4477-a253-1e1287684336.woff") format("woff"), url("https://account.everwall.com/fonts/fontscom/63a74598-733c-4d0c-bd91-b01bffcd6e69.ttf") format("truetype");
}
/* ---------------------------------------
// HUD design system — tokens
//
// Every visual decision lives here as a CSS custom property so any tool
// inside the HUD can pull the same palette, type scale, and spacing.
// Components should reference these tokens rather than raw values.
----------------------------------------*/
:root {
  /* Brand accents (also used for the footer stripe) */
  --hud-color-orange: #F79C00;
  --hud-color-green: #62AC27;
  --hud-color-purple: #A956C5;
  --hud-color-blue: #2375A5;
  /* Neutrals */
  --hud-color-ink: #343434;
  --hud-color-ink-muted: #6B6B6B; /* 4.5:1+ on every surface below */
  --hud-color-surface: #FFFFFF;
  --hud-color-surface-alt: #FBFBFB;
  --hud-color-bg: #F5F4F4;
  --hud-color-border: #D6D6D6;
  --hud-color-danger: #C0392B;
  /* Interaction */
  --hud-color-focus: var(--hud-color-blue);
  --hud-focus-ring: 3px solid var(--hud-color-focus);
  --hud-transition: 160ms ease;
  /* Typography */
  /* Avenir Next everywhere. Regular for body and headings, Medium for emphasis such as tile titles. */
  --hud-font-sans: "AvenirNextLTW01-Regular", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --hud-font-medium: "AvenirNextLTW01-Medium", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --hud-text-sm: 0.875rem;
  --hud-text-base: 1rem;
  --hud-text-lg: 1.375rem;
  --hud-text-xl: 1.625rem;
  --hud-text-2xl: clamp(2rem, 6vw, 2.8rem);
  --hud-leading-tight: 1.2;
  --hud-leading-normal: 1.5;
  /* Spacing scale (4px base) */
  --hud-space-1: 0.25rem;
  --hud-space-2: 0.5rem;
  --hud-space-3: 0.75rem;
  --hud-space-4: 1rem;
  --hud-space-5: 1.5rem;
  --hud-space-6: 2rem;
  --hud-space-8: 3rem;
  /* Shape and elevation */
  --hud-radius-sm: 4px;
  --hud-radius: 8px;
  --hud-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08), 0 1px 6px rgba(0, 0, 0, 0.06);
  --hud-shadow-md: 0 6px 18px rgba(0, 0, 0, 0.14);
  /* Diagonal light bands shared by every tile header (see _tile.scss) */
  --hud-tile-sheen: repeating-linear-gradient(
    120deg,
    transparent 0 150px,
    rgba(255, 255, 255, 0.07) 150px 180px,
    transparent 180px 200px,
    rgba(255, 255, 255, 0.07) 200px 214px,
    transparent 214px 420px
  );
  /* Layout */
  --hud-content-max: 64rem; /* 3 tiles wide */
  --hud-footer-height: auto;
}

/* ---------------------------------------
// HUD design system — base
//
// Minimal reset plus document defaults. No layout classes here.
----------------------------------------*/
*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--hud-color-bg);
  color: var(--hud-color-ink);
  font-family: var(--hud-font-sans);
  font-size: var(--hud-text-base);
  line-height: var(--hud-leading-normal);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--hud-font-sans);
  font-weight: 400;
}

a {
  color: var(--hud-color-blue);
}

/* One consistent, visible focus style for every interactive element */
:focus-visible {
  outline: var(--hud-focus-ring);
  outline-offset: 2px;
}

/* Screen-reader-only text */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    -webkit-transition-duration: 0.01ms !important;
            transition-duration: 0.01ms !important;
    -webkit-animation-duration: 0.01ms !important;
            animation-duration: 0.01ms !important;
  }
}
/* ---------------------------------------
// HUD design system — page shell
//
// <body class="hud">
//   <header class="hud-topbar">…</header>   (optional; links spread to both edges,
//                                            a lone link sits at the end)
//   <main class="hud-main">…</main>
//   <footer class="hud-footer">…</footer>
//
// The body is a flex column that fills the viewport, so the main area is
// exactly the space left over after the topbar and footer. Centering inside
// the main area therefore accounts for the footer automatically.
----------------------------------------*/
.hud {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.hud-topbar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-4);
  padding: var(--hud-space-3) var(--hud-space-5);
  /* Ghost button: identical box in every state, so the label never moves on hover.
     Like tiles, the edge comes from a shadow rather than a border. */
}
.hud-topbar__link {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-2);
  min-height: 2.75rem; /* comfortable tap target */
  padding: 0 var(--hud-space-3);
  border: 0;
  border-radius: var(--hud-radius-sm);
  background: transparent;
  color: var(--hud-color-ink-muted);
  font-size: var(--hud-text-sm);
  text-decoration: none;
  -webkit-transition: color var(--hud-transition), background-color var(--hud-transition), -webkit-box-shadow var(--hud-transition);
  transition: color var(--hud-transition), background-color var(--hud-transition), -webkit-box-shadow var(--hud-transition);
  transition: color var(--hud-transition), box-shadow var(--hud-transition), background-color var(--hud-transition);
  transition: color var(--hud-transition), box-shadow var(--hud-transition), background-color var(--hud-transition), -webkit-box-shadow var(--hud-transition);
}
.hud-topbar__link:hover {
  color: var(--hud-color-ink);
  background: var(--hud-color-surface);
  -webkit-box-shadow: var(--hud-shadow-sm);
          box-shadow: var(--hud-shadow-sm);
}
.hud-topbar__link:only-child {
  -webkit-margin-start: auto;
          margin-inline-start: auto;
}

.hud-main {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 100%;
  padding: var(--hud-space-5) var(--hud-space-4) var(--hud-space-6);
}
@media (min-width: 40em) {
  .hud-main {
    padding-inline: var(--hud-space-6);
  }
}
.hud-main {
  /* Constrains children to the design width and centers them */
}
.hud-main__content {
  width: 100%;
  max-width: var(--hud-content-max);
  margin-inline: auto;
}

/* ---------------------------------------
// HUD design system — tile grid
//
// <ul class="tile-grid">
//   <li><a class="tile tile--orange" href="…">
//     <span class="tile__header"><img class="tile__icon" src="…" alt=""></span>
//     (or a Font Awesome glyph: <i class="tile__glyph fa-solid fa-calendar" aria-hidden="true"></i>)
//     <span class="tile__body">
//       <h2 class="tile__title">…</h2>
//       <p class="tile__description">…</p>
//     </span>
//   </a></li>
// </ul>
//
// Columns: 1 on phones, 2 from 40em, 3 from 64em. The grid never exceeds
// 3 columns because .hud-main__content caps the width.
// Accent color is explicit per tile via a modifier class.
----------------------------------------*/
.tile-grid {
  position: relative; /* offsetParent for the sheen alignment in js/hud.js */
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  gap: var(--hud-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40em) {
  .tile-grid {
    -ms-grid-columns: minmax(0, 1fr) var(--hud-space-5) minmax(0, 1fr);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--hud-space-5);
  }
}
@media (min-width: 64em) {
  .tile-grid {
    -ms-grid-columns: (minmax(0, 1fr))[3];
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tile {
  --tile-accent: var(--hud-color-blue);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 100%;
  overflow: hidden;
  background: var(--hud-color-surface);
  /* No border on tiles: the shadow defines the edge and the hover lift reinforces it. */
  border-radius: var(--hud-radius);
  -webkit-box-shadow: var(--hud-shadow-sm);
          box-shadow: var(--hud-shadow-sm);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-transition: -webkit-transform var(--hud-transition), -webkit-box-shadow var(--hud-transition);
  transition: -webkit-transform var(--hud-transition), -webkit-box-shadow var(--hud-transition);
  transition: transform var(--hud-transition), box-shadow var(--hud-transition);
  transition: transform var(--hud-transition), box-shadow var(--hud-transition), -webkit-transform var(--hud-transition), -webkit-box-shadow var(--hud-transition);
}
.tile:hover {
  -webkit-transform: translateY(-2px);
      -ms-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: var(--hud-shadow-md);
          box-shadow: var(--hud-shadow-md);
}
.tile:focus-visible {
  outline: var(--hud-focus-ring);
  outline-offset: 3px;
}
.tile {
  /* Phones: compact horizontal card so the list scans quickly */
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  /* Tablets and up: the classic stacked card */
}
@media (min-width: 40em) {
  .tile {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
}
.tile__header {
  display: -ms-grid;
  display: grid;
  place-items: center;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  inline-size: 6rem;
  padding: var(--hud-space-3);
  background-color: var(--tile-accent);
  /* One sheet of diagonal light behind the whole grid; each header is a window
     onto it, so a band leaving one tile continues into its neighbours and no
     two tiles show the same slice. js/hud.js sets the sheet size and each
     header's offset; without it, each header just shows its own slice. */
  background-image: var(--hud-tile-sheen);
  background-repeat: no-repeat;
  background-size: var(--sheet-w, auto) var(--sheet-h, auto);
  background-position: calc(-1 * var(--sheen-x, 0px)) calc(-1 * var(--sheen-y, 0px));
}
@media (min-width: 40em) {
  .tile__header {
    inline-size: auto;
    block-size: 8rem;
  }
}
.tile__icon {
  inline-size: 3.25rem;
  block-size: 3.25rem;
  -o-object-fit: contain;
     object-fit: contain;
}
@media (min-width: 40em) {
  .tile__icon {
    inline-size: 5rem;
    block-size: 5rem;
  }
}
.tile__glyph {
  color: #fff;
  font-size: 2.25rem;
  line-height: 1;
}
@media (min-width: 40em) {
  .tile__glyph {
    font-size: 3.5rem;
  }
}
.tile__body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  min-width: 0;
  padding: var(--hud-space-3) var(--hud-space-4);
  background: var(--hud-color-surface-alt);
  text-align: left;
}
@media (min-width: 40em) {
  .tile__body {
    padding: var(--hud-space-4) var(--hud-space-4) var(--hud-space-5);
    text-align: center;
  }
}
.tile__title {
  margin: 0;
  color: var(--hud-color-blue);
  font-family: var(--hud-font-medium);
  font-size: var(--hud-text-lg);
  font-weight: 500;
  line-height: var(--hud-leading-tight);
}
@media (min-width: 40em) {
  .tile__title {
    font-size: var(--hud-text-xl);
  }
}
.tile__description {
  margin: var(--hud-space-1) 0 0;
  color: var(--hud-color-ink-muted);
  font-size: var(--hud-text-sm);
  line-height: 1.35;
}
.tile {
  /* Accent modifiers */
}
.tile--orange {
  --tile-accent: var(--hud-color-orange);
}
.tile--green {
  --tile-accent: var(--hud-color-green);
}
.tile--purple {
  --tile-accent: var(--hud-color-purple);
}
.tile--blue {
  --tile-accent: var(--hud-color-blue);
}

/* ---------------------------------------
// HUD design system — page header and empty state
//
// <div class="page-header">
//   <h1 class="page-header__title">Reports</h1>
//   <p class="page-header__lead">Optional one-line description.</p>
// </div>
//
// <p class="empty-state">Nothing here yet.</p>
----------------------------------------*/
.page-header {
  margin-bottom: var(--hud-space-6);
  text-align: center;
}
.page-header__title {
  margin: 0;
  color: var(--hud-color-ink);
  font-size: var(--hud-text-2xl);
  line-height: var(--hud-leading-tight);
}
.page-header__lead {
  max-width: 40rem;
  margin: var(--hud-space-2) auto 0;
  color: var(--hud-color-ink-muted);
}

.empty-state {
  max-width: 32rem;
  margin: 0 auto;
  padding: var(--hud-space-8) var(--hud-space-5);
  background: var(--hud-color-surface);
  border-radius: var(--hud-radius);
  -webkit-box-shadow: var(--hud-shadow-sm);
          box-shadow: var(--hud-shadow-sm);
  color: var(--hud-color-ink-muted);
  text-align: center;
}

/* ---------------------------------------
// HUD design system — login card
----------------------------------------*/
.login {
  width: min(100%, 24rem);
  text-align: center;
}
.login__title {
  margin: 0 0 var(--hud-space-4);
  color: var(--hud-color-ink);
  font-size: var(--hud-text-2xl);
  line-height: var(--hud-leading-tight);
}
.login {
  /* Horizontal rule with the Everwall mark sitting on it */
}
.login__divider {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-3);
  margin: var(--hud-space-4) 0 var(--hud-space-8);
  color: var(--hud-color-border);
}
.login__divider::before, .login__divider::after {
  content: "";
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  height: 1px;
  background: var(--hud-color-border);
}
.login__logo {
  font-size: 2rem;
  line-height: 1;
}
.login__button {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  min-height: 44px; /* reserve space so the page doesn't jump when the Google button renders */
}
.login__error {
  min-height: 3rem;
  margin: var(--hud-space-4) 0 0;
  color: var(--hud-color-danger);
  font-size: var(--hud-text-sm);
}
.login__error > p {
  display: none; /* shown with fadeIn() on a failed sign-in */
  margin: 0;
}

/* ---------------------------------------
// HUD design system — prospector tools (sales/edu-prospector, later sales/conference-prospector)
//
// Generic building blocks first (panel, field, button, table, notice, disclosure), written so
// any HUD tool can reuse them, then the few prospector-only pieces.
//
// Like tiles, panels get their edge from a shadow, never a border. Form inputs do keep a
// border: WCAG 1.4.11 needs a 3:1 boundary on controls, which a soft shadow cannot give.
----------------------------------------*/
:root {
  --hud-color-input-border: #8A8A8A; /* 3.4:1 on white */
  --hud-color-blue-dark: #1B5C82;
  --hud-color-warn-bg: #FFF4D6;
  --hud-color-error-bg: #FBE9E7;
  --hud-color-grey-bg: #EDEDED;
  --hud-color-row-line: #E9E9E9;
}

/* Tool pages are long and table-heavy: start at the top instead of centering in the viewport,
   and use a wider column than the dashboard's three-tile grid. */
.hud-main--top {
  --hud-content-max: 100rem;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}

/* --- panel ------------------------------------------------------------ */
.panel {
  padding: var(--hud-space-5);
  background: var(--hud-color-surface);
  border-radius: var(--hud-radius);
  -webkit-box-shadow: var(--hud-shadow-sm);
          box-shadow: var(--hud-shadow-sm);
}
.panel--flush {
  padding: 0;
}

/* --- fields ----------------------------------------------------------- */
.field {
  margin: 0 0 var(--hud-space-5);
  padding: 0;
  border: 0;
  min-width: 0;
}
.field__label {
  display: block;
  margin-bottom: var(--hud-space-1);
  padding: 0;
  font-family: var(--hud-font-medium);
}
.field__optional, .field__required {
  color: var(--hud-color-ink-muted);
  font-family: var(--hud-font-sans);
  font-size: var(--hud-text-sm);
}
.field__input {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: var(--hud-space-2) var(--hud-space-3);
  background: var(--hud-color-surface);
  border: 1px solid var(--hud-color-input-border);
  border-radius: var(--hud-radius-sm);
  color: var(--hud-color-ink);
  font: inherit;
}
.field__input--small {
  min-height: 2.25rem;
  padding-block: var(--hud-space-1);
  font-size: var(--hud-text-sm);
}
.field__hint {
  margin: var(--hud-space-1) 0 0;
  color: var(--hud-color-ink-muted);
  font-size: var(--hud-text-sm);
  /* The school already has an Everwall account: worth knowing before spending credits */
}
.field__hint--alert {
  color: var(--hud-color-danger);
  font-family: var(--hud-font-medium);
  /* Links stay red; only the underline marks them as links */
}
.field__hint--alert a {
  color: inherit;
  text-decoration: underline;
}

/* One radio per line, but the label (and so the click target) is only as wide as its text. */
.choice {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  gap: var(--hud-space-2);
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  max-width: 100%;
  min-height: 2rem;
  cursor: pointer;
}
.choice__hint {
  color: var(--hud-color-ink-muted);
  font-size: var(--hud-text-sm);
}

/* --- buttons ---------------------------------------------------------- */
.button {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: var(--hud-space-2);
  min-height: 2.75rem;
  padding: 0 var(--hud-space-5);
  background: var(--hud-color-surface);
  border: 0;
  border-radius: var(--hud-radius-sm);
  -webkit-box-shadow: var(--hud-shadow-sm), inset 0 0 0 1px var(--hud-color-input-border);
          box-shadow: var(--hud-shadow-sm), inset 0 0 0 1px var(--hud-color-input-border);
  color: var(--hud-color-ink);
  font: inherit;
  font-family: var(--hud-font-medium);
  text-decoration: none;
  cursor: pointer;
  -webkit-transition: background-color var(--hud-transition), -webkit-box-shadow var(--hud-transition);
  transition: background-color var(--hud-transition), -webkit-box-shadow var(--hud-transition);
  transition: background-color var(--hud-transition), box-shadow var(--hud-transition);
  transition: background-color var(--hud-transition), box-shadow var(--hud-transition), -webkit-box-shadow var(--hud-transition);
}
.button:hover {
  -webkit-box-shadow: var(--hud-shadow-md), inset 0 0 0 1px var(--hud-color-input-border);
          box-shadow: var(--hud-shadow-md), inset 0 0 0 1px var(--hud-color-input-border);
}
.button--primary {
  background: var(--hud-color-blue); /* white on #2375A5 is 5.1:1 */
  -webkit-box-shadow: var(--hud-shadow-sm);
          box-shadow: var(--hud-shadow-sm);
  color: #FFFFFF;
}
.button--primary:hover {
  background: var(--hud-color-blue-dark);
  -webkit-box-shadow: var(--hud-shadow-md);
          box-shadow: var(--hud-shadow-md);
}
.button--small {
  min-height: 2.25rem;
  padding: 0 var(--hud-space-4);
  font-size: var(--hud-text-sm);
}
.button:disabled, .button[aria-disabled=true] {
  background: var(--hud-color-grey-bg);
  -webkit-box-shadow: none;
          box-shadow: none;
  color: var(--hud-color-ink-muted);
  cursor: not-allowed;
}

/* A button that reads as a link (used for the admin-only refresh). */
.button-link {
  padding: 0;
  background: none;
  border: 0;
  color: var(--hud-color-blue);
  font: inherit;
  font-size: var(--hud-text-sm);
  text-decoration: underline;
  cursor: pointer;
}

.actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-3);
  margin-top: var(--hud-space-5);
}
.actions .field__hint,
.actions .working {
  -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
  margin: 0;
}

/* "Working..." live region. Empty until a form is submitted. */
.working {
  margin: var(--hud-space-2) 0 0;
  color: var(--hud-color-ink-muted);
  font-size: var(--hud-text-sm);
}
.working:empty {
  display: none;
}
.working--busy {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: var(--hud-space-2);
}
.working__clock {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  min-width: 2.5em;
  font-family: var(--hud-font-medium);
  font-variant-numeric: tabular-nums;
}
.working {
  /* The heading line and, under it, the server's current stage */
}
.working__lines {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.working__stage:empty {
  display: none;
}
.working--busy::before {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  margin-top: 0.3em;
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  border: 2px solid var(--hud-color-border);
  border-top-color: var(--hud-color-blue);
  border-radius: 50%;
  vertical-align: -0.1em;
  -webkit-animation: hud-spin 0.8s linear infinite;
          animation: hud-spin 0.8s linear infinite;
}

@-webkit-keyframes hud-spin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes hud-spin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
/* --- notices ---------------------------------------------------------- */
.notice {
  margin: var(--hud-space-4) 0 0;
  padding: var(--hud-space-3) var(--hud-space-4);
  border-radius: var(--hud-radius-sm);
  background: var(--hud-color-grey-bg);
  color: var(--hud-color-ink);
  font-size: var(--hud-text-sm);
}
.notice--grey {
  color: var(--hud-color-ink-muted); /* #6B6B6B on #EDEDED is 4.6:1 */
}
.notice--warn {
  background: var(--hud-color-warn-bg);
}
.notice--ok {
  background: #E6F2DC; /* ink on a light green tint, 11:1 */
}
.notice--error {
  background: var(--hud-color-error-bg);
  color: #8E2A1F; /* 7:1 on the error background */
  font-size: var(--hud-text-base);
}
.notice {
  /* A message at the top of the page (flash after a redirect): space below it, and on the
     form-style pages no wider than the form. */
}
.notice--page {
  margin: 0 0 var(--hud-space-5);
  font-size: var(--hud-text-base);
}
.prospector--narrow .notice--page {
  max-width: 64rem;
  margin-inline: auto;
}
.notice > p,
.notice > ul {
  margin: 0;
}
.notice > ul {
  padding-left: var(--hud-space-5);
}

/* --- tables ----------------------------------------------------------- */
/* Wide tables scroll inside their own region (focusable, so keyboard users can scroll it). */
.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--hud-text-sm);
  text-align: left;
}
.table th,
.table td {
  padding: var(--hud-space-3) var(--hud-space-4);
  vertical-align: top;
}
.table thead th {
  background: var(--hud-color-surface-alt);
  color: var(--hud-color-ink-muted);
  font-family: var(--hud-font-medium);
  font-weight: 400;
  white-space: nowrap;
}
.table tbody tr + tr > * {
  border-top: 1px solid var(--hud-color-row-line);
}
.table tbody th {
  font-family: var(--hud-font-medium);
  font-weight: 400;
}
.table__number {
  text-align: right;
}
.table__check {
  width: 1%;
}
.table__check input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--hud-color-blue);
}
.table__name {
  min-width: 11rem;
}
.table__why {
  min-width: 16rem;
}
.table__role {
  white-space: nowrap;
}
.table__note {
  display: block;
  margin-top: var(--hud-space-1);
  color: var(--hud-color-ink-muted);
  font-family: var(--hud-font-sans);
}
.table__muted {
  color: var(--hud-color-ink-muted);
}
.table__link {
  color: var(--hud-color-blue);
}
.table {
  /* Left-edge bar: green for a person with an address (enriched), red for one without */
}
.table__row--enriched > :first-child {
  -webkit-box-shadow: inset 3px 0 0 var(--hud-color-green);
          box-shadow: inset 3px 0 0 var(--hud-color-green);
}
.table__row--failed > :first-child {
  -webkit-box-shadow: inset 3px 0 0 var(--hud-color-danger);
          box-shadow: inset 3px 0 0 var(--hud-color-danger);
}

.button-group {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  gap: var(--hud-space-2);
}

/* The [1] [2] account links sit on their own line under the count */
.account-links {
  display: block;
  margin-top: var(--hud-space-1);
  font-family: var(--hud-font-sans);
}
.account-links a {
  margin-right: var(--hud-space-1);
}

.icon-link {
  display: inline-block;
  margin-left: var(--hud-space-1);
  padding: 0 var(--hud-space-1);
  color: var(--hud-color-blue);
  font-size: 1.1em;
}

/* Fit score: the number is the data, the bar is decoration. */
.fit {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-2);
  white-space: nowrap;
}
.fit__bar {
  display: inline-block;
  width: 3rem;
  height: 0.4rem;
  overflow: hidden;
  background: var(--hud-color-grey-bg);
  border-radius: 1rem;
}
.fit__fill {
  display: block;
  height: 100%;
  background: var(--hud-color-green);
}

.flag {
  display: inline-block;
  margin: var(--hud-space-1) var(--hud-space-1) 0 0;
  padding: 0 var(--hud-space-2);
  background: var(--hud-color-grey-bg);
  border-radius: 1rem;
  color: var(--hud-color-ink);
  font-size: 0.8125rem;
  white-space: nowrap;
}
.flag--warn {
  background: var(--hud-color-warn-bg);
}

.email {
  overflow-wrap: anywhere;
}
.email--guess {
  font-style: italic;
}
.email--bad {
  color: var(--hud-color-ink-muted);
}

/* --- disclosure (native <details>) ------------------------------------ */
.disclosure > summary {
  display: inline-block;
  padding: var(--hud-space-1) 0;
  color: var(--hud-color-blue);
  text-decoration: underline;
  cursor: pointer;
}
.disclosure__body {
  margin-top: var(--hud-space-3);
}
.disclosure--block {
  margin-top: var(--hud-space-5);
}

/* Headings that receive focus after a page change (so screen readers land on the result) get no ring. */
h2[tabindex="-1"]:focus,
h2[tabindex="-1"]:focus-visible {
  outline: none;
}

/* --- prospector screens ------------------------------------------------ */
.prospector {
  padding-bottom: var(--hud-space-6);
}

.prospector-foot {
  margin-top: var(--hud-space-6);
  text-align: center;
}

.prospector-form {
  max-width: 64rem;
  margin-inline: auto;
}
.prospector-form__actions {
  margin-top: var(--hud-space-5);
}

/* Two fields side by side from tablet width up; stacked on phones. */
@media (min-width: 40em) {
  .field-row {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: minmax(0, 1fr) var(--hud-space-5) minmax(0, 1fr);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--hud-space-5);
  }
}

.prospector-section {
  margin-top: var(--hud-space-6);
}
.prospector-section__head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: var(--hud-space-3);
  margin-bottom: var(--hud-space-3);
}
.prospector-section__head .prospector-section__title {
  margin: 0;
}
.prospector-section__title {
  margin: 0 0 var(--hud-space-3);
  font-size: var(--hud-text-lg);
  line-height: var(--hud-leading-tight);
}

.inline-search {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: var(--hud-space-2);
}

.facts {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: var(--hud-space-4) var(--hud-space-6);
  margin: 0;
}
.facts--grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: var(--hud-space-4) var(--hud-space-5);
  margin-top: var(--hud-space-4);
}
.facts dt {
  color: var(--hud-color-ink-muted);
  font-size: var(--hud-text-sm);
}
.facts dd {
  margin: 0;
  font-family: var(--hud-font-medium);
  /* Small "Change" link beside a value on the results header */
}
.facts dd a:not(.facts__link) {
  margin-left: var(--hud-space-2);
  font-family: var(--hud-font-sans);
  font-size: var(--hud-text-sm);
}
.facts {
  /* A value that is itself the answer keeps the value size */
}
.facts__link {
  font: inherit;
}
.facts {
  /* Something the salesperson must not miss (the school already has an Everwall account) */
}
.facts__item--alert dt {
  color: var(--hud-color-danger); /* #C0392B on white is 5.3:1 */
  font-family: var(--hud-font-medium);
}
.facts__item--alert dd a {
  color: var(--hud-color-danger);
  text-decoration: underline;
}

.results-head__status {
  margin: var(--hud-space-4) 0 0;
  font-size: var(--hud-text-lg);
  line-height: var(--hud-leading-tight);
}
.results-head__structure {
  margin-top: var(--hud-space-3);
}
.results-head__structure > p:first-child {
  display: inline;
  margin: 0 var(--hud-space-2) 0 0;
}
.results-head__structure > .disclosure {
  display: inline-block;
  vertical-align: top;
}
.results-head__structure > .disclosure[open] {
  display: block;
}

.inboxes {
  margin: var(--hud-space-3) 0 0;
  padding: 0;
  list-style: none;
}
.inboxes__email {
  font-family: var(--hud-font-medium);
}
.inboxes__label {
  color: var(--hud-color-ink-muted);
  font-size: var(--hud-text-sm);
}

.admin-refresh {
  margin-top: var(--hud-space-3);
}

.paste {
  display: block;
  width: 100%;
  padding: var(--hud-space-3);
  background: var(--hud-color-surface);
  border: 1px solid var(--hud-color-input-border);
  border-radius: var(--hud-radius-sm);
  color: var(--hud-color-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: pre;
  overflow-x: auto;
  resize: vertical;
}

.credits {
  margin: var(--hud-space-4) 0 0;
  color: var(--hud-color-ink-muted);
  font-size: var(--hud-text-sm);
}

/* ---------------------------------------
// HUD design system — Link Shortener (marketing/links)
//
// Builds on the generic pieces in _prospector.scss (panel, field, button, table, notice,
// disclosure, facts). Cards get their edge from a shadow, never a border.
----------------------------------------*/
:root {
  --hud-color-blue-tint: #EAF3F9;
  --hud-color-ok-text: #2F6B12; /* 6.4:1 on white */
  --hud-color-warn-text: #7A4F00; /* 7:1 on white, 6.2:1 on the warn background */
}

.links {
  /* A flex item of .hud-main: without this, a wide table (inputs do not wrap) widens the whole page
     instead of scrolling inside its .table-wrap. */
  min-width: 0;
  /* Author display rules (flex, grid) would otherwise beat the browser's [hidden] style. */
}
.links [hidden] {
  display: none !important;
}
.links {
  /* Visually hidden labels inside a table are position: absolute; without a positioned ancestor they
     escape the scrolling wrapper and widen the page on phones. */
}
.links .table-wrap {
  position: relative;
}
.links code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
}

.button--danger {
  color: var(--hud-color-danger); /* #C0392B on white is 5.3:1 */
}

.button--icon {
  width: 2.25rem;
  padding: 0;
}

.field__input--large {
  min-height: 3.25rem;
  font-size: 1.125rem;
}

/* Three narrow fields side by side from tablet width up. */
@media (min-width: 40em) {
  .field-row--3 {
    -ms-grid-columns: (minmax(0, 1fr))[3];
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* A section heading with its one-line description under it, kept together as one block */
.section-intro {
  min-width: 0;
}
.section-intro .field__hint {
  margin: var(--hud-space-1) 0 0;
}

/* A button beside a heading and description sits level with the description, not the heading */
.prospector-section__head--bottom {
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
}

.links-section-hint {
  margin: 0 0 var(--hud-space-3);
}

/* --- list screen ------------------------------------------------------ */
.links-toolbar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: var(--hud-space-3) var(--hud-space-4);
}
.links-toolbar__new {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
}

.links-search {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 28rem;
          flex: 1 1 28rem;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: var(--hud-space-2);
}
.links-search__box {
  position: relative;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 16rem;
          flex: 1 1 16rem;
}
.links-search__icon {
  position: absolute;
  top: 50%;
  left: var(--hud-space-3);
  -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
          transform: translateY(-50%);
  color: var(--hud-color-ink-muted);
  pointer-events: none;
}
.links-search__input {
  padding-left: 2.25rem;
}
.links-search__hint {
  -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
  margin: 0;
}

.links-head-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-2) var(--hud-space-4);
  margin-left: auto;
}

/* .choice lines its box up on the text baseline and is 2rem tall; here the checkbox, its label,
   the heading, and the button should all share one center line. */
.links-filter {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.links-filter .choice {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  min-height: 2.25rem; /* the small button's height */
  font-size: var(--hud-text-sm);
}
.links-filter .choice input {
  margin: 0;
}

.links-table tbody tr[data-row-href] {
  cursor: pointer;
  -webkit-transition: background-color var(--hud-transition);
  transition: background-color var(--hud-transition);
}
.links-table tbody tr[data-row-href]:hover {
  background: var(--hud-color-surface-alt);
}
.links-table__short {
  white-space: nowrap;
}
.links-table__name {
  min-width: 16rem;
  max-width: 34rem;
}
.links-table__title {
  display: block;
  color: var(--hud-color-ink);
  font-family: var(--hud-font-medium);
  text-decoration: none;
}
.links-table__title:hover {
  text-decoration: underline;
}
.links-table__destination {
  display: block;
  overflow: hidden;
  color: var(--hud-color-ink-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.links-table__wall {
  min-width: 10rem;
}
.links-table__clicks strong {
  font-family: var(--hud-font-medium);
  font-size: var(--hud-text-base);
  font-weight: 400;
}
.links-table__date {
  white-space: nowrap;
}
.links-table {
  /* Disabled or archived: still listed, but visibly off */
}
.links-table__row--off > * {
  color: var(--hud-color-ink-muted);
}
.links-table__row--current > * {
  background: var(--hud-color-blue-tint);
}

.short-link {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-1);
}
.short-link__slug {
  color: var(--hud-color-blue);
  font-family: var(--hud-font-medium);
}

/* Icon-only copy button: a 32px target, with "Copied" shown beside it for two seconds. */
.copy-button {
  position: relative;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--hud-radius-sm);
  color: var(--hud-color-ink-muted);
  cursor: pointer;
  -webkit-transition: background-color var(--hud-transition), color var(--hud-transition);
  transition: background-color var(--hud-transition), color var(--hud-transition);
}
.copy-button:hover {
  background: var(--hud-color-grey-bg);
  color: var(--hud-color-ink);
}

.copy-button.is-copied,
.button.is-copied {
  color: var(--hud-color-ok-text);
}

.copy-button.is-copied::after {
  content: "Copied";
  position: absolute;
  left: 100%;
  margin-left: var(--hud-space-1);
  padding: 0 var(--hud-space-2);
  background: var(--hud-color-ink);
  border-radius: var(--hud-radius-sm);
  color: #FFFFFF;
  font-size: 0.75rem;
  line-height: 1.5rem;
  white-space: nowrap;
  z-index: 1;
}

.flags {
  display: block;
}

.flag--off {
  background: var(--hud-color-error-bg);
  color: #8E2A1F;
}

.pager {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: var(--hud-space-3);
  margin-top: var(--hud-space-4);
}

/* --- detail screen ---------------------------------------------------- */
.links-detail-header .page-header__title {
  overflow-wrap: anywhere;
}

.link-hero {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hud-space-4) var(--hud-space-5);
}
@media (min-width: 52em) {
  .link-hero {
    -ms-grid-columns: minmax(0, 1fr) auto;
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
.link-hero__short {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-3);
  margin: 0;
  font-family: var(--hud-font-medium);
  font-size: var(--hud-text-xl);
  line-height: var(--hud-leading-tight);
}
.link-hero__short a {
  min-width: 0;
  color: var(--hud-color-blue);
  overflow-wrap: anywhere;
}
.link-hero__destination {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: var(--hud-space-2);
  margin: var(--hud-space-2) 0 0;
  color: var(--hud-color-ink-muted);
  overflow-wrap: anywhere;
}
.link-hero__destination a {
  color: inherit;
}
.link-hero__destination .fa-solid {
  margin-top: 0.3em;
}
.link-hero__actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -ms-flex-line-pack: start;
      align-content: flex-start;
  gap: var(--hud-space-2);
}
.link-hero__actions form {
  display: contents;
}
.link-hero__facts {
  grid-column: 1/-1;
  margin-top: 0;
  padding-top: var(--hud-space-4);
  border-top: 1px solid var(--hud-color-row-line);
}

.facts__sub {
  display: block;
  color: var(--hud-color-ink-muted);
  font-family: var(--hud-font-sans);
  font-size: var(--hud-text-sm);
}
.facts__sub a {
  margin-left: 0 !important;
}
.facts__none {
  color: var(--hud-color-ink-muted);
  font-family: var(--hud-font-sans);
}
.facts__item--wide {
  grid-column: 1/-1;
}
.facts__notes {
  font-family: var(--hud-font-sans) !important;
  white-space: normal;
}

.links-panel {
  margin-top: var(--hud-space-5);
}

.qr-panel__body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: var(--hud-space-5);
}
.qr-panel__code {
  width: 13rem;
  max-width: 100%;
  aspect-ratio: 1;
  background: #FFFFFF;
  border-radius: var(--hud-radius-sm);
  -webkit-box-shadow: var(--hud-shadow-sm);
          box-shadow: var(--hud-shadow-sm);
}
.qr-panel__code svg {
  display: block;
  width: 100%;
  height: 100%;
}
.qr-panel__side {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 16rem;
          flex: 1 1 16rem;
}
.qr-panel__side > p:first-child {
  margin-top: 0;
}

/* Stats */
.stats-controls {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: var(--hud-space-2);
}
.stats-controls .field__input {
  width: auto;
}
.stats-controls__tz {
  width: 13rem !important;
}

.stat-cards {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: var(--hud-space-4);
  margin-bottom: var(--hud-space-4);
}

.stat-card {
  padding: var(--hud-space-4) var(--hud-space-5);
  background: var(--hud-color-surface);
  border-radius: var(--hud-radius);
  -webkit-box-shadow: var(--hud-shadow-sm), inset 3px 0 0 var(--hud-color-blue);
          box-shadow: var(--hud-shadow-sm), inset 3px 0 0 var(--hud-color-blue);
}
.stat-card--muted {
  -webkit-box-shadow: var(--hud-shadow-sm), inset 3px 0 0 var(--hud-color-border);
          box-shadow: var(--hud-shadow-sm), inset 3px 0 0 var(--hud-color-border);
}
.stat-card__value {
  margin: 0;
  font-family: var(--hud-font-medium);
  font-size: var(--hud-text-2xl);
  line-height: var(--hud-leading-tight);
}
.stat-card__label {
  margin: var(--hud-space-1) 0 0;
}
.stat-card__range {
  display: block;
  color: var(--hud-color-ink-muted);
  font-size: var(--hud-text-sm);
}

.chart-panel {
  margin-bottom: var(--hud-space-4);
}
.chart-panel__empty {
  margin: 0 0 var(--hud-space-3);
  color: var(--hud-color-ink-muted);
}
.chart-panel__table {
  max-height: 24rem;
  overflow-y: auto;
}

.chart {
  margin: 0 0 var(--hud-space-3);
}
.chart__plot {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  gap: clamp(1px, 12rem / var(--bars), 6px);
  height: 11rem;
  padding-top: var(--hud-space-5);
  border-bottom: 1px solid var(--hud-color-border);
}
.chart__max {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--hud-color-ink-muted);
  font-size: 0.75rem;
}
.chart {
  /* Full-height hover target per period; the bar inside is the data. */
}
.chart__slot {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 0px;
          flex: 1 1 0;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  min-width: 1px;
  height: 100%;
}
.chart__bar {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 0px;
          flex: 1 1 0;
  height: var(--h);
  background: var(--hud-color-blue);
  border-radius: 2px 2px 0 0;
  -webkit-transition: background-color var(--hud-transition);
  transition: background-color var(--hud-transition);
}
.chart__slot:hover .chart__bar, .chart__slot.is-active .chart__bar {
  background: var(--hud-color-blue-dark);
}
.chart__axis {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-top: var(--hud-space-1);
  color: var(--hud-color-ink-muted);
  font-size: 0.75rem;
}

.breakdowns {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: var(--hud-space-4);
  margin-bottom: var(--hud-space-3);
}

.breakdown {
  padding: var(--hud-space-4);
}
.breakdown__title {
  margin: 0 0 var(--hud-space-3);
  font-size: var(--hud-text-base);
}
.breakdown__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.breakdown__row {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: minmax(0, 1fr) var(--hud-space-3) auto;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 var(--hud-space-3);
  padding: var(--hud-space-1) 0;
  font-size: var(--hud-text-sm);
}
.breakdown__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breakdown__clicks {
  font-family: var(--hud-font-medium);
  font-variant-numeric: tabular-nums;
}
.breakdown__bar {
  grid-column: 1/-1;
  height: 0.25rem;
  margin-top: 2px;
  background: var(--hud-color-grey-bg);
  border-radius: 1rem;
}
.breakdown__bar > span {
  display: block;
  height: 100%;
  background: var(--hud-color-green);
  border-radius: inherit;
}

/* --- create form ------------------------------------------------------ */
.links-form .actions {
  margin-top: var(--hud-space-6);
}

.links-section {
  margin-top: var(--hud-space-6);
  padding-top: var(--hud-space-5);
  border-top: 1px solid var(--hud-color-row-line);
}
.links-section__title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-2);
  margin: 0 0 var(--hud-space-4);
  font-size: var(--hud-text-lg);
  line-height: var(--hud-leading-tight);
}
.links-section__title .fa-solid {
  color: var(--hud-color-blue);
  font-size: 0.9em;
}

/* What the pasted address turned out to be */
.detect {
  margin: var(--hud-space-2) 0 0;
  font-family: var(--hud-font-medium);
}
.detect:empty {
  display: none;
}
.detect--ok {
  color: var(--hud-color-ok-text);
}
.detect--warn {
  color: var(--hud-color-warn-text);
}

.detect-existing {
  margin-top: var(--hud-space-3);
  padding: var(--hud-space-3) var(--hud-space-4);
  background: var(--hud-color-warn-bg);
  border-radius: var(--hud-radius-sm);
  font-size: var(--hud-text-sm);
}
.detect-existing__title {
  margin: 0 0 var(--hud-space-1);
  font-family: var(--hud-font-medium);
}
.detect-existing__list {
  margin: 0;
  padding-left: var(--hud-space-5);
}
.detect-existing__list a {
  color: var(--hud-color-blue-dark); /* 6.5:1 on the warn background */
  font-family: var(--hud-font-medium);
}
.detect-existing .field__hint {
  color: var(--hud-color-ink);
}

.networks__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: var(--hud-space-1) var(--hud-space-5);
}
.networks__choice code {
  color: var(--hud-color-ink-muted);
}

.network-add {
  margin-top: var(--hud-space-3);
}
.network-add__checked {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
}

.preview {
  margin-top: var(--hud-space-4);
  padding: var(--hud-space-4);
  background: var(--hud-color-surface-alt);
  border-radius: var(--hud-radius-sm);
}
.preview__title {
  margin: 0 0 var(--hud-space-2);
  font-size: var(--hud-text-base);
}
.preview__table th,
.preview__table td {
  padding: var(--hud-space-2) var(--hud-space-3);
}
.preview__table thead th {
  background: transparent;
}
.preview__destination {
  color: var(--hud-color-ink-muted);
  overflow-wrap: anywhere;
}

/* One matching wall: linked straight away, with a checkbox to opt out */
.wall-card {
  padding: var(--hud-space-4);
  background: var(--hud-color-blue-tint);
  border-radius: var(--hud-radius-sm);
  -webkit-box-shadow: inset 3px 0 0 var(--hud-color-blue);
          box-shadow: inset 3px 0 0 var(--hud-color-blue);
}
.wall-card__name {
  margin: 0;
  font-family: var(--hud-font-medium);
  font-size: 1.125rem;
}
.wall-card__meta {
  margin: var(--hud-space-1) 0 var(--hud-space-2);
  color: var(--hud-color-ink-muted); /* 4.9:1 on the blue tint */
  font-size: var(--hud-text-sm);
}
.wall-card--off {
  background: var(--hud-color-grey-bg);
  -webkit-box-shadow: inset 3px 0 0 var(--hud-color-border);
          box-shadow: inset 3px 0 0 var(--hud-color-border);
}

/* Several walls share the slug: pick one by event name and dates */
.wall-list__filter {
  margin: var(--hud-space-2) 0;
}
.wall-list__options {
  max-height: 24rem;
  overflow-y: auto;
  border-radius: var(--hud-radius-sm);
  -webkit-box-shadow: var(--hud-shadow-sm);
          box-shadow: var(--hud-shadow-sm);
}

.wall-option {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: var(--hud-space-3);
  padding: var(--hud-space-3) var(--hud-space-4);
  background: var(--hud-color-surface);
  cursor: pointer;
}
.wall-option + .wall-option {
  border-top: 1px solid var(--hud-color-row-line);
}
.wall-option:hover {
  background: var(--hud-color-surface-alt);
}
.wall-option:has(input:checked) {
  background: var(--hud-color-blue-tint);
}
.wall-option input {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2em 0 0;
  accent-color: var(--hud-color-blue);
}
.wall-option__name {
  display: block;
  font-family: var(--hud-font-medium);
}
.wall-option__meta {
  display: block;
  color: var(--hud-color-ink-muted);
  font-size: var(--hud-text-sm);
}

/* everwall.to/ [slug] */
.slug-field {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.slug-field__prefix {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0 var(--hud-space-3);
  background: var(--hud-color-grey-bg);
  border: 1px solid var(--hud-color-input-border);
  border-right: 0;
  border-radius: var(--hud-radius-sm) 0 0 var(--hud-radius-sm);
  color: var(--hud-color-ink-muted); /* 4.6:1 on grey */
  white-space: nowrap;
}
.slug-field .field__input {
  border-radius: 0 var(--hud-radius-sm) var(--hud-radius-sm) 0;
}

.color-field {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: var(--hud-space-2);
}
.color-field__picker {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 2px;
  background: var(--hud-color-surface);
  border: 1px solid var(--hud-color-input-border);
  border-radius: var(--hud-radius-sm);
  cursor: pointer;
}

.advanced__group {
  margin-top: var(--hud-space-4);
  padding-top: var(--hud-space-4);
  border-top: 1px solid var(--hud-color-row-line);
}
.advanced__legend {
  margin-bottom: var(--hud-space-3);
  padding: 0 var(--hud-space-2) 0 0; /* a gap between the heading and the divider line beside it */
  font-family: var(--hud-font-medium);
  font-size: 1.125rem;
}
.advanced__intro {
  margin: 0 0 var(--hud-space-3);
}
.advanced {
  /* The hint on the left, "Import Current Values" pushed right; stacked on narrow screens */
}
.advanced__intro-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: var(--hud-space-2) var(--hud-space-4);
  margin-bottom: var(--hud-space-3);
}
.advanced__intro-row .advanced__intro {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 20rem;
          flex: 1 1 20rem;
  margin: 0;
}
.advanced__import {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  margin-left: auto;
}
.advanced {
  /* Where the preview values came from (import or blog autofill); room before the first field */
}
.advanced [data-og-source]:not(:empty) {
  margin: 0 0 var(--hud-space-4);
}
.advanced {
  /* "Every pixel" / "Only the ones I tick", then the boxes indented under the second choice */
}
.advanced__pixels {
  min-width: 0;
  margin: var(--hud-space-2) 0 0 var(--hud-space-5);
  padding: 0;
  border: 0;
}
.advanced__pixel-list {
  margin-left: 1.75rem;
  /* Locked while "Every pixel" is chosen: they show what fires, they are not a choice */
}
.advanced__pixel-list input:disabled,
.advanced__pixel-list input:disabled + * {
  cursor: default;
}

/* --- created screen --------------------------------------------------- */
.created__table {
  margin-bottom: var(--hud-space-5);
}
.created__destination {
  color: var(--hud-color-ink-muted);
  overflow-wrap: anywhere;
}
.created__error {
  color: var(--hud-color-danger);
}
.created__paste .actions {
  margin-top: var(--hud-space-3);
}

/* Slack: posted / failed with a retry / skipped with "Post to #blog" */
.created__slack {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: var(--hud-space-2) var(--hud-space-4);
  margin: var(--hud-space-3) 0 var(--hud-space-4);
}
.created__slack .fa-slack {
  margin-right: var(--hud-space-1);
}

/* Create form: "Post the links to #blog", under the preview of the links */
.links-slack-choice {
  margin: var(--hud-space-4) 0 0;
}
.links-slack-choice .fa-slack {
  color: var(--hud-color-ink-muted);
}

.links-slack-hint {
  margin: 0 0 var(--hud-space-4);
  padding-left: 1.75rem; /* under the label text, past the checkbox */
}

.table__row--failed > :first-child {
  -webkit-box-shadow: inset 3px 0 0 var(--hud-color-danger);
          box-shadow: inset 3px 0 0 var(--hud-color-danger);
}

/* --- networks page ---------------------------------------------------- */
.networks-table td {
  vertical-align: middle;
}
.networks-table .choice {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.networks-table .field__input {
  min-width: 8rem;
}
.networks-table__order .button-group {
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
}
.networks-table__actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-3);
}

/* --- combined page view ----------------------------------------------- */
/* Per period: a people column and a bots column side by side, each stacked by link.
   Segment colors come inline (--c) from LinkStats::PALETTE; bots are the same colors, striped. */
.combo__group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 0px;
          flex: 1 1 0;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  gap: 1px;
  min-width: 2px;
  height: 100%;
}
.combo {
  /* Full-height hover target; the stack inside is the bar. */
}
.combo__col {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 0px;
          flex: 1 1 0;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  min-width: 1px;
  height: 100%;
}
.combo__stack {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: reverse;
      -ms-flex-direction: column-reverse;
          flex-direction: column-reverse; /* first link (most clicks) at the bottom */
  width: 100%;
  height: var(--h);
  overflow: hidden;
  border-radius: 2px 2px 0 0;
}
.combo__seg {
  -ms-flex-preferred-size: 0;
      flex-basis: 0;
  min-height: 1px;
  background: var(--c);
  /* A white hairline between stacked links, so neighbouring colors never merge */
  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
          box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  -webkit-transition: -webkit-filter var(--hud-transition);
  transition: -webkit-filter var(--hud-transition);
  transition: filter var(--hud-transition);
  transition: filter var(--hud-transition), -webkit-filter var(--hud-transition);
}
.combo__seg.is-active {
  -webkit-filter: brightness(0.8) saturate(1.2);
          filter: brightness(0.8) saturate(1.2);
}
.combo__col--bots .combo__seg {
  background: repeating-linear-gradient(135deg, var(--c) 0 2px, color-mix(in srgb, var(--c) 35%, #FFFFFF) 2px 4px);
}
.combo__key {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-1);
}
.combo__key-people, .combo__key-bots {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-left: var(--hud-space-2);
  background: var(--hud-color-ink-muted);
  border-radius: 2px;
}
.combo__key-bots {
  background: repeating-linear-gradient(135deg, var(--hud-color-ink-muted) 0 2px, #D9D9D9 2px 4px);
}

.swatch {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  margin-right: var(--hud-space-1);
  background: var(--c);
  border-radius: 2px;
  vertical-align: -0.05em;
}

.section-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: var(--hud-space-2);
}

/* --- settings page ---------------------------------------------------- */
.pixel {
  margin-bottom: var(--hud-space-4);
}
.pixel__head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-3);
  margin-bottom: var(--hud-space-4);
}
.pixel__title {
  margin: 0;
  font-size: var(--hud-text-lg);
}
.pixel__title:focus {
  outline: none;
}
@media (min-width: 40em) {
  .pixel__toggle {
    padding-top: 1.75rem;
  }
}
.pixel__snippet {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
}
.pixel .actions {
  margin-top: 0;
}

.flag--on {
  background: #E6F2DC;
  color: var(--hud-color-ok-text);
}

/* Hover tooltip on the click charts (links.js). It repeats what the "Show the numbers" table says,
   so it is hidden from assistive tech; Escape or moving away closes it. */
.chart-tip {
  position: fixed;
  z-index: 1000;
  min-width: 10rem;
  max-width: min(20rem, 100vw - 16px);
  padding: var(--hud-space-2) var(--hud-space-3);
  background: var(--hud-color-ink);
  border-radius: var(--hud-radius-sm);
  -webkit-box-shadow: var(--hud-shadow-md);
          box-shadow: var(--hud-shadow-md);
  color: #FFFFFF; /* 12:1 on the ink background */
  font-size: var(--hud-text-sm);
  line-height: 1.4;
  pointer-events: none;
}
.chart-tip__title {
  margin: 0 0 var(--hud-space-1);
  font-family: var(--hud-font-medium);
}
.chart-tip__kind {
  color: #D0D0D0; /* 8.6:1 on ink */
  font-family: var(--hud-font-sans);
}
.chart-tip__row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-2);
}
.chart-tip__row--active {
  font-family: var(--hud-font-medium);
}
.chart-tip__label {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chart-tip__value {
  font-variant-numeric: tabular-nums;
}
.chart-tip__total {
  margin-top: var(--hud-space-1);
  padding-top: var(--hud-space-1);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.chart-tip .swatch {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  margin: 0;
  -webkit-box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
          box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.chart-tip .swatch--bots {
  background: repeating-linear-gradient(135deg, var(--c) 0 2px, color-mix(in srgb, var(--c) 35%, #FFFFFF) 2px 4px);
}

/* ---------------------------------------
// HUD design system — Template Manager (full-service/template-manager)
//
// Builds on _prospector.scss (panel, field, button, table, notice) and _links.scss (toolbar, search,
// copy button). The editor screen is full width: the code is the one dark surface on the page
// (Monokai, as in Account's design builder), with the files panel beside it. Purple is Full Service's
// accent (its dashboard tile), used for the selected tab. Cards get their edge from a shadow.
----------------------------------------*/
:root {
  --tm-code-bg: #272822; /* Monokai */
  --tm-code-bar: #1E1F1C;
  --tm-code-raised: #32332C;
  --tm-code-text: #F8F8F2;
  --tm-code-muted: #C2C2B4; /* 8.6:1 on the bar */
  --tm-accent: var(--hud-color-purple); /* 3.9:1 on white, 3.6:1 on the bar: fine for a 3px indicator */
  --tm-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Wide tool pages: the editor uses the whole window. */
.hud-main--wide {
  --hud-content-max: none;
}
@media (min-width: 40em) {
  .hud-main--wide {
    padding-inline: var(--hud-space-5);
  }
}

.tm {
  /* A flex item of .hud-main: without this a wide child widens the page instead of scrolling. */
  min-width: 0;
}
.tm [hidden] {
  display: none !important;
}
.tm .table-wrap {
  position: relative;
}
.tm code {
  font-family: var(--tm-mono);
  font-size: 0.85em;
}

.tm-id {
  padding: 0.1em 0.45em;
  background: var(--hud-color-grey-bg);
  border-radius: var(--hud-radius-sm);
  color: var(--hud-color-ink);
  white-space: nowrap;
}
.tm-id--large {
  font-size: 0.6em;
  vertical-align: 0.25em;
}

/* Status: complete reads as done, processing as in progress, purchased as not started. */
.tm-status--complete {
  background: #E6F2DC;
  color: var(--hud-color-ok-text);
}
.tm-status--processing {
  background: var(--hud-color-warn-bg);
  color: var(--hud-color-warn-text);
}

/* --- list ------------------------------------------------------------- */
.tm-count {
  margin: 0;
}

.tm-table__template {
  min-width: 16rem;
}
.tm-table__template .tm-id {
  display: inline-block;
  margin-top: var(--hud-space-1);
}
.tm-table__actions {
  width: 1%;
  white-space: nowrap;
}
.tm-table__actions .button + .button {
  margin-left: var(--hud-space-2);
}

/* --- new -------------------------------------------------------------- */
.tm-new {
  max-width: 40rem;
}
.tm-new__id {
  font-family: var(--tm-mono);
  letter-spacing: 0.04em;
}
.tm-new__errors a {
  color: inherit;
}
.tm-new__copy {
  margin: 0 0 var(--hud-space-2);
}

.tm-id-status {
  color: var(--hud-color-ok-text);
}
.tm-id-status--bad {
  color: var(--hud-color-danger);
}
.tm-id-status:empty {
  display: none;
}

.tm-account__name {
  color: var(--hud-color-ink);
  font-family: var(--hud-font-medium);
}
.tm-account__name:empty {
  display: none;
}

/* --- editor header ---------------------------------------------------- */
.tm-head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: var(--hud-space-4) var(--hud-space-6);
  margin-bottom: var(--hud-space-5);
}
.tm-head__name {
  margin: 0;
  font-size: var(--hud-text-xl);
  font-weight: 400;
  line-height: var(--hud-leading-tight);
}
.tm-head__facts {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: var(--hud-space-1) var(--hud-space-5);
  margin: var(--hud-space-2) 0 0;
  font-size: var(--hud-text-sm);
}
.tm-head__facts > div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  gap: var(--hud-space-2);
}
.tm-head__facts dt {
  color: var(--hud-color-ink-muted);
}
.tm-head__facts dd {
  margin: 0;
}
.tm-head__facts .flag {
  margin: 0;
}
.tm-head__muted {
  color: var(--hud-color-ink-muted);
}
.tm-head__actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  gap: var(--hud-space-2) var(--hud-space-3);
}

.tm-save-state {
  margin: 0 var(--hud-space-2) 0 0;
  color: var(--hud-color-ink-muted);
  font-size: var(--hud-text-sm);
}
.tm-save-state--clean {
  color: var(--hud-color-ok-text);
}
.tm-save-state--dirty, .tm-save-state--saving {
  color: var(--hud-color-warn-text);
}
.tm-save-state--error, .tm-save-state--conflict {
  -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
  contain: inline-size;
  margin-right: 0;
  color: var(--hud-color-danger);
  text-align: right;
}
.tm-save-state__action {
  color: inherit;
}

.tm-kbd,
.tm-code__keys kbd {
  padding: 0 0.35em;
  border-radius: 3px;
  font-family: var(--tm-mono);
  font-size: 0.75rem;
}

.tm-kbd {
  background: rgba(255, 255, 255, 0.18);
}

/* --- workspace -------------------------------------------------------- */
.tm-workspace {
  display: -ms-grid;
  display: grid;
  gap: var(--hud-space-5);
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}
@media (min-width: 70em) {
  .tm-workspace {
    -ms-grid-columns: minmax(0, 1fr) 24rem;
    grid-template-columns: minmax(0, 1fr) 24rem;
  }
}
@media (min-width: 100em) {
  .tm-workspace {
    -ms-grid-columns: minmax(0, 1fr) 28rem;
    grid-template-columns: minmax(0, 1fr) 28rem;
  }
}

.tm-main {
  min-width: 0;
}

.tm-tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: var(--hud-space-1);
  margin-bottom: var(--hud-space-3);
  border-bottom: 1px solid var(--hud-color-border);
}
.tm-tabs__tab {
  position: relative;
  min-height: 2.75rem;
  padding: 0 var(--hud-space-4);
  background: none;
  border: 0;
  color: var(--hud-color-ink-muted);
  font: inherit;
  font-family: var(--hud-font-medium);
  cursor: pointer;
}
.tm-tabs__tab:hover {
  color: var(--hud-color-ink);
}
.tm-tabs__tab[aria-selected=true] {
  color: var(--hud-color-ink);
}
.tm-tabs__tab[aria-selected=true]::after {
  content: "";
  position: absolute;
  right: var(--hud-space-2);
  bottom: -1px;
  left: var(--hud-space-2);
  height: 3px;
  background: var(--tm-accent);
  border-radius: 3px 3px 0 0;
}

/* --- code ------------------------------------------------------------- */
.tm-code {
  container-type: inline-size;
  color-scheme: dark; /* dark scrollbars in the editors */
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  background: var(--tm-code-bg);
  border-radius: var(--hud-radius);
  -webkit-box-shadow: var(--hud-shadow-md);
          box-shadow: var(--hud-shadow-md);
  color: var(--tm-code-text);
}
@media (min-width: 56em) {
  .tm-code--vars {
    -ms-grid-columns: minmax(0, 1fr) 20rem;
    grid-template-columns: minmax(0, 1fr) 20rem;
  }
  .tm-code--vars .tm-code__bar {
    grid-column: 1/-1;
  }
  .tm-code--vars {
    /* The panel comes before the editors in the markup (it belongs to the bar's toggle), but sits on the right. */
  }
  .tm-code--vars .tm-code__editors {
    -ms-grid-column: 1;
    grid-column: 1;
    -ms-grid-row: 2;
    grid-row: 2;
  }
  .tm-code--vars .tm-vars {
    -ms-grid-column: 2;
    grid-column: 2;
    -ms-grid-row: 2;
    grid-row: 2;
  }
}
.tm-code__bar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-2) var(--hud-space-4);
  padding: 0 var(--hud-space-3) 0 0;
  background: var(--tm-code-bar);
}
.tm-code__tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  min-width: 0;
}
.tm-code__group {
  -ms-flex-item-align: center;
      -ms-grid-row-align: center;
      align-self: center;
  padding: 0 var(--hud-space-2) 0 var(--hud-space-4);
  color: var(--tm-code-muted);
  font-size: 0.75rem;
}
.tm-code__group + .tm-code__tab {
  padding-left: var(--hud-space-2);
}
.tm-code__tab {
  position: relative;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-1);
  min-height: 2.75rem;
  padding: 0 var(--hud-space-3);
  background: none;
  border: 0;
  color: var(--tm-code-muted);
  font: inherit;
  font-family: var(--hud-font-medium);
  font-size: var(--hud-text-sm);
  cursor: pointer;
}
.tm-code__tab:hover {
  color: var(--tm-code-text);
}
.tm-code__tab[aria-selected=true] {
  background: var(--tm-code-bg);
  color: var(--tm-code-text);
}
.tm-code__tab[aria-selected=true]::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--tm-accent);
}
.tm-code__tab.has-error {
  color: #FF8A7A;
}
.tm-code__tab:focus-visible {
  outline: var(--hud-focus-ring);
  outline-color: #8EC9EC;
  outline-offset: -3px;
}
.tm-code {
  /* Unsaved changes in this editor */
}
.tm-code__dot {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--hud-color-orange);
  border-radius: 50%;
}
.tm-code__warn {
  color: var(--hud-color-orange);
  font-size: 0.75rem;
}
.tm-code__empty {
  color: #A6A696; /* 5.4:1 on the bar */
  font-family: var(--hud-font-sans);
  font-size: 0.7rem;
}
.tm-code__keys {
  margin: 0 0 0 auto;
  color: var(--tm-code-muted);
  font-size: 0.75rem;
}
.tm-code__keys kbd {
  margin-left: var(--hud-space-2);
  background: var(--tm-code-raised);
  color: var(--tm-code-text);
}
.tm-code__keys {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  /* Only when the bar has room for it beside the tabs and the Variables button */
}
@container (max-width: 74rem) {
  .tm-code__keys {
    display: none;
  }
}
.tm-code__vars-toggle, .tm-code__full {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  margin-left: auto;
  background: var(--tm-code-raised);
  -webkit-box-shadow: none;
          box-shadow: none;
  color: var(--tm-code-text);
}
.tm-code__vars-toggle:hover, .tm-code__vars-toggle[aria-expanded=true], .tm-code__full:hover, .tm-code__full[aria-expanded=true] {
  background: #45463D;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.tm-code__vars-toggle:focus-visible, .tm-code__full:focus-visible {
  outline-color: #8EC9EC;
}
.tm-code__keys + .tm-code__full, .tm-code__full + .tm-code__vars-toggle {
  margin-left: 0;
}
.tm-code__braces {
  font-family: var(--tm-mono);
  color: #E6DB74; /* Monokai's string yellow */
}
.tm-code__editors {
  position: relative;
  min-width: 0;
}
.tm-code__editor {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  /* Fills the window under the header and tabs, never shorter than a comfortable working height. */
  height: clamp(26rem, 100dvh - 16rem, 90rem);
}
.tm-code__editor .CodeMirror {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  height: auto;
  min-height: 0;
  font-family: var(--tm-mono);
  font-size: 0.8125rem;
  line-height: 1.55;
}
.tm-code__editor .CodeMirror-focused {
  -webkit-box-shadow: inset 0 0 0 2px #8EC9EC;
          box-shadow: inset 0 0 0 2px #8EC9EC;
}
.tm-code__error:empty {
  display: none;
}
.tm-code__error {
  margin: 0;
  padding: var(--hud-space-2) var(--hud-space-4);
  background: var(--hud-color-error-bg);
  color: #8E2A1F;
}
.tm-code__warning {
  margin: 0;
  padding: var(--hud-space-2) var(--hud-space-4);
  background: var(--hud-color-warn-bg);
  color: var(--hud-color-warn-text);
  font-size: var(--hud-text-sm);
}

/* The textarea CodeMirror replaces; visible only if CodeMirror fails to load. */
.tm-code__textarea {
  width: 100%;
  height: 100%;
  padding: var(--hud-space-3);
  background: var(--tm-code-bg);
  border: 0;
  color: var(--tm-code-text);
  font-family: var(--tm-mono);
  font-size: 0.8125rem;
}

/* --- variables -------------------------------------------------------- */
.tm-vars {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-width: 0;
  max-height: clamp(26rem, 100dvh - 16rem, 90rem);
  overflow-y: auto;
  background: var(--tm-code-raised);
  color: var(--tm-code-text);
  font-size: var(--hud-text-sm);
}
.tm-vars__head {
  position: sticky;
  top: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: var(--hud-space-2) var(--hud-space-2) var(--hud-space-2) var(--hud-space-4);
  background: var(--tm-code-raised);
}
.tm-vars__head .copy-button {
  color: var(--tm-code-muted);
}
.tm-vars__head .copy-button:hover {
  background: #45463D;
  color: var(--tm-code-text);
}
.tm-vars__title {
  margin: 0;
  font-family: var(--hud-font-medium);
  font-size: var(--hud-text-base);
  font-weight: 400;
}
.tm-vars__for {
  color: var(--tm-code-muted);
  font-family: var(--hud-font-sans);
  font-size: var(--hud-text-sm);
}
.tm-vars__intro {
  margin: 0;
  padding: 0 var(--hud-space-4) var(--hud-space-3);
  color: var(--tm-code-muted);
}
.tm-vars__body {
  padding: 0 var(--hud-space-2) var(--hud-space-4);
}
.tm-vars__group {
  margin: var(--hud-space-3) var(--hud-space-2) var(--hud-space-1);
  color: var(--tm-code-muted);
  font-family: var(--hud-font-medium);
  font-size: 0.75rem;
  font-weight: 400;
}
.tm-vars__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tm-vars__channels {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-1);
  padding: 0 var(--hud-space-2) var(--hud-space-2);
}
.tm-vars__channels-label {
  margin-right: var(--hud-space-1);
  color: var(--tm-code-muted);
  font-size: 0.75rem;
}
.tm-vars__tips {
  margin-top: var(--hud-space-3);
  padding: 0 var(--hud-space-2);
  color: var(--tm-code-muted);
}
.tm-vars__tips p {
  margin: 0 0 var(--hud-space-2);
}

.tm-var {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 100%;
  padding: var(--hud-space-2);
  background: none;
  border: 0;
  border-radius: var(--hud-radius-sm);
  color: var(--tm-code-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tm-var:hover {
  background: #45463D;
}
.tm-var:focus-visible {
  outline: 2px solid #8EC9EC;
  outline-offset: -2px;
}
.tm-var__path {
  color: #E6DB74;
  overflow-wrap: anywhere;
}
.tm-var__desc {
  color: var(--tm-code-muted);
  font-size: 0.8125rem;
}
.tm-var--chip {
  width: 2rem;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: var(--hud-space-1) 0;
  background: var(--tm-code-bg);
}

/* Autocomplete list (CodeMirror show-hint), restyled to match the editor. */
.CodeMirror-hints {
  z-index: 20;
  max-width: 34rem;
  padding: var(--hud-space-1);
  background: var(--tm-code-raised);
  border: 0;
  border-radius: var(--hud-radius-sm);
  -webkit-box-shadow: var(--hud-shadow-md);
          box-shadow: var(--hud-shadow-md);
  font-family: var(--tm-mono);
  font-size: 0.8125rem;
}

.CodeMirror-hint {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: var(--hud-space-3);
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: var(--hud-space-1) var(--hud-space-2);
  border-radius: 3px;
  color: var(--tm-code-text);
}

li.CodeMirror-hint-active {
  background: #45463D;
  color: var(--tm-code-text);
}

.tm-hint__path {
  color: #E6DB74;
}

.tm-hint__desc {
  overflow: hidden;
  color: var(--tm-code-muted);
  font-family: var(--hud-font-sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- details and display settings ------------------------------------- */
.tm-panel.tm-settings {
  padding: var(--hud-space-5);
  background: var(--hud-color-surface);
  border-radius: var(--hud-radius);
  -webkit-box-shadow: var(--hud-shadow-sm);
          box-shadow: var(--hud-shadow-sm);
}

.tm-settings__grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0 var(--hud-space-5);
}
.tm-settings__note {
  margin: 0 0 var(--hud-space-5);
}
.tm-settings__section {
  margin: 0 0 var(--hud-space-4);
  padding: 0;
  border: 0;
  min-width: 0;
}
.tm-settings__section + .tm-settings__section {
  padding-top: var(--hud-space-4);
  border-top: 1px solid var(--hud-color-row-line);
}
.tm-settings__legend {
  margin-bottom: var(--hud-space-3);
  padding: 0;
  font-family: var(--hud-font-medium);
  font-size: var(--hud-text-lg);
}

.tm-field--wide {
  grid-column: 1/-1;
}
.tm-field--toggle {
  -ms-flex-item-align: center;
      -ms-grid-row-align: center;
      align-self: center;
}
.tm-field__mono {
  font-family: var(--tm-mono);
  font-size: var(--hud-text-sm);
}
.tm-field .field__hint--alert:empty {
  display: none;
}

/* A checkbox drawn as a switch: the real input stays (keyboard, screen readers), only its look changes. */
.tm-switch {
  position: relative;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-3);
  min-height: 2.75rem;
  cursor: pointer;
}
.tm-switch__input {
  position: absolute;
  opacity: 0;
  width: 2.5rem;
  height: 1.5rem;
  margin: 0;
}
.tm-switch__track {
  position: relative;
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  width: 2.5rem;
  height: 1.5rem;
  background: var(--hud-color-surface);
  border: 1px solid var(--hud-color-input-border);
  border-radius: 1rem;
  -webkit-transition: background-color var(--hud-transition), border-color var(--hud-transition);
  transition: background-color var(--hud-transition), border-color var(--hud-transition);
}
.tm-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1rem;
  height: 1rem;
  background: var(--hud-color-input-border);
  border-radius: 50%;
  -webkit-transition: background-color var(--hud-transition), -webkit-transform var(--hud-transition);
  transition: background-color var(--hud-transition), -webkit-transform var(--hud-transition);
  transition: transform var(--hud-transition), background-color var(--hud-transition);
  transition: transform var(--hud-transition), background-color var(--hud-transition), -webkit-transform var(--hud-transition);
}
.tm-switch__input:checked + .tm-switch__track {
  background: var(--hud-color-blue);
  border-color: var(--hud-color-blue);
}
.tm-switch__input:checked + .tm-switch__track::after {
  background: #FFFFFF;
  -webkit-transform: translateX(1rem);
      -ms-transform: translateX(1rem);
          transform: translateX(1rem);
}
.tm-switch__input:focus-visible + .tm-switch__track {
  outline: var(--hud-focus-ring);
  outline-offset: 2px;
}

.tm-color {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-2);
}
.tm-color__swatch {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  width: 2.75rem;
  height: 2.75rem;
  background: -webkit-gradient(linear, left top, left bottom, from(var(--swatch, transparent)), to(var(--swatch, transparent))), repeating-conic-gradient(#DDDDDD 0 25%, #FFFFFF 0 50%) 0 0/12px 12px;
  background: linear-gradient(var(--swatch, transparent), var(--swatch, transparent)), repeating-conic-gradient(#DDDDDD 0 25%, #FFFFFF 0 50%) 0 0/12px 12px;
  border: 1px solid var(--hud-color-input-border);
  border-radius: var(--hud-radius-sm);
}
.tm-color__swatch--none {
  background: var(--hud-color-grey-bg);
}

/* --- files ------------------------------------------------------------ */
.tm-files {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
@media (min-width: 70em) {
  .tm-files {
    position: sticky;
    top: var(--hud-space-4);
    max-height: calc(100dvh - 2 * var(--hud-space-4));
  }
}
.tm-files .copy-button.is-copied::after {
  left: auto;
  right: 100%;
  margin: 0 var(--hud-space-1) 0 0;
}
.tm-files__head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: var(--hud-space-2);
  padding: var(--hud-space-4) var(--hud-space-4) var(--hud-space-2);
}
.tm-files__title {
  margin: 0;
  font-size: var(--hud-text-lg);
  font-weight: 400;
}
.tm-files__tools {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: var(--hud-space-2);
}
.tm-files__notice {
  margin: var(--hud-space-2) var(--hud-space-4) var(--hud-space-4);
}
.tm-files__body {
  position: relative;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  min-height: 8rem;
  overflow-y: auto;
  padding: 0 var(--hud-space-2) var(--hud-space-3);
  -webkit-transition: background-color var(--hud-transition);
  transition: background-color var(--hud-transition);
}
.tm-files__body.is-dragging {
  background: var(--hud-color-blue-tint);
  -webkit-box-shadow: inset 0 0 0 2px var(--hud-color-blue);
          box-shadow: inset 0 0 0 2px var(--hud-color-blue);
}
.tm-files__status {
  margin: var(--hud-space-3) var(--hud-space-2);
  color: var(--hud-color-ink-muted);
  font-size: var(--hud-text-sm);
}
.tm-files__status--error {
  color: var(--hud-color-danger);
}
.tm-files__refs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: var(--hud-space-2);
  margin: var(--hud-space-3) var(--hud-space-2) 0;
  color: var(--hud-color-ink-muted);
  font-size: var(--hud-text-sm);
}
.tm-files__refs[hidden] {
  display: none;
}
.tm-files__refs i {
  margin-top: 0.2em;
  color: var(--hud-color-warn-text);
}

.tm-crumbs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-1) var(--hud-space-3);
  padding: 0 var(--hud-space-4) var(--hud-space-2);
  font-size: var(--hud-text-sm);
}
.tm-crumbs__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tm-crumbs__list li + li::before {
  content: "/";
  margin: 0 var(--hud-space-1);
  color: var(--hud-color-ink-muted);
}
.tm-crumbs__link {
  padding: var(--hud-space-1) 0;
  background: none;
  border: 0;
  color: var(--hud-color-blue);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.tm-crumbs__current {
  font-family: var(--hud-font-medium);
}
.tm-crumbs__delete {
  margin-left: auto;
  color: var(--hud-color-danger);
}

.tm-folder-form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: var(--hud-space-2);
  padding: 0 var(--hud-space-4) var(--hud-space-3);
}
.tm-folder-form .field__input {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}

.tm-file-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tm-file-list__item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-1);
  border-radius: var(--hud-radius-sm);
}
.tm-file-list__item:hover {
  background: var(--hud-color-surface-alt);
}
.tm-file-list__banner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-2) var(--hud-space-3);
  margin: 0 var(--hud-space-2) var(--hud-space-2);
  padding: var(--hud-space-2) var(--hud-space-3);
  background: var(--hud-color-warn-bg);
  border-radius: var(--hud-radius-sm);
}

.tm-problems {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 12rem;
          flex: 1 1 12rem;
  margin: 0;
  color: var(--hud-color-warn-text);
  font-size: var(--hud-text-sm);
}

.tm-file {
  display: -ms-grid;
  display: grid;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  -ms-grid-columns: 2.5rem var(--hud-space-3) minmax(0, 1fr);
  grid-template-columns: 2.5rem minmax(0, 1fr);
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-3);
  min-width: 0;
  min-height: 3rem;
  padding: var(--hud-space-1) var(--hud-space-2);
  background: none;
  border: 0;
  border-radius: var(--hud-radius-sm);
  color: var(--hud-color-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tm-file.is-selected {
  background: var(--hud-color-blue-tint);
  -webkit-box-shadow: inset 3px 0 0 var(--hud-color-blue);
          box-shadow: inset 3px 0 0 var(--hud-color-blue);
}
.tm-file__thumb {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  overflow: hidden;
  background: var(--hud-color-grey-bg);
  border-radius: var(--hud-radius-sm);
  color: var(--hud-color-ink-muted);
  font-size: 1.1rem;
  /* Transparent images (logos, SVGs) show against a checkerboard. */
}
.tm-file__thumb--image {
  background: repeating-conic-gradient(#E4E4E4 0 25%, #FFFFFF 0 50%) 0 0/10px 10px;
}
.tm-file__thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.tm-file--folder .tm-file__thumb {
  background: #F4EAF8;
  color: var(--tm-accent);
}
.tm-file__main {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-width: 0;
}
.tm-file__name {
  overflow: hidden;
  font-size: var(--hud-text-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tm-file__meta {
  color: var(--hud-color-ink-muted);
  font-size: 0.75rem;
}
.tm-file__problem {
  margin-left: var(--hud-space-2);
  color: var(--hud-color-warn-text);
}
.tm-file__copy {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
}

.tm-drop-hint {
  margin: var(--hud-space-3) var(--hud-space-2) 0;
  padding: var(--hud-space-4);
  border: 2px dashed var(--hud-color-border);
  border-radius: var(--hud-radius);
  color: var(--hud-color-ink-muted);
  font-size: var(--hud-text-sm);
  text-align: center;
}
.tm-drop-hint i {
  display: block;
  margin-bottom: var(--hud-space-1);
  font-size: 1.4rem;
}
.is-dragging .tm-drop-hint {
  border-color: var(--hud-color-blue);
  color: var(--hud-color-blue-dark);
}

/* Upload queue: one line per file while it uploads, then it goes away. */
.tm-queue {
  margin: 0;
  padding: 0 var(--hud-space-4);
  list-style: none;
}
.tm-queue:empty {
  display: none;
}
.tm-queue__item {
  padding: var(--hud-space-2) 0;
  font-size: var(--hud-text-sm);
}
.tm-queue__item + .tm-queue__item {
  border-top: 1px solid var(--hud-color-row-line);
}
.tm-queue__item:last-child {
  margin-bottom: var(--hud-space-2);
}
.tm-queue__item--done .tm-queue__status {
  color: var(--hud-color-ok-text);
}
.tm-queue__item--error .tm-queue__status {
  color: var(--hud-color-danger);
}
.tm-queue__item--ask .tm-queue__status {
  color: var(--hud-color-warn-text);
}
.tm-queue__head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: var(--hud-space-3);
}
.tm-queue__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tm-queue__status {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  color: var(--hud-color-ink-muted);
  font-variant-numeric: tabular-nums;
}
.tm-queue__bar {
  display: block;
  width: 100%;
  height: 0.35rem;
  margin-top: var(--hud-space-1);
  overflow: hidden;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: var(--hud-color-grey-bg);
  border: 0;
  border-radius: 1rem;
}
.tm-queue__bar::-webkit-progress-bar {
  background: var(--hud-color-grey-bg);
}
.tm-queue__bar::-webkit-progress-value {
  background: var(--hud-color-blue);
  border-radius: 1rem;
}
.tm-queue__bar::-moz-progress-bar {
  background: var(--hud-color-blue);
  border-radius: 1rem;
}
.tm-queue__item--done .tm-queue__bar::-webkit-progress-value {
  background: var(--hud-color-green);
}
.tm-queue__actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: var(--hud-space-2);
}
.tm-queue__actions:empty {
  display: none;
}
.tm-queue__message {
  -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
  margin: var(--hud-space-2) 0 0;
}

/* The selected file: preview, facts, both URLs, and what can be done with it. */
.tm-detail {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  max-height: 60%;
  overflow-y: auto;
  padding: var(--hud-space-4);
  border-top: 1px solid var(--hud-color-row-line);
  background: var(--hud-color-surface-alt);
}
.tm-detail__preview {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: var(--hud-space-3);
  padding: var(--hud-space-2);
  background: repeating-conic-gradient(#E4E4E4 0 25%, #FFFFFF 0 50%) 0 0/12px 12px;
  border-radius: var(--hud-radius-sm);
}
.tm-detail__preview img,
.tm-detail__preview video {
  max-width: 100%;
  max-height: 10rem;
  -o-object-fit: contain;
     object-fit: contain;
}
.tm-detail__name {
  margin: 0;
  font-size: var(--hud-text-base);
  font-family: var(--hud-font-medium);
  font-weight: 400;
  overflow-wrap: anywhere;
}
.tm-detail__name:focus {
  outline: none;
}
.tm-detail__problem {
  margin: var(--hud-space-2) 0 0;
  padding: var(--hud-space-2) var(--hud-space-3);
  background: var(--hud-color-warn-bg);
  border-radius: var(--hud-radius-sm);
  color: var(--hud-color-warn-text);
  font-size: var(--hud-text-sm);
}
.tm-detail__problem .button {
  margin-top: var(--hud-space-2);
}
.tm-detail__facts {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: minmax(0, 1fr) var(--hud-space-4) minmax(0, 1fr);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--hud-space-2) var(--hud-space-4);
  margin: var(--hud-space-3) 0;
  font-size: var(--hud-text-sm);
}
.tm-detail__facts dt {
  color: var(--hud-color-ink-muted);
  font-size: 0.75rem;
}
.tm-detail__facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.tm-detail__actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: var(--hud-space-2);
  margin-top: var(--hud-space-3);
}

.tm-url + .tm-url {
  margin-top: var(--hud-space-2);
}
.tm-url__label {
  display: block;
  margin-bottom: var(--hud-space-1);
  font-size: 0.75rem;
  font-family: var(--hud-font-medium);
}
.tm-url__note {
  color: var(--hud-color-ink-muted);
  font-family: var(--hud-font-sans);
}
.tm-url__row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-1);
}
.tm-url__input {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
  font-family: var(--tm-mono);
  font-size: 0.75rem;
}

.tm-confirm {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-2);
  margin-top: var(--hud-space-3);
  padding: var(--hud-space-3);
  background: var(--hud-color-error-bg);
  border-radius: var(--hud-radius-sm);
}
.tm-confirm__text {
  -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
  margin: 0;
  color: #8E2A1F;
  font-size: var(--hud-text-sm);
}
.tm-confirm__yes {
  background: var(--hud-color-danger);
  -webkit-box-shadow: var(--hud-shadow-sm);
          box-shadow: var(--hud-shadow-sm);
  color: #FFFFFF;
}
.tm-confirm__yes:hover {
  background: #A33224;
  -webkit-box-shadow: var(--hud-shadow-md);
          box-shadow: var(--hud-shadow-md);
}
.tm-confirm--inline {
  -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
  margin-top: var(--hud-space-1);
}

@media (prefers-reduced-motion: reduce) {
  .tm-switch__track,
  .tm-switch__track::after,
  .tm-files__body {
    -webkit-transition: none;
    transition: none;
  }
}
.tm-code--fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9;
  -ms-grid-rows: auto minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 0;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.tm-code--fullscreen .tm-code__editors {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-height: 0;
}
.tm-code--fullscreen .tm-code__editor {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  height: auto;
  min-height: 0;
}
.tm-code--fullscreen .tm-vars {
  max-height: none;
  min-height: 0;
}

.tm-no-scroll {
  overflow: hidden;
}

/* --- walls: push, pull, compare --------------------------------------- */
:root {
  --tm-template-ink: #6E2F86; /* 8:1 on its tint */
  --tm-template-tint: #F3E8F8;
  --tm-wall-ink: var(--hud-color-blue-dark);
  --tm-wall-tint: var(--hud-color-blue-tint);
  --tm-template-code: #AE81FF; /* 5.2:1 on the editor */
  --tm-wall-code: #66D9EF; /* 9:1 on the editor */
}

.tm-chip {
  display: inline-block;
  padding: 0.05em 0.45em;
  border-radius: var(--hud-radius-sm);
  font-family: var(--tm-mono);
  font-size: 0.8125rem;
  white-space: nowrap;
}
.tm-chip--template {
  background: var(--tm-template-tint);
  color: var(--tm-template-ink);
}
.tm-chip--wall {
  background: var(--tm-wall-tint);
  color: var(--tm-wall-ink);
}
.tm-code .tm-chip--template {
  background: rgba(174, 129, 255, 0.16);
  color: var(--tm-template-code);
}
.tm-code .tm-chip--wall {
  background: rgba(102, 217, 239, 0.14);
  color: var(--tm-wall-code);
}

.tm-sync-notice {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-2) var(--hud-space-3);
  margin: calc(var(--hud-space-2) * -1) 0 var(--hud-space-4);
  font-size: var(--hud-text-base);
}
.tm-sync-notice > span {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 24rem;
          flex: 1 1 24rem;
}
.tm-sync-notice:focus {
  outline: none;
}
.tm-sync-notice:focus-visible {
  outline: var(--hud-focus-ring);
  outline-offset: 2px;
}
.tm-sync-notice__action {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
}
.tm-sync-notice__close {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
}

/* The Walls tab */
.tm-panel.tm-walls {
  padding: var(--hud-space-5);
  background: var(--hud-color-surface);
  border-radius: var(--hud-radius);
  -webkit-box-shadow: var(--hud-shadow-sm);
          box-shadow: var(--hud-shadow-sm);
}

.tm-walls__intro {
  max-width: 46rem;
  margin: 0 0 var(--hud-space-5);
  color: var(--hud-color-ink-muted);
}
.tm-walls__find {
  max-width: 36rem;
  margin-bottom: var(--hud-space-5);
}
.tm-walls__find .field__hint {
  margin-bottom: 0;
}
.tm-walls__find-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: var(--hud-space-2);
}
.tm-walls__find-row .field__input {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}
.tm-walls__group + .tm-walls__group {
  margin-top: var(--hud-space-6);
}
.tm-walls__head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: var(--hud-space-1) var(--hud-space-4);
}
.tm-walls__title {
  margin: 0 0 var(--hud-space-3);
  font-family: var(--hud-font-medium);
  font-size: var(--hud-text-lg);
  font-weight: 400;
}
.tm-walls__count {
  margin: 0;
}
.tm-walls__status {
  margin: 0;
  color: var(--hud-color-ink-muted);
}
.tm-walls__status--error {
  color: var(--hud-color-danger);
}
.tm-walls__table-wrap {
  -webkit-box-shadow: none;
          box-shadow: none;
  border-radius: 0;
}
.tm-walls__table td {
  vertical-align: middle;
}
.tm-walls__name {
  display: block;
  color: var(--hud-color-ink);
  font-family: var(--hud-font-medium);
  text-decoration: none;
}
.tm-walls__name:hover {
  color: var(--hud-color-blue);
  text-decoration: underline;
}
.tm-walls__meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-1) var(--hud-space-2);
  margin-top: var(--hud-space-1);
  font-size: var(--hud-text-sm);
}
.tm-walls__type {
  color: var(--hud-color-ink-muted);
}
.tm-walls__flag {
  margin: 0;
}
.tm-walls__flag--live {
  background: #E6F2DC;
  color: var(--hud-color-ok-text);
}
.tm-walls__flag--other {
  background: var(--hud-color-warn-bg);
  color: var(--hud-color-warn-text);
}
.tm-walls__dates {
  white-space: nowrap;
}
.tm-walls__actions {
  white-space: nowrap;
  text-align: right;
}
.tm-walls__actions .button + .button {
  margin-left: var(--hud-space-1);
}
.tm-walls__row--off {
  background: var(--hud-color-bg); /* muted ink is 4.9:1 on it */
}
.tm-walls__row--off .tm-walls__name {
  color: var(--hud-color-ink-muted);
}
.tm-walls__row--off .tm-chip--wall {
  background: var(--hud-color-grey-bg);
  color: var(--hud-color-ink-muted);
}
.tm-walls__off {
  color: var(--hud-color-ink-muted);
  font-size: var(--hud-text-sm);
}

.tm-match {
  font-size: var(--hud-text-sm);
}
.tm-match i {
  margin-right: 0.15em;
}
.tm-match--same {
  color: var(--hud-color-ok-text);
}
.tm-match--differs {
  color: var(--tm-wall-ink);
}
.tm-match--none {
  color: var(--hud-color-ink-muted);
}

/* Compare mode: lives inside the code panel, above the editors. */
.tm-code__differs {
  color: var(--tm-wall-code);
  font-size: 0.7rem;
}

.tm-compare {
  background: var(--tm-code-bar);
  border-top: 1px solid #3A3B33;
}
.tm-compare__bar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-2) var(--hud-space-4);
  padding: var(--hud-space-2) var(--hud-space-3) var(--hud-space-2) var(--hud-space-4);
}
.tm-compare__summary {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 20rem;
          flex: 1 1 20rem;
  margin: 0;
  color: var(--tm-code-text);
  font-size: var(--hud-text-sm);
}
.tm-compare__tools {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: var(--hud-space-2);
}
.tm-compare__tool {
  background: var(--tm-code-raised);
  -webkit-box-shadow: none;
          box-shadow: none;
  color: var(--tm-code-text);
}
.tm-compare__tool:hover:not(:disabled), .tm-compare__tool[aria-expanded=true] {
  background: #45463D;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.tm-compare__tool:disabled {
  background: var(--tm-code-raised);
  color: var(--tm-code-muted);
  opacity: 0.7;
}
.tm-compare__tool:focus-visible {
  outline-color: #8EC9EC;
}
.tm-compare__tool--push {
  background: rgba(102, 217, 239, 0.16);
  color: var(--tm-wall-code);
}
.tm-compare__tool--push:hover:not(:disabled) {
  background: rgba(102, 217, 239, 0.26);
}
.tm-compare__settings {
  display: block;
  overflow-y: auto;
  padding: var(--hud-space-3) var(--hud-space-4) var(--hud-space-5);
}
.tm-compare__settings:focus-visible {
  outline: var(--hud-focus-ring);
  outline-color: #8EC9EC;
  outline-offset: -3px;
}
.tm-compare__settings-head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: var(--hud-space-2) var(--hud-space-4);
  margin-bottom: var(--hud-space-3);
}
.tm-compare__intro, .tm-compare__empty {
  margin: 0;
  color: var(--tm-code-muted);
  font-size: var(--hud-text-sm);
}
.tm-compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--hud-text-sm);
}
.tm-compare__table th,
.tm-compare__table td {
  padding: var(--hud-space-2) var(--hud-space-3) var(--hud-space-2) 0;
  border-bottom: 1px solid #3A3B33;
  text-align: left;
  vertical-align: baseline;
}
.tm-compare__table thead th:nth-child(2),
.tm-compare__table thead th:nth-child(3) {
  width: 30%;
}
.tm-compare__table td:last-child {
  text-align: right;
}
.tm-compare__table thead th {
  color: var(--tm-code-muted);
  font-family: var(--hud-font-sans);
  font-weight: 400;
}
.tm-compare__table tbody th {
  color: var(--tm-code-text);
  font-family: var(--hud-font-medium);
  font-weight: 400;
}
.tm-compare__mine {
  color: var(--tm-template-code);
  font-family: var(--tm-mono);
}
.tm-compare__theirs {
  color: var(--tm-wall-code);
  font-family: var(--tm-mono);
}
.tm-compare__swatch {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: var(--hud-space-2);
  vertical-align: -0.1em;
  border-radius: 3px;
  -webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
          box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}
.tm-compare__use {
  color: var(--tm-wall-code);
  font-size: 0.8125rem;
  white-space: nowrap;
}
.tm-compare__sides {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 47% 6% 47%;
  grid-template-columns: 47% 6% 47%;
  border-top: 1px solid #3A3B33;
}
.tm-compare__side {
  margin: 0;
  padding: var(--hud-space-1) var(--hud-space-3);
  color: var(--tm-code-muted);
  font-size: 0.75rem;
}
.tm-compare__side + .tm-compare__side {
  -ms-grid-column: 3;
  grid-column: 3;
}

.tm-code__editor .tm-merge {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-height: 0;
}
.tm-code__editor .tm-merge .CodeMirror-merge {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  height: auto;
  border: 0;
}
.tm-code__editor .tm-merge .CodeMirror-merge-pane,
.tm-code__editor .tm-merge .CodeMirror-merge-gap,
.tm-code__editor .tm-merge .CodeMirror-merge .CodeMirror {
  height: 100%;
}
.tm-code__editor .tm-merge .CodeMirror {
  font-family: var(--tm-mono);
  font-size: 0.8125rem;
  line-height: 1.55;
}
.tm-code__editor .tm-merge .CodeMirror-merge-gap {
  background: var(--tm-code-bar);
  border-color: #3A3B33;
}
.tm-code__editor .tm-merge .CodeMirror-merge-editor .CodeMirror-merge-r-chunk {
  background: rgba(174, 129, 255, 0.12);
}
.tm-code__editor .tm-merge .CodeMirror-merge-right .CodeMirror-merge-r-chunk {
  background: rgba(102, 217, 239, 0.1);
}
.tm-code__editor .tm-merge .CodeMirror-merge-r-chunk-start {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.tm-code__editor .tm-merge .CodeMirror-merge-r-chunk-end {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.tm-code__editor .tm-merge .CodeMirror-scrollbar-filler,
.tm-code__editor .tm-merge .CodeMirror-gutter-filler {
  background: var(--tm-code-bg);
}
.tm-code__editor .tm-merge .CodeMirror-merge-r-inserted {
  background: rgba(174, 129, 255, 0.28);
  background-image: none;
}
.tm-code__editor .tm-merge .CodeMirror-merge-r-deleted {
  background: rgba(102, 217, 239, 0.24);
  background-image: none;
}
.tm-code__editor .tm-merge .CodeMirror-merge-spacer {
  background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(255, 255, 255, 0.04) 6px 12px);
}
.tm-code__editor .tm-merge .CodeMirror-merge-copy {
  padding: 0 0.3em;
  border-radius: var(--hud-radius-sm);
  color: var(--tm-wall-code);
  font-size: 1rem;
}
.tm-code__editor .tm-merge .CodeMirror-merge-copy:hover, .tm-code__editor .tm-merge .CodeMirror-merge-copy:focus-visible {
  background: rgba(102, 217, 239, 0.18);
  outline: none;
}
.tm-code__editor .tm-merge .CodeMirror-merge-scrolllock {
  color: var(--tm-code-muted);
}
.tm-code__editor .tm-merge .CodeMirror-merge-scrolllock:hover {
  color: var(--tm-code-text);
}
.tm-code__editor .tm-merge .CodeMirror-merge-collapsed-widget {
  padding: 0 var(--hud-space-2);
  background: var(--tm-code-raised);
  border: 0;
  border-radius: var(--hud-radius-sm);
  color: var(--tm-code-muted);
  font-family: var(--hud-font-sans);
  font-size: 0.75rem;
}
.tm-code__editor .tm-merge .CodeMirror-merge-collapsed-widget:hover {
  color: var(--tm-code-text);
}
.tm-code__editor .tm-merge .CodeMirror-focused {
  -webkit-box-shadow: inset 0 0 0 2px #8EC9EC;
          box-shadow: inset 0 0 0 2px #8EC9EC;
}

/* Push and pull dialogs */
.tm-dialog {
  width: min(36rem, 100vw - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  background: var(--hud-color-surface);
  border: 0;
  border-radius: var(--hud-radius);
  -webkit-box-shadow: var(--hud-shadow-md), 0 0 0 1px rgba(0, 0, 0, 0.04);
          box-shadow: var(--hud-shadow-md), 0 0 0 1px rgba(0, 0, 0, 0.04);
  color: var(--hud-color-ink);
}
.tm-dialog::-ms-backdrop {
  background: rgba(30, 31, 28, 0.55);
}
.tm-dialog::backdrop {
  background: rgba(30, 31, 28, 0.55);
}
.tm-dialog__head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: var(--hud-space-3);
  padding: var(--hud-space-4) var(--hud-space-3) 0 var(--hud-space-5);
}
.tm-dialog__title {
  margin: 0;
  font-family: var(--hud-font-medium);
  font-size: var(--hud-text-lg);
  font-weight: 400;
}
.tm-dialog__body {
  padding: var(--hud-space-3) var(--hud-space-5) 0;
}
.tm-dialog__body > p {
  margin: 0 0 var(--hud-space-3);
}
.tm-dialog__loading {
  color: var(--hud-color-ink-muted);
}
.tm-dialog__facts {
  color: var(--hud-color-ink-muted);
  font-size: var(--hud-text-sm);
}
.tm-dialog__subtitle {
  margin: var(--hud-space-4) 0 var(--hud-space-2);
  font-family: var(--hud-font-medium);
  font-size: var(--hud-text-base);
  font-weight: 400;
}
.tm-dialog__link {
  margin-bottom: var(--hud-space-3);
}
.tm-dialog__notice {
  margin: var(--hud-space-3) 0;
}
.tm-dialog__notice p {
  margin: 0 0 var(--hud-space-2);
}
.tm-dialog__reload {
  margin-top: var(--hud-space-4);
}
.tm-dialog .field__hint.tm-dialog__hint {
  margin: var(--hud-space-1) 0 var(--hud-space-3) 1.75rem;
}
.tm-dialog__note {
  color: var(--hud-color-ink-muted);
  font-size: var(--hud-text-sm);
}
.tm-dialog__error {
  padding: var(--hud-space-2) var(--hud-space-3);
  background: var(--hud-color-error-bg);
  border-radius: var(--hud-radius-sm);
  color: #8E2A1F;
  font-size: var(--hud-text-sm);
}
.tm-dialog__actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: var(--hud-space-2);
  margin-top: var(--hud-space-2);
  padding: var(--hud-space-4) var(--hud-space-5);
  background: var(--hud-color-surface-alt);
  border-top: 1px solid var(--hud-color-row-line);
}
.tm-dialog__go--push {
  background: var(--hud-color-blue-dark);
}
.tm-dialog__go--push:hover:not(:disabled) {
  background: #154A69;
}

.tm-direction {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  gap: var(--hud-space-2);
  margin: var(--hud-space-1) 0 var(--hud-space-2);
}
.tm-direction__side {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 12rem;
          flex: 1 1 12rem;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: var(--hud-space-1);
  min-width: 0;
  padding: var(--hud-space-2) var(--hud-space-3);
  border-radius: var(--hud-radius-sm);
}
.tm-direction__side--template {
  background: var(--tm-template-tint);
  -webkit-box-shadow: inset 3px 0 0 var(--hud-color-purple);
          box-shadow: inset 3px 0 0 var(--hud-color-purple);
}
.tm-direction__side--wall {
  background: var(--tm-wall-tint);
  -webkit-box-shadow: inset 3px 0 0 var(--hud-color-blue);
          box-shadow: inset 3px 0 0 var(--hud-color-blue);
}
.tm-direction__side .tm-chip {
  -ms-flex-item-align: start;
      align-self: flex-start;
  padding: 0;
  background: none;
}
.tm-direction__name {
  overflow-wrap: anywhere;
  font-family: var(--hud-font-medium);
}
.tm-direction__arrow {
  -ms-flex-item-align: center;
      -ms-grid-row-align: center;
      align-self: center;
  color: var(--hud-color-ink-muted);
  font-size: var(--hud-text-lg);
}

.tm-changes {
  margin: 0 0 var(--hud-space-2);
  padding-left: var(--hud-space-5);
  font-size: var(--hud-text-sm);
}
.tm-changes li + li {
  margin-top: var(--hud-space-1);
}
.tm-changes__from, .tm-changes__to {
  font-family: var(--tm-mono);
  font-size: 0.8125rem;
}
.tm-changes__from {
  color: var(--hud-color-ink-muted);
  text-decoration: line-through;
}

.tm-check {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  gap: var(--hud-space-2);
  cursor: pointer;
}
.tm-check input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  -webkit-transform: translateY(0.15em);
      -ms-transform: translateY(0.15em);
          transform: translateY(0.15em);
}
.tm-check:has(input:disabled) {
  color: var(--hud-color-ink-muted);
  cursor: not-allowed;
}

/* New template from a wall */
.tm-pick__find {
  max-width: 36rem;
}
.tm-pick__or {
  margin: var(--hud-space-5) 0 var(--hud-space-3);
  color: var(--hud-color-ink-muted);
}
.tm-pick__results {
  margin-top: var(--hud-space-5);
}

.tm .links-toolbar__new {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: var(--hud-space-2);
}

/* ---------------------------------------
// HUD design system — footer
//
// Sits in normal flow at the bottom of the .hud flex column, so it never
// overlaps content and the main area is centered in the space above it.
----------------------------------------*/
.hud-footer {
  height: var(--hud-footer-height);
  background-color: var(--hud-color-ink);
  color: #fff;
  text-align: center;
}
.hud-footer__border {
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--hud-color-orange) 0 33.333%, var(--hud-color-green) 33.333% 66.666%, var(--hud-color-purple) 66.666% 100%);
}
.hud-footer {
  /* Reserve the icon's box before the Font Awesome kit font arrives, so "HUD" never shifts */
}
.hud-footer__logo {
  display: inline-block;
  inline-size: 1em;
  text-align: center;
}
.hud-footer__content {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--hud-space-2);
  padding: var(--hud-space-3) 0;
  font-family: var(--hud-font-medium);
  font-size: var(--hud-text-lg);
}
@media (min-width: 40em) {
  .hud-footer__content {
    font-size: 2.8rem;
  }
}
.hud-footer__content {
  font-weight: 500;
  line-height: 1.2;
}