/* =============================================
   UNO RAMEN - Safe Menu Finder
   Mobile-First CSS
   ============================================= */

:root {
  --color-primary: #C0392B;
  --color-primary-dark: #96281B;
  --color-primary-light: #E8D5D3;
  --color-accent: #E67E22;
  --color-bg: #FAFAF8;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F5F3F0;
  --color-text: #2C2C2C;
  --color-text-sub: #6B6B6B;
  --color-text-light: #9B9B9B;
  --color-border: #E5E0DA;
  --color-success: #27AE60;
  --color-warning: #F39C12;
  --color-danger: #E74C3C;
  --color-safe: #2ECC71;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  --font-main: 'Noto Sans JP', 'Noto Sans', sans-serif;
  --transition: 0.2s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- App Shell ---- */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--color-bg);
}

/* ---- Header ---- */
.app-header {
  background: var(--color-primary);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.app-header .back-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}
.app-header .back-btn:hover { background: rgba(255,255,255,0.3); }
.app-header .header-title {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.app-header .header-sub {
  font-size: 11px;
  opacity: 0.85;
  font-weight: 400;
}
.app-header .logo-area {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ---- Progress Bar ---- */
.progress-bar-wrap {
  background: rgba(255,255,255,0.2);
  height: 4px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 8px;
}
.progress-bar-fill {
  height: 100%;
  background: white;
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* ---- Step Indicator ---- */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px 4px;
}
.step-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  transition: all var(--transition);
}
.step-dot.active {
  background: var(--color-primary);
  width: 24px;
}
.step-dot.done {
  background: var(--color-success);
}

/* ---- Screen (Pages) ---- */
.screen {
  display: none;
  flex: 1;
  flex-direction: column;
  animation: fadeIn 0.25s ease;
}
.screen.active { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Hero / Intro Section ---- */
.hero {
  background: #C0392B;
  color: white;
  padding: 36px 24px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-logo-wrap {
  position: relative;
  display: block;
  margin: 0 auto 16px;
  width: 120px;
  max-width: 45vw;
}
.hero-logo-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-sizing: border-box;
  background: rgba(255,255,255,0.96);
  padding: 8px 10px 6px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}
/* 左右に飾り線 */
.hero-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
  opacity: 0.6;
}
.hero-divider::before,
.hero-divider::after {
  content: '';
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.7);
}
.hero h1 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hero p {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.7;
}

/* ---- Section ---- */
.section {
  padding: 20px;
}
.section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-sub);
  margin-bottom: 12px;
}

/* ---- Store Cards ---- */
.store-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}
.store-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.store-card:hover, .store-card:active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.store-card .store-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.store-card .store-info { flex: 1; }
.store-card .store-name-ja {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}
.store-card .store-name-en {
  font-size: 12px;
  color: var(--color-text-sub);
  margin-bottom: 4px;
}
.store-card .store-badge {
  display: inline-block;
  font-size: 11px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.store-card .store-arrow {
  color: var(--color-text-light);
  font-size: 18px;
}

/* ---- Restriction Grid ---- */
.restriction-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}
.restriction-section:last-child { border-bottom: none; }
.restriction-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-sub);
  margin-bottom: 10px;
}
.restriction-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.restriction-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: all var(--transition);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.restriction-chip .chip-icon { font-size: 16px; }
.restriction-chip .chip-label { white-space: nowrap; }
.restriction-chip:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.restriction-chip.selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: white;
}
.restriction-chip.selected .chip-check {
  display: inline;
}
.chip-check { display: none; }

/* ---- Selected Summary Bar ---- */
.selected-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  bottom: 0;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  z-index: 50;
}
.selected-count-badge {
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.selected-bar-text {
  font-size: 13px;
  color: var(--color-text-sub);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(192,57,43,0.35);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.btn-primary:disabled {
  background: var(--color-border);
  color: var(--color-text-light);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-secondary:hover { background: var(--color-primary-light); }
.btn-ghost {
  background: transparent;
  color: var(--color-text-sub);
  padding: 10px 16px;
  font-size: 14px;
}
.btn-ghost:hover { color: var(--color-text); }
.btn-full { width: 100%; }
.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

/* ---- Menu Cards ---- */
.menu-results-header {
  padding: 16px 20px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-results-count {
  font-size: 14px;
  color: var(--color-text-sub);
}
.menu-results-count span {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}
.menu-cards {
  padding: 0 16px 80px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.menu-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition);
}
.menu-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
  transform: translateY(-1px);
}
.menu-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.menu-card-name {
  flex: 1;
}
.menu-card-name-ja {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}
.menu-card-name-en {
  font-size: 12px;
  color: var(--color-text-sub);
  margin-top: 2px;
}
.menu-card-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
}
.menu-card-category {
  display: inline-block;
  font-size: 11px;
  background: var(--color-surface-alt);
  color: var(--color-text-sub);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}
.menu-card-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.label-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.label-tag.vegan { background: #E8F5E9; color: #2E7D32; }
.label-tag.oriental_vegan { background: #E3F2FD; color: #1565C0; }
.label-tag.jain { background: #FFF8E1; color: #F57F17; }
.label-tag.no_five_pungent { background: #F3E5F5; color: #6A1B9A; }
.label-tag.soy_free { background: #E0F2F1; color: #00695C; }
.label-tag.gluten_free { background: #FBE9E7; color: #BF360C; }
.label-tag.safe { background: #E8F5E9; color: #2E7D32; }

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--color-text-sub);
}
.empty-state .empty-icon { font-size: 56px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--color-text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; line-height: 1.7; }

/* ---- Menu Detail ---- */
.detail-hero {
  background: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%);
  color: white;
  padding: 24px 20px 20px;
}
.detail-category {
  font-size: 11px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.detail-name-ja {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 4px;
}
.detail-name-en {
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 12px;
}
.detail-price {
  font-size: 20px;
  font-weight: 700;
  color: #F39C12;
}
.detail-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  margin-top: 8px;
}

.detail-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}
.detail-section:last-child { border-bottom: none; }
.detail-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-sub);
  margin-bottom: 12px;
}

/* Ingredient Indicator */
.ingredient-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ingredient-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
}
.ingredient-row.contains {
  background: #FFF5F5;
  border: 1px solid #FFCDD2;
}
.ingredient-row.not-contains {
  background: #F9F9F9;
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
}
.ingredient-row .ing-icon { font-size: 18px; }
.ingredient-row .ing-name { flex: 1; }
.ingredient-row .ing-status {
  font-size: 12px;
  font-weight: 700;
}
.ingredient-row.contains .ing-status { color: var(--color-danger); }
.ingredient-row.not-contains .ing-status { color: var(--color-text-light); }

/* ---- Safety Notice ---- */
.safety-notice {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #5D4037;
  line-height: 1.5;
}
.safety-notice .notice-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }

