/* Ohmorrow — Bold pop theme. The fonts and the colour tokens (light and dark) are in tokens.css, linked just before this file. */
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 var(--font-body);
  -webkit-font-smoothing:antialiased}
h1,h2,h3{margin:0;font-family:var(--font-display);font-weight:800;letter-spacing:.01em}
button{font:inherit;color:inherit}
a{color:var(--link)}
button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--link);outline-offset:2px}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px 64px}

/* ---------- header ----------
   The masthead (header + nav) sticks as one block on wide screens. On tablets,
   phones and short landscape screens it dissolves (display:contents, below), so
   the header scrolls away and only the nav bar sticks. */
.masthead{position:sticky;top:0;z-index:40;background:var(--bg);border-bottom:3px solid var(--line);overflow:hidden}
header{position:relative}   /* holds the bloom */
.hband{height:8px;background:var(--stripe)}
/* The bloom sits in the corner, above the nav row. The header row pads its right
   side only as far as the bloom needs, so on wide screens the stats line up with
   the panels below. */
.hbloom{position:absolute;right:-40px;top:-34px;width:132px;height:132px;pointer-events:none}
@media (min-width:1440px){.hbloom{right:-48px;width:168px;height:168px}}
.hrow{position:relative;max-width:1180px;margin:0 auto;display:flex;align-items:flex-start;gap:22px;flex-wrap:wrap;
  padding:14px max(20px, calc(104px - max(0px, (100% - 1180px) / 2))) 0 20px}
.brand{display:flex;flex-direction:column;gap:3px;margin-right:auto}
.brandrow{display:flex;align-items:center;gap:10px}
.mark{width:34px;height:34px;flex:none}
.brand h1{font-size:24px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;line-height:1}
.brand .sub{font-family:var(--font-display);font-size:11px;font-weight:700;color:var(--ink2);
  letter-spacing:.12em;text-transform:uppercase}
/* The stats: each adult's balance, the next day off (together) and the next
   plan. A value keeps to one line, and a long one (a plan's title) ends in an
   ellipsis, so the row fits beside the brand on a laptop. */
.hstat{display:flex;gap:20px;flex-wrap:wrap}
.hstat div{display:flex;flex-direction:column;gap:1px;min-width:0}
.hstat .k{font-family:var(--font-display);font-size:10.5px;font-weight:700;text-transform:uppercase;
  letter-spacing:.08em;color:var(--ink3)}
.hstat .v{font-family:var(--font-display);font-size:22px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.1;
  max-width:12em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-bottom:.12em;margin-bottom:-.12em}
.hstat .v small{font-family:var(--font-body);font-size:11px;font-weight:600;color:var(--ink2);margin-left:3px}
nav{position:relative;max-width:1180px;margin:0 auto;padding:10px 20px 12px;display:flex;gap:6px;overflow-x:auto}
nav button{background:none;border:2px solid transparent;border-radius:999px;padding:5px 14px;cursor:pointer;
  color:var(--ink);font-family:var(--font-display);font-size:13px;font-weight:800;letter-spacing:.06em;
  text-transform:uppercase;white-space:nowrap}
/* Every hover effect in this file applies only where there is hover: on a
   touch screen a tap would leave it stuck on whatever was tapped. */
@media (hover:hover){nav button:hover{border-color:var(--line)}}
nav button[aria-current="page"]{background:var(--ink);border-color:var(--ink);color:var(--bg)}
/* The Care tab's badge while something needs the family: how many days, in
   white on a poppy pill (poppy-ink: 5:1, where poppy is under 4.5:1). A
   screen reader hears the words after it instead (.vh). */
.nbadge{display:inline-block;min-width:18px;margin-left:6px;padding:0 5px;border-radius:999px;
  background:var(--poppy-ink);color:#FFFFFF;font-family:var(--font-body);font-size:10.5px;font-weight:800;
  line-height:16px;letter-spacing:0;text-align:center;vertical-align:1px}

/* ---------- panels ---------- */
.panel{background:var(--panel);border:2px solid var(--line);border-radius:var(--radius);margin-top:20px;overflow:hidden}
.panel > .ph{padding:12px 16px;border-bottom:2px solid var(--line);display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.panel > .ph h2{font-size:14px;letter-spacing:.07em;text-transform:uppercase}
.panel > .ph .note{font-size:12px;color:var(--ink3);margin-left:auto}
.pb{padding:16px}
.pb.tight{padding:0}

/* ---------- cards / stats ---------- */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(178px,1fr));gap:12px}
.card{background:var(--panel2);border:2px solid var(--line);border-radius:12px;padding:13px 14px}
.card .k{font-family:var(--font-display);font-size:10.5px;font-weight:700;text-transform:uppercase;
  letter-spacing:.08em;color:var(--ink3);margin-bottom:5px}
