:root {
  --ae-bg:          #0a0a0a;
  --ae-bg2:         #121212;
  --ae-bg3:         #0f0f17;
  --ae-bg4:         #12121c;
  --ae-bg5:         #18181a;
  --ae-bg6:         #0f111a;
  --ae-card:        #1e1e2f;
  --ae-card2:       #1e293b;
  --ae-card3:       #151e2e;
  --ae-card4:       #0f172a;
  --ae-card5:       #161625;
  --ae-card6:       #252538;
  --ae-hover:       #2a2a3c;
  --ae-hover2:      #2a2a40;
  --ae-text:        #ffffff;
  --ae-text2:       #9ca3af;
  --ae-text3:       #6b7280;
  --ae-text4:       #4b5563;
  --ae-border:      #1f2937;
  --ae-border2:     #374151;
  --ae-border3:     #4b5563;
  --ae-accent:      #3b82f6;
  --ae-accent2:     #60a5fa;
  --ae-accent-fg:   #ffffff;
  --ae-accent-2nd:  #3b82f6;
  --ae-accent-ok:   #22c55e;
  --ae-accent-warn: #f59e0b;
  --ae-accent-err:  #ef4444;
  --ae-input:       #12121c;
  --ae-input2:      #0f172a;
  --ae-sidebar:     #1a1a1a;
  --ae-topnav:      #1e1e2f;
  --ae-scrollbar:   #333;
  --ae-shadow:      rgba(0,0,0,.5);
  --ae-glass:       rgba(255,255,255,.03);
}

[data-theme="dark"] {
  --ae-bg: #0a0a0a; --ae-bg2: #121212; --ae-bg3: #0f0f17; --ae-bg4: #12121c; --ae-bg5: #18181a; --ae-bg6: #0f111a;
  --ae-card: #1e1e2f; --ae-card2: #1e293b; --ae-card3: #151e2e; --ae-card4: #0f172a; --ae-card5: #161625; --ae-card6: #252538;
  --ae-hover: #2a2a3c; --ae-hover2: #2a2a40;
  --ae-text: #ffffff; --ae-text2: #9ca3af; --ae-text3: #6b7280; --ae-text4: #4b5563;
  --ae-border: #1f2937; --ae-border2: #374151; --ae-border3: #4b5563;
  --ae-accent: #3b82f6; --ae-accent2: #60a5fa; --ae-accent-fg: #ffffff; --ae-accent-2nd: #3b82f6;
  --ae-accent-ok: #22c55e; --ae-accent-warn: #f59e0b; --ae-accent-err: #ef4444;
  --ae-input: #12121c; --ae-input2: #0f172a;
  --ae-sidebar: #1a1a1a; --ae-topnav: #1e1e2f; --ae-scrollbar: #333;
  --ae-shadow: rgba(0,0,0,.5); --ae-glass: rgba(255,255,255,.03);
}

[data-theme="light"] {
  --ae-bg: #f0f2f5; --ae-bg2: #e8edf3; --ae-bg3: #f0f2f5; --ae-bg4: #f0f2f5; --ae-bg5: #f0f2f5; --ae-bg6: #f0f2f5;
  --ae-card: #ffffff; --ae-card2: #f8fafc; --ae-card3: #f1f5f9; --ae-card4: #f8fafc; --ae-card5: #f8fafc; --ae-card6: #eff3ff;
  --ae-hover: #f1f5f9; --ae-hover2: #e8edf3;
  --ae-text: #0f172a; --ae-text2: #475569; --ae-text3: #64748b; --ae-text4: #94a3b8;
  --ae-border: #e2e8f0; --ae-border2: #cbd5e1; --ae-border3: #94a3b8;
  --ae-accent: #2563eb; --ae-accent2: #3b82f6; --ae-accent-fg: #ffffff; --ae-accent-2nd: #2563eb;
  --ae-accent-ok: #16a34a; --ae-accent-warn: #d97706; --ae-accent-err: #dc2626;
  --ae-input: #f8fafc; --ae-input2: #f1f5f9;
  --ae-sidebar: #ffffff; --ae-topnav: #ffffff; --ae-scrollbar: #cbd5e1;
  --ae-shadow: rgba(0,0,0,.08); --ae-glass: rgba(0,0,0,.02);
}

