.account-page { --account-error: #a92d25; --account-success: #296d44; }
.account-page [hidden] { display: none !important; }
.account-kicker { color: var(--muted); font-size: 12px; line-height: 1.5; font-weight: 800; letter-spacing: .12em; }
.account-page h1, .account-page h2, .account-page h3 { letter-spacing: -.055em; }
.account-page h1 span, .dashboard-section-title h2 span, .shared-card-details h2 span { color: var(--brand-accent-ink); }
.account-page button, .account-page input, .account-page a { -webkit-tap-highlight-color: transparent; }

/* The account entrance uses the same rendered sample as the catalogue. */
.auth-main { padding-block: 48px 72px; }
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  border: 1px solid var(--line);
  border-radius: var(--brand-radius);
  overflow: hidden;
  background: var(--surface);
}
.auth-intro {
  min-width: 0;
  padding: clamp(24px, 4vw, 56px);
  color: var(--ink);
  background: var(--soft);
}
.auth-intro h1 { font-size: clamp(34px, 4vw, 58px); max-width: 13ch; }
.auth-intro > p { margin-top: 16px; color: var(--muted); max-width: 36ch; }
.auth-card-example { width: min(100%, 252px); margin-top: 32px; }
.auth-card-example > div {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px #1b221b1a;
}
.auth-card-example :is(canvas,img) { width: 100%; height: 100%; object-fit: cover; }
.auth-card-example img { position: absolute; inset: 0; }
.auth-card-example div:has(canvas.rendered) img { display: none; }
.auth-card-example figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }
.auth-card { padding: 36px clamp(28px, 4vw, 56px) 40px; min-width: 0; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; gap: 4px; background: var(--soft); border: 1px solid var(--line); border-radius: 11px; margin-bottom: 28px; }
.auth-tabs button { border: 0; background: transparent; color: var(--muted); min-height: 44px; border-radius: 7px; font-size: 14px; font-weight: 750; cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: var(--brand-accent); color: var(--brand-on-accent); }
.auth-card h2 { font-size: clamp(29px, 3vw, 39px); line-height: 1.12; font-weight: 800; margin: 0; }
.auth-subtitle { margin: 12px 0 24px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .18s, border-color .18s; }
.auth-google svg { flex: 0 0 20px; }
.auth-google:hover { background: var(--soft); border-color: var(--muted); }
.auth-google:focus-visible { outline: 3px solid var(--brand-accent-ink); outline-offset: 3px; }
.auth-google:disabled { opacity: .6; cursor: wait; }
.auth-google-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; text-align: center; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 23px 0 3px; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-divider span { flex: 0 1 auto; text-align: center; }
#auth-form label { display: block; margin: 20px 0 8px; font-size: 14px; font-weight: 750; color: var(--ink); }
#auth-form input { width: 100%; min-width: 0; min-height: 54px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 15px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
#auth-form input::placeholder { color: var(--muted); opacity: .9; }
#auth-form input:hover { border-color: var(--muted); }
#auth-form input:focus { border-color: var(--brand-accent-ink); outline: 3px solid color-mix(in srgb, var(--brand-accent) 24%, transparent); outline-offset: 1px; }
.password-wrap { position: relative; }
#auth-form .password-wrap input { padding-right: 105px; }
.password-wrap button { position: absolute; right: 4px; top: 4px; bottom: 4px; padding-inline: 12px; border: 0; border-radius: 5px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 650; cursor: pointer; }
.password-wrap button:hover { background: var(--soft); }
.auth-notice { font-size: 14px; line-height: 1.6; margin-top: 16px; overflow-wrap: anywhere; }
.auth-notice:empty { display: none; }
.auth-notice.error { color: var(--account-error); padding: 12px; border-radius: 7px; background: color-mix(in srgb, var(--account-error) 7%, transparent); }
.auth-notice.success { color: var(--account-success); }
.auth-notice.loading { color: var(--muted); }
.auth-submit { width: 100%; margin-top: 24px; min-height: 54px; }
.auth-footnote { display: flex; gap: 10px; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.7; }
.auth-footnote > span { color: var(--ink); font-size: 20px; }
.auth-editor-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-top: 14px; font-size: 14px; font-weight: 750; color: var(--ink); }
.auth-editor-link:hover { text-decoration: underline; }

