/* =============================================================================
   Studiotaku styles. Written out in full on purpose, so that you can read and change them.

   CHANGING THE LOOK WITH YOUR OWN CSS (a browser add-on such as Stylus, or the custom CSS field)
   - Put your CSS after this file and start your rule with html.d2.d2.d2, so that it wins in every theme.
   - Colours are variables. The main ones:
       --m-primary               accent colour (selected-item bar, switches, focus rings, highlights)
       --m-on-primary            text and icons on the accent colour
       --m-surface               page background
       --m-on-surface            main text
       --m-on-surface-variant    quieter text, menu text
       --m-outline-variant       thin lines
       --m-secondary-container   background of the selected menu item and of chips
       --m-sc-lowest ... --m-sc-highest   backgrounds of cards and panels, from lightest to strongest
       --m-error                 late and overdue items
       --m-btn, --m-btnfg        background (a gradient) and text of the big buttons
     Search this file for "2.0 tokens" to see every colour of every theme.
   - Fonts: --f-head (headlines) and --f-body (text). Menu width: --rail-w.
   - The themes are html.d2 (Light) and html.d2[data-theme="dark"], "oled", "bi", "gay", "lesbian", "nb".
   - Example:
       html.d2.d2.d2 { --m-primary: #00a060; --m-on-primary: #fff; --f-body: Georgia, serif; }
   ============================================================================= */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/Inter-Regular.woff) format("woff");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/Inter-Medium.woff) format("woff");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/Inter-SemiBold.woff) format("woff");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/Inter-Bold.woff) format("woff");
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(../fonts/Figtree-VariableFont_wght.woff) format("woff");
}

:root {
  --ease: cubic-bezier(.76,0,.24,1);
  --bg: #E8EDFB;
  --sf: #fff;
  --ink: #141B3A;
  --mute: #59628A;
  --line: #C5CEEC;
  --acc: #C4025F;
  --onacc: #fff;
  --acc2: #8A3F86;
  --bgg: linear-gradient(135deg,#F7E4F1 0%,#EBE5F8 48%,#DCE6FC 100%);
  --mag: 7%;
  --glow: #D60270;
  --mg: linear-gradient(135deg,transparent 25%,color-mix(in srgb,var(--glow) var(--mag),transparent) 100%);
  --acc3: #0038A8;
  --bi: linear-gradient(90deg,#D60270 0 40%,#9B4F96 40% 60%,#0038A8 60% 100%);
  --g1: #D60270;
  --g2: #9B4F96;
  --g3: #2F5BD8;
  --tlg: linear-gradient(135deg,color-mix(in srgb,var(--g1) 16%,var(--bg)) 0%,color-mix(in srgb,var(--g2) 12%,var(--bg)) 50%,color-mix(in srgb,var(--g3) 18%,var(--bg)) 100%);
  --str: #7A4FD0;
  --sh: #C2410C;
  --warn: #B4570A;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top,0px);
  padding-bottom: env(safe-area-inset-bottom,0px);
}

@media (prefers-color-scheme:dark) {
  :root:not([data-theme]) {
    --bg: #1E1F22;
    --sf: #2B2D31;
    --ink: #E6E8EB;
    --mute: #A3A8B0;
    --line: #3F4248;
    --acc: #8EA4FF;
    --onacc: #0E1534;
    --acc2: #B3BEEA;
    --bgg: none;
    --mag: 0%;
    --glow: #8EA4FF;
    --acc3: #8EA4FF;
    --bi: linear-gradient(90deg,#8EA4FF,#B3BEEA);
    --g1: #F0645F;
    --g2: #E0A15A;
    --g3: #8EA4FF;
    --tlg: var(--sf);
    --str: #A98BF0;
    --sh: #F59E6B;
    --warn: #F0A25B;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #1E1F22;
  --sf: #2B2D31;
  --ink: #E6E8EB;
  --mute: #A3A8B0;
  --line: #3F4248;
  --acc: #8EA4FF;
  --onacc: #0E1534;
  --acc2: #B3BEEA;
  --bgg: none;
  --mag: 0%;
  --glow: #8EA4FF;
  --acc3: #8EA4FF;
  --bi: linear-gradient(90deg,#8EA4FF,#B3BEEA);
  --g1: #F0645F;
  --g2: #E0A15A;
  --g3: #8EA4FF;
  --tlg: var(--sf);
  --str: #A98BF0;
  --sh: #F59E6B;
  --warn: #F0A25B;
  color-scheme: dark;
}

:root[data-theme="bi"] {
  --bg: #0C1330;
  --sf: #151D42;
  --ink: #E8ECFB;
  --mute: #9AA4CF;
  --line: #2B366B;
  --acc: #FF5BA8;
  --onacc: #2A0016;
  --acc2: #C58BC1;
  --bgg: linear-gradient(135deg,#2E0B2B 0%,#1B1034 46%,#080F28 100%);
  --mag: 18%;
  --glow: #D60270;
  --acc3: #7C9BFF;
  --bi: linear-gradient(90deg,#D60270 0 40%,#9B4F96 40% 60%,#2F5BD8 60% 100%);
  --g1: #D60270;
  --g2: #9B4F96;
  --g3: #2F5BD8;
  --str: #A98BF0;
  --sh: #F59E6B;
  --warn: #F0A25B;
  color-scheme: dark;
}

:root[data-theme="gay"] {
  --bg: #0A1B20;
  --sf: #12292F;
  --ink: #E4F7F1;
  --mute: #8FB8B6;
  --line: #27484F;
  --acc: #3FD6B2;
  --onacc: #03201A;
  --acc2: #8DB6EA;
  --bgg: linear-gradient(135deg,#0B2A28 0%,#0A1E2C 46%,#0D1033 100%);
  --mag: 13%;
  --glow: #26CEAA;
  --acc3: #8DB6EA;
  --bi: linear-gradient(90deg,#078D70 0.0% 14.29%,#26CEAA 14.29% 28.57%,#98E8C1 28.57% 42.86%,#FFFFFF 42.86% 57.14%,#7BADE2 57.14% 71.43%,#5D55D6 71.43% 85.71%,#7B5CDB 85.71% 100.0%);
  --g1: #26CEAA;
  --g2: #7BADE2;
  --g3: #5049CC;
  --str: #9A92F5;
  --sh: #F2B27A;
  --warn: #EFC05A;
  color-scheme: dark;
}

:root[data-theme="lesbian"] {
  --bg: #1C0E10;
  --sf: #2C181B;
  --ink: #FFEEE4;
  --mute: #CDA39B;
  --line: #573035;
  --acc: #FF9A56;
  --onacc: #2A0E00;
  --acc2: #E27DBB;
  --bgg: linear-gradient(135deg,#2E120C 0%,#25101A 46%,#190A1D 100%);
  --mag: 13%;
  --glow: #D162A4;
  --acc3: #E27DBB;
  --bi: linear-gradient(90deg,#D52D00 0.0% 14.29%,#EF7627 14.29% 28.57%,#FF9A56 28.57% 42.86%,#FFFFFF 42.86% 57.14%,#D162A4 57.14% 71.43%,#B55690 71.43% 85.71%,#C41C79 85.71% 100.0%);
  --g1: #FF9A56;
  --g2: #D162A4;
  --g3: #A30262;
  --str: #E27DBB;
  --sh: #F4D58A;
  --warn: #F2D06B;
  color-scheme: dark;
}

:root[data-theme="nb"] {
  --bg: #131019;
  --sf: #1E1A2A;
  --ink: #F5F2FB;
  --mute: #A9A2BC;
  --line: #3B3453;
  --acc: #F7EE4A;
  --onacc: #1A1800;
  --acc2: #BC8CEB;
  --bgg: linear-gradient(135deg,#221C2E 0%,#15121D 50%,#0D0B13 100%);
  --mag: 14%;
  --glow: #9C59D1;
  --acc3: #BC8CEB;
  --bi: linear-gradient(90deg,#FCF434 0.0% 25.0%,#FFFFFF 25.0% 50.0%,#9C59D1 50.0% 75.0%,#6E6988 75.0% 100.0%);
  --g1: #F7EE4A;
  --g2: #BC8CEB;
  --g3: #E8E4F0;
  --str: #BC8CEB;
  --sh: #FFB066;
  --warn: #FF9A7A;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: env(safe-area-inset-top,0px);
}

body {
  margin: 0;
  background: var(--bg);
  background-image: var(--bgg);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--ink);
  font: 400 16px/1.5 "Bricolage Grotesque",system-ui,-apple-system,"Segoe UI",sans-serif;
}

main {
  max-width: 1560px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.thg {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(206px,1fr));
  gap: 8px;
}

.thb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
  min-height: 48px;
}

.thb:hover {
  border-color: color-mix(in srgb,var(--acc) 60%,var(--line));
}

.thb[aria-checked=true] {
  border-color: var(--acc);
  background: color-mix(in srgb,var(--acc) 16%,transparent);
}

.thsw {
  position: relative;
  width: 40px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid color-mix(in srgb,var(--ink) 28%,transparent);
  overflow: hidden;
  flex: none;
}

.thsw i {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
}

.thsw b {
  position: absolute;
  left: 5px;
  bottom: 5px;
  width: 15px;
  height: 6px;
  border-radius: 3px;
}

.brand {
  font-weight: 800;
  font-size: 18px;
  color: var(--mute);
  position: relative;
  display: inline-block;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.brand .ver {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 3px;
  z-index: 55;
  pointer-events: none;
  overflow: hidden;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  color: var(--mute);
  background: color-mix(in srgb,var(--sf) 92%,transparent);
  border: 1.5px solid var(--line);
  padding: 1px 11px;
  clip-path: inset(0 100% 0 0 round 999px);
  opacity: 0;
  transform: translateY(-70%);
  transition: clip-path .55s var(--ease),transform .55s var(--ease),opacity .3s ease .05s;
}

.brand .ver>span {
  display: block;
  transform: translateX(-30%);
  transition: transform .55s var(--ease);
}

.brand.vshow .ver {
  clip-path: inset(0 0 0 0 round 999px);
  opacity: 1;
  transform: none;
}

.brand.vshow .ver>span {
  transform: none;
}

@media (prefers-reduced-motion:reduce) {
  .brand .ver,
  .brand .ver>span {
    transition: opacity .2s;
  }
  .brand .ver {
    clip-path: none;
    transform: none;
  }
}

.brand .bw {
  background: var(--bi);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

body::before {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--bi);
  z-index: 50;
  pointer-events: none;
}

h1 {
  font-weight: 800;
  font-size: clamp(24px,4vw,38px);
  line-height: 1.5;
  margin: 16px 0 8px;
  max-width: 26em;
}

h3 {
  font-size: 16px;
  margin: 18px 0 6px;
}

select,
input,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--sf);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 3px 8px;
}

h1 select {
  font-weight: 800;
  font-size: inherit;
  border: 0;
  border-bottom: 3px solid var(--acc);
  border-radius: 0;
  background: transparent;
  padding: 0 2px;
  cursor: pointer;
}

button {
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--acc);
  outline-offset: 2px;
}

.btn {
  background: var(--acc);
  color: var(--onacc);
  border: 0;
  border-radius: 10px;
  padding: 9px 18px;
  font-weight: 600;
}

.ghost {
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 6px 12px;
}

.dc {
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 1px 11px;
  margin: 0 2px;
  vertical-align: middle;
}

.dc[aria-pressed=true] {
  background: var(--str);
  border-color: var(--str);
  color: #fff;
}

.mute {
  color: var(--mute);
  font-size: 14px;
}

#app {
  display: none;
}

.on #app {
  display: block;
}

.on #go {
  display: none;
}

.layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 14px;
}

@media (min-width:960px) {
  .layout {
    grid-template-columns: 1fr 340px;
  }
}

.card {
  background: var(--sf);
  border-radius: 14px;
  padding: 20px;
}

.ttl {
  width: 100%;
  font-size: clamp(22px,3.4vw,32px);
  font-weight: 800;
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 2px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 6px;
  margin: 16px 0;
}

.steps button {
  text-align: left;
  border: 1.5px solid var(--line);
  background: transparent;
  border-radius: 10px;
  padding: 6px 8px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}

.steps small {
  display: block;
  font-weight: 400;
  color: var(--mute);
}

.steps .done {
  border-color: var(--acc);
  color: var(--acc);
}

.steps .now {
  background: var(--acc);
  border-color: var(--acc);
  color: var(--onacc);
}

.steps .now small {
  color: inherit;
  opacity: .85;
}

.steps .late {
  background: var(--warn);
  border-color: var(--warn);
  color: #fff;
}

.steps .late small {
  color: #fff;
}

.ab {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ab textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
}

.ab label {
  font-weight: 600;
  font-size: 14px;
}

.pick {
  border-left: 4px solid var(--acc);
  padding-left: 10px;
  margin: 10px 0;
}

.chk {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 3px 0;
}

ul.l {
  padding-left: 18px;
  margin: 4px 0;
}

.rail {
  align-self: start;
}

.rail h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.item input {
  width: 100%;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  padding: 0 6px;
  margin-right: 6px;
  border: 1.5px solid;
}

.tag.v {
  color: var(--acc);
}

.tag.s {
  color: var(--strp,var(--str));
}

.tag.k {
  color: var(--sh);
}

button.vid {
  text-align: left;
  width: 100%;
  border: 1.5px solid var(--vc,var(--acc));
  border-radius: 8px;
  background: transparent;
  padding: 4px 8px;
  font-weight: 600;
}

button.vid.cur {
  background: var(--vc,var(--acc));
  color: var(--onacc);
}

button.vid.cur[style*="--vc"] {
  color: #fff;
}

button.vid[style*="--pc"] {
  border-color: color-mix(in srgb,var(--pc) 55%,transparent);
}

button.vid[style*="--pc"]:not(.cur):not(.shortslot) {
  background: linear-gradient(90deg,color-mix(in srgb,var(--pc) 40%,transparent),color-mix(in srgb,var(--vc) 24%,transparent) 70%);
}

button.vid[style*="--pc"] .dots5 {
  color: var(--pc);
}

button.vid.cur[style*="--pc"] {
  border-color: var(--pc);
}

button.vid.cur[style*="--pc"] .dots5 {
  color: #fff;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom,0px));
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 10px;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
  max-width: 90vw;
}

#toast.show {
  opacity: 1;
}

.side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: start;
}

.side h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.idea {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  margin: 4px 0;
  cursor: grab;
  font-size: 14px;
  background: var(--bg);
}

.idea button {
  border: 0;
  background: transparent;
  color: var(--acc);
  font-weight: 600;
  padding: 0 4px;
}

.ilist {
  max-height: 260px;
  overflow: auto;
}

.mc {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 3px;
  text-align: center;
  font-size: 13px;
}

.mc .h {
  font-size: 12px;
  color: var(--mute);
}

.dz {
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  min-height: 46px;
  padding: 2px;
  cursor: pointer;
}

.dz small {
  font-size: 10px;
}

.dz.past {
  opacity: .4;
}

.dz.cur {
  border: 2px solid var(--acc);
}

.dots i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin: 0 1px;
}

.over {
  outline: 3px solid var(--acc);
  background: color-mix(in srgb,var(--acc) 18%,transparent);
}

.top {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

#next {
  margin-left: auto;
  order: 1;
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  justify-content: flex-end;
}

#next button {
  display: flex;
  gap: 8px;
  align-items: baseline;
  max-width: 320px;
}

#next .nl {
  opacity: .65;
  font-weight: 500;
}

#next .nt {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#next .nd {
  white-space: nowrap;
  opacity: .8;
}

#setb {
  order: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  margin-left: 0;
}

#setb svg {
  transition: transform .3s var(--ease);
}

#setb:hover svg {
  transform: rotate(60deg);
}

dialog {
  background: var(--sf);
  color: var(--ink);
  border: 0;
  border-radius: 14px;
  padding: 22px;
  max-width: min(680px,94vw);
}

dialog {
  opacity: 0;
  transform: translateY(14px) scale(.97);
  transition: opacity .22s ease,transform .22s ease;
}

dialog.show {
  opacity: 1;
  transform: none;
}

dialog::backdrop {
  background: #0000;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition: background .22s ease,backdrop-filter .22s ease,-webkit-backdrop-filter .22s ease;
}

dialog.show::backdrop {
  background: #0005;
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
}

@media (prefers-reduced-motion:reduce) {
  dialog,
  dialog::backdrop {
    transition: none;
  }
}

dialog h1 {
  font-size: 24px;
  margin-top: 6px;
}

.blk {
  position: relative;
  margin: 8px 0;
}

.blk textarea {
  width: 100%;
  border: 0;
  background: transparent;
  resize: none;
  overflow: hidden;
  padding: 6px 8px;
  border-radius: 8px;
  line-height: 1.45;
  font-size: 17px;
}

.blk.h1 textarea {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
}

.blk.h2 textarea {
  font-size: 21px;
  font-weight: 600;
  color: var(--mute);
}

.blk.hasb textarea {
  border-left: 4px solid var(--str);
}

.blk:focus-within textarea {
  background: var(--bg);
}

.tb {
  display: none;
  position: absolute;
  right: 0;
  top: -34px;
  z-index: 2;
  gap: 4px;
  flex-wrap: wrap;
  max-width: 100%;
  background: var(--sf);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  box-shadow: 0 2px 10px #0003;
}

.blk:focus-within .tb {
  display: flex;
}

.tb button {
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 2px 8px;
  font-size: 13px;
  white-space: nowrap;
}

.tb button[aria-pressed=true] {
  background: var(--ink);
  color: var(--bg);
}

.tb .hl {
  background: var(--str);
  color: #fff;
  font-weight: 600;
}

.vtag {
  position: absolute;
  left: 8px;
  top: -9px;
  font-size: 11px;
  background: var(--str);
  color: #fff;
  border-radius: 6px;
  padding: 0 6px;
  z-index: 1;
}

button.vid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.dots5 {
  display: inline-flex;
  gap: 3px;
  flex: none;
}

.dots5 i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: inline-block;
}

.dots5 i.f {
  background: currentColor;
}

.thumb {
  display: block;
  position: relative;
  margin: 12px 0;
}

.thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  border: 1.5px solid var(--line);
}

button.thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16/9;
  border: 2px dashed var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--mute);
  font-weight: 600;
}

button.thumb small {
  font-weight: 400;
  font-size: 12px;
}

#home {
  display: none;
}

body.vh #home {
  display: block;
}

body.on.vh #app {
  display: none;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav button {
  border: 1.5px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 600;
}

.nav button[aria-pressed=true] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

#home h2 {
  font-size: 20px;
  margin: 0 0 10px;
}

.hgrid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width:960px) {
  .hgrid {
    grid-template-columns: 1fr 340px;
  }
}

.cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill,minmax(240px,1fr));
}

.vc {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--sf);
  padding: 0;
  overflow: hidden;
}

.vc img,
.vc .ph {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--mute);
  font-size: 13px;
}

.vc .vi {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
}

.vc b {
  font-size: 17px;
}

.vc.big {
  flex-direction: row;
}

.vc.big img,
.vc.big .ph {
  width: 46%;
}

.vc.big b {
  font-size: 24px;
}

.stg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--acc);
  font-weight: 600;
}

.sl {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sl li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width:600px) {
  .vc.big {
    flex-direction: column;
  }
  .vc.big img,
  .vc.big .ph {
    width: 100%;
  }
}

.qle {
  display: flex;
  gap: 6px;
  margin: 6px 0;
}

dialog#pg {
  width: min(560px,94vw);
}

#pg a.btn {
  text-decoration: none;
  display: inline-block;
}

#pg h2 {
  font-size: 22px;
  margin: 14px 0 6px;
}

#pg p {
  margin: 6px 0;
}

.pgsteps {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--mute);
}

.pgsteps span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
}

.pgsteps i {
  font-style: normal;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  font-size: 12px;
}

.pgsteps .cur {
  color: var(--ink);
  font-weight: 700;
}

.pgsteps .cur i {
  background: var(--acc);
  border-color: var(--acc);
  color: #fff;
}

.pgsteps .dn i {
  background: color-mix(in srgb,var(--acc) 18%,transparent);
  border-color: var(--acc);
}

.pgrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.pgrow .pgt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pgrow .pgt .mute {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgrow.ok b {
  color: var(--ok,#0E9F6E);
}

#pg #pgu {
  width: 100%;
  margin-top: 6px;
}

.pgnav {
  margin-top: 18px;
}

.pgbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

#mnl {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--sf);
  color: var(--ink);
  box-shadow: 0 8px 28px #0003;
  min-width: 200px;
  max-width: min(320px,92vw);
  z-index: 100000;
}

#mnl[hidden] {
  display: none;
}

.mni {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mni.on,
.mni:hover {
  background: color-mix(in srgb,var(--acc) 14%,transparent);
}

.mni b {
  color: var(--acc);
}

.ibtn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-left: 4px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--mute);
  font: italic 700 11px/1 Georgia,serif;
  cursor: pointer;
  vertical-align: 1px;
}

.ibtn:hover,
.ibtn.open,
.ibtn:focus-visible {
  color: var(--acc);
  border-color: var(--acc);
}

.ibtn::after {
  content: attr(data-info);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 220px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg,#fff);
  font: 500 12px/1.35 system-ui,sans-serif;
  font-style: normal;
  text-align: left;
  box-shadow: 0 4px 16px #0003;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s;
  z-index: 50;
}

.ibtn:hover::after,
.ibtn.open::after,
.ibtn:focus-visible::after {
  opacity: 1;
}

.prsp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.prbar .ibtn {
  border-color: #52525b;
  color: #a1a1aa;
  margin-left: 2px;
  width: 24px;
  min-width: 0;
  height: 24px;
  padding: 0;
  font-size: 13px;
}

.prbar .ibtn:hover,
.prbar .ibtn.open,
.prbar .ibtn:focus-visible {
  color: #f4f4f5;
  border-color: #f4f4f5;
}

.prbar .ibtn::after {
  background: #f4f4f5;
  color: #0b0b0d;
  max-width: 210px;
}

.prbar .ibtn::after {
  bottom: auto;
  top: calc(100% + 8px);
}

.audb {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 99px;
  border: 1px solid var(--acc);
  color: var(--acc);
  font: 600 11px/1.6 system-ui,sans-serif;
  vertical-align: 2px;
}

.dc.plc {
  border-color: color-mix(in srgb,var(--pc) 55%,transparent);
  box-shadow: inset 3px 0 0 var(--pc);
}

.dc.plc:hover {
  border-color: var(--pc);
}

.dc.plc[aria-pressed=true] {
  background: var(--pc);
  border-color: var(--pc);
  color: #fff;
  box-shadow: none;
}

.setnav .ptd {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pc);
  margin-right: 8px;
}

body.noyt .ytonly {
  display: none!important;
}

.setgrp {
  margin: 14px 12px 4px;
  font: 700 11px/1 system-ui,sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}

.setgrp[hidden] {
  display: none;
}

@keyframes setfin {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.setpane.fin {
  animation: setfin .1s ease both;
}

@media (prefers-reduced-motion:reduce) {
  .setpane.fin {
    animation: none;
  }
}

.pgpls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 2px;
}

.pgpl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--mute);
  font-size: 13px;
  font-weight: 600;
}

.pgpl i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pc);
}

.pgpl.cur {
  color: var(--ink);
  border-color: var(--pc);
}

.pgpl.dn {
  opacity: .6;
}

.pgwho {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pgwho .pdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) #work {
    --pdone: var(--pdd,var(--acc));
  }
}

:root[data-theme="dark"] #work,
:root[data-theme="oled"] #work {
  --pdone: var(--pdd,var(--acc));
}

.qlist {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 8px 0;
}

.qle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 10px;
  background: var(--sf);
}

.qle+.qle {
  border-top: 1px solid var(--line);
}

.qgrip {
  cursor: grab;
  color: var(--mute);
  padding: 0 2px;
  user-select: none;
  flex: none;
}

.qf {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.qf input {
  border: 1px solid transparent;
  background: transparent;
  padding: 3px 6px;
  border-radius: 6px;
  min-width: 0;
  width: 100%;
  box-shadow: none;
}

.qf input[data-qn] {
  font-weight: 700;
  font-size: 15px;
}

.qf input[data-qu] {
  font-size: 13px;
  color: var(--mute);
}

.qf input:hover {
  border-color: var(--line);
}

.qf input:focus {
  border-color: var(--acc);
  background: var(--bg);
  outline: none;
}

.qle.off .qf {
  opacity: .45;
}

.qib {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.qib svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qib:hover {
  background: var(--bg);
  border-color: var(--line);
}

.qib[aria-pressed=false] {
  color: var(--mute);
}

.qib.nophone {
  position: relative;
}

.qib.nophone::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 1.8px;
  background: currentColor;
  transform: rotate(-45deg);
  border-radius: 2px;
}

.qle.over {
  outline: 2px dashed var(--acc);
  outline-offset: -2px;
}

.qle.drag {
  opacity: .5;
}

.qcap {
  font-size: 13px;
  margin: 6px 0 0;
}

.qaddrow {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 11px 14px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: var(--sf);
  color: var(--mute);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  min-height: 0;
}

.qaddrow:first-child {
  border-top: 0;
}

.qaddrow svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.qaddrow:hover {
  background: color-mix(in srgb,var(--acc) 9%,var(--sf));
  color: var(--ink);
}

.qaddrow:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: -2px;
}

.qlplus {
  padding: 5px 12px;
  border-style: dashed;
  color: var(--mute);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
}

#ql[hidden] {
  display: none;
}

.qle input {
  min-width: 0;
}

.qlrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.ql {
  display: inline-block;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: var(--sf);
  font-size: 14px;
}

.ql:hover {
  border-color: var(--acc);
}

button.ql {
  border-style: dashed;
  color: var(--mute);
}

.lk {
  display: block;
  margin: 8px 0;
  font-size: 14px;
}

.lk input {
  width: 100%;
  margin-top: 2px;
}

.pub {
  margin: 10px 0;
}

.row2 {
  display: flex;
  gap: 8px;
  align-items: center;
}

.row2 input {
  flex: 1;
  min-width: 0;
}

.sl a {
  color: var(--acc);
  font-weight: 600;
}

.sl a[data-d] {
  justify-self: start;
}

.sl button.pl {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--acc);
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
  justify-self: start;
  min-height: 0;
  box-shadow: none;
}

.ql-twitch,
.ql-twitch:hover {
  background: #9146FF;
  border-color: #9146FF;
  color: #fff;
}

.ql-yt,
.ql-yt:hover {
  background: #E60000;
  border-color: #E60000;
  color: #fff;
}

.ql-alt,
.ql-alt:hover {
  background: #C2410C;
  border-color: #C2410C;
  color: #fff;
}

.ql-ig,
.ql-ig:hover {
  background: linear-gradient(135deg,#C2410C 0%,#C2278F 55%,#6B3FC9 100%);
  border-color: #C2278F;
  color: #fff;
}

.ql-tt,
.ql-tt:hover {
  background: #0A8098;
  border-color: #0A8098;
  color: #fff;
}

.ql-pa,
.ql-pa:hover {
  background: #D73548;
  border-color: #D73548;
  color: #fff;
}

.ql-kick,
.ql-kick:hover {
  background: #1B850D;
  border-color: #1B850D;
  color: #fff;
}

.ql-fb,
.ql-fb:hover {
  background: #1566D9;
  border-color: #1566D9;
  color: #fff;
}

button.ql[data-act=openset] {
  background: transparent!important;
  border-style: dashed;
}

button.ql[data-act=openset]:hover {
  filter: none;
}

.ql-twitch:hover,
.ql-yt:hover,
.ql-alt:hover,
.ql-ig:hover,
.ql-tt:hover,
.ql-pa:hover,
.ql-kick:hover,
.ql-fb:hover {
  filter: brightness(1.12);
}

button.ql-twitch {
  color: #B794FF;
}

button.ql-yt {
  color: #FF6B6B;
}

button.ql-alt {
  color: #F08A4F;
}

button.ql-ig {
  color: #E58BD0;
}

button.ql-tt {
  color: #35D4E6;
}

button.ql-pa {
  color: #FF9A8A;
}

button.ql-kick {
  color: #5BD441;
}

button.ql-fb {
  color: #6FA8FF;
}

body {
  overflow-x: hidden;
}

@keyframes vout {
  to {
    opacity: 0;
    transform: translate(var(--dx,0px),var(--dy,0px));
  }
}

@keyframes vin {
  from {
    opacity: 0;
    transform: translate(var(--dx,0px),var(--dy,0px));
  }
}

::view-transition-group(vt) {
  animation-duration: .4s;
  animation-timing-function: cubic-bezier(.2,.8,.2,1);
  border-radius: 14px;
  overflow: clip;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .2s;
}

#ideate {
  display: none;
}

body[data-v=home] #home,
body[data-v=ideate] #ideate,
body[data-v=plan] #app {
  display: block;
}

body[data-v=home] #app,
body[data-v=ideate] #app {
  display: none;
}

dialog.full {
  padding: 0;
  width: min(1240px,96vw);
  max-width: 96vw;
  height: 92vh;
  max-height: 92vh;
}

dialog.full[open] {
  display: flex;
  flex-direction: column;
}

.wbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.wtools {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
}

.wtools button {
  border: 1.5px solid var(--line);
  background: transparent;
  border-radius: 8px;
  padding: 3px 10px;
  font-weight: 600;
}

.wtools #pgb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#wsb {
  display: none;
}

#hbov {
  position: fixed;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

#hbov[hidden] {
  display: none;
}

#hbm {
  position: fixed;
  z-index: 100001;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--sf);
  color: var(--ink);
  box-shadow: 0 8px 28px #0003;
  max-height: min(62dvh,440px);
  overflow: auto;
}

#hbm[hidden] {
  display: none;
}

#pgov {
  position: fixed;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

#pgov[hidden] {
  display: none;
}

.pgmk {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px dashed color-mix(in srgb,var(--acc) 55%,transparent);
}

.pgmk i {
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--acc);
}

.pgmk span {
  position: absolute;
  right: 6px;
  top: -8px;
  height: 16px;
  padding: 0 8px;
  border-radius: 8px;
  font: 600 11px/14px system-ui,sans-serif;
  letter-spacing: .02em;
  white-space: nowrap;
  color: color-mix(in srgb,var(--acc) 45%,var(--ink));
  background: color-mix(in srgb,var(--acc) 14%,var(--bg));
  border: 1px solid color-mix(in srgb,var(--acc) 40%,transparent);
}

#pgm {
  position: fixed;
  z-index: 100001;
  min-width: 240px;
  max-width: calc(100vw - 16px);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sf);
  color: var(--ink);
  box-shadow: 0 8px 28px #0003;
}

#pgm[hidden] {
  display: none;
}

#pgm button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

#pgm button:hover,
#pgm button:focus-visible {
  background: color-mix(in srgb,var(--acc) 12%,transparent);
}

#pgm button i {
  flex: none;
  width: 14px;
  font-style: normal;
  color: var(--acc);
  font-weight: 700;
}

#pgm button[aria-checked=true] {
  font-weight: 700;
}

#pgm button span {
  display: flex;
  flex-direction: column;
}

#pgm button small {
  font-size: 12px;
  font-weight: 400;
  color: var(--mute);
}

.wmain {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 320px;
  min-height: 0;
}

#doc {
  overflow: auto;
  padding: 28px 36px;
  font-size: 18px;
  line-height: 1.7;
  outline: none;
}

#pts {
  overflow: auto;
  padding: 16px;
  border-left: 1px solid var(--line);
  background: var(--bg);
}

#doc h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: .4em 0;
}

#doc h2 {
  font-size: 24px;
  color: var(--mute);
  margin: .4em 0;
}

#doc p {
  margin: .5em 0;
}

#doc .note {
  color: var(--str);
  font-style: italic;
  border-left: 3px solid var(--str);
  padding-left: 10px;
  background: color-mix(in srgb,var(--str) 8%,transparent);
}

#doc.hide-notes .note {
  display: none;
}

.altpair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
  border: 1.5px dashed var(--str);
  border-radius: 10px;
  padding: 10px;
}

.alt {
  outline: none;
  padding: 6px 8px;
  border-radius: 8px;
}

.alt.b {
  background: color-mix(in srgb,var(--str) 10%,transparent);
}

.altbar {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
}

.altbar button {
  border: 0;
  background: transparent;
  color: var(--str);
  font-weight: 600;
}

#cm {
  position: fixed;
  z-index: 5;
  background: var(--sf);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 6px 24px #0004;
  display: flex;
  flex-direction: column;
}

#cm[hidden] {
  display: none;
}

#cm button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 6px 14px;
  border-radius: 7px;
}

#cm button:hover {
  background: var(--bg);
}

.pt {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  margin: 6px 0;
  background: var(--sf);
}

.pt.done input[data-pt] {
  text-decoration: line-through;
  color: var(--mute);
}

.ptr {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ptr input[data-pt] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
}

.pt textarea {
  width: 100%;
  margin-top: 6px;
}

.ptm {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.ptm button,
.ptr button {
  border: 0;
  background: transparent;
  font-size: 13px;
  color: var(--acc);
  font-weight: 600;
}

#adrl {
  position: fixed;
  inset: 0;
  z-index: 21;
  pointer-events: none;
  overflow: hidden;
}

.adrp {
  position: fixed;
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s)/-2) 0 0 calc(var(--s)/-2);
  border: 2px solid var(--acc);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: scale(.12);
  animation: adrp .75s cubic-bezier(.16,.7,.25,1) both;
}

.adrp.two {
  border-width: 1.5px;
  animation-delay: .1s;
  animation-duration: .85s;
}

.adrp.big {
  animation-duration: .95s;
}

@keyframes adrp {
  0% {
    opacity: .9;
    transform: scale(.12);
  }
  55% {
    opacity: .4;
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.adrp.rm {
  transform: scale(.3);
  animation: adrpm .5s ease-out both;
  animation-duration: .5s!important;
}

@keyframes adrpm {
  0% {
    opacity: .55;
  }
  100% {
    opacity: 0;
  }
}

.wgck {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 2px;
  cursor: pointer;
  font-weight: 600;
}

.wgck input {
  width: 20px;
  height: 20px;
  flex: none;
  accent-color: var(--m-primary,#6750a4);
  cursor: pointer;
}

.wst {
  display: contents;
}

#wtd,
#wtd2,
#wgb {
  display: none;
}

#advig {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse var(--vrx,640px) var(--vry,340px) at var(--vx,50%) var(--vy,60%),transparent var(--vc,25%),rgba(0,0,0,var(--va,.8)) 100%);
  transition: opacity .7s ease-out;
}

@media (max-width:800px) {
  .wmain {
    grid-template-columns: 1fr;
  }
  #pts {
    border-left: 0;
    border-top: 1px solid var(--line);
    max-height: 35vh;
  }
  #doc {
    padding: 18px;
  }
}

#app[data-p=pick] .layout {
  display: none;
}

#app[data-p=work] #pick {
  display: none;
}

#pick h2 {
  font-size: 20px;
  margin: 0 0 6px;
}

.calhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 10px;
}

.calhead h2 {
  margin: 0;
}

.seg {
  display: inline-flex;
}

.seg button {
  border: 1.5px solid var(--line);
  background: transparent;
  padding: 4px 12px;
  font-weight: 600;
}

.seg button:first-child {
  border-radius: 10px 0 0 10px;
}

.seg button:last-child {
  border-radius: 0 10px 10px 0;
  border-left: 0;
}

.seg button[aria-pressed=true] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.bc {
  min-height: 104px;
  background: var(--sf);
  border-radius: 8px;
  padding: 4px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bcal.wk .bc {
  min-height: 220px;
}

.bc .n {
  color: var(--mute);
}

.bc.past {
  opacity: .55;
}

.bc.out {
  opacity: .35;
}

.bc.today {
  box-shadow: inset 0 0 0 2px var(--acc);
}

.bc.today .n {
  color: var(--acc);
  font-weight: 800;
}

.cc {
  display: block;
  text-align: left;
  width: 100%;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12px;
  line-height: 1.25;
  border: 1.5px solid transparent;
  background: var(--bg);
}

button.cc {
  border: 1.5px solid var(--line);
  font-weight: 600;
}

.cc small {
  display: block;
  font-weight: 400;
  color: var(--mute);
}

.cc.open {
  border: 1.5px dashed var(--line);
  color: var(--mute);
  background: transparent;
}

.cc.s {
  color: var(--str);
  border-color: var(--str);
  background: transparent;
}

.cc.k {
  color: var(--sh);
  border-color: var(--sh);
  background: transparent;
}

.cal {
  overflow-x: auto;
}

.cal>.bcal {
  min-width: 720px;
}

.bcal .dow,
.bcal .grid {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 4px;
}

.bcal .dow {
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 4px;
  padding-left: 4px;
}

.bc {
  min-height: 140px;
}

.cc.vcc {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  padding: 9px 10px;
  border-left-width: 6px;
  background: color-mix(in srgb,var(--acc) 12%,var(--sf));
}

.cc.vcc small {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 5px;
  font-size: 12px;
}

::view-transition-group(*) {
  animation-duration: .4s;
  animation-timing-function: cubic-bezier(.2,.8,.2,1);
}

@property --a {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes spin {
  to {
    --a: 360deg;
  }
}

@keyframes fade {
  to {
    opacity: 0;
  }
}

:root {
  --spin: spin .2s ease-out,fade .4s ease .2s forwards;
}

@media (prefers-reduced-motion:reduce) {
  :root {
    --spin: none;
  }
}

:is(.nav button,.top .ghost,.top .vid,#ql .ql) {
  position: relative;
  &::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from var(--a),transparent 0 55%,var(--acc) 80%,var(--str));
    -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .2s var(--ease);
    pointer-events: none;
  }
  &:hover::after {
    opacity: 1;
    animation: var(--spin);
  }
  &:disabled::after {
    display: none;
  }
}

@property --p {
  syntax: '<percentage>';
  initial-value: 0%;
  inherits: false;
}

@property --t {
  syntax: '<percentage>';
  initial-value: 0%;
  inherits: false;
}

.nav button:not([aria-pressed=true]),
.top .ghost {
  border-color: transparent!important;
}

:is(.nav button,.top .ghost,.top .vid,#ql .ql)::after {
  --L: calc(var(--p) - var(--t));
  --f: min(calc(var(--L)/2),calc(100% - var(--L)));
  padding: 1.5px!important;
  background: conic-gradient(from -90deg,transparent 0,transparent var(--t),color-mix(in srgb,var(--acc) 55%,transparent) calc(var(--t) + var(--f)),color-mix(in srgb,var(--str) 55%,transparent) calc(var(--p) - var(--f)),transparent var(--p))!important;
  opacity: 1!important;
  filter: blur(.4px);
  transition: none!important;
  animation: none!important;
}

@keyframes ringdraw {
  from {
    --p: 0%;
    --t: 0%;
  }
  to {
    --p: 100%;
    --t: 0%;
  }
}

@keyframes ringundraw {
  from {
    --p: 100%;
    --t: 0%;
  }
  to {
    --p: 100%;
    --t: 100%;
  }
}

:is(.nav button,.top .ghost,.top .vid,#ql .ql)[data-h]::after {
  --p: 100%;
  --t: 100%;
  animation: ringundraw .6s cubic-bezier(.5,0,.75,0) forwards!important;
}

:is(.nav button,.top .ghost,.top .vid,#ql .ql):hover::after,
:is(.nav button,.top .ghost,.top .vid,#ql .ql):focus-visible::after {
  --p: 100%;
  --t: 0%;
  animation: ringdraw .6s cubic-bezier(.25,1,.5,1) forwards!important;
}

@media (prefers-reduced-motion:reduce) {
  :is(.nav button,.top .ghost,.top .vid,#ql .ql)::after {
    animation-duration: .01s!important;
  }
}

@keyframes pkin {
  from {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    max-height: 90px;
    transform: none;
  }
}

.peek.pin {
  overflow: hidden;
  animation: pkin .32s cubic-bezier(.2,.8,.2,1) both;
}

@media (prefers-reduced-motion:reduce) {
  .peek.pin {
    animation: none;
  }
}

@keyframes pkout {
  from {
    opacity: 1;
    max-height: 90px;
  }
  to {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(-8px);
  }
}

.peek.pout {
  overflow: hidden;
  pointer-events: none;
  animation: pkout .26s cubic-bezier(.4,0,.6,1) both;
}

.plnew {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 2px;
  opacity: .55;
  transition: opacity .15s var(--ease);
}

.plnew:hover,
.plnew:focus-within {
  opacity: 1;
}

.plnew input {
  width: 116px;
  transition: width .15s var(--ease);
  padding: 5px 10px;
  border: 1.5px dashed var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.plnew input:focus,
.plnew input:not(:placeholder-shown) {
  border-style: solid;
  width: 160px;
}

.plnew button {
  display: none;
}

.hint {
  position: fixed;
  z-index: 60;
  width: min(330px,calc(100vw - 32px));
  background: var(--sf);
  color: var(--ink);
  border: 1.5px solid var(--acc);
  border-radius: 14px;
  padding: 12px 14px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease),transform .3s var(--ease);
  pointer-events: none;
}

.hint.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.hint b.ht {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--acc);
  margin-bottom: 4px;
}

.hint b.ht svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hint p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.45;
}

.hint .hrow {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.hint .hrow button {
  padding: 6px 12px;
  font-size: 13px;
}

.hint .hrow .hoff {
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--mute,inherit);
  opacity: .7;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px 2px;
}

.hint-on {
  outline: 2px dashed var(--acc)!important;
  outline-offset: 4px;
  border-radius: 10px;
}

@media (prefers-reduced-motion:reduce) {
  .hint {
    transition: none;
  }
}

.gvs {
  margin: 6px 0 10px;
}

#gal {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
  gap: 12px 14px;
  margin-top: 8px;
}

.gtile {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.gtile .gdate {
  font-size: 13px;
  padding-left: 2px;
}

#gal .vid {
  min-width: 0;
  overflow: hidden;
}

#gal .vid.hov {
  position: relative;
}

#gal .vid.hov::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--acc);
  transition: width .15s var(--ease);
}

#gal .vid.hov:hover::after {
  width: 100%;
  transition: width .5s cubic-bezier(.76,0,.24,1);
}

#gal .vid .rt {
  display: flex;
  min-width: 0;
  flex: 1;
}

#gal .vid .rtt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

#gal .vid .dots5 {
  flex: none;
}

.gcount {
  margin: 4px 0 0;
}

.gpopw {
  position: relative;
  display: inline-block;
}

.gpop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 250px;
  max-width: min(380px,88vw);
  background: var(--sf);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}

.gpop h4 {
  margin: 10px 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .7;
}

.gpop h4:first-child {
  margin-top: 0;
}

.gpop .gch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gpop .dc {
  margin: 0;
  font-size: 13px;
  padding: 3px 11px;
}

.gpop .gsl {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gpop .gsl .dc {
  text-align: left;
  border-radius: 10px;
}

.gpop .gclr {
  margin-top: 10px;
  font-size: 13px;
}

.vctl .gb[aria-expanded=true] {
  border-color: var(--acc);
}

.thbtns {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity .15s var(--ease);
}

.thumb:hover .thbtns,
.thumb:focus-within .thbtns {
  opacity: 1;
}

@media (hover:none) {
  .thbtns {
    opacity: 1;
  }
}

.thbtns button {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: rgba(0,0,0,.62);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.thbtns button:hover {
  background: rgba(0,0,0,.85);
}

.thbtns button[data-act=tdel]:hover {
  background: #c0392b;
}

.thbtns svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.rli button,
.ptr button,
.wpr button {
  border-radius: 999px;
  transition: background .15s var(--ease);
}

.rli button:hover,
.ptr button:hover,
.wpr button:hover,
.rli button:focus-visible,
.ptr button:focus-visible,
.wpr button:focus-visible {
  background: color-mix(in srgb,var(--acc) 14%,transparent);
}

.rli button[data-act=ldel]:hover,
.wpr button[data-act=wpdel]:hover {
  background: color-mix(in srgb,var(--warn) 14%,transparent);
}

.rli {
  border: 1.5px solid var(--line);
  border-bottom-width: 1.5px;
  border-radius: 12px;
  padding: 3px 8px;
  margin: 6px 0;
}

.swrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0;
}

.swrow span {
  font-size: 14px;
}

.sw {
  position: relative;
  width: 44px;
  height: 26px;
  min-width: 44px!important;
  min-height: 26px!important;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: color-mix(in srgb,var(--ink) 10%,transparent);
  padding: 0;
  transition: background .2s,border-color .2s;
}

.sw i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--ink);
  opacity: .55;
  transition: transform .22s cubic-bezier(.2,.8,.2,1),background .2s,opacity .2s;
}

.sw[aria-checked=true] {
  background: var(--acc);
  border-color: var(--acc);
}

.sw[aria-checked=true] i {
  transform: translateX(18px);
  background: #fff;
  opacity: 1;
}

.sw:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

.tasks {
  margin-bottom: 6px;
}

.tnone {
  font-size: 17px;
  margin: 6px 0 2px;
  color: var(--mute);
}

.tsec {
  font-size: 14px;
  margin: 16px 0 4px;
  color: var(--mute);
  font-weight: 700;
}

.tsec.late {
  color: var(--warn);
}

.trow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 0;
  padding: 4px 10px 4px 8px;
  border: 1.5px solid var(--line);
  border-left: 5px solid var(--tc);
  border-radius: 12px;
  background: var(--sf);
  transition: opacity .25s,transform .25s;
}

.trow.late {
  border-color: color-mix(in srgb,var(--warn) 45%,var(--line));
  border-left-color: var(--warn);
}

.tck {
  flex: none;
  width: 24px;
  height: 24px;
  min-width: 24px!important;
  min-height: 24px!important;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb,var(--ink) 35%,transparent);
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--acc);
  transition: background .15s var(--ease),border-color .15s var(--ease);
}

.tck:not(.pub):hover,
.tck:not(.pub):focus-visible {
  border-color: var(--acc);
  background: color-mix(in srgb,var(--acc) 18%,transparent);
}

.tck.pub {
  border-color: transparent;
}

.trow.fin {
  opacity: 0;
  transform: translateX(14px);
}

.trow.fin .tck {
  background: var(--acc);
  border-color: var(--acc);
}

.tmain {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: baseline;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 7px 0;
  font: inherit;
  color: inherit;
}

.tt {
  font-weight: 700;
}

.tv {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--mute);
}

.tw {
  font-size: 13px;
  font-weight: 700;
  color: var(--acc);
}

.trow.late .tw {
  color: var(--warn);
}

.tmore {
  margin-top: 6px;
}

#rail .item[data-cal] {
  cursor: pointer;
  border-radius: 10px;
  transition: background .15s var(--ease);
}

#rail .item[data-cal]:hover,
#rail .item[data-cal]:focus-visible {
  background: color-mix(in srgb,var(--acc) 9%,transparent);
}

#rail .item[data-cal] button {
  pointer-events: none;
}

.rgm {
  font-size: 14px;
  margin-right: 8px;
}

.rtopic {
  font-size: 14px;
}

.bc.dsel {
  outline: 2px solid var(--acc);
  outline-offset: -2px;
}

.bc {
  cursor: pointer;
}

.bc .cc.s,
.bc .cc.k,
.bc .cc.open {
  font: inherit;
  text-align: left;
  cursor: pointer;
}

#de {
  position: fixed;
  z-index: 50;
  width: 300px;
  max-height: 80vh;
  overflow: auto;
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 30px #0005;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: dpin .1s ease-out;
}

#de.out {
  animation: dpout .1s ease-in forwards;
}

#de .deh {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#de .des {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

#de .des>.mute {
  font-size: 13px;
  font-weight: 700;
}

#de input,
#de select {
  width: 100%;
}

#de .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tnew {
  width: 100%;
  margin: 2px 0 6px;
}

#te {
  position: fixed;
  z-index: 50;
  width: 290px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 30px #0005;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: dpin .1s ease-out;
}

#te.out {
  animation: dpout .1s ease-in forwards;
}

#te input {
  width: 100%;
}

#te label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
}

.epseg {
  align-self: flex-start;
}

.cc.td {
  font: inherit;
  text-align: left;
  cursor: pointer;
  border: 1.5px solid color-mix(in srgb,var(--acc2) 55%,var(--line));
  background: color-mix(in srgb,var(--acc2) 12%,var(--sf));
  border-radius: 8px;
  padding: 2px 6px;
}

.cc.td.rem {
  opacity: .75;
  border-style: dashed;
}

.cc.td.late {
  border-color: var(--warn);
  color: var(--warn);
}

.bc .dadd {
  position: absolute;
  top: 2px;
  right: 2px;
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity .12s var(--ease);
}

.bc:hover .dadd,
.bc:focus-within .dadd {
  opacity: 1;
}

.dadd button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: var(--bg);
  color: var(--mute);
  font-size: 14px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.dadd button:hover {
  background: var(--acc);
  color: #fff;
}

.subs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.subs input {
  width: 100%;
}

.srow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.srow .tmain {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  background: none;
  border: 0;
  padding: 3px 0;
  color: inherit;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.srow.dn .tt {
  text-decoration: line-through;
  opacity: .55;
}

.stk {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--mute);
  background: none;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.srow.dn .stk {
  background: var(--acc);
  border-color: var(--acc);
}

.lnk {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--acc);
  text-decoration: underline;
  cursor: pointer;
}

.tlnm.sub {
  padding-left: 18px;
}

.tlnm.sub button {
  font-size: .92em;
}

.dbtn.dfld {
  display: block;
  width: 100%;
  text-align: left;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--sf);
  padding: 6px 8px;
  color: var(--ink);
}

.dbtn.dfld:hover {
  border-color: var(--acc);
}

#dp {
  z-index: 60;
}

.dpclr {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 0;
  background: none;
  color: var(--mute);
  font: inherit;
  font-size: 13px;
  padding: 4px;
  cursor: pointer;
}

.dpclr:hover {
  color: var(--acc);
}

.bcal.wk .bc {
  min-height: 620px;
}

#tlhost .tlc.bars {
  min-height: 640px;
}

#tlhost .tlc.line {
  min-height: 0;
}

.calnav {
  display: flex;
  gap: 6px;
  margin: 0 0 0 8px;
}

.calhead h2 {
  min-width: 176px;
}

.calhead {
  justify-content: flex-start!important;
}

.calhead .row2 {
  margin-left: auto;
}

.calnav .ghost {
  min-width: 36px;
}

.calhead {
  margin-bottom: 10px;
}

.tlctl {
  gap: 12px;
  margin: 0 0 0 8px;
  align-items: center;
}

.tlctl .seg {
  margin: 0;
}

#tlhost .tlbar {
  justify-content: flex-end;
  margin: 0 0 8px;
}

#tlhost .tlc {
  background: var(--tlg);
}

#tlhost .tlnm {
  background: color-mix(in srgb,var(--bg) 40%,transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#activity {
  display: none;
}

body[data-v=activity] #activity {
  display: block;
}

body[data-v=activity] #app {
  display: none;
}

#activity .actl {
  max-width: 760px;
}

#activity h3.tsec {
  margin-top: 18px;
}

.actrow {
  display: flex;
  gap: 10px;
  align-items: baseline;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 2px;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

div.actrow {
  cursor: default;
}

.actrow:last-child {
  border-bottom: 0;
}

.actrow:hover .ax {
  color: var(--acc);
}

.actrow .ak {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 8px;
  background: color-mix(in srgb,var(--kc) 20%,transparent);
  color: color-mix(in srgb,var(--kc) 70%,var(--ink));
  min-width: 64px;
  text-align: center;
}

.actrow .aw {
  margin-left: auto;
  color: var(--mute);
  font-size: 13px;
  white-space: nowrap;
  padding-left: 10px;
}

.actc {
  margin-top: 22px;
}

.rtm {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin: 8px 0;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--sf);
}

.rtm input {
  flex: 1 1 180px;
  min-width: 0;
}

.rtm .dc {
  font-size: 13px;
  padding: 1px 9px;
  margin: 0 2px 0 0;
}

.rtm .sdays {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

#ob {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  overflow: auto;
  background: var(--bg) var(--mg);
  transform: scale(1.015);
}

#ob.show {
  transform: none;
}

#ob::backdrop {
  background: var(--bg);
}

.obw {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(22px,6vh,60px) 24px 26px;
}

.obw .obft {
  margin-top: auto;
  padding-top: 28px;
}

.obst {
  font-size: 14px;
  font-weight: 700;
  color: var(--acc);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 6px 0 0;
}

#ob h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px,5.4vw,54px);
  line-height: 1.08;
}

#ob .mute {
  font-size: 17px;
  line-height: 1.5;
}

#ob .obq {
  font-size: 21px;
  margin: 26px 0 8px;
}

#ob .obp i {
  height: 5px;
}

#ob .obrow {
  gap: 10px;
  margin: 10px 0;
}

#ob .dc {
  font-size: 18px;
  padding: 7px 18px;
}

#ob select,
#ob .obrow input {
  font-size: 18px;
  padding: 9px 12px;
}

#ob .btn {
  font-size: 18px;
  padding: 13px 30px;
}

#ob .ghost {
  font-size: 17px;
  padding: 11px 18px;
}

#ob .obsum {
  font-size: 18px;
}

#ob .obsum li {
  padding: 11px 0;
}

#ob .obimp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 22px;
}

#ob .hnote {
  font-size: 16px;
  line-height: 1.5;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1.5px solid color-mix(in srgb,#E0A100 60%,var(--line));
  border-left-width: 5px;
  border-radius: 12px;
  background: color-mix(in srgb,#E0A100 12%,var(--sf));
  color: var(--ink);
}

.obp {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
}

.obp i {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
}

.obp i.on {
  background: var(--acc);
}

.obq {
  margin: 16px 0 6px;
  font-weight: 700;
}

.obrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 8px 0;
}

.obft {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.obrow select {
  font: inherit;
}

.obsum {
  margin: 10px 0;
  padding: 0;
  list-style: none;
}

.obsum li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.ppb {
  margin-top: 14px;
}

.pprow {
  margin: 6px 0;
  align-items: center;
}

.pprow b {
  min-width: 96px;
}

.srow[hidden] {
  display: none;
}

@media (max-width:600px) {
  .meta>* {
    max-width: 100%;
    min-width: 0;
  }
  .meta .mute {
    white-space: normal;
  }
}

@media (max-width:800px) {
  #streams .stgrid {
    grid-template-columns: minmax(0,1fr);
  }
  #streams .grow {
    flex-wrap: wrap;
    gap: 6px;
  }
  .sdays {
    flex-wrap: wrap;
  }
}

img[data-th] {
  transition: filter .2s ease;
}

img[data-lq] {
  filter: blur(9px);
}

.vc img,
.thumb img,
.sct img,
.hvp img {
  transition: filter .2s ease;
}

#tasks {
  display: none;
}

body[data-v=tasks] #tasks {
  display: block;
}

body[data-v=tasks] #app {
  display: none;
}

#tasks .tasks {
  max-width: 760px;
}

#tasks .tasks>h2 {
  margin-top: 0;
}

.trow.dn {
  opacity: .6;
}

.trow.dn .tt {
  text-decoration: line-through;
}

.trow.dn .tck {
  background: var(--acc);
  border-color: var(--acc);
}

#streams {
  display: none;
}

body[data-v=streams] #streams {
  display: block;
}

body[data-v=streams] #app {
  display: none;
}

#streams h2 {
  font-size: 20px;
  margin: 0 0 12px;
}

.stgrid {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(0,1fr);
  gap: 20px;
  align-items: start;
}

.stside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width:900px) {
  .stgrid {
    grid-template-columns: 1fr;
  }
}

.stn {
  display: flex;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 2px;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.stn:last-child {
  border-bottom: 0;
}

.stn:hover .stt {
  color: var(--acc);
}

.stw {
  flex: none;
  width: 84px;
  font-weight: 600;
}

.stt {
  min-width: 0;
}

.stside .sdays {
  justify-content: flex-start;
  margin: 0;
  width: auto;
  flex-wrap: wrap;
}

.navsep {
  width: 1px;
  align-self: stretch;
  margin: 8px 10px;
  background: var(--line);
}

.vgh .ptag,
.bcol h3 .ptag {
  display: inline-block;
}

.tbl th:first-child,
.tbl tr:not(.grp) td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: transparent;
}

.tbl.sc th:first-child,
.tbl.sc tr:not(.grp) td:first-child {
  background: color-mix(in srgb,var(--sf) 16%,transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 1px 0 0 var(--line);
}

.tbl th:first-child {
  z-index: 3;
}

.tbl tr.grp td {
  overflow: visible;
}

.tbl tr.grp td button {
  position: sticky;
  left: 10px;
}

#dp .dpg button {
  position: relative;
}

.dpm {
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 2px;
  pointer-events: none;
}

.dpm i,
.dpl i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.dpl {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--mute);
}

.dpl span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#dp {
  width: 268px!important;
}

.ideate-w {
  max-width: 760px;
  margin: 0 auto;
}

.ilist2 {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.idea2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  border-radius: 22px;
  font-size: 16px;
  line-height: 1.35;
  background: color-mix(in srgb,var(--acc) 14%,var(--sf));
  border: 1.5px solid color-mix(in srgb,var(--acc) 40%,var(--line));
  max-width: 100%;
}

.idea2 span {
  overflow-wrap: anywhere;
}

.idea2 button {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  line-height: 1;
  padding: 0;
}

.idea2 button:hover {
  background: color-mix(in srgb,var(--ink) 12%,transparent);
}

.idea2 button {
  border: 0;
  background: transparent;
  font-size: 20px;
  color: var(--mute);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.idea2.new {
  animation: pop .22s ease;
}

.idea2.dup {
  border-color: var(--warn);
  box-shadow: 0 0 0 2px var(--warn);
}

#vids {
  display: none;
}

body[data-v=videos] #vids {
  display: block;
}

body[data-v=videos] #app {
  display: none;
}

.seg button+button {
  margin-left: -1.5px;
}

.vctl {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin: 10px 0;
}

.vctl label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
}

.vrow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--sf);
  padding: 10px 14px;
  margin: 6px 0;
}

.vtitle {
  font-weight: 700;
}

.vtitle small {
  display: block;
  font-weight: 400;
}

.vst {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--acc);
  font-weight: 600;
  font-size: 14px;
}

.vact {
  display: flex;
  gap: 8px;
}

.vg {
  margin: 18px 0 4px;
  font-size: 15px;
  color: var(--mute);
}

.cc.dl {
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-style: dashed;
  border-left-style: solid;
  color: var(--mute);
}

.cc.dl small {
  margin-top: 0;
}

.cc.dl.late {
  color: var(--warn);
  border-color: var(--warn);
}

.dle {
  margin: 8px 0;
}

.dle summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--mute);
}

.dlg {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-top: 8px;
}

.dlg label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.vc.focus .when {
  font-weight: 800;
  font-size: 15px;
  color: var(--acc);
}

.vc.focus .when.late,
.vst.late {
  color: var(--warn);
}

.vc.focus b {
  font-size: 28px;
  line-height: 1.2;
}

.altblk {
  position: relative;
  margin: 14px 0;
  padding: 0 84px 0 12px;
  border-left: 3px solid var(--str);
  border-radius: 4px;
}

.altblk[data-cur=a] .alt.b,
.altblk[data-cur=b] .alt.a {
  display: none;
}

.altblk[data-tag=h1] .alt {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

.altblk[data-tag=h2] .alt {
  font-size: 24px;
  color: var(--mute);
}

.altsw {
  position: absolute;
  right: 0;
  top: 4px;
  border: 1.5px solid var(--str);
  background: transparent;
  color: var(--str);
  border-radius: 999px;
  padding: 2px 12px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.altblk .vtag {
  left: 12px;
}

.altblk {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 0 0 0 12px;
}

.altblk[data-cur=a] .alt.a,
.altblk[data-cur=b] .alt.b {
  display: block;
  grid-column: 1;
  grid-row: 1;
}

.altblk[data-cur=a] .alt.b,
.altblk[data-cur=b] .alt.a {
  display: block;
  grid-column: 2;
  grid-row: 1;
  opacity: .35;
  pointer-events: none;
  user-select: none;
  font-size: .9em;
  max-height: 9em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg,#000 50%,transparent);
  mask-image: linear-gradient(90deg,#000 50%,transparent);
}

.altblk .altsw {
  position: static;
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 0;
  font-size: 18px;
}

.altblk {
  display: block;
  position: relative;
  overflow-x: clip;
  padding: 0 0 0 12px;
}

.altrack {
  display: flex;
  align-items: flex-start;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

.altblk[data-cur=b] .altrack {
  transform: translateX(-28%);
}

.altrack .alt {
  flex: 0 0 62%;
  margin-right: 4%;
  transition: opacity .35s;
}

.altblk[data-cur=a] .alt.a,
.altblk[data-cur=b] .alt.b {
  opacity: 1;
  pointer-events: auto;
  max-height: none;
  overflow: visible;
  font-size: 1em;
  user-select: text;
  -webkit-mask-image: none;
  mask-image: none;
}

.altblk[data-cur=a] .alt.b,
.altblk[data-cur=b] .alt.a {
  opacity: .35;
  cursor: pointer;
  pointer-events: auto;
  max-height: 9em;
  overflow: hidden;
  font-size: .9em;
  user-select: none;
}

.altblk[data-cur=a] .alt.b {
  -webkit-mask-image: linear-gradient(90deg,#000 40%,transparent);
  mask-image: linear-gradient(90deg,#000 40%,transparent);
}

.altblk[data-cur=b] .alt.a {
  -webkit-mask-image: linear-gradient(270deg,#000 40%,transparent);
  mask-image: linear-gradient(270deg,#000 40%,transparent);
}

.altblk .altsw {
  position: absolute;
  top: 50%;
  margin-top: -19px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 0;
  font-size: 18px;
  z-index: 1;
  background: var(--sf);
  grid-column: auto;
}

.altblk[data-cur=a] .altsw {
  right: 2px;
  left: auto;
}

.altblk[data-cur=b] .altsw {
  left: 14px;
  right: auto;
}

@media (prefers-reduced-motion:reduce) {
  .altrack,
  .altrack .alt {
    transition: none;
  }
}

.alt.b[data-empty]::before {
  content: 'Write another version of this paragraph here. You can switch between A and B at any time.';
  color: var(--mute);
  opacity: .8;
  font: 400 15px/1.45 var(--f-body,system-ui,sans-serif);
  font-style: normal;
  pointer-events: none;
}

.altdel {
  display: none;
}

.altblk:has(.alt.b[data-empty]) .altdel {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 0;
  padding: 6px 12px;
  font-size: 13px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--mute);
  cursor: pointer;
}

.altdel:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.altblk {
  border-left: 0;
  padding: 0;
}

.altblk .vtag {
  display: none;
}

.altrack {
  position: relative;
}

.altblk[data-cur=b] .altrack {
  transform: translateX(-26%);
}

.altrack .alt {
  flex: 0 0 60%;
  margin-right: 6%;
}

.altblk .altsw,
.altblk[data-cur=a] .altsw,
.altblk[data-cur=b] .altsw {
  left: 63%;
  right: auto;
  margin: -16px 0 0 -16px;
  width: 32px;
  height: 32px;
  font-size: 16px;
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: var(--sf);
  box-shadow: 0 1px 6px #0002;
}

.altrack .alt,
.altrack .alt.b {
  background: none;
}

.altblk[data-cur=a] .alt.b {
  -webkit-mask-image: linear-gradient(90deg,#000 10%,transparent 56%);
  mask-image: linear-gradient(90deg,#000 10%,transparent 56%);
}

.altblk[data-cur=b] .alt.a {
  -webkit-mask-image: linear-gradient(270deg,#000 10%,transparent 56%);
  mask-image: linear-gradient(270deg,#000 10%,transparent 56%);
}

#doc .enote {
  display: none;
  margin: 2px 0;
  padding: 6px 10px;
  background: #FDE68A;
  border-radius: 6px;
  color: #3B2F00;
}

#doc[data-notes=on] .enote {
  display: block;
}

#doc .enote textarea {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 15px;
  resize: none;
  outline: none;
  field-sizing: content;
  min-height: 1.5em;
}

.nbar {
  height: 10px;
  margin: 2px 0;
  border-radius: 6px;
  background: #FACC15;
  opacity: .3;
  cursor: pointer;
  transition: height .12s var(--ease),opacity .12s var(--ease);
}

.nbar:hover,
.nbar:focus-visible {
  opacity: 1;
  height: 15px;
}

#doc:not([data-notes=on]) .note {
  display: none;
}

.wtools button[aria-pressed=true] {
  background: #FACC15;
  color: #3B2F00;
  border-color: #FACC15;
}

.ptg {
  cursor: grab;
  color: var(--mute);
  user-select: none;
  padding: 0 2px;
  letter-spacing: -2px;
}

.ptr button {
  padding: 0 3px;
}

.altblk .altsw,
.altblk[data-cur=a] .altsw,
.altblk[data-cur=b] .altsw {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--mute);
  font-size: 20px;
}

.altblk .altsw:hover {
  color: var(--ink);
}

.altsw::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from var(--a),transparent 0 55%,var(--acc) 80%,var(--str));
  -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
}

.altsw:hover::after {
  opacity: 1;
  animation: var(--spin);
}

.ptg {
  touch-action: none;
}

.pt.drag {
  position: relative;
  z-index: 3;
  box-shadow: 0 8px 24px #0004;
  cursor: grabbing;
  transition: none!important;
}

@media (prefers-reduced-motion:reduce) {
  .pt {
    transition: none!important;
  }
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: end;
  margin: 14px 0;
}

.meta label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--mute);
  gap: 2px;
}

.meta select,
.meta input {
  font-size: 15px;
  color: var(--ink);
}

.meta .stagesel {
  font-weight: 700;
}

.wgrid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0,1fr);
}

@media (min-width:760px) {
  .wgrid {
    grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  }
}

.dlist {
  list-style: none;
  padding: 0;
  margin: 12px 0 4px;
}

.dlist li {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--mute);
}

.dlist li.done {
  color: var(--acc);
}

.dlist li.now {
  color: var(--ink);
  font-weight: 700;
}

.dlist li.late {
  color: var(--warn);
  font-weight: 700;
}

.dlbtn {
  position: relative;
  cursor: pointer;
  border-bottom: 1px dotted var(--mute);
  padding: 0 2px;
}

.dlbtn:hover {
  color: var(--ink);
  border-bottom-color: var(--acc);
}

.dlbtn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  padding: 0;
  border: 0;
}

.dlin {
  border: 0;
  border-bottom: 1px dotted var(--mute);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0 2px;
  text-align: right;
  cursor: pointer;
}

.dlin:hover {
  border-bottom-color: var(--acc);
  color: var(--ink);
}

.dlin::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .7;
}

.dbtn {
  border: 0;
  border-bottom: 1px dotted var(--mute);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0 2px;
  cursor: pointer;
  text-align: right;
}

.dbtn:hover {
  border-bottom-color: var(--acc);
  color: var(--ink);
}

.meta .dbtn {
  font-size: 15px;
  color: var(--ink);
  text-align: left;
}

#dp {
  position: fixed;
  z-index: 50;
  width: 244px;
  background: var(--sf);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 30px #0005;
}

.dph {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.dph button {
  border: 0;
  background: transparent;
  font-size: 20px;
  padding: 0 8px;
}

.dpg {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 2px;
  text-align: center;
}

.dpd {
  font-size: 11px;
  color: var(--mute);
}

.dpg button {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 6px 0;
  font-size: 13px;
}

.dpg button:hover {
  background: var(--bg);
}

.dpg .out {
  color: var(--mute);
  opacity: .6;
}

.dpg .tod {
  box-shadow: inset 0 0 0 1.5px var(--acc);
}

.dpg .sel {
  background: var(--acc);
  color: var(--onacc);
}

.dpg button:disabled {
  opacity: .3;
  cursor: default;
}

@keyframes dpin {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(.97);
  }
}

@keyframes dpout {
  to {
    opacity: 0;
    transform: translateY(-6px) scale(.97);
  }
}

#dp {
  animation: dpin .1s ease-out;
}

#dp.out {
  animation: dpout .1s ease-in forwards;
  pointer-events: none;
}

@media (prefers-reduced-motion:reduce) {
  #dp,
  #dp.out {
    animation: none;
  }
}

.item.wk {
  border-top: 3px solid color-mix(in srgb,var(--ink) 20%,var(--line));
  margin-top: 8px;
  padding-top: 10px;
}

.rli {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  background: var(--sf);
}

.rli input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
}

.rlg {
  cursor: grab;
  color: var(--mute);
  user-select: none;
  touch-action: none;
  letter-spacing: -2px;
  padding: 0 2px;
}

.rli button {
  border: 0;
  background: transparent;
  color: var(--acc);
  font-weight: 600;
  padding: 0 4px;
}

.rli button[data-act=ldel] {
  color: var(--warn);
  font-size: 18px;
}

.rli.drag {
  position: relative;
  z-index: 3;
  box-shadow: 0 8px 24px #0004;
  cursor: grabbing;
  transition: none!important;
}

.rl {
  margin-bottom: 8px;
}

@media (prefers-reduced-motion:reduce) {
  .rli {
    transition: none!important;
  }
}

.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: color-mix(in srgb,var(--acc) 12%,var(--sf));
  border: 1.5px solid color-mix(in srgb,var(--acc) 35%,var(--line));
  border-radius: 12px;
  padding: 10px 14px;
  margin: 12px 0;
}

.banner.late {
  background: color-mix(in srgb,var(--warn) 14%,var(--sf));
  border-color: var(--warn);
}

.banner .row2 {
  gap: 8px;
}

.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px,1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.bcol {
  background: var(--bg);
  border-radius: 12px;
  padding: 10px;
}

.bcol h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.bcard {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--sf);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  margin: 6px 0;
}

.bcard small {
  display: block;
}

.pipe {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 6px;
}

.pipe button {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  text-align: left;
}

.pipe b {
  font-size: 22px;
  display: block;
}

.pipe small {
  color: var(--mute);
}

.att {
  background: var(--sf);
  border: 1.5px dashed var(--warn);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 8px 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.chip2 {
  border: 1.5px solid color-mix(in srgb,var(--acc) 40%,var(--line));
  background: color-mix(in srgb,var(--acc) 12%,var(--sf));
  border-radius: 18px;
  padding: 4px 12px;
  font-size: 14px;
}

#qc {
  position: fixed;
  top: calc(64px + env(safe-area-inset-top,0px));
  right: 20px;
  z-index: 40;
  background: var(--sf);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 30px #0005;
  width: min(360px,92vw);
}

#qc[hidden] {
  display: none;
}

#qc input {
  width: 100%;
  font-size: 16px;
  padding: 8px 10px;
}

.sref {
  max-height: 360px;
  overflow: auto;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 8px;
  background: var(--bg);
}

.sref h1 {
  font-size: 20px;
  margin: .4em 0;
}

.sref h2 {
  font-size: 17px;
  color: var(--mute);
  margin: .4em 0;
}

.sref p {
  margin: .4em 0;
}

.sref ul {
  margin: .4em 0;
  padding-left: 20px;
}

.sref-note {
  background: #FDE68A;
  color: #3B2F00;
  border-radius: 6px;
  padding: 4px 10px;
  margin: 4px 0;
  font-size: 14px;
}

.sref.hidenotes .sref-note {
  display: none;
}

.bcol.over {
  outline: 2px solid var(--acc);
  background: color-mix(in srgb,var(--acc) 10%,var(--bg));
}

.idea2 .itxt {
  width: auto;
  height: auto;
  border-radius: 0;
  flex: 1 1 auto;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  line-height: 1.35;
}

.idea2.hot {
  font-weight: 600;
  border-color: var(--acc);
  background: color-mix(in srgb,var(--acc) 26%,var(--sf));
}

.idea2.old {
  opacity: .6;
}

.stars {
  color: #E0A100;
  letter-spacing: 1px;
}

#ic {
  width: min(460px,94vw);
}

.starb {
  border: 0;
  background: transparent;
  font-size: 22px;
  color: var(--line);
  padding: 0 2px;
}

.starb[aria-pressed=true] {
  color: #E0A100;
}

.urg {
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 7px;
  vertical-align: middle;
  background: color-mix(in srgb,var(--g2) 30%,transparent);
  color: color-mix(in srgb,var(--g2) 25%,var(--ink));
}

.urg.u3 {
  background: color-mix(in srgb,var(--g1) 30%,transparent);
  color: color-mix(in srgb,var(--g1) 25%,var(--ink));
}

#ic .seg button {
  padding: 3px 12px;
  font-size: 14px;
}

#ic {
  opacity: 1;
  transform: none;
  transition: none;
  box-shadow: 0 12px 40px #0004;
}

#ic::backdrop,
#ic.show::backdrop {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: none;
}

.idea2:has(.itxt) {
  position: relative;
  cursor: pointer;
  transition: background .15s var(--ease),border-color .15s var(--ease),transform .15s var(--ease),box-shadow .15s var(--ease);
}

.idea2 .itxt::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
}

.idea2 .itxt:hover {
  background: transparent;
}

.idea2 button[data-act=del] {
  position: relative;
  z-index: 1;
}

.idea2:has(.itxt):hover {
  border-color: var(--acc);
  background: color-mix(in srgb,var(--acc) 24%,var(--sf));
  transform: translateY(-1px);
  box-shadow: 0 3px 10px #0002;
}

.idea2 .itxt:focus-visible {
  outline: none;
}

.idea2:has(.itxt:focus-visible) {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

@media (prefers-reduced-motion:reduce) {
  .idea2:has(.itxt) {
    transition: none;
  }
  .idea2:has(.itxt):hover {
    transform: none;
  }
}

#toast {
  top: auto;
  right: auto;
  margin: 0;
  border: 0;
  overflow: visible;
  width: max-content;
}

#toast .undo {
  margin-left: 12px;
  border: 1.5px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: 8px;
  padding: 2px 10px;
  font-weight: 700;
}

#selbar {
  position: fixed;
  z-index: 6;
  display: flex;
  gap: 2px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 6px 20px #0005;
  transform: translateX(-50%);
}

#selbar[hidden] {
  display: none;
}

#selbar button {
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 7px;
  padding: 4px 10px;
  font-weight: 600;
  white-space: nowrap;
}

#selbar button:hover {
  background: #ffffff22;
}

@media (max-width:600px) {
  .nav {
    order: 2;
    flex: 1 1 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 3px 0;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav button {
    flex: none;
    white-space: nowrap;
  }
  #next {
    margin-left: 0;
    flex: 1 1 100%;
  }
  #setb,
  body[data-v=plan] #setb {
    order: 0;
    margin-left: auto;
  }
  .top {
    gap: 8px;
  }
  .nav button {
    padding: 4px 10px;
  }
  main {
    padding: 18px 12px 50px;
  }
  .card {
    padding: 14px;
  }
  .ttl {
    font-size: 24px;
  }
  .vctl label {
    flex: 1 1 140px;
  }
  .vctl select,
  .vctl input {
    width: 100%;
  }
  .wtools button {
    padding: 4px 8px;
  }
  h1 {
    font-size: 22px;
  }
}

@media (pointer:coarse) {
  .rli button,
  .ptr button,
  .ptm button,
  .idea2 button[data-act=del] {
    min-width: 34px;
    min-height: 34px;
  }
  .rlg,
  .ptg {
    min-width: 30px;
    text-align: center;
    padding: 6px;
  }
  .dpg button {
    padding: 10px 0;
  }
  .starb {
    font-size: 28px;
  }
}

.gh {
  margin: 16px 0 6px;
  font-size: 14px;
  color: var(--mute);
}

.grow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.grow input {
  flex: 1;
  min-width: 0;
}

.grow button {
  padding: 3px 10px;
  margin-left: 4px;
}

.eps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px;
}

.ep {
  border: 1.5px solid var(--line);
  background: transparent;
  border-radius: 14px;
  padding: 2px 10px;
  font-size: 13px;
}

#gm {
  width: min(560px,94vw);
  max-height: 88vh;
  overflow: auto;
}

.gsel {
  display: block;
  width: 100%;
  margin: 2px 0;
  font-size: 13px;
}

.cmt {
  background: var(--bg);
  border-radius: 10px;
  padding: 8px 10px;
  margin: 6px 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.cmt .cm-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--mute);
}

.cmt .cm-h button {
  border: 0;
  background: transparent;
  color: var(--mute);
  font-size: 16px;
  padding: 0 4px;
}

.mention {
  border: 0;
  background: color-mix(in srgb,var(--acc) 18%,transparent);
  color: var(--acc);
  border-radius: 6px;
  padding: 0 5px;
  font: inherit;
  font-weight: 600;
}

.mention2 {
  color: var(--str);
  font-weight: 600;
}

.tbl {
  overflow-x: auto;
  margin-top: 6px;
}

.tbl table {
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

.tbl th {
  text-align: left;
  font-weight: 600;
  color: var(--mute);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.tbl th button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}

.tbl th button:hover {
  color: var(--ink);
}

.tbl td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.tbl tr.grp td {
  padding: 16px 10px 6px;
  border-bottom: 0;
}

.tname {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-align: left;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
}

.tname {
  background: linear-gradient(var(--acc),var(--acc)) no-repeat left bottom/0 2px;
  transition: background-size .15s var(--ease);
  padding-bottom: 2px;
}

.tname:hover {
  color: var(--acc);
  text-decoration: none;
  background-size: 100% 2px;
  transition: background-size .5s cubic-bezier(.76,0,.24,1);
}

@media (prefers-reduced-motion:reduce) {
  .tname,
  .tname:hover {
    transition: none;
  }
}

.tclip {
  display: block;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--mute);
}

.ptag {
  display: inline-block;
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.vgh {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
}

.tscript {
  border: 1.5px solid var(--line);
  background: transparent;
  border-radius: 8px;
  padding: 2px 10px;
  font-size: 13px;
  white-space: nowrap;
}

.tbl .late {
  color: var(--warn);
  font-weight: 700;
}

.det {
  display: grid;
  gap: 8px;
}

.det label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--mute);
  gap: 2px;
}

.det input,
.det select,
.det textarea {
  font-size: 14px;
  color: var(--ink);
}

.thook {
  width: 230px;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  padding: 2px 6px;
  border-radius: 6px;
}

.thook:hover,
.thook:focus {
  background: var(--bg);
}

.hookrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0;
}

.hookrow span {
  font-size: 13px;
  color: var(--mute);
  white-space: nowrap;
}

.hookrow input {
  flex: 1;
  min-width: 0;
}

#pm {
  position: fixed;
  z-index: 50;
  min-width: 170px;
  background: var(--sf);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 30px #0005;
  animation: dpin .1s ease-out;
}

#pm.out {
  animation: dpout .1s ease-in forwards;
  pointer-events: none;
}

#pm button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 6px 8px;
}

#pm button:hover,
#pm button.sel {
  background: var(--bg);
}

.cellb {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 6px;
  font: inherit;
}

.cellb:hover {
  outline: 2px solid color-mix(in srgb,var(--acc) 50%,transparent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion:reduce) {
  #pm,
  #pm.out {
    animation: none;
  }
}

.cempty {
  display: inline-block;
  min-width: 90px;
  min-height: 22px;
  vertical-align: middle;
}

.tsub {
  display: block;
  color: var(--mute);
  font-size: 12px;
  font-weight: 400;
  margin-top: 2px;
}

#hv {
  position: fixed;
  z-index: 60;
  width: 300px;
  background: var(--sf);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px #0005;
  overflow: hidden;
  pointer-events: none;
  animation: dpin .1s var(--ease);
}

#hv.out {
  animation: dpout .1s var(--ease) forwards;
}

#hv img,
.hvph {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.hvph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--mute);
  font-size: 13px;
}

.hvb {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
}

.hvb b {
  font-size: 15px;
}

.hvr {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.hvt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (prefers-reduced-motion:reduce) {
  #hv,
  #hv.out {
    animation: none;
  }
}

.tbl .dbtn {
  background: linear-gradient(var(--acc),var(--acc)) no-repeat left bottom/0 2px;
  transition: background-size .15s var(--ease);
}

.tbl .dbtn:hover {
  background-size: 100% 2px;
  transition: background-size .5s cubic-bezier(.76,0,.24,1);
}

@media (prefers-reduced-motion:reduce) {
  .tbl .dbtn,
  .tbl .dbtn:hover {
    transition: none;
  }
}

#hc {
  position: fixed;
  z-index: 60;
  width: 262px;
  background: var(--sf);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px #0005;
  padding: 10px 12px;
  pointer-events: none;
  font-size: 13px;
  animation: dpin .1s var(--ease);
}

#hc.out {
  animation: dpout .1s var(--ease) forwards;
}

.hcg {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 2px;
  text-align: center;
  font-size: 12px;
  margin: 6px 0;
}

.hcd {
  padding: 3px 0;
  border-radius: 6px;
}

.hcd.out {
  opacity: .4;
}

.hcd.sel {
  background: var(--acc);
  color: var(--onacc);
  font-weight: 700;
}

.hcm {
  display: block;
  height: 7px;
}

.hcm i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin: 0 1px;
}

.hcl {
  border-top: 1px solid var(--line);
  padding-top: 6px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

@media (prefers-reduced-motion:reduce) {
  #hc,
  #hc.out {
    animation: none;
  }
}

.tbl th {
  position: relative;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tbl td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tbl .thook {
  width: 100%;
}

.rsz {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 9px;
  cursor: col-resize;
  touch-action: none;
}

.rsz:hover,
.rsz.on {
  background: linear-gradient(90deg,transparent 3px,var(--acc) 3px,var(--acc) 5px,transparent 5px);
}

.bcard[data-d] {
  position: relative;
  overflow: hidden;
}

.bcard[data-d]::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--acc);
  transition: width .15s var(--ease);
}

.bcard[data-d]:hover::after {
  width: 100%;
  transition: width .5s cubic-bezier(.76,0,.24,1);
}

@media (prefers-reduced-motion:reduce) {
  .bcard[data-d]::after,
  .bcard[data-d]:hover::after {
    transition: none;
  }
}

.seg[hidden],
.vctl label[hidden] {
  display: none!important;
}

#vids .seg {
  margin-right: 12px;
}

#doc .shortc {
  border-left: 3px solid #E0A100;
  padding-left: 10px;
  margin-left: -13px;
}

.shortchip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: color-mix(in srgb,#E0A100 16%,var(--sf));
  border: 1.5px solid #E0A100;
  border-radius: 10px;
  padding: 6px 10px;
  margin: 10px 0 2px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
}

.shortchip span {
  flex: 1;
  min-width: 180px;
}

.shortchip button {
  border: 1.5px solid #E0A100;
  background: transparent;
  border-radius: 8px;
  padding: 2px 10px;
  font-weight: 600;
  color: var(--ink);
}

.shortchip button[data-act=shno] {
  border: 0;
  font-size: 18px;
  padding: 0 6px;
  color: var(--mute);
}

@keyframes shout {
  from {
    opacity: 1;
    max-height: 140px;
  }
  to {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
  }
}

.shortchip {
  overflow: hidden;
}

.shortchip.leaving {
  animation: shout .28s ease forwards;
  pointer-events: none;
}

#doc .shortc {
  transition: border-color .28s;
}

#doc .shortc.fading {
  border-left-color: transparent;
}

@media (prefers-reduced-motion:reduce) {
  .shortchip.leaving {
    animation: none;
  }
}

.wtools {
  align-items: center;
}

.wtools button {
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
}

.wtools select {
  height: 32px;
  border-radius: 8px;
  font-weight: 600;
}

.tsep {
  width: 1px;
  height: 20px;
  background: var(--line);
  margin: 0 6px;
}

#wt {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#shbtn {
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 16px;
  border-radius: 8px;
}

#shbtn[aria-pressed=true] {
  background: color-mix(in srgb,#E0A100 25%,transparent);
  border-color: #E0A100;
}

.altblk[data-cur=b] .altrack {
  transform: translateX(-60%);
}

.altrack .alt {
  flex: 0 0 78%;
  margin-right: 4%;
}

.altblk[data-cur=a] .alt.b {
  -webkit-mask-image: linear-gradient(90deg,#000 0%,transparent 22%);
  mask-image: linear-gradient(90deg,#000 0%,transparent 22%);
}

.altblk[data-cur=b] .alt.a {
  -webkit-mask-image: linear-gradient(270deg,#000 0%,transparent 22%);
  mask-image: linear-gradient(270deg,#000 0%,transparent 22%);
}

.altblk .altsw,
.altblk[data-cur=a] .altsw,
.altblk[data-cur=b] .altsw {
  left: 80%;
}

#doc {
  position: relative;
  z-index: 1;
}

#selov {
  position: fixed;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

#selov i {
  position: absolute;
  background: color-mix(in srgb,var(--acc) 30%,transparent);
  border-radius: 6px;
}

#doc ::selection,
#doc::selection {
  background: transparent;
}

#ptov {
  position: fixed;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.ptrow {
  position: absolute;
  right: 8px;
  display: flex;
  flex-direction: row-reverse;
  gap: 4px;
  max-width: 200px;
}

.ptchip {
  pointer-events: auto;
  display: inline-flex;
  border: 1.5px solid color-mix(in srgb,var(--acc) 50%,var(--line));
  background: color-mix(in srgb,var(--acc) 12%,var(--sf));
  border-radius: 12px;
  overflow: hidden;
}

.ptchip button {
  border: 0;
  background: transparent;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ptchip button:last-child {
  padding: 1px 7px 1px 2px;
  color: var(--mute);
}

#doc .ptdrop {
  background: color-mix(in srgb,var(--acc) 14%,transparent);
  border-radius: 6px;
  outline: 2px dashed color-mix(in srgb,var(--acc) 55%,transparent);
  outline-offset: 3px;
}

@keyframes ptfl {
  0% {
    background: color-mix(in srgb,var(--acc) 38%,transparent);
  }
  100% {
    background: transparent;
  }
}

#doc .ptflash {
  animation: ptfl 1.3s ease-out;
  border-radius: 6px;
}

.pt.ptflashrow {
  animation: ptfl 1.3s ease-out;
}

#ptghost {
  position: fixed;
  z-index: 70;
  pointer-events: none;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 6px 18px #0005;
}

@media (min-width:801px) {
  #doc {
    padding-right: 60px;
  }
}

.ptrow.inl {
  right: auto;
  left: 0;
  flex-direction: row;
  max-width: none;
}

.ptrow.compact {
  right: 6px;
  max-width: none;
}

.ptmini {
  pointer-events: auto;
  border: 1.5px solid color-mix(in srgb,var(--acc) 50%,var(--line));
  background: color-mix(in srgb,var(--acc) 12%,var(--sf));
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  padding: 0 7px;
  color: var(--ink);
  cursor: pointer;
  height: 22px;
}

.ptfull {
  display: none;
  position: absolute;
  right: 0;
  top: -2px;
  flex-direction: row-reverse;
  gap: 4px;
  background: var(--sf);
  padding: 2px;
  border-radius: 14px;
  box-shadow: 0 4px 16px #0004;
  pointer-events: auto;
}

.ptrow.compact:hover .ptfull {
  display: flex;
}

@media (max-width:800px) {
  #ptov {
    display: none;
  }
}

.shsec {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.shhead,
.shhead2 {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  padding: 4px 0;
  font-size: 14px;
}

.shhead2 {
  font-weight: 600;
}

.shhead span {
  font-weight: 400;
  color: var(--mute);
  font-size: 13px;
}

.shi {
  border: 1.5px solid color-mix(in srgb,#E0A100 60%,var(--line));
  background: color-mix(in srgb,#E0A100 12%,var(--sf));
  border-radius: 10px;
  padding: 8px 10px;
  margin: 8px 0;
  font-size: 13px;
  overflow: hidden;
}

.shi .shq {
  font-style: italic;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shi .shb {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  align-items: center;
}

.shi button {
  border: 1.5px solid #E0A100;
  background: transparent;
  border-radius: 8px;
  padding: 2px 10px;
  font-weight: 600;
  color: var(--ink);
  font-size: 12px;
}

.shi button[data-act=shno] {
  border: 0;
  margin-left: auto;
  font-size: 18px;
  color: var(--mute);
  padding: 0 6px;
}

.shi.leaving {
  animation: shout .28s ease forwards;
  pointer-events: none;
}

.shtop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
}

.shsw {
  border: 1.5px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 1px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.shsw[aria-pressed=true] {
  background: color-mix(in srgb,#E0A100 25%,transparent);
  border-color: #E0A100;
}

.shnote {
  font-size: 13px;
  color: var(--mute);
  margin: 6px 0;
}

.wp {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  margin: 6px 0;
  background: var(--sf);
}

.wp.done .wpt {
  text-decoration: line-through;
  color: var(--mute);
}

.wpr {
  display: flex;
  gap: 6px;
  align-items: center;
}

.wpt {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
}

.wpg {
  cursor: grab;
  color: var(--mute);
  user-select: none;
  touch-action: none;
  letter-spacing: -2px;
  padding: 0 2px;
}

.wp textarea {
  width: 100%;
  margin-top: 6px;
}

.wpr button {
  border: 0;
  background: transparent;
  color: var(--acc);
  font-weight: 600;
  padding: 0 4px;
}

.wpr button[data-act=wpdel] {
  color: var(--warn);
  font-size: 18px;
}

.wp.drag {
  position: relative;
  z-index: 3;
  box-shadow: 0 8px 24px #0004;
  cursor: grabbing;
  transition: none!important;
}

.wpl {
  margin-bottom: 8px;
}

@media (pointer:coarse) {
  .wpr button {
    min-width: 34px;
    min-height: 34px;
  }
  .wpg {
    min-width: 30px;
    text-align: center;
    padding: 6px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .wp {
    transition: none!important;
  }
}

.layout {
  display: block;
}

.cols {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 18px;
  align-items: start;
}

.pages {
  min-width: 0;
}

#gc {
  width: 46px;
  padding: 2px;
  flex: none;
}

#set {
  width: min(940px,94vw);
  max-width: 94vw;
  padding: 22px 26px;
}

.sethd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sethd h1 {
  margin: 0;
}

.setbody {
  display: flex;
  gap: 28px;
  height: min(500px,66vh);
}

.setnav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 140px;
}

.setnav button {
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 15px;
  color: var(--mute);
}

.setnav button:hover {
  background: var(--bg);
}

.setnav button[aria-selected=true] {
  background: var(--bg);
  color: var(--ink);
}

.setpanes {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 5px 6px 5px 6px;
  margin: -5px 0;
}

.setpane[hidden] {
  display: none;
}

.setpane h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.setpane h3:not(:first-child) {
  margin-top: 22px;
}

.srow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.srow:first-child {
  padding-top: 0;
}

.srow>div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.srow .mute {
  font-size: 13px;
}

.sdays {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  justify-content: flex-end;
  flex: none;
}

.sdays .dc {
  margin: 0 2px 4px 0;
}

@media (max-width:600px) {
  .sdays {
    flex-wrap: wrap;
  }
  .setbody {
    flex-direction: column;
    gap: 10px;
    height: 72vh;
  }
  .setnav {
    flex-direction: row;
    flex: none;
    overflow-x: auto;
  }
  .setnav button {
    white-space: nowrap;
  }
  .srow {
    flex-wrap: wrap;
  }
}

/* Settings v367: pane titles, platform sub-tabs, switches, search, danger zone */
.setnav {
  flex: 0 0 152px;
}

#sttabs {
  display: contents;
}

.setnav button.sub,
#sttabs button {
  padding-left: 24px;
  font-size: 14px;
}

.setsep {
  display: block;
  flex: none;
  height: 1px;
  background: var(--line);
  margin: 8px 12px;
}

.sethd {
  gap: 12px;
  align-items: center;
}

.setsv {
  font-size: 13px;
  color: var(--mute);
  opacity: 0;
  transition: opacity .25s var(--ease);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.setsv.on {
  opacity: 1;
}

.setsv svg {
  width: 14px;
  height: 14px;
}

.sethd h1:focus {
  outline: none;
}

.setsrch {
  position: relative;
  flex: 1;
  max-width: 320px;
  margin-left: auto;
}

.setsrch input {
  width: 100%;
}

#setres {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 6;
  background: var(--sf);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  max-height: 320px;
  overflow: auto;
  padding: 6px;
}

#setres[hidden] {
  display: none;
}

.sres {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.sres:hover,
.sres.act {
  background: var(--bg);
}

.sres:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: -2px;
}

.sres .mute {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.snone {
  padding: 8px 10px;
  font-size: 14px;
  color: var(--mute);
}

.setpane .sph {
  margin: 0 0 14px;
}

.sph h2 {
  margin: 0 0 4px;
  font-size: 21px;
}

.sph p {
  margin: 0;
  font-size: 14px;
}

.setpane .sph+h3 {
  margin-top: 4px;
}

.swc {
  position: relative;
  display: inline-block;
  flex: none;
  width: 44px;
  height: 26px;
}

.swc input {
  position: absolute!important;
  inset: 0;
  width: 100%!important;
  height: 100%!important;
  margin: 0;
  padding: 0!important;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.swc i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: color-mix(in srgb,var(--ink) 10%,transparent);
  transition: background .2s,border-color .2s;
}

.swc i::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--ink);
  opacity: .55;
  transition: transform .22s cubic-bezier(.2,.8,.2,1),background .2s,opacity .2s;
}

.swc input:checked+i {
  background: var(--acc);
  border-color: var(--acc);
}

.swc input:checked+i::after {
  transform: translateX(18px);
  background: #fff;
  opacity: 1;
}

.swc input:focus-visible+i {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

.setpane h3.dzh {
  color: var(--del);
}

.dzone {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  border: 1.5px solid color-mix(in srgb,var(--del) 55%,var(--line));
  border-radius: 12px;
  padding: 14px 16px;
  background: color-mix(in srgb,var(--del) 5%,transparent);
}

.dzone .mute {
  font-size: 13px;
}

.dzone #wipe {
  margin-top: 6px;
  width: 100%;
}

.dzone .ghost {
  border-color: var(--del);
  color: var(--del);
}

.dzone .ghost:hover {
  background: color-mix(in srgb,var(--del) 10%,transparent);
}

.sflash {
  animation: sflash 1.7s ease both;
  border-radius: 10px;
}

@keyframes sflash {
  0%,55% {
    box-shadow: 0 0 0 4px color-mix(in srgb,var(--acc) 55%,transparent);
    background: color-mix(in srgb,var(--acc) 12%,transparent);
  }
  100% {
    box-shadow: 0 0 0 4px transparent;
    background: transparent;
  }
}

@media (prefers-reduced-motion:reduce) {
  .sflash {
    animation: none;
    outline: 2px solid var(--acc);
    outline-offset: 2px;
  }
}

@media (max-width:600px) {
  .sethd {
    flex-wrap: wrap;
  }
  .setsrch {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    margin-left: 0;
  }
  .setnav {
    flex: none;
  }
  .setsep {
    width: 1px;
    height: auto;
    margin: 6px 4px;
    align-self: stretch;
  }
  .setnav button.sub,
  #sttabs button {
    padding-left: 12px;
  }
  .setpane .sdays,
  .setpane .srctl {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-start;
  }
}

.wtop {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
}

.wtr {
  display: flex;
  gap: 8px;
}

.stp {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.si {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 3px 10px 2px;
  min-width: 88px;
}

.si .sb {
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 2px 4px;
  color: var(--mute);
  cursor: pointer;
}

.si .sd {
  font-size: 12px;
  color: var(--mute);
  padding: 0 4px 2px;
  border: 0;
  text-align: center;
}

.si .dbtn {
  font-size: 12px;
  color: var(--mute);
  text-align: center;
  background: none;
  border-bottom: 1px dotted currentColor;
}

.si {
  transition: background .2s,border-color .2s,color .2s;
}

#work {
  --pdone: var(--pdl,var(--acc));
}

.si.done .sb {
  color: var(--pdone,var(--acc));
}

.si.now {
  background: var(--pnow,var(--acc));
  border-color: var(--pbd,var(--acc));
}

.si.now .sb,
.si.now .sd,
.si.now .dbtn {
  color: var(--pon,#fff);
}

.si.now.late {
  background: var(--warn);
  border-color: var(--warn);
}

.si.now.late .sb,
.si.now.late .sd,
.si.now.late .dbtn {
  color: var(--bg);
}

.si.pk {
  box-shadow: 0 0 0 2px var(--bg),0 0 0 4px var(--ink);
}

.peek {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 12px;
  margin: 0 0 12px;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
}

.cfull {
  margin-top: 22px;
  padding-top: 6px;
  border-top: 1.5px solid var(--line);
}

@media (max-width:900px) {
  .wtop {
    grid-template-columns: 1fr auto;
  }
  .stp {
    grid-column: 1/-1;
    order: 3;
  }
}

.chl {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.chi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}

.chi.done span:not(.mute) {
  text-decoration: line-through;
  color: var(--mute);
}

.chi .chk {
  margin: 0;
  flex: 1;
}

.chi .x {
  border: 0;
  background: none;
  color: var(--mute);
  font-size: 18px;
  cursor: pointer;
}

dialog.prm {
  padding: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
  background: #0b0b0d;
  color: #f4f4f5;
}

dialog.prm[open] {
  display: flex;
  flex-direction: column;
}

dialog.prm::backdrop {
  background: #000;
}

.prbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  flex-wrap: wrap;
  border-bottom: 1px solid #2a2a2e;
}

.prttl {
  font-size: 16px;
  margin-right: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 30vw;
}

.prsel {
  max-width: 34vw;
  background: #18181b;
  color: #f4f4f5;
  border: 1.5px solid #3f3f46;
}

.prctl {
  display: flex;
  align-items: center;
  gap: 6px;
}

.prm .ghost {
  color: #f4f4f5;
  border-color: #3f3f46;
  background: transparent;
}

.prm .ghost[aria-pressed=true] {
  background: #f4f4f5;
  color: #0b0b0d;
}

.prspd {
  min-width: 44px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.prpgw {
  height: 4px;
  background: #27272a;
}

.prpg {
  height: 100%;
  background: var(--acc);
  transition: width .3s;
}

.prwrap {
  position: relative;
  flex: 1;
  min-height: 0;
}

.prv {
  position: absolute;
  inset: 0;
  overflow-y: scroll;
  scrollbar-width: none;
}

.prv::-webkit-scrollbar {
  display: none;
}

.prm.mir .prv {
  transform: scaleX(-1);
}

.prc {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36vh 40px 70vh;
}

.pch h2 {
  font-size: calc(var(--pf)*.7);
  color: var(--acc);
  margin: 0 0 .6em;
  font-weight: 800;
  letter-spacing: .01em;
}

.pch p {
  font-size: var(--pf);
  line-height: 1.5;
  margin: 0 0 .8em;
  font-weight: 600;
}

.pch .pli {
  margin-left: .5em;
}

.pch {
  padding-bottom: 1.2em;
}

.prline {
  position: absolute;
  left: 0;
  right: 0;
  top: 36%;
  height: 0;
  border-top: 2px dashed #ffffff30;
  pointer-events: none;
}

.prline::before {
  content: '\25B6';
  position: absolute;
  left: 10px;
  top: -13px;
  color: var(--acc);
  font-size: 16px;
}

.prov {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  padding-bottom: 28px;
  pointer-events: none;
}

.prov:has(.prcnt) {
  place-items: center;
}

.prov>* {
  pointer-events: auto;
}

.prcnt {
  font: 800 160px/1 system-ui;
  color: #fff;
  text-shadow: 0 0 40px #000;
}

.prhint {
  background: #18181bcc;
  border: 1px solid #3f3f46;
  padding: 8px 16px;
  border-radius: 999px;
}

.prhint kbd {
  background: #3f3f46;
  border-radius: 5px;
  padding: 1px 7px;
}

.prdone {
  background: #18181bf2;
  border: 1.5px solid #3f3f46;
  border-radius: 14px;
  padding: 16px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
  font-size: 20px;
}

.prdone .mute {
  font-size: 15px;
  color: #a1a1aa;
}

.prdone .row2 {
  justify-content: center;
  flex-wrap: wrap;
}

@supports (backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px)) {
  :root {
    --glass: color-mix(in srgb,var(--sf) 38%,transparent);
    --glassd: color-mix(in srgb,var(--ink) 55%,transparent);
    --blur: blur(20px) saturate(1.7);
  }
  #hv,
  #hc,
  #dp,
  #pm,
  #ep,
  #sa,
  #qc,
  #cm,
  .tb,
  .ptfull,
  dialog:not(.full):not(.prm) {
    background: var(--glass);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
  }
  #toast,
  #selbar,
  #ptghost {
    background: var(--glassd);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
  }
  .prdone,
  .prhint {
    background: #18181b66;
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
  }
  .prbar {
    background: #0b0b0d66;
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
  }
  #hv .hvb {
    background: transparent;
  }
}

@media (prefers-reduced-transparency:reduce) {
  #hv,
  #hc,
  #dp,
  #pm,
  #qc,
  #cm,
  .tb,
  .ptfull,
  dialog:not(.full):not(.prm) {
    background: var(--sf)!important;
    background-image: var(--mg)!important;
    backdrop-filter: none!important;
    -webkit-backdrop-filter: none!important;
  }
  #toast,
  #selbar,
  #ptghost {
    background: var(--ink)!important;
    backdrop-filter: none!important;
  }
}

.bc {
  position: relative;
}

.cadd {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: var(--bg);
  color: var(--mute);
  font-size: 16px;
  line-height: 1;
  padding: 0;
  opacity: 0;
  transition: opacity .12s var(--ease);
  cursor: pointer;
}

.bc:hover .cadd,
.cadd:focus-visible {
  opacity: 1;
}

.cadd:hover {
  background: var(--acc);
  color: #fff;
}

@media (hover:none) {
  .cadd {
    opacity: .7;
  }
}

.cc.ev {
  cursor: pointer;
  background: var(--bg);
}

.cc.ev:hover {
  border-color: currentColor;
}

.bcal :is(.cc.vcc,.cc.dl)[data-d] {
  position: relative;
  overflow: hidden;
}

.bcal :is(.cc.vcc,.cc.dl)[data-d]::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--acc);
  transition: width .15s var(--ease);
}

.bcal :is(.cc.vcc,.cc.dl)[data-d]:hover::after {
  width: 100%;
  transition: width .5s cubic-bezier(.76,0,.24,1);
}

@media (prefers-reduced-motion:reduce) {
  .bcal :is(.cc.vcc,.cc.dl)[data-d]::after,
  .bcal :is(.cc.vcc,.cc.dl)[data-d]:hover::after {
    transition: none;
  }
}

#ep {
  position: fixed;
  z-index: 50;
  width: 280px;
  background: var(--sf);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 30px #0005;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: dpin .1s ease-out;
}

#ep.out {
  animation: dpout .1s ease-in forwards;
}

#ep input {
  width: 100%;
}

.epc {
  display: flex;
  gap: 8px;
}

.epc button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
}

.epc button[aria-checked=true] {
  box-shadow: 0 0 0 2px var(--sf),0 0 0 4px var(--ink);
}

.nav button[hidden] {
  display: none;
}

#series {
  display: none;
}

body[data-v=series] #series {
  display: block;
}

body[data-v=series] #app {
  display: none;
}

#series h2 {
  font-size: 20px;
  margin: 0 0 10px;
}

.ssq {
  width: 100%;
  max-width: 520px;
  font-size: 16px;
  padding: 10px 14px;
  margin: 0 0 18px;
  display: block;
}

.sps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.sp {
  border: 1.5px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 5px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

.sp[aria-pressed=true] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.sp[aria-pressed=true] .mute {
  color: inherit;
  opacity: .7;
}

.sp.ghostp {
  border-style: dashed;
  color: var(--mute);
}

.sp.new {
  min-width: 200px;
  cursor: text;
}

.sgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
  gap: 16px;
}

.scard {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--sf);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}

.scard:hover {
  border-color: var(--acc);
}

.sct {
  display: grid;
  place-items: center;
  aspect-ratio: 16/9;
  background: var(--bg);
  border-bottom: 1.5px solid var(--line);
  position: relative;
  font-size: 13px;
}

.sct img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sct.gen {
  background: linear-gradient(135deg,hsl(var(--h) 60% 46%),hsl(calc(var(--h) + 50) 60% 30%));
  color: #fff;
}

.sct.gen b {
  font-size: 54px;
  font-weight: 800;
}

.sep {
  position: absolute;
  left: 10px;
  top: 10px;
  background: #000a;
  color: #fff;
  border-radius: 8px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 700;
}

.scb {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 14px;
}

.scb>b {
  font-size: 16px;
  line-height: 1.3;
}

.scb .stg {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--acc);
  font-weight: 600;
}

.sbar {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--bg);
  overflow: hidden;
  margin-top: 6px;
}

.sbar i {
  display: block;
  height: 100%;
  background: var(--acc);
  border-radius: 3px;
}

.scard.add {
  border-style: dashed;
  background: transparent;
}

.scard.add .sct {
  background: transparent;
  border-bottom-style: dashed;
  color: var(--mute);
}

.scard.add .sct b {
  font-size: 42px;
  font-weight: 400;
}

.scard[data-d]::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--acc);
  transition: width .15s var(--ease);
}

.scard[data-d]:hover::after {
  width: 100%;
  transition: width .5s cubic-bezier(.76,0,.24,1);
}

@media (prefers-reduced-motion:reduce) {
  .scard[data-d]::after,
  .scard[data-d]:hover::after {
    transition: none;
  }
}

.srh {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.srh .sname {
  margin: 0;
  font-size: 26px;
  max-width: min(520px,100%);
  border-bottom: 2px solid transparent;
}

.srh .sname:hover,
.srh .sname:focus {
  border-bottom-color: var(--line);
}

#sa {
  position: fixed;
  z-index: 50;
  width: 300px;
  max-height: 300px;
  overflow: auto;
  background: var(--sf);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 30px #0005;
  animation: dpin .1s ease-out;
}

#sa.out {
  animation: dpout .1s ease-in forwards;
}

#sa button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
}

#sa button:hover {
  background: var(--bg);
}

#sa small {
  font-weight: 400;
}

#rail {
  border-radius: 14px;
  margin: 0;
  transition: margin-top .14s ease;
}

@keyframes rfo {
  to {
    opacity: 0;
  }
}

@keyframes rfi {
  from {
    opacity: 0;
  }
}

@media (min-width:1000px) {
  #rail {
    margin-top: var(--ra,0px);
  }
}

.hpub {
  margin-top: 22px;
}

.hpub h2 {
  margin-top: 0;
}

#rail .item {
  grid-template-columns: 62px minmax(0,1fr);
}

#rail .vid {
  min-width: 0;
  overflow: hidden;
}

#rail .vid.hov {
  position: relative;
}

#rail .vid.hov::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--acc);
  transition: width .15s var(--ease);
}

#rail .vid.hov:hover::after {
  width: 100%;
  transition: width .5s cubic-bezier(.76,0,.24,1);
}

#rail .vid.cur.hov::after {
  background: #fff;
}

@media (prefers-reduced-motion:reduce) {
  #rail .vid.hov::after,
  #rail .vid.hov:hover::after {
    transition: none;
  }
}

#rail .item[data-cal]:hover .vid.hov::after {
  width: 100%;
  transition: width .5s cubic-bezier(.76,0,.24,1);
}

@media (prefers-reduced-motion:reduce) {
  #rail .item[data-cal]:hover .vid.hov::after {
    transition: none;
  }
}

#rail .vid .rt {
  display: flex;
  min-width: 0;
  flex: 1;
}

#rail .vid .rtt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

#rail .vid .rts {
  white-space: nowrap;
  flex: none;
  font-weight: 500;
}

#rail .vid .rt .tag {
  flex: none;
}

#rail .vid .dots5 {
  flex: none;
}

#rail .hinbox {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 3px solid var(--line);
}

#rail .hinbox h2 {
  font-size: 18px;
}

#rail .hinbox .ilist2 {
  margin-top: 10px;
  gap: 8px;
}

#rail .hinbox .idea2 {
  font-size: 14px;
  padding: 6px 12px;
}

@media (min-width:1000px) {
  .cols {
    grid-template-columns: minmax(0,1fr) 320px;
  }
  #rail {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow: auto;
  }
}

@media (min-width:1300px) {
  .cols {
    grid-template-columns: minmax(0,1fr) 340px;
  }
}

@media (max-width:1499px) {
  #home .hgrid {
    grid-template-columns: 1fr;
  }
}

#home .hgrid {
  align-items: start;
}

.vc.slot {
  border-style: dashed;
  background: transparent;
  cursor: default;
}

.vc.slot .vi {
  gap: 6px;
  align-items: flex-start;
}

.vc.slot b {
  font-size: 18px;
}

.vc.slot .btn {
  margin-top: 6px;
}  /* Anything that opens a video (data-act=open|goto + data-d) automatically gets the summary card and the filling bar. */

.hvx {
  position: relative;
}

.tchip.hvx {
  overflow: hidden;
}

.hvx::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--acc);
  pointer-events: none;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}

.hvx:hover::after {
  animation: hvfill .5s cubic-bezier(.76,0,.24,1) forwards;
}

@keyframes hvfill {
  to {
    width: 100%;
  }
}

@media (prefers-reduced-motion:reduce) {
  .hvx:hover::after {
    animation: none;
    width: 100%;
  }
}

.hbox {
  background: var(--sf);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0 0 18px;
}

.hbox h2 {
  margin: 0 0 10px!important;
}

.hhero {
  display: flex;
  gap: 20px;
  padding: 0;
  overflow: hidden;
}

.hhero .hth {
  flex: 0 0 42%;
  min-height: 220px;
  background: color-mix(in srgb,var(--ink) 6%,transparent);
}

.hhero .hth img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hhero .hth .ph {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--mute);
}

.hhero .hbd {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 18px 0;
  align-items: flex-start;
  justify-content: center;
}

.hhero h2 {
  font-size: clamp(24px,3vw,34px)!important;
  line-height: 1.12;
}

.heyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--acc);
}

.hnext {
  font-size: 15px;
}

.hnext.late b,
.hnext.late {
  color: var(--warn);
}

.hhero .btn {
  margin-top: 4px;
}

.tchips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
}

.tchip {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 2px 11px;
  font-size: 14px;
}

.tchip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  background: transparent;
  color: inherit;
  font-family: inherit;
  line-height: 1.2;
}

.tchip.s {
  color: var(--strp,var(--str));
  border-color: var(--strp,var(--str));
}

button.tchip {
  cursor: pointer;
}

.tchip.pub {
  border-color: var(--acc);
  font-weight: 600;
}

button.tchip.pub:hover {
  background: color-mix(in srgb,var(--acc) 10%,transparent);
}

.htoday .tasks {
  margin: 0 0 12px;
}

.htoday .tasks:last-child {
  margin-bottom: 0;
}

.hweek .bcal.hw {
  min-width: 0;
}

.hweek .hw .bc.today {
  box-shadow: none;
}

.hweek .hw .grid {
  grid-template-columns: repeat(7,minmax(0,1fr));
}

.hweek .hw .bc {
  min-height: 150px;
}

.hweek .hw .bc .n {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width:900px) {
  .hweek .hw .grid {
    grid-template-columns: 1fr 1fr;
  }
  .hweek .hw .bc {
    min-height: 0;
  }
  .hhero {
    flex-direction: column;
    gap: 0;
  }
  .hhero .hth {
    flex: none;
    min-height: 180px;
  }
  .hhero .hbd {
    padding: 16px;
  }
}

@media (max-width:520px) {
  .hweek .hw .grid {
    grid-template-columns: 1fr;
  }
  .hweek .hw .bc {
    min-height: 0;
  }
}

#rail .item>span {
  position: relative;
}

#rail .item input[data-e] {
  position: absolute;
  top: 0;
  left: 74px;
  right: 0;
  width: auto!important;
  height: 24px;
  padding: 0 4px;
  font-size: 13px;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s var(--ease);
  outline: none;
}

#rail .item:hover input[data-e],
#rail .item input[data-e]:focus {
  opacity: 1;
  pointer-events: auto;
}

#rail .item input[data-e]:not(:placeholder-shown) {
  opacity: 1;
  pointer-events: auto;
  border-bottom-color: transparent;
  color: var(--ink);
  font-weight: 600;
  text-overflow: ellipsis;
}

#rail .item:hover input[data-e]:not(:placeholder-shown) {
  border-bottom-color: var(--line);
}

#rail .item input[data-e]:focus {
  border-bottom-color: var(--acc);
}

#rail .vid.shortslot {
  border: 1.5px dashed var(--sh);
  border-left-width: 6px;
  border-left-style: solid;
  color: var(--mute);
  background: transparent;
  font-weight: 500;
}

.idea2[draggable=true] {
  cursor: grab;
}

.gpl {
  border-bottom: 1px solid var(--line);
  padding: 4px 0 8px;
}

.dchips {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  margin: 2px 0 4px;
}

.dchips .dc {
  font-size: 13px;
  padding: 1px 9px;
  margin: 0 2px 4px 0;
}

@media (max-width:600px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

.bcard b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bcal .cc[draggable=true] {
  cursor: grab;
}

.bcal .cc.dragging {
  opacity: .4;
}

.bcal .bc.over {
  outline: 2px solid var(--acc);
  outline-offset: -2px;
  background: color-mix(in srgb,var(--acc) 12%,var(--sf));
}

.cz {
  position: fixed;
  z-index: 30;
  width: 44px;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 700;
  color: var(--acc);
  background: linear-gradient(90deg,color-mix(in srgb,var(--acc) 22%,transparent),transparent);
  border-radius: 12px;
  pointer-events: auto;
  animation: czin .2s;
}

.cz.r {
  background: linear-gradient(270deg,color-mix(in srgb,var(--acc) 22%,transparent),transparent);
}

.cz.over {
  background: color-mix(in srgb,var(--acc) 35%,transparent);
}

@keyframes czin {
  from {
    opacity: 0;
  }
}

.tlbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.tlbar .seg {
  margin: 0;
}

.tlnav {
  display: inline-flex;
  gap: 6px;
}

.tlnav .ghost {
  min-width: 36px;
}

.tlhint {
  font-size: 13px;
  margin-left: auto;
}

.tlc {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg);
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  touch-action: pan-y;
}

body.tlpan .tlc,
body.tlpan .tlc * {
  cursor: grabbing!important;
}

.tlin {
  position: relative;
  padding-top: 40px;
}

.tlax {
  position: absolute;
  top: 0;
  left: 190px;
  right: 0;
  height: 40px;
  overflow: hidden;
  pointer-events: none;
}

.tll .tlax {
  left: 0;
  top: 222px;
  height: 30px;
}

.tx {
  position: absolute;
  top: 20px;
  font-size: 12px;
  color: var(--mute);
  white-space: nowrap;
}

.tx.wk {
  color: var(--ink);
}

.tmo {
  position: absolute;
  top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.tll .tx {
  top: 4px;
}

.tll .tmo {
  top: -210px;
  opacity: .0;
}

.tlbody {
  position: relative;
}

.tlrow {
  display: grid;
  grid-template-columns: 190px minmax(0,1fr);
  height: 46px;
  border-top: 1px solid var(--line);
  align-items: center;
}

.tlnm {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 10px 0 12px;
  min-width: 0;
  position: relative;
  z-index: 4;
  background: var(--bg);
  height: 100%;
}

.tlnm i {
  width: 4px;
  height: 22px;
  border-radius: 2px;
  flex: none;
}

.tlnm button {
  border: 0;
  background: transparent;
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  cursor: pointer;
}

.tllane {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.tlgrid {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 190px;
  right: 0;
  overflow: hidden;
  pointer-events: none;
}

.tll .tlgrid {
  left: 0;
}

.tgl {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  opacity: .5;
}

.tgl.wk {
  opacity: 1;
}

.tdc {
  position: absolute;
  top: 0;
  bottom: 0;
  background: color-mix(in srgb,var(--acc) 9%,transparent);
}

.ttd {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--acc);
  z-index: 3;
}

.ttd b {
  position: absolute;
  top: 22px;
  left: -20px;
  font-size: 11px;
  background: var(--acc);
  color: #06201a;
  padding: 1px 6px;
  border-radius: 6px;
}

.tll .ttd b {
  top: auto;
  bottom: auto;
  display: none;
}

.tlseg {
  position: absolute;
  top: 13px;
  height: 20px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 20px;
  padding: 0 6px;
  color: #fff;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
}

.tlseg.dn {
  opacity: .35;
}

.tlseg.cu {
  box-shadow: 0 0 0 2px var(--ink);
}

.tlh {
  position: absolute;
  top: 11px;
  width: 12px;
  height: 24px;
  cursor: ew-resize;
  z-index: 2;
  border-radius: 4px;
}

.tlh:hover {
  background: #ffffff40;
}

.tlp {
  position: absolute;
  top: 13px;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  padding: 0;
  border-radius: 5px;
  border: 2.5px solid var(--bg);
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  z-index: 3;
  cursor: grab;
  transform: rotate(45deg);
  transition: transform .15s var(--ease);
}

.tlp span {
  transform: rotate(-45deg);
  line-height: 1;
}

.tlp:hover:not(.fix) {
  transform: rotate(45deg) scale(1.15);
}

.tlp.fix {
  cursor: pointer;
  opacity: .5;
}

.tll {
  height: 430px;
  padding: 0;
}

.tlaxl {
  position: absolute;
  left: 0;
  right: 0;
  top: 214px;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
}

.tls {
  position: absolute;
  width: 2px;
  margin-left: -1px;
  background: var(--line);
}

.tld {
  position: absolute;
  top: 206px;
  width: 20px;
  height: 20px;
  margin: 0 0 0 -10px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  z-index: 2;
}

.tlcd {
  position: absolute;
  text-align: left;
  background: var(--sf);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  height: 84px;
  overflow: hidden;
  cursor: pointer;
  z-index: 2;
}

.tlcd.pub {
  opacity: .6;
}

.tlcd b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  margin-bottom: 3px;
}

.tlcd small {
  color: var(--mute);
  display: block;
}

.tl4 {
  display: flex;
  gap: 3px;
  margin-top: 5px;
}

.tl4 i {
  width: 14px;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
}

.tlgp {
  position: absolute;
  top: 190px;
  font-size: 10px;
  color: var(--mute);
  transform: translateX(-50%);
  background: var(--bg);
  padding: 0 4px;
  z-index: 1;
}

#tlg {
  position: fixed;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  white-space: nowrap;
}

.tlnm button[data-d] {
  position: relative;
}

.tlcd[data-d]::after,
.tlnm button[data-d]::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--acc);
  transition: width .15s var(--ease);
}

.tlcd[data-d]:hover::after,
.tlnm button[data-d]:hover::after {
  width: 100%;
  transition: width .5s cubic-bezier(.76,0,.24,1);
}

@media (prefers-reduced-motion:reduce) {
  .tlcd[data-d]::after,
  .tlcd[data-d]:hover::after,
  .tlnm button[data-d]::after,
  .tlnm button[data-d]:hover::after {
    transition: none;
  }
}

.vtop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 12px;
}

.vtop .seg {
  margin: 0!important;
}

.tlzm {
  display: inline-flex;
  gap: 6px;
  margin-left: 6px;
}

.tlzm button {
  min-width: 38px;
  height: 36px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.tag.dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--str);
  vertical-align: -1px;
  margin-right: 10px;
}

.tag.dot.sq {
  border-radius: 3px;
}

#rail .item>span:has(>.tag.dot) {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

#rail .item>span:has(>.tag.dot)>.tag {
  flex: none;
}

#rail .item>span:has(>.tag.dot) {
  flex-wrap: wrap;
}

#rail .item>span:has(>.tag.dot)>select.gsel {
  flex: 1 1 0;
  min-width: 0;
  width: auto!important;
}

#rail .item>span:has(>.tag.dot) input[data-e] {
  position: static;
  order: 3;
  flex: 0 0 calc(100% - 22px);
  margin: 5px 0 0 22px;
  width: auto!important;
  height: 24px;
  display: none;
  opacity: 1;
  pointer-events: auto;
  color: var(--mute);
  font-weight: 500;
}

#rail .item.noting>span:has(>.tag.dot) input[data-e],
#rail .item>span:has(>.tag.dot) input[data-e]:not(:placeholder-shown),
#rail .item>span:has(>.tag.dot) input[data-e]:focus {
  display: block;
}

#rail .item>span:has(>.tag.dot) input[data-e]:not(:placeholder-shown) {
  color: var(--ink);
  font-weight: 500;
}

.nbtn {
  order: 2;
  flex: none;
  width: 0;
  height: 22px;
  margin-left: 0;
  padding: 0;
  border-radius: 50%;
  border: 0 solid var(--line);
  background: transparent;
  color: var(--mute);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  overflow: hidden;
  transition: width .12s var(--ease),margin .12s var(--ease),opacity .12s var(--ease);
}

#rail .item:hover .nbtn,
.nbtn:focus-visible {
  opacity: 1;
  width: 22px;
  margin-left: 6px;
  border-width: 1.5px;
}

.nbtn:hover {
  color: var(--ink);
  border-color: var(--mute);
}

#rail .item.noting .nbtn,
#rail .item:has(input[data-e]:not(:placeholder-shown)) .nbtn {
  display: none;
}

#doc a {
  color: var(--acc);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.wcol {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.wcol #doc {
  flex: 1 1 auto;
  min-height: 0;
}

#srcs {
  flex: 0 0 auto;
  max-height: 34%;
  overflow: auto;
  border-top: 1px solid var(--line);
  background: var(--sf);
  padding: 10px 36px 12px;
}

#srcs[hidden] {
  display: none;
}

#srcs .srch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

#srcs .srch b {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}

#srcs .srch button {
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 3px 10px;
  cursor: pointer;
}

#srcs .srch button:hover {
  border-color: var(--acc);
}

#srcl {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
}

#srcl li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 2px 0;
  min-width: 0;
}

#srcl .sn {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  color: var(--mute);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

#srcl .sn:hover {
  color: var(--acc);
}

#srcl .st {
  font-weight: 600;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 45%;
}

#srcl .su {
  color: var(--acc);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

#srcl .su:hover {
  text-decoration: underline;
}

#doc a.srcflash {
  background: color-mix(in srgb,var(--acc) 28%,transparent);
  border-radius: 3px;
}

#doc a[data-src]::after {
  content: "["attr(data-src)"]";
  font-size: .62em;
  vertical-align: super;
  line-height: 0;
  margin-left: 1px;
  text-decoration: none;
  display: inline-block;
}

@media (max-width:800px) {
  #srcs {
    padding: 10px 18px 12px;
    max-height: 30%;
  }
  #srcl .st {
    max-width: 40%;
  }
}

#uhu:disabled,
#uhr:disabled {
  opacity: .35;
  cursor: default;
}

.sctb {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  display: flex;
  gap: 4px;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .2s var(--ease),transform .2s var(--ease);
}

.scard:hover .sctb,
.scard:focus-within .sctb {
  opacity: 1;
  transform: none;
}

@media (hover:none) {
  .sctb {
    opacity: .85;
    transform: none;
  }
}

.sico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #000a;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sico:hover,
.sico:focus-visible {
  background: var(--acc);
}

.ssea {
  margin: 6px 0 18px;
}

.sseah {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 15px;
}

.sseah .mute {
  font-weight: 400;
  font-size: 12.5px;
}

.ssadd {
  margin-top: 2px;
}

.sthm {
  position: relative;
  width: 112px;
  aspect-ratio: 16/9;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: 12px;
  overflow: hidden;
  flex: none;
}

.sthm img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sthb {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: flex;
  gap: 4px;
}

.sthb button {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 8px;
  border: 0;
  background: #000a;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sthb button:hover {
  background: var(--acc);
}

.scov {
  position: relative;
  width: 112px;
  aspect-ratio: 16/9;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  overflow: hidden;
  flex: none;
  background: transparent;
}

.scov.own {
  border-style: solid;
  background: var(--bg);
}

.scov img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scovb {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--acc);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.scov.own .scovb {
  color: #fff;
  background: #0007;
  opacity: 0;
  transition: opacity .15s var(--ease);
}

.scov.own:hover .scovb,
.scov.own .scovb:focus-visible {
  opacity: 1;
}

.scovx {
  position: absolute;
  right: 4px;
  top: 4px;
  z-index: 2;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 8px;
  border: 0;
  background: #000a;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
}

.scov:hover .scovx,
.scovx:focus-visible {
  opacity: 1;
}

@media (hover:none) {
  .scov.own .scovb,
  .scovx {
    opacity: 1;
  }
}

.scard.sdrag {
  opacity: .4;
}

.scard.sol {
  box-shadow: inset 5px 0 0 var(--acc);
}

.scard.sor {
  box-shadow: inset -5px 0 0 var(--acc);
}

.srh {
  align-items: center;
}

.bcal.mo .mscroll {
  position: relative;
  overflow-y: auto;
  height: calc(100vh - 260px);
  min-height: 420px;
  border-radius: 10px;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.bcal.mo .bc.modd {
  background: color-mix(in srgb,var(--sf) 90%,var(--ink) 4%);
}

.bcal.mo .dow {
  position: relative;
}

.bcal.wk {
  overflow: hidden;
}

.bcal.wk .strip {
  --wk0: calc(-7 / var(--wkt,21) * 100% - 28px / var(--wkt,21));
  width: calc(var(--wkt,21) / (var(--wkn,7) + var(--wkp,0)) * 100%);
  transform: translateX(var(--wk0));
  will-change: transform;
}

.bcal.wk .dow,
.bcal.wk .grid {
  grid-template-columns: repeat(var(--wkt,21),minmax(0,1fr));
}

.bcal.wk .grid {
  touch-action: pan-y;
}

.cal>.bcal.wk {
  min-width: 0;
}

.bcal.wk[data-n]:not([data-n="7"]) {
  -webkit-mask-image: linear-gradient(to right,#000 calc(100% - 36px),transparent);
  mask-image: linear-gradient(to right,#000 calc(100% - 36px),transparent);
}

.bcal.wk .bc[inert] {
  pointer-events: none;
}

#pick .bcal .dow .ws {
  color: var(--acc);
  font-weight: 800;
}

#pick .bcal .bc.ws {
  box-shadow: inset 3px 0 0 var(--acc);
}

#pick .bcal .bc.ws.today {
  box-shadow: inset 0 0 0 2px var(--acc),inset 5px 0 0 var(--acc);
}

body.wkdrag,
body.wkdrag * {
  cursor: grabbing!important;
  user-select: none!important;
}

#rp {
  position: fixed;
  z-index: 50;
  width: 300px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 30px #0005;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: dpin .1s ease-out;
}

#rp.out {
  animation: dpout .1s ease-in forwards;
}

#rp input[type=text],
#rp input:not([type]),
#rp select {
  width: 100%;
}

#rp label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
}

#rp .sdays {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-start;
}

#rp .dc {
  font-size: 13px;
  padding: 1px 9px;
  margin: 0;
}

.rpp span {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cc.rt {
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  border: 1.5px dashed var(--line);
  background: transparent;
  color: var(--mute);
  border-radius: 8px;
  padding: 1px 6px;
}

.cc.rt:hover {
  border-color: var(--acc2);
  color: var(--ink);
}

.cc.rt.dn {
  text-decoration: line-through;
  opacity: .7;
}

.cc.rt.miss {
  opacity: .5;
}

#ep {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-radius: 14px;
  width: 300px;
}

#ep label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
}

.epc {
  gap: 10px;
}

.epc button {
  width: 28px;
  height: 28px;
  transition: transform .15s var(--ease),box-shadow .15s var(--ease);
}

.epc button:hover {
  transform: scale(1.12);
}

.wtools button,
.wtools select {
  white-space: nowrap;
  flex: none;
}

[data-act=copyscript] {
  white-space: nowrap;
  flex: none;
}

#wt {
  flex: 0 1 auto;
  min-width: 56px;
  max-width: min(420px,45vw);
}

#wc {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 2px 4px;
  margin: 0;
  border-radius: 6px;
  font: inherit;
  text-align: left;
  min-width: 0;
  min-height: 0;
  height: auto;
}

#wc[data-act] {
  cursor: pointer;
}

#wc[data-act]:hover {
  text-decoration: underline;
  color: var(--ink);
}

#wc {
  white-space: normal;
  max-width: 96px;
  font-size: 12px;
  line-height: 1.25;
}

@media (min-width:1400px) {
  .wbar {
    flex-wrap: nowrap;
  }
  .wtools {
    flex-wrap: nowrap;
    min-width: 0;
    flex: 0 1 auto;
  }
  #wc {
    white-space: nowrap;
    max-width: none;
    font-size: 12.5px;
    margin-left: auto;
  }
}

.ptrr {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

.ptr input[data-pt],
.wpr input.wpt {
  flex: 0 1 auto;
  field-sizing: content;
  min-width: 6ch;
}

#bkb {
  position: fixed;
  z-index: 55;
  left: 18px;
  bottom: 18px;
  width: min(560px,calc(100vw - 36px));
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--sf);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px #0004;
  padding: 14px 16px;
  animation: bkin .35s var(--ease);
}

#bkb p {
  margin: 4px 0 10px;
  font-size: 14px;
  color: var(--mute);
}

#bkb .bkr {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#bkb .bkx {
  margin-left: auto;
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--mute);
}

@keyframes bkin {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.bkrisk {
  margin-top: 12px;
  font-size: 14px;
  color: var(--mute);
  line-height: 1.5;
}

.bkrisk ul {
  margin: 6px 0 8px;
  padding-left: 20px;
}

.bkob {
  margin-top: 14px;
  font-size: 14px;
  color: var(--mute);
}

.wipebox {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 8px;
}

.wipebox p {
  margin: 6px 0;
}

.wipebox input[type=text] {
  font: inherit;
  text-transform: uppercase;
  letter-spacing: .2em;
  width: 8em;
}

#doc figure.sfig {
  margin: 22px 0;
  text-align: center;
}

#doc figure.sfig img {
  -webkit-user-drag: none;
  user-select: none;
  display: block;
  max-width: 100%;
  max-height: 440px;
  margin: 0 auto;
  border-radius: 10px;
  cursor: pointer;
}

#doc figure.sfig.half img {
  max-width: 50%;
}

#doc figure.sfig.al-l {
  text-align: left;
}

#doc figure.sfig.al-l img {
  margin: 0 auto 0 0;
}

#doc figure.sfig.al-r {
  text-align: right;
}

#doc figure.sfig.al-r img {
  margin: 0 0 0 auto;
}

#doc figure.sfig:not(.half) img {
  margin-left: auto;
  margin-right: auto;
}

#doc figure.sfig figcaption {
  font-size: 13px;
  color: var(--mute);
  margin-top: 8px;
  min-height: 1.4em;
  outline: none;
}

#doc figure.sfig figcaption:empty::before {
  content: attr(data-ph);
  opacity: .55;
}

#lk,
#figbar {
  position: fixed;
  z-index: 30;
  background: var(--glass,var(--sf));
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px #0004;
}

#lk {
  width: min(320px,calc(100vw - 24px));
  padding: 12px;
  display: grid;
  gap: 8px;
}

#lk[hidden],
#figbar[hidden],
#figsel[hidden],
#lk label[hidden],
#lk button[hidden] {
  display: none;
}

#lk label {
  display: grid;
  gap: 3px;
  font-size: 12px;
  color: var(--mute);
}

#lk input {
  width: 100%;
}

#lk .lkb {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

#cmp {
  position: fixed;
  z-index: 30;
  width: min(340px,calc(100vw - 24px));
  max-height: 70vh;
  overflow: auto;
  padding: 12px;
  display: grid;
  gap: 8px;
  background: var(--glass,var(--sf));
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px #0004;
}

#cmp[hidden] {
  display: none;
}

#cms {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

#cms h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.cmsi {
  background: var(--sf);
  border-radius: 10px;
  padding: 6px 10px;
  margin: 6px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.cmsi.go {
  cursor: pointer;
}

.cmsi.go:hover {
  outline: 1.5px solid var(--acc);
}

.cmsq {
  color: var(--mute);
  border-left: 3px solid #e0a43a;
  padding-left: 6px;
  margin-bottom: 2px;
  font-size: 12px;
}

#cmp .cmtt {
  font-weight: 600;
  font-size: 15px;
  overflow-wrap: anywhere;
}

#cmp .cmtt small {
  display: block;
  font-weight: 400;
  color: var(--mute);
  font-size: 11px;
}

#cmp .cmrh {
  font-size: 12px;
  color: var(--mute);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cmsi .cmst {
  font-weight: 600;
}

.cmt.sel .cmtitle {
  font-weight: 600;
}

#cmp .cmq {
  font-size: 13px;
  color: var(--mute);
  border-left: 3px solid #e0a43a;
  padding-left: 8px;
  overflow-wrap: anywhere;
  max-height: 4.5em;
  overflow: hidden;
}

#cmp .cmm {
  font-size: 14px;
  background: var(--bg);
  border-radius: 10px;
  padding: 6px 10px;
  overflow-wrap: anywhere;
}

#cmp .cmm small {
  display: block;
  color: var(--mute);
  font-size: 11px;
}

#cmp textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
}

#cmp .cmpb {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

#doc .cmark {
  background: color-mix(in srgb,#e0a43a 30%,transparent);
  border-radius: 3px;
  cursor: pointer;
  box-decoration-break: clone;
}

#doc .cmark.sv {
  background: none;
  cursor: text;
}

#doc .cmark.on {
  background: color-mix(in srgb,#e0a43a 55%,transparent);
}

.cmt.sel .cq {
  display: block;
  text-align: left;
  width: 100%;
  border: 0;
  border-left: 3px solid #e0a43a;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  padding: 0 0 0 8px;
  margin: 4px 0;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.cmt.sel .cq:hover {
  color: var(--acc);
}

.cmt.sel .cq.gone {
  cursor: default;
  color: var(--mute);
  font-style: italic;
}

.cmt .crep {
  margin: 4px 0 0 10px;
  padding-left: 8px;
  border-left: 2px solid var(--line);
}

.cmt .crep small {
  color: var(--mute);
  font-size: 11px;
  display: block;
}

.cmt .cmact {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}

.cmt .cmact input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 13px;
}

.cmt .cmact button,
.cmsolved {
  font: inherit;
  font-size: 12px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  padding: 2px 8px;
  cursor: pointer;
}

.cmt.solved {
  opacity: .65;
}

.cmsolved {
  margin: 4px 0;
  border-style: dashed;
}

#figbar {
  display: flex;
  gap: 4px;
  padding: 4px;
}

#figbar button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

#figbar button:hover {
  background: color-mix(in srgb,var(--ink) 12%,transparent);
}

#figsel {
  position: fixed;
  z-index: 29;
  pointer-events: none;
  border: 2px solid var(--acc);
  border-radius: 12px;
}

@media (prefers-reduced-transparency:reduce) {
  #lk,
  #figbar {
    background: var(--sf);
  }
}

.card,
dialog,
.bcol,
.scard,
.vc,
.bcard,
#srcs,
#hv,
#hc {
  background-image: var(--mg);
}

.pdot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
  flex: none;
}

.dc.pl {
  font-size: 13px;
  padding: 2px 11px;
  margin: 2px 4px 2px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dc.pl[aria-pressed=true] {
  background: color-mix(in srgb,var(--pc) 22%,transparent);
  border-color: var(--pc);
  color: var(--ink);
}

.dc.pl i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pc);
}

.des .dc.pl {
  width: auto!important;
  flex: none;
}

.plrow {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.plrow b {
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}

.pltt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.pltt input {
  flex: 1;
}

.pltt>span {
  font-size: 13px;
  min-width: 92px;
  display: flex;
  align-items: center;
}

/* Streams v2 */
.cc.ss {
  position: relative;
  overflow: hidden;
  padding: 4px 7px 5px 11px;
  border-color: color-mix(in srgb,var(--sc) 55%,transparent);
  background: color-mix(in srgb,var(--sc) 12%,transparent);
  color: var(--ink);
  font-weight: 400;
}

.cc.ss::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--bar,var(--sc));
}

.cc.ss b {
  display: block;
  font-weight: 650;
  font-size: 12.5px;
  line-height: 1.25;
}

.cc.ss small {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  font-weight: 400;
  color: var(--mute);
  font-size: 11.5px;
  margin-top: 1px;
}

.cc.ss .pdot {
  margin: 0;
  width: 7px;
  height: 7px;
}

.cc.ss small.sst {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc.awy {
  border: 1.5px solid color-mix(in srgb,var(--warn) 50%,transparent);
  background: repeating-linear-gradient(135deg,color-mix(in srgb,var(--warn) 16%,transparent) 0 6px,transparent 6px 12px);
  color: var(--warn);
  font-weight: 600;
  font-size: 12px;
  cursor: default;
}

.strg {
  margin-bottom: 20px;
}

.strh {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.strh .mute {
  margin-left: auto;
  font-size: 13px;
}

.rotw {
  overflow-x: auto;
  padding-bottom: 4px;
}

.rot {
  display: grid;
  grid-template-columns: minmax(118px,150px) repeat(7,minmax(74px,1fr));
  column-gap: 6px;
  row-gap: 6px;
  align-items: stretch;
  min-width: 640px;
}

.rot.solo {
  grid-template-columns: repeat(7,minmax(74px,1fr));
}

.rot .h {
  font-size: 12px;
  color: var(--mute);
  text-align: center;
  font-weight: 700;
  letter-spacing: .02em;
}

.rot .h.on {
  color: var(--ink);
}

.rot .pr {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 14px;
  padding: 0 2px;
}

.rot .pr i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.rot .pr>span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.rot .cp {
  font-size: 12px;
  padding: 1px 8px;
  font-weight: 500;
}

.rc {
  min-height: 46px;
  border-radius: 10px;
  border: 1.5px dashed color-mix(in srgb,var(--line) 85%,transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  padding: 4px 6px;
  text-align: center;
  line-height: 1.2;
  color: var(--mute);
  background: transparent;
  cursor: pointer;
  transition: border-color .12s,background .12s;
}

.rc:hover {
  border-color: var(--acc);
  color: var(--ink);
}

.rc:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

.rc.on {
  border-style: solid;
  color: color-mix(in srgb,var(--cc) 55%,var(--ink));
  background: color-mix(in srgb,var(--cc) 24%,transparent);
  border-color: color-mix(in srgb,var(--cc) 60%,transparent);
}

.rc.on.live {
  color: var(--ink);
}

.rc.mg {
  margin-top: -6px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top-color: transparent;
  padding-top: 10px;
}

.rc.mh {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

.rc small {
  font-weight: 500;
  font-size: 11px;
  color: var(--mute);
}

.crow {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.crow:last-child {
  border-bottom: 0;
}

.crow .t {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.crow .t b {
  font-size: 15px;
}

.cdot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--cc);
  display: inline-block;
  margin-right: 8px;
}

.crow .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  margin-top: 6px;
  font-size: 13px;
  color: var(--mute);
}

.crow .meta .dc {
  margin: 0;
}

.crow .dchips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.crow .meta:empty {
  display: none;
}

.tm {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 1px 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}

.crow label.tml {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.tmi {
  width: 76px;
  padding: 3px 8px;
  font-size: 13px;
}

.lnsel {
  padding: 3px 8px;
  font-size: 13px;
  width: auto;
}

.stt .stm,
.rsm {
  font-size: 12.5px;
  color: var(--mute);
  font-weight: 600;
  margin-right: 4px;
}

.awf input:not([type=date]) {
  width: 100%;
}

#rcm {
  position: fixed;
  z-index: 60;
  width: 260px;
  background: color-mix(in srgb,var(--sf) 96%,#000);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 30px #0005;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 70vh;
  overflow: auto;
}

#rcm .rcmh {
  font-size: 13px;
  color: var(--mute);
  padding: 4px 8px 6px;
}

.rcmi {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 7px 8px;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.rcmi:hover,
.rcmi:focus-visible {
  background: color-mix(in srgb,var(--acc) 14%,transparent);
  outline: none;
}

.rcmi i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
}

.rcmi i.no {
  border: 1.5px solid var(--mute);
  background: transparent;
}

.rcmi .ck {
  margin-left: auto;
  color: var(--acc);
}

.rcmn {
  margin: 6px 4px 2px;
  width: calc(100% - 8px);
}

.rcma {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--mute);
  padding: 6px 8px;
}

#de.dest {
  width: 340px;
}

#de .dtm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.glp {
  border: 1.5px solid color-mix(in srgb,var(--pc) 45%,var(--line));
  border-radius: 10px;
  padding: 8px 10px;
  background: color-mix(in srgb,var(--pc) 8%,transparent);
}

.glp+.glp {
  margin-top: 8px;
}

.glp h5 {
  margin: 0 0 6px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.glp h5 a {
  margin-left: auto;
  font-weight: 500;
  color: var(--mute);
  font-size: 12.5px;
}

.glp label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  padding: 2px 0;
}

#de .glp input[type=checkbox] {
  width: auto;
  margin-top: 2px;
}

.glp .lk {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  align-items: center;
}

#de .glp .lk input {
  font-size: 12.5px;
  padding: 4px 8px;
  flex: 1;
  min-width: 0;
  width: auto;
}

.glp .lk a {
  padding: 3px 10px;
  font-size: 12.5px;
  text-decoration: none;
  white-space: nowrap;
}

/* v360 polish: layout pass */
.wtop {
  grid-template-columns: 1fr auto;
  row-gap: 12px;
}

.wtop .stp {
  grid-column: 1/-1;
  order: 3;
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 8px;
  justify-content: stretch;
}

.wtop .si {
  min-width: 0;
  padding: 5px 8px 4px;
}

.wtop .si .sb {
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width:620px) {
  .wtop .stp {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

#rail .item {
  grid-template-columns: 72px minmax(0,1fr);
}

#rail .item>[data-rd] {
  white-space: nowrap;
  font-size: 13.5px;
}

#rail .item[data-cal]>span:has(>.rgm) {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
}

#rail .item[data-cal]>span:has(>.rgm)>.tag {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  margin-top: 0;
  margin-bottom: 0;
}

#rail .item[data-cal]>span:has(>.rgm)>.rgm {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#rail .rsub .pls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex: none;
}

#rail .rsub .pls .pdot {
  margin: 0;
}

#rail .item[data-cal]>span:has(>.rgm)>.rsub {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  color: var(--mute);
  font-size: 13px;
}

#rail .rsub .rsm {
  margin: 0;
  flex: none;
}

#rail .rsub .rtopic {
  font-size: 13px;
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crow .meta>.dchips {
  gap: 6px;
  margin: 0;
}

.crow .meta>.dchips .dc {
  margin: 0;
}

.crow .t>span {
  display: inline-flex;
  gap: 6px;
  flex: none;
}

.crow .t b {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.crow .t b .cdot {
  flex: none;
}

.stn {
  align-items: flex-start;
}

.stn .stt {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.stn .stl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stn .stc {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stn .pls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.stn .pls .pdot {
  margin: 0;
}

.stn .sts {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
  color: var(--mute);
  min-width: 0;
}

.stn .sts .stp {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stn .sts .stm {
  margin: 0;
  flex: none;
  font-size: 13px;
}

.stn .sts .pls {
  margin-left: auto;
}

.stw {
  white-space: nowrap;
}

.vctl input,
.vctl select,
.vctl button.ghost {
  min-height: 36px;
  box-sizing: border-box;
}

.vctl label {
  white-space: nowrap;
}

#vids .vctl input[data-vf=q] {
  flex: 1 1 140px;
  min-width: 130px;
  max-width: 260px;
}

.vctl {
  gap: 10px 12px;
}

.tbl.more {
  -webkit-mask-image: linear-gradient(to right,#000 calc(100% - 40px),transparent);
  mask-image: linear-gradient(to right,#000 calc(100% - 40px),transparent);
}

.stn .pls {
  gap: 3px;
}

.stw {
  width: 92px;
}

.stn {
  gap: 14px;
}

#streams .stgrid {
  gap: 20px;
}

#rail .item[data-cal]>span:has(>.tag.sq) {
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

#rail .item[data-cal]>span:has(>.tag.sq)>.tag {
  margin-top: 0;
  margin-bottom: 0;
  vertical-align: middle;
  flex: none;
}

.wtop>.ghost[data-act=topick] {
  justify-self: start;
}

#streams .row2 input,
#streams .row2 button {
  min-height: 40px;
  box-sizing: border-box;
}

.cc.vcc {
  font-size: 13.5px;
  font-weight: 650;
  padding: 7px 9px 7px 9px;
}

.cc.vcc small {
  font-size: 12px;
}

.cmact input,
.cmact button {
  height: 28px;
  box-sizing: border-box;
}

.cmact button {
  display: inline-flex;
  align-items: center;
}

.row2:has(>.btn):has(>.ghost)>:is(.btn,.ghost) {
  min-height: 42px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#streams .row2 input,
#streams .row2 button {
  min-height: 42px;
}

.row2 {
  flex-wrap: wrap;
}

.row2>.rhint {
  flex: 1 1 100%;
  font-size: 13px;
}

.srow>div:first-child {
  flex: 1 1 240px;
  min-width: 200px;
}

.srctl {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

input[type=checkbox] {
  accent-color: var(--acc);
}

.row2:has(>.btn)>:is(input:not([type=checkbox]):not([type=radio]),select) {
  min-height: 42px;
  box-sizing: border-box;
}

.row2>input[type=color] {
  height: 42px;
  min-height: 42px;
}

@media (max-width:600px) {
  .wtop {
    grid-template-columns: 1fr;
  }
  .wtop>.ghost[data-act=topick] {
    justify-self: start;
  }
  .wtr {
    flex-wrap: wrap;
  }
  .wtop .ghost,
  .wtr .ghost {
    white-space: nowrap;
  }
  .wtop .stp {
    order: 2;
  }
  .wtr {
    order: 1;
  }
  #vids .seg {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  #vids .seg::-webkit-scrollbar {
    display: none;
  }
  #vids .seg button {
    white-space: nowrap;
    flex: none;
  }
}

/* v361: icon buttons, theme switch animation */
:root {
  --del: #C62828;
  --ondel: #fff;
}

@media (prefers-color-scheme:dark) {
  :root:not([data-theme]) {
    --del: #FF7A70;
    --ondel: #2A0A07;
  }
}

:root[data-theme=dark],
:root[data-theme=bi],
:root[data-theme=gay],
:root[data-theme=lesbian],
:root[data-theme=nb],
:root[data-theme=oled] {
  --del: #FF7A70;
  --ondel: #2A0A07;
}

button.ib {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 38px;
  min-height: 36px;
  padding: 6px 9px;
  line-height: 1;
  flex: none;
  white-space: nowrap;
  box-sizing: border-box;
}

button.ib svg {
  width: 18px;
  height: 18px;
  flex: none;
  pointer-events: none;
}

button.ib>span {
  pointer-events: none;
}

button.ib.del {
  color: var(--del)!important;
  border-color: color-mix(in srgb,var(--del) 45%,var(--line));
}

button.ib.del:hover {
  background: color-mix(in srgb,var(--del) 14%,transparent);
}

button.ib.del.armed {
  background: var(--del);
  color: var(--ondel)!important;
  border-color: var(--del);
  padding: 6px 12px;
  font-weight: 600;
}

button.ib.btn {
  min-width: 40px;
}

@media (pointer:coarse) {
  button.ib {
    min-width: 42px;
    min-height: 42px;
  }
}

html.thx::view-transition-old(root),
html.thx::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
  display: block;
}

html.thx::view-transition-new(root) {
  animation: thxr .65s cubic-bezier(.4,0,.2,1) both;
}

@keyframes thxr {
  from {
    clip-path: circle(0px at var(--tx,50%) var(--ty,50%));
  }
  to {
    clip-path: circle(var(--tr,150vmax) at var(--tx,50%) var(--ty,50%));
  }
}

html.thfade,
html.thfade *,
html.thfade *::before,
html.thfade *::after {
  transition: background-color .45s ease,color .45s ease,border-color .45s ease,fill .45s ease,stroke .45s ease,box-shadow .45s ease!important;
}

.thb>span:last-child {
  line-height: 1.2;
}

.wtop button.ib {
  min-height: 38px;
}

/* v362: column rows in settings (Platforms pane) keep their natural height */
.srow[style*="flex-direction:column"]>div:first-child {
  flex: 0 0 auto;
  min-width: 0;
}

/* v363: categories list */
details.gsec {
  margin: 0;
}

details.gsec>summary.gh {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  margin: 16px 0 6px;
}

details.gsec>summary.gh::-webkit-details-marker {
  display: none;
}

details.gsec>summary.gh::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s;
  flex: none;
  margin: 0 2px 0 3px;
}

details.gsec[open]>summary.gh::before {
  transform: rotate(45deg);
}

.gcnt {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  padding: 0 7px;
  border-radius: 99px;
  background: color-mix(in srgb,var(--mute) 22%,transparent);
}

.gscroll {
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}

#rcm .rcmt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding: 8px 8px 4px;
  font-size: 13px;
  color: var(--mute);
}

#rcm .rcmt>div {
  display: flex;
  gap: 6px;
}

@media (prefers-reduced-motion:reduce) {
  details.gsec>summary.gh::before {
    transition: none;
  }
}

/* v364: drag categories onto the rotation */
#streams [data-gid] {
  cursor: grab;
}

#streams .crow.gdrag,
#streams .grow.gdrag {
  opacity: .45;
}

body.gdragging .rot .rc:not(.on) {
  border-color: color-mix(in srgb,var(--acc) 55%,transparent);
}

.rot .rc.gover {
  outline: 2px solid var(--acc);
  outline-offset: -2px;
  background: color-mix(in srgb,var(--acc) 22%,transparent);
}

.rot .h.gover {
  color: var(--acc);
}

/* ===== v370 polish layer: motion tokens, state feedback on every control ===== */
:root {
  --out: cubic-bezier(.22,1,.36,1);
  --io: cubic-bezier(.65,0,.35,1);
  --pop: cubic-bezier(.34,1.45,.64,1);
  --t1: .12s;
  --t2: .18s;
  --t3: .3s;
  accent-color: var(--acc);
  color-scheme: light;
}

:root[data-theme="dark"],
:root[data-theme="bi"],
:root[data-theme="gay"],
:root[data-theme="lesbian"],
:root[data-theme="nb"],
:root[data-theme="oled"] {
  color-scheme: dark;
}

@media (prefers-color-scheme:dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
  }
}

@supports (interpolate-size:allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
}

::selection {
  background: color-mix(in srgb,var(--acc) 34%,transparent);
}

::placeholder {
  color: color-mix(in srgb,var(--mute) 85%,transparent);
  opacity: 1;
}

:where(*) {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb,var(--ink) 28%,transparent) transparent;
}

/* every interactive thing gets the same calm transition set; components that declare their own keep theirs */
:where(a,button,summary,label,select,input,textarea,[role=button],[role=tab],[role=switch],[tabindex]) {
  transition: background-color var(--t2) var(--out),color var(--t2) var(--out),border-color var(--t2) var(--out),box-shadow var(--t2) var(--out),opacity var(--t2) var(--out),filter var(--t2) var(--out),scale var(--t1) var(--out),translate var(--t2) var(--out),outline-color var(--t2) var(--out),outline-offset var(--t2) var(--out);
  outline: 3px solid transparent;
  outline-offset: 0;
  -webkit-tap-highlight-color: transparent;
}

:where(a,button,summary,label,select,[role=button],[role=tab],[role=switch]) {
  touch-action: manipulation;
}

:where(.btn,.ghost,.seg button,.nav button,.setnav button,.dc,.tchip,.ib,.sb,.rc,.thb,.vgh,summary) {
  -webkit-user-select: none;
  user-select: none;
}

:where(button,input,select,textarea):disabled,
[aria-disabled=true] {
  opacity: .45;
  cursor: not-allowed;
}

html.thx *,
html.thx *::before,
html.thx *::after {
  transition: none!important;
}

/* keep the signature ring buttons' own transition and add the shared ones */
:is(.nav button,.top .ghost,.top .vid,#ql .ql) {
  transition: opacity .2s var(--ease),background-color var(--t2) var(--out),color var(--t2) var(--out),border-color var(--t2) var(--out),box-shadow var(--t2) var(--out),filter var(--t2) var(--out),scale var(--t1) var(--out),translate var(--t2) var(--out);
}

/* ---- filled + outlined buttons ---- */
@media (hover:hover) {
  .btn:hover:not(:disabled) {
    filter: brightness(1.09);
    translate: 0 -1px;
    box-shadow: 0 6px 16px -6px color-mix(in srgb,var(--acc) 70%,transparent);
  }
  .ghost:hover:not(:disabled) {
    background: color-mix(in srgb,var(--acc) 9%,transparent);
    border-color: color-mix(in srgb,var(--acc) 65%,var(--line));
  }
}

.btn:active:not(:disabled) {
  translate: 0 0;
  scale: .97;
  filter: brightness(.96);
  box-shadow: none;
  transition-duration: .06s;
}

.ghost:active:not(:disabled) {
  scale: .97;
  background: color-mix(in srgb,var(--acc) 17%,transparent);
  transition-duration: .06s;
}

.ib:active:not(:disabled) {
  scale: .9;
}

/* ---- segmented control + nav pills + stage buttons ---- */
.seg button,
.nav button {
  transition: background-color var(--t2) var(--out),color var(--t2) var(--out),border-color var(--t2) var(--out),scale var(--t1) var(--out),opacity .2s var(--ease),box-shadow var(--t2) var(--out);
}

@media (hover:hover) {
  .seg button:not([aria-pressed=true]):hover {
    background: color-mix(in srgb,var(--acc) 11%,transparent);
  }
  .nav button:not([aria-pressed=true]):hover {
    background: color-mix(in srgb,var(--acc) 10%,transparent);
  }
  .sb:hover {
    background: color-mix(in srgb,var(--acc) 10%,transparent);
  }
}

.seg button:not([aria-pressed=true]):active {
  background: color-mix(in srgb,var(--acc) 20%,transparent);
}

.nav button:active {
  scale: .95;
}

/* ---- chips, pills, small controls ---- */
@media (hover:hover) {
  .dc:not([aria-pressed=true]):hover {
    border-color: var(--acc);
    background: color-mix(in srgb,var(--acc) 10%,transparent);
  }
  .tchip:hover,
  .pl:hover,
  .rc:hover:not(.on) {
    background: color-mix(in srgb,var(--acc) 9%,transparent);
  }
  .vgh:hover,
  .tscript:hover,
  .dbtn.sd:hover,
  .qgrip:hover {
    color: var(--ink);
  }
  .thumb:hover {
    border-color: var(--acc);
    color: var(--ink);
    background: color-mix(in srgb,var(--acc) 7%,transparent);
  }
  summary:hover {
    color: var(--ink);
  }
}

.dc:active,
.tchip:active,
.pl:active,
.rc:active,
.sb:active,
.vgh:active,
.thb:active {
  scale: .96;
}

.thumb:active {
  scale: .99;
}

/* ---- calendar chips, video references, cards, rows ---- */
:where(.cc,.vid,.itxt) {
  transition: background-color var(--t2) var(--out),color var(--t2) var(--out),border-color var(--t2) var(--out),box-shadow var(--t2) var(--out),scale var(--t1) var(--out),filter var(--t2) var(--out),opacity var(--t2) var(--out);
}

@media (hover:hover) {
  .cc:not(.ev):hover,
  button.vid:hover,
  .pl:hover {
    box-shadow: inset 0 0 0 99px color-mix(in srgb,var(--ink) 8%,transparent);
  }
  .bc:hover {
    background: color-mix(in srgb,var(--acc) 6%,var(--sf));
  }
  .vc:hover,
  .scard:hover,
  .add.scard:hover {
    translate: 0 -2px;
    box-shadow: 0 12px 26px -12px #000a;
  }
  .stn:hover,
  .crow:hover {
    background: color-mix(in srgb,var(--acc) 6%,transparent);
  }
  .trow:hover {
    background: color-mix(in srgb,var(--acc) 5%,var(--sf));
  }
  .qgrip:hover {
    color: var(--ink);
  }
}

.cc:active,
button.vid:active,
.pl:active {
  scale: .98;
}

.vc:active,
.scard:active {
  translate: 0 0;
  scale: .985;
}

.stn:active,
.tmain:active {
  background: color-mix(in srgb,var(--acc) 12%,transparent);
}

.trow {
  transition: opacity .25s,transform .25s,background-color var(--t2) var(--out),border-color var(--t2) var(--out);
}

.vc,
.scard {
  transition: translate var(--t2) var(--out),scale var(--t1) var(--out),box-shadow var(--t2) var(--out),border-color var(--t2) var(--out),background-color var(--t2) var(--out);
}

.tck:active {
  scale: .88;
}

.rcmi:active,
#cm button:active,
#pm button:active,
#sa button:active,
.sres:active,
.setnav button:active {
  background: color-mix(in srgb,var(--acc) 20%,transparent);
}

/* ---- text fields ---- */
@media (hover:hover) {
  :is(input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=button],[type=submit],.ttl,.sname,.thook,[data-e]),select,textarea):hover:not(:focus) {
    border-color: color-mix(in srgb,var(--acc) 45%,var(--line));
  }
}

:is(input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=button],[type=submit],.ttl,.sname,.thook,[data-e]),select,textarea):focus-visible {
  outline-color: transparent;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--acc) 26%,transparent);
}

/* ---- switches: knob stretches while pressed, track reacts to hover ---- */
.swc i,
.sw {
  transition: background-color .2s,border-color .2s,box-shadow .2s,scale .12s var(--out);
}

.swc i::after {
  transition: transform .26s var(--pop),width .16s var(--out),background-color .2s,opacity .2s;
}

.sw i {
  transition: transform .26s var(--pop),width .16s var(--out),background-color .2s,opacity .2s;
}

.swc:active i::after {
  width: 24px;
}

.swc:active input:checked+i::after {
  transform: translateX(13px);
}

.sw:active:not(:disabled) i {
  width: 24px;
}

.sw:active[aria-checked=true] i {
  transform: translateX(13px);
}

@media (hover:hover) {
  .swc:hover input:not(:checked)+i,
  .sw[aria-checked=false]:hover {
    border-color: color-mix(in srgb,var(--acc) 60%,var(--line));
  }
  .swc:hover input:checked+i,
  .sw[aria-checked=true]:hover {
    filter: brightness(1.1);
  }
}

/* ---- checkboxes: drawn here so the tick can animate ---- */
input[type=checkbox]:not(:where(.swc *)) {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  display: inline-grid;
  place-content: center;
  position: relative;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  padding: 0;
  cursor: pointer;
  border: 1.5px solid color-mix(in srgb,var(--ink) 38%,transparent);
  border-radius: 5px;
  background: transparent;
  transition: background-color .15s,border-color .15s,box-shadow .15s,scale .12s var(--out);
}

input[type=checkbox]:not(:where(.swc *))::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--onacc);
  clip-path: polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0%,43% 62%);
  transform: scale(0) rotate(-14deg);
  transition: transform .2s var(--pop);
}

input[type=checkbox]:not(:where(.swc *)):checked {
  background: var(--acc);
  border-color: var(--acc);
}

input[type=checkbox]:not(:where(.swc *)):checked::after {
  transform: scale(1) rotate(0);
}

input[type=checkbox]:not(:where(.swc *)):active {
  scale: .88;
}

input[type=checkbox]:not(:where(.swc *)):focus-visible {
  outline-color: var(--acc);
  outline-offset: 2px;
  box-shadow: none;
}

@media (hover:hover) {
  input[type=checkbox]:not(:where(.swc *)):not(:checked):hover {
    border-color: var(--acc);
    background: color-mix(in srgb,var(--acc) 12%,transparent);
  }
}

/* ---- surfaces ---- */
#toast {
  translate: 0 12px;
  transition: opacity .2s var(--out),translate .3s var(--out);
}

#toast.show {
  translate: 0 0;
}

@keyframes mnin {
  from {
    opacity: 0;
    translate: 0 -6px;
    scale: .97;
  }
}

#cm:not([hidden]),
#qc:not([hidden]),
#setres:not([hidden]) {
  animation: mnin .14s var(--out);
  transform-origin: 50% 0;
}

#toast .undo {
  transition: background-color .15s,scale .12s var(--out);
}

#toast .undo:hover {
  background: color-mix(in srgb,currentColor 16%,transparent);
}

#toast .undo:active {
  scale: .94;
}

@media (prefers-reduced-motion:reduce) {
  :where(*,*::before,*::after) {
    transition-duration: .01ms!important;
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    scroll-behavior: auto!important;
  }
  .btn:hover,
  .vc:hover,
  .scard:hover {
    translate: none!important;
  }
  :where(button,.btn,.ghost,.vc,.scard,.cc,.vid,.dc,.tchip,.sw,.swc,input):active {
    scale: none!important;
  }
}

/* ---- wrapping: balanced headings, no lonely last words, no broken short labels ---- */
:where(h1,h2,h3,h4,.tname,.vc b,.scard b) {
  text-wrap: balance;
}

:where(p,li,.mute,.rhint) {
  text-wrap: pretty;
}

#wc,
.vgh,
.tlz {
  white-space: nowrap;
}

.qle .qf {
  transition: opacity .2s var(--out);
}

[data-nt],
[data-nt] *,
[data-nt]::before,
[data-nt]::after,
[data-nt] *::before,
[data-nt] *::after {
  transition: none!important;
}

/* ---- narrow calendar cells: smaller chip type, clamped titles, the home week reflows to 4 + 3 ---- */
.bc {
  container-type: inline-size;
}

.cc {
  overflow-wrap: anywhere;
}

.cc.dl small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.cc.s small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.bcal.wk .cc.vcc .ct {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  overflow-wrap: break-word;
  hyphens: auto;
}

@container (max-width:124px) {
  .cc {
    font-size: 11px;
    padding: 2px 5px;
  }
  .cc.vcc {
    font-size: 12.5px;
    padding: 6px 7px;
    border-left-width: 5px;
  }
  .cc.vcc small,
  .cc small {
    font-size: 10.5px;
  }
  .cc.dl {
    font-size: 10.5px;
  }
}

.hweek {
  container-type: inline-size;
}

@container (min-width:520px) and (max-width:780px) {
  .hweek .hw .grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
  .hweek .hw .bc {
    min-height: 120px;
  }
}

@keyframes nudge {
  0%,100% {
    translate: 0;
  }
  18% {
    translate: -6px;
  }
  38% {
    translate: 5px;
  }
  58% {
    translate: -3px;
  }
  78% {
    translate: 2px;
  }
}

.nudge {
  animation: nudge .36s var(--out);
  border-color: var(--warn)!important;
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--warn) 32%,transparent)!important;
}

@keyframes dtin {
  from {
    opacity: 0;
    translate: 0 -8px;
  }
}

details.dtin>:not(summary) {
  animation: dtin .28s var(--out);
}

/* hero thumbnail shows the whole picture; the spare space is filled with a soft blur of the same image */
.hhero .hth {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hhero .hth img {
  position: relative;
  object-fit: contain!important;
}

.hhero .hth img.hbg {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover!important;
  filter: blur(22px) saturate(1.25) brightness(.62);
  z-index: -1;
}

/* ---- v371: sideways strips fade at the edge that still has more, hero placeholder sits in the middle ---- */
@property --sfl {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

@property --sfr {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

@keyframes sfade {
  0% {
    --sfl: 0px;
    --sfr: 26px;
  }
  6% {
    --sfl: 26px;
  }
  94% {
    --sfr: 26px;
  }
  100% {
    --sfl: 26px;
    --sfr: 0px;
  }
}

@supports (animation-timeline:scroll()) {
  :is(.cal,.board,.rotw,#vids .seg) {
    animation: sfade linear both;
    animation-timeline: scroll(self inline);
    -webkit-mask-image: linear-gradient(to right,transparent 0,#000 var(--sfl),#000 calc(100% - var(--sfr)),transparent 100%);
    mask-image: linear-gradient(to right,transparent 0,#000 var(--sfl),#000 calc(100% - var(--sfr)),transparent 100%);
  }
  @media (max-width:600px) {
    :is(.nav,.setnav) {
      animation: sfade linear both;
      animation-timeline: scroll(self inline);
      -webkit-mask-image: linear-gradient(to right,transparent 0,#000 var(--sfl),#000 calc(100% - var(--sfr)),transparent 100%);
      mask-image: linear-gradient(to right,transparent 0,#000 var(--sfl),#000 calc(100% - var(--sfr)),transparent 100%);
    }
  }
  @media (prefers-reduced-motion:reduce) {
    :is(.cal,.board,.rotw,#vids .seg,.nav,.setnav) {
      animation-duration: auto!important;
    }
  }
}

.hhero .hth .ph {
  min-height: inherit;
}

/* long text in a field ends in an ellipsis instead of a hard cut (while it is not being edited) */
:where(input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file])) {
  text-overflow: ellipsis;
}

/* ===== v372: the Ideas page and the new bubbles ===== */
@property --uh {
  syntax: '<color>';
  inherits: true;
  initial-value: #888;
}

@property --ur {
  syntax: '<color>';
  inherits: true;
  initial-value: transparent;
}

@property --uo {
  syntax: '<color>';
  inherits: true;
  initial-value: transparent;
}

@property --um {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 24%;
}

@property --ue {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 40%;
}

@property --ud {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 0%;
}

@property --us {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 30%;
}

:root {
  --hl: .6;
  --onh: #fff;
}

:is([data-theme=dark],[data-theme=oled],[data-theme=bi],[data-theme=gay],[data-theme=lesbian],[data-theme=nb]) {
  --hl: .2;
}

:is([data-theme=dark],[data-theme=oled],[data-theme=gay],[data-theme=lesbian],[data-theme=nb]) {
  --onh: #16141C;
}

:is(.pk,.iu,.igh).u1 {
  --uh: var(--g3);
}

:is(.pk,.iu,.igh).u2 {
  --uh: var(--g2);
}

:is(.pk,.iu,.igh).u3 {
  --uh: var(--g1);
}

.bub.u1 {
  --uh: var(--g3);
  --um: 24%;
  --ue: 40%;
  --ud: 0%;
  --us: calc(var(--hl) * 55%);
  --ur: color-mix(in srgb,var(--g3) 58%,transparent);
  --uo: transparent;
}

.bub.u2 {
  --uh: var(--g2);
  --um: 31%;
  --ue: 46%;
  --ud: 0%;
  --us: calc(var(--hl) * 55%);
  --ur: color-mix(in srgb,var(--g2) 58%,transparent);
  --uo: transparent;
}

.bub.u3 {
  --uh: var(--g1);
  --um: 100%;
  --ue: 100%;
  --ud: 14%;
  --us: 26%;
  --ur: color-mix(in srgb,#fff 24%,transparent);
  --uo: color-mix(in srgb,var(--g1) 16%,transparent);
}

.ideate-w {
  max-width: none;
  margin: 0;
}

#ideas .ihd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 12px;
}

#ideas .ihd h2 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.ihc {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ihc .ipick,
.ihc .seg button {
  min-height: 36px;
  box-sizing: border-box;
}

/* capture box with a real Add button */
.icap {
  position: relative;
}

.icap #paste {
  display: block;
  box-sizing: border-box;
  min-height: 54px;
  line-height: 1.35;
  border-radius: 12px;
}

.iadd {
  position: absolute;
  right: 9px;
  top: 9px;
  height: 36px;
  padding: 0 16px;
  border-radius: 9px;
  opacity: 0;
  scale: .9;
  pointer-events: none;
}

.iadd.show {
  opacity: 1;
  scale: 1;
  pointer-events: auto;
}

#ihint {
  margin: 8px 2px 0;
  min-height: 1.5em;
}

/* controls */
.ictl {
  margin: 12px 0 0;
  gap: 10px 14px;
}

.ufl button i {
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  opacity: .7;
  margin-left: 5px;
  font-variant-numeric: tabular-nums;
}

.ufl button[aria-pressed=true] i {
  opacity: .85;
}

/* segmented controls whose highlight slides from one choice to the next (List/Bubbles, All/Mid+/High); the urgency one warms up from neutral to amber to red */
#ideas .sth {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 2px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  isolation: isolate;
  --i: 0;
}

#ideas .sth::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 2px;
  top: 2px;
  bottom: 2px;
  width: calc((100% - 4px) / var(--n));
  border-radius: 9px;
  background: var(--ink);
  translate: calc(var(--i) * 100%) 0;
  transition: translate .5s var(--out),background-color .45s var(--out),box-shadow .45s var(--out);
}

#ideas .sth button {
  margin: 0;
  min-height: 29px;
  padding: 3px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
  transition: color .22s var(--out),background-color var(--t2) var(--out),scale var(--t1) var(--out);
}

#ideas .sth button[aria-pressed=true] {
  background: transparent;
  color: var(--bg);
  transition-delay: .12s,0s,0s;
}

@media (hover:hover) {
  #ideas .sth button[aria-pressed=false]:hover {
    background: color-mix(in srgb,var(--acc) 11%,transparent);
  }
}

#ideas .ufl[data-lv="2"]::before {
  background: color-mix(in srgb,var(--g2) 44%,var(--sf));
  box-shadow: inset 0 0 0 1.5px var(--g2);
}

#ideas .ufl[data-lv="3"]::before {
  background: var(--g1);
  box-shadow: 0 5px 14px -5px color-mix(in srgb,var(--g1) 85%,transparent);
}

#ideas .ufl[data-lv="2"] button[aria-pressed=true] {
  color: var(--ink);
}

#ideas .ufl[data-lv="3"] button[aria-pressed=true] {
  color: var(--onh);
}

.ipick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.ipick svg {
  transition: rotate .5s var(--pop);
}

@media (hover:hover) {
  .ipick:hover svg {
    rotate: 180deg;
  }
}

/* list: rows with an urgency meter */
#ideas #il.ilist2 {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(min(100%,320px),1fr));
  gap: 10px;
  margin-top: 14px;
}

#ideas .idea2.lout,
#ideas .igh.lout {
  pointer-events: none;
}

#ideas .idea2.new {
  animation: none;
}

#ideas .idea2 {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  max-width: none;
  padding: 0;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  border: 1.5px solid var(--line);
  background: color-mix(in srgb,var(--bg) 42%,var(--sf));
  overflow: hidden;
}

#ideas .idea2.u2 {
  background: color-mix(in srgb,var(--g2) 8%,color-mix(in srgb,var(--bg) 42%,var(--sf)));
  border-color: color-mix(in srgb,var(--g2) 32%,var(--line));
}

#ideas .idea2.u3 {
  background: color-mix(in srgb,var(--g1) 11%,color-mix(in srgb,var(--bg) 42%,var(--sf)));
  border-color: color-mix(in srgb,var(--g1) 50%,var(--line));
}

#ideas .idea2.hot {
  font-weight: 500;
}

#ideas .idea2.old {
  opacity: .62;
}

#ideas .idea2:has(.itxt):hover {
  background: color-mix(in srgb,var(--acc) 9%,var(--sf));
  border-color: var(--acc);
  box-shadow: 0 6px 16px -8px #0006;
  transform: none;
}

@media (hover:hover) {
  #ideas .idea2:has(.itxt):hover {
    translate: 0 -1px;
  }
}

#ideas .idea2 .itxt::after {
  border-radius: 14px;
}

#ideas .idea2 button {
  border-radius: 0;
}

#ideas .idea2 .iu {
  position: relative;
  z-index: 1;
  flex: none;
  width: 46px;
  height: auto;
  align-self: stretch;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 5px;
  gap: 3px;
  align-content: center;
  justify-content: center;
  align-items: end;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
}

#ideas .idea2 .iu i {
  display: block;
  border-radius: 3px;
  background: color-mix(in srgb,var(--ink) 15%,transparent);
  transition: background-color var(--t2) var(--out);
}

#ideas .idea2 .iu i:nth-child(1) {
  height: 9px;
}

#ideas .idea2 .iu i:nth-child(2) {
  height: 14px;
}

#ideas .idea2 .iu i:nth-child(3) {
  height: 19px;
}

#ideas .idea2 .iu.u1 i:nth-child(-n+1),
#ideas .idea2 .iu.u2 i:nth-child(-n+2),
#ideas .idea2 .iu.u3 i {
  background: var(--uh);
}

@media (hover:hover) {
  #ideas .idea2 .iu:hover {
    background: color-mix(in srgb,var(--uh) 14%,transparent);
  }
}

#ideas .idea2 .iu:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: -3px;
  border-radius: 12px;
}

#ideas .idea2 .itxt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: auto;
  padding: 12px 6px 12px 2px;
  font: inherit;
  line-height: 1.3;
  text-align: left;
  color: inherit;
}

#ideas .idea2 .itxt .it {
  overflow-wrap: anywhere;
}

#ideas .idea2 .itg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

#ideas .idea2 .ptag {
  font-size: 12px;
  padding: 0 8px;
  line-height: 1.55;
}

.ptag.sh {
  background: color-mix(in srgb,#D97706 22%,transparent);
  color: color-mix(in srgb,#D97706 62%,var(--ink));
}

.ptag.gn {
  background: color-mix(in srgb,var(--gc,var(--acc)) 22%,transparent);
  color: color-mix(in srgb,var(--gc,var(--acc)) 55%,var(--ink));
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ptag.gn::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gc,var(--acc));
}

.inote {
  display: inline-flex;
  align-items: center;
  color: var(--mute);
}

#ideas .idea2 .idl {
  position: relative;
  z-index: 1;
  flex: none;
  align-self: flex-start;
  width: 34px;
  height: 34px;
  margin: 6px 6px 0 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 0;
  color: var(--mute);
  opacity: .55;
}

@media (hover:hover) {
  #ideas .idea2:hover .idl {
    opacity: .85;
  }
  #ideas .idea2 .idl:hover {
    opacity: 1;
    color: var(--warn);
    background: color-mix(in srgb,var(--warn) 14%,transparent);
  }
}

#ideas .idea2 .idl:focus-visible {
  opacity: 1;
  outline: 2px solid var(--acc);
  outline-offset: -2px;
}

@media (pointer:coarse) {
  #ideas .idea2 .idl {
    width: 40px;
    height: 40px;
    margin: 3px 3px 0 0;
  }
  #ideas .idea2 .iu {
    width: 52px;
  }
}

.igh {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 2px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--mute);
}

.igh:first-child {
  margin-top: 0;
}

.igh i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--uh);
}

.igh.u3 i {
  width: 14px;
  height: 14px;
}

.igh.u1 i {
  width: 9px;
  height: 9px;
}

.igh span {
  font-weight: 600;
  opacity: .8;
}

.iempty {
  grid-column: 1/-1;
  text-align: center;
  padding: 38px 16px 34px;
  color: var(--mute);
}

.iempty b {
  display: block;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 4px;
}

.iempty p {
  margin: 0 auto 14px;
  max-width: 34em;
}

.igst {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 16px;
}

.igst i {
  display: block;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb,var(--uh) 60%,transparent);
  background: color-mix(in srgb,var(--uh) 9%,transparent);
  animation: bob 6s ease-in-out infinite;
}

.igst i:nth-child(1) {
  width: 38px;
  height: 38px;
  --uh: var(--g3);
}

.igst i:nth-child(2) {
  width: 54px;
  height: 54px;
  --uh: var(--g2);
  animation-delay: -2s;
}

.igst i:nth-child(3) {
  width: 76px;
  height: 76px;
  --uh: var(--g1);
  animation-delay: -4s;
}

@media (prefers-reduced-motion:reduce) {
  .igst i {
    animation: none;
  }
}

/* bubbles */
#ideas #il.ipool {
  margin-top: 14px;
}

.pool {
  position: relative;
  width: 100%;
  border-radius: 18px;
  background: radial-gradient(70% 90% at 50% 40%,color-mix(in srgb,var(--g1) 7%,transparent),transparent 72%),color-mix(in srgb,var(--bg) 72%,var(--sf));
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: height .5s var(--out);
}

.bub {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  translate: calc(var(--x) - var(--r)) calc(var(--y) - var(--r));
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: translate .75s var(--out),width .75s var(--out),height .75s var(--out),opacity .3s var(--out),scale .35s var(--out),color .4s var(--out),--uh .5s var(--out),--ur .5s var(--out),--uo .5s var(--out),--um .5s var(--out),--ue .5s var(--out),--ud .5s var(--out),--us .5s var(--out);
}

.bub.u3 {
  color: var(--onh);
}

.bub {
  -webkit-user-select: none;
  user-select: none;
}

.bub:focus-visible {
  outline: none;
}

.bub:focus-visible .bi {
  outline: 3px solid var(--acc);
  outline-offset: 3px;
}

.bub .bi {
  --ut: color-mix(in srgb,var(--uh) var(--um),var(--sf));
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 24%,color-mix(in srgb,#fff var(--us),var(--ut)) 0,var(--ut) 46%,color-mix(in srgb,#000 var(--ud),color-mix(in srgb,var(--uh) var(--ue),var(--sf))) 100%);
  box-shadow: inset 0 0 0 1.5px var(--ur),inset 0 -8px 16px -8px color-mix(in srgb,color-mix(in srgb,var(--uh) 55%,#000) 60%,transparent),0 12px 20px -14px color-mix(in srgb,var(--uh) 80%,#000),0 2px 3px #0002,0 0 0 6px var(--uo);
  animation: bob var(--bd,7s) ease-in-out var(--bl,0s) infinite;
  transition: scale .3s var(--pop),filter .25s var(--out);
}

.bub .bi::before {
  content: '';
  position: absolute;
  left: 17%;
  top: 8%;
  width: 50%;
  height: 28%;
  border-radius: 50%;
  background: linear-gradient(180deg,rgba(255,255,255,calc(var(--hl) * 1.15)),rgba(255,255,255,0));
  rotate: -20deg;
  pointer-events: none;
}

.bub .bt {
  position: relative;
  display: block;
  font-size: var(--f);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -.005em;
  text-align: center;
  pointer-events: none;
}

.bub .bt span {
  display: block;
  white-space: nowrap;
}

.bub .gd {
  position: absolute;
  right: calc(14.6% - 5px);
  bottom: calc(14.6% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gc);
  box-shadow: 0 0 0 2px var(--sf);
  pointer-events: none;
}

.bub.u3 .gd {
  box-shadow: 0 0 0 2px color-mix(in srgb,#fff 70%,var(--uh));
}

.bub.sh .bi::after {
  content: 'S';
  position: absolute;
  left: calc(14.6% - 6px);
  top: calc(14.6% - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #D97706;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 12px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--sf);
  pointer-events: none;
}

@keyframes bob {
  0%,100% {
    transform: translate3d(0,-2.5px,0);
  }
  50% {
    transform: translate3d(0,3px,0);
  }
}

@keyframes bin {
  from {
    opacity: 0;
    scale: .2;
  }
}

.bub.in {
  animation: bin .6s var(--pop) var(--ed,0s) both;
}

.bub.out {
  opacity: 0;
  scale: .55;
  pointer-events: none;
}

.bub.calm .bi {
  animation: none;
}

@media (hover:hover) {
  .bub:hover {
    z-index: 3;
  }
  .bub:hover .bi {
    scale: 1.07;
    filter: brightness(1.05) saturate(1.08);
  }
}

.bub:active .bi {
  scale: .96;
}

.pool.spot .bub:not(.picked) {
  opacity: .28;
  scale: .93;
}

.bub.picked {
  z-index: 4;
}

.urg.u1 {
  background: color-mix(in srgb,var(--g3) 30%,transparent);
  color: color-mix(in srgb,var(--g3) 25%,var(--ink));
}

#ideas .idea2.picked {
  border-color: var(--acc);
  animation: rpick 1.2s var(--out);
}

@keyframes rpick {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb,var(--acc) 55%,transparent);
  }
  40% {
    box-shadow: 0 0 0 8px color-mix(in srgb,var(--acc) 30%,transparent);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.bub.picked .bi {
  animation: bpick 1.2s var(--out) both;
}

@keyframes bpick {
  0% {
    scale: 1;
  }
  35% {
    scale: 1.2;
  }
  100% {
    scale: 1.14;
  }
}

.poolkey {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--mute);
}

.pk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pk i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: color-mix(in srgb,var(--uh) 30%,var(--sf));
  box-shadow: inset 0 0 0 1.5px var(--uh);
}

.pk.u1 i {
  width: 10px;
  height: 10px;
}

.pk.u2 i {
  width: 13px;
  height: 13px;
}

.pk.u3 i {
  width: 17px;
  height: 17px;
  background: var(--uh);
  box-shadow: none;
}

.pk i.gdot {
  width: 9px;
  height: 9px;
  background: var(--gc);
  box-shadow: none;
}

.pk.sh i {
  width: 13px;
  height: 13px;
  background: #D97706;
  box-shadow: none;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 13px;
  text-align: center;
  font-style: normal;
}

.pkn {
  margin-left: auto;
}

#bt {
  position: fixed;
  z-index: 60;
  left: 0;
  top: 0;
  max-width: min(300px,calc(100vw - 16px));
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--sf);
  border: 1.5px solid var(--line);
  box-shadow: 0 14px 34px -10px #0007;
  font-size: 14px;
  line-height: 1.35;
  pointer-events: none;
  opacity: 0;
  translate: 0 4px;
  transition: opacity .12s var(--out),translate .16s var(--out);
}

#bt.show {
  opacity: 1;
  translate: 0 0;
}

#bt b {
  display: block;
  font-size: 15px;
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}

#bt .bm {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

#bt p {
  margin: 9px 0 0;
  color: var(--mute);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

#bt small {
  display: block;
  margin-top: 9px;
  color: var(--mute);
  font-size: 12px;
}

@media (max-width:600px) {
  .ufl {
    width: 100%;
  }
  .ufl button {
    flex: 1 1 0;
    justify-content: center;
  }
  .ipick span {
    display: none;
  }
  .ipick {
    padding: 6px 10px;
  }
  .poolkey .pkn {
    margin-left: 0;
    flex-basis: 100%;
  }
  .icap #paste {
    font-size: 17px!important;
  }
}

@media (prefers-reduced-motion:reduce) {
  #ideas .sth::before,
  #ideas .sth button {
    transition: none;
  }
  .bub,
  .pool {
    transition: none;
  }
  .bub .bi {
    animation: none;
  }
  .bub.in {
    animation: none;
  }
  .bub.picked .bi {
    animation: none;
    scale: 1.12;
  }
  .ipick svg {
    transition: none;
  }
}

/* v374: one sliding highlight for every selector (calendar view, video tabs and layout, timeline, idea urgency), the top menu and the settings menu */
.seg:not(.sth),
.nav,
.setnav {
  position: relative;
  isolation: isolate;
}

.seg:not(.sth) {
  gap: 0;
  padding: 2px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
}

.seg:not(.sth) button {
  margin: 0;
  padding: 2px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  white-space: nowrap;
  transition: color .22s var(--out),background-color var(--t2) var(--out),scale var(--t1) var(--out);
}

#ic .seg:not(.sth) button {
  padding: 1px 12px;
}

.seg[data-th]:not(.sth) button[aria-pressed=true] {
  background: transparent;
  border-color: transparent;
  color: var(--bg);
  transition-delay: .12s,0s,0s;
}

/* :not(#_) lifts this above the nav button transition list, which carries the weight of an id */
.nav[data-th] button[aria-pressed=true]:not(#_) {
  background: transparent;
  border-color: transparent;
  transition: opacity .2s var(--ease),background-color var(--t2) var(--out),color .22s var(--out) .12s,border-color var(--t2) var(--out),box-shadow var(--t2) var(--out),filter var(--t2) var(--out),scale var(--t1) var(--out),translate var(--t2) var(--out);
}

.setnav button {
  transition: color .22s var(--out),background-color var(--t2) var(--out);
}

.setnav[data-th] button[aria-selected=true] {
  background: transparent;
  transition-delay: .12s,0s;
}

.seg[data-th]:not(.sth)::before,
.nav[data-th]::before,
.setnav[data-th]::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  width: var(--tw,0px);
  height: var(--th,0px);
  translate: var(--tx,0px) var(--ty,0px);
  border-radius: 9px;
  background: var(--ink);
  opacity: var(--to,0);
  pointer-events: none;
  transition: translate .5s var(--out),width .5s var(--out),height .5s var(--out),opacity .2s var(--out),background-color .45s var(--out),box-shadow .45s var(--out);
}

.nav[data-th]::before {
  border-radius: 999px;
}

.setnav[data-th]::before {
  background: var(--bg);
}

[data-th][data-tn]::before {
  transition: none!important;
}

#ic .seg[data-th]:has([data-n="2"][aria-pressed=true])::before {
  background: color-mix(in srgb,var(--g2) 44%,var(--sf));
  box-shadow: inset 0 0 0 1.5px var(--g2);
}

#ic .seg[data-th]:has([data-n="3"][aria-pressed=true])::before {
  background: var(--g1);
  box-shadow: 0 5px 14px -5px color-mix(in srgb,var(--g1) 85%,transparent);
}

#ic .seg[data-th]:has([data-n="2"][aria-pressed=true]) button[aria-pressed=true] {
  color: var(--ink);
}

#ic .seg[data-th]:has([data-n="3"][aria-pressed=true]) button[aria-pressed=true] {
  color: var(--onh);
}

@media (prefers-reduced-motion:reduce) {
  .seg[data-th]:not(.sth)::before,
  .nav[data-th]::before,
  .setnav[data-th]::before {
    transition: none;
  }
  .seg[data-th]:not(.sth) button[aria-pressed=true],
  .nav[data-th] button[aria-pressed=true]:not(#_),
  .setnav[data-th] button[aria-selected=true] {
    transition-delay: 0s;
  }
}

@media (forced-colors:active) {
  .seg[data-th]::before,
  .nav[data-th]::before,
  .setnav[data-th]::before {
    display: none;
  }
  .seg[data-th] button[aria-pressed=true],
  .nav[data-th] button[aria-pressed=true],
  .setnav[data-th] button[aria-selected=true] {
    background: Highlight;
    color: HighlightText;
    forced-color-adjust: none;
  }
}

/* the Table / Board / Gallery switch is a page transition: the highlight is shown live, not crossfaded with a picture of the old one */
::view-transition-old(vseg) {
  display: none;
}

::view-transition-group(vseg),
::view-transition-new(vseg) {
  animation: none;
}

/* v376 Tasks: a page that holds up next to Microsoft To Do */
:root {
  --star: #B87700;
}

@supports (color:light-dark(#000,#000)) {
  :root {
    --star: light-dark(#B87700,#FFC247);
  }
}

.tkp,
.tasks,
#te {
  --tkr: 14px;
}

.tasks svg,
#te svg,
.tkp svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----- header, controls ----- */
.tkp {
  max-width: 760px;
}

.tkhd {
  display: flex;
  align-items: baseline;
  gap: 4px 14px;
  flex-wrap: wrap;
  margin: 0 0 2px;
}

.tkhd h2 {
  margin: 0;
}

.tksum {
  margin: 0;
  font-size: 14.5px;
}

.tkbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 12px 0 14px;
}

.tksearch {
  position: relative;
  flex: 1 1 170px;
  max-width: 340px;
  min-width: 0;
}

.tksi {
  position: absolute;
  left: 12px;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--mute);
  pointer-events: none;
}

.tksi svg {
  width: 18px;
  height: 18px;
}

.tksearch input {
  width: 100%;
  height: 40px;
  padding: 0 38px 0 38px;
  border-radius: 12px;
  font-size: 16px;
  background: var(--sf);
  border: 1.5px solid var(--line);
  transition: border-color var(--t2) var(--out),box-shadow var(--t2) var(--out);
}

.tksearch input:hover {
  border-color: color-mix(in srgb,var(--acc) 45%,var(--line));
}

.tksearch input:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--acc) 22%,transparent);
}

.tksearch input::-webkit-search-cancel-button,
.tksearch input::-webkit-search-decoration {
  display: none;
  -webkit-appearance: none;
}

.tkclr {
  position: absolute;
  right: 5px;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--mute);
  transition: background-color var(--t2) var(--out),color var(--t2) var(--out);
}

.tkclr svg {
  width: 16px;
  height: 16px;
}

.tkclr:hover {
  background: color-mix(in srgb,var(--ink) 9%,transparent);
  color: var(--ink);
}

.tkclr[hidden] {
  display: none;
}

.tksort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tkl {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--mute);
}

.tksort .seg {
  margin: 0;
}

.tksort .seg button {
  font-size: 14px;
}

.tkimp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px 0 11px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  transition: background-color var(--t2) var(--out),border-color var(--t2) var(--out),scale var(--t1) var(--out);
}

.tkimp svg {
  width: 18px;
  height: 18px;
  color: var(--star);
  transition: fill .2s var(--out),scale .3s var(--out);
}

.tkimp[aria-pressed=true] {
  border-color: var(--star);
  background: color-mix(in srgb,var(--star) 14%,transparent);
}

.tkimp[aria-pressed=true] svg {
  fill: currentColor;
}

.tkimp:active {
  scale: .97;
}

.tkcnt {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12.5px;
  line-height: 20px;
  text-align: center;
  background: color-mix(in srgb,var(--ink) 10%,transparent);
  color: var(--mute);
}

.tkcnt:empty {
  display: none;
}

@media (hover:hover) {
  .tkimp:hover {
    border-color: color-mix(in srgb,var(--star) 70%,var(--line));
  }
  .tkimp:hover svg {
    scale: 1.12;
  }
}

/* ----- add box ----- */
.tkadd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 5px 7px 5px 14px;
  margin: 0 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--sf);
  transition: border-color var(--t2) var(--out),box-shadow var(--t2) var(--out);
}

.tkadd:hover {
  border-color: color-mix(in srgb,var(--acc) 45%,var(--line));
}

.tkadd:focus-within {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--acc) 20%,transparent);
}

.tkadd .pl {
  display: grid;
  place-items: center;
  flex: none;
  color: var(--acc);
}

.tkadd .pl svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.tkadd #tnew2 {
  flex: 1 1 170px;
  min-width: 0;
  margin: 0;
  padding: 9px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 16px;
  outline: none;
  box-shadow: none;
}

.tkchips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.tkchip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t2) var(--out),border-color var(--t2) var(--out),color var(--t2) var(--out),scale var(--t1) var(--out);
}

.tkchip svg {
  width: 15px;
  height: 15px;
}

.tkchip:hover {
  border-color: var(--acc);
  color: var(--ink);
}

.tkchip[aria-pressed=true],
.tkchip.on {
  background: var(--acc);
  border-color: var(--acc);
  color: var(--onacc);
}

.tkchip:active {
  scale: .96;
}

.tkadd .tkaddb {
  height: 34px;
  padding: 0 16px;
  border-radius: 12px;
}

/* ----- sections ----- */
.tkS>.tsec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 0 2px;
  font-size: 14px;
}

.tkh3 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: -4px;
  padding: 6px 8px 6px 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--t2) var(--out),background-color var(--t2) var(--out);
}

.tkh3 .chv {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.tkh3 .chv svg {
  width: 15px;
  height: 15px;
  rotate: 90deg;
  transition: rotate .3s var(--out);
}

.tkS.c .tkh3 .chv svg {
  rotate: 0deg;
}

.tkh3 .tcn {
  font-weight: 600;
}

.tkh3:hover {
  color: var(--ink);
}

.tsec.late .tkh3,
.tsec.late .tkh3:hover {
  color: var(--warn);
}

.tkact {
  border: 0;
  background: transparent;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--mute);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--t2) var(--out),background-color var(--t2) var(--out);
}

.tkact:hover {
  color: var(--ink);
  background: color-mix(in srgb,var(--ink) 8%,transparent);
}

.tkS.c .tkact {
  display: none;
}

.tkbody {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .34s var(--out);
}

.tkin {
  min-height: 0;
}

.tkS.c .tkbody {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .34s var(--out),visibility 0s .34s;
}

.tkS.c .tkin,
.tkS.anim .tkin {
  overflow: hidden;
}

.tkhint2 {
  margin: 0 0 6px;
  font-size: 13.5px;
}

.tkS .tmore {
  margin: 6px 0 2px;
}

/* ----- rows ----- */
.tasks .trow {
  min-height: 54px;
  gap: 8px;
  margin: 6px 0;
  padding: 2px 6px 2px 10px;
  border-radius: var(--tkr);
  transition: background-color var(--t2) var(--out),border-color var(--t2) var(--out),opacity .25s var(--out);
}

.tasks .trow.fin {
  opacity: .62;
  transform: none;
}

.tasks .trow.dn {
  opacity: 1;
}

.tasks .trow.gone {
  display: none;
}

.tasks .trow.ted {
  border-color: var(--acc);
  background: color-mix(in srgb,var(--acc) 8%,var(--sf));
}

.tasks .trow .tmain {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-areas: "tt tw" "tv tv";
  column-gap: 12px;
  row-gap: 0;
  align-items: start;
  align-self: stretch;
  min-width: 0;
  padding: 9px 2px 9px 0;
  border-radius: 10px;
  text-align: left;
}

.tasks .trow .tt {
  grid-area: tt;
  min-width: 0;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-decoration: line-through;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  transition: color .25s var(--out),text-decoration-color .25s var(--out);
}

.tasks .trow .tv {
  grid-area: tv;
  display: block;
  margin-top: 1px;
  font-size: 13.5px;
  line-height: 1.4;
}

.tasks .trow .tw {
  grid-area: tw;
  align-self: start;
  padding-top: 1px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.tasks .trow.fin .tt,
.tasks .trow.dn .tt {
  color: var(--mute);
  text-decoration-color: currentColor;
}

.tasks .trow .sep {
  opacity: .6;
}

.tkn {
  display: inline;
}

.tkni {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 4px;
  vertical-align: -2px;
  stroke-width: 2.2;
  opacity: .8;
}

.trow mark {
  background: color-mix(in srgb,var(--acc) 30%,transparent);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}

.tasks .trow .tmain:focus-visible,
.tasks .trow .tck:focus-visible,
.tasks .trow .tstar:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

.tasks .trow .tmain:focus-visible {
  outline-offset: -2px;
}

/* the circle */
.tasks .trow .tck {
  position: relative;
  width: 24px;
  height: 24px;
  min-width: 24px!important;
  min-height: 24px!important;
  border-width: 2px;
  color: var(--onacc);
  transition: background-color .2s var(--out),border-color .2s var(--out),scale var(--t1) var(--out);
}

.tasks .trow .tck::after,
#te .tck::after {
  content: '';
  position: absolute;
  inset: -10px;
}

.tcv {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 3;
  overflow: visible;
}

.tcv path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset .3s var(--out) .05s;
}

.tasks .trow.fin .tck,
.tasks .trow.dn .tck {
  background: var(--acc);
  border-color: var(--acc);
}

.tasks .trow.fin .tcv path,
.tasks .trow.dn .tcv path,
#te .tck.on .tcv path {
  stroke-dashoffset: 0;
}

.tasks .trow.fin .tck {
  animation: tkpop .42s var(--out);
}

.tasks .trow.just .tcv path {
  animation: tkdraw .32s var(--out) both;
}

.tasks .trow.just .tck {
  animation: tkpop .42s var(--out);
}

@media (hover:hover) {
  .tasks .trow:not(.fin):not(.dn) .tck:not(.pub):hover .tcv path {
    stroke-dashoffset: 0;
    stroke: var(--acc);
  }
  .tasks .trow.dn .tck:hover {
    background: transparent;
    border-color: var(--acc);
  }
  .tasks .trow.dn .tck:hover .tcv path {
    stroke: var(--acc);
  }
}

@keyframes tkpop {
  0% {
    scale: 1;
    box-shadow: 0 0 0 0 color-mix(in srgb,var(--acc) 50%,transparent);
  }
  35% {
    scale: 1.2;
  }
  100% {
    scale: 1;
    box-shadow: 0 0 0 9px transparent;
  }
}

@keyframes tkdraw {
  from {
    stroke-dashoffset: 24;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* the star */
.tstar {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: color-mix(in srgb,var(--ink) 40%,transparent);
  transition: color var(--t2) var(--out),background-color var(--t2) var(--out),scale var(--t1) var(--out);
}

.tstar::after {
  content: '';
  position: absolute;
  inset: -4px;
}

.tstar svg {
  width: 20px;
  height: 20px;
  transition: fill .2s var(--out);
}

.tstar[aria-pressed=true] {
  color: var(--star);
}

.tstar[aria-pressed=true] svg {
  fill: currentColor;
}

.tstar.pop svg {
  animation: tkstar .55s var(--out);
}

.tstar:active {
  scale: .88;
}

@media (hover:hover) {
  .tstar:hover {
    color: var(--star);
    background: color-mix(in srgb,var(--star) 14%,transparent);
  }
}

@keyframes tkstar {
  0% {
    scale: .5;
    rotate: -35deg;
  }
  55% {
    scale: 1.32;
    rotate: 12deg;
  }
  100% {
    scale: 1;
    rotate: 0deg;
  }
}

/* new row, page enter */
.tasks .trow.tknew {
  animation: tknew 1.6s var(--out);
}

@keyframes tknew {
  0% {
    background: color-mix(in srgb,var(--acc) 24%,var(--sf));
    border-color: var(--acc);
  }
  100% {
    background: var(--sf);
  }
}

.tkp.ent .trow {
  animation: tkin .5s var(--out) backwards;
  animation-delay: calc(var(--i,0)*28ms);
}

@keyframes tkin {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* empty states */
.tkempty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 38px 14px 30px;
  text-align: center;
  color: var(--mute);
}

.tkempty.slim {
  padding: 20px 14px 10px;
}

.tkempty .ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: color-mix(in srgb,var(--acc) 12%,transparent);
  color: var(--acc);
}

.tkempty.slim .ico {
  width: 44px;
  height: 44px;
}

.tkempty .ico svg {
  width: 26px;
  height: 26px;
}

.tkempty b {
  color: var(--ink);
  font-size: 17px;
}

.tkempty p {
  margin: 0;
  max-width: 34em;
}

.tkempty .ghost {
  margin-top: 8px;
}

/* ----- the task window ----- */
#te.tke {
  width: min(372px,calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  overflow: auto;
  gap: 12px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  box-shadow: 0 22px 50px -14px #000a,0 2px 10px #0003;
  overscroll-behavior: contain;
  animation: tkwin .18s var(--out);
}

#te.tke.out {
  animation: tkwinout .12s ease-in forwards;
}

@keyframes tkwin {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(.97);
  }
}

@keyframes tkwinout {
  to {
    opacity: 0;
    transform: translateY(-4px) scale(.98);
  }
}

.tkehd {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.tkehd .tck {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  min-width: 24px!important;
  min-height: 24px!important;
  margin-top: 7px;
  border-width: 2px;
  color: var(--onacc);
}

#te .tck.on {
  background: var(--acc);
  border-color: var(--acc);
}

#te .tck.on .tcv path {
  stroke-dashoffset: 0;
}

.tkt {
  flex: 1;
  min-width: 0;
  width: auto!important;
  padding: 5px 6px;
  margin: 0;
  border: 1.5px solid transparent;
  border-radius: 10px;
  background: transparent;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
  resize: none;
  overflow: hidden;
  outline: none;
  transition: background-color var(--t2) var(--out),border-color var(--t2) var(--out);
}

.tkt:hover {
  background: color-mix(in srgb,var(--ink) 5%,transparent);
}

.tkt:focus {
  background: var(--sf);
  border-color: var(--acc);
}

.tkehd .tstar {
  margin-top: 1px;
}

.tkx {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: 2px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--mute);
  transition: background-color var(--t2) var(--out),color var(--t2) var(--out);
}

.tkx svg {
  width: 18px;
  height: 18px;
}

.tkx:hover {
  background: color-mix(in srgb,var(--ink) 9%,transparent);
  color: var(--ink);
}

.tkpart {
  margin: -4px 0 0;
  padding-left: 34px;
  font-size: 13.5px;
  color: var(--mute);
}

.tkf {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tkfr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.tkq {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tkq .tkchip {
  height: 30px;
  padding: 0 11px;
  font-size: 13.5px;
}

#te .dbtn.dfld {
  flex: 1 1 124px;
  width: auto;
  min-height: 36px;
  padding: 6px 11px;
  border-radius: 10px;
  font-size: 14.5px;
  transition: border-color var(--t2) var(--out);
}

.tkhint {
  margin: -4px 0 0;
  font-size: 13px;
}

#te textarea.tkn {
  display: block;
  width: 100%;
  min-height: 78px;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.45;
  resize: vertical;
  background: color-mix(in srgb,var(--ink) 4%,var(--sf));
  transition: border-color var(--t2) var(--out),box-shadow var(--t2) var(--out);
}

#te textarea.tkn:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--acc) 20%,transparent);
}

.tkss {
  gap: 2px;
}

.tks {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
}

.tks .tck {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  min-width: 20px!important;
  min-height: 20px!important;
  border-width: 2px;
  color: var(--onacc);
}

.tks .tck::after {
  content: '';
  position: absolute;
  inset: -8px;
}

.tks .tcv {
  width: 13px;
  height: 13px;
}

.tks.dn .tck {
  background: var(--acc);
  border-color: var(--acc);
}

.tks.dn .tcv path {
  stroke-dashoffset: 0;
}

.tkm {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
}

.tkm .tt {
  font-weight: 600;
}

.tkm .tw {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--acc);
}

.tks.dn .tt {
  text-decoration: line-through;
  color: var(--mute);
}

#te #tes {
  width: 100%;
  margin-top: 4px;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 15px;
}

.tkft {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.tkft .tkgap {
  flex: 1;
}

/* ----- phones ----- */
@media (max-width:640px) {
  .tkbar {
    gap: 8px;
  }
  .tksearch {
    flex: 1 1 100%;
    max-width: none;
  }
  .tksort .tkl {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .tkimp {
    margin-left: auto;
  }
  .tkadd {
    padding: 4px 6px 6px 12px;
  }
  .tkadd #tnew2 {
    flex: 1 1 calc(100% - 34px);
  }
  .tkchips {
    flex: 1 1 auto;
  }
  .tkadd .tkaddb {
    margin-left: auto;
  }
  .tasks .trow {
    min-height: 56px;
    padding: 2px 4px 2px 9px;
  }
  #te.tke {
    left: 0!important;
    right: 0;
    bottom: 0;
    top: auto!important;
    width: auto;
    max-height: 90dvh;
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom,0px));
    border: 0;
    border-top: 1.5px solid var(--line);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 50px -12px #0008;
    animation: tksheet .32s var(--out);
  }
  #te.tke.out {
    animation: tksheetout .2s ease-in forwards;
  }
  #te.tke::before {
    content: '';
    display: block;
    flex: none;
    width: 40px;
    height: 4px;
    margin: 0 auto 2px;
    border-radius: 2px;
    background: color-mix(in srgb,var(--ink) 22%,transparent);
  }
  .tebd {
    position: fixed;
    inset: 0;
    z-index: 49;
    background: #0008;
    animation: tkfade .22s ease-out;
  }
  .tebd.out {
    animation: tkfadeout .2s ease-in forwards;
  }
  .tkt {
    font-size: 19px;
  }
}

@keyframes tksheet {
  from {
    transform: translateY(100%);
  }
}

@keyframes tksheetout {
  to {
    transform: translateY(100%);
  }
}

@keyframes tkfade {
  from {
    opacity: 0;
  }
}

@keyframes tkfadeout {
  to {
    opacity: 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .tasks .trow,
  .tasks .trow *,
  #te.tke,
  #te.tke *,
  .tebd,
  .tkbody,
  .tkh3 .chv svg,
  .tkimp,
  .tkimp svg,
  .tkchip {
    animation-duration: .01ms!important;
    animation-delay: 0s!important;
    transition-duration: .01ms!important;
    transition-delay: 0s!important;
  }
  .tkp.ent .trow {
    animation: none;
  }
}

@media (forced-colors:active) {
  .tstar[aria-pressed=true] svg,
  .tkimp[aria-pressed=true] svg {
    fill: CanvasText;
  }
  .tkchip[aria-pressed=true] {
    forced-color-adjust: none;
    background: Highlight;
    color: HighlightText;
  }
}

/* top bar: when almost no room is left for the "Next video" button (tablet widths), hide it instead of letting it push the page wider */
#next {
  container-type: inline-size;
}

@container (max-width:100px) {
  #next .vid {
    display: none;
  }
}

/* top bar: between phone and tablet widths the tab row needs about 660px; let it sit on its own row and scroll like on phones */
@media (min-width:601px) and (max-width:720px) {
  .nav {
    order: 2;
    flex: 1 1 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 3px 0;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav button {
    flex: none;
    white-space: nowrap;
  }
}

/* phones: a 44px tap area around the check circle */
@media (max-width:640px) {
  .tasks .trow .tck::after {
    inset: -12px;
  }
}

/* typed date words (Send invoice fri): the words light up in the add box while typing */
.tkhl {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: pre;
  color: transparent;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  border: 0 solid transparent;
  line-height: normal;
}

.tkhl[hidden] {
  display: none;
}

.tkhl .tkht {
  flex: none;
}

.tkhl mark {
  color: transparent;
  background: color-mix(in srgb,var(--acc) 28%,transparent);
  border-radius: 5px;
  padding: 2px 0;
  box-shadow: 0 1.5px 0 var(--acc);
}

/* ===== v377 polish: Coming up card, empty thumbnails, calendar deadline chips, phone touches ===== */

/* --- Coming up card --- */
#rail h2 {
  margin: 0 0 4px;
  letter-spacing: -.01em;
}

#rail .item .mute[data-rd] {
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#rail .item .mute.rdt {
  color: var(--acc);
  font-weight: 700;
}

#rail .item.wk,
#rail .item.wkf {
  border-top: 0;
  padding-top: 0;
  margin-top: 18px;
}

#rail .item.wkf {
  margin-top: 8px;
}

#rail .item.wk::before,
#rail .item.wkf::before {
  content: attr(data-wk);
  grid-column: 1/-1;
  display: block;
  padding: 0 0 6px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}

#rail .item.wkf {
  display: grid;
}

/* video rows: the title gets the whole width (two lines), the stage dots sit under it */
#rail .item:has(>button.vid) {
  align-items: start;
}

#rail .item:has(>button.vid)>.mute[data-rd] {
  padding-top: 7px;
}

#rail button.vid {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 5px;
  padding: 6px 10px;
  text-align: left;
}

#rail .vid .rt {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  flex: none;
}

#rail .vid .rtt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow: hidden;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#rail .vid .dots5 {
  gap: 3px;
}

#rail .vid .dots5 i {
  width: 6px;
  height: 6px;
  border-width: 1.25px;
}

#rail .hinbox {
  border-bottom-width: 1px;
}

#rail button.vid.shortslot {
  flex-direction: row;
  align-items: center;
}

/* --- empty thumbnails: a quiet striped placeholder with a small picture icon --- */
.vc .ph,
.hhero .hth .ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: .01em;
  color: color-mix(in srgb,var(--ink) 50%,transparent);
  background: repeating-linear-gradient(135deg,color-mix(in srgb,var(--ink) 3.5%,transparent) 0 10px,transparent 10px 20px),color-mix(in srgb,var(--ink) 3%,var(--bg));
}

.vc .ph::before,
.hhero .hth .ph::before {
  content: '';
  width: 26px;
  height: 26px;
  background: currentColor;
  opacity: .75;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M21 16l-5-5-8 9'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M21 16l-5-5-8 9'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* --- calendar deadline chips (Script due, Recording due ...): easier to read --- */
.cc.dl {
  font-size: 12px;
  color: var(--ink);
  background: color-mix(in srgb,var(--ink) 5%,transparent);
  border-color: color-mix(in srgb,var(--ink) 26%,var(--line));
}

.cc.dl small {
  font-size: 11.5px;
  color: color-mix(in srgb,var(--ink) 66%,transparent);
}

/* --- board: an empty column reads as a drop zone --- */
.bcol>p.mute {
  margin: 0;
  padding: 22px 10px;
  border: 1.5px dashed color-mix(in srgb,var(--ink) 20%,var(--line));
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  transition: border-color .15s var(--out),color .15s var(--out);
}

.bcol.over>p.mute {
  border-color: var(--acc);
  color: var(--ink);
}

/* --- phones --- */
@media (max-width:640px) {
  .hhero .hth:has(.ph) {
    min-height: 92px;
    height: 92px;
  }
  .hhero .hth .ph {
    flex-direction: row;
    gap: 10px;
  }
  .scard.add .sct {
    aspect-ratio: auto;
    min-height: 84px;
  }
}

/* ---------- v379: video page on phones ---------- */

/* The "Looking at ... / Make it the current stage" banner kept the last frame of its entrance animation (max-height 90px), which cut its button in half when the text wraps on a phone */
.peek.pin {
  animation-fill-mode: backwards;
}

@media (max-width:640px) {
  @keyframes pkin {
    from {
      opacity: 0;
      max-height: 0;
      margin-top: 0;
      margin-bottom: 0;
      padding-top: 0;
      padding-bottom: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      max-height: 170px;
      transform: none;
    }
  }
  @keyframes pkout {
    from {
      opacity: 1;
      max-height: 170px;
    }
    to {
      opacity: 0;
      max-height: 0;
      margin-top: 0;
      margin-bottom: 0;
      padding-top: 0;
      padding-bottom: 0;
      transform: translateY(-8px);
    }
  }
}

/* the back arrow, "Back to idea" and the bin share one row on phones (they took two) */
@media (max-width:600px) {
  .wtop {
    grid-template-columns: 1fr auto;
  }
  .wtop>.wtr {
    justify-self: end;
  }
}

/* ---------- v380: prompter on phones ---------- */

/* The control buttons never wrapped: on a 390 px phone the mirror and Close buttons sat outside the screen, so the prompter could not be closed without a keyboard */
.prctl {
  flex-wrap: wrap;
  row-gap: 6px;
}

@media (max-width:640px) {
  .prbar {
    padding: 8px 12px;
    gap: 8px 10px;
  }
  .prttl {
    max-width: 50vw;
  }
}

/* v381: (i) hints stay inside the screen; the Genre and Show labels keep the (i) next to the word */
.ibtn::after {
  transform: translateX(calc(-50% + var(--dx,0px)));
}

.ibtn.below::after {
  bottom: auto;
  top: calc(100% + 8px);
}

.meta .lt {
  display: block;
}

/* v382: New show box, prompter long words */
.nsr {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.nsr input {
  min-width: 150px;
  flex: 1 1 150px;
}

.nsr button {
  padding: 6px 12px;
}

.prc,
.prc * {
  overflow-wrap: anywhere;
}

/* v383: last step of the Publish guide on phones: the main button gets its own full-width row */
@media (max-width:480px) {
  #pg .pgnav [data-pghome] {
    flex: 1 1 100%;
    order: 5;
  }
}

/* ---- 2.0 tokens: Material 3 roles, one block per theme ---- */
html.d2 {
  --m-primary: #C4025F;
  --m-on-primary: #FFFFFF;
  --m-primary-container: #FFD9E6;
  --m-on-primary-container: #4A0026;
  --m-secondary-container: #DCE3FA;
  --m-on-secondary-container: #10204F;
  --m-tertiary-container: #FFE2B8;
  --m-on-tertiary-container: #4A2A00;
  --m-error: #B3261E;
  --m-error-container: #FBDAD6;
  --m-on-error-container: #5C0F0B;
  --m-surface: #EEEAF9;
  --m-sc-lowest: #FFFFFF;
  --m-sc-low: #F6F3FC;
  --m-sc: #EFECF8;
  --m-sc-high: #E8E6F5;
  --m-sc-highest: #E0DFF0;
  --m-on-surface: #141B3A;
  --m-on-surface-variant: #4F5880;
  --m-outline: #7B84AD;
  --m-outline-variant: #C5CEEC;
  --m-acrylic: rgba(255,255,255,0.7);
  --m-nav: rgba(244,240,252,0.78);
  --m-shadow: 0 1px 2px rgba(20,27,58,0.08),0 8px 24px rgba(20,27,58,0.09);
  --m-tint1: rgba(214,2,112,0.10);
  --m-tint2: rgba(0,56,168,0.10);
  --m-bgg: linear-gradient(135deg,#F7E4F1 0%,#EBE5F8 48%,#DCE6FC 100%);
  --m-mark: linear-gradient(135deg,#D60270,#9B4F96 50%,#0038A8);
  --m-btn: linear-gradient(100deg,#C4025F,#8A3F86 52%,#0038A8);
  --m-btnfg: #FFFFFF;
  --sf: #FFFFFF;
  color-scheme: light;
  --warn: #9A4A07;
}

@media (prefers-color-scheme:dark) {
  html.d2:not([data-theme]) {
    --m-primary: #BDC2FF;
    --m-on-primary: #1B2278;
    --m-primary-container: #323CB2;
    --m-on-primary-container: #E1E0FF;
    --m-secondary-container: #454659;
    --m-on-secondary-container: #E2E1F9;
    --m-tertiary-container: #5A3B00;
    --m-on-tertiary-container: #FFDDB0;
    --m-error: #FFB4AB;
    --m-error-container: #5F1612;
    --m-on-error-container: #FFDAD6;
    --m-surface: #121318;
    --m-sc-lowest: #0D0E13;
    --m-sc-low: #1A1B21;
    --m-sc: #1F1F26;
    --m-sc-high: #292A31;
    --m-sc-highest: #34343C;
    --m-on-surface: #E5E1E9;
    --m-on-surface-variant: #C9C6D2;
    --m-outline: #928F9C;
    --m-outline-variant: #47464F;
    --m-acrylic: rgba(38,38,48,0.66);
    --m-nav: rgba(26,27,33,0.74);
    --m-shadow: 0 1px 2px rgba(0,0,0,0.4),0 8px 24px rgba(0,0,0,0.35);
    --m-tint1: rgba(110,100,255,0.20);
    --m-tint2: rgba(255,100,190,0.10);
    --m-bgg: none;
    --m-mark: linear-gradient(135deg,#C2187F,#6A4FD6 55%,#2A5BD0);
    --m-btn: linear-gradient(100deg,#A8106F,#4F46C8 55%,#1E4FB8);
    --m-btnfg: #FFFFFF;
    --sf: #0D0E13;
    color-scheme: dark;
  }
}

html.d2[data-theme="light"] {
  --m-primary: #C4025F;
  --m-on-primary: #FFFFFF;
  --m-primary-container: #FFD9E6;
  --m-on-primary-container: #4A0026;
  --m-secondary-container: #DCE3FA;
  --m-on-secondary-container: #10204F;
  --m-tertiary-container: #FFE2B8;
  --m-on-tertiary-container: #4A2A00;
  --m-error: #B3261E;
  --m-error-container: #FBDAD6;
  --m-on-error-container: #5C0F0B;
  --m-surface: #EEEAF9;
  --m-sc-lowest: #FFFFFF;
  --m-sc-low: #F6F3FC;
  --m-sc: #EFECF8;
  --m-sc-high: #E8E6F5;
  --m-sc-highest: #E0DFF0;
  --m-on-surface: #141B3A;
  --m-on-surface-variant: #4F5880;
  --m-outline: #7B84AD;
  --m-outline-variant: #C5CEEC;
  --m-acrylic: rgba(255,255,255,0.7);
  --m-nav: rgba(244,240,252,0.78);
  --m-shadow: 0 1px 2px rgba(20,27,58,0.08),0 8px 24px rgba(20,27,58,0.09);
  --m-tint1: rgba(214,2,112,0.10);
  --m-tint2: rgba(0,56,168,0.10);
  --m-bgg: linear-gradient(135deg,#F7E4F1 0%,#EBE5F8 48%,#DCE6FC 100%);
  --m-mark: linear-gradient(135deg,#D60270,#9B4F96 50%,#0038A8);
  --m-btn: linear-gradient(100deg,#C4025F,#8A3F86 52%,#0038A8);
  --m-btnfg: #FFFFFF;
  --sf: #FFFFFF;
  color-scheme: light;
  --warn: #9A4A07;
}

html.d2[data-theme="dark"] {
  --m-primary: #BDC2FF;
  --m-on-primary: #1B2278;
  --m-primary-container: #323CB2;
  --m-on-primary-container: #E1E0FF;
  --m-secondary-container: #454659;
  --m-on-secondary-container: #E2E1F9;
  --m-tertiary-container: #5A3B00;
  --m-on-tertiary-container: #FFDDB0;
  --m-error: #FFB4AB;
  --m-error-container: #5F1612;
  --m-on-error-container: #FFDAD6;
  --m-surface: #121318;
  --m-sc-lowest: #0D0E13;
  --m-sc-low: #1A1B21;
  --m-sc: #1F1F26;
  --m-sc-high: #292A31;
  --m-sc-highest: #34343C;
  --m-on-surface: #E5E1E9;
  --m-on-surface-variant: #C9C6D2;
  --m-outline: #928F9C;
  --m-outline-variant: #47464F;
  --m-acrylic: rgba(38,38,48,0.66);
  --m-nav: rgba(26,27,33,0.74);
  --m-shadow: 0 1px 2px rgba(0,0,0,0.4),0 8px 24px rgba(0,0,0,0.35);
  --m-tint1: rgba(110,100,255,0.20);
  --m-tint2: rgba(255,100,190,0.10);
  --m-bgg: none;
  --m-mark: linear-gradient(135deg,#C2187F,#6A4FD6 55%,#2A5BD0);
  --m-btn: linear-gradient(100deg,#A8106F,#4F46C8 55%,#1E4FB8);
  --m-btnfg: #FFFFFF;
  --sf: #0D0E13;
  color-scheme: dark;
}

html.d2[data-theme="oled"] {
  --m-primary: #B4BBFF;
  --m-on-primary: #1B2278;
  --m-primary-container: #2A3190;
  --m-on-primary-container: #E1E0FF;
  --m-secondary-container: #26262F;
  --m-on-secondary-container: #E2E1F9;
  --m-tertiary-container: #4A3000;
  --m-on-tertiary-container: #FFDDB0;
  --m-error: #FFB4AB;
  --m-error-container: #5F1612;
  --m-on-error-container: #FFDAD6;
  --m-surface: #000000;
  --m-sc-lowest: #0B0B0E;
  --m-sc-low: #121216;
  --m-sc: #17171C;
  --m-sc-high: #1D1D23;
  --m-sc-highest: #25252C;
  --m-on-surface: #E8E6EE;
  --m-on-surface-variant: #A9A7B4;
  --m-outline: #6F6D7A;
  --m-outline-variant: #2A2931;
  --m-acrylic: rgba(12,12,15,0.78);
  --m-nav: rgba(0,0,0,0.86);
  --m-shadow: 0 0 0 1px rgba(255,255,255,0.04);
  --m-tint1: rgba(0,0,0,0);
  --m-tint2: rgba(0,0,0,0);
  --m-bgg: none;
  --m-mark: linear-gradient(135deg,#C2187F,#6A4FD6 55%,#2A5BD0);
  --m-btn: linear-gradient(100deg,#A8106F,#4F46C8 55%,#1E4FB8);
  --m-btnfg: #FFFFFF;
  --sf: #0B0B0E;
  color-scheme: dark;
  --acc2: #B3BEEA;
  --glow: #8EA4FF;
  --mag: 0%;
  --acc3: #8EA4FF;
  --bi: linear-gradient(90deg,#8EA4FF,#B3BEEA);
  --g1: #F0645F;
  --g2: #E0A15A;
  --g3: #8EA4FF;
  --tlg: var(--sf);
  --str: #A98BF0;
  --sh: #F59E6B;
  --warn: #F0A25B;
  --del: #FF7A70;
  --ondel: #2A0A07;
  --hl: .2;
  --onh: #16141C;
}

html.d2[data-theme="bi"] {
  --m-primary: #FF5BA8;
  --m-on-primary: #2A0016;
  --m-primary-container: #78174F;
  --m-on-primary-container: #FFD9EA;
  --m-secondary-container: #3B2A63;
  --m-on-secondary-container: #E9DCFF;
  --m-tertiary-container: #1E3A8C;
  --m-on-tertiary-container: #DCE5FF;
  --m-error: #FF7A70;
  --m-error-container: #5C1A14;
  --m-on-error-container: #FFDAD6;
  --m-surface: #0C1330;
  --m-sc-lowest: #151D42;
  --m-sc-low: #1B2556;
  --m-sc: #202B63;
  --m-sc-high: #27346F;
  --m-sc-highest: #303E80;
  --m-on-surface: #E8ECFB;
  --m-on-surface-variant: #A9B2DA;
  --m-outline: #6874B0;
  --m-outline-variant: #323F7C;
  --m-acrylic: rgba(21,29,66,0.62);
  --m-nav: rgba(12,19,48,0.72);
  --m-shadow: 0 1px 2px rgba(0,0,0,0.45),0 8px 24px rgba(0,0,0,0.4);
  --m-tint1: rgba(214,2,112,0.22);
  --m-tint2: rgba(47,91,216,0.22);
  --m-bgg: linear-gradient(135deg,#2E0B2B 0%,#1B1034 46%,#080F28 100%);
  --m-mark: linear-gradient(135deg,#D60270,#9B4F96 50%,#2F5BD8);
  --m-btn: linear-gradient(100deg,#FF5BA8,#B07AD9 50%,#7C9BFF);
  --m-btnfg: #1A0A24;
  --sf: #151D42;
}

html.d2[data-theme="gay"] {
  --m-primary: #3FD6B2;
  --m-on-primary: #03201A;
  --m-primary-container: #0B5445;
  --m-on-primary-container: #B6F5E4;
  --m-secondary-container: #23406B;
  --m-on-secondary-container: #D6E6FF;
  --m-tertiary-container: #3B3478;
  --m-on-tertiary-container: #E4E0FF;
  --m-error: #FF8A80;
  --m-error-container: #5A1B17;
  --m-on-error-container: #FFDAD6;
  --m-surface: #0A1B20;
  --m-sc-lowest: #12292F;
  --m-sc-low: #173540;
  --m-sc: #1B3C47;
  --m-sc-high: #204450;
  --m-sc-highest: #28505B;
  --m-on-surface: #E4F7F1;
  --m-on-surface-variant: #A3C7C5;
  --m-outline: #5F8E92;
  --m-outline-variant: #2C5058;
  --m-acrylic: rgba(18,41,47,0.62);
  --m-nav: rgba(10,27,32,0.72);
  --m-shadow: 0 1px 2px rgba(0,0,0,0.45),0 8px 24px rgba(0,0,0,0.4);
  --m-tint1: rgba(38,206,170,0.20);
  --m-tint2: rgba(93,85,214,0.22);
  --m-bgg: linear-gradient(135deg,#0B2A28 0%,#0A1E2C 46%,#0D1033 100%);
  --m-mark: linear-gradient(135deg,#078D70,#26CEAA 35%,#7BADE2 68%,#5D55D6);
  --m-btn: linear-gradient(100deg,#3FD6B2,#7BADE2 60%,#9A92F5);
  --m-btnfg: #03201A;
  --sf: #12292F;
}

html.d2[data-theme="lesbian"] {
  --m-primary: #FF9A56;
  --m-on-primary: #2A0E00;
  --m-primary-container: #7A3510;
  --m-on-primary-container: #FFDCC6;
  --m-secondary-container: #5E2548;
  --m-on-secondary-container: #FFD9EE;
  --m-tertiary-container: #4F3D0E;
  --m-on-tertiary-container: #FFE9A8;
  --m-error: #FF8FA0;
  --m-error-container: #6B1424;
  --m-on-error-container: #FFD9DE;
  --m-surface: #1C0E10;
  --m-sc-lowest: #2C181B;
  --m-sc-low: #36201F;
  --m-sc: #3C2524;
  --m-sc-high: #442C2B;
  --m-sc-highest: #4F3433;
  --m-on-surface: #FFEEE4;
  --m-on-surface-variant: #D7B3AA;
  --m-outline: #9A6E68;
  --m-outline-variant: #5A3338;
  --m-acrylic: rgba(44,24,27,0.62);
  --m-nav: rgba(28,14,16,0.72);
  --m-shadow: 0 1px 2px rgba(0,0,0,0.45),0 8px 24px rgba(0,0,0,0.4);
  --m-tint1: rgba(209,98,164,0.20);
  --m-tint2: rgba(239,118,39,0.18);
  --m-bgg: linear-gradient(135deg,#2E120C 0%,#25101A 46%,#190A1D 100%);
  --m-mark: linear-gradient(135deg,#D52D00,#EF7627 32%,#D162A4 66%,#A30262);
  --m-btn: linear-gradient(100deg,#FF9A56,#F28A93 52%,#E27DBB);
  --m-btnfg: #2A0E00;
  --sf: #2C181B;
}

html.d2[data-theme="nb"] {
  --m-primary: #F7EE4A;
  --m-on-primary: #1A1800;
  --m-primary-container: #4A3A78;
  --m-on-primary-container: #EBDDFF;
  --m-secondary-container: #35314A;
  --m-on-secondary-container: #E6E0F5;
  --m-tertiary-container: #4A4500;
  --m-on-tertiary-container: #FFF59A;
  --m-error: #FF8A7A;
  --m-error-container: #5C1B16;
  --m-on-error-container: #FFDAD6;
  --m-surface: #131019;
  --m-sc-lowest: #1E1A2A;
  --m-sc-low: #262134;
  --m-sc: #2B2539;
  --m-sc-high: #332C44;
  --m-sc-highest: #3C344F;
  --m-on-surface: #F5F2FB;
  --m-on-surface-variant: #B9B2CC;
  --m-outline: #7C7494;
  --m-outline-variant: #3B3453;
  --m-acrylic: rgba(30,26,42,0.62);
  --m-nav: rgba(19,16,25,0.72);
  --m-shadow: 0 1px 2px rgba(0,0,0,0.45),0 8px 24px rgba(0,0,0,0.4);
  --m-tint1: rgba(156,89,209,0.24);
  --m-tint2: rgba(247,238,74,0.07);
  --m-bgg: linear-gradient(135deg,#221C2E 0%,#15121D 50%,#0D0B13 100%);
  --m-mark: linear-gradient(135deg,#FCF434,#F5F0FF 36%,#BC8CEB 68%,#6E6988);
  --m-btn: linear-gradient(100deg,#F7EE4A,#DCC8F2 58%,#BC8CEB);
  --m-btnfg: #1A1800;
  --sf: #1E1A2A;
}

/* ---- 2.0 navigation icons ---- */
html.d2 .nav .ni[data-i="home"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
}

html.d2 .nav .ni[data-i="plan"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/svg%3E");
}

html.d2 .nav .ni[data-i="tasks"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E");
}

html.d2 .nav .ni[data-i="ideate"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E");
}

html.d2 .nav .ni[data-i="videos"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m10 9.5 5 2.5-5 2.5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m10 9.5 5 2.5-5 2.5z'/%3E%3C/svg%3E");
}

html.d2 .nav .ni[data-i="series"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 9 5-9 5-9-5zM3 13l9 5 9-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 9 5-9 5-9-5zM3 13l9 5 9-5'/%3E%3C/svg%3E");
}

html.d2 .nav .ni[data-i="streams"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M7.8 7.8a6 6 0 0 0 0 8.4M16.2 7.8a6 6 0 0 1 0 8.4M4.9 4.9a10 10 0 0 0 0 14.2M19.1 4.9a10 10 0 0 1 0 14.2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M7.8 7.8a6 6 0 0 0 0 8.4M16.2 7.8a6 6 0 0 1 0 8.4M4.9 4.9a10 10 0 0 0 0 14.2M19.1 4.9a10 10 0 0 1 0 14.2'/%3E%3C/svg%3E");
}

/* =====================================================================
   Studiotaku 2.0, part A: base, shell, controls.
   Built from the mockup boards (Main / Video / Writer / Phone / Tokens):
   Material 3 colour roles, shapes and state logic + Fluent surfaces
   (frosted side panels, hairline strokes, soft layered shadows, an accent
   bar on the selected item). Everything is scoped to html.d2, so the
   original design stays untouched when this file is not in the build.
   ===================================================================== */

/* the app's own variables now read from the 2.0 roles (doubled class: beats the old per-theme rules) */
html.d2.d2 {
  --bg: var(--m-surface);
  --ink: var(--m-on-surface);
  --mute: var(--m-on-surface-variant);
  --line: var(--m-outline-variant);
  --acc: var(--m-primary);
  --onacc: var(--m-on-primary);
  --bgg: var(--m-bgg);
  --mg: none;
  --glass: color-mix(in srgb,var(--m-sc-lowest) 86%,transparent);
  --glassd: color-mix(in srgb,var(--m-on-surface) 84%,transparent);
}

html.d2 {
  --f-head: Figtree,Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-body: Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  --rail-w: 248px;
  --lift: 0 1px 2px rgba(0,0,0,.18),0 4px 12px rgba(40,40,120,.22);
}

html.d2 body {
  font: 400 14px/1.5 var(--f-body);
  color: var(--m-on-surface);
  background-color: var(--m-surface);
  background-image: radial-gradient(900px 520px at 8% -8%,var(--m-tint1),transparent 60%),radial-gradient(800px 520px at 100% 0%,var(--m-tint2),transparent 60%),var(--m-bgg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

html.d2 body::before {
  display: none;
}  /* the old flag bar at the very top */

html.d2 :is(h1,h2,h3) {
  font-family: var(--f-head);
  letter-spacing: -.005em;
  color: var(--m-on-surface);
}

html.d2 h2 {
  font-weight: 600;
}

html.d2 h3 {
  font-weight: 600;
}

html.d2 b,
html.d2 strong {
  font-weight: 600;
}

html.d2 .mute {
  color: var(--m-on-surface-variant);
  font-size: 14px;
}

html.d2 ::selection {
  background: color-mix(in srgb,var(--m-primary) 28%,transparent);
}

/* ---------- the shell: left rail + top bar + content ---------- */
html.d2 main {
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0,1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  min-height: 100vh;
}

html.d2 .rail2 {
  grid-column: 1;
  grid-row: 1 / -1;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 22px 14px 20px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  background: var(--m-nav);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  backdrop-filter: blur(28px) saturate(1.5);
  border-right: 1px solid var(--m-outline-variant);
  z-index: 5;
}

html.d2 .top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
}

html.d2 .tb2 {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 20px 28px 0;
  position: relative;
  z-index: 4;
}

html.d2 .tbsp {
  flex: 1 1 0;
  min-width: 0;
}

html.d2 .cols {
  grid-column: 2;
  grid-row: 2;
  padding: 20px 28px 40px;
  gap: 20px;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-items: start;
}

@media (min-width:1200px) {
  html.d2 .cols {
    grid-template-columns: minmax(0,1fr) clamp(312px,23.4vw,380px);
  }
}

html.d2 #rail {
  margin: 0;
  position: static;
  max-height: none;
  overflow: visible;
}

@media (min-width:1200px) {
  html.d2 #rail {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    scrollbar-width: thin;
  }
}

/* brand: gradient mark + wordmark */
html.d2 .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 12px 22px;
  font: 700 21px/1.2 var(--f-head);
  letter-spacing: -.01em;
  color: var(--m-on-surface);
}

html.d2 .brand::before {
  content: '';
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--m-mark);
}

html.d2 .brand .bw {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: var(--m-on-surface);
}

html.d2 .brand .ver {
  left: 54px;
  top: calc(100% - 16px);
}

/* navigation items: pill, state layer, 3px accent bar on the selected one */
html.d2 .nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-wrap: nowrap;
  position: relative;
  isolation: isolate;
  padding: 0;
  overflow: visible;
}

html.d2 .nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  margin: 0;
  border: 0!important;
  border-radius: 22px;
  background: transparent;
  color: var(--m-on-surface-variant);
  font: 500 14px/1 var(--f-body);
  text-align: left;
  white-space: nowrap;
}

html.d2 .nav button:not([aria-pressed=true]):hover {
  background: color-mix(in srgb,var(--m-on-surface) 8%,transparent);
}

html.d2 .nav button[aria-pressed=true] {
  background: transparent;
  color: var(--m-on-secondary-container);
  font-weight: 600;
}

html.d2 .nav:not([data-th]) button[aria-pressed=true] {
  background: var(--m-secondary-container);
}

html.d2 .nav[data-th]::before {
  border-radius: 22px;
  background: var(--m-secondary-container);
}

html.d2 .nav button[aria-pressed=true]::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 13px;
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--m-primary);
}

html.d2 .nav button::after {
  content: none!important;
  display: none!important;
}

html.d2 .nav .ni {
  flex: none;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

html.d2 .navsep {
  display: block;
  width: auto;
  height: 1px;
  margin: 8px 12px;
  align-self: stretch;
  background: var(--m-outline-variant);
}

html.d2 .nav .navsep[hidden] {
  display: none;
}

/* shortcuts (the editable list of links, called Quick links before) at the foot of the rail */
html.d2 .qlrow {
  margin: auto 0 0;
  padding: 14px 0 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

html.d2 .qlrow[hidden] {
  display: none;
}

html.d2 .qlrow:not([hidden])::before {
  content: 'Shortcuts';
  flex: 0 0 100%;
  padding: 0 12px 2px;
  font: 600 12px/1.2 var(--f-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--m-on-surface-variant);
}

html.d2 .ql {
  --qc: var(--m-outline);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px 0 12px;
  border-radius: 17px;
  border: 1px solid var(--m-outline-variant);
  background: var(--m-sc-lowest);
  color: var(--m-on-surface);
  font: 500 13px/1 var(--f-body);
  text-decoration: none;
  white-space: nowrap;
}

html.d2 .ql::before {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--qc);
}

html.d2 .ql::after {
  content: none!important;
  display: none!important;
}

html.d2 .ql:hover {
  border-color: var(--m-outline);
  background: color-mix(in srgb,var(--m-on-surface) 6%,var(--sf));
  filter: none;
}

html.d2 .ql-yt {
  --qc: #E5242B;
}

html.d2 .ql-ig {
  --qc: linear-gradient(135deg,#D96A0B,#C2278F 55%,#6B3FC9);
}

html.d2 .ql-tt {
  --qc: #0A8098;
}

html.d2 .ql-pa {
  --qc: #D73548;
}

html.d2 .ql-twitch {
  --qc: #9146FF;
}

html.d2 .ql-kick {
  --qc: #2FA81F;
}

html.d2 .ql-fb {
  --qc: #1566D9;
}

html.d2 .ql-alt {
  --qc: #C2410C;
}

html.d2 .ql[class*="ql-"] {
  background: var(--m-sc-lowest);
  color: var(--m-on-surface);
  border-color: var(--m-outline-variant);
}

html.d2 button.ql.qlplus {
  border: 1px dashed var(--m-outline)!important;
  background: transparent!important;
  color: var(--m-on-surface-variant);
  padding: 0;
  width: 34px;
  height: 34px;
  justify-content: center;
  border-radius: 50%;
  font: 400 20px/1 var(--f-body);
}

html.d2 button.ql.qlplus::before {
  display: none;
}

html.d2 button.ql.qlplus:hover {
  background: color-mix(in srgb,var(--m-on-surface) 8%,transparent)!important;
  color: var(--m-on-surface);
}

/* ---------- top bar: search, next video, settings ---------- */
html.d2 .gsearch {
  position: relative;
  flex: 1 1 280px;
  max-width: 437px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  box-sizing: border-box;
  padding: 0 16px;
  border-radius: 22px;
  background: var(--m-sc-high);
  border: 1px solid var(--m-outline-variant);
  color: var(--m-on-surface-variant);
  cursor: text;
}

html.d2 .gsearch:focus-within {
  background: var(--m-sc-lowest);
  border-color: var(--m-outline);
  box-shadow: inset 0 -2px 0 var(--m-primary);
}

html.d2 .gsearch svg {
  flex: none;
}

html.d2 .gsearch input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0!important;
  outline: 0;
  background: transparent!important;
  box-shadow: none!important;
  padding: 0!important;
  border-radius: 0;
  font: 400 14px/1.2 var(--f-body);
  color: var(--m-on-surface);
}

html.d2 .gsearch input::-webkit-search-cancel-button {
  display: none;
}

html.d2 #gres {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  max-height: min(70vh,520px);
  overflow: auto;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid var(--m-outline-variant);
  background: var(--m-acrylic);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  backdrop-filter: blur(28px) saturate(1.5);
  box-shadow: var(--m-shadow),0 16px 40px rgba(0,0,0,.18);
  color: var(--m-on-surface);
}

html.d2 #gres[hidden] {
  display: none;
}

html.d2 #gres h4 {
  margin: 8px 10px 4px;
  font: 600 12px/1.2 var(--f-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--m-on-surface-variant);
}

html.d2 #gres button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--m-on-surface);
  font: 500 14px/1.3 var(--f-body);
  text-align: left;
}

html.d2 #gres button:hover,
html.d2 #gres button[aria-selected=true] {
  background: var(--m-secondary-container);
  color: var(--m-on-secondary-container);
}

html.d2 #gres button small {
  margin-left: auto;
  color: var(--m-on-surface-variant);
  font-weight: 400;
  white-space: nowrap;
}

html.d2 #gres .gn {
  padding: 12px 10px;
  color: var(--m-on-surface-variant);
}

html.d2 #gres button i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pc,var(--m-primary));
}

html.d2 #next {
  display: flex;
  min-width: 0;
  max-width: 380px;
  margin: 0;
  flex: 0 1 auto;
  order: 0;
  container-type: normal;
  justify-content: flex-end;
}

html.d2 #next .vid {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 380px;
  height: 40px;
  padding: 0 6px 0 16px;
  border: 0!important;
  border-radius: 20px;
  background: var(--m-primary-container)!important;
  color: var(--m-on-primary-container)!important;
  font: 400 13px/1 var(--f-body);
  box-shadow: none;
  text-align: left;
}

html.d2 #next .vid::after {
  content: none!important;
  display: none!important;
}

html.d2 #next .vid:hover {
  box-shadow: inset 0 0 0 99px color-mix(in srgb,var(--m-on-primary-container) 8%,transparent);
}

html.d2 #next .nl {
  font-weight: 500;
  opacity: 1;
}

html.d2 #next .nt {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.d2 #next .nd {
  flex: none;
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--m-primary);
  color: var(--m-on-primary);
  font-weight: 600;
  opacity: 1;
}

html.d2 #setb {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--m-outline-variant)!important;
  background: var(--m-sc-lowest);
  color: var(--m-on-surface);
  margin: 0;
}

html.d2 #setb:hover {
  background: color-mix(in srgb,var(--m-on-surface) 8%,var(--m-sc-lowest));
}

html.d2 #setb:hover svg {
  transform: none;
}

html.d2 #setb::after {
  content: none!important;
  display: none!important;
}

/* ---------- surfaces ---------- */
:where(html.d2) :is(.card,.hbox) {
  background: var(--m-sc-lowest);
  background-image: none;
  border: 1px solid var(--m-outline-variant);
  border-radius: 24px;
  box-shadow: var(--m-shadow);
  padding: 22px 24px;
}

html.d2 :is(.card,.hbox,.vc,.bcard,.scard,.bcol,#srcs,#hv,#hc) {
  background-image: none;
}

:where(html.d2) .hbox {
  margin: 0;
}

html.d2 #rail {
  background: var(--m-acrylic);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  backdrop-filter: blur(28px) saturate(1.5);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- buttons (Tokens board: Filled, Tonal, Outlined, Text, Icon) ---------- */
:where(html.d2) .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 22px;
  background: var(--m-btn);
  color: var(--m-btnfg);
  font: 600 14px/1.2 var(--f-body);
  box-shadow: var(--lift);
}

@media (hover:hover) {
  :where(html.d2) .btn:hover:not(:disabled) {
    filter: brightness(1.07);
    translate: 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,.2),0 8px 18px rgba(40,40,120,.26);
  }
}

html.d2 .btn:disabled:not(#_) {
  background: color-mix(in srgb,var(--m-on-surface) 12%,transparent);
  color: color-mix(in srgb,var(--m-on-surface) 38%,transparent);
  box-shadow: none;
}

html.d2 :where(.ghost) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  background: transparent;
  border: 1px solid var(--m-outline);
  border-radius: 20px;
  color: var(--m-primary);
  font: 600 14px/1.2 var(--f-body);
}

@media (hover:hover) {
  html.d2 :where(.ghost):hover:not(:disabled) {
    background: color-mix(in srgb,var(--m-primary) 8%,transparent);
  }
}

html.d2 :where(.ghost):active:not(:disabled) {
  background: color-mix(in srgb,var(--m-primary) 14%,transparent);
}

html.d2 .ghost:disabled:not(#_) {
  color: color-mix(in srgb,var(--m-on-surface) 38%,transparent);
  border-color: color-mix(in srgb,var(--m-on-surface) 12%,transparent);
}

html.d2 button.ib {
  min-width: 40px;
  min-height: 40px;
  border-radius: 20px;
  border: 1px solid var(--m-outline-variant);
  background: transparent;
  color: var(--m-on-surface);
}

html.d2 button.ib.btn {
  border: 0;
  border-radius: 22px;
}

html.d2 :is(.btn,.ghost,.nav button,.seg button,.ib):focus-visible {
  outline: 2px solid var(--m-primary);
  outline-offset: 2px;
}

/* tonal and text buttons, used by the 2.0 pages */
html.d2 .btn2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 22px;
  background: var(--m-secondary-container);
  color: var(--m-on-secondary-container);
  font: 600 14px/1 var(--f-body);
}

html.d2 .btn2:hover {
  box-shadow: inset 0 0 0 99px color-mix(in srgb,var(--m-on-secondary-container) 8%,transparent);
}

html.d2 .btn3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--m-primary);
  font: 600 14px/1 var(--f-body);
}

html.d2 .btn3:hover {
  background: color-mix(in srgb,var(--m-primary) 8%,transparent);
}

html.d2 .ico {
  display: inline-block;
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--ic) center/contain no-repeat;
  mask: var(--ic) center/contain no-repeat;
}

/* ---------- fields: tonal fill, hairline, Fluent accent underline on focus ---------- */
:where(html.d2) :is(select,input,textarea) {
  background: var(--m-sc-low);
  color: var(--m-on-surface);
  border: 1px solid var(--m-outline-variant);
  border-radius: 12px;
  padding: 0 14px;
  min-height: 44px;
  font: 400 14px/1.4 var(--f-body);
}

:where(html.d2) textarea {
  padding: 10px 14px;
}

:where(html.d2) select {
  padding-right: 34px;
}

:where(html.d2) :is(input,textarea,select):focus {
  outline: 0;
  border-color: var(--m-outline);
  background: var(--m-sc-lowest);
  box-shadow: inset 0 -2px 0 var(--m-primary);
}

html.d2 :is(input,textarea)::placeholder {
  color: var(--m-on-surface-variant);
  opacity: .9;
}

:where(html.d2) :is(input[type=checkbox],input[type=radio]) {
  padding: 0;
  min-height: 0;
  border-radius: 4px;
  box-shadow: none;
  accent-color: var(--m-primary);
}

html.d2 select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237B84AD' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* ---------- segmented controls (Open | Done, Week | Month | Timeline, filters) ---------- */
html.d2 .seg,
html.d2 .seg:not(.sth) {
  display: inline-flex;
  position: relative;
  gap: 0;
  padding: 0;
  border: 1px solid var(--m-outline);
  border-radius: 18px;
  overflow: hidden;
  height: 36px;
  background: transparent;
}

html.d2 .seg button,
html.d2 .seg:not(.sth) button {
  border: 0;
  border-radius: 0!important;
  background: transparent;
  color: var(--m-on-surface);
  padding: 0 16px;
  font: 500 13px/1 var(--f-body);
  height: 100%;
  margin: 0;
  min-width: 0;
}

html.d2 .seg button+button {
  border-left: 1px solid var(--m-outline);
  margin-left: 0;
}

html.d2 .seg button[aria-pressed=true] {
  color: var(--m-on-secondary-container);
  font-weight: 600;
}

html.d2 .seg:not([data-th]):not(.sth) button[aria-pressed=true] {
  background: var(--m-secondary-container);
}

html.d2 .seg[data-th]:not(.sth)::before {
  border-radius: 0;
  background: var(--m-secondary-container);
}

html.d2 .seg[data-th]:not(.sth) button[aria-pressed=true] {
  color: var(--m-on-secondary-container);
  background: transparent;
}

@media (hover:hover) {
  html.d2 .seg button:not([aria-pressed=true]):hover {
    background: color-mix(in srgb,var(--m-on-surface) 8%,transparent);
  }
}

/* ---------- chips, tags, small pills ---------- */
:where(html.d2) .chip2 {
  border: 1px solid var(--m-outline-variant);
  background: var(--m-sc-high);
  border-radius: 10px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--m-on-surface);
}

:where(html.d2) .tag {
  border-radius: 6px;
  font-weight: 600;
}

html.d2 .dc {
  border: 1px solid var(--m-outline);
  border-radius: 10px;
  background: transparent;
  color: var(--m-on-surface);
  font: 500 13px/1 var(--f-body);
  padding: 0 12px;
  min-height: 32px;
  margin: 0;
}

html.d2 .dc[aria-pressed=true] {
  background: var(--m-secondary-container);
  border-color: transparent;
  color: var(--m-on-secondary-container);
  font-weight: 600;
}

@media (hover:hover) {
  html.d2 .dc:not([aria-pressed=true]):hover {
    background: color-mix(in srgb,var(--m-on-surface) 8%,transparent);
    border-color: var(--m-outline);
  }
}

/* ---------- switches (52 x 32, thumb grows when on) ---------- */
html.d2 .sw {
  width: 52px;
  height: 32px;
  min-width: 52px!important;
  min-height: 32px!important;
  border-radius: 16px;
  border: 2px solid var(--m-outline);
  background: var(--m-sc-highest);
  padding: 0;
  transition: background .2s,border-color .2s;
}

html.d2 .sw i {
  top: 6px;
  left: 6px;
  width: 16px;
  height: 16px;
  background: var(--m-outline);
  opacity: 1;
  transform: none;
  transition: all .2s var(--ease);
}

html.d2 .sw[aria-checked=true] {
  background: var(--m-primary);
  border-color: var(--m-primary);
}

html.d2 .sw[aria-checked=true] i {
  top: 4px;
  left: calc(100% - 28px);
  width: 24px;
  height: 24px;
  background: var(--m-on-primary);
  transform: none;
}

html.d2 .swc {
  width: 52px;
  height: 32px;
}

html.d2 .swc i {
  border-radius: 16px;
  border: 2px solid var(--m-outline);
  background: var(--m-sc-highest);
}

html.d2 .swc i::after {
  top: 6px;
  left: 6px;
  width: 16px;
  height: 16px;
  background: var(--m-outline);
  opacity: 1;
  transition: all .2s var(--ease);
}

html.d2 .swc input:checked+i {
  background: var(--m-primary);
  border-color: var(--m-primary);
}

html.d2 .swc input:checked+i::after {
  top: 4px;
  left: calc(100% - 28px);
  width: 24px;
  height: 24px;
  background: var(--m-on-primary);
  transform: none;
}

/* ---------- toast (snackbar) ---------- */
html.d2 #toast {
  border-radius: 14px;
  padding: 12px 18px;
  font: 500 14px/1.35 var(--f-body);
  box-shadow: var(--m-shadow);
}

html.d2 #toast .undo,
html.d2 #toast button {
  border: 0;
  border-radius: 16px;
  background: color-mix(in srgb,currentColor 16%,transparent);
  padding: 4px 14px;
  font-weight: 600;
}

/* =====================================================================
   Studiotaku 2.0, part B: Home, the right-hand panel, tasks, video rows.
   Numbers come from the Home mockup board (Main.dc.html).
   ===================================================================== */

/* ---------- Home layout ---------- */
html.d2 #home .hgrid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
}

html.d2 #home .hgrid>div {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

html.d2 #home h2 {
  font: 600 18px/1.25 var(--f-head);
  margin: 0;
}

/* ---------- hero: Next video ---------- */
html.d2 .hhero {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background: radial-gradient(520px 240px at 18% 0%,var(--m-tint1),transparent 70%),var(--m-sc-lowest);
}

/* the thumbnail box is 16:9 like the thumbnails (it used to be 300 x 270, so a 16:9 picture sat in a near-square box with blurred bars); it grows a little on wide cards and is centred next to the text */
html.d2 .hhero .hth {
  flex: 1 1 300px;
  min-width: 200px;
  max-width: 400px;
  min-height: 0;
  aspect-ratio: 16/9;
  align-self: center;
  box-sizing: border-box;
  margin: 12px;
  border-radius: 16px;
  background: linear-gradient(140deg,#1E90D4,#2A3FA8 55%,#1A1470);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

html.d2 .hhero .hth img.hbg {
  filter: blur(22px) saturate(1.25) brightness(.7);
}

html.d2 .hhero .hth .ph {
  position: absolute;
  inset: 0;
  min-height: 0;
  background: linear-gradient(140deg,#1E90D4,#2A3FA8 55%,#1A1470);
  color: rgba(255,255,255,.85);
}

html.d2 .hhero .hbd {
  flex: 1 1 320px;
  box-sizing: border-box;
  padding: 24px 28px 24px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

@media (max-width:900px) {
  html.d2 .hhero {
    flex-flow: column nowrap;
  }
  html.d2 .hhero .hth {
    flex: none;
    min-width: 0;
    max-width: none;
    align-self: stretch;
    margin: 12px 12px 0;
  }
  html.d2 .hhero .hbd {
    flex: none;
    width: 100%;
  }
}

html.d2 .heyebrow {
  font: 600 12px/1.2 var(--f-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--m-primary);
}

html.d2 .hbox h2 {
  margin: 0!important;
}

html.d2 .hhero h2 {
  font: 600 30px/1.2 var(--f-head)!important;
  letter-spacing: -.01em;
  margin: 2px 0 0!important;
  color: var(--m-on-surface);
  overflow-wrap: anywhere;
  text-wrap: wrap;
}

html.d2 .hhero .hbd>.mute {
  font-size: 14px;
  color: var(--m-on-surface-variant);
}

html.d2 .hhero .stg {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 13px/1 var(--f-body);
  color: var(--m-primary);
}

html.d2 .hhero .stg .dots5 {
  display: flex;
  gap: 6px;
}

html.d2 .hhero .stg .dots5 i {
  width: 34px;
  height: 6px;
  border-radius: 3px;
  box-sizing: border-box;
  border: 1.5px solid var(--m-outline);
  background: transparent;
}

html.d2 .hhero .stg .dots5 i.f {
  background: var(--m-primary);
  border-color: var(--m-primary);
}

html.d2 .hhero .hnext {
  font-size: 14px;
  color: var(--m-on-surface);
}

html.d2 .hhero .hnext b {
  font-weight: 600;
}

html.d2 .hhero .hnext.late,
html.d2 .hhero .hnext.late b {
  color: var(--m-error);
}

html.d2 .hbtns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 7px;
}

html.d2 .hbtns .btn {
  margin: 0;
}

html.d2 .hhero .btn::after {
  content: '';
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Today ---------- */
html.d2 .htoday {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 24px 24px;
}

html.d2 .htoday>h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font: 600 22px/1.2 var(--f-head)!important;
}

html.d2 .htoday>h2 .mute {
  font: 400 14px/1.2 var(--f-body);
}

html.d2 .htoday .tchips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

html.d2 .htoday .tchips:empty {
  display: none;
}

html.d2 .tchips .tchip {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  min-height: 58px;
  padding: 14px 16px 14px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--m-secondary-container);
  color: var(--m-on-secondary-container);
  font: 400 14px/1.35 var(--f-body);
  text-align: left;
}

html.d2 .tchips .tchip.pub {
  background: var(--m-tertiary-container);
  color: var(--m-on-tertiary-container);
  font-weight: 400;
}

html.d2 .tchips .tchip.pub b,
html.d2 .tchips .tchip.pub strong {
  font-weight: 700;
}

html.d2 .tchips .tchip .tcl {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

html.d2 .tchips .tchip::before {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--ic-cal) center/contain no-repeat;
  mask: var(--ic-cal) center/contain no-repeat;
}

html.d2 .tchips .tchip::after {
  content: 'Open video';
  margin-left: auto;
  padding: 0 6px 0 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

html.d2 .tchips .tchip.s::after,
html.d2 .tchips .tchip.k::after {
  content: 'Open';
}

html.d2 .tchips button.tchip.pub:hover {
  background: var(--m-tertiary-container);
  box-shadow: inset 0 0 0 99px color-mix(in srgb,var(--m-on-tertiary-container) 6%,transparent);
}

html.d2 {
  --ic-cal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/svg%3E");
}

/* tasks inside Today */
html.d2 .htoday .htb {
  margin: 0;
}

html.d2 .tasks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

html.d2 .tasks>.tkh2+.tnew,
html.d2 .tasks>.tkh2+input {
  margin-top: 8px;
}

html.d2 .tasks>h2,
html.d2 .tkh2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 0!important;
  font: 600 16px/1.2 var(--f-head)!important;
}

html.d2 .tkh2 .tkmore {
  margin-left: auto;
}

html.d2 .tasks>h2 .ghost {
  height: 36px;
  min-height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

html.d2 .tnew {
  width: 100%;
  margin: 0;
  height: 44px;
  min-height: 44px;
  padding: 0 14px 0 44px;
  border-radius: 12px;
  background: var(--m-sc-low) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234F5880' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") no-repeat 14px center;
}

html.d2 .tsec {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 6px 0 0;
  font: 600 12px/1.2 var(--f-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--m-on-surface-variant);
}

html.d2 .tsec .mute {
  font: 600 12px/1.2 var(--f-body);
}

html.d2 .tsec .mute::before {
  content: '·';
  margin: 0 6px 0 3px;
}

html.d2 .tsec.late {
  color: var(--m-error);
}

html.d2 .tsec.late .mute {
  color: var(--m-error);
}

html.d2 .tasks .trow,
html.d2 .trow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  min-height: 57px;
  box-sizing: border-box;
  padding: 8px 14px;
  border: 1px solid var(--m-outline-variant);
  border-left: 1px solid var(--m-outline-variant);
  border-radius: 14px;
  background: var(--m-sc-low);
}

html.d2 .trow.late {
  border-color: var(--m-outline-variant);
}

html.d2 .tasks .trow:hover,
html.d2 .trow:hover {
  background: color-mix(in srgb,var(--m-on-surface) 5%,var(--m-sc-low));
}

html.d2 .tasks .trow.ted {
  border-color: var(--m-primary);
  background: color-mix(in srgb,var(--m-primary) 8%,var(--m-sc-low));
}

html.d2 .tck,
html.d2 .tasks .trow .tck {
  flex: none;
  width: 22px;
  height: 22px;
  min-width: 22px!important;
  min-height: 22px!important;
  border: 2px solid var(--m-outline);
  color: var(--m-on-primary);
  background: transparent;
}

html.d2 .tck:not(.pub):hover,
html.d2 .tck:not(.pub):focus-visible {
  border-color: var(--m-primary);
  background: color-mix(in srgb,var(--m-primary) 14%,transparent);
}

html.d2 .tasks .trow.fin .tck,
html.d2 .tasks .trow.dn .tck,
html.d2 .trow.dn .tck {
  background: var(--m-primary);
  border-color: var(--m-primary);
}

html.d2 .tasks .trow .tmain {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-areas: "tt tw" "tv tw";
  column-gap: 12px;
  row-gap: 0;
  align-items: center;
  padding: 0;
}

html.d2 .tasks .trow .tt {
  font: 600 15px/1.3 var(--f-body);
  color: var(--m-on-surface);
}

html.d2 .tasks .trow .tv {
  font: 400 13px/1.35 var(--f-body);
  color: var(--m-on-surface-variant);
  margin: 0;
}

html.d2 .tasks .trow .tw {
  grid-area: tw;
  align-self: center;
  display: flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 13px;
  background: var(--m-sc-high);
  color: var(--m-on-surface-variant);
  font: 600 12px/1 var(--f-body);
  white-space: nowrap;
}

html.d2 .tasks .trow.late .tw {
  background: var(--m-error-container);
  color: var(--m-on-error-container);
}

html.d2 .tasks .trow.fin .tt,
html.d2 .tasks .trow.dn .tt {
  color: var(--m-on-surface-variant);
}

html.d2 .tmore {
  margin-top: 2px;
  align-self: flex-start;
}

html.d2 .tnone {
  margin: 0;
  font-size: 14px;
  color: var(--m-on-surface-variant);
}

/* ---------- the right-hand panel: Idea inbox + Coming up ---------- */
html.d2 #rail h2 {
  font: 600 18px/1.25 var(--f-head);
  margin: 0;
}

html.d2 #rail .hinbox {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 8px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--m-outline-variant);
}

html.d2 #rail .hinbox h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

html.d2 #rail .hinbox h2 .mute {
  height: 22px;
  min-width: 22px;
  box-sizing: border-box;
  padding: 0 7px;
  border-radius: 11px;
  background: var(--m-primary);
  color: var(--m-on-primary);
  font: 600 12px/1 var(--f-body);
  display: grid;
  place-items: center;
}

html.d2 #hin {
  width: 100%;
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--m-sc-lowest);
  border: 1px solid var(--m-outline-variant);
  font-size: 14px;
}

html.d2 #rail .ilist2,
html.d2 #rail .hinbox .ilist2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

html.d2 #rail .hinbox .idea2,
html.d2 .idea2 {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  box-sizing: border-box;
  padding: 6px 14px;
  border-radius: 10px;
  background: var(--m-sc-high);
  border: 0;
  color: var(--m-on-surface);
  font: 500 13px/1.3 var(--f-body);
  max-width: 100%;
}

html.d2 #rail .hinbox .idea2.hot,
html.d2 .idea2.hot {
  background: var(--m-primary-container);
  color: var(--m-on-primary-container);
  font-weight: 500;
  border: 0;
}

html.d2 .idea2:has(.itxt):hover {
  background: color-mix(in srgb,var(--m-on-surface) 8%,var(--m-sc-high));
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

html.d2 .idea2.hot:has(.itxt):hover {
  background: color-mix(in srgb,var(--m-on-primary-container) 8%,var(--m-primary-container));
}

html.d2 .idea2 button {
  font-size: 16px;
}

/* Coming up */
html.d2 #rail>h2:not(.rh0) {
  margin-top: 10px;
}

html.d2 #rail .item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 14px;
}

html.d2 #rail .item.wk,
html.d2 #rail .item.wkf {
  position: relative;
  margin-top: 12px;
  padding-top: 22px;
  border-top: 0;
}

html.d2 #rail .item.wkf:first-of-type {
  margin-top: 4px;
}

html.d2 #rail .item.wk::before,
html.d2 #rail .item.wkf::before {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0;
  border: 0;
  font: 600 12px/1.2 var(--f-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--m-on-surface-variant);
}

html.d2 #rail .item>[data-rd],
html.d2 #rail .item>span.mute {
  flex: 0 0 64px;
  padding-top: 12px;
  font: 500 12px/1.3 var(--f-body);
  color: var(--m-on-surface-variant);
  white-space: normal;
}

html.d2 #rail .item.wk>.mute.rdt,
html.d2 #rail .item .rdt {
  font-weight: 700;
}

html.d2 #rail .item:has(.vid.cur)>span.mute {
  color: var(--m-primary);
  font-weight: 700;
}

html.d2 #rail .item>span:not(.mute) {
  flex: 1;
  min-width: 0;
}

html.d2 #rail button.vid {
  display: grid;
  grid-template-columns: 8px auto auto 1fr;
  column-gap: 8px;
  row-gap: 6px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 0!important;
  border-radius: 12px;
  background: var(--m-sc-low)!important;
  color: var(--m-on-surface)!important;
  font: 600 13px/1.35 var(--f-body);
  text-align: left;
  box-shadow: none;
}

html.d2 #rail button.vid.cur {
  background: var(--m-primary-container)!important;
  color: var(--m-on-primary-container)!important;
}

html.d2 #rail button.vid.hov::after {
  display: none;
}

html.d2 #rail button.vid .rt {
  display: contents;
}

html.d2 #rail button.vid::before {
  content: '';
  grid-column: 1;
  grid-row: 1;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--pc,var(--vc,var(--m-primary)));
}

html.d2 #rail button.vid .rtt {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: none;
  grid-column: 2 / -1;
  grid-row: 1;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: break-word;
}

html.d2 #rail button.vid .dots5 {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  gap: 4px;
  color: var(--m-primary)!important;
}

html.d2 #rail button.vid .dots5 i {
  width: 7px;
  height: 7px;
  box-sizing: border-box;
  border: 1.5px solid var(--m-outline);
  background: transparent;
}

html.d2 #rail button.vid .dots5 i.f {
  background: var(--m-primary);
  border-color: var(--m-primary);
}

html.d2 #rail button.vid.cur .dots5 i {
  border-color: color-mix(in srgb,var(--m-on-primary-container) 50%,transparent);
}

html.d2 #rail button.vid.cur .dots5 i.f {
  background: var(--m-primary);
  border-color: var(--m-primary);
}

html.d2 #rail button.vid .tag.k {
  grid-column: 3;
  grid-row: 2;
  align-self: center;
  margin: 0 0 0 4px;
  height: 18px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 7px;
  border: 1px solid var(--m-outline);
  border-radius: 6px;
  background: transparent;
  color: var(--m-on-surface);
  font: 600 11px/1 var(--f-body);
}

html.d2 #rail button.vid.shortslot {
  border: 0!important;
  background: var(--m-sc-low)!important;
  color: var(--m-on-surface)!important;
}

html.d2 #rail button.vid.shortslot .rtt {
  color: inherit;
}

html.d2 #rail .item>span:has(>.tag.dot),
html.d2 #rail .item>span:has(>.rgm) {
  position: relative;
  box-sizing: border-box;
  padding: 10px 12px 10px 28px;
  border-radius: 12px;
  background: var(--m-sc-low);
  min-height: 0;
  display: block;
  font: 600 13px/1.35 var(--f-body);
  color: var(--m-on-surface);
}

html.d2 #rail .item>span:has(>.tag.dot)>.tag.dot {
  position: absolute;
  left: 12px;
  top: 15px;
  margin: 0;
}

html.d2 #rail .item[data-cal]>span:has(>.rgm) {
  display: block;
}

html.d2 #rail .item[data-cal]>span:has(>.rgm)>.tag {
  position: absolute;
  left: 12px;
  top: 15px;
  margin: 0;
}

html.d2 #rail .item[data-cal]>span:has(>.rgm)>.rgm {
  white-space: normal;
  overflow: visible;
  display: block;
}

html.d2 #rail .item[data-cal]>span:has(>.rgm)>.rsub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 0;
  font-size: 12px;
}

html.d2 #rail .rgm {
  font: 600 13px/1.35 var(--f-body);
  margin: 0;
}

html.d2 #rail .tag.dot {
  width: 8px;
  height: 8px;
  margin: 0;
  background: var(--str);
}

html.d2 #rail .rsub {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 0;
  margin-top: 6px;
}

/* ---------- video rows elsewhere (Home lists, week strip) ---------- */
html.d2 button.vid:not(#rail button.vid):not(#next button.vid) {
  border: 1px solid var(--m-outline-variant);
  border-radius: 12px;
  background: linear-gradient(90deg,var(--gcf),transparent var(--gc-reach)),var(--m-sc-low)!important;
  color: var(--m-on-surface)!important;
  font-weight: 600;
  box-shadow: none;
}

html.d2 button.vid.cur:not(#rail button.vid):not(#next button.vid) {
  background: var(--m-primary-container)!important;
  color: var(--m-on-primary-container)!important;
}

html.d2 .dots5 i {
  border-color: var(--m-outline);
}

html.d2 .dots5 i.f {
  background: var(--m-primary);
  border-color: var(--m-primary);
}

html.d2 .pl {
  border-radius: 10px;
}

/* ---------- Home: the rest (week strip, upcoming videos, published, activity) ---------- */
html.d2 .hweek h2,
html.d2 .hpub h2,
html.d2 .actc h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font: 600 18px/1.25 var(--f-head)!important;
}

html.d2 .hweek .hw .bc {
  border-radius: 16px;
}

html.d2 #home .cards {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(240px,1fr));
  gap: 16px;
}

html.d2 .vc {
  border: 1px solid var(--m-outline-variant);
  border-radius: 20px;
  background: var(--m-sc-lowest);
  box-shadow: var(--m-shadow);
  overflow: hidden;
  border-left-width: 1px!important;
}

html.d2 .vc img,
html.d2 .vc .ph {
  aspect-ratio: 16/9;
  border-radius: 0;
}

html.d2 .vc .vi {
  padding: 14px 16px 16px;
  gap: 4px;
}

html.d2 .vc b {
  font: 600 16px/1.3 var(--f-head);
}

html.d2 .vc .stg {
  font: 600 13px/1 var(--f-body);
  color: var(--m-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

html.d2 .vc .dots5 {
  gap: 4px;
}

html.d2 .vc .dots5 i {
  width: 22px;
  height: 5px;
  border-radius: 3px;
  border: 1.5px solid var(--m-outline);
}

html.d2 .vc .dots5 i.f {
  background: var(--m-primary);
  border-color: var(--m-primary);
}

html.d2 .vc.focus,
html.d2 .vc.big {
  border-radius: 24px;
}

html.d2 .actrow {
  border-bottom: 1px solid var(--m-outline-variant);
}

html.d2 .actrow .ak {
  border-radius: 8px;
  font: 600 11px/1.4 var(--f-body);
  padding: 1px 8px;
}

html.d2 .sl li {
  border-bottom: 1px solid var(--m-outline-variant);
}

/* ---------- 2.0 extras: search results, Open | Done, hero buttons ---------- */
html.d2 .gsb {
  display: none;
}

html.d2 #gres mark {
  background: transparent;
  color: var(--m-primary);
  font-weight: 700;
}

html.d2 #gres .gt {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.d2 #gres .gt em {
  font-style: normal;
  font-size: 12px;
  color: var(--m-on-surface-variant);
  margin-left: 4px;
}

html.d2 #gres h4 span {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin-left: 4px;
}

html.d2 #gres i.gi {
  border-radius: 3px;
  background: var(--m-tertiary);
  transform: rotate(45deg) scale(.8);
}

html.d2 #gres i.gk {
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--m-outline);
  width: 10px;
  height: 10px;
  box-sizing: border-box;
}

html.d2 #gres i.gk.d {
  background: var(--m-primary);
  border-color: var(--m-primary);
}

html.d2 .tkseg {
  height: 38px;
  margin-left: 4px;
}

html.d2 .tkseg button[aria-pressed=true]::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;
}

html.d2 .tkh2 .tkmore {
  margin-left: auto;
}

/* =====================================================================
   Studiotaku 2.0, part C: the other pages (Calendar, Tasks, Ideas,
   Videos, Shows, Streams). Same surfaces, shapes and colours as Home.
   ===================================================================== */

/* page-level cards */
html.d2 :is(#pick,#tasks,#ideas,#vids,#series,#activity) {
  box-sizing: border-box;
}

html.d2 #pick,
html.d2 #tasks {
  background: var(--m-sc-lowest);
  border: 1px solid var(--m-outline-variant);
  border-radius: 28px;
  box-shadow: var(--m-shadow);
  padding: 24px;
}

html.d2 #pick:empty,
html.d2 #tasks:empty {
  display: none;
}

html.d2 #ideas.card,
html.d2 #vids.card,
html.d2 #series.card {
  border-radius: 28px;
  padding: 24px;
}

html.d2 #pick h2,
html.d2 #tasks h2,
html.d2 #ideas h2,
html.d2 #vids h2,
html.d2 #series h2,
html.d2 #streams>h2 {
  font: 700 24px/1.25 var(--f-head);
  margin: 0 0 12px;
}

html.d2 #ideas h2 .mute,
html.d2 #vids h2 .mute {
  font: 400 14px/1 var(--f-body);
}

/* ---------- Calendar ---------- */
html.d2 .bcal .dow {
  font: 600 12px/1.2 var(--f-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--m-on-surface-variant);
  margin-bottom: 8px;
}

html.d2 .bcal .grid,
html.d2 .bcal .dow {
  gap: 6px;
}

html.d2 .bcal.wk .grid,
html.d2 .bcal.wk .dow {
  gap: 4px;
}

@media (min-width:821px) {
  html.d2 .cal>.bcal {
    min-width: 560px;
  }
}

html.d2 .cal>.bcal.wk {
  min-width: 0;
}

html.d2 .bc {
  background: var(--m-sc-low);
  border: 1px solid var(--m-outline-variant);
  border-radius: 16px;
  padding: 6px;
  font-size: 12px;
}

html.d2 .bc .n {
  color: var(--m-on-surface-variant);
  font-weight: 500;
}

html.d2 .bc.today {
  box-shadow: inset 0 0 0 2px var(--m-primary);
  background: color-mix(in srgb,var(--m-primary) 7%,var(--m-sc-low));
}

html.d2 .bc.today .n {
  color: var(--m-primary);
  font-weight: 700;
}

html.d2 .bc.dsel,
html.d2 .bcal .bc.over {
  outline: 2px solid var(--m-primary);
  outline-offset: -2px;
  background: color-mix(in srgb,var(--m-primary) 10%,var(--m-sc-low));
}

html.d2 .bcal.mo .bc.modd {
  background: color-mix(in srgb,var(--m-on-surface) 3%,var(--m-sc-low));
}

html.d2 .cc {
  border-radius: 10px;
  border-width: 1px;
  background: var(--m-sc-lowest);
  color: var(--m-on-surface);
}

html.d2 .cc.vcc {
  font: 600 14px/1.3 var(--f-body);
  padding: 8px 10px;
  border-left-width: 4px;
  background: var(--m-sc-lowest);
  border-color: var(--m-outline-variant);
}

html.d2 .cc.vcc small {
  font: 400 12px/1.3 var(--f-body);
  color: var(--m-on-surface-variant);
}

html.d2 .cc.open {
  border: 1px dashed var(--m-outline);
  color: var(--m-on-surface-variant);
  background: transparent;
}

html.d2 .cc.td {
  border: 1px solid var(--m-outline-variant);
  background: var(--m-secondary-container);
  color: var(--m-on-secondary-container);
  border-radius: 10px;
}

html.d2 .cc.td.late {
  border-color: var(--m-error);
  color: var(--m-error);
  background: var(--m-error-container);
}

html.d2 .cc.dl {
  border-style: dashed;
  border-left-style: solid;
  color: var(--m-on-surface-variant);
}

html.d2 .cc.dl.late {
  border-color: var(--m-error);
  color: var(--m-error);
}

html.d2 .cc.s {
  color: var(--m-on-surface);
  border-color: var(--m-outline);
}

html.d2 .cc.k {
  color: var(--m-on-surface);
  border-color: var(--m-outline);
}

html.d2 .cc.ev {
  background: var(--m-sc-lowest);
}

html.d2 .cc.rt {
  border: 1px dashed var(--m-outline);
  color: var(--m-on-surface-variant);
}

/* ---------- Tasks page ---------- */
html.d2 .tkhd {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
}

html.d2 .tkhd h2 {
  margin: 0;
}

html.d2 .tkbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}

html.d2 .tksearch {
  position: relative;
  flex: 1 1 220px;
}

html.d2 .tksearch input {
  width: 100%;
  height: 44px;
  border-radius: 22px;
  padding: 0 40px 0 44px;
  background: var(--m-sc-high);
  border: 1px solid var(--m-outline-variant);
}

html.d2 .tkimp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 20px;
  border: 1px solid var(--m-outline);
  background: transparent;
  color: var(--m-on-surface);
  font: 600 14px/1 var(--f-body);
}

html.d2 .tkimp[aria-pressed=true] {
  background: var(--m-secondary-container);
  border-color: transparent;
  color: var(--m-on-secondary-container);
}

html.d2 .tkadd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 8px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--m-outline-variant);
  border-radius: 20px;
  background: var(--m-sc-low);
}

html.d2 .tkadd input {
  flex: 1 1 160px;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-height: 40px;
}

html.d2 .tkchip {
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  border: 1px solid var(--m-outline);
  background: transparent;
  color: var(--m-on-surface);
  font: 500 13px/1 var(--f-body);
}

html.d2 .tkchip[aria-pressed=true] {
  background: var(--m-secondary-container);
  border-color: transparent;
  color: var(--m-on-secondary-container);
  font-weight: 600;
}

html.d2 .tkS .tsec {
  margin: 14px 0 8px;
}

html.d2 .tkh3 {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
}

html.d2 .tkempty {
  border: 1px dashed var(--m-outline);
  border-radius: 20px;
  color: var(--m-on-surface-variant);
}

/* ---------- Ideas ---------- */
html.d2 #ideas #paste {
  border-radius: 16px;
  background: var(--m-sc-low);
  border: 1px solid var(--m-outline-variant);
  min-height: 56px;
}

html.d2 #ideas .idea2 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid var(--m-outline-variant);
  border-radius: 16px;
  background: var(--m-sc-low);
  color: var(--m-on-surface);
  font: 500 15px/1.35 var(--f-body);
}

html.d2 #ideas .idea2.hot {
  background: var(--m-primary-container);
  color: var(--m-on-primary-container);
  border-color: transparent;
}

html.d2 #ideas .idea2:has(.itxt):hover {
  background: color-mix(in srgb,var(--m-on-surface) 6%,var(--m-sc-low));
  transform: none;
}

html.d2 #ideas .idea2.hot:has(.itxt):hover {
  background: color-mix(in srgb,var(--m-on-primary-container) 8%,var(--m-primary-container));
}

html.d2 #ideas .sth {
  height: 40px;
}

html.d2 #ideas .sth button {
  font: 500 14px/1 var(--f-body);
}

/* ---------- Videos, Shows, Streams ---------- */
html.d2 #vids .vctl,
html.d2 #series .vctl {
  gap: 10px 14px;
}

html.d2 table th {
  font: 600 13px/1.3 var(--f-body);
  color: var(--m-on-surface-variant);
  letter-spacing: .02em;
}

html.d2 .board .bcol,
html.d2 .bcol {
  background: var(--m-sc-low);
  border: 1px solid var(--m-outline-variant);
  border-radius: 20px;
}

html.d2 .bcard {
  background: var(--m-sc-lowest);
  border: 1px solid var(--m-outline-variant);
  border-radius: 14px;
}

html.d2 .scard2,
html.d2 .sct {
  border-radius: 20px;
}

html.d2 .rot {
  grid-template-columns: minmax(100px,140px) repeat(7,minmax(62px,1fr));
}

html.d2 .rot.solo {
  grid-template-columns: repeat(7,minmax(62px,1fr));
}

html.d2 .rot {
  min-width: 0;
}

@media (max-width:820px) {
  html.d2 .rot {
    min-width: 640px;
  }
}

html.d2 #streams>h2 {
  margin-top: 4px;
}

/* =====================================================================
   Studiotaku 2.0, part D: the video page (Video board of the mockup).
   Stage tiles, outlined fields with floating labels, Short card,
   Script card, comments.
   ===================================================================== */

html.d2 #work {
  padding: 24px 24px 28px;
  border-radius: 28px;
  background: var(--sf);
}

/* ---------- top row: back, stage tiles, actions ---------- */
html.d2 .wtop {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px 12px;
  align-items: center;
  margin: 0 0 20px;
}

html.d2 .wtop>button.ib[data-act=topick] {
  justify-self: start;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--m-secondary-container);
  color: var(--m-on-secondary-container);
  display: grid;
  place-items: center;
}

html.d2 .wtop>button.ib[data-act=topick]:hover {
  box-shadow: inset 0 0 0 99px color-mix(in srgb,var(--m-on-secondary-container) 8%,transparent);
}

html.d2 .wtr {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-self: end;
}

html.d2 .wtr .ghost[data-act=tobi] {
  height: 44px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 22px;
  border: 1px solid var(--m-outline);
  color: var(--m-primary);
  background: transparent;
  font-weight: 600;
}

html.d2 .wtr .ib.del {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--m-outline);
  color: var(--m-error)!important;
  display: grid;
  place-items: center;
  background: transparent;
}

html.d2 .wtr .ib.del:hover {
  background: color-mix(in srgb,var(--m-error) 10%,transparent);
}

html.d2 .wtop .stp {
  grid-column: 1/-1;
  order: 3;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px 12px;
  justify-content: stretch;
  margin: 0;
}

html.d2 .wtop .stp .si:nth-child(5) {
  grid-column: 1/-1;
}

html.d2 .wtop .si {
  position: relative;
  min-width: 0;
  height: 64px;
  box-sizing: border-box;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--m-outline);
  border-radius: 16px;
  background: transparent;
  color: var(--m-on-surface);
  transition: background .2s,border-color .2s,box-shadow .2s;
}

html.d2 .wtop .si .sb {
  position: static;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: 600 14px/1.2 var(--f-body);
  color: var(--m-on-surface);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 0;
}

html.d2 .wtop .si .sb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-radius: 15px;
}

/* the big click area of a stage tile is this ::after. Any transform on the button (the base rule shrinks a pressed .sb) makes the button its own containing block, the area collapses to the label while the mouse is down, and the click then lands on the tile instead of the button. The tile has its own press effect, so the button must not move. */
html.d2 .wtop .si .sb:active {
  scale: none;
  translate: none;
  transform: none;
}

html.d2 .wtop .si .sd,
html.d2 .wtop .si .dbtn {
  position: relative;
  z-index: 1;
  padding: 0 2px;
  border: 0;
  background: none;
  font: 400 13px/1.2 var(--f-body);
  color: var(--m-on-surface-variant);
  text-align: center;
}

html.d2 .wtop .si .dbtn:hover {
  color: var(--m-on-surface);
  text-decoration: underline dotted;
}

html.d2 .wtop .si.late .dbtn::after,
html.d2 .wtop .si.late .sd::after {
  content: ' · late';
}

@media (hover:hover) {
  html.d2 .wtop .si:not(.now):not(.done):hover {
    background: color-mix(in srgb,var(--m-on-surface) 6%,transparent);
  }
}

html.d2 .wtop .si.done {
  background: var(--m-primary-container);
  border-color: transparent;
}

html.d2 .wtop .si.done .sb {
  color: var(--m-on-primary-container);
}

html.d2 .wtop .si.done .sd,
html.d2 .wtop .si.done .dbtn {
  color: color-mix(in srgb,var(--m-on-primary-container) 78%,transparent);
}

html.d2 .wtop .si.now {
  background: var(--m-primary);
  border-color: transparent;
  box-shadow: var(--lift);
}

html.d2 .wtop .si.now .sb,
html.d2 .wtop .si.now .sd,
html.d2 .wtop .si.now .dbtn {
  color: var(--m-on-primary);
}

html.d2 .wtop .si.now.late {
  background: var(--m-primary);
  border-color: transparent;
}

html.d2 .wtop .si.now.late .sb,
html.d2 .wtop .si.now.late .sd,
html.d2 .wtop .si.now.late .dbtn {
  color: var(--m-on-primary);
}

/* a ring marks the stage you are looking at: a stage you only look at (pk), or the stage the video is in when you are looking at it (vw, which is also filled). It is an outline, because the glass shadows in v2e.css override every box-shadow ring on these buttons. */
html.d2 .wtop .si.pk,
html.d2 .wtop .si.vw {
  outline: 2px solid var(--m-primary);
  outline-offset: 2px;
}

/* the ring element (added in v2.js) slides between the stages; once it exists the per-box outline is not needed */
html.d2 .wtop .stp {
  position: relative;
}

html.d2 .wtop .stpring {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid var(--m-primary);
  pointer-events: none;
  z-index: 2;
  background: none;
}

html.d2 .wtop .stp:has(.stpring) .si:is(.pk,.vw) {
  outline: 0;
}

@media (forced-colors:active) {
  html.d2 .wtop .stpring {
    border-color: Highlight;
  }
}

html.d2 .sb:focus-visible {
  outline: 2px solid var(--m-primary);
  outline-offset: 3px;
}

/* ---------- title, hook, genre/show ---------- */
html.d2 .ttl {
  font: 700 36px/1.2 var(--f-head);
  letter-spacing: -.01em;
  color: var(--m-on-surface);
  border: 0;
  border-bottom: 2px solid var(--m-primary);
  border-radius: 0;
  padding: 4px 0 10px;
  min-height: 0;
  background: transparent;
  box-shadow: none;
  text-overflow: ellipsis;
}

html.d2 .ttl::placeholder {
  color: var(--m-on-surface-variant);
  opacity: .7;
}

html.d2 .ttl:focus {
  box-shadow: none;
  background: transparent;
}

html.d2 .hookrow {
  position: relative;
  display: block;
  margin: 24px 0 0;
}

html.d2 .hookrow>span {
  position: absolute;
  left: 12px;
  top: -8px;
  z-index: 1;
  padding: 0 5px;
  background: var(--sf);
  font: 500 12px/16px var(--f-body);
  color: var(--m-on-surface-variant);
  transition: color .15s;
}

html.d2 .hookrow input {
  width: 100%;
  height: 52px;
  box-sizing: border-box;
  padding: 0 16px;
  border: 1px solid var(--m-outline);
  border-radius: 12px;
  background: transparent;
  font-size: 15px;
  color: var(--m-on-surface);
}

html.d2 .hookrow:focus-within>span {
  color: var(--m-primary);
}

html.d2 .hookrow input:focus {
  background: transparent;
  border-color: var(--m-primary);
  box-shadow: inset 0 0 0 1px var(--m-primary);
}

html.d2 .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 26px 0 24px;
}

html.d2 .meta>label {
  position: relative;
  display: block;
  flex: 1 1 170px;
  max-width: 244px;
  min-width: 150px;
  gap: 0;
}

html.d2 .meta>label .lt {
  position: absolute;
  left: 12px;
  top: -8px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 5px;
  background: var(--sf);
  font: 500 12px/16px var(--f-body);
  color: var(--m-on-surface-variant);
  transition: color .15s;
  pointer-events: none;
}

html.d2 .meta>label .lt .ibtn {
  pointer-events: auto;
  width: 15px;
  height: 15px;
  font-size: 10px;
  line-height: 1;
}

html.d2 .meta>label:focus-within .lt {
  color: var(--m-primary);
}

html.d2 .meta>label select {
  width: 100%;
  height: 52px;
  box-sizing: border-box;
  padding: 0 40px 0 16px;
  border: 1px solid var(--m-outline);
  border-radius: 12px;
  background-color: transparent;
  font-size: 15px;
  color: var(--m-on-surface);
}

html.d2 .meta>label select:focus {
  background-color: transparent;
  border-color: var(--m-primary);
  box-shadow: inset 0 0 0 1px var(--m-primary);
}

html.d2 .meta>span.mute {
  padding: 0!important;
  font-size: 14px;
  color: var(--m-on-surface-variant);
}

html.d2 .meta>span.ep {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px!important;
  border-radius: 8px;
  background: var(--m-sc-high);
  color: var(--m-on-surface);
  font-weight: 500;
}

/* ---------- thumbnail + Short card ---------- */
html.d2 .wgrid {
  display: grid;
  grid-template-columns: minmax(0,321px) minmax(0,1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width:820px) {
  html.d2 .wgrid {
    grid-template-columns: minmax(0,1fr);
  }
}

html.d2 .thumb {
  margin: 0 0 14px;
}

html.d2 .thumb img {
  border-radius: 20px;
  border: 0;
  box-shadow: var(--m-shadow);
}

html.d2 button.thumb {
  border: 2px dashed var(--m-outline);
  border-radius: 20px;
  color: var(--m-on-surface-variant);
}

html.d2 .thbtns button {
  border-radius: 12px;
}

html.d2 #work .wgrid h3:has(+ .det) {
  display: none;
}

html.d2 .det {
  display: grid;
  gap: 10px;
}

html.d2 .det .swrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--m-outline-variant);
  border-radius: 16px;
  background: transparent;
}

html.d2 .det .swrow>span {
  font: 600 15px/1.3 var(--f-body);
  color: var(--m-on-surface);
}

html.d2 .det .swrow:has(>[data-act=shorttoggle])>span::after {
  content: 'Make this a vertical video';
  display: block;
  margin-top: 1px;
  font: 400 13px/1.3 var(--f-body);
  color: var(--m-on-surface-variant);
}

/* ---------- right column: talking points, Script card ---------- */
html.d2 #sp h3,
html.d2 #wpbox h3,
html.d2 .cfull h3,
html.d2 #work h3 {
  font: 700 18px/1.3 var(--f-head);
  color: var(--m-on-surface);
  margin: 18px 0 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

html.d2 #sp>h3:first-child,
html.d2 #wpbox h3,
html.d2 #sp h3[style*="margin-top:0"] {
  margin-top: 0;
}

html.d2 #wpbox h3 .mute,
html.d2 .cfull h3 .mute,
html.d2 #work h3 .mute {
  font: 400 13px/1 var(--f-body);
  color: var(--m-on-surface-variant);
}

html.d2 #wpbox>.mute {
  font: 400 14px/1.5 var(--f-body)!important;
  color: var(--m-on-surface-variant);
  margin: 0 0 12px;
}

html.d2 #wpnew,
html.d2 #sp input[data-add],
html.d2 #sp input[data-cxadd] {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  border-radius: 12px;
  padding: 0 14px 0 44px;
  background: var(--m-sc-low) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234F5880' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") no-repeat 14px center;
  border: 1px solid var(--m-outline-variant);
}

html.d2 #sp textarea {
  border-radius: 12px;
  background: var(--m-sc-low);
  padding: 12px 14px;
  line-height: 1.5;
}

html.d2 #work .scard {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--m-outline-variant);
  border-radius: 20px;
  background: var(--m-sc-low);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

html.d2 #work .scard>h3 {
  margin: 0;
}

html.d2 #work .scard>p {
  margin: 0;
  font: 400 14px/1.5 var(--f-body);
  color: var(--m-on-surface-variant);
}

html.d2 #work .scard .row2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

html.d2 #work .scard [data-act=wopen]::before {
  content: '';
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16v4Z'/%3E%3Cpath d='m13.5 6.5 4 4'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16v4Z'/%3E%3Cpath d='m13.5 6.5 4 4'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* talking points and lists */
html.d2 .rli {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 6px 0;
  padding: 4px 8px;
  border: 1px solid var(--m-outline-variant);
  border-radius: 12px;
  background: var(--m-sc-low);
}

html.d2 .rli input {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 36px;
  padding: 0 6px;
}

html.d2 .rli button {
  color: var(--m-primary);
}

html.d2 .rli button[data-act=ldel] {
  color: var(--m-error);
}

html.d2 .chi {
  border-bottom: 1px solid var(--m-outline-variant);
}

html.d2 .chk input {
  accent-color: var(--m-primary);
}

/* ---------- comments ---------- */
html.d2 .cfull {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--m-outline-variant);
}

html.d2 .cfull h3 {
  margin-top: 0;
}

html.d2 .cmt {
  background: var(--m-sc-low);
  border: 1px solid var(--m-outline-variant);
  border-radius: 16px;
  padding: 12px 16px;
  margin: 8px 0;
  font-size: 14px;
}

html.d2 .cmt .cm-h {
  color: var(--m-on-surface-variant);
}

html.d2 .cmt .cmact button,
html.d2 .cmsolved {
  border: 1px solid var(--m-outline);
  border-radius: 14px;
  color: var(--m-primary);
  font-weight: 600;
  padding: 0 12px;
}

html.d2 #cin {
  width: 100%;
  box-sizing: border-box;
  min-height: 56px;
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--m-sc-low);
}

/* =====================================================================
   Studiotaku 2.0, part E: dialogs, the writing view (Writer board).
   ===================================================================== */

/* ---------- every dialog: frosted sheet, 28px corners ---------- */
html.d2 dialog {
  background: var(--m-acrylic);
  color: var(--m-on-surface);
  border: 1px solid var(--m-outline-variant);
  border-radius: 28px;
  box-shadow: var(--m-shadow),0 24px 60px rgba(0,0,0,.28);
}

html.d2 dialog:not(.full):not(.prm) {
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  backdrop-filter: blur(28px) saturate(1.5);
  padding: 24px 26px;
}

html.d2 dialog.show::backdrop {
  background: color-mix(in srgb,var(--m-scrim,#000) 38%,transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

html.d2 dialog h1 {
  font: 700 24px/1.25 var(--f-head);
  color: var(--m-on-surface);
}

html.d2 dialog h2,
html.d2 dialog h3 {
  font-family: var(--f-head);
}

/* ---------- writing view: full screen ---------- */
html.d2 dialog.full {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-radius: 0;
  background: var(--m-surface);
  background-image: radial-gradient(900px 520px at 8% -8%,var(--m-tint1),transparent 60%),radial-gradient(800px 520px at 100% 0%,var(--m-tint2),transparent 60%),var(--m-bgg);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html.d2 .wbar {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  box-sizing: border-box;
  padding: 12px 24px;
  border-bottom: 1px solid var(--m-outline-variant);
  background: var(--m-acrylic);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  backdrop-filter: blur(28px) saturate(1.5);
}

html.d2 .wbar #wt {
  flex: 1 1 0;
  min-width: 0;
  max-width: calc(50% - 300px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 15px/1.3 var(--f-body);
  color: var(--m-on-surface);
}

html.d2 .wtools {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 50px;
  box-sizing: border-box;
  padding: 0 8px;
  border: 1px solid var(--m-outline-variant);
  border-radius: 25px;
  background: var(--m-acrylic);
  box-shadow: var(--m-shadow);
  flex-wrap: nowrap;
}

html.d2 .wtools button,
html.d2 .wtools select {
  height: 40px;
  min-width: 40px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 0;
  border-radius: 20px;
  background-color: transparent;
  color: var(--m-on-surface);
  font: 500 14px/1 var(--f-body);
  box-shadow: none;
}

html.d2 .wtools button:hover:not(:disabled),
html.d2 .wtools select:hover {
  background: color-mix(in srgb,var(--m-on-surface) 8%,transparent);
}

html.d2 .wtools select {
  font-weight: 500;
  padding-right: 30px;
  background-position: right 8px center;
}

html.d2 .wtools .tsep {
  width: 1px;
  height: 24px;
  margin: 0 6px;
  background: var(--m-outline-variant);
}

html.d2 #uhu,
html.d2 #uhr,
html.d2 .wtools [data-cmd=insertUnorderedList],
html.d2 .wtools [data-act=img] {
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

html.d2 #uhu::before,
html.d2 #uhr::before,
html.d2 .wtools [data-cmd=insertUnorderedList]::before {
  content: '';
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

html.d2 #uhu::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 0 11H11'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 0 11H11'/%3E%3C/svg%3E");
}

html.d2 #uhr::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 14 5-5-5-5'/%3E%3Cpath d='M20 9H9.5a5.5 5.5 0 0 0 0 11H13'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 14 5-5-5-5'/%3E%3Cpath d='M20 9H9.5a5.5 5.5 0 0 0 0 11H13'/%3E%3C/svg%3E");
}

html.d2 .wtools [data-cmd=insertUnorderedList]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11'/%3E%3Cpath d='M4 6h.01M4 12h.01M4 18h.01' stroke-width='2.6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11'/%3E%3Cpath d='M4 6h.01M4 12h.01M4 18h.01' stroke-width='2.6'/%3E%3C/svg%3E");
}

html.d2 .wtools [data-act=enotes] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  font-weight: 600;
}

html.d2 .wtools [data-act=enotes]::before {
  content: '';
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16v4Z'/%3E%3Cpath d='m13.5 6.5 4 4'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16v4Z'/%3E%3Cpath d='m13.5 6.5 4 4'/%3E%3C/svg%3E") center/contain no-repeat;
}

html.d2 .wtools [data-act=enotes][aria-pressed=true] {
  background: var(--m-tertiary-container);
  color: var(--m-on-tertiary-container);
  border-color: transparent;
}

html.d2 #wc {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  font: 400 13px/1.3 var(--f-body);
  color: var(--m-on-surface-variant);
  padding: 2px 4px;
}

html.d2 .wbar>.ghost[data-act=copyscript] {
  flex: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0!important;
  border-radius: 50%;
  border: 1px solid var(--m-outline-variant);
  color: var(--m-on-surface);
  justify-content: center;
}

html.d2 .wbar>.btn[data-act=wclose] {
  flex: none;
  min-height: 44px;
  padding: 0 28px;
}

@media (min-width:1321px) {
  html.d2 #wc .pgd {
    display: none;
  }
  html.d2 #wc .pgs {
    display: block;
  }
}

@media (max-width:1320px) {
  html.d2 .wbar {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  html.d2 .wtools {
    position: static;
    transform: none;
    order: 5;
    flex: 1 1 100%;
    justify-content: center;
    overflow-x: auto;
  }
  html.d2 .wbar #wt {
    max-width: none;
  }
}

/* ---------- article + side card ---------- */
html.d2 .wmain {
  display: flex;
  flex: 1;
  min-height: 0;
  grid-template-columns: none;
}

html.d2 .wcol {
  flex: 1 1 auto;
}

html.d2 #doc {
  padding: 44px max(28px,calc((100% - 700px)/2)) 90px;
  font: 400 18px/1.7 var(--f-body);
  color: var(--m-on-surface);
}

@media (min-width:801px) {
  html.d2 #doc {
    padding-right: max(28px,calc((100% - 700px)/2));
  }
}

html.d2 #doc h1 {
  font: 700 40px/1.15 var(--f-head);
  letter-spacing: -.015em;
  margin: .2em 0 .5em;
  color: var(--m-on-surface);
}

html.d2 #doc h2 {
  font: 700 24px/1.3 var(--f-head);
  color: var(--m-on-surface);
  margin: 1.2em 0 .45em;
}

html.d2 #doc p {
  margin: .6em 0;
}

html.d2 #doc a {
  color: var(--m-primary);
}

html.d2 #pts {
  flex: 0 0 300px;
  box-sizing: border-box;
  align-self: flex-start;
  margin: 25px 24px 0 18px;
  padding: 20px;
  max-height: calc(100% - 50px);
  border: 1px solid var(--m-outline-variant);
  border-left: 1px solid var(--m-outline-variant);
  border-radius: 28px;
  background: var(--m-acrylic);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  backdrop-filter: blur(28px) saturate(1.5);
  box-shadow: var(--m-shadow);
}

html.d2 #pts h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font: 700 16px/1.3 var(--f-head);
  margin: 0 0 6px!important;
  color: var(--m-on-surface);
}

html.d2 #pts h3 .mute {
  font: 400 13px/1 var(--f-body);
}

html.d2 #pts>p.mute {
  font: 400 13px/1.5 var(--f-body);
  color: var(--m-on-surface-variant);
  margin: 0 0 12px;
}

html.d2 #newpt {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  border-radius: 12px;
  background: var(--m-sc-lowest);
  border: 1px solid var(--m-outline-variant);
}

html.d2 #cms:empty {
  display: none;
}

html.d2 #cms {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--m-outline-variant);
}

html.d2 .shsec {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--m-outline-variant);
}

html.d2 .shtop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 700 16px/1.3 var(--f-head);
  color: var(--m-on-surface);
}

html.d2 .shnote {
  font: 400 13px/1.5 var(--f-body);
  color: var(--m-on-surface-variant);
  margin: 8px 0 0;
}

html.d2 .shsw {
  position: relative;
  flex: none;
  width: 52px;
  height: 32px;
  padding: 0;
  border: 2px solid var(--m-outline);
  border-radius: 16px;
  background: var(--m-sc-highest);
  font-size: 0;
  color: transparent;
  transition: background .2s,border-color .2s;
}

html.d2 .shsw::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--m-outline);
  transition: all .2s var(--ease);
}

html.d2 .shsw[aria-pressed=true] {
  background: var(--m-primary);
  border-color: var(--m-primary);
}

html.d2 .shsw[aria-pressed=true]::after {
  top: 4px;
  left: calc(100% - 28px);
  width: 24px;
  height: 24px;
  background: var(--m-on-primary);
}

@media (max-width:800px) {
  html.d2 .wmain {
    flex-direction: column;
    overflow: auto;
  }
  html.d2 #pts {
    flex: none;
    margin: 8px 12px 12px;
    align-self: stretch;
    max-height: min(420px,calc(var(--wvh,100dvh)*.46));
  }
  html.d2 #wv:not(.ptsopen) #pts {
    display: none;
  }
  html.d2 .wtools #pgb,
  html.d2 .wtools .pgsep {
    display: none;
  }
  html.d2 #wsb {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px max(10px,env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px));
    border-top: 1px solid var(--m-outline-variant);
    background: var(--m-acrylic);
    -webkit-backdrop-filter: blur(28px) saturate(1.5);
    backdrop-filter: blur(28px) saturate(1.5);
  }
  html.d2 #wsb button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 22px;
    background: transparent;
    color: var(--m-on-surface);
    font: 500 14px/1 var(--f-body);
    white-space: nowrap;
    box-shadow: none;
  }
  html.d2 #wsb button:hover:not(:disabled) {
    background: color-mix(in srgb,var(--m-on-surface) 8%,transparent);
  }
  html.d2 #wsb svg {
    flex: none;
  }
  html.d2 #doc h1,
  html.d2 #doc h2,
  html.d2 #doc h3 {
    padding-right: 44px;
  }
  html.d2 #hbov .hbb {
    position: absolute;
    right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: color-mix(in srgb,var(--m-on-surface) 8%,transparent);
    color: var(--m-on-surface-variant);
    pointer-events: auto;
    box-shadow: none;
  }
  html.d2 #hbov .hbb::before {
    content: '';
    position: absolute;
    inset: -4px;
  }
  html.d2 #hbov .hbb.on {
    width: auto;
    min-width: 36px;
    padding: 0 9px;
    background: var(--m-secondary-container);
    color: var(--m-on-secondary-container);
  }
  html.d2 #hbov .hbb span {
    font: 600 12px/1 var(--f-body);
  }
  html.d2 #hbov .hbb[aria-expanded=true] {
    outline: 2px solid var(--m-primary);
    outline-offset: 1px;
  }
  html.d2 #hbm {
    border: 1px solid var(--m-outline-variant);
    border-radius: 24px;
    background: var(--m-sc-high);
    color: var(--m-on-surface);
    box-shadow: var(--m-shadow);
    padding: 10px;
  }
  html.d2 #hbm .hbh {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 10px 10px;
  }
  html.d2 #hbm .hbh b {
    font: 700 15px/1.3 var(--f-head);
  }
  html.d2 #hbm .hbh small {
    font: 400 13px/1.3 var(--f-body);
    color: var(--m-on-surface-variant);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html.d2 #hbm button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 6px 10px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--m-on-surface);
    font: 500 15px/1.3 var(--f-body);
    text-align: left;
    box-shadow: none;
  }
  html.d2 #hbm button:hover:not(:disabled) {
    background: color-mix(in srgb,var(--m-on-surface) 8%,transparent);
  }
  html.d2 #hbm button i {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid var(--m-outline);
    border-radius: 7px;
    font-style: normal;
    font-size: 14px;
    font-weight: 800;
    color: var(--m-on-primary);
  }
  html.d2 #hbm button[aria-checked=true] i {
    background: var(--m-primary);
    border-color: var(--m-primary);
  }
  html.d2 #hbm button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  html.d2 #hbm .hbe {
    margin: 4px 10px 8px;
    font: 400 14px/1.4 var(--f-body);
    color: var(--m-on-surface-variant);
  }
  html.d2 #hbm .hbadd {
    justify-content: center;
    background: var(--m-secondary-container);
    color: var(--m-on-secondary-container);
    font-weight: 600;
  }
  html.d2 #hbm .hbdone {
    justify-content: center;
    margin-top: 6px;
    font-weight: 600;
    color: var(--m-primary);
  }
  html.d2 #wsb #ptt {
    min-width: 0;
  }
  @media (max-width:400px) {
    html.d2 #wsb button {
      padding: 0 10px;
      gap: 6px;
    }
  }
  @media (max-width:350px) {
    html.d2 #wsb #ptsh {
      display: none;
    }
  }
  html.d2 #wsb .ptc {
    transition: transform .2s var(--ease);
  }
  html.d2 #wsb #ptt[aria-expanded=true] {
    background: var(--m-secondary-container);
    color: var(--m-on-secondary-container);
  }
  html.d2 #wsb #ptt[aria-expanded=true] .ptc {
    transform: rotate(180deg);
  }
  html.d2 #wsb .wsbn {
    padding: 3px 8px;
    border-radius: 10px;
    background: color-mix(in srgb,var(--m-on-surface) 10%,transparent);
    font: 600 12px/1.2 var(--f-body);
  }
  html.d2 #wsb .wsbn[hidden] {
    display: none;
  }
  html.d2 #wsb #pgb2[aria-pressed=true] {
    background: var(--m-secondary-container);
    color: var(--m-on-secondary-container);
  }
  html.d2 #wsb #pgb2[aria-expanded=true] {
    background: color-mix(in srgb,var(--m-on-surface) 12%,transparent);
  }
}

@media (max-width:800px) and (prefers-reduced-motion:no-preference) {
  html.d2 #wv.ptsopen #pts {
    animation: ptsin .22s var(--ease);
  }
}

@keyframes ptsin {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- editor's notes and A/B versions, inside the article ---------- */
html.d2 #doc .enote {
  position: relative;
  margin: 14px 0;
  padding: 34px 16px 12px 52px;
  border-radius: 12px;
  background: var(--m-tertiary-container);
  color: var(--m-on-tertiary-container);
  font-style: italic;
}

html.d2 #doc .enote::before {
  content: "EDITOR\2019S NOTE";
  position: absolute;
  left: 52px;
  top: 12px;
  font: 600 11px/1.2 var(--f-body);
  font-style: normal;
  letter-spacing: .08em;
}

html.d2 #doc .enote::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 14px;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h10l4 4v12H5z'/%3E%3Cpath d='M15 4v4h4'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h10l4 4v12H5z'/%3E%3Cpath d='M15 4v4h4'/%3E%3C/svg%3E") center/contain no-repeat;
}

html.d2 #doc .enote textarea {
  font-size: 17px;
  line-height: 1.5;
}

html.d2 #doc .altblk {
  position: relative;
  margin: 18px 0;
  padding: 44px 18px 12px;
  border: 1px solid var(--m-outline-variant);
  border-radius: 16px;
  background: var(--m-sc-low);
  overflow: visible;
}

html.d2 #doc .altblk::before {
  content: 'TWO VERSIONS';
  position: absolute;
  left: 18px;
  top: 18px;
  font: 600 12px/1.2 var(--f-body);
  letter-spacing: .08em;
  color: var(--m-on-surface-variant);
  pointer-events: none;
}

html.d2 #doc .altblk .altrack {
  display: block;
  position: static;
  transform: none!important;
}

html.d2 #doc .altblk[data-cur=a] .alt.a,
html.d2 #doc .altblk[data-cur=b] .alt.b {
  opacity: 1;
  max-height: none;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
  flex: none;
  margin: 0;
  padding: 0;
  background: none;
  font-size: 1em;
}

/* the other version: the whole paragraph is laid out at the same width as the one you write in, but only the first words of each line show, faded, at the right edge of the card (the card cuts off the rest); clicking it switches; an empty B shows nothing */
html.d2 #doc .altblk {
  --gut: 44px;
  overflow-x: clip;
}

html.d2 #doc .altblk[data-cur=a] .alt.a {
  margin-right: calc(var(--gut) - 2px);
  min-height: 3.3em;
}

html.d2 #doc .altblk[data-cur=b] .alt.b {
  margin-left: calc(var(--gut) - 2px);
  min-height: 3.3em;
}

html.d2 #doc .altblk[data-cur=a] .alt.b {
  display: block;
  position: absolute;
  left: calc(100% - var(--gut));
  top: 44px;
  bottom: 12px;
  box-sizing: content-box;
  width: calc(100% - var(--gut) - 34px);
  max-height: none;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 1px solid var(--m-outline-variant);
  font-size: 1em;
  color: var(--m-on-surface);
  opacity: .5;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg,#000 calc(var(--gut) * .4),transparent var(--gut)),linear-gradient(180deg,#000 70%,transparent);
  mask-image: linear-gradient(90deg,#000 calc(var(--gut) * .4),transparent var(--gut)),linear-gradient(180deg,#000 70%,transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  transition: opacity .15s;
}

/* A is on the left, B on the right: with B in front, A waits on the left edge (first words of each line, faded, cut off at the divider); with A in front, B waits on the right */
html.d2 #doc .altblk[data-cur=b] .alt.a {
  display: block;
  position: absolute;
  left: 18px;
  top: 44px;
  bottom: 12px;
  box-sizing: content-box;
  width: calc(100% - var(--gut) - 34px);
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1em;
  color: var(--m-on-surface);
  opacity: .5;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  clip-path: inset(0 calc(100% - var(--gut) + 24px) 0 0);
  -webkit-mask-image: linear-gradient(90deg,#000 calc((var(--gut) - 24px) * .45),transparent calc(var(--gut) - 24px)),linear-gradient(180deg,#000 70%,transparent);
  mask-image: linear-gradient(90deg,#000 calc((var(--gut) - 24px) * .45),transparent calc(var(--gut) - 24px)),linear-gradient(180deg,#000 70%,transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  transition: opacity .15s;
}

/* B empty and in front: the Delete alternative button sits under the text on the left, so the hint and its divider stop above it */
html.d2 #doc .altblk[data-cur=b]:has(.alt.b[data-empty]) .alt.a {
  bottom: calc(12px + var(--delh,44px));
}

html.d2 #doc .altblk[data-cur=b]:has(.alt.b[data-empty])::after {
  bottom: calc(12px + var(--delh,44px));
}

html.d2 #doc .altblk[data-cur=b]::after {
  content: '';
  position: absolute;
  left: var(--gut);
  top: 44px;
  bottom: 12px;
  width: 1px;
  background: var(--m-outline-variant);
  pointer-events: none;
}

html.d2 #doc .altblk[data-cur=a] .alt.b[data-empty] {
  display: none;
}

@media (hover:hover) {
  html.d2 #doc .altblk[data-cur=a] .alt.b:hover,
  html.d2 #doc .altblk[data-cur=b] .alt.a:hover {
    opacity: .75;
  }
}

@media (max-width:560px) {
  html.d2 #doc .altblk {
    --gut: 42px;
  }
}

html.d2 #doc .altblk .altsw,
html.d2 #doc .altblk[data-cur=a] .altsw,
html.d2 #doc .altblk[data-cur=b] .altsw {
  position: absolute;
  left: auto;
  right: 14px;
  top: 10px;
  margin: 0;
  width: 90px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--m-outline);
  border-color: var(--edge-side) var(--edge-side) transparent var(--edge-side);
  border-radius: 16px;
  background: transparent;
  box-shadow: inset 0 1px 0 var(--edge-top),0 1px 2px var(--edge-shade);
  font-size: 0;
  color: var(--m-on-surface);
  overflow: hidden;
}

html.d2 #doc .altblk .altsw::before,
html.d2 #doc .altblk .altsw::after {
  position: absolute;
  display: grid;
  place-items: center;
  width: 50%;
  font: 600 13px/1 var(--f-body);
  inset: 0 auto;
  padding: 0;
  border-radius: 0;
  -webkit-mask: none;
  mask: none;
  background: transparent;
  opacity: 1;
  animation: none;
}

html.d2 #doc .altblk .altsw::before {
  content: 'A';
  left: 0;
}

html.d2 #doc .altblk .altsw::after {
  content: 'B';
  right: 0;
  border-left: 1px solid light-dark(var(--m-outline-variant),rgba(255,255,255,.12));
}

html.d2 #doc .altblk[data-cur=a] .altsw::before,
html.d2 #doc .altblk[data-cur=b] .altsw::after {
  background: var(--m-secondary-container);
  color: var(--m-on-secondary-container);
}

/* floating bar over a selection: dark tonal pill */
html.d2 #selbar {
  border-radius: 16px;
  padding: 6px;
  background: var(--m-inverse,var(--glassd));
}

html.d2 #selbar button {
  border-radius: 12px;
}

/* prompter: the chapter menu took the old dark colours' light text onto a light menu background in the Light theme (invisible text) */
html.d2 dialog.prm .prsel {
  background-color: var(--m-sc-lowest);
  color: var(--m-on-surface);
  border-color: var(--m-outline);
}

html.d2 dialog.prm {
  border-radius: 0;
  border: 0;
}

/* publish guide: the link button (Open YouTube Studio ...) was display:inline-block from the old look, so its text sat at the top of the tall button */
html.d2 #pg a.btn {
  display: inline-flex;
}

/* A/B switch, 2.0 look: the highlight slides from A to B (it used to jump), and the letters change colour with it.
   The text and the box height are animated in script (altAnim in the page script). */

html.d2 #doc .altblk[data-cur=a] .altsw,
html.d2 #doc .altblk[data-cur=b] .altsw {
  background: linear-gradient(var(--m-secondary-container),var(--m-secondary-container)) 0 0/50% 100% no-repeat var(--edge-fill);
  background-origin: border-box;
  transition: background-position .26s cubic-bezier(.2,.8,.2,1),box-shadow .18s,background-color .18s;
}

html.d2 #doc .altblk[data-cur=b] .altsw {
  background-position: 100% 0;
}

html.d2 #doc .altblk[data-cur=a] .altsw::before,
html.d2 #doc .altblk[data-cur=b] .altsw::after {
  background: transparent;
}

html.d2 #doc .altblk .altsw::before,
html.d2 #doc .altblk .altsw::after {
  transition: color .26s cubic-bezier(.2,.8,.2,1);
}

/* glass: pointer hover lifts the pill a little, a press sinks it (same recipe as the other buttons) */
@media (hover:hover) {
  html.d2 #doc .altblk .altsw:hover {
    box-shadow: inset 0 1px 0 var(--edge-top-hi),0 1px 2px var(--edge-shade),0 6px 14px -6px var(--edge-lift-c);
  }
}

html.d2 #doc .altblk .altsw:active {
  box-shadow: inset 0 2px 5px var(--press-in),inset 0 -1px 0 var(--press-flip);
}

@media (prefers-reduced-motion:reduce) {
  html.d2 #doc .altblk .altsw,
  html.d2 #doc .altblk .altsw::before,
  html.d2 #doc .altblk .altsw::after {
    transition: none!important;
  }
}

/* ---------- glass edge: a light line along the top of a button, nothing along the bottom ----------
   Filled buttons get a thin light rim inside the top edge and a faint sheen.
   Outlined buttons keep a faint 1px border at the top and sides (none at the bottom) and a light line just inside the top edge that thins out round the corners.
   Change the three tokens to tune it (light and dark are set apart with light-dark()). */

html.d2 {
  --edge-top: light-dark(rgba(255,255,255,.95),rgba(255,255,255,.46));
  --edge-side: light-dark(rgba(255,255,255,.55),rgba(255,255,255,.08));
  --edge-fill: light-dark(rgba(255,255,255,.85),rgba(255,255,255,.035));
  --edge-shade: light-dark(rgba(20,27,58,.17),rgba(0,0,0,0));
  --edge-rim: light-dark(rgba(255,255,255,.85),rgba(255,255,255,.22));
  /* hover (pointer): the line gets brighter, the button gets lighter and floats a little */
  --edge-top-hi: light-dark(#fff,rgba(255,255,255,.7));
  --edge-rim-hi: light-dark(#fff,rgba(255,255,255,.36));
  --edge-hover-fill: light-dark(color-mix(in srgb,var(--m-primary) 6%,#fff),color-mix(in srgb,var(--m-on-surface) 10%,rgba(255,255,255,.035)));
  --edge-lift-c: light-dark(rgba(20,27,58,.30),rgba(0,0,0,.7));
  /* pressed: the button sinks, a dark shade appears under the top edge and the light line moves to the bottom */
  --edge-press-fill: light-dark(color-mix(in srgb,var(--m-on-surface) 9%,#fff),color-mix(in srgb,var(--m-on-surface) 5%,rgba(0,0,0,.18)));
  --press-in: light-dark(rgba(20,27,58,.22),rgba(0,0,0,.5));
  --press-flip: light-dark(rgba(255,255,255,.95),rgba(255,255,255,.16));
}

/* filled: light line inside the top edge plus a soft sheen below it (shadows only, so the button's own colour is never touched) */
html.d2 .btn:not(:disabled),
html.d2 .wtop .si.now {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55),inset 0 14px 14px -12px rgba(255,255,255,.2),var(--lift);
}

@media (hover:hover) {
  html.d2 .btn:hover:not(:disabled) {
    translate: 0 -1px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85),inset 0 16px 16px -12px rgba(255,255,255,.3),0 2px 4px rgba(0,0,0,.2),0 10px 22px rgba(40,40,120,.3);
  }
  html.d2 .wtop .si.now:hover {
    filter: brightness(1.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85),inset 0 16px 16px -12px rgba(255,255,255,.3),var(--lift);
  }
}

html.d2 .btn:active:not(:disabled),
html.d2 .wtop .si.now:active {
  translate: 0 0;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.3),inset 0 -1px 0 rgba(255,255,255,.3),0 1px 2px rgba(0,0,0,.2);
}

/* tonal */
html.d2 .btn2,
html.d2 .wtop .si.done,
html.d2 #next .vid,
html.d2 .tkchip[aria-pressed=true],
html.d2 .tkchip.on,
html.d2 .tkimp[aria-pressed=true] {
  box-shadow: inset 0 1px 0 var(--edge-rim);
}

html.d2 .btn2:hover,
html.d2 #next .vid:hover,
html.d2 .wtop .si.done:hover,
html.d2 .tkchip[aria-pressed=true]:hover,
html.d2 .tkchip.on:hover,
html.d2 .tkimp[aria-pressed=true]:hover {
  box-shadow: inset 0 1px 0 var(--edge-rim-hi),inset 0 0 0 99px color-mix(in srgb,var(--m-on-secondary-container) 8%,transparent),0 5px 12px -6px var(--edge-lift-c);
}

html.d2 .btn2:active:not(:disabled),
html.d2 #next .vid:active:not(:disabled),
html.d2 .wtop .si.done:active,
html.d2 .tkchip[aria-pressed=true]:active,
html.d2 .tkchip.on:active,
html.d2 .tkimp[aria-pressed=true]:active {
  scale: .97;
  box-shadow: inset 0 2px 6px var(--press-in),inset 0 -1px 0 var(--press-flip),inset 0 0 0 99px color-mix(in srgb,var(--m-on-secondary-container) 12%,transparent);
}

/* outlined (icon buttons keep the fill they have; only their border changes) */
html.d2 :is(.ghost,.ql,.seg,button.ib:not(.btn),.wtop .si:not(.now):not(.done),.wtr .ghost[data-act=tobi],.wtr .ib.del,.tkchip:not([aria-pressed=true]):not(.on),.tkimp:not([aria-pressed=true])):not(#_):not(.qlplus):not(:disabled) {
  border-color: var(--edge-side) var(--edge-side) transparent var(--edge-side);
  box-shadow: inset 0 1px 0 var(--edge-top),0 1px 2px var(--edge-shade);
}

html.d2 :is(.ghost:not(.ib),.ql,.seg,.wtop .si:not(.now):not(.done),.wtr .ghost[data-act=tobi],.wtr .ib.del,.tkchip:not([aria-pressed=true]):not(.on),.tkimp:not([aria-pressed=true])):not(#_):not(.qlplus):not(:disabled) {
  background-color: var(--edge-fill);
}

@media (hover:hover) {
  html.d2 :is(.ghost:not(.ib),.ql,.wtop .si:not(.now):not(.done),.wtr .ghost[data-act=tobi],.wtr .ib.del,.tkchip:not([aria-pressed=true]):not(.on),.tkimp:not([aria-pressed=true])):not(#_):not(.qlplus):hover:not(:disabled) {
    background-color: var(--edge-hover-fill);
    box-shadow: inset 0 1px 0 var(--edge-top-hi),0 1px 2px var(--edge-shade),0 6px 14px -6px var(--edge-lift-c);
  }
  html.d2 .wtr .ib.del:not(#_):not(#_):hover:not(:disabled) {
    background-color: color-mix(in srgb,var(--m-error) 12%,var(--edge-hover-fill));
  }
  html.d2 button.ib:not(.btn):not(.del):not([data-act=topick]):not(#_):not(#_):hover:not(:disabled) {
    box-shadow: inset 0 1px 0 var(--edge-top-hi),0 1px 2px var(--edge-shade),0 6px 14px -6px var(--edge-lift-c);
  }
  html.d2 #setb:hover {
    background: var(--edge-hover-fill);
    box-shadow: inset 0 1px 0 var(--edge-top-hi),0 1px 2px var(--edge-shade),0 6px 14px -6px var(--edge-lift-c);
  }
  html.d2 .wtop>button.ib[data-act=topick]:not(#_):not(#_):hover {
    box-shadow: inset 0 1px 0 var(--edge-rim-hi),inset 0 0 0 99px color-mix(in srgb,var(--m-on-secondary-container) 8%,transparent),0 5px 12px -6px var(--edge-lift-c);
  }
}

html.d2 :is(.ghost:not(.ib),.ql,.wtop .si:not(.now):not(.done),.wtr .ghost[data-act=tobi],.wtr .ib.del,.tkchip:not([aria-pressed=true]):not(.on),.tkimp:not([aria-pressed=true])):not(#_):not(.qlplus):active:not(:disabled) {
  background-color: var(--edge-press-fill);
  box-shadow: inset 0 2px 5px var(--press-in),inset 0 -1px 0 var(--press-flip);
}

html.d2 #setb:active {
  background: var(--edge-press-fill);
  box-shadow: inset 0 2px 5px var(--press-in),inset 0 -1px 0 var(--press-flip);
  scale: .97;
}

html.d2 :is(.ql,.wtr .ghost[data-act=tobi]):not(#_):not(.qlplus):active:not(:disabled) {
  scale: .97;
}

html.d2 .wtop .si:not(.now):not(.done):not(#_):active {
  scale: .985;
}

html.d2 button.ib:not(.btn):not(.del):not([data-act=topick]):not(#_):not(#_):active:not(:disabled) {
  box-shadow: inset 0 2px 5px var(--press-in),inset 0 -1px 0 var(--press-flip);
}

html.d2 .wtop>button.ib[data-act=topick]:not(#_):not(#_):active:not(:disabled) {
  box-shadow: inset 0 2px 6px var(--press-in),inset 0 -1px 0 var(--press-flip),inset 0 0 0 99px color-mix(in srgb,var(--m-on-secondary-container) 12%,transparent);
}

html.d2 :is(.tkchip,.tkimp) {
  transition: background-color .18s,border-color .18s,box-shadow .18s,color .18s,scale .12s;
}

html.d2 .wtop .si {
  transition: background .2s,border-color .2s,box-shadow .2s,filter .2s,scale .12s;
}

html.d2 #setb {
  border-color: var(--edge-side) var(--edge-side) transparent var(--edge-side)!important;
  background: var(--edge-fill);
  box-shadow: inset 0 1px 0 var(--edge-top),0 1px 2px var(--edge-shade);
}

html.d2 .seg button+button {
  border-left-color: light-dark(var(--m-outline-variant),rgba(255,255,255,.12));
}

/* ---------- genre colour: a soft glow that fades out from the left edge (instead of a coloured stripe) ----------
   --gc-peak is how strong the colour is at the left edge (dark; --gc-peak-l in Light), --gc-reach how far across the card it reaches.
   The colour is a free choice (any colour picker value), so the strength is also capped by the colour's own brightness: a very dark colour in Light
   or a very bright one in dark would otherwise push the card's background too close to the text colour. --gc-cap-l / --gc-cap-d are those caps
   (Light: how much darker the card may get at the edge; dark: a limit on the colour's linear brightness, softened by --gc-exp). Normal colours stay at full strength; only extremes get fainter. */

html.d2 {
  --gc-peak: .32;
  --gc-peak-l: .24;
  --gc-reach: 40%;
  --gc-cap-l: .14;
  --gc-cap-d: .102;
  --gc-exp: .55;
}

html.d2 [data-gglow] {
  --gcsrc: var(--gc);
}

html.d2 .cc.ss {
  --gcsrc: var(--sc);
}

html.d2 button.vid {
  --gcsrc: var(--vc,var(--m-primary));
}

html.d2 :is([data-gglow],.cc.ss,button.vid) {
  --gcf: light-dark(color-mix(in srgb,var(--gcsrc) calc(var(--gc-peak-l)*100%),transparent),color-mix(in srgb,var(--gcsrc) calc(var(--gc-peak)*100%),transparent));
}

@supports (color:rgb(from red r g b / alpha)) {
  html.d2 :is([data-gglow],.cc.ss,button.vid) {
    --gcf: light-dark( rgb(from var(--gcsrc) r g b / calc(alpha * min(var(--gc-peak-l), var(--gc-cap-l) / max(1 - (.2126*r + .7152*g + .0722*b) / 255, .02)))), rgb(from var(--gcsrc) r g b / calc(alpha * min(var(--gc-peak), var(--gc-cap-d) / pow(max(.2126*pow(r / 255, 2.2) + .7152*pow(g / 255, 2.2) + .0722*pow(b / 255, 2.2), .01), var(--gc-exp))))));
  }
}

html.d2 [data-gglow] {
  border-left-width: 1px!important;
  border-left-color: var(--gbc,var(--m-outline-variant))!important;
  background-origin: border-box;
  background-image: linear-gradient(90deg,var(--gcf),transparent var(--gc-reach))!important;
}

/* stream cards had a bar made of the platform colours; the dots under the title say the same, so the bar goes */
html.d2 .cc.ss::before {
  display: none;
}

html.d2 .cc.ss {
  padding-left: 8px;
  background-image: linear-gradient(90deg,var(--gcf),transparent var(--gc-reach));
}

html.d2 .cc.k[data-gglow],
html.d2 .cc.open[data-gglow] {
  --gbc: var(--m-outline);
}

html.d2 .cc.dl[data-gglow],
html.d2 .cc.open[data-gglow] {
  border-left-style: dashed!important;
}

html.d2 .cc.dl.late[data-gglow] {
  --gbc: var(--m-error);
}

@media (forced-colors:active) {
  html.d2 :is(.ghost,.ql,.seg,button.ib,#setb,.wtop .si) {
    border-color: ButtonText!important;
  }
}

/* ---------- words typed today, daily goal bar, ADHD mode ---------- */

/* the chip next to the word count in the top bar (same glass edge as the other small buttons) */
html.d2 .wst {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  flex: 1 1 0;
  min-width: 0;
}

html.d2 .wst #wc {
  flex: none;
  margin: 0;
  max-width: 100%;
}

html.d2 #wtd {
  display: inline-flex;
  align-items: center;
  flex: none;
  margin: 0;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--m-outline);
  border-color: var(--edge-side) var(--edge-side) transparent var(--edge-side);
  border-radius: 13px;
  background: var(--edge-fill);
  box-shadow: inset 0 1px 0 var(--edge-top),0 1px 2px var(--edge-shade);
  color: var(--m-on-surface-variant);
  font: 500 12.5px/1 var(--f-body);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s,box-shadow .18s;
}

html.d2 #wtd .wtn {
  margin-left: 4px;
  font-weight: 600;
  color: var(--m-on-surface);
}

@media (hover:hover) {
  html.d2 #wtd:hover {
    background: var(--edge-hover-fill);
    box-shadow: inset 0 1px 0 var(--edge-top-hi),0 1px 2px var(--edge-shade),0 6px 14px -6px var(--edge-lift-c);
  }
}

html.d2 #wtd:active {
  background: var(--edge-press-fill);
  box-shadow: inset 0 2px 5px var(--press-in),inset 0 -1px 0 var(--press-flip);
}

html.d2 #wtd:focus-visible,
html.d2 #wsb #wtd2:focus-visible {
  outline: 2px solid var(--m-primary);
  outline-offset: 2px;
}

/* the same count in the phone bar at the bottom */
html.d2 #wsb #wtd2 {
  display: inline-flex;
  min-width: 0;
  padding: 0 8px;
  color: var(--m-on-surface-variant);
  font: 500 13px/1 var(--f-body);
}

html.d2 #wsb #wtd2 .wtn {
  margin-left: 4px;
  font-weight: 600;
  color: var(--m-on-surface);
}

@media (max-width:400px) {
  html.d2 #wsb #wtd2 .wtl {
    display: none;
  }
  html.d2 #wsb #wtd2 .wtn {
    margin-left: 0;
  }
}

@media (max-width:820px) {
  html.d2 #wtd,
  html.d2 .wst {
    display: none;
  }
}

/* the goal bar: a thin line along the bottom edge of the top bar */
html.d2 #wgb:not([hidden]) {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 2;
  pointer-events: none;
  background: color-mix(in srgb,var(--m-on-surface) 8%,transparent);
}

html.d2 #wgb::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--wg,0%);
  border-radius: 0 3px 3px 0;
  background: var(--m-primary);
  transition: width .5s cubic-bezier(.22,.75,.22,1);
}

html.d2 #wgb.wgpop::before {
  animation: wgpop .9s ease-out;
}

@keyframes wgpop {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb,var(--m-primary) 70%,transparent);
  }
  40% {
    box-shadow: 0 0 16px 4px color-mix(in srgb,var(--m-primary) 70%,transparent);
    filter: brightness(1.25);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@media (prefers-reduced-motion:reduce) {
  html.d2 #wgb::before {
    transition: none;
  }
  html.d2 #wgb.wgpop::before {
    animation: none;
  }
}

/* ADHD mode: the shake is done in script (the text box moves 2 to 4 px for about a tenth of a second); the dark edges are #advig, see the page script */
html.d2 #adsub .srow {
  margin-left: 0;
}

/* room under the last line while the on-screen keyboard covers part of the script box (set from script, see caretKeep) */
html.d2 #wv #doc {
  --pb: 90px;
  padding-bottom: calc(var(--pb) + var(--kb,0px));
}

@media (max-width:820px) {
  html.d2 #wv #doc {
    --pb: 80px;
  }
}

/* Summary-card loading bar on the banner chips of the Today card. The plain rule (.hvx::after in base.html) draws the bar with ::after, but in the 2.0 look the chip already uses ::before
   (calendar icon) and ::after (the "Open video" label), so after the first hover the label turned into a stuck 3 px stub. Here the label stays as it is and the bar is a background strip. */

html.d2 .tchips .tchip.hvx::after,
html.d2 .tchips .tchip.hvx:hover::after {
  position: static;
  left: auto;
  bottom: auto;
  width: auto;
  height: auto;
  background: none;
  animation: none;
  border-radius: 0;
  pointer-events: auto;
}

html.d2 .tchips .tchip.hvx {
  background-image: linear-gradient(var(--acc),var(--acc));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 3px;
}

html.d2 .tchips button.tchip.hvx:hover {
  background-image: linear-gradient(var(--acc),var(--acc));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 3px;
  animation: hvfillbg .5s cubic-bezier(.76,0,.24,1) forwards;
}

@keyframes hvfillbg {
  to {
    background-size: 100% 3px;
  }
}

@media (prefers-reduced-motion:reduce) {
  html.d2 .tchips button.tchip.hvx:hover {
    animation: none;
    background-size: 100% 3px;
  }
}

/* =====================================================================
   Studiotaku 2.0, part F: phones (Phone board of the mockup).
   Top app bar with brand, search and settings; a bottom menu with
   60 x 32 pill indicators; the hero keeps its thumbnail on top.
   ===================================================================== */

@media (max-width:820px) {
  html.d2 body {
    padding-top: 64px;
    padding-bottom: calc(88px + env(safe-area-inset-bottom,0px));
  }
  html.d2 main {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  html.d2 main>* {
    min-width: 0;
    max-width: 100%;
  }
  html.d2 .cols {
    order: 1;
  }
  html.d2 .qlrow {
    order: 2;
  }
  html.d2 .rail2,
  html.d2 .top {
    display: contents;
  }
  html.d2 .brand {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    height: 64px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 16px;
    align-items: center;
  }
  html.d2 .brand::after {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 64px;
    z-index: -1;
    pointer-events: none;
    background: var(--m-nav);
    -webkit-backdrop-filter: blur(28px) saturate(1.5);
    backdrop-filter: blur(28px) saturate(1.5);
    border-bottom: 1px solid var(--m-outline-variant);
  }
  html.d2 .brand .ver {
    left: 58px;
    top: calc(100% - 14px);
  }
  html.d2 .tb2 {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 31;
    height: 64px;
    box-sizing: border-box;
    padding: 0 8px;
    gap: 2px;
    flex-wrap: nowrap;
    align-items: center;
    width: auto;
  }
  html.d2 .tbsp,
  html.d2 #next {
    display: none;
  }
  html.d2 .gsb {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--m-on-surface);
  }
  html.d2 #setb {
    width: 44px;
    height: 44px;
    border: 0!important;
    background: transparent;
  }
  html.d2 .gsearch {
    display: none;
  }
  html.d2.gso .gsearch {
    display: flex;
    position: fixed;
    left: 10px;
    right: 10px;
    top: 10px;
    max-width: none;
    width: auto;
    height: 44px;
    z-index: 60;
    background: var(--sf);
    border-color: var(--m-outline);
  }
  html.d2.gso .gsb {
    visibility: hidden;
  }
  html.d2.gso #gres {
    max-height: calc(100dvh - 140px);
  }
  html.d2 .cols {
    padding: 16px 16px 24px;
    display: block;
  }
  html.d2 .cols>*+* {
    margin-top: 16px;
  }
  /* the base rule html.d2 #rail{margin:0} (an ID) beats .cols>*+*, so the gap has to be set on the ID too */
  html.d2 #rail {
    position: static;
    max-height: none;
    overflow: visible;
    margin-top: 32px;
  }
  /* bottom menu */
  html.d2 .nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-around;
    gap: 0;
    box-sizing: border-box;
    height: calc(80px + env(safe-area-inset-bottom,0px));
    padding: 12px 4px env(safe-area-inset-bottom,0px);
    background: var(--m-nav);
    -webkit-backdrop-filter: blur(28px) saturate(1.5);
    backdrop-filter: blur(28px) saturate(1.5);
    border-top: 1px solid var(--m-outline-variant);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  html.d2 .nav::-webkit-scrollbar {
    display: none;
  }
  html.d2 .nav[data-th]::before {
    display: none;
  }
  html.d2 .nav .navsep {
    display: none;
  }
  html.d2 .nav button {
    flex: 1 0 64px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: none!important;
    color: var(--m-on-surface-variant);
    font: 500 12px/1 var(--f-body);
    text-align: center;
  }
  html.d2 .nav button .ni {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    margin-top: 4px;
  }
  html.d2 .nav button[aria-pressed=true] {
    color: var(--m-on-surface);
    font-weight: 600;
  }
  html.d2 .nav button[aria-pressed=true]::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 60px;
    height: 32px;
    margin-left: -30px;
    border-radius: 16px;
    background: var(--m-secondary-container);
  }
  html.d2 .nav button[aria-pressed=true] .ni {
    color: var(--m-on-secondary-container);
  }
  html.d2 .qlrow {
    margin: 0;
    padding: 0 16px 16px;
  }
  html.d2 .qlrow:not([hidden])::before {
    padding: 0 4px 2px;
  }
  /* Home */
  html.d2 #home .hgrid>div {
    gap: 16px;
  }
  html.d2 .hhero {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  html.d2 .hhero .hth {
    flex: none;
    margin: 12px 12px 0;
    min-height: 0;
    aspect-ratio: 16/9;
  }
  html.d2 .hhero .hbd {
    flex: none;
    width: 100%;
    padding: 16px 20px 20px;
    gap: 10px;
  }
  html.d2 .hhero h2 {
    font-size: 22px!important;
    line-height: 1.25!important;
  }
  html.d2 .hbtns {
    width: 100%;
    flex-wrap: nowrap;
  }
  html.d2 .hbtns .btn,
  html.d2 .hbtns .btn2 {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 12px;
  }
  html.d2 .htoday {
    background: none!important;
    border: 0;
    box-shadow: none;
    padding: 4px 0 0!important;
    backdrop-filter: none;
  }
  html.d2 .htoday>h2 {
    font-size: 20px!important;
  }
  html.d2 #home .cards {
    grid-template-columns: minmax(0,1fr);
  }
  html.d2 .tkseg {
    margin-left: 0;
  }
  html.d2 .tkh2 .tkmore {
    margin-left: auto;
  }
  /* video page */
  html.d2 #work {
    padding: 16px;
    border-radius: 24px;
  }
  html.d2 .wtop .stp {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  html.d2 .wtop .stp .si:nth-child(5) {
    grid-column: 1/-1;
  }
  html.d2 .ttl {
    font-size: 26px;
  }
  html.d2 .meta>label {
    flex: 1 1 140px;
    max-width: none;
  }
  html.d2 .wgrid {
    grid-template-columns: minmax(0,1fr);
  }
  /* writing view */
  html.d2 .wbar {
    padding: 10px 14px;
    min-height: 64px;
  }
  html.d2 #wc {
    display: none;
  }
  html.d2 .wtools {
    order: 5;
    flex: 1 1 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  html.d2 #doc {
    padding: 24px 18px 80px;
    font-size: 17px;
  }
  html.d2 #doc h1 {
    font-size: 30px;
  }
  html.d2 #doc h2 {
    font-size: 21px;
  }
  /* pages */
  html.d2 #pick,
  html.d2 #tasks {
    padding: 16px;
    border-radius: 24px;
  }
  html.d2 .tkadd {
    gap: 6px 8px;
  }
  html.d2 .tkchips {
    display: flex;
    gap: 6px;
  }
  html.d2 .tkchip {
    padding: 0 11px;
  }
  html.d2 .tkadd .tkaddb {
    height: 36px;
  }
  html.d2 #ideas.card,
  html.d2 #vids.card,
  html.d2 #series.card {
    padding: 16px;
  }
  html.d2 dialog:not(.full):not(.prm) {
    padding: 18px 16px;
    border-radius: 24px;
  }
  html.d2 #toast {
    bottom: calc(96px + env(safe-area-inset-bottom,0px));
  }
}

@media (max-width:420px) {
  html.d2 .cols {
    padding: 12px 12px 24px;
  }
  html.d2 .hhero .hth {
    margin: 10px 10px 0;
  }
}

/* ---------- Shows page (Design 2.0) ---------- */

/* An element with the hidden attribute must stay hidden. The 2.0 button styles set display, which beat the browser's own rule, so these showed up although the app had hidden them:
   the menu entry "Shows" (it only exists while there is at least one show), and in Settings "Fill with example data", "Clear example data", "Import" and "Disconnect" for Twitch. */

html.d2 [hidden] {
  display: none!important;
}

/* ---- the page is a card, like Calendar, Tasks and Videos ---- */
html.d2 #series {
  background: var(--m-sc-lowest);
  border: 1px solid var(--m-outline-variant);
  border-radius: 28px;
  box-shadow: var(--m-shadow);
  padding: 24px;
  min-width: 0;
}

html.d2 #series:empty {
  display: none;
}

html.d2 #series>h2 {
  margin: 0 0 16px;
}

html.d2 #series .ssq {
  display: block;
  width: 100%;
  max-width: 440px;
  height: 44px;
  box-sizing: border-box;
  margin: 0 0 22px;
  padding: 0 14px 0 44px;
  border: 1px solid var(--m-outline-variant);
  border-radius: 14px;
  color: var(--m-on-surface);
  font: 400 15px/1.2 var(--f-body);
  background: var(--m-sc-low) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237A82A8' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E") no-repeat 14px center;
  transition: border-color .15s,box-shadow .15s;
}

html.d2 #series .ssq::placeholder {
  color: var(--m-on-surface-variant);
  opacity: .8;
}

html.d2 #series .ssq:hover {
  border-color: var(--m-outline);
}

html.d2 #series .ssq:focus {
  outline: none;
  border-color: var(--m-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--m-primary) 22%,transparent);
}

/* ---- header of an opened show: back, cover, name + counts, delete ---- */
html.d2 #series .srh {
  display: grid;
  grid-template-columns: auto auto minmax(0,1fr) auto;
  grid-template-areas: "back cover name actions" "back cover meta actions";
  align-items: center;
  column-gap: 16px;
  row-gap: 2px;
  margin: 0 0 22px;
}

html.d2 #series .srh>[data-sv] {
  grid-area: back;
}

html.d2 #series .srh>.scov {
  grid-area: cover;
}

html.d2 #series .srh>.sname {
  grid-area: name;
  align-self: end;
}

html.d2 #series .srh>.mute {
  grid-area: meta;
  align-self: start;
  font: 400 14px/1.4 var(--f-body);
  color: var(--m-on-surface-variant);
}

html.d2 #series .srh>[data-act=sdel] {
  grid-area: actions;
  margin: 0!important;
}

html.d2 #series .srh .sname {
  font: 700 30px/1.2 var(--f-head);
  padding: 2px 0 6px;
  margin: 0;
  max-width: none;
  width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
}

html.d2 #series .srh>button.ib {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color .15s,box-shadow .15s,scale .12s;
}

html.d2 #series .srh>button.ib svg {
  width: 20px;
  height: 20px;
}

html.d2 #series .srh>button.ib:active {
  scale: .93;
}

html.d2 #series .srh>button.ib[data-sv] {
  border: 0;
  background: var(--m-secondary-container);
  color: var(--m-on-secondary-container);
}

html.d2 #series .srh>button.ib[data-sv]:hover {
  box-shadow: inset 0 0 0 99px color-mix(in srgb,var(--m-on-secondary-container) 8%,transparent);
}

html.d2 #series .srh>button.ib.del {
  border: 1px solid var(--m-outline);
  background: transparent;
  color: var(--m-error)!important;
}

html.d2 #series .srh>button.ib.del:hover {
  background: color-mix(in srgb,var(--m-error) 10%,transparent);
}

html.d2 #series .srh>button.ib.del.armed {
  width: auto;
  padding: 0 18px 0 14px;
  display: inline-flex;
  gap: 8px;
  border-radius: 22px;
  border-color: var(--m-error);
  background: var(--m-error-container);
  color: var(--m-on-error-container)!important;
  font: 600 14px/1.2 var(--f-body);
  animation: shpop .22s cubic-bezier(.2,.8,.2,1);
}

@keyframes shpop {
  from {
    transform: scale(.92);
  }
  to {
    transform: none;
  }
}

/* the cover of the show: a visible "Add image" box, or the image with Change / Remove on hover */
html.d2 #series .scov {
  position: relative;
  width: 128px;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px dashed var(--m-outline);
  background: transparent;
  transition: border-color .2s,background-color .2s;
}

html.d2 #series .scov.own {
  border: 1px solid var(--m-outline-variant);
  background: var(--m-sc-high);
}

html.d2 #series .scov img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

html.d2 #series .scov.own:hover img {
  transform: scale(1.05);
}

html.d2 #series .scovb {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--m-primary);
  font: 600 12px/1.2 var(--f-body);
  cursor: pointer;
  transition: background-color .15s,opacity .18s;
}

html.d2 #series .scov:not(.own):hover {
  border-color: var(--m-primary);
  background: color-mix(in srgb,var(--m-primary) 6%,transparent);
}

html.d2 #series .scov.own .scovb {
  color: #fff;
  background: rgba(8,10,22,.5);
  opacity: 0;
}

html.d2 #series .scov.own:hover .scovb,
html.d2 #series .scovb:focus-visible {
  opacity: 1;
}

html.d2 #series .scovb:focus-visible {
  outline: 2px solid var(--m-primary);
  outline-offset: -3px;
}

html.d2 #series .scovx {
  position: absolute;
  right: 6px;
  top: 6px;
  z-index: 2;
  width: 28px;
  height: 28px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(8,10,22,.62);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity .18s,background-color .15s,scale .12s;
}

html.d2 #series .scov:hover .scovx,
html.d2 #series .scovx:focus-visible {
  opacity: 1;
}

html.d2 #series .scovx:hover {
  background: var(--m-error);
}

html.d2 #series .scovx:active {
  scale: .9;
}

@media (hover:none) {
  html.d2 #series .scov.own .scovb {
    opacity: 1;
    justify-content: flex-end;
    padding-bottom: 6px;
    background: linear-gradient(transparent 40%,rgba(8,10,22,.62));
  }
  html.d2 #series .scovx {
    opacity: 1;
  }
}

/* ---- the cards ---- */
html.d2 #series .sgrid {
  grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
  gap: 18px;
}

html.d2 #series .scard {
  min-width: 0;
  border: 1px solid var(--m-outline-variant);
  border-radius: 20px;
  background: var(--m-sc-low);
  box-shadow: var(--m-shadow);
  overflow: hidden;
  color: var(--m-on-surface);
  transition: translate .22s cubic-bezier(.2,.8,.2,1),scale .12s ease-out,box-shadow .22s,border-color .2s,background-color .2s;
}

@media (hover:hover) {
  html.d2 #series .scard:hover {
    translate: 0 -3px;
    border-color: color-mix(in srgb,var(--m-primary) 50%,var(--m-outline-variant));
    box-shadow: 0 16px 30px -16px color-mix(in srgb,var(--m-primary) 55%,transparent),var(--m-shadow);
  }
}

html.d2 #series .scard:active {
  translate: 0 0;
  scale: .985;
}

html.d2 #series .scard:focus-visible {
  outline: 2px solid var(--m-primary);
  outline-offset: 2px;
}

html.d2 #series .sct {
  border-radius: 0;
  border-bottom: 1px solid var(--m-outline-variant);
  background: var(--m-sc-high);
  aspect-ratio: 16/9;
  overflow: hidden;
  color: var(--m-on-surface-variant);
}

html.d2 #series .sct img {
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}

@media (hover:hover) {
  html.d2 #series .scard:hover .sct img {
    transform: scale(1.05);
  }
}

html.d2 #series .sct.gen {
  background: linear-gradient(135deg,hsl(var(--h) 62% 44%),hsl(calc(var(--h) + 50) 62% 27%));
  color: #fff;
}

html.d2 #series .sct.gen b {
  font: 800 58px/1 var(--f-head);
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}

html.d2 #series .sep {
  left: 12px;
  top: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(8,10,22,.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: 700 12px/1.3 var(--f-body);
  letter-spacing: .02em;
  color: #fff;
}

html.d2 #series .scb {
  gap: 4px;
  padding: 14px 16px 16px;
}

html.d2 #series .scb>b {
  font: 600 16px/1.3 var(--f-head);
  color: var(--m-on-surface);
  text-wrap: balance;
}

html.d2 #series .scb .mute {
  font: 400 13px/1.4 var(--f-body);
  color: var(--m-on-surface-variant);
}

html.d2 #series .scb .stg {
  margin-top: 4px;
  gap: 10px;
  font: 600 13px/1 var(--f-body);
  color: var(--m-primary);
}

html.d2 #series .dots5 {
  gap: 4px;
}

html.d2 #series .dots5 i {
  width: 22px;
  height: 5px;
  border-radius: 3px;
  border: 1.5px solid var(--m-outline);
  background: transparent;
}

html.d2 #series .dots5 i.f {
  background: var(--m-primary);
  border-color: var(--m-primary);
}

html.d2 #series .sbar {
  height: 6px;
  margin-top: 8px;
  border-radius: 3px;
  background: var(--m-sc-high);
}

html.d2 #series .sbar i {
  background: var(--m-primary);
  transform-origin: left center;
}

/* the buttons that put an image on a show card: glass circles in the corner. Without an own image they are visible at rest, so you can find them. */
html.d2 #series .sctb {
  right: 10px;
  top: 10px;
  gap: 6px;
}

html.d2 #series .sct:not(.own) .sctb {
  opacity: .92;
  transform: none;
}

html.d2 #series .sico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(8,10,22,.58);
  border: 1px solid rgba(255,255,255,.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  transition: background-color .15s,scale .12s;
}

html.d2 #series .sico svg {
  width: 17px;
  height: 17px;
}

html.d2 #series .sico:hover,
html.d2 #series .sico:focus-visible {
  background: var(--m-primary);
  color: var(--m-on-primary,#fff);
  outline: none;
}

html.d2 #series .sico:active {
  scale: .9;
}

/* "New show", "New episode": dashed cards with a round plus */
html.d2 #series .scard.add {
  background: transparent;
  border: 1.5px dashed var(--m-outline);
  box-shadow: none;
}

html.d2 #series .scard.add .sct {
  aspect-ratio: auto;
  flex: 1;
  min-height: 110px;
  background: transparent;
  border-bottom: 0;
  color: var(--m-primary);
}

html.d2 #series .scard.add .sct b {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: color-mix(in srgb,var(--m-primary) 12%,transparent);
  font: 400 34px/1 var(--f-body);
  text-shadow: none;
  transition: transform .3s cubic-bezier(.2,.8,.2,1),background-color .2s;
}

html.d2 #series .scard.add .scb {
  padding-top: 6px;
}

@media (hover:hover) {
  html.d2 #series .scard.add:hover {
    background: color-mix(in srgb,var(--m-primary) 5%,transparent);
    border-color: var(--m-primary);
    box-shadow: none;
  }
  html.d2 #series .scard.add:hover .sct b {
    transform: scale(1.1) rotate(90deg);
    background: color-mix(in srgb,var(--m-primary) 20%,transparent);
  }
}

html.d2 #series .scard.add:focus-within {
  border-color: var(--m-primary);
}

html.d2 #series .scard.add input {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid var(--m-outline);
  border-radius: 12px;
  background: var(--m-sc-low);
  color: var(--m-on-surface);
  font: 500 15px/1.2 var(--f-body);
}

html.d2 #series .scard.add input:focus {
  outline: none;
  border-color: var(--m-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--m-primary) 22%,transparent);
}

/* ---- seasons ---- */
html.d2 #series .ssea {
  margin: 6px 0 24px;
}

html.d2 #series .sseah {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  font: 700 17px/1.2 var(--f-head);
  color: var(--m-on-surface);
}

html.d2 #series .sseah .mute {
  font: 400 13px/1.2 var(--f-body);
  color: var(--m-on-surface-variant);
}

html.d2 #series .ssadd {
  margin-top: 2px;
}

html.d2 #series .scard.sdrag {
  opacity: .4;
}

/* ---- motion: opening and closing a show slide the page in from the right or the left, the cards rise one after the other, the bars fill up.
   JS sets data-sa="fwd" or "back" for a moment after it draws the page. ---- */

@keyframes shfwd {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shback {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shcard {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shfill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

html.d2 #series[data-sa=fwd]>:is(h2,.srh,.ssq) {
  animation: shfwd .32s cubic-bezier(.2,.8,.2,1) both;
}

html.d2 #series[data-sa=back]>:is(h2,.srh,.ssq) {
  animation: shback .32s cubic-bezier(.2,.8,.2,1) both;
}

html.d2 #series[data-sa] .sseah {
  animation: shfwd .32s cubic-bezier(.2,.8,.2,1) both;
}

html.d2 #series[data-sa=back] .sseah {
  animation-name: shback;
}

html.d2 #series[data-sa] .sgrid>.scard,
html.d2 #series[data-sa] .ssadd {
  animation: shcard .42s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: 320ms;
}

html.d2 #series[data-sa] .sgrid>.scard:nth-child(1) {
  animation-delay: 60ms;
}

html.d2 #series[data-sa] .sgrid>.scard:nth-child(2) {
  animation-delay: 105ms;
}

html.d2 #series[data-sa] .sgrid>.scard:nth-child(3) {
  animation-delay: 150ms;
}

html.d2 #series[data-sa] .sgrid>.scard:nth-child(4) {
  animation-delay: 195ms;
}

html.d2 #series[data-sa] .sgrid>.scard:nth-child(5) {
  animation-delay: 240ms;
}

html.d2 #series[data-sa] .sgrid>.scard:nth-child(6) {
  animation-delay: 285ms;
}

html.d2 #series[data-sa] .sbar i {
  animation: shfill .8s cubic-bezier(.2,.8,.2,1) .25s both;
}

@media (prefers-reduced-motion:reduce) {
  html.d2 #series,
  html.d2 #series * {
    animation: none!important;
    transition-duration: .01ms!important;
  }
  html.d2 #series .scard:hover {
    translate: none;
  }
}

/* ---- narrow screens ---- */
@media (max-width:820px) {
  html.d2 #series {
    padding: 16px;
    border-radius: 24px;
  }
  html.d2 #series .sgrid {
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    gap: 14px;
  }
}

@media (max-width:640px) {
  html.d2 #series .srh {
    grid-template-columns: 44px minmax(0,1fr) auto;
    grid-template-areas: "back name actions" "back meta actions" "cover cover cover";
    column-gap: 12px;
    row-gap: 2px;
  }
  html.d2 #series .srh .sname {
    font-size: 24px;
  }
  html.d2 #series .srh>.scov {
    width: 168px;
    margin-top: 14px;
  }
  html.d2 #series .ssq {
    max-width: none;
  }
}

/* ---------- Calendar: the first day of the week is marked (Monday, or Sunday when the week starts on Sunday), in the week view and in the month view ---------- */
html.d2 #pick .bcal .dow .ws {
  position: relative;
  color: var(--m-primary);
  font-weight: 700;
}

html.d2 #pick .bcal .dow .ws::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--m-primary);
}

/* no coloured bar down the left edge of the first day's cells (it read as a generic 'AI' stripe, Wed 25 Nov): the name, the small bar under it and the accent date number mark the day */
html.d2 #pick .bcal .bc.ws {
  box-shadow: none;
}

html.d2 #pick .bcal .bc.ws.today {
  box-shadow: inset 0 0 0 2px var(--m-primary);
}

html.d2 #pick .bcal .bc.ws .n {
  color: var(--m-primary);
  font-weight: 700;
}

/* ---------- Coming up list: the week label above the first item of a week does not belong to that item ----------
   Before, the item's whole box (label included) lit up when you pointed at it, and pointing at the label counted as pointing at the item.
   Now the label sits in a transparent border, the highlight stops under it, and the label itself ignores the pointer. */

html.d2 #rail .item:is(.wk,.wkf) {
  padding-top: 0;
  border-top: 22px solid transparent;
  background-clip: padding-box;
  pointer-events: none;
  gap: 0;
}

html.d2 #rail .item:is(.wk,.wkf)>* {
  pointer-events: auto;
}

html.d2 #rail .item:is(.wk,.wkf)>:first-child {
  box-sizing: border-box;
  flex-basis: 74px;
  padding-right: 10px;
}

html.d2 #rail .item:is(.wk,.wkf)::before {
  top: -22px;
  pointer-events: none;
}

/* Tasks page: rows get the same 8px between them as the task list on Home.
   The base style (tasks.css) has margin:6px 0, the 2.0 row style zeroes it for Home's flex list,
   and the Tasks page lists rows in plain blocks (.tkin), so they touched. ~ skips rows that are hidden (.gone). */

html.d2 .tkin>.trow:not(.gone)~.trow:not(.gone) {
  margin-top: 8px;
}

/* Calendar: the height follows the content.
   Week view: base.html gives every day column min-height 620px (the old fixed height). Now the script sets --wkh (the busiest day in view, at least 150px) and every cell takes that height; the strip changes height smoothly when other days come into view.
   Cells clip their own overflow so a tall day that is not in view yet is cut at its card edge instead of spilling out below the calendar.
   Month view: a week row is at least 76px (was 140px) and grows when a day has entries. */

html.d2 #pick .bcal.wk .grid .bc {
  min-height: 0;
  height: var(--wkh,auto);
  overflow: hidden;
  transition: height .3s cubic-bezier(.25,1,.5,1);
}

@media (prefers-reduced-motion:reduce) {
  html.d2 #pick .bcal.wk .grid .bc {
    transition: none;
  }
}

html.d2 #pick .bcal.mo .grid .bc {
  min-height: 76px;
}

/* Month view: a video's title is cut after 3 lines (week view already cuts after 4), the cells are narrow and a long title made a whole week row very tall */
html.d2 #pick .bcal.mo .cc.vcc .ct {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Timeline controls (Bars/Line, ‹ Today ›, zoom) are one nowrap row ~440px wide: on phones they ran off the right edge and the page scrolled sideways. Let them wrap onto a second line. */
@media (max-width:820px) {
  html.d2 #pick .tlctl {
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-left: 0;
    max-width: 100%;
    min-width: 0;
  }
  html.d2 #pick .tlctl .tlnav {
    flex-wrap: wrap;
    gap: 8px 6px;
    max-width: 100%;
  }
  html.d2 #pick .tlctl .tlzm {
    margin-left: 0;
  }
  html.d2 #pick .tlctl .tlnav>button:nth-of-type(3) {
    margin-right: 6px;
  }
}

/* Home: the task groups fold like on the Tasks page (heading margins are the Home ones, rows keep the 8px gap from the rule above) */
html.d2 .tasks>.tkS.hk .tsec {
  margin: 6px 0 0;
}

html.d2 .tasks>.tkS.hk .tkbody {
  margin-top: 8px;
}

html.d2 .tasks>.tkS.hk.c .tkbody {
  margin-top: 0;
}

html.d2 .tasks>.tkS.hk .tkh3 {
  cursor: pointer;
}

html.d2 .tasks>.tkS.hk .tkh3 {
  font: 600 12px/1.2 var(--f-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  gap: 4px;
  padding: 7px 10px 7px 0;
  margin: -7px 0;
  min-height: 30px;
}

html.d2 .tasks>.tkS.hk .tkh3 .chv {
  width: 16px;
  height: 16px;
}

html.d2 .tasks>.tkS.hk .tkh3 .chv svg {
  width: 14px;
  height: 14px;
}

html.d2 .tasks>.tkS.hk .tkh3 .tcn {
  font: 600 12px/1.2 var(--f-body);
}

html.d2 .tasks>.tkS.hk .tkh3:focus-visible {
  outline: 2px solid var(--m-primary);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Home, This week: heading (label above its dates) with ‹ This week › on the right (same pills as the calendar's switcher).
   The block has the same height for every week, and under 421px the buttons always sit on their own row, so they never move between taps. */

html.d2 .hweek .hwh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 0 12px;
}

html.d2 .hweek .hwt {
  min-width: 0;
}

html.d2 .hweek .hwh h2 {
  margin: 0!important;
  min-width: 0;
}

html.d2 .hweek .hwr {
  display: block;
  margin-top: 2px;
  font: 400 13px/1.2 var(--f-body);
  color: var(--m-on-surface-variant);
}

html.d2 .hweek .hwnav {
  margin: 0;
  gap: 6px;
  flex: none;
}

html.d2 .hweek .hwnav .ghost {
  min-width: 36px;
}

html.d2 .hweek .hwnav .ghost:disabled {
  opacity: .45;
  cursor: default;
}

@media (max-width:420px) {
  html.d2 .hweek .hwh {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Phone calendar page: "Coming up" repeats what the calendar above it already shows, so it is hidden there
   (up to 820 px, 2.0 look only). It stays on every other page and on the video page of the same screen. */

@media (max-width:820px) {
  html.d2 body[data-v=plan][data-p=pick] #rail {
    display: none;
  }
}

/* A stream opened from "Coming up" is marked for a moment on the Streams page */
html.d2 #streams .stn {
  transition: box-shadow .5s var(--ease,ease),background-color .5s var(--ease,ease);
}

html.d2 #streams .stn.stfl {
  box-shadow: 0 0 0 2px var(--m-primary,var(--acc));
  background-color: color-mix(in srgb,var(--m-primary,var(--acc)) 12%,transparent);
}

@media (prefers-reduced-motion:reduce) {
  html.d2 #streams .stn {
    transition: none;
  }
}

/* Month view (i179, approved Wed 25 Nov 12:57): Month view chips are compact. Cells are narrow (about 90px on a desktop, 45px on a phone strip), so the chips were 3 to 4 lines each for little information. Now: a video chip = title (2 lines) + dots + stage; the series name is dropped; "Script due" chips show the video title on one line; tasks and entries cut after 2 lines. Week and Timeline are unchanged. */
html.d2 #pick .bcal.mo .cc.vcc {
  padding: 5px 7px 6px 8px;
  font: 600 12.5px/1.25 var(--f-body);
}

html.d2 #pick .bcal.mo .cc.vcc .ct {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

html.d2 #pick .bcal.mo .cc.vcc small {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 5px;
  margin-top: 4px;
  font: 400 11px/1.25 var(--f-body);
}

html.d2 #pick .bcal.mo .cc.vcc small .dots5 i {
  width: 5px;
  height: 5px;
}

html.d2 #pick .bcal.mo .cc.vcc small .ser {
  display: none;
}

html.d2 #pick .bcal.mo .cc.dl {
  padding: 3px 6px 4px 7px;
  font-size: 11.5px;
  line-height: 1.25;
}

html.d2 #pick .bcal.mo .cc.dl small {
  -webkit-line-clamp: 1;
  line-clamp: 1;
  font-size: 11px;
  font-weight: 400;
}

html.d2 #pick .bcal.mo .cc:is(.td,.ev,.rt,.s,.k,.open,.awy) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  padding: 3px 6px;
  font-size: 11.5px;
}

/* Calendar: every day keeps an empty strip at the bottom to grab and drag the calendar by (Wed 25 Nov, user: "every day has at least a little bit of a padding on the bottom so you can click that to drag it around").
   Chips and entries do not start a drag with the mouse, only empty space does; the busiest day used to be exactly as tall as its chips, so it had none.
   The week view measures its height from the content plus this padding (wkNat), so the strip gets taller by the same amount. */

html.d2 #pick .bcal.wk .grid .bc {
  padding-bottom: 26px;
}

html.d2 #pick .bcal.mo .grid .bc {
  padding-bottom: 18px;
}

/* =====================================================================
   Studiotaku 2.0, part H: CANDIDATE, not published. Calendar views, a little inspired by the
   principles of TimeTree-style planners (not their look): every day always visible, a calm flush grid
   instead of separate tiles, small date numbers, weekends and today quietly marked, entries as
   solid colour bars (colour = what it is) and a week number in the margin.
   Source file: v2h.src.css; gen_v2h.py expands the short prefixes into v2h.css:
     @M = month cell, @W = week cell, @B = both
   ===================================================================== */

/* ---------- shared: the entry bars (colour says what it is) ---------- */
html.d2 #pick .bcal.mo .mscroll .grid .bc .cc,
html.d2 #pick .bcal.wk .grid .bc .cc {
  --bar: var(--gc,var(--bc,var(--m-primary)));
  border: 0!important;
  box-shadow: none;
  background-image: none!important;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

/* the hover loading bar (base rule: .bcal :is(.cc.vcc,.cc.dl)[data-d]::after, it fills in 0.5 s and then the summary card opens) stays on videos and deadlines.
   On a solid video bar it takes the bar's text colour (always readable on that bar); on a deadline it is the accent colour. Other bars have none. */

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc:not(.vcc):not(.dl)::after,
html.d2 #pick .bcal.wk .grid .bc .cc:not(.vcc):not(.dl)::after {
  display: none!important;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.vcc[data-d]::after,
html.d2 #pick .bcal.wk .grid .bc .cc.vcc[data-d]::after {
  background: currentColor;
  opacity: .92;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.dl[data-d]::after,
html.d2 #pick .bcal.wk .grid .bc .cc.dl[data-d]::after {
  background: var(--m-primary);
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc:hover,
html.d2 #pick .bcal.wk .grid .bc .cc:hover {
  filter: brightness(1.07);
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc:focus-visible,
html.d2 #pick .bcal.wk .grid .bc .cc:focus-visible {
  outline: 2px solid var(--m-primary);
  outline-offset: 1px;
}

/* a video: the strongest bar. Its colour is the genre; a thin line along the bottom edge shows how far along it is */
html.d2 #pick .bcal.mo .mscroll .grid .bc :is(.cc.vcc,.cc.ev,.cc.s),
html.d2 #pick .bcal.wk .grid .bc :is(.cc.vcc,.cc.ev,.cc.s) {
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--m-on-surface) 12%,transparent);
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.vcc,
html.d2 #pick .bcal.wk .grid .bc .cc.vcc {
  background-color: color-mix(in srgb,var(--bar) 90%,var(--m-surface))!important;
  background-image: linear-gradient(rgba(255,255,255,.75),rgba(255,255,255,.75))!important;
  background-repeat: no-repeat!important;
  background-position: 0 100%!important;
  background-size: var(--sp,0%) 2px!important;
  color: #fff;
  color: oklch(from var(--bar) clamp(.16,calc((.66 - l) * 1000),.99) 0 0);
}

/* the deadline of a video: the same colour, only an outline and a light fill */
html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.dl,
html.d2 #pick .bcal.wk .grid .bc .cc.dl {
  background-color: color-mix(in srgb,var(--bar) 15%,transparent)!important;
  color: var(--m-on-surface);
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--bar) 55%,transparent);
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.dl.late,
html.d2 #pick .bcal.wk .grid .bc .cc.dl.late {
  color: var(--m-error);
  box-shadow: inset 0 0 0 1px var(--m-error);
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.dl small,
html.d2 #pick .bcal.wk .grid .bc .cc.dl small {
  margin-left: .4em;
}

/* your own entries: solid, in the colour you picked (the style attribute sets the text colour too, so it needs !important) */
html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.ev,
html.d2 #pick .bcal.wk .grid .bc .cc.ev {
  background-color: color-mix(in srgb,var(--bc,var(--m-primary)) 90%,var(--m-surface));
  color: #fff!important;
  color: oklch(from var(--bc,var(--m-primary)) clamp(.16,calc((.66 - l) * 1000),.99) 0 0)!important;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.ev .sq,
html.d2 #pick .bcal.wk .grid .bc .cc.ev .sq {
  display: none;
}

/* a stream: the platform colour */
html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.s,
html.d2 #pick .bcal.wk .grid .bc .cc.s {
  background-color: color-mix(in srgb,var(--sc,var(--m-primary)) 88%,var(--m-surface));
  color: #fff;
  color: oklch(from var(--sc,var(--m-primary)) clamp(.16,calc((.66 - l) * 1000),.99) 0 0);
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.s b,
html.d2 #pick .bcal.wk .grid .bc .cc.s b {
  display: inline;
  font: inherit;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.s .pdot,
html.d2 #pick .bcal.wk .grid .bc .cc.s .pdot {
  display: none;
}

/* Shorts and Reels */
html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.k,
html.d2 #pick .bcal.wk .grid .bc .cc.k {
  background-color: color-mix(in srgb,var(--m-on-surface) 12%,transparent);
  color: var(--m-on-surface);
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.k[data-gglow],
html.d2 #pick .bcal.wk .grid .bc .cc.k[data-gglow] {
  background-color: color-mix(in srgb,var(--bar) 24%,transparent);
}

/* a task and a routine: quiet and neutral */
html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.td,
html.d2 #pick .bcal.wk .grid .bc .cc.td {
  background-color: var(--m-sc-high);
  color: var(--m-on-surface);
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.td.late,
html.d2 #pick .bcal.wk .grid .bc .cc.td.late {
  background-color: var(--m-error-container);
  color: var(--m-error);
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.rt,
html.d2 #pick .bcal.wk .grid .bc .cc.rt {
  background-color: transparent;
  box-shadow: inset 0 0 0 1px var(--m-outline-variant);
  color: var(--m-on-surface-variant);
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.rt.dn,
html.d2 #pick .bcal.wk .grid .bc .cc.rt.dn {
  opacity: .6;
}

/* an empty slot, and time away */
html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.open,
html.d2 #pick .bcal.wk .grid .bc .cc.open {
  background: transparent!important;
  box-shadow: inset 0 0 0 1px var(--m-outline);
  color: var(--m-on-surface-variant);
  font-weight: 500;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.awy,
html.d2 #pick .bcal.wk .grid .bc .cc.awy {
  background: repeating-linear-gradient(135deg,color-mix(in srgb,var(--m-on-surface) 14%,transparent) 0 5px,transparent 5px 10px);
  color: var(--m-on-surface-variant);
  box-shadow: none;
}

/* stage dots on a solid bar take the bar's own text colour */
html.d2 #pick .bcal.mo .mscroll .grid .bc .cc .dots5 i,
html.d2 #pick .bcal.wk .grid .bc .cc .dots5 i {
  border-color: currentColor;
  background: transparent;
  opacity: .55;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc .dots5 i.f,
html.d2 #pick .bcal.wk .grid .bc .cc .dots5 i.f {
  background: currentColor;
  opacity: 1;
}

/* ---------- shared: the date number. Small; weekends in the accent colour; today a filled pill ---------- */
html.d2 #pick .bcal.mo .mscroll .grid .bc.we .n,
html.d2 #pick .bcal.wk .grid .bc.we .n {
  color: var(--m-primary);
}

html.d2 #pick .bcal.mo .mscroll .grid .bc.ws .n,
html.d2 #pick .bcal.wk .grid .bc.ws .n {
  color: var(--m-on-surface-variant);
  font-weight: 600;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc.ws.we .n,
html.d2 #pick .bcal.wk .grid .bc.ws.we .n {
  color: var(--m-primary);
}

html.d2 #pick .bcal.mo .mscroll .grid .bc.past .cc,
html.d2 #pick .bcal.wk .grid .bc.past .cc,
html.d2 #pick .bcal.mo .mscroll .grid .bc.past .n,
html.d2 #pick .bcal.wk .grid .bc.past .n {
  opacity: .6;
}

/* overdue things stay at full strength: they are the ones you must not miss */
html.d2 #pick .bcal.mo .mscroll .grid .bc.past .cc.late,
html.d2 #pick .bcal.wk .grid .bc.past .cc.late {
  opacity: 1;
}

/* Home week strip: the fade sits on the entries and the day number (not the whole cell), so an overdue deadline in a past day keeps full strength */
html.d2 .bcal.hw .bc.past {
  opacity: 1;
}

html.d2 .bcal.hw .bc.past .cc:not(.late),
html.d2 .bcal.hw .bc.past .n {
  opacity: .6;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc.today .n,
html.d2 #pick .bcal.wk .grid .bc.today .n,
html.d2 #pick .bcal.mo .mscroll .grid .bc.today.we .n,
html.d2 #pick .bcal.wk .grid .bc.today.we .n,
html.d2 #pick .bcal.mo .mscroll .grid .bc.today.ws .n,
html.d2 #pick .bcal.wk .grid .bc.today.ws .n {
  color: var(--m-on-primary);
  opacity: 1;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc.today .n,
html.d2 #pick .bcal.wk .grid .bc.today .n {
  display: block;
  width: max-content;
  background: var(--m-primary);
  text-align: center;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc.today,
html.d2 #pick .bcal.wk .grid .bc.today {
  background: color-mix(in srgb,var(--m-primary) 11%,transparent);
}

html.d2 #pick .bcal.mo .mscroll .grid .bc.modd,
html.d2 #pick .bcal.wk .grid .bc.modd {
  background: color-mix(in srgb,var(--m-on-surface) 4%,transparent);
}

html.d2 #pick .bcal.mo .mscroll .grid .bc.modd.today,
html.d2 #pick .bcal.wk .grid .bc.modd.today {
  background: color-mix(in srgb,var(--m-primary) 11%,transparent);
}

html.d2 #pick .bcal.mo .mscroll .grid .bc:is(:hover,:focus-within),
html.d2 #pick .bcal.wk .grid .bc:is(:hover,:focus-within) {
  z-index: 5;
}

/* =====================================================================
   MONTH
   ===================================================================== */

@media (max-width:820px) {
  html.d2 #pick:has(.bcal.mo) {
    margin-inline: -12px;
    padding: 12px 4px 10px;
    border-radius: 22px;
  }
  /* the page column is a flex item and shrank to the month's own width (367 of 390 px): make it fill the screen */
  html.d2 .cols:has(#pick .bcal.mo) {
    width: 100%;
  }
  html.d2 #pick:has(.bcal.mo) .calhead {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas: "t n" "s s";
    align-items: center;
    gap: 8px 8px;
    margin: 2px 8px 10px;
  }
  html.d2 #pick:has(.bcal.mo) .calhead h2 {
    grid-area: t;
    min-width: 0;
    font-size: 21px;
    line-height: 1.2;
  }
  html.d2 #pick:has(.bcal.mo) .calhead .calnav {
    grid-area: n;
    margin: 0;
  }
  html.d2 #pick:has(.bcal.mo) .calhead .row2 {
    grid-area: s;
    margin: 0;
    justify-content: flex-start;
  }
}

html.d2 .cal>.bcal.mo {
  min-width: 0;
  --wkg: 17px;
  --bh: 17px;
  --bf: 10px;
  --rowh: 104px;
  --ng: 2px;
  --dh: 12px;
  --mh: 12px;
}

@media (min-width:821px) {
  html.d2 .cal>.bcal.mo {
    --wkg: 30px;
    --bh: 19px;
    --bf: 11.5px;
    --rowh: 128px;
    --ng: 3px;
    --dh: 13px;
    --mh: 15px;
  }
}

html.d2 #pick .bcal.mo .mscroll {
  border: 1px solid var(--m-outline-variant);
  border-radius: 16px;
  background: var(--m-sc-lowest);
  scrollbar-width: thin;
}

@media (max-width:820px) {
  html.d2 #pick .bcal.mo .mscroll {
    scrollbar-width: none;
    border-radius: 14px;
  }
}

html.d2 #pick .bcal.mo .dow {
  padding-left: var(--wkg);
  padding-right: var(--sbw,0px);
  gap: 0;
  margin: 0 0 6px;
}

html.d2 #pick .bcal.mo .dow span {
  text-align: left;
  padding-left: 5px;
  font: 600 10.5px/1.2 var(--f-body);
  letter-spacing: .04em;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

@media (min-width:821px) {
  html.d2 #pick .bcal.mo .dow span {
    padding-left: 8px;
    font-size: 11.5px;
  }
}

html.d2 #pick .bcal.mo .dow .ws::after {
  display: none;
}

html.d2 #pick .bcal.mo .dow .ws {
  color: var(--m-on-surface-variant);
  font-weight: 600;
}

html.d2 #pick .bcal.mo .dow .we,
html.d2 #pick .bcal.mo .dow .ws.we {
  color: var(--m-primary);
}

html.d2 #pick .bcal.mo .grid {
  padding-left: var(--wkg);
  gap: 0;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc {
  height: var(--rowh);
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset -1px -1px 0 var(--m-outline-variant);
  padding: 3px 2px 12px;
  gap: var(--ng);
  overflow: visible;
  opacity: 1;
  position: relative;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc:nth-child(7n+1) {
  box-shadow: inset 1px 0 0 var(--m-outline-variant),inset -1px -1px 0 var(--m-outline-variant);
}

html.d2 #pick .bcal.mo .mscroll .grid .bc.ws,
html.d2 #pick .bcal.mo .mscroll .grid .bc.ws.today {
  box-shadow: inset -1px -1px 0 var(--m-outline-variant);
}

html.d2 #pick .bcal.mo .mscroll .grid .bc.ws:nth-child(7n+1) {
  box-shadow: inset 1px 0 0 var(--m-outline-variant),inset -1px -1px 0 var(--m-outline-variant);
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .n {
  display: block;
  font: 600 10.5px/17px var(--f-body);
  height: 17px;
  padding: 0 3px;
  color: var(--m-on-surface-variant);
  white-space: nowrap;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc.today .n {
  height: 17px;
  min-width: 17px;
  margin: 0;
  padding: 0 5px;
  border-radius: 9px;
}

@media (min-width:821px) {
  html.d2 #pick .bcal.mo .mscroll .grid .bc .n {
    font-size: 12px;
    line-height: 20px;
    height: 20px;
    padding: 0 5px;
  }
  html.d2 #pick .bcal.mo .mscroll .grid .bc.today .n {
    height: 20px;
    min-width: 20px;
    border-radius: 10px;
    padding: 0 7px;
  }
}

/* the first day of each week carries the week number in the margin */
html.d2 #pick .bcal.mo .mscroll .grid .bc[data-wk]::before {
  content: attr(data-wk);
  position: absolute;
  left: calc(-1 * var(--wkg));
  top: 3px;
  width: var(--wkg);
  text-align: center;
  font: 600 9.5px/17px var(--f-body);
  color: var(--m-on-surface-variant);
  opacity: .75;
  pointer-events: none;
}

@media (min-width:821px) {
  html.d2 #pick .bcal.mo .mscroll .grid .bc[data-wk]::before {
    content: 'W' attr(data-wk);
    font-size: 10.5px;
    line-height: 20px;
    top: 3px;
  }
}

/* the add buttons (shown on pointing at or tapping a day): a small floating pill */
html.d2 #pick .bcal.mo .mscroll .grid .bc .dadd {
  top: 2px;
  right: 2px;
  z-index: 3;
  background: var(--m-sc-highest);
  border-radius: 14px;
  box-shadow: 0 2px 8px color-mix(in srgb,#000 28%,transparent);
  padding: 1px;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .dadd {
  gap: 0;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .dadd button {
  width: 21px;
  height: 21px;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .dadd button svg {
  width: 13px;
  height: 13px;
}

/* narrow month: a day is too small for the add buttons; a tap on a day opens the week, which has them */
@media (max-width:820px) {
  html.d2 #pick .bcal.mo .mscroll .grid .bc .dadd {
    display: none!important;
  }
}

/* month bars: one line, small, cut with an ellipsis */
html.d2 #pick .bcal.mo .mscroll .grid .bc .cc {
  display: block;
  height: var(--bh);
  min-height: 0;
  margin: 0;
  padding: 0 4px;
  border-radius: 4px;
  font: 600 var(--bf)/var(--bh) var(--f-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc small,
html.d2 #pick .bcal.mo .mscroll .grid .bc .cc .ct {
  display: inline;
  font: inherit;
  margin: 0;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc small {
  font-weight: 400;
  opacity: .85;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.dl small {
  margin-left: .4em;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc .dots5,
html.d2 #pick .bcal.mo .mscroll .grid .bc .cc .stname,
html.d2 #pick .bcal.mo .mscroll .grid .bc .cc small.ssm,
html.d2 #pick .bcal.mo .mscroll .grid .bc .cc small.sst {
  display: none;
}

/* =====================================================================
   WEEK: the same bars and date numbers, in tall flush columns inside one frame; bars may take several lines
   ===================================================================== */

@media (max-width:820px) {
  html.d2 #pick:has(.bcal.wk) {
    margin-inline: -12px;
    padding: 12px 4px 10px;
    border-radius: 22px;
  }
  html.d2 #pick:has(.bcal.wk) .calhead {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas: "t n" "s s";
    align-items: center;
    gap: 8px 8px;
    margin: 2px 8px 10px;
  }
  html.d2 #pick:has(.bcal.wk) .calhead h2 {
    grid-area: t;
    min-width: 0;
    font-size: 21px;
    line-height: 1.2;
  }
  html.d2 #pick:has(.bcal.wk) .calhead .calnav {
    grid-area: n;
    margin: 0;
  }
  html.d2 #pick:has(.bcal.wk) .calhead .row2 {
    grid-area: s;
    margin: 0;
    justify-content: flex-start;
  }
}

html.d2 #pick .bcal.wk {
  border: 1px solid var(--m-outline-variant);
  border-radius: 16px;
  background: var(--m-sc-lowest);
}

html.d2 #pick .bcal.wk .strip {
  --wk0: calc(-7 / var(--wkt,21) * 100%);
}

html.d2 #pick .bcal.wk .dow,
html.d2 #pick .bcal.wk .grid {
  gap: 0;
}

html.d2 #pick .bcal.wk .dow {
  margin: 0;
  padding: 9px 0 7px;
}

html.d2 #pick .bcal.wk .dow span {
  text-align: left;
  padding-left: 10px;
}

html.d2 #pick .bcal.wk .dow .we,
html.d2 #pick .bcal.wk .dow .ws.we {
  color: var(--m-primary);
}

html.d2 #pick .bcal.wk .grid .bc {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset -1px 0 0 var(--m-outline-variant);
  padding: 4px 6px 26px;
  gap: 4px;
  opacity: 1;
  position: relative;
}

html.d2 #pick .bcal.wk .grid .bc.ws,
html.d2 #pick .bcal.wk .grid .bc.ws.today {
  box-shadow: inset -1px 0 0 var(--m-outline-variant);
}

html.d2 #pick .bcal.wk .grid .bc .n {
  display: block;
  font: 600 12px/20px var(--f-body);
  height: 20px;
  padding: 0 4px;
  color: var(--m-on-surface-variant);
  white-space: nowrap;
}

html.d2 #pick .bcal.wk .grid .bc.today .n {
  height: 20px;
  min-width: 20px;
  margin: 0;
  padding: 0 7px;
  border-radius: 10px;
}

html.d2 #pick .bcal.wk .grid .bc .cc {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 22px;
  margin: 0;
  padding: 4px 7px;
  border-radius: 6px;
  font: 600 12px/1.3 var(--f-body);
  text-align: left;
  white-space: normal;
  overflow: hidden;
}

html.d2 #pick .bcal.wk .grid .bc .cc small {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 2px 6px;
  margin-top: 2px;
  font: 400 11px/1.3 var(--f-body);
  color: inherit;
  opacity: .9;
}

html.d2 #pick .bcal.wk .grid .bc .cc.dl small {
  display: block;
  margin: 1px 0 0;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

html.d2 #pick .bcal.wk .grid .bc .cc.s small.sst {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.d2 #pick .bcal.wk .grid .bc .dadd {
  z-index: 3;
}

/* a day that is a drop target (dragging an entry) or whose editor is open */
html.d2 #pick .bcal.mo .mscroll .grid .bc.over,
html.d2 #pick .bcal.wk .grid .bc.over,
html.d2 #pick .bcal.mo .mscroll .grid .bc.dsel,
html.d2 #pick .bcal.wk .grid .bc.dsel {
  background: color-mix(in srgb,var(--m-primary) 14%,transparent);
}

/* ---------- month: every day is the same size. Entries are in order of importance; what has room gets a second line of detail,
   what does not fit is left out and a "+N" row says so. (script: moFit in v2h.js) ---------- */

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.vcc {
  order: 1;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.s {
  order: 2;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.ev {
  order: 3;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.k {
  order: 4;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.dl {
  order: 5;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.td {
  order: 6;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.rt {
  order: 7;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.awy {
  order: 8;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.open {
  order: 9;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.hid {
  display: none!important;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.det {
  height: calc(var(--bh) + var(--dh));
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.det small {
  display: flex!important;
  flex-direction: row!important;
  flex-wrap: nowrap!important;
  align-items: center;
  height: var(--dh);
  margin: 0;
  font-size: calc(var(--bf) - 1px);
  line-height: var(--dh);
  overflow: hidden;
  white-space: nowrap;
  opacity: .9;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc :is(.cc.vcc,.cc.s) small,
html.d2 #pick .bcal.wk .grid .bc :is(.cc.vcc,.cc.s) small {
  color: inherit;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.vcc.det .dots5 {
  display: inline-flex!important;
  gap: 2px;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.vcc.det .dots5 i {
  width: 5px;
  height: 5px;
  border-width: 1px;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.vcc.det .stname {
  display: inline!important;
  margin-left: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.vcc.det .ser {
  display: none;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.dl.det small {
  display: block!important;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.s.det small.ssm {
  display: none!important;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.s.det small.sst {
  display: flex!important;
}

@media (max-width:820px) {
  html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.vcc.det .stname {
    display: none!important;
  }
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .more {
  order: 20;
  display: block;
  flex: none;
  width: 100%;
  box-sizing: border-box;
  height: var(--mh);
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--m-on-surface-variant);
  font: 700 10px/var(--mh) var(--f-body);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .more:hover {
  background: var(--m-sc-high);
  color: var(--m-on-surface);
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .more:focus-visible {
  outline: 2px solid var(--m-primary);
  outline-offset: 1px;
}

@media (min-width:821px) {
  html.d2 #pick .bcal.mo .mscroll .grid .bc .more {
    font-size: 11px;
  }
  html.d2 #pick .bcal.mo .mscroll .grid .bc .more::after {
    content: ' more';
    font-weight: 500;
  }
}

/* arriving in the week from a day in the month: that day lights up for a moment */
@keyframes dflash {
  0% {
    box-shadow: inset 0 0 0 3px var(--m-primary),inset -1px 0 0 var(--m-outline-variant);
    background: color-mix(in srgb,var(--m-primary) 16%,transparent);
  }
  100% {
    box-shadow: inset 0 0 0 0 transparent,inset -1px 0 0 var(--m-outline-variant);
  }
}

html.d2 #pick .bcal.wk .grid .bc.dflash {
  animation: dflash 1.8s ease-out;
}

@media (prefers-reduced-motion:reduce) {
  html.d2 #pick .bcal.wk .grid .bc.dflash {
    animation: none;
    box-shadow: inset 0 0 0 2px var(--m-primary);
  }
}

/* ---------- variant B: an entry may take two lines; taller rows; no detail line (the title takes its place) ----------
   moFit (v2h.js) sees --cl:2 and measures the real height of every entry instead of using one fixed height */

html.d2 .cal>.bcal.mo {
  --cl: 2;
  --lh: 12px;
  --bh: 17px;
  --rowh: 136px;
}

@media (min-width:821px) {
  html.d2 .cal>.bcal.mo {
    --lh: 13px;
    --bh: 19px;
    --rowh: 152px;
  }
}

html.d2 #pick .bcal.mo .mscroll .grid .bc {
  padding-left: 1px;
  padding-right: 1px;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc {
  flex: none;
  height: auto;
  min-height: var(--bh);
  padding: 2px 3px;
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: var(--lh);
  white-space: normal;
  overflow: hidden;
  text-overflow: clip;
  overflow-wrap: anywhere;
  hyphens: auto;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc:not(.vcc):not(.s):not(.dl) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  padding-top: 3px;
  padding-bottom: 0;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.vcc small,
html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.s small {
  display: none!important;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.vcc .ct,
html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.s b {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-weight: inherit;
  line-height: var(--lh);
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.dl {
  white-space: nowrap;
  text-overflow: ellipsis;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .cc.dl small {
  display: block!important;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: calc(var(--bf) - 1px);
  line-height: var(--lh);
  font-weight: 400;
  opacity: .9;
}

html.d2 #pick .bcal.mo .mscroll .grid .bc .more {
  padding: 0 3px;
}

.oblg {
  font-size: 13px;
  margin: 14px 0 0;
  text-align: center;
}

.oblg a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.oblg a:hover,
.oblg a:focus-visible {
  color: var(--acc);
}

a.ghost {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.noai {
  margin: 10px 0 0;
  padding: 2px 0 2px 12px;
  border-left: 3px solid var(--acc);
  font-size: 15px;
  line-height: 1.45;
}

.noai b {
  font-weight: 700;
}
