.workspace-body { background: var(--color-bg); }
.dashboard-layout { display: flex; min-height: 100vh; align-items: stretch; }

.sidebar {
  position: sticky; top: 0; z-index: 20; width: 252px; height: 100vh; flex-shrink: 0;
  display: flex; flex-direction: column; padding: 1.25rem 1rem; color: #eef2fb;
  background: linear-gradient(180deg, #172033 0%, #111827 72%, #0c1322 100%);
  border-right: 1px solid rgb(255 255 255 / 8%); box-shadow: 18px 0 60px rgb(21 29 46 / 10%);
}
.sidebar__brand { display: flex; align-items: center; gap: .7rem; margin: 0 .55rem 1.7rem; color: #fff; font-size: 1.03rem; font-weight: 750; letter-spacing: -.02em; }
.sidebar__brand .brand-mark { width: 2rem; height: 2rem; border-radius: .7rem; background: linear-gradient(145deg, #537ff0, #2d56c9); box-shadow: 0 7px 18px rgb(37 77 184 / 45%); }
.sidebar__brand small { display: block; margin-top: .08rem; color: #8290aa; font-size: .61rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.sidebar__nav { display: flex; flex-direction: column; gap: .2rem; overflow-y: auto; scrollbar-width: thin; }
.sidebar__link { display: flex; align-items: center; gap: .72rem; min-height: 2.45rem; padding: .58rem .72rem; border: 1px solid transparent; border-radius: .72rem; color: #aab4c7; font-size: .85rem; font-weight: 560; transition: color .18s ease, background .18s ease, transform .18s ease; }
.sidebar__link:not(.sidebar__link--disabled):hover { color: #fff; background: rgb(255 255 255 / 7%); transform: translateX(2px); }
.sidebar__link.is-active { color: #fff; background: linear-gradient(135deg, rgb(75 111 220 / 32%), rgb(75 111 220 / 16%)); border-color: rgb(113 145 241 / 20%); box-shadow: inset 3px 0 0 #6d91f6; }
.sidebar__link--disabled { color: #6f7b91; cursor: default; }
.sidebar__label { min-width: 0; }
.workspace-icon { width: 1.08rem; height: 1.08rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar__footer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem; margin-top: auto; padding: 1rem .55rem .15rem; border-top: 1px solid rgb(255 255 255 / 9%); }
.workspace-avatar { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: .72rem; background: #d8b887; color: #212838; font-size: .72rem; font-weight: 800; }
.sidebar__footer div { min-width: 0; }
.sidebar__footer strong, .sidebar__footer span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__footer strong { color: #f8fafc; font-size: .77rem; }
.sidebar__footer div span { margin-top: .08rem; color: #78859c; font-size: .66rem; }
.sidebar__logout { width: 1.85rem; height: 1.85rem; border: 0; border-radius: .55rem; background: transparent; color: #8894a9; cursor: pointer; transition: .18s ease; }
.sidebar__logout:hover { background: rgb(255 255 255 / 8%); color: #fff; }

.dashboard-main { min-width: 0; flex: 1; background: radial-gradient(circle at 18% 0%, rgb(87 124 230 / 13%), transparent 34rem), radial-gradient(circle at 90% 35%, rgb(206 164 111 / 12%), transparent 30rem), #f2efe9; }
.dashboard-header { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; padding: 2.2rem clamp(1.3rem, 4vw, 3.6rem) 1.5rem; }
.dashboard-header__eyebrow { margin: 0 0 .4rem; color: var(--color-accent); font-size: .71rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.dashboard-header__greeting { overflow-wrap: anywhere; margin: 0; color: var(--color-ink); font-family: var(--font-display); font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 540; letter-spacing: -.045em; line-height: 1; }
.dashboard-header__subtitle { margin: .65rem 0 0; color: var(--color-ink-muted); font-size: .92rem; }
.dashboard-header__actions .btn { box-shadow: 0 10px 22px rgb(55 103 232 / 20%); }
.dashboard-content { display: flex; flex-direction: column; gap: 1.25rem; width: 100%; max-width: 1500px; padding: 0 clamp(1.3rem, 4vw, 3.6rem) 3rem; }

.verification-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; border: 1px solid #d9c49f; border-radius: var(--radius-md); background: #fff9ec; color: #72522c; box-shadow: var(--shadow-xs); }
.verification-banner div { display: flex; flex-direction: column; }
.verification-banner span { font-size: .78rem; color: #8d7049; }

.workspace-window { overflow: hidden; border: 1px solid rgb(23 32 51 / 9%); border-radius: var(--radius-lg); background: rgb(255 253 250 / 91%); box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); transition: transform .22s ease, box-shadow .22s ease; }
.workspace-window:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.window-bar { display: flex; align-items: center; gap: .58rem; min-height: 2.75rem; padding: .68rem .9rem; border-bottom: 1px solid rgb(23 32 51 / 7%); background: linear-gradient(180deg, rgb(255 255 255 / 85%), rgb(247 245 241 / 72%)); color: #515d70; font-size: .73rem; font-weight: 720; letter-spacing: .015em; }
.window-bar > :last-child { margin-left: auto; }
.window-dots { display: flex; gap: .3rem; margin-right: .25rem; }
.window-dots span { width: .48rem; height: .48rem; border-radius: 50%; background: #d6d9df; }
.window-dots span:first-child { background: #d8ad77; }
.window-dots span:nth-child(2) { background: #9fb3e9; }
.module-icon { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: .55rem; background: var(--color-accent-soft); color: var(--color-accent); }
.window-link { color: var(--color-accent); font-size: .72rem; }

.onboarding-window { color: #fff; background: radial-gradient(circle at 85% 20%, rgb(101 139 245 / 38%), transparent 28rem), linear-gradient(125deg, #172238, #233962 64%, #263f70); border-color: rgb(255 255 255 / 9%); box-shadow: 0 25px 60px rgb(28 43 74 / 22%); }
.onboarding-window .window-bar { border-color: rgb(255 255 255 / 9%); background: rgb(7 14 29 / 20%); color: #b8c5da; }
.onboarding-content { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(360px, 1.25fr); gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(1.4rem, 3.5vw, 2.8rem); }
.onboarding-copy { align-self: center; }
.onboarding-kicker { color: #a8bcf1; font-size: .7rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.onboarding-copy h2 { margin: .55rem 0 .7rem; color: #fff; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.75rem); font-weight: 520; letter-spacing: -.035em; }
.onboarding-copy p { max-width: 40ch; margin: 0 0 1.3rem; color: #b9c5d9; font-size: .9rem; }
.btn--light { background: #fff; color: #1f3155; border-color: #fff; }
.onboarding-steps { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.onboarding-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: .78rem .9rem; border: 1px solid rgb(255 255 255 / 8%); border-radius: .85rem; background: rgb(255 255 255 / 4%); }
.onboarding-steps li.is-current { border-color: rgb(124 157 246 / 35%); background: rgb(105 139 232 / 14%); }
.onboarding-steps > li > span { color: #7890bc; font: 600 .68rem/1 var(--font-mono, monospace); }
.onboarding-steps strong, .onboarding-steps small { display: block; }
.onboarding-steps strong { color: #edf2fc; font-size: .79rem; }
.onboarding-steps small { margin-top: .14rem; color: #95a5bd; font-size: .68rem; }
.onboarding-steps i { color: #7788a3; font-size: .65rem; font-style: normal; }
.onboarding-steps a { color: #b9cdfd; font-size: 1.1rem; }

.workspace-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.module-window { min-height: 210px; }
.module-window--leads, .module-window--weddings, .module-window--conversations { grid-column: span 4; }
.module-window--ai { grid-column: span 7; min-height: 240px; background: linear-gradient(135deg, #f6f8ff, #fffdfa 65%); }
.module-window--account { grid-column: span 5; min-height: 240px; }
.module-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 160px; padding: 1.2rem; }
.module-value { color: var(--color-ink); font-family: var(--font-display); font-size: 3.4rem; line-height: 1; }
.module-content p { max-width: 34ch; margin: .55rem 0 .75rem; color: var(--color-ink-muted); font-size: .79rem; }
.module-state { display: inline-flex; padding: .28rem .55rem; border-radius: 999px; background: #edf1fb; color: #526baf; font-size: .62rem; font-weight: 700; }
.text-action { padding: 0; border: 0; background: none; color: var(--color-accent); font: inherit; font-size: .75rem; font-weight: 700; }
button.text-action:disabled { color: #8b93a2; cursor: not-allowed; }
.empty-calendar { align-items: center; text-align: center; }
.calendar-page { display: grid; place-items: center; width: 3rem; height: 3.2rem; border: 1px solid #d9dce3; border-top: .48rem solid #d0a064; border-radius: .5rem; background: #fff; box-shadow: var(--shadow-xs); color: #9da4b1; }
.ai-module-body { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.4rem; min-height: 188px; padding: 1.5rem; }
.ai-orbit { position: relative; display: grid; place-items: center; width: 5.2rem; height: 5.2rem; border: 1px solid rgb(55 103 232 / 20%); border-radius: 50%; background: radial-gradient(circle, #fff 0 27%, #dfe7ff 28% 30%, transparent 31%), conic-gradient(from 90deg, #d7e0fa, #f6e8d5, #d7e0fa); }
.ai-orbit::after { content: ''; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #416fe7; box-shadow: 0 0 22px #668cf0; }
.ai-orbit span { position: absolute; top: .32rem; right: .55rem; width: .58rem; height: .58rem; border-radius: 50%; background: #c6945c; }
.ai-module-body h2 { margin: 0 0 .35rem; font-family: var(--font-display); font-size: 1.45rem; font-weight: 560; }
.ai-module-body p { margin: 0 0 .8rem; color: var(--color-ink-muted); font-size: .82rem; }
.account-info { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.2rem; margin: 0; padding: 1.3rem; }
.account-info div { min-width: 0; padding-bottom: .65rem; border-bottom: 1px solid var(--color-border-soft); }
.account-info dt { margin-bottom: .16rem; color: var(--color-ink-muted); font-size: .65rem; }
.account-info dd { overflow-wrap: anywhere; margin: 0; color: var(--color-ink); font-size: .78rem; font-weight: 680; }

@media (max-width: 1120px) {
  .module-window--leads, .module-window--weddings { grid-column: span 6; }
  .module-window--conversations { grid-column: span 12; }
  .module-window--ai, .module-window--account { grid-column: span 6; }
}
@media (max-width: 900px) {
  .dashboard-layout { display: block; }
  .sidebar { position: sticky; width: 100%; height: auto; padding: .75rem 1rem; flex-direction: row; align-items: center; gap: .75rem; border-right: 0; }
  .sidebar__brand { margin: 0; }
  .sidebar__brand small, .sidebar__footer { display: none; }
  .sidebar__nav { flex: 1; flex-direction: row; overflow-x: auto; }
  .sidebar__link { min-width: max-content; }
  .sidebar__link--disabled { display: none; }
  .onboarding-content { grid-template-columns: 1fr; }
  .onboarding-copy p { max-width: 54ch; }
}
@media (max-width: 720px) {
  .dashboard-header { align-items: flex-start; flex-direction: column; padding-top: 1.8rem; }
  .dashboard-header__actions, .dashboard-header__actions .btn { width: 100%; }
  .module-window--leads, .module-window--weddings, .module-window--conversations, .module-window--ai, .module-window--account { grid-column: 1 / -1; }
  .onboarding-content { padding: 1.35rem; }
  .onboarding-steps li { grid-template-columns: auto 1fr; }
  .onboarding-steps i, .onboarding-steps a { display: none; }
}
@media (max-width: 520px) {
  .sidebar { align-items: flex-start; }
  .sidebar__brand span:last-child { display: none; }
  .sidebar__nav { justify-content: flex-end; }
  .sidebar__link { width: 2.55rem; min-width: 2.55rem; justify-content: center; padding: .58rem; }
  .sidebar__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dashboard-header__greeting { font-size: 2.15rem; }
  .dashboard-content { padding-bottom: 1.5rem; }
  .ai-module-body { grid-template-columns: 1fr; }
  .account-info { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .workspace-window, .sidebar__link { transition: none; } }
