.auth-page {
  min-height: 64vh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding-block: clamp(32px, 8vw, 96px);
}

.auth-card {
  width: min(100%, 450px);
  padding: clamp(22px, 6vw, 40px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: radial-gradient(ellipse at top right, #8060c51a, transparent 65%), var(--panel);
  box-shadow: 0 24px 64px #0004;
}

.auth-back { display: inline-block; color: var(--muted); margin-bottom: 22px; }
.auth-card h1 { margin: 0 0 10px; font-size: clamp(28px, 6vw, 38px); line-height: 1.12; letter-spacing: -.04em; }
.auth-card p { line-height: 1.55; overflow-wrap: anywhere; }
.auth-description { margin: 0 0 24px; color: var(--muted); }
.auth-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #747775;
  border-radius: 8px;
  background: #fff;
  color: #1f1f1f;
  font: 500 14px/20px 'Google Sans', 'Segoe UI', sans-serif;
}
.auth-google:hover { background: #f3f6fc; }
.auth-google img { width: 18px; height: 18px; flex: none; }
.auth-switch { padding-top: 18px; margin: 20px 0 0; border-top: 1px solid var(--line); color: var(--muted); }
.auth-switch a, .auth-legal a { text-decoration: underline; text-underline-offset: 3px; color: var(--text); }
.auth-legal { color: var(--muted); font-size: 13px; }
.account-id { overflow-wrap: anywhere; user-select: all; }
.auth-status { color: #e9c6f5; }
.auth-card .actions { align-items: center; }
.auth-card details { margin-top: 24px; color: var(--muted); }

.account-shell {
  width: min(100%, 760px);
  margin-inline: auto;
  padding: clamp(16px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--text);
}
.account-modal {
  width: min(calc(100% - 24px), 760px);
  max-height: min(calc(100dvh - 28px), 900px);
  overflow: auto;
}
.account-modal::backdrop { background: #08060cc7; }
.account-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.account-panel-head :is(h1,h2) { margin: 0; font-size: clamp(23px, 5vw, 29px); letter-spacing: -.025em; }
.account-close, .account-pencil { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; font-size: 23px; }
.account-profile { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.account-banner { position: relative; height: clamp(130px, 25vw, 174px); background-image: var(--profile-gradient, var(--profile-preset, linear-gradient(125deg, #42304f, #77527d 62%, #544074))); }
.account-banner[data-theme-name="ember"] { --profile-preset: linear-gradient(115deg, #544052, #972f38); }
.account-banner[data-theme-name="ocean"] { --profile-preset: linear-gradient(115deg, #213552, #316e81); }
.account-banner[data-theme-name="forest"] { --profile-preset: linear-gradient(115deg, #253936, #426347); }
.account-banner-animated { background-size: 170% 170%; animation: profile-gradient-pan 7s ease-in-out infinite alternate; }
@keyframes profile-gradient-pan {
  from { background-position: 8% 12%; }
  to { background-position: 92% 88%; }
}
@media (prefers-reduced-motion: reduce) {
  .account-banner-animated { background-size: auto; animation: none; }
}
.profile-gradient-fields, .sponsor-settings { display: grid; gap: 12px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.profile-gradient-fields legend, .sponsor-settings legend { padding-inline: 6px; font-weight: 700; }
.profile-gradient-fields input[type="color"] { min-height: 42px; padding: 5px; cursor: pointer; }
.profile-gradient-fields input[type="range"] { accent-color: var(--accent); }
.profile-gradient-fields p { margin: 0; font-size: .875rem; }
.auth-card:has(.profile-gradient-fields:focus-within) .account-editor-preview .account-banner-media { visibility: hidden; }
.account-pencil { position: absolute; top: 10px; right: 10px; }
.account-avatar {
  position: absolute; left: 18px; bottom: -33px;
  display: grid; place-items: center; width: clamp(78px, 15vw, 100px); aspect-ratio: 1;
  border: 4px solid var(--bg); border-radius: 50%;
  background: #342847; color: var(--accent); font-size: clamp(30px, 7vw, 42px); font-weight: 750;
}
.account-profile-meta { padding: 47px 18px 17px; overflow-wrap: anywhere; }
.account-profile-meta strong { font-size: clamp(18px, 4vw, 23px); }
.account-profile-meta .muted { font-size: 13px; }
.account-bio { margin: 8px 0 0; white-space: pre-wrap; }
.account-actions { margin-block: 13px 18px; }
.account-collections { padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; }
.account-section-heading { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.account-section-heading h3 { margin: 0; }
.account-folder-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: 10px; }
.account-folder {
  display: grid; align-content: start; gap: 4px; padding: 12px;
  background: var(--panel); border-radius: 12px; border: 1px solid var(--line); overflow-wrap: anywhere;
}
.account-folder:hover { border-color: var(--accent); }
.account-folder-icons { display: flex; align-items: center; padding-left: 4px; margin: 2px 0 8px; }
.account-folder-icons span {
  display: grid; place-items: center; width: 31px; height: 31px;
  border-radius: 7px; background: #bef36a; color: #233617; border: 1px solid var(--panel);
}
.account-folder-icons span:first-child { transform: rotate(-9deg); z-index: 1; }
.account-folder-icons span + span { margin-left: -9px; }
.account-folder-icons .folder-empty { transform: none; background: #352b47; color: var(--accent); }
.account-section { padding-block: 12px; border-bottom: 1px solid var(--line); }
.account-collections + .account-section { border-top: 1px solid var(--line); margin-top: 16px; }
.account-section[open] > summary { margin-bottom: 12px; }
.account-section + form { margin-top: 16px; }
.account-history { list-style: none; padding: 0; margin: 0; }
.account-history li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding-block: 6px; }
.account-history time { color: var(--muted); }
.account-editor-preview { margin-block: 16px; }
.account-editor-preview .account-pencil { display: none; }
.site-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.site-page > main { width: 100%; margin-block: 0; }
.store-footer { margin-top: auto; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); font-size: clamp(11px, 2.9vw, 13px); }
.store-footer-scroll { overflow-x: auto; }
.store-footer-links {
  display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: clamp(6px, 2.3vw, 22px);
  width: max-content; min-width: 100%; margin: 0; padding-inline: 10px; white-space: nowrap;
}
.store-footer-links a { display: inline-flex; align-items: center; min-height: 34px; outline-offset: -2px; }
.store-footer a:hover { color: var(--accent); text-decoration: underline; }
.header-bell { position: relative; display: inline-grid; place-items: center; width: 42px; min-height: 42px; padding: 0; }
.header-bell.has-unread { border-color: var(--accent); color: var(--accent); }
.header-bell-badge {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding-inline: 4px;
  border: 2px solid var(--bg); border-radius: 999px; background: var(--accent); color: var(--ink);
  text-align: center; font-size: 10px; font-weight: 800; line-height: 15px; font-variant-numeric: tabular-nums;
}
.header-bell-badge[hidden] { display: none; }
.store-footer:has(+ .sponsor-banner:not([hidden])) { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
.sponsor-banner {
  position: fixed; z-index: 7; inset-inline: 10px; bottom: max(8px, env(safe-area-inset-bottom));
  display: flex; align-items: center; width: min(610px, calc(100% - 20px)); margin-inline: auto;
  min-height: 48px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); box-shadow: 0 4px 16px #08060c70; color: var(--text);
}
.sponsor-banner[hidden], .sponsor-close[hidden] { display: none; }
.sponsor-link { display: flex; flex: 1; align-items: center; min-width: 0; min-height: 46px; padding-inline: 10px; gap: 8px; font-size: .875rem; }
.sponsor-label { color: var(--muted); font-size: .75rem; }
.sponsor-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sponsor-link:hover .sponsor-title { text-decoration: underline; }
.sponsor-close { flex: 0 0 44px; min-height: 44px; margin-right: 1px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 1.25rem; }
.sponsor-close:hover { color: var(--text); background: var(--bg); }
.sponsor-link:focus-visible, .sponsor-close:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.store-checkbox, .form .store-checkbox { display: flex; align-items: center; gap: 9px; justify-content: start; }
.store-checkbox input { width: auto; }
.account-ban { position: sticky; top: 0; z-index: 8; padding: 7px 10px; text-align: center; background: #76242e; color: #fff; font-size: 13px; line-height: 1.35; }
.account-ban a { display: inline-block; margin-inline-start: 4px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.appeal-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-block: 14px; }
.appeal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.appeal-card { min-width: 0; padding: clamp(14px, 3vw, 22px); border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.appeal-card h2 { margin: 0 0 8px; font-size: 1.05rem; }
.appeal-card p { margin: 0; white-space: pre-wrap; }
.appeal-card p + p { margin-top: 8px; }
.appeal-reason { white-space: pre-wrap; overflow-wrap: anywhere; }
.appeal-form, .appeal-decision { margin-top: 16px; }
@media (max-width: 620px) {
  .appeal-grid { grid-template-columns: minmax(0, 1fr); }
}
.notification-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.notification-row.notice-card.is-read { background: #161322; border-color: #322b43; }
.notification-row.notice-card.is-read.announcement { background: #211b13; border-color: #5c482b; }
.notification-row.notice-card.is-read.owner-reply { background: #201e29; border-color: #3f3b4b; }
.notification-row.notice-card.is-read:hover { border-color: #75638f; }
.notification-open { display: grid; gap: 5px; padding: 0; background: none; border: 0; text-align: left; color: inherit; width: 100%; }
.catalog-tools { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.catalog-tools .catalog-search { margin: 0; }
.catalog-sort { position: relative; }
.catalog-sort-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(360px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 12px; box-shadow: 0 12px 30px #08060c70; }
.catalog-filter-options { display: grid; gap: 5px; margin-top: 8px; }
.catalog-filter-options a { white-space: normal; overflow-wrap: anywhere; }
.release-notices { display: inline-block; position: relative; margin-top: 14px; }
.release-notices summary { list-style: none; }
.release-notices form { position: absolute; top: calc(100% + 6px); left: 0; z-index: 2; white-space: nowrap; }
.store-metrics { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit,minmax(min(145px,100%),1fr)); }
.store-metrics div { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.store-metrics dt { color: var(--muted); }
.store-metrics dd { margin: 5px 0 0; font-size: 25px; font-weight: 750; }
.admin-chart-filters { grid-template-columns: repeat(2,minmax(0,1fr)) auto; }
.admin-tools { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(180px,100%),1fr)); gap: 10px; }
.admin-tool { position: relative; display: grid; gap: 5px; padding: 13px 34px 13px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); transition: border-color 160ms, transform 160ms; }
.admin-tool > span { position: absolute; right: 13px; top: 12px; color: var(--accent); }
.admin-tool:hover { border-color: var(--accent); transform: translateY(-2px); }
.directory-user, .directory-user-heading { display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.directory-user small { display: block; }
.directory-user-heading { margin-bottom: 16px; }
.directory-user-heading h1 { margin: 0; }
.directory-user-heading .review-avatar { width: 52px; height: 52px; font-size: 1.3rem; }
.analytics-panels { display: grid; grid-template-columns: minmax(0, 2fr) minmax(190px, 1fr); gap: 14px; margin-block: 14px; }
.analytics-card { min-width: 0; padding: clamp(12px, 3vw, 22px); border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.analytics-card h3 { margin: 0 0 7px; font-size: 1rem; }
.analytics-card > strong { font-size: clamp(24px, 4vw, 38px); }
.analytics-card > p { margin: 3px 0 10px; }
.analytics-card svg { display: block; width: 100%; margin-top: 8px; }
.analytics-line text { font-size: 13px; fill: var(--muted); }
.analytics-gridlines { stroke: var(--line); fill: none; }
.analytics-line polyline { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.analytics-bars rect { fill: var(--accent); }
.analytics-card details { margin-top: 6px; }
.analytics-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); padding: 0; gap: 6px; list-style: none; font-size: .85rem; }
.analytics-counts li, .analytics-ranking li { display: flex; justify-content: space-between; gap: 8px; }
.analytics-ranking { display: grid; gap: 10px; padding: 0; }
@media(max-width:600px) {
  .catalog-tools { width: 100%; }
  .catalog-tools .catalog-search { flex: 1; min-width: min(230px, 100%); }
  .catalog-sort-menu { right: auto; left: 0; }
  .admin-chart-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.auth-divider { margin-block: 22px 16px; display: flex; align-items: center; gap: 12px; color: var(--muted); }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.auth-form .btn { justify-self: start; }
.admin-directory { width: min(100%, 980px); margin-inline: auto; }
.directory-filters { display: grid; align-items: end; grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(110px, 1fr)) auto; gap: 12px; margin-block: 24px; }
.directory-filters label { display: grid; gap: 6px; font-weight: 600; }
.directory-list { padding: 0; list-style: none; display: grid; gap: 8px; }
.directory-row { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) auto minmax(125px, auto); gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.directory-row strong { overflow-wrap: anywhere; }
.directory-row:hover { background: var(--bg); }
.directory-details { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 20px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.directory-details dt { color: var(--muted); }
.directory-details dd { margin: 0; overflow-wrap: anywhere; }
.catalog-search { display: flex; gap: 8px; max-width: 470px; margin: 18px 0; }
.catalog-cover { --c: #bca6f8; --shade: #392c56; }
.catalog-area { margin-top: 24px; }
.catalog-text { white-space: pre-wrap; }
.catalog-review { border-top: 1px solid var(--line); padding-block: 18px; }
.catalog-review h3 { font-size: 21px; margin: 10px 0 0; }
.catalog-review .stars { font-size: 22px; }
.rating-breakdown { display: grid; grid-template-columns: minmax(100px, 145px) minmax(0, 1fr); align-items: center; gap: clamp(12px, 4vw, 34px); max-width: 660px; margin-block: 20px; }
.rating-score { display: grid; justify-items: start; gap: 5px; }
.rating-score .rating-value { font-size: clamp(38px, 8vw, 62px); font-weight: 650; line-height: .98; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.rating-score .stars { font-size: clamp(14px, 3.3vw, 18px); letter-spacing: .07em; white-space: nowrap; }
.rating-bars { display: grid; gap: 6px; }
.rating-bar { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.rating-bar meter { appearance: none; display: block; width: 100%; height: 10px; border: 0; background: var(--line); border-radius: 999px; }
.rating-bar meter::-webkit-meter-bar { border: 0; background: var(--line); border-radius: 999px; }
.rating-bar meter::-webkit-meter-optimum-value { background: var(--accent); border-radius: 999px; }
.rating-bar meter::-moz-meter-bar { background: var(--accent); border-radius: 999px; }
.catalog-review-reply { margin: 12px 0 0 18px; border-left: 2px solid var(--line); padding: 10px 14px; background: var(--bg); border-radius: 6px 10px 10px 6px; }
.catalog-review-reply.staff-reply { border-color: var(--accent); }
.catalog-review-reply p { margin-block: 6px 0; }
.review-name-link { display: inline-flex; align-items: center; gap: 8px; }
.review-avatar { display: grid; place-items: center; width: 35px; height: 35px; flex: none; overflow: hidden; border-radius: 50%; background: #342847; color: var(--accent); }
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-name-link:hover strong, .review-mention:hover { text-decoration: underline; }
.review-mention { color: var(--accent); }
.review-rank { margin-inline-start: 6px; font-size: .78rem; font-weight: 400; color: var(--muted); }
.review-editor { margin-block: 10px 18px; }
.review-editor button:disabled, .chat-send:disabled { opacity: .46; cursor: default; }
.review-editor details { margin-top: 0; }
.review-editor details > summary { display: inline-flex; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; }
.review-hidden > summary { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.catalog-review .production-gallery { margin-block: 14px; }
.catalog-review .production-gallery img { aspect-ratio: 1; }
.rating-field { display: flex; align-items: start; gap: clamp(2px, 1.5vw, 12px); border: 0; padding: 0; margin: 0; min-width: 0; }
.form .rating-choice { display: inline-grid; place-items: center; position: relative; min-width: 43px; min-height: 44px; font-size: clamp(26px, 5vw, 37px); color: var(--line); }
.rating-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rating-choice:has(input:focus-visible) { outline: 2px solid var(--accent); border-radius: 6px; }
.rating-choice:has(input:checked), .rating-choice:has(~ .rating-choice input:checked) { color: var(--accent); }
@media (hover: hover) {
  .rating-field:has(.rating-choice:hover) .rating-choice { color: var(--line); }
  .rating-field:has(.rating-choice:hover) .rating-choice:hover,
  .rating-field:has(.rating-choice:hover) .rating-choice:has(~ .rating-choice:hover) { color: var(--accent); }
}
.store-editor { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); gap: 22px; margin-top: 24px; }
.store-editor .directory-list { align-content: start; margin-top: 0; }
.store-editor .directory-row { grid-template-columns: minmax(0, 1fr) auto; }
.store-editor .editor-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.editor-apps { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.editor-apps h2 { margin: 0 0 13px; }
.editor-app-summary { padding: 10px; margin-bottom: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.editor-app-summary p { font-size: 13px; margin: 4px 0; }
.editor-apps .directory-list { margin-top: 16px; }
.editor-app-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--accent); color: var(--ink); }
.editor-app-icon img, .account-folder-icons img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.editor-app-name, .editor-product-heading { display: flex; align-items: center; gap: 8px; }
.editor-product-heading { justify-content: space-between; flex-wrap: wrap; }
.editor-product-heading h2 { margin: 0; }
.editor-library summary { margin-bottom: 12px; }
.editor-library[open] + .editor-compact { display: none; }
.editor-row[aria-current="page"], .account-folder[aria-current="page"] { border-color: var(--accent); }
.collection-trigger { margin-top: 14px; }
.collection-pick { margin-top: 0; }
.collection-preview { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.collection-preview > h2 { margin-top: 0; }
.collection-app-tile { min-width: 0; }
.collection-actions { margin-block: 8px 14px; }
.collection-app-tile details { margin-top: 6px; }
.account-banner-media, .account-avatar-media { position: absolute; inset: 0; display: block; overflow: hidden; }
.account-avatar-media { border-radius: 50%; }
.account-banner-media img, .account-avatar-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.account-pencil { z-index: 2; }
.account-avatar { z-index: 1; }
.account-profile:has(.profile-media-menu[open]) { overflow: visible; }
.account-profile:has(.profile-media-menu) .account-banner, .account-profile:has(.profile-media-menu) .account-banner-media { border-radius: 15px 15px 0 0; }
.profile-media-menu { position: absolute; margin: 0 !important; z-index: 3; }
.profile-media-menu[open] { z-index: 5; }
.profile-media-menu > summary { display: grid; place-items: center; list-style: none; padding: 0; width: 37px; min-height: 36px; background: var(--panel); }
.profile-media-menu > summary::-webkit-details-marker, .support-new > summary::-webkit-details-marker { display: none; }
.profile-media-banner { top: 10px; right: 10px; }
.profile-media-avatar { left: clamp(75px, 21vw, 108px); bottom: -45px; }
.profile-media-options { position: absolute; top: calc(100% + 6px); width: min(320px, calc(100vw - 58px)); padding: 12px; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px #06040b80; background: var(--panel); }
.profile-media-banner .profile-media-options { right: 0; }
.profile-media-avatar .profile-media-options { left: calc(-1 * clamp(55px, 17vw, 87px)); }
.profile-media-options .media-upload { margin: 0; }
.profile-media-options input[type="file"] { min-width: 0; width: 100%; }
.media-upload .profile-upload-choice { position: relative; display: inline-flex; width: max-content; }
.profile-upload-choice:focus-within { outline: 2px solid var(--accent); }
.media-upload .media-crop-stage[hidden], .media-upload button[hidden], .support-new-form label[hidden] { display: none; }
.profile-image-trigger { display: none; position: absolute; border: 0; padding: 0; background: transparent; }
.photo-tools-interactive .profile-image-trigger { display: block; }
.profile-image-banner { inset: 0; z-index: 1; }
.profile-image-avatar { z-index: 2; left: 18px; bottom: -33px; width: clamp(78px, 15vw, 100px); aspect-ratio: 1; border-radius: 50%; }
.profile-image-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.photo-tools-interactive [data-own-photo-tools]:not([data-photo-visible="banner"]) .profile-photo-action-banner,
.photo-tools-interactive [data-own-photo-tools]:not([data-photo-visible="avatar"]) .profile-photo-action-avatar { display: none; }
.account-pencil.profile-photo-action-avatar { top: auto; right: auto; left: clamp(75px, 21vw, 108px); bottom: -40px; z-index: 3; background: var(--panel); }
.account-edit-pencil { z-index: 3; background: var(--panel); }
.profile-tool-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.account-profile-meta { position: relative; }
.profile-message { position: absolute; right: 12px; top: 10px; display: grid; place-items: center; padding: 0; width: 38px; min-height: 38px; color: var(--muted); }
.account-profile-meta:has(.profile-message) { padding-right: 56px; }
.account-profile-meta .profile-message { top: 13px; }
.media-upload { display: grid; gap: 8px; margin-block: 10px; }
.media-upload label { display: grid; gap: 5px; font-weight: 650; }
.media-upload button { justify-self: start; }
.media-upload p { margin: 0; }
.media-crop-stage { padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #131021; }
.media-crop-guide { position: relative; width: min(100%, 450px); aspect-ratio: 2.7; margin-inline: auto; touch-action: none; cursor: grab; }
[data-media-crop="avatar"] .media-crop-guide { width: min(65%, 180px); aspect-ratio: 1; }
.media-crop-guide:active { cursor: grabbing; }
.media-crop-guide::after { content: ""; position: absolute; inset: 0; border: 1px solid white; box-shadow: 0 0 0 90px #090611a0; pointer-events: none; }
[data-media-crop="avatar"] .media-crop-guide::after { border-radius: 50%; }
.media-crop-guide img { width: 100%; height: 100%; display: block; object-fit: cover; user-select: none; }
.media-crop-stage > label { position: relative; margin-top: 14px; }
.production-gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 12px; }
.production-gallery figure { margin: 0; flex: 0 1 165px; min-width: min(104px,100%); }
.production-gallery img, .production-gallery video { display: block; width: 100%; aspect-ratio: 1.35; object-fit: cover; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
.production-gallery video { object-fit: contain; }
.production-gallery figcaption { margin-top: 4px; font-size: 12px; }
.media-moderation-card { margin-top: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; }
.media-moderation-card h2 { margin: 0; }
.media-remove { margin-block: 6px 12px; }
.app-visual { position: relative; min-height: 148px; display: grid; place-items: center; overflow: hidden; border-radius: 13px; margin-top: 14px; background: #262039; }
.app-visual-background { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; opacity: .42; filter: blur(28px); transform: scale(1.2); }
.app-visual-icon { position: relative; width: 83px; height: 83px; object-fit: cover; border-radius: 17px; }
.support-new > summary { display: inline-flex; list-style: none; }
.support-new-form { margin-top: 14px; max-width: 650px; }
.ticket-details { align-self: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.ticket-details h2 { margin: 0 0 12px; font-size: 1.05rem; }
.ticket-details dl { display: grid; gap: 4px; margin: 0 0 14px; }
.ticket-details dt { color: var(--muted); font-size: .78rem; }
.ticket-details dd { margin: 0 0 6px; overflow-wrap: anywhere; }
.ticket-chat { min-width: 0; }
.chat-composer { display: flex; align-items: flex-end; gap: 4px; min-height: 52px; margin-top: 10px; padding: 4px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg); }
.chat-message { flex: 1; min-width: 0; }
.chat-message textarea { display: block; width: 100%; min-height: 42px; padding: 10px 5px; border: 0; background: none; resize: vertical; line-height: 1.25; }
.chat-attach, .chat-send { display: grid; place-items: center; flex: 0 0 42px; width: 42px; min-height: 42px; padding: 0; border-radius: 50%; }
.chat-attach { position: relative; color: var(--muted); }
.chat-attach:focus-within { outline: 2px solid var(--accent); }
.chat-file-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 6px 0; }
.chat-file-list li { display: flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 8px; border: 1px solid var(--line); border-radius: 12px; }
.chat-file-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-file-list button { border: 0; background: none; color: var(--muted); font-size: 1.15rem; }
.chat-status { overflow-wrap: anywhere; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#production-lightbox { width: min(96vw, 1060px); max-height: 93dvh; overflow: auto; }
#production-lightbox img { display: block; max-width: 100%; max-height: 77dvh; object-fit: contain; margin-inline: auto; }
.store-thread { display: grid; gap: 10px; align-content: start; min-height: min(36vh, 280px); max-height: 56dvh; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.store-thread .ticket-bubble { justify-self: start; max-width: min(90%, 460px); overflow-wrap: anywhere; }
.store-thread .ticket-bubble.own { justify-self: end; }
.admin-directory .ticket-layout { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 3fr); gap: 20px; }
.users-directory .users-toolbar { grid-template-columns: minmax(150px, 2fr) repeat(3, minmax(115px, 1fr)); }
@media(max-width: 880px) {
  .directory-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .users-directory .users-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width: 680px) {
  .analytics-panels, .store-editor, .admin-directory .ticket-layout { grid-template-columns: minmax(0, 1fr); }
  .ticket-details dl { grid-template-columns: auto 1fr; column-gap: 8px; }
}
@media(max-width: 470px) {
  .directory-row { grid-template-columns: minmax(0, 1fr) auto; }
  .directory-row time { font-size: 13px; }
  .store-editor, .admin-directory .ticket-layout { grid-template-columns: 1fr; }
}
