/* Optional decoration only. Functional layout belongs in style.css. */
/* The signed-in workspace uses a visible light sculpture and quiet, functional surfaces. */
:root:not([data-effects="off"]) #workspace>main{position:relative;isolation:isolate}
:root:not([data-effects="off"]) .workspace-atmosphere{position:absolute;inset:0 0 auto;height:850px;z-index:-1;overflow:clip;pointer-events:none;background:radial-gradient(ellipse at 84% 0,color-mix(in srgb,var(--category-color) 18%,transparent),transparent 55%),radial-gradient(ellipse at 8% 28%,color-mix(in srgb,var(--category-color) 7%,transparent),transparent 45%)}
:root:not([data-effects="off"]) .workspace-atmosphere:after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 30%,color-mix(in srgb,var(--category-color) 8%,transparent) 50%,transparent 70%);mask-image:linear-gradient(#000,transparent 65%);animation:workspace-breathe 16s ease-in-out infinite alternate}
:root:not([data-effects="off"]) .workspace .heading{position:relative;isolation:isolate;min-height:118px;margin:0 0 20px;padding:24px 28px;border:1px solid color-mix(in srgb,var(--category-color) 22%,transparent);border-radius:22px;background:linear-gradient(110deg,#14172ce8,#171d31a8);box-shadow:inset 0 1px #d2dcff12,0 16px 40px #080b1c30}
:root:not([data-effects="off"]) .workspace .heading>div:not(.workspace-scene){z-index:1;position:relative}
:root:not([data-effects="off"]) .workspace .heading h1{font-size:2.25rem;letter-spacing:-.04em;line-height:1.2;background:linear-gradient(110deg,#f4f5ff 10%,var(--category-color) 92%);background-clip:text;-webkit-text-fill-color:transparent;text-shadow:none}
:root:not([data-effects="off"]) .workspace .heading:after{content:"";position:absolute;bottom:-1px;left:28px;width:28%;height:1px;background:linear-gradient(90deg,var(--category-color),transparent);box-shadow:0 0 12px color-mix(in srgb,var(--category-color) 50%,transparent)}
:root:not([data-effects="off"]) .workspace-scene{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:clip;border-radius:inherit;background:radial-gradient(ellipse at 72% 12%,color-mix(in srgb,var(--category-color) 22%,transparent),transparent 55%)}
:root:not([data-effects="off"]) .workspace-scene svg{position:absolute;right:5%;top:-30%;width:64%;height:170%;color:var(--category-color);filter:drop-shadow(0 0 9px color-mix(in srgb,var(--category-color) 35%,transparent));mask-image:linear-gradient(90deg,transparent,#000 25%,#000 85%,transparent)}
:root:not([data-effects="off"]) .workspace-stream{fill:none;stroke:url(#workspace-flow);stroke-width:2;animation:workspace-flow 18s ease-in-out infinite alternate;transform-origin:center}
:root:not([data-effects="off"]) .workspace-stream path:first-child{stroke-width:15;opacity:.24}:root:not([data-effects="off"]) .workspace-stream path:nth-child(2){stroke-width:4;opacity:.8}:root:not([data-effects="off"]) .workspace-stream path:nth-child(3){opacity:.4}:root:not([data-effects="off"]) .workspace-stream path:nth-child(4){opacity:.18}
:root:not([data-effects="off"]) .workspace .primary{background:linear-gradient(120deg,color-mix(in srgb,var(--category-color) 80%,white),color-mix(in srgb,var(--category-color) 84%,#414e88));color:#111a2c;border:1px solid color-mix(in srgb,var(--category-color) 50%,transparent);box-shadow:0 0 25px color-mix(in srgb,var(--category-color) 18%,transparent),inset 0 1px #ffffff50;transition:box-shadow .25s,filter .25s}
:root:not([data-effects="off"]) .workspace .summary{gap:16px}
:root:not([data-effects="off"]) .workspace .summary>div{--stat-color:var(--category-color);min-height:158px;padding:20px 22px;background:radial-gradient(ellipse at 100% 0,color-mix(in srgb,var(--stat-color) 17%,transparent),transparent 75%),linear-gradient(140deg,#232840e8,#171b2e);border:1px solid color-mix(in srgb,var(--stat-color) 28%,transparent);box-shadow:inset 0 1px #ebeeff14,0 10px 30px #07091a30;transition:border-color .3s,box-shadow .3s}
:root:not([data-effects="off"]) .workspace .summary>div:nth-child(2){--stat-color:#91baff}:root:not([data-effects="off"]) .workspace .summary>div:nth-child(3){--stat-color:#f4a5bc}:root:not([data-effects="off"]) .workspace .summary>div:nth-child(4){--stat-color:#7de0c4}
:root:not([data-effects="off"]) .workspace .summary>div:before,:root:not([data-effects="off"]) .workspace .summary>div:after{content:none}
:root:not([data-effects="off"]) .workspace .summary strong{position:relative;font-size:2.65rem;color:var(--stat-color);text-shadow:0 0 22px color-mix(in srgb,var(--stat-color) 22%,transparent)}
:root:not([data-effects="off"]) .workspace .summary>div>span:first-child,:root:not([data-effects="off"]) .workspace .summary small{position:relative;z-index:1}
/* Four abstract silhouettes, with one shared information hierarchy. */
:root:not([data-effects="off"]) .workspace .summary>div:first-child{background:radial-gradient(ellipse at 95% 30%,color-mix(in srgb,var(--stat-color) 17%,transparent),transparent 70%),linear-gradient(145deg,#25263c,#171b2e)}
:root:not([data-effects="off"]) .workspace .summary>div:nth-child(2){background:radial-gradient(ellipse at 110% 100%,#769ff426,transparent 67%),linear-gradient(140deg,#1e293e,#171b2e)}
:root:not([data-effects="off"]) .workspace .summary>div:nth-child(3){background:radial-gradient(ellipse at 85% 105%,#ed82a32b,transparent 64%),linear-gradient(150deg,#292336,#171b2e)}
:root:not([data-effects="off"]) .workspace .summary>div:nth-child(4){background:radial-gradient(ellipse at 87% 40%,#65d9b72a,transparent 64%),linear-gradient(140deg,#1d2d34,#171b2e)}
:root:not([data-effects="off"]) .workspace .summary .stat-art{display:block;position:absolute;inset:0 -8px auto auto;width:150px;height:120px;color:var(--stat-color);opacity:1;font-size:0;text-shadow:none;pointer-events:none;mask-image:linear-gradient(90deg,transparent,#000 23%);transition:translate .5s ease,filter .5s ease}
:root:not([data-effects="off"]) .workspace .summary .stat-art svg{width:100%;height:100%;overflow:visible;fill:none;stroke:currentColor;stroke-width:1}
:root:not([data-effects="off"]) .workspace .summary .stat-glint{stroke-opacity:.65;filter:drop-shadow(0 0 5px currentColor)}
:root:not([data-effects="off"]) .workspace .summary .stat-detail{stroke-opacity:.22}
:root:not([data-effects="off"]) .workspace .summary .stat-spark{fill:#eaf5ff;stroke:none;opacity:.7;filter:drop-shadow(0 0 7px currentColor)}
:root:not([data-effects="off"]) .stat-sheets .sheet-back{fill:currentColor;fill-opacity:.06;stroke-opacity:.14}:root:not([data-effects="off"]) .stat-sheets .sheet-middle{fill:currentColor;fill-opacity:.09;stroke-opacity:.25}:root:not([data-effects="off"]) .stat-sheets .sheet-front{fill:currentColor;fill-opacity:.13;stroke-opacity:.35}
:root:not([data-effects="off"]) .workspace .summary>div:nth-child(2) .stat-art{width:170px;right:-16px;top:-9px;mask-image:linear-gradient(90deg,transparent 5%,#000 50%)}
:root:not([data-effects="off"]) .stat-trail{stroke-opacity:.22}:root:not([data-effects="off"]) .stat-trail.trail-far{stroke-opacity:.1}:root:not([data-effects="off"]) .stat-trail.trail-main{stroke-width:6;stroke-opacity:.1}:root:not([data-effects="off"]) .trail-near{filter:drop-shadow(0 0 6px currentColor)}
:root:not([data-effects="off"]) .workspace .summary>div:nth-child(3) .stat-art{width:148px;top:8px;right:-10px;mask-image:linear-gradient(90deg,transparent 5%,#000 37%)}
:root:not([data-effects="off"]) .stat-pulse-shadow{stroke-width:10;stroke-opacity:.1;filter:blur(5px)}:root:not([data-effects="off"]) .stat-pulse{stroke-opacity:.5;stroke-linejoin:round}
:root:not([data-effects="off"]) .workspace .summary>div:nth-child(4) .stat-art{width:164px;top:-1px;right:-17px;mask-image:linear-gradient(90deg,transparent,#000 35%)}
:root:not([data-effects="off"]) .stat-ripples ellipse{stroke-opacity:.2}:root:not([data-effects="off"]) .stat-ripples ellipse:nth-child(2){stroke-opacity:.35}:root:not([data-effects="off"]) .stat-check{stroke-width:2;stroke-opacity:.65;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 10px currentColor)}
@media(hover:hover){:root:not([data-effects="off"]) .workspace .summary>div:nth-child(1):hover .stat-art{translate:0 -4px}:root:not([data-effects="off"]) .workspace .summary>div:nth-child(2):hover .stat-art{translate:3px -4px}:root:not([data-effects="off"]) .workspace .summary>div:nth-child(3):hover .stat-art{filter:brightness(1.35)}:root:not([data-effects="off"]) .workspace .summary>div:nth-child(4):hover .stat-art{translate:0 -2px;filter:brightness(1.2)}}

:root:not([data-effects="off"]) .workspace .column{background:linear-gradient(160deg,color-mix(in srgb,var(--category-color) 6%,#13172a),#111426b0);border-color:color-mix(in srgb,var(--category-color) 16%,transparent);box-shadow:inset 0 1px color-mix(in srgb,var(--category-color) 9%,transparent)}
:root:not([data-effects="off"]) .workspace .column-heading{padding-top:8px;padding-bottom:20px}:root:not([data-effects="off"]) .workspace .column-heading .line{box-shadow:0 0 0 4px color-mix(in srgb,var(--category-color) 12%,transparent),0 0 16px color-mix(in srgb,var(--category-color) 70%,transparent)}
:root:not([data-effects="off"]) .workspace #categories .nav-button.active{background:linear-gradient(110deg,color-mix(in srgb,var(--category-color) 20%,transparent),color-mix(in srgb,var(--category-color) 5%,transparent));box-shadow:inset 2px 0 var(--category-color),0 0 28px color-mix(in srgb,var(--category-color) 6%,transparent);color:color-mix(in srgb,var(--category-color) 55%,white)}
:root:not([data-effects="off"]) .workspace #categories .nav-button.active .nav-icon{filter:drop-shadow(0 0 7px color-mix(in srgb,var(--category-color) 70%,transparent))}
:root:not([data-effects="off"]) .workspace .calendar,:root:not([data-effects="off"]) .workspace .week-panel{border-color:color-mix(in srgb,var(--category-color) 25%,transparent);box-shadow:0 16px 50px #05081840,inset 0 1px #d6deff15;background:linear-gradient(150deg,#232740d9,#151a30e6)}
:root:not([data-effects="off"]) .workspace .calendar-toolbar{background:linear-gradient(100deg,color-mix(in srgb,var(--category-color) 9%,transparent),transparent 70%)}
:root:not([data-effects="off"]) .workspace .overview-views{width:fit-content;padding:5px;border:1px solid #b6a6ff2b;border-radius:13px;background:#111528a8;box-shadow:inset 0 1px #ffffff09}
:root:not([data-effects="off"]) .workspace .overview-views button[aria-pressed=true]{box-shadow:0 0 18px #a795ff20,inset 0 1px #ded5ff38}
:root:not([data-effects="off"]) .workspace[hidden] .workspace-stream,:root:not([data-effects="off"]) .workspace[hidden] .workspace-atmosphere:after{animation-play-state:paused}
@media(hover:hover){:root:not([data-effects="off"]) .workspace .task{transition:border-color .22s,box-shadow .22s,translate .22s}:root:not([data-effects="off"]) .workspace .task:hover{border-color:color-mix(in srgb,var(--category-color) 50%,transparent);box-shadow:0 8px 30px color-mix(in srgb,var(--category-color) 12%,transparent);translate:0 -2px}:root:not([data-effects="off"]) .workspace .summary>div:hover{border-color:color-mix(in srgb,var(--stat-color) 55%,transparent);box-shadow:0 7px 30px color-mix(in srgb,var(--stat-color) 9%,transparent)}}
@keyframes workspace-flow{to{transform:translate(-14px,9px) rotate(-4deg)}}
@keyframes workspace-breathe{from{opacity:.45}to{opacity:1}}

/* Crisp LED segments retain their colour; the glow sits behind the strokes. */
:root:not([data-effects="off"]) .focus-mode .focus-clock-panel{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 20% 18%,#33699628,transparent 47%),radial-gradient(ellipse at 85% 80%,#695ac528,transparent 50%),#080f1b;border:1px solid #9acfff66;box-shadow:inset 0 1px #d8f6ff40,inset 0 0 40px #589de40a,0 0 30px #589de419}
:root:not([data-effects="off"]) .focus-mode .focus-clock-panel:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0 3px,#bceaff04 3px 4px);mask-image:linear-gradient(transparent,#000 40%,transparent)}
:root:not([data-effects="off"]) .focus-mode .focus-clock-panel:after{content:"";position:absolute;left:17%;right:17%;bottom:0;height:1px;background:linear-gradient(90deg,transparent,#83dfff,#b9a1ff,transparent);box-shadow:0 0 15px #8dbfff80;pointer-events:none}
:root:not([data-effects="off"]) .focus-mode .clock-unit{--clock-color:#79e4ff;--clock-end:#82afff}:root:not([data-effects="off"]) .focus-mode .clock-unit:nth-child(2){--clock-color:#93bdff;--clock-end:#b7b0ff}:root:not([data-effects="off"]) .focus-mode .clock-unit:nth-child(3){--clock-color:#b7a1ff;--clock-end:#ecc9ff}
:root:not([data-effects="off"]) .focus-mode .clock-digits{filter:drop-shadow(0 0 3px color-mix(in srgb,var(--clock-color) 65%,transparent)) drop-shadow(0 0 12px color-mix(in srgb,var(--clock-color) 35%,transparent))}
:root:not([data-effects="off"]) .focus-mode .segment{background:#b4d5ff07}:root:not([data-effects="off"]) .focus-mode .segment.lit{background:linear-gradient(135deg,#ecfcff 0,var(--clock-color) 28%,var(--clock-end) 100%)}
:root:not([data-effects="off"]) .focus-mode .clock-unit:not(:last-child):after{color:var(--clock-color);text-shadow:0 0 9px var(--clock-color),0 0 22px #9cbfff66}
:root:not([data-effects="off"]) .focus-mode .clock-value{background:linear-gradient(#c0e3ff03,transparent);border:1px solid #acdcff08;box-shadow:inset 0 1px #cceaff06}
:root:not([data-effects="off"]) .focus-mode .clock-step{color:color-mix(in srgb,var(--clock-color) 70%,#a0b7ce)}:root:not([data-effects="off"]) .focus-mode .clock-step:hover:enabled{color:#f1fbff;background:#9bd6ff14;text-shadow:0 0 9px #87cfff80}
:root:not([data-effects="off"]) .focus-mode .clock-unit>small{color:#9ab8d6}:root:not([data-effects="off"]) .focus-mode .focus-clock-controls{position:relative}:root:not([data-effects="off"]) .focus-mode #focus-toggle{box-shadow:0 0 22px #91beff25,inset 0 1px #fff5}
@media(min-width:681px){:root:not([data-effects="off"]) .focus-mode .clock-digit{width:44px;height:78px}:root:not([data-effects="off"]) .focus-mode .clock-wheel{width:50px}:root:not([data-effects="off"]) .focus-mode .segment-g{top:36px}:root:not([data-effects="off"]) .focus-mode .segment-b,:root:not([data-effects="off"]) .focus-mode .segment-c,:root:not([data-effects="off"]) .focus-mode .segment-e,:root:not([data-effects="off"]) .focus-mode .segment-f{height:33px}:root:not([data-effects="off"]) .focus-mode .clock-unit:not(:last-child):after{top:49px}}
@media(max-width:800px){:root:not([data-effects="off"]) .workspace .heading{padding:22px;min-height:108px}:root:not([data-effects="off"]) .workspace-scene svg{right:-20%;width:90%;opacity:.7}:root:not([data-effects="off"]) .workspace .heading h1{font-size:2rem}}
@media(max-width:680px){:root:not([data-effects="off"]) .workspace .heading{padding:19px 16px;min-height:94px;margin-bottom:16px;border-radius:17px;flex-direction:row;align-items:center}:root:not([data-effects="off"]) .workspace .heading h1{font-size:1.8rem}:root:not([data-effects="off"]) .workspace .heading .add-control{align-self:center}:root:not([data-effects="off"]) .workspace .heading .primary{font-size:13px;padding:10px 12px}:root:not([data-effects="off"]) .workspace .heading:after{left:17px}:root:not([data-effects="off"]) .workspace-scene svg{right:-27%;width:118%;opacity:.55}:root:not([data-effects="off"]) .workspace-stream,:root:not([data-effects="off"]) .workspace-atmosphere:after{animation:none}:root:not([data-effects="off"]) .workspace .summary{gap:10px}:root:not([data-effects="off"]) .workspace .summary>div{min-height:149px;padding:16px 14px}:root:not([data-effects="off"]) .workspace .summary strong{font-size:2.3rem}:root:not([data-effects="off"]) .workspace .summary>div .stat-art{width:110px;height:104px;right:-20px;top:12px;opacity:.8}:root:not([data-effects="off"]) .workspace .summary>div:nth-child(2) .stat-art{top:-5px}:root:not([data-effects="off"]) .workspace .summary>div:nth-child(3) .stat-art{top:18px}:root:not([data-effects="off"]) .workspace .summary small{font-size:.72rem}:root:not([data-effects="off"]) .workspace .overview-views{width:auto;display:flex}:root:not([data-effects="off"]) .workspace .overview-views button{flex:1;padding:8px 10px;font-size:13px}:root:not([data-effects="off"]) .focus-mode .clock-value{border-color:transparent}}
@media(prefers-reduced-motion:reduce){:root:not([data-effects="off"]) .workspace-stream,:root:not([data-effects="off"]) .workspace-atmosphere:after{animation:none}:root:not([data-effects="off"]) .workspace .task,:root:not([data-effects="off"]) .workspace .summary .stat-art{transition:none}}

/* Each module has its own visual vocabulary; reading and action positions stay shared. */
:root:not([data-effects="off"]) .workspace-motif{display:none;fill:none;stroke:currentColor;stroke-width:1}
:root:not([data-effects="off"]) .workspace:not([data-category="全部"]) .workspace-stream{display:none}
:root:not([data-effects="off"]) .workspace[data-category="作业"] .motif-homework,:root:not([data-effects="off"]) .workspace[data-category="考试"] .motif-exam,:root:not([data-effects="off"]) .workspace[data-category="活动"] .motif-activity,:root:not([data-effects="off"]) .workspace[data-category="会议"] .motif-meeting,:root:not([data-effects="off"]) .workspace[data-category="记录"] .motif-record,:root:not([data-effects="off"]) .workspace[data-category="课程"] .motif-course{display:block}
:root:not([data-effects="off"]) .workspace:not([data-category="全部"]) .workspace-scene svg{height:100%;width:70%;top:0;right:2%;mask-image:linear-gradient(90deg,transparent,#000 27%,#000 82%,transparent)}
:root:not([data-effects="off"]) .workspace-motif .motif-surface{fill:currentColor;fill-opacity:.06;stroke-opacity:.25}:root:not([data-effects="off"]) .workspace-motif .motif-front{fill-opacity:.11;stroke-opacity:.5}
:root:not([data-effects="off"]) .workspace-motif .motif-edge{stroke-width:1.7;stroke-opacity:.8;filter:drop-shadow(0 0 7px currentColor)}
:root:not([data-effects="off"]) .workspace-motif .motif-detail{stroke-opacity:.2}:root:not([data-effects="off"]) .workspace-motif .motif-point,:root:not([data-effects="off"]) .meeting-points circle{fill:currentColor;stroke:none;filter:drop-shadow(0 0 7px currentColor)}
:root:not([data-effects="off"]) .workspace-motif .motif-halo{stroke-opacity:.25;stroke-width:10}:root:not([data-effects="off"]) .exam-ticks{stroke-opacity:.5;stroke-width:2}
:root:not([data-effects="off"]) .workspace-motif .motif-wash{stroke-width:23;stroke-opacity:.11;filter:drop-shadow(0 0 10px currentColor)}
:root:not([data-effects="off"]) .workspace-motif .motif-link{stroke-opacity:.25}:root:not([data-effects="off"]) .workspace-motif .record-ink{stroke-width:1.4;stroke-opacity:.5}
:root:not([data-effects="off"]) .motif-float{animation:module-float 14s ease-in-out infinite alternate}:root:not([data-effects="off"]) .motif-flow{animation:module-flow 18s ease-in-out infinite alternate}:root:not([data-effects="off"]) .meeting-points{animation:workspace-breathe 9s ease-in-out infinite alternate}
:root:not([data-effects="off"]) .workspace[hidden] .workspace-motif *{animation-play-state:paused}
@keyframes module-float{to{translate:5px -7px}}
@keyframes module-flow{to{translate:-16px 6px}}
/* Strong differentiation belongs to the header, not the working layout. */
:root:not([data-effects="off"]) .workspace[data-category="作业"] .heading{background:linear-gradient(110deg,#19182fea,#272340c7)}
:root:not([data-effects="off"]) .workspace[data-category="考试"] .heading{background:linear-gradient(110deg,#1e1b29ee,#352b2bc7);border-color:#f3c98a42}
:root:not([data-effects="off"]) .workspace[data-category="考试"] .workspace-scene{background:radial-gradient(ellipse at 66% 80%,#f3c98a20,transparent 59%)}
:root:not([data-effects="off"]) .workspace[data-category="活动"] .heading{background:radial-gradient(ellipse at 77% 120%,#3d907230,transparent 75%),#15242de6}
:root:not([data-effects="off"]) .workspace[data-category="会议"] .heading{background:radial-gradient(ellipse at 68% 50%,#efaccb20,transparent 70%),#251d30d9}
:root:not([data-effects="off"]) .workspace[data-category="记录"] .heading{background:linear-gradient(105deg,#182637ed,#202a3ddb)}
:root:not([data-effects="off"]) .workspace[data-category="记录"] .workspace-atmosphere{background:radial-gradient(ellipse at 78% 0,#99b9ee20,transparent 55%)}
:root:not([data-effects="off"]) .workspace[data-category="课程"] .heading{background:linear-gradient(110deg,#202637e8,#2d3542bd);border-color:#eef1fa30}
@media(max-width:800px){:root:not([data-effects="off"]) .workspace:not([data-category="全部"]) .workspace-scene svg{width:105%;right:-20%;opacity:.55}:root:not([data-effects="off"]) .workspace-motif .motif-float,:root:not([data-effects="off"]) .workspace-motif .motif-flow,:root:not([data-effects="off"]) .meeting-points{animation:none}}
@media(prefers-reduced-motion:reduce){:root:not([data-effects="off"]) .workspace-motif *{animation:none!important}}

/* Utility panels use only material and edge treatment, never background illustrations. */
:root:not([data-effects="off"]) :is(#sources-dialog,#demo-card,#archive-dialog,#archive-detail-dialog,#messages-dialog,#daily-summary-dialog,#feedback-dialog,#account-dialog,#recovery-dialog,#task-dialog.focus-mode,#user-menu){border:1px solid transparent;background:linear-gradient(145deg,#292e48,#1b2034 78%) padding-box,linear-gradient(125deg,color-mix(in srgb,var(--accent) 72%,#e4edff),#99b2ed27 42%,#99d6eb66 75%,#bcb0ff35) border-box;box-shadow:0 26px 90px #05081785,0 0 30px color-mix(in srgb,var(--accent) 10%,transparent),inset 0 1px #f1f5ff10}
:root:not([data-effects="off"]) :is(#sources-dialog,#demo-card,#archive-dialog,#archive-detail-dialog,#messages-dialog,#daily-summary-dialog,#feedback-dialog,#account-dialog,#recovery-dialog,#task-dialog.focus-mode) .dialog-heading h2{color:#eef1ff;text-shadow:0 0 22px color-mix(in srgb,var(--accent) 12%,transparent)}
:root:not([data-effects="off"]) :is(#sources-dialog,#archive-dialog,#messages-dialog,#daily-summary-dialog,#feedback-dialog,#account-dialog,#task-dialog.focus-mode) .secondary{background:linear-gradient(145deg,#c4d7ff0c,#839be704);box-shadow:inset 0 1px #d1e5ff10}
:root:not([data-effects="off"]) :is(#sources-dialog,#archive-dialog,#messages-dialog,#daily-summary-dialog,#account-dialog,#user-menu) .dialog-actions,:root:not([data-effects="off"]) :is(#user-menu) .user-menu-heading{border-color:#becfff22}
:root:not([data-effects="off"]) #user-menu .user-menu-item:hover{background:linear-gradient(100deg,#b7a6ff1f,#a7ceff0b);box-shadow:inset 0 1px #cedaff0b}
@media(max-width:680px){:root:not([data-effects="off"]) :is(#sources-dialog,#demo-card,#archive-dialog,#messages-dialog,#daily-summary-dialog,#task-dialog.focus-mode,#user-menu){box-shadow:0 16px 50px #05081785,0 0 20px #a7b6ff12,inset 0 1px #f1f5ff10}}

:root:not([data-effects="off"]) .workspace-scene,:root:not([data-effects="off"]) .workspace-atmosphere{display:block}

/* Ambient light belongs behind the cards, never inside their reading surface. */
:root:not([data-effects="off"]) .workspace #board{position:relative;isolation:isolate}
:root:not([data-effects="off"]) .workspace #board:before{content:"";position:absolute;inset:-24px 0 -100px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 5% 45%,color-mix(in srgb,var(--category-color) 10%,transparent),transparent 45%),radial-gradient(ellipse at 100% 75%,#6884b912,transparent 52%);border-radius:36px}
:root:not([data-effects="off"]) .workspace #board:after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle,#acc7ec35 .8px,transparent 1px);background-size:38px 38px;mask-image:linear-gradient(110deg,transparent 15%,#000 58%,transparent 95%);opacity:.45}
:root:not([data-effects="off"]) .workspace .task:before{content:none}
:root:not([data-effects="off"]) .workspace .axes-canvas{border-color:#afbbeb3d;box-shadow:inset 0 1px #dfebff20,inset 0 0 80px #829ae80b,0 12px 42px #05081740}
:root:not([data-effects="off"]) .workspace .axes-canvas:before{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:radial-gradient(ellipse at 80% 12%,#9296ef10,transparent 55%),radial-gradient(ellipse at 10% 90%,#77bddb0c,transparent 50%)}
:root:not([data-effects="off"]) .workspace .canvas-controls{border-color:#b0caff42;box-shadow:0 7px 25px #080d2680,inset 0 1px #d6e6ff16;backdrop-filter:blur(14px)}
:root:not([data-effects="off"]) .workspace .canvas-controls button:hover{background:#accbff16;color:#edf7ff}
:root:not([data-effects="off"]) .workspace .quadrant-viewport{box-shadow:inset 0 1px #bcdfff20,0 12px 42px #05081740}
:root:not([data-effects="off"]) .workspace .quadrant-chart{background-color:#121728}
:root:not([data-effects="off"]) .workspace .quadrant-axis{color:#d1e3ff;text-shadow:0 0 12px #a4bcff30}
:root:not([data-effects="off"]) .workspace .quadrant-edge{box-shadow:0 0 18px #91baff22}
:root:not([data-effects="off"]) #demo-card{box-shadow:0 24px 80px #03081dcc,0 0 35px #a89af521,inset 0 1px #e2eaff30}
:root:not([data-effects="off"]) #demo-highlight{border-color:#c2d6ff9c;box-shadow:0 0 0 9999px #030713ab,0 0 22px #a8c3ff25,inset 0 0 16px #adc4ff0b;transition:border-color .4s}
:root:not([data-effects="off"]) #demo-progress{color:#c6dbff;font-variant-numeric:tabular-nums}
:root:not([data-effects="off"]) .workspace .summary .record-stat{display:none}
:root:not([data-effects="off"]) .workspace[data-category="记录"] .summary .stat-art:not(.record-stat){display:none}
:root:not([data-effects="off"]) .workspace[data-category="记录"] .summary .record-stat{display:block;width:148px;top:6px;right:-10px;color:#acd4ff;opacity:.7}
:root:not([data-effects="off"]) .workspace[data-category="记录"] .summary>div{--stat-color:#a7cbf3;background:linear-gradient(135deg,#223147,#191f33);border-color:#a4c9f338}
:root:not([data-effects="off"]) .workspace[data-category="记录"] .summary>div:nth-child(2){background:linear-gradient(160deg,#1b3042,#191f33);--stat-color:#a1d3e9}
:root:not([data-effects="off"]) .workspace[data-category="记录"] .summary>div:nth-child(3){background:radial-gradient(ellipse at 100% 0,#d0e7ff12,transparent 65%),#1d293e;--stat-color:#c2dcf6}
:root:not([data-effects="off"]) .workspace[data-category="记录"] .summary>div:nth-child(4){background:linear-gradient(130deg,#202b45,#1b2638);--stat-color:#b4c5ee}
:root:not([data-effects="off"]) .workspace[data-category="记录"] .summary .record-stat svg{stroke-opacity:.38;stroke-linecap:round;stroke-linejoin:round}

:root:not([data-effects="off"]) .workspace .axis-path{filter:drop-shadow(0 0 4px #a89bff26);stroke-width:2}
:root:not([data-effects="off"]) .workspace .axis-node circle{filter:drop-shadow(0 0 5px #b7baff26);transition:filter .2s,stroke-width .2s}
:root:not([data-effects="off"]) .workspace .axis-node:hover circle{filter:drop-shadow(0 0 8px #bad9ff70);stroke-width:2.5}

@media(max-width:680px){:root:not([data-effects="off"]) .workspace[data-category="记录"] .summary .record-stat{width:116px;right:-20px;top:27px;opacity:.38}}

/* One fixed row; only the backdrop fades, never its controls. */
@media(max-width:900px){
  #workspace>.heading{position:fixed;inset:0 0 auto;z-index:42;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;min-height:calc(64px + env(safe-area-inset-top));height:calc(64px + env(safe-area-inset-top));margin:0;padding:calc(10px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));box-sizing:border-box;border:0;border-radius:0;background:transparent;box-shadow:none;isolation:isolate;transform:translate3d(var(--mobile-nav-offset),0,0);transition:transform var(--mobile-nav-motion)}
  #workspace>.heading:before,#workspace>.heading:after{content:"";display:block;position:absolute;inset:0 0 -32px;width:auto;height:auto;pointer-events:none;box-shadow:none;border:0;border-radius:0;-webkit-mask-image:linear-gradient(#000 0%,#000 52%,#000c 68%,transparent 100%);mask-image:linear-gradient(#000 0%,#000 52%,#000c 68%,transparent 100%)}
  #workspace>.heading:before{z-index:0;background:linear-gradient(#0b0e2066,#0b0e2014 65%,transparent);-webkit-backdrop-filter:blur(32px) saturate(110%);backdrop-filter:blur(32px) saturate(110%)}
  #workspace>.heading:after{z-index:0;background:transparent;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);-webkit-mask-image:linear-gradient(#000 0%,#000b 60%,transparent 100%);mask-image:linear-gradient(#000 0%,#000b 60%,transparent 100%)}
  #workspace>.heading>*{position:relative;z-index:1}
  #workspace>.heading>.workspace-scene,#workspace>.heading h1:after{display:none}
  #workspace>.heading h1{font-size:21px;line-height:44px;letter-spacing:0;white-space:nowrap}
  #workspace>.heading .add-control{flex:none;margin-left:auto;align-self:center}
  #workspace>.heading .primary{font-size:14px;padding:10px 12px;min-height:44px;white-space:nowrap}
  #workspace :is(button,input,select,summary,.task,.planning-card){scroll-margin-top:calc(80px + env(safe-area-inset-top))}
  html:has(#workspace:not([hidden])){scroll-padding-top:calc(80px + env(safe-area-inset-top))}
}
@media(prefers-reduced-motion:reduce){#workspace>.heading{transition:none}}
