.interface-settings{margin-top:12px;position:relative;isolation:isolate}
.theme-collections>.theme-segments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
.interface-settings:before{content:'';position:absolute;right:-12px;bottom:5px;width:230px;height:230px;background:var(--theme-art) center/contain no-repeat;opacity:.07;pointer-events:none;z-index:-1;filter:var(--theme-art-filter,none)}
.interface-setting-row{display:flex;align-items:center;width:100%;min-height:80px;padding:14px 0;gap:12px;background:none;border:0;border-bottom:1px solid var(--line);text-align:left;color:var(--text);border-radius:0}
.interface-setting-row:last-child{border-bottom:0}
.interface-setting-row>svg{width:20px;height:20px;color:var(--muted);flex-shrink:0}
.interface-setting-row>svg:last-child{width:18px;height:18px}
.interface-setting-copy{flex:1;min-width:0;font-size:15px}
.interface-setting-copy>span,.interface-setting-copy>small{display:block}
.interface-setting-copy small{color:var(--muted);font-size:13px;margin-top:4px}
.theme-swatches{display:flex;align-items:center;gap:4px}
.theme-swatches>span{width:13px;height:13px;border-radius:50%;border:1px solid #8884}
.theme-picker{display:flex;flex-direction:column;gap:12px}
.theme-picker p{margin:0}
.theme-segments{display:flex;gap:4px;padding:4px;background:var(--panel);border-radius:13px}
.theme-segments button{flex:1;min-width:0;min-height:44px;padding:8px 4px;background:none;border:0;border-radius:10px;font-size:12px;color:var(--muted)}
.theme-segments button[aria-pressed=true]{background:var(--panel2);color:var(--text)}
.theme-club-filter{display:flex;align-items:center;gap:8px}
.theme-club-filter>.theme-segments{flex:1}
.theme-club-filter select{width:130px;min-width:0;min-height:44px;font-size:13px}
.theme-palette-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.theme-palette-card{display:flex;flex-direction:column;justify-content:space-between;gap:10px;min-height:76px;padding:11px 12px;border:1px solid var(--line);border-radius:13px;background:var(--sample-panel);color:var(--sample-text);text-align:left}
.theme-palette-card[aria-pressed=true]{border:2px solid var(--accent);padding:10px 11px}
.theme-palette-card>span:first-child{display:flex;align-items:center;gap:6px;width:100%;font-size:13px}
.theme-palette-card>span:first-child>span{flex:1;min-width:0}
.theme-palette-card svg{width:16px;height:16px;flex-shrink:0}
.theme-card-crest{width:20px;height:24px;object-fit:contain;flex-shrink:0}
.monochrome-dark{filter:invert(1)}
.brand-theme .shell>.hero:not(.chat-header),.brand-theme .diary-app-bar{background:linear-gradient(90deg,var(--theme-header),var(--theme-headerEnd));color:var(--theme-headerInk);position:relative}
.brand-theme .shell>.hero:not(.chat-header){margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}
.brand-theme .hero .header-refresh{color:var(--theme-headerInk)}
.brand-theme .hero .topline h1{flex:1;min-width:0}
.brand-theme .hero .topline:after,.brand-theme .diary-app-bar:after{content:'';width:44px;height:28px;flex-shrink:0;background:var(--theme-art) center/contain no-repeat}
.brand-theme .hero .topline:after{order:1}.brand-theme .hero .header-refresh{order:2}
.brand-theme .diary-app-bar{display:flex;align-items:center;justify-content:space-between}
.brand-theme .live-session-title:after{content:'';width:32px;height:24px;flex-shrink:0;order:1;background:var(--theme-art) center/contain no-repeat}
.brand-theme .live-session-title>button{order:2}
.brand-theme .shell:before{opacity:.126}.brand-theme .interface-settings:before{opacity:.098}
.brand-theme .theme-preview-art{opacity:.168}
.theme-preview-brand-header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(90deg,var(--theme-header),var(--theme-headerEnd));color:var(--theme-headerInk);margin:-16px -16px 16px;padding:8px 12px;min-height:42px;font-size:14px}
.theme-preview-brand-header img{width:40px;height:26px;object-fit:contain}
:is(body[data-theme-family=tournament_epl],body[data-theme-family=tournament_laliga],body[data-theme-family=sport_ufc]) :is(.diary-app-bar,.hero .topline):after{background:var(--theme-headerInk);-webkit-mask:var(--theme-art) center/contain no-repeat;mask:var(--theme-art) center/contain no-repeat}
:is(body[data-theme-family=tournament_epl],body[data-theme-family=tournament_laliga],body[data-theme-family=sport_ufc]) .theme-preview-brand-header{position:relative}
:is(body[data-theme-family=tournament_epl],body[data-theme-family=tournament_laliga],body[data-theme-family=sport_ufc]) .theme-preview-brand-header img{visibility:hidden}
:is(body[data-theme-family=tournament_epl],body[data-theme-family=tournament_laliga],body[data-theme-family=sport_ufc]) .theme-preview-brand-header:after{content:'';position:absolute;right:12px;top:8px;width:40px;height:26px;background:var(--theme-headerInk);-webkit-mask:var(--theme-art) center/contain no-repeat;mask:var(--theme-art) center/contain no-repeat}
.theme-preview{position:relative;isolation:isolate;overflow:hidden;padding:16px;border-radius:17px;background:var(--panel)}
.theme-preview-art{position:absolute;width:145px;height:145px;right:12px;bottom:12px;object-fit:contain;opacity:.12;z-index:-1;pointer-events:none}
.theme-preview-content{position:relative}
.theme-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;margin-bottom:12px}
.theme-preview-heading small{font-size:12px;color:var(--muted)}
.theme-live-badge{color:var(--theme-danger);border:1px solid currentColor;border-radius:7px;padding:3px 7px;font-size:11px;transform:rotate(-3deg)}
.theme-preview-values{display:flex;align-items:center;margin:12px 0}
.theme-preview-values>span{flex:1;text-align:center}
.theme-preview-values>span+span{border-left:1px solid var(--line)}
.theme-preview-values small{display:block;color:var(--muted);font-size:12px}
.theme-preview-values strong{display:block;font-size:28px;font-weight:300;font-variant-numeric:tabular-nums}
.theme-preview-event{padding:10px 0;border-top:1px solid var(--line)}
.theme-preview-event strong{font-size:14px;font-weight:400;display:block}
.theme-preview-event small{font-size:12px;display:block;margin-top:4px}
.theme-positive{color:var(--theme-positive)}.theme-planned{color:var(--theme-planned)}
.theme-preview-chart{width:100%;height:auto;display:block}.theme-preview-chart text{fill:var(--muted);font-size:10px}
.theme-current-name{font-size:14px}
.sheet.interface-page{height:100dvh;max-height:100dvh;border-radius:0;padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(20px,env(safe-area-inset-bottom))}
.interface-page .grab{display:none}.interface-page>.spaced{margin-bottom:20px}.interface-page>.spaced h2{font-size:25px}
.interface-back{background:none;color:var(--accent);border:0;padding:10px 0 10px 12px}
.interface-choice-list{display:grid;gap:6px}.interface-choice-list button{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;border:1px solid var(--line);background:var(--panel);color:var(--text);padding:12px 14px;border-radius:12px}
.interface-choice-list button[aria-pressed=true]{border-color:var(--accent);color:var(--accent);background:var(--panel2)}
body .shell{position:relative;isolation:isolate}body .shell:before{content:'';position:absolute;right:0;bottom:75px;width:260px;height:260px;background:var(--theme-art) center/contain no-repeat;opacity:.09;pointer-events:none;z-index:-1;filter:var(--theme-art-filter,none)}
.live-set{position:relative;isolation:isolate;overflow:hidden}.live-set:after{content:'';position:absolute;right:8px;bottom:8px;width:145px;height:145px;background:var(--theme-art) center/contain no-repeat;opacity:.06;pointer-events:none;z-index:-1;filter:var(--theme-art-filter,none)}
.native-chart [data-chart-selection]{pointer-events:none}
.profile-block summary{font-size:17px}.profile-block summary small{font-size:12px}
@media(min-width:680px){.sheet.interface-page{max-width:600px;margin:auto}}

