.lh-shell {
  --lh-ease-out: var(--ease-out);
  --lh-ease-in-out: var(--ease-in-out);
  --lh-dialog-ms: 180ms;
  --lh-dialog-close-ms: 140ms;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  color: var(--ink);
  font-size: var(--font-md);
  line-height: 1.5;
}

.lh-shell[data-signals]:not(.ds-ready) {
  visibility: hidden;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--hairline-strong) transparent;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 0;
  background: var(--hairline-strong);
  background-clip: padding-box;
}

.lh-eyebrow,
.lh-settings-nav-label {
  display: block;
  color: var(--lh-ink-muted);
  font-size: var(--font-xs);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.lh-muted,
.lh-state p,
.lh-link p,
.lh-preview-description {
  margin: 0;
  color: var(--body);
}

.lh-count-badge,
.lh-pane-count {
  flex: 0 0 auto;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--lh-ink-muted);
  padding: .2rem .55rem;
  font-size: var(--font-xs);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .04em;
  white-space: nowrap;
}

.lh-wordmark {
  margin: 0;
  color: var(--ink);
  font: 700 .875rem/.88 var(--mono-font);
  letter-spacing: -.03em;
  white-space: pre;
}

.lh-brand .lh-wordmark {
  font-size: .75rem;
}

.lh-form {
  display: grid;
  gap: var(--space-3);
}

.lh-field {
  min-width: 0;
  display: grid;
  gap: var(--space-2);
  color: var(--lh-ink-muted);
  font-size: var(--font-xs);
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.lh-form input,
.lh-form textarea,
.lh-search input,
.lh-copy-row input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--ink);
  padding: .45rem .6rem;
  font: 400 var(--font-md)/1.45 var(--mono-font);
  letter-spacing: 0;
  text-transform: none;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
}

.lh-form input:focus,
.lh-form textarea:focus,
.lh-copy-row input:focus {
  border-color: var(--focus);
  background: var(--surface-raised);
  outline: none;
}

.lh-form textarea {
  min-height: 80px;
}

.lh-form input[type="url"]:user-invalid,
.lh-form input[type="url"]:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
  box-shadow: inset 3px 0 0 var(--danger);
}

.lh-field-error {
  display: none;
  margin: -.3rem 0 0;
  color: var(--danger);
  font-size: var(--font-xs);
  line-height: 1.4;
}

.lh-form input[type="url"]:user-invalid + .lh-field-error,
.lh-form input[type="url"]:invalid:not(:placeholder-shown) + .lh-field-error {
  display: block;
}

.lh-form-actions,
.lh-bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border-top: 1px solid var(--hairline);
  padding-top: var(--space-3);
  color: var(--lh-ink-muted);
  font-size: var(--font-xs);
}

lh-tag-input {
  position: relative;
  display: block;
  min-width: 0;
}

.lh-tag-input-control {
  width: 100%;
  min-height: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  padding: .35rem;
  transition: border-color var(--duration-fast) var(--ease-out);
}

lh-tag-input:focus-within .lh-tag-input-control {
  border-color: var(--focus);
}

.lh-tag-input-chips {
  display: contents;
}

.lh-tag-chip {
  max-width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--ink);
  padding: .2rem .4rem;
  font-size: var(--font-sm);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.lh-tag-chip > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lh-tag-chip-remove {
  border: 0;
  background: transparent;
  color: var(--lh-ink-muted);
  padding: 0;
  line-height: 1;
}

.lh-form .lh-tag-entry {
  width: 8ch;
  min-width: 8ch;
  min-height: 28px;
  flex: 1 1 8ch;
  border: 0;
  background: transparent;
  padding: .15rem .25rem;
  box-shadow: none;
}

.lh-form .lh-tag-entry:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
}

.lh-tag-suggestions {
  position: fixed;
  z-index: 100;
  inset: auto;
  max-height: 240px;
  margin: 0;
  overflow: auto;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-raised) 94%, transparent);
  color: var(--ink);
  padding: var(--space-1);
  box-shadow: var(--shadow-float);
  transform-origin: top left;
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
}

.lh-tag-suggestions[hidden] {
  display: none;
}

.lh-tag-suggestion {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  padding: .45rem .55rem;
  font: 500 var(--font-sm)/1.35 var(--mono-font);
  text-align: left;
}

.lh-tag-suggestion[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--canvas);
}

.lh-tag-suggestion-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lh-tag-suggestion-count {
  flex: 0 0 auto;
  opacity: .68;
  font-size: var(--font-xs);
}

.lh-primary,
.lh-secondary,
.lh-danger,
.lh-quiet,
.lh-icon-btn {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  padding: .35rem .65rem;
  color: var(--ink);
  font: 700 var(--font-sm)/1.2 var(--mono-font);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  transition:
    transform var(--duration-press) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.lh-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--canvas);
}

.lh-secondary {
  background: var(--surface-raised);
}

