/* Early-Craigslist look: white page, black text, blue underlined links. */
html { background: #fff; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0 auto; max-width: 56rem;
  padding: .5rem max(.75rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
  color: #111; background: #fff;
  font: 15px/1.4 Arial, Helvetica, sans-serif;
}
a { color: #0000ee; }
a:visited { color: #551a8b; }
h1 { font-size: 1.25rem; margin: .8rem 0 .5rem; }
h2 { font-size: 1.05rem; margin: 1.1rem 0 .4rem; }
p { margin: .4rem 0; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: .5rem; top: .5rem; background: #fff; padding: .25rem; }

#top { border-bottom: 1px solid #ccc; padding-bottom: .4rem; }
.brand { display: flex; align-items: center; gap: .35rem; font-weight: bold; font-size: 1.1rem; margin-bottom: .15rem; }
.brand img { display: block; width: 1.75rem; height: 1.75rem; flex: none; }
.primary-navigation { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .25rem; margin: .55rem 0 .35rem; }
.primary-navigation a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .3rem .2rem; border: 1px solid #ccc; border-radius: .25rem; box-sizing: border-box; text-align: center; overflow-wrap: anywhere; }
.primary-navigation a[aria-current="page"] { background: #edf3fc; border-color: #406b9c; }
.navigation-tools, .account-navigation > div, .place-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .8rem; }
.navigation-tools { justify-content: space-between; }
.navigation-tools > a, .account-navigation summary, .account-navigation a, .place-navigation a { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; }
.account-navigation summary { display: list-item; padding: .5rem .1rem; cursor: pointer; }
.account-navigation[open] { flex-basis: 100%; }
.account-navigation > div { padding-bottom: .3rem; }
.place-navigation { border-top: 1px solid #ddd; margin-top: .2rem; }
/* Secondary destinations stay one thumb-sized row, not half a phone screen. */
@media (max-width: 44rem) {
  .place-navigation { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; gap: .35rem; padding: .2rem 0; }
  .place-navigation a { flex: none; padding: .4rem .65rem; white-space: nowrap; border-radius: .35rem; }
  .place-navigation a[aria-current="page"] { background: #edf3fc; }
}
.skip:focus { z-index: 60; border: 2px solid #174b86; border-radius: .3rem; padding: .65rem; }
#view:focus { outline: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #174b86; outline-offset: 3px; }
.notebook-sections { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 1.5rem; }
.notebook-sections li { min-width: 0; border-top: 1px solid #ddd; padding: .5rem 0; }
.notebook-sections h2 { margin: 0; }
.notebook-sections a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 420px) { .notebook-sections { grid-template-columns: minmax(0, 1fr); } }
nav a[aria-current="page"] { color: #111; font-weight: bold; text-decoration: none; }
.sep { color: #777; padding: 0 .15rem; }
.settings-jumps { display: flex; gap: .35rem; margin: .35rem 0 1rem; padding: .2rem 0 .45rem; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.settings-jumps a { display: inline-flex; flex: none; align-items: center; min-height: 44px; padding: 0 .7rem; border: 1px solid #c9d3de; border-radius: .35rem; box-sizing: border-box; white-space: nowrap; }
#home-time, #www-api-access, #settings-account, #settings-security, #settings-calendar, #settings-google-tasks { scroll-margin-top: 1rem; }

#msg { min-height: 1.3rem; margin: .4rem 0; }
.error { color: #a00000; }
.ok { color: #006400; }
.muted { color: #555; }
.doable-day { margin: .7rem 0; border: 1px solid #ccc; padding: .5rem; }
.doable-day summary { cursor: pointer; font-weight: bold; min-height: 44px; }
.doable-card { margin: .65rem 0; padding: .5rem; border-left: 3px solid #777; background: #f8f8f8; overflow-wrap: anywhere; }
.doable-card h3 { font-size: 1rem; margin: 0 0 .35rem; }
.doable-card a { display: inline-block; min-height: 44px; box-sizing: border-box; padding: .6rem .35rem; }
.doable-card button, .doable-day > button { min-height: 44px; }
.doable-leave { float: right; margin: .2rem; }
.doable-card::after { content: ''; display: block; clear: both; }

table { border-collapse: collapse; width: 100%; margin: .5rem 0; }
th, td { border: 1px solid #ccc; padding: .25rem .4rem; text-align: left; vertical-align: top; }
th { background: #f2f2f2; font-weight: bold; }
table.google-task-sources { table-layout: fixed; }
table.google-task-sources th, table.google-task-sources td { overflow-wrap: anywhere; }
h1, h2, p, label, td.wrap { overflow-wrap: anywhere; }
td.check { width: 1.6rem; text-align: center; }
.overdue .due { color: #a00000; font-weight: bold; }
.done .title { text-decoration: line-through; color: #555; }

form { margin: .5rem 0; }
.field { margin: .55rem 0; }
.field label { display: block; font-weight: bold; margin-bottom: .15rem; }
.field input { min-width: 0; }
input[type=datetime-local] { display: block; min-width: 0; width: 100%; }
input::-webkit-date-and-time-value { text-align: left; }
.calendar-conflict:not(:empty) { border-left: 3px solid #a5442a; padding: .25rem .55rem; margin: .7rem 0; background: #f8f8f8; }
.routine-ack { display: flex; align-items: center; gap: .4rem; min-height: 44px; margin: .5rem 0; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url],
input[type=date], input[type=time], input[type=datetime-local], input[type=number], select, textarea {
  font: inherit; max-width: 100%; box-sizing: border-box;
  border: 1px solid #888; padding: .2rem .3rem; background: #fff; color: #111;
}
input.wide, textarea { width: 100%; }
textarea { min-height: 6rem; }
textarea.library-body { min-height: 16rem; }
button { font: inherit; padding: .2rem .7rem; }
button.danger { color: #a00000; }
.quick { border: 1px solid #ccc; padding: .5rem; background: #f8f8f8; }
.quick input[type=text] { width: 60%; min-width: 10rem; }
.filters { margin: .5rem 0; }
.filters label { margin-right: .4rem; }
.views { margin: .5rem 0; }
.views b { color: #111; }
.row-actions form { display: inline; margin: 0; }
.qr { background: #fff; width: 12rem; height: 12rem; border: 1px solid #ccc; }
code { background: #f2f2f2; padding: 0 .2rem; word-break: break-all; }
.calendar-nav { margin: .65rem 0; }
.calendar-preference label { margin-right: .3rem; }
.day-nav, .day-actions { line-height: 1.8; }
.month-view { border-top: 1px solid #ccc; margin: 1rem 0; padding-top: .55rem; }
.month-view summary { cursor: pointer; font-weight: bold; min-height: 2.75rem; display: list-item; padding: .4rem .25rem; box-sizing: border-box; }
.month-view summary:focus-visible, .calendar-day a:focus-visible { outline: 2px solid #0000ee; outline-offset: -2px; }
.time-horizon { border: 1px solid #ccc; padding: .4rem .6rem; margin: .8rem 0; }
.time-horizon h2 { margin: 0 0 .35rem; }
.time-horizon ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem .9rem; list-style: none; padding: 0; margin: 0; }
.time-horizon li { min-width: 0; overflow-wrap: anywhere; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid #bbb; border-left: 1px solid #bbb; }
.calendar-head, .calendar-empty, .calendar-day { min-width: 0; border-right: 1px solid #bbb; border-bottom: 1px solid #bbb; }
.calendar-head, .calendar-empty { padding: .3rem; }
.calendar-head { background: #f2f2f2; font-weight: bold; text-align: center; }
.calendar-empty { background: #fafafa; }
.calendar-day a { display: block; min-height: 3.4rem; box-sizing: border-box; padding: .3rem; }
.calendar-day.selected { background: #eef3ff; }
.calendar-day.is-today a { font-weight: bold; }
.calendar-count { display: block; color: #555; font-size: .8rem; overflow-wrap: anywhere; }
.calendar-agenda li { margin: .3rem 0; }
.calendar-edit-review:not(:empty) { border: 1px solid #bbb; padding: .75rem; margin: .8rem 0; }
.calendar-edit-review h3 { margin-bottom: .25rem; }
#calendar-simple-availability { min-height: 44px; }
.task-room { border-left: 3px solid #16877d; padding: .2rem .7rem; margin: 1rem 0; }
.task-room a, .task-room button { display: inline-flex; align-items: center; min-height: 44px; margin-right: .6rem; }
.calendar-edit-review section + section { border-top: 1px solid #ddd; margin-top: .7rem; }
.calendar-edit-ack { display: block; margin: .7rem 0; }
#calendar-simple-form > .calendar-edit-ack { display: flex; align-items: center; gap: .35rem; min-height: 44px; }
.event-notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.event-scope { border-left: 3px solid #16877d; padding-left: .6rem; }
.calendar-freshness { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .7rem; margin: .7rem 0; padding: .5rem .65rem; border-left: 3px solid #16877d; background: #f8f8f8; }
.calendar-freshness p { margin: 0; overflow-wrap: anywhere; }
.calendar-freshness .calendar-sync-note { flex-basis: 100%; font-size: .85em; }
.contextual-sync { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .7rem; margin: .7rem 0; padding: .5rem .65rem; border-left: 3px solid #406b9c; background: #f8f8f8; }
.contextual-sync p { margin: 0; overflow-wrap: anywhere; }
.contextual-sync-status { flex: 1 1 16rem; }
.contextual-sync-note { flex-basis: 100%; font-size: .85em; }
.calendar-freshness button, .calendar-freshness .contextual-connection-link,
.contextual-sync button, .contextual-sync .contextual-connection-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; }
.contextual-connection-link { padding: .25rem .15rem; }
.calendar-agenda section { border-top: 1px solid #ddd; margin-top: .7rem; }
.calendar-agenda h3, .time-watch h3 { font-size: .95rem; margin: .55rem 0 .25rem; }
.calendar-agenda ul, .time-watch ul { margin: .25rem 0 .6rem; padding-left: 1.5rem; }
.time-summary { font-weight: bold; overflow-wrap: anywhere; }
.find-my-time { border: 1px solid #c9d3de; border-radius: .4rem; margin: .8rem 0; }
.find-my-time > summary { padding: .7rem; font-weight: bold; cursor: pointer; min-height: 44px; box-sizing: border-box; }
.find-content { padding: 0 .7rem .7rem; }
.find-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .3rem .8rem; }
.find-fields .field { min-width: 0; }
.find-fields input, .find-fields select { width: 100%; min-width: 0; max-width: 100%; min-height: 44px; box-sizing: border-box; font-size: 1rem; }
.find-content button { min-height: 44px; }
.find-content p { overflow-wrap: anywhere; }
.find-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .5rem; padding: 0; list-style: none; }
.find-slots li { min-width: 0; }
.find-slots a { display: flex; align-items: center; min-height: 44px; padding: .45rem .6rem; border: 1px solid #c9d3de; background: #f4f7fb; border-radius: .3rem; box-sizing: border-box; overflow-wrap: anywhere; }
.find-my-time :focus-visible { outline: 2px solid #174b86; outline-offset: 2px; }
/* See my day. Quiet routines are context, not availability or commitments. */
.time-views { display: flex; gap: .35rem; margin: .6rem 0; }
.time-views a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 3.4rem; padding: 0 .55rem; border: 1px solid #c9d3de; border-radius: .35rem; box-sizing: border-box; }
.time-views a[aria-current=page] { color: #15385e; background: #edf3fc; border-color: #406b9c; text-decoration: none; font-weight: bold; }
.time-legend, .time-hint { font-size: .9em; }
.time-scroll-tools { display: flex; gap: .4rem; }
.time-scroll-tools button { min-height: 44px; }
.time-viewport { max-height: 36rem; max-width: 100%; overflow: auto; border: 1px solid #c9d3de; border-radius: .4rem; overscroll-behavior: contain; scrollbar-gutter: stable; }
.time-viewport:focus-visible, .see-my-day a:focus-visible { outline: 2px solid #174b86; outline-offset: -2px; }
.time-board { display: grid; align-items: start; }
.time-day { grid-template-columns: minmax(0, 1fr); }
.see-my-day.time-wide { width: min(84rem, calc(100vw - 2rem)); position: relative; left: 50%; transform: translateX(-50%); }
.time-week { grid-template-columns: repeat(7, minmax(10.5rem, 1fr)); min-width: 73.5rem; }
.time-week .time-grid { grid-template-columns: 3.5rem repeat(12, minmax(0, 1fr)); }
.time-week .time-tick { font-size: .65rem; }
.time-column { min-width: 0; border-right: 1px solid #d3dbe5; }
.time-column:last-child { border-right: 0; }
.time-event.time-available { background: #fafafa; border-style: dashed; border-color: #89948e; }
.time-day-heading { position: sticky; top: 0; z-index: 6; margin: 0; padding: .45rem; height: 3.1rem; box-sizing: border-box; background: #f4f7fb; border-bottom: 1px solid #d3dbe5; }
.time-day-heading a { display: flex; align-items: center; min-height: 32px; color: #183f69; }
.time-selected .time-day-heading { background: #e8f0fb; box-shadow: inset 0 3px #406b9c; }
.time-all-day { position: sticky; top: 3.1rem; z-index: 5; padding: .4rem .5rem; min-height: 3.2rem; height: 5rem; box-sizing: border-box; overflow: auto; font-size: .85em; background: #fff; border-bottom: 1px solid #d3dbe5; }
.time-all-day p { margin: .1rem 0 .35rem; }
.time-all-rhythm, .time-all-rhythm a { color: #596b66; }
.time-grid { position: relative; display: grid; grid-template-columns: 4.8rem repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(288, 8px); background: repeating-linear-gradient(to bottom, #fff 0, #fff 47px, #e3e8ee 47px, #e3e8ee 48px); }
.time-tick { font-size: .7rem; line-height: 1.25; color: #526173; padding: .2rem .3rem; border-right: 1px solid #e1e7ed; background: #fff; }
.time-open { position: relative; z-index: 2; display: block; min-height: 0; text-align: right; text-decoration: none; color: #254e79; border-bottom: 1px solid #e3e8ee; }
.time-open span { display: inline-block; margin-right: .5rem; opacity: 0; font-size: 1.2rem; }
.time-open:hover, .time-open:focus-visible { background: #e8f0fb; }
.time-open:hover span, .time-open:focus-visible span { opacity: 1; }
@media (hover: none) { .time-open span { opacity: .45; } }
.time-rhythm { z-index: 1; min-width: 0; overflow: hidden; pointer-events: none; border-left: 3px solid #9eaaa6; background: #eef2f0; color: #64716b; font-size: .75rem; padding: .2rem; }
.time-rhythm span { display: block; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.time-event { position: relative; z-index: 3; overflow: hidden; min-width: 0; margin: 1px 2px; padding: .15rem .3rem; background: #e4eefb; border: 1px solid #a2b9d5; border-left: 3px solid #406b9c; border-radius: .25rem; line-height: 1.25; }
.time-event .time-event-link { font-weight: bold; color: #143c6b; font-size: .9em; text-decoration: none; overflow-wrap: anywhere; }
.time-event > .time-event-link::after { content: ''; position: absolute; inset: 0; }
.time-event:focus-within { outline: 2px solid #174b86; outline-offset: -2px; }
.time-event-clock, .time-event-source { display: block; font-size: .75em; color: #354e69; overflow-wrap: anywhere; }
.time-event-source { margin-top: .2rem; }
.time-many { z-index: 3; display: block; background: #f3eee6; color: #624419; border: 1px solid #c5b28f; padding: .25rem; overflow: hidden; font-size: .85em; }
.time-now { z-index: 4; border-top: 2px solid #ae4934; pointer-events: none; color: #963b2b; font-size: .65rem; }
.time-now span { background: #fff; padding: 0 .2rem; }
.time-short-events .time-event-link, .time-crowded .time-event-link { display: inline-flex; align-items: center; min-height: 44px; }
.time-crowded ul { padding-left: 1.2rem; }
.time-list-details { margin: .8rem 0; }
.time-list-details > summary, .time-routine-details > summary { cursor: pointer; min-height: 44px; display: list-item; padding: .6rem 0; box-sizing: border-box; font-weight: bold; }
.time-crowded > div:focus { outline: 2px solid #174b86; }
.time-watch { border-left: 3px solid #a5442a; padding: .15rem .55rem; margin: .7rem 0; background: #f8f8f8; }
.time-watch.routine { border-left-color: #16857d; }
.event-source { display: block; color: #555; font-size: .9rem; }
.today-agenda li, .capture-list li { margin: .45rem 0; }
.today-event { color: #222; }
.capture-box { border: 1px solid #ccc; background: #f8f8f8; padding: .5rem; margin: .7rem 0; }
.capture-box h2 { margin-top: 0; }
.capture-box textarea { width: 100%; min-height: 9rem; box-sizing: border-box; resize: vertical; }
.capture-kind { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; margin: .8rem 0; padding: 0; border: 0; }
.capture-kind legend { font-weight: bold; margin-bottom: .35rem; }
.capture-kind-option { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .1rem .45rem; min-width: 0; padding: .65rem; border: 1px solid #c8c8c8; border-radius: .45rem; background: var(--lens-panel, #fff); color: var(--lens-ink, #111); cursor: pointer; }
.capture-kind-option input { grid-row: 1 / span 2; margin: .2rem 0 0; }
.capture-kind-option span { font-size: .82rem; line-height: 1.25; }
.capture-kind-option:has(input:checked) { border-color: var(--lens-accent, #406b9c); box-shadow: 0 0 0 1px var(--lens-accent, #406b9c); }
@media (max-width: 44rem) {
  .capture-kind { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.capture-original { white-space: pre-wrap; overflow-wrap: anywhere; }
.capture-actions button { margin: 0 .2rem .2rem 0; }
#foot { margin-top: 2rem; border-top: 1px solid #ccc; padding-top: .4rem; color: #555; font-size: .9rem; }

@media (max-width: 40rem) {
  body { font-size: 14.5px; }
  h1 { font-size: 1.1875rem; }
  h2 { font-size: 1rem; }
  .brand { font-size: 1.05rem; }
  .opt { display: none; }
  nav { display: flex; flex-wrap: wrap; column-gap: .65rem; }
  nav .sep { display: none; }
  nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  button, input[type=text], input[type=email], input[type=password], input[type=search],
  input[type=url], input[type=date], input[type=time], input[type=datetime-local], input[type=number], select { min-height: 44px; font-size: 16px; }
  textarea { font-size: 16px; }
  .field input, .field select { width: 100%; }
  .quick input[type=text] { width: 100%; }
  .calendar-head, .calendar-empty { padding: .15rem; }
  .time-horizon ul { grid-template-columns: 1fr; }
  .calendar-day a { min-height: 2.75rem; padding: .25rem; }
  .calendar-count { display: none; } /* The horizon gives readable counts; the small grid is a date picker. */
  .capture-box { padding: .45rem; }
}
.task-session { border-top: 1px solid #ddd; margin-top: 1rem; padding-top: .5rem; }
.task-session a { display: inline-block; margin: .25rem 1rem .25rem 0; }
.task-session-plan { margin-top: 1rem; }
.task-session-plan input { max-width: 8rem; }
/* Reminder controls stay stacked and usable on small screens. */
.calendar-reminders { margin: 1rem 0; padding: .8rem; border: 1px solid #d8d8d8; }
.calendar-reminders h2 { margin-top: 0; font-size: 1.05rem; }
.calendar-reminder-row { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; margin: .6rem 0; padding-bottom: .6rem; border-bottom: 1px solid #e5e5e5; }
.calendar-reminder-row .field { flex: 1 1 10rem; min-width: 0; margin: 0; }
.calendar-reminder-row input, .calendar-reminder-row select { max-width: 100%; width: 100%; box-sizing: border-box; }
/* Nothing slips away: quiet attention, not a red overdue alarm. */
.still-on-my-mind { border-left: 3px solid #217d78; padding: .3rem .85rem; margin: 1.3rem 0; background: #f7f9f9; }
.still-on-my-mind h2 { margin-top: .4rem; }
.still-on-my-mind li { margin-bottom: .8rem; }
.still-on-my-mind li p { margin: .2rem 0; }
.trail-entry { border-top: 1px solid #ddd; padding: .8rem 0; overflow-wrap: anywhere; }
.trail-entry h3 { margin: .3rem 0; }
.trail-entry pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .85rem; max-height: 24rem; overflow: auto; }
.trail-words { white-space: pre-wrap; }
#trail-note-box textarea { width: 100%; min-height: 6rem; box-sizing: border-box; }
#trail-note-box input { max-width: 100%; box-sizing: border-box; }
.trail-export { margin: 1rem 0; }
/* One calm home. A quiet working day, with capture close by. */
.calm-date { margin-bottom: .3rem; }
.calm-date-tools { display: flex; align-items: end; flex-wrap: wrap; justify-content: space-between; gap: .3rem .8rem; margin: .5rem 0; }
.calm-date-tools .day-nav { display: flex; flex-wrap: wrap; gap: .25rem .8rem; }
.calm-date-tools a, .calm-links a { display: inline-flex; align-items: center; min-height: 44px; }
.calendar-date-tools { position: sticky; top: .25rem; z-index: 8; padding: .4rem .55rem; border: 1px solid #c9d3de; border-radius: .35rem; background: rgba(255,255,255,.97); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.calm-date-jump { display: flex; align-items: end; gap: .4rem; margin: 0; }
.calm-date-jump .field { margin: 0; min-width: 0; }
.calm-date-jump input, .calm-date-jump button { min-height: 44px; }
.calm-capture { border-color: #d5dfdc; border-left: 3px solid #217d78; background: #f7f9f8; border-radius: .3rem; padding: .65rem .8rem; }
.calm-capture h2 { font-size: 1rem; }
.calm-capture textarea { min-height: 3.3rem; resize: vertical; }
.calm-capture .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.calm-capture form { margin-bottom: 0; }
.calm-capture button { min-height: 44px; }
.calm-workspace { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr); gap: 1.1rem; align-items: start; margin-top: .8rem; }
.calm-workspace > * { min-width: 0; }
.calm-workspace h2 { margin-top: .25rem; }
.calm-workspace .time-viewport { max-height: 29rem; }
.calm-workspace .time-all-day { height: auto; max-height: 5rem; }
.calm-workspace .time-legend { margin-top: .3rem; }
.calm-tasks { border: 1px solid #d5dfdc; padding: .7rem; border-radius: .35rem; }
.home-clock-note { font-size: .85rem; overflow-wrap: anywhere; margin: .2rem 0 .65rem; }
.today-date-summary { padding: .65rem 0; border-top: 1px solid #d5dfdc; font-size: .9rem; }
.today-secondary { border-top: 1px solid #d5dfdc; padding: .45rem 0; margin: .4rem 0; min-width: 0; }
.today-secondary > summary { min-height: 44px; display: list-item; align-content: center; cursor: pointer; font-weight: 600; padding: .35rem .2rem; }
.today-secondary > summary:focus-visible { outline: 2px solid #174b86; outline-offset: 2px; }
.today-secondary-body { min-width: 0; padding: .3rem .15rem; }
.today-secondary-body .close-day, .today-secondary-body .sense-review { margin-top: 0; }
.home-time-settings { border-bottom: 1px solid #d5dfdc; padding-bottom: 1rem; margin-bottom: 1rem; }
.home-time-settings input { max-width: 100%; box-sizing: border-box; }
.note-privacy,.secret-note-options { border:1px solid #d5dfdc; border-radius:.75rem; padding:1rem; margin:1rem 0; }
.secret-note-body { white-space:pre-wrap; overflow-wrap:anywhere; max-height:50vh; overflow:auto; background:#f5f7f6; padding:1rem; border-radius:.5rem; }
@media(max-width:600px) { .home-time-settings input { width: 100%; font-size:16px; } .today-secondary > summary { min-height:48px; } }
.calm-tasks .still-on-my-mind { margin: 1rem 0 .5rem; padding-left: .65rem; }
.calm-day-tasks, .calm-tasks .still-on-my-mind ul { padding-left: 1.1rem; }
.calm-day-tasks li { margin: .55rem 0; }
.calm-day-tasks p { margin: .1rem 0; }
.calm-links { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.today-primary { min-width: 0; overflow-wrap: anywhere; }
.today-attention { border-block: 1px solid #d5dfdc; padding: .6rem 0 .8rem; }
.today-primary h2 { font-size: 1.18rem; margin: .25rem 0 .4rem; }
.today-primary > .muted { font-size: .9rem; }
.today-task-list { padding-left: 1.15rem; }
.today-task-list li { margin: .45rem 0; }
.today-task-list p { margin: 0; font-size: .88rem; }
.today-task-list a, .today-attention > a, .today-primary > a { display: inline-flex; align-items: center; min-height: 44px; }
.today-capture-shortcut { min-height: 44px; margin: .2rem 0 .6rem; }
.today-date-jump > summary, .today-more-chosen > summary { min-height: 44px; align-content: center; cursor: pointer; }
.today-date-jump > summary:focus-visible, .today-more-chosen > summary:focus-visible { outline: 2px solid #174b86; outline-offset: 2px; }
.today-other { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid #d5dfdc; }
.today-other .calm-capture { background: transparent; border-left-width: 1px; }
.today-other .calm-capture h2 { font-size: 1rem; }
.today-other > .calm-search { margin-top: .6rem; }
.today-primary a:focus-visible { outline: 2px solid #174b86; outline-offset: 2px; }
.today-primary .calendar-sync-note { display: none; }
@media(max-width:44rem) {
  .today-primary h2 { font-size: 1.12rem; }
  .today-task-list a { font-size: 1rem; }
}
.calm-agenda > summary, .calm-search > summary { display: list-item; cursor: pointer; min-height: 44px; box-sizing: border-box; padding: .7rem 0; font-weight: bold; }
.calm-search { border-bottom: 1px solid #d5dfdc; margin-bottom: .6rem; }
.calm-search-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(9rem, .5fr) auto; align-items: end; gap: .5rem; }
.calm-search-fields .field { margin: 0; min-width: 0; }
.calm-search-fields input { width: 100%; min-width: 0; min-height: 44px; }
.calm-search-fields button { min-height: 44px; }
.calm-search-list { list-style: none; padding: 0; }
.calm-search-list li { border-top: 1px solid #e0e5e4; padding: .55rem 0; overflow-wrap: anywhere; }
.calm-search-list a { display: inline-flex; align-items: center; min-height: 44px; }
.calm-search-list p { margin: 0; }
.calm-date-tools :focus-visible, .calm-search :focus-visible, .calm-tasks a:focus-visible, .calm-capture :focus-visible { outline: 2px solid #174b86; outline-offset: 2px; }
@media (max-width: 44rem) {
  .calm-workspace { grid-template-columns: minmax(0, 1fr); }
  .calm-workspace .time-viewport { max-height: 22rem; }
  .calm-date-tools { align-items: stretch; }
  .calm-date-jump { width: 100%; }
  .calm-date-jump .field { flex: 1; }
  .calm-search-fields { grid-template-columns: minmax(0, 1fr); }
  .calm-date-tools input, .calm-search-fields input { font-size: 16px; }
  .calm-capture { padding: .5rem .6rem; }
}
/* Say it once: original words and unanswered choices stay distinct. */
.say-original { padding: .7rem; border: 1px solid #d5dddd; border-radius: .35rem; margin: .8rem 0; }
.say-original .capture-original { white-space: pre-wrap; overflow-wrap: anywhere; }
.say-questions { border-left: 3px solid #a66a32; padding: .4rem .8rem; background: #faf8f3; margin: .8rem 0; }
.say-questions h2 { font-size: 1rem; }
#say-form { max-width: 48rem; }
#say-form input:not([type=checkbox]), #say-form select { max-width: 100%; min-height: 44px; font-size: 1rem; box-sizing: border-box; }
#say-title, #say-zone { width: 100%; }
#say-save { min-height: 44px; }
.kind-day-row { border: 1px solid #ddd; border-radius: .5rem; margin: 1rem 0; padding: .8rem; min-width: 0; }
.kind-day-hours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.kind-day-hours input { max-width: 100%; width: 100%; min-width: 0; box-sizing: border-box; font-size: 16px; min-height: 44px; }
.kind-day-toggle { display: block; margin: .7rem 0; }
.kind-day-home { border-left: 3px solid #287d78; padding-left: .7rem; margin: 1rem 0; }
@media (max-width: 650px) { .kind-day-hours { grid-template-columns: repeat(2, minmax(0, 1fr)); } #kind-day-form button { min-height: 44px; max-width: 100%; margin-bottom: .5rem; } }

/* See my rhythm: quiet guidance behind plans, never a click-blocking layer. */
.rhythm-key { font-size: .9em; margin-bottom: .25rem; }
.rhythm-key span { padding: .15rem .35rem; border-radius: .2rem; }
.rhythm-key-planning { background: #edf6f4; color: #245a55; }
.rhythm-key-rest { background: #f0edf7; color: #57476f; }
.rhythm-key-outside { background: #f0f1f3; color: #505965; }
.rhythm-note { font-size: .85em; margin-top: .25rem; }
.time-personal-band { position: absolute; left: 4.8rem; right: 0; z-index: 0; pointer-events: none; box-sizing: border-box; }
.time-week .time-personal-band { left: 3.5rem; }
.time-personal-planning { background: rgba(62, 135, 122, .07); }
.time-personal-outside { background: rgba(74, 85, 105, .10); }
.time-personal-rest { background: repeating-linear-gradient(135deg, rgba(128, 99, 166, .17) 0, rgba(128, 99, 166, .17) 2px, rgba(128, 99, 166, .08) 2px, rgba(128, 99, 166, .08) 8px); border-block: 1px solid #c5b8d6; }
.see-my-rhythm ~ .time-viewport .time-rhythm { background: rgba(218, 230, 223, .38); }
.time-all-day.time-has-personal { height: 11rem; }
.time-rhythm-summary { border-bottom: 1px solid #dde4e6; padding-bottom: .35rem; margin-bottom: .4rem; font-size: .9em; }
.time-rhythm-summary p { margin: .1rem 0 .3rem; }
.rhythm-hours { color: #245a55; }
.rhythm-rest-label { color: #57476f; }
.time-task-capacity { color: #344253; font-variant-numeric: tabular-nums; }
.rhythm-over { color: #805327; font-weight: bold; }
.calm-workspace .time-all-day.time-has-personal { height: 11rem; max-height: 11rem; }
.see-my-rhythm button { min-height: 44px; }
/* A moment to reflect: quiet facts, explicit evidence and no action shortcuts. */
.reflect-nav { display:flex; flex-wrap:wrap; gap:.6rem 1rem; margin:1rem 0; }
.reflect-jump { display:flex; align-items:end; flex-wrap:wrap; gap:.75rem; }
.reflect-jump .field { margin:0; }
.reflect-counts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; margin:1.25rem 0; }
.reflect-counts p { background:#f3f6f5; border-radius:.5rem; padding:1rem; margin:0; }
.reflect-counts strong { display:block; font-size:1.6rem; line-height:1.3; }
.reflect-counts span { display:block; font-size:.9rem; }
.reflect-section { border-top:1px solid #ddd; padding-top:1rem; margin-top:1.5rem; }
.reflect-card { padding:.75rem 0; border-bottom:1px solid #eee; min-width:0; overflow-wrap:anywhere; }
.reflect-card h3 { font-size:1rem; margin:0 0 .4rem; }
.reflect-card p { margin:.4rem 0; }
.reflect-evidence { margin:.6rem 0; }
.reflect-evidence pre { white-space:pre-wrap; overflow-wrap:anywhere; font-size:.8rem; }
.reflect-coverage { border-left:3px solid #6c9188; padding:.65rem .85rem; background:#f5f7f6; }
@media(max-width:480px) { .reflect-counts { grid-template-columns:1fr; gap:.4rem; } .reflect-counts p { display:flex; align-items:center; gap:.75rem; padding:.65rem .85rem; } }
/* Optional session reports. Preserve the existing document-like layout. */
#session-check-content { max-width: 48rem; }
#session-check-form select, #session-check-form textarea, #session-check-form input { box-sizing: border-box; max-width: 100%; }
#session-check-form textarea { width: 100%; }
#session-check-form button { margin: .25rem .5rem .25rem 0; }
.session-report { border-top: 1px solid #ddd; padding: .6rem 0; overflow-wrap: anywhere; }
.close-day { margin: 1.25rem 0; border-top: 1px solid #ccc; padding-top: 1rem; }
.close-day-session { border-bottom: 1px solid #ddd; padding: .6rem 0 .9rem; overflow-wrap: anywhere; }
.close-day-session h4 { margin: .4rem 0; }
.close-day-session p { margin: .4rem 0; }
.close-day-group, .close-day-earlier, #close-day-editor { margin-top: 1rem; }
.close-day-next { border-left: 3px solid #16857b; padding: .5rem .8rem; margin: 1rem 0; }
.close-day-next a, .close-day-next button { display: block; margin: .65rem 0; }
.close-day input, .close-day select, .close-day textarea { max-width: 100%; box-sizing: border-box; }
.purpose-card, .purpose-task { border: 1px solid #ddd; padding: 1rem; margin: 1rem 0; }
.purpose-words { white-space: pre-wrap; overflow-wrap: anywhere; }
.purpose-context { margin: .8rem 0; }
#purpose-form, #purpose-preview, #task-purpose-form, #task-purpose-preview { max-width: 46rem; }
#purpose-form input, #purpose-form textarea, #purpose-form select,
#task-purpose-form textarea, #task-purpose-form select { max-width: 100%; box-sizing: border-box; }
#purpose-form textarea, #task-purpose-form textarea { width: 100%; min-height: 5rem; }
/* Follow the thread uses the same document-like surface as existing places. */
.thread-why, #thread-tasks, #thread-sessions, #thread-notes, #thread-next, .thread-review { border-top: 1px solid #ddd; padding: 1rem 0; margin-top: 1rem; }
.thread-session, #thread-notes article, #thread-originals article { border-left: 3px solid #dbe6ef; padding: .25rem .9rem; margin: 1rem 0; }
#project-thread li { margin: .8rem 0; }
#project-thread li p { margin: .3rem 0; }
#project-thread h1, #project-thread h2, #project-thread h3, #project-thread h4, #project-thread p, #project-thread a { overflow-wrap: anywhere; }
.thread-json { max-height: 26rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .85rem; }
.thread-review button { margin: .4rem .6rem .4rem 0; max-width: 100%; white-space: normal; }
/* Native Notebook relations never change saved words or Calendar data. */
.dot-panel, .dot-backlinks { margin: 1.2rem 0; padding: .8rem; border: 1px solid #ccc; }
.dot-panel summary, .dot-backlinks summary { cursor: pointer; font-weight: 600; }
.dot-words { white-space: pre-wrap; overflow-wrap: anywhere; }
.dot-links { padding-left: 1.2rem; }
.dot-links li { margin: .8rem 0; overflow-wrap: anywhere; }
.dot-preview:not(:empty) { padding: .8rem; margin: .8rem 0; border-left: .2rem solid #168779; background: #f7f7f7; }
.dot-panel select, .dot-panel input, #dot-entry-search { max-width: 100%; width: 100%; box-sizing: border-box; }
.dot-panel button, .dot-backlinks a { overflow-wrap: anywhere; }
/* One commitment can retain references on more than one enabled calendar. */
.calendar-copies { margin: .3rem 0; font-size: .85em; overflow-wrap: anywhere; }
.calendar-copies summary { cursor: pointer; }
.calendar-copies ul { padding-left: 1.2rem; }
.calendar-copies a { display: inline-block; min-height: 2.75rem; padding: .35rem 0; }
.calendar-copy-warning { margin: .25rem 0; font-size: .85em; color: #8b300b; overflow-wrap: anywhere; }
.time-event:has(.calendar-copies[open]) { z-index: 6; overflow: auto; }
.time-event:has(.calendar-copies) { overflow: auto; }
.time-event .calendar-copies { position: relative; z-index: 1; }
.calendar-copies summary { min-height: 2.75rem; display: flex; align-items: center; }
.time-event .calendar-copies[open] { position: fixed; inset: auto 1rem 1rem; z-index: 20; max-height: 45vh; overflow: auto; background: #fff; color: #111; border: 1px solid #89948e; border-radius: .3rem; padding: .6rem .9rem; box-shadow: 0 .3rem 1.5rem #0003; }
.time-event .calendar-copies[open] summary::after { content: ' · Close'; margin-left: .3em; }
/* Close the loop keeps results within Plans, with reviewable native changes. */
.loop-card,.loop-history-card { border:1px solid #ccc; padding:1rem; margin:1rem 0; overflow-wrap:anywhere; }
.loop-words { white-space:pre-wrap; overflow-wrap:anywhere; }
.loop-preview,.loop-link-preview,.loop-task-preview { border-left:3px solid #16857e; padding-left:1rem; margin:1rem 0; }
#loop-content input,#loop-content textarea,#loop-content select { max-width:100%; box-sizing:border-box; }
#loop-content input:not([type=checkbox]),#loop-content textarea { width:100%; }
.loop-card h3 { margin-top:0; }
.loop-card button,.loop-link-preview button,.loop-task-preview button,.loop-preview button { margin:.3rem .5rem .3rem 0; min-height:44px; }
.loop-task-results,.loop-create-task,.loop-correction,.loop-history,.loop-source-words { margin:1rem 0; }

/* Comfortable everywhere: one set of records and controls, adapted for touch. */
.phone-only { display: none; }
.task-completion, .source-toggle { display: inline-flex; align-items: center; gap: .55rem; }
.calendar-connection-details { margin: .5rem 0; overflow-wrap: anywhere; }
.calendar-other-sources { margin: .7rem 0; }
.calendar-other-sources summary, .calendar-connection-details summary { cursor: pointer; }
@media (max-width: 40rem), (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea {
    font-size: 16px; min-height: 44px; min-width: 0; max-width: 100%; box-sizing: border-box;
  }
  input:not([type]) { font-family: inherit; border: 1px solid #999; padding: .2rem .3rem; }
  button { min-height: 44px; max-width: 100%; font-size: 16px; white-space: normal; }
  input[type=checkbox], input[type=radio] { width: 20px; height: 20px; flex: none; }
  .task-completion, .source-toggle { min-height: 44px; cursor: pointer; }
  #view summary { min-height: 44px; box-sizing: border-box; padding-top: .65rem; padding-bottom: .65rem; }
  .views { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .5rem; }
  .views > a, .views > b, .filter-actions > a, .quick > a, .calm-day-tasks a, .still-on-my-mind a, .kind-day-home > a,
  #foot a, .task-title > a { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; }
  .views .sep { display: none; }
  .filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; }
  #view, .field, .filters { min-width: 0; overflow-wrap: anywhere; }
  .primary-navigation a { white-space: nowrap; overflow-wrap: normal; padding-left: 0; padding-right: 0; }
}
@media (max-width: 40rem), (pointer: coarse) and (max-height: 32rem) {
  .phone-only { display: inline; }
  .task-list, .task-list tbody, .calendar-sources, .calendar-sources tbody { display: block; }
  .task-list thead, .calendar-sources thead {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%);
  }
  .task-list tr, .calendar-sources tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem .7rem;
    border: 1px solid #ccc; border-radius: .4rem; padding: .55rem .7rem; margin: .65rem 0;
  }
  .task-list td, .calendar-sources td { display: block; border: 0; min-width: 0; padding: 0; overflow-wrap: anywhere; }
  .task-list td.opt { display: block; }
  .task-list td:empty { display: none; }
  .task-list td[data-label]::before, .calendar-sources td[data-label]::before {
    content: attr(data-label) ': '; font-size: .9em; color: #555;
  }
  .task-list .task-title { grid-column: 1 / -1; grid-row: 1; font-weight: bold; }
  .task-list td.check { grid-column: 1 / -1; width: auto; text-align: left; }
  .task-list td[data-label='Planned work'], .task-list td[data-label='Status'], .task-list td.due { grid-column: 1 / -1; }
  .calendar-sources .source-name { grid-column: 1 / -1; font-weight: bold; }
  .calendar-sources td { grid-column: 1 / -1; }
  .calendar-sources select { width: 100%; }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem .6rem; }
  .filters label[for=flt-status] { grid-column: 1; grid-row: 1; }
  .filters #flt-status { grid-column: 1; grid-row: 2; }
  .filters label[for=flt-list] { grid-column: 2; grid-row: 1; }
  .filters #flt-list { grid-column: 2; grid-row: 2; }
  .filters label[for=flt-q], .filters #flt-q, .filters .filter-actions { grid-column: 1 / -1; }
  .filters input, .filters select { width: 100%; }
  .filters label { margin-top: .3rem; }
  .calm-workspace { grid-template-columns: minmax(0, 1fr); }
  .calm-workspace .time-viewport { max-height: 19rem; }
}

/* Make sense of it: small, optional evidence reviews, never new commitments. */
.sense-review { border: 1px solid #ccc; border-radius: .4rem; padding: .8rem 1rem; margin: 1rem 0; min-width: 0; }
.sense-review > h2 { margin-top: 0; }
.sense-card { border-top: 1px solid #ddd; padding: .8rem 0; overflow-wrap: anywhere; }
.sense-card h3 { margin-top: .2rem; }
.sense-task { font-weight: 600; white-space: pre-wrap; }
.sense-actions { display: flex; gap: .5rem .8rem; flex-wrap: wrap; align-items: center; }
.sense-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.sense-actions button { min-height: 44px; }
.sense-evidence { margin: .6rem 0; overflow-wrap: anywhere; }
.sense-evidence pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 18rem; overflow: auto; font-size: .9rem; }

/* Learn what helps: inline, reviewable feedback without a new primary place. */
.learn-form, .learn-preview, .learn-history-card { margin: .8rem 0; min-width: 0; overflow-wrap: anywhere; }
.learn-form select, .learn-form textarea { width: 100%; min-height: 44px; font-size: 1rem; }
.learn-form button, .learn-preview button, .learn-history button { min-height: 44px; margin: .3rem .5rem .3rem 0; }
.learn-preview { border-left: 3px solid #397b7a; padding-left: .8rem; }
.learn-history { margin-top: 1rem; }
.learn-history-card { border-top: 1px solid #ddd; padding-top: .6rem; }
.learn-history-card h3 { white-space: pre-wrap; }
.learn-preview pre, .learn-history pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 14rem; overflow: auto; }

/* Try what works: one optional card, no additional primary place. */
.try-works { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid #ddd; min-width: 0; overflow-wrap: anywhere; }
.try-works article, .try-form, .try-preview { margin: .8rem 0; min-width: 0; }
.try-works article { border-top: 1px solid #ddd; padding-top: .7rem; }
.try-works textarea, .try-works input, .try-works select { width: 100%; max-width: 100%; min-height: 44px; font-size: 1rem; }
.try-works button, .try-card > a { min-height: 44px; margin: .3rem .5rem .3rem 0; }
.try-card > a { display: inline-flex; align-items: center; }
.try-works pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 14rem; overflow: auto; }
.try-preview { border-left: 3px solid #397b7a; padding-left: .8rem; }

/* Use what I learn: reuse task/session surfaces, keep details optional. */
.use-learning { margin: 1rem 0; padding: .8rem 0; border-top: 1px solid #ddd; min-width: 0; overflow-wrap: anywhere; }
.use-learning form, .use-preview { margin: .8rem 0; min-width: 0; }
.use-learning select, .use-learning textarea { width: 100%; max-width: 100%; min-height: 44px; font-size: 1rem; }
.use-learning button, .use-learning a { min-height: 44px; margin: .3rem .5rem .3rem 0; }
.use-learning a { display: inline-flex; align-items: center; }
.use-learning pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 14rem; overflow: auto; }
.use-preview { padding: .8rem; border-left: 3px solid #397b7a; background: #f7f7f7; }
:root { --www-api-boundary: 1; }
.www-api-access { margin-block: 2rem; padding-block: 1rem; border-top: 1px solid #ddd; }
.www-api-access dd { margin-left: 0; overflow-wrap: anywhere; }
.www-api-access dt { margin-top: .75rem; font-weight: 600; }
.www-api-access label { display: block; margin-block: .75rem; }
.www-api-access button { margin: .3rem .4rem .3rem 0; min-height: 44px; max-width: 100%; white-space: normal; }
.www-api-access input[type=checkbox] { width: 20px; height: 20px; vertical-align: middle; }
.www-api-access fieldset { min-width: 0; margin-block: 1rem; }
.www-api-access [hidden] { display: none !important; }
.www-api-local-notice { padding: 1rem; background: #eef5ff; border-bottom: 1px solid #cbd9e9; }
.www-api-local-notice button { margin: .5rem .5rem 0 0; max-width: 100%; }
/* Optional time, journal and media tools share the existing quiet layout. */
.quiet-access { margin: .8rem 0 0; font-size: .75rem; color: #777; }
.quiet-access a { color: inherit; text-decoration: none; padding: .35rem .25rem; }
.quiet-access a:hover, .quiet-access a:focus-visible { text-decoration: underline; }
.inline-list { margin: .6rem 0 1rem; }
.inline-list input { max-width: 100%; }
.subtask-box { margin: .7rem 0; font-size: .9rem; }
.subtask-box summary, .work-profile summary { cursor: pointer; }
.subtask-list { list-style: none; padding-left: 0; }
.subtask-list li { margin: .6rem 0; }
.subtask-list label { display: flex; gap: .5rem; align-items: baseline; }
.subtask-list input[type=checkbox] { flex: 0 0 auto; }
.subtask-list details { margin-left: 1.6rem; }
.work-profile { margin: 1.2rem 0; padding: .8rem; border: 1px solid #ddd; border-radius: 5px; }
.work-profile form { margin-top: 1rem; }
.rate-options { margin: .8rem 0; }
.productivity-card { border-top: 1px solid #ddd; padding: 1rem 0; overflow-wrap: anywhere; }
.productivity-card h3 { margin: .2rem 0 .6rem; }
.productivity-card button, .report-exports button { margin: .4rem .5rem .4rem 0; }
.productivity-card a { margin-right: .75rem; }
.productivity-card .prose { white-space: pre-wrap; }
.media-grid img, .media-grid video { display: block; max-width: 100%; max-height: 480px; margin: 1rem 0; object-fit: contain; }
#journal-body { min-height: 16rem; width: 100%; box-sizing: border-box; font: inherit; line-height: 1.65; }
#journal-title, #time-title { width: min(100%, 44rem); box-sizing: border-box; }
.report-filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; margin-bottom: 1rem; }
.report-filters .field { margin: 0; min-width: 150px; }
#report-output { overflow-x: auto; }
.report-table { min-width: 640px; width: 100%; }
.report-table td, .report-table th { vertical-align: top; padding: .65rem; overflow-wrap: anywhere; }
#time-log-form, #journal-form, #media-form { margin-bottom: 2rem; }
@media (max-width: 600px) {
  .report-filters .field { flex: 1 1 100%; }
  .report-filters input, .report-filters select { width: 100%; box-sizing: border-box; }
  .productivity-card button, .subtask-list button { min-height: 40px; }
  .subtask-box .quick { display: flex; flex-wrap: wrap; gap: .5rem; }
  .subtask-box .quick input { min-width: 0; flex: 1 1 140px; }
}
@media print {
  body.printing-report > :not(main), body.printing-report #view > :not(div),
  body.printing-report .report-filters, body.printing-report .report-exports { display: none !important; }
  body.printing-report #report-output { overflow: visible; }
  body.printing-report .report-table { min-width: 0; font-size: 9pt; }
  body.printing-report .report-table th, body.printing-report .report-table td { padding: 4pt; }
  body.printing-report { max-width: none; color: #000; }
}


/* Journal editing must remain operable above an iPhone keyboard. */
.journal-mobile-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  position: sticky;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 0.5rem);
  z-index: 20;
  padding: 0.65rem;
  margin: 0.75rem 0;
  background: var(--surface, #fff);
  color: var(--text, #111);
  border: 1px solid var(--border, currentColor);
  box-shadow: 0 -0.35rem 1rem rgba(0, 0, 0, 0.14);
}
.journal-mobile-actions button {
  margin: 0;
}
.journal-mobile-actions button[type="submit"] {
  flex: 1 1 auto;
}
@media (min-width: 721px) {
  .journal-mobile-actions {
    position: static;
    display: inline-flex;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .journal-mobile-actions button[type="submit"] {
    flex: 0 0 auto;
  }
}
