/* Only the isolated page shell and #pc-demo subtree are styled. */
html, body.pc-demo-page { min-height: 100%; margin: 0; }
body.pc-demo-page { background: #100c18; }
.pc-demo, .pc-demo * { box-sizing: border-box; }
.pc-demo { min-height: 100dvh; color: var(--pc-text); font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif; background: radial-gradient(ellipse at 18% 2%, rgba(109, 56, 128, .32), transparent 43%), radial-gradient(ellipse at 95% 90%, rgba(156, 59, 110, .14), transparent 40%), var(--pc-bg); }
.pc-demo button, .pc-demo input { font: inherit; }
.pc-demo button { cursor: pointer; }
.pc-demo :is(button, input):focus-visible { outline: 2px solid var(--pc-ring); outline-offset: 3px; }
.pc-demo .pc-page { position: relative; width: min(100%, 550px); min-height: 100dvh; margin: auto; display: flex; flex-direction: column; padding-top: var(--pc-safe-top); isolation: isolate; }
.pc-demo .pc-provisional { padding: 8px 16px; min-height: 32px; text-align: center; color: #e8bfd4; background: rgba(82, 37, 67, .48); border-bottom: 1px solid rgba(250, 178, 214, .15); font-size: 11px; letter-spacing: .03em; }
.pc-demo .pc-content { display: flex; flex: 1; min-height: 0; flex-direction: column; padding: 0 22px 120px; }
.pc-demo .pc-mast { padding-top: 30px; display: flex; align-items: center; justify-content: space-between; }
.pc-demo .pc-brand { display: flex; align-items: center; gap: 12px; }
.pc-demo .pc-brand-mark { width: 48px; height: 48px; border-radius: 16px; box-shadow: 0 8px 22px rgba(212, 125, 178, .19); }
.pc-demo .pc-brand-words { display: flex; flex-direction: column; gap: 3px; }
.pc-demo .pc-eyebrow { color: var(--pc-accent); font-size: 10px; letter-spacing: .17em; font-weight: 750; }
.pc-demo .pc-title { margin: 0; line-height: 1.04; font-size: 24px; letter-spacing: -.04em; }
.pc-demo .pc-avatar { display: inline-grid; flex: 0 0 auto; width: 54px; height: 54px; place-items: center; border-radius: 20px; font-size: 19px; font-weight: 700; color: #fff7fc; background: linear-gradient(135deg, #a16094, #59416f); }
.pc-demo .pc-avatar-me { width: 39px; height: 39px; border-radius: 14px; background: #32233e; color: #e8c8df; border: 1px solid var(--pc-stroke); font-size: 14px; }
.pc-demo .pc-tone-rose { background: linear-gradient(135deg, #bf6e9f, #603d78); }
.pc-demo .pc-tone-purple { background: linear-gradient(135deg, #805dba, #403961); }
.pc-demo .pc-tone-blue { background: linear-gradient(135deg, #5886ad, #55467c); }
.pc-demo .pc-tone-gold { background: linear-gradient(135deg, #b98b79, #624a75); }
.pc-demo .pc-intro { margin: 36px 0 23px; }
.pc-demo .pc-intro h2 { margin: 0 0 7px; font-size: 30px; letter-spacing: -.045em; font-weight: 730; }
.pc-demo .pc-intro p { margin: 0; color: var(--pc-secondary); font-size: 13px; }
.pc-demo .pc-search { height: 48px; background: #292037; border: 1px solid var(--pc-stroke); border-radius: 17px; display: flex; align-items: center; gap: 9px; padding: 0 16px; color: var(--pc-subtle); }
.pc-demo .pc-search > span { font-size: 27px; line-height: 1; transform: translateY(-2px); }
.pc-demo .pc-search-input { border: none; outline: none; width: 100%; min-width: 0; background: transparent; color: var(--pc-text); font-size: 16px; }
.pc-demo .pc-search-input::placeholder { color: #b3a3c0; }
.pc-demo .pc-section-head { margin: 34px 0 15px; display: flex; align-items: baseline; justify-content: space-between; }
.pc-demo .pc-section-head h3 { margin: 0; font-size: 18px; font-weight: 750; }
.pc-demo .pc-section-head span { color: var(--pc-subtle); font-size: 11px; }
.pc-demo .pc-room-list { overflow: auto; display: flex; flex-direction: column; gap: 8px; padding-bottom: 10px; }
.pc-demo .pc-room { display: flex; gap: 13px; align-items: center; width: 100%; min-height: 83px; padding: 12px 13px; text-align: left; border: 1px solid rgba(251, 226, 255, .07); border-radius: 20px; background: rgba(44, 33, 59, .93); color: inherit; transition: transform var(--pc-motion), background var(--pc-motion); }
.pc-demo .pc-room:active { transform: scale(.987); background: #3d2b50; }
.pc-demo .pc-room-copy { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pc-demo .pc-room-title, .pc-demo .pc-room-preview { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.pc-demo .pc-room-title strong { font-size: 14px; font-weight: 720; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pc-demo .pc-room-title time { color: var(--pc-subtle); font-size: 11px; flex: 0 0 auto; }
.pc-demo .pc-room-preview { color: var(--pc-secondary); font-size: 12px; }
.pc-demo .pc-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-demo .pc-unread { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--pc-accent); color: #362036; font-size: 11px; font-weight: 800; }
.pc-demo .pc-nav-slot { position: fixed; z-index: 3; bottom: calc(14px + var(--pc-safe-bottom)); left: 50%; transform: translateX(-50%); width: min(calc(100% - 42px), 500px); }
.pc-demo .pc-nav-slot[hidden] { display: none; }
.pc-demo .pc-floating-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; min-height: 72px; padding: 7px; border-radius: 27px; border: 1px solid rgba(255, 229, 255, .23); background: var(--pc-glass); backdrop-filter: blur(24px) saturate(145%); -webkit-backdrop-filter: blur(24px) saturate(145%); box-shadow: 0 14px 38px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12); }
.pc-demo .pc-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 0; border: 0; border-radius: 20px; background: transparent; color: #c9b9d9; min-width: 0; }
.pc-demo .pc-tab.is-active { background: linear-gradient(135deg, rgba(252, 192, 226, .23), rgba(217, 140, 213, .15)); color: #ffe2f0; box-shadow: inset 0 0 0 1px rgba(255,214,238,.17); }
.pc-demo .pc-tab-icon { height: 25px; font-size: 22px; line-height: 25px; }
.pc-demo .pc-tab-label { font-size: 10px; font-weight: 700; white-space: nowrap; }
.pc-demo .pc-conversation { display: flex; flex: 1; min-height: 0; flex-direction: column; margin: 0 -22px; }
.pc-demo .pc-content:has(.pc-conversation) { padding-bottom: 0; }
.pc-demo .pc-conversation-head { display: flex; align-items: center; padding: 12px 17px; gap: 12px; border-bottom: 1px solid var(--pc-stroke); min-height: 75px; }
.pc-demo .pc-back { display: grid; place-items: center; border: 0; background: transparent; color: var(--pc-accent-strong); width: 38px; height: 44px; font-size: 38px; }
.pc-demo .pc-room-identity { display: flex; align-items: center; gap: 10px; flex: 1; font-size: 14px; }
.pc-demo .pc-room-identity .pc-avatar { width: 42px; height: 42px; border-radius: 15px; font-size: 16px; }
.pc-demo .pc-demo-tag { font-size: 10px; font-weight: 700; color: var(--pc-accent); border: 1px solid rgba(245, 175, 215, .35); padding: 5px 7px; border-radius: 99px; }
.pc-demo .pc-messages { display: flex; flex-direction: column; gap: 15px; justify-content: flex-end; flex: 1; padding: 26px 20px 18px; min-height: 260px; overflow: auto; }
.pc-demo .pc-message { max-width: 79%; align-self: flex-start; background: #342844; border-radius: 20px 20px 20px 7px; padding: 11px 14px 9px; box-shadow: 0 7px 16px rgba(0,0,0,.13); }
.pc-demo .pc-message.is-own { align-self: flex-end; background: var(--pc-outgoing); border-radius: 20px 20px 7px 20px; }
.pc-demo .pc-message-sender { color: var(--pc-accent-strong); font-size: 11px; }
.pc-demo .pc-message p { margin: 5px 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.pc-demo .pc-message time { display: block; color: #e5cfe3; font-size: 10px; text-align: right; }
.pc-demo .pc-compose { display: flex; align-items: center; gap: 9px; padding: 12px 15px calc(12px + var(--pc-safe-bottom)); background: #1e1728; border-top: 1px solid var(--pc-stroke); }
.pc-demo .pc-compose-input { flex: 1; min-width: 0; height: 44px; border-radius: 22px; border: 1px solid var(--pc-stroke); padding: 0 16px; background: #30243e; color: var(--pc-text); font-size: 16px; }
.pc-demo .pc-compose-input::placeholder { color: #b8a8c2; }
.pc-demo .pc-send { display: grid; place-items: center; height: 44px; width: 44px; border: 0; border-radius: 50%; background: var(--pc-accent); color: #39263a; font-size: 24px; font-weight: 800; }
.pc-demo .pc-empty { color: var(--pc-secondary); padding: 18px 8px; text-align: center; }
.pc-demo .pc-placeholder { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 16px; padding: 25px; }
.pc-demo .pc-placeholder-symbol { display: grid; place-items: center; font-size: 40px; width: 90px; height: 90px; border-radius: 27px; color: var(--pc-accent-strong); border: 1px solid rgba(251, 201, 244, .25); background: var(--pc-glass); box-shadow: var(--pc-shadow); }
.pc-demo .pc-placeholder h1 { margin: 6px 0 0; font-size: 28px; }
.pc-demo .pc-placeholder p { margin: 0; font-size: 13px; line-height: 1.8; color: var(--pc-secondary); }
.pc-demo .pc-placeholder .pc-pending-label { color: var(--pc-accent-strong); }
@media (min-width: 600px) { .pc-demo { max-width: 620px; margin: auto; border-left: 1px solid #2e2439; border-right: 1px solid #2e2439; } }
@media (prefers-reduced-motion: reduce) { .pc-demo *, .pc-demo *::before, .pc-demo *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* PC-051/053 2026-11-08 v3. Dense, readable conversation-first hierarchy. */
.pc-demo { font-family: var(--pc-font-ui); font-feature-settings: "palt" 1; }
.pc-demo [hidden] { display: none !important; }
.pc-demo .pc-content { padding-top: 0; }
.pc-demo .pc-list-view { display: flex; flex-direction: column; min-height: 0; }
.pc-demo .pc-mast { padding-top: 17px; min-height: 70px; }
.pc-demo .pc-brand-mark { width: 41px; height: 41px; border-radius: 13px; box-shadow: 0 4px 10px rgba(15,7,27,.16); }
.pc-demo .pc-brand-words { gap: 2px; }
.pc-demo .pc-eyebrow { font-size: 9px; color: #e5adce; letter-spacing: .15em; }
.pc-demo .pc-title { font-size: 22px; letter-spacing: -.05em; font-weight: 740; line-height: 1.08; }
.pc-demo .pc-mast-actions { display: flex; align-items: center; gap: 8px; }
.pc-demo .pc-icon-action { border: 1px solid var(--pc-stroke); background: var(--pc-glass-subtle); color: var(--pc-accent-strong); width: 39px; height: 39px; border-radius: 14px; font-weight: 720; font-size: 21px; }
.pc-demo .pc-icon-action:active { transform: scale(.96); }
.pc-demo .pc-intro { margin: 17px 0 14px; }
.pc-demo .pc-section-overline { color: #cf9fbf; font-size: 9px; font-weight: 650; letter-spacing: .12em; }
.pc-demo .pc-intro h2 { margin: 4px 0 3px; font-size: 24px; font-weight: 750; letter-spacing: var(--pc-title-tracking); line-height: 1.14; }
.pc-demo .pc-intro p { font-size: 12px; line-height: 1.5; color: var(--pc-secondary); }
.pc-demo .pc-filters { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 3px; padding: 4px; margin: 3px 0 13px; border: 1px solid rgba(252,213,245,.14); border-radius: 18px; background: rgba(48,35,63,.73); }
.pc-demo .pc-filter { border: 0; background: transparent; border-radius: 13px; color: #d2bfdc; height: 38px; min-width: 0; padding: 0 4px; font-size: 12px; font-weight: 650; transition: transform var(--pc-motion), background var(--pc-motion); }
.pc-demo .pc-filter.is-active { color: #ffdfef; background: linear-gradient(125deg,rgba(221,132,192,.27),rgba(149,93,166,.16)); box-shadow: inset 0 0 0 1px rgba(253,216,240,.15); }
.pc-demo .pc-filter:active { transform: scale(.95); }
.pc-demo .pc-search { height: 45px; border-radius: 15px; background: rgba(45,34,60,.78); }
.pc-demo .pc-group-collection { display: flex; flex-direction: column; gap: 17px; margin-top: 17px; }
.pc-demo .pc-room-section { min-width: 0; }
.pc-demo .pc-room-section-toggle { width: 100%; display: flex; align-items: center; gap: 9px; min-height: 48px; border: 0; padding: 6px 2px 9px; background: transparent; color: var(--pc-text); text-align: left; }
.pc-demo .pc-section-chevron { display: inline-grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border-radius: 8px; background: rgba(235,172,216,.13); color: #f4c1e0; font-size: 17px; transition: transform var(--pc-motion); }
.pc-demo .pc-room-section-toggle.is-collapsed .pc-section-chevron { transform: rotate(-90deg); }
.pc-demo .pc-section-title { font-size: 14px; font-weight: 750; letter-spacing: -.02em; }
.pc-demo .pc-section-count { color: var(--pc-subtle); font-size: 11px; padding-inline: 2px; }
.pc-demo .pc-section-badge { margin-left: auto; display: inline-grid; min-width: 22px; height: 21px; place-items: center; padding: 0 6px; border-radius: 999px; background: rgba(234,150,197,.20); color: #ffd7ec; font-size: 11px; font-weight: 800; }
.pc-demo .pc-section-rooms { display: flex; flex-direction: column; gap: 7px; }
.pc-demo .pc-room { min-height: 73px; border-radius: 18px; padding: 10px 12px; background: var(--pc-surface-translucent); box-shadow: var(--pc-quiet-shadow); }
.pc-demo .pc-room:hover { background: rgba(60,43,76,.9); }
.pc-demo .pc-room:active { background: rgba(75,51,91,.98); }
.pc-demo .pc-room .pc-avatar { width: 47px; height: 47px; border-radius: 16px; font-size: 17px; }
.pc-demo .pc-room-title strong { font-size: 13px; }
.pc-demo .pc-room-preview { font-size: 12px; color: #c5b9d1; }
.pc-demo .pc-room-copy { gap: 6px; }
.pc-demo .pc-pin { color: var(--pc-accent); font-size: 18px; margin-left: auto; line-height: 1; }
.pc-demo .pc-unread { min-width: 19px; height: 19px; font-size: 10px; margin-left: 0; }
.pc-demo .pc-list-footer { margin: 19px 2px 6px; color: #b6a4c3; text-align: center; font-size: 10px; line-height: 1.6; }
.pc-demo .pc-room-section-toggle:focus-visible { border-radius: 9px; }
@media (max-width: 380px) { .pc-demo .pc-content { padding-inline: 15px; } .pc-demo .pc-filter { font-size: 11px; } .pc-demo .pc-brand-mark { width: 37px; height: 37px; } }