body[data-theme-collection=clubs] .interface-setting-row>svg,body[data-theme-collection=clubs] .interface-setting-copy small{color:var(--theme-secondary-text)}
body[data-theme-collection=clubs] .profile-block summary>svg{color:var(--accent)}
body[data-theme-collection=clubs] .secondary:not(.danger){color:var(--theme-secondary-text);border-color:var(--theme-secondary-text)}
body[data-theme-collection=clubs] .nav button.active,body[data-theme-collection=clubs] .theme-segments button[aria-pressed=true]{color:var(--theme-secondary-text);background:var(--panel2)}
body[data-theme-family=club_dortmund] .nav button.active{background:var(--accent);color:var(--accent-text)}

.sheet[data-sheet="interface-choice"]{display:flex;flex-direction:column;overflow:hidden;height:100dvh}
.sheet[data-sheet="interface-choice"]>.interface-choice-list{flex:1;min-height:90px;overflow-y:auto;margin-top:12px;overscroll-behavior:contain;align-content:start}
.interface-layout-preview{flex:none;padding-top:12px;border-top:1px solid var(--line);margin-top:12px}
.interface-layout-preview strong{font-size:14px;font-weight:500}.interface-layout-preview small{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.layout-preview-mini{position:relative;height:260px;margin-top:8px;border-radius:16px;overflow:hidden;background:var(--panel2);contain:paint}
.layout-preview-screen{background:var(--bg);color:var(--text);padding:20px;width:390px;height:720px;overflow:hidden;box-sizing:border-box;text-align:left}
.layout-preview-mini>.layout-preview-screen{position:absolute;left:50%;top:0;transform:translateX(-50%) scale(.361111);transform-origin:top center}
.layout-preview-screen .hero{margin-top:0}.layout-preview-screen .fab{position:absolute;bottom:16px;right:16px}
.layout-preview-expanded{overflow:auto;border-radius:16px;background:var(--bg)}.layout-preview-expanded>.layout-preview-screen{width:100%;min-height:720px;height:auto}
