/* Completion history uses the existing account, navigation and theme shell. */
body[data-current-view="completed"] {
  --completed-muted: #596452;
  --completed-panel: var(--paper);
  --completed-detail: #f0f3ea;
  --completed-check-bg: #dce6ce;
  --completed-check-ink: #465c36;
  --completed-control-border: #aeb9a2;
  --completed-columns: minmax(0, 1fr) minmax(150px, 190px) 116px;
}
html[data-theme="dark"] body[data-current-view="completed"] {
  --completed-muted: #bdc6b5;
  --completed-detail: #283124;
  --completed-check-bg: #485e35;
  --completed-check-ink: #eef5e5;
  --completed-control-border: #657357;
}

body[data-current-view="completed"] main { max-width: 1800px; padding: 36px 34px 48px; }
body[data-current-view="completed"] .page-intro { align-items: flex-start; gap: 24px; margin: 0 0 27px; }
body[data-current-view="completed"] .page-intro-copy { min-width: 0; }
body[data-current-view="completed"] #page-eyebrow { display: none; }
body[data-current-view="completed"] .page-intro h1 { margin: 0 0 8px; font-size: clamp(36px, 3.5vw, 48px); font-weight: 700; line-height: 1.12; letter-spacing: -1.5px; }
body[data-current-view="completed"] #page-subtitle { margin: 0; max-width: none; color: var(--completed-muted); font-size: 20px; line-height: 1.45; }
body[data-current-view="completed"] .intro-add { margin: 25px 0 0; min-height: 46px; padding: 0 18px; font-size: 15px; border-radius: 9px; }
body[data-current-view="completed"] .intro-add .icon { width: 20px; height: 20px; }
body[data-current-view="completed"] #completed-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 21px; color: var(--ink); font-size: 15px; line-height: 1.5; }
body[data-current-view="completed"] #completed-summary > span:not(.completed-summary-icon) { min-width: 0; }
body[data-current-view="completed"] #completed-summary > span:last-child { margin-left: 10px; padding-left: 23px; border-left: 1px solid var(--completed-control-border); }
body[data-current-view="completed"] .completed-summary-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 2px solid #8da277; border-radius: 50%; background: var(--completed-check-bg); color: var(--completed-check-ink); }
body[data-current-view="completed"] .completed-summary-icon .icon { width: 20px; height: 20px; stroke-width: 2; }
body[data-current-view="completed"] .guest-preview { display: flex; align-items: center; gap: 16px; margin: 0 0 26px; padding: 12px 16px; border-radius: 10px; }
body[data-current-view="completed"] .guest-preview > div { flex: 1; min-width: 0; }
body[data-current-view="completed"] .guest-preview strong,
body[data-current-view="completed"] .guest-preview p { font-size: 14px; line-height: 1.5; }
body[data-current-view="completed"] .guest-preview .button { min-height: 44px; font-size: 14px; }

