/* sorn — your settings page: a profile banner, tabs, and one section at a time. */

body.settings-page #silk { opacity: .1; }
.stx { max-width: 1040px; padding-top: 128px; padding-bottom: 120px; display: grid; gap: 18px; align-content: start; }
.st-loading { display: grid; place-items: center; min-height: 40vh; font-size: 22px; color: #52525b; }

/* ---------------------------------------------------------------- profile banner */
.stx-hero { position: relative; overflow: hidden; border-radius: 26px; padding: 0 28px 24px; background: rgba(255, 255, 255, .035); }
.stx-hero[hidden] { display: none; }
.stx-banner { height: 120px; margin: 0 -28px; background:
  radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tint) 55%, transparent), transparent 60%),
  radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, .08), transparent 60%),
  linear-gradient(180deg, rgba(255, 255, 255, .04), transparent); }
.stx-id { display: flex; align-items: flex-end; gap: 18px; margin-top: -46px; }
.stx-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 6px #111113; background: #18181b; }
.stx-name { padding-bottom: 6px; min-width: 0; }
.stx-name h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; line-height: 1.1; color: #fafafa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stx-name p { margin: 4px 0 0; font-size: 14px; color: #a1a1aa; }
.stx-bio { margin: 14px 0 0; max-width: 620px; font-size: 15px; line-height: 1.55; color: #e4e4e7; overflow-wrap: anywhere; }
.stx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.stx-chips > span { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: #e4e4e7; background: rgba(255, 255, 255, .06); }
.stx-chips > span i { font-size: 12px; color: #a1a1aa; }
.stx-chips > span img { width: 18px; height: 18px; }
.stx-chips > span code { font-family: var(--mono); font-size: 12.5px; color: #fafafa; }
.stx-chips > .muted { background: transparent; padding: 0; color: #71717a; }

/* ---------------------------------------------------------------- tabs */
.stx-tabs { position: sticky; top: 84px; z-index: 20; display: flex; gap: 4px; padding: 5px; border-radius: 16px; overflow-x: auto; scrollbar-width: none;
  background: rgba(14, 14, 16, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.stx-tabs::-webkit-scrollbar { display: none; }
.stx-tabs[hidden] { display: none; }
.stx-tabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 11px; font-size: 14px; font-weight: 500; color: #a1a1aa; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.stx-tabs a i { font-size: 12.5px; }
.stx-tabs a:hover { color: #fafafa; background: rgba(255, 255, 255, .05); }
.stx-tabs a.on { color: #09090b; background: #fafafa; font-weight: 600; }

/* ---------------------------------------------------------------- sections */
.st-view { display: grid; gap: 14px; align-content: start; animation: st-in .25s ease; }
@keyframes st-in { from { opacity: 0; transform: translateY(6px); } }
.st-panel { display: grid; gap: 14px; align-content: start; }
.stx-head { padding: 10px 4px 2px; }
.stx-head h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; color: #fafafa; }
.stx-head p { margin: 6px 0 0; max-width: 720px; font-size: 14.5px; line-height: 1.6; color: #a1a1aa; }
.stx-head p code, .st-note code { font-family: var(--mono); font-size: 13px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: #fafafa; }
.stx-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.stx-split > .st-preview { position: sticky; top: 150px; }

.st-card { padding: 6px 22px; border-radius: 20px; background: rgba(255, 255, 255, .035); }
.st-card > h2 { margin: 16px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #71717a; }
.st-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: center; padding: 16px 0; position: relative; }
.stx-split .st-row { grid-template-columns: 1fr; gap: 10px; }
.st-row + .st-row::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: rgba(255, 255, 255, .05); }
.st-row.wide { grid-template-columns: 1fr; gap: 10px; }
.st-row > span:first-child b { display: block; font-size: 14.5px; color: #fafafa; }
.st-row > span:first-child small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.5; color: #a1a1aa; }
.st-row small a { color: #fafafa; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.st-row > .st-toggle { justify-self: end; }
.st-in { width: 100%; min-width: 0; height: 42px; padding: 0 13px; border: 0; border-radius: 12px; font: inherit; font-size: 14px; color: #fafafa; background: rgba(255, 255, 255, .055); outline: 0; transition: background .15s ease, box-shadow .15s ease; }
textarea.st-in { height: auto; padding: 11px 13px; line-height: 1.5; resize: vertical; }
select.st-in { appearance: none; cursor: pointer; }
select.st-in option { background: #111113; }
.st-in:hover { background: rgba(255, 255, 255, .075); }
.st-in:focus { background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 1.5px rgba(250, 250, 250, .35); }
.st-in::placeholder { color: #71717a; }
.st-inline { display: flex; gap: 8px; align-items: center; min-width: 0; }
.st-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 0 16px; }

/* buttons + switches */
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 12px; font: 600 14px/1 inherit; white-space: nowrap; cursor: pointer; color: #fafafa; background: rgba(255, 255, 255, .08); transition: background .15s ease, transform .1s ease; }
.st-btn:hover { background: rgba(255, 255, 255, .13); }
.st-btn:active { transform: scale(.97); }
.st-btn.primary { color: #09090b; background: linear-gradient(180deg, #ffffff, #e4e4e7); }
.st-btn.primary:hover { background: #fff; }
.st-btn.ghost { background: transparent; color: #d4d4d8; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.st-btn.ghost:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.st-btn.danger { color: #fca5a5; background: rgba(248, 113, 113, .12); }
.st-btn.danger:hover { background: rgba(248, 113, 113, .2); }
.st-btn.busy, .st-btn:disabled { opacity: .6; cursor: progress; }
.st-toggle { position: relative; width: 46px; height: 26px; flex: none; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); cursor: pointer; transition: background .2s ease; }
.st-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #a1a1aa; transition: transform .2s cubic-bezier(.2, .8, .2, 1), background .2s ease; }
.st-toggle.on { background: #fafafa; }
.st-toggle.on::after { transform: translateX(20px); background: #09090b; }
.st-icon { width: 38px; height: 38px; flex: none; border: 0; border-radius: 11px; background: transparent; color: #71717a; cursor: pointer; }
.st-icon:hover { background: rgba(248, 113, 113, .12); color: #fca5a5; }

/* colour swatches */
.st-swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st-sw { position: relative; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center; cursor: pointer; background: var(--c, rgba(255, 255, 255, .07)); color: #a1a1aa; font-size: 11px; }
.st-sw.on { box-shadow: 0 0 0 2px #0c0c0e, 0 0 0 4px #fafafa; }
.st-sw.custom { background: var(--c, conic-gradient(#f472b6, #fcd47c, #7fd3a3, #8ab4ff, #c4a7ff, #f472b6)); color: #09090b; }
.st-sw input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* the ,whois preview */
.st-preview { padding: 20px 22px; }
.st-preview.edged { box-shadow: inset 4px 0 0 var(--edge); }
.st-preview-label { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #71717a; }
.st-who { display: flex; gap: 14px; align-items: flex-start; }
.st-who > img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.st-who b { display: block; font-size: 17px; color: #fafafa; }
.st-who small { display: block; font-size: 13px; color: #a1a1aa; }
.st-who p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: #e4e4e7; overflow-wrap: anywhere; }
.st-facts { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; font-size: 13px; color: #d4d4d8; }
.st-facts span { display: inline-flex; align-items: center; gap: 7px; }
.st-facts i { font-size: 12px; color: #a1a1aa; }
.st-facts img { width: 18px; height: 18px; }

/* avatar history */
.st-avatars { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; padding: 10px 0 18px; }
.st-avatars figure { margin: 0; display: grid; gap: 8px; }
.st-avatars img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; background: rgba(255, 255, 255, .05); }
.st-avatars figcaption { font-size: 12.5px; color: #a1a1aa; text-align: center; }
.st-empty { margin: 0; padding: 18px 0; font-size: 14px; color: #71717a; }

/* last.fm */
.st-track { display: flex; gap: 16px; align-items: center; padding: 12px 0 16px; }
.st-track img, .st-track-ph { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #71717a; font-size: 22px; }
.st-track b { display: block; font-size: 17px; color: #fafafa; }
.st-track small { display: block; margin-top: 2px; font-size: 13.5px; color: #a1a1aa; }
.st-track em { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-style: normal; font-size: 12.5px; color: #7fd3a3; }

/* connections */
.st-conns { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; padding: 10px 0 18px; }
.st-conn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.st-conn > i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; color: #fafafa; background: rgba(255, 255, 255, .08); flex: none; }
.st-conn b { display: block; font-size: 14px; color: #fafafa; }
.st-conn small { display: block; font-size: 12.5px; color: #a1a1aa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-conn span { min-width: 0; }
.st-conn em { margin-left: auto; font-style: normal; color: #7fd3a3; font-size: 13px; }

/* shortcuts */
.st-pairs { display: grid; gap: 8px; padding-top: 10px; }
.st-pair { display: grid; grid-template-columns: auto minmax(0, .8fr) auto auto minmax(0, 1.2fr) auto; align-items: center; gap: 8px; }
.st-pfx { font-family: var(--mono); font-size: 14px; color: #71717a; }
.st-pair > i { font-size: 11px; color: #52525b; }

/* notes, toast, logged out */
.st-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 16px; font-size: 14px; line-height: 1.55; color: #d4d4d8; background: rgba(255, 255, 255, .04); }
.st-note i { margin-top: 3px; color: #a1a1aa; }
.st-note.bad i { color: #f0a490; }
.st-toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; color: #fafafa; background: #18181b; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 50px -15px rgba(0, 0, 0, .9); transition: opacity .2s ease, transform .2s ease; }
.st-toast.show { opacity: 1; transform: translate(-50%, 0); }
.st-toast.bad { color: #fca5a5; }
.st-login { display: grid; justify-items: center; gap: 14px; max-width: 460px; margin: 8vh auto 0; padding: 40px 32px; border-radius: 26px; text-align: center; background: rgba(255, 255, 255, .035); }
.st-login img { width: 76px; height: 76px; border-radius: 50%; }
.st-login h1 { margin: 6px 0 0; font-size: 30px; letter-spacing: -.02em; color: #fafafa; }
.st-login p { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: #a1a1aa; }

@media (max-width: 860px) {
  .stx-split { grid-template-columns: 1fr; }
  .stx-split > .st-preview { position: static; order: -1; }
}
@media (max-width: 760px) {
  .stx { padding-top: 104px; }
  .stx-hero { padding: 0 18px 20px; border-radius: 22px; }
  .stx-banner { height: 92px; margin: 0 -18px; }
  .stx-avatar { width: 78px; height: 78px; }
  .stx-id { margin-top: -38px; }
  .stx-name h1 { font-size: 22px; }
  .stx-tabs { top: 78px; }
  .st-row { grid-template-columns: 1fr; gap: 10px; }
  .st-row > .st-toggle { justify-self: start; }
  .st-inline { flex-wrap: wrap; }
  .st-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .st-pair .st-pfx, .st-pair > i { display: none; }
  .st-card { padding: 6px 16px; }
}
