/* Hallmark · macrostructure: Workbench · design-system: DESIGN.md · scope: profile + wardrobe
 * Studied structure: large character + adjacent wardrobe; existing palette retained.
 * Audience: learners · use: admire and dress saved characters · tone: quiet, welcoming
 * Navigation: edge-aligned return + wallet · footer: panel-local save · motion: colour only
 * Original character and pet artwork retained without filters or cropping.
 * Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V5
 * Verified 2026-10-25: responsive 320–1920px; sampled text contrast >= 5.19:1.
 * Previous profile-only base rules remain below; character-room overrides follow.
 */
body[data-view="profile"] .main { max-width:none; width:100%; padding:34px 40px 24px; }
.profile-space { min-width:0; }
.profile-space-bar { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:24px; min-height:104px; border-bottom:1px solid var(--ui-line); }
.profile-space-bar h1 { font-family:var(--ui-font-body); font-size:20px; font-weight:600; letter-spacing:.08em; }
.profile-return { justify-self:start; display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:4px 8px 4px 0; color:var(--ui-accent); font-size:13px; white-space:nowrap; }
.profile-return .icon { width:18px; height:18px; }
.profile-coin-button { justify-self:end; display:grid; justify-items:end; gap:1px; min-height:52px; padding:6px 10px; border:1px solid transparent; border-radius:var(--ui-radius); background:transparent; }
.profile-coin-button > span { display:flex; align-items:center; gap:8px; color:var(--ui-warm-ink); }
.profile-coin-button b { font-size:18px; font-weight:600; font-variant-numeric:tabular-nums; }
.profile-coin-button small { color:var(--ui-muted); font-size:10px; }
.profile-coin-button[data-wallet-state="invalid"] small,.profile-coin-button[data-wallet-state="unavailable"] small { color:var(--ui-error); }
.profile-room { display:grid; grid-template-columns:minmax(0,1.75fr) minmax(0,1fr); gap:64px; padding-top:36px; }
.profile-look { min-width:0; }
.profile-look-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.profile-look-heading h2 { font-family:var(--ui-font-body); font-size:28px; font-weight:500; letter-spacing:.02em; line-height:1.4; }
.profile-space .eyebrow { margin:0 0 6px; font-size:9px; letter-spacing:.16em; color:var(--ui-muted); }
.profile-look-status { align-self:flex-end; padding-bottom:3px; color:var(--ui-muted); font-size:11px; }
.profile-space .profile-companion-stage { position:relative; display:grid; place-items:center; min-height:0; height:clamp(390px,61vh,610px); padding:0; margin:16px 0 12px; border:0; border-radius:0; background:transparent; }
.profile-space .profile-companion-stage::after { content:none; }
.profile-space .profile-companion-stage > :is(.girl-dress-figure,.profile-companion-figure) { display:block; width:100%; max-width:100%; height:100%; max-height:100%; margin:0; padding:0; object-fit:contain; }
.profile-look-footer { display:grid; justify-items:center; gap:14px; padding-top:4px; }
.profile-space .profile-companion-actions { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:16px; }
.profile-space .profile-primary { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:48px; padding:10px 22px; border:1px solid var(--ui-border-strong); border-radius:var(--ui-radius); background:var(--ui-primary); color:var(--ui-accent-hover); font-size:14px; font-weight:600; white-space:nowrap; }
.profile-primary .icon { width:18px; height:18px; }
.profile-inventory-link,.profile-pet-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; color:var(--ui-accent); font-size:13px; white-space:nowrap; }
.profile-inventory-link .icon,.profile-pet-link .icon { width:16px; height:16px; }
.profile-look-footer > p { color:var(--ui-muted); font-size:11px; letter-spacing:.04em; }
.profile-room-side { min-width:0; padding-top:46px; }
.profile-space .profile-pet-home { display:block; margin:0; padding:24px; border:0; border-radius:var(--ui-card-radius); background:var(--ui-soft); }
.profile-pet-home > header h2 { font-family:var(--ui-font-body); font-size:22px; line-height:1.4; font-weight:500; }
.profile-pet-body { display:grid; grid-template-columns:auto minmax(0,1fr); gap:16px; align-items:center; margin-top:24px; }
.profile-space .profile-pet-portrait { position:relative; display:grid; place-items:center; width:48px; height:64px; min-width:0; }
.profile-space .profile-pet-placeholder > .icon { width:38px; height:38px; color:var(--ui-marker); }
.profile-space .profile-pet-copy > p { margin:0 0 6px; color:var(--ui-muted); font-size:12px; line-height:1.8; }
.profile-space .profile-pet-home:is([data-pet-state="preview"],[data-pet-state="owned"]) .profile-pet-body { grid-template-columns:minmax(0,1fr); gap:10px; margin-top:12px; }
.profile-space .profile-pet-home:is([data-pet-state="preview"],[data-pet-state="owned"]) .profile-pet-portrait { width:100%; height:200px; }
.profile-space .profile-pet-portrait .pet-portrait { display:block; width:100%; height:100%; max-width:240px; object-fit:contain; }
.profile-pet-home[data-pet-state="owned"] [data-profile-pet-note] { color:var(--ui-success); }
.profile-shop { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:start; gap:14px; padding:28px 4px; margin-top:24px; border-top:1px solid var(--ui-line); border-bottom:1px solid var(--ui-line); }
.profile-shop-symbol { padding-top:3px; color:var(--ui-accent); }
.profile-shop-symbol .icon { width:23px; height:23px; }
.profile-shop h2 { font-family:var(--ui-font-body); font-size:18px; font-weight:500; }
.profile-shop p { margin-top:8px; color:var(--ui-muted); font-size:12px; }
.profile-shop small { display:block; margin-top:10px; color:var(--ui-muted); font-size:10px; }
.profile-shop > .icon { width:17px; height:17px; margin-top:6px; color:var(--ui-accent); }
.profile-room-note { margin-top:20px; color:var(--ui-muted); font-size:11px; line-height:1.9; }
.profile-media-message { position:absolute; inset:auto 12px 8px; margin:0; color:var(--ui-muted); font-size:11px; text-align:center; }
[data-profile-media="ready"] > .profile-media-message { display:none; }
[data-profile-media="error"] > .profile-media-message { padding:8px; background:var(--ui-error-bg); color:var(--ui-error); }
.profile-space :is(a,button) { transition:background-color var(--ui-duration) cubic-bezier(.16,1,.3,1),color var(--ui-duration) cubic-bezier(.16,1,.3,1); }
.profile-space :is(a,button):active { background:var(--ui-pressed); }
.profile-space :is(a,button):focus-visible { outline:2px solid var(--ui-accent); outline-offset:4px; }
@media (hover:hover) {
  .profile-primary:hover { background:var(--ui-pressed); }
  .profile-space :is(.profile-return,.profile-inventory-link,.profile-pet-link):hover { color:var(--ui-accent-hover); text-decoration:underline; text-underline-offset:5px; }
  .profile-coin-button:hover { background:var(--ui-warm); }
  .profile-shop:hover { background:var(--ui-soft); }
}
@media (max-width:1000px) {
  body[data-view="profile"] .main { padding:30px 28px 20px; }
  .profile-room { gap:32px; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); }
  .profile-look-status { max-width:10em; text-align:right; }
  .profile-space .profile-pet-home { padding:20px; }
  .profile-pet-body { grid-template-columns:auto minmax(0,1fr); gap:12px; }
  .profile-space .profile-pet-portrait { width:36px; height:48px; }
}
@media (max-width:700px) {
  body[data-view="profile"] .main { padding:25px 20px 16px; }
  .profile-space-bar { min-height:84px; gap:12px; }
  .profile-space-bar h1 { font-size:18px; letter-spacing:.02em; }
  .profile-return { padding:0; width:44px; justify-content:flex-start; }
  .profile-return span { display:none; }
  .profile-coin-button { padding:6px 0 6px 8px; }
  .profile-coin-button b { font-size:16px; }
  .profile-coin-button .icon { width:18px; height:18px; }
  .profile-room { grid-template-columns:minmax(0,1fr); gap:28px; padding-top:24px; }
  .profile-look-heading h2 { font-size:24px; }
  .profile-look-status { max-width:none; font-size:10px; }
  .profile-space .profile-companion-stage { height:clamp(320px,110vw,470px); margin:10px 0 8px; }
  .profile-look-footer { gap:10px; }
  .profile-space .profile-primary { padding:10px 16px; min-height:46px; font-size:13px; }
  .profile-space .profile-companion-actions { gap:16px; }
  .profile-inventory-link { font-size:12px; }
  .profile-room-side { padding-top:0; }
  .profile-space .profile-pet-home { padding:20px; }
  .profile-pet-home > header h2 { font-size:20px; }
  .profile-pet-body { grid-template-columns:auto minmax(0,1fr); gap:16px; margin-top:14px; }
  .profile-space .profile-pet-portrait { width:48px; height:64px; }
  .profile-space .profile-pet-home:is([data-pet-state="preview"],[data-pet-state="owned"]) .profile-pet-body { grid-template-columns:minmax(0,.75fr) minmax(0,1fr); gap:16px; }
  .profile-space .profile-pet-home:is([data-pet-state="preview"],[data-pet-state="owned"]) .profile-pet-portrait { height:148px; }
  .profile-shop { padding:22px 4px; margin-top:20px; }
  .profile-room-note { margin-top:16px; font-size:10px; }
}
@media (max-width:359px) {
  body[data-view="profile"] .main { padding-right:16px; padding-left:16px; }
  .profile-space-bar { grid-template-columns:44px minmax(0,1fr) auto; gap:6px; }
  .profile-space-bar h1 { font-size:17px; }
  .profile-coin-button > span { gap:5px; }
  .profile-space .profile-companion-actions { gap:12px; }
  .profile-primary { padding-right:12px; padding-left:12px; }
  .profile-look-status { max-width:9em; }
}
@media (max-height:600px) and (min-width:701px) {
  .profile-space-bar { min-height:72px; }
  .profile-room { padding-top:24px; }
  .profile-space .profile-companion-stage { height:350px; }
}
@media (prefers-reduced-motion:reduce) {
  .profile-space :is(a,button) { transition:none; }
}

