/* Shared workspace frame. Load after page styles so navigation and creation
   stay in the same place when the user changes views. */
html:not([data-theme="dark"]) {
  --muted: #626b5b;
  --focus: #52653f;
}

html {
  --workspace-header-height: 76px;
  scroll-padding-top: calc(var(--workspace-header-height) + 12px);
}

/* Older page styles hard-code helper colors instead of using --muted. Keep
   supporting copy readable on cream, paper, sage and notification surfaces. */
html:not([data-theme="dark"]) body :is(
  .form-note, .settings-description, .settings-info p, .main-footnote,
  .group-note, .repeat-meta, .progress-summary > div, .progress-summary small,
  .progress-panel > p, .rhythm-panel > p, .field-label, .quiet-row small,
  .notification-panel h2, .notification-panel p, .notification-panel > span,
  .notification-panel .button, .empty-state p, .modal label:not(.checkbox-label),
  .checkbox-label, .preset-row button, .subtle-link, .timer-caption
) { color: var(--muted); }

body[data-current-view] :is(
  .form-note, .preference-note, .settings-description, .settings-info p,
  .main-footnote, .progress-panel > p, .rhythm-panel > p,
  .notification-panel p, .notification-panel > span, .empty-state p,
  .pings-status, .pings-muted-note, .time-status, .time-picker-note
) { font-size: 14px; line-height: 1.6; }

body[data-current-view] :is(.subtle-link, .preset-row button, .pings-back, .pings-actions button) {
  min-height: 44px;
  font-size: 14px;
  line-height: 1.4;
}
body[data-current-view] :is(.preset-row button, .time-preset button) { min-width: 44px; min-height: 44px; }
body[data-current-view] .time-split button { min-height: 44px; }
body[data-current-view] .time-split button + button { min-width: 44px; }
body[data-current-view] .icon-button { min-width: 44px; min-height: 44px; }
body[data-current-view] .notification-panel .button { min-height: 44px; font-size: 14px; }
body[data-current-view] .modal label:not(.checkbox-label),
body[data-current-view] .checkbox-label { font-size: 14px; line-height: 1.5; }
body[data-current-view] .checkbox-label { min-height: 44px; }
body[data-current-view] .field-label { font-size: 13px; letter-spacing: .2px; line-height: 1.5; }
body[data-current-view] .modal :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select) { min-height: 44px; font-size: 15px; }
body[data-current-view] .modal .button { min-height: 44px; font-size: 14px; }
body[data-current-view] .pings-tools > summary { min-height: 44px; padding: 10px 0; }
body[data-current-view] .settings-nav-button > span { font-size: 14px; }
body[data-current-view] .settings-nav-button small { font-size: 13px; }
body[data-current-view] .settings-nav { top: 100px; }
html:not([data-theme="dark"]) body :is(.quick-entry input, .quick-add input, .modal input)::placeholder { color: var(--muted); opacity: 1; }

body[data-current-view] main { padding-top: 32px; padding-right: 32px; padding-left: 32px; }

.main-shell > .topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--workspace-header-height);
  height: var(--workspace-header-height);
  padding: 0 32px;
  background: var(--page);
  border-bottom: 1px solid var(--border);
}

.topbar .topbar-start {
  flex: 1 1 auto;
  min-width: 0;
  gap: 12px;
}

body[data-current-view] .topbar #current-date {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

/* The page title already names the destination. A second name in the header
   competes with the date and makes the action row jump between routes. */
body[data-current-view] .topbar .breadcrumb { display: none; }

.topbar .topbar-right {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  min-width: 0;
}

body[data-current-view] .topbar :is(.pings-pill, .topbar-search) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.topbar .pings-pill > span:first-child { font-size: 24px; }
.topbar .pings-pill > .pings-label { font-size: 14px; }
.topbar .pings-pill .pings-dot { flex: 0 0 auto; }
.topbar .topbar-search .icon { width: 18px; height: 18px; }
body[data-current-view] .topbar :is(.pings-pill, .topbar-search):hover {
  background: var(--surface-hover);
}

