/* ==========================================================================
   16-62 LABS
   Built on the landing site's language in /styles.css: one blue, one white,
   light Switzer headlines, small mono labels in the left column, thin rules,
   a frame only around a form you fill in, no tints, no gradients, no shadows.
   ========================================================================== */

/* ---------- Labs mark next to the wordmark ---------- */
.wordmark-tag {
  display: inline-flex;
  align-items: center;
  height: 19px;
  margin-left: 12px;
  padding: 0 7px 0 8px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

/* ---------- Sign in / create account: 12-column Swiss grid ---------- */
.auth {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
  padding-top: clamp(56px, 6.5vw, 104px);
  padding-bottom: clamp(96px, 10vw, 156px);
}
.auth-intro {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-right: clamp(12px, 2vw, 28px);
}
.auth-intro .h1 {
  font-size: clamp(44px, 5vw, 76px);
  max-width: 11ch;
}
.auth-lede {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.48;
  max-width: 38ch;
  text-wrap: pretty;
}
.auth-intro .contact-steps {
  max-width: none;
  margin-top: 8px;
}

.auth-card {
  grid-column: 6 / 13;
  padding-top: 26px;
  box-shadow: inset 0 1px 0 var(--blue);
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.auth-card-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 28px;
  box-shadow: inset 0 -1px 0 var(--blue);
}
.auth-card-head .h2 {
  font-size: clamp(30px, 2.8vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.032em;
}
.auth-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 34px;
}
.auth-field {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-field-half {
  grid-column: span 1;
}
.auth-field > .label {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.auth-field-num {
  display: inline-block;
  width: 24px;
  opacity: 0.75;
}
.auth-field input {
  width: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 -1px 0 var(--blue);
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 300;
  font-size: clamp(20px, 1.7vw, 26px);
  letter-spacing: -0.02em;
  padding: 4px 0 14px 34px;
  outline: none;
}
.auth-field input::placeholder {
  color: var(--blue);
  opacity: 0.35;
}
.auth-field::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.auth-field:focus-within::after {
  transform: scaleX(1);
}
.auth-check {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 14.5px;
  line-height: 1.55;
  cursor: pointer;
  padding-top: 4px;
}
.auth-check input {
  margin-top: 4px;
}
.auth-error {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
  padding: 14px 16px;
  box-shadow: inset 0 0 0 1px var(--blue);
}
.auth-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  padding-top: 8px;
}
.auth-submit {
  flex: none;
}
.auth-switch {
  font-size: 15px;
}
.auth-switch a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.auth-alt {
  padding-top: 26px;
  box-shadow: inset 0 1px 0 var(--blue);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
}
.auth-alt-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.auth-alt-copy p {
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 44ch;
}
.auth-alt .link {
  font-size: 16px;
  white-space: nowrap;
}
@media (max-width: 960px) {
  .auth {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 48px;
    padding-top: 40px;
  }
  .auth-intro,
  .auth-card {
    grid-column: 1 / -1;
    padding-right: 0;
  }
  .auth-intro {
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .auth-form {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }
  .auth-field-half {
    grid-column: 1 / -1;
  }
  .auth-field input {
    padding-left: 0;
  }
  .auth-foot {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .auth-submit {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- App bar ---------- */
.lx-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: var(--white);
  box-shadow: inset 0 -1px 0 var(--blue);
}
.lx-bar-in {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: center;
}
.lx-bar .wordmark { grid-column: 1 / 4; justify-self: start; }
.lx-switch { grid-column: 4 / 9; position: relative; min-width: 0; }
.lx-bar-right { grid-column: 9 / 13; justify-self: end; display: flex; align-items: center; gap: 28px; font-size: 14px; white-space: nowrap; }
.lx-bar-right a:hover, .lx-bar-right button:hover { text-decoration: underline; text-underline-offset: 5px; }
.lx-bar-user { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; max-width: 24ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lx-switch-btn { display: inline-flex; align-items: baseline; gap: 12px; max-width: 100%; font-size: 15px; padding: 6px 0; }
.lx-switch-btn > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-switch-btn::after { content: ""; flex: none; width: 6px; height: 6px; border-right: 1px solid var(--blue); border-bottom: 1px solid var(--blue); transform: translateY(-3px) rotate(45deg); }
.lx-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: min(380px, 80vw);
  max-height: 60vh;
  overflow: auto;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--blue);
  padding: 8px 0;
  z-index: 70;
}
.lx-menu button { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; width: 100%; text-align: left; padding: 11px 20px; font-size: 15px; }
.lx-menu button:hover, .lx-menu .is-current { background: var(--blue); color: var(--white); }
.lx-menu hr { border: 0; height: 1px; background: var(--blue); margin: 8px 0; }

/* ---------- Shell: stage list in the label column, work in the body ---------- */
.lx-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(120px, 12vw, 180px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
}
.lx-rail { grid-column: 1 / 4; position: sticky; top: var(--nav-h); padding-top: clamp(48px, 5.5vw, 84px); }
.lx-rail > .label { margin-bottom: 18px; }
.lx-rail nav { display: flex; flex-direction: column; max-width: 260px; }
.lx-rail-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  text-align: left;
  font-size: 15px;
  line-height: 1.3;
}
.lx-rail-item .label { opacity: 0.75; }
.lx-rail-item > span:nth-child(2) { text-underline-offset: 5px; text-decoration-thickness: 1px; }
.lx-rail-item:hover > span:nth-child(2) { text-decoration: underline; }
.lx-rail-item.is-active > span:nth-child(2) { text-decoration: underline; font-weight: 500; }
.lx-rail-item .lx-glyph { justify-self: end; }
.lx-rail-key { margin-top: 28px; padding-top: 16px; max-width: 260px; box-shadow: inset 0 1px 0 var(--blue); display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px 10px; align-items: center; font-size: 13px; }

.lx-content { grid-column: 4 / 13; min-width: 0; }
.lx-content.is-full { grid-column: 1 / 13; }

/* status glyph: the shape carries the state, never a colour */
.lx-glyph { width: 10px; height: 10px; flex: none; display: inline-block; position: relative; }
.lx-glyph[data-s="not_started"] { border: 1px solid var(--blue); border-radius: 50%; }
.lx-glyph[data-s="in_progress"] { border: 1px solid var(--blue); border-radius: 50%; }
.lx-glyph[data-s="in_progress"]::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--blue); }
.lx-glyph[data-s="complete"] { background: var(--blue); border-radius: 50%; }
.lx-glyph[data-s="needs_review"] { width: 9px; height: 9px; background: var(--blue); transform: rotate(45deg); }

/* ---------- Page header ---------- */
.lx-head { padding: clamp(48px, 5.5vw, 84px) 0 clamp(44px, 5vw, 72px); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.lx-title { font-weight: 300; font-size: clamp(36px, 4.2vw, 68px); line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; max-width: 16ch; }
.lx-lede { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; max-width: 48ch; text-wrap: pretty; }
.lx-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: clamp(17px, 1.3vw, 20px); }
.lx-meta > span + span::before { content: "/"; margin-right: 18px; }

/* ---------- Sections ---------- */
.lx-sec { padding-top: 28px; margin-top: clamp(56px, 6vw, 96px); box-shadow: inset 0 1px 0 var(--blue); display: flex; flex-direction: column; gap: 28px; }
.lx-sec.is-first, .lx-stage-body > .lx-sec:first-child { margin-top: 0; }
.lx-sec-label { display: flex; flex-direction: column; gap: 12px; }
.lx-sec-label > .label:first-child {
  font-family: var(--sans);
  font-size: clamp(26px, 2.2vw, 36px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: none;
}
.lx-sec-label > p:not(.label) { font-size: 16px; line-height: 1.5; max-width: 56ch; }
.lx-sec-body { display: flex; flex-direction: column; gap: 26px; min-width: 0; }

/* ---------- Text, links, buttons ---------- */
.lx-head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; }
.lx-muted { opacity: 0.72; }
.lx-small { font-size: 14px; line-height: 1.5; }
.lx-actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.btn-sm { height: 44px; padding: 0 22px; font-size: 14px; gap: 10px; }
.btn-ghost { background: var(--white); color: var(--blue); }
.btn-ghost:hover:not(:disabled) { background: var(--blue); color: var(--white); }
.btn:disabled { opacity: 0.45; cursor: progress; }
.lx-link { display: inline-flex; gap: 8px; align-items: baseline; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; font-size: 15px; transition: text-underline-offset 0.3s var(--ease); }
.lx-link:hover { text-underline-offset: 8px; }
.lx-link:disabled { opacity: 0.45; cursor: default; }

/* ---------- Badges ---------- */
.lx-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--blue);
}
.lx-badge.is-solid { background: var(--blue); color: var(--white); box-shadow: none; }
.lx-badge.is-dashed { box-shadow: none; outline: 1px dashed var(--blue); outline-offset: -1px; }

