/* ═══════════════════════════════════════════
   LISTLY — Nothing Design System
   Space Grotesk (body) + Space Mono (labels)
   ═══════════════════════════════════════════ */

:root {
  --black: #000000;
  --surface: #111111;
  --surface-raised: #1A1A1A;
  --border: #222222;
  --border-visible: #333333;
  --text-disabled: #666666;
  --text-secondary: #999999;
  --text-primary: #E8E8E8;
  --text-display: #FFFFFF;
  --accent: #D71921;
  --interactive: #5B9BF6;

  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'SF Mono', monospace;

  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ─── LIGHT MODE ─── */

@media (prefers-color-scheme: light) {
  :root:not(.dark) {
    --black: #F5F5F5;
    --surface: #FFFFFF;
    --surface-raised: #F0F0F0;
    --border: #E8E8E8;
    --border-visible: #CCCCCC;
    --text-disabled: #999999;
    --text-secondary: #666666;
    --text-primary: #1A1A1A;
    --text-display: #000000;
    --interactive: #007AFF;
  }
}

:root.light {
  --black: #F5F5F5;
  --surface: #FFFFFF;
  --surface-raised: #F0F0F0;
  --border: #E8E8E8;
  --border-visible: #CCCCCC;
  --text-disabled: #999999;
  --text-secondary: #666666;
  --text-primary: #1A1A1A;
  --text-display: #000000;
  --interactive: #007AFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  background: var(--black);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

.hidden { display: none !important; }

/* Visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Global focus-visible */
:focus-visible {
  outline: 1.5px solid var(--text-secondary);
  outline-offset: 2px;
}

input:focus-visible,
select:focus-visible {
  outline: none;
}

.screen {
  min-height: 100vh;
  min-height: 100dvh;
}

/* ─── AUTH ─── */

.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--space-xl);
}

.auth-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  text-transform: uppercase;
}

.auth-input {
  width: 100%;
  max-width: 280px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-visible);
  color: var(--text-display);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  padding: var(--space-sm) 0;
  outline: none;
  text-align: center;
  transition: border-color 150ms var(--ease);
}

.auth-input:focus {
  border-color: var(--text-primary);
}

.auth-input::placeholder {
  color: var(--text-disabled);
  font-weight: 300;
}

.auth-submit {
  width: 100%;
  max-width: 280px;
  background: var(--text-display);
  border: none;
  border-radius: 999px;
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: var(--space-sm) var(--space-lg);
  margin-top: var(--space-lg);
  min-height: 44px;
  cursor: pointer;
  transition: opacity 150ms var(--ease);
  text-transform: uppercase;
}

.auth-submit:hover {
  opacity: 0.9;
}

.auth-error {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: var(--space-md);
  min-height: 16px;
}

/* ─── HEADER ─── */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-md) 0;
  padding-top: max(var(--space-md), env(safe-area-inset-top));
}

.header-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.header-action {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--space-sm);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 150ms var(--ease);
}

.header-action:hover { color: var(--text-primary); }

/* ─── OFFLINE BAR ─── */

.offline-bar {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-disabled);
  text-align: center;
  padding: var(--space-xs) 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

/* ─── LIST TOGGLE ─── */

.list-toggle {
  display: flex;
  margin: var(--space-md);
  border: 1px solid var(--border-visible);
  border-radius: 999px;
  overflow: hidden;
}

.toggle-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  transition: background 150ms var(--ease), color 150ms var(--ease);
  min-height: 44px;
}

.toggle-btn:not(.active):hover {
  color: var(--text-primary);
}

.toggle-btn.active {
  background: var(--text-display);
  color: var(--black);
}

/* ─── INPUT AREA ─── */

.input-area {
  padding: 0 var(--space-md);
  margin-bottom: var(--space-sm);
}

.add-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-visible);
  border-radius: 4px;
  color: var(--text-display);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  padding: var(--space-sm) var(--space-md);
  outline: none;
  transition: border-color 150ms var(--ease);
  min-height: 48px;
}

.add-input:focus {
  border-color: var(--text-secondary);
}

.add-input::placeholder {
  color: var(--text-disabled);
}

/* Loading bar — segmented Nothing style */
.loading-bar {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-sm) 0;
  height: 12px;
  align-items: center;
}

.loading-bar span {
  flex: 1;
  height: 3px;
  background: var(--border-visible);
  animation: load-pulse 1s var(--ease) infinite;
}

