/* Today boxes. Folded until tapped. Phone and desktop share this look.
   Phone edit is up, down, and hide. The desktop editor still drags. */

body.hub-v12 #v12Today {
  max-width: 100%;
  overflow-x: hidden;
}
body.hub-v12 #v12Today .v12-today-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 4px;
}
body.hub-v12 #v12Today .v12-today-hello { flex: 1; min-width: 0; }
body.hub-v12 #v12Today .v12-today-date {
  margin: 0 0 2px;
  color: var(--hub-ink-muted);
  font-size: 13px;
  font-weight: 650;
}
body.hub-v12 #v12Today h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -.3px;
}
body.hub-v12 #v12Today .v12-today-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex: none;
  max-width: 100%;
}
body.hub-v12 #v12Today .v12-today-tools .secondary,
body.hub-v12 #v12Today .v12-today-tools button,
body.hub-v12 #v12Today .v12-today-tray button {
  min-height: 44px;
}
body.hub-v12 #v12Today .v12-today-sub {
  margin: 0 0 12px;
  color: var(--hub-ink-muted);
  font-size: 14.5px;
}
body.hub-v12 #v12Today .v12-today-grid { align-items: start; }
body.hub-v12 #v12Today .v12-today-box {
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 1px 2px rgba(20, 30, 50, .05), 0 4px 14px rgba(20, 30, 50, .05);
}
body.hub-v12 #v12Today .v12-today-box.open { grid-column: 1 / -1; }
body.hub-v12 #v12Today .v12-today-fold {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 12px 14px;
  border: 0;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
body.hub-v12 #v12Today .v12-today-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
body.hub-v12 #v12Today .v12-today-main b {
  font-size: 16px;
  line-height: 1.25;
}
body.hub-v12 #v12Today .v12-today-sum {
  color: var(--hub-ink-muted);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.hub-v12 #v12Today .v12-today-count {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--hub-canvas);
  color: var(--hub-ink);
  font-style: normal;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
body.hub-v12 #v12Today .v12-today-box.warn .v12-today-count {
  background: var(--hub-alert-l);
  color: var(--hub-alert);
}
body.hub-v12 #v12Today .v12-today-chev {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--hub-ink-muted);
}
body.hub-v12 #v12Today .v12-today-box.folded .v12-today-chev { transform: rotate(-90deg); }
body.hub-v12 #v12Today .v12-box-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 10px 12px;
}
body.hub-v12 #v12Today .v12-today-box.folded .v12-box-body { display: none; }
body.hub-v12 #v12Today .v12-today-row,
body.hub-v12 #v12Today .v12-today-more {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}
body.hub-v12 #v12Today .v12-today-row span,
body.hub-v12 #v12Today .v12-today-more {
  color: var(--hub-ink-muted);
  font-size: 14px;
  font-weight: 600;
}
body.hub-v12 #v12Today .v12-today-ctl {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  background: var(--hub-wait-l);
  border-bottom: 1px solid var(--hub-wait-l);
}
body.hub-v12 #v12Today .v12-today-ctl button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--hub-line-strong);
  border-radius: 10px;
  background: #fff;
  font-weight: 650;
  cursor: pointer;
}
body.hub-v12 #v12Today .v12-today-hide { color: var(--hub-alert); }
body.hub-v12 #v12Today .v12-today-tray {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.hub-v12 #v12Today .v12-today-tray h2 { margin: 0; font-size: 16px; }
body.hub-v12 #v12Today .v12-today-tray button {
  width: 100%;
  text-align: left;
}

body.hub-v12.v12-phone #v12Today h1 { font-size: 22px; }
body.hub-v12.v12-phone #v12Today .v12-today-grid,
body.hub-v12.v12-phone #mainContent .v12-grid {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 560px) {
  body.hub-v12 #v12Today h1 { font-size: 22px; }
  body.hub-v12 #v12Today .v12-today-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.hub-v12 #mainContent { overflow-x: hidden; }
}