/* ---------- Form controls ---------- */
.lx-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px var(--gutter); }
.lx-form-grid .is-wide { grid-column: 1 / -1; }
.lx-ctl { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lx-ctl > .label { font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none; opacity: 0.8; }
.lx-input, .lx-select, .lx-textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 300;
  font-size: 20px;
  letter-spacing: -0.01em;
  padding: 4px 0 10px;
  box-shadow: inset 0 -1px 0 var(--blue);
  outline: none;
  transition: box-shadow 0.3s var(--ease);
}
.lx-input:focus, .lx-select:focus { box-shadow: inset 0 -2px 0 var(--blue); }
.lx-input:disabled, .lx-select:disabled, .lx-textarea:disabled { opacity: 0.6; }
.lx-input::placeholder, .lx-textarea::placeholder { color: var(--blue); opacity: 0.35; }
.lx-select { appearance: none; -webkit-appearance: none; padding-right: 22px; cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231636c7' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 4px center;
}
.lx-textarea { min-height: 160px; resize: vertical; font-size: 17px; line-height: 1.6; padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--blue); }
.lx-textarea:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.lx-code { font-family: var(--mono); font-weight: 400; font-size: 13px; line-height: 1.65; min-height: 280px; white-space: pre; tab-size: 2; }

/* ---------- Disclosure ---------- */
.lx-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: baseline; gap: 12px; font-size: 16px; }
.lx-more > summary::-webkit-details-marker { display: none; }
.lx-more > summary::before { content: "+"; font-family: var(--mono); width: 12px; }
.lx-more[open] > summary::before { content: "–"; }
.lx-more > summary:hover { text-decoration: underline; text-underline-offset: 5px; }
.lx-more > .lx-more-body { padding-top: 22px; display: flex; flex-direction: column; gap: 20px; }