.topbar #global-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 180px;
  width: 180px;
  min-width: 180px;
  min-height: 44px;
  height: 44px;
  padding: 0 14px;
  gap: 8px;
  border: 1px solid #cdbf61;
  border-radius: 9px;
  background: var(--yellow);
  color: #273020;
  box-shadow: none;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.topbar #global-create > .icon { flex: 0 0 18px; width: 18px; height: 18px; }
.topbar #global-create:hover:not(:disabled) { background: #f7ec9c; border-color: #b8aa4e; }
.topbar #global-create:disabled { opacity: .65; cursor: not-allowed; }
.topbar .mobile-settings { display: none; }

.topbar button:focus-visible,
.topbar select:focus-visible,
.sidebar button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Search and status controls remain below the shared sticky header. */
body[data-current-view] :is(.mixed-toolbar, .timer-runs-filters) {
  top: var(--workspace-header-height);
}

/* Names and invitation addresses may be long unbroken strings. Preserve all
   of their text without widening a list, invitation or confirmation. */
body[data-current-view] :is(.mixed-header, .mixed-invitation) > div { min-width: 0; }
body[data-current-view] :is(
  .mixed-header h2, .mixed-invitation strong, .mixed-invitation p,
  .mixed-dialog-body, .timer-runs-confirm p
) { overflow-wrap: anywhere; }
body[data-current-view] .mixed-workspace-row .form-note > .subtle-link {
  display: inline-flex;
  margin: 0;
  vertical-align: middle;
}

body[data-current-view] .page-intro { gap: 24px; margin-bottom: 24px; }
body[data-current-view] .page-intro-copy { min-width: 0; }
body[data-current-view] .page-intro #page-eyebrow { display: none; }
body[data-current-view] .page-intro #page-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -1px;
  overflow-wrap: anywhere;
}

body[data-current-view] .page-intro #page-subtitle {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

body[data-current-view] .page-intro #page-subtitle:empty { display: none; }
body[data-current-view="today"] .page-intro #page-subtitle { margin-top: 8px; }
body[data-current-view="today"] #today-summary { font-size: 16px; line-height: 1.5; }
body[data-current-view="focus"] .page-intro { margin-bottom: 32px; }
body[data-current-view="calendar"] .page-intro #page-subtitle { min-height: 24px; }

/* Secondary settings stay discoverable in one compact disclosure. Live nudges
   remain in the reminder column, outside this collapsible region. */
body:is([data-current-view="today"], [data-current-view="all"], [data-current-view="upcoming"], [data-current-view="completed"], [data-current-view="timers"]) .content-grid:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
body:is([data-current-view="today"], [data-current-view="all"], [data-current-view="upcoming"], [data-current-view="completed"], [data-current-view="timers"]) .right-panel {
  display: block;
  grid-column: auto;
  grid-row: auto;
  min-width: 0;
}
body[data-current-view="today"] main { display: block; }
body[data-current-view="today"] .guest-preview { margin-bottom: 24px; }
body[data-current-view="today"] .page-intro { min-height: 0; margin-bottom: 24px; padding-right: 0; }
body[data-current-view="today"] .reminder-column { grid-column: auto; grid-row: auto; }
body[data-current-view="today"] .timezone-summary { position: static; max-width: 100%; margin-top: 10px; min-height: 44px; }
body[data-current-view="today"] .live-nudge.is-docked.is-floating { max-width: min(600px, calc(100vw - 32px)); }
body[data-current-view="today"] #today-nudge-slot:not([hidden]):has(.live-nudge:not([hidden])) { margin-bottom: 20px; }
body[data-current-view="today"] .live-nudge.is-docked .nudge-actions {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}
body[data-current-view="today"] .live-nudge.is-docked :is(#nudge-dismiss, #nudge-done) {
  flex: 0 1 128px;
  width: auto;
  min-width: 112px;
  min-height: 44px;
  padding: 8px 12px;
}
body[data-current-view="today"] .live-nudge.is-docked .nudge-snooze-options {
  flex: 1 1 300px;
  width: auto;
  min-width: 0;
  max-width: 380px;
  gap: 8px;
}
body[data-current-view="today"] .live-nudge.is-docked .nudge-snooze-options > .time-split {
  flex: 1 1 136px;
  min-width: 0;
}
body[data-current-view="today"] .live-nudge.is-docked .time-split button {
  min-height: 44px;
  padding: 6px;
  font-size: 13px;
  line-height: 1.25;
}
body[data-current-view="today"] .live-nudge.is-docked .time-split button:first-child { min-width: 0; }
body[data-current-view="today"] .live-nudge.is-docked .time-split button + button { flex: 0 0 44px; min-width: 44px; justify-content: center; }
body[data-current-view="today"] .live-nudge.is-docked .time-split button span { display: inline; white-space: normal; }
body[data-current-view="today"] .live-nudge.is-docked .time-split .icon { display: none; }

