@import url('./feedback-view.css');
@import url('./chat-markdown.css');
@import url('./chat-workbench.css');
@import url('./app-library.css');
@import url('./dashboard-explorer.css');
@import url('./dashboard-art.css');
@import url('./shell-tools.css');
/* Monochrome interface; the owner symbol retains its four colors. */
:root { color-scheme:dark; --bg:#000; --surface:#000; --surface-2:#000; --text:#fff; --muted:rgb(255 255 255 / .68); --line:rgb(255 255 255 / .18); --teal:#fff; --teal-dark:#000; --red:#fff; --green:#fff; --glass-fill:rgb(20 20 20 / .74); --glass-rim:rgb(255 255 255 / .2); }
* { box-sizing:border-box; }
html,body { margin:0; background:#000; color:#fff; font:16px/1.6 system-ui,-apple-system,"Noto Sans KR",sans-serif; }
button,input,textarea { font:inherit; color:inherit; }
button,summary { cursor:pointer; -webkit-tap-highlight-color:transparent; }
button { min-width:44px; min-height:44px; padding:.5rem .75rem; border:0; border-radius:24px; background:transparent; color:#fff; transition:background 160ms,transform 160ms; }
button:hover,summary:hover { background:rgb(255 255 255 / .1); }
button:active { transform:scale(.96); transition-duration:70ms; }
button:disabled { cursor:wait; opacity:.5; }
button[aria-pressed="true"] { background:#fff; color:#000; }
a { color:inherit; }
:focus-visible { outline:2px solid #fff; outline-offset:3px; }
[hidden] { display:none!important; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.ui-icon { display:block; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.glass { background:linear-gradient(145deg,rgb(255 255 255 / .09),rgb(255 255 255 / .015) 45%,rgb(255 255 255 / .035)),var(--glass-fill); border:1px solid var(--glass-rim); box-shadow:inset 0 1px 0 rgb(255 255 255 / .14),inset 0 -1px 0 rgb(255 255 255 / .025),0 12px 40px rgb(0 0 0 / .28); -webkit-backdrop-filter:blur(28px); backdrop-filter:blur(28px); }
.app-shell { position:relative; min-height:100dvh; --hoh-sheet-height:0px; --chat-width:clamp(300px,25vw,400px); background:radial-gradient(ellipse at 92% 2%,rgb(255 255 255 / .09),transparent 48%),#000; }
.topbar { position:absolute; z-index:4; top:20px; left:20px; right:20px; display:flex; align-items:center; justify-content:space-between; gap:12px; pointer-events:none; }
.topbar>* { pointer-events:auto; }
.topbar-actions { display:flex; align-items:center; border-radius:32px; padding:4px; }
.brand { display:grid; place-items:center; padding:8px; opacity:.9; background:transparent; border:0; border-radius:0; filter:drop-shadow(0 1px 3px #000); }
.brand:hover,.brand:focus-visible { opacity:1; background:transparent; }
.brand .ui-icon { width:28px; height:28px; stroke:none; fill:none; overflow:visible; }
.brand-symbol circle { filter:drop-shadow(0 0 2px currentColor); }
.account-button { font-size:.8rem; }
.provider-status:not(.sr-only) { position:absolute; top:64px; left:0; right:0; padding:8px 12px; border-radius:12px; background:#000; font-size:.8rem; }
.workspace { height:var(--hoh-viewport-height,100dvh); padding:0; display:grid; grid-template-columns:minmax(0,1fr) var(--chat-width); gap:0; }
.viewer { position:relative; min-width:0; min-height:0; display:grid; grid-template-rows:minmax(0,1fr); grid-template-areas:"play"; padding:0; overflow:hidden; background:radial-gradient(ellipse at 80% 0,rgb(255 255 255 / .025),transparent 60%); }
.content-stage { grid-area:play; min-height:0; overflow:auto; overscroll-behavior:contain; display:flex; align-items:safe center; padding:96px 100px 100px clamp(24px,5vw,80px); scroll-padding-block:96px; scrollbar-width:thin; scrollbar-color:rgb(255 255 255 / .2) transparent; }
.content-stage:focus-visible { outline-offset:-3px; }
/* App surfaces own their inner layout; the host reserves only the control rail. */
.app-shell .content-stage.is-app-surface { display:block; padding:0 var(--tools-inset,76px) 0 0; scroll-padding-block:16px; background:#090909; }
.app-shell .content-stage.is-app-surface > :first-child { min-height:100%; }
.app-shell .content-stage.is-packaged > .hoh-packaged-content { height:100%; min-height:0; }
.app-shell .content-stage.is-packaged .hoh-packaged-app { height:100%; min-height:0; }
.app-shell .is-app-surface > :is(.browser-card,.social-card,.library-card,.account-app) { width:100%; max-width:none; margin:0; padding:clamp(18px,3vw,40px); }
.app-shell .is-app-surface .utility-card { padding-bottom:32px; }
.viewer:has(> .content-stage[aria-busy=true])::after { content:""; position:absolute; z-index:8; inset:0 auto auto 0; width:24%; height:2px; background:#dce7f5; opacity:0; pointer-events:none; animation:hoh-feed-loading 1s 160ms ease-in-out infinite; }
@keyframes hoh-feed-loading { 10% { opacity:.7; } 90% { opacity:.7; } to { transform:translateX(420%); opacity:0; } }
html[data-hoh-feed-transition] { view-transition-name:none; }
html[data-hoh-feed-transition] .app-shell .viewer { view-transition-name:hoh-feed; }
html[data-hoh-feed-transition] .app-shell .topbar { view-transition-name:hoh-feed-controls; }
html[data-hoh-feed-transition]::view-transition { pointer-events:none; }
html[data-hoh-feed-transition]::view-transition-group(hoh-feed) { overflow:hidden; animation-duration:240ms; }
html[data-hoh-feed-transition]::view-transition-old(hoh-feed) { animation:hoh-feed-out 240ms cubic-bezier(.2,.8,.2,1) both; }
html[data-hoh-feed-transition]::view-transition-new(hoh-feed) { animation:hoh-feed-in 240ms cubic-bezier(.2,.8,.2,1) both; }
html[data-hoh-feed-transition=previous] { --hoh-feed-offset:-6%; }
html[data-hoh-feed-transition=next] { --hoh-feed-offset:6%; }
html[data-hoh-feed-transition]::view-transition-group(hoh-feed-controls),
html[data-hoh-feed-transition]::view-transition-old(hoh-feed-controls),
html[data-hoh-feed-transition]::view-transition-new(hoh-feed-controls) { animation:none; }
html[data-hoh-feed-transition]::view-transition-old(hoh-feed-controls) { display:none; }
@keyframes hoh-feed-out { to { transform:translateY(calc(-1 * var(--hoh-feed-offset))); opacity:0; } }
@keyframes hoh-feed-in { from { transform:translateY(var(--hoh-feed-offset)); opacity:0; } }
@media(prefers-reduced-motion:reduce) {
  .viewer:has(> .content-stage[aria-busy=true])::after { animation:none; width:100%; opacity:.5; }
  html[data-hoh-feed-transition]::view-transition-group(*),html[data-hoh-feed-transition]::view-transition-old(*),html[data-hoh-feed-transition]::view-transition-new(*) { animation:none; }
}
.content-card,.dashboard-card,.realtime-card { width:100%; margin:auto; overflow-wrap:anywhere; }
.content-card h2 { font-size:clamp(1.8rem,3.4vw,3rem); line-height:1.22; font-weight:500; letter-spacing:-.045em; margin:0 0 1.75rem; text-wrap:balance; }
.content-body { max-width:68ch; font-size:clamp(1rem,1.35vw,1.125rem); white-space:pre-line; line-height:1.95; margin:0; color:rgb(255 255 255 / .82); }
.content-body:empty { display:none; }
.content-stage.is-source { display:block; }
.source-reader { width:100%; max-width:78ch; margin-inline:auto; overflow-wrap:anywhere; }
.source-reader>h2 { margin:0 0 40px; font-size:clamp(2rem,4vw,3.75rem); font-weight:500; letter-spacing:-.055em; line-height:1.18; text-wrap:balance; }
.source-eyebrow { margin:0 0 14px; color:var(--muted); font-size:.75rem; letter-spacing:.08em; }
.source-prose { font-size:clamp(1rem,1.3vw,1.125rem); line-height:1.95; color:rgb(255 255 255 / .86); }
.source-prose p,.source-prose ul,.source-prose ol { margin:0 0 1.4em; }
.source-prose h3,.source-prose h4,.source-prose h5,.source-prose h6 { color:#fff; margin:1.8em 0 .7em; font-weight:500; line-height:1.4; letter-spacing:-.02em; }
.source-prose h3 { font-size:1.5em; }.source-prose h4 { font-size:1.25em; }
.source-prose blockquote { margin:1.5em 0; padding-left:1.2em; border-left:2px solid rgb(255 255 255 / .5); }
.source-prose pre { max-width:100%; overflow:auto; border:1px solid var(--line); padding:18px; font-size:.85em; line-height:1.7; border-radius:12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.source-prose code { font-family:ui-monospace,monospace; font-size:.9em; }.source-prose :not(pre)>code { background:rgb(255 255 255 / .09); border-radius:4px; padding:2px 4px; }
.source-prose hr { border:0; border-top:1px solid var(--line); margin:2em 0; }
.source-reference { text-decoration:underline; text-decoration-color:rgb(255 255 255 / .25); text-underline-offset:4px; }
.source-more { margin:12px 0 28px; padding-inline:22px; }
.source-notice { color:var(--muted); font-size:.85rem; line-height:1.8; }
.source-graph { margin-bottom:40px; }
.source-atom-list { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:28px; max-height:200px; overflow:auto; padding:4px; }
.source-atom-list button { border:1px solid var(--line); font-size:.8rem; }
.source-atom-detail { border-block:1px solid var(--line); padding-block:28px; }
.source-atom-detail h3 { margin:0 0 24px; font-size:1.6rem; font-weight:500; }
.source-participants { list-style:none; padding:0 0 0 20px; margin:24px 0; border-left:1px solid rgb(255 255 255 / .55); }
.source-participants li { position:relative; padding:0 0 20px 8px; }
.source-participants li:last-child { padding-bottom:0; }
.source-participants li::before { content:""; position:absolute; left:-21px; top:16px; width:16px; height:1px; background:rgb(255 255 255 / .55); }
.source-role { display:block; font-size:.75rem; color:var(--muted); }
.source-participants button { margin-left:-12px; text-align:left; border-radius:12px; overflow-wrap:anywhere; }
.source-provenance { margin-top:36px; color:var(--muted); font-size:.8rem; }
.source-provenance summary { min-height:44px; padding-block:10px; }
.source-provenance dl { display:grid; grid-template-columns:minmax(64px,auto) minmax(0,1fr); gap:12px 24px; padding-block:14px; border-top:1px solid var(--line); }
.source-provenance dd { margin:0; color:rgb(255 255 255 / .85); }
.content-stage.is-editorial { display:block; padding:0; scroll-padding-block:80px; }
.editorial-card { width:100%; }
.editorial-hero { position:relative; min-height:var(--hoh-viewport-height,100dvh); display:flex; align-items:flex-end; isolation:isolate; overflow:hidden; background:#000; }
.editorial-cover { position:absolute; z-index:-2; inset:0; width:100%; height:100%; object-fit:cover; object-position:58% 36%; }
.editorial-hero::after { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(180deg,rgb(0 0 0 / .1),transparent 30%,rgb(0 0 0 / .65) 62%,#000 100%); }
.editorial-caption { max-width:850px; padding:140px 108px 108px clamp(24px,5vw,80px); }
.editorial-label { font-size:.75rem; color:rgb(255 255 255 / .65); margin:0 0 18px; letter-spacing:.05em; }
.editorial-caption h2 { font-size:clamp(2rem,4vw,4rem); line-height:1.17; letter-spacing:-.055em; font-weight:500; margin:0; text-wrap:balance; word-break:keep-all; }
.editorial-introduction { max-width:42ch; font-size:clamp(.95rem,1.2vw,1.125rem); line-height:1.8; color:rgb(255 255 255 / .78); margin:22px 0 26px; text-wrap:pretty; word-break:keep-all; }
.editorial-read { padding:10px 20px; font-size:.85rem; border-radius:28px; }
.editorial-body { padding:32px 108px 120px clamp(24px,5vw,80px); }
.editorial-body h3 { font-size:1.5rem; font-weight:500; margin:0 0 32px; }
.editorial-credit { color:var(--muted); font-size:.75rem; max-width:64ch; margin:40px 0 24px; }
.viewer-foot { position:absolute; z-index:4; inset:auto 20px 20px; display:flex; justify-content:flex-end; pointer-events:none; }
.viewer-foot>* { pointer-events:auto; }
.action-rail { position:absolute; right:0; bottom:76px; flex-direction:column; }
.action-rail,.feed-nav { display:flex; gap:2px; align-items:center; padding:4px; border-radius:32px; }
.action-rail button { display:flex; align-items:center; justify-content:center; gap:.6rem; }
.more-actions { position:relative; }
.more-actions summary { list-style:none; display:grid; place-items:center; min-width:44px; min-height:44px; border-radius:50%; font-size:1.3rem; }
.more-actions summary::-webkit-details-marker { display:none; }
.more-actions>div { position:absolute; z-index:5; bottom:0; right:60px; width:min(210px,calc(100vw - 100px)); padding:8px; border:1px solid var(--glass-rim); border-radius:20px; background:rgb(16 16 16 / .96); box-shadow:0 16px 48px #000; }
.more-actions button { justify-content:flex-start; width:100%; text-align:left; font-size:.85rem; border-radius:12px; }
#contentMeta { display:block; font-size:.75rem; padding:.5rem; color:var(--muted); }
.empty { margin:auto; }
.chat { position:relative; min-width:0; min-height:0; padding:16px; display:flex; flex-direction:column; border:0; border-left:1px solid var(--line); border-radius:0; box-shadow:inset 1px 0 0 rgb(255 255 255 / .025); }
.chat header { display:flex; align-items:center; justify-content:space-between; padding-left:8px; }
.chat h2 { margin:0; font-size:.95rem; font-weight:500; }
.chat header button { color:var(--muted); }
.chat-help { position:absolute; top:16px; right:64px; font-size:.8rem; z-index:3; }
.chat-help summary { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; list-style:none; color:var(--muted); }
.chat-help summary::-webkit-details-marker { display:none; }
.chat-help-body { position:absolute; top:52px; right:-48px; max-height:50dvh; overflow:auto; width:min(300px,calc(100vw - 64px)); padding:16px; background:rgb(12 12 12 / .97); border:1px solid var(--glass-rim); border-radius:18px; box-shadow:0 16px 40px #000; }
.chat-status { white-space:pre-line; }
.messages { flex:1; min-height:0; overflow:auto; display:flex; flex-direction:column; gap:1rem; list-style:none; padding:16px 4px; margin:0; scrollbar-width:thin; }
.messages:empty::before { content:"콘텐츠를 보며 대화하세요"; margin:auto; font-size:.85rem; color:var(--muted); }
.messages li { white-space:pre-wrap; overflow-wrap:anywhere; font-size:.9rem; }
.messages .user { align-self:flex-end; padding:10px 14px; border-radius:18px 18px 4px 18px; background:rgb(255 255 255 / .09); max-width:90%; }
.messages .failed { text-decoration:underline; }
.maple-recovery { display:flex; flex-direction:column; gap:8px; border:1px solid var(--line); padding:12px; border-radius:12px; }
.maple-recovery-controls { display:flex; flex-wrap:wrap; gap:8px; }
.maple-recovery-controls button { border:1px solid var(--line); }
.composer { display:flex; gap:4px; align-items:center; padding:6px; border:1px solid rgb(255 255 255 / .22); border-radius:30px; background:rgb(0 0 0 / .28); box-shadow:inset 0 1px 4px rgb(0 0 0 / .2); }
.composer:focus-within { border-color:rgb(255 255 255 / .65); }
.composer :is(input,textarea) { min-width:0; width:100%; min-height:44px; box-sizing:border-box; resize:none; font:inherit; line-height:1.5; background:transparent; border:0; padding:8px 10px; outline-offset:0; border-radius:22px; }
.composer :is(input,textarea)::placeholder { color:var(--muted); }
.composer button { background:#fff; color:#000; border:0; font-size:1.2rem; line-height:1; }
.checklist { display:grid; gap:.75rem; margin-top:1.5rem; }
.checklist button { text-align:left; border:1px solid var(--line); padding:.75rem 1rem; }
.checklist button[aria-pressed="true"] { text-decoration:line-through; }
.checklist [data-personalization-settings] { border-top:1px solid var(--line); padding-top:.75rem; }
.checklist [data-personalization-settings] summary { min-height:44px; padding:.5rem 0; }
.checklist [data-personalization-settings] button { display:block; width:100%; margin:.5rem 0; text-decoration:none; }
.tile-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; width:min(100%,340px); margin:1rem 0; }
.tile-grid button { aspect-ratio:1; border:1px solid var(--line); }
.tile-grid button:active { background:#fff; }
.mini-toolbar { display:flex; align-items:center; justify-content:space-between; max-width:340px; }
.dashboard-card { max-width:540px; }
.dashboard-card h2 { font-size:1.6rem; font-weight:500; margin:0 0 2rem; }
.dashboard-group { margin-top:2rem; }
.dashboard-group h3 { font-size:.8rem; font-weight:400; margin-bottom:.75rem; }
.app-grid { display:grid; }
.app-grid button { text-align:left; border-bottom:1px solid var(--line); padding:1rem 0; }
.dashboard-empty { font-size:.85rem; }
.mobile-grab,.feed-gesture { display:none; }
dialog { color:#fff; background:rgb(12 12 12 / .96); border-radius:24px; box-shadow:0 24px 100px #000; border:1px solid var(--line); width:min(480px,calc(100vw - 32px)); padding:24px; }
dialog::backdrop { background:rgb(0 0 0 / .8); }
.welcome-dialog {
  width:min(420px,calc(100vw - 32px));
  max-height:calc(100dvh - 32px);
  padding:clamp(24px,6vw,36px);
  background:linear-gradient(155deg,#212121,#101010 60%);
}
.welcome-dialog > .brand-symbol { width:44px; height:44px; margin-bottom:16px; }
.welcome-dialog h2 { margin:0; font-size:clamp(1.35rem,5vw,1.9rem); line-height:1.25; letter-spacing:-.04em; }
.welcome-dialog p { margin:12px 0 0; color:var(--muted); font-size:.9rem; line-height:1.6; }
.welcome-actions { display:grid; gap:10px; margin-top:24px; }
.welcome-actions button { min-height:48px; border:1px solid var(--line); border-radius:14px; font-size:.94rem; }
.welcome-actions [data-welcome-login] { background:#f2f2f2; color:#111; font-weight:650; }
.welcome-actions [data-welcome-login]:hover { background:#fff; }
.welcome-actions [aria-disabled=true] { opacity:.68; cursor:wait; }
.welcome-dialog .welcome-status:empty { margin:0; }
.comment-panel header,.comment-panel menu { display:flex; align-items:center; justify-content:space-between; padding:0; }
.comment-panel h2 { font-size:1rem; }
.comment-panel textarea { width:100%; display:block; margin-top:12px; border:1px solid var(--line); padding:12px; background:#000; }
.comment-list { padding-left:1rem; }
.realtime-videos { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); }
.realtime-tile { position:relative; margin:0; }
.realtime-tile video { display:block; width:100%; max-height:50vh; }
.realtime-tile figcaption { position:absolute; bottom:8px; left:8px; background:#000; padding:4px; }
.realtime-controls { display:flex; flex-wrap:wrap; gap:8px; }
.realtime-controls button { border:1px solid var(--line); }
.realtime-placeholder { padding:3rem 0; }
.realtime-tile.is-audio video { opacity:0; }
.content-stage.is-taste { padding:100px clamp(24px,5vw,80px) 36px; }
.app-shell .viewer:has(> .is-taste) .topbar-actions { top:max(12px,env(safe-area-inset-top)); transform:none; grid-template-columns:44px; }
.app-shell .viewer:has(> .is-taste) .topbar-actions :is(.viewer-foot,.action-rail) { display:none; }
.app-shell .viewer:has(> .is-taste) > .content-stage { padding-inline-end:clamp(24px,5vw,80px); }
.taste-game { width:100%; max-width:620px; margin:auto; }
.taste-scenario { margin:0 0 10px; color:rgb(255 255 255 / .72); font-size:clamp(.95rem,1.5vw,1.15rem); line-height:1.55; }
.taste-game h2 { font-size:clamp(1.55rem,3vw,2.6rem); font-weight:520; letter-spacing:-.045em; line-height:1.26; margin:0; word-break:keep-all; overflow-wrap:anywhere; }
.taste-game h2:focus { outline:none; }
.taste-caption { max-width:44ch; color:var(--muted); margin:12px 0 30px; font-size:.9rem; line-height:1.65; }
.taste-response { margin:0; }
.taste-scale { position:relative; display:grid; grid-template-columns:repeat(5,minmax(44px,1fr)); gap:6px; margin:0; padding:0; border:0; }
.taste-scale::before { content:''; position:absolute; inset-inline:calc(10% + 2px); top:50%; height:1px; background:rgb(255 255 255 / .35); }
.taste-stop { position:relative; z-index:1; display:grid; min-width:44px; min-height:52px; cursor:pointer; text-align:center; }
.taste-stop input { position:absolute; inline-size:1px; block-size:1px; opacity:0; }
.taste-stop-marker { display:grid; place-items:center; min-block-size:52px; }
.taste-stop-marker::before { content:''; inline-size:14px; block-size:14px; border:2px solid rgb(255 255 255 / .62); border-radius:50%; background:#111; box-shadow:0 0 0 4px #111; transition:border-color 140ms,background-color 140ms,transform 140ms; }
.taste-stop:hover .taste-stop-marker::before { border-color:#fff; transform:scale(1.08); }
.taste-stop input:checked + .taste-stop-marker::before { border-color:#fff; background:#fff; box-shadow:0 0 0 4px #111,0 0 0 5px rgb(255 255 255 / .76); transform:scale(1.08); }
.taste-stop input:focus-visible + .taste-stop-marker::before { outline:2px solid #dbe8ff; outline-offset:5px; }
.taste-scale-endpoints { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:10px; margin-top:8px; color:rgb(255 255 255 / .76); font-size:.8rem; line-height:1.4; word-break:keep-all; overflow-wrap:anywhere; }
.taste-scale-endpoints > :nth-child(2) { text-align:center; }
.taste-scale-endpoints > :last-child { text-align:right; }
.taste-selected-label { min-height:1.6em; margin:14px 0 0; color:var(--muted); font-size:.9rem; line-height:1.5; text-align:center; }
.taste-selected-label[data-selected=true] { color:#fff; }
.taste-tools { display:flex; flex-wrap:wrap; gap:8px 10px; align-items:center; margin-top:22px; }
.taste-tools button { font-size:.85rem; }
.taste-tools .taste-primary { background:#fff; color:#000; padding:10px 24px; }
.taste-edit-tools { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.taste-edit-tools button { min-height:44px; color:var(--muted); font-size:.82rem; }
.taste-feedback[data-state=error] { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; margin:12px 0 0; color:#ffd1c4; font-size:.82rem; line-height:1.5; }
.taste-feedback p { margin:0; }
.taste-feedback button { border:1px solid var(--line); font-size:inherit; }
@media(max-width:760px) {
  .app-shell[data-sheet="split"] { --hoh-sheet-height:clamp(200px,calc(var(--hoh-viewport-height,100dvh) * .32),300px); }
  .app-shell[data-sheet="chat"] { --hoh-sheet-height:calc(var(--hoh-viewport-height,100dvh) - 72px); }
  .topbar { top:max(12px,env(safe-area-inset-top)); left:12px; right:12px; gap:8px; }
  .workspace { display:block; padding:0; }
  .viewer { height:calc(var(--hoh-viewport-height,100dvh) - var(--hoh-chat-height,var(--hoh-sheet-height))); padding:0; }
  .content-stage { padding:84px 82px 88px 24px; }
  .viewer-foot { inset:auto 12px 16px; }
  .action-rail { bottom:72px; }
  .chat { position:fixed; z-index:6; inset:auto 0 0; height:var(--hoh-chat-height,var(--hoh-sheet-height)); max-height:calc(var(--hoh-viewport-height,100dvh) - 72px); overflow:hidden; padding:10px 12px max(12px,env(safe-area-inset-bottom)); border:0; border-top:1px solid var(--line); border-radius:0; }
  .chat header { padding-left:4px; }
  .chat-help { top:10px; right:60px; }
  .messages { padding:8px 4px; gap:8px; }
  .app-shell:not([data-sheet="content"]) .mobile-grab { position:fixed; display:grid; place-items:center; left:calc(50% - 22px); z-index:7; background:transparent; touch-action:none; }
  .mobile-grab .ui-icon { width:28px; height:16px; opacity:.6; }
  .content-card h2 { font-size:1.8rem; margin-bottom:1.25rem; }
  .editorial-hero { min-height:calc(var(--hoh-viewport-height,100dvh) - var(--hoh-chat-height,var(--hoh-sheet-height))); }
  .editorial-caption { padding:140px 80px 84px 24px; }
  .editorial-caption h2 { font-size:clamp(1.6rem,6.5vw,2.5rem); }
  .editorial-label { font-size:.65rem; margin-bottom:12px; }
  .editorial-introduction { font-size:.8rem; margin:14px 0 20px; line-height:1.7; }
  .editorial-body { padding:24px 80px 100px 24px; }
  .app-shell .viewer:has(> .is-taste) > .content-stage { padding:72px 20px 24px; }
  .taste-caption { margin:8px 0 22px; font-size:.8rem; }
  .taste-scale { gap:3px; }
  .taste-stop,.taste-stop-marker { min-height:48px; }
  .taste-stop-marker::before { inline-size:12px; block-size:12px; }
  .taste-scale-endpoints { gap:6px; font-size:.75rem; }
  .taste-selected-label { margin-top:12px; font-size:.84rem; }
  .taste-tools { gap:6px; margin-top:16px; }
  .app-shell[data-sheet="chat"] .content-stage,.app-shell[data-sheet="chat"] .viewer-foot { visibility:hidden; }
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) { .glass { background:#171717; } }
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) { .glass { background:#000; border-color:rgb(255 255 255 / .65); backdrop-filter:none; -webkit-backdrop-filter:none; } .content-body { color:#fff; } .taste-stop-marker::before { box-shadow:0 0 0 4px #000; } }
@media(forced-colors:active) { .taste-scale::before { background:CanvasText; } .taste-stop-marker::before { border-color:CanvasText; background:Canvas; box-shadow:0 0 0 4px Canvas; } .taste-stop input:checked + .taste-stop-marker::before { background:Highlight; border-color:Highlight; box-shadow:0 0 0 4px Canvas,0 0 0 5px Highlight; } .taste-selected-label[data-selected=true] { color:CanvasText; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
/* Apps and personal creation stay inside the content stage. */
.dashboard-card { max-width:960px; }
.app-grid button { touch-action:manipulation; transition:transform 240ms cubic-bezier(.22,1,.36,1),background-color 160ms,border-color 160ms; }
.app-grid button:active { transform:scale(.94); transition-duration:70ms; }
.app-grid button[data-opening] { border-color:rgb(255 255 255 / .65); background:rgb(255 255 255 / .12); }
.app-grid { grid-template-columns:repeat(auto-fill,minmax(145px,1fr)); gap:12px; }
.app-grid button { display:flex; flex-direction:column; gap:10px; padding:18px; border:1px solid var(--line); border-radius:20px; background:rgb(255 255 255 / .035); min-height:126px; }
.app-grid button:hover { background:rgb(255 255 255 / .075); }
/* Home is one continuous icon grid; details belong inside each app. */
.content-stage.is-dashboard { display:block; padding:96px 24px 32px; container-type:inline-size; scroll-padding-block:148px 24px; }
.home-screen { max-width:880px; min-height:100%; }
.home-apps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-content:start; gap:24px 8px; list-style:none; margin:0; padding:4px; }
.home-apps>li { min-width:0; position:relative; display:flex; flex-direction:column; align-items:center; }
/* Editing and app selection stay inside the scrolling pane, beside the live chat. */
.home-tools { position:sticky; top:0; z-index:2; display:flex; align-items:center; gap:4px; width:fit-content; max-width:100%; margin:0 0 24px auto; padding:3px; border-radius:24px; }
.home-tools button { font-size:.78rem; white-space:nowrap; }
.home-app-search { min-width:0; width:min(220px,50vw); padding:8px 12px; border:0; border-radius:20px; background:transparent; font-size:.85rem; }
.home-remove { position:absolute; top:-12px; left:calc(50% - 46px); width:44px; height:44px; padding:8px; border-radius:50%; font-size:1.4rem; line-height:1; background:#252525; border:1px solid var(--line); }
.home-remove:hover { background:#444; }
.home-add-badge { position:absolute; top:0; right:calc(50% - 40px); display:grid; place-items:center; width:24px; height:24px; border-radius:50%; color:#000; background:#fff; font-size:1rem; }
.home-app[data-home-installed="true"] { cursor:default; opacity:.5; }
.home-status,.home-empty { margin:24px 4px 0; font-size:.8rem; color:var(--muted); }
.home-screen.is-editing .home-icon { border-style:dashed; }
.home-apps .home-app { width:100%; height:auto; }
.home-app { display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:7px; min-width:0; padding:3px; border:0; border-radius:16px; background:transparent; touch-action:manipulation; transition:transform 240ms cubic-bezier(.22,1,.36,1); }
.home-app:hover { background:transparent; }
.home-app:hover .home-icon { border-color:rgb(255 255 255 / .5); background-color:rgb(255 255 255 / .09); }
.home-app:active { transform:scale(.91); transition-duration:65ms; }
.home-icon { position:relative; display:grid; place-items:center; flex:none; width:64px; aspect-ratio:1; border-radius:16px; border:1px solid rgb(255 255 255 / .24); overflow:hidden; color:#fff; background:linear-gradient(145deg,rgb(255 255 255 / .15),rgb(255 255 255 / .025) 55%,rgb(255 255 255 / .07)); box-shadow:inset 0 1px 1px rgb(255 255 255 / .14),0 6px 18px rgb(0 0 0 / .3); transition:background-color 160ms,border-color 160ms; }
.home-icon svg { width:31px; height:31px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.home-icon img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 30%; opacity:0; }
.home-icon.has-cover img { opacity:1; }
.home-icon.has-cover svg { visibility:hidden; }
.home-app-name { font-size:.72rem; line-height:1.25; font-weight:400; max-width:100%; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; text-align:center; }
.home-app[data-opening] .home-icon { border-color:#fff; background-color:rgb(255 255 255 / .16); }
.content-stage.is-browser { display:block; padding:88px 20px 24px; }
.browser-card { width:min(100%,880px); margin:auto; overflow-wrap:anywhere; }
.browser-toolbar { position:sticky; top:0; z-index:2; display:flex; align-items:center; gap:12px; border-radius:26px; padding:6px 10px; }
.browser-controls { display:flex; flex:none; gap:0; }.browser-controls button { padding:4px; font-size:1.25rem; }
.browser-address { display:flex; align-items:center; flex:1; min-width:0; }.browser-address input { flex:1; min-width:0; padding:10px; border:0; border-radius:16px; background:rgb(255 255 255 / .06); font-size:.85rem; }.browser-address button { flex:none; }
.browser-status { color:var(--muted); font-size:.76rem; padding:8px 4px; margin:4px 0; }
.browser-document { padding:24px 8px 40px; max-width:72ch; margin:auto; }
.browser-document h1 { font-size:clamp(1.6rem,3.5vw,2.6rem); line-height:1.25; font-weight:500; letter-spacing:-.035em; }
.browser-document h2 { font-size:1.2rem; font-weight:500; margin-top:2rem; }
.browser-document p { color:rgb(255 255 255 / .85); line-height:1.9; }.browser-document pre { white-space:pre-wrap; font-size:.85rem; }
.browser-links,.browser-shortcuts { display:flex; flex-direction:column; align-items:stretch; gap:8px; margin:24px 0; }.browser-links button,.browser-shortcuts button { text-align:left; border-radius:14px; padding:12px 16px; background:rgb(255 255 255 / .04); border:1px solid var(--line); }
.browser-images { display:grid; gap:16px; margin:24px 0; }.browser-images img { max-width:100%; max-height:80vh; object-fit:contain; border-radius:16px; }.browser-images button { border:1px solid var(--line); }
@media(max-width:760px) { .content-stage.is-browser { padding:80px 12px 20px; }.browser-toolbar { flex-wrap:wrap; gap:4px; border-radius:22px; }.browser-controls { width:100%; justify-content:space-between; }.browser-address { flex-basis:100%; }.browser-document { padding-inline:4px; } }
@container (min-width:620px) { .home-apps { grid-template-columns:repeat(6,minmax(0,1fr)); gap:30px 20px; } .home-icon { width:72px; border-radius:19px; } .home-app-name { font-size:.78rem; } }
@media(max-width:760px) { .content-stage.is-dashboard { padding:88px 12px 24px; } .home-apps { gap:22px 4px; } .home-icon { width:58px; border-radius:15px; } }
.app-icon { font-size:1.4rem; width:40px; height:40px; }
.app-description { font-size:.72rem; color:var(--muted); line-height:1.5; }
.app-grid .has-portrait { padding:0 0 16px; overflow:hidden; }
.has-portrait .app-icon { width:100%; height:140px; }
.has-portrait .app-icon img { width:100%; height:100%; object-fit:cover; object-position:65% 25%; }
.has-portrait .app-name,.has-portrait .app-description { margin-inline:16px; }
.app-search { display:grid; gap:12px; margin-top:36px; font-size:.8rem; }
.app-search input,.social-form input,.social-form textarea { width:100%; min-width:0; color:#fff; border:1px solid var(--line); border-radius:14px; background:rgb(255 255 255 / .04); padding:14px; font:inherit; }
.character-starters { display:flex; flex-wrap:wrap; gap:10px; }
.character-starters button { padding:12px 18px; border-radius:24px; font-size:.82rem; text-align:left; }
.social-card { width:100%; max-width:720px; margin:auto; overflow-wrap:anywhere; }
.social-card header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.social-card h2 { font-size:2rem; font-weight:500; }
.social-card h3 { font-size:1rem; font-weight:500; }
.social-description,.social-empty { color:var(--muted); font-size:.85rem; line-height:1.8; }
.social-form { margin:28px 0; display:flex; flex-wrap:wrap; gap:12px; }
.social-form label { display:grid; gap:10px; width:100%; font-size:.85rem; }
.social-form textarea { resize:vertical; min-height:140px; line-height:1.7; }
.social-card button { min-height:44px; padding:10px 16px; border-radius:24px; font-size:.8rem; }
.social-card button:disabled { opacity:.4; cursor:default; }
.social-address { display:grid; gap:12px; padding:18px; margin-top:24px; border:1px solid var(--line); border-radius:18px; }
.social-address code { user-select:all; font-size:.8rem; }
.social-address button { justify-self:start; }
.social-post { border-top:1px solid var(--line); margin-top:20px; padding:24px 0; }
.social-post p { white-space:pre-wrap; line-height:1.8; }
.social-post small,.social-post time { color:var(--muted); font-size:.72rem; }
.social-notice { min-height:1.6em; font-size:.8rem; }
@media(max-width:600px) {
  .app-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .app-grid button { padding:14px; min-height:116px; }
  .social-card h2 { font-size:1.5rem; }
  .social-card header { flex-wrap:wrap; }
  .character-starters button { font-size:.75rem; }
}

.content-stage.is-social { padding-inline:clamp(24px,5vw,80px); }
@media(max-width:600px) { .content-stage.is-social { padding-inline:20px; } }

.app-name { word-break:keep-all; }

.library-card { width:100%; max-width:820px; margin:auto; overflow-wrap:anywhere; }
.library-card h2 { font-size:2rem; font-weight:500; }
.library-search { display:flex; align-items:end; gap:12px; margin:28px 0 16px; }
.library-search label { display:grid; gap:10px; flex:1; min-width:0; font-size:.85rem; }
.library-search input { width:100%; min-width:0; border:1px solid var(--line); border-radius:14px; padding:14px; color:#fff; background:rgb(255 255 255 / .04); font:inherit; }
.library-card button { min-height:44px; padding:10px 16px; }
.library-filters { display:flex; flex-wrap:wrap; gap:8px; }
.library-filters button { border-radius:24px; font-size:.8rem; }
.library-filters [aria-pressed=true] { background:#fff; color:#111; }
.library-results,.note-list { display:grid; }
.library-result,.note-row { display:grid; gap:8px; width:100%; text-align:left; border:0; border-bottom:1px solid var(--line); background:transparent; border-radius:0; padding:20px 4px !important; }
.library-result small,.library-result span,.note-row span { color:var(--muted); line-height:1.7; font-size:.82rem; }
.library-result strong,.note-row strong { font-weight:500; }
.notebook-card .note-row { border-radius:0; }
.note-row[aria-pressed=true] { background:rgb(255 255 255 / .04); color:#fff; border-inline-start:2px solid #fff; padding-inline-start:16px !important; }
.note-trash { margin:28px 0; }
.note-trash summary { min-height:44px; padding-block:12px; cursor:pointer; }
.note-trash-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; }
@media(max-width:600px) { .library-card h2 { font-size:1.5rem; } .library-search { flex-wrap:wrap; } .library-search label { flex-basis:100%; } }
/* A finite feed stops here; the content and conversation stay in place. */
.feed-notice { position: absolute; z-index: 6; bottom: 84px; left: 24px; max-width: calc(100% - 120px); padding: 12px 16px; border-radius: 18px; color: #fff; font-size: .875rem; }
.feed-notice[hidden] { display: none; }
.utility-card{width:100%;min-height:100%;padding:clamp(24px,5vw,64px);color:#f5f5f5;background:radial-gradient(ellipse at 80% 0%,#ffffff0c,transparent 55%),#090909;box-sizing:border-box;overflow-wrap:anywhere}
.utility-heading{margin-bottom:28px}.utility-heading h2{font-size:clamp(30px,4vw,52px);letter-spacing:-.055em;font-weight:500;margin:6px 0 12px}.utility-heading p{color:#b4b4b4;margin:0;line-height:1.65}.utility-eyebrow{font-size:11px;letter-spacing:.16em}
.utility-card button,.utility-download{min-height:44px;border:1px solid #ffffff29;border-radius:14px;padding:10px 16px;background:#ffffff0d;color:#f5f5f5;font:inherit;cursor:pointer;box-shadow:inset 0 1px 0 #ffffff16;backdrop-filter:blur(20px) saturate(0);-webkit-backdrop-filter:blur(20px) saturate(0);text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.utility-card button:hover{background:#ffffff18}.utility-card button:disabled{opacity:.4;cursor:default}.utility-card :focus-visible{outline:2px solid #fff;outline-offset:4px}.utility-card .utility-primary{background:#f5f5f5;color:#111;font-weight:600}
.utility-image-analysis{white-space:pre-wrap;line-height:1.7;overflow-wrap:anywhere}
.utility-form{display:grid;gap:18px;margin:22px 0;max-width:720px}.utility-field{display:grid;gap:8px;min-width:0;font-size:13px;color:#bcbcbc}.utility-field input,.utility-field textarea,.utility-field select{width:100%;box-sizing:border-box;min-height:46px;background:#101010;color:#fff;border:1px solid #ffffff30;border-radius:12px;padding:12px;font:inherit;color-scheme:dark}.utility-field textarea{min-height:130px;resize:vertical;line-height:1.7}.utility-field input[type=file]{white-space:normal;font-size:12px}.utility-inline{grid-template-columns:minmax(0,1fr) auto;align-items:end}
.utility-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.utility-number{display:block;font-variant-numeric:tabular-nums;font-size:clamp(42px,6vw,76px);font-weight:300;letter-spacing:-.04em;margin:16px 0;line-height:1.3;overflow-wrap:anywhere}.utility-number-small{font-size:clamp(32px,4vw,48px)}
.utility-notice{font-size:13px;line-height:1.6;min-height:1em;color:#e2e2e2}.utility-notice:empty{min-height:0;margin:0}.utility-footnote{max-width:650px;font-size:12px;line-height:1.8;color:#a4a4a4;margin:24px 0}.utility-card h3{font-size:17px;font-weight:500;line-height:1.5}.utility-card p{white-space:pre-wrap}.utility-history{padding-left:20px;color:#aaa;font-size:13px;line-height:2.1}.calculator-keys{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.calculator-keys button{font-size:20px;min-height:50px}.calculator-keys button:nth-last-child(-n+2){grid-column:span 2}
.utility-details{margin:28px 0;border-top:1px solid #ffffff20;padding-top:20px}.utility-details summary{cursor:pointer;min-height:44px;line-height:44px}.world-clocks{display:flex;flex-wrap:wrap;gap:12px 32px;color:#ccc;font-variant-numeric:tabular-nums}.utility-list{display:grid;gap:12px;margin-top:24px}.utility-entry{padding:20px;border-radius:18px;background:linear-gradient(140deg,#ffffff0b,#ffffff03);border:1px solid #ffffff20;box-shadow:inset 0 1px 0 #ffffff0e}.utility-entry h3{margin:0 0 10px}.utility-entry p{color:#bbb;font-size:14px;line-height:1.75}.utility-entry button{font-size:12px}.utility-check{display:flex;align-items:center;gap:12px;min-height:44px}.utility-check input{accent-color:#fff;width:22px;height:22px}.utility-empty{color:#aaa;font-size:14px;padding:22px 0}.utility-prose{white-space:pre-wrap}
.utility-canvas{width:100%;max-width:720px;aspect-ratio:1;height:auto;touch-action:none;border:1px solid #ffffff30;border-radius:20px;background:#0b0b0b}.utility-camera,.utility-media-output video{display:block;width:100%;max-height:60vh;background:#000;border-radius:18px}.utility-media-output{margin:20px 0;display:grid;gap:16px;min-width:0}.utility-media-output img{display:block;max-width:100%;width:100%;max-height:65vh;object-fit:contain;border-radius:16px;background:#080808}.utility-media-output audio{width:100%}.utility-document{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font:14px/1.8 ui-monospace,monospace;border:1px solid #ffffff20;border-radius:16px;padding:18px}.photo-strip{display:flex;gap:10px;justify-content:center}
@media(max-width:600px){.utility-card{padding:30px 18px 100px}.utility-heading{margin-bottom:20px}.utility-form{gap:14px}.utility-entry{padding:15px}.utility-inline{grid-template-columns:1fr}.utility-toolbar button{flex:1 1 auto}.utility-number{font-size:42px}}

.content-stage.is-utility{display:block;padding:84px 0 0;scroll-padding-top:84px}.content-stage.is-utility .utility-card{min-height:100%}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){.utility-card button{background:#171717;backdrop-filter:none;-webkit-backdrop-filter:none;border-color:#888}.utility-card .utility-primary{background:#fff;color:#000}}

.utility-calendar{max-width:720px;margin:24px 0 36px}.calendar-navigation{display:flex;justify-content:space-between;align-items:center;gap:8px}.calendar-navigation button{font-size:12px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.calendar-grid button{min-width:0;min-height:44px;padding:6px;position:relative;border:0;border-radius:12px;background:transparent;box-shadow:none}.calendar-weekday{text-align:center;font-size:11px;color:#aaa;padding:12px 0}.calendar-grid button[aria-pressed=true]{background:#eee;color:#111}.calendar-grid .has-events:after{content:'';position:absolute;bottom:4px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:currentColor}

/* Personal dashboard appearance: defaults come from the content repository. */
.home-customize { min-height:44px; margin-top:4px; border:1px solid #a7bbc8; border-radius:8px; padding:4px 8px; color:#fff; background:#253e50; }
.home-appearance { width:min(28rem,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow:auto; border:1px solid #8194a8; border-radius:20px; padding:24px; background:#142536; color:#f4f6fb; }
.home-appearance::backdrop { background:rgb(0 0 0 / .65); }
.home-appearance h2 { margin:0 0 20px; font-size:1.2rem; overflow-wrap:anywhere; }
.home-appearance label { display:grid; gap:8px; margin:16px 0; }
.home-appearance input,.home-appearance select { min-height:44px; width:100%; box-sizing:border-box; border:1px solid #a4b5c6; border-radius:8px; padding:8px; background:#0b1926; color:#fff; font:inherit; }
.home-appearance input[type=color] { padding:4px; }
.home-appearance-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; }
.home-appearance-actions button { min-height:44px; padding:8px 12px; border:1px solid #a4b5c6; border-radius:8px; background:#253e50; color:#fff; font:inherit; }
.home-appearance-actions button:disabled { opacity:.55; }
.home-appearance :focus-visible,.home-customize:focus-visible { outline:3px solid #86dfff; outline-offset:3px; }
.home-motion-ghost { contain:layout paint; }

:root { --motion-fast:120ms; --motion-enter:320ms; --motion-exit:240ms; }

.published-media img,.published-media video { display:block; max-width:100%; max-height:70dvh; object-fit:contain; margin:auto; }
.published-media audio { width:100%; }
/* Launch feedback starts with the input, independently of the authorized host response. */
.app-launch-surface { z-index:9; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; background:#1b2029; color:white; pointer-events:none; overflow:hidden; contain:layout paint; border-radius:20px; box-shadow:0 14px 60px #0007; font:500 14px system-ui; }
.app-launch-surface .home-icon { width:64px; height:64px; border-radius:18px; }
.app-launch-surface .home-art { width:100%; height:100%; }
.app-launch-progress { width:20px; height:20px; border:2px solid #ffffff30; border-top-color:white; border-radius:50%; animation:app-loading 800ms linear infinite; }
@keyframes app-loading { to { rotate:360deg; } }
@media(prefers-reduced-motion:reduce) { .app-launch-progress { animation:none; } }

/* Relation navigation is shared by source articles and universe content. */
.universe-related { max-width:1180px; margin:34px auto 0; border-top:2px solid var(--universe-paper); padding-top:20px; display:flex; flex-wrap:wrap; gap:10px; }
.universe-related button { font-size:12px; }
.universe-related small { width:100%; color:var(--universe-muted); font-size:12px; line-height:1.7; }