/* Hallmark · macrostructure: Workbench · theme: DESIGN.md / studied structure
 * Navigation: edge-aligned return and wallet. Footer: panel-local save controls.
 * Character room v2: original artwork, one stage, wardrobe opens alongside.
 * Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V5
 */
html:has(body[data-view="profile"]) { overflow-x:clip; }
body[data-view="profile"] { overflow-x:clip; background:var(--ui-white); }
body[data-view="profile"] .main { max-width:none; width:100%; padding:34px 40px 24px; margin-inline:auto; }
.character-room { --room-height:clamp(520px,calc(100dvh - 136px),780px); --room-gap:48px; min-width:0; font-family:var(--ui-font-body); }
.character-room :is(h1,h2,h3) { min-width:0; overflow-wrap:anywhere; font-style:normal; }
.character-room :is(button,summary,select,a) { white-space:nowrap; }
.character-room .profile-space-bar { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); min-height:80px; gap:16px; border-bottom:1px solid var(--ui-line); }
.character-room .profile-space-bar h1 { margin:0; font-family:var(--ui-font-body); font-size:17px; font-weight:500; letter-spacing:.08em; }
.character-room .profile-return { font-size:12px; min-height:44px; }
.character-room .profile-coin-button { min-height:52px; padding:4px 8px; border:0; }
.character-room .profile-coin-button b { font-size:17px; }
.character-room .profile-coin-button .icon { width:18px; height:18px; }
.character-room .profile-coin-button small { font-size:10px; }
.character-room :is(.profile-room,.closet-workspace) { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); gap:var(--room-gap); height:var(--room-height); min-height:0; padding:24px 0 0; }
.character-room :is(.profile-look,.closet-preview) { display:grid; grid-template-rows:44px minmax(0,1fr) 64px; min-width:0; min-height:0; border:0; background:var(--ui-white); }
.character-room .profile-look-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--ui-muted); font-size:12px; }
.character-room .profile-look-status { align-self:auto; padding:0; max-width:none; font-size:11px; }
.character-room .profile-companion-stage { position:relative; order:0; grid-area:2 / 1; height:100%; min-height:0; padding:0; margin:0; overflow:clip; border:0; border-radius:0; background:var(--ui-white); }
.character-room .profile-companion-stage > :is(.girl-dress-figure,.profile-companion-figure) { display:block; width:100%; height:100%; max-width:none; max-height:none; aspect-ratio:auto; margin:0; padding:0; object-fit:contain; }
.character-room .profile-look-footer { display:flex; justify-content:center; align-items:center; padding:0; color:var(--ui-muted); font-size:11px; }
.character-room .profile-room-side { display:flex; flex-direction:column; justify-content:center; align-items:stretch; gap:40px; min-width:0; padding:40px 16px 48px; }
.profile-welcome { display:grid; justify-items:start; gap:20px; }
.character-room .profile-welcome .eyebrow { margin:0; font-size:9px; letter-spacing:.12em; }
.profile-welcome h2 { margin:0; color:var(--ui-ink); font-family:var(--ui-font-display); font-size:clamp(28px,3.2vw,44px); font-weight:500; line-height:1.3; letter-spacing:.04em; }
.profile-welcome > p:not(.eyebrow) { margin:0; font-size:13px; color:var(--ui-muted); line-height:1.8; }
.character-room .profile-primary { display:inline-flex; align-items:center; gap:12px; min-height:48px; padding:10px 20px; border:1px solid var(--ui-border-strong); border-radius:var(--ui-radius); background:var(--ui-primary); color:var(--ui-accent); font-size:14px; font-weight:500; }
.character-room .profile-primary > .icon:last-child { margin-left:12px; }
.character-room .profile-pet-home { display:block; margin:0; padding:28px 0 0; border:0; border-top:1px solid var(--ui-line); border-radius:0; background:transparent; }
.character-room .profile-pet-home .profile-pet-body { display:grid; grid-template-columns:64px minmax(0,1fr); align-items:center; gap:16px; margin:0; }
.character-room .profile-pet-home .profile-pet-portrait { width:64px; height:84px; min-width:0; }
.character-room .profile-pet-home:is([data-pet-state="preview"],[data-pet-state="owned"]) .profile-pet-body { grid-template-columns:64px minmax(0,1fr); gap:16px; margin:0; }
.character-room .profile-pet-home:is([data-pet-state="preview"],[data-pet-state="owned"]) .profile-pet-portrait { width:64px; height:84px; }
.character-room .profile-pet-portrait .pet-portrait { max-width:100%; width:100%; height:100%; object-fit:contain; }
.character-room .profile-pet-copy h3 { margin:0 0 4px; font-family:var(--ui-font-body); font-weight:500; font-size:15px; line-height:1.5; }
.character-room .profile-pet-copy p { margin:0; font-size:11px; line-height:1.8; }
.character-room .profile-pet-link { min-height:44px; font-size:12px; }
.wardrobe-studio.character-room { display:block; height:auto; min-height:0; border:0; border-radius:0; background:var(--ui-white); }
.character-room .closet-preview { position:relative; }
.character-room .closet-view-controls { position:static; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0; min-width:0; }
.character-room .closet-character { flex:0 1 auto; margin:0; max-width:65%; }
.character-room .closet-character select { width:100%; max-width:100%; min-height:44px; padding:6px 24px 6px 0; border:1px solid transparent; border-radius:var(--ui-radius); background:transparent; color:var(--ui-muted); font-size:12px; text-overflow:ellipsis; }
.character-room .closet-view-controls button { min-height:44px; padding:0 10px; font-size:11px; }
.character-room .closet-preview .girl-fitting-stage { display:flex; align-items:center; justify-content:center; min-width:0; min-height:0; height:100%; padding:0; overflow:clip; background:var(--ui-white); }
.character-room .closet-preview .girl-dress-figure { display:block; width:100%; height:100%; max-width:none; max-height:none; aspect-ratio:auto; }
.character-room .closet-equipped { position:static; display:flex; flex-direction:row; width:auto; min-width:0; gap:12px; align-items:center; padding:8px 0; border:0; }
.character-room .closet-equipped-label { font-size:11px; white-space:nowrap; }
.character-room .closet-equipped-list { display:flex; flex-direction:row; flex:1; align-items:center; gap:8px; overflow-x:auto; overflow-y:clip; padding:2px; overscroll-behavior-x:contain; }
.character-room .closet-equipped-empty { display:inline; font-size:11px; }
.character-room .closet-equipped-list button { width:40px; height:40px; }
.character-room .closet-browser { display:grid; grid-template-rows:auto auto auto minmax(0,1fr) auto; min-width:0; min-height:0; padding:0; border:0; border-left:1px solid var(--ui-line); background:var(--ui-white); }
.character-room .closet-modes { display:flex; gap:8px; align-items:center; min-height:52px; padding:0 0 0 20px; border:0; }
.character-room .closet-modes > button { flex:none; justify-content:center; min-height:44px; gap:0; padding:4px 12px; font-size:15px; font-weight:400; }
.character-room .closet-modes > button[aria-pressed="true"] { font-weight:600; border-bottom-color:var(--ui-accent); }
.closet-collapse { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; margin-left:auto; padding:0 4px 0 8px; color:var(--ui-muted); font-size:11px; }
.closet-collapse .icon { width:15px; height:15px; }
.character-room .closet-categories { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:0; padding:8px 0 0 20px; overflow:visible; border-bottom:1px solid var(--ui-line); }
.character-room .closet-categories button { min-width:0; min-height:44px; padding:4px; font-size:12px; }
.character-room .closet-categories button[aria-pressed="true"] { background:transparent; }
.character-room .closet-filter { min-height:44px; padding:0 0 0 24px; font-size:10px; }
.character-room .closet-filter > button { min-height:44px; font-size:10px; }
.character-room .closet-sync-label { color:var(--ui-muted); font-size:10px; }
.character-room .closet-item-scroll { padding:4px 4px 20px 24px; scrollbar-gutter:stable; }
.character-room .closet-items { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 10px; align-items:start; }
.character-room .closet-product { border:1px solid var(--ui-line); border-radius:var(--ui-radius); background:var(--ui-white); overflow:clip; }
.character-room .closet-product:is(.is-wearing,.is-focused) { border-color:var(--ui-border-strong); }
.character-room .closet-product > .closet-item { padding:0 0 8px; background:var(--ui-white); }
.character-room .closet-product > .closet-item.is-wearing { background:var(--ui-soft); }
.character-room .closet-item-picture { height:104px; margin:0 0 8px; background:var(--ui-soft); }
.character-room .closet-item-name { font-size:11px; font-weight:400; line-height:1.5; padding:0 7px; }
.character-room .closet-item-check { right:5px; bottom:5px; width:20px; height:20px; }
.character-room .closet-item-check .icon { width:12px; height:12px; }
.character-room .closet-card-footer { min-height:36px; gap:2px; padding:0 6px; border:0; flex-wrap:nowrap; align-items:center; }
.character-room .closet-card-price { min-width:0; color:var(--ui-warm-ink); font-size:10px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.character-room .closet-card-footer > button { min-height:36px; padding:0 2px; font-size:10px; }
.character-room .closet-card-footer > [data-coin-buy] { color:var(--ui-accent); white-space:nowrap; }
.character-room .closet-card-footer > [data-coin-buy]:not(:disabled) { background:transparent; border:0; border-radius:0; }
.character-room .closet-card-footer > button .icon { width:10px; height:10px; }
.character-room .closet-product .closet-colors { gap:0; padding:0 2px 2px; }
.character-room .closet-product .closet-colors button { flex:1; min-width:0; min-height:36px; gap:3px; padding:3px 0; font-size:9px; }
.character-room .closet-savebar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:center; padding:12px 0 0 24px; border-top:1px solid var(--ui-line); border-radius:0; background:var(--ui-white); }
.character-room .closet-savebar .girl-fitting-status { flex:none; font-size:11px; line-height:1.5; }
.character-room .closet-savebar .girl-fitting-status > span { display:none; }
.character-room .closet-save-actions { position:relative; width:auto; gap:6px; }
.character-room .closet-save-actions > button,.character-room .closet-more summary { min-height:44px; padding:6px 10px; border:1px solid transparent; font-size:12px; background:transparent; }
.character-room .closet-save-actions > .closet-save { flex:none; min-width:76px; padding:6px 14px; border-color:var(--ui-border-strong); background:var(--ui-primary); }
.character-room .closet-more > div { right:0; left:auto; max-width:min(300px,calc(100vw - 32px)); white-space:normal; }
.character-room .closet-preview-disclaimer { white-space:normal; }
.character-room :is(a,button,summary,select):focus-visible { outline:2px solid var(--ui-accent); outline-offset:2px; }
.character-room :is(button,summary,a):active { background:var(--ui-pressed); }
.character-room button:disabled { opacity:.5; cursor:not-allowed; }
@media (hover:hover) {
  .character-room :is(.profile-primary,.profile-coin-button,.closet-collapse,.closet-character select):hover { background:var(--ui-soft); }
  .character-room .closet-product:hover { border-color:var(--ui-border-strong); }
}
@media (max-width:1100px) {
  body[data-view="profile"] .main { padding:30px 28px 20px; }
  .character-room { --room-gap:28px; }
  .character-room :is(.profile-room,.closet-workspace) { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); }
  .character-room .closet-item-picture { height:88px; }
  .character-room .profile-room-side { padding-inline:8px; }
}
@media (max-width:800px) {
  body[data-view="profile"] .main { padding:25px 20px 16px; }
  .character-room .profile-space-bar { min-height:68px; gap:8px; }
  .character-room .profile-space-bar h1 { font-size:16px; letter-spacing:.04em; }
  .character-room .profile-return { width:auto; padding:0; font-size:11px; }
  .character-room .profile-return span { display:inline; }
  .character-room .profile-coin-button { padding:4px 0 4px 4px; }
  .character-room .profile-coin-button b { font-size:15px; }
  .character-room .profile-coin-button > span { gap:4px; }
  .character-room .profile-coin-button .icon { width:15px; height:15px; }
  .character-room :is(.profile-room,.closet-workspace) { height:auto; display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto; gap:0; padding-top:12px; }
  .character-room :is(.profile-look,.closet-preview) { height:clamp(340px,calc(100svh - 336px),560px); grid-template-rows:44px minmax(0,1fr) 52px; border:0; }
  .character-room .profile-look-heading { font-size:11px; }
  .character-room .profile-look-footer { font-size:10px; }
  .character-room .profile-room-side { padding:12px 0 0; gap:24px; }
  .profile-welcome { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; align-items:center; }
  .character-room .profile-welcome .eyebrow { display:none; }
  .profile-welcome h2 { font-size:24px; grid-column:1; grid-row:1; }
  .profile-welcome > p:not(.eyebrow) { grid-column:1; grid-row:2; font-size:11px; }
  .character-room .profile-primary { grid-column:2; grid-row:1 / span 2; min-height:48px; padding:8px 14px; gap:8px; font-size:12px; }
  .character-room .profile-primary > .icon:first-child { display:none; }
  .character-room .profile-primary > .icon:last-child { margin-left:0; }
  .character-room .profile-pet-home { padding:20px 0 0; }
  .character-room .profile-pet-home .profile-pet-body { grid-template-columns:48px minmax(0,1fr); gap:14px; }
  .character-room .profile-pet-home .profile-pet-portrait { width:48px; height:64px; }
  .character-room .profile-pet-home:is([data-pet-state="preview"],[data-pet-state="owned"]) .profile-pet-body { grid-template-columns:48px minmax(0,1fr); gap:14px; }
  .character-room .profile-pet-home:is([data-pet-state="preview"],[data-pet-state="owned"]) .profile-pet-portrait { width:48px; height:64px; }
  .character-room .closet-character { max-width:65%; }
  .character-room .closet-character select { font-size:11px; }
  .character-room .closet-equipped { padding:4px 0; gap:8px; }
  .character-room .closet-equipped-list button { width:36px; height:36px; }
  .character-room .closet-browser { display:grid; grid-template-rows:auto auto auto auto auto; border:0; border-top:1px solid var(--ui-line); padding-top:8px; }
  .character-room .closet-modes { padding:0; min-height:52px; gap:8px; }
  .character-room .closet-modes > button { font-size:15px; padding-inline:12px; }
  .character-room .closet-categories { padding:0; }
  .character-room .closet-categories button { font-size:12px; }
  .character-room .closet-filter { padding:0 2px; font-size:11px; }
  .character-room .closet-filter > button { font-size:11px; }
  .character-room .closet-item-scroll { overflow:visible; min-height:180px; max-height:none; padding:4px 2px 20px; scrollbar-gutter:auto; }
  .character-room .closet-items { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 8px; }
  .character-room .closet-item-picture { height:104px; }
  .character-room .closet-card-footer { min-height:44px; padding:0 5px; }
  .character-room .closet-card-footer > button { min-height:44px; }
  .character-room .closet-product .closet-colors button { min-height:44px; }
  .character-room .closet-savebar { position:relative; bottom:auto; grid-template-columns:minmax(0,1fr) auto; width:100%; padding:12px 0 max(12px,env(safe-area-inset-bottom)); gap:8px; }
  .character-room .closet-save-actions { width:auto; gap:4px; }
  .character-room .closet-save-actions > button,.character-room .closet-more summary { min-height:44px; padding:6px 10px; font-size:12px; }
  .character-room .closet-save-actions > .closet-save { min-width:78px; }
  .character-room .closet-more > div { left:auto; right:0; }
}
@media (max-width:359px) {
  body:is([data-view="profile"],[data-view="wardrobe"],[data-view="pets"]) .main { padding-inline:14px; }
  .character-room .profile-return { width:44px; }
  .character-room .profile-return span { display:none; }
  .character-room .profile-space-bar { grid-template-columns:44px minmax(0,1fr) auto; }
  .character-room .profile-space-bar h1 { text-align:center; font-size:15px; }
  .character-room .closet-item-picture { height:84px; }
  .character-room .closet-card-footer { padding-inline:3px; }
  .character-room .closet-card-footer > button { font-size:9px; }
  .character-room .closet-card-footer .icon { display:none; }
  .character-room .closet-item-name { padding-inline:5px; font-size:10px; }
  .character-room .closet-save-actions > button,.character-room .closet-more summary { padding-inline:8px; }
}
@media (prefers-reduced-motion:reduce) {
  .character-room :is(a,button,summary,select) { transition:none; animation:none; }
}