#workspace-utilities { border: 1px solid var(--border); border-radius: 11px; background: var(--paper); }
#workspace-utilities > summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-height: 60px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
#workspace-utilities > summary::-webkit-details-marker { display: none; }
#workspace-utilities > summary strong { font-size: 14px; font-weight: 600; line-height: 1.5; }
#workspace-utility-summary { flex: 1 1 260px; color: var(--muted); font-size: 13px; line-height: 1.6; }
#workspace-utilities > summary::after { content: "⌄"; flex: 0 0 20px; margin-left: auto; font-size: 20px; text-align: center; line-height: 1; }
#workspace-utilities[open] > summary::after { transform: rotate(180deg); }
#workspace-utilities > summary:hover { background: var(--surface-hover); }
#workspace-utilities > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
#workspace-utilities[open] > summary { border-bottom: 1px solid var(--border); border-radius: 10px 10px 0 0; }
#workspace-utilities:not([open]) > .workspace-utility-panels { display: none; }
.workspace-utility-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: start; gap: 16px; padding: 16px; }
body[data-current-view] .workspace-utility-panels > section { grid-column: auto; grid-row: auto; min-width: 0; min-height: 0; margin: 0; padding: 18px; }
body[data-current-view] .workspace-utility-panels .panel-heading { margin-bottom: 12px; }
body[data-current-view] .workspace-utility-panels .panel-heading h2 { font-size: 16px; line-height: 1.5; }
body[data-current-view] .workspace-utility-panels .panel-heading > button { min-height: 44px; }

.countdown-preferences, .countups-utilities { margin-top: 24px; padding: 16px; border: 1px solid var(--border); border-radius: 11px; background: var(--paper); }
.countups-utility { padding: 0 12px; }
.countups-utility small, .countdown-preferences p { font-size: 14px; line-height: 1.6; }
.countups-alert-action { min-height: 44px; font-size: 14px; }

/* Scope is a persistent visible label, not a placeholder that disappears when
   typing. The field wrapper keeps all search views aligned. */
