/* W07-P4R-UI1B Today Workspace owns only dashboard-specific presentation. */
.today-workspace {
  gap: 12px;
  min-width: 0;
  padding-bottom: 0;
}

.today-workspace:not(:has(.work-action-shell.is-open)) { overflow: clip; }
body:has(.today-zhiheng-demo:not(.hidden)) { overflow: hidden; }

.app-shell:has(#dashboard.active) #tenantName { display: none; }

.app-shell:has(#dashboard.active) {
  --today-sidebar-motion-duration: 220ms;
  --today-sidebar-motion-easing: ease;
  transition: grid-template-columns var(--today-sidebar-motion-duration) var(--today-sidebar-motion-easing);
}

.app-shell:has(#dashboard.active) .sidebar,
.app-shell:has(#dashboard.active).sidebar-compact .sidebar {
  width: 212px;
  min-width: 212px;
  box-sizing: border-box;
  padding: 14px 10px;
  opacity: 1;
  transition: transform var(--today-sidebar-motion-duration) var(--today-sidebar-motion-easing), box-shadow var(--today-sidebar-motion-duration) var(--today-sidebar-motion-easing);
}

.app-shell:has(#dashboard.active).sidebar-hidden .sidebar {
  opacity: 0;
  visibility: hidden;
}

.today-workspace .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.today-header-tools {
  display: none;
}

.workspace:has(#dashboard.active) .topbar {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  margin-bottom: 12px;
}

.workspace:has(#dashboard.active) .today-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.topbar-heading {
  min-width: 0;
  transition: padding-left var(--today-sidebar-motion-duration) var(--today-sidebar-motion-easing);
}

.sidebar-compact .workspace:has(#dashboard.active) .topbar-heading {
  padding-left: 72px;
}

.topbar-heading p {
  margin: 0;
}

.today-intro-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.today-intro-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border-radius: 8px;
  box-shadow: none;
}

.button-line-icon {
  width: 17px;
  height: 17px;
}

.topbar-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 36px;
  min-height: 36px;
  border-radius: 9px;
  padding: 0;
}

.topbar-refresh span { display: none; }

.collector-inline {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  border-right: 1px solid #dfe7e4;
  padding-right: 12px;
}

