@layer interface {
  @media screen {
    html[data-theme] .today-bar.panel {
      border-inline-start: 3px solid var(--accent, var(--forest));
      margin-bottom: 0;
    }
    html[data-theme] .today-bar .today-bar-main {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: end;
      gap: .65rem 1rem;
    }
    html[data-theme] .today-bar .today-top-row {
      grid-column: 1 / -1;
      display: flex;
      align-items: baseline;
      flex-wrap: wrap;
      gap: .4rem .75rem;
    }
    html[data-theme] .today-bar .eyebrow { flex-basis: auto; }
    html[data-theme] .today-bar .thread-focus { width: 100%; max-width: none; }
    html[data-theme] .today-bar .thread-focus textarea {
      field-sizing: content;
      width: 100%;
      min-height: 44px;
      height: auto;
      padding: .6rem .75rem;
      resize: vertical;
      overflow-wrap: anywhere;
      font: inherit;
      line-height: 1.45;
    }
    html[data-theme] .today-bar .day-mode-bar {
      display: inline-flex;
      width: fit-content;
      max-width: 100%;
      gap: 2px;
    }
    html[data-theme] .today-bar .day-mode-btn {
      flex: 1 1 auto;
      min-width: 0;
      padding-inline: .65rem;
    }
    html[data-theme] .today-disclosure {
      min-width: 0;
      margin: 0;
      border-bottom: 1px solid var(--line);
      padding: 0;
    }
    html[data-theme] .today-disclosure > summary,
    html[data-theme] .focus-timer-panel details > summary {
      display: list-item;
      min-height: 44px;
      padding: .65rem .3rem;
      cursor: pointer;
      line-height: 1.5;
    }
    html[data-theme] .today-disclosure[open] > :not(summary) { margin-block: .5rem 1rem; }
    html[data-theme] .today-main-steps .today-mit-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: .35rem .75rem;
      padding: .65rem 0;
      border: 0;
      border-top: 1px solid var(--line);
      border-radius: 0;
      background: transparent;
    }
    html[data-theme] .today-main-steps .today-mit-row strong { overflow-wrap: anywhere; }
    html[data-theme] .today-main-steps .today-mit-row .actions { margin: 0; gap: .35rem; }
    html[data-theme] .focus-timer-panel .focus-display-row { padding: 0; border: 0; background: transparent; }
    html[data-theme] .focus-timer-panel .focus-clock-digits,
    html[data-theme] .focus-timer-panel .focus-net-readout,
    html[data-theme] .today-mit-row .hint {
      font-family: var(--font-mono, ui-monospace), monospace;
      font-variant-numeric: tabular-nums;
    }
    html[data-theme] .focus-timer-panel :is(.focus-options, .focus-history-fold) {
      margin: 0;
      padding: 0;
      border: 0;
      border-top: 1px solid var(--line);
      border-radius: 0;
    }
    html[data-theme] .focus-options[open] .focus-config-row { padding-block: .5rem; }
  }
  @media screen and (max-width: 720px) {
    html[data-theme] .today-bar .today-bar-main,
    html[data-theme] .today-main-steps .today-mit-row {
      grid-template-columns: minmax(0, 1fr);
    }
    html[data-theme] .focus-timer-panel { gap: .4rem; }
    html[data-theme] .focus-timer-panel .focus-display-row { gap: .5rem; }
    html[data-theme] .focus-timer-panel .focus-net-readout { overflow-wrap: anywhere; }
  }
  @media print {
    .today-disclosure::details-content { display: block; content-visibility: visible; }
  }
}
