* { box-sizing: border-box; }

:root {
    color-scheme: dark;
    --white: #f7f8fa;
    --copy: rgba(247, 248, 250, .76);
    --muted: rgba(247, 248, 250, .52);
    --faint: rgba(247, 248, 250, .37);
    --glass: rgba(255, 255, 255, .075);
    --glass-soft: rgba(255, 255, 255, .045);
    --glass-line: rgba(255, 255, 255, .18);
    --glass-highlight: rgba(255, 255, 255, .1);
}

html { min-height: 100%; scroll-behavior: smooth; scrollbar-color: rgba(255,255,255,.34) transparent; scrollbar-width: thin; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--white);
    font-family: "Poppins", sans-serif;
    background-color: #08090b;
    background-image: linear-gradient(rgba(0, 0, 0, .48), rgba(0, 0, 0, .68)), url("../catalogtest1/assets/galaxy-background.jpg");
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid rgba(255,255,255,.75); outline-offset: 3px; }

.glass-surface {
    border: 1px solid var(--glass-line);
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px) saturate(100%);
    backdrop-filter: blur(20px) saturate(100%);
    box-shadow: 0 18px 55px rgba(0,0,0,.2), inset 0 1px var(--glass-highlight);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 68px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: rgba(255,255,255,.055);
}

