.dashboard-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% -5%, color-mix(in srgb, var(--primary), transparent 86%) 0, transparent 34%),
    radial-gradient(circle at 95% 10%, color-mix(in srgb, var(--accent), transparent 88%) 0, transparent 30%),
    var(--bg);
}
.dashboard-main { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 64px 0 90px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: 50px; align-items: center; }
.hero-copy { max-width: 760px; }
.eyebrow { color: var(--primary); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { margin: 12px 0 18px; font-size: clamp(46px, 7vw, 78px); letter-spacing: -.06em; line-height: .98; }
.hero .lead { margin: 0; color: var(--muted); font-size: clamp(18px, 2.2vw, 23px); line-height: 1.55; max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.hero-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success), transparent 85%); }
.hero-visual { min-height: 410px; padding: 18px; position: relative; overflow: hidden; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--muted), transparent 70%) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .45;
}
.mock-canvas { position: relative; height: 372px; }
.mock-node { position: absolute; min-width: 116px; min-height: 64px; padding: 13px; display: grid; place-items: center; text-align: center; border: 2px solid var(--text); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 800; }
.mock-node.a { left: 22px; top: 42px; background: #ede9fe; color: #332267; border-color: #765cc0; transform: rotate(-2deg); }
.mock-node.b { right: 28px; top: 70px; background: #dff4ff; color: #123d56; border-color: #4c8fb3; transform: rotate(1deg); }
.mock-node.c { left: 105px; bottom: 42px; background: #fff1c7; color: #57400c; border-color: #c9972d; transform: rotate(1.5deg); }
.mock-node.d { right: 42px; bottom: 30px; background: #dff7e9; color: #17482f; border-color: #4c9a70; transform: rotate(-1deg); }
.mock-line { position: absolute; height: 3px; transform-origin: left center; background: var(--muted); border-radius: 3px; opacity: .7; }
.mock-line::after { content: ""; position: absolute; right: -2px; top: -5px; border-left: 10px solid var(--muted); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.mock-line.l1 { width: 145px; left: 135px; top: 85px; transform: rotate(8deg); }
.mock-line.l2 { width: 134px; left: 105px; top: 145px; transform: rotate(60deg); }
.mock-line.l3 { width: 125px; left: 238px; top: 285px; transform: rotate(-8deg); }
.privacy-chip { position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface), transparent 4%); box-shadow: var(--shadow-sm); color: var(--muted); font-size: 12px; font-weight: 700; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 72px 0 18px; }
.section-head h2 { margin: 0; font-size: 26px; letter-spacing: -.03em; }
.section-head p { margin: 5px 0 0; color: var(--muted); }
.creation-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.creation-card { min-height: 188px; padding: 18px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; cursor: pointer; color: var(--text); }
.creation-card:hover { border-color: color-mix(in srgb, var(--primary), var(--border) 38%); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.creation-card .card-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.creation-card h3 { margin: 17px 0 6px; font-size: 17px; }
.creation-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.creation-card .arrow { margin-top: auto; padding-top: 16px; color: var(--primary); font-weight: 800; font-size: 13px; }

.recent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.recent-card { min-height: 192px; overflow: hidden; position: relative; }
.recent-preview { height: 116px; position: relative; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.recent-preview::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, color-mix(in srgb, var(--muted), transparent 80%) 1px, transparent 1px); background-size: 15px 15px; }
.recent-preview .mini-shape { position: absolute; z-index: 1; height: 28px; min-width: 52px; border: 1.5px solid var(--primary); background: color-mix(in srgb, var(--primary-soft), var(--surface) 35%); border-radius: 6px; }
.recent-preview .m1 { left: 16%; top: 26%; }
.recent-preview .m2 { right: 16%; top: 35%; }
.recent-preview .m3 { left: 41%; bottom: 15%; }
.recent-meta { padding: 13px 15px 15px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.recent-title { font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-sub { margin-top: 4px; color: var(--muted); font-size: 12px; }
.recent-actions { display: flex; gap: 4px; }
.empty-state { grid-column: 1 / -1; padding: 34px; text-align: center; color: var(--muted); }
.storage-card { margin-top: 16px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.storage-copy { display: flex; align-items: center; gap: 12px; }
.storage-copy strong { display: block; font-size: 14px; }
.storage-copy span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.storage-meter { width: min(260px, 38vw); height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-3); }
.storage-meter > span { display: block; height: 100%; width: 0; background: var(--primary); border-radius: inherit; }

.template-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.template-card { overflow: hidden; cursor: pointer; text-align: left; color: var(--text); }
.template-thumb { height: 130px; position: relative; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.template-thumb svg { width: 88%; height: 88%; }
.template-info { padding: 13px 14px 15px; }
.template-info strong { display: block; }
.template-info span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.dashboard-footer { margin-top: 80px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }
.dashboard-footer nav { display: flex; gap: 18px; }
.dashboard-footer a { color: var(--muted); text-decoration: none; }
.dashboard-footer a:hover { color: var(--text); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 330px; }
  .mock-canvas { height: 292px; }
  .creation-grid, .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dashboard-main { width: min(100% - 24px, 1180px); padding-top: 38px; }
  .hero h1 { font-size: 48px; }
  .hero-visual { display: none; }
  .creation-grid, .template-grid, .recent-grid { grid-template-columns: 1fr; }
  .section-head { margin-top: 52px; align-items: start; }
  .storage-card { align-items: flex-start; flex-direction: column; }
  .storage-meter { width: 100%; }
  .dashboard-footer { flex-direction: column; }
}
