/* Today page: the shared Workbench controls and data remain authoritative. */
.today-page {
  background: var(--kc-color-surface);
}
html[data-theme="dark"] .today-page {
  background: var(--surface);
}
html[data-theme="dark"] .today-page .panel .approval-card {
  background: var(--surface);
}
.today-page main.page {
  max-width: 1270px;
  padding: 40px 48px 80px;
}
.today-page .balance {
  display: none;
}
.today-page .page .dashboard {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(260px, 360px);
  align-items: start;
  gap: 28px;
}
.today-page .dashboard > .stack {
  min-width: 0;
  gap: 20px;
}
.today-page #needs-jaime,
.today-card,
.today-page #handled-quietly,
.today-system {
  background: var(--surface, var(--kc-color-plate));
  border: 1px solid var(--kc-color-divider);
  border-radius: 16px;
  box-shadow: var(--kc-shadow-plate);
}
.today-page #needs-jaime {
  padding: 38px 40px 30px;
}
.today-page .hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
}
.today-page .hero-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.today-page .hero h1 {
  font-size: 14px;
  font-family: var(--kc-font-body);
  font-weight: 600;
}
.today-page .hero .summary {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1.5;
  max-width: 630px;
  margin: 0;
}
.today-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}
.today-meta .eyebrow,
.today-meta .runline {
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}
.today-page #needs-jaime .panel-header {
  margin-bottom: 12px;
}
.today-page #needs-jaime .panel-title h2 {
  font-family: var(--kc-font-body);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.today-page #needs-jaime .panel-title .mini-icon,