.lh-quiet {
  min-height: 26px;
  border-color: transparent;
  background: transparent;
  padding: .35rem .45rem;
  color: var(--lh-ink-muted);
}

.lh-danger {
  border-color: var(--danger);
  background: transparent;
  color: var(--danger);
}

.lh-primary:active,
.lh-secondary:active,
.lh-danger:active,
.lh-quiet:active,
.lh-icon-btn:active,
.lh-search-clear:active,
.lh-preview-close:active {
  transform: scale(.97);
  transition-duration: var(--duration-instant);
}

.lh-primary.is-success,
.lh-secondary.is-success {
  border-color: var(--success);
  background: var(--success);
  color: var(--canvas);
}

.lh-icon-btn {
  width: 32px;
  padding: 0;
}

@media (hover: hover) and (pointer: fine) {
  .lh-primary:hover {
    background: var(--lh-accent);
    border-color: var(--lh-accent);
    color: #fff;
  }

  .lh-secondary:hover,
  .lh-icon-btn:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--canvas);
  }

  .lh-quiet:hover {
    color: var(--ink);
    background: var(--surface-soft);
  }

  .lh-danger:hover {
    background: var(--danger);
    color: var(--canvas);
  }

  .lh-tag-suggestion:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--canvas);
  }
}

.lh-app {
  height: 100dvh;
  min-height: 100dvh;
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.lh-header {
  position: relative;
  z-index: 30;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  padding: var(--space-2) var(--space-4);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}

.lh-brand,
.lh-header-main,
.lh-header-nav,
.lh-header-actions,
.lh-search,
.lh-global-status {
  display: flex;
  align-items: center;
}

.lh-brand {
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.lh-header-main {
  min-width: 0;
  flex: 1;
  gap: var(--space-2);
}

.lh-header-nav {
  flex: 0 0 auto;
  gap: var(--space-2);
}

.lh-header-nav .lh-primary,
.lh-header-nav .lh-secondary {
  min-height: 28px;
  padding: .35rem .65rem;
  font-size: var(--font-xs);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lh-global-status {
  min-width: 48px;
  min-height: 28px;
  gap: var(--space-2);
  color: var(--lh-ink-muted);
  font-size: var(--font-xs);
}

.lh-header-actions {
  flex: 0 0 auto;
  gap: var(--space-2);
  margin-left: auto;
}

.lh-avatar {
  width: 28px;
  height: 28px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  filter: grayscale(1);
}

.lh-user {
  max-width: min(24vw, 260px);
  overflow: hidden;
  color: var(--lh-ink-muted);
  font-size: var(--font-xs);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lh-search {
  min-width: 180px;
  max-width: 620px;
  flex: 1 1 460px;
  gap: var(--space-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  padding: 0 var(--space-2);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.lh-search:focus-within {
  border-color: var(--focus);
}

.lh-search input {
  min-height: 30px;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  font-size: var(--font-sm);
}

.lh-search input:focus {
  outline: none;
}

.lh-search-shortcut {
  color: var(--lh-ink-muted);
}

.lh-glyph {
  color: var(--lh-ink-muted);
  font-weight: 700;
}

.lh-search-clear,
.lh-preview-close {
  min-width: 26px;
  min-height: 26px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--lh-ink-muted);
  padding: 0 .25rem;
  font: 700 var(--font-xs)/1 var(--mono-font);
  transition:
    transform var(--duration-press) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .lh-search-clear:hover,
  .lh-preview-close:hover {
    background: var(--ink);
    color: var(--canvas);
  }
}

.lh-main {
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.lh-main > schism-group {
  --schism-handle-size: 8px;
  --schism-handle-bg: var(--hairline);
  --schism-handle-bg-hover: var(--lh-accent);
  width: 100%;
  height: 100%;
}

.lh-main > schism-group > schism-pane {
  min-width: 0;
  min-height: 0;
  display: block;
  background: transparent;
}

.lh-main > schism-group > schism-pane > .lh-sidebar,
.lh-main > schism-group > schism-pane > .lh-content,
.lh-main > schism-group > schism-pane > .lh-preview {
  height: 100%;
}

.lh-sidebar {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: color-mix(in srgb, var(--surface-soft) 34%, transparent);
}

.lh-content {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: transparent;
  padding: 0 var(--space-5) var(--space-7);
}

.lh-preview {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: color-mix(in srgb, var(--surface-raised) 34%, transparent);
  padding: var(--space-5);
}

.lh-preview-toggle {
  position: absolute;
  z-index: 10;
  top: var(--space-3);
  right: var(--space-3);
  min-height: 30px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-raised) 90%, transparent);
  color: var(--ink);
  padding: .35rem .55rem;
  font: 700 var(--font-xs)/1.2 var(--mono-font);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.lh-mobile-preview-scrim {
  display: none;
}

.lh-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.lh-pane-header {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 52px;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface-soft) 92%, transparent);
  padding: var(--space-3);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.lh-pane-header h2 {
  margin: .1rem 0 0;
  font-size: var(--font-lg);
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
}

.lh-tags {
  display: grid;
}

.lh-tag,
.lh-tag-all {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: .4rem .6rem;
  font: 500 var(--font-sm)/1.3 var(--mono-font);
  text-align: left;
}

.lh-tag.is-active,
.lh-tag-all.is-active {
  position: sticky;
  top: 52px;
  bottom: 0;
  z-index: 1;
  background: var(--ink);
  color: var(--canvas);
}

.lh-tag-title {
  min-width: 0;
  display: flex;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.lh-tag-title-start {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lh-tag-title-end {
  min-width: 0;
  max-width: 45%;
  flex: 0 0 auto;
  overflow: hidden;
  direction: rtl;
  text-align: left;
  white-space: nowrap;
}

.lh-tag-count {
  flex: 0 0 auto;
  color: inherit;
  opacity: .72;
  font-size: var(--font-xs);
}

@media (hover: hover) and (pointer: fine) {
  .lh-tag:hover,
  .lh-tag-all:hover {
    background: var(--surface-card);
  }

  .lh-tag.is-active:hover,
  .lh-tag-all.is-active:hover {
    background: var(--ink);
  }
}

.lh-list {
  width: min(900px, 100%);
  margin: 0 auto;
}

.lh-link-grid {
  display: grid;
}

.lh-link {
  position: relative;
  min-width: 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  padding: var(--space-4);
  cursor: pointer;
  outline-offset: -2px;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.lh-link.is-selected {
  background: var(--surface-soft);
  box-shadow: inset 4px 0 0 var(--lh-accent);
}

.lh-link-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-3);
}

.lh-link h3 {
  margin: 0 0 var(--space-1);
  color: var(--ink);
  font-size: var(--font-lg);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.lh-link-inspect {
  flex: 0 0 auto;
  color: var(--lh-ink-muted);
  transition:
    transform var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.lh-link a,
.lh-url {
  display: block;
  color: var(--lh-ink-muted);
  overflow-wrap: anywhere;
  font-size: var(--font-sm);
}

.lh-link p {
  margin-top: var(--space-2);
}

.lh-link-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.lh-link-tags {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.lh-link-tags span {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--lh-ink-muted);
  padding: .18rem .4rem;
  font-size: var(--font-xs);
  line-height: 1.35;
}

.lh-link-tags span::before {
  content: "#";
  color: var(--lh-accent);
}

.lh-link-action {
  flex: 0 0 auto;
  color: var(--lh-ink-muted);
  font-size: var(--font-xs);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
  .lh-link:hover {
    background: var(--surface-soft);
  }

  .lh-link:hover .lh-link-inspect {
    color: var(--lh-accent);
    transform: translate(2px, -2px);
  }
}

.lh-preview > div {
  min-width: 0;
  display: grid;
  gap: var(--space-3);
}

.lh-preview-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-3);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: var(--space-3);
}

.lh-preview-close {
  display: none;
}

.lh-preview h2 {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-size: var(--font-lg);
  line-height: 1.25;
  letter-spacing: var(--tracking-tight);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lh-state h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
}

.lh-preview-description {
  font-size: var(--font-sm);
}

.lh-preview-img {
  width: 100%;
  max-height: 190px;
  border: 1px solid var(--hairline);
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.lh-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border-top: 1px solid var(--hairline);
  padding-top: var(--space-4);
  color: var(--lh-ink-muted);
  font-size: var(--font-xs);
}

.lh-row {
  display: flex;
  gap: var(--space-2);
}

.lh-row > * {
  flex: 1;
}

.lh-danger-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
  border: 1px solid color-mix(in srgb, var(--danger) 55%, var(--hairline));
  background: color-mix(in srgb, var(--danger) 6%, transparent);
  padding: var(--space-3);
}

.lh-danger-zone strong,
.lh-danger-zone span {
  display: block;
}

.lh-danger-zone strong {
  font-size: var(--font-sm);
}

.lh-danger-zone span {
  margin-top: .15rem;
  color: var(--lh-ink-muted);
  font-size: var(--font-xs);
}

.lh-import,
.lh-command-palette {
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: var(--shadow-float);
}

.lh-import:not([open]),
.lh-command-palette:not([open]) {
  display: none;
}

.lh-import {
  width: min(520px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  overflow: auto;
}

.lh-import[open] {
  display: block;
  animation: lh-dialog-in var(--lh-dialog-ms) var(--lh-ease-out);
}

.lh-import.is-closing {
  animation: lh-dialog-out var(--lh-dialog-close-ms) var(--lh-ease-out) forwards;
}

.lh-import::backdrop,
.lh-command-palette::backdrop {
  background: var(--backdrop);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lh-import::backdrop {
  animation: lh-backdrop-in var(--lh-dialog-ms) var(--lh-ease-out);
}

.lh-import.is-closing::backdrop {
  animation: lh-backdrop-out var(--lh-dialog-close-ms) var(--lh-ease-out) forwards;
}

.lh-import-header {
  min-height: 78px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-4);
  border-bottom: 1px solid var(--hairline);
  padding: var(--space-4);
}

.lh-import-header h2 {
  margin: .2rem 0 0;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
}

.lh-import-header p {
  margin: .25rem 0 0;
  color: var(--body);
  font-size: var(--font-sm);
}

.lh-import-body {
  padding: var(--space-4);
}

.lh-command-palette {
  width: min(700px, calc(100vw - 32px));
  max-height: min(620px, calc(100dvh - 32px));
  margin: 11dvh auto auto;
  overflow: hidden;
}

.lh-command-palette[open] {
  display: block;
}

.lh-command-box {
  display: grid;
}

.lh-command-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid var(--hairline);
  padding: var(--space-3);
}

.lh-command-mark {
  color: var(--lh-accent);
  font-size: 1.4rem;
  font-weight: 700;
}

.lh-command-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font: 500 1rem/1.5 var(--mono-font);
}

.lh-command-input:focus {
  outline: none;
}

.lh-command-results {
  max-height: min(450px, 64dvh);
  overflow: auto;
  padding: var(--space-1);
}

.lh-command-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  padding: .55rem .65rem;
  text-align: left;
}

.lh-command-item.is-active,
.lh-command-item:focus {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--canvas);
  outline: none;
}

.lh-command-item span {
  min-width: 0;
  display: grid;
}

.lh-command-item strong,
.lh-command-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lh-command-item strong {
  color: inherit;
  font-size: var(--font-sm);
}

.lh-command-item small,
.lh-command-empty {
  color: var(--lh-ink-muted);
  font-size: var(--font-xs);
}

.lh-command-item.is-active small,
.lh-command-item:focus small {
  color: inherit;
}

.lh-command-item.is-active kbd,
.lh-command-item:focus kbd {
  color: var(--ink);
}

.lh-command-empty {
  padding: var(--space-4);
}

.lh-command-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  border-top: 1px solid var(--hairline);
  padding: var(--space-2) var(--space-3);
  color: var(--lh-ink-muted);
  font-size: var(--font-xs);
}

