/*
  SOLE AI — Settings Page CSS
  Design: Dark Intelligence × Clean Form Layout
  Philosophy: データに心を。経営に哲学を。
*/

/* ===== SETTINGS MAIN ===== */
.settings-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--bg-base);
  overflow: hidden;
}

/* ===== TOP BAR ===== */
.settings-topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-base);
  flex-shrink: 0;
}
.settings-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.settings-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-page-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.settings-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.settings-back-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* ===== BODY LAYOUT ===== */
.settings-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* ===== SETTINGS NAV ===== */
.settings-nav {
  width: 240px;
  min-width: 240px;
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.settings-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings-nav-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px 8px;
  font-family: var(--font-display);
}
.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.settings-nav-item svg { flex-shrink: 0; opacity: 0.7; }
.settings-nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.settings-nav-item--active {
  background: var(--bg-active);
  color: var(--text-primary);
}
.settings-nav-item--active svg { opacity: 1; }
.settings-nav-item--soon {
  opacity: 0.6;
}
.settings-nav-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 100px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ===== SETTINGS CONTENT ===== */
.settings-content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 28px 32px;
}

/* ===== SECTION ===== */
.settings-section {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.settings-section--hidden { display: none; }

.settings-section-header {
  margin-bottom: 4px;
}
.settings-section-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.settings-section-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== CARD ===== */
.settings-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.settings-card--danger {
  border-color: rgba(239,68,68,0.2);
}
.settings-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.settings-card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.settings-card-title--danger { color: #f87171; }
.settings-card-badge {
  font-size: 11px;
  font-weight: 600;
  color: rgba(74,222,128,0.8);
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.15);
  padding: 3px 9px;
  border-radius: 100px;
}
.settings-card-badge--gold {
  color: rgba(251,191,36,0.9);
  background: rgba(251,191,36,0.08);
  border-color: rgba(251,191,36,0.2);
}
.settings-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.settings-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ===== FORMS ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group--full {
  grid-column: 1 / -1;
}
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.form-input,
.form-select,
.form-textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 9px 12px;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(255,255,255,0.25);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}
.form-select {
  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='rgba(255,255,255,0.3)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.form-select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}
.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}
.form-textarea--tall { min-height: 120px; }
.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Radio Group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition);
}
.radio-item:hover { color: var(--text-primary); }
.radio-item input[type="radio"] {
  accent-color: var(--text-primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* ===== PROFILE AVATAR ===== */
.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 16px;
}
.profile-avatar-large {
  width: 64px;
  height: 64px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}
.profile-avatar-actions {
  display: flex;
  gap: 8px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-base);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  transition: opacity var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-ghost {
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  border: none;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.btn-danger {
  background: rgba(239,68,68,0.1);
  color: #f87171;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  border: 1px solid rgba(239,68,68,0.2);
  cursor: pointer;
  transition: background var(--transition);
}
.btn-danger:hover { background: rgba(239,68,68,0.18); }

.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ===== AI LEARN BANNER ===== */
.ai-learn-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(74,222,128,0.05);
  border: 1px solid rgba(74,222,128,0.15);
  border-radius: var(--radius-md);
}
.ai-learn-icon {
  color: rgba(74,222,128,0.7);
  flex-shrink: 0;
  margin-top: 2px;
}
.ai-learn-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(74,222,128,0.9);
  margin-bottom: 4px;
}
.ai-learn-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== FINANCIAL INFO NOTE ===== */
.financial-info-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.financial-info-note svg { flex-shrink: 0; margin-top: 1px; }