/* ---------- Rows (stage list, critical findings) ---------- */
.lx-rows { display: flex; flex-direction: column; }
.lx-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(0, 0.75fr) minmax(0, 1.25fr) 18px;
  gap: 0 var(--gutter);
  align-items: baseline;
  width: 100%;
  padding: 22px 0 24px;
  text-align: left;
  box-shadow: inset 0 -1px 0 var(--blue);
}
.lx-rows .lx-row:first-child { box-shadow: inset 0 1px 0 var(--blue), inset 0 -1px 0 var(--blue); }
.lx-row-name { font-weight: 300; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.15; letter-spacing: -0.025em; }
button.lx-row:hover .lx-row-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.lx-row-state { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.lx-row-go { font-family: var(--mono); justify-self: end; transition: transform 0.4s var(--ease); }
button.lx-row:hover .lx-row-go { transform: translateX(4px); }

/* ---------- Tables ---------- */
.lx-table-wrap { overflow-x: auto; }
.lx-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lx-table th {
  text-align: left;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 16px 12px 0;
  box-shadow: inset 0 -1px 0 var(--blue);
  white-space: nowrap;
}
.lx-table td { padding: 14px 16px 14px 0; box-shadow: inset 0 -1px 0 var(--blue); vertical-align: top; }
.lx-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lx-table tr.is-total td { font-weight: 500; box-shadow: inset 0 1px 0 var(--blue), inset 0 -1px 0 var(--blue); }
.lx-table tr.is-click { cursor: pointer; }
.lx-table tr.is-click:hover td:first-child { text-decoration: underline; text-underline-offset: 4px; }
.lx-table tr.is-sel td:first-child { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.lx-mono { font-family: var(--mono); font-size: 12.5px; }

/* ---------- Figures ---------- */
.lx-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--gutter); }
.lx-figures.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lx-fig { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--blue); min-width: 0; }
.lx-fig-val { font-weight: 300; font-size: clamp(40px, 4vw, 64px); line-height: 0.95; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.lx-fig-val.is-mid { font-size: clamp(26px, 2.3vw, 36px); letter-spacing: -0.03em; line-height: 1.05; }
.lx-fig-val.is-empty { font-size: clamp(20px, 1.6vw, 24px); letter-spacing: -0.015em; line-height: 1.2; padding: 10px 0 4px; }
.lx-fig-note { font-size: 15px; line-height: 1.45; }

/* ---------- Next step (the landing's closing call to action) ---------- */
.lx-next {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px var(--gutter);
  flex-wrap: wrap;
  padding: 26px 0 0;
  box-shadow: inset 0 1px 0 var(--blue);
}
.lx-next p { font-weight: 300; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.15; letter-spacing: -0.03em; max-width: 26ch; text-wrap: balance; }
.lx-next .label { display: block; margin-bottom: 14px; font-weight: 400; letter-spacing: 0.06em; line-height: 1.4; }

/* ---------- Findings ---------- */
.lx-filters { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: end; }
.lx-filters .lx-ctl { width: 160px; }
.lx-filters .lx-select { font-size: 16px; }
.lx-findings { display: flex; flex-direction: column; }
.lx-finding { box-shadow: inset 0 -1px 0 var(--blue); }
.lx-findings .lx-finding:first-child { box-shadow: inset 0 1px 0 var(--blue), inset 0 -1px 0 var(--blue); }
.lx-finding-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(110px, 170px) 84px;
  gap: 20px;
  align-items: baseline;
  width: 100%;
  text-align: left;
  padding: 22px 0 24px;
}
.lx-finding.is-critical .lx-finding-head { padding-left: 16px; box-shadow: inset 3px 0 0 var(--blue); }
.lx-finding-title { font-size: 18px; line-height: 1.4; letter-spacing: -0.01em; }
.lx-finding.is-critical .lx-finding-title { font-weight: 500; }
.lx-finding.is-note .lx-finding-title { font-weight: 300; }
.lx-finding-head:hover .lx-finding-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.lx-finding-sub { display: block; margin-top: 8px; opacity: 0.8; }
.lx-finding-effect { font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.lx-finding-status { justify-self: end; }
.lx-finding-body { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 32px var(--gutter); padding: 4px 0 40px; }
.lx-finding.is-critical .lx-finding-body { padding-left: 16px; }
.lx-finding-body > .lx-ev { grid-column: 1 / 5; }
.lx-finding-body > .lx-chart { grid-column: 5 / 10; }
.lx-finding-body > .is-wide { grid-column: 1 / -1; }
.lx-ev { display: flex; flex-direction: column; }
.lx-ev div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; padding: 10px 0; box-shadow: inset 0 -1px 0 var(--blue); font-size: 15px; }
.lx-ev div:first-child { box-shadow: inset 0 1px 0 var(--blue), inset 0 -1px 0 var(--blue); }
.lx-ev dd { text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.lx-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.lx-chart figcaption { margin-top: 12px; }

.lx-sql { box-shadow: inset 0 1px 0 var(--blue); }
.lx-sql-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 14px 24px; padding: 14px 0 12px; flex-wrap: wrap; }
.lx-sql pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; max-height: 380px; box-shadow: inset 0 0 0 1px var(--blue); }

