/* Shared frame from the 27-screen olive and lemon design collection. */
html { --workspace-header-height: 60px; --radius: 7px; }
html[data-theme="dark"] {
  --page: #151b16; --sidebar: #1c251c; --paper: #20291f;
  --control: #1c251c; --surface-hover: #2b3728; --sage: #2d3928;
  --ink: #f0f2e9; --muted: #b6beaf; --border: #394334;
  --yellow: #f3e580; --yellow-soft: #393a24; --green: #bfd0aa;
  --focus: #f3e580; --shadow: 0 16px 48px #0003;
}
html:not([data-theme="dark"]) {
  --page: #f8f9f4; --sidebar: #eef1e7; --paper: #fdfef9;
  --control: #f7f9f1; --surface-hover: #e7eddf; --sage: #e4ebd9;
  --ink: #283225; --muted: #5d6955; --border: #d7dfcd;
  --yellow: #f3e580; --focus: #53663f;
}
body { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.app-shell { --navigation-width: 244px; }
body .sidebar { padding: 24px 14px 16px; border-color: var(--border); background: var(--sidebar); }
html[data-theme="dark"] .sidebar {
  --nav-text: #e0e5d8; --nav-muted: #adb8a4; --nav-active: #2e3a27;
  --nav-indicator: var(--yellow); background: var(--sidebar);
}
.sidebar .sidebar-heading { margin-bottom: 24px; }
.sidebar .sidebar-heading .brand { margin: 0 12px; }
.sidebar .brand-logo { width: 166px; height: auto; }
.sidebar .main-nav { gap: 2px; }
.sidebar .main-nav > .nav-caption:first-child { display: none; }
.sidebar .nav-caption { padding: 0 12px; font-size: 11px; letter-spacing: 2px; }
.sidebar .nav-divider { margin: 15px 10px 12px; }
.sidebar .main-nav .nav-item,
.sidebar .sidebar-bottom .nav-item {
  min-height: 38px; padding: 8px 12px; gap: 12px; border-radius: 5px;
  font-size: 13px; line-height: 1.4;
}
.sidebar .nav-item .icon { width: 18px; height: 18px; }
.sidebar .nav-item.active::before { inset: 7px auto 7px 0; width: 3px; }
.sidebar .nav-count { font-size: 11px; min-width: 18px; height: 18px; }
.sidebar .lists-caption { display: flex; margin: 16px 10px 5px; padding-top: 7px; }
.sidebar .add-list-button { min-height: 30px; padding: 0 3px; }
.sidebar .add-list-button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sidebar .sidebar-list-row { grid-template-columns: minmax(0, 1fr) 32px; }
.sidebar .list-nav .list-select,
body #mixed-list-nav .list-select { min-height: 34px; padding: 7px 12px; gap: 12px; border-radius: 5px; font-size: 13px; }
.sidebar .list-nav .list-more { width: 32px; height: 34px; min-height: 34px; }
.sidebar .list-visibility { font-size: 11px; max-width: 42px; }
.sidebar .list-dot { width: 8px; height: 8px; }
.sidebar .sidebar-bottom { padding-top: 14px; }
.sidebar .sidebar-bottom::before { margin: 0 10px 8px; }
.sidebar .sidebar-bottom [data-action="sharing-inbox"] { font-size: 11px; }
.sidebar .sidebar-bottom .plan-nav { font-size: 11px; }
.sidebar .sidebar-bottom .plan-nav small { font-size: 11px; }
.sidebar .sidebar-bottom .account-button {
  min-height: 58px; margin-top: 6px; padding: 10px; border-width: 1px 0 0;
  border-radius: 0; background: transparent;
}
.sidebar .account-mark { width: 30px; height: 30px; font-size: 11px; }
.sidebar .account-copy > span { font-size: 12px; font-weight: 500; }
.sidebar .account-copy small { font-size: 11px; }
.sidebar .prototype-tag { margin: 6px 10px 0; font-size: 11px; }
.main-shell > .topbar { height: var(--workspace-header-height); min-height: var(--workspace-header-height); padding: 0 28px; gap: 16px; }
body[data-current-view] .topbar #current-date { display: block; color: var(--ink); font-size: 12px; font-weight: 550; }
.topbar .topbar-right { gap: 8px; }
body[data-current-view] .topbar :is(.pings-pill, .topbar-search) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 38px; min-height: 36px; height: 36px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--paper);
  color: var(--ink); font-size: 12px; font-weight: 450;
}
.topbar .pings-pill > .pings-label { font-size: 12px; }
.topbar .pings-pill > span:first-child { font-size: 22px; }
/* One persistent creation control, with a native type picker for mixed lists. */
.topbar .global-create-actions {
  display: flex; align-items: stretch; flex: 0 0 200px;
  width: 200px; min-width: 0; height: 44px;
  border: 1px solid #dfd16b; border-radius: 6px;
  background: var(--yellow); color: #23291c;
  box-shadow: inset 0 1px 0 #fff5;
}
.topbar .global-create-actions #global-create {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 1 1 0; width: auto; min-width: 0; min-height: 44px; height: 44px;
  margin: -1px 0 -1px -1px; padding: 0 13px; gap: 7px;
  border: 0; border-radius: 6px; background: transparent; color: #23291c;
  box-shadow: none; font-size: 13px; font-weight: 650; line-height: 1.2;
  white-space: nowrap;
}
.topbar .global-create-actions #global-create:hover:not(:disabled) { background: #faed98; }
.topbar .global-create-actions #global-create:focus-visible { outline-offset: -4px; }
.topbar .global-create-actions #global-create > .icon { display: block; flex: 0 0 17px; width: 17px; height: 17px; }
.topbar .global-create-actions #global-create > span { min-width: 0; white-space: nowrap; }
.topbar .global-create-actions:has(#mixed-create-type-label:not([hidden])) #global-create { border-radius: 6px 0 0 6px; }
.topbar .global-create-actions #mixed-create-type-label {
  position: relative; inset: auto; display: flex; align-items: center; justify-content: center;
  flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px;
  margin: -1px -1px -1px 0; padding: 0; gap: 0;
  border: 0; border-left: 1px solid #a79a43; border-radius: 0 6px 6px 0;
  color: #23291c; background: transparent; cursor: pointer;
}
.topbar .global-create-actions #mixed-create-type-label::after {
  content: ""; width: 8px; height: 8px; margin-top: -4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); pointer-events: none;
}
.topbar .global-create-actions #mixed-create-type-label:hover { background: #faed98; }
.topbar .global-create-actions #mixed-create-type-label:focus-within { outline: 2px solid var(--focus); outline-offset: -4px; }
.topbar .global-create-actions .create-type-caption {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.topbar .global-create-actions #mixed-create-type {
  position: absolute; inset: 0; display: block; width: 100%; min-width: 0; max-width: none;
  height: 100%; min-height: 44px; margin: 0; padding: 0; opacity: 0;
  border: 0; border-radius: 0 6px 6px 0; font-size: 16px; cursor: pointer;
}
.topbar .global-create-actions #mixed-create-type option { background: var(--paper); color: var(--ink); }
.topbar .global-create-actions #mixed-create-type-label:has(select:disabled) { opacity: .6; cursor: default; }
.topbar .global-create-actions #mixed-create-type:disabled { cursor: default; }
body[data-current-view] main { max-width: 1600px; padding: 28px 28px 42px; }
body[data-current-view] .page-intro { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 22px; padding: 0; }
body[data-current-view] .page-intro #page-title {
  margin: 0 0 8px; font-size: 36px; font-weight: 720; line-height: 1.15;
  letter-spacing: -1.15px; color: var(--ink);
}
body[data-current-view] .page-intro #page-subtitle { font-size: 14px; line-height: 1.5; color: var(--muted); }
body[data-current-view] .page-intro #today-summary { font-size: 14px; color: var(--muted); }
body[data-current-view="today"] .page-intro #today-summary { display: inline; margin-right: 10px; }
body[data-current-view] .page-intro .all-reminders-progress { margin: 10px 0 0; min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 12px; color: var(--muted); }
body[data-current-view] .page-intro .all-progress-icon { width: 20px; height: 20px; background: transparent; color: var(--muted); }
body[data-current-view] .page-intro .timezone-summary { position: static; display: inline-flex; min-height: 30px; margin: 8px 0 0; padding: 5px 10px; border-radius: 5px; font-size: 12px; }
body .button { border-radius: 6px; }
body .button.primary { color: #23291c; border-color: #dfd16b; box-shadow: inset 0 1px 0 #fff5; }
body .button.secondary { color: var(--ink); border-color: var(--border); background: var(--paper); }
body .button.secondary:hover { background: var(--surface-hover); }
body .icon-button { border-radius: 5px; }
body .guest-preview { margin-bottom: 20px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 6px; background: var(--paper); }
body .guest-preview strong { font-size: 13px; }
body .guest-preview p { font-size: 12px; }
body .guest-preview .button { min-height: 36px; font-size: 12px; }
body .sidecar-alert { padding: 14px 16px; border-radius: 6px; border-color: var(--yellow); }
body .sidecar-alert p { font-size: 12px; }
html[data-theme="dark"] .list-dot.personal { background: #e38e78; }
html[data-theme="dark"] .list-dot.work { background: #8daee7; }
html[data-theme="dark"] .list-dot.health { background: #b29ad7; }
body :is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (min-width: 1025px) {
  .sidebar { width: var(--navigation-width); }
  .main-shell { margin-left: var(--navigation-width); }
}
@media (max-width: 1100px) {
  body[data-current-view] main { padding-right: 24px; padding-left: 24px; }
}
@media (max-width: 1024px) {
  .main-shell { margin-left: 0; }
  body .sidebar { width: min(300px, calc(100vw - 24px)); padding: 20px 16px; }
  .sidebar .main-nav .nav-item, .sidebar .sidebar-bottom .nav-item,
  .sidebar .list-nav .list-select, body #mixed-list-nav .list-select { min-height: 44px; font-size: 14px; }
  .sidebar .sidebar-list-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .sidebar .list-nav .list-more, .sidebar .add-list-button { min-width: 44px; min-height: 44px; }
  .main-shell > .topbar { padding: 0 20px; }
  body[data-current-view] .topbar :is(.pings-pill, .topbar-search) { min-height: 44px; min-width: 44px; height: 44px; }
}
@media (max-width: 760px) {
  html { --workspace-header-height: 64px; }
  html:has(body[data-current-view="mixed"] #mixed-create-type-label:not([hidden])) { --workspace-header-height: 64px; }
  body[data-current-view] main { padding: 22px 16px 32px; }
  body[data-current-view] .page-intro { flex-wrap: wrap; gap: 14px; }
  body[data-current-view] .page-intro #page-title { font-size: 30px; }
  body[data-current-view] .page-intro #page-subtitle { font-size: 14px; }
  .main-shell > .topbar { padding: 0 16px; }
  body[data-current-view] .topbar #current-date { font-size: 11px; }
  body[data-current-view] .topbar :is(.pings-pill, .topbar-search) { width: 44px; padding: 0; }
  .topbar .pings-label, .topbar .topbar-search > span { display: none; }
  .topbar .global-create-actions { flex-basis: 188px; width: 188px; }
  .topbar .pings-pill { position: relative; }
  .topbar .pings-dot { position: absolute; right: 5px; top: 5px; }
  body .guest-preview { align-items: flex-start; gap: 10px; flex-wrap: wrap; }
  body .guest-preview .button { min-height: 44px; }
}
@media (max-width: 540px) {
  body[data-current-view] .topbar #current-date { display: none; }
  body[data-current-view] .page-intro-copy { flex: 1 1 100%; }
  .main-shell > .topbar { gap: 8px; padding-inline: 12px; }
  .topbar .topbar-start { flex: 1 1 44px; min-width: 44px; }
  .topbar .topbar-right { gap: 6px !important; }
  .topbar .global-create-actions { flex-basis: 168px; width: 168px; }
  .topbar .global-create-actions #global-create { padding-inline: 7px; gap: 5px; font-size: 12px; }
  .topbar .global-create-actions:has(#mixed-create-type-label:not([hidden])) #global-create > .icon { display: none; }
  body[data-current-view="mixed"] .topbar .topbar-search { display: inline-flex; }
  body[data-current-view="mixed"] .topbar:has(#mixed-create-type-label:not([hidden])) { padding-bottom: 0; }
}
@media (max-width: 360px) {
  body[data-current-view] main { padding-right: 12px; padding-left: 12px; }
  .main-shell > .topbar { gap: 3px; padding-right: 6px; padding-left: 6px; }
  .topbar .topbar-right { gap: 3px !important; }
  .topbar .global-create-actions { flex-basis: 144px; width: 144px; }
  .topbar .global-create-actions #global-create { padding-inline: 5px; gap: 0; font-size: 12px; letter-spacing: -.2px; }
  .topbar .global-create-actions #global-create > .icon { display: none; }
  .topbar .global-create-actions:has(#mixed-create-type-label:not([hidden])) #global-create > span { white-space: normal; line-height: 1.15; }
}
@media (pointer: coarse) {
  .sidebar .main-nav .nav-item, .sidebar .sidebar-bottom .nav-item,
  .sidebar .list-nav .list-select, body #mixed-list-nav .list-select { min-height: 44px; }
  .sidebar .list-nav .list-more, .sidebar .add-list-button { min-width: 44px; min-height: 44px; }
  body[data-current-view] .topbar :is(.pings-pill, .topbar-search), .topbar .global-create-actions #global-create { min-height: 44px; }
}