body[data-current-view="completed"] .content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 318px; align-items: start; gap: 24px; }
body[data-current-view="completed"] .right-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
body[data-current-view="completed"] .progress-panel,
body[data-current-view="completed"] .rhythm-panel,
body[data-current-view="completed"] .notification-panel { display: none; }
body[data-current-view="completed"] #completed-toolbar { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-bottom: 16px; }
body[data-current-view="completed"] .completed-search { display: flex; align-items: center; flex: 1 1 260px; min-width: 0; min-height: 48px; padding: 0 5px 0 15px; gap: 10px; border: 1px solid var(--completed-control-border); border-radius: 9px; background: var(--completed-panel); color: var(--completed-muted); }
body[data-current-view="completed"] .completed-search > .icon { width: 20px; height: 20px; }
body[data-current-view="completed"] #completed-search-input { min-width: 0; width: 100%; flex: 1; height: 46px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font-size: 15px; }
body[data-current-view="completed"] #completed-search-input::placeholder { color: var(--completed-muted); opacity: 1; }
body[data-current-view="completed"] #completed-clear-search { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 10px; border-radius: 6px; color: var(--completed-muted); }
body[data-current-view="completed"] #completed-timezones { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; max-width: 100%; padding: 9px 13px; border: 1px solid var(--completed-control-border); border-radius: 9px; background: var(--completed-panel); color: var(--ink); font-size: 14px; line-height: 1.45; text-align: left; overflow-wrap: anywhere; }
body[data-current-view="completed"] #completed-timezones .icon { width: 19px; height: 19px; }
body[data-current-view="completed"] .completed-sort { display: flex; align-items: center; min-width: 0; max-width: 100%; min-height: 48px; padding: 0 10px; border: 1px solid var(--completed-control-border); border-radius: 9px; background: var(--completed-panel); color: var(--ink); }
body[data-current-view="completed"] .completed-sort > .icon { width: 18px; height: 18px; margin-right: 6px; }
body[data-current-view="completed"] #completed-sort { max-width: 100%; min-width: 0; min-height: 46px; padding: 0 5px; border: 0; background: transparent; color: var(--ink); font-size: 14px; cursor: pointer; }
body[data-current-view="completed"] #completed-sort option { background: var(--completed-panel); color: var(--ink); }
body[data-current-view="completed"] #list-toolbar { min-height: 44px; margin: 0 0 14px; padding: 0; border: 0; }
body[data-current-view="completed"] #list-toolbar > .sort-control { display: none; }
body[data-current-view="completed"] .filter-tabs { display: flex; flex: 1; flex-wrap: wrap; align-items: stretch; gap: 5px; min-width: 0; max-width: 100%; overflow: visible; }
body[data-current-view="completed"] .filter-tabs button { display: inline-flex; align-items: center; flex: 0 1 auto; min-width: 0; max-width: 100%; min-height: 44px; padding: 7px 12px; gap: 8px; border-radius: 8px; color: var(--completed-muted); font-size: 14px; line-height: 1.4; text-align: left; white-space: normal; overflow-wrap: anywhere; }
body[data-current-view="completed"] .filter-tabs button.active { background: var(--sage); color: var(--ink); font-weight: 600; }
body[data-current-view="completed"] .filter-tabs button span { flex-shrink: 0; width: auto; min-width: 24px; height: 24px; padding: 0 6px; background: var(--completed-detail); color: var(--ink); font-size: 14px; }