#search-bar:not([hidden]), #countdown-search:not([hidden]),
body[data-current-view="completed"] .completed-search:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.search-scope, .countups-search-field > label { display: block; color: var(--ink); font-size: 14px; font-weight: 550; line-height: 1.5; }
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
  padding: 0 4px 0 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--paper);
  color: var(--muted);
}
.search-field > .icon { flex: 0 0 20px; width: 20px; height: 20px; }
.search-field input { flex: 1 1 0%; min-width: 0; min-height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 15px; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-field > button { flex: 0 0 44px; width: 44px; height: 44px; }
.search-field:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.search-field input:focus-visible { outline: 0; }
body[data-current-view="completed"] .completed-search:focus-within { outline: 0; }
body[data-current-view="completed"] #completed-toolbar { align-items: end; }
body[data-current-view="completed"] #completed-toolbar .search-field { width: 100%; }

/* Saved timers form one scrollable dashboard. The reminder utility rail moves
   below the collection instead of taking a third of the available card space. */
body[data-current-view="timers"] .content-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
body[data-current-view="timers"] .right-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#timer-content { min-width: 0; }
.timer-dashboard-toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--paper);
}
.timer-dashboard-toolbar > label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
}
.timer-dashboard-toolbar > label:first-child { flex: 1 1 260px; }
.timer-dashboard-toolbar > label:last-child { flex: 0 1 180px; }
.timer-dashboard-toolbar :is(input, select) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--control);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
}
.timer-dashboard-toolbar input::placeholder { color: var(--muted); opacity: 1; }
.timer-dashboard-toolbar :is(input, select):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
#timer-content .timer-result-count { min-height: 22px; margin: 14px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
#timer-results .timer-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; align-items: stretch; }
#timer-results .timer-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 310px;
  padding: 16px;
  border-radius: 12px;
}
#timer-results .timer-card-header { gap: 8px; min-height: 44px; }
#timer-results .timer-card-header h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}
#timer-results .timer-definition-actions { gap: 4px; }
#timer-results .timer-definition-actions :is(.timer-edit-button, .icon-button) { min-width: 44px; min-height: 44px; height: 44px; padding: 0 8px; }
#timer-results .timer-definition-actions .icon-button { width: 44px; }
#timer-results .timer-definition-actions .icon { width: 18px; height: 18px; }
#timer-results .item-description {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
}
#timer-results .timer-value { margin: 14px 0 0; font-size: 42px; font-weight: 500; line-height: 1.2; letter-spacing: -1.4px; }
#timer-results .timer-caption { min-height: 38px; margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
#timer-results .timer-actions { display: flex; flex-wrap: wrap; align-items: start; gap: 8px; min-height: 96px; margin-top: auto; padding-top: 12px; }
#timer-results .timer-actions > .button {
  order: 1;
  flex: 1 1 calc(100% - 52px);
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
}
#timer-results .timer-actions > .icon-button { order: 2; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: 8px; }
#timer-results .timer-actions > .time-split { order: 3; flex: 1 1 116px; min-width: 0; }
#timer-results .timer-actions .time-split button { min-height: 44px; padding: 0 6px; font-size: 13px; line-height: 1.3; }
#timer-results .timer-actions .time-split button:first-child { flex: 1 1 auto; min-width: 0; justify-content: center; }
#timer-results .timer-actions .time-split button + button { flex: 0 0 44px; min-width: 44px; justify-content: center; }
#timer-results .timer-actions .time-split button span { display: inline; white-space: normal; }
#timer-results .timer-actions .time-split .icon { display: none; }
#timer-results .timer-actions .icon { width: 18px; height: 18px; }
#timer-content .timer-intro { display: block; max-width: none; margin: 20px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.timer-empty { padding: 40px 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--paper); text-align: center; }
.timer-empty h2 { margin: 0 0 8px; color: var(--ink); font-size: 20px; line-height: 1.4; }
.timer-empty p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.timer-empty .button { margin-top: 18px; min-height: 44px; font-size: 14px; }

@media (max-width: 1100px) {
  .main-shell > .topbar { gap: 12px; padding: 0 24px; }
  body[data-current-view] main { padding-right: 24px; padding-left: 24px; }
  body[data-current-view] .topbar #current-date { display: none; }
  body[data-current-view="timers"] .right-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  body[data-current-view] .topbar .navigation-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
}

@media (max-width: 760px) {
  html { --workspace-header-height: 68px; }
  body[data-current-view] main { padding-top: 24px; padding-right: 16px; padding-left: 16px; }
  body[data-current-view] .modal :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select),
  .search-field input { font-size: 16px; }
  .main-shell > .topbar {
    gap: 8px;
    padding: 0 16px;
  }
  .topbar .topbar-start { flex: 1 1 auto; gap: 0; }
  .topbar .topbar-right { gap: 8px !important; }
  .topbar #global-create { flex-basis: 168px; width: 168px; min-width: 168px; padding: 0 12px; }
  body[data-current-view] .page-intro #page-title { font-size: 30px; letter-spacing: -.7px; }
  body[data-current-view] .page-intro #page-subtitle { font-size: 15px; }
}