/* ---------- Chart cards ---------- */
.lx-chart-maker { display: flex; flex-direction: column; gap: 26px; }
.lx-card { position: relative; line-height: 0; }
.lx-card::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--blue); pointer-events: none; }
.lx-card.is-blue::after { content: none; }
.lx-card svg { display: block; width: 100%; height: auto; }
.lx-card .lx-empty { line-height: 1.5; padding: 28px; }
.lx-chart-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px var(--gutter); padding-top: 12px; }
.lx-chart-item { display: flex; flex-direction: column; gap: 14px; }
.lx-chart-item figcaption { display: flex; flex-direction: column; gap: 10px; }
.lx-chart-item .lx-actions { gap: 10px 20px; }
.lx-chart-item .lx-link { font-size: 14px; }

/* ---------- Dropzone ---------- */
.lx-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 40px);
  outline: 1px dashed var(--blue);
  outline-offset: -1px;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.lx-drop.is-over, .lx-drop:hover { background: var(--blue); color: var(--white); }
.lx-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lx-drop-title { font-weight: 300; font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -0.03em; line-height: 1.1; }

/* ---------- Source list ---------- */
.lx-source { padding: 22px 0 24px; box-shadow: inset 0 -1px 0 var(--blue); }
.lx-source:first-child { box-shadow: inset 0 1px 0 var(--blue), inset 0 -1px 0 var(--blue); }
.lx-source-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px 32px; flex-wrap: wrap; }
.lx-source-name { font-weight: 300; font-size: clamp(20px, 1.9vw, 26px); letter-spacing: -0.02em; line-height: 1.2; }
.lx-source-meta { margin-top: 6px; font-size: 15px; }