[data-theme="light-orange"] {
  --ae-bg: #fff8f3; --ae-bg2: #fff0e6; --ae-bg3: #fff8f3; --ae-bg4: #fff8f3; --ae-bg5: #fff8f3; --ae-bg6: #fff8f3;
  --ae-card: #ffffff; --ae-card2: #fffaf7; --ae-card3: #fff4ec; --ae-card4: #fffaf7; --ae-card5: #fffaf7; --ae-card6: #fff0e5;
  --ae-hover: #fff4ec; --ae-hover2: #fff0e6;
  --ae-text: #1a0a00; --ae-text2: #78350f; --ae-text3: #92400e; --ae-text4: #b45309;
  --ae-border: #fed7aa; --ae-border2: #fdba74; --ae-border3: #fb923c;
  --ae-accent: #f97316; --ae-accent2: #ea580c; --ae-accent-fg: #ffffff; --ae-accent-2nd: #f97316;
  --ae-accent-ok: #16a34a; --ae-accent-warn: #d97706; --ae-accent-err: #dc2626;
  --ae-input: #fffaf7; --ae-input2: #fff4ec;
  --ae-sidebar: #ffffff; --ae-topnav: #ffffff; --ae-scrollbar: #fdba74;
  --ae-shadow: rgba(249,115,22,.12); --ae-glass: rgba(249,115,22,.03);
}

[data-theme="midnight"] {
  --ae-bg: #030307; --ae-bg2: #060610; --ae-bg3: #05050c; --ae-bg4: #070714; --ae-bg5: #06060f; --ae-bg6: #05050d;
  --ae-card: #0d0d1a; --ae-card2: #10101f; --ae-card3: #0a0a16; --ae-card4: #0c0c18; --ae-card5: #0b0b17; --ae-card6: #14142a;
  --ae-hover: #181830; --ae-hover2: #1a1a33;
  --ae-text: #ffffff; --ae-text2: #8891a8; --ae-text3: #626b82; --ae-text4: #454c5f;
  --ae-border: #16162c; --ae-border2: #24244a; --ae-border3: #34345f;
  --ae-accent: #3b82f6; --ae-accent2: #60a5fa; --ae-accent-fg: #ffffff; --ae-accent-2nd: #3b82f6;
  --ae-accent-ok: #22c55e; --ae-accent-warn: #f59e0b; --ae-accent-err: #ef4444;
  --ae-input: #06060f; --ae-input2: #0a0a16;
  --ae-sidebar: #08081a; --ae-topnav: #0d0d1a; --ae-scrollbar: #2a2a4a;
  --ae-shadow: rgba(0,0,0,.6); --ae-glass: rgba(120,140,255,.04);
}

[data-theme="oled"] {
  --ae-bg: #000000; --ae-bg2: #050505; --ae-bg3: #000000; --ae-bg4: #030303; --ae-bg5: #010101; --ae-bg6: #000000;
  --ae-card: #0a0a0a; --ae-card2: #101010; --ae-card3: #060606; --ae-card4: #0c0c0c; --ae-card5: #080808; --ae-card6: #161616;
  --ae-hover: #1c1c1c; --ae-hover2: #1f1f1f;
  --ae-text: #ffffff; --ae-text2: #9ca3af; --ae-text3: #6b7280; --ae-text4: #4b5563;
  --ae-border: #1a1a1a; --ae-border2: #2a2a2a; --ae-border3: #3a3a3a;
  --ae-accent: #3b82f6; --ae-accent2: #60a5fa; --ae-accent-fg: #ffffff; --ae-accent-2nd: #3b82f6;
  --ae-accent-ok: #22c55e; --ae-accent-warn: #f59e0b; --ae-accent-err: #ef4444;
  --ae-input: #000000; --ae-input2: #0a0a0a;
  --ae-sidebar: #000000; --ae-topnav: #0a0a0a; --ae-scrollbar: #2a2a2a;
  --ae-shadow: rgba(0,0,0,.8); --ae-glass: rgba(255,255,255,.02);
}