.lh-command-footer span:last-child {
  margin-left: auto;
}

@media (hover: hover) and (pointer: fine) {
  .lh-command-item:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--canvas);
  }

  .lh-command-item:hover small {
    color: inherit;
  }

  .lh-command-item:hover kbd {
    color: var(--ink);
  }
}

.lh-settings-main,
.lh-bulk-main {
  overflow: auto;
}

.lh-settings-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) var(--space-8);
}

.lh-settings-page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.lh-settings-page-header h1,
.lh-page-heading h1 {
  margin: .15rem 0 0;
  font-size: var(--font-xl);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}

.lh-settings-page-header p,
.lh-page-heading p,
.lh-panel-heading p,
.lh-settings-copy p,
.lh-settings-danger p,
.lh-security-summary p {
  margin: var(--space-2) 0 0;
  color: var(--body);
  font-size: var(--font-sm);
}

.lh-settings-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  border: 1px solid var(--ink);
  background: var(--surface-raised);
  box-shadow: var(--shadow-hard);
}

.lh-settings-nav {
  min-width: 0;
  display: grid;
  align-content: start;
  border-right: 1px solid var(--ink);
  background: var(--surface-soft);
}

.lh-settings-nav-label {
  border-bottom: 1px solid var(--hairline);
  padding: var(--space-3);
}

