@layer workspace-finish {
  #shell { --soft-accent: color-mix(in srgb,var(--accent-light) 22%,#f4f8f6); }
  #shell main { background: radial-gradient(ellipse at 93% 0,color-mix(in srgb,var(--accent-light) 22%,transparent),transparent 39rem); }
  .content { width:100%; }
  #title { letter-spacing:-.05em; line-height:1.08; }
  #title:focus { outline:none; }
  .heading { align-items:end; }
  .heading .primary { border-radius:13px; box-shadow:0 3px 8px #142b2a15; }
  .date { font-size:11px; text-transform:none; letter-spacing:.035em; gap:7px; }
  .top .tools { gap:4px; }
  .top .tools .icon { border-radius:50%; }
  .hero {
    display:block; min-height:0; padding:0; border-radius:23px;
    --hero-base:color-mix(in srgb,var(--accent-dark) 43%,#101d25);
    --hero-glow:color-mix(in srgb,var(--accent-mid) 65%,#263b42);
    box-shadow:0 8px 24px #152c3310,inset 0 0 0 1px #d7f6ef2b;
  }
  :root[data-color] .hero { background:radial-gradient(ellipse at 78% 31%,var(--hero-glow),transparent 55%),linear-gradient(118deg,#17292e,var(--hero-base) 76%,#18282d); }
  .hero-main { display:grid; grid-template-columns:minmax(0,1.28fr) minmax(0,.85fr); align-items:center; min-height:clamp(170px,17vw,240px); }
  .hero-text { padding:clamp(22px,2.7vw,42px); width:auto; min-width:0; }
  .hero .hero-caption { gap:7px; color:var(--accent-light); font-size:11px; letter-spacing:.08em; }
  .hero .hero-caption svg { width:16px; height:16px; }
  .hero h2 { font-size:clamp(29px,3.35vw,47px); line-height:1.08; letter-spacing:-.047em; margin:9px 0 0; overflow-wrap:anywhere; }
  .hero-task { display:flex; align-items:center; gap:7px; padding:0; color:inherit; text-align:start; min-height:44px; line-height:inherit; }
  .hero-task > span { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .hero-task > svg { width:.54em; height:.54em; color:var(--accent-light); }
  .hero-when { margin-top:8px; font-weight:540; color:#eef8f5; overflow-wrap:anywhere; }
  .hero .progressline { margin:14px 0 0; gap:8px; flex-wrap:wrap; }
  .hero .progressline progress { width:clamp(44px,9vw,100px); height:5px; }
  .hero .progressline b,.hero .progressline .sub { font-size:12px; }
  .hero .progressline .sub { color:#e2eeea; }
  .hero-art { min-width:0; align-self:stretch; position:relative; isolation:isolate; color:#edfaf5; border-radius:18px; min-height:124px; margin:3px; }
  .hero-art::before { content:""; position:absolute; pointer-events:none; inset:2% 1%; background:radial-gradient(ellipse closest-side,transparent 62%,#e6f6f01a 63%,transparent 64%,transparent 86%,#e6f6f00e 87%,transparent 88%); }
  .hero .hero-art .illustration { position:absolute; width:95%; height:105%; max-width:none; inset:-3% auto auto 1%; object-fit:contain; filter:drop-shadow(0 12px 10px #061a2259); }
  .hero-orbit { position:absolute; inset:auto 11px 10px auto; display:inline-flex; align-items:center; gap:4px; background:#102c30de; color:#e5f6ed; border:1px solid #a1c6bd80; border-radius:30px; font:650 10px/1 var(--mono); padding:5px 8px; }
  .hero-orbit svg { width:13px; height:13px; }
  .hero-task:focus-visible,.hero-art:focus-visible { outline:3px solid var(--accent-light); }
  .hero-art:focus-visible { outline-offset:-4px; }
  .hero-routine { display:flex; flex-wrap:wrap; align-items:center; gap:6px 19px; padding:10px clamp(22px,2.7vw,42px); border-top:1px solid #ecfff42b; background:#071e252b; }
  .hero-routine > div { display:inline-flex; align-items:center; gap:7px; margin:0; font-size:12px; font-weight:520; color:#edf7f3; }
  .hero-routine svg { width:15px; height:15px; color:var(--accent-light); }
  .columns[data-layout="clear"],.columns[data-layout="timer"] { grid-template-columns:minmax(0,1fr); }
  .columns[data-layout="clear"] .rail { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:20px; }
  .columns[data-layout="timer"] { max-width:650px; margin-inline:auto; }
  .columns[data-layout="timer"] .clock { font-size:clamp(64px,10vw,105px); }
  .columns[data-layout="timer"] .focus { padding:clamp(20px,3.5vw,40px); }
  .columns[data-layout="timer"] .focus .card-head h2 { display:none; }
  .columns[data-layout="timer"] .focus .card-head picture { margin-inline:0 auto; }
  .panel,.tasks-card { border-radius:19px; }
  .panel,.tasks-card,.empty { box-shadow:0 5px 18px #19332b07,inset 0 1px #fff8; }
  .panel { background:linear-gradient(140deg,#ffffffd9,#f3f8f6ed); }
  .card-head { gap:9px; }
  .card-head h2,.section-head h2,.agenda h2 { letter-spacing:-.04em; }
  .timer-modes { border-radius:12px; background:#e6eeea; padding:3px; border-color:#c0d3ca; box-shadow:inset 0 1px 3px #17282d08; }
  .timer-modes .active { background:var(--accent-dark); color:white; text-decoration:none; box-shadow:0 2px 6px #17282d20; }
  .clock { padding-block:3px; line-height:1.15; font-weight:490; letter-spacing:-.055em; }
  .timer-footer .dark { border-radius:11px; }
  .link-task { margin-block:5px -5px; }
  .reminders .hint { margin:15px 0; }
  .filters { gap:4px; margin:9px 0 11px; }
  .filters button { background:transparent; border-color:transparent; padding-inline:12px; border-radius:11px; }
  .filters .active { text-decoration:none; border-color:var(--accent-dark); }
  .filters button > span { display:inline-grid; place-items:center; border-radius:8px; min-width:16px; }
  .row { gap:7px; }
  .task-text { padding-block:4px; }
  .task-name { font-size:15px; line-height:1.42; }
  .task-text:focus-visible,.hero-task:focus-visible { outline-offset:1px; border-radius:5px; }
  .meta { row-gap:4px; }
  .agenda-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 12px; margin-bottom:12px; }
  .agenda-head h2 { margin:0; }
  .agenda-count { display:inline-flex; padding:3px 10px; border-radius:20px; background:var(--soft-accent); color:var(--accent-dark); font-size:12px; font-weight:600; }
  .month-head { border-bottom:1px solid var(--line); padding-bottom:7px; margin-bottom:8px; }
  .month-head h2 { letter-spacing:-.04em; }
  .navbody .on { text-decoration:none; box-shadow:inset 3px 0 var(--accent-dark); font-weight:650; }
  @media(hover:hover) and (prefers-reduced-motion:no-preference){
    .hero-art .illustration { transition:transform .25s ease; }
    .hero-art:hover .illustration { transform:translateY(-3px) rotate(-1deg); }
  }
  @media(max-width:800px){
    #shell .top { min-height:calc(56px + env(safe-area-inset-top)); padding-top:env(safe-area-inset-top); padding-inline:max(8px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-right)); position:relative; z-index:1; }
    #sidebar { padding-top:max(25px,env(safe-area-inset-top)); padding-bottom:max(15px,env(safe-area-inset-bottom)); }
    .content { padding-inline:max(var(--edge),env(safe-area-inset-left)) max(var(--edge),env(safe-area-inset-right)); }
    #bottom-nav { inset-inline:max(10px,env(safe-area-inset-left)) max(10px,env(safe-area-inset-right)); bottom:max(8px,env(safe-area-inset-bottom)); padding:4px; border-radius:20px; box-shadow:0 5px 21px #17312c26,inset 0 1px #fff; }
    #bottom-nav button { gap:4px; font-size:11px; border-radius:15px; font-weight:530; position:relative; }
    #bottom-nav .selected { font-weight:720; text-decoration:none; }
    #bottom-nav .selected::after { content:""; position:absolute; width:14px; height:2px; top:2px; border-radius:3px; background:currentColor; }
    #bottom-nav svg { height:18px; width:18px; }
  }
  @media(max-width:650px){
    .content { padding-top:17px; }
    .heading { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; row-gap:5px; column-gap:10px; margin-bottom:16px; }
    .heading > div { display:contents; }
    .heading .date { grid-column:1/-1; margin:0; flex-wrap:nowrap; font-size:11px; }
    .heading .date svg { flex-shrink:0; }
    #title { font-size:clamp(27px,6.8vw,36px); }
    .heading .primary { max-width:none; font-size:13px; padding-inline:12px; }
    .hero { border-radius:19px; }
    .hero-main { grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); min-height:142px; }
    .hero-text { padding:18px 2px 18px 17px; }
    .hero h2 { font-size:clamp(25px,6.5vw,35px); margin:7px 0 0; }
    .hero .hero-caption { font-size:10px; }
    .hero-when { font-size:12px; }
    .hero-routine { padding:9px 16px; gap:6px 11px; }
    .hero-routine > div { font-size:11px; }
    .hero .progressline .sub { flex-basis:100%; }
    .hero .progressline { gap:4px 7px; margin-top:9px; }
    .hero .hero-art .illustration { inset:0 auto auto -4%; width:108%; height:98%; }
    .hero-orbit { inset:auto 4px 4px auto; padding:4px 6px; }
    .columns[data-layout="clear"] .rail { grid-template-columns:minmax(0,1fr); gap:14px; }
    .panel { padding:16px; }
    .columns { margin-top:16px; }
    .agenda { padding-inline:12px; }
    .month-panel { padding:13px 8px; }
    .month-head .icon { width:44px; }
  }
  @media(max-width:360px){.heading .primary{font-size:12px;padding-inline:9px}#bottom-nav button{font-size:10px}}
  @media(prefers-contrast:more),(prefers-reduced-transparency:reduce){
    .panel,#bottom-nav,#shell .top { background:#f7fbfa; backdrop-filter:none; -webkit-backdrop-filter:none; }
    .hero-orbit { background:#142e32; }
  }
  @media(forced-colors:active){
    .timer-modes .active,.navbody .on,#bottom-nav .selected { text-decoration:underline; text-underline-offset:.23em; }
    .filters .active { outline:2px solid Highlight; outline-offset:-3px; }
    #bottom-nav .selected::after { border-top:2px solid Highlight; }
    .hero-art { border:1px solid ButtonText; }
  }
}
@layer workspace-finish {
  .review-reminders {
    display:flex; align-items:center; gap:8px; min-height:44px; width:100%; text-align:start;
    margin-top:12px; padding:8px 12px; border:1px solid var(--accent-dark); border-radius:10px;
    color:var(--accent-dark); background:var(--soft-accent); font-weight:620;
  }
  .review-reminders svg { width:16px; height:16px; }
  .review-reminders svg:last-child { margin-inline-start:auto; }
  .up-row > svg { width:15px; height:15px; margin-top:2px; color:var(--accent-dark); }
}

@layer workspace {
  .shop-head { flex-wrap:wrap; row-gap:12px; }
  .list-actions { display:flex; align-items:center; gap:4px; }
  .shop-head-actions { display:flex; align-items:center; gap:8px; }
  .shop-tools { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
  .tools [aria-current="page"] { background:var(--accent-light); color:var(--accent-dark); }
}
