/* The Tasks screen (tasks.js), in Robin's look: the green bar, warm paper, white rounded
   groups, the system font. Priority is a thin coloured edge and the tick's ring, not a flag. */
:root {
  --p3: #d1453b;
  --p2: #e0912a;
  --p1: #3f86d6;
  --tsheet: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root { --p3: #ff6b5f; --p2: #f2a945; --p1: #64a6f0; --tsheet: #19211b; }
}

.tasks-bar { grid-template-columns: 1fr auto 1fr; }
.tasks-bar .icon-btn { justify-self: start; }
.tasks-bar .bar-btn { justify-self: end; font-weight: 600; }
.tasks-bar .who-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }

.tasks-body { flex: 1; min-height: 0; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.tasks-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.tasks-tabs { margin-top: 10px; }
.tasks-find { padding: 10px 16px 0; }
.tasks-find input, .tinput, .tselect, .tnotes, .ttitle-edit {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--card);
  border: 0.5px solid var(--line); border-radius: 12px; padding: 9px 12px;
}
.tasks-find input { border-radius: 999px; }
.tasks-main {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch;
  padding: 10px 12px 16px; display: flex; flex-direction: column; gap: 14px;
}

/* Groups and rows */
.tgroup { flex: none; display: flex; flex-direction: column; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.tgroup-head {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 11px 14px 4px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: none; border: 0; font-family: inherit; text-align: left;
}
.tgroup-count { margin-left: auto; font-weight: 600; letter-spacing: 0; }
.tgroup--overdue .tgroup-head { color: var(--p3); }
.tgroup-fold { cursor: pointer; padding-bottom: 11px; }
.tgroup--done { background: none; box-shadow: none; }
.tgroup--done .trow { background: none; }
.tgroup-none { margin: 0; padding: 4px 14px 12px; color: var(--muted); font-size: 14px; }
.tempty { flex: none; text-align: center; color: var(--muted); margin: 40px 16px; font-size: 15px; line-height: 1.45; }

.trow {
  position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; background: var(--card);
  border-top: 0.5px solid var(--line); cursor: pointer; transition: transform 0.18s var(--ease-out, ease), background 0.15s;
  -webkit-tap-highlight-color: transparent; touch-action: pan-y;
}
.tgroup-head + .trow, .tgroup > .trow:first-child { border-top: 0; }
.trow.prio-3 { box-shadow: inset 3px 0 0 var(--p3); }
.trow.prio-2 { box-shadow: inset 3px 0 0 var(--p2); }
.trow.prio-1 { box-shadow: inset 3px 0 0 var(--p1); }
.trow--child { padding-left: 46px; }
.trow.is-open { background: var(--brand-soft); }
.trow:active { background: var(--brand-soft); }
.trow.swipe-tick { background: color-mix(in srgb, var(--accent) 20%, var(--card)); }
.trow.swipe-snooze { background: color-mix(in srgb, var(--p2) 22%, var(--card)); }
.trow.is-dragging, .tnav-row.is-dragging {
  z-index: 3; transition: none; background: var(--card); border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18); cursor: grabbing;
}
.is-sorting { user-select: none; -webkit-user-select: none; }
.is-sorting > :not(.is-dragging) { transition: none; }
.tnav-group { display: flex; flex-direction: column; gap: 2px; }
.tnav-row { position: relative; }
/* Holding a row to drag it shouldn't pop up the iPhone's copy menu. */
.trow, .tnav-row { -webkit-touch-callout: none; }
.trow.is-new { animation: rw-fade-in 260ms var(--ease-out, ease) both; }
.trow-body { flex: 1; min-width: 0; }
.trow-title { font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.trow.is-done .trow-title { color: var(--muted); text-decoration: line-through; }
.trow-meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 2px; margin-top: 2px; font-size: 13px; color: var(--muted); }
.tlate { color: var(--p3); font-weight: 600; }
.tlistname { display: inline-flex; align-items: center; gap: 4px; }
.tdot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.tchip { background: var(--brand-soft); color: var(--accent); border-radius: 999px; padding: 0 8px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ttag { color: var(--accent); }
.tfrom { font-style: italic; }

.ttick {
  flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--muted); background: none;
  padding: 0; cursor: pointer; display: grid; place-items: center; transition: background 0.15s, border-color 0.15s;
}
.prio-3 > .ttick, .tdetail-top .ttick.prio-3 { border-color: var(--p3); }
.prio-2 > .ttick { border-color: var(--p2); }
.prio-1 > .ttick { border-color: var(--p1); }
.ttick::after { content: ""; width: 10px; height: 5px; border: 2px solid transparent; border-top: 0; border-right: 0; transform: translate(0, -1px) rotate(-45deg); }
.ttick:hover::after { border-color: var(--muted); }
.is-done > .ttick, .ttick.is-done { background: var(--accent); border-color: var(--accent); }
.is-done > .ttick::after { border-color: #fff; }
.ttick--big { width: 28px; height: 28px; margin-top: 6px; }

/* Lists: a drawer from the left on a phone, a column on a wide screen. */
.tasks-nav {
  position: absolute; z-index: 5; top: 0; bottom: 0; left: 0; width: min(300px, 84vw); overflow-y: auto;
  background: var(--bg); padding: 12px 10px calc(env(safe-area-inset-bottom) + 16px); display: flex; flex-direction: column; gap: 2px;
  transform: translateX(-102%); transition: transform 0.28s var(--ease-out, ease); box-shadow: 8px 0 24px rgba(0, 0, 0, 0.12);
}
#tasks.drawer-open .tasks-nav { transform: none; }
.tnav-row {
  display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; color: var(--text); font: inherit;
  font-size: 15.5px; padding: 10px 12px; border-radius: 12px; cursor: pointer; text-align: left;
}
.tnav-row.is-on { background: var(--brand-soft); color: var(--accent); font-weight: 600; }
.tnav-icon { width: 18px; text-align: center; color: var(--accent); }
.tnav-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tnav-count { color: var(--muted); font-size: 13px; font-weight: 600; }
.tnav-off { color: var(--muted); font-size: 11px; }
.tnav-head { margin: 14px 12px 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tnav-new { margin-top: 8px; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; padding: 10px 12px; text-align: left; cursor: pointer; }

.tasks-scrim { position: absolute; inset: 0; z-index: 4; background: rgba(0, 0, 0, 0.32); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
#tasks.drawer-open .tasks-scrim, #tasks.has-detail:not(.is-wide) .tasks-scrim { opacity: 1; pointer-events: auto; }

.tlist-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; color: var(--muted); font-size: 13px; }
.tlink { border: 0; background: none; color: var(--accent); font: inherit; font-size: 14.5px; font-weight: 600; padding: 6px 4px; cursor: pointer; }
.tdanger { color: var(--danger); }

/* Quick add, at the bottom like the chat bar. */
.tasks-parsed { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 6px; }
.tparsed { font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: var(--brand-soft); color: var(--accent); }
.tparsed--priority { background: color-mix(in srgb, var(--p3) 14%, transparent); color: var(--p3); }
.tparsed--repeat { background: color-mix(in srgb, var(--p1) 14%, transparent); color: var(--p1); }
.tasks-add {
  display: flex; gap: 8px; align-items: center; padding: 8px 12px calc(env(safe-area-inset-bottom) + 10px);
  border-top: 0.5px solid var(--line); background: var(--bg);
}
.tasks-add input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--text); background: var(--card);
  border: 0.5px solid var(--line); border-radius: 999px; padding: 11px 16px;
}
.tasks-add button {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.tasks-add button svg { width: 20px; height: 20px; }
.tasks-offline { padding: 6px 16px; font-size: 13px; color: var(--muted); text-align: center; }

/* One task: a sheet from the bottom on a phone. */
.tasks-detail {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; max-height: 90%; overflow-y: auto;
  background: var(--tsheet); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
  padding: 14px 16px calc(env(safe-area-inset-bottom) + 18px); display: flex; flex-direction: column; gap: 12px;
  animation: tasks-sheet-up 300ms var(--ease-out, ease) both; overscroll-behavior: contain;
}
@keyframes tasks-sheet-up { from { transform: translateY(40%); opacity: 0; } }
.tdetail-top { display: flex; align-items: flex-start; gap: 10px; }
.ttitle-edit { flex: 1; font-size: 19px; font-weight: 600; font-family: var(--display); border: 0; background: none; padding: 4px 0; resize: none; overflow: hidden; }
.ttitle-edit:focus { outline: none; box-shadow: 0 1.5px 0 var(--accent); }
.tclose { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--line); color: var(--text); font-size: 15px; cursor: pointer; }
.tdone-note { margin: -6px 0 0 38px; color: var(--accent); font-size: 13px; font-weight: 600; }
.tfields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tfields .tfield:nth-child(n + 3) { grid-column: 1 / -1; }
.tfield { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tfield--row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.tfield-label { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.tfield-hint { font-size: 12.5px; color: var(--muted); }
.tinput:disabled { opacity: 0.5; }
.tselect { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.tnotes { min-height: 80px; resize: vertical; line-height: 1.4; }
.tsegment { display: flex; gap: 4px; padding: 3px; background: var(--line); border-radius: 12px; }
.tsegment button { flex: 1; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; padding: 7px 4px; border-radius: 9px; cursor: pointer; }
.tsegment button.is-on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.tsegment button.prio-3.is-on { color: var(--p3); }
.tsegment button.prio-2.is-on { color: var(--p2); }
.tsegment button.prio-1.is-on { color: var(--p1); }
.tchips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip-toggle { border: 0.5px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.tchip-toggle.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tchip-toggle:disabled { opacity: 0.45; }
.tlinked { display: flex; align-items: center; gap: 8px; background: var(--brand-soft); border-radius: 12px; padding: 9px 12px; font-size: 15px; }
.tlinked-type { text-transform: capitalize; font-weight: 700; color: var(--accent); }
.tchecklist, .tsubs { display: flex; flex-direction: column; gap: 6px; }
.tcheck { display: flex; align-items: center; gap: 8px; }
.tcheck input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.tcheck .tinput { padding: 6px 10px; }
.tcheck.is-done .tinput { color: var(--muted); text-decoration: line-through; }
.tremove { color: var(--muted); padding: 4px 6px; }
.tsubs .trow { border: 0.5px solid var(--line); border-radius: 12px; padding-left: 12px; }
.tparent { align-self: flex-start; }
.tdetail-foot { display: flex; align-items: center; gap: 12px; border-top: 0.5px solid var(--line); padding-top: 10px; }
.tmade { flex: 1; color: var(--muted); font-size: 13px; }

/* Menus and the list form, from the bottom. */
.tsheet-back { position: absolute; inset: 0; z-index: 20; background: rgba(0, 0, 0, 0.36); display: flex; align-items: flex-end; justify-content: center; }
.tsheet {
  width: min(100%, 480px); background: var(--tsheet); border-radius: 22px 22px 0 0; padding: 14px 16px calc(env(safe-area-inset-bottom) + 14px);
  display: flex; flex-direction: column; gap: 6px; animation: tasks-sheet-up 260ms var(--ease-out, ease) both; max-height: 90%; overflow-y: auto;
}
.tsheet-title { font-family: var(--display); font-weight: 700; font-size: 16px; padding: 2px 4px 8px; overflow-wrap: anywhere; }
.tsheet-option { border: 0; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 14px; text-align: left; cursor: pointer; }
.tsheet-cancel { text-align: center; color: var(--muted); background: none; }
.tsheet--form { gap: 12px; }
.tsheet-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 4px; }
.tsheet-actions .tdanger { margin-right: auto; }
.tprimary { border: 0; background: var(--accent); color: #fff; font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.tswatches { display: flex; flex-wrap: wrap; gap: 10px; }
.tswatch { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: 0 0 0 2px var(--tsheet); }
.tswatch.is-on { box-shadow: 0 0 0 2px var(--tsheet), 0 0 0 4px var(--text); }
.tdate-picker { position: fixed; bottom: 0; left: 50%; opacity: 0; width: 1px; height: 1px; }

.tasks-undo {
  position: absolute; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 112px);
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); background: #1d2620; color: #fff;
  border-radius: 14px; padding: 10px 14px; font-size: 14.5px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  animation: rw-fade-in 200ms ease both;
}
.tasks-undo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tasks-undo button { flex: none; border: 0; background: none; color: #8fe0a6; font: inherit; font-weight: 700; cursor: pointer; }

/* Wide screens and unfolded phones: lists | tasks | the open task. */
#tasks.is-wide .tasks-body { grid-template-columns: 250px minmax(0, 1fr); }
#tasks.is-wide.has-detail .tasks-body { grid-template-columns: 250px minmax(0, 1fr) minmax(320px, 400px); }
#tasks.is-wide .tasks-nav { position: static; transform: none; box-shadow: none; border-right: 0.5px solid var(--line); width: auto; }
#tasks.is-wide .tasks-detail {
  position: static; max-height: none; border-radius: 0; box-shadow: none; animation: none;
  border-left: 0.5px solid var(--line); padding-bottom: calc(env(safe-area-inset-bottom) + 18px);
}
#tasks.is-wide .tasks-scrim { display: none; }
#tasks.is-wide #tasks-lists-btn { visibility: hidden; }
#tasks.is-wide .tsheet-back { align-items: center; }
#tasks.is-wide .tsheet { border-radius: 22px; }

/* A phone that reports its fold: the tasks on one side and the open task (or the lists) on
   the other, nothing across the hinge. */
@media (horizontal-viewport-segments: 2) {
  #tasks.screen { right: 0; width: auto; }
  #tasks .tasks-body, #tasks.has-detail .tasks-body {
    grid-template-columns: env(viewport-segment-width 0 0) env(viewport-segment-width 1 0);
    column-gap: calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0));
  }
  #tasks .tasks-pane { grid-column: 1; grid-row: 1; }
  #tasks .tasks-nav { grid-column: 2; grid-row: 1; border-right: 0; }
  #tasks.has-detail .tasks-nav { display: none; }
  #tasks .tasks-detail { grid-column: 2; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .tasks-detail, .tsheet, .trow.is-new { animation: rw-fade-in 160ms linear both; }
  .tasks-nav, .trow { transition: none; }
}