.lh-settings-tab {
  min-height: 54px;
  display: grid;
  gap: .15rem;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink);
  padding: var(--space-3);
  text-align: left;
}

.lh-settings-tab strong {
  font-size: var(--font-sm);
}

.lh-settings-tab span {
  color: var(--lh-ink-muted);
  font-size: var(--font-xs);
}

.lh-settings-tab.is-active {
  background: var(--ink);
  color: var(--canvas);
}

.lh-settings-tab.is-active strong,
.lh-settings-tab.is-active span {
  color: inherit;
}

.lh-settings-tab.is-active::after {
  content: "→";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.lh-settings-panels {
  min-width: 0;
  min-height: 520px;
  overflow: hidden;
}

.lh-settings-panel {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
}

.lh-settings-panel[hidden] {
  display: none;
}

.lh-panel-heading {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: var(--space-4);
}

.lh-panel-heading h2 {
  margin: .2rem 0 0;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
}

.lh-settings-card,
.lh-security-summary,
.lh-settings-danger {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  border: 1px solid var(--hairline);
  background: var(--canvas);
  padding: var(--space-4);
}

.lh-settings-card--stack {
  align-items: start;
}

.lh-settings-index {
  align-self: start;
  color: var(--lh-accent);
  font-size: var(--font-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
}

.lh-settings-copy h3,
.lh-settings-danger h3,
.lh-security-summary h3,
.lh-subsection-header h3,
.lh-totp-intro h3 {
  margin: 0;
  font-size: var(--font-md);
  line-height: 1.3;
}

.lh-shortcuts {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--hairline);
}

.lh-shortcuts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: var(--space-3) 0;
}