@media (max-width: 540px) {
  .main-shell > .topbar { gap: 6px; padding: 0 12px; }
  .topbar .topbar-right { gap: 6px !important; }
  body[data-current-view] .topbar :is(.pings-pill, .topbar-search) {
    position: relative;
    width: 44px;
    min-width: 44px;
    padding: 0;
    gap: 0;
  }
  .topbar .pings-pill .pings-label,
  .topbar .topbar-search > span { display: none; }
  .topbar .pings-pill .pings-dot { position: absolute; top: 7px; right: 7px; }
  .topbar #global-create { flex-basis: 156px; width: 156px; min-width: 156px; padding: 0 9px; gap: 6px; }
  .timer-dashboard-toolbar { padding: 14px; gap: 12px; }
  .timer-dashboard-toolbar > label { flex-basis: 100%; }
  .timer-dashboard-toolbar > label:last-child { flex-basis: 100%; }
  .timer-dashboard-toolbar :is(input, select) { font-size: 16px; }
  body[data-current-view="timers"] .right-panel { grid-template-columns: minmax(0, 1fr); }
  #workspace-utilities > summary { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 4px 12px; padding: 12px; }
  #workspace-utilities > summary strong { grid-column: 1; }
  #workspace-utility-summary { grid-column: 1; }
  #workspace-utilities > summary::after { grid-column: 2; grid-row: 1 / span 2; }
  .workspace-utility-panels { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 12px; }
  .countdown-preferences, .countups-utilities { padding: 14px; }
  body[data-current-view="today"] .live-nudge.is-docked :is(#nudge-dismiss, #nudge-done) { flex: 1 1 112px; }
  body[data-current-view="today"] .live-nudge.is-docked .nudge-snooze-options { flex-basis: 100%; max-width: 100%; }
  body[data-current-view="today"] .live-nudge.is-docked .nudge-snooze-options > .time-split { flex-basis: 112px; }
}

@media (max-width: 360px) {
  .main-shell > .topbar { padding: 0 8px; }
  .topbar .topbar-start { min-width: 44px; }
  body[data-current-view] main { padding-right: 12px; padding-left: 12px; }
  /* A 320px viewport can have only 305px of content after its scrollbar.
     The label already names the action; omit its decorative icon to retain
     Search and all 44px controls without colliding with the drawer. */
  .topbar #global-create { flex-basis: 136px; width: 136px; min-width: 136px; padding: 0 8px; }
  .topbar #global-create > .icon { display: none; }
  body[data-current-view] .page-intro #page-title { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar button { transition: none; }
}

/* Mixed lists share the workspace navigation and alert surfaces. */
#mixed-list-nav { display: grid; gap: 4px; margin-bottom: 8px; }
#mixed-list-nav[hidden] { display: none; }
#mixed-list-nav .sidebar-list-row { grid-template-columns: 1fr; }
#mixed-list-nav .list-select { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--nav-text); text-align: left; font-size: 14px; }
#mixed-list-nav .list-select.active, #mixed-list-nav .list-select:hover { background: var(--surface-hover, #e6eadd); color: var(--ink); }
#mixed-list-nav .list-copy { flex: 1; }
#mixed-create-type-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
#mixed-create-type-label[hidden] { display: none; }
#mixed-create-type { min-height: 44px; max-width: 130px; border: 1px solid var(--border); border-radius: 8px; background: var(--paper); color: var(--ink); padding: 6px; font: inherit; }
#sidecar-alerts { display: grid; gap: 12px; margin-bottom: 20px; }
#sidecar-alerts[hidden] { display: none; }
.sidecar-alert { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--paper); }
.sidecar-alert > div { flex: 1 1 200px; }
.sidecar-alert p { color: var(--muted); margin: 5px 0 0; }
body[data-current-view="timers"]:not(.is-guest) .content-grid { margin-top: 24px; }
@media (max-width: 560px) {
  /* A selected mixed list has an additional Type control. Give it its own
     labelled row so the drawer, Pings and New keep their shared positions. */
  html:has(body[data-current-view="mixed"] #mixed-create-type-label:not([hidden])) {
    --workspace-header-height: 124px;
  }
  body[data-current-view="mixed"] .topbar-search { display: none; }
  body[data-current-view="mixed"] .topbar:has(#mixed-create-type-label:not([hidden])) {
    padding-bottom: 56px;
  }
  #mixed-create-type-label {
    position: absolute;
    right: 16px;
    bottom: 10px;
    left: 16px;
    justify-content: flex-end;
  }
  #mixed-create-type {
    width: 156px;
    min-width: 0;
    max-width: 156px;
    font-size: 16px;
  }
}
@media (max-width: 540px) {
  #mixed-create-type-label { right: 12px; left: 12px; }
}
@media (max-width: 360px) {
  #mixed-create-type-label { right: 8px; left: 8px; }
  #mixed-create-type { width: 136px; max-width: 136px; }
}