[data-theme="ash"] {
  --ae-bg: #26272b; --ae-bg2: #2b2d31; --ae-bg3: #232428; --ae-bg4: #2b2d31; --ae-bg5: #28292d; --ae-bg6: #232428;
  --ae-card: #313338; --ae-card2: #383a40; --ae-card3: #2b2d31; --ae-card4: #35373c; --ae-card5: #2f3136; --ae-card6: #3f4147;
  --ae-hover: #3f4147; --ae-hover2: #42444b;
  --ae-text: #f2f3f5; --ae-text2: #b5bac1; --ae-text3: #949ba4; --ae-text4: #6d6f78;
  --ae-border: #3f4147; --ae-border2: #4a4d55; --ae-border3: #5c5e66;
  --ae-accent: #5865f2; --ae-accent2: #707bf5; --ae-accent-fg: #ffffff; --ae-accent-2nd: #5865f2;
  --ae-accent-ok: #23a55a; --ae-accent-warn: #f0b232; --ae-accent-err: #f23f43;
  --ae-input: #1e1f22; --ae-input2: #26272b;
  --ae-sidebar: #2b2d31; --ae-topnav: #313338; --ae-scrollbar: #1a1b1e;
  --ae-shadow: rgba(0,0,0,.4); --ae-glass: rgba(255,255,255,.03);
}

[data-theme="onyx"] {
  --ae-bg: #0a0a0b; --ae-bg2: #131315; --ae-bg3: #080809; --ae-bg4: #101012; --ae-bg5: #0d0d0e; --ae-bg6: #080809;
  --ae-card: #17171a; --ae-card2: #1c1c1f; --ae-card3: #131315; --ae-card4: #1a1a1d; --ae-card5: #151517; --ae-card6: #212124;
  --ae-hover: #212124; --ae-hover2: #252528;
  --ae-text: #f2f3f5; --ae-text2: #a6a7ab; --ae-text3: #838489; --ae-text4: #5c5d61;
  --ae-border: #232326; --ae-border2: #2e2e32; --ae-border3: #3d3d42;
  --ae-accent: #5865f2; --ae-accent2: #707bf5; --ae-accent-fg: #ffffff; --ae-accent-2nd: #5865f2;
  --ae-accent-ok: #23a55a; --ae-accent-warn: #f0b232; --ae-accent-err: #f23f43;
  --ae-input: #0a0a0b; --ae-input2: #131315;
  --ae-sidebar: #131315; --ae-topnav: #17171a; --ae-scrollbar: #1c1c1f;
  --ae-shadow: rgba(0,0,0,.6); --ae-glass: rgba(255,255,255,.02);
}

[data-theme="blurple"] {
  --ae-bg: #0b0b1e; --ae-bg2: #10102b; --ae-bg3: #0a0a1a; --ae-bg4: #12122f; --ae-bg5: #0e0e26; --ae-bg6: #0a0a1a;
  --ae-card: #1a1a3a; --ae-card2: #202045; --ae-card3: #16162f; --ae-card4: #1c1c40; --ae-card5: #18183a; --ae-card6: #26265a;
  --ae-hover: #26265a; --ae-hover2: #2a2a63;
  --ae-text: #ffffff; --ae-text2: #a8a8d0; --ae-text3: #7d7db0; --ae-text4: #57578a;
  --ae-border: #26264f; --ae-border2: #34346a; --ae-border3: #454585;
  --ae-accent: #5865f2; --ae-accent2: #7983f5; --ae-accent-fg: #ffffff; --ae-accent-2nd: #5865f2;
  --ae-accent-ok: #23a55a; --ae-accent-warn: #f0b232; --ae-accent-err: #f23f43;
  --ae-input: #0e0e26; --ae-input2: #14142f;
  --ae-sidebar: #10102b; --ae-topnav: #1a1a3a; --ae-scrollbar: #2e2e60;
  --ae-shadow: rgba(0,0,10,.55); --ae-glass: rgba(88,101,242,.06);
}

[data-theme="chroma"] {
  --ae-bg: #0f0714; --ae-bg2: #150a1c; --ae-bg3: #0d0611; --ae-bg4: #180b20; --ae-bg5: #120818; --ae-bg6: #0d0611;
  --ae-card: #241230; --ae-card2: #2c1638; --ae-card3: #1e0f28; --ae-card4: #291436; --ae-card5: #221030; --ae-card6: #34194a;
  --ae-hover: #34194a; --ae-hover2: #3a1c52;
  --ae-text: #ffffff; --ae-text2: #cbaee0; --ae-text3: #a17ec2; --ae-text4: #6e5488;
  --ae-border: #341c48; --ae-border2: #472763; --ae-border3: #5c3480;
  --ae-accent: #c026d3; --ae-accent2: #d946ef; --ae-accent-fg: #ffffff; --ae-accent-2nd: #c026d3;
  --ae-accent-ok: #22c55e; --ae-accent-warn: #f59e0b; --ae-accent-err: #ef4444;
  --ae-input: #120818; --ae-input2: #1a0d22;
  --ae-sidebar: #150a1c; --ae-topnav: #241230; --ae-scrollbar: #472763;
  --ae-shadow: rgba(30,0,40,.5); --ae-glass: rgba(217,70,239,.06);
}