.lh-shortcuts > div:nth-child(even) {
  border-right: 0;
  padding-left: var(--space-3);
}

.lh-shortcuts dt {
  color: var(--lh-ink-muted);
  font-size: var(--font-xs);
}

.lh-shortcuts dd {
  margin: 0;
  font-size: var(--font-xs);
  white-space: nowrap;
}

.lh-security-summary {
  grid-template-columns: auto minmax(0, 1fr);
}

.lh-passkey-root,
.lh-passkey-list {
  display: grid;
  gap: var(--space-3);
}

.lh-passkey-enroll {
  grid-column: 2 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
}

.lh-passkey-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--body);
  font-size: var(--font-sm);
}

.lh-passkey-status[data-state="error"] {
  color: var(--danger);
}

.lh-passkey-status[data-state="success"] {
  color: var(--success);
}

.lh-passkey {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-3) var(--space-4);
  border: 1px solid var(--hairline);
  background: var(--canvas);
  padding: var(--space-4);
}

.lh-passkey-summary {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.lh-passkey-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  background: var(--surface-soft);
  color: var(--lh-accent);
  font-size: var(--font-xs);
  font-weight: 700;
}

.lh-passkey h3 {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: var(--font-md);
}

.lh-passkey-kind {
  display: block;
  margin-top: .1rem;
  color: var(--lh-ink-muted);
  font-size: var(--font-xs);
}

.lh-passkey > .lh-api-key-meta {
  justify-content: end;
  margin: 0;
}

.lh-passkey-rename {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-2);
}

.lh-passkey-empty[hidden],
.lh-passkey-status[hidden] {
  display: none;
}

.lh-security-separator {
  margin-top: var(--space-2);
  border-top: 1px solid var(--hairline);
  padding-top: var(--space-4);
}

.lh-passkey-dialog .lh-import-body > p {
  margin: 0;
  color: var(--body);
  font-size: var(--font-sm);
}

.lh-security-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--canvas);
  font-size: var(--font-sm);
  font-weight: 700;
}

.lh-settings-danger {
  grid-template-columns: minmax(0, 1fr) auto;
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 5%, var(--canvas));
}

.lh-totp-output {
  display: grid;
  gap: var(--space-3);
  border: 1px solid var(--ink);
  background: var(--surface-soft);
  padding: var(--space-4);
}

.lh-totp-intro {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-5);
}

.lh-totp-qr {
  width: 180px;
  height: 180px;
  flex: 0 0 auto;
  border: 8px solid #fff;
  background: #fff;
}

.lh-copy-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
  color: var(--lh-ink-muted);
  font-size: var(--font-xs);
  font-weight: 700;
}

.lh-subsection-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-2);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: var(--space-3);
}

.lh-api-key-list {
  display: grid;
  gap: var(--space-3);
}

.lh-api-key {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-4);
  border: 1px solid var(--hairline);
  background: var(--canvas);
  padding: var(--space-4);
}

.lh-api-key h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--font-md);
}

.lh-api-key-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: var(--space-3) 0 0;
}

.lh-api-key-meta div {
  display: grid;
}

.lh-api-key-meta dt {
  color: var(--lh-ink-muted);
  font-size: var(--font-xs);
  text-transform: uppercase;
}

.lh-api-key-meta dd {
  margin: 0;
  font-size: var(--font-sm);
}

.lh-api-key-create {
  grid-column: 2 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.lh-api-key-secret {
  grid-column: 2 / -1;
  display: grid;
  gap: var(--space-2);
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--warning);
  background: color-mix(in srgb, var(--warning) 7%, var(--canvas));
  padding: var(--space-3);
}

.lh-api-key-secret code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.lh-page-heading {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: var(--space-4);
}

.lh-bulk-page {
  width: min(1380px, 100%);
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  gap: var(--space-5);
  align-content: start;
  margin: 0 auto;
  padding: var(--space-5);
}

.lh-bulk-form,
.lh-bulk-results {
  min-width: 0;
}

.lh-bulk-form {
  align-content: start;
}

.lh-bulk-form textarea {
  min-height: 420px;
}

.lh-bulk-results {
  min-height: 560px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: var(--space-3);
}

.lh-bulk-results > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-3);
}

.lh-bulk-results h2 {
  margin: .1rem 0 0;
  font-size: var(--font-lg);
}

.lh-bulk-candidates {
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--ink);
  background:
    linear-gradient(var(--hairline) 1px, transparent 1px) 0 0 / 100% 36px,
    var(--surface-raised);
  padding: var(--space-3);
}

.lh-bulk-candidate {
  min-height: 36px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  overflow-wrap: anywhere;
  font-size: var(--font-sm);
}

