/* Linear product tokens (awesome-design-md/linear.app), brand lime as the single accent. */
html {
  color-scheme: dark;
  min-height: 100%;
  min-height: 100dvh;
}

:root {
  --bg: #010102;
  --surface: #0f1011;
  --surface-2: #141516;
  --surface-3: #18191a;
  --text: #f7f8f8;
  --text-muted: #d0d6e0;
  --muted: #8a8f98;
  --muted-dim: #62666d;
  --accent: #8ad516;
  --accent-hover: #9be02c;
  --accent-pressed: #78c012;
  --on-accent: #010102;
  --border: #23252a;
  --border-strong: #34343a;
  --focus: #8ad516;
  --danger: #f87171;
  --warn: #fbbf24;
  --success: #6ee7b7;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --header-h: 56px;
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow-menu: 0 8px 24px rgb(0 0 0 / 0.45);
  --z-skip: 40;
  --z-header: 30;
  --z-menu: 20;
  --z-dropdown: 10;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgb(138 213 22 / 0.12);
}

html,
body {
  margin: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.05px;
  min-height: 100vh;
  min-height: 100dvh;
  touch-action: manipulation;
  display: flex;
  flex-direction: column;
  padding:
    env(safe-area-inset-top, 0px)
    env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px)
    env(safe-area-inset-left, 0px);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid rgb(138 213 22 / 0.55);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: var(--z-skip);
  padding: 8px 14px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-120%);
}

.skip-link:focus {
  outline: none;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  background: rgb(1 1 2 / 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.site-logo {
  height: 36px;
  width: auto;
  display: block;
}

.brand-copy {
  min-width: 0;
}

.brand-copy h1 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-copy .lede {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-wrap {
  position: relative;
  flex-shrink: 0;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  min-width: 44px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.share-btn:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.share-btn:active {
  transform: scale(0.98);
}

.share-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.share-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  min-width: 16rem;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-menu);
  z-index: var(--z-menu);
  display: none;
  overflow: hidden;
  padding: 4px;
}

.share-menu.open {
  display: block;
}

.share-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: none;
  color: var(--text);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
}

.share-menu button:hover {
  background: var(--surface-2);
}

.share-menu button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.workspace {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  display: grid;
  grid-template-columns: minmax(20rem, 24rem) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

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

.filter-pane {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 16px 12px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100dvh - var(--header-h) - 32px);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.filter-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  padding-right: 2px;
}

.filter-actions {
  flex-shrink: 0;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.filter-pane h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.filter-lede {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
  max-width: 65ch;
}

.field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 12px;
}

.field > label,
.field-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.field > label[title],
.field-label[title] {
  cursor: help;
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legend-item .tag-inc-exc {
  min-width: unset;
  min-height: unset;
  padding: 0;
  pointer-events: none;
}

input[type="text"],
textarea,
select {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

input[type="text"]:hover,
textarea:hover,
select:hover {
  border-color: var(--border-strong);
}

input[type="text"]:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--accent);
  background: var(--surface-3);
}

textarea {
  min-height: 4rem;
  resize: vertical;
}

select {
  color: var(--text);
  background-color: var(--surface-2);
}

.smart-stats-section.smart-stats-hidden {
  display: none !important;
}

button {
  font-family: inherit;
  touch-action: manipulation;
}

.btn-primary,
#run,
#downloadUrls,
.any-name-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid transparent;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover,
#run:hover,
#downloadUrls:hover,
.any-name-add-btn:hover {
  background: var(--accent-hover);
}

.btn-primary:active,
#run:active,
#downloadUrls:active,
.any-name-add-btn:active {
  background: var(--accent-pressed);
  transform: scale(0.98);
}

.btn-primary:disabled,
#run:disabled,
#downloadUrls:disabled,
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

#run,
#downloadUrls {
  min-height: 44px;
}

#run {
  width: 100%;
  margin-top: 4px;
}

#run .btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgb(1 1 2 / 0.25);
  border-top-color: var(--on-accent);
  border-radius: 9999px;
  animation: spin 0.7s linear infinite;
}

#run.is-loading .btn-spinner {
  display: inline-block;
}

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