/* ---------- Toast & modal ---------- */
.lx-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 90;
  background: var(--blue);
  color: var(--white);
  padding: 13px 22px;
  font-size: 14px;
  max-width: min(560px, calc(100vw - 32px));
}
.lx-modal-bg { position: fixed; inset: 0; z-index: 80; background: var(--white); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lx-modal { width: min(620px, 100%); display: flex; flex-direction: column; gap: 30px; }
.lx-modal-title { font-weight: 300; font-size: clamp(36px, 4vw, 56px); line-height: 1; letter-spacing: -0.04em; }
.lx-busy { display: inline-flex; gap: 10px; align-items: center; font-size: 14px; }
.lx-busy::before { content: ""; width: 8px; height: 8px; background: currentColor; animation: lx-blink 1s steps(2) infinite; }
@keyframes lx-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lx-busy::before { animation: none; } }

.lx-empty { padding: 4px 0; font-size: clamp(17px, 1.3vw, 20px); max-width: 48ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .lx-bar .wordmark { grid-column: 1 / 5; }
  .lx-switch { grid-column: 5 / 10; }
  .lx-bar-right { grid-column: 10 / 13; gap: 18px; }
  .lx-bar-user, .lx-hide-md { display: none; }
  .lx-rail {
    grid-column: 1 / -1;
    top: var(--nav-h);
    z-index: 50;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    background: var(--white);
    box-shadow: inset 0 -1px 0 var(--blue);
  }
  .lx-rail > .label, .lx-rail-key { display: none; }
  .lx-rail nav { flex-direction: row; gap: 26px; max-width: none; overflow-x: auto; scrollbar-width: none; }
  .lx-rail nav::-webkit-scrollbar { display: none; }
  .lx-rail-item { display: inline-flex; gap: 8px; padding: 14px 0; white-space: nowrap; font-size: 14px; }
  .lx-rail-item .lx-glyph { order: -1; }
  .lx-content { grid-column: 1 / -1; }
  .lx-figures.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-finding-body { grid-template-columns: 1fr; }
  .lx-finding-body > .lx-ev, .lx-finding-body > .lx-chart { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .lx-bar .wordmark { grid-column: 1 / 6; }
  .lx-switch { grid-column: 6 / 11; }
  .lx-switch-btn { font-size: 14px; }
  .lx-bar-right { grid-column: 11 / 13; }
  .lx-menu { position: fixed; left: 16px; right: 16px; top: calc(var(--nav-h) - 4px); width: auto; }
  .lx-form-grid, .lx-figures, .lx-figures.is-4, .lx-chart-list { grid-template-columns: 1fr; }
  .lx-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .lx-row > :nth-child(4), .lx-row-go { display: none; }
  .lx-finding-head { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; }
  .lx-finding-head > :first-child { grid-column: 1 / -1; justify-self: start; }
  .lx-finding-effect { text-align: left; }
  .lx-meta { flex-direction: column; }
  .lx-meta > span + span::before { content: none; }
}
