.lw-st-overlay {
  position: fixed;
  inset: 0;
  z-index: 100030;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 12, 20, 0.55);
}

.lw-st-overlay[hidden] {
  display: none !important;
}

.lw-st-card {
  width: min(480px, 100%);
  max-height: min(80vh, 760px);
  overflow: auto;
  color: var(--text, #e8edf8);
  background: var(--surface-raised, #172033);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 16px;
}

.lw-st-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 8px;
}

.lw-st-header h2 {
  margin: 0;
  font-size: 20px;
}

.lw-st-close,
.lw-st-add button,
.lw-st-list button,
.lw-st-label-row button {
  color: var(--text, #e8edf8);
  background: var(--surface-hover, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
}

.lw-st-close {
  min-height: 36px;
  padding: 0 12px;
  font-weight: 650;
}

.lw-st-tabs {
  display: flex;
  gap: 6px;
  padding: 0 16px 8px;
  flex-wrap: wrap;
}

.lw-st-tabs button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--text-muted, #94a3b8);
  background: transparent;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 999px;
}

.lw-st-tabs button.active {
  color: #fff;
  background: #1548b5;
  border-color: #1548b5;
}

.lw-st-body {
  padding: 8px 16px 16px;
}

.lw-st-add,
.lw-st-label-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.lw-st-label-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
}

.lw-st-add input,
.lw-st-label-row input,
.lw-st-body input[type="file"] {
  min-height: 40px;
  padding: 0 10px;
  color: inherit;
  background: var(--surface, #101828);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.14));
  border-radius: 10px;
}

.lw-st-add button,
.lw-st-label-row button {
  min-height: 40px;
  padding: 0 12px;
  font-weight: 650;
}

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

.lw-st-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
}

.lw-st-list li.is-done span {
  text-decoration: line-through;
  opacity: 0.65;
}

.lw-st-open {
  flex: 1;
  display: grid;
  text-align: left;
  color: inherit;
  background: transparent;
  border: 0;
}

.lw-st-open small {
  color: var(--text-muted, #94a3b8);
}

.lw-st-hint,
.lw-st-here,
.lw-st-empty,
.lw-st-status {
  color: var(--text-muted, #94a3b8);
  font-size: 13px;
  line-height: 1.45;
}

.lw-st-find {
  position: fixed;
  z-index: 100040;
  top: calc(8px + env(safe-area-inset-top, 0px));
  right: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 8px;
  color: var(--text, #e8edf8);
  background: var(--surface-raised, #172033);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.14));
  border-radius: 12px;
}

.lw-st-find[hidden] {
  display: none !important;
}

.lw-st-find input {
  width: 160px;
  min-height: 32px;
  padding: 0 8px;
  color: inherit;
  background: transparent;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.14));
  border-radius: 8px;
}

#lw-st-nav svg,
#lw-st-find-open {
  flex-shrink: 0;
}

.comparison-page,
.comparison-columns-2,
.comparison-columns-3 {
  min-height: 0;
}

.comparison-column,
.comparison-column-shell {
  min-height: 0;
  overflow: auto;
}

@media (min-width: 821px) {
  .lw-st-overlay {
    align-items: center;
  }
}
