:root{--ui-ink: #332b24;--ui-muted: #706250;--ui-paper: #f5eddb;--ui-surface: #fffaf1;--ui-line: #d3c3a9;--ui-line-strong: #b7a184;--ui-accent: #80382f;--ui-hover: #ede1cb;--ui-radius: 6px;--ui-shadow: 0 12px 32px #3024191a}body.character-app,body.archive-app:not(.auth-mode){background:#d9d1c2;color:var(--ui-ink);font-size:17px;line-height:1.5}body.character-app>.topbar,body.archive-app:not(.auth-mode)>header{position:sticky;top:0;z-index:50;background:#29241f;color:#f4ead7;border:0;border-bottom:1px solid #514438;box-shadow:0 3px 12px #241d1614;gap:20px;padding:0 24px;height:68px;min-height:68px;max-height:none;flex-wrap:nowrap}body.character-app .topbar .brand,body.archive-app:not(.auth-mode)>header .brand{font-size:12px;letter-spacing:.09em;white-space:nowrap}.topbar .page-navigation,body.archive-app:not(.auth-mode)>header #nav{gap:2px;min-width:0;flex-wrap:nowrap;scrollbar-color:#8b7557 #29241f}.topbar .page-navigation::-webkit-scrollbar,body.archive-app:not(.auth-mode)>header #nav::-webkit-scrollbar{height:4px}.topbar .page-navigation::-webkit-scrollbar-thumb,body.archive-app:not(.auth-mode)>header #nav::-webkit-scrollbar-thumb{background:#8b7557;border-radius:2px}.topbar .page-navigation::-webkit-scrollbar-track,body.archive-app:not(.auth-mode)>header #nav::-webkit-scrollbar-track{background:#29241f}body.character-app .topbar .nav-button,body.archive-app:not(.auth-mode)>header #nav button{padding:8px 11px;min-height:40px;border:1px solid transparent;border-radius:4px;background:transparent;color:#d9cbb6;box-shadow:none;font-size:16px;font-weight:400;white-space:nowrap;transform:none}body.character-app .topbar .nav-button:hover,body.archive-app:not(.auth-mode)>header #nav button:hover{color:#fff7e8;background:#ffffff09;filter:none}body.character-app .topbar .nav-button.active,body.archive-app:not(.auth-mode)>header #nav button.active{color:#fff4dd;background:#ffffff0b;box-shadow:inset 0 -2px #d7aa63}body.character-app #archive-menu-toggle{background:transparent;color:#f4ead7;border:1px solid #74614e;border-radius:4px;padding:7px 12px;min-height:38px;box-shadow:none}body.character-app #archive-menu-toggle:hover{background:#ffffff0b}.topbar #save-status{color:#d5c9b5;font-size:12px;opacity:1;white-space:nowrap}body :is(.sheet-button,.library-action-button,.journal-primary){border-radius:4px;box-shadow:none;font-family:Crimson Text,Georgia,serif;font-size:16px;font-weight:600;min-height:38px;line-height:1.3;transform:none}body :is(.sheet-button-primary,.journal-primary){background:#725039;border-color:#725039;color:#fff9ed}body :is(.sheet-button-secondary,.library-action-button){background:transparent;border-color:var(--ui-line-strong);color:#614735}body :is(.sheet-button,.library-action-button,.journal-primary):hover{box-shadow:none;transform:none}body :is(.sheet-button-secondary,.library-action-button):hover{background:var(--ui-hover);color:#493423}body button:disabled{cursor:not-allowed}body :is(input,select,textarea):disabled{cursor:not-allowed}body :is(.feature-card-menu,.character-options-list,.shared-dialog,.modal){border-color:var(--ui-line-strong);border-radius:var(--ui-radius);background:var(--ui-surface);box-shadow:var(--ui-shadow)}body #archive-panel{border:1px solid var(--ui-line-strong);background:var(--ui-paper);border-radius:8px;padding:28px;box-shadow:0 20px 70px #20180f40}body #archive-menu{background:var(--ui-surface);border:1px solid var(--ui-line-strong)}body #archive-menu .archive-menu-label{font-size:11px;letter-spacing:.08em;color:var(--ui-muted)}body #archive-panel :is(input:not([type=checkbox]),select),body .shared-dialog :is(input:not([type=checkbox]),select,textarea){background:var(--ui-surface);border:1px solid var(--ui-line-strong);border-radius:4px;min-height:40px;font:inherit}body #archive-panel :is(h2,h3){font-family:Cinzel,Georgia,serif}:is(.topbar,body.archive-app>header) :focus-visible{outline-color:#e6bf7b}@media(max-width:1100px){body.character-app>.topbar,body.archive-app:not(.auth-mode)>header{height:auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;padding:10px 20px 6px}body.character-app .topbar .brand,body.archive-app:not(.auth-mode)>header .brand{grid-column:1;grid-row:1}body.character-app .topbar .save-controls{grid-column:2;grid-row:1;width:auto;justify-content:flex-end;flex-wrap:nowrap;gap:12px}body.character-app .topbar .page-navigation,body.archive-app:not(.auth-mode)>header #nav{grid-column:1 / -1;grid-row:2;overflow-x:auto;scrollbar-width:thin;overscroll-behavior-x:contain;padding-bottom:4px;max-width:100%;flex-basis:auto}body.archive-app:not(.auth-mode)>header #logout{margin-left:auto}}@media(max-width:600px){body.character-app>.topbar,body.archive-app:not(.auth-mode)>header{padding:10px 12px 4px;gap:6px 10px}body.character-app .topbar .nav-button,body.archive-app:not(.auth-mode)>header #nav button{font-size:15px;padding:8px 10px;min-height:40px}body.character-app .topbar .brand,body.archive-app:not(.auth-mode)>header .brand{font-size:11px;letter-spacing:.04em}.topbar #save-status{font-size:11px}body.character-app .topbar .save-controls{gap:6px}body.character-app #archive-menu-toggle{min-height:36px;padding:6px 9px;font-size:14px}body #archive-panel{padding:20px}}.cb-history-dialog{width:min(640px,92vw);max-height:85vh;overflow:auto}.cb-version-entry{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.65rem 0;border-bottom:1px solid rgba(82,55,34,.18)}.cb-version-entry small{display:block;opacity:.75;margin-top:.15rem}.cb-version-entry button{flex-shrink:0}.cb-history-dialog [data-preview]{margin-top:1rem}.cb-draft-recovery{padding:.75rem 1rem;border:1px solid #a77c4d;background:#f3e7d3;color:#48321f}.cb-draft-recovery button{margin:.35rem .5rem .2rem 0}