/* Pet room v2: the same quiet workbench, original pet art and independent drafts. */
.pet-studio.character-room { display:block; height:auto; min-height:0; border:0; border-radius:0; background:var(--ui-white); }
.character-room .pet-workspace { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); grid-template-rows:minmax(0,1fr); gap:var(--room-gap); height:var(--room-height); min-width:0; min-height:0; padding:24px 0 0; }
.character-room .pet-showcase { display:grid; grid-template-rows:44px minmax(0,1fr) 64px; min-width:0; min-height:0; padding:0; border:0; background:var(--ui-white); }
.pet-showcase-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; min-width:0; }
.pet-showcase-heading h2 { margin:0; color:var(--ui-muted); font-family:var(--ui-font-body); font-size:12px; font-weight:400; }
.pet-character-link { display:inline-flex; align-items:center; gap:6px; min-height:44px; color:var(--ui-accent); font-size:11px; }
.pet-character-link .icon { width:14px; height:14px; }
.character-room .pet-stage { display:grid; place-items:center; min-width:0; min-height:0; height:100%; padding:0; background:var(--ui-white); }
.character-room .pet-stage > .pet-portrait { display:block; width:100%; height:100%; max-width:none; max-height:100%; object-fit:contain; object-position:center; }
.character-room .pet-stage-caption { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:4px; padding:4px 0; min-width:0; }
.character-room .pet-stage-caption h2 { margin:0; font-family:var(--ui-font-body); font-size:15px; font-weight:500; line-height:1.5; }
.character-room .pet-stage-caption p { display:block; margin:0; font-size:11px; line-height:1.6; color:var(--ui-muted); }
.character-room .pet-empty { padding:24px; }
.character-room .pet-empty h2 { font-family:var(--ui-font-body); font-size:22px; font-weight:500; }
.character-room .pet-empty p { font-size:12px; }
.character-room .pet-browser { display:grid; grid-template-rows:auto auto minmax(0,1fr) auto; min-width:0; min-height:0; border-left:1px solid var(--ui-line); }
.character-room .pet-modes { padding-left:20px; }
.pet-filter { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:4px 12px; min-height:44px; padding:0 4px 0 24px; color:var(--ui-muted); font-size:10px; }
.character-room .pet-selector { min-width:0; min-height:0; padding:4px 4px 20px 24px; overflow-y:auto; scrollbar-gutter:stable; }
.character-room .pet-options { grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:12px 10px; }
.pet-product { min-width:0; overflow:clip; border:1px solid var(--ui-line); border-radius:var(--ui-radius); background:var(--ui-white); }
.pet-product.is-selected { border-color:var(--ui-border-strong); }
.character-room .pet-option { display:block; width:100%; min-width:0; min-height:0; padding:0 0 8px; border:0; border-radius:0; background:var(--ui-white); color:var(--ui-ink); font-size:11px; }
.character-room .pet-option[aria-pressed="true"] { background:var(--ui-soft); color:var(--ui-accent); }
.character-room .pet-product :is(.pet-option,[data-coin-buy]):focus-visible { outline:2px solid var(--ui-accent); outline-offset:-3px; }
.pet-option-picture { position:relative; display:grid; place-items:center; height:132px; margin-bottom:8px; background:var(--ui-soft); }
.pet-option-picture > img { display:block; width:100%; height:100%; min-width:0; min-height:0; object-fit:contain; }
.pet-option-name { display:block; padding:0 6px; line-height:1.5; }
.character-room .pet-option-check { top:auto; right:5px; bottom:5px; width:20px; height:20px; border-radius:50%; background:var(--ui-white); }
.character-room .pet-option[aria-pressed="true"] .pet-option-check { display:grid; place-items:center; }
.character-room .pet-option-check .icon { width:12px; height:12px; }
.character-room .pet-card-footer { display:flex; justify-content:space-between; gap:2px; }
.pet-unlock-tag { display:inline-flex; align-items:center; min-height:36px; color:var(--ui-muted); font-size:10px; white-space:nowrap; }
.character-room .pet-none { justify-content:center; min-height:44px; margin:20px 0; padding:6px 8px; background:var(--ui-white); font-size:12px; }
.character-room .pet-none[aria-pressed="true"] { background:var(--ui-soft); }
.character-room .pet-unlock-note { padding:14px 0; border:0; border-top:1px solid var(--ui-line); background:transparent; font-size:12px; line-height:1.8; }
.character-room .pet-unlock-note b { font-weight:500; }
.character-room .pet-unlock-note p { margin-top:6px; color:var(--ui-muted); font-size:11px; }
.character-room .pet-preview-note { margin-top:0; font-size:11px; line-height:1.8; }
.pet-inventory-empty { padding:28px 0 12px; }
.pet-inventory-empty h2 { margin:0; font-family:var(--ui-font-body); font-size:18px; font-weight:500; }
.pet-inventory-empty p { margin:10px 0 14px; color:var(--ui-muted); font-size:12px; line-height:1.8; }
.pet-inventory-empty button { min-height:44px; padding:8px 14px; border:1px solid var(--ui-border-strong); border-radius:var(--ui-radius); background:var(--ui-primary); color:var(--ui-accent); font-size:12px; }
.character-room .pet-savebar { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; padding:12px 0 0 24px; border-top:1px solid var(--ui-line); background:var(--ui-white); }
.character-room .pet-save-status { font-size:11px; }
.character-room .pet-save-actions { gap:6px; }
.character-room .pet-save-actions > button { min-height:44px; padding:6px 10px; border:1px solid transparent; background:transparent; font-size:12px; }
.character-room .pet-save-actions > .pet-save { min-width:76px; padding:6px 14px; border-color:var(--ui-border-strong); background:var(--ui-primary); font-weight:500; }
@media (hover:hover) {
  .character-room .pet-product:hover { border-color:var(--ui-border-strong); }
  .character-room .pet-option:hover,.pet-character-link:hover { background:var(--ui-soft); }
}
@media (max-width:1100px) {
  .character-room .pet-workspace { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); }
  .pet-option-picture { height:116px; }
}
@media (max-width:800px) {
  .character-room .pet-workspace { height:auto; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto; gap:0; padding-top:12px; }
  .character-room .pet-showcase { height:clamp(340px,calc(100svh - 336px),560px); grid-template-rows:44px minmax(0,1fr) 52px; }
  .character-room .pet-showcase-heading h2 { font-size:11px; }
  .character-room .pet-stage-caption h2 { font-size:14px; }
  .character-room .pet-stage-caption p { font-size:10px; }
  .character-room .pet-browser { grid-template-rows:auto auto auto auto; padding-top:8px; border:0; border-top:1px solid var(--ui-line); }
  .character-room .pet-modes { padding:0; }
  .pet-filter { padding:0 2px; font-size:11px; }
  .character-room .pet-selector { max-height:none; padding:4px 2px 20px; overflow:visible; scrollbar-gutter:auto; }
  .character-room .pet-options { gap:12px 8px; }
  .pet-option-picture { height:124px; }
  .pet-unlock-tag { min-height:44px; }
  .character-room .pet-unlock-note { font-size:12px; }
  .character-room .pet-savebar { bottom:auto; padding:12px 0 max(12px,env(safe-area-inset-bottom)); }
}
@media (max-width:359px) {
  .pet-option-picture { height:100px; }
  .character-room .pet-option { font-size:10px; }
  .pet-unlock-tag { font-size:9px; }
}