/* One panel and aligned columns replace the separate, oversized cards. */
body[data-current-view="completed"] .completed-history { overflow: hidden; border: 1px solid var(--border); border-radius: 11px; background: var(--completed-panel); }
body[data-current-view="completed"] .completed-columns { display: grid; grid-template-columns: var(--completed-columns); gap: 16px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); color: var(--completed-muted); font-size: 14px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; line-height: 1.5; }
body[data-current-view="completed"] .completed-columns > span { min-width: 0; overflow-wrap: anywhere; }
body[data-current-view="completed"] .completed-columns > span:last-child { text-align: right; }
body[data-current-view="completed"] .completed-day + .completed-day { border-top: 1px solid var(--border); }
body[data-current-view="completed"] .completed-day-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 49px; padding: 10px 20px; background: var(--completed-detail); }
body[data-current-view="completed"] .completed-day-heading h2 { min-width: 0; color: var(--ink); font-size: 15px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
body[data-current-view="completed"] .completed-day-heading > span { display: inline-grid; place-items: center; min-width: 24px; min-height: 24px; padding: 0 6px; border-radius: 5px; background: var(--sage); color: var(--ink); font-size: 14px; }
body[data-current-view="completed"] .completed-history-row { display: grid; grid-template-columns: var(--completed-columns); align-items: center; gap: 8px 16px; padding: 14px 20px; border-top: 1px solid var(--border); }
body[data-current-view="completed"] .completed-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
body[data-current-view="completed"] .completed-check { display: grid; place-items: center; align-self: flex-start; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--completed-check-bg); color: var(--completed-check-ink); }
body[data-current-view="completed"] .completed-check .icon { width: 20px; height: 20px; stroke-width: 2; }
body[data-current-view="completed"] .completed-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-width: 0; flex: 1; }
body[data-current-view="completed"] .completed-title > strong { min-width: 0; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
body[data-current-view="completed"] .completed-title .sample-badge { margin-left: 7px; font-size: 14px; font-weight: 500; }
body[data-current-view="completed"] .completed-category { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; min-height: 28px; padding: 4px 9px; border-radius: 6px; background: var(--sage); color: var(--ink); font-size: 14px; font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }
body[data-current-view="completed"] .completed-category.personal { background: #f0e6db; color: #5e4933; }
body[data-current-view="completed"] .completed-category.work { background: #e5ebf0; color: #3e5368; }
body[data-current-view="completed"] .completed-category.health { background: #e3eddb; color: #465c36; }
html[data-theme="dark"] body[data-current-view="completed"] .completed-category.personal { background: #423a2a; color: #eee4d2; }
html[data-theme="dark"] body[data-current-view="completed"] .completed-category.work { background: #35424b; color: #e0e9f0; }
html[data-theme="dark"] body[data-current-view="completed"] .completed-category.health { background: #35492f; color: #e0ecd8; }
body[data-current-view="completed"] .completed-repeat-note { display: flex; align-items: center; gap: 5px; flex: 1 1 100%; color: var(--completed-muted); font-size: 14px; line-height: 1.5; }
body[data-current-view="completed"] .completed-repeat-note .icon { width: 15px; height: 15px; }
body[data-current-view="completed"] .completed-time { min-width: 0; color: var(--ink); }
body[data-current-view="completed"] .completed-time > time { display: block; font-size: 16px; font-variant-numeric: tabular-nums; line-height: 1.35; overflow-wrap: anywhere; }
body[data-current-view="completed"] .completed-time-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 6px 0; color: var(--completed-muted); font-size: 14px; line-height: 1.4; text-align: left; }
body[data-current-view="completed"] .completed-time-toggle .icon { width: 15px; height: 15px; }
body[data-current-view="completed"] .completed-time-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
body[data-current-view="completed"] .completed-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 0; }
body[data-current-view="completed"] .completed-actions > small { color: var(--completed-muted); font-size: 14px; line-height: 1.45; text-align: right; overflow-wrap: anywhere; }
body[data-current-view="completed"] .completed-restore-status { max-width: 100%; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.45; text-align: right; overflow-wrap: anywhere; }
body[data-current-view="completed"] .completed-restore { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--completed-control-border); border-radius: 8px; background: transparent; color: var(--ink); font-size: 14px; line-height: 1.4; text-align: center; }
body[data-current-view="completed"] .completed-restore .icon { width: 17px; height: 17px; }
body[data-current-view="completed"] .completed-notes { grid-column: 1 / -1; min-width: 0; padding-left: 48px; color: var(--completed-muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
body[data-current-view="completed"] .completed-notes .item-description { margin: 0; font-size: inherit; line-height: inherit; }
body[data-current-view="completed"] .completed-notes a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
body[data-current-view="completed"] .completed-time-details { grid-column: 1 / -1; min-width: 0; padding: 18px 20px; margin-top: 3px; border: 1px solid var(--border); border-radius: 9px; background: var(--completed-detail); }
body[data-current-view="completed"] .completed-time-details > :first-child { display: block; margin-bottom: 14px; color: var(--completed-muted); font-size: 14px; font-weight: 600; letter-spacing: 1.25px; line-height: 1.5; text-transform: uppercase; }
body[data-current-view="completed"] .completed-zone-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr)); gap: 18px; }
body[data-current-view="completed"] .completed-zone-grid > div { min-width: 0; border-left: 1px solid var(--completed-control-border); padding-left: 16px; }
body[data-current-view="completed"] .completed-zone-grid > div:first-child { border: 0; padding-left: 0; }
body[data-current-view="completed"] .completed-zone-grid strong,
body[data-current-view="completed"] .completed-zone-grid span { display: block; color: var(--ink); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
body[data-current-view="completed"] .completed-zone-grid strong { margin-bottom: 3px; font-weight: 600; }
body[data-current-view="completed"] .completed-zone-grid span { color: var(--completed-muted); font-variant-numeric: tabular-nums; }
body[data-current-view="completed"] .completed-time-details p.completed-restore-reason { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--border); color: var(--completed-muted); font-size: 14px; font-weight: 400; line-height: 1.6; letter-spacing: normal; text-transform: none; overflow-wrap: anywhere; }
body[data-current-view="completed"] #completed-empty { padding: 50px 24px; border: 1px solid var(--border); border-radius: 11px; background: var(--completed-panel); text-align: center; }
body[data-current-view="completed"] #completed-empty h2 { margin-bottom: 9px; color: var(--ink); font-size: 21px; line-height: 1.4; }
body[data-current-view="completed"] #completed-empty p { margin: 0 auto; max-width: 380px; color: var(--completed-muted); font-size: 15px; line-height: 1.6; }
body[data-current-view="completed"] #completed-empty button { min-height: 44px; margin-top: 17px; font-size: 14px; }

/* Separate controls call the same settings actions without duplicating IDs. */
body[data-current-view="completed"] .completed-settings-panel { padding: 24px; border: 1px solid var(--border); border-radius: 11px; background: var(--completed-panel); color: var(--ink); }
body[data-current-view="completed"] .completed-settings-panel header h2 { color: var(--ink); font-size: 20px; line-height: 1.3; font-weight: 650; letter-spacing: -.35px; }
body[data-current-view="completed"] .completed-settings-panel header p { margin-top: 7px; color: var(--completed-muted); font-size: 14px; line-height: 1.6; }
body[data-current-view="completed"] .completed-setting-group { padding: 23px 0; border-bottom: 1px solid var(--border); }
body[data-current-view="completed"] .completed-setting-group > label { display: block; margin-bottom: 9px; color: var(--ink); font-size: 15px; font-weight: 500; }
body[data-current-view="completed"] #completed-default-nag { width: 100%; min-width: 0; min-height: 46px; padding: 0 12px; border: 1px solid var(--completed-control-border); border-radius: 8px; background: var(--control, var(--paper)); color: var(--ink); font-size: 15px; }
body[data-current-view="completed"] .completed-settings-panel .preference-note { margin-top: 12px; color: var(--completed-muted); font-size: 14px; line-height: 1.65; }
body[data-current-view="completed"] .completed-quiet-row { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; font-size: 15px; line-height: 1.4; }
body[data-current-view="completed"] .completed-quiet-row > .icon { width: 22px; height: 22px; }
body[data-current-view="completed"] .completed-quiet-row > label,
body[data-current-view="completed"] .completed-quiet-row > strong { min-width: 0; font-size: 15px; font-weight: 500; }
body[data-current-view="completed"] #completed-quiet-status { margin-left: auto; color: var(--completed-muted); font-size: 14px; }
body[data-current-view="completed"] #completed-quiet-label { margin-top: 5px; color: var(--completed-muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
body[data-current-view="completed"] #completed-quiet-toggle { position: relative; display: block; flex-shrink: 0; width: 48px; height: 44px; padding: 0; background: transparent; border-radius: 8px; }
body[data-current-view="completed"] #completed-quiet-toggle::before { content: ""; position: absolute; left: 2px; top: 9px; width: 44px; height: 26px; border-radius: 16px; background: #79856f; }
body[data-current-view="completed"] #completed-quiet-toggle::after { content: none; }
body[data-current-view="completed"] #completed-quiet-toggle span { position: absolute; left: 5px; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: #fffefa; box-shadow: none; transform: none; }
body[data-current-view="completed"] #completed-quiet-toggle[aria-checked="true"]::before { background: #718a55; }
body[data-current-view="completed"] #completed-quiet-toggle[aria-checked="true"] span { transform: translateX(18px); }
body[data-current-view="completed"] .completed-alert-heading { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); }
body[data-current-view="completed"] .completed-alert-heading > .icon { width: 22px; height: 22px; }
body[data-current-view="completed"] .completed-alert-heading strong { min-width: 0; font-size: 15px; font-weight: 500; line-height: 1.5; }
body[data-current-view="completed"] #completed-alert-state { margin-left: auto; padding: 4px 8px; border: 1px solid var(--completed-control-border); border-radius: 6px; color: var(--completed-muted); font-size: 14px; line-height: 1.4; }
body[data-current-view="completed"] #completed-alert-description { margin-top: 12px; color: var(--completed-muted); font-size: 14px; line-height: 1.65; }
body[data-current-view="completed"] #completed-enable-alerts { width: 100%; min-height: 46px; margin-top: 15px; padding: 9px 12px; border: 1px solid var(--completed-control-border); border-radius: 8px; background: transparent; color: var(--ink); font-size: 14px; line-height: 1.5; white-space: normal; }
body[data-current-view="completed"] .completed-settings-panel > .subtle-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 500; }
body[data-current-view="completed"] .completed-settings-panel > .subtle-link .icon { width: 17px; height: 17px; }
body[data-current-view="completed"] :is(#completed-clear-search, #completed-timezones, .completed-restore, #completed-enable-alerts):hover:not(:disabled) { background: var(--sage); }
body[data-current-view="completed"] .completed-time-toggle:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
body[data-current-view="completed"] :is(.completed-search:focus-within, .completed-sort:focus-within) { outline: 2px solid var(--focus, #657c4b); outline-offset: 3px; }
body[data-current-view="completed"] :is(#completed-search-input, #completed-sort):focus-visible { outline: 0; }
body[data-current-view="completed"] :is(.completed-restore, .completed-time-toggle, #completed-timezones, #completed-clear-search, #completed-quiet-toggle, #completed-enable-alerts):focus-visible { outline: 2px solid var(--focus, #657c4b); outline-offset: 3px; }

@media (max-width: 1450px) {
  body[data-current-view="completed"] { --completed-columns: minmax(0, 1fr) 148px 106px; }
  body[data-current-view="completed"] .content-grid { grid-template-columns: minmax(0, 1fr) 292px; gap: 20px; }
  body[data-current-view="completed"] .completed-search { flex-basis: 100%; }
  body[data-current-view="completed"] #completed-timezones { flex: 1 1 auto; justify-content: flex-start; }
  body[data-current-view="completed"] .completed-sort { flex: 0 1 auto; }
  body[data-current-view="completed"] .completed-settings-panel { padding: 21px; }
  body[data-current-view="completed"] .completed-columns,
  body[data-current-view="completed"] .completed-history-row { gap: 8px 12px; padding-left: 16px; padding-right: 16px; }
  body[data-current-view="completed"] .completed-title { align-items: flex-start; flex-direction: column; gap: 5px; }
  body[data-current-view="completed"] .completed-restore { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 1270px) {
  body[data-current-view="completed"] main { padding-left: 24px; padding-right: 24px; }
  body[data-current-view="completed"] .content-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body[data-current-view="completed"] .right-panel { grid-column: 1; grid-template-columns: minmax(0, 1fr); }
  body[data-current-view="completed"] .completed-settings-panel { max-width: none; }
  body[data-current-view="completed"] .completed-settings-panel header h2 { font-size: 20px; }
  body[data-current-view="completed"] .completed-search { flex-basis: 250px; }
  body[data-current-view="completed"] #completed-timezones { flex: 0 1 auto; }
}
@media (max-width: 900px) {
  body[data-current-view="completed"] { --completed-columns: minmax(0, 1fr) 130px 102px; }
  body[data-current-view="completed"] .completed-search { flex-basis: 100%; }
  body[data-current-view="completed"] #completed-timezones { flex: 1 1 auto; }
  body[data-current-view="completed"] .completed-main { gap: 10px; }
  body[data-current-view="completed"] .completed-check { width: 28px; height: 28px; }
  body[data-current-view="completed"] .completed-check .icon { width: 17px; height: 17px; }
  body[data-current-view="completed"] .completed-title > strong { font-size: 15px; }
  body[data-current-view="completed"] .completed-notes { padding-left: 38px; }
}
@media (max-width: 760px) {
  body[data-current-view="completed"] main { padding: 24px 20px 34px; }
  body[data-current-view="completed"] .page-intro { gap: 18px; }
  body[data-current-view="completed"] .intro-add { margin-top: 5px; width: auto; height: auto; min-height: 46px; font-size: 14px; padding: 0 14px; }
  body[data-current-view="completed"] .page-intro h1 { font-size: 38px; }
  body[data-current-view="completed"] #page-subtitle { font-size: 18px; }
  body[data-current-view="completed"] .topbar .breadcrumb { display: none; }
  body[data-current-view="completed"] .topbar .topbar-search { display: none; }
  body[data-current-view="completed"] .topbar .theme-toggle,
  body[data-current-view="completed"] .topbar .pings-pill,
  body[data-current-view="completed"] .topbar .navigation-toggle { min-height: 44px; height: 44px; }
  body[data-current-view="completed"] .guest-preview { align-items: flex-start; flex-wrap: wrap; }
  body[data-current-view="completed"] .guest-preview > div { flex-basis: 100%; }
  body[data-current-view="completed"] :is(#completed-search-input, #completed-sort, #completed-default-nag) { font-size: 16px; }
}
@media (max-width: 600px) {
  body[data-current-view="completed"] .page-intro { flex-wrap: wrap; gap: 17px; }
  body[data-current-view="completed"] .page-intro-copy { flex: 1 1 100%; }
  body[data-current-view="completed"] .intro-add { margin: 0; }
}
/* At tablet widths the persistent navigation uses 238px of horizontal space. */
@media (max-width: 600px), (min-width: 761px) and (max-width: 900px) {
  body[data-current-view="completed"] .completed-columns { display: none; }
  body[data-current-view="completed"] .completed-history-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 15px; }
  body[data-current-view="completed"] .completed-main { grid-column: 1 / -1; }
  body[data-current-view="completed"] .completed-title { display: flex; flex-direction: row; align-items: center; gap: 5px 9px; }
  body[data-current-view="completed"] .completed-title > strong { flex: 1 1 100%; font-size: 16px; }
  body[data-current-view="completed"] .completed-time { grid-column: 1; padding-left: 38px; }
  body[data-current-view="completed"] .completed-time > time { font-size: 15px; }
  body[data-current-view="completed"] .completed-actions { grid-column: 2; max-width: 140px; }
  body[data-current-view="completed"] .completed-actions > small { max-width: 110px; }
  body[data-current-view="completed"] .completed-day-heading { padding: 12px 15px; }
  body[data-current-view="completed"] .completed-time-details { padding: 15px; }
  body[data-current-view="completed"] .completed-zone-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body[data-current-view="completed"] .completed-zone-grid > div { border-left: 0; border-top: 1px solid var(--border); padding: 12px 0 0; }
  body[data-current-view="completed"] .completed-zone-grid > div:first-child { padding-top: 0; }
  body[data-current-view="completed"] .completed-zone-grid strong,
  body[data-current-view="completed"] .completed-zone-grid span { display: inline; }
  body[data-current-view="completed"] .completed-zone-grid strong { margin-right: 12px; }
}
@media (max-width: 420px) {
  body[data-current-view="completed"] main { padding: 21px 14px 30px; }
  body[data-current-view="completed"] .page-intro h1 { font-size: 36px; }
  body[data-current-view="completed"] #completed-summary { gap: 8px; font-size: 14px; }
  body[data-current-view="completed"] #completed-toolbar { gap: 10px; }
  body[data-current-view="completed"] #completed-timezones,
  body[data-current-view="completed"] .completed-sort { flex: 1 1 100%; }
  body[data-current-view="completed"] #completed-sort { width: 100%; }
  body[data-current-view="completed"] .filter-tabs { gap: 4px; }
  body[data-current-view="completed"] .filter-tabs button { padding: 7px 9px; }
  body[data-current-view="completed"] .completed-history-row { gap: 8px; padding: 14px 12px; }
  body[data-current-view="completed"] .completed-time { padding-left: 0; }
  body[data-current-view="completed"] .completed-notes { padding-left: 0; }
  body[data-current-view="completed"] .completed-settings-panel { padding: 20px; }
  body[data-current-view="completed"] .completed-quiet-row,
  body[data-current-view="completed"] .completed-alert-heading { gap: 8px; }
  body[data-current-view="completed"] .topbar #current-date { font-size: 14px; }
}
@media (max-width: 520px) {
  body[data-current-view="completed"] #completed-summary { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 10px; }
  body[data-current-view="completed"] .completed-summary-icon { grid-column: 1; grid-row: 1 / span 2; }
  body[data-current-view="completed"] #completed-summary > span:not(.completed-summary-icon) { grid-column: 2; }
  body[data-current-view="completed"] #completed-summary > span:last-child { margin: 0; padding: 0; border: 0; }
}