.topbar-inner {
    width: min(1420px, calc(100% - 44px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand { flex: 0 0 auto; font-size: 23px; font-weight: 800; letter-spacing: -1px; }
.brand span { color: #fff; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--copy); font-size: 12px; transition: color .2s; }
.main-nav a:hover { color: #fff; }
.search { position: relative; display: flex; align-items: center; width: min(330px, 28vw); height: 38px; margin-left: auto; }
.search > i { position: absolute; left: 13px; color: var(--muted); font-size: 12px; pointer-events: none; }
.search input { width: 100%; height: 100%; padding: 0 41px 0 36px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; outline: none; color: #fff; background: rgba(255,255,255,.055); font-size: 11px; }
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.09); }
.search kbd { position: absolute; right: 9px; padding: 2px 6px; border: 1px solid rgba(255,255,255,.17); border-radius: 4px; color: var(--muted); font: 10px "Poppins", sans-serif; }
.icon-button, .top-avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; color: rgba(255,255,255,.88); background: rgba(255,255,255,.06); }
.icon-button { position: relative; cursor: pointer; }
.icon-button:hover, .top-avatar:hover { background: rgba(255,255,255,.14); }
.notification-dot { position: absolute; width: 5px; height: 5px; top: 6px; right: 7px; border-radius: 50%; background: #fff; }
.top-avatar { border-color: rgba(255,255,255,.26); font-size: 13px; }

.page-shell { width: min(1420px, calc(100% - 44px)); margin: 29px auto 54px; display: grid; grid-template-columns: 288px minmax(0, 1fr); align-items: start; gap: 26px; }
.profile-summary { overflow: hidden; border-radius: 15px; }
.summary-top { display: flex; flex-direction: column; align-items: center; padding: 27px 20px 22px; text-align: center; }
.avatar-ring { width: 102px; height: 102px; padding: 5px; margin-bottom: 16px; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,255,255,.045); }
.avatar { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: rgba(255,255,255,.94); background: radial-gradient(circle at 50% 32%, rgba(255,255,255,.22), rgba(255,255,255,.07) 65%); font-size: 36px; }
.summary-link { display: flex; align-items: center; gap: 7px; color: var(--copy); font-size: 9px; }
.summary-link span { color: var(--faint); }
.summary-top h1 { max-width: 100%; overflow: hidden; margin: 13px 0 3px; font-size: 20px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.member-rank { display: inline-flex; align-items: center; gap: 6px; color: var(--copy); font-size: 10px; }
.member-rank i { font-size: 9px; }
.stats-list { display: grid; gap: 9px; padding: 0 24px 21px; margin: 0; }
.stats-list > div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.stats-list dd { margin: 0; color: var(--copy); text-align: right; }
.summary-footer { display: flex; justify-content: space-between; gap: 10px; padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.035); }
.summary-footer a { display: inline-flex; align-items: center; gap: 7px; color: var(--copy); font-size: 10px; }
.summary-footer a:hover { color: #fff; }

.account-area { min-width: 0; }
.account-tabs { display: flex; align-items: stretch; gap: 3px; overflow-x: auto; min-height: 46px; padding: 4px; border-radius: 10px; scrollbar-width: thin; }
.tab { position: relative; min-height: 37px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 auto; padding: 0 12px; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; transition: color .2s, background .2s, border-color .2s; }
.tab i { font-size: 11px; }
.tab:hover { color: #fff; background: rgba(255,255,255,.06); }
.tab.active { border-color: rgba(255,255,255,.17); color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 0 1px rgba(255,255,255,.08); }
.panel-stack { min-height: 620px; margin-top: 10px; padding: 19px 20px 24px; border-radius: 14px; }
.tab-panel[hidden] { display: none; }
.form-row { display: grid; grid-template-columns: minmax(150px, 205px) minmax(0, 1fr); align-items: center; gap: 24px; padding: 0 0 13px; }
.form-row > label, .form-row > span:first-child { color: var(--copy); font-size: 11px; }
.field-wrap { width: min(100%, 548px); min-width: 0; }
.field-wrap input, .field-wrap textarea { display: block; width: 100%; border: 1px solid rgba(255,255,255,.13); border-radius: 7px; outline: none; color: #fff; background: rgba(255,255,255,.055); font-size: 11px; transition: border-color .18s, background .18s; }
.field-wrap input { height: 34px; padding: 0 12px; }
.field-wrap textarea { min-height: 69px; padding: 9px 12px; resize: vertical; line-height: 1.55; }
.field-wrap input:focus, .field-wrap textarea:focus { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.085); }
.field-wrap input::placeholder, .field-wrap textarea::placeholder { color: var(--faint); }
.field-wrap input[readonly] { color: var(--copy); background: rgba(255,255,255,.09); }
.field-note { display: block; margin-top: 4px; color: var(--faint); font-size: 9px; line-height: 1.5; }
.field-help { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 4px; color: var(--faint); font-size: 9px; line-height: 1.5; }
.field-help span:last-child { flex: 0 0 auto; }
.favorites-heading { min-height: 33px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.favorite-chips { min-width: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.favorite-chip { max-width: 170px; overflow: hidden; padding: 4px 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: var(--copy); background: rgba(255,255,255,.07); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.text-button, .inline-link { border: 0; padding: 0; color: rgba(255,255,255,.86); background: transparent; cursor: pointer; font-size: 10px; white-space: nowrap; }
.text-button:hover, .inline-link:hover { text-decoration: underline; }
.text-button span { margin-left: 10px; }
.favorite-picker { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; margin: 5px 0 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(0,0,0,.12); }
.favorite-option { padding: 5px 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: var(--copy); background: rgba(255,255,255,.035); cursor: pointer; font-size: 9px; }
.favorite-option.selected { border-color: rgba(255,255,255,.46); color: #fff; background: rgba(255,255,255,.16); }
.copy-field { display: flex; gap: 8px; align-items: center; }
.copy-field input { min-width: 0; }
.copy-button { min-height: 32px; display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 0 5px; border: 0; color: var(--copy); background: transparent; cursor: pointer; font-size: 10px; }
.copy-button:hover { color: #fff; }
.privacy-copy { color: var(--faint); font-size: 10px; line-height: 1.65; }
.inline-link { font-size: inherit; }
.password-row { padding-bottom: 4px; }
.password-link { display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 2px 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; }
.password-link:hover { color: #fff; }
.form-actions { min-height: 44px; display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding-top: 12px; }
.save-note { color: var(--copy); font-size: 10px; }
.save-button, .neutral-button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid rgba(255,255,255,.26); border-radius: 7px; color: #fff; background: rgba(255,255,255,.16); cursor: pointer; font-size: 10px; font-weight: 600; transition: background .2s, transform .2s; }
.save-button:hover, .neutral-button:hover { transform: translateY(-1px); background: rgba(255,255,255,.24); }

.simple-panel { min-height: 565px; }
.empty-state { min-height: 540px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 17px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.075); font-size: 19px; }
.empty-state h2, .section-heading h2 { margin: 0; color: #fff; font-size: 20px; font-weight: 500; letter-spacing: -.4px; }
.empty-state p { max-width: 390px; margin: 9px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.empty-state .neutral-button { margin-top: 3px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 7px 16px; }
.eyebrow { display: block; margin-bottom: 6px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 1.4px; }
.list-total { padding: 6px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: var(--copy); background: rgba(255,255,255,.06); font-size: 9px; }
.watchlist-items { display: grid; gap: 8px; }
.watchlist-item { min-height: 72px; display: grid; grid-template-columns: 38px minmax(0,1fr) 30px; align-items: center; gap: 12px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: rgba(255,255,255,.045); }
.watchlist-number { color: var(--faint); font-size: 11px; }
.watchlist-item > div { min-width: 0; display: grid; gap: 4px; }
.watchlist-item strong { overflow: hidden; color: var(--copy); font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.watchlist-item span:not(.watchlist-number) { color: var(--faint); font-size: 9px; }
.watchlist-item > i { color: var(--muted); font-size: 11px; text-align: center; }
.preference-list { display: grid; }
.preference-row { position: relative; min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 8px; border-bottom: 1px solid rgba(255,255,255,.1); cursor: pointer; }
.preference-row > span:first-child { display: grid; gap: 4px; }
.preference-row strong { color: var(--copy); font-size: 11px; font-weight: 500; }
.preference-row small { color: var(--faint); font-size: 9px; }
.preference-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch { width: 34px; height: 19px; flex: 0 0 auto; padding: 2px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); transition: background .2s; }
.switch::before { content: ""; display: block; width: 13px; height: 13px; border-radius: 50%; background: rgba(255,255,255,.65); transition: transform .2s, background .2s; }
.preference-row input:checked + .switch { background: rgba(255,255,255,.28); }
.preference-row input:checked + .switch::before { transform: translateX(14px); background: #fff; }
.preference-row input:focus-visible + .switch { outline: 2px solid #fff; outline-offset: 3px; }
.password-details { padding: 19px 8px; color: var(--copy); font-size: 11px; }
.password-details summary { cursor: pointer; }
.password-details p { margin: 9px 0 0; color: var(--muted); font-size: 10px; }
.toast { position: fixed; z-index: 50; right: 24px; bottom: 22px; max-width: calc(100% - 32px); padding: 11px 15px; border: 1px solid var(--glass-line); border-radius: 9px; color: #fff; background: rgba(20,20,20,.76); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 12px 30px rgba(0,0,0,.24); font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
    .topbar-inner, .page-shell { width: min(100% - 32px, 980px); }
    .page-shell { grid-template-columns: 240px minmax(0,1fr); gap: 17px; }
    .topbar-inner { gap: 18px; }
    .main-nav { gap: 15px; }
    .form-row { grid-template-columns: 145px minmax(0,1fr); gap: 16px; }
    .tab { padding: 0 9px; }
}

@media (max-width: 820px) {
    .topbar { height: 62px; }
    .topbar-inner { width: calc(100% - 28px); gap: 12px; }
    .brand { font-size: 20px; }
    .main-nav { display: none; }
    .search { width: auto; max-width: 310px; flex: 1; }
    .page-shell { grid-template-columns: 1fr; width: calc(100% - 28px); margin-top: 18px; }
    .profile-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, .8fr); align-items: center; }
    .summary-top { padding: 17px; }
    .avatar-ring { width: 78px; height: 78px; margin-bottom: 10px; }
    .avatar { font-size: 28px; }
    .summary-top h1 { margin-top: 9px; font-size: 17px; }
    .stats-list { gap: 7px; padding: 15px 19px; }
    .summary-footer { grid-column: 1 / -1; }
    .account-tabs { min-height: 45px; }
    .panel-stack { min-height: 0; }
}

@media (max-width: 560px) {
    body { background-attachment: scroll; }
    .topbar-inner, .page-shell { width: calc(100% - 22px); }
    .topbar-inner { gap: 9px; }
    .brand { font-size: 17px; }
    .search { max-width: none; }
    .search input { padding-right: 12px; }
    .search kbd { display: none; }
    .icon-button, .top-avatar { width: 31px; height: 31px; }
    .page-shell { gap: 12px; margin-top: 12px; }
    .profile-summary { grid-template-columns: 1fr; }
    .summary-top { padding: 17px 15px 12px; }
    .avatar-ring { width: 72px; height: 72px; }
    .stats-list { grid-template-columns: repeat(3, minmax(0,1fr)); padding: 8px 13px 14px; }
    .stats-list > div { align-items: center; flex-direction: column; gap: 2px; font-size: 9px; }
    .stats-list dd { font-size: 9px; }
    .summary-footer { padding: 12px; }
    .summary-footer a { font-size: 9px; }
    .account-tabs { gap: 2px; margin: 0 -1px; }
    .tab { min-height: 35px; gap: 6px; padding: 0 10px; font-size: 9px; }
    .panel-stack { padding: 17px 14px; }
    .form-row { grid-template-columns: 1fr; gap: 6px; padding-bottom: 13px; }
    .form-row > label, .form-row > span:first-child { font-size: 10px; }
    .field-wrap { width: 100%; }
    .password-row { display: none; }
    .form-actions { justify-content: space-between; }
    .save-button { min-height: 35px; }
    .field-help { font-size: 8px; }
    .favorite-chip { max-width: 130px; }
    .copy-field { gap: 4px; }
    .copy-button { padding: 0 2px; }
    .empty-state { min-height: 390px; padding: 22px 10px; }
    .simple-panel { min-height: 410px; }
    .watchlist-item { grid-template-columns: 25px minmax(0,1fr) 22px; gap: 8px; padding: 11px; }
    .watchlist-item strong { font-size: 10px; }
    .preference-row { min-height: 69px; gap: 10px; padding-right: 2px; padding-left: 2px; }
    .preference-row small { max-width: 240px; line-height: 1.5; }
    .toast { right: 11px; bottom: 12px; }
}

/* Profile areas inspired by the reference account dashboard. */
.subtabs { min-height: 37px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 13px; }
.subtab { min-height: 31px; display: inline-flex; align-items: center; gap: 6px; padding: 0 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 7px; color: var(--copy); background: rgba(255,255,255,.025); cursor: pointer; font-size: 10px; transition: border-color .18s, color .18s, background .18s; }
.subtab:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.subtab.active { border-color: rgba(255,255,255,.42); color: #fff; background: rgba(255,255,255,.11); }
.subtab span { color: var(--muted); }
.friend-view[hidden], .transfer-view[hidden], .notification-item[hidden] { display: none; }
.friend-card { max-width: 620px; min-height: 82px; display: flex; align-items: center; gap: 13px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.045); }
.mini-avatar, .notification-symbol { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #fff; background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.2), rgba(255,255,255,.04)); font-size: 17px; }
.friend-info { min-width: 0; display: grid; gap: 2px; flex: 1; }
.friend-info strong { color: var(--white); font-size: 11px; font-weight: 600; }
.friend-info span, .friend-info small { color: var(--muted); font-size: 9px; }
.friend-info span i { margin-right: 4px; font-size: 8px; }
.friend-info small i { margin-right: 4px; color: var(--faint); font-size: 6px; }
.outline-button { min-height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; color: var(--copy); background: rgba(255,255,255,.035); cursor: pointer; font-size: 9px; transition: border-color .18s, color .18s, background .18s; }
.outline-button:hover { border-color: rgba(255,255,255,.48); color: #fff; background: rgba(255,255,255,.1); }
.compact-empty { padding: 22px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 10px; text-align: center; }
.continue-toolbar { min-height: 34px; display: flex; justify-content: flex-end; align-items: flex-start; }
.continue-toolbar .text-button { color: var(--muted); }
.watch-status-tabs { margin-bottom: 12px; }
.watch-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 15px; }
.watch-filters label { min-width: 0; }
.watch-filters input, .watch-filters select, .number-input { width: 100%; height: 34px; padding: 0 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; outline: none; color: var(--copy); background-color: rgba(255,255,255,.055); font-size: 9px; }
.watch-filters select option { color: #f7f8fa; background: #17191d; }
.watch-filters input:focus, .watch-filters select:focus, .number-input:focus { border-color: rgba(255,255,255,.45); }
.filter-button { min-height: 34px; padding: 0 12px; }
.watchlist-item { grid-template-columns: 38px minmax(0, 1fr) auto; }
.watchlist-item .watch-meta { color: var(--faint); font-size: 9px; }
.watch-status { padding: 4px 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: var(--copy); font-size: 8px; white-space: nowrap; }
.status-watching { color: #e2f9e6; border-color: rgba(114,210,135,.34); background: rgba(82,173,103,.1); }
.status-planned { color: #ffe6a0; border-color: rgba(235,195,80,.3); background: rgba(235,195,80,.08); }
.status-watched { color: #d8eaff; border-color: rgba(123,172,232,.3); background: rgba(123,172,232,.08); }
#watchlist-empty { margin-top: 9px; }
.notification-tabs { margin-bottom: 9px; }
.notification-list { overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; }
.notification-item { min-height: 78px; position: relative; display: flex; align-items: center; gap: 13px; padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,.09); cursor: pointer; transition: background .18s; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover, .notification-item.unread { background: rgba(255,255,255,.045); }
.notification-poster { width: 40px; height: 48px; flex: 0 0 auto; display: grid; place-items: end center; padding-bottom: 6px; overflow: hidden; border-radius: 7px; color: rgba(255,255,255,.9); background: linear-gradient(145deg, rgba(255,255,255,.36), rgba(255,255,255,.04)), radial-gradient(circle at 30% 24%, #617c7c, #34364a 54%, #161821); font-size: 10px; }
.poster-uruwashi { background: linear-gradient(145deg, rgba(255,255,255,.38), rgba(255,255,255,.04)), radial-gradient(circle at 30% 24%, #a47f83, #515467 54%, #171820); }
.notification-item > div:nth-child(2) { min-width: 0; display: grid; gap: 3px; flex: 1; }
.notification-item strong { overflow: hidden; color: var(--copy); font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.notification-item p, .notification-item small { margin: 0; color: var(--muted); font-size: 9px; }
.notification-item p { color: rgba(255,255,255,.68); }
.notification-symbol { width: 38px; height: 38px; border-radius: 8px; font-size: 13px; }
.unread-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: rgba(255,255,255,.28); }
.notification-item.unread .unread-dot { background: #fff; box-shadow: 0 0 11px rgba(255,255,255,.5); }
.notification-item.unread:not([data-category="anime"]) { background: rgba(255,255,255,.045); }
.settings-form { padding: 0 7px; }
.settings-group-title { margin: 8px 0 0; padding: 7px 0 3px; color: var(--copy); font-size: 13px; font-weight: 500; }
.setting-row { min-height: 70px; display: grid; grid-template-columns: minmax(210px, .42fr) minmax(0, 1fr); align-items: center; gap: 18px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.09); color: var(--copy); font-size: 10px; }
.setting-row > span, .setting-row > label { display: grid; gap: 4px; }
.setting-row small { color: var(--faint); font-size: 9px; line-height: 1.5; }
.choice-set { display: flex; flex-wrap: wrap; gap: 14px; min-width: 0; padding: 0; margin: 0; border: 0; }
.choice-set label, .transfer-row label { display: inline-flex; align-items: center; gap: 6px; color: var(--copy); cursor: pointer; font-size: 10px; }
.choice-set input, .transfer-row input { margin: 0; accent-color: #fff; }
.settings-form .preference-row { min-height: 63px; padding-right: 0; padding-left: 0; }
.number-input { width: 70px; justify-self: start; color: #fff; }
.settings-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding-top: 13px; }
.settings-actions .field-note { margin: 0 auto 0 0; }
.transfer-help { max-width: 760px; margin: 2px 0 22px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.transfer-form { max-width: 760px; display: grid; gap: 19px; padding: 4px 8px 20px; }
.transfer-row { min-height: 37px; display: flex; align-items: center; gap: 15px; padding: 0; margin: 0; border: 0; color: var(--copy); font-size: 10px; }
.transfer-row > span, .transfer-row legend { width: 190px; flex: 0 0 auto; padding: 0; color: var(--copy); }
.transfer-row > input { min-width: 0; flex: 1; height: 34px; padding: 0 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 6px; color: #fff; background: rgba(255,255,255,.055); font-size: 10px; }
.transfer-row small { flex-basis: 100%; margin-left: 205px; color: var(--faint); font-size: 9px; }
.transfer-form > .save-button { justify-self: center; margin-top: 8px; }
.export-card { min-height: 85px; display: flex; align-items: center; gap: 14px; padding: 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: rgba(255,255,255,.04); }
.export-card > i { color: var(--copy); font-size: 18px; }
.export-card > div { display: grid; gap: 4px; flex: 1; }
.export-card strong { color: var(--copy); font-size: 10px; font-weight: 500; }
.export-card small { color: var(--faint); font-size: 9px; }
.sync-card { max-width: 780px; display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 16px; padding: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.035); }
.sync-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; color: #fff; background: rgba(255,255,255,.08); }
.sync-card h3 { margin: 0; color: var(--white); font-size: 14px; font-weight: 500; }
.sync-card p { max-width: 600px; margin: 7px 0 17px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.sync-field { max-width: 460px; display: grid; gap: 7px; margin-bottom: 12px; color: var(--copy); font-size: 10px; }
.sync-field input { height: 34px; padding: 0 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 6px; color: #fff; background: rgba(255,255,255,.055); font-size: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 820px) {
    .watch-filters { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .setting-row { grid-template-columns: minmax(170px, .35fr) minmax(0,1fr); gap: 12px; }
}
@media (max-width: 560px) {
    .watch-filters { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .filter-search { grid-column: 1 / -1; }
    .watchlist-item { grid-template-columns: 25px minmax(0,1fr); }
    .watch-status { grid-column: 2; justify-self: start; }
    .watchlist-item .watch-meta { line-height: 1.6; }
    .notification-item { gap: 9px; padding: 10px; }
    .setting-row { grid-template-columns: 1fr; gap: 10px; padding: 13px 0; }
    .choice-set { gap: 10px; }
    .transfer-row { align-items: flex-start; flex-wrap: wrap; gap: 9px; }
    .transfer-row > span, .transfer-row legend { width: 100%; }
    .transfer-row > input { flex: 0 0 100%; }
    .transfer-row small { margin-left: 0; }
    .export-card { align-items: flex-start; flex-wrap: wrap; }
    .export-card .save-button { margin-left: 32px; }
    .sync-card { grid-template-columns: 1fr; padding: 16px; }
}