[data-theme="sherbet"] {
  --ae-bg: #fff5f7; --ae-bg2: #ffeef2; --ae-bg3: #fff5f7; --ae-bg4: #fff5f7; --ae-bg5: #fff5f7; --ae-bg6: #fff5f7;
  --ae-card: #ffffff; --ae-card2: #fff9fa; --ae-card3: #fff0f4; --ae-card4: #fff9fa; --ae-card5: #fff9fa; --ae-card6: #ffe8ee;
  --ae-hover: #fff0f4; --ae-hover2: #ffeef2;
  --ae-text: #3a0d1c; --ae-text2: #9d3a5c; --ae-text3: #b8567a; --ae-text4: #d187a3;
  --ae-border: #ffd3e0; --ae-border2: #ffb3c9; --ae-border3: #ff8fac;
  --ae-accent: #ec4899; --ae-accent2: #db2777; --ae-accent-fg: #3a0d1c; --ae-accent-2nd: #ec4899;
  --ae-accent-ok: #16a34a; --ae-accent-warn: #d97706; --ae-accent-err: #dc2626;
  --ae-input: #fff9fa; --ae-input2: #fff0f4;
  --ae-sidebar: #ffffff; --ae-topnav: #ffffff; --ae-scrollbar: #ffb3c9;
  --ae-shadow: rgba(236,72,153,.1); --ae-glass: rgba(236,72,153,.03);
}

[data-theme="ocean"] {
  --ae-bg: #041014; --ae-bg2: #071a20; --ae-bg3: #030d11; --ae-bg4: #081e24; --ae-bg5: #061419; --ae-bg6: #030d11;
  --ae-card: #0d2731; --ae-card2: #113039; --ae-card3: #0a1f27; --ae-card4: #10333d; --ae-card5: #0e2a33; --ae-card6: #163e49;
  --ae-hover: #163e49; --ae-hover2: #194450;
  --ae-text: #e8fbff; --ae-text2: #8fc3ce; --ae-text3: #5f96a3; --ae-text4: #3d6873;
  --ae-border: #164450; --ae-border2: #1f5866; --ae-border3: #2c7284;
  --ae-accent: #06b6d4; --ae-accent2: #22d3ee; --ae-accent-fg: #04141a; --ae-accent-2nd: #06b6d4;
  --ae-accent-ok: #22c55e; --ae-accent-warn: #f59e0b; --ae-accent-err: #ef4444;
  --ae-input: #061419; --ae-input2: #0a1f27;
  --ae-sidebar: #071a20; --ae-topnav: #0d2731; --ae-scrollbar: #1f5866;
  --ae-shadow: rgba(0,10,15,.5); --ae-glass: rgba(34,211,238,.05);
}

[data-theme="pink"] {
  --ae-bg: #fff0f5; --ae-bg2: #fce4ec; --ae-bg3: #fff0f5; --ae-bg4: #fff0f5; --ae-bg5: #fff0f5; --ae-bg6: #fff0f5;
  --ae-card: #ffffff; --ae-card2: #fff8fa; --ae-card3: #fdeef3; --ae-card4: #fff8fa; --ae-card5: #fff8fa; --ae-card6: #fce4ec;
  --ae-hover: #fdeef3; --ae-hover2: #fce4ec;
  --ae-text: #2b0a14; --ae-text2: #7a3349; --ae-text3: #94495f; --ae-text4: #b8748a;
  --ae-border: #f6cddb; --ae-border2: #f0a8c0; --ae-border3: #e685a8;
  --ae-accent: #d62868; --ae-accent2: #b8225a; --ae-accent-fg: #ffffff; --ae-accent-2nd: #d62868;
  --ae-accent-ok: #16a34a; --ae-accent-warn: #d97706; --ae-accent-err: #dc2626;
  --ae-input: #fff8fa; --ae-input2: #fdeef3;
  --ae-sidebar: #ffffff; --ae-topnav: #ffffff; --ae-scrollbar: #f0a8c0;
  --ae-shadow: rgba(214,40,104,.12); --ae-glass: rgba(214,40,104,.03);
}

