.profile-page { width: min(100%, 1010px); min-height: 61vh; margin-inline: auto; padding-block: 24px 12px; }
.profile-overview { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 12px; }
.profile-header, .profile-progress, .profile-panel { min-width: 0; padding: clamp(14px, 2.6vw, 25px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.profile-header { display: flex; align-items: flex-start; gap: clamp(10px, 2.2vw, 22px); }
.profile-avatar { display: block; width: clamp(72px, 15vw, 128px); height: auto; flex: 0 0 auto; border-radius: 17px; }
.profile-identity { min-width: 0; }
.profile-name { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; }
.profile-name h1 { font-size: clamp(24px, 4vw, 34px); line-height: 1.18; overflow-wrap: anywhere; }
.profile-level { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--accent-light); color: var(--accent-dark); font-size: .875rem; font-weight: 750; white-space: nowrap; }
.profile-bio { margin-top: 5px; color: var(--muted); overflow-wrap: anywhere; }
.profile-metrics { display: flex; gap: 4px clamp(8px, 2vw, 20px); flex-wrap: wrap; margin: 9px 0 0; }
.profile-metrics div { display: flex; gap: 4px; align-items: baseline; }
.profile-metrics dt { color: var(--muted); font-size: .8125rem; }
.profile-metrics dd { margin: 0; font-weight: 750; }
.profile-actions { display: flex; gap: 5px 7px; flex-wrap: wrap; margin-top: 9px; }
.profile-actions .quiet-button { padding: 6px 8px; font-size: .8125rem; }
.profile-actions summary { cursor: pointer; }
#profile-studio { display: grid; gap: 14px; }
.profile-app-navigation, .profile-workshop-actions, .profile-control-short { display: none; }
.workshop .factory-mock-utilities { gap: 3px; }
.factory-mock-utilities .nado-header-action { display: grid; width: 48px; min-width: 44px; min-height: 44px; gap: 2px; padding: 3px 2px; font-size: .68rem; line-height: 1.2; white-space: nowrap; }
.factory-mock-utilities svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.profile-order-screen { display: grid; gap: 12px; min-width: 0; }
.profile-order-title { margin: 0; font-size: 1.35rem; }
.profile-order-screen .commerce-store { min-width: 0; margin-block: 0; }
.profile-order-screen .commerce-shopping-heading { justify-content: flex-start; margin-bottom: 8px; }
.profile-order-screen .commerce-shopping-heading h2 { margin: 0; font-size: 1rem; }
.profile-order-screen .commerce-order-wallet { margin-inline-start: auto; }
.profile-order-screen .commerce-basket-empty { padding-block: 24px; }
#profile-studio > .profile-header-own { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 2vw, 22px); }
.profile-header-own .profile-metrics { margin-top: 12px; }
.profile-header-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.profile-header-controls > button { min-height: 40px; color: var(--accent-dark); }
.profile-header-controls > button:hover { background: #f0f5ec; border-color: #c9dbcc; }
.profile-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid #dce7dd; border-radius: 18px; box-shadow: 0 16px 48px #203a2b26; }
.profile-dialog::backdrop { background: #172d23a3; }
.profile-dialog-header { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-bottom: 1px solid #e5ece4; background: #f2f6ed; }
.profile-dialog-header h2 { margin: 0; color: var(--accent-dark); font-size: 20px; }
.profile-dialog-close { width: 40px; height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--accent-dark); font-size: 24px; line-height: 1; cursor: pointer; }
.profile-dialog-close:hover { background: #e2eddf; }
.profile-dialog-body { display: grid; gap: 16px; padding: 18px; }
.profile-form-field { display: grid; gap: 5px; }
.profile-form-field label { font-weight: 750; }
.profile-form-field small, .profile-dialog-intro, .profile-share-option p { margin: 0; color: var(--muted); font-size: .875rem; }
.profile-dialog :is(input, textarea) { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid #cddbd0; border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.profile-dialog textarea { resize: vertical; }
.profile-dialog :is(button, a, input, textarea):focus-visible { outline: 2px solid #49816a; outline-offset: 2px; }
.profile-dialog-footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 12px; border-top: 1px solid #e5ece4; }
.profile-dialog :is(.quiet-button, .solid-button) { min-height: 40px; }
.profile-dialog-status { margin: 0; color: var(--accent-dark); font-size: .875rem; }
.profile-dialog-status.profile-error { color: #982c42; }
.profile-dialog-status:empty { margin-top: -16px; }
.profile-share-options { display: grid; gap: 8px; }
.profile-share-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border: 1px solid #e1e9e1; border-radius: 10px; }

.profile-progress { display: grid; align-content: center; gap: 5px; color: #e7eeff; background: var(--night); border-color: var(--night); }
.profile-balance { color: #fff; font-size: clamp(24px, 4vw, 35px); line-height: 1.2; letter-spacing: -.04em; }
.profile-progress progress { width: 100%; height: 10px; margin-block: 5px; accent-color: var(--warm); appearance: none; border: 0; border-radius: 10px; overflow: hidden; }
.profile-progress progress::-webkit-progress-bar { background: #46587b; border-radius: 9px; }
.profile-progress progress::-webkit-progress-value { background: var(--warm); border-radius: 9px; }
.profile-progress progress::-moz-progress-bar { background: var(--warm); }
.profile-progress small { color: #d1dbef; }

.profile-tabs { display: flex; align-items: center; gap: 5px 7px; flex-wrap: wrap; margin-block: 13px 8px; }
.profile-tabs :is(a, button) { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 12px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); font-weight: 690; }
.profile-tabs :is(a, button):hover { color: var(--accent-dark); background: var(--paper); }
.profile-tabs :is([aria-current='page'], [aria-pressed='true']) { color: var(--accent-dark); background: var(--surface); border-color: var(--line); }
#profile-studio .profile-account-navigation { position: sticky; align-self: start; top: calc(var(--site-header-height, 0px) + 8px); z-index: 3; justify-content: space-between; gap: 5px 10px; min-width: 0; margin: 0; padding: 5px; border: 1px solid #e0e8df; border-radius: 10px; background: #f7f9f5; }
@media (min-width: 721px) and (min-height: 620px) {
  html:has(.profile-page:not([hidden]) #profile-studio > .factory-studio > .factory-layout):not(:has(dialog[open], .factory-tour-overlay)) {
    scroll-snap-type: y mandatory;
  }
  .profile-page:has(> #profile-studio > .factory-studio > .factory-layout) {
    --profile-view-start: 16px;
    --profile-dashboard-gap: 10px;
    padding-top: var(--profile-view-start);
  }
  #profile-studio:has(> .factory-studio > .factory-layout) { row-gap: var(--profile-dashboard-gap); }
  #profile-studio:has(> .factory-studio > .factory-layout) > .profile-header-own {
    scroll-snap-align: start;
    scroll-margin-block-start: var(--profile-view-start);
  }
  #profile-studio > .factory-studio:has(> .factory-layout) {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-block-start: calc(var(--profile-navigation-height, 46px) + var(--profile-dashboard-gap) + 8px);
  }
  .workshop:has(.profile-page:not([hidden]) #profile-studio > .factory-studio > .factory-layout) > .site-footer {
    scroll-snap-align: end;
  }
}
.profile-account-links { display: flex; flex-wrap: wrap; align-items: stretch; gap: 5px; min-width: 0; }
.profile-account-actions { display: flex; align-items: center; gap: 5px; margin-inline-start: auto; }
#profile-studio .factory-tutorial-open { flex: none; gap: 5px; min-height: 34px; padding: 4px 9px; border-color: #c3d6c6; border-radius: 6px; background: #eaf3e9; color: #274c39; font-size: .8125rem; line-height: 1.2; white-space: nowrap; }
#profile-studio .factory-tutorial-open:hover:not(:disabled) { border-color: #93b39f; background: #dcebdd; }
#profile-studio .factory-tutorial-open:focus-visible { outline: 2px solid #49816a; outline-offset: 2px; }
.factory-tutorial-open .factory-app-icon { flex: none; width: 16px; height: 16px; }
#profile-studio .profile-account-links > a { gap: 5px; min-height: 34px; padding: 4px 8px; border-color: #d7e2d7; border-radius: 6px; background: #fff; color: #40594d; font-size: .8125rem; line-height: 1.2; white-space: nowrap; }
.profile-account-links :is(.profile-account-icon, .factory-app-icon) { display: block; flex: none; width: 16px; height: 16px; }
.profile-account-links > [data-activity-tab='factory'] > .profile-account-icon { width: 21px; height: 21px; }
#profile-studio .profile-account-links > a:hover { border-color: #93b39f; background: #eaf1e7; color: #234c38; }
#profile-studio .profile-account-links > a[aria-current='page'] { border-color: #365f4c; background: #365f4c; color: #fff; }
.profile-account-icon { display: block; flex: none; width: 26px; height: 26px; }
#profile-studio .profile-demo-link { min-height: 36px; padding: 5px 8px; font-size: .8125rem; }
.profile-panel h2 { margin-bottom: 9px; font-size: 1.2rem; }
.profile-panel h3 { margin-block: 11px 6px; font-size: 1rem; }
.profile-panel > .solid-button { margin-top: 9px; }
.profile-panel > .profile-tabs { margin-top: 0; }
#public-profile { display: grid; gap: 10px; }
#public-profile > a { justify-self: start; }
.profile-works { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); gap: 9px; }
.profile-items { display: grid; gap: 6px; }
.profile-work, .profile-item { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); overflow-wrap: anywhere; }
#profile-studio > .profile-panel { display: grid; align-content: start; gap: 14px; }
#profile-studio > .profile-panel > :is(h2, h3, .profile-hint) { margin: 0; }
#profile-studio > .profile-panel > .solid-button { justify-self: start; margin: 0; }
#profile-studio :is(.profile-items, .profile-works, .campaign-history-list) { gap: 12px; }
#profile-studio :is(.profile-work, .profile-item) { padding: 14px 16px; border-radius: 11px; background: #f9fbf7; }
#profile-studio .profile-item-title { line-height: 1.45; }
#profile-studio .profile-entry-copy { margin-top: 7px; }
#profile-studio .profile-empty { margin: 0; padding: 15px; border: 1px dashed #d7e3d7; border-radius: 10px; background: #f7faf5; }
#profile-studio > .profile-activity-panel { gap: 0; padding-block: 0; }
.profile-activity-header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding-block: 13px 12px; }
.profile-activity-header h2 { margin: 0; scroll-margin-top: 66px; }
.profile-activity-header span, .profile-comment-origin, .profile-activity-pager span { color: #596b60; font-size: .75rem; }
.profile-activity-list { margin: 0; padding: 0; list-style: none; }
.profile-activity-list > li { border-top: 1px solid #e1e9e0; }
.profile-activity-row { display: grid; align-items: center; gap: 7px; min-height: 46px; padding: 6px 3px 6px 0; color: var(--ink); line-height: 1.35; }
a.profile-activity-row:hover { color: var(--accent-dark); background: #f5f8f1; }
.profile-post-row { grid-template-columns: minmax(0, 1fr) minmax(38px, max-content) minmax(48px, max-content); }
.profile-comment-row { grid-template-columns: minmax(0, 1fr) minmax(0, 36%); }
.profile-comment-origin { text-align: right; }
.profile-activity-row :is(strong, small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-activity-row strong { font-size: .9375rem; }
.profile-post-count { color: #596b60; font-size: .75rem; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.profile-saved-row { grid-template-columns: max-content minmax(0, 1fr) 9px; gap: 8px; }
.profile-saved-row strong { overflow-wrap: anywhere; font-size: .9375rem; }
.profile-saved-category { padding: 3px 6px; border-radius: 5px; background: #e9f1e5; color: #365d46; font-size: .75rem; font-weight: 700; }
.post-save-feedback { display: flex; flex-basis: 100%; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 3px 10px; padding: 4px 10px; border: 1px solid #d7e3d7; border-radius: 8px; background: #f3f8ef; color: #315845; font-size: .875rem; }
.post-save-feedback .text-link { display: inline-flex; align-items: center; min-height: 36px; text-decoration: underline; text-underline-offset: 3px; }
.mock-post-detail { display: grid; gap: 12px; }
.mock-post-detail > a { justify-self: start; }
.mock-post-detail h1 { margin: 0; font-size: 1.3rem; line-height: 1.4; }
.workshop .comment-entry.is-target { background: #edf6eb; outline: 2px solid #86a98d; outline-offset: 1px; }
#profile-studio .profile-activity-panel .profile-empty { margin: 0 0 12px; }
.profile-activity-pager { display: flex; justify-content: center; align-items: center; gap: 12px; padding-block: 9px; border-top: 1px solid #e1e9e0; }
.profile-activity-pager button { min-width: 52px; min-height: 44px; }
.profile-activity-pager button:disabled { opacity: .5; cursor: default; }
.profile-item-title { overflow-wrap: anywhere; }
summary.profile-item-title { cursor: pointer; }
.profile-entry-meta { display: block; color: var(--muted); font-size: .75rem; }
.profile-entry-link { color: var(--accent-dark); font-weight: 730; }
.profile-entry-link:hover { text-decoration: underline; }
.profile-entry-copy { margin-top: 4px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-work-image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; margin-bottom: 6px; }
.profile-empty, .profile-hint { color: var(--muted); font-size: .875rem; }
.profile-hint { margin-top: 8px; }
.profile-shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 138px), 1fr)); gap: 8px; }
.profile-shop-item { display: grid; grid-template-rows: auto 1fr auto; justify-items: start; gap: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.profile-shop-item .quiet-button { padding: 6px 8px; font-size: .8125rem; }
.profile-shop-item .quiet-button:disabled { color: var(--muted); }
.profile-shop-image { width: 76px; height: auto; border-radius: 8px; }
.profile-point-rules { display: grid; gap: 5px; margin: 0; }
.profile-point-rules div { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 6px 8px; border-radius: 6px; background: var(--paper); }
.profile-point-rules dd { margin: 0; color: var(--accent-dark); font-weight: 730; white-space: nowrap; }
.profile-point-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-point-wallet { display: grid; align-content: start; gap: 5px; padding: 14px; border: 1px solid; border-radius: 12px; }
.profile-point-coin { color: #5e4630; background: #fbf6e9; border-color: #ecdfc5; }
.profile-point-note { color: #315842; background: #eff5ee; border-color: #dce8db; }
.profile-point-wallet h3, .profile-point-recent h3 { margin: 0; font-size: 14px; }
.profile-point-wallet h3 { display: flex; align-items: center; gap: 5px; line-height: 1.25; }
.profile-point-wallet .factory-currency-icon { width: 20px; height: 20px; }
.profile-point-balance { display: block; font-size: clamp(26px, 4vw, 36px); line-height: 1.15; font-variant-numeric: tabular-nums; }
.profile-point-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.profile-point-details h3 { margin: 0 0 3px; }
.profile-point-details p { margin: 0; color: var(--muted); font-size: .875rem; }
.profile-point-breakdown, .profile-point-month { display: grid; gap: 5px; margin: 5px 0 0; padding-top: 9px; border-top: 1px solid #856c4830; font-size: .825rem; }
.profile-point-breakdown div, .profile-point-month div { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.profile-point-breakdown dd, .profile-point-month strong { margin: 0; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.profile-point-month { border-top-color: #5b7b5830; }
.profile-point-month progress { width: 100%; height: 9px; accent-color: #648e69; }
.profile-point-recent { display: grid; gap: 8px; }
.profile-ledger { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.profile-ledger li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid #e6ebe3; border-radius: 8px; background: #fafcf8; }
.profile-ledger li > div { display: grid; gap: 1px; }
.profile-ledger time { color: var(--muted); font-size: .75rem; }
.profile-point-earned { color: #315f44; white-space: nowrap; font-variant-numeric: tabular-nums; }
.profile-point-guide { padding: 9px 12px; border: 1px solid #e1e8df; border-radius: 8px; color: var(--muted); font-size: .875rem; }
.profile-point-guide summary { cursor: pointer; font-weight: 700; }
.profile-point-guide .profile-point-rules { margin-top: 8px; }
.profile-history { margin-top: 11px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.profile-history summary { cursor: pointer; font-weight: 680; }
.profile-history .activity-content { margin-top: 9px; }
.profile-toast { position: fixed; z-index: 5; inset: auto 12px 15px auto; max-width: calc(100% - 24px); margin: 0; padding: 9px 12px; border-radius: 8px; background: var(--night); color: #fff; font-weight: 680; }
.profile-reward { color: var(--accent-dark); font-size: .8125rem; font-weight: 700; }
.profile-error { color: #9c2140; }
.compose-photo-field { display: grid; gap: 5px; }
.compose-photo-field label, .comment-author[href] { font-weight: 680; }
.comment-author[href] { color: var(--accent-dark); }
.compose-photo-field input { max-width: 100%; }

@media (max-width: 650px) {
  .profile-page { padding-top: 14px; }
  .profile-overview { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .profile-avatar { border-radius: 12px; }
  .profile-tabs { gap: 3px; }
  .profile-tabs :is(a, button) { padding-inline: 7px; font-size: .8125rem; }
  #profile-studio > .profile-header-own { grid-template-columns: auto minmax(0, 1fr); }
  .profile-header-controls { grid-column: 1 / -1; justify-content: flex-start; padding-top: 10px; border-top: 1px solid #edf0ed; }
  .profile-header-controls > button { flex: 1 1 auto; }
  .profile-account-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  #profile-studio .profile-account-links > a { justify-content: center; gap: 3px; padding-inline: 3px; }
  .profile-account-icon { width: 19px; height: 19px; }
  .profile-share-option { grid-template-columns: 1fr; gap: 6px; }
  .profile-point-details { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  html:has(.workshop [data-view='activity']:not([hidden])) {
    scrollbar-width: none;
  }
  .workshop:has([data-view='activity']:not([hidden])) > .site-footer { display: none; }
  .workshop[data-factory-mock] .header:not(.nado-site-header) .nado-brand-image { width: clamp(80px, 26vw, 116px); }
  .workshop[data-factory-mock] .header:not(.nado-site-header) .header-inner { gap: 6px; }
  .profile-page:has(> #profile-studio) { --profile-app-bar: calc(62px + env(safe-area-inset-bottom, 0px)); padding-block: 9px calc(12px + var(--profile-app-bar)); }
  #profile-studio { gap: 9px; }
  .profile-page:has(#profile-studio[data-app-section]:not([data-app-section='profile'])) > .profile-history { display: none; }
  #profile-studio > .profile-header-own { grid-template-columns: auto minmax(0, 1fr); gap: 6px 9px; padding: 9px 11px; border-radius: 13px; }
  .profile-header-own .factory-profile-mark { width: 46px; height: 46px; border-radius: 10px; }
  #profile-studio .profile-name h1 { font-size: 17px; line-height: 1.25; word-break: keep-all; }
  .profile-header-own .profile-name { gap: 3px 5px; }
  .profile-header-own .profile-bio { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; }
  .profile-header-own .profile-level { font-size: .72rem; }
  #profile-studio[data-app-section='profile'] > .profile-header-own { grid-template-columns: auto minmax(0, 1fr) auto; gap: 7px; padding: 7px 8px; }
  #profile-studio[data-app-section='profile'] .factory-profile-mark { width: 44px; height: 44px; }
  #profile-studio[data-app-section='profile'] .profile-name { display: grid; grid-template-columns: minmax(0, max-content) auto; justify-content: start; }
  #profile-studio[data-app-section='profile'] .profile-name h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
  #profile-studio[data-app-section='profile'] .profile-header-own :is(.profile-heading-suffix, .profile-metrics, .factory-profile-xp, .factory-profile-lp, .profile-control-label, .profile-logout) { display: none; }
  .profile-header-own .profile-header-controls { grid-column: auto; flex-wrap: nowrap; justify-content: end; gap: 3px; padding: 0; border: 0; }
  .profile-header-own .profile-header-controls > button { flex: none; min-height: 44px; min-width: 44px; padding: 3px 5px; border-radius: 7px; font-size: .75rem; }
  .profile-header-own .profile-control-short { display: inline; }
  #profile-studio .profile-account-navigation { position: static; display: block; padding: 4px; background: #fff; }
  .profile-account-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 3px; }
  .profile-account-links:has([data-activity-tab='applications']) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .profile-account-links:has([data-activity-tab='applications']) > a { grid-column: span 2; }
  .profile-account-links:has([data-activity-tab='applications']) > :is([data-activity-tab='applications'], [data-activity-tab='points']) { grid-column: span 3; }
  .profile-account-links:has([data-activity-tab='saved']) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-account-links:has([data-activity-tab='saved']) > [data-activity-tab] { grid-column: auto; }
  #profile-studio .profile-account-links > a { justify-content: center; min-height: 44px; padding: 3px; font-size: .75rem; }
  .profile-account-links .factory-app-icon { width: 14px; height: 14px; }
  #profile-studio .profile-account-links > :is([data-activity-tab='factory'], [data-activity-tab='orders']) { display: none; }
  #profile-studio > .profile-demo-link { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; color: #52655a; }
  #profile-studio:not([data-app-section='profile']) > .profile-demo-link { display: none; }
  #profile-studio:not([data-app-section='profile']) > .profile-account-navigation,
  #profile-studio:has(> .profile-order-screen) > .profile-header-own { display: none; }
  #profile-studio[data-app-section='factory'] > .profile-header-own { grid-template-columns: auto minmax(0, 1fr) auto; }
  #profile-studio[data-app-section='factory'] .profile-header-own :is(.profile-heading-suffix, .profile-bio, .profile-metrics, .factory-profile-xp, .factory-profile-lp, .profile-header-controls) { display: none; }
  #profile-studio[data-app-section='factory'] .profile-name h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #profile-studio[data-app-section='factory'] .profile-workshop-actions { display: flex; align-items: center; gap: 5px; }
  #profile-studio .profile-workshop-profile { min-height: 44px; padding: 0 8px; color: #355e48; font-size: .75rem; white-space: nowrap; }
  #profile-studio .profile-workshop-actions .factory-tutorial-open { min-height: 44px; padding-inline: 7px; font-size: .75rem; }
  .profile-app-navigation { position: fixed; z-index: 14; inset: auto 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; min-height: var(--profile-app-bar); padding: 3px 8px calc(3px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #d9e5db; background: #fff; }
  .profile-app-navigation a { display: grid; place-content: center; justify-items: center; gap: 1px; min-height: 54px; border-radius: 9px; color: #52665a; font-size: .75rem; font-weight: 720; line-height: 1.2; }
  .profile-app-navigation a[aria-current='page'] { background: #eaf3e5; color: #254f3c; }
  .profile-app-navigation .factory-app-icon { width: 23px; height: 23px; }
  .profile-activity-header { position: relative; justify-content: flex-end; min-height: 30px; padding-block: 5px; }
  .profile-activity-header h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); scroll-margin-top: 8px; }
  .profile-point-summary { gap: 7px; }
  .profile-point-wallet { padding: 9px; }
  .profile-point-wallet h3 { font-size: .77rem; }
  .profile-point-wallet .factory-currency-icon { width: 18px; height: 18px; }
  .profile-point-balance { font-size: clamp(16px, 5.4vw, 25px); overflow-wrap: anywhere; }
  .post-save-feedback .text-link { min-height: 44px; }
  .profile-items summary.profile-item-title { position: relative; display: grid; gap: 2px; padding-inline-end: 18px; list-style: none; }
  .profile-items summary.profile-item-title::-webkit-details-marker { display: none; }
  .profile-items summary.profile-item-title::after { content: ''; position: absolute; inset: 50% 3px auto auto; width: 7px; height: 7px; border: solid #61796a; border-width: 0 2px 2px 0; transform: translateY(-50%) rotate(45deg); }
  .profile-items details[open] summary.profile-item-title::after { transform: translateY(-30%) rotate(225deg); }
}

@media (max-width: 380px) {
  #profile-studio[data-app-section='factory'] .profile-name h1 { font-size: 15px; }
  #profile-studio .profile-workshop-profile { padding-inline: 6px; }
}