.lh-error,
.lh-notice,
.lh-loading {
  margin: 0;
  font-size: var(--font-sm);
}

.lh-error {
  color: var(--danger);
}

.lh-notice {
  color: var(--success);
}

.lh-loading {
  color: var(--lh-ink-muted);
}

.lh-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  color: var(--lh-ink-muted);
  font-size: var(--font-xs);
  letter-spacing: .04em;
}

.lh-load-more--end {
  display: none;
}

.lh-spinner {
  width: 14px;
  height: 14px;
  display: inline-block;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: lh-spin 700ms linear infinite;
}

.lh-state {
  display: grid;
  gap: var(--space-2);
  border: 1px dashed var(--hairline-strong);
  background: color-mix(in srgb, var(--surface-soft) 68%, transparent);
  padding: var(--space-5);
}

.lh-state::before {
  content: "[-]";
  color: var(--lh-accent);
  font-weight: 700;
}

.lh-login,
.lh-landing {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.lh-login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--space-5);
}

.lh-login::before,
.lh-landing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(10, 8, 8, .78), rgba(10, 8, 8, .3)),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(255, 255, 255, .04) 48px);
}

.lh-login-box {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  display: grid;
  gap: var(--space-4);
  border: 1px solid rgba(255, 255, 255, .78);
  background: rgba(18, 16, 16, .76);
  color: #fff;
  padding: var(--space-5);
  box-shadow: 8px 8px 0 rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}

.lh-login-box .lh-wordmark,
.lh-login-box h1,
.lh-login-box .lh-field,
.lh-login-box .lh-muted {
  color: #fff;
}

.lh-login-box h1 {
  margin: .2rem 0 0;
  font-size: 1.6rem;
  letter-spacing: var(--tracking-tight);
}

.lh-login-box .lh-muted {
  margin-top: var(--space-1);
  opacity: .76;
  font-size: var(--font-sm);
}

.lh-login-box .lh-form input {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(0, 0, 0, .34);
  color: #fff;
}

.lh-login-box .lh-form input:focus {
  border-color: #fff;
}

.lh-login-box .lh-primary {
  border-color: #fff;
  background: #fff;
  color: #111;
}

.lh-passkey-login-block {
  display: grid;
  gap: var(--space-2);
}

.lh-passkey-login {
  width: 100%;
}

.lh-login-passkey-note,
.lh-login-box .lh-passkey-status {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: var(--font-xs);
}

.lh-login-box .lh-passkey-status[data-state="error"] {
  color: #ffb4a4;
}

.lh-login-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255, 255, 255, .58);
  font-size: var(--font-xs);
  letter-spacing: var(--tracking-label);
}

.lh-login-divider::before,
.lh-login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, .24);
}

.lh-login-back {
  width: fit-content;
  color: rgba(255, 255, 255, .72);
  font-size: var(--font-xs);
}

.lh-landing {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.lh-landing-header {
  position: relative;
  z-index: 2;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  background: rgba(15, 13, 13, .58);
  padding: var(--space-2) var(--space-4);
  color: #fff;
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
}

.lh-landing-logo {
  border: 1px solid #fff;
  color: #fff;
  padding: .15rem .4rem;
  font-weight: 700;
  text-decoration: none;
}

.lh-landing-badge {
  color: rgba(255, 255, 255, .66);
  font-size: var(--font-xs);
  letter-spacing: var(--tracking-label);
}

.lh-landing-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.lh-landing-nav a {
  color: #fff;
  padding: .3rem .55rem;
  font-size: var(--font-sm);
  text-decoration: none;
}

.lh-landing-login {
  border: 1px solid rgba(255, 255, 255, .7);
}

.lh-landing-hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: end;
  padding: clamp(2rem, 7vw, 7rem);
}

.lh-landing-kicker {
  margin: 0 0 var(--space-3);
  color: rgba(255, 255, 255, .72);
  font-size: var(--font-sm);
  font-weight: 700;
  letter-spacing: .14em;
}

.lh-landing-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.5rem, 11vw, 10rem);
  font-weight: 700;
  line-height: .84;
  letter-spacing: -.065em;
}