/* Identity v1 · existing paper palette · original full artwork, separate saved identity.
 * Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4
 */
.character-room .profile-room { height:auto; min-height:var(--room-height); }
.character-room .profile-look { height:calc(var(--room-height) - 24px); }
.character-room .profile-room-side { padding-block:24px; gap:24px; }
.profile-identity-heading { display:flex; align-items:center; flex-wrap:wrap; gap:4px 16px; min-width:0; max-width:100%; }
.profile-identity-heading h2 { overflow-wrap:anywhere; }
.profile-name-button { display:inline-flex; align-items:center; justify-content:center; flex:none; min-height:44px; padding:6px 8px; border:0; border-radius:var(--ui-radius); background:transparent; color:var(--ui-accent); font-size:12px; white-space:nowrap; }
.character-room .profile-pet-home:is([data-pet-state="preview"],[data-pet-state="owned"]) .profile-pet-body { grid-template-columns:minmax(0,1fr); gap:12px; }
.character-room .profile-pet-home:is([data-pet-state="preview"],[data-pet-state="owned"]) .profile-pet-portrait { width:100%; height:clamp(250px,30vh,330px); }
.character-room .profile-pet-home:is([data-pet-state="preview"],[data-pet-state="owned"]) .profile-pet-copy { text-align:center; }
.character-room .profile-pet-copy h3 { font-size:20px; overflow-wrap:anywhere; }
.character-room .profile-pet-copy .pet-appearance-label { margin-bottom:4px; font-size:11px; }
.profile-pet-actions { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:4px 16px; }
.profile-pet-home:is([data-pet-state="none"],[data-pet-state="unselected"]) .profile-pet-actions { justify-content:flex-start; }
.pet-name-row { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:0 8px; min-width:0; }
.pet-appearance-label { color:var(--ui-muted); font-size:10px; line-height:1.6; }
.character-room .pet-showcase { grid-template-rows:44px minmax(0,1fr) 104px; }
.character-room .pet-stage-caption { gap:0; }
.character-room .pet-stage-caption .profile-name-button { font-size:11px; }
.profile-setup-content { max-width:880px; margin:0 auto; padding:32px 0; }
.profile-setup-steps { display:flex; align-items:center; justify-content:center; gap:32px; margin:0 0 44px; padding:0; list-style:none; color:var(--ui-muted); font-size:12px; }
.profile-setup-steps li { display:flex; align-items:center; gap:8px; }
.profile-setup-steps li > span { display:grid; place-items:center; width:24px; height:24px; border:1px solid var(--ui-line); border-radius:50%; font-variant-numeric:tabular-nums; }
.profile-setup-steps [aria-current="step"] { color:var(--ui-accent); font-weight:600; }
.profile-setup-steps [aria-current="step"] > span { border-color:var(--ui-border-strong); background:var(--ui-primary); }
.profile-setup-heading { margin-bottom:28px; text-align:center; }
.profile-setup-heading > p { margin:0 0 8px; color:var(--ui-muted); font-size:12px; }
.profile-setup-heading h2 { margin:0; color:var(--ui-ink); font-family:var(--ui-font-display); font-size:clamp(24px,3vw,32px); font-weight:500; line-height:1.5; }
.profile-gender-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; max-width:580px; margin:0 auto; }
.profile-gender-options > button { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; min-width:0; min-height:220px; padding:24px 12px; border:1px solid var(--ui-line); border-radius:var(--ui-card-radius); background:var(--ui-white); color:var(--ui-ink); }
.profile-gender-options strong { font-size:22px; font-weight:500; }
.profile-gender-options button > span:last-of-type { font-size:12px; color:var(--ui-muted); }
.profile-gender-symbol { display:grid; place-items:center; width:56px; height:56px; border-radius:50%; background:var(--ui-soft); color:var(--ui-accent); }
.profile-gender-symbol .icon { width:28px; height:28px; }
.profile-gender-options button > .icon { position:absolute; top:14px; right:14px; color:var(--ui-accent); }
.profile-gender-options > button[aria-pressed="true"],.profile-character-options > button[aria-pressed="true"] { border-color:var(--ui-border-strong); background:var(--ui-soft); }
.profile-gender-options > button:disabled { opacity:1; color:var(--ui-muted); background:var(--ui-wash); }
.profile-character-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.profile-character-options > button { display:flex; flex-direction:column; align-items:center; gap:6px; min-width:0; padding:12px 8px 16px; border:1px solid var(--ui-line); border-radius:var(--ui-radius); background:var(--ui-white); color:var(--ui-ink); }
.profile-character-options strong { font-size:14px; font-weight:500; }
.profile-character-options button > span:last-child { font-size:11px; color:var(--ui-muted); }
.profile-character-picture { position:relative; display:grid; place-items:center; width:100%; height:320px; margin-bottom:8px; }
.profile-character-picture > img { display:block; width:100%; height:100%; object-fit:contain; }
.profile-character-check { position:absolute; right:4px; bottom:4px; display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--ui-primary); color:var(--ui-accent); }
.profile-character-check .icon { width:18px; height:18px; }
.profile-setup-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:24px; }
.profile-setup-actions button,.profile-name-dialog footer button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:10px 18px; border:1px solid var(--ui-line); border-radius:var(--ui-radius); background:var(--ui-white); color:var(--ui-accent); font-size:13px; white-space:nowrap; }
button.profile-setup-primary { border:1px solid var(--ui-border-strong); background:var(--ui-primary); color:var(--ui-accent); }
.profile-setup-primary .icon { width:16px; height:16px; }
.profile-setup-name { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:32px; max-width:680px; margin:0 auto; }
.profile-setup-chosen { min-width:0; height:360px; }
.profile-setup-chosen img { display:block; width:100%; height:100%; object-fit:contain; }
.profile-name-fields { min-width:0; }
.profile-name-fields label,.profile-name-dialog label { display:block; margin-bottom:10px; color:var(--ui-ink); font-size:15px; }
.profile-name-fields input,.profile-name-dialog input { display:block; width:100%; min-width:0; min-height:50px; padding:10px 12px; border:1px solid var(--ui-border-strong); border-radius:var(--ui-radius); background:var(--ui-white); color:var(--ui-ink); font-family:var(--ui-font-body); font-size:16px; line-height:1.5; }
.profile-name-fields input[aria-invalid="true"],.profile-name-dialog input[aria-invalid="true"] { border-color:var(--ui-error); }
.profile-name-fields > p,.profile-name-dialog form > p { margin:8px 0 0; color:var(--ui-muted); font-size:12px; line-height:1.8; }
.profile-form-error { min-height:22px; margin:12px 0 0; color:var(--ui-error); font-size:12px; line-height:1.8; }
.profile-name-fields > .profile-form-error,.profile-name-dialog form > .profile-form-error { color:var(--ui-error); }
.profile-name-dialog { width:min(440px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); padding:24px; border:1px solid var(--ui-line); border-radius:var(--ui-card-radius); overflow-y:auto; background:var(--ui-white); color:var(--ui-ink); font-family:var(--ui-font-body); }
.profile-name-dialog::backdrop { background:var(--ui-scrim); }
.profile-name-dialog header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
.profile-name-dialog h2 { min-width:0; margin:0; overflow-wrap:anywhere; font-family:var(--ui-font-body); font-size:20px; font-weight:500; font-style:normal; }
.profile-name-dialog header button { display:grid; place-items:center; flex:none; width:44px; height:44px; padding:0; border:0; border-radius:var(--ui-radius); background:transparent; color:var(--ui-accent); }
.profile-name-dialog footer { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:12px; margin-top:20px; }
.account-access-dialog form > footer { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:12px; margin-top:20px; }
.account-access-dialog form > footer button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:10px 18px; border:1px solid var(--ui-line); border-radius:var(--ui-radius); background:var(--ui-white); color:var(--ui-accent); font-size:13px; white-space:nowrap; }
.profile-name-pet { display:grid; justify-items:center; gap:4px; margin-bottom:16px; }
.profile-name-pet img { display:block; width:100%; height:150px; object-fit:contain; }
.profile-name-pet p { margin:0; color:var(--ui-muted); font-size:11px; }
.profile-name-acquired { margin:0 0 12px; color:var(--ui-success); font-size:12px; line-height:1.8; }
.profile-name-dialog :is(input,button):focus-visible,.profile-setup input:focus-visible { outline:2px solid var(--ui-accent); outline-offset:3px; }
.profile-name-dialog button:active { background:var(--ui-pressed); }
.profile-name-dialog button:disabled { opacity:.5; cursor:not-allowed; }
@media (hover:hover) {
  .profile-name-button:hover,.profile-name-dialog button:hover { background:var(--ui-soft); }
  .profile-setup :is(.profile-character-options,.profile-gender-options) > button:not(:disabled):hover { border-color:var(--ui-border-strong); }
  .profile-setup-actions button:not(:disabled):hover { background:var(--ui-soft); }
}
@media (max-width:800px) {
  .character-room .profile-room { min-height:0; }
  .character-room .profile-look { height:clamp(340px,calc(100svh - 336px),560px); }
  .character-room .profile-room-side { padding:12px 0 0; }
  .profile-welcome { grid-template-columns:minmax(0,1fr); gap:4px; }
  .profile-welcome .profile-identity-heading { grid-column:1; grid-row:1; gap:4px 12px; }
  .profile-welcome .profile-identity-heading h2 { font-size:26px; }
  .profile-welcome > p:not(.eyebrow) { grid-row:2; font-size:12px; }
  .character-room .profile-primary { grid-column:1; grid-row:3; margin-top:12px; }
  .character-room .profile-pet-home:is([data-pet-state="preview"],[data-pet-state="owned"]) .profile-pet-portrait { height:300px; max-width:380px; margin-inline:auto; }
  .character-room .pet-showcase { height:clamp(388px,calc(100svh - 280px),600px); grid-template-rows:44px minmax(0,1fr) 104px; }
  .profile-setup-content { padding:24px 0; }
  .profile-setup-steps { gap:16px; margin-bottom:28px; font-size:11px; }
  .profile-setup-steps li { gap:5px; }
  .profile-setup-steps li > span { width:22px; height:22px; }
  .profile-setup-heading { margin-bottom:24px; }
  .profile-character-options { gap:8px; }
  .profile-character-options > button { padding:8px 4px 12px; }
  .profile-character-picture { height:clamp(145px,40vw,260px); }
  .profile-character-options button > span:last-child { font-size:10px; white-space:normal; }
  .profile-setup-name { grid-template-columns:minmax(0,1fr); gap:20px; max-width:400px; }
  .profile-setup-chosen { height:240px; }
}
@media (max-width:359px) {
  .profile-setup-steps { gap:10px; font-size:10px; }
  .profile-gender-options { gap:12px; }
  .profile-gender-options > button { min-height:200px; padding-inline:8px; }
  .profile-gender-options button > span:last-of-type { font-size:10px; }
  .profile-setup-actions button { padding-inline:12px; font-size:12px; }
  .profile-name-dialog { padding:16px; }
}

