:root {
  --v2-sidebar-width: 300px;
  --v2-panel: rgba(255, 255, 255, 0.84);
  --v2-panel-strong: rgba(255, 255, 255, 0.94);
  --v2-border: rgba(18, 20, 23, 0.08);
  --v2-border-soft: rgba(18, 20, 23, 0.05);
  --v2-ink: #111318;
  --v2-muted: rgba(17, 19, 24, 0.62);
  --v2-soft: rgba(17, 19, 24, 0.38);
  --v2-cream: #fff2cc;
  --v2-blush: #ffd6df;
  --v2-mint: #dff0c8;
  --v2-sky: #dcecff;
  --v2-peach: #ffe4cf;
  --v2-shadow: 0 18px 50px rgba(18, 20, 23, 0.06);
  --v2-shadow-strong: 0 28px 80px rgba(18, 20, 23, 0.1);
  --v2-ease: 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  color: var(--v2-ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(155, 207, 108, 0.12), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(255, 194, 123, 0.14), transparent 22%),
    radial-gradient(circle at 76% 72%, rgba(91, 141, 239, 0.1), transparent 22%),
    linear-gradient(180deg, #fbfbfc 0%, #f1f4f8 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 88%);
  z-index: 0;
}

button,
input,
textarea {
  font: inherit;
}

.v2-window {
  min-height: 100vh;
  padding: 18px;
  position: relative;
  z-index: 1;
}

.v2-app {
  min-height: calc(100vh - 36px);
  display: grid;
  grid-template-columns: var(--v2-sidebar-width) minmax(0, 1fr);
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.7)),
    rgba(255, 255, 255, 0.64);
  box-shadow:
    0 32px 90px rgba(18, 20, 23, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(26px);
}

.v2-sidebar {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 249, 251, 0.74));
  border-right: 1px solid var(--v2-border-soft);
  position: relative;
}

.v2-sidebar::before {
  content: "";
  position: absolute;
  inset: 24px 18px auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(18, 20, 23, 0), rgba(18, 20, 23, 0.08), rgba(18, 20, 23, 0));
}

.v2-sidebar-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 12px;
}

.mac-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 10px rgba(18, 20, 23, 0.14);
}

.mac-dot.red { background: #ff6057; }
.mac-dot.yellow { background: #ffbd2f; }
.mac-dot.green { background: #28c840; }

.v2-sidebar-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #111;
  border-radius: 15px;
  transform: rotate(-10deg);
  position: relative;
  box-shadow: 0 10px 26px rgba(18, 20, 23, 0.08);
}

.brand-mark::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 8px;
  width: 17px;
  height: 17px;
  border-top: 2.5px solid #111;
  border-left: 2.5px solid #111;
  border-radius: 8px 0 0 0;
  background: rgba(255, 255, 255, 0.94);
  transform: rotate(22deg);
}

.brand-mark-core {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background: var(--fs-brand);
  box-shadow: 10px 6px 0 -6px #111;
}

.brand-name {
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
}

.nav-item {
  min-height: 56px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--v2-ink);
  font-size: 16px;
  font-weight: 650;
  border: 1px solid transparent;
  position: relative;
  transition:
    transform var(--v2-ease),
    border-color var(--v2-ease),
    background var(--v2-ease),
    box-shadow var(--v2-ease);
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.nav-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(18, 20, 23, 0.06);
}

.nav-item.active {
  background:
    linear-gradient(135deg, rgba(155, 207, 108, 0.2), rgba(255, 239, 199, 0.58));
  border-color: rgba(155, 207, 108, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 5px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8bcf5e, #d8ebb3);
  transform: translateY(-50%);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(18, 20, 23, 0.06);
}

.profile-avatar {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, #181b1f, #111318);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(18, 20, 23, 0.18);
}

.profile-meta {
  min-width: 0;
  flex: 1;
}

.profile-name {
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
}

.profile-mail {
  margin-top: 4px;
  font-size: 13px;
  line-height: 18px;
  color: var(--v2-soft);
}

.settings-btn {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(18, 20, 23, 0.08);
  background: rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--v2-muted);
  transition:
    transform var(--v2-ease),
    box-shadow var(--v2-ease),
    border-color var(--v2-ease);
}

.settings-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 20, 23, 0.12);
  box-shadow: 0 14px 28px rgba(18, 20, 23, 0.08);
}

.settings-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