.auth-inline-button { display: block; min-height: 44px; margin-top: 10px; padding: 8px 0; border: 0; background: none; color: var(--ink); text-align: left; font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.auth-inline-button:disabled { opacity: .55; cursor: wait; }
.account-details-form label { display: block; margin: 20px 0 8px; font-size: 14px; font-weight: 750; }
.account-details-form input { width: 100%; min-width: 0; min-height: 54px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
.account-details-form input:focus { outline: 3px solid color-mix(in srgb, var(--brand-accent) 24%, transparent); border-color: var(--brand-accent-ink); outline-offset: 1px; }
.account-details-form p, .profile-email-line { color: var(--muted); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.profile-setup-main { padding-block: 56px 80px; min-height: 75vh; }
.profile-setup-card { max-width: 660px; margin-inline: auto; padding: clamp(22px, 5vw, 48px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.profile-setup-card h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; }
.profile-name-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 520px) { .profile-name-fields { grid-template-columns: 1fr; gap: 0; } .profile-setup-main { padding-block: 24px 40px; } }

/* A collection is composed of whole images, including tall story exports. */
.dashboard-main { min-height: 70vh; padding-block: 60px 72px; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 44px; }
.dashboard-heading h1 { font-size: clamp(48px, 6vw, 82px); line-height: .99; font-weight: 800; margin-block: 18px 23px; }
.dashboard-heading p:last-child { color: var(--muted); font-size: 16px; line-height: 1.7; }
.dashboard-heading > .button { flex-shrink: 0; margin-bottom: 6px; }
.profile-panel { display: flex; align-items: center; gap: 23px; padding: 26px 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.profile-avatar { display: grid; place-items: center; width: 72px; height: 72px; flex: 0 0 72px; border-radius: 14px; background: var(--brand-accent); color: var(--brand-on-accent); font-size: 31px; font-weight: 850; }
.profile-details { flex: 1; min-width: 0; }
.profile-label { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; margin-bottom: 6px; }
.profile-details h2 { font-size: 23px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.profile-details p { color: var(--muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; margin-top: 3px; }
#profile-created { font-size: 12px; }
.profile-connection { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; padding: 8px 14px; border: 1px solid var(--line); border-radius: 30px; }
.profile-connection i { width: 6px; height: 6px; background: var(--account-success); border-radius: 50%; }
.dashboard-main[data-state="loading"] .profile-connection { visibility: hidden; }
.dashboard-cards { margin-top: 54px; }
.dashboard-section-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.dashboard-section-title h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; margin-top: 10px; font-weight: 800; }
.cards-count { color: var(--muted); font-size: 13px; white-space: nowrap; margin-bottom: 4px; }
.cards-count:empty { display: none; }
.collection-status { margin-top: 20px; font-size: 15px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.collection-status:empty { display: none; }
[data-state="error"] .collection-status { color: var(--account-error); padding: 14px 18px; background: color-mix(in srgb, var(--account-error) 6%, transparent); border-radius: 8px; }
.my-cards-grid, .collection-loading { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.my-cards-grid:empty { display: none; }
.my-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s, box-shadow .2s; }
.my-card:hover { transform: translateY(-4px); border-color: var(--muted); box-shadow: 0 14px 30px #18191b0b; }
.my-card-image-stage { position: relative; aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; padding: 25px; background: var(--soft); min-width: 0; }
.my-card-image-stage > img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px #18191b1a); }
.my-card-format { position: absolute; left: 14px; top: 14px; padding: 5px 8px; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 750; border: 1px solid var(--line); border-radius: 5px; }
.my-card-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 10px; padding: 21px; flex: 1; }
.my-card-body > strong { display: block; grid-column: 1 / -1; font-size: 18px; font-weight: 800; line-height: 1.35; letter-spacing: -.035em; overflow-wrap: anywhere; }
.my-card-price { font-size: 16px; line-height: 1.5; font-weight: 800; }
.my-card-arrow { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; font-size: 17px; }
.my-card:hover .my-card-arrow { background: var(--brand-accent); color: var(--brand-on-accent); border-color: var(--brand-accent); }
.my-card-date { grid-column: 1 / -1; color: var(--muted); font-size: 12px; margin-top: 4px; }
.card-skeleton { border: 1px solid var(--line); border-radius: 17px; background: var(--surface); overflow: hidden; padding-bottom: 22px; }
.card-skeleton > div { aspect-ratio: 4 / 5; background: var(--soft); }
.card-skeleton > i, .card-skeleton > span { display: block; height: 15px; width: 65%; border-radius: 4px; background: var(--soft); margin: 21px 21px 0; }
.card-skeleton > span { width: 36%; height: 12px; margin-top: 12px; }
.collection-empty { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 32px 40px; margin-top: 24px; }
.collection-empty h3 { font-size: clamp(28px, 3vw, 39px); line-height: 1.12; margin-block: 14px 17px; font-weight: 800; }
.collection-empty p { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 420px; margin-bottom: 24px; }
.collection-tip { display: flex; align-items: center; gap: 22px; margin-top: 46px; padding: 22px 26px; background: var(--soft); border-radius: 14px; }
.collection-tip p { flex: 1; max-width: 680px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.collection-tip > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--ink); font-weight: 750; white-space: nowrap; }
.collection-tip > a:hover { text-decoration: underline; }

/* Published images keep their native ratio inside a gallery-like dark frame. */
.shared-card-main { padding-block: 42px 76px; min-height: 70vh; }
.account-back-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-bottom: 28px; color: var(--muted); font-size: 14px; font-weight: 650; }
.account-back-link:hover { color: var(--ink); }
.shared-card-heading { margin-bottom: 34px; }
.shared-card-heading h1 { font-size: clamp(36px, 5.3vw, 68px); line-height: 1.08; font-weight: 800; max-width: 1000px; margin-top: 16px; overflow-wrap: anywhere; }
.shared-card-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; align-items: start; }
.shared-card-image { padding: 25px 29px 22px; border-radius: var(--brand-radius); margin: 0; background: var(--brand-night); color: #d6d7ef; min-width: 0; overflow: hidden; }
.shared-image-topline, .shared-card-image figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; line-height: 1.5; font-weight: 750; letter-spacing: .07em; }
.shared-image-topline > span:last-child { color: var(--brand-signal); font-size: 26px; line-height: 1; }
.shared-image-stage { display: flex; align-items: flex-start; justify-content: center; padding-block: 28px; }
.shared-image-stage > img { width: 100%; max-width: 460px; height: auto; display: block; border-radius: 3px; box-shadow: 0 14px 42px #00000055; }
.shared-card-image figcaption { padding-top: 19px; border-top: 1px solid #ffffff14; }
.shared-card-image figcaption > span:first-child { display: flex; align-items: center; gap: 7px; letter-spacing: 0; font-size: 11px; font-weight: 500; }
.shared-card-image figcaption i { width: 5px; height: 5px; border-radius: 2px; background: var(--brand-signal); }
.shared-card-details { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 31px; min-width: 0; }
.shared-details-topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.shared-card-seal { color: var(--brand-accent-ink); font-size: 35px; line-height: 1; }
.shared-card-details h2 { font-size: clamp(34px, 3.5vw, 48px); line-height: 1.08; font-weight: 800; margin-top: 25px; }
.shared-brand-row { margin-top: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.shared-brand-row > span, .shared-price-label { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.shared-card-brand { margin-top: 7px; color: var(--ink); font-weight: 750; font-size: 17px; overflow-wrap: anywhere; }
.shared-price-block { margin-top: 23px; }
.shared-card-price { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 13px; row-gap: 7px; margin-top: 9px; }
.shared-card-price > strong { font-size: clamp(28px, 3.1vw, 41px); line-height: 1.15; font-weight: 850; letter-spacing: -.055em; overflow-wrap: anywhere; }
.shared-card-price > span { font-size: 16px; color: var(--muted); text-decoration: line-through; }
.shared-card-price > span:empty { display: none; }
.shared-card-note { margin-block: 24px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.shared-card-actions { display: grid; gap: 10px; }
.shared-card-actions > .button { width: 100%; text-align: center; justify-content: center; }
.card-share-status { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.card-share-status:empty { display: none; }
.shared-create-note { display: flex; gap: 15px; align-items: center; border-top: 1px solid var(--line); padding-top: 23px; margin-top: 26px; }
.shared-create-note > span { width: 41px; height: 41px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); font-size: 25px; flex-shrink: 0; }
.shared-create-note p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.shared-create-note a { color: var(--ink); font-weight: 750; }
.shared-create-note a:hover { text-decoration: underline; }
.shared-card-loading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; }
.shared-card-loading > div { min-height: 550px; border-radius: 20px; background: var(--soft); }
.shared-card-loading > section { padding: 32px; border: 1px solid var(--line); border-radius: 20px; }
.shared-card-loading i, .shared-card-loading span { display: block; background: var(--soft); height: 38px; width: 85%; border-radius: 5px; margin-bottom: 15px; }
.shared-card-loading i:nth-child(2) { width: 62%; }
.shared-card-loading i:nth-child(3) { height: 18px; margin-top: 45px; }
.shared-card-loading span { width: 100%; height: 130px; margin-top: 40px; }
.shared-card-error { display: flex; align-items: center; gap: 35px; min-height: 300px; border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 45px; }
.card-error-mark { display: grid; place-items: center; width: 110px; height: 140px; flex: 0 0 110px; background: var(--brand-accent); color: var(--brand-on-accent); font-size: 72px; border-radius: 9px; transform: rotate(-6deg); }
.shared-card-error h2 { font-size: clamp(27px, 3vw, 39px); line-height: 1.12; font-weight: 800; }
.shared-card-error p { color: var(--muted); margin-top: 14px; line-height: 1.7; font-size: 16px; }
.shared-card-error > div > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

html[data-theme="dark"] .account-page { --account-error: #ffafa1; --account-success: #8ccca6; }
html[data-theme="dark"] .auth-shell { box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .card-skeleton > div, .shared-card-loading > div { background: linear-gradient(110deg, var(--soft) 20%, var(--surface) 38%, var(--soft) 56%); background-size: 220% 100%; animation: account-skeleton 2s ease-in-out infinite; }
  @keyframes account-card-float { 0%, 100% { transform: translateY(0) rotate(9deg); } 50% { transform: translateY(-9px) rotate(7deg); } }
  @keyframes account-skeleton { from { background-position: 100% 0; } to { background-position: -100% 0; } }
}
@media (max-width: 1050px) {
  .auth-intro { padding-inline: 28px; }
  .auth-card { padding-inline: 28px; }
  .profile-connection { display: none; }
  .my-cards-grid, .collection-loading { gap: 18px; }
  .my-card-body { padding: 17px; }
  .shared-card-details { padding: 25px; }
  .shared-card-layout, .shared-card-loading { gap: 22px; }
}
@media (max-width: 800px) {
  .auth-shell { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .auth-intro { padding: 28px 34px; }
  .auth-intro h1 { font-size: 49px; margin-top: 22px; }
  .auth-intro > p { max-width: 460px; }
  .auth-card { padding: 34px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-heading h1 { font-size: 64px; }
  .my-cards-grid, .collection-loading { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-loading > :last-child { display: none; }
  .collection-empty { padding: 24px; }
  .collection-tip { align-items: flex-start; flex-wrap: wrap; gap: 16px; }
  .collection-tip p { flex-basis: 100%; }
  .shared-card-layout, .shared-card-loading { grid-template-columns: 1fr; }
  .shared-card-details { padding: 30px; }
  .shared-card-loading > div { min-height: 450px; }
}
@media (max-width: 540px) {
  .auth-main { padding-block: 20px 44px; }
  .auth-shell { border-radius: 18px; }
  .auth-intro { padding: 16px 23px; }
  .auth-intro h1 { margin: 0; font-size: clamp(24px, 6.5vw, 34px); }
  .auth-card { padding: 25px 23px 27px; }
  .auth-tabs { margin-bottom: 18px; }
  .auth-card h2 { font-size: 31px; }
  .auth-subtitle { font-size: 14px; }
  #auth-form input { padding-inline: 12px; }
  #auth-form .password-wrap input { padding-right: 93px; }
  .password-wrap button { padding-inline: 9px; font-size: 13px; }
  .auth-editor-link { font-size: 13px; }
  .dashboard-main { padding-block: 36px 48px; }
  .dashboard-heading { margin-bottom: 28px; gap: 23px; }
  .dashboard-heading h1 { font-size: clamp(46px, 12vw, 58px); }
  .dashboard-heading p:last-child { font-size: 15px; }
  .profile-panel { padding: 20px; gap: 15px; flex-wrap: wrap; border-radius: 14px; }
  .profile-avatar { width: 54px; height: 54px; flex-basis: 54px; font-size: 26px; border-radius: 11px; }
  .profile-details { flex-basis: calc(100% - 69px); }
  .profile-details h2 { font-size: 20px; }
  .profile-details p { font-size: 13px; }
  .profile-panel > .button { width: 100%; margin-top: 3px; }
  .dashboard-cards { margin-top: 37px; }
  .dashboard-section-title { display: block; }
  .dashboard-section-title h2 { font-size: 29px; }
  .cards-count { display: block; margin-top: 13px; }
  .my-cards-grid, .collection-loading { grid-template-columns: 1fr; }
  .collection-loading > :nth-child(2) { display: none; }
  .my-card-image-stage { padding: 24px; }
  .my-card-body { padding: 21px; }
  .collection-empty { padding: 24px; }
  .collection-empty h3 { font-size: 29px; }
  .collection-empty p { font-size: 15px; }
  .collection-tip { padding: 22px; }
  .shared-card-main { padding-block: 25px 48px; }
  .account-back-link { margin-bottom: 21px; }
  .shared-card-heading h1 { font-size: clamp(34px, 10vw, 46px); }
  .shared-card-heading .account-kicker { font-size: 10px; }
  .shared-card-image { padding: 20px 19px; border-radius: 15px; }
  .shared-image-stage { padding-block: 23px; }
  .shared-image-topline { font-size: 9px; }
  .shared-card-image figcaption > span:last-child { display: none; }
  .shared-card-details { padding: 25px 22px; border-radius: 15px; }
  .shared-card-details h2 { font-size: 39px; }
  .shared-card-price > strong { font-size: 31px; }
  .shared-card-actions > .button { font-size: 14px; padding-inline: 12px; }
  .shared-card-error { flex-direction: column; align-items: flex-start; padding: 25px; gap: 28px; }
  .card-error-mark { width: 70px; height: 90px; flex-basis: 90px; font-size: 47px; }
  .shared-card-error > div > div { flex-direction: column; }
}

.publication-actions { display:flex; gap:12px; padding:12px; flex-wrap:wrap; align-items:center; }
.publication-actions button,.publication-actions a { min-height:44px; padding:8px; }
.shared-card-main [hidden] { display:none!important; }
.share-preview-image { max-width:100%; height:auto; display:block; border-radius:16px; }
.card-qr-box { margin-top:16px; padding:16px; border:1px solid var(--line); border-radius:14px; background:var(--paper); display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.card-qr-box svg { display:block; width:168px; height:168px; background:#fff; padding:8px; border-radius:10px; border:1px solid var(--line); }
#load-more-cards { margin-top:20px; }

@media (max-width: 900px) {
  .auth-card-example { display: none; }
  .auth-intro h1 { max-width: none; }
}
html[data-theme=dark] .account-page {
  --account-error: #ffb5a7;
  --account-success: #aee7bb;
}

/* Account surfaces v4: Double-Bezel obsidian/alabaster rhythm, zero raw underlines. */
.product-ui.account-page .container { width: min(1280px, calc(100% - 64px)); }
.product-ui.auth-page {
  background-image:
    radial-gradient(ellipse at 72% 32%, rgba(234, 120, 78, .085), transparent 52%),
    radial-gradient(ellipse at 18% 72%, rgba(214, 148, 62, .055), transparent 50%);
}
.product-ui.auth-page .auth-main { padding-block: 56px 84px; }
.product-ui.auth-page .auth-shell {
  display: grid; grid-template-columns: minmax(0, 1fr) 468px; align-items: start;
  gap: clamp(48px, 7.5vw, 120px); max-width: 1120px; margin: auto;
  border: 0; border-radius: 0; background: transparent; overflow: visible;
}
.product-ui.auth-page .auth-intro { padding: 18px 0 0; position: relative; background: transparent; }
.auth-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ui-accent) 26%, var(--ui-edge));
  background: color-mix(in srgb, var(--brand-accent-soft) 72%, transparent);
  color: var(--brand-accent-ink); font-size: 12px; font-weight: 600;
}
.auth-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 12px rgba(234, 120, 78, .48);
}
.product-ui.auth-page .auth-intro h1 {
  font-size: clamp(44px, 4.4vw, 64px); line-height: 1.03; margin: 22px 0 18px;
  font-weight: 680; letter-spacing: -.052em; max-width: none;
}
.product-ui.auth-page .auth-intro > p {
  font-size: 16px; line-height: 1.65; color: var(--brand-muted); max-width: 38ch;
}
.auth-preview-stack { position: relative; width: 244px; margin: 34px 0 42px 14px; isolation: isolate; }
.auth-preview-sheet {
  position: absolute; inset: 8px -14px -6px 12px; border: 1px solid var(--ui-edge-strong);
  background: linear-gradient(145deg, var(--ui-panel), var(--brand-surface));
  border-radius: 18px; transform: rotate(6deg); z-index: -1;
}
.product-ui.auth-page .auth-card-example {
  display: block; width: 244px; margin: 0; transform: rotate(-3deg);
  border: 1px solid var(--ui-edge-strong); border-radius: 18px; padding: 7px;
  background: var(--brand-surface); box-shadow: var(--ui-shadow);
}
.product-ui.auth-page .auth-card-example > div { overflow: hidden; border-radius: 12px; }
.product-ui.auth-page .auth-card-example canvas { width: 100%; height: auto; }
.product-ui.auth-page .auth-card-example figcaption {
  text-align: center; padding: 9px 6px 4px; color: var(--brand-muted); font-size: 11px; font-weight: 500;
}
/* Seated cleanly below-right so it never obscures the card price badge */
.auth-preview-label {
  display: inline-flex; align-items: center; position: absolute; left: 52%; bottom: -20px;
  padding: 10px 14px; width: 212px; gap: 10px;
  border: 1px solid var(--ui-edge-strong); background: var(--ui-glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 14px; box-shadow: var(--ui-shadow);
  font-size: 12px; font-weight: 550; line-height: 1.4; color: var(--brand-ink);
}
.auth-preview-label svg {
  width: 26px; height: 26px; flex: none; color: var(--brand-accent-ink);
  border-radius: 50%; background: var(--brand-accent-soft); padding: 4px;
}
.auth-benefits {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 12px;
  color: var(--brand-muted); font-size: 13px;
}
.auth-benefits li { display: flex; align-items: center; gap: 10px; }
.auth-benefits li::before { content: ''; width: 5px; height: 5px; background: var(--brand-accent-ink); border-radius: 50%; }

/* Machined Double-Bezel Auth Card */
.product-ui.auth-page .auth-card {
  position: relative; padding: 34px; border-radius: 28px;
  border: 1px solid var(--ui-edge-strong);
  background: var(--ui-glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--ui-shadow); margin: 0; overflow: hidden;
}
.product-ui.auth-page .auth-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(234, 120, 78, .09), transparent 64%);
  z-index: -1; pointer-events: none;
}
.product-ui.auth-page .auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  background: var(--ui-input); border: 1px solid var(--ui-edge); border-radius: 14px; margin-bottom: 28px;
}
.product-ui.auth-page .auth-tabs button {
  min-height: 42px; font-size: 13px; font-weight: 600; border: 0; border-radius: 10px;
  color: var(--brand-muted); background: transparent; box-shadow: none;
}
.product-ui.auth-page .auth-tabs button[aria-selected=true] { color: var(--brand-accent-ink); background: var(--brand-accent-soft); }
.product-ui.auth-page .auth-tabs.segmented-enhanced button[aria-selected=true] { background: transparent; }
.product-ui.auth-page .auth-card h2 { font-size: 30px; line-height: 1.12; margin-bottom: 10px; }
.product-ui.auth-page .auth-subtitle { color: var(--brand-muted); font-size: 14px; line-height: 1.6; margin-bottom: 24px; }
.product-ui.auth-page .auth-google {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px;
  background: var(--brand-surface); border: 1px solid var(--ui-edge-strong); color: var(--brand-ink);
  box-shadow: var(--ui-shadow-sm); border-radius: 999px; font-size: 14px; font-weight: 600;
}
.product-ui.auth-page .auth-google:hover { background: var(--brand-soft); border-color: color-mix(in srgb, var(--ui-accent) 40%, var(--brand-line)); }
.product-ui.auth-page .auth-google-note { color: var(--brand-muted); font-size: 12px; line-height: 1.55; margin-top: 10px; text-align: center; }
.product-ui.auth-page .auth-divider { margin: 24px 0; color: var(--brand-muted); font-size: 12px; }
.product-ui.auth-page .auth-divider::before, .product-ui.auth-page .auth-divider::after { background: var(--brand-line); }
.product-ui.auth-page #auth-form label, .product-ui.auth-page #email-code-form label {
  display: block; margin: 16px 0 7px; font-size: 13px; font-weight: 600; color: var(--brand-ink);
}
.product-ui.auth-page #auth-form input, .product-ui.auth-page #email-code-form input {
  width: 100%; min-height: 48px; font-size: 14px; border-radius: 12px;
}
.product-ui.auth-page .password-wrap { position: relative; }
.product-ui.auth-page .password-wrap input { padding-right: 96px; }
.product-ui.auth-page .password-wrap button {
  position: absolute; inset: 6px 6px 6px auto; min-height: 36px; padding: 6px 12px;
  background: var(--ui-panel); color: var(--brand-muted); font-size: 12px; font-weight: 550; border-radius: 8px;
}
.product-ui.auth-page .password-wrap button:hover { color: var(--brand-ink); }
.product-ui.auth-page .auth-submit { width: 100%; min-height: 50px; margin-top: 22px; border-radius: 999px; font-size: 14px; }
.product-ui.auth-page .auth-inline-button {
  background: transparent; border: 0; box-shadow: none; padding: 6px 0; min-height: 40px;
  font-size: 13px; font-weight: 550; color: var(--brand-accent-ink); margin-top: 10px; line-height: 1.5;
}
.product-ui.auth-page .auth-inline-button:hover { background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.product-ui.auth-page .auth-footnote {
  font-size: 12px; color: var(--brand-muted); line-height: 1.6;
  margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--ui-edge);
}
.product-ui.auth-page .auth-editor-link {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 600; color: var(--brand-ink); padding-top: 16px;
}
.product-ui.auth-page .auth-editor-link:hover { color: var(--brand-accent-ink); }
.product-ui.auth-page .auth-notice:not(:empty) {
  margin-top: 14px; padding: 12px 14px; background: var(--ui-panel);
  border: 1px solid var(--brand-line); border-radius: 12px; font-size: 13px; line-height: 1.55;
}
.product-ui.auth-page .auth-notice.error { color: var(--ui-danger); border-color: color-mix(in srgb, var(--ui-danger) 35%, transparent); background: color-mix(in srgb, var(--ui-danger) 7%, var(--brand-surface)); }
.product-ui.auth-page .auth-notice.success { color: var(--ui-success); border-color: color-mix(in srgb, var(--ui-success) 35%, transparent); background: color-mix(in srgb, var(--ui-success) 7%, var(--brand-surface)); }
.product-ui.auth-page .field-error { margin: 7px 0 0; color: var(--ui-danger); font-size: 12px; line-height: 1.5; }
.product-ui.auth-page .auth-card[aria-busy=true] { border-color: var(--brand-accent-ink); }
.product-ui.auth-page .auth-notice.loading { color: var(--brand-accent-ink); }
.product-ui.auth-page #code-email { overflow-wrap: anywhere; }

/* Dashboard Workspace — Zero Accidental Underlines, Balanced Heights & Crisp Cards */
.product-ui.dashboard-page .dashboard-main { padding-block: 44px 72px; }
.product-ui.dashboard-page .dashboard-heading {
  display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin: 0 0 32px;
}
.product-ui.dashboard-page .dashboard-heading h1 { font-size: clamp(34px, 3.6vw, 50px); line-height: 1.06; margin: 10px 0 12px; }
.product-ui.dashboard-page .dashboard-heading h1 span { color: var(--brand-accent-ink); }
.product-ui.dashboard-page .dashboard-heading p:last-child { color: var(--brand-muted); font-size: 15px; line-height: 1.6; }
.collection-create { display: flex; flex-wrap: wrap; gap: 10px; }
.collection-create .button { border-radius: 999px; font-size: 13px; padding: 11px 20px; }

.dashboard-overview {
  display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 20px; margin-bottom: 24px; align-items: stretch;
}
.product-ui.dashboard-page :is(.profile-panel, .billing-panel, .workflow-panel) {
  padding: 26px; background: var(--brand-surface);
  border: 1px solid var(--ui-edge); border-radius: 22px; margin: 0;
  box-shadow: var(--ui-shadow-sm); min-width: 0; color: var(--brand-ink);
}
.product-ui.dashboard-page .profile-panel {
  display: grid; grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto; column-gap: 16px; row-gap: 18px; align-items: start;
}
.product-ui.dashboard-page .profile-avatar {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(145deg, var(--brand-accent-soft), var(--ui-panel));
  color: var(--brand-accent-ink); border: 1px solid color-mix(in srgb, var(--ui-accent) 26%, transparent);
  font-size: 24px; font-weight: 700; box-shadow: inset 0 1px 0 var(--ui-highlight);
}
.product-ui.dashboard-page .profile-label { font-size: 11px; font-weight: 600; color: var(--brand-muted); letter-spacing: .04em; text-transform: uppercase; }
.product-ui.dashboard-page .profile-details h2 { font-size: 20px; margin: 5px 0 6px; overflow-wrap: anywhere; }
.product-ui.dashboard-page .profile-details p { color: var(--brand-muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.product-ui.dashboard-page .profile-connection {
  grid-column: 1 / -1; align-self: end; font-size: 12px; color: var(--brand-muted);
  border: 0; border-top: 1px solid var(--ui-edge); border-radius: 0; background: transparent;
  padding: 16px 0 0; display: flex; align-items: center; gap: 8px;
}
.profile-connection i { width: 6px; height: 6px; background: var(--ui-success); border-radius: 50%; box-shadow: 0 0 8px color-mix(in srgb, var(--ui-success) 55%, transparent); }
.product-ui.dashboard-page .profile-panel > .button {
  font-size: 12px; font-weight: 600; min-height: 40px; padding: 9px 16px;
  width: max-content; max-width: 100%; border-radius: 999px;
}
.product-ui.dashboard-page .profile-panel > a { grid-column: 1 / -1; grid-row: 3; }
.product-ui.dashboard-page #logout-button { grid-column: 2; grid-row: 3; justify-self: end; }

.collection-layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 20px; align-items: stretch; }
.collection-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.product-ui.dashboard-page .collection-section-heading h2 { font-size: 21px; margin: 6px 0 0; line-height: 1.2; }
.collection-icon { width: 24px; height: 24px; color: var(--brand-muted); }
.product-ui.dashboard-page .collection-section-heading > .button {
  font-size: 12px; font-weight: 600; min-height: 36px; padding: 7px 14px; flex: none; border-radius: 999px;
}
.collection-description { color: var(--brand-muted); font-size: 13px; line-height: 1.6; margin-bottom: 16px; max-width: 64ch; }
.collection-toolbar { display: flex; align-items: flex-end; gap: 12px; }
.collection-search { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.collection-search label { color: var(--brand-muted); font-size: 12px; font-weight: 550; }
.product-ui.dashboard-page .collection-search input { width: 100%; margin: 0; font-size: 13px; }
.archive-toggle {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--brand-line);
  border-radius: 11px; padding: 10px 14px; min-height: 42px; font-size: 12px; font-weight: 550;
  background: var(--ui-input); white-space: nowrap; cursor: pointer;
}
.product-ui.dashboard-page :is(#projects-status, #local-project-status) {
  font-size: 12px; line-height: 1.6; color: var(--brand-muted); margin: 14px 0;
}

/* Override studio-workflow.css accidental underline on dashboard project links/buttons */
.product-ui.dashboard-page .dashboard-projects a { text-decoration: none; }
.product-ui.dashboard-page .dashboard-projects a:hover:not(.button) strong { color: var(--brand-accent-ink); }
.product-ui.dashboard-page .project-empty-state a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ui-accent) 32%, transparent);
  background: var(--brand-accent-soft); color: var(--brand-accent-ink); font-size: 12px; font-weight: 600;
}
.product-ui.dashboard-page .project-empty-state a:hover { background: color-mix(in srgb, var(--brand-accent-soft) 75%, var(--ui-accent)); }

.product-ui.dashboard-page :is(.workflow-project-list, .local-project-list) {
  display: grid; grid-template-columns: 1fr; gap: 10px; padding: 0; margin: 0; list-style: none;
}
.product-ui.dashboard-page :is(.workflow-project-list, .local-project-list) > li {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px 14px; align-items: center;
  padding: 12px 14px; background: var(--ui-input); border: 1px solid var(--ui-edge);
  border-radius: 14px; min-width: 0; margin: 0;
  transition: border-color 200ms var(--ui-ease), background-color 200ms var(--ui-ease);
}
.product-ui.dashboard-page :is(.workflow-project-list, .local-project-list) > li:hover {
  border-color: color-mix(in srgb, var(--ui-accent) 32%, var(--brand-line));
}
.product-ui.dashboard-page :is(.workflow-project-list, .local-project-list) img {
  width: 64px; height: 76px; object-fit: cover; border-radius: 9px;
  border: 1px solid var(--ui-edge); margin: 0; grid-row: 1 / 3;
}
.project-preview-placeholder {
  display: grid; place-items: center; width: 64px; height: 76px; grid-row: 1 / 3;
  border: 1px solid var(--ui-edge); border-radius: 9px;
  background: radial-gradient(ellipse at 40% 0%, rgba(234, 120, 78, .12), transparent 75%), var(--ui-panel);
}
.project-preview-placeholder svg { width: 22px; height: 22px; color: var(--brand-muted); }
.product-ui.dashboard-page :is(.workflow-project-list, .local-project-list) > li > :is(span, a) {
  font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; color: var(--brand-ink); min-width: 0;
}
.product-ui.dashboard-page .project-card-copy { display: grid; gap: 4px; min-width: 0; }
.product-ui.dashboard-page .project-card-copy strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; transition: color 180ms var(--ui-ease); }
.product-ui.dashboard-page .project-card-copy time { color: var(--brand-muted); font: 500 11px/1.4 var(--ui-mono); }

.product-ui.dashboard-page .project-card-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.product-ui.dashboard-page .project-card-actions .button {
  padding: 6px 12px; min-height: 34px; font-size: 12px; font-weight: 600; border-radius: 999px;
}
.product-ui.dashboard-page .project-card-actions a.button {
  background: var(--brand-accent-soft); color: var(--brand-accent-ink);
  border-color: color-mix(in srgb, var(--ui-accent) 30%, transparent);
}
.product-ui.dashboard-page .local-project-list > li > .studio-small-button {
  grid-column: 2; width: max-content; min-height: 34px; padding: 6px 13px; font-size: 12px; font-weight: 600; border-radius: 999px;
}

.project-empty-state {
  min-height: 158px; display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 12px; border: 1px dashed var(--brand-line); border-radius: 16px;
  background: radial-gradient(ellipse at 50% 0%, rgba(234, 120, 78, .07), transparent 72%), var(--ui-input);
  padding: 24px; text-align: center; color: var(--brand-muted); font-size: 13px;
}
.project-empty-state svg { width: 28px; height: 28px; color: var(--brand-accent-ink); }
.project-skeletons { display: grid; grid-template-columns: 1fr; gap: 10px; }
.project-skeletons > span {
  display: block; height: 96px; border: 1px solid var(--ui-edge); border-radius: 14px;
  background: linear-gradient(100deg, var(--ui-panel) 20%, var(--brand-soft) 45%, var(--ui-panel) 65%);
  background-size: 240% 100%; animation: collection-shimmer 1.8s ease-in-out infinite;
}

/* Published Cards Grid — Generous Proportions & Clean Action Bar */
.product-ui.dashboard-page .dashboard-cards { margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--ui-edge); }
.product-ui.dashboard-page .dashboard-section-title { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.product-ui.dashboard-page .dashboard-section-title h2 { font-size: 26px; }
.product-ui.dashboard-page .cards-count {
  font: 600 12px/1 var(--ui-mono); padding: 6px 11px; border: 1px solid var(--ui-edge);
  border-radius: 999px; background: var(--ui-panel); color: var(--brand-accent-ink); margin-top: 0;
}
.product-ui.dashboard-page .collection-status { font-size: 13px; color: var(--brand-muted); line-height: 1.65; margin: 10px 0 20px; }
.product-ui.dashboard-page :is(.my-cards-grid, .collection-loading) {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(276px, 1fr)); gap: 20px;
}
.product-ui.dashboard-page .my-cards-grid > article {
  display: flex; flex-direction: column;
  background: var(--brand-surface); border: 1px solid var(--ui-edge); border-radius: 20px;
  overflow: hidden; box-shadow: var(--ui-shadow-sm);
  transition: transform 220ms var(--ui-ease), border-color 220ms var(--ui-ease); min-width: 0;
}
.product-ui.dashboard-page .my-cards-grid > article:hover {
  transform: translateY(-3px); border-color: color-mix(in srgb, var(--ui-accent) 38%, var(--brand-line));
}
.product-ui.dashboard-page .my-card { border: 0; border-radius: 0; box-shadow: none; background: transparent; flex: 1; }
.product-ui.dashboard-page .my-card-image-stage {
  height: auto; aspect-ratio: 1.18; padding: 18px;
  background: radial-gradient(ellipse at 40% 0%, rgba(234, 120, 78, .09), transparent 72%), var(--ui-panel);
}
.product-ui.dashboard-page .my-card-image-stage img {
  position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px);
  object-fit: contain; max-height: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .24));
}
.product-ui.dashboard-page .my-card-body { padding: 18px 18px 14px; }
.product-ui.dashboard-page .my-card-body :is(h3, strong) { font-size: 15px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.product-ui.dashboard-page .my-card-price { color: var(--brand-accent-ink); font-size: 15px; font-weight: 650; }
.product-ui.dashboard-page .my-card-date { font-size: 11px; color: var(--brand-muted); }
.product-ui.dashboard-page .my-card-format {
  background: var(--ui-glass); color: var(--brand-ink); border: 1px solid var(--ui-edge-strong);
  font: 600 10px/1 var(--ui-mono); padding: 6px 9px; border-radius: 999px;
}
.product-ui.dashboard-page .publication-actions {
  display: flex; gap: 8px; padding: 0 16px 16px; margin-top: auto;
}
.product-ui.dashboard-page .publication-actions :is(a, button) {
  flex: 1 1 auto; padding: 8px 12px; min-height: 38px; font-size: 12px; font-weight: 600; border-radius: 999px;
}
.product-ui.dashboard-page .card-skeleton { padding: 14px; border: 1px solid var(--ui-edge); border-radius: 18px; background: var(--brand-surface); height: 240px; }
.product-ui.dashboard-page .card-skeleton > div { height: 148px; border-radius: 10px; background: var(--ui-panel); }
.product-ui.dashboard-page .card-skeleton :is(i, span) { background: var(--ui-panel); height: 11px; margin-top: 14px; border-radius: 4px; }
.product-ui.dashboard-page .collection-empty {
  display: flex; align-items: center; justify-content: center; gap: 28px; padding: 36px; min-height: 210px;
  border: 1px dashed var(--brand-line); border-radius: 20px;
  background: radial-gradient(ellipse at 20% 50%, rgba(234, 120, 78, .07), transparent 65%), var(--brand-surface);
}
.empty-collection-icon {
  width: 64px; height: 64px; color: var(--brand-accent-ink); flex: none;
  padding: 10px; border-radius: 18px; background: var(--brand-accent-soft);
}
.product-ui.dashboard-page .collection-empty h3 { font-size: 21px; margin-bottom: 10px; }
.product-ui.dashboard-page .collection-empty p { font-size: 14px; line-height: 1.6; color: var(--brand-muted); margin-bottom: 18px; max-width: 56ch; }
.product-ui.dashboard-page .collection-empty .button { font-size: 13px; min-height: 42px; padding-inline: 20px; }
.product-ui.dashboard-page .collection-tip {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 22px; border: 1px solid var(--ui-edge); border-radius: 16px;
  background: var(--brand-surface); margin-top: 28px; color: var(--brand-muted); font-size: 13px;
}
.product-ui.dashboard-page .collection-tip a { color: var(--brand-accent-ink); font-weight: 600; }

/* Feedback surfaces */
.product-ui.dashboard-page [data-state=error][role=status] {
  color: var(--ui-danger); padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--ui-danger) 32%, transparent);
  border-radius: 12px; background: color-mix(in srgb, var(--ui-danger) 6%, var(--brand-surface));
}
.product-ui.dashboard-page .profile-panel[aria-busy=true] .profile-details { opacity: .6; }
.product-ui.dashboard-page .profile-panel[aria-busy=true] .profile-details::after {
  content: ''; display: block; width: 80%; height: 12px; margin-top: 12px; border-radius: 5px; background: var(--ui-panel);
}
.product-ui.dashboard-page .project-card-actions .button-danger { color: var(--ui-danger); }
.product-ui.dashboard-page #dashboard-retry { margin-bottom: 18px; }

