/* Batch 2 is opt-in. Specialized tools and report snapshots keep their own UI. */
html[data-theme] body[data-ui-workspace="true"] {
  --control-surface: #1b191f;
  --control-line: #37323d;
  --control-line-hover: #9f80cc;
  --control-focus: #b18aff;
  --control-selected: #30233f;
  --control-muted: #b1abbc;
  --ui-background: #0b0b0d;
  --ui-surface: #19191e;
  --ui-control: #1b191f;
  --ui-text: #f4f3f7;
  --ui-muted: #b1abbc;
  --ui-border: #37323d;
  --ui-accent: #8962ed;
  --text: #f4f3f7;
  --muted: #b1abbc;
  --line: #2b2730;
  --accent: #8962ed;
  --accent-text: #c4a9ff;
  --accent-soft: #30233f;
  --field-bg: #1b191f;
  --panel-bg: #19191e;
  --nav-bg: #101012;
  --page-bg: #0b0b0d;
  background: #0b0b0d;
  color: #f4f3f7;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}
body[data-ui-workspace="true"]::before,
body[data-ui-workspace="true"]::after,
body[data-ui-workspace="true"] #appShell::before { content: none; }
body[data-ui-workspace="true"] :is(button, input, select, textarea, summary, h2, h3, h4, strong, span) { letter-spacing: 0; }
body[data-ui-workspace="true"] :is(#appShell, #mainNavigation) svg.home-fidelity-icon { fill: currentColor; stroke: none; }
body[data-ui-workspace="true"] :is(button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid #c5acff; outline-offset: 3px; }
body[data-ui-workspace="true"] :is(.primary-button, .soft-button, .ghost-button) { min-height: 44px; border-radius: var(--ob-button-radius); box-shadow: none; }
body[data-ui-workspace="true"] :is(#appShell, #subpage, #materialFilterSheet, #materialCategorySheet) .primary-button { border: 0; background: #8962ed; color: #fff; }
body[data-ui-workspace="true"] :is(#appShell, #subpage, #materialFilterSheet, #materialCategorySheet) :is(.soft-button, .ghost-button) { border: 1px solid #37323d; background: #24212c; color: #e1d4ff; }
body[data-ui-workspace="true"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) { min-height: 44px; padding: 10px 12px; background: #1b191f; border: 1px solid #37323d; border-radius: var(--ob-field-radius); color: #f4f3f7; font-size: 14px; line-height: 22px; box-shadow: none; }
body[data-ui-workspace="true"] :is(input, textarea)::placeholder { color: #9993a5; }
body[data-ui-workspace="true"] .usage-cue { margin: 0 0 16px; border: 0; border-left: 2px solid #8962ed; border-radius: 0; background: #211b2d; color: #cdb9ee; font-size: 12px; }
body[data-ui-workspace="true"] .usage-cue button { width: 44px; height: 44px; background: none; color: #b1abbc; }

/* Library: controls first, then the actual saved records. */
body[data-ui-page="library"] #appShell .material-library-page { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 16px 20px calc(100px + env(safe-area-inset-bottom, 0px)); }
body[data-ui-page="library"] #appShell .material-library-page > .usage-cue { grid-column: 1 / -1; }
body[data-ui-page="library"] #appShell .material-library-toolbar { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; margin: 0; }
body[data-ui-page="library"] #appShell .material-library-search { display: flex; align-items: center; flex: 1; min-width: 0; min-height: 46px; padding: 0 12px; gap: 8px; border: 1px solid #2b2a31; border-radius: var(--ob-field-radius); background: #19191e; }
body[data-ui-page="library"] #appShell .material-library-search .app-icon { width: 17px; height: 17px; flex: 0 0 auto; color: #a59dad; }
body[data-ui-page="library"] #appShell .material-library-search .obsidian-search-icon { fill: currentColor; stroke: none; }
body[data-ui-page="library"] #appShell #materialLibrarySearch { width: 100%; min-width: 0; padding: 10px 0; border: 0; background: none; font-size: 13px; }
body[data-ui-page="library"] #appShell .material-upload-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; padding: 12px; cursor: pointer; }
body[data-ui-page="library"] #appShell .material-upload-button span { display: none; }
body[data-ui-page="library"] #appShell .material-upload-button svg { width: 20px; height: 20px; }
body[data-ui-page="library"] #appShell .material-library-toolbar .usage-help-button { flex: 0 0 44px; min-width: 44px; height: 44px; padding: 0; background: none; color: #b1abbc; border: 0; }
body[data-ui-page="library"] #materialLibraryViews { display: flex; align-items: center; width: auto; margin: 0; padding: 0; gap: 16px; border: 0; border-radius: 0; background: none; }
body[data-ui-page="library"] #materialLibraryViews button { position: relative; flex: 0 0 auto; min-height: 44px; min-width: 0; padding: 8px 0; border: 0; border-radius: var(--ob-button-radius); background: none; color: #9d96a8; font-size: 14px; line-height: 22px; box-shadow: none; }
body[data-ui-page="library"] #materialLibraryViews button.active { color: #f4f3f7; background: none; }
body[data-ui-page="library"] #materialLibraryViews button.active::after { content: ""; position: absolute; bottom: 0; left: 0; width: 20px; height: 2px; border-radius: 2px; background: #a17aff; }
body[data-ui-page="library"] #materialLibraryViews button span:not(:empty) { margin-left: 3px; padding: 0; background: none; color: #bca1e9; font-size: 11px; }
body[data-ui-page="library"] #materialLibraryFilterTrigger { display: inline-flex; align-items: center; justify-self: end; gap: 6px; width: auto; max-width: 150px; min-height: 44px; padding: 8px 0 8px 8px; background: none; border: 0; border-radius: 0; color: #c1b8cf; }
body[data-ui-page="library"] #materialLibraryFilterTrigger svg { width: 15px; height: 15px; flex: 0 0 auto; }
body[data-ui-page="library"] #materialLibraryFilterLabel { font-size: 12px; line-height: 18px; white-space: normal; overflow-wrap: anywhere; }
body[data-ui-page="library"] #materialLibrarySummary { grid-column: 1 / -1; margin: 0; color: #a69db2; font-size: 12px; line-height: 20px; }
body[data-ui-page="library"] #materialCloudStorage { grid-column: 1 / -1; padding: 0 0 8px; border: 0; border-radius: 0; background: none; }
body[data-ui-page="library"] #materialLibraryList { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
body[data-ui-page="library"] #materialLibraryList .material-card { min-width: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
body[data-ui-page="library"] #materialLibraryList .material-card-media { aspect-ratio: 3 / 4; border-radius: 8px; background: #19191e; }
body[data-ui-page="library"] #materialLibraryList .material-card-media:is(.is-text, .is-plan) { background: #1c1923; }
body[data-ui-page="library"] #materialLibraryList .material-card-media p { color: #c1b8cc; }
body[data-ui-page="library"] #materialLibraryList .material-card-media .material-plan-name { font-size: 18px; line-height: 26px; font-weight: 600; }
body[data-ui-page="library"] #materialLibraryList .material-card-media-fallback { background: #19191e; color: #a69db2; }
body[data-ui-page="library"] #materialLibraryList .material-card-media-fallback strong { color: #d8cfe3; }
body[data-ui-page="library"] .material-card-caption { display: grid; gap: 4px; padding: 10px 0 0; min-width: 0; }
body[data-ui-page="library"] #materialLibraryList .material-card-caption strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 40px; overflow: hidden; color: #e7deef; font-size: 13px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
body[data-ui-page="library"] .material-card-status { color: #9c91ae; font-size: 11px; line-height: 18px; }
body[data-ui-page="library"] .material-card-status.is-temporary { color: #d3be8b; }
body[data-ui-page="library"] #materialLibraryList .material-card-actions { gap: 2px; padding: 4px 0 0; }
body[data-ui-page="library"] #materialLibraryList .material-card-actions button { display: grid; place-items: center; min-height: 44px; background: none; border: 0; color: #b1abbc; border-radius: var(--ob-button-radius); }
body[data-ui-page="library"] #materialLibraryList .material-card-actions button:hover { background: #211d28; color: #d6c0ff; }
body[data-ui-page="library"] #materialLibraryList .material-card-actions svg { width: 19px; height: 19px; }
body[data-ui-page="library"] #materialLibraryList .recent-generated-expiry { color: #f5e8cd; background: #17151cd9; font-size: 10px; padding: 4px 6px; }
body[data-ui-page="library"] #materialLibraryList .material-library-empty { grid-column: 1 / -1; padding: 60px 12px; border: 0; background: none; color: #f4f3f7; }
body[data-ui-page="library"] #materialLibraryList .material-library-empty p { max-width: 380px; margin: 12px auto 20px; color: #a69db2; font-size: 13px; line-height: 22px; }

/* Account: flat sections, no nested dashboard cards. */
body[data-ui-page="profile"] #appShell .tab-panel[data-tab="profile"].active { padding: 16px 20px calc(100px + env(safe-area-inset-bottom, 0px)); }
body[data-ui-page="profile"] #appShell [data-tab="profile"] > .surface { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body[data-ui-page="profile"] #appShell .profile-identity { display: flex; align-items: center; gap: 14px; padding: 12px 0 24px; border: 0; }
body[data-ui-page="profile"] #appShell .profile-avatar { display: grid; place-items: center; width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; background: #221d2b; color: #c2a4f1; }
body[data-ui-page="profile"] #appShell .profile-avatar svg { width: 28px; height: 28px; }
body[data-ui-page="profile"] #appShell .profile-identity-copy { flex: 1; min-width: 0; }
body[data-ui-page="profile"] #appShell .profile-identity-copy > .summary-label { display: none; }
body[data-ui-page="profile"] #profileUsername { display: block; max-width: 100%; color: #f4f3f7; font-size: 20px; line-height: 28px; font-weight: 600; white-space: normal; overflow-wrap: anywhere; }
body[data-ui-page="profile"] #appShell .profile-identity-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 5px; color: #a69db2; font-size: 11px; line-height: 18px; }
body[data-ui-page="profile"] #profileAccountType { padding: 0; border-radius: 0; background: none; color: #c1a1ed; font-size: 11px; }
body[data-ui-page="profile"] #openAccountSettings { width: 44px; height: 44px; flex: 0 0 44px; min-height: 44px; padding: 12px; border: 0; background: none; color: #b1abbc; box-shadow: none; }
body[data-ui-page="profile"] #appShell .profile-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 0 0 24px; border-bottom: 1px solid #28252e; }
body[data-ui-page="profile"].personal-account #appShell .profile-overview-grid { grid-template-columns: minmax(0, 1fr); }
body[data-ui-page="profile"] #appShell .profile-overview-item { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 8px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body[data-ui-page="profile"] #appShell .profile-overview-item .summary-label { color: #a69db2; font-size: 12px; }
body[data-ui-page="profile"] #appShell .profile-overview-item > strong { color: #f4f3f7; font-size: 18px; line-height: 28px; overflow-wrap: anywhere; }
body[data-ui-page="profile"] #appShell .profile-points-item { grid-template-columns: minmax(0, 1fr) auto; }
body[data-ui-page="profile"] #appShell .profile-points-item .summary-label { grid-column: 1 / -1; }
body[data-ui-page="profile"] #appShell #profilePointsBalance { font-size: 30px; line-height: 44px; font-weight: 600; }
body[data-ui-page="profile"] #openRedeemPage { align-self: center; padding: 10px 14px; font-size: 13px; }
body[data-ui-page="profile"] #openStoreSettings { justify-self: start; padding: 8px 12px; font-size: 12px; }
body[data-ui-page="profile"] #profileStoreTip { margin-top: 16px; padding: 12px; border: 0; border-radius: 8px; background: #1c1923; color: #d3c8e3; }
body[data-ui-page="profile"] #profileStoreTip span { color: #a69db2; }
body[data-ui-page="profile"] #appShell #profileCloudStorage { padding: 20px 0; border-bottom: 1px solid #28252e; }
body[data-ui-workspace="true"] .cloud-storage-meter-copy { gap: 8px; min-height: 36px; }
body[data-ui-workspace="true"] :is(.cloud-storage-meter-copy span, .cloud-storage-profile-head .summary-label) { color: #a69db2; font-size: 12px; }
body[data-ui-workspace="true"] :is(.cloud-storage-meter-copy strong, .cloud-storage-profile-head strong) { color: #e4ddec; font-size: 13px; }
body[data-ui-workspace="true"] .cloud-storage-profile-head strong small { color: #a69db2; font-size: 12px; }
body[data-ui-workspace="true"] .cloud-storage-meter-copy button { color: #ba99ef; font-size: 12px; min-height: 44px; padding: 8px 0 8px 8px; }
body[data-ui-workspace="true"] .cloud-storage-track { height: 4px; border-radius: 2px; background: #27232e; }
body[data-ui-workspace="true"] .cloud-storage-track span { background: #956bde; }
body[data-ui-page="profile"] #appShell .profile-safety-card { padding: 18px 0; }
body[data-ui-page="profile"] #appShell .profile-safety-card strong { color: #c4b8d2; font-size: 12px; line-height: 20px; }
body[data-ui-page="profile"] #appShell .profile-safety-card p { margin: 6px 0 0; color: #9e94ad; font-size: 12px; line-height: 21px; }
body[data-ui-page="profile"] #appShell .menu-list { display: grid; gap: 0; }
body[data-ui-page="profile"] #appShell .menu-cell { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 58px; padding: 12px 0; border: 0; border-top: 1px solid #25222b; border-radius: var(--ob-button-radius); background: none; color: #e4ddec; box-shadow: none; font-size: 14px; }
body[data-ui-page="profile"] #appShell .menu-cell em { display: inline-flex; align-items: center; gap: 8px; color: #9e94ad; font-size: 12px; font-style: normal; }
body[data-ui-page="profile"] #appShell .menu-cell > span { color: inherit; }
body[data-ui-page="profile"] #appShell .menu-cell::after { content: none; }
body[data-ui-page="profile"] #appShell .menu-cell em::after { content: ""; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
body[data-ui-page="profile"] #appShell .menu-cell:is(#profileContactSupport, #profileAgreementButton) em::after { content: ""; }
body[data-ui-page="profile"] #logoutAccount { color: #d4a4ad; }
body[data-ui-page="profile"] #appShell #profileThemeToggle { display: none; }

/* Shared sheets are themed only while one of the migrated pages owns them. */
body[data-ui-workspace="true"] :is(#materialFilterSheet, #materialCategorySheet, #agreementSheet, #contactSheet, #noticeSheet, #imagePreviewSheet, .usage-guide-sheet, .app-action-confirm-panel) { border: 1px solid #37323d; border-radius: 8px; background: #19161e; color: #f4f3f7; box-shadow: 0 20px 70px #0008; }
body[data-ui-workspace="true"] :is(#materialFilterSheet, #materialCategorySheet, #agreementSheet, #contactSheet, #noticeSheet, #imagePreviewSheet, .usage-guide-sheet, .app-action-confirm-panel) :is(h2, h3, h4, strong, label) { color: #f0eaf6; }
body[data-ui-workspace="true"] :is(#materialFilterSheet, #materialCategorySheet, #agreementSheet, #contactSheet, #noticeSheet, #imagePreviewSheet, .usage-guide-sheet, .app-action-confirm-panel) :is(p, small, li, summary) { color: #b9afc5; }
body[data-ui-workspace="true"] :is(.material-filter-options button, .material-category-item button, .material-filter-section-head button, .usage-guide-directory button, .usage-guide-sheet > header button, #imagePreviewSheet button, .close-button) { min-height: 44px; border: 1px solid #37323d; border-radius: var(--ob-button-radius); background: #211d28; color: #d1c1e7; }
body[data-ui-workspace="true"] .material-filter-options button.active { background: #30233f; color: #d4bcff; border-color: #a17aff; }
body[data-ui-workspace="true"] :is(.material-filter-head, .material-category-head, .material-category-item, .usage-guide-sheet > header, .usage-guide-faq, .agreement-head) { border-color: #302a38; }
body[data-ui-workspace="true"] :is(.material-category-tip, .material-category-empty, .material-category-item small) { color: #a69db2; }
body[data-ui-workspace="true"] .usage-guide-directory button { padding: 14px; }
body[data-ui-workspace="true"] .usage-guide-directory button span { color: #b1a5c2; }
body[data-ui-workspace="true"] #imagePreviewSheet .image-preview-stage { background: #0b0b0d; }
body[data-ui-workspace="true"] :is(.usage-guide-overlay, #materialFilterBackdrop, #materialCategoryBackdrop, #agreementBackdrop, #modalBackdrop) { background: #050408b8; }
body[data-ui-workspace="true"] #globalLoading .loading-card { border: 1px solid #37323d; border-radius: 8px; background: #19161e; color: #e9dff4; }
body[data-ui-workspace="true"] #globalLoading .loading-card p { color: #a69db2; }

body[data-ui-page="workspace-detail"] #mainNavigation { display: none; }
html[data-theme] body[data-ui-page="workspace-detail"][data-ui-workspace="true"] { background: #0b0b0d; }
html[data-theme] body[data-ui-page="workspace-detail"][data-ui-workspace="true"] #subpage { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(100%, 940px); max-width: 940px; height: 100dvh; min-height: 0; max-height: 100dvh; margin: auto; padding: 0; border: 0; border-radius: 0; background: #0b0b0d; color: #f4f3f7; box-shadow: none; }
body[data-ui-page="workspace-detail"] #subpage .subpage-head { min-height: 64px; padding: 8px 12px; background: #0b0b0d; border: 0; }
body[data-ui-page="workspace-detail"] #subpage .subpage-head h3 { color: #f4f3f7; font-size: 16px; line-height: 24px; }
body[data-ui-page="workspace-detail"] #subpage #closeSubpage { display: grid; place-items: center; width: 44px; height: 44px; padding: 12px; border: 0; border-radius: var(--ob-button-radius); background: none; color: #d2c4e2; box-shadow: none; }
body[data-ui-page="workspace-detail"] #subpage #subpageBody { padding: 12px 20px 40px; overflow-y: auto; background: #0b0b0d; }
body[data-ui-page="workspace-detail"] #subpage #subpageBody :is(.subpage-panel, .subpage-action-row) { margin: 0 0 24px; padding: 0; border: 0; border-radius: 0; background: none; color: #e4ddec; box-shadow: none; }
body[data-ui-page="workspace-detail"] #subpage #subpageBody .field span { color: #c4b8d2; font-size: 13px; }
body[data-ui-page="workspace-detail"] #subpage #subpageBody .field input { color: #f4f3f7; background: #1b191f; border-color: #37323d; }
body[data-ui-page="workspace-detail"] #subpage #subpageBody .password-toggle { min-width: 44px; min-height: 44px; border: 0; border-radius: var(--ob-button-radius); color: #b9a9cc; background: none; }
body[data-ui-page="workspace-detail"] #subpage #subpageBody :is(.material-detail-content, .record-guide, .empty-state) { padding: 14px; border: 0; border-radius: 8px; background: #19161e; color: #c5bacf; }
body[data-ui-page="workspace-detail"] #subpage #subpageBody .material-detail-image { display: block; width: 100%; max-height: 68dvh; object-fit: contain; border-radius: 8px; background: #111013; }
body[data-ui-page="workspace-detail"] #subpage #subpageBody :is(.material-detail-save-hint, .material-detail-meta, .points-buy-panel span, .point-record-item span, .redeem-record-item small) { color: #a69db2; font-size: 12px; line-height: 21px; }
body[data-ui-page="workspace-detail"] #subpage #subpageBody .material-detail-actions button { min-height: 44px; border: 1px solid #37323d; border-radius: var(--ob-button-radius); background: #24212c; color: #dfcef8; }
body[data-ui-page="workspace-detail"] #subpage #subpageBody .material-detail-delete { color: #d3a0ad; }
body[data-ui-page="workspace-detail"] #subpage #subpageBody .material-detail-organize { padding: 20px 0; border-top: 1px solid #302a38; }
body[data-ui-page="workspace-detail"] #subpage #subpageBody .material-detail-organize-head strong { color: #e1d7ec; font-size: 14px; }
body[data-ui-page="workspace-detail"] #subpage #subpageBody #saveMaterialDetailInfo { min-height: 44px; padding: 8px 12px; border: 0; border-radius: var(--ob-button-radius); color: #fff; background: #8962ed; }
body[data-ui-page="workspace-detail"] #subpage #subpageBody #saveMaterialDetailInfo:disabled { color: #8e839c; background: #211c29; }
body[data-ui-page="workspace-detail"] #subpage #subpageBody :is(.point-record-item, .redeem-record-item) { padding: 16px 0; border: 0; border-bottom: 1px solid #302a38; border-radius: 0; background: none; }
body[data-ui-page="workspace-detail"] #subpage #subpageBody :is(.point-record-item strong, .redeem-record-item em, .section-mini-head strong, .points-buy-panel strong, .empty-state strong, .material-detail-heading h4) { color: #e5dced; }
body[data-ui-page="workspace-detail"] #subpage #subpageBody .point-record-item.income em { color: #9fd2b8; }
body[data-ui-page="workspace-detail"] #subpage #subpageBody .point-record-item.expense em { color: #d5bcf2; }
body[data-ui-page="workspace-detail"] #subpage #subpageBody #buyPointsButton { white-space: nowrap; min-width: 112px; padding: 10px 12px; }
body[data-ui-workspace="true"] :is(#appShell, #subpage, #materialFilterSheet, #materialCategorySheet) [hidden] { display: none; }
body[data-ui-workspace="true"] :is(#appShell, #subpage) .hidden { display: none; }

@media (min-width: 760px) {
  body[data-ui-page="library"] #materialLibraryList { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
  body[data-ui-page="library"] #appShell .material-upload-button { width: auto; gap: 8px; padding: 10px 14px; }
  body[data-ui-page="library"] #appShell .material-upload-button span { display: block; font-size: 13px; }
  body[data-ui-page="profile"] #appShell .tab-panel[data-tab="profile"].active { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); gap: 24px 48px; }
  body[data-ui-page="profile"] #appShell .profile-summary { grid-column: 1; grid-row: 1 / span 2; }
  body[data-ui-page="profile"] #appShell #profileCloudStorage { grid-column: 1; padding-top: 0; }
  body[data-ui-page="profile"] #appShell .profile-safety-card { grid-column: 1; }
  body[data-ui-page="profile"] #appShell .menu-list { grid-column: 2; grid-row: 1 / span 4; }
}
@media (max-width: 360px) {
  body[data-ui-page="library"] #appShell .material-library-page { padding-inline: 16px; gap: 10px; }
  body[data-ui-page="library"] #materialLibraryViews { gap: 12px; }
  body[data-ui-page="library"] #materialLibraryViews button { font-size: 13px; }
  body[data-ui-page="library"] #materialLibraryFilterTrigger { max-width: 112px; }
  body[data-ui-page="library"] #materialLibraryFilterTrigger > svg:first-child { display: none; }
  body[data-ui-page="profile"] #appShell .profile-overview-grid { gap: 12px; }
  body[data-ui-page="profile"] #profilePointsBalance { font-size: 26px; }
  body[data-ui-page="profile"] #openRedeemPage { padding-inline: 10px; font-size: 12px; }
  body[data-ui-page="workspace-detail"] #subpage #subpageBody .points-buy-panel { display: grid; gap: 12px; }
  body[data-ui-page="workspace-detail"] #subpage #subpageBody #buyPointsButton { justify-self: start; }
}
@media (max-width: 599px) {
  body[data-ui-page="profile"]:not(.personal-account) #appShell .profile-points-item { grid-template-columns: minmax(0, 1fr); }
  body[data-ui-page="profile"]:not(.personal-account) #openRedeemPage { justify-self: start; }
  body[data-ui-page="workspace-detail"] #subpage #subpageBody .field-grid { grid-template-columns: minmax(0, 1fr); }
}
