/* Optional room decoration; the original application owns every conversation and action. */
.room-masthead,.room-scene,.room-expand,.room-paper-foot { display:none; }
.room-paper { display:contents; }
:root[data-decoration="room"] {
 --font:"BaoHand",system-ui,-apple-system,"PingFang SC",sans-serif;
 --serif:"BaoTitle","BaoHand",serif;
 --bg:#f4efdf; --glass:#fcf8ed; --panel:#faf6eb; --panel-strong:#fffdf5;
 --line:#d8ceb7; --line-soft:#e6ddc980; --line-dash:#c7b998;
 --mine:#e6ecd9; --mine-line:#cbd6bd; --text-1:#554b3c; --text-2:#6b604e; --text-3:#80745e; --text-4:#8b7d67;
 --accent:#637c5f; --accent-text:#516f4c; --accent-soft:#7f997321; --on-accent:#fffdf1;
 --violet:#7f8c61; --violet-text:#617749; --moon:#a77b37; --ok:#708e63; --ok-text:#506d43; --ok-soft:#dee7d3;
 --err:#b45745; --err-text:#a54538; --shadow:0 3px 8px #6e552608;
 --avatar-bg:#f3e8ce; --avatar-ring:#cfbea0; --input-bg:#fffef8; --sheet-bg:#fcf8ed; --scrim:#3a382a70;
 color-scheme:light;
}
:root[data-decoration="room"][data-theme="dark"] {
 --bg:#302e27; --glass:#38362e; --panel:#423d31; --panel-strong:#464033;
 --line:#70634c; --line-soft:#c4ab7220; --line-dash:#8b7957;
 --mine:#485340; --mine-line:#65765a; --text-1:#f0e5cf; --text-2:#e0d2b6; --text-3:#c2b494; --text-4:#bbac8e;
 --accent:#b5c095; --accent-text:#c3cfa7; --accent-soft:#b5c09520; --on-accent:#303a29;
 --violet-text:#c3cfa7; --moon:#dfbc77; --ok-text:#c3cfa7; --ok-soft:#657b4240; --err-text:#ffb6a1;
 --avatar-bg:#b4a27d; --avatar-ring:#c1ae84; --input-bg:#39362c; --sheet-bg:#38362e; --scrim:#171810aa;
 color-scheme:dark;
}
:root[data-decoration="room"] {
 & body { background:var(--bg); }
 & .sky { background:var(--bg) url('/room-assets/tex-cream.webp') repeat; background-blend-mode:multiply; opacity:.12; }
 & .sky::before,& .sky::after { display:none; }
 & .shell,& .shell.has-rail,& .shell.has-rail.rail-folded { max-width:760px; margin:0 auto; --gutter:24px; }
 & .shell.room-chat { display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); grid-template-rows:76px minmax(0,1fr); column-gap:48px; max-width:1320px!important; padding:0 40px 32px; }
 & .room-masthead { grid-column:1/-1; display:flex; align-items:center; gap:20px; min-width:0; }
 & .room-brand { font-size:19px; white-space:nowrap; }
 & .room-brand>span { color:#bd8b69; font-size:27px; margin-left:10px; }
 & .room-motto { margin-left:auto; font-size:12px; letter-spacing:1px; color:var(--text-3); }
 & .room-light { display:flex; gap:8px; align-items:center; padding:8px 13px; border:1px solid var(--line); border-radius:30px; background:var(--panel); font-size:12px; white-space:nowrap; }
 & .room-light .i { width:17px; height:17px; color:var(--moon); }
 & .room-scene { display:flex; flex-direction:column; min-height:0; padding-top:22px; overflow-y:auto; overflow-x:hidden; scrollbar-width:none; }
 & .room-eyebrow { font:9px system-ui; letter-spacing:2px; color:var(--text-3); }
 & .room-heading h1 { font-family:var(--serif); font-size:43px; line-height:1.3; font-weight:400; margin:19px 0 8px; }
 & .room-spark { font-size:30px; color:#b39258; margin-left:6px; }
 & .room-heading p { margin:0; color:var(--text-3); font-size:17px; letter-spacing:2px; }
 & .room-picture { position:relative; margin:20px -10px; }
 & .room-art { display:block; width:100%; max-height:330px; object-fit:contain; mix-blend-mode:multiply; mask-image:linear-gradient(transparent,black 7%,black 92%,transparent); }
 & .room-bird { position:absolute; left:49%; bottom:12%; width:75px; border:0; background:none; padding:0; transform:rotate(-5deg); transition:transform .2s; }
 & .room-bird:hover { transform:rotate(5deg) translateY(-4px); }
 & .room-bird img { width:100%; display:block; }
 & .room-bird span { position:absolute; bottom:0; left:52px; font-size:10px; white-space:nowrap; background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:2px 7px; }
 & .room-bottom { display:flex; gap:25px; align-items:center; padding:6px; }
 & .room-note { flex:0 0 44%; position:relative; padding:21px 20px 12px; background:#f7eacb; color:#7b633f; border:1px solid #e3d4ac; border-radius:2px 2px 13px 3px; transform:rotate(-3deg); }
 & .room-note small { font-size:11px; }
 & .room-note p { margin:9px 0; font-size:18px; line-height:1.8; }
 & .room-note>span:last-child { display:block; text-align:right; font-size:13px; }
 & .room-tape { position:absolute; top:-9px; left:32%; width:65px; height:18px; background:#b2b99a90; transform:rotate(5deg); }
 & .room-links { flex:1; min-width:0; }
 & .room-links button { display:block; width:100%; border:0; border-bottom:1px solid var(--line); background:none; text-align:left; padding:12px 0; }
 & .room-links b { display:block; font-weight:400; font-size:14px; }
 & .room-links small { display:block; font-size:10px; color:var(--text-3); margin-top:3px; }
 & .room-footnote { margin-top:25px; font-size:11px; text-align:center; color:var(--text-3); }
 & .room-paper { display:flex; flex-direction:column; min-height:0; min-width:0; border:1px solid var(--line); border-radius:16px 16px 24px 24px; background:var(--glass); box-shadow:0 12px 30px #6e552609,4px 4px 0 -1px var(--bg),4px 4px 0 var(--line); overflow:hidden; }
 & .room-paper>.top { padding:16px 18px; gap:8px; background:transparent; backdrop-filter:none; border-bottom:1px solid var(--line); }
 & .room-paper .ident { display:flex; align-items:center; gap:12px; flex:1; min-width:0; max-width:none; border:0; border-radius:0; margin:0; padding:0; box-shadow:none; background:transparent; }
 & .room-paper .ident .avatar { width:43px; height:43px; box-shadow:0 0 0 1px var(--avatar-ring); }
 & .room-paper .ident .who { flex:1; flex-direction:column; align-items:flex-start; gap:3px; }
 & .room-paper .ident .who .name { font-size:23px; font-weight:400; }
 & .room-paper .ident .who .status { font-size:10px; align-self:flex-start; }
 & .room-paper .top-tools { display:flex!important; align-items:center; gap:0; }
 & .room-paper .top .rail-open { display:grid!important; width:30px; margin:0; }
 & .room-paper .top-tools .icon-btn { width:32px; }
 & .room-paper .stream { padding:18px 24px 14px; gap:14px; scrollbar-width:thin; scrollbar-color:var(--line) transparent; }
 & .room-paper .row { max-width:94%; }
 & .room-paper .bubble { padding:12px 15px; font-size:15px; line-height:1.85; box-shadow:0 2px 2px #6e552605; }
 & .room-paper .meta { font:9px system-ui; }
 & .room-paper>.compose { padding:10px 20px 0; background:transparent; backdrop-filter:none; border:0; }
 & .room-paper .compose .bar { padding:10px; border:1px solid var(--line); border-radius:17px; background:var(--input-bg); gap:6px; box-shadow:0 3px 0 #6e552609; }
 & .room-paper .compose .field { background:transparent; border:0; min-width:0; padding-left:0; }
 & .room-paper .compose .field textarea { padding:8px 0; font-size:15px; }
 & .room-paper .compose .round { width:36px; height:36px; }
 & .room-paper .compose .round:not(.go):not(.on) { background:transparent; border:0; }
 & .room-paper .compose .round.go { background:var(--accent); color:var(--on-accent); }
 & .room-paper-foot { display:block; flex:none; text-align:center; color:var(--text-3); font-size:10px; padding:10px 8px 13px; }
 & .rail { width:280px; transform:translateX(-102%); visibility:hidden; background:var(--sheet-bg); z-index:40; }
 & .shell .rail.open { transform:translateX(0); visibility:visible; }
 & .rail-scrim { display:block!important; z-index:39; }
 & .rail-scrim[style*="display: none"] { display:none!important; }
 & .login { padding:30px; background:var(--panel); border:1px solid var(--line); border-radius:24px; box-shadow:var(--shadow); }
 & .login .avatar { box-shadow:0 0 0 1px var(--line); }
 & .avatar { box-shadow:0 0 0 1px var(--avatar-ring); }
}
:root[data-decoration="room"][data-theme="dark"] .room-art { mix-blend-mode:normal; opacity:.85; border-radius:25px; }
@media (min-width:901px) and (max-height:800px) {
 :root[data-decoration="room"] .room-heading h1 { font-size:38px; margin-top:12px; }
 :root[data-decoration="room"] .room-scene { padding-top:12px; }
 :root[data-decoration="room"] .room-picture { margin:12px -8px 18px; }
 :root[data-decoration="room"] .room-art { max-height:245px; }
 :root[data-decoration="room"] .room-note p { font-size:17px; }
 :root[data-decoration="room"] .room-footnote { display:none; }
}
@media(max-width:1100px) and (min-width:901px) {
 :root[data-decoration="room"] .shell.room-chat { column-gap:26px; padding-left:24px; padding-right:24px; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); }
 :root[data-decoration="room"] .room-heading h1 { font-size:32px; }
 :root[data-decoration="room"] .room-note { flex-basis:100%; max-width:230px; margin:auto; }
 :root[data-decoration="room"] .room-links { display:none; }
}
@media(max-width:900px) {
 :root[data-decoration="room"] {
  & .shell.room-chat { display:flex; padding:0 12px max(10px,env(safe-area-inset-bottom)); max-width:760px!important; gap:0; }
  & .room-masthead { flex:none; height:51px; gap:10px; padding-top:env(safe-area-inset-top); }
  & .room-brand { font-size:14px; }
  & .room-brand>span { font-size:20px; margin-left:3px; }
  & .room-motto { display:none; }
  & .room-light { margin-left:auto; font-size:10px; padding:5px 8px; }
  & .room-scene { position:relative; overflow:hidden; flex:none; height:112px; max-height:112px; padding:6px 4px 0; transition:max-height .18s ease,padding .18s ease,opacity .18s ease; }
  & .room-heading { position:relative; z-index:1; pointer-events:none; }
  & .room-eyebrow { font-size:7px; letter-spacing:.7px; }
  & .room-heading h1 { font-size:28px; margin:10px 0 3px; }
  & .room-spark { font-size:21px; }
  & .room-heading p { font-size:12px; letter-spacing:.5px; }
  & .room-picture { position:absolute; width:210px; right:-12px; top:0; margin:0; opacity:.65; mask-image:linear-gradient(90deg,transparent,black 35%); }
  & .room-bird { width:42px; bottom:13%; }
  & .room-bird span,& .room-bottom,& .room-footnote { display:none; }
  & .room-paper { flex:1; border-radius:14px 14px 20px 20px; }
  & .room-paper>.top { padding:10px 9px; gap:4px; }
  & .room-paper .ident { gap:8px; }
  & .room-paper .ident .avatar { width:36px; height:36px; }
  & .room-paper .ident .who .name { font-size:20px; }
  & .room-paper .ident .who .status { font-size:9px; }
  & .room-paper .stream { padding:12px 14px; gap:12px; }
  & .room-paper .bubble { padding:10px 12px; font-size:14px; }
  & .room-paper>.compose { padding:7px 10px 0; }
  & .room-paper .compose .bar { padding:5px; gap:4px; }
  & .room-paper .compose .field textarea { font-size:16px; }
  & .room-paper-foot { font-size:9px; padding:7px 5px 9px; }
 }
}
@media(max-height:560px) {
 :root[data-decoration="room"] .room-scene,:root[data-decoration="room"] .room-masthead { display:none!important; }
 :root[data-decoration="room"] .shell.room-chat { display:flex; padding:6px; }
 :root[data-decoration="room"] .room-paper { flex:1; }
}
@media(prefers-reduced-motion:reduce) { .room-bird { transition:none!important; } }

.room-default-avatar { display:contents; }
.room-default-avatar .room-avatar { display:none; }
:root[data-decoration="room"] .room-default-avatar .room-avatar { display:block; object-fit:contain; }
:root[data-decoration="room"] .room-default-avatar svg { display:none; }

/* Preserve the original desktop spacing when the decoration is switched off. */
:root[data-decoration="classic"] .room-paper { display:flex; flex-direction:column; flex:1; min-height:0; }
@media(min-width:920px) {
 :root[data-decoration="classic"] .shell.has-rail .room-paper>.top,
 :root[data-decoration="classic"] .shell.has-rail .room-paper>.compose { padding-left:var(--gutter); padding-right:var(--gutter); }
 :root[data-decoration="classic"] .shell.has-rail .room-paper>.top { justify-content:center; min-height:64px; background:transparent; border-bottom:0; }
 :root[data-decoration="classic"] .shell.has-rail .room-paper>.compose { background:transparent; border-top:0; padding-bottom:18px; }
}

@media(max-width:900px) {
 :root[data-decoration="room"] .room-collapsed .room-scene { max-height:0; padding-top:0; opacity:0; visibility:hidden; pointer-events:none; }
 :root[data-decoration="room"] .room-collapsed .room-brand { display:none; }
 :root[data-decoration="room"] .room-collapsed .room-expand { display:block; border:0; background:none; padding:8px 4px; color:var(--text-2); font-size:14px; }
}
@media(prefers-reduced-motion:reduce) {
 :root[data-decoration="room"] .room-scene { transition:none; }
}
