.profile-main{min-height:calc(100vh - 194px);padding-block:65px 90px}.profile-heading{margin-bottom:30px}.profile-heading .eyebrow{margin-bottom:12px}.profile-heading h1{font-family:var(--font-display);font-size:clamp(40px,5vw,58px);line-height:1.1;letter-spacing:-2.5px;margin:0}.profile-heading h1 span{color:var(--accent)}.profile-heading>p:last-child{color:var(--text-muted);font-size:14px;margin:14px 0 0}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.profile-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:26px}.profile-card-top{display:flex;justify-content:space-between;align-items:center;color:var(--text-subtle);font-size:10px;font-weight:800;letter-spacing:1.5px}.card-spark{font-size:21px;color:var(--accent)}.identity-row{display:flex;gap:16px;align-items:center;margin-top:24px}.profile-avatar{width:60px;height:60px;border-radius:16px;display:grid;place-items:center;background:var(--accent-100);color:var(--accent-600);font:700 29px var(--font-display);flex:none}.identity-row h2,.status-card h2{font:600 25px var(--font-display);letter-spacing:-.5px;margin:0 0 4px}.identity-row p{color:var(--text-subtle);font-size:13px;margin:0}.status-light{width:10px;height:10px;border-radius:50%;background:var(--warn-strong);box-shadow:0 0 0 5px var(--warn-bg)}.status-light.on{background:var(--ok-strong);box-shadow:0 0 0 5px var(--ok-bg)}.status-card h2{margin:27px 0 6px}.status-card>p{font-size:13px;color:var(--text-muted);line-height:1.6;min-height:42px;max-width:440px;margin:0}.detail-list{display:grid;gap:0;margin:23px 0 0;border-top:1px solid var(--line-soft)}.detail-list div{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line-soft);font-size:12px}.detail-list dt{color:var(--text-subtle)}.detail-list dd{margin:0;color:var(--text-2);font-weight:700;text-align:right}.credit-panel{margin-top:18px}.credit-panel-heading{margin-top:18px}.credit-panel h2,.workspace-card h2{font:600 25px var(--font-display);letter-spacing:-.5px;margin:0 0 7px}.credit-panel p,.workspace-card p{font-size:13px;color:var(--text-muted);line-height:1.6;margin:0}.credit-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px}.credit-stats div{background:var(--surface-2);border:1px solid var(--line-soft);border-radius:11px;padding:15px 17px;display:grid;gap:6px}.credit-stats span{font-size:11px;color:var(--text-subtle)}.credit-stats strong{font-size:15px;color:var(--text-2);overflow-wrap:anywhere}.workspace-card{margin-top:18px;display:flex;align-items:end;justify-content:space-between;gap:20px}.workspace-card h2{margin-top:17px}.last-active{display:inline-block;margin-top:12px;color:var(--text-subtle);font-size:11px}.workspace-card>a{flex:none;text-decoration:none;background:var(--accent);color:white;border-radius:9px;padding:12px 17px;font-size:12px;font-weight:700}.workspace-card>a:hover{background:var(--accent-hover)}@media(max-width:760px){.profile-main{padding-block:48px 70px}.profile-grid{grid-template-columns:1fr}.credit-stats{grid-template-columns:1fr 1fr}}@media(max-width:480px){.profile-card{padding:22px}.credit-stats{grid-template-columns:1fr}.workspace-card{align-items:start;flex-direction:column}.workspace-card>a{align-self:start}.profile-heading h1{font-size:42px}}
.buy-credits-link{display:inline-block;margin-top:14px;text-decoration:none;background:var(--accent);color:#fff;border-radius:9px;padding:11px 16px;font-size:12px;font-weight:700}.buy-credits-link:hover{background:var(--accent-hover)}
.buy-credits-link.free-credits-link{background:var(--accent-100);color:var(--accent-700)}.buy-credits-link.free-credits-link:hover{background:var(--accent-200)}
/* Dashboard: a one-line account bar, this month's usage beside a slim account column,
   then the library. Everything is scoped to .dashboard so other pages keep their look. */
.dashboard{padding-block:40px 72px;font-size:var(--fs-base)}
.dash-head{display:flex;justify-content:space-between;align-items:center;gap:14px 20px;flex-wrap:wrap;margin-bottom:18px}
.dash-head .identity-row{margin:0;gap:12px}
.dash-head .profile-avatar{width:40px;height:40px;font-size:19px;border-radius:10px}
.dash-head h1{font:600 20px/1.2 var(--font-display);letter-spacing:-.3px;color:var(--text);margin:0 0 2px}
.dash-head .identity-row p{font-size:12px}
.dash-actions{display:flex;gap:8px;flex-wrap:wrap}
.dash-actions a,.dash-actions .buy-credits-link{display:inline-flex;align-items:center;height:34px;margin:0;padding:0 14px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text-2);font-size:13px;font-weight:600;text-decoration:none}
.dash-actions a:hover,.dash-actions .buy-credits-link.free-credits-link:hover{background:var(--surface-2);border-color:var(--accent-300)}
.dash-actions .buy-credits-link:not(.free-credits-link){background:var(--accent);border-color:var(--accent);color:#fff}
.dash-actions .buy-credits-link:not(.free-credits-link):hover{background:var(--accent-hover);border-color:var(--accent-hover)}
.dashboard .past-creations{display:flex;justify-content:space-between;align-items:center;gap:10px 16px;flex-wrap:wrap;margin:0 0 16px;padding:10px 14px;border:1px solid var(--accent-200);border-radius:10px;background:var(--accent-50)}
.dashboard .past-creations h2{font:700 13px var(--font-sans);margin:0 0 2px}
.dashboard .past-creations p{font-size:12px;line-height:1.45;max-width:760px;margin:0;color:var(--text-muted)}
.dashboard .past-creations p[role=status]:empty{display:none}
.dashboard .past-actions{display:flex;gap:6px}
.dashboard .past-actions button{font:600 12px var(--font-sans);padding:7px 12px;border:1px solid var(--accent-200);border-radius:8px;background:var(--surface);color:var(--accent-700);cursor:pointer}
.dashboard .past-actions button.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.dash-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}
.dash-layout.solo{grid-template-columns:1fr}
.dash-side{display:grid;gap:16px}
.dashboard .credit-panel{margin:0}
.dash-layout.solo .dash-side{grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr))}
.dashboard .profile-card{padding:16px 18px;border:1px solid var(--line);border-radius:12px}
.dashboard .card-label{font:700 11px var(--font-sans);letter-spacing:.8px;text-transform:uppercase;color:var(--text-subtle);margin:0 0 10px}
.dashboard .balance-figure{font:500 13px var(--font-sans);color:var(--text-muted);margin:0 0 12px}
.dashboard .balance-figure strong{font:600 28px/1 var(--font-display);letter-spacing:-.6px;color:var(--text);margin-right:4px}
.dashboard .detail-list{margin:0;border-top:1px solid var(--line-soft)}
.dashboard .detail-list div{padding:7px 0;font-size:12px}
.dashboard .card-note{font-size:12px;line-height:1.5;color:var(--text-subtle);margin:10px 0 0}
.dashboard .plan-line{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600;color:var(--text);margin:0 0 12px}
.dashboard .status-card>p{min-height:0;max-width:none}
.dashboard .status-light{width:8px;height:8px;box-shadow:none;flex:none}
.usage-head{display:flex;justify-content:space-between;align-items:baseline;gap:6px 12px;flex-wrap:wrap}
.usage-head h2{font:600 15px var(--font-sans);color:var(--text);margin:0}
.usage-head>p{font-size:12px;color:var(--text-subtle);margin:0}
.stat-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:12px;border:1px solid var(--line-soft);border-radius:10px;overflow:hidden}
.stat-tile{display:grid;gap:2px;padding:10px 14px;border-left:1px solid var(--line-soft)}
.stat-tile:first-child{border-left:0}
.stat-tile span,.stat-tile small{font-size:11px;color:var(--text-subtle)}
.stat-tile strong{font:600 20px/1.3 var(--font-display);color:var(--text)}
.usage-card h3{font:700 11px var(--font-sans);letter-spacing:.8px;text-transform:uppercase;color:var(--text-subtle);margin:16px 0 2px}
.usage-list{list-style:none;margin:0;padding:0}
.usage-list li{display:grid;grid-template-columns:32px minmax(0,1fr) auto 56px;align-items:center;gap:10px;padding:6px 0;border-top:1px solid var(--line-soft)}
.usage-list li:first-child{border-top:0}
.usage-thumb{display:block;width:32px;height:32px;border-radius:7px;overflow:hidden;background:#131a2a}
.usage-thumb img{display:block;width:300%;height:auto}
/* A decoration's sheet zooms into its first view; a map shows whole. */
.usage-thumb.whole img{width:100%;height:100%;object-fit:cover}
.usage-thumb.empty{background:var(--line-soft)}
.usage-name{display:grid;min-width:0}
.usage-name a{color:var(--text);font-weight:600;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.usage-name a:hover{color:var(--accent-600)}
.usage-name small{font-size:11px;color:var(--text-subtle)}
.usage-state{font-size:11px;font-weight:600;border-radius:999px;padding:2px 8px;background:var(--bad-bg);color:var(--bad)}
.usage-state.ready{background:var(--ok-bg);color:var(--ok)}
.usage-state.busy{background:var(--warn-bg);color:var(--warn)}
.usage-credits{text-align:right;font-variant-numeric:tabular-nums;font-weight:600;color:var(--text-2)}
.usage-empty{font-size:13px;color:var(--text-subtle);margin:14px 0 0}
/* My Creations: one toolbar row and a dense grid of compact cards. */
.dashboard .my-creations-section{margin-top:28px}
.dashboard .my-creations-section .section-heading{align-items:baseline;margin-bottom:10px}
.dashboard .my-creations-section .section-heading h2{font:600 15px var(--font-sans);color:var(--text);margin:0}
.dashboard .my-creations-section .section-heading p{font-size:12px;color:var(--text-subtle);margin:2px 0 0}
.dashboard .section-heading>a{font-size:13px;font-weight:600;color:var(--accent-600);text-decoration:none}
.library-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}
.dashboard .library-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0;flex:1 1 420px}
.dashboard .library-filters label{display:block}
.dashboard .library-search{flex:1 1 200px}
.dashboard .library-filters input,.dashboard .library-filters select{width:100%;height:34px;box-sizing:border-box;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font:inherit;font-size:13px}
.dashboard .collection-manager{padding:0;background:none;border-radius:0}
.dashboard .collection-manager summary{display:inline-flex;align-items:center;height:34px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:13px;font-weight:600;color:var(--text-2);list-style:none}
.dashboard .collection-manager summary::-webkit-details-marker{display:none}
.dashboard .collection-manager[open]{flex-basis:100%;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.dashboard .collection-manager[open] summary{border:0;padding:0;height:auto}
.dashboard .collection-manager p{font-size:12px;color:var(--text-subtle);margin:6px 0 0}
.dashboard .collection-manager form{margin:10px 0 0;gap:8px}
.dashboard .collection-manager input,.dashboard .collection-manager select,.dashboard .collection-manager button{font-size:13px;padding:7px 10px;border-radius:8px}
.dashboard #my-creations-status:empty{display:none}
.dashboard .creation-grid{grid-template-columns:repeat(auto-fill,minmax(min(200px,100%),1fr));gap:12px}
.dashboard .creation-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px}
/* Thumbnails use the shared .front-view crop in creations.css (maps whole, decorations their first view). */
.dashboard .creation-card .creation-copy{display:grid;gap:4px;padding:10px 12px 12px}
.creation-title{display:flex;justify-content:space-between;align-items:center;gap:8px;min-width:0}
.dashboard .creation-card h3{font-size:14px;font-weight:600;margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard .creation-card h3 a{color:var(--text)}
.dashboard .creation-card p{font-size:12px;color:var(--text-subtle);margin:0}
.visibility-chip{flex:none;font-size:10.5px;font-weight:600;border-radius:999px;padding:2px 7px;background:var(--surface-3);color:var(--text-muted)}
.visibility-chip.public{background:var(--ok-bg);color:var(--ok)}
.creation-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px}
.dashboard .creation-row a,.dashboard .creation-row .favourite-button{display:inline-flex;align-items:center;height:26px;margin:0;padding:0 9px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--accent-600);font-size:12px;text-decoration:none;cursor:pointer}
.dashboard .creation-row .favourite-button[aria-pressed=true]{color:var(--bad);border-color:var(--bad-line)}
.dashboard .creation-manage{margin:0 0 0 auto}
.dashboard .creation-manage summary{font-size:12px;color:var(--accent-600);cursor:pointer;list-style:none}
.dashboard .creation-manage summary::-webkit-details-marker{display:none}
.dashboard .creation-manage[open]{flex-basis:100%;margin:6px 0 0;padding-top:8px;border-top:1px solid var(--line-soft)}
.dashboard .creation-manage form{gap:8px;margin-top:8px}
.dashboard .creation-manage label,.dashboard .creation-manage input,.dashboard .creation-manage select,.dashboard .creation-manage button{font-size:12px}
.dashboard .creation-manage input:not([type=checkbox]),.dashboard .creation-manage select,.dashboard .creation-manage button{padding:6px 8px;border-radius:7px}
.dashboard .creation-more{margin:16px auto 0;font-size:13px;padding:7px 16px}
@media(max-width:900px){.dash-layout{grid-template-columns:1fr}
.dash-side{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}
}
@media(max-width:640px){.stat-row{grid-template-columns:repeat(2,minmax(0,1fr))}
.stat-tile:nth-child(odd){border-left:0}
.stat-tile:nth-child(n+3){border-top:1px solid var(--line-soft)}
.dash-actions{width:100%}
.dash-actions a,.dash-actions .buy-credits-link{flex:1;justify-content:center}
.dashboard .library-search{flex-basis:100%}
.dashboard .library-filters label:not(.library-search){flex:1 1 120px}
.dashboard .creation-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.dashboard .creation-card .creation-copy{padding:8px 10px 10px}
}
@media(max-width:480px){.usage-list li{grid-template-columns:32px minmax(0,1fr) 52px}
.usage-state{display:none}
}
/* Dashboard on the type scale: a clear account bar, pill actions, readable labels and figures,
   and library cards that match Explore's. */