.loading-bar span:nth-child(1) { animation-delay: 0ms; }
.loading-bar span:nth-child(2) { animation-delay: 100ms; }
.loading-bar span:nth-child(3) { animation-delay: 200ms; }
.loading-bar span:nth-child(4) { animation-delay: 300ms; }
.loading-bar span:nth-child(5) { animation-delay: 400ms; }

@keyframes load-pulse {
  0%, 100% { background: var(--border-visible); }
  50% { background: var(--text-secondary); }
}

/* ─── SORT CONTROL ─── */

.sort-control {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
}

.sort-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-disabled);
  margin-right: var(--space-xs);
}

.sort-btn {
  background: none;
  border: none;
  color: var(--text-disabled);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: var(--space-xs) var(--space-sm);
  min-height: 44px;
  transition: color 150ms var(--ease);
}

.sort-btn.active {
  color: var(--text-display);
}

.sort-btn:hover {
  color: var(--text-secondary);
}

/* ─── ITEMS LIST ─── */

.items-list {
  padding: 0 var(--space-md);
}

/* Section header (department/tag grouping) */
.section-header {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
  padding: var(--space-lg) 0 var(--space-sm);
  position: sticky;
  top: 0;
  background: var(--black);
  z-index: 10;
}

/* Item row */
.item-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border);
  min-height: 32px;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.item-row.item-new {
  background: var(--surface);
  animation: highlight-fade 1.2s var(--ease) forwards;
}

@keyframes highlight-fade {
  0% { background: var(--surface-raised); }
  100% { background: transparent; }
}

.item-row.checked {
  opacity: 0.4;
}

.item-row.checked .item-label {
  text-decoration: line-through;
  text-decoration-color: var(--text-disabled);
}

/* Checkbox — mechanical square style */
.item-check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1.5px solid var(--border-visible);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 120ms var(--ease), background 120ms var(--ease);
  padding: 0;
  /* Expand touch target */
  position: relative;
}

.item-check:hover {
  border-color: var(--text-secondary);
}

.item-check::before {
  content: '';
  position: absolute;
  inset: -12px;
}

.item-check.is-checked {
  border-color: var(--text-secondary);
  background: var(--text-secondary);
}

.item-check.is-checked::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--black);
  display: block;
}

/* Thumbnail */
.item-thumb {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 2px;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--border);
}

.item-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-disabled);
}

/* Item content */
.item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.item-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-url-label {
  color: var(--interactive);
  cursor: pointer;
}

.item-meta {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

/* Tag chip */
.item-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border: 1px solid var(--border-visible);
  border-radius: 999px;
  padding: var(--space-2xs) var(--space-sm);
  white-space: nowrap;
  text-transform: uppercase;
}

/* Price */
.item-price {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  white-space: nowrap;
  margin-left: auto;
}

/* Three-dot menu */
.item-menu {
  background: none;
  border: none;
  color: var(--text-disabled);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 150ms var(--ease);
  letter-spacing: 2px;
}

.item-menu:hover {
  color: var(--text-secondary);
}

/* ─── CHECKED TOGGLE ─── */

.checked-toggle {
  display: block;
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  color: var(--text-disabled);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: var(--space-md);
  text-align: center;
  min-height: 44px;
  margin-top: var(--space-md);
  transition: color 150ms var(--ease);
  text-transform: uppercase;
}

.checked-toggle:hover {
  color: var(--text-secondary);
}

.checked-items {
  opacity: 0.5;
  padding-bottom: var(--space-2xl);
}

/* ─── ITEM ACTIONS ─── */

.item-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border-visible);
  display: flex;
  gap: 0;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}

.action-btn {
  flex: 1;
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: var(--space-md);
  min-height: 48px;
  transition: background 120ms var(--ease);
}

.action-btn:last-child { border-right: none; }

.action-btn:active {
  background: var(--surface-raised);
}

.action-btn.destructive {
  color: var(--accent);
}

/* ─── SETTINGS PANEL ─── */

.settings-panel {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 200;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(100%);
  transition: transform 250ms var(--ease);
  visibility: hidden;
}

.settings-panel.visible {
  transform: translateY(0);
  visibility: visible;
}

.settings-inner {
  padding: var(--space-xl) var(--space-md);
  padding-top: max(var(--space-xl), env(safe-area-inset-top));
  padding-bottom: max(var(--space-2xl), env(safe-area-inset-bottom));
  max-width: 480px;
  margin: 0 auto;
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.settings-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.settings-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 150ms var(--ease);
}

.settings-close:hover {
  color: var(--text-display);
}

.settings-section {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.settings-section:last-child {
  border-bottom: none;
}

.settings-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-disabled);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}