/* Keep appearance changes separate from free outfit editing. */
.profile-change-button { display:inline-flex; align-items:center; gap:12px; min-height:44px; margin-top:-12px; padding:4px 0; border:0; background:transparent; color:var(--ui-accent); font-size:12px; }
.profile-change-button > span { color:var(--ui-muted); font-size:11px; }
.closet-current-look { color:var(--ui-muted); font-size:12px; }
.profile-character-dialog { width:min(760px,calc(100vw - 32px)); }
.profile-character-note { margin:12px 0 0; color:var(--ui-muted); font-size:12px; line-height:1.8; text-align:center; }
.profile-character-picture > .girl-dress-figure { display:block; width:100%; height:100%; max-width:none; max-height:none; }
.profile-character-dialog .profile-character-picture { height:280px; }
.profile-character-confirm-picture { height:clamp(160px,34dvh,300px); }
.profile-character-confirm-picture > .girl-dress-figure { display:block; width:100%; height:100%; max-height:none; max-width:none; }
.profile-character-feedback { min-height:22px; margin:12px 0 0; color:var(--ui-error); font-size:12px; line-height:1.8; }
.profile-character-dialog .profile-character-options > button:focus-visible { outline-offset:-4px; }
.profile-character-dialog footer .profile-setup-primary { border-color:var(--ui-border-strong); background:var(--ui-primary); color:var(--ui-accent); }
.profile-character-feedback[role="status"] { color:var(--ui-muted); }
.character-room .closet-trial-note,.character-room .closet-save-error { grid-column:1 / -1; margin:0; white-space:normal; font-size:11px; line-height:1.7; }
.character-room .closet-trial-note { color:var(--ui-muted); }
.character-room .closet-save-error { color:var(--ui-error); }
.closet-save-error:empty { display:none; }
@media (max-width:800px) {
  .profile-change-button { grid-column:1; grid-row:4; margin-top:0; }
  .profile-character-dialog .profile-character-picture { height:clamp(120px,34vw,240px); }
}
@media (max-width:359px) {
  .profile-character-dialog footer { gap:8px; }
  .profile-character-dialog footer button { padding-inline:12px; font-size:12px; }
}
