/* ai207: glass AI workspace cards, compact nav, and mobile containment. */
:root {
  --workspace-max: 1120px;
  --workspace-input: 820px;
  --workspace-radius: 22px;
  --slm-bg: #f4f8fd;
  --slm-surface: #ffffff;
  --slm-surface-muted: rgba(248, 251, 255, .72);
  --slm-ink: #081322;
  --slm-ink-soft: #40516a;
  --slm-muted: #79889c;
  --slm-faint: #a6b2c1;
  --slm-line: rgba(43, 76, 118, .12);
  --slm-line-soft: rgba(43, 76, 118, .075);
  --slm-brand: #096ff2;
  --slm-brand-deep: #0757c7;
  --slm-brand-soft: rgba(9, 111, 242, .09);
  --slm-brand-wash: rgba(9, 111, 242, .065);
  --slm-glass: rgba(255, 255, 255, .66);
  --slm-glass-strong: rgba(255, 255, 255, .82);
  --slm-shadow-focus: 0 18px 42px rgba(48, 93, 151, .10);
}

.app {
  background:
    radial-gradient(circle at 72% 18%, rgba(0, 110, 230, .045), transparent 28%),
    linear-gradient(180deg, var(--slm-surface, #fff) 0%, var(--slm-bg, #f6f8fb) 100%) !important;
}

.sidebar {
  padding-top: 18px !important;
}

.side-top {
  min-height: 34px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
}

.brand-lockup {
  min-width: 0 !important;
}

.brand-logo-shell {
  width: 28px !important;
  height: 28px !important;
}

.brand-text strong {
  font-size: 13px !important;
  letter-spacing: 0 !important;
}

.brand-text em {
  font-size: 7.5px !important;
  letter-spacing: .2em !important;
}

.side-top-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.side-icon-btn {
  width: 28px !important;
  height: 28px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 8px !important;
  color: var(--slm-ink-soft, #526174) !important;
}

.side-top .side-icon-btn {
  display: grid !important;
}

.side-icon-btn:hover {
  background: rgba(20, 36, 59, .055) !important;
  color: var(--slm-ink, #14243b) !important;
}

.side-product-title {
  display: none;
}

.side-primary-actions {
  display: none !important;
}

.side-action-btn,
.side-search {
  min-height: 38px !important;
  border-radius: 9px !important;
}

.side-search-inline {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
  padding: 0 10px !important;
  border-color: rgba(20, 36, 59, .08) !important;
  background: rgba(255, 255, 255, .66) !important;
}

.side-search-inline input {
  font-size: 13px !important;
}

.side-nav {
  display: grid !important;
  gap: 2px !important;
  margin: 8px 0 0 !important;
  padding: 8px 0 10px !important;
  border-top: 1px solid var(--slm-line-soft, rgba(20, 36, 59, .07)) !important;
  border-bottom: 1px solid var(--slm-line-soft, rgba(20, 36, 59, .07)) !important;
}

.side-nav-label {
  display: none !important;
}

.side-nav-item {
  min-height: 34px !important;
  border-radius: 8px !important;
  gap: 8px !important;
  padding: 0 9px !important;
}

.side-nav-item.is-on {
  background: rgba(0, 110, 230, .08) !important;
  color: var(--slm-brand, #006ee6) !important;
}

.side-nav-copy strong {
  font-size: 12.5px !important;
  font-weight: 560 !important;
}

.side-nav-copy em {
  display: none !important;
}

.side-global {
  display: none !important;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--slm-line-soft, rgba(20, 36, 59, .07));
}

.side-history {
  margin-top: 10px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

.side-section-title {
  margin-bottom: 5px !important;
  color: #8793a5 !important;
  font-size: 11px !important;
  font-weight: 520 !important;
}

.side-history-item {
  min-height: 29px !important;
  padding: 5px 7px !important;
}

.side-history-item span {
  color: #344258 !important;
  font-size: 12.5px !important;
  font-weight: 480 !important;
}

.side-history-item time {
  color: #9aa5b4 !important;
  font-size: 11.5px !important;
  font-weight: 440 !important;
}

.side-history-item:hover span,
.side-history-item.is-on span {
  color: var(--slm-ink, #14243b) !important;
}

.side-user-wrap {
  padding-top: 12px !important;
}

.app.view-today .stage,
.app.view-daily .stage,
.app.view-clients .stage,
.app.view-service .stage,
.app.view-team .stage,
.app.view-business .stage,
.app.view-followup .stage,
.app.view-training .stage,
.app.view-private .stage,
.app.view-knowledge .stage,
.app.view-analysis .stage {
  width: 100% !important;
  max-width: none !important;
  min-height: 100% !important;
  padding: 0 !important;
}

.workspace-landing {
  width: min(var(--workspace-max), calc(100vw - var(--slm-sidebar, 280px) - 96px));
  min-height: calc(100dvh - 24px);
  margin: 0 auto;
  padding: 58px 0 92px;
  display: grid;
  align-content: center;
  justify-items: center;
}

.workspace-landing.is-today {
  width: min(1040px, calc(100vw - var(--slm-sidebar, 280px) - 112px));
  padding: 34px 0 82px;
  align-content: center;
  justify-items: center;
}

.workspace-home-frame {
  width: 100%;
  display: grid;
  grid-template-rows: auto auto auto;
  justify-items: center;
}

.workspace-home-bar {
  min-height: 54px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--slm-line-soft, rgba(20, 36, 59, .07));
  color: var(--slm-ink, #14243b);
  font-size: 14px;
  font-weight: 620;
}

.workspace-home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  justify-items: center;
  margin: 0 0 24px;
}

.workspace-visual {
  width: clamp(196px, 23vw, 300px);
  aspect-ratio: 3 / 2;
  margin: 0 0 8px;
  pointer-events: none;
  user-select: none;
}

.workspace-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 48px rgba(0, 110, 230, .14));
}

.workspace-copy {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.workspace-copy p {
  margin: 0;
  color: var(--slm-ink-soft, #526174);
  font-size: 18px;
  font-weight: 620;
}

.workspace-copy h1 {
  margin: 0;
  color: var(--slm-ink, #14243b);
  font-size: clamp(42px, 4.5vw, 64px);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: 0;
}

.workspace-landing.is-today .workspace-copy {
  justify-items: center;
  text-align: center;
  gap: 5px;
}

.workspace-landing.is-today .workspace-copy p {
  color: var(--slm-ink-soft, #526174);
  font-size: 13.5px;
  font-weight: 520;
  line-height: 1.25;
}

.workspace-landing.is-today .workspace-copy h1 {
  color: #0b1220 !important;
  font-size: clamp(31px, 2.35vw, 39px);
  font-weight: 610;
  line-height: 1.18;
}

.workspace-landing.is-today .workspace-visual {
  width: 118px;
  margin: 0 0 0;
  justify-self: center;
  opacity: .9;
}

.workspace-copy span {
  display: block;
  max-width: 620px;
  color: var(--slm-ink-soft, #526174);
  font-size: 15px;
  line-height: 1.75;
}

.workspace-command {
  width: min(var(--workspace-input), 100%);
  min-height: 148px;
  margin-top: 42px;
  padding: 24px;
  border: 1px solid rgba(20, 36, 59, .11);
  border-radius: var(--workspace-radius);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 22px 70px rgba(20, 36, 59, .08);
}

.workspace-landing.is-today .workspace-command {
  width: min(920px, calc(100% - 48px));
  justify-self: center;
  min-height: 126px;
  margin-top: 0;
  padding: 20px 24px;
  border-color: rgba(37, 65, 104, .12);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 44px rgba(22, 52, 94, .045);
}

.workspace-command:focus-within {
  border-color: rgba(0, 110, 230, .3);
  box-shadow:
    0 0 0 4px rgba(0, 110, 230, .055),
    0 20px 54px rgba(20, 36, 59, .07);
}

.workspace-command textarea {
  min-height: 58px !important;
  color: var(--slm-ink, #14243b) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

.workspace-command textarea::placeholder {
  color: var(--slm-muted, #7a8798) !important;
}

.workspace-command .slm-command-bar {
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.workspace-command .slm-tool-btn,
.workspace-command .slm-mode-btn {
  min-height: 34px !important;
  border: 1px solid rgba(37, 65, 104, .09) !important;
  border-radius: 999px !important;
  background: var(--slm-surface, #fff) !important;
  box-shadow: none !important;
}

.workspace-command .slm-tool-btn {
  width: 36px !important;
  padding: 0 !important;
}

.workspace-command .slm-mode-btn {
  padding: 0 13px !important;
  color: #53617a !important;
  font-size: 12px !important;
  font-weight: 560 !important;
}

.workspace-command .slm-mode-btn:hover,
.workspace-command .slm-tool-btn:hover {
  border-color: rgba(0, 110, 230, .18) !important;
  background: rgba(248, 251, 255, .96) !important;
  color: var(--slm-brand, #006ee6) !important;
}

.workspace-command .slm-send {
  width: 42px !important;
  height: 42px !important;
  border: 1px solid rgba(66, 105, 255, .08) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #7f97ff 0%, #0b6fe8 100%) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(71, 105, 245, .25) !important;
}

.workspace-command .slm-send:hover {
  transform: translateY(-1px);
}

.workspace-command .slm-send:active {
  transform: translateY(0) scale(.98);
}

.workspace-command .slm-send.is-mute {
  border-color: var(--slm-line-soft, rgba(20, 36, 59, .07)) !important;
  background: #eef3fa !important;
  color: var(--slm-muted, #7a8798) !important;
  box-shadow: none !important;
}

.workspace-prompt-grid {
  width: min(920px, calc(100% - 48px));
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 16px;
}

.workspace-prompt-card {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 0 12px 0 9px;
  border: 1px solid rgba(0, 110, 230, .1);
  border-radius: 999px;
  background: rgba(0, 110, 230, .055);
  color: var(--slm-ink, #14243b);
  text-align: left;
  box-shadow: none;
  transition: border-color .16s var(--ease, ease), background .16s var(--ease, ease), color .16s var(--ease, ease), transform .16s var(--ease, ease);
}

.workspace-prompt-card:hover {
  border-color: rgba(0, 110, 230, .18);
  background: rgba(0, 110, 230, .075);
  color: var(--slm-brand-deep, #004fb8);
  transform: translateY(-1px);
}

.workspace-prompt-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, .56);
  color: var(--slm-brand, #006ee6);
}

.workspace-prompt-icon svg {
  width: 13px;
  height: 13px;
}

.workspace-prompt-card:nth-child(1) {
  border-color: rgba(37, 184, 119, .13);
  background: rgba(37, 184, 119, .075);
  color: #166a4b;
}

.workspace-prompt-card:nth-child(1):hover {
  border-color: rgba(37, 184, 119, .2);
  background: rgba(37, 184, 119, .105);
}

.workspace-prompt-card:nth-child(1) .workspace-prompt-icon {
  color: #15a46c;
}

.workspace-prompt-card:nth-child(2) {
  border-color: rgba(255, 143, 42, .14);
  background: rgba(255, 143, 42, .08);
  color: #8a4b14;
}

.workspace-prompt-card:nth-child(2):hover {
  border-color: rgba(255, 143, 42, .23);
  background: rgba(255, 143, 42, .115);
}

.workspace-prompt-card:nth-child(2) .workspace-prompt-icon {
  color: #f97316;
}

.workspace-prompt-card:nth-child(3) {
  border-color: rgba(126, 87, 255, .13);
  background: rgba(126, 87, 255, .075);
  color: #5746af;
}

.workspace-prompt-card:nth-child(3):hover {
  border-color: rgba(126, 87, 255, .21);
  background: rgba(126, 87, 255, .105);
}

.workspace-prompt-card:nth-child(3) .workspace-prompt-icon {
  color: #7c5cff;
}

.workspace-prompt-card:nth-child(4) {
  border-color: rgba(0, 110, 230, .13);
  background: rgba(0, 110, 230, .07);
  color: var(--slm-brand-deep, #004fb8);
}

.workspace-prompt-card:nth-child(4):hover {
  border-color: rgba(0, 110, 230, .21);
  background: rgba(0, 110, 230, .095);
}

.workspace-prompt-card:nth-child(4) .workspace-prompt-icon {
  color: var(--slm-brand, #006ee6);
}

.workspace-prompt-copy {
  min-width: 0;
  display: block;
}

.workspace-prompt-copy strong {
  overflow: hidden;
  color: currentColor;
  font-size: 12px;
  font-weight: 540;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-prompt-copy em {
  overflow: hidden;
  color: var(--slm-muted, #7a8798);
  font-size: 10.5px;
  font-style: normal;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-prompt-arrow {
  display: none;
}

.workspace-page {
  width: min(1280px, calc(100vw - var(--slm-sidebar, 280px) - 80px));
  min-height: calc(100dvh - 24px);
  margin: 0 auto;
  padding: 68px 0 116px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.workspace-page-head {
  max-width: 840px;
  display: grid;
  gap: 8px;
  padding: 0;
}

.workspace-page-head h1 {
  margin: 0;
  color: var(--slm-ink, #14243b);
  font-size: clamp(28px, 2.1vw, 34px);
  font-weight: 640;
  line-height: 1.16;
  letter-spacing: 0;
}

.workspace-page-head p {
  margin: 0;
  max-width: 640px;
  color: var(--slm-ink-soft, #526174);
  font-size: 14px;
  line-height: 1.65;
}

.workspace-stat-strip,
.workspace-conclusion {
  display: none;
}

.workspace-ai-brief {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px 15px;
  border: 1px solid rgba(20, 36, 59, .07);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(0, 110, 230, .035), rgba(255, 255, 255, .72) 46%),
    rgba(255, 255, 255, .72);
  box-shadow: none;
}

.workspace-ai-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 110, 230, .065);
  color: var(--slm-brand, #006ee6);
}

.workspace-page-service .workspace-ai-mark {
  background: rgba(126, 87, 194, .07);
  color: #6850b8;
}

.workspace-page-team .workspace-ai-mark {
  background: rgba(0, 110, 230, .065);
  color: var(--slm-brand, #006ee6);
}

.workspace-page-business .workspace-ai-mark {
  background: rgba(17, 126, 101, .075);
  color: #08765d;
}

.workspace-page-knowledge .workspace-ai-mark {
  background: rgba(20, 36, 59, .055);
  color: #33445f;
}

.workspace-ai-brief span {
  display: block;
  color: var(--slm-brand, #006ee6);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.2;
}

.workspace-ai-brief strong {
  display: block;
  margin-top: 4px;
  color: var(--slm-ink, #14243b);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.42;
}

.workspace-ai-brief p {
  margin: 5px 0 0;
  max-width: 780px;
  color: var(--slm-ink-soft, #526174);
  font-size: 13px;
  line-height: 1.65;
}

.workspace-brief-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.workspace-brief-meta span {
  display: inline-flex;
  align-items: center;
  color: var(--slm-muted, #7a8798);
  font-size: 12px;
  line-height: 1.3;
}

.workspace-brief-meta span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(82, 97, 116, .42);
}

.workspace-worklist {
  overflow: hidden;
  border: 1px solid rgba(20, 36, 59, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .74);
  box-shadow: none;
}

.workspace-worklist-head {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(20, 36, 59, .07);
}

.workspace-worklist-head span {
  color: var(--slm-ink, #14243b);
  font-size: 13px;
  font-weight: 650;
}

.workspace-worklist-head button {
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--slm-brand, #006ee6);
  font-size: 12.5px;
  font-weight: 560;
}

.workspace-worklist-rows {
  display: grid;
}

.workspace-work-row {
  display: grid;
  grid-template-columns: minmax(320px, .98fr) minmax(360px, 1.16fr) minmax(230px, .68fr);
  gap: 24px;
  align-items: start;
  min-height: 116px;
  padding: 17px 18px 17px 20px;
  border-bottom: 1px solid rgba(20, 36, 59, .07);
}

.workspace-work-row:last-child {
  border-bottom: 0;
}

.workspace-work-row.is-primary {
  background: rgba(0, 110, 230, .018);
  box-shadow: inset 1px 0 0 rgba(0, 110, 230, .28);
}

@media (hover: hover) and (pointer: fine) {
  .workspace-work-row:hover {
    background: rgba(255, 255, 255, .52);
  }
}

.workspace-work-main,
.workspace-work-reason,
.workspace-work-meta {
  display: grid;
  min-width: 0;
}

.workspace-work-main {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.workspace-event-visual {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(20, 36, 59, .08);
  border-radius: 12px;
  background: rgba(246, 249, 252, .88);
  color: var(--slm-brand, #006ee6);
}

.workspace-event-visual.is-photo {
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
}

.workspace-event-visual img,
.workspace-event-visual .avatar,
.workspace-event-visual .kid-av {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.workspace-work-row.tone-danger .workspace-event-visual:not(.is-photo) {
  background: rgba(255, 242, 243, .86);
  color: #d9364f;
}

.workspace-work-row.tone-warn .workspace-event-visual:not(.is-photo) {
  background: rgba(255, 248, 235, .9);
  color: #b96d00;
}

.workspace-work-row.tone-safe .workspace-event-visual:not(.is-photo) {
  background: rgba(235, 250, 245, .9);
  color: #08765d;
}

.workspace-work-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.workspace-row-kicker,
.workspace-work-reason span,
.workspace-work-meta span {
  color: var(--slm-muted, #7a8798);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.25;
}

.workspace-row-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.workspace-row-kicker b,
.workspace-row-kicker i {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  font-style: normal;
  line-height: 1;
}

.workspace-row-kicker b {
  padding: 0 7px;
  border: 1px solid rgba(0, 110, 230, .13);
  background: rgba(0, 110, 230, .055);
  color: var(--slm-brand, #006ee6);
  font-weight: 680;
}

.workspace-row-kicker i {
  color: var(--slm-muted, #7a8798);
  font-weight: 560;
}

.workspace-work-row.tone-danger .workspace-row-kicker b {
  border-color: rgba(217, 54, 79, .14);
  background: rgba(255, 242, 243, .78);
  color: #c92f46;
}

.workspace-work-row.tone-warn .workspace-row-kicker b {
  border-color: rgba(185, 109, 0, .16);
  background: rgba(255, 248, 235, .88);
  color: #9a5a00;
}

.workspace-work-row.tone-safe .workspace-row-kicker b {
  border-color: rgba(8, 118, 93, .14);
  background: rgba(235, 250, 245, .86);
  color: #08765d;
}

.workspace-work-main strong {
  color: var(--slm-ink, #14243b);
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.38;
}

.workspace-row-signal {
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(20, 36, 59, .075);
  border-radius: 8px;
  background: rgba(246, 249, 252, .74);
  color: var(--slm-ink, #14243b);
  font-size: 12px;
  font-weight: 640;
  line-height: 1;
}

.workspace-work-row.tone-danger .workspace-row-signal {
  border-color: rgba(217, 54, 79, .12);
  background: rgba(255, 242, 243, .58);
  color: #9f3040;
}

.workspace-work-row.tone-warn .workspace-row-signal {
  border-color: rgba(185, 109, 0, .14);
  background: rgba(255, 248, 235, .66);
  color: #7b4a05;
}

.workspace-work-row.tone-safe .workspace-row-signal {
  border-color: rgba(8, 118, 93, .13);
  background: rgba(235, 250, 245, .6);
  color: #12634f;
}

.workspace-work-main p,
.workspace-work-reason p,
.workspace-work-meta p {
  margin: 0;
  color: var(--slm-ink-soft, #526174);
  font-size: 13px;
  line-height: 1.62;
}

.workspace-work-copy em {
  width: fit-content;
  min-height: 0;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--slm-ink-soft, #526174);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 520;
  line-height: 1.45;
}

.workspace-work-row.tone-danger .workspace-work-copy em {
  color: #9f3040;
}

.workspace-work-row.tone-warn .workspace-work-copy em {
  color: #7b4a05;
}

.workspace-work-row.tone-safe .workspace-work-copy em {
  color: #12634f;
}

.workspace-work-copy em::before {
  content: "影响 ";
  color: var(--slm-muted, #7a8798);
  font-weight: 560;
}

.workspace-work-reason {
  gap: 8px;
}

.workspace-work-reason span {
  color: var(--slm-brand, #006ee6);
}

.workspace-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.workspace-evidence span {
  color: var(--slm-brand, #006ee6);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.35;
}

.workspace-evidence span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  display: inline-block;
  margin: 0 9px 2px 0;
  border-radius: 50%;
  background: rgba(0, 110, 230, .36);
}

.workspace-work-meta {
  gap: 7px;
  justify-items: start;
}

.workspace-work-meta span {
  color: var(--slm-ink-soft, #526174);
}

.workspace-work-meta em {
  color: var(--slm-muted, #7a8798);
  font-size: 12px;
  font-style: normal;
}

.workspace-row-action {
  width: fit-content;
  min-height: 34px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid rgba(0, 110, 230, .18);
  border-radius: 8px;
  background: var(--slm-surface, #fff);
  color: var(--slm-brand, #006ee6);
  font-size: 13px;
  font-weight: 650;
  box-shadow: none;
  transition: background .16s cubic-bezier(.16, 1, .3, 1), border-color .16s cubic-bezier(.16, 1, .3, 1), color .16s cubic-bezier(.16, 1, .3, 1), transform .16s cubic-bezier(.16, 1, .3, 1);
}

.workspace-work-row.is-primary .workspace-row-action {
  border-color: var(--slm-brand, #006ee6);
  background: var(--slm-brand, #006ee6);
  color: #fff;
}

.workspace-row-action:hover {
  border-color: rgba(0, 110, 230, .34);
  background: rgba(0, 110, 230, .055);
  color: var(--slm-brand-deep, #004fb8);
  transform: translateY(-1px);
}

.workspace-work-row.is-primary .workspace-row-action:hover {
  background: var(--slm-brand-deep, #004fb8);
  color: #fff;
}

.workspace-row-action:active {
  transform: scale(.97);
}

@media (prefers-reduced-motion: no-preference) {
  .workspace-landing {
    animation: workspaceIn .36s cubic-bezier(.16, 1, .3, 1) both;
  }

  .workspace-visual {
    animation: workspaceFloat 5.8s ease-in-out infinite;
  }
}

@keyframes workspaceIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes workspaceFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 900px) {
  .workspace-landing {
    width: min(100%, calc(100vw - 36px));
    min-height: calc(100dvh - 92px);
    padding: 40px 18px 114px;
  }

  .workspace-visual {
    width: 190px;
  }

  .workspace-copy p {
    font-size: 16px;
  }

  .workspace-copy h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .workspace-copy span {
    max-width: 320px;
    font-size: 14px;
  }

  .workspace-command {
    min-height: 132px;
    margin-top: 30px;
    padding: 18px;
    border-radius: 18px;
  }

  .workspace-landing.is-today {
    width: min(100%, calc(100vw - 32px));
    padding: 28px 16px 112px;
  }

  .workspace-home-bar {
    min-height: 42px;
    font-size: 13px;
  }

  .workspace-home-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0 0 22px;
  }

  .workspace-landing.is-today .workspace-visual {
    width: 132px;
    justify-self: center;
  }

  .workspace-landing.is-today .workspace-copy {
    justify-items: center;
    text-align: center;
  }

  .workspace-landing.is-today .workspace-copy p {
    font-size: 15px;
  }

  .workspace-landing.is-today .workspace-copy h1 {
    font-size: 29px;
  }

  .workspace-landing.is-today .workspace-command,
  .workspace-prompt-grid {
    width: 100%;
  }

  .workspace-command .slm-command-bar {
    gap: 8px;
  }

  .workspace-command .slm-mode-btn {
    min-width: 0 !important;
    padding-inline: 10px !important;
  }

  .workspace-command .slm-mode-btn span {
    display: inline !important;
    white-space: nowrap;
  }

  .workspace-prompt-grid {
    justify-content: flex-start;
    gap: 8px;
  }

  .workspace-prompt-card {
    min-height: 34px;
  }

  .workspace-page {
    width: min(100%, calc(100vw - 32px));
    min-height: calc(100dvh - 92px);
    padding: 30px 16px 116px;
    gap: 14px;
  }

  .workspace-page-head {
    gap: 7px;
  }

  .workspace-page-head h1 {
    font-size: 30px;
  }

  .workspace-page-head p {
    max-width: none;
    font-size: 14px;
  }

  .workspace-ai-brief {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
  }

  .workspace-ai-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .workspace-ai-brief strong {
    font-size: 18px;
  }

  .workspace-worklist {
    border-radius: 12px;
  }

  .workspace-worklist-head {
    min-height: 42px;
    padding: 0 14px;
  }

  .workspace-work-row {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 16px 14px 18px;
  }

  .workspace-work-main {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .workspace-event-visual {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .workspace-event-visual.is-photo {
    border-radius: 50%;
  }

  .workspace-work-main strong {
    font-size: 16px;
  }

  .workspace-work-meta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    justify-items: stretch;
    column-gap: 12px;
  }

  .workspace-work-meta span,
  .workspace-work-meta p,
  .workspace-work-meta em {
    grid-column: 1;
  }

  .workspace-row-action {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: end;
    width: auto;
    min-height: 40px;
    margin-top: 4px;
    padding: 0 12px;
  }

  .workspace-page .workspace-command {
    width: 100%;
    min-height: 120px;
    margin-top: 0;
    padding: 16px;
  }
}

/* ai207 premium glass pass: translate the mobile AI references into a desktop-safe workspace language. */
.app,
.workspace,
.col-main {
  background:
    radial-gradient(circle at 68% 20%, rgba(120, 170, 255, .16), transparent 31%),
    radial-gradient(circle at 47% 72%, rgba(108, 232, 218, .10), transparent 34%),
    linear-gradient(180deg, #fbfdff 0%, #f4f8fd 52%, #f1f6fc 100%) !important;
}

.workspace,
.col-main,
.stage {
  overflow-x: hidden !important;
}

.workspace-landing,
.workspace-page,
.workspace-home-frame,
.workspace-command,
.workspace-ai-brief,
.workspace-worklist,
.workspace-work-row,
.workspace-prompt-grid,
.workspace-prompt-card {
  box-sizing: border-box;
}

.workspace-ai-brief,
.workspace-ai-brief > div,
.workspace-ai-brief strong,
.workspace-ai-brief p,
.workspace-brief-meta,
.workspace-brief-meta span,
.workspace-work-main,
.workspace-work-copy,
.workspace-work-copy strong,
.workspace-work-copy p,
.workspace-work-copy em,
.workspace-work-reason,
.workspace-work-reason p,
.workspace-work-meta,
.workspace-work-meta p,
.workspace-evidence,
.workspace-evidence span {
  min-width: 0;
  max-width: 100%;
}

.workspace-ai-brief strong,
.workspace-ai-brief p,
.workspace-work-copy strong,
.workspace-work-copy p,
.workspace-work-copy em,
.workspace-work-reason p,
.workspace-work-meta p,
.workspace-evidence span {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(247, 251, 255, .74)),
    rgba(248, 251, 255, .86) !important;
  border-right-color: rgba(43, 76, 118, .10) !important;
}

@supports ((backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px))) {
  .sidebar,
  .workspace-command,
  .workspace-ai-brief,
  .workspace-work-row,
  .workspace-prompt-card {
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
  }
}

.side-top {
  min-height: 32px !important;
  margin-bottom: 10px !important;
}

.brand-lockup {
  height: 34px !important;
  padding: 0 5px !important;
}

.brand-logo-shell {
  width: 26px !important;
  height: 26px !important;
  flex-basis: 26px !important;
}

.brand-logo-full {
  width: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}

.brand-text strong {
  font-size: 13px !important;
  font-weight: 680 !important;
}

.brand-text em {
  font-size: 8px !important;
  letter-spacing: .16em !important;
}

.side-icon-btn {
  width: 26px !important;
  height: 26px !important;
  border-radius: 8px !important;
  background: transparent !important;
}

.side-nav {
  gap: 3px !important;
  margin-top: 6px !important;
  padding: 9px 0 10px !important;
  border-color: rgba(43, 76, 118, .075) !important;
}

.side-nav-item {
  min-height: 32px !important;
  padding: 0 8px !important;
  border-radius: 9px !important;
}

.side-nav-item.is-on {
  background:
    linear-gradient(135deg, rgba(9, 111, 242, .11), rgba(106, 166, 255, .08)) !important;
  color: var(--slm-brand-deep) !important;
  box-shadow: inset 2px 0 0 var(--slm-brand) !important;
}

.side-nav-copy strong {
  font-size: 12.5px !important;
  font-weight: 610 !important;
}

.side-history {
  margin-top: 14px !important;
}

.side-history-item {
  min-height: 28px !important;
  padding: 4px 7px !important;
  border-radius: 8px !important;
}

.side-history-item span {
  font-size: 12px !important;
  font-weight: 500 !important;
}

.side-user-main {
  min-height: 42px !important;
  padding: 6px !important;
  border-radius: 12px !important;
}

.workspace-landing.is-today {
  width: min(980px, calc(100vw - var(--slm-sidebar, 280px) - 96px));
  padding-top: 28px;
}

.workspace-landing.is-today .workspace-visual {
  width: 136px;
  filter: drop-shadow(0 18px 38px rgba(55, 112, 198, .15));
}

.workspace-landing.is-today .workspace-copy p {
  color: #53637a;
  font-size: 13px;
  font-weight: 540;
}

.workspace-landing.is-today .workspace-copy h1 {
  color: #07111f !important;
  font-size: clamp(34px, 3vw, 46px);
  font-weight: 690;
  line-height: 1.08;
}

.workspace-command {
  position: relative;
  overflow: hidden;
  border-color: rgba(54, 91, 136, .13);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .58)),
    rgba(255, 255, 255, .68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 18px 46px rgba(31, 69, 117, .075);
}

.workspace-command::before,
.workspace-work-row::before,
.workspace-ai-brief::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .72), transparent 34%),
    linear-gradient(110deg, rgba(255, 255, 255, .34), transparent 46%, rgba(255, 255, 255, .16));
}

.workspace-command textarea {
  position: relative;
  z-index: 1;
  font-size: 14px !important;
}

.workspace-command .slm-command-bar {
  position: relative;
  z-index: 1;
}

.workspace-command .slm-tool-btn,
.workspace-command .slm-mode-btn {
  border-color: rgba(49, 79, 116, .105) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(244, 248, 253, .72)) !important;
}

.workspace-command .slm-send {
  width: 44px !important;
  height: 44px !important;
  border: 1px solid rgba(255, 255, 255, .45) !important;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .46), transparent 30%),
    linear-gradient(135deg, #8aa7ff 0%, #0a71f3 58%, #0757c7 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    0 12px 26px rgba(9, 111, 242, .22) !important;
}

.workspace-prompt-grid {
  gap: 10px;
  margin-top: 18px;
}

.workspace-prompt-card {
  min-height: 36px;
  padding: 0 13px 0 10px;
  border-color: rgba(61, 98, 143, .10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(247, 251, 255, .56)),
    rgba(255, 255, 255, .56);
  color: #253550;
}

.workspace-prompt-card:hover {
  border-color: rgba(9, 111, 242, .20);
  background: rgba(255, 255, 255, .82);
}

.workspace-page {
  width: min(1320px, calc(100vw - var(--slm-sidebar, 280px) - 72px));
  padding-top: 54px;
  gap: 16px;
}

.workspace-page-head {
  max-width: 760px;
  gap: 6px;
}

.workspace-page-head h1 {
  color: #07111f;
  font-size: clamp(25px, 1.8vw, 31px);
  font-weight: 680;
}

.workspace-page-head p {
  color: #5c6c82;
  font-size: 13px;
  line-height: 1.62;
}

.workspace-ai-brief {
  position: relative;
  overflow: hidden;
  max-width: 980px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 16px 18px;
  border-color: rgba(54, 91, 136, .12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(242, 249, 255, .62)),
    rgba(255, 255, 255, .64);
}

.workspace-ai-brief > * {
  position: relative;
  z-index: 1;
}

.workspace-ai-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .92), transparent 38%),
    linear-gradient(145deg, rgba(9, 111, 242, .16), rgba(113, 173, 255, .08));
  color: var(--slm-brand);
}

.workspace-ai-brief span {
  color: #236cbd;
  font-size: 11px;
  font-weight: 680;
}

.workspace-ai-brief strong {
  max-width: 820px;
  color: #0b1525;
  font-size: 16px;
  font-weight: 660;
}

.workspace-ai-brief p {
  max-width: 760px;
  color: #53637a;
  font-size: 12.5px;
}

.workspace-brief-meta span {
  color: #7e8da1;
  font-size: 11.5px;
}

.workspace-worklist {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.workspace-worklist-head {
  min-height: 38px;
  padding: 0 2px;
  border: 0;
  background: transparent;
}

.workspace-worklist-head span {
  color: #1d2f48;
  font-size: 13px;
  font-weight: 660;
}

.workspace-worklist-head button {
  color: #5b6d84;
  font-size: 12px;
}

.workspace-worklist-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.workspace-work-row {
  position: relative;
  overflow: hidden;
  grid-template-columns: 1fr;
  gap: 14px;
  min-height: 0;
  padding: 18px;
  border: 1px solid rgba(54, 91, 136, .12);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(247, 251, 255, .55)),
    rgba(255, 255, 255, .62);
  box-shadow: none;
}

.workspace-work-row > * {
  position: relative;
  z-index: 1;
}

.workspace-work-row.is-primary {
  grid-column: 1 / -1;
  grid-template-columns: minmax(360px, .95fr) minmax(340px, .9fr) minmax(230px, .56fr);
  gap: 24px;
  padding: 22px;
  border-color: rgba(9, 111, 242, .16);
  background:
    radial-gradient(circle at 6% 0%, rgba(159, 200, 255, .26), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .84), rgba(244, 250, 255, .58)),
    rgba(255, 255, 255, .68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .88),
    var(--slm-shadow-focus);
}

@media (hover: hover) and (pointer: fine) {
  .workspace-work-row:hover {
    border-color: rgba(9, 111, 242, .18);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(247, 251, 255, .66)),
      rgba(255, 255, 255, .74);
    transform: translateY(-1px);
  }
}

.workspace-work-main {
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 14px;
}

.workspace-event-visual {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border-color: rgba(69, 104, 149, .12);
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 255, 255, .95), transparent 38%),
    linear-gradient(145deg, rgba(232, 242, 255, .88), rgba(255, 255, 255, .56));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 8px 20px rgba(37, 79, 132, .06);
}

.workspace-event-visual.is-photo {
  border-radius: 18px;
  padding: 3px;
}

.workspace-event-visual img,
.workspace-event-visual .avatar,
.workspace-event-visual .kid-av {
  border-radius: 15px;
}

.workspace-row-kicker {
  gap: 6px;
}

.workspace-row-kicker b {
  min-height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  border-color: rgba(9, 111, 242, .14);
  background: rgba(9, 111, 242, .075);
  font-size: 11px;
  letter-spacing: 0;
}

.workspace-row-kicker i {
  color: #7e8da1;
  font-size: 11.5px;
}

.workspace-work-main strong {
  color: #07111f;
  font-size: 17px;
  font-weight: 680;
}

.workspace-row-signal {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border-color: rgba(43, 76, 118, .08);
  background: rgba(255, 255, 255, .62);
  color: #223754;
  font-size: 11.5px;
}

.workspace-work-main p,
.workspace-work-reason p,
.workspace-work-meta p {
  color: #4a5c73;
  font-size: 12.5px;
  line-height: 1.62;
}

.workspace-work-copy em {
  color: #6b7d93;
  font-size: 12px;
}

.workspace-work-copy em::before {
  content: "影响 ";
  color: #8b99aa;
}

.workspace-work-reason,
.workspace-work-meta {
  align-content: start;
  gap: 8px;
  padding: 12px 13px;
  border: 1px solid rgba(54, 91, 136, .075);
  border-radius: 14px;
  background: rgba(255, 255, 255, .46);
}

.workspace-work-reason span,
.workspace-work-meta span {
  color: #236cbd;
  font-size: 11px;
  font-weight: 680;
}

.workspace-evidence {
  gap: 7px;
}

.workspace-evidence span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(9, 111, 242, .10);
  border-radius: 999px;
  background: rgba(241, 247, 255, .62);
  color: #346fae;
  font-size: 11px;
  font-weight: 540;
}

.workspace-evidence span + span::before {
  display: none;
}

.workspace-work-meta em {
  color: #75869c;
  font-size: 11.5px;
}

.workspace-work-row:not(.is-primary) .workspace-work-reason,
.workspace-work-row:not(.is-primary) .workspace-work-meta {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.workspace-work-row:not(.is-primary) .workspace-work-reason {
  padding-top: 2px;
}

.workspace-work-row:not(.is-primary) .workspace-work-meta {
  padding-top: 10px;
  border-top: 1px solid rgba(54, 91, 136, .075);
}

.workspace-work-row:not(.is-primary) .workspace-evidence span {
  background: rgba(241, 247, 255, .46);
}

.workspace-row-action {
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  border-color: rgba(9, 111, 242, .20);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(242, 247, 254, .70));
  color: var(--slm-brand-deep);
  font-size: 12.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}

.workspace-work-row.is-primary .workspace-row-action {
  border-color: rgba(255, 255, 255, .48);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .42), transparent 32%),
    linear-gradient(135deg, #7da0ff 0%, #096ff2 58%, #0757c7 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .36),
    0 12px 24px rgba(9, 111, 242, .18);
}

.workspace-row-action:hover {
  border-color: rgba(9, 111, 242, .28);
  background: rgba(255, 255, 255, .88);
}

@media (max-width: 1180px) {
  .workspace-work-row.is-primary {
    grid-template-columns: minmax(300px, 1fr) minmax(280px, .9fr);
  }

  .workspace-work-row.is-primary .workspace-work-meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .workspace-page {
    width: 100% !important;
    max-width: 100% !important;
    padding: 26px 0 118px;
  }

  .workspace-ai-brief {
    max-width: none;
  }

  .workspace-worklist-rows,
  .workspace-work-row.is-primary {
    grid-template-columns: 1fr;
  }

  .workspace-work-row,
  .workspace-work-row.is-primary {
    padding: 16px;
    border-radius: 18px;
  }

  .workspace-work-main {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .workspace-event-visual {
    width: 44px;
    height: 44px;
  }

  .workspace-row-action {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
    min-height: 38px;
  }

  .workspace-work-reason,
  .workspace-work-meta,
  .workspace-work-row.is-primary .workspace-work-meta {
    grid-template-columns: 1fr !important;
    justify-items: start !important;
    min-width: 0 !important;
  }

  .workspace-work-meta .workspace-row-action {
    width: fit-content !important;
    max-width: 100% !important;
    margin-top: 4px;
  }

  .workspace-landing.is-today {
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 0 112px;
  }

  .workspace-landing.is-today .workspace-copy h1 {
    font-size: 31px;
  }

  .workspace-command {
    border-radius: 20px;
  }
}

@media (max-width: 720px) {
  .app.view-today .stage,
  .app.view-daily .stage,
  .app.view-clients .stage,
  .app.view-service .stage,
  .app.view-team .stage,
  .app.view-business .stage,
  .app.view-knowledge .stage {
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 14px 136px !important;
    box-sizing: border-box !important;
  }

  .workspace-page,
  .workspace-landing,
  .workspace-home-frame,
  .workspace-command,
  .workspace-ai-brief,
  .workspace-worklist,
  .workspace-worklist-rows,
  .workspace-work-row,
  .workspace-prompt-grid,
  .workspace-prompt-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .workspace-ai-brief {
    padding: 14px !important;
    grid-template-columns: 32px minmax(0, 1fr) !important;
  }

  .workspace-ai-mark {
    width: 32px !important;
    height: 32px !important;
  }

  .workspace-ai-brief strong {
    font-size: 15.5px !important;
    line-height: 1.42 !important;
  }

  .workspace-ai-brief p {
    font-size: 12px !important;
    line-height: 1.58 !important;
  }
}