html:not([data-theme="dark"]) body {
  background-color: var(--ae-bg) !important;
  color: var(--ae-text) !important;
}

html:not([data-theme="dark"]) .bg-\[\#121212\],
html:not([data-theme="dark"]) .bg-\[\#0f0f17\],
html:not([data-theme="dark"]) .bg-\[\#12121c\],
html:not([data-theme="dark"]) .bg-\[\#18181a\],
html:not([data-theme="dark"]) .bg-\[\#0f111a\],
html:not([data-theme="dark"]) .bg-\[\#0a0a0a\],
html:not([data-theme="dark"]) .bg-\[\#0e0e1a\],
html:not([data-theme="dark"]) .bg-\[\#13131f\],
html:not([data-theme="dark"]) .bg-\[\#1e1e1e\] {
  background-color: var(--ae-bg) !important;
}

html:not([data-theme="dark"]) .bg-\[\#1e1e2f\],
html:not([data-theme="dark"]) .bg-\[\#1e293b\],
html:not([data-theme="dark"]) .bg-\[\#151e2e\],
html:not([data-theme="dark"]) .bg-\[\#0f172a\],
html:not([data-theme="dark"]) .bg-\[\#161625\],
html:not([data-theme="dark"]) .bg-\[\#252538\],
html:not([data-theme="dark"]) .bg-\[\#2a2a3c\],
html:not([data-theme="dark"]) .bg-\[\#2a2a40\],
html:not([data-theme="dark"]) .bg-\[\#111827\],
html:not([data-theme="dark"]) .bg-\[\#1a1a2e\] {
  background-color: var(--ae-card) !important;
}

html:not([data-theme="dark"]) .bg-\[\#35354b\],
html:not([data-theme="dark"]) .bg-\[\#2e2e45\],
html:not([data-theme="dark"]) .bg-\[\#24243a\] {
  background-color: var(--ae-hover) !important;
}

html:not([data-theme="dark"]) .text-white {
  color: var(--ae-text) !important;
}

html:not([data-theme="dark"]) .text-gray-100,
html:not([data-theme="dark"]) .text-gray-200 {
  color: var(--ae-text) !important;
}

html:not([data-theme="dark"]) .text-gray-300,
html:not([data-theme="dark"]) .text-gray-400 {
  color: var(--ae-text2) !important;
}

html:not([data-theme="dark"]) .text-gray-500,
html:not([data-theme="dark"]) .text-gray-600 {
  color: var(--ae-text3) !important;
}

html:not([data-theme="dark"]) .border-gray-800,
html:not([data-theme="dark"]) .border-gray-700,
html:not([data-theme="dark"]) .border-gray-700\/50,
html:not([data-theme="dark"]) .border-gray-700\/60,
html:not([data-theme="dark"]) .border-slate-800,
html:not([data-theme="dark"]) .border-slate-700 {
  border-color: var(--ae-border) !important;
}

html:not([data-theme="dark"]) .border-gray-600 {
  border-color: var(--ae-border2) !important;
}

html:not([data-theme="dark"]) .bg-gray-800,
html:not([data-theme="dark"]) .bg-gray-900,
html:not([data-theme="dark"]) .bg-slate-800,
html:not([data-theme="dark"]) .bg-slate-900 {
  background-color: var(--ae-card2) !important;
}

html:not([data-theme="dark"]) .bg-gray-700,
html:not([data-theme="dark"]) .bg-gray-700\/50 {
  background-color: var(--ae-hover) !important;
}

html:not([data-theme="dark"]) input,
html:not([data-theme="dark"]) select,
html:not([data-theme="dark"]) textarea {
  background-color: var(--ae-input) !important;
  color: var(--ae-text) !important;
  border-color: var(--ae-border2) !important;
}

html:not([data-theme="dark"]) input::placeholder,
html:not([data-theme="dark"]) textarea::placeholder {
  color: var(--ae-text4) !important;
}

html:not([data-theme="dark"]) .glass-card,
html:not([data-theme="dark"]) .glass-morph,
html:not([data-theme="dark"]) .glass {
  background: var(--ae-card) !important;
  border-color: var(--ae-border) !important;
}

html:not([data-theme="dark"]) table,
html:not([data-theme="dark"]) thead,
html:not([data-theme="dark"]) tr,
html:not([data-theme="dark"]) th,
html:not([data-theme="dark"]) td {
  border-color: var(--ae-border) !important;
}

html:not([data-theme="dark"]) thead th,
html:not([data-theme="dark"]) .table-header {
  background-color: var(--ae-card2) !important;
  color: var(--ae-text) !important;
}

html:not([data-theme="dark"]) tbody tr:hover {
  background-color: var(--ae-hover) !important;
}

html:not([data-theme="dark"]):not([data-theme="light"]) .text-blue-400,
html:not([data-theme="dark"]):not([data-theme="light"]) .text-blue-500,
html:not([data-theme="dark"]):not([data-theme="light"]) .text-indigo-400,
html:not([data-theme="dark"]):not([data-theme="light"]) .text-indigo-500 {
  color: var(--ae-accent) !important;
}

html:not([data-theme="dark"]):not([data-theme="light"]) .bg-blue-600,
html:not([data-theme="dark"]):not([data-theme="light"]) .hover\:bg-blue-500:hover {
  background: var(--ae-accent-bg, var(--ae-accent)) !important;
}

html:not([data-theme="dark"]):not([data-theme="light"]) .bg-blue-600:hover {
  background-color: var(--ae-accent2) !important;
}

html:not([data-theme="dark"]):not([data-theme="light"]) .bg-indigo-600,
html:not([data-theme="dark"]):not([data-theme="light"]) .hover\:bg-indigo-500:hover {
  background: var(--ae-accent-bg, var(--ae-accent)) !important;
}

html:not([data-theme="dark"]):not([data-theme="light"]) .border-indigo-500,
html:not([data-theme="dark"]):not([data-theme="light"]) .border-blue-500 {
  border-color: var(--ae-accent) !important;
}

html:not([data-theme="dark"]) .bg-\[#1e1e2f\]\/50,
html:not([data-theme="dark"]) .bg-white\/5,
html:not([data-theme="dark"]) .bg-white\/\[0\.01\] {
  background-color: var(--ae-hover) !important;
}

html:not([data-theme="dark"]) .divide-gray-700 > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--ae-border) !important;
}

html:not([data-theme="dark"]) ::-webkit-scrollbar {
  background: var(--ae-bg) !important;
}

html:not([data-theme="dark"]) ::-webkit-scrollbar-thumb {
  background: var(--ae-scrollbar) !important;
}

html:not([data-theme="dark"]) .no-scrollbar::-webkit-scrollbar-track {
  background: var(--ae-bg) !important;
}

html:not([data-theme="dark"]) .skeleton {
  background-color: var(--ae-border2) !important;
}

.ae-appearance-section {
  margin-bottom: 28px;
}

.ae-appearance-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ae-text3);
  margin-bottom: 12px;
}

.ae-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 12px;
}

.ae-theme-card {
  border: 2px solid var(--ae-border);
  background: var(--ae-card2);
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  transition: border-color .15s, transform .1s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ae-theme-card:hover {
  transform: translateY(-2px);
}

.ae-theme-card.active {
  border-color: var(--ae-accent);
}

.ae-theme-swatch {
  height: 56px;
  border-radius: 9px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--ae-border);
  display: flex;
}

.ae-theme-swatch-side {
  width: 30%;
  height: 100%;
}

.ae-theme-swatch-main {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 6px;
}

.ae-theme-swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.ae-theme-card-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ae-text2);
  text-align: center;
}

.ae-theme-card.active .ae-theme-card-label {
  color: var(--ae-text);
}

.ae-create-card {
  border: 2px dashed var(--ae-border2);
  background: transparent;
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 92px;
  color: var(--ae-text3);
  transition: border-color .15s, color .15s;
}

.ae-create-card:hover {
  border-color: var(--ae-accent);
  color: var(--ae-accent);
}

.ae-my-themes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ae-my-theme-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--ae-border);
  background: var(--ae-card2);
}

.ae-my-theme-row.active {
  border-color: var(--ae-accent);
}

.ae-my-theme-swatch {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid var(--ae-border);
}

.ae-my-theme-name {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ae-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ae-my-theme-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.ae-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--ae-text3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.ae-icon-btn:hover {
  background: var(--ae-hover);
  color: var(--ae-text);
}

.ae-maker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ae-maker-overlay.open {
  display: flex;
}

.ae-maker-panel {
  background: var(--ae-card);
  border: 1px solid var(--ae-border);
  border-radius: 18px;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.ae-maker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ae-border);
  position: sticky;
  top: 0;
  background: var(--ae-card);
  z-index: 1;
}

.ae-maker-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--ae-text);
}

.ae-maker-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ae-field-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ae-text3);
  margin-bottom: 8px;
  display: block;
}

.ae-name-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--ae-border2);
  background: var(--ae-input);
  color: var(--ae-text);
  font-size: 13.5px;
  outline: none;
}

.ae-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ae-color-swatch {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid var(--ae-border2);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.ae-color-swatch input[type="color"] {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border: none;
  cursor: pointer;
  opacity: 0;
}

.ae-hex-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--ae-border2);
  background: var(--ae-input);
  color: var(--ae-text);
  font-size: 13.5px;
  font-family: ui-monospace, monospace;
  outline: none;
  text-transform: lowercase;
}

.ae-mode-toggle {
  display: flex;
  gap: 6px;
  background: var(--ae-input);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--ae-border);
}

.ae-mode-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--ae-text3);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.ae-mode-btn.active {
  background: var(--ae-accent-bg, var(--ae-accent));
  color: var(--ae-accent-fg);
}

.ae-angle-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ae-angle-row input[type="range"] {
  flex: 1;
  accent-color: var(--ae-accent);
}

.ae-angle-value {
  width: 42px;
  flex-shrink: 0;
  text-align: right;
  font-size: 12.5px;
  font-family: ui-monospace, monospace;
  color: var(--ae-text2);
}

.ae-live-preview {
  border-radius: 14px;
  border: 1px solid var(--ae-border);
  overflow: hidden;
  background: var(--ae-bg);
}

.ae-live-preview-top {
  height: 34px;
  background: var(--ae-topnav);
  border-bottom: 1px solid var(--ae-border);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}

.ae-live-preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ae-accent);
}

