.advanced-theme-section{margin-top:28px;border-top:1px solid var(--line);padding-top:18px}.advanced-theme-section h2{font:32px var(--serif,Georgia);margin:5px 0 10px}.advanced-theme-section>p,.advanced-options p{font-size:12px;color:var(--muted);line-height:1.7}.advanced-theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.advanced-theme-choice{display:flex;flex-direction:column;gap:8px;align-items:stretch;text-align:left;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:12px;cursor:pointer;font:inherit;min-width:0}.advanced-theme-choice:hover,.advanced-theme-choice[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.advanced-theme-choice strong{font-size:12px}.advanced-theme-choice small{font-size:11px;color:var(--muted);line-height:1.5}.advanced-swatch{height:60px;border-radius:7px;display:flex;gap:6px;align-items:end;padding:12px;overflow:hidden}.advanced-swatch i{display:block;background:var(--swatch-accent);opacity:.65;width:22%;height:20px;border-radius:3px}.advanced-swatch i:nth-child(2){height:33px}.advanced-swatch i:nth-child(3){height:13px;width:35%}.advanced-options{padding:16px;margin-top:18px;border:1px solid var(--line);border-radius:10px;background:var(--selected)}.advanced-options label{display:block;margin:10px 0;font-size:12px}.advanced-options input[type=checkbox]{accent-color:var(--accent);margin-right:6px}.matrix-upload input{display:block;margin-top:8px;max-width:100%;font-size:12px;color:var(--ink)}#advanced-theme-dialog{width:min(820px,calc(100% - 24px));max-height:85dvh;overflow:auto;border-radius:16px;border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:25px}#advanced-theme-dialog::backdrop{background:#06111baa;backdrop-filter:blur(4px)}.advanced-close{float:right;font-size:25px;width:40px;height:40px}.advanced-basics{display:flex;gap:8px;flex-wrap:wrap}.advanced-basics button,.advanced-close,.advanced-open{background:var(--selected);color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:8px;cursor:pointer}.advanced-basics button{font-size:12px}.advanced-open{font-size:20px;min-width:38px}#study-streak{display:inline-flex;white-space:nowrap;align-items:center;font:600 11px var(--sans,Arial);letter-spacing:0;background:var(--selected);color:var(--ink);border:1px solid var(--line);border-radius:20px;padding:6px 9px;align-self:center;line-height:1.3}.header-extras{gap:7px;flex-wrap:wrap}body[data-advanced-theme] button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
/* Advanced materials preserve opaque reading surfaces and stable geometry. */
body[data-advanced-theme=solar]{transition:background-color 4s,color 4s}body[data-advanced-theme=solar] :is(.window,.calendar-panel,.day-panel,.titlebar){transition:background-color 4s,border-color 4s}body[data-advanced-theme=solar] .page-heading{background:radial-gradient(ellipse at 100% 0%,#f9bb3622,transparent 70%)}
body[data-advanced-theme=hud] :is(.calendar-panel,.day-panel,.folder-tile,.shop-card,.searchbox){border-radius:3px;box-shadow:inset 0 0 18px #50d7ce09;border-color:var(--line)}body[data-advanced-theme=hud] :is(.eyebrow,.resource-tags,.statusbar,.planner-footer){font-family:ui-monospace,monospace;letter-spacing:1px}body[data-advanced-theme=hud] .titlebar,body[data-advanced-theme=hud] .planner-header{background-image:repeating-linear-gradient(90deg,transparent 0 24px,#62ebd618 24px 25px);border-bottom-color:var(--accent)}body[data-advanced-theme=hud] :is(.page-heading,.planner-intro){position:relative}body[data-advanced-theme=hud] :is(.page-heading,.planner-intro)::after{content:'';position:absolute;bottom:0;left:0;width:100%;height:2px;background:linear-gradient(90deg,transparent,#66e7d3,transparent);background-size:20% 100%;background-repeat:no-repeat;animation:telemetry-flow 14s linear infinite;pointer-events:none}@keyframes telemetry-flow{from{background-position:-30% 0}to{background-position:130% 0}}
body[data-advanced-theme=cyber] :is(button,a,.tab){transition:color .5s,border-color .5s,box-shadow .5s}body[data-advanced-theme=cyber] :is(button:hover,.searchbox:focus-within){box-shadow:0 0 13px color-mix(in srgb,var(--accent) 24%,transparent);border-color:var(--accent)}body[data-advanced-theme=cyber] .page-heading{border-left-width:4px}
body[data-advanced-theme=glass]{background-attachment:fixed}body[data-advanced-theme=glass] :is(.window,.workspace,main){background:transparent!important}body[data-advanced-theme=glass] :is(.content,.sidebar,.calendar-panel,.day-panel,.shop-card,.folder-tile,.titlebar,.planner-header,.shop-header){background:rgba(241,246,248,.87)!important;backdrop-filter:blur(18px);border:1px solid #ffffffaa;box-shadow:0 10px 35px #314d6312;border-radius:14px}body[data-advanced-theme=glass] :is(.calendar-panel,.day-panel,.folder-tile){box-shadow:0 9px 28px #24465815,inset 0 1px 0 #fff}
body[data-advanced-theme=tactile] :is(button,.folder-tile,.calendar-panel,.day-panel){box-shadow:4px 4px 9px #1a2b2425,-3px -3px 8px #ffffff77;border-radius:8px}body[data-advanced-theme=tactile] button:active{box-shadow:inset 2px 2px 5px #1a2b2440;transform:translateY(1px)}body[data-advanced-theme=tactile] :is(.eyebrow,.resource-tags,.tab,.calendar-toolbar){font-family:ui-monospace,'Courier New',monospace}
body[data-advanced-theme=chalk] :is(button,.folder-tile,.calendar-panel,.day-panel,.searchbox){border-radius:9px 13px 8px 11px;border-style:dashed}body[data-advanced-theme=chalk] button:hover{box-shadow:0 0 11px #e4efb42b,inset 0 0 6px #e4efb414}body[data-advanced-theme=chalk] h1,body[data-advanced-theme=chalk] h2{font-family:'Segoe Print','Bradley Hand',var(--serif);text-shadow:1px 0 #ffffff16}
body[data-advanced-theme=blueprint]{filter:grayscale(1)}body[data-advanced-theme=blueprint] :is(button,.folder-tile,.calendar-panel,.day-panel,.searchbox){border-radius:0;box-shadow:none;border-width:1px}body[data-advanced-theme=blueprint] :is(.resource-avatar,.folder-icon,.access-badge){background:transparent!important;border:1px solid var(--ink)!important;color:var(--ink)!important}body[data-advanced-theme=blueprint] :is(.eyebrow,.resource-tags,.tab){font-family:ui-monospace,monospace}body[data-advanced-theme=blueprint] img{filter:grayscale(1);opacity:.8}
body[data-advanced-theme=eink],body[data-advanced-theme=eink] *{animation:none!important;transition:none!important;scroll-behavior:auto!important;box-shadow:none!important;text-shadow:none!important}body[data-advanced-theme=eink] :is(.hero-network,.index-illustration){visibility:hidden}body[data-advanced-theme=eink] :is(button,.folder-tile,.calendar-panel,.day-panel){border-radius:3px}body[data-advanced-theme=eink] img{filter:grayscale(1)}body[data-advanced-theme=eink] :is(.access-badge,.resource-avatar){background:var(--selected)!important;color:var(--ink)!important}
body[data-advanced-theme=matrix] :is(.folder-tile,.calendar-panel,.day-panel,.shop-card){border-radius:22px;box-shadow:none}body[data-advanced-theme=matrix] button{border-radius:16px}body[data-advanced-theme=matrix] :is(.resource-avatar,.folder-icon,.access-badge){background:var(--selected)!important;color:var(--accent)!important}
body[data-advanced-theme=midnight] :is(.calendar-panel,.day-panel,.folder-tile){box-shadow:0 0 22px #a3e5ba09}body[data-advanced-theme=midnight] :is(.online-dot,.orbit-center,.planner-stat>span){animation:forest-breathe 9s ease-in-out infinite}@keyframes forest-breathe{0%,100%{filter:drop-shadow(0 0 1px #a3e5ba33)}50%{filter:drop-shadow(0 0 8px #a3e5ba88)}}body[data-advanced-theme=midnight] button:hover{border-color:var(--accent);box-shadow:0 0 12px #a3e5ba24}
body[data-advanced-theme=chrome] :is(button,.calendar-panel,.day-panel,.folder-tile){background-image:linear-gradient(135deg,#ffffff19,transparent 30%,#9cb0c91b 60%,transparent 85%);border-radius:18px;box-shadow:inset 0 1px 1px #ffffff38,0 5px 16px #0003}body[data-advanced-theme=chrome] .chrome-ripple{animation:chrome-wave .65s ease-out}@keyframes chrome-wave{0%{box-shadow:inset 0 0 0 0 #d6e5f277;filter:brightness(1.12)}100%{box-shadow:inset 0 0 35px 10px #d6e5f200;filter:brightness(1)}}
body[data-advanced-theme=vapor] :is(.folder-tile,.calendar-panel,.day-panel,.shop-card){border:2px solid var(--line);border-radius:17px;box-shadow:3px 4px 0 #73604c18}body[data-advanced-theme=vapor] :is(.folder-icon,.resource-avatar){background:#c9c2ce!important;color:#575f45!important}body[data-advanced-theme=vapor] .page-heading{border-left-color:#757f60}
.theme-motion-off *,.theme-motion-off *::before,.theme-motion-off *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}@media(prefers-reduced-motion:reduce){body[data-advanced-theme] *,body[data-advanced-theme] *::before,body[data-advanced-theme] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(max-width:700px){.advanced-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.advanced-theme-choice{padding:10px}.advanced-theme-choice small{font-size:10px}#study-streak{font-size:10px;padding:5px 7px}.planner-header .header-extras{position:static;justify-content:flex-end;width:100%}.planner-header{flex-wrap:wrap}.planner-intro{padding-top:0}.advanced-options input[type=file]{width:100%}}@media(max-width:360px){.advanced-theme-choice strong{font-size:11px}.advanced-theme-grid{gap:8px}#advanced-theme-dialog{padding:16px}}

body[data-advanced-theme=eink] *::before,body[data-advanced-theme=eink] *::after{animation:none!important;transition:none!important}