.today-header-tools .collector-address {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.collector-inline-label,
.collector-inline-action {
  flex: 0 0 auto;
  color: #71807c;
  font-size: 12px;
  font-weight: 700;
}

.collector-inline-action {
  color: #385f68;
  text-decoration: none;
}

.collector-inline .collector-status-chips {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  gap: 5px;
  min-width: 0;
  max-width: none;
  overflow: visible;
}

.collector-inline .collector-chip {
  flex: 0 0 auto;
  overflow: visible;
  max-width: none;
  border: 1px solid #dde6e3;
  border-radius: 999px;
  padding: 3px 7px;
  color: #586b67;
  background: #f7faf9;
  font-size: 11px;
  text-overflow: clip;
  white-space: nowrap;
}

.collector-inline .collector-chip.connected {
  border-color: #cfe2db;
  color: #426c60;
  background: #eef6f3;
}

.collector-chip-placeholder {
  display: block;
  width: 112px;
  height: 24px;
  border-radius: 999px;
}

.collector-chip-placeholder.is-short { width: 104px; }

@keyframes today-skeleton-shift {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.app-shell:has(#dashboard.is-loading) #systemLine:empty,
.today-workspace.is-loading .today-summary strong,
.today-workspace.is-loading .today-count,
.today-workspace.is-loading .today-list-count,
.collector-chip-placeholder,
.today-skeleton-priority span::after,
.today-skeleton-table span::after {
  background: linear-gradient(100deg, #e9efed 24%, #f5f8f7 42%, #e9efed 60%);
  background-size: 220% 100%;
  animation: today-skeleton-shift 1.25s ease-in-out infinite;
}

.app-shell:has(#dashboard.is-loading) #systemLine:empty {
  display: block;
  width: 118px;
  height: 14px;
  margin-top: 5px;
  border-radius: 6px;
}

.today-workspace.is-loading .today-summary strong {
  display: block;
  width: 34px;
  min-height: 27px;
  border-radius: 7px;
}

.today-workspace.is-loading .today-count,
.today-workspace.is-loading .today-list-count {
  display: inline-block;
  width: 34px;
  min-height: 18px;
  border-radius: 999px;
}

.today-skeleton-priority span,
.today-skeleton-table span {
  position: relative;
  display: block;
  border-top: 1px solid #edf1ef;
}

.today-skeleton-priority span { height: 47px; }
.today-skeleton-table span { height: 58px; }

.today-skeleton-priority span::after,
.today-skeleton-table span::after {
  position: absolute;
  top: 50%;
  left: 16px;
  width: min(72%, 560px);
  height: 11px;
  border-radius: 5px;
  content: "";
  transform: translateY(-50%);
}

.today-skeleton-priority span:nth-child(2)::after,
.today-skeleton-table span:nth-child(even)::after { width: min(58%, 440px); }

.today-summary {
  gap: 0;
  overflow: hidden;
  border: 1px solid #dfe8e5;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(17, 57, 66, 0.05);
}

.today-summary article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 88px;
  border: 0;
  border-radius: 0;
  padding: 13px 22px;
  background: transparent;
  background-image: none;
  box-shadow: none;
}

.today-summary article + article { border-left: 1px solid #e6ecea; }
.today-summary article::after { display: none; }

.today-summary-icon {
  display: grid !important;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
}

.today-summary-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.today-summary [data-summary="pending"] .today-summary-icon { color: #276a89; background: #e8f3f8; }
.today-summary [data-summary="customer"] .today-summary-icon { color: #247568; background: #e5f3ef; }
.today-summary [data-summary="internal"] .today-summary-icon { color: #876322; background: #f5eddd; }
.today-summary strong { margin: 2px 0; font-size: 25px; }
.today-summary small { line-height: 1.3; }

.today-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: start;
  gap: 14px;
  min-width: 0;
}

.today-priority,
.today-list-panel {
  overflow: visible;
  border: 1px solid #dfe7e4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.985);
  background-image: none;
  box-shadow: 0 10px 28px rgba(17, 57, 66, 0.05);
}

.today-priority { min-width: 0; padding: 12px 16px 3px; }
.today-list-panel { padding: 0; }

.today-priority .today-section-head,
.today-list-panel .today-section-head {
  min-height: 46px;
  margin: 0;
  padding: 8px 2px 10px;
}

.today-list-panel .today-section-head {
  border-bottom: 1px solid #e7ecea;
  padding: 10px 16px;
}

.today-heading-title { display: flex; align-items: center; gap: 8px; }
.today-heading-icon { display: grid; width: 22px; height: 22px; place-items: center; color: #956720; }
.today-heading-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.today-list-count,
.today-count { border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 700; }
.today-list-count { color: #66736f; background: #eff3f1; }
.today-count { color: #805d25; background: #f4ead7; }

.today-priority-list,
.today-work-list { gap: 0; }

.priority-work-row {
  grid-template-columns: 30px minmax(0, 1fr) max-content 92px 32px;
  gap: 10px;
  min-height: 55px;
  border-top: 1px solid #e8ecea;
  padding: 7px 0;
}

.priority-work-row:first-child { border-top: 1px solid #e8ecea; padding-top: 7px; }

.priority-rank {
  display: grid;
  width: 24px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  color: #8b641f;
  background: #f7ecd3;
  font-size: 12px;
  font-weight: 800;
}

.priority-work-copy { display: grid; gap: 3px; min-width: 0; }
.priority-work-copy strong,
.priority-work-copy small span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.priority-work-copy strong { color: #173740; }
.priority-work-copy small { display: flex; gap: 7px; min-width: 0; }
.priority-work-row .work-badge {
  width: max-content;
  max-width: 100%;
  justify-self: start;
  padding-inline: 8px;
}
.priority-work-row time { color: #667571; font-size: 11px; text-align: right; }

.priority-row-open,
.work-detail-link {
  min-width: 30px;
  min-height: 30px;
  border: 0;
  padding: 0;
  color: #58706f;
  background: transparent;
  font-size: 21px;
  box-shadow: none;
}

.priority-row-open:hover,
.priority-row-open:focus-visible,
.work-detail-link:hover,
.work-detail-link:focus-visible { color: #153f49; background: #edf3f1; }

.today-zhiheng {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(24, 88, 102, 0.45);
  border-radius: 13px;
  padding: 20px 14px 8px;
  color: #e7f6f5;
  background: linear-gradient(145deg, #0a3743, #0d5660 62%, #173f48);
  box-shadow: 0 12px 28px rgba(8, 52, 62, 0.16);
}

.today-zhiheng::after {
  position: absolute;
  right: -44px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(92, 213, 215, 0.19);
  border-radius: 50%;
  content: "";
}

.today-zhiheng img {
  z-index: 1;
  width: 86px;
  height: 116px;
  align-self: end;
  border-radius: 42px 42px 13px 13px;
  object-fit: cover;
  object-position: center 16%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}

.today-zhiheng-copy { z-index: 1; min-width: 0; }
.today-zhiheng-context { color: #76d7dc; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.today-zhiheng h3 { margin: 7px 0 2px; color: #f5fbfa; font-size: 22px; }
.today-zhiheng p { margin: 0; color: #c4dcdb; font-size: 12px; }
.today-zhiheng small { display: block; margin-top: 9px; color: #a9c6c5; font-size: 10px; line-height: 1.45; }

.today-zhiheng-entry {
  z-index: 2;
  grid-column: 1 / -1;
  align-self: end;
  min-height: 34px;
  border-color: rgba(133, 220, 222, 0.34);
  color: #eafafa;
  background: rgba(0, 23, 29, 0.28);
  box-shadow: none;
}

.today-zhiheng-entry:hover:not(:disabled),
.today-zhiheng-entry:focus-visible { border-color: #8cdbdc; color: #fff; background: rgba(4, 36, 43, 0.56); }
.today-zhiheng-entry:disabled { opacity: .72; cursor: default; }

.today-filters { border-color: #dfe6e4; background: #f8faf9; }
.today-filter { min-height: 31px; padding: 5px 12px; color: #536661; }
.today-filter.active { background: #0f4855; box-shadow: 0 4px 12px rgba(15, 72, 85, .16); }

.today-work-table-head,
.today-work-row {
  display: grid;
  grid-template-columns: minmax(145px, .85fr) minmax(250px, 2.2fr) minmax(102px, .7fr) minmax(112px, .8fr) 72px;
  gap: 12px;
  align-items: center;
}

.today-work-table-head { min-height: 36px; border-bottom: 1px solid #e7ecea; padding: 7px 16px; color: #7b8884; font-size: 11px; font-weight: 650; }

.today-work-row.work-item-card {
  min-height: 58px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid #e8ecea;
  border-radius: 0;
  padding: 8px 16px;
  background: #fff;
  background-image: none;
  box-shadow: none;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.today-work-row.work-item-card:last-child { border-bottom: 0; border-radius: 0 0 8px 8px; }
.today-list-panel:has(.today-pagination:not([hidden])) .today-work-row.work-item-card:last-child { border-radius: 0; }
.today-work-row.work-item-card:hover,
.today-work-row.work-item-card:focus-within { z-index: 9; background: #f8fbfa; box-shadow: inset 3px 0 #d2aa5e; transform: none; }
.today-work-row.work-item-card:has(.work-action-shell.is-open) { z-index: 40; }
.today-work-row.is-urgent { border-left: 0; background: #fcf9f8; }

.work-table-customer { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; }
.work-customer-avatar { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #315d67; background: #e9f1f1; font-size: 12px; font-weight: 800; }
.work-table-customer > div,
.work-table-item,
.work-table-state { min-width: 0; }
.work-table-customer .work-customer { display: block; overflow: hidden; max-width: 100%; color: #28434a; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.work-pinned-note { display: block; margin-top: 2px; color: #896728; font-size: 10px; }
.work-table-item h4 { overflow: hidden; margin: 0; color: #18343b; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.work-table-item .work-contexts { margin-top: 4px; }
.work-table-item .work-context { padding: 2px 7px; font-size: 10px; }
.work-table-state { display: flex; align-items: flex-start; flex-direction: column; gap: 3px; }

.today-workspace .work-badge { border: 1px solid transparent; color: #536763; background: #edf2f0; }
.today-workspace .work-badge.state-pending,
.today-workspace .work-badge.state-in_progress { border-color: #d8e3e3; color: #3e5f66; background: #eaf0f0; }
.today-workspace .work-badge.state-waiting_customer,
.today-workspace .work-badge.state-waiting_internal { border-color: #e4dece; color: #665f4d; background: #f1eee7; }
.today-workspace .work-badge.state-completed,
.today-workspace .work-badge.state-closed { border-color: #dfe3e0; color: #59645f; background: #edf0ee; }
.today-workspace .work-badge.urgent.is-attention,
.today-workspace .work-context.blocker { border-color: #e5d8c2; color: #735a35; background: #f3eee5; }
.today-workspace .work-badge.urgent.is-overdue,
.today-workspace .work-table-due.is-overdue { border-color: #dfcccc; color: #783f43; background: #f1e7e7; }

.work-table-due { justify-self: start; border-radius: 7px; padding: 4px 7px; color: #64736f; font-size: 11px; line-height: 1.3; }
.work-table-actions { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.today-work-row .work-action-shell { position: relative; display: block; margin: 0; }
.work-customer-picker { position: relative; align-self: start; }
.work-customer-picker > span { display: block; margin-bottom: 6px; }
.work-customer-picker > input[type="text"] { width: 100%; }
.work-customer-picker > input[aria-expanded="true"] { border-color: #9d7a38; box-shadow: 0 0 0 3px rgba(210, 170, 94, .22); }
.work-customer-suggestions { position: absolute; z-index: 70; top: 76px; right: 0; left: 0; overflow-y: auto; max-height: 204px; border: 1px solid #d8e1df; border-radius: 8px; padding: 5px; background: #fff; box-shadow: 0 14px 32px rgba(20, 48, 54, .16); }
.work-customer-suggestions button { display: block; width: 100%; min-height: 36px; border: 0; border-radius: 6px; padding: 8px 10px; color: #29474e; background: transparent; text-align: left; }
.work-customer-suggestions button:hover,
.work-customer-suggestions button:focus-visible { color: #123f50; background: #edf4f2; }
.work-customer-match-state { display: block; min-height: 16px; margin-top: 4px; color: #667874; font-size: 11px; line-height: 1.35; }
.work-customer-match-state.is-error { color: #87474a; }
.today-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border-top: 1px solid #e7ecea;
  padding: 7px 16px;
  color: #6a7975;
  font-size: 11px;
}

.today-pagination[hidden] { display: none; }
.today-pagination-controls { display: flex; align-items: center; gap: 9px; }
.today-pagination-controls button {
  display: grid;
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  place-items: center;
  border-color: #d9e2df;
  padding: 0;
  color: #36565d;
  background: #fff;
  box-shadow: none;
  font-size: 18px;
}
.today-pagination-controls button:disabled { opacity: .38; }
.today-pagination.is-loading { opacity: .72; transition: opacity 120ms ease; }
.today-pagination-controls span { min-width: 42px; color: #455d61; text-align: center; }
.today-work-row .work-action-node { min-width: 30px; min-height: 30px; border: 0; padding: 0 4px; color: #627572; background: transparent; box-shadow: none; }
.today-work-row .work-action-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.today-work-row .work-item-controls {
  position: fixed;
  z-index: 41;
  right: auto;
  bottom: auto;
  top: 0;
  left: 0;
  box-sizing: border-box;
  width: min(520px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 28px);
  overflow: auto;
  background: #fff;
  transform: translateY(var(--work-action-shift, 7px)) scale(.985);
  transform-origin: var(--work-action-transform-origin, right top);
  overscroll-behavior: contain;
}
.today-work-row .work-action-shell.is-open .work-item-controls {
  z-index: 41;
  max-height: calc(100vh - 28px);
  margin-top: 0;
  overflow: auto;
  border-width: 1px;
  padding: 14px;
  transform: translateY(0) scale(1);
}
.today-work-row .work-action-compact { border-radius: 6px; }
.today-work-row .work-action-update { justify-self: start; min-width: 104px; min-height: 28px; padding: 4px 10px; }
.today-work-row .work-action-terminal { min-width: 76px; }
.work-zhiheng-entry { display: grid; grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; border-top: 1px solid #edf1ef; padding-top: 9px; }
button.work-zhiheng-ask { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; border-color: #123f50; border-radius: 6px; color: #fff; background: #123f50; box-shadow: 0 5px 12px rgba(8, 48, 61, .14); }
button.work-zhiheng-ask:hover:not(:disabled),
button.work-zhiheng-ask:focus-visible { border-color: #0b3442; color: #fff; background: #0b3442; }
.work-zhiheng-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.work-zhiheng-copy { display: grid; gap: 1px; color: #556d6a; font-size: 11px; line-height: 1.25; }
.work-zhiheng-copy strong { color: #34575b; font-size: 12px; }
.work-zhiheng-copy small { color: #7b8d89; font-size: 10px; }
.row-action-icon { width: 18px; height: 18px; }
.row-action-more { fill: currentColor; stroke: none; }

@keyframes zhiheng-item-highlight {
  0% { background-color: #fff; box-shadow: inset 0 0 0 1px rgba(55, 145, 150, 0); }
  38% { background-color: #f1faf8; box-shadow: inset 0 0 0 1px rgba(55, 145, 150, .48), 0 0 0 4px rgba(55, 145, 150, .1); }
  100% { background-color: #fff; box-shadow: inset 0 0 0 1px rgba(55, 145, 150, 0), 0 0 0 8px rgba(55, 145, 150, 0); }
}

.today-work-row.zhiheng-item-highlight,
.priority-work-row.zhiheng-item-highlight { animation: zhiheng-item-highlight 1050ms ease-out; }

.today-zhiheng-demo {
  position: fixed;
  z-index: 180;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 18px;
  background: rgba(4, 20, 25, .68);
  backdrop-filter: blur(5px);
}

.today-zhiheng-demo.hidden { display: none; }

.today-zhiheng-dialog {
  width: min(760px, 100%);
  max-height: none;
  overflow: visible;
  border: 1px solid rgba(92, 180, 185, .34);
  border-radius: 18px;
  padding: 16px;
  color: #e9f5f4;
  background: linear-gradient(150deg, #082d37, #0d4650 68%, #173d43);
  box-shadow: 0 30px 80px rgba(0, 17, 22, .42);
}

.today-zhiheng-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; border-bottom: 1px solid rgba(173, 218, 218, .16); padding-bottom: 10px; }
.today-zhiheng-dialog > header > .zhiheng-demo-heading { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "avatar title"; align-items: center; column-gap: 12px; min-width: 0; }
.zhiheng-demo-avatar-frame { grid-area: avatar; position: relative; width: 56px; height: 56px; overflow: hidden; margin-top: 6px; border: 2px solid rgba(82, 220, 224, .62); border-radius: 50%; background: rgba(7, 46, 57, .55); isolation: isolate; }
.zhiheng-demo-avatar { position: absolute; top: -18px; left: 50%; width: 66px; height: auto; max-width: none; object-fit: initial; transform: translateX(-50%); }
.today-zhiheng-dialog h2 { margin: 0; color: #fff; font-size: 23px; }
.zhiheng-demo-heading h2 { grid-area: title; align-self: center; }
.today-zhiheng-close { min-width: 34px; min-height: 34px; border-color: rgba(203, 231, 230, .2); color: #e8f6f5; background: rgba(0,0,0,.12); font-size: 20px; }
.today-zhiheng-demo-body { display: grid; gap: 9px; padding: 12px 0; }
.today-zhiheng-demo-body section { border: 0; border-radius: 0; padding: 2px 0; background: transparent; }
.today-zhiheng-demo-body section + section { border-top: 1px solid rgba(185, 221, 221, .15); padding-top: 11px; }
.today-zhiheng-demo-body h3 { margin: 4px 0 5px; color: #fff; font-size: 16px; }
.today-zhiheng-demo-body p,
.today-zhiheng-demo-body li { color: #c4d9d7; font-size: 13px; line-height: 1.45; }
.zhiheng-demo-kicker { color: #d5b77e; font-size: 11.5px; font-weight: 600; letter-spacing: .045em; }
.zhiheng-demo-next ol { margin: 6px 0 0; padding-left: 20px; }
.zhiheng-demo-section-head,
.zhiheng-reply-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zhiheng-confirm-note { color: #9fb9b7; font-size: 11px; }
.zhiheng-demo-reply blockquote { margin: 8px 0; border-left: 3px solid #d6af64; padding: 8px 10px; color: #edf7f6; background: rgba(0,0,0,.12); font-size: 13px; line-height: 1.5; }
.zhiheng-reply-actions button { min-height: 30px; border-color: rgba(199,225,224,.24); border-radius: 6px; color: #eef8f7; background: rgba(0,0,0,.12); }
.zhiheng-adopt-state { min-height: 16px; margin: 0; text-align: right; }
.zhiheng-demo-questions { display: grid; gap: 7px; }
.zhiheng-question-suggestions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.zhiheng-question-suggestions button { min-height: 30px; border-color: rgba(129, 196, 198, .3); border-radius: 6px; padding: 5px 8px; color: #e5f3f2; background: rgba(0, 28, 35, .16); font-size: 12px; text-align: left; }
.zhiheng-question-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.zhiheng-question-form > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.zhiheng-question-form input { min-width: 0; border: 1px solid rgba(129, 196, 198, .34); border-radius: 6px; padding: 7px 11px; color: #eaf6f5; background: rgba(0, 22, 29, .22); }
.zhiheng-question-form input::placeholder { color: #86a9a7; }
.zhiheng-question-form button { min-width: 82px; border-radius: 6px; }
.zhiheng-question-state { min-height: 15px; margin: 0; color: #a8c9c6; font-size: 11px !important; }
.today-zhiheng-demo-actions { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid rgba(173, 218, 218, .16); padding-top: 10px; }
.today-zhiheng-demo-actions button { min-width: 128px; border-radius: 6px; }

@media (max-width: 1320px) and (min-width: 761px) {
  .today-focus-grid { grid-template-columns: minmax(0, 1fr) 104px; }

  .today-zhiheng {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-self: start;
    column-gap: 8px;
    row-gap: 4px;
    width: auto;
    min-height: 0;
    max-height: 96px;
    overflow: hidden;
    box-sizing: border-box;
    padding: 7px;
  }

  .today-zhiheng img { width: 48px; height: 48px; align-self: start; border-radius: 50%; }
  .today-zhiheng-copy { align-self: center; }
  .today-zhiheng-context,
  .today-zhiheng p,
  .today-zhiheng small { display: none; }
  .today-zhiheng h3 { margin: 0; font-size: 14px; }
  .today-zhiheng-entry { grid-column: 1 / -1; min-height: 24px; padding: 2px 5px; font-size: 10px; white-space: nowrap; }
}

@media (max-width: 1060px) and (min-width: 761px) {
  .workspace:has(#dashboard.active) .topbar { grid-template-columns: minmax(140px, auto) minmax(0, 1fr) auto; gap: 10px; }
  .workspace:has(#dashboard.active) .today-header-tools { gap: 8px; }
  .collector-inline-label,
  .collector-inline-action { display: none; }
  .collector-inline .collector-status-chips { max-width: 100%; }
  .today-work-table-head,
  .today-work-row { grid-template-columns: minmax(120px, .85fr) minmax(205px, 1.8fr) 94px 105px 62px; gap: 8px; }
  .today-summary article { grid-template-columns: 40px minmax(0, 1fr); gap: 9px; padding-inline: 13px; }
  .today-summary-icon { width: 40px; height: 40px; }
}

@media (max-width: 760px) {
  .app-shell:has(#dashboard.active) .sidebar,
  .app-shell:has(#dashboard.active).sidebar-compact .sidebar {
    width: min(212px, calc(100vw - 56px));
    min-width: 0;
    padding: 14px 10px;
  }

  .today-workspace { gap: 12px; padding-bottom: 10px; }
  .workspace:has(#dashboard.active) .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px 10px;
    min-height: 0;
    margin-bottom: 10px;
  }
  .workspace:has(#dashboard.active) .today-header-tools {
    grid-column: 1 / -1;
    display: grid;
    justify-content: stretch;
    gap: 8px;
  }
  .collector-inline { border-right: 0; padding-right: 0; }
  .collector-inline-label,
  .collector-inline-action { display: none; }
  .collector-inline .collector-status-chips { max-width: 100%; flex-wrap: wrap; }
  .today-intro-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .today-summary { grid-template-columns: 1fr; }
  .today-summary article { min-height: 72px; border-left: 0 !important; border-top: 1px solid #e6ecea; padding: 10px 15px; }
  .today-summary article:first-child { border-top: 0; }
  .today-focus-grid { grid-template-columns: 1fr; }
  .today-priority,
  .today-list-panel { padding-inline: 0; }
  .today-priority .today-section-head,
  .today-priority-list { margin-inline: 13px; }
  .priority-work-row { grid-template-columns: 28px minmax(0, 1fr) 34px; gap: 8px; padding-block: 10px; }
  .priority-rank { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
  .priority-work-copy { grid-column: 2; grid-row: 1; }
  .priority-work-row .work-badge,
  .priority-work-row time { grid-column: 2; justify-self: start; }
  .priority-work-row .work-badge { grid-row: 2; }
  .priority-work-row time { grid-row: 3; }
  .priority-work-row > .priority-row-open { grid-column: 3; grid-row: 1 / span 3; }

  .today-zhiheng {
    grid-template-columns: 68px minmax(0, 1fr);
    min-height: 0;
    padding: 12px;
  }
  .today-zhiheng img { width: 68px; height: 78px; align-self: center; border-radius: 34px 34px 12px 12px; }
  .today-zhiheng h3 { margin-top: 3px; font-size: 19px; }
  .today-zhiheng small { margin-top: 4px; }
  .today-zhiheng-entry { grid-column: 1 / -1; justify-self: stretch; min-height: 32px; margin-top: 0; padding-inline: 12px; }

  .today-list-panel .today-section-head { align-items: stretch; padding: 13px; }
  .today-work-table-head { display: none; }
  .today-work-row.work-item-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "customer actions" "item item" "state due"; gap: 8px 11px; padding: 13px; }
  .work-table-customer { grid-area: customer; }
  .work-table-item { grid-area: item; }
  .work-table-state { grid-area: state; }
  .work-table-due { grid-area: due; justify-self: end; }
  .work-table-actions { grid-area: actions; }
  .work-table-item h4 { white-space: normal; }
  .today-work-row .work-item-controls { right: auto; bottom: auto; top: 0; left: 0; width: calc(100vw - 28px); max-height: calc(100vh - 28px); }
  .today-work-row .work-action-shell { position: static; }

  .today-zhiheng-demo { align-items: end; padding: 10px; }
  .today-zhiheng-dialog { width: 100%; max-height: none; border-radius: 16px; padding: 16px; }
}

@media (max-width: 480px) {
  .today-zhiheng-demo { align-items: start; overflow-y: auto; }
  .today-intro-actions { grid-template-columns: 1fr; }
  .today-summary article { grid-template-columns: 40px minmax(0, 1fr); }
  .today-summary-icon { width: 38px; height: 38px; }
  .today-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .today-zhiheng-entry { grid-column: 1 / -1; justify-self: stretch; margin-top: 0; }
  .zhiheng-question-suggestions { grid-template-columns: 1fr; }
  .today-zhiheng-demo-actions { display: grid; grid-template-columns: 1fr; }
  .zhiheng-question-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .today-work-row,
  .priority-row-open,
  .work-detail-link,
  .today-zhiheng-entry,
  .today-zhiheng-demo {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .today-work-row.zhiheng-item-highlight,
  .priority-work-row.zhiheng-item-highlight {
    animation: none !important;
    background-color: #f1faf8;
    box-shadow: inset 0 0 0 1px rgba(55, 145, 150, .48), 0 0 0 4px rgba(55, 145, 150, .1);
  }

  .app-shell:has(#dashboard.is-loading) #systemLine:empty,
  .today-workspace.is-loading .today-summary strong,
  .today-workspace.is-loading .today-count,
  .today-workspace.is-loading .today-list-count,
  .collector-chip-placeholder,
  .today-skeleton-priority span::after,
  .today-skeleton-table span::after {
    animation: none !important;
  }
}