@keyframes collection-shimmer { to { background-position: -240% 0; } }

@media (max-width: 1000px) {
  .product-ui.auth-page .auth-shell { gap: 40px; grid-template-columns: minmax(0, 1fr) 400px; }
  .auth-preview-label { left: 26%; bottom: -22px; }
  .auth-preview-stack { margin-left: 0; width: 210px; }
  .product-ui.auth-page .auth-card-example { width: 210px; }
  .dashboard-overview { grid-template-columns: 1fr 1.15fr; gap: 16px; }
  .collection-layout { grid-template-columns: 1fr; }
  .product-ui.dashboard-page .profile-panel > a { grid-row: auto; }
  .product-ui.dashboard-page #logout-button { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
}
@media (max-width: 800px) {
  .product-ui.auth-page .auth-shell { grid-template-columns: minmax(0, 468px); justify-content: center; gap: 28px; }
  .auth-preview-stack, .auth-benefits { display: none; }
}
@media (max-width: 760px) {
  .product-ui.account-page .container { width: calc(100% - 32px); }
  .product-ui.auth-page .auth-main { padding-block: 28px 48px; }
  .product-ui.auth-page .auth-intro { padding: 8px 4px 0; }
  .product-ui.auth-page .auth-intro h1 { font-size: 40px; margin: 16px 0; }
  .product-ui.auth-page .auth-intro h1 br { display: none; }
  .product-ui.auth-page .auth-intro > p { font-size: 14px; max-width: 48ch; }
  .product-ui.auth-page .auth-card { padding: 26px; }
  .product-ui.auth-page :is(#auth-form, #email-code-form) input { font-size: 16px; }
  .product-ui.auth-page .auth-tabs button { min-height: 44px; font-size: 13px; }
  .product-ui.auth-page .password-wrap button { min-height: 36px; font-size: 12px; }
  .product-ui.auth-page :is(.auth-inline-button, .auth-editor-link) { font-size: 13px; }
  .product-ui.dashboard-page .dashboard-main { padding-top: 28px; }
  .product-ui.dashboard-page .dashboard-heading { display: block; }
  .collection-create { margin-top: 20px; }
  .dashboard-overview { grid-template-columns: 1fr; }
  .product-ui.dashboard-page .profile-panel > a { grid-column: 1 / -1; grid-row: 3; }
  .product-ui.dashboard-page #logout-button { grid-column: 2; grid-row: 3; justify-self: end; }
  .product-ui.dashboard-page .collection-search input { min-height: 44px; font-size: 16px; }
  .product-ui.dashboard-page :is(.project-card-actions .button, .local-project-list > li > .studio-small-button, .publication-actions button, .publication-actions a, .profile-panel > .button, .collection-section-heading > .button) { min-height: 42px; font-size: 12px; }
  .product-ui.dashboard-page .archive-toggle { min-height: 44px; font-size: 12px; }
}
@media (max-width: 480px) {
  .product-ui.auth-page .auth-card { padding: 22px; border-radius: 22px; }
  .product-ui.auth-page .auth-intro h1 { font-size: 36px; }
  .product-ui.dashboard-page :is(.profile-panel, .billing-panel, .workflow-panel) { padding: 20px; border-radius: 18px; }
  .product-ui.dashboard-page .collection-section-heading { align-items: flex-start; gap: 10px; }
  .product-ui.dashboard-page .collection-section-heading h2 { font-size: 19px; }
  .product-ui.dashboard-page .collection-empty { flex-direction: column; align-items: flex-start; padding: 24px; gap: 20px; }
  .product-ui.dashboard-page :is(.my-cards-grid, .collection-loading) { grid-template-columns: minmax(0, 1fr); }
  .product-ui.dashboard-page .my-card-image-stage { aspect-ratio: 1.45; }
  .product-ui.dashboard-page .dashboard-section-title h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-skeletons > span { animation: none; }
  .product-ui.dashboard-page .my-cards-grid > article:hover { transform: none; }
}
