.settings-page { --st-radius: 10px; --st-input: color-mix(in srgb, var(--pf-bg) 70%, #000); }
.settings-page [hidden] { display: none !important; }
.settings-page .account-main { width: min(720px, 100%); padding-top: 28px; font-family: var(--pf-font); }
.settings-page .status { color: var(--pf-muted); }

.settings-page .settings-title { margin: 0 0 4px; font: 700 26px/1.2 var(--pf-font); color: var(--pf-fg); }
.settings-page .settings-sub { margin: 0 0 20px; font-size: 14px; color: var(--pf-muted); }
.settings-page .settings-sub a { color: var(--pf-accent); text-decoration: none; }
.settings-page .settings-sub a:hover { text-decoration: underline; }

.settings-page .me-tabs { display: inline-flex; gap: 4px; width: fit-content; margin: 0 0 18px; padding: 4px; background: var(--pf-card); border: 1px solid var(--pf-edge); border-radius: calc(var(--st-radius) + 2px); box-shadow: none; overflow: visible; }
.settings-page .me-tabs .tab { padding: 8px 16px; border: 0; border-radius: 8px; box-shadow: none; background: none; color: var(--pf-muted); font: 600 14px var(--pf-font); }
.settings-page .me-tabs .tab:hover { color: var(--pf-fg); }
.settings-page .me-tabs .tab[aria-selected="true"] { background: color-mix(in srgb, var(--pf-accent) 16%, transparent); color: var(--pf-fg); }

.settings-page .panel { padding: 24px; background: var(--pf-card); border: 1px solid var(--pf-edge); border-radius: var(--st-radius); box-shadow: none; }
.settings-page #connect { padding: 48px 24px; }
.settings-page .panel-title { font: 700 22px/1.2 var(--pf-font); color: var(--pf-fg); }
.settings-page .panel-sub, .settings-page .fine { color: var(--pf-muted); }

.settings-page .me-head { gap: 16px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--pf-edge); box-shadow: none; }
.settings-page .me-head .avatar { width: 64px; height: 64px; border-radius: 50%; box-shadow: none; }
.settings-page .me-who h2 { font: 700 20px/1.2 var(--pf-font); color: var(--pf-fg); }
.settings-page .me-who small { color: var(--pf-muted); }

.settings-page .settings-group { margin: 4px 0 -2px; font: 600 15px var(--pf-font); letter-spacing: 0; text-transform: none; color: var(--pf-fg); }
.settings-page .settings-group:not(:first-child) { margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--pf-edge); box-shadow: none; }
.settings-page .field-label, .settings-page .ctl { font: 500 13px var(--pf-font); letter-spacing: 0; text-transform: none; color: var(--pf-text); }
.settings-page .field-label small, .settings-page .field-hint { color: var(--pf-muted); }

.settings-page .input, .settings-page .field textarea, .settings-page .ctl select, .settings-page .cp-hex { background: var(--st-input); border: 1px solid var(--pf-edge); border-radius: 8px; box-shadow: none; color: var(--pf-fg); }
.settings-page .input:focus-within, .settings-page .field textarea:focus, .settings-page .ctl select:focus, .settings-page .cp-hex:focus { border-color: var(--pf-accent); outline: none; }
.settings-page .input input, .settings-page .field textarea { color: var(--pf-fg); font-family: var(--pf-font); }
.settings-page .input input::placeholder, .settings-page .field textarea::placeholder { color: var(--pf-muted); opacity: .7; }
.settings-page .input-prefix { color: var(--pf-muted); }
.settings-page .input.locked { border-color: color-mix(in srgb, var(--pf-accent) 45%, var(--pf-edge)); }
.settings-page .verified { border-radius: 6px; background: color-mix(in srgb, var(--pf-accent) 16%, transparent); color: var(--pf-accent); }

