/* Gannita v119 — Settings page */
#main > div:has(#sf), #main > div:has(.set-hero) { max-width: 820px; margin-left: auto; margin-right: auto; }
.card:has(#sf) { background: transparent; border: 0; box-shadow: none; padding: 0; }
.card:has(#sf) > form { display: flex; flex-direction: column; gap: 16px; }
.set-anchor { display: none; }

.set-hero { display: flex; align-items: center; gap: 16px; padding: 20px 20px; margin-bottom: 14px; border-radius: 24px; color: #fff;
  background: radial-gradient(420px 220px at 100% -10%, rgba(10,132,255,.5), transparent 62%), radial-gradient(360px 240px at -5% 120%, rgba(15,76,154,.55), transparent 60%), linear-gradient(135deg, #0b1a2c 0%, #102845 62%, #123a6b 100%);
  box-shadow: 0 26px 50px -28px rgba(11,26,44,.85); }
.set-hero-logo { width: 64px; height: 64px; border-radius: 18px; background: #fff; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); }
.set-hero-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.set-hero-logo span { font-family: var(--serif); font-size: 28px; font-weight: 600; color: #0b1a2c; }
.set-hero-k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #8fc4ff; font-weight: 700; }
.set-hero-n { font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-top: 2px; }
.set-hero-g { font-size: 12.5px; color: #a9c3e8; margin-top: 4px; letter-spacing: .03em; }

.set-nav { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 -2px; position: sticky; top: 58px; z-index: 6; scrollbar-width: none; background: linear-gradient(180deg, var(--bg) 70%, transparent); }
.set-nav::-webkit-scrollbar { display: none; }
.set-nav a { flex-shrink: 0; padding: 8px 15px; border-radius: 99px; background: var(--panel); border: 1.5px solid var(--border); color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; }
.set-nav a:active { background: var(--accent-soft); color: var(--accent-2); border-color: var(--accent); }

.set-sec { background: var(--panel); border: 1px solid var(--border); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-sm); scroll-margin-top: 112px; margin-bottom: 16px; }
.card:has(#sf) > form > .set-sec { margin-bottom: 0; }
.set-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.set-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: linear-gradient(135deg, #1a6fe0, #0b1a2c); box-shadow: 0 8px 16px -8px rgba(11,40,90,.7); }
.set-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.set-head h3 { margin: 0; font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.set-head h3::before { display: none; }
.set-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.card.set-sec > form > .field:last-of-type { margin-bottom: 14px; }

.set-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 16px; background: var(--panel-3); }
.set-seg button { border: 0; background: transparent; padding: 11px 6px; border-radius: 12px; font-weight: 700; font-size: 13.5px; color: var(--muted); box-shadow: none; cursor: pointer; }
.set-seg button.on { background: var(--panel); color: var(--text); box-shadow: 0 2px 8px rgba(11,26,44,.12); }

.set-save { position: sticky; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 20px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border: 1px solid var(--border); box-shadow: 0 16px 34px -18px rgba(11,26,44,.55); }
@media (min-width: 900px) and (pointer: fine) { .set-save { bottom: 14px; } .set-nav { top: 70px; } }
.set-save .success { margin: 0; padding: 0; background: none; border: 0; color: var(--good); font-weight: 700; margin-right: auto; }
.set-save .btn { min-width: 130px; }
.set-dirty { display: none; margin-right: auto; font-size: 12.5px; font-weight: 700; color: var(--warn); }
.set-dirty::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-right: 7px; }
.set-save.dirty .set-dirty { display: inline-block; }

@media (min-width: 700px) { .set-body .grid.cols-2 { gap: 16px; } }

html[data-theme="dark"] .set-save { background: rgba(15,27,46,.92); }
html[data-theme="dark"] .set-nav a { background: var(--panel); }
html[data-theme="dark"] .set-seg { background: var(--panel-2); }
html[data-theme="dark"] .set-seg button.on { background: var(--panel-3); color: var(--text); box-shadow: none; }
html[data-theme="dark"] .set-nav { background: linear-gradient(180deg, var(--bg) 70%, transparent); }
.set-body .field { margin-bottom: 18px; }
.set-body .grid { margin-bottom: 0; gap: 0 16px; }
.set-body > .field:last-child, .set-body > .grid:last-child, .set-body > .grid:last-child .field { margin-bottom: 0; }
.set-body > .grid:last-child { margin-bottom: 0; }
.set-body .grid > .field:last-child { margin-bottom: 18px; }
.set-body > .grid:last-child > .field:last-child, .set-body > .field:last-child { margin-bottom: 0; }
@media (min-width: 700px) { .set-body .grid > .field:last-child { margin-bottom: 18px; } }
