:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:light}
*{box-sizing:border-box}body{margin:0;min-height:100dvh;display:grid;place-items:center;background:#e5e7ed;color:#536179}
button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,.bubble:focus-visible{outline:2px solid #50aacd;outline-offset:4px}
.phone{--ink:#546477;--muted:#8594a8;--line:rgba(108,135,157,.20);--glass:rgba(255,255,255,.62);--btn:rgba(255,255,255,.70);--sky:radial-gradient(ellipse at 12% 25%,rgba(255,204,223,.44),transparent 43%),radial-gradient(ellipse at 92% 62%,rgba(144,205,245,.48),transparent 45%),radial-gradient(ellipse at 45% 88%,rgba(183,242,226,.33),transparent 50%),linear-gradient(155deg,#f9fcfc 0%,#f0f6f9 57%,#e9f1fa 100%);position:relative;width:min(402px,100vw);height:min(850px,100dvh);overflow:hidden;border:5px solid #1c2029;border-radius:44px;box-shadow:0 30px 100px #28344a33;isolation:isolate;background:#f7f9fb;color:var(--ink)}
.phone.dark{--ink:#f1f1fa;--muted:#a2acc0;--line:rgba(215,227,255,.14);--glass:rgba(14,20,37,.62);--btn:rgba(57,68,95,.56);--sky:radial-gradient(ellipse at 90% 20%,rgba(79,59,120,.60),transparent 46%),radial-gradient(ellipse at 6% 75%,rgba(27,95,137,.34),transparent 56%),radial-gradient(ellipse at 70% 83%,rgba(38,37,87,.55),transparent 50%),linear-gradient(150deg,#07111b,#0d192a 55%,#111126);background:#081522}
.sky{position:absolute;inset:0;background:var(--sky);pointer-events:none;transition:background .4s}.sky:after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 53% 35%,rgba(255,255,255,.12),transparent 40%);opacity:.3}
/* No band behind the header: the sky runs under it. The brand keeps a
   shadow so it stays readable when a bubble drifts past. */
/* The strip iOS keeps for itself: the notch or island at the top, the
   home bar at the bottom. On a desktop it is zero and nothing moves, so
   the same numbers serve both. Written as custom properties because the
   physics needs them too — env() cannot be read from script, a custom
   property can. */
.phone{--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}
.header{position:absolute;left:0;right:0;top:0;height:calc(89px + var(--safe-top));padding:calc(27px + var(--safe-top)) 20px 8px;z-index:5;display:flex;align-items:center;justify-content:space-between;pointer-events:none}
.header>*{pointer-events:auto}
.brand{text-shadow:0 1px 3px rgba(255,255,255,.55)}
.dark .brand{text-shadow:0 1px 4px rgba(6,12,24,.6)}
.brand{font-size:17px;letter-spacing:.02em;font-weight:680}.subtitle{font-size:10px;color:var(--muted);margin-top:2px;letter-spacing:.07em;text-transform:uppercase}.header-actions{display:flex;gap:8px}
/* Translucent controls: the sky and any bubble behind them show through. */
.ico{width:34px;height:34px;border-radius:18px;border:1px solid rgba(255,255,255,.52);background:rgba(255,255,255,.14);color:var(--ink);display:grid;place-items:center;font-size:18px;backdrop-filter:blur(3px) saturate(1.15);-webkit-backdrop-filter:blur(3px) saturate(1.15)}
/* The edit pencil is a thin glyph and read as a speck at the shared size. */
#edit{font-size:25px;line-height:1}
.dark .ico{border-color:rgba(206,228,255,.26);background:rgba(120,150,200,.10)}
.stage{position:absolute;left:0;right:0;top:0;bottom:0;touch-action:none;overflow:hidden}
.bubble{position:absolute;left:0;top:0;border:0;padding:0;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;z-index:1;outline:none;will-change:transform}.bubble:active{cursor:grabbing}.bubble.nested{display:none}
.orb{position:relative;width:100%;height:100%;border-radius:50%;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse 55% 39% at 28% 21%,rgba(255,255,255,.86) 0%,rgba(255,255,255,.1) 46%,transparent 80%),radial-gradient(circle at 73% 73%,rgba(101,206,255,.28),transparent 39%),radial-gradient(circle at 29% 79%,rgba(235,112,203,.28),transparent 46%),conic-gradient(from 40deg at 50% 50%,rgba(105,223,240,.07),rgba(130,125,226,.16),rgba(239,153,196,.12),rgba(255,240,155,.11),rgba(131,228,241,.09));border:1.3px solid rgba(154,210,251,.77);box-shadow:inset 0 0 8px 2px rgba(255,255,255,.78),inset -6px -8px 16px rgba(141,129,210,.18),inset 6px 4px 13px rgba(121,234,249,.20),0 1px 3px rgba(82,127,178,.11),0 0 0 1px rgba(251,130,192,.15)}
.orb:before{content:"";position:absolute;inset:1px;border-radius:50%;pointer-events:none;background:conic-gradient(from 32deg,rgba(227,112,205,.1),rgba(112,215,251,.28) 16%,transparent 29%,rgba(255,201,105,.17) 42%,rgba(246,95,195,.28) 52%,transparent 67%,rgba(96,204,255,.32) 82%,rgba(250,131,197,.19) 97%);mask:radial-gradient(circle,transparent 62%,black 97%);-webkit-mask:radial-gradient(circle,transparent 62%,black 97%)}
.dark .orb{background:radial-gradient(ellipse 55% 37% at 24% 16%,rgba(255,255,255,.58),rgba(255,255,255,.0) 70%),radial-gradient(circle at 75% 65%,rgba(70,162,255,.46),transparent 43%),radial-gradient(circle at 19% 79%,rgba(255,101,214,.48),transparent 45%),radial-gradient(circle at 50% 49%,rgba(98,92,196,.22),rgba(154,238,250,.06) 70%);border:1.4px solid rgba(127,209,255,.80);box-shadow:inset 0 0 12px rgba(236,228,255,.31),inset -8px -7px 20px rgba(116,52,220,.32),inset 7px 5px 17px rgba(24,183,242,.27),0 2px 18px rgba(16,83,151,.18)}
.bubble-inner{width:100%;height:100%}

.orb-text{position:absolute;z-index:2;inset:20% 14%;display:grid;align-content:center;grid-template-columns:minmax(0,1fr);text-align:center;white-space:normal;overflow:hidden;line-height:1.22;font-weight:520;overflow-wrap:break-word;word-break:normal;hyphens:auto;pointer-events:none;color:#607087;text-shadow:0 1px 2px rgba(255,255,255,.9)}
.dark .orb-text{color:#f8f8ff;text-shadow:0 1px 5px rgba(14,15,54,.8)}
.bubble.small .orb-text{inset:25% 15%;opacity:.85}
.group-dot{position:absolute;right:3px;bottom:3px;min-width:19px;height:19px;border-radius:12px;padding:0 4px;background:rgba(255,255,255,.8);color:#6073a0;z-index:5;display:grid;place-items:center;font-size:10px;box-shadow:0 1px 6px #354b6433}.dark .group-dot{background:rgba(32,42,76,.8);color:#fff}
.grouping-target .orb{outline:3px solid rgba(104,196,246,.8);outline-offset:4px}
/* No plate: the controls float over the sky. The footer spans the width,
   so without pointer-events:none it would silently swallow drags in the
   bottom strip even where nothing is drawn. */
.footer{position:absolute;z-index:5;left:0;right:0;bottom:0;height:calc(96px + var(--safe-bottom));padding:9px 18px calc(18px + var(--safe-bottom));display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;pointer-events:none}
.footer button{pointer-events:auto}
.foot-actions{display:flex;align-items:center;gap:12px}/* The add control is itself a bubble, built from the same film recipe. */
.add{height:46px;width:46px;border-radius:25px;color:#487894;font-size:28px;line-height:1;
 border:1px solid rgba(255,255,255,.72);
 background:
  radial-gradient(circle closest-side,transparent 0 52%,rgba(171,161,224,.24) 86%,rgba(171,161,224,.08) 100%),
  radial-gradient(ellipse 22% 15% at 30% 21%,rgba(255,255,255,.98),rgba(255,255,255,.2) 56%,transparent 76%);
 box-shadow:inset 0 0 0 1.5px rgba(186,219,252,.46),0 2px 10px rgba(86,120,160,.10);
 backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.dark .add{color:#cfe8f6;border-color:rgba(206,228,255,.40);box-shadow:inset 0 0 0 1.5px rgba(206,228,255,.30),0 2px 12px rgba(8,16,32,.28)}
.footer-stat{font-size:10px;color:var(--muted);text-align:center;text-shadow:0 1px 3px rgba(255,255,255,.5)}
.dark .footer-stat{text-shadow:0 1px 4px rgba(6,12,24,.55)}
.dark .toast{border-color:rgba(190,215,250,.42);text-shadow:0 1px 4px rgba(6,12,24,.7)}
.focus{position:absolute;inset:86px 0 0;z-index:7;background:var(--sky);display:none;overflow:hidden}
.focus.visible{display:flex;flex-direction:column;padding-bottom:8px}
.focus-top{flex:0 0 48px;display:flex;justify-content:space-between;align-items:center;padding:0 19px;position:relative;z-index:4}
.focus .focus-center{position:relative;flex:0 1 auto;align-self:center;height:min(77vw,310px);min-height:104px;aspect-ratio:1;width:auto}.focus .focus-center .orb{box-shadow:inset 0 0 20px rgba(255,255,255,.62),inset -10px -11px 28px rgba(124,113,203,.26),0 14px 42px rgba(54,82,137,.12)}.focus .focus-center .orb-text{font-size:19px!important;line-height:1.36;inset:17% 17%}
.focus-meta{flex:0 0 auto;display:grid;gap:10px;justify-items:center;padding:12px 20px 0;z-index:2}
.pill{border:1px solid rgba(255,255,255,.46);border-radius:24px;padding:9px 16px;background:rgba(255,255,255,.26);color:var(--ink);backdrop-filter:blur(9px) saturate(1.2);-webkit-backdrop-filter:blur(9px) saturate(1.2)}
.dark .pill{border-color:rgba(206,228,255,.22);background:rgba(120,150,200,.16)}.pop,.dark .pop{background:linear-gradient(110deg,rgba(170,223,240,.88),rgba(242,186,219,.88));color:#23384f;border:1px solid rgba(255,255,255,.66);font-weight:700;box-shadow:0 3px 14px rgba(118,144,175,.18);padding:12px 24px}
.dark .pop{color:#1b2d42;border-color:rgba(255,255,255,.5);box-shadow:0 3px 16px rgba(8,16,32,.35)}.focus-desc{max-width:320px;text-align:center;font-size:11px;color:var(--muted)}
.focus-dock{flex:0 0 auto;margin-top:auto;overflow-x:auto;display:flex;align-items:center;gap:14px;padding:12px 12px 4px;scrollbar-width:thin}.mini{display:block;flex:0 0 auto;border-radius:50%;border:1px solid rgba(188,216,248,.8);height:43px;width:43px;box-shadow:inset 0 0 9px rgba(170,195,250,.35);background:radial-gradient(circle at 28% 20%,#fff,rgba(159,230,248,.25) 40%,rgba(241,157,213,.3) 75%,rgba(121,169,248,.4));cursor:pointer}.mini.selected{outline:2px solid #7dd6f3;outline-offset:3px}.mini-caption{display:block;max-width:75px;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);text-align:center;margin-top:6px}
.modal-cover{position:absolute;inset:0;z-index:12;background:rgba(8,17,31,.27);display:none;align-items:flex-end;justify-content:center}.modal-cover.show{display:flex}/* The sheet is pinned to the bottom, and until now it had no ceiling: a
   sheet taller than the screen simply stuck out above it with nothing to
   scroll. Measured on a 812px screen with twelve completed tasks — 941px
   tall, top edge at -129, the heading and the first rows of the list
   unreachable by any gesture.
   A ceiling, and its own scrolling, fixes both at once: a flex item that
   may not exceed its container cannot overflow above it.
   The ceiling leaves out the notch rather than padding away from it. A
   top padding would have applied to every sheet, and the short ones —
   the task editor — are pinned to the bottom nowhere near the notch, so
   it only opened an 82px gap above their heading. Capped instead, a
   sheet simply never reaches that high. */
.sheet{width:100%;max-height:calc(100% - var(--safe-top));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border-radius:24px 24px 0 0;padding:23px 23px calc(38px + var(--safe-bottom));background:rgba(247,250,255,.98);color:#3b506a;box-shadow:0 -12px 40px #162b4a20}.dark .sheet{background:#1d253b;color:#edf0fb}.sheet h3{margin:0 0 9px;font-size:17px}.sheet p{font-size:12px;line-height:1.5;opacity:.8}.sheet textarea{width:100%;min-height:78px;resize:vertical;border:1px solid #cddce8;border-radius:12px;padding:11px;outline:none;background:#fff;color:#32435a}/* One row, equal widths whatever the count: auto-columns at 1fr means a
   sheet with one, two or three buttons all read the same way. They used to
   be sized by their own text, so no two matched. */
.sheet-actions{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:10px;margin-top:14px}
.sheet-actions button{
 border:1px solid rgba(120,160,200,.34);background:rgba(255,255,255,.52);color:#3b5770;
 padding:11px 10px;border-radius:12px;font-size:13px;min-width:0;
 backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
}
.sheet-actions button.primary{background:rgba(188,228,239,.62);border-color:rgba(150,210,228,.70);font-weight:680;color:#274d69}
.dark .sheet-actions button{border-color:rgba(206,228,255,.20);background:rgba(120,150,200,.18);color:#e7ecfb}
.dark .sheet-actions button.primary{background:rgba(124,198,223,.30);border-color:rgba(124,198,223,.44);color:#eaf6fb}
/* Outline only: the sky and any bubble under it stay visible. The text
   takes the page ink, so it contrasts with whatever is behind. */
.toast{position:absolute;z-index:20;left:18px;right:18px;bottom:118px;padding:12px 14px;display:none;align-items:center;justify-content:space-between;gap:12px;border-radius:14px;background:transparent;border:1px solid rgba(90,120,155,.55);color:var(--ink);text-shadow:0 1px 3px rgba(255,255,255,.6);box-shadow:none;font-size:12px}.toast.visible{display:flex}.toast button{color:#9ee8fa;background:none;border:0;font-weight:700}
.burst{pointer-events:none;position:absolute;inset:0;z-index:9;display:none;align-items:center;justify-content:center}.burst.show{display:flex}.burst-ring{width:60vw;max-width:300px;aspect-ratio:1;border:5px solid rgba(132,213,245,.75);border-radius:50%;animation:burstring .55s ease-out both;box-shadow:0 0 16px rgba(243,160,219,.62)}
@keyframes burstring{0%{transform:scale(.77);opacity:1}85%{opacity:.8}100%{transform:scale(1.6);opacity:0}}
@media (max-width:500px){body{display:block;background:transparent}.phone{border:0;border-radius:0;width:100vw;height:100dvh;box-shadow:none}.focus .focus-center{width:min(76vw,305px)}}
/* Living surface motion. Each bubble drifts on its own timing, from custom
   properties set once per bubble from its id.
   This block replaces four earlier passes that each redefined the same two
   animations and left the overridden versions behind: @keyframes alive was
   declared twice, and the reduced-motion guard three times. Only the last of
   each was ever in effect. */
.bubble::after{content:"";position:absolute;inset:-13px;border-radius:50%;z-index:3;background:transparent;touch-action:none}
.bubble .bubble-inner{animation:alive var(--float-time,3.2s) ease-in-out infinite alternate;animation-delay:var(--phase,0s)}
.bubble .orb:before{animation:filmDrift calc(var(--float-time,3s) * 1.3) linear infinite alternate;animation-delay:var(--phase,0s)}
@keyframes alive{
  0%{transform:translate3d(calc(var(--drift-x,3px) * -.8),calc(var(--drift-y,3px) * -.8),0) scale(.965) rotate(calc(var(--swing,3deg) * -1))}
  100%{transform:translate3d(var(--drift-x,3px),var(--drift-y,3px),0) scale(1.045) rotate(var(--swing,3deg))}
}
@keyframes filmDrift{from{transform:rotate(-9deg);filter:hue-rotate(-8deg)}to{transform:rotate(12deg);filter:hue-rotate(18deg)}}
@media(prefers-reduced-motion:reduce){.bubble-inner,.bubble .orb:before{animation:none!important}.burst-ring{animation-duration:.1s}}

/* Separate idle orbit from spring: spring only animates the membrane, never the orbit wrapper. */
.bubble .orb{transform-origin:center;}
.bubble .bubble-inner{animation-play-state:running}
.bubble:active .bubble-inner{animation-play-state:paused}

/* Connected bubbles remain distinct; all members use their own animation phase. */
.group-tray{flex:0 0 auto;margin:10px 12px 0;z-index:5;padding:9px 8px 12px;border-radius:20px;background:var(--glass);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.group-tray-title{font-size:11px;color:var(--muted);text-align:center;margin:0 0 9px}
.group-tray-row{display:flex;justify-content:flex-start;justify-content:safe center;gap:8px;overflow-x:auto;padding:6px 4px 8px}
.group-member{flex:0 0 96px;display:flex;flex-direction:column;align-items:center;gap:7px}
.group-orb{width:80px;height:80px;border:1px solid #a8cfee;border-radius:50%;color:var(--ink);font-size:9px;line-height:1.2;overflow:hidden;overflow-wrap:break-word;hyphens:auto;padding:9px;background:radial-gradient(circle at 23% 15%,#fff9,transparent 35%),radial-gradient(circle at 70% 80%,#f7a5d288,transparent 47%),radial-gradient(circle at 25% 82%,#90dce299,transparent 50%),#ffffff48;animation:groupFloat 3s ease-in-out infinite alternate;box-shadow:inset -4px -5px 14px #8e9de544}
.group-member:nth-child(2n) .group-orb{animation-delay:-1.4s;animation-duration:3.7s}
.group-member:nth-child(3n) .group-orb{animation-delay:-2.1s;animation-duration:2.8s}
.group-orb.current{outline:2px solid #8baadc;outline-offset:3px}
.group-member-actions{display:flex;gap:6px}
.group-member-actions button{background:rgba(255,255,255,.30);color:var(--ink);border:1px solid rgba(255,255,255,.46);border-radius:14px;min-width:31px;height:28px;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.dark .group-member-actions button{background:rgba(120,150,200,.18);border-color:rgba(206,228,255,.22)}
.focus-mini-item{flex:0 0 76px;display:flex;align-items:center;flex-direction:column}
.focus-mini-item.in-group .mini{outline:2px solid #9ed4ef;outline-offset:2px}
@keyframes groupFloat{from{transform:translateY(-3px) scale(.975)}to{transform:translateY(3px) scale(1.035)}}
.scroll-space{position:absolute;left:0;right:0;top:0;bottom:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;touch-action:pan-y}
.scroll-space::-webkit-scrollbar{display:none}
.scroll-space .stage{position:relative;inset:auto;width:100%;height:300%;min-height:100%;overflow:visible;touch-action:pan-y}
.scroll-space .bubble{touch-action:none}
.phone.grid-mode .bubble .bubble-inner,.phone.grid-mode .bubble .orb:before{animation:none!important;transition:none!important}
.phone.grid-mode .bubble{transition:none}
.bubble .orb.holding{z-index:8;filter:brightness(1.12);overflow:visible}
.bubble:has(.orb.holding){z-index:35!important}


/* Category hues tint only the lower soap film; all bubbles retain the same glass optics. */
.tone-neutral{--tone-rgb:167,155,230;--tone-rim:164,210,255}
.tone-work{--tone-rgb:59,162,251;--tone-rim:104,201,255}
.tone-personal{--tone-rgb:252,107,178;--tone-rim:255,165,214}
.tone-health{--tone-rgb:74,208,153;--tone-rim:128,243,197}

/* ── Поверхность пузыря ──────────────────────────────────────────────
   A soap film, not a ball. The middle stays nearly clear so the sky shows
   through, and all the colour and light sit on the rim, where you look
   through more of the film at a grazing angle.
   This replaces four earlier passes that each redefined the body gradient
   and left the previous one underneath; the light theme in particular
   filled 78%x54% of the bubble at 46% opacity, which is what made it read
   as plastic. Category colour still comes from --tone-rgb / --tone-rim. */
.bubble .orb,.focus-center .orb{
 background:
  /* rim: the only place the body carries colour */
  radial-gradient(circle closest-side at 50% 50%,transparent 0 56%,rgba(var(--tone-rgb,171,161,224),.26) 86%,rgba(var(--tone-rgb,171,161,224),.10) 100%),
  /* specular highlight: a reflected light source, small and sharp */
  radial-gradient(ellipse 22.5% 15% at 29% 20%,rgba(255,255,255,.98),rgba(255,255,255,.25) 54%,transparent 76%),
  /* second glint: light through the film, bounced off the far wall */
  radial-gradient(ellipse 8% 5.5% at 71% 75%,rgba(255,255,255,.60),transparent 70%);
 border:1px solid rgba(255,255,255,.68);
 box-shadow:
  inset 0 0 0 1.5px rgba(var(--tone-rim,168,210,251),.50),
  inset 0 -7px 15px -7px rgba(var(--tone-rgb,171,161,224),.42),
  0 1px 6px rgba(80,110,145,.09);
}
.dark .bubble .orb,.dark .focus-center .orb{
 background:
  radial-gradient(circle closest-side at 50% 50%,transparent 0 54%,rgba(var(--tone-rgb,171,161,224),.30) 86%,rgba(var(--tone-rgb,171,161,224),.12) 100%),
  radial-gradient(ellipse 22.5% 15% at 29% 20%,rgba(255,255,255,.95),rgba(255,255,255,.22) 54%,transparent 76%),
  radial-gradient(ellipse 8% 5.5% at 71% 75%,rgba(255,255,255,.55),transparent 70%);
 border-color:rgba(var(--tone-rim,168,210,251),.52);
 box-shadow:
  inset 0 0 0 1.5px rgba(var(--tone-rim,168,210,251),.42),
  inset 0 -7px 15px -7px rgba(var(--tone-rgb,171,161,224),.46),
  0 1px 7px rgba(10,20,40,.22);
}

/* The iridescent film, confined to the rim; filmDrift animates it. */
.bubble .orb:before,.focus-center .orb:before{
 inset:1px;
 background:conic-gradient(from 18deg,
  rgba(255,111,198,.55),rgba(108,217,255,.60) 15%,rgba(255,236,150,.40) 31%,
  rgba(141,254,212,.50) 48%,rgba(155,155,255,.55) 64%,rgba(255,135,206,.50) 82%,
  rgba(117,222,255,.55) 100%);
 mask:radial-gradient(circle closest-side,transparent 0 74%,black 93%,rgba(0,0,0,.5) 100%);
 -webkit-mask:radial-gradient(circle closest-side,transparent 0 74%,black 93%,rgba(0,0,0,.5) 100%);
 filter:blur(.6px);
 opacity:.62;
}
.dark .bubble .orb:before,.dark .focus-center .orb:before{opacity:.80}

.tone-picker{display:flex;justify-content:center;gap:13px;align-items:center;padding:5px 0}
.tone-swatch{width:29px;height:29px;border-radius:50%;border:1px solid rgba(150,190,224,.65);background:radial-gradient(circle at 29% 20%,#fff,transparent 45%),radial-gradient(circle at 56% 85%,rgba(var(--tone-rgb,171,161,224),.88),rgba(var(--tone-rgb,171,161,224),.13) 72%);box-shadow:inset 0 0 7px #fff8,0 1px 6px #819bb344;cursor:pointer}
.tone-swatch.selected{outline:2px solid var(--ink);outline-offset:3px}
.size-picker{gap:9px;flex-wrap:wrap}
.size-choice{font:inherit;font-size:12px;font-weight:600;padding:7px 14px;border-radius:20px;border:1px solid rgba(150,190,224,.65);background:rgba(255,255,255,.3);color:var(--ink);cursor:pointer}
.dark .size-choice{border-color:rgba(206,228,255,.24);background:rgba(120,150,200,.18)}
.size-choice.selected{outline:2px solid var(--ink);outline-offset:2px}
/* Sticky, so it is still there after a long archive has been scrolled. */
.sheet-close{position:sticky;top:0;z-index:6;display:block;margin:-6px -6px 2px auto;width:34px;height:34px;border-radius:50%;border:1px solid rgba(150,190,224,.5);background:rgba(247,250,255,.94);color:#3b506a;font-size:15px;line-height:1;cursor:pointer;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.dark .sheet-close{border-color:rgba(206,228,255,.2);background:rgba(29,37,59,.94);color:#edf0fb}
.sheet-tones{justify-content:flex-start;padding:15px 5px 7px;gap:17px}
.group-member .group-orb,.tone-work .mini,.tone-personal .mini,.tone-health .mini{background:radial-gradient(circle at 25% 18%,#fff9,transparent 42%),radial-gradient(circle at 50% 90%,rgba(var(--tone-rgb,171,161,224),.65),transparent 78%),rgba(192,227,245,.16)}

.phone:not(.dark){
 --ink:#46576d;--muted:#546880;--line:rgba(108,135,157,.23);
 --glass:rgba(237,242,250,.76);--btn:rgba(245,249,253,.78);
 --sky:
  radial-gradient(ellipse at 18% 8%,rgba(255,196,170,.50),transparent 48%),
  radial-gradient(ellipse at 88% 30%,rgba(168,196,240,.52),transparent 52%),
  radial-gradient(ellipse at 50% 104%,rgba(255,214,196,.46),transparent 56%),
  linear-gradient(168deg,#b9cfe4 0%,#c9d8e6 42%,#dcd6e0 72%,#ecd9d4 100%);
 background:#cdd9e4;
}

/* iOS draws a date field and a select as native controls with their own
   metrics, so width and height simply do not apply to them: on the phone the
   two boxes came out different sizes and touching, while Chromium showed
   them equal. appearance:none hands sizing back to the stylesheet, and the
   inner value box of a date field needs its own height to sit centred. */
.task-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.task-fields label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:inherit;min-width:0}
.task-fields input,.task-fields select{
 -webkit-appearance:none;appearance:none;
 display:block;box-sizing:border-box;
 width:100%;min-width:0;max-width:100%;
 height:42px;min-height:42px;line-height:normal;
 margin:0;border:1px solid rgba(120,160,200,.34);border-radius:12px;
 padding:0 10px;background-color:#fff;color:#30475d;
 font-family:inherit;font-size:13px;
}
.task-fields input[type="date"]::-webkit-date-and-time-value{height:40px;line-height:40px;margin:0;text-align:left}
.task-fields input[type="date"]::-webkit-calendar-picker-indicator{margin:0;padding:0;opacity:.55}
/* appearance:none takes the select arrow with it, so draw one. */
.task-fields select{padding-right:28px;background-image:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%278%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1l5 5 5-5%27 fill=%27none%27 stroke=%27%23587089%27 stroke-width=%271.8%27 stroke-linecap=%27round%27/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}
.dark .task-fields select{background-image:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%278%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1l5 5 5-5%27 fill=%27none%27 stroke=%27%23cfe0f5%27 stroke-width=%271.8%27 stroke-linecap=%27round%27/%3E%3C/svg%3E")}.task-detail-summary{font-size:11px;color:var(--muted);text-align:center}.dark .task-fields input,.dark .task-fields select{background-color:#2b3650;color:#fff;border-color:#59647c}
.dark .task-fields input[type="date"]::-webkit-calendar-picker-indicator{filter:invert(1);opacity:.6}
.today-toggle{width:auto;min-width:55px;padding:0 8px;font-size:12px;font-weight:650}.today-toggle.active{background:rgba(135,199,233,.43)}.today-view{position:absolute;top:89px;bottom:96px;left:0;right:0;z-index:4;overflow:auto;padding:20px 19px;background:var(--sky)}.today-view[hidden]{display:none}.today-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.today-label{font-size:10px;font-weight:650;letter-spacing:.12em;color:var(--muted)}.today-date{font-size:20px;margin-top:5px}.today-total,.today-section-title,.today-sub{font-size:11px;color:var(--muted)}.today-section-title{margin:19px 0 10px;font-weight:650}.today-task{display:flex;align-items:center;gap:14px;width:100%;padding:11px;margin-bottom:9px;border:1px solid var(--line);border-radius:18px;background:var(--glass);color:var(--ink);text-align:left}.today-orb{width:54px;height:54px;flex:none;position:relative;border-radius:50%}.today-orb .orb{display:block;width:100%;height:100%;border-radius:50%}.today-name{font-size:14px;line-height:1.4;overflow-wrap:break-word}.today-sub{display:block;margin-top:4px}.today-empty{padding:34px 10px;color:var(--muted);font-size:13px;line-height:1.65;text-align:center}

/* Archive, backup and destructive actions inside the bottom sheet. */
.sheet-divider{height:1px;background:#cedae8;margin:22px 0 18px;border:0}.dark .sheet-divider{background:#3a4560}
.sheet-hint{font-size:11px;line-height:1.5;opacity:.75;margin:0}
/* Completed tasks are what this screen is for, and 184px showed three
   of them while the settings below took the rest of the room. Measured
   against the screen now, so a tall telephone gives the list more. */
.archive-list{max-height:min(46vh,400px);overflow:auto;overscroll-behavior:contain;margin-top:4px;display:flex;flex-direction:column;gap:6px}
.archive-row{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #d6e1ec;border-radius:12px;background:#fff}
.dark .archive-row{background:#263050;border-color:#3f4a66}
.archive-title{flex:1;min-width:0;font-size:12px;line-height:1.35;overflow-wrap:break-word;opacity:.85}
.archive-restore,.archive-drop{flex:none;width:30px;height:28px;border-radius:10px;border:1px solid #cedae8;background:#eef5fa;color:#3b5770;font-size:13px}
.dark .archive-restore,.dark .archive-drop{background:#33405f;border-color:#4a5675;color:#e7ecfb}
.archive-drop{color:#a2555f}.dark .archive-drop{color:#f0a9b2}
.sheet-actions button.danger{background:rgba(250,233,236,.62);border-color:rgba(236,205,212,.72);color:#8e4350}
.dark .sheet-actions button.danger{background:rgba(103,58,69,.40);border-color:rgba(123,70,82,.60);color:#f3bcc4}

/* The instruction list in the about sheet. Each row is its own two
   columns rather than one grid down the whole list: a shared column would
   have to be as wide as "Щипок двумя пальцами" and would then strand
   "Today" and "Коснуться" against a gap half the screen wide, with every
   result wrapping to make room for it. Per row, each line reads straight
   across and the width goes where that line needs it. */
.about-list{margin:14px 0 4px;display:grid;gap:9px}
.about-row{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:12px;align-items:baseline;font-size:13px;line-height:1.4}
.about-do{font-weight:650;color:var(--ink);white-space:nowrap}
.about-is{color:var(--muted)}
/* Spanish runs long: below this the gesture would be squeezed to one word
   per line, so the two parts stack instead. */
@media (max-width:360px){
 .about-row{grid-template-columns:minmax(0,1fr);gap:1px}
}
.sheet-links{margin-top:12px;text-align:center}
.sheet-links a{color:var(--ink);opacity:.85}

/* Section headings on the grid. Positioned like the bubbles — a
   transform rather than top, so the compositor moves them and the page
   is not laid out again on every change. */
.grid-heading{position:absolute;left:0;top:0;z-index:2;padding:0 20px;width:100%;height:34px;display:flex;align-items:center;font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);pointer-events:none;will-change:transform}
.phone:not(.grid-mode) .grid-heading{display:none}