/* 弹窗打开时仍允许从左侧栏进入设置与其他主导航。 */
.v2-window .v2-sidebar {
  position: relative;
  z-index: 100;
}

.v2-main {
  min-width: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.55), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
    #f3f5f8;
}

.main-inner {
  min-height: 100%;
  padding: 20px;
}

.workspace-shell {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
}

.workspace-topbar {
  min-height: 74px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62));
  box-shadow: 0 18px 50px rgba(18, 20, 23, 0.06);
  backdrop-filter: blur(20px);
}

.upgrade-pill,
.topbar-btn,
.topbar-icon,
.topbar-avatar {
  min-height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(18, 20, 23, 0.06);
  background: rgba(255, 255, 255, 0.78);
  color: var(--v2-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(18, 20, 23, 0.04);
  transition:
    transform var(--v2-ease),
    box-shadow var(--v2-ease),
    border-color var(--v2-ease);
}

.upgrade-pill:hover,
.topbar-btn:hover,
.topbar-icon:hover,
.topbar-avatar:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(18, 20, 23, 0.08);
}

.upgrade-pill {
  padding: 0 18px;
  background: linear-gradient(135deg, #ffeec1, #ffd78f);
  border-color: rgba(255, 208, 105, 0.28);
  font-weight: 700;
}

.workspace-search {
  flex: 0 0 380px;
  min-height: 44px;
  padding: 0 18px 0 48px;
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.74));
  border: 1px solid rgba(18, 20, 23, 0.06);
  color: rgba(17, 19, 24, 0.4);
  display: inline-flex;
  align-items: center;
  position: relative;
}

.workspace-search::before,
.workspace-search::after {
  content: "";
  position: absolute;
}

.workspace-search::before {
  left: 18px;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(17, 19, 24, 0.32);
  border-radius: 50%;
}

.workspace-search::after {
  left: 30px;
  top: 25px;
  width: 8px;
  height: 2px;
  background: rgba(17, 19, 24, 0.32);
  transform: rotate(45deg);
  border-radius: 2px;
}

.topbar-btn {
  padding: 0 18px;
  font-weight: 650;
}

.topbar-icon,
.topbar-avatar {
  width: 42px;
}

