/* Trang Cài đặt — theo 9router profile/page.js (max-w-2xl, gap-6) */
.st-wrap { max-width: 672px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.st-wrap > .card + .card { margin-top: 0; }
.st-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.st-ico { display: grid; place-items: center; width: 36px; height: 36px; padding: 8px; border-radius: 8px; flex: none; }
.st-ico .ms { font-size: 20px; }
.st-ico.lg { width: 48px; height: 48px; }
.st-ico.lg .ms { font-size: 24px; }
.st-ico.green { background: rgba(34, 197, 94, .1); color: #22c55e; }
.st-ico.blue { background: rgba(59, 130, 246, .1); color: #3b82f6; }
.st-ico.orange { background: rgba(249, 115, 22, .1); color: #f97316; }
.st-ico.purple { background: rgba(168, 85, 247, .1); color: #a855f7; }
.st-ico.primary { background: var(--primary-soft); color: var(--primary); }
.st-title { font-size: 18px; line-height: 28px; font-weight: 600; }
.st-title-lg { font-size: 20px; line-height: 28px; font-weight: 600; }
.st-sub { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.st-col { display: flex; flex-direction: column; gap: 16px; }
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.st-row-title { font-size: 16px; line-height: 24px; font-weight: 500; }
.st-row-desc { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.st-sep { border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent); margin: -4px 0; }
.st-select { width: min(340px, 55vw); flex: none; }

.st-local-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.st-theme { display: inline-flex; padding: 4px; border-radius: 8px; background: rgba(255, 255, 255, .05); }
[data-theme="light"] .st-theme { background: rgba(0, 0, 0, .05); }
.st-theme button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px; border-radius: 6px; border: 0;
  background: transparent; color: var(--text-muted); font-size: 14px; font-weight: 500; transition: .15s; }
.st-theme button:hover { color: var(--text); }
.st-theme button.active { background: rgba(255, 255, 255, .1); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
[data-theme="light"] .st-theme button.active { background: #fff; }
.st-local-body { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.st-box { padding: 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); }
.st-mono { font-family: var(--mono); font-size: 14px; color: var(--text-muted); word-break: break-all; }
.st-box .st-row-desc { font-size: 12px; margin-top: 4px; }
.st-tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-muted); }
.st-tips li { display: flex; align-items: flex-start; gap: 8px; }
.st-tips .ms { margin-top: 1px; color: var(--text-subtle); }
.st-tips code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

.st-form { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent); }
.st-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.st-field label { font-size: 14px; font-weight: 500; }
.st-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.st-status { font-size: 14px; min-height: 0; }
.st-status:empty { display: none; }
.st-note { font-size: 12px; color: var(--text-muted); font-style: italic; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent); }
.st-actions { display: flex; gap: 8px; }
.st-info { text-align: center; font-size: 14px; color: var(--text-muted); padding: 16px 0; }
.st-info p + p { margin-top: 4px; }
@media (max-width: 640px) {
  .st-grid2 { grid-template-columns: 1fr; }
  .st-theme { width: 100%; }
  .st-theme button { flex: 1; font-size: 12px; padding: 6px 8px; }
  .st-row { align-items: flex-start; }
  .st-row-title { font-size: 14px; }
  .st-row-desc { font-size: 12px; }
  .st-submit { width: 100%; }
  .st-select { width: 100%; }
  .st-row:has(.st-select) { flex-direction: column; align-items: stretch; }
}