.lh-landing-hero h2 {
  max-width: 34ch;
  margin: var(--space-5) 0 0;
  color: #fff;
  font-size: clamp(1.15rem, 2.6vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.lh-landing-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
  color: rgba(255, 255, 255, .66);
  font-size: var(--font-sm);
}

.lh-landing-cta {
  border: 1px solid #fff;
  background: #fff;
  color: #111;
  padding: .65rem .9rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform var(--duration-press) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.lh-landing-cta:active {
  transform: scale(.97);
}

.lh-landing-kicker,
.lh-landing-hero h1,
.lh-landing-hero h2,
.lh-landing-actions {
  animation: lh-marketing-enter 480ms var(--ease-out) both;
}

.lh-landing-hero h1 {
  animation-delay: 45ms;
}

.lh-landing-hero h2 {
  animation-delay: 90ms;
}

.lh-landing-actions {
  animation-delay: 135ms;
}

.lh-about {
  background-image: none !important;
  background-color: var(--canvas);
  color: var(--ink);
}

.lh-about::before {
  display: none;
}

.lh-about .lh-landing-header {
  border-color: var(--hairline);
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  color: var(--ink);
}

.lh-about .lh-landing-logo,
.lh-about .lh-landing-nav a {
  border-color: var(--ink);
  color: var(--ink);
}

.lh-about .lh-landing-badge {
  color: var(--lh-ink-muted);
}

.lh-about-content {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: var(--space-8) var(--space-5);
  font-size: 1rem;
  line-height: 1.75;
}

.lh-about-content h1 {
  margin: var(--space-2) 0 var(--space-6);
  color: var(--ink);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: .95;
  letter-spacing: -.055em;
}

.lh-about-content p {
  margin: 0 0 var(--space-4);
  color: var(--body);
}

.lh-about-footer {
  margin-top: var(--space-7);
  border-top: 1px solid var(--hairline);
  padding-top: var(--space-4);
  color: var(--lh-ink-muted);
  font-size: var(--font-sm);
}

@media (hover: hover) and (pointer: fine) {
  .lh-landing-nav a:hover {
    background: #fff;
    color: #111;
  }

  .lh-about .lh-landing-nav a:hover {
    background: var(--ink);
    color: var(--canvas);
  }

  .lh-landing-cta:hover {
    background: transparent;
    color: #fff;
  }
}

@keyframes lh-dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lh-dialog-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(6px) scale(.985);
  }
}

@keyframes lh-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lh-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes lh-marketing-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lh-enter-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@media (max-width: 1120px) {
  .lh-user {
    display: none;
  }

  .lh-header-nav .lh-secondary {
    padding-inline: .5rem;
  }
}