.topbar-avatar {
  border-radius: 50%;
  font-weight: 800;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.workspace-center,
.workspace-support {
  min-height: 0;
}

.workspace-center {
  display: contents;
}

.workspace-support {
  display: contents;
}


.metric-row,
.quick-row {
  display: grid;
  gap: 12px;
}

.metric-row {
  grid-column: 8 / 13;
  grid-row: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-row {
  grid-column: 8 / 13;
  grid-row: 3;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card,
.quick-card,
.canvas-card,
.support-card,
.support-info-card,
.asset-item,
.schedule-item,
.account-item,
.calendar-day,
.library-tile,
.chat-surface-composer {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  box-shadow: var(--v2-shadow);
}

.metric-card::before,
.quick-card::before,
.canvas-card::before,
.support-card::before,
.support-info-card::before,
.asset-item::before,
.schedule-item::before,
.account-item::before,
.calendar-day::before,
.library-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity var(--v2-ease);
  pointer-events: none;
}

.metric-card:hover,
.quick-card:hover,
.canvas-card:hover,
.support-card:hover,
.support-info-card:hover,
.asset-item:hover,
.schedule-item:hover,
.account-item:hover,
.calendar-day:hover,
.library-tile:hover,
.chat-shortcut:hover,
.chat-surface-composer:hover {
  transform: translateY(-3px);
  box-shadow: var(--v2-shadow-strong);
}

.metric-card:hover::before,
.quick-card:hover::before,
.canvas-card:hover::before,
.support-card:hover::before,
.support-info-card:hover::before,
.asset-item:hover::before,
.schedule-item:hover::before,
.account-item:hover::before,
.calendar-day:hover::before,
.library-tile:hover::before {
  opacity: 1;
}

.metric-card,
.quick-card,
.canvas-card,
.support-card,
.support-info-card,
.asset-item,
.schedule-item,
.account-item,
.calendar-day,
.library-tile,
.chat-shortcut,
.chat-surface-composer {
  transition:
    transform var(--v2-ease),
    box-shadow var(--v2-ease),
    border-color var(--v2-ease),
    background var(--v2-ease);
}

.metric-card {
  min-height: 152px;
  padding: 18px 20px 18px;
}

.metric-accent {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 72px;
  height: 72px;
  border-radius: 26px;
  opacity: 0.58;
  filter: blur(22px);
}

.metric-card:first-child .metric-accent {
  background: linear-gradient(135deg, rgba(155, 207, 108, 0.68), rgba(255, 245, 205, 0.9));
}

.metric-card:last-child .metric-accent {
  background: linear-gradient(135deg, rgba(91, 141, 239, 0.44), rgba(220, 236, 255, 0.9));
}

.metric-card > span:last-of-type,
.metric-card span {
  position: relative;
  z-index: 1;
}

.metric-card > span {
  display: block;
  color: var(--v2-soft);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.metric-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  font-size: 42px;
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.metric-card p,
.quick-card span,
.schedule-meta span,
.asset-item span,
.account-item span,
.library-tile span,
.calendar-day span {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: var(--v2-muted);
  font-size: 14px;
  line-height: 22px;
}

.quick-card {
  min-height: 88px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-corner {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 16px;
  border: 1px dashed rgba(17, 19, 24, 0.08);
  opacity: 0.8;
}

.quick-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.quick-icon.mint {
  background: linear-gradient(135deg, #ebf8db, #d8eebd);
  color: #678f31;
}

.quick-icon.peach {
  background: linear-gradient(135deg, #fff0df, #ffd8bf);
  color: #f07a34;
}

.quick-icon.sky {
  background: linear-gradient(135deg, #ebf4ff, #d7e8ff);
  color: #3b84e3;
}

.quick-card strong,
.card-head h2,
.schedule-meta strong,
.asset-item strong,
.account-item strong,
.library-tile strong,
.support-info-card strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 16px;
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.canvas-grid {
  display: contents;
}

.canvas-card,
.support-card,
.support-info-card {
  padding: 18px;
}

.schedule-card,
.tools-card,
.library-card,
.calendar-card {
  min-height: 0;
}

.schedule-card {
  grid-column: 1 / 6;
  grid-row: 4 / span 2;
}

.tools-card {
  grid-column: 6 / 9;
  grid-row: 5;
}

.library-card {
  grid-column: 9 / 13;
  grid-row: 5;
}

.calendar-card {
  grid-column: 8 / 13;
  grid-row: 1;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-head h2 {
  margin: 0;
  font-size: 22px;
}

.schedule-board,
.asset-list,
.schedule-list,
.account-list,
.chat-surface-thread,
.support-stack {
  display: grid;
  gap: 14px;
}

.schedule-cover {
  min-height: 210px;
  padding: 16px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 243, 218, 0.22), rgba(17, 19, 24, 0.18)),
    url("../docs/assets/chat-platform/connected-reference.png") center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.schedule-cover::before {
  content: "";
  position: absolute;
  inset: auto -24px -30px auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
}

.schedule-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(17, 19, 24, 0.56)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.schedule-badge,
.schedule-time {
  position: relative;
  z-index: 1;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
}

.schedule-badge {
  background: linear-gradient(135deg, #ff9555, #ff7043);
  color: #fff;
  box-shadow: 0 14px 24px rgba(255, 112, 67, 0.3);
}

.schedule-time {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: rgba(17, 19, 24, 0.78);
  color: #fff;
  box-shadow: 0 12px 28px rgba(17, 19, 24, 0.28);
}

.schedule-meta strong {
  font-size: 30px;
  line-height: 1;
}

.schedule-list {
  gap: 12px;
}

.schedule-item,
.account-item {
  padding: 16px 16px 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.schedule-item::after,
.account-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, rgba(155, 207, 108, 0.68), rgba(91, 141, 239, 0.4));
  opacity: 0.9;
}

.schedule-item strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.schedule-item em {
  min-height: 29px;
  padding: 0 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(91, 141, 239, 0.18), rgba(91, 141, 239, 0.28));
  color: #4169dd;
  display: inline-flex;
  align-items: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}

.asset-list {
  gap: 12px;
}

.asset-item {
  min-height: 96px;
  padding: 16px 16px 16px 48px;
  display: grid;
  align-content: center;
}

.asset-item::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 19px;
  width: 18px;
  height: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #111318, #424754);
  box-shadow:
    0 10px 18px rgba(17, 19, 24, 0.16),
    14px 14px 0 -10px rgba(155, 207, 108, 0.85);
}

.asset-item:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(155, 207, 108, 0.14), rgba(255, 255, 255, 0.8));
}

.asset-item:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(255, 214, 223, 0.18), rgba(255, 255, 255, 0.82));
}

.library-grid {
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.library-tile {
  min-height: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.library-tile.blank {
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-color: rgba(17, 19, 24, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 249, 251, 0.76));
}

.library-tile.blank::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  border: 1px dashed rgba(17, 19, 24, 0.08);
}

.library-plus {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  font-size: 44px;
  line-height: 1;
  color: rgba(17, 19, 24, 0.42);
}

.library-tile:nth-child(2) {
  padding-right: 20px;
  justify-content: center;
}

.library-tile.accent {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, #ff8bb0 0%, #ffc36b 100%);
  color: #1a1a1a;
}

.library-tile.accent span {
  color: rgba(26, 26, 26, 0.68);
}

.calendar-widget {
  display: grid;
  gap: 12px;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calendar-month strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.calendar-month span {
  display: block;
  margin-top: 6px;
  color: var(--v2-soft);
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

.calendar-nav {
  display: flex;
  gap: 8px;
}

.calendar-nav-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--v2-ink);
  font-size: 18px;
  line-height: 1;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays span {
  color: var(--v2-soft);
  font-size: 11px;
  line-height: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.calendar-cell {
  min-height: 112px;
  padding: 12px 10px;
  border-radius: 22px;
  border: 1px solid rgba(17, 19, 24, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 249, 245, 0.8));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.calendar-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.calendar-cell strong,
.calendar-cell em {
  position: relative;
  z-index: 1;
}

.calendar-cell strong {
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.08em;
  font-style: normal;
}

.calendar-cell em {
  color: var(--v2-muted);
  font-size: 13px;
  line-height: 20px;
  font-style: normal;
}

.calendar-cell.active {
  background:
    radial-gradient(circle at top center, rgba(255, 243, 196, 0.74), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 244, 0.8));
}

.workspace-support {
  padding: 0;
}

.support-card {
  grid-column: 1 / 8;
  grid-row: 1 / span 2;
  position: static;
  padding: 20px 20px 18px;
  border-radius: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  background:
    radial-gradient(circle at 90% 16%, rgba(255, 214, 223, 0.92), transparent 16%),
    radial-gradient(circle at 66% 76%, rgba(220, 236, 255, 0.2), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.86));
}

.support-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 215, 224, 0.9), transparent 12%),
    radial-gradient(circle at 14% 82%, rgba(155, 207, 108, 0.18), transparent 20%);
}

