/* Shared interaction layout, using AC's theme and seasonal accent variables. */
html{background:var(--bg,#0a0a0c)}
.topbar-label [aria-label="AC | System"]{display:inline-flex;align-items:center;vertical-align:middle}
.topbar-label [aria-label="AC | System"]>span{overflow:visible;flex:none}
@view-transition{navigation:auto}
@media(prefers-reduced-motion:no-preference){
 ::view-transition-group(root),::view-transition-old(root){animation:none;mix-blend-mode:normal}
 ::view-transition-new(root){animation:ac-document-in .2s ease-out both;mix-blend-mode:normal}
 @keyframes ac-document-in{from{opacity:0}to{opacity:1}}
 .home-module,.filter-card{transition:border-color .18s,background-color .18s,box-shadow .18s}
 .home-module:hover,.filter-card:hover{box-shadow:0 0 0 1px var(--accent-border)}
}
html[data-ac-booting] .landing-inner{visibility:hidden}
.ac-click-ring{position:fixed;z-index:2300;pointer-events:none;width:12px;height:12px;margin:-6px;border:1px solid var(--accent-ink,#7bcbff);border-radius:50%}
.preview{border:0;padding:0;background:transparent;display:grid;gap:10px;align-content:start;justify-items:stretch}
.preview-title{margin:0 0 6px;font-size:16px;color:var(--text);font-weight:600}
.preview-message{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:11px;row-gap:4px;align-items:start;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--card);min-width:0}
.preview-avatar{grid-column:1;grid-row:1/3;width:36px;height:36px;border-radius:50%;object-fit:cover}
.preview-message>.preview-bot{grid-column:2;grid-row:1;display:flex;flex-wrap:wrap;align-items:center;gap:4px;min-width:0;margin:0;font-size:13px;line-height:1.4}
.preview-bot strong{font-weight:600;overflow-wrap:anywhere}.preview-time{color:var(--muted);font-size:10px;white-space:nowrap}
.preview-message>.preview-body{grid-column:2;grid-row:2;display:grid;gap:12px;min-width:0;width:100%;justify-items:start}
.preview-empty{margin:0;padding:0;color:var(--muted);font-size:12px}
.preview .emb{border:1px solid var(--line);border-left-width:4px;border-radius:6px;max-width:100%;min-width:0;width:100%}
.discord-inline-emoji{width:20px;height:20px;object-fit:contain;vertical-align:-4px;display:inline-block}
.toolbar.save-toolbar{position:static;display:flex;gap:12px;flex-wrap:wrap;padding:16px 0;margin-top:18px;border:0;border-top:1px solid var(--line);background:transparent}
.site-select-menu[popover]{position:fixed;inset:auto;margin:0;padding:10px;border:1px solid var(--line-2);border-radius:10px;background:var(--card);color:var(--text);box-shadow:0 12px 40px #0005;max-width:calc(100vw - 24px)}
.site-select-menu[popover]::backdrop{background:transparent}
.site-select-open{overflow:visible!important}
.role-picker-list{overscroll-behavior:contain;scrollbar-gutter:stable;scroll-behavior:auto}
.role-picker-option,.role-picker-trigger{transition:background-color .15s,border-color .15s,color .15s!important;transform:none!important;translate:none!important;scale:1!important}
.picker-option-box{display:grid;place-items:center;flex:none;width:17px;height:17px;border:1px solid var(--line-2);border-radius:5px;background:var(--field)}
.picker-option-box::after{content:"";width:7px;height:4px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-1px) rotate(-45deg);visibility:hidden}
[aria-selected="true"]>.picker-option-box::after{visibility:visible}
[aria-selected="true"]>.picker-option-box{background:var(--accent);border-color:var(--accent-border);color:var(--accent-on)}
.picker-selection-count{padding:8px 10px 2px;margin-top:7px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}
.related-section-actions{display:flex;flex-wrap:wrap;gap:12px}
@media(max-width:1000px){.split{grid-template-columns:minmax(0,1fr)}.split>.preview{position:static;max-height:none;width:100%}}
@media(max-width:640px){.preview-message{padding:12px;column-gap:9px}.toolbar.save-toolbar{gap:10px}.toolbar.save-toolbar .primary{margin-left:0}.page-body{min-width:0}.site-select-menu[popover]{min-width:0}}
@media(prefers-reduced-motion:reduce){
 @view-transition{navigation:none}
 ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
 .ac-click-ring{display:none}
}

/* Sunset animated contours behind the original AC entrance. */
#login{background:#111113}
#login>.ac-topo-field{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;background:#111113}
#login.ac-topo-ready>.landing-pattern{opacity:0}
#login>.landing-emblems{z-index:1}
#login>.landing-inner{z-index:2}

/* Liquid Glass: clear optical edges and separate, readable content planes.
   Material treatment adapted from the two supplied LiquidGlass components. */
:root[data-theme="glass"]{
 --background:#1d1d1d;--bg:#1d1d1d;--side:rgba(36,36,36,.58);
 --surface:rgba(51,51,51,.48);--surface-secondary:rgba(34,34,34,.73);
 --card:rgba(65,65,65,.30);--card-2:rgba(142,142,142,.10);--field:rgba(24,24,24,.65);
 --border:rgba(238,238,238,.20);--line:rgba(238,238,238,.20);--line-2:rgba(246,246,246,.34);
 --border-strong:rgba(246,246,246,.38);--text:#f8f8f8;--soft:#f2f2f2;--text-muted:#cdcdcd;--muted:#cdcdcd;
 --glass-edge:rgba(244,244,244,.30);--glass-divider:rgba(239,239,239,.14);
 --glass-highlight:inset 0 1px 0 #ffffff66,inset 1px 0 0 #ffffff28,inset 0 -1px 0 #13131355;
 --glass-face:linear-gradient(145deg,#f1f1f117,#e3e3e305 45%,#17171712),var(--card);
 --hover-surface:rgba(224,224,224,.13);--shadow:#0d0d0d55;
}
:root[data-theme="glass"] #shell{
 background:radial-gradient(ellipse at 12% 0%,#bfbfbf30,transparent 48%),radial-gradient(ellipse at 90% 90%,#9c9c9c24,transparent 45%),linear-gradient(145deg,#353535,#222222 54%,#2b2b2b);
}
:root[data-theme="glass"][data-season]:not([data-season="standard"]) #shell{
 background:radial-gradient(ellipse at 10% 0%,color-mix(in srgb,var(--season-primary) 18%,transparent),transparent 52%),linear-gradient(145deg,#353535,color-mix(in srgb,var(--season-deep) 20%,#222222) 65%,#2b2b2b);
}
:root[data-theme="glass"] #shell>.shell-pattern path{stroke:#dedede;opacity:.16}
:root[data-theme="glass"] #shell>aside,:root[data-theme="glass"] .topbar{
 background:linear-gradient(135deg,#ebebeb1a,#ebebeb03 48%,#0f0f0f17),rgba(38,38,38,.57);
 border:1px solid var(--glass-edge);border-radius:24px;
 box-shadow:var(--glass-highlight),inset 0 0 12px #f5f5f509,0 12px 36px #10101040;
 -webkit-backdrop-filter:blur(22px) saturate(1.25);backdrop-filter:blur(22px) saturate(1.25);
}
:root[data-theme="glass"] :is(.card,fieldset,details.fset,.tablewrap,.data-panel,.home-module,.filter-card,.module-search,.log-route-group,.preview-message){
 background:var(--glass-face);border-color:var(--glass-edge);border-radius:20px;
 box-shadow:var(--glass-highlight),inset 0 0 8px #efefef08,0 8px 26px #11111130;
 -webkit-backdrop-filter:blur(12px) saturate(1.18);backdrop-filter:blur(12px) saturate(1.18);
}
:root[data-theme="glass"] :is(.home-module,.filter-card):hover{background:linear-gradient(135deg,#f4f4f425,#e8e8e808),rgba(76,76,76,.34);border-color:#f1f1f180;box-shadow:var(--glass-highlight),0 12px 34px #1010103d}
:root[data-theme="glass"] .home-hero{background:linear-gradient(135deg,#e8e8e814,transparent 65%),rgba(42,42,42,.42);border-color:var(--glass-edge);box-shadow:var(--glass-highlight),0 12px 32px #11111138;-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2)}
:root[data-theme="glass"] .home-strip{background:linear-gradient(135deg,#f2f2f20f,transparent),rgba(45,45,45,.58);border-color:var(--glass-edge);box-shadow:var(--glass-highlight),0 8px 24px #11111125}
:root[data-theme="glass"] :is(.mod-card,.mod-stat){background:var(--glass-face);border-color:var(--glass-edge);border-radius:20px;box-shadow:var(--glass-highlight),0 8px 26px #11111130;-webkit-backdrop-filter:blur(12px) saturate(1.18);backdrop-filter:blur(12px) saturate(1.18)}
:root[data-theme="glass"] .mod-picker-menu{background:linear-gradient(135deg,#eeeeee14,transparent 55%),rgba(32,32,32,.95);border-color:var(--glass-edge);box-shadow:var(--glass-highlight),0 12px 30px #11111160;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
:root[data-theme="glass"] :is(.appearance-menu,.visit-dialog,.logout-dialog,.ticket-dialog,.infraction-dialog,.role-picker-menu,.color-palette){
 background:linear-gradient(135deg,#eeeeee14,transparent 55%),rgba(32,32,32,.95);
 border-color:#eeeeee55;box-shadow:var(--glass-highlight),0 22px 60px #0b0b0b80;
 -webkit-backdrop-filter:blur(20px) saturate(1.2);backdrop-filter:blur(20px) saturate(1.2);
}
:root[data-theme="glass"] :is(input,textarea,select,.ctl,.role-picker-trigger){background-color:var(--field);border-color:#ebebeb38;color:var(--text);box-shadow:inset 0 1px 3px #11111126,0 1px 0 #ffffff12}
:root[data-theme="glass"] :is(input,textarea,select,.role-picker-trigger):focus-visible{outline:2px solid var(--accent-ink);outline-offset:2px}
:root[data-theme="glass"] button.primary,:root[data-theme="glass"] a.primary{
 background:linear-gradient(140deg,color-mix(in srgb,var(--accent) 38%,#e5e5e530),color-mix(in srgb,var(--accent) 58%,#2b2b2bb8))!important;
 border:1px solid color-mix(in srgb,var(--accent-border) 55%,#f4f4f4)!important;border-radius:999px;color:var(--accent-on,#fafafa)!important;
 box-shadow:inset 1px 1px 1px #ffffff80,inset -1px -1px 1px #d1d1d145,inset 0 0 10px #ffffff0c,0 4px 14px #0f0f0f3d;
}
:root[data-theme="glass"] :is(button,a.primary):disabled{opacity:.45}
:root[data-theme="glass"] :is(button,a):focus-visible{outline:2px solid #e5e5e5;outline-offset:3px}
:root[data-theme="glass"] .ac-glass-surface{isolation:isolate;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
:root[data-theme="glass"] .ac-glass-relative{position:relative}
:root[data-theme="glass"] .ac-glass-surface::before{
 content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
 -webkit-backdrop-filter:var(--ac-lens,blur(14px)) saturate(1.22);backdrop-filter:var(--ac-lens,blur(14px)) saturate(1.22);
}
:root[data-theme="glass"] .ac-glass-surface::after{
 content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
 background:radial-gradient(160px circle at var(--ac-glow-x,50%) var(--ac-glow-y,0%),#f3f3f31f,transparent 72%),linear-gradient(135deg,#ffffff13,transparent 38%,#e2e2e204 75%,#ffffff0d);
 box-shadow:inset 0 1px 0 #ffffff42,inset 1px 0 0 #ffffff20,inset 0 -1px 0 #14141440;
}
:root[data-theme="glass"] .emb{background:#2d2d2d;border-color:#f0f0f01a}
:root[data-theme="glass"][data-season]:not([data-season="standard"]){
 --background:color-mix(in srgb,var(--season-deep) 18%,#1d1d1d);--bg:var(--background);
 --surface:rgba(51,51,51,.48);--surface-secondary:rgba(34,34,34,.73);
 --card:rgba(65,65,65,.30);--card-2:rgba(142,142,142,.10);--field:rgba(24,24,24,.65);
 --border:rgba(238,238,238,.20);--border-strong:rgba(246,246,246,.38);--hover-surface:rgba(224,224,224,.13);
}
:root[data-theme="glass"][data-season]:not([data-season="standard"]) .topbar{background:linear-gradient(135deg,#ebebeb1a,#ebebeb03 48%,#0f0f0f17),rgba(38,38,38,.57)}
:root[data-theme="glass"][data-season]:not([data-season="standard"]) :is(.appearance-menu,.role-picker-menu,.color-palette){background:linear-gradient(135deg,#eeeeee14,transparent 55%),rgba(32,32,32,.95)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 :root[data-theme="glass"] #shell>aside,:root[data-theme="glass"] .topbar,:root[data-theme="glass"] :is(.card,fieldset,details.fset,.tablewrap,.data-panel,.home-module,.filter-card,.preview-message){background:#323232}
}
@media(prefers-reduced-transparency:reduce){
 :root[data-theme="glass"] :is(aside,.topbar,.card,fieldset,details.fset,.data-panel,.home-module,.filter-card,.appearance-menu){background:#323232;-webkit-backdrop-filter:none;backdrop-filter:none}
 :root[data-theme="glass"] .ac-glass-surface::before{display:none}
}
@media(max-width:700px){
 :root[data-theme="glass"] #shell>aside,:root[data-theme="glass"] .topbar{border-radius:18px}
 :root[data-theme="glass"] :is(.card,fieldset,details.fset,.home-module,.preview-message){border-radius:16px}
}


/* Neutral material over the selected canvas, including seasonal backgrounds. */
:root[data-theme="glass"]{
 --glass-bg-color:#202023;
 --background:color-mix(in srgb,var(--glass-bg-color) 55%,#080809);--bg:var(--background);
 --surface:rgba(22,22,24,.40);--surface-secondary:rgba(18,18,20,.80);
 --card:rgba(26,26,28,.36);--card-2:#ffffff0d;--field:rgba(10,10,12,.72);
 --text:#f5f5f7;--soft:#ededf0;--muted:#c5c5cd;--text-muted:#c5c5cd;
 --accent-background:color-mix(in srgb,var(--accent) 18%,transparent);
 --accent-bright:var(--accent-ink);--interactive:var(--accent);--accent-secondary:var(--accent-ink);
}
:root[data-theme="glass"][data-season]:not([data-season="standard"]){
 --glass-bg-color:var(--season-deep);
 --background:color-mix(in srgb,var(--glass-bg-color) 55%,#080809);--bg:var(--background);
 --surface:rgba(22,22,24,.40);--surface-secondary:rgba(18,18,20,.80);
 --card:rgba(26,26,28,.36);--card-2:#ffffff0d;--field:rgba(10,10,12,.72);
 --accent-background:color-mix(in srgb,var(--accent) 18%,transparent);
}
:root[data-theme="glass"] #shell,:root[data-theme="glass"][data-season]:not([data-season="standard"]) #shell{
 background:linear-gradient(145deg,#00000088,#000000aa),radial-gradient(ellipse at 10% 0%,#ffffff0d,transparent 60%),var(--glass-bg-color);
}
:root[data-theme="glass"] #shell>aside,:root[data-theme="glass"] .topbar,
:root[data-theme="glass"][data-season]:not([data-season="standard"]) .topbar{
 background:linear-gradient(135deg,#ffffff12,#ffffff02 48%,#00000012),rgba(18,18,20,.48);
}
:root[data-theme="glass"] :is(.appearance-menu,.visit-dialog,.logout-dialog,.ticket-dialog,.infraction-dialog,.role-picker-menu,.color-palette,.mod-picker-menu),
:root[data-theme="glass"][data-season]:not([data-season="standard"]) :is(.appearance-menu,.role-picker-menu,.color-palette){
 background:linear-gradient(135deg,#ffffff0d,transparent 55%),rgba(20,20,23,.96);
}
:root[data-theme="glass"] .home-hero{background:linear-gradient(135deg,#ffffff0d,transparent 65%),rgba(20,20,23,.40)}
:root[data-theme="glass"] .home-strip{background:rgba(24,24,27,.52)}
:root[data-theme="glass"] :is(.home-module,.filter-card):hover{background:linear-gradient(135deg,#ffffff20,#ffffff04),rgba(35,35,38,.40)}
:root[data-theme="glass"] #shell>.shell-pattern path{stroke:#eeeeee}
#glass-background-options .color-row{margin-top:12px}
#glass-background-color{width:44px;min-width:44px;height:38px;padding:3px;cursor:pointer}
#glass-background-hex{min-width:0;width:100%}
#glass-background-options>small{display:block;margin-top:9px;color:var(--text-muted);line-height:1.5}
:root[data-theme="glass"][data-accent="blue"]{--accent:#197fbd;--accent-hover:#2399dd;--accent-border:#37a8ef;--accent-ink:#71c6f8;--accent-on:#fff;}
:root[data-theme="glass"][data-accent="white"]{--accent:#f0f1f3;--accent-hover:#ffffff;--accent-border:#c6c9cf;--accent-ink:#f0f1f3;--accent-on:#16191d;}
:root[data-theme="glass"][data-accent="yellow"]{--accent:#e9bb3d;--accent-hover:#f3ca59;--accent-border:#e9bb3d;--accent-ink:#f3cb68;--accent-on:#201901;}
:root[data-theme="glass"][data-accent="purple"]{--accent:#815bcc;--accent-hover:#946fe0;--accent-border:#926ee5;--accent-ink:#b49af0;--accent-on:#fff;}
:root[data-theme="glass"][data-accent="green"]{--accent:#27865c;--accent-hover:#339f70;--accent-border:#45b886;--accent-ink:#73d5a8;--accent-on:#fff;}
:root[data-theme="glass"][data-accent="orange"]{--accent:#d78136;--accent-hover:#e5944a;--accent-border:#e5944a;--accent-ink:#f3ae70;--accent-on:#241303;}
:root[data-theme="glass"][data-accent="red"]{--accent:#bc4b5b;--accent-hover:#d45d6d;--accent-border:#df6875;--accent-ink:#ec91a0;--accent-on:#fff;}
:root[data-theme="glass"][data-accent="custom"]{--accent:var(--custom-accent);--accent-hover:color-mix(in srgb,var(--custom-accent) 78%,white);--accent-border:var(--custom-accent-ink);--accent-ink:var(--custom-accent-ink);--accent-on:var(--custom-accent-on);}
@media(prefers-reduced-transparency:reduce){:root[data-theme="glass"] :is(aside,.topbar,.card,fieldset,details.fset,.data-panel,.home-module,.filter-card,.appearance-menu){background:var(--background)}}