@media (prefers-reduced-motion: reduce) {
  #run .btn-spinner {
    animation: none;
    border-top-color: var(--on-accent);
    opacity: 0.7;
  }

  .btn-primary:active,
  #run:active,
  #downloadUrls:active,
  .any-name-add-btn:active,
  .share-btn:active {
    transform: none;
  }
}

.results-pane {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  min-height: 28rem;
  min-width: 0;
}

.results-pane h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 0;
  color: var(--text);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.results-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 24rem;
  padding: 8px 4px 24px;
}

.results-empty h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}

.results-empty p {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 14px;
}

.results-body {
  display: none;
}

.results-pane.has-results .results-body {
  display: block;
}

.results-pane.has-results .results-empty {
  display: none;
}

#results .count {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

#results .urls {
  max-height: min(36rem, calc(100dvh - 16rem));
  overflow-y: auto;
  overscroll-behavior-y: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 12px;
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
}

#results .km-row {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

#results .km-row:last-child {
  border-bottom: none;
}

#results .km-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

#results .zkill-icon-link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  touch-action: manipulation;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

#results .zkill-icon-link:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

#results .zkill-icon-link img {
  width: 22px;
  height: 22px;
  display: block;
}

#results .zkill-icon-link.seen {
  opacity: 0.45;
}

#results .km-stat-line {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: baseline;
}

#results .km-abyssal-badge[hidden] {
  display: none !important;
}

#results .km-abyssal-badge:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgb(124 28 0 / 0.55);
  background: rgb(124 28 0 / 0.14);
  color: #fecaca;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
}

#results .km-abyssal-badge:not([hidden]) .km-abyssal-badge-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

#results .km-stat {
  color: var(--muted);
}

#results .km-stat strong {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

#results .km-s-cap.km-cap-stable strong { color: var(--success); }
#results .km-s-cap.km-cap-depletes strong { color: var(--warn); }
#results .km-s-cap.km-cap-delta strong { color: var(--danger); }

.result-stats-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.result-stats-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  background: var(--bg);
}

.result-stats-group-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.result-stats-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.result-stats-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  margin: 0;
  min-height: 28px;
}

.result-stats-options input {
  accent-color: var(--accent);
}

.advanced {
  margin: 4px 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  padding: 0;
}

.advanced > summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-md);
}

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

.advanced > summary::after {
  content: "Show";
  float: right;
  color: var(--muted);
  font-weight: 400;
}

.advanced[open] > summary::after {
  content: "Hide";
}

.advanced-body {
  padding: 0 12px 12px;
}

#results .actions {
  margin-top: 12px;
}

#results .actions button {
  margin-right: 8px;
}

#downloadUrls {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

#downloadUrls:hover {
  background: var(--surface-3);
  border-color: var(--border-strong);
}

#error {
  color: var(--danger);
  margin-top: 10px;
  font-size: 13px;
  min-height: 1.2em;
}

#error:empty {
  display: none;
}

#loading {
  margin-top: 10px;
  display: none;
}

#loading.loading-visible {
  display: block;
}

#loading .loading-bar-track {
  width: 100%;
  height: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9999px;
  overflow: hidden;
}

#loading .loading-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 9999px;
  transition: width 0.2s ease;
}

#loading .loading-message {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.hull-select {
  position: relative;
  width: 100%;
}

.hull-select input {
  margin-bottom: 0;
}

.hull-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  max-height: 14rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  z-index: var(--z-dropdown);
  display: none;
  box-shadow: var(--shadow-menu);
}

.hull-dropdown.open {
  display: block;
}

.hull-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  min-height: 36px;
}

.hull-option:hover {
  background: var(--surface-2);
}

.hull-option.selected {
  background: rgb(138 213 22 / 0.12);
}

.hull-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  min-height: 0;
}

.hull-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.hull-tag button {
  background: none;
  color: var(--muted);
  border: none;
  padding: 0 2px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  min-height: unset;
  touch-action: manipulation;
}

.hull-tag button:hover {
  color: var(--text);
}

.hull-tag .module-tag-remove {
  padding: 0 2px;
}

.type-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
}

.hull-option .type-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.any-name-table {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.any-name-table > #any_name_input {
  grid-column: 1 / -1;
}