/* ---- Active Restrictions Banner ---- */
.active-restrictions-banner {
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 20px;
}
.restrictions-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.restrictions-scroll::-webkit-scrollbar { display: none; }
.restriction-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-primary);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- Filter / Search Bar ---- */
.filter-bar {
  padding: 12px 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.filter-bar input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition);
}
.filter-bar input:focus { border-color: var(--color-primary); }
.filter-select {
  padding: 10px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  cursor: pointer;
}

/* ---- Admin Page ---- */
.admin-header {
  background: #2C2C2C;
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-tabs {
  display: flex;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-sub);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  flex-shrink: 0;
}
.admin-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.admin-content { padding: 16px 20px; }

/* Admin Table */
.admin-table-wrap { overflow-x: auto; margin-top: 12px; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  background: var(--color-surface-alt);
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  color: var(--color-text-sub);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .active-badge {
  background: #E8F5E9;
  color: #2E7D32;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}
.admin-table .inactive-badge {
  background: var(--color-surface-alt);
  color: var(--color-text-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
}

/* Admin Form */
.admin-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 700; color: var(--color-text-sub); }
.form-input, .form-select, .form-textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  outline: none;
  transition: border-color var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
}
.form-textarea { resize: vertical; min-height: 80px; }

/* Checkbox row */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 13px;
  transition: all var(--transition);
}
.checkbox-item input[type=checkbox] { accent-color: var(--color-primary); }
.checkbox-item.checked {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.checkbox-item.checked-danger {
  border-color: var(--color-danger);
  background: #FFF5F5;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: overlayIn 0.2s ease;
}
.modal-overlay.hidden { display: none; }
@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  background: var(--color-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 20px 40px;
  animation: modalUp 0.25s ease;
}
@keyframes modalUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-close {
  background: var(--color-surface-alt);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-sub);
}

/* Loading Spinner */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  gap: 16px;
  color: var(--color-text-sub);
  font-size: 14px;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: calc(100% - 40px);
  max-width: 440px;
}
.toast {
  background: #2C2C2C;
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  text-align: center;
}
.toast.success { background: var(--color-success); }
.toast.error { background: var(--color-danger); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.px-20 { padding-left: 20px; padding-right: 20px; }
.py-12 { padding-top: 12px; padding-bottom: 12px; }
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.w-full { width: 100%; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-sub { color: var(--color-text-sub); }
.text-danger { color: var(--color-danger); }
.text-success { color: var(--color-success); }

/* ---- Select All / Clear Buttons ---- */
.chip-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

/* ---- Category Filter Tabs ---- */
.category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 20px 12px;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-sub);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}
.category-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* Admin attribute grid */
.attr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.attr-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 13px;
  user-select: none;
  transition: all var(--transition);
  background: var(--color-surface);
}
.attr-item:hover { border-color: var(--color-primary); }
.attr-item.marked {
  background: #FFF5F5;
  border-color: var(--color-danger);
  color: var(--color-danger);
}
.attr-item.marked-green {
  background: #E8F5E9;
  border-color: var(--color-success);
  color: var(--color-success);
}
.attr-item input[type=checkbox] { accent-color: var(--color-primary); }

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: 0 20px;
}

/* ---- Bottom Nav for Admin ---- */
.bottom-safe-area {
  height: env(safe-area-inset-bottom, 16px);
}

/* Responsive tweaks for larger screens */
@media (min-width: 480px) {
  #app {
    box-shadow: 0 0 60px rgba(0,0,0,0.12);
    min-height: 100vh;
  }
  body {
    background: #EDEBE8;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
  }
}