/* ===== USAGE ===== */
.usage-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.usage-summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.usage-summary-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.usage-summary-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.usage-summary-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.usage-bar {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}
.usage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.7));
  border-radius: 2px;
}
.usage-breakdown {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.usage-breakdown-item { display: flex; flex-direction: column; gap: 6px; }
.usage-breakdown-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.usage-breakdown-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.usage-breakdown-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  flex: 1;
}
.usage-breakdown-pct {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.usage-breakdown-tokens {
  font-size: 11px;
  color: var(--text-muted);
  padding-left: 16px;
}

/* ===== TABLE ===== */
.usage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.usage-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.usage-table td {
  padding: 12px 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.usage-table tr:last-child td { border-bottom: none; }
.usage-table-sub {
  color: var(--text-muted);
  font-size: 11px;
}
.plan-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
}
.plan-badge--staff {
  color: rgba(96,165,250,0.9);
  background: rgba(96,165,250,0.08);
  border: 1px solid rgba(96,165,250,0.15);
}
.plan-badge--manager {
  color: rgba(74,222,128,0.9);
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.15);
}
.plan-badge--executive {
  color: rgba(251,191,36,0.9);
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.15);
}

/* ===== BILLING ===== */
.current-plan-display {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.current-plan-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.current-plan-price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.current-plan-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}
.current-plan-renew {
  font-size: 12px;
  color: var(--text-muted);
}
.current-plan-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.billing-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.billing-plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  position: relative;
  transition: border-color var(--transition);
}
.billing-plan-card--current {
  border-color: rgba(255,255,255,0.2);
  background: var(--bg-elevated);
}
.billing-plan-current-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  color: var(--bg-base);
  background: var(--text-primary);
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.billing-plan-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.billing-plan-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.billing-plan-price span {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}
.billing-plan-tokens {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.billing-plan-level {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-top: 4px;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.payment-method-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
}
.payment-method-info { flex: 1; }
.payment-method-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.payment-method-exp {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== CLOUD BROWSER ===== */
.browser-feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.browser-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Toggle Switch */
.toggle-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.toggle-track {
  width: 40px;
  height: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  position: relative;
  transition: background var(--transition), border-color var(--transition);
}
.toggle-track--on {
  background: rgba(74,222,128,0.2);
  border-color: rgba(74,222,128,0.3);
}
.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}
.toggle-thumb--on {
  transform: translateX(18px);
  background: #4ade80;
}
.toggle-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Toggle Row */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row-info { flex: 1; }
.toggle-row-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.toggle-row-desc {
  font-size: 12px;
  color: var(--text-muted);
}
.toggle-mini {
  width: 36px;
  height: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}
.toggle-mini::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}
.toggle-mini--on {
  background: rgba(74,222,128,0.2);
  border-color: rgba(74,222,128,0.3);
}
.toggle-mini--on::after {
  transform: translateX(16px);
  background: #4ade80;
}

/* ===== COMING SOON ===== */
.coming-soon-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.coming-soon-icon {
  color: var(--text-muted);
  opacity: 0.5;
}
.coming-soon-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}
.coming-soon-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 400px;
}