.today-page #needs-jaime .panel-intro,
.today-page #needs-jaime .attention-count {
  display: none;
}
.today-page #needs-jaime .panel-footer {
  margin-top: 10px;
}
.today-page .approval-cards {
  gap: 12px;
}
.today-page .panel .approval-card {
  border: 0;
  border-radius: 10px;
  background: var(--kc-color-surface-hover);
  padding: 18px;
}
.today-page .approval-card header {
  gap: 12px;
}
.today-page .approval-card h3 {
  font-size: 15px;
}
.today-page .approval-card .card-meta {
  margin-top: 10px;
}
.today-page .approval-card .card-reason {
  border: 0;
  padding: 0;
  background: transparent;
}
.today-page .card-actions {
  flex-wrap: wrap;
}
.today-page .button-primary {
  background: var(--kc-color-key-face);
  border-color: var(--kc-color-key-face);
  color: var(--kc-color-on-key);
}
.today-panels {
  display: grid;
  gap: 20px;
}
.today-side {
  display: grid;
  grid-column: 2;
  gap: 20px;
  min-width: 0;
}
.today-side .today-card {
  padding: 24px 20px;
}
.today-card {
  padding: 25px 28px;
  min-width: 0;
}
.today-card-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.today-card-heading h2,
.today-page .panel h2.today-section-title {
  font-family: var(--kc-font-display);
  font-size: 20px;
  font-weight: var(--kc-font-weight-display);
  line-height: 24px;
}
.today-card-heading h2 {
  margin: 0;
}
.today-card-heading a,
.today-card-heading span,
.today-plan-links a {
  font-size: 12px;
}
.today-empty,
.today-coverage {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.today-coverage {
  margin: 0 0 10px;
}
.today-coverage:empty,
.today-page .folio:empty {
  display: none;
}
.today-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--kc-color-divider);
  font-size: 14px;
  line-height: 21px;
}
.today-row strong,
.today-row small {
  display: block;
  overflow-wrap: anywhere;
}
.today-row small,
.today-row-date {
  color: var(--muted);
}
.today-row small {
  font-size: 13px;
  line-height: 19.5px;
}
.today-amount {
  font-variant-numeric: tabular-nums;
}
.today-ledger-row {
  grid-template-columns: 68px minmax(0, 1fr);
}
.today-row-detail {
  min-width: 0;
}
.today-row-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.today-row-line strong {
  min-width: 0;
}
.today-row-line .today-amount,
.today-order-status {
  flex-shrink: 0;
  white-space: nowrap;
}
.today-row .today-row-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  line-height: 19.5px;
}
.today-plan-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
}
#todayPlanItems > a {
  font-size: 14px;
}
.today-system {
  grid-column: 1 / -1;
  padding: 18px 24px;
}
.today-system > summary {
  cursor: pointer;
  font-weight: 600;
}
.today-system aside {
  margin-top: 16px;
}
.today-mobile-nav {
  display: none;
}
@media (max-width: 900px) {
  .today-page main.page {
    padding: 24px 24px 80px;
  }
  .today-page .page .dashboard {
    grid-template-columns: minmax(0, 1fr);
  }
  .today-page .dashboard > .stack {
    display: contents;
  }
  .today-side,
  .today-panels {
    display: contents;
  }
  .today-page #needs-jaime {
    order: 0;
  }
  .today-calendar {
    order: 1;
  }
  .today-bills {
    order: 2;
  }
  .today-deliveries {
    order: 3;
  }
  .today-plans {
    order: 4;
  }
  .today-system {
    grid-column: 1;
    order: 3;
  }
}
@media (max-width: 600px) {
  .today-page main.page {
    padding: 16px 14px 90px;
  }
  .today-page #needs-jaime {
    padding: 25px 20px;
  }
  .today-page .hero .summary {
    font-size: 19px;
  }
  .today-card {
    padding: 23px 20px;
  }
  .today-mobile-nav {
    position: fixed;
    z-index: 20;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background: var(--surface, var(--kc-color-plate));
    border-top: 1px solid var(--kc-color-divider);
    padding: 7px 2px max(7px, env(safe-area-inset-bottom));
  }
  .today-mobile-nav a {
    display: flex;
    min-width: 54px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    font-size: 10px;
    text-decoration: none;
    color: var(--muted);
  }
  .today-mobile-nav a[aria-current] {
    color: var(--kc-color-accent-text);
  }
  .today-mobile-nav svg {
    width: 18px;
    height: 18px;
  }
}
.today-page [hidden] {
  display: none !important;
}
.today-section-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 19.5px;
}
.today-section-title,
.today-page .panel h2.today-section-title {
  margin: 20px 0 10px;
}
.today-brief-item {
  padding: 16px 0;
  border-top: 1px solid var(--line, var(--kc-color-divider));
  overflow-wrap: anywhere;
}
.today-brief-item h3 {
  font-family: var(--kc-font-body);
  font-size: 16px;
  line-height: 20px;
  margin: 0 0 8px;
}
.today-brief-item > p {
  margin: 0;
  font-size: 15px;
  line-height: 23px;
}
.today-brief-item > p + .button {
  margin-top: 12px;
}
.today-badge {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.today-asof,
.today-feedback,
.today-choice-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 19.5px;
}
.today-brief-item .today-feedback {
  margin: 0;
  font-size: 13px;
  line-height: 19.5px;
}
.today-asof {
  display: block;
  margin-top: 12px;
}
.today-choices {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
}
.today-choices:empty {
  display: none;
}
.today-choices > a:not(.button) {
  font-size: 14px;
  line-height: 20px;
  margin-inline-end: 4px;
}
.today-choices .today-choice-button {
  --kc-button-min-size: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  line-height: 20px;
}
.today-choice-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 9px;
  box-sizing: border-box;
  border: 1px solid var(--kc-color-divider);
  border-radius: 6px;
}
.today-choice-button:hover .today-choice-label {
  background: var(--kc-color-surface-hover);
}
.today-choice-button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.today-choices .today-feedback-button {
  font-weight: 400;
}
.today-feedback-button .today-choice-label {
  border: 0;
  padding-inline: 0;
}
.today-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}
.today-item-footer .today-asof {
  margin: 0;
}
.today-item-footer .today-choices {
  margin: 0;
  margin-inline-start: auto;
}
@media (pointer: coarse) {
  .today-choices .today-choice-button {
    --kc-button-min-size: 44px;
    min-width: 44px;
    padding-block: 6px;
  }
  .today-choices > a:not(.button) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
.today-choices:has(.today-choice-inputs:not([hidden])) {
  padding-bottom: 110px;
}
.today-choice-inputs {
  position: absolute;
  bottom: 0;
  left: 0;
  max-width: 100%;
}
.today-pick-date {
  display: inline-block;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--link);
  font-size: 12px;
  text-decoration: underline;
}
.today-choices .today-feedback:empty {
  display: none;
}
.today-choices form {
  max-width: 100%;
}
.today-choices form label,
.today-choices input,
.today-choices select {
  display: block;
  margin: 4px 0 8px;
  max-width: 100%;
}
/* Keep the entire native picker, including its system-sized indicator. */
.today-choices .today-native-select {
  appearance: auto;
  background-image: none;
  padding: 8px;
  min-height: 44px;
}
.today-action-description {
  display: block;
  max-width: 48ch;
  margin-block-end: 8px;
}
.today-page #needs-jaime .panel-footer {
  display: none;
}

.today-meta > span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.today-meta > span + span::before {
  content: "·";
  margin-inline-end: 8px;
}
