/* Prodygy schedule grid. Uses the journal's theme tokens, so it follows the
   five themes on both pages without a colour of its own. */
.sg { --gutter: 58px; position: relative; }
.sg-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 10px; }
.sg-sum { font-size: 12.5px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-chip { flex: none; font: 600 11.5px/1 inherit; font-family: inherit; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.sg-chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.sg-grid { position: relative; margin-top: 8px; }   /* room for the first hour label, which sits on the line */
/* The line runs across the lane only, so the hour label sits in the gutter
   on the line without needing a background to hide it. */
.sg-row { display: grid; grid-template-columns: var(--gutter) 1fr; height: var(--slot); position: relative; }
.sg-row::before { content: ""; position: absolute; left: var(--gutter); right: 0; top: 0; border-top: 1px solid var(--line); }
.sg-row.hour::before { border-top-color: var(--line-2); }
.sg-row.past .sg-t { opacity: .55; }
.sg-t { font-size: 11px; color: var(--muted); text-align: right; padding: 0 8px 0 0; margin-top: -8px; line-height: 16px; font-variant-numeric: tabular-nums; letter-spacing: .02em; align-self: start; justify-self: end; }
.sg-lane { position: absolute; top: 0; bottom: 0; left: var(--gutter); right: 6px; pointer-events: none; }
.sg-lane > * { pointer-events: auto; }

.sg-ev, .sg-blk { position: absolute; box-sizing: border-box; overflow: hidden; border-radius: 5px; font-size: 12.5px; line-height: 1.3; text-align: left; }
/* A button centres its content whatever its display; a column flex pins the
   title to the top, so an event reads like a note on a calendar. */
.sg-ev { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; margin: 0; border: 1px solid color-mix(in srgb, var(--gc) 38%, transparent); border-left: 4px solid var(--gc); background: color-mix(in srgb, var(--gc) 16%, var(--surface)); color: var(--ink); padding: 4px 8px 3px; font-family: inherit; cursor: pointer; }
.sg-ev:hover { background: color-mix(in srgb, var(--gc) 24%, var(--surface)); }
.sg-ev.past { opacity: .62; }
.sg-ev:focus-visible { outline: 2px solid var(--gc); outline-offset: 1px; }
.sg-ev b { display: block; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-ev span { display: block; min-width: 0; color: var(--ink-soft); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-ev.short { flex-direction: row; align-items: center; gap: 8px; padding: 0 8px; }
.sg-ev.short b { display: inline; flex: none; max-width: 70%; } .sg-ev.short span { display: inline; }
.sg-ev.tentative { background: var(--surface); border: 1.5px dashed var(--gc); border-left: 4px solid var(--gc); }

.sg-blk { border: 1.5px dashed var(--brand); border-left: 4px solid var(--brand); padding: 4px 8px 3px;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--brand) 9%, var(--surface)) 0 6px, color-mix(in srgb, var(--brand) 4%, var(--surface)) 6px 12px); }
.sg-blk .sg-in { font-size: 12.5px; font-weight: 600; color: var(--brand-ink); padding: 0; width: calc(100% - 22px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-blk.done .sg-in { text-decoration: line-through; color: var(--muted); }
.sg-meta { display: block; font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-blk.short { padding-top: 0; padding-bottom: 0; display: flex; align-items: center; } .sg-blk.short .sg-meta { display: none; }
.sg-star { position: absolute; top: 2px; right: 4px; border: none; background: none; font-size: 14px; line-height: 1; color: var(--line-2); cursor: pointer; padding: 2px; }
.sg-star:hover, .sg-star.on { color: #d9a400; }
.sg-grip { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; touch-action: none; }
.sg-grip::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 26px; height: 3px; margin-left: -13px; border-radius: 2px; background: color-mix(in srgb, var(--brand) 35%, transparent); opacity: 0; transition: opacity .12s; }
.sg-blk:hover .sg-grip::after, .sg-blk.resizing .sg-grip::after { opacity: 1; }
.sg-blk.resizing { box-shadow: 0 6px 18px rgba(0,0,0,.12); z-index: 4; }

.sg-more { position: absolute; right: 4px; font: 700 11px/1 inherit; font-family: inherit; color: var(--brand-ink); background: var(--brand-soft); border: none; border-radius: 999px; padding: 4px 7px; cursor: pointer; }
.sg-now { position: absolute; left: -8px; right: 0; border-top: 2px solid #d64545; z-index: 3; pointer-events: none; }
.sg-now::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: #d64545; }
.sg-now i { position: absolute; right: 0; top: -9px; font: 600 11px/1 inherit; font-family: inherit; font-style: normal; color: #d64545; background: var(--surface); border-radius: 4px; padding: 2px 4px; }
.sg-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 2px 2px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2px; }
.sg-foot b { color: var(--ink); font-weight: 600; }

.sg-pop { position: absolute; z-index: 6; width: min(300px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.16); padding: 12px 14px; font-size: 12.5px; color: var(--ink); }
.sg-pop-x { position: absolute; top: 6px; right: 8px; border: none; background: none; font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; }
.sg-pop-item + .sg-pop-item { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.sg-pop-item b { display: block; font-size: 14px; margin: 0 20px 3px 0; } .sg-pop-item p { margin: 2px 0; color: var(--ink-soft); } .sg-pop-cal { color: var(--muted) !important; }
.sg-pop-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sg-pop-act a, .sg-pop-act button { font: 600 12px/1 inherit; font-family: inherit; color: var(--brand-ink); background: var(--brand-soft); border: none; border-radius: 999px; padding: 7px 11px; cursor: pointer; text-decoration: none; }
@media (max-width: 640px) {
  .sg { --gutter: 48px; }
  .sg-t { font-size: 11px; padding-right: 7px; }
  .sg-pop { position: fixed; left: 12px; right: 12px; top: auto !important; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: auto; font-size: 14px; }
  .sg-pop-item b { font-size: 16px; } .sg-pop-act a, .sg-pop-act button { font-size: 14px; padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) { .sg-grip::after { transition: none; } }

/* Iteration 2 (docs/journal-design-v2.md): a planned block is a solid deep-forest block; the now line is brass. */
.sg-blk { border: none; border-radius: 8px; background: var(--brand-dark); padding: 6px 10px 4px; box-shadow: 0 8px 20px -8px rgba(18,40,29,.35); }
.sg-blk .sg-in { color: #fff; }
.sg-blk.done .sg-in { color: rgba(255,255,255,.6); }
.sg-blk .sg-meta { color: var(--brand-soft); }
.sg-blk .sg-star { color: rgba(255,255,255,.45); }
.sg-blk .sg-star:hover, .sg-blk .sg-star.on { color: var(--brass, #d9a400); }
.sg-blk .sg-grip::after { background: rgba(255,255,255,.55); }
.sg-ev { border-radius: 8px; border-color: transparent; }
.sg-now { border-top-color: var(--accent); }
.sg-now::before { background: var(--accent); }
.sg-now i { color: #fff; background: var(--accent); }
.sg-chip { border-radius: 999px; }

/* Tasks given a time (priorities, quick wins, any task). Lighter than a
   meeting, with a check box, so a planned task never reads as an invitation. */
.sg-task { position: absolute; box-sizing: border-box; overflow: hidden; display: flex; align-items: flex-start; gap: 7px; padding: 5px 24px 3px 7px;
  border-radius: 8px; border-left: 4px solid var(--brand); background: color-mix(in srgb, var(--brand) 11%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 22%, transparent); font-size: 12.5px; line-height: 1.3; color: var(--ink); cursor: grab; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.sg-task.pri { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent); }
.sg-task:hover { background: color-mix(in srgb, var(--brand) 17%, var(--surface)); }
.sg-task.pri:hover { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); }
.sg-task:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.sg-task.moving { cursor: grabbing; z-index: 5; box-shadow: 0 10px 24px -6px rgba(0,0,0,.25); opacity: .95; }
.sg-task.resizing { z-index: 5; box-shadow: 0 8px 20px -6px rgba(0,0,0,.2); }
.sg-tt { min-width: 0; flex: 1; }
.sg-tt b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-task.done .sg-tt b { text-decoration: line-through; color: var(--muted); }
.sg-task.done { opacity: .7; }
.sg-tchk { flex: none; width: 16px; height: 16px; margin-top: 1px; padding: 0; border-radius: 5px; border: 1.5px solid var(--line-2); background: var(--surface); color: transparent; cursor: pointer; display: grid; place-items: center; }
.sg-tchk svg { width: 11px; height: 11px; }
.sg-task.done .sg-tchk { background: var(--brand); border-color: var(--brand); color: #fff; }
.sg-tx { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border: none; border-radius: 6px; background: none; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; opacity: 0; }
.sg-task:hover .sg-tx, .sg-task:focus-within .sg-tx { opacity: 1; }
.sg-tx:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.sg-task.short { align-items: center; padding-top: 0; padding-bottom: 0; }
.sg-task.short .sg-meta { display: none; }
/* A 15-minute task: a quarter-hour strip in the first or second half of its half hour. */
.sg-task.q { padding: 0 20px 0 6px; gap: 5px; font-size: 11px; line-height: 1; border-radius: 4px; border-left-width: 3px; align-items: center; }
.sg-task.q .sg-tchk { width: 10px; height: 10px; margin: 0; border-radius: 3px; border-width: 1px; }
.sg-task.q .sg-tchk svg { width: 8px; height: 8px; }
.sg-task.q .sg-tx { top: 50%; transform: translateY(-50%); width: 16px; height: 16px; font-size: 13px; }
.sg-task.q .sg-grip { display: none; }
/* A meeting you plan over: still shown, faded and hatched, because its time counts as free. */
.sg-ev.over { opacity: .6; border-style: dashed; border-color: color-mix(in srgb, var(--gc) 55%, transparent); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--gc) 12%, var(--surface)) 0 6px, var(--surface) 6px 12px); }
.sg-task .sg-grip::after { background: color-mix(in srgb, var(--ink) 30%, transparent); }
.sg-task:hover .sg-grip::after, .sg-task.resizing .sg-grip::after { opacity: 1; }

/* The block that follows the pointer while a task is dragged in from a list. */
.sg-ghost { position: absolute; left: 0; right: 0; z-index: 4; box-sizing: border-box; border-radius: 8px; border: 2px dashed var(--brand); background: color-mix(in srgb, var(--brand) 14%, var(--surface)); padding: 4px 8px; pointer-events: none !important; font-size: 12.5px; line-height: 1.3; color: var(--brand-ink); overflow: hidden; }
.sg-ghost b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-ghost span { font-size: 11.5px; font-variant-numeric: tabular-nums; }

/* The time picker. */
.sg-picker-scrim { display: none; }
.sg-picker { position: absolute; z-index: 60; width: 300px; max-width: calc(100vw - 16px); box-sizing: border-box; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 48px -10px rgba(0,0,0,.28); padding: 14px 16px 16px; font-size: 13px; }
.sg-pk-x { position: absolute; top: 8px; right: 10px; border: none; background: none; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 4px; }
.sg-pk-eye { margin: 0 24px 2px 0; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sg-pk-t { display: block; font-size: 15px; font-weight: 650; margin: 0 20px 10px 0; overflow-wrap: anywhere; }
.sg-pk-lab { margin: 12px 0 6px; font-size: 12px; color: var(--muted); }
.sg-pk-row { display: flex; flex-wrap: wrap; gap: 6px; }
.sg-pk-len, .sg-pk-slot { font: inherit; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 7px 11px; cursor: pointer; font-variant-numeric: tabular-nums; }
.sg-pk-len { color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line-2); }
.sg-pk-len.on { color: #fff; background: var(--brand); border-color: var(--brand); }
.sg-pk-slot { color: var(--brand-ink); background: var(--brand-soft); border: 1px solid transparent; }
.sg-pk-slot em { font-style: normal; font-weight: 500; opacity: .75; }
.sg-pk-slot:hover, .sg-pk-len:hover { border-color: var(--brand); }
.sg-pk-len:focus-visible, .sg-pk-slot:focus-visible, .sg-pk-own button:focus-visible, .sg-pk-rm:focus-visible, .sg-pk-x:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sg-pk-own { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.sg-pk-own label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.sg-pk-own span { display: flex; gap: 6px; }
.sg-pk-own input { flex: 1; min-width: 0; font: inherit; font-size: 13.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 9px; }
.sg-pk-own input:focus { outline: none; border-color: var(--brand); }
.sg-pk-own button { flex: none; font: inherit; font-size: 13px; font-weight: 600; color: #fff; background: var(--brand); border: none; border-radius: 9px; padding: 0 14px; cursor: pointer; }
.sg-pk-rm { display: block; margin: 12px 0 0; padding: 0; border: none; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: #b3412f; cursor: pointer; }
@media (max-width: 640px) {
  .sg-picker-scrim { display: block; position: fixed; inset: 0; z-index: 59; background: rgba(10,20,15,.32); }
  .sg-picker { position: fixed; left: 0; right: 0; bottom: 0; top: auto !important; width: auto; max-width: none; border-radius: 18px 18px 0 0; padding: 18px max(18px, env(safe-area-inset-left, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-right, 0px)); font-size: 15px; }
  .sg-pk-t { font-size: 18px; }
  .sg-pk-len, .sg-pk-slot { font-size: 15px; padding: 10px 14px; }
  .sg-pk-own input { font-size: 16px; padding: 10px; } .sg-pk-own button { font-size: 15px; padding: 0 18px; }
  .sg-pk-rm { font-size: 15px; padding: 6px 0; }
  .sg-tx { opacity: 1; width: 24px; height: 24px; }
}

/* Plan my day and Plan with AI: two icon buttons, named by a tooltip and aria-label. */
.plan-ctl { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.plan-ico { position: relative; flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; color: var(--brand-ink); background: var(--brand-soft); border: none; border-radius: 10px; cursor: pointer; }
.plan-ico svg { width: 18px; height: 18px; }
.plan-ico:hover { background: color-mix(in srgb, var(--brand) 22%, var(--brand-soft)); }
.plan-ico:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.plan-ico[aria-expanded="true"] { color: #fff; background: var(--brand); }
.plan-ico:disabled { cursor: progress; }
.plan-ico .pb-spin { margin: 0; }
/* Without a paid plan: greyed, with a lock; pressing it explains the plan. */
.plan-ico.locked { color: var(--ink-soft); background: color-mix(in srgb, var(--ink-soft) 10%, transparent); }
.plan-ico.locked:hover { background: color-mix(in srgb, var(--ink-soft) 18%, transparent); }
.plan-ico.locked > svg:first-child { opacity: .55; }
.plan-ico .ai-lock { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; padding: 2.5px; color: var(--ink-soft); background: var(--surface); border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink-soft) 25%, transparent); }
@media (hover: hover) {
  .plan-ico[data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 7px); right: 0; z-index: 30; white-space: nowrap; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--surface); background: var(--ink); border-radius: 6px; padding: 4px 8px; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s; }
  .plan-ico[data-tip]:hover::after, .plan-ico[data-tip]:focus-visible::after { opacity: 1; visibility: visible; transition-delay: .3s; }
  .plan-ico[aria-expanded="true"]::after { display: none; }
}
.plan-bar { margin: 0 0 12px; padding: 11px 13px; border-radius: 12px; background: var(--brand-soft); color: var(--ink); font-size: 13px; line-height: 1.45; }
.pb-msg { margin: 0 0 8px; }
.pb-msg b { font-weight: 650; }
.pb-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pb-acts { display: flex; gap: 6px; }
.pb-btn { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--brand-ink); background: var(--surface); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); border-radius: 999px; padding: 6px 13px; cursor: pointer; }
.pb-btn.pb-keep { color: #fff; background: var(--brand); border-color: var(--brand); }
.pb-link { font: inherit; font-size: 12px; color: var(--ink-soft); background: none; border: none; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.pb-hours-form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; }
.pb-hours-form select { font: inherit; font-size: 12.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 4px 6px; }
.sg-task.proposed { outline: 2px dashed color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: -2px; }
.plan-bar.ai { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent); }
.pb-why { display: block; margin-top: 3px; color: var(--ink-soft); }
.pb-note { margin: 0; font-size: 11.5px; color: var(--ink-soft); }
.pb-spin { display: inline-block; width: 12px; height: 12px; margin-right: 7px; vertical-align: -1px; border: 2px solid color-mix(in srgb, var(--brand) 30%, transparent); border-top-color: var(--brand); border-radius: 50%; animation: pb-spin .8s linear infinite; }
@keyframes pb-spin { to { transform: rotate(360deg); } }
/* The Plan my day icon, drawn in the hint so the words point at it. */
.sg-hint-ico { display: inline-grid; place-items: center; width: 20px; height: 20px; vertical-align: -5px; color: var(--brand-ink); background: var(--surface); border-radius: 5px; } .sg-hint .sg-hint-ico svg { width: 13px; height: 13px; }
/* The Plan with AI panel: optional instructions, then Plan. */
.ai-note { margin: 0 0 12px; padding: 12px 13px; display: grid; gap: 6px; border-radius: 12px; background: var(--brand-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent); }
.ai-note-t { margin: 0 0 2px; display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--brand-ink); }
.ai-note-t svg { width: 15px; height: 15px; }
.ai-note-l { font-size: 12px; font-weight: 600; color: var(--ink); }
.ai-note-l span { font-weight: 450; color: var(--ink-soft); margin-left: 4px; }
.ai-note input { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); border-radius: 10px; padding: 8px 10px; }
.ai-note input:focus { outline: 2px solid var(--brand); outline-offset: 0; }
.ai-note-h { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--ink-soft); }
.ai-note-acts { display: flex; justify-content: flex-end; gap: 6px; margin-top: 2px; }
.ai-note .pb-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ai-note .pb-btn:disabled { opacity: .6; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .pb-spin { animation-duration: 2.4s; } }
@media (max-width: 640px) { .plan-ctl { gap: 8px; } .plan-ico { width: 42px; height: 42px; border-radius: 12px; } .plan-ico svg { width: 21px; height: 21px; } .plan-ico .ai-lock { width: 18px; height: 18px; }
  .plan-bar { font-size: 14.5px; } .pb-btn { font-size: 14px; padding: 8px 15px; } .pb-link, .pb-hours-form, .pb-hours-form select { font-size: 14px; } .pb-note { font-size: 12.5px; }
  /* 16px stops iPhone zooming the page when the box takes focus. */
  .ai-note { padding: 14px; gap: 8px; } .ai-note-t { font-size: 15px; } .ai-note-l { font-size: 13.5px; } .ai-note input { font-size: 16px; padding: 10px 11px; } .ai-note-h { font-size: 12.5px; } .ai-note-acts .pb-btn { padding: 10px 18px; } }
.sg-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Moving a block: lifted, with its start time shown even when it is short. */
.sg-task { -webkit-touch-callout: none; }
.sg-task.moving { transform: scale(1.02); transition: none; }
.sg-drag-t { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 999px; padding: 2px 7px; pointer-events: none; font-variant-numeric: tabular-nums; }
@media (hover: none) {
  .sg-task .sg-grip { height: 16px; }
  .sg-task .sg-grip::after { opacity: 1; height: 4px; width: 30px; margin-left: -15px; }
  /* A 30-minute block is barely taller than the handle would be, so a finger on
     it would always resize; it has no handle on touch screens, and its length
     is set from the time picker (tap the block). */
  .sg-task.short .sg-grip { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sg-task.moving { transform: none; } }