.tsheet-text { margin: 0 4px; font-size: 15px; line-height: 1.45; color: var(--text); }
.tfeed { display: flex; flex-direction: column; gap: 8px; }
.tfeed .tinput { font-size: 13px; color: var(--muted); }
.tfeed-add { text-align: center; text-decoration: none; }

.tlinked-row { display: flex; align-items: center; gap: 8px; }
button.tlinked { border: 0; flex: 1; min-width: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
button.tlinked:disabled { cursor: default; }
.tlinked-name { font-weight: 600; overflow-wrap: anywhere; }
.tlinked-status { color: var(--muted); font-size: 13px; text-transform: capitalize; }
.tlinked-open { margin-left: auto; color: var(--accent); font-weight: 700; font-size: 13px; }
.tpicks { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.tpick { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: baseline; text-align: left; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.tpick .tlinked-type { grid-row: span 2; }
.tpick-name { font-weight: 600; overflow-wrap: anywhere; }
.tpick-detail { color: var(--muted); font-size: 13px; grid-column: 2; }
.trelated { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.trel { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; cursor: pointer; max-width: 100%; }
.trel .tpick-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Today's diary above the tasks, and the day plan choices */
.tdiary-row { display: flex; gap: 12px; align-items: baseline; padding: 9px 12px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.tgroup-head + .tdiary-row { border-top: 0; }
.tdiary-time { flex: 0 0 auto; min-width: 92px; font-variant-numeric: tabular-nums; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.tdiary-body { display: flex; flex-direction: column; min-width: 0; }
.tdiary-title { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tdiary-where { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tdiary-row.is-past { opacity: 0.55; }
.tdiary-row.is-off .tdiary-title { text-decoration: line-through; }
.tplan { display: flex; flex-direction: column; gap: 14px; }
.tplan-rules { display: flex; flex-direction: column; gap: 6px; }
.tplan-rule { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; padding: 6px 0; border-top: 1px solid var(--line); }

/* --- One menu, every screen (9 Nov): the Tasks screen beside the rail --------------------
   The lists column is slimmer, the tasks keep a readable width, and until the screen is
   wide enough for three columns the open task slides over from the right instead of
   squeezing the list. */
.tasks-bar .who-name { max-width: 100%; }
#tasks.is-wide .tasks-body { grid-template-columns: 220px minmax(0, 1fr); }
#tasks.is-wide.has-detail .tasks-body { grid-template-columns: 220px minmax(0, 1fr) minmax(320px, 380px); }
#tasks.is-wide #tasks-lists-btn { display: none; }
#tasks.is-wide .tasks-main, #tasks.is-wide .tasks-add, #tasks.is-wide .tasks-find, #tasks.is-wide .tasks-parsed {
  padding-left: max(16px, calc((100% - 760px) / 2)); padding-right: max(16px, calc((100% - 760px) / 2));
}
@media (max-width: 1179px) {
  #tasks.is-wide.has-detail .tasks-body { grid-template-columns: 220px minmax(0, 1fr); }
  #tasks.is-wide .tasks-detail {
    position: absolute; top: 0; right: 0; bottom: 0; left: auto; width: min(400px, 100%);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.14);
  }
}
@media (max-width: 699px) {
  body.has-nav:not(.keyboard) .tasks-add { padding-bottom: 10px; }
  body.has-nav .tasks-undo { bottom: 76px; }
}
@media (horizontal-viewport-segments: 2) {
  #tasks .tasks-body, #tasks.has-detail .tasks-body, #tasks.is-wide.has-detail .tasks-body {
    grid-template-columns: calc(env(viewport-segment-width 0 0) - var(--rail, 0px)) env(viewport-segment-width 1 0);
  }
  #tasks.is-wide .tasks-detail { position: static; width: auto; box-shadow: none; }
  #tasks.is-wide .tasks-main, #tasks.is-wide .tasks-add, #tasks.is-wide .tasks-find, #tasks.is-wide .tasks-parsed { padding-left: 12px; padding-right: 12px; }
}

/* Today as a day view (11 Nov 2026): Day / List switch, and the day beside the tasks on a
   wide screen, above them on a phone. The blocks themselves are dayview.js + app.css. */
.tmode { display: inline-flex; flex: none; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.tmode-btn {
  border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted);
  padding: 0 14px; min-height: 34px; cursor: pointer;
}
.tmode-btn.is-on { background: var(--brand-soft); color: var(--accent); }
.tlist-head { gap: 8px; }
.tlist-head .tlist-kind { flex: 1; min-width: 0; text-align: center; }
.tday-split, .tday-tasks { display: flex; flex-direction: column; gap: inherit; min-width: 0; }
.tday-split { gap: 12px; }
.tday-tasks { gap: 12px; }
.tday { padding: 10px 12px 6px; overflow: visible; }
.tday .plan-allday { margin-top: 0; }
.tday .plan-day { margin-top: 12px; }
@media (min-width: 1100px) {
  .tday-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

/* Office calendar event sheet (eventSheet): opened from Tasks or the plan card in the chat. */
.tsheet-back--page { position: fixed; z-index: 60; }
@media (min-width: 700px) { .tsheet-back--page { align-items: center; } .tsheet-back--page .tsheet { border-radius: 22px; } }
.tday-bar { display: flex; justify-content: flex-end; margin-bottom: -8px; }
button.tdiary-row { width: 100%; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; text-align: left; cursor: pointer; }