.card .v{font-family:var(--font-display);font-size:26px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.1}
.card .v small{font-family:var(--font-body);font-size:12px;font-weight:600;color:var(--ink2)}
.card .d{font-size:11.5px;color:var(--ink2);margin-top:5px}
/* the stat row opens on a sunflower block and closes on a blush one; ink text on both */
.cards > .card:first-child{background:var(--sunflower);box-shadow:4px 4px 0 var(--line)}
.cards > .card:last-child{background:var(--blush)}
.cards > .card:first-child,.cards > .card:last-child,
.cards > .card:first-child :is(.k,.d,small),.cards > .card:last-child :is(.k,.d,small){color:#111111}

/* ---------- alerts ---------- */
.alert{display:flex;gap:11px;padding:12px 14px;border-radius:12px;border:2px solid var(--line);
  margin-bottom:10px;align-items:flex-start}
.alert:last-child{margin-bottom:0}
.alert .ico{font-size:15px;line-height:1.35;flex:none;width:16px;text-align:center}
.alert .t{font-weight:750;margin-bottom:2px}
.alert .b{font-size:12.5px;color:var(--ink2)}
.alert .b b{color:var(--ink);font-weight:700}
.a-good{background:var(--good-soft)}
.a-warn{background:var(--warn-soft)}
.a-info{background:var(--accent-soft)}
.a-bad{background:var(--bad-soft)}
.alert .act{margin-left:auto;flex:none;display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:6px;padding:5px 14px;border-radius:999px;
  border:2px solid var(--line);background:var(--panel);cursor:pointer;font-size:12.5px;font-weight:700;white-space:nowrap}
@media (hover:hover){.btn:not([disabled]):hover{background:var(--sunflower);color:#111111}}
.btn.primary{background:var(--poppy-ink);color:#FFFFFF}
@media (hover:hover){.btn.primary:not([disabled]):hover{background:var(--poppy-ink);color:#FFFFFF;box-shadow:3px 3px 0 var(--line)}}
.btn.sm{padding:3px 10px;font-size:11.5px}
.btn.danger{color:var(--bad);border-color:var(--bad)}
@media (hover:hover){.btn.danger:not([disabled]):hover{background:var(--bad-soft);color:var(--bad)}}
.btn[disabled]{opacity:.45;cursor:not-allowed}
/* a link that looks like a button (Text link) */
a.btn{color:var(--ink);text-decoration:none}
.seg{display:inline-flex;border:2px solid var(--line);border-radius:999px;overflow:hidden}
.seg button{background:var(--panel);border:0;border-right:2px solid var(--line);padding:4px 12px;
  cursor:pointer;font-size:12.5px;font-weight:700}
.seg button:last-child{border-right:0}
.seg button[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.seg button:focus-visible{outline-offset:-4px}
/* the ring sits inside the button, so on the pressed (ink) one it takes the page colour */
.seg button[aria-pressed="true"]:focus-visible{outline-color:var(--bg)}
/* My leave's sub-view row: on a phone it scrolls sideways within the page
   instead of squeezing its labels onto two lines. A scrollbar would sit across
   the pill's bottom edge, so it is hidden; the cut-off last label shows there
   is more. The row scrolls itself to the one chosen and to one given focus
   (showInRow, in views/mine.js). */
.seg.subnav{max-width:100%;overflow-x:auto;scrollbar-width:none}
.seg.subnav::-webkit-scrollbar{display:none}
.seg.subnav button{flex:none;white-space:nowrap}

/* ---------- inputs ---------- */
label.f,.klabel{font-family:var(--font-display);font-size:11px;font-weight:700;
  color:var(--ink2);text-transform:uppercase;letter-spacing:.07em}
label.f{display:flex;flex-direction:column;gap:4px}
/* a label over a group of buttons or chips, set like the form labels */
.klabel{margin-bottom:6px}
input[type=text],input[type=password],input[type=number],input[type=date],input[type=time],input[type=tel],input[type=email],
select,textarea{
  font:inherit;font-family:var(--font-body);font-size:14px;font-weight:500;padding:6px 10px;
  border:2px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);
  text-transform:none;letter-spacing:0}
input:focus,select:focus,textarea:focus{outline:3px solid var(--link);outline-offset:1px}
/* a box of a few lines (a kid's info), taller when pulled down */
label.f textarea{min-height:3.6em;line-height:1.45;resize:vertical}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:13px}

/* ---------- tables ---------- */
.tw{overflow-x:auto}
/* A table that scrolls sideways takes focus from the keyboard (Chrome): the
   app's ring, inside it, as the panel around it clips anything outside. */
.tw:focus-visible{outline:3px solid var(--link);outline-offset:-3px}
table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
th{text-align:left;font-family:var(--font-display);font-size:11px;font-weight:800;text-transform:uppercase;
  letter-spacing:.07em;color:var(--ink2);padding:9px 12px;border-bottom:2px solid var(--line);
  white-space:nowrap;background:var(--panel2);position:sticky;top:0}
td{padding:9px 12px;border-bottom:1px solid var(--line2);font-size:13px;white-space:nowrap}
tr:last-child td{border-bottom:0}
@media (hover:hover){tbody tr:hover{background:var(--panel2)}}
td.num,th.num{text-align:right}
.muted{color:var(--ink3)}
/* a time of day ("8:00–5:30") kept on one line, never broken after its dash */
.nw{white-space:nowrap}
.chip{display:inline-block;padding:1px 8px;border-radius:999px;font-size:11px;font-weight:700;
  border:1.5px solid currentColor}
.c-leave{background:var(--leave-soft);color:var(--leave)}
.c-hol{background:var(--hol-soft);color:var(--hol)}
.c-off{background:var(--good-soft);color:var(--good)}
.c-warn{background:var(--warn-soft);color:var(--warn)}
.c-info{background:var(--accent-soft);color:var(--accent-ink)}

/* ---------- calendar ---------- */
.calhead{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-bottom:6px}
.calhead div{font-family:var(--font-display);font-size:11px;font-weight:800;text-transform:uppercase;
  letter-spacing:.07em;color:var(--ink2);text-align:center;padding:2px 0}
.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.cell{min-height:82px;border:1.5px solid var(--line2);border-radius:10px;padding:6px 7px;background:var(--panel2);
  cursor:pointer;position:relative;display:flex;flex-direction:column;gap:3px}
/* hover lifts the day with a hard shadow, which the coloured borders of filled
   days can't hide. Like every day's hover, here and on the wall, only where
   there is hover: on a touch screen a tap would leave it stuck on the day. */
@media (hover:hover){
  .cell:hover{border-color:var(--line);box-shadow:3px 3px 0 var(--line)}
  .cell.out:hover{border-color:var(--line2);box-shadow:none}
}
.cell.out{opacity:.34;cursor:default}
.cell .dn{font-family:var(--font-display);font-size:13px;font-weight:800;font-variant-numeric:tabular-nums;
  display:flex;justify-content:space-between;align-items:baseline;gap:4px}
.cell .hr{font-family:var(--font-body);font-size:10px;color:var(--ink2);font-weight:700}
.cell .lbl{font-size:10.5px;line-height:1.3;font-weight:700;word-break:break-word}
.cell.today{outline:3px solid var(--poppy-ink);outline-offset:1px}
.cell.weekend{background:transparent;border-style:dashed}
.cell.off{background:var(--good-soft);border-color:var(--sunflower)}
.cell.hol{background:var(--hol-soft);border-color:var(--cobalt)}
.cell.lv{background:var(--leave-soft);border-color:var(--poppy-ink)}
.cell .ppbar{position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;
  background:var(--accent);opacity:.6}
.cell.ppstart .ppbar{display:block}
/* The household on the month, layered as on the wall. Under TJ's labels
   (.me) a line each: the partner's leave (.cpar, after a dot in her colour),
   her blackouts (.cbusy, muted, after a hatch), a care gap (.cgap, in poppy),
   a chip per plan (.cplan, its colour down its left edge, bold on its first
   day) and each family date (.crec). A line wraps, as TJ's do, but a chip
   keeps to one line and ends in an ellipsis; either way the columns keep
   their widths, and a crowded day makes its week's row taller. A weekday
   both adults are off has the wall's meadow ring inside its border, edged
   in ink inside that, so it reads on every fill. Phones get a row of small
   marks instead (.cmark, below). */
.cell .cbusy{color:var(--ink3)}
/* her blackouts and busy marks, and the family calendar's events, are
   other people's words, of any length: two lines at most each */
.cell :is(.cbusy,.cfam){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.cell:is(.off,.hol,.lv) .cbusy{color:var(--ink2)}   /* --ink3 is under 4.5:1 on TJ's soft fills */
.cell .cgap{color:var(--bad)}
.cell .cplan{font-weight:600;background:var(--panel);border:1px solid var(--line2);border-left:4px solid;border-radius:4px;
  padding:0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:normal}
.cell .cplan.first{font-weight:800}
.cdot{display:inline-block;width:7px;height:7px;border-radius:50%;box-shadow:0 0 0 1px var(--ink);margin-right:5px;vertical-align:0}
.chatch{display:inline-block;width:4px;height:10px;border-radius:1px;margin-right:4px;vertical-align:-1px;
  background:repeating-linear-gradient(45deg,var(--ink3) 0 2px,transparent 2px 4px)}
/* The family's Google calendar: a hollow ring (the panel's colour inside a
   1.5px ink ring), so it can't be taken for her leave's filled dot. Its two
   tones are opposites in either mode, so one of them reads on any fill.
   Each event's line (.cfam) is quieter than the household's own. */
.cfdot{display:inline-block;flex:none;width:9px;height:9px;border-radius:50%;background:var(--panel);
  border:1.5px solid var(--ink);margin-right:5px;vertical-align:-1px}
.cell .cfam{color:var(--ink2)}
.cell .cmark{display:none}
.cal.lay-me.lay-partner .cell.free{box-shadow:inset 0 0 0 2px var(--meadow),inset 0 0 0 3px var(--ink)}
@media (hover:hover){
  .cal.lay-me.lay-partner .cell.free:hover{box-shadow:inset 0 0 0 2px var(--meadow),inset 0 0 0 3px var(--ink),3px 3px 0 var(--line)}
}
/* Layers, as on the wall: a line or mark shows only while its layer's
   lay-<name> class is on the month (both off needs TJ's and the partner's,
   above). With TJ's off, his fills fall back to a plain day, and his labels
   and scheduled hours go; weekends, today and the pay period's bar keep
   their look. */
.cal:not(.lay-me) .cell :is(.me,.hr),
.cal:not(.lay-partner) .cell :is(.cpar,.cbusy,.cdot,.chatch),
.cal:not(.lay-kids) .cell :is(.cgap,.cflag),
.cal:not(.lay-plans) .cell :is(.cplan,.crec,.cpip,.cemo),
.cal:not(.lay-family) .cell :is(.cfam,.cfdot){display:none}
.cal:not(.lay-me) .cell:is(.off,.hol,.lv){background:var(--panel2);border-color:var(--line2)}
.cal:not(.lay-me) .cell.weekend:is(.off,.hol,.lv){background:transparent}
@media (hover:hover){.cal:not(.lay-me) .cell:is(.off,.hol,.lv):hover{border-color:var(--line)}}
/* the legend's keys for them */
.legend .cgap{color:var(--bad);font-weight:800}
.sw.cplan{width:16px;background:var(--panel);border:1px solid var(--line2);border-left:4px solid;border-radius:3px}
.sw.cfdot{width:10px;height:10px;border-radius:50%;margin:0;background:var(--panel);border-color:var(--ink)}
.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:11.5px;color:var(--ink2);padding:12px 16px;
  border-top:2px solid var(--line)}
.legend span{display:inline-flex;align-items:center;gap:6px}
.sw{width:12px;height:12px;border-radius:4px;border:1.5px solid var(--line);display:inline-block}

/* ---------- year wall ---------- */
.ywrap{display:grid;grid-template-columns:repeat(12,1fr);gap:4px;align-items:start;user-select:none}
.ycol{display:flex;flex-direction:column;gap:2px;min-width:0}
.ymon{font-family:var(--font-display);font-size:11px;text-transform:uppercase;letter-spacing:.08em;
  color:var(--ink);font-weight:900;text-align:center;padding:2px 0 5px}
.ycell{height:21px;flex:none;border-radius:4px;background:var(--panel2);border:1.5px solid var(--line2);
  display:flex;align-items:center;gap:3px;padding:0 3px;font-size:9.5px;cursor:pointer;
  font-variant-numeric:tabular-nums;overflow:hidden;position:relative}
/* a ring rather than the border, so filled days show the hover too: --link with a
   page-coloured gap, so it reads on any fill and doesn't look like today's ink outline
   (only where there is hover, as on the Month) */
@media (hover:hover){.ycell:not(.blank):hover{box-shadow:0 0 0 1px var(--bg),0 0 0 3px var(--link);z-index:2}}
.ycell.blank{background:transparent;border-color:transparent;cursor:default;padding:0;font-size:0}
.ycell .yw{color:var(--ink3);width:1em;flex:none}   /* wide enough for a W, so it never touches the date */
.ycell .yd{color:var(--ink2);font-weight:700}
/* the plan bar: the plan's colour, edged in the day's text colour, so it still
   shows on a strong fill of the same colour (a sunflower plan on a 9/80 day) */
.ycell .ypl{flex:none;align-self:stretch;width:6.5px;margin-left:-3px;color:var(--ink);border-right:1.5px solid currentColor}
.sw.ypl{width:6.5px;border:0;border-right:1.5px solid var(--ink);border-radius:0}
.ycell.wknd{background:transparent;border-style:dashed}
.ycell.wknd .yd{color:var(--ink3)}
.ycell.off{background:var(--fill-off);border-color:var(--fill-off)}
.ycell.hol{background:var(--fill-hol);border-color:var(--fill-hol)}
.ycell.lv{background:var(--fill-leave);border-color:var(--fill-leave)}
.ycell.off .yd,.ycell.off .yw,.ycell.off .ypl{color:var(--fill-off-ink)}
.ycell.hol .yd,.ycell.hol .yw,.ycell.hol .ypl{color:var(--fill-hol-ink)}
.ycell.lv .yd,.ycell.lv .yw,.ycell.lv .ypl{color:var(--fill-leave-ink)}
.ycell.tdy{outline:2px solid var(--ink);outline-offset:1px;z-index:3}
@media (hover:hover){.ycell.tdy:hover{outline-color:var(--link)}}
.ycell.dragsel{background:var(--ink);border-color:var(--ink);z-index:4}
.ycell.dragsel .yd,.ycell.dragsel .yw,.ycell.dragsel .ypl{color:var(--bg)}
.ycell .ypb{position:absolute;right:2px;top:2px;bottom:2px;width:3px;border-radius:2px;
  background:repeating-linear-gradient(45deg,var(--yink) 0 2px,transparent 2px 4px)}
/* The household on the wall. Each mark keeps to its own place, so any mix
   of them reads on one day:
     left edge     a plan's bar (.ypl)
     right edge    the partner's blackout hatch (.ypb), starting below a
                   care gap's triangle
     top right     a care gap: a poppy triangle with an edge (.ygap)
     bottom right  both adults off: a meadow dot (.free::after), with a
                   meadow ring inside the day's border (never with the
                   hatch: a blackout means she isn't off)
     middle        the date, then the partner's leave as a dot in her colour
                   (.ydot), the family calendar's hollow ring (.yfam), family
                   dates (.yrec) and a plan's sticker (.ystk), cut short
                   before the right edge's marks
   The left corners stay clear: the day's letter sits there. Edges, and the
   hatch, are drawn in --yink, the day's text colour, so every mark stands
   out on the strong fills in both modes. Sizes: --ytri the triangle, --ydot the dots, --yring
   the ring. */
.ywrap{--ytri:9px;--ydot:5px;--yring:2px}
.ycell{--yink:var(--ink)}
.ycell.off{--yink:var(--fill-off-ink)}
.ycell.hol{--yink:var(--fill-hol-ink)}
.ycell.lv{--yink:var(--fill-leave-ink)}
.ycell.dragsel{--yink:var(--bg)}
.ycell .ydot{flex:none;width:var(--ydot);height:var(--ydot);border-radius:50%;box-shadow:0 0 0 1px var(--yink)}
.ycell .yrec{flex:none;line-height:1;color:var(--yink)}
/* the family calendar's ring (.cfdot's, as big as her dot with its edge):
   the panel's colour inside ink, whatever the day's fill */
.ycell .yfam{flex:none;width:calc(var(--ydot) + 2px);height:calc(var(--ydot) + 2px);border-radius:50%;
  background:var(--panel);border:1.5px solid var(--ink)}
.ycell .ystk{flex:1 1 0;min-width:0;margin-right:calc(var(--ydot) + 2px);overflow:hidden;white-space:nowrap;
  text-overflow:ellipsis;pointer-events:none;color:var(--yink);font-weight:700}
.ycell .ygap{position:absolute;top:0;right:0;width:var(--ytri);height:var(--ytri);
  background:linear-gradient(225deg,var(--poppy) 0 38%,var(--yink) 38% 53%,transparent 53%)}
.ycell .ygap ~ .ypb{top:calc(var(--ytri) - 2px)}
.ywrap.lay-me.lay-partner .ycell.free{box-shadow:inset 0 0 0 var(--yring) var(--meadow),inset 0 0 0 calc(var(--yring) + 1px) var(--yink)}
@media (hover:hover){
  .ywrap.lay-me.lay-partner .ycell.free:hover{box-shadow:inset 0 0 0 var(--yring) var(--meadow),
    inset 0 0 0 calc(var(--yring) + 1px) var(--yink),0 0 0 1px var(--bg),0 0 0 3px var(--link)}
}
.ywrap.lay-me.lay-partner .ycell.free::after{content:"";position:absolute;right:calc(var(--yring) + 1px);
  bottom:calc(var(--yring) + 1px);width:var(--ydot);height:var(--ydot);border-radius:50%;background:var(--meadow);
  box-shadow:0 0 0 1px var(--yink)}
/* Layers: a mark shows only while its layer's lay-<name> class is on the
   wall (both off needs TJ's and the partner's, above). With TJ's off, his
   fills fall back to a plain day; weekends, today and a drag keep their look. */
.ywrap:not(.lay-partner) :is(.ydot,.ypb),
.ywrap:not(.lay-kids) .ygap,
.ywrap:not(.lay-plans) :is(.ypl,.ystk,.yrec),
.ywrap:not(.lay-family) .yfam{display:none}
.ywrap:not(.lay-me) .ycell:is(.off,.hol,.lv):not(.dragsel){background:var(--panel2);border-color:var(--line2);--yink:var(--ink)}
.ywrap:not(.lay-me) .ycell.wknd:is(.off,.hol,.lv):not(.dragsel){background:transparent}
.ywrap:not(.lay-me) .ycell:is(.off,.hol,.lv):not(.dragsel) .yd{color:var(--ink2)}
.ywrap:not(.lay-me) .ycell:is(.off,.hol,.lv):not(.dragsel) .yw,
.ywrap:not(.lay-me) .ycell.wknd:is(.off,.hol,.lv):not(.dragsel) .yd{color:var(--ink3)}
.ywrap:not(.lay-me) .ycell:is(.off,.hol,.lv):not(.dragsel) .ypl{color:var(--ink)}
/* The legend's keys for them */
.sw.free{background:var(--panel2);border-color:var(--line2);box-shadow:inset 0 0 0 2px var(--meadow),inset 0 0 0 3px var(--ink)}
.sw.ydot{width:9px;height:9px;border-radius:50%;border:0;box-shadow:0 0 0 1px var(--ink)}
.sw.yfam{width:10px;height:10px;border-radius:50%;background:var(--panel);border-color:var(--ink)}
.sw.ygap{background:linear-gradient(225deg,var(--poppy) 0 38%,var(--ink) 38% 53%,var(--panel2) 53%);border-color:var(--line2)}
/* The layer chips: a pill each, as each turns its layer on or off by itself,
   wrapping onto another row on a phone. The note of the wall (and of the
   Month view, which has the chips too) gets a line of its own under them,
   so the header wraps the same way at every width. */
.seg.layers{border:0;border-radius:0;overflow:visible;flex-wrap:wrap;gap:6px}
.seg.layers button,.seg.layers button:last-child{border:2px solid var(--line);border-radius:999px;padding:3px 11px}
.panel:is(.wall,.month) > .ph .note{flex-basis:100%;margin-left:0}
/* Their hint comes in two, for a mouse (click, drag) and for touch (tap):
   both are in the markup, and a screen without hover shows the tap one. */
.hint-tap{display:none}
@media (hover:none){
  .hint-click{display:none}
  .hint-tap{display:inline}
}
@media (max-width:980px){.ywrap{grid-template-columns:repeat(6,1fr)}}
/* Phones: the wall as month strips, one month under another. Each month is a
   7-column grid, Sunday first, under its heading; its 1st starts in its
   weekday's column (ys-1 to ys-7, on the 1st) and the rest flow on, and the
   padding days of short months drop out. A day is a 44px-tall tap target: the
   date at the top, the dot, family dates and the sticker (just its emoji) on
   a line under it (the ::before breaks the line), and every other mark in its
   place from the map above. The day's letter shows on the first seven days,
   the top day in each column, where it names the column; later days keep it
   for screen readers only. Screen only, so a narrow printed page still gets
   the poster. */
@media screen and (max-width:560px){
  .panel.wall > .pb{padding:14px 10px}
  .ywrap{display:block;--ytri:11px;--ydot:6px}
  .ycol{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
  .ycol + .ycol{margin-top:20px}
  .ymon{grid-column:1 / -1;font-size:13px;text-align:left;padding:0 0 4px 2px}
  .ycell.blank{display:none}
  .ys-1{grid-column-start:1}
  .ys-2{grid-column-start:2}
  .ys-3{grid-column-start:3}
  .ys-4{grid-column-start:4}
  .ys-5{grid-column-start:5}
  .ys-6{grid-column-start:6}
  .ys-7{grid-column-start:7}
  .ycell{height:44px;flex-wrap:wrap;align-content:flex-start;gap:0 2px;padding:4px 3px 5px 9px;
    font-size:11.5px;line-height:1.2}
  .ycell::before{content:"";flex:0 0 100%;order:1}
  /* The marks' line holds the dot, the ring, the first family date, the
     sticker and then any more family dates, as many as fit. One that doesn't fit wraps
     onto a line of its own, which the deep bottom margin puts past the day's
     edge, out of sight (never half in view): the extra family dates go
     first, then the sticker (the plan's bar still shows). The tooltip and
     the day's dialog name them all, and every day keeps its height. */
  .ycell :is(.ydot,.yfam,.yrec,.ystk){order:2;align-self:flex-start;margin-bottom:24px}
  .ycell .yrec ~ .yrec{order:3}
  .ycell .ydot{margin-top:4.5px}   /* level with the emoji */
  .ycell .yfam{margin-top:3.5px}
  .ycell .ypl{position:absolute;left:0;top:0;bottom:0;margin:0}
  .ycell .yw{width:auto;font-size:10px}
  /* From the 8th on, the letter is only for screen readers ("W 14"). This
     counts on the column being its heading, then days 1 to 31 in order, then
     the blanks, so its 9th child on is the 8th on (test/ui.test.js checks). */
  .ycol > .ycell:nth-child(n+9) .yw{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
    clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  .ycell .yrec{font-size:12.5px;line-height:1.2}
  .ycell .ystk{flex:none;width:1.3em;margin-right:0;font-size:12.5px;line-height:1.2;word-spacing:48px;text-overflow:clip}
}

/* ---------- 1-6-4 slots ---------- */
.slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:10px}
.slot{border:2px dashed var(--line2);border-radius:12px;padding:11px 12px;background:var(--panel2);
  cursor:pointer;min-height:66px;display:flex;flex-direction:column;gap:3px;justify-content:center}
@media (hover:hover){.slot:hover{border-color:var(--line);box-shadow:3px 3px 0 var(--line)}}
.slot.filled{border-style:solid;border-color:var(--line);background:var(--good-soft)}
.slot .st{font-family:var(--font-display);font-size:10.5px;font-weight:800;text-transform:uppercase;
  letter-spacing:.08em;color:var(--ink2)}
.slot .sv{font-family:var(--font-display);font-size:15px;font-weight:800;line-height:1.25}
.slot .sd{font-size:11.5px;color:var(--ink2)}
.slot .sempty{font-size:13px;color:var(--ink3);font-style:italic}
.swatches{display:flex;gap:8px;flex-wrap:wrap}
.sw2{width:28px;height:28px;border-radius:999px;border:2px solid var(--line);cursor:pointer}
.sw2[aria-pressed="true"]{box-shadow:0 0 0 3px var(--panel),0 0 0 5px var(--line)}

/* ---------- family ---------- */
.people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.person{background:var(--panel2);border:2px solid var(--line);border-radius:12px;padding:14px;
  display:flex;flex-direction:column;gap:14px;min-width:0}
.person h3{font-size:15px;letter-spacing:.05em;text-transform:uppercase;display:flex;align-items:center;gap:8px}
.pdot{width:14px;height:14px;border-radius:999px;border:2px solid var(--line);flex:none}
.person .sw2[aria-pressed="true"]{box-shadow:0 0 0 3px var(--panel2),0 0 0 5px var(--line)}
/* fields keep their column width even when a row has only one */
.person .grid2{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
/* a week of compact hour fields, Monday first */
.wk{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.wk label.f{min-width:0}
.wk input{width:100%;min-width:0;padding:6px 4px;text-align:center}
.sentence{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13.5px;color:var(--ink)}
.sentence input{width:88px}
.check{display:flex;align-items:center;gap:9px;font-size:13.5px;cursor:pointer}
.check input{width:18px;height:18px;margin:0;flex:none;accent-color:var(--ink)}
.pastnote{padding:10px 16px;border-top:1px solid var(--line2);font-size:12px;color:var(--ink3)}
/* a group of the partner's fields (work pattern, PTO): a fieldset named by
   its legend, which is set like the other headings (.klabel), with no box of
   its own and its fields spaced as the card's are */
.fset{border:0;margin:0;padding:0;min-width:0;display:flex;flex-direction:column;gap:14px}
.fset > legend{padding:0}
/* a person's name after a dot in their colour, in a table */
.pname{display:inline-flex;align-items:center;gap:8px}
/* …which is a button that opens their editor */
button.pname{background:none;border:0;padding:0;font-weight:700;cursor:pointer;text-align:left}
@media (hover:hover){button.pname:hover{text-decoration:underline}}
@media (max-width:640px){
  .people{grid-template-columns:minmax(0,1fr)}
  .wk{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* ---------- this week ----------
   A row a day, Monday first: the date (a button that opens the day), each
   adult, each kid, then what's on. Today's row is shaded, and a day both
   adults are off has a meadow rule down its left edge and says so. On a
   phone each day is a card of its own, every value after its column's name
   (.wklbl, real text in the cell, hidden where the headings show). */
/* The columns keep their widths from week to week: the day's is set, and the
   rest share what's left (a long value wraps). */
.wktable{table-layout:fixed;min-width:640px}
.wktable th:first-child{width:190px}
.wktable th .pname{vertical-align:top}
.wktable td{vertical-align:top;white-space:normal}
.wktable .wkday{background:none;border:0;padding:0;font-weight:800;cursor:pointer;text-align:left}
@media (hover:hover){.wktable .wkday:hover{text-decoration:underline}}
.wktable tr.today{background:var(--accent-soft)}
.wktable tr.free > td:first-child{box-shadow:inset 5px 0 0 var(--meadow)}
.chip.c-both{background:var(--panel);color:var(--ink);border-color:var(--meadow)}
.wktable .wkon + .wkon{margin-top:2px}
/* a title or label with no spaces in it (a line of what's on, her blackout
   or busy mark's chip) breaks anywhere rather than widening the table */
.wktable .wkon{overflow-wrap:anywhere}
.wktable td .chip{max-width:100%;overflow-wrap:anywhere;border-radius:10px}   /* a pill on one line, a card on more */
/* the family calendar's events, after the ring, quieter than plans and dates */
.wktable .wkon.fam{color:var(--ink2)}
.wktable .wkon.fam .cfdot{margin-right:1px}
.wktable .wkon .fbusy{color:var(--warn);font-weight:700}
.ftime{font-weight:700;color:var(--ink);white-space:nowrap}
.wktable .wklbl{display:none}
/* a link on the sunflower or blush card, whose ink doesn't change with the mode,
   nor its focus ring (--link is too pale on them in dark mode) */
.cards > .card:is(:first-child,:last-child) a{color:#111111}
.cards > .card:is(:first-child,:last-child) a:focus-visible{outline-color:#111111}
@media screen and (max-width:560px){
  .wktable thead{display:none}
  .wktable,.wktable tbody,.wktable tr,.wktable td{display:block}
  .wktable{min-width:0}
  .wktable tr{padding:10px 0 12px;border-bottom:2px solid var(--line2)}
  .wktable tr:last-child{border-bottom:0}
  .wktable tr.free{box-shadow:inset 5px 0 0 var(--meadow)}
  .wktable tr.free > td:first-child{box-shadow:none}
  .wktable td{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:3px 16px;border:0}
  .wktable .wklbl{display:block;flex:0 0 92px;min-width:0;overflow-wrap:anywhere;
    font-family:var(--font-display);font-size:10.5px;font-weight:800;text-transform:uppercase;
    letter-spacing:.07em;color:var(--ink3)}
  .wktable td:first-child{padding-bottom:6px;font-size:15px}
  .wktable td:empty{display:none}
  .wktable .wkons{flex:1 1 0;min-width:0}
}

/* ---------- care ----------
   Needs you: a row for each thing, its buttons after the words (under them
   when they need the room), with a rule down its left edge: a caregiver's
   day-off request sunflower, their offer to cover meadow (each with a note
   to send back, which takes what room there is), a day and kid with time
   nobody has them poppy, and an open day offered that's covered now, or a
   request from someone no longer in the planner, a quiet line. Above them,
   a quiet line when the caregivers' lists couldn't be read. */
.needlist{list-style:none;margin:0;padding:0}
.need{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:10px 16px;border-bottom:1px solid var(--line2);font-size:13px}
.need:last-child{border-bottom:0}
.need.gap{box-shadow:inset 4px 0 0 var(--poppy)}
.need.req{box-shadow:inset 4px 0 0 var(--sunflower)}
.need.cover{box-shadow:inset 4px 0 0 var(--meadow)}
.need.stale,.need.gone{box-shadow:inset 4px 0 0 var(--line2)}
.need.stale .nwhat{color:var(--ink2)}
.nwhat{flex:1 1 16em;min-width:0;overflow-wrap:anywhere}   /* a long note with no spaces wraps */
.nacts{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.need.req:not(.gone) .nacts,.need.cover:not(.gone) .nacts{flex:1 1 20em;justify-content:flex-end}
.nacts .reqnote{flex:1 1 9em;min-width:0;max-width:22em;padding:3px 10px;font-size:13px}
.carefail{padding:10px 16px;border-bottom:1px solid var(--line2);font-size:12.5px;color:var(--ink3)}
/* Needs you's note that the partner's work pattern isn't set up, above what needs you */
.needs .alert{margin:12px 16px}
/* The Schedule: the week, a row a day, beside its month (under it on a
   narrower screen). */
.csched{display:grid;grid-template-columns:minmax(0,1fr) 15.5rem;gap:16px;align-items:start}
.cweek{display:flex;flex-direction:column;gap:6px;min-width:0}
/* A day is a button that opens its care: the date in a fixed column, and a
   row per kid beside it, their name, their bar and who has them. Today is
   shaded; a day with time nobody has a kid has a poppy rule down its left
   edge; a past day is muted. */
.cday{display:grid;grid-template-columns:7.5em minmax(0,1fr);gap:4px 12px;align-items:center;width:100%;margin:0;
  padding:8px 12px;border:1.5px solid var(--line2);border-radius:10px;background:var(--panel2);color:var(--ink);
  font:inherit;text-align:left;cursor:pointer}
@media (hover:hover){
  .cday:hover{border-color:var(--line);box-shadow:3px 3px 0 var(--line)}
  .cday.short:hover{box-shadow:inset 4px 0 0 var(--poppy),3px 3px 0 var(--line)}
}
.cday.today{background:var(--accent-soft);border-color:var(--line)}
.cday.short{box-shadow:inset 4px 0 0 var(--poppy)}
.cday.past{background:transparent;border-style:dashed}
.cday.past :is(.cdate,.cname,.ctext){color:var(--ink3)}
.cday.past .cbar{opacity:.55}
.cdate{grid-column:1;font-family:var(--font-display);font-size:13px;font-weight:800;white-space:nowrap}
/* The name column is the same width every day, so the bars line up; a long
   name ends in an ellipsis (its title has the whole of it). */
.ckid{grid-column:2;display:grid;grid-template-columns:7em minmax(96px,2fr) minmax(0,3fr);grid-template-areas:"name bar text";
  gap:3px 10px;align-items:center;min-width:0}
.cname{grid-area:name;max-width:9em;font-size:12.5px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ctext{grid-area:text;font-size:12.5px;line-height:1.35;color:var(--ink2)}
.ctext .cwarn{color:var(--bad);font-weight:700}
/* A kid's bar, 6:00 to 20:00: a stretch in the colour of whoever has them,
   edged where one follows another; time nobody has them in the wall's gap
   colours (poppy, with the day's ink); whoever comes on a day nobody needs
   them muted. A stretch running on past either end (more) is at least a
   tick wide there, so care wholly outside the bar still shows. */
.cbar{grid-area:bar;position:relative;display:block;height:14px;border:2px solid var(--line);border-radius:4px;
  background:var(--panel);overflow:hidden}
.cseg{position:absolute;top:0;bottom:0}
.cseg + .cseg{box-shadow:inset 1.5px 0 0 var(--line)}
.cseg.open{background:repeating-linear-gradient(135deg,var(--poppy) 0 5px,var(--ink) 5px 7px)}
.cseg.off{opacity:.4}
.cseg.more{min-width:4px}
/* The month: a small square a day, Monday first, whole weeks, each a button
   that shows its week. A gap is a poppy square, part of one a sunflower
   square with a poppy corner, a day covered has a meadow ring, and the week
   shown an outline; today's number is underlined. The days from the months
   either side (out) are muted, keeping any gap's colours, and so is a past
   day. */
.cmonth{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;align-content:start;max-width:22rem}
.cmh{font-family:var(--font-display);font-size:10.5px;font-weight:800;color:var(--ink3);text-align:center}
.cmo{position:relative;aspect-ratio:1;min-width:0;margin:0;padding:0;border:1.5px solid var(--line2);border-radius:6px;
  background:var(--panel2);color:var(--ink);font-family:var(--font-display);font-size:11.5px;font-weight:700;
  font-variant-numeric:tabular-nums;cursor:pointer}
@media (hover:hover){.cmo:hover{border-color:var(--line)}}
.cmo.out{background:transparent;color:var(--ink3);font-weight:500}
.cmo.gap{background:var(--poppy-ink);border-color:var(--poppy-ink);color:#FFFFFF}
.cmo.partial{background:var(--sunflower);border-color:var(--sunflower);color:#111111}
.cmo.partial::after{content:"";position:absolute;top:0;right:0;width:9px;height:9px;border-top-right-radius:4px;
  background:linear-gradient(225deg,var(--poppy) 0 38%,#111111 38% 53%,transparent 53%)}
.cmo.covered{box-shadow:inset 0 0 0 2px var(--meadow)}
.cmo.past{background:transparent;border-style:dashed;color:var(--ink3)}
.cmo.inweek{outline:2px solid var(--line);outline-offset:1px}
.cmo.today{font-weight:900;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:2px}
/* the focus ring wins over the week's outline */
.cmonth .cmo:focus-visible{outline:3px solid var(--link);outline-offset:1px;z-index:1}
/* The caregivers, a card each, as the grown-ups are on Family; and the
   kids' info, a card each the same way. */
.cgcards,.kidcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}
.cgcard,.kidcard{display:flex;flex-direction:column;gap:3px;min-width:0;padding:12px 14px;background:var(--panel2);
  border:2px solid var(--line);border-radius:12px;font-size:13px}
.cgcard h3,.kidcard h3{font-size:15px;letter-spacing:.03em;margin-bottom:2px}
.cgmeta,.kidborn{font-size:12.5px;color:var(--ink2)}
.cgacts{margin-top:6px}
/* a caregiver's phone and email, each a link; long ones wrap */
.cgcontact{display:flex;flex-wrap:wrap;gap:0 12px;font-size:12.5px}
.cgcontact > *{min-width:0;overflow-wrap:anywhere}
/* a kid's info: each field's name, set like a label, over its text, kept
   in the lines it was typed in */
.kinfo{margin:4px 0 0}
.kinfo dt{margin-top:8px;font-family:var(--font-display);font-size:11px;font-weight:700;color:var(--ink2);
  text-transform:uppercase;letter-spacing:.07em}
.kinfo dt:first-child{margin-top:0}
.kinfo dd{margin:1px 0 0;white-space:pre-line;overflow-wrap:anywhere}
.kidcard > .muted{font-size:12.5px}
/* A caregiver's private link: its address in a field of its own to read
   and copy (a line to itself), its buttons, and when it was last opened. */
.cglink{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px}
.linkurl{flex:1 1 100%;min-width:0;padding:4px 10px;border:2px solid var(--line);border-radius:10px;background:var(--panel);
  color:var(--ink2);font:inherit;font-family:var(--font-body);font-size:12px;font-weight:500;text-overflow:ellipsis}
.cglink .muted{font-size:12px}
/* Hours and pay: a card per caregiver with a rate, as the caregivers' are
   but a table wide, each a table of pay periods (which scrolls sideways in
   its own box on a phone, not the page, its periods staying in view) and a
   row to correct the hours under it. A period's corrections sit under its
   hours, and its payments one a line, with a word in the warning colour
   when it was paid twice or has changed since. */
.paynote{margin:0 0 12px;font-size:12.5px;line-height:1.5;color:var(--ink2)}
.paycards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,720px),1fr));gap:12px}
.paycard{display:flex;flex-direction:column;gap:6px;min-width:0;padding:12px 14px;background:var(--panel2);
  border:2px solid var(--line);border-radius:12px;font-size:13px}
.paycard h3{font-size:15px;letter-spacing:.03em}
.paymeta{font-size:12.5px;color:var(--ink2)}
.paycard .tw{background:var(--panel);border:1.5px solid var(--line2);border-radius:10px}
.paytable td{vertical-align:top}
.payfixes{display:flex;flex-direction:column;align-items:flex-end;gap:4px;margin-top:4px}
.payfix{display:inline-flex;align-items:center;gap:6px}
.payline{display:flex;align-items:center;gap:8px}
.payline + .payline{margin-top:4px}
.paysub{display:block;margin-top:3px;font-size:11.5px;color:var(--ink3)}
.paywarn{margin-top:4px;font-size:12px;font-weight:700;color:var(--warn)}
.payfixlabel{margin:6px 0 0}
.payadd{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1.4fr) auto;gap:8px;align-items:end}
.payadd select,.payadd input{width:100%;min-width:0}
.paycard .merr{text-align:left}
@media (max-width:560px){
  .paypanel > .pb{padding:12px}
  .paycard{padding:10px}
  /* the period, on two lines, stays put as the rest scrolls under it; while
     there's more to the right, a flat band on the box's right edge says so
     (the panel's colour, scrolling with the table, covers it at the end) */
  .paytable th:first-child,.paytable td:first-child{position:sticky;left:0;z-index:1;white-space:normal}
  .paytable td:first-child{background:var(--panel)}
  .paytable th:first-child{z-index:2}
  .paycard .tw{background:linear-gradient(var(--panel),var(--panel)) right / 8px 100% no-repeat local,
    linear-gradient(var(--line2),var(--line2)) right / 8px 100% no-repeat scroll,var(--panel)}
  /* a correction's chip over its Remove, its note wrapping, so Hours stays
     narrow and Mark paid near */
  .payfix{flex-direction:column;align-items:flex-end;gap:3px}
  .payfix .chip{width:max-content;max-width:12em;border-radius:8px;white-space:normal;overflow-wrap:anywhere;text-align:right}
  .payadd{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .payadd .pfperiodf,.payadd .pfnotef{grid-column:1 / -1}
  .payadd .btn{justify-self:start}
  /* the row hovered, its held period cell too */
  @media (hover:hover){.paytable tbody tr:hover td:first-child{background:var(--panel2)}}
}
/* Care hours: the household's, a sentence with a time field at each end
   (and why a pair typed was refused, under it); then a row per kid and each
   kid's dates, a line each with Remove after the words (under them when
   they need the room), and how many are past. */
.carehh{padding:12px 16px;font-size:13.5px;line-height:1.6}
/* both fields one width: Chrome sizes a time field to what it shows, so "AM"
   would crowd the start's clock and leave a gap in the end's */
.carehh input[type=time]{width:8.75em;margin:3px 0;vertical-align:middle}
.carehours .merr{padding:0 16px 12px;text-align:left}
/* a kid's week in words wraps (each time kept whole), so the table fits a
   phone and Edit isn't cut off at its edge */
.carehours td:nth-child(2){white-space:normal}
.ndates{padding:12px 16px;border-top:1px solid var(--line2)}
.ndates .klabel{margin-bottom:2px}
.needdates{list-style:none;margin:0;padding:0}
.needdates li{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:6px 0;border-bottom:1px solid var(--line2);font-size:13px}
.needdates li:last-child{border-bottom:0}
.ndtext{flex:1 1 12em;min-width:0}
.ndates .pastnote{padding:4px 0 0;border-top:0}
@media (max-width:860px){.csched{grid-template-columns:minmax(0,1fr)}}
/* Phones: a day's date above its kids, and each kid's name and who has them
   on a line above their bar. */
@media screen and (max-width:560px){
  .cday{grid-template-columns:minmax(0,1fr);padding:8px 10px}
  .cdate,.ckid{grid-column:1}
  .ckid{grid-template-columns:minmax(0,max-content) minmax(0,1fr);grid-template-areas:"name text" "bar bar";gap:3px 8px}
}

/* ---------- Google Calendar (Settings) ----------
   The connection, then the calendars to show: a box each, a swatch in the
   calendar's colour ringed in ink (a pale one still shows), a long name or
   address wrapping rather than widening a phone's page. Then what goes to
   Ohmorrow's own calendars, a box a kind, and the sharing step. */
.gpanel > .pb{display:flex;flex-direction:column;gap:14px}
.gpanel > .pb > p{margin:0}
.gpanel .alert{margin:0}
.gpanel .gacct{overflow-wrap:anywhere}
.gpanel :is(.gstat,.gfail,.hint){font-size:12.5px}
.gpanel :is(.gread,.gpush){gap:0}
/* each row a whole tap target (44px), its box and name: a calendar to
   show, a kind to push, a calendar's Done tick; a long name wraps, with
   room above and below so the rows don't run together */
.gpanel :is(.gcal,.gopt,.gdone){display:flex;align-items:center;gap:9px;min-height:44px;padding:5px 0;font-size:13.5px;cursor:pointer;
  min-width:0;overflow-wrap:anywhere}
.gpanel :is(.gcal,.gopt,.gdone) input{width:18px;height:18px;margin:0;flex:none;accent-color:var(--ink)}
.gpanel :is(.gcal,.gopt,.gdone) input:disabled{cursor:default}
/* a row waiting (its change on its way, or Remove everything): its words
   turn the muted ink, in dark mode as in light, and its box keeps the
   browser's own disabled look (a fade on the whole row left the box faint
   in light mode) */
.gpanel :is(.gopt,.gdone,.gcal):has(input:disabled){color:var(--ink3)}
/* How to share, on the status line: a button (Enter and Space work) that
   reads as the link it stands for */
.gpanel .ghow{background:none;border:0;padding:0;margin:0;color:var(--link);text-decoration:underline;font:inherit;cursor:pointer}
/* the sharing step: a card of its own (something to do), each address in a
   field of its own beside its Copy, then a row a calendar (its link, which
   wraps on a phone rather than widening the page, what to do there, and
   its Done tick) */
.gpanel .gshare{display:flex;flex-direction:column;gap:10px;min-width:0;padding:12px 14px;background:var(--panel2);
  border:2px solid var(--line);border-radius:12px}
.gpanel .gshare > .klabel{margin-bottom:0}
.gpanel .gshare > p{margin:0;font-size:12.5px}
.gpanel .gaddr{display:flex;align-items:center;gap:6px;min-width:0}
.gpanel .shareaddr{flex:1 1 auto;min-width:0;padding:4px 10px;border:2px solid var(--line);border-radius:10px;background:var(--panel);
  color:var(--ink2);font:inherit;font-family:var(--font-body);font-size:12px;font-weight:500;text-overflow:ellipsis}
.gpanel .gsharelist{list-style:none;margin:0;padding:0}
.gpanel .gsharelist li{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:10px 0 0;margin-top:10px;
  border-top:1px solid var(--line2);font-size:13px;min-width:0}
.gpanel .gsharelist li:first-child{margin-top:0}
.gpanel .gsharelist li p{margin:0;overflow-wrap:anywhere}
.gpanel .gsharelist .btn{max-width:100%;white-space:normal;text-align:left;border-radius:14px}
.gpanel .gshare > .ghide{align-self:flex-start}
.gpanel .gsw{width:12px;height:12px;flex:none;border-radius:3px;box-shadow:0 0 0 1px var(--ink)}
.gpanel .gbtns{display:flex;gap:8px;flex-wrap:wrap}
/* busy marks on events no longer in the calendar: a row each, Clear after it */
.gpanel .gmarks .klabel{margin-bottom:2px}
.gpanel .gstale{list-style:none;margin:0;padding:0;font-size:13px}
.gpanel .gstale li{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;min-height:44px;
  border-bottom:1px solid var(--line2);overflow-wrap:anywhere}
.gpanel .gstale li:last-child{border-bottom:0}
.gpanel .gmarks > p{margin:4px 0 0;font-size:12.5px}

/* ---------- modal ---------- */
.scrim{position:fixed;inset:0;background:rgba(17,17,17,.5);display:none;z-index:80;
  align-items:center;justify-content:center;padding:20px}
.scrim.on{display:flex}
.modal{background:var(--panel);border:2px solid var(--line);border-radius:16px;width:min(440px,100%);
  box-shadow:var(--pop);max-height:88vh;overflow:auto;
  scroll-padding-bottom:96px}   /* what Tab moves to stays clear of the sticky footer (86px with a message) */
.modal::before{content:"";display:block;height:6px;background:var(--stripe)}   /* the header's stripe band */
.modal .mh{padding:15px 17px;border-bottom:2px solid var(--line)}
.modal .mh h3{font-size:17px;letter-spacing:.04em;text-transform:uppercase}
.modal .mh .s{font-size:12px;color:var(--ink2);margin-top:3px}
.modal .mb{padding:15px 17px;display:flex;flex-direction:column;gap:14px}
.modal .mf{padding:12px 17px;border-top:2px solid var(--line);display:flex;gap:8px;justify-content:flex-end;
  flex-wrap:wrap;position:sticky;bottom:0;background:var(--panel);z-index:1}   /* Save stays in reach on a long dialog */
/* why Save didn't go through */
.merr{flex-basis:100%;text-align:right;font-size:12.5px;font-weight:700;color:var(--bad)}
.optrow{display:flex;gap:7px;flex-wrap:wrap}
.opt{flex:1;min-width:96px;padding:9px;border:2px solid var(--line);border-radius:12px;background:var(--panel);
  cursor:pointer;text-align:center;font-size:12.5px;font-weight:700}
@media (hover:hover){.opt:hover{background:var(--sunflower);color:#111111}}
.opt[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.impact{font-size:12.5px;color:var(--ink2);background:var(--panel2);border:1.5px solid var(--line2);
  border-radius:12px;padding:10px 12px;line-height:1.6;overflow-wrap:anywhere}   /* a blackout or busy mark's words may have no spaces */
.impact b{color:var(--ink)}
/* the day dialog: whose day it shows, the two adults side by side across the
   dialog, then who has each kid that day */
.modal .mb > .seg button{flex:1;padding:7px 12px}
/* four options (the partner's leave) sit two by two at any width, rather than three and one */
.optrow.halves .opt{flex:1 1 40%}
.daykids{display:flex;flex-direction:column;gap:6px;font-size:13px}
.daykids .klabel{margin-bottom:0}
/* the family calendar that day: an event a row, a button (with a chevron
   that turns as it opens) for its busy choices, who a mark makes busy and
   Open in Google after it, then the choices, across the row */
.dayfam .klabel{margin-bottom:4px}
.fevents{list-style:none;margin:0;padding:0;font-size:13px}
.fevent{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;padding:2px 0;border-bottom:1px solid var(--line2)}
.fevent:last-child{border-bottom:0}
.fevent .fev{flex:1 1 12em;min-width:0;min-height:40px;padding:8px 0;border:0;background:none;color:inherit;font:inherit;
  text-align:left;cursor:pointer;overflow-wrap:anywhere}
.fevent .fev::after{content:"";display:inline-block;width:6px;height:6px;margin-left:9px;border:solid var(--ink2);
  border-width:0 2px 2px 0;vertical-align:3px;transform:rotate(45deg)}
.fevent .fev[aria-expanded="true"]::after{vertical-align:-1px;transform:rotate(-135deg)}
.fmark{flex:1 1 100%;display:flex;flex-direction:column;gap:6px;padding:2px 0 10px}
.fmark .klabel{margin-bottom:0}
.fmark .muted{font-size:12px}
/* the kid and caregiver dialogs: seven day toggles, Monday first */
.daypick{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.daypick .opt{min-width:0;padding:7px 0;font-size:12px}
/* two short fields side by side, even on a phone (a pair of times) */
.pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pair input{width:100%;min-width:0}
/* a caregiver's week: a row per day, on or off, and its hours */
.pat{display:flex;flex-direction:column;gap:6px}
.patrow{display:grid;grid-template-columns:62px minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:center}
.patrow input[type=time]{width:100%;min-width:0}
.patrow:has(.cOn:not(:checked)) input[type=time]{opacity:.5}   /* a day they don't come */
@media (max-width:480px){      /* room for "08:00 AM" in both fields on a phone */
  .patrow{grid-template-columns:52px minmax(0,1fr) minmax(0,1fr);gap:6px}
  .patrow .check{gap:7px}
  .patrow input[type=time]{padding:6px 5px;font-size:13px}
}
.checks{display:flex;flex-wrap:wrap;gap:8px 18px}
/* the weekday editor: a row a day, its name and its choice, and under the
   choice its times for These hours */
.nweek{display:flex;flex-direction:column;gap:10px}
.nrow{display:grid;grid-template-columns:2.6em minmax(0,1fr);gap:6px 10px;align-items:center}
.nday{font-family:var(--font-display);font-size:13px;font-weight:800}
.nrow select{width:100%;min-width:0}
.nrow .pair{grid-column:2}
/* the care day editor: per kid, who would have them (the preview), what care
   they need that day and what usual is; then per caregiver, their day */
.cdkid{gap:8px}
.cdnow{display:flex;flex-wrap:wrap;gap:4px}
.cdcg{display:flex;flex-direction:column;gap:6px}
/* a hint under a field, outside its label (so it's read once, as the field's description) */
.fhinted{display:flex;flex-direction:column;gap:4px;min-width:0}
.fhint{font-size:12px;font-weight:500}
.patrow .patnote{grid-column:3;margin-top:-4px}   /* under a weekly day's end */
/* a dialog's list (closures, dated days) and the fields that add to it */
.mlist td{padding:7px 2px;vertical-align:middle}
.mlist td:last-child{padding-right:5px}   /* room for the Remove button's focus ring, which the scroller would cut */
.mlist .muted{font-size:12px;margin-top:1px}
.mnone{font-size:12.5px;color:var(--ink3);padding:2px 0 4px}
.addrow{display:flex;flex-direction:column;gap:10px;margin-top:8px;padding:12px;border:1.5px dashed var(--line2);
  border-radius:12px}
.addrow .btn{align-self:flex-start}
.addrow .grid2{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}   /* two dates side by side unless it's narrow */
/* the plan editor: who's going, a box per grown-up then per kid, each with a
   dot in their colour; and, for a saved plan, the leave it takes and what it
   does to care */
.whoset{border:0;margin:0;padding:0;min-width:0;display:flex;flex-direction:column;gap:8px}
.whoset legend{padding:0}
.check .pdot{width:12px;height:12px;margin-right:-3px}
.planfx{display:flex;flex-direction:column;gap:2px}
.planfx .pgap{color:var(--bad);font-weight:700}
/* the people on a plan, in the planned table: a chip each, a dot in their
   colour. They wrap before the table has to scroll sideways, two or so to a
   line when it scrolls anyway (a phone). */
.pchips{display:inline-flex;flex-wrap:wrap;gap:4px;min-width:140px}
.pchip{display:inline-flex;align-items:center;gap:5px;padding:1px 8px 1px 4px;border-radius:999px;
  border:1.5px solid var(--line2);background:var(--accent-soft);color:var(--ink);font-size:11.5px;font-weight:700}
.pchip .pdot{width:10px;height:10px;border-width:1.5px}
/* a plan's title in the planned table (a button, as a name is on Family),
   after a square in its colour, edged in ink as the Month's pips are, so a
   pale colour still shows */
.psq{flex:none;width:9px;height:9px;border-radius:3px;box-shadow:0 0 0 1px var(--ink)}
/* a cell's chips one above the other (each adult's booking), and what was
   spent under a budget */
.lines{display:inline-flex;flex-direction:column;align-items:flex-end;gap:3px}
td .spent{display:block;font-size:12px}

/* ---------- misc ---------- */
.empty{padding:34px 16px;text-align:center;color:var(--ink3);font-size:13px}
.empty::before{content:"";display:block;width:64px;height:64px;margin:0 auto 12px;background:center/contain no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-60 -60 120 120'%3E%3Cg fill='%23F7A8C4'%3E%3Ccircle cx='0' cy='-30' r='24'/%3E%3Ccircle cx='28.5' cy='-9.3' r='24'/%3E%3Ccircle cx='17.6' cy='24.3' r='24'/%3E%3Ccircle cx='-17.6' cy='24.3' r='24'/%3E%3Ccircle cx='-28.5' cy='-9.3' r='24'/%3E%3C/g%3E%3Ccircle r='15' fill='%23E4312B'/%3E%3C/svg%3E")}
.bars{display:flex;flex-direction:column;gap:9px}
.bar{display:grid;grid-template-columns:112px 1fr 96px;gap:11px;align-items:center;font-size:12.5px}
.bar .track{height:12px;background:var(--line2);border:1.5px solid var(--line);border-radius:999px;overflow:hidden;display:flex}
.bar .fill{height:100%}
.bar .lab{color:var(--ink2);font-variant-numeric:tabular-nums}
.bar .val{text-align:right;font-variant-numeric:tabular-nums;color:var(--ink2)}
/* text for screen readers only, hidden as the Month's lines are on a phone */
.vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.foot{margin-top:26px;font-size:11.5px;color:var(--ink3);text-align:center;line-height:1.8}
.saved{font-size:11.5px;color:var(--ink3)}
@media (max-width:860px){
  .hbloom{display:none}
  .hrow{padding-right:20px}
}
/* Tablets, phones and short landscape screens: the header can wrap tall (a long
   name or sync status pushes the stats to a second row) and the screen is short,
   so let the header scroll away and keep just the nav bar pinned. */
@media (max-width:1000px), (max-height:560px){
  .masthead{display:contents}
  header{overflow:hidden}   /* the masthead no longer clips the bloom */
  nav{position:sticky;top:0;z-index:40;background:var(--bg);border-bottom:3px solid var(--line)}
}
/* Just past the tablet breakpoint the masthead is pinned again, with the
   least room beside the brand: the stats come a little closer and smaller, so
   a longer name or sync status in the brand still leaves them one row. */
@media (min-width:1001px) and (max-width:1180px){
  .hstat{gap:16px}
  .hstat .v{font-size:20px;max-width:8em}
}
@media (max-width:640px){
  .cal,.calhead{gap:4px}
  .cell{min-height:62px;padding:5px 4px}
  .cell .dn{flex-direction:column;align-items:flex-start;gap:0}   /* hours go under the date */
  /* The lines are for screen readers only here (visually hidden, as the
     wall's weekday letters are); the marks below stand in for them on
     screen, and are aria-hidden, so nothing is read twice. */
  .cell .lbl{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;
    clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  /* The household's marks in a row along the day's foot, in place of its
     lines: her dot, a care gap's flag, a blackout's hatch, a pip per plan
     and each family date's emoji. One row: a mark that doesn't fit wraps
     onto a second, which sits past the row's clipped edge, out of sight and
     never half in view. The day's dialog names them all. */
  .cell .cmark{display:flex;flex-wrap:wrap;align-items:center;align-content:flex-start;gap:8px 2px;position:absolute;
    left:4px;right:4px;bottom:5px;height:13px;overflow:hidden;font-size:11px;line-height:13px}
  .cmark .cdot{width:6px;height:6px;margin:0 1px}
  .cmark .chatch{width:3px;margin:0}
  .cmark .cflag{color:var(--bad);font-weight:800}
  .cmark .cpip{width:4px;height:10px;border-radius:1px;box-shadow:0 0 0 1px var(--ink)}
  .cmark .cfdot{width:8px;height:8px;margin:0 1px}
  .hstat{gap:16px}
  .hstat .v{font-size:17px}
  /* actions get their own row under the text instead of squeezing it */
  .alert{flex-wrap:wrap}
  .alert > div{flex:1 1 0;min-width:0}
  .alert .act{flex:1 0 100%;justify-content:flex-start;padding-left:27px}
}
/* Phones: the stats two by two under the brand, however many there are. The
   header scrolls away here, so a long value wraps instead of being cut short. */
@media (max-width:560px){
  .hstat{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;flex:1 1 100%}
  .hstat .v{max-width:none;white-space:normal;overflow-wrap:anywhere}
  /* The nav's seven tabs, four and three, every one in view, instead of a
     row that scrolls sideways. It is still pinned (above), two rows in about
     87px. Set a little tighter than the wider nav, so "This week" and "TJ's
     leave" fit on a 375px phone; a longer label (a long name in "…'s leave")
     ends in an ellipsis. */
  nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 5px;padding:8px 16px 10px;overflow:visible}
  nav button{min-width:0;padding:4px 3px;font-size:12px;letter-spacing:.02em;overflow:hidden;text-overflow:ellipsis}
}
/* From 390px the nav's sides line up with the page's again. */
@media (min-width:390px) and (max-width:560px){nav{padding-left:20px;padding-right:20px}}
/* A tab's short label ("Week" for This week) shows only on phones under
   375px, where the long one would fit with no room to spare; there the long
   one stays for screen readers, which never hear the short one. Under 360px
   the nav is set tighter still. */
.nshort{display:none}
@media (max-width:374px){
  nav .nlong{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;
    clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  nav .nshort{display:inline}
}
@media (max-width:359px){
  nav{gap:6px 4px;padding-left:12px;padding-right:12px}
  nav button{font-size:11px}
  nav .nbadge{margin-left:4px;padding:0 4px}
}

/* ---------- sign-in, status, toast ---------- */
.brand .who{font-size:11.5px;color:var(--ink2);letter-spacing:0;text-transform:none;margin-top:2px}
.brand .who a{color:var(--link);text-decoration:none;font-weight:700}
@media (hover:hover){.brand .who a:hover{text-decoration:underline}}
.sync.ok{color:var(--good);font-weight:700}
.sync.ok::before{content:"✿";display:inline-block;margin-right:3px}
/* Only spin when JS marks a just-completed save 'fresh' (see app-ui/sync.js);
   plain re-renders (a tab switch) rebuild #who without that class. */
.sync.ok.fresh::before{animation:bloomspin .7s ease-out 1}
.sync.saving{color:var(--ink3)}
.sync.offline,.sync.error{color:var(--warn);font-weight:700}
@keyframes bloomspin{from{transform:rotate(-180deg) scale(.4)}to{transform:none}}
body.signed-out nav, body.signed-out .hstat{display:none}
.auth-status{max-width:440px;margin:20px auto;padding:12px 16px;text-align:center;background:var(--panel);
  color:var(--ink2);border:2px solid var(--line);border-radius:var(--radius)}
.auth-status[hidden]{display:none}
.auth-status a{color:var(--link)}
.auth-page{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:32px 20px}
body.auth-route > .masthead,body.auth-route > .wrap,body.auth-route > .scrim,body.auth-route > .toast{display:none}
.cl-formFieldInput::placeholder{color:#6B675F;opacity:1}
.login{max-width:380px;margin:48px auto 0}
.login-actions{display:flex;gap:10px;margin-top:16px}
.login-actions .btn{flex:1;justify-content:center;padding:9px}
.login input{width:100%;padding:9px 11px;font-size:15px}
.lmsg{min-height:18px;margin-top:10px;font-size:12.5px;color:var(--warn)}
.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%) translateY(20px);opacity:0;pointer-events:none;
  background:var(--ink);color:var(--bg);padding:11px 18px;border-radius:999px;font-size:13px;font-weight:600;
  max-width:min(560px,calc(100vw - 32px));overflow-wrap:anywhere;transition:opacity .2s,transform .2s;z-index:120}
.toast.on{opacity:1;transform:translateX(-50%) translateY(0)}
code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;background:var(--panel2);
  border:1px solid var(--line2);border-radius:4px;padding:0 4px}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation:none !important;transition:none !important}
}

/* ---------- print: the year wall as a poster ----------
   Landscape on whatever paper is chosen (tabloid by default in the dialog;
   poster sizes scale because cell heights follow the page height). Only the
   wall and the 1-6-4 print from the Year tab; other tabs print as they are. */
@media print{
  @page{size:landscape;margin:.35in}
  html,body{background:#FFFFFF !important;color:#111111}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .masthead,header,nav,.foot,.toast,.scrim,.auth-status,#auth-root{display:none !important}
  .wrap{max-width:none;padding:0}
  .panel{border-width:1.5px;margin-top:0;break-inside:avoid}
  .btn,.seg,.ph .note{display:none !important}
  /* #view holds an optional warning, then one wrapper div with the panels */
  body[data-tab="year"] #view > .alert,
  body[data-tab="year"] #view > div > :not(.wall):not(.p164){display:none !important}
  body[data-tab="year"] .wall .ph{padding:6px 10px}
  body[data-tab="year"] .wall .ph h2::before{content:"OHMORROW · "}
  /* Type is sized for tabloid and grows on taller sheets: each clamp() floor is the
     tabloid size, and its vh term only passes that floor above tabloid's 10.3in of
     printable height, so tabloid and letter print exactly as sized here. */
  body[data-tab="year"] .ph h2{font-size:clamp(14px, 1.41vh, 32px)}
  body[data-tab="year"] .wall .pb{padding:8px 10px}
  body[data-tab="year"] .ywrap{grid-template-columns:repeat(12,1fr) !important;gap:2px}
  body[data-tab="year"] .ymon{font-size:clamp(8pt, 1.07vh, 22pt);padding:0 0 2px}
  /* The 31 rows get what the page doesn't spend outside them (headings, gaps, legend,
     the 1-6-4 strip): 4in on tabloid and letter, and more on taller sheets, where that
     type grows (2.45in + 15vh only passes 4in above tabloid). One sheet at every size. */
  body[data-tab="year"] .ycell{height:calc((100vh - max(4in, 2.45in + 15vh)) / 32);min-height:12px;font-size:clamp(7pt, .94vh, 20pt)}
  body[data-tab="year"] .ycell .ypl{width:clamp(6.5px, .65vh, 14px)}
  /* The household's marks. On letter a day is only 12px tall, with no room
     inside for the both-off ring, so in print the ring is the day's border
     plus the thin inner edge, and grows inward only on sheets above tabloid. */
  body[data-tab="year"] .ywrap{--ytri:clamp(8px, .8vh, 18px);--ydot:clamp(4.5px, .45vh, 10px);--yring:clamp(0px, .2vh - 2px, 2px)}
  body[data-tab="year"] .ywrap.lay-me.lay-partner .ycell.free{border-color:var(--meadow)}
  body[data-tab="year"] .ycell .ystk{font-size:clamp(6.5pt, .87vh, 18pt)}
  body[data-tab="year"] .ycell.tdy{outline:none}
  /* One line, always: a second one (names in the legend can be long) would push the 1-6-4 onto
     another sheet. Its keys run as text, so a line too long ends in an ellipsis, not a hard cut. */
  body[data-tab="year"] .legend{display:block;padding:5px 10px;font-size:clamp(7.5pt, 1.01vh, 20pt);
    overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  body[data-tab="year"] .legend > span{display:inline;margin-right:14px}
  body[data-tab="year"] .legend > span > span{vertical-align:middle;margin-right:6px}
  body[data-tab="year"] .legend .sw{width:1.2em;height:1.2em}
  body[data-tab="year"] .legend .sw.ypl{width:.65em}
  body[data-tab="year"] .legend .sw:is(.ydot,.yfam){width:.8em;height:.8em}
  body[data-tab="year"] .p164{margin-top:6px}
  body[data-tab="year"] .p164 .impact{display:none}
  body[data-tab="year"] .p164 .ph{padding:6px 10px}
  body[data-tab="year"] .p164 .pb{padding:6px 10px}
  body[data-tab="year"] .p164 .klabel{font-size:clamp(6.5pt, .87vh, 18pt);margin-bottom:2px}
  body[data-tab="year"] .p164 .slots{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin-bottom:5px !important}
  body[data-tab="year"] .p164 .slot{min-height:0;padding:3px 7px;gap:0;line-height:1.25}
  body[data-tab="year"] .p164 .slot .st{font-size:clamp(6.5pt, .87vh, 18pt)}
  /* one line per slot keeps the strip a fixed height, so a long title can't push it to a second sheet */
  body[data-tab="year"] .p164 .slot .sv{font-size:clamp(9pt, 1.21vh, 24pt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body[data-tab="year"] .p164 .slot .sempty{font-size:clamp(8pt, 1.07vh, 22pt)}
  body[data-tab="year"] .p164 .slot .sd{display:none}
}