/* ===== MISC ===== */
.settings-text-muted {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== GENERAL: Theme Selector ===== */
.theme-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  color: var(--text-muted);
}
.theme-option:hover {
  border-color: rgba(201,169,110,0.4);
  transform: translateY(-2px);
}
.theme-option--active {
  border-color: #c9a96e;
  color: var(--text-primary);
}
.theme-preview {
  width: 80px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.theme-preview--light { background: #f5f3ef; }
.theme-preview--dark  { background: #111111; }
.theme-preview--system {
  display: flex;
  flex-direction: row;
}
.theme-preview-half { flex: 1; height: 100%; }
.theme-preview-half--light { background: #f5f3ef; }
.theme-preview-half--dark  { background: #111111; }
.theme-preview-bar {
  height: 10px;
  background: rgba(128,128,128,0.3);
}
.theme-preview--dark .theme-preview-bar {
  background: rgba(255,255,255,0.1);
}
.theme-preview-content {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.theme-preview-line {
  height: 4px;
  border-radius: 2px;
  background: rgba(0,0,0,0.2);
}
.theme-preview--dark .theme-preview-line {
  background: rgba(255,255,255,0.2);
}
.theme-preview-line--short { width: 60%; }
.theme-label {
  font-size: 0.78rem;
  font-family: var(--font-sans);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .settings-nav {
    width: 200px;
    min-width: 200px;
  }
  .settings-content {
    padding: 20px 20px;
  }
  .usage-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
  .billing-plans-grid {
    grid-template-columns: 1fr;
  }
  .current-plan-display {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .settings-nav { display: none; }
  .settings-content {
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .settings-body {
    flex-direction: column;
    overflow: visible;
    height: calc(100vh - var(--topbar-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .settings-topbar { padding: 0 12px; }
  .settings-topbar-left { gap: 8px; }
  .settings-page-title { font-size: 14px; }
  .settings-back-btn { font-size: 12px; padding: 5px 8px; }
  .settings-section-title { font-size: 18px; }
  .settings-card { padding: 16px; }
  .settings-card-title { font-size: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .usage-summary-grid { grid-template-columns: 1fr; }
  .billing-plans-grid { grid-template-columns: 1fr; }
  .current-plan-display { flex-direction: column; gap: 12px; }
  .profile-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .profile-avatar-area { flex-direction: row; gap: 12px; align-items: center; }
  .theme-options { grid-template-columns: 1fr 1fr; }
  .settings-card-footer { flex-direction: column; gap: 8px; }
  .settings-card-footer .btn-primary,
  .settings-card-footer .btn-ghost { width: 100%; justify-content: center; }
}

/* ---- Sidebar Legal Links ---- */
.sidebar-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px 4px;
}
.sidebar-legal-link {
  font-size: 10px;
  color: rgba(255,255,255,0.2);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.03em;
}
.sidebar-legal-link:hover { color: rgba(255,255,255,0.5); }
.sidebar-legal-sep {
  font-size: 10px;
  color: rgba(255,255,255,0.15);
}

/* ---- Mobile Section Select ---- */
.settings-mobile-select-wrap {
  display: none;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.settings-mobile-select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4l4 4 4-4' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
@media (max-width: 640px) {
  .settings-mobile-select-wrap { display: block; }
}

/* ---- Mobile Section Select ----*/
.settings-mobile-select-wrap {
  display: none;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.settings-mobile-select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
@media (max-width: 640px) {
  .settings-mobile-select-wrap { display: block; }
}

/* ===== LIGHT THEME OVERRIDE (settings) ===== */
html.theme-light {
  --bg-base:        #F5F5F3;
  --bg-surface:     #FFFFFF;
  --bg-elevated:    #EFEFED;
  --bg-hover:       #E8E8E6;
  --bg-active:      #E0E0DE;
  --border:         rgba(0,0,0,0.08);
  --border-light:   rgba(0,0,0,0.14);
  --text-primary:   #111111;
  --text-secondary: rgba(0,0,0,0.55);
  --text-muted:     rgba(0,0,0,0.35);
  --accent:         #111111;
  --accent-dim:     rgba(0,0,0,0.06);
}
html.theme-light .settings-nav { background: #FFFFFF; }
html.theme-light .settings-content { background: #F5F5F3; }
html.theme-light .settings-card { background: #FFFFFF; border-color: rgba(0,0,0,0.08); }
html.theme-light .form-input,
html.theme-light .form-select,
html.theme-light .form-textarea { background: #EFEFED; border-color: rgba(0,0,0,0.12); color: #111; }
html.theme-light .form-input:focus,
html.theme-light .form-select:focus,
html.theme-light .form-textarea:focus { border-color: rgba(0,0,0,0.4); }
html.theme-light .btn-primary { background: #111; color: #fff; }
html.theme-light .btn-primary:hover { background: #333; }
html.theme-light .btn-ghost { border-color: rgba(0,0,0,0.15); color: #111; }
html.theme-light .btn-ghost:hover { background: rgba(0,0,0,0.05); }
