* { box-sizing: border-box; }
body { background: radial-gradient(circle at 92% 2%,rgba(23,41,165,.08),transparent 25%),var(--admin-canvas); }
body { margin: 0; min-height: 100vh; }
.topbar { min-height: 72px; background: #081451; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 32px; }
.brand img { width: 125px; display: block; }
.topbar nav { display: flex; gap: 12px; flex-wrap: wrap; }
.topbar nav a { color: white; text-decoration: none; border: 1px solid rgba(255,255,255,.35); border-radius: 9px; padding: 10px 14px; font-weight: 700; }
.settings-shell { width: min(1800px, calc(100% - clamp(32px, 6vw, 100px))); margin: 42px auto; }
.settings-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.eyebrow { margin: 0 0 7px; color: #64718c; font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
h1 { margin: 0 0 10px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; }
.settings-heading p:last-child { margin: 0; color: #64718c; }
.status-badge { padding: 9px 13px; border-radius: 999px; background: #eef2f7; color: #64718c; font-weight: 800; font-size: 13px; }
.status-badge.ready { background: #e8f8f0; color: #087653; }
.settings-card { background: var(--admin-surface); border: 1px solid var(--admin-line); border-radius: var(--admin-radius); overflow: hidden; box-shadow: var(--admin-shadow); }
.settings-card section { padding: 26px; border-bottom: 1px solid #e4e9f0; }
.settings-card h2 { margin: 0 0 18px; font-size: 20px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
label { display: grid; gap: 8px; font-weight: 700; }
label > span:first-child { font-size: 14px; }
input[type="number"] { width: 100%; padding: 13px 14px; border: 1px solid #cfd8e6; border-radius: 10px; font: inherit; color: #081451; }
small { color: #6b7891; line-height: 1.4; font-weight: 400; }
.toggle-line { min-height: 49px; display: flex; align-items: center; gap: 10px; border: 1px solid #cfd8e6; border-radius: 10px; padding: 10px 13px; }
.toggle-line input { width: 20px; height: 20px; }
.settings-message { min-height: 24px; margin: 18px 26px 0; color: #087653; font-weight: 700; }
.settings-message.error { color: #b4232d; }
.settings-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 24px 26px 28px; }
.primary-button, .secondary-button { border-radius: 10px; padding: 12px 18px; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; font-size: 15px; }
.primary-button { background: linear-gradient(115deg, #1729a5, #3549d7); color: white; box-shadow: 0 8px 18px rgba(23,41,165,.16); }
.primary-button:hover { filter: brightness(1.08); }
.primary-button:disabled { opacity: .65; cursor: wait; }
.secondary-button { background: #eef2f7; color: #081451; }
@media (max-width: 700px) {
  .topbar, .settings-heading { align-items: stretch; flex-direction: column; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-actions { flex-direction: column-reverse; }
  .primary-button, .secondary-button { text-align: center; }
}
