/* Theme settings share the grouped glass treatment of the other settings screens. */
body #settingsThemePanel{max-width:760px;margin:0 auto;padding:4px 0 20px!important;border:0!important;background:transparent!important;box-shadow:none!important}
body #settingsThemePanel>.theme-section{padding:0!important;margin:0 0 24px!important;border:0!important}
body #settingsThemePanel>.theme-section>h3{margin:0 14px 8px;font-size:11px;font-weight:600;letter-spacing:1.3px;text-transform:uppercase;color:var(--muted)}
body #settingsThemePanel .theme-group-card{border:1px solid rgba(127,140,158,.18)!important;border-radius:16px;background:color-mix(in srgb,var(--paper) 94%,var(--ink) 3%);box-sizing:border-box;backdrop-filter:blur(12px)}
body #settingsThemePanel .theme-scheme-group>.theme-group-card{padding:14px}
body #settingsThemePanel .theme-group-helper{margin:0 0 12px;color:var(--muted);font-size:12px;line-height:1.5}
body #settingsThemePanel .theme-modes{gap:8px}
body #settingsThemePanel .theme-mode{min-height:82px;padding:12px 5px;gap:8px;border-radius:12px;border:1px solid color-mix(in srgb,var(--muted) 18%,transparent);background:color-mix(in srgb,var(--muted) 6%,transparent);color:var(--ink);font-size:12px;font-weight:600;box-shadow:none}
body #settingsThemePanel .theme-mode.active{background:var(--blue);color:var(--accent-foreground,#fff);border-color:var(--blue);box-shadow:none}
body #settingsThemePanel .mode-icon{display:grid;place-items:center;width:24px;height:24px}
body #settingsThemePanel .mode-icon>svg{display:block;width:24px;height:24px}
body #settingsThemePanel #accentPalette{display:flex;flex-direction:column;gap:0;margin:0;padding:0;overflow:hidden}
body #settingsThemePanel #accentPalette>.theme-group-helper{padding:14px 14px 0;margin:0}
body #settingsThemePanel #accentPalette>.accent-palette-group{padding:14px;border:0;border-bottom:1px solid rgba(127,140,158,.12)}
body.dark #settingsThemePanel #accentPalette>.accent-palette-group{border-bottom-color:rgba(255,255,255,.06)}
body #settingsThemePanel .accent-palette-group h4{display:flex;align-items:center;gap:7px;margin:0 0 10px;font-size:10px;font-weight:600;letter-spacing:1px}
body #settingsThemePanel .theme-pro-badge{padding:2px 5px;border:1px solid color-mix(in srgb,var(--blue) 28%,transparent);border-radius:5px;background:color-mix(in srgb,var(--blue) 10%,transparent);color:var(--blue);font-size:9px;font-weight:700;letter-spacing:.4px}
body #settingsThemePanel .accent-swatch-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px 6px}
body #settingsThemePanel .accent-choice{min-height:65px;padding:7px 3px 5px;gap:7px;border-radius:10px}
body #settingsThemePanel .accent-choice small{font-size:10px;line-height:1.3}
body #settingsThemePanel .custom-palette-action{margin:0;min-height:66px;padding:14px;border:0;border-radius:0;background:transparent;box-shadow:none;text-align:left}
body #settingsThemePanel .custom-palette-action>span:first-child{font-size:13px;font-weight:600}
body #settingsThemePanel .custom-palette-action:hover{background:color-mix(in srgb,var(--blue) 6%,transparent)}
body #settingsThemePanel>.custom-css-section{padding:0!important;overflow:hidden;border:1px solid rgba(127,140,158,.18)!important;border-radius:16px}
body #settingsThemePanel .custom-css-section>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;min-height:64px;box-sizing:border-box;cursor:pointer;list-style:none}
body #settingsThemePanel .custom-css-section>summary::-webkit-details-marker{display:none}
body #settingsThemePanel .custom-css-section>summary>span{display:grid;gap:4px}
body #settingsThemePanel .custom-css-section>summary strong{font-size:14px;font-weight:600;color:var(--ink)}
body #settingsThemePanel .custom-css-section>summary small{font-size:11px;color:var(--muted)}
body #settingsThemePanel .theme-advanced-chevron{width:18px;height:18px;color:var(--muted);transition:transform .2s ease}
body #settingsThemePanel .custom-css-section[open] .theme-advanced-chevron{transform:rotate(180deg)}
body #settingsThemePanel .theme-advanced-body{padding:0 14px 14px;border-top:1px solid rgba(127,140,158,.12)}
body.dark #settingsThemePanel .theme-advanced-body{border-top-color:rgba(255,255,255,.06)}
body #settingsThemePanel .theme-advanced-body>p{margin:12px 0;color:var(--muted);font-size:12px;line-height:1.5}
body #settingsThemePanel .custom-css-section textarea{box-sizing:border-box;min-height:180px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--bg) 75%,var(--paper));color:var(--ink)}
body #settingsThemePanel .theme-actions{gap:8px;flex-wrap:wrap}
body #settingsThemePanel .theme-actions button{min-height:36px;border-radius:10px;font-size:12px}
body #settingsThemePanel :is(.theme-mode,summary):focus-visible{outline:2px solid var(--blue);outline-offset:2px}
@media(max-width:560px){body #settingsThemePanel .accent-swatch-grid{grid-template-columns:repeat(4,minmax(0,1fr))}body #settingsThemePanel .accent-palette-group:first-of-type .accent-swatch-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){body #settingsThemePanel .theme-advanced-chevron{transition:none}}