.settings-page .action { padding: 8px 14px; background: var(--pf-card); border: 1px solid var(--pf-edge); border-radius: 8px; box-shadow: none; color: var(--pf-fg); font: 600 14px var(--pf-font); }
.settings-page .action:hover:not(:disabled) { border-color: var(--pf-accent); color: var(--pf-fg); }
.settings-page .action.primary { background: var(--pf-accent); border-color: var(--pf-accent); color: #000; }
.settings-page .action.primary:hover:not(:disabled) { color: #000; filter: brightness(1.08); }
.settings-page .action.primary:disabled { opacity: .6; color: #000; }
.settings-page .field-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.settings-page .vis { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; background: color-mix(in srgb, var(--pf-accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--pf-accent) 40%, var(--pf-edge)); border-radius: 999px; color: var(--pf-accent); font: 600 12px var(--pf-font); cursor: pointer; }
.settings-page .vis[aria-pressed="true"] { background: var(--st-input); border-color: var(--pf-edge); color: var(--pf-muted); }
.settings-page .vis:hover { border-color: var(--pf-accent); }
.settings-page .vis:focus-visible { outline: 2px solid var(--pf-accent); outline-offset: 2px; }
.settings-page .ctl > span:first-child { align-items: center; }
.settings-page .vis-note { margin: 0; }
.settings-page .me-blocked { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--pf-edge); }
.settings-page .me-blocked .settings-group { margin: 0; padding: 0; border: 0; }
.settings-page .blocked-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.settings-page .blocked-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--st-input); border: 1px solid var(--pf-edge); border-radius: 8px; }
.settings-page .blocked-row img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.settings-page .blocked-row a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--pf-fg); text-decoration: none; font-weight: 600; }
.settings-page .me-danger { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, #f87171 40%, var(--pf-edge)); }
.settings-page .me-danger .settings-group { margin: 0; padding: 0; border: 0; color: #f87171; }
.settings-page .danger-form { display: flex; flex-direction: column; gap: 12px; }
.settings-page .action.danger { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.settings-page .action.danger:hover:not(:disabled) { background: #dc2626; border-color: #dc2626; color: #fff; }
.settings-page .action.danger:disabled { opacity: .45; cursor: not-allowed; }
.settings-page .blocked-row .action { padding: 4px 10px; font-size: 13px; }
.settings-page .riot-btn { color: var(--pf-accent); }
.settings-page .discord-btn { border-radius: 8px; border: 1px solid var(--pf-edge); background: var(--pf-card); box-shadow: none; color: var(--pf-fg); font-family: var(--pf-font); }
.settings-page .discord-btn.big { background: #5865f2; border-color: #5865f2; color: #fff; }
.settings-page .form-msg { color: var(--pf-muted); }
.settings-page .form-msg a { color: var(--pf-accent); }
.settings-page .form-msg.error { color: #f87171; }

.settings-page .styler-controls { padding: 20px; }
.settings-page .styler-preview { border-radius: var(--st-radius); border: 1px solid var(--pf-edge); box-shadow: none; }
.settings-page .styler-form fieldset { border-bottom: 1px solid var(--pf-edge); box-shadow: none; }
.settings-page .styler-form legend { font: 600 15px var(--pf-font); letter-spacing: 0; text-transform: none; color: var(--pf-fg); }
.settings-page .styler-save { background: var(--pf-card); }
.settings-page .ctl output { color: var(--pf-fg); }
.settings-page .ctl input[type=range], .settings-page .ctl-check input { accent-color: var(--pf-accent); }
.settings-page .ctl-thumb { border-radius: 6px; border: 1px solid var(--pf-edge); box-shadow: none; background-color: var(--st-input); }
.settings-page .cp { background: var(--st-input); border: 1px solid var(--pf-edge); border-radius: 8px; box-shadow: none; }
.settings-page .cp-head { color: var(--pf-text); }
.settings-page .cp-area, .settings-page .cp-hue { border-radius: 6px; }
.settings-page .cp-swatch, .settings-page .cp-presets button { border-radius: 5px; }
.settings-page .cp-dot { border-radius: 50%; }

@media (max-width: 720px) {
  .settings-page .panel { padding: 18px 14px; }
  .settings-page .me-tabs { width: 100%; }
  .settings-page .me-tabs .tab { flex: 1; }
}


.settings-page .account-main { width: min(1480px, 100%); padding: 32px 28px 64px; }
.settings-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; }
.settings-content { min-width: 0; }
.settings-page .workspace .me-tabs { display: flex; flex-direction: column; position: sticky; top: 24px; width: 100%; margin: 0; padding: 8px; background: transparent; border: 0; border-right: 1px solid var(--pf-edge); border-radius: 0; }
.settings-nav-label { padding: 14px 12px 8px; font-size: 11px; font-weight: 600; color: var(--pf-muted); letter-spacing: .06em; text-transform: uppercase; }
.settings-page .me-tabs .tab { text-align: left; padding: 11px 12px; cursor: pointer; }
.settings-page .me-tabs .tab[aria-current="page"] { background: color-mix(in srgb, var(--pf-accent) 12%, var(--pf-card)); color: var(--pf-fg); }
.settings-page button:focus-visible, .settings-page a:focus-visible { outline: 2px solid var(--pf-accent); outline-offset: 3px; }
.overview-heading, .completion-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.overview-heading { margin: 4px 0 24px; }
.overview-heading h2, .overview-section-title { font-size: 20px; margin: 0 0 8px; color: var(--pf-fg); }
.overview-heading p, .completion p, .overview-card p { color: var(--pf-muted); font-size: 13px; line-height: 1.6; margin: 0; }
.overview-heading .action { white-space: nowrap; text-decoration: none; }
.completion h3 { margin: 0 0 6px; font-size: 15px; }
.completion-heading strong { font-size: 28px; color: var(--pf-fg); }
.completion progress { display: block; width: 100%; height: 7px; margin: 20px 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--pf-edge); accent-color: var(--pf-accent); }
.completion progress::-webkit-progress-bar { background: var(--pf-edge); }
.completion progress::-webkit-progress-value { background: var(--pf-accent); border-radius: 10px; }
.completion progress::-moz-progress-bar { background: var(--pf-accent); }
.setup-tasks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.setup-task { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid transparent; border-radius: 7px; background: var(--st-input); color: var(--pf-text); text-align: left; font: 500 13px var(--pf-font); cursor: pointer; }
.setup-task:hover { border-color: var(--pf-accent); }
.setup-task > span { color: var(--pf-accent); font-size: 18px; }
.setup-task small { margin-left: auto; font-size: 11px; color: var(--pf-muted); white-space: nowrap; }
.overview-section-title { margin-top: 32px; margin-bottom: 16px; }
.overview-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.settings-page .overview-card { text-align: left; cursor: pointer; font-family: var(--pf-font); }
.overview-card:hover { border-color: var(--pf-accent); }
.overview-card > span { color: var(--pf-accent); font-size: 11px; }
.overview-card h3 { color: var(--pf-fg); font-size: 16px; margin: 24px 0 10px; }
.settings-page .styler { grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); }
.settings-page .styler-preview::before { content: "LIVE PREVIEW"; display: block; margin-bottom: 20px; color: var(--pf-muted); font: 600 10px Inter, sans-serif; letter-spacing: .14em; }
.theme-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-preset { padding: 8px; border: 1px solid var(--pf-edge); border-radius: 10px; background: var(--st-input); text-align: left; color: var(--pf-fg); font-family: var(--pf-font); cursor: pointer; }
.theme-preset:hover, .theme-preset[aria-pressed="true"] { border-color: var(--preset-accent); }
.theme-preset[aria-pressed="true"] { box-shadow: 0 0 0 1px var(--preset-accent); }
.preset-art { display: flex; flex-direction: column; gap: 5px; height: 65px; padding: 12px; margin-bottom: 10px; border-radius: 5px; background: var(--preset-bg); }
.preset-art i { height: 5px; width: 70%; border-radius: 4px; background: var(--preset-accent); opacity: .4; }
.preset-art i:first-child { height: 14px; width: 14px; opacity: 1; border-radius: 50%; }
.preset-art i:last-child { width: 45%; }
.theme-preset strong, .theme-preset small { display: block; }
.theme-preset strong { font-size: 13px; }
.theme-preset small { margin: 4px 0; font-size: 10px; color: var(--pf-muted); }
.style-save-state { flex-basis: 100%; color: var(--pf-muted); font-size: 12px; }
.settings-page .styler-save { z-index: 2; padding: 14px 0 4px; border-top: 1px solid var(--pf-edge); background: var(--pf-bg); }
@media (max-width: 1100px) {
  .settings-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 20px; }
  .settings-page .styler { grid-template-columns: minmax(0, 1fr); }
  .settings-page .styler-preview { position: relative; top: 0; max-height: 540px; order: 0; }
  .overview-cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .settings-page .account-main { padding: 20px 14px 40px; }
  .settings-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .settings-page .workspace .me-tabs { position: static; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--pf-edge); padding: 0 0 10px; }
  .settings-page .me-tabs .tab { flex: 0 0 auto; white-space: nowrap; }
  .settings-nav-label { display: none; }
  .overview-heading { align-items: flex-start; flex-direction: column; }
  .setup-tasks { grid-template-columns: 1fr; }
}

.settings-page .styler-controls { padding: 0 0 16px; background: transparent; border: 0; }
.settings-page .styler-form { gap: 0; }
.settings-page .styler-form > fieldset { padding: 0; margin-bottom: 18px; }
.theme-accordion summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 2px; color: var(--pf-fg); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.theme-accordion summary::after { content: "+"; color: var(--pf-muted); }
.theme-accordion[open] summary::after { content: "−"; }
.theme-accordion summary::-webkit-details-marker { display: none; }
.theme-accordion summary:focus-visible { outline: 2px solid var(--pf-accent); outline-offset: 2px; }
.theme-accordion-content { display: flex; flex-direction: column; gap: 18px; padding: 18px; border-radius: 12px; background: var(--pf-card); margin-bottom: 18px; }
.visual-label { display: block; font-size: 12px; font-weight: 500; color: var(--pf-muted); margin-bottom: 8px; }
.option-tiles, .settings-page .theme-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.option-tile { min-width: 0; display: flex; flex-direction: column; gap: 7px; padding: 8px; background: var(--st-input); border: 1px solid transparent; border-radius: 7px; color: var(--pf-text); text-align: left; font: 11px var(--pf-font); cursor: pointer; }
.option-tile:hover { border-color: var(--pf-muted); }
.option-tile[aria-pressed="true"] { border-color: var(--pf-accent); box-shadow: 0 0 0 1px var(--pf-accent); color: var(--pf-fg); }
.option-art { display: grid; place-items: center; width: 100%; height: 46px; color: var(--pf-fg); background: var(--pf-bg); border-radius: 5px; font-size: 18px; font-weight: 600; overflow: hidden; }
.option-art i { width: 60%; height: 24px; border: 1px solid var(--pf-edge); border-radius: 5px; }
.art-radius i { height: 32px; width: 32px; border: 0; border-top: 2px solid var(--pf-muted); border-left: 2px solid var(--pf-muted); border-radius: var(--sample-radius) 0 0; }
.art-border i, .art-borderWidth i { height: 0; width: 34px; border: 0; border-top: 1px solid var(--pf-muted); }
.art-border.art-none i { border: 0; }
.art-border.art-dashed i { border-top-style: dashed; }
.art-border.art-contrast i { border-color: var(--pf-fg); }
.art-border.art-accent i { border-color: var(--pf-accent); }
.art-borderWidth.art-2 i { border-top-width: 2px; }
.art-borderWidth.art-3 i { border-top-width: 3px; }
.art-shadow.art-soft i { box-shadow: 0 6px 8px #0008; }
.art-shadow.art-hard i { box-shadow: 3px 3px 0 var(--pf-fg); }
.art-shadow.art-accent i { box-shadow: 3px 3px 0 var(--pf-accent); }
.art-shadow.art-glow i, .art-hover.art-glow i { box-shadow: 0 0 12px var(--pf-accent); }
.art-hover.art-lift i { transform: translateY(-4px); }
.art-hover.art-press i { transform: scale(.85); }
.art-pattern i, .art-mode i { display: none; }
.art-pattern.art-grid { background-image: linear-gradient(var(--pf-edge) 1px, transparent 1px), linear-gradient(90deg, var(--pf-edge) 1px, transparent 1px); background-size: 14px 14px; }
.art-pattern.art-dots { background-image: radial-gradient(var(--pf-muted) 1px, transparent 1px); background-size: 12px 12px; }
.art-pattern.art-lines { background-image: repeating-linear-gradient(45deg, var(--pf-edge) 0 1px, transparent 1px 8px); }
.art-pattern.art-checker { background-image: conic-gradient(var(--pf-edge) 25%, transparent 0 50%, var(--pf-edge) 0 75%, transparent 0); background-size: 8px 8px; }
.art-pattern.art-gradient { background-image: radial-gradient(at top, var(--pf-accent), transparent 80%); }
.art-pattern.art-aurora { background-image: linear-gradient(135deg, var(--pf-accent), transparent 70%); }
.art-pattern.art-mesh { background-image: radial-gradient(at 10% 10%, var(--pf-accent), transparent 60%), radial-gradient(at 100% 100%, #38bdf8, transparent 70%); }
.art-nameEffect.art-gradient, .art-nameEffect.art-shimmer { color: var(--pf-accent); }
.art-nameEffect.art-glow { text-shadow: 0 0 8px var(--pf-accent); }
.art-nameEffect.art-rainbow { color: #facc15; text-shadow: 4px 0 #38bdf8; }
.art-nameEffect.art-typewriter::after { content: "|"; position: absolute; margin-left: 30px; color: var(--pf-accent); }
.art-mode.art-light { background: #efefeb; }
.art-mode.art-dark { background: #0c0c0e; }
.art-mode.art-auto { background: linear-gradient(90deg, #0c0c0e 50%, #efefeb 50%); }
.art-surface { background: linear-gradient(140deg, #ef899a, #17171c 50%, #22d3ee); }
.art-surface i { width: 85%; height: 35px; background: var(--pf-bg); }
.art-surface.art-frosted i { opacity: .8; backdrop-filter: blur(16px); }
.art-surface.art-glass i { opacity: .45; }
.art-layout i { width: 80%; height: 6px; border: 0; border-radius: 2px; background: var(--pf-muted); box-shadow: 0 10px var(--pf-muted), 0 -10px var(--pf-muted); opacity: .5; }
.art-layout.art-columns i { width: 40%; border-left: 15px solid var(--pf-edge); }
.art-headings { font-size: 10px; }
.art-headings.art-rule { text-decoration: underline; text-underline-offset: 6px; }
.art-headings.art-accent { color: var(--pf-accent); }
.art-headings.art-off { opacity: .25; }
.art-textCase.art-lowercase { text-transform: lowercase; }
.art-textCase.art-uppercase { text-transform: uppercase; }
.custom-color { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; }
.custom-color label { display: flex; align-items: center; gap: 10px; }
.custom-color input { width: 30px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; }
.custom-color small { flex-basis: 100%; color: var(--pf-muted); }
.settings-page .custom-color .action { font-size: 11px; padding: 6px 8px; }
.name-colors { display: flex; flex-direction: column; gap: 10px; }
.name-colors[hidden], .name-colors [hidden] { display: none; }
.name-color { display: flex; align-items: flex-start; gap: 8px; }
.name-color .cp { flex: 1; min-width: 0; }
.settings-page .name-color .action { font-size: 11px; padding: 6px 8px; }
.saved-looks { padding-top: 18px; border-top: 1px solid var(--pf-edge); }
.saved-look-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.saved-look-grid > div { display: flex; flex-direction: column; gap: 8px; }
.settings-page .saved-look-grid .action { font-size: 11px; padding: 12px 5px; }
.settings-page .styler-preview { container-type: inline-size; }
@container (max-width: 520px) { .styler-preview [data-section] { grid-column: 1 / -1; } }
.settings-page .styler-preview::before { content: "LIVE PREVIEW · YOUR PUBLIC PROFILE"; }
.settings-page .styler-save { padding: 14px; border: 1px solid var(--pf-edge); border-radius: 10px; }
@media (max-width: 420px) { .theme-accordion-content { padding: 12px; } }
.settings-page .cp-panel { display: flex; flex-direction: column; gap: 8px; }
.settings-page .cp-swatch { flex: none; padding: 0; border: 1px solid #ffffff30; cursor: pointer; }
.settings-page .cp-swatch[aria-expanded="true"] { outline: 2px solid var(--pf-accent); outline-offset: 2px; }

.settings-page { --st-radius: 0px; --st-input: var(--well); background: var(--void) var(--checker); font-family: var(--body); }
.settings-page .account-main { width: min(1360px, 100%); padding: 22px 20px 56px; }
.settings-page .settings-title { margin: 0; font: 800 24px/1.2 var(--display); color: var(--bright); }
.settings-page .settings-sub { margin: 4px 0 18px; font-size: 14px; color: var(--muted); }
.settings-page .settings-sub a { color: var(--rank); }
.settings-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 22px; }
.settings-page .workspace .me-tabs { padding: 0; background: var(--raised); border: 0; border-radius: 0; box-shadow: var(--frame); top: 16px; }
.settings-page .settings-nav-label { padding: 12px 14px 6px; font: 700 11px var(--body); letter-spacing: .1em; color: var(--faint); }
.settings-page .me-tabs .tab { padding: 10px 14px; border-radius: 0; border-left: 2px solid transparent; color: var(--muted); font: 600 14px var(--body); }
.settings-page .me-tabs .tab:hover { color: var(--bright); background: #191919; }
.settings-page .me-tabs .tab[aria-current="page"] { background: linear-gradient(90deg, color-mix(in srgb, var(--rank) 12%, transparent), transparent); border-left-color: var(--rank); color: var(--bright); }

.settings-page .panel { padding: var(--inset); background: var(--raised); border: 0; border-radius: 0; box-shadow: var(--frame); }
.settings-page .st-head, .settings-page .settings-group, .settings-page .styler-form legend, .settings-page .theme-accordion summary { display: flex; align-items: center; gap: 9px; margin: 0; font: 800 14px/1.1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--bright); }
.settings-page .st-head::before, .settings-page .settings-group::before { content: ""; width: 3px; height: 15px; background: var(--rank); }
.overview-heading { margin: 0 0 10px; }
.settings-page .overview-section-title { margin: 26px 0 10px; }
.completion-heading p { font-size: 14px; color: var(--muted); }
.completion-heading p b { color: var(--bright); }
.completion-heading strong { font: 800 26px/1 var(--display); color: var(--bright); }
.completion progress { height: 6px; margin: 14px 0; border-radius: 0; background: var(--well); box-shadow: 0 0 0 1px #000; }
.completion progress::-webkit-progress-bar { background: var(--well); }
.completion progress::-webkit-progress-value { background: var(--rank); border-radius: 0; }
.setup-tasks { gap: 6px; }
.setup-task { padding: 10px 12px; border: 0; border-radius: 0; background: var(--well); box-shadow: var(--frame); color: var(--text); font: 500 14px var(--body); }
.setup-task:hover { border: 0; color: var(--bright); background: #191919; }
.setup-task > span { width: 18px; color: var(--rank); font-size: 15px; font-weight: 800; }
.setup-task.done > span { color: var(--win); }
.setup-task small { font-size: 12px; color: var(--muted); }
.overview-cards { gap: 10px; }
.settings-page .overview-card { padding: 14px; border-left: 3px solid var(--rank); }
.settings-page .overview-card:hover { background: #191919; }
.overview-card h3 { margin: 0 0 4px; font: 700 15px var(--body); color: var(--bright); }

.settings-page .me-head { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid #000; box-shadow: 0 1px 0 var(--edge-soft); }
.settings-page .me-head .avatar { border-radius: 0; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--edge); }
.settings-page .settings-group:not(:first-child) { margin-top: 10px; padding-top: 18px; border-top: 1px solid #000; box-shadow: inset 0 1px 0 var(--edge-soft); }
.settings-page .field-label, .settings-page .ctl { font: 600 12px var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.settings-page .input, .settings-page .field textarea, .settings-page .ctl select, .settings-page .cp-hex { background: var(--well); border: 1px solid var(--edge); border-radius: 0; box-shadow: 0 0 0 1px #000; }
.settings-page .input:focus-within, .settings-page .field textarea:focus, .settings-page .ctl select:focus { border-color: color-mix(in srgb, var(--rank) 70%, var(--edge)); }
.settings-page .action, .settings-page .discord-btn { padding: 8px 14px; background: linear-gradient(#232323, #191919); border: 0; border-radius: 0; box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px #303030; color: var(--text); font: 700 13px var(--body); text-decoration: none; }
.settings-page .action:hover:not(:disabled) { border: 0; color: var(--rank); }
.settings-page .action.primary { background: var(--rank); box-shadow: inset 0 0 0 1px #000; color: #000; }
.settings-page .action.primary:hover:not(:disabled) { color: #000; filter: brightness(1.1); }
.settings-page .action.danger { background: #b91c1c; box-shadow: inset 0 0 0 1px #000; color: #fff; }
.settings-page .discord-btn.big { background: #5865f2; box-shadow: inset 0 0 0 1px #000; color: #fff; }
.settings-page .vis { border-radius: 0; padding: 2px 8px; font: 700 11px var(--body); text-transform: uppercase; letter-spacing: .06em; }
.settings-page .verified { border-radius: 0; }
.settings-page .cp-area, .settings-page .cp-hue, .settings-page .cp-swatch, .settings-page .cp-presets button { border-radius: 0; }
.settings-page .blocked-row img { border-radius: 0; }

.settings-page .blocked-row, .settings-page .cp, .settings-page .ctl-thumb { border-radius: 0; background: var(--well); }
.settings-page .styler { gap: 22px; }
.settings-page .styler-preview { border-radius: 0; border: 0; box-shadow: var(--frame); }
.settings-page .styler-preview::before { color: var(--faint); font: 700 11px var(--body); letter-spacing: .1em; }
.theme-accordion summary { padding: 12px 0; }
.theme-accordion-content { padding: var(--inset); border-radius: 0; background: var(--raised); box-shadow: var(--frame); }
.settings-page .theme-preset, .option-tile { border-radius: 0; background: var(--well); box-shadow: 0 0 0 1px #000; }
.preset-art, .option-art { border-radius: 0; }
.settings-page .styler-save { border-radius: 0; border: 0; background: var(--raised); box-shadow: var(--frame); }
@media (max-width: 720px) {
  .settings-page .account-main { padding: 16px 12px 40px; }
  .settings-page .workspace .me-tabs { flex-direction: row; box-shadow: var(--frame); padding: 0; }
  .settings-page .me-tabs .tab { border-left: 0; border-bottom: 2px solid transparent; }
  .settings-page .me-tabs .tab[aria-current="page"] { border-bottom-color: var(--rank); }
}

.art-avatarShape i { width: 26px; height: 26px; border: 0; background: var(--pf-muted); opacity: .6; }
.art-avatarShape.art-circle i { border-radius: 50%; }
.art-avatarShape.art-rounded i { border-radius: 7px; }
.art-avatarShape.art-square i { border-radius: 2px; }
.art-bannerSize i { width: 80%; border: 0; border-radius: 2px; background: var(--pf-muted); opacity: .5; }
.art-bannerSize.art-short i { height: 10px; }
.art-bannerSize.art-default i { height: 18px; }
.art-bannerSize.art-tall i { height: 28px; }
.art-headerAlign i { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--pf-muted); opacity: .6; box-shadow: 20px 0 0 -4px var(--pf-muted); }
.art-headerAlign.art-left { place-items: center start; padding-left: 16px; }
.art-headerAlign.art-center i { box-shadow: 0 16px 0 -4px var(--pf-muted); margin-top: -14px; }
.art-socialStyle i { width: 70%; height: 14px; border: 0; border-radius: 2px; background: var(--pf-muted); opacity: .5; }
.art-socialStyle.art-pills i { width: 34%; box-shadow: 34px 0 var(--pf-muted); margin-left: -34px; }
.art-comments i { width: 30%; height: 70%; border: 0; border-radius: 2px; background: var(--pf-muted); opacity: .5; }
.art-comments.art-main i { margin-left: 40%; }
.art-comments.art-sidebar i { margin-right: 40%; }
.art-socialStyle.art-icons i { width: 14px; box-shadow: 20px 0 var(--pf-muted), 40px 0 var(--pf-muted); margin-left: -40px; }

.tracker-form fieldset { display: grid; gap: 12px; }
.tracker-look { display: grid; gap: 12px; padding-top: 4px; }
.tracker-look > .action { justify-self: start; }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.agent-pick { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px 7px; border: 0; border-radius: 3px; background: var(--pf-card, #141414); box-shadow: inset 0 0 0 1px var(--pf-edge, #2b2b2b); color: var(--pf-muted, #9b9b9b); font: 600 11px var(--pf-font, inherit); cursor: pointer; transition: color .2s ease, box-shadow .2s ease; }
.agent-pick img { width: 40px; height: 40px; border-radius: 2px; object-fit: cover; }
.agent-pick span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-pick:hover:not(:disabled) { color: var(--pf-fg, #f4f4f4); }
.agent-pick[aria-pressed="true"] { color: var(--pf-fg, #f4f4f4); box-shadow: inset 0 0 0 2px var(--pf-accent, #f97316); }
.agent-pick:disabled { opacity: .4; cursor: default; }

.art-layout.art-sidebar i { width: 34%; margin-left: 30%; border-left: 0; box-shadow: 0 10px var(--pf-muted), 0 -10px var(--pf-muted), -22px 0 0 4px var(--pf-edge); }
.art-layout.art-centered i { width: 46%; box-shadow: 0 10px var(--pf-muted), 0 -10px var(--pf-muted); }

.setup-form .settings-group small { margin-left: 6px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--pf-muted); }
.setup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.setup-grid .ctl { display: flex; flex-direction: column; gap: 6px; }
.setup-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.setup-game { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border: 1px solid var(--pf-edge); border-radius: 7px; background: var(--st-input); color: var(--pf-text); font: 13px var(--pf-font); text-align: left; cursor: pointer; }
.setup-game img { width: 20px; height: 20px; flex: none; border-radius: 4px; }
.setup-game span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.setup-game:hover { border-color: var(--pf-muted); }
.setup-game[aria-pressed="true"] { border-color: var(--pf-accent); box-shadow: 0 0 0 1px var(--pf-accent); color: var(--pf-fg); }
.setup-list { display: flex; flex-direction: column; gap: 10px; }
.setup-list:empty { display: none; }
.setup-item { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--pf-edge); border-radius: 8px; background: color-mix(in srgb, var(--st-input) 60%, transparent); }
.setup-inline { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; }
.setup-remove { align-self: flex-start; }
.setup-inline .setup-remove { align-self: end; }
.setup-photo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.setup-photo img, .setup-photo > span { width: 56px; height: 56px; border-radius: 6px; object-fit: contain; background: var(--st-input); border: 1px solid var(--pf-edge); }
.setup-photo label[aria-busy="true"] { opacity: .6; pointer-events: none; }
@media (max-width: 640px) {
  .setup-inline { grid-template-columns: minmax(0, 1fr); }
}

.drag-handle { display: grid; place-items: center; flex: none; width: 24px; height: 28px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--pf-muted); cursor: grab; touch-action: none; }
.drag-handle:hover { color: var(--pf-fg); background: color-mix(in srgb, var(--pf-fg) 6%, transparent); }
.drag-handle:active { cursor: grabbing; }
.drag-handle:focus-visible { outline: 1px solid var(--pf-accent); }
.dragging { position: relative; z-index: 2; opacity: .85; box-shadow: 0 10px 24px rgba(0,0,0,.45) !important; border-color: var(--pf-accent) !important; }
.setup-item-head { display: flex; align-items: center; gap: 8px; margin: -4px 0 -2px -6px; }
.setup-item-head b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; color: var(--pf-fg); }
.setup-inline { grid-template-columns: auto minmax(0, 2fr) minmax(0, 1fr) auto; }
.setup-inline .drag-handle { align-self: end; margin-bottom: 6px; }
.styler-save .style-save-state:empty { display: none; }
@media (max-width: 640px) {
  .setup-inline { grid-template-columns: auto minmax(0, 1fr); }
}

.settings-page .settings-layout { gap: 0; background: var(--raised); box-shadow: var(--frame); }
.settings-page .workspace .me-tabs { align-self: stretch; top: 0; padding: 8px 0; background: none; box-shadow: none; border-right: 1px solid #000; }
.settings-page .workspace .me-tabs::after { content: ""; position: absolute; top: 0; right: -2px; bottom: 0; width: 1px; background: var(--edge-soft); }
.settings-page .me-tabs .tab { border-left: 0; }
.settings-page .me-tabs .tab[aria-current="page"] { background: #1c1c1c; color: var(--bright); }
.settings-page .st-head::before, .settings-page .settings-group::before { display: none; }
.settings-page .overview-card { border-left: 0; }
.settings-content { padding: 22px 24px; }
.settings-content > .panel { padding: 0; background: none; box-shadow: none; }

.settings-page .styler { grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); gap: 0; margin: -22px -24px; }
.settings-page .styler-controls { padding: 18px 24px 0; }
.settings-page .styler-preview { top: 0; max-height: 100vh; padding: 22px 22px 80px; box-shadow: none; border-left: 1px solid #000; }
.settings-page .styler-preview::before { content: none; }
.settings-page .styler-form > fieldset { margin: 0; padding: 0 0 18px; border-bottom: 1px solid #000; box-shadow: 0 1px 0 var(--edge-soft); }
.settings-page .styler-form > fieldset + fieldset:not([hidden]) { padding-top: 18px; }
.settings-page .styler-form > fieldset[data-group="style"] { padding: 0; }
.theme-accordion summary { padding: 15px 0; }
.theme-accordion-content { padding: 2px 0 20px; background: none; box-shadow: none; }
.settings-page .styler-save { position: sticky; bottom: 0; margin: 0 -24px; padding: 12px 24px 14px; background: var(--raised); border: 0; box-shadow: 0 -1px 0 #000, 0 -2px 0 var(--edge-soft); }
.settings-content > .panel .styler-save { margin: 18px 0 0; padding: 12px 0 14px; box-shadow: 0 -1px 0 #000, 0 -2px 0 var(--edge-soft); }

.looks legend { display: flex; align-items: baseline; gap: 8px; }
.looks-count, .studio-count { font: 600 12px var(--body); letter-spacing: 0; color: var(--muted); }
.looks-save { display: flex; gap: 8px; }
.looks-save .input { flex: 1; min-width: 0; }
.looks-save .input input { width: 100%; padding: 9px 11px; background: none; border: 0; color: var(--bright); font: 14px var(--body); }
.looks-save .input input:focus { outline: none; }
.looks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.looks-empty { grid-column: 1 / -1; margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.look-card { display: flex; flex-direction: column; background: var(--well); box-shadow: 0 0 0 1px #000, inset 0 0 0 1px var(--edge-soft); transition: box-shadow .2s ease; }
.look-card:hover { box-shadow: 0 0 0 1px #000, inset 0 0 0 1px var(--edge); }
.look-card.current { box-shadow: 0 0 0 1px #000, inset 0 0 0 1px var(--preset-accent); }
.look-apply { display: flex; flex-direction: column; gap: 8px; padding: 8px 8px 6px; border: 0; background: none; color: var(--bright); font: 600 13px var(--body); text-align: left; cursor: pointer; }
.look-apply .preset-art { margin: 0; height: 56px; }
.look-apply strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.look-tools { display: flex; gap: 12px; padding: 0 8px 8px; }
.look-tools .pf-link { padding: 0; border: 0; background: none; color: var(--muted); font: 12px var(--body); cursor: pointer; }
.look-tools .pf-link:hover { color: var(--bright); }

@media (max-width: 1100px) {
  .settings-page .styler { margin: -22px -24px 0; }
  .settings-page .styler-preview { border-left: 0; border-bottom: 1px solid #000; max-height: 540px; }
}
@media (max-width: 720px) {
  .settings-content { padding: 16px 14px; }
  .settings-page .styler { margin: -16px -14px 0; }
  .settings-page .styler-controls { padding: 14px 14px 0; }
  .settings-page .styler-save { margin: 0 -14px; padding: 12px 14px; }
  .settings-page .workspace .me-tabs { border-right: 0; border-bottom: 1px solid #000; padding: 0; }
  .settings-page .workspace .me-tabs::after { content: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.settings-page .styler-form > fieldset[data-pane] { padding: 18px 0 22px; border-bottom: 0; box-shadow: none; }
.settings-page .styler-form > fieldset[data-pane-off] { display: none; }

.settings-page .styler-preview { cursor: pointer; }
.pe-box { position: absolute; z-index: 50; pointer-events: none; outline: 1px solid var(--rank); outline-offset: 2px; transition: top .12s ease, left .12s ease, width .12s ease, height .12s ease; }
.pe-box.whole { outline-style: dashed; outline-offset: -6px; }
.pe-box span { position: absolute; top: -26px; left: -2px; padding: 3px 8px; background: var(--rank); color: #000; font: 700 11px/1.3 var(--body); white-space: nowrap; }
.pe-box.whole span { top: 8px; left: 8px; }
.spot { animation: spot 1.4s ease-out; }
@keyframes spot { 0%, 35% { box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--rank); } 100% { box-shadow: 0 0 0 1px #000, 0 0 0 3px transparent; } }

.setup-item { cursor: grab; }
.setup-item:focus-visible { outline: 1px solid var(--rank); outline-offset: -1px; }
.drag-handle { pointer-events: none; }
.dragging { cursor: grabbing; background: #1c1c1c !important; box-shadow: 0 0 0 1px #000, 0 12px 28px rgba(0,0,0,.55) !important; }
body.is-sorting, body.is-sorting * { cursor: grabbing !important; user-select: none !important; }

@media (prefers-reduced-motion: reduce) {
  .pe-box { transition: none; }
  .spot { animation: none; box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--rank); }
}

/* Phone layouts: keep the desktop settings workspace unchanged. */
@media (max-width: 720px) {
  .settings-page .account-main { padding: 18px 12px 40px; }
  .settings-page .settings-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .settings-page .settings-content, .settings-page .styler-controls,
  .settings-page .me-form, .settings-page .field, .settings-page .ctl,
  .settings-page .styler-form fieldset { min-width: 0; min-inline-size: 0; }
  .settings-page .workspace .me-tabs { width: 100%; min-width: 0; flex-wrap: nowrap; }
  .settings-page .me-tabs .tab { flex: 0 0 auto; min-height: 44px; }
  .settings-page .settings-nav-label { display: none; }
  .settings-page .styler { grid-template-columns: minmax(0, 1fr); }
  .settings-page .styler-preview { position: relative; width: 100%; min-width: 0; padding: 16px 12px 24px; max-height: 420px; overflow: auto; }
  .settings-page .me-head, .settings-page .overview-heading,
  .settings-page .riot-row, .settings-page .me-actions { flex-wrap: wrap; }
  .settings-page .me-who { min-width: 0; flex: 1; overflow-wrap: anywhere; }
  .settings-page .me-logout { flex-basis: 100%; flex-wrap: wrap; }
  .settings-page .riot-row .action { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .settings-page .input { min-width: 0; max-width: 100%; }
  .settings-page .input input, .settings-page textarea, .settings-page select { min-width: 0; max-width: 100%; font-size: 16px; }
  .settings-page .setup-grid { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
  .settings-page .setup-games { grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); }
  .settings-page .setup-item-head { min-width: 0; overflow-wrap: anywhere; }
  .settings-page .styler-save { position: static; flex-wrap: wrap; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .settings-page .option-tiles, .settings-page .theme-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-page .setup-inline { grid-template-columns: minmax(0, 1fr); }
  .settings-page .setup-inline > * { grid-column: 1; }
}

.setup-game img { width: 26px; height: 26px; flex: none; object-fit: contain; border-radius: 4px; }
.setup-game { min-height: 44px; }

.settings-page.studio-open { overflow: hidden; }
.settings-page.studio-open #styler { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: 448px minmax(0, 1fr); gap: 0; margin: 0; background: var(--void); }
#styler .styler-controls { display: grid; grid-template-columns: 148px minmax(0, 1fr); height: 100vh; height: 100dvh; padding: 0; background: #0a0a0a; border: 0; border-radius: 0; box-shadow: 1px 0 0 #000, 2px 0 0 var(--edge-soft); z-index: 2; }

.studio-nav { display: flex; flex-direction: column; gap: 2px; min-height: 0; padding: 14px 8px; overflow-y: auto; background: #060606; border-right: 1px solid var(--edge-soft); }
.studio-exit, .studio-tabs button, .studio-view { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: 600 13px var(--body); text-align: left; text-decoration: none; cursor: pointer; transition: color .15s ease, background .15s ease; }
.studio-exit svg, .studio-tabs svg, .studio-view svg { flex: none; }
.studio-exit:hover, .studio-tabs button:hover, .studio-view:hover { color: var(--bright); background: #111; }
.studio-exit { margin-bottom: 12px; padding-left: 6px; color: var(--faint); }
.studio-tabs { display: flex; flex-direction: column; gap: 2px; }
.studio-tabs button[aria-selected="true"] { background: #171717; color: var(--bright); }
.studio-tabs button[aria-selected="true"] svg { color: var(--rank); }
.studio-view { margin-top: auto; color: var(--faint); }

#styler .styler-form { display: flex; flex-direction: column; gap: 0; min-width: 0; height: 100vh; height: 100dvh; padding: 22px 22px 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #262626 transparent; }
#styler .styler-form > fieldset { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0 0 26px; border: 0; box-shadow: none; }
#styler .styler-form > fieldset[data-pane-off] { display: none; }
#styler .styler-form > fieldset + fieldset:not([data-pane-off]) { padding-top: 0; }
#styler .styler-form legend { display: flex; align-items: baseline; gap: 8px; float: left; width: 100%; margin: 0 0 4px; padding: 0; font: 700 18px/1.2 var(--display); letter-spacing: 0; text-transform: none; color: var(--bright); }
#styler .styler-save { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 12px; margin: auto -22px 0; padding: 12px 22px 14px; background: #0a0a0a; border: 0; border-radius: 0; box-shadow: 0 -1px 0 #000, 0 -2px 0 var(--edge-soft); }
#styler .styler-save .action.primary { margin-left: auto; }
#styler .theme-presets { grid-template-columns: 1fr 1fr; }

.studio-hidden:empty { display: none; }
.studio-hidden-list { display: flex; flex-wrap: wrap; gap: 6px; }
.studio-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 12px; border: 0; border-radius: 4px; background: var(--well); box-shadow: var(--frame); color: var(--muted); font: 600 12px var(--body); cursor: pointer; transition: color .15s ease; }
.studio-chip span { color: var(--faint); font-size: 14px; line-height: 1; }
.studio-chip:hover, .studio-chip:hover span { color: var(--bright); }

#styler .styler-preview { position: relative; top: 0; height: 100vh; height: 100dvh; max-height: none; padding: 40px clamp(20px, 4vw, 56px) 32px; overflow: auto; border: 0; border-radius: 0; box-shadow: none; cursor: default; }
#styler .styler-preview > .pf-page { max-width: 1080px; margin: 0 auto; }
#styler .styler-preview .pf-music { position: sticky; right: auto; bottom: 0; margin: 28px 0 0 auto; pointer-events: none; }

.styler-preview [data-section] { position: relative; cursor: grab; outline: none; transition: opacity .15s ease; }
.styler-preview [data-section]:focus-visible { outline: 1px dashed var(--pf-accent); outline-offset: 6px; }
.pe-hide { position: absolute; top: -2px; right: 0; z-index: 4; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: color-mix(in srgb, var(--pf-card) 92%, #000); box-shadow: 0 0 0 1px var(--pf-edge); color: var(--pf-muted); opacity: 0; cursor: pointer; transition: opacity .15s ease, color .15s ease; }
.styler-preview [data-section]:is(:hover, :focus-within) > .pe-hide { opacity: 1; }
.pe-hide:hover { color: var(--pf-fg); }
.pe-lifted { opacity: .28; }
.pe-lifted > * { pointer-events: none; }
.pe-ghost { position: absolute; top: 0; left: 0; z-index: 60; margin: 0; pointer-events: none; opacity: .94; filter: drop-shadow(0 18px 30px rgba(0,0,0,.55)); }
.styler-preview [data-item] { position: relative; }
.pe-hide-item { top: 6px; right: 6px; width: 22px; height: 22px; }
.styler-preview [data-item]:is(:hover, :focus-within) > .pe-hide-item { opacity: 1; }
.pe-ghost .pe-hide { display: none; }
body.is-arranging, body.is-arranging * { cursor: grabbing !important; user-select: none !important; }
body.is-arranging .pe-box { display: none; }

@media (max-width: 1100px) {
  .settings-page.studio-open #styler { grid-template-columns: 400px minmax(0, 1fr); }
  #styler .styler-controls { grid-template-columns: 56px minmax(0, 1fr); }
  .studio-exit span, .studio-tabs button span, .studio-view span { display: none; }
  .studio-exit, .studio-tabs button, .studio-view { justify-content: center; padding: 10px 0; }
}
@media (max-width: 760px) {
  .settings-page.studio-open #styler { grid-template-columns: minmax(0, 1fr); grid-template-rows: 42vh minmax(0, 1fr); align-items: stretch; }
  #styler .styler-preview { order: -1; height: auto; padding: 16px 12px; border-bottom: 1px solid #000; }
  #styler .styler-controls { height: auto; min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .studio-nav { flex-direction: row; align-items: center; padding: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--edge-soft); }
  .studio-tabs { flex-direction: row; }
  .studio-exit { width: auto; margin: 0 6px 0 0; padding: 10px; }
  .studio-tabs button { width: auto; padding: 10px; }
  .studio-view { width: auto; margin: 0 0 0 auto; padding: 10px; }
  #styler .styler-form { height: auto; min-height: 0; padding: 16px 14px 0; }
  #styler .styler-save { margin: auto -14px 0; padding: 12px 14px max(12px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .pe-hide, .studio-tabs button { transition: none; }
}

.art-rankView i { position: relative; width: 62%; height: 28px; }
.art-rankView i::before, .art-rankView i::after { content: ""; position: absolute; left: 6px; border-radius: 1px; }
.art-rankView i::before { top: 6px; width: 46%; height: 6px; background: var(--pf-fg); opacity: .7; }
.art-rankView i::after { bottom: 6px; width: 28%; height: 4px; background: var(--pf-accent); }
.art-rankView.art-peak i::before { background: var(--pf-accent); opacity: 1; }
.art-rankView:is(.art-peak, .art-current) i::after { display: none; }

.studio-toggles { display: flex; flex-direction: column; gap: 10px; }
.studio-videos { display: flex; flex-direction: column; gap: 8px; }
.studio-videos:empty { display: none; }
.studio-video { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 10px 10px 4px; background: var(--well); box-shadow: var(--frame); border-radius: 3px; cursor: grab; }
.studio-video-fields { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.studio-video .input, .studio-music .input { display: block; }
.studio-video .input input, .studio-music .input input { width: 100%; padding: 8px 10px; background: none; border: 0; color: var(--bright); font: 13px var(--body); }
.studio-video .input input:focus, .studio-music .input input:focus { outline: none; }
.studio-video .action { padding: 6px 10px; }
.studio-music-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; }
.studio-music input[aria-invalid="true"] { color: var(--loss); }

.settings-page .an-sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.settings-page .an-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 18px 0 24px; background: #000; box-shadow: var(--frame); }
.settings-page .an-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--well); }
.settings-page .an-tile small { font: 600 12px var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.settings-page .an-tile b { font: 800 26px/1.1 var(--display); color: var(--bright); }
.settings-page .an-head { margin: 0 0 12px; font: 700 13px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--bright); }
.settings-page .an-chart { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding: 10px; background: var(--well); box-shadow: var(--frame); }
.settings-page .an-chart span { display: flex; align-items: flex-end; flex: 1; height: 100%; }
.settings-page .an-chart i { width: 100%; min-height: 2px; background: var(--rank); opacity: .85; }
.settings-page .an-chart span:hover i { opacity: 1; }
.settings-page .an-axis { display: flex; justify-content: space-between; margin: 6px 0 24px; font-size: 12px; color: var(--faint); }
.settings-page .an-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.settings-page .an-sources, .settings-page .an-visitors { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.settings-page .an-sources li { position: relative; display: flex; justify-content: space-between; padding: 9px 12px; background: var(--well); font-size: 14px; }
.settings-page .an-sources li > * { position: relative; z-index: 1; }
.settings-page .an-sources i { position: absolute; inset: 0 auto 0 0; z-index: 0; background: color-mix(in srgb, var(--rank) 16%, transparent); }
.settings-page .an-visitors li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--well); }
.settings-page .an-visitors a, .settings-page .an-visitors div { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.settings-page .an-visitors img { width: 30px; height: 30px; flex: none; border-radius: 3px; object-fit: cover; }
.settings-page .an-visitors span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.settings-page .an-visitors b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--bright); }
.settings-page .an-visitors small, .settings-page .an-visitors time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.settings-page .an-visitors a:hover b { color: var(--rank); }
@media (max-width: 720px) {
  .settings-page .an-tiles { grid-template-columns: 1fr; }
  .settings-page .an-split { grid-template-columns: minmax(0, 1fr); }
}

.settings-page .invite-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.settings-page .invite-count { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 8px; }
.settings-page .invite-count b { font: 800 28px/1 var(--display); color: var(--bright); }
.settings-page .invite-count span { color: var(--text); }
.settings-page .invite-count small { grid-column: 1 / -1; margin-top: 4px; font-size: 12px; color: var(--muted); }
.settings-page .invite-link { display: flex; flex: 1; gap: 8px; min-width: min(100%, 320px); }
.settings-page .invite-link input { flex: 1; min-width: 0; padding: 9px 12px; background: var(--well); color: var(--bright); border: 1px solid var(--edge); font: 14px var(--body); }
