.workspace-shell {
  --ink: #1d1d1f;
  --muted: #686871;
  --line: #e5e5ea;
  --green: #0071e3;
  --dark: #0063c6;
  --soft: #e9f2ff;
  --paper: #f5f5f7;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
.workspace-shell .side {
  background: #fafafbd9;
  backdrop-filter: blur(22px) saturate(145%);
  overflow-y: auto;
}
.workspace-shell .brand { gap: 12px; }
.workspace-shell .brand strong { letter-spacing: 0; }
.workspace-shell .logo { background: #22242a; border-radius: 12px; }
.workspace-shell .nav-label { letter-spacing: 0; color: var(--muted); }
.workspace-icon { width: 19px; height: 19px; flex: none; vertical-align: middle; }
.workspace-shell .nav button {
  min-height: 43px;
  color: #45454e;
  border-radius: 12px;
  transition: background .2s ease, color .2s ease;
}
.workspace-shell .nav button:hover { background: #ececf1; }
.workspace-shell .nav button.active { background: var(--soft); color: #005dbb; font-weight: 650; }
.workspace-shell .topbar { background: #ffffffa6; backdrop-filter: blur(18px); }
.workspace-shell .account-btn { border-radius: 999px; }
.workspace-shell .balance { background: #fff; border-color: #e9e9ee; border-radius: 18px; }
.workspace-shell .balance .num { color: var(--ink); }
.workspace-shell .footer-note { color: var(--muted); }
.dashboard {
  --dashboard-shadow: 0 4px 24px #1d1d1f0a;
  max-width: 1240px;
  margin-inline: auto;
}
.dashboard :focus-visible, .workspace-shell .nav :focus-visible, .dashboard-picker :focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 3px;
}
.dashboard-heading, .dashboard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dashboard-heading { margin-bottom: 24px; }
.dashboard-heading h1, .dashboard-section h2 { margin: 0; letter-spacing: -.04em; }
.dashboard-heading h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.16; font-weight: 700; }
.dashboard-heading p { margin: 6px 0 0; color: var(--muted); }
button.dashboard-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 17px;
  border-radius: 999px;
  white-space: nowrap;
}
.dashboard-pill .workspace-icon, .dashboard-link .workspace-icon { width: 15px; height: 15px; }
.dashboard button { transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.dashboard button:active, .dashboard-picker button:active { transform: scale(.97); }
.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  isolation: isolate;
  min-height: 290px;
  overflow: hidden;
  border-radius: 28px;
  background: radial-gradient(ellipse at 77% 78%, #dce8f8, transparent 51%), linear-gradient(116deg, #fff 25%, #f1f5fc 100%);
  box-shadow: var(--dashboard-shadow);
}
.dashboard-hero-copy { padding: clamp(26px, 4vw, 58px); }
.dashboard-hero h2 { margin: 0; font-size: clamp(30px, 4vw, 58px); line-height: 1.13; letter-spacing: -.065em; }
.dashboard-hero p { color: #555764; margin: 16px 0 24px; }
.dashboard-illustration { position: relative; height: 270px; }
.dashboard-sheet {
  position: absolute;
  top: 50%;
  left: 49%;
  width: 151px;
  height: 202px;
  border: 1px solid #fff;
  border-radius: 12px;
  box-shadow: 0 22px 42px #23375b2b;
}
.dashboard-sheet-back { background: #f4f8ff; transform: translate(-25%, -56%) rotate(16deg); }
.dashboard-sheet-front {
  background: linear-gradient(151deg, #fff 48%, #edf4ff);
  transform: translate(-70%, -46%) rotate(-12deg);
  padding: 21px;
}
.dashboard-sheet-front > span { color: #535e72; font-size: 10px; letter-spacing: .16em; }
.dashboard-sheet-front strong { display: block; margin: 10px 0 16px; font-size: 21px; line-height: 1.2; letter-spacing: -.06em; }
.dashboard-sheet-front i { display: block; width: 76%; height: 2px; background: #d9e1ee; margin: 5px 0; }
.dashboard-sheet-front i:last-of-type { width: 51%; }
.dashboard-sheet-mark { position: absolute; right: 12px; bottom: 12px; color: #0071e3; }
.dashboard-illustration-check {
  position: absolute;
  top: 61%;
  left: 66%;
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  color: #0066ce;
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 12px 26px #23375b24;
  transform: rotate(10deg);
}
.dashboard-illustration-check svg { width: 28px; height: 28px; }
.dashboard-stats, .dashboard-shortcuts, .dashboard-flow { display: grid; gap: 16px; }
.dashboard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.dashboard-stat, .dashboard button.dashboard-shortcut, .dashboard-project-list, .dashboard-empty, .dashboard-flow {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--dashboard-shadow);
}
.dashboard-stat { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; padding: 18px 22px; }
.dashboard-stat span { color: var(--muted); font-size: 13px; }
.dashboard-stat strong { display: block; font-size: 29px; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.dashboard-stat > svg { color: #0066ce; }
.dashboard-section { margin-top: 32px; }
.dashboard-section h2 { font-size: 22px; }
.dashboard-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; }
.dashboard button.dashboard-shortcut {
  display: grid;
  position: relative;
  text-align: left;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 17px;
  border: 1px solid transparent;
}
.dashboard button.dashboard-shortcut:hover { transform: translateY(-2px); box-shadow: 0 9px 25px #202a4314; border-color: #e1eafa; }
.dashboard button.dashboard-shortcut:active { transform: scale(.97); }
.dashboard-shortcut-icon, .dashboard-project-icon {
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf5ff;
  color: #0066ce;
  width: 40px;
  height: 40px;
}
.dashboard-shortcut-icon { margin-bottom: 5px; transition: transform .2s; }
.dashboard-shortcut:hover .dashboard-shortcut-icon { transform: scale(1.05); }
.dashboard-shortcut strong { font-size: 15px; }
.dashboard-shortcut small, .dashboard-project small { color: var(--muted); font-size: 12px; }
.dashboard-shortcut > svg { position: absolute; top: 19px; right: 15px; width: 15px; color: #0066ce; }
.dashboard button.dashboard-link { display: inline-flex; align-items: center; gap: 6px; background: transparent; border-color: transparent; color: #0066ce; border-radius: 10px; white-space: nowrap; }
.dashboard button.dashboard-link:hover { background: #edf5ff; }
.dashboard-project-list { list-style: none; padding: 8px; margin: 12px 0 0; }
.dashboard-project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: clamp(8px, 1.6vw, 24px);
  align-items: center;
  padding: 9px 12px;
  border-radius: 15px;
  transition: background .2s;
}
.dashboard-project:hover, .dashboard-project:focus-within { background: #f5f5f7; }
.dashboard-project button.dashboard-project-name {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.dashboard-project-label { min-width: 0; overflow-wrap: anywhere; }
.dashboard-project-label small { display: block; }
.dashboard-project-state, .dashboard-project time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.dashboard-project-state { background: #f1f1f4; padding: 3px 8px; border-radius: 999px; }
.dashboard-project-actions { display: flex; gap: 3px; align-items: center; }
.dashboard-project-actions button, .dashboard-project-more summary {
  padding: 6px 8px;
  font-size: 12px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  white-space: nowrap;
}
.dashboard-project-actions button:hover, .dashboard-project-more summary:hover { background: #e9e9ee; }
.dashboard-project-more { position: relative; }
.dashboard-project-more summary { cursor: pointer; list-style: none; }
.dashboard-project-more summary::-webkit-details-marker { display: none; }
.dashboard-project-more > button {
  position: absolute;
  right: 0;
  z-index: 1;
  padding: 8px 12px;
  background: #fff;
  box-shadow: 0 4px 18px #1d1d1f20;
}
@media (hover: hover) and (pointer: fine) {
  .dashboard-project-actions { opacity: .62; transition: opacity .2s; }
  .dashboard-project:hover .dashboard-project-actions, .dashboard-project:focus-within .dashboard-project-actions,
  .dashboard-project:has(details[open]) .dashboard-project-actions { opacity: 1; }
}
.dashboard-empty { padding: 25px; margin-top: 12px; text-align: center; color: var(--muted); }
.dashboard-empty > svg { color: #0066ce; }
.dashboard-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 20px; margin: 12px 0 0; }
.dashboard-flow li { position: relative; padding-inline: 7px; }
.dashboard-flow li:not(:last-child)::after { content: ""; position: absolute; height: 1px; background: #dce5f0; top: 17px; left: 46px; right: 0; }
.dashboard-flow span { display: block; font-size: 23px; line-height: 1.4; font-weight: 300; color: #0066ce; font-variant-numeric: tabular-nums; }
.dashboard-flow strong, .dashboard-flow small { display: block; }
.dashboard-flow small { color: var(--muted); margin-top: 2px; font-size: 12px; }
.dashboard-picker { list-style: none; padding: 0; display: grid; gap: 7px; }
.dashboard-picker button { text-align: left; width: 100%; }
@media (max-width: 980px) {
  .dashboard-project time { display: none; }
  .dashboard-project { grid-template-columns: minmax(0, 1fr) auto auto; }
  .dashboard-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .workspace-shell .nav button.secondary { display: flex; }
  .workspace-shell .nav button { min-height: 36px; }
  .workspace-shell .nav .workspace-icon { width: 15px; height: 15px; }
  .dashboard-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-flow li:nth-child(even)::after { display: none; }
}
@media (max-width: 480px) {
  .dashboard-hero { grid-template-columns: 1fr; min-height: auto; }
  .dashboard-illustration { display: none; }
  .dashboard-stats, .dashboard-shortcuts { gap: 8px; }
  .dashboard-stat { padding: 12px 10px; }
  .dashboard-stat > svg { display: none; }
  .dashboard-stat span { font-size: 11px; }
  .dashboard-project { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
  .dashboard-project-actions { grid-column: 1/-1; justify-content: flex-end; }
  .dashboard-project-icon { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-shell .nav button, .dashboard *, .dashboard-picker button { transition: none; }
  .dashboard button:hover, .dashboard button:active, .dashboard-shortcut:hover .dashboard-shortcut-icon, .dashboard-picker button:active { transform: none; }
}