@media (max-width: 840px) {
  .lh-shell,
  .lh-app {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .lh-app {
    display: block;
  }

  .lh-header {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    padding: var(--space-2);
  }

  .lh-header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .lh-header-main {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .lh-search {
    grid-column: 1 / -1;
    max-width: none;
    width: 100%;
  }

  .lh-header-nav {
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .lh-global-status {
    justify-self: end;
  }

  .lh-main {
    overflow: visible;
  }

  .lh-main > schism-group,
  .lh-main > schism-group > schism-pane {
    display: block;
    width: auto;
    height: auto;
    overflow: visible;
    flex: none !important;
  }

  .lh-main > schism-group > schism-resizer {
    display: none;
  }

  .lh-preview-toggle {
    display: none;
  }

  .lh-sidebar-pane {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .lh-sidebar {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    border-bottom: 1px solid var(--hairline);
    background: color-mix(in srgb, var(--surface-soft) 92%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .lh-pane-header {
    position: static;
    min-width: 92px;
    min-height: 48px;
    border-right: 1px solid var(--hairline);
    border-bottom: 0;
    padding: var(--space-2);
  }

  .lh-pane-header .lh-pane-count {
    display: none;
  }

  .lh-tag-all,
  .lh-tag {
    width: auto;
    min-width: max-content;
    min-height: 48px;
    border-right: 1px solid var(--hairline);
    border-bottom: 0;
  }

  .lh-tag.is-active,
  .lh-tag-all.is-active {
    position: static;
  }

  .lh-tags {
    display: flex;
  }

  .lh-content {
    overflow: visible;
    padding: 0 var(--space-4) var(--space-7);
  }

  .lh-preview-pane {
    position: fixed !important;
    inset: 0;
    z-index: 90;
    display: grid !important;
    align-items: end;
    opacity: 0;
    overflow: hidden !important;
    pointer-events: none;
    transition: opacity var(--duration-press) var(--ease-out);
  }

  .lh-preview-pane.is-open {
    opacity: 1;
    pointer-events: auto;
    transition-duration: var(--duration-fast);
  }

  .lh-mobile-preview-scrim {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--backdrop);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  .lh-preview {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto !important;
    max-height: 82dvh;
    overflow: auto;
    border-top: 1px solid var(--ink);
    box-shadow: 0 -20px 56px rgba(0, 0, 0, .28);
    transform: translateY(100%);
    transition: transform var(--duration-fast) var(--ease-out);
  }

  .lh-preview-pane.is-open .lh-preview {
    transform: translateY(0);
    transition-duration: var(--duration-ui);
    transition-timing-function: var(--ease-drawer);
  }

  .lh-preview-close {
    display: inline-grid;
    place-items: center;
  }

  .lh-settings-page,
  .lh-bulk-page {
    padding: var(--space-4);
  }

  .lh-settings-body {
    grid-template-columns: 1fr;
    box-shadow: none;
  }

  .lh-settings-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .lh-settings-nav-label {
    display: none;
  }

  .lh-settings-tab {
    min-height: 56px;
    border-right: 1px solid var(--hairline);
    border-bottom: 0;
  }

  .lh-settings-tab:last-child {
    border-right: 0;
  }

  .lh-settings-tab.is-active::after {
    display: none;
  }

  .lh-settings-panels {
    min-height: 0;
  }

  .lh-bulk-page {
    grid-template-columns: 1fr;
  }

  .lh-bulk-form textarea {
    min-height: 300px;
  }

  .lh-bulk-results {
    min-height: 480px;
  }
}

@media (max-width: 560px) {
  .lh-header-main {
    grid-template-columns: 1fr;
  }

  .lh-header-nav {
    justify-content: stretch;
  }

  .lh-header-nav > * {
    flex: 1;
  }

  .lh-global-status {
    min-height: 0;
  }

  .lh-search-shortcut {
    display: none;
  }

  .lh-content {
    padding-inline: var(--space-3);
  }

  .lh-link {
    padding-inline: var(--space-2);
  }

  .lh-link-action {
    display: none;
  }

  .lh-settings-page-header {
    align-items: start;
    flex-direction: column;
  }

  .lh-settings-page-header .lh-secondary {
    order: -1;
  }

  .lh-settings-tab span {
    display: none;
  }

  .lh-settings-panel {
    padding: var(--space-3);
  }

  .lh-settings-card,
  .lh-security-summary,
  .lh-settings-danger {
    grid-template-columns: 1fr;
  }

  .lh-settings-index {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
  }

  .lh-shortcuts,
  .lh-api-key-create,
  .lh-api-key-secret,
  .lh-passkey-enroll {
    grid-column: 1;
  }

  .lh-passkey-enroll,
  .lh-passkey,
  .lh-passkey-rename {
    grid-template-columns: 1fr;
  }

  .lh-passkey > .lh-api-key-meta {
    justify-content: start;
  }

  .lh-shortcuts {
    grid-template-columns: 1fr;
  }

  .lh-shortcuts > div,
  .lh-shortcuts > div:nth-child(even) {
    border-right: 0;
    padding-left: 0;
  }

  .lh-settings-danger {
    align-items: stretch;
  }

  .lh-totp-intro {
    flex-direction: column;
  }

  .lh-copy-row {
    grid-template-columns: 1fr;
  }

  .lh-api-key {
    grid-template-columns: 1fr;
  }

  .lh-form-actions,
  .lh-bulk-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .lh-form-actions .lh-primary,
  .lh-bulk-actions .lh-primary {
    width: 100%;
  }

  .lh-command-palette {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    margin-top: 8px;
  }

  .lh-command-footer span:last-child {
    width: 100%;
    margin-left: 0;
  }

  .lh-landing-badge {
    display: none;
  }

  .lh-landing-hero {
    padding: var(--space-5);
  }

  .lh-landing-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .lh-login {
    padding: var(--space-3);
  }

  .lh-login-box {
    padding: var(--space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lh-primary,
  .lh-secondary,
  .lh-danger,
  .lh-quiet,
  .lh-icon-btn,
  .lh-search-clear,
  .lh-preview-close,
  .lh-landing-cta {
    transition-property: background-color, border-color, color, box-shadow;
  }

  .lh-primary:active,
  .lh-secondary:active,
  .lh-danger:active,
  .lh-quiet:active,
  .lh-icon-btn:active,
  .lh-search-clear:active,
  .lh-preview-close:active,
  .lh-landing-cta:active {
    transform: none;
  }

  .lh-link-inspect {
    transition: color var(--duration-fast) var(--ease-out);
  }

  .lh-link:hover .lh-link-inspect {
    transform: none;
  }

  .lh-import[open],
  .lh-import.is-closing,
  .lh-import::backdrop,
  .lh-import.is-closing::backdrop {
    animation: lh-enter-fade var(--duration-fast) var(--ease-out);
  }

  .lh-preview-pane,
  .lh-preview {
    transition: opacity var(--duration-fast) var(--ease-out);
  }

  .lh-preview {
    transform: none;
    opacity: 0;
  }

  .lh-preview-pane.is-open .lh-preview {
    opacity: 1;
  }

  .lh-landing-kicker,
  .lh-landing-hero h1,
  .lh-landing-hero h2,
  .lh-landing-actions {
    animation: lh-enter-fade var(--duration-fast) var(--ease-out) both;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .lh-header,
  .lh-pane-header,
  .lh-sidebar,
  .lh-tag-suggestions,
  .lh-login-box,
  .lh-landing-header,
  .lh-preview-toggle,
  .lh-mobile-preview-scrim,
  .lh-import::backdrop,
  .lh-command-palette::backdrop {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .lh-header,
  .lh-pane-header,
  .lh-sidebar,
  .lh-tag-suggestions {
    background: var(--canvas);
  }
}

@media (prefers-contrast: more) {
  .lh-header,
  .lh-pane-header,
  .lh-settings-card,
  .lh-security-summary,
  .lh-api-key,
  .lh-link {
    border-color: var(--ink);
  }
}
