.account-button{border:1px solid #dcded6;border-radius:7px;padding:9px 13px;font-size:12px;background:#fff;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#account-dialog{width:min(440px,calc(100% - 32px));padding:30px}#account-dialog h2{margin-top:12px}#account-intro,#account-details p{font-size:14px;line-height:1.7;color:var(--muted)}#account-form label{display:block;margin:17px 0 7px}#account-form input{display:block;width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fafbf7;font:inherit;font-size:16px}#account-form .primary-button{margin-top:14px;width:100%}.account-switch{display:block;margin:18px auto 0;color:var(--coral);font-size:13px}.account-note{font-size:11px;line-height:1.65;color:var(--muted);margin-top:19px}.account-error{color:#a53528;font-size:13px;line-height:1.5;margin-top:12px;min-height:18px}#account-details .primary-button{width:100%;margin-top:20px}.gallery-card-actions a{font-size:12px;color:var(--coral)}.gallery-action{padding:12px 18px;background:var(--coral);color:#fff;border-radius:8px;margin-top:15px}.gallery-status{grid-column:1/-1;padding:35px;background:#fff;border:1px solid var(--line);border-radius:16px}.gallery-status h2{font-size:21px;margin-bottom:12px}.gallery-status p{font-size:14px;color:var(--muted);line-height:1.7}.gallery-undo{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:12px 0;font-size:13px}.gallery-undo button{color:var(--coral);text-decoration:underline}.gallery-card button:disabled{opacity:.55;cursor:wait}
@media(max-width:700px){.topbar-actions{gap:8px}.preview-badge{display:none}.account-button{max-width:100px;padding:9px 10px}.breadcrumb{gap:7px;font-size:10px}#account-dialog{padding:23px}.gallery-card-actions{flex-wrap:wrap;gap:14px}}

/* Account dashboard */
.dashboard-welcome{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:32px 36px;border-radius:18px;background:#e9ede3;border:1px solid #dce2d4;overflow:hidden}.dashboard-welcome .eyebrow{color:#5b7163}.dashboard-welcome h2{font-size:30px;letter-spacing:-1px;margin:12px 0}.dashboard-welcome p{font-size:13px;color:#627267;line-height:1.7}.dashboard-create{display:inline-block;margin-top:22px;background:var(--nav);color:#fff;padding:13px 20px;border-radius:8px;font-size:12px}.dashboard-mosaic{display:grid;grid-template-columns:64px 64px;gap:10px;transform:rotate(-9deg);margin-right:28px}.dashboard-mosaic i{height:64px;border-radius:12px;background:#dba88c}.dashboard-mosaic i:nth-child(2){background:#aabca4}.dashboard-mosaic i:nth-child(3){background:#f8f5e9}.dashboard-mosaic i:last-child{background:#324e51;border-radius:12px 42px 12px 12px}.dashboard-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0}.dashboard-stats>a,.dashboard-stats>div{padding:23px;background:white;border:1px solid var(--line);border-radius:14px;display:flex;flex-direction:column;gap:10px}.dashboard-stats span{font-size:12px;color:var(--muted)}.dashboard-stats strong{font-family:Manrope,sans-serif;font-size:32px;font-weight:600}.dashboard-stats strong.dashboard-soon{font-size:22px;line-height:44px}.dashboard-stats small{font-size:11px;color:var(--muted);line-height:1.5}.dashboard-columns{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}.dashboard-main,.dashboard-side{display:grid;gap:22px;min-width:0}.dashboard-panel{padding:25px;background:white;border:1px solid var(--line);border-radius:15px;min-width:0}.dashboard-panel h2{font-size:16px;letter-spacing:-.3px}.dashboard-panel p{font-size:12px;color:var(--muted);line-height:1.8;margin-top:14px}.dashboard-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.dashboard-panel-heading a,.dashboard-panel-heading button,.dashboard-link{font-size:11px;color:#a04e3b}.dashboard-panel-heading button{padding:8px}.dashboard-empty{padding:12px 0}.dashboard-link{display:inline-block;padding:12px 0}.dashboard-panel p.dashboard-plan{font-size:22px;color:var(--ink);font-weight:600;margin:18px 0 8px}.dashboard-pill{display:inline-block;font-size:8px;font-weight:700;letter-spacing:1.3px;background:#edf0e6;padding:7px 10px;border-radius:5px;color:#5e7560;margin-bottom:18px}.dashboard-notice{border-top:1px solid var(--line);margin-top:20px;padding-top:17px;font-size:11px;line-height:1.6;color:var(--muted)}.dashboard-details{margin:22px 0}.dashboard-details dt{font-size:10px;color:var(--muted);margin-top:17px}.dashboard-details dd{font-size:13px;margin:6px 0 0;overflow-wrap:anywhere}.dashboard-panel p.dashboard-caption{font-size:10px;line-height:1.7}.dashboard-thumbnails{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px}.dashboard-thumbnails img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:9px;background:var(--paper)}.dashboard-thumbnails strong{display:block;font-size:11px;margin:10px 0 6px;line-height:1.5}.dashboard-thumbnails small{font-size:9px;color:var(--muted)}.dashboard-job{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:17px 0;border-top:1px solid var(--line);margin-top:12px}.dashboard-job strong{font-size:12px}.dashboard-job small{display:block;font-size:11px;color:var(--muted);margin-top:7px;line-height:1.6}.dashboard-job-status{font-size:10px;padding:7px 9px;border-radius:5px;background:#edf0e6;white-space:nowrap}.dashboard-job-status.is-failed{background:#fae9e3;color:#9c4633}
@media(max-width:1190px){.dashboard-columns{grid-template-columns:minmax(0,1fr) 260px}.dashboard-panel{padding:20px}}
@media(max-width:960px){.dashboard-columns{grid-template-columns:1fr}.dashboard-side{grid-template-columns:1fr 1fr}}
@media(max-width:700px){#account-page>.page-heading{align-items:flex-start;gap:12px}#account-page>.page-heading>a{display:none}.dashboard-welcome{padding:25px 22px}.dashboard-welcome h2{font-size:25px;overflow-wrap:anywhere}.dashboard-mosaic{grid-template-columns:32px 32px;gap:6px;margin-right:3px}.dashboard-mosaic i{height:32px;border-radius:7px}.dashboard-mosaic i:last-child{border-radius:7px 24px 7px 7px}.dashboard-stats{grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.dashboard-stats>div:last-child{grid-column:1/-1}.dashboard-stats>a,.dashboard-stats>div{padding:18px}.dashboard-stats strong.dashboard-soon{font-size:20px;line-height:1.4}.dashboard-side{grid-template-columns:1fr}.dashboard-columns,.dashboard-main,.dashboard-side{gap:16px}.dashboard-thumbnails{gap:10px}.dashboard-panel{padding:20px}.dashboard-job{align-items:flex-start}.dashboard-welcome>div:first-child{min-width:0}}

.profile-form{border-top:1px solid var(--line);padding:20px 0;margin-bottom:16px}.profile-form label{display:block;font-size:12px;margin-bottom:9px}.profile-form input{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;font-size:16px;background:var(--paper)}.profile-actions{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}.profile-actions .primary-button{width:auto;margin:0;padding:12px 16px;font-size:12px}.profile-form #profile-feedback{min-height:20px;font-size:12px;overflow-wrap:anywhere}

#recovery-dialog{width:min(440px,calc(100% - 32px))}#recovery-form label{display:block;margin:18px 0 8px}#recovery-form input{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;font-size:16px}#recovery-intro,#recovery-feedback,.email-verification p{font-size:12px;line-height:1.8;color:var(--muted)}#recovery-feedback{margin:16px 0}#recovery-submit{width:100%}.email-verification{border-top:1px solid var(--line);padding:14px 0}.email-verification button{margin-top:10px}

#cost-report{margin-bottom:22px}.cost-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:22px}.cost-stats>div{padding:18px;background:var(--paper);border-radius:10px}.cost-stats span{display:block;font-size:11px;color:var(--muted)}.cost-stats strong{display:block;font-size:25px;margin-top:10px;font-weight:600}.cost-table{overflow-x:auto;margin-top:20px}.cost-table table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.cost-table th,.cost-table td{padding:13px 12px;border-bottom:1px solid var(--line);min-width:95px}.cost-table th{font-size:10px;color:var(--muted);font-weight:500}.cost-table td:first-child{min-width:170px;overflow-wrap:anywhere}#cost-content details{margin-top:22px}#cost-content summary{font-size:12px;cursor:pointer}#cost-content a{color:#a04e3b;text-decoration:underline}@media(max-width:700px){.cost-stats{grid-template-columns:1fr;gap:10px}.cost-stats>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.cost-stats strong{font-size:22px;margin:0}#cost-report{margin-bottom:16px}}

.crystal-wallet{margin:24px 0}.wallet-amount{display:block;font-family:var(--serif);font-size:2rem;margin:16px 0}.wallet-actions{display:flex;flex-wrap:wrap;gap:12px}.wallet-history{list-style:none;padding:0}.wallet-entry{display:grid;grid-template-columns:1fr auto;gap:6px 16px;padding:14px 0;border-bottom:1px solid #ddd}.wallet-entry small{grid-column:1/-1;color:#69716d}.crystal-wallet details{margin-top:18px}.crystal-wallet summary{cursor:pointer}.wallet-summary{font-weight:600}.crystal-wallet #wallet-message:empty{display:none}

.daily-rewards{background:#faf3eb}.daily-rewards p{line-height:1.7}.daily-rewards small{display:block;line-height:1.6;color:var(--muted);margin-top:14px}.reward-stamps{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;list-style:none;padding:0;margin:20px 0}.reward-stamps li{display:grid;place-items:center;aspect-ratio:1;border-radius:10px;background:#fff;border:1px solid #dbcdbf;font-weight:600;color:#756959}.reward-stamps .earned{background:#dce8d6;color:#294a40;border-color:#98b08d}.daily-rewards .primary-button{background:#efb394;color:#172c34;min-height:44px}.daily-rewards .primary-button:disabled{opacity:.7;cursor:default}

.reward-stamps li{aspect-ratio:auto;min-height:146px;padding:16px 6px;gap:12px;align-content:center}.reward-day{font-size:12px;letter-spacing:.05em}.reward-crystal{font-size:38px;line-height:1;filter:grayscale(1);opacity:.3}.earned .reward-crystal{filter:none;opacity:1}.reward-collected{display:inline-block;border:2px solid #386451;border-radius:5px;padding:5px 7px;text-transform:uppercase;letter-spacing:.08em;font-size:10px;font-weight:800;transform:rotate(-7deg);color:#294a40;background:#edf4e6;box-shadow:0 0 0 2px #edf4e6}.reward-pending{font-size:11px;color:#756959}.reward-stamps .earned{background:linear-gradient(145deg,#e3eedb,#c8dbc0);border:2px solid #8da982;box-shadow:inset 0 0 0 4px #f0f5eb}@media(max-width:700px){.reward-stamps{grid-template-columns:repeat(4,minmax(0,1fr))}.reward-stamps li{min-height:124px;padding:12px 4px}.reward-crystal{font-size:30px}.reward-collected{font-size:8px;padding:4px;letter-spacing:.04em}}

.daily-bonus-button{display:flex;align-items:center;gap:8px;background:#f7dfce;color:#172c34;border:1px solid #e8b795;border-radius:9px;padding:7px 12px;min-height:44px;font-size:12px;font-weight:600;text-align:left;white-space:nowrap;cursor:pointer}.daily-bonus-button>span:first-child{font-size:21px}.daily-bonus-button small{display:block;font-size:10px;font-weight:500;margin-top:3px}.daily-bonus-button.collected{background:#e3eedb;border-color:#a5bd9a}.daily-bonus-button.collected small{text-transform:uppercase;letter-spacing:.07em;font-weight:700;color:#386451}.daily-bonus-button:focus-visible{outline:3px solid #386451;outline-offset:3px}
@media(max-width:1000px){.topbar-actions .preview-badge{display:none}.topbar-actions{gap:8px}}
@media(max-width:700px){.topbar{height:auto;min-height:65px;flex-wrap:wrap;gap:10px;padding:12px 18px}.topbar-actions{flex-wrap:wrap;gap:8px}.daily-bonus-button{padding:6px 9px;font-size:11px}.daily-bonus-button small{font-size:9px}}

.reward-stamps{grid-template-columns:minmax(150px,220px)}

.insights-filters{display:flex;flex-wrap:wrap;gap:16px;align-items:end;margin:20px 0}.insights-filters label{display:grid;gap:7px;font-size:13px}.insights-filters select,.insights-filters input[type=search]{padding:12px;border:1px solid #c9d1ca;border-radius:8px;max-width:100%;background:white;color:#172c34}.insights-stats{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important}.insights-user{background:#efb394;color:#172c34;border-radius:8px;padding:10px 14px;font-weight:700;white-space:nowrap}#studio-insights p{line-height:1.7}#insights-detail{margin-top:24px}#studio-insights .cost-table{max-width:100%;overflow-x:auto}#studio-insights{min-width:0}#studio-insights th,#studio-insights td{white-space:nowrap}

/* Owner-only testing controls remain readable on phones and tablets. */
.testing-panel > div, .testing-panel form, .testing-panel section { display:flex; flex-wrap:wrap; gap:12px; align-items:center; padding:16px 0; }
.testing-panel section { border-top:1px solid #dbe4dc; margin-top:16px; }
.testing-panel section h3, .testing-panel section > p, .testing-panel details { width:100%; overflow-wrap:anywhere; }
.testing-panel label { display:flex; flex-direction:column; gap:6px; flex:1 1 180px; }
.testing-panel input { padding:12px; border:1px solid #b5c5ba; border-radius:10px; min-width:0; font:inherit; }
.testing-panel button { padding:12px 16px; border-radius:10px; cursor:pointer; }
.testing-panel details p { font-size:.9rem; }

.admin-gallery-filters { display:flex; flex-wrap:wrap; gap:16px; align-items:end; margin-bottom:20px; }
.admin-gallery-filters label { display:grid; gap:8px; }
.admin-gallery-filters input,.admin-gallery-filters select { padding:12px; max-width:100%; }
.admin-gallery-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr)); gap:20px; }
.admin-gallery-grid section { min-width:0; padding:14px; background:#edf1e9; border-radius:16px; overflow-wrap:anywhere; }
.admin-gallery-grid img,.admin-gallery-grid video { width:100%; height:320px; object-fit:contain; background:#faf7ef; border-radius:10px; }
.admin-gallery-grid h3 { font-size:18px; }

.crystal-daily-card{background:#e8efe7;border:1px solid #b7c9b6;border-radius:18px;padding:24px;text-align:center;margin-bottom:22px}.crystal-daily-card .eyebrow{display:block;margin:12px 0}.crystal-daily-card h3{font-size:25px;margin:10px 0}.crystal-daily-card p{line-height:1.6}.crystal-daily-card .primary-button{background:#efb394;color:#19343a;width:100%}.crystal-daily-card .primary-button:disabled{opacity:.65}.daily-crystal-art{font-size:44px;display:block}.crystal-starter-card{position:relative;border:2px solid #e7a883;background:linear-gradient(145deg,#fff7ec,#f5dfcd)}.intro-offer-badge{display:inline-block;background:#19343a;color:#ffdabd;border:3px double #f2ba92;border-radius:12px 3px 12px 3px;padding:10px 16px;margin:0 0 20px;font-size:12px;font-weight:800;letter-spacing:.08em;transform:rotate(-3deg);box-shadow:4px 4px 0 #edb594}.crystal-starter-card>.eyebrow{display:block}