.settings-select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-visible);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: var(--space-sm) var(--space-md);
  padding-right: var(--space-xl);
  outline: none;
  min-height: 44px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  transition: border-color 150ms var(--ease);
}

.settings-select:focus {
  border-color: var(--text-secondary);
}

.settings-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-visible);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: var(--space-sm) 0;
  outline: none;
  margin-bottom: var(--space-sm);
}

.settings-input:focus {
  border-color: var(--text-primary);
}

.settings-btn {
  background: transparent;
  border: 1px solid var(--border-visible);
  border-radius: 999px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: var(--space-sm) var(--space-lg);
  min-height: 44px;
  transition: background 150ms var(--ease), border-color 150ms var(--ease);
  text-transform: uppercase;
}

.settings-btn:hover {
  border-color: var(--text-secondary);
}

.settings-btn:active {
  background: var(--surface-raised);
}

.settings-btn.destructive {
  border-color: var(--accent);
  color: var(--accent);
}

/* Department reorder */
.dept-order {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.dept-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  cursor: grab;
  min-height: 44px;
  touch-action: none;
  transition: border-color 120ms var(--ease);
}

.dept-item:active {
  cursor: grabbing;
  border-color: var(--text-secondary);
}

.dept-handle {
  color: var(--text-disabled);
  font-size: 14px;
  line-height: 1;
}

.dept-item.dragging {
  opacity: 0.5;
  border-color: var(--text-secondary);
}

/* ─── INSTALL BANNER ─── */

.install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-md);
  padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  z-index: 30;
}

.install-dismiss {
  background: none;
  border: none;
  color: var(--text-disabled);
  font-size: 18px;
  cursor: pointer;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 150ms var(--ease);
}

.install-dismiss:hover {
  color: var(--text-secondary);
}

/* ─── EMPTY STATE ─── */

.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.empty-state-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-disabled);
  text-transform: uppercase;
}

/* ─── INLINE STATUS ─── */

.inline-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-disabled);
  padding: var(--space-xs) 0;
}

.inline-status.error {
  color: var(--accent);
}

/* ─── TAG EDIT INLINE ─── */

.tag-edit-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text-secondary);
  color: var(--text-display);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: var(--space-2xs) 0;
  outline: none;
  width: 120px;
}

/* ─── COMPARE ─── */

.compare-toggle {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border-visible);
  border-radius: 999px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: var(--space-xs) var(--space-sm);
  cursor: pointer;
  min-height: 28px;
  transition: border-color 150ms var(--ease), color 150ms var(--ease), background 150ms var(--ease);
}

.compare-toggle:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.compare-toggle.active {
  background: var(--text-display);
  border-color: var(--text-display);
  color: var(--black);
}

.item-row.compare-selected {
  background: var(--surface);
  border-left: 2px solid var(--text-display);
  padding-left: var(--space-sm);
}

.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border-visible);
  padding: var(--space-sm) var(--space-md);
  padding-bottom: max(var(--space-sm), env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: 40;
}

.compare-bar span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.compare-view-btn {
  background: var(--text-display);
  border: none;
  border-radius: 999px;
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  margin-left: auto;
}

.compare-view-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.compare-cancel {
  background: none;
  border: none;
  color: var(--text-disabled);
  font-size: 18px;
  cursor: pointer;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-panel {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 200;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(100%);
  transition: transform 250ms var(--ease);
  visibility: hidden;
}

.compare-panel.visible {
  transform: translateY(0);
  visibility: visible;
}

.compare-inner {
  padding: var(--space-xl) var(--space-md);
  padding-top: max(var(--space-xl), env(safe-area-inset-top));
  padding-bottom: max(var(--space-2xl), env(safe-area-inset-bottom));
  max-width: 600px;
  margin: 0 auto;
}

.compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.compare-grid {
  display: grid;
  gap: var(--space-md);
}

.compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.compare-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md);
}

.compare-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.compare-card-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compare-card-price {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-display);
  letter-spacing: -0.01em;
}

.compare-card-price.no-price {
  font-size: 11px;
  color: var(--text-disabled);
}

.compare-card-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-disabled);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-xs);
}

.compare-card-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--interactive);
  text-decoration: none;
}

.compare-card-remove {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: var(--space-xs) 0;
}

/* ─── PULL TO REFRESH ─── */

.pull-indicator {
  position: fixed;
  top: env(safe-area-inset-top, 0);
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-disabled);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
}

/* ─── RESPONSIVE ─── */

@media (min-width: 480px) {
  .items-list,
  .input-area,
  .sort-control,
  .list-toggle {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .header {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ─── REDUCED MOTION ─── */

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