/* Platform layout only: Anna's style.css and theme.css are shared at build time. */
html[data-theme]:not([data-theme="notebook"]) .web-choices{background:var(--surface)}
html[data-theme]:not([data-theme="notebook"]) .album-item img{mix-blend-mode:normal;background:#fffaf0;border-radius:6px}
@media(max-width:480px){.masthead .header-controls{flex:0 0 125px}}
.web-world-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 24px}
#appearance-dialog{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:24px}#appearance-dialog p{margin:16px 0;line-height:1.8}#portrait-preview{display:block;width:180px;height:180px;object-fit:contain;margin:16px auto}#image-model{width:100%;min-height:48px;font-family:inherit;padding:10px}
#model{width:100%;min-height:48px;padding:10px;font-family:inherit}#load-models{margin-top:12px;max-width:100%}
#reset-dialog{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:24px}#reset-dialog p{margin:16px 0;line-height:1.8}#reset-dialog label{display:block;margin:20px 0 8px;font-size:13px}#open-reset{display:block;margin-top:28px}#reset-error{color:#913e32}
[hidden]{display:none!important}
.header-controls{flex-wrap:wrap}.masthead .brand{min-width:0}.brand small{line-height:1.6}
.chat-empty{margin:auto;text-align:center;color:var(--muted);padding:36px 12px}.chat-empty img{width:48px;opacity:.6;margin-bottom:18px}.chat-empty p{font-family:var(--pixel);font-size:15px;margin-bottom:8px}.chat-empty small{font-size:12px}
.message-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.message-label{display:block;font-size:11px;margin-bottom:6px}
.text-button{font:inherit;color:var(--green-dark);border:0;background:none;padding:0;box-shadow:none;text-decoration:underline;min-height:24px}.text-button:hover{box-shadow:none}
.web-choices:empty{display:none}.web-choices{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;padding:16px;border:2px solid var(--frame);background:#f6edd8}.web-choices p{flex-basis:100%;font-size:13px}
#settings-dialog,#backup-dialog{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:24px}
#settings-dialog label,#backup-dialog label{display:block;margin:20px 0 8px;font-family:var(--pixel);font-size:13px}#settings-dialog p,#backup-dialog p{margin:16px 0}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
#reply{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}#reply:empty{display:none}.chat-bottom small{line-height:1.8}
.web-dungeon-art{height:110px;background-size:cover;background-position:center;image-rendering:pixelated;border-bottom:2px solid var(--frame)}.dungeon-card{padding:0 0 12px;text-align:left;overflow:hidden}.dungeon-card small{display:block;padding:8px 14px;color:var(--muted)}
.album-item img{mix-blend-mode:multiply}.album-item.locked{opacity:.45}.album-item small{display:block;font-size:10px;margin-top:6px}.album-item{padding:10px;text-align:center;min-width:0}
#quest-reward{margin:12px 0}#welcome form{margin:20px 0 14px}.welcome label{display:block;margin-bottom:8px;font-size:13px}#game .main-grid{align-items:stretch}.main-grid .chat-card{min-height:520px}.main-grid .actions button{min-width:0}#actions b{font-size:13px}
@media(max-width:480px){.masthead{padding:14px 16px}.masthead .brand>span{font-size:18px}.masthead .brand img{width:32px;height:32px}.masthead .brand small{font-size:9px;max-width:150px;letter-spacing:0}.header-controls{max-width:none;gap:8px}.header-controls .badge{display:none}.header-controls button{padding:8px 10px;min-height:40px}.brand{gap:8px}.main-grid .chat-card{height:480px;min-height:400px}#actions b{font-size:12px}#actions small{font-size:9px}.album{grid-template-columns:repeat(2,minmax(0,1fr))}footer{line-height:2.8}#settings-dialog,#backup-dialog{padding:20px}.web-choices{padding:12px}.web-choices button{flex:1 1 110px}}
#settings-dialog input,#settings-dialog select{width:100%;min-width:0;box-sizing:border-box}#settings-dialog section{margin:16px 0;padding:0}#settings-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:var(--paper-alt,#ece7dc);border-radius:8px;font-size:11px}#settings-dialog details{margin-top:24px}#settings-dialog button{max-width:100%;white-space:normal}