.dash-head{margin-bottom:24px}
.dash-head .identity-row{gap:14px}
.dash-head .profile-avatar{width:52px;height:52px;border-radius:14px;font-size:24px;background:var(--accent-100);color:var(--accent-600)}
.dash-head h1{font:600 var(--fs-2xl)/1.15 var(--font-display);letter-spacing:-.02em}
.dash-head .identity-row p{font-size:var(--fs-sm);color:var(--text-subtle)}
.dash-actions a{height:40px;padding:0 18px;border:1px solid var(--line);border-radius:var(--r-pill);background:var(--surface);color:var(--text-2);font-size:var(--fs-sm);font-weight:700;gap:10px}
.dash-actions a:hover{border-color:var(--accent-300);color:var(--accent-600);background:var(--surface)}
.dash-actions a.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.dash-actions a.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:#fff}
.dashboard .profile-card{padding:20px 22px;border-color:var(--line);border-radius:var(--r-lg)}
.dashboard .card-label,.usage-card h3{font:800 var(--fs-2xs) var(--font-sans);letter-spacing:1.4px;text-transform:uppercase;color:var(--text-subtle)}
.dashboard .balance-figure{font-size:var(--fs-sm)}
.dashboard .balance-figure strong{font-size:var(--fs-3xl)}
.dashboard .detail-list div{padding:9px 0;font-size:var(--fs-sm)}
.dashboard .card-note{font-size:var(--fs-sm)}
.dashboard .plan-line{font-size:var(--fs-md)}
.usage-head h2,.dashboard .my-creations-section .section-heading h2{font:600 var(--fs-xl) var(--font-display);letter-spacing:-.01em}
.usage-head>p,.dashboard .my-creations-section .section-heading p{font-size:var(--fs-sm)}
.stat-row{margin-top:16px;border-color:var(--line-soft);border-radius:var(--r-md)}
.stat-tile{padding:14px 16px}
.stat-tile span,.stat-tile small{font-size:var(--fs-xs)}
.stat-tile strong{font:600 var(--fs-2xl)/1.2 var(--font-display)}
.usage-list li{grid-template-columns:40px minmax(0,1fr) auto 60px;gap:12px;padding:9px 0}
.usage-thumb{width:40px;height:40px;border-radius:9px}
.usage-name small{font-size:var(--fs-xs)}
.usage-state{font-size:var(--fs-2xs);font-weight:700;padding:3px 9px}
.dashboard .my-creations-section{margin-top:40px}
.dashboard .section-heading>a{font-size:var(--fs-sm);font-weight:700;color:var(--accent-600)}
.dashboard .library-filters input,.dashboard .library-filters select,.dashboard .collection-manager summary{height:38px;border-radius:var(--r-sm);font-size:var(--fs-base)}
.dashboard .creation-grid{grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));gap:16px}
.dashboard .creation-card{border-radius:var(--r-lg);transition:transform .2s ease,box-shadow .2s ease}
.dashboard .creation-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}
.dashboard .creation-card .creation-copy{gap:6px;padding:12px 14px 14px}
.dashboard .creation-card h3{font-size:var(--fs-md)}
.dashboard .creation-card p{font-size:var(--fs-xs)}
.visibility-chip{font-size:var(--fs-2xs);font-weight:700;padding:2px 8px}
.dashboard .creation-row a,.dashboard .creation-row .favourite-button{height:30px;padding:0 11px;border-radius:var(--r-pill);font-size:var(--fs-sm);color:var(--text-muted)}
.dashboard .creation-row a:hover,.dashboard .creation-row .favourite-button:hover{border-color:var(--accent-300);color:var(--accent-600)}
.dashboard .creation-manage summary{font-size:var(--fs-sm);font-weight:700;color:var(--accent-600)}
.dashboard .past-creations{padding:14px 18px;border-color:var(--accent-200);border-radius:var(--r-md);background:var(--accent-50)}
.dashboard .past-creations h2{font-size:var(--fs-base)}
.dashboard .past-creations p{font-size:var(--fs-sm)}
.dashboard .past-actions button{padding:8px 14px;border-radius:var(--r-pill);font-size:var(--fs-sm)}
@media(prefers-reduced-motion:reduce){.dashboard .creation-card{transition:none}}
@media(max-width:640px){.dash-actions a{padding:0 10px;gap:6px;white-space:nowrap;justify-content:center}.dash-head .profile-avatar{width:44px;height:44px;font-size:20px}.dash-head h1{font-size:var(--fs-xl)}.usage-list li{grid-template-columns:40px minmax(0,1fr) 56px}}

/* Profile Appearance card. */
.appearance-card .theme-switch{margin:2px 0 4px}