.any-name-slot-add {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.any-name-slot-add select {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: none;
}

.any-name-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
}

.any-name-add-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.any-name-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: contents;
}

.any-name-list li {
  display: contents;
}

.any-name-list li .any-name-cell {
  min-width: 0;
  padding: 6px 0;
  font-size: 14px;
}

.any-name-list li .any-name-slot {
  min-width: 0;
  padding: 6px 0;
  color: var(--muted);
  font-size: 13px;
}

.any-name-list li .remove-any {
  justify-self: start;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  font-size: 1.1rem;
  line-height: 1;
  touch-action: manipulation;
}

.any-name-list li .remove-any:hover {
  color: var(--danger);
}

.location-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.location-row label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 14px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.location-row label:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.location-row label:has(input:checked) {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--text);
}

.location-row label.location-abyssal-hidden {
  display: none;
}

.location-row input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-footer {
  margin-top: auto;
  padding: 20px 24px 28px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  flex-shrink: 0;
}

.page-footer p {
  margin: 0 0 4px;
}

.page-footer a {
  color: var(--accent);
  text-decoration: none;
}

.page-footer a:hover {
  text-decoration: underline;
}

.hull-tag .tag-inc-exc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 2px;
  margin: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
  line-height: 1;
  min-height: unset;
  min-width: unset;
  touch-action: manipulation;
}

.hull-tag .tag-inc-exc:hover {
  color: var(--accent-hover);
}

.hull-tag .tag-inc-exc.is-exclude {
  color: var(--danger);
}

.hull-tag .tag-inc-exc .inc-exc-svg {
  display: block;
}

.any-name-list li .tag-inc-exc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
  padding: 4px;
  line-height: 1;
  touch-action: manipulation;
}

.any-name-list li .tag-inc-exc:hover {
  color: var(--accent-hover);
}

.any-name-list li .tag-inc-exc.is-exclude {
  color: var(--danger);
}

@media (max-width: 64rem) {
  .workspace {
    grid-template-columns: 1fr;
    padding: 16px 16px 40px;
  }

  .filter-pane {
    position: static;
    max-height: none;
  }

  .filter-scroll {
    overflow: visible;
  }

  .brand-copy .lede {
    display: none;
  }

  .results-pane {
    min-height: 12rem;
  }

  .results-empty {
    min-height: 10rem;
  }
}

@media (max-width: 48rem) {
  .site-header {
    padding: 0 12px;
  }

  .site-logo {
    height: 32px;
  }

  .share-btn .share-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .share-btn {
    width: 44px;
    height: 44px;
    padding: 0;
  }

  .workspace {
    padding: 12px 12px 32px;
    gap: 16px;
  }

  .filter-pane,
  .results-pane {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  input[type="text"],
  textarea,
  select,
  .hull-select input,
  .any-name-table > input,
  .any-name-slot-add select {
    font-size: 16px;
    min-height: 44px;
  }

  .hull-option {
    min-height: 44px;
    font-size: 16px;
  }

  .share-menu button {
    min-height: 44px;
    padding: 12px;
    font-size: 16px;
  }

  #results .urls {
    max-height: min(24rem, 55dvh);
  }

  #results .zkill-icon-link {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
  }

  .any-name-list li .remove-any,
  .any-name-list li .any-name-inc-exc {
    min-height: 44px;
    min-width: 44px;
  }

  .hull-tag .tag-inc-exc {
    min-width: 36px;
    min-height: 36px;
  }

  .any-name-table {
    display: block;
    grid-template-columns: unset;
    gap: unset;
  }

  .any-name-table > input {
    width: 100%;
    margin-bottom: 8px;
  }

  .any-name-slot-add {
    grid-column: auto;
    width: 100%;
    margin-bottom: 8px;
  }

  .any-name-list {
    display: block;
    margin-top: 8px;
  }

  .any-name-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }

  .any-name-list li:last-child {
    border-bottom: none;
  }

  .any-name-list li .any-name-cell {
    flex: 1;
    min-width: 0;
  }

  .any-name-list li .any-name-slot {
    flex: none;
  }

  .any-name-list li .remove-any {
    position: static;
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