.support-brand-row,
.support-main-layout,
.support-hero,
.support-stack {
  position: relative;
  z-index: 1;
}

.support-brand-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.support-brand {
  font-size: 52px;
  line-height: 0.84;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.support-avatars {
  display: flex;
  align-items: center;
  padding-top: 6px;
}

.support-avatars span {
  width: 36px;
  height: 36px;
  margin-left: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, #ffc7b2, #f29ac4);
  box-shadow: 0 10px 22px rgba(242, 154, 196, 0.18);
}

.support-kicker {
  color: var(--v2-soft);
  font-size: 12px;
  line-height: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.support-hero h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.065em;
  white-space: nowrap;
  display: inline-block;
  width: max-content;
  max-width: none;
}

.support-main-layout {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.support-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.support-info-card {
  padding: 16px;
  gap: 10px;
  display: grid;
}

.chat-thread-card {
  grid-column: 1;
  grid-row: auto;
  padding: 18px 18px 20px;
  background:
    linear-gradient(135deg, rgba(220, 236, 255, 0.16), rgba(255, 255, 255, 0.84));
}

.support-action-area {
  grid-column: 1;
  grid-row: auto;
  display: grid;
  gap: 10px;
}

.account-list.compact {
  gap: 10px;
}

.account-list.compact .account-item {
  padding: 16px 16px 16px 18px;
}

.chat-bubble {
  max-width: 100%;
  padding: 18px 18px;
  border-radius: 22px;
  font-size: 15px;
  line-height: 24px;
  box-shadow: 0 12px 28px rgba(18, 20, 23, 0.06);
}

.chat-bubble.user {
  justify-self: end;
  background: linear-gradient(135deg, #16191d, #0f1114);
  color: #fff;
  border-bottom-right-radius: 8px;
}

.chat-bubble.assistant {
  justify-self: start;
  background: linear-gradient(180deg, #fbfbf8, #f1f2ec);
  color: var(--v2-ink);
  border-bottom-left-radius: 8px;
}

.chat-surface-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.chat-shortcut {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 244, 0.86));
  color: var(--v2-ink);
  box-shadow: 0 10px 22px rgba(18, 20, 23, 0.04);
  font-size: 13px;
  font-weight: 650;
}

.chat-surface-composer {
  min-height: 74px;
  padding: 0 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 247, 241, 0.88));
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.chat-surface-composer:hover {
  border-color: rgba(155, 207, 108, 0.28);
}

.chat-surface-attach,
.chat-surface-submit {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}

.chat-surface-attach {
  background: linear-gradient(180deg, #f1f0ea, #e7e6df);
  color: var(--v2-ink);
}

.chat-surface-submit {
  margin-left: auto;
  background: linear-gradient(135deg, #16191d, #0f1114);
  color: #fff;
  box-shadow: 0 14px 28px rgba(18, 20, 23, 0.18);
}

.chat-surface-placeholder {
  color: rgba(17, 19, 24, 0.32);
  font-size: 16px;
  line-height: 24px;
}

.metric-card,
.quick-card,
.canvas-card,
.support-card {
  animation: rise-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.metric-row .metric-card:nth-child(2),
.quick-row .quick-card:nth-child(2),
.canvas-grid .canvas-card:nth-child(2) {
  animation-delay: 70ms;
}

.quick-row .quick-card:nth-child(3),
.canvas-grid .canvas-card:nth-child(3) {
  animation-delay: 140ms;
}

.canvas-grid .canvas-card:nth-child(4) {
  animation-delay: 210ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1460px) {
  .support-hero h2 {
    font-size: 44px;
  }
}

@media (max-width: 1180px) {
  .workspace-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 14px;
  }

  .support-card {
    grid-column: 1 / 7;
    grid-row: 1 / span 2;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    position: sticky;
  }

  .support-brand-row,
  .support-hero,
  .support-stack,
  .chat-thread-card,
  .support-action-area {
    grid-column: auto;
    grid-row: auto;
  }

  .support-stack {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .metric-row {
    grid-column: 7 / 11;
    grid-row: 2;
  }

  .quick-row {
    grid-column: 1 / 11;
    grid-row: 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-card {
    grid-column: 1 / 5;
    grid-row: 4 / span 2;
  }

  .tools-card {
    grid-column: 5 / 8;
    grid-row: 6;
  }

  .library-card {
    grid-column: 8 / 11;
    grid-row: 6;
  }

  .calendar-card {
    grid-column: 7 / 11;
    grid-row: 1;
  }

  .support-brand {
    font-size: 40px;
  }

  .support-hero h2 {
    font-size: 36px;
    max-width: none;
  }
}

@media (max-width: 1100px) {
  .v2-app {
    grid-template-columns: 168px minmax(0, 1fr);
  }

  .workspace-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
  }

  .workspace-center {
    display: contents;
  }

  .workspace-support {
    display: contents;
  }

  .support-card {
    grid-column: 1 / -1;
    grid-row: 1;
    position: static;
    margin: 0;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .support-stack {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .chat-thread-card {
    grid-column: 1;
    grid-row: 1;
  }

  .support-action-area {
    grid-column: 1;
    grid-row: 2;
  }

  .metric-row {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-row {
    grid-column: 1 / -1;
    grid-row: 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-card {
    grid-column: 1 / 4;
    grid-row: 4 / span 2;
  }

  .tools-card {
    grid-column: 4 / 7;
    grid-row: 4;
  }

  .library-card {
    grid-column: 1 / -1;
    grid-row: 6;
  }

  .calendar-card {
    grid-column: 4 / 7;
    grid-row: 5;
  }

  .metric-card {
    min-height: 128px;
  }

  .metric-card strong {
    font-size: 34px;
  }

  .quick-card {
    min-height: 88px;
    padding: 14px 14px;
  }

  .quick-card strong {
    font-size: 15px;
  }

  .quick-card span {
    font-size: 13px;
    line-height: 20px;
  }

  .workspace-topbar {
    min-height: 64px;
    padding: 10px 12px;
  }

  .brand-name {
    font-size: 22px;
  }

  .v2-sidebar-inner {
    padding: 14px 12px 12px;
  }

  .nav-item {
    min-height: 46px;
    padding: 0 12px;
    font-size: 14px;
  }
}

@media (max-width: 920px) {
  .v2-app {
    grid-template-columns: 1fr;
  }

  .v2-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--v2-border-soft);
  }

  .metric-row,
  .quick-row {
    grid-template-columns: 1fr;
  }

  .workspace-center {
    grid-template-columns: 1fr;
  }

  .canvas-grid {
    grid-template-columns: 1fr;
  }

  .support-card,
  .support-stack {
    grid-template-columns: 1fr;
  }

  .chat-thread-card,
  .support-action-area {
    grid-column: auto;
    grid-row: auto;
  }

  .schedule-card,
  .tools-card,
  .library-card,
  .calendar-card {
    grid-column: auto;
    grid-row: auto;
  }

  .workspace-search {
    flex: 1 1 auto;
  }
}

@media (max-width: 860px) {
  .v2-window {
    padding: 0;
  }

  .v2-app {
    min-height: 100vh;
    grid-template-columns: 1fr;
    border-radius: 0;
  }

  .workspace-topbar {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .workspace-search {
    flex: 1 1 100%;
  }

  .support-hero h2 {
    max-width: none;
    font-size: 36px;
  }

  .library-grid,
  .calendar-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .library-tile.blank {
    grid-row: auto;
    min-height: 240px;
  }
}

/* Final layout override: keep the right column vertically packed. */
.workspace-grid {
  grid-template-columns: minmax(0, 1.26fr) minmax(420px, 1fr);
  align-items: start;
}

.workspace-main-column,
.workspace-side-column {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-items: start;
}

.workspace-main-column {
  grid-template-columns: 1fr;
}

.workspace-side-column {
  grid-template-columns: 1fr;
  grid-auto-flow: row;
}

.side-priority-stack {
  display: grid;
  gap: 12px;
}

.workspace-main-column .schedule-card,
.workspace-main-column .support-card,
.workspace-side-column .side-priority-stack,
.workspace-side-column .quick-row,
.workspace-side-column .tools-card,
.workspace-side-column .library-card {
  grid-column: auto;
  grid-row: auto;
  order: initial;
}

.workspace-side-column .metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.workspace-side-column .quick-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.workspace-side-column .canvas-grid {
  display: contents;
}

@media (max-width: 1180px) {
  .workspace-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 1fr);
    gap: 14px;
  }

  .support-hero h2 {
    font-size: 30px;
  }
}

@media (max-width: 1100px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .workspace-side-column .metric-row,
  .workspace-side-column .quick-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-main-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .support-hero h2 {
    white-space: normal;
  }
}

@media (max-width: 920px) {
  .workspace-main-column,
  .workspace-side-column,
  .workspace-side-column .canvas-grid,
  .workspace-side-column .metric-row,
  .workspace-side-column .quick-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1600px) {
  .workspace-grid {
    grid-template-columns: minmax(860px, 1.08fr) minmax(620px, 0.92fr);
    gap: 24px;
  }

  .workspace-main-column,
  .workspace-side-column {
    gap: 18px;
  }

  .support-card {
    padding: 28px 28px 24px;
    border-radius: 36px;
  }

  .support-main-layout {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }

  .support-hero h2 {
    font-size: 64px;
    line-height: 0.9;
    white-space: nowrap;
  }

  .support-stack {
    gap: 16px;
  }

  .chat-thread-card {
    padding: 22px 22px 24px;
  }

  .chat-bubble {
    font-size: 16px;
    line-height: 26px;
  }

  .chat-surface-composer {
    min-height: 80px;
  }

  .workspace-side-column .metric-row {
    gap: 12px;
  }

  .workspace-side-column .quick-row {
    gap: 12px;
  }

  .workspace-side-column .canvas-grid {
    gap: 18px;
  }

  .calendar-card,
  .metric-card,
  .quick-card,
  .tools-card,
  .library-card {
    border-radius: 28px;
  }
}

.sidebar-nav .nav-item.create-task-link,
.sidebar-nav .nav-item.create-task-link.active {
  margin-bottom: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, #15181d 0%, #202823 52%, #415433 100%);
  border-color: rgba(18, 20, 23, 0.18);
  box-shadow:
    0 18px 34px rgba(18, 20, 23, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.sidebar-nav .nav-item.create-task-link:hover {
  color: #fff;
  background:
    linear-gradient(135deg, #101216 0%, #263126 48%, #8bbf5f 100%);
}

.sidebar-nav .nav-item.create-task-link.active::before {
  background: linear-gradient(180deg, #dff0c8, #9bcf6c);
}