.ae-live-preview-body {
  display: flex;
  gap: 10px;
  padding: 12px;
}

.ae-live-preview-sidebar {
  width: 38px;
  border-radius: 8px;
  background: var(--ae-sidebar);
  border: 1px solid var(--ae-border);
  height: 84px;
}

.ae-live-preview-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ae-live-preview-card {
  background: var(--ae-card);
  border: 1px solid var(--ae-border);
  border-radius: 8px;
  padding: 10px;
}

.ae-live-preview-line {
  height: 7px;
  border-radius: 4px;
  background: var(--ae-text2);
  opacity: .35;
  margin-bottom: 6px;
  width: 70%;
}

.ae-live-preview-line:last-child {
  width: 45%;
  margin-bottom: 0;
}

.ae-live-preview-actions {
  display: flex;
  gap: 6px;
}

.ae-live-preview-btn {
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--ae-accent-bg, var(--ae-accent));
  color: var(--ae-accent-fg);
  font-size: 10.5px;
  font-weight: 700;
}

.ae-live-preview-badge {
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--ae-hover);
  color: var(--ae-text2);
  font-size: 10.5px;
  font-weight: 700;
}

.ae-contrast-note {
  font-size: 11.5px;
  color: var(--ae-text3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ae-contrast-note.warn {
  color: var(--ae-accent-warn);
}

.ae-maker-footer {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--ae-border);
  position: sticky;
  bottom: 0;
  background: var(--ae-card);
}

.ae-btn-secondary {
  flex: 1;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid var(--ae-border2);
  background: transparent;
  color: var(--ae-text2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ae-btn-primary {
  flex: 1;
  padding: 11px 16px;
  border-radius: 10px;
  border: none;
  background: var(--ae-accent-bg, var(--ae-accent));
  color: var(--ae-accent-fg);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ae-io-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.ae-io-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--ae-border2);
  background: var(--ae-input);
  color: var(--ae-text3);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 640px) {
  .ae-theme-grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 8px;
  }
}
