/* assets/ui/news.css */
.news-screen{min-height:calc(100dvh - 100px);padding:clamp(16px,3vw,38px);background:transparent;color:#422c1e}.news-hero{max-width:1040px;margin:0 auto 26px;padding:clamp(20px,4vw,48px);border:1px solid #b89459;border-radius:12px;background:linear-gradient(110deg,#fff3dbe8,#fff0d2d9);box-shadow:0 6px 22px #1c0d0c35}.news-eyebrow{display:block;font-size:.85em;color:#755633;letter-spacing:.04em}.news-hero h1{font-family:Georgia,serif;font-size:clamp(30px,4vw,48px);margin:9px 0}.news-hero p{font-size:19px;line-height:1.5;max-width:640px}.news-hero>div{display:flex;gap:10px;flex-wrap:wrap}.news-content{max-width:900px;margin:auto;display:grid;gap:22px;min-width:0}.news-post,.news-editor,.news-empty{background:linear-gradient(125deg,#fffaf0,#f5e7c7);border:1px solid #b89563;border-radius:10px;box-shadow:0 5px 16px #1e100c36;padding:clamp(18px,3vw,30px);min-width:0}.news-post h2{font-family:Georgia,serif;font-size:clamp(25px,3vw,34px);line-height:1.25;margin:9px 0 20px;overflow-wrap:anywhere}.news-post-text{white-space:pre-wrap;font-size:19px;line-height:1.65;overflow-wrap:anywhere}.news-post footer{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:18px}.news-status{font-size:14px;color:#6c573c;margin-right:auto}.news-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:22px}.news-gallery.count-1{grid-template-columns:1fr}.news-gallery a{display:block;min-width:0}.news-gallery img{width:100%;max-height:500px;object-fit:contain;display:block;border-radius:6px;background:#dbc7a3}.news-video{position:relative;aspect-ratio:16/9;margin-top:22px;background:#251c17;border-radius:8px;overflow:hidden}.news-video iframe{display:block;width:100%;height:100%;border:0}.news-empty{display:flex;align-items:center;gap:24px}.news-empty>img{width:clamp(110px,27%,220px);height:auto;border-radius:9px}.news-empty h2{font-family:Georgia,serif;font-size:26px}.news-empty p{font-size:19px;line-height:1.5}.news-private{display:grid;gap:16px}.news-private>summary{padding:14px;background:#f9e7c9;border:1px solid #c69b60;border-radius:7px;cursor:pointer}.news-private .news-post{margin-top:18px}.news-editor>header{display:flex;justify-content:space-between;align-items:center;gap:12px}.news-editor form{display:grid;gap:18px;margin-top:20px}.news-editor label{display:grid;gap:7px;font-size:18px}.news-editor input,.news-editor textarea{box-sizing:border-box;width:100%;max-width:100%;color:#332516!important;background:#fffaf0!important;font:inherit;line-height:1.5;border:1px solid #b2956a;padding:10px 12px;border-radius:6px}.news-editor textarea{min-height:210px;resize:vertical}.news-editor small{font-size:14px;line-height:1.5;color:#705638}.news-upload{padding:12px;border:1px dashed #9d7846;border-radius:6px}.news-upload input{font-size:15px}.news-editor-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.news-editor-images figure{position:relative;margin:0;min-width:0}.news-editor-images img{width:100%;height:130px;object-fit:contain;background:#dfcba5;border-radius:5px}.news-editor-images figure>button{position:absolute;right:3px;top:3px;min-height:30px;min-width:30px;background:#fff5dc;border-radius:50%;color:#6b241d}.news-editor-images input{font-size:14px;padding:7px}.news-editor-error{color:#9c3024;min-height:1em;margin:0}.news-editor-actions,.push-actions{display:flex;gap:10px;flex-wrap:wrap}.news-preview{border-top:1px solid #c8ac7f;margin-top:25px;padding-top:16px}.news-delete-confirm{padding:15px;background:#fff0dc;border:1px solid #ab613a}.news-more{justify-self:center}.push-settings{font-size:18px;line-height:1.55}.push-install{padding:14px;background:#fff0d6;border:1px solid #c7a878;border-radius:8px}.push-install ol{padding-left:22px}.push-status{padding:10px 0;font-weight:600}.push-settings .small{font-size:15px}.push-actions button{white-space:normal}.news-loading{padding:25px;background:#fff1d8}
@media(max-width:760px){.news-screen{padding:12px 9px 22px;}.news-hero{padding:20px 16px}.news-post-text{font-size:18px;line-height:1.6}.news-empty{flex-direction:column;text-align:center;gap:5px}.news-empty>img{width:150px}.news-editor>header{align-items:flex-start;flex-direction:column}.news-editor-images{grid-template-columns:repeat(2,minmax(0,1fr))}.news-editor-actions button,.push-actions button{flex:1 1 160px}.news-gallery{gap:6px}.news-post{padding:18px 14px}.news-post h2{font-size:25px}.news-content{gap:16px}}

.news-editor fieldset{display:grid;gap:18px;border:0;padding:0;margin:0;min-width:0}.news-delete-confirm{flex:1 0 100%;line-height:1.5}.news-delete-confirm>div{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}

/* One viewport background, shared by administrator, master and player views. */
html[data-build="5"] body[data-screen="news"]::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;background:#5f3b25 url('/assets/news/newsroom.webp') center/cover no-repeat}
html[data-build="5"] body[data-screen="news"]::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#f3e3ca52,#f9f0e020 50%,#e9d6bb52)}
html[data-build="5"] body[data-screen="news"] .world-bg{display:none!important}
html[data-build="5"] body[data-screen="news"] :is(.game-shell,.game-stage,.stage-content,.news-screen){background:transparent!important;background-image:none!important}
html[data-build="5"] body[data-screen="news"]{isolation:isolate}
html[data-build="5"] body[data-screen="news"][data-role]::before{background:#5f3b25 url('/assets/news/newsroom.webp') center/cover no-repeat!important}
html[data-build="5"] body[data-screen="news"][data-role]::before{content:""!important;display:block!important}

.news-publishing{margin:1rem 0 2rem;padding:1.2rem;border:1px solid #cfb78666;border-radius:16px;background:#191b20;color:#eee}.news-publishing summary{cursor:pointer;font-weight:700}.news-settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin:1rem 0}.news-settings-grid label{display:grid;gap:.4rem}.news-settings-grid input,.news-settings-grid select{width:100%;min-height:42px;background:#12141a;color:#f5ede0;border:1px solid #81765e;border-radius:8px;padding:.6rem}.news-check{display:flex;align-items:center;gap:.6rem;margin:1rem 0}.news-check input{width:auto;min-height:0}.news-vk-preview{padding:1rem;border:1px solid #c9a35b;border-radius:12px;margin:1rem 0}.news-vk-preview pre{white-space:pre-wrap;font-family:inherit;overflow-wrap:anywhere;max-height:400px;overflow:auto}.news-delivery-table{overflow:auto}.news-delivery-table table{width:100%;border-collapse:collapse}.news-delivery-table td,.news-delivery-table th{text-align:left;padding:.7rem;border-bottom:1px solid #ffffff22;vertical-align:top}.news-game-cta{display:inline-block;text-decoration:none}.news-post footer{flex-wrap:wrap;gap:.6rem}

/* News has its own chronicler's room; the scene layer sits above body art. */
html[data-build="5"] body[data-screen="news"][data-role]:is([data-role="admin"],[data-role="master"],[data-role="player"]) .player-scene-background{background-image:url('/assets/news/newsroom.webp')!important;background-position:center!important;background-size:cover!important;opacity:1!important}
html[data-build="5"] body[data-screen="news"] .news-screen{color:#422c1e!important}
html[data-build="5"] body[data-screen="news"] .news-publishing{background:#fbf1dc!important;color:#422c1e!important;border:1px solid #a58451!important;border-radius:10px!important;margin:0!important;padding:16px 20px!important;box-shadow:0 5px 20px #24120730}
html[data-build="5"] body[data-screen="news"] .news-publishing :is(p,label,small,summary,h3,pre,th,td){color:#422c1e!important}
html[data-build="5"] body[data-screen="news"] .news-publishing :is(input,select){background:#fffaf0!important;color:#332516!important;border:1px solid #967442!important;box-sizing:border-box;max-width:100%;min-width:0}
html[data-build="5"] body[data-screen="news"] .news-publishing summary{font-size:20px;line-height:1.4}
html[data-build="5"] body[data-screen="news"] .news-publishing .news-check{display:flex!important;align-items:flex-start;gap:10px}
html[data-build="5"] body[data-screen="news"] .news-check input{appearance:auto!important;accent-color:#386345!important;width:20px!important;height:20px!important;flex:0 0 20px!important;min-height:20px!important;margin:4px 0!important}
html[data-build="5"] body[data-screen="news"] .news-delivery-table :is(td,th){border-color:#b99b6c!important;font-size:16px}
.news-document{font-size:19px;line-height:1.65;overflow-wrap:anywhere}
.news-doc-block{margin:0 0 18px;min-width:0;white-space:pre-wrap}
.news-doc-heading{font-size:26px;line-height:1.35;font-weight:700;margin:25px 0 14px}
.news-doc-image img{display:block;width:100%;max-height:560px;object-fit:contain;border-radius:7px}
.news-doc-image figcaption{font-size:15px;color:#705638;margin-top:6px}
.news-doc-image.news-image-wide{width:75%}.news-doc-image.news-image-small{width:45%}
.news-doc-image[style*="center"]{margin-left:auto;margin-right:auto}.news-doc-image[style*="right"]{margin-left:auto}
.news-doc-button a{display:inline-block;text-decoration:none;white-space:normal;max-width:100%;box-sizing:border-box}
.news-visual-editor{padding:20px!important}
.news-visual-editor>header h2{margin:4px 0;font-size:27px}
.news-visual-editor>header p{font-size:16px;line-height:1.4;margin:5px 0}
.news-visual-editor form{margin-top:16px}
.news-visual-editor textarea[hidden]{display:none!important}
.news-editor-ribbon{display:flex;flex-wrap:wrap;gap:8px;position:sticky;top:8px;z-index:5;padding:10px;border:1px solid #ae8b58;border-radius:8px;background:#f2e1bf;box-shadow:0 3px 8px #39261218}
.news-ribbon-group{display:flex;flex-wrap:wrap;gap:5px;padding-right:8px;border-right:1px solid #b79a6a}
.news-ribbon-group:last-child{border-right:0}
html[data-build="5"] body[data-screen="news"] .news-editor-ribbon button,.news-editor-ribbon button,.news-editor .news-upload-inline{background:#fff7e7!important;color:#4a3221!important;border:1px solid #b39463!important;border-radius:5px!important;min-height:36px!important;padding:5px 9px!important;font-size:16px!important;line-height:1.3;cursor:pointer;display:inline-flex;align-items:center}
.news-editor .news-upload-inline{position:relative;overflow:hidden;gap:0}
.news-upload-inline input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;padding:0}
.news-editor-selection{font-size:15px;line-height:1.4;display:flex;gap:14px;flex-wrap:wrap;color:#6b5133}
.news-editor-selection label{flex:1 1 220px;font-size:16px}
.news-editor-selection select,.news-release-settings select{background:#fffaf0!important;color:#332516!important;box-sizing:border-box;max-width:100%;min-width:0}
.news-editor-canvas{min-width:0}
.news-editor-canvas>.news-post{box-shadow:0 3px 14px #28160820;margin:0}
.news-editor-canvas [contenteditable=true]{outline:1px dashed transparent;outline-offset:5px;cursor:text;min-height:1.5em}
.news-editor-canvas [contenteditable=true]:hover{outline-color:#bd9a62}
.news-editor-canvas [contenteditable=true]:focus{outline:2px solid #567a68!important;outline-offset:5px}
.news-editor-canvas [contenteditable=true]:empty:before{content:attr(data-placeholder);opacity:.5;pointer-events:none}
.news-editor-canvas [data-news-block]{position:relative;cursor:pointer}
.news-editor-canvas [data-news-block][data-selected]{box-shadow:0 0 0 2px #63836c;border-radius:3px}
.news-editor-canvas [data-news-rich]{cursor:text}
.news-editor-canvas .news-doc-button a{min-width:80px;cursor:text}
.news-release-settings{border-top:1px solid #c9ad80;padding-top:13px}
.news-release-settings summary{font-size:18px;cursor:pointer}
.news-release-settings p{font-size:16px;line-height:1.5}
.news-visual-editor .news-editor-actions{padding-top:14px;border-top:1px solid #c9ad80}
@media(max-width:760px){.news-visual-editor{padding:14px!important}.news-editor-ribbon{position:static;padding:7px;gap:6px}.news-ribbon-group{padding:0;border:0;gap:4px}.news-editor-ribbon button,.news-editor .news-upload-inline{font-size:14px!important;padding:6px 8px!important;min-height:36px!important}.news-document{font-size:18px;line-height:1.6}.news-doc-image.news-image-small{width:65%}.news-settings-grid{grid-template-columns:minmax(0,1fr)}.news-editor-selection{font-size:14px}.news-editor-canvas>.news-post{padding:16px!important}.news-editor-actions{gap:7px}.news-editor-actions button{font-size:16px!important}.news-publishing .news-settings-grid{gap:12px}.news-delivery-table table{min-width:480px}}

.news-document strong{font-weight:900;-webkit-text-stroke:.25px currentColor}

.news-publishing,.news-publishing form,.news-publishing details,.news-delivery-table{min-width:0;max-width:100%;box-sizing:border-box}.news-publishing p{overflow-wrap:anywhere}.news-publishing .news-settings-grid{min-width:0}.news-publishing button{max-width:100%;white-space:normal}

.news-publishing p{font-size:18px;line-height:1.5}.news-publishing h3{font-size:22px}.news-publishing .news-settings-grid label{font-size:18px}.news-publishing .news-check{font-size:17px}

html[data-build="5"] body[data-screen="news"] .news-vk-preview pre{font:18px/1.6 var(--club-user-font,'Neucha',sans-serif)!important;max-height:400px;color:#422c1e!important}


/* assets/ui/quest-surfaces.css */
/* First layer: these scoped important rules also override older important themes. */
@layer quest-surfaces {
  body[data-screen="quests"] .quest-grid > .board-empty {
    grid-column:1 / -1!important;
    display:grid!important;
    place-items:center;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    min-height:72px;
    padding:18px clamp(16px,2vw,24px)!important;
    border:1px solid #a87b46!important;
    border-radius:8px!important;
    background:linear-gradient(180deg,#f8eedb,#ecd8b4)!important;
    box-shadow:inset 0 1px #fff8e8,0 3px 8px #21120b26!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    color:#503722!important;
    text-align:center;
    text-shadow:none!important;
    line-height:1.45;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  body .quest-surface {
    position:relative!important; display:block!important; isolation:isolate;
    min-width:0!important; width:100%!important; max-width:100%!important;
    min-height:var(--quest-surface-height,0px)!important; height:auto!important;
    padding:0!important; border:0!important; border-radius:0!important;
    background:transparent!important; transform:none!important; overflow:visible!important;
    box-sizing:border-box!important;
  }
  body .quest-surface::before, body .quest-surface::after { display:none!important; }
  body .quest-board-modular.quest-surface { overflow:hidden!important; }
  body .quest-surface-art { position:absolute!important; inset:0!important; z-index:-1!important; pointer-events:none!important; overflow:hidden!important; }
  body .quest-surface-art > div { width:100%; background-image:var(--quest-segment-image)!important; background-size:100% 100%; background-repeat:no-repeat; }
  body .quest-surface-art > div:nth-child(2) { background-repeat:repeat-y; }
  body .quest-surface-content {
    position:relative!important; display:flow-root!important; min-width:0!important;
    padding:var(--quest-inset-top,27%) var(--quest-inset-right,18%) var(--quest-inset-bottom,25%) var(--quest-inset-left,18%)!important;
    box-sizing:border-box!important; overflow-wrap:anywhere!important;
  }
  body .quest-board-modular > .quest-surface-content { padding:var(--quest-inset-top,22%) var(--quest-inset-right,12%) var(--quest-inset-bottom,20%) var(--quest-inset-left,12%)!important; }
  body .quest-surface-content > :is(.quest-paper-top,.quest-paper-middle,.quest-paper-bottom) {
    position:static!important; display:grid!important; gap:12px!important; width:auto!important;
    min-height:0!important; height:auto!important; padding:0!important; margin:0 0 16px!important;
    background:none!important; border:0!important; box-sizing:border-box!important;
  }
  body .quest-surface-content > .quest-paper-bottom { margin-bottom:0!important; }
  body .quest-surface-content > .quest-paper-top { gap:4px!important; margin-bottom:6px!important; }
  body .quest-paper-title { margin:0!important; text-align:center!important; }
  body .quest-paper-meta { display:flex!important; flex-wrap:nowrap!important; justify-content:flex-start!important; align-items:baseline!important; gap:10px!important; margin:0!important; text-align:left!important; font-size:.74rem!important; line-height:1.2!important; }
  body .quest-paper-meta > :is(.quest-paper-status,.quest-paper-levels) { display:inline!important; margin:0!important; padding:0!important; white-space:nowrap!important; font-size:inherit!important; font-weight:400!important; }
  body .quest-surface :is(h2,h3,p,.quest-description,.quest-actions,.quest-region) {
    max-height:none!important; overflow:visible!important; white-space:normal!important; overflow-wrap:anywhere!important;
  }
  body .quest-surface p { white-space:pre-wrap!important; }
  body .quest-surface .quest-description p { display:block!important; -webkit-line-clamp:unset!important; }
  body :is(.quest-board-modular,.quest-drafts) .quest-grid, body .quest-board-modular .goal-list {
    display:grid!important; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))!important;
    grid-auto-flow:row!important; gap:24px!important; align-items:start!important; padding:0!important;
  }
  body :is(.quest-board-modular,.quest-drafts) .quest-grid > *, body .quest-board-modular .goal-list > * {
    grid-column:auto!important; min-width:0!important; max-width:100%!important; transform:none!important;
  }
  body .quest-board-modular .quest-board-goals { padding:0!important; margin-bottom:24px!important; background:none!important; border:0!important; box-shadow:none!important; }
  body .quest-board-modular .goal-list { grid-template-columns:minmax(0,1fr)!important; gap:9px!important; }
  body .goal-card {
    position:relative!important; display:grid!important; grid-template-columns:minmax(0,1fr)!important; width:100%!important;
    min-width:0!important; padding:0!important; overflow:hidden!important; box-sizing:border-box!important;
    border:1px solid #7f5a31!important; border-radius:7px!important;
    background:
      linear-gradient(90deg,rgba(112,72,31,.09),transparent 16%,transparent 84%,rgba(112,72,31,.09)),
      url('/assets/ui/paper-grain.svg') center/cover,
      #f4dfb8!important;
    box-shadow:inset 0 0 0 3px rgba(255,247,218,.65),0 4px 10px rgba(51,31,13,.18)!important;
    color:#302217!important;
  }
  body .goal-card::before,body .goal-card::after { content:'◆'!important; display:block!important; position:absolute!important; z-index:2!important; top:50%!important; translate:0 -50%!important; color:#8a6335!important; font-size:9px!important; }
  body .goal-card::before { left:5px!important; }
  body .goal-card::after { right:5px!important; }
  body .goal-card.has-image { grid-template-columns:clamp(86px,12%,126px) minmax(0,1fr)!important; }
  body .goal-card-image { display:block!important; width:100%!important; height:100%!important; min-height:112px!important; max-height:132px!important; object-fit:cover!important; border-right:2px solid #9a7446!important; }
  body .goal-card-body { position:relative!important; z-index:1!important; display:grid!important; grid-template-columns:minmax(0,1fr) auto!important; gap:5px 14px!important; align-content:center!important; min-width:0!important; padding:9px 18px!important; }
  body .goal-card-body > header { grid-column:1/-1; display:flex!important; align-items:start!important; justify-content:space-between!important; gap:12px!important; }
  body .goal-card-heading { min-width:0!important; }
  body .goal-card-body h3 { margin:0!important; font-size:clamp(1rem,1.55vw,1.28rem)!important; line-height:1.05!important; overflow:hidden!important; text-overflow:ellipsis!important; white-space:nowrap!important; }
  body .goal-card-body header small { display:block!important; margin-bottom:1px!important; color:#72502e!important; font-size:.63rem!important; line-height:1!important; letter-spacing:.04em!important; text-transform:uppercase!important; }
  body .goal-card-body header small i { color:#9b733f!important; font-style:normal!important; }
  body .goal-card-body > p { grid-column:1/-1; display:-webkit-box!important; margin:0!important; overflow:hidden!important; -webkit-box-orient:vertical!important; -webkit-line-clamp:2!important; font-size:.78rem!important; line-height:1.2!important; white-space:normal!important; }
  body .goal-card-actions { display:flex!important; flex-wrap:wrap!important; justify-content:flex-end!important; gap:7px!important; }
  body .goal-card-actions button { min-height:0!important; padding:3px 7px!important; font-size:.65rem!important; line-height:1.1!important; }
  body .goal-card-actions .danger-button { width:24px!important; padding:2px!important; font-size:1rem!important; }
  body .goal-progress-row { grid-column:1; display:grid!important; grid-template-columns:minmax(0,1fr) auto!important; align-items:center!important; gap:7px!important; min-width:0!important; }
  body .goal-progress { position:relative!important; height:8px!important; overflow:hidden!important; border:1px solid #79572f!important; border-radius:999px!important; background:#cbb58d!important; box-shadow:inset 0 1px 2px rgba(56,31,10,.22)!important; }
  body .goal-progress > i { display:block!important; height:100%!important; border-radius:inherit!important; background:linear-gradient(90deg,#315f50,#6f9775,#a7ba77)!important; box-shadow:0 0 5px rgba(49,95,80,.32)!important; transition:width .2s ease!important; }
  body .goal-progress-value { min-width:34px!important; color:#315f50!important; font-size:.72rem!important; text-align:right!important; }
  body .goal-card-body > footer { grid-column:2; grid-row:3/5; align-self:end!important; display:flex!important; align-items:center!important; justify-content:flex-end!important; flex-wrap:wrap!important; gap:5px 10px!important; font-size:.7rem!important; white-space:nowrap!important; }
  body .goal-count { color:#5f462d!important; }
  body .goal-reward { color:#6c4b27!important; }
  body .goal-reward i { color:#9a713b!important; font-style:normal!important; }
  body .goal-direct-value { display:flex!important; align-items:center!important; gap:7px!important; margin-left:auto!important; }
  body .goal-direct-value span { font-size:.64rem!important; }
  body .goal-direct-value input { width:62px!important; min-height:0!important; padding:2px 5px!important; font-size:.72rem!important; }
  body .goal-editor { display:grid; gap:18px; }
  body .goal-editor-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
  body .goal-editor-fields label { display:grid; gap:6px; }
  body .goal-editor-fields .full { grid-column:1/-1; }
  body .goal-image-editor { display:grid; grid-template-columns:minmax(180px,280px) minmax(0,1fr); gap:18px; align-items:center; padding:14px; border:1px solid #b89a70; border-radius:10px; background:#f8ecd4; }
  body .goal-image-preview { display:grid; place-items:center; min-height:150px; overflow:hidden; border:1px dashed #a98b61; border-radius:8px; background:#eadfc7; color:#665746; text-align:center; }
  body .goal-image-preview img { display:block!important; width:100%!important; height:180px!important; object-fit:cover!important; }
  body .goal-image-editor > div:last-child { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
  body .goal-image-editor > div:last-child > :is(b,p) { flex-basis:100%; margin:0; }
  body .quest-board-filters { margin-bottom:24px!important; }
  body .quest-surface .quest-actions { display:flex!important; flex-wrap:wrap!important; gap:8px!important; }
  body .quest-surface .quest-actions button { max-width:100%!important; white-space:normal!important; }
  body .quest-surface-fallback { background:#ead3a4!important; }
  body :is(.quests-screen,.unified-quest-admin) { background:transparent!important; }
  body :is(.quests-screen,.unified-quest-admin)::before, body :is(.quests-screen,.unified-quest-admin)::after { display:none!important; }
  body:has(:is(.quests-screen,.unified-quest-admin)) .world-bg {
    background-image:var(--quest-page-background,var(--studio-image-quest,url('/assets/ui/guild-map-light.svg')))!important;
    background-size:cover!important; background-position:center!important; background-repeat:no-repeat!important;
  }
  body .quest-drafts { margin-top:24px; padding:20px; }
  body .quest-drafts > summary { cursor:pointer; margin-bottom:16px; font-weight:bold; }
  body .quest-art-form { display:grid; gap:16px; }
  body .quest-art-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; }
  body .quest-art-form label { display:grid; gap:6px; }
  body .quest-art-preview { max-width:700px; margin:auto; width:100%; }
  body .quest-template-preview { max-width:420px; }
  body .quest-art-form .quest-art-status { white-space:pre-wrap; }
  body .quest-board-choice-preview { max-width:900px; margin:16px auto; }
  body .quest-area-editor { padding:16px; margin:16px 0; border:1px solid #ab916a; border-radius:12px; background:#fff8e9; color:#30281f; }
  body .quest-area-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:12px; margin-bottom:16px; }
  body .quest-area-fields label { display:grid; gap:4px; font-size:14px; }
  body .quest-area-fields input { width:100%; min-width:0; box-sizing:border-box; }
  body .quest-area-fields small { font-size:12px; }
  body .quest-area-canvas { max-width:900px; margin:0 auto 16px; }
  body .quest-area-canvas > .quest-paper-modular { max-width:460px!important; margin:auto!important; }
  body :is(.quest-board-choice-preview,.quest-area-canvas) .quest-grid { grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:12px!important; }
  body .quest-area-sample { font-size:13px!important; line-height:1.35!important; }
  body .quest-area-sample h3 { font-size:17px!important; }
  body .quest-area-box {
    position:absolute!important; z-index:5!important; box-sizing:border-box!important;
    border:2px dashed #256d62!important; background:rgba(45,143,124,.10)!important;
    cursor:move!important; touch-action:none!important; user-select:none!important;
    min-width:0!important; min-height:0!important;
  }
  body .quest-area-label { position:absolute; left:16px; top:-26px; padding:3px 7px; background:#fffbe9; border-radius:4px; font-size:12px; pointer-events:none; }
  body .quest-area-handle { position:absolute!important; display:block!important; width:14px!important; height:14px!important; background:#fffbe9!important; border:2px solid #256d62!important; box-sizing:border-box!important; border-radius:3px; }
  body .handle-n,body .handle-nw,body .handle-ne { top:-8px; }
  body .handle-s,body .handle-sw,body .handle-se { bottom:-8px; }
  body .handle-w,body .handle-nw,body .handle-sw { left:-8px; }
  body .handle-e,body .handle-ne,body .handle-se { right:-8px; }
  body .handle-n,body .handle-s { left:calc(50% - 7px); cursor:ns-resize; }
  body .handle-w,body .handle-e { top:calc(50% - 7px); cursor:ew-resize; }
  body .handle-nw,body .handle-se { cursor:nwse-resize; }
  body .handle-ne,body .handle-sw { cursor:nesw-resize; }
  body .quest-area-buttons { position:relative; z-index:6; margin-top:18px; }
  @media(max-width:600px) {
    body :is(.quest-board-choice-preview,.quest-area-canvas) .quest-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
    body .quest-area-editor { padding:8px; }
    body .goal-card.has-image { grid-template-columns:minmax(0,1fr)!important; }
    body .goal-card-image { height:92px!important; min-height:92px!important; max-height:92px!important; border-right:0!important; border-bottom:2px solid #9a7446!important; }
    body .goal-card-body > header { display:grid!important; }
    body .goal-card-actions { justify-content:flex-start!important; }
    body .goal-card-body { grid-template-columns:minmax(0,1fr)!important; padding:9px 15px!important; }
    body .goal-card-body > footer { grid-column:1!important; grid-row:auto!important; justify-content:flex-start!important; }
    body .goal-editor-fields,body .goal-image-editor { grid-template-columns:minmax(0,1fr); }
  }
}


/* styles.css */
/* 9 Lives UI v4 — one design language for every role and screen. */
@layer reset, tokens, shell, components, features, responsive, runtime, refinement,
  final-ui;

@layer tokens {
  :root {
    color-scheme: light;
    --v4-bg:#eadfc7;
    --v4-bg-soft:#f4ead6;
    --v4-surface:#fff7e7;
    --v4-surface-2:#f0e1c7;
    --v4-paper: #fff9ec;
    --v4-paper-2: #ead8b8;
    --v4-ink: #30281f;
    --v4-text: #30281f;
    --v4-muted: #665746;
    --v4-gold:#dacab9;
    --v4-gold-soft:#d9cbba;
    --v4-purple:#c0c8d3;
    --v4-green: #315f50;
    --v4-red:#d8bdbb;
    --v4-border: rgba(128, 96, 58, 0.32);
    --v4-line:rgba(128, 96, 58, 0.18);
    --v4-shadow: 0 18px 48px rgba(85, 62, 35, 0.18);
    --v4-radius-sm: 10px;
    --v4-radius: 16px;
    --v4-radius-lg: 24px;
    --v4-sidebar: clamp(92px, 8.2vw, 124px);
    --v4-hud: 76px;
    --v4-content: 1540px;
    --v4-font: 'Neucha', 'Segoe Print', cursive;
    --v4-display: 'Neucha', 'Segoe Print', cursive;
  }
}

@layer components {
  html[data-build="5"] body .builder-concrete-equipment,
  html[data-build="5"] body .builder-spell-choice-columns {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
    gap: 14px;
    align-items: start;
  }
  html[data-build="5"] body .builder-concrete-equipment {
    margin-block: 14px;
  }
  html[data-build="5"] body .builder-equipment-choices,
  html[data-build="5"] body .builder-equipment-detail,
  html[data-build="5"] body .builder-spell-slot-list,
  html[data-build="5"] body .builder-spell-focused-detail {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(126, 180, 194, 0.18);
    border-radius: 14px;
    background: #ead8b8;
  }
  html[data-build="5"] body .builder-equipment-choices,
  html[data-build="5"] body .builder-spell-slot-list,
  html[data-build="5"] body .builder-spell-slot-list > section {
    display: grid;
    gap: 11px;
  }
  html[data-build="5"] body .builder-equipment-choices > header,
  html[data-build="5"] body .builder-spell-slot-list section > header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
  }
  html[data-build="5"] body :is(.builder-equipment-choices, .builder-spell-slot-list) label {
    display: grid;
    gap: 6px;
    color: #dbe8ec;
    font-size: 0.78rem;
  }
  html[data-build="5"] body :is(.builder-equipment-choices, .builder-spell-slot-list) select {
    width: 100%;
    min-width: 0;
  }
  html[data-build="5"] body :is(.builder-equipment-detail, .builder-spell-focused-detail) > span {
    color: #8fc8d5;
    font-size: 0.7rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }
  html[data-build="5"] body :is(.builder-equipment-detail, .builder-spell-focused-detail) > h4 {
    margin: 5px 0 12px;
    color: #f3e5c8;
    font-size: 1.35rem;
  }
  html[data-build="5"] body :is(.builder-equipment-detail, .builder-spell-focused-detail) dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 0 0 14px;
  }
  html[data-build="5"] body :is(.builder-equipment-detail, .builder-spell-focused-detail) dl > div {
    padding: 8px;
    border-radius: 9px;
    background: #ead8b8;
  }
  html[data-build="5"] body :is(.builder-equipment-detail, .builder-spell-focused-detail) dt {
    color: #8ba1aa;
    font-size: 0.65rem;
  }
  html[data-build="5"] body :is(.builder-equipment-detail, .builder-spell-focused-detail) dd {
    margin: 3px 0 0;
    color: #eef4f5;
    overflow-wrap: anywhere;
  }
  html[data-build="5"] body .builder-spell-choice-layout > header {
    margin-bottom: 13px;
  }
  html[data-build="5"] body .builder-spell-slot-list > section + section {
    padding-top: 13px;
    border-top: 1px solid rgba(126, 180, 194, 0.12);
  }
  html[data-build="5"] body .builder-granted-spell-list button {
    display: grid;
    width: 100%;
    gap: 2px;
    padding: 9px 10px;
    text-align: left;
    color: #30281f;
    border: 1px solid rgba(126, 180, 194, 0.15);
    border-radius: 9px;
    background: #ead8b8;
  }
  html[data-build="5"] body .builder-granted-spell-list button.active {
    border-color: #c19b58;
    box-shadow: inset 3px 0 #c19b58;
  }
  html[data-build="5"] body .builder-granted-spell-list small {
    color: #9eb2b9;
  }
  html[data-build="5"] body .builder-spell-focused-detail {
    max-height: min(62vh, 720px);
    overflow: auto;
  }
  @media (max-width: 820px) {
    html[data-build="5"] body .builder-concrete-equipment,
    html[data-build="5"] body .builder-spell-choice-columns {
      grid-template-columns: minmax(0, 1fr);
    }
    html[data-build="5"] body .builder-spell-focused-detail {
      max-height: 48vh;
    }
  }
}

@layer final-ui {
  /* Quest sheets are portrait documents: every configured region gets real height. */
  html[data-build="5"] body .quest-note.quest-layout-custom,
  html[data-build="5"] body .quest-builder-preview {
    aspect-ratio: var(--quest-sheet-ratio, 4 / 5) !important;
    height: auto !important;
    min-height: 0 !important;
  }
  html[data-build="5"] body .quest-grid {
    grid-template-columns: repeat(
      auto-fill,
      minmax(min(100%, 350px), 1fr)
    ) !important;
  }
  html[data-build="5"] body .quest-grid > .quest-note {
    max-width: 520px !important;
  }

  /* Full-screen RPG character creator with a permanent journey rail. */
  html[data-build="5"] body .character-builder-dialog {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1580px, calc(100vw - 24px));
    height: min(940px, calc(100dvh - 24px));
    max-width: none;
    max-height: none;
    overflow: hidden;
  }
  html[data-build="5"] body .character-builder-dialog > .dialog-head {
    margin-bottom: 0;
  }
  html[data-build="5"] body .rpg-character-creator {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(126, 180, 194, 0.15);
    border-radius: 16px;
    background: #ead8b8;
  }
  html[data-build="5"] body .builder-journey {
    display: grid;
    grid-template-columns: minmax(170px, 0.55fr) minmax(0, 2.7fr);
    grid-template-rows: auto auto;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    gap: 8px 16px;
    padding: 12px 14px 9px;
    border-bottom: 1px solid rgba(126, 180, 194, 0.16);
    background: #ead8b8;
  }
  html[data-build="5"] body .builder-journey-title {
    display: grid;
    gap: 3px;
    align-content: center;
    padding: 0 16px 0 0;
    border-right: 1px solid rgba(126, 180, 194, 0.13);
  }
  html[data-build="5"] body .builder-journey-title > span {
    color: var(--v4-gold);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  html[data-build="5"] body .builder-journey-title > b {
    overflow: hidden;
    color: var(--v4-text);
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html[data-build="5"] body .builder-journey-title > small {
    overflow: hidden;
    color: var(--v4-muted);
    font-size: 0.7rem;
    line-height: 1.35;
    text-overflow: ellipsis;
  }
  html[data-build="5"] body .rpg-character-creator .builder-steps {
    display: flex;
    align-items: stretch;
    gap: 5px;
    min-height: 0;
    margin: 0;
    overflow-x: auto;
  }
  html[data-build="5"] body .rpg-character-creator .builder-steps button {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 1px 9px;
    min-width: 0;
    flex: 1 0 122px;
    min-height: 48px;
    padding: 8px 9px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--v4-muted);
    background: transparent;
    text-align: left;
  }
  html[data-build="5"] body .rpg-character-creator .builder-steps button > b {
    display: grid;
    grid-row: 1 / 3;
    width: 30px;
    height: 30px;
    align-self: center;
    place-items: center;
    border: 1px solid rgba(126, 180, 194, 0.2);
    border-radius: 999px;
    color: var(--v4-text);
    font-size: 0.75rem;
  }
  html[data-build="5"]
    body
    .rpg-character-creator
    .builder-steps
    button
    > span {
    align-self: end;
    overflow: hidden;
    color: inherit;
    font-size: 0.78rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html[data-build="5"] body .rpg-character-creator .builder-steps button > i {
    overflow: hidden;
    color: var(--v4-muted);
    font-size: 0.62rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html[data-build="5"]
    body
    .rpg-character-creator
    .builder-steps
    button.active {
    border-color: rgba(80, 209, 196, 0.38);
    color: #dffcf8;
    background: rgba(80, 209, 196, 0.1);
  }
  html[data-build="5"]
    body
    .rpg-character-creator
    .builder-steps
    button.active
    > b,
  html[data-build="5"]
    body
    .rpg-character-creator
    .builder-steps
    button.done
    > b {
    border-color: var(--v4-gold);
    color: #071715;
    background: var(--v4-gold);
  }
  html[data-build="5"] body .builder-journey-progress {
    grid-column: 1 / -1;
    overflow: hidden;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.07);
  }
  html[data-build="5"] body .builder-journey-progress > i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--v4-gold);
    transition: width 240ms ease;
  }
  html[data-build="5"] body .rpg-character-creator > .builder-workspace {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    min-height: 0;
    padding: clamp(16px, 2vw, 28px);
    overflow: auto;
    overscroll-behavior: contain;
    background: #ead8b8;
  }
  html[data-build="5"] body .rpg-character-creator > .builder-actions {
    position: static;
    z-index: 3;
    display: flex;
    grid-column: 1 / -1;
    grid-row: 3;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    margin: 0;
    padding: 11px 14px;
    border-top: 1px solid rgba(126, 180, 194, 0.16);
    background: #ead8b8;
  }
  html[data-build="5"] body .rpg-character-creator .builder-step-panel {
    min-width: 0;
    max-width: 1180px;
    margin: 0 auto;
  }
  html[data-build="5"] body .builder-choice-screen {
    display: grid;
    grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.6fr);
    gap: clamp(14px, 2vw, 24px);
    align-items: start;
    min-width: 0;
  }
  html[data-build="5"] body .builder-choice-column {
    display: grid;
    gap: 12px;
    min-width: 0;
  }
  html[data-build="5"] body .builder-identity-fields,
  html[data-build="5"] body .builder-choice-stack {
    display: grid;
    gap: 9px;
  }
  html[data-build="5"] body .builder-choice-control {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(126, 180, 194, 0.14);
    border-radius: 11px;
    background: #ead8b8;
  }
  html[data-build="5"] body .builder-choice-control:focus-within,
  html[data-build="5"] body .builder-choice-control.is-complete:hover {
    border-color: rgba(80, 209, 196, 0.48);
  }
  html[data-build="5"] body .builder-choice-control-head {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
  }
  html[data-build="5"] body .builder-choice-control-head > span {
    color: var(--v4-gold);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  html[data-build="5"] body .builder-choice-control-head > b {
    overflow: hidden;
    color: var(--v4-text);
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html[data-build="5"] body .builder-choice-control-head > small {
    color: var(--v4-muted);
    font-size: 0.66rem;
  }
  html[data-build="5"] body .builder-choice-control select {
    width: 100%;
    min-width: 0;
  }
  html[data-build="5"] body .builder-choice-description {
    display: grid;
    gap: 14px;
    min-width: 0;
  }
  html[data-build="5"] body .builder-rule-stage {
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(126, 180, 194, 0.2);
    border-radius: 16px;
    background:
      radial-gradient(
        circle at 50% 0,
        rgba(80, 209, 196, 0.09),
        transparent 42%
      ),
      #ead8b8;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
  }
  html[data-build="5"] body .builder-rule-stage-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 14px;
    align-items: center;
    min-height: 112px;
    padding: 16px;
    border-bottom: 1px solid rgba(126, 180, 194, 0.14);
    text-align: center;
  }
  html[data-build="5"] body .builder-rule-stage-head > div {
    display: grid;
    gap: 3px;
    min-width: 0;
  }
  html[data-build="5"] body .builder-rule-stage-head span {
    color: var(--v4-gold);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  html[data-build="5"] body .builder-rule-stage-head h3 {
    margin: 0;
    color: var(--v4-text);
    font-size: clamp(1.35rem, 2.5vw, 2.15rem);
  }
  html[data-build="5"] body .builder-rule-stage-head small {
    color: var(--v4-muted);
  }
  html[data-build="5"] body .builder-cycle-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0 0 3px;
    border: 1px solid rgba(80, 209, 196, 0.4);
    border-radius: 999px;
    color: #dffcf8;
    background: rgba(80, 209, 196, 0.08);
    font-size: 1.75rem;
    line-height: 1;
  }
  html[data-build="5"] body .builder-cycle-button:hover:not(:disabled) {
    color: #071715;
    background: var(--v4-gold);
    transform: translateY(-1px);
  }
  html[data-build="5"] body .builder-rule-stage-body {
    display: grid;
    gap: 16px;
    min-height: 250px;
    padding: clamp(18px, 2.5vw, 30px);
  }
  html[data-build="5"] body .builder-rule-stage-body > p {
    max-width: 78ch;
    margin: 0;
    color: #dbe8ec;
    font-size: 0.94rem;
    line-height: 1.65;
    white-space: pre-line;
  }
  html[data-build="5"] body .builder-rule-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 8px;
    margin: 0;
  }
  html[data-build="5"] body .builder-rule-facts > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(126, 180, 194, 0.13);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
  }
  html[data-build="5"] body .builder-rule-facts dt,
  html[data-build="5"] body .builder-rule-tags > span {
    color: var(--v4-muted);
    font-size: 0.64rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }
  html[data-build="5"] body .builder-rule-facts dd {
    margin: 0;
    color: var(--v4-text);
    font-size: 0.8rem;
    font-weight: 700;
  }
  html[data-build="5"] body .builder-rule-tags {
    display: grid;
    gap: 7px;
  }
  html[data-build="5"] body .builder-rule-tags > div {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  html[data-build="5"] body .builder-rule-tags i {
    padding: 5px 8px;
    border: 1px solid rgba(126, 180, 194, 0.16);
    border-radius: 999px;
    color: #bcd0d7;
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.7rem;
    font-style: normal;
  }
  html[data-build="5"] body .builder-rule-stage > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 57px;
    padding: 10px 14px;
    border-top: 1px solid rgba(126, 180, 194, 0.13);
    background: rgba(219,227,232,0.35);
  }
  html[data-build="5"] body .builder-rule-stage > footer > span {
    color: var(--v4-muted);
    font-size: 0.68rem;
  }
  html[data-build="5"] body .builder-choice-list {
    display: grid;
    gap: 5px;
    max-height: 600px;
    padding-right: 4px;
    overflow: auto;
  }
  html[data-build="5"] body .builder-choice-list-item {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid rgba(126, 180, 194, 0.12);
    border-radius: 9px;
    color: var(--v4-text);
    background: #ead8b8;
    text-align: left;
  }
  html[data-build="5"] body .builder-choice-list-item > span {
    font-size: 0.82rem;
    font-weight: 750;
  }
  html[data-build="5"] body .builder-choice-list-item > small {
    color: var(--v4-muted);
    font-size: 0.65rem;
  }
  html[data-build="5"] body .builder-choice-list-item.selected {
    border-color: rgba(80, 209, 196, 0.55);
    background: #ead8b8;
    box-shadow: inset 3px 0 var(--v4-gold);
  }
  html[data-build="5"] body .builder-class-development {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(126, 180, 194, 0.16);
    border-radius: 14px;
    background: #ead8b8;
  }
  html[data-build="5"] body :is(.builder-portrait-upload, .character-portrait-editor) {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(126, 180, 194, 0.16);
    border-radius: 12px;
    background: #ead8b8;
  }
  html[data-build="5"] body :is(.builder-portrait-upload, .character-portrait-editor) img[data-content-image] {
    display: block !important;
    width: 92px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 1px solid rgba(80, 209, 196, 0.35);
    border-radius: 9px;
  }
  html[data-build="5"] body .builder-portrait-upload > div,
  html[data-build="5"] body .character-portrait-editor > div {
    display: grid;
    gap: 8px;
    min-width: 0;
  }
  html[data-build="5"] body :is(.builder-custom-portrait, .character-portrait-editor .soft-button) input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }
  html[data-build="5"] body .builder-rule-stage-body {
    max-height: min(58dvh, 620px);
    overflow: auto;
  }
  html[data-build="5"] body .builder-rule-description {
    display: grid;
    gap: 8px;
    padding-top: 4px;
    border-top: 1px solid rgba(126, 180, 194, 0.13);
  }
  html[data-build="5"] body .builder-rule-description h4,
  html[data-build="5"] body .builder-rule-description p {
    margin: 0;
  }
  html[data-build="5"] body .builder-rule-description h4 {
    color: var(--v4-gold-soft);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  html[data-build="5"] body .builder-rule-description p {
    color: #dbe8ec;
    font-size: 0.94rem;
    line-height: 1.68;
    white-space: pre-line;
  }
  html[data-build="5"] body .builder-rule-tags.mechanic-impact i {
    border-color: rgba(80, 209, 196, 0.28);
    color: #def9f5;
    background: rgba(80, 209, 196, 0.08);
  }
  html[data-build="5"] body .builder-equipment-summary,
  html[data-build="5"] body .builder-final-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
  }
  html[data-build="5"] body .builder-equipment-summary > span,
  html[data-build="5"] body .builder-final-sections > section,
  html[data-build="5"] body .builder-auto-equip,
  html[data-build="5"] body .builder-granted-spell {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(126, 180, 194, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
  }
  html[data-build="5"] body .builder-equipment-summary i {
    color: var(--v4-gold);
    font-style: normal;
  }
  html[data-build="5"] body .builder-auto-equip {
    margin-top: 10px;
    border-color: rgba(80, 209, 196, 0.26);
  }
  html[data-build="5"] body .builder-known-spells {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid rgba(80, 209, 196, 0.22);
    border-radius: 12px;
    background: rgba(80, 209, 196, 0.045);
  }
  html[data-build="5"] body .builder-known-spells > header,
  html[data-build="5"] body .builder-final-card > header > div > p {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
  }
  html[data-build="5"] body .builder-final-card img[data-content-image] {
    display: block !important;
    width: 88px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 9px;
  }
  html[data-build="5"] body .builder-final-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1px;
    margin-top: 12px;
    background: rgba(126, 180, 194, 0.15);
  }
  html[data-build="5"] body .builder-final-metrics > span {
    display: grid;
    gap: 3px;
    padding: 10px;
    background: #ead8b8;
  }
  html[data-build="5"] body .builder-final-sections {
    margin-top: 10px;
  }
  html[data-build="5"] body .builder-final-sections span {
    color: var(--v4-gold-soft);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }
  html[data-build="5"] body .builder-final-sections p {
    margin: 0;
    color: var(--v4-text);
    line-height: 1.5;
  }
  html[data-build="5"] body .classic-sheet-hero img[data-content-image] {
    display: block !important;
    object-fit: cover;
  }
  html[data-build="5"] body .character-game-progression {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(160px, 1.4fr) minmax(240px, 0.9fr);
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-top: 1px solid rgba(80, 209, 196, 0.22);
    border-bottom: 1px solid rgba(80, 209, 196, 0.22);
    background: linear-gradient(90deg, rgba(80, 209, 196, 0.1), #ead8b8 42%, #ead8b8);
  }
  html[data-build="5"] body .character-game-progression > header,
  html[data-build="5"] body .character-game-progression > footer,
  html[data-build="5"] body .character-game-progression > footer > span {
    display: grid;
    gap: 3px;
  }
  html[data-build="5"] body .character-game-progression > header > span,
  html[data-build="5"] body .character-game-progression > footer small {
    color: var(--v4-gold-soft);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  html[data-build="5"] body .character-game-progression > header > strong {
    display: flex;
    gap: 7px;
    align-items: baseline;
    color: var(--v4-text);
    font-size: 1.65rem;
  }
  html[data-build="5"] body .character-game-progression > header > strong > small {
    color: var(--v4-muted);
    font-size: 0.74rem;
    font-weight: 600;
  }
  html[data-build="5"] body .character-game-track {
    overflow: hidden;
    height: 10px;
    border: 1px solid rgba(126, 180, 194, 0.17);
    border-radius: 999px;
    background: #ead8b8;
  }
  html[data-build="5"] body .character-game-track > i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #43bfb4, #8ce8df);
  }
  html[data-build="5"] body .character-game-progression > footer {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
  html[data-build="5"] body .character-game-progression > footer b {
    font-size: 1.35rem;
  }
  html[data-build="5"] body .character-game-progression > footer p {
    margin: 0;
    color: var(--v4-muted);
    font-size: 0.76rem;
  }
  html[data-build="5"] body .classic-derived-properties > span {
    gap: 6px;
  }
  html[data-build="5"] body .classic-derived-properties > span > small,
  html[data-build="5"] body .classic-derived-properties > span > b {
    display: block;
  }
  html[data-build="5"] body .rpg-character-creator .builder-selection-block > header > div,
  html[data-build="5"] body .rpg-character-creator .builder-class-level-row > div,
  html[data-build="5"] body .rpg-character-creator .builder-spellbook > header > div {
    display: grid;
    gap: 4px;
    min-width: 0;
  }
  html[data-build="5"] body .rpg-character-creator .builder-selection-block > header :is(span, small),
  html[data-build="5"] body .rpg-character-creator .builder-class-level-row > div :is(small, strong, span) {
    display: block;
  }
  html[data-build="5"] body .classic-list-row.is-equipped {
    box-shadow: inset 3px 0 var(--v4-gold);
  }
  html[data-build="5"] body .equipment-toggle {
    width: auto !important;
    min-width: 68px;
    padding: 4px 8px !important;
    border-color: rgba(80, 209, 196, 0.35) !important;
    color: var(--v4-gold-soft) !important;
    font-size: 0.68rem !important;
  }
  html[data-build="5"] body .equipment-toggle.active {
    color: #071715 !important;
    background: var(--v4-gold) !important;
  }

  /* Every remaining creator block follows the same compact panel grammar. */
  html[data-build="5"]
    body
    .rpg-character-creator
    :is(
      .builder-selection-block,
      .builder-class-allocation,
      .builder-spellbook,
      .builder-no-magic,
      .builder-final-card,
      .point-buy-grid > article
    ) {
    min-width: 0;
    border: 1px solid rgba(126, 180, 194, 0.15);
    border-radius: 12px;
    background: #ead8b8;
    box-shadow: none;
  }
  html[data-build="5"] body .rpg-character-creator .builder-selection-block,
  html[data-build="5"] body .rpg-character-creator .builder-class-allocation,
  html[data-build="5"] body .rpg-character-creator .builder-spellbook {
    padding: 14px;
  }
  html[data-build="5"] body .rpg-character-creator .point-buy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }
  html[data-build="5"] body .rpg-character-creator .point-buy-grid > article {
    padding: 12px;
  }
  html[data-build="5"] body .rpg-character-creator .builder-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 7px;
  }
  html[data-build="5"] body .rpg-character-creator .builder-training-layout,
  html[data-build="5"] body .rpg-character-creator .builder-spell-groups,
  html[data-build="5"] body .rpg-character-creator .builder-class-levels {
    display: grid;
    gap: 10px;
  }
  html[data-build="5"] body .rpg-character-creator .builder-spell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8px;
  }

  @media (max-width: 1050px) {
    html[data-build="5"] body .rpg-character-creator {
      grid-template-columns: minmax(0, 1fr);
    }
    html[data-build="5"] body .builder-choice-screen {
      grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.25fr);
    }
    html[data-build="5"] body .rpg-character-creator .point-buy-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 760px) {
    html[data-build="5"] body .character-game-progression {
      grid-template-columns: minmax(0, 1fr);
      gap: 10px;
    }
    html[data-build="5"] body .builder-portrait-upload,
    html[data-build="5"] body .character-portrait-editor {
      grid-template-columns: 72px minmax(0, 1fr);
    }
    html[data-build="5"] body :is(.builder-portrait-upload, .character-portrait-editor) img[data-content-image] {
      width: 72px;
    }
    html[data-build="5"] body .character-builder-dialog {
      width: calc(100vw - 8px);
      height: calc(100dvh - 8px);
    }
    html[data-build="5"] body .rpg-character-creator {
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: auto minmax(0, 1fr) auto;
    }
    html[data-build="5"] body .builder-journey {
      display: block;
      grid-column: 1;
      grid-row: 1;
      padding: 9px;
      border-right: 0;
      border-bottom: 1px solid rgba(126, 180, 194, 0.16);
    }
    html[data-build="5"] body .builder-journey-title {
      display: none;
    }
    html[data-build="5"] body .rpg-character-creator .builder-steps {
      display: flex;
      gap: 6px;
      margin: 0;
      overflow-x: auto;
    }
    html[data-build="5"] body .rpg-character-creator .builder-steps button {
      display: grid;
      flex: 0 0 auto;
      grid-template-columns: 25px auto;
      min-height: 42px;
      padding: 6px 8px;
    }
    html[data-build="5"] body .rpg-character-creator .builder-steps button > b {
      width: 25px;
      height: 25px;
    }
    html[data-build="5"] body .rpg-character-creator .builder-steps button > i {
      display: none;
    }
    html[data-build="5"] body .builder-journey-progress {
      margin-top: 7px;
    }
    html[data-build="5"] body .rpg-character-creator > .builder-workspace {
      grid-column: 1;
      grid-row: 2;
      padding: 13px;
    }
    html[data-build="5"] body .rpg-character-creator > .builder-actions {
      grid-column: 1;
      grid-row: 3;
    }
    html[data-build="5"] body .builder-choice-screen {
      grid-template-columns: minmax(0, 1fr);
    }
    html[data-build="5"] body .builder-choice-list {
      display: flex;
      max-height: none;
      padding: 0 0 5px;
      overflow-x: auto;
    }
    html[data-build="5"] body .builder-choice-list-item {
      flex: 0 0 150px;
    }
    html[data-build="5"] body .builder-rule-stage-head {
      grid-template-columns: 36px minmax(0, 1fr) 36px;
      gap: 8px;
      min-height: 94px;
      padding: 11px;
    }
    html[data-build="5"] body .builder-cycle-button {
      width: 36px;
      height: 36px;
    }
    html[data-build="5"] body .builder-rule-stage-body {
      min-height: 0;
      padding: 16px;
    }
    html[data-build="5"] body .rpg-character-creator .point-buy-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  }
}

/* Final form system: the same hierarchy, density and interaction language everywhere. */
@layer runtime {
  html[data-build="5"] body {
    font-family: var(--v4-font);
    font-size: 15px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }
  html[data-build="5"] :is(input, select, textarea, button) {
    font: inherit;
  }
  html[data-build="5"] :is(.panel, .analytics-card, .dialog-section) {
    border-color: rgba(126, 180, 194, 0.16);
    border-radius: 14px;
  }

  /* The canonical character sheet uses one panel grammar for every section. */
  html[data-build="5"] .universal-character-sheet {
    min-width: 0;
  }
  html[data-build="5"]
    .classic-character-sheet
    :is(
      .classic-abilities-column,
      .classic-skills-panel,
      .classic-panel,
      .classic-story-box,
      .classic-death-saves,
      .classic-spellbook,
      .classic-private-notes
    ) {
    border: 1px solid rgba(126, 180, 194, 0.16);
    border-radius: 12px;
    background: #ead8b8;
    box-shadow: none;
  }
  html[data-build="5"]
    .classic-character-sheet
    :is(
      .classic-group-title,
      .classic-panel > h3,
      .classic-skills-panel > h3,
      .classic-spellbook > header,
      .classic-story-box > span,
      .classic-death-saves > span,
      .classic-private-notes > header
    ) {
    box-sizing: border-box;
    min-height: 42px;
    margin: 0;
    padding: 11px 13px;
    color: var(--v4-gold-soft);
    font-family: var(--v4-font);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #ead8b8;
    border-bottom: 1px solid rgba(126, 180, 194, 0.13);
  }
  html[data-build="5"] .classic-story-box {
    padding: 0;
  }
  html[data-build="5"] .classic-story-box p {
    min-height: 54px;
    margin: 0;
    padding: 12px 13px;
    color: var(--v4-text);
    font-size: 0.92rem;
    overflow-wrap: anywhere;
  }
  html[data-build="5"] .classic-main-column {
    display: grid;
    gap: 12px;
    align-content: start;
  }
  html[data-build="5"] .classic-attack-head,
  html[data-build="5"] .classic-attack-row,
  html[data-build="5"] .classic-feature-row,
  html[data-build="5"] .classic-list-row,
  html[data-build="5"] .classic-spell-chip {
    color: var(--v4-text);
    background: transparent;
    border-color: rgba(126, 180, 194, 0.12);
  }
  html[data-build="5"]
    .classic-character-sheet
    :is(
      .classic-skill-row,
      .classic-feature-row,
      .classic-spell-chip,
      .classic-ability-card
    ) {
    text-decoration: underline dotted rgba(140, 232, 223, 0.72);
    text-underline-offset: 3px;
  }
  html[data-build="5"] .classic-spellbook {
    padding: 0;
  }
  html[data-build="5"] .classic-spellbook > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  html[data-build="5"] .classic-spellbook > header h3 {
    margin: 2px 0 0;
    color: var(--v4-text);
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
  }
  html[data-build="5"] .classic-slots,
  html[data-build="5"] .classic-spells {
    margin: 0;
    padding: 12px 14px;
  }
  html[data-build="5"] .classic-slots {
    border-bottom: 1px solid rgba(126, 180, 194, 0.12);
  }
  html[data-build="5"] .classic-approval.approved span {
    color: #78e4b1;
  }

  /* Quest editor: canvas is the only geometry editor. */
  html[data-build="5"] .quest-builder-bar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
  }
  html[data-build="5"] .quest-builder-bar small {
    max-width: 560px;
    color: var(--v4-muted);
  }
  html[data-build="5"] .quest-layout-editor {
    display: grid;
    gap: 12px;
  }
  html[data-build="5"] .quest-region-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
  }
  html[data-build="5"] .quest-region-tabs button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 11px;
  }
  html[data-build="5"] .quest-builder-preview-wrap {
    min-width: 0;
    overflow: auto;
    border-radius: 14px;
  }
  html[data-build="5"] .quest-builder-preview {
    width: 100%;
    min-width: 560px;
    aspect-ratio: 4 / 3;
    min-height: 0;
    touch-action: none;
  }
  html[data-build="5"] .quest-builder-region {
    touch-action: none;
    cursor: grab;
  }
  html[data-build="5"] .quest-builder-region:active {
    cursor: grabbing;
  }
  html[data-build="5"] .quest-region-resize {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 16px;
    height: 16px;
    border: 2px solid var(--v4-gold);
    border-left: 0;
    border-top: 0;
    cursor: nwse-resize;
  }
  html[data-build="5"] .quest-builder-hint {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 5px 12px;
    align-items: baseline;
    padding: 11px 13px;
    border: 1px solid rgba(126, 180, 194, 0.14);
    border-radius: 10px;
    background: #ead8b8;
  }
  html[data-build="5"] .quest-builder-hint span {
    color: var(--v4-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
  }

  /* Compact cards and consistent operational dashboards. */
  html[data-build="5"] .game-row {
    padding: 14px 16px;
  }
  html[data-build="5"] .game-row-main,
  html[data-build="5"] .game-primary,
  html[data-build="5"] .game-details {
    gap: 10px;
  }
  html[data-build="5"] .quest-grid {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 12px;
  }
  html[data-build="5"] .quest-note {
    padding: 17px !important;
  }
  html[data-build="5"] .archive-chest {
    border: 1px solid rgba(126, 180, 194, 0.16);
    border-radius: 14px;
    background: #ead8b8;
  }
  html[data-build="5"] .archive-chest > summary {
    padding: 14px 16px;
  }
  html[data-build="5"] .analytics-filter-bar {
    flex-wrap: nowrap;
    align-items: end;
  }
  html[data-build="5"] .analytics-filter-bar > div:first-child {
    display: grid;
    flex: 1 1 260px;
    min-width: 190px;
  }
  html[data-build="5"] .analytics-filter-fields {
    display: flex;
    flex: 1 1 auto;
    gap: 8px;
    align-items: end;
  }
  html[data-build="5"] .analytics-filter-fields label {
    display: grid;
    gap: 4px;
    min-width: 126px;
  }
  html[data-build="5"] .analytics-filter-fields label > span {
    color: var(--v4-muted);
    font-size: 0.72rem;
  }
  html[data-build="5"] .analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
  html[data-build="5"] .analytics-kpi-grid > article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 14px;
    padding: 17px 18px;
    border: 1px solid rgba(126, 180, 194, 0.16);
    border-radius: 14px;
    background: #ead8b8;
  }
  html[data-build="5"] .analytics-kpi-grid > article > span,
  html[data-build="5"] .analytics-kpi-grid > article > small {
    color: var(--v4-muted);
  }
  html[data-build="5"] .analytics-kpi-grid > article > b {
    grid-row: 1 / 3;
    grid-column: 2;
    align-self: center;
    font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  }

  /* One sticky buyer selector; no secondary desktop picker. */
  html[data-build="5"] .shop-sticky-wallet .shop-character-select {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    min-width: min(360px, 42vw);
  }
  html[data-build="5"] .shop-sticky-wallet .shop-character-select > span {
    color: var(--v4-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
  }
  html[data-build="5"] .shop-sticky-wallet select {
    min-height: 38px;
  }
  html[data-build="5"] .shopkeeper-stage {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  }
  html[data-build="5"] .shopkeeper-side-panel {
    display: block;
    min-width: 0;
  }
  html[data-build="5"] .shop-ledger-filters {
    grid-template-columns:
      minmax(200px, 1.4fr) minmax(130px, 0.75fr) minmax(180px, 0.9fr)
      minmax(140px, 0.8fr) minmax(150px, auto) auto;
  }
  html[data-build="5"] .goal-direct-value {
    display: grid;
    gap: 3px;
    min-width: 110px;
  }
  html[data-build="5"] .goal-direct-value span {
    color: var(--v4-muted);
    font-size: 0.7rem;
  }
  html[data-build="5"] .goal-direct-value input {
    width: 110px;
  }

  /* Staff directory reads as a directory, not oversized promotional cards. */
  html[data-build="5"] .master-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 10px;
  }
  html[data-build="5"] .master-directory-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(126, 180, 194, 0.15);
    border-radius: 13px;
    background: #ead8b8;
  }
  html[data-build="5"] .master-directory-card > img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
  }
  html[data-build="5"] .master-directory-copy {
    display: grid;
    min-width: 0;
  }
  html[data-build="5"] .master-directory-toggles {
    display: grid;
    gap: 6px;
  }
  html[data-build="5"] .master-directory-toggles label {
    display: flex;
    gap: 7px;
    align-items: center;
    white-space: nowrap;
  }
  html[data-build="5"] .master-directory-toggles input {
    width: 18px;
    min-height: 18px;
  }

  @media (max-width: 1120px) {
    html[data-build="5"] .analytics-filter-bar,
    html[data-build="5"] .analytics-filter-fields {
      flex-wrap: wrap;
    }
    html[data-build="5"] .analytics-kpi-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    html[data-build="5"] .shop-ledger-filters {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  @media (max-width: 760px) {
    html[data-build="5"] .quest-builder-workspace,
    html[data-build="5"] .analytics-kpi-grid,
    html[data-build="5"] .shop-ledger-filters,
    html[data-build="5"] .master-directory-grid {
      grid-template-columns: 1fr;
    }
    html[data-build="5"] .quest-builder-hint {
      grid-template-columns: auto 1fr;
    }
    html[data-build="5"] .analytics-filter-bar {
      align-items: stretch;
    }
    html[data-build="5"] .analytics-filter-fields {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    html[data-build="5"] .analytics-filter-fields label {
      min-width: 0;
    }
    html[data-build="5"] .shop-sticky-wallet .shop-character-select {
      order: 3;
      width: 100%;
      min-width: 0;
    }
    html[data-build="5"] .master-directory-card {
      grid-template-columns: 48px minmax(0, 1fr) auto;
    }
    html[data-build="5"] .master-directory-card > img {
      width: 48px;
      height: 48px;
    }
    html[data-build="5"] .master-directory-toggles {
      grid-column: 1 / -1;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
}

@layer runtime {
  /* Dense game schedule: the important facts fit on one scan line. */
  html[data-build="5"] body :is(.grouped-schedule, .contract-stack) {
    display: grid;
    gap: 10px;
  }
  html[data-build="5"] body .schedule-week-group {
    overflow: hidden;
    border: 1px solid var(--v4-border);
    border-radius: 14px;
    background: var(--v4-surface);
  }
  html[data-build="5"] body .schedule-week-group > summary,
  html[data-build="5"] body .schedule-player-group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
  }
  html[data-build="5"] body .schedule-week-group > summary {
    min-height: 48px;
    padding: 9px 13px;
    border-bottom: 1px solid transparent;
  }
  html[data-build="5"] body .schedule-week-group[open] > summary {
    border-bottom-color: var(--v4-border);
  }
  html[data-build="5"] body .schedule-week-group > summary span {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
  html[data-build="5"] body .schedule-week-group > summary small {
    color: var(--v4-muted);
  }
  html[data-build="5"] body .schedule-week-group > div {
    display: grid;
    gap: 8px;
    padding: 9px;
  }
  html[data-build="5"] body .schedule-player-group {
    overflow: hidden;
    border: 1px solid rgba(126, 180, 194, 0.13);
    border-radius: 11px;
    background: #ead8b8;
  }
  html[data-build="5"] body .schedule-player-group > summary {
    min-height: 40px;
    padding: 7px 10px;
    color: var(--v4-text);
  }
  html[data-build="5"] body .schedule-player-group > summary b {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 999px;
    color: #061513;
    background: var(--v4-gold);
    font-size: 0.75rem;
  }
  html[data-build="5"] body .schedule-player-group > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 470px), 1fr));
    gap: 8px;
    padding: 0 8px 8px;
  }
  html[data-build="5"] body .game-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 10px 11px;
  }
  html[data-build="5"] body .game-row-main {
    display: grid;
    grid-template-columns: minmax(190px, 0.72fr) minmax(290px, 1.28fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
  }
  html[data-build="5"] body .game-primary {
    display: flex;
    align-items: center;
    align-content: center;
    gap: 5px;
    min-width: 0;
    flex-wrap: wrap;
  }
  html[data-build="5"] body .game-primary time {
    width: 100%;
    color: var(--v4-text);
    font: 700 0.98rem/1.2 var(--v4-font);
  }
  html[data-build="5"]
    body
    .game-primary
    :is(.levels, .seat-count, .queue-count) {
    padding: 3px 6px;
    border: 1px solid var(--v4-border);
    border-radius: 999px;
    color: var(--v4-muted);
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
  }
  html[data-build="5"] body .game-registration-state {
    width: 100%;
    overflow: hidden;
    color: #8ce8df;
    font-size: 0.72rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html[data-build="5"] body .game-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
    margin: 0;
  }
  html[data-build="5"] body .game-detail {
    display: grid;
    align-content: center;
    min-width: 0;
    min-height: 42px;
    padding: 5px 8px;
    border-left: 1px solid rgba(126, 180, 194, 0.15);
  }
  html[data-build="5"] body .game-detail dt {
    color: var(--v4-muted);
    font-size: 0.64rem;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
  }
  html[data-build="5"] body .game-detail dd {
    min-width: 0;
    margin: 2px 0 0;
    overflow: hidden;
    color: var(--v4-text);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
  }
  html[data-build="5"] body .game-detail .link-button {
    max-width: 100%;
    overflow: hidden;
    padding: 0;
    font-size: inherit;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html[data-build="5"] body .game-row-actions {
    display: flex;
    gap: 6px;
    align-items: center;
  }
  html[data-build="5"] body .game-row-actions button {
    min-width: 0;
    min-height: 34px;
    padding: 6px 9px;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  /* The builder clearly distinguishes a reusable preset from one quest copy. */
  html[data-build="5"] body .quest-builder-scope {
    display: grid;
    justify-items: end;
    max-width: 580px;
    padding: 8px 11px;
    border: 1px solid rgba(80, 209, 196, 0.2);
    border-radius: 10px;
    background: rgba(80, 209, 196, 0.055);
    text-align: right;
  }
  html[data-build="5"] body .quest-builder-scope b {
    color: #8ce8df;
    font-size: 0.75rem;
  }
  html[data-build="5"] body .quest-builder-scope small {
    color: var(--v4-muted);
  }
  html[data-build="5"] body .quest-builder-hint:has(.quest-layout-restore) {
    grid-template-columns: auto 1fr auto 1fr auto;
  }
  html[data-build="5"] body .quest-layout-restore {
    align-self: center;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  @media (max-width: 1080px) {
    html[data-build="5"] body .game-row-main {
      grid-template-columns: minmax(0, 1fr);
      gap: 7px;
    }
    html[data-build="5"] body .game-primary time,
    html[data-build="5"] body .game-registration-state {
      width: auto;
    }
    html[data-build="5"] body .game-registration-state {
      flex: 1 1 100%;
    }
  }
  @media (max-width: 760px) {
    html[data-build="5"] body .game-row {
      grid-template-columns: minmax(0, 1fr);
    }
    html[data-build="5"] body .game-details {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    html[data-build="5"] body .game-detail:last-child {
      grid-column: 1 / -1;
    }
    html[data-build="5"] body .game-row-actions {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    }
    html[data-build="5"] body .quest-builder-bar {
      align-items: stretch;
      flex-direction: column;
    }
    html[data-build="5"] body .quest-builder-scope {
      justify-items: start;
      max-width: none;
      text-align: left;
    }
    html[data-build="5"] body .quest-builder-hint:has(.quest-layout-restore) {
      grid-template-columns: auto 1fr;
    }
    html[data-build="5"] body .quest-layout-restore {
      grid-column: 1 / -1;
    }
  }
}

@layer runtime {
  html[data-build="5"] body .builder-workspace-single {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-build="5"] body .builder-workspace-single > * {
    width: 100%;
    max-width: none;
  }
  html[data-build="5"] body .quest-builder-form > .form-field {
    position: relative;
    z-index: 3;
  }
  html[data-build="5"] body .quest-add-sheet {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 50px;
    padding: 10px 12px;
    border: 1px dashed rgba(126, 180, 194, 0.28);
    border-radius: 11px;
    cursor: pointer;
  }
  html[data-build="5"] body .quest-add-sheet input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }
  html[data-build="5"] body .quest-add-sheet > span,
  html[data-build="5"] body .quest-custom-name {
    display: grid;
    gap: 3px;
  }
  html[data-build="5"] body .quest-add-sheet small,
  html[data-build="5"] body .quest-custom-name > span {
    color: var(--v4-muted);
    font-size: 0.75rem;
  }
  html[data-build="5"] body .quest-custom-name {
    margin-top: 10px;
  }
  html[data-build="5"]
    body
    .quest-template-row
    .quest-sheet-background.thumbnail {
    position: static;
    width: 44px;
    height: 54px;
    flex: 0 0 44px;
    border-radius: 7px;
    object-fit: cover;
  }
  html[data-build="5"] body .quest-builder-preview,
  html[data-build="5"] body .quest-note.quest-layout-custom {
    position: relative;
    overflow: hidden;
  }
  html[data-build="5"] body .quest-sheet-background:is(.editor, .card) {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
  }
  html[data-build="5"] body .quest-builder-region {
    z-index: 2;
  }
  html[data-build="5"]
    body
    :is(
      .quest-builder-region,
      .quest-note.quest-layout-custom .quest-region
    ).quest-region-title {
    left: var(--quest-title-x) !important;
    top: var(--quest-title-y) !important;
    width: var(--quest-title-w) !important;
    height: var(--quest-title-h) !important;
  }
  html[data-build="5"]
    body
    :is(
      .quest-builder-region,
      .quest-note.quest-layout-custom .quest-region
    ).quest-region-status {
    left: var(--quest-status-x) !important;
    top: var(--quest-status-y) !important;
    width: var(--quest-status-w) !important;
    height: var(--quest-status-h) !important;
  }
  html[data-build="5"]
    body
    :is(
      .quest-builder-region,
      .quest-note.quest-layout-custom .quest-region
    ).quest-region-description {
    left: var(--quest-description-x) !important;
    top: var(--quest-description-y) !important;
    width: var(--quest-description-w) !important;
    height: var(--quest-description-h) !important;
  }
  html[data-build="5"]
    body
    :is(
      .quest-builder-region,
      .quest-note.quest-layout-custom .quest-region
    ).quest-region-master {
    left: var(--quest-master-x) !important;
    top: var(--quest-master-y) !important;
    width: var(--quest-master-w) !important;
    height: var(--quest-master-h) !important;
  }
  html[data-build="5"]
    body
    :is(
      .quest-builder-region,
      .quest-note.quest-layout-custom .quest-region
    ).quest-region-reward {
    left: var(--quest-reward-x) !important;
    top: var(--quest-reward-y) !important;
    width: var(--quest-reward-w) !important;
    height: var(--quest-reward-h) !important;
  }
  html[data-build="5"]
    body
    :is(
      .quest-builder-region,
      .quest-note.quest-layout-custom .quest-region
    ).quest-region-actions {
    left: var(--quest-actions-x) !important;
    top: var(--quest-actions-y) !important;
    width: var(--quest-actions-w) !important;
    height: var(--quest-actions-h) !important;
  }
  html[data-build="5"] body .quest-note.quest-layout-custom {
    display: block !important;
    min-height: clamp(360px, 36vw, 560px) !important;
    padding: 0 !important;
    background: #ead8b8;
  }
  html[data-build="5"] body .quest-note.quest-layout-custom .quest-region {
    position: absolute !important;
    z-index: 1;
    display: block;
    min-width: 0;
    padding: 6px;
    overflow: auto !important;
  }
  html[data-build="5"] body .quest-note.quest-layout-custom .quest-region > * {
    max-width: 100%;
  }
}

/* Runtime component hardening: image-free layouts for recently added flows. */
@layer runtime {
  html[data-build="5"] .app-error-state {
    display: grid;
    gap: 16px;
    max-width: 760px;
    margin: 8vh auto;
    padding: clamp(24px, 4vw, 44px);
  }
  html[data-build="5"] .app-error-state code {
    overflow-wrap: anywhere;
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, var(--v4-red) 45%, transparent);
    border-radius: var(--v4-radius-sm);
    color: #ffd5d8;
    background: color-mix(in srgb, var(--v4-red) 10%, var(--v4-bg));
  }

  html[data-build="5"] .billing-player-panel {
    display: grid;
    gap: 20px;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius-lg);
    background: linear-gradient(145deg, var(--v4-surface), var(--v4-bg-soft));
    box-shadow: var(--v4-shadow);
  }
  html[data-build="5"] .billing-player-panel > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
  }
  html[data-build="5"] .billing-player-panel > header > div:first-child {
    display: grid;
    gap: 6px;
  }
  html[data-build="5"] .billing-player-panel > header span,
  html[data-build="5"] .billing-player-panel small {
    color: var(--v4-muted);
  }
  html[data-build="5"] .billing-player-panel h2,
  html[data-build="5"] .billing-player-panel p {
    margin: 0;
  }
  html[data-build="5"] .billing-balance {
    display: grid;
    min-width: 112px;
    padding: 12px 16px;
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius);
    text-align: center;
    background: rgba(255, 255, 255, 0.025);
  }
  html[data-build="5"] .billing-balance b {
    font-size: 24px;
  }
  html[data-build="5"] .billing-balance.has-debt {
    border-color: color-mix(in srgb, var(--v4-red) 55%, transparent);
  }
  html[data-build="5"] .billing-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  html[data-build="5"] .billing-plan-grid > article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px 14px;
    align-items: center;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius);
    background: color-mix(in srgb, var(--v4-surface-2) 76%, transparent);
  }
  html[data-build="5"] .billing-plan-grid > article > span {
    display: grid;
    place-items: center;
    width: 44px;
    aspect-ratio: 1;
    border-radius: 50%;
    color: #061315;
    font-size: 20px;
    font-weight: 900;
    background: var(--v4-gold);
  }
  html[data-build="5"] .billing-plan-grid article > div {
    display: grid;
    gap: 4px;
    min-width: 0;
  }
  html[data-build="5"] .billing-plan-grid article > b,
  html[data-build="5"] .billing-plan-grid article > button {
    grid-column: 1 / -1;
  }
  html[data-build="5"] .billing-plan-grid article > b {
    font-size: 20px;
  }
  html[data-build="5"] .billing-config-note {
    color: var(--v4-muted);
    font-size: 13px;
  }

  html[data-build="5"] .quest-board-frame,
  html[data-build="5"] .quest-archive-vault {
    overflow: hidden;
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius-lg);
    background: var(--v4-bg-soft);
    box-shadow: var(--v4-shadow);
  }
  html[data-build="5"] .quest-board-top,
  html[data-build="5"] .quest-board-bottom {
    display: none;
  }
  html[data-build="5"] .quest-board-middle {
    display: grid;
    gap: 20px;
    padding: clamp(18px, 3vw, 30px);
  }
  html[data-build="5"] .quest-board-goals {
    display: grid;
    gap: 10px;
  }
  html[data-build="5"] .quest-board-section-title,
  html[data-build="5"] .physical-label {
    color: var(--v4-gold-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  html[data-build="5"] .goal-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
  }
  html[data-build="5"] .goal-card {
    display: grid;
    gap: 10px;
    padding: 18px;
  }
  html[data-build="5"] .goal-card p {
    margin: 0;
  }
  html[data-build="5"] .progress {
    overflow: hidden;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
  }
  html[data-build="5"] .progress > i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--v4-gold);
  }
  html[data-build="5"] .quest-board-filters {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(180px, 0.35fr));
    gap: 10px;
  }
  html[data-build="5"] .quest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
  }
  html[data-build="5"] .quest-note {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 20px;
    min-height: 0 !important;
    padding: 22px !important;
    border: 1px solid var(--v4-border);
    border-left: 3px solid var(--v4-gold);
    border-radius: var(--v4-radius);
    color: var(--v4-text);
    background: linear-gradient(145deg, var(--v4-surface-2), var(--v4-surface));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    transform: none !important;
  }
  html[data-build="5"] .quest-note .quest-region {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
  }
  html[data-build="5"] .quest-region-title,
  html[data-build="5"] .quest-region-description,
  html[data-build="5"] .quest-region-master {
    grid-column: 1;
  }
  html[data-build="5"] .quest-region-status,
  html[data-build="5"] .quest-region-reward {
    grid-column: 2;
  }
  html[data-build="5"] .quest-region-actions {
    grid-column: 1 / -1;
  }
  html[data-build="5"] .quest-note h3,
  html[data-build="5"] .quest-note p {
    margin: 0;
  }
  html[data-build="5"] .quest-note h3 {
    font-size: clamp(18px, 2vw, 23px);
  }
  html[data-build="5"] .quest-level,
  html[data-build="5"] .quest-assigned span,
  html[data-build="5"] .quest-reward span {
    color: var(--v4-muted);
    font-size: 12px;
  }
  html[data-build="5"] .quest-assigned,
  html[data-build="5"] .quest-reward {
    display: grid;
    gap: 4px;
    min-width: 150px;
    padding: 10px 12px;
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius-sm);
    background: rgba(255, 255, 255, 0.025);
  }
  html[data-build="5"] .quest-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
  }
  html[data-build="5"] .quest-archive-vault {
    margin-top: 18px;
  }
  html[data-build="5"] .archive-vault-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    text-align: left;
  }
  html[data-build="5"] .archive-toggle-copy {
    display: grid;
    gap: 3px;
  }
  html[data-build="5"] .archive-toggle-copy small,
  html[data-build="5"] .archive-toggle-copy em,
  html[data-build="5"] .archive-vault-toggle > i {
    color: var(--v4-muted);
  }
  html[data-build="5"] .quest-archive-vault.collapsed .archive-vault-body {
    display: none;
  }
  html[data-build="5"] .archive-vault-body {
    display: grid;
    gap: 16px;
    padding: 0 22px 22px;
  }
  html[data-build="5"] .archive-filter-bar {
    display: grid;
    grid-template-columns:
      minmax(220px, 1fr) repeat(4, minmax(140px, auto))
      auto;
    gap: 10px;
    align-items: end;
  }
  html[data-build="5"] .archive-filter-bar label {
    display: grid;
    gap: 6px;
  }
  html[data-build="5"] .archive-filter-bar label > span,
  html[data-build="5"] .archive-filter-count span,
  html[data-build="5"] .archive-filter-count small {
    color: var(--v4-muted);
    font-size: 12px;
  }
  html[data-build="5"] .archive-filter-count {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 10px 12px;
  }

  html[data-build="5"] .quest-paper-dialog .quest-reading-scroll {
    display: grid;
    gap: 18px;
  }
  html[data-build="5"] .quest-reading-header,
  html[data-build="5"] .quest-reading-section,
  html[data-build="5"] .quest-reading-status,
  html[data-build="5"] .quest-reading-reward {
    display: grid;
    gap: 7px;
  }
  html[data-build="5"] .quest-reading-header h2,
  html[data-build="5"] .quest-reading-header p,
  html[data-build="5"] .quest-reading-section h3,
  html[data-build="5"] .quest-reading-section p {
    margin: 0;
  }
  html[data-build="5"] .quest-reading-status,
  html[data-build="5"] .quest-reading-reward,
  html[data-build="5"] .quest-reading-section {
    padding: 16px;
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius-sm);
    background: rgba(255, 255, 255, 0.025);
  }
  html[data-build="5"] .quest-reading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
  }

  html[data-build="5"] .shop-screen {
    display: grid;
    gap: 18px;
  }
  html[data-build="5"] .shop-sticky-wallet {
    position: sticky;
    top: calc(var(--v4-hud) + 10px);
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius);
    background: color-mix(in srgb, var(--v4-bg-soft) 94%, transparent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
  }
  html[data-build="5"] .shop-sticky-wallet > span,
  html[data-build="5"] .buyer-current,
  html[data-build="5"] .buyer-gold,
  html[data-build="5"] .buyer-charisma {
    display: grid;
    gap: 3px;
  }
  html[data-build="5"] .shop-sticky-wallet small,
  html[data-build="5"] .shop-buyer-wallet span {
    color: var(--v4-muted);
    font-size: 11px;
    text-transform: uppercase;
  }
  html[data-build="5"] .sticky-wallet-gold {
    margin-left: auto;
  }
  html[data-build="5"] .shopkeeper-game-scene,
  html[data-build="5"] .shopkeeper-stage,
  html[data-build="5"] .shopkeeper-side-panel {
    display: grid;
    gap: 16px;
  }
  html[data-build="5"] .shopkeeper-stage {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  }
  html[data-build="5"] .shopkeeper-side-panel {
    display: contents;
  }
  html[data-build="5"] .shopkeeper-dialogue,
  html[data-build="5"] .shop-buyer-wallet,
  html[data-build="5"] .shop-ledger-toolbar,
  html[data-build="5"] .shop-ledger-shell {
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius-lg);
    background: var(--v4-bg-soft);
  }
  html[data-build="5"] .shopkeeper-dialogue {
    display: grid;
    grid-template-rows: auto auto minmax(180px, 1fr) auto;
    gap: 8px;
    min-height: 360px;
    padding: 20px;
  }
  html[data-build="5"] .merchant-badge {
    color: var(--v4-gold-soft);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
  }
  html[data-build="5"] .merchant-name {
    font-size: 24px;
    font-weight: 800;
  }
  html[data-build="5"] .merchant-chat-history {
    overflow: auto;
    min-height: 160px;
    padding: 14px;
    border: 1px solid var(--v4-line);
    border-radius: var(--v4-radius-sm);
    background: rgba(0, 0, 0, 0.14);
  }
  html[data-build="5"] .merchant-chat-empty {
    display: grid;
    height: 100%;
    place-items: center;
    color: var(--v4-muted);
  }
  html[data-build="5"] .merchant-chat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
  }
  html[data-build="5"] .shop-buyer-wallet {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-content: start;
    padding: 20px;
  }
  html[data-build="5"] .shop-character-select,
  html[data-build="5"] .shop-character-desktop-menu {
    grid-column: 1 / -1;
  }
  html[data-build="5"] .shop-character-select {
    display: grid;
    gap: 7px;
  }
  html[data-build="5"] .shop-ledger-section {
    margin-top: 16px;
  }
  html[data-build="5"] .shop-ledger-toolbar {
    display: grid;
    gap: 16px;
    padding: 20px;
  }
  html[data-build="5"] .shop-ledger-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
  }
  html[data-build="5"] .shop-ledger-heading strong {
    font-size: 24px;
  }
  html[data-build="5"] .shop-ledger-heading span {
    color: var(--v4-muted);
  }
  html[data-build="5"] .shop-ledger-filters {
    display: grid;
    grid-template-columns:
      minmax(220px, 1.5fr) repeat(2, minmax(150px, 0.7fr))
      minmax(190px, 0.9fr) auto auto;
    gap: 10px;
    align-items: end;
  }
  html[data-build="5"] .shop-filter-field,
  html[data-build="5"] .shop-filter-price-group,
  html[data-build="5"] .shop-affordable-filter {
    display: grid;
    gap: 6px;
  }
  html[data-build="5"] .shop-filter-field > span,
  html[data-build="5"] .shop-filter-price-group > span {
    color: var(--v4-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
  }
  html[data-build="5"] .shop-filter-price-group > label {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 6px;
    align-items: center;
  }
  html[data-build="5"] .shop-affordable-filter {
    grid-template-columns: auto 1fr;
    align-items: center;
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius-sm);
  }
  html[data-build="5"] .shop-affordable-filter small {
    grid-column: 2;
    color: var(--v4-muted);
  }
  html[data-build="5"] .shop-filter-reset {
    min-height: 44px;
  }
  html[data-build="5"] .shop-ledger-shell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 12px;
    padding: 58px 20px 64px;
  }
  html[data-build="5"] .ledger-under,
  html[data-build="5"] .ledger-turn,
  html[data-build="5"] .ledger-spine {
    display: none !important;
  }
  html[data-build="5"] .ledger-page {
    position: static !important;
    inset: auto !important;
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius);
    background: var(--v4-surface);
    transform: none !important;
  }
  html[data-build="5"] .ledger-page > header {
    color: var(--v4-gold-soft);
    font-weight: 800;
  }
  html[data-build="5"] .ledger-page-items {
    display: grid;
    gap: 10px;
  }
  html[data-build="5"] .ledger-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--v4-line);
    border-radius: var(--v4-radius-sm);
    background: rgba(255, 255, 255, 0.025);
  }
  html[data-build="5"] .ledger-item-main,
  html[data-build="5"] .ledger-item-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
    text-align: left;
  }
  html[data-build="5"] .ledger-item-meta,
  html[data-build="5"] .ledger-item-desc,
  html[data-build="5"] .ledger-item-foot small {
    color: var(--v4-muted);
    font-size: 12px;
  }
  html[data-build="5"] .ledger-item-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
  html[data-build="5"] .ledger-item-actions {
    display: grid;
    gap: 7px;
    align-content: center;
  }
  html[data-build="5"] .ledger-item-action {
    min-width: 76px;
    padding: 8px 10px;
    border: 1px solid var(--v4-border);
    border-radius: 8px;
  }
  html[data-build="5"] .ledger-tabs {
    position: absolute;
    inset: 12px 20px auto;
    display: flex;
    gap: 7px;
    overflow-x: auto;
  }
  html[data-build="5"] .ledger-tab {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid var(--v4-border);
    border-radius: 999px;
  }
  html[data-build="5"] .ledger-tab.active {
    color: #071315;
    background: var(--v4-gold);
  }
  html[data-build="5"] .ledger-page-controls {
    position: absolute;
    inset: auto 20px 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }
  html[data-build="5"] .shop-ledger-viewport,
  html[data-build="5"] .shop-ledger-shell {
    position: relative;
  }

  html[data-build="5"] .role-menu {
    display: grid;
    gap: 12px;
  }
  html[data-build="5"] .role-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius);
    background: rgba(255, 255, 255, 0.025);
  }
  html[data-build="5"] .role-option > span {
    display: grid;
    gap: 4px;
    min-width: 0;
  }
  html[data-build="5"] .role-option > span > span {
    overflow-wrap: anywhere;
    color: var(--v4-muted);
  }
}

@layer runtime {
  @media (max-width: 1000px) {
    html[data-build="5"] .billing-plan-grid {
      grid-template-columns: 1fr;
    }
    html[data-build="5"] .archive-filter-bar,
    html[data-build="5"] .shop-ledger-filters {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    html[data-build="5"] .filter-search-field,
    html[data-build="5"] .archive-search {
      grid-column: 1 / -1;
    }
  }
  @media (max-width: 760px) {
    html[data-build="5"] .billing-player-panel {
      gap: 16px;
      padding: 18px;
    }
    html[data-build="5"] .billing-player-panel > header {
      align-items: stretch;
    }
    html[data-build="5"] .billing-balance {
      min-width: 84px;
    }
    html[data-build="5"] .billing-plan-grid > article {
      grid-template-columns: auto minmax(0, 1fr) auto;
      padding: 14px;
    }
    html[data-build="5"] .billing-plan-grid article > b {
      grid-column: 2;
    }
    html[data-build="5"] .billing-plan-grid article > button {
      grid-column: 1 / -1;
    }
    html[data-build="5"] .quest-board-middle {
      padding: 14px;
    }
    html[data-build="5"] .quest-board-filters,
    html[data-build="5"] .quest-grid,
    html[data-build="5"] .archive-filter-bar {
      grid-template-columns: 1fr;
    }
    html[data-build="5"] .archive-search {
      grid-column: auto;
    }
    html[data-build="5"] .quest-note {
      grid-template-columns: 1fr;
      padding: 18px !important;
    }
    html[data-build="5"] .quest-note .quest-region {
      grid-column: 1 / -1;
    }
    html[data-build="5"] .quest-assigned,
    html[data-build="5"] .quest-reward {
      min-width: 0;
    }
    html[data-build="5"] .archive-vault-toggle {
      align-items: flex-start;
      padding: 16px;
    }
    html[data-build="5"] .archive-toggle-seal {
      display: none;
    }
    html[data-build="5"] .archive-vault-body {
      padding: 0 16px 16px;
    }
    html[data-build="5"] .shop-sticky-wallet {
      top: 8px;
      flex-wrap: wrap;
      gap: 10px 18px;
    }
    html[data-build="5"] .sticky-wallet-gold {
      margin-left: 0;
    }
    html[data-build="5"] .shopkeeper-stage,
    html[data-build="5"] .shop-ledger-shell {
      grid-template-columns: 1fr;
    }
    html[data-build="5"] .shopkeeper-dialogue {
      min-height: 320px;
      padding: 16px;
    }
    html[data-build="5"] .shop-ledger-filters {
      grid-template-columns: 1fr;
    }
    html[data-build="5"] .filter-search-field {
      grid-column: auto;
    }
    html[data-build="5"] .shop-ledger-shell {
      padding: 58px 12px 62px;
    }
    html[data-build="5"] .ledger-right {
      display: none;
    }
    html[data-build="5"] .merchant-chat {
      grid-template-columns: auto minmax(0, 1fr);
    }
    html[data-build="5"] .merchant-chat .primary-button {
      grid-column: 1 / -1;
    }
  }
}

@layer features {
  html[data-build="5"] .form-intro {
    margin: 0;
    padding: 14px 16px;
    border-left: 3px solid var(--v4-gold);
    color: var(--v4-muted);
    background: rgba(80, 209, 196, 0.06);
  }
  html[data-build="5"] .visibility-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  html[data-build="5"] .visibility-option {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: 64px;
    padding: 12px;
    border: 1px solid var(--v4-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
  }
  html[data-build="5"] .visibility-option input {
    width: 20px;
    min-height: 20px;
    accent-color: var(--v4-gold);
  }
  html[data-build="5"] .visibility-option span {
    display: grid;
    gap: 2px;
  }
  html[data-build="5"] .visibility-option b {
    color: var(--v4-text);
    font-size: 0.9rem;
  }
  html[data-build="5"] .visibility-option small {
    color: var(--v4-muted);
    font-weight: 500;
  }

  html[data-build="5"] .workshop-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid var(--v4-border);
    border-radius: 14px;
    background: #ead8b8;
  }
  html[data-build="5"] .workshop-tabs button {
    display: flex;
    flex: 1 0 150px;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    color: var(--v4-muted);
    background: transparent;
    cursor: pointer;
  }
  html[data-build="5"] .workshop-tabs button.active {
    color: var(--v4-text);
    background: #ead8b8;
    box-shadow: inset 0 -2px var(--v4-gold);
  }
  html[data-build="5"] .workshop-tabs b {
    display: grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.75rem;
  }
  html[data-build="5"] .workshop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
    gap: 14px;
  }
  html[data-build="5"] .workshop-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }
  html[data-build="5"] .workshop-card > img,
  html[data-build="5"] .actor-monogram,
  html[data-build="5"] .room-placeholder {
    width: 76px;
    height: 88px;
    border-radius: 10px;
    object-fit: cover;
    background: #ead8b8;
  }
  html[data-build="5"] .actor-monogram,
  html[data-build="5"] .room-placeholder {
    display: grid;
    place-items: center;
    color: var(--v4-gold-soft);
    font: 700 1.6rem var(--v4-display);
  }
  html[data-build="5"] .workshop-card h3 {
    margin: 2px 0 5px;
  }
  html[data-build="5"] .workshop-card p {
    display: -webkit-box;
    overflow: hidden;
    color: var(--v4-muted);
    font-size: 0.88rem;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }
  html[data-build="5"] .workshop-card > small,
  html[data-build="5"] .workshop-card small {
    color: var(--v4-gold-soft);
  }
  html[data-build="5"] .workshop-card-actions {
    grid-column: 1/-1;
    display: flex;
    gap: 8px;
  }
  html[data-build="5"] .actor-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
  }
  html[data-build="5"] .actor-stats span {
    padding: 4px 7px;
    border-radius: 7px;
    color: var(--v4-muted);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.72rem;
  }
  html[data-build="5"] .actor-sheet {
    display: grid;
    gap: 16px;
  }
  html[data-build="5"] .actor-sheet > header {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
  }
  html[data-build="5"] .actor-sheet > header img,
  html[data-build="5"] .actor-sheet > header .actor-monogram {
    width: 112px;
    height: 132px;
    border-radius: 14px;
    object-fit: cover;
  }
  html[data-build="5"] .actor-sheet > header p {
    margin-top: 8px;
    color: var(--v4-muted);
  }
  html[data-build="5"] .actor-sheet-combat,
  html[data-build="5"] .actor-sheet-abilities {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  html[data-build="5"] .actor-sheet-abilities {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  html[data-build="5"] .actor-sheet-combat span,
  html[data-build="5"] .actor-sheet-abilities span {
    display: grid;
    place-items: center;
    min-height: 76px;
    padding: 9px;
    border: 1px solid var(--v4-line);
    border-radius: 11px;
    background: #ead8b8;
    text-align: center;
  }
  html[data-build="5"] .actor-sheet-combat small,
  html[data-build="5"] .actor-sheet-abilities small {
    color: var(--v4-muted);
  }
  html[data-build="5"] .actor-sheet-combat b,
  html[data-build="5"] .actor-sheet-abilities b {
    color: var(--v4-text);
    font-size: 1.25rem;
  }
  html[data-build="5"] .actor-sheet-abilities em {
    color: var(--v4-gold-soft);
    font-style: normal;
  }
  html[data-build="5"] .actor-sheet-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  html[data-build="5"] .actor-sheet-columns h3 {
    margin-bottom: 10px;
  }
  html[data-build="5"] .actor-sheet-columns p + p {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--v4-line);
  }
  html[data-build="5"] .ability-fieldset,
  html[data-build="5"] .room-actors-fieldset {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 15px;
    border: 1px solid var(--v4-border);
    border-radius: 12px;
  }
  html[data-build="5"] fieldset legend {
    padding: 0 7px;
    color: var(--v4-gold-soft);
    font-weight: 800;
  }
  html[data-build="5"] .media-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px dashed var(--v4-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
  }
  html[data-build="5"] .media-field input[type="file"] {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  html[data-build="5"] .room-actors-fieldset {
    grid-template-columns: 1fr;
  }
  html[data-build="5"] .room-actor-option {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) 90px 76px 76px;
    gap: 10px;
    align-items: center;
    padding: 9px;
    border-bottom: 1px solid var(--v4-line);
  }
  html[data-build="5"] .room-actor-option > label:first-child {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  html[data-build="5"] .room-actor-option input[type="checkbox"] {
    width: 20px;
    min-height: 20px;
    accent-color: var(--v4-gold);
  }
  html[data-build="5"] .room-scene {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid var(--v4-border);
    border-radius: 16px;
    background: #ead8b8;
  }
  html[data-build="5"] .room-main-image {
    display: block;
    width: 100%;
    height: min(62vh, 680px);
    object-fit: contain;
  }
  html[data-build="5"] .room-scene-empty {
    display: grid;
    place-items: center;
    min-height: 420px;
    color: var(--v4-muted);
  }
  html[data-build="5"] .room-token-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  html[data-build="5"] .room-token {
    position: absolute;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    padding: 3px;
    translate: -50% -50%;
    border: 3px solid var(--v4-green);
    border-radius: 50%;
    color: white;
    background: #ead8b8;
    box-shadow: 0 9px 25px rgba(0, 0, 0, 0.55);
    pointer-events: auto;
  }
  html[data-build="5"] .room-token.enemy {
    border-color: var(--v4-red);
  }
  html[data-build="5"] .room-token img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }
  html[data-build="5"] .room-token span {
    position: absolute;
    top: calc(100% + 5px);
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(234,216,184,0.82);
    font-size: 0.7rem;
    white-space: nowrap;
  }
  html[data-build="5"] .room-audio {
    display: flex;
    align-items: center;
    gap: 18px;
  }
  html[data-build="5"] .room-audio audio {
    flex: 1;
  }
  html[data-build="5"] .room-battle-map img {
    display: block;
    max-height: 70vh;
    margin: 14px auto 0;
    object-fit: contain;
  }
  html[data-build="5"] .room-game-choice {
    width: 100%;
    border: 1px solid var(--v4-line);
    color: inherit;
    text-align: left;
    background: #ead8b8;
    cursor: pointer;
  }

  @media (max-width: 760px) {
    html[data-build="5"] .visibility-grid {
      grid-template-columns: 1fr;
    }
    html[data-build="5"] .ability-fieldset {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    html[data-build="5"] .room-actor-option {
      grid-template-columns: minmax(0, 1fr) 80px 70px 70px;
      overflow-x: auto;
    }
    html[data-build="5"] .room-scene,
    html[data-build="5"] .room-scene-empty {
      min-height: 320px;
    }
    html[data-build="5"] .room-token {
      width: 52px;
      height: 52px;
    }
    html[data-build="5"] .actor-sheet-abilities {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    html[data-build="5"] .actor-sheet-combat {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    html[data-build="5"] .actor-sheet-columns {
      grid-template-columns: 1fr;
    }
  }
}

@layer reset {
  html[data-build="5"] {
    min-width: 320px;
    background: var(--v4-bg);
    font: 16px/1.45 var(--v4-font);
  }
  html[data-build="5"] *,
  html[data-build="5"] *::before,
  html[data-build="5"] *::after {
    box-sizing: border-box;
  }
  html[data-build="5"] body {
    min-height: 100dvh;
    margin: 0;
    color: var(--v4-text);
    background: var(--v4-bg);
    overflow-x: hidden;
  }
  html[data-build="5"] button,
  html[data-build="5"] input,
  html[data-build="5"] select,
  html[data-build="5"] textarea {
    font: inherit;
  }
  html[data-build="5"] button {
    color: inherit;
  }
  html[data-build="5"] img {
    max-width: 100%;
  }
  html[data-build="5"] img:not([data-content-image]) {
    display: block !important;
  }
  html[data-build="5"] .hidden,
  html[data-build="5"] [hidden] {
    display: none !important;
  }
  html[data-build="5"] :focus-visible {
    outline: 2px solid var(--v4-gold-soft);
    outline-offset: 3px;
  }
  html[data-build="5"] ::selection {
    color: #1c1214;
    background: var(--v4-gold-soft);
  }
  html[data-build="5"] ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  html[data-build="5"] ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.18);
  }
  html[data-build="5"] ::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(217, 173, 88, 0.48);
    background-clip: padding-box;
  }
}

@layer shell {
  html[data-build="5"] .world-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-position: center;
    background-size: cover;
    filter: saturate(0.75) brightness(0.4);
    transition:
      opacity 0.3s ease,
      filter 0.3s ease;
  }
  html[data-build="5"] .world-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(
        circle at 65% 8%,
        rgba(117, 84, 156, 0.18),
        transparent 40%
      ),
      linear-gradient(
        90deg,
        rgba(234,216,184,0.96),
        rgba(234,216,184,0.7) 40%,
        rgba(234,216,184,0.9)
      );
  }
  html[data-build="5"] .game-shell {
    display: grid;
    grid-template-columns: var(--v4-sidebar) minmax(0, 1fr);
    min-height: 100dvh;
  }
  html[data-build="5"] .side-rail {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: var(--v4-sidebar);
    height: 100dvh;
    padding: 14px 10px;
    border-right: 1px solid var(--v4-border);
    background: linear-gradient(
      180deg,
      rgba(234,216,184,0.98),
      rgba(234,216,184,0.99)
    );
    box-shadow: 12px 0 42px rgba(0, 0, 0, 0.25);
  }
  html[data-build="5"] .brand-plaque,
  html[data-build="5"] .hud-brand {
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  html[data-build="5"] .brand-plaque {
    display: grid;
    place-items: center;
    height: 84px;
    padding: 7px;
  }
  html[data-build="5"] .brand-plaque img {
    max-height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 5px 12px #000);
  }
  html[data-build="5"] .side-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-self: start;
    margin-top: 16px;
  }
  html[data-build="5"] .nav-button {
    position: relative;
    display: grid;
    place-items: center;
    gap: 5px;
    min-height: 69px;
    padding: 8px 4px;
    border: 1px solid transparent;
    border-radius: var(--v4-radius);
    color: var(--v4-muted);
    background: transparent;
    cursor: pointer;
    transition: 0.18s ease;
  }
  html[data-build="5"] .nav-button:hover {
    color: var(--v4-text);
    background: rgba(255, 255, 255, 0.045);
    transform: translateY(-1px);
  }
  html[data-build="5"] .nav-button.active {
    color: var(--v4-gold-soft);
    border-color: var(--v4-border);
    background: linear-gradient(
      145deg,
      rgba(217, 173, 88, 0.15),
      rgba(119, 84, 156, 0.14)
    );
    box-shadow: inset 3px 0 var(--v4-gold);
  }
  html[data-build="5"] .nav-icon {
    width: 29px;
    height: 29px;
    object-fit: contain;
  }
  html[data-build="5"] .nav-button > span:not(.nav-badge) {
    max-width: 100%;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
  }
  html[data-build="5"] .nav-badge {
    position: absolute;
    top: 5px;
    right: 7px;
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid var(--v4-surface);
    border-radius: 99px;
    color: #fff;
    background: var(--v4-red);
    font-size: 0.68rem;
    font-weight: 800;
  }
  html[data-build="5"] .rail-footer {
    display: grid;
    gap: 5px;
  }
  html[data-build="5"] .rail-mini {
    display: grid;
    gap: 2px;
    padding: 8px;
    border: 0;
    color: var(--v4-muted);
    background: transparent;
    cursor: pointer;
  }
  html[data-build="5"] .rail-mini span {
    font-size: 0.68rem;
  }
  html[data-build="5"] .game-stage {
    min-width: 0;
  }
  html[data-build="5"] .hud-bar {
    position: sticky;
    top: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: var(--v4-hud);
    padding: 10px clamp(16px, 3vw, 42px);
    border-bottom: 1px solid var(--v4-border);
    background: rgba(234,216,184,0.88);
    backdrop-filter: blur(18px);
  }
  html[data-build="5"] .hud-brand {
    display: none;
  }
  html[data-build="5"] .hud-resources {
    display: flex;
    flex: 1;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  html[data-build="5"] .resource-chip {
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 1px solid var(--v4-line);
    border-radius: 99px;
    color: var(--v4-muted);
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.78rem;
  }
  html[data-build="5"] .resource-chip b {
    color: var(--v4-text);
  }
  html[data-build="5"] .billing-alert {
    border-color: rgba(182, 92, 89, 0.55);
    background: rgba(182, 92, 89, 0.16);
  }
  html[data-build="5"] .billing-pass {
    border-color: rgba(101, 147, 111, 0.5);
  }
  html[data-build="5"] .hud-user {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  html[data-build="5"] .hud-user-text {
    display: grid;
    text-align: right;
  }
  html[data-build="5"] .hud-user-text strong {
    font-size: 0.9rem;
  }
  html[data-build="5"] .hud-user-text span {
    color: var(--v4-muted);
    font-size: 0.72rem;
  }
  html[data-build="5"] .hud-avatar {
    width: 42px;
    height: 42px;
    border: 2px solid var(--v4-gold);
    border-radius: 50%;
    background-position: center;
    background-size: cover;
    cursor: pointer;
  }
  html[data-build="5"] .stage-content {
    width: min(100%, var(--v4-content));
    min-width: 0;
    margin: 0 auto;
    padding: clamp(18px, 3vw, 42px);
  }
  html[data-build="5"] .rpg-screen {
    display: grid;
    gap: 22px;
    min-width: 0;
  }
  html[data-build="5"] .mobile-nav {
    display: none;
  }
}

@layer components {
  html[data-build="5"] h1,
  html[data-build="5"] h2,
  html[data-build="5"] h3,
  html[data-build="5"] .physical-label {
    margin: 0;
    font-family: var(--v4-display);
    letter-spacing: 0.015em;
  }
  html[data-build="5"] h1 {
    font-size: clamp(1.85rem, 4vw, 3.35rem);
    line-height: 1.02;
  }
  html[data-build="5"] h2 {
    font-size: clamp(1.35rem, 2vw, 2rem);
  }
  html[data-build="5"] h3 {
    font-size: 1.12rem;
  }
  html[data-build="5"] p {
    margin: 0;
  }
  html[data-build="5"] .location-plaque {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    min-height: 130px;
    padding: clamp(22px, 4vw, 42px);
    overflow: hidden;
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius-lg);
    background: linear-gradient(135deg, #ead8b8, #ead8b8);
    box-shadow: var(--v4-shadow);
  }
  html[data-build="5"] .location-plaque-copy {
    display: grid;
    gap: 12px;
  }
  html[data-build="5"] .scene-meta,
  html[data-build="5"] .row,
  html[data-build="5"] .location-plaque-actions,
  html[data-build="5"] .dialog-actions,
  html[data-build="5"] .form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
  }
  html[data-build="5"] .scene-meta span,
  html[data-build="5"] .badge,
  html[data-build="5"] .section-count {
    padding: 5px 9px;
    border: 1px solid var(--v4-line);
    border-radius: 99px;
    color: var(--v4-muted);
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.74rem;
  }
  html[data-build="5"]
    :is(
      .panel,
      .analytics-card,
      .dashboard-card,
      .archive-chest,
      .compact-list,
      .guild-goals,
      .quest-ledger
    ) {
    min-width: 0;
    padding: clamp(16px, 2vw, 24px);
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius);
    color: var(--v4-text);
    background: linear-gradient(
      155deg,
      rgba(234,216,184,0.97),
      rgba(234,216,184,0.98)
    );
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  }
  html[data-build="5"] .section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }
  html[data-build="5"]
    :is(
      button.primary-button,
      button.soft-button,
      button.ghost-button,
      button.danger-button,
      .auth-submit
    ) {
    min-height: 40px;
    padding: 9px 14px;
    border-radius: var(--v4-radius-sm);
    font-weight: 750;
    cursor: pointer;
    transition:
      transform 0.16s ease,
      filter 0.16s ease,
      border-color 0.16s ease,
      background 0.16s ease;
  }
  html[data-build="5"] :is(button.primary-button, .auth-submit) {
    border: 1px solid #edca7f;
    color: #201310;
    background: linear-gradient(145deg, #efd485, #b87a34);
    box-shadow: 0 6px 18px rgba(185, 120, 52, 0.2);
  }
  html[data-build="5"] button.soft-button {
    border: 1px solid var(--v4-border);
    color: var(--v4-gold-soft);
    background: rgba(217, 173, 88, 0.09);
  }
  html[data-build="5"] button.ghost-button {
    border: 1px solid transparent;
    color: var(--v4-muted);
    background: transparent;
  }
  html[data-build="5"] button.danger-button {
    border: 1px solid rgba(220, 108, 103, 0.58);
    color: #ffd9d6;
    background: rgba(182, 92, 89, 0.22);
  }
  html[data-build="5"] button:not(:disabled):active {
    transform: translateY(1px);
  }
  html[data-build="5"] button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
  }
  html[data-build="5"] .icon-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--v4-border);
    border-radius: 10px;
    color: var(--v4-gold-soft);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
  }
  html[data-build="5"] label,
  html[data-build="5"] .form-field {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: var(--v4-muted);
    font-size: 0.78rem;
    font-weight: 700;
  }
  html[data-build="5"] .form-label {
    color: var(--v4-muted);
    font-size: 0.78rem;
    font-weight: 700;
  }
  html[data-build="5"] :is(input, select, textarea) {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(231, 204, 150, 0.2);
    border-radius: 9px;
    color: var(--v4-text);
    background: rgba(234,216,184,0.48);
    outline: 0;
  }
  html[data-build="5"] :is(input, select) {
    min-height: 43px;
    padding: 8px 11px;
  }
  html[data-build="5"] textarea {
    min-height: 96px;
    padding: 11px;
    resize: vertical;
  }
  html[data-build="5"] :is(input, select, textarea):focus {
    border-color: var(--v4-gold);
    box-shadow: 0 0 0 3px rgba(217, 173, 88, 0.1);
  }
  html[data-build="5"] .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
  html[data-build="5"] .form-grid > .full,
  html[data-build="5"] .form-grid > .form-actions {
    grid-column: 1 / -1;
  }
  html[data-build="5"] .empty-state {
    display: grid;
    place-items: center;
    min-height: 140px;
    padding: 24px;
    color: var(--v4-muted);
    text-align: center;
  }
  html[data-build="5"] summary {
    cursor: pointer;
  }
  html[data-build="5"] table {
    width: 100%;
    border-collapse: collapse;
    color: var(--v4-text);
  }
  html[data-build="5"] th,
  html[data-build="5"] td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--v4-line);
    text-align: left;
  }
  html[data-build="5"] th {
    color: var(--v4-gold-soft);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
}

@layer features {
  html[data-build="5"] .auth-gate {
    display: grid;
    min-height: 100dvh;
    place-items: center;
    padding: 24px;
    background:
      radial-gradient(
        circle at 20% 15%,
        rgba(80, 209, 196, 0.13),
        transparent 32%
      ),
      radial-gradient(
        circle at 82% 78%,
        rgba(111, 140, 255, 0.1),
        transparent 34%
      ),
      #ead8b8;
  }
  html[data-build="5"] .auth-card {
    width: min(100%, 470px);
    padding: clamp(24px, 5vw, 42px);
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius-lg);
    background: rgba(234,216,184,0.94);
    box-shadow: var(--v4-shadow);
    backdrop-filter: blur(16px);
  }
  html[data-build="5"] .auth-emblem {
    display: grid;
    place-items: center;
    gap: 5px;
    margin-bottom: 18px;
    color: var(--v4-muted);
  }
  html[data-build="5"] .auth-emblem img {
    width: 145px;
  }
  html[data-build="5"] .auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 24px;
    padding: 4px;
    border: 1px solid var(--v4-line);
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.2);
  }
  html[data-build="5"] .auth-tabs button {
    padding: 9px;
    border: 0;
    border-radius: 8px;
    color: var(--v4-muted);
    background: transparent;
  }
  html[data-build="5"] .auth-tabs button.active {
    color: var(--v4-gold-soft);
    background: var(--v4-surface-2);
  }
  html[data-build="5"] #authForm {
    display: grid;
    gap: 15px;
  }
  html[data-build="5"] #authForm header {
    display: grid;
    gap: 8px;
    margin-bottom: 5px;
  }
  html[data-build="5"] #authForm header p {
    color: var(--v4-muted);
  }
  html[data-build="5"] .auth-error:not(:empty) {
    padding: 10px;
    border-radius: 8px;
    color: #ffd4d1;
    background: rgba(182, 92, 89, 0.18);
  }

  html[data-build="5"] .overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: clamp(10px, 2vw, 24px);
    background: rgba(234,216,184,0.78);
    backdrop-filter: blur(10px);
  }
  html[data-build="5"] .dialog {
    width: min(760px, 100%);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius-lg);
    color: var(--v4-text);
    background: linear-gradient(150deg, #ead8b8, #ead8b8 72%);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.72);
    animation: v4-dialog-in 0.22s cubic-bezier(0.2, 0.75, 0.2, 1);
  }
  html[data-build="5"] .dialog-wide {
    width: min(1380px, 100%);
  }
  html[data-build="5"] .dialog-head {
    position: sticky;
    top: -30px;
    z-index: 5;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin: -30px -30px 22px;
    padding: 22px 30px 16px;
    border-bottom: 1px solid var(--v4-border);
    background: rgba(234,216,184,0.94);
    backdrop-filter: blur(14px);
  }
  html[data-build="5"] .dialog-sub {
    margin-top: 4px;
    color: var(--v4-muted);
  }
  html[data-build="5"] .dialog-actions,
  html[data-build="5"] .form-actions {
    justify-content: flex-end;
    margin-top: 20px;
  }
  html[data-build="5"] body.has-dialog {
    overscroll-behavior: none;
  }
  @keyframes v4-dialog-in {
    from {
      opacity: 0;
      transform: translateY(12px) scale(0.985);
    }
  }

  html[data-build="5"] .tavern-chat-desk {
    display: grid;
    grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
    min-height: min(680px, calc(100dvh - 245px));
    overflow: hidden;
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius-lg);
    background: rgba(234,216,184,0.94);
    box-shadow: var(--v4-shadow);
  }
  html[data-build="5"] .tavern-ledger-column {
    min-width: 0;
    border-right: 1px solid var(--v4-border);
    background: rgba(0, 0, 0, 0.15);
  }
  html[data-build="5"] .messenger-column-title {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    color: var(--v4-gold-soft);
    border-bottom: 1px solid var(--v4-line);
  }
  html[data-build="5"] .chat-ledger {
    max-height: calc(100dvh - 315px);
    overflow: auto;
  }
  html[data-build="5"] .chat-group-title {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 11px 14px;
    border: 0;
    color: var(--v4-muted);
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
  }
  html[data-build="5"] .chat-group.collapsed .chat-group-list {
    display: none;
  }
  html[data-build="5"] .chat-list-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    width: 100%;
    padding: 11px 13px;
    border: 0;
    border-left: 3px solid transparent;
    color: var(--v4-text);
    background: transparent;
    text-align: left;
    cursor: pointer;
  }
  html[data-build="5"] .chat-list-item:hover {
    background: rgba(255, 255, 255, 0.04);
  }
  html[data-build="5"] .chat-list-item.active {
    border-left-color: var(--v4-gold);
    background: rgba(217, 173, 88, 0.1);
  }
  html[data-build="5"] .chat-icon,
  html[data-build="5"] .chat-window-icon,
  html[data-build="5"] .message-avatar {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background-position: center;
    background-size: cover;
  }
  html[data-build="5"] .chat-main {
    display: grid;
    min-width: 0;
  }
  html[data-build="5"] .chat-main span {
    overflow: hidden;
    color: var(--v4-muted);
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html[data-build="5"] .chat-side {
    display: grid;
    justify-items: end;
    align-content: space-between;
    color: var(--v4-muted);
    font-size: 0.68rem;
  }
  html[data-build="5"] .unread-dot {
    display: grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 20px;
    color: #1d1213;
    background: var(--v4-gold);
    font-weight: 800;
  }
  html[data-build="5"] .tavern-thread-column,
  html[data-build="5"] .chat-window {
    min-width: 0;
    min-height: 0;
  }
  html[data-build="5"] .chat-window {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100%;
    overflow: hidden;
  }
  html[data-build="5"] .chat-window-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px 18px;
    border-bottom: 1px solid var(--v4-line);
  }
  html[data-build="5"] .chat-window-head > div:not(.chat-head-actions) {
    min-width: 0;
    flex: 1;
  }
  html[data-build="5"] .chat-context {
    overflow: hidden;
    color: var(--v4-muted);
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html[data-build="5"] .messages {
    min-height: 260px;
    overflow-y: auto;
    padding: 18px;
    overscroll-behavior: contain;
  }
  html[data-build="5"] .message {
    display: flex;
    align-items: end;
    gap: 8px;
    max-width: min(78%, 680px);
    margin: 7px 0;
  }
  html[data-build="5"] .message.me {
    margin-left: auto;
    flex-direction: row-reverse;
  }
  html[data-build="5"] .message-avatar,
  html[data-build="5"] .message-avatar-spacer {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
  }
  html[data-build="5"] .message-bubble {
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid var(--v4-line);
    border-radius: 13px 13px 13px 3px;
    background: var(--v4-surface-2);
  }
  html[data-build="5"] .message.me .message-bubble {
    border-color: rgba(217, 173, 88, 0.24);
    border-radius: 13px 13px 3px 13px;
    background: rgba(234,216,184,0.55);
  }
  html[data-build="5"] .message-bubble p {
    overflow-wrap: anywhere;
  }
  html[data-build="5"] .message-meta {
    margin-top: 3px;
    color: var(--v4-muted);
    font-size: 0.62rem;
    text-align: right;
  }
  html[data-build="5"] .message-day {
    display: flex;
    justify-content: center;
    margin: 13px;
    color: var(--v4-muted);
    font-size: 0.68rem;
  }
  html[data-build="5"] .chat-compose {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--v4-line);
    background: rgba(0, 0, 0, 0.14);
  }
  html[data-build="5"] .chat-compose textarea {
    min-height: 43px;
    max-height: 130px;
    resize: none;
  }
  html[data-build="5"] .chat-voice-button svg {
    width: 22px;
    fill: currentColor;
  }

  html[data-build="5"] .character-dossier-stack {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius-lg);
    background: rgba(234,216,184,0.92);
    box-shadow: var(--v4-shadow);
  }
  html[data-build="5"] .character-dossier-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 10px 12px 0;
    border-bottom: 1px solid var(--v4-border);
  }
  html[data-build="5"] .character-dossier-tab {
    display: grid;
    grid-template-columns: 36px auto;
    align-items: center;
    gap: 9px;
    min-width: 160px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    color: var(--v4-muted);
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
  }
  html[data-build="5"] .character-dossier-tab.active {
    color: var(--v4-gold-soft);
    border-color: var(--v4-border);
    background: var(--v4-surface-2);
  }
  html[data-build="5"] .character-dossier-tab img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
  }
  html[data-build="5"] .character-dossier-tab span {
    display: grid;
    min-width: 0;
    text-align: left;
  }
  html[data-build="5"] .character-dossier-tab small {
    color: var(--v4-muted);
    font-size: 0.67rem;
  }
  html[data-build="5"] .character-sheet-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 34%);
    min-height: 720px;
    background: #ead8b8;
  }
  html[data-build="5"]
    .character-dossier-stack.chat-collapsed
    .character-sheet-stage {
    grid-template-columns: minmax(0, 1fr) 0;
  }
  html[data-build="5"] .character-full-inline {
    min-width: 0;
    max-height: calc(100dvh - 180px);
    overflow: auto;
    padding: clamp(14px, 2.5vw, 34px);
  }
  html[data-build="5"] .character-case-chat {
    min-width: 0;
    overflow: hidden;
    padding: 15px;
    border-left: 1px solid var(--v4-border);
    background: rgba(234,216,184,0.9);
    transition: opacity 0.22s ease;
  }
  html[data-build="5"] .chat-collapsed .character-case-chat {
    opacity: 0;
    pointer-events: none;
  }
  html[data-build="5"] .character-case-chat .chat-window {
    height: calc(100dvh - 250px);
  }
  html[data-build="5"] .character-chat-label {
    display: grid;
    margin-bottom: 10px;
  }
  html[data-build="5"] .character-chat-label small {
    color: var(--v4-muted);
  }
  html[data-build="5"] .character-chat-toggle {
    position: absolute;
    z-index: 4;
    top: 14px;
    right: calc(31% - 20px);
    width: 40px;
    min-height: 76px;
    border: 1px solid var(--v4-border);
    border-radius: 12px;
    color: var(--v4-gold-soft);
    background: var(--v4-surface);
    cursor: pointer;
    writing-mode: vertical-rl;
  }
  html[data-build="5"] .chat-collapsed .character-chat-toggle {
    right: 14px;
  }
  html[data-build="5"] .classic-character-sheet {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--v4-border);
    border-radius: 18px;
    color: var(--v4-text);
    background: #ead8b8;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
  }
  html[data-build="5"] .classic-character-sheet :is(h2, h3, strong, b) {
    color: #2d1a17;
  }
  html[data-build="5"] .classic-sheet-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 20px;
    min-height: 150px;
    padding: 24px;
    color: var(--v4-text);
    background: linear-gradient(135deg, #ead8b8, #ead8b8);
  }
  html[data-build="5"] .classic-sheet-hero > img {
    width: 150px;
    height: 170px;
    border-radius: 9px;
    object-fit: cover;
    object-position: top;
  }
  html[data-build="5"] .classic-sheet-hero :is(h2, b) {
    color: var(--v4-text);
  }
  html[data-build="5"] .classic-sheet-name h2 {
    font-size: clamp(1.7rem, 3vw, 3rem);
  }
  html[data-build="5"] .classic-level-seal {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border: 2px solid var(--v4-gold);
    border-radius: 50%;
    background: rgba(234,216,184,0.7);
  }
  html[data-build="5"] .classic-level-seal b {
    font-size: 2rem;
  }
  html[data-build="5"] .classic-level-seal span {
    font-size: 0.7rem;
  }
  html[data-build="5"] .classic-identity-grid,
  html[data-build="5"] .classic-combat-ribbon {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-bottom: 1px solid rgba(67, 39, 26, 0.25);
  }
  html[data-build="5"] .classic-identity-grid > span,
  html[data-build="5"] .classic-combat-ribbon > span {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px;
    border-right: 1px solid rgba(67, 39, 26, 0.18);
  }
  html[data-build="5"] .classic-character-sheet small {
    color: #6f5542;
  }
  html[data-build="5"] .classic-character-sheet button {
    color: var(--v4-ink);
  }
  html[data-build="5"] .classic-group-title,
  html[data-build="5"] .classic-panel > h3 {
    padding: 9px 12px;
    color: #30281f;
    background: #ead8b8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  html[data-build="5"] .classic-sheet-layout {
    display: grid;
    grid-template-columns:
      minmax(135px, 0.65fr) minmax(175px, 0.8fr) minmax(260px, 1.55fr)
      minmax(190px, 1fr);
    gap: 12px;
    padding: 14px;
  }
  html[data-build="5"]
    :is(
      .classic-abilities-column,
      .classic-skills-panel,
      .classic-panel,
      .classic-story-box,
      .classic-death-saves,
      .classic-spellbook,
      .classic-private-notes
    ) {
    overflow: hidden;
    border: 1px solid rgba(67, 39, 26, 0.28);
    border-radius: 8px;
    background: rgba(255, 248, 225, 0.38);
  }
  html[data-build="5"] .classic-abilities-grid,
  html[data-build="5"] .classic-skills-list {
    display: grid;
    padding: 8px;
  }
  html[data-build="5"] .classic-ability-card,
  html[data-build="5"] .classic-skill-row,
  html[data-build="5"] .classic-feature-row,
  html[data-build="5"] .classic-spell-chip {
    border: 0;
    border-bottom: 1px solid rgba(67, 39, 26, 0.17);
    background: transparent;
    text-align: left;
    cursor: pointer;
    text-decoration: underline dotted rgba(61, 35, 27, 0.65);
    text-underline-offset: 3px;
  }
  html[data-build="5"] .classic-ability-card {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 8px;
  }
  html[data-build="5"] .classic-ability-card strong {
    font-size: 1.25rem;
  }
  html[data-build="5"] .classic-skill-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 6px;
    padding: 6px;
  }
  html[data-build="5"] .classic-story-column {
    display: grid;
    gap: 8px;
  }
  html[data-build="5"] .classic-story-box {
    padding: 10px;
  }
  html[data-build="5"] .classic-story-box > span {
    font-family: var(--v4-display);
    font-weight: 700;
  }
  html[data-build="5"] .classic-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 14px 14px;
  }
  html[data-build="5"] .classic-list-row,
  html[data-build="5"] .classic-feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
  }
  html[data-build="5"] .character-resource-stepper {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  html[data-build="5"] .character-resource-stepper button,
  html[data-build="5"] .character-hp-controls button,
  html[data-build="5"] .character-gold-resource button {
    min-width: 28px;
    min-height: 28px;
    border: 1px solid rgba(67, 39, 26, 0.35);
    border-radius: 6px;
    background: rgba(255, 248, 225, 0.4);
  }
  html[data-build="5"] .classic-spellbook {
    margin: 0 14px 14px;
    padding: 14px;
  }
  html[data-build="5"] .classic-spellbook > header {
    display: flex;
    justify-content: space-between;
  }
  html[data-build="5"] .classic-slots,
  html[data-build="5"] .classic-spells {
    display: grid;
    gap: 8px;
    margin-top: 12px;
  }
  html[data-build="5"] .classic-spell-level-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  html[data-build="5"] .classic-spell-chip {
    padding: 7px 9px;
    border: 1px solid rgba(67, 39, 26, 0.25);
    border-radius: 7px;
  }
  html[data-build="5"] .classic-sheet-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px;
    border-top: 1px solid rgba(67, 39, 26, 0.3);
    background: rgba(91, 59, 39, 0.1);
  }
  html[data-build="5"] .classic-approval {
    display: grid;
    flex: 1;
  }
  html[data-build="5"] .classic-approval.approved span {
    color: #31583c;
    font-weight: 800;
  }

  html[data-build="5"] :is(.analytics-dashboard, .club-intelligence) {
    display: grid;
    gap: 18px;
    min-width: 0;
  }
  html[data-build="5"] :is(.analytics-kpis, .dashboard-grid, .analytics-grid) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
  html[data-build="5"] .analytics-filter-bar {
    position: sticky;
    top: calc(var(--v4-hud) + 8px);
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius);
    background: rgba(234,216,184,0.94);
    backdrop-filter: blur(12px);
  }
  html[data-build="5"] .analytics-table {
    max-width: 100%;
    overflow-x: auto;
  }
  html[data-build="5"] .metric-bar {
    display: grid;
    gap: 5px;
  }
  html[data-build="5"] .bar-track {
    height: 7px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
  }
  html[data-build="5"] .bar-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--v4-purple), var(--v4-gold));
  }
  html[data-build="5"] .toast-stack {
    position: fixed;
    z-index: 200;
    right: 18px;
    bottom: 18px;
    display: grid;
    gap: 8px;
  }
  html[data-build="5"] .toast {
    max-width: min(390px, calc(100vw - 36px));
    padding: 12px 16px;
    border: 1px solid var(--v4-border);
    border-radius: 10px;
    color: var(--v4-text);
    background: #ead8b8;
    box-shadow: var(--v4-shadow);
    animation: v4-dialog-in 0.2s ease;
  }
}

@layer responsive {
  @media (max-width: 1100px) {
    html[data-build="5"] .classic-sheet-layout {
      grid-template-columns: minmax(130px, 0.65fr) minmax(170px, 0.9fr) minmax(
          250px,
          1.5fr
        );
    }
    html[data-build="5"] .classic-story-column {
      grid-column: 1 / -1;
      grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    html[data-build="5"]
      :is(.analytics-kpis, .dashboard-grid, .analytics-grid) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 820px) {
    :root {
      --v4-hud: 64px;
    }
    html[data-build="5"] .game-shell {
      display: block;
      padding-bottom: 70px;
    }
    html[data-build="5"] .side-rail {
      display: none;
    }
    html[data-build="5"] .hud-bar {
      padding: 8px 12px;
    }
    html[data-build="5"] .hud-brand {
      display: block;
      flex: 0 0 52px;
      width: 52px;
      padding: 0;
    }
    html[data-build="5"] .hud-user-text {
      display: none;
    }
    html[data-build="5"] .hud-avatar {
      width: 38px;
      height: 38px;
    }
    html[data-build="5"] .stage-content {
      padding: 12px;
    }
    html[data-build="5"] .mobile-nav {
      position: fixed;
      z-index: 60;
      inset: auto 0 0;
      display: flex;
      min-height: 66px;
      padding: 6px max(6px, env(safe-area-inset-right))
        max(6px, env(safe-area-inset-bottom))
        max(6px, env(safe-area-inset-left));
      overflow-x: auto;
      border-top: 1px solid var(--v4-border);
      background: rgba(234,216,184,0.96);
      backdrop-filter: blur(16px);
    }
    html[data-build="5"] .mobile-tab {
      position: relative;
      display: grid;
      flex: 1 0 67px;
      place-items: center;
      gap: 2px;
      min-width: 67px;
      padding: 5px;
      border: 0;
      border-radius: 9px;
      color: var(--v4-muted);
      background: transparent;
    }
    html[data-build="5"] .mobile-tab.active {
      color: var(--v4-gold-soft);
      background: rgba(217, 173, 88, 0.1);
    }
    html[data-build="5"] .mobile-tab img {
      width: 25px;
      height: 25px;
    }
    html[data-build="5"] .mobile-tab > span:not(.nav-badge) {
      font-size: 0.64rem;
    }
    html[data-build="5"] .location-plaque {
      min-height: 108px;
      padding: 20px;
    }
    html[data-build="5"] .tavern-chat-desk {
      grid-template-columns: minmax(210px, 39%) minmax(0, 1fr);
      min-height: calc(100dvh - 210px);
    }
    html[data-build="5"] .character-sheet-stage {
      grid-template-columns: minmax(0, 1fr);
    }
    html[data-build="5"] .character-case-chat {
      display: none;
    }
    html[data-build="5"] .character-chat-toggle {
      right: 12px;
    }
    html[data-build="5"] .classic-sheet-layout {
      grid-template-columns: minmax(120px, 0.65fr) minmax(160px, 0.9fr) minmax(
          230px,
          1.45fr
        );
    }
    html[data-build="5"] .classic-character-sheet {
      min-width: 760px;
    }
    html[data-build="5"] .character-full-inline {
      overflow: auto;
    }
  }
  @media (max-width: 620px) {
    html[data-build="5"] {
      font-size: 15px;
    }
    html[data-build="5"] .resource-chip {
      padding: 6px 8px;
    }
    html[data-build="5"] .location-plaque {
      align-items: start;
      flex-direction: column;
    }
    html[data-build="5"] .form-grid {
      grid-template-columns: 1fr;
    }
    html[data-build="5"] .form-grid > * {
      grid-column: 1 !important;
    }
    html[data-build="5"] .tavern-chat-desk {
      display: block;
    }
    html[data-build="5"] .tavern-ledger-column {
      border: 0;
    }
    html[data-build="5"] .tavern-thread-column {
      display: none;
    }
    html[data-build="5"] .chat-ledger {
      max-height: none;
    }
    html[data-build="5"] .dialog {
      max-height: calc(100dvh - 12px);
      padding: 15px;
      border-radius: 15px;
    }
    html[data-build="5"] .dialog-head {
      top: -15px;
      margin: -15px -15px 15px;
      padding: 15px;
    }
    html[data-build="5"] .context-chat-dialog {
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      height: calc(100dvh - 12px);
      overflow: hidden;
    }
    html[data-build="5"] .context-chat-dialog > .chat-window {
      min-height: 0;
    }
    html[data-build="5"] .message {
      max-width: 90%;
    }
    html[data-build="5"] .chat-compose {
      grid-template-columns: auto auto minmax(0, 1fr) auto;
      padding: 8px;
    }
    html[data-build="5"] .classic-sheet-hero {
      grid-template-columns: 98px minmax(0, 1fr);
      min-height: 130px;
      padding: 10px;
    }
    html[data-build="5"] .classic-sheet-hero > img {
      width: 98px;
      height: 120px;
    }
    html[data-build="5"] .classic-level-seal {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 58px;
      height: 58px;
    }
    html[data-build="5"] .classic-level-seal b {
      font-size: 1.25rem;
    }
    html[data-build="5"]
      :is(.analytics-kpis, .dashboard-grid, .analytics-grid) {
      grid-template-columns: 1fr;
    }
    html[data-build="5"] .classic-character-sheet {
      min-width: 690px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    html[data-build="5"] *,
    html[data-build="5"] *::before,
    html[data-build="5"] *::after {
      scroll-behavior: auto !important;
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
  }
}

@layer refinement {
  /* Image-free product language. Old data may still contain image references,
     but no screen loads or reserves visual space for them. */
  html[data-build="5"] img:not([data-content-image]),
  html[data-build="5"] picture,
  html[data-build="5"] .design-assets-panel,
  html[data-build="5"] .builder-portrait-picker,
  html[data-build="5"] [class*="art"]:empty:not([data-content-image]):not([contenteditable]) {
    display: none !important;
  }
  html[data-build="5"] [style*="background-image"] {
    background-image: none !important;
  }
  html[data-build="5"] .world-bg {
    background:
      radial-gradient(
        circle at 12% 0%,
        rgba(80, 209, 196, 0.1),
        transparent 30%
      ),
      radial-gradient(
        circle at 100% 100%,
        rgba(111, 140, 255, 0.08),
        transparent 35%
      ),
      #ead8b8 !important;
    filter: none;
  }
  html[data-build="5"] .world-bg::after {
    background: linear-gradient(
      115deg,
      rgba(219,227,232,0.35),
      transparent 52%,
      rgba(4, 12, 18, 0.22)
    );
  }

  html[data-build="5"] body {
    letter-spacing: -0.005em;
  }
  html[data-build="5"] h1,
  html[data-build="5"] h2,
  html[data-build="5"] h3,
  html[data-build="5"] .physical-label {
    font-family: var(--v4-font);
    font-weight: 780;
    letter-spacing: -0.025em;
  }
  html[data-build="5"] h1 {
    font-size: clamp(1.8rem, 3.2vw, 2.85rem);
  }
  html[data-build="5"] h2 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
  }
  html[data-build="5"] h3 {
    font-size: 1rem;
  }

  html[data-build="5"] .brand-plaque {
    align-content: center;
    gap: 5px;
  }
  html[data-build="5"] .brand-mark,
  html[data-build="5"] .auth-brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(140, 232, 223, 0.52);
    border-radius: 13px;
    color: #071018;
    background: linear-gradient(145deg, #8ce8df, #50d1c4);
    font-size: 1.25rem;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(80, 209, 196, 0.18);
  }
  html[data-build="5"] .brand-word {
    color: var(--v4-muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  html[data-build="5"] .hud-brand .brand-mark {
    width: 40px;
    height: 40px;
  }
  html[data-build="5"] .auth-emblem {
    gap: 7px;
  }
  html[data-build="5"] .auth-emblem strong {
    color: var(--v4-text);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  html[data-build="5"] .auth-card {
    border-color: rgba(126, 180, 194, 0.2);
    background: rgba(234,216,184,0.94);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
  }
  html[data-build="5"] .auth-tabs {
    border-color: rgba(126, 180, 194, 0.15);
    background: #ead8b8;
  }
  html[data-build="5"] .auth-tabs button.active {
    color: #30281f;
    background: #ead8b8;
  }

  html[data-build="5"] .side-rail {
    padding: 16px 10px;
    border-color: rgba(126, 180, 194, 0.14);
    background: rgba(234,216,184,0.96);
  }
  html[data-build="5"] .nav-button {
    min-height: 68px;
    border-radius: 14px;
  }
  html[data-build="5"] .nav-button.active {
    box-shadow: inset 3px 0 var(--v4-gold);
  }
  html[data-build="5"] .nav-symbol {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 1px solid rgba(126, 180, 194, 0.18);
    border-radius: 9px;
    color: var(--v4-muted);
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
  }
  html[data-build="5"] .nav-button.active .nav-symbol,
  html[data-build="5"] .mobile-tab.active .nav-symbol {
    color: #071018;
    border-color: transparent;
    background: var(--v4-gold);
  }
  html[data-build="5"] .hud-bar {
    border-color: rgba(126, 180, 194, 0.14);
    background: rgba(234,216,184,0.86);
  }
  html[data-build="5"] .hud-avatar {
    display: grid;
    place-items: center;
    border: 1px solid rgba(140, 232, 223, 0.5);
    color: var(--v4-gold-soft);
    background: #ead8b8;
    font-size: 0.92rem;
    font-weight: 850;
  }
  html[data-build="5"] .resource-chip {
    border-color: rgba(126, 180, 194, 0.16);
    background: rgba(255, 255, 255, 0.025);
  }

  html[data-build="5"] .location-plaque {
    position: relative;
    min-height: 118px;
    padding: clamp(22px, 3vw, 36px);
    border-color: rgba(126, 180, 194, 0.18);
    background: linear-gradient(
      135deg,
      rgba(234,216,184,0.98),
      rgba(234,216,184,0.98)
    );
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
  }
  html[data-build="5"] .location-plaque::before {
    content: "";
    position: absolute;
    inset: 18px auto 18px 0;
    width: 3px;
    border-radius: 4px;
    background: linear-gradient(var(--v4-gold), #6f8cff);
  }
  html[data-build="5"] .scene-meta span,
  html[data-build="5"] .badge,
  html[data-build="5"] .section-count {
    color: #b8cbd2;
    border-color: rgba(126, 180, 194, 0.15);
    background: rgba(255, 255, 255, 0.035);
  }

  html[data-build="5"]
    :is(
      .panel,
      .analytics-card,
      .dashboard-card,
      .archive-chest,
      .compact-list,
      .guild-goals,
      .quest-ledger,
      .design-studio-panel,
      .builder-step-panel,
      .level-up-choice,
      .level-up-gains
    ) {
    border: 1px solid rgba(126, 180, 194, 0.16);
    border-radius: 16px;
    color: var(--v4-text);
    background: #ead8b8;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  }
  html[data-build="5"] .panel + .panel {
    margin-top: 0;
  }
  html[data-build="5"] .compact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(126, 180, 194, 0.1);
  }
  html[data-build="5"] .compact-row:last-child {
    border-bottom: 0;
  }
  html[data-build="5"] .compact-row > * {
    min-width: 0;
  }

  html[data-build="5"]
    :is(
      button.primary-button,
      button.soft-button,
      button.ghost-button,
      button.danger-button,
      .auth-submit
    ) {
    min-height: 42px;
    padding: 9px 15px;
    border-radius: 11px;
    font-size: 0.86rem;
    line-height: 1.15;
    font-weight: 760;
    box-shadow: none;
  }
  html[data-build="5"] :is(button.primary-button, .auth-submit) {
    border-color: #30281f;
    color: #041014;
    background: #63d8cc;
  }
  html[data-build="5"] :is(button.primary-button, .auth-submit):hover {
    background: #7de5db;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(80, 209, 196, 0.16);
  }
  html[data-build="5"] button.soft-button {
    color: #b5f3ed;
    border-color: rgba(80, 209, 196, 0.28);
    background: rgba(80, 209, 196, 0.08);
  }
  html[data-build="5"] button.soft-button:hover {
    border-color: rgba(80, 209, 196, 0.52);
    background: rgba(80, 209, 196, 0.13);
  }
  html[data-build="5"] button.ghost-button {
    color: #a8bcc5;
  }
  html[data-build="5"] button.ghost-button:hover {
    color: var(--v4-text);
    background: rgba(255, 255, 255, 0.045);
  }
  html[data-build="5"] button.danger-button {
    color: #ffc5c8;
    border-color: rgba(255, 107, 115, 0.3);
    background: rgba(255, 107, 115, 0.09);
  }
  html[data-build="5"] .icon-button {
    width: 42px;
    height: 42px;
    border-color: rgba(126, 180, 194, 0.2);
    color: var(--v4-gold-soft);
    background: #ead8b8;
  }

  /* Form standard: label, control, help/error, and action row. */
  html[data-build="5"] :is(form, .form-grid) {
    min-width: 0;
  }
  html[data-build="5"] .form-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px 16px;
  }
  html[data-build="5"] .form-grid > label {
    grid-column: span 6;
  }
  html[data-build="5"] .form-grid > label.full,
  html[data-build="5"] .form-grid > .full,
  html[data-build="5"] .form-grid > .form-actions {
    grid-column: 1 / -1;
  }
  html[data-build="5"] label {
    gap: 8px;
    color: #b8cbd2;
    font-size: 0.78rem;
    line-height: 1.3;
    font-weight: 720;
  }
  html[data-build="5"] label > span:first-child {
    display: flex;
    align-items: center;
    min-height: 18px;
  }
  html[data-build="5"] label small {
    color: #718b97;
    font-size: 0.71rem;
    font-weight: 500;
  }
  html[data-build="5"]
    :is(
      input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(
          [type="color"]
        ),
      select,
      textarea
    ) {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(126, 180, 194, 0.24);
    border-radius: 11px;
    color: #30281f;
    background: #ead8b8;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  }
  html[data-build="5"]
    :is(
      input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(
          [type="color"]
        ),
      select
    ) {
    min-height: 44px;
    padding: 9px 12px;
  }
  html[data-build="5"] textarea {
    min-height: 112px;
    padding: 12px;
    line-height: 1.55;
    resize: vertical;
  }
  html[data-build="5"] :is(input, select, textarea)::placeholder {
    color: #607782;
    opacity: 1;
  }
  html[data-build="5"] :is(input, select, textarea):hover {
    border-color: rgba(126, 180, 194, 0.38);
  }
  html[data-build="5"] :is(input, select, textarea):focus {
    border-color: #50d1c4;
    box-shadow: 0 0 0 3px rgba(80, 209, 196, 0.11);
  }
  html[data-build="5"] :is(input, select, textarea):disabled {
    color: #71838b;
    background: #ead8b8;
    opacity: 0.72;
  }
  html[data-build="5"] input[type="checkbox"],
  html[data-build="5"] input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #50d1c4;
  }
  html[data-build="5"] :is(.inline-check, .toggle, .builder-public-toggle) {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(126, 180, 194, 0.16);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.02);
  }
  html[data-build="5"] .form-actions,
  html[data-build="5"] .dialog-actions {
    position: sticky;
    bottom: -30px;
    z-index: 4;
    justify-content: flex-end;
    gap: 10px;
    margin: 24px -30px -30px;
    padding: 16px 30px;
    border-top: 1px solid rgba(126, 180, 194, 0.14);
    background: rgba(234,216,184,0.96);
    backdrop-filter: blur(14px);
  }

  /* Modal sizes are content contracts, not arbitrary screen percentages. */
  html[data-build="5"] .overlay {
    align-items: center;
    overflow: hidden;
    padding: clamp(10px, 2vw, 24px);
  }
  html[data-build="5"] .dialog {
    width: min(620px, calc(100vw - 32px));
    max-width: 100%;
    max-height: min(860px, calc(100dvh - 32px));
    padding: 30px;
    overscroll-behavior: contain;
    border-color: rgba(126, 180, 194, 0.22);
    border-radius: 20px;
    background: #ead8b8;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.52);
  }
  html[data-build="5"] .dialog-wide {
    width: min(1120px, calc(100vw - 32px));
  }
  html[data-build="5"]
    :is(
      .sheet-dialog,
      .admin-case-dialog,
      .context-chat-dialog,
      .quest-detail-dialog,
      .db-character-builder-dialog
    ) {
    width: min(1440px, calc(100vw - 24px));
    height: min(920px, calc(100dvh - 24px));
    max-height: calc(100dvh - 24px);
  }
  html[data-build="5"] .dialog-head {
    top: -30px;
    margin: -30px -30px 24px;
    padding: 22px 30px 18px;
    border-color: rgba(126, 180, 194, 0.14);
    background: rgba(234,216,184,0.96);
  }
  html[data-build="5"] .dialog-title {
    max-width: 720px;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
  }
  html[data-build="5"] .dialog-sub {
    max-width: 760px;
    color: #91a8b3;
    font-size: 0.82rem;
  }

  /* Chat uses stable columns and never inherits illustration geometry. */
  html[data-build="5"] .tavern-chat-desk {
    grid-template-columns: clamp(260px, 29vw, 360px) minmax(0, 1fr);
    min-height: min(720px, calc(100dvh - 238px));
    border-color: rgba(126, 180, 194, 0.16);
    background: #ead8b8;
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
  }
  html[data-build="5"] .chat-icon,
  html[data-build="5"] .chat-window-icon,
  html[data-build="5"] .message-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(80, 209, 196, 0.2);
    border-radius: 11px;
    background: rgba(80, 209, 196, 0.08) !important;
  }
  html[data-build="5"] .chat-icon::after,
  html[data-build="5"] .chat-window-icon::after,
  html[data-build="5"] .message-avatar::after {
    content: "·";
    color: var(--v4-gold);
    font-size: 1.5rem;
    line-height: 1;
  }
  html[data-build="5"] .chat-list-item {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    padding: 12px 14px;
  }
  html[data-build="5"] .chat-list-item.active {
    border-left-color: #50d1c4;
    background: rgba(80, 209, 196, 0.07);
  }
  html[data-build="5"] .messages {
    padding: clamp(14px, 2vw, 24px);
  }
  html[data-build="5"] .message-bubble {
    color: #30281f;
    border-color: rgba(126, 180, 194, 0.14);
    background: #ead8b8;
  }
  html[data-build="5"] .message.me .message-bubble {
    border-color: rgba(80, 209, 196, 0.2);
    background: #ead8b8;
  }
  html[data-build="5"] .chat-compose {
    align-items: end;
    padding: 12px 14px;
    background: #ead8b8;
  }
  html[data-build="5"] .chat-compose textarea {
    min-height: 44px;
    max-height: 144px;
  }

  /* One clean digital sheet, without paper, frames or portrait art. */
  html[data-build="5"] .character-dossier-stack {
    border-color: rgba(126, 180, 194, 0.16);
    background: #ead8b8;
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
  }
  html[data-build="5"] .character-dossier-tabs {
    gap: 7px;
    padding: 10px;
    background: #ead8b8;
  }
  html[data-build="5"] .character-dossier-tab {
    grid-template-columns: minmax(0, 1fr);
    min-width: 180px;
    border: 1px solid rgba(126, 180, 194, 0.13);
    border-radius: 11px;
    background: #ead8b8;
  }
  html[data-build="5"] .character-dossier-tab.active {
    color: var(--v4-gold-soft);
    border-color: rgba(80, 209, 196, 0.35);
    background: #ead8b8;
  }
  html[data-build="5"] .character-sheet-stage {
    grid-template-columns: minmax(0, 1fr) clamp(320px, 34%, 470px);
  }
  html[data-build="5"] .character-full-inline {
    padding: clamp(14px, 2vw, 28px);
  }
  html[data-build="5"] .character-case-chat {
    padding: 16px;
    border-color: rgba(126, 180, 194, 0.15);
    background: #ead8b8;
  }
  html[data-build="5"] .classic-character-sheet :is(h2, h3, strong, b) {
    color: #eef7f8;
  }
  html[data-build="5"] .classic-character-sheet small {
    color: #8fa8b2;
  }
  html[data-build="5"] .classic-character-sheet button {
    color: #eaf5f6;
  }
  html[data-build="5"] .classic-sheet-hero {
    min-height: 136px;
    padding: 24px;
    background: linear-gradient(135deg, #ead8b8, #ead8b8);
  }
  html[data-build="5"] .classic-level-seal {
    width: 76px;
    height: 76px;
    border-color: rgba(80, 209, 196, 0.55);
    background: #ead8b8;
  }
  html[data-build="5"] .classic-identity-grid,
  html[data-build="5"] .classic-combat-ribbon {
    border-color: rgba(126, 180, 194, 0.13);
  }
  html[data-build="5"] .classic-identity-grid > span,
  html[data-build="5"] .classic-combat-ribbon > span {
    border-color: rgba(126, 180, 194, 0.1);
  }
  html[data-build="5"] .classic-group-title,
  html[data-build="5"] .classic-panel > h3 {
    color: #30281f;
    background: #ead8b8;
  }
  html[data-build="5"]
    :is(
      .classic-abilities-column,
      .classic-skills-panel,
      .classic-panel,
      .classic-story-box,
      .classic-death-saves,
      .classic-spellbook,
      .classic-private-notes
    ) {
    border-color: rgba(126, 180, 194, 0.15);
    background: #ead8b8;
  }
  html[data-build="5"]
    :is(
      .classic-ability-card,
      .classic-skill-row,
      .classic-feature-row,
      .classic-spell-chip
    ) {
    border-color: rgba(126, 180, 194, 0.12);
    text-decoration-color: rgba(140, 232, 223, 0.65);
  }
  html[data-build="5"] .classic-spell-chip {
    border-color: rgba(126, 180, 194, 0.2);
  }
  html[data-build="5"] .classic-sheet-toolbar {
    border-color: rgba(126, 180, 194, 0.15);
    background: #ead8b8;
  }

  /* Dense, consistent workspaces for builders, shop, quests and admin. */
  html[data-build="5"]
    :is(
      .builder-shell,
      .db-character-builder,
      .quest-builder-workspace,
      .admin-inventory-ledger,
      .schedule-table,
      .command-contracts
    ) {
    min-width: 0;
  }
  html[data-build="5"] :is(.db-character-builder, .level-up-workshop) {
    display: grid;
    gap: 18px;
  }
  html[data-build="5"]
    :is(
      .builder-origin-fields,
      .builder-personality-grid,
      .design-controls,
      .design-font-grid,
      .quest-coordinate-fields
    ) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  html[data-build="5"] .builder-personality-grid .full {
    grid-column: 1 / -1;
  }
  html[data-build="5"] .builder-step-heading {
    display: grid;
    gap: 7px;
    margin-bottom: 18px;
  }
  html[data-build="5"] .builder-step-heading > span,
  html[data-build="5"] .design-studio-panel > header > span {
    color: var(--v4-gold);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  html[data-build="5"]
    :is(
      .builder-option-card,
      .builder-spell-card,
      .picker-character,
      .master-character-pick,
      .quest-template-row
    ) {
    min-width: 0;
    border: 1px solid rgba(126, 180, 194, 0.16);
    border-radius: 12px;
    color: var(--v4-text);
    background: #ead8b8;
  }
  html[data-build="5"] :is(.builder-option-card, .builder-spell-card).selected {
    border-color: rgba(80, 209, 196, 0.55);
    background: #ead8b8;
    box-shadow: 0 0 0 2px rgba(80, 209, 196, 0.08);
  }
  html[data-build="5"] .quest-builder-workspace {
    display: grid;
    grid-template-columns: clamp(190px, 22%, 270px) minmax(0, 1fr);
    gap: 16px;
  }
  html[data-build="5"] .quest-sheet-library,
  html[data-build="5"] .quest-layout-editor {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(126, 180, 194, 0.15);
    border-radius: 14px;
    background: #ead8b8;
  }
  html[data-build="5"] .quest-builder-preview {
    position: relative;
    min-height: 520px;
    border: 1px solid rgba(126, 180, 194, 0.22);
    border-radius: 14px;
    background: #f4e5c9 !important;
  }
  html[data-build="5"] .quest-builder-region {
    position: absolute;
    overflow: hidden;
    border: 1px dashed rgba(140, 232, 223, 0.48);
    border-radius: 9px;
    color: #ddecf0;
    background: rgba(80, 209, 196, 0.06);
  }
  html[data-build="5"] .quest-builder-region.active {
    border-style: solid;
    border-color: #50d1c4;
    background: rgba(80, 209, 196, 0.12);
    box-shadow: 0 0 0 3px rgba(80, 209, 196, 0.08);
  }
  html[data-build="5"] .shop-book-ui,
  html[data-build="5"] .admin-inventory-ledger {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(126, 180, 194, 0.16);
    border-radius: 18px;
    background: #ead8b8;
  }
  html[data-build="5"] .shop-ledger-filters,
  html[data-build="5"] .shop-admin-toolbar {
    display: grid;
    grid-template-columns: minmax(210px, 1.5fr) repeat(4, minmax(130px, 0.75fr));
    gap: 10px;
    align-items: end;
    min-width: 0;
  }
  html[data-build="5"] .shop-affordable-filter {
    min-height: 44px;
  }
  html[data-build="5"]
    :is(
      .shop-item,
      .ledger-item,
      .admin-inventory-row,
      .game-row,
      .participant-row,
      .archive-contract
    ) {
    min-width: 0;
    border: 1px solid rgba(126, 180, 194, 0.14);
    border-radius: 13px;
    color: var(--v4-text);
    background: #ead8b8;
  }
  html[data-build="5"] .shop-item {
    padding: 16px;
  }
  html[data-build="5"] .admin-inventory-row {
    display: grid;
    grid-template-columns:
      minmax(220px, 1.5fr) minmax(120px, 0.8fr)
      90px 80px 110px auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
  }
  html[data-build="5"] .admin-item-identity {
    min-width: 0;
  }
  html[data-build="5"] .admin-item-identity span {
    display: grid;
    min-width: 0;
  }
  html[data-build="5"] .admin-item-identity small {
    overflow: hidden;
    color: var(--v4-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html[data-build="5"] .analytics-filter-bar {
    top: calc(var(--v4-hud) + 8px);
    border-color: rgba(126, 180, 194, 0.18);
    background: rgba(234,216,184,0.94);
  }
  html[data-build="5"] :is(.analytics-kpis, .dashboard-grid, .analytics-grid) {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  html[data-build="5"] table {
    border: 1px solid rgba(126, 180, 194, 0.13);
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
  }
  html[data-build="5"] th {
    color: #30281f;
    background: #ead8b8;
  }
  html[data-build="5"] td {
    background: #ead8b8;
  }

  @media (max-width: 1050px) {
    html[data-build="5"] .shop-ledger-filters,
    html[data-build="5"] .shop-admin-toolbar {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    html[data-build="5"] .admin-inventory-row {
      grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(80px, auto));
    }
    html[data-build="5"] .admin-inventory-row > :nth-child(2) {
      display: none;
    }
  }

  @media (max-width: 760px) {
    html[data-build="5"] .form-grid,
    html[data-build="5"]
      :is(
        .builder-origin-fields,
        .builder-personality-grid,
        .design-controls,
        .design-font-grid,
        .quest-coordinate-fields
      ) {
      grid-template-columns: 1fr;
    }
    html[data-build="5"] .form-grid > label {
      grid-column: 1;
    }
    html[data-build="5"] .dialog {
      width: calc(100vw - 12px);
      max-height: calc(100dvh - 12px);
      padding: 20px;
      border-radius: 16px;
    }
    html[data-build="5"]
      :is(
        .sheet-dialog,
        .admin-case-dialog,
        .context-chat-dialog,
        .quest-detail-dialog,
        .db-character-builder-dialog
      ) {
      width: calc(100vw - 8px);
      height: calc(100dvh - 8px);
      max-height: calc(100dvh - 8px);
    }
    html[data-build="5"] .dialog-head {
      top: -20px;
      margin: -20px -20px 18px;
      padding: 17px 20px 14px;
    }
    html[data-build="5"] .form-actions,
    html[data-build="5"] .dialog-actions {
      bottom: -20px;
      margin: 22px -20px -20px;
      padding: 14px 20px max(14px, env(safe-area-inset-bottom));
    }
    html[data-build="5"] .form-actions > button,
    html[data-build="5"] .dialog-actions > button {
      flex: 1 1 130px;
    }
    html[data-build="5"] .quest-builder-workspace {
      grid-template-columns: 1fr;
    }
    html[data-build="5"] .quest-builder-preview {
      min-height: 480px;
    }
    html[data-build="5"] .shop-ledger-filters,
    html[data-build="5"] .shop-admin-toolbar {
      grid-template-columns: 1fr;
    }
    html[data-build="5"] .admin-inventory-row {
      grid-template-columns: minmax(0, 1fr) auto;
    }
    html[data-build="5"]
      .admin-inventory-row
      > :not(:first-child):not(:last-child) {
      display: none;
    }
    html[data-build="5"] .character-sheet-stage {
      grid-template-columns: minmax(0, 1fr);
    }
    html[data-build="5"] .classic-character-sheet {
      min-width: 720px;
    }
  }
}

@layer runtime {
  html[data-build="5"] .participant-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 8px;
    padding: 12px 14px;
  }
  html[data-build="5"] .participant-person,
  html[data-build="5"] .participant-person > div {
    display: grid;
    gap: 3px;
    min-width: 0;
  }
  html[data-build="5"] .participant-person > div > span {
    color: var(--v4-muted);
    font-size: 12px;
  }
  html[data-build="5"] .classic-derived-properties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1px;
    border-bottom: 1px solid var(--v4-line);
    background: var(--v4-line);
  }
  html[data-build="5"] .classic-derived-properties > span {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 12px 14px;
    background: var(--v4-bg-soft);
  }
  html[data-build="5"] .classic-derived-properties b {
    overflow-wrap: anywhere;
  }
  html[data-build="5"] .classic-sheet-layout {
    grid-template-columns: minmax(150px, 0.65fr) minmax(210px, 0.9fr) minmax(
        300px,
        1.6fr
      );
  }
  html[data-build="5"] .classic-story-column {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  html[data-build="5"] .classic-death-saves {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
  }
  html[data-build="5"] .classic-death-rows {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
  }
  html[data-build="5"] .classic-death-rows > span,
  html[data-build="5"] .classic-death-rows > span > i {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  html[data-build="5"] .classic-skill-row > span {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
  }
  html[data-build="5"] .classic-skill-row small {
    flex: 0 0 auto;
  }
  html[data-build="5"] .classic-attack-head,
  html[data-build="5"] .classic-attack-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 64px minmax(120px, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
  }
  html[data-build="5"] .classic-attack-head {
    color: var(--v4-muted);
    font-size: 11px;
    text-transform: uppercase;
  }
  html[data-build="5"] .classic-attack-row > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  html[data-build="5"] .classic-list-row > span {
    display: grid;
    gap: 3px;
    min-width: 0;
  }
  html[data-build="5"] .classic-list-row > span small {
    overflow-wrap: anywhere;
  }
  html[data-build="5"] .classic-inventory > h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  html[data-build="5"] .character-gold-resource,
  html[data-build="5"] .character-hp-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
  }
  html[data-build="5"] .character-hp-controls input,
  html[data-build="5"] .character-gold-resource input {
    width: 72px;
  }

  @media (max-width: 900px) {
    html[data-build="5"] .classic-identity-grid,
    html[data-build="5"] .classic-combat-ribbon {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    html[data-build="5"] .classic-sheet-layout {
      grid-template-columns: minmax(140px, 0.7fr) minmax(190px, 0.9fr) minmax(
          280px,
          1.5fr
        );
    }
  }
  @media (max-width: 760px) {
    html[data-build="5"] .participant-row {
      align-items: flex-start;
    }
    html[data-build="5"] .classic-story-column {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
}

/* Cascade terminus for canonical forms. Keep these rules last. */
@layer runtime {
  html[data-build="5"] body .shopkeeper-stage {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-build="5"] body .shopkeeper-side-panel {
    display: block;
    min-width: 0;
  }
  html[data-build="5"] body .shop-ledger-filters {
    grid-template-columns:
      minmax(200px, 1.4fr) minmax(130px, 0.75fr) minmax(180px, 0.9fr)
      minmax(140px, 0.8fr) minmax(150px, auto) auto;
  }
  html[data-build="5"]
    body
    .classic-character-sheet
    :is(
      .classic-abilities-column,
      .classic-skills-panel,
      .classic-panel,
      .classic-story-box,
      .classic-death-saves,
      .classic-spellbook,
      .classic-private-notes
    ) {
    border-color: rgba(126, 180, 194, 0.16);
    border-radius: 12px;
    background: #ead8b8;
  }
  html[data-build="5"]
    body
    .classic-character-sheet
    :is(
      .classic-group-title,
      .classic-panel > h3,
      .classic-skills-panel > h3,
      .classic-spellbook > header,
      .classic-story-box > span,
      .classic-death-saves > span,
      .classic-private-notes > header
    ) {
    min-height: 42px;
    margin: 0;
    padding: 11px 13px;
    color: var(--v4-gold-soft);
    font: 800 0.78rem/1.25 var(--v4-font);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #ead8b8;
  }
  html[data-build="5"] body .classic-story-box {
    padding: 0;
  }
  html[data-build="5"] body .classic-story-box p {
    margin: 0;
    padding: 12px 13px;
  }
  html[data-build="5"] body .classic-spellbook {
    padding: 0;
  }
  html[data-build="5"] body .classic-spellbook > :not(header) {
    margin-inline: 0;
    padding-inline: 14px;
  }
  html[data-build="5"] body .quest-builder-preview {
    width: 100%;
    min-width: 560px;
    min-height: 0;
    aspect-ratio: 4 / 3;
    touch-action: none;
  }
  html[data-build="5"] body .quest-builder-hint {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
  }
  html[data-build="5"] body .analytics-filter-bar {
    flex-wrap: nowrap;
    align-items: end;
  }
  html[data-build="5"] body .analytics-filter-fields {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: end;
  }
  html[data-build="5"] body .analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
  html[data-build="5"] body .analytics-kpi-grid > article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 14px;
    padding: 17px 18px;
    border: 1px solid rgba(126, 180, 194, 0.16);
    border-radius: 14px;
    background: #ead8b8;
  }
  html[data-build="5"] body .analytics-kpi-grid > article > b {
    grid-row: 1 / 3;
    grid-column: 2;
    align-self: center;
  }
  html[data-build="5"] body .master-directory-card {
    grid-template-columns: 56px minmax(0, 1fr) auto auto;
    padding: 12px;
  }
  @media (max-width: 1120px) {
    html[data-build="5"] body .analytics-filter-bar,
    html[data-build="5"] body .analytics-filter-fields {
      flex-wrap: wrap;
    }
    html[data-build="5"] body .shop-ledger-filters {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  @media (max-width: 760px) {
    html[data-build="5"] body .shop-ledger-filters,
    html[data-build="5"] body .analytics-kpi-grid {
      grid-template-columns: 1fr;
    }
    html[data-build="5"] body .analytics-filter-fields {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    html[data-build="5"] body .quest-builder-hint {
      grid-template-columns: auto 1fr;
    }
  }
}

@layer runtime {
  /* A single quest keeps card proportions instead of filling the entire board. */
  html[data-build="5"] body .quest-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
    align-items: start;
    justify-content: start;
  }
  html[data-build="5"] body .quest-grid > .quest-note {
    width: 100%;
    max-width: 560px;
    justify-self: start;
  }
  html[data-build="5"] body .quest-note.quest-layout-custom,
  html[data-build="5"] body .quest-builder-preview.quest-custom-sheet {
    aspect-ratio: var(--quest-sheet-ratio, 4 / 3);
    height: auto !important;
    min-height: 0 !important;
  }
  html[data-build="5"] body .quest-note.quest-layout-custom .quest-region {
    box-sizing: border-box;
    max-width: none;
    max-height: none;
    padding: clamp(3px, 0.8cqw, 7px);
    container-type: inline-size;
    overscroll-behavior: contain;
  }
  html[data-build="5"]
    body
    .quest-note.quest-layout-custom
    :is(h3, p, b, span) {
    overflow-wrap: anywhere;
  }
  html[data-build="5"] body .quest-note.quest-layout-custom h3 {
    font-size: clamp(0.78rem, 5.2cqw, 1.25rem);
    line-height: 1.15;
  }
  html[data-build="5"]
    body
    .quest-note.quest-layout-custom
    :is(p, .quest-level, .quest-assigned, .quest-reward) {
    font-size: clamp(0.66rem, 3.7cqw, 0.9rem);
    line-height: 1.28;
  }
  html[data-build="5"]
    body
    .quest-note.quest-layout-custom
    :is(.quest-assigned, .quest-reward) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: clamp(4px, 1.2cqw, 9px);
  }
  html[data-build="5"] body .quest-note.quest-layout-custom .quest-description {
    height: 100%;
    min-height: 0;
  }
  html[data-build="5"]
    body
    .quest-note.quest-layout-custom
    .quest-description
    p {
    margin: 0;
  }
  html[data-build="5"] body .quest-note.quest-layout-custom .quest-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
    gap: 4px;
    height: 100%;
    padding: 0;
    align-content: center;
  }
  html[data-build="5"]
    body
    .quest-note.quest-layout-custom
    .quest-actions
    button {
    min-width: 0;
    min-height: 28px;
    padding: 5px 7px;
    font-size: clamp(0.62rem, 3.5cqw, 0.78rem);
    line-height: 1.1;
  }
  @media (max-width: 760px) {
    html[data-build="5"] body .quest-grid {
      grid-template-columns: minmax(0, 1fr);
    }
    html[data-build="5"] body .quest-grid > .quest-note {
      max-width: none;
    }
  }
}

@layer runtime {
  /* The portrait, identity and level are one responsive header, including
     the narrower sheet column beside an open character chat. */
  html[data-build="5"] body .classic-character-sheet {
    container-type: inline-size;
  }
  html[data-build="5"] body .classic-sheet-hero {
    grid-template-columns: clamp(78px, 18cqw, 132px) minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(10px, 2cqw, 20px);
  }
  html[data-build="5"] body .classic-sheet-hero > img {
    width: 100%;
    height: auto;
    max-height: 164px;
    aspect-ratio: 4 / 5;
  }
  html[data-build="5"] body .classic-sheet-name {
    min-width: 0;
  }
  html[data-build="5"] body .classic-sheet-name :is(h2, p) {
    overflow-wrap: anywhere;
  }
  @container (max-width: 520px) {
    html[data-build="5"] body .classic-sheet-hero {
      grid-template-columns: 64px minmax(0, 1fr) 52px;
      min-height: 104px;
      padding: 12px;
    }
    html[data-build="5"] body .classic-sheet-hero > img {
      width: 64px;
      height: 80px;
    }
    html[data-build="5"] body .classic-level-seal {
      position: static;
      width: 52px;
      height: 52px;
    }
    html[data-build="5"] body .classic-sheet-name h2 {
      font-size: clamp(1.15rem, 6cqw, 1.55rem);
    }
    html[data-build="5"] body .classic-sheet-name :is(span, p) {
      font-size: 0.72rem;
    }
  }
}

@layer runtime {
  html[data-build="5"] body .classic-feature-row {
    text-transform: none;
    letter-spacing: normal;
  }
  html[data-build="5"] body .classic-ability-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name value" "save value";
    gap: 3px 8px;
    align-items: center;
    padding: 8px 9px;
    text-decoration: none;
  }
  html[data-build="5"] body .classic-ability-card .ability-name {
    grid-area: name;
    font-size: 0.78rem;
    font-weight: 800;
  }
  html[data-build="5"] body .classic-ability-card .ability-value {
    display: grid;
    grid-area: value;
    grid-template-columns: auto auto;
    gap: 6px;
    align-items: baseline;
  }
  html[data-build="5"] body .classic-ability-card .ability-value strong {
    font-size: 1.35rem;
  }
  html[data-build="5"] body .classic-ability-card .ability-save {
    display: flex;
    grid-area: save;
    gap: 5px;
    align-items: baseline;
    min-width: 0;
  }
  html[data-build="5"] body .classic-ability-card .ability-save small {
    overflow: hidden;
    font-size: 0.65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html[data-build="5"] body .character-hp-resource {
    grid-column: span 2;
  }
  html[data-build="5"] body .character-hp-controls {
    display: grid;
    grid-template-columns: minmax(76px, 1fr) auto minmax(76px, 1fr);
    flex-wrap: nowrap;
    gap: 7px;
    align-items: end;
  }
  html[data-build="5"] body .character-hp-controls label {
    display: grid;
    gap: 2px;
    min-width: 0;
  }
  html[data-build="5"] body .character-hp-controls label span {
    color: var(--v4-muted);
    font-size: 0.62rem;
  }
  html[data-build="5"] body .character-hp-controls input {
    width: 100%;
    min-width: 0;
    height: 34px;
    text-align: center;
  }
  html[data-build="5"] body .character-hp-controls label b {
    display: grid;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(126, 180, 194, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
  }
  html[data-build="5"] body .classic-armor-loadout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 14px;
    align-items: center;
    margin: 12px;
    padding: 12px;
    border: 1px solid rgba(80, 209, 196, 0.24);
    border-radius: 12px;
    background: #ead8b8;
  }
  html[data-build="5"] body .classic-armor-loadout > div {
    display: grid;
    place-items: center;
  }
  html[data-build="5"] body .classic-armor-loadout > div span,
  html[data-build="5"] body .classic-armor-loadout dt {
    color: var(--v4-muted);
    font-size: 0.64rem;
  }
  html[data-build="5"] body .classic-armor-loadout > div strong {
    color: var(--v4-gold-soft);
    font-size: 2rem;
  }
  html[data-build="5"] body .classic-armor-loadout dl {
    display: grid;
    gap: 5px;
    margin: 0;
  }
  html[data-build="5"] body .classic-armor-loadout dl > div {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 8px;
  }
  html[data-build="5"] body .classic-armor-loadout dd {
    margin: 0;
    font-weight: 750;
  }
  html[data-build="5"] body .classic-armor-loadout > small {
    grid-column: 1 / -1;
  }
  html[data-build="5"] body .classic-resource-deck {
    margin: 0 14px 14px;
    overflow: hidden;
    border: 1px solid rgba(126, 180, 194, 0.16);
    border-radius: 12px;
    background: #ead8b8;
  }
  html[data-build="5"] body .classic-resource-deck > header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-bottom: 1px solid rgba(126, 180, 194, 0.14);
    background: #ead8b8;
  }
  html[data-build="5"] body .classic-resource-deck > header div {
    display: grid;
    gap: 2px;
  }
  html[data-build="5"] body .classic-resource-deck > header :is(span, small) {
    color: var(--v4-muted);
    font-size: 0.67rem;
  }
  html[data-build="5"] body .classic-resource-deck > header h3,
  html[data-build="5"] body .classic-magic-section h4 {
    margin: 0;
    color: var(--v4-gold-soft);
    font-size: 0.86rem;
  }
  html[data-build="5"] body .classic-resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
    padding: 12px;
  }
  html[data-build="5"] body .classic-resource-card {
    display: grid;
    gap: 9px;
    padding: 11px;
    border: 1px solid rgba(126, 180, 194, 0.13);
    border-radius: 10px;
    background: #ead8b8;
  }
  html[data-build="5"] body .classic-resource-card > div,
  html[data-build="5"] body .classic-resource-card > button {
    display: grid;
    gap: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
  }
  html[data-build="5"] body .classic-resource-card label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 62px auto;
    gap: 7px;
    align-items: center;
  }
  html[data-build="5"] body .classic-resource-card input {
    width: 62px;
    height: 34px;
    text-align: center;
  }
  html[data-build="5"] body .classic-resource-card :is(em, .resource-at-will) {
    color: var(--v4-muted);
    font-size: 0.66rem;
    font-style: normal;
  }
  html[data-build="5"] body .classic-magic-section {
    display: grid;
    gap: 8px;
    padding: 13px 14px;
    border-top: 1px solid rgba(126, 180, 194, 0.12);
  }
  html[data-build="5"] body .classic-spell-level {
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid rgba(126, 180, 194, 0.12);
    border-radius: 10px;
    background: #ead8b8;
  }
  html[data-build="5"] body .classic-spell-level > header {
    display: flex;
    justify-content: space-between;
  }
  html[data-build="5"] body .builder-rule-richtext {
    color: #dbe8ec;
    line-height: 1.62;
  }
  html[data-build="5"] body .builder-rule-richtext :is(h2, h3, h4, strong) {
    color: #f3e5c8;
  }
  html[data-build="5"] body .builder-rule-richtext :is(p, ul, ol, table) {
    margin: 0 0 12px;
  }
  html[data-build="5"] body .builder-rule-richtext table {
    display: block;
    max-width: 100%;
    overflow: auto;
  }
  @container (max-width: 520px) {
    html[data-build="5"] body .character-hp-resource {
      grid-column: 1 / -1;
    }
    html[data-build="5"] body .classic-armor-loadout {
      grid-template-columns: 62px minmax(0, 1fr);
    }
    html[data-build="5"] body .classic-resource-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  }
}

/* Character Studio v0.5.0-1137: the old character creator/sheet is fully replaced
   by the isolated engine and UI imported from the second archive. */
.character-studio-screen {
  padding: 0 !important;
  overflow: hidden;
}
.character-studio-host {
  width: 100%;
  height: calc(100dvh - 118px);
  min-height: 720px;
  border-radius: 18px;
  overflow: hidden;
  background: #dbe3e8;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
}
.character-studio-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #dbe3e8;
}
@media (max-width: 780px) {
  .character-studio-host {
    height: calc(100dvh - 132px);
    min-height: 620px;
    border-radius: 0;
  }
}

/* v4.7.2 games billing: a compact, closed-by-default payment drawer. */
html[data-build="5"] .billing-player-panel.billing-collapsible{display:block!important;padding:0!important;overflow:visible!important}
html[data-build="5"] .billing-player-panel.billing-collapsible>summary{
 display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;cursor:pointer!important;
 list-style:none!important;padding:10px 14px!important;border-radius:inherit!important;background:#ead8b8 url('/assets/ui/paper-grain.svg') center/cover!important;
 color:#30281f!important;
}
html[data-build="5"] .billing-player-panel.billing-collapsible>summary::-webkit-details-marker{display:none}
html[data-build="5"] .billing-summary-copy{display:flex!important;align-items:baseline!important;gap:10px!important;min-width:0!important;flex-wrap:wrap!important}
html[data-build="5"] .billing-summary-copy :is(small,strong,em){color:#30281f!important;font-style:normal!important;min-width:0!important}
html[data-build="5"] .billing-summary-copy small{font-size:.72em!important}
html[data-build="5"] .billing-summary-copy strong{font-size:.92em!important}
html[data-build="5"] .billing-summary-copy em{font-size:.7em!important;color:#665746!important}
html[data-build="5"] .billing-summary-arrow{flex:none!important;font-size:18px!important;transition:transform .15s ease!important}
html[data-build="5"] .billing-player-panel.billing-collapsible[open] .billing-summary-arrow{transform:rotate(180deg)!important}
html[data-build="5"] .billing-player-panel .billing-panel-body{display:grid!important;gap:20px!important;padding:16px 18px 20px!important}
@media(max-width:700px){html[data-build="5"] .billing-summary-copy{display:grid!important;gap:2px!important}}

@layer runtime {
  html[data-build="5"] body .quest-board-frame.quest-board-modular {
    overflow: hidden;
    border: none;
    border-radius: 24px;
    background: transparent;
    box-shadow: none;
  }
  html[data-build="5"] body .quest-board-frame.quest-board-modular > .quest-board-top,
  html[data-build="5"] body .quest-board-frame.quest-board-modular > .quest-board-bottom {
    display: block;
    flex: 0 0 auto;
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }
  html[data-build="5"] body .quest-board-frame.quest-board-modular > .quest-board-top {
    min-height: var(--quest-board-top-height, 220px);
    background-image: var(--quest-board-top-image);
    background-position: var(--quest-board-top-position, center top);
  }
  html[data-build="5"] body .quest-board-frame.quest-board-modular > .quest-board-middle {
    min-height: var(--quest-board-middle-min, 220px);
    padding: var(--quest-board-inner-padding, 30px);
    background-image: var(--quest-board-middle-image);
    background-position: center top;
    background-size: 100% auto;
    background-repeat: repeat-y;
  }
  html[data-build="5"] body .quest-board-frame.quest-board-modular > .quest-board-bottom {
    min-height: var(--quest-board-bottom-height, 180px);
    background-image: var(--quest-board-bottom-image);
    background-position: var(--quest-board-bottom-position, center bottom);
  }
  html[data-build="5"] body .quest-board-goals,
  html[data-build="5"] body .quest-board-filters,
  html[data-build="5"] body .board-empty {
    border-radius: 16px;
    background: rgba(255, 247, 231, 0.66);
    backdrop-filter: blur(1px);
    box-shadow: 0 10px 24px rgba(45, 26, 16, 0.08);
  }
  html[data-build="5"] body .quest-board-goals,
  html[data-build="5"] body .board-empty {
    padding: 16px;
  }
  html[data-build="5"] body .board-empty {
    color: #4b3a27;
    border: 1px dashed rgba(110, 79, 45, 0.35);
    text-align: center;
  }
  html[data-build="5"] body .quest-board-style-panel {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
    padding: 18px;
  }
  html[data-build="5"] body .quest-board-style-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
  }
  html[data-build="5"] body .quest-board-style-head > div {
    display: grid;
    gap: 4px;
  }
  html[data-build="5"] body .quest-board-style-head span {
    color: var(--v4-gold);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  html[data-build="5"] body .quest-board-style-head p {
    margin: 0;
  }
  html[data-build="5"] body .quest-board-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
  }
  html[data-build="5"] body .quest-board-style-card {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 10px;
    text-align: left;
    border: 1px solid rgba(126, 180, 194, 0.18);
    border-radius: 14px;
    background: #ead8b8;
    color: var(--v4-text);
  }
  html[data-build="5"] body .quest-board-style-card.active {
    border-color: rgba(80, 209, 196, 0.55);
    box-shadow: 0 0 0 2px rgba(80, 209, 196, 0.08);
  }
  html[data-build="5"] body .quest-board-style-card > img {
    width: 100%;
    aspect-ratio: 1086 / 1448;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(0,0,0,0.04);
  }
  html[data-build="5"] body .quest-board-style-card > span {
    display: grid;
    gap: 4px;
  }
  html[data-build="5"] body .quest-board-style-card > span > small,
  html[data-build="5"] body .quest-board-style-card > em {
    color: var(--v4-muted);
    font-style: normal;
  }
  html[data-build="5"] body .quest-board-style-card > em {
    font-weight: 700;
  }
  html[data-build="5"] body .quest-template-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  html[data-build="5"] body .quest-template-row > i {
    display: block;
    flex: 0 0 44px;
    width: 44px;
    height: 54px;
    border-radius: 7px;
  }
  html[data-build="5"] body .quest-template-row > span {
    display: grid;
    gap: 3px;
    min-width: 0;
    flex: 1 1 auto;
  }
  html[data-build="5"] body .quest-template-row > em {
    color: var(--v4-muted);
    font-style: normal;
  }
  html[data-build="5"] body .quest-note.quest-illustrated-sheet,
  html[data-build="5"] body .quest-builder-preview.quest-illustrated-sheet {
    background: rgba(255, 249, 238, 0.88) !important;
    border-color: rgba(140, 106, 67, 0.22);
  }
  @media (max-width: 980px) {
    html[data-build="5"] body .quest-board-style-head {
      display: grid;
    }
    html[data-build="5"] body .quest-board-frame.quest-board-modular > .quest-board-middle {
      padding: 18px;
    }
  }
}

@layer final-ui {
  /* v4.8.3 must win over the older quest-grid !important rules in this same layer. */
  html[data-build="5"] body .quest-board-frame.quest-board-modular .quest-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    grid-auto-flow: dense !important;
  }
  html[data-build="5"] body .quest-grid > .quest-note.quest-paper-modular {
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
  }
  html[data-build="5"] body .quest-grid > .quest-paper-small { grid-column: span 4 !important; }
  html[data-build="5"] body .quest-grid > .quest-paper-medium { grid-column: span 5 !important; }
  html[data-build="5"] body .quest-grid > .quest-paper-large { grid-column: span 7 !important; }
  @media (max-width: 1200px) {
    html[data-build="5"] body .quest-grid > :is(.quest-paper-small,.quest-paper-medium) { grid-column: span 6 !important; }
    html[data-build="5"] body .quest-grid > .quest-paper-large { grid-column: span 12 !important; }
  }
  @media (max-width: 760px) {
    html[data-build="5"] body .quest-board-frame.quest-board-modular .quest-grid { grid-template-columns: minmax(0,1fr) !important; }
    html[data-build="5"] body .quest-grid > :is(.quest-paper-small,.quest-paper-medium,.quest-paper-large) { grid-column: 1 !important; }
  }
}


/* assets/ui/club-parchment.css */
@font-face{font-family:Neucha;src:url('/assets/fonts/neucha/Neucha-Regular.ttf') format('truetype');font-style:normal;font-weight:400 900;font-display:swap}
/* 9 Lives / Character Studio — one light parchment visual system.
   This unlayered sheet intentionally wins over the older layered themes. */
html[data-build="5"]{
  color-scheme:light!important;
  --v4-bg:#eadfc7;--v4-bg-soft:#f4ead6;--v4-surface:#fff7e7;--v4-surface-2:#f0e1c7;
  --v4-paper:#fff9ec;--v4-paper-2:#ead8b8;--v4-ink:#30281f;--v4-text:#30281f;--v4-muted:#665746;
  --v4-gold:#dacab9;--v4-gold-soft:#d9cbba;--v4-purple:#c0c8d3;--v4-green:#315f50;--v4-red:#d8bdbb;
  --v4-border:#ad916a;--v4-line:#cdbb9d;--v4-shadow:0 14px 34px rgba(85,62,35,.14);
  --v4-radius-sm:7px;--v4-radius:10px;--v4-radius-lg:16px;
  --v4-sidebar:clamp(132px,10vw,172px);--v4-hud:90px;--v4-content:1680px;
  --v4-font:'Neucha','Segoe Print',cursive;--v4-display:'Neucha','Segoe Print',cursive;
  font-size:24px!important;background-color:#efd9d1!important;background-image:var(--studio-image-app,url('/assets/ui/parchment-world.svg'))!important;background-position:center!important;background-size:cover!important;background-attachment:fixed!important;
}
html[data-build="5"] body{
  min-height:100dvh;color:#30281f!important;background-color:#efd9d1!important;background-image:var(--studio-image-app,url('/assets/ui/parchment-world.svg'))!important;background-position:center!important;background-size:cover!important;background-attachment:fixed!important;
  font-size:var(--studio-base-font,24px)!important;line-height:var(--studio-line-height,1.5)!important;
}
html[data-build="5"] body,html[data-build="5"] button,html[data-build="5"] input,html[data-build="5"] select,html[data-build="5"] textarea{font-family:var(--club-user-font,var(--studio-body-font,'Neucha','Segoe Print',cursive))}
html[data-build="5"] :is(h1,h2,h3,.scene-title,.location-plaque h1,.dialog-head h2){font-family:var(--club-user-font,var(--studio-heading-font,'Neucha','Segoe Print',cursive))}
html[data-build="5"] ::selection{color:#30281f;background:#d8e7d6}
html[data-build="5"] ::-webkit-scrollbar-track{background:#eadfc7}
html[data-build="5"] ::-webkit-scrollbar-thumb{border:2px solid transparent;background:#efd9d1;background-clip:padding-box}
html[data-build="5"] :focus-visible{outline:3px solid #315f50!important;outline-offset:3px}

/* Artwork and backgrounds are visible again. */
html[data-build="5"] img:not([data-content-image]){display:block!important}
html[data-build="5"] .world-bg{opacity:.42!important;background-image:url('/assets/ui/guild-map-light.svg')!important;background-position:center!important;background-size:cover!important;filter:none!important}
html[data-build="5"] .world-bg::after{background:linear-gradient(90deg,rgba(244,235,216,.92),rgba(255,250,239,.72),rgba(239,225,198,.88))!important}

/* Shell */
html[data-build="5"] .game-shell{grid-template-columns:var(--v4-sidebar) minmax(0,1fr)}
html[data-build="5"] .side-rail{
  border-right:1px solid #a98b61!important;background-color:#efd9d1!important;background-image:var(--studio-image-sidebar,url('/assets/ui/paper-grain.svg'))!important;background-position:center!important;background-size:cover!important;
  box-shadow:8px 0 28px rgba(82,62,38,.1)!important
}
html[data-build="5"] .brand-plaque{height:112px;background:rgba(255,249,236,.52)!important;border:1px solid #c8b18c!important;border-radius:10px!important}
html[data-build="5"] .brand-plaque img{display:block!important;max-height:92px!important;filter:none!important}
html[data-build="5"] .side-nav{gap:9px}
html[data-build="5"] .nav-button{min-height:86px!important;color:#594c3f!important;border-radius:9px!important}
html[data-build="5"] .nav-button:hover{color:#263f34!important;background:#f7eedc!important}
html[data-build="5"] .nav-button.active{color:#24493b!important;border:1px solid #8da594!important;background:#e5eadc!important;box-shadow:inset 5px 0 #315f50!important}
html[data-build="5"] .nav-icon{display:block!important;width:38px!important;height:38px!important;filter:sepia(.18) saturate(.9)!important}
html[data-build="5"] .nav-button>span:not(.nav-badge),html[data-build="5"] .rail-mini span{font-size:.8rem!important;line-height:1.22!important}
html[data-build="5"] .rail-mini{color:#665746!important}
html[data-build="5"] .hud-bar{
  min-height:var(--v4-hud)!important;border-bottom:1px solid #ab8e67!important;background-color:#efd9d1!important;background-image:var(--studio-image-hud,url('/assets/ui/paper-grain.svg'))!important;background-position:center!important;background-size:cover!important;
  box-shadow:0 7px 20px rgba(77,57,35,.09)!important;backdrop-filter:none!important
}
html[data-build="5"] .resource-chip{padding:10px 14px!important;color:#5f5143!important;border:1px solid #c4ac86!important;background:#fff8e9!important;font-size:.8rem!important}
html[data-build="5"] .resource-chip b,html[data-build="5"] .hud-user-text strong{color:#2f281f!important}
html[data-build="5"] .hud-user-text span{color:#665746!important;font-size:.76rem!important}
html[data-build="5"] .hud-avatar{width:52px!important;height:52px!important;border-color:#8b5f2f!important}
html[data-build="5"] .stage-content{padding:clamp(18px,2.2vw,36px)!important}

/* Global readable surfaces — light paper, high contrast. */
html[data-build="5"] :is(.panel,.parchment,.analytics-card,.design-studio-panel,.notification-panel,.master-directory-card,.feedback-card,.goal-card,.archive-contract,.billing-card,.subscription-card,.combat-player-tools,.combat-command-deck,.quest-builder-hint,.schedule-week-group,.schedule-player-group,.game-row,.signed-contracts,.campaign-board,.archive-chest,.shop-panel,.merchant-panel,.shop-cart,.shop-book,.shop-book-ui,.tavern-ledger,.tavern-thread-column,.chat-sidebar,.chat-thread,.dialog-section){
  color:#30281f!important;border-color:#c2a67e!important;background-color:#efd9d1!important;background-image:var(--studio-image-panel,url('/assets/ui/paper-grain.svg'))!important;background-position:center!important;background-size:cover!important;box-shadow:0 6px 18px rgba(83,61,35,.08)!important
}
html[data-build="5"] :is(.panel,.analytics-card,.notification-panel,.master-directory-card,.feedback-card,.goal-card,.archive-contract,.game-row){border-radius:10px!important}
html[data-build="5"] :is(.panel,.analytics-card,.master-directory-card,.feedback-card,.goal-card,.game-row) :is(h1,h2,h3,h4,strong,b){color:#2f281f!important}
html[data-build="5"] :is(.panel,.analytics-card,.master-directory-card,.feedback-card,.goal-card,.game-row) :is(p,small,.muted,.meta,.subtitle,.subline,dt){color:#665746!important}
html[data-build="5"] .eyebrow,html[data-build="5"] .physical-label{color:#315f50!important;font-weight:850!important;letter-spacing:.1em!important}
html[data-build="5"] .badge,html[data-build="5"] .status-pill{color:#3d3329!important;border-color:#baa17b!important;background:#efe1c6!important}

/* Headers use actual map artwork instead of dark gradients. */
html[data-build="5"] :is(.scene-hero,.location-plaque){
  position:relative;overflow:hidden;color:#2d271f!important;border:1px solid #a78a61!important;
  background:#ead7b6 url('/assets/ui/guild-map-light.svg') center/cover!important;box-shadow:var(--v4-shadow)!important
}
html[data-build="5"] :is(.scene-hero,.location-plaque)::after{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(90deg,rgba(255,248,232,.94),rgba(255,248,232,.72) 57%,rgba(245,232,206,.4));pointer-events:none}
html[data-build="5"] :is(.scene-hero,.location-plaque)>*{position:relative;z-index:1}
html[data-build="5"] :is(.scene-hero,.location-plaque) :is(h1,h2,h3,strong){color:#2f281f!important}
html[data-build="5"] :is(.scene-hero,.location-plaque) :is(p,span,small){color:#5b4d3e!important}

/* Controls */
html[data-build="5"] :is(input,select,textarea){min-height:48px!important;color:#30281f!important;background:#fffdf7!important;border:1px solid #aa906c!important;border-radius:7px!important;box-shadow:inset 0 1px 3px rgba(85,65,38,.08)!important}
html[data-build="5"] textarea{min-height:110px!important}
html[data-build="5"] :is(input,textarea)::placeholder{color:#7e6e5b!important;opacity:1}
html[data-build="5"] :is(.primary-button,.soft-button,.ghost-button,.danger-button,.link-button,button){font-size:var(--studio-button-font,21px);line-height:1.25}
html[data-build="5"] :is(.primary-button,.soft-button,.ghost-button,.danger-button){min-height:48px!important;padding:9px 14px!important;border-radius:7px!important;white-space:normal!important;overflow-wrap:anywhere!important}
html[data-build="5"] .primary-button{color:#30281f!important;border:1px solid #78927f!important;background:#dce8d9!important;box-shadow:inset 0 1px rgba(255,255,255,.25)!important}
html[data-build="5"] .primary-button:hover{background:#d2e2d1!important}
html[data-build="5"] .soft-button,html[data-build="5"] .ghost-button{color:#3a3027!important;border:1px solid #a98e67!important;background:#f0dfc1!important}
html[data-build="5"] .danger-button{color:#30281f!important;border:1px solid #b7776e!important;background:#efd9d1!important}
html[data-build="5"] .link-button{color:#315f50!important;background:transparent!important;text-decoration:underline;text-underline-offset:3px}
html[data-build="5"] button:disabled{opacity:.48!important}

/* Dialogs */
html[data-build="5"] dialog,html[data-build="5"] .dialog{color:#30281f!important;border:1px solid #9f835d!important;background-color:#efd9d1!important;background-image:var(--studio-image-dialog,url('/assets/ui/parchment-world.svg'))!important;background-position:center!important;background-size:cover!important;box-shadow:0 26px 70px rgba(63,46,28,.28)!important}
html[data-build="5"] dialog::backdrop,html[data-build="5"] .dialog::backdrop{background:rgba(239,217,209,0.34)!important;backdrop-filter:blur(2px)}
html[data-build="5"] .dialog-head{color:#30281f!important;border-bottom:1px solid #c2a67e!important;background:#ead7b6 url('/assets/ui/guild-map-light.svg') center/cover!important}
html[data-build="5"] .dialog-head :is(h1,h2,h3,strong){color:#2f281f!important}
html[data-build="5"] .dialog-head :is(p,small,span){color:#665746!important}

/* Chat — notebook paper, no black wells. */
html[data-build="5"] :is(.messages,.chat-messages){background-color:#efd9d1!important;background-image:var(--studio-image-chat,url('/assets/ui/chat-parchment.svg'))!important;background-position:top center!important;background-size:cover!important}
html[data-build="5"] .message-bubble,html[data-build="5"] .message.me .message-bubble{color:#30281f!important;border:1px solid #c2aa84!important;background:#fff9eb!important;box-shadow:0 3px 8px rgba(82,60,33,.07)!important}
html[data-build="5"] .message.me .message-bubble{background:#e5eddc!important;border-color:#9eaf93!important}
html[data-build="5"] .message-bubble :is(p,b,strong,span){color:#30281f!important}
html[data-build="5"] .message-bubble :is(time,small){color:#6a5a49!important}
html[data-build="5"] .chat-compose{border-top:1px solid #c4aa82!important;background:#efe1c6!important}
html[data-build="5"] .chat-list-item{color:#3b3128!important;background:#fff8e8!important;border-color:#c5ad87!important}
html[data-build="5"] .chat-list-item.active{border-left-color:#315f50!important;background:#e5eddc!important}

/* Shop and quest surfaces keep their illustrations but receive a light veil for text contrast. */
html[data-build="5"] :is(.shop-screen,.shopkeeper-stage,.shop-ledger,.merchant-stage){color:#30281f!important;background-color:#efd9d1!important}
html[data-build="5"] .shop-screen{background-image:linear-gradient(rgba(250,242,225,.9),rgba(250,242,225,.9)),url('/assets/bg/shop-owner.webp')!important;background-position:center!important;background-size:cover!important;background-attachment:fixed!important}
html[data-build="5"] :is(.quest-board,.quest-board-frame,.campaign-board){color:#30281f!important;background-color:#efd9d1!important}

/* Tables */
html[data-build="5"] table,html[data-build="5"] .analytics-table{color:#30281f!important;border-color:#c3a77f!important;background:#fff9eb!important}
html[data-build="5"] :is(th,.analytics-table-head){color:#345344!important;background:#e8e7cf!important}
html[data-build="5"] td{border-color:#dac7aa!important}

/* Character workspace: iframe fills the work area; chat is the only side panel. */
html[data-build="5"] body[data-screen="characters"] .stage-content{width:100%!important;max-width:none!important;height:calc(100dvh - var(--v4-hud));padding:0!important;margin:0!important;overflow:hidden}
html[data-build="5"] .characters-screen,html[data-build="5"] .character-studio-screen{height:100%;min-height:0;padding:0!important;margin:0!important}
html[data-build="5"] .character-studio-workspace{position:relative;display:grid;grid-template-columns:minmax(0,1fr) clamp(360px,28vw,500px);width:100%;height:100%;min-width:0;min-height:0;background:#f2e6cf!important;overflow:hidden}
html[data-build="5"] .character-studio-workspace.chat-collapsed{grid-template-columns:minmax(0,1fr) 0}
html[data-build="5"] .character-studio-host{min-width:0;min-height:0;height:100%;padding:0!important;border:0!important;border-radius:0!important;background:#f2e6cf!important;box-shadow:none!important;overflow:hidden}
html[data-build="5"] .character-studio-frame{display:block;width:100%;height:100%;min-height:0;border:0;background:#f2e6cf}
html[data-build="5"] .character-studio-workspace .character-case-chat{display:flex;flex-direction:column;width:auto;min-width:0;height:100%;padding:0!important;border:0!important;border-left:1px solid #b69870!important;border-radius:0!important;background-color:#efd9d1!important;background-image:var(--studio-image-chat,url('/assets/ui/chat-parchment.svg'))!important;background-position:top center!important;background-size:cover!important;box-shadow:none!important;overflow:hidden;opacity:1;transition:width .2s ease,opacity .18s ease}
html[data-build="5"] .character-studio-workspace.chat-collapsed .character-case-chat{width:0;opacity:0;pointer-events:none}
html[data-build="5"] .character-studio-workspace .character-chat-label{flex:0 0 auto;margin:0!important;padding:14px 16px!important;border-bottom:1px solid #c3a67e!important;background:#e9d8b8!important}
html[data-build="5"] .character-studio-workspace .character-chat-label :is(b,strong){color:#2f281f!important}
html[data-build="5"] .character-studio-workspace .character-chat-label small{color:#665746!important}
html[data-build="5"] .character-studio-workspace .chat-window{min-height:0;height:100%!important;background:transparent!important}
html[data-build="5"] .character-chat-toggle{position:absolute;z-index:7;top:14px;right:clamp(340px,calc(28vw - 20px),480px);display:grid;place-items:center;gap:5px;width:48px;min-height:112px;padding:8px 5px;border:1px solid #9d805a!important;border-radius:9px 0 0 9px;color:#315f50!important;background:#eef1df!important;box-shadow:0 5px 15px rgba(66,49,29,.14);writing-mode:vertical-rl;cursor:pointer}
html[data-build="5"] .character-studio-workspace.chat-collapsed .character-chat-toggle{right:12px;border-radius:9px}
html[data-build="5"] .character-chat-toggle span{font-size:.68rem!important}

/* Schedule cards: actions ALWAYS participate in flow; container queries react to each card, not viewport. */
html[data-build="5"] .schedule-week-group>summary,html[data-build="5"] .schedule-player-group>summary{color:#3a3026!important;background:#ead9bb!important}
html[data-build="5"] .schedule-week-group>summary small{color:#665746!important}
html[data-build="5"] .schedule-player-group>summary b{color:#315f50!important;background:#e1eadc!important}
html[data-build="5"] .schedule-player-group>div{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,620px),1fr))!important;gap:12px!important;padding:12px!important}
html[data-build="5"] .game-row{container-type:inline-size;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto;gap:14px!important;align-items:stretch!important;min-width:0!important;min-height:0!important;padding:16px!important;overflow:hidden}
html[data-build="5"] .game-row-main{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;min-width:0!important}
html[data-build="5"] .game-primary{display:flex!important;flex-wrap:wrap!important;gap:7px!important;min-width:0!important}
html[data-build="5"] .game-primary time{width:100%!important;color:#2e271f!important;font-size:1rem!important;line-height:1.25!important}
html[data-build="5"] .game-primary :is(.levels,.seat-count,.queue-count){max-width:100%;padding:5px 8px!important;color:#574a3d!important;border:1px solid #c5ad87!important;background:#f0e2c9!important;font-size:.72rem!important;white-space:normal!important}
html[data-build="5"] .game-registration-state{flex:1 1 100%;width:auto!important;color:#315f50!important;font-size:.78rem!important;font-weight:800!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
html[data-build="5"] .game-details{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important;min-width:0!important;margin:0!important}
html[data-build="5"] .game-detail{min-width:0!important;min-height:0!important;padding:9px 10px!important;border:1px solid #dbc7a7!important;border-left:1px solid #dbc7a7!important;border-radius:7px;background:#fffaf0!important}
html[data-build="5"] .game-detail dt{color:#715f4d!important;font-size:.68rem!important}
html[data-build="5"] .game-detail dd{margin:4px 0 0!important;color:#30281f!important;font-size:.82rem!important;line-height:1.35!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important}
html[data-build="5"] .game-detail .link-button{max-width:100%;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;text-align:left}
html[data-build="5"] .game-row-actions{position:static!important;inset:auto!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px!important;width:100%!important;min-width:0!important;padding-top:12px!important;border-top:1px solid #d1bc9a!important;align-items:stretch!important;justify-content:stretch!important}
html[data-build="5"] .game-row-actions button{position:static!important;width:100%!important;min-width:0!important;max-width:none!important;min-height:50px!important;padding:9px 10px!important;font-size:.78rem!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:anywhere!important}
@container (min-width:760px){html[data-build="5"] .game-row-main{grid-template-columns:minmax(220px,.72fr) minmax(0,1.28fr)!important;align-items:start!important}}
@container (max-width:520px){html[data-build="5"] .game-details{grid-template-columns:1fr!important}html[data-build="5"] .game-row-actions{grid-template-columns:1fr!important}}

/* Admin / operational density remains readable at the larger baseline. */
html[data-build="5"] :is(.analytics-filter-fields,.form-grid,.settings-grid,.admin-grid){gap:14px!important}
html[data-build="5"] :is(.analytics-kpi-grid,.master-directory-grid,.quest-grid){gap:16px!important}
html[data-build="5"] :is(.analytics-kpi-grid>article,.master-directory-card){min-height:92px!important}
html[data-build="5"] :is(.analytics-kpi-grid>article,.master-directory-card,.notification-row) :is(small,span,p){line-height:1.35!important}

/* Notifications keep their own density even inside a narrow chat/sidebar. */
html[data-build="5"] #app .notification-panel{container-type:inline-size;min-width:0;max-width:100%;padding:12px!important;overflow:visible;box-sizing:border-box}
html[data-build="5"] #app .notification-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;padding:0 0 7px;border-bottom:1px solid #c9af87}
html[data-build="5"] #app .notification-head h2{margin:0!important;padding:0!important;font-size:20px!important;line-height:1.2!important;letter-spacing:normal!important}
html[data-build="5"] #app .notification-count{display:grid;place-items:center;flex:0 0 auto;min-width:26px;height:26px;padding:1px 6px;border:1px solid #ad916a;border-radius:6px;background:#e9d8b7;color:#4b3a25;font-size:15px!important;line-height:1!important;box-sizing:border-box}
html[data-build="5"] #app .notification-list{display:grid;gap:0;min-width:0;border:0;background:none;box-shadow:none}
html[data-build="5"] #app .notification-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;align-items:center;min-width:0;margin:0;padding:10px 0;border:0;border-bottom:1px solid #c9af8770;background:none;box-shadow:none}
html[data-build="5"] #app .notification-row:first-child{padding-top:2px}
html[data-build="5"] #app .notification-row:last-child{border-bottom:0;padding-bottom:0}
html[data-build="5"] #app .notification-copy{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}
html[data-build="5"] #app .notification-copy strong{font-size:18px!important;line-height:1.25!important;font-weight:700;color:#30281f!important}
html[data-build="5"] #app .notification-copy p{display:block;margin:0!important;font-size:16px!important;line-height:1.4!important;color:#594733!important;white-space:pre-line;overflow-wrap:anywhere}
html[data-build="5"] #app .notification-actions{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap}
html[data-build="5"] #app .notification-actions button{position:static;min-height:40px!important;min-width:74px;max-width:100%;padding:6px 10px!important;font-size:16px!important;line-height:1.2!important;border-radius:6px!important;text-align:center;letter-spacing:normal!important;box-sizing:border-box}
@container(max-width:440px){
 html[data-build="5"] #app .notification-row{grid-template-columns:minmax(0,1fr);gap:8px;padding-block:11px}
 html[data-build="5"] #app .notification-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 html[data-build="5"] #app .notification-actions button{width:100%;min-width:0;min-height:44px!important}
}
@media(max-width:600px){
 html[data-build="5"] #app .notification-panel{padding:10px!important}
 html[data-build="5"] #app .notification-row{grid-template-columns:minmax(0,1fr)}
 html[data-build="5"] #app .notification-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 html[data-build="5"] #app .notification-actions button{width:100%;min-width:0;min-height:44px!important}
}

/* Prevent remaining legacy dark surface classes from punching black holes into the light theme. */
html[data-build="5"] :is(.classic-character-sheet,.character-dossier-stack,.character-sheet-stage,.character-full-inline,.builder-journey,.rpg-character-creator,.builder-equipment-choices,.builder-equipment-detail,.builder-spell-slot-list,.builder-spell-focused-detail,.builder-granted-spell-list button,.combat-toolbar,.combat-center,.combat-group,.combat-card,.combat-resource-card,.master-command-panel){color:#30281f!important;border-color:#c2a67e!important;background:#fff8e8!important}
/* Empty copy belongs on its parent's illustrated surface. Standalone panels keep their own art. */
html[data-build="5"] .empty-state:not(.panel):not(.parchment){color:inherit!important;background:transparent!important;box-shadow:none!important}
html[data-build="5"] :is(.classic-group-title,.classic-panel>h3,.classic-sheet-hero){color:#30281f!important;background:#ead8b9!important}

@media(max-width:1180px){
  html[data-build="5"]{--v4-sidebar:118px;font-size:24px!important}
  html[data-build="5"] .character-studio-workspace{grid-template-columns:minmax(0,1fr) 390px}
  html[data-build="5"] .character-chat-toggle{right:370px}
}
@media(max-width:920px){
  html[data-build="5"]{--v4-sidebar:92px;--v4-hud:82px;font-size:24px!important}
  html[data-build="5"] .brand-plaque{height:82px}
  html[data-build="5"] .nav-button{min-height:72px!important}
  html[data-build="5"] .character-studio-workspace{display:block;position:relative}
  html[data-build="5"] .character-studio-workspace .character-case-chat{position:absolute;z-index:6;top:0;right:0;bottom:0;width:min(440px,88vw);box-shadow:-14px 0 30px rgba(78,57,34,.18)!important}
  html[data-build="5"] .character-studio-workspace.chat-collapsed .character-case-chat{width:min(440px,88vw);transform:translateX(102%);opacity:1}
  html[data-build="5"] .character-chat-toggle,html[data-build="5"] .character-studio-workspace.chat-collapsed .character-chat-toggle{right:10px;top:10px;min-height:92px}
}
@media(max-width:680px){
  html[data-build="5"]{font-size:24px!important;--v4-sidebar:78px}
  html[data-build="5"] .hud-bar{padding:8px 10px!important}
  html[data-build="5"] .hud-user-text{display:none!important}
  html[data-build="5"] .nav-button>span:not(.nav-badge){font-size:.64rem!important}
  html[data-build="5"] .game-details{grid-template-columns:1fr!important}
  html[data-build="5"] .game-row-actions{grid-template-columns:1fr!important}
  html[data-build="5"] .schedule-player-group>div{grid-template-columns:1fr!important}
}

/* Remaining legacy workspaces that used hard-coded navy surfaces. */
html[data-build="5"] :is(
  .builder-equipment-choices,.builder-equipment-detail,.builder-spell-slot-list,.builder-spell-focused-detail,
  .builder-choice-control,.builder-rule-stage,.builder-choice-list-item,.builder-class-development,.builder-portrait-upload,
  .character-portrait-editor,.builder-final-metrics>span,.character-game-progression,.character-game-track,
  .builder-selection-block,.builder-class-allocation,.builder-spellbook,.builder-no-magic,.builder-final-card,.point-buy-grid>article,
  .workshop-tabs,.workshop-card>img,.actor-monogram,.room-placeholder,.actor-sheet-combat span,.actor-sheet-abilities span,
  .room-scene,.room-token,.room-game-choice,.auth-gate,.auth-tabs,.icon-button,.classic-sheet-toolbar,.classic-armor-loadout,
  .classic-resource-deck,.classic-resource-card,.classic-spell-level,.quest-sheet-library,.quest-layout-editor,.quest-builder-preview,
  .shop-book-ui,.admin-inventory-ledger,.shop-item,.ledger-item,.admin-inventory-row,.participant-row,.tavern-chat-desk
){color:#30281f!important;border-color:#c2a67e!important;background-color:#efd9d1!important;background-image:var(--studio-image-panel,url('/assets/ui/paper-grain.svg'))!important;background-position:center!important;background-size:cover!important;box-shadow:none!important}
html[data-build="5"] :is(.builder-choice-list-item.selected,.builder-option-card.selected,.builder-spell-card.selected,.workshop-tabs button.active,.auth-tabs button.active){color:#28483c!important;border-color:#78927f!important;background:#e0eadb!important}
html[data-build="5"] :is(.builder-option-card,.builder-spell-card,.picker-character,.master-character-pick,.quest-template-row){color:#30281f!important;border-color:#c4aa82!important;background:#fff8e8!important}
html[data-build="5"] :is(.builder-equipment-detail,.builder-spell-focused-detail) dl>div,html[data-build="5"] .builder-granted-spell-list button{color:#30281f!important;border-color:#d1bc9a!important;background:#f2e3c8!important}
html[data-build="5"] .rpg-character-creator>.builder-workspace,html[data-build="5"] .rpg-character-creator>.builder-actions{color:#30281f!important;border-color:#c2a67e!important;background:#f5e9d3!important}
html[data-build="5"] .auth-gate{background:#eadfc7 url('/assets/ui/parchment-world.svg') center/cover!important}
html[data-build="5"] .auth-gate :is(h1,h2,h3,p,label,strong,span,small){color:#30281f!important}
html[data-build="5"] .auth-tabs button{color:#4d4034!important;background:#f2e3c8!important}
html[data-build="5"] .toast{color:#30281f!important;border:1px solid #a98c66!important;background:#fff4dc!important;box-shadow:0 10px 30px rgba(68,49,28,.18)!important}
html[data-build="5"] .hud-avatar{background-color:#efd9d1!important}
html[data-build="5"] th{color:#345344!important;background:#e8e7cf!important}
html[data-build="5"] td{color:#30281f!important;background:#fffaf0!important}
html[data-build="5"] :is(input,select,textarea):disabled{color:#776653!important;background:#eee2cc!important}

html[data-build="5"] body[data-role="player"] :is(.scene-hero,.location-plaque){background-image:linear-gradient(rgba(249,241,224,.72),rgba(249,241,224,.72)),var(--studio-image-player,url('/assets/ui/guild-map-light.svg'))!important}
html[data-build="5"] body[data-role="admin"] :is(.scene-hero,.location-plaque){background-image:linear-gradient(rgba(249,241,224,.72),rgba(249,241,224,.72)),var(--studio-image-admin,url('/assets/ui/guild-map-light.svg'))!important}
html[data-build="5"] body[data-role="master"] :is(.scene-hero,.location-plaque){background-image:linear-gradient(rgba(249,241,224,.72),rgba(249,241,224,.72)),var(--studio-image-master,url('/assets/ui/guild-map-light.svg'))!important}
html[data-build="5"] .shop-screen{background-image:linear-gradient(rgba(250,242,225,.9),rgba(250,242,225,.9)),var(--studio-image-shop,url('/assets/bg/shop-owner.webp'))!important}
html[data-build="5"] :is(.quest-board,.quest-board-frame,.campaign-board){background-image:linear-gradient(rgba(247,238,220,.78),rgba(247,238,220,.78)),var(--studio-image-quest,url('/assets/ui/guild-map-light.svg'))!important;background-position:center!important;background-size:cover!important}

/* 2026-09 compact pass — loaded last and deliberately more specific than legacy body rules. */
html[data-build="5"] body :is(.location-plaque,.scene-hero){min-height:64px!important;padding:10px 14px!important;gap:10px!important;border-radius:8px!important;box-shadow:0 4px 12px rgba(83,61,35,.08)!important}
html[data-build="5"] body .location-plaque-copy{gap:5px!important}
html[data-build="5"] body :is(.location-plaque,.scene-hero) h1{margin:0!important;font-size:1.12rem!important;line-height:1.08!important}
html[data-build="5"] body :is(.location-plaque,.scene-hero) h2{margin:0!important;font-size:1rem!important;line-height:1.12!important}
html[data-build="5"] body :is(.location-plaque,.scene-hero) p{font-size:.72rem!important;line-height:1.3!important}
html[data-build="5"] body .scene-meta{gap:5px!important}
html[data-build="5"] body .scene-meta span{padding:3px 7px!important;font-size:.62rem!important;background:#f5ead6!important;color:#665746!important}
html[data-build="5"] body .location-plaque-actions{gap:6px!important}
html[data-build="5"] body .location-plaque-actions button{min-height:38px!important;padding:6px 10px!important;font-size:.7rem!important}
html[data-build="5"] body .stage-content{padding:14px!important}
html[data-build="5"] body .section-heading{gap:8px!important;margin-bottom:8px!important;min-height:0!important}
html[data-build="5"] body .section-heading h2{font-size:.98rem!important;line-height:1.15!important}
html[data-build="5"] body .physical-label{font-size:.72rem!important;line-height:1.2!important}
html[data-build="5"] body .dialog-head{min-height:0!important;padding:9px 12px!important}
html[data-build="5"] body .dialog-head h2{font-size:1rem!important;line-height:1.15!important}
html[data-build="5"] body .dialog-head :is(p,small,span){font-size:.68rem!important;line-height:1.3!important}

/* Compact every chat surface. */
html[data-build="5"] body :is(.tavern-chat-desk,.chat-window,.chat-sidebar,.chat-thread,.tavern-ledger-column,.tavern-thread-column){border-radius:7px!important}
html[data-build="5"] body .tavern-chat-desk{min-height:360px!important;gap:8px!important}
html[data-build="5"] body .chat-window-head{gap:7px!important;padding:8px 10px!important;min-height:0!important}
html[data-build="5"] body .chat-window-head :is(strong,b){font-size:.76rem!important;line-height:1.2!important}
html[data-build="5"] body .chat-context{font-size:.62rem!important;line-height:1.25!important}
html[data-build="5"] body .messages{min-height:160px!important;padding:9px!important}
html[data-build="5"] body .message{gap:5px!important;max-width:min(84%,620px)!important;margin:4px 0!important}
html[data-build="5"] body :is(.message-avatar,.message-avatar-spacer){flex-basis:24px!important;width:24px!important;height:24px!important}
html[data-build="5"] body .message-bubble{padding:6px 8px!important;border-radius:9px 9px 9px 3px!important;font-size:.68rem!important;line-height:1.35!important}
html[data-build="5"] body .message.me .message-bubble{border-radius:9px 9px 3px 9px!important}
html[data-build="5"] body .message-meta{margin-top:2px!important;font-size:.54rem!important}
html[data-build="5"] body .message-day{margin:7px!important;font-size:.58rem!important}
html[data-build="5"] body .chat-compose{grid-template-columns:auto auto minmax(0,1fr) auto!important;gap:5px!important;padding:7px!important}
html[data-build="5"] body .chat-compose textarea{min-height:36px!important;max-height:90px!important;padding:6px 8px!important;font-size:.68rem!important}
html[data-build="5"] body .chat-compose button{min-height:36px!important;padding:5px 8px!important;font-size:.65rem!important}
html[data-build="5"] body .chat-list-item{min-height:0!important;padding:7px 8px!important;gap:7px!important}
html[data-build="5"] body .chat-list-item :is(strong,b){font-size:.7rem!important}
html[data-build="5"] body .chat-list-item :is(span,small){font-size:.58rem!important;line-height:1.25!important}
html[data-build="5"] body .messenger-column-title{padding:7px 9px!important;font-size:.66rem!important}

/* Character-side chat: narrower panel and a normal horizontal toggle so its text cannot overflow. */
html[data-build="5"] body .character-studio-workspace{grid-template-columns:minmax(0,1fr) clamp(300px,24vw,390px)!important}
html[data-build="5"] body .character-studio-workspace.chat-collapsed{grid-template-columns:minmax(0,1fr) 0!important}
html[data-build="5"] body .character-studio-workspace .character-chat-label{padding:7px 10px!important}
html[data-build="5"] body .character-studio-workspace .character-chat-label :is(b,strong){font-size:.72rem!important}
html[data-build="5"] body .character-studio-workspace .character-chat-label small{font-size:.58rem!important}
html[data-build="5"] body .character-chat-toggle{top:8px!important;right:clamp(292px,calc(24vw - 8px),382px)!important;display:flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:74px!important;height:38px!important;min-height:38px!important;padding:5px 9px!important;border-radius:7px 0 0 7px!important;color:#315f50!important;background:#eef1df!important;writing-mode:horizontal-tb!important;white-space:nowrap!important;line-height:1!important;overflow:hidden!important}
html[data-build="5"] body .character-chat-toggle span{font-size:.62rem!important;line-height:1!important;white-space:nowrap!important}
html[data-build="5"] body .character-studio-workspace.chat-collapsed .character-chat-toggle{right:8px!important;border-radius:7px!important}

/* Game cards: never place action buttons beside textual content. */
html[data-build="5"] body .schedule-player-group>div,
html[data-build="5"] body .schedule-week-group>div{grid-template-columns:repeat(auto-fit,minmax(min(100%,760px),1fr))!important;gap:10px!important;padding:10px!important}
html[data-build="5"] body .game-row{container-type:inline-size!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:10px!important;min-width:0!important;padding:12px!important;overflow:visible!important}
html[data-build="5"] body .game-row-main{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;min-width:0!important}
html[data-build="5"] body .game-primary{display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;gap:5px!important;min-width:0!important}
html[data-build="5"] body .game-primary time{flex:1 1 100%!important;width:auto!important;min-width:0!important;font-size:.82rem!important;white-space:normal!important;overflow-wrap:anywhere!important}
html[data-build="5"] body .game-primary :is(.levels,.seat-count,.queue-count,.game-registration-state){flex:0 1 auto!important;width:auto!important;max-width:100%!important;font-size:.62rem!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:anywhere!important}
html[data-build="5"] body .game-registration-state{flex-basis:100%!important}
html[data-build="5"] body .game-details{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;min-width:0!important}
html[data-build="5"] body .game-detail{min-width:0!important;padding:7px 8px!important}
html[data-build="5"] body .game-detail dt{font-size:.56rem!important}
html[data-build="5"] body .game-detail dd{font-size:.68rem!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important}
html[data-build="5"] body .game-detail .link-button{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important}
html[data-build="5"] body .game-row-actions{position:static!important;inset:auto!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;width:100%!important;min-width:0!important;padding-top:8px!important;border-top:1px solid #d1bc9a!important}
html[data-build="5"] body .game-row-actions button{position:static!important;width:100%!important;min-width:0!important;max-width:none!important;min-height:40px!important;padding:6px 8px!important;font-size:.66rem!important;line-height:1.2!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important}
@container (max-width:620px){html[data-build="5"] body .game-details{grid-template-columns:1fr!important}html[data-build="5"] body .game-row-actions{grid-template-columns:1fr!important}}

/* Final light-screen safety net: legacy theme sheets may define dark source-era backgrounds,
   but no page/dialog/panel/chat surface is allowed to render as a dark well. */
html[data-build="5"] body :is(.rpg-screen,.games-screen,.quests-screen,.shop-screen,.warroom-screen,.master-table-screen,.design-studio-screen,.approvals-screen,.audit-screen,.codex-screen,.characters-screen,.character-studio-screen,.auth-gate,.dialog,.panel,.parchment,.archive-chest,.campaign-board,.quest-board,.quest-board-frame,.tavern-chat-desk,.tavern-ledger-column,.tavern-thread-column,.chat-window,.chat-sidebar,.chat-thread,.combat-center,.combat-group,.master-command-panel){color:#30281f!important;background-color:#efd9d1!important;background-image:var(--studio-image-panel,url('/assets/ui/paper-grain.svg'))!important;background-position:center!important;background-size:cover!important}
html[data-build="5"] body :is(.primary-button,.danger-button){color:#2f281f!important;box-shadow:none!important}
html[data-build="5"] body .primary-button{background:#dce8d9!important;border-color:#78927f!important}
html[data-build="5"] body .primary-button:hover{background:#d2e2d1!important}
html[data-build="5"] body .danger-button{background:#efd9d1!important;border-color:#b7776e!important}
html[data-build="5"] body .soft-button,html[data-build="5"] body .ghost-button{background:#f0dfc1!important;color:#3a3027!important}


/* 2026-09 final contrast and parchment palette guard */
html[data-build="5"]{--v4-bg:#eadfc7!important;--v4-panel:#f7ecd8!important;--v4-paper:#fff8e8!important;--v4-ink:#30281f!important;--v4-muted:#665746!important;--v4-gold:#d6c19f!important;--v4-gold-soft:#ead9bc!important;--v4-red:#e7c3bd!important;--v4-purple:#d5dbe5!important}
html[data-build="5"],html[data-build="5"] body{background-color:#eadfc7!important;color:#30281f!important}
html[data-build="5"] body :is(.side-rail,.hud-bar){background-color:#eadfc7!important}
html[data-build="5"] body :is(.rpg-screen,.games-screen,.quests-screen,.shop-screen,.warroom-screen,.master-table-screen,.design-studio-screen,.approvals-screen,.audit-screen,.codex-screen,.characters-screen,.character-studio-screen,.auth-gate,.dialog,.panel,.parchment,.archive-chest,.campaign-board,.quest-board,.quest-board-frame,.tavern-chat-desk,.tavern-ledger-column,.tavern-thread-column,.chat-window,.chat-sidebar,.chat-thread,.combat-center,.combat-group,.master-command-panel,.game-row,.schedule-week-group,.schedule-player-group)
:is(h1,h2,h3,h4,p,strong,b,span,small,label,dt,dd,summary){color:#30281f!important;text-shadow:none!important}
html[data-build="5"] body :is(.muted,.meta,.subtitle,.subline,.chat-context,.message-meta,.game-detail dt){color:#665746!important}
html[data-build="5"] body :is(input,select,textarea){color:#30281f!important;background:#fffaf0!important}
html[data-build="5"] body :is(input,textarea)::placeholder{color:#756655!important;opacity:1!important}
/* Status colors stay semantic while retaining contrast on parchment. */
html[data-build="5"] body :is(.status-approved,.success,.positive){color:#315f50!important}
html[data-build="5"] body :is(.status-rejected,.danger,.negative){color:#8d443c!important}


/* 2026-09 absolute light-surface and text-contrast guard */
html[data-build="5"] body :is(.rpg-screen,.games-screen,.quests-screen,.shop-screen,.warroom-screen,.master-table-screen,.design-studio-screen,.approvals-screen,.audit-screen,.codex-screen,.characters-screen,.character-studio-screen,.auth-gate){background-color:#eadfc7!important;color:#30281f!important}
html[data-build="5"] body :is(.panel,.parchment,.archive-chest,.campaign-board,.quest-board,.quest-board-frame,.tavern-chat-desk,.tavern-ledger-column,.tavern-thread-column,.chat-window,.chat-sidebar,.chat-thread,.combat-center,.combat-group,.master-command-panel,.game-row,.schedule-week-group,.schedule-player-group,.dialog,.dialog-section){background-color:#f7ecd8!important;color:#30281f!important}
html[data-build="5"] body :where(h1,h2,h3,h4,h5,h6,p,strong,b,span,small,label,summary,dt,dd,li,legend,time){color:#30281f!important;text-shadow:none!important}
html[data-build="5"] body :where(a,.link-button){color:#315f50!important}
html[data-build="5"] body :where(button,input,select,textarea,option){color:#30281f!important}
html[data-build="5"] body :is(.muted,.meta,.subtitle,.subline,.chat-context,.message-meta,.game-detail dt,.hud-user-text span){color:#665746!important}
html[data-build="5"] body :is(.status-approved,.success,.positive,.player-registered,.game-registration-state.selected){color:#315f50!important}
html[data-build="5"] body :is(.status-rejected,.danger,.negative){color:#8d443c!important}

/* 2026-09 compact chrome v2 — intentionally small despite the new 24px base text. */
html[data-build="5"] body :is(.location-plaque,.scene-hero){min-height:50px!important;padding:6px 10px!important;gap:7px!important}
html[data-build="5"] body :is(.location-plaque,.scene-hero) h1{font-size:.92rem!important;line-height:1.04!important}
html[data-build="5"] body :is(.location-plaque,.scene-hero) h2{font-size:.82rem!important;line-height:1.08!important}
html[data-build="5"] body :is(.location-plaque,.scene-hero) p{font-size:.58rem!important;line-height:1.25!important}
html[data-build="5"] body .scene-meta span{padding:2px 6px!important;font-size:.54rem!important}
html[data-build="5"] body .location-plaque-actions button{min-height:32px!important;padding:4px 8px!important;font-size:.6rem!important}
html[data-build="5"] body .stage-content{padding:10px!important}
html[data-build="5"] body .section-heading{gap:6px!important;margin-bottom:6px!important}
html[data-build="5"] body .section-heading h2{font-size:.84rem!important;line-height:1.1!important}
html[data-build="5"] body .physical-label{font-size:.61rem!important}
html[data-build="5"] body .dialog-head{padding:6px 9px!important}
html[data-build="5"] body .dialog-head h2{font-size:.84rem!important}
html[data-build="5"] body .dialog-head :is(p,small,span){font-size:.58rem!important}
/* Chats are deliberately denser than ordinary content. */
html[data-build="5"] body .tavern-chat-desk{min-height:300px!important;gap:6px!important}
html[data-build="5"] body .chat-window-head{padding:6px 8px!important;gap:5px!important}
html[data-build="5"] body .chat-window-head :is(strong,b){font-size:.66rem!important}
html[data-build="5"] body .chat-context{font-size:.54rem!important}
html[data-build="5"] body .messages{min-height:120px!important;padding:7px!important}
html[data-build="5"] body .message{gap:4px!important;margin:3px 0!important}
html[data-build="5"] body :is(.message-avatar,.message-avatar-spacer){flex-basis:21px!important;width:21px!important;height:21px!important}
html[data-build="5"] body .message-bubble{padding:5px 7px!important;font-size:.6rem!important;line-height:1.3!important}
html[data-build="5"] body .message-meta{font-size:.49rem!important}
html[data-build="5"] body .message-day{margin:5px!important;font-size:.5rem!important}
html[data-build="5"] body .chat-compose{gap:4px!important;padding:5px!important}
html[data-build="5"] body .chat-compose textarea{min-height:32px!important;max-height:74px!important;padding:5px 7px!important;font-size:.6rem!important}
html[data-build="5"] body .chat-compose button{min-height:32px!important;padding:4px 7px!important;font-size:.57rem!important}
html[data-build="5"] body .chat-list-item{padding:5px 7px!important;gap:5px!important}
html[data-build="5"] body .chat-list-item :is(strong,b){font-size:.62rem!important}
html[data-build="5"] body .chat-list-item :is(span,small){font-size:.51rem!important}
html[data-build="5"] body .messenger-column-title{padding:5px 7px!important;font-size:.57rem!important}
html[data-build="5"] body .character-studio-workspace{grid-template-columns:minmax(0,1fr) clamp(260px,22vw,340px)!important}
html[data-build="5"] body .character-chat-toggle{right:clamp(252px,calc(22vw - 8px),332px)!important;min-width:58px!important;height:32px!important;min-height:32px!important;padding:4px 7px!important}
html[data-build="5"] body .character-chat-toggle span{font-size:.53rem!important}
/* Game cards keep actions in document flow under all text, even when several cards share a row. */
html[data-build="5"] body .schedule-player-group>div{grid-template-columns:repeat(auto-fit,minmax(min(100%,640px),1fr))!important;align-items:start!important}
html[data-build="5"] body .game-row{grid-template-columns:minmax(0,1fr)!important;grid-auto-flow:row!important;align-content:start!important;height:auto!important;min-height:0!important;overflow:visible!important}
html[data-build="5"] body .game-row-main{grid-column:1!important;grid-row:auto!important;width:100%!important;max-width:100%!important}
html[data-build="5"] body .game-row-actions{grid-column:1!important;grid-row:auto!important;position:relative!important;float:none!important;clear:both!important;align-self:stretch!important;margin:0!important;transform:none!important;z-index:auto!important}
html[data-build="5"] body .game-row-actions button{position:relative!important;inset:auto!important;transform:none!important}

/* v4.7 interaction cleanup: icons, compact header controls and one-line chat composer. */
html[data-build="5"] body,
html[data-build="5"] :is(button,input,select,textarea){font-family:var(--club-user-font,var(--studio-body-font,Inter,"Segoe UI",Arial,sans-serif))!important}

html[data-build="5"] .hud-user{gap:10px!important;min-width:0}
html[data-build="5"] .hud-display-controls{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0}
html[data-build="5"] .hud-display-control{display:flex;align-items:center;gap:5px;min-width:0;color:#665746!important;font-size:.54rem!important;font-weight:800;white-space:nowrap}
html[data-build="5"] .hud-display-control select{width:auto;max-width:138px;min-height:34px!important;padding:4px 24px 4px 7px!important;border:1px solid #b29a76!important;border-radius:7px!important;background:#fff9ec!important;color:#30281f!important;font-size:.58rem!important}
html[data-build="5"] .hud-display-control:last-child select{max-width:86px}
html[data-build="5"] .hud-settings{display:none!important}

html[data-build="5"] .side-nav{gap:5px!important}
html[data-build="5"] .nav-button{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;min-height:48px!important;padding:7px 9px!important;text-align:left!important}
html[data-build="5"] .nav-symbol{display:grid!important;place-items:center!important;flex:0 0 30px!important;width:30px!important;height:30px!important;padding:3px!important;border:1px solid #c4ad88!important;border-radius:8px!important;background:#fff8e8!important;color:inherit!important;overflow:hidden!important}
html[data-build="5"] .nav-symbol .nav-icon{display:block!important;width:23px!important;height:23px!important;object-fit:contain!important;filter:none!important}
html[data-build="5"] .nav-button.active .nav-symbol{border-color:#839b8b!important;background:#dce8d9!important}
html[data-build="5"] .nav-button .nav-label{display:block!important;min-width:0!important;font-size:.66rem!important;line-height:1.1!important;text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html[data-build="5"] .nav-button .nav-badge{top:50%!important;right:7px!important;transform:translateY(-50%)!important}

html[data-build="5"] .mobile-tab{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-width:max-content!important;padding:5px 8px!important}
html[data-build="5"] .mobile-tab .nav-symbol{flex-basis:24px!important;width:24px!important;height:24px!important;padding:2px!important;border-radius:6px!important}
html[data-build="5"] .mobile-tab .nav-icon{width:19px!important;height:19px!important}
html[data-build="5"] .mobile-tab .nav-label{font-size:.54rem!important;white-space:nowrap!important}

html[data-build="5"] body .chat-compose{display:grid!important;grid-template-columns:36px 36px minmax(0,1fr) auto!important;align-items:end!important;gap:5px!important;width:100%!important;min-width:0!important;padding:6px!important}
html[data-build="5"] body .chat-compose>.icon-button{width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;padding:5px!important}
html[data-build="5"] body .chat-compose textarea{grid-column:auto!important;width:100%!important;min-width:0!important;min-height:36px!important;max-height:88px!important;margin:0!important;padding:6px 8px!important;resize:none!important}
html[data-build="5"] body .chat-compose>.primary-button{width:auto!important;min-width:42px!important;min-height:36px!important;padding:5px 10px!important;white-space:nowrap!important}
html[data-build="5"] body .chat-compose>input[type=file]{display:none!important}

html[data-build="5"] body .character-chat-toggle{top:8px!important;right:clamp(252px,calc(22vw - 8px),332px)!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;width:auto!important;min-width:160px!important;max-width:210px!important;height:38px!important;min-height:38px!important;padding:6px 11px!important;border:1px solid #698676!important;border-radius:9px 0 0 9px!important;background:#dce8d9!important;color:#24493b!important;box-shadow:0 4px 12px rgba(64,78,63,.16)!important;writing-mode:horizontal-tb!important;white-space:nowrap!important;overflow:hidden!important;font-weight:850!important}
html[data-build="5"] body .character-chat-toggle i{flex:0 0 auto!important;font-style:normal!important;font-size:.68rem!important}
html[data-build="5"] body .character-chat-toggle span{display:block!important;min-width:0!important;font-size:.58rem!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html[data-build="5"] body .character-studio-workspace.chat-collapsed .character-chat-toggle{right:8px!important;border-radius:9px!important;background:#315f50!important;color:#fffaf0!important;border-color:#315f50!important;min-width:190px!important;max-width:230px!important}

@media(max-width:1100px){
 html[data-build="5"] .hud-display-control>span{display:none!important}
 html[data-build="5"] .hud-display-control select{max-width:112px!important}
 html[data-build="5"] body .character-studio-workspace.chat-collapsed .character-chat-toggle{min-width:170px!important}
}
@media(max-width:760px){
 html[data-build="5"] .hud-display-controls{gap:4px!important}
 html[data-build="5"] .hud-display-control select{max-width:92px!important;min-height:30px!important;padding-block:3px!important;font-size:.5rem!important}
 html[data-build="5"] body .chat-compose{grid-template-columns:32px 32px minmax(0,1fr) 38px!important;gap:4px!important}
 html[data-build="5"] body .chat-compose>.icon-button{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important}
 html[data-build="5"] body .chat-compose textarea{min-height:32px!important}
 html[data-build="5"] body .chat-compose>.primary-button{min-width:38px!important;min-height:32px!important;padding:4px 7px!important}
 html[data-build="5"] body .character-chat-toggle,
 html[data-build="5"] body .character-studio-workspace.chat-collapsed .character-chat-toggle{top:7px!important;right:7px!important;min-width:148px!important;max-width:190px!important;height:34px!important;min-height:34px!important;border-radius:8px!important}
}
/* Direct character workspace: iframe is no longer wrapped in an extra host panel. */
html[data-build="5"] body[data-screen="characters"] #app{height:100%!important;min-height:0!important}
html[data-build="5"] body[data-screen="characters"] .character-studio-workspace{height:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
html[data-build="5"] body[data-screen="characters"] .character-studio-frame{grid-column:1;grid-row:1;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
/* Chat action stays in the actual top-right corner; opening the panel does not move the control over the sheet. */
html[data-build="5"] body .character-chat-toggle,
html[data-build="5"] body .character-studio-workspace.chat-collapsed .character-chat-toggle{right:8px!important;border-radius:9px!important}
html[data-build="5"] body .character-studio-workspace:not(.chat-collapsed) .character-chat-label{padding-right:178px!important}
html[data-build="5"] body .chat-compose>.chat-send-button{min-width:max-content!important;font-weight:850!important}
@media(max-width:520px){html[data-build="5"] body .chat-compose>.chat-send-button{font-size:0!important;width:36px!important;min-width:36px!important;padding:0!important}html[data-build="5"] body .chat-compose>.chat-send-button::after{content:'➤';font-size:.7rem!important}}


/* v4.7.1: structural wrapper restored for reliable sizing; it has no visual panel of its own. */
html[data-build="5"] body[data-screen="characters"] .characters-screen.character-studio-screen{display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;background-image:none!important}
html[data-build="5"] body[data-screen="characters"] .characters-screen.character-studio-screen>.character-studio-workspace{width:100%!important;height:100%!important;min-height:0!important}

/* Admin character approvals: character sheet and correspondence share one desk. */
html[data-build="5"] body[data-role="admin"][data-screen="approvals"] .app-main{padding:0!important;overflow:hidden;background:#ead7b6!important}
html[data-build="5"] .approvals-screen.approval-chat-layout{height:100%;min-height:0;padding:0!important;background:#ead7b6!important}
html[data-build="5"] .approval-workspace{display:grid;grid-template-columns:minmax(0,1fr) clamp(320px,27vw,430px);height:100%;min-height:0;background:#f1e4ca}
html[data-build="5"] .approval-sheet-pane{display:flex;flex-direction:column;min-width:0;min-height:0;border-right:1px solid #a9824f;background:#f6ecd8}
html[data-build="5"] .approval-sheet-pane>header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:8px 14px;border-bottom:1px solid #b89769;background:linear-gradient(90deg,#ead7b5,#f6ead2);color:#33271b}
html[data-build="5"] .approval-sheet-pane>header>div:first-child{display:grid;gap:2px}.approval-sheet-pane>header strong{font-family:var(--font-display);font-size:1.05rem}.approval-sheet-pane>header small{color:#715b42}
html[data-build="5"] .approval-sheet-pane iframe{display:block;width:100%;height:100%;min-height:0;border:0;background:#f6ecd8}
html[data-build="5"] .approval-state-ok{padding:7px 12px;border:1px solid #547a5d;border-radius:999px;background:#e0ead9;color:#31543a;font-weight:800}
html[data-build="5"] .approval-empty{align-items:center;justify-content:center;text-align:center}.approval-empty>div{display:grid;gap:6px;color:#6b553b}
html[data-build="5"] .approval-messenger{display:grid;grid-template-rows:auto minmax(100px,28%) minmax(0,1fr);min-width:0;min-height:0;background-color:#ecd7bd;background-image:var(--studio-image-chat,url('/assets/ui/chat-parchment.svg'));background-size:cover}
html[data-build="5"] .approval-category-tabs{display:grid;grid-template-columns:1fr 1fr;padding:8px;gap:7px;border-bottom:1px solid #b89463;background:#e4cda8}
html[data-build="5"] .approval-category-tabs button{min-height:40px;border:1px solid #a78352;border-radius:9px;background:#f5e8ce;color:#513a25;font-weight:800}.approval-category-tabs button.active{background:#315f50;color:#fff8e9;border-color:#274c40}.approval-category-tabs b{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-left:5px;border-radius:50%;background:rgba(255,255,255,.25)}
html[data-build="5"] .approval-contact-list{min-height:0;padding:7px;overflow:auto;border-bottom:1px solid #b89463}
html[data-build="5"] .approval-contact{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:9px;width:100%;padding:7px;margin:0 0 5px;border:1px solid transparent;border-radius:9px;background:rgba(255,248,232,.72);color:#3f3021;text-align:left}.approval-contact:hover,.approval-contact.active{border-color:#9a703f;background:#fff4dc;box-shadow:0 3px 10px rgba(78,52,26,.12)}
html[data-build="5"] .approval-contact img{width:38px;height:38px;border-radius:50%;object-fit:cover;border:1px solid #9c784c}.approval-contact span{display:grid;min-width:0}.approval-contact strong,.approval-contact small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.approval-contact small{color:#715d47;font-size:.72rem}
html[data-build="5"] .approval-chat-pane{display:flex;flex-direction:column;min-height:0}.approval-chat-pane>.character-chat-label{padding:8px 11px!important;border-bottom:1px solid #b89463;background:#ead7b5!important}.approval-chat-pane>.character-chat-label>*{display:block}.approval-chat-pane .chat-window{height:100%;min-height:0;border:0!important;border-radius:0!important;background:transparent!important}.approval-chat-pane .chat-window-head{display:none}.approval-chat-pane .messages{padding-top:9px}
@media(max-width:900px){html[data-build="5"] .approval-workspace{grid-template-columns:1fr;grid-template-rows:minmax(420px,58vh) minmax(420px,1fr);overflow:auto}.approval-messenger{min-height:520px}.approval-sheet-pane{border-right:0;border-bottom:1px solid #a9824f}}

/* v4.7.4 — shell geometry: full-width top bar, contained navigation, no rail footer. */
html[data-build="5"]{--v4-sidebar:clamp(210px,16vw,270px);--v4-hud:90px}
html[data-build="5"] .rail-footer,html[data-build="5"] .brand-plaque{display:none!important}
html[data-build="5"] .hud-brand{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;flex:0 0 auto!important;
 width:clamp(210px,22vw,310px)!important;height:64px!important;min-width:0!important;padding:0!important;
 border:0!important;background:transparent!important;overflow:hidden!important
}
html[data-build="5"] .hud-brand img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:left center!important;filter:none!important}
html[data-build="5"] .hud-bar{box-sizing:border-box!important;width:100%!important;min-width:0!important;z-index:70!important}
html[data-build="5"] .hud-resources{min-width:0!important}
html[data-build="5"] .hud-user{flex:0 0 auto!important;min-width:0!important}
html[data-build="5"] .side-rail{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;height:100%!important;padding:12px 10px!important;overflow-x:hidden!important;overflow-y:auto!important}
html[data-build="5"] .side-nav{box-sizing:border-box!important;width:100%!important;min-width:0!important;margin-top:0!important;overflow:hidden!important}
html[data-build="5"] .nav-button{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important}
html[data-build="5"] .nav-button .nav-symbol{flex:0 0 32px!important}
html[data-build="5"] .nav-button .nav-label{flex:1 1 auto!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html[data-build="5"] .nav-button .nav-badge{flex:0 0 auto!important;position:static!important;transform:none!important;margin-left:auto!important}
html[data-build="5"] .game-stage{box-sizing:border-box!important;min-width:0!important;min-height:0!important;width:100%!important;overflow:auto!important}

@media(min-width:821px){
 html[data-build="5"] .game-shell{
  display:grid!important;grid-template-columns:var(--v4-sidebar) minmax(0,1fr)!important;
  grid-template-rows:var(--v4-hud) minmax(0,1fr)!important;
  grid-template-areas:"hud hud" "rail stage"!important;height:100dvh!important;min-height:0!important;overflow:hidden!important;padding-bottom:0!important
 }
 html[data-build="5"] .hud-bar{grid-area:hud!important;position:sticky!important;top:0!important;left:0!important;right:0!important;height:var(--v4-hud)!important;min-height:var(--v4-hud)!important}
 html[data-build="5"] .side-rail{grid-area:rail!important;position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;display:block!important}
 html[data-build="5"] .game-stage{grid-area:stage!important;height:100%!important}
 html[data-build="5"] body[data-screen="characters"] .stage-content{height:100%!important;min-height:0!important}
}
@media(min-width:821px) and (max-width:1080px){
 html[data-build="5"]{--v4-sidebar:200px}
 html[data-build="5"] .hud-brand{width:210px!important}
 html[data-build="5"] .nav-button{gap:7px!important;padding-inline:7px!important}
}
@media(max-width:820px){
 html[data-build="5"] .hud-brand{display:flex!important;width:clamp(132px,34vw,190px)!important;height:48px!important;flex-basis:auto!important}
 html[data-build="5"] .hud-resources{display:none!important}
 html[data-build="5"] .hud-display-control>span{display:none!important}
}
@media(max-width:560px){
 html[data-build="5"] .hud-brand{width:116px!important;height:40px!important}
 html[data-build="5"] .hud-display-control select{max-width:88px!important}
 html[data-build="5"] .hud-avatar{display:none!important}
}

/* v4.7.4 — explicit text-size states. These mirror the JS variables so the
   selected size remains visible even when an older theme contains its own root size. */
html[data-build="5"][data-ui-text-size]{font-size:24px!important}

/* v4.7.5 — one disclosure affordance everywhere: compact + / − tile. */
html[data-build="5"] details > summary{
  list-style:none!important;
  position:relative;
  padding-right:max(42px,1.9em)!important;
}
html[data-build="5"] details > summary::-webkit-details-marker{display:none!important}
html[data-build="5"] details > summary::marker{content:""!important}
html[data-build="5"] details > summary::after{
  content:""!important;
  position:absolute!important;
  right:10px!important;
  top:50%!important;
  translate:0 -50%!important;
  display:grid!important;
  place-items:center!important;
  width:1.35em!important;
  height:1.35em!important;
  min-width:26px!important;
  min-height:26px!important;
  box-sizing:border-box!important;
  border:1px solid #9f835f!important;
  border-radius:7px!important;
  color:#315f50!important;
  background:#fff8e9!important;
  font-family:Arial,sans-serif!important;
  font-size:.9em!important;
  font-weight:800!important;
  line-height:1!important;
  letter-spacing:0!important;
  text-transform:none!important;
  box-shadow:none!important;
}
html[data-build="5"] details[open] > summary::after{content:""!important}
html[data-build="5"] :is(.billing-summary-arrow,.schedule-week-group>summary>i,.schedule-player-group>summary>i){display:none!important}
html[data-build="5"] .chat-group-title{position:relative!important;padding-right:max(42px,1.9em)!important}
html[data-build="5"] .chat-group-title .chat-group-summary i{display:none!important}
html[data-build="5"] .chat-group-title::after{
  content:"";
  position:absolute;
  right:14px;
  top:50%;
  display:block;
  width:.62em;
  height:.62em;
  box-sizing:border-box;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  color:#315f50;
  transform:translateY(-62%) rotate(45deg);
  transform-origin:50% 50%;
  transition:transform .16s ease;
  opacity:.72;
}
html[data-build="5"] .chat-group:not(.collapsed) .chat-group-title::after{transform:translateY(-35%) rotate(225deg)}

/* v4.7.6 — one neutral disclosure affordance everywhere. No +/− semantics. */
html[data-build="5"] details > summary::-webkit-details-marker{display:none!important}
html[data-build="5"] details > summary::marker{content:""!important}
html[data-build="5"] details > summary::after,
html[data-build="5"] .billing-summary-arrow::after{
  content:""!important;
  display:inline-block!important;
  box-sizing:border-box!important;
  width:.58em!important;
  height:.58em!important;
  flex:0 0 .58em!important;
  margin-left:auto!important;
  border:0!important;
  border-right:2px solid currentColor!important;
  border-bottom:2px solid currentColor!important;
  border-radius:1px!important;
  background:none!important;
  transform:rotate(45deg)!important;
  transform-origin:50% 50%!important;
  transition:transform .16s ease!important;
  opacity:.72!important;
}
html[data-build="5"] details[open] > summary::after,
html[data-build="5"] details[open] > summary .billing-summary-arrow::after{
  transform:rotate(225deg)!important;
}
html[data-build="5"] .billing-summary-arrow{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:1.4em!important;min-height:1.4em!important}
/* Old disclosure glyph containers should not render a second arrow. */
html[data-build="5"] details > summary > i:empty{display:none!important}


/* v4.7.8 — handwritten by default everywhere in the club shell. */
html[data-build="5"] body,
html[data-build="5"] body :where(h1,h2,h3,h4,h5,h6,p,a,span,strong,b,small,em,i,div,section,article,header,footer,nav,aside,label,button,input,select,option,textarea,summary,details,table,td,th,dl,dt,dd,li,legend){font-family:var(--club-user-font,'Neucha','Segoe Print',cursive)!important}
html[data-build="5"] :where(code,pre,kbd,samp){font-family:ui-monospace,monospace!important}


/* v4.7.9 — smaller, quieter disclosure chevrons. */
html[data-build="5"] details > summary{padding-right:24px!important}
html[data-build="5"] details > summary::after,
html[data-build="5"] .billing-summary-arrow::after{
  width:.32em!important;
  height:.32em!important;
  flex-basis:.32em!important;
  border-right-width:1px!important;
  border-bottom-width:1px!important;
  border-radius:0!important;
  opacity:.58!important;
}
html[data-build="5"] .billing-summary-arrow{min-width:.8em!important;min-height:.8em!important}
html[data-build="5"] .chat-group-title{padding-right:26px!important}
html[data-build="5"] .chat-group-title::after{
  right:11px!important;
  width:.34em!important;
  height:.34em!important;
  border-right-width:1px!important;
  border-bottom-width:1px!important;
  opacity:.58!important;
}

/* v4.7.9 — final compact game layout (late because this stylesheet loads after styles.css). */
html[data-build="5"] body .game-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  gap:5px!important;
  align-items:center!important;
  align-content:start!important;
  min-height:0!important;
  padding:7px 9px!important;
  overflow:visible!important;
  container-type:inline-size!important;
}
html[data-build="5"] body .game-date-line{
  display:flex!important;
  align-items:baseline!important;
  gap:8px!important;
  min-width:0!important;
  padding:0 2px!important;
}
html[data-build="5"] body .game-date-line time{
  color:#30281f!important;
  font-weight:800!important;
  line-height:1.15!important;
  white-space:nowrap!important;
}
html[data-build="5"] body .game-availability{
  min-width:0!important;
  color:#315f50!important;
  font-size:.72rem!important;
  font-weight:750!important;
  line-height:1.15!important;
  white-space:nowrap!important;
}
html[data-build="5"] body .game-availability.full{color:#8a493c!important}
html[data-build="5"] body .game-compact-line{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
  width:100%!important;
  overflow:visible!important;
}
html[data-build="5"] body .game-compact-line > :is(.levels,.seat-count,.queue-count){
  flex:none!important;
  width:auto!important;
  max-width:none!important;
  padding:2px 5px!important;
  border:1px solid #c5ad87!important;
  border-radius:999px!important;
  color:#665746!important;
  background:#f0e2c9!important;
  font-size:.66rem!important;
  font-weight:750!important;
  line-height:1.15!important;
  white-space:nowrap!important;
}
html[data-build="5"] body .game-compact-detail{
  display:flex!important;
  align-items:baseline!important;
  gap:4px!important;
  min-width:0!important;
  padding-left:6px!important;
  border-left:1px solid #d1bc9a!important;
  white-space:nowrap!important;
}
html[data-build="5"] body .game-compact-detail>b{
  flex:none!important;
  color:#786955!important;
  font-size:.59rem!important;
  font-weight:700!important;
  letter-spacing:.03em!important;
  text-transform:uppercase!important;
}
html[data-build="5"] body .game-compact-detail>span{
  min-width:0!important;
  overflow:hidden!important;
  color:#30281f!important;
  font-size:.72rem!important;
  font-weight:700!important;
  line-height:1.15!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
html[data-build="5"] body .game-compact-quest{flex:1 1 150px!important}
html[data-build="5"] body .game-compact-detail .link-button{
  display:block!important;
  max-width:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:0!important;
  border:0!important;
  font:inherit!important;
  line-height:inherit!important;
  text-align:left!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
html[data-build="5"] body .game-registration-state{
  flex:none!important;
  width:auto!important;
  max-width:180px!important;
  overflow:hidden!important;
  padding:2px 5px!important;
  border-radius:999px!important;
  color:#315f50!important;
  background:#dce8d9!important;
  font-size:.65rem!important;
  font-weight:750!important;
  line-height:1.15!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
html[data-build="5"] body .game-row-actions{
  position:static!important;
  display:flex!important;
  grid-template-columns:none!important;
  flex:none!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:5px!important;
  width:auto!important;
  min-width:0!important;
  margin:0 0 0 auto!important;
  padding:0!important;
  border:0!important;
}
html[data-build="5"] body .game-row-actions button{
  position:static!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  min-height:29px!important;
  padding:4px 7px!important;
  font-size:.68rem!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  overflow:visible!important;
  overflow-wrap:normal!important;
}
@container (max-width:760px){
  html[data-build="5"] body .game-compact-line{flex-wrap:wrap!important}
  html[data-build="5"] body .game-compact-quest{flex:1 1 180px!important}
  html[data-build="5"] body .game-row-actions{margin-left:0!important}
}
@container (max-width:520px){
  html[data-build="5"] body .game-date-line{flex-wrap:wrap!important;gap:3px 8px!important}
  html[data-build="5"] body .game-compact-detail{border-left:0!important;padding-left:0!important}
  html[data-build="5"] body .game-compact-line{align-items:flex-start!important}
  html[data-build="5"] body .game-row-actions{width:100%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html[data-build="5"] body .game-row-actions button{width:100%!important}
}

/* v4.7.9 — one full-width game per row keeps the compact metadata line readable. */
html[data-build="5"] body .schedule-player-group>div{grid-template-columns:minmax(0,1fr)!important}
/* Billing uses the same summary chevron; suppress its obsolete second arrow span. */
html[data-build="5"] .billing-summary-arrow{display:none!important}
html[data-build="5"] details > summary::after{min-width:0!important;min-height:0!important}

/* v4.8.0 — game schedules are always vertical lists. No responsive two-column stage. */
html[data-build="5"] body :is(.grouped-schedule,.contract-stack),
html[data-build="5"] body .schedule-week-group>div,
html[data-build="5"] body .schedule-player-group>div{
  grid-template-columns:minmax(0,1fr)!important;
}
html[data-build="5"] body .schedule-week-group>div{
  display:grid!important;
  width:100%!important;
}

/* v4.8.0 — context chat dialog reserves real space for its composer. */
html[data-build="5"] body .context-chat-dialog{
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  width:min(1180px,calc(100vw - 24px))!important;
  height:min(860px,calc(100dvh - 24px))!important;
  max-height:calc(100dvh - 24px)!important;
  padding:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
html[data-build="5"] body .context-chat-dialog>.dialog-head{
  position:relative!important;
  top:auto!important;
  margin:0!important;
  padding:8px 11px!important;
  flex:none!important;
}
html[data-build="5"] body .context-chat-dialog>.chat-window{
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
html[data-build="5"] body .context-chat-dialog .messages{
  min-height:0!important;
  overflow:auto!important;
}
html[data-build="5"] body .context-chat-dialog .chat-compose{
  position:relative!important;
  inset:auto!important;
  display:grid!important;
  grid-template-columns:auto auto minmax(0,1fr) auto!important;
  align-items:end!important;
  width:100%!important;
  min-width:0!important;
  padding:8px 10px!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
html[data-build="5"] body .context-chat-dialog .chat-compose textarea{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  box-sizing:border-box!important;
}
@media(max-width:680px){
  html[data-build="5"] body .context-chat-dialog{width:calc(100vw - 8px)!important;height:calc(100dvh - 8px)!important;max-height:calc(100dvh - 8px)!important}
  html[data-build="5"] body .context-chat-dialog .chat-compose{grid-template-columns:auto auto minmax(0,1fr) auto!important;gap:4px!important;padding:6px!important}
  html[data-build="5"] body .context-chat-dialog .chat-send-button{padding-inline:7px!important;min-width:0!important}
}

/* v4.8.0 — archived conversations are a quiet compact drawer, not another page heading. */
html[data-build="5"] body .archive-chest{
  margin-top:6px!important;
  border-radius:8px!important;
}
html[data-build="5"] body .archive-chest>summary{
  min-height:26px!important;
  padding:3px 24px 3px 8px!important;
  gap:6px!important;
  font-size:.68rem!important;
  line-height:1.15!important;
  font-weight:700!important;
}
html[data-build="5"] body .archive-chest>summary>span{
  min-width:17px!important;
  height:17px!important;
  padding:0 4px!important;
  display:inline-grid!important;
  place-items:center!important;
  border-radius:999px!important;
  font-size:.58rem!important;
  line-height:1!important;
}

/* v4.8.1 — chat history preview and stable discussion dialogs. */
html[data-build="5"] body .context-chat-dialog{
  grid-template-rows:minmax(0,1fr)!important;
}
html[data-build="5"] body .context-chat-dialog>.chat-window{
  grid-row:1!important;
  height:100%!important;
}
html[data-build="5"] body .context-chat-dialog .chat-window-head{
  min-height:0!important;
  padding:8px 10px!important;
}
html[data-build="5"] body .context-chat-dialog .messages{
  min-height:0!important;
  padding:10px 12px!important;
  scroll-behavior:auto!important;
}
html[data-build="5"] body .context-chat-dialog .message{
  margin-block:4px!important;
}
html[data-build="5"] body .chat-readonly-note{
  padding:8px 12px!important;
  border-top:1px solid #bda780!important;
  background:#efe1c5!important;
  color:#4e4035!important;
  font-size:.72rem!important;
  line-height:1.3!important;
}
html[data-build="5"] body .chat-head-actions{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
}
html[data-build="5"] body .chat-close-button{
  flex:none!important;
  width:30px!important;
  min-width:30px!important;
  height:30px!important;
  min-height:30px!important;
  padding:0!important;
}
html[data-build="5"] body .chat-list-item-archived{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:6px!important;
  padding:0!important;
  overflow:hidden!important;
}
html[data-build="5"] body .chat-history-button{
  display:grid!important;
  grid-template-columns:36px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:9px!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  padding:7px 8px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  text-align:left!important;
}
html[data-build="5"] body .chat-rejoin-button{
  flex:none!important;
  min-width:84px!important;
  margin-right:7px!important;
  padding:5px 8px!important;
  border:1px solid #668e67!important;
  background:#dce8d9!important;
  color:#111!important;
  font-weight:800!important;
}
html[data-build="5"] body .chat-list-item-archived.active{
  outline:2px solid #8aa88a!important;
  outline-offset:-2px!important;
}
@media(max-width:680px){
  html[data-build="5"] body .chat-list-item-archived{grid-template-columns:minmax(0,1fr)!important}
  html[data-build="5"] body .chat-rejoin-button{width:calc(100% - 14px)!important;margin:0 7px 7px!important}
}

/* v4.8.1 — explicit black button labels throughout the club shell. */
html[data-build="5"] body button,
html[data-build="5"] body [role="button"]{
  color:#111!important;
}
html[data-build="5"] body button :is(span,strong,b,small,em){color:#111!important}

/* v4.8.3 — immersive modular quest board and expandable quest papers. */
html[data-build="5"] body .quest-board-frame.quest-board-modular{
  position:relative!important;
  overflow:hidden!important;
  padding:0!important;
  border:0!important;
  border-radius:28px!important;
  background:none!important;
  background-image:none!important;
  box-shadow:0 22px 48px rgba(79,50,24,.18)!important;
}
html[data-build="5"] body .quest-board-frame.quest-board-modular>.quest-board-top,
html[data-build="5"] body .quest-board-frame.quest-board-modular>.quest-board-bottom{
  display:block!important;
  width:100%!important;
  background-repeat:no-repeat!important;
  background-size:100% 100%!important;
  pointer-events:none!important;
}
html[data-build="5"] body .quest-board-frame.quest-board-modular>.quest-board-top{
  height:clamp(180px,22vw,310px)!important;
  margin-bottom:-2px!important;
  background-image:var(--quest-board-top-image)!important;
  background-position:center bottom!important;
}
html[data-build="5"] body .quest-board-frame.quest-board-modular>.quest-board-middle{
  position:relative!important;
  display:grid!important;
  gap:18px!important;
  min-height:260px!important;
  padding:clamp(24px,4vw,58px) clamp(24px,5vw,72px)!important;
  background-color:#9a6739!important;
  background-image:var(--quest-board-middle-image)!important;
  background-repeat:repeat-y!important;
  background-position:center top!important;
  background-size:100% auto!important;
}
html[data-build="5"] body .quest-board-frame.quest-board-modular>.quest-board-bottom{
  height:clamp(155px,19vw,270px)!important;
  margin-top:-2px!important;
  background-image:var(--quest-board-bottom-image)!important;
  background-position:center top!important;
}
html[data-build="5"] body .quest-board-frame.quest-board-modular .quest-board-goals,
html[data-build="5"] body .quest-board-frame.quest-board-modular .quest-board-filters{
  color:#30281f!important;
  border:1px solid rgba(98,66,36,.22)!important;
  background:rgba(255,247,231,.88)!important;
  box-shadow:0 8px 18px rgba(58,36,17,.1)!important;
  backdrop-filter:blur(1.5px)!important;
}
html[data-build="5"] body .quest-board-frame.quest-board-modular .quest-board-goals{
  padding:14px 16px!important;
}
html[data-build="5"] body .quest-board-frame.quest-board-modular .quest-board-section-title{
  color:#6c4c2c!important;
}
html[data-build="5"] body .quest-board-frame.quest-board-modular .quest-grid{
  display:grid!important;
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  grid-auto-flow:dense!important;
  gap:clamp(16px,2.1vw,28px)!important;
  align-items:start!important;
  padding:4px!important;
}
html[data-build="5"] body .quest-grid>.quest-paper-modular{
  width:100%!important;
  max-width:none!important;
  justify-self:stretch!important;
}
html[data-build="5"] body .quest-paper-small{grid-column:span 4!important}
html[data-build="5"] body .quest-paper-medium{grid-column:span 5!important}
html[data-build="5"] body .quest-paper-large{grid-column:span 7!important}

html[data-build="5"] body .quest-note.quest-paper-modular{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:0!important;
  min-height:0!important;
  padding:0!important;
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  color:#2d2116!important;
  background:none!important;
  background-image:none!important;
  box-shadow:none!important;
  transform:rotate(var(--quest-paper-tilt,0deg))!important;
  transform-origin:50% 14%!important;
  transition:transform .16s ease,filter .16s ease!important;
  filter:drop-shadow(0 12px 9px rgba(45,26,12,.22))!important;
}
html[data-build="5"] body .quest-note.quest-paper-modular:hover{
  z-index:3!important;
  transform:rotate(0deg) translateY(-3px)!important;
  filter:drop-shadow(0 16px 12px rgba(45,26,12,.26))!important;
}
html[data-build="5"] body .quest-paper-modular>.quest-paper-top,
html[data-build="5"] body .quest-paper-modular>.quest-paper-middle,
html[data-build="5"] body .quest-paper-modular>.quest-paper-bottom{
  position:relative!important;
  z-index:1!important;
  width:100%!important;
  box-sizing:border-box!important;
  color:#2d2116!important;
}
html[data-build="5"] body .quest-paper-modular>.quest-paper-top{
  display:grid!important;
  align-content:end!important;
  min-height:clamp(148px,18vw,220px)!important;
  padding:clamp(54px,7vw,88px) clamp(34px,5vw,60px) 24px!important;
  background-image:var(--quest-paper-top)!important;
  background-repeat:no-repeat!important;
  background-position:center bottom!important;
  background-size:100% 100%!important;
}
html[data-build="5"] body .quest-paper-modular>.quest-paper-middle{
  display:grid!important;
  gap:12px!important;
  min-height:96px!important;
  padding:14px clamp(34px,5vw,60px) 18px!important;
  background-color:#ecd09b!important;
  background-image:var(--quest-paper-middle)!important;
  background-repeat:repeat-y!important;
  background-position:center top!important;
  background-size:100% auto!important;
}
html[data-build="5"] body .quest-paper-modular>.quest-paper-bottom{
  display:grid!important;
  gap:14px!important;
  min-height:clamp(120px,15vw,180px)!important;
  align-content:start!important;
  padding:16px clamp(34px,5vw,60px) clamp(48px,6vw,72px)!important;
  background-image:var(--quest-paper-bottom)!important;
  background-repeat:no-repeat!important;
  background-position:center top!important;
  background-size:100% 100%!important;
}
html[data-build="5"] body .quest-paper-kicker{
  color:#72502e!important;
  font-size:.66rem!important;
  font-weight:800!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
html[data-build="5"] body .quest-paper-modular h3{
  margin:2px 0 6px!important;
  color:#24180f!important;
  font-size:clamp(1.12rem,2.1vw,1.65rem)!important;
  line-height:1.05!important;
  text-wrap:balance!important;
}
html[data-build="5"] body .quest-paper-meta{
  display:flex!important;
  gap:8px 14px!important;
  flex-wrap:wrap!important;
  color:#60452d!important;
  font-size:.74rem!important;
}
html[data-build="5"] body .quest-paper-status{
  display:flex!important;
  gap:8px!important;
  align-items:center!important;
  color:#65472b!important;
  font-size:.72rem!important;
  font-weight:700!important;
}
html[data-build="5"] body .quest-paper-status>i{
  width:7px!important;height:7px!important;border-radius:50%!important;background:#527058!important;
}
html[data-build="5"] body .quest-paper-status.assigned>i{background:#986237!important}
html[data-build="5"] body .quest-paper-modular .quest-description p,
html[data-build="5"] body .quest-paper-modular .quest-card-secret p{
  margin:0!important;
  color:#302217!important;
  font-size:.88rem!important;
  line-height:1.45!important;
  overflow-wrap:anywhere!important;
}
html[data-build="5"] body .quest-paper-modular .quest-card-secret{
  display:grid!important;
  gap:4px!important;
  padding:9px 10px!important;
  border:1px dashed rgba(87,59,32,.26)!important;
  border-radius:7px!important;
  background:rgba(255,248,226,.38)!important;
}
html[data-build="5"] body .quest-paper-reward{
  display:grid!important;
  gap:2px!important;
  color:#382717!important;
}
html[data-build="5"] body .quest-paper-reward>span{
  color:#765430!important;
  font-size:.65rem!important;
  font-weight:800!important;
  text-transform:uppercase!important;
  letter-spacing:.06em!important;
}
html[data-build="5"] body .quest-paper-modular .quest-actions{
  display:flex!important;
  gap:7px!important;
  flex-wrap:wrap!important;
  padding:0!important;
}
html[data-build="5"] body .quest-paper-modular .quest-actions button{
  min-height:31px!important;
  padding:6px 10px!important;
  color:#16110c!important;
  font-size:.72rem!important;
  box-shadow:none!important;
}

html[data-build="5"] body .quest-board-style-panel{
  margin:0 0 16px!important;
  padding:0!important;
  overflow:hidden!important;
}
html[data-build="5"] body .quest-board-style-panel>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  padding:10px 14px!important;
  list-style:none!important;
  cursor:pointer!important;
  color:#30281f!important;
}
html[data-build="5"] body .quest-board-style-panel>summary::-webkit-details-marker{display:none!important}
html[data-build="5"] body .quest-board-style-panel>summary>span{display:grid!important;gap:1px!important}
html[data-build="5"] body .quest-board-style-panel>summary small{color:#75634d!important;font-size:.66rem!important}
html[data-build="5"] body .quest-board-style-panel>summary b{font-size:.86rem!important}
html[data-build="5"] body .quest-board-style-panel>summary em{font-style:normal!important;font-size:.72rem!important}
html[data-build="5"] body .quest-board-style-copy{padding:0 14px 10px!important}
html[data-build="5"] body .quest-board-style-copy p{margin:0!important;color:#665746!important;font-size:.75rem!important}
html[data-build="5"] body .quest-board-style-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important;
  gap:10px!important;
  padding:0 14px 14px!important;
}
html[data-build="5"] body .quest-board-style-card{
  display:grid!important;
  grid-template-columns:72px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  gap:6px 10px!important;
  padding:8px!important;
  color:#30281f!important;
  text-align:left!important;
  border:1px solid #c4aa82!important;
  border-radius:10px!important;
  background:#fff8e8!important;
}
html[data-build="5"] body .quest-board-style-card.active{outline:2px solid rgba(49,95,80,.28)!important}
html[data-build="5"] body .quest-board-style-card>img{
  grid-row:1/3!important;
  width:72px!important;
  height:88px!important;
  object-fit:contain!important;
  border-radius:7px!important;
  background:#e3cba4!important;
}
html[data-build="5"] body .quest-board-style-card>span{display:grid!important;gap:2px!important;align-content:start!important}
html[data-build="5"] body .quest-board-style-card small,
html[data-build="5"] body .quest-board-style-card em{color:#665746!important;font-size:.65rem!important;font-style:normal!important}
html[data-build="5"] body .quest-board-style-card em{grid-column:2!important}

html[data-build="5"] body .quest-builder-v8.is-modular .quest-builder-workspace{
  grid-template-columns:minmax(230px,300px) minmax(0,1fr)!important;
}
html[data-build="5"] body .quest-sheet-library{
  max-height:min(70dvh,760px)!important;
  overflow:auto!important;
}
html[data-build="5"] body .quest-template-group{display:grid!important;gap:7px!important;margin-bottom:12px!important}
html[data-build="5"] body .quest-template-group>b{font-size:.72rem!important;color:#6c5135!important}
html[data-build="5"] body .quest-template-legacy{margin:8px 0 12px!important}
html[data-build="5"] body .quest-template-legacy>summary{cursor:pointer!important;font-size:.72rem!important;color:#665746!important}
html[data-build="5"] body .quest-template-row{
  display:grid!important;
  grid-template-columns:52px minmax(0,1fr)!important;
  gap:9px!important;
  align-items:center!important;
  width:100%!important;
  padding:7px!important;
  color:#30281f!important;
  text-align:left!important;
}
html[data-build="5"] body .quest-template-row .quest-sheet-background.thumbnail,
html[data-build="5"] body .quest-template-row>i{
  width:52px!important;
  height:64px!important;
  object-fit:contain!important;
  border-radius:6px!important;
  background:#ead7b6!important;
}
html[data-build="5"] body .quest-template-row>span{display:grid!important;gap:2px!important;min-width:0!important}
html[data-build="5"] body .quest-template-row>span small{color:#665746!important;font-size:.65rem!important}
html[data-build="5"] body .quest-layout-modular>header{display:grid!important;gap:2px!important;margin-bottom:8px!important}
html[data-build="5"] body .quest-layout-modular>header span{color:#75634d!important;font-size:.66rem!important}
html[data-build="5"] body .quest-modular-preview{
  width:min(100%,520px)!important;
  margin:0 auto!important;
  color:#2d2116!important;
  filter:drop-shadow(0 12px 10px rgba(45,26,12,.16))!important;
}
html[data-build="5"] body .quest-modular-preview>.quest-paper-top{
  display:grid!important;align-content:end!important;min-height:190px!important;
  padding:70px 48px 22px!important;background:var(--quest-paper-top) center bottom/100% 100% no-repeat!important;
}
html[data-build="5"] body .quest-modular-preview>.quest-paper-middle{
  display:grid!important;gap:10px!important;min-height:190px!important;padding:16px 48px!important;
  background:#ecd09b var(--quest-paper-middle) center top/100% auto repeat-y!important;
}
html[data-build="5"] body .quest-modular-preview>.quest-paper-bottom{
  display:grid!important;gap:4px!important;min-height:145px!important;padding:18px 48px 54px!important;
  background:var(--quest-paper-bottom) center top/100% 100% no-repeat!important;
}
html[data-build="5"] body .quest-modular-preview h3{margin:3px 0!important;color:#24180f!important}
html[data-build="5"] body .quest-modular-preview p{margin:0!important;color:#302217!important;line-height:1.45!important}
html[data-build="5"] body .quest-modular-explain{display:grid!important;gap:3px!important;width:min(100%,520px)!important;margin:10px auto 0!important;padding:10px 12px!important;border:1px solid #c4aa82!important;border-radius:9px!important;background:#fff8e8!important;color:#30281f!important}
html[data-build="5"] body .quest-modular-explain span{color:#665746!important;font-size:.7rem!important}

@media(max-width:1200px){
  html[data-build="5"] body .quest-paper-small,
  html[data-build="5"] body .quest-paper-medium{grid-column:span 6!important}
  html[data-build="5"] body .quest-paper-large{grid-column:span 12!important}
}
@media(max-width:760px){
  html[data-build="5"] body .quest-board-frame.quest-board-modular>.quest-board-top{height:150px!important}
  html[data-build="5"] body .quest-board-frame.quest-board-modular>.quest-board-bottom{height:130px!important}
  html[data-build="5"] body .quest-board-frame.quest-board-modular>.quest-board-middle{padding:18px 14px!important}
  html[data-build="5"] body .quest-board-frame.quest-board-modular .quest-grid{grid-template-columns:minmax(0,1fr)!important}
  html[data-build="5"] body :is(.quest-paper-small,.quest-paper-medium,.quest-paper-large){grid-column:1!important}
  html[data-build="5"] body .quest-note.quest-paper-modular{transform:none!important}
  html[data-build="5"] body .quest-builder-v8.is-modular .quest-builder-workspace{grid-template-columns:minmax(0,1fr)!important}
  html[data-build="5"] body .quest-sheet-library{max-height:none!important}
}

html[data-build="5"] body .dialog.quest-paper-dialog.quest-reading-modular-dialog{
  width:min(760px,calc(100vw - 24px))!important;
  max-height:min(92dvh,980px)!important;
  padding:0!important;
  overflow:auto!important;
  border:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
html[data-build="5"] body .quest-reading-modular-dialog .quest-reading-close{
  position:sticky!important;
  top:8px!important;
  z-index:8!important;
  float:right!important;
  width:36px!important;
  height:36px!important;
  margin:8px 8px -44px 0!important;
  border:1px solid rgba(78,53,31,.25)!important;
  border-radius:50%!important;
  color:#24180f!important;
  background:#fff6df!important;
}
html[data-build="5"] body .quest-reading-modular{
  width:100%!important;
  color:#2d2116!important;
  filter:drop-shadow(0 18px 15px rgba(45,26,12,.24))!important;
}
html[data-build="5"] body .quest-reading-modular>.quest-paper-top{
  display:grid!important;
  align-content:end!important;
  min-height:220px!important;
  padding:84px 68px 28px!important;
  color:#2d2116!important;
  background:var(--quest-paper-top) center bottom/100% 100% no-repeat!important;
}
html[data-build="5"] body .quest-reading-modular>.quest-paper-top h2{
  margin:3px 0 5px!important;
  color:#24180f!important;
  font-size:clamp(1.6rem,4vw,2.45rem)!important;
  line-height:1.04!important;
}
html[data-build="5"] body .quest-reading-modular>.quest-paper-top p{margin:0!important;color:#65472b!important}
html[data-build="5"] body .quest-reading-modular>.quest-paper-middle{
  display:grid!important;
  gap:14px!important;
  min-height:180px!important;
  padding:18px 68px 24px!important;
  color:#2d2116!important;
  background:#ecd09b var(--quest-paper-middle) center top/100% auto repeat-y!important;
}
html[data-build="5"] body .quest-reading-modular>.quest-paper-bottom{
  display:grid!important;
  gap:16px!important;
  min-height:175px!important;
  padding:20px 68px 64px!important;
  color:#2d2116!important;
  background:var(--quest-paper-bottom) center top/100% 100% no-repeat!important;
}
html[data-build="5"] body .quest-reading-modular :is(.quest-reading-status,.quest-reading-section,.quest-reading-reward){
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  color:#302217!important;
  background:transparent!important;
}
html[data-build="5"] body .quest-reading-modular .quest-reading-section{display:grid!important;gap:5px!important}
html[data-build="5"] body .quest-reading-modular .quest-reading-section h3,
html[data-build="5"] body .quest-reading-modular .quest-reading-section p{margin:0!important;color:#302217!important}
html[data-build="5"] body .quest-reading-modular .quest-reading-section.result{
  padding-top:12px!important;
  border-top:1px solid rgba(83,57,31,.22)!important;
}
html[data-build="5"] body .quest-reading-modular .quest-reading-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  padding:0!important;
}
html[data-build="5"] body .quest-reading-modular .quest-reading-actions button{color:#16110c!important}
@media(max-width:620px){
  html[data-build="5"] body .quest-reading-modular>.quest-paper-top{min-height:170px!important;padding:62px 34px 22px!important}
  html[data-build="5"] body .quest-reading-modular>.quest-paper-middle{padding:14px 34px 18px!important}
  html[data-build="5"] body .quest-reading-modular>.quest-paper-bottom{min-height:145px!important;padding:16px 34px 50px!important}
}

html[data-build="5"] body[data-role="admin"][data-screen="approvals"] #app,
html[data-build="5"] body[data-role="admin"][data-screen="approvals"] .approvals-screen,
html[data-build="5"] body[data-role="admin"][data-screen="approvals"] .approval-workspace{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;margin:0!important}
html[data-build="5"] body[data-role="admin"][data-screen="approvals"] .stage-content{padding:0!important;overflow:hidden!important}

/* 2026-09 player redesign pass: full-screen illustrated tab backgrounds + separate fantasy buttons */
html[data-build="5"] body[data-role="player"] .world-bg{
  opacity:1!important;
  filter:none!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
}
html[data-build="5"] body[data-role="player"][data-screen="chats"] .world-bg{
  background-image:linear-gradient(rgba(248,235,214,.42),rgba(248,235,214,.52)),url('/assets/ui/optimized/chats-ee10272c.webp')!important;
}
html[data-build="5"] body[data-role="player"][data-screen="games"] .world-bg{
  background-image:linear-gradient(rgba(248,235,214,.36),rgba(248,235,214,.48)),url('/assets/ui/optimized/games-557f2982.webp')!important;
}
html[data-build="5"] body[data-role="player"][data-screen="quests"] .world-bg{
  background-image:linear-gradient(rgba(248,235,214,.38),rgba(248,235,214,.50)),url('/assets/ui/optimized/quests-3611c3d9.webp')!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .world-bg{
  background-image:linear-gradient(rgba(248,235,214,.38),rgba(248,235,214,.52)),url('/assets/ui/optimized/shop-c83c753d.webp')!important;
}
html[data-build="5"] body[data-role="player"][data-screen="characters"] .world-bg{
  background-image:linear-gradient(rgba(248,235,214,.32),rgba(248,235,214,.46)),url('/assets/ui/optimized/characters-da34950f.webp')!important;
}
html[data-build="5"] body[data-role="player"] .world-bg::after{
  background:linear-gradient(90deg,rgba(239,223,199,.74),rgba(249,241,225,.28) 34%,rgba(245,232,208,.24) 66%,rgba(233,216,191,.70))!important;
}

/* keep the big illustrated backdrop visible across the whole viewport, including behind the side buttons */
html[data-build="5"] body[data-role="player"] .game-shell,
html[data-build="5"] body[data-role="player"] .game-stage,
html[data-build="5"] body[data-role="player"] .stage-content,
html[data-build="5"] body[data-role="player"] :is(.rpg-screen,.tavern-screen,.games-screen,.quests-screen,.shop-screen,.characters-screen,.character-studio-screen){
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
html[data-build="5"] body[data-role="player"] :is(.rpg-screen,.tavern-screen,.games-screen,.quests-screen,.shop-screen,.characters-screen,.character-studio-screen){
  border:0!important;
}
html[data-build="5"] body[data-role="player"] .stage-content{
  position:relative!important;
  z-index:1!important;
}
html[data-build="5"] body[data-role="player"] :is(.side-rail,.hud-bar){
  background:rgba(238,221,196,.34)!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
}
html[data-build="5"] body[data-role="player"] .side-rail{
  border-right:1px solid rgba(120,88,58,.22)!important;
  box-shadow:8px 0 28px rgba(48,30,15,.12)!important;
}
html[data-build="5"] body[data-role="player"] .hud-bar{
  border-bottom:1px solid rgba(120,88,58,.18)!important;
}

/* per-tab hero uses the same artwork, but only as a framed plaque */
html[data-build="5"] body[data-role="player"][data-screen="chats"] :is(.scene-hero,.location-plaque){
  background-image:linear-gradient(rgba(249,241,224,.76),rgba(249,241,224,.78)),url('/assets/ui/optimized/chats-ee10272c.webp')!important;
}
html[data-build="5"] body[data-role="player"][data-screen="games"] :is(.scene-hero,.location-plaque){
  background-image:linear-gradient(rgba(249,241,224,.76),rgba(249,241,224,.78)),url('/assets/ui/optimized/games-557f2982.webp')!important;
}
html[data-build="5"] body[data-role="player"][data-screen="quests"] :is(.scene-hero,.location-plaque){
  background-image:linear-gradient(rgba(249,241,224,.76),rgba(249,241,224,.78)),url('/assets/ui/optimized/quests-3611c3d9.webp')!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] :is(.scene-hero,.location-plaque){
  background-image:linear-gradient(rgba(249,241,224,.76),rgba(249,241,224,.78)),url('/assets/ui/optimized/shop-c83c753d.webp')!important;
}
html[data-build="5"] body[data-role="player"][data-screen="characters"] :is(.scene-hero,.location-plaque){
  background-image:linear-gradient(rgba(249,241,224,.76),rgba(249,241,224,.80)),url('/assets/ui/optimized/characters-da34950f.webp')!important;
}

/* navigation buttons remain separate from the background */
html[data-build="5"] body[data-role="player"] .side-nav{
  gap:10px!important;
}
html[data-build="5"] body[data-role="player"] .nav-button{
  isolation:isolate;
  width:100%!important;
  min-height:86px!important;
  padding:10px 16px!important;
  color:#4a301d!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  text-shadow:0 1px 0 rgba(255,248,232,.8)!important;
}
html[data-build="5"] body[data-role="player"] .nav-button::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background-position:center center;
  background-repeat:no-repeat;
  background-size:100% 100%;
  transition:transform .18s ease,filter .18s ease,opacity .18s ease;
}
html[data-build="5"] body[data-role="player"] .nav-button[data-view="chats"]::before{background-image:url('/assets/ui/optimized/vines-550a210e.webp')}
html[data-build="5"] body[data-role="player"] .nav-button[data-view="games"]::before{background-image:url('/assets/ui/optimized/axe-dcf66e6e.webp')}
html[data-build="5"] body[data-role="player"] .nav-button[data-view="quests"]::before{background-image:url('/assets/ui/optimized/skull-0bb9e839.webp')}
html[data-build="5"] body[data-role="player"] .nav-button[data-view="shop"]::before{background-image:url('/assets/ui/optimized/coins-12458240.webp')}
html[data-build="5"] body[data-role="player"] .nav-button[data-view="characters"]::before{background-image:url('/assets/ui/optimized/wizard-18afe8c6.webp')}
html[data-build="5"] body[data-role="player"] .nav-button > *{
  position:relative;
  z-index:1;
}
html[data-build="5"] body[data-role="player"] .nav-symbol{
  display:grid!important;
  place-items:center!important;
  width:32px!important;
  height:32px!important;
  margin-bottom:2px!important;
  border-radius:50%!important;
  background:rgba(255,247,228,.22)!important;
}
html[data-build="5"] body[data-role="player"] .nav-icon{
  width:24px!important;
  height:24px!important;
  filter:drop-shadow(0 1px 0 rgba(255,248,232,.75));
}
html[data-build="5"] body[data-role="player"] .nav-button .nav-label{
  font-size:.76rem!important;
  font-weight:900!important;
  letter-spacing:.01em!important;
}
html[data-build="5"] body[data-role="player"] .nav-button:hover::before{
  transform:translateY(-1px) scale(1.01);
  filter:saturate(1.06) brightness(1.02);
}
html[data-build="5"] body[data-role="player"] .nav-button.active{
  color:#412818!important;
  background:transparent!important;
  box-shadow:none!important;
}
html[data-build="5"] body[data-role="player"] .nav-button.active::before{
  transform:translateY(-1px) scale(1.02);
  filter:saturate(1.10) brightness(1.04) drop-shadow(0 8px 14px rgba(58,36,18,.18));
}
html[data-build="5"] body[data-role="player"] .nav-badge{
  top:8px!important;
  right:12px!important;
  border-color:#f6ead7!important;
  background:#7a2f5a!important;
  box-shadow:0 2px 6px rgba(54,20,40,.26)!important;
}

/* mobile buttons keep the same idea, but without replacing the bottom-nav layout */
html[data-build="5"] body[data-role="player"] .mobile-tab{
  border:0!important;
  border-radius:16px!important;
  background:rgba(248,239,222,.78)!important;
  box-shadow:0 4px 12px rgba(48,30,15,.10)!important;
}
html[data-build="5"] body[data-role="player"] .mobile-tab.active{
  background:rgba(251,245,233,.96)!important;
  box-shadow:0 6px 14px rgba(48,30,15,.16)!important;
}

/* 2026-09-24 v15 patch: start from v13, preserve illustrated fantasy buttons,
   remove only the small icons, and let the full-scene background flow under the button column. */
html[data-build="5"] body[data-role="player"] :is(.game-shell,.hud-bar,.side-rail,.game-stage,.stage-content,.side-nav){
  background:transparent!important;
  background-image:none!important;
}
html[data-build="5"] body[data-role="player"] .side-rail{
  border-right:0!important;
  box-shadow:none!important;
}
html[data-build="5"] body[data-role="player"] .hud-bar{
  border-bottom:0!important;
  box-shadow:none!important;
}
/* Make all screen canvases transparent so one illustration spans the whole viewport,
   including behind the left navigation buttons. */
html[data-build="5"] body[data-role="player"] :is(.rpg-screen,.tavern-screen,.games-screen,.quests-screen,.shop-screen,.characters-screen,.character-studio-screen,.master-table-screen,.warroom-screen,.design-studio-screen){
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
/* Remove button icons only; keep the decorative button plaques from v13. */
html[data-build="5"] body[data-role="player"] .nav-symbol,
html[data-build="5"] body[data-role="player"] .nav-icon,
html[data-build="5"] body[data-role="player"] .mobile-tab .nav-icon,
html[data-build="5"] body[data-role="player"] .mobile-tab .nav-symbol,
html[data-build="5"] body[data-role="player"] .mobile-tab svg,
html[data-build="5"] body[data-role="player"] .tab-icon{
  display:none!important;
}
html[data-build="5"] body[data-role="player"] .nav-button{
  gap:0!important;
  padding-left:18px!important;
}
html[data-build="5"] body[data-role="player"] .nav-button .nav-label{
  margin-left:0!important;
}

/* 2026-09-24 v16: make the new tab illustrations a single full-viewport scene,
   explicitly spanning under the left navigation column and the rest of the player UI. */
html[data-build="5"] body[data-role="player"]{
  position:relative;
}
html[data-build="5"] body[data-role="player"]::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background-position:center center;
  background-repeat:no-repeat;
  background-size:cover;
}
html[data-build="5"] body[data-role="player"]::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(243,227,202,.52),rgba(249,240,224,.18) 34%,rgba(249,240,224,.14) 66%,rgba(233,214,187,.48));
}
html[data-build="5"] body[data-role="player"] .world-bg,
html[data-build="5"] body[data-role="player"] .world-bg::after{
  background:none!important;
  opacity:0!important;
}
html[data-build="5"] body[data-role="player"][data-screen="chats"]::before{background-image:url('/assets/ui/optimized/chats-ee10272c.webp')}
html[data-build="5"] body[data-role="player"][data-screen="games"]::before{background-image:url('/assets/ui/optimized/games-557f2982.webp')}
html[data-build="5"] body[data-role="player"][data-screen="quests"]::before{background-image:url('/assets/ui/optimized/quests-3611c3d9.webp')}
html[data-build="5"] body[data-role="player"][data-screen="shop"]::before{background-image:url('/assets/ui/optimized/shop-c83c753d.webp')}
html[data-build="5"] body[data-role="player"][data-screen="characters"]::before{background-image:url('/assets/ui/optimized/characters-da34950f.webp')}

html[data-build="5"] body[data-role="player"] :is(.game-shell,.game-stage,.stage-content,.side-rail,.hud-bar,.side-nav,.rpg-screen,.tavern-screen,.games-screen,.quests-screen,.shop-screen,.characters-screen,.character-studio-screen,.master-table-screen,.warroom-screen,.design-studio-screen){
  background:transparent!important;
  background-image:none!important;
}


/* assets/ui/approvals.css */
/* One full-height desk; scrolling belongs to each pane. */
html[data-build="5"] body[data-screen="approvals"] .game-stage{overflow:hidden!important}
html[data-build="5"] body[data-screen="approvals"] #app{max-width:none!important;height:100%!important;padding:0!important;overflow:hidden!important}
html[data-build="5"] body[data-screen="approvals"] .approval-workspace{display:grid!important;grid-template-columns:minmax(0,1fr) clamp(320px,27vw,400px)!important;grid-template-rows:minmax(0,1fr)!important;height:100%!important;overflow:hidden!important}
html[data-build="5"] body[data-screen="approvals"] .approval-sheet-pane{display:flex;min-width:0;min-height:0;padding:0!important;background:#f5ead4;border-right:1px solid #b89a6a;overflow:hidden}
html[data-build="5"] body[data-screen="approvals"] .approval-sheet-pane iframe{flex:1;display:block;width:100%;height:100%;min-height:0;border:0}
html[data-build="5"] body[data-screen="approvals"] .approval-empty{display:grid;align-content:center;justify-items:center;gap:8px;flex:1;padding:24px;color:#735b40;text-align:center}
html[data-build="5"] body[data-screen="approvals"] .approval-messenger{display:flex!important;flex-direction:column;min-height:0!important;min-width:0;background:#f3e5cb url('/assets/ui/chat-parchment.svg') center/cover;overflow:hidden}
html[data-build="5"] body[data-screen="approvals"] .approval-category-tabs{flex:none;display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px;background:#e9d6b3;border-bottom:1px solid #bea173}
html[data-build="5"] body[data-screen="approvals"] .approval-category-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;margin:0;padding:8px 6px;min-height:38px;font-size:13px;color:#3d3526!important;background:#faf0dc!important;border:1px solid #bea173;border-radius:7px}
html[data-build="5"] body[data-screen="approvals"] .approval-category-tabs button.active{background:#d5e3cd!important;border-color:#75916b!important;box-shadow:inset 0 -2px #75916b}
.approval-category-tabs small{font-size:11px;opacity:.75}.approval-category-tabs b{display:grid;place-items:center;min-width:21px;border-radius:20px;background:#a05537!important;color:#fff6df!important;font-size:11px}
html[data-build="5"] body[data-screen="approvals"] .approval-search{display:flex;align-items:center;gap:6px;flex:none;padding:7px 8px;background:#f4e7cd}
.approval-search input{width:0;flex:1;min-width:0!important;padding:8px;border:1px solid #b9a078;border-radius:6px;color:#433624;background:#fff8e9}
.approval-search button{padding:7px;font-size:11px;border:1px solid #b9a078;border-radius:6px;background:#f7edd8;color:#58472e}.approval-search button[aria-pressed=true]{background:#d5e3cd;border-color:#75916b}
html[data-build="5"] body[data-screen="approvals"] .approval-contact-list{flex:0 1 auto;min-height:0!important;max-height:clamp(140px,25vh,250px);overflow-y:auto;padding:4px 7px;border-bottom:1px solid #b89a6a}
html[data-build="5"] body[data-screen="approvals"] .approval-contact{grid-template-columns:36px minmax(0,1fr) auto!important;width:100%;min-width:0;gap:8px;padding:8px;margin-bottom:4px;text-align:left;background:#f9efda!important;border:1px solid #d0b991!important;box-shadow:none}
html[data-build="5"] body[data-screen="approvals"] .approval-contact.active{background:#e6ecd7!important;border-color:#87a079!important;border-left:3px solid #658753!important}
.approval-contact>span:nth-child(2){min-width:0}.approval-contact strong{font-size:14px}.approval-contact small{font-size:11px}.approval-message-preview{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#725e45}.approval-contact .approval-contact-meta{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.approval-contact time{font-size:10px;color:#816e55}
html[data-build="5"] body[data-screen="approvals"] .approval-chat-pane{display:flex;flex:1;flex-direction:column;min-height:0!important;overflow:hidden}
.approval-thread-header{display:flex;flex-direction:column;gap:8px;padding:9px 11px;background:#edddbd;border-bottom:1px solid #bca075}.approval-thread-header strong,.approval-thread-header small{display:block}.approval-thread-header strong{font-size:15px;color:#3e3324}.approval-thread-header small{font-size:11px;color:#765e41}.approval-decision-actions{display:flex;gap:6px}.approval-decision-actions button{flex:1;min-height:30px;padding:5px!important;font-size:11px!important}
html[data-build="5"] body[data-screen="approvals"] .approval-chat-pane .chat-window{display:flex!important;flex-direction:column!important;flex:1!important;min-height:0!important;height:auto!important;border:0!important;border-radius:0!important;background:transparent!important;overflow:hidden!important}
html[data-build="5"] body[data-screen="approvals"] .approval-chat-pane .chat-window-head{display:none!important}
html[data-build="5"] body[data-screen="approvals"] .approval-chat-pane .messages{flex:1!important;min-height:0!important;max-height:none!important;height:auto!important;overflow:auto!important;padding:12px 8px!important}
html[data-build="5"] body[data-screen="approvals"] .approval-chat-pane .chat-compose{flex:none!important;margin:0!important;background:#f2e3c6!important;border-top:1px solid #bca075!important;padding:8px!important}
html[data-build="5"] body[data-screen="approvals"] .approval-chat-pane .chat-compose textarea{max-height:120px!important;resize:vertical;background:#fff7e7!important;color:#423623!important}
.approval-messenger :focus-visible{outline:2px solid #426e4c;outline-offset:2px}
html[data-build="5"] body[data-screen="approvals"] .approval-contact strong{font-size:16px!important;line-height:1.35!important}
html[data-build="5"] body[data-screen="approvals"] .approval-contact :is(small,.approval-message-preview){font-size:13px!important;line-height:1.45!important}
html[data-build="5"] body[data-screen="approvals"] .approval-contact time{font-size:12px!important}
html[data-build="5"] body[data-screen="approvals"] .approval-thread-header strong{font-size:17px!important}
html[data-build="5"] body[data-screen="approvals"] .approval-thread-header small{font-size:13px!important}
html[data-build="5"] body[data-screen="approvals"] .approval-chat-pane .message-bubble :is(p,strong){font-size:15px!important;line-height:1.45!important;overflow-wrap:anywhere}
html[data-build="5"] body[data-screen="approvals"] .approval-chat-pane .chat-compose textarea{font-size:14px!important;line-height:1.4!important}
@media(max-width:820px){
 html[data-build="5"] body[data-screen="approvals"] .game-stage{overflow:auto!important}
 html[data-build="5"] body[data-screen="approvals"] #app{height:auto!important;overflow:visible!important}
 html[data-build="5"] body[data-screen="approvals"] .approval-workspace{height:auto!important;overflow:visible!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:70dvh 80dvh!important}
 html[data-build="5"] body[data-screen="approvals"] .approval-sheet-pane{border-right:0;border-bottom:1px solid #b89a6a}
}

.approval-mobile-thread-tools,.approval-mobile-actions{display:none;}
/* A mobile conversation owns the space between the actual HUD and the bottom
   edge. Its list and sheet are separate views, so history keeps room to read. */
@layer shell {
 @media(max-width:820px){
  html[data-build="5"]:has(body:is([data-screen="chats"],[data-screen="approvals"])){height:100%!important;overflow:hidden!important;}
  html[data-build="5"] body:is([data-screen="chats"],[data-screen="approvals"]){height:100dvh!important;overflow:hidden!important;}
  html[data-build="5"] body:is([data-screen="chats"],[data-screen="approvals"]) .game-shell{
   display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important;
   height:100dvh!important;min-height:0!important;max-height:100dvh!important;
   padding-bottom:calc(64px + env(safe-area-inset-bottom))!important;box-sizing:border-box!important;overflow:hidden!important;
  }
  html[data-build="5"] body:is([data-screen="chats"],[data-screen="approvals"]) .hud-bar{grid-row:1!important;height:auto!important;min-height:0!important;}
  html[data-build="5"] body:is([data-screen="chats"],[data-screen="approvals"]) .game-stage{grid-row:2!important;height:100%!important;min-height:0!important;overflow:hidden!important;}
  html[data-build="5"] body:is([data-screen="chats"],[data-screen="approvals"]) #app{height:100%!important;min-height:0!important;max-height:100%!important;padding:0!important;overflow:hidden!important;box-sizing:border-box!important;}
  html[data-build="5"] body:is([data-screen="chats"]:has(.tavern-screen[data-mobile-chat="thread"]),[data-screen="approvals"]:has(.approval-workspace:is([data-mobile-pane="sheet"],[data-mobile-pane="chat"][data-mobile-conversation="thread"]))) .game-shell{padding-bottom:0!important;}
  html[data-build="5"] body:is([data-screen="chats"]:has(.tavern-screen[data-mobile-chat="thread"]),[data-screen="approvals"]:has(.approval-workspace:is([data-mobile-pane="sheet"],[data-mobile-pane="chat"][data-mobile-conversation="thread"]))) :is(#mobileNav,.hud-display-controls){display:none!important;}
  html[data-build="5"] body:is([data-screen="chats"]:has(.tavern-screen[data-mobile-chat="thread"]),[data-screen="approvals"]:has(.approval-workspace:is([data-mobile-pane="sheet"],[data-mobile-pane="chat"][data-mobile-conversation="thread"]))) .hud-bar{min-height:44px!important;padding-block:4px!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approvals-screen{
   display:flex!important;flex-direction:column!important;gap:0!important;
   height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;padding:0!important;
  }
  html[data-build="5"] body[data-screen="approvals"] #app .approval-mobile-tabs{display:flex!important;gap:8px;flex:none;padding:5px 8px;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-mobile-tabs button{flex:1;}
  html[data-build="5"] body[data-screen="approvals"] #app .approvals-screen:has(>.approval-workspace[data-mobile-pane="chat"][data-mobile-conversation="thread"])>.approval-mobile-tabs{display:none!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-workspace{
   display:flex!important;flex-direction:column!important;height:0!important;min-height:0!important;max-height:none!important;
   flex:1 1 0!important;overflow:hidden!important;
  }
  html[data-build="5"] body[data-screen="approvals"] #app .approval-workspace[data-mobile-pane="sheet"] .approval-messenger,
  html[data-build="5"] body[data-screen="approvals"] #app .approval-workspace[data-mobile-pane="chat"] .approval-sheet-pane{display:none!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-messenger{
   display:flex!important;flex-direction:column!important;flex:1 1 0!important;
   height:0!important;min-height:0!important;max-height:none!important;overflow:hidden!important;
  }
  html[data-build="5"] body[data-screen="approvals"] #app .approval-contact-list{flex:1 1 0!important;min-height:0!important;max-height:none!important;overflow:auto!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-category-tabs button{font-size:17px!important;min-height:44px!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-search :is(input,button){font-size:17px!important;min-height:44px!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-contact strong{font-size:19px!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-contact :is(small,.approval-message-preview){font-size:17px!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-workspace[data-mobile-conversation="list"] .approval-chat-pane{display:none!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-workspace[data-mobile-conversation="thread"] .approval-messenger>:is(.approval-category-tabs,.approval-search,.approval-contact-list){display:none!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-chat-pane{
   display:flex!important;flex-direction:column!important;flex:1 1 0!important;height:0!important;min-height:0!important;overflow:hidden!important;
  }
  html[data-build="5"] body[data-screen="approvals"] #app .approval-mobile-thread-tools{display:flex!important;flex:none!important;align-items:center;justify-content:space-between;gap:8px;height:40px;min-height:40px;padding:2px 6px;box-sizing:border-box;background:#f2e2c3;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-mobile-thread-tools button{height:36px!important;min-height:36px!important;padding:4px 8px!important;font-size:17px!important;line-height:1.2!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-thread-header{position:relative;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between;gap:8px!important;flex:none!important;min-height:52px!important;max-height:64px!important;padding:6px 8px!important;box-sizing:border-box;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-thread-header>div:first-child{min-width:0;max-height:52px;overflow:hidden;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-thread-header strong{font-size:19px!important;line-height:1.2!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-thread-header small{font-size:16px!important;line-height:1.25!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-thread-header>div>.admin-player-link,
  html[data-build="5"] body[data-screen="approvals"] #app .approval-thread-header>.approval-decision-actions{display:none!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-mobile-actions{display:block!important;flex:none;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-mobile-actions>summary{display:grid;place-items:center;min-height:40px;padding:4px 8px;cursor:pointer;font-size:17px!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-mobile-actions>div{position:absolute;top:100%;right:6px;z-index:10;width:min(280px,calc(100vw - 24px));padding:10px;background:#f7ecd7;border:1px solid #ac8a59;border-radius:8px;box-shadow:0 5px 12px #30201055;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-mobile-actions :is(button,.admin-player-link){min-height:40px!important;font-size:17px!important;line-height:1.3!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-mobile-actions .approval-decision-actions{display:flex!important;margin-top:8px;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-chat-pane .chat-window{
   display:flex!important;flex-direction:column!important;flex:1 1 0!important;
   height:0!important;min-height:0!important;max-height:none!important;overflow:hidden!important;
  }
  html[data-build="5"] body[data-screen="approvals"] #app .approval-chat-pane .messages{
   flex:1 1 0!important;height:0!important;min-height:0!important;max-height:none!important;overflow:auto!important;padding:8px!important;
  }
  html[data-build="5"] body[data-screen="approvals"] #app .approval-chat-pane .message{max-width:100%!important;margin:4px 0!important;gap:5px!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-chat-pane .message-bubble{max-width:92%!important;padding:6px 8px!important;border-width:4px!important;border-image-width:4px!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-chat-pane .message-bubble :is(p,strong){font-size:18px!important;line-height:1.35!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-chat-pane .chat-compose{position:static!important;display:grid!important;grid-template-columns:44px 44px minmax(0,1fr) 44px!important;gap:3px!important;flex:none!important;min-height:56px!important;padding:6px!important;box-sizing:border-box!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-chat-pane .chat-compose :is(.icon-button,.chat-send-button){width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:4px!important;box-sizing:border-box;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-chat-pane .chat-compose textarea{width:100%!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:44px!important;max-height:84px!important;padding:8px 6px!important;font-size:19px!important;line-height:1.3!important;resize:none!important;overflow:auto!important;box-sizing:border-box!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-chat-pane .chat-send-button{font-size:0!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-chat-pane .chat-send-button::after{content:'➤';font-size:22px!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-sheet-pane{height:0!important;min-height:0!important;flex:1 1 0!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-sheet-pane iframe{height:0!important;min-height:0!important;flex:1 1 0!important;}
  /* The player card owns its row; it must not cover the iframe's editor actions. */
  html[data-build="5"] body[data-screen="approvals"] #app .approval-workspace[data-mobile-pane="sheet"] .approval-sheet-pane{flex-direction:column!important;}
  html[data-build="5"] body[data-screen="approvals"] #app .approval-sheet-pane>.approval-person-link{
   position:static!important;inset:auto!important;display:flex!important;align-items:center;justify-content:flex-end;
   flex:0 0 auto!important;min-width:0;min-height:44px;max-width:100%;margin:0;padding:0 6px;
   box-sizing:border-box;border-bottom:1px solid #bca075;background:#edddbd;box-shadow:none!important;
  }
  html[data-build="5"] body[data-screen="approvals"] #app .approval-sheet-pane>.approval-person-link>.admin-player-link{
   display:inline-flex!important;align-items:center;justify-content:center;min-height:44px!important;min-width:0;max-width:100%;
   margin:0!important;padding:6px 10px!important;font-size:16px!important;line-height:1.2!important;
   white-space:normal!important;overflow-wrap:anywhere;box-sizing:border-box;
  }
 }
}


/* assets/ui/shop-management.css */
.shop-management{padding:20px;max-width:1600px;margin:auto;color:#493622;background:#f6ead1;min-height:100%}
.shop-management-heading{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:18px}.shop-management-heading h1{margin:4px 0;font:32px Georgia,serif}.shop-management-heading p{max-width:720px;margin:8px 0;color:#735d40}
.shop-management button{border:1px solid #ac9368;background:#f8edcf;color:#483822;padding:8px 12px;border-radius:6px;cursor:pointer}.shop-management button:hover{background:#e0e8cd}.shop-management .primary-button{background:#d9e6c9;border-color:#8fa375}
.shop-management-tabs{display:flex;gap:8px;border-bottom:1px solid #baa27d;padding-bottom:12px;margin-bottom:18px}.shop-management-tabs [aria-pressed=true]{background:#d7e4c6;border-color:#82966c;font-weight:700}
.shop-management-filters,.shop-stock-bulk{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:12px 0}.shop-management label{display:grid;gap:5px;font-size:13px}.shop-management input,.shop-management select,.shop-management textarea{font:inherit;box-sizing:border-box;min-width:0;max-width:100%;padding:8px;border:1px solid #bda680;border-radius:5px;background:#fffaef;color:#443624}.shop-management input[type=checkbox]{width:18px;height:18px;accent-color:#658250}.shop-management-filters [data-shop-search]{width:320px;max-width:100%}.shop-stock-bulk{padding:10px;background:#ece0c1;border-radius:8px}.shop-stock-bulk input{width:100px}
.shop-management-table{border:1px solid #c1aa82;border-radius:8px;overflow:hidden}.shop-table-head,.shop-stock-row{display:grid;grid-template-columns:minmax(190px,1.3fr) 100px minmax(320px,1.6fr) 90px;gap:12px;align-items:center;padding:12px}.shop-table-head{background:#e4d3af;font-size:12px;font-weight:700}.shop-stock-row{border-top:1px solid #d9c5a0;background:#fcf2dd}.shop-stock-row:nth-child(odd){background:#f4e6c9}.shop-row-identity{display:flex;gap:10px;align-items:center;min-width:0}.shop-row-identity img{width:48px;height:55px;object-fit:contain}.shop-row-identity small{display:block;color:#826a47;margin-top:5px}.shop-stock-row form{display:grid;grid-template-columns:minmax(60px,1fr) minmax(65px,.8fr) 80px auto;gap:8px;align-items:end}.shop-stock-row form input[type=number]{width:100%}.shop-stock-row p{font-size:13px;line-height:1.6;margin:0}.shop-active{justify-items:center}
.shop-catalog-editor,.shop-settings{padding:20px;background:#fff5df;border:1px solid #bba37a;border-radius:10px;margin-bottom:20px}.shop-catalog-editor header{display:flex;align-items:center;justify-content:space-between;gap:15px}.shop-catalog-editor h2,.shop-settings h2{margin:0 0 10px;font:25px Georgia,serif}.shop-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:14px 0}.shop-form-grid .wide{grid-column:1/-1}.shop-form-grid>div{display:grid;gap:10px;align-content:start}.shop-form-grid>div[hidden]{display:none}.shop-management fieldset{padding:14px;border:1px solid #cab28b;border-radius:8px}.shop-management fieldset:disabled{opacity:.7}.shop-management h3{font:18px Georgia,serif;margin:18px 0 8px}.shop-catalog-editor footer{display:flex;gap:10px;margin-top:15px}.shop-form-error{color:#8a3523}.shop-settings{max-width:900px}.shop-settings .shop-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.shop-screen .merchant-chat-history{min-height:200px}.shop-screen .merchant-chat{gap:8px}.shop-screen .merchant-chat input{min-width:0}.shop-screen .merchant-mode{font-size:12px;color:#6c573d}.shop-screen .shopkeeper-game-scene{width:100%;max-width:none}
.club-item-effects{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin:12px 0}.club-item-effects article{padding:12px;border:1px solid #bda680;border-radius:7px;background:#f7edda}.club-item-effects button{margin:5px;padding:6px 10px}.club-item-effects p{font-size:13px}
@media(max-width:1150px){.shop-table-head,.shop-stock-row{grid-template-columns:minmax(160px,1fr) 80px minmax(280px,1.4fr)}.shop-stock-row>button{grid-column:1}.shop-table-head>span:last-child{display:none}}
@media(max-width:760px){.shop-management{padding:12px}.shop-management-heading{display:block}.shop-management-heading h1{font-size:27px}.shop-stock-row{grid-template-columns:minmax(0,1fr) 90px}.shop-stock-row form,.shop-stock-row p{grid-column:1/-1}.shop-table-head{display:none}.shop-form-grid,.shop-settings .shop-form-grid{grid-template-columns:1fr 1fr}.shop-stock-row form{grid-template-columns:minmax(65px,1fr) minmax(65px,1fr) 70px}.shop-stock-row form button{grid-column:1/-1}.shop-management-tabs{flex-wrap:wrap}.shop-management-filters label{width:100%}}
@media(max-width:420px){.shop-form-grid,.shop-settings .shop-form-grid{grid-template-columns:1fr}}

/* Illustrations are part of this screen, with text kept inside the actual scene and book. */
html[data-build="5"] body .shop-screen{background:#f3e6ca!important;background-image:none!important}
html[data-build="5"] body .shop-sticky-wallet{position:relative;top:auto;padding:12px 18px;margin:8px 0 16px;box-shadow:none}
html[data-build="5"] body .shop-sticky-wallet>img{display:block;width:48px;height:58px;object-fit:cover;border-radius:8px}
html[data-build="5"] body .shopkeeper-stage{position:relative;display:block;min-height:430px;height:clamp(430px,52vw,620px);overflow:hidden;border:1px solid #8f653c;border-radius:10px;background:#3d281a!important}
html[data-build="5"] body .shopkeeper-scene-art{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:left center}
html[data-build="5"] body .shopkeeper-side-panel{position:absolute;left:47%;right:4%;top:7%;bottom:9%;display:block;min-width:0}
html[data-build="5"] body .shopkeeper-dialogue{display:flex;flex-direction:column;gap:8px;height:100%;min-height:0;padding:16px;background:#fbefd9ef;border:1px solid #b08d57;box-shadow:0 8px 25px #1c10065c;border-radius:9px;box-sizing:border-box}
html[data-build="5"] body .merchant-name{font:23px Georgia,serif;color:#4c3724}.merchant-badge{display:none}
html[data-build="5"] body .merchant-chat-history{flex:1;min-height:80px;height:auto;max-height:none;padding:8px;background:#f3e5c6;border:1px solid #c4ac7f;overflow:auto}
html[data-build="5"] body .merchant-chat-message{display:flex;gap:8px;margin:7px 0;padding:10px;background:#fff6e3;border:1px solid #d3bd93;border-radius:8px;font-size:14px}
html[data-build="5"] body .merchant-chat-message.merchant{background:#e6edda;border-color:#b0bf98}.merchant-chat-message>img{display:block;width:30px;height:36px;object-fit:cover;border-radius:6px}.merchant-chat-message>div{min-width:0;flex:1}.merchant-chat-message header{display:flex;justify-content:space-between;gap:10px;font-size:12px}.merchant-chat-message time{color:#806747}.merchant-chat-message p{margin:6px 0 0;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
html[data-build="5"] body .merchant-chat{display:flex;flex:none;align-items:center}.merchant-chat input{width:100%;flex:1}.merchant-chat .primary-button{flex:none;padding:10px}
html[data-build="5"] body .shop-ledger-section{margin-top:14px}
html[data-build="5"] body .shop-ledger-shell{position:relative;isolation:isolate;min-height:690px;padding:55px 6% 70px;gap:5%;background:transparent;border:0;box-shadow:0 10px 30px #52392224}
html[data-build="5"] body .shop-ledger-art{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:fill;z-index:-1;pointer-events:none}
html[data-build="5"] body .ledger-page{background:transparent;border:0;box-shadow:none;padding:12px 0;align-content:start}
html[data-build="5"] body .ledger-page>header{color:#725332}
html[data-build="5"] body .ledger-item{grid-template-columns:minmax(0,1fr);padding:10px;background:#fff6df99;border:1px solid #c8ac79;border-radius:5px;gap:8px}
html[data-build="5"] body .ledger-item-main{grid-template-columns:65px minmax(0,1fr);align-items:center;background:transparent;border:0;box-shadow:none;padding:0}
html[data-build="5"] body .ledger-item-main img{display:block;width:65px;height:75px;object-fit:contain}
html[data-build="5"] body .ledger-item-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
html[data-build="5"] body .ledger-item-meta,html[data-build="5"] body .ledger-item-desc{color:#796142}
@media(max-width:760px){html[data-build="5"] body .shopkeeper-stage{height:auto;min-height:0;padding-top:235px}html[data-build="5"] body .shopkeeper-scene-art{height:250px;object-fit:cover;object-position:left 40%}html[data-build="5"] body .shopkeeper-side-panel{position:relative;inset:auto;margin:0 10px 10px}html[data-build="5"] body .shopkeeper-dialogue{height:380px;padding:12px}html[data-build="5"] body .shop-ledger-shell{padding:45px 7% 70px;min-height:680px;grid-template-columns:1fr;gap:0}html[data-build="5"] body .ledger-page{padding:7px 0}.shop-sticky-wallet>img{display:none!important}}

html[data-build="5"] body .shop-ledger-shell{background:#f0e2c6;border-radius:18px;box-shadow:none;padding-top:65px}
html[data-build="5"] body .shop-ledger-art{mix-blend-mode:multiply;clip-path:inset(2.5% 3.5% round 20px)}
html[data-build="5"] body .ledger-item{background:transparent;border:0;min-height:500px;align-content:space-between;padding:15px}
html[data-build="5"] body .ledger-item-main{display:flex;flex-direction:column;gap:15px;align-items:stretch;cursor:pointer}
html[data-build="5"] body .ledger-item-art{display:flex;justify-content:center}
html[data-build="5"] body .ledger-item-main img{width:150px;height:160px;object-fit:contain}
html[data-build="5"] body .ledger-item-copy{display:grid;gap:12px;font-size:16px}.ledger-item-copy>strong{font-size:23px;line-height:1.3}
html[data-build="5"] body .ledger-item-desc{font-size:16px;line-height:1.65;white-space:normal;overflow:visible;max-height:none;display:block}
html[data-build="5"] body .ledger-item-meta{font-size:14px;line-height:1.5}
html[data-build="5"] body .shop-screen :is(.ledger-item-action,.ledger-tab,.shop-filter-reset,.ledger-page-button){background:#f6e9c9;border:1px solid #9d7a4b;color:#483522;padding:8px 14px;border-radius:6px;cursor:pointer}
html[data-build="5"] body .shop-screen .ledger-item-action.buy{background:#dce6c8;border-color:#83965e}
html[data-build="5"] body .shop-screen .ledger-page-controls{padding:5px 12px;background:#ead7ae;border-radius:7px;border:1px solid #ab8d5d}
html[data-build="5"] body .shop-screen .ledger-tab.active{background:#d9c197;font-weight:bold}
html[data-build="5"] body .shop-item-detail-card{display:grid;grid-template-columns:180px minmax(0,1fr);gap:20px}.shop-item-detail-card>img{display:block;width:100%;max-height:240px;object-fit:contain}
@media(max-width:760px){html[data-build="5"] body .ledger-item{min-height:350px;padding:10px}html[data-build="5"] body .ledger-item-main img{height:120px;width:110px}html[data-build="5"] body .ledger-item-copy{font-size:15px}html[data-build="5"] body .shop-item-detail-card{grid-template-columns:minmax(0,1fr)}}

.shop-scope-picker{display:flex;align-items:center;gap:20px;padding:16px 20px;margin:0 0 18px;border:1px solid #b59a6c;border-radius:12px;background:#efe6ce;color:#453b2e}.shop-scope-picker label{display:grid;gap:6px;min-width:220px;font-weight:700}.shop-scope-picker select{max-width:100%;padding:10px;border-radius:6px;background:#fff9e9;color:#453b2e;border:1px solid #b59a6c}.shop-scope-picker p{margin:0;line-height:1.5;font-size:14px}@media(max-width:700px){.shop-scope-picker{display:block}.shop-scope-picker p{margin-top:10px}.shop-scope-picker label{min-width:0}}


/* assets/ui/shop-scene.css */
/* One counter, one book. All coordinates for pages and ribbons belong to the book. */
html[data-build="5"] body .shop-scene[data-shop-closed="true"]{background:#f1e2c7!important;overflow:auto}
html[data-build="5"] body .shop-scene .shop-access-closed{margin:0;border:0;padding:0 24px 24px;background:transparent}
html[data-build="5"] body .shop-scene .shop-access-closed .shop-sticky-wallet{margin:0 -24px 24px;flex-wrap:wrap}
html[data-build="5"] body .shop-scene[data-shop-closed="true"] :is([data-shop-scroll-book],[data-shop-sound]){display:none}
html[data-build="5"] body .shop-scene .shop-access-closed .merchant-chat-history{max-height:50vh;overflow:auto}
html[data-build="5"] body .shop-scene{--shop-ink:#43301e;--shop-green:#344f3f;--shop-gold:#b38a48;padding:0;background:#392315!important;background-image:none!important;color:var(--shop-ink);overflow:hidden;border:1px solid #70502d;border-radius:12px;isolation:isolate}
html[data-build="5"] body .shop-scene *{box-sizing:border-box}
html[data-build="5"] body .shop-scene button{font-family:inherit;cursor:pointer}
html[data-build="5"] body .shop-scene button:disabled{cursor:not-allowed;opacity:.54}
html[data-build="5"] body .shop-scene :is(button,input,select,summary,[tabindex]):focus-visible{outline:2px solid #477560;outline-offset:3px}
html[data-build="5"] body .shop-scene .shopkeeper-game-scene{position:relative;display:block;max-width:1480px;width:100%;margin:auto;background:repeating-linear-gradient(0deg,transparent 0 89px,#190d08a6 90px,#98704059 93px,transparent 95px),repeating-linear-gradient(2deg,#583820 0px,#624129 2px,#56351f 4px,#65432a 7px);box-shadow:inset 0 -30px 60px #100805,inset 0 0 90px #0008}
html[data-build="5"] body .shop-scene .shop-sticky-wallet{position:relative;z-index:20;display:flex;gap:15px;align-items:center;margin:0;padding:9px 24px;background:linear-gradient(110deg,#23180f,#453022 60%,#24190f)!important;border:0;border-bottom:1px solid #947044;border-radius:0;box-shadow:0 3px 12px #0008;color:#e8d7b4}
html[data-build="5"] body .shop-scene .shop-sticky-wallet>img{display:block;width:37px;height:43px;border-radius:45% 45% 5px 5px;border:1px solid #b38a48;object-fit:cover}
html[data-build="5"] body .shop-scene .shop-sticky-wallet label{display:grid;gap:1px;max-width:40%;font-size:10px;letter-spacing:.05em;color:#c1a479}
html[data-build="5"] body .shop-scene .shop-sticky-wallet select{padding:2px 18px 2px 0;color:#f0dfbc;background:transparent;border:0;font:16px Georgia,serif;min-width:0;width:100%}
html[data-build="5"] body .shop-scene .shop-sticky-wallet select option{background:#f7eacc;color:#483522}
html[data-build="5"] body .shop-scene .sticky-wallet-gold{display:grid;gap:0;margin-left:auto;text-align:right;color:#f0d290}.shop-scene .sticky-wallet-gold>small{font-size:10px;text-transform:uppercase;letter-spacing:.09em}.shop-scene .sticky-wallet-gold strong{font:23px Georgia,serif}.shop-scene .sticky-wallet-gold strong small{font-size:13px}
html[data-build="5"] body .shop-scene [data-shop-sound]{border:1px solid #83623f;background:transparent;color:#d7c19a;padding:6px 8px;font-size:11px;border-radius:3px}
html[data-build="5"] body .shop-scene .shopkeeper-scene-scroll{padding:0;overflow:visible}
html[data-build="5"] body .shop-scene .shopkeeper-stage{position:relative;height:clamp(340px,34vw,490px);min-height:0;border:0;border-radius:0;overflow:hidden;background:#271b12!important;padding:0}
.shop-scene .merchant-scene-canvas{position:absolute;top:0;left:0;width:100%;aspect-ratio:1672/941;overflow:hidden}
html[data-build="5"] body .shop-scene .shopkeeper-scene-art,.shop-scene .merchant-living-layer{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:fill;pointer-events:none}
.shop-scene .merchant-living-layer{clip-path:polygon(10% 25%,14% 20%,18% 14%,24% 12%,28% 14%,32% 12%,37% 16%,37% 27%,40% 32%,35% 38%,32% 45%,35% 52%,36% 62%,33% 68%,26% 70%,17% 68%,11% 66%,13% 56%,17% 48%,18% 39%,16% 35%,13% 32%);transform-origin:24% 69%;animation:merchant-breath 12s ease-in-out infinite;will-change:transform}
.shop-scene .shopkeeper-stage:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,#54351f 0,transparent 18%),linear-gradient(90deg,#0804024d,transparent 18%,transparent 80%,#08040255);z-index:1}
.shop-scene .shop-lantern-light{position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;background:radial-gradient(ellipse at 84% 28%,#f8bb5935,transparent 23%),radial-gradient(ellipse at 7% 50%,#f7b74725,transparent 25%);animation:shop-firelight 7.8s ease-in-out infinite alternate}
.shop-scene .shop-dust{position:absolute;inset:0;pointer-events:none}.shop-scene .shop-dust i{position:absolute;width:2px;height:2px;border-radius:50%;background:#ffedbe;opacity:0;top:45%;left:43%;animation:shop-dust 17s linear infinite}.shop-scene .shop-dust i:nth-child(2){top:36%;left:62%;animation-delay:-4s}.shop-scene .shop-dust i:nth-child(3){top:59%;left:15%;animation-delay:-10s}.shop-scene .shop-dust i:nth-child(4){top:18%;left:83%;animation-delay:-7s}.shop-scene .shop-dust i:nth-child(5){top:64%;left:71%;animation-delay:-13s}
html[data-build="5"] body .shop-scene .merchant-presence{position:absolute;z-index:3;left:7%;bottom:20px;min-width:200px;max-width:36%;padding:7px 15px;border:1px solid #977343;border-radius:3px;color:#f3dfb8;background:linear-gradient(110deg,#2e2116e8,#483020df);box-shadow:0 4px 13px #0006;transform:rotate(-1deg);text-align:left}
.shop-scene .merchant-presence span{display:block;font:19px Georgia,serif}.shop-scene .merchant-presence small{display:block;font-size:11px;line-height:1.5;color:#d0b78d}
html[data-build="5"] body .shop-scene .shopkeeper-side-panel{position:absolute;left:49%;right:5%;top:6%;bottom:7%;display:block;z-index:3;min-width:0}
html[data-build="5"] body .shop-scene .shopkeeper-dialogue{display:flex;flex-direction:column;gap:0;height:100%;min-height:0;border:1px solid #9a7849;border-radius:4px 4px 16px 4px;background:linear-gradient(110deg,#f7e5c8fa,#ecce9ded),url('/assets/ui/paper-grain.svg');padding:14px 20px 12px;box-shadow:0 12px 22px #0b050bab,inset 0 0 28px #92592130,inset 0 0 0 4px #9a713324;transform:rotate(.5deg)}
.shop-scene .merchant-dialogue-heading{position:relative;padding-bottom:9px;border-bottom:1px solid #ac8a584f}.shop-scene .merchant-dialogue-heading>span{font-size:9px;letter-spacing:.16em;color:#826340}.shop-scene .merchant-dialogue-heading:after{content:"✦";position:absolute;right:0;top:10px;color:#967346;font-size:25px}
html[data-build="5"] body .shop-scene .merchant-name{font:25px Georgia,serif;color:#45301f;margin:2px 0 3px}
html[data-build="5"] body .shop-scene .merchant-mode{font-size:10px;color:#806543}
html[data-build="5"] body .shop-scene .merchant-chat-history{min-height:55px;flex:1;max-height:none;height:auto;background:transparent;border:0;border-radius:0;box-shadow:none;padding:4px 5px 4px 0;overflow:auto;scrollbar-width:thin;scrollbar-color:#a88a5d transparent;overscroll-behavior:contain}
html[data-build="5"] body .shop-scene .merchant-chat-message{display:block;background:transparent;border:0;border-left:2px solid #9b815446;border-radius:0;padding:5px 8px;margin:9px 0;box-shadow:none;color:#503c29;font-size:13px}
html[data-build="5"] body .shop-scene .merchant-chat-message.merchant{background:transparent;border-left:2px solid #51745d}.shop-scene .merchant-chat-message.player{margin-left:18px!important;font-style:italic}.shop-scene .merchant-chat-message.trade{border-left:2px solid #aa813a!important;background:#b9954420!important;font-size:12px!important}
html[data-build="5"] body .shop-scene .merchant-chat-message header{display:flex;justify-content:space-between;font-size:10px;color:#806644}.shop-scene .merchant-chat-message header strong{color:#3a523a}.shop-scene .merchant-chat-message time{font-size:10px;opacity:.65}
html[data-build="5"] body .shop-scene .merchant-chat-message p{font-size:13px;line-height:1.5;margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere}.shop-scene .merchant-chat-message.is-new{animation:merchant-reply .35s ease-out both}.shop-scene .merchant-subject{display:block;color:#7b5b2d;font-size:11px;margin-top:3px}
html[data-build="5"] body .shop-scene .merchant-chat-empty{color:#846c4f;display:grid;place-content:center;min-height:100px;font:italic 15px/1.7 Georgia,serif;text-align:center}
.shop-scene .merchant-status{min-height:16px;margin:3px 0;font-size:10px;color:#775732}.shop-scene .merchant-focus{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #ac8a5859;padding:5px 0;font-size:11px;color:#3e5541}.shop-scene .merchant-focus[hidden],.shop-scene [data-merchant-latest][hidden]{display:none}.shop-scene .merchant-focus button{padding:1px 6px;border:0;background:transparent;color:#826442;font-size:18px}
html[data-build="5"] body .shop-scene .merchant-chat{display:flex;gap:6px;align-items:stretch;border-top:1px solid #99764766;padding-top:7px;margin:0}.shop-scene .merchant-chat input{width:0;min-width:0;flex:1;border:0!important;border-bottom:1px solid #967044!important;background:#fff3d238!important;border-radius:0!important;padding:6px 0;color:#4e3825;font:13px Georgia,serif;box-shadow:none!important}
html[data-build="5"] body .shop-scene .merchant-chat .primary-button{padding:6px 10px;border:1px solid #6d7751;border-radius:2px;color:#f4e6bd;background:#3c5844;font-size:12px;box-shadow:0 2px 0 #263b2d;transition:transform .15s,background .15s}.shop-scene .merchant-chat button:hover{transform:translateY(-1px)}
.shop-scene .merchant-new-reply{align-self:center;padding:3px 10px;font-size:10px;color:#345840;border:1px solid #8ba078;background:#e0e4c4;border-radius:2px}
/* Paper, leather and a stable reading plane shared by every control. */
html[data-build="5"] body .shop-scene .shop-ledger-section{position:relative;z-index:5;margin:-12px 0 0;padding:32px 4% 48px;background:radial-gradient(ellipse at 50% 0,#b6834f20,transparent 60%)}
html[data-build="5"] body .shop-scene .shop-book-ui{position:relative;display:block;padding:0;border:0;border-radius:0;background:transparent!important;background-image:none!important;box-shadow:none!important;perspective:2000px}
html[data-build="5"] body .shop-scene .shop-ledger-viewport{padding:0 12px 18px;overflow:visible;perspective:2400px}
html[data-build="5"] body .shop-scene .shop-ledger-shell{position:relative;display:block;min-height:0;margin:0 auto;padding:20px 25px 48px;width:100%;max-width:1220px;background:transparent;border:0;border-radius:0;isolation:auto;box-shadow:none;transform:rotateX(3deg);transform-origin:center 40%;transform-style:preserve-3d}
.shop-scene .ledger-cover{position:absolute;inset:6px -10px -6px;border:2px solid #a88548;border-radius:12px 18px 19px 12px;background:linear-gradient(90deg,#2a382b,#384d38 4%,#233327 49%,#16251c 50%,#354b35 54%,#283e2f);box-shadow:0 9px 0 #1e2116,0 11px 0 #7f6036,0 25px 26px #1a0b0dcc,0 45px 50px #1a0b0870,inset 0 0 0 5px #26352b,inset 0 0 0 6px #a4874a;pointer-events:none}
.shop-scene .ledger-paper-block{position:absolute;inset:0 0 4px;border-radius:9px 12px 12px 9px;background:repeating-linear-gradient(0deg,#c4aa73 0 1px,#efdcac 1px 3px,#7e6037 3px 4px);box-shadow:0 3px 2px #25150870;pointer-events:none}
.shop-scene .ledger-paper-block:before{content:"";position:absolute;inset:-1px 0 11px;background:#ebd9b2 url('/assets/ui/paper-grain.svg') center/cover;border-radius:8px 10px 45% 9px/8px 10px 7px 9px;box-shadow:inset 18px 0 35px #b38c4745,inset -18px 0 35px #ae844338}
.shop-scene .ledger-inscription{position:relative;display:flex;justify-content:space-between;gap:15px;color:#947043;padding:5px 14px 11px;font-size:10px;letter-spacing:.16em;border-bottom:1px solid #b293615c}.shop-scene .ledger-inscription small{letter-spacing:0;white-space:nowrap}
.shop-scene .ledger-bookmark-rail{position:absolute;left:16px;right:16px;top:-35px;z-index:0;height:46px;overflow:visible}
html[data-build="5"] body .shop-scene .ledger-tabs{position:static;display:flex;justify-content:center;gap:5px;width:100%;padding:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#af935b transparent;white-space:nowrap;transform:none}
html[data-build="5"] body .shop-scene .ledger-tab{flex:0 0 auto;min-height:44px;padding:8px 12px 15px;background:linear-gradient(90deg,#29412f,#496447 12%,#496447 85%,#2e4935)!important;color:#ebdbb3;border:1px solid #152d20;border-bottom:0;border-radius:3px 3px 0 0;font:12px Georgia,serif;box-shadow:2px 0 4px #0006,inset 0 0 0 2px #c1a66046;transform:translateY(7px);transition:transform .2s,color .2s;clip-path:polygon(0 0,100% 0,100% 100%,50% 88%,0 100%)}
html[data-build="5"] body .shop-scene .ledger-tab:nth-child(4n+2){background:linear-gradient(90deg,#633726,#965838 15%,#955635 85%,#673924)!important}.shop-scene .ledger-tab:nth-child(4n+3){filter:hue-rotate(30deg)}
html[data-build="5"] body .shop-scene .ledger-tab:hover,html[data-build="5"] body .shop-scene .ledger-tab.active{transform:translateY(0);color:#fff3c4;font-weight:600}
.shop-scene .ledger-find{position:relative;margin:5px 14px 12px;color:#6b5434;z-index:1}.shop-scene .ledger-find>summary{display:flex;gap:10px;align-items:center;justify-content:space-between;cursor:pointer;font:italic 14px Georgia,serif;padding:7px 0;list-style:none}.shop-scene .ledger-find>summary::-webkit-details-marker{display:none}.shop-scene .ledger-find>summary span{font-size:22px}
html[data-build="5"] body .shop-scene .shop-ledger-filters{display:grid;grid-template-columns:2fr repeat(2,1fr);gap:9px 16px;padding:8px 0 12px;border-block:1px dashed #b3935f66}
.shop-scene .shop-ledger-filters label{display:grid;gap:3px;font-size:10px;color:#7e623b;min-width:0}.shop-scene .shop-ledger-filters :is(input,select){min-width:0;width:100%;padding:4px 1px;border:0;border-bottom:1px solid #a788596b;border-radius:0;background:transparent;color:#493a23;font:13px Georgia,serif;box-shadow:none}.shop-scene .shop-ledger-filters input[type=checkbox]{width:14px;accent-color:#3d694d}
.shop-scene .shop-ledger-filters .ledger-checkbox{display:flex;align-items:center;gap:6px;font-size:12px}
html[data-build="5"] body .shop-scene .shop-filter-reset{border:0;border-bottom:1px dotted #836137;background:transparent;padding:4px 0;border-radius:0;justify-self:start;color:#79562e;font:italic 12px Georgia,serif}
.shop-scene .ledger-leaves{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:0;perspective:2200px;transform-style:preserve-3d;isolation:isolate}
/* Old global rules explicitly flattened and hid every page animation. */
@layer reset{
 html[data-build="5"] body .shop-scene .ledger-page{position:relative!important;inset:auto!important;transform:none!important}
 html[data-build="5"] body .shop-scene .ledger-page.ledger-turn-copy{position:absolute!important;inset:auto!important;top:0!important}
 html[data-build="5"] body .shop-scene .ledger-spine{display:block!important}
}
html[data-build="5"] body .shop-scene .ledger-page{display:flex;flex-direction:column;gap:0;min-width:0;min-height:615px;height:auto;padding:8px 28px 15px;border:0;border-radius:3px 12px 20px 3px/3px 8px 5px 3px;box-shadow:none;background:#f3e3bd url('/assets/ui/paper-grain.svg') center/cover;color:#43311e;overflow:hidden}
html[data-build="5"] body .shop-scene .ledger-left{background:linear-gradient(90deg,#bd995027,transparent 8%,transparent 84%,#8c693036 96%,#63432259),url('/assets/ui/paper-grain.svg') center/cover,#f3e3bd}
html[data-build="5"] body .shop-scene .ledger-right{background:linear-gradient(90deg,#63432259,#8c693027 4%,transparent 13%,transparent 94%,#bd99502c),url('/assets/ui/paper-grain.svg') center/cover,#f3e3bd}
.shop-scene .ledger-page>header{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #a5855038;padding-bottom:8px;font:italic 12px Georgia,serif;color:#8b6b3c}.shop-scene .ledger-page>header i{font-style:normal;font-size:19px;color:#ae874a}
html[data-build="5"] body .shop-scene .ledger-item{position:relative;display:flex;flex:1;flex-direction:column;gap:8px;min-height:0;width:100%;padding:10px 0 0;margin:0;border:0;border-radius:0;background:transparent!important;background-image:none!important;box-shadow:none!important}
.shop-scene .ledger-item-overline{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#8d6839;font-size:9px;letter-spacing:.09em;text-transform:uppercase}.shop-scene .ledger-item h2{margin:1px 0 0;text-align:center;font:27px/1.16 Georgia,serif;color:#463119;min-height:32px;overflow-wrap:anywhere}
html[data-build="5"] body .shop-scene .ledger-item-main{position:relative;display:flex;flex:none;flex-direction:column;align-items:center;justify-content:center;gap:0;width:100%;border:0;border-radius:0;background:radial-gradient(ellipse at 50% 50%,#cfad5940,transparent 68%);padding:0;box-shadow:none;min-height:145px;overflow:visible;color:#816139}
html[data-build="5"] body .shop-scene .ledger-item-main img{width:150px;height:142px;max-width:75%;object-fit:contain;display:block;mix-blend-mode:multiply;filter:sepia(.14) saturate(.8) drop-shadow(0 5px 3px #60462330);transition:transform .3s,filter .3s}
.shop-scene .ledger-item-main>span{font:italic 10px Georgia,serif;opacity:.65}.shop-scene .ledger-item-main:hover img,.shop-scene .ledger-item.selected .ledger-item-main img{transform:translateY(-4px) rotate(-3deg);filter:sepia(.05) saturate(1) drop-shadow(0 10px 6px #6046234d)}
.shop-scene .ledger-item.selected h2{color:#34533d}.shop-scene .ledger-item.selected:before{content:"✦";position:absolute;right:-16px;top:50px;color:#6a8051;font-size:18px}
.shop-scene .ledger-item-reading{height:185px;min-height:185px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b799604d transparent;margin:0;padding-right:5px}
html[data-build="5"] body .shop-scene .ledger-item-desc{font:14px/1.6 Georgia,serif;white-space:pre-wrap;overflow-wrap:anywhere;margin:3px 0 12px;max-height:none;display:block;color:#554027}
.shop-scene .ledger-item-stats{display:grid;grid-template-columns:1fr 1fr;gap:7px 14px;margin:5px 0 9px}.shop-scene .ledger-item-stats>div{display:flex;flex-direction:column;border-bottom:1px dotted #ae8c5966;padding-bottom:4px}.shop-scene .ledger-item-stats dt{font-size:10px;color:#977245}.shop-scene .ledger-item-stats dd{font:13px/1.4 Georgia,serif;margin:0;color:#514123}
html[data-build="5"] body .shop-scene .ledger-item-meta{font:italic 12px/1.5 Georgia,serif;color:#83613c;margin:5px 0;overflow-wrap:anywhere}
.shop-scene .ledger-item-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #9b7b494f;margin-top:auto;padding-top:9px}.shop-scene .ledger-price{display:flex;align-items:baseline;gap:5px;color:#74511f}.shop-scene .ledger-price b{font:29px Georgia,serif}.shop-scene .ledger-price s{font:italic 13px Georgia,serif;opacity:.65}.shop-scene .ledger-price span{font-size:10px}.shop-scene .ledger-stock{font:italic 12px Georgia,serif;color:#896d46}
.shop-scene .ledger-trade-note{min-height:14px;font-size:10px;color:#8a6940;margin:0;line-height:1.4}
html[data-build="5"] body .shop-scene .ledger-item-actions{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:8px;margin-top:2px}
html[data-build="5"] body .shop-scene .ledger-item-action{position:relative;min-width:0;min-height:40px;padding:8px 6px;font:italic 14px Georgia,serif;color:#6d522e;background:transparent;border:0;border-bottom:1px dashed #997644;border-radius:0;box-shadow:none;transition:transform .18s,filter .18s}
html[data-build="5"] body .shop-scene .ledger-item-action.buy{color:#f2e3bb;background:linear-gradient(145deg,#46664a,#274533);border:1px solid #213d2b;border-radius:50% 4px 50% 4px/12px 4px 12px 4px;padding:10px 15px;box-shadow:inset 0 0 0 2px #acb78070,0 3px 0 #203323,0 5px 6px #70502e4d;transform:rotate(-2deg);font-style:normal;letter-spacing:.04em}
.shop-scene .ledger-item-action.buy span{font-size:10px;margin-right:5px;color:#dbcf93}.shop-scene .ledger-item-action:hover:not(:disabled){filter:brightness(1.15);transform:translateY(-2px) rotate(-1deg)}.shop-scene .ledger-item-action:active:not(:disabled){transform:translateY(2px) scale(.97)}
.shop-scene .ledger-receipt{font:italic 11px/1.4 Georgia,serif;color:#a05338;min-height:17px;overflow-wrap:anywhere}.shop-scene .ledger-receipt.stamped{color:#45643f;animation:shop-stamp .38s ease-out both}.shop-scene [data-transaction] .ledger-item-main img{animation:shop-consider 1.5s ease-in-out infinite alternate}
.shop-scene .ledger-folio-number{font:11px Georgia,serif;color:#977949;text-align:center;padding-top:8px}.shop-scene .ledger-spine{position:absolute;z-index:3;pointer-events:none;top:0;bottom:0;left:calc(50% - 10px);width:20px;background:linear-gradient(90deg,transparent,#76552540 36%,#44301c73 48%,#b5985866 53%,transparent);box-shadow:none}
.shop-scene .ledger-page-empty{min-height:520px;display:grid;align-content:center;text-align:center;padding:25px;color:#96784a;font:italic 16px/1.6 Georgia,serif}.shop-scene .ledger-page-empty>span{font-size:50px}.shop-scene .ledger-page-empty h3{margin:8px;font:24px Georgia,serif}.shop-scene .ledger-page-empty button{border:0;border-bottom:1px dotted #8c6935;background:transparent;color:#3d654b;margin:10px auto;padding:5px}
html[data-build="5"] body .shop-scene .ledger-page-controls{position:relative;inset:auto;display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0 -35px;padding:0 15px;border:0;border-radius:0;box-shadow:none;background:transparent;color:#957747;font:13px Georgia,serif}
html[data-build="5"] body .shop-scene .ledger-page-button{position:relative;min-width:78px;min-height:30px;background:transparent;color:#836037;border:0;border-radius:0;font:22px Georgia,serif;padding:0 6px;transition:transform .2s}.shop-scene .ledger-page-button span{font:italic 12px Georgia,serif}.shop-scene .ledger-page-button:after{content:"";position:absolute;bottom:-2px;right:0;border-style:solid;border-width:0 0 20px 20px;border-color:transparent transparent #ab864758 transparent;opacity:0;transition:opacity .2s,transform .2s}.shop-scene .ledger-prev:after{left:0;right:auto;transform:scaleX(-1)}.shop-scene .ledger-page-button:hover:not(:disabled):after{opacity:1;transform:translateY(-3px)}.shop-scene .ledger-prev:hover:not(:disabled):after{transform:translateY(-3px) scaleX(-1)}
.shop-scene .shop-counter-lip{height:18px;background:linear-gradient(#352315,#825431 25%,#432814 52%,#21140c);box-shadow:0 -2px 0 #b3854f33}
/* Moving pages keep their original content and reverse side attached to the paper. */
.shop-scene .ledger-turn-layer{position:absolute;z-index:8;pointer-events:none;transform-style:preserve-3d}
.shop-scene .ledger-leaf-strip{position:absolute;top:0;left:0;transform-origin:0 50%;transform-style:preserve-3d;will-change:transform}
.shop-scene .ledger-leaf-face{position:absolute;inset:0;overflow:hidden;backface-visibility:hidden;transform:translateZ(.35px);background:#ecd8ae}
.shop-scene .ledger-leaf-face.leaf-back{transform:rotateY(180deg) translateZ(.35px)}
.shop-scene .ledger-leaf-face:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#64471f70,transparent 80%);opacity:var(--leaf-shade,0);pointer-events:none}
html[data-build="5"] body .shop-scene .ledger-turn-copy{margin:0;pointer-events:none;max-width:none;min-height:0;flex:none}
.shop-scene .ledger-turn-under{z-index:2}.shop-scene .ledger-moving-shadow{position:absolute;z-index:6;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent,#2e1b0cab 45%,#2e1b0cb3 55%,transparent);filter:blur(8px);opacity:0;transform-origin:center}
.shop-scene[aria-busy=true]{cursor:progress}.shop-scene[data-reaction=reply] .merchant-living-layer,.shop-scene[data-reaction=welcome] .merchant-living-layer,.shop-scene[data-reaction=success] .merchant-living-layer{animation:merchant-nod 1.4s ease-in-out both,merchant-breath 12s 1.4s ease-in-out infinite}
.shop-scene:is([data-reaction=select],[data-reaction=listen],[data-reaction=haggle]) .merchant-living-layer{animation:merchant-attend 2.5s ease-in-out both,merchant-breath 12s 2.5s ease-in-out infinite}
.shop-scene.shop-leaving{animation:shop-leave .18s ease-in both}
@keyframes merchant-breath{0%,22%,50%,100%{transform:translateY(0) scale(1.002)}35%,78%{transform:translateY(-1px) scale(1.003)}}
@keyframes merchant-nod{0%,100%{transform:rotate(0) scale(1.003)}38%{transform:translateY(1.5px) rotate(.35deg) scale(1.004)}70%{transform:translateY(-1px) rotate(-.15deg) scale(1.003)}}
@keyframes merchant-attend{0%,100%{transform:rotate(0) scale(1.003)}35%,70%{transform:rotate(.35deg) translateY(-1px) scale(1.004)}}
@keyframes shop-firelight{0%,100%{opacity:.55}23%{opacity:.8}28%{opacity:.65}67%{opacity:.95}72%{opacity:.78}}
@keyframes shop-dust{0%,100%{opacity:0;transform:translate(0,0)}25%,70%{opacity:.35}90%{opacity:0;transform:translate(24px,-60px)}}
@keyframes merchant-reply{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes book-arrive{from{opacity:0;transform:translateY(18px) rotateX(4deg)}to{opacity:1;transform:none}}
@keyframes shop-stamp{0%{opacity:0;transform:scale(1.13) rotate(-5deg)}65%{opacity:1;transform:scale(.98) rotate(1deg)}100%{transform:none}}
@keyframes shop-consider{from{filter:sepia(.2) brightness(.9)}to{filter:sepia(.05) brightness(1.08)}}
@keyframes shop-leave{to{opacity:.3;transform:translateY(4px)}}
@media(max-width:1000px){html[data-build="5"] body .shop-scene .shopkeeper-stage{height:380px}.shop-scene .merchant-scene-canvas{width:120%;left:-3%}html[data-build="5"] body .shop-scene .shopkeeper-side-panel{left:48%;right:3%;top:5%;bottom:5%}html[data-build="5"] body .shop-scene .shopkeeper-dialogue{padding:10px 14px}.shop-scene .ledger-item h2{font-size:23px}html[data-build="5"] body .shop-scene .ledger-page{padding-inline:18px}html[data-build="5"] body .shop-scene .shop-ledger-shell{padding-inline:14px}.shop-scene .ledger-item-stats{gap:6px 10px}html[data-build="5"] body .shop-scene .ledger-item-action{font-size:12px}html[data-build="5"] body .shop-scene .ledger-item-action.buy{padding:9px 12px}.shop-scene .ledger-inscription{letter-spacing:.08em}}
@media(max-width:660px){html[data-build="5"] body .shop-scene .shop-sticky-wallet{padding:8px 12px;gap:9px}.shop-scene .shop-sticky-wallet label{max-width:42%}.shop-scene [data-shop-sound]{font-size:9px!important;padding:5px!important}.shop-scene .sticky-wallet-gold strong{font-size:20px}html[data-build="5"] body .shop-scene .shopkeeper-stage{height:600px;padding:0}.shop-scene .merchant-scene-canvas{width:180%;left:-6%}html[data-build="5"] body .shop-scene .merchant-presence{top:195px;left:7%;bottom:auto;max-width:70%}html[data-build="5"] body .shop-scene .shopkeeper-side-panel{top:262px;left:6%;right:6%;bottom:22px}.shop-scene .ledger-leaves{grid-template-columns:1fr}.shop-scene .ledger-spine{visibility:hidden}.shop-scene .ledger-item h2{font-size:27px}.shop-scene .ledger-item-reading{height:210px;min-height:210px}html[data-build="5"] body .shop-scene .shop-ledger-section{padding:30px 5% 35px;margin-top:-8px}html[data-build="5"] body .shop-scene .ledger-page{padding:8px 16px 15px;min-height:640px}html[data-build="5"] body .shop-scene .shop-ledger-shell{padding:12px 5px 45px;transform:none}html[data-build="5"] body .shop-scene .shop-ledger-viewport{padding-inline:3px}.shop-scene .ledger-inscription{font-size:8px;letter-spacing:.035em;padding-inline:10px}.shop-scene .ledger-inscription small{font-size:8px}.shop-scene .ledger-find{margin-inline:12px}.shop-scene .ledger-bookmark-rail{left:0;right:0}html[data-build="5"] body .shop-scene .ledger-tabs{justify-content:flex-start}html[data-build="5"] body .shop-scene .ledger-tab{font-size:11px;padding-inline:12px}html[data-build="5"] body .shop-scene .shop-ledger-filters{grid-template-columns:1fr 1fr}.shop-scene .ledger-item-action{font-size:14px!important}.shop-scene .ledger-item-main img{height:140px!important}.shop-scene .ledger-page-controls{padding-inline:5px!important}}
@media(prefers-reduced-motion:reduce){html[data-build="5"] body .shop-scene *,html[data-build="5"] body .shop-scene *:before,html[data-build="5"] body .shop-scene *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.shop-scene .merchant-living-layer{display:none}}

/* The club's universal text palette cannot be inherited by dark wood or seals. */
html[data-build="5"] body .shop-scene .shop-sticky-wallet :is(label,small){color:#cdb68d!important}
html[data-build="5"] body .shop-scene .shop-sticky-wallet :is(strong,b,select,button){color:#f1d9a7!important}
html[data-build="5"] body .shop-scene .shop-sticky-wallet select{background:transparent!important;border:0!important;box-shadow:none!important;min-height:22px}
html[data-build="5"] body .shop-scene .shop-sticky-wallet option{color:#483522!important}
html[data-build="5"] body .shop-scene .merchant-presence :is(span,small){color:#e8cfa5!important}
html[data-build="5"] body .shop-scene :is(.ledger-tab,.ledger-tab span,.ledger-item-action.buy,.ledger-item-action.buy span,.merchant-chat .primary-button,.merchant-chat .primary-button span){color:#f6e4b8!important}
html[data-build="5"] body .shop-scene .merchant-chat .primary-button{background:#3c5844!important;border-color:#73845b!important}
html[data-build="5"] body .shop-scene .ledger-item-action.buy{background:linear-gradient(145deg,#46664a,#274533)!important}
html[data-build="5"] body .shop-scene .merchant-chat-message :is(p,strong,time){color:#57412a!important}
html[data-build="5"] body .shop-scene .merchant-chat-message.merchant strong{color:#3c6544!important}

/* Painted production assets replace the prototype's CSS materials. */
html[data-build="5"] body .shop-scene .shopkeeper-game-scene{background:#3d2718 url('/assets/shop/v2/interior.png') center bottom/auto 300% no-repeat;box-shadow:none}
html[data-build="5"] body .shop-scene .shop-ledger-section{padding:35px 2% 22px;margin-top:-5px;background:none}
.shop-scene .merchant-sprite{position:absolute;left:7%;top:7%;width:39%;height:auto;aspect-ratio:1;pointer-events:none;filter:brightness(.89) saturate(.9)}
.shop-scene .merchant-scene-canvas{overflow:visible}
html[data-build="5"] body .shop-scene .shopkeeper-stage{height:clamp(360px,35vw,495px)}
html[data-build="5"] body .shop-scene .merchant-presence{bottom:12px;max-width:35%;background:transparent url('/assets/shop/v2/fittings.png') 100% 86%/200% 306% no-repeat;box-shadow:none;border:0;transform:none;min-height:65px;padding:13px 24px}
html[data-build="5"] body .shop-scene .shopkeeper-dialogue{background:none;border:0;box-shadow:none;transform:none;border-radius:0;padding:23px 30px 25px;position:relative;isolation:isolate}
.shop-scene .shopkeeper-dialogue:before{content:"";position:absolute;z-index:-1;inset:-2px -10px;background:url('/assets/shop/v2/fittings.png') 0 0/200% 200% no-repeat;pointer-events:none}
html[data-build="5"] body .shop-scene .merchant-chat-message{font-size:15px;padding:6px 8px}
html[data-build="5"] body .shop-scene .merchant-chat-message p{font-size:15px;line-height:1.45}
html[data-build="5"] body .shop-scene .merchant-name{font-size:26px}.shop-scene .merchant-mode{font-size:12px!important}.shop-scene .merchant-status{font-size:12px;line-height:1.35;min-height:18px}
html[data-build="5"] body .shop-scene .shop-ledger-shell{transform:none;transform-style:flat;padding:5% 8% 6%;width:100%;max-width:1320px}
.shop-scene .ledger-painted-book{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
html[data-build="5"] body .shop-scene .ledger-leaves{background:none;gap:4%;isolation:auto}
html[data-build="5"] body .shop-scene .ledger-page{background:transparent;border:0;box-shadow:none;padding:3px 14px 0;min-height:595px;border-radius:0;overflow:visible}
.shop-scene .ledger-spine{visibility:hidden}
.shop-scene .ledger-inscription{font-size:11px;padding-inline:14px;letter-spacing:.11em}
.shop-scene .ledger-find{margin-block:3px 10px}.shop-scene .ledger-find>summary{font-size:15px;padding:5px 0}
.shop-scene .ledger-item-overline{font-size:11px;letter-spacing:.025em}.shop-scene .ledger-item h2{font-size:27px;line-height:1.15;min-height:62px;display:grid;align-content:center;margin:0}
html[data-build="5"] body .shop-scene .ledger-item-main{background:none;min-height:133px;padding:0}
html[data-build="5"] body .shop-scene .ledger-item-main img{height:120px;width:145px;transform:none!important;animation:none!important;transition:none!important;filter:none!important}
html[data-build="5"] body .shop-scene .ledger-item-main:hover img,html[data-build="5"] body .shop-scene .ledger-item.selected .ledger-item-main img{transform:none!important;animation:none!important;filter:none!important}
.shop-scene .ledger-item-main>span{font-size:12px}.shop-scene .ledger-item-reading{height:190px;min-height:190px;padding-right:8px}.shop-scene .ledger-item-desc{font-size:16px!important;line-height:1.5!important}.shop-scene .ledger-item-stats{gap:8px 14px}.shop-scene .ledger-item-stats dt{font-size:11px}.shop-scene .ledger-item-stats dd{font-size:14px}.shop-scene .ledger-item-meta{font-size:13px!important}
.shop-scene .ledger-stock{font-size:13px}.shop-scene .ledger-price b{font-size:29px}.shop-scene .ledger-price span{font-size:12px}.shop-scene .ledger-trade-note{font-size:11px;line-height:1.5}.shop-scene .ledger-receipt{font-size:12px;min-height:32px;animation:none!important}
html[data-build="5"] body .shop-scene .ledger-item-actions{gap:7px}
html[data-build="5"] body .shop-scene .ledger-item-action{flex:1;font-size:15px;font-style:normal;padding:12px 8px;min-height:48px;background:transparent url('/assets/shop/v2/fittings.png') 100% 86%/200% 306% no-repeat!important;color:#f5e6bf!important;border:0;border-radius:0;box-shadow:none;transform:none!important;transition:filter .16s}
html[data-build="5"] body .shop-scene .ledger-item-action.buy{background:transparent url('/assets/shop/v2/fittings.png') 0 86%/200% 306% no-repeat!important;padding:12px 8px;border:0;border-radius:0;box-shadow:none;transform:none!important;font-size:15px}
.shop-scene .ledger-item-action.buy span{display:none}.shop-scene .ledger-item-action:hover:not(:disabled){transform:none!important;filter:brightness(1.18)}
.shop-scene .ledger-bookmark-rail{top:-27px;left:9%;right:9%;height:70px;z-index:-2}
html[data-build="5"] body .shop-scene .ledger-tabs{gap:5px;justify-content:flex-start;height:70px;overflow-y:hidden}
html[data-build="5"] body .shop-scene .ledger-tab,html[data-build="5"] body .shop-scene .ledger-tab:nth-child(n){height:63px;min-width:80px;padding:10px 8px 22px;background:transparent url('/assets/shop/v2/fittings.png') 88% 0/400% 200% no-repeat!important;box-shadow:none;border:0;border-radius:0;clip-path:none;filter:none;font-size:13px;transform:translateY(6px);flex:1}
html[data-build="5"] body .shop-scene .ledger-tab.active,html[data-build="5"] body .shop-scene .ledger-tab:hover{transform:translateY(0)}
html[data-build="5"] body .shop-scene .ledger-page-controls{margin:8px 0 -18px}
html[data-build="5"] body .shop-scene .ledger-page-button{transform:none!important;transition:none!important;font-size:25px;min-width:100px;min-height:38px}
.shop-scene .ledger-page-button span{font-size:14px}.shop-scene .ledger-page-button:after{display:none}
.shop-scene .ledger-turn-copy{background:#eddcb8 url('/assets/shop/v2/catalogue.png') 15% 35%/230% 120%!important}
.shop-scene .ledger-turn-copy.ledger-right{background-position:85% 35%!important}
.shop-scene .ledger-turn-copy.ledger-turn-under{background:transparent!important}
.shop-scene .shop-counter-lip{background:url('/assets/shop/v2/interior.png') center bottom/100% 2500%;box-shadow:none}
@media(max-width:1000px){html[data-build="5"] body .shop-scene .shopkeeper-stage{height:400px}.shop-scene .merchant-sprite{width:39%;left:6%;top:8%}html[data-build="5"] body .shop-scene .shopkeeper-dialogue{padding:20px 23px}.shop-scene .ledger-item h2{font-size:25px}html[data-build="5"] body .shop-scene .ledger-page{padding-inline:5px}.shop-scene .ledger-item-stats{grid-template-columns:1fr 1fr}.shop-scene .ledger-item-desc{font-size:15px!important}.shop-scene .ledger-item-action,.shop-scene .ledger-item-action.buy{font-size:13px!important}.shop-scene .ledger-item-reading{height:205px;min-height:205px}.shop-scene .ledger-inscription{font-size:9px}.shop-scene .ledger-find{margin-inline:5px}}
@media(max-width:660px){html[data-build="5"] body .shop-scene .shopkeeper-stage{height:610px}.shop-scene .merchant-sprite{width:46%;left:2%;top:4%}html[data-build="5"] body .shop-scene .merchant-presence{top:195px;bottom:auto;left:4%;max-width:68%;min-width:190px}.shop-scene .merchant-scene-canvas{width:180%;left:-6%}html[data-build="5"] body .shop-scene .shopkeeper-side-panel{top:278px;bottom:8px;left:5%;right:5%}html[data-build="5"] body .shop-scene .shopkeeper-dialogue{padding:20px 24px 25px}html[data-build="5"] body .shop-scene .shop-ledger-section{padding:30px 0 10px}html[data-build="5"] body .shop-scene .shop-ledger-shell{padding:11% 13% 14%;background:url('/assets/shop/v2/catalogue.png') 4% center/200% 100% no-repeat;min-height:730px}.shop-scene .ledger-painted-book{display:none}html[data-build="5"] body .shop-scene .ledger-leaves{grid-template-columns:1fr}.shop-scene .ledger-item-reading{height:200px;min-height:200px}.shop-scene .ledger-item h2{font-size:26px}.shop-scene .ledger-inscription{font-size:8px;padding-inline:0;letter-spacing:0}.shop-scene .ledger-bookmark-rail{left:12%;right:12%;top:-15px}.shop-scene .ledger-tab{flex:none!important;font-size:11px!important;min-width:76px!important}.shop-scene .ledger-page-controls{padding:0!important;gap:4px}.shop-scene .ledger-page-button{min-width:70px!important}.shop-scene .ledger-page-button span{font-size:12px}.shop-scene .ledger-item-actions{gap:4px!important}}


/* assets/ui/shop-player-rework.css */
/* Player shop • single theatrical scene. The catalogue illustration is the physical
   coordinate system; tabs, text and hit targets live inside its measured page area. */
html[data-build="5"] body .shop-scene{
  --ink:#3d2a1a;--muted:#81623e;--wax:#7f3929;--moss:#284735;
  border:1px solid #644022;border-radius:12px;background:#422512!important;
  box-shadow:0 18px 55px #1c100825;color:var(--ink);overflow:hidden;
}
html[data-build="5"] body .shop-scene .shopkeeper-game-scene{
  max-width:none;background:linear-gradient(170deg,#50301e,#3a2113 80%,#27170f)!important;
  box-shadow:inset 0 0 65px #1309049c;
}
html[data-build="5"] body .shop-scene .shop-sticky-wallet{
  min-height:69px;padding:10px clamp(15px,2.8vw,36px);gap:16px;
  background:linear-gradient(110deg,#201710,#3b281b 50%,#23180f)!important;
  border-bottom:1px solid #b18d52;box-shadow:0 4px 22px #0008;
}
html[data-build="5"] body .shop-scene .shop-sticky-wallet>img{height:43px;width:43px;border-radius:50%;border:2px solid #b99355;box-shadow:0 0 0 3px #1b120c}
html[data-build="5"] body .shop-scene .shop-sticky-wallet label{font-size:11px;letter-spacing:.1em}
html[data-build="5"] body .shop-scene .shop-sticky-wallet select{font:17px/1.4 Georgia,serif}
html[data-build="5"] body .shop-scene .sticky-wallet-gold strong{font-size:25px}
html[data-build="5"] body .shop-scene .shopkeeper-stage{
  height:clamp(360px,38vw,510px);background:#2b180e!important;overflow:hidden;
  border-bottom:5px solid #8b552b;
}
html[data-build="5"] body .shop-scene .merchant-scene-canvas{
  position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;overflow:hidden;
}
html[data-build="5"] body .shop-scene .shopkeeper-scene-art{
  width:100%;height:100%;object-fit:cover;object-position:50% 58%;
}
html[data-build="5"] body .shop-scene .merchant-sprite{
  position:absolute;left:7%;top:3%;width:39%;height:auto;aspect-ratio:1;
  filter:drop-shadow(2px 9px 8px #1b0d0b80);image-rendering:auto;
  will-change:auto;
}
html[data-build="5"] body .shop-scene .shopkeeper-stage:after{
  background:linear-gradient(0deg,#2b160bf0,transparent 19%),
   linear-gradient(90deg,#10090455,transparent 26%,transparent 76%,#160b0761);
  z-index:1;
}
html[data-build="5"] body .shop-scene .shop-lantern-light{opacity:.47;animation:shop-soft-light 10s ease-in-out infinite alternate}
@keyframes shop-soft-light{0%,100%{opacity:.42}52%{opacity:.65}}
html[data-build="5"] body .shop-scene .merchant-presence{
  left:8%;bottom:10px;max-width:34%;min-width:170px;z-index:4;
  min-height:57px;padding:10px 21px;background:linear-gradient(115deg,#23190fe8,#57391ccf)!important;
  border:1px solid #b18a4d;border-radius:10px 3px 10px 3px;
  box-shadow:0 6px 17px #0008,inset 0 0 0 2px #cfb37b21;
  text-align:left;transform:none;
}
html[data-build="5"] body .shop-scene .merchant-presence span{font-size:18px;color:#f6e2b7!important}
html[data-build="5"] body .shop-scene .merchant-presence small{color:#e2cba4!important;font:12px/1.35 Georgia,serif}
html[data-build="5"] body .shop-scene .shopkeeper-side-panel{
  position:absolute;left:53%;right:3.5%;top:5%;bottom:6%;z-index:4;min-width:0;
}
html[data-build="5"] body .shop-scene .shopkeeper-dialogue{
  height:100%;padding:18px 22px 15px;display:flex;flex-direction:column;gap:0;
  background:linear-gradient(140deg,#f5e5c7f9,#e4c795f8)!important;
  border:1px solid #ba935a;border-radius:13px 11px 17px 12px;
  box-shadow:0 12px 28px #120902a8,inset 0 0 0 4px #fff4d448,inset 0 0 45px #93612c29;
  transform:rotate(.25deg);
}
html[data-build="5"] body .shop-scene .shopkeeper-dialogue:before{
  content:"";position:absolute;inset:7px;z-index:-1;border:1px solid #936e3f38;
  border-radius:9px;background:none;pointer-events:none;
}
html[data-build="5"] body .shop-scene .merchant-dialogue-heading{padding-bottom:8px;flex:none}
html[data-build="5"] body .shop-scene .merchant-dialogue-heading>span{font:11px Georgia,serif;letter-spacing:.18em;text-transform:uppercase;color:#825e35}
html[data-build="5"] body .shop-scene .merchant-name{font:25px Georgia,serif;line-height:1.1;margin:4px 0 2px;color:#392516}
html[data-build="5"] body .shop-scene .merchant-mode{font-size:11px!important;color:#72593c}
html[data-build="5"] body .shop-scene .merchant-chat-history{
  flex:1;min-height:50px;overflow-y:auto;padding:5px 5px 5px 0;
  scrollbar-width:thin;scrollbar-color:#9e7e4c transparent;
}
html[data-build="5"] body .shop-scene .merchant-chat-message{
  margin:8px 0;padding:7px 10px;font-size:13px;
  border-radius:2px 8px 8px 2px;border-left:3px solid #57734c;
  background:#fff7e151;color:#47301d;
}
html[data-build="5"] body .shop-scene .merchant-chat-message.player{
  margin-left:18px!important;border-left-color:#a57a43;background:#d7bd8c35;
}
html[data-build="5"] body .shop-scene .merchant-chat-message.trade{background:#d8bd8145!important;border-left-color:#a17538!important}
html[data-build="5"] body .shop-scene .merchant-chat-message p{font:14px/1.44 Georgia,serif;color:#382718!important;margin:4px 0;opacity:1}
html[data-build="5"] body .shop-scene .merchant-chat-message header{font-size:11px;color:#654c32}
html[data-build="5"] body .shop-scene .merchant-chat-message strong{color:#405a3c!important}
html[data-build="5"] body .shop-scene .merchant-chat-empty{font:italic 15px/1.5 Georgia,serif;color:#725a3d;min-height:90px}
html[data-build="5"] body .shop-scene .merchant-focus{flex:none;padding:7px 0;line-height:1.3}
html[data-build="5"] body .shop-scene .merchant-status{flex:none;font-size:11px;min-height:16px;margin:3px 0;color:#6c5336}
html[data-build="5"] body .shop-scene .merchant-chat{flex:none;padding-top:9px;gap:8px}
html[data-build="5"] body .shop-scene .merchant-chat input{
  min-width:0;min-height:35px;padding:6px!important;color:#382818!important;
  font:14px Georgia,serif;border-bottom:1px solid #927248!important;
}
html[data-build="5"] body .shop-scene .merchant-chat input::placeholder{color:#836e52;opacity:1}
html[data-build="5"] body .shop-scene .merchant-chat .primary-button{
  padding:7px 12px;font:13px Georgia,serif;border-radius:4px;
  background:#34523d!important;color:#f7e4be!important;
}
/* A single continuous wooden counter, with the book touching it rather than
   appearing as a separate website section. */
html[data-build="5"] body .shop-scene .shop-ledger-section{
  z-index:5;margin:-5px 0 0;padding:23px 1.8% 18px;
  background:linear-gradient(90deg,#25130955,transparent 22%,transparent 78%,#25130955),
    repeating-linear-gradient(0deg,#6a3f21 0,#774727 5px,#643919 9px,#79492a 18px)!important;
  box-shadow:inset 0 14px 16px #1e10098a;
}
html[data-build="5"] body .shop-scene .shop-ledger-viewport{padding:0;overflow:visible;perspective:none}
html[data-build="5"] body .shop-scene .shop-book-ui{padding:0;perspective:none;background:none!important;overflow:visible}
html[data-build="5"] body .shop-scene .shop-ledger-shell{
  position:relative;width:min(100%,1120px);max-width:1120px;aspect-ratio:3/2;
  min-height:0;height:auto;margin:0 auto;padding:0!important;
  background:none!important;transform:none!important;transform-style:flat;
  isolation:isolate;filter:drop-shadow(0 18px 19px #1b0e0a9c);
}
html[data-build="5"] body .shop-scene .ledger-painted-book{
  display:block;position:absolute;inset:0;width:100%;height:100%;z-index:0;
  object-fit:fill;pointer-events:none;user-select:none;
}
html[data-build="5"] body .shop-scene .ledger-cover,
html[data-build="5"] body .shop-scene .ledger-paper-block{display:none}
html[data-build="5"] body .shop-scene .ledger-bookmark-rail{
  position:absolute;left:auto;right:-1.6%;top:19%;width:15.5%;height:64%;
  z-index:1;overflow:visible;pointer-events:none;
}
html[data-build="5"] body .shop-scene .ledger-tabs{
  display:flex;flex-direction:column;align-items:flex-end;justify-content:center;
  gap:clamp(3px,.5vw,8px);height:100%;width:100%;overflow:visible;
  padding:7% 0;pointer-events:none;
}
html[data-build="5"] body .shop-scene .ledger-tab,
html[data-build="5"] body .shop-scene .ledger-tab:nth-child(n){
  position:relative;display:flex;align-items:center;justify-content:flex-end;
  flex:0 1 auto;width:100%;min-width:0;max-height:58px;min-height:35px;height:auto;
  padding:8px 11px 8px 20px;margin:0;border:1px solid #172b20;border-left:3px solid #ba9959;
  border-radius:2px 9px 9px 2px;clip-path:polygon(0 8%,94% 0,100% 11%,100% 89%,94% 100%,0 92%);
  background:linear-gradient(90deg,#1d3228 0,#3f5b43 21%,#2a4333 88%,#182c22 100%)!important;
  box-shadow:2px 3px 4px #090c0790,inset 0 1px #d8bc7655;
  font:12px/1.18 Georgia,serif;color:#f6e4b9!important;text-align:right;
  transform:translateX(-13%) rotate(-.8deg);transform-origin:left center;
  transition:transform .26s cubic-bezier(.21,.7,.3,1),filter .26s;
  pointer-events:auto;
}
html[data-build="5"] body .shop-scene .ledger-tab:nth-child(4n+2){background:linear-gradient(90deg,#483024,#805136 24%,#5c3b29 90%)!important}
html[data-build="5"] body .shop-scene .ledger-tab:nth-child(4n+3){background:linear-gradient(90deg,#4b3b29,#82623c 22%,#584325 90%)!important}
html[data-build="5"] body .shop-scene .ledger-tab:nth-child(4n+4){background:linear-gradient(90deg,#343247,#5a4968 20%,#3e354c 90%)!important}
html[data-build="5"] body .shop-scene .ledger-tab:hover,
html[data-build="5"] body .shop-scene .ledger-tab.active{transform:translateX(3%) rotate(0);filter:brightness(1.17);font-weight:700}
html[data-build="5"] body .shop-scene .ledger-tab.active:before{content:"✧";margin-right:auto;color:#eed29a}
html[data-build="5"] body .shop-scene .ledger-inscription{
  position:absolute;top:11.3%;left:17%;right:17%;z-index:2;
  padding:0 2px 5px;margin:0;display:flex;align-items:center;justify-content:space-between;
  font:10px Georgia,serif;letter-spacing:.14em;color:#755532;
  border-bottom:1px solid #a1845340;
}
html[data-build="5"] body .shop-scene .ledger-inscription small{font-size:10px;color:#80613f}
html[data-build="5"] body .shop-scene .ledger-find{
  position:absolute;z-index:9;left:17%;top:15%;width:30%;max-width:65%;
  margin:0;color:#654724;font:13px Georgia,serif;
}
html[data-build="5"] body .shop-scene .ledger-find>summary{
  width:max-content;max-width:100%;display:flex;align-items:center;gap:7px;
  font:italic 13px Georgia,serif;line-height:1.2;padding:2px 5px;
  color:#74552f;border-bottom:1px dashed #ab895a;
}
html[data-build="5"] body .shop-scene .ledger-find>summary span{font-size:17px}
html[data-build="5"] body .shop-scene .ledger-find[open]{width:65%;max-width:65%;
  background:linear-gradient(125deg,#f8eccff9,#ebd5a8fa);
  border:1px solid #b8945b;border-radius:6px;padding:9px 13px 12px;
  box-shadow:0 14px 27px #3b271880,inset 0 0 0 3px #fff4d833;
}
html[data-build="5"] body .shop-scene .shop-ledger-filters{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px 12px;
  max-height:min(55vh,350px);overflow-y:auto;padding:12px 0 3px;border:0;
}
html[data-build="5"] body .shop-scene .shop-ledger-filters label{min-width:0;font:11px Georgia,serif;color:#664926}
html[data-build="5"] body .shop-scene .shop-ledger-filters :is(input,select){
  min-width:0;width:100%;font:12px Georgia,serif;padding:5px 2px;
  background:transparent;color:#382917;border:0;border-bottom:1px solid #a68a5f;
}
html[data-build="5"] body .shop-scene .ledger-leaves{
  position:absolute;z-index:3;left:17%;right:17%;top:21%;bottom:17.6%;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:9%;height:auto;min-height:0;perspective:1800px;
  isolation:isolate;transform-style:preserve-3d;
}
html[data-build="5"] body .shop-scene .ledger-page{
  position:relative;display:flex;flex-direction:column;gap:0;min-width:0;min-height:0!important;
  height:100%;padding:0!important;border:0;border-radius:0;
  background:transparent!important;box-shadow:none!important;overflow:visible;
  color:#3d2a1a;transform:none;
}
html[data-build="5"] body .shop-scene .ledger-page>header{
  display:flex;flex:none;gap:5px;min-height:21px;align-items:center;
  padding:0 0 3px;border-bottom:1px solid #b69c704f;
  font:italic 11px Georgia,serif;color:#765838;
}
html[data-build="5"] body .shop-scene .ledger-page>header i{font-size:16px}
html[data-build="5"] body .shop-scene .ledger-item{
  display:flex;flex:1;flex-direction:column;gap:4px;width:100%;min-width:0;
  min-height:0;margin:0;padding:4px 0 0;border:0;background:transparent!important;box-shadow:none!important;
}
html[data-build="5"] body .shop-scene .ledger-item-overline{
  display:flex;gap:6px;align-items:center;justify-content:space-between;
  font:10px Georgia,serif;letter-spacing:.06em;color:#895d2c;text-transform:uppercase;
}
html[data-build="5"] body .shop-scene .ledger-item h2{
  display:block;min-height:0;margin:0 0 1px;padding:0;text-align:center;
  font:clamp(18px,2vw,25px)/1.14 Georgia,serif;color:#382718;
  text-wrap:balance;overflow-wrap:anywhere;
}
html[data-build="5"] body .shop-scene .ledger-item-main{
  display:flex;flex:none;flex-direction:column;align-items:center;justify-content:center;gap:0;
  width:100%;min-height:0;height:clamp(72px,10vw,113px);padding:0;margin:0;
  border:0;background:radial-gradient(ellipse at 50% 55%,#bb985022,transparent 70%)!important;
  box-shadow:none;overflow:visible;
}
html[data-build="5"] body .shop-scene .ledger-item-main img{
  display:block;width:clamp(75px,11vw,126px);height:calc(100% - 12px);max-width:78%;object-fit:contain;
  mix-blend-mode:multiply;filter:drop-shadow(0 5px 3px #76583b55)!important;
  transform:none!important;animation:none!important;
  transition:transform .3s cubic-bezier(.2,.7,.25,1),filter .3s!important;
}
html[data-build="5"] body .shop-scene .ledger-item-main:hover img,
html[data-build="5"] body .shop-scene .ledger-item.selected .ledger-item-main img{
  transform:translateY(-3px) scale(1.035)!important;
  filter:drop-shadow(0 8px 5px #76583b77)!important;
}
html[data-build="5"] body .shop-scene .ledger-item-main>span{font:italic 10px Georgia,serif;color:#86653e;opacity:1}
html[data-build="5"] body .shop-scene .ledger-item-reading{
  flex:1;min-height:36px;height:auto;max-height:none;overflow-y:auto;
  padding:4px 4px 0 0;margin:0;
  scrollbar-width:thin;scrollbar-color:#b397694d transparent;overscroll-behavior:contain;
  mask-image:linear-gradient(to bottom,#000 92%,transparent 100%);
}
html[data-build="5"] body .shop-scene .ledger-item-desc{
  display:block;max-height:none;margin:0 0 7px;
  font:13px/1.42 Georgia,serif!important;color:#483320;
  white-space:pre-wrap;overflow-wrap:anywhere;
}
html[data-build="5"] body .shop-scene .ledger-item-stats{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 10px;margin:0 0 7px;
}
html[data-build="5"] body .shop-scene .ledger-item-stats>div{padding:0 0 3px;border-bottom:1px dotted #ad915e6a}
html[data-build="5"] body .shop-scene .ledger-item-stats dt{font:10px Georgia,serif;color:#86613a}
html[data-build="5"] body .shop-scene .ledger-item-stats dd{font:12px/1.3 Georgia,serif;color:#42301e;margin:2px 0 0;overflow-wrap:anywhere}
html[data-build="5"] body .shop-scene .ledger-item-meta{font:italic 11px/1.35 Georgia,serif!important;color:#6a4d2d;margin:4px 0}
html[data-build="5"] body .shop-scene .ledger-item-foot{
  display:flex;flex:none;align-items:baseline;justify-content:space-between;gap:5px;
  margin:2px 0 0;padding:5px 0 0;border-top:1px solid #9b74444f;
}
html[data-build="5"] body .shop-scene .ledger-price{display:flex;align-items:baseline;gap:3px;white-space:nowrap}
html[data-build="5"] body .shop-scene .ledger-price b{font:24px Georgia,serif;color:#613b1c}
html[data-build="5"] body .shop-scene .ledger-price s{font:11px Georgia,serif;color:#916d44}
html[data-build="5"] body .shop-scene .ledger-price span{font:10px Georgia,serif;color:#805d36}
html[data-build="5"] body .shop-scene .ledger-stock{font:italic 10px Georgia,serif;color:#7b5a37;text-align:right}
html[data-build="5"] body .shop-scene .ledger-trade-note{flex:none;min-height:0;margin:0;font:10px/1.2 Georgia,serif;color:#805d35}
html[data-build="5"] body .shop-scene .ledger-item-actions{
  display:flex;flex:none;align-items:stretch;justify-content:space-between;gap:6px;margin:1px 0 0;
}
html[data-build="5"] body .shop-scene .ledger-item-action,
html[data-build="5"] body .shop-scene .ledger-item-action.buy{
  flex:1;min-width:0;min-height:32px;height:auto;padding:6px 7px;
  font:12px/1.1 Georgia,serif!important;letter-spacing:0;color:#f5e5c5!important;
  border:1px solid #77512f;border-radius:3px 6px 3px 6px;
  background:linear-gradient(125deg,#795235,#503520)!important;
  box-shadow:inset 0 0 0 1px #e4c68f38,0 2px 3px #4c2d2066;
  text-align:center;white-space:normal;transform:none!important;
  transition:filter .18s,box-shadow .18s!important;
}
html[data-build="5"] body .shop-scene .ledger-item-action.buy{
  background:linear-gradient(125deg,#48684a,#284736)!important;border-color:#283b27;
  color:#f7eac5!important;
}
html[data-build="5"] body .shop-scene .ledger-item-action:hover:not(:disabled){
  filter:brightness(1.12);box-shadow:inset 0 0 0 1px #e4c68f88,0 2px 5px #4c2d2077;
}
html[data-build="5"] body .shop-scene .ledger-item-action:disabled{opacity:.52;filter:saturate(.7)}
html[data-build="5"] body .shop-scene .ledger-item-action.buy span{display:inline;font-size:10px}
html[data-build="5"] body .shop-scene .ledger-receipt{
  flex:none;min-height:13px;font:10px/1.2 Georgia,serif;color:#9a4932;
  animation:none!important;overflow-wrap:anywhere;
}
html[data-build="5"] body .shop-scene .ledger-receipt.stamped{color:#34553a;font-weight:700}
html[data-build="5"] body .shop-scene .ledger-item.selected h2{color:#39593e}
html[data-build="5"] body .shop-scene .ledger-item.selected:before{top:25px;right:-12px}
html[data-build="5"] body .shop-scene .ledger-page-empty{
  min-height:0;flex:1;align-content:center;gap:4px;padding:12px;
  font:italic 13px/1.4 Georgia,serif;
}
html[data-build="5"] body .shop-scene .ledger-page-empty h3{font-size:20px}
html[data-build="5"] body .shop-scene .ledger-folio-number{
  flex:none;padding:4px 0 0;margin-top:0;font:10px Georgia,serif;text-align:center;color:#977649;
}
html[data-build="5"] body .shop-scene .ledger-spine{
  display:block!important;visibility:visible;position:absolute;left:50%;top:-2%;bottom:-2%;width:5%;
  transform:translateX(-50%);z-index:4;pointer-events:none;
  background:linear-gradient(90deg,transparent,#63401e25 30%,#3d281633 50%,#71502c1f 74%,transparent);
}
html[data-build="5"] body .shop-scene .ledger-turn-edges{
  position:absolute;z-index:5;inset:39% 13% auto;display:flex;
  justify-content:space-between;align-items:center;pointer-events:none;
}
html[data-build="5"] body .shop-scene .ledger-edge{
  display:grid;place-items:center;width:4.5%;min-width:25px;height:85px;
  padding:0 2px;border:0;color:#806039;background:transparent;
  font:26px Georgia,serif;opacity:.45;pointer-events:auto;
  transition:opacity .2s,transform .25s,filter .25s;
}
html[data-build="5"] body .shop-scene .ledger-edge:hover:not(:disabled){
  opacity:1;filter:drop-shadow(0 3px 2px #65462255);
  transform:translateY(-4px) rotate(-2deg);
  background:linear-gradient(90deg,#ddc18b90,#f9e8be66);
  border-radius:65% 0 0 65%;
}
html[data-build="5"] body .shop-scene .ledger-edge-next:hover:not(:disabled){
  transform:translateY(-4px) rotate(2deg);border-radius:0 65% 65% 0;
  background:linear-gradient(270deg,#ddc18b90,#f9e8be66);
}
html[data-build="5"] body .shop-scene .ledger-edge:disabled{opacity:0;pointer-events:none}
html[data-build="5"] body .shop-scene .ledger-page-controls{
  position:absolute;z-index:5;left:23%;right:23%;bottom:10%;margin:0;padding:0;
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  background:transparent;border:0;box-shadow:none;color:#7a5b35;
  font:12px Georgia,serif;
}
html[data-build="5"] body .shop-scene .ledger-page-button{
  min-height:31px;min-width:75px;padding:3px 7px;border:0;border-radius:3px;
  color:#654928;background:#f1e1b580;font:25px Georgia,serif;
  transition:background .18s,filter .18s!important;transform:none!important;
}
html[data-build="5"] body .shop-scene .ledger-page-button span{font:italic 12px Georgia,serif}
html[data-build="5"] body .shop-scene .ledger-page-button:hover:not(:disabled){background:#e4cfa2bd;filter:brightness(.94)}
html[data-build="5"] body .shop-scene .ledger-page-button:after{display:none}
html[data-build="5"] body .shop-scene .ledger-turn-layer{
  position:absolute;z-index:11;pointer-events:none;transform-style:preserve-3d;overflow:visible;
}
html[data-build="5"] body .shop-scene .ledger-leaf-strip{
  position:absolute;top:0;left:0;transform-origin:0 50%;transform-style:preserve-3d;
  will-change:transform;
}
html[data-build="5"] body .shop-scene .ledger-leaf-face{
  position:absolute;inset:0;overflow:hidden;backface-visibility:hidden;
  background:linear-gradient(90deg,#e0c696,#f2e1bd 12%,#ead6a8 100%);
  transform:translateZ(.7px);
}
html[data-build="5"] body .shop-scene .ledger-leaf-face.leaf-back{
  transform:rotateY(180deg) translateZ(.7px);
  background:linear-gradient(90deg,#ebd9b3,#f4e5c3 92%,#debd85);
}
html[data-build="5"] body .shop-scene .ledger-turn-copy{
  position:absolute!important;inset:auto!important;top:0!important;
  min-height:0!important;margin:0!important;padding:0!important;
  height:100%;max-width:none;pointer-events:none;
  background:transparent!important;
}
html[data-build="5"] body .shop-scene .ledger-turn-copy .ledger-item-reading{scrollbar-width:none}
html[data-build="5"] body .shop-scene .ledger-turn-under{z-index:2;opacity:1}
html[data-build="5"] body .shop-scene .ledger-moving-shadow{
  z-index:9;inset:0;filter:blur(10px);background:linear-gradient(90deg,transparent,#38210d85 50%,transparent);
}
html[data-build="5"] body .shop-scene .shop-counter-lip{height:17px;background:linear-gradient(#b57b42,#512d17 60%,#28170f);box-shadow:0 -2px 5px #1e100b8a}
@media(max-width:1050px){
 html[data-build="5"] body .shop-scene .shopkeeper-stage{height:clamp(340px,42vw,440px)}
 html[data-build="5"] body .shop-scene .merchant-sprite{left:4%;top:5%;width:43%}
 html[data-build="5"] body .shop-scene .shopkeeper-side-panel{left:49%;right:2%;top:5%;bottom:6%}
 html[data-build="5"] body .shop-scene .shopkeeper-dialogue{padding:13px 15px 10px}
 html[data-build="5"] body .shop-scene .merchant-chat-message p{font-size:13px}
 html[data-build="5"] body .shop-scene .ledger-bookmark-rail{width:16%}
 html[data-build="5"] body .shop-scene .ledger-tab,html[data-build="5"] body .shop-scene .ledger-tab:nth-child(n){font-size:11px;padding:6px 5px 6px 15px;min-height:30px}
 html[data-build="5"] body .shop-scene .ledger-page>header{font-size:10px}
 html[data-build="5"] body .shop-scene .ledger-item h2{font-size:clamp(15px,2.4vw,23px)}
 html[data-build="5"] body .shop-scene .ledger-item-main{height:clamp(58px,9.5vw,102px)}
 html[data-build="5"] body .shop-scene .ledger-item-desc{font-size:12px!important;line-height:1.34!important}
 html[data-build="5"] body .shop-scene .ledger-item-stats dd{font-size:11px}
 html[data-build="5"] body .shop-scene .ledger-item-stats dt{font-size:9px}
 html[data-build="5"] body .shop-scene .ledger-price b{font-size:20px}
 html[data-build="5"] body .shop-scene .ledger-item-action,html[data-build="5"] body .shop-scene .ledger-item-action.buy{font-size:11px!important;min-height:28px;padding:5px 2px}
}
@media(max-width:660px){
 html[data-build="5"] body .shop-scene .shop-sticky-wallet{gap:7px;min-height:63px;padding:7px}
 html[data-build="5"] body .shop-scene .shop-sticky-wallet>img{width:34px;height:34px}
 html[data-build="5"] body .shop-scene .shop-sticky-wallet label{max-width:37%;font-size:9px}
 html[data-build="5"] body .shop-scene .shop-sticky-wallet select{font-size:13px}
 html[data-build="5"] body .shop-scene .sticky-wallet-gold strong{font-size:19px}
 html[data-build="5"] body .shop-scene .shopkeeper-stage{height:590px}
 html[data-build="5"] body .shop-scene .merchant-scene-canvas{width:145%;height:350px;left:-3%;top:0}
 html[data-build="5"] body .shop-scene .merchant-sprite{left:1%;top:5%;width:49%}
 html[data-build="5"] body .shop-scene .merchant-presence{top:208px;bottom:auto;left:5%;max-width:80%;min-width:165px;min-height:47px;padding:7px 12px}
 html[data-build="5"] body .shop-scene .merchant-presence span{font-size:15px}
 html[data-build="5"] body .shop-scene .shopkeeper-side-panel{top:284px;bottom:10px;left:3.5%;right:3.5%}
 html[data-build="5"] body .shop-scene .shopkeeper-dialogue{padding:12px 15px 9px;transform:none}
 html[data-build="5"] body .shop-scene .merchant-name{font-size:21px}
 html[data-build="5"] body .shop-scene .merchant-chat-message{margin:5px 0;padding:5px 8px}
 html[data-build="5"] body .shop-scene .merchant-chat-message p{font-size:12px}
 html[data-build="5"] body .shop-scene .shop-ledger-section{padding:14px 0 12px}
 html[data-build="5"] body .shop-scene .shop-ledger-shell{
   width:100%;max-width:465px;aspect-ratio:0.62;
   background:url('/assets/shop/v2/catalogue.png') left center/200% 100% no-repeat!important;
 }
 html[data-build="5"] body .shop-scene .ledger-painted-book{display:none}
 html[data-build="5"] body .shop-scene .ledger-inscription{left:18%;right:17%;top:12%;font-size:8px;letter-spacing:0}
 html[data-build="5"] body .shop-scene .ledger-inscription small{font-size:8px}
 html[data-build="5"] body .shop-scene .ledger-find{left:19%;top:16%;width:49%}
 html[data-build="5"] body .shop-scene .ledger-find[open]{left:16%;top:14%;width:70%;max-width:70%}
 html[data-build="5"] body .shop-scene .shop-ledger-filters{grid-template-columns:repeat(2,minmax(0,1fr));max-height:48vh}
 html[data-build="5"] body .shop-scene .ledger-bookmark-rail{right:-.3%;top:24%;width:20%;height:50%}
 html[data-build="5"] body .shop-scene .ledger-tabs{gap:3px}
 html[data-build="5"] body .shop-scene .ledger-tab,html[data-build="5"] body .shop-scene .ledger-tab:nth-child(n){font-size:10px;padding:5px 3px 5px 9px;min-height:28px}
 html[data-build="5"] body .shop-scene .ledger-leaves{left:28%;right:16%;top:22%;bottom:14%;grid-template-columns:1fr;gap:0}
 html[data-build="5"] body .shop-scene .ledger-page{padding:0!important}
 html[data-build="5"] body .shop-scene .ledger-page>header{font-size:11px}
 html[data-build="5"] body .shop-scene .ledger-item h2{font-size:21px}
 html[data-build="5"] body .shop-scene .ledger-item-main{height:104px}
 html[data-build="5"] body .shop-scene .ledger-item-desc{font-size:13px!important;line-height:1.4!important}
 html[data-build="5"] body .shop-scene .ledger-item-stats dd{font-size:12px}
 html[data-build="5"] body .shop-scene .ledger-item-action,html[data-build="5"] body .shop-scene .ledger-item-action.buy{font-size:11px!important;min-height:33px}
 html[data-build="5"] body .shop-scene .ledger-turn-edges{inset:42% 12% auto 24%}
 html[data-build="5"] body .shop-scene .ledger-page-controls{left:25%;right:17%;bottom:8%;gap:4px}
 html[data-build="5"] body .shop-scene .ledger-page-button{min-width:54px;min-height:27px;font-size:20px;padding:1px 2px}
 html[data-build="5"] body .shop-scene .ledger-page-button span{font-size:10px}
 html[data-build="5"] body .shop-scene .ledger-spine{display:none!important}
}
@media(prefers-reduced-motion:reduce){
 html[data-build="5"] body .shop-scene *,html[data-build="5"] body .shop-scene *:before,html[data-build="5"] body .shop-scene *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}


/* assets/ui/shop-v3.css */
/* THE PLAYER'S SHOP / 3: the art and every page face share one coordinate system.
   These rules intentionally come last: the old prototype contained later overrides. */
html[data-build="5"] body .shop-scene{--shop-ink:#39271b;--shop-gold:#bc914c;--shop-green:#254c3b;background:#28170f!important;border:1px solid #9e733e;border-radius:12px;box-shadow:0 20px 60px #1d100d66}
html[data-build="5"] body .shop-scene .shopkeeper-game-scene{max-width:none;background:#27150d url('/assets/shop/v3/counter.webp') center bottom/100% auto repeat-y!important;box-shadow:inset 0 0 100px #170a0690}
html[data-build="5"] body .shop-scene .shopkeeper-stage{height:clamp(355px,34.4vw,490px);border-bottom:7px solid #59351f;box-shadow:0 8px 20px #1b0d0870}
html[data-build="5"] body .shop-scene .shopkeeper-scene-art{object-fit:cover;object-position:center 52%}
html[data-build="5"] body .shop-scene .merchant-sprite{left:6%;top:2%;width:min(39%,510px);filter:drop-shadow(0 10px 10px #25160d80);animation:none!important}
html[data-build="5"] body .shop-scene .merchant-presence{background:linear-gradient(130deg,#243c30ef,#493022ed)!important;border:1px solid #b18c4d;border-radius:7px;box-shadow:0 3px 10px #160a09c4,inset 0 0 0 2px #d3ab6540;bottom:13px;left:8%;z-index:5;min-height:53px;padding:8px 16px;max-width:31%}
html[data-build="5"] body .shop-scene .shopkeeper-side-panel{left:52%;right:3%;top:4%;bottom:4%;z-index:5}
html[data-build="5"] body .shop-scene .shopkeeper-dialogue{background:#ead4a9 url('/assets/ui/paper-grain.svg') center/cover!important;border:9px solid #4d3828;border-image:none;border-radius:13px;padding:16px 19px 13px;box-shadow:0 12px 25px #160a08ab,inset 0 0 0 2px #a3783e,inset 0 0 35px #af824e60;transform:rotate(.15deg)}
html[data-build="5"] body .shop-scene .shopkeeper-dialogue::before{content:"";inset:3px;z-index:-1;background:linear-gradient(130deg,#fff3d91c,#e3bb7833);border:1px solid #b98d536a;pointer-events:none}
html[data-build="5"] body .shop-scene .merchant-chat-history{min-height:50px;scrollbar-width:thin;scrollbar-color:#9a734d transparent}
html[data-build="5"] body .shop-scene .merchant-chat-message{background:#fff4d57a;border:1px solid #b9966542;border-left:3px solid #6e865a;border-radius:3px 10px 10px 3px;margin:6px 1px;padding:6px 10px;animation:shop-message-enter .38s ease-out both}
html[data-build="5"] body .shop-scene .merchant-chat-message.player{background:#dcbb8859;border-left-color:#a36c3d}
html[data-build="5"] body .shop-scene .merchant-chat-message p{font:14px/1.43 Georgia,serif!important;color:#382718!important}
html[data-build="5"] body .shop-scene .merchant-chat{border-top:1px solid #b895625b;padding-top:8px}
html[data-build="5"] body .shop-scene .merchant-chat input{background:transparent!important;color:#37251c!important}
html[data-build="5"] body .shop-scene .merchant-chat .primary-button{background:#31543d!important;border:1px solid #9a753e!important;color:#fff0ca!important;border-radius:5px;padding:7px 11px}
html[data-build="5"] body .shop-scene .shop-ledger-section{position:relative;margin:-1px 0 0;padding:31px 2% 24px!important;background:radial-gradient(ellipse at 50% 24%,#bd76372b,transparent 70%),linear-gradient(#4d2e1d,#382016)!important;box-shadow:inset 0 12px 17px #1d110aa8}
html[data-build="5"] body .shop-scene .shop-ledger-section::before{content:"";position:absolute;inset:0;pointer-events:none;background:url('/assets/shop/v3/counter.webp') center top/100% 95px repeat-y;opacity:.27}
html[data-build="5"] body .shop-scene .shop-ledger-viewport{overflow:visible!important;padding:0!important;perspective:2200px}
html[data-build="5"] body .shop-scene .shop-ledger-shell{position:relative;display:block;aspect-ratio:1.51;width:min(100%,1270px);max-width:1270px;min-height:0;height:auto;margin:0 auto;padding:0!important;transform:none!important;transform-style:preserve-3d;isolation:isolate;filter:drop-shadow(0 16px 13px #140909bd)}
html[data-build="5"] body .shop-scene .ledger-painted-book{position:absolute;inset:0;z-index:0;display:block;width:100%;height:100%;object-fit:fill;pointer-events:none;user-select:none}
/* The page planes exactly meet at the spine: no 9%-wide floating chasm. */
html[data-build="5"] body .shop-scene .ledger-leaves{position:absolute;z-index:3;left:11.7%;right:11.7%;top:12.2%;bottom:15.1%;height:auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0!important;isolation:isolate;perspective:2100px;transform-style:preserve-3d}
html[data-build="5"] body .shop-scene .ledger-page{position:relative;min-height:0!important;height:100%;min-width:0;display:flex;flex-direction:column;padding:2.3% 8.5% 1.8%!important;gap:0;overflow:hidden;border:0;border-radius:0;box-shadow:inset -7px 0 15px #9271460a;background:transparent!important;color:#3b2b1b;transform:none!important}
html[data-build="5"] body .shop-scene .ledger-left{padding-left:8%!important;padding-right:9.5%!important;box-shadow:inset -16px 0 17px #6e48270e}
html[data-build="5"] body .shop-scene .ledger-right{padding-left:9.5%!important;padding-right:7%!important;box-shadow:inset 16px 0 17px #6e48270e}
html[data-build="5"] body .shop-scene .ledger-page>header{min-height:19px;padding:0 0 3px;font:italic 11px/1.2 Georgia,serif;border-bottom:1px solid #a98a544f}
html[data-build="5"] body .shop-scene .ledger-item{display:flex;flex:1;flex-direction:column;min-height:0;gap:3px;padding:5px 0 0!important}
html[data-build="5"] body .shop-scene .ledger-item h2{min-height:0!important;max-height:52px!important;overflow:hidden;font:clamp(18px,2.05vw,27px)/1.13 Georgia,serif;color:#3b291a;text-wrap:balance;text-align:center}
html[data-build="5"] body .shop-scene .ledger-item-overline{font:10px/1.2 Georgia,serif;letter-spacing:.07em;color:#7b512d}
html[data-build="5"] body .shop-scene .ledger-item-main{height:clamp(98px,10.5vw,148px)!important;min-height:80px;padding:0!important;flex:none;display:flex;align-items:center;justify-content:center;gap:2px;background:radial-gradient(ellipse at center,#ddae5621,transparent 70%)!important}
html[data-build="5"] body .shop-scene .ledger-item-main img{width:90%!important;max-width:90%!important;height:calc(100% - 13px)!important;object-fit:contain;transform:none;mix-blend-mode:multiply;filter:drop-shadow(0 5px 4px #51361d55)!important;transition:transform .28s ease,filter .28s ease!important}
html[data-build="5"] body .shop-scene .ledger-item-main:hover img{transform:translateY(-3px) scale(1.025)!important;filter:drop-shadow(0 7px 5px #51361d88)!important}
html[data-build="5"] body .shop-scene .ledger-item-main>span{font:italic 10px Georgia,serif;color:#87653e}
html[data-build="5"] body .shop-scene .ledger-item-reading{min-height:55px!important;max-height:none!important;height:auto!important;flex:1;overflow-y:auto;margin:0;padding:1px 4px 2px 0;scrollbar-width:thin;scrollbar-color:#a786545c transparent;mask-image:none}
html[data-build="5"] body .shop-scene .ledger-item-desc{font:clamp(12px,1.12vw,15px)/1.45 Georgia,serif!important;color:#422d1e;margin:0 0 6px;white-space:pre-wrap}
html[data-build="5"] body .shop-scene .ledger-item-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 9px;margin:0 0 5px}
html[data-build="5"] body .shop-scene .ledger-item-stats dt{font:10px Georgia,serif;color:#7f5c38}
html[data-build="5"] body .shop-scene .ledger-item-stats dd{font:12px/1.25 Georgia,serif;color:#3d2c1c}
html[data-build="5"] body .shop-scene .ledger-item-foot{margin:3px 0 0;padding-top:4px;flex:none;align-items:center}
html[data-build="5"] body .shop-scene .ledger-price b{font:25px Georgia,serif;color:#614021}
html[data-build="5"] body .shop-scene .ledger-trade-note{min-height:12px;flex:none;font:10px/1.25 Georgia,serif;color:#805c38}
html[data-build="5"] body .shop-scene .ledger-item-actions{display:flex;flex:none;gap:6px;margin:4px 0 0}
html[data-build="5"] body .shop-scene .ledger-item-action,html[data-build="5"] body .shop-scene .ledger-item-action.buy{min-height:35px;height:auto;padding:6px 7px;flex:1;border:1px solid #5c3f25;border-radius:5px 5px 8px 8px;background:linear-gradient(145deg,#724a2f,#3e291d)!important;color:#f5e7c5!important;box-shadow:inset 0 0 0 1px #cba97555,0 2px 3px #24160e5e;font:clamp(11px,1.2vw,15px)/1.14 Georgia,serif!important;transform:none!important;transition:filter .22s,box-shadow .22s!important}
html[data-build="5"] body .shop-scene .ledger-item-action.buy{background:linear-gradient(135deg,#426347,#254535)!important;border-color:#344b34!important}
html[data-build="5"] body .shop-scene .ledger-item-action:hover:not(:disabled){filter:brightness(1.2)}
html[data-build="5"] body .shop-scene .ledger-item-action.buy span{display:inline}
html[data-build="5"] body .shop-scene .ledger-receipt{min-height:14px;max-height:30px;overflow-y:auto;flex:none;font:10px/1.2 Georgia,serif;color:#91462c}
html[data-build="5"] body .shop-scene .ledger-folio-number{padding:2px 0 0;margin:0;font:10px Georgia,serif;color:#87663f}
/* Tabs are bound to the book's visible PAPER EDGE, not the app's toolbar. */
html[data-build="5"] body .shop-scene .ledger-bookmark-rail{position:absolute;z-index:2;left:auto;right:-1.5%;top:19%;width:14.5%;height:58%;overflow:visible;pointer-events:none}
html[data-build="5"] body .shop-scene .ledger-tabs{width:100%;height:100%;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:clamp(3px,.4vw,7px);padding:2% 0;overflow:visible;pointer-events:none}
html[data-build="5"] body .shop-scene .ledger-tab,html[data-build="5"] body .shop-scene .ledger-tab:nth-child(n){position:relative;min-width:0;max-height:55px;min-height:34px;flex:1;display:flex;align-items:center;justify-content:flex-end;width:100%;padding:7px 14px 7px 19px;border:1px solid #aa874d;border-left:3px solid #ddba76;border-radius:2px 9px 9px 2px;clip-path:polygon(0 7%,94% 0,100% 10%,100% 89%,94% 100%,0 93%);background:linear-gradient(90deg,#18291d,#344f37 22%,#2c4532 90%)!important;box-shadow:2px 3px 5px #0c110a94,inset 0 1px #d3aa6c70;color:#fbeac7!important;font:clamp(10px,1.12vw,13px)/1.14 Georgia,serif;text-align:right;white-space:normal;transform:translateX(-14%) rotate(-.8deg);transform-origin:left center;transition:transform .25s cubic-bezier(.2,.7,.3,1),filter .25s;pointer-events:auto}
html[data-build="5"] body .shop-scene .ledger-tab:nth-child(4n+2){background:linear-gradient(90deg,#4d2d1e,#835137 24%,#5a3928 95%)!important}
html[data-build="5"] body .shop-scene .ledger-tab:nth-child(4n+3){background:linear-gradient(90deg,#55412a,#886440 24%,#5b412a 95%)!important}
html[data-build="5"] body .shop-scene .ledger-tab:nth-child(4n+4){background:linear-gradient(90deg,#353244,#62516b 24%,#453a50 95%)!important}
html[data-build="5"] body .shop-scene .ledger-tab:hover,html[data-build="5"] body .shop-scene .ledger-tab.active{transform:translateX(2%) rotate(0);filter:brightness(1.18)}
html[data-build="5"] body .shop-scene .ledger-tab.active::before{content:"✦";margin-right:auto;color:#ffdd93}
html[data-build="5"] body .shop-scene .ledger-inscription{position:absolute;top:8%;left:16%;right:16%;z-index:4;padding:0 0 5px;display:flex;justify-content:space-between;gap:6px;border-bottom:1px solid #96703a33;font:clamp(8px,.85vw,12px) Georgia,serif;letter-spacing:.08em;color:#785833}
html[data-build="5"] body .shop-scene .ledger-find{position:absolute;z-index:6;left:16%;top:12%;width:31%;max-width:64%;margin:0;color:#76542f;font:12px Georgia,serif}
html[data-build="5"] body .shop-scene .ledger-find>summary{width:max-content;padding:3px 6px;max-width:100%;font:italic clamp(10px,1vw,13px) Georgia,serif;border-bottom:1px dashed #99774c;background:#f2dfb89c}
html[data-build="5"] body .shop-scene .ledger-find[open]{width:64%;max-width:64%;padding:8px 12px 13px;border:1px solid #b28d57;border-radius:5px;background:#f3e0b9 url('/assets/ui/paper-grain.svg') center/cover;box-shadow:0 9px 22px #28160882}
html[data-build="5"] body .shop-scene .shop-ledger-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 10px;max-height:275px;overflow-y:auto;padding:8px 0 0}
html[data-build="5"] body .shop-scene .ledger-page-controls{position:absolute;z-index:5;left:24%;right:24%;bottom:8%;margin:0;display:flex;justify-content:space-between;align-items:center;gap:5px;color:#765733;font:12px Georgia,serif}
html[data-build="5"] body .shop-scene .ledger-page-button{min-width:78px;min-height:35px;padding:5px 8px;font:23px Georgia,serif!important;color:#664b2a;background:#ecd2a06f;border:1px solid #b9986261;border-radius:6px;transition:filter .2s!important}
html[data-build="5"] body .shop-scene .ledger-page-button:hover:not(:disabled){filter:brightness(.91)}
/* A leaf is one ACTUAL DOM page, sliced into 16 equal, continuously moving
   paper ribs. The art, text, prices and buttons never disappear from its front;
   its back is the next opposite page. The next right/left page is underneath. */
html[data-build="5"] body .shop-scene .ledger-turn-layer{position:absolute;z-index:15;pointer-events:none;transform-style:preserve-3d;overflow:visible}
html[data-build="5"] body .shop-scene .ledger-leaf-strip{position:absolute;left:0;top:0;transform-origin:0 50%;transform-style:preserve-3d;will-change:transform}
html[data-build="5"] body .shop-scene .ledger-leaf-face{position:absolute;inset:0;overflow:hidden;backface-visibility:hidden;background:#e9d3a7;transform:translateZ(.8px);box-shadow:inset 0 0 2px #b08d593d}
html[data-build="5"] body .shop-scene .ledger-leaf-face.leaf-back{transform:rotateY(180deg) translateZ(.8px);background:#e9d3a7}
html[data-build="5"] body .shop-scene .ledger-turn-copy{position:absolute!important;inset:auto!important;top:0!important;height:100%!important;min-height:0!important;max-width:none;margin:0!important;padding:2.3% 8.5% 1.8%!important;pointer-events:none;background:#f0ddb5 url('/assets/shop/v3/paper.webp') center/100% 100% no-repeat!important;box-shadow:inset 0 0 23px #8b603020!important;overflow:hidden!important}
html[data-build="5"] body .shop-scene .ledger-turn-copy.ledger-left{padding-left:8%!important;padding-right:9.5%!important}
html[data-build="5"] body .shop-scene .ledger-turn-copy.ledger-right{padding-left:9.5%!important;padding-right:7%!important}
html[data-build="5"] body .shop-scene .ledger-turn-under{z-index:2!important;background:#f0ddb5 url('/assets/shop/v3/paper.webp') center/100% 100% no-repeat!important}
html[data-build="5"] body .shop-scene .ledger-moving-shadow{position:absolute;inset:0;z-index:9;pointer-events:none;filter:blur(11px);background:linear-gradient(90deg,transparent,#51351c88 45%,#51351c99 55%,transparent);opacity:0;transform-origin:center}
html[data-build="5"] body .shop-scene .ledger-spine{position:absolute;display:block!important;visibility:visible;z-index:4;left:50%;top:-1%;bottom:-1%;width:3%;transform:translateX(-50%);pointer-events:none;background:linear-gradient(90deg,transparent,#48301936 44%,#45301a38 52%,transparent)}
html[data-build="5"] body .shop-scene .shop-counter-lip{background:url('/assets/shop/v3/counter.webp') center/auto 100% repeat-x!important}
@keyframes shop-message-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(max-width:1010px){html[data-build="5"] body .shop-scene .merchant-sprite{left:4%;top:4%;width:43%}html[data-build="5"] body .shop-scene .shopkeeper-stage{height:410px}html[data-build="5"] body .shop-scene .shopkeeper-dialogue{padding:12px 12px 10px}html[data-build="5"] body .shop-scene .ledger-page{padding:2% 7% 1.4%!important}html[data-build="5"] body .shop-scene .ledger-item-main{height:clamp(80px,9vw,115px)!important}html[data-build="5"] body .shop-scene .ledger-item-desc{font-size:12px!important}html[data-build="5"] body .shop-scene .ledger-item h2{font-size:19px}html[data-build="5"] body .shop-scene .ledger-item-stats{gap:2px 5px}html[data-build="5"] body .shop-scene .ledger-item-stats dd{font-size:11px}html[data-build="5"] body .shop-scene .ledger-item-reading{min-height:40px!important}}
@media(max-width:660px){html[data-build="5"] body .shop-scene .shopkeeper-stage{height:610px}html[data-build="5"] body .shop-scene .merchant-scene-canvas{width:180%;left:-6%;overflow:hidden}html[data-build="5"] body .shop-scene .merchant-sprite{top:2%;left:0;width:44%}html[data-build="5"] body .shop-scene .merchant-presence{left:3%;top:195px;bottom:auto;max-width:68%}html[data-build="5"] body .shop-scene .shopkeeper-side-panel{top:285px;left:4%;right:4%;bottom:7px}html[data-build="5"] body .shop-scene .shop-ledger-section{padding:26px 0 12px!important}html[data-build="5"] body .shop-scene .shop-ledger-shell{aspect-ratio:auto;width:100%;height:770px;min-height:770px;filter:none}html[data-build="5"] body .shop-scene .ledger-painted-book{display:none}html[data-build="5"] body .shop-scene .shop-ledger-shell::before{content:"";position:absolute;inset:0;z-index:0;background:url('/assets/shop/v3/book.webp') 6% center/200% 100% no-repeat;pointer-events:none}html[data-build="5"] body .shop-scene .ledger-leaves{left:14%;right:18%;top:13.5%;bottom:12.5%;grid-template-columns:1fr;gap:0!important}html[data-build="5"] body .shop-scene .ledger-page{padding:2% 6% 1.5%!important}html[data-build="5"] body .shop-scene .ledger-item h2{font-size:23px}html[data-build="5"] body .shop-scene .ledger-item-main{height:140px!important}html[data-build="5"] body .shop-scene .ledger-item-desc{font-size:14px!important}html[data-build="5"] body .shop-scene .ledger-inscription{left:20%;right:21%;top:7%;font-size:9px}html[data-build="5"] body .shop-scene .ledger-find{left:20%;top:11%;width:50%}html[data-build="5"] body .shop-scene .ledger-find[open]{width:75%;max-width:75%;left:14%}html[data-build="5"] body .shop-scene .shop-ledger-filters{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-build="5"] body .shop-scene .ledger-bookmark-rail{top:18%;right:-1%;width:20%;height:48%}html[data-build="5"] body .shop-scene .ledger-tab,html[data-build="5"] body .shop-scene .ledger-tab:nth-child(n){min-height:35px;max-height:51px;padding:5px 8px 5px 16px;font-size:11px!important}html[data-build="5"] body .shop-scene .ledger-page-controls{left:21%;right:26%;bottom:6.5%}html[data-build="5"] body .shop-scene .ledger-page-button{min-width:65px;min-height:34px}html[data-build="5"] body .shop-scene .ledger-spine{display:none!important}}
@media(prefers-reduced-motion:reduce){html[data-build="5"] body .shop-scene .merchant-chat-message{animation:none!important}}
/* Finish: the painted counter is a continuous material, not a tiled screenshot. */
html[data-build="5"] body .shop-scene .shopkeeper-game-scene{background:linear-gradient(0deg,#27150d,#56351f 44%,#372115)!important}
html[data-build="5"] body .shop-scene .shop-ledger-section{background:radial-gradient(ellipse at 50% 10%,#a46d384d,transparent 75%),repeating-linear-gradient(0deg,#53301c 0px,#613a22 3px,#482a1b 8px,#58371f 18px)!important}
html[data-build="5"] body .shop-scene .shop-ledger-section::before{display:none}
html[data-build="5"] body .shop-scene .ledger-bookmark-rail{width:10.5%;right:-2.8%;z-index:2}
html[data-build="5"] body .shop-scene .ledger-tab,html[data-build="5"] body .shop-scene .ledger-tab:nth-child(n){padding-left:10px;padding-right:13px;box-shadow:3px 3px 4px #120e0a8a}
html[data-build="5"] body .shop-scene .ledger-turn-under{overflow:hidden!important}
html[data-build="5"] body .shop-scene .ledger-single-leaf{position:absolute;inset:0;transform-style:preserve-3d;will-change:transform}
html[data-build="5"] body .shop-scene .ledger-single-face{position:absolute;inset:0;backface-visibility:hidden;background:#ecd7b2 url('/assets/shop/v3/paper.webp') center/100% 100% no-repeat;box-shadow:0 5px 18px #442c1b65}
html[data-build="5"] body .shop-scene .ledger-single-face.leaf-back{transform:rotateY(180deg)}
@media(max-width:660px){html[data-build="5"] body .shop-scene .shop-ledger-shell{background:none!important}html[data-build="5"] body .shop-scene .ledger-bookmark-rail{width:19%;right:-1.8%}}
html[data-build="5"] body .shop-scene .ledger-item-reading{display:flex;flex-direction:column}
html[data-build="5"] body .shop-scene .ledger-item-reading::after{content:"— ❦ —";display:block;flex:none;align-self:center;margin-top:auto;padding:8px 0 3px;color:#9a7444;font:19px Georgia,serif;opacity:.33;pointer-events:none}
html[data-build="5"] body .shop-scene .ledger-turn-edges{position:absolute;z-index:7;top:38%;left:9%;right:9%;display:flex;justify-content:space-between;align-items:center;pointer-events:none}
html[data-build="5"] body .shop-scene .ledger-edge{display:grid;place-items:center;width:4.1%;min-width:29px;height:94px;padding:0 2px;border:0;background:transparent;color:#8c6a3d;font:27px Georgia,serif;opacity:.4;pointer-events:auto;transition:transform .22s,opacity .22s,filter .22s,background .22s}
html[data-build="5"] body .shop-scene .ledger-edge:hover:not(:disabled){opacity:1;transform:translateY(-4px) rotate(-2deg);background:linear-gradient(90deg,#e3c18b77,#fae8c17d);border-radius:80% 2px 2px 80%;filter:drop-shadow(1px 4px 3px #2d200c5f)}
html[data-build="5"] body .shop-scene .ledger-edge-next:hover:not(:disabled){transform:translateY(-4px) rotate(2deg);background:linear-gradient(270deg,#e3c18b77,#fae8c17d);border-radius:2px 80% 80% 2px}
html[data-build="5"] body .shop-scene .ledger-edge:disabled{opacity:0;pointer-events:none}
@media(max-width:660px){html[data-build="5"] body .shop-scene .ledger-turn-edges{left:7%;right:20%;top:38%}html[data-build="5"] body .shop-scene .ledger-edge{width:26px;height:72px}}


/* assets/ui/shop-v4.css */
/* Player's shop / art-directed pass 4. Scoped: the administrator's shop remains unchanged.
   Source art is individually cut from the newly generated fantasy-shop asset sheet.
   Text, item art, transactions and chat are live DOM, never painted into a screenshot. */
html[data-build="5"] body .shop-scene { --shop-ink:#422c1c; --shop-paper:#f5dfb4; --shop-brass:#b7853e; --shop-forest:#224937; }
html[data-build="5"] body .shop-scene .shopkeeper-stage { height:clamp(390px,35.5vw,515px);border-bottom:5px solid #714620; }
html[data-build="5"] body .shop-scene .shopkeeper-scene-art { object-position:50% 51%;filter:saturate(.99) contrast(1.04); }
html[data-build="5"] body .shop-scene .merchant-scene-canvas:before,
html[data-build="5"] body .shop-scene .merchant-scene-canvas:after {content:"";position:absolute;z-index:1;pointer-events:none;mix-blend-mode:screen;transform:translate(-50%,-50%);border-radius:50%;animation:shop-v4-flame 7.3s ease-in-out infinite alternate;}
html[data-build="5"] body .shop-scene .merchant-scene-canvas:before {left:5.3%;top:28%;width:17%;height:54%;background:radial-gradient(ellipse,#ffd77c63 0%,#ffb65117 37%,transparent 68%);}
html[data-build="5"] body .shop-scene .merchant-scene-canvas:after {left:94%;top:20%;width:14%;height:46%;background:radial-gradient(ellipse,#ffd77c58 0%,#ffa34118 39%,transparent 70%);animation-duration:9.4s;animation-delay:-3s;}
@keyframes shop-v4-flame{0%,100%{opacity:.58;scale:.97}36%{opacity:.92;scale:1.02}72%{opacity:.7;scale:.99}}
html[data-build="5"] body .shop-scene .shop-dust {z-index:2;opacity:.44;}
html[data-build="5"] body .shop-scene .merchant-sprite {left:7.5%;top:2%;width:min(39%,490px);z-index:3;transform:none!important;image-rendering:auto;filter:drop-shadow(1px 8px 4px #170b0c7a);}
/* The chat has its own illustrated, UNWRITTEN sheet; dynamic dialogue is printed on top. */
html[data-build="5"] body .shop-scene .shopkeeper-side-panel {left:52.5%;right:3.25%;top:5.5%;bottom:6%;z-index:5;}
html[data-build="5"] body .shop-scene .shopkeeper-dialogue {position:relative;transform:none!important;border:0!important;border-radius:0!important;background:#efdbb6 url('/assets/shop/v4/chat-frame.webp') center/100% 100% no-repeat!important;box-shadow:0 12px 25px #1c0c0999,inset 0 0 20px #8b54261a!important;padding:clamp(28px,2.8vw,40px) clamp(28px,3vw,45px) clamp(25px,2.4vw,36px)!important;overflow:hidden;}
html[data-build="5"] body .shop-scene .shopkeeper-dialogue::before {display:none!important;}
html[data-build="5"] body .shop-scene .merchant-dialogue-heading {padding:0 0 7px;border-bottom:1px solid #a178453b;}
html[data-build="5"] body .shop-scene .merchant-dialogue-heading h1 {font:clamp(21px,2vw,29px)/1.13 Georgia,serif;}
html[data-build="5"] body .shop-scene .merchant-chat-history {padding:9px 2px 5px 0;overscroll-behavior:contain;}
html[data-build="5"] body .shop-scene .merchant-chat-message {padding:7px 10px;margin:7px 1px;background:#fffaec8e;border:1px solid #b59a6b66;border-left:3px solid #416a4b;box-shadow:0 2px 3px #63351413;}
html[data-build="5"] body .shop-scene .merchant-chat-message.player {background:#e1d1a783;border-left-color:#9a683c;}
html[data-build="5"] body .shop-scene .merchant-chat input {min-width:0;background:#fff5db70!important;border:1px solid #a7835270!important;padding:10px 9px!important;border-radius:3px!important;}
html[data-build="5"] body .shop-scene .merchant-chat .primary-button {flex-shrink:0;min-height:38px;font:14px Georgia,serif!important;transition:transform .15s ease,filter .15s ease!important;}
html[data-build="5"] body .shop-scene .merchant-chat .primary-button:hover:not(:disabled) {transform:translateY(-1px);filter:brightness(1.15)}
html[data-build="5"] body .shop-scene .merchant-presence {left:10%;bottom:12px;min-width:170px;max-width:30%;border:1px solid #b58b48!important;background:linear-gradient(110deg,#31271de8,#465138ea)!important;}
/* One counter, one contact shadow; the book does not float over a striped website section. */
html[data-build="5"] body .shop-scene .shop-ledger-section {margin:0;padding:14px 1.7% 18px!important;background:linear-gradient(0deg,#29180f99,#5b351a38),url('/assets/shop/v3/counter.webp') center top / 100% 135px repeat-y!important;box-shadow:inset 0 14px 28px #1c0c068a!important;}
html[data-build="5"] body .shop-scene .shop-ledger-shell {width:min(100%,1290px);max-width:1290px;filter:drop-shadow(0 11px 5px #1e0e0799) drop-shadow(0 22px 16px #120905a3);}
html[data-build="5"] body .shop-scene .ledger-leaves {left:11.7%;right:11.7%;top:12.2%;bottom:15.1%;}
html[data-build="5"] body .shop-scene .ledger-page {padding:2.1% 7.5% 1.7%!important;}
html[data-build="5"] body .shop-scene .ledger-page.ledger-left {padding-right:9.1%!important;}
html[data-build="5"] body .shop-scene .ledger-page.ledger-right {padding-left:9.1%!important;}
html[data-build="5"] body .shop-scene .ledger-page > header {flex:0 0 auto;padding-bottom:5px;border-bottom:1px solid #b08b5260;font:italic clamp(11px,1vw,14px) Georgia,serif;letter-spacing:.04em;}
html[data-build="5"] body .shop-scene .ledger-item {gap:4px;padding-top:8px!important;}
html[data-build="5"] body .shop-scene .ledger-item-overline {font-size:clamp(10px,.84vw,12px);letter-spacing:.06em;}
html[data-build="5"] body .shop-scene .ledger-item h2 {margin:0;padding:3px 0 4px;font:clamp(21px,2.1vw,29px)/1.12 Georgia,serif;min-height:0!important;max-height:none!important;max-width:100%;text-align:center;overflow-wrap:break-word;}
/* The new illustrated empty item niche is just a frame: actual art remains data-driven. */
html[data-build="5"] body .shop-scene .ledger-item-main {height:clamp(130px,13vw,183px)!important;min-height:100px!important;width:min(79%,215px);max-width:100%;margin:0 auto 2px;padding:8px 8px 10px!important;background:#674629 url('/assets/shop/v4/item-frame.webp') center/100% 100% no-repeat!important;border:0;border-radius:6px;box-shadow:0 5px 10px #49301742!important;overflow:hidden;}
html[data-build="5"] body .shop-scene .ledger-item-main img {width:100%!important;height:calc(100% - 9px)!important;max-width:100%!important;object-fit:contain;mix-blend-mode:normal;filter:drop-shadow(0 5px 5px #1a0b067a)!important;}
html[data-build="5"] body .shop-scene .ledger-item-main>span {font:italic 10px Georgia,serif;color:#fae7be;text-shadow:0 1px 4px #110900;}
html[data-build="5"] body .shop-scene .ledger-item-reading {min-height:56px!important;margin-top:2px;padding:3px 1px 0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#aa875284 transparent;}
html[data-build="5"] body .shop-scene .ledger-item-desc {font:clamp(13px,1.11vw,15.5px)/1.42 Georgia,serif!important;color:#422b1a!important;}
html[data-build="5"] body .shop-scene .ledger-item-stats {font-size:12px;line-height:1.3;}
html[data-build="5"] body .shop-scene .ledger-item-stats dt {font-size:11px;color:#795836;}
html[data-build="5"] body .shop-scene .ledger-item-stats dd {font-size:clamp(11px,.95vw,13px);color:#3c2b1e;}
html[data-build="5"] body .shop-scene .ledger-item-reading::after {display:none;}
html[data-build="5"] body .shop-scene .ledger-item-foot {padding-top:5px;margin-top:0;border-top:1px solid #b28c5470;}
html[data-build="5"] body .shop-scene .ledger-price b {font-size:clamp(19px,1.65vw,24px);}
html[data-build="5"] body .shop-scene .ledger-item-actions {gap:6px;margin-top:3px;}
html[data-build="5"] body .shop-scene .ledger-item-action {min-height:34px;border:1px solid #aa7c39;border-radius:4px;transition:filter .2s,transform .2s,box-shadow .2s!important;}
html[data-build="5"] body .shop-scene .ledger-item-action:hover:not(:disabled) {transform:translateY(-2px);filter:brightness(1.15);box-shadow:0 4px 8px #5d351c59;}
html[data-build="5"] body .shop-scene .ledger-item-action:active:not(:disabled) {transform:translateY(1px);box-shadow:none;}
html[data-build="5"] body .shop-scene .ledger-bookmark-rail {right:-3.1%;top:18%;width:10.8%;z-index:2;}
html[data-build="5"] body .shop-scene .ledger-tab, html[data-build="5"] body .shop-scene .ledger-tab:nth-child(n) {position:relative;margin:0 0 5px;padding:7px 13px 7px 10px;min-height:38px;box-shadow:0 2px 3px #10060399,inset 0 1px 0 #efcd9377;transform-origin:left center;transition:transform .2s ease,filter .2s ease,box-shadow .2s ease!important;}
html[data-build="5"] body .shop-scene .ledger-tab::before {content:"";position:absolute;left:-13px;top:6px;bottom:6px;width:17px;background:linear-gradient(90deg,#28190cf0,#76512b);box-shadow:-3px 1px 3px #11060499;z-index:-1;}
html[data-build="5"] body .shop-scene .ledger-tab:hover:not(.active) {transform:translateX(4px);filter:brightness(1.15);}
html[data-build="5"] body .shop-scene .ledger-tab.active {transform:translateX(7px);box-shadow:0 4px 10px #1006038c,inset 0 1px 0 #ffe6ab78;}
html[data-build="5"] body .shop-scene .ledger-find {top:8.2%;}
html[data-build="5"] body .shop-scene .ledger-find[open] {z-index:24;top:8%;box-shadow:0 12px 25px #2b170d8c;}
html[data-build="5"] body .shop-scene .ledger-folio-number {opacity:.77;}
html[data-build="5"] body .shop-scene .ledger-turn-copy {background:#efdbb1 url('/assets/shop/v3/paper.webp') center/100% 100% no-repeat!important;box-shadow:inset 0 0 28px #64401b2d,1px 0 2px #6a421d25!important;}
html[data-build="5"] body .shop-scene .ledger-leaf-face {background:linear-gradient(90deg,#f8e7c7,#e0bc7f);box-shadow:inset 2px 0 3px #89552e33;}
html[data-build="5"] body .shop-scene .ledger-leaf-face.leaf-back {background:linear-gradient(90deg,#e8c797,#f9e7c4);}
html[data-build="5"] body .shop-scene .ledger-turn-under {background:#f1dfbd url('/assets/shop/v3/paper.webp') center/100% 100% no-repeat!important;}
html[data-build="5"] body .shop-scene .ledger-moving-shadow {filter:blur(9px);background:linear-gradient(90deg,transparent,#3d26179c 45%,#2f1b136d 57%,transparent);}
html[data-build="5"] body .shop-scene .ledger-edge {opacity:.62;}
html[data-build="5"] body .shop-scene :is(.ledger-tab,.ledger-item-action,.ledger-edge,.ledger-page-button,.merchant-presence,button):focus-visible {outline:2px solid #f0c76e!important;outline-offset:2px;}
@media(max-width:1010px){
 html[data-build="5"] body .shop-scene .shopkeeper-stage {height:410px;}
 html[data-build="5"] body .shop-scene .shopkeeper-dialogue {padding:25px 26px 23px!important;}
 html[data-build="5"] body .shop-scene .merchant-sprite {left:5%;width:45%;}
 html[data-build="5"] body .shop-scene .ledger-item-main {height:clamp(96px,11vw,150px)!important;}
 html[data-build="5"] body .shop-scene .ledger-item-desc {font-size:12px!important;}
 html[data-build="5"] body .shop-scene .ledger-item h2 {font-size:19px;}
 html[data-build="5"] body .shop-scene .ledger-tab,html[data-build="5"] body .shop-scene .ledger-tab:nth-child(n) {font-size:10px!important;padding:6px 5px 6px 9px;}
}
@media(max-width:660px){
 html[data-build="5"] body .shop-scene .shopkeeper-stage {height:610px;}
 html[data-build="5"] body .shop-scene .merchant-scene-canvas {left:-6%;width:180%;}
 html[data-build="5"] body .shop-scene .merchant-sprite {left:0;top:1%;width:44%;}
 html[data-build="5"] body .shop-scene .shopkeeper-side-panel {left:3%;right:3%;top:283px;bottom:7px;}
 html[data-build="5"] body .shop-scene .shopkeeper-dialogue {padding:23px 25px 22px!important;}
 html[data-build="5"] body .shop-scene .merchant-dialogue-heading h1 {font-size:19px;}
 html[data-build="5"] body .shop-scene .merchant-chat-message p {font-size:12px!important;}
 html[data-build="5"] body .shop-scene .merchant-chat .primary-button {font-size:12px!important;}
 html[data-build="5"] body .shop-scene .merchant-presence {top:194px;left:3%;bottom:auto;max-width:74%;}
 html[data-build="5"] body .shop-scene .shop-ledger-section {padding:10px 0 12px!important;}
 html[data-build="5"] body .shop-scene .shop-ledger-shell {height:780px;min-height:780px;}
 html[data-build="5"] body .shop-scene .ledger-leaves {left:14%;right:18%;top:13.5%;bottom:12.5%;}
 html[data-build="5"] body .shop-scene .ledger-page {padding:2% 5.5% 1.5%!important;}
 html[data-build="5"] body .shop-scene .ledger-item-main {height:155px!important;width:min(84%,225px);}
 html[data-build="5"] body .shop-scene .ledger-item h2 {font-size:22px;}
 html[data-build="5"] body .shop-scene .ledger-item-desc {font-size:14px!important;}
 html[data-build="5"] body .shop-scene .ledger-bookmark-rail {right:-1.8%;top:18%;width:19%;}
 html[data-build="5"] body .shop-scene .ledger-tab,html[data-build="5"] body .shop-scene .ledger-tab:nth-child(n) {font-size:11px!important;min-height:35px;padding:5px 7px 5px 12px;}
 html[data-build="5"] body .shop-scene .ledger-find[open] {left:13%;max-width:75%;width:75%;}
}
@media(prefers-reduced-motion:reduce){
 html[data-build="5"] body .shop-scene .merchant-scene-canvas::before,html[data-build="5"] body .shop-scene .merchant-scene-canvas::after {animation:none!important;opacity:.55;}
 html[data-build="5"] body .shop-scene .ledger-tab,html[data-build="5"] body .shop-scene .ledger-item-action {transition:none!important;}
}
/* Polish from rendered review: quiet continuous wood, undoubled item frames,
   and room for the text in the catalogue margin. */
html[data-build="5"] body .shop-scene .shop-ledger-section {background:linear-gradient(0deg,#2a150b48,#5b301c24),url('/assets/shop/v4/wood-grain.webp') center top / 100% 290px repeat-y!important;}
html[data-build="5"] body .shop-scene .merchant-sprite {width:min(35%,440px);left:8.5%;top:4.5%;}
html[data-build="5"] body .shop-scene .shopkeeper-dialogue {padding:clamp(30px,3.5vw,49px) clamp(28px,3.7vw,52px) clamp(28px,3vw,41px)!important;}
html[data-build="5"] body .shop-scene .ledger-inscription {top:6.7%;left:16%;right:16%;opacity:.88;}
html[data-build="5"] body .shop-scene .ledger-find {top:10.1%;left:16%;}
html[data-build="5"] body .shop-scene .ledger-find[open] {top:8.8%;}
html[data-build="5"] body .shop-scene .ledger-item-main {width:min(80%,235px);background:radial-gradient(ellipse,#c99d5538,transparent 75%)!important;border:1px solid #b6956375;border-radius:3px;box-shadow:inset 0 0 9px #6e43252c!important;padding:4px!important;}
html[data-build="5"] body .shop-scene .ledger-item-main img {height:calc(100% - 12px)!important;mix-blend-mode:multiply;}
html[data-build="5"] body .shop-scene .ledger-item-main>span {color:#76512b;text-shadow:none;}
html[data-build="5"] body .shop-scene .ledger-item-stats dt {font-size:12px;}
html[data-build="5"] body .shop-scene .ledger-item-stats dd {font-size:13px;}
html[data-build="5"] body .shop-scene .ledger-page-empty::before {content:"";display:block;width:78px;height:78px;margin:5px auto 10px;background:url('/assets/shop/v4/item-frame.webp') center/contain no-repeat;opacity:.45;}
html[data-build="5"] body .shop-scene .shop-counter-lip {height:15px;background:url('/assets/shop/v4/wood.webp') center 15% / 100% auto no-repeat!important;border-top:2px solid #6e4127;box-shadow:0 -3px 4px #1f100e80;}
@media(max-width:1010px){html[data-build="5"] body .shop-scene .merchant-sprite {width:40%;left:7%;top:5%;}html[data-build="5"] body .shop-scene .shopkeeper-dialogue {padding:26px 29px!important;}}
@media(max-width:660px){html[data-build="5"] body .shop-scene .merchant-sprite {width:41%;left:2%;top:3%;}html[data-build="5"] body .shop-scene .shopkeeper-dialogue {padding:24px 27px!important;}html[data-build="5"] body .shop-scene .ledger-inscription {top:7%;left:20%;right:21%;}html[data-build="5"] body .shop-scene .ledger-find {top:11%;left:20%;}}

/* A stable printed backplate remains while the old painted-book element is replaced
   during a live page turn. Mobile uses its own one-page backplate instead. */
html[data-build="5"] body .shop-scene .shop-ledger-shell {background:url('/assets/shop/v3/book.webp') center/100% 100% no-repeat!important;}
@media(max-width:660px){html[data-build="5"] body .shop-scene .shop-ledger-shell {background:none!important;}}
/* Generated catalogue icons use their own antique frames: allow full visible art,
   but no inherited text or overflow outside the book's actual page silhouette. */
html[data-build="5"] body .shop-scene .ledger-item-main {isolation:isolate;overflow:hidden;}
html[data-build="5"] body .shop-scene .ledger-item-main img {object-fit:contain;max-height:100%;} 
/* Page edges should look touchable and remain legible over the counter in both themes. */
html[data-build="5"] body .shop-scene .ledger-page-button:not(:disabled) {
  color:#51331e!important;background:linear-gradient(#f9e8c7,#e5c391)!important;
  border:1px solid #8c622e!important;box-shadow:0 2px 5px #311b0e77,inset 0 1px 0 #fff2d2;
}
html[data-build="5"] body .shop-scene .ledger-page-button:not(:disabled):hover {
  filter:brightness(1.06)!important;box-shadow:0 3px 8px #1b0d0788,inset 0 1px 0 #fff5db;
}
html[data-build="5"] body .shop-scene .ledger-page-button:disabled {opacity:.36;cursor:not-allowed;}
html[data-build="5"] body .shop-scene .ledger-page-button span {font-size:clamp(12px,1vw,14px)!important;font-style:normal;}
html[data-build="5"] body .shop-scene .ledger-page-controls>span {font:italic 14px Georgia,serif;color:#d9b986;text-shadow:0 2px 3px #110806d9;}
@media(max-width:660px){html[data-build="5"] body .shop-scene .ledger-page-button span {font-size:11px!important;}}


/* assets/ui/shop-v5.css */
/* V5: tactile folio, registered player-scene layers and legible ink.
   All rules are strictly scoped to the player's shop scene. */
html[data-build="5"] body .shop-scene .shop-ledger-section{
  background:radial-gradient(ellipse 80% 24% at 50% 11%,#c08a4b2b,transparent 100%),url('/assets/shop/v4/wood-grain.webp') center top/100% 290px repeat-y!important;
}
html[data-build="5"] body .shop-scene .shopkeeper-stage:after{
 background:linear-gradient(0deg,#281309b5,transparent 16%),linear-gradient(90deg,#1609055c,transparent 22%,transparent 79%,#16090535);z-index:1;
}
html[data-build="5"] body .shop-scene .shopkeeper-dialogue{
 background-color:#ead2a5!important;background-size:100% 100%!important;
}
html[data-build="5"] body .shop-scene .merchant-dialogue-heading>span{font-size:11px;letter-spacing:.13em;}
html[data-build="5"] body .shop-scene .merchant-chat-history{scrollbar-gutter:stable;}
html[data-build="5"] body .shop-scene .merchant-chat-message p{overflow-wrap:anywhere;line-height:1.5!important;}
html[data-build="5"] body .shop-scene .merchant-chat :is(input,button){min-height:39px;}
html[data-build="5"] body .shop-scene .ledger-item h2{font-size:clamp(20px,2.05vw,29px)!important;line-height:1.15;text-wrap:balance;}
html[data-build="5"] body .shop-scene .ledger-item-desc{font-size:clamp(13px,1.06vw,15px)!important;line-height:1.45!important;}
html[data-build="5"] body .shop-scene .ledger-item-meta{font-size:clamp(11px,.9vw,13px)!important;line-height:1.38!important;}
html[data-build="5"] body .shop-scene .ledger-item-reading{scrollbar-gutter:stable;scrollbar-width:thin;}
html[data-build="5"] body .shop-scene .ledger-item-stats{font-size:13px;}
html[data-build="5"] body .shop-scene .ledger-item-stats dt{font-size:12px;}
html[data-build="5"] body .shop-scene .ledger-item-stats dd{font-size:clamp(12px,1vw,14px);}
html[data-build="5"] body .shop-scene .ledger-item-main{
 border:0!important;box-shadow:none!important;background:radial-gradient(ellipse 58% 67% at 50% 60%,#c99d5538,transparent 80%)!important;
}
html[data-build="5"] body .shop-scene .ledger-item-main img{mix-blend-mode:normal;filter:drop-shadow(0 4px 5px #5b391b55)!important;}
html[data-build="5"] body .shop-scene .ledger-item-main:focus-visible{outline:2px solid #725328!important;outline-offset:-1px;}
html[data-build="5"] body .shop-scene .ledger-item-main:focus-visible img{transform:translateY(-2px) scale(1.025)!important;}
html[data-build="5"] body .shop-scene .ledger-tab span{overflow-wrap:anywhere;hyphens:auto;}
html[data-build="5"] body .shop-scene .ledger-bookmark-rail{z-index:5;}
html[data-build="5"] body .shop-scene .ledger-tab{clip-path:polygon(0 5%,92% 0,100% 10%,100% 90%,92% 100%,0 95%);}
html[data-build="5"] body .shop-scene .ledger-tab::before{left:-8px;width:12px;}
html[data-build="5"] body .shop-scene .ledger-item-actions{gap:8px;}
html[data-build="5"] body .shop-scene .ledger-item-action{font-size:clamp(12px,1vw,14px)!important;}
html[data-build="5"] body .shop-scene .ledger-item-action:disabled{opacity:.58!important;filter:saturate(.5);}
html[data-build="5"] body .shop-scene .ledger-item.selected .ledger-item-overline{color:#654420;}
html[data-build="5"] body .shop-scene .ledger-item.selected .ledger-item-main:after{
 content:"";position:absolute;inset:4px;border:1px solid #a47d3766;box-shadow:inset 0 0 0 1px #fff1cb66;pointer-events:none;
}
html[data-build="5"] body .shop-scene .ledger-single-face,
html[data-build="5"] body .shop-scene .ledger-leaf-face{
 background:#eed8b0 url('/assets/shop/v3/paper.webp') center/100% 100% no-repeat;
}
html[data-build="5"] body .shop-scene .ledger-leaf-face:after,
html[data-build="5"] body .shop-scene .ledger-single-face:after{
 content:"";position:absolute;inset:0;pointer-events:none;
 background:linear-gradient(90deg,#3d210c23,transparent 9%,transparent 89%,#7a472820);
}
html[data-build="5"] body .shop-scene .ledger-leaf-face.leaf-back:after,
html[data-build="5"] body .shop-scene .ledger-single-face.leaf-back:after{
 background:linear-gradient(90deg,#6d411b34,transparent 18%,transparent 87%,#52311824);
}
html[data-build="5"] body .shop-scene .ledger-turn-under-blank .ledger-item,
html[data-build="5"] body .shop-scene .ledger-turn-under-blank>header,
html[data-build="5"] body .shop-scene .ledger-turn-under-blank .ledger-folio-number{visibility:hidden!important;}
html[data-build="5"] body .shop-scene .ledger-turn-under-blank:after{
 content:"❦";position:absolute;top:45%;left:0;right:0;text-align:center;font:48px Georgia,serif;color:#946e3f3d;pointer-events:none;
}
@media(min-width:661px){
 html[data-build="5"] body .shop-scene .ledger-turn-layer{filter:drop-shadow(0 7px 6px #47261144);}
 html[data-build="5"] body .shop-scene .ledger-item-main{height:clamp(125px,11.7vw,168px)!important;}
}
/* On narrow screens use a genuine single-volume folio, instead of revealing the
   original two-page book's huge spine and a chopped-off opposite cover. */
@media(max-width:660px){
 html[data-build="5"] body .shop-scene .shop-ledger-shell{
  background:url('/assets/shop/v5/single-folio.webp') center/100% 100% no-repeat!important;
  height:790px;min-height:790px;filter:drop-shadow(0 10px 8px #1a0809aa);
 }
 html[data-build="5"] body .shop-scene .shop-ledger-shell::before{display:none!important;}
 html[data-build="5"] body .shop-scene .ledger-leaves{left:16.7%;right:16.5%;top:12%;bottom:13.2%;}
 html[data-build="5"] body .shop-scene .ledger-page{padding:3% 4.5% 2%!important;}
 html[data-build="5"] body .shop-scene .ledger-inscription{top:7.4%;left:18.5%;right:18.5%;font-size:9px;}
 html[data-build="5"] body .shop-scene .ledger-find{top:10.6%;left:18.5%;}
 html[data-build="5"] body .shop-scene .ledger-find[open]{top:10%;left:15%;width:72%;max-width:72%;}
 html[data-build="5"] body .shop-scene .ledger-bookmark-rail{right:0;top:18%;width:17.5%;height:49%;}
 html[data-build="5"] body .shop-scene .ledger-tab,
 html[data-build="5"] body .shop-scene .ledger-tab:nth-child(n){font-size:10px!important;padding:5px 6px 5px 10px;min-height:35px;}
 html[data-build="5"] body .shop-scene .ledger-tab::before{left:-6px;width:9px;}
 html[data-build="5"] body .shop-scene .ledger-item h2{font-size:22px!important;}
 html[data-build="5"] body .shop-scene .ledger-item-main{height:157px!important;width:min(95%,240px)!important;}
 html[data-build="5"] body .shop-scene .ledger-item-desc{font-size:14px!important;}
 html[data-build="5"] body .shop-scene .ledger-item-reading{margin-top:3px;}
 html[data-build="5"] body .shop-scene .ledger-page-controls{left:20%;right:20%;bottom:5.8%;}
 html[data-build="5"] body .shop-scene .ledger-edge-next{transform:translateX(2px);}
 html[data-build="5"] body .shop-scene .shop-ledger-filters{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(prefers-reduced-motion:reduce){
 html[data-build="5"] body .shop-scene :is(.ledger-leaf-face,.ledger-single-face){transition:none!important;}
 html[data-build="5"] body .shop-scene .ledger-item-main img{transition:none!important;}
}
@media(max-width:660px){
 /* The desktop gutter must not shine through the mobile single-page folio. */
 html[data-build="5"] body .shop-scene .ledger-spine{display:none!important;visibility:hidden!important;}
 html[data-build="5"] body .shop-scene .ledger-leaves{isolation:isolate;}
}
/* The bound-leather border belongs to the COVER, not to every turning leaf.
   A clean parchment sheet makes the old print stay attached to the flipping paper
   without painting a second fake book spine over the moving artwork. */
html[data-build="5"] body .shop-scene .ledger-turn-copy,
html[data-build="5"] body .shop-scene .ledger-turn-under,
html[data-build="5"] body .shop-scene .ledger-single-face{
 background:#f1deb8 url('/assets/shop/v5/leaf-paper.webp') center/100% 100% no-repeat!important;
 box-shadow:inset 6px 0 10px #71492217,inset -4px 0 9px #6f4d2320!important;
}
html[data-build="5"] body .shop-scene .ledger-turn-copy{
 border-radius:4px 7px 8px 3px!important;
}
/* Chapter markers now extend from the actual exterior edge but never disappear
   behind the viewport; headings begin below the hand-written search note. */
@media(min-width:661px){
 html[data-build="5"] body .shop-scene .ledger-bookmark-rail{right:.5%;width:10.8%;}
 html[data-build="5"] body .shop-scene .ledger-page{padding-top:25px!important;}
 html[data-build="5"] body .shop-scene .ledger-turn-copy{padding-top:25px!important;}
}
@media(max-width:660px){
 html[data-build="5"] body .shop-scene .ledger-bookmark-rail{right:2%;width:20.5%;}
 html[data-build="5"] body .shop-scene .ledger-tab,html[data-build="5"] body .shop-scene .ledger-tab:nth-child(n){min-height:39px;}
 html[data-build="5"] body .shop-scene .ledger-tab.active{transform:translateX(0)!important;}
 html[data-build="5"] body .shop-scene .ledger-page{padding-top:24px!important;}
 html[data-build="5"] body .shop-scene .ledger-turn-copy{padding-top:24px!important;}
}


/* assets/ui/shop-v6.css */
/* v6 – one continuous paper leaf, registered art and quiet game motion. */
html[data-build="5"] body .shop-scene .ledger-physical-turn {
 position:absolute;z-index:18;pointer-events:none;overflow:visible;
 transform-style:preserve-3d;
 filter:none!important;
}
html[data-build="5"] body .shop-scene .ledger-physical-leaf {
 position:absolute;inset:0;transform-style:preserve-3d;will-change:transform;
}
html[data-build="5"] body .shop-scene .ledger-physical-face {
 position:absolute;inset:0;overflow:hidden;backface-visibility:hidden;
 background:#f0ddb7 url('/assets/shop/v5/leaf-paper.webp') center/100% 100% no-repeat;
 box-shadow:inset 0 0 13px #7b502b33, 0 4px 12px #2d1b1670;
 border-radius:5px 9px 9px 5px / 5px 8px 8px 5px;
 transform:translateZ(.9px);
}
html[data-build="5"] body .shop-scene .ledger-physical-face.leaf-back {
 transform:rotateY(180deg) translateZ(.9px);
 border-radius:9px 5px 5px 9px / 8px 5px 5px 8px;
}
html[data-build="5"] body .shop-scene .ledger-physical-face::after {
 position:absolute;inset:0;content:"";pointer-events:none;
 background:linear-gradient(90deg,#4e2b1836,transparent 12%,transparent 83%,#613d2150);
 opacity:var(--turn-shadow,.1);
}
html[data-build="5"] body .shop-scene .ledger-physical-face.leaf-back::after {
 background:linear-gradient(270deg,#4e2b1836,transparent 13%,transparent 82%,#613d2147);
}
html[data-build="5"] body .shop-scene .ledger-physical-face .ledger-turn-copy {
 position:absolute!important;top:0!important;left:0!important;width:100%!important;height:100%!important;
 box-sizing:border-box;padding:25px 4.5% 2%!important;
 background:transparent!important;box-shadow:none!important;overflow:hidden!important;
}
html[data-build="5"] body .shop-scene .ledger-physical-shadow {
 position:absolute;z-index:8;pointer-events:none;opacity:0;
 background:linear-gradient(90deg,transparent,#39241470 44%,#39241466 64%,transparent);
 filter:blur(9px);transform-origin:left center;
}
html[data-build="5"] body .shop-scene .ledger-turn-under {
 position:absolute!important;z-index:3!important;box-sizing:border-box;
 padding:25px 4.5% 2%!important;
 background:transparent!important;
 box-shadow:none!important;
}
/* Book text is laid out using page coordinates; avoid dead overlay cards. */
html[data-build="5"] body .shop-scene .ledger-leaves {perspective:1900px;}
html[data-build="5"] body .shop-scene .ledger-physical-face .ledger-item-main img {object-fit:contain;}
html[data-build="5"] body .shop-scene .ledger-item-actions button {touch-action:manipulation;}
html[data-build="5"] body .shop-scene .ledger-tab:focus-visible {outline-offset:1px!important;}
html[data-build="5"] body .shop-scene .ledger-item-reading:focus-visible {outline:1px solid #ae854a;outline-offset:2px;}
@media (max-width:660px) {
 html[data-build="5"] body .shop-scene .ledger-physical-face .ledger-turn-copy,
 html[data-build="5"] body .shop-scene .ledger-turn-under {padding:24px 4.5% 2%!important;}
 html[data-build="5"] body .shop-scene .ledger-physical-face.leaf-back {background:#eee0c0 url('/assets/shop/v5/leaf-paper.webp') center/100% 100% no-repeat;}
}
@media(prefers-reduced-motion:reduce){
 html[data-build="5"] body .shop-scene .ledger-physical-leaf {will-change:auto;}
}


/* assets/ui/shop-v7.css */
/* Original CSS corner-fold for the HTML player shop; no Unity code/assets copied. */
html[data-build="5"] body .shop-scene .ledger-current,
html[data-build="5"] body .shop-scene .ledger-turn-copy {isolation:isolate;}
html[data-build="5"] body .shop-scene .ledger-sheet-art {
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
 display:block!important;max-width:none!important;object-fit:fill!important;
 z-index:-1;pointer-events:none;user-select:none;opacity:1;
 border-radius:6px;filter:sepia(.07) saturate(.93);
}
html[data-build="5"] body .shop-scene .ledger-page.ledger-current {
 background:transparent!important;box-shadow:none!important;
}
html[data-build="5"] body .shop-scene .ledger-turn-under,
html[data-build="5"] body .shop-scene .ledger-curl-face {
 position:absolute!important;display:flex!important;flex-direction:column!important;
 padding:25px 4.5% 2%!important;box-sizing:border-box;min-width:0;
 background:transparent!important;box-shadow:none!important;overflow:hidden!important;
 border:0!important;border-radius:5px; transform-origin:center center;
}
html[data-build="5"] body .shop-scene .ledger-curl-turn {
 position:absolute;z-index:18;pointer-events:none;overflow:visible;
 contain:layout style;
}
html[data-build="5"] body .shop-scene .ledger-curl-back {z-index:2;will-change:clip-path,transform;}
html[data-build="5"] body .shop-scene .ledger-curl-front {z-index:3;will-change:clip-path;}
html[data-build="5"] body .shop-scene .ledger-turn-under {z-index:1!important;}
html[data-build="5"] body .shop-scene .ledger-curl-cast-shadow {
 position:absolute;z-index:4;pointer-events:none;
 background:linear-gradient(90deg,transparent,#432b2250 34%,#381d137c 60%,transparent);
 filter:blur(8px);transform-origin:center center;mix-blend-mode:multiply;
}
html[data-build="5"] body .shop-scene .ledger-curl-crease {
 position:absolute;z-index:5;pointer-events:none;
 background:linear-gradient(90deg,#45260b7a,#fff2d1b3 45%,#6a482440 90%,transparent);
 filter:blur(3px);transform-origin:center center;
}
html[data-build="5"] body .shop-scene .ledger-curl-face :is(button,input,select) {pointer-events:none!important;}
@media(max-width:660px){
 html[data-build="5"] body .shop-scene .ledger-curl-face,
 html[data-build="5"] body .shop-scene .ledger-turn-under {padding:24px 4.5% 2%!important;}
}
@media(prefers-reduced-motion:reduce){
 html[data-build="5"] body .shop-scene .ledger-curl-face{will-change:auto;}
}

html[data-build="5"] body .shop-scene .ledger-current{touch-action:pan-y;}

/* v8 refinement: every page face carries full illustrated folio art rather than
   a flat paper texture. The art sits on the page itself, including torn borders,
   so the curl never falls back to a generic texture. */
html[data-build="5"] body .shop-scene .ledger-sheet-art {
 z-index:0 !important;
 inset:-1.2% -1.6% -1.1% -1.6% !important;
 width:103.2% !important;
 height:102.4% !important;
 object-fit:fill !important;
 border-radius:0 !important;
 filter:drop-shadow(0 1px 1px rgba(72,43,22,.22));
}
html[data-build="5"] body .shop-scene :is(.ledger-page,.ledger-turn-copy,.ledger-curl-face,.ledger-turn-under) > :not(.ledger-sheet-art){
 position:relative;z-index:1;
}
html[data-build="5"] body .shop-scene .ledger-turn-copy,
html[data-build="5"] body .shop-scene .ledger-turn-copy.ledger-right,
html[data-build="5"] body .shop-scene .ledger-turn-copy.ledger-turn-under{
 background:none !important;
}
html[data-build="5"] body .shop-scene .ledger-turn-under,
html[data-build="5"] body .shop-scene .ledger-curl-face{
 padding:30px 7.8% 4.8% !important;
}
html[data-build="5"] body .shop-scene .ledger-page{
 padding:10px 26px 12px;
}
html[data-build="5"] body .shop-scene .ledger-curl-turn{
 perspective:1800px;
 transform-style:preserve-3d;
}
html[data-build="5"] body .shop-scene .ledger-curl-face{
 backface-visibility:hidden;
 transform-style:preserve-3d;
}
html[data-build="5"] body .shop-scene .ledger-curl-cast-shadow{
 background:linear-gradient(90deg,transparent,rgba(60,34,19,.18) 28%,rgba(40,18,9,.45) 54%,rgba(24,10,5,.18) 76%,transparent);
 filter:blur(10px);
}
html[data-build="5"] body .shop-scene .ledger-curl-crease{
 background:linear-gradient(90deg,rgba(60,32,10,.22),rgba(255,245,220,.95) 40%,rgba(145,101,51,.28) 74%,transparent);
 filter:blur(2px);
}
@media(max-width:660px){
 html[data-build="5"] body .shop-scene .ledger-turn-under,
 html[data-build="5"] body .shop-scene .ledger-curl-face{padding:28px 8.6% 4.8% !important;}
 html[data-build="5"] body .shop-scene .ledger-sheet-art{inset:-1.3% -1.8% -1.1% -1.8% !important;width:103.6% !important;}
}
/* v8: the turning sheet is an irregular, transparent cut-out of the actual
   illustrated paper, rather than a second rectangular rendering of the cover. */
html[data-build="5"] body .shop-scene .ledger-sheet-art{
 inset:-2.25% -2.2% -1.5% -2.2%!important;
 width:104.4%!important;height:103.75%!important;
 filter:drop-shadow(0 2px 2px #54301546);
}
html[data-build="5"] body .shop-scene .ledger-current>.ledger-sheet-art{opacity:0!important;}
/* On the stationary spread the painted folio already exists under the ink.
   Only a flying leaf and a fresh under-leaf draw their own physical paper. */
html[data-build="5"] body .shop-scene .ledger-turn-under>.ledger-sheet-art,
html[data-build="5"] body .shop-scene .ledger-curl-face>.ledger-sheet-art{opacity:1!important;}
/* The new underlying right page already belongs to the open-book painting.
   Do not draw a second worn perimeter inside the original one. */
@media(min-width:661px){html[data-build="5"] body .shop-scene .ledger-turn-under>.ledger-sheet-art{opacity:0!important;}}
/* The ink sits inset within the real illustrated sheet. Register the moving
   folio to the PAPER perimeter of book.webp (not to the inset text rectangle):
   identical coordinates at rest and at 0%/100% of the turn. */
@media(min-width:661px){
 html[data-build="5"] body .shop-scene .ledger-leaves{
  left:14.7%!important;right:14.5%!important;top:7%!important;bottom:13.2%!important;
 }
 html[data-build="5"] body .shop-scene .ledger-page{
  padding:50px 44px 12px!important;
 }
 html[data-build="5"] body .shop-scene .ledger-turn-under,
 html[data-build="5"] body .shop-scene .ledger-curl-face{
  padding:50px 44px 12px!important;
 }
 html[data-build="5"] body .shop-scene .ledger-sheet-art{
  inset:0!important;width:100%!important;height:100%!important;
 }
}
/* V9: the corner itself, not an invisible edge overlay, is the drag handle. */
html[data-build="5"] body .shop-scene .ledger-leaves{touch-action:pan-y;}
html[data-build="5"] body .shop-scene .ledger-corner{
 position:absolute;bottom:-7px;width:58px;height:62px;z-index:32;
 display:grid;place-items:end; padding:0 4px 5px;
 border:0;background:transparent;box-shadow:none;
 color:#f8e2ae;cursor:grab;touch-action:none;
 opacity:.68;transition:opacity .16s ease,filter .16s ease;
}
html[data-build="5"] body .shop-scene .ledger-corner-prev{left:-16px;justify-items:start;}
html[data-build="5"] body .shop-scene .ledger-corner-next{right:-16px;justify-items:end;}
html[data-build="5"] body .shop-scene .ledger-corner span{
 display:grid;place-items:center;width:27px;height:26px;
 font:19px Georgia,serif;text-shadow:0 1px 3px #4a230f;
 background:linear-gradient(145deg,#f5dfad,#a87839 50%,#5e3f21);
 color:#5a391f;clip-path:polygon(0 0,100% 100%,0 100%);
 filter:drop-shadow(0 2px 2px #40281090);
}
html[data-build="5"] body .shop-scene .ledger-corner-prev span{transform:scaleX(-1);}
html[data-build="5"] body .shop-scene .ledger-corner:hover:not(:disabled),
html[data-build="5"] body .shop-scene .ledger-corner:focus-visible{opacity:1;filter:brightness(1.2)}
html[data-build="5"] body .shop-scene .ledger-corner:active{cursor:grabbing}
html[data-build="5"] body .shop-scene .ledger-corner:disabled{visibility:hidden;pointer-events:none}
@media(max-width:660px){
 html[data-build="5"] body .shop-scene .ledger-corner{bottom:-6px;width:49px;height:51px;}
 html[data-build="5"] body .shop-scene .ledger-corner-prev{left:-5px;}
 html[data-build="5"] body .shop-scene .ledger-corner-next{right:-5px;}
}

/* V10: the leaf actually lying in the book is the SAME full illustrated sheet
   that the mesh bends. Never replace a large flying page with the smaller
   paper printed onto the leather book background. */
html[data-build="5"] body .shop-scene .ledger-current>.ledger-sheet-art,
html[data-build="5"] body .shop-scene .ledger-turn-under>.ledger-sheet-art{
 opacity:1!important;
}
@media(min-width:661px){
 html[data-build="5"] body .shop-scene .ledger-leaves{
  left:8.5%!important;right:8.5%!important;top:6.0%!important;bottom:8.6%!important;
  gap:0!important;
 }
 html[data-build="5"] body .shop-scene .ledger-page{
  padding:54px 55px 24px!important;
 }
 html[data-build="5"] body .shop-scene .ledger-turn-under,
 html[data-build="5"] body .shop-scene .ledger-curl-face{
  padding:54px 55px 24px!important;
 }
}
html[data-build="5"] body .shop-scene .ledger-settled-layer{
 position:absolute!important;inset:0!important;display:block!important;
 width:100%!important;height:100%!important;pointer-events:none!important;
 z-index:8!important;opacity:1!important;filter:none!important;
}
html[data-build="5"] body .shop-scene .ledger-corner{
 z-index:48!important;bottom:0!important;width:86px!important;height:89px!important;
 opacity:.9!important;touch-action:none!important;pointer-events:auto!important;
}
html[data-build="5"] body .shop-scene .ledger-corner-prev{left:-12px!important;}
html[data-build="5"] body .shop-scene .ledger-corner-next{right:-12px!important;}
html[data-build="5"] body .shop-scene .ledger-corner span{
 width:40px!important;height:40px!important;font-size:22px!important;
}
@media(max-width:660px){
 html[data-build="5"] body .shop-scene .ledger-corner{width:68px!important;height:74px!important;bottom:0!important;}
 html[data-build="5"] body .shop-scene .ledger-current>.ledger-sheet-art{opacity:1!important;}
}

/* v11: slightly shorter sheets (same width), contained inside the painted
   leather cover. Moving and stationary paper share this one page box. */
@media (min-width:661px) {
 html[data-build="5"] body .shop-scene .ledger-leaves {
  top:7.2%!important; bottom:10.2%!important;
 }
 html[data-build="5"] body .shop-scene .ledger-page {
  min-height:0!important; height:100%!important;
  padding-top:48px!important; padding-bottom:18px!important;
 }
 html[data-build="5"] body .shop-scene .ledger-turn-under,
 html[data-build="5"] body .shop-scene .ledger-curl-face {
  min-height:0!important; padding-top:48px!important; padding-bottom:18px!important;
 }
}

/* v12: four persistent leaves in the catalogue: two base leaves (under the
   moving paper) and the same two interactive top leaves for the whole visit. */
html[data-build="5"] body .shop-scene .shop-ledger-shell {isolation:isolate;}
html[data-build="5"] body .shop-scene .ledger-painted-book {z-index:0!important;}
html[data-build="5"] body .shop-scene .ledger-bookmark-rail {
 z-index:1!important;
 /* The tabs emerge from the page block, but do not cover moving paper. */
}
html[data-build="5"] body .shop-scene .ledger-leaves {
 z-index:3!important; isolation:isolate!important;
}
html[data-build="5"] body .shop-scene .ledger-page.ledger-base-page {
 position:absolute!important;top:0!important;left:0!important;
 width:50%;height:100%;min-height:0!important;
 z-index:0!important;pointer-events:none!important;
 padding:48px 55px 18px!important;
 overflow:hidden!important;
}
html[data-build="5"] body .shop-scene .ledger-page.ledger-base-page.ledger-under-right {left:50%;}
html[data-build="5"] body .shop-scene .ledger-page.ledger-current {
 position:relative!important;z-index:2!important;
 /* The page border remains below the physical leather binding. */
 overflow:hidden!important;
}
html[data-build="5"] body .shop-scene .ledger-base-page :is(button,input,select,a) {pointer-events:none!important;}
html[data-build="5"] body .shop-scene .ledger-mesh-canvas {z-index:25!important;}
html[data-build="5"] body .shop-scene .ledger-settled-layer,
html[data-build="5"] body .shop-scene .ledger-under-snapshot {
 position:absolute!important;inset:0!important;
 width:100%!important;height:100%!important;
 image-rendering:auto;pointer-events:none!important;
 z-index:8!important; opacity:1!important;
}
/* Shorten the bottoms by ~2% without shrinking the width: the worn paper must
   sit INSIDE the original stack in the painted leather book. */
@media(min-width:661px){
 html[data-build="5"] body .shop-scene .ledger-leaves {top:7.2%!important;bottom:12.25%!important;}
}
@media(max-width:660px){
 html[data-build="5"] body .shop-scene .ledger-page.ledger-base-page {width:100%!important;left:0!important;padding:28px 8.6% 4.8%!important;}
 html[data-build="5"] body .shop-scene .ledger-bookmark-rail{z-index:1!important;}
}


/* assets/ui/player-scene-v17.css */
/* Player scene backgrounds — v17
   Loaded last on purpose: the full-screen scene must remain underneath every
   player layout, including the left navigation column. */

html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .game-shell {
  position: relative !important;
  isolation: isolate !important;
  background: transparent !important;
  background-image: none !important;
}

html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .player-scene-background {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .player-scene-background::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(241, 222, 196, .32) 0%,
      rgba(248, 237, 219, .14) 22%,
      rgba(248, 237, 219, .08) 60%,
      rgba(235, 216, 190, .26) 100%);
}

html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .player-scene-background {
  background-image: url('/assets/ui/optimized/chats-ee10272c.webp');
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="characters"] .player-scene-background {
  background-image: url('/assets/ui/optimized/characters-da34950f.webp');
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .player-scene-background {
  background-image: url('/assets/ui/optimized/games-557f2982.webp');
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .player-scene-background {
  background-image: url('/assets/ui/optimized/quests-3611c3d9.webp');
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .player-scene-background {
  background-image: url('/assets/ui/optimized/shop-c83c753d.webp');
}

/* Old world layer is not used on player screens anymore. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .world-bg,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .world-bg::after {
  opacity: 0 !important;
  background: none !important;
}

/* The scene layer spans beneath all three shell regions. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) :is(.hud-bar, .side-rail, .game-stage) {
  position: relative;
  z-index: 2;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .game-stage {
  z-index: 1;
}

/* No separate slab behind the left rail: the same illustration is visible there. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .side-rail {
  background: transparent !important;
  background-image: none !important;
  border-right-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .side-nav {
  background: transparent !important;
  background-image: none !important;
}

/* The top bar also belongs to the same scene, but keeps a very light readable veil. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .hud-bar {
  background: rgba(245, 232, 210, .18) !important;
  background-image: none !important;
  border-bottom-color: rgba(86, 58, 34, .16) !important;
  box-shadow: none !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
}

/* Do not let theme wrappers paint a second page background on top of the scene. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) :is(
  .game-stage,
  .stage-content,
  .rpg-screen,
  .tavern-screen,
  .games-screen,
  .quests-screen,
  .shop-screen,
  .characters-screen,
  .character-studio-screen
) {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Keep the illustrated navigation plaques from v13, but no icon is rendered.
   Each label has its own safe parchment zone so it never sits on skulls,
   crystals, coins, axe heads, cloth, etc. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .nav-button {
  position: relative !important;
  isolation: isolate;
  display: block !important;
  width: 100% !important;
  min-height: 86px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #4a301d !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  text-shadow: 0 1px 0 rgba(255, 248, 232, .85) !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .nav-button::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transition: transform .18s ease, filter .18s ease;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .nav-button[data-view="chats"]::before {
  background-image: url('/assets/ui/optimized/vines-550a210e.webp');
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .nav-button[data-view="characters"]::before {
  background-image: url('/assets/ui/optimized/wizard-18afe8c6.webp');
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .nav-button[data-view="games"]::before {
  background-image: url('/assets/ui/optimized/axe-dcf66e6e.webp');
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .nav-button[data-view="quests"]::before {
  background-image: url('/assets/ui/optimized/skull-0bb9e839.webp');
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .nav-button[data-view="shop"]::before {
  background-image: url('/assets/ui/optimized/coins-12458240.webp');
}

html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .nav-symbol,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .nav-icon {
  display: none !important;
}

html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .nav-button .nav-label {
  position: absolute !important;
  z-index: 2 !important;
  top: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 46% !important;
  margin: 0 !important;
  padding: 0 4px !important;
  transform: translateY(-50%) !important;
  font-size: .76rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .01em !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
/* Safe text areas per plaque artwork. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .nav-button[data-view="chats"] .nav-label {
  left: 18% !important;
  right: 16% !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .nav-button[data-view="characters"] .nav-label {
  left: 25% !important;
  right: 20% !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .nav-button[data-view="games"] .nav-label {
  left: 24% !important;
  right: 18% !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .nav-button[data-view="quests"] .nav-label {
  left: 27% !important;
  right: 16% !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .nav-button[data-view="shop"] .nav-label {
  left: 28% !important;
  right: 15% !important;
}

html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .nav-button:hover::before {
  transform: translateY(-1px) scale(1.01);
  filter: saturate(1.05) brightness(1.025);
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .nav-button.active::before {
  transform: translateY(-1px) scale(1.015);
  filter: saturate(1.08) brightness(1.035) drop-shadow(0 7px 11px rgba(58, 36, 18, .17));
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .nav-badge {
  position: absolute !important;
  z-index: 3 !important;
  top: 8px !important;
  right: 13% !important;
  margin: 0 !important;
  transform: none !important;
}

/* Player mobile navigation is text-only too. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .mobile-tab .nav-symbol,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .mobile-tab .nav-icon {
  display: none !important;
}

@media (max-width: 820px) {
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .player-scene-background {
    background-position: 58% center;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .hud-bar {
    background: rgba(245, 232, 210, .34) !important;
  }
}

/* Disable the earlier experimental body pseudo-background; v17 uses the real shell layer above. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])::before,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])::after {
  content: none !important;
  display: none !important;
  background: none !important;
}


/* v18 — targeted player-screen refinements requested on 2026-09-25.
   - chat/game/quest blocks use illustrated parchment sheets
   - character screen keeps one shared backdrop
   - quest top title removed
   - shop inner helper backdrops are stripped */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]){
  --v18-light-sheet: url('/assets/quests/sheets/parchment-pieces/preview.webp');
  --v18-light-sheet-alt: url('/assets/quests/sheets/sealed-parchment/preview.webp');
  --v18-sheet-fill: rgba(252, 246, 230, .88);
  --v18-sheet-line: rgba(121, 84, 42, .24);
  --v18-sheet-shadow: 0 14px 34px rgba(63, 39, 20, .16);
}

html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) :is(
  .tavern-chat-desk,
  .archive-chest,
  .signed-contracts,
  .campaign-board,
  .schedule-week-group,
  .schedule-player-group,
  .game-row,
  .quest-board-goals,
  .quest-board-filters,
  .quest-archive-vault,
  .archive-vault-body,
  .archive-filter-bar,
  .archive-contract,
  .goal-card,
  .board-empty,
  .character-case-chat
){
  border: 1px solid var(--v18-sheet-line) !important;
  background-color: var(--v18-sheet-fill) !important;
  background-image: var(--v18-light-sheet) !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  box-shadow: var(--v18-sheet-shadow) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Chat: the messenger fills the screen downward and all main panes read as parchment sheets. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .tavern-screen{
  gap: 18px;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .tavern-chat-desk{
  min-height: calc(100dvh - 170px) !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .tavern-ledger-column,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .tavern-thread-column,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-window,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .archive-chest{
  background: transparent !important;
  box-shadow: none !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) :is(.messenger-column-title,.chat-window-head,.chat-compose,.archive-chest>summary){
  background: rgba(250, 243, 226, .76) !important;
  color: #4a321f !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-compose{
  border-top-color: rgba(121,84,42,.2) !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .tavern-ledger-column{
  border-right-color: rgba(121,84,42,.18) !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-group-title,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-list-item:hover,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-list-item.active{
  background-color: rgba(169, 127, 76, .10) !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .message-bubble{
  background: rgba(255,248,236,.92) !important;
  border-color: rgba(121,84,42,.18) !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .message.me .message-bubble{
  background: rgba(240,225,197,.96) !important;
  border-color: rgba(145,104,54,.24) !important;
}

/* Characters: the iframe area and the side chat share the same quiet world, without a second boxed backdrop. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .characters-screen,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .character-studio-workspace,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .character-studio-frame,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .character-case-chat .chat-window{
  background: transparent !important;
  box-shadow: none !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .character-studio-frame{
  background-color: transparent !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .character-case-chat{
  background-image: var(--v18-light-sheet-alt) !important;
}

/* Games: every key planning block is drawn as a sheet, not as flat tint-only panels. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .games-screen :is(.signed-contracts,.campaign-board,.schedule-week-group,.schedule-player-group,.game-row){
  color: #402b1f;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .games-screen :is(.campaign-board-head, .schedule-week-group>summary, .schedule-player-group>summary){
  background: rgba(248,240,223,.6) !important;
}

/* Quests: remove the extra top title; archive, goals and filters become sheet blocks too. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quests-screen > .scene-hero{
  display: none !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .quest-board-goals,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .quest-board-filters,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .quest-archive-vault,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .archive-vault-body,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .archive-filter-bar,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .goal-card,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .archive-contract{
  background-image: var(--v18-light-sheet-alt) !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .archive-vault-toggle{
  background: rgba(250, 243, 226, .88) !important;
  border: 1px solid rgba(121,84,42,.24) !important;
  box-shadow: var(--v18-sheet-shadow) !important;
}

/* Shop: keep only the outer common scene; remove helper backdrops behind seller, chat zone and book container. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .shop-screen,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .shop-scene,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .shopkeeper-game-scene,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .shopkeeper-stage,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .merchant-scene-canvas,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .shopkeeper-side-panel,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .shop-ledger-section,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .shop-book-ui{
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .merchant-presence{
  background: rgba(250, 243, 226, .68) !important;
  background-image: none !important;
  box-shadow: none !important;
}
/* Keep the actual book pages, but remove the extra surrounding shell artwork/backplate. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .shop-ledger-shell,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .shop-ledger-shell::before,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .ledger-painted-book,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .ledger-spine,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .merchant-chat-history{
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

@media (max-width: 820px) {
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .tavern-chat-desk{
    min-height: auto !important;
  }
}


/* v19 — focused polish pass for chat / characters / shop */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .tavern-screen{
  min-height: calc(100dvh - 126px);
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .tavern-chat-desk{
  height: calc(100dvh - 176px) !important;
  min-height: calc(100dvh - 176px) !important;
  align-items: stretch !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .tavern-ledger-column,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .tavern-thread-column{
  display: grid !important;
  grid-template-rows: auto minmax(0,1fr) !important;
  min-height: 0 !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-ledger,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-window,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .messages{
  min-height: 0 !important;
  max-height: none !important;
  height: 100% !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-ledger{
  overflow: auto !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .messages{
  overflow-y: auto !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .tavern-ledger-column,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .tavern-thread-column{
  background-color: rgba(251,245,231,.42) !important;
  background-image: var(--v18-light-sheet-alt) !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .archive-chest{
  margin: 12px !important;
}

/* Character panel: the wrapper around the iframe is also transparent and the side chat sits lighter. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .character-studio-host,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .character-studio-frame,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .character-studio-screen{
  background: transparent !important;
  box-shadow: none !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .character-case-chat{
  border-left: 0 !important;
}

/* Quests: no extra hero header gap after removing the title. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quests-screen{
  padding-top: 0 !important;
}

/* Shop: keep only the scene backdrop plus the real book / sprites; no extra panel plates around them. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .merchant-scene-canvas::before,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .merchant-scene-canvas::after,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .shop-counter-overlay,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .shop-counter-lip{
  display: none !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .shopkeeper-side-panel{
  border: 0 !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .merchant-chat-history,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .merchant-chat,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .merchant-chat input{
  background: transparent !important;
  background-image: none !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .merchant-chat input{
  border-bottom: 1px solid rgba(101,73,40,.38) !important;
}

@media (max-width: 820px) {
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .tavern-screen{
    min-height: auto;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .tavern-chat-desk{
    height: auto !important;
    min-height: auto !important;
  }
}


/* v20 — extra polish pass for chat / characters / shop */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .tavern-chat-desk{
  gap: 14px !important;
  align-items: stretch !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .tavern-ledger-column,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .tavern-thread-column,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-window,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-compose,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .archive-chest{
  background-color: rgba(251,245,231,.88) !important;
  background-image: var(--v18-light-sheet-alt) !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-window,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .tavern-thread-column{
  min-height: calc(100dvh - 210px) !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-compose{
  border-top: 1px solid rgba(121,84,42,.18) !important;
  border-radius: 0 0 18px 18px !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-compose textarea,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-compose input,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-compose .message-draft{
  background: rgba(255,250,241,.72) !important;
  border: 1px solid rgba(121,84,42,.18) !important;
}

/* Characters: keep one common backdrop and reduce any extra framed feeling. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .characters-screen,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .character-studio-host,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .character-studio-workspace,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .character-studio-screen,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .character-studio-frame{
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .character-case-chat,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .character-case-chat .chat-window{
  background-color: rgba(251,245,231,.82) !important;
  background-image: var(--v18-light-sheet) !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  box-shadow: 0 12px 28px rgba(63,39,20,.10) !important;
}

/* Shop: leave only the outer scene backdrop; remove the extra wooden / panel backgrounds around content. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .shop-ledger-section,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .shop-ledger-viewport,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .shopkeeper-stage,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .shopkeeper-side-panel,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .merchant-scene-canvas,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .merchant-presence,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .shop-book-ui,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .shop-ledger-shell,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .merchant-chat-history,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .merchant-chat{
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .shop-scene .shop-ledger-section{
  padding-top: 10px !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .merchant-chat input,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .merchant-chat textarea{
  background: rgba(255,250,241,.24) !important;
  border: 1px solid rgba(101,73,40,.24) !important;
}

/* Slightly calmer quest paper blocks for readability. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .quest-board-goals,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .quest-board-filters,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .quest-archive-vault{
  box-shadow: 0 12px 28px rgba(63,39,20,.12) !important;
}

@media (max-width: 820px){
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-window,
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .tavern-thread-column{
    min-height: 420px !important;
  }
}


/* v21 — targeted fix pass after visual review.
   Use framed parchment only on the actual blocks, not as an oversized sheet texture,
   and keep the character studio on one shared backdrop. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]){
  --v21-panel-sheet: url('/assets/art/sheet-panel-v3.webp');
  --v21-panel-shadow: 0 10px 24px rgba(63,39,20,.14);
  --v21-soft-paper: rgba(248, 241, 227, .92);
}

/* CHAT — the parchment belongs to the two main blocks only. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .tavern-ledger-column,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .tavern-thread-column{
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-ledger,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-window,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .archive-chest{
  background-color: var(--v21-soft-paper) !important;
  background-image: var(--v21-panel-sheet) !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  box-shadow: var(--v21-panel-shadow) !important;
  border: 0 !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-window,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .archive-chest{
  overflow: hidden !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .messenger-column-title,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-window-head,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-compose,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .archive-chest>summary{
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-ledger{
  padding: 8px 10px 12px !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .chat-window{
  padding: 6px 10px 10px !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .messages{
  padding: 8px 6px 10px !important;
}

/* GAMES — decorate the larger planning blocks as parchment and keep rows calmer. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .games-screen :is(.signed-contracts,.campaign-board,.schedule-week-group,.schedule-player-group){
  background-color: var(--v21-soft-paper) !important;
  background-image: var(--v21-panel-sheet) !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  border: 0 !important;
  box-shadow: var(--v21-panel-shadow) !important;
  overflow: hidden !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .games-screen :is(.campaign-board-head,.schedule-week-group>summary,.schedule-player-group>summary){
  background: transparent !important;
  border: 0 !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .games-screen .game-row{
  background: rgba(244, 231, 206, .78) !important;
  background-image: none !important;
  border: 1px solid rgba(133,95,55,.22) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

/* QUESTS — only the needed content blocks become parchment panels. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) :is(.quest-board-goals,.quest-board-filters,.quest-archive-vault,.archive-vault-body){
  background-color: var(--v21-soft-paper) !important;
  background-image: var(--v21-panel-sheet) !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  border: 0 !important;
  box-shadow: var(--v21-panel-shadow) !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) :is(.goal-card,.archive-contract){
  background: rgba(248, 241, 227, .78) !important;
  border: 1px solid rgba(133,95,55,.18) !important;
  box-shadow: none !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .archive-vault-toggle,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .archive-filter-bar{
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* CHARACTERS — remove the extra top controls/plaque and keep one backdrop only. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .character-chat-toggle{
  display: none !important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .character-studio-workspace,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .character-studio-frame,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .character-case-chat{
  border: 0 !important;
  box-shadow: none !important;
}



/* assets/ui/chat-v33.css */
/* v33 — targeted chat cleanup.
   Uses only existing/cropped project artwork. No new generated art.
   Main goals: one parchment image per structural block, transparent message field,
   correct left/right message alignment, and text kept inside safe image areas. */
:root{
  --chat33-header:url('/assets/ui/optimized/header-strip-589f224b.webp');
  --chat33-compose:url('/assets/ui/optimized/compose-strip-1857036c.webp');
  --chat33-ledger:url('/assets/ui/optimized/ledger-frame-021d0a63.webp');
  --chat33-bubble-in:url('/assets/ui/optimized/bubble-incoming-4acbc0f7.webp');
  --chat33-bubble-out:url('/assets/ui/optimized/bubble-outgoing-3872da69.webp');
  --chat33-ink:#4b321f;
  --chat33-muted:#72563d;
  --chat33-line:rgba(105,72,39,.14);
  --chat33-shadow:0 6px 14px rgba(45,27,12,.14);
}

/* remove the redundant top chat hero */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .location-plaque,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .scene-hero{
  display:none!important;
}

html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .stage-content{
  width:100%!important;
  max-width:none!important;
  height:calc(100dvh - var(--v4-hud,72px))!important;
  min-height:0!important;
  margin:0!important;
  padding:8px 12px 12px!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .tavern-screen{
  height:100%!important;
  min-height:0!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  gap:10px!important;
  background:transparent!important;
  background-image:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .tavern-chat-desk{
  display:grid!important;
  grid-template-columns:minmax(350px,400px) minmax(0,1fr)!important;
  gap:14px!important;
  height:100%!important;
  min-height:0!important;
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] :is(.tavern-ledger-column,.tavern-thread-column,.chat-window){
  min-width:0!important;
  min-height:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}

/* LEFT — title + one single parchment picture for the whole list */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .tavern-ledger-column{
  display:grid!important;
  grid-template-rows:54px minmax(0,1fr)!important;
  gap:10px!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .messenger-column-title{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  min-height:54px!important;
  margin:0!important;
  padding:0 26px!important;
  border:0!important;
  border-radius:0!important;
  background:var(--chat33-header) center/100% 100% no-repeat!important;
  box-shadow:var(--chat33-shadow)!important;
  color:var(--chat33-ink)!important;
  overflow:hidden!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .messenger-column-title span{
  min-width:0!important;
  color:var(--chat33-ink)!important;
  font-size:1.02rem!important;
  line-height:1!important;
  font-weight:900!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  transform:translateY(-2px)!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .messenger-column-title b{
  display:grid!important;
  place-items:center!important;
  min-width:30px!important;
  height:30px!important;
  padding:0 8px!important;
  border:0!important;
  border-radius:999px!important;
  background:rgba(255,248,233,.56)!important;
  box-shadow:none!important;
  color:#6b4d33!important;
  font-size:.90rem!important;
  line-height:1!important;
  font-weight:900!important;
  transform:translateY(-2px)!important;
}

/* Only the existing ledger image is used here; no gray/paper CSS layers underneath. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-ledger{
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  padding:30px 30px 32px!important;
  border:0!important;
  border-radius:0!important;
  background:var(--chat33-ledger) center/100% 100% no-repeat!important;
  box-shadow:var(--chat33-shadow)!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-group{
  margin:0!important;
  border:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-group + .chat-group{
  margin-top:12px!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-group-title{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  min-height:42px!important;
  margin:0!important;
  padding:7px 6px 8px 14px!important;
  border:0!important;
  border-bottom:1px solid var(--chat33-line)!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  color:var(--chat33-ink)!important;
  text-align:left!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-group-title:hover{
  background:transparent!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-group-title>span:first-child{
  min-width:0!important;
  color:var(--chat33-ink)!important;
  font-size:.98rem!important;
  line-height:1.1!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:.01em!important;
  white-space:normal!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-group-summary,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-group-summary :is(b,small){
  color:#6c5037!important;
  font-size:.82rem!important;
  line-height:1!important;
  font-weight:850!important;
  white-space:nowrap!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-group-summary i{display:none!important}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-group.collapsed .chat-group-list{display:none!important}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-group-list{
  display:flex!important;
  flex-direction:column!important;
  gap:2px!important;
  padding-top:6px!important;
  background:transparent!important;
  background-image:none!important;
}

/* Rows are text on the one parchment picture; no nested gray cards. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-list-item,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-history-button{
  display:grid!important;
  grid-template-columns:28px minmax(0,1fr) auto!important;
  gap:10px!important;
  align-items:start!important;
  width:100%!important;
  min-height:60px!important;
  margin:0!important;
  padding:9px 8px 9px 14px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  color:var(--chat33-ink)!important;
  text-align:left!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-list-item:hover,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-history-button:hover,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-list-item.active{
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-list-item.active .chat-main strong{
  color:#392414!important;
  font-weight:950!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-icon{
  width:27px!important;
  height:27px!important;
  border-radius:50%!important;
  background-position:center!important;
  background-size:cover!important;
  background-color:rgba(248,238,213,.70)!important;
  border:1px solid rgba(110,77,43,.13)!important;
  box-shadow:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-main{
  min-width:0!important;
  padding-right:5px!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-main strong{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  white-space:normal!important;
  color:var(--chat33-ink)!important;
  font-size:.86rem!important;
  line-height:1.18!important;
  font-weight:850!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-main span{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  margin-top:4px!important;
  white-space:normal!important;
  color:var(--chat33-muted)!important;
  font-size:.72rem!important;
  line-height:1.28!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-side{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  gap:4px!important;
  min-width:38px!important;
  padding-top:1px!important;
  color:var(--chat33-muted)!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-time{
  color:#785b40!important;
  font-size:.68rem!important;
  white-space:nowrap!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .unread-dot{
  display:grid!important;
  place-items:center!important;
  min-width:18px!important;
  height:18px!important;
  padding:0 5px!important;
  border-radius:999px!important;
  background:#8d5264!important;
  color:white!important;
  font-size:.62rem!important;
  font-weight:900!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-list-item-archived{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
  align-items:center!important;
}

/* RIGHT — one image for the title, transparent common scene behind messages. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-window{
  height:100%!important;
  display:grid!important;
  grid-template-rows:64px minmax(0,1fr) 64px!important;
  gap:10px!important;
  overflow:visible!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-window-head{
  display:grid!important;
  grid-template-columns:32px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:11px!important;
  min-height:64px!important;
  margin:0!important;
  padding:0 24px!important;
  border:0!important;
  border-radius:0!important;
  background:var(--chat33-header) center/100% 100% no-repeat!important;
  box-shadow:var(--chat33-shadow)!important;
  overflow:hidden!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-window-icon{
  width:30px!important;
  height:30px!important;
  flex:0 0 30px!important;
  border-radius:50%!important;
  background-position:center!important;
  background-size:cover!important;
  background-color:rgba(250,240,216,.72)!important;
  border:1px solid rgba(110,77,43,.13)!important;
  box-shadow:none!important;
  transform:translateY(-1px)!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-window-head>div:not(.chat-head-actions){
  min-width:0!important;
  transform:translateY(-2px)!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-window-head strong{
  display:block!important;
  color:var(--chat33-ink)!important;
  font-size:.96rem!important;
  line-height:1.06!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-context{
  margin-top:3px!important;
  color:var(--chat33-muted)!important;
  font-size:.73rem!important;
  line-height:1.12!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-head-actions{
  display:flex!important;
  align-items:center!important;
  transform:translateY(-2px)!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-head-actions :is(.ghost-button,.soft-button){
  min-height:36px!important;
  padding:6px 10px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#5b4029!important;
  font-weight:850!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-head-actions :is(.ghost-button,.soft-button):hover{
  text-decoration:underline!important;
  background:transparent!important;
}

/* No panel/background at all behind message plaques — the common room scene is visible. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .messages{
  position:relative!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  padding:14px 16px 12px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .messages::before,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .messages::after{
  content:none!important;
  display:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message-day{
  display:flex!important;
  justify-content:center!important;
  margin:8px 0 14px!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message-day span{
  padding:5px 13px!important;
  border-radius:999px!important;
  background:rgba(255,248,233,.82)!important;
  border:1px solid rgba(109,75,40,.12)!important;
  color:#74583f!important;
  font-size:.72rem!important;
  box-shadow:0 2px 6px rgba(50,30,13,.07)!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message{
  display:flex!important;
  align-items:flex-end!important;
  gap:8px!important;
  width:100%!important;
  max-width:100%!important;
  margin:9px 0!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message:not(.me){
  justify-content:flex-start!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message.me{
  justify-content:flex-end!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message-avatar,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message-avatar-spacer{
  width:28px!important;
  height:28px!important;
  flex:0 0 28px!important;
  border-radius:50%!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message-avatar{
  background-position:center!important;
  background-size:cover!important;
  background-color:rgba(250,240,216,.72)!important;
  border:1px solid rgba(110,77,43,.13)!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message-avatar-spacer{
  display:none!important;
}

/* Only the existing message PNG is visible. 9-slice fill lets it grow without adding a CSS card. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message-bubble{
  position:relative!important;
  width:fit-content!important;
  min-width:116px!important;
  max-width:min(66%,650px)!important;
  padding:10px 14px 23px!important;
  border:14px solid transparent!important;
  border-image-source:var(--chat33-bubble-in)!important;
  border-image-slice:100 170 105 170 fill!important;
  border-image-width:14px!important;
  border-image-repeat:stretch!important;
  border-radius:0!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  color:var(--chat33-ink)!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message.me .message-bubble{
  margin-left:auto!important;
  border-image-source:var(--chat33-bubble-out)!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message-bubble::before{
  content:none!important;
  display:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message-bubble strong{
  display:block!important;
  margin:0 0 4px!important;
  color:#4a321e!important;
  font-size:.77rem!important;
  line-height:1.1!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message-bubble p{
  margin:0!important;
  color:#46301f!important;
  font-size:.84rem!important;
  line-height:1.35!important;
  white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message-bubble .message-meta{
  position:absolute!important;
  right:14px!important;
  bottom:8px!important;
  margin:0!important;
  color:#72543a!important;
  background:transparent!important;
  font-size:.66rem!important;
  line-height:1!important;
  white-space:nowrap!important;
  text-align:right!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message-image{
  display:block!important;
  max-width:min(100%,320px)!important;
  margin-top:8px!important;
  border-radius:8px!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-empty-thread{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:180px!important;
  color:#6c5037!important;
  text-align:center!important;
}

/* Input: only the existing parchment strip; controls are centered a little lower in it. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-compose{
  display:grid!important;
  grid-template-columns:38px 38px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
  min-height:64px!important;
  margin:0!important;
  padding:6px 16px 4px!important;
  border:0!important;
  border-radius:0!important;
  background:var(--chat33-compose) center/100% 100% no-repeat!important;
  box-shadow:var(--chat33-shadow)!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-compose>*{
  transform:translateY(2px)!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-compose textarea{
  min-width:0!important;
  min-height:40px!important;
  max-height:110px!important;
  padding:9px 10px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  color:var(--chat33-ink)!important;
  box-shadow:none!important;
  resize:none!important;
  font-size:.78rem!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-compose textarea::placeholder{
  color:#84694e!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-compose .icon-button{
  width:36px!important;
  min-width:36px!important;
  height:36px!important;
  min-height:36px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border:0!important;
  border-radius:8px!important;
  background:rgba(249,235,205,.48)!important;
  color:#4f3722!important;
  box-shadow:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-send-button{
  min-height:38px!important;
  padding:0 15px!important;
  border:1px solid rgba(90,111,82,.25)!important;
  border-radius:10px!important;
  background:#dce7d4!important;
  color:#3e543d!important;
  box-shadow:none!important;
  font-size:.78rem!important;
  font-weight:800!important;
  white-space:nowrap!important;
}

/* Notifications / feedback remain functional and visually compatible. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] :is(.tavern-notice-zone,.archive-chest){
  margin:0!important;
  border:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] :is(.tavern-notice-zone>summary,.archive-chest>summary){
  min-height:48px!important;
  padding:0 24px!important;
  border:0!important;
  background:var(--chat33-header) center/100% 100% no-repeat!important;
  color:var(--chat33-ink)!important;
  box-shadow:var(--chat33-shadow)!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] :is(.tavern-notice-content,.archive-chest>.chat-ledger){
  margin-top:8px!important;
}

/* Keep the same corrected left/right message behavior in overlay/approval/character chats. */
html[data-build="5"] body :is(.context-chat-dialog,.approval-chat-pane,.character-case-chat) .message{
  display:flex!important;
  align-items:flex-end!important;
  width:100%!important;
}
html[data-build="5"] body :is(.context-chat-dialog,.approval-chat-pane,.character-case-chat) .message:not(.me){justify-content:flex-start!important}
html[data-build="5"] body :is(.context-chat-dialog,.approval-chat-pane,.character-case-chat) .message.me{justify-content:flex-end!important}
html[data-build="5"] body :is(.context-chat-dialog,.approval-chat-pane,.character-case-chat) .message-avatar-spacer{display:none!important}
html[data-build="5"] body :is(.context-chat-dialog,.approval-chat-pane,.character-case-chat) .message-bubble{
  background:transparent!important;
  background-image:none!important;
  border-image-source:var(--chat33-bubble-in)!important;
  border-image-slice:100 170 105 170 fill!important;
}
html[data-build="5"] body :is(.context-chat-dialog,.approval-chat-pane,.character-case-chat) .message.me .message-bubble{
  margin-left:auto!important;
  border-image-source:var(--chat33-bubble-out)!important;
}

@media (max-width:1100px){
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .tavern-chat-desk{
    grid-template-columns:320px minmax(0,1fr)!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message-bubble{max-width:76%!important}
}
@media (max-width:760px){
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .stage-content{
    height:auto!important;
    min-height:calc(100dvh - var(--v4-hud,72px))!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .tavern-chat-desk{
    grid-template-columns:1fr!important;
    height:auto!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .tavern-ledger-column{
    grid-template-rows:54px minmax(320px,42dvh)!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-window{
    grid-template-rows:64px minmax(420px,60dvh) 64px!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message-bubble{max-width:84%!important}
}


/* assets/ui/chat-v34.css */
/* v34 — targeted polish on top of v33.
   Existing project art only: cleaned/cropped derivatives live in chat-v34/. */
:root{
  --chat34-header:url('/assets/ui/optimized/header-strip-64dcbf04.webp');
  --chat34-compose:url('/assets/ui/optimized/compose-strip-b2d04c91.webp');
  --chat34-bubble-in:url('/assets/ui/optimized/bubble-incoming-4d873b7f.webp');
  --chat34-bubble-out:url('/assets/ui/optimized/bubble-outgoing-8aeabf47.webp');
}

/* Shift all conversation headings/content farther into the safe parchment area. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-ledger{
  padding-left:42px!important;
  padding-right:24px!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-group-title{
  padding-left:18px!important;
  padding-right:8px!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-list-item,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-history-button{
  padding-left:18px!important;
  padding-right:8px!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .tavern-chat-desk{
  grid-template-columns:minmax(370px,420px) minmax(0,1fr)!important;
}

/* Header: move the title copy a little to the right and render only the parchment art. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-window-head{
  grid-template-columns:32px minmax(0,1fr) auto!important;
  padding:0 26px 0 34px!important;
  background:none!important;
  border:11px solid transparent!important;
  border-image-source:var(--chat34-header)!important;
  border-image-slice:66 125 66 125 fill!important;
  border-image-width:11px!important;
  border-image-repeat:stretch!important;
  box-shadow:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-window-head>div:not(.chat-head-actions){
  transform:translate(4px,-2px)!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-head-actions{
  transform:translateY(-2px)!important;
}

/* Message rows have no CSS surface at all — only the existing parchment plaque. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message.me,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message:not(.me){
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
  filter:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message:not(.me){
  justify-content:flex-start!important;
  flex-direction:row!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message.me{
  justify-content:flex-end!important;
  flex-direction:row-reverse!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message-bubble{
  margin-right:auto!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:11px solid transparent!important;
  border-image-source:var(--chat34-bubble-in)!important;
  border-image-slice:24% 8% 27% 8% fill!important;
  border-image-width:11px!important;
  border-image-repeat:stretch!important;
  box-shadow:none!important;
  filter:none!important;
  min-width:108px!important;
  max-width:min(64%,650px)!important;
  padding:10px 14px 23px!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message.me .message-bubble{
  margin-left:auto!important;
  margin-right:0!important;
  border-image-source:var(--chat34-bubble-out)!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message-bubble::before,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message-bubble::after{
  content:none!important;
  display:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message-bubble .message-meta{
  right:13px!important;
  bottom:7px!important;
}

/* Dynamic composer. Its parchment is 9-sliced so taller input does not stretch the corners. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-window{
  grid-template-rows:64px minmax(0,1fr) auto!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-compose{
  min-height:64px!important;
  height:auto!important;
  align-items:center!important;
  padding:8px 16px 10px!important;
  background:none!important;
  background-image:none!important;
  border:11px solid transparent!important;
  border-image-source:var(--chat34-compose)!important;
  border-image-slice:62 118 62 118 fill!important;
  border-image-width:11px!important;
  border-image-repeat:stretch!important;
  box-shadow:none!important;
  overflow:visible!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-compose>*{
  transform:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-compose textarea{
  min-height:40px!important;
  max-height:160px!important;
  height:auto;
  align-self:center!important;
  overflow-y:hidden;
  padding:8px 10px!important;
}
/* Only the buttons are raised slightly inside the parchment. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-compose .icon-button,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-compose .chat-send-button{
  transform:translateY(-3px)!important;
}

/* The same cleaned outgoing/incoming plaque treatment in the other chat surfaces. */
html[data-build="5"] body :is(.context-chat-dialog,.approval-chat-pane,.character-case-chat) .message:not(.me){
  justify-content:flex-start!important;
  flex-direction:row!important;
}
html[data-build="5"] body :is(.context-chat-dialog,.approval-chat-pane,.character-case-chat) .message.me{
  justify-content:flex-end!important;
  flex-direction:row-reverse!important;
}
html[data-build="5"] body :is(.context-chat-dialog,.approval-chat-pane,.character-case-chat) .message-bubble{
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  border-image-source:var(--chat34-bubble-in)!important;
}
html[data-build="5"] body :is(.context-chat-dialog,.approval-chat-pane,.character-case-chat) .message.me .message-bubble{
  border-image-source:var(--chat34-bubble-out)!important;
}

@media (max-width:1100px){
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .tavern-chat-desk{
    grid-template-columns:340px minmax(0,1fr)!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-ledger{
    padding-left:34px!important;
  }
}


/* assets/ui/chat-v35.css */
/* v35 — small targeted chat-layout corrections requested on 2026-09-27. */

/* Move group headings deeper into the parchment safe area. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-group-title{
  padding-left:34px!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-group-title>span:first-child{
  transform:translateX(4px)!important;
}

/* Dates/unread metadata inside conversation rows should sit a little farther from the right edge. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-side{
  transform:translateX(-12px)!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-time{
  text-align:right!important;
}

/* The input itself should not have a second outlined box inside the parchment composer. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-compose textarea{
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-compose textarea:focus{
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}

/* Own messages begin near the center line: left edge of the right half, not at the far screen edge. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message.me{
  justify-content:flex-start!important;
  flex-direction:row!important;
  padding-left:50%!important;
  box-sizing:border-box!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message.me .message-avatar,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message.me .message-avatar-spacer{
  display:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message.me .message-bubble{
  margin-left:0!important;
  margin-right:auto!important;
  max-width:min(94%,650px)!important;
}

/* On narrower layouts keep a normal chat rhythm. */
@media (max-width:900px){
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-group-title{
    padding-left:24px!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-side{
    transform:translateX(-6px)!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message.me{
    padding-left:38%!important;
  }
}
@media (max-width:620px){
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message.me{
    padding-left:18%!important;
  }
}


/* assets/ui/chat-v36.css */
/* v36 — targeted metadata alignment and unread group counters. */

/* Dates / unread markers inside chat rows sit noticeably farther left. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-side{
  transform:translateX(-28px)!important;
  min-width:46px!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-time{
  text-align:right!important;
}

/* Group counter is unread chats only and is pulled well away from the parchment's right edge. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-group-summary{
  transform:translateX(-34px)!important;
  min-width:30px!important;
  justify-content:center!important;
  text-align:center!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-group-summary :is(b,small){
  min-width:22px!important;
  text-align:center!important;
}

@media (max-width:900px){
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-side{
    transform:translateX(-18px)!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-group-summary{
    transform:translateX(-24px)!important;
  }
}
@media (max-width:620px){
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-side{
    transform:translateX(-8px)!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .chat-group-summary{
    transform:translateX(-10px)!important;
  }
}

/* Own letters sit just to the right of the incoming column. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message.me{
  padding-left:clamp(34px,12%,112px)!important;
  padding-right:0!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message.me .message-bubble{
  max-width:min(72%,650px)!important;
}
@media(max-width:620px){
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message.me{
    padding-left:70px!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .message.me .message-bubble{
    max-width:calc(100% - 8px)!important;
  }
}

/* Keep the title and both staff actions readable on the narrow paper header. */
@media(max-width:400px){
  html[data-build="5"] body[data-screen="chats"] #app .chat-window-head{
    grid-template-columns:28px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:6px!important;
    min-height:92px!important;height:auto!important;flex:none!important;padding:6px 10px!important;
    border-width:8px!important;border-image-width:8px!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .chat-window-icon{grid-column:1;grid-row:1;width:28px!important;height:28px!important;}
  html[data-build="5"] body[data-screen="chats"] #app .chat-window-head>div:not(.chat-head-actions){grid-column:2;grid-row:1;transform:none!important;}
  html[data-build="5"] body[data-screen="chats"] #app .chat-window-head strong{font-size:17px!important;line-height:1.15!important;}
  html[data-build="5"] body[data-screen="chats"] #app .chat-context{font-size:13px!important;}
  html[data-build="5"] body[data-screen="chats"] #app .chat-head-actions{
    grid-column:1/-1;grid-row:2;display:flex!important;justify-content:flex-end!important;
    gap:8px!important;min-width:0!important;width:100%;transform:none!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .chat-head-actions :is(.ghost-button,.soft-button){
    flex:0 0 auto!important;min-height:32px!important;height:32px!important;padding:4px 8px!important;
    white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;
    font-size:14px!important;line-height:1.2!important;color:#4b321f!important;
    background:#fff3d8e8!important;border:1px solid #a28154!important;border-radius:5px!important;
  }
}


/* assets/ui/characters-v38.css */
/* v42 — Characters tab: host scene remains completely transparent.
   The shared player-scene-background is the only backdrop behind the embedded canvas. */

body[data-role="player"][data-screen="characters"],
body[data-role="player"][data-screen="characters"] .game-shell,
body[data-role="player"][data-screen="characters"] .game-stage,
body[data-role="player"][data-screen="characters"] .stage-content,
body[data-role="player"][data-screen="characters"] #app,
body[data-role="player"][data-screen="characters"] .characters-screen,
body[data-role="player"][data-screen="characters"] .character-studio-screen,
body[data-role="player"][data-screen="characters"] .character-studio-workspace,
body[data-role="player"][data-screen="characters"] .character-studio-frame{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
body[data-role="player"] :is(#app,#characterSceneLayer)[hidden]{display:none!important}
body[data-role="player"][data-screen="characters"] #characterSceneLayer{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:0!important;
  background:transparent!important;
}

body[data-role="player"][data-screen="characters"] .stage-content,
body[data-role="player"][data-screen="characters"] .characters-screen,
body[data-role="player"][data-screen="characters"] .character-studio-screen,
body[data-role="player"][data-screen="characters"] .character-studio-workspace{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:0!important;
}

body[data-role="player"][data-screen="characters"] .character-studio-workspace,
body[data-role="player"][data-screen="characters"] .character-studio-workspace.chat-collapsed{
  display:block!important;
  grid-template-columns:none!important;
}

body[data-role="player"][data-screen="characters"] .character-studio-frame{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  border:0!important;
  color-scheme:normal!important;
}

/* Wait until the embedded library has rendered before exposing its frame. */
body[data-role="player"][data-screen="characters"] .character-studio-workspace:not(.studio-ready) .character-studio-frame{
  visibility:hidden!important;
}

body[data-role="player"][data-screen="characters"] :is(.character-chat-toggle,.character-case-chat){
  display:none!important;
}
body[data-role="player"][data-screen="characters"] .character-question-button{position:fixed;right:22px;bottom:24px;z-index:65;max-width:calc(100vw - 40px);box-shadow:0 3px 12px #24160866}
@media(max-width:900px){body[data-role="player"][data-screen="characters"] .character-question-button{right:14px;bottom:92px;font-size:16px!important}}


/* assets/ui/games-council.css */
/* Player games are written on the illustrated planning board itself. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .player-scene-background,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"]::before{
  background-image:url('/assets/ui/optimized/council-cartoon-38af371f.webp?v=2')!important;
  background-position:center center!important;
  background-size:cover!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .player-scene-background::after{
  background:linear-gradient(90deg,rgba(36,16,42,.08),transparent 27%,transparent 73%,rgba(36,16,42,.08))!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .stage-content{
  width:100%!important;
  max-width:none!important;
  padding:0!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-screen{
  display:block!important;
  min-height:calc(100dvh - var(--v4-hud,72px));
  margin:0!important;
  padding:0!important;
  background:none!important;
  background-image:none!important;
  overflow:visible;
}
/* These bounds sit inside the pale field, clear of all four illustrated frame edges. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-board{
  position:fixed;
  z-index:3;
  top:19.5vh;
  bottom:24.5vh;
  left:29vw;
  width:42vw;
  min-height:0;
  box-sizing:border-box;
  padding:2px 7px 3px;
  color:#4c3021;
  background:none!important;
  overflow:hidden;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll{
  width:100%;
  height:100%;
  box-sizing:border-box;
  padding:2px 12px 10px;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#b88b51 transparent;
  outline-offset:-3px;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll:focus-visible{
  outline:2px dashed #694c88;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll :is(.signed-contracts,.campaign-board,.schedule-week-group,.schedule-player-group){
  display:block!important;
  width:100%!important;
  min-width:0!important;
  margin:0 0 12px!important;
  padding:0!important;
  border:0!important;
  border-image:none!important;
  border-radius:0!important;
  background:none!important;
  background-image:none!important;
  box-shadow:none!important;
  overflow:visible!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll :is(.contract-stack,.schedule-week-group>div,.schedule-player-group>div){
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:0!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  background:none!important;
  background-image:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .campaign-board-head{
  display:block!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:none!important;
  box-shadow:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .council-section-title{
  display:block!important;
  min-height:0!important;
  margin:4px 0 8px!important;
  padding:0 2px 5px!important;
  border:0!important;
  border-bottom:2px solid #bd8550!important;
  border-image:none!important;
  border-radius:0!important;
  color:#563326!important;
  background:none!important;
  background-image:none!important;
  box-shadow:none!important;
  font-size:27px!important;
  line-height:1.12!important;
  text-align:left!important;
  text-shadow:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll :is(.schedule-week-group>summary,.schedule-player-group>summary,.billing-player-panel>summary){
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  min-height:0!important;
  margin:0!important;
  padding:7px 2px!important;
  border:0!important;
  border-bottom:1px dashed #b99868!important;
  border-image:none!important;
  border-radius:0!important;
  color:#563927!important;
  background:none!important;
  background-image:none!important;
  box-shadow:none!important;
  list-style:none;
  box-sizing:border-box;
  cursor:pointer;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll :is(.schedule-week-group>summary,.schedule-player-group>summary,.billing-player-panel>summary)::after{
  content:''!important;
  display:block!important;
  flex:none;
  width:7px;
  height:7px;
  margin:0 4px 0 11px;
  border-right:2px solid #795231!important;
  border-bottom:2px solid #795231!important;
  transform:rotate(-45deg);
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll :is(.schedule-week-group,.schedule-player-group,.billing-player-panel)[open]>summary::after{transform:rotate(45deg)}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .schedule-week-group>summary b{font-size:22px!important;line-height:1.2}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .schedule-week-group>summary small{margin-left:8px;color:#76583c!important;font-size:17px!important}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .schedule-player-group>summary{font-size:21px!important}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .schedule-player-group>summary b{
  display:inline!important;
  width:auto!important;
  height:auto!important;
  padding:0!important;
  border:0!important;
  color:#397263!important;
  background:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll :is(.game-row,.empty-state){
  display:grid!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:10px 3px 12px!important;
  border:0!important;
  border-bottom:1px dashed #ba9b70!important;
  border-image:none!important;
  border-radius:0!important;
  color:#4d3425!important;
  background:none!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  filter:none!important;
  box-sizing:border-box;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .game-row{
  grid-template-columns:minmax(0,1fr)!important;
  gap:6px!important;
  transition:background-color .16s ease;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .game-row:hover{background-color:rgba(244,200,125,.18)!important}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .game-date-line{flex-wrap:wrap!important;gap:2px 9px!important;padding:0!important}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .game-date-line time{color:#492b22!important;font-size:22px!important}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .game-availability{font-size:18px!important}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .game-compact-line{flex-wrap:wrap!important;gap:5px 9px!important}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .game-compact-line>:is(.levels,.seat-count,.queue-count){
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  color:#795533!important;
  background:none!important;
  font-size:18px!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .game-compact-detail{
  gap:4px!important;
  padding-left:0!important;
  border-left:0!important;
  white-space:normal!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .game-compact-detail>b{color:#876748!important;font-size:15px!important}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .game-compact-detail>span{color:#473127!important;font-size:18px!important;white-space:normal!important}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .game-compact-detail .link-button{color:#386e6c!important;text-decoration:underline;text-underline-offset:3px}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .game-registration-state{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  color:#327465!important;
  background:none!important;
  font-size:17px!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .game-row-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
  width:100%!important;
  margin:3px 0 0!important;
  padding:6px 0 0!important;
  border:0!important;
  border-top:1px solid rgba(164,122,79,.42)!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .game-row-actions button{
  width:100%!important;
  min-height:34px!important;
  padding:4px 7px!important;
  border:2px solid #875d40!important;
  border-radius:10px 7px 11px 6px!important;
  color:#68422e!important;
  background:rgba(255,245,214,.18)!important;
  box-shadow:none!important;
  font-size:19px!important;
  cursor:pointer;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .game-row-actions .primary-button{border-color:#3b877b!important;color:#286b65!important}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .game-row-actions .danger-button{border-color:#ac6b59!important;color:#8b493a!important}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .game-row-actions button:hover{background:rgba(255,235,176,.55)!important;transform:translateY(-1px)}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll :is(button,summary):focus-visible{outline:3px dashed #8450a4!important;outline-offset:2px}
/* Billing continues on the same surface instead of opening another paper panel. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .billing-player-panel{
  display:block!important;
  width:100%!important;
  margin:11px 0 0!important;
  padding:0!important;
  border:0!important;
  border-top:2px solid #bd8550!important;
  border-image:none!important;
  border-radius:0!important;
  color:#4d3425!important;
  background:none!important;
  background-image:none!important;
  box-shadow:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .billing-player-panel>summary{margin:0!important}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .billing-summary-copy{display:flex!important;align-items:baseline!important;flex-wrap:wrap!important;gap:2px 9px!important;min-width:0}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .billing-summary-copy small,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .billing-summary-copy em{font-size:17px!important}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .billing-summary-copy strong{font-size:22px!important}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .billing-summary-copy small,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .billing-panel-body>header>div>span{display:none!important}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .billing-player-panel[open] .billing-summary-copy em{display:none!important}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .billing-panel-body{
  max-height:40vh;
  overflow:auto;
  padding:8px 2px 4px!important;
  gap:8px!important;
  background:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .billing-panel-body :is(.billing-balance,.billing-plan-grid>article,.billing-unpaid-list>article){
  border:0!important;
  border-bottom:1px dashed #ba9b70!important;
  border-image:none!important;
  border-radius:0!important;
  background:none!important;
  background-image:none!important;
  box-shadow:none!important;
}
@media(max-aspect-ratio:1.55){
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-board{left:21vw;width:58vw}
}
@media(min-width:701px) and (max-width:800px){
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-board{left:14vw;width:72vw}
}
@media(max-width:700px){
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .player-scene-background,
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"]::before{
    background-image:url('/assets/ui/optimized/quests-3611c3d9.webp')!important;
    background-position:center center!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-board{
    top:13vh;
    bottom:11vh;
    left:2vw;
    width:96vw;
    padding:14vh 12vw 15vh;
    background:url('/assets/ui/optimized/board-cartoon-mobile-3a08eb8a.webp?v=2') center/100% 100% no-repeat!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll{padding:0 2px 9px}
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .game-compact-detail{white-space:normal!important}
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="games"] .games-council-scroll .game-compact-detail>span{white-space:normal!important}
}

/* A separate wide frame makes the full available stage a writing surface. */
html[data-build="5"] body[data-screen="games"] #app .games-council-screen{
  min-height:0!important;padding:12px 14px 16px!important;box-sizing:border-box;
}
html[data-build="5"] body[data-screen="games"] #app .games-council-board{
  position:relative!important;inset:auto!important;display:block!important;
  width:100%!important;max-width:1800px!important;height:calc(100dvh - var(--v4-hud,90px) - 28px)!important;
  min-height:410px!important;margin:0 auto!important;padding:0!important;box-sizing:border-box;
  background:url('/assets/ui/optimized/board-wide-20261106-ae6fd649.webp') center/100% 100% no-repeat!important;
  overflow:hidden!important;box-shadow:0 6px 24px #2c190d40;
}
html[data-build="5"] body[data-screen="games"] #app .games-council-scroll{
  position:absolute!important;inset:10.5% 4.6% 8%!important;
  width:auto!important;height:auto!important;min-width:0;min-height:0;
  padding:5px 8px 12px!important;scroll-padding-top:12px;box-sizing:border-box;
}
html[data-build="5"] body[data-screen="games"] #app .games-council-scroll .game-row-actions{
  display:flex!important;flex-wrap:wrap!important;gap:7px!important;
}
html[data-build="5"] body[data-screen="games"] #app .games-council-scroll .game-row-actions button{
  width:auto!important;min-height:34px!important;font-size:16px!important;padding:5px 12px!important;
}
html[data-build="5"] body[data-screen="games"] #app .games-council-scroll .council-section-title{font-size:24px!important;}
@media(max-width:820px){
  html[data-build="5"] body[data-screen="games"] #app .games-council-screen{height:auto!important;padding:8px 5px 12px!important;overflow:visible!important;}
  html[data-build="5"] body[data-screen="games"] #app .games-council-board{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;}
  html[data-build="5"] body[data-screen="games"] #app .games-council-board{
    border:solid transparent!important;border-width:clamp(34px,5vw,44px) clamp(14px,4.6vw,35px) clamp(25px,4vw,32px)!important;
    border-image:url('/assets/ui/optimized/board-wide-20261106-ae6fd649.webp') 14% 5% 8% 5% fill / 1 / 0 stretch!important;
    background:none!important;
  }
  /* Filters and game rows share the stage scroll instead of a short nested pane. */
  html[data-build="5"] body[data-screen="games"] #app .games-council-scroll{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;max-height:none!important;padding:3px 3px 10px!important;overflow:visible!important;overscroll-behavior:auto!important;}
  html[data-build="5"] body[data-screen="games"] #app .games-council-scroll .council-section-title{font-size:21px!important;line-height:1.15!important;margin:2px 0 4px!important;padding:0 1px 4px!important;}
  html[data-build="5"] body[data-screen="games"] #app .games-council-scroll .game-date-line time{font-size:18px!important;}
  html[data-build="5"] body[data-screen="games"] #app .games-council-scroll .game-availability{font-size:15px!important;}
  html[data-build="5"] body[data-screen="games"] #app .games-council-scroll .game-compact-detail>span{font-size:16px!important;}
  html[data-build="5"] body[data-screen="games"] #app .games-council-scroll .game-row-actions button{font-size:14px!important;padding:5px 8px!important;}
}


/* assets/ui/shop-v8.css */
/* One illustrated room, with the dwarf, dialogue and catalogue sharing its counter. */
html[data-build="5"] body[data-role="player"][data-screen="shop"] .player-scene-background{
 background-image:url('/assets/shop/v9/interior.png')!important;
 background-position:center center!important;
 background-size:cover!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .player-scene-background::after{
 background:linear-gradient(90deg,rgba(34,16,13,.17),transparent 26%,transparent 75%,rgba(34,16,13,.16))!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shop-scene{
 --shop-parchment-in:url('/assets/ui/optimized/bubble-incoming-4d873b7f.webp');
 --shop-parchment-out:url('/assets/ui/optimized/bubble-outgoing-8aeabf47.webp');
 width:100%;border:0!important;border-radius:0!important;
 background:transparent!important;background-image:none!important;
 box-shadow:none!important;overflow:visible!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shopkeeper-game-scene{
 max-width:none!important;background:transparent!important;background-image:none!important;box-shadow:none!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shop-sticky-wallet{
 min-height:60px!important;padding:7px clamp(15px,2vw,28px)!important;
 background:rgba(42,25,26,.85)!important;
 border:2px solid #b78a4a!important;border-inline:0!important;
 box-shadow:inset 0 2px #e7bb7166,0 5px 12px #21100b77!important;
 backdrop-filter:blur(5px);
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shopkeeper-stage{
 height:clamp(430px,39vw,530px)!important;
 background:transparent!important;background-image:none!important;
 border:0!important;box-shadow:none!important;overflow:visible!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shopkeeper-stage::after,
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shopkeeper-scene-art,
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shop-lantern-light,
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shop-dust{
 display:none!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-scene-canvas{
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
 overflow:visible!important;background:transparent!important;pointer-events:none!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-sprite{
 position:absolute!important;left:8%!important;top:0!important;
 width:min(39%,470px)!important;height:auto!important;aspect-ratio:1!important;
 z-index:3!important;display:block!important;
 filter:drop-shadow(2px 7px 5px rgba(35,17,10,.48))!important;
 transform:none!important;animation:none!important;image-rendering:auto!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-presence{
 left:11%!important;bottom:3px!important;top:auto!important;z-index:5!important;
 min-width:0!important;max-width:30%!important;padding:6px 13px!important;
 background:rgba(58,35,39,.93)!important;border:2px solid #d4a55c!important;
 border-radius:9px!important;box-shadow:inset 0 1px #f7d79277,0 4px 8px #24100999!important;
 transform:none!important;text-align:center!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-presence span{
 font:700 17px/1.15 Georgia,serif!important;color:#ffe7a9!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-presence small{
 color:#e8d0aa!important;font:11px/1.25 Georgia,serif!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shopkeeper-side-panel{
 left:52%!important;right:3%!important;top:4%!important;bottom:5%!important;
 z-index:5!important;border:0!important;min-width:0!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shopkeeper-dialogue.chat-window{
 position:relative!important;display:flex!important;flex-direction:column!important;
 height:100%!important;min-height:0!important;max-height:none!important;
 padding:0!important;margin:0!important;gap:2px!important;
 background:transparent!important;background-image:none!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;
 transform:none!important;overflow:visible!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shopkeeper-dialogue::before{display:none!important;}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-dialogue-heading.chat-window-head{
 position:relative!important;display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;
 align-items:center!important;gap:9px!important;flex:none!important;
 min-height:69px!important;height:69px!important;padding:5px 18px!important;
 background:none!important;background-image:none!important;
 border:11px solid transparent!important;
 border-image:url('/assets/ui/optimized/header-strip-64dcbf04.webp') 66 125 66 125 fill / 11px stretch!important;
 box-shadow:none!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-dialogue-heading::after{content:none!important;}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat-icon,
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-message-avatar{
 position:relative!important;display:block!important;flex:none!important;width:37px!important;height:37px!important;
 overflow:hidden!important;
 border-radius:50%!important;border:2px solid #a56f3d!important;
 box-shadow:0 2px 5px #63371c88!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat-icon img,
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-message-avatar img{
 position:absolute!important;z-index:2!important;display:block!important;
 width:296px!important;height:296px!important;max-width:none!important;
 left:-20px!important;top:-5px!important;object-fit:fill!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-name{
 display:block!important;margin:0!important;font:700 21px/1.15 Georgia,serif!important;
 color:#4b2d25!important;text-shadow:none!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-mode{
 display:block!important;margin-top:2px!important;
 font:11px/1.15 Georgia,serif!important;color:#73533e!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat-history.messages{
 flex:1 1 auto!important;min-height:0!important;max-height:none!important;height:auto!important;
 display:flex!important;flex-direction:column!important;gap:4px!important;
 overflow-y:auto!important;overflow-x:hidden!important;
 padding:7px 4px 9px!important;margin:0!important;
 background:transparent!important;background-image:none!important;
 border:0!important;box-shadow:none!important;
 scrollbar-width:thin;scrollbar-color:#b7945c88 transparent;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat-message.message{
 display:flex!important;align-items:flex-end!important;gap:5px!important;
 width:100%!important;max-width:100%!important;padding:0!important;margin:3px 0!important;
 background:transparent!important;background-image:none!important;
 border:0!important;box-shadow:none!important;filter:none!important;
 font-style:normal!important;animation:none!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat-message.is-new{
 animation:shop-v8-reply .22s ease-out both!important;
}
@keyframes shop-v8-reply{from{opacity:.78;transform:translateY(3px)}to{opacity:1;transform:none}}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat-message.me{
 flex-direction:row-reverse!important;justify-content:flex-start!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat-message.trade{
 justify-content:center!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat-message .merchant-message-avatar{
 width:29px!important;height:29px!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat-message .merchant-message-avatar img{
 width:232px!important;height:232px!important;left:-16px!important;top:-4px!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat-message.me .merchant-message-avatar img{
 width:100%!important;height:100%!important;left:0!important;top:0!important;object-fit:cover!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat-message.trade .merchant-message-avatar{display:none!important;}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat-message .message-bubble{
 position:relative!important;display:block!important;flex:0 1 auto!important;
 width:max-content!important;min-width:120px!important;max-width:84%!important;
 padding:8px 14px 20px!important;margin:0!important;
 color:#453026!important;background:transparent!important;background-image:none!important;
 border:11px solid transparent!important;
 border-image:var(--shop-parchment-in) 24% 8% 27% 8% fill / 11px stretch!important;
 box-shadow:none!important;filter:none!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat-message.me .message-bubble{
 border-image-source:var(--shop-parchment-out)!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat-message .message-bubble::before,
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat-message .message-bubble::after{content:none!important;}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat-message .message-bubble strong{
 display:block!important;color:#4c432f!important;font:700 12px/1.2 Georgia,serif!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat-message .message-bubble p{
 margin:3px 0 0!important;padding:0!important;color:#3d2a20!important;
 font:13px/1.35 Georgia,serif!important;white-space:pre-wrap;overflow-wrap:anywhere;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat-message .message-meta{
 position:absolute!important;right:11px!important;bottom:4px!important;
 color:#735e48!important;font:10px/1 Georgia,serif!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-subject{
 display:block!important;margin-top:2px!important;color:#775330!important;font:italic 11px Georgia,serif!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat-empty{
 display:grid!important;place-content:center!important;flex:1!important;min-height:100px!important;
 margin:0!important;padding:20px!important;
 color:#fbe4b7!important;text-shadow:0 2px 4px #32180ce3!important;
 font:italic 15px/1.55 Georgia,serif!important;text-align:center!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-focus:not([hidden]){
 flex:none!important;margin:1px 5px!important;padding:5px 9px!important;
 border:1px solid #d6b879!important;border-radius:5px!important;
 background:rgba(250,226,170,.88)!important;color:#513827!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-status{
 flex:none!important;min-height:14px!important;margin:0 9px!important;
 color:#ffe6a9!important;text-shadow:0 1px 3px #321306!important;font:11px Georgia,serif!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat.chat-compose{
 display:flex!important;align-items:center!important;gap:7px!important;flex:none!important;
 min-height:68px!important;height:auto!important;padding:6px 12px 8px!important;margin:0!important;
 background:none!important;background-image:none!important;
 border:11px solid transparent!important;
 border-image:url('/assets/ui/optimized/compose-strip-b2d04c91.webp') 62 118 62 118 fill / 11px stretch!important;
 box-shadow:none!important;overflow:visible!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat textarea{
 flex:1 1 auto!important;width:0!important;min-width:0!important;
 min-height:35px!important;height:auto!important;max-height:100px!important;
 field-sizing:content!important;padding:8px 9px!important;margin:0!important;resize:none!important;
 color:#3b2a24!important;background:transparent!important;background-image:none!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;
 font:13px/1.35 Georgia,serif!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat textarea:focus{
 outline:0!important;background:rgba(255,248,223,.36)!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat textarea::placeholder{color:#866c52!important;}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat .chat-send-button{
 flex:none!important;min-height:33px!important;margin:0!important;padding:6px 11px!important;
 min-width:0!important;width:auto!important;max-width:96px!important;white-space:nowrap!important;
 border:1px solid #6d4c38!important;border-radius:6px!important;
 background:#6d4b4e!important;color:#fff0c7!important;
 font:700 12px Georgia,serif!important;box-shadow:inset 0 1px #f4da9e77,0 2px #3b2730!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat .chat-send-button::after{content:none!important;display:none!important;}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-new-reply{
 background:#f6e4bd!important;border:1px solid #a37546!important;border-radius:16px!important;
 color:#553d2b!important;z-index:3!important;
}
/* The illustration's foreground counter remains visible around the live book. */
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shop-ledger-section{
 margin:-10px 0 0!important;padding:30px 1.5% 30px!important;
 background:transparent!important;background-image:none!important;
 border:0!important;box-shadow:none!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shop-ledger-section::before{
 content:""!important;display:block!important;position:absolute!important;inset:-55px 0 0!important;
 background:url('/assets/shop/v9/counter-wood.png') center top/cover no-repeat!important;
 -webkit-mask-image:linear-gradient(to bottom,transparent,#000 110px)!important;
 mask-image:linear-gradient(to bottom,transparent,#000 110px)!important;
 pointer-events:none!important;z-index:0!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shop-book-ui{position:relative!important;z-index:1!important;}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shop-ledger-shell{
 width:min(100%,1130px)!important;max-width:1130px!important;
 background:transparent!important;background-image:none!important;
 filter:drop-shadow(0 16px 11px rgba(31,17,15,.58))!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .ledger-painted-book{
 display:block!important;z-index:0!important;object-fit:fill!important;
}
@media(min-width:661px){
 html[data-build="5"] body[data-role="player"][data-screen="shop"] .ledger-leaves{
  left:10.4%!important;right:10.4%!important;top:6.5%!important;bottom:18%!important;
 }
 html[data-build="5"] body[data-role="player"][data-screen="shop"] .ledger-page,
 html[data-build="5"] body[data-role="player"][data-screen="shop"] .ledger-turn-under,
 html[data-build="5"] body[data-role="player"][data-screen="shop"] .ledger-curl-face{
  padding:45px 40px 14px!important;
 }
 html[data-build="5"] body[data-role="player"][data-screen="shop"] .ledger-page.ledger-base-page{
  padding:45px 40px 14px!important;
 }
}
@media(max-width:1100px){
 html[data-build="5"] body[data-role="player"][data-screen="shop"] .shopkeeper-stage{height:445px!important;}
 html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-sprite{left:4%!important;top:34%!important;width:45%!important;}
 html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-presence{left:6%!important;bottom:-40px!important;max-width:37%!important;}
 html[data-build="5"] body[data-role="player"][data-screen="shop"] .shopkeeper-side-panel{left:49%!important;right:2%!important;}
}
@media(max-width:660px){
 html[data-build="5"] body[data-role="player"][data-screen="shop"] .player-scene-background{
  background-size:auto 100%!important;background-position:35% center!important;
 }
 html[data-build="5"] body[data-role="player"][data-screen="shop"] .shop-sticky-wallet{gap:7px!important;padding:5px 8px!important;}
 html[data-build="5"] body[data-role="player"][data-screen="shop"] .shopkeeper-stage{height:655px!important;overflow:visible!important;}
 html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-sprite{
  left:1%!important;top:6px!important;width:min(78%,310px)!important;
 }
 html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-presence{
  top:250px!important;bottom:auto!important;left:4%!important;max-width:64%!important;
 }
 html[data-build="5"] body[data-role="player"][data-screen="shop"] .shopkeeper-side-panel{
  top:309px!important;bottom:7px!important;left:2%!important;right:2%!important;
 }
 html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-dialogue-heading.chat-window-head{
  min-height:61px!important;height:61px!important;padding:3px 11px!important;
 }
 html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-chat-message .message-bubble{max-width:88%!important;}
 html[data-build="5"] body[data-role="player"][data-screen="shop"] .shop-ledger-section{padding:15px 0 28px!important;}
 html[data-build="5"] body[data-role="player"][data-screen="shop"] .shop-ledger-shell{
  background:url('/assets/shop/v9/catalogue.png') 4% center/200% 100% no-repeat!important;
  filter:drop-shadow(0 12px 8px #2d191688)!important;
 }
 html[data-build="5"] body[data-role="player"][data-screen="shop"] .shop-ledger-shell::before{content:none!important;display:none!important;}
 html[data-build="5"] body[data-role="player"][data-screen="shop"] .ledger-painted-book{display:none!important;}
}


/* assets/ui/shop-v10.css */
/* The shop is one scrolling camera view. The merchant, counter, lectern and
   interactive catalogue all belong to this same illustrated surface. */
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shopkeeper-dialogue :is(.merchant-chat-icon,.merchant-message-avatar) img {
  width:100%!important;height:100%!important;left:0!important;top:0!important;object-fit:cover!important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"],
html[data-build="5"] body[data-role="player"][data-screen="shop"] .game-shell {
  background: #281817 !important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .player-scene-background {
  background: #281817 url('/assets/shop/v12/shop-world-dnd.png') center var(--shop-background-y, 0px) / 100% var(--shop-background-height, 1786px) no-repeat !important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .player-scene-background::after {
  display: none !important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .game-stage {
  background: transparent !important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shopkeeper-game-scene {
  container-type: inline-size;
  position: relative !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shopkeeper-stage {
  height: 50cqw !important;
  min-height: 0 !important;
  overflow: visible !important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-sprite {
  left: 4% !important;
  top: 7% !important;
  width: 41% !important;
  filter: drop-shadow(2px 7px 5px #2c150d80) !important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-presence {
  left: 7% !important;
  bottom: 4% !important;
  top: auto !important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shopkeeper-side-panel {
  left: 52% !important;
  right: 3% !important;
  top: 5% !important;
  bottom: 10% !important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shop-ledger-section {
  position: relative !important;
  z-index: 1 !important;
  margin: 0 !important;
  padding: 2.9cqw 0 13cqw !important;
  background: transparent !important;
  box-shadow: none !important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shop-ledger-section::before,
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shop-counter-lip {
  content: none !important;
  display: none !important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .shop-ledger-shell {
  width: min(86%, 1000px) !important;
  max-width: 1000px !important;
  filter: drop-shadow(0 9px 9px #1c0b0888) !important;
}
html[data-build="5"] body[data-role="player"][data-screen="shop"] .ledger-painted-book {
  content-visibility: visible !important;
  filter: none !important;
}
@media (max-width: 1100px) and (min-width: 661px) {
  html[data-build="5"] body[data-role="player"][data-screen="shop"] .shopkeeper-stage {
    height: 445px !important;
  }
  html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-sprite {
    left: 4% !important;
    top: 12% !important;
    width: 43% !important;
  }
  html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-presence {
    left: 5% !important;
    bottom: 4% !important;
  }
  html[data-build="5"] body[data-role="player"][data-screen="shop"] .shopkeeper-side-panel {
    left: 49% !important;
    right: 2% !important;
    bottom: 8% !important;
  }
}
@media (max-width: 660px) {
  html[data-build="5"] body[data-role="player"][data-screen="shop"] .player-scene-background {
    background-position: 58% var(--shop-background-y, 0px) !important;
    background-size: auto var(--shop-background-height, 1786px) !important;
  }
  html[data-build="5"] body[data-role="player"][data-screen="shop"] .shopkeeper-stage {
    height: 750px !important;
  }
  html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-sprite {
    left: 3% !important;
    top: 16% !important;
    width: min(78%, 310px) !important;
  }
  html[data-build="5"] body[data-role="player"][data-screen="shop"] .merchant-presence {
    top: 405px !important;
    bottom: auto !important;
    left: 4% !important;
    max-width: 80% !important;
  }
  html[data-build="5"] body[data-role="player"][data-screen="shop"] .shopkeeper-side-panel {
    top: 445px !important;
    bottom: 10px !important;
    left: 2% !important;
    right: 2% !important;
  }
  html[data-build="5"] body[data-role="player"][data-screen="shop"] .shop-ledger-section {
    padding: 25px 0 45px !important;
  }
  html[data-build="5"] body[data-role="player"][data-screen="shop"] .shop-ledger-shell {
    width: 100% !important;
    max-width: none !important;
  }
}


/* assets/ui/screen-polish-v1.css */
/* Shared chrome: the scene runs uninterrupted behind the top controls. */
html[data-build="5"] body .hud-bar,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .hud-bar{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
html[data-build="5"] body .hud-bar :is(.resource-chip,.hud-display-control select,.hud-user-text){
  background-color:rgba(247,232,202,.94)!important;
  background-image:url('/assets/ui/paper-grain.svg')!important;
  background-position:center!important;
  background-size:cover!important;
  border:1px solid rgba(110,72,37,.65)!important;
  box-shadow:0 3px 8px rgba(33,20,12,.25),inset 0 1px rgba(255,246,218,.8)!important;
  color:#33251b!important;
}
html[data-build="5"] body .hud-bar .resource-chip{border-radius:9px!important;padding:7px 10px!important;white-space:nowrap!important}
html[data-build="5"] body .hud-bar .hud-user-text{padding:5px 10px!important;border-radius:9px!important}
html[data-build="5"] body .hud-bar .hud-user-text :is(strong,span){color:#33251b!important}
html[data-build="5"] body .hud-bar .hud-display-control>span{
  color:#fff0ca!important;
  text-shadow:0 2px 3px #24130d,0 0 5px #24130d!important;
}
/* Show the original lettered guild rug without the mascot panel beside it. */
html[data-build="5"] body .hud-bar .hud-brand{
  position:relative!important;
  flex:0 0 164px!important;
  width:164px!important;
  height:72px!important;
  overflow:visible!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
html[data-build="5"] body .hud-bar .hud-brand img{
  position:absolute!important;
  top:50%!important;
  left:0!important;
  width:auto!important;
  max-width:none!important;
  height:72px!important;
  max-height:none!important;
  object-fit:fill!important;
  transform:translateY(-50%)!important;
  clip-path:polygon(1% 0,59% 0,62% 7%,62% 91%,60% 100%,2% 100%,0 90%,0 10%)!important;
  filter:drop-shadow(0 3px 3px #24140a72)!important;
}
@media(max-width:820px){
  html[data-build="5"] body .hud-bar .hud-brand{flex-basis:116px!important;width:116px!important;height:48px!important}
  html[data-build="5"] body .hud-bar .hud-brand img{height:48px!important}
}
@media(max-width:560px){
  html[data-build="5"] body .hud-bar .hud-brand{flex-basis:105px!important;width:105px!important;height:42px!important}
  html[data-build="5"] body .hud-bar .hud-brand img{height:42px!important}
}

/* Keep the artwork's original colour on these two scenes. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .player-scene-background{
  filter:saturate(1.08) contrast(1.035)!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="characters"] .player-scene-background{
  filter:brightness(.90) saturate(.98)!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]):is([data-screen="chats"],[data-screen="characters"]) .player-scene-background::after{
  content:none!important;
  display:none!important;
}

/* The noticeboard hangs from the tavern rafters and picks up the room's warm shadow. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .player-scene-background{
  background-image:var(--quest-player-background,url('/assets/ui/optimized/quest-tavern-recomposed-f98a7b1e.webp'))!important;
}
@media(max-aspect-ratio:1.55){
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .player-scene-background{background-position:right center!important}
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .player-scene-background::after{
  background:linear-gradient(90deg,rgba(24,10,17,.16),rgba(24,10,17,.07) 68%,transparent 90%)!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quests-screen{
  position:relative!important;
  isolation:isolate!important;
  padding-top:0!important;
  --quest-stage-board-width:min(calc(100% - 12px),900px);
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quests-screen::before{
  content:"";
  position:absolute;
  top:92px;
  left:0;
  width:var(--quest-stage-board-width);
  height:calc(100% - 92px);
  background:radial-gradient(ellipse at center,rgba(23,9,15,.22) 70%,transparent 100%);
  filter:blur(16px);
  pointer-events:none;
  z-index:0;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-board-mount{
  position:absolute;
  top:42px;
  left:0;
  right:auto;
  width:var(--quest-stage-board-width);
  height:140px;
  pointer-events:none;
  z-index:1;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-board-mount::before{
  content:none;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-board-mount::after{
  content:none;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-board-mount i{
  position:absolute;
  top:0;
  width:12px;
  height:132px;
  border:2px solid #5c331c;
  border-radius:12px;
  background:repeating-linear-gradient(137deg,#5a351f 0 2px,#cf9e5a 2px 4px,#85502a 4px 7px);
  box-shadow:inset 2px 0 2px #e9be79aa,3px 4px 6px #1b0d0a99;
  transform-origin:top center;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-board-mount i:first-child{left:8%;transform:rotate(-8deg)}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-board-mount i:last-child{right:8%;transform:rotate(8deg)}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-board-mount i::before{
  content:"";
  position:absolute;
  top:0;
  left:50%;
  width:25px;
  height:14px;
  transform:translate(-50%,-3px);
  border:2px solid #2c1b16;
  border-radius:8px 8px 3px 3px;
  background:linear-gradient(#967249,#332820 48%,#62503b);
  box-shadow:0 4px 5px #1b0e0d88;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quests-screen>.quest-board-modular{
  position:relative!important;
  z-index:2!important;
  width:var(--quest-stage-board-width)!important;
  max-width:900px!important;
  margin:96px auto 0 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:drop-shadow(4px 7px 5px rgba(23,10,12,.52)) drop-shadow(16px 21px 18px rgba(31,13,15,.42)) saturate(1.07)!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-board-modular .quest-board-goals{
  margin-bottom:12px!important;
  padding:0!important;
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-board-modular .quest-board-section-title{
  margin:0 0 8px!important;
  color:#fff0c5!important;
  font-size:clamp(15px,1.8vw,22px)!important;
  letter-spacing:.04em!important;
  text-shadow:0 2px 3px #2b150c,0 0 8px #2b150c!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-board-modular .quest-board-filters{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin:0 0 16px!important;
  padding:10px 12px!important;
  background:linear-gradient(180deg,rgba(76,41,25,.92),rgba(109,65,35,.88))!important;
  background-image:linear-gradient(180deg,rgba(76,41,25,.92),rgba(109,65,35,.88)),url('/assets/quests/boards/guild-wood/middle.webp')!important;
  background-size:cover!important;
  border:1px solid #a77c45!important;
  border-radius:9px!important;
  box-shadow:inset 0 1px #d6a25c66,0 4px 10px #1e0f0a77!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-board-modular .quest-board-filters :is(input,select){
  flex:1 1 190px!important;
  width:auto!important;
  min-width:0!important;
  background:#f7e8c9!important;
  border:1px solid #9c7041!important;
  color:#3b281c!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-board-modular .board-empty{
  background:#f3dfb6 url('/assets/ui/paper-grain.svg') center/cover!important;
  border:2px solid #9c7544!important;
  box-shadow:0 7px 12px #21120b77!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-archive-vault{
  width:var(--quest-stage-board-width)!important;
  margin:18px auto 30px 0!important;
  background:#ead0a1 url('/assets/ui/paper-grain.svg') center/cover!important;
  border:3px solid #6c462b!important;
  border-radius:11px!important;
  box-shadow:0 13px 23px rgba(31,13,12,.35),inset 0 0 0 3px #eed4a4!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-archive-vault .archive-vault-toggle{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-archive-vault .archive-vault-body{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
}

/* The buyer and wallet belong to the catalogue, not to the room's top edge. */
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .shop-ledger-section{
  scroll-margin-top:22px;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .shop-ledger-shell{scroll-margin-top:90px!important}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .shop-ledger-section>.shop-sticky-wallet{
  position:absolute!important;
  top:-24px!important;
  left:50%!important;
  z-index:8!important;
  transform:translateX(-50%)!important;
  width:min(86%,1000px)!important;
  max-width:1000px!important;
  min-height:55px!important;
  margin:0!important;
  padding:5px 14px!important;
  border:2px solid #ae824e!important;
  border-radius:8px!important;
  background:linear-gradient(110deg,rgba(48,28,20,.95),rgba(82,49,31,.94),rgba(48,28,20,.95))!important;
  box-shadow:0 7px 13px #180a0688,inset 0 1px #e3b87877!important;
  backdrop-filter:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .shop-sticky-wallet .wallet-catalog-callout{
  position:absolute!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  min-height:38px!important;
  padding:6px 24px!important;
  border:2px solid #b8833e!important;
  border-radius:7px!important;
  background:#f6dfab url('/assets/ui/paper-grain.svg') center/cover!important;
  color:#382315!important;
  font-size:clamp(15px,1.2vw,18px)!important;
  font-weight:900!important;
  letter-spacing:.025em!important;
  white-space:nowrap!important;
  text-shadow:0 1px #fff1ce!important;
  box-shadow:0 3px 5px #1c0c0888,inset 0 1px #fff8df!important;
  cursor:pointer!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .shop-sticky-wallet .wallet-catalog-callout b{
  color:#7b3423!important;
  font-size:1.45em!important;
  line-height:0!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .shop-sticky-wallet .wallet-catalog-callout:hover,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .shop-sticky-wallet .wallet-catalog-callout:focus-visible{
  background-color:#fff1cc!important;
  outline:2px solid #fff2ce!important;
  outline-offset:2px!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .merchant-dialogue-heading.chat-window-head{
  grid-template-columns:42px minmax(0,1fr) auto!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .shop-book-cue{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  min-width:0!important;
  max-width:156px!important;
  min-height:29px!important;
  padding:5px 10px!important;
  border:1px solid #8b633b!important;
  border-radius:7px!important;
  background:#ecdbb6 url('/assets/ui/paper-grain.svg') center/cover!important;
  color:#4c3021!important;
  font-size:13px!important;
  line-height:1.1!important;
  font-weight:700!important;
  white-space:nowrap!important;
  box-shadow:0 2px 4px #4b2d1a44!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .shop-book-cue:hover,
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .shop-book-cue:focus-visible{
  background-color:#fff1cf!important;
  outline:2px solid #5b774f!important;
  outline-offset:2px!important;
}
@media(max-width:1100px) and (min-width:661px){
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .shop-ledger-section>.shop-sticky-wallet{top:0!important}
}
@media(max-width:660px){
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .player-scene-background{
    background-position:58% min(0px,var(--shop-background-y,0px))!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .shop-ledger-section{padding-top:112px!important}
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .shop-ledger-section>.shop-sticky-wallet{
    display:grid!important;
    grid-template-columns:34px minmax(0,1fr) auto auto!important;
    grid-template-rows:auto auto!important;
    column-gap:7px!important;
    row-gap:5px!important;
    top:8px!important;
    width:calc(100% - 16px)!important;
    min-height:85px!important;
    padding:5px 8px!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .shop-sticky-wallet>img{grid-column:1;grid-row:1/3;width:32px!important;height:39px!important}
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .shop-sticky-wallet label{grid-column:2;grid-row:1;max-width:none!important}
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .shop-sticky-wallet .sticky-wallet-gold{grid-column:3;grid-row:1}
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .shop-sticky-wallet [data-shop-sound]{grid-column:4;grid-row:1}
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .shop-sticky-wallet .wallet-catalog-callout{position:static!important;left:auto!important;transform:none!important;grid-column:2/5;grid-row:2;justify-self:stretch;min-height:29px!important;font-size:12px!important;padding:3px 8px!important}
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .shop-book-cue{font-size:10px!important;padding:5px!important}
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="shop"] .merchant-dialogue-heading.chat-window-head{grid-template-columns:36px minmax(0,1fr) auto!important;gap:4px!important}
}

/* Quest surfaces are an important cascade layer; keep its measured width in that layer. */
@layer quest-surfaces {
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quests-screen>.quest-board-modular.quest-surface{
    width:var(--quest-stage-board-width)!important;
    max-width:900px!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quests-screen .quest-board-modular .quest-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    gap:clamp(12px,1.5vw,20px)!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quests-screen .quest-board-modular .quest-grid>.quest-note{
    grid-column:auto!important;
    width:100%!important;
    max-width:none!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quests-screen .quest-board-modular .quest-grid>.board-empty{
    grid-column:1/-1!important;
  }
}
@media(max-width:700px){
  @layer quest-surfaces{
    html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quests-screen .quest-board-modular .quest-grid{
      grid-template-columns:minmax(0,1fr)!important;
    }
  }
}
@media(max-width:520px){
  html[data-build="5"] body .hud-bar .hud-user-text{padding:4px 6px!important}
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quests-screen>.quest-board-modular,
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-archive-vault{margin-left:0!important}
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quests-screen>.quest-board-modular{margin-top:56px!important}
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-board-mount{left:0;top:16px;height:90px}
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-board-mount i{height:80px;width:10px}
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-board-mount i::before{width:20px;height:13px}
}

@media(max-width:760px){
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .tavern-screen .tavern-chat-desk{
    grid-template-columns:minmax(0,1fr)!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .tavern-screen :is(.tavern-ledger-column,.tavern-thread-column,.chat-window){
    min-width:0!important;
    width:100%!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] .tavern-screen .messages .message.me{
    padding-left:70px!important;
  }
}

/* Bottom navigation repeats the illustrated plaques from the left rail. */
@media(max-width:820px){
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="characters"] .game-shell{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto minmax(0,1fr)!important;
    height:100dvh!important;
    min-height:0!important;
    padding-bottom:calc(72px + env(safe-area-inset-bottom))!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="characters"] .game-stage{
    min-height:0!important;
    height:100%!important;
    overflow:hidden!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="characters"] .stage-content{
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .mobile-nav{
    min-height:70px!important;
    gap:0!important;
    padding:2px max(2px,env(safe-area-inset-right)) max(3px,env(safe-area-inset-bottom)) max(2px,env(safe-area-inset-left))!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .mobile-tab,
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .mobile-tab.active{
    position:relative!important;
    isolation:isolate!important;
    flex:1 1 0!important;
    min-width:0!important;
    min-height:66px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#412b1b!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .mobile-tab::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    background-position:center;
    background-size:100% 100%;
    background-repeat:no-repeat;
    pointer-events:none;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .mobile-tab[data-view="chats"]::before{background-image:url('/assets/ui/optimized/vines-550a210e.webp')}
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .mobile-tab[data-view="characters"]::before{background-image:url('/assets/ui/optimized/wizard-18afe8c6.webp')}
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .mobile-tab[data-view="games"]::before{background-image:url('/assets/ui/optimized/axe-dcf66e6e.webp')}
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .mobile-tab[data-view="quests"]::before{background-image:url('/assets/ui/optimized/skull-0bb9e839.webp')}
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .mobile-tab[data-view="shop"]::before{background-image:url('/assets/ui/optimized/coins-12458240.webp')}
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .mobile-tab.active::before{filter:saturate(1.14) brightness(1.07) drop-shadow(0 2px 3px #2a170d88)}
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .mobile-tab .nav-label{
    position:relative!important;
    z-index:1!important;
    display:block!important;
    width:62%!important;
    padding:0!important;
    color:#402919!important;
    font-size:clamp(8px,1.45vw,11px)!important;
    font-weight:900!important;
    line-height:1.05!important;
    text-align:center!important;
    text-shadow:0 1px #fff0d5!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"]) .mobile-tab .nav-badge{z-index:2!important;top:4px!important;right:9%!important}
}


/* assets/ui/quest-embedded-v1.css */
/* The player writes on the fixed board painted into the single tavern scene. */
.quest-board-mode-toggle{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.quest-board-mode-toggle .soft-button.active{
  color:#fff1cd!important;
  background:#704022!important;
  border-color:#d7a75f!important;
  box-shadow:inset 0 1px #ebc88a77,0 3px 7px #29160e55!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"][data-quest-embedded="true"] .player-scene-background{
  background-image:var(--quest-player-background,url('/assets/ui/optimized/quest-tavern-embedded-board-3907e026.webp'))!important;
  background-position:center center!important;
  background-size:100% 100%!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"][data-quest-embedded="true"] .player-scene-background::after{
  content:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"][data-quest-embedded="true"] .stage-content{
  width:100%!important;
  max-width:none!important;
  padding:0!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"][data-quest-embedded="true"] .game-stage{
  overflow:hidden!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-scene-screen{
  display:block!important;
  min-height:calc(100dvh - var(--v4-hud,72px));
  margin:0!important;
  padding:0!important;
  background:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-scene-screen::before{
  content:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-scene-board{
  position:fixed;
  z-index:3;
   top:23dvh;
   left:24vw;
   width:50.5vw;
   height:58.5dvh;
  min-height:0;
  box-sizing:border-box;
  color:#f3dfb5;
  background:none!important;
  overflow:hidden;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-scene-scroll{
  width:100%;
  height:100%;
  box-sizing:border-box;
  padding:4px 14px 16px 4px;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#b8874e transparent;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-scene-scroll:focus-visible{
  outline:2px dashed #edbe72;
  outline-offset:-3px;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-scene-scroll .quest-board-goals{
  margin:0 0 10px!important;
  padding:0!important;
  background:none!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-scene-scroll .quest-board-section-title{
  margin:0 0 7px!important;
  color:#f8e4b7!important;
  font-size:clamp(16px,1.7vw,21px)!important;
  text-shadow:0 2px 3px #210e0b,0 0 8px #210e0b!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-scene-scroll .goal-list{
  width:100%;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-scene-scroll .goal-card{
  width:100%!important;
  max-width:none!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-scene-scroll .quest-board-filters{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  margin:0 0 13px!important;
  padding:7px!important;
  border:1px solid #a3723c!important;
  border-radius:7px!important;
  background:rgba(56,28,18,.77)!important;
  box-shadow:inset 0 1px #e2b87555!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-scene-scroll .quest-board-filters :is(input,select){
  flex:1 1 150px!important;
  min-width:0!important;
  width:auto!important;
  background:#f7e8c9!important;
  border:1px solid #9c7041!important;
  color:#3b281c!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-scene-scroll .quest-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  gap:12px!important;
  width:100%!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-scene-scroll .quest-grid>.quest-note{
  grid-column:auto!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-scene-scroll .quest-grid>.board-empty{
  grid-column:1/-1!important;
}
html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-scene-scroll .quest-archive-vault{
  width:100%!important;
  max-width:none!important;
  margin:18px 0 8px!important;
}
html[data-build="5"] body[data-shared-scene="true"][data-screen="quests"] .quest-drafts{
  margin:18px 0 8px;
  padding-top:14px;
  border-top:1px solid #b8874e;
}
html[data-build="5"] body[data-shared-scene="true"][data-screen="quests"] .quest-drafts>h2,
html[data-build="5"] body[data-shared-scene="true"][data-screen="quests"] .quest-drafts>h2>span{
  margin:0 0 6px;
  color:#f8e4b7!important;
  font-size:clamp(16px,1.7vw,21px);
  text-shadow:0 2px 3px #210e0b,0 0 8px #210e0b!important;
}
html[data-build="5"] body[data-shared-scene="true"][data-screen="quests"] .quest-drafts-hint{
  margin:0 0 12px;
  color:#f2d7a6!important;
  font-size:13px;
  text-shadow:0 1px 3px #210e0b!important;
}
@layer final-ui{
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-scene-scroll .quest-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-scene-scroll .quest-grid>.quest-note{
    grid-column:auto!important;
  }
}
@media(max-width:1050px){
  @layer final-ui{
    html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-scene-scroll .quest-grid{
      grid-template-columns:minmax(0,1fr)!important;
    }
  }
}
@media(max-width:600px){
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"][data-quest-embedded="true"] .player-scene-background{
    background-size:auto 100%!important;
    background-position:center center!important;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-scene-board{
    left:12px;
    right:12px;
    top:max(calc(var(--v4-hud,72px) + 16px),23dvh);
    bottom:max(calc(82px + env(safe-area-inset-bottom)),18.5dvh);
    width:auto;
    height:auto;
  }
  html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="quests"] .quest-scene-scroll{
    padding:3px 9px 15px;
  }
}


/* assets/ui/admin-art-v1.css */
/* Illustrated guild workspaces for administrators and masters. */
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]){
  --guild-paper:url('/assets/ui/paper-grain.svg');
  --guild-frame:url('/assets/art/sheet-panel-v3.webp');
  --guild-ink:#382819;
  --guild-muted:#73583c;
  --guild-line:#a97a42;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) .game-shell{
  position:relative!important;isolation:isolate!important;background:transparent!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) .player-scene-background{
  display:block!important;position:fixed!important;inset:0!important;z-index:0!important;
  pointer-events:none!important;background-position:center!important;background-size:cover!important;
  background-repeat:no-repeat!important;background-color:#392319!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) .player-scene-background::after{
  content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(35,19,14,.14),transparent 22%,transparent 78%,rgba(35,19,14,.1));
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"]) .player-scene-background{background-image:url('/assets/ui/admin-scenes/guild-command.png')!important}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"]):is([data-screen="content"],[data-screen="audit"]) .player-scene-background{background-image:url('/assets/ui/admin-scenes/guild-archive.png')!important}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="chats"] .player-scene-background{background-image:url('/assets/ui/optimized/chats-ee10272c.webp')!important}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="games"] .player-scene-background{background-image:url('/assets/ui/optimized/games-557f2982.webp')!important}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="quests"] .player-scene-background{background-image:url('/assets/ui/optimized/quest-tavern-recomposed-f98a7b1e.webp')!important}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="shop"] .player-scene-background{background-image:url('/assets/ui/optimized/shop-c83c753d.webp')!important}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="approvals"] .player-scene-background{background-image:url('/assets/ui/optimized/characters-da34950f.webp')!important}
html[data-build="5"] body[data-role="master"]:not([data-shared-scene="true"]) .player-scene-background{background-image:url('/assets/ui/admin-scenes/guild-command.png')}
html[data-build="5"] body[data-role="master"]:not([data-shared-scene="true"])[data-screen="special"] .player-scene-background{background-image:url('/assets/ui/admin-scenes/guild-archive.png')!important}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) .world-bg{opacity:0!important;background:none!important}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) :is(.hud-bar,.side-rail,.game-stage){position:relative;z-index:2}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) .game-stage{z-index:1;background:transparent!important;background-image:none!important}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) .side-rail{
  background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;
  padding:8px 6px!important;backdrop-filter:none!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) .side-nav{
  min-height:0;max-height:calc(100dvh - 20px);margin:0!important;gap:3px!important;
  overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#ae7b4b transparent;
  background:transparent!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) .nav-button{
  position:relative!important;isolation:isolate;flex:none!important;display:block!important;
  width:100%!important;min-height:clamp(60px,8.1vh,78px)!important;padding:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;color:#472d1d!important;transform:none!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) .nav-button::before,
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) .mobile-tab::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:var(--guild-nav-art);background-position:center;background-repeat:no-repeat;background-size:100% 100%;
  transition:filter .16s ease,transform .16s ease;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) :is(.nav-button,.mobile-tab)[data-view="chats"],
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) :is(.nav-button,.mobile-tab)[data-view="dashboard"],
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) :is(.nav-button,.mobile-tab)[data-view="content"]{--guild-nav-art:url('/assets/ui/optimized/vines-550a210e.webp')}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) :is(.nav-button,.mobile-tab)[data-view="approvals"],
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) :is(.nav-button,.mobile-tab)[data-view="masters"],
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) :is(.nav-button,.mobile-tab)[data-view="special"]{--guild-nav-art:url('/assets/ui/optimized/wizard-18afe8c6.webp')}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) :is(.nav-button,.mobile-tab)[data-view="games"],
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) :is(.nav-button,.mobile-tab)[data-view="stats"]{--guild-nav-art:url('/assets/ui/optimized/axe-dcf66e6e.webp')}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) :is(.nav-button,.mobile-tab)[data-view="quests"],
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) :is(.nav-button,.mobile-tab)[data-view="audit"]{--guild-nav-art:url('/assets/ui/optimized/skull-0bb9e839.webp')}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) :is(.nav-button,.mobile-tab)[data-view="shop"]{--guild-nav-art:url('/assets/ui/optimized/coins-12458240.webp')}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) :is(.nav-button,.mobile-tab) :is(.nav-icon,.nav-symbol){display:none!important}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) .nav-button .nav-label{
  position:absolute!important;left:25%!important;right:18%!important;top:50%!important;
  display:grid!important;place-items:center!important;width:auto!important;height:auto!important;
  margin:0!important;padding:0!important;transform:translateY(-50%)!important;
  color:#492e1d!important;font-size:clamp(10px,.9vw,14px)!important;line-height:1.03!important;
  font-weight:900!important;text-align:center!important;text-shadow:0 1px #fff0d2!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) .nav-button:is(:hover,:focus-visible,.active)::before,
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) .mobile-tab.active::before{
  filter:saturate(1.12) brightness(1.07) drop-shadow(0 5px 7px #26120a88);transform:translateY(-1px);
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) .nav-badge{z-index:3!important;top:5px!important;right:10%!important}
html[data-build="5"] body .has-chat-art{position:relative;overflow:hidden}
html[data-build="5"] body .has-chat-art img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
html[data-build="5"] body .has-chat-art::after{display:none!important}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) .hud-bar{
  background:transparent!important;background-image:none!important;border:0!important;
  box-shadow:none!important;backdrop-filter:none!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) .hud-bar :is(.resource-chip,.hud-display-control select,.hud-user-text){
  background:#f6e5c3 var(--guild-paper) center/cover!important;border:1px solid #a57c4c!important;
  border-radius:8px!important;box-shadow:0 3px 8px #24150d55!important;color:var(--guild-ink)!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) .hud-display-control>span{color:#fff1cf!important;text-shadow:0 2px 4px #211009!important}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) .hud-brand{
  position:relative!important;flex:0 0 164px!important;width:164px!important;height:72px!important;
  overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) .hud-brand img{
  position:absolute!important;top:50%!important;left:0!important;width:auto!important;max-width:none!important;
  height:72px!important;max-height:none!important;object-fit:fill!important;transform:translateY(-50%)!important;
  clip-path:polygon(1% 0,59% 0,62% 7%,62% 91%,60% 100%,2% 100%,0 90%,0 10%)!important;
  filter:drop-shadow(0 3px 3px #24140a72)!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) .stage-content{
  width:100%!important;max-width:1680px!important;padding:clamp(12px,1.7vw,26px)!important;
  background:transparent!important;background-image:none!important;box-shadow:none!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) :is(.rpg-screen,.warroom-screen,.master-table-screen,.analytics-dashboard,.shop-screen,.tavern-screen,.codex-screen,.audit-screen){
  background:transparent!important;background-image:none!important;box-shadow:none!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) .rpg-screen{gap:14px!important}

/* The same illustrated parchment vocabulary carries every management surface. */
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) :is(
  .analytics-filter-bar,.analytics-kpi-grid>article,.dashboard-kpi-grid>article,.analytics-card,.retention-kpi-grid>article,
  .billing-kpis>article,.club-intelligence-head,.intelligence-signal,.schedule-table,
  .master-directory,.master-directory-card,.compendium-source-banner,.compendium-toolbar,
  .compendium-ledger,.audit-filter-panel,.audit-table-wrap,.shop-management-heading,
  .shop-management-tabs,.shop-management-filters,.shop-stock-bulk,.shop-management-table,
  .shop-catalog-editor,.shop-settings,.workshop-tabs,.workshop-card
){
  color:var(--guild-ink)!important;background-color:#f5e6c7!important;
  background-image:var(--guild-paper)!important;background-size:cover!important;
  border:12px solid transparent!important;border-image:var(--guild-frame) 44 fill / 12px / 0 stretch!important;
  border-radius:0!important;box-shadow:0 10px 20px #20100855!important;min-width:0;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) :is(
  .analytics-filter-bar,.analytics-card,.club-intelligence-head,.schedule-table,.master-directory,
  .compendium-source-banner,.compendium-toolbar,.compendium-ledger,.audit-filter-panel,.audit-table-wrap,
  .shop-management-heading,.shop-management-tabs,.shop-management-filters,.shop-stock-bulk,
  .shop-management-table,.shop-catalog-editor,.shop-settings,.workshop-tabs
){padding:clamp(12px,1.5vw,21px)!important}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) :is(
  .analytics-kpi-grid>article,.dashboard-kpi-grid>article,.retention-kpi-grid>article,.billing-kpis>article,.intelligence-signal
){padding:12px 15px!important}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) :is(.analytics-filter-bar,.analytics-kpi-grid,.analytics-main-grid,.club-intelligence-grid,.retention-kpi-grid,.retention-action-grid,.billing-kpis){min-width:0}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) .analytics-card.trend:has(.analytics-trend-empty){min-height:0!important}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) .analytics-trend-empty{
  display:grid;place-items:center;min-height:135px;margin-top:16px;padding:20px;text-align:center;
  color:#694c31;border:1px dashed #b99562;background:#f8ebce88;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="audit"] .dashboard-kpi-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="audit"] .dashboard-kpi-grid>article{
  display:grid!important;grid-template-rows:auto auto auto!important;align-content:start!important;gap:4px!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="audit"] .dashboard-kpi-grid>article :is(span,b,small){display:block!important;min-width:0!important}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="audit"] .dashboard-kpi-grid>article b{
  font-size:clamp(22px,2.1vw,32px)!important;line-height:1.05!important;color:#59361f!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="audit"] .dashboard-kpi-grid>article small{font-size:.62rem!important;line-height:1.25!important;color:#765d42!important}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) :is(.analytics-table,.newcomer-master-table,.audit-table-wrap,.compendium-table,.shop-management-table){overflow-x:auto}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) :is(.analytics-dashboard,.warroom-screen,.master-table-screen) .location-plaque{
  min-height:68px!important;padding:10px 18px!important;color:var(--guild-ink)!important;
  border:12px solid transparent!important;border-image:var(--guild-frame) 44 fill / 12px / 0 stretch!important;
  border-radius:0!important;background:#f7e7c7 var(--guild-paper) center/cover!important;
  box-shadow:0 8px 18px #1c100a55!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) .location-plaque::after{display:none!important}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) .location-plaque h1{font-size:clamp(19px,1.9vw,28px)!important}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) :is(input,select,textarea){
  color:#3d2b1d!important;background:#fff6df var(--guild-paper) center/cover!important;
  border:1px solid #aa8352!important;box-shadow:inset 0 1px 3px #5b341b22!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) :is(.primary-button,.soft-button,.ghost-button,.shop-management button,.workshop-tabs button){
  color:#422b1d!important;background:#f1dcb0 var(--guild-paper) center/cover!important;
  border:1px solid #977044!important;box-shadow:inset 0 1px #fff2d4,0 3px 5px #2f180e44!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) :is(.primary-button,.soft-button,.ghost-button,.shop-management button,.workshop-tabs button):is(:hover,:focus-visible){filter:brightness(1.05) saturate(1.08)}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) .primary-button{background-color:#dae2bf!important;border-color:#778957!important}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) .dialog{
  background:#f3e3bf var(--guild-paper) center/cover!important;
  border:16px solid transparent!important;border-image:var(--guild-frame) 44 fill / 16px / 0 stretch!important;
  box-shadow:0 25px 65px #180d08a8!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"]) :is(.master-photo-field,.compendium-item-art){
  display:flex;align-items:center;flex-wrap:wrap;gap:14px;min-height:120px;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"]) :is(.master-photo-field,.compendium-item-art)>img{
  display:block;width:110px;height:110px;object-fit:cover;background:#e6cfa5;
  border:5px solid #9f7440;border-radius:10px;box-shadow:0 4px 10px #29140c55;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"]) :is(.master-photo-field,.compendium-item-art)>:is(input[type="file"],label){flex:1 1 210px;min-width:170px}

/* Chats reuse the player's illustrated room and message stationery. */
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="chats"] .tavern-screen{min-height:calc(100dvh - 125px)}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="chats"] .tavern-chat-desk{
  display:grid!important;grid-template-columns:minmax(285px,360px) minmax(0,1fr)!important;
  height:calc(100dvh - 170px)!important;min-height:560px!important;gap:12px!important;
  background:transparent!important;background-image:none!important;box-shadow:none!important;border:0!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="chats"] :is(.tavern-ledger-column,.tavern-thread-column){
  min-width:0!important;min-height:0!important;
  background:#f5e5c2 var(--guild-paper) center/cover!important;
  border:14px solid transparent!important;border-image:var(--guild-frame) 44 fill / 14px / 0 stretch!important;
  box-shadow:0 13px 25px #160c0866!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="chats"] .chat-window{
  min-height:0!important;height:100%!important;background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="chats"] :is(.chat-ledger,.messages){min-height:0!important;overflow-y:auto!important}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="chats"] .messages{
  background:transparent!important;background-image:none!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="chats"] .chat-window-head{
  background:transparent!important;border:10px solid transparent!important;
  border-image:url('/assets/ui/optimized/header-strip-64dcbf04.webp') 66 125 66 125 fill / 10px / 0 stretch!important;
  box-shadow:none!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="chats"] .chat-compose{
  background:transparent!important;border:10px solid transparent!important;
  border-image:url('/assets/ui/optimized/compose-strip-b2d04c91.webp') 62 118 62 118 fill / 10px / 0 stretch!important;
  box-shadow:none!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="chats"] .message-bubble{
  color:var(--guild-ink)!important;background:transparent!important;border:10px solid transparent!important;
  border-image:url('/assets/ui/optimized/bubble-incoming-4d873b7f.webp') 24% 8% 27% 8% fill / 10px / 0 stretch!important;
  box-shadow:none!important;max-width:min(70%,680px)!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="chats"] .message.me .message-bubble{
  border-image-source:url('/assets/ui/optimized/bubble-outgoing-8aeabf47.webp')!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="chats"] :is(.tavern-thread-column>.panel,.chat-ledger>.empty-state){
  background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;
}

/* Board and schedule retain their actual interactive structures. */
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="games"] :is(.schedule-table,.master-contracts){
  width:min(100%,1120px)!important;margin:0 auto!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="games"] :is(.schedule-week-group,.schedule-player-group,.game-row){
  background:#f6e8c9 var(--guild-paper) center/cover!important;border:1px solid #a9804e!important;box-shadow:0 4px 10px #2a150d40!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="quests"] .managed-board-v6{
  width:min(100%,1240px);margin:auto;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="quests"] .managed-board-v6>.quest-board-frame{
  width:min(100%,1050px)!important;max-width:1050px!important;margin:0 auto!important;
  filter:drop-shadow(8px 13px 12px #1a0a0877);
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="quests"] :is(.quest-board-style-panel,.quest-drafts,.archive-chest){
  background:#f5e3bd var(--guild-paper) center/cover!important;border:12px solid transparent!important;
  border-image:var(--guild-frame) 44 fill / 12px / 0 stretch!important;
  box-shadow:0 8px 18px #1a0b0855!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="quests"] .quest-board-style-panel{
  width:min(100%,1050px)!important;margin:0 auto!important;
}

/* Stock ledger, compendium, staff and audit remain usable at narrow widths. */
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="shop"] .shop-management{
  width:min(100%,1500px)!important;max-width:1500px!important;margin:0 auto!important;
  padding:18px 24px 25px!important;color:var(--guild-ink)!important;
  background:#f6e6c4 var(--guild-paper) center/cover!important;
  border:15px solid transparent!important;border-image:var(--guild-frame) 44 fill / 15px / 0 stretch!important;
  box-shadow:0 18px 35px #1b0b0877!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="shop"] .shop-management-heading{gap:16px!important}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="shop"] :is(.shop-management-heading,.shop-management-tabs,.shop-management-filters,.shop-stock-bulk,.shop-management-table){
  background:transparent!important;background-image:none!important;border:0!important;border-image:none!important;
  box-shadow:none!important;padding:10px 0!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="shop"] :is(.shop-management-heading,.shop-management-tabs,.shop-management-filters){
  border-bottom:2px solid #b88e59!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="shop"] .shop-stock-bulk{
  display:flex!important;flex-wrap:wrap!important;align-items:end!important;gap:10px!important;
  border-bottom:2px dashed #bc9666!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="shop"] .shop-stock-bulk>select{flex:1 1 240px}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="shop"] .shop-management-heading h1{font-family:var(--club-user-font,'Neucha',cursive)!important}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="shop"] .shop-management-tabs{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:10px 0!important}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="shop"] .shop-management-tabs button[aria-pressed="true"]{background-color:#dbe6ca!important;border-color:#688253!important;font-weight:900!important}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="shop"] .shop-table-head,
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="shop"] .shop-stock-row{
  background:#f9ebd0 var(--guild-paper) center/cover!important;color:var(--guild-ink)!important;
  border-color:#b58e61!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="shop"] .shop-table-head{background-color:#dfc49a!important}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="shop"] .shop-stock-row:nth-child(odd){background-color:#f2dfb9!important}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="shop"] .shop-stock-row:focus-within{outline:2px solid #8b643b;outline-offset:-2px}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="shop"] .shop-management-table>.empty-state{
  background:transparent!important;border:1px dashed #bd9b6d!important;box-shadow:none!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="content"] .compendium-toolbar{
  display:grid!important;grid-template-columns:minmax(200px,1.7fr) repeat(3,minmax(130px,1fr)) auto!important;
  align-items:center!important;gap:9px!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="content"] .compendium-toolbar>*{min-width:0;width:100%}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="content"] .compendium-source-banner{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:18px!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="content"] .compendium-source-banner>b{
  padding:11px 15px;border:2px solid #a4743a;border-radius:50%;background:#ecd2a0;
  color:#5e3922!important;font-size:11px;line-height:1.5;text-align:center;transform:rotate(-7deg);
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="content"] .compendium-ledger>header{
  display:flex!important;justify-content:space-between!important;align-items:center!important;flex-wrap:wrap!important;
  gap:6px 14px!important;margin-bottom:8px!important;padding-bottom:8px!important;border-bottom:2px solid #b28b5d!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="content"] .compendium-table :is(.compendium-table-head,article){
  display:grid!important;grid-template-columns:minmax(200px,2fr) minmax(110px,.8fr) minmax(130px,1fr) minmax(130px,1fr) auto!important;
  align-items:center!important;gap:12px!important;padding:10px 12px!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="content"] .compendium-table .compendium-table-head{
  border-bottom:2px solid #b58c5a!important;color:#634328!important;font-weight:800!important;font-size:.62rem!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="content"] .compendium-table article{
  border-bottom:1px solid #d1b68a!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="content"] .compendium-table article>div{display:grid!important;gap:3px!important;min-width:0}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="content"] .compendium-table article :is(strong,small){overflow-wrap:anywhere}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="content"] .compendium-table>.empty-state{
  background:transparent!important;border:1px dashed #bd9b6d!important;box-shadow:none!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="audit"] .audit-filter-panel{
  display:grid!important;grid-template-columns:minmax(180px,1.5fr) repeat(3,minmax(115px,1fr)) repeat(2,minmax(130px,1fr)) auto!important;
  align-items:end!important;gap:8px!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="audit"] .audit-filter-panel>*{min-width:0;width:100%}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="audit"] .audit-filter-panel label{display:grid;gap:3px}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="audit"] .audit-table{width:100%!important;border-collapse:collapse!important;font-size:.66rem!important}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="audit"] .audit-table :is(th,td){padding:9px 11px!important;text-align:left!important;vertical-align:top!important;line-height:1.35!important}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="audit"] .audit-table td :is(strong,small){display:block!important;overflow-wrap:anywhere!important}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="audit"] .audit-table td small{font-size:.55rem!important;color:#806747!important}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="content"] :is(.compendium-table-head,.compendium-table article),
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="audit"] :is(.audit-table th,.audit-table td){
  background:#f9eed7 var(--guild-paper) center/cover!important;border-color:#c3a47c!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="content"] .compendium-table article:nth-child(odd),
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="audit"] .audit-table tr:nth-child(odd) td{background-color:#efdbb4!important}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="content"] .compendium-table{min-width:760px}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="audit"] .audit-table{min-width:850px}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="masters"] .master-directory-card{
  grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:14px!important;
  padding:14px!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="masters"] .master-directory-card>img{
  object-fit:cover;border:5px solid #926335;border-radius:9px;box-shadow:0 5px 9px #2a180e66;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="masters"] .master-directory-grid>.empty-state{
  background:transparent!important;border:1px dashed #a98252!important;box-shadow:none!important;
}
html[data-build="5"] body[data-role="master"]:not([data-shared-scene="true"])[data-screen="special"] .workshop-grid>.empty-state{
  min-height:150px!important;padding:36px 20px!important;color:var(--guild-ink)!important;
  background:#f4e3bf var(--guild-paper) center/cover!important;
  border:14px solid transparent!important;border-image:var(--guild-frame) 44 fill / 14px / 0 stretch!important;
  box-shadow:0 10px 20px #20100855!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="approvals"] .stage-content{padding:0!important}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="approvals"] .approval-sheet-pane:has(.approval-empty){
  background:linear-gradient(90deg,#20120a55,#20120a11 46%,#20120a55),url('/assets/ui/optimized/characters-da34950f.webp') center 42%/cover!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="approvals"] .approval-empty{
  flex:initial!important;align-self:center!important;justify-self:center!important;
  width:min(500px,calc(100% - 48px));min-height:180px;margin:auto;padding:28px 42px!important;
  color:var(--guild-ink)!important;background:#f2dfba var(--guild-paper) center/cover!important;
  border:22px solid transparent!important;border-image:var(--guild-frame) 38 fill / 22px / 0 stretch!important;
  box-shadow:0 12px 30px #1f100abb!important;text-align:center;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="approvals"] .approval-empty strong{font-size:1.35rem;line-height:1.2}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="approvals"] .approval-empty p{margin:0;font-size:1rem;line-height:1.4}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="approvals"] .approval-messenger{
  background:#f2dfb9 var(--guild-paper) center/cover!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="approvals"] :is(.approval-contact-list,.approval-chat-pane)>.empty-state{
  margin:10px!important;padding:20px 10px!important;min-height:130px!important;
  background:#fff0d1 var(--guild-paper) center/cover!important;border:1px dashed #b58d5a!important;
  box-shadow:none!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="approvals"] :is(.approval-category-tabs,.approval-search,.approval-thread-header,.approval-chat-pane .chat-compose){
  background:#efd8ae var(--guild-paper) center/cover!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="approvals"] .approval-contact{
  background:#f8e9c9 var(--guild-paper) center/cover!important;
}
html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="approvals"] .approval-contact.active{background-color:#dce7ca!important}

@media(max-width:1100px){
  html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="chats"] .tavern-chat-desk{grid-template-columns:minmax(250px,32%) minmax(0,1fr)!important}
  html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="masters"] .master-directory-card{grid-template-columns:auto minmax(0,1fr)!important}
  html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="content"] .compendium-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="audit"] .audit-filter-panel{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="audit"] .dashboard-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:820px){
  html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) .hud-brand{flex-basis:116px!important;width:116px!important;height:48px!important}
  html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) .hud-brand img{height:48px!important}
  html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) .mobile-nav{
    display:flex!important;gap:1px!important;min-height:72px!important;
    background:rgba(57,32,22,.46)!important;border:0!important;box-shadow:0 -4px 13px #1d0d0966!important;
    backdrop-filter:blur(5px)!important;scroll-snap-type:x proximity;
  }
  html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) .mobile-tab{
    position:relative!important;isolation:isolate!important;flex:0 0 115px!important;min-width:115px!important;
    min-height:66px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;
    scroll-snap-align:start;
  }
  html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) .mobile-tab .nav-label{
    position:relative;z-index:1;width:62%;margin:auto;color:#4a2d1b!important;
    font-size:11px!important;font-weight:900!important;line-height:1.05!important;text-align:center!important;
    white-space:normal!important;text-shadow:0 1px #fff2d6!important;
  }
  html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) .stage-content{padding:10px!important}
  html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="chats"] .tavern-chat-desk{
    grid-template-columns:minmax(0,1fr)!important;height:auto!important;min-height:0!important;
  }
  html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="chats"] :is(.tavern-ledger-column,.tavern-thread-column){min-height:320px!important}
  html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"])[data-screen="chats"] .chat-window{min-height:480px!important}
  html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="shop"] .shop-management-heading{display:flex!important;flex-wrap:wrap!important}
  html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="shop"] .shop-management{padding:10px 13px 20px!important}
  html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="shop"] .shop-management-heading button{width:auto}
}
@media(max-width:540px){
  html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) .hud-brand{flex-basis:105px!important;width:105px!important;height:42px!important}
  html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) .hud-brand img{height:42px!important}
  html[data-build="5"] body:is([data-role="admin"],[data-role="master"]):not([data-shared-scene="true"]) :is(.analytics-kpi-grid,.retention-kpi-grid,.billing-kpis){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="shop"] .shop-management-filters{display:flex!important;flex-wrap:wrap!important}
  html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="shop"] .shop-stock-row{grid-template-columns:minmax(0,1fr)!important}
  html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="shop"] .shop-stock-row form{grid-column:1!important}
  html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="content"] .compendium-toolbar,
  html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="audit"] .audit-filter-panel{grid-template-columns:minmax(0,1fr)!important}
  html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="content"] .compendium-source-banner{grid-template-columns:minmax(0,1fr)!important}
  html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="content"] .compendium-source-banner>b{justify-self:start}
  html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="masters"] .master-directory-card{grid-template-columns:minmax(0,1fr)!important}
  html[data-build="5"] body[data-role="admin"]:not([data-shared-scene="true"])[data-screen="masters"] .master-directory-card>img{width:82px;height:82px}
}


/* assets/ui/shared-role-scenes.css */
/* Staff actions live inside the same illustrated scenes used by players.
   data-role continues to control permissions; data-shared-scene only selects art. */
html[data-build="5"] body[data-shared-scene="true"][data-screen="chats"] .chat-ledger:has(>.empty-state){
  align-self:start!important;
}
html[data-build="5"] body[data-shared-scene="true"][data-screen="chats"] .chat-idle-card{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  align-content:center;
  align-items:center;
  column-gap:14px;
  row-gap:8px;
  box-sizing:border-box;
  width:min(100%,540px);
  min-width:0;
  min-height:164px;
  margin:0;
  padding:16px 36px!important;
  border:20px solid transparent!important;
  border-image:var(--chat33-ledger) 110 90 100 90 fill / 20px / 0 stretch!important;
  background:transparent;
  color:var(--chat33-ink);
  box-shadow:var(--chat33-shadow);
  text-align:left;
}
html[data-build="5"] body[data-shared-scene="true"][data-screen="chats"] .chat-idle-card img{
  position:static!important;
  margin:0!important;
  transform:none!important;
  grid-column:1;
  grid-row:1 / span 2;
  width:42px;
  height:42px;
  object-fit:contain;
}
html[data-build="5"] body[data-shared-scene="true"][data-screen="chats"] .chat-idle-card h2{
  grid-column:2;
  grid-row:1;
  margin:0;
  font-size:clamp(20px,1.7vw,26px);
  line-height:1.2;
  color:var(--chat33-ink);
  overflow-wrap:anywhere;
}
html[data-build="5"] body[data-shared-scene="true"][data-screen="chats"] .chat-idle-card p{
  grid-column:2;
  grid-row:2;
  margin:0;
  font-size:18px;
  line-height:1.4;
  color:var(--chat33-muted);
  overflow-wrap:anywhere;
}
@media(max-width:620px){
  html[data-build="5"] body[data-shared-scene="true"][data-screen="chats"] .chat-idle-card{
    padding:12px 20px!important;
    column-gap:10px;
  }
}
html[data-build="5"] body[data-shared-scene="true"] .shared-scene-controls{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin:0 0 12px;
  padding:0 0 10px;
  border-bottom:1px dashed #a67a48;
  color:#4c3021;
}
html[data-build="5"] body[data-shared-scene="true"] .shared-scene-controls h2{
  margin:0 0 3px;
  font-size:clamp(18px,1.8vw,24px);
  line-height:1.2;
}
html[data-build="5"] body[data-shared-scene="true"] .shared-scene-controls small{
  display:block;
  font-size:14px;
  line-height:1.3;
}
html[data-build="5"] body[data-shared-scene="true"] .shared-scene-actions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
html[data-build="5"] body[data-shared-scene="true"] .shared-scene-actions button{
  min-height:34px;
  padding:5px 10px;
}
html[data-build="5"] body[data-shared-scene="true"][data-screen="games"] .completed-games-list{
  display:grid;gap:16px;min-width:0;
}
html[data-build="5"] body[data-shared-scene="true"][data-screen="games"] .completed-game-with-feedback{
  min-width:0;padding-bottom:12px;border-bottom:1px dashed #ba9b70;
}
html[data-build="5"] body[data-shared-scene="true"][data-screen="games"] .game-feedback-summary{
  margin:8px 0 0;padding:9px 3px;color:#4d3425;background:transparent;
  border:0;border-image:none;box-shadow:none;
}
html[data-build="5"] body[data-shared-scene="true"][data-screen="games"] .game-feedback-summary header>div{
  display:grid;gap:5px;
}
html[data-build="5"] body[data-shared-scene="true"][data-screen="games"] .game-feedback-summary strong{
  font-size:20px;color:#573a26;
}
html[data-build="5"] body[data-shared-scene="true"][data-screen="games"] .game-feedback-summary :is(header span,.game-conclusion>span){
  font-size:16px;color:#795533;
}
html[data-build="5"] body[data-shared-scene="true"][data-screen="games"] .game-conclusion{
  display:grid;gap:4px;margin-top:10px;
}
html[data-build="5"] body[data-shared-scene="true"][data-screen="games"] .game-conclusion p{
  margin:0;font-size:18px;line-height:1.4;overflow-wrap:anywhere;
}
html[data-build="5"] body[data-shared-scene="true"][data-screen="quests"] .shared-scene-controls{
  color:#ffedc8;
  border-color:#cb9b5b;
  text-shadow:0 1px 3px #25140b;
}
html[data-build="5"] body[data-shared-scene="true"] .shared-board-folder{
  min-width:0;
  margin:14px 0 8px;
  border:0;
  background:none;
  box-shadow:none;
}
html[data-build="5"] body[data-shared-scene="true"] .shared-board-folder>summary{
  padding:9px 0;
  font-size:18px;
  cursor:pointer;
}
html[data-build="5"] body[data-shared-scene="true"][data-screen="quests"] .shared-board-folder>summary{
  color:#ffe7b3;
  text-shadow:0 1px 3px #25140b;
}
html[data-build="5"] body[data-shared-scene="true"][data-screen="quests"] .quest-board-style-panel{
  width:100%;
  min-width:0;
  margin:0 0 14px;
  box-sizing:border-box;
}
html[data-build="5"] body[data-shared-scene="true"][data-screen="quests"] .quest-board-style-grid{
  grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr));
}
html[data-build="5"] body[data-shared-scene="true"][data-screen="quests"] .quest-scene-scroll .quest-actions{
  flex-wrap:wrap;
}
html[data-build="5"] body[data-shared-scene="true"][data-screen="quests"] .goal-card-actions{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}
html[data-build="5"] body[data-shared-scene="true"][data-screen="quests"] .goal-direct-value input{
  width:70px;
  max-width:100%;
}
@layer components{
  html[data-build="5"] body[data-shared-scene="true"][data-screen="quests"] .shared-scene-controls{
    color:#ffedc8!important;
    text-shadow:0 1px 3px #25140b!important;
  }
  html[data-build="5"] body[data-shared-scene="true"] .shared-scene-controls :is(h2,small){
    color:inherit!important;
  }
}


/* assets/ui/guild-navigation.css */
/* All sections share one illustrated family. Atlas positions follow its transparent gutters. */
html[data-build="5"] body :is(.nav-button,.mobile-tab)[data-nav-art]{
  --nav-art-image:url('/assets/ui/optimized/guild-unified-v2-31dc044b.webp');
  --nav-art-x:0%;
  --nav-art-y:0%;
  --nav-art-height:588.506%;
  --nav-text-left:23%;
  --nav-text-right:16%;
  --nav-text-y:55%;
}
html[data-build="5"] body :is(.nav-button,.mobile-tab)[data-nav-art="chats"]{
  --nav-art-x:100%;--nav-text-y:56.3%;
}
html[data-build="5"] body :is(.nav-button,.mobile-tab):is([data-nav-art="approvals"],[data-nav-art="games"]){
  --nav-art-y:20.233%;--nav-art-height:624.390%;--nav-text-y:49.1%;
}
html[data-build="5"] body :is(.nav-button,.mobile-tab)[data-nav-art="games"]{
  --nav-art-x:100%;--nav-text-y:51.5%;
}
html[data-build="5"] body :is(.nav-button,.mobile-tab):is([data-nav-art="quests"],[data-nav-art="shop"]){
  --nav-art-y:38.940%;--nav-art-height:656.410%;--nav-text-y:47.8%;
}
html[data-build="5"] body :is(.nav-button,.mobile-tab)[data-nav-art="shop"]{--nav-art-x:100%}
html[data-build="5"] body :is(.nav-button,.mobile-tab):is([data-nav-art="masters"],[data-nav-art="content"]){
  --nav-art-y:56.651%;--nav-art-height:673.684%;--nav-text-y:51.3%;
}
html[data-build="5"] body :is(.nav-button,.mobile-tab)[data-nav-art="content"]{--nav-art-x:100%}
html[data-build="5"] body :is(.nav-button,.mobile-tab):is([data-nav-art="audit"],[data-nav-art="characters"]){
  --nav-art-y:76%;--nav-art-height:588.506%;--nav-text-y:52.3%;
}
html[data-build="5"] body :is(.nav-button,.mobile-tab)[data-nav-art="characters"]{--nav-art-x:100%}
html[data-build="5"] body :is(.nav-button,.mobile-tab)[data-nav-art="workshop"]{
  --nav-art-y:97.619%;--nav-art-height:556.522%;--nav-text-y:47.8%;
}
html[data-build="5"] body :is(.nav-button,.mobile-tab)[data-nav-art]::before{
  background-image:var(--nav-art-image)!important;
  background-size:200% var(--nav-art-height)!important;
  background-position:var(--nav-art-x) var(--nav-art-y)!important;
  background-repeat:no-repeat!important;
  clip-path:none!important;
  filter:none!important;
}
html[data-build="5"] body :is(.nav-button,.mobile-tab)[data-nav-art]:is(:hover,:focus-visible,.active)::before{
  filter:brightness(1.04) drop-shadow(0 2px 2px #2b1b1142)!important;
}
html[data-build="5"] body #sideNav .nav-button[data-nav-art] .nav-label{
  left:var(--nav-text-left)!important;
  right:var(--nav-text-right)!important;
  top:var(--nav-text-y)!important;
}
html[data-build="5"] body:is([data-role="admin"],[data-role="master"]) #sideNav .nav-button .nav-label{
  font-size:clamp(22px,1.55vw,26px)!important;
  line-height:1.1!important;
  overflow-wrap:normal!important;
}
html[data-build="5"] body #mobileNav .mobile-tab[data-nav-art] .nav-label{
  width:61%!important;
  transform:translateX(4%)!important;
}


/* assets/ui/club-analytics.css */
/* Accurate, interactive ink charts on the club's illustrated parchment. */
html[data-build="5"] .club-analytics{
  --ca-green:#557554;--ca-red:#98455b;--ca-gold:#a98745;--ca-blue:#647b91;--ca-line:#b5986a;--ca-ink:#392b1f;
  display:flex!important;flex-direction:column!important;gap:14px!important;min-width:0!important;color:var(--ca-ink)!important;
  font-family:var(--club-user-font,'Neucha',cursive)!important;
}
html[data-build="5"] :is(.ca-heading,.ca-filters,.ca-card,.ca-kpi){
  min-width:0;color:#392b1f!important;background:#f6e6c4 url('/assets/ui/paper-grain.svg') center/cover!important;
  border:12px solid transparent!important;border-image:url('/assets/art/sheet-panel-v3.webp') 44 fill / 12px / 0 stretch!important;
  border-radius:0!important;box-shadow:0 9px 18px #27150b55!important;
}
html[data-build="5"] .ca-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 22px!important}
html[data-build="5"] .ca-heading h1{font-size:clamp(27px,2.6vw,38px)!important;line-height:1.15;margin:5px 0!important;color:#402d20!important}
html[data-build="5"] .ca-heading p{font-size:13px!important;margin:0!important;color:#765b3e!important}
.ca-eyebrow{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#6b7752}
.ca-shop-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
html[data-build="5"] .ca-shop-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}
.ca-shop-filters label{display:grid;gap:5px;min-width:0;font-size:14px}
html[data-build="5"] .ca-shop-filters :is(input,select){width:100%;min-width:0;min-height:38px;padding:6px 9px;font:inherit;font-size:14px;color:#422d1e;background:#fbefd5;border:1px solid #a78054;border-radius:5px}
.ca-shop-levels{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.ca-shop-filter-actions{display:flex;gap:8px;flex-wrap:wrap}
.ca-source{display:inline-block;border:1px solid #aa855366;border-radius:4px;padding:2px 5px;margin:2px;font-size:12px;background:#eadbbb}
.ca-source-purchase{background:#dfe6c9;color:#344c37}.ca-source-reward{background:#e9dded;color:#66406c}.ca-source-legacy{background:#e9dfce;color:#705c44}
.ca-shop-pagination{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:12px;flex-wrap:wrap}
html[data-build="5"] .ca-balance-group{margin:9px 0;border:1px solid #a7805488;border-radius:7px;background:#e7c99522}
html[data-build="5"] .ca-balance-group>summary{display:grid;grid-template-columns:minmax(130px,1.5fr) repeat(3,minmax(90px,1fr));gap:12px;align-items:center;padding:12px 15px;cursor:pointer;color:#4c3523}
.ca-balance-group>summary strong:before,.ca-balance-subgroup>summary strong:before{content:'▸';display:inline-block;margin-right:9px;color:#725733}
.ca-balance-group[open]>summary strong:before,.ca-balance-subgroup[open]>summary strong:before{content:'▾'}
.ca-balance-group>summary span{display:grid;gap:4px}.ca-balance-group>summary small{font-size:12px;color:#795d3c}.ca-balance-group>summary b{font-size:19px;font-weight:600}
.ca-balance-group-body{padding:0 14px 14px;border-top:1px solid #a7805433}
html[data-build="5"] .ca-balance-subgroup{margin:8px 0;background:#f8ecd122;border:1px solid #a7805455;border-radius:5px;padding:0 12px 10px;min-width:0}
.ca-balance-subgroup>summary{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0;cursor:pointer;color:#4c3523;font-size:14px}
.ca-balance-subgroup:not([open]){padding-bottom:0}
@media(max-width:700px){html[data-build="5"] .ca-balance-group>summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:12px}.ca-balance-group>summary strong{grid-column:1/-1}.ca-balance-group>summary small{font-size:11px}.ca-balance-group-body{padding:0 8px 8px}}
@media(max-width:1000px){html[data-build="5"] .ca-shop-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){html[data-build="5"] .ca-shop-filters{grid-template-columns:minmax(0,1fr)}.ca-shop-tabs>.ca-button{flex:1}.ca-shop-pagination span{width:100%}}
.ca-heading-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
html[data-build="5"] .ca-button{
  display:inline-flex!important;align-items:center;justify-content:center;gap:5px;min-height:36px!important;
  padding:7px 12px!important;border:1px solid #977044!important;border-radius:6px!important;
  font:inherit;font-size:14px!important;line-height:1.2!important;color:#422d1e!important;
  background:#f0ddb5 url('/assets/ui/paper-grain.svg') center/cover!important;
  box-shadow:inset 0 1px #fff7e1,0 3px 5px #3a201a33!important;cursor:pointer;
}
html[data-build="5"] .ca-button:hover{filter:brightness(1.04);border-color:#52764e!important}
html[data-build="5"] .ca-button.active{background-color:#d9e1c1!important;border-color:#648056!important;box-shadow:inset 0 -3px #648056!important}
html[data-build="5"] .ca-button:disabled{opacity:.55;cursor:default;filter:none}
html[data-build="5"] .ca-text-button{background:transparent!important;border:0!important;box-shadow:none!important;padding:2px 0!important;justify-content:flex-start!important;text-align:left!important;color:#416249!important;text-decoration:underline;text-decoration-color:#67806177;text-underline-offset:4px}
html[data-build="5"] .club-analytics :focus-visible,.ca-dialog-content :focus-visible{outline:3px solid #537650;outline-offset:3px}
html[data-build="5"] .ca-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:12px 18px!important}
.ca-filters label{display:grid;gap:4px;flex:1 1 130px;min-width:0;font-size:13px}
.ca-filters :is(input,select){min-height:38px;width:100%;min-width:0;padding:6px 9px;font:inherit;font-size:14px}
.ca-filters .ca-check{display:flex;align-items:center;gap:7px;flex:1 1 210px;min-height:38px;line-height:1.2}
.ca-check input{width:17px;height:17px;min-height:17px;flex:none;accent-color:#60845a}
.ca-period{display:flex;flex-wrap:wrap;gap:8px 22px;padding:4px 9px;color:#ffefca;text-shadow:0 2px 4px #20130b;font-size:13px}
.ca-period b{font-weight:400;color:#ffe4a0}
html[data-build="5"] .ca-tabs{display:flex;gap:7px;flex-wrap:wrap;padding:0 2px;min-width:0}
.ca-tabs .ca-button{flex:1 1 auto;min-height:43px!important;font-size:14px!important;border-width:2px!important}
html[data-build="5"] .ca-content{display:flex;flex-direction:column;gap:16px;min-width:0}
.ca-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}
html[data-build="5"] .ca-card{padding:18px 22px!important;overflow:visible}
.ca-card>header{display:flex;justify-content:space-between;align-items:start;gap:10px;margin-bottom:18px;padding-bottom:11px;border-bottom:1px solid #a98b5855}
html[data-build="5"] .ca-card h2{margin:0!important;font-size:clamp(22px,1.5rem,28px)!important;line-height:1.2!important;color:#40301f!important}
.ca-card>header p{margin:6px 0 0!important;font-size:14px!important;line-height:1.35!important;color:#765b3d!important;max-width:960px}
.ca-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
html[data-build="5"] .ca-kpi{display:flex!important;flex-direction:column!important;align-items:start!important;justify-content:start!important;gap:7px;padding:15px 18px!important;min-height:155px!important;text-align:left!important;cursor:pointer}
.ca-kpi>span{font-size:15px!important;line-height:1.2!important;color:#684d34!important}
.ca-kpi>strong{font-size:clamp(27px,2.5vw,38px)!important;font-weight:400;line-height:1.1!important;color:#44311f!important;overflow-wrap:anywhere}
.ca-kpi>small{font-size:12px!important;line-height:1.35!important;color:#705b40!important}
.ca-kpi .ca-delta{margin-top:auto!important;color:#665a43!important}
.ca-kpi .ca-delta span{display:block;opacity:.85;font-size:11px!important}
.ca-kpi .ca-delta.up{color:#456e49!important}.ca-kpi .ca-delta.down{color:#944653!important}
.ca-note{font-size:14px!important;line-height:1.45!important;color:#72583c!important;margin:12px 0!important}
html[data-build="5"] :is(.club-analytics>.ca-note,.ca-content>.ca-note){padding:12px 16px!important;margin:0!important;background:#f6e6c4 url('/assets/ui/paper-grain.svg') center/cover!important;border:1px solid #a58859;border-radius:5px}
.ca-empty{display:grid;place-items:center;min-height:140px;padding:22px;text-align:center;border:1px dashed #b5986a;color:#765b3f;font-size:15px}
.ca-alert{padding:14px 18px;border:2px solid #a66a4b;border-radius:7px;background:#f3d6ab;color:#60361f;font-size:14px;line-height:1.4}
.ca-alert .ca-button{margin-left:10px}
.ca-chart{margin:0;min-width:0}
.ca-chart svg{display:block;width:100%;height:auto;max-height:360px;overflow:visible;background:transparent}
.ca-chart svg text{font-family:var(--club-user-font,'Neucha',cursive);font-size:13px;fill:#705b3d}
.ca-chart figcaption{font-size:12px;color:#7b6244;margin-top:8px;line-height:1.4}
.ca-gridline{fill:none;stroke:#bba57b;stroke-width:1;stroke-dasharray:3 6;opacity:.5}
.ca-ink-line{fill:none;stroke:#527552;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(.5px .6px .2px #51735066)}
.ca-target-line{fill:none;stroke:#9d5360;stroke-width:1.3;stroke-dasharray:5 6}
.ca-point{fill:#6a8559;stroke:#fff0ce;stroke-width:1.5}
.ca-point-hit{fill:transparent;stroke:none}
.ca-chart [role="button"]{cursor:pointer;outline:none}
.ca-chart [role="button"]:is(:hover,:focus-visible) .ca-point{r:6;fill:#ae7143}
.ca-chart [role="button"]:focus-visible circle{stroke:#2b5736;stroke-width:3}
.ca-chart-controls{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:13px}
.ca-chart-controls .ca-button{font-size:12px!important;min-height:32px!important}
.ca-bars{display:flex;flex-direction:column;gap:16px}
html[data-build="5"] .ca-bar-row{display:block;width:100%;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#453021!important;text-align:left!important;font:inherit}
button.ca-bar-row{cursor:pointer}
.ca-bar-row>div:first-child{display:flex;justify-content:space-between;gap:10px;align-items:end;font-size:15px;margin-bottom:5px}
.ca-bar-row b{font-size:17px;font-weight:400;white-space:nowrap}.ca-bar-row small{font-size:12px;color:#755d3f;display:block;margin-top:4px}
.ca-bar-track{height:13px;border:1px solid #b69a6c;border-radius:4px;background:#d9c49b77;overflow:hidden;transform:rotate(-.15deg)}
.ca-bar-track i{display:block;height:100%;background:var(--ca-series,#557554);border:1px solid #352b1533;border-radius:2px;box-shadow:inset 0 2px 0 #f8e8c322}
.ca-donut{display:grid;grid-template-columns:minmax(125px,40%) minmax(0,1fr);gap:20px;align-items:center;margin:0;padding:8px 0}
.ca-donut svg{width:100%;max-width:215px;margin:auto;overflow:visible}
.ca-donut svg text{fill:#6d553b;font-size:11px;font-family:var(--club-user-font,'Neucha',cursive)}
.ca-donut svg .ca-donut-total{font-size:27px;fill:#443021}
.ca-donut figcaption{display:grid;gap:11px;font-size:14px}
.ca-donut figcaption>div{display:grid;grid-template-columns:10px minmax(0,1fr) auto auto;gap:8px;align-items:center}
.ca-donut figcaption i{width:10px;height:10px;border-radius:2px;background:var(--ca-series);transform:rotate(-6deg)}
.ca-donut figcaption small{font-size:11px;color:#7c6244}.ca-donut figcaption b{font-weight:400}
.ca-issues{display:flex;flex-direction:column;gap:10px}
.ca-issue{display:grid;grid-template-columns:37px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px dashed #b59464}
.ca-issue:last-child{border-bottom:0}.ca-issue h3{font-size:17px;margin:0 0 4px!important;color:#513722!important}.ca-issue p{font-size:14px;line-height:1.35;margin:0 0 4px!important}.ca-issue small{font-size:13px;line-height:1.4;color:#755c3f;display:block}
.ca-seal{display:grid;place-items:center;align-self:start;width:32px;height:32px;border:2px solid #ae7651;border-radius:50%;background:#e2bc73;color:#614422;font-size:22px;transform:rotate(-7deg)}
.ca-issue.critical .ca-seal{background:#be766f;border-color:#884349;color:#fff0db}.ca-issue.info .ca-seal{background:#b6c5a1;border-color:#6a835d;color:#3c543b}
.ca-table-scroll{width:100%;max-width:100%;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#a28150 transparent}
.ca-table{width:100%;border-collapse:collapse;min-width:660px;text-align:left;font-size:14px;line-height:1.35}
.ca-table :is(th,td){padding:12px 11px;border-bottom:1px solid #bb9d6a66;vertical-align:top;min-width:0}
.ca-table th{font-size:13px;font-weight:400;color:#496748;border-bottom:2px solid #ab8b58;background:#e9d5ad55}
.ca-table tr:nth-child(even) td{background:transparent}
.ca-table td small{display:block;margin-top:4px;font-size:12px;color:#795f43;line-height:1.4}
.ca-table td p{margin:0;line-height:1.4}.ca-table .ca-button{min-height:26px!important;font-size:14px!important;max-width:240px}
.ca-table-empty{text-align:center;padding:32px!important;color:#816443}
.ca-tag{display:inline-block;padding:3px 7px;border:1px solid #af986b;border-radius:4px;background:#ead7b2;font-size:12px;white-space:normal}
.ca-tag.good{background:#dce4c9;border-color:#7d946b;color:#466445}.ca-tag.bad{background:#e7bdb0;border-color:#ad786c;color:#853e44}
.ca-heatmap{width:100%;min-width:600px;border-collapse:separate;border-spacing:6px;text-align:center}
.ca-heatmap caption{text-align:left;color:#775c3b;font-size:13px;margin-bottom:10px}
.ca-heatmap th{font-size:14px;font-weight:400;color:#556b4b}
.ca-heatmap td{width:12%;height:60px;background:#e7d7b555;border-radius:5px}
html[data-build="5"] .ca-heatmap button{display:grid;gap:4px;place-content:center;width:100%;height:100%;min-height:60px;border:1px solid #78926866!important;border-radius:5px!important;color:#365132!important;background:rgba(100,135,88,var(--ca-heat))!important;box-shadow:none!important;font:inherit;cursor:pointer}
.ca-heatmap b{font-size:19px;font-weight:400;color:#32291a;text-shadow:0 1px #f5e6bd88}.ca-heatmap small{font-size:11px;color:#392f1c}
.ca-cohort-cell{display:grid;gap:4px;padding:7px;border-radius:4px;background:rgba(100,135,88,var(--ca-heat));color:#382b1c;text-shadow:0 1px #f9ecd388}
.ca-cohort-cell small{color:#443626!important}.ca-muted{font-size:12px;color:#887559}
.ca-inline-kpis{display:flex;gap:22px;flex-wrap:wrap;justify-content:space-around;margin:18px 0}
.ca-inline-kpis>div{display:grid;gap:7px;flex:1 1 130px;text-align:center}
.ca-inline-kpis b{font-size:30px;font-weight:400;color:#4b6547}.ca-inline-kpis span{font-size:14px;line-height:1.3}.ca-inline-kpis small{font-size:12px;color:#7b6547}
.ca-large-number{font-size:65px;text-align:center;color:#5e724d;padding:13px}
.ca-segment-controls{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-bottom:15px}
.ca-segment-controls :is(input,select){flex:1 1 160px;min-width:0;min-height:38px;padding:7px;font:inherit;font-size:14px}
.ca-pager{display:flex;gap:8px;align-items:center;justify-content:flex-end;padding-top:14px;font-size:13px;color:#79603e}.ca-pager>span{margin-right:auto}
.ca-expense-form{display:grid;grid-template-columns:130px minmax(140px,1fr) 130px minmax(170px,2fr) auto;gap:9px;align-items:end;margin-bottom:18px;padding-bottom:18px;border-bottom:1px dashed #a38961}
.ca-expense-form label,.ca-target-form label{display:grid;gap:5px;font-size:13px;min-width:0}
.ca-expense-form [data-ca-form-error]{grid-column:1/-1;color:#8c3443}.ca-expense-form [data-ca-form-error]:empty{display:none}
.ca-expense-form :is(input,select),.ca-target-form input{width:100%;min-width:0;min-height:38px;padding:7px;font:inherit;font-size:14px}
.ca-comment{white-space:pre-wrap;overflow-wrap:anywhere;max-width:650px;font-size:14px}
.ca-glossary{display:flex;flex-direction:column;gap:5px}.ca-glossary details{padding:12px 0;border-bottom:1px solid #bc9d6366}.ca-glossary summary{cursor:pointer;font-size:17px;color:#4c6244}.ca-glossary p{font-size:14px;line-height:1.5;color:#755c3e;max-width:1050px}
.ca-method-list{padding-left:20px;font-size:15px;line-height:1.55}.ca-method-list li{margin-bottom:12px}
.ca-dialog-content{color:#443222;max-width:100%;min-width:0}.ca-dialog-content .ca-table-scroll{max-height:55dvh;overflow:auto}.ca-dialog-content .ca-table{min-width:620px}.ca-dialog-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:17px}
.ca-target-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.ca-target-form .ca-dialog-actions,.ca-target-form [data-ca-form-error]{grid-column:1/-1}
.ca-tooltip{position:fixed;z-index:10000;pointer-events:none;max-width:270px;padding:8px 12px;border:1px solid #a88753;border-radius:5px;background:#fbebc8;box-shadow:0 4px 14px #271a1255;color:#493523;font-size:13px;line-height:1.3}
.ca-tooltip[hidden]{display:none}
@media(min-width:1650px){.ca-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1150px){.ca-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ca-expense-form{grid-template-columns:repeat(2,minmax(0,1fr))}.ca-expense-form label:nth-child(4){grid-column:1/-1}.ca-heading{align-items:start!important}.ca-heading-actions{max-width:240px}}
@media(max-width:950px){.ca-grid{grid-template-columns:minmax(0,1fr)}.ca-donut{grid-template-columns:minmax(130px,35%) minmax(0,1fr)}.ca-issue{grid-template-columns:32px minmax(0,1fr)}.ca-issue>.ca-button{grid-column:2;justify-self:start}.ca-issue h3{font-size:17px}.ca-heading{flex-direction:column!important}.ca-heading-actions{max-width:none;justify-content:start}.ca-chart svg{min-width:0}.ca-tabs{flex-wrap:nowrap!important;overflow-x:auto;padding-bottom:6px!important}.ca-tabs .ca-button{flex:none;min-width:130px}}
@media(max-width:540px){html[data-build="5"] .ca-card{padding:12px!important}html[data-build="5"] .ca-heading{padding:12px!important}html[data-build="5"] .ca-kpi{padding:12px!important;min-height:150px!important}.ca-kpi>strong{font-size:26px!important}.ca-kpi>span{font-size:13px!important}.ca-kpis{gap:8px}.ca-filters{padding:10px!important;gap:8px!important}.ca-filters label{flex-basis:130px}.ca-period{font-size:11px;gap:5px}.ca-heading h1{font-size:26px!important}.ca-heading-actions .ca-button{font-size:12px!important}.ca-chart svg{min-height:170px}.ca-donut{gap:10px;grid-template-columns:125px minmax(0,1fr)}.ca-donut figcaption{font-size:12px}.ca-donut figcaption>div{grid-template-columns:8px minmax(0,1fr) auto;gap:5px}.ca-donut figcaption small{grid-column:2/-1}.ca-chart-controls .ca-button{flex:1 1 40%}.ca-target-form{grid-template-columns:1fr}.ca-table-scroll{margin:0}.ca-expense-form{grid-template-columns:1fr}.ca-expense-form label:nth-child(4){grid-column:auto}.ca-pager>span{font-size:11px}.ca-card>header p{font-size:13px!important}.ca-card h2{font-size:22px!important}}
@media(prefers-reduced-motion:reduce){.club-analytics *{transition:none!important}}

/* Keep dense analytical annotations readable at the shell's default text scale. */
html[data-build="5"] .ca-period{padding:9px 16px;background:#f2e1bb url('/assets/ui/paper-grain.svg') center/cover;border:1px solid #a58859;border-radius:5px;font-size:17px!important;color:#62472d!important;text-shadow:none!important}
html[data-build="5"] .ca-period :is(span,b){color:#62472d!important}
html[data-build="5"] .ca-button{font-size:18px!important}
html[data-build="5"] .ca-heading p,.ca-eyebrow{font-size:16px!important}
html[data-build="5"] .ca-filters label{font-size:17px!important}
html[data-build="5"] .ca-filters :is(input,select){font-size:18px!important}
html[data-build="5"] .ca-tabs .ca-button{font-size:18px!important}
html[data-build="5"] .ca-kpi>span{font-size:20px!important}
html[data-build="5"] .ca-kpi>strong{font-size:clamp(34px,2.8vw,42px)!important}
html[data-build="5"] .ca-kpi>small{font-size:16px!important}
html[data-build="5"] .ca-kpi .ca-delta span{font-size:15px!important}
html[data-build="5"] .ca-card>header p{font-size:18px!important}
html[data-build="5"] .ca-card h2{font-size:30px!important}
html[data-build="5"] :is(.ca-note,.ca-empty,.ca-alert,.ca-issue p,.ca-glossary p,.ca-method-list,.ca-comment){font-size:18px!important}
html[data-build="5"] .ca-issue h3{font-size:23px!important}
html[data-build="5"] .ca-issue small{font-size:17px!important}
html[data-build="5"] .ca-chart-controls .ca-button{font-size:16px!important}
html[data-build="5"] .ca-chart svg text{font-size:17px!important}
html[data-build="5"] .ca-chart figcaption{font-size:16px!important}
html[data-build="5"] :is(.ca-table,.ca-heatmap){background:transparent!important;color:#44321f!important}
/* Reveal the continuous illustrated parchment instead of the global cell fill. */
html[data-build="5"] :is(.club-analytics,.ca-dialog-content) .ca-table :is(tbody,tr,td){background:transparent!important}
html[data-build="5"] :is(.club-analytics,.ca-dialog-content) .ca-table-scroll{background:transparent!important}
html[data-build="5"] .ca-table{font-size:18px!important}
html[data-build="5"] .ca-table th{font-size:17px!important;background:#e5d0a666!important}
html[data-build="5"] .ca-table td small{font-size:16px!important}
html[data-build="5"] .ca-table .ca-button{font-size:18px!important}
html[data-build="5"] .ca-donut figcaption{font-size:18px!important}
html[data-build="5"] .ca-donut figcaption small,.ca-bar-row small{font-size:15px!important}
html[data-build="5"] .ca-bar-row>div:first-child{font-size:19px!important}
html[data-build="5"] .ca-bar-row b{font-size:22px!important}
html[data-build="5"] .ca-inline-kpis :is(span,small){font-size:17px!important}
html[data-build="5"] .ca-heatmap :is(th,caption){font-size:18px!important}
html[data-build="5"] .ca-heatmap small{font-size:15px!important}
html[data-build="5"] .ca-segment-controls :is(input,select){font-size:18px!important}
html[data-build="5"] .ca-pager{font-size:17px!important}
html[data-build="5"] :is(.ca-expense-form,.ca-target-form) label{font-size:18px!important}
html[data-build="5"] :is(.ca-expense-form,.ca-target-form) :is(input,select){font-size:18px!important}
html[data-build="5"] .ca-tooltip{font-size:17px!important}
.ca-scatter-legend{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}.ca-scatter-legend i{width:10px;height:10px;background:var(--ca-series);border:1px solid #715b3d;border-radius:50%;flex:none}
html[data-build="5"] .ca-mobile-filter-toggle{display:none!important}
@media(max-width:540px){html[data-build="5"] .ca-mobile-filter-toggle{display:inline-flex!important}html[data-build="5"] .ca-filter-wrap:not(.expanded){display:none!important}}
@media(max-width:540px){html[data-build="5"] .ca-kpi>strong{font-size:34px!important}html[data-build="5"] .ca-kpi>span{font-size:18px!important}html[data-build="5"] .ca-card h2{font-size:28px!important}.ca-chart{overflow-x:auto;scrollbar-width:thin}.ca-chart svg{min-width:740px!important;max-height:none}.ca-heading-actions .ca-button{font-size:17px!important}.ca-donut{grid-template-columns:110px minmax(0,1fr)}.ca-donut figcaption{font-size:17px!important}.ca-period{gap:6px;font-size:16px!important}}


/* assets/ui/birthdays.css */
.birthday-page{color:#35271d}.birthday-page header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px}.birthday-page header p{flex-basis:100%;margin:0}.birthday-months{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:14px}.birthday-month{padding:14px;border:1px solid #bfa77e;border-radius:10px;background:#f5ead0;margin-bottom:14px;align-self:start}.birthday-month>summary{display:flex;justify-content:space-between;gap:10px;cursor:pointer;font-size:20px;color:#4a3424}.birthday-month>summary span{font-size:15px;background:#e2d0aa;padding:3px 10px;border-radius:15px}.birthday-person{display:flex;gap:12px;align-items:flex-start;padding:16px 0;border-top:1px solid #d4c19e;margin-top:10px;flex-wrap:wrap}.birthday-day{font-size:27px;background:#dfc89d;min-width:44px;text-align:center;padding:8px 5px;border-radius:8px}.birthday-copy{display:grid;gap:5px;flex:1;min-width:150px}.birthday-copy strong{font-size:18px}.birthday-copy small{color:#705b46}.birthday-soon{font-size:12px;color:#755120;background:#efdc9e;padding:5px;border-radius:5px}.birthday-edit{flex-basis:100%;font-size:14px}.birthday-edit form{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-top:12px}.birthday-edit label{display:grid;gap:5px}.birthday-edit [role=status]{color:#943c2c}.birthday-highlight{outline:3px solid #ae7e2b;outline-offset:5px;border-radius:6px}.birthday-empty{font-size:14px;color:#77614a}


/* assets/ui/guest-hero-entry.css */
.guest-hero-modal{width:min(680px,calc(100vw - 32px));max-height:85vh;overflow:auto;padding:24px;background:#f2e6c8;color:#34261b;border:3px solid #9b784d;border-radius:14px;box-shadow:0 15px 65px #0008}.guest-hero-modal::backdrop{background:#19121cd9}.guest-hero-modal form,.guest-hero-modal section{display:grid;gap:14px}.guest-hero-modal label{display:grid;gap:5px}.guest-hero-modal input,.guest-hero-modal select{width:100%;box-sizing:border-box;min-height:42px;padding:8px;color:#30251c;background:#fff8e8;border:1px solid #b89a6c;border-radius:6px}.guest-hero-modal button{min-height:42px;padding:8px 16px;border:1px solid #9c7545;border-radius:6px;background:#65432e;color:#fff4d5;cursor:pointer}.guest-hero-modal button:disabled{opacity:.5;cursor:wait}.guest-hero-modal .guest-hero-close{float:right;background:transparent;color:#4b3321;font-size:25px;padding:0 12px}.guest-hero-modal p{line-height:1.5}.guest-hero-modal [role=status]{padding:10px;background:#e8d7ae}[data-guest-hero-choice]{display:grid;gap:10px;margin:14px 0;padding:14px;border:1px solid #c3a779;border-radius:8px}


/* assets/ui/finance-ledger.css */
/* The private cash ledger uses the club's existing parchment cards. */
.ca-financial-kpis { margin:0; }
.finance-pl-scroll { max-width:100%; overflow:auto; }
.finance-pl-table { font-variant-numeric:tabular-nums; }
.finance-pl-table th:first-child { text-align:left; min-width:200px; }
.finance-pl-table td,.finance-pl-table thead th:not(:first-child) { text-align:right; white-space:nowrap; }
.finance-pl-table .finance-pl-group th { padding-top:18px; font-weight:700; }
.finance-pl-table .finance-pl-article th { padding-left:28px; font-weight:400; }
.finance-pl-total { background:#a7805418; font-weight:700; }
.finance-pl-result { border-top:2px solid #a78054; background:#55755420; }
.finance-ledger,.finance-taxonomy,.finance-dialog { min-width:0; max-width:100%; overflow-wrap:anywhere; }
.finance-actions,.finance-row-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.finance-actions { margin:12px 0; }
.finance-totals { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0; }
.finance-totals>div { display:grid; align-content:start; gap:5px; border-bottom:1px solid #a7805477; padding:8px 0; }
.finance-totals strong { font-size:24px; color:#443222; font-variant-numeric:tabular-nums; }
.finance-table-scroll { max-width:100%; }
.finance-table { width:100%; }
.finance-table th,.finance-table td { overflow-wrap:anywhere; }
.finance-table .finance-money { white-space:nowrap; font-variant-numeric:tabular-nums; }
.finance-table small { display:block; margin-top:5px; }
.finance-table .finance-note { white-space:pre-wrap; min-width:110px; max-width:300px; }
.finance-taxonomy-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.finance-taxonomy-grid>div { min-width:0; }
.finance-group { border:1px solid #a7805477; padding:12px; margin:12px 0; }
.finance-group-head { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; }
.finance-group small { display:block; color:#765b3e; }
.finance-group ul { padding:0; list-style:none; margin:12px 0 0; }
.finance-group li { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:10px 0; border-top:1px solid #a7805433; }
.finance-group .ca-button { font-size:15px!important; }
.finance-form { border:0; margin:0; padding:0; min-width:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.finance-form label { display:grid; align-content:start; gap:6px; min-width:0; }
.finance-form :is(input,select,textarea) { width:100%; min-width:0; max-width:100%; box-sizing:border-box; min-height:44px; padding:8px 10px; font:inherit; color:#422d1e; background:#fbefd5; border:1px solid #a78054; border-radius:5px; }
.finance-form textarea { resize:vertical; }
.finance-form :is(input,select,textarea):focus-visible,.finance-dialog button:focus-visible { outline:3px solid #557554; outline-offset:2px; }
.finance-form:disabled { opacity:.75; }
.finance-full { grid-column:1/-1; }
.finance-error { color:#8a263d; white-space:pre-wrap; margin:12px 0; }
.finance-error:empty { display:none; }
.finance-dialog .dialog-head { display:flex; align-items:start; justify-content:space-between; gap:12px; }
.finance-dialog .dialog-head h2 { margin:0 0 18px; }
.finance-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:760px) {
  .finance-taxonomy-grid { grid-template-columns:minmax(0,1fr); gap:8px; }
  .finance-totals { grid-template-columns:minmax(0,1fr); gap:4px; }
  .finance-totals>div { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
  .finance-totals strong { font-size:22px; }
  .finance-table-scroll { overflow:visible; }
  html[data-build="5"] .finance-table { min-width:0!important; display:block; }
  .finance-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
  .finance-table tbody { display:block; }
  .finance-table tr { display:block; border:1px solid #a7805477; padding:10px; margin:12px 0; }
  .finance-table td { display:block; padding:5px 0!important; width:auto!important; min-width:0!important; max-width:none!important; border:0!important; text-align:left; }
  .finance-table td[data-label]::before { display:block; font-size:14px; color:#765b3e; content:attr(data-label); }
  .finance-table td.finance-money { white-space:normal; }
  .finance-table .finance-note { min-width:0; max-width:none; }
  .finance-table .finance-row-actions { margin-top:4px; }
}
@media(max-width:480px) {
  .finance-form { grid-template-columns:minmax(0,1fr); }
  .finance-dialog .ca-dialog-actions .ca-button { max-width:100%; white-space:normal; }
  .finance-dialog h2 { font-size:26px; }
  .finance-actions>.ca-button { flex:1 1 auto; }
}
.finance-operations table small{display:block;color:var(--muted,#a99d89);font-size:.8em}.finance-operations-dialog form{display:grid;gap:14px}.finance-operations-dialog label{display:grid;gap:6px}.finance-operations-dialog input,.finance-operations-dialog select{width:100%;min-height:42px;padding:9px;border:1px solid #9b825c66;border-radius:7px;background:#171410;color:#eee5d3}.finance-operations-dialog .finance-confirm{display:flex;align-items:center;gap:9px}.finance-operations-dialog .finance-confirm input{width:18px;min-height:18px}.finance-operations-dialog [role=alert]{color:#ffd1b3}.finance-operations h3{margin-top:30px}


/* assets/ui/game-credit.css */
.game-credit-label { font-variant-numeric:tabular-nums; }
.slot-template-editor .template-slot-table { max-width:100%; overflow-x:auto; margin:16px 0; }
.slot-template-editor .template-slot-head,.slot-template-editor .template-slot-row { display:grid; grid-template-columns:60px 100px 100px minmax(130px,1fr)60px 84px minmax(130px,1fr)36px; gap:8px; min-width:860px; align-items:center; padding:8px 0; border-bottom:1px solid #a7805444; }
.slot-template-editor .template-slot-head { color:#6d5035; font-size:14px; }
.slot-template-editor .template-slot-row :is(input,select) { width:100%; min-width:0; box-sizing:border-box; min-height:40px; padding:5px; font:inherit; }
.slot-template-editor>header { display:flex; flex-wrap:wrap; gap:12px; align-items:end; justify-content:space-between; }
.slot-template-editor>header>label { display:grid; gap:6px; }
.slot-template-editor>footer { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; }


/* assets/ui/master-analytics.css */
/* The master's log uses the same parchment surfaces and ink charts as the club dashboard. */
.master-analytics .ma-list-controls{display:grid;grid-template-columns:minmax(170px,1fr) minmax(0,2fr);gap:12px;align-items:end;margin-bottom:18px}
:is(.master-analytics,.ma-game-detail) .ma-review-controls{grid-template-columns:minmax(0,2fr) repeat(3,minmax(140px,1fr))}
.master-analytics .ma-list-controls label{display:grid;gap:5px;min-width:0;font-size:14px;color:#684d34}
html[data-build="5"] .master-analytics .ma-list-controls :is(input,select){width:100%;min-width:0;min-height:40px;padding:7px 10px;font:inherit;font-size:16px;color:#422d1e;background:#f5e5c3 url('/assets/ui/paper-grain.svg') center/cover;border:1px solid #ad895a;border-radius:5px}
:is(.master-analytics,.ma-game-detail) .ma-reviews{display:grid;gap:18px;min-width:0}
html[data-build="5"] :is(.master-analytics,.ma-game-detail) .ma-review{min-width:0;margin:0;padding:14px 4px;border:0;border-top:1px dashed #af895a;background:transparent;box-shadow:none}
:is(.master-analytics,.ma-game-detail) .ma-review:first-child{border-top:0}
:is(.master-analytics,.ma-game-detail) .ma-review header{display:flex;align-items:start;justify-content:space-between;gap:12px}
:is(.master-analytics,.ma-game-detail) .ma-review header>div{display:grid;gap:5px;min-width:0}
html[data-build="5"] :is(.master-analytics,.ma-game-detail) .ma-review strong{font-size:20px;color:#4b3322}
:is(.master-analytics,.ma-game-detail) .ma-review small{font-size:14px;color:#775b3b;overflow-wrap:anywhere}
:is(.master-analytics,.ma-game-detail) .ma-review-scores{display:flex;flex-wrap:wrap;gap:7px 18px;margin:12px 0;font-size:15px;color:#725a3d}
:is(.master-analytics,.ma-game-detail) .ma-review-scores b{margin-left:5px;color:#496c49}
:is(.master-analytics,.ma-game-detail) .ma-review-scores .is-low b{color:#98455b}
html[data-build="5"] :is(.master-analytics,.ma-game-detail) .ma-review p{margin:9px 0 0;font-size:18px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;color:#4b3322}
.master-analytics .ma-method summary{padding:8px 0;color:#526848;font-size:18px;cursor:pointer}
.master-analytics .ca-table td small{display:block;margin-top:5px;color:#765b3d;font-size:12px}
.master-analytics .ca-note{line-height:1.5}
.master-analytics .ca-chart svg text{font-size:16px}
.master-analytics .ca-donut figcaption{font-size:16px}
.master-analytics .ca-donut svg text:not(.ca-donut-total){font-size:13px}
@media(min-width:1220px){.master-analytics .ma-rating-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1220px){.master-analytics .ca-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:1100px){:is(.master-analytics,.ma-game-detail) .ma-review-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.master-analytics .ma-list-controls{grid-template-columns:minmax(0,1fr)}:is(.master-analytics,.ma-game-detail) .ma-review header{flex-wrap:wrap}:is(.master-analytics,.ma-game-detail) .ma-review header>.ca-button{min-height:32px!important}:is(.master-analytics,.ma-game-detail) .ma-review-scores{display:grid;gap:6px}}


/* assets/ui/master-profile.css */
.master-profile-link{max-width:100%;padding:0;border:0;background:transparent;white-space:normal;text-align:left;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.master-profile-link:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:3px}
.dialog.master-profile-dialog{width:min(760px,calc(100vw - 24px))}
.master-public-profile{display:grid;grid-template-columns:minmax(130px,210px) minmax(0,1fr);gap:24px;align-items:start;margin:20px 0}
.master-public-profile .master-public-photo{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;object-position:center;border-radius:12px;border:1px solid #9b77494d;background:#d8c7a4}
.master-public-about{min-width:0}
.master-public-about h3{margin:0 0 12px}
.master-public-description{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;margin:0}
.master-public-description.empty{opacity:.7}
.master-profile-editor{display:grid;gap:16px;padding:18px;border:1px solid #9b774966;border-radius:12px;background:#f8f0dc55;min-width:0}
.master-profile-editor header h3{margin:0 0 6px}
.master-profile-editor header p{margin:0;line-height:1.5;opacity:.8}
.master-profile-editor label{display:grid;gap:7px;min-width:0}
.master-profile-editor textarea{width:100%;min-height:150px;resize:vertical;box-sizing:border-box}
.master-profile-editor .master-photo-field{min-width:0;flex-wrap:wrap}
.master-profile-editor input[type=file]{max-width:100%;min-width:0}
.master-directory-card .master-profile-link{font:inherit;font-weight:700}
@media(max-width:540px){
  .master-public-profile{grid-template-columns:1fr;gap:20px}
  .master-public-profile .master-public-photo{width:min(100%,240px);justify-self:center;aspect-ratio:1/1}
  .master-profile-editor{padding:12px}
  .master-profile-link{min-height:36px}
}


/* assets/ui/game-catalog-ui.css */
.gc-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;color:#fff0cf;text-shadow:0 2px 3px #29190e}
.game-catalog-screen .gc-heading h1,.game-catalog-screen .gc-heading p,.game-catalog-screen .gc-counters{color:#fff0cf!important}.gc-heading{padding:14px 18px;background:#342216e8;border:1px solid #a77c40;border-radius:8px}.game-catalog-screen .gc-counters b{color:#fff0cf!important}.gc-editor .gc-availability{padding:8px 0}.gc-editor details>p{color:#513922}
.gc-heading h1{margin:0;font-size:28px}.gc-heading p{margin:5px 0;font-size:16px}.gc-actions,.gc-categories,.gc-counters{display:flex;flex-wrap:wrap;gap:8px}
.gc-counters{color:#ffedc8;font-size:18px}.gc-counters span{padding:5px 10px;background:#382116c4;border:1px solid #bc9457;border-radius:5px}.gc-policy{margin:0;padding:12px 16px;color:#4a321f;background:#f1dfb8 url('/assets/ui/paper-grain.svg');border:1px solid #a57842;line-height:1.45;font-size:16px}
.gc-categories button[aria-current="true"]{outline:2px solid #d6aa65;outline-offset:1px}.gc-categories small{margin-left:5px;opacity:.75}.gc-filters{display:flex!important;align-items:end;flex-wrap:wrap}.gc-filters label:first-child{flex:1;min-width:190px}.gc-filters label{display:grid;gap:5px}.gc-ledger>header,.gc-pager{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.gc-list{display:grid;gap:0}.gc-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,auto) auto;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid #b99460}.gc-row strong{font-size:22px}.gc-meta{display:block;color:#71543b;font-size:14px;margin:4px 0}.gc-row p{margin:6px 0;color:#4a3322;line-height:1.4;font-size:16px}.gc-disabled-note{color:#965437;font-size:14px}.gc-availability{display:flex!important;align-items:center;gap:8px!important;cursor:pointer;font-size:15px}.gc-availability input{width:20px!important;height:20px;flex:none;accent-color:#905431}.gc-row-actions{display:grid;gap:7px}.gc-pager{padding-top:16px}.gc-error{color:#8b392b;background:#f9e7c8;padding:14px;border:1px solid #b66e48}.gc-abilities{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.gc-abilities label{display:grid;gap:5px}.gc-mechanics textarea{width:100%;box-sizing:border-box;font-family:Consolas,monospace;font-size:14px}.gc-mechanics summary{cursor:pointer}.gc-editor select[multiple]{min-height:120px}.gc-source-switch{margin-bottom:15px}
@media(max-width:900px){.gc-row{grid-template-columns:minmax(0,1fr) auto}.gc-availability{grid-column:1;grid-row:2}.gc-row-actions{grid-column:2;grid-row:1/3}.gc-abilities{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.gc-row{grid-template-columns:minmax(0,1fr)}.gc-row-actions{grid-column:1;grid-row:auto;display:flex}.gc-availability{grid-row:auto}.gc-categories{gap:6px}.gc-actions button{flex:1}.gc-heading h1{font-size:24px}}
.gc-content-dialog,.gc-editor,.cce-editor,.cce-editor *{box-sizing:border-box;min-width:0}.gc-content-dialog{max-width:min(1100px,calc(100vw - 24px))}.gc-editor>div,.cce-editor{max-width:100%}.cce-toolbar{position:sticky;top:0;z-index:2;display:grid;gap:10px;background:#f4e4c5;padding:10px 0;border-bottom:1px solid #b08b58}.cce-toolbar [role=tablist]{display:flex;gap:6px;flex-wrap:wrap}.cce-toolbar [role=tab]{flex:1;white-space:normal}.cce-toolbar [aria-selected=true],.cce-image [aria-pressed=true]{background:#6d452a;color:#fff1d3;border-color:#6d452a}.cce-row-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.cce-editor [role=tabpanel]{padding:16px 0;min-width:0}.cce-editor [hidden]{display:none!important}.cce-field{display:grid;gap:5px;min-width:0;margin:0 0 15px}.cce-field label,.cce-two>label,.cce-upload,.cce-library>label{display:grid;gap:5px}.cce-editor label>span{font-weight:600}.cce-field input,.cce-field textarea,.cce-two input,.cce-two select,.cce-library select{width:100%;max-width:100%;font:inherit;padding:9px;border:1px solid #af8b58;background:#fff8e8;color:#3a281b;border-radius:4px}.cce-field textarea{resize:vertical;line-height:1.45}.cce-field>.soft-button{justify-self:start;font-size:13px;padding:3px 7px}.cce-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.cce-section,.cce-fact,.cce-image,.cce-child{border:1px solid #b08b58;border-radius:5px;padding:14px;margin:12px 0 18px;background:#f7ebd1;min-width:0}.cce-section legend,.cce-fact legend,.cce-image legend{padding:0 5px;font-weight:700;max-width:100%;overflow-wrap:anywhere}.cce-editor h3{font-size:20px;margin:18px 0 10px}.cce-editor small{display:block;color:#735538;font-size:13px;line-height:1.4;margin:3px 0 12px}.cce-check{display:flex!important;align-items:center;gap:8px!important}.cce-check input{width:20px;height:20px;flex:none;accent-color:#905431}.cce-child>summary{font-weight:700;cursor:pointer;overflow-wrap:anywhere;margin-bottom:10px}.cce-image img{display:block;max-width:100%;max-height:280px;object-fit:contain;margin:0 auto 12px;border-radius:5px}.cce-upload{margin:16px 0 5px}.cce-upload input{max-width:100%;width:100%;white-space:normal}.cce-library{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.cce-library>label{flex:1;min-width:min(220px,100%)}.cce-library>span{flex-basis:100%}.cce-file-name,.cce-status,.cce-preview{overflow-wrap:anywhere}.cce-preview{padding:18px;border:2px solid #99703f;background:#fff5dc;margin:14px 0}.cce-preview p,.cce-preview li,.cce-preview dd{white-space:pre-wrap;line-height:1.5}.cce-preview h2{margin:0 0 12px}.cce-preview dt{font-weight:700}.cce-preview dd{margin:0 0 8px}.cce-editor button:focus-visible,.cce-editor input:focus-visible,.cce-editor textarea:focus-visible,.cce-editor select:focus-visible,.cce-child>summary:focus-visible{outline:3px solid #955d32;outline-offset:2px}.gc-content-dialog .dialog-head{gap:10px;align-items:start}.gc-content-dialog .dialog-head h2{overflow-wrap:anywhere}.gc-content-dialog .form-actions{position:sticky;bottom:0;padding:12px 0;background:#f4e4c5;z-index:2}
@media(max-width:600px){.cce-two{grid-template-columns:minmax(0,1fr);gap:4px}.cce-section,.cce-fact,.cce-image,.cce-child{padding:10px}.cce-row-tools>.soft-button{flex:1;white-space:normal}.cce-toolbar{position:static}.cce-toolbar [role=tab]{flex-basis:calc(50% - 6px)}.gc-content-dialog{max-width:calc(100vw - 12px)}.cce-library{display:grid;grid-template-columns:minmax(0,1fr)}.cce-preview{padding:12px}.gc-content-dialog .form-actions{position:static}}
@media(max-width:600px){.cce-row-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.cce-row-tools>.cce-check{grid-column:1/-1}.cce-row-tools>.soft-button{overflow-wrap:anywhere}.cce-toolbar>.cce-row-tools{grid-template-columns:minmax(0,1fr)}}
.cce-editor .soft-button{max-width:100%;white-space:normal;overflow-wrap:anywhere}.cce-preview img{display:block;max-width:100%;max-height:280px;object-fit:contain;margin:12px auto}
@media(max-width:600px){.gc-content-dialog .cce-toolbar [role=tab]{font-size:15px!important;line-height:1.2;padding:10px 5px!important}}
.cce-mechanical-form{padding:14px;border:1px solid #a88350;background:#f8ebcc;margin:16px 0}.cce-mechanical-form>summary{font-weight:700;cursor:pointer;margin-bottom:12px}.cce-mechanical-form label{display:grid;gap:5px}.cce-mechanical-form input,.cce-mechanical-form select{font:inherit;width:100%;padding:8px;border:1px solid #ad895a;background:#fff7e5;color:#3a281b}.cce-mech-pool{margin:12px 0}.cce-mech-choice{border:1px solid #b08b58;padding:10px;margin:12px 0}.cce-mech-choice .soft-button{margin-top:8px}
.cce-editor .cce-edit-hint{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px;line-height:1.4;color:#654a30;margin:10px 0}.cce-edit-hint button{font-size:13px;padding:4px 8px}.cce-editor .cce-inline{border:1px dashed transparent;border-radius:3px;outline:none;min-height:1.4em;padding:3px 5px;margin-inline:-5px;white-space:pre-wrap;overflow-wrap:anywhere;cursor:text;transition:background .12s,border-color .12s}.cce-editor .cce-inline:hover{border-color:#a9854c80;background:#fff8e330}.cce-editor .cce-inline:focus{border-color:#3e715d;background:#fff9e8;box-shadow:0 0 0 2px #3e715d25;color:#302319}.cce-editor .cce-inline:empty:before{content:attr(data-cce-placeholder);color:#8b7353;font-style:italic;font-size:.85em;pointer-events:none}.cce-generated{white-space:pre-wrap;overflow-wrap:anywhere}.cce-generated:after{content:'авто';display:inline-block;vertical-align:middle;font:10px/1.2 system-ui;color:#426454;background:#dce7d0;border-radius:3px;padding:2px 4px;margin-left:6px;letter-spacing:.02em}.cce-editor .cce-page-tools{display:inline-block;float:right;position:relative;z-index:1;margin:0 0 4px 8px;max-width:100%;font-size:14px}.cce-page-tools>summary{list-style:none;cursor:pointer;border:1px solid #ad8b5b80;border-radius:4px;padding:0 9px;font-weight:700;color:#65452b;background:#f9edcf}.cce-page-tools>summary::-webkit-details-marker{display:none}.cce-page-tools[open]{display:block;float:none;clear:both;margin:8px 0}.cce-page-tools[open]>summary{display:inline-block;margin-bottom:8px}.cce-page-tools .cce-row-tools{padding:8px;background:#f5e6c5;border:1px solid #c5aa7e;border-radius:4px}.cce-page-tools button{font-size:13px;padding:4px 8px}.cce-page-art img{display:block;max-width:100%;max-height:420px;object-fit:contain;margin:auto}.cce-art-settings>summary,.cce-source-settings>summary{font-size:14px;cursor:pointer;color:#5b4329;padding:7px 0}.cce-editor .cce-art-settings .cce-image{margin:4px 0;padding:10px}.cce-editor .cce-art-settings .cce-image img{max-height:120px}.cce-editor .cce-art-settings .cce-image button{font-size:12px;padding:5px}.cce-editor .cce-art-settings .cce-image input,.cce-editor .cce-art-settings .cce-image select{font-size:14px}.cce-page-add{display:flex;flex-wrap:wrap;gap:8px;clear:both;border-top:1px solid #b89a6c;margin-top:20px;padding-top:14px}.cce-page-add button{font-size:14px;padding:6px 10px}.cce-editor [data-cce-panel=page]{padding-top:8px}.cce-editor .catalog-page [data-cce-field]{max-width:100%}.cce-editor .catalog-page-children{clear:both}.cce-source-settings{clear:both;border-top:1px solid #c5a678;margin-top:18px;padding-top:6px}.gc-content-dialog{max-width:min(1240px,calc(100vw - 24px))}
@media(max-width:600px){.cce-toolbar [role=tab]{flex-basis:0}.cce-toolbar>.cce-row-tools{display:flex}.cce-toolbar>.cce-row-tools button{font-size:12px;padding:6px}.cce-page-add button{flex:1}.cce-inline{touch-action:manipulation}.cce-editor .cce-page-tools[open] .cce-row-tools{grid-template-columns:minmax(0,1fr)}.cce-edit-hint{font-size:12px!important}.cce-page-art img{max-height:300px}}
.cce-editor .catalog-page-narrative>.cce-page-art{float:right;width:43%;margin:0 0 18px 22px}.cce-editor .catalog-page-narrative>.cce-page-art:has(.cce-art-settings[open]){float:none;width:100%;margin:0 0 18px}.cce-editor .catalog-page-child-body>.cce-page-art{max-width:100%;margin-bottom:8px}.cce-editor .catalog-page-child-body>.cce-page-art>img{float:right;max-width:30%;margin:0 0 12px 14px}.cce-page-art .cce-art-settings{clear:both}.cce-editor .catalog-page .catalog-page-section-title>.cce-inline{margin:0}.cce-page-tools .cce-check{font-size:13px}
.cce-generated-label:after{display:none}
@media(max-width:480px){
 .gc-content-dialog{width:100%!important;max-width:100%!important;padding-inline:7px!important}
 .gc-content-dialog>.dialog-head{margin-inline:-7px!important}
 .gc-content-dialog .gc-editor{padding-inline:0!important}
 .gc-content-dialog .cce-editor .catalog-page{padding:8px 2px!important}
 .gc-content-dialog .cce-editor .catalog-page .catalog-page-effect{padding:8px 2px;border-left-width:2px}
 .gc-content-dialog .cce-editor .catalog-page .catalog-page-child-children{margin-left:0;padding-left:4px;border-left-width:1px}
 .gc-content-dialog .cce-editor .cce-inline-mechanics{padding-inline:0!important;margin-inline:0!important}
 .gc-content-dialog .cce-editor .cme-editor{padding:7px 4px}
 .gc-content-dialog .cce-editor .cme-field:has(textarea){display:block}
 .gc-content-dialog .cce-editor .cme-field:has(textarea)>label>span{padding-right:34px}
 .gc-content-dialog .cce-editor .cme-field:has(textarea)>.cme-remove{position:absolute;right:0;top:0}
}
@media(max-width:600px){.cce-editor .catalog-page-narrative>.cce-page-art{float:none;width:100%;margin:0 0 16px}.cce-editor .catalog-page{padding:12px}.cce-editor .catalog-page .catalog-page-facts{grid-template-columns:minmax(0,1fr)}.cce-editor .catalog-page .catalog-page-section-body{padding:0 10px 10px!important}}
.cct-editor,.ccp-editor{color:#3b2b1d;line-height:1.45;min-width:0;max-width:100%}.cct-search,.cct-row>label,.ccp-context>label{display:grid;gap:6px;min-width:0;font-size:14px;font-weight:600}.cct-search{margin:14px 0 8px}.cct-editor input,.cct-editor textarea,.ccp-context select{width:100%;max-width:100%;min-width:0;min-height:40px;padding:9px 10px;border:1px solid #ae8d5f;border-radius:5px;background:#fff9ed;color:#352719;font:inherit}.cct-editor textarea{resize:vertical;line-height:1.5;font-weight:400;overflow-wrap:anywhere}.cct-editor [data-cct-count]{font-size:13px;color:#765a3b;margin:8px 0 12px}.cct-list{display:grid;gap:10px}.cct-row{min-width:0;border:1px solid #b99b6e;border-radius:7px;background:#f8efdd;overflow:hidden}.cct-row>summary{display:flex;align-items:flex-start;gap:12px;justify-content:space-between;cursor:pointer;padding:11px 12px;font-weight:600;line-height:1.4}.cct-row>summary>span{min-width:0;flex:1;overflow-wrap:anywhere}.cct-row>summary>small{flex:0 1 170px;max-width:40%;font-size:12px!important;font-weight:400;margin:1px 0!important;color:#765b3b}.cct-row>label,.cct-row>.cct-parameters,.cct-row>.cct-result,.cct-row>.cct-error{margin:0 12px 12px}.cct-row>.soft-button{margin:0 12px 12px;max-width:calc(100% - 24px)}.cct-parameters{display:grid;gap:6px;padding:9px;border:1px solid #d4c19e;background:#efe4cc;border-radius:5px}.cct-parameters>div{display:grid;grid-template-columns:minmax(90px,.8fr) minmax(90px,1fr) minmax(0,1.4fr);gap:8px;align-items:start;font-size:13px;min-width:0}.cct-parameters code{font-size:12px;overflow-wrap:anywhere;white-space:normal;color:#355e4f}.cct-parameters span,.cct-parameters b{overflow-wrap:anywhere;min-width:0}.cct-parameters b{font-weight:500}.cct-parameters p{font-size:13px;margin:0}.cct-result{padding:10px 12px;border-left:3px solid #527b63;background:#edf0de}.cct-result>b{font-size:13px;color:#43614c}.cct-result p{margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px}.cct-error{color:#8c3627;font-size:13px;overflow-wrap:anywhere}.cct-error:empty{display:none}.cct-editor textarea:invalid{border-color:#a7422b;box-shadow:0 0 0 1px #a7422b}.ccp-context{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:0 0 14px;padding:12px;border:1px solid #b99b6e;border-radius:6px;background:#f5e8cd}.ccp-context>label{flex:1 1 220px}.ccp-context>.soft-button{min-height:40px;flex:0 1 auto}.ccp-assumptions{padding:10px 12px 10px 30px;border:1px dashed #b99b6e;background:#f7efdf;border-radius:5px;font-size:13px;color:#71583c}.ccp-assumptions:empty{display:none}.ccp-assumptions li{margin:3px 0;overflow-wrap:anywhere}.ccp-stats,.ccp-abilities{display:grid;gap:8px;margin:14px 0}.ccp-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.ccp-stats>div,.ccp-abilities>div{min-width:0;padding:10px;border:1px solid #c4ac82;border-radius:6px;background:#fff8e9;display:grid;gap:3px;text-align:center}.ccp-stats span,.ccp-abilities span{font-size:13px;color:#71583c;overflow-wrap:anywhere}.ccp-stats b{font-size:21px;line-height:1.3}.ccp-abilities{grid-template-columns:repeat(6,minmax(0,1fr))}.ccp-abilities b{font-size:22px;line-height:1.3}.ccp-abilities small{margin:0!important;font-size:13px!important;color:#46684f}.ccp-editor>section{margin:16px 0;padding:12px;border:1px solid #ccb792;border-radius:6px;background:#f8f0df}.ccp-editor>section h4{margin:0 0 8px;font-size:16px}.ccp-editor>section p{margin:0;font-size:14px;color:#7b654c}.ccp-editor ul{margin-block:8px;padding-left:22px}.ccp-editor li{font-size:14px;margin:4px 0;overflow-wrap:anywhere}.ccp-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ccp-actions article{min-width:0;padding:10px;background:#fff9ed;border:1px solid #d4c09b;border-radius:5px;display:grid;gap:4px}.ccp-actions article b{font-size:15px;overflow-wrap:anywhere}.ccp-actions article span{font-size:13px;color:#765d40;overflow-wrap:anywhere}@media(max-width:600px){.cct-row>summary{flex-direction:column;gap:4px;padding:10px}.cct-row>summary>small{flex:auto;max-width:100%}.cct-row>label,.cct-row>.cct-parameters,.cct-row>.cct-result,.cct-row>.cct-error{margin-inline:10px}.cct-row>.soft-button{margin-inline:10px;max-width:calc(100% - 20px)}.cct-parameters>div{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3px 8px;padding-bottom:6px;border-bottom:1px solid #d4c19e}.cct-parameters>div:last-child{padding-bottom:0;border:0}.cct-parameters b{grid-column:1/-1}.ccp-context{padding:10px}.ccp-context>label,.ccp-context>.soft-button{flex:1 1 100%}.ccp-abilities{grid-template-columns:repeat(3,minmax(0,1fr))}.ccp-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ccp-actions{grid-template-columns:minmax(0,1fr)}.ccp-editor>section{padding:10px}.ccp-stats b{font-size:19px}}@media(max-width:360px){.cct-row>summary>span,.cct-result p{font-size:14px}.cct-parameters{padding:7px}.ccp-abilities{grid-template-columns:repeat(2,minmax(0,1fr))}.ccp-stats>div,.ccp-abilities>div{padding:8px}}
@media(max-width:600px){.gc-content-dialog .cce-toolbar [role=tablist]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.gc-content-dialog .cce-toolbar [role=tab]{min-height:44px;overflow-wrap:normal;word-break:normal}}
.cct-parameters .cct-value-source{grid-column:1/-1;min-width:0;margin:0!important;font-size:12px!important;color:#765b3b;overflow-wrap:anywhere}.cct-value-source code{color:inherit}

/* The page scrolls independently so its save actions are always in view. */
html[data-build="5"] body .gc-content-dialog:has(.gc-editor-scroll) {
 display:flex;flex-direction:column;position:relative;overflow:hidden;
 height:min(920px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);
 padding:10px!important;
}
html[data-build="5"] body .gc-content-dialog:has(.gc-editor-scroll)>.dialog-head {
 position:relative;top:auto;flex:0 0 auto;align-items:center;gap:10px;
 margin:0 0 8px!important;padding:7px 10px!important;
}
html[data-build="5"] body .gc-content-dialog:has(.gc-editor-scroll)>.dialog-head h2 { margin:0;flex:1; }
html[data-build="5"] body .gc-content-dialog:has(.gc-editor-scroll)>.dialog-head>button { flex:none; }
html[data-build="5"] body .gc-content-dialog:has(.gc-editor-scroll)>.gc-editor {
 display:flex;flex-direction:column;flex:1 1 0;gap:0!important;
 min-height:0;overflow:hidden;margin:0;padding:0!important;
}
.gc-content-dialog .gc-editor-scroll {
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:10px;
 flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;
 padding:2px 7px 18px;scroll-padding-bottom:18px;
}
.gc-content-dialog .gc-editor-scroll>.full { grid-column:1/-1; }
.gc-content-dialog .gc-editor-scroll>.gc-access-label {
 display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin:0;padding:0;
}
.gc-content-dialog .gc-access-label .gc-availability { padding:2px 0;font-size:14px; }
.gc-content-dialog .gc-access-label>span { font-size:14px; }
html[data-build="5"] body .gc-content-dialog:has(.gc-editor-scroll) .form-actions {
 display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;
 position:relative;inset:auto;flex:0 0 auto;width:100%;margin:0;
 padding:8px 7px max(8px,env(safe-area-inset-bottom));
 border-top:1px solid #b99d70;background:#f6e8c9;z-index:15;
}
.gc-content-dialog .gc-editor-state { margin:0;color:#526449;font:13px/1.35 system-ui,sans-serif;overflow-wrap:anywhere; }
.gc-content-dialog .gc-editor-state[data-dirty="true"] { color:#7a4d1e;font-weight:600; }
.game-catalog-screen .gc-filter-status { flex:1 1 100%;margin:0;color:#6e573b;font-size:14px; }
.game-catalog-screen .gc-filter-status:empty { display:none; }
html[data-build="5"] body .gc-content-dialog:has(.gc-editor-scroll) .form-actions>button {
 width:auto;min-width:90px;min-height:42px;margin:0;padding:8px 12px!important;font-size:16px!important;
}
html[data-build="5"] body .gc-content-dialog .form-actions>button[type="submit"],
html[data-build="5"] body .gc-content-dialog .gc-unsaved-guard .gc-unsaved-actions>[data-gc-draft-save] {
 background:#4c6644!important;border-color:#37533c!important;color:#fffaf0!important;font-weight:700;
}
.gc-content-dialog .gc-unsaved-guard {
 position:absolute;inset:auto 12px 12px;z-index:30;max-height:calc(100% - 85px);overflow:auto;
 padding:16px;border:2px solid #9b7441;border-radius:7px;
 color:#3d2c1d;background:#fff5df;box-shadow:0 8px 30px #36271455;
 font:16px/1.5 system-ui,sans-serif;
}
.gc-content-dialog .gc-unsaved-guard[hidden] { display:none!important; }
.gc-content-dialog .gc-unsaved-guard :is(h2,h3,h4) { margin:0 0 8px;font:600 18px/1.3 system-ui,sans-serif; }
.gc-content-dialog .gc-unsaved-guard p { margin:0 0 12px; }
.gc-content-dialog .gc-unsaved-guard>div { display:flex;flex-wrap:wrap;gap:8px; }
html[data-build="5"] body .gc-content-dialog .gc-unsaved-guard button { min-height:44px;max-width:100%;white-space:normal;font-size:16px!important; }
@media(max-width:600px) {
 html[data-build="5"] body .gc-content-dialog:has(.gc-editor-scroll) {
  width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important;
  height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);padding:5px!important;
 }
 html[data-build="5"] body .gc-content-dialog:has(.gc-editor-scroll)>.dialog-head { margin:0 0 4px!important;padding:4px 6px!important; }
 .gc-content-dialog .gc-editor-scroll { grid-template-columns:minmax(0,1fr);gap:8px;padding:2px 3px 14px; }
 .gc-content-dialog .gc-editor-scroll>.gc-access-label { gap:3px 8px; }
 html[data-build="5"] body .gc-content-dialog:has(.gc-editor-scroll) .form-actions {
  grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px;padding:6px 3px max(6px,env(safe-area-inset-bottom));
 }
 .gc-content-dialog .gc-editor-state { grid-column:1/-1;font-size:12px; }
 html[data-build="5"] body .gc-content-dialog:has(.gc-editor-scroll) .form-actions>button { width:100%;min-width:0;min-height:40px;padding:6px 8px!important; }
 .gc-content-dialog .gc-unsaved-guard { inset:auto 7px 7px;padding:12px;max-height:calc(100% - 70px); }
 .gc-content-dialog .gc-unsaved-guard>div { display:grid;grid-template-columns:minmax(0,1fr); }
}


/* assets/ui/catalog-page.css */
/* Shared entity document. Kept scoped so the club shell and character studio
   display the same page without importing each other's layout styles. */
.catalog-page{--catalog-page-ink:#382b20;--catalog-page-muted:#786146;--catalog-page-line:#bda078;display:block!important;box-sizing:border-box;min-width:0;max-width:100%;padding:18px 22px;border:1px solid #bba078;border-radius:5px;background:#fbefd8 url('/assets/ui/paper-grain.svg') repeat;color:var(--catalog-page-ink);font-size:17px;line-height:1.6;overflow-wrap:anywhere}
.catalog-page *{box-sizing:border-box;min-width:0}
.catalog-page .catalog-page-header{position:relative;display:block;padding:4px 0 14px;margin:0 0 12px;border-bottom:3px double var(--catalog-page-line);background:transparent;color:var(--catalog-page-ink)}
.catalog-page .catalog-page-title>h3{margin:0 0 8px;padding:0;color:#35261c;font:700 clamp(25px,2.5vw,35px)/1.2 Georgia,serif;text-align:left}
.catalog-page .catalog-page-origin-header>.catalog-page-title{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;min-width:0}
.catalog-page .catalog-page-origin-header>.catalog-page-title>h3{flex:0 1 auto;min-width:0;margin:0;overflow-wrap:anywhere}
.catalog-page .catalog-page-origin-source{display:inline-flex;align-items:center;flex:none;min-height:34px;color:#456858;font:12px/1.3 system-ui,sans-serif;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.catalog-page.catalog-page-dossier>.catalog-dossier-overview{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(160px,28%);gap:12px 20px;align-items:start}
.catalog-page .catalog-dossier-short{grid-column:1;grid-row:1}
.catalog-page .catalog-dossier-short>p{margin:0;line-height:1.5}
.catalog-page .catalog-dossier-art{grid-column:2;grid-row:1/span 2;min-width:0}
.catalog-page .catalog-dossier-art .atlas-illustration{float:none!important;width:100%!important;max-width:none!important;margin:0!important}
.catalog-page .catalog-dossier-art>img{display:block;width:100%;max-width:100%;height:auto;max-height:380px;object-fit:contain;mix-blend-mode:multiply}
.catalog-page .catalog-dossier-card-wide{grid-column:1/-1}
.catalog-page .catalog-dossier-overview>.catalog-page-facts{grid-column:1;grid-row:2;grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));margin:0;gap:8px;align-items:start;overflow:visible}
.catalog-page .catalog-dossier-card{padding:9px 10px}
.catalog-page .catalog-dossier-card .catalog-page-fact-value{padding:0;font-size:15px;line-height:1.4;font-weight:400}
.catalog-page .catalog-dossier-card .catalog-page-fact-value p{margin:5px 0 0}
.catalog-page .catalog-dossier-card .catalog-page-fact-label{font-size:14px;font-weight:600;gap:6px}
.catalog-page .catalog-dossier-card .catalog-page-fact-label .atlas-icon{width:23px;height:25px}
.catalog-page .catalog-dossier-card-note{font-size:13px;line-height:1.4}
.catalog-page .catalog-dossier-panel{margin:10px 0;padding:0;border:1px solid #b99d74;border-radius:5px;background:#fff7e64d}
.catalog-page .catalog-dossier-panel>summary,.catalog-page .catalog-dossier-level>summary{display:flex;align-items:center;gap:10px;list-style:none;padding:11px 13px;font:600 18px/1.35 Georgia,serif;color:#473620;cursor:pointer}
.catalog-page .catalog-dossier-panel>summary::-webkit-details-marker,.catalog-page .catalog-dossier-level>summary::-webkit-details-marker{display:none}
.catalog-page .catalog-dossier-panel>summary:after,.catalog-page .catalog-dossier-level>summary:after{content:'›';margin-left:auto;flex:none;color:#806743}
.catalog-page .catalog-dossier-panel[open]>summary:after,.catalog-page .catalog-dossier-level[open]>summary:after{content:'⌄'}
.catalog-page .catalog-dossier-panel-body{padding:0 13px 10px}
.catalog-page .catalog-dossier-level{margin:8px 0;padding:0;border:1px solid #c7b08d;border-radius:4px;background:#fff9ed55}
.catalog-page .catalog-dossier-level>summary{font-size:17px;padding:9px 11px}
.catalog-page .catalog-dossier-level-body{padding:0 10px 8px}
.catalog-page-dossier .catalog-page-child-heading h4{font-size:18px}
.catalog-page-dossier .catalog-page-child{padding:8px 0}
.catalog-page-dossier .catalog-page-child-heading{margin:0}
.catalog-page-dossier .catalog-page-child-body{padding:8px 0 0}
.catalog-page-dossier .catalog-page-child-kind{display:none}
.catalog-page-dossier .catalog-page-section-merged{border:0;background:none;box-shadow:none}
.catalog-page-dossier .catalog-page-section-merged>.catalog-page-section-body{padding:0!important}
@media(max-width:900px){:root #app .character-creation-scene .catalog-page-dossier>.catalog-dossier-overview{display:grid!important;grid-template-columns:minmax(0,1fr) 100px!important;gap:10px!important;flex-direction:initial!important}.catalog-page.catalog-page-dossier>.catalog-dossier-overview{grid-template-columns:minmax(0,1fr) 100px;gap:10px}.catalog-page .catalog-dossier-overview>.catalog-page-facts{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.catalog-page .catalog-dossier-art{grid-row:1}.catalog-page .catalog-dossier-card{padding:8px}.catalog-page .catalog-dossier-card .catalog-page-fact-value{font-size:14px}.catalog-page .catalog-dossier-card .catalog-page-fact-label{font-size:13px}.catalog-page .catalog-dossier-panel-body{padding:0 9px 8px}}
@media(max-width:420px){
 :root #app .character-creation-scene .catalog-page.catalog-page-dossier>.catalog-dossier-overview,.catalog-page.catalog-page-dossier>.catalog-dossier-overview{display:flow-root!important}
 .catalog-page .catalog-dossier-art{float:right;width:80px;max-width:35%;margin:0 0 8px 12px}
 .catalog-page .catalog-dossier-short{display:block}
 .catalog-page .catalog-dossier-short>p{font-size:17px;line-height:1.45}
 .catalog-page .catalog-dossier-overview>.catalog-page-facts{clear:both;margin-top:12px}
 .catalog-page .catalog-dossier-card-reading{grid-column:1/-1}
 .catalog-page .catalog-dossier-card .catalog-page-fact-label{flex-wrap:wrap;overflow-wrap:normal;word-break:normal;gap:3px 5px}
 .catalog-page .catalog-dossier-card .catalog-page-fact-label .atlas-icon{width:18px;height:20px}
 .catalog-page .catalog-dossier-art:has(.cde-image-editor){float:none;width:100%;max-width:none;margin:10px 0}
}
.catalog-page .catalog-page-source{position:static;display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 14px;padding:0;margin:0;color:var(--catalog-page-muted);font-size:12px;line-height:1.4;white-space:normal;letter-spacing:normal}
.catalog-page .catalog-page-source a{color:#456858;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.catalog-page .catalog-page-badges{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.catalog-page .detail-badge{padding:2px 7px;border:1px solid #c2ab85;border-radius:4px;background:#efe0c6;color:#705334;font-size:11px;line-height:1.4}
.catalog-page .catalog-page-narrative,.catalog-page .catalog-page-rules{display:flow-root;position:relative;min-width:0;margin:0;padding:0!important;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;color:var(--catalog-page-ink)}
.catalog-page .catalog-page-summary{font-size:18px;line-height:1.65;color:var(--catalog-page-ink);white-space:pre-wrap}
.catalog-page .catalog-page-summary>p{margin:0 0 18px;font:inherit;line-height:inherit;color:inherit}
.catalog-page .atlas-illustration{float:right;position:relative;width:43%;max-width:460px;margin:0 0 18px 22px;shape-outside:inset(0);isolation:isolate}
.catalog-page .atlas-illustration>img{display:block;width:100%;max-width:100%;height:auto;object-fit:contain;mix-blend-mode:multiply}
.catalog-page .atlas-illustration figcaption{font-size:11px;line-height:1.3;text-align:center;color:var(--catalog-page-muted)}
.catalog-page .catalog-page-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;overflow:hidden;margin:18px 0}
.catalog-page .catalog-page-fact{display:block;padding:10px;border:1px solid #c3ab84;border-radius:3px 8px 3px 5px;background:#fff9eb80;box-shadow:none}
.catalog-page .catalog-page-fact-label{display:flex;align-items:center;gap:7px;margin:0;font-size:12px;line-height:1.3;color:var(--catalog-page-muted)}
.catalog-page .catalog-page-fact-label>.atlas-icon{width:25px;height:27px;flex:none}
.catalog-page .catalog-page-fact-value{display:block;margin:3px 0 0;padding-left:32px;font-size:17px;line-height:1.35;font-weight:600;color:var(--catalog-page-ink);white-space:pre-wrap}
.catalog-page .catalog-page-rules{clear:both;margin-top:8px}
.catalog-page .catalog-page-section{margin:12px 0;padding:0;border:1px solid #c0a47a;border-radius:4px 8px 4px 4px;background:#fff6e46b;box-shadow:none}
.catalog-page .catalog-page-section>summary{display:flex;align-items:center;gap:8px;min-height:42px;padding:9px 12px!important;cursor:pointer;list-style:none;color:#4d3927;background:transparent}
.catalog-page .catalog-page-section>summary:after{content:'⌄';margin-left:auto;color:#856d4e;font-size:17px}
.catalog-page .catalog-page-section:not([open])>summary:after{content:'›'}
.catalog-page .catalog-page-section>summary>.atlas-icon{width:27px;height:28px;flex:none}
.catalog-page .catalog-page-section-title{flex:1}
.catalog-page .catalog-page-section-title>h4{margin:0;font:700 19px/1.3 Georgia,serif;color:inherit}
.catalog-page .catalog-page-section-body{padding:0 16px 13px!important;border:0;font-size:17px;line-height:1.65;color:var(--catalog-page-ink)}
.catalog-page .catalog-page-section.catalog-page-section-merged{margin:6px 0 0;border:0;background:transparent}
.catalog-page .catalog-page-section-merged>.catalog-page-section-body{padding:0 0 6px!important}
.catalog-page .catalog-page-paragraphs p,.catalog-page .catalog-page-items li{margin:0 0 10px;white-space:pre-wrap;font:inherit!important;line-height:inherit!important;color:inherit!important}
.catalog-page .catalog-page-items ul{padding-left:24px;margin:4px 0 8px}
.catalog-page .catalog-page-children{padding-top:8px;clear:both}
.catalog-page .catalog-page-group-title{margin:16px 0 12px;padding-bottom:7px;border-bottom:3px double var(--catalog-page-line);font:700 23px/1.3 Georgia,serif;color:#47321f}
.catalog-page .catalog-page-child{padding:14px 0;margin:0;border:0;border-top:1px solid #c3a982;background:transparent;box-shadow:none}
.catalog-page .catalog-page-child-heading{display:flex;align-items:center;gap:9px;margin-bottom:10px;padding:0;background:transparent;color:var(--catalog-page-ink)}
.catalog-page .catalog-page-child-heading>.atlas-icon{width:32px;height:34px;flex:none}
.catalog-page .catalog-page-child>summary{cursor:pointer;list-style:none}
.catalog-page .catalog-page-child>summary::-webkit-details-marker{display:none}
.catalog-page .catalog-page-child>summary:after{content:'›';margin-left:auto;flex:none;color:#856d4e;font-size:22px}
.catalog-page .catalog-page-child[open]>summary:after{content:'⌄'}
.catalog-page .catalog-page-child-heading h4{margin:0;font:700 21px/1.25 Georgia,serif;color:var(--catalog-page-ink)}
.catalog-page .catalog-page-child-kind{display:block;font-size:11px;line-height:1.3;color:var(--catalog-page-muted)}
.catalog-page .catalog-page-child-body{display:flow-root}
.catalog-page .catalog-page-child-body>.atlas-illustration{width:29%;max-width:200px}
.catalog-page .catalog-page-child-children{margin:10px 0 0 16px;padding-left:14px;border-left:2px solid #b99762}
.catalog-page .catalog-page-child-children .catalog-page-child{padding-top:10px}
.catalog-page .catalog-page-effects{display:grid;gap:10px;margin-top:8px}
.catalog-page .catalog-page-effect{padding:12px 14px;border:1px solid #c8b18a;border-left:3px solid #9d7f51;border-radius:4px;background:#fff9ed80}
.catalog-page .catalog-page-effect-label{margin:0 0 8px;font:700 17px/1.4 Georgia,serif;color:#5b4129}
.catalog-page .catalog-page-effect .catalog-page-summary{font-size:17px;line-height:1.5}
.catalog-page .catalog-page-effect .catalog-page-summary>p{margin-bottom:8px}
.catalog-page .catalog-page-effect-title-settings{margin:0 0 8px;color:var(--catalog-page-muted);font-size:12px}
.catalog-page .catalog-page-effect-title-settings>summary{cursor:pointer}
.catalog-page .catalog-page-effect-title-settings h4{font-size:17px;margin:5px 0;color:var(--catalog-page-ink)}
.catalog-page .catalog-page-muted{opacity:.58}
.catalog-page .catalog-page-reading-context{grid-column:1/-1;margin:7px 0 0;color:#675439;font-size:12px;line-height:1.5;white-space:normal}
.forge-v5 .catalog-page>.catalog-page-header>.catalog-page-reading-context{text-align:center}
.catalog-page .catalog-page-reading-group{clear:both;max-width:100%;margin:18px 0;padding:0;border:0;background:transparent;box-shadow:none}
.catalog-page .catalog-page-reading-heading{display:flex;align-items:center;gap:10px;margin:0;padding:10px 0;border-bottom:3px double var(--catalog-page-line);font:700 22px/1.35 Georgia,serif;color:#47321f;overflow-wrap:anywhere}
.catalog-page details.catalog-page-reading-group{border:1px solid #bea179;border-radius:5px;background:#fff7e64d}
.catalog-page details.catalog-page-reading-group>.catalog-page-reading-heading{padding:11px 13px;border:0;font-size:19px;cursor:pointer;list-style:none}
.catalog-page details.catalog-page-reading-group>.catalog-page-reading-heading::-webkit-details-marker{display:none}
.catalog-page details.catalog-page-reading-group>.catalog-page-reading-heading:after{content:'›';margin-left:auto;flex:none;color:#856d4e}
.catalog-page details.catalog-page-reading-group[open]>.catalog-page-reading-heading:after{content:'⌄'}
.catalog-page details.catalog-page-reading-group>.catalog-page-reading-body{padding:0 13px 9px}
.catalog-page .catalog-page-reading-note{margin:4px 0 12px;font-size:14px;line-height:1.5;color:#6e583e}
.catalog-page .catalog-page-topic{clear:both;margin:17px 0 20px;padding:12px 14px 4px;border:1px solid #c8b18a;border-left:3px solid #839578;border-radius:5px;background:#fff9ec66;min-width:0}
.catalog-page .catalog-page-topic-heading{margin:0 0 8px;padding:0;border:0;background:transparent}
.catalog-page .catalog-page-topic-heading>h4{margin:0 0 5px;font:700 20px/1.3 Georgia,serif;color:#385747}
.catalog-page .catalog-page-topic-heading>p{margin:0;font:14px/1.5 system-ui,sans-serif;color:#675439}
.catalog-page .catalog-page-topic-body>.catalog-page-child:first-child{border-top:0;padding-top:9px}
.catalog-page .catalog-page-topic .catalog-page-child{padding:10px 0}
.catalog-page .catalog-page-topic .catalog-page-child-heading{margin-bottom:6px}
.catalog-page .catalog-page-topic .catalog-page-child-heading h4{font-size:19px}
.catalog-page .catalog-page-topic .catalog-page-child-heading>.atlas-icon{width:26px;height:28px}
.catalog-page .catalog-page-topic .catalog-page-child-kind{font-size:11px}
.catalog-page .catalog-page-topic .catalog-page-summary{font-size:17px;line-height:1.5}
.catalog-page .catalog-page-topic .catalog-page-summary>p{margin:4px 0 8px}
.catalog-page .catalog-page-topic .catalog-page-section-merged{border:0;background:transparent;margin:0;padding:0;box-shadow:none}
.catalog-page .catalog-page-topic .catalog-page-section-merged>.catalog-page-section-body{padding:0!important}
.catalog-page .catalog-page-topic .catalog-page-section-merged li{margin:4px 0}
.catalog-page .catalog-page-topic .catalog-page-effects{gap:6px;margin-top:5px}
.catalog-page .catalog-page-topic .catalog-page-effect{padding:8px 10px}
.catalog-page .catalog-page-topic .catalog-page-effect-label{font-size:16px;margin-bottom:4px}
@media(max-width:600px){.catalog-page .catalog-page-topic{padding:10px 10px 2px;margin:13px 0 16px}.catalog-page .catalog-page-topic-heading>h4{font-size:19px}.catalog-page .catalog-page-topic-heading>p{font-size:13px}.catalog-page .catalog-page-topic .catalog-page-child-heading h4{font-size:18px}}
.catalog-page .catalog-page-reading-current>.catalog-page-reading-heading{color:#315d4f;border-color:#8b9b78}
.catalog-page .catalog-page-reading-current>.catalog-page-reading-body>.catalog-page-child:first-child{border-top:0}
.catalog-page .catalog-page-new-feature{border-left:3px solid #688674;padding-left:12px}
.catalog-page .catalog-page-inheritance{clear:both;margin:16px 0;padding:12px 15px;border-left:3px solid #7c957b;background:#edf0db80;font-size:15px;line-height:1.5;color:#49533e}
.catalog-page .catalog-page-inheritance strong{display:block;margin-bottom:5px}
.catalog-page .catalog-page-inheritance p{margin:5px 0}
.catalog-page .cde-placement{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px 12px;margin:8px 0;font-size:12px;font-family:system-ui,sans-serif;line-height:1.4}
.catalog-page .cde-placement label{display:grid;gap:4px;min-width:0;max-width:100%;color:var(--catalog-page-muted)}
.catalog-page .cde-placement :is(select,input){box-sizing:border-box;min-width:0;max-width:100%;padding:6px 8px;border:1px solid #bba078;border-radius:4px;background:#fff9ed;color:var(--catalog-page-ink);font:inherit}
.catalog-page .cde-placement input[type=number]{width:90px}
.catalog-page .cde-placement-note{flex-basis:100%;color:var(--catalog-page-muted);font-size:11px}
.catalog-page .catalog-page-section>header{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 13px}
.catalog-page .catalog-page-section>header>.atlas-icon{width:27px;height:28px;flex:none}
.catalog-page .catalog-page-section>header>.cde-placement{flex-basis:100%;padding-left:35px}
.codex-scroll>.catalog-page{margin:0 auto;max-width:92ch;border:0;border-radius:0;min-height:100%;padding:22px 30px 36px}
.catalog-page .atlas-icon{display:inline-block;vertical-align:middle;width:30px;height:32px;flex:none}
.catalog-page :is(a,button,summary,[contenteditable]):focus-visible{outline:2px solid #3a7668;outline-offset:3px}
.catalog-page :is(.catalog-page-header,.catalog-page-narrative,.catalog-page-rules,.catalog-page-section,.catalog-page-child){max-width:100%}
.catalog-page [hidden]{display:none!important}
.forge-v5 .catalog-page>.catalog-page-header{position:sticky;top:0;z-index:15;display:grid;grid-template-columns:36px minmax(0,1fr) 36px;gap:5px 10px;padding:8px 0 12px;background:#f5e8cf url('/assets/ui/paper-grain.svg') repeat}
.forge-v5 .catalog-page>.catalog-page-header>.forge-choice-prompt{grid-column:1/-1;grid-row:1;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 12px;text-align:center;font-size:12px}
.forge-v5 .catalog-page .forge-preview-apply{min-height:34px;padding:5px 12px;border:1px solid #8c754a;border-radius:4px;background:#e9eedc;color:#354d3e;font:inherit;font-weight:600;cursor:pointer}
.forge-v5 .forge-dropdown>summary .forge-dropdown-hint{flex:none;margin-left:auto;color:#536c5a;font-size:11px;text-decoration:underline;text-underline-offset:3px}
.forge-v5 .forge-dropdown>summary>span{min-width:0;overflow-wrap:anywhere}
.forge-v5 .catalog-page>.catalog-page-header>.detail-nav{display:contents!important}
.forge-v5 .catalog-page>.catalog-page-header>.detail-nav>button{grid-column:1;grid-row:2!important;width:34px;height:34px;margin:0}
.forge-v5 .catalog-page>.catalog-page-header>.detail-nav>button:last-child{grid-column:3}
.forge-v5 .catalog-page>.catalog-page-header>.detail-nav>span{display:none}
.forge-v5 .catalog-page>.catalog-page-header>.catalog-page-title{grid-column:2;grid-row:2;align-self:center}
.forge-v5 .catalog-page>.catalog-page-header>.catalog-page-title>h3{text-align:center;margin:0;font-size:clamp(24px,2.5vw,34px)!important}
.forge-v5 .catalog-page>.catalog-page-header>.catalog-page-source{grid-column:1/-1;grid-row:3;font-size:11px;justify-content:center}
.forge-v5 .catalog-page>.catalog-page-header>.catalog-page-badges{grid-column:1/-1;grid-row:4;justify-content:center;margin:0}
.catalog-page .catalog-page-source .codex-open{display:inline-block;width:auto;min-height:0;margin:0;padding:2px 6px;border:1px solid #b99a6a;border-radius:3px;background:#edddbf;color:#5b452d;font:inherit;line-height:1.4}
@media(max-width:600px){.catalog-page{padding:12px 10px;font-size:16px}.catalog-page .catalog-page-title>h3{font-size:27px}.catalog-page .catalog-page-summary{font-size:17px}.catalog-page .atlas-illustration{width:40%;margin:0 0 12px 12px}.catalog-page .catalog-page-facts{gap:6px;margin:12px 0}.catalog-page .catalog-page-fact{padding:8px 6px}.catalog-page .catalog-page-fact-label{gap:5px}.catalog-page .catalog-page-fact-label>.atlas-icon{width:23px;height:25px}.catalog-page .catalog-page-fact-value{font-size:16px;padding-left:28px}.catalog-page .catalog-page-section>summary{padding:8px!important;gap:6px}.catalog-page .catalog-page-section-title>h4{font-size:18px}.catalog-page .catalog-page-section-body{padding:0 10px 10px!important;font-size:16px}.catalog-page .catalog-page-child-heading h4{font-size:20px}.catalog-page .catalog-page-child-children{margin-left:5px;padding-left:9px}.catalog-page .catalog-page-source{font-size:11px;gap:4px 8px}}
@media(max-width:600px){.catalog-page .catalog-page-narrative{display:flex!important;flex-direction:column}.catalog-page .catalog-page-narrative>.atlas-illustration{order:2}.catalog-page .catalog-page-reading-heading{font-size:20px}.catalog-page details.catalog-page-reading-group>.catalog-page-reading-heading{font-size:18px;padding:10px}.catalog-page details.catalog-page-reading-group>.catalog-page-reading-body{padding:0 9px 8px}.catalog-page .catalog-page-section>header>.cde-placement{padding-left:0}.catalog-page .cde-placement label{flex:1 1 130px}.codex-scroll>.catalog-page{padding:16px 12px 26px}}


/* assets/ui/catalog-mechanics-editor.css */
.cme-editor{min-width:0;max-width:100%;padding:12px;border:1px solid #bea779;border-radius:8px;background:rgba(255,250,234,.6);color:#382b20;font-size:17px;line-height:1.35;box-sizing:border-box}.cme-editor *{box-sizing:border-box}.cme-editor h4{margin:0 0 10px;font-size:1.05em}.cme-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.cme-field{position:relative;display:flex;gap:6px;align-items:center;min-width:0}.cme-field label{display:grid;gap:3px;flex:1;min-width:0}.cme-field small,.cme-node summary small,.cme-add small{font-size:12px;opacity:.75;overflow-wrap:anywhere}.cme-editor input:not([type=checkbox]),.cme-editor textarea,.cme-editor select{width:100%;min-width:0;max-width:100%;padding:6px 8px;border:1px solid #b89c6a;border-radius:5px;background:#fffaf0;color:#2f251c;font:inherit}.cme-editor textarea{resize:vertical}.cme-editor input[readonly]{opacity:.7;background:#eee5d2}.cme-editor .soft-button{min-height:32px;padding:4px 9px;font-size:.88em;white-space:normal}.cme-check label{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px}.cme-check input{width:20px;height:20px;flex:none;accent-color:#477265}.cme-identity{max-width:70px;font-size:11px!important;line-height:1.1}.cme-remove{flex:none;padding:3px 7px!important;align-self:end}.cme-node{grid-column:1/-1;min-width:0;border:1px solid #cbb78f;border-radius:6px;background:rgba(255,255,255,.2)}.cme-node>summary{display:flex;justify-content:space-between;gap:8px;cursor:pointer;padding:8px 10px;font-weight:600;overflow-wrap:anywhere}.cme-node>summary:before{content:'▸';flex:none}.cme-node[open]>summary:before{content:'▾'}.cme-node>summary>span{flex:1;min-width:0}.cme-node>[data-cme-lazy]{padding:0 10px}.cme-node-actions{display:flex;gap:6px;padding:8px 10px;justify-content:flex-end}.cme-add{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:10px 0}.cme-add label{display:grid;gap:3px;flex:1;min-width:150px}.cme-add button{max-width:100%}.cme-status:empty{display:none}.cme-status{margin:8px 0 0;font-size:14px;color:#436857}.cme-handler-note{margin:5px 0 10px;font-size:13px;color:#745631;overflow-wrap:anywhere}.cme-empty,.cme-null{font-size:14px;opacity:.7}.cme-error{color:#8e3625;overflow-wrap:anywhere}.cme-scalar-row{min-width:0;display:flex;gap:5px;align-items:end}.cme-scalar-row>.cme-field{flex:1}.cme-scalar-row>.soft-button{flex:none}.cme-field:has(textarea),.cme-scalar-row:has(textarea){grid-column:1/-1}.cce-editor .cme-editor small{display:inline;margin:0;font-size:12px;line-height:1.3}.cce-editor .cme-editor .soft-button{min-height:32px;padding:4px 9px}.cce-editor .cme-editor .cme-remove{min-width:30px;width:30px;min-height:30px;height:30px;padding:2px!important;box-shadow:none}@media(max-width:600px){.cme-fields{grid-template-columns:minmax(0,1fr)}.cme-editor{padding:9px;font-size:16px}.cme-node>[data-cme-lazy]{padding:0 7px}.cme-add{gap:6px}.cme-add label{min-width:120px}.cme-scalar-row>.soft-button{padding:3px 5px;font-size:12px}}@media(max-width:480px){.cme-field label>span{overflow-wrap:normal;word-break:normal}.cme-field label>span>small,.cme-identity{display:none!important}.cme-editor .cme-node>summary{padding:7px 5px;gap:5px}.cme-node>[data-cme-lazy]{padding:0 4px}.cme-editor .cme-node summary small{font-size:11px;flex:none;white-space:nowrap}.cme-add label{flex-basis:100%;min-width:0}.cme-editor .cme-source-texts>.cme-fields{padding:0 4px 4px}}
.cme-group-nav{display:flex;gap:6px;flex-wrap:wrap;padding:0 0 12px;border-bottom:1px solid #c9b58e;margin-bottom:14px}.cme-group-nav button{flex:1 1 150px;text-align:left}.cme-group-nav small{display:inline-block;margin-left:5px;background:#e2d8be;border-radius:9px;padding:0 6px}.cme-domain-group{margin:0 0 18px;padding:12px;background:#fffaf0;border:1px solid #d1bf9d;border-radius:8px;scroll-margin:12px}.cme-domain-group>header{margin-bottom:10px}.cme-domain-group h5{font:700 18px/1.3 inherit;margin:0}.cme-domain-group>header p{font-size:13px;color:#76664f;margin:3px 0 0}.cme-collection{grid-column:1/-1;min-width:0}.cme-collection>h6{font:600 16px/1.3 inherit;margin:8px 0}.cme-collection>h6 small{font-size:12px;padding:1px 6px;border-radius:8px;background:#e8dfc9;margin-left:5px}.cme-record-list{gap:8px}.cme-kind{display:block;font-size:11px!important;font-weight:400;color:#74634a;margin-top:3px;overflow-wrap:anywhere}.cme-palette{background:#eae2ce;padding:10px;border-radius:7px;margin-top:16px}.cme-source-texts{padding:10px;border:1px dashed #baa982;border-radius:6px;font-size:14px}.cme-source-texts>summary{cursor:pointer}.cme-levels{display:grid;gap:12px}.cme-level-row{padding:10px;border:1px solid #c9b58e;border-radius:6px;background:#fffaf0}.cme-level-row>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.cme-level-row>header>.cme-node-actions{padding:0}.cme-unknown{border-left:3px solid #b78a3a;padding-left:9px}.cme-record>summary{min-height:43px}.cme-domain-group .cme-node{background:#f9f4e8}.cme-source-texts .cme-fields{margin-top:10px}.cme-editor .cme-field label>span{font-size:14px;line-height:1.25}.cme-editor select{height:auto;min-height:36px}.cme-editor .cme-fields>.cme-scalar-row:has(textarea){grid-column:1/-1}@media(max-width:600px){.cme-domain-group{padding:9px}.cme-group-nav button{flex-basis:130px}.cme-palette{padding:8px}.cme-level-row{padding:7px}}@media(max-width:380px){.cme-group-nav button{flex-basis:100%;}.cme-scalar-row{align-items:stretch;flex-wrap:wrap}.cme-scalar-row>.soft-button{align-self:flex-end}.cme-level-row>header{flex-wrap:wrap}}
.cde-features{display:grid;gap:10px;grid-column:1/-1}.cde-feature{border:1px solid #bca77d;border-radius:7px;background:#f7f2e6;min-width:0;scroll-margin:15px}.cde-feature>summary{cursor:pointer;display:flex;gap:9px;align-items:center;justify-content:space-between;padding:10px}.cde-feature>summary strong{font-size:16px;overflow-wrap:anywhere}.cde-feature>summary small{font-size:12px;white-space:nowrap;color:#756146}.cde-feature-body{display:grid;gap:12px;padding:0 10px 12px}.cde-binding-field{display:grid;gap:4px;min-width:0}.cde-binding-field>span{font-size:14px;font-weight:600}.cde-binding-field>small{font-size:12px;color:#756146}.cde-binding-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cde-binding-field select[multiple]{min-height:83px}.cde-binding-field select[multiple] option{padding:4px;white-space:normal;overflow-wrap:anywhere}.cde-feature-body>textarea{resize:vertical}.cme-domain-group h5{font-size:18px;font-weight:700}.cme-collection>h6{font-size:16px;font-weight:600}@media(max-width:600px){.cde-binding-grid{grid-template-columns:minmax(0,1fr)}.cde-feature>summary{align-items:flex-start;flex-direction:column;gap:3px}.cde-feature-body{padding:0 8px 10px}.cde-feature>summary strong{font-size:15px}}


/* assets/ui/catalog-document-editor.css */
/* One shared catalog document. All editing affordances stay inside its flow. */
.cde-document {
  --cde-ink: #382c20;
  --cde-muted: #79684f;
  --cde-line: #c7b58f;
  --cde-paper: #fbf1dd;
  --cde-control: #edf3e7;
  --cde-control-line: #a5baa0;
  --cde-accent: #355f4d;
  color: var(--cde-ink);
  font-size: 16px;
  line-height: 1.55;
  min-width: 0;
  max-width: 100%;
}

.cde-document *, .cde-document *::before, .cde-document *::after { box-sizing: border-box; }
.cde-document [hidden] { display: none !important; }
.cde-document-body { width: 100%; min-width: 0; max-width: 1100px; margin-inline: auto; border: 1px solid var(--cde-line); border-radius: 5px; background: var(--cde-paper) url('/assets/ui/paper-grain.svg') repeat; box-shadow: 0 3px 12px #51402b0a; }
.cde-document [data-cce-panel="page"] { padding-top: 0; }
.cde-document .catalog-page { padding: 24px 30px; border: 0; background: transparent; box-shadow: none; font-size: 17px; line-height: 1.65; }
.cde-document .catalog-page-header { margin-bottom: 18px; padding-bottom: 16px; }
.cde-document .catalog-page-title > h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.18; }
.cde-document .catalog-page-source { font-size: 12px; gap: 6px 14px; }
.cde-document .cde-source-url { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; min-width: 0; max-width: 100%; color: var(--cde-muted); font-size: 11px; }
.cde-document .cde-source-url input { width: 32ch; min-width: 0; max-width: 100%; padding: 4px 6px; border: 1px solid #b9ad91; border-radius: 4px; color: var(--cde-ink); background: #fffdf4; font: inherit; }
.cde-document .catalog-page-summary { font-size: 18px; }
.cde-document .catalog-page-summary > p { max-width: 74ch; }
.cde-document .catalog-page-narrative > .cce-page-art { width: 35%; max-width: 370px; margin: 0 0 18px 24px; }
.cde-document .cce-page-art img { max-height: 340px; object-fit: contain; }

/* The document toolbar keeps creation and preview close to the page. */
.cde-toolbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 12px;
  margin: 0 0 12px;
  border: 1px solid var(--cde-line);
  border-radius: 7px;
  background: #f6ead3;
  box-shadow: 0 3px 8px #51402b0a;
}
.cde-toolbar-main, .cde-toolbar-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; min-width: 0; }
.cde-toolbar-main > label { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; min-width: 0; color: #52694b; font-size: 12px; }
.cde-toolbar-meta { margin-left: auto; }
.cde-toolbar > p { flex: 1 1 260px; margin: 0; font-size: 12px; line-height: 1.4; color: var(--cde-muted); }
.cde-toolbar .soft-button, .cde-toolbar button { min-height: 36px; padding: 6px 11px; font-size: 14px; line-height: 1.3; }
.cde-toolbar button[aria-pressed="true"] { background: var(--cde-accent); border-color: var(--cde-accent); color: #fff8e9; }
.cde-document[data-cde-mode="edit"] .cde-toolbar [data-cce-action="preview"] { border-color: #71876a; background: #e8efdd; color: #2f5841; }
.cde-status { font-size: 12px; color: var(--cde-muted); overflow-wrap: anywhere; }
.cde-status:empty { display: none; }
.cde-document .cce-edit-hint { margin: 8px 0 12px; font-size: 12px; color: var(--cde-muted); }

/* Prose has a light editing boundary; game values have a permanent green edge. */
.cde-document .cce-inline, .cde-document .cde-prose[contenteditable], .cde-document [data-cde-text-part] {
  min-height: 1.35em;
  max-width: 100%;
  border: 1px dashed transparent;
  border-radius: 3px;
  padding: 1px 4px;
  margin-inline: -4px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  outline: none;
  cursor: text;
}
.cde-document [data-cde-text-part] { display: inline; }
.cde-document :is(.cce-inline, .cde-prose[contenteditable], [data-cde-text-part]):hover { border-color: #aa96706b; background: #fffaf34d; }
.cde-document :is(.cce-inline, .cde-prose[contenteditable], [data-cde-text-part]):focus { border-color: var(--cde-accent); background: #fffcf0; box-shadow: 0 0 0 2px #355f4d14; }
.cde-document [data-cde-text-part]:empty::before { content: attr(data-placeholder); color: #98866c; font-style: italic; }
.cde-document [data-cde-text-part]:empty { display: inline-block; min-width: 1.2ch; min-height: 1.1em; border-bottom-color: #b5a889; vertical-align: baseline; }
.cde-document .cde-prose[contenteditable]:empty::before { content: attr(data-cce-placeholder); color: #98866c; font-style: italic; pointer-events: none; }
.cde-sentence { display: block; margin: 5px 0 8px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.cde-sentence [data-cde-text-part] { line-height: inherit; }
.cde-document .cce-generated::after { color: var(--cde-accent); background: #e4ecd8; font-size: 9px; padding: 1px 4px; }
.cde-document .cde-lines > :first-child { margin-top: 0; }
.cde-document .cde-lines > :last-child { margin-bottom: 0; }
.cde-document .cde-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 7px; min-width: 0; margin: 6px 0; }
.cde-document .cde-line > :first-child { min-width: 0; margin: 0; }
.cde-document .cde-remove-line { width: 28px; min-height: 28px; padding: 2px; border: 1px solid transparent; border-radius: 4px; color: #967d60; background: transparent; font-size: 18px; line-height: 1; }
.cde-document .cde-remove-line:hover { color: #8c4434; border-color: #d5bca0; background: #f1dfcb; }
.cde-document .cde-add-line { min-height: 30px; margin: 5px 0 8px; padding: 4px 8px; border: 1px dashed #b6bea3; border-radius: 4px; color: #5c7659; background: #f6f3e5; font-size: 12px; line-height: 1.35; }
.cde-document .cde-calculated { color: #535c49; }
.cde-document .cde-linked-value { color: #425d45; }
.cde-document .cde-computed { display: inline; }
.cde-document .cde-computed > output { font-weight: 600; color: #425d45; }
.cde-document .cde-computed-inputs { display: inline-flex; flex-wrap: wrap; align-items: end; gap: 4px; max-width: 100%; padding: 3px 0; }
.cde-document [data-cde-text-part][aria-invalid="true"] { border-color: #a34b37; background: #fff2e9; }

.cde-document .cde-game-field {
  min-width: 0;
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--cde-control-line);
  border-radius: 5px;
  background: var(--cde-control);
  color: var(--cde-ink);
  font: inherit;
  line-height: 1.35;
}
.cde-document .cif-field { display: grid; gap: 4px; flex: 1 1 165px; align-content: start; }
.cde-document .cif-field > label { display: grid; gap: 4px; min-width: 0; }
.cde-document .cif-editor { display: block; min-width: 0; max-width: 100%; }
.cde-document .cif-editor.cif-inline { display: inline; margin: 0; padding: 0; }
.cde-document .cif-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 8px 12px; min-width: 0; }
.cde-document .cif-fields > .cif-group { grid-column: 1 / -1; }
.cde-document .cde-game-label, .cde-document .cif-label { display: block; color: #4f6e54; font-size: 11px; font-weight: 600; line-height: 1.3; letter-spacing: .01em; overflow-wrap: anywhere; }
.cde-document .cde-game-unit { align-self: center; margin-left: 4px; color: #53694c; font-size: 12px; white-space: nowrap; }
.cde-document .cde-game-note { display: block; color: var(--cde-muted); font-size: 12px; font-weight: 400; line-height: 1.4; margin: 3px 0 0; }
.cde-document .cde-game-field :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid #b4c4aa;
  border-radius: 4px;
  color: var(--cde-ink);
  background: #fffdf4;
  font: inherit;
  line-height: 1.35;
  box-shadow: none;
}
.cde-document .cde-game-field textarea { min-height: 70px; resize: vertical; }
.cde-document .cde-game-field input[type="checkbox"] { width: 19px; height: 19px; min-height: 19px; flex: none; margin: 1px 4px 1px 0; accent-color: var(--cde-accent); }
.cde-document .cde-game-field--wide, .cde-document .cif-field:has(textarea) { width: 100%; flex-basis: 100%; grid-column: 1 / -1; }
.cde-document .cif-field.cif-inline {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0 3px;
  width: auto;
  max-width: 100%;
  margin: 1px 2px;
  padding: 1px 3px;
  vertical-align: baseline;
}
.cde-document .cif-field.cif-inline .cif-label { grid-column: 1 / -1; font-size: 10px; }
.cde-document .cif-field.cif-inline :is(input, select) { width: auto; min-height: 26px; padding: 1px 4px; border-color: transparent; background: transparent; font-size: 16px; }
.cde-document .cif-field.cif-inline input[type="number"] { width: 6ch; min-width: 5ch; max-width: 10ch; }
.cde-document .cif-field.cif-inline input[type="text"] { width: 14ch; min-width: 6ch; }
.cde-document .cif-field.cif-inline select { min-width: 7ch; max-width: min(100%, 27rem); }
.cde-document .cif-field.cif-inline .cde-game-unit { align-self: center; font-size: 11px; margin: 0 2px 0 0; }
.cde-document .cde-game-field:focus-within { border-color: var(--cde-accent); box-shadow: 0 0 0 2px #355f4d10; }
.cde-document .cde-game-field [aria-invalid="true"] { border-color: #a34b37; background: #fff2e9; }
.cde-document .cif-value { color: var(--cde-ink); font-weight: 600; overflow-wrap: anywhere; }

/* Object and reference controls remain open and visually part of the section. */
.cde-document .cif-group { display: block; flex: 1 1 100%; margin: 7px 0 10px; min-width: 0; }
.cde-document .cif-group > h4 { margin: 0 0 7px; font-size: 15px; color: #5b6049; }
.cde-document .cif-row { display: flex; align-items: start; gap: 7px; min-width: 0; margin: 7px 0; }
.cde-document .cif-array, .cde-document .cif-levels { width: 100%; min-width: 0; }
.cde-document .cif-card { min-width: 0; max-width: 100%; margin: 7px 0 9px; padding: 8px 0 8px 10px; border: 0; border-left: 2px solid #bcc9ae; background: transparent; border-radius: 0; }
.cde-document .cif-card > :is(header, h4, h5, h6) { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.cde-document .cif-card > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cde-document .cif-card .cif-group:last-child { margin-bottom: 0; }
.cde-document .cif-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; margin: 4px 0; }
.cde-document .cif-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 6px 3px 9px; border: 1px solid #b0c1a5; border-radius: 4px; background: #f5f8eb; color: #3d5945; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.cde-document .cif-chip button { flex: none; width: 23px; min-width: 23px; min-height: 23px; padding: 0 3px; border: 0; border-radius: 3px; background: transparent; color: #587557; font-size: 17px; line-height: 1; box-shadow: none; }
.cde-document .cif-chip button:hover { color: #8a3d2b; background: #f5e9db; }
.cde-document .cif-add, .cde-document .cde-section-add { display: flex; align-items: end; flex-wrap: wrap; gap: 7px; min-width: 0; margin: 10px 0 4px; padding-top: 9px; border-top: 1px dashed #c6cbb4; }
.cde-document .cif-add > label { display: grid; gap: 4px; flex: 1 1 185px; min-width: 0; color: #6b7159; font-size: 12px; }
.cde-document .cif-add :is(input, select) { width: 100%; min-width: 0; max-width: 100%; min-height: 34px; font: inherit; background: #fffdf4; color: var(--cde-ink); border: 1px solid #aebc9e; border-radius: 4px; padding: 5px 7px; }
.cde-document :is(.cif-add, .cde-section-add) button { min-height: 34px; padding: 5px 10px; font-size: 13px; line-height: 1.35; }
.cde-document .cif-status { width: 100%; margin: 6px 0 0; color: var(--cde-accent); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.cde-document .cif-status:empty { display: none; }
.cde-document .cif-error, .cde-document .cif-status[data-state="error"] { color: #963d2e; }

/* Section rules replace nested accordion boxes in the editing document. */
.cde-document :is(.cde-section, .catalog-page-section) { margin: 18px 0 14px; padding: 16px 0 0; border: 0; border-top: 1px solid var(--cde-line); border-radius: 0; background: transparent; box-shadow: none; }
.cde-document :is(.cde-section-heading, .catalog-page-child-heading) { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; margin-bottom: 9px; }
.cde-document :is(.cde-section-heading, .catalog-page-child-heading) :is(h3, h4, h5) { margin: 0; color: #46331f; font-family: Georgia, serif; font-size: 20px; line-height: 1.3; }
.cde-document .cde-section-body { min-width: 0; }
.cde-document .catalog-page-section:has(.cde-remove-section) { position: relative; }
.cde-document .catalog-page-section:has(.cde-remove-section) > header { padding-right: 32px; }
.cde-document .cde-remove-section { position: absolute; right: 0; top: 10px; width: 28px; min-height: 28px; border: 0; border-radius: 4px; background: transparent; color: #927f62; padding: 2px; font-size: 19px; line-height: 1; }
.cde-document .cde-remove-section:hover { background: #f1dfcb; color: #8c4434; }
.cde-document .catalog-page-fact:has(.cde-remove-section) { position: relative; padding-right: 29px; }
.cde-document .catalog-page-fact .cde-remove-section { top: 5px; }
.cde-document .cde-remove-section:is([data-cce-action="restore-section"], [aria-label^="Показать"]) { width: auto; padding: 4px 6px; font-size: 11px; }
.cde-document .catalog-page-muted:has(.cde-remove-section) > header { padding-right: 72px; }
.cde-document .catalog-page-fact.catalog-page-muted:has(.cde-remove-section) { padding-right: 65px; }
.cde-document .catalog-page .catalog-page-section-body { padding: 7px 0 0 !important; }
.cde-document .catalog-page-section-title > h4 { font-size: 20px; }
.cde-document .catalog-page-section > :is(header, .catalog-page-section-heading) { display: flex; align-items: center; gap: 8px; }
.cde-document .catalog-page-section > :is(header, .catalog-page-section-heading) > .atlas-icon { width: 25px; height: 27px; }
.cde-document .catalog-page-child { padding: 12px 0; }
.cde-document .catalog-page-child-heading::after { display: none; }
.cde-document .catalog-page-child-heading > .atlas-icon { width: 29px; height: 30px; }
.cde-document .catalog-page-child-heading > div { flex: 1 1 0; min-width: 0; }
.cde-document .catalog-page-child-heading h4 { width: auto; max-width: 100%; }
.cde-document .catalog-page-child-kind { font-size: 10px; letter-spacing: .02em; }
.cde-document .catalog-page-effect { border: 0; border-left: 2px solid #bdc6ac; border-radius: 0; padding: 8px 0 8px 12px; background: transparent; }
.cde-document .catalog-page-effect-label { margin-bottom: 6px; font-size: 16px; }
.cde-document .cde-remove-child { display: inline-block; max-width: 100%; min-height: 30px; margin: 7px 0 2px; padding: 4px 8px; border: 1px solid #ccbba1; border-radius: 4px; background: transparent; color: #875e48; font-size: 12px; line-height: 1.35; }
.cde-document .cde-remove-child:hover { background: #f1dfcb; border-color: #b89577; }
.cde-document .catalog-page-child-children { margin-left: 6px; padding-left: 12px; border-left-width: 1px; }
.cde-document .catalog-page-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 18px; overflow: visible; }
.cde-document .catalog-page-fact { padding: 9px 0; border: 0; border-bottom: 1px dotted #c8b894; border-radius: 0; background: transparent; }
.cde-document .catalog-page-fact-value { padding-left: 30px; font-weight: 400; }
.cde-document .catalog-page-fact-label .cde-sentence { margin: 0; line-height: 1.3; }
.cde-document .catalog-page-fact-value .cde-sentence { margin: 2px 0; line-height: 1.5; }
.cde-document .cde-section-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-left: auto; }
.cde-document .cde-section-actions button { min-height: 28px; padding: 3px 7px; font-size: 12px; }
.cde-document .cde-section-add { clear: both; }
.cde-document .cde-section-add > button { background: #f4f4e5; color: #46614b; border-color: #b0bc9e; }
.cde-document-body > .cde-game-properties { margin: 0 30px 14px; }
.cde-document-body > .cde-section-add { margin: 0 30px 24px; }
.cde-document .cde-game-properties > header > p { width: 100%; margin: 0 0 4px; color: var(--cde-muted); font-size: 12px; font-weight: 400; }
.cde-document .cde-collection-add { min-width: 0; margin: 12px 0 0; padding: 10px 0 3px; border-top: 1px dotted #c0c8af; }
.cde-document .cde-collection-add .cif-editor > h3 { margin: 0 0 7px; color: #5d674f; font: 600 14px/1.4 system-ui, sans-serif; }
.cde-document .cde-collection-add .cif-add { margin: 0; padding: 0; border: 0; }
.cde-document .cde-feature-relations { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; margin: 9px 0; padding: 8px 0; border-block: 1px dotted #c3cbb3; }
.cde-document .cde-feature-relations > .cde-game-label { flex-basis: 100%; }
.cde-document .cde-feature-relations > select { min-width: 0; max-width: 100%; min-height: 33px; padding: 4px 7px; background: #fffdf4; border: 1px solid #aebc9e; border-radius: 4px; color: #3d5945; font: inherit; font-size: 13px; }
.cde-document .cde-relation { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 7px; border-radius: 4px; background: #e9efdf; color: #45644b; font-size: 12px; overflow-wrap: anywhere; }
.cde-document .cde-relation > button { flex: none; min-width: 22px; min-height: 22px; padding: 1px 3px; background: transparent; color: #587557; border: 0; font-size: 16px; line-height: 1; }

/* Selection reveals a card's construction tools without hiding its game values.
   Direct-child selectors keep a selected feature from opening nested effects. */
.cde-document .cde-context-tools,
.cde-document .cde-child-actions,
.cde-document .catalog-page-effect-title-settings { display: none; }
.cde-document [data-catalog-child][data-cde-selected="true"] > .catalog-page-child-body > .cde-context-tools,
.cde-document [data-catalog-child] > .catalog-page-child-body > .cde-context-tools:focus-within { display: flex; }
.cde-document [data-catalog-child][data-cde-selected="true"] > .catalog-page-child-body > .cde-child-actions { display: flex; }
.cde-document [data-catalog-child][data-cde-selected="true"] > .catalog-page-effect-title-settings,
.cde-document [data-catalog-child] > .catalog-page-effect-title-settings:focus-within { display: block; }
.cde-document [data-catalog-child][data-cde-selected="true"] { outline: 2px solid #61836a2b; outline-offset: 4px; border-radius: 3px; }
.cde-document .cde-context-tools { align-items: start; flex-wrap: wrap; gap: 7px 12px; min-width: 0; margin: 8px 0; padding: 8px 0 0; border-top: 1px dotted #bec9af; }
.cde-document .cde-context-tools > .cif-editor { flex: 1 1 200px; }
.cde-document .cde-context-tools > .cde-feature-relations { flex: 1 1 100%; margin: 0; padding: 4px 0; border: 0; }
.cde-document .cde-context-tools > .cde-page-art { margin: 0; }
.cde-document .cde-context-tools > .cde-page-art:has(.cde-image-editor) { flex-basis: 100%; }
.cde-document .cde-child-actions { align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; margin: 9px 0 3px; padding-top: 7px; border-top: 1px dotted #c0c8af; }
.cde-document .cde-child-actions .cde-remove-child { margin: 0 0 0 auto; }
.cde-document .cde-child-actions :is(.primary-button, [data-cde-add-effect], [data-cde-action="add-effect"]) { border-color: #6a8965; color: #2f5841; background: #e8efdd; }
.cde-document .cde-child-parameters { min-width: 0; }
.cde-document .cde-child-parameters > .cif-editor > [data-cif-body] > .cif-fields:empty { display: none; }
/* Each owning card resets this inherited value, so a parent's optional fields
   never open a nested effect's fields, regardless of intermediate wrappers. */
.cde-document :is([data-catalog-child], .cde-game-properties) { --cde-optional-display: none; }
.cde-document :is([data-catalog-child], .cde-game-properties)[data-cde-more="true"] { --cde-optional-display: block; }
.cde-document .cif-optional-fields { display: var(--cde-optional-display, none); }
.cde-document [data-catalog-child]:not([data-cde-selected="true"]) > .catalog-page-child-body > .cde-page-art:not(:has(img, .cde-image-editor)) { display: none; }
.cde-document .catalog-page-child-body > .cde-page-art:not(:has(img, .cde-image-editor)) { margin: 0; }
.cde-document .catalog-page-effect-title-settings { margin: 5px 0 8px; }
.cde-document .catalog-page-effect-title-settings h4 { margin: 0; font-size: 16px; }
.cde-document .catalog-page-effects { min-width: 0; }
.cde-document .catalog-page-effects > .catalog-page-effect { margin: 7px 0; }

.cde-document .cde-effect-composer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 7px; min-width: 0; margin: 8px 0; padding: 9px 10px; border: 1px solid #a9bba0; border-radius: 4px; background: #edf2e3; }
.cde-document .cde-effect-composer > label { display: grid; gap: 4px; min-width: 0; color: #4f6e54; font-size: 12px; }
.cde-document .cde-effect-composer select { width: 100%; min-width: 0; max-width: 100%; min-height: 34px; padding: 5px 7px; border: 1px solid #aebc9e; border-radius: 4px; color: var(--cde-ink); background: #fffdf4; font: inherit; }
.cde-document .cde-effect-composer > :is(p, h4, [role="status"]) { grid-column: 1 / -1; margin: 0; font-size: 12px; }
.cde-document .cde-result-summary { clear: both; display: flex; align-items: center; flex-wrap: wrap; gap: 5px 16px; min-width: 0; margin: 12px 0; padding: 8px 10px; border-block: 1px solid #b7c3a7; background: #eaf0df7a; color: #455e45; font-size: 14px; line-height: 1.45; }
.cde-document .cde-result-summary > header { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; width: 100%; min-width: 0; }
.cde-document .cde-result-stats { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; min-width: 0; }
.cde-document .cde-result-stats > span { display: inline-flex; align-items: baseline; gap: 4px; min-width: 0; }
.cde-document .cde-result-summary :is(p, dl, ul) { margin: 0; }
.cde-document .cde-result-summary :is(output, strong) { font-weight: 600; color: #35583e; }
.cde-document .cde-result-summary label { display: inline-flex; align-items: center; gap: 6px; min-width: 0; margin-left: auto; color: #52694b; font-size: 12px; }
.cde-document :is(.cde-result-summary, .cde-toolbar) select { width: auto; max-width: 100%; min-height: 30px; padding: 3px 7px; border: 1px solid #aebc9e; border-radius: 4px; color: var(--cde-ink); background: #fffdf4; font: inherit; }

.cde-document .cde-tools { clear: both; margin: 16px 0 8px; border: 1px solid var(--cde-line); border-radius: 6px; background: #f6ecd7; }
.cde-document > .cde-tools-body { clear: both; margin-top: 14px; padding: 12px; border: 1px solid var(--cde-line); border-radius: 6px; background: #f6ecd7; }
.cde-document .cde-tools > summary { cursor: pointer; padding: 9px 12px; color: #6b573c; font-size: 13px; font-weight: 600; }
.cde-tools-body { min-width: 0; padding: 0 12px 12px; }
.cde-document .cde-tools textarea { max-width: 100%; }
.cde-document :is(button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--cde-accent); outline-offset: 2px; }
.cde-document[data-cde-mode="preview"] .cde-editor-only { display: none !important; }
.cde-document[data-cde-mode="preview"] [data-cce-action="document-tools"] { display: none; }
.cde-document[data-cde-mode="preview"] .catalog-page { box-shadow: none; }
.cde-document .cde-page-art { max-width: 100%; margin: 6px 0 12px; }
.cde-document .catalog-page-narrative > .cde-page-art:has(img) { float: right; width: 35%; max-width: 370px; margin: 0 0 18px 24px; }
.cde-document .cde-page-art > img { display: block; width: 100%; max-height: 340px; object-fit: contain; }
.cde-document .cde-page-art > button { min-height: 30px; margin-top: 5px; padding: 4px 8px; color: #7b6f55; font-size: 12px; }
.cde-document .catalog-page-child-body > .cde-page-art:has(img) { float: right; width: 28%; max-width: 240px; margin: 0 0 12px 16px; }
.cde-document .cde-page-art:has(.cde-image-editor) { float: none !important; width: 100% !important; max-width: none !important; margin-inline: 0 !important; }
.cde-document .cde-image-editor { margin-top: 8px; }
.cde-document .cde-image-editor .cce-image { max-width: 100%; }

@media (max-width: 1100px) {
  .cde-document .cif-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .cde-document .catalog-page { padding: 18px; }
  .cde-document-body > .cde-game-properties { margin-inline: 18px; }
  .cde-document-body > .cde-section-add { margin-inline: 18px; }
  .cde-document .catalog-page-narrative > .cce-page-art { width: 33%; margin-left: 17px; }
  .cde-document .cif-field { flex-basis: 145px; }
  .cde-document .cde-effect-composer { grid-template-columns: minmax(0, 1fr) auto; }
  .cde-document .cde-effect-composer > :is(label, select) { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .cde-document { font-size: 15px; }
  .cde-toolbar { position: static; gap: 7px; padding: 8px; margin-bottom: 9px; }
  .cde-toolbar-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; flex: 1 1 100%; width: 100%; }
  .cde-toolbar-main > :is(button, label) { min-width: 0; max-width: 100%; margin: 0; }
  .cde-toolbar-main > button { width: 100%; }
  .cde-toolbar-main > label { justify-content: center; }
  .cde-toolbar-meta { margin-left: 0; }
  .cde-toolbar button, .cde-toolbar .soft-button { min-height: 38px; font-size: 13px; }
  .cde-document .catalog-page { padding: 14px 10px; font-size: 16px; }
  .cde-document-body > .cde-game-properties { margin-inline: 10px; }
  .cde-document-body > .cde-section-add { margin-inline: 10px; }
  .cde-document .catalog-page-title > h3 { font-size: 28px; }
  .cde-document .catalog-page-summary { font-size: 17px; }
  .cde-document .catalog-page-narrative > .cce-page-art { float: none; width: 100%; max-width: 360px; margin: 0 auto 14px; }
  .cde-document .catalog-page-narrative > .cde-page-art:has(img), .cde-document .catalog-page-child-body > .cde-page-art:has(img) { float: none; width: 100%; max-width: 360px; margin: 0 auto 14px; }
  .cde-document .cde-page-art > img { max-height: 260px; }
  .cde-document .cce-page-art img { max-height: 260px; }
  .cde-document .catalog-page-facts { grid-template-columns: minmax(0, 1fr); gap: 0; margin-block: 12px; }
  .cde-document .catalog-page-fact-value { padding-left: 28px; }
  .cde-document .cif-fields { grid-template-columns: minmax(0, 1fr); }
  .cde-document .cif-field.cif-inline { margin: 1px; padding-inline: 3px; }
  .cde-document .cif-field.cif-inline :is(input, select) { min-height: 30px; font-size: 16px; }
  .cde-document .cif-field.cif-inline select { max-width: min(100%, 19rem); }
  .cde-document .cif-card { padding-left: 8px; }
  .cde-document .cde-line { gap: 4px; }
  .cde-document .cde-remove-line { width: 30px; min-height: 32px; }
  .cde-document .cde-add-line, .cde-document .cde-remove-child { min-height: 34px; }
  .cde-document .cif-group { gap: 7px; }
  .cde-document :is(.cde-section, .catalog-page-section) { margin-top: 15px; padding-top: 12px; }
  .cde-document :is(.cde-section-heading, .catalog-page-child-heading) :is(h3, h4, h5) { font-size: 19px; }
  .cde-document .cde-section-actions { width: 100%; margin-left: 0; }
  .cde-document .catalog-page-effect { padding-left: 8px; }
  .cde-document .catalog-page-child-children { margin-left: 0; padding-left: 7px; }
  .cde-document .cif-add > label { flex-basis: 100%; }
  .cde-document .cde-tools-body { padding-inline: 8px; }
  .cde-document .cde-child-actions { gap: 7px; }
  .cde-document .cde-child-actions .cde-remove-child { margin-left: 0; }
  .cde-document .cde-result-summary { gap: 6px 12px; padding: 8px; }
  .cde-document .cde-result-summary label { margin-left: 0; }
}

@media (max-width: 360px) {
  .cde-toolbar-main, .cde-toolbar-meta { width: 100%; }
  .cde-document .cif-field:not(.cif-inline) { flex-basis: 100%; }
  .cde-document .cif-field.cif-inline select { max-width: 100%; }
  .cde-document .cde-game-field { padding: 6px 7px; }
  .cde-document .cif-field.cif-inline { padding: 1px 3px; }
  .cde-sentence { line-height: 1.7; }
}

/* The club shell has large !important parchment controls. Keep these overrides
   scoped to the document so its inline values and small actions stay compact. */
html[data-build="5"] .cde-document .soft-button { min-height: 34px !important; padding: 5px 9px !important; border-radius: 4px !important; font-size: 13px !important; overflow-wrap: normal !important; box-shadow: none !important; }
html[data-build="5"] .cde-document .cif-chip button, html[data-build="5"] .cde-document :is(.cde-remove-line, .cde-remove-section) { min-height: 28px !important; padding: 2px 4px !important; background: transparent !important; border-color: transparent !important; }
html[data-build="5"] .cde-document .cif-chip button { width: 25px; font-size: 17px !important; }
html[data-build="5"] .cde-document .cde-toolbar button { font-size: 14px !important; word-break: normal; }
html[data-build="5"] .cde-document .cde-game-field :is(input, select), html[data-build="5"] .cde-document .cif-add :is(input, select), html[data-build="5"] .cde-document .cde-source-url input { min-height: 34px !important; border-radius: 4px !important; }
html[data-build="5"] .cde-document .cif-field.cif-inline :is(input, select) { min-height: 26px !important; padding: 1px 4px !important; }
html[data-build="5"] .cde-document .cde-source-url input { min-height: 29px !important; }
html[data-build="5"] .cde-document :is(.cde-effect-composer, .cde-result-summary, .cde-toolbar) select { min-height: 32px !important; }
html[data-build="5"] .cde-document .cde-game-field textarea { min-height: 70px !important; }
html[data-build="5"] .cde-document .cde-game-field input[type="checkbox"] { min-height: 19px !important; }
@media (max-width: 600px) {
  html[data-build="5"] .cde-document .cde-toolbar button { min-height: 36px !important; font-size: 13px !important; }
  html[data-build="5"] .cde-document :is(.cde-remove-line, .cde-remove-child, .cde-add-line) { min-height: 32px !important; }
  html[data-build="5"] .cde-document .cif-field.cif-inline :is(input, select) { min-height: 30px !important; }
}

/* Find and jump within the same page without adding a second editor surface. */
.cde-document .cde-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cde-document .cde-navigation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 6px 10px; flex: 1 1 100%; min-width: 0; width: 100%; }
.cde-document .cde-navigation > label { display: grid; min-width: 0; margin: 0; }
.cde-document .cde-navigation :is(input, select) { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 34px; margin: 0; padding: 5px 8px; border: 1px solid #b4bda3; border-radius: 4px; background: #fffdf4; color: var(--cde-ink); font: inherit; font-size: 14px; line-height: 1.3; }
.cde-document .cde-navigation [data-cde-search-status] { grid-column: 1 / -1; min-width: 0; font-size: 14px; color: var(--cde-muted); overflow-wrap: anywhere; }
.cde-document .cde-navigation [data-cde-search-status]:empty { display: none; }
.cde-document :is(.catalog-page-header, .cde-result-summary, [data-catalog-child], [data-catalog-section]) { scroll-margin-top: var(--cde-toolbar-height, 150px); }
.cde-document [data-cde-jump-target="true"] { outline: 2px solid #78946a; outline-offset: 4px; border-radius: 3px; }
.cde-document .cde-toolbar > .cde-status { flex: 1 1 100%; width: 100%; margin: 0; padding: 5px 8px; border-left: 2px solid #baa77e; background: #fcf3e0; color: var(--cde-ink); font-size: 14px; line-height: 1.4; }
.cde-document .cde-toolbar > .cde-status:empty { display: none; }
.cde-document .cde-toolbar :is([data-cce-action="undo"], [data-cce-action="redo"]) { flex: 0 0 36px; width: 36px; min-width: 36px; padding-inline: 4px; font-size: 21px; line-height: 1; color: var(--cde-accent); }
.cde-document .cde-toolbar :is([data-cce-action="undo"], [data-cce-action="redo"]):disabled { opacity: .45; cursor: default; }
.cde-document[data-cde-mode="preview"] :is(.cde-navigation, [data-cce-action="undo"], [data-cce-action="redo"]) { display: none !important; }

/* Resource limits use the same green controls as the surrounding rules. */
.cde-document .crl-editor { min-width: 0; max-width: 100%; margin: 8px 0 10px; padding: 9px 10px; border: 1px solid #bbc9ae; border-radius: 5px; background: #f5f6ea; }
.cde-document .crl-editor > .cif-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 8px; }
.cde-document .crl-editor > .cif-fields > :first-child,
.cde-document .crl-editor > .cif-fields > :is(.crl-levels, .cif-add, .cde-game-note) { grid-column: 1 / -1; }
.cde-document .crl-editor :is(label, input, select) { min-width: 0; max-width: 100%; }
.cde-document .crl-editor label.cif-field { display: grid; gap: 5px; margin: 0; }
.cde-document .crl-editor .cde-game-label { font-size: 14px; line-height: 1.4; }
.cde-document .crl-editor :is(input, select) { width: 100%; min-height: 34px; margin: 0; padding: 5px 7px; border: 1px solid #aebc9e; border-radius: 4px; background: #fffdf4; color: var(--cde-ink); font: inherit; font-size: 14px; line-height: 1.35; }
.cde-document .crl-editor .cde-game-note { margin: 7px 0 0; font-size: 14px; line-height: 1.5; color: #5a6a4d; overflow-wrap: anywhere; }
.cde-document .crl-editor .cif-status { margin: 5px 0 0; font-size: 14px; }
.cde-document .crl-editor .cif-status:empty { display: none; }
.cde-document .crl-levels { display: grid; gap: 9px; min-width: 0; }
.cde-document .crl-level { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: 7px; min-width: 0; margin: 0; padding: 8px; }
.cde-document .crl-level > button { grid-column: 1 / -1; justify-self: end; }

/* Every game effect states its result beside the rule that owns it. */
.cde-document .cde-effect-status { display: flex; align-items: start; flex-wrap: wrap; gap: 5px 8px; min-width: 0; margin: 8px 0 10px; padding: 7px 9px; border: 1px solid #b7c6aa; border-radius: 4px; background: #f0f4e8; color: #425b43; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.cde-document .cde-effect-status > :is(strong, .cde-status-pill, [data-cde-support-label]) { display: inline-block; padding: 2px 7px; border-radius: 4px; background: #dfe9d5; color: #2e563c; font-size: 14px; font-weight: 600; line-height: 1.4; }
.cde-document .cde-effect-status > span { flex: 1 1 240px; min-width: 0; }
.cde-document .cde-effect-status :is(p, ul) { flex: 1 1 100%; min-width: 0; margin: 0; }
.cde-document .cde-effect-status ul { padding-left: 19px; }
.cde-document .cde-effect-status li + li { margin-top: 3px; }
.cde-document .cde-effect-status[data-effect-status="manual"] { border-color: #c9b68d; background: #f8f0df; color: #6c5738; }
.cde-document .cde-effect-status[data-effect-status="manual"] > :is(strong, .cde-status-pill, [data-cde-support-label]) { color: #6f5129; background: #efe0bd; }
.cde-document .cde-effect-status[data-effect-status="incomplete"] { border-color: #c99e7d; background: #fcf0e5; color: #774b30; }
.cde-document .cde-effect-status[data-effect-status="incomplete"] > strong { color: #753e23; background: #f0d8c0; }

/* Short in-page workflows keep explanation, choices and actions together. */
.cde-document :is(.cde-use-form, .cde-replace-form, .cde-effect-composer) { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 10px; min-width: 0; max-width: 100%; margin: 9px 0; padding: 10px; border: 1px solid #a9bba0; border-radius: 5px; background: #edf2e3; }
.cde-document :is(.cde-use-form, .cde-replace-form, .cde-effect-composer) > :is(h4, p, small, .cde-workflow-fields, .cde-workflow-actions, .cde-effect-search) { flex: 1 1 100%; min-width: 0; max-width: 100%; margin: 0; }
.cde-document :is(.cde-use-form, .cde-replace-form, .cde-effect-composer) h4 { margin: 0; font-size: 16px; line-height: 1.4; color: #355b41; }
.cde-document :is(.cde-use-form, .cde-replace-form, .cde-effect-composer) :is(small, p) { font-size: 14px; line-height: 1.5; color: #536648; overflow-wrap: anywhere; }
.cde-document .cde-workflow-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; min-width: 0; }
.cde-document .cde-workflow-fields > label { display: grid; flex: 1 1 170px; gap: 4px; min-width: 0; max-width: 100%; margin: 0; color: #425b43; font-size: 14px; line-height: 1.4; }
.cde-document .cde-replace-form .cde-workflow-fields > label { flex-basis: 100%; }
.cde-document :is(.cde-use-form, .cde-replace-form, .cde-effect-composer) > label { display: grid; flex: 1 1 220px; gap: 4px; min-width: 0; max-width: 100%; font-size: 14px; }
.cde-document :is(.cde-workflow-fields, .cde-use-form, .cde-replace-form, .cde-effect-composer) :is(input, select) { width: 100%; min-width: 0; max-width: 100%; min-height: 36px; margin: 0; padding: 6px 8px; border: 1px solid #a5b59a; border-radius: 4px; background: #fffdf4; color: var(--cde-ink); font: inherit; font-size: 14px; line-height: 1.35; }
.cde-document .cde-effect-search { width: 100%; }
.cde-document .cde-effect-composer > [data-cde-composer-use] { flex: 1 1 100%; width: 100%; min-width: 0; }
.cde-document .cde-workflow-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; padding-top: 2px; }
.cde-document .cde-workflow-actions > button { flex: 0 1 auto; min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.cde-document .cde-effect-composer [data-cde-effect-example] { padding-left: 9px; border-left: 2px solid #b3c0a4; }

/* Destructive actions explain exactly which game properties will remain. */
.cde-document .cde-removal { min-width: 0; max-width: 100%; margin: 10px 0; padding: 10px 12px; border: 1px solid #c6aa7c; border-left: 3px solid #ad8250; border-radius: 5px; background: #fcf2df; color: #684c2e; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.cde-document .cde-removal :is(p, ul) { margin: 0 0 8px; }
.cde-document .cde-removal h4 { margin: 0 0 6px; color: #714520; font-size: 16px; line-height: 1.4; }
.cde-document .cde-removal ul { padding: 8px 9px 8px 28px; border-radius: 4px; background: #f4e5c7; }
.cde-document .cde-removal li + li { margin-top: 4px; }
.cde-document .cde-removal strong { color: #714520; }
.cde-document .cde-removal :is(.cde-retained-parameters, .cde-removal-warning, [data-retained-parameters]) { padding: 7px 9px; border: 1px solid #cfb887; border-radius: 4px; background: #f5e6c7; color: #614521; }
.cde-document .cde-removal > div:last-child { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.cde-document .cde-removal button { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.cde-document .cde-removal :is(.primary-button, .cde-workflow-actions > [data-cde-removal-commit]:first-child) { border-color: #93523b; background: #93523b; color: #fff7e8; }

html[data-build="5"] .cde-document :is(.cde-navigation, .crl-editor, .cde-workflow-fields, .cde-use-form, .cde-replace-form, .cde-effect-composer) :is(input, select) { min-height: 36px !important; font-size: 14px !important; }
html[data-build="5"] .cde-document .cde-toolbar :is([data-cce-action="undo"], [data-cce-action="redo"]) { font-size: 21px !important; }

/* Values stay visible; structural tools belong to the feature being edited. */
.cde-document :is([data-catalog-child], .catalog-page-rules > [data-catalog-section], .cde-game-properties, .catalog-page-fact) { --cde-owner-tools: none; --cde-owner-prose: none; }
.cde-document :is([data-catalog-child][data-cde-selected="true"], .catalog-page-rules > [data-catalog-section]:focus-within, .cde-game-properties:focus-within, .cde-game-properties[data-cde-more="true"], .catalog-page-fact:focus-within) { --cde-owner-tools: flex; --cde-owner-prose: block; }
.cde-document :is([data-catalog-child], .catalog-page-rules > [data-catalog-section], .cde-game-properties) .cif-add,
.cde-document :is([data-catalog-child], .catalog-page-rules > [data-catalog-section], .cde-game-properties) :is(.cde-add-line, .cde-remove-line, [data-cif-action="remove"]),
.cde-document .cde-remove-section:not([data-cce-action="restore-section"]):not([aria-label^="Показать"]) { display: var(--cde-owner-tools, flex); }
.cde-document [data-catalog-child] [data-cde-binding-description]:empty { display: var(--cde-owner-prose, block); }
.cde-document :is(.cde-remove-section, .cde-remove-line, .cif-chip button) { align-items: center; justify-content: center; }
.cde-document [data-catalog-child]:not([data-cde-selected="true"]) > .catalog-page-child-body > .cde-effect-status:not([data-effect-status="incomplete"]) { display: inline-flex; margin-block: 4px 7px; padding: 0; border: 0; background: transparent; }
.cde-document [data-catalog-child]:not([data-cde-selected="true"]) > .catalog-page-child-body > .cde-effect-status:not([data-effect-status="incomplete"]) > span { display: none; }

@media (max-width: 600px) {
  .cde-document .cde-toolbar { position: sticky; top: 0; gap: 6px; padding: 7px; }
  .cde-document .cde-toolbar > p:not(.cde-status) { display: none; }
  .cde-document .cde-toolbar-main { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 32px); align-items: center; gap: 4px; }
  .cde-document .cde-toolbar-main:not(:has([data-cde-add-feature])) { grid-template-columns: repeat(4, 32px); justify-content: end; }
  .cde-document .cde-toolbar-main > :is(button, label) { width: auto; min-width: 0; margin: 0; }
  .cde-document .cde-toolbar-main > [data-cde-add-feature] { width: 100%; min-height: 36px; white-space: normal; }
  .cde-document .cde-toolbar-main > label { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .cde-document .cde-toolbar-main > :is([data-cce-action="undo"], [data-cce-action="redo"], [data-cce-action="preview"], [data-cce-action="document-tools"]) { width: 32px; min-width: 0; max-width: 32px; min-height: 36px; padding-inline: 3px; }
  .cde-document .cde-toolbar-main > [data-cce-action="preview"], .cde-document .cde-toolbar-main > [data-cce-action="document-tools"] { position: relative; font-size: 0 !important; color: transparent; }
  .cde-document .cde-toolbar-main > [data-cce-action="preview"]::before { content: ''; display: block; width: 19px; height: 12px; margin: auto; border: 1.5px solid #355f4d; border-radius: 70% 15%; transform: rotate(45deg); }
  .cde-document .cde-toolbar-main > [data-cce-action="preview"]::after { content: ''; position: absolute; left: calc(50% - 3px); top: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: #355f4d; }
  .cde-document .cde-toolbar-main > [data-cce-action="document-tools"]::before { content: '⚙'; display: block; color: #685335; font-size: 21px; line-height: 1; }
  .cde-document[data-cde-mode="preview"] .cde-toolbar-main { display: flex; }
  .cde-document[data-cde-mode="preview"] .cde-toolbar-main > [data-cce-action="preview"] { width: 100%; max-width: none; color: var(--cde-ink); font-size: 16px !important; }
  .cde-document[data-cde-mode="preview"] .cde-toolbar-main > [data-cce-action="preview"]::before, .cde-document[data-cde-mode="preview"] .cde-toolbar-main > [data-cce-action="preview"]::after { display: none; }
  .cde-document .cde-navigation { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5px; }
  .cde-document .cde-navigation :is(input, select) { min-height: 36px; padding-inline: 7px; font-size: 16px; }
  .cde-document .crl-editor { padding: 7px; }
  .cde-document .crl-editor > .cif-fields { grid-template-columns: minmax(0, 1fr); }
  .cde-document .crl-level { grid-template-columns: minmax(0, 1fr); }
  .cde-document .crl-level > button { justify-self: start; }
  .cde-document :is(.cde-use-form, .cde-replace-form, .cde-effect-composer) { padding: 8px; }
  .cde-document .cde-workflow-fields > label { flex-basis: 100%; }
  .cde-document :is(.cde-navigation [data-cde-search-status], .cde-toolbar > .cde-status, .crl-editor .cde-game-note, .crl-editor .cde-game-label, .crl-editor .cif-status, .cde-effect-status, .cde-effect-status > strong, .cde-effect-status .cde-status-pill, .cde-removal) { font-size: 16px; }
  .cde-document :is(.cde-use-form, .cde-replace-form, .cde-effect-composer) :is(label, small, p) { font-size: 16px; }
  .cde-document :is(.cde-use-form, .cde-replace-form, .cde-effect-composer, .cde-removal) h4 { font-size: 18px; }
  .cde-document :is(.cde-navigation, .crl-editor, .cde-workflow-fields, .cde-use-form, .cde-replace-form, .cde-effect-composer) :is(input, select) { font-size: 16px; }
  html[data-build="5"] .cde-document :is(.cde-navigation, .crl-editor, .cde-workflow-fields, .cde-use-form, .cde-replace-form, .cde-effect-composer) :is(input, select),
  html[data-build="5"] .cde-document :is(.cde-toolbar, .cde-workflow-actions, .cde-removal) button { font-size: 16px !important; }
  html[data-build="5"] .cde-document .cde-toolbar :is([data-cce-action="undo"], [data-cce-action="redo"]) { font-size: 22px !important; }
  html[data-build="5"] .cde-document .cde-toolbar-main > :is([data-cce-action="preview"], [data-cce-action="document-tools"]) { font-size: 0 !important; padding-inline: 3px !important; }
  html[data-build="5"] .cde-document[data-cde-mode="preview"] .cde-toolbar-main > [data-cce-action="preview"] { font-size: 16px !important; }
}

@media print {
  .cde-toolbar, .cde-tools, .cde-editor-only { display: none !important; }
  .cde-document .catalog-page { border: 0; padding: 0; background: white; }
  .cde-document-body { border: 0; background: white; box-shadow: none; }
}

/* A short, non-sticky explanation keeps contextual tools discoverable. */
.cde-document .cde-page-hint { margin: 0; padding: 9px 16px; border-bottom: 1px dotted var(--cde-line); color: var(--cde-muted); font: 14px/1.4 system-ui, sans-serif; background: #f8f0df; }
.cde-document .cde-relation > button { font-size: 12px; line-height: 1.3; }

/* Draft state is separate from calculation feedback. */
.cde-document .cde-draft-state {
 flex:1 1 100%;width:100%;margin:0;padding:4px 8px;border-left:3px solid #839272;
 background:#edf1e2;color:#3d5a3f;font:13px/1.35 system-ui,sans-serif;
}
.cde-document .cde-draft-state[data-dirty="true"] { border-color:#a87836;background:#fff0d3;color:#754b1e;font-weight:600; }
.cde-document .cde-legend {
 display:flex;align-items:center;flex-wrap:wrap;gap:5px 14px;
 margin:0;padding:8px 14px;border-bottom:1px dotted var(--cde-line);
 color:#66543c;background:#f8f0df;font:13px/1.4 system-ui,sans-serif;
}
.cde-document .cde-legend>span { display:inline-flex;align-items:center;gap:5px; }
.cde-document .cde-page-hint:has(.cde-legend) { padding:0; }
.cde-document .cde-page-hint>.cde-legend { border-bottom:0; }
.cde-document .cde-page-hint>small { display:block;margin:0;padding:0 14px 8px;color:var(--cde-muted);font:12px/1.4 system-ui,sans-serif; }
.gc-content-dialog:has(.gc-editor-state) .cde-toolbar>.cde-draft-state[data-dirty] { display:none; }
.cde-document .cde-legend-text::before { content:'Т';padding:0 3px;border-bottom:1px dashed #927e5b;color:#6d5536; }
.cde-document .cde-legend-game::before { content:'30';padding:0 4px;border:1px solid #8aa57e;border-radius:3px;background:#edf3e7;color:#355f4d; }
.cde-document .cde-legend-computed::before { content:'=';font-weight:700;color:#536276; }
.cde-document[data-cde-mode="edit"] [data-cde-computed] { color:#4e5b6b;border-bottom:1px dotted #758392; }
.cde-document[data-cde-mode="edit"] [data-cde-computed]::before { content:'=';margin-right:3px;color:#596c80;font:600 11px/1 system-ui,sans-serif;vertical-align:baseline; }
.cde-document .cde-search-results {
 display:grid;grid-column:1/-1;flex:1 1 100%;width:100%;gap:4px;
 max-height:min(230px,30dvh);overflow:auto;overscroll-behavior:contain;
}
.cde-document .cde-search-results:empty { display:none; }
.cde-document .cde-search-results .cde-search-match {
 display:grid;width:100%;gap:2px;margin:0;padding:7px 9px;
 text-align:left;white-space:normal;border:1px solid #c7b591;border-radius:4px;
 background:#fffaf0;color:var(--cde-ink);overflow-wrap:anywhere;
}
.cde-document .cde-search-match strong { font:600 14px/1.35 system-ui,sans-serif; }
.cde-document .cde-search-match small { display:block;margin:0;color:#756247;font:13px/1.4 system-ui,sans-serif; }
.cde-document .cde-search-match:hover { background:#edf2e3;border-color:#8ea27d; }
.cde-document .cde-search-match:focus-visible { outline:2px solid #355f4d;outline-offset:1px; }
.cde-document[data-cde-mode="preview"] .cde-legend { display:none; }
@media(max-width:600px) {
 .cde-document .cde-legend { gap:4px 9px;padding:7px 9px;font-size:12px; }
 .cde-document .cde-draft-state { font-size:12px;padding:3px 6px; }
 .cde-document .cde-toolbar>.cde-draft-state[data-dirty] { display:block; }
 .cde-document .cde-search-results { max-height:min(200px,25dvh); }
 .cde-document .cde-search-results .cde-search-match { min-height:44px;padding:7px; }
 html[data-build="5"] .cde-document .cde-search-match strong { font-size:14px!important; }
 html[data-build="5"] .cde-document .cde-search-match small { font-size:13px!important; }
 .cde-document[data-cde-mode="edit"] .catalog-page-narrative>.cde-page-art:has(img),
 .cde-document[data-cde-mode="edit"] .catalog-page-child-body>.cde-page-art:has(img) {
  display:flex;align-items:center;gap:10px;float:none;width:100%;max-width:none;margin:0 0 10px;
 }
 .cde-document[data-cde-mode="edit"] .cde-page-art>img { flex:0 1 100px;width:auto;max-width:45%;height:120px;max-height:120px;margin:0;object-fit:contain; }
 .cde-document[data-cde-mode="edit"] .cde-page-art>button { flex:0 1 auto;max-width:50%;margin:0; }
 .cde-document[data-cde-mode="edit"] .cde-page-art:has(.cde-image-editor) { flex-wrap:wrap; }
 .cde-document .cde-page-art>.cde-image-editor { flex:1 1 100%;width:100%; }
}
.cde-document .catalog-dossier-art>.cde-page-art{display:block;float:none;width:100%;max-width:none;margin:0}
.cde-document[data-cde-mode="edit"] .catalog-dossier-art>.cde-page-art>img{display:block;flex:none;width:100%;max-width:100%;height:auto;max-height:340px;margin:0;object-fit:contain}
.cde-document[data-cde-mode="edit"] .catalog-dossier-art>.cde-page-art>button{max-width:100%;width:100%;margin-top:5px;white-space:normal;line-height:1.3}
.cde-document .catalog-dossier-art:has(.cde-image-editor){grid-column:1/-1;grid-row:3}


/* assets/ui/club-journal.css */
.journal-tools,.journal-pager{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.journal-tools{margin:14px 0}.journal-tools [aria-pressed=true]{outline:2px solid #94703d;outline-offset:2px}.journal-filters{display:flex!important;align-items:end;flex-wrap:wrap;gap:12px!important}.journal-filters label{display:grid;gap:5px;min-width:130px;flex:1}.journal-filters label:first-child{flex:2;min-width:230px}.journal-filters input,.journal-filters select{max-width:100%;width:100%;box-sizing:border-box}.journal-zone{width:100%;color:#684529}.journal-ledger>header{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding-bottom:12px}.journal-table-scroll{overflow-x:auto;max-width:100%}.journal-table-scroll table{min-width:860px}.journal-table-scroll td{vertical-align:top;max-width:380px;overflow-wrap:anywhere}.journal-table-scroll td:first-child{min-width:120px}.journal-table-scroll p{margin:6px 0}.journal-table-scroll pre{font-family:Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-width:460px;font-size:13px;color:#4e3423;background:#eee0bc;padding:10px}.journal-table-scroll summary{cursor:pointer;color:#826235;font-size:14px}.journal-pager{justify-content:space-between;margin-top:15px}.journal-archive-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 0;border-top:1px solid #ab8656}.journal-archive-row h3{margin:0;font-size:23px}.journal-archive-row p{margin:5px 0}.journal-archive-actions{display:grid;gap:8px;min-width:160px}.journal-restored{color:#386947}.journal-error{color:#843f28;background:#f3dfb9;border:1px solid #ba8451;padding:12px;overflow-wrap:anywhere}.journal-preview{padding:12px;background:#f2e3c2;border:1px solid #ba945e;line-height:1.5}.journal-archive-form p{color:#553b25}.journal-scope-note{padding:10px 0;color:#67482b}.journal-loading{color:#ffe7bc;background:#3a2417d9;padding:8px 12px;border-radius:5px}.journal-screen .audit-status.failed{color:#9d3327;background:#f1c4a1}.journal-screen .audit-status.attempt{color:#816035}.journal-screen .journal-ledger,.journal-screen .journal-archives{min-width:0;max-width:100%;box-sizing:border-box}
html[data-build="5"] body[data-role="admin"][data-screen="audit"] .journal-screen .audit-filter-panel.journal-filters{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important}.journal-filters label{min-width:0!important}.journal-filters label:first-child{grid-column:span 2}.journal-zone{grid-column:1/-1}
@media(max-width:1000px){html[data-build="5"] body[data-role="admin"][data-screen="audit"] .journal-screen .audit-filter-panel.journal-filters{grid-template-columns:repeat(3,minmax(0,1fr))!important}.journal-filters label:first-child{grid-column:1/-1}}
@media(max-width:640px){html[data-build="5"] body[data-role="admin"][data-screen="audit"] .journal-screen .audit-filter-panel.journal-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:640px){.journal-filters label,.journal-filters label:first-child{min-width:0;flex:1 1 45%}.journal-filters label:first-child{flex-basis:100%}.journal-archive-row{align-items:start;flex-direction:column}.journal-archive-actions{display:flex;flex-wrap:wrap;width:100%}.journal-archive-actions button{flex:1}.journal-pager{justify-content:center}.journal-tools button{flex:1 1 40%}.journal-archive-form input{max-width:100%;box-sizing:border-box}}


/* assets/ui/tabletop.css */
/* Existing painted guild assets keep the editor, console and character sheets in one visual world. */
.adventure-workshop,.tt-console,.aw-modal{--aw-ink:#38281b;--aw-muted:#795a3a;--aw-accent:#416e61;--aw-line:#b38b53;color:var(--aw-ink);font-family:var(--font-body,'Rukopisny',Georgia,serif);font-size:max(16px,1rem);line-height:1.45}
.adventure-workshop{width:100%;min-width:0;padding:14px 8px 35px;box-sizing:border-box}
.adventure-workshop *,.tt-console *,.aw-modal *{box-sizing:border-box}
.aw-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 28px;margin-bottom:18px;background:url('/assets/art/sheet-panel-v3.webp') center/100% 100%;color:var(--aw-ink)}
.aw-heading h1,.aw-editor-heading h1,.tt-console-header h1{font-size:clamp(24px,2.1vw,35px);line-height:1.15;margin:3px 0 8px}
.aw-heading p{margin:4px 0}.aw-eyebrow{display:block;font-size:13px;letter-spacing:.06em;color:var(--aw-muted)}
.aw-paper{position:relative;min-width:0;border:12px solid transparent;border-image:url('/assets/art/sheet-panel-v3.webp') 36 fill/12px stretch;padding:14px 16px;background:url('/assets/ui/paper-grain.svg') center/460px;margin-bottom:16px;box-shadow:0 7px 16px #24170b3b;border-radius:3px}
.aw-paper h3{font-size:23px;margin:0 0 12px;line-height:1.2;border-bottom:1px solid #b18a5366;padding-bottom:8px}.aw-paper h4{font-size:19px;margin:16px 0 7px}.aw-paper p{margin:8px 0 13px}.aw-pre{white-space:pre-wrap;overflow-wrap:anywhere}
html body :is(.adventure-workshop,.tt-console,.aw-modal) .aw-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;max-width:100%;padding:8px 15px;border:1px solid #a37d49;border-radius:5px;background:#e8d1a7 url('/assets/ui/paper-grain.svg') center/220px;color:#473320;font:inherit;font-size:16px;line-height:1.2;cursor:pointer;box-shadow:inset 0 1px #fff5db88,0 2px 3px #38261922;text-decoration:none}
html body :is(.adventure-workshop,.tt-console,.aw-modal) .aw-button:is(:hover,:focus-visible){background-color:#f2dfb7;outline:2px solid #986f3599;outline-offset:1px}
html body :is(.adventure-workshop,.tt-console,.aw-modal) .aw-button.aw-primary,html body :is(.adventure-workshop,.tt-console,.aw-modal) .aw-button.active{background-color:#cecfab;border-color:#537667;color:#294e40}
html body :is(.adventure-workshop,.tt-console,.aw-modal) .aw-button.aw-danger{color:#853b2a;border-color:#ab6651;background-color:#e2c0a2}
html body :is(.adventure-workshop,.tt-console,.aw-modal) .aw-button.aw-icon{padding:5px 9px;min-width:34px;min-height:34px}.aw-button:disabled{opacity:.55;cursor:wait!important}
.aw-toolbar,.aw-tabs,.aw-map-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.aw-toolbar{margin-top:10px}.aw-heading>.aw-toolbar{max-width:470px;justify-content:flex-end}
.aw-tabs{margin:8px 0 18px;gap:6px}.aw-tabs .aw-button{padding:10px 18px!important;min-height:42px!important}
.aw-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.aw-editor-heading [data-aw-save-status]{font-size:14px;color:#436855}.aw-save-error{color:#963e28!important}
.aw-library-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:20px;align-items:start}.aw-adventure-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:16px;margin-top:16px}.aw-adventure-card{display:flex;flex-direction:column}.aw-adventure-card p{flex:1}.aw-adventure-card .aw-toolbar{margin-top:16px}
.aw-two-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.aw-game-links{display:flex;flex-direction:column;gap:9px}.aw-game-links>.aw-button{display:flex!important;flex-direction:column;align-items:flex-start!important;text-align:left;width:100%}.aw-game-links small{font-size:14px;color:var(--aw-muted)}
.aw-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.aw-field{display:flex;flex-direction:column;gap:4px;min-width:0;text-align:left}.aw-field>span,.aw-media-field>span{font-size:15px;color:#694626}.aw-field small,.aw-muted,.aw-media-field small{font-size:14px;color:var(--aw-muted)}.aw-wide{grid-column:1/-1}
html body :is(.adventure-workshop,.tt-console,.aw-modal) :is(input:not([type=checkbox]):not([type=range]):not([type=file]),select,textarea){width:100%;min-width:0;min-height:40px;border:1px solid #aa8452;border-radius:4px;padding:8px 10px;color:#3c2a1a;background:#f1e2c377 url('/assets/ui/paper-grain.svg') center/280px;font:inherit;font-size:17px;line-height:1.35;box-shadow:inset 0 1px 3px #80562b16}
html body :is(.adventure-workshop,.tt-console,.aw-modal) :is(input,textarea,select):focus{outline:2px solid #538c7799;outline-offset:1px}html body :is(.adventure-workshop,.tt-console,.aw-modal) textarea{resize:vertical;min-height:85px}.aw-check{display:flex;align-items:center;gap:8px;font-size:15px;margin:4px 0}.aw-check input{accent-color:#467966;width:17px;height:17px;flex:none}.aw-media-field{display:flex;flex-direction:column;gap:6px}.aw-media-field>img{width:100%;height:200px;object-fit:contain;border:2px solid #8b6a40;border-radius:3px}.aw-media-field>.aw-button{align-self:flex-start}.aw-media-field input[type=file]{display:none}.aw-media-field audio{width:100%;max-width:100%;height:36px}
.aw-stats{display:flex;flex-wrap:wrap;gap:7px 18px;margin:10px 0;font-size:16px}.aw-stats b{font-size:20px}.aw-readiness{padding-left:24px}.aw-readiness li{margin:12px 0;color:#856849}.aw-readiness li.done{color:#3f745c}.aw-readiness li.done::marker{content:'✓  '}.aw-alert{padding:14px 18px;border:1px solid #a9793e;background:#ecd3a2 url('/assets/ui/paper-grain.svg');color:#713b24;margin-bottom:16px;border-radius:4px}.aw-alert .aw-button{margin-left:10px}.aw-welcome{min-height:230px}
.aw-location-layout{display:grid;grid-template-columns:185px minmax(350px,1fr) 300px;gap:16px;align-items:start}.aw-scene-list,.aw-location-inspector{max-height:calc(100dvh - 230px);overflow:auto;scrollbar-color:#a17a46 #e6d5b1}.aw-location-row{margin-bottom:8px;border-bottom:1px solid #ad814955;padding-bottom:8px}.aw-location-row>.aw-button{display:flex!important;flex-direction:column;align-items:flex-start!important;width:100%;text-align:left;padding:8px!important}.aw-location-row>div{display:flex;gap:5px;margin-top:5px}.aw-location-row small{font-size:12px}.aw-scene-list>.aw-button{width:100%;margin-bottom:8px}
.aw-map-panel{overflow:hidden}.aw-map-panel>header{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.aw-map-panel>header h3{border:0;margin:0}.aw-map-panel>header span{font-size:14px;color:var(--aw-muted)}.aw-map-toolbar{margin:14px 0 8px}.aw-map-toolbar .aw-button{font-size:14px!important;min-height:33px!important;padding:6px 9px!important}.aw-map-toolbar label{display:flex;gap:8px;align-items:center;font-size:14px}.aw-map-toolbar input{width:100px;accent-color:#59735b}.aw-place-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.aw-place-row select{max-width:310px}.aw-map-help{font-size:14px;color:var(--aw-muted)}.aw-selected-token{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid #b08a50;padding-top:10px}
.tt-map-scroll{overflow:auto;max-width:100%;height:clamp(310px,48dvh,600px);border:3px solid #7b5934;background:#372b1e;scrollbar-color:#af8750 #403120;overscroll-behavior:contain;position:relative;touch-action:pan-x pan-y}.tt-map{display:block;max-width:none;height:auto;user-select:none}.tt-map[data-tool]:not([data-tool=select]){cursor:crosshair;touch-action:none}.tt-token{cursor:grab;outline:none}.tt-token>circle{fill:#51442f;stroke:var(--token-color);stroke-width:5}.tt-token.selected>circle{stroke:#ffe074;stroke-width:7}.tt-token.current-turn>circle{stroke:#b7f6ab;stroke-width:7}.tt-token.hidden-token{opacity:.5}.tt-token:focus-visible>circle{stroke:#ffe074;stroke-width:7}.tt-token:active{cursor:grabbing}.tt-fog{fill:#18151c;fill-opacity:1}.tt-fog.master-fog{fill:#231926;fill-opacity:.52}.tt-map [data-wall-index]{cursor:pointer}
.aw-actor-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:18px;align-items:start}.aw-actor-layout>aside{position:sticky;top:8px;max-height:calc(100dvh - 215px);overflow:auto}.aw-actor-list{display:flex;flex-direction:column;gap:7px;margin-top:12px}.aw-actor-list>.aw-button{justify-content:flex-start!important;text-align:left;width:100%}.aw-actor-list img{width:46px;height:46px;object-fit:cover;border-radius:50%;border:2px solid #937340}.aw-actor-list span{display:flex;flex-direction:column;min-width:0}.aw-actor-list small{font-size:13px}.aw-ability-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.aw-damage-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;font-size:15px}.aw-damage-checks label{display:flex;align-items:center;gap:5px}.aw-paper fieldset{border:1px solid #bc935d;margin:12px 0;padding:10px}.aw-paper legend{padding:0 6px;color:#725333}.aw-attack-editor{margin:12px 0;padding:12px;border:1px solid #ad855455;background:#e7d4ad44}.aw-attack-editor>summary{font-size:19px;margin-bottom:10px}.aw-attack-editor>summary button{float:right}.aw-inline{display:flex;gap:8px;align-items:end;margin-bottom:8px}.aw-inline>.aw-field{flex:1}.aw-paper details{margin:9px 0}.aw-paper summary{cursor:pointer;color:#57422c;font-size:17px}
.aw-modal-backdrop{position:fixed;inset:0;background:#20160f9c;backdrop-filter:blur(3px);z-index:3000;display:flex;align-items:center;justify-content:center;padding:24px}.aw-modal{width:min(760px,100%);max-height:90dvh;overflow:auto;padding:22px;margin:0}.aw-modal>header{display:flex;align-items:center;justify-content:space-between;gap:15px}.aw-modal h2{font-size:28px;margin:0 0 14px}.aw-modal>footer{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:20px}.aw-guide{padding-left:22px}.aw-guide li{margin:12px 0}.aw-guide b{color:#355e4f}
.tt-console{position:fixed;inset:0;z-index:900;display:flex;flex-direction:column;background:#402b1d url('/assets/ui/admin-scenes/guild-command.png') center/cover no-repeat;isolation:isolate}.tt-console::before{content:'';position:absolute;inset:0;background:#21130f33;z-index:-1;pointer-events:none}.tt-console-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:12px 18px 0;padding:18px 28px;background:url('/assets/art/sheet-panel-v3.webp') center/100% 100%;flex:none}.tt-console-header h1{font-size:27px}.tt-console-header small{color:#56705a}.tt-console-header .aw-toolbar{justify-content:flex-end;margin:0;max-width:700px}.tt-console-body{overflow:auto;flex:1;padding:18px 22px 40px;min-height:0;overscroll-behavior:contain;scrollbar-color:#b88e57 #39291d}.tt-console-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:18px;align-items:start}.tt-console-locations{position:sticky;top:0;max-height:calc(100dvh - 170px);overflow:auto}.tt-console-locations>.aw-button{display:flex!important;flex-direction:column;align-items:flex-start!important;width:100%;text-align:left;margin-bottom:8px}.tt-console-locations>.aw-button small{font-size:13px}.tt-console-locations .aw-toolbar{flex-direction:column;align-items:stretch}.tt-console-main{min-width:0}.tt-console-main>.aw-tabs{margin-top:0}
.tt-scene-preview{width:100%;aspect-ratio:16/8.5;position:relative;overflow:hidden;background:#382c20;border:3px solid #88613b;isolation:isolate}.tt-scene-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}.tt-scene-empty{display:flex;align-items:center;justify-content:center;font-size:25px;color:#dbcaa0;background:#594634 url('/assets/ui/admin-scenes/guild-command.png') center/cover}.tt-display-layer{position:absolute;margin:0;transform:translate(-50%,-50%);max-height:90%;pointer-events:none}.tt-display-layer img{display:block;width:100%;height:auto;max-height:75dvh;object-fit:contain;filter:drop-shadow(0 6px 10px #110b0799)}.tt-scene-preview .tt-display-layer{pointer-events:auto;cursor:grab;touch-action:none}.tt-scene-preview .tt-display-layer img{max-height:350px;pointer-events:none}.tt-display-caption{position:absolute;bottom:3%;left:8%;right:8%;padding:14px 22px;border:5px solid transparent;border-image:url('/assets/art/sheet-panel-v3.webp') 36 fill/9px stretch;background:url('/assets/ui/paper-grain.svg') center/350px;text-align:center;font-size:clamp(18px,2vw,28px);white-space:pre-wrap;z-index:150;color:#3b291b}.tt-scene-preview .tt-display-caption{font-size:16px;padding:8px 12px}.tt-curtain-preview{position:absolute;inset:0;background:#241d26bb;display:flex;align-items:center;justify-content:center;z-index:200;color:#f2dfbb;font-size:20px}
.tt-art-library{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}.tt-art-library .aw-button{flex-direction:column;text-align:center;padding:8px!important}.tt-art-library img{width:100%;height:115px;object-fit:contain}.tt-layer-list{display:flex;flex-direction:column;gap:12px}.tt-layer-row{border-bottom:1px solid #b38b5066;padding-bottom:12px}.tt-layer-row>label{display:flex;align-items:center;gap:12px;margin:8px 0}.tt-layer-row>div{display:flex;gap:6px;flex-wrap:wrap}.tt-layer-row input{accent-color:#4f7562}
.tt-battle-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}.tt-battle-layout .tt-map-scroll{height:clamp(370px,58dvh,740px)}.tt-initiative{max-height:280px;overflow:auto}.tt-initiative-row{display:grid;grid-template-columns:minmax(0,1fr) 58px;gap:7px;margin-bottom:6px;align-items:center;border-radius:5px}.tt-initiative-row>.aw-button{flex-direction:column;align-items:flex-start!important;justify-content:flex-start!important;text-align:left;padding:8px!important}.tt-initiative-row small{font-size:12px;color:#6e5234}.tt-initiative-row.current-turn{outline:2px solid #668c6b;outline-offset:2px}.tt-initiative-row.selected>.aw-button{background-color:#e3bc77!important}.tt-initiative-row input{padding:6px!important;font-size:18px!important;text-align:center}.tt-token-inspector{margin-top:20px;border-top:2px solid #a67f48;padding-top:16px}.tt-token-inspector h3{font-size:23px}.tt-token-inspector .aw-stats{gap:8px 12px}.tt-token-inspector .aw-stats b{font-size:18px}.tt-token-inspector .aw-toolbar .aw-button{font-size:14px!important}.tt-conditions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.tt-conditions label{font-size:13px}.tt-combat-inspector{position:sticky;top:66px;max-height:calc(100dvh - 270px);overflow:auto}.tt-party-portrait{width:100%;height:140px;object-fit:cover;object-position:50% 25%;border:2px solid #8c6a43;border-radius:3px}.tt-inventory>div,.aw-resource{display:flex;align-items:center;gap:7px;justify-content:space-between;padding:7px 0;border-bottom:1px solid #bc98615a}.tt-inventory>div span,.aw-resource span{flex:1}.tt-log{max-height:60dvh;overflow:auto;display:flex;flex-direction:column;gap:10px;margin-top:18px}.tt-log article{border-bottom:1px solid #a8865366;padding-bottom:10px}.tt-log p{margin:3px 0}.tt-log small{font-size:12px;color:#816443}.tt-log span{font-size:14px;color:#4e6e60}.aw-exits .aw-button{margin:4px}
.tt-projection-body{margin:0;background:#171315;color:#f1e4bf;font-family:Georgia,serif;overflow:hidden}.tt-projection-body #tableDisplay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center}.tt-scene-display{isolation:isolate}.tt-battle-display .tt-map-scroll{border:0;max-height:none;height:100%;width:100%;display:flex;align-items:center;justify-content:center;background:#171315}.tt-battle-display .tt-map{max-height:100%;width:auto}.tt-battle-display .tt-display-caption{bottom:12px;left:30%;right:30%;padding:6px 12px;font-size:16px;pointer-events:none}.tt-projection-body #displayTools{position:fixed;top:10px;right:12px;z-index:400;display:flex;gap:8px;align-items:center;opacity:.08;transition:opacity .2s}.tt-projection-body #displayTools:is(:hover,:focus-within){opacity:1}.tt-projection-body #displayTools button{font:14px Georgia;background:#e7d2a7;border:1px solid #8f6d41;color:#3d2b1c;padding:8px 12px;border-radius:5px;cursor:pointer}.tt-projection-body #displayConnection{font-size:12px;padding:5px 9px;background:#31251fd9;color:#d9c69f}.tt-projection-body #displayConnection[data-online=false]{color:#ffac94}.tt-curtain{position:absolute;inset:0;background:#271e30 url('/assets/ui/admin-scenes/guild-command.png') center/cover;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:38px;isolation:isolate}.tt-curtain::before{content:'';position:absolute;inset:0;background:#24142acc;z-index:-1}.tt-curtain span{font-size:90px;color:#ccb074}.tt-paused{position:absolute;top:25px;left:25px;background:#34201bcc;padding:12px 22px;font-size:24px;border:1px solid #c39b5a;z-index:200}.tt-display-error{padding:30px;max-width:750px;line-height:1.7}
body:has(.tt-console) .overlay:not(.hidden){z-index:2000!important}
@media(min-width:1850px){.aw-location-layout{grid-template-columns:210px minmax(350px,1fr) 350px}.tt-console-layout{grid-template-columns:240px minmax(0,1fr)}.tt-battle-layout{grid-template-columns:minmax(0,1fr) 380px}}
@media(max-width:1250px){.aw-location-layout{grid-template-columns:160px minmax(0,1fr)}.aw-location-inspector{grid-column:1/-1;max-height:none;overflow:visible}.aw-location-inspector>.aw-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.aw-location-inspector .aw-media-field{grid-column:span 2}.aw-library-layout{grid-template-columns:minmax(0,1fr) 280px}.tt-console-layout{grid-template-columns:170px minmax(0,1fr)}.tt-battle-layout{grid-template-columns:minmax(0,1fr) 290px}.tt-console-header .aw-button{font-size:14px!important}.tt-console-header .aw-toolbar{max-width:600px}.aw-ability-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.aw-library-layout,.tt-battle-layout{grid-template-columns:1fr}.aw-game-list{order:-1}.aw-game-list .aw-game-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.aw-heading{flex-direction:column;align-items:flex-start;padding:20px}.aw-heading>.aw-toolbar{justify-content:flex-start;max-width:none}.aw-actor-layout{grid-template-columns:220px minmax(0,1fr)}.tt-combat-inspector{position:static;max-height:none}.tt-initiative{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.tt-token-inspector .aw-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.tt-console-header{padding:16px 20px}.tt-console-header .aw-toolbar{max-width:440px}.tt-console-body{padding:14px}.aw-two-columns{grid-template-columns:1fr}.tt-scene-preview{aspect-ratio:16/10}}
@media(max-width:700px){.adventure-workshop{padding:8px 0 95px}.aw-editor-heading{flex-direction:column;align-items:flex-start}.aw-location-layout,.aw-actor-layout{grid-template-columns:1fr}.aw-scene-list,.aw-actor-layout>aside{position:static;max-height:280px}.aw-scene-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.aw-scene-list h3{grid-column:1/-1}.aw-location-inspector>.aw-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.aw-location-inspector .aw-media-field{grid-column:1/-1}.aw-game-list .aw-game-links{grid-template-columns:1fr}.aw-tabs{flex-wrap:nowrap;overflow:auto;padding-bottom:6px}.aw-tabs .aw-button{white-space:nowrap;flex:none}.aw-paper{border-width:8px;padding:12px}.aw-actor-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.aw-damage-checks{grid-template-columns:repeat(2,minmax(0,1fr))}.tt-console-header{margin:6px 8px 0;flex-direction:column;align-items:flex-start;padding:14px 18px;gap:8px}.tt-console-header h1{font-size:24px;margin-bottom:4px}.tt-console-header .aw-toolbar{justify-content:flex-start;max-width:none;gap:5px}.tt-console-header .aw-button{padding:6px 8px!important;min-height:30px!important;font-size:13px!important}.tt-console-layout{grid-template-columns:1fr;gap:10px}.tt-console-locations{position:static;max-height:none;display:flex;flex-wrap:wrap;gap:6px;padding:9px}.tt-console-locations>h3{width:100%;font-size:19px}.tt-console-locations>.aw-button{width:auto!important;min-width:120px}.tt-console-locations .aw-toolbar{flex-direction:row}.tt-console-locations>h4,.tt-console-locations>p{display:none}.tt-console-locations>details{width:100%}.tt-console-locations>.aw-check{width:100%}.tt-console-locations .aw-exits{display:flex;gap:6px}.tt-console-body{padding:10px 8px 40px}.tt-scene-preview{aspect-ratio:4/3}.tt-battle-layout .tt-map-scroll{height:390px}.tt-initiative{grid-template-columns:1fr}.tt-display-caption{left:4%;right:4%}.tt-art-library{grid-template-columns:repeat(2,minmax(0,1fr))}.aw-modal-backdrop{padding:10px}.aw-modal{padding:14px;max-height:95dvh}.tt-battle-display .tt-display-caption{left:5%;right:5%}.tt-projection-body #displayTools{flex-wrap:wrap;left:10px;opacity:.5}.aw-editor-heading h1{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.tt-projection-body #displayTools{transition:none}}
.tt-console-header>div:first-child{min-width:0}.tt-command-result{display:block;color:#486b54;font-size:14px;max-width:min(550px,70vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:20px;margin-top:3px}
.tt-area-controls{padding:10px;border:1px solid #b78e51;margin:10px 0;background:#e4c99244}.tt-area-effect{margin-top:18px;border-top:2px solid #b08c55;padding-top:16px}.tt-area-targets{max-height:220px;overflow:auto}.tt-area-effect h3{font-size:21px}
.aw-media-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:15px 0}.aw-media-gallery>.aw-button{display:flex!important;flex-direction:column;text-align:center}.aw-media-gallery img{width:100%;height:110px;object-fit:contain}.aw-media-gallery small{font-size:13px;color:#78603f}.aw-media-gallery span{overflow-wrap:anywhere}
.tt-scene-preview{aspect-ratio:16/9}.tt-scene-canvas{position:relative;flex:none;width:min(100vw,177.777778dvh);height:min(100dvh,56.25vw);overflow:hidden;isolation:isolate}
.tt-display-layer img,.tt-scene-preview .tt-display-layer img{width:100%;height:100%;max-height:none;object-fit:contain}.tt-token{touch-action:none}.tt-control-enabled .tt-map{touch-action:none}
[data-scene-preview] .tt-layer-hidden>img{opacity:.48;filter:brightness(.65) drop-shadow(0 6px 10px #110b0799)}
[data-scene-preview] .tt-layer-hidden.tt-layer-text{opacity:.48;filter:brightness(.65)}

.tt-console-main>.aw-tabs{position:sticky;top:0;z-index:30;padding:8px 4px;background:#dcc396 url('/assets/ui/paper-grain.svg') center/cover;box-shadow:0 3px 8px #29150d55;border-radius:3px}
.aw-wall-list{margin-top:15px}.aw-wall-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;border-top:1px solid #b68a55;padding:10px 0}.aw-wall-row strong{flex:1 1 220px;font-size:15px}.aw-wall-row .aw-check{margin:0}

.aw-media-tools{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.aw-media-tools>.aw-button{margin:0!important}

/* Access and game attachment belong to staff preparation, beside the existing game controls. */
.aw-visibility-badge{display:inline-block;width:fit-content;padding:3px 8px;margin:4px 0;border:1px solid #b09468;border-radius:5px;background:#f1e3c8;color:#574027;font-size:14px;line-height:1.3}
.aw-visibility-badge[data-adventure-visibility=PUBLIC]{border-color:#789781;background:#dce8d5;color:#36543e}
.aw-access-panel{display:flex;align-items:end;gap:18px;flex-wrap:wrap;margin:0 0 16px;padding:14px;border:1px solid #b09468;border-radius:6px;background:#f4e6cc}
.aw-access-panel>.aw-field{flex:1 1 240px}.aw-access-panel>p{flex:2 1 280px;margin:0;font-size:15px;color:#6a5137}
.aw-readonly-note{padding:12px 16px;border:1px solid #a89774;background:#e5ecd9;color:#46583c;border-radius:6px;font-size:16px}
.aw-assignment-error{padding:9px 12px;border:1px solid #b47e63;background:#f2dfcf;color:#7e3325;border-radius:4px;overflow-wrap:anywhere}
html[data-build="5"] #dialog .game-adventure-assignment{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:16px 0;padding:12px 16px;min-width:0}
.game-adventure-assignment>div:first-child{display:grid;gap:3px;flex:1 1 180px;min-width:0;overflow-wrap:anywhere}
.game-adventure-assignment [data-game-adventure-label]{font-size:16px;color:#6b543c}
.game-adventure-assignment>.row{flex:0 1 auto;max-width:100%;min-width:0;justify-content:flex-end}
@media(max-width:600px){html[data-build="5"] #dialog .game-adventure-assignment{padding:10px}.game-adventure-assignment>.row{width:100%;justify-content:flex-start}.game-adventure-assignment button{max-width:100%;white-space:normal}}
@media(max-width:700px){html body .aw-modal:has(:is([data-aw-create-adventure],[data-aw-game-adventure])) :is(.aw-button,select){min-height:44px!important}html body .aw-modal:has(:is([data-aw-create-adventure],[data-aw-game-adventure])) .aw-icon{min-width:44px}}
.tt-display-layer.tt-layer-text{bottom:auto;right:auto;height:auto;max-height:80%;overflow:auto;overflow-wrap:anywhere;line-height:1.4;pointer-events:none}
.tt-scene-preview .tt-layer-text{pointer-events:auto;cursor:grab;max-height:80%;font-size:clamp(13px,1.3vw,21px)}
.tt-participant-tray{margin-top:16px;padding-top:12px;border-top:1px solid #98734277}.tt-participant-tray h4{margin:0 0 5px}.tt-participant-tray>p{font-size:14px;margin:4px 0 10px}.tt-placement-gallery{display:flex;gap:9px;overflow-x:auto;padding:4px 3px 9px;scrollbar-color:#a57b48 #ead6ad;align-items:stretch}.tt-placement-card{width:126px;flex:0 0 126px;border:1px solid #a5804d88;border-radius:6px;background:#f6e4bf88;overflow:hidden}.tt-placement-gallery .tt-placement-handle{width:100%;padding:7px!important;min-height:142px!important;border:0!important;background:transparent!important;cursor:grab;gap:4px!important}.tt-placement-handle:active{cursor:grabbing}.tt-placement-gallery .tt-placement-handle img{width:100%;height:78px;object-fit:contain;pointer-events:none}.tt-placement-handle>span:not(.tt-placement-initials){font-size:15px;line-height:1.15}.tt-placement-handle small{font-size:11px;line-height:1.25;color:#715532}.tt-placement-initials{height:78px;display:flex;align-items:center;justify-content:center;width:100%;font-size:36px;color:#7e5731;background:#cfad7570;border-radius:4px}.tt-placement-options{display:flex;flex-wrap:wrap;justify-content:center;gap:3px;padding:0 4px 6px}.tt-placement-gallery .tt-placement-options .aw-button{font-size:11px!important;line-height:1.2;min-height:24px!important;padding:3px 5px!important}.tt-placement-drop-target{outline:4px solid #d1ab51;outline-offset:-4px}.tt-placement-handle[disabled]{cursor:default;opacity:.6}.tt-placement-gallery .tt-placement-options button[disabled]{opacity:.6}
.tt-layer-quantity{position:absolute;right:4%;top:4%;min-width:38px;padding:5px 10px;border:2px solid #dfc082;border-radius:24px;background:#35271ce8;color:#fff2c6;font-size:clamp(17px,2vw,30px);font-weight:bold;line-height:1;box-shadow:0 2px 9px #0008;pointer-events:none}.tt-scene-preview .tt-layer-quantity{font-size:18px;min-width:30px;padding:4px 8px}
.tt-layer-text-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-height:90px;overflow:auto;margin:4px 0;font-size:15px}
.tt-audio-output.aw-paper{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin:8px 0 12px;padding:8px 12px;border-width:6px}
.tt-audio-output .aw-toolbar{margin:0}.tt-audio-output p{flex:1 1 280px;margin:0;color:#5c513c;font-size:14px;overflow-wrap:anywhere}
@media(max-width:700px){.tt-audio-output.aw-paper{padding:8px}.tt-audio-output .aw-toolbar{width:100%}.tt-audio-output .aw-button{min-height:44px!important;white-space:normal}}

/* Private, comfortable reading surface: no changes to player projections. */
.aw-modal:has(.tt-scene-reading){width:min(1120px,100%);height:min(880px,92dvh);max-height:92dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:14px;overflow:hidden}
.aw-modal:has(.tt-scene-reading)>header h2{margin:0}
.aw-modal:has(.tt-scene-reading)>footer{margin-top:0}
.tt-scene-reading{min-height:0;display:flex;flex-direction:column;overflow:hidden}
.tt-scene-reading-location{flex:none;color:#725438;font-size:18px;border-bottom:1px solid #b18a5366;padding-bottom:12px}
.tt-scene-reading-text{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:10px 22px 24px 6px;white-space:pre-wrap;overflow-wrap:anywhere;font-family:Georgia,'Times New Roman',serif;font-size:clamp(22px,1.9vw,28px);line-height:1.65;color:#38281b;user-select:text}
.tt-scene-reading-text:focus-visible{outline:2px solid #538c7799;outline-offset:-2px;border-radius:4px}
@media(max-width:700px){.aw-modal:has(.tt-scene-reading){height:94dvh;max-height:94dvh;gap:10px}.tt-scene-reading-text{font-size:22px;padding-right:12px}.tt-scene-reading-location{font-size:16px}}

.tt-area-planner{margin:8px 0;padding:10px;border:1px solid #af8958;border-radius:8px;background:#f7ecd4;color:#382717}
.tt-area-planner h3{margin:0 0 6px;font-size:19px}.tt-area-planner p{margin:6px 0}
.tt-area-planner .aw-fields{display:flex;flex-wrap:wrap;gap:8px;align-items:end}
.tt-area-planner .aw-field{flex:1 1 130px;min-width:110px}.tt-area-planner .aw-field[hidden]{display:none}
.tt-area-planner .aw-wide{flex-basis:100%}.tt-area-planner .tt-area-targets{display:flex;flex-wrap:wrap;gap:6px}
.tt-area-planner .tt-area-targets label{padding:5px 8px;border:1px solid #ae8a53;border-radius:6px;background:#fff4db}
.tt-area-planner .tt-area-controls input[type=number]{width:100%}

.tt-area-planner form>.aw-field.aw-wide{flex:1 1 170px}
.tt-area-planner form>.aw-check.aw-wide{flex:1 1 200px}
.tt-area-planner .tt-area-pick{display:flex;gap:6px;flex-wrap:wrap}
.tt-area-planner label input,.tt-area-planner label select{min-height:34px;font-size:17px}

html body .tt-area-planner{padding:7px;font-size:16px}
html body .tt-area-planner .tt-area-effect{margin:5px 0 0;padding:5px 0 0;border:0}
html body .tt-area-planner .tt-area-controls{margin:0;padding:4px;border:0}
html body .tt-area-planner .aw-fields{gap:5px}
html body .tt-area-planner .aw-field{gap:2px;flex:1 1 115px;min-width:100px}
html body .tt-area-planner form>.aw-field.aw-wide{flex:1 1 140px}
html body .tt-area-planner :is(input:not([type=checkbox]),select,button){min-height:30px!important;padding:4px 7px;font-size:16px!important}
html body .tt-area-planner .tt-area-targets label{padding:3px 6px;margin:0}
html body .tt-area-planner h3{font-size:18px;margin:0 0 3px}
html body .tt-area-planner .tt-area-effect>p{margin:3px 0 5px;font-size:17px}
.tt-area-advanced summary{cursor:pointer;font-size:15px}

html body .tt-inline-area{flex:1 1 100%;width:100%;padding:5px 0}
.tt-inline-area-geometry{display:flex;flex-wrap:wrap;align-items:end;gap:6px}
.tt-inline-area-geometry label{display:grid;gap:2px;font-size:16px}
html body .tt-inline-area-geometry input{width:80px!important;min-width:60px!important}
html body .tt-inline-area-geometry :is(input,select,button){min-height:32px!important;font-size:17px!important;padding:4px 7px}
.tt-inline-area-targets{display:flex;gap:5px;flex-wrap:wrap;margin:6px 0}
.tt-inline-area-targets label{border:1px solid #aa8451;border-radius:5px;padding:3px 6px;background:#f5e7c7}
.tt-inline-area-targets label:has(input:checked){background:#dce8cd;border-color:#6b8156}
.tt-map-area-actions{position:sticky;bottom:6px;z-index:4;display:flex;justify-content:center;pointer-events:none;margin-top:-46px;min-height:46px}
.tt-map-area-actions button{pointer-events:auto;box-shadow:0 2px 9px #24170d66}
.tt-area-token-check{cursor:pointer}.tt-area-token-check:focus{outline:3px solid #ffc968}

.tt-audio-credits{display:block;margin-top:7px;font-size:14px;line-height:1.3;color:#5b4933}.tt-audio-credits a{color:#465d31;text-decoration:underline}
/* Personal workshop column widths; the map occupies the remaining space. */
.aw-location-layout>.aw-scene-list,.aw-location-layout>.aw-location-inspector{position:relative;overflow:auto;min-width:0}
.aw-panel-resize{position:absolute;top:0;bottom:0;width:14px;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;cursor:col-resize;touch-action:none;z-index:3}
.aw-panel-resize::after{content:"";position:absolute;top:16px;bottom:16px;left:5px;width:4px;border-radius:4px;background:#a17a4666}
.aw-panel-resize:hover::after,.aw-panel-resize:focus-visible::after{background:#73522d}
.aw-panel-resize-left{right:0}.aw-panel-resize-right{left:0}
@media(min-width:1251px){.aw-location-layout{grid-template-columns:minmax(140px,min(var(--aw-left,185px),30%)) minmax(0,1fr) minmax(240px,min(var(--aw-right,300px),40%))}}
@media(min-width:701px) and (max-width:1250px){.aw-location-layout{grid-template-columns:minmax(140px,min(var(--aw-left,185px),30%)) minmax(0,1fr)}.aw-panel-resize-right{display:none}}
@media(max-width:700px){.aw-panel-resize{display:none}}

/* All three columns can exceed the viewport; widths belong to the user. */
.aw-location-layout{grid-template-columns:var(--aw-left,185px) var(--aw-right,300px) var(--aw-center,minmax(350px,1fr));overflow-x:auto;max-width:100%;min-width:0}
.aw-location-layout>:is(.aw-scene-list,.aw-map-panel,.aw-location-inspector){grid-column:auto;position:relative;min-width:0;max-width:none;overflow:auto;box-sizing:border-box}
.aw-location-layout>.aw-scene-list{display:block}
.aw-location-layout .aw-panel-resize{display:block;left:auto;right:0}

/* The console has its own personal widths; small screens keep panels stacked. */
.tt-console-layout{grid-template-columns:var(--tt-left,205px) var(--tt-center,minmax(420px,1fr)) var(--tt-right,300px);overflow-x:auto;max-width:100%;min-width:0}
.tt-console-layout>:is(.tt-console-locations,.tt-console-main,.tt-console-rail),.tt-battle-layout>:is(.aw-map-panel,.tt-combat-inspector){position:relative;min-width:0;box-sizing:border-box}
.tt-console-layout .aw-panel-resize{display:block;right:0;left:auto;z-index:5}
.tt-console-main,.tt-console-rail{padding-right:14px}
.tt-battle-layout{grid-template-columns:var(--tt-map,minmax(280px,1fr)) var(--tt-inspector,340px);overflow-x:auto;max-width:100%}
.tt-drawing-options{display:flex;align-items:center;gap:10px;flex-wrap:wrap;flex-basis:100%;padding:8px 0;border-block:1px solid #a17a4644}
.tt-drawing-options label{display:inline-flex;align-items:center;gap:5px}
.tt-drawing-options,.tt-drawing-options label{color:#473320}
html body :is(.adventure-workshop,.tt-console) .tt-drawing-options input[type=color]{width:42px;min-width:42px;height:32px;min-height:32px;padding:2px;flex:none;background:#f1e2c3;box-sizing:border-box}
.tt-drawing-options input[type=checkbox]{width:auto}.tt-drawing-options input[type=color]{width:42px;height:30px;padding:2px}
.tt-map[data-tool^=draw-]{cursor:crosshair;touch-action:none}
.aw-state-scene-preview [data-scene-preview]{margin:8px 0}
.tt-console[data-table-console] .tt-console-layout{grid-template-columns:var(--tt-left,290px) var(--tt-center,minmax(420px,1fr)) var(--tt-right,320px)}
.tt-console[data-table-console] :is(.tt-console-locations,.tt-console-main,.tt-console-rail){position:relative}
.tt-console[data-table-console] .tt-battle-layout{display:grid;grid-template-columns:var(--tt-map,minmax(280px,1fr)) var(--tt-inspector,340px)}
@media(max-width:800px){.tt-console[data-table-console] .tt-console-layout,.tt-console[data-table-console] .tt-battle-layout{grid-template-columns:minmax(0,1fr)}.tt-console[data-table-console] .aw-panel-resize{display:none}}
@media(max-width:700px){.tt-console-layout,.tt-battle-layout{grid-template-columns:minmax(0,1fr)}.tt-console-layout .aw-panel-resize{display:none}.tt-console-main,.tt-console-rail{padding-right:0}.tt-console-layout>.tt-console-locations{display:flex}.tt-drawing-options{font-size:13px}}
@media(max-width:700px){.aw-library-layout{grid-template-columns:minmax(0,1fr)}.aw-library-layout>div{min-width:0}.tt-console-header{min-width:0;max-width:100%;box-sizing:border-box}.tt-console-header>div{min-width:0;max-width:100%}}


/* assets/ui/tabletop-media.css */
[data-transition-surface]{position:relative;isolation:isolate}
.tt-transition-visual{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;z-index:1}
[data-transition-surface="battle"]>.tt-transition-visual{object-fit:contain;background:#493c2b}
.tt-map-media{width:100%;height:100%;position:relative;overflow:hidden;pointer-events:none}
.tt-map-media>video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
video[data-media-error=true]{background:#372b1e}


/* assets/ui/adventure-location-editor.css */
.adventure-workshop .aw-location-layout{--aw-left:270px;--aw-right:340px}
.adventure-workshop .aw-location-row>.aw-location-heading{display:grid;grid-template-columns:27px minmax(0,1fr) 32px;align-items:center;gap:5px;margin:0}
.aw-location-reorder{display:grid;gap:3px}
.adventure-workshop .aw-location-reorder .aw-button{min-width:25px!important;min-height:25px!important;padding:2px!important}
.aw-location-heading>[data-aw=scene]{min-width:0;text-align:left;overflow-wrap:anywhere;padding:7px 5px!important}
.aw-location-heading>[data-aw=new-scene-state]{min-width:30px!important;padding:5px!important;font-size:21px!important}
.adventure-workshop .aw-location-row>.aw-location-states,.aw-location-states{display:flex;flex-wrap:nowrap;gap:4px;overflow-x:auto;max-width:100%;padding:4px 0;margin:5px 0 0;scrollbar-width:thin}
.aw-location-states .aw-button{flex:0 0 auto;min-height:28px!important;padding:4px 7px!important;font-size:12px!important;white-space:nowrap}
.aw-location-states [aria-pressed=true]{background:#d5e0b6!important;border-color:#718048!important;box-shadow:inset 0 0 0 1px #718048}
.adventure-workshop .location-state-flow,.tt-console .tt-location-states.location-state-flow,.aw-modal .location-state-flow{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:4px;max-width:100%;min-width:0;overflow-x:auto;padding:5px 0 6px;margin-left:0;scrollbar-width:thin}
.location-state-flow>.aw-button{flex:0 0 auto;white-space:nowrap;min-height:28px!important}
.adventure-workshop .location-state-flow>.aw-button,.tt-console .location-state-flow>.aw-button,.aw-modal .location-state-flow>.aw-button{max-width:none}
.state-transition-connector{display:grid;grid-template-rows:28px 22px;gap:3px;flex:0 0 30px;align-items:center}
.location-state-flow .state-transition-connector .aw-button{display:flex;align-items:center;justify-content:center;min-width:28px!important;width:28px;min-height:0!important;height:100%;padding:0!important;line-height:1}
.location-state-flow .state-transition-connector .state-transition-play{font-size:23px!important}
.location-state-flow .state-transition-connector .state-transition-create{font-size:18px!important}
.state-transition-play:disabled{opacity:.4}
.aw-rehearsal .state-transition-connector{grid-template-rows:28px}
.aw-rehearsal .state-transition-create{display:none}
@media(max-width:600px){.tt-console .tt-location-group{display:block;max-width:none;width:100%;min-width:0}}
.aw-location-common{padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid #a17a4666}
.aw-location-state-editor{display:grid;gap:10px}
.aw-location-state-editor h3,.aw-location-state-editor h4{margin:0}
.aw-location-settings{margin-top:18px;padding-top:12px;border-top:1px solid #a17a4666}
.aw-audio-selector{display:grid;gap:5px;min-width:0}
.aw-media-tools{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.aw-media-tools .aw-button:has(input[type=file]){position:relative;overflow:hidden;display:inline-flex;align-items:center}
.aw-media-tools .aw-button input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;min-width:0}
.aw-media-field>.aw-media-preview{display:block;width:100%;max-height:240px;object-fit:contain;background:#241d17}
.aw-state-scene-preview{margin-bottom:14px}
.aw-state-scene-preview>summary{margin-bottom:8px;cursor:pointer}
.aw-state-scene-preview .tt-scene-preview{aspect-ratio:16/9;min-height:120px;position:relative;overflow:hidden}
.tt-transition-controls{display:grid;gap:9px}
.tt-transition-controls h3{margin:0}
.tt-transition-controls .aw-toolbar{gap:5px}
.tt-transition-entry{display:flex;flex-wrap:wrap;align-items:center;gap:5px;width:100%}
.tt-transition-controls input[type=range]{width:100%;min-width:0}
.aw-modal:has(.aw-rehearsal){width:min(1600px,95vw);max-width:none}
.aw-rehearsal-locations{display:flex;gap:14px;overflow-x:auto;padding-bottom:8px}
.aw-rehearsal-locations>section{flex:0 0 auto;min-width:160px;max-width:360px}
.aw-rehearsal-surfaces,.aw-rehearsal-script{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:14px 0}
.aw-rehearsal-surfaces>section{min-width:0}
.aw-rehearsal-surfaces .tt-scene-preview{position:relative;aspect-ratio:16/9;overflow:hidden}
.aw-rehearsal-surfaces .tt-map-scroll{max-height:55vh;overflow:auto}
.aw-rehearsal-script{grid-template-columns:repeat(2,minmax(0,1fr))}
.aw-rehearsal-script .aw-pre{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:850px){.aw-rehearsal-surfaces,.aw-rehearsal-script{grid-template-columns:1fr}.aw-modal:has(.aw-rehearsal){width:100%}}


/* assets/ui/adventure-timeline-editor.css */
.aw-timeline-editor{min-width:0;padding:20px!important}
.ate-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;flex-wrap:wrap;margin-bottom:18px}
.ate-heading h2{margin:0 0 7px}
.ate-heading p{margin:0;max-width:760px;line-height:1.5}
.ate-settings{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.ate-field{display:grid;align-content:start;gap:6px;min-width:0}
.ate-field>span{font-size:.9em}
.ate-field input,.ate-field select{width:100%;min-width:0;box-sizing:border-box;padding:9px;border:1px solid #a88c61;border-radius:7px;background:#fff9eb;color:#392f23;font:inherit}
.ate-outputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}
.ate-outputs h3{margin:0 0 8px;font-size:1em}
.ate-output{position:relative;aspect-ratio:16/9;overflow:hidden;background:#362d25;border:1px solid #a88c61;border-radius:10px;display:grid;place-items:center;isolation:isolate}
.ate-output .ate-base-media{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.ate-empty-output{color:#e7d8bb;opacity:.7}
.ate-transport{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:15px}
.ate-transport .ate-time{font-variant-numeric:tabular-nums;min-width:124px}
.ate-sound,.ate-zoom{display:flex;align-items:center;gap:7px}
.ate-zoom{margin-left:auto}
.ate-zoom select{max-width:90px;padding:6px;background:#fff8e8;border:1px solid #a88c61;border-radius:5px}
.ate-scrub{display:block;width:100%;margin:14px 0 20px;accent-color:#39776c}
.ate-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:18px;align-items:start}
.ate-timeline-panel{min-width:0}
.ate-scroll{overflow:auto;max-width:100%;max-height:620px;border:1px solid #a88c61;border-radius:9px;background:#e9dec7;overscroll-behavior:contain}
.ate-ruler-row,.ate-track{display:flex;min-width:100%;position:relative}
.ate-ruler-row{height:37px;background:#cbb998;position:sticky;top:0;z-index:6}
.ate-track-label{box-sizing:border-box;flex:0 0 164px;width:164px;padding:9px 10px;position:sticky;left:0;z-index:5;background:#e2d3b7;border-right:1px solid #ac9675;display:flex;justify-content:space-between;align-items:center;gap:7px;font-size:.9em}
.ate-track-label strong{overflow-wrap:anywhere}
.ate-track-label>div{display:flex;gap:3px}
.ate-track-label .aw-button{padding:4px!important;min-height:28px!important;font-size:12px!important}
.ate-ruler,.ate-lane{position:relative;flex-shrink:0;overflow:hidden;touch-action:pan-y}
.ate-ruler{height:37px;cursor:crosshair}
.ate-ruler>span{position:absolute;top:7px;font-size:11px;padding-left:4px;border-left:1px solid #826948;white-space:nowrap}
.ate-lane{height:76px;cursor:crosshair;background:repeating-linear-gradient(90deg,transparent,transparent 47px,#735d3b1a 47px,#735d3b1a 48px)}
.ate-track{border-top:1px solid #ad9673}
.ate-track-audio .ate-lane{height:66px;background-color:#e0e8d6}
.ate-track-battle .ate-lane{background-color:#ded8e6}
.ate-clip{position:absolute;top:8px;height:58px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:3px;padding:7px 11px;border:1px solid #46786d;border-radius:5px;background:linear-gradient(#b8d4c9,#92bcae);color:#183d35;text-align:left;overflow:hidden;cursor:grab;touch-action:none;user-select:none;font:inherit}
.ate-clip-video{background:linear-gradient(#bed0dc,#8db0c5);border-color:#4c7790;color:#233e50}
.ate-clip-audio{top:6px;height:52px;background:linear-gradient(#d1dbaa,#afc584);border-color:#6b8546;color:#34451e}
.ate-clip b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.ate-clip small{white-space:nowrap;font-size:11px;opacity:.85}
.ate-clip.selected{outline:3px solid #9b6a28;outline-offset:-2px;z-index:3}
.ate-clip:focus-visible{outline:3px solid #1e6c67;outline-offset:1px}
.ate-clip>[data-ate-resize]{position:absolute;top:0;bottom:0;width:8px;cursor:ew-resize;background:#183d3522}
.ate-clip>[data-ate-resize=left]{left:0}
.ate-clip>[data-ate-resize=right]{right:0}
.ate-playhead{position:absolute;top:0;bottom:0;width:2px;background:#9e382d;pointer-events:none;z-index:4;box-shadow:0 0 2px #fff}
.ate-track-add{box-sizing:border-box;display:flex;position:sticky;left:0;align-items:center;gap:8px;width:max-content;max-width:100%;min-height:42px;padding:5px 10px;font-size:.8em;background:#efe5cf}
.ate-track-add>span{width:144px}
.ate-track-add .aw-button{padding:5px 9px!important;min-height:30px!important;font-size:13px!important}
.ate-track-add input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.ate-track-add label:focus-within{outline:2px solid #1e6c67;outline-offset:2px}
.ate-timeline-panel>.aw-toolbar{margin-top:12px}
.ate-inspector{min-width:0;padding:14px;border:1px solid #ad9673;border-radius:9px;background:#fff7e466}
.ate-inspector h3{margin:0 0 14px}
.ate-inspector>small{display:block;overflow-wrap:anywhere;margin-top:12px;font-size:11px;opacity:.65}
.ate-inspector .aw-toolbar{margin-top:14px}
.ate-clip-fields{display:grid;gap:11px}
@media(max-width:1150px){.ate-layout{grid-template-columns:minmax(0,1fr)}.ate-clip-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.ate-settings{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.aw-timeline-editor{padding:12px!important}.ate-settings{grid-template-columns:repeat(2,minmax(0,1fr))}.ate-outputs{grid-template-columns:minmax(0,1fr)}.ate-clip-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.ate-zoom{margin-left:0}.ate-track-add>span{width:auto}.ate-track-label{flex-basis:135px;width:135px}.ate-heading .aw-toolbar{width:100%}}


/* assets/ui/player-change-notices.css */
.player-change-notices{position:fixed;right:20px;bottom:24px;width:min(360px,calc(100vw - 32px));display:grid;gap:10px;z-index:14000;pointer-events:none}
.player-change-notice{position:relative;padding:16px 40px 14px 18px;border:1px solid #a77b46;border-radius:12px;background:#fff3d8;color:#392a1c;box-shadow:0 6px 24px #20140855;pointer-events:auto;animation:character-notice-in .18s ease-out}
.player-change-notice strong{font-size:19px}.player-change-notice p{margin:7px 0 0;font-size:17px;line-height:1.4;overflow-wrap:anywhere}.player-change-notice button{position:absolute;right:8px;top:8px;width:28px;height:28px;border:0;background:transparent;color:inherit;font-size:23px;cursor:pointer}
@keyframes character-notice-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.player-change-notices{right:16px;bottom:80px}}
@media(prefers-reduced-motion:reduce){.player-change-notice{animation:none}}


/* assets/ui/level-up-notices.css */
.level-up-notices{position:fixed;right:18px;top:max(calc(var(--v4-hud,72px) + 12px),env(safe-area-inset-top));max-height:calc(100dvh - 170px);overflow-y:auto;overscroll-behavior:contain;width:min(380px,calc(100vw - 30px));display:grid;gap:12px;z-index:15000;pointer-events:none}
.level-up-celebration,.level-up-banner{box-sizing:border-box;border:2px solid #b78731;border-radius:12px;background:linear-gradient(120deg,#fff5d9,#edce8a);color:#3c2918;box-shadow:0 5px 24px #35200c55,inset 0 0 0 3px #fff5d988;font-family:inherit;animation:level-ready-arrive .35s ease-out}
.level-up-celebration{position:relative;pointer-events:auto;padding:20px 36px 18px 18px}.level-up-celebration strong{font-size:21px;line-height:1.25}.level-up-celebration p{margin:10px 0;font-size:18px;line-height:1.45;overflow-wrap:anywhere}
.level-up-action{position:static!important;width:auto!important;min-height:38px!important;max-width:100%;padding:8px 12px!important;border:1px solid #7c5625!important;border-radius:7px;background:#315b4c!important;color:#fff5d6!important;font:inherit;font-size:17px!important;font-weight:700;cursor:pointer;white-space:normal;box-shadow:0 2px 5px #47311933}
.level-up-celebration .level-up-close{position:absolute;right:7px;top:5px;width:26px;height:28px;padding:0;border:0;background:transparent;color:#57381e;font-size:25px;cursor:pointer}
.level-up-banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 10px 12px;padding:12px 16px}.level-up-banner>div{flex:1 1 240px;min-width:0}.level-up-banner strong{font-size:20px}.level-up-banner p{margin:5px 0 0;font-size:16px;line-height:1.4;overflow-wrap:anywhere}.level-up-emblem{font-size:36px;color:#956a17}
.hero-actions [data-progress-levelup].is-level-ready{background:#315b4c!important;color:#fff4cb!important;border:2px solid #c79b3d!important;box-shadow:0 0 0 3px #d7b45b44;animation:level-ready-glow 1.2s ease-in-out 3}
@keyframes level-ready-arrive{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}@keyframes level-ready-glow{50%{box-shadow:0 0 0 6px #d7b45b66}}
@media(max-width:600px){.level-up-notices{right:15px}.level-up-banner{margin:6px;padding:10px;gap:8px}.level-up-banner>div{flex-basis:180px}.level-up-banner strong{font-size:18px}.level-up-banner p{font-size:15px;line-height:1.35}.level-up-banner .level-up-action{width:100%!important}.level-up-emblem{display:none}}
@media(prefers-reduced-motion:reduce){.level-up-celebration,.level-up-banner,.hero-actions [data-progress-levelup].is-level-ready{animation:none}}


/* assets/ui/billing-cash.css */
.billing-charge-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:100%}.billing-charge-actions>button{min-height:38px;white-space:normal}.cash-pending-note{flex:1 0 100%;max-width:420px;line-height:1.4;color:#6a431f!important}
.cash-requests{max-width:900px;margin:auto}.cash-requests-help{padding:12px 14px;border:1px solid #bfa26f;border-radius:7px;background:#fff3d5;line-height:1.45}.cash-requests-list{display:grid;gap:12px}.cash-request{padding:14px;border:1px solid #bba078;border-radius:9px;background:#fff6e4}.cash-request header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.cash-request header strong{font-size:20px}.cash-request header small{display:block;line-height:1.4}.cash-request header b{font-size:20px;white-space:nowrap}.cash-request label{display:grid;gap:5px;margin:12px 0}.cash-request textarea{box-sizing:border-box;width:100%;resize:vertical;color:#33291d!important;background:#fffaf0!important;font:inherit;padding:8px;border:1px solid #b69a6f;border-radius:6px}.cash-request-actions,.cash-request-pages{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.cash-request-actions button,.cash-request-pages button{white-space:normal;min-height:40px}.game-minimum-warning{padding:12px 15px;border:1px solid #bda06d;border-radius:8px;background:#fff0cb;color:#49351e;line-height:1.5;margin:10px 0 16px}
@media(max-width:600px){.billing-unpaid-list article{flex-wrap:wrap}.billing-charge-actions{width:100%}.billing-charge-actions>button{flex:1 1 140px}.cash-request header{flex-wrap:wrap;gap:5px}.cash-request-actions button{width:100%}.cash-request{padding:11px}}


/* assets/ui/game-reports.css */
.game-reports-screen{display:grid;gap:18px;min-width:0;color:#432f20;font:16px/1.5 system-ui,sans-serif}
.game-reports-screen *,.game-report-block *{box-sizing:border-box}
.game-reports-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 28px;border:1px solid #bc955d;border-radius:18px;background:linear-gradient(110deg,#33251ef2,#60442aed);box-shadow:0 8px 24px #26190b33;color:#fff0d3}
.game-reports-screen .game-reports-hero h1{margin:5px 0 7px;color:#fff1d6;font:700 clamp(25px,3.5vw,36px)/1.15 Georgia,serif}
.game-reports-screen .game-reports-hero p{margin:0;color:#eddbbc;font-size:15px}
.game-reports-eyebrow{font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#8c693e}
.game-reports-hero .game-reports-eyebrow{color:#d7b77d}
.game-report-private{flex:0 0 auto;max-width:100%;padding:6px 10px;border:1px solid #bc9a68;border-radius:100px;font-size:11px;color:#6b5035;background:#fff8e9;white-space:normal}
.game-reports-hero .game-report-private{color:#f3dfba;background:#241c1644;border-color:#a78652}
/* The legacy parchment theme applies dark text to every descendant with !important. */
html[data-build="5"] body .game-reports-screen .game-reports-hero h1{color:#fff1d6!important}
html[data-build="5"] body .game-reports-screen .game-reports-hero p{color:#eddbbc!important}
html[data-build="5"] body .game-reports-screen .game-reports-hero .game-reports-eyebrow{color:#d7b77d!important}
html[data-build="5"] body .game-reports-screen .game-reports-hero .game-report-private{color:#f3dfba!important}
html[data-build="5"] body .game-reports-screen .game-reports-pending h2 b{color:#fff3da!important}
.game-reports-ledger,.game-reports-pending{min-width:0;padding:22px;border:1px solid #b99a6d;border-radius:16px;background:#f6e9ce url('/assets/ui/paper-grain.svg');box-shadow:0 6px 20px #2a1b1026}
.game-reports-screen h2{margin:0;font:700 24px/1.3 Georgia,serif;color:#4f3827}
.game-reports-pending{border-left:5px solid #ac7540;background-color:#f6e2bb}
.game-reports-pending h2{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:22px}
.game-reports-pending h2 b{display:inline-grid;place-items:center;min-width:28px;min-height:28px;padding:1px 8px;border-radius:100px;background:#8e542c;color:#fff3da;font:700 14px system-ui,sans-serif}
.game-reports-pending p{margin:5px 0 0;color:#71543a;font-size:14px}
.game-reports-pending-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px;max-height:190px;overflow:auto;overscroll-behavior:contain}
.game-reports-pending-list>button{display:grid;gap:3px;text-align:left;max-width:100%;flex:0 1 260px;min-height:48px}
.game-reports-pending-list b{font-size:14px;overflow-wrap:anywhere}.game-reports-pending-list small{font-size:12px;color:#76593d}
.game-reports-filters{display:grid;grid-template-columns:minmax(180px,2fr) repeat(2,minmax(125px,1fr)) minmax(150px,1.2fr);gap:12px;align-items:end;padding-bottom:20px;border-bottom:1px solid #c8ae85}
.game-reports-filters label,.game-report-label{display:grid;gap:6px;min-width:0;margin:0;font-weight:600;font-size:13px;color:#715337}
.game-reports-filters :is(input,select){width:100%;min-width:0;max-width:100%;height:43px;margin:0;padding:8px 10px;border:1px solid #b99d77;border-radius:8px;background:#fffaf0;color:#473222;font:14px system-ui,sans-serif}
.game-reports-filter-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px}
.game-reports-screen button,.game-report-block button{max-width:100%;min-height:40px;white-space:normal;line-height:1.35;font-size:14px;overflow-wrap:anywhere}
.game-reports-filter-actions button{padding:9px 18px}
.game-reports-screen button:disabled,.game-report-block button:disabled{opacity:.55;cursor:wait}
.game-reports-screen :is(input,select,textarea,button,[tabindex]):focus-visible,.game-report-block :is(textarea,button):focus-visible{outline:3px solid #a67c40;outline-offset:2px}
.game-reports-output-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:22px 0 12px}
.game-reports-output-heading h2{font-size:23px}
.game-reports-output{min-width:0;max-height:min(65vh,760px);max-height:min(65dvh,760px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 20px;border:1px solid #c1a37a;border-radius:10px;background:#fff7e6;white-space:normal}
.game-reports-record{min-width:0;margin:0;padding:24px 0;border-bottom:1px solid #d5bd96}
.game-reports-record:last-child{border-bottom:0}
.game-reports-record>header{margin-bottom:13px;border-left:3px solid #9a713f;padding-left:13px}
.game-reports-record>header>span{font-size:12px;font-weight:600;color:#7e5e3c;overflow-wrap:anywhere}
.game-reports-record h3{margin:3px 0 0;font:700 22px/1.3 Georgia,serif;color:#523825;overflow-wrap:anywhere}
.game-reports-record-text,.game-report-readonly{font:15px/1.75 system-ui,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;color:#463327}
.game-reports-empty{margin:0;padding:28px 0;font-size:15px;color:#80664b}
.game-reports-loading{font-size:14px;color:#71543b}
.game-reports-error{margin:12px 0;padding:12px 14px;border:1px solid #bd8b72;border-radius:8px;background:#fff0dc;color:#923b2e;font-size:14px;overflow-wrap:anywhere}
.game-reports-error button{margin-left:8px}
.game-reports-selected{margin:20px 0}.game-reports-selected>h2{font-size:20px;margin-bottom:10px;overflow-wrap:anywhere}.game-reports-selected>h2 small{display:block;font:13px system-ui,sans-serif;color:#80654a;margin-top:4px}
.game-report-block{min-width:0;padding:20px;border:1px solid #bfa078;border-radius:12px;background:#f8edda;color:#4d3826;font:15px/1.5 system-ui,sans-serif}
.game-report-block>header{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:15px}
.game-report-block h3{margin:3px 0 0;font:700 23px/1.25 Georgia,serif;color:#513a27}
.game-report-block form{display:block;margin:0}
.game-report-block textarea{display:block;resize:vertical;width:100%;min-width:0;min-height:200px;max-height:65vh;padding:13px 15px;border:1px solid #b89b73;border-radius:8px;background:#fffaf0;color:#493727;font:15px/1.6 system-ui,sans-serif;box-shadow:inset 0 2px 5px #6e45200a}
.game-reports-muted{margin:8px 0;font-size:12px;color:#82684d;line-height:1.5}
.game-report-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:14px}
.game-report-actions>[role="status"]{font-size:12px;color:#7f5e39}
.game-report-actions>button[type="submit"]{margin-left:auto;min-height:44px;padding:10px 18px;background:#576448;border-color:#425136;color:#fff8e6}
.game-report-byline{margin:0 0 8px;font-size:12px;color:#8a6844}
.game-report-conflict{margin-top:14px;padding:14px;border:1px solid #ba8b57;border-radius:8px;background:#fff1d6;font-size:14px;color:#75502c}
.game-report-conflict>p{margin:0 0 10px}.game-report-conflict summary{cursor:pointer;font-weight:600}.game-report-conflict .game-report-readonly{padding:10px 0}
.game-report-reminder,.game-reports-header-reminder{display:inline-flex;align-items:center;justify-content:center;gap:6px;max-width:100%;padding:6px 11px;border:1px solid #c89351;border-radius:100px;background:#fff0ce;color:#80502a;font:600 12px/1.3 system-ui,sans-serif;cursor:pointer;white-space:normal}
.game-reports-header-reminder{min-height:34px;flex:0 0 auto;background:#674326;color:#fff0d3;border-color:#c89554;box-shadow:0 2px 6px #27180b24}
.game-reports-header-reminder b{display:inline-grid;place-items:center;min-width:22px;min-height:22px;padding:2px 5px;border-radius:100px;background:#f6d798;color:#58371f;font-size:12px}
.game-report-reminder:hover,.game-reports-header-reminder:hover{filter:brightness(1.08)}
.game-reports-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:800px){.game-reports-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.game-reports-game-filter{grid-column:1/-1}.game-reports-filters>label:last-of-type{grid-column:1/-1}.game-reports-hero{padding:20px}.game-reports-ledger,.game-reports-pending{padding:18px}}
@media(max-width:480px){.game-reports-screen{gap:12px}.game-reports-hero{align-items:flex-start;flex-direction:column;gap:10px;padding:18px;border-radius:12px}.game-reports-hero p{font-size:13px}.game-reports-ledger,.game-reports-pending{padding:13px;border-radius:12px}.game-reports-filters{gap:10px}.game-reports-filter-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.game-reports-filter-actions button{min-width:0;width:100%;padding:9px}.game-reports-output{max-height:60vh;max-height:60dvh;padding:0 12px}.game-reports-record{padding:18px 0}.game-reports-record h3{font-size:20px}.game-reports-record-text,.game-report-readonly{font-size:14px;line-height:1.7}.game-reports-pending-list>button{flex:1 1 100%}.game-reports-output-heading h2{font-size:21px}.game-report-block{padding:13px}.game-report-block h3{font-size:21px}.game-report-private{font-size:10px}.game-report-block textarea{padding:10px;min-height:210px;font-size:16px}.game-report-actions>button[type="submit"]{width:100%;margin:0}.game-report-conflict .game-report-actions{display:grid;grid-template-columns:minmax(0,1fr)}.game-reports-error button{margin:8px 0 0}.game-reports-header-reminder{padding:4px 8px;font-size:11px}}


/* assets/ui/room-rentals.css */
.room-rentals{--rent-green:#315f50;--rent-ink:#30281f;--rent-gold:#a58249;color:var(--rent-ink);width:100%;min-width:0;padding-bottom:32px}.rent-hero{position:relative;isolation:isolate;overflow:hidden;padding:clamp(24px,4vw,56px);border:1px solid #b49b72;border-radius:14px;background:#ebe2ce url('/assets/ui/optimized/rental-hall-20261103-3c8cee0a.webp') center 57%/cover;box-shadow:0 8px 28px #402d1420;margin-bottom:22px;min-height:245px}.rent-hero:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#f3ebd9fa 0%,#f3ebd9eb 38%,#f3ebd941 80%)}.is-admin .rent-hero{background-image:url('/assets/rooms/steward-desk-20261103.png')}.rent-hero h1{font-size:clamp(30px,3.6vw,48px);margin:5px 0 10px;line-height:1.1}.rent-hero p{max-width:610px;margin:0 0 18px;line-height:1.4}.rent-eyebrow{font-size:.78em;letter-spacing:.08em;text-transform:uppercase;color:#715b36;font-weight:bold}.rent-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,350px);gap:22px;align-items:start}.rent-catalog,.rent-room-copy,.rent-chat,.rent-bookings,.rent-form,.rent-room-detail{min-width:0}.room-rentals .panel{border:1px solid #b49b72;border-radius:12px;background:#f7efdfed;box-shadow:0 4px 16px #3b2b1212}.rent-toolbar{padding:16px;display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap}.rent-toolbar>span{font-size:.83em;color:#685a43}.rent-form label,.rent-chat>label,.rent-toolbar label{display:grid;gap:5px;font-weight:600}.room-rentals input,.room-rentals select,.room-rentals textarea,[data-rent-modal] input,[data-rent-modal] select,[data-rent-modal] textarea{background:#fffaf0;color:#30281f;border:1px solid #b6a17b;border-radius:6px;padding:9px 10px;font:inherit;max-width:100%;min-width:0;box-sizing:border-box}.room-rentals textarea,[data-rent-modal] textarea{resize:vertical;width:100%}.room-rentals select{width:100%}.rent-room-picker{display:flex;gap:10px;overflow-x:auto;padding:14px 1px;scrollbar-width:thin}.rent-room-choice{flex:0 0 auto;max-width:280px;border:1px solid #b49b72;border-radius:8px;background:#e9ddc4;color:#30281f;text-align:left;padding:11px 16px;font:inherit;cursor:pointer}.rent-room-choice strong,.rent-room-choice span{display:block;overflow-wrap:anywhere}.rent-room-choice span{font-size:.76em;opacity:.8}.rent-room-choice.is-active{background:#315f50;color:#fff8e8;border-color:#234b3f}.rent-room-detail{padding:0!important;overflow:hidden}.rent-room-photo{display:block;width:100%;height:clamp(170px,25vw,330px);object-fit:cover;margin:0!important;border:0!important;border-radius:0!important}.rent-photo-empty{background:linear-gradient(145deg,#d4c6aa,#eee4d1);display:flex;align-items:center;justify-content:center;color:#76664e;font-size:.85em;text-align:center;padding:24px;box-sizing:border-box;max-height:190px}.rent-room-copy{padding:clamp(16px,2vw,28px)}.rent-room-copy h2{margin:4px 0 12px;font-size:1.7em}.rent-description{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.rent-room-copy h3{margin:24px 0 9px;font-size:1.15em;color:#315f50}.rent-availability{border-block:1px solid #b49b7266;margin:22px 0;padding:0 0 16px}.rent-timezone,.rent-muted{font-size:.85em;color:#6b5c47;line-height:1.45}.rent-busy{display:flex;justify-content:space-between;gap:12px;border-left:3px solid #a58249;background:#e6dbc5;margin:7px 0;padding:7px 11px;font-size:.85em}.rent-form{display:grid;gap:14px}.rent-form>h3{margin-top:4px}.rent-form-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.rent-form-triple{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.rent-form>small{font-size:.78em;line-height:1.4;color:#6b5c47}.rent-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.rent-actions button,.rent-room-copy button,.rent-chat button{font-size:.83em!important;white-space:normal;min-height:36px;line-height:1.25}.rent-actions button:disabled{cursor:default;opacity:.55}.rent-warning,.rent-error{color:#8d3d2d}.rent-error{background:#f9e4d9;border:1px solid #ae7464;border-radius:8px;padding:14px}.rent-lot{border-bottom:1px solid #b49b7266;padding:12px 0;font-size:.86em}.rent-lot p{margin:6px 0}.rent-lot small{display:block}.rent-game{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;padding:10px 0;border-bottom:1px solid #b49b7255}.rent-game>span{font-size:.8em;color:#756248}.rent-game>button:first-child{padding-left:0;text-align:left;overflow-wrap:anywhere}.rent-game>button:last-child{grid-column:2;grid-row:1/3}.rent-bookings{margin-top:20px;padding:20px}.rent-section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:12px}.rent-section-heading h2{margin:0;font-size:1.35em}.rent-section-heading select{width:auto;max-width:100%;font-size:.85em}.rent-booking{border-top:1px solid #b49b7270;padding:17px 0}.rent-booking.is-selected{border-left:3px solid #315f50;padding-left:12px}.rent-booking header{display:flex;justify-content:space-between;gap:14px}.rent-booking header strong{display:block;overflow-wrap:anywhere}.rent-booking small{display:block;font-size:.76em;line-height:1.45;color:#756248}.rent-booking p{font-size:.82em}.rent-booking header>b{white-space:nowrap}.rent-meta{display:flex;gap:7px 14px;flex-wrap:wrap;font-size:.78em;margin:9px 0}.rent-meta span{background:#e7ddc8;border-radius:4px;padding:3px 7px}.rent-chat{display:flex;flex-direction:column;padding:20px!important;gap:14px;overflow:hidden}.rent-chat header h2{margin:4px 0;font-size:1.3em}.rent-chat header p{margin:8px 0 0}.rent-messages{min-height:200px;max-height:530px;overflow-y:auto;overscroll-behavior:contain;padding-right:3px;scrollbar-width:thin;display:flex;flex-direction:column;gap:12px}.rent-message{background:#eadfc8;border:1px solid #c2af8a;border-radius:9px;padding:10px 12px;align-self:flex-start;max-width:95%;box-sizing:border-box;font-size:.84em;min-width:0}.rent-message.is-own{align-self:flex-end;background:#e0e6d5;border-color:#9ca889}.rent-message.is-system{align-self:stretch;background:transparent;border:0;border-block:1px dashed #b49b7270;border-radius:0;color:#6f604a;font-size:.75em;text-align:center;max-width:100%}.rent-message p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.4;margin:5px 0}.rent-message time{display:block;font-size:.75em;color:#78674d}.rent-message strong{font-size:.86em}.rent-chat form{display:grid;gap:9px}.rent-chat form p{font-size:.8em;margin:0}.rent-chat-context{display:flex;align-items:center;justify-content:space-between;background:#e5dac2;border-radius:6px;padding:4px 10px;font-size:.8em}.rent-photo-preview{display:block;width:150px;height:100px;object-fit:cover;border-radius:6px}.rent-empty{padding:26px}.rent-header-reminder{white-space:nowrap}.room-rentals .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}[data-rent-modal] .rent-form{margin-top:18px}[data-rent-modal] .rent-form label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px;font-size:.86em}[data-rent-modal] [data-rent-form-error]:empty{display:none}[data-rent-form-error]{color:#8d3d2d;white-space:pre-wrap}
@media(min-width:1400px){.rent-layout{grid-template-columns:minmax(0,1fr) 370px}.rent-chat{padding:24px!important}}
@media(max-width:1050px){.rent-layout{grid-template-columns:minmax(0,1fr)}.rent-chat{margin-top:0}.rent-messages{max-height:420px}.rent-hero{min-height:210px}.rent-hero:before{background:linear-gradient(90deg,#f3ebd9fa,#f3ebd9cf 65%,#f3ebd950)}}
@media(max-width:520px){.rent-hero{padding:23px 18px;border-radius:10px}.rent-hero p{font-size:.9em}.rent-toolbar{padding:12px}.rent-toolbar>span{font-size:.73em}.rent-bookings{padding:15px}.rent-form-pair,.rent-form-triple{grid-template-columns:1fr}.rent-booking header{flex-wrap:wrap}.rent-game{grid-template-columns:minmax(0,1fr)}.rent-game>button:last-child{grid-column:1;grid-row:auto;justify-self:start}.rent-actions button{max-width:100%}.rent-chat{padding:15px!important}.rent-messages{min-height:150px}.rent-room-copy{padding:16px}.rent-room-choice{max-width:220px}.rent-hero h1{font-size:30px}}

.rent-room-choice img{display:block!important;width:100%;height:92px;object-fit:cover;border-radius:4px;margin:0 0 8px}.rent-room-choice .rent-choice-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.75em;line-height:1.3;margin:6px 0;max-width:230px}.rent-choice-price{display:block;font-size:.77em;margin-top:7px}.rent-room-choice{min-width:160px}

/* Rooms have their own full-screen illustration on every role's shell. */
@layer shell {
html[data-build="5"] body[data-screen="rooms"][data-role] :is(.player-scene-background,.world-bg),
html[data-build="5"] body[data-screen="rooms"][data-role]::before{
  background-image:url('/assets/ui/optimized/rental-hall-20261103-3c8cee0a.webp')!important;
  background-position:center center!important;background-size:cover!important;background-repeat:no-repeat!important;
}
html[data-build="5"] body[data-screen="rooms"][data-role] .player-scene-background::after{
  background:linear-gradient(90deg,#241a1438,transparent 35%,#241a141a)!important;
}
html[data-build="5"] body[data-screen="rooms"][data-role] :is(.game-stage,.stage-content){background:transparent!important;}
}
body[data-screen="rooms"] .room-rentals{font-size:17px;line-height:1.45;max-width:1500px;margin-inline:auto;}
body[data-screen="rooms"] .rent-hero{min-height:0;padding:25px 30px;margin-bottom:18px;background:linear-gradient(105deg,#f3ebd9f5,#e9dfc7e6 65%,#c4d2bcd6)!important;border-color:#bfa777;}
body[data-screen="rooms"] .rent-hero::before{background:none;}
body[data-screen="rooms"] .rent-hero h1{font-size:clamp(29px,3vw,40px);}
body[data-screen="rooms"] .rent-hero p{margin-bottom:12px;}
body[data-screen="rooms"] .rent-layout:not(:has(.rent-chat)){grid-template-columns:minmax(0,1fr);}
body[data-screen="rooms"] .rent-toolbar{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;justify-content:stretch;gap:14px;padding:20px;}
body[data-screen="rooms"] .rent-range-heading{display:grid;gap:2px;}
body[data-screen="rooms"] .rent-range-heading strong{font-size:22px;color:#315f50;}
body[data-screen="rooms"] .rent-range-heading small{font-size:13px;color:#6b5c47;}
body[data-screen="rooms"] .rent-range-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:12px;}
body[data-screen="rooms"] .rent-range-fields label{min-width:0;font-size:14px;}
body[data-screen="rooms"] .rent-range-fields input{width:100%;min-height:44px;}
body[data-screen="rooms"] .rent-range-fields button{min-height:44px;white-space:normal;}
body[data-screen="rooms"] [data-rent-range-error]{margin:0;color:#8d3d2d;font-size:14px;}
body[data-screen="rooms"] [data-rent-range-error]:empty{display:none;}
body[data-screen="rooms"] .rent-range-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid #b49b724d;padding-top:12px;}
body[data-screen="rooms"] .rent-range-footer>span{font-size:13px;color:#6b5c47;}
body[data-screen="rooms"] .rent-range-paging{display:flex;gap:8px;}
body[data-screen="rooms"] .rent-range-paging button{font-size:13px;min-height:38px;}
body[data-screen="rooms"] .rent-picker-panel{margin:18px 0;padding:20px;}
body[data-screen="rooms"] .rent-picker-heading h2{margin:3px 0 14px;font-size:24px;color:#315f50;}
body[data-screen="rooms"] .rent-room-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:12px;overflow:visible;padding:0;}
body[data-screen="rooms"] .rent-room-choice{position:relative;display:flex;flex-direction:column;min-width:0;max-width:none;width:100%;padding:0;border:2px solid #bda47a;border-radius:10px;overflow:hidden;background:#eee4ced9;box-shadow:0 3px 8px #3b2b1210;transition:border-color .15s,box-shadow .15s;}
body[data-screen="rooms"] .rent-room-choice:hover{border-color:#315f50;box-shadow:0 4px 14px #21463724;}
body[data-screen="rooms"] .rent-room-choice.is-active{background:#315f50;color:#fff8e8;border-color:#234b3f;box-shadow:0 0 0 3px #6f96774d,0 5px 14px #203e2f24;}
html[data-build="5"] body[data-screen="rooms"] .rent-room-choice.is-active .rent-choice-copy,
html[data-build="5"] body[data-screen="rooms"] .rent-room-choice.is-active .rent-choice-copy *,
html[data-build="5"] body[data-screen="rooms"] .rent-room-choice.is-active .rent-choice-state{color:#fff8e8!important;}
body[data-screen="rooms"] .rent-room-choice:focus-visible{outline:3px solid #a35f20;outline-offset:3px;}
body[data-screen="rooms"] .rent-choice-visual{position:relative;width:100%;opacity:1;font-size:inherit;}
body[data-screen="rooms"] .rent-room-choice img{height:100px;border-radius:0;margin:0!important;}
body[data-screen="rooms"] .rent-choice-placeholder{display:grid;place-items:center;height:100px;background:linear-gradient(135deg,#b8c6a1,#e5d4ad);color:#315f50;font-size:48px;opacity:1;}
body[data-screen="rooms"] .rent-choice-state{position:absolute;bottom:7px;left:8px;right:8px;background:#f8efdded;color:#3c4e37;border-radius:4px;padding:3px 7px;font-size:12px!important;font-weight:700;opacity:1;}
body[data-screen="rooms"] .is-active .rent-choice-state{background:#315f50;color:#fff8e8;}
body[data-screen="rooms"] .rent-choice-copy{padding:12px;opacity:1;font-size:inherit;}
body[data-screen="rooms"] .rent-choice-copy strong{font-size:18px;line-height:1.25;}
body[data-screen="rooms"] .rent-choice-capacity{font-size:13px;margin-top:5px;opacity:.95;}
body[data-screen="rooms"] .rent-room-choice .rent-choice-description{font-size:13px;line-height:1.4;max-width:none;opacity:.9;}
body[data-screen="rooms"] .rent-choice-price{font-size:14px;line-height:1.3;}
body[data-screen="rooms"] .rent-room-photo{height:190px;}
body[data-screen="rooms"] .rent-room-photo.rent-photo-empty{height:auto;min-height:0;padding:14px 18px;}
body[data-screen="rooms"] .rent-room-copy h2{font-size:28px;}
body[data-screen="rooms"] .rent-room-copy h3{font-size:22px;}
body[data-screen="rooms"] .rent-description{font-size:16px;}
body[data-screen="rooms"] .rent-days{max-height:540px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:3px 5px 3px 1px;}
body[data-screen="rooms"] .rent-day{border:1px solid #b49b724d;border-radius:8px;padding:12px;margin-top:10px;background:#fff9ed91;}
body[data-screen="rooms"] .rent-day.is-selected{border-color:#6b9279;background:#e9eddfb3;}
body[data-screen="rooms"] .rent-day>header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;}
body[data-screen="rooms"] .rent-day h4{margin:0;color:#315f50;font-size:16px;}
body[data-screen="rooms"] .rent-day-empty{margin:7px 0 0;}
body[data-screen="rooms"] .rent-busy{display:grid;grid-template-columns:minmax(80px,.7fr) minmax(0,1.5fr) auto;align-items:center;gap:9px;font-size:14px;padding:10px;margin-bottom:0;}
body[data-screen="rooms"] .rent-busy b{overflow-wrap:anywhere;}
body[data-screen="rooms"] .rent-slot-copy{display:grid;gap:3px;min-width:0;}
body[data-screen="rooms"] .rent-slot-copy small{display:block;font-size:12px;}
body[data-screen="rooms"] .rent-slot-time{font-size:13px;font-weight:700;}
body[data-screen="rooms"] .rent-slot-available{border-left-color:#3f7a59;background:#dce8d2;}
body[data-screen="rooms"] .rent-occupied{border-left-color:#a97448;background:#e8d8c0;grid-template-columns:minmax(80px,.7fr) minmax(0,1.5fr);}
body[data-screen="rooms"] .rent-form [data-rent-quote]{margin:0;padding:12px;background:#e5e8d8;border-radius:6px;}
@media(max-width:620px){
  body[data-screen="rooms"] .rent-hero{padding:20px;}
  body[data-screen="rooms"] .rent-toolbar,body[data-screen="rooms"] .rent-picker-panel{padding:15px;}
  body[data-screen="rooms"] .rent-range-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;}
  body[data-screen="rooms"] .rent-range-fields>button{grid-column:1/-1;}
  body[data-screen="rooms"] .rent-room-picker{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  body[data-screen="rooms"] .rent-room-picker:has(>.rent-room-choice:only-child){grid-template-columns:minmax(0,1fr);}
  body[data-screen="rooms"] .rent-choice-copy{padding:10px;}
  body[data-screen="rooms"] .rent-choice-copy strong{font-size:16px;}
  body[data-screen="rooms"] .rent-choice-price{font-size:13px;}
  body[data-screen="rooms"] .rent-room-choice .rent-choice-description{display:none;}
  body[data-screen="rooms"] .rent-choice-state{left:5px;right:5px;padding:3px 4px;font-size:11px!important;}
  body[data-screen="rooms"] .rent-room-photo{height:155px;}
  body[data-screen="rooms"] .rent-busy{grid-template-columns:minmax(0,1fr);gap:5px;}
  body[data-screen="rooms"] .rent-busy>button{justify-self:start;}
  body[data-screen="rooms"] .rent-day{padding:10px;}
}


/* assets/ui/marketing.css */
/* Marketing shares the club ledger's parchment, ink charts and green controls. */
.marketing-dashboard{display:grid;gap:15px;min-width:0}.marketing-dashboard>*{min-width:0}.marketing-dashboard .ca-card{min-width:0}.mk-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.mk-heading h2{margin:4px 0 8px}.mk-heading p{margin:0 0 7px;white-space:pre-wrap;overflow-wrap:anywhere}.mk-heading small{color:#786044;font-size:12px}.mk-toolbar{display:flex;gap:8px 12px;align-items:end;flex-wrap:wrap;margin:8px 0 12px}.mk-toolbar>label{flex:1;min-width:150px;max-width:360px}.mk-scope{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:end}.mk-scope>p{grid-column:1/-1;margin:0}.mk-scope label,.mk-toolbar label,.mk-form label{display:grid;gap:6px;min-width:0}.mk-scope label>span,.mk-toolbar label>span{font-size:13px;color:#72593d}.marketing-dashboard :is(input,select),.mk-form :is(input,select,textarea){max-width:100%;min-width:0;width:100%;box-sizing:border-box;padding:8px 10px;font:inherit;font-size:14px;color:#422d1e;background:#fbefd5;border:1px solid #a78054;border-radius:5px}.mk-form :is(input,select,textarea){font-size:16px}.mk-form textarea{resize:vertical;line-height:1.4}.mk-tabs{margin:0}.mk-tabs .active,.mk-tabs [aria-pressed=true]{background:#e1e7cc!important;color:#304d38!important;box-shadow:inset 0 -2px #557554}.mk-kpis .ca-kpi{min-height:130px}.mk-inline{display:flex;gap:10px 22px;flex-wrap:wrap;align-items:baseline;margin:10px 0}.mk-inline>span{font-size:14px;color:#71563b}.mk-inline b{color:#392b1f}.mk-link{display:block;max-width:300px;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.4;color:#34533e}.mk-table{max-width:100%;overflow-x:auto}.mk-table table{min-width:740px}.mk-table th{white-space:normal}.mk-table td{overflow-wrap:anywhere}.mk-table small{display:block;font-size:12px;color:#785e42;margin-top:4px}.mk-table .ca-text-button{text-align:left;white-space:normal;padding-left:0;padding-right:0}.mk-warnings{background:#f4e1b8;border:1px solid #b58e54;border-radius:7px;padding:12px 16px;font-size:14px;color:#72502e}.mk-warnings summary{cursor:pointer;font-weight:bold}.mk-warnings p{margin:8px 0}.mk-promo-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.mk-promo{min-width:0;padding:18px;border:1px solid #a7805477;border-radius:8px;background:#f5e9cd88}.mk-promo header{display:flex;align-items:start;justify-content:space-between;gap:12px}.mk-promo code{display:block;font:700 18px/1.3 ui-monospace,monospace;color:#365940;overflow-wrap:anywhere}.mk-promo h3{font-size:17px;margin:7px 0 3px}.mk-promo small{font-size:12px;color:#785e42}.mk-promo header>b{font-size:18px;color:#365940;text-align:right}.mk-promo>p{font-size:13px}.mk-plan{border-top:1px solid #a7805466;padding:16px 0}.mk-plan:first-of-type{border-top:0}.mk-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.mk-section-head h3{margin:0}.mk-plan-facts{display:grid;grid-template-columns:1fr 1fr;gap:0 20px;font-size:14px}.mk-plan-facts p{white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0}.mk-task-list{list-style:none;padding:0;margin:14px 0}.mk-task-list li{display:flex;align-items:center;gap:12px;padding:9px 0;border-top:1px dashed #aa8a5f66;font-size:15px}.mk-task-list li>div{flex:1;min-width:0;overflow-wrap:anywhere}.mk-task-list small{display:block;font-size:12px;color:#785e42}.mk-task-list .done>div{color:#557554}.mk-task-list .overdue{color:#9a443b}.mk-pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.mk-definition{padding:8px 0;border-bottom:1px solid #aa8a5f44}.mk-definition h3{font-size:17px;color:#365940;margin:8px 0}.mk-definition p{font-size:14px;line-height:1.5}.mk-form>fieldset{border:0;padding:0;margin:18px 0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:15px}.mk-form .mk-wide{grid-column:1/-1}.mk-form>fieldset>fieldset{border:1px solid #aa8a5f77;border-radius:7px;display:flex;gap:10px 18px;flex-wrap:wrap;padding:14px}.mk-form legend{font-size:15px;color:#72593d}.mk-form .mk-checkbox{display:flex;align-items:center;gap:8px;font-size:15px}.mk-form .mk-checkbox input,.mk-task-editor input[type=checkbox]{width:auto;flex:none}.mk-form label>span{font-size:15px}.mk-form .ca-note{grid-column:1/-1;margin:0}.mk-form .mk-form-error{border-left:3px solid #9a443b;padding:9px 13px;background:#f7e5d7;color:#8d3d2d;font-size:15px;white-space:pre-wrap}.mk-form .mk-toolbar{justify-content:flex-end;margin-top:18px}.mk-task-editor{display:grid;gap:8px;margin-bottom:10px}.mk-task-editor>div{display:grid;grid-template-columns:auto minmax(0,1fr) 155px auto;align-items:center;gap:9px}.mk-task-editor .ca-button{padding:5px 9px}.mk-copy-value{width:100%;min-height:110px;background:#fff7e4;border:1px solid #aa8a5f;padding:12px;font:14px/1.4 ui-monospace,monospace;box-sizing:border-box;overflow-wrap:anywhere}.mk-notice{font-size:12px;color:#8d5c2d}
@media(max-width:1050px){.mk-heading{display:block}.mk-promo-cards{grid-template-columns:minmax(0,1fr)}}
@media(max-width:620px){.mk-scope,.mk-form>fieldset,.mk-plan-facts{grid-template-columns:minmax(0,1fr)}.mk-form .mk-wide,.mk-scope>p{grid-column:1}.mk-toolbar{align-items:stretch}.mk-toolbar>label{max-width:none}.mk-task-editor>div{grid-template-columns:auto minmax(0,1fr) auto}.mk-task-editor input[type=date]{grid-column:2;grid-row:2}.mk-task-editor button{grid-column:3;grid-row:1/3}.mk-task-list{font-size:14px}.mk-task-list .ca-button{font-size:12px}.mk-promo{padding:14px}.mk-promo header{flex-wrap:wrap}.mk-promo header>b{text-align:left}.mk-kpis .ca-kpi{min-height:115px}.mk-form .mk-toolbar .ca-button{flex:1}.mk-form :is(input,select,textarea){font-size:16px}}

.mk-campaign-cards{display:grid;gap:14px}.mk-campaign-card{min-width:0;padding:20px;border:1px solid #a7805466;border-radius:10px;background:linear-gradient(120deg,#fff7e7e8,#f1e6cce0)}.mk-campaign-card>header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}.mk-campaign-card h3{margin:5px 0;font-size:23px;color:#36513b}.mk-campaign-card header p{margin:0;color:#735f45;font-size:14px}.mk-ready-url{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:14px 16px;margin-top:14px;background:#e8efdc;border:1px solid #69805e55;border-radius:8px}.mk-ready-url>code{flex:1 1 250px;min-width:0;font:600 14px/1.6 ui-monospace,monospace;color:#2f533a;overflow-wrap:anywhere}.mk-ready-url>div{display:flex;gap:8px;flex-wrap:wrap}.mk-ready-url a{display:inline-flex;align-items:center;text-decoration:none}.mk-campaign-result{border-color:#4d785a;background:#edf2e3}.mk-campaign-advanced{padding:14px 16px;border:1px solid #aa8a5f77;border-radius:7px;background:#f2e8d2}.mk-campaign-advanced>summary{cursor:pointer;font-size:16px;font-weight:bold;color:#4c6044;list-style-position:inside}.mk-advanced-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:15px;margin-top:18px}.mk-funnel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;list-style:none;padding:0;margin:20px 0}.mk-funnel-stage{position:relative;min-width:0;padding:18px;border:1px solid #a5916b77;border-radius:9px;background:linear-gradient(135deg,#fff9ea,#e9e6cf)}.mk-funnel-stage header{display:flex;align-items:start;gap:10px}.mk-funnel-stage .mk-stage-number{display:grid;place-items:center;flex:0 0 27px;height:27px;border-radius:50%;background:#4d6a4b;color:#fff8e8;font:600 12px system-ui,sans-serif}.mk-funnel-stage h3{margin:1px 0;min-height:42px;font-size:17px;line-height:1.3;color:#40523a}.mk-stage-count{display:block;margin:15px 0 8px;font-size:34px;font-weight:bold;line-height:1;color:#36543d}.mk-stage-conversion{display:block;font-size:12px;color:#6d6751;min-height:18px}.mk-funnel-stage>i{display:block;height:5px;margin-top:12px;border-radius:5px;background:#b6baa666;overflow:hidden}.mk-funnel-stage>i>b{display:block;height:100%;background:#637f57;border-radius:5px}.mk-funnel-boundary{font-size:13px;line-height:1.65;color:#6d604b}.mk-funnel-audiences{display:grid;grid-template-columns:1fr 1fr;gap:14px}.mk-funnel-audience{border:1px solid #ac967166;border-radius:9px;padding:17px;background:#faf1df}.mk-funnel-audience h3{font-size:17px;margin:0 0 9px;color:#45603f}.mk-funnel-audience strong{font-size:28px;display:block}.mk-funnel-audience p{font-size:13px;color:#76654d;margin:6px 0}.mk-comparison-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:14px}.mk-comparison-card{padding:16px;border:1px solid #a9916766;border-radius:8px;background:#fbf3df;min-width:0}.mk-comparison-card h3{margin:0 0 12px;font-size:18px;color:#3c573d}.mk-comparison-line{display:grid;grid-template-columns:minmax(95px,1fr) 2fr auto;gap:9px;align-items:center;font-size:12px;margin:9px 0}.mk-comparison-line>i{height:7px;background:#bbc4aa88;border-radius:5px;overflow:hidden}.mk-comparison-line b{display:block;height:100%;background:#6c865d}.mk-comparison-card .ca-button{margin-top:10px}.mk-funnel-table table{min-width:690px}.mk-funnel-unavailable{border:1px solid #ac967166;padding:22px;border-radius:9px;background:#fbf0d8}
@media(max-width:900px){.mk-funnel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mk-campaign-card{padding:16px}}
@media(max-width:620px){.mk-funnel-grid,.mk-funnel-audiences,.mk-advanced-grid{grid-template-columns:minmax(0,1fr)}.mk-funnel-stage{padding:16px}.mk-funnel-stage h3{min-height:0}.mk-stage-count{margin-top:12px}.mk-ready-url{padding:12px}.mk-ready-url>div{width:100%}.mk-ready-url .ca-button{flex:1;justify-content:center}.mk-comparison-cards{grid-template-columns:minmax(0,1fr)}.mk-campaign-card>header>.ca-button{width:100%}}

.mk-stage-count small{font-size:12px;font-weight:400;white-space:nowrap;color:#6b6d57}.mk-funnel-numbers{margin-top:18px}.mk-funnel-numbers>summary,.mk-secondary-report>summary{cursor:pointer;color:#4d6244;font-size:16px;font-weight:bold;padding:7px 0}.mk-secondary-report>section{margin-top:16px}


/* assets/ui/guild.css */
*{box-sizing:border-box}.guild-public{margin:0;background:#f5f0e4;color:#233c32;font:17px/1.65 Georgia,'Times New Roman',serif}.guild-public a{color:inherit}.guild-top,.guild-section,.guild-hero,.guild-footer{width:min(1160px,calc(100% - 64px));margin:auto}.guild-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 0}.guild-brand{display:flex;align-items:center;gap:14px;text-decoration:none;font:600 14px/1.4 system-ui,sans-serif}.guild-brand img{width:106px;height:48px;object-fit:contain}.guild-brand small{display:block;font-size:11px;color:#697465;font-weight:400}.guild-contact{font:600 14px system-ui,sans-serif;text-underline-offset:5px}.guild-hero{display:grid;grid-template-columns:1.05fr 1fr;gap:50px;align-items:center;padding:55px 0 80px}.guild-eyebrow{text-transform:uppercase;letter-spacing:.16em;font:600 11px/1.5 system-ui,sans-serif;color:#92733d}.guild-hero h1{font-size:clamp(42px,5vw,70px);line-height:1.08;font-weight:400;letter-spacing:-.04em;margin:22px 0}.guild-hero-copy>p{font-size:20px;color:#566454;max-width:490px}.guild-button{display:inline-flex;justify-content:center;align-items:center;gap:30px;padding:16px 23px;background:#204b3e;border:1px solid #204b3e;color:#fff!important;border-radius:3px;text-decoration:none;font:600 14px/1.5 system-ui,sans-serif;cursor:pointer}.guild-button:hover{background:#32624f}.guild-button:focus-visible,.guild-public input:focus-visible,.guild-public summary:focus-visible{outline:3px solid #b68b3f;outline-offset:4px}.guild-button:disabled{opacity:.45;cursor:not-allowed}.guild-hero-copy>small{display:block;font:12px/1.6 system-ui,sans-serif;color:#727b6d;max-width:360px;margin-top:17px}.guild-hero-art{position:relative;min-width:0}.guild-hero-art>img{width:100%;height:510px;display:block;object-fit:cover;border-radius:140px 140px 3px 3px;filter:saturate(.7);border:8px solid #e7dfcb}.guild-seal{position:absolute;bottom:-28px;left:-30px;display:grid;place-content:center;text-align:center;background:#b28a49;color:#fdf5e6;border:7px double #e4cf9e;width:115px;height:115px;border-radius:100%;font:54px/.85 Georgia,serif;transform:rotate(-10deg)}.guild-seal small{font:10px/2 system-ui,sans-serif;letter-spacing:.15em}.guild-section{padding:68px 0;border-top:1px solid #d9d5c4}.guild-section h2{font-size:clamp(30px,3.6vw,43px);line-height:1.2;font-weight:400;letter-spacing:-.025em;margin:16px 0 24px}.guild-introduction>p{max-width:740px;font-size:20px;color:#65705e}.guild-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:42px;margin-top:45px}.guild-number{color:#a98b50;font-size:25px}.guild-steps h3{font-size:23px;font-weight:400;margin:15px 0 10px}.guild-steps p{font:14px/1.8 system-ui,sans-serif;color:#6a7366}.guild-included{background:#eae7d9;border:0;padding:40px;border-radius:3px}.guild-included p{max-width:850px}.guild-section-heading{display:flex;justify-content:space-between;gap:45px;align-items:end}.guild-section-heading>p{max-width:320px;font:13px/1.8 system-ui,sans-serif;color:#77806f}.guild-game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.guild-game{padding:28px;border:1px solid #d4d4c2;background:#fbf8ef;border-top:3px solid #ac8a48;min-width:0}.guild-game-status{font:11px/1.6 system-ui,sans-serif;letter-spacing:.04em;color:#7c764d}.guild-game h3{font-size:25px;font-weight:400;line-height:1.3}.guild-game-date{display:flex;justify-content:space-between;gap:10px;font:15px/1.5 system-ui,sans-serif}.guild-game dl{font:13px/1.7 system-ui,sans-serif;margin:26px 0}.guild-game dl>div{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e5e3d8;padding:8px 0}.guild-game dd{margin:0;text-align:right;font-weight:600}.guild-game .guild-button{width:100%;gap:8px}.guild-notice{padding:20px;background:#eae7d9;font:14px/1.7 system-ui,sans-serif}.guild-faq details{padding:20px 0;border-bottom:1px solid #d9d5c4}.guild-faq summary{font-size:20px;cursor:pointer}.guild-faq details p{max-width:800px;color:#6b7464}.guild-visit{padding:44px;background:#214b3d;color:#f3f0de;border:0;display:flex;justify-content:space-between;gap:40px;align-items:center}.guild-visit .guild-eyebrow{color:#d2b77e}.guild-visit p{max-width:600px}.guild-visit .guild-address{font-size:21px}.guild-button-light{background:#f5efdf;color:#244838!important;border-color:#f5efdf;white-space:nowrap}.guild-terms p{white-space:normal;font:14px/1.8 system-ui,sans-serif;color:#6c7569}.guild-footer{padding:36px 0;font:12px/1.8 system-ui,sans-serif;display:flex;justify-content:space-between;gap:20px}.guild-footer>div{display:flex;gap:18px;flex-wrap:wrap}.guild-footer button,.guild-modal button[data-guild-legal]{background:none;border:0;padding:0;text-decoration:underline;cursor:pointer;color:inherit;font:inherit}.guild-modal{max-width:560px;width:calc(100% - 28px);padding:38px;border:1px solid #c8bd9e;border-radius:6px;background:#f9f5e9;color:#273e32;max-height:90vh;overflow:auto}.guild-modal::backdrop{background:#0c231ecc;backdrop-filter:blur(4px)}.guild-modal h2{font-size:30px;line-height:1.2;font-weight:400;margin:18px 0}.guild-modal form{display:grid;gap:18px}.guild-modal label{display:grid;gap:7px;font:14px/1.6 system-ui,sans-serif}.guild-modal input,.guild-modal select{width:100%;padding:12px;border:1px solid #c5c7b5;background:white;font:16px system-ui,sans-serif;color:#233c32;border-radius:3px}.guild-modal small,.guild-small{font:12px/1.7 system-ui,sans-serif;color:#6b7568}.guild-modal label.guild-check{display:flex;gap:10px;align-items:start;font-size:12px}.guild-check input{width:18px;height:18px;flex:0 0 18px;margin:1px 0}.guild-close{position:absolute;top:10px;right:14px;background:none;border:0;font-size:28px;cursor:pointer;color:inherit}.guild-error{color:#9d342b;margin:0;font:13px/1.6 system-ui,sans-serif}.guild-legal-text p{white-space:normal;font:14px/1.8 system-ui,sans-serif}.guild-legal-inline{border-top:1px solid #ccc;padding-top:18px;margin-top:24px}.guild-admin{padding:24px;max-width:1400px;margin:auto}.guild-admin header,.guild-admin-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.guild-admin nav{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}.guild-admin-panel{padding:22px;border:1px solid #b8ae92;background:#fff9e9;border-radius:8px;margin:18px 0}.guild-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.guild-admin label{display:grid;gap:6px;min-width:0}.guild-admin input:not([type=checkbox]),.guild-admin textarea,.guild-admin select{width:100%;min-width:0;padding:10px;border:1px solid #b9b398;border-radius:4px;background:#fffdf7;color:#30281f;font:16px/1.4 system-ui,sans-serif}.guild-admin textarea{min-height:110px;resize:vertical}.guild-admin .guild-admin-full{grid-column:1/-1}.guild-admin .guild-admin-check{display:flex;align-items:center;gap:10px}.guild-admin table{width:100%;border-collapse:collapse;font:14px/1.5 system-ui,sans-serif}.guild-admin td,.guild-admin th{text-align:left;padding:12px;border-bottom:1px solid #d7d0bd;vertical-align:top}.guild-admin-scroll{overflow-x:auto}.guild-admin td small{display:block}.guild-admin-list{display:grid;gap:12px}.guild-admin-row{border:1px solid #c9c0a7;padding:16px;border-radius:5px}.guild-admin-row h3{margin:0 0 8px}.guild-admin-message{white-space:pre-wrap;color:#9d342b}.guild-admin-preview{width:100%;height:700px;border:1px solid #b9b398;background:#f5f0e4}.guild-admin-status{background:#ece9d7;padding:10px 15px}.guild-intro-fields{padding:18px;border:1px solid #b9b398;border-radius:6px}.guild-intro-fields legend{padding:0 7px;font-weight:bold}.guild-admin button:disabled{opacity:.5;cursor:wait}@media(max-width:800px){.guild-top,.guild-section,.guild-hero,.guild-footer{width:calc(100% - 36px)}.guild-hero{grid-template-columns:1fr;gap:32px;padding-top:24px}.guild-hero-art{margin:0 14px 0 26px}.guild-hero-art>img{height:380px}.guild-steps,.guild-game-grid{grid-template-columns:1fr}.guild-steps{gap:20px}.guild-section{padding-top:40px;padding-bottom:40px}.guild-included,.guild-visit{padding:24px}.guild-section-heading,.guild-visit,.guild-footer{display:block}.guild-section-heading>p{max-width:none}.guild-visit .guild-button{margin-top:20px}.guild-footer>div{margin-top:14px}.guild-admin{padding:12px}.guild-admin-grid{grid-template-columns:1fr}.guild-modal{padding:28px 22px}.guild-brand span{display:none}}@media(prefers-reduced-motion:no-preference){.guild-public{scroll-behavior:smooth}}

.guild-visit-actions{display:flex;flex-direction:column;gap:12px;flex-shrink:0}


/* assets/ui/unified-schedule.css */
/* Shared club schedule: every type stays reachable, including empty types. */
.unified-schedule .schedule-controls{position:static;background:transparent;border:0;box-shadow:none;padding:4px 0 10px;margin-bottom:12px}
.unified-schedule .schedule-type-tabs{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:10px}
.unified-schedule .schedule-type-tabs button{flex:1 1 100px;min-width:0;padding:8px 7px;border:1px solid #b69b6d;border-radius:5px;background:#efe0bf;color:#513c25;font:inherit;font-size:13px;line-height:1.2;cursor:pointer}
.unified-schedule .schedule-type-tabs button.is-active{background:#614d35;color:#fff4d5;border-color:#614d35;box-shadow:inset 0 -3px #d2ad66}
.unified-schedule .schedule-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.unified-schedule .schedule-filters label,.unified-schedule .game-scope-filter{display:flex;flex-direction:column;gap:3px;font-size:12px;color:#634b30}
.unified-schedule select{min-width:0;max-width:100%;padding:6px;background:#fff7e3;color:#392c1d;border:1px solid #b69b6d;border-radius:4px;font:inherit}
.unified-schedule .game-scope-filter{margin:8px 0 12px;max-width:260px}
.unified-schedule .schedule-filters select{min-height:34px;height:34px}
.unified-schedule .schedule-filters label.schedule-past-filter{grid-column:1/-1;flex-direction:row;align-items:center;gap:8px;min-height:24px;cursor:pointer}
.unified-schedule .schedule-past-filter input[type=checkbox]{width:16px;height:16px;min-height:0;flex:none;margin:0}
.unified-schedule .schedule-scope-tools{margin:2px 0 10px;font-size:12px}.unified-schedule .schedule-scope-tools>summary{cursor:pointer;padding:3px 0;color:#6b5336}
.unified-schedule .schedule-day-group>h3{margin:12px 0 0;padding:5px 0;border-bottom:1px solid #a98b59;font-size:14px;color:#6b5336}
.unified-schedule .game-row.unified-slot{padding:12px 0!important;margin:0!important;border-bottom:2px dashed #ae9367!important;min-height:0!important;background-image:none!important}
.unified-schedule .game-row.unified-slot + .game-row.unified-slot{margin-top:6px!important}
.unified-schedule .schedule-slot-title{font-size:17px;line-height:1.2;margin:5px 0 7px;color:#463320}
.unified-schedule .game-compact-line{display:flex;flex-wrap:wrap;align-items:center;gap:7px 12px;font-size:13px}
.unified-schedule .schedule-slot-price{color:#6b4721;font-size:15px}
.unified-schedule .game-row-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.unified-schedule .game-row-actions button{padding:6px 9px;font-size:12px;min-height:32px}
.unified-schedule .schedule-pass-label{font-size:11px;color:#4a673b}
/* Two aligned rows: date / heading, then adjacent actions / concise facts. */
@layer shell {
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .game-row.unified-slot{
  display:grid!important;grid-template-columns:255px minmax(0,1fr)!important;grid-template-rows:44px 44px!important;
  align-items:stretch!important;gap:3px 14px!important;padding:7px 0!important;min-width:0!important;max-width:100%!important;
 }
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-when{
  grid-column:1!important;grid-row:1 / span 2!important;display:grid!important;grid-template-rows:44px 44px!important;gap:3px!important;
  min-width:0!important;max-width:100%!important;box-sizing:border-box;
 }
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-when time{
  display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;min-width:0!important;
  color:#49321f!important;white-space:nowrap!important;line-height:1.2!important;
 }
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-date{font-size:17px!important;white-space:nowrap!important;}
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-time{font-size:22px!important;line-height:1.2!important;}
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-when .game-row-actions{
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:6px!important;
  width:100%!important;height:44px!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;
 }
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-when .game-row-actions button{
  flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:44px!important;
  padding:7px 9px!important;box-sizing:border-box!important;font-size:15px!important;line-height:1.2!important;
  white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;text-overflow:clip!important;
 }
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-action-full{display:inline!important;white-space:nowrap!important;}
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-action-short{display:none!important;}
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-action-compact .schedule-action-full{display:none!important;}
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-action-compact .schedule-action-short{display:inline!important;white-space:nowrap!important;}
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-when .game-live-status{align-self:center!important;font-size:15px!important;line-height:1.2!important;white-space:nowrap!important;}
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-info{
  grid-column:2!important;grid-row:1 / span 2!important;display:grid!important;grid-template-rows:44px 44px!important;gap:3px!important;min-width:0!important;max-width:100%!important;
 }
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-heading{
  position:relative;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:10px!important;min-width:0!important;max-width:100%!important;height:44px!important;
 }
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-type{flex:0 1 auto!important;min-width:0!important;font-size:16px!important;font-weight:700;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-heading .schedule-slot-title{
  flex:1 1 120px!important;min-width:0!important;max-width:100%!important;margin:0!important;
  font-size:18px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
 }
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-details{display:block!important;min-width:0!important;max-width:100%!important;}
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-info .game-compact-line{
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:12px!important;min-width:0!important;max-width:100%!important;height:44px!important;
  overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin;overscroll-behavior-x:contain;font-size:15px!important;line-height:1.25!important;white-space:nowrap!important;
 }
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-info .game-compact-line>*{
  flex:none!important;max-width:none!important;font-size:15px!important;line-height:1.25!important;white-space:nowrap!important;overflow-wrap:normal!important;
 }
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-info .game-compact-detail{
  display:inline-flex!important;flex-wrap:nowrap!important;align-items:baseline!important;gap:5px!important;min-width:0!important;white-space:nowrap!important;
 }
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-info .schedule-room-detail{
  flex:0 1 auto!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:5px!important;min-width:0!important;max-width:55%!important;margin-left:auto!important;color:#315247!important;
 }
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-room-detail .game-compact-detail{font-size:16px!important;font-weight:700!important;overflow:hidden!important;text-overflow:ellipsis!important;}
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-room-detail b{flex:none!important;font-size:14px!important;}
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-room-detail [data-physical-room-name]{min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-room-detail [data-game-physical-room]{
  flex:none!important;width:44px!important;min-height:44px!important;height:44px!important;padding:7px!important;box-sizing:border-box!important;font-size:20px!important;
 }
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule :is(.schedule-controls,.schedule-filter-panel,.schedule-filters){position:static!important;background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;}
 @media(max-width:820px){
  html[data-build="5"] body[data-screen="games"] #app .unified-schedule .game-row.unified-slot{grid-template-columns:150px minmax(0,1fr)!important;gap:3px 8px!important;}
  html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-when time{gap:7px!important;}
  html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-time{font-size:20px!important;}
  html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-when .game-row-actions{gap:5px!important;}
  html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-when .game-row-actions button{flex:1 1 0!important;padding:7px 5px!important;font-size:14px!important;}
  html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-action-full{display:none!important;}
  html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-action-short{display:inline!important;white-space:nowrap!important;}
  html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-heading{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;grid-template-rows:22px 22px!important;gap:0 7px!important;}
  html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-heading:has([data-game-physical-room]){padding-right:44px!important;}
  html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-type{grid-column:1!important;grid-row:1!important;max-width:100%!important;font-size:15px!important;}
  html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-heading .schedule-slot-title{grid-column:2!important;grid-row:1!important;font-size:15px!important;}
  html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-info .schedule-room-detail{grid-column:1 / -1!important;grid-row:2!important;max-width:100%!important;width:100%!important;margin:0!important;}
  html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-room-detail .game-compact-detail{font-size:15px!important;}
  html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-room-detail [data-game-physical-room]{position:absolute!important;right:0!important;top:0!important;}
  html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-when .game-live-status{font-size:14px!important;white-space:normal!important;line-height:1.15!important;}
  html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-info .game-compact-line{gap:8px!important;overflow:hidden!important;}
  html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-info .game-compact-line :is(.schedule-price-unit,.schedule-seat-unit,.schedule-seat-queue,.schedule-phone-secondary){display:none!important;}
  html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-slot-info .game-compact-line .schedule-slot-price{display:flex!important;flex:0 1 auto!important;min-width:0!important;}
  html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-price-value{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;}
 }
}
[data-game-participants]{min-width:0}
[data-game-participants] .game-participant-entry{display:grid;gap:10px;margin:12px 0;padding:12px;border:1px solid #b9a27c;border-radius:6px;min-width:0}
[data-game-participants] .game-participant-facts{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(0,1fr);align-items:start;gap:12px;min-width:0}
[data-game-participants] .game-participant-attendance,[data-game-participants] .game-participant-payment{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;overflow-wrap:anywhere}
[data-game-participants] :is(select,input:not([type="checkbox"]),button,summary){max-width:100%;min-width:0;min-height:44px;box-sizing:border-box;font-size:16px;line-height:1.35}
[data-game-participants] summary{display:flex;align-items:center;cursor:pointer;text-decoration:underline}
[data-game-participants] details,[data-game-participants] form{width:100%;min-width:0}
[data-game-participants] form{display:grid;gap:10px;padding-top:8px}
[data-game-participants] form label{display:flex;flex-direction:column;gap:4px;min-width:0}
[data-game-participants] form .game-participant-cash{flex-direction:row;align-items:flex-start;gap:8px}
[data-game-participants] .game-participant-cash[hidden]{display:none}
[data-game-participants] .game-participant-cash input{flex:none;width:20px;height:20px;margin-top:2px}
[data-game-participants] p{margin:3px 0;overflow-wrap:anywhere}
@media(max-width:600px){[data-game-participants] .game-participant-facts{grid-template-columns:minmax(0,1fr)}[data-game-participants] .game-participant-entry{padding:10px}[data-game-participants] .participant-row{flex-wrap:wrap;min-width:0}}
.unified-template-editor{max-width:100%;overflow-x:hidden}
.unified-template-slots{display:grid;gap:16px}
.unified-template-slot{margin:0;padding:12px;border:1px solid #b9a27c;border-radius:7px;min-width:0;background:#fff8e8}
.unified-template-slot legend{font-weight:700;padding:0 5px}
.unified-template-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.unified-template-fields label{display:flex;flex-direction:column;gap:4px;font-size:13px;min-width:0}
.unified-template-fields input,.unified-template-fields select{width:100%;min-width:0;box-sizing:border-box}
.unified-template-flags{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}
.unified-template-flags label{display:flex;gap:5px;align-items:center;font-size:13px}
.schedule-create-options{display:grid;gap:12px;margin:12px 0}.schedule-create-options article{padding:12px;border:1px solid #b9a27c;border-radius:6px}.schedule-create-options h3{margin:0 0 6px}
.slot-template-list{display:grid;gap:12px;margin:14px 0}
.slot-template-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:14px;border:1px solid #b9a27c;border-radius:7px;background:#fff8e8}
.slot-template-card>div{display:flex;flex-direction:column;gap:5px;min-width:0}.slot-template-card strong{font-size:17px;line-height:1.25;overflow-wrap:anywhere}.slot-template-card span,.slot-template-card small{font-size:13px;line-height:1.35;color:#6b5336}
@media(max-width:600px){.slot-template-card{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}.slot-template-card>div{grid-column:1/-1}.slot-template-card>button{min-width:0;padding:8px;font-size:13px}}
@media(max-width:600px){.unified-schedule .schedule-type-tabs button{flex-basis:85px;font-size:12px;padding:8px 4px}.unified-schedule .schedule-filters{gap:5px}.unified-schedule .schedule-filters label{font-size:11px}.unified-schedule .schedule-filters select{padding:5px 2px;font-size:11px}.unified-template-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.unified-schedule .schedule-slot-title{font-size:16px}.unified-schedule .game-compact-line{gap:6px 8px;font-size:12px}}

html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-controls{
  position:static;padding:4px 0 6px!important;margin:0 0 6px!important;
  background:transparent;border:0;box-shadow:none;
}
html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-type-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-bottom:6px!important;}
html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-type-tabs button{
  min-width:0;min-height:34px!important;height:auto!important;padding:4px 7px!important;border:1px solid #a68148;border-radius:5px;
  background:#eed8ad;color:#4a321e;font-size:15px;line-height:1.2;box-shadow:none;white-space:normal!important;overflow-wrap:anywhere!important;
}
html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-type-tabs button.is-active{background:#315f50!important;border-color:#254b3d!important;color:#fff8e8!important;box-shadow:inset 0 -2px #d6bb76;}
html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-filters{gap:5px 8px!important;}
html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-filters label:not(.schedule-past-filter){display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px;font-size:13px!important;line-height:1.2!important;}
html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-filters select{grid-column:2;height:32px!important;min-height:32px!important;padding:3px 7px!important;font-size:14px!important;line-height:1.2!important;background:#fff3d9;}
html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-past-filter{min-height:22px!important;margin:0!important;gap:7px!important;font-size:14px!important;line-height:1.2!important;}
html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-past-filter input[type="checkbox"]{height:18px!important;min-height:18px!important;width:18px!important;padding:0!important;}
html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-scope-tools{margin:2px 0 4px!important;font-size:13px!important;}
html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-scope-tools>summary{min-height:0!important;padding:1px 0!important;line-height:1.2!important;}
@media(max-width:600px){
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-type-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;}
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-type-tabs button{font-size:14px!important;min-height:44px!important;height:auto!important;padding:5px 3px!important;}
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-filters{gap:4px 5px!important;}
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-filters label:not(.schedule-past-filter){grid-template-columns:minmax(0,1fr);gap:2px;font-size:12px!important;}
 html[data-build="5"] body[data-screen="games"] #app .unified-schedule .schedule-filters select{grid-column:1;font-size:13px!important;height:38px!important;min-height:38px!important;padding:3px 2px!important;}
}


/* assets/ui/payment-promo.css */
.payment-promo-form{display:grid;gap:15px;max-width:680px;margin:20px auto;color:#30291f}.payment-promo-form>label{display:grid;gap:6px}.payment-promo-form input[type=text],.payment-promo-form input:not([type]){width:100%;font:inherit;padding:11px;border:1px solid #ac9571;border-radius:6px;background:#fffaf0;color:#30291f;box-sizing:border-box}.payment-promo-form fieldset{display:flex;gap:14px 25px;flex-wrap:wrap;border:1px solid #c6b797;border-radius:7px;padding:14px}.payment-promo-form fieldset label{display:flex;align-items:center;gap:8px}.payment-promo-form .form-help{font-size:.85em;line-height:1.4}.payment-promo-total{display:flex;flex-wrap:wrap;gap:8px 18px;padding:18px;border-block:1px solid #ab8b53;background:#ece4cf}.payment-promo-total strong{font-size:1.4em;display:block;flex-basis:100%;color:#315f50}.payment-promo-total small{flex-basis:100%}[data-payment-promo-error]{color:#953d31;white-space:pre-wrap}[data-payment-promo-error]:empty{display:none}.billing-subscription-cash-list{margin:18px 0}.billing-subscription-cash-list article{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:12px;border:1px solid #b8a181;border-radius:6px}.billing-subscription-cash-list small{display:block}.billing-promo-caption{display:block;font-size:.85em;color:#63543d;margin-top:4px}
@media(max-width:520px){.payment-promo-form{gap:12px}.payment-promo-form fieldset{display:grid}.payment-promo-total{padding:13px}}


/* assets/ui/qa-fixes.css */
/* Game participants keep their portrait, identity and sheet action in one compact row. */
html[data-build="5"] #dialog .participant-row {
 display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;
 margin-top:6px;padding:8px 10px;min-height:66px;box-sizing:border-box;
}
html[data-build="5"] #dialog .participant-row>.participant-person {
 display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:10px;
 flex:1 1 180px;min-width:0;
}
html[data-build="5"] #dialog .participant-person>img.mini-avatar {
 display:block!important;width:48px!important;height:48px!important;
 min-width:48px!important;max-width:48px!important;max-height:48px!important;
 object-fit:cover;object-position:center;border-radius:6px;
}
html[data-build="5"] #dialog .participant-person>div {min-width:0;gap:2px;overflow-wrap:anywhere;}
html[data-build="5"] #dialog .participant-person strong {line-height:1.25;}
html[data-build="5"] #dialog .participant-row>.row {
 flex:0 1 auto;max-width:100%;min-width:0;flex-wrap:wrap;justify-content:flex-end;
 gap:6px;margin-left:auto;
}
@media(max-width:600px) {
 html[data-build="5"] #dialog .participant-row>.row:has([data-master-manage]) {
  flex:1 1 100%;width:100%;
 }
 html[data-build="5"] #dialog .participant-row>.row:has([data-master-manage])>button {
  min-width:0;max-width:100%;min-height:44px!important;padding:6px 8px!important;
  white-space:normal;overflow-wrap:normal!important;line-height:1.2;
 }
}
/* Full character sheet dialogs have their own geometry, independent of forms. */
.overlay:has(.studio-sheet-dialog) { padding: 10px; }
#dialog.studio-sheet-dialog {
  width: calc(100vw - 20px); max-width: none; height: calc(100dvh - 20px);
  max-height: none; padding: 0; display: flex; flex-direction: column;
  overflow: hidden; margin: 0; background: #ead7af;
}
.studio-sheet-dialog > .dialog-head { flex: 0 0 auto; margin: 0; padding: 8px 54px 8px 18px; }
.studio-sheet-dialog > .dialog-head h2 { font-size: 22px; margin: 0; }
.studio-sheet-dialog > .dialog-head {top:0;position:relative;background:#ead7af url('/assets/ui/paper-grain.svg') center/600px;color:#49321f;}
.studio-sheet-dialog .dialog-sub {color:#65492e!important;font-size:13px!important;}
.sheet-dialog-tools {flex:none;padding:2px 16px 5px;}
.studio-sheet-dialog > .dialog-head p { margin: 3px 0 0; }
.studio-sheet-dialog .studio-character-sheet-embed { flex: 1 1 0; min-height: 0; width: 100%; overflow: hidden; }
.studio-sheet-dialog .studio-character-sheet-frame { display: block; width: 100%; height: 100%; border: 0; background: transparent; }
@media(max-width:760px) {
 .overlay:has(.studio-sheet-dialog) { padding: 0; }
 #dialog.studio-sheet-dialog { width: 100vw; height: 100dvh; border-radius: 0; }
 .studio-sheet-dialog > .dialog-head { padding-top: max(8px,env(safe-area-inset-top)); }
}
.chat-mobile-back {display:none;}
.classic-private-notes {display:grid;gap:10px;padding:16px;}
.classic-private-notes header {display:grid;gap:4px;}
.classic-private-notes textarea {min-height:200px;}
.gc-heading {background:#ecd9b3 url('/assets/ui/paper-grain.svg') center/600px!important;color:#46311f!important;border:1px solid #a57d45;border-radius:10px;padding:18px!important;}
.gc-heading :is(h1,p) {color:#46311f!important;}
.goal-card-body {background:#ead6ac url('/assets/ui/paper-grain.svg') center/600px!important;}
.approval-category-tabs button {background:#ead6ac url('/assets/ui/paper-grain.svg') center/cover!important;}
#displayTools {background:rgba(44,28,15,.92)!important;border:1px solid #b48a51;box-shadow:0 2px 12px #0007;padding:8px;border-radius:8px;}
.approval-mobile-tabs {display:none;}
@media(max-width:760px) {
 html[data-build="5"] body[data-screen="chats"] .game-stage {overflow:hidden!important;}
 html[data-build="5"] body[data-screen="chats"] #app {height:100%;overflow:hidden!important;padding-bottom:calc(72px + env(safe-area-inset-bottom))!important;}
 html[data-build="5"] .tavern-screen {height:100%;display:flex;flex-direction:column;min-height:0;}
 html[data-build="5"] .tavern-chat-desk {flex:1;min-height:0!important;height:100%;display:flex!important;flex-direction:column;overflow:hidden;}
 html[data-build="5"] body[data-screen="chats"] .tavern-chat-desk.mobile-thread .tavern-ledger-column {display:none!important;}
 html[data-build="5"] body[data-screen="chats"] .tavern-chat-desk.mobile-list .tavern-thread-column {display:none!important;}
 .tavern-chat-desk.mobile-thread .chat-mobile-back {display:block;flex:none;align-self:flex-start;padding:6px 14px;}
 .tavern-chat-desk .tavern-ledger-column {height:100%;min-height:0;overflow:auto;}
 html[data-build="5"] .tavern-chat-desk .tavern-thread-column {flex:1;min-height:0;height:0;overflow:hidden;}
 html[data-build="5"] .tavern-chat-desk .chat-window {height:100%!important;min-height:0!important;display:flex!important;flex-direction:column;}
 html[data-build="5"] .tavern-chat-desk .chat-window .messages {flex:1;min-height:0!important;max-height:none!important;overflow:auto!important;}
 .tavern-chat-desk .chat-compose {flex:none!important;position:relative!important;bottom:auto!important;}
 .tavern-notice-zone {flex:none;max-height:25vh;overflow:auto;}
 .quest-board-filters :is(input,select) {min-width:0;width:100%;font-size:14px!important;}
 .quest-board-filters {grid-template-columns:minmax(0,1fr)!important;gap:5px!important;}
 .merchant-chat-header strong {font-size:16px!important;overflow-wrap:anywhere;}
 .merchant-chat-compose {margin-bottom:calc(72px + env(safe-area-inset-bottom));}
 .ledger-find input[type="checkbox"] {width:18px!important;height:18px!important;min-height:18px!important;}
 .ca-tabs,.ma-tabs {flex-wrap:wrap!important;overflow:visible!important;gap:5px;}
 .ca-tabs button,.ma-tabs button {flex:1 0 auto;}
 html[data-build="5"] body[data-screen="approvals"] .approvals-screen {height:calc(100dvh - 210px);display:flex;flex-direction:column;min-height:0;}
 .approval-mobile-tabs {display:flex;gap:8px;flex:none;padding:5px 8px;}
 .approval-mobile-tabs button {flex:1;}
 html[data-build="5"] body[data-screen="approvals"] .approval-workspace {flex:1;height:0!important;min-height:0!important;display:flex!important;flex-direction:column;overflow:hidden!important;}
 html[data-build="5"] body[data-screen="approvals"] .approval-workspace[data-mobile-pane="sheet"] .approval-messenger {display:none!important;}
 html[data-build="5"] body[data-screen="approvals"] .approval-workspace[data-mobile-pane="chat"] .approval-sheet-pane {display:none!important;}
 html[data-build="5"] body[data-screen="approvals"] .approval-sheet-pane {height:100%;flex:1;}
 html[data-build="5"] body[data-screen="approvals"] .approval-messenger {height:100%;flex:1;}
 .approval-contact-list {max-height:170px!important;flex:0 1 auto!important;overflow:auto;}
 html[data-build="5"] .shopkeeper-dialogue .merchant-name {font-size:16px!important;line-height:1.2;overflow-wrap:anywhere;}
 html[data-build="5"] .shopkeeper-dialogue {padding-bottom:8px!important;}
 html[data-build="5"] .chat-compose {grid-template-columns:32px 32px minmax(0,1fr) 42px!important;gap:4px!important;padding-inline:8px!important;}
 html[data-build="5"] .chat-compose .icon-button {width:30px!important;min-width:30px!important;padding:4px!important;}
 html[data-build="5"] .chat-compose .chat-send-button {width:40px!important;min-width:40px!important;padding:4px!important;font-size:0!important;}
 html[data-build="5"] .chat-compose .chat-send-button::after {content:'➤';font-size:18px;color:#3e3826;}
 html[data-build="5"] .merchant-chat.chat-compose {grid-template-columns:minmax(0,1fr) 42px!important;}
}
@media(min-width:761px){
 html[data-build="5"] body[data-screen="games"] .games-council-scroll {padding-inline:clamp(38px,4vw,62px)!important;}
}

@media(max-width:760px){#mobileNav{border-top:3px solid #97744a!important;box-shadow:inset -15px 0 16px -16px #462e16;scrollbar-width:thin;scrollbar-color:#8b632f #ead4a0;mask-image:linear-gradient(to right,#000 0%,#000 92%,#0008 100%);}#mobileNav::after{content:'›';position:sticky;right:0;align-self:center;flex:0 0 16px;color:#5a3923;font-size:25px;background:#ecd6a5;border-radius:5px;pointer-events:none;} .ledger-find{background:#f0dfb9 url('/assets/ui/paper-grain.svg') center/cover!important;} .ledger-find input,.ledger-find select{font-size:15px!important;min-width:0;}}

@media(max-width:760px){
 html[data-build="5"] body[data-screen="approvals"] #app .approvals-screen{height:calc(100dvh - 210px)!important;max-height:calc(100dvh - 210px)!important;min-height:0!important;display:flex!important;flex-direction:column!important}
 html[data-build="5"] body[data-screen="approvals"] #app .approval-workspace{height:0!important;min-height:0!important;flex:1!important;overflow:hidden!important}
 html[data-build="5"] body[data-screen="approvals"] #app .approval-messenger{height:100%!important;min-height:0!important;overflow:hidden!important;background:#efdfbb url('/assets/ui/paper-grain.svg') center/cover!important}
 html[data-build="5"] body[data-screen="approvals"] #app .approval-messenger .chat-window{min-height:0!important;height:0!important;flex:1!important;overflow:hidden!important}
 html[data-build="5"] body[data-screen="approvals"] #app .approval-messenger .messages{min-height:0!important;height:0!important;flex:1!important;overflow:auto!important;background:transparent!important}
 html[data-build="5"] body[data-screen="chats"] #app .tavern-screen{display:flex!important;flex-direction:column!important;height:calc(100dvh - 172px)!important;min-height:0!important}
 html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk{display:flex!important;flex-direction:column!important;height:0!important;flex:1!important;overflow:hidden!important}
 html[data-build="5"] body[data-screen="chats"] #app .tavern-thread-column{display:flex!important;flex-direction:column!important;min-height:0!important;height:0!important;flex:1!important;overflow:hidden!important}
 html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-list .tavern-thread-column{display:none!important}
 html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .tavern-ledger-column{display:none!important}
 html[data-build="5"] body[data-screen="chats"] #app .chat-window{height:0!important;flex:1!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
 html[data-build="5"] body[data-screen="chats"] #app .chat-window .messages{flex:1!important;min-height:0!important;height:0!important;overflow:auto!important}
 html[data-build="5"] body[data-screen="chats"] #app .chat-compose{min-height:48px!important;flex:none!important;position:relative!important}
 html[data-build="5"] body[data-screen="shop"] #app .shopkeeper-dialogue.chat-window{height:220px!important;max-height:220px!important;min-height:0!important;display:flex!important;flex-direction:column!important;padding-bottom:0!important;overflow:hidden!important}
 html[data-build="5"] body[data-screen="shop"] #app .shopkeeper-dialogue .merchant-chat-history{min-height:0!important;max-height:none!important;flex:1!important;overflow:auto!important}
 html[data-build="5"] body[data-screen="shop"] #app .merchant-chat.chat-compose{display:grid!important;grid-template-columns:minmax(0,1fr) 42px!important;min-height:0!important;height:auto!important;padding:7px!important;flex:none!important;margin:0!important}
 html[data-build="5"] body[data-screen="shop"] #app .merchant-chat.chat-compose textarea{min-width:0!important;min-height:36px!important;height:36px!important;font-size:15px!important}
}


/* assets/ui/player-table.css */
.player-table{position:fixed;inset:0;z-index:1400;display:flex;flex-direction:column;background:#342516 url('/assets/ui/optimized/games-557f2982.webp') center/cover;color:#3d2b1c;font-size:16px;--play-left:48%}
.play-header{display:flex;align-items:center;gap:14px;padding:9px 18px;background:#f0ddaf url('/assets/ui/paper-grain.svg') center/cover;border-bottom:3px solid #9b6b38;min-height:60px}
.play-header h1{font-size:23px;margin:0;flex:1}.play-header small{font-size:13px}.player-table button,.player-table select{font:inherit;color:#422c1d;background:#f7e8c5;border:1px solid #a77943;border-radius:7px;padding:7px 10px;cursor:pointer}.player-table button:hover,.player-table button.active{background:#e7c987}.player-table button:disabled{opacity:.5;cursor:default}.player-table button:focus-visible,.player-table select:focus-visible{outline:3px solid #447968;outline-offset:2px}
.play-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,var(--play-left)) 9px minmax(0,1fr)}.play-divider{padding:0!important;border:0!important;border-radius:0!important;background:#9c713d!important;cursor:col-resize!important;touch-action:none}.play-sheet,.play-left{min-width:0;min-height:0}.play-sheet iframe{width:100%;height:100%;border:0;background:transparent}.play-left{display:flex;flex-direction:column;background:#efdfba url('/assets/ui/paper-grain.svg') center/cover;padding:10px;gap:7px;overflow:hidden}.play-scene{height:27%;min-height:125px;position:relative;overflow:hidden;border:3px solid #755027;border-radius:10px;background:#281d18}.play-scene .tt-scene-canvas{width:100%;height:100%;position:relative}.play-scene .tt-scene-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.play-scene .tt-display-layer{position:absolute;transform:translate(-50%,-50%);margin:0;display:flex;align-items:center;justify-content:center}.play-scene .tt-display-layer img{width:100%;height:100%;object-fit:contain}.play-scene .tt-display-caption{position:absolute;bottom:6px;left:5%;right:5%;background:#352319dd;color:#ffe6b2;padding:6px;text-align:center}
.play-turn{display:flex;justify-content:space-between;gap:8px;background:#ddc393;border:1px solid #ab824e;border-radius:7px;padding:8px;flex-wrap:wrap}.play-turn.my-turn{background:#d2dfb8;border:2px solid #477357}.play-turn span{font-size:14px}.play-hint,.play-result{margin:0;font-size:16px;line-height:1.3}.play-hint{padding:6px 9px;background:#f9edcf;border-left:4px solid #936b3d}.play-result{min-height:22px;color:#65352c}.play-map{flex:1;min-height:120px;overflow:hidden;border:2px solid #86613a;border-radius:8px;background:#3c3226}.play-map .tt-map-scroll{width:100%;height:100%;overflow:auto}.play-map .tt-map{display:block;touch-action:none;margin:auto}.play-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.play-actions select{max-width:100%;min-width:160px;flex:1}.play-actions select[data-play=attack]{flex:1 1 100%;width:100%;order:-1}.play-selection{flex-basis:100%;margin:0;font-size:14px;color:#753d2b}.play-mobile-tabs{display:none}.play-map .current-turn>circle{stroke:#fff39c!important;stroke-width:6;filter:drop-shadow(0 0 6px #f2c14d)}.play-map .selected>circle{stroke:#a4e4df!important;stroke-width:5}
@media(max-width:900px){.play-header{gap:5px;padding:7px}.play-header h1{font-size:18px}.play-header small{display:none}.play-header button{font-size:13px;padding:6px}.play-mobile-tabs{display:flex;gap:8px;padding:5px;background:#ead4a5}.play-mobile-tabs button{flex:1}.play-layout{display:block}.play-left,.play-sheet{height:100%}.play-divider,.play-sheet{display:none}.show-sheet .play-sheet{display:block}.show-sheet .play-left{display:none}.play-scene{height:22%;min-height:100px}.play-actions button,.play-actions select{font-size:14px;padding:7px}.play-turn{font-size:14px}.play-hint{font-size:13px}.play-left{padding:6px}.play-map .tt-map{min-width:0}.player-table .tt-curtain{font-size:16px}}

.play-map .play-can-target>circle{stroke:#96d4a0;stroke-width:4}.play-map .play-area-target>circle{stroke:#f8b765;stroke-width:5}.play-map [data-token]:focus-visible{outline:none}.play-map [data-token]:focus-visible>circle{stroke:#fff;stroke-width:5}

/* Persistent, independently collapsible game regions. */
.player-table [hidden]{display:none!important}
.player-table .play-layout{grid-template-columns:minmax(0,var(--play-left)) 10px minmax(0,1fr)}
.player-table:not(.has-play-sheet) .play-layout,.player-table:not(.has-play-scene):not(.has-play-map) .play-layout{grid-template-columns:minmax(0,1fr)}
.player-table .play-left{display:grid;grid-template-rows:minmax(0,var(--play-scene,30%)) 10px minmax(0,1fr);gap:0;padding:8px}
.player-table:not(.has-play-scene) .play-left,.player-table:not(.has-play-map) .play-left{grid-template-rows:minmax(0,1fr)}
.play-scene-pane{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}
.player-table .play-scene-pane .play-scene{height:auto;min-height:0;flex:1;border-radius:5px}
.play-battle{display:flex;flex-direction:column;min-width:0;min-height:0;gap:6px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.player-table .play-battle .play-map{flex:1 0 120px;min-height:120px}
.play-battle>:not(.play-map){flex-shrink:0}
.player-table .play-sheet{display:flex;flex-direction:column;overflow:hidden}
.player-table .play-sheet iframe{flex:1;min-height:0;height:0}
.play-region-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;color:#674a2f;min-height:25px;padding:0 4px 3px;background:#efdfba url('/assets/ui/paper-grain.svg') center/cover}
.play-region-heading>button{padding:1px 7px;min-height:24px!important;font-size:14px;background:transparent;border-color:#a9865b66}
.play-region-heading>button:hover{background:#d7b984}
.play-sheet>.play-region-heading{padding:3px 8px;border-bottom:1px solid #a88959}
.player-table .play-divider,.player-table .play-row-divider{display:flex;align-items:center;justify-content:center;padding:0!important;border:0!important;border-radius:0!important;background:#ac8858 url('/assets/ui/paper-grain.svg') center/cover!important;touch-action:none;position:relative}
.player-table .play-divider{cursor:col-resize!important;border-inline:1px solid #78532d!important}
.player-table .play-row-divider{cursor:row-resize!important;margin:1px 0;border-block:1px solid #b28d57!important}
.play-divider>span{height:42px;width:3px;border-inline:1px solid #714f2c}
.play-row-divider>span{height:3px;width:42px;border-block:1px solid #714f2c}
.player-table [data-play-resize]:hover,.player-table [data-play-resize]:focus-visible{box-shadow:inset 0 0 0 2px #477565;z-index:2}
.play-resizing{user-select:none}.play-resizing iframe{pointer-events:none}
.play-resize-shield{position:fixed;inset:0;z-index:100;cursor:grabbing}
.play-panel-menu{position:relative;z-index:20;font-size:14px}
.play-panel-menu>summary{cursor:pointer;list-style:none;padding:7px 10px;border:1px solid #a77943;border-radius:7px;background:#f7e8c5;white-space:nowrap}
.play-panel-menu>summary:hover{background:#e7c987}
.play-panel-menu>summary:focus-visible{outline:3px solid #447968;outline-offset:2px}
.play-panel-menu>div{position:absolute;right:0;top:calc(100% + 7px);display:grid;gap:6px;width:235px;padding:12px;background:#eedab0 url('/assets/ui/paper-grain.svg') center/cover;border:2px solid #a47a47;border-radius:7px;box-shadow:0 8px 25px #24180e88}
.play-panel-menu p{margin:0 0 3px;color:#65472d}.play-panel-menu small{white-space:normal;line-height:1.4;color:#715336}
.play-panel-menu button{text-align:left}.play-panel-menu button[aria-pressed=false]{background:#d9c29a;color:#765b39}
.play-panel-menu button>span{display:inline-block;width:18px;color:#376353}
.play-mobile-tabs button[aria-pressed=true]{border-color:#46745f;background:#d7dfb5}
@media(max-width:900px){
 .player-table .play-layout{display:block}
 .player-table .play-left{height:100%;padding:5px}
 .player-table .play-sheet{height:100%;display:none}
 .player-table .play-divider{display:none}
 .player-table.show-sheet .play-sheet{display:flex}
 .player-table.show-sheet .play-left{display:none}
 .player-table .play-row-divider{min-height:12px}
 .play-panel-menu{font-size:12px}.play-panel-menu>summary{padding:6px}
 .play-panel-menu>div{position:fixed;right:8px;top:105px;max-height:calc(100dvh - 120px);overflow:auto}
 .play-region-heading{font-size:12px}
}


/* assets/ui/tabletop-polish.css */
/* Compact manuscript controls leave the map and scenery as the visual focus. */
.tt-console-header{padding:9px 20px;margin:7px 12px 0;gap:10px}.tt-console-header h1{font-size:23px;margin:2px 0}.tt-console-header .aw-eyebrow{font-size:11px}.tt-console-header .aw-button{padding:7px 10px!important;min-height:34px!important}.tt-console-body{padding:10px 12px 12px}.tt-console-layout{grid-template-columns:185px minmax(0,1fr);gap:12px}.tt-console-main>.aw-tabs{padding:5px;margin-bottom:9px}.tt-console-locations{max-height:calc(100dvh - 125px)}.tt-scene-preview{max-height:52dvh;aspect-ratio:16/9}.tt-console-main>.aw-paper{padding:10px 12px}.tt-battle-layout{grid-template-columns:minmax(0,1fr) 310px;gap:10px;align-items:stretch}.tt-battle-layout>.aw-paper{margin:0;padding:9px 11px;border-width:8px}.tt-battle-layout>.aw-map-panel{display:flex;flex-direction:column;height:calc(100dvh - 175px);min-height:390px}.tt-battle-layout .aw-map-toolbar{margin:0 0 5px;gap:4px}.tt-battle-layout .aw-map-panel>h3{font-size:21px;margin:0 0 5px;padding-bottom:4px}.tt-battle-layout .aw-map-toolbar .aw-button{padding:5px 7px!important;font-size:13px!important;min-height:32px!important}.tt-battle-layout .tt-map-scroll{flex:1;min-height:180px;height:auto;border:2px solid #916833}.tt-battle-layout .aw-place-row{margin:7px 0}.tt-battle-layout .aw-map-help{margin:5px 0;font-size:13px}.tt-battle-layout .tt-combat-inspector{position:relative;top:auto;height:calc(100dvh - 175px);max-height:none;overflow:auto}.tt-initiative{max-height:230px}.tt-token-inspector{margin-top:10px;padding-top:10px}.tt-token-inspector .aw-stats{gap:5px}.tt-token-inspector .aw-stats>span{padding:5px 7px}.tt-management{margin:4px 0 7px;border:1px solid #b59160;background:#e9d3a955;padding:5px 8px;border-radius:4px}.tt-management>summary{cursor:pointer;font-size:14px;list-style-position:inside;color:#553d27}.tt-management .aw-button{font-size:13px!important;padding:6px 8px!important;min-height:32px!important}.tt-management .aw-place-row select{max-width:none;flex-basis:100%}.tt-console-locations-toggle{display:none!important}.tt-turn-strip{display:flex;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:thin;flex-shrink:0;padding:3px}.tt-turn-chip{display:flex;align-items:center;gap:5px;padding:4px 8px;flex-shrink:0;border:1px solid #b18b57;border-radius:6px;background:#f3e4c4;font-size:13px;max-width:160px}.tt-turn-chip img{width:25px;height:25px;border-radius:50%;object-fit:cover}.tt-turn-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tt-turn-chip.active{border:2px solid #51846c;background:#d7e2ba}.tt-feedback{background:#eddbb6 url('/assets/ui/paper-grain.svg') center/cover;border:1px solid #b08952;border-radius:5px;padding:5px 8px}.tt-feedback summary{cursor:pointer;font-size:14px}.tt-feedback-feed{max-height:155px;overflow:auto;font-size:14px}.tt-feedback-feed p{margin:5px 0;padding:5px;border-bottom:1px solid #b7936355}.tt-feedback-feed time{font-size:11px;color:#756047;margin-right:6px}.tt-combat-fx{overflow:visible}.tt-fx-beam{stroke-dasharray:1000;stroke-dashoffset:1000;animation:tt-beam 1.2s ease-out forwards;filter:drop-shadow(0 0 6px #ffe7b477)}.tt-fx-impact{transform-box:fill-box;transform-origin:center;animation:tt-impact 1.5s ease-out both}.tt-fx-number{animation:tt-number 1.8s ease-out both}.tt-ping-ring{transform-box:fill-box;transform-origin:center;animation:tt-ping 1.4s ease-out infinite}.tt-map{cursor:grab}.tt-map[data-tool=place],.tt-map[data-tool=attack],.tt-map[data-tool=ping]{cursor:crosshair}.tt-map[data-tool=select] [data-token]{cursor:pointer}.tt-map[data-tool=measure]{cursor:crosshair}.tt-tool-search{margin:8px 0}.aw-readiness li button{border:0;background:transparent;color:#3d6e59;text-decoration:underline;font:inherit;cursor:pointer;padding:0}.tt-attacks-fold>summary{padding:8px;border-bottom:1px solid #b38c5e;cursor:pointer;color:#3a6552;font-weight:bold}.tt-quick-hp{display:grid;grid-template-columns:1fr 1fr;gap:6px}.tt-quick-hp input{min-height:34px!important}.play-actions button{min-height:35px}.play-actions select[data-play=attack]{font-weight:600}.play-turn{padding:6px 8px}.play-result{font-size:14px;min-height:0}.play-left .tt-feedback{flex-shrink:0}.play-left .tt-turn-strip{margin:-2px 0}.play-header .play-tools{display:flex;align-items:center;gap:5px}.play-player-stats{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.play-player-stats span{padding:1px 5px;border:1px solid #ad8b59;border-radius:4px;background:#fff0cb55}.play-map .tt-map{min-width:0}.play-map .tt-map-scroll{overscroll-behavior:contain}.tt-connection-offline{color:#934b31!important}.play-header [data-play-connection]{white-space:nowrap}.tt-pan-active{cursor:grabbing!important}
@keyframes tt-beam{0%{stroke-dashoffset:1000;opacity:0}15%{opacity:1}50%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:0}}@keyframes tt-impact{0%{opacity:0;transform:scale(.3)}30%{opacity:1;transform:scale(1.2)}100%{opacity:0;transform:scale(1.6)}}@keyframes tt-number{0%{opacity:0;translate:0 8px}20%,65%{opacity:1}100%{opacity:0;translate:0 -30px}}@keyframes tt-ping{0%{opacity:1;transform:scale(.5)}100%{opacity:0;transform:scale(1.8)}}
@media(max-width:1250px){.tt-console-layout{grid-template-columns:minmax(0,1fr)}.tt-console-locations{display:none}.tt-console.show-locations .tt-console-locations{display:block;position:absolute;left:14px;top:100px;width:240px;z-index:50;max-height:calc(100dvh - 125px);box-shadow:0 9px 25px #25140eaa}.tt-console-locations-toggle{display:inline-flex!important}.tt-battle-layout{grid-template-columns:minmax(0,1fr) 290px}.tt-battle-layout>.aw-map-panel,.tt-battle-layout .tt-combat-inspector{height:calc(100dvh - 165px)}}
@media(max-width:900px){.tt-console-header{flex-wrap:wrap;flex-direction:row;padding:9px 14px}.tt-console-header h1{font-size:19px}.tt-console-header .aw-toolbar{max-width:none;gap:4px}.tt-console-header .aw-button{font-size:12px!important;padding:6px!important}.tt-battle-layout{grid-template-columns:minmax(0,1fr)}.tt-battle-layout>.aw-map-panel{height:58dvh;min-height:360px}.tt-battle-layout .tt-combat-inspector{height:auto;max-height:none}.tt-initiative{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.tt-console-header .tt-command-result{max-width:85vw}.play-header .play-tools{gap:3px}.play-header .play-tools button{font-size:12px}.play-left .tt-turn-chip{font-size:12px;max-width:130px;padding:3px 5px}.play-left .tt-turn-chip img{width:20px;height:20px}}
@media(max-width:500px){.tt-console-header .aw-eyebrow{display:none}.tt-console-header small{font-size:11px}.tt-console-header .aw-toolbar{width:100%}.tt-console-header .aw-button[data-tt=display]{font-size:11px!important}.tt-console-main>.aw-tabs{padding:4px}.tt-console-main>.aw-tabs .aw-button{font-size:13px!important;padding:6px!important;min-height:33px!important}.tt-battle-layout>.aw-map-panel{min-height:375px;height:62dvh}.tt-initiative{grid-template-columns:1fr}.play-header{flex-wrap:wrap;min-height:48px}.play-header h1{font-size:16px}.play-header .play-tools{margin-left:auto}.play-header button{min-height:30px}.play-hint{padding:3px 6px}.play-scene{min-height:80px;height:18%}.play-actions{gap:4px}.play-actions button,.play-actions select{font-size:13px;min-height:32px;padding:5px}.play-actions select{min-width:110px}.play-turn span{font-size:12px}.play-left .tt-feedback{padding:3px 6px}.play-left .tt-feedback-feed{max-height:110px}.tt-console.show-locations .tt-console-locations{top:135px;max-height:calc(100dvh - 165px)}}
@media(prefers-reduced-motion:reduce){.tt-fx-beam{display:none}.tt-fx-impact,.tt-fx-number,.tt-ping-ring{animation:none;opacity:1;transform:none}}

body:has(.player-table) #overlay{z-index:1500}body:has(.player-table) #overlay .context-chat-dialog{width:min(900px,calc(100dvw - 20px));max-height:calc(100dvh - 20px)}.tt-header-more{position:relative;color:#49331f;font-size:14px;z-index:60}.tt-header-more>summary{padding:8px 10px;border:1px solid #a57d46;border-radius:5px;background:#ead6ad;cursor:pointer;list-style:none}.tt-header-more>div{position:absolute;right:0;top:calc(100% + 5px);display:grid;gap:6px;min-width:215px;padding:10px;background:#efdeba url('/assets/ui/paper-grain.svg') center/cover;border:2px solid #aa824c;border-radius:5px;box-shadow:0 8px 22px #25150e77}.player-table .tt-turn-chip{font-size:13px;padding:4px 7px;min-height:32px}.player-table .tt-turn-chip.active{border:2px solid #51846c;background:#d7e2ba}
.tt-battle-layout .tt-area-controls{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;padding:6px}.tt-area-controls .aw-field>span{font-size:12px}.tt-console .tt-area-controls :is(input[type=number],select){min-height:32px;padding:4px;font-size:14px}.tt-area-controls .aw-check{font-size:12px}.tt-area-effect{border-bottom:2px solid #ac8750;padding-bottom:10px}.tt-area-effect h3{font-size:20px}.tt-area-effect .aw-field>span{font-size:13px}.tt-area-effect form>button{position:sticky;bottom:0;z-index:5;box-shadow:0 -4px 8px #73522e33}
@media(max-width:1000px){.tt-battle-layout .tt-area-controls{grid-template-columns:repeat(3,minmax(0,1fr))}}

.tt-console .tt-map{margin-inline:auto}
.tt-quick-resources{border-top:1px solid #b59160;margin-top:10px;padding-top:7px}.tt-quick-resources h4{margin:4px 0 8px}.tt-quick-resource{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:7px;align-items:end;margin:8px 0}.tt-quick-resource .aw-toolbar{margin:0;gap:5px}.tt-quick-resource .aw-toolbar .aw-button{flex:1;white-space:nowrap;padding:7px!important}.tt-quick-resource :is(input,select){width:100%;min-width:0}.tt-quick-resource>.aw-wide{grid-column:1/-1}.tt-quick-resources p{font-size:13px;margin:7px 0}.tt-quick-resources [data-quick-resource-status]{min-height:2em}
/* Presentation instructions remain readable in the existing modal on phones. */
.aw-presentation-guide section{padding:12px 0;border-top:1px solid var(--line,#b8a17a)}
.aw-presentation-guide h3{margin:0 0 8px}
.aw-presentation-guide blockquote{margin:10px 0;padding:12px;border-left:3px solid var(--accent,#966b34);background:rgba(127,96,48,.08);overflow-wrap:anywhere;user-select:text}


/* assets/ui/tabletop-workspace.css */
/* Keep the stage independent of the growing participant and library lists. */
.tt-console-header{margin:5px 8px 0;padding:7px 14px;gap:8px;min-height:68px}
.tt-console-header h1{font-size:21px;margin:0}
.tt-console-header .aw-eyebrow{font-size:11px}
.tt-console-header .tt-command-result{font-size:12px;min-height:16px;margin:0}
.tt-console-body{padding:7px 10px 15px;overflow:auto}
.tt-console-layout{grid-template-columns:minmax(0,1fr) 310px;gap:10px;align-items:start}
.tt-console-locations{display:none}
.tt-console-locations-toggle{display:inline-flex!important}
.tt-console.show-locations .tt-console-locations{display:block;position:fixed;inset:90px auto 15px 12px;width:280px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 105px);z-index:70;overflow:auto;box-shadow:0 12px 32px #24150ed9}
.tt-console-main>.aw-tabs{position:sticky;top:0;padding:4px;margin:0 0 7px;gap:5px}
.tt-console-main>.aw-tabs .aw-button{min-height:34px;padding:6px 10px;font-size:15px}
.tt-console-main>.aw-paper,.tt-battle-layout>.aw-paper{padding:8px 10px;border-width:6px;margin:0 0 10px}
.tt-console-main>.aw-paper>h3,.tt-battle-layout>.aw-paper>h3{margin:0 0 6px;padding-bottom:4px;font-size:21px}
.tt-console-main .tt-stage-panel .tt-scene-preview{aspect-ratio:16/9;max-height:none;min-height:420px;height:calc(100dvh - 310px)}
.tt-battle-layout{display:flex;flex-direction:column;gap:0;min-width:0}
.tt-battle-layout>.aw-map-panel{display:block;flex:none;width:100%;height:auto;min-height:0}
.tt-battle-layout .tt-map-scroll{display:block;flex:none;height:calc(100dvh - 310px);min-height:420px;max-height:none;max-width:100%;width:100%;border:2px solid #916833}
.tt-battle-layout .aw-map-toolbar{margin:0 0 5px;gap:4px}
.tt-battle-actionbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:4px 0 7px;font-size:14px}
.tt-battle-actionbar>strong,.tt-battle-actionbar>span{margin-right:auto}
.tt-battle-actionbar small{font-weight:normal;margin-left:6px}
.tt-battle-actionbar .aw-button{font-size:14px!important;padding:6px 9px!important;min-height:33px!important}
.tt-battle-layout .tt-combat-inspector{position:static;width:100%;height:auto;max-height:none;overflow:visible}
.tt-combat-inspector .tt-initiative{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:220px}
.tt-combat-inspector .tt-token-inspector .aw-fields{grid-template-columns:repeat(4,minmax(0,1fr))}
.tt-console-rail{position:sticky;top:0;display:grid;grid-template-rows:minmax(205px,1fr) minmax(215px,1fr);gap:8px;height:calc(100dvh - 225px);min-height:460px;min-width:0}
.tt-console-rail>.aw-paper{margin:0;padding:8px 10px;border-width:6px;min-height:0;min-width:0;display:flex;flex-direction:column;overflow:hidden}
.tt-console-rail h3{font-size:20px;margin:0 0 5px;padding-bottom:5px}
.tt-console-rail .aw-toolbar{gap:4px;margin:0 0 5px;flex:none}
.tt-console-rail .aw-button{font-size:13px!important;min-height:31px!important;padding:5px 7px!important}
.tt-console-rail .aw-field{margin:0;font-size:13px}
.tt-console-rail input[type=range]{width:100%;margin:3px 0}
.tt-audio-status{font-size:12px;line-height:1.25;margin:2px 0 6px;flex:none}
.tt-now-playing{font-size:13px;line-height:1.25;margin:3px 0 5px;flex:none}
.tt-audio-library{min-height:45px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:3px}
.tt-audio-library h4{margin:4px 0;font-size:13px;color:#795a3a}
.tt-audio-library .tt-audio-cue{width:100%;justify-content:flex-start;margin-bottom:4px;text-align:left}
.tt-audio-cue>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tt-journal-panel .tt-log{flex:1;min-height:65px;max-height:none;margin:6px 0;font-size:14px;gap:6px;overscroll-behavior:contain}
.tt-journal-panel .tt-log article{padding-bottom:5px;overflow-wrap:anywhere}
.tt-journal-panel .tt-log small{font-size:11px}
.tt-journal-panel .aw-toolbar{margin:0}
.tt-journal-dice{font-size:13px;flex:none;max-height:150px;overflow:auto}
.tt-journal-dice summary{cursor:pointer;color:#416e61}
.tt-journal-dice .aw-fields{gap:4px;margin:4px 0}
.tt-journal-dice input{font-size:14px!important;min-height:31px!important;padding:4px!important}
.tt-roll-setting{max-width:230px;align-items:flex-start}
.tt-roll-setting input{flex:none}
.tt-dice-output-settings{display:grid;gap:6px;padding:8px 0;border-block:1px solid #b38a5366}
.tt-dice-output-settings .aw-check{margin:0;font-size:14px;white-space:nowrap}
.tt-dice-output-settings small{max-width:245px;font:12px/1.35 system-ui,sans-serif;color:#634b33}
.tt-console .tt-live-voice{display:grid;grid-template-columns:190px minmax(180px,220px) minmax(220px,1fr);gap:3px 12px;padding:6px 10px;border-width:5px;margin:0 0 7px;font-size:13px}
.tt-console .tt-live-voice>.aw-check{grid-column:1;margin:0}
.tt-console .tt-live-voice>.aw-field{grid-column:2;grid-row:1;margin:0;display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:12px}
.tt-console .tt-live-voice>.aw-field select{min-height:30px!important;padding:3px!important;font-size:13px!important}
.tt-console .tt-live-voice>.aw-toolbar{grid-column:3;grid-row:1;margin:0;gap:5px}
.tt-console .tt-live-voice>.aw-toolbar .aw-button{min-height:31px!important;padding:5px 8px!important;font-size:13px!important}
.tt-console .tt-live-voice>[data-live-voice-status]{grid-column:1/3;margin:0;font-size:12px;line-height:1.25}
.tt-console .tt-live-voice>[data-live-voice-text]{grid-column:3;grid-row:2;margin:0;max-height:38px;overflow:auto;font-size:13px}
.tt-console .tt-live-voice>[data-live-voice-results]{grid-column:1/-1;max-height:85px;overflow:auto;margin:2px 0;padding-left:22px}
.tt-console .tt-live-voice>details{grid-column:1/-1;font-size:12px;margin:0}
.tt-console .tt-live-voice>details[open]{max-height:230px;overflow:auto}
.tt-console .tt-live-voice>small{grid-column:1/-1}
.tt-participant-tray,.tt-catalog{padding:10px 12px;margin-bottom:10px;border:1px solid #aa8451;border-radius:5px;background:#efdebb url('/assets/ui/paper-grain.svg') center/400px;min-width:0}
.tt-participant-tray h4,.tt-catalog-heading h3{margin:0;font-size:19px}
.tt-participant-tray>p{font-size:13px;margin:4px 0 8px}
.tt-placement-gallery,.tt-catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.tt-placement-card{min-width:0;display:flex;flex-direction:column;gap:3px}
.tt-placement-card .tt-placement-handle{width:100%;display:flex!important;flex-direction:column;gap:3px;padding:6px!important;min-height:0!important;white-space:normal}
.tt-placement-card .tt-placement-handle img{width:100%;height:100px;object-fit:cover;object-position:center 25%;border-radius:3px}
.tt-placement-card .tt-placement-handle>span:not(.tt-placement-initials){font-size:15px;line-height:1.2}
.tt-placement-initials{width:100%;height:100px;display:grid;place-items:center;background:linear-gradient(135deg,#69533a,#263b36);color:#f7e6b6;font-size:32px;border-radius:3px}
.tt-placement-card small{font-size:12px}
.tt-placement-options{display:flex;flex-wrap:wrap;gap:3px}
.tt-placement-options .aw-button{flex:1;font-size:11px!important;min-height:27px!important;padding:4px!important}
.tt-placement-options .tt-unprepare{flex-basis:100%;color:#79543a!important}
.tt-catalog-heading{display:flex;justify-content:space-between;align-items:center;gap:6px;flex-wrap:wrap}
.tt-catalog-heading>span{font-size:13px}
.tt-catalog-tabs{display:flex;gap:5px;margin:8px 0}
.tt-catalog-tabs .aw-button{font-size:14px!important;min-height:34px!important}
.tt-catalog [role=search]{margin:0 0 8px;max-width:440px}
.tt-catalog [role=search] .aw-field>span{font-size:13px}
.tt-catalog [type=search]{min-height:36px!important;font-size:15px!important}
.tt-catalog-description{font-size:12px;margin:2px 4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tt-catalog-pages{font-size:13px;justify-content:center}
@media(min-width:1700px){.tt-console-layout{grid-template-columns:minmax(0,1fr) 350px}.tt-console-main .tt-stage-panel .tt-scene-preview,.tt-battle-layout .tt-map-scroll{height:calc(100dvh - 310px)}}
@media(max-width:1100px){.tt-console-layout{grid-template-columns:minmax(0,1fr) 270px}.tt-console .tt-live-voice{grid-template-columns:170px 200px minmax(0,1fr)}.tt-console .tt-live-voice>.aw-field{white-space:normal}.tt-console-header .aw-toolbar{max-width:590px}.tt-combat-inspector .tt-initiative{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.tt-console-layout{grid-template-columns:minmax(0,1fr)}.tt-console-rail{position:static;height:auto;min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:360px}.tt-console-main .tt-stage-panel .tt-scene-preview,.tt-battle-layout .tt-map-scroll{height:55dvh;min-height:340px}.tt-console .tt-live-voice{grid-template-columns:1fr 1fr}.tt-console .tt-live-voice>.aw-toolbar{grid-column:1/-1;grid-row:2}.tt-console .tt-live-voice>[data-live-voice-status]{grid-column:1/-1}.tt-console .tt-live-voice>[data-live-voice-text]{grid-column:1/-1;grid-row:auto}.tt-combat-inspector .tt-token-inspector .aw-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.tt-console-header{margin:4px;padding:7px 10px;flex-wrap:wrap}.tt-console-header .aw-toolbar{width:100%;max-width:none}.tt-console-header h1{font-size:19px}.tt-console-body{padding:5px}.tt-console .tt-live-voice{grid-template-columns:minmax(0,1fr);gap:4px}.tt-console .tt-live-voice>.aw-field{grid-column:1;grid-row:auto}.tt-console .tt-live-voice>.aw-toolbar{grid-row:auto;flex-wrap:wrap}.tt-console-main>.aw-tabs .aw-button{font-size:13px!important;padding:5px 7px!important}.tt-console-rail{grid-template-columns:1fr;grid-template-rows:340px 360px}.tt-console-main .tt-stage-panel .tt-scene-preview,.tt-battle-layout .tt-map-scroll{height:52dvh;min-height:310px}.tt-placement-gallery,.tt-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tt-combat-inspector .tt-initiative{grid-template-columns:1fr}.tt-battle-actionbar .aw-button{font-size:12px!important}.tt-console.show-locations .tt-console-locations{top:130px;max-height:calc(100dvh - 145px)}}
/* Permanent workspace: locations / stage / media. Narrow layouts stay in flow. */
.tt-console .tt-console-layout{grid-template-columns:290px minmax(0,1fr) minmax(300px,340px);gap:10px}
.tt-console .tt-console-locations,.tt-console.show-locations .tt-console-locations{display:block;position:sticky;inset:auto;top:0;width:auto;max-width:none;max-height:calc(100dvh - 150px);overflow:auto;z-index:auto;box-shadow:none;margin:0;padding:8px;border-width:5px}
.tt-console .tt-console-locations-toggle{display:none!important}
.tt-location-group{margin-bottom:9px;padding-bottom:8px;border-bottom:1px solid #a8855555}
.tt-location-group>.aw-button{width:100%;justify-content:flex-start;font-size:16px!important;min-height:32px!important;padding:6px 8px!important}
.tt-location-states{display:flex;gap:3px;flex-wrap:wrap;margin:5px 0 0 8px}
.tt-location-states .aw-button{font-size:12px!important;min-height:25px!important;padding:3px 6px!important}
.tt-location-group.is-current{border-left:3px solid #577c62;padding-left:5px}
.tt-console-locations>.aw-toolbar{gap:3px}.tt-console-locations>.aw-toolbar .aw-button{font-size:12px!important;padding:5px!important;min-height:28px!important}
.tt-console-locations h4{font-size:15px;margin:9px 0 4px}.tt-console-locations p,.tt-console-locations label,.tt-console-locations summary{font-size:13px}
.tt-console .tt-console-rail{grid-template-rows:minmax(330px,1.8fr) minmax(190px,1fr);height:calc(100dvh - 155px);min-height:550px}
.tt-audio-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;flex:none}.tt-audio-heading h3{border:0!important;padding:0!important;font-size:19px!important;margin:0!important}
.tt-audio-controls{display:flex;align-items:center;gap:10px;margin:5px 0;flex:none;font-size:12px}
.tt-volume-control{display:flex;align-items:center;gap:5px;min-width:0;flex:1}.tt-volume-control input{width:90px!important;min-width:35px;flex:1}
.tt-console-rail .tt-audio-device{white-space:nowrap;font-size:12px;margin:0}.tt-audio-device input{min-height:0!important}
.tt-console-rail .tt-audio-status{font-size:11px;line-height:1.2;margin:0 0 5px;max-height:28px;overflow:auto}
.tt-console-rail .tt-audio-library{flex:1;min-height:180px}.tt-audio-category{margin:0 0 10px}.tt-audio-category h4{font-size:14px!important;margin:4px 0 6px!important;padding-bottom:4px;border-bottom:1px solid #b5916055}
.tt-audio-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.tt-audio-options .tt-audio-cue{margin:0!important;white-space:normal;gap:5px;min-height:38px!important;align-items:center}.tt-audio-options .tt-audio-cue>span:last-of-type{white-space:normal;overflow-wrap:anywhere;line-height:1.15}.tt-audio-cue small{font-size:10px;margin-left:auto;color:#7b6246}
.tt-console .tt-live-voice{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:5px 10px;position:relative;min-height:40px;padding:6px 8px;font-size:14px}
.live-voice-primary{display:flex;align-items:center;gap:5px 8px;flex-wrap:wrap;min-width:0}
.tt-console .live-voice-primary>.aw-check{flex:none;font-size:14px;white-space:nowrap;margin:0}
.tt-console .live-voice-primary>.aw-field{display:flex;flex-direction:row;align-items:center;gap:4px;flex:none;font-size:13px;margin:0}
.tt-console .live-voice-primary>.aw-field select{font-size:14px!important;width:160px;min-height:30px!important;padding:3px 5px!important}
.tt-console .live-voice-primary>.aw-toolbar{display:flex;gap:4px;flex-wrap:wrap;margin:0;min-width:0}
.tt-console .live-voice-primary>.aw-toolbar .aw-button{min-height:30px!important;font-size:14px!important;line-height:1.2!important;padding:4px 7px!important}
.tt-console .live-voice-primary>[data-live-voice-status]{flex:1 1 145px;min-width:0;margin:0;white-space:normal;overflow-wrap:anywhere;font-size:14px;line-height:1.25}
.live-voice-feedback{grid-column:1/-1;min-width:0;padding-top:5px;border-top:1px solid #a5835140}
.live-voice-feedback__row{display:grid;grid-template-columns:82px minmax(0,1fr);gap:8px;align-items:baseline;min-width:0}
.live-voice-feedback__row+.live-voice-feedback__row{margin-top:3px}
.live-voice-feedback__label{font-size:13px;line-height:1.3;color:#795a3a}
.tt-console .live-voice-feedback__text{margin:0;min-width:0;font-size:14px;line-height:1.3;white-space:pre-wrap;overflow-wrap:anywhere}
.live-voice-command-list{margin:3px 0 0;padding-left:19px;max-height:160px;overflow:auto;overscroll-behavior:contain;white-space:normal}
.live-voice-command-list:empty{display:none}
.live-voice-command-list li{padding:1px 0;overflow-wrap:anywhere}
.tt-console .tt-live-voice>.tt-voice-details{grid-column:2;grid-row:1;font-size:14px;margin:3px 0 0}
.tt-voice-details>summary{cursor:pointer;white-space:nowrap;font-size:14px}
.tt-console .tt-live-voice>.tt-voice-details[open]{grid-column:1/-1;grid-row:3;max-height:340px;overflow:auto}
.tt-voice-details .aw-field{font-size:14px!important}.tt-voice-details textarea{width:100%;min-height:55px}.tt-voice-details>p,.tt-voice-details>ol{margin:4px 0}
.tt-console .tt-combat-inspector{container-type:inline-size;container-name:combat-console}
.tt-console .tt-combat-workspace{display:grid;grid-template-columns:minmax(310px,.85fr) minmax(0,1fr);gap:12px;align-items:start}
.tt-console .tt-combat-roster{min-width:0;container-type:inline-size;container-name:combat-roster}
.tt-console .tt-combat-inspector .tt-initiative{display:flex;flex-direction:column;gap:5px;max-height:580px;overflow:auto}
.tt-console .tt-initiative-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto auto;gap:4px 6px;align-items:center;padding:5px;border:1px solid #b5946255;border-radius:5px}.tt-console .tt-initiative-row>input{width:42px!important;min-height:34px!important;font-size:20px!important;padding:2px!important;text-align:center;box-sizing:border-box}
.tt-console .tt-initiative-row>button{display:flex;flex-direction:row;align-items:center!important;gap:4px 8px;min-width:0;padding:3px 5px!important;min-height:34px!important;font-size:23px!important;overflow-wrap:anywhere}.tt-initiative-row small{font-size:19px;line-height:1.2;white-space:nowrap;flex:none}.tt-initiative-row strong{font-weight:normal;flex:1;min-width:0;line-height:1.15}
.tt-initiative-tools{display:flex;gap:3px;flex-wrap:nowrap}.tt-initiative-tools .aw-button{min-height:32px!important;font-size:19px!important;padding:3px 5px!important;gap:4px}.tt-initiative-tools svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.tt-combat-roster>.aw-toolbar{gap:5px}.tt-combat-roster>.aw-toolbar .aw-button{font-size:19px!important;min-height:34px!important;padding:4px 7px!important}
.tt-console .tt-token-inspector{margin:0;padding:0;border:0}.tt-token-inspector>h3{font-size:20px;margin:0 0 6px}.tt-inline-attack{margin:0 0 10px;padding:9px;border:1px solid #9d805b;border-radius:5px;background:#fff4d330}.tt-inline-attack h4{margin:0 0 7px;font-size:17px}
.tt-console .tt-combat-inspector .tt-token-inspector .aw-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.tt-combat-actions .aw-field{font-size:12px;margin:0}.tt-combat-actions input:not([type=checkbox]),.tt-combat-actions select{min-height:32px!important;font-size:13px!important;padding:5px!important}
.tt-inline-attack-rule{margin:0;font-size:13px}.tt-inline-roll-options{display:flex;flex-wrap:wrap;gap:4px 9px}.tt-inline-roll-options .aw-check{font-size:12px;margin:0;white-space:nowrap}.tt-combat-actions .aw-toolbar{gap:4px;margin:5px 0}.tt-combat-actions .aw-button{min-height:29px!important;font-size:12px!important;padding:5px 7px!important}.tt-combat-actions .aw-stats{gap:4px;margin:5px 0}.tt-combat-actions .aw-stats>span{font-size:12px;padding:4px 6px}
@media(min-width:1700px){.tt-console .tt-console-layout{grid-template-columns:300px minmax(0,1fr) 375px}}
@media(max-width:1150px){.tt-console .tt-console-layout{grid-template-columns:240px minmax(0,1fr) 275px}.tt-audio-options{grid-template-columns:1fr}.tt-console .tt-live-voice{flex-wrap:wrap}.tt-console .tt-live-voice>[data-live-voice-status]{flex-basis:180px}}
@media(max-width:900px){.tt-console .tt-console-layout{grid-template-columns:220px minmax(0,1fr)}.tt-console .tt-console-rail{grid-column:1/-1;position:static;grid-template-columns:1.3fr 1fr;grid-template-rows:360px;height:auto;min-height:0}.tt-audio-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tt-console .tt-console-layout{display:flex;flex-direction:column}.tt-console .tt-console-locations,.tt-console.show-locations .tt-console-locations{position:static;width:100%;max-height:260px}.tt-location-group{display:inline-block;vertical-align:top;min-width:140px;max-width:48%;margin:3px}.tt-console .tt-console-main{width:100%}.tt-console .tt-console-rail{width:100%;display:grid;grid-template-columns:1fr;grid-template-rows:390px 260px}.tt-console .tt-combat-workspace{grid-template-columns:1fr}.tt-console .tt-combat-inspector .tt-initiative{max-height:230px}.tt-console .tt-live-voice>.aw-toolbar{flex-wrap:wrap;flex:1 1 100%}.tt-console .tt-live-voice>[data-live-voice-status]{white-space:normal}.tt-console .tt-live-voice>.tt-voice-details{flex-basis:auto}}
/* Five compact action bands. Controls wrap within their band on small screens. */
.tt-console .tt-combat-workspace{gap:9px}
.tt-console .tt-combat-actions{min-width:0}
.tt-console .tt-token-inspector>h3{font-size:18px;line-height:1.15;margin:0 0 4px}
.tt-console .tt-inline-attack{padding:6px;margin:0 0 5px}
.tt-console .tt-inline-attack h4{font-size:17px;line-height:1.15;margin:0 0 4px}
.tt-attack-compact-form{display:flex;flex-direction:column;gap:4px}
.tt-attack-choice-row,.tt-attack-options-row,.tt-vitals-row,.tt-health-row,.tt-economy-row{display:flex;gap:4px 7px;align-items:center;flex-wrap:wrap;min-width:0}
.tt-console .tt-attack-choice-row .aw-field{display:flex;flex-direction:row;align-items:center;gap:5px;flex:1 1 180px;min-width:0;white-space:nowrap;font-size:20px}
.tt-console .tt-attack-choice-row .tt-weapon-choice{flex-basis:270px}.tt-console .tt-attack-choice-row .tt-target-choice{flex-basis:220px}
.tt-console .tt-attack-choice-row .aw-field>select{width:0;flex:1;min-width:65px}
.tt-console .tt-combat-actions input:not([type=checkbox]),.tt-console .tt-combat-actions select{height:31px!important;min-height:31px!important;padding:2px 5px!important;box-sizing:border-box;font-size:15px!important;border-radius:4px!important}
.tt-console .tt-combat-actions .aw-button{height:auto;min-height:30px!important;font-size:14px!important;line-height:1.15!important;padding:4px 6px!important}
.tt-console .tt-inline-attack-rule{font-size:14px;line-height:1.25;flex:1 1 140px}
.tt-console .tt-inline-roll-options{gap:3px 7px;align-items:center;flex:1 1 auto}
.tt-console .tt-inline-roll-options .aw-check{font-size:14px;gap:4px}
.tt-console .tt-inline-roll-options input,.tt-console .tt-free-movement input{width:17px!important;height:17px!important;min-height:0!important;margin:0;flex-shrink:0}
.tt-console .tt-vitals-row{padding:3px 0;border-bottom:1px solid #a5835150}
.tt-console .tt-vitals-row .aw-stats{display:flex;flex:1;gap:6px;margin:0;flex-wrap:wrap}
.tt-console .tt-vitals-row .aw-stats>span{background:none;border:0;padding:0;font-size:15px;white-space:nowrap}
.tt-console .tt-vitals-row .aw-stats b{font-size:16px}
.tt-console .tt-vitals-row>.aw-toolbar{margin:0;flex-wrap:nowrap}
.tt-console .tt-health-row{margin:4px 0;padding:3px 0;border-bottom:1px solid #a5835150}
.tt-console .tt-health-row>.aw-field{display:flex;gap:4px;flex-direction:row;align-items:center;min-width:0;flex:1 1 210px;font-size:14px}
.tt-console .tt-health-row>.aw-field>span{font-size:14px}
.tt-console .tt-health-row>.aw-field:first-child{flex:0 1 180px}
.tt-console .tt-health-row input{width:60px;min-width:50px}
.tt-console .tt-health-row select{width:0;flex:1;min-width:65px}
.tt-console .tt-economy-row{position:relative;border-bottom:1px solid #a5835150;padding:2px 0 5px;margin-bottom:4px}
.tt-console .tt-economy-row>.aw-toolbar{display:contents}
.tt-console .tt-condition-picker{margin:0;font-size:14px}
.tt-console .tt-condition-picker summary,.tt-console .tt-conditions label{font-size:14px}
.tt-console .tt-condition-picker[open]>.tt-conditions{position:absolute;top:100%;left:0;z-index:6;width:min(420px,100%);max-height:240px;overflow:auto;padding:10px;background:#f8edcf;border:1px solid #89633b;box-shadow:0 5px 15px #30211255}
.tt-console .tt-token-inspector>details{font-size:14px;margin:3px 0}
.tt-console .tt-token-inspector>details>summary{font-size:14px}
.tt-console .tt-free-movement{display:flex;align-items:center;gap:5px;font-size:19px!important;line-height:1.2;margin:0;white-space:nowrap}
.tt-console .tt-npc-resources:empty{display:none}
.tt-console .tt-npc-resources:not(:empty){display:flex;flex-wrap:wrap;gap:4px;margin:3px 0}
@container combat-console (min-width:1100px){.tt-console .tt-combat-workspace{grid-template-columns:minmax(470px,1fr) minmax(0,1.12fr)}}
@container combat-console (max-width:719px){.tt-console .tt-combat-workspace{grid-template-columns:minmax(0,1fr)}}
@container combat-roster (max-width:640px){.tt-console .tt-initiative-tools .aw-button>span{display:none}.tt-console .tt-initiative-tools .aw-button{width:30px;padding:3px!important}}
@container combat-roster (max-width:470px){.tt-console .tt-initiative-row{grid-template-columns:42px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:2px 5px}.tt-console .tt-initiative-row>input{grid-row:1/3}.tt-console .tt-initiative-row>button{grid-column:2;grid-row:1/3;flex-wrap:wrap;align-self:stretch}.tt-console .tt-initiative-row>button strong{flex-basis:100%}.tt-console .tt-initiative-row small{white-space:normal}.tt-console .tt-initiative-tools{grid-column:3;grid-row:1}.tt-console .tt-free-movement{grid-column:3;grid-row:2}}
@media(max-width:600px){.tt-console .tt-combat-workspace{grid-template-columns:1fr}.tt-console .tt-attack-choice-row .aw-field{flex-basis:100%}.tt-console .tt-health-row>.aw-field{flex-basis:100%}}
@media(max-width:600px){
 .tt-console .tt-live-voice{grid-template-columns:minmax(0,1fr);gap:5px}
 .tt-console .tt-live-voice>.tt-voice-details{grid-column:1;grid-row:3}
 .tt-console .tt-live-voice>.tt-voice-details[open]{grid-column:1;grid-row:3}
 .tt-console .live-voice-primary>.aw-field{flex-wrap:wrap;max-width:100%}
 .tt-console .live-voice-primary>.aw-toolbar{flex:1 1 100%}
 .tt-console .live-voice-primary>[data-live-voice-status]{flex-basis:100%}
 .live-voice-feedback__row{grid-template-columns:72px minmax(0,1fr);gap:5px}
}

.tt-console .tt-live-voice .live-voice-feedback__text,.tt-console .tt-live-voice [data-live-voice-text],.tt-console .tt-live-voice [data-live-voice-commands],.tt-console .tt-live-voice [data-live-voice-command-status]{font-size:14px!important;line-height:1.3;white-space:normal;text-overflow:clip;overflow-wrap:anywhere}
.tt-console .tt-live-voice .live-voice-feedback__label{font-size:13px!important}
.tt-console .live-voice-primary input[type=checkbox]{width:16px!important;height:16px!important;min-height:0!important;margin:0}

html body .tt-console[data-table-console] .tt-live-voice p[data-live-voice-text],html body .tt-console[data-table-console] .tt-live-voice .live-voice-command-list li{font-size:14px!important;line-height:1.3!important}

/* The shell applies its 85% text baseline; these author sizes retain readable controls. */
html body .tt-console .tt-initiative-row strong{font-size:23px!important}
html body .tt-console .tt-initiative-row small{font-size:19px!important}
html body .tt-console .tt-combat-actions .aw-field,html body .tt-console .tt-combat-actions .aw-field>span,html body .tt-console .tt-combat-actions .aw-check,html body .tt-console .tt-inline-roll-options .aw-check,html body .tt-console .tt-condition-picker,html body .tt-console .tt-condition-picker summary{font-size:20px!important}
html body .tt-console .tt-combat-actions select,html body .tt-console .tt-combat-actions input:not([type=checkbox]){font-size:21px!important;min-height:35px!important;height:35px!important}
html body .tt-console .tt-combat-workspace .aw-button{font-size:20px!important;min-height:33px!important;line-height:1.15!important}
html body .tt-console .tt-vitals-row .aw-stats>span{font-size:20px!important}
html body .tt-console .tt-vitals-row .aw-stats b{font-size:21px!important}
html body .tt-console .tt-token-inspector>h3{font-size:24px!important}
html body .tt-console .tt-inline-attack h4{font-size:23px!important}
html body .tt-console .tt-inline-attack-rule,html body .tt-console .tt-token-inspector>details,html body .tt-console .tt-token-inspector>details>summary,html body .tt-console .tt-free-movement{font-size:19px!important}
html body .tt-console[data-table-console] .tt-live-voice .live-voice-feedback__text,html body .tt-console[data-table-console] .tt-live-voice p[data-live-voice-text],html body .tt-console[data-table-console] .tt-live-voice .live-voice-command-list li,html body .tt-console[data-table-console] .tt-live-voice [data-live-voice-command-status]{font-size:17px!important;line-height:1.3!important}
html body .tt-console .tt-live-voice .live-voice-feedback__label{font-size:16px!important}

@media (pointer:coarse),(max-width:720px){
 html body .tt-console .live-voice-primary>.aw-toolbar [data-live-voice-microphone],
 html body .tt-console .live-voice-primary>.aw-toolbar [data-live-voice-cancel]{min-height:44px!important;max-width:100%;white-space:normal;touch-action:manipulation}
 .tt-console .live-voice-feedback__row{grid-template-columns:minmax(0,1fr);gap:2px}
}


/* assets/ui/tabletop-audio-mixer.css */
/* The soundtrack area follows the console body instead of pinning to the screen. */
.tt-console .tt-console-rail{position:static;top:auto;height:auto;min-height:0;grid-template-rows:none;grid-auto-rows:max-content;align-self:start;align-content:start;overflow:visible}
.tt-console .tt-console-rail>[data-tt-media]{overflow:visible;height:auto;max-height:none}
.tt-console .tt-console-rail .tt-audio-library{flex:none;min-height:0;max-height:none;overflow:visible;padding-right:0}
.tt-console .tt-audio-mixer{display:grid;gap:9px;min-width:0;margin:8px 0 12px;padding:8px 0 0;border:0;border-top:1px solid #b5916055}
.tt-console .tt-audio-mixer legend{padding-right:8px;font-size:14px;font-weight:600}
.tt-console .tt-mixer-row{display:grid;grid-template-columns:96px minmax(45px,1fr) 38px;gap:7px;align-items:center;min-width:0;margin:0;font-size:13px}
.tt-console .tt-mixer-row input[type=range]{width:100%!important;min-width:0;margin:0;accent-color:#39776c}
.tt-console .tt-mixer-row output{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.tt-console .tt-mixer-row:first-of-type{padding-bottom:9px;border-bottom:1px solid #b5916055}
.tt-console .tt-console-rail .tt-audio-status{max-height:none;overflow:visible;line-height:1.4}
@media(max-width:600px){.tt-console .tt-console-rail{grid-template-columns:minmax(0,1fr);grid-template-rows:none}.tt-console .tt-mixer-row{grid-template-columns:110px minmax(45px,1fr) 42px}}


/* assets/ui/tabletop-scene-controls.css */
[data-scene-preview] [data-layer]{touch-action:none;cursor:move}
[data-scene-preview] .tt-layer-selected{outline:2px solid #e9b85b;outline-offset:3px;overflow:visible!important}
[data-scene-preview] .tt-layer-toolbar{position:absolute;width:148px;box-sizing:border-box;transform:translateX(-50%);display:flex;gap:3px;background:#191b24;border:1px solid #e9b85b;border-radius:8px;padding:4px;z-index:2001;box-shadow:0 3px 15px #0008;pointer-events:auto}
[data-scene-preview] .tt-layer-toolbar button{width:32px;height:32px;min-width:32px;padding:0;color:#fff4d4!important;-webkit-text-fill-color:#fff4d4!important;background:#49321c!important;border:0;border-radius:4px;cursor:pointer;font-size:20px;line-height:1}
[data-scene-preview] .tt-layer-toolbar button:hover,[data-scene-preview] .tt-layer-toolbar button:focus-visible{background:#795735!important;outline:2px solid #e9b85b}
[data-scene-preview] .tt-layer-resize{position:absolute;width:14px;height:14px;border:2px solid #fff;background:#b47c25;box-sizing:border-box;z-index:111;pointer-events:auto}
.tt-layer-resize-nw{left:-8px;top:-8px;cursor:nwse-resize}.tt-layer-resize-ne{right:-8px;top:-8px;cursor:nesw-resize}.tt-layer-resize-sw{left:-8px;bottom:-8px;cursor:nesw-resize}.tt-layer-resize-se{right:-8px;bottom:-8px;cursor:nwse-resize}



/* assets/ui/chat-archive.css */
/* Archive cards have their own geometry. Only narrow frame rails stretch;
   the paper texture tiles at a fixed scale and corners keep their proportions. */
html[data-build="5"] body[data-screen="chats"] #app .tavern-screen>.tavern-notice-top{grid-row:1!important}
html[data-build="5"] body[data-screen="chats"] #app .tavern-screen>.tavern-chat-desk{grid-row:2!important}
html[data-build="5"] body[data-screen="chats"] #app .tavern-ledger-column>.chat-ledger{
 border-top:28px solid transparent!important;border-bottom:28px solid transparent!important;
 padding-top:2px!important;padding-bottom:2px!important;background-origin:border-box!important;box-sizing:border-box!important;
}
html[data-build="5"] body[data-screen="chats"] #app .chat-archive-folder{
 grid-row:3!important;min-width:0;min-height:0;height:auto!important;max-height:none!important;
 padding:0!important;margin:0!important;border:0!important;background:none!important;box-shadow:none!important;overflow:visible!important;
 color:#4a321e;
}
html[data-build="5"] body[data-screen="chats"] #app .chat-archive-folder>summary,
html[data-build="5"] body[data-screen="chats"] #app .tavern-notice-top>summary,
html[data-build="5"] body[data-screen="chats"] #app .archive-chat-card,
html[data-build="5"] body[data-screen="chats"] #app .chat-readonly-note{
 box-sizing:border-box;border:8px solid transparent!important;
 border-image:url('/assets/art/sheet-panel-v3.webp') 36 / 8px / 0 stretch!important;
 background:#f8edd7 url('/assets/ui/chat-archive-paper.svg') center/512px 512px repeat!important;
 background-clip:padding-box!important;border-radius:0!important;box-shadow:0 3px 6px #3b251d22!important;
}
html[data-build="5"] body[data-screen="chats"] #app .chat-archive-folder>summary{
 display:grid!important;grid-template-columns:minmax(0,1fr) auto 18px;align-items:center;gap:12px;
 min-height:62px!important;padding:6px 14px!important;list-style:none;cursor:pointer;color:#4a321e!important;
}
html[data-build="5"] body[data-screen="chats"] #app .chat-archive-folder>summary::-webkit-details-marker{display:none}
html[data-build="5"] body[data-screen="chats"] #app .chat-archive-folder>summary::before,
html[data-build="5"] body[data-screen="chats"] #app .chat-archive-folder>summary::after{content:none!important}
html[data-build="5"] body[data-screen="chats"] #app :is(.archive-folder-copy,.notice-summary-copy){display:grid!important;gap:2px;min-width:0;height:auto!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;line-height:1.2!important;font-size:inherit!important;text-align:left!important;justify-items:start}
html[data-build="5"] body[data-screen="chats"] #app .archive-folder-copy{margin:0!important;justify-self:stretch!important;justify-items:start!important;align-items:start!important;position:static!important;transform:none!important}
html[data-build="5"] body[data-screen="chats"] #app :is(.archive-folder-copy strong,.notice-summary-copy b){font-size:1.05rem!important;line-height:1.15!important}
html[data-build="5"] body[data-screen="chats"] #app :is(.archive-folder-copy small,.notice-summary-copy small){font-size:.78rem!important;line-height:1.2!important;color:#74583a}
html[data-build="5"] body[data-screen="chats"] #app :is(.archive-folder-count,.archive-group-count){
 display:grid;place-items:center;min-width:28px;padding:3px 7px;border:1px solid #b29361;border-radius:5px;background:#ead6af;color:#5c4026;font-size:.85rem;line-height:1;
}
html[data-build="5"] body[data-screen="chats"] #app .archive-chevron{display:block;font:700 20px/1 Georgia,serif;color:#735130;text-align:center}
html[data-build="5"] body[data-screen="chats"] #app .chat-archive-folder>summary>.archive-chevron{display:block!important;height:auto!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;font:700 20px/1 Georgia,serif!important}
html[data-build="5"] body[data-screen="chats"] #app .chat-archive-folder>summary>.archive-folder-count,
html[data-build="5"] body[data-screen="chats"] #app .tavern-notice-top>summary>span:not(.notice-summary-copy){display:grid!important;place-items:center;min-width:28px;height:28px!important;padding:3px 7px!important;border:1px solid #b29361!important;border-radius:5px!important;background:#ead6af!important;color:#5c4026!important;font-size:.85rem!important;line-height:1!important}
html[data-build="5"] body[data-screen="chats"] #app .tavern-notice-top>summary{display:grid!important;grid-template-columns:minmax(0,1fr) auto 18px;align-items:center;gap:12px;min-height:62px!important;padding:6px 14px!important;list-style:none;cursor:pointer}
html[data-build="5"] body[data-screen="chats"] #app .tavern-notice-top>summary::after{content:'⌄';grid-column:3;font:700 20px/1 Georgia,serif}
html[data-build="5"] body[data-screen="chats"] #app .tavern-notice-top:not([open])>summary::after{transform:rotate(-90deg)}
html[data-build="5"] body[data-screen="chats"] #app .tavern-notice-top>summary::-webkit-details-marker{display:none}
html[data-build="5"] body[data-screen="chats"] #app :is(.chat-archive-folder:not([open])>summary,.archive-group-toggle[aria-expanded=false]) .archive-chevron{transform:rotate(-90deg)}
html[data-build="5"] body[data-screen="chats"] #app .archive-chat-list{
 max-height:clamp(150px,32dvh,300px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a38250 #eeddbb;
 padding:8px 3px 4px;margin-top:3px;display:grid;gap:14px;min-width:0;
}
html[data-build="5"] body[data-screen="chats"] #app .archive-chat-group{min-width:0}
html[data-build="5"] body[data-screen="chats"] #app .archive-group-toggle{
 display:grid;grid-template-columns:minmax(0,1fr) auto 18px;align-items:center;gap:10px;
 width:100%;margin:0 0 7px;padding:6px 10px!important;min-height:36px;max-width:none;
 border:0!important;border-bottom:1px solid #c3a26c!important;border-radius:0!important;
 background:#f6e8ccec!important;background-image:none!important;box-shadow:none!important;color:#4a321e!important;text-align:left;font:inherit;font-size:.93rem;cursor:pointer;
}
html[data-build="5"] body[data-screen="chats"] #app .archive-chat-group.collapsed>.archive-chat-cards{display:none}
html[data-build="5"] body[data-screen="chats"] #app .archive-chat-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:9px;min-width:0}
html[data-build="5"] body[data-screen="chats"] #app .archive-chat-card{min-width:0;padding:6px 9px}
html[data-build="5"] body[data-screen="chats"] #app .archive-chat-card.active{outline:2px solid #597b62;outline-offset:-8px}
html[data-build="5"] body[data-screen="chats"] #app .archive-chat-open{
 display:grid;grid-template-columns:34px minmax(0,1fr) auto;column-gap:9px;row-gap:4px;align-items:start;width:100%;min-width:0;
 min-height:68px;padding:3px 0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;
 color:#4a321e!important;text-align:left;font:inherit;cursor:pointer;
}
html[data-build="5"] body[data-screen="chats"] #app .archive-chat-avatar{grid-row:1/3;display:block;width:34px;height:34px;overflow:hidden;border:1px solid #ab8350;border-radius:50%;background:#ecd7b1}
html[data-build="5"] body[data-screen="chats"] #app .archive-chat-avatar img{width:100%;height:100%;object-fit:cover;display:block}
html[data-build="5"] body[data-screen="chats"] #app .archive-chat-copy{display:contents}
html[data-build="5"] body[data-screen="chats"] #app .archive-chat-copy strong{grid-column:2;grid-row:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.2;font-size:.97rem}
html[data-build="5"] body[data-screen="chats"] #app .archive-chat-copy>span{grid-column:2/-1;grid-row:2;min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;color:#74583a;font-size:.83rem;line-height:1.3}
html[data-build="5"] body[data-screen="chats"] #app .archive-chat-date{grid-column:3;grid-row:1;font-size:.72rem;line-height:1.3;color:#795d3e;white-space:nowrap;padding-top:2px}
html[data-build="5"] body[data-screen="chats"] #app .archive-chat-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #b28b5555;padding-top:5px;margin-top:4px;font-size:.75rem;color:#73583c;flex-wrap:wrap}
html[data-build="5"] body[data-screen="chats"] #app .archive-view-only{font-size:.7rem;color:#82684a}
html[data-build="5"] body[data-screen="chats"] #app .archive-rejoin{padding:4px 9px!important;min-height:28px;border:1px solid #aa8454!important;border-radius:4px!important;background:#ead8b5!important;color:#365947!important;font:inherit;font-size:.78rem;cursor:pointer;box-shadow:none!important}
html[data-build="5"] body[data-screen="chats"] #app .chat-archive-folder :is(summary,button):focus-visible{outline:2px solid #4b7967!important;outline-offset:2px}
html[data-build="5"] body[data-screen="chats"] #app .archive-chat-open:hover .archive-chat-copy strong{color:#365e4c}
html[data-build="5"] body[data-screen="chats"] #app .chat-window:has(.chat-readonly-note){grid-template-rows:64px minmax(0,1fr) auto!important}
html[data-build="5"] body[data-screen="chats"] #app .chat-readonly-note{min-width:0;min-height:56px;padding:10px 14px!important;color:#63482b;font-size:.87rem;line-height:1.3;margin:0!important}
@media(max-width:620px){
 html[data-build="5"] body[data-screen="chats"] #app .archive-chat-list{max-height:min(180px,22dvh)}
 html[data-build="5"] body[data-screen="chats"] #app .archive-chat-cards{grid-template-columns:minmax(0,1fr)}
 html[data-build="5"] body[data-screen="chats"] #app .chat-archive-folder>summary{padding:5px 9px!important;gap:8px}
 html[data-build="5"] body[data-screen="chats"] #app .archive-folder-copy small{font-size:.7rem}
 html[data-build="5"] body[data-screen="chats"] #app .archive-chat-open{grid-template-columns:30px minmax(0,1fr) auto;gap:7px}
 html[data-build="5"] body[data-screen="chats"] #app .archive-chat-avatar{width:30px;height:30px}
}

/* Available conversations expand on a repeating paper sheet, with their own
   bounded scroll region. They never stretch the decorative header over rows. */
html[data-build="5"] body[data-screen="chats"] #app .tavern-screen{
 grid-template-rows:auto minmax(140px,1fr) auto auto!important;
}
html[data-build="5"] body[data-screen="chats"] #app .chat-archive-folder{grid-row:4!important;}
html[data-build="5"] body[data-screen="chats"] #app .chat-available-folder{
 grid-row:3!important;min-width:0;min-height:0;height:auto!important;max-height:none!important;
 margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;overflow:visible!important;flex:none;
}
html[data-build="5"] body[data-screen="chats"] #app .chat-available-folder>summary{
 display:grid!important;grid-template-columns:minmax(0,1fr) auto 18px;align-items:center;gap:12px;
 min-height:62px!important;height:auto!important;padding:6px 14px!important;list-style:none;cursor:pointer;color:#4a321e!important;
 box-sizing:border-box;border:8px solid transparent!important;
 border-image:url('/assets/art/sheet-panel-v3.webp') 36 / 8px / 0 stretch!important;
 background:#f8edd7 url('/assets/ui/chat-archive-paper.svg') center/512px 512px repeat!important;
 background-clip:padding-box!important;border-radius:0!important;box-shadow:0 3px 6px #3b251d22!important;
}
html[data-build="5"] body[data-screen="chats"] #app .chat-available-folder>summary::-webkit-details-marker{display:none;}
html[data-build="5"] body[data-screen="chats"] #app .chat-available-folder>summary::before,
html[data-build="5"] body[data-screen="chats"] #app .chat-available-folder>summary::after{content:none!important;}
html[data-build="5"] body[data-screen="chats"] #app .chat-available-folder>summary>.archive-chevron{display:block!important;height:auto!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;font:700 20px/1 Georgia,serif!important;}
html[data-build="5"] body[data-screen="chats"] #app .chat-available-folder:not([open])>summary>.archive-chevron{transform:rotate(-90deg);}
html[data-build="5"] body[data-screen="chats"] #app .chat-available-folder>summary>.archive-folder-count{
 display:grid!important;place-items:center;min-width:28px;height:28px!important;padding:3px 7px!important;border:1px solid #b29361!important;border-radius:5px!important;background:#ead6af!important;color:#5c4026!important;font-size:.85rem!important;line-height:1!important;
}
html[data-build="5"] body[data-screen="chats"] #app .chat-available-folder>.chat-ledger{
 display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0;min-height:0!important;height:auto!important;
 max-height:clamp(140px,26dvh,280px)!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;
 margin:3px 0 0!important;padding:10px 16px!important;border:8px solid transparent!important;
 border-image:url('/assets/art/sheet-panel-v3.webp') 36 / 8px / 0 stretch!important;
 background:#f8edd7 url('/assets/ui/chat-archive-paper.svg') center/512px 512px repeat!important;background-clip:padding-box!important;
 box-shadow:0 3px 6px #3b251d22!important;
}
html[data-build="5"] body[data-screen="chats"] #app .chat-available-folder :is(.chat-group,.chat-group-list){min-width:0;max-width:100%;}
html[data-build="5"] body[data-screen="chats"] #app .chat-available-folder .chat-list-item{min-width:0;max-width:100%;}
@media(max-width:760px){
 html[data-build="5"] body[data-screen="chats"] #app .tavern-screen{overflow:auto!important;overscroll-behavior:contain;scrollbar-width:thin;}
 html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk{min-height:180px!important;}
 html[data-build="5"] body[data-screen="chats"] #app .tavern-ledger-column{min-height:0!important;grid-template-rows:54px minmax(0,1fr)!important;}
 html[data-build="5"] body[data-screen="chats"] #app .tavern-ledger-column>.chat-ledger{min-height:0!important;}
 html[data-build="5"] body[data-screen="chats"] #app .chat-available-folder>summary{gap:8px;padding:5px 9px!important;}
 html[data-build="5"] body[data-screen="chats"] #app .chat-available-folder>.chat-ledger{padding:8px!important;max-height:clamp(140px,26dvh,220px)!important;}
}

/* The conversation uses the same full desk height as the inbox on desktop. */
@media(min-width:821px){
 html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk{align-items:stretch!important;}
 html[data-build="5"] body[data-screen="chats"] #app .tavern-thread-column{
  display:flex!important;flex-direction:column!important;align-self:stretch!important;
  height:100%!important;min-height:0!important;box-sizing:border-box!important;
 }
 html[data-build="5"] body[data-screen="chats"] #app .tavern-thread-column>.chat-window{
  display:flex!important;flex-direction:column!important;flex:1 1 0!important;
  height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden!important;
 }
 html[data-build="5"] body[data-screen="chats"] #app .tavern-thread-column>.chat-window>:is(.chat-window-head,.chat-compose,.chat-readonly-note){flex:none!important;}
 html[data-build="5"] body[data-screen="chats"] #app .tavern-thread-column>.chat-window>.messages{
  flex:1 1 0!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:auto!important;
 }
}

/* Mobile conversations use the space left by the compact account bar. */
@layer shell {
 @media(max-width:1100px){
  html[data-build="5"] body[data-screen="chats"] #app .tavern-screen{
   display:flex!important;flex-direction:column!important;gap:0!important;
   width:100%!important;min-width:0!important;max-width:100%!important;
   height:100%!important;min-height:0!important;max-height:100%!important;
   margin:0!important;padding:0!important;box-sizing:border-box!important;
   overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk{
   display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;
   width:100%!important;min-width:0!important;max-width:100%!important;
   height:auto!important;min-height:0!important;max-height:none!important;
   margin:0!important;padding:0!important;border:0!important;overflow:visible!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .chat-mobile-back{
   display:none!important;
  }

  /* Inbox, notices and expanded folders share one page scroll. */
  html[data-build="5"] body[data-screen="chats"] #app .tavern-screen[data-mobile-chat="list"] .tavern-chat-desk{
   flex:none!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-list .tavern-thread-column{
   display:none!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-list .tavern-ledger-column{
   display:flex!important;flex-direction:column!important;flex:none!important;
   height:auto!important;min-height:0!important;max-height:none!important;
   width:100%!important;margin:0!important;padding:0!important;overflow:visible!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-ledger-column>.messenger-column-title{
   flex:none!important;min-height:44px!important;height:auto!important;padding:7px 12px!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-screen[data-mobile-chat="list"] :is(.tavern-notice-zone,.tavern-notice-content,.chat-ledger,.archive-chat-list){
   height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-screen[data-mobile-chat="list"]>:is(.tavern-notice-top,.chat-available-folder,.chat-archive-folder){
   flex:none!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-ledger-column>.chat-ledger{
   border-top-width:8px!important;border-bottom-width:8px!important;padding:8px 12px!important;
  }

  /* In a conversation only the message history consumes the remaining height. */
  html[data-build="5"] body[data-screen="chats"] #app .tavern-screen[data-mobile-chat="thread"]{
   overflow:hidden!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-screen[data-mobile-chat="thread"]>:is(.tavern-notice-top,.chat-available-folder,.chat-archive-folder),
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .tavern-ledger-column{
   display:none!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread{
   flex:1 1 0!important;height:0!important;overflow:hidden!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread>.chat-mobile-back{
   display:flex!important;align-items:center!important;justify-content:flex-start!important;flex:none!important;
   align-self:stretch!important;width:100%!important;min-width:0!important;max-width:100%!important;
   height:40px!important;min-height:40px!important;max-height:40px!important;
   margin:0!important;padding:6px 12px!important;border:0!important;border-bottom:1px solid #b79b70!important;
   border-radius:0!important;background:#f1e3c9!important;color:#49331f!important;box-shadow:none!important;
   font-size:18px!important;line-height:1.2!important;transform:none!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread>.tavern-thread-column,
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread>.tavern-thread-column>.chat-window{
   display:flex!important;flex-direction:column!important;flex:1 1 0!important;gap:0!important;
   width:100%!important;min-width:0!important;max-width:100%!important;
   height:0!important;min-height:0!important;max-height:none!important;
   margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;box-sizing:border-box!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .chat-window-head{
   display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto!important;
   align-items:center!important;gap:6px!important;flex:none!important;
   min-height:52px!important;height:auto!important;max-height:64px!important;min-width:0!important;
   margin:0!important;padding:5px 8px!important;border:0!important;border-bottom:1px solid #b79b70!important;
   border-radius:0!important;background:#f7ebd5!important;box-shadow:none!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .chat-window-icon{
   display:none!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .chat-window-head>div:not(.chat-head-actions){
   grid-column:1!important;grid-row:1!important;min-width:0!important;transform:none!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .chat-window-head strong{
   display:block!important;min-width:0!important;margin:0!important;
   font-size:20px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .chat-context{
   font-size:15px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .chat-head-actions{
   grid-column:2!important;grid-row:1!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;
   flex-wrap:nowrap!important;gap:4px!important;min-width:0!important;width:auto!important;margin:0!important;transform:none!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .chat-head-actions>:is(.ghost-button,.soft-button,.icon-button){
   flex:0 1 auto!important;min-width:0!important;max-width:124px!important;min-height:36px!important;height:auto!important;max-height:52px!important;
   margin:0!important;padding:4px 6px!important;border:1px solid #b79b70!important;border-radius:5px!important;
   font-size:17px!important;line-height:1.1!important;white-space:normal!important;overflow-wrap:anywhere!important;transform:none!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .messages{
   display:block!important;flex:1 1 0!important;height:0!important;min-height:0!important;max-height:none!important;
   min-width:0!important;width:100%!important;margin:0!important;padding:7px 6px!important;
   overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .message{
   width:100%!important;max-width:100%!important;min-width:0!important;gap:5px!important;
   margin:5px 0!important;padding:0!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .message.me{
   justify-content:flex-end!important;flex-direction:row-reverse!important;padding-left:18px!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .message-bubble{
   min-width:0!important;max-width:calc(100% - 33px)!important;
   border-width:5px!important;border-image-width:5px!important;padding:5px 7px 16px!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .message.me .message-bubble{
   max-width:100%!important;margin-left:auto!important;margin-right:0!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .message-bubble p{
   margin:0!important;font-size:18px!important;line-height:1.3!important;overflow-wrap:anywhere!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .message-bubble strong{
   margin:0 0 2px!important;font-size:16px!important;line-height:1.15!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .message-meta{
   font-size:13px!important;line-height:1!important;right:7px!important;bottom:4px!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .message-day{
   margin:4px 0 7px!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .message-day span{
   padding:3px 8px!important;font-size:14px!important;line-height:1.15!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .chat-compose{
   display:grid!important;grid-template-columns:44px 44px minmax(0,1fr) 44px!important;align-items:end!important;gap:4px!important;
   flex:none!important;position:static!important;inset:auto!important;width:100%!important;min-width:0!important;
   height:auto!important;min-height:56px!important;max-height:none!important;
   margin:0!important;padding:5px 6px max(5px,env(safe-area-inset-bottom))!important;
   border:0!important;border-top:1px solid #b79b70!important;border-radius:0!important;
   background:#f1e3c9!important;box-shadow:none!important;box-sizing:border-box!important;overflow:visible!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .chat-compose>*{
   grid-column:auto!important;grid-row:auto!important;margin:0!important;transform:none!important;box-sizing:border-box!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .chat-compose textarea{
   width:100%!important;min-width:0!important;max-width:100%!important;
   min-height:44px!important;max-height:84px!important;padding:10px 7px!important;
   font-size:19px!important;line-height:1.3!important;resize:none!important;overflow-x:hidden!important;overflow-y:auto!important;
   border:1px solid #b79b70!important;border-radius:6px!important;background:#fff9ec!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .chat-compose>:is(.icon-button,.chat-send-button){
   display:grid!important;place-items:center!important;width:44px!important;min-width:44px!important;max-width:44px!important;
   height:44px!important;min-height:44px!important;max-height:44px!important;padding:0!important;border-radius:6px!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .chat-compose>.chat-send-button{
   font-size:0!important;overflow:hidden!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .chat-send-button::after{
   content:'➤'!important;font-size:22px!important;line-height:1!important;color:#36513e!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk.mobile-thread .chat-readonly-note{
   flex:none!important;min-height:0!important;margin:0!important;padding:7px 10px!important;border-width:4px!important;border-image-width:4px!important;
   font-size:16px!important;line-height:1.25!important;
  }

 }
 @media(max-width:820px){
  /* A contextual conversation also opens over the creator, outside #app. */
  html[data-build="5"] body #dialog.context-chat-dialog{
   display:flex!important;flex-direction:column!important;
   min-width:0!important;max-width:calc(100vw - 20px)!important;min-height:0!important;
   height:calc(100dvh - 20px)!important;max-height:calc(100dvh - 20px)!important;
   padding:0!important;overflow:hidden!important;box-sizing:border-box!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog>.chat-window{
   display:flex!important;flex-direction:column!important;flex:1 1 0!important;gap:0!important;
   width:100%!important;min-width:0!important;max-width:100%!important;
   height:0!important;min-height:0!important;max-height:none!important;
   margin:0!important;padding:0!important;overflow:hidden!important;box-sizing:border-box!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .chat-window-head{
   display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto!important;
   align-items:start!important;gap:6px!important;flex:none!important;
   width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;max-height:none!important;
   margin:0!important;padding:6px 8px!important;box-sizing:border-box!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .chat-window-icon{
   display:none!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .chat-window-head>div:not(.chat-head-actions){
   grid-column:1!important;grid-row:1!important;min-width:0!important;margin:0!important;transform:none!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .chat-window-head strong{
   display:block!important;min-width:0!important;margin:0!important;
   font-size:20px!important;line-height:1.15!important;white-space:normal!important;
   overflow:visible!important;overflow-wrap:anywhere!important;text-overflow:clip!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .chat-context{
   font-size:15px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .chat-head-actions{
   grid-column:2!important;grid-row:1!important;display:flex!important;align-items:start!important;justify-content:flex-end!important;
   flex-wrap:wrap!important;gap:4px!important;min-width:0!important;width:auto!important;max-width:116px!important;
   margin:0!important;transform:none!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .chat-head-actions>:is(.ghost-button,.soft-button,.icon-button){
   flex:0 1 auto!important;min-width:44px!important;max-width:116px!important;min-height:44px!important;height:auto!important;max-height:none!important;
   margin:0!important;padding:4px 7px!important;box-sizing:border-box!important;
   font-size:18px!important;line-height:1.1!important;white-space:normal!important;overflow-wrap:anywhere!important;transform:none!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .chat-head-actions>.admin-player-link{
   flex-basis:100%!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .chat-head-actions>.chat-close-button{
   width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;padding:0!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .messages{
   display:block!important;flex:1 1 0!important;height:0!important;min-height:0!important;max-height:none!important;
   min-width:0!important;width:100%!important;margin:0!important;padding:7px 6px!important;box-sizing:border-box!important;
   overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .message{
   width:100%!important;max-width:100%!important;min-width:0!important;gap:5px!important;margin:5px 0!important;padding:0!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .message-avatar{
   flex:0 0 24px!important;width:24px!important;height:24px!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .message-bubble{
   min-width:0!important;max-width:calc(100% - 29px)!important;
   border-width:5px!important;border-image-width:5px!important;padding:5px 7px 16px!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .message.me .message-bubble{
   max-width:100%!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .message-bubble p{
   margin:0!important;font-size:18px!important;line-height:1.3!important;overflow-wrap:anywhere!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .message-bubble strong{
   margin:0 0 2px!important;font-size:16px!important;line-height:1.15!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .message-image{
   max-width:100%!important;height:auto!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .message-meta{
   font-size:13px!important;line-height:1!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .chat-compose{
   display:grid!important;grid-template-columns:44px 44px minmax(0,1fr) 44px!important;align-items:end!important;gap:4px!important;
   flex:none!important;position:static!important;inset:auto!important;width:100%!important;min-width:0!important;
   height:auto!important;min-height:56px!important;max-height:none!important;
   margin:0!important;padding:5px 6px max(5px,env(safe-area-inset-bottom))!important;
   border:0!important;border-top:1px solid #b79b70!important;box-sizing:border-box!important;overflow:visible!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .chat-compose>*{
   grid-column:auto!important;grid-row:auto!important;margin:0!important;transform:none!important;box-sizing:border-box!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .chat-compose textarea{
   width:100%!important;min-width:0!important;max-width:100%!important;
   min-height:44px!important;max-height:84px!important;padding:10px 7px!important;
   font-size:19px!important;line-height:1.3!important;resize:none!important;overflow-x:hidden!important;overflow-y:auto!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .chat-compose>:is(.icon-button,.chat-send-button){
   display:grid!important;place-items:center!important;width:44px!important;min-width:44px!important;max-width:44px!important;
   height:44px!important;min-height:44px!important;max-height:44px!important;padding:0!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .chat-compose>.chat-send-button{
   font-size:0!important;overflow:hidden!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .chat-send-button::after{
   content:'➤'!important;font-size:22px!important;line-height:1!important;color:#36513e!important;
  }
  html[data-build="5"] body #dialog.context-chat-dialog .chat-readonly-note{
   flex:none!important;min-width:0!important;min-height:0!important;margin:0!important;padding:7px 10px!important;
   font-size:16px!important;line-height:1.25!important;overflow-wrap:anywhere!important;
  }
 }
}


/* assets/ui/player-operations.css */
[data-player-operations],[data-ops-dialog],[data-ops-roster],[data-ops-public-shell]{display:grid;gap:16px;min-width:0}
[data-player-operations]>nav{display:flex;gap:8px;flex-wrap:wrap}
[data-player-operations] form,[data-ops-dialog] form,[data-ops-public-shell] form{display:grid;gap:14px;max-width:820px;margin:12px 0 24px}
[data-player-operations] label,[data-ops-dialog] label,[data-ops-roster] label,[data-ops-public-shell] label{display:grid;gap:6px;min-width:0}
[data-player-operations] input,[data-player-operations] select,[data-player-operations] textarea,[data-ops-dialog] input,[data-ops-dialog] select,[data-ops-dialog] textarea,[data-ops-roster] select,[data-ops-public-shell] input,[data-ops-public-shell] select,[data-ops-public-shell] textarea{width:100%;max-width:100%;min-height:42px}
[data-ops-dialog] .guild-admin-check{display:flex;align-items:center;gap:10px}
[data-ops-dialog] .guild-admin-check input{width:20px;min-height:20px;flex:0 0 20px}
[data-player-operations] textarea,[data-ops-dialog] textarea,[data-ops-public-shell] textarea{min-height:90px;resize:vertical}
[data-player-operations] p,[data-ops-dialog] p,[data-ops-public-shell] p{line-height:1.6;overflow-wrap:anywhere}
[data-player-operations] .guild-admin-row{padding:16px;border:1px solid var(--border,#d8c9a5);border-radius:12px}
[data-player-operations] .guild-admin-row header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.guild-public [data-ops-public-shell]{width:min(660px,calc(100% - 32px));margin:48px auto;padding:28px;background:#fbf8ef;border:1px solid #d4d4c2;border-top:4px solid #ac8a48;color:#233c32}
.guild-public [data-ops-public-shell] input,.guild-public [data-ops-public-shell] select,.guild-public [data-ops-public-shell] textarea{font:16px/1.5 system-ui,sans-serif;padding:10px;border:1px solid #bcbda9;border-radius:4px;background:white;color:#233c32}
.guild-public [data-ops-public-shell] label{font:14px/1.6 system-ui,sans-serif}
.guild-public [data-ops-public-shell] .primary-button{padding:14px 20px;border:0;border-radius:4px;background:#204b3e;color:white;font:600 15px/1.5 system-ui,sans-serif;cursor:pointer}
@media(max-width:560px){[data-player-operations]>nav .soft-button{flex:1 1 45%}.guild-public [data-ops-public-shell]{padding:18px;margin:20px auto}}
.crm-directory,.crm-profile{color:#362d23;min-width:0;max-width:100%;font-family:inherit}
.crm-directory h2,.crm-profile h2,.crm-profile h3{margin:0 0 8px}
.crm-directory header>p{margin:4px 0 14px;font-size:14px}
[data-player-operations] form.crm-filters{display:grid;grid-template-columns:minmax(150px,1.5fr) repeat(2,minmax(130px,1fr)) repeat(2,minmax(120px,.8fr)) auto;align-items:end;gap:8px;max-width:none;margin:0 0 16px}
.crm-filters label{font-size:12px!important;gap:4px!important}
.crm-filters :is(input,select){font-size:14px;min-height:38px!important;margin:0!important;box-sizing:border-box}
.crm-filters button{min-height:38px}
.crm-groups{display:grid;gap:8px}
.crm-group,.crm-task,.crm-composer,.crm-visits,.crm-credits{min-width:0;border:1px solid #c7b490;border-radius:8px;background:#fff7e8;color:#362d23;overflow:clip}
.crm-group>summary,.crm-task>summary,.crm-composer>summary,.crm-visits>summary,.crm-credits>summary{cursor:pointer;padding:12px 14px;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.crm-group>summary{display:flex;align-items:center;gap:10px;justify-content:space-between;font-weight:600;background:#efdfbf}
.crm-group>summary::before{content:'▸';font-size:14px}.crm-group[open]>summary::before{content:'▾'}.crm-group>summary span{flex:1}.crm-group>summary b{font-size:12px;border-radius:20px;background:#fbf3df;padding:2px 8px}
.crm-person{display:grid;grid-template-columns:minmax(150px,1.5fr) auto minmax(140px,1fr) auto;align-items:center;gap:10px;padding:12px 14px;border-top:1px solid #ddcaaa;min-width:0}
.crm-person>div{min-width:0}.crm-person small,.crm-person-next span,.crm-task>summary small,.crm-history small,.crm-visit small{display:block;overflow-wrap:anywhere;font-size:12px;line-height:1.5;color:#695741}
.crm-person .link-button{padding:0;text-align:left;font-size:16px;font-weight:600;overflow-wrap:anywhere;max-width:100%;white-space:normal}.crm-person>.soft-button{font-size:13px;padding:8px 12px}
.crm-status{font-size:12px;line-height:1.4;padding:4px 8px;border:1px solid #b5bba1;border-radius:5px;background:#edf0df;color:#3c4b33;overflow-wrap:anywhere}
.crm-due{color:#9a3924!important;font-weight:600}.crm-empty{padding:10px 14px;margin:0;font-size:13px;color:#6b5a46}
.crm-profile-heading{display:flex;justify-content:space-between;align-items:start;gap:14px}.crm-profile-heading>div{min-width:0}.crm-profile-heading h2,.crm-profile-heading p{overflow-wrap:anywhere;margin:4px 0}.crm-profile-heading .eyebrow{font-size:11px;line-height:1.5}
[data-ops-dialog].crm-profile form{max-width:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0 20px}
.crm-profile form :is(input,select,textarea){box-sizing:border-box;font-size:15px;line-height:1.45;color:#382d21;background:#fffaf0;padding:9px 10px;border:1px solid #bca57f;border-radius:5px}
.crm-profile form label{font-size:13px}.crm-profile .crm-wide{grid-column:1/-1}.crm-profile form>button{justify-self:start}.crm-profile textarea{min-height:72px!important}
.crm-profile .crm-task form,.crm-composer form{padding:0 14px 4px}.crm-task{margin:8px 0}.crm-profile .crm-task>summary{font-weight:600}.crm-profile .crm-task small{font-weight:400}.crm-composer{margin:10px 0}.crm-profile>section{border-top:1px solid #cbb58e;padding-top:18px}
.crm-history{list-style:none;padding:0;display:grid;gap:12px;max-width:100%;margin:18px 0}.crm-history>li{padding:12px 14px;border-left:3px solid #899d79;background:#f7efdf;min-width:0;border-radius:0 6px 6px 0}.crm-history p{font-size:14px;white-space:pre-wrap;margin:6px 0;line-height:1.5!important}
.crm-visit{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;border-top:1px solid #ddcaaa}.crm-credits>div{padding:12px}.admin-player-link{font-size:12px!important;padding:5px 9px!important;white-space:normal!important;max-width:100%}.chat-admin-people{padding:6px 10px;background:#f4e8d1;border-bottom:1px solid #c4ad86}.chat-admin-people>summary{cursor:pointer;font-size:12px}.chat-admin-people>div{display:flex;flex-wrap:wrap;gap:6px;padding:6px 0}.approval-person-link{position:absolute;right:12px;top:12px;z-index:4;box-shadow:0 2px 8px #33221133}.approval-sheet-pane{position:relative}
@media(max-width:1100px){[data-player-operations] form.crm-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){[data-player-operations] form.crm-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-person{grid-template-columns:minmax(0,1fr) auto;gap:7px}.crm-person-next{grid-column:1}.crm-person>.soft-button{grid-row:2;grid-column:2}.crm-group>summary{padding:11px 10px;font-size:14px}.crm-person{padding:12px 10px}.crm-profile-heading{flex-wrap:wrap}[data-ops-dialog].crm-profile form{grid-template-columns:minmax(0,1fr)}.crm-profile form>button{width:100%}.crm-profile form .crm-wide{grid-column:auto}.crm-profile-heading h2{font-size:24px}.crm-profile .crm-task form,.crm-composer form{padding:0 10px 2px}.crm-filters :is(input,select){min-height:42px!important;font-size:16px}.crm-profile .guild-admin-check{align-items:start}}


/* assets/ui/usability-audit.css */
/* Scoped corrections from the release audit. Shell is the first important layer. */
@layer shell {
  html[data-build="5"] body[data-screen="marketing"] .marketing-hub .marketing-hub-tabs button[aria-pressed="true"] {
    background:#28523f!important;
    border-color:#183b2c!important;
    color:#fffaf0!important;
  }
  html[data-build="5"] body[data-screen="marketing"] .mpe-editor .mpe-toolbar .mpe-save {
    color:#fffaf0!important;
  }
  html[data-build="5"] body[data-screen="marketing"] .marketing-settings {
    grid-template-columns:minmax(0,1fr)!important;
    min-width:0!important;
    max-width:100%!important;
    width:100%!important;
  }
  html[data-build="5"] body[data-screen="marketing"] .marketing-settings > .guild-admin,
  html[data-build="5"] body[data-screen="marketing"] .marketing-settings :is(form,fieldset,.guild-admin-panel,.guild-admin-grid,.guild-mail-template,.guild-admin-scroll) {
    box-sizing:border-box!important;
    min-width:0!important;
    max-width:100%!important;
    width:100%!important;
  }
  html[data-build="5"] body[data-screen="marketing"] .marketing-settings :is(input,textarea,select,label) {
    box-sizing:border-box!important;
    min-width:0!important;
    max-width:100%!important;
  }
  html[data-build="5"] body[data-screen="marketing"] .marketing-settings :is(p,.guild-admin-status,.form-help,label,summary) {
    overflow-wrap:anywhere!important;
    white-space:normal!important;
  }
  html[data-build="5"] body[data-screen="content"] .game-catalog-screen .gc-counters span {
    color:#422c1e!important;
    background:#fff4dc!important;
    border:1px solid #b2915d!important;
  }
  html[data-build="5"] body[data-screen="content"] .game-catalog-screen .gc-counters b {
    color:#422c1e!important;
  }
  html[data-build="5"] body[data-screen="shop"] .shop-management-filters {
    min-width:0!important;
    max-width:100%!important;
  }
  html[data-build="5"] body[data-screen="shop"] .shop-management-filters > label {
    min-width:0!important;
    max-width:100%!important;
    flex:1 1 220px!important;
  }
  html[data-build="5"] body[data-screen="shop"] .shop-management-filters :is(input,select) {
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  @media(max-width:600px) {
    html[data-build="5"] body[data-screen="content"] .gc-actions {
      display:flex!important;
      flex-wrap:wrap!important;
      width:100%!important;
      gap:8px!important;
    }
    html[data-build="5"] body[data-screen="content"] .gc-actions button {
      flex:1 1 130px!important;
      min-width:110px!important;
      white-space:normal!important;
      word-break:normal!important;
      overflow-wrap:normal!important;
    }
    html[data-build="5"] body[data-screen="masters"] .master-directory-card {
      grid-template-columns:minmax(0,1fr)!important;
    }
    html[data-build="5"] body[data-screen="masters"] .master-directory-toggles {
      display:grid!important;
      grid-template-columns:minmax(0,1fr)!important;
      gap:10px!important;
      width:100%!important;
      min-width:0!important;
    }
    html[data-build="5"] body[data-screen="masters"] .master-directory-toggles label {
      display:flex!important;
      align-items:flex-start!important;
      gap:9px!important;
      width:100%!important;
      min-width:0!important;
      white-space:normal!important;
      overflow-wrap:anywhere!important;
    }
    html[data-build="5"] body[data-screen="masters"] .master-directory-toggles input[type="checkbox"] {
      appearance:auto!important;
      accent-color:#386345!important;
      flex:0 0 20px!important;
      width:20px!important;
      height:20px!important;
      min-height:20px!important;
      margin:4px 0!important;
    }
  }
}


/* assets/ui/mobile-comfort.css */
/* Keep decoration out of the way on narrow screens, without hiding actions. */
@media(max-width:820px){
 html[data-build="5"] body[data-role] .hud-bar{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:5px!important;min-height:48px!important;height:auto!important;padding:4px 7px!important}
 html[data-build="5"] body[data-role] .hud-bar .hud-brand{flex:0 0 42px!important;width:42px!important;min-width:0!important;height:36px!important;margin:0!important;padding:0!important}
 html[data-build="5"] body[data-role] .hud-bar .hud-brand{background:#f5e6c9 url('/assets/ui/d20-mark.svg') center/28px 28px no-repeat!important;border:1px solid #a48250!important;border-radius:7px!important}
 html[data-build="5"] body[data-role] .hud-bar .hud-brand img{visibility:hidden!important;width:100%!important;height:36px!important;object-fit:contain!important}
 html[data-build="5"] body[data-role] .hud-bar .hud-user{display:flex!important;flex:0 0 auto!important;gap:5px!important;margin:0!important;padding:0!important}
 html[data-build="5"] body[data-role] .hud-bar .hud-user-text{display:none!important}
 html[data-build="5"] body[data-role] .hud-bar .hud-avatar{width:32px!important;height:32px!important;min-width:32px!important;font-size:16px!important}
 html[data-build="5"] body[data-role] .hud-bar .hud-display-controls{display:flex!important;flex-wrap:nowrap!important;gap:4px!important;margin:0!important;padding:0!important}
 html[data-build="5"] body[data-role] .hud-bar .hud-display-control{display:block!important;margin:0!important;padding:0!important}
 html[data-build="5"] body[data-role] .hud-bar .hud-display-control>span{display:none!important}
 html[data-build="5"] body[data-role] .hud-bar .hud-display-control select{height:32px!important;min-height:32px!important;min-width:0!important;max-width:76px!important;padding:3px 16px 3px 4px!important;font-size:16px!important}
 html[data-build="5"] #hudTextSizeSelect{width:63px!important}
 html[data-build="5"] body[data-role] .hud-bar .hud-resources{display:flex!important;flex:1 1 auto!important;min-width:0!important;gap:4px!important;overflow:auto!important;white-space:nowrap!important;margin:0!important;padding:0!important;font-size:13px!important}
 html[data-build="5"] body[data-role] .hud-bar .hud-resources:empty{display:none!important}
 html[data-build="5"] #mobileNav{gap:4px!important;min-height:58px!important;padding:5px max(6px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))!important;background:#ead8b8!important;border-top:2px solid #87613a!important;overflow-x:auto!important;scrollbar-width:thin;scroll-padding:6px}
 html[data-build="5"] body #mobileNav .mobile-tab[data-nav-art]{position:relative!important;display:flex!important;flex:1 0 76px!important;align-items:center!important;justify-content:center!important;min-width:76px!important;min-height:46px!important;height:auto!important;gap:4px!important;margin:0!important;padding:7px 8px!important;background:#fff3d9!important;border:1px solid #a48250!important;border-radius:8px!important;box-shadow:none!important;color:#352719!important}
 html[data-build="5"] body #mobileNav .mobile-tab[data-nav-art]::before,html[data-build="5"] body #mobileNav .mobile-tab[data-nav-art]::after{display:none!important}
 html[data-build="5"] body #mobileNav .mobile-tab[data-nav-art] .nav-label{position:static!important;inset:auto!important;transform:none!important;width:auto!important;max-width:none!important;min-width:0!important;font-size:15px!important;font-weight:700!important;line-height:1.2!important;text-align:center!important;text-shadow:none!important;color:inherit!important;white-space:normal!important;overflow-wrap:normal!important}
 html[data-build="5"] #mobileNav .nav-symbol{display:none!important}
 html[data-build="5"] #mobileNav::after{display:none!important}
 html[data-build="5"] body #mobileNav .mobile-tab.active[data-nav-art]{background:#29594b!important;border-color:#21473d!important;color:#fff9e9!important}
 html[data-build="5"] #mobileNav .nav-badge{position:absolute!important;top:1px!important;right:2px!important;min-width:17px!important;height:17px!important;font:700 11px/17px sans-serif!important;color:#fff!important;background:#a83428!important;border-radius:10px!important}
 html[data-build="5"] .game-shell{padding-bottom:calc(64px + env(safe-area-inset-bottom))!important}
 .player-table,.play-sheet,.play-sheet iframe,.play-scene,.tt-scene-canvas,.tt-scene-preview{touch-action:pan-x pan-y pinch-zoom!important}
 .player-table .play-header{padding:5px 8px;gap:4px}.player-table .play-header h1{font-size:17px}
}


/* assets/ui/exhaustive-audit.css */
/* Navigation must remain readable over every illustrated scene.
   Shell !important rules take precedence over older scene-specific plaques. */
@layer shell {
  /* Help belongs to its own row, outside the embedded creator's controls. */
  html[data-build="5"] body[data-role="player"][data-screen="characters"] #characterSceneLayer .character-studio-screen {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
  }
  html[data-build="5"] body[data-role="player"][data-screen="characters"] #characterSceneLayer .character-question-button {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    width: max-content !important;
    max-width: calc(100% - 16px) !important;
    min-height: 36px !important;
    margin: 6px 8px !important;
    padding: 6px 12px !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    box-shadow: 0 1px 4px #24160833 !important;
  }
  html[data-build="5"] body[data-role="player"][data-screen="characters"] #characterSceneLayer .character-studio-workspace {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  @media (min-width: 821px) {
    html[data-build="5"] body[data-role] #sideRail {
      padding: 10px 8px !important;
      background: #f1e3ca !important;
      border-right: 1px solid #a38961 !important;
      box-shadow: 3px 0 12px #35231324 !important;
    }
    html[data-build="5"] body[data-role] #sideNav {
      display: flex !important;
      flex-direction: column !important;
      gap: 6px !important;
      margin: 0 !important;
      min-height: 0 !important;
      max-height: none !important;
      overflow: visible !important;
      background: transparent !important;
    }
    html[data-build="5"] body[data-role] #sideNav .nav-button {
      display: flex !important;
      align-items: center !important;
      justify-content: flex-start !important;
      gap: 8px !important;
      flex: 0 0 auto !important;
      width: 100% !important;
      height: auto !important;
      min-height: 44px !important;
      padding: 10px 12px !important;
      border: 1px solid #bba17b !important;
      border-radius: 6px !important;
      background: #fff5e2 !important;
      color: #352719 !important;
      box-shadow: 0 1px 2px #4e341412 !important;
      text-shadow: none !important;
      transform: none !important;
      overflow: visible !important;
    }
    html[data-build="5"] body[data-role] #sideNav .nav-button::before,
    html[data-build="5"] body[data-role] #sideNav .nav-button::after {
      display: none !important;
      content: none !important;
    }
    html[data-build="5"] body[data-role] #sideNav .nav-button .nav-label {
      position: static !important;
      inset: auto !important;
      display: block !important;
      flex: 1 1 auto !important;
      width: auto !important;
      min-width: 0 !important;
      max-width: none !important;
      margin: 0 !important;
      padding: 0 !important;
      transform: none !important;
      color: inherit !important;
      font: 600 16px/1.35 "Segoe UI", sans-serif !important;
      text-align: left !important;
      text-shadow: none !important;
      -webkit-text-stroke: 0 !important;
      white-space: normal !important;
      word-break: normal !important;
      overflow-wrap: normal !important;
      overflow: visible !important;
      text-overflow: clip !important;
    }
    html[data-build="5"] body[data-role] #sideNav .nav-button:hover {
      background: #e8eddf !important;
      border-color: #648371 !important;
      color: #234b3e !important;
    }
    html[data-build="5"] body[data-role] #sideNav .nav-button.active {
      background: #29594b !important;
      border-color: #21473d !important;
      color: #fff9e9 !important;
      box-shadow: inset 4px 0 #d8ba72 !important;
    }
    html[data-build="5"] body[data-role] #sideNav .nav-badge {
      position: static !important;
      flex: 0 0 auto !important;
      margin-left: auto !important;
      transform: none !important;
    }
  }

  html[data-build="5"] body[data-role] :is(#sideNav, #mobileNav) button:focus-visible {
    outline: 3px solid #bb6d20 !important;
    outline-offset: 2px !important;
  }

  @media (max-width: 820px) {
    /* The builder already has Close and Back. Give its form the phone height;
       returning to the library restores the club navigation and text settings. */
    html[data-build="5"]:has(body[data-screen="characters"] .character-studio-workspace:is([data-studio-screen="builder"], [data-studio-screen="levelup"])) {
      height: 100% !important;
      overflow: hidden !important;
    }
    html[data-build="5"] body[data-screen="characters"]:has(.character-studio-workspace:is([data-studio-screen="builder"], [data-studio-screen="levelup"])) {
      height: 100dvh !important;
      overflow: hidden !important;
    }
    html[data-build="5"] body[data-screen="characters"]:has(.character-studio-workspace:is([data-studio-screen="builder"], [data-studio-screen="levelup"])) .game-shell {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) !important;
      grid-template-rows: auto minmax(0, 1fr) !important;
      height: 100dvh !important;
      min-height: 0 !important;
      max-height: 100dvh !important;
      padding-bottom: 0 !important;
      overflow: hidden !important;
      box-sizing: border-box !important;
    }
    html[data-build="5"] body[data-screen="characters"]:has(.character-studio-workspace:is([data-studio-screen="builder"], [data-studio-screen="levelup"])) :is(#mobileNav, .hud-display-controls) {
      display: none !important;
    }
    html[data-build="5"] body[data-screen="characters"]:has(.character-studio-workspace:is([data-studio-screen="builder"], [data-studio-screen="levelup"])) .hud-bar {
      grid-row: 1 !important;
      min-height: 44px !important;
      height: auto !important;
      padding-block: 4px !important;
    }
    html[data-build="5"] body[data-screen="characters"]:has(.character-studio-workspace:is([data-studio-screen="builder"], [data-studio-screen="levelup"])) .game-stage {
      grid-row: 2 !important;
      height: 100% !important;
      min-height: 0 !important;
      overflow: hidden !important;
    }
    /* Legacy import notes use cards on phones. Exclude the current game catalog,
       which shares the outer admin screen class. */
    html[data-build="5"] body[data-screen="content"] :is(.compendium-admin-screen:not(.game-catalog-screen), .compendium-admin-screen:not(.game-catalog-screen) > .compendium-ledger, .compendium-admin-screen:not(.game-catalog-screen) .compendium-table) {
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }
    html[data-build="5"] body[data-screen="content"] .compendium-admin-screen:not(.game-catalog-screen) .compendium-table {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) !important;
      gap: 10px !important;
      overflow: visible !important;
    }
    html[data-build="5"] body[data-screen="content"] .compendium-admin-screen:not(.game-catalog-screen) .compendium-table-head {
      display: none !important;
    }
    html[data-build="5"] body[data-screen="content"] .compendium-admin-screen:not(.game-catalog-screen) .compendium-table > article {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      align-items: start !important;
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100% !important;
      gap: 10px !important;
      margin: 0 !important;
      padding: 10px !important;
      border: 1px solid #b99b6e !important;
      border-radius: 6px !important;
      box-sizing: border-box !important;
    }
    html[data-build="5"] body[data-screen="content"] .compendium-admin-screen:not(.game-catalog-screen) .compendium-table > article > * {
      min-width: 0 !important;
      max-width: 100% !important;
      white-space: normal !important;
      overflow-wrap: anywhere !important;
      box-sizing: border-box !important;
    }
    html[data-build="5"] body[data-screen="content"] .compendium-admin-screen:not(.game-catalog-screen) .compendium-table > article > :is(div, span:nth-child(2), button) {
      grid-column: 1 / -1 !important;
    }
    html[data-build="5"] body[data-screen="content"] .compendium-admin-screen:not(.game-catalog-screen) .compendium-table > article > span {
      display: grid !important;
      align-content: start;
      gap: 4px !important;
      font-size: 17px !important;
      line-height: 1.35 !important;
    }
    html[data-build="5"] body[data-screen="content"] .compendium-admin-screen:not(.game-catalog-screen) .compendium-table > article > span::before {
      display: block;
      color: #70583c;
      font: 600 16px/1.25 "Segoe UI", sans-serif;
    }
    html[data-build="5"] body[data-screen="content"] .compendium-admin-screen:not(.game-catalog-screen) .compendium-table > article > span:nth-child(2)::before { content: "Раздел"; }
    html[data-build="5"] body[data-screen="content"] .compendium-admin-screen:not(.game-catalog-screen) .compendium-table > article > span:nth-child(3)::before { content: "Источник"; }
    html[data-build="5"] body[data-screen="content"] .compendium-admin-screen:not(.game-catalog-screen) .compendium-table > article > span:nth-child(4)::before { content: "Механика"; }
    html[data-build="5"] body[data-screen="content"] .compendium-admin-screen:not(.game-catalog-screen) .compendium-table > article :is(small, .source-chip, .mechanics-chip) {
      display: block !important;
      min-width: 0 !important;
      max-width: 100% !important;
      font-size: 17px !important;
      line-height: 1.4 !important;
      white-space: normal !important;
      overflow-wrap: anywhere !important;
    }
    html[data-build="5"] body[data-screen="content"] .compendium-admin-screen:not(.game-catalog-screen) .compendium-table > article > div > strong {
      font-size: 18px !important;
      line-height: 1.3 !important;
    }
    html[data-build="5"] body[data-screen="content"] .compendium-admin-screen:not(.game-catalog-screen) .compendium-table > article > [data-compendium-edit] {
      width: 100% !important;
      min-height: 44px !important;
      margin: 0 !important;
      font-size: 17px !important;
      line-height: 1.3 !important;
    }
    html[data-build="5"] body[data-role] .adventure-workshop .aw-tabs:has(> [data-aw="library"]) {
      display: flex !important;
      flex-wrap: wrap !important;
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100% !important;
      overflow: visible !important;
      box-sizing: border-box;
    }
    html[data-build="5"] body[data-role] .adventure-workshop .aw-tabs:has(> [data-aw="library"]) > [data-aw] {
      flex: 1 1 130px !important;
      min-width: 0 !important;
      min-height: 44px !important;
      max-width: 100% !important;
      white-space: normal !important;
      overflow-wrap: anywhere !important;
      box-sizing: border-box;
    }
    /* The player workspace owns the viewport; only its existing regions scroll.
       Limit tap sizing to the HTML toolbars, preserving map and divider geometry. */
    html[data-build="5"]:has(.player-table) {
      height: 100% !important;
      overflow: hidden !important;
    }
    html[data-build="5"] body:has(.player-table) {
      height: 100dvh !important;
      overflow: hidden !important;
    }
    html[data-build="5"] body[data-role] .player-table {
      position: fixed !important;
      inset: 0 !important;
      width: 100vw !important;
      min-width: 0 !important;
      max-width: 100vw !important;
      height: 100dvh !important;
      min-height: 0 !important;
      max-height: 100dvh !important;
      margin: 0 !important;
      overflow: hidden !important;
      box-sizing: border-box !important;
    }
    html[data-build="5"] body[data-role] .player-table :is(.play-header, .play-mobile-tabs) {
      flex: 0 0 auto !important;
      min-width: 0 !important;
      max-width: 100% !important;
      box-sizing: border-box;
    }
    html[data-build="5"] body[data-role] .player-table .play-header {
      flex-wrap: wrap !important;
      align-items: flex-start !important;
      gap: 6px !important;
      padding: 6px !important;
    }
    html[data-build="5"] body[data-role] .player-table .play-header h1 {
      flex: 1 1 100% !important;
      min-width: 0 !important;
      margin: 0 !important;
      font-size: 18px !important;
      line-height: 1.25 !important;
      white-space: normal !important;
      overflow-wrap: anywhere !important;
    }
    html[data-build="5"] body[data-role] .player-table .play-header .play-tools {
      display: flex !important;
      flex: 1 1 0 !important;
      flex-wrap: wrap !important;
      min-width: 0 !important;
      max-width: 100% !important;
      gap: 4px !important;
      margin: 0 !important;
    }
    html[data-build="5"] body[data-role] .player-table :is(.play-header, .play-mobile-tabs, .play-actions, .play-panel-menu, .play-region-heading) :is(button, summary) {
      min-width: 44px !important;
      min-height: 44px !important;
      height: auto !important;
      max-width: 100% !important;
      padding: 6px 8px !important;
      font-size: 17px !important;
      line-height: 1.25 !important;
      white-space: normal !important;
      overflow-wrap: anywhere !important;
      box-sizing: border-box !important;
    }
    html[data-build="5"] body[data-role] .player-table .play-header > [data-play="close"] {
      flex: 0 0 44px !important;
      width: 44px !important;
      font-size: 22px !important;
    }
    html[data-build="5"] body[data-role] .player-table :is(.play-header, .play-mobile-tabs, .play-actions, .play-panel-menu, .play-region-heading) :is(select, textarea) {
      min-width: 0 !important;
      min-height: 44px !important;
      max-width: 100% !important;
      font-size: 19px !important;
      line-height: 1.3 !important;
      box-sizing: border-box !important;
    }
    html[data-build="5"] body[data-role] .player-table .play-layout {
      flex: 1 1 0 !important;
      height: 0 !important;
      min-width: 0 !important;
      min-height: 0 !important;
      overflow: hidden !important;
    }
    html[data-build="5"] body[data-role] .player-table :is(.play-panel-menu, .play-region-heading) {
      min-width: 0 !important;
      font-size: 17px !important;
      line-height: 1.3 !important;
    }
    html[data-build="5"] body[data-role] .player-table .play-panel-menu :is(p, small),
    html[data-build="5"] body[data-role] .player-table :is(.play-hint, .play-selection, .play-result) {
      font-size: 17px !important;
      line-height: 1.35 !important;
      white-space: normal !important;
      overflow-wrap: anywhere !important;
    }
    html[data-build="5"] body[data-role] .player-table .play-turn > :is(span, strong) {
      font-size: 18px !important;
      line-height: 1.35 !important;
      overflow-wrap: anywhere !important;
    }
    /* The mobile console scrolls as one full-screen surface. */
    html[data-build="5"]:has(.tt-console),
    html[data-build="5"] body[data-role]:has(.tt-console) {
      overflow: hidden !important;
    }
    html[data-build="5"] body[data-role] .tt-console {
      position: fixed !important;
      inset: 0 !important;
      display: block !important;
      width: 100vw !important;
      min-width: 0 !important;
      max-width: none !important;
      height: 100dvh !important;
      min-height: 0 !important;
      max-height: 100dvh !important;
      margin: 0 !important;
      padding: 0 !important;
      box-sizing: border-box !important;
      overflow-x: hidden !important;
      overflow-y: auto !important;
      overscroll-behavior: contain !important;
      background-color: #402b1d !important;
      scrollbar-width: thin;
      scrollbar-color: #b88e57 #39291d;
    }
    html[data-build="5"] body[data-role] .tt-console > .tt-console-header,
    html[data-build="5"] body[data-role] .tt-console > .tt-console-body > .aw-editor-heading {
      position: sticky !important;
      top: 0 !important;
      z-index: 20 !important;
      margin: 0 !important;
      min-height: 0 !important;
      background: #f3e5c9 !important;
      border-bottom: 1px solid #a17a46 !important;
      box-shadow: 0 3px 9px #24150844 !important;
    }
    html[data-build="5"] body[data-role] .tt-console > .tt-console-body {
      display: block !important;
      flex: none !important;
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100% !important;
      height: auto !important;
      min-height: 0 !important;
      max-height: none !important;
      overflow: visible !important;
      padding: 8px 8px max(28px, env(safe-area-inset-bottom)) !important;
    }
    html[data-build="5"] body[data-role] .tt-console .tt-console-layout {
      display: flex !important;
      flex-direction: column !important;
      align-items: stretch !important;
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100% !important;
      height: auto !important;
      min-height: 0 !important;
      max-height: none !important;
      overflow: visible !important;
    }
    html[data-build="5"] body[data-role] .tt-console .tt-console-layout > :is(.tt-console-locations, .tt-console-main, .tt-console-rail) {
      position: static !important;
      flex: 0 0 auto !important;
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100% !important;
      height: auto !important;
      min-height: 0 !important;
      max-height: none !important;
      padding-right: 0 !important;
      overflow: visible !important;
    }
    html[data-build="5"] body[data-role] .tt-console .tt-console-rail {
      grid-template-columns: minmax(0, 1fr) !important;
      grid-template-rows: none !important;
      grid-auto-rows: auto !important;
    }
    html[data-build="5"] body[data-role] .tt-console .aw-tabs {
      position: static !important;
    }
    /* Anchor output settings to the full sticky header, with a measured height
       bound that follows toolbar wrapping and visual viewport changes. */
    html[data-build="5"] body[data-role] .tt-console-header > .aw-toolbar,
    html[data-build="5"] body[data-role] .tt-console-header .tt-header-more {
      position: static !important;
    }
    html[data-build="5"] body[data-role] .tt-console-header .tt-header-more > div {
      position: absolute !important;
      left: 0 !important;
      right: auto !important;
      top: calc(100% + 5px) !important;
      bottom: auto !important;
      width: min(360px, calc(100dvw - 24px)) !important;
      min-width: 0 !important;
      max-width: calc(100dvw - 24px) !important;
      min-height: 0 !important;
      max-height: var(--tt-header-menu-max-height, calc(100dvh - 100% - 17px)) !important;
      margin: 0 !important;
      box-sizing: border-box !important;
      overflow-x: hidden !important;
      overflow-y: auto !important;
      overscroll-behavior: contain;
      scrollbar-width: thin;
    }
    html[data-build="5"] body[data-role] .tt-console-header .tt-header-more > div :is(button, label, .tt-dice-output-settings) {
      min-width: 0 !important;
      max-width: 100% !important;
      white-space: normal !important;
      overflow-wrap: anywhere !important;
      box-sizing: border-box;
    }
    html[data-build="5"] body[data-role] #dialog [data-ops-roster] {
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100% !important;
      box-sizing: border-box;
    }
    html[data-build="5"] body[data-role] #dialog [data-ops-roster] > h2 {
      min-width: 0 !important;
      max-width: 100% !important;
      white-space: normal !important;
      overflow-wrap: anywhere !important;
      word-break: normal !important;
    }
    html[data-build="5"] body[data-role] #hudAvatar {
      display: inline-grid !important;
      place-items: center !important;
      width: 32px !important;
      min-width: 32px !important;
      height: 32px !important;
      min-height: 32px !important;
      padding: 0 !important;
      color: #352719 !important;
      font: 600 16px/1 "Segoe UI", sans-serif !important;
    }
    html[data-build="5"] body[data-role] .hud-bar .hud-user-text {
      display: none !important;
    }
    /* Personal desktop widths must not push the editor off a phone screen. */
    html[data-build="5"] body[data-role] :is(.adventure-workshop, .tt-console) .aw-location-layout {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) !important;
      grid-template-rows: none !important;
      grid-auto-rows: auto !important;
      align-items: start !important;
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100% !important;
      height: auto !important;
      min-height: 0 !important;
      overflow: visible !important;
    }
    html[data-build="5"] body[data-role] :is(.adventure-workshop, .tt-console) .aw-location-layout > :is(.aw-scene-list, .aw-location-inspector, .aw-map-panel) {
      grid-column: 1 !important;
      grid-row: auto !important;
      position: static !important;
      align-self: start !important;
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100% !important;
      height: auto !important;
      min-height: 0 !important;
      max-height: none !important;
      overflow: visible !important;
      box-sizing: border-box !important;
    }
    html[data-build="5"] body[data-role] :is(.adventure-workshop, .tt-console) .aw-panel-resize {
      display: none !important;
    }
    html[data-build="5"] body[data-role] :is(.adventure-workshop, .tt-console) .aw-location-layout :is(.aw-fields, .aw-field, .aw-location-common, .aw-location-state-editor, .aw-location-settings, .aw-media-field, .aw-audio-selector) {
      min-width: 0 !important;
      max-width: 100% !important;
    }
    html[data-build="5"] body[data-role] :is(.adventure-workshop, .tt-console) .aw-location-layout .aw-map-panel .tt-map-scroll {
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100% !important;
      height: clamp(240px, 55dvh, 420px) !important;
      min-height: 0 !important;
      overflow: auto !important;
      box-sizing: border-box !important;
    }
    html[data-build="5"] body[data-role] #mobileNav {
      gap: 5px !important;
      min-height: 64px !important;
      overflow-x: auto !important;
      overflow-y: hidden !important;
      mask-image: none !important;
      scroll-padding-left: 70px;
      scrollbar-width: thin;
      scrollbar-color: #87613a #ead8b8;
    }
    html[data-build="5"] body[data-role] #mobileNav::before {
      content: "Меню →" !important;
      position: sticky !important;
      left: 0 !important;
      z-index: 5 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      flex: 0 0 58px !important;
      min-height: 46px !important;
      padding: 3px !important;
      border-right: 1px solid #b79c74 !important;
      background: #ead8b8 !important;
      color: #49351f !important;
      font: 600 12px/1.35 "Segoe UI", sans-serif !important;
      text-align: center !important;
      white-space: nowrap !important;
      box-shadow: 5px 0 6px -6px #4e3414 !important;
      pointer-events: none !important;
    }
    html[data-build="5"] body[data-role] #mobileNav::after {
      display: none !important;
      content: none !important;
    }
    html[data-build="5"] body[data-role] #mobileNav .mobile-tab[data-nav-art] {
      flex: 0 0 auto !important;
      width: max-content !important;
      min-width: 96px !important;
      max-width: 180px !important;
      min-height: 46px !important;
      padding: 7px 10px !important;
    }
    html[data-build="5"] body[data-role] #mobileNav .mobile-tab[data-nav-art] .nav-label {
      font: 600 15px/1.3 "Segoe UI", sans-serif !important;
      color: inherit !important;
      text-shadow: none !important;
      -webkit-text-stroke: 0 !important;
      white-space: normal !important;
      overflow-wrap: normal !important;
    }
  }

  /* A second compact row keeps all account controls reachable at 320px. */
  @media (max-width: 480px) {
    html[data-build="5"] body[data-role] #hudResources > span.resource-chip {
      display: none !important;
    }
    html[data-build="5"] body[data-role] :is(.adventure-workshop, .tt-console) .aw-location-layout .aw-fields {
      grid-template-columns: minmax(0, 1fr) !important;
    }
    html[data-build="5"] body[data-role] :is(.adventure-workshop, .tt-console) .aw-location-layout .aw-fields > * {
      grid-column: 1 !important;
    }
    html[data-build="5"] body[data-role] .hud-bar {
      display: grid !important;
      grid-template-columns: 36px minmax(0, 1fr) 32px !important;
      align-items: center !important;
      gap: 4px 7px !important;
      height: auto !important;
      min-height: 0 !important;
      padding: 5px 7px !important;
    }
    html[data-build="5"] body[data-role] .hud-bar .hud-brand {
      grid-column: 1 !important;
      grid-row: 1 !important;
      width: 36px !important;
      height: 32px !important;
    }
    html[data-build="5"] body[data-role] .hud-bar .hud-resources {
      grid-column: 2 !important;
      grid-row: 1 !important;
      width: 100% !important;
      min-width: 0 !important;
    }
    html[data-build="5"] body[data-role] .hud-bar .hud-user {
      display: contents !important;
    }
    html[data-build="5"] body[data-role] .hud-bar .hud-display-controls {
      grid-column: 1 / -1 !important;
      grid-row: 2 !important;
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
      flex: 1 1 auto !important;
      min-width: 0 !important;
      gap: 6px !important;
    }
    html[data-build="5"] body[data-role] .hud-bar .hud-display-control select {
      width: 100% !important;
      max-width: none !important;
      min-width: 0 !important;
      height: 34px !important;
      padding: 4px 18px 4px 7px !important;
      font: 14px/1.25 "Segoe UI", sans-serif !important;
    }
    html[data-build="5"] body[data-role] .hud-bar .hud-avatar {
      grid-column: 3 !important;
      grid-row: 1 !important;
      flex: 0 0 32px !important;
      width: 32px !important;
      height: 32px !important;
    }
  }

  @media (max-width: 1100px) {
    html[data-build="5"] body[data-screen="marketing"] .marketing-hub-tabs {
      scroll-padding-left: 90px;
    }
    html[data-build="5"] body[data-screen="marketing"] .marketing-hub-tabs::before {
      content: "Меню →";
      position: sticky;
      left: 0;
      z-index: 3;
      display: grid;
      place-content: center;
      flex: 0 0 76px;
      padding: 4px;
      background: #30251d;
      border-right: 1px solid #ab9166;
      color: #fff5df;
      font: 600 12px/1.35 "Segoe UI", sans-serif;
      white-space: nowrap;
      text-align: center;
      pointer-events: none;
    }
  }
}


/* assets/ui/club-layout-20261107.css */
@layer shell {
  /* The generated plaque is the button. The rail itself reveals the scene. */
  @media (min-width:821px) {
    html[data-build="5"] body[data-role] #sideRail {
      background:transparent!important;border:0!important;box-shadow:none!important;
      padding:8px 6px!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-width:thin;
    }
    html[data-build="5"] body[data-role] #sideNav {gap:3px!important;background:transparent!important;}
    html[data-build="5"] body[data-role] #sideNav .nav-button {
      position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;
      min-height:50px!important;height:auto!important;flex:none!important;padding:10px 16%!important;
      border:0!important;border-radius:0!important;box-shadow:none!important;
      background:url('/assets/ui/optimized/guild-plaque-20261107-257131c4.webp') center 47% / 100% 150% no-repeat!important;
      color:#35271d!important;filter:drop-shadow(0 2px 2px #20120b55);overflow:visible!important;transform:none!important;
    }
    html[data-build="5"] body[data-role] #sideNav .nav-button::before,
    html[data-build="5"] body[data-role] #sideNav .nav-button::after,
    html[data-build="5"] body[data-role] #sideNav .nav-symbol {display:none!important;content:none!important;}
    html[data-build="5"] body[data-role] #sideNav .nav-button .nav-label {
      position:static!important;inset:auto!important;display:block!important;width:100%!important;max-width:100%!important;
      padding:0!important;margin:0!important;transform:none!important;text-align:center!important;
      font-family:Georgia,serif!important;font-size:17px!important;font-weight:700!important;line-height:1.15!important;
      color:inherit!important;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;text-shadow:none!important;
    }
    html[data-build="5"] body[data-role] #sideNav .nav-button:is(:hover,:focus-visible) {filter:brightness(1.08) drop-shadow(0 1px 3px #102f2877);}
    html[data-build="5"] body[data-role] #sideNav .nav-button:is(:hover,:focus-visible,.active) {background:url('/assets/ui/optimized/guild-plaque-20261107-257131c4.webp') center 47% / 100% 150% no-repeat!important;}
    html[data-build="5"] body[data-role] #sideNav .nav-button.active {color:#114f43!important;filter:brightness(1.06) drop-shadow(0 0 3px #55c9ad);}
    html[data-build="5"] body[data-role] #sideNav .nav-badge {position:absolute!important;right:12px!important;top:5px!important;min-width:18px!important;max-width:30px!important;margin:0!important;}
  }

  /* The entire painting is the background; text is inside its empty field. */
  html[data-build="5"] body[data-screen="games"] .player-scene-background,
  html[data-build="5"] body[data-screen="games"]::before {
    background-image:url('/assets/ui/optimized/council-wide-20261107-5e3cd22e.webp')!important;
    background-size:100% 100%!important;background-position:center!important;
  }
  html[data-build="5"] body[data-screen="games"] #app .games-council-screen {
    min-height:0!important;padding:0!important;margin:0!important;background:none!important;box-shadow:none!important;
  }
  html[data-build="5"] body[data-screen="games"] #app .games-council-board {
    position:fixed!important;inset:19dvh 7.5vw 18dvh 23vw!important;width:auto!important;max-width:none!important;
    height:auto!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;
    background:none!important;box-shadow:none!important;overflow:hidden!important;
  }
  html[data-build="5"] body[data-screen="games"] #app .games-council-scroll {
    position:static!important;inset:auto!important;width:100%!important;height:100%!important;padding:6px 10px 12px!important;
    min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;box-sizing:border-box;
  }
  html[data-build="5"] body[data-screen="games"] #app .feedback-game-reminder {margin:4px 0 8px!important;padding:0!important;border:0!important;border-bottom:1px dashed #ae9367!important;background:none!important;box-shadow:none!important;}
  html[data-build="5"] body[data-screen="games"] #app .feedback-game-reminder>summary {display:flex!important;align-items:center;min-height:36px!important;padding:5px 0!important;font-size:17px!important;line-height:1.3!important;cursor:pointer;color:#5b4329!important;}
  html[data-build="5"] body[data-screen="games"] #app .unified-slot {gap:8px!important;padding:10px 2px!important;}
  html[data-build="5"] body[data-screen="games"] #app .schedule-filter-panel {border:0!important;background:none!important;margin:0!important;padding:0!important;}
  html[data-build="5"] body[data-screen="games"] #app .schedule-filter-panel>summary {min-height:44px!important;display:flex!important;align-items:center!important;padding:6px 0!important;font-size:17px!important;cursor:pointer;}
  html[data-build="5"] body [data-game-participants] :is(select,input:not([type="checkbox"]),textarea) {font-size:19px!important;min-height:44px!important;}
  html[data-build="5"] body[data-screen="chats"] #app .tavern-ledger-column {display:flex!important;flex-direction:column!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;}
  html[data-build="5"] body[data-screen="chats"] #app .tavern-ledger-column>.chat-ledger {flex:none!important;max-height:none!important;height:auto!important;overflow:visible!important;}
  html[data-build="5"] body[data-screen="chats"] #app .tavern-ledger-column>.chat-ledger-group {
    flex:none!important;display:block!important;margin:12px 0 0!important;padding:0!important;
    border:0!important;border-top:1px solid #b49567!important;border-radius:0!important;background:none!important;box-shadow:none!important;
  }
  html[data-build="5"] body[data-screen="chats"] #app .chat-ledger-group>summary {display:flex!important;align-items:center;justify-content:space-between;gap:8px;min-height:44px!important;padding:8px 5px!important;color:#473421!important;font-size:17px!important;line-height:1.25!important;cursor:pointer;list-style:none;}
  html[data-build="5"] body[data-screen="chats"] #app .chat-ledger-group>summary::after {content:'⌄';font-size:20px;}
  html[data-build="5"] body[data-screen="chats"] #app .chat-ledger-group:not([open])>summary::after {transform:rotate(-90deg);}
  html[data-build="5"] body[data-screen="chats"] #app .chat-ledger-group :is(.chat-ledger,.archive-chat-list) {max-height:none!important;height:auto!important;overflow:visible!important;}
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk .guest-support-admin-thread .chat-head {flex:none!important;margin:0!important;padding:8px 12px!important;background:#f1e3c7f5!important;border-bottom:1px solid #a68a5e!important;color:#3d3020!important;}
  html[data-build="5"] body[data-screen="chats"] #app .guest-support-admin-thread .chat-head h2 {font-size:21px!important;line-height:1.2!important;margin:0!important;}
  html[data-build="5"] body[data-screen="chats"] #app .guest-support-admin-thread .chat-head p {font-size:15px!important;line-height:1.25!important;margin:3px 0 0!important;}
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk .guest-support-admin-thread .guest-support-admin-compose {grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;}
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk .guest-support-admin-thread .guest-support-admin-compose label {position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;}
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk .guest-support-admin-thread .guest-support-admin-compose textarea {grid-column:1!important;grid-row:1!important;min-height:48px!important;height:48px!important;max-height:120px!important;font-size:19px!important;line-height:1.3!important;}
  html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk .guest-support-admin-thread .guest-support-admin-compose button {grid-column:2!important;grid-row:1!important;min-width:44px!important;min-height:48px!important;font-size:17px!important;width:auto!important;padding:7px 12px!important;}
  html[data-build="5"] body[data-screen="chats"] #app .guest-support-admin-status:empty {display:none!important;}

  @media(min-width:1101px){
    html[data-build="5"] body[data-screen="chats"] #app .tavern-screen {grid-template-rows:auto minmax(0,1fr)!important;min-height:0!important;overflow:hidden!important;}
    html[data-build="5"] body[data-screen="chats"] #app .tavern-notice-top {min-height:0!important;max-height:min(30dvh,320px)!important;overflow-x:hidden!important;overflow-y:auto!important;}
    html[data-build="5"] body[data-screen="chats"] #app .tavern-notice-top>summary {position:sticky!important;top:0!important;z-index:2!important;}
    html[data-build="5"] body[data-screen="chats"] #app .tavern-chat-desk {height:100%!important;min-height:0!important;overflow:hidden!important;}
    html[data-build="5"] body[data-screen="chats"] #app .tavern-thread-column,
    html[data-build="5"] body[data-screen="chats"] #app .tavern-thread-column>.chat-window {height:100%!important;min-height:0!important;overflow:hidden!important;}
  }

  #publicClub[hidden] {display:none!important;}
  body[data-public-club="true"] {overflow:auto!important;min-width:0!important;}
  #publicClub {min-height:100dvh;color:#3d2b1b;font-family:Georgia,serif;background:linear-gradient(#2b171e55,#2b171e77);}
  #publicClub * {box-sizing:border-box;}
  #publicClub .public-club-header {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 24px;background:#f4e7cce8;border-bottom:1px solid #ae9162;}
  #publicClub .public-club-brand {display:flex;align-items:center;gap:14px;color:#4b3320;text-decoration:none;}
  #publicClub .public-club-brand img {width:100px;height:55px;object-fit:contain;}
  #publicClub button,#publicClub .primary-button {font:inherit;font-size:18px;line-height:1.25;min-height:44px;padding:9px 14px;border:1px solid #937548;border-radius:6px;background:#f1dfbb;color:#3c2b1d;text-decoration:none;cursor:pointer;white-space:normal;}
  #publicClub .primary-button {display:inline-flex;align-items:center;justify-content:center;background:#315c4d;color:#fff8e7;border-color:#234b3e;}
  #publicClub button:disabled {opacity:.55;cursor:default;}
  #publicClub :is(button,a,input,select):focus-visible {outline:3px solid #127a66;outline-offset:2px;}
  #publicClub .public-club-layout {display:grid;grid-template-columns:220px minmax(0,1120px);justify-content:center;gap:24px;padding:24px;max-width:1480px;margin:auto;}
  #publicClub .public-club-nav {position:sticky;top:16px;align-self:start;display:grid;gap:5px;}
  #publicClub .public-club-nav button {min-height:54px;padding:12px 14%;border:0;background:url('/assets/ui/optimized/guild-plaque-20261107-257131c4.webp') center 47% / 100% 150% no-repeat;font-weight:bold;}
  #publicClub .public-club-nav button.active {color:#12644f;filter:brightness(1.07) drop-shadow(0 0 3px #68ba9b);}
  #publicClub .public-club-content {min-width:0;padding:24px clamp(16px,3vw,42px);border:1px solid #bd9d6a;border-radius:8px;background:#fff0d6f5;box-shadow:0 8px 28px #1e0f0c66;}
  #publicClub :is(h1,h2,h3) {color:#432e1d;line-height:1.2;overflow-wrap:anywhere;margin:0 0 12px;}
  #publicClub h1 {font-size:34px;}#publicClub h2 {font-size:26px;}#publicClub h3 {font-size:21px;}
  #publicClub p {font-size:19px;line-height:1.5;white-space:pre-line;margin:8px 0 16px;overflow-wrap:anywhere;}
  #publicClub .public-welcome {padding:8px 0 24px;margin:0 0 24px;border-bottom:1px solid #bda474;}
  #publicClub .public-welcome>div,#publicClub .public-rent-form-panel form>div {display:flex;flex-wrap:wrap;gap:10px;}
  #publicClub .public-empty {padding:18px;background:#eadab580;border:1px dashed #b7a078;}
  #publicClub .public-section-heading {margin-bottom:20px;}
  #publicClub .public-game-filters {display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px;}
  #publicClub .public-game-filters [aria-pressed="true"] {background:#315c4d;color:#fff6e3;}
  #publicClub .public-game {padding:14px 0;border-bottom:1px dashed #b99a69;}
  #publicClub .public-game-first,#publicClub .public-game-second {display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;min-width:0;}
  #publicClub .public-game-first h3 {flex:1;margin:0;}
  #publicClub .public-game-second {margin-top:9px;justify-content:space-between;font-size:18px;}
  #publicClub .public-type {font-size:16px;color:#705436;}
  #publicClub .public-member-note {font-size:16px;color:#715f47;}
  #publicClub .public-room-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:22px;}
  #publicClub .public-room {min-width:0;padding-bottom:16px;border-bottom:1px solid #c4a777;}
  #publicClub .public-room-photo {display:block;width:100%;max-height:280px;object-fit:cover;border-radius:6px;margin-bottom:14px;}
  #publicClub .public-room-lot {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-top:1px dashed #bda271;}
  #publicClub .public-room-lot>div {display:grid;gap:7px;min-width:0;font-size:17px;}
  #publicClub .public-own-bookings {margin:0 0 20px;padding:16px;border:1px solid #5d9079;background:#e2eddd;}
  #publicClub .public-own-bookings article {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid #a0b99b;}
  #publicClub .public-rent-form-panel {margin-top:24px;padding-top:20px;border-top:2px solid #97794d;}
  #publicClub .public-rent-form-panel form {display:grid;gap:14px;max-width:740px;}
  #publicClub label {display:grid;gap:6px;font-size:18px;min-width:0;}
  #publicClub :is(input,select) {font:inherit;font-size:19px;color:#34281c;background:#fff8e8;border:1px solid #a48b5f;border-radius:4px;min-height:44px;padding:8px;width:100%;min-width:0;max-width:100%;}
  #publicClub .public-checkbox {display:grid;grid-template-columns:20px minmax(0,1fr);align-items:start;gap:10px;line-height:1.4;}
  #publicClub .public-checkbox input {width:20px;height:20px;min-height:20px;padding:0;margin:3px 0;}
  #publicClub .public-legal {border:1px solid #c2aa83;padding:12px;}
  #publicClub summary {cursor:pointer;min-height:44px;font-size:19px;line-height:1.4;padding:9px 0;}
  #publicClub .public-quests details {border-bottom:1px solid #bda271;}
  #publicClub .public-news .news-post {margin-bottom:24px;}
  #publicClub .public-contact {display:flex;flex-wrap:wrap;gap:14px;align-items:center;}
  #publicClub .public-contact p {flex-basis:100%;}
  #publicClub .guest-contact-shell {min-width:0;display:flex;flex-direction:column;gap:10px;}
  #publicClub .guest-contact-thread {height:clamp(420px,calc(100dvh - 210px),800px);min-height:0;border:1px solid #aa8d60;border-radius:6px;overflow:hidden;background:#f7e9ce;}
  #publicClub .guest-contact-heading {flex:none;padding:12px 14px;border-bottom:1px solid #bba176;}
  #publicClub .guest-contact-heading h2 {margin:8px 0!important;}
  #publicClub .guest-contact-heading p {margin:0!important;font-size:16px!important;}
  #publicClub .guest-contact-start {display:grid;gap:14px;padding:14px;}
  #publicClub .guest-contact-history {flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin;}
  #publicClub .guest-contact-message {max-width:90%;padding:10px 12px;border:1px solid #bfa779;border-radius:8px;background:#fff6e5;overflow-wrap:anywhere;white-space:pre-wrap;font-size:18px!important;line-height:1.4;align-self:flex-start;}
  #publicClub .guest-contact-message.from-guest {align-self:flex-end;background:#e0ead8;border-color:#8da486;}
  #publicClub .guest-contact-message p {font-size:18px!important;line-height:1.4!important;margin:0!important;}
  #publicClub .guest-contact-message time {display:block;text-align:right;font-size:13px;color:#786b54;margin-top:4px;}
  #publicClub .guest-contact-message header {display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:4px;}
  #publicClub .guest-contact-message header strong {font-size:14px!important;}
  #publicClub .guest-contact-message header time {font-size:13px!important;margin:0;white-space:nowrap;}
  #publicClub .guest-contact-compose {flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:end;padding:8px;border-top:1px solid #aa9169;}
  #publicClub .guest-contact-compose label {font-size:0!important;gap:0;}
  #publicClub .guest-contact-compose textarea {font:inherit;font-size:19px!important;line-height:1.35!important;min-height:48px!important;max-height:130px!important;height:48px!important;resize:vertical;width:100%;min-width:0;padding:10px!important;border:1px solid #a88b5c;border-radius:5px;background:#fff9ec;color:#352a1c;}
  #publicClub .guest-contact-compose button {min-height:48px;}
  #publicClub :is([data-guest-chat-error],[data-guest-chat-status]):empty {display:none!important;}
  #publicClub :is([data-guest-chat-error],[data-guest-chat-status]) {flex:none;margin:0!important;padding:6px 12px!important;font-size:16px!important;}
  #publicClub :is(button,.primary-button) {font-size:18px!important;line-height:1.25!important;overflow-wrap:anywhere!important;}
  #publicClub p {font-size:19px!important;line-height:1.5!important;}
  #publicClub h1 {font-size:34px!important;line-height:1.2!important;}
  #publicClub h2 {font-size:26px!important;line-height:1.2!important;}
  #publicClub h3 {font-size:21px!important;line-height:1.2!important;}
  #publicClub :is(input,select) {font-size:19px!important;min-height:44px!important;}
  #publicClub .eyebrow {font-size:17px!important;line-height:1.3!important;}
  #publicClub [role="alert"] {color:#922f21;}
  #publicClub .public-load-error {max-width:640px;margin:40px auto;padding:24px;background:#fff0d6;}
  .public-back {display:block;margin:16px auto 0;min-height:44px;}

  @media(min-width:821px){
    #publicClub:has(.guest-contact-thread[data-connected="true"]) .public-club-content {display:flex;flex-direction:column;height:calc(100dvh - 132px);min-height:0;}
    #publicClub:has(.guest-contact-thread[data-connected="true"]) .public-club-content>:not([data-public-contact]) {display:none;}
    #publicClub:has(.guest-contact-thread[data-connected="true"]) [data-public-contact] {display:flex;flex:1 1 0;min-height:0;}
    #publicClub .guest-contact-thread[data-connected="true"] {height:100%;min-height:0;max-height:none;flex:1 1 0;}
  }

  @media(min-width:481px) and (max-width:1100px){
    html[data-build="5"] body[data-screen="chats"] .hud-bar .hud-display-control select {
      width:clamp(76px,calc((100vw - 340px)/2),140px)!important;max-width:none!important;
    }
  }

  @media(min-width:821px) and (max-width:1100px){
    html[data-build="5"]:has(body[data-screen="chats"]),
    html[data-build="5"] body[data-screen="chats"] {height:100dvh!important;overflow:hidden!important;}
    html[data-build="5"] body[data-screen="chats"] .game-shell {height:100dvh!important;min-height:0!important;grid-template-rows:auto minmax(0,1fr)!important;overflow:hidden!important;}
    html[data-build="5"] body[data-screen="chats"] .game-stage {height:100%!important;min-height:0!important;overflow:hidden!important;}
    html[data-build="5"] body[data-screen="chats"] #app {height:100%!important;min-height:0!important;max-height:100%!important;padding:0!important;overflow:hidden!important;}
    html[data-build="5"] body[data-screen="chats"] .hud-bar {display:grid!important;grid-template-columns:120px minmax(0,1fr) 44px!important;grid-template-rows:auto auto!important;gap:6px 10px!important;padding:6px 12px!important;height:auto!important;min-height:0!important;}
    html[data-build="5"] body[data-screen="chats"] .hud-bar .hud-user-text {display:none!important;}
    html[data-build="5"] body[data-screen="chats"] .hud-bar .hud-brand {grid-column:1!important;grid-row:1!important;width:120px!important;max-width:120px!important;min-width:0!important;height:44px!important;flex:0 0 120px!important;}
    html[data-build="5"] body[data-screen="chats"] .hud-bar .hud-brand img {width:100%!important;max-width:100%!important;height:100%!important;object-fit:contain!important;}
    html[data-build="5"] body[data-screen="chats"] #hudResources {grid-column:2!important;grid-row:1!important;width:100%!important;}
    html[data-build="5"] body[data-screen="chats"] .hud-bar .hud-user {display:contents!important;}
    html[data-build="5"] body[data-screen="chats"] .hud-bar .hud-avatar {grid-column:3!important;grid-row:1!important;width:44px!important;min-width:44px!important;height:44px!important;}
    html[data-build="5"] body[data-screen="chats"] .hud-bar .hud-display-controls {grid-column:1/-1!important;grid-row:2!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;}
    html[data-build="5"] body[data-screen="chats"] .hud-bar .hud-display-control {min-width:0!important;width:100%!important;}
    html[data-build="5"] body[data-screen="chats"] .hud-bar .hud-display-control>span {display:none!important;}
    html[data-build="5"] body[data-screen="chats"] .hud-bar .hud-display-control select {width:100%!important;max-width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;font-size:19px!important;}
    html[data-build="5"] body[data-screen="chats"]:has(.tavern-screen[data-mobile-chat="thread"]) .hud-bar .hud-display-controls {display:none!important;}
  }

  @media(max-width:1100px){
    /* The inbox paper uses fixed-width edges, so its text-safe area follows
       the content box at every width and for every number of conversations. */
    html[data-build="5"] body[data-screen="chats"] #app .tavern-screen[data-mobile-chat="list"] .tavern-ledger-column>.chat-ledger {
      box-sizing:border-box!important;width:100%!important;min-width:0!important;
      margin:0!important;padding:8px 12px!important;border:8px solid transparent!important;
      border-image:url('/assets/art/sheet-panel-v3.webp') 36 / 8px / 0 stretch!important;
      background:#f8edd7 url('/assets/ui/chat-archive-paper.svg') center/512px 512px repeat!important;
      background-clip:padding-box!important;box-shadow:0 3px 6px #3b251d22!important;
    }
    html[data-build="5"] body[data-screen="chats"] #app .tavern-screen[data-mobile-chat="list"] :is(.chat-group,.chat-group-list,.chat-list-item,.chat-main) {min-width:0!important;max-width:100%!important;}
    html[data-build="5"] body[data-screen="chats"] #app .tavern-screen[data-mobile-chat="list"] .chat-group-title {padding:8px!important;min-height:44px!important;gap:8px!important;}
    html[data-build="5"] body[data-screen="chats"] #app .tavern-screen[data-mobile-chat="list"] :is(.chat-side,.chat-group-summary,.chat-group-title>span:first-child) {transform:none!important;}
    html[data-build="5"] body[data-screen="chats"] #app .tavern-screen[data-mobile-chat="list"] .chat-group-title>span:first-child {min-width:0!important;overflow-wrap:anywhere!important;}
    html[data-build="5"] body[data-screen="chats"] #app .tavern-screen[data-mobile-chat="list"] .chat-side {min-width:32px!important;}
    html[data-build="5"] body[data-screen="chats"] #hudResources>span.resource-chip {display:none!important;}
    html[data-build="5"] body[data-screen="chats"] #hudResources {min-width:0!important;}
  }

  @media(max-width:820px){
    html[data-build="5"] body[data-screen="games"] .player-scene-background,
    html[data-build="5"] body[data-screen="games"]::before {background-image:url('/assets/ui/optimized/council-tall-20261107-184023d2.webp')!important;}
    html[data-build="5"] body[data-screen="games"] #app .games-council-board {inset:max(78px,14dvh) 5vw max(68px,12dvh)!important;}
    html[data-build="5"] body[data-screen="games"] #app .games-council-scroll {padding:3px 4px 12px!important;}
    html[data-build="5"] body[data-screen="games"] #app .schedule-type-tabs button {min-height:44px!important;font-size:16px!important;line-height:1.2!important;}
    html[data-build="5"] body[data-screen="games"] #app .schedule-filters select {min-height:44px!important;font-size:19px!important;}
    #publicClub .public-club-layout {display:block;padding:10px;}
    #publicClub .public-club-header {padding:8px 12px;}
    #publicClub .public-club-brand {gap:6px;}#publicClub .public-club-brand img {width:76px;height:44px;}#publicClub .public-club-brand span {display:none;}
    #publicClub .public-club-nav {position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;margin-bottom:10px;}
    #publicClub .public-club-nav button {padding:10px 10%;font-size:17px!important;min-height:53px!important;line-height:1.15!important;}
    #publicClub .public-club-content {padding:18px 12px;}
    #publicClub h1 {font-size:29px!important;}#publicClub h2 {font-size:24px!important;}
    #publicClub .public-game-first {align-items:flex-start;gap:6px 10px;}
    #publicClub .public-game-first time {flex-basis:100%;font-size:17px;}
    #publicClub .public-room-lot,#publicClub .public-own-bookings article {align-items:flex-start;flex-wrap:wrap;}
    #publicClub .public-room-lot>div {flex:1 1 160px;}
    #publicClub .public-rent-form-panel {scroll-margin-top:12px;}
    html:has(#publicClub:not([hidden]) .guest-contact-thread[data-connected="true"]),
    body[data-public-club="true"]:has(.guest-contact-thread[data-connected="true"]) {overflow:hidden!important;}
    #publicClub:has(.guest-contact-thread[data-connected="true"]) {display:flex;flex-direction:column;height:100dvh;min-height:0;}
    #publicClub:has(.guest-contact-thread[data-connected="true"]) .public-club-header {flex:none;}
    #publicClub:has(.guest-contact-thread[data-connected="true"]) .public-club-layout {display:flex;flex-direction:column;flex:1 1 0;min-height:0;width:100%;max-width:none;margin:0;padding:0;}
    #publicClub:has(.guest-contact-thread[data-connected="true"]) .public-club-nav {display:none;}
    #publicClub:has(.guest-contact-thread[data-connected="true"]) .public-club-content {display:flex;flex-direction:column;flex:1 1 0;min-height:0;padding:0;border:0;border-radius:0;}
    #publicClub:has(.guest-contact-thread[data-connected="true"]) .public-club-content>:not([data-public-contact]) {display:none;}
    #publicClub:has(.guest-contact-thread[data-connected="true"]) [data-public-contact] {display:flex;flex:1 1 0;min-height:0;}
    #publicClub .guest-contact-thread {flex:1 1 0;height:100%;min-height:0;border:0;border-radius:0;gap:0;}
    #publicClub .guest-contact-heading {display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:8px;padding:6px 8px;}
    #publicClub .guest-contact-heading h2 {font-size:20px!important;margin:0!important;}
    #publicClub .guest-contact-heading p {display:none;}
    #publicClub .guest-contact-back {width:44px!important;min-width:44px!important;height:44px!important;font-size:0!important;padding:0!important;}
    #publicClub .guest-contact-back::before {content:'←';font-size:22px;}
    #publicClub .guest-contact-compose {grid-template-columns:minmax(0,1fr) 48px;}
    #publicClub .guest-contact-compose button {font-size:0!important;width:48px;padding:0;}
    #publicClub .guest-contact-compose button::after {content:'➤';font-size:22px;}
  }
}


/* assets/ui/guest-player-shell-20261107.css */
/* The public site uses the player's existing shell, artwork and paper assets.
   Only its contents and permitted actions differ; no player role is assumed. */
@layer shell {
  html[data-build="5"] body[data-public-club="true"] {height:100dvh!important;min-height:0!important;overflow:hidden!important;}
  html[data-build="5"] body[data-public-club="true"]>.world-bg {display:none!important;}
  html[data-build="5"] body[data-public-club="true"] #publicClub {
    --public-player-scene:url('/assets/ui/optimized/chats-ee10272c.webp');
    position:relative!important;isolation:isolate!important;height:100dvh!important;min-height:0!important;
    background:none!important;color:#4b321f!important;font-family:var(--club-user-font,'Neucha','Segoe Print',cursive)!important;
  }
  html[data-build="5"] body[data-public-club="true"][data-public-view="rooms"] #publicClub {--public-player-scene:url('/assets/ui/optimized/rental-hall-20261103-3c8cee0a.webp');}
  html[data-build="5"] body[data-public-club="true"][data-public-view="news"] #publicClub {--public-player-scene:url('/assets/news/newsroom.webp');}
  html[data-build="5"] body[data-public-club="true"][data-public-view="games"] #publicClub {--public-player-scene:url('/assets/ui/optimized/council-wide-20261107-5e3cd22e.webp');}
  html[data-build="5"] body[data-public-club="true"][data-public-view="quests"] #publicClub {--public-player-scene:url('/assets/ui/optimized/quest-tavern-embedded-board-3907e026.webp');}
  html[data-build="5"] #publicClub .public-player-shell {
    display:grid!important;grid-template-columns:var(--v4-sidebar,220px) minmax(0,1fr)!important;
    grid-template-rows:var(--v4-hud,88px) minmax(0,1fr)!important;grid-template-areas:'hud hud' 'rail stage'!important;
    position:relative!important;isolation:isolate!important;width:100%!important;height:100dvh!important;min-height:0!important;
    margin:0!important;padding:0!important;overflow:hidden!important;background:none!important;
  }
  html[data-build="5"] #publicClub .public-scene-background {
    display:block!important;position:fixed!important;inset:0!important;z-index:0!important;pointer-events:none!important;
    background:var(--public-player-scene) center/cover no-repeat!important;
  }
  html[data-build="5"] #publicClub .public-scene-background::after {content:none!important;}
  html[data-build="5"] #publicClub :is(.public-club-header,.public-side-rail,.public-game-stage) {position:relative!important;z-index:2!important;}
  html[data-build="5"] #publicClub .public-club-header {
    grid-area:hud!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;
    height:var(--v4-hud,88px)!important;min-height:0!important;padding:10px 32px!important;
    background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;
  }
  html[data-build="5"] #publicClub .public-club-brand {
    display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 180px!important;
    width:180px!important;height:64px!important;min-height:0!important;min-width:0!important;margin:0!important;padding:0!important;
    border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;
  }
  html[data-build="5"] #publicClub .public-club-brand img {display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;}
  html[data-build="5"] #publicClub .public-hud-user {display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important;}
  html[data-build="5"] #publicClub .hud-display-controls {display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;}
  html[data-build="5"] #publicClub .hud-display-control {display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;margin:0!important;}
  html[data-build="5"] #publicClub .hud-display-control>span {font-size:14px!important;color:#fff0d0!important;text-shadow:0 1px 3px #25160c!important;}
  html[data-build="5"] #publicClub .hud-display-control select {width:140px!important;max-width:100%!important;min-width:0!important;min-height:40px!important;height:40px!important;padding:6px 9px!important;font-size:17px!important;}
  html[data-build="5"] #publicClub .public-login {flex:none!important;min-height:48px!important;padding:9px 14px!important;font-size:18px!important;}
  html[data-build="5"] #publicClub .public-side-rail {
    grid-area:rail!important;display:block!important;min-width:0!important;height:100%!important;margin:0!important;padding:8px 6px!important;
    overflow-x:hidden!important;overflow-y:auto!important;background:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;
  }
  html[data-build="5"] #publicClub .public-club-nav {position:static!important;display:grid!important;gap:3px!important;margin:0!important;padding:0!important;background:none!important;}
  html[data-build="5"] #publicClub .public-club-nav .nav-button {
    position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;
    min-height:50px!important;height:auto!important;margin:0!important;padding:10px 16%!important;border:0!important;border-radius:0!important;
    background:url('/assets/ui/optimized/guild-plaque-20261107-257131c4.webp') center 47%/100% 150% no-repeat!important;
    box-shadow:none!important;color:#35271d!important;filter:drop-shadow(0 2px 2px #20120b55);transform:none!important;
  }
  html[data-build="5"] #publicClub .public-club-nav .nav-button::before,
  html[data-build="5"] #publicClub .public-club-nav .nav-button::after {content:none!important;display:none!important;}
  html[data-build="5"] #publicClub .public-club-nav .nav-label {
    position:static!important;display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;
    margin:0!important;padding:0!important;transform:none!important;color:inherit!important;text-align:center!important;
    font-family:Georgia,serif!important;font-size:17px!important;font-weight:700!important;line-height:1.15!important;
    white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;text-shadow:none!important;
  }
  html[data-build="5"] #publicClub .public-club-nav .nav-button:is(:hover,:focus-visible,.active) {color:#114f43!important;filter:brightness(1.06) drop-shadow(0 0 3px #55c9ad);}
  html[data-build="5"] #publicClub .public-game-stage {grid-area:stage!important;min-width:0!important;min-height:0!important;height:100%!important;padding:0!important;background:none!important;overflow:hidden!important;}
  html[data-build="5"] #publicClub .public-club-content {display:block!important;width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;overflow:hidden!important;}
  html[data-build="5"] #publicClub .public-page {display:block!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:12px 18px 22px!important;box-sizing:border-box!important;background:none!important;}
  html[data-build="5"] #publicClub .public-scene-board {
    display:block!important;width:100%!important;height:100%!important;max-width:1280px!important;min-height:0!important;margin:0 auto!important;padding:0!important;
    border:12px solid transparent!important;border-image:url('/assets/art/sheet-panel-v3.webp') 36/12px/0 stretch!important;
    border-radius:0!important;background:#f8edd7 url('/assets/ui/chat-archive-paper.svg') center/512px 512px repeat!important;background-clip:padding-box!important;
    color:#4b321f!important;box-shadow:0 6px 14px #2d1b0c24!important;overflow:hidden!important;box-sizing:border-box!important;
  }
  html[data-build="5"] #publicClub .public-scene-scroll {width:100%!important;height:100%!important;min-height:0!important;padding:22px 28px 26px!important;box-sizing:border-box!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;}
  html[data-build="5"] #publicClub .public-status:empty {display:none!important;}
  html[data-build="5"] #publicClub :is(h1,h2,h3,p,button,input,select,textarea,summary) {font-family:inherit!important;}
  html[data-build="5"] #publicClub :is(h1,h2,h3) {color:#4b321f!important;}
  html[data-build="5"] #publicClub h1 {font-size:32px!important;line-height:1.2!important;}
  html[data-build="5"] #publicClub :is(button,.primary-button) {min-height:44px!important;font-size:18px!important;line-height:1.25!important;}
  html[data-build="5"] #publicClub .public-empty {border:1px dashed #b49567!important;background:#ead9b86b!important;color:#60472f!important;}
  html[data-build="5"] #publicClub .public-welcome {padding:2px 0 22px!important;margin-bottom:22px!important;}
  html[data-build="5"] #publicClub .public-welcome h1 {font-size:34px!important;}
  html[data-build="5"] #publicClub .public-club-address {display:grid!important;justify-items:start!important;gap:10px!important;margin:0 0 24px!important;padding:18px 0!important;border-block:1px solid #bda271!important;}
  html[data-build="5"] #publicClub .public-club-address h2 {margin:0!important;font-size:25px!important;}
  html[data-build="5"] #publicClub .public-club-address p {margin:0!important;font-size:19px!important;line-height:1.4!important;}
  html[data-build="5"] #publicClub .public-map-link {display:inline-flex!important;align-items:center!important;gap:8px!important;min-height:44px!important;box-sizing:border-box!important;padding:8px 14px!important;font-size:18px!important;color:#315f50!important;text-decoration:none!important;}
  html[data-build="5"] #publicClub .public-room {padding:16px!important;border:1px solid #b49b72!important;border-radius:10px!important;background:#f7efdfed!important;box-shadow:0 4px 16px #3b2b1212!important;}
  html[data-build="5"] #publicClub .public-room-photo {margin:0 0 14px!important;border-radius:6px!important;}
  html[data-build="5"] #publicClub .public-page-rooms .public-section-heading {padding:25px 30px!important;border:1px solid #bfa777!important;border-radius:14px!important;background:linear-gradient(105deg,#f3ebd9f5,#e9dfc7e6 65%,#c4d2bcd6)!important;}

  /* The same newsroom and separate paper cards as the player's news screen. */
  html[data-build="5"] #publicClub .public-page-news .public-scene-board {max-width:none!important;border:0!important;background:none!important;box-shadow:none!important;}
  html[data-build="5"] #publicClub .public-page-news .public-section-heading {max-width:1040px!important;margin:0 auto 26px!important;padding:clamp(20px,4vw,48px)!important;border:1px solid #b89459!important;border-radius:12px!important;background:linear-gradient(110deg,#fff3dbe8,#fff0d2d9)!important;box-shadow:0 6px 22px #1c0d0c35!important;}
  html[data-build="5"] #publicClub .public-news {max-width:900px!important;margin:auto!important;display:grid!important;gap:22px!important;}
  html[data-build="5"] #publicClub .public-news .news-post {margin:0!important;}

  /* Schedule text uses precisely the painted field of the player's board. */
  body[data-public-club="true"][data-public-view="games"] #publicClub .public-scene-background,
  body[data-public-club="true"][data-public-view="quests"] #publicClub .public-scene-background {background-size:100% 100%!important;}
  html[data-build="5"] #publicClub .public-page-games,
  html[data-build="5"] #publicClub .public-page-quests {padding:0!important;}
  html[data-build="5"] #publicClub .public-page-games .public-scene-board {position:fixed!important;inset:19dvh 7.5vw 18dvh 23vw!important;width:auto!important;height:auto!important;max-width:none!important;border:0!important;background:none!important;box-shadow:none!important;}
  html[data-build="5"] #publicClub .public-page-games .public-scene-scroll {padding:6px 10px 14px!important;}
  html[data-build="5"] #publicClub .public-page-games h1 {font-size:26px!important;}
  html[data-build="5"] #publicClub .public-page-games .public-section-heading {margin:0 0 12px!important;}
  html[data-build="5"] #publicClub .public-page-games .public-section-heading p {font-size:17px!important;line-height:1.35!important;margin:6px 0!important;}
  html[data-build="5"] #publicClub .public-game {display:grid!important;grid-template-columns:235px minmax(0,1fr)!important;grid-template-rows:44px 44px!important;align-items:stretch!important;gap:3px 14px!important;padding:7px 0!important;margin:0!important;border:0!important;border-bottom:1px dashed #b99a69!important;background:none!important;box-shadow:none!important;}
  html[data-build="5"] #publicClub :is(.public-game-when,.public-game-info) {display:grid!important;grid-template-rows:44px 44px!important;gap:3px!important;min-width:0!important;}
  html[data-build="5"] #publicClub .public-game-when time {display:flex!important;align-items:center!important;flex-direction:row!important;gap:10px!important;white-space:nowrap!important;font-size:17px!important;line-height:1.3!important;}
  html[data-build="5"] #publicClub .public-game-when time strong {font-size:22px!important;}
  html[data-build="5"] #publicClub .public-game-when .game-row-actions {display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:6px!important;width:100%!important;height:44px!important;margin:0!important;}
  html[data-build="5"] #publicClub .public-game-when :is(a,button) {display:flex!important;align-items:center!important;justify-content:center!important;width:auto!important;max-width:100%!important;height:44px!important;box-sizing:border-box!important;padding:7px 10px!important;text-align:center!important;white-space:nowrap!important;font-size:17px!important;}
  html[data-build="5"] #publicClub .public-game-info .schedule-slot-heading {display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:10px!important;min-width:0!important;height:44px!important;}
  html[data-build="5"] #publicClub .public-game-info h3 {flex:1 1 120px!important;font-size:18px!important;margin:0!important;min-width:0!important;max-width:100%!important;text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  html[data-build="5"] #publicClub .public-game-info :is(.public-type,.public-game-status) {max-width:100%!important;min-width:0!important;font-size:16px!important;line-height:1.3!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  html[data-build="5"] #publicClub .public-game-info .public-game-second {display:block!important;min-width:0!important;height:44px!important;margin:0!important;}
  html[data-build="5"] #publicClub .public-game-info .game-compact-line :is(strong,span,b) {font-size:15px!important;line-height:1.3!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:normal!important;}
  html[data-build="5"] #publicClub .public-game-info .game-compact-line {display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:12px!important;max-width:100%!important;min-width:0!important;height:44px!important;font-size:15px!important;line-height:1.3!important;white-space:nowrap!important;overflow-wrap:normal!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin;}
  html[data-build="5"] #publicClub .public-game-info .game-compact-line>* {flex:none!important;}
  html[data-build="5"] #publicClub .public-game-info .game-compact-detail {display:inline-flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:5px!important;white-space:nowrap!important;}
  html[data-build="5"] #publicClub .public-game-room {display:flex!important;flex:0 1 auto!important;gap:5px!important;min-width:0!important;max-width:55%!important;margin-left:auto!important;color:#315247!important;}
  html[data-build="5"] #publicClub .public-game-room :is(b,span) {font-size:15px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  html[data-build="5"] #publicClub .public-member-note {align-self:center!important;max-width:100%!important;font-size:15px!important;line-height:1.3!important;}

  html[data-build="5"] #publicClub .public-page-quests .public-scene-board {position:fixed!important;left:24vw!important;top:23dvh!important;width:50.5vw!important;height:58.5dvh!important;max-width:none!important;border:0!important;background:none!important;box-shadow:none!important;}
  html[data-build="5"] #publicClub .public-page-quests .public-scene-scroll {padding:4px 14px 16px 4px!important;}
  html[data-build="5"] #publicClub .public-page-quests .public-section-heading :is(h1,p) {color:#f3dfb5!important;text-shadow:0 1px 3px #25150d!important;}
  html[data-build="5"] #publicClub .public-quests {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;align-items:start!important;width:100%!important;min-width:0!important;}
  html[data-build="5"] #publicClub .public-quests>.public-empty {grid-column:1/-1!important;}
  html[data-build="5"] #publicClub .public-page-quests .public-empty {background:#f8edd7!important;}

  /* Connected support has the same paper bubbles and unobstructed composer. */
  html[data-build="5"] #publicClub .public-page-contact:has(.guest-contact-thread[data-connected="true"]) .public-scene-scroll {display:flex!important;flex-direction:column!important;min-height:0!important;padding:0!important;overflow:hidden!important;}
  html[data-build="5"] #publicClub .public-page-contact:has(.guest-contact-thread[data-connected="true"]) .public-scene-scroll>.public-section-heading,
  html[data-build="5"] #publicClub .public-page-contact:has(.guest-contact-thread[data-connected="true"]) .public-contact-secondary {display:none!important;}
  html[data-build="5"] #publicClub [data-public-contact] {min-height:0!important;}
  html[data-build="5"] #publicClub .public-page-contact:has(.guest-contact-thread[data-connected="true"]) [data-public-contact] {display:flex!important;flex:1 1 0!important;}
  html[data-build="5"] #publicClub .guest-contact-thread[data-connected="true"] {display:flex!important;flex-direction:column!important;flex:1 1 0!important;width:100%!important;height:100%!important;min-height:0!important;gap:0!important;border:0!important;border-radius:0!important;background:none!important;}
  html[data-build="5"] #publicClub .guest-contact-heading {display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;align-items:center!important;gap:5px 10px!important;padding:8px 12px!important;background:#f1e3c7!important;}
  html[data-build="5"] #publicClub .guest-contact-shell:not([data-connected="true"]) .guest-contact-heading {display:block!important;}
  html[data-build="5"] #publicClub .guest-contact-heading h2 {font-size:21px!important;margin:0!important;}
  html[data-build="5"] #publicClub .guest-contact-heading p {grid-column:2!important;margin:0!important;}
  html[data-build="5"] #publicClub .guest-contact-back {grid-row:1/3!important;width:44px!important;min-width:44px!important;height:44px!important;padding:0!important;font-size:0!important;}
  html[data-build="5"] #publicClub .guest-contact-back::before {content:'←';font-size:22px;}
  html[data-build="5"] #publicClub .guest-contact-history {background:none!important;padding:10px!important;}
  html[data-build="5"] #publicClub .guest-contact-message {flex:0 0 auto!important;min-width:0!important;max-width:90%!important;padding:10px 14px!important;border:10px solid transparent!important;border-image:url('/assets/ui/optimized/bubble-incoming-4d873b7f.webp') 24% 8% 27% 8% fill/10px/0 stretch!important;border-radius:0!important;background:none!important;box-sizing:border-box!important;box-shadow:none!important;}
  html[data-build="5"] #publicClub .guest-contact-message header {flex-wrap:wrap!important;gap:4px 8px!important;}
  html[data-build="5"] #publicClub .guest-contact-message.from-guest {border-image-source:url('/assets/ui/optimized/bubble-outgoing-8aeabf47.webp')!important;}
  html[data-build="5"] #publicClub .guest-contact-compose {grid-template-columns:minmax(0,1fr) auto!important;min-height:64px!important;margin:0!important;padding:8px!important;background:#f1e3c7!important;border-top:1px solid #a68a5e!important;}
  html[data-build="5"] #publicClub .guest-contact-compose textarea {height:48px!important;min-height:48px!important;max-height:130px!important;font-size:19px!important;}
  html[data-build="5"] #publicClub .guest-contact-compose button {width:auto!important;min-width:48px!important;min-height:48px!important;font-size:17px!important;}
  html[data-build="5"] #publicClub .public-mobile-nav {display:none!important;}

  @media(max-width:820px){
    html[data-build="5"] #publicClub .public-player-shell {grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important;grid-template-areas:'hud' 'stage'!important;padding-bottom:calc(64px + env(safe-area-inset-bottom))!important;box-sizing:border-box!important;}
    html[data-build="5"] #publicClub .public-club-header {display:grid!important;grid-template-columns:36px minmax(0,1fr)!important;grid-template-rows:auto auto!important;align-items:center!important;gap:4px 8px!important;height:auto!important;min-height:0!important;padding:5px 7px!important;}
    html[data-build="5"] #publicClub .public-club-brand {grid-column:1!important;grid-row:1!important;width:36px!important;min-width:36px!important;height:32px!important;min-height:32px!important;background:#f5e6c9 url('/assets/ui/d20-mark.svg') center/26px 26px no-repeat!important;border:1px solid #a48250!important;border-radius:7px!important;}
    html[data-build="5"] #publicClub .public-club-brand img {visibility:hidden!important;}
    html[data-build="5"] #publicClub .public-hud-user {display:contents!important;}
    html[data-build="5"] #publicClub .public-login {grid-column:2!important;grid-row:1!important;justify-self:end!important;min-height:36px!important;max-width:100%!important;padding:6px 10px!important;font-size:17px!important;}
    html[data-build="5"] #publicClub .hud-display-controls {grid-column:1/-1!important;grid-row:2!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;gap:6px!important;}
    html[data-build="5"] #publicClub .hud-display-control {display:block!important;width:100%!important;}
    html[data-build="5"] #publicClub .hud-display-control>span {display:none!important;}
    html[data-build="5"] #publicClub .hud-display-control select {width:100%!important;max-width:100%!important;height:36px!important;min-height:36px!important;font-size:17px!important;padding:5px 8px!important;}
    html[data-build="5"] #publicClub .public-side-rail {display:none!important;}
    html[data-build="5"] #publicClub .public-page {padding:8px 8px 12px!important;}
    html[data-build="5"] #publicClub .public-scene-board {border-width:8px!important;border-image-width:8px!important;}
    html[data-build="5"] #publicClub .public-scene-scroll {padding:14px 12px 20px!important;}
    html[data-build="5"] #publicClub .public-mobile-nav {
      display:flex!important;position:fixed!important;inset:auto 0 0!important;z-index:30!important;align-items:stretch!important;gap:4px!important;
      min-height:58px!important;padding:5px max(6px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))!important;
      overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin!important;scroll-padding:6px;background:#ead8b8!important;border:0!important;border-top:2px solid #87613a!important;
    }
    html[data-build="5"] #publicClub .public-mobile-nav .mobile-tab {
      display:flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;min-width:96px!important;max-width:180px!important;min-height:46px!important;height:auto!important;
      margin:0!important;padding:7px 10px!important;border:1px solid #a48250!important;border-radius:8px!important;background:#fff3d9!important;box-shadow:none!important;color:#352719!important;
    }
    html[data-build="5"] #publicClub .public-mobile-nav .nav-label {position:static!important;display:block!important;transform:none!important;max-width:100%!important;min-width:0!important;font:600 15px/1.3 'Segoe UI',sans-serif!important;text-align:center!important;white-space:normal!important;overflow-wrap:normal!important;color:inherit!important;}
    html[data-build="5"] #publicClub .public-mobile-nav .mobile-tab.active {background:#29594b!important;border-color:#21473d!important;color:#fff9e9!important;}
    html[data-build="5"] #publicClub .public-page-games .public-scene-board {inset:max(96px,14dvh) 5vw max(68px,12dvh)!important;}
    html[data-build="5"] body[data-public-club="true"][data-public-view="games"] #publicClub {--public-player-scene:url('/assets/ui/optimized/council-tall-20261107-184023d2.webp');}
    html[data-build="5"] #publicClub .public-page-games .public-scene-scroll {padding:3px 4px 12px!important;}
    html[data-build="5"] #publicClub .public-game-filters {display:flex!important;flex-wrap:nowrap!important;gap:6px!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin;scroll-padding:3px;}
    html[data-build="5"] #publicClub .public-game-filters button {flex:0 0 auto!important;white-space:nowrap!important;}
    html[data-build="5"] #publicClub .public-game {grid-template-columns:150px minmax(0,1fr)!important;gap:3px 8px!important;}
    html[data-build="5"] #publicClub .public-game-when time {gap:7px!important;font-size:15px!important;}
    html[data-build="5"] #publicClub .public-game-when time strong {font-size:20px!important;}
    html[data-build="5"] #publicClub .public-game-when :is(a,button) {font-size:15px!important;}
    html[data-build="5"] #publicClub .public-game-info .schedule-slot-heading {display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;grid-template-rows:22px 22px!important;gap:0 7px!important;}
    html[data-build="5"] #publicClub .public-game-info .schedule-slot-heading:has(.public-game-status) {grid-template-columns:minmax(0,1fr)!important;}
    html[data-build="5"] #publicClub .public-game-info .public-type {grid-column:1!important;grid-row:1!important;}
    html[data-build="5"] #publicClub .public-game-info h3 {grid-column:2!important;grid-row:1!important;font-size:15px!important;}
    html[data-build="5"] #publicClub .public-game-info .public-game-status {grid-column:1/-1!important;grid-row:2!important;}
    html[data-build="5"] #publicClub .public-game-info .schedule-slot-heading:has(.public-game-status) h3 {display:none!important;}
    html[data-build="5"] #publicClub .public-game-info .schedule-slot-heading:has(.public-game-room) .public-game-status {display:none!important;}
    html[data-build="5"] #publicClub :is(.schedule-price-unit,.public-game-duration b) {display:none!important;}
    html[data-build="5"] #publicClub .public-game-room {grid-column:1/-1!important;grid-row:2!important;max-width:100%!important;width:100%!important;margin:0!important;}
    html[data-build="5"] #publicClub .public-page-rooms .public-section-heading {padding:16px 14px!important;}
    body[data-public-club="true"][data-public-view="quests"] #publicClub .public-scene-background {background-size:auto 100%!important;}
    html[data-build="5"] #publicClub .public-page-quests .public-scene-board {left:12px!important;right:12px!important;top:max(104px,23dvh)!important;bottom:max(calc(82px + env(safe-area-inset-bottom)),18.5dvh)!important;width:auto!important;height:auto!important;}
    html[data-build="5"] #publicClub .public-page-quests .public-scene-scroll {padding:3px 9px 15px!important;}
    html[data-build="5"] #publicClub:has(.guest-contact-thread[data-connected="true"]) .public-player-shell {padding-bottom:0!important;}
    html[data-build="5"] #publicClub:has(.guest-contact-thread[data-connected="true"]) :is(.public-mobile-nav,.hud-display-controls) {display:none!important;}
    html[data-build="5"] #publicClub .public-page-contact:has(.guest-contact-thread[data-connected="true"]) {padding:0!important;}
    html[data-build="5"] #publicClub .public-page-contact:has(.guest-contact-thread[data-connected="true"]) .public-scene-board {border:0!important;}
    html[data-build="5"] #publicClub .guest-contact-heading p {display:none!important;}
    html[data-build="5"] #publicClub .guest-contact-compose {grid-template-columns:minmax(0,1fr) 48px!important;}
    html[data-build="5"] #publicClub .guest-contact-compose button {font-size:0!important;width:48px!important;padding:0!important;}
    html[data-build="5"] #publicClub .guest-contact-compose button::after {content:'➤';font-size:22px;}
  }
}

/* Reuse the player's segmented parchment without allowing legacy grid spans
   or nowrap metadata to squeeze the public sheet content. */
@layer quest-surfaces {
  html[data-build="5"] #publicClub .public-quest-paper {grid-column:auto!important;min-width:0!important;color:#302217!important;}
  html[data-build="5"] #publicClub .public-quest-paper .quest-paper-title {font-size:clamp(20px,1.7vw,25px)!important;line-height:1.15!important;color:#302217!important;text-shadow:none!important;}
  html[data-build="5"] #publicClub .public-quest-paper .quest-paper-meta {flex-wrap:wrap!important;gap:4px 10px!important;font-size:14px!important;line-height:1.25!important;color:#60452d!important;text-shadow:none!important;}
  html[data-build="5"] #publicClub .public-quest-paper .quest-description p {font-size:17px!important;line-height:1.45!important;color:#302217!important;text-shadow:none!important;}
  html[data-build="5"] #publicClub .public-quest-paper .quest-paper-reward {font-size:17px!important;line-height:1.35!important;color:#382717!important;text-shadow:none!important;}
  @media(max-width:1050px){
    html[data-build="5"] #publicClub .public-quests {grid-template-columns:minmax(0,1fr)!important;}
  }
}


/* assets/ui/public-club-about.css */
@layer shell {
 html[data-build="5"] #publicClub .public-about {display:grid;gap:28px;max-width:1120px;margin:0 auto 36px;min-width:0;}
 html[data-build="5"] #publicClub .public-about :is(p,figure) {margin:0;}
 html[data-build="5"] #publicClub .public-about p {font-size:calc(19px * var(--club-selected-text-scale,1));line-height:1.6;overflow-wrap:anywhere;}
 html[data-build="5"] #publicClub .public-about-heading {display:grid;gap:12px;}
 html[data-build="5"] #publicClub .public-about-heading h1 {margin:0!important;}
 html[data-build="5"] #publicClub .public-about-heading>p {max-width:72ch;}
 html[data-build="5"] #publicClub .public-about-intro {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:26px;align-items:center;min-width:0;}
 html[data-build="5"] #publicClub .public-about-picture {min-width:0;}
 html[data-build="5"] #publicClub .public-about-picture img {display:block;width:100%;max-width:640px;height:auto;aspect-ratio:640/463;object-fit:contain;border-radius:8px;box-shadow:0 4px 14px #2d1b0c24;}
 html[data-build="5"] #publicClub .public-about :is(.public-about-mission,.public-about-section) {display:grid;gap:14px;min-width:0;}
 html[data-build="5"] #publicClub .public-about :is(h2,h3) {margin:0!important;line-height:1.25;overflow-wrap:anywhere;}
 html[data-build="5"] #publicClub .public-about h2 {font-size:calc(27px * var(--club-selected-text-scale,1));}
 html[data-build="5"] #publicClub .public-about h3 {font-size:calc(23px * var(--club-selected-text-scale,1));}
 html[data-build="5"] #publicClub .public-about-section {padding-top:26px;border-top:1px solid #bda271;}
 html[data-build="5"] #publicClub .public-about a:not(.primary-button,.soft-button) {color:#23594c;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px;}
 html[data-build="5"] #publicClub .public-about-actions {display:flex;align-items:stretch;flex-wrap:wrap;gap:10px;margin-top:6px;min-width:0;}
 html[data-build="5"] #publicClub .public-about-actions :is(a,button) {display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:44px;max-width:100%;margin:0;box-sizing:border-box;padding:10px 15px;white-space:normal;text-align:center;overflow-wrap:anywhere;}
 html[data-build="5"] #publicClub .public-about-address {display:grid;justify-items:start;gap:10px;padding:18px 20px;border:1px solid #bda271;background:#efe0c3a6;border-radius:8px;min-width:0;}
 html[data-build="5"] #publicClub .public-about-map {display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;box-sizing:border-box;max-width:100%;}
 html[data-build="5"] #publicClub .public-about-farewell {display:grid;justify-items:start;gap:14px;padding-top:24px;border-top:1px solid #bda271;}
 html[data-build="5"] #publicClub .public-about :is(a,button):focus-visible {outline:3px solid #23594c;outline-offset:3px;}
 @media(max-width:1100px) {
  html[data-build="5"] #publicClub .public-about-intro {grid-template-columns:minmax(0,1fr);gap:24px;}
  html[data-build="5"] #publicClub .public-about-picture img {margin:auto;}
 }
 @media(max-width:600px) {
  html[data-build="5"] #publicClub .public-about {gap:22px;margin-bottom:26px;}
  html[data-build="5"] #publicClub .public-about p {font-size:calc(18px * var(--club-selected-text-scale,1));line-height:1.55;}
  html[data-build="5"] #publicClub .public-about h2 {font-size:calc(25px * var(--club-selected-text-scale,1));}
  html[data-build="5"] #publicClub .public-about-actions {display:grid;grid-template-columns:minmax(0,1fr);width:100%;}
  html[data-build="5"] #publicClub .public-about-actions :is(a,button) {width:100%;}
  html[data-build="5"] #publicClub .public-about-address {padding:15px;}
 }
}


/* assets/ui/runtime-performance-20261108.css */
/* Readable surfaces remain while decorative media is loading or unavailable. */
html[data-build="5"] .player-scene-background{background-color:#cab998}
@layer shell {
 html[data-build="5"] #publicClub .public-scene-background{background-color:#cab998!important}
 /* Keep the parchment's transparent edges; a glyph halo remains readable if its art fails. */
 html[data-build="5"] body:is([data-role="player"],[data-shared-scene="true"])[data-screen="chats"] :is(.chat-ledger,.chat-window-head,.chat-compose,.message-bubble){text-shadow:0 0 2px #fff7e6,0 0 4px #fff7e6!important}
 html[data-build="5"] .quest-board-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
 html[data-build="5"] .quest-board-goals .board-empty{color:#59402a;background:#f4e8cf;padding:14px;border-radius:8px}
}
.message[data-message-id].message-highlight{outline:3px solid #bd8a34;outline-offset:4px;border-radius:10px}
@media(max-width:700px){#publicClub [data-public-hero]{font-size:13px;padding:7px;min-height:40px}#publicClub .public-hud-user{flex-wrap:wrap;gap:6px!important}}


/* assets/ui/guest-character-scene.css */
/* Guest creation shares the player's existing scene and keeps one clear form. */
@layer shell {
 html[data-build="5"] body[data-public-club="true"][data-public-view="characters"] #publicClub {--public-player-scene:url('/assets/ui/optimized/characters-da34950f.webp')}
 html[data-build="5"] #publicClub .public-page-characters {display:block!important;height:100%!important;padding:0!important;background:none!important;overflow:auto!important}
 html[data-build="5"] #publicClub [data-public-character-scene] {min-width:0;min-height:100%;padding:16px 24px 32px;box-sizing:border-box;color:#3b2c1e}
 html[data-build="5"] #publicClub .guest-character-scene {max-width:1300px;margin:auto}
 html[data-build="5"] #publicClub .guest-scene-layout {display:flex;flex-direction:column;align-items:flex-end;gap:24px;min-width:0}
 html[data-build="5"] #publicClub :is(.guest-character-workbench,.guest-created-sheet) {box-sizing:border-box;min-width:0;background:linear-gradient(#fff4d9ed,#ebd6b2f5),url('/assets/ui/paper-grain.svg');border:1px solid #91683d;border-radius:3px;box-shadow:4px 7px 20px #24170d77;color:#3b2c1e}
 html[data-build="5"] #publicClub .guest-character-workbench {width:100%;max-width:560px;padding:26px 28px}
 html[data-build="5"] #publicClub .guest-created-sheet {width:100%;padding:24px;overflow:visible}
 html[data-build="5"] #publicClub .guest-sheet-heading {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0 0 24px}
 html[data-build="5"] #publicClub .guest-sheet-heading h2 {margin:0!important;font-size:28px!important;line-height:1.2;color:inherit}
 html[data-build="5"] #publicClub .guest-sheet-heading button {max-width:100%;min-height:44px;padding:10px 16px;border:1px solid #ac8c5d;border-radius:5px;background:#fff9e9;color:#3b2c1e;font:inherit;font-size:16px;line-height:1.3;white-space:normal;cursor:pointer}
 html[data-build="5"] #publicClub .guest-sheet-heading button:focus-visible {outline:3px solid #65472b;outline-offset:3px}
 html[data-build="5"] #publicClub [data-guest-character-sheet] {display:block;width:100%;min-width:0}
 html[data-build="5"] #publicClub .guest-created-hero {min-width:0;margin-top:24px;padding-top:20px;border-top:1px solid #ab8759;text-align:center;overflow-wrap:anywhere}
 html[data-build="5"] #publicClub .guest-created-hero h2 {font-size:clamp(25px,2.7vw,38px)!important;margin:10px 0}
 html[data-build="5"] #publicClub .guest-created-hero p {font-size:16px;margin:8px 0}
 html[data-build="5"] #publicClub .guest-hero-abilities {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 5px;margin:24px 0;padding:15px 0;border-block:1px solid #916b3f70}
 html[data-build="5"] #publicClub .guest-hero-abilities dt {font-size:12px}
 html[data-build="5"] #publicClub .guest-hero-abilities dd {font:700 25px Georgia,serif;margin:5px 0}
 html[data-build="5"] #publicClub .guest-hero-defenses {display:flex;justify-content:center;gap:20px;flex-wrap:wrap}
 html[data-build="5"] #publicClub .guest-hero-seal {color:#315d48;font-weight:700}
 html[data-build="5"] #publicClub .guest-character-workbench h1 {margin:0!important;font-size:28px!important;line-height:1.2;color:inherit!important}
 html[data-build="5"] #publicClub .guest-character-workbench :is(h2,h3) {margin:0 0 16px}
 html[data-build="5"] #publicClub .guest-character-workbench form {display:grid;gap:16px;min-width:0}
 html[data-build="5"] #publicClub .guest-autogeneration-intro {display:grid;gap:10px;min-width:0;padding:14px;border:1px solid #b89a6d;border-left:3px solid #80613e;border-radius:5px;background:#fff9e982;overflow-wrap:anywhere}
 html[data-build="5"] #publicClub .guest-autogeneration-intro strong {font-size:18px;line-height:1.3}
 html[data-build="5"] #publicClub .guest-autogeneration-intro p {margin:0;font-size:16px;line-height:1.45}
 html[data-build="5"] #publicClub .guest-autogeneration-intro .soft-button {min-height:44px;margin:0;padding:10px 12px}
 html[data-build="5"] #publicClub .guest-character-workbench label {display:grid;gap:7px;min-width:0;font-size:19px}
 html[data-build="5"] #publicClub .guest-character-workbench :is(input,select) {box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:10px 12px;min-height:44px;background:#fff9e9;color:#3b2c1e;border:1px solid #ac8c5d;border-radius:5px;font:inherit;font-size:18px}
 html[data-build="5"] #publicClub .guest-character-workbench .guest-check {display:flex;align-items:flex-start;gap:9px;font-size:15px;line-height:1.45}
 html[data-build="5"] #publicClub .guest-check input {width:18px;min-height:18px;height:18px;flex:0 0 18px;margin:3px 0 0}
 html[data-build="5"] #publicClub .guest-hero-choice small {font-size:15px;line-height:1.45;color:#765b3d;min-height:3em}
 html[data-build="5"] #publicClub .guest-character-workbench :is(.primary-button,.soft-button) {white-space:normal;overflow-wrap:normal;width:100%;box-sizing:border-box;text-align:center;padding:12px 16px}
 html[data-build="5"] #publicClub .guest-character-workbench .primary-button {background:#65472b!important;color:#fff0d1!important;border:1px solid #3d2a18!important;box-shadow:0 3px 0 #392516}
 html[data-build="5"] #publicClub .guest-character-workbench .guest-generation-note {font-size:13px;line-height:1.4;color:#795e41;margin:0}
 html[data-build="5"] #publicClub :is(.guest-hero-equipment,.guest-hero-save,.guest-saved-note) {margin-top:24px;border-top:1px solid #ab8759;padding-top:20px;font-size:16px;line-height:1.45}
 html[data-build="5"] #publicClub .guest-hero-equipment summary {cursor:pointer;font-size:20px}
 html[data-build="5"] #publicClub .guest-legal-copy {white-space:pre-wrap}
 html[data-build="5"] #publicClub .guest-character-loading {margin:40px auto;max-width:500px;padding:24px;background:#ead9b9f2;border:1px solid #947044}
 @media(max-width:1050px){
  html[data-build="5"] #publicClub [data-public-character-scene] {padding:12px 16px 28px}
 }
 @media(max-width:560px){
  html[data-build="5"] #publicClub [data-public-character-scene] {padding:10px 10px 30px}
  html[data-build="5"] #publicClub .guest-created-sheet {padding:12px}
  html[data-build="5"] #publicClub .guest-sheet-heading {gap:10px;margin-bottom:20px}
  html[data-build="5"] #publicClub .guest-sheet-heading h2 {font-size:25px!important}
  html[data-build="5"] #publicClub .guest-sheet-heading button {width:100%}
  html[data-build="5"] #publicClub .guest-created-hero h2 {font-size:25px!important;margin:6px 0}
  html[data-build="5"] #publicClub .guest-created-hero p {font-size:14px;margin:5px 0}
  html[data-build="5"] #publicClub .guest-hero-abilities {gap:6px 3px;margin:12px 0;padding:10px 0}
  html[data-build="5"] #publicClub .guest-hero-abilities dt {font-size:10px}
  html[data-build="5"] #publicClub .guest-hero-abilities dd {font-size:22px;margin:3px 0}
  html[data-build="5"] #publicClub .guest-character-workbench {padding:22px 18px}
  html[data-build="5"] #publicClub .guest-character-workbench h2 {font-size:25px!important}
  html[data-build="5"] #publicClub .public-login {white-space:nowrap!important;min-width:max-content!important;font-size:14px!important}
 }
}


/* assets/ui/world-glossary.css */
@layer shell {
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .atlas-scene [data-geo-guide] {
  color: #382c24;
  overflow-wrap: anywhere;
  .geo-title { margin: 0 0 1.1rem; }
  .geo-title h2 { margin: .35rem 0 .7rem !important; font: 600 clamp(1.85rem, 3vw, 2.55rem)/1.12 Georgia, serif !important; }
  .geo-topic { margin: 0; padding: 1.35rem 0 .2rem; border-top: 1px solid #9c794c66; }
  .geo-topic > h3 { margin: 0 0 .85rem !important; font: 600 1.4rem/1.25 Georgia, serif !important; color: #563823 !important; }
  :is(button,summary):focus-visible { outline: 2px solid #795736 !important; outline-offset: 3px; }
  .geo-passage { margin: 0 0 .9rem; }
  .geo-passage h4 { font: 600 1.08rem/1.4 Georgia, serif !important; color: #533b2c !important; margin: 1rem 0 .3rem !important; }
  .geo-passage p, .geo-settlement p, .geo-sources p { margin: 0 0 .55rem !important; font: 1rem/1.63 Georgia, serif !important; color: #392e25 !important; }
  .geo-links { display: flex; flex-wrap: wrap; gap: .4rem .55rem; margin-bottom: 1rem; }
  .geo-title + .geo-topic { border: 0; padding-top: 0; }
  .geo-title + .geo-topic > h3[data-geo-topic="overview"] { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; }
  :is(.geo-links button,.geo-link-list > li > button) { white-space: normal !important; min-height: 36px !important; height: auto !important; max-width: 100%; padding: .35rem .62rem !important; font: 550 .86rem/1.35 system-ui,sans-serif !important; text-align: left; color: #523a27 !important; background: #fff6df77 !important; border: 1px solid #a7865c99 !important; border-radius: 4px !important; box-shadow: none !important; }
  :is(.geo-links button,.geo-link-list > li > button):hover { background: #fff5d9 !important; border-color: #785238 !important; }
  .geo-connection { display: inline-flex; align-items: center; gap: .45rem; }
  .geo-connection img { width: 2rem !important; height: 2rem !important; flex: none; object-fit: cover; border-radius: 3px; }
  .geo-link-group { margin: 0 0 1.05rem; }
  .geo-link-group > h4 { margin: 0 0 .45rem !important; color: #533b2c !important; font: 600 1.08rem/1.4 Georgia, serif !important; }
  .geo-link-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,17rem),1fr)); gap: .5rem; list-style: none; padding: 0; margin: 0; }
  .geo-link-list > li { min-width: 0; padding: .6rem .7rem; border: 1px solid #a8875955; border-radius: 4px; background: #fff7e329; }
  .geo-link-list > li > p { margin: .4rem 0 0 !important; color: #45352a !important; font: .95rem/1.5 Georgia, serif !important; }
  .geo-settlement { padding: 0 .75rem; margin: 0 0 .45rem; border: 1px solid #a8875955; border-radius: 4px; background: #fff7e329; }
  .geo-settlement summary, .geo-staff summary, .geo-sources summary { cursor: pointer; padding: .65rem 0; font: 600 1.02rem/1.4 Georgia, serif; color: #513924; }
  .geo-settlement > div { margin: .1rem 0 .85rem; }
  .geo-settlement-facts { margin: 0; }
  .geo-settlement-facts > div + div { margin-top: .65rem; }
  .geo-settlement-facts dt { margin: 0 0 .2rem; font: 650 .78rem/1.4 system-ui,sans-serif; color: #715036; }
  .geo-settlement-facts dd { margin: 0; }
  .geo-staff, .geo-sources { margin: 1.2rem 0 0; padding: .2rem .8rem; }
  .geo-sources { border-top: 1px solid #a8875966; padding-inline: 0; }
  .geo-sources summary { font: 550 .85rem/1.45 system-ui,sans-serif; }
  .geo-sources button { margin: .25rem; }
  .geo-sources .atlas-source { margin-block: .6rem !important; }
  .geo-title .atlas-reading-image { max-width: 24rem; }
}
@media (max-width:600px) {
  .atlas-scene [data-geo-guide] :is(.geo-links button,.geo-link-list > li > button) { min-height: 42px !important; }
}
.atlas-person-group {
  max-inline-size: 100%;
  flex: 0 1 auto;
}
/* The world archive uses the same warm paper, leather and wood as the club. */
html[data-build="5"] body[data-public-club="true"][data-public-view="glossary"] #publicClub {
  --public-player-scene: url('/assets/ui/player-backgrounds/glossary-archive.webp');
}
html[data-build="5"] body[data-role][data-screen="glossary"] > .game-shell > .player-scene-background {
  background-image: url('/assets/ui/player-backgrounds/glossary-archive.webp') !important;
  background-position: center !important;
  background-size: cover !important;
}
html[data-build="5"] body[data-role][data-screen="glossary"] > .game-shell > .player-scene-background,
html[data-build="5"] body[data-public-club="true"][data-public-view="glossary"] #publicClub .public-scene-background {
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
}
html[data-build="5"] body[data-role][data-screen="glossary"] > .game-shell > .player-scene-background::after,
html[data-build="5"] body[data-public-club="true"][data-public-view="glossary"] #publicClub .public-scene-background::after {
  content: none !important;
}
html[data-build="5"] body[data-role][data-screen="glossary"] > .game-shell > .hud-bar {
  backdrop-filter: none !important;
}
html[data-build="5"] body[data-public-club="true"] #publicClub .public-glossary-overlay{position:fixed!important;inset:0!important;z-index:610!important}
html[data-build="5"] body[data-public-club="true"] #publicClub .world-glossary.world-glossary.atlas-scene.atlas-reader-only{min-height:0!important;height:0!important;border:0!important;background:none!important;box-shadow:none!important}
@media(max-width:820px){html[data-build="5"] body[data-public-club="true"] #publicClub:has([data-public-glossary-scene] .atlas-reader-backdrop) .public-mobile-nav{display:none!important}}
html[data-build="5"] body[data-public-club="true"] #publicClub .public-page-glossary{height:100%!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene{--atlas-ink:#3d2b1d!important;--atlas-muted:#765d42!important;--atlas-line:#b5935f!important;--atlas-paper:#f3e2bd!important;position:relative!important;isolation:isolate!important;display:block!important;width:100%!important;height:auto!important;min-height:580px!important;max-height:none!important;padding:0!important;overflow:visible!important;border:1px solid #755032!important;border-radius:8px!important;background:#f3e2bd url('/assets/ui/paper-grain.svg') repeat!important;color:var(--atlas-ink)!important;font:17px/1.65 Georgia,'Times New Roman',serif!important;box-shadow:0 12px 32px #301b1640!important;border-image:none!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene *{box-sizing:border-box!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene :is(h1,h2,h3,h4,p,small,strong,span,label,summary,details,time,input,button,a,em){text-shadow:none!important;color:inherit!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene :is(h1,h2,h3,h4){font-family:Georgia,'Times New Roman',serif!important;font-weight:600!important;line-height:1.2!important;text-transform:none!important;letter-spacing:normal!important;overflow-wrap:anywhere!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene h1{font-size:clamp(30px,3vw,43px)!important;margin:7px 0 12px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene h2{font-size:32px!important;margin:0 0 20px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene h3{font-size:25px!important;margin:0 0 18px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene h4{font-size:21px!important;margin:0 0 12px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene p{font:17px/1.8 Georgia,'Times New Roman',serif!important;margin:0 0 20px!important;max-width:none!important;overflow-wrap:anywhere!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene :is(button,input,select){border-image:none!important;box-shadow:none!important;text-transform:none!important;letter-spacing:normal!important;min-width:0!important;font:15px/1.35 Georgia,'Times New Roman',serif!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene button{height:auto!important;min-height:42px!important;padding:9px 15px!important;border:1px solid #af8b54!important;border-radius:4px!important;background:#f5e6c8 url('/assets/ui/paper-grain.svg') repeat!important;color:#4a301b!important;cursor:pointer!important;white-space:normal!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene button:hover{background-color:#e7cfa1!important;border-color:#805532!important;color:#2b1b10!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene :is(button,input,select,a,summary):focus-visible{outline:3px solid #8c5b2d!important;outline-offset:3px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene a{color:#795126!important;text-decoration:underline!important;text-underline-offset:3px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene img{display:block!important;max-width:100%!important;border-radius:0!important;filter:none!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-top-tabs{position:relative!important;z-index:2!important;display:flex!important;align-items:center!important;gap:4px!important;min-height:66px!important;padding:10px 18px!important;overflow-x:auto!important;background:linear-gradient(0deg,#301b13bb,#5a3926aa),url('/assets/ui/paper-grain.svg') repeat!important;border-bottom:3px double #ae8350!important;border-radius:7px 7px 0 0!important;color:#f8e6c5!important;scrollbar-width:thin!important;scrollbar-color:#be9860 #41291a!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-top-tabs button{flex:none!important;border-color:transparent!important;background:transparent!important;color:#f4dfbc!important;white-space:nowrap!important;font-size:16px!important;padding:10px 14px!important;min-height:43px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-top-tabs button[aria-selected=true]{border-color:#cfac72!important;background:#ead2a4!important;color:#472d1d!important;box-shadow:inset 0 1px 2px #fff7!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-top-tabs button:hover{border-color:#cfac7299!important;background:#c3a06b33!important;color:#fff0cf!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-top-tabs button[aria-selected=true]:hover{background:#f5dfb7!important;color:#472d1d!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-top-spacer{flex:1!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-eyebrow{display:block!important;font:12px/1.5 system-ui,sans-serif!important;text-transform:uppercase!important;letter-spacing:.13em!important;color:#785634!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-catalog-heading,html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-geography-heading{position:static!important;display:flex!important;justify-content:space-between!important;align-items:center!important;gap:20px!important;padding:28px 34px 23px!important;border-bottom:1px solid #b5935f88!important;background:linear-gradient(110deg,#f7ebd480,#e6cfa155)!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-catalog-heading p{font-size:17px!important;margin:0!important;color:#765d42!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-catalog-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-catalog-layout{position:static!important;display:block!important;min-width:0!important;padding:24px 32px 38px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-catalog{overflow:visible!important;min-width:0!important;padding:0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-catalog-tools{display:flex!important;align-items:end!important;flex-wrap:wrap!important;gap:14px!important;margin:0 0 18px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-search{display:flex!important;align-items:center!important;gap:10px!important;flex:1 1 280px!important;max-width:640px!important;padding:0 14px!important;min-height:47px!important;border:1px solid #ab8858!important;border-radius:4px!important;background:#fff7e5!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-search>span{font:27px/1 Georgia!important;color:#8e6537!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-search input{height:45px!important;min-height:45px!important;min-width:0!important;width:100%!important;border:0!important;outline-offset:0!important;background:transparent!important;background-image:none!important;padding:6px 0!important;color:#49301c!important;font-size:16px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-search input::placeholder{color:#8c755a!important;opacity:1!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-catalog-select{display:grid!important;gap:4px!important;font:13px/1.4 system-ui,sans-serif!important;color:#765d42!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-catalog-select select{width:auto!important;max-width:220px!important;min-height:44px!important;padding:8px 30px 8px 10px!important;border:1px solid #ab8858!important;background:#fff7e5!important;color:#49301c!important;border-radius:4px!important;font-size:15px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-catalog-filters{display:flex!important;gap:5px!important;flex-wrap:wrap!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-catalog-filters button[aria-pressed=true]{background:#795235!important;color:#fff0cd!important;border-color:#62422b!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-catalog-count,html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-catalog-note{font:14px/1.6 system-ui,sans-serif!important;color:#765d42!important;margin:12px 0 20px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(245px,1fr))!important;gap:23px!important;align-items:stretch!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-record-card{position:relative!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;min-width:0!important;min-height:0!important;padding:0!important;overflow:hidden!important;text-align:left!important;border:1px solid #b08d5d!important;background:#f9edd4 url('/assets/ui/paper-grain.svg') repeat!important;box-shadow:0 3px 9px #5b3a211a!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-record-card:hover{background-color:#fff4de!important;border-color:#805532!important;box-shadow:0 7px 18px #5b3a2133!important;transform:translateY(-2px)!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-art{position:relative!important;display:grid!important;place-items:center!important;width:100%!important;height:230px!important;overflow:hidden!important;background:#68472f!important;color:#e8cd97!important;font-size:76px!important;border-bottom:2px solid #9b7647!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-art img{width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;object-position:center 20%!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-text{display:flex!important;flex:1!important;flex-direction:column!important;gap:10px!important;padding:20px 21px 12px!important;min-width:0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-text small{font:12px/1.5 system-ui,sans-serif!important;color:#82613d!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-text strong{font:600 23px/1.2 Georgia,serif!important;color:#4a2e1a!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-text>span{font:16px/1.65 Georgia,serif!important;color:#6a5139!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-text time{font:600 13px/1.5 system-ui,sans-serif!important;color:#87542d!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-text em{font:13px/1.5 system-ui,sans-serif!important;color:#7b623f!important;margin-top:auto!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-arrow{align-self:flex-end!important;padding:5px 21px 17px!important;font:13px/1.3 system-ui,sans-serif!important;color:#785634!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-catalog-empty{padding:45px 20px!important;text-align:center!important;border-top:1px solid #b5935f66!important;color:#765d42!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-tabs{display:flex!important;gap:10px!important;padding:17px 32px 0!important;flex-wrap:wrap!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-tabs button{min-width:120px!important;font-size:17px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-tabs button[aria-selected=true]{background:#795235!important;color:#fff0cd!important;border-color:#62422b!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-article{border:1px solid #b5935f!important;background:#f9edd4!important;overflow:hidden!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-cover{position:relative!important;min-height:340px!important;display:flex!important;align-items:end!important;isolation:isolate!important;background:#5c452d!important;color:#fff0cf!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-cover img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;z-index:-2!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-cover:after{content:''!important;position:absolute!important;inset:0!important;background:linear-gradient(transparent 20%,#24150de8)!important;z-index:-1!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-cover>div{padding:100px 40px 30px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-cover small{font:12px/1.6 system-ui,sans-serif!important;letter-spacing:.14em!important;text-transform:uppercase!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-cover h2{font-size:40px!important;margin:9px 0 12px!important;color:#fff0cf!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-cover p{color:#e9d3ad!important;margin:0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-prose{max-width:1000px!important;margin:0 auto!important;padding:36px 45px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-book-intro{display:flex!important;gap:24px!important;align-items:center!important;padding:20px 0 30px!important;border-bottom:3px double #b5935f!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-book-intro>span{font:80px/1 Georgia!important;color:#956d3c!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-book-intro h2{margin:0 0 12px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-book-intro p{margin:0!important;color:#765d42!important;max-width:900px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-book-group{padding:30px 0!important;border-bottom:1px solid #b5935f77!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-book-group>h2{font-size:27px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-book-chapters{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important;gap:16px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-book-chapters .atlas-record-card{display:block!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-book-chapters .atlas-card-art{display:none!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-book-chapters .atlas-card-text{padding:20px 24px 10px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-book-references{margin-top:20px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-book-references h3{font-size:17px!important;color:#765d42!important;margin:0 0 10px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-book-references button{margin:0 8px 8px 0!important;background:transparent!important;min-height:37px!important;font-size:14px!important;padding:7px 11px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-breadcrumbs{position:static!important;display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important;max-width:65%!important;justify-content:flex-end!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-breadcrumbs button{font-size:15px!important;min-height:40px!important;padding:8px 13px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-geography-controls{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:14px 32px!important;background:#e8d3ae66!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-modes{position:static!important;display:flex!important;gap:6px!important;flex-wrap:wrap!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-modes button{font-size:14px!important;min-height:37px!important;padding:8px 13px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-modes button[aria-pressed=true]{background:#795235!important;color:#fff0cd!important;border-color:#62422b!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-author-tools{margin-left:auto!important;font:14px/1.5 system-ui,sans-serif!important;color:#6e4e30!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-author-tools summary{cursor:pointer!important;padding:9px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-author-tools>div{display:flex!important;flex-wrap:wrap!important;gap:6px!important;padding:8px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-stage{position:relative!important;height:clamp(420px,67svh,800px)!important;margin:0 20px!important;border:6px solid #745035!important;outline:1px solid #a17e51!important;background:#cab587!important;box-shadow:inset 0 0 30px #4b301b55,0 5px 10px #5b3a2122!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-map-frame{position:absolute!important;inset:0!important;overflow:hidden!important;background:#cbb68b!important;cursor:grab!important;outline:none!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-map-frame:active{cursor:grabbing!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-map-frame:focus-visible{outline:3px solid #b08749!important;outline-offset:-5px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-map{display:block!important;width:100%!important;height:100%!important;max-height:none!important;touch-action:none!important;user-select:none!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-map-toolbar{position:absolute!important;right:18px!important;bottom:18px!important;display:flex!important;gap:5px!important;padding:4px!important;background:#f2e0b9e8!important;border:1px solid #8d673b!important;border-radius:5px!important;box-shadow:0 3px 9px #39211455!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-map-toolbar button{width:40px!important;min-height:40px!important;font-size:24px!important;padding:3px!important;background:transparent!important;border:0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-compass{position:absolute!important;left:22px!important;bottom:20px!important;text-align:center!important;pointer-events:none!important;color:#efd6a2!important;filter:drop-shadow(0 2px 3px #302218)!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-compass span{display:block!important;font:11px/1.3 Georgia!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-compass b{display:block!important;font:55px/1 Georgia!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-caption{position:static!important;display:flex!important;justify-content:space-between!important;align-items:center!important;gap:18px!important;padding:15px 28px 21px!important;font:12px/1.5 system-ui,sans-serif!important;color:#765d42!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-legend{display:grid!important;gap:3px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-legend>span{letter-spacing:.1em!important;font-size:11px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-legend small{font-size:11px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-region{fill:transparent!important;stroke:#ecd2a555!important;stroke-width:1.2!important;stroke-dasharray:4 6!important;cursor:pointer!important;transition:fill .15s!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-region:hover,html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-region:focus,html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-region.selected{fill:#ffe5a72b!important;stroke:#ffe6b1!important;stroke-width:2.5!important;outline:none!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-region-label{font:small-caps 20px Georgia,serif!important;letter-spacing:2px!important;fill:#f9eaca!important;paint-order:stroke!important;stroke:#3b2a20!important;stroke-width:3px!important;pointer-events:none!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-object-label{font:15px Georgia,serif!important;fill:#fff0c5!important;paint-order:stroke!important;stroke:#39291e!important;stroke-width:4!important;stroke-linejoin:round!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-marker-halo{fill:#d5b36a15!important;stroke:#c6ab5d55!important;stroke-width:1!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-marker-disc{fill:#21352f!important;stroke:#e3bf79!important;stroke-width:2!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-marker-icon{fill:none!important;stroke:#ffe3a5!important;stroke-width:1.5!important;stroke-linejoin:round!important;stroke-linecap:round!important;pointer-events:none!important}
.atlas-index-symbol svg {
  display: block;
  width: 26px;
  height: 26px;
  background: #21352f;
  border: 1px solid #b5935f;
  border-radius: 50%;
}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-object{cursor:pointer!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-object-label{font-size:11px!important;opacity:0!important;pointer-events:none!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-object-city .atlas-object-label{font-size:15px!important;opacity:1!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-object:hover .atlas-object-label,html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-object:focus .atlas-object-label,html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-object.active .atlas-object-label{opacity:1!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-object:hover .atlas-marker-halo,html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-object:focus .atlas-marker-halo,html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-object.active .atlas-marker-halo{fill:#f5db8630!important;stroke:#ffe3a0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-region-sheet-title{font:25px Georgia,serif!important;letter-spacing:.04em!important;fill:#f3dfb3!important;paint-order:stroke!important;stroke:#503d2f!important;stroke-width:2px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-region-sheet-note{font:10px system-ui,sans-serif!important;letter-spacing:.15em!important;fill:#dbc59b!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-district-label{font:small-caps 20px Georgia!important;fill:#f4d89a!important;opacity:.7!important;letter-spacing:2px!important;pointer-events:none!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-vertex{fill:#ffe9b0!important;stroke:#a44c30!important;stroke-width:2!important;cursor:move!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-geography-article{padding:38px clamp(24px,6vw,85px) 50px!important;margin:0 auto!important;max-width:1180px!important;border-top:3px double #b5935f!important;background:transparent!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-record-hero{display:flex!important;gap:35px!important;align-items:start!important;margin-bottom:30px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-record-hero figure{flex:0 0 32%!important;max-width:310px!important;margin:0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-record-hero figure img{width:100%!important;height:auto!important;aspect-ratio:4/5!important;object-fit:contain!important;object-position:center!important;border:5px solid #785338!important;box-shadow:0 5px 16px #4d301c33!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-record-hero figcaption{font:11px/1.5 system-ui,sans-serif!important;color:#826749!important;text-align:center!important;margin-top:8px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-record-intro{flex:1!important;min-width:0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-record-intro h2{font-size:clamp(29px,3vw,42px)!important;margin:9px 0 22px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-article-lead{font-size:18px!important;line-height:1.8!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-note,html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-hero-identity{font:14px/1.7 system-ui,sans-serif!important;color:#826749!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-publication-badge{display:inline-block!important;font:12px/1.5 system-ui,sans-serif!important;color:#7c532b!important;border:1px solid #b5935f!important;border-radius:3px!important;padding:5px 9px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-date{display:block!important;margin:0 0 20px!important;padding:9px 0!important;border-top:1px solid #b5935f77!important;border-bottom:1px solid #b5935f77!important;font:600 15px/1.4 system-ui,sans-serif!important;color:#80542d!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-reading-actions,html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-reading-links,html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-journal-maplinks{display:flex!important;gap:8px!important;flex-wrap:wrap!important;margin:18px 0 0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-reading-section{padding:28px 0!important;border-top:1px solid #b5935f77!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-reading-section>header{display:flex!important;justify-content:space-between!important;align-items:start!important;gap:15px!important;margin-bottom:18px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-reading-section>header h3{margin:0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-reading-section>header button{font-size:13px!important;padding:7px 10px!important;min-height:35px!important;flex:none!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-prose-block{margin:25px 0 30px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-reading-links button{font-size:14px!important;background:transparent!important;min-height:37px!important;padding:7px 11px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-connections{margin-top:28px!important;padding-top:24px!important;border-top:1px solid #b5935f77!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-connections>div{display:flex!important;gap:8px!important;flex-wrap:wrap!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-source{display:flex!important;align-items:baseline!important;gap:6px 15px!important;flex-wrap:wrap!important;margin:20px 0!important;color:#8b6b43!important;font:12px/1.6 system-ui,sans-serif!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-source a{color:#795126!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-local-material{font:13px/1.6 system-ui,sans-serif!important;color:#8b6b43!important;margin-top:25px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-reader-backdrop{position:fixed!important;z-index:600!important;inset:0!important;display:grid!important;place-items:center!important;padding:24px!important;background:#25160ec7!important;backdrop-filter:blur(5px)!important;overscroll-behavior:contain!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-reader{display:flex!important;flex-direction:column!important;position:relative!important;width:min(1100px,100%)!important;height:auto!important;max-height:calc(100svh - 48px)!important;min-height:240px!important;overflow:hidden!important;border:5px solid #765137!important;border-radius:7px!important;background:#f6e6c7 url('/assets/ui/paper-grain.svg') repeat!important;box-shadow:0 22px 80px #160d0b99!important;color:#3d2b1d!important;outline:none!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-reader-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;padding:10px 18px 10px 28px!important;background:#62412c!important;border-bottom:2px solid #a7814d!important;color:#f5e1bc!important;flex:0 0 auto!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-reader-toolbar>span{font:15px/1.4 Georgia,serif!important;letter-spacing:.04em!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-reader-toolbar button{background:transparent!important;color:#f5e1bc!important;border:1px solid #b5966a!important;min-width:42px!important;min-height:42px!important;font-size:29px!important;padding:0!important;line-height:1!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-reader-toolbar button:hover{background:#e2c18c!important;color:#472d1d!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-reader-body{overflow:auto!important;min-height:0!important;overscroll-behavior:contain!important;padding:38px 48px 45px!important;scrollbar-width:thin!important;scrollbar-color:#aa8657 #f6e6c7!important;color-scheme:light!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-journal{position:static!important;display:block!important;width:auto!important;height:auto!important;max-height:none!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;padding:0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-journal-heading{display:flex!important;align-items:start!important;justify-content:space-between!important;gap:20px!important;padding:0 0 24px!important;border-bottom:3px double #b5935f!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-journal-heading h2{font-size:36px!important;margin:10px 0 0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-journal-heading button{font-size:14px!important;flex:none!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-journal-pages{overflow:visible!important;padding:28px 0 12px!important;max-width:900px!important;margin:auto!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-journal-lead{font-size:21px!important;color:#795a38!important;font-style:italic!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-journal-block{padding:22px 0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-journal-pager{display:flex!important;justify-content:space-between!important;gap:20px!important;padding:25px 0 0!important;border-top:1px solid #b5935f!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-journal-pager button{max-width:46%!important;font-size:15px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-achievements{padding:20px 0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-achievements ul{padding-left:22px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-private-notes{margin-top:20px!important;padding:18px!important;border:1px solid #b5935f!important;background:#e5d0a866!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-private-notes summary{cursor:pointer!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-error{position:static!important;padding:20px!important;border:1px solid #a35e42!important;background:#e9c6a8!important;color:#70381f!important;margin:20px!important}
@media(max-width:900px){
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-top-tabs{padding:8px!important;gap:0!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-top-tabs button{padding:9px 11px!important;font-size:15px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-catalog-heading,html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-geography-heading{padding:24px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-geography-heading{align-items:start!important;flex-direction:column!important;gap:9px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-breadcrumbs{max-width:100%!important;justify-content:start!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-grid{grid-template-columns:repeat(auto-fill,minmax(225px,1fr))!important;gap:18px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-catalog-layout{padding:22px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-reader-body{padding:30px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-record-hero{gap:25px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-record-hero figure{flex-basis:33%!important}
}
@media(max-width:600px){
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene{min-height:460px!important;border-radius:4px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene h1{font-size:31px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-top-tabs{min-height:58px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-top-tabs button{font-size:14px!important;min-height:40px!important;padding:8px 10px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-catalog-heading{align-items:start!important;flex-direction:column!important;padding:23px 18px!important;gap:14px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-catalog-heading p{font-size:16px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-catalog-layout{padding:20px 15px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-art{height:175px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-text{padding:15px 12px 8px!important;gap:8px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-text strong{font-size:20px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-text>span{font-size:14px!important;line-height:1.6!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-text small{font-size:11px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-arrow{padding:7px 12px 14px!important;font-size:12px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-catalog-tools{gap:12px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-search{flex-basis:100%!important;max-width:none!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-catalog-select{max-width:calc(50% - 6px)!important;flex:1!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-catalog-select select{max-width:100%!important;font-size:14px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-tabs{padding:15px 15px 0!important;gap:6px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-tabs button{min-width:0!important;flex:1!important;font-size:16px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-cover{min-height:290px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-cover>div{padding:90px 22px 24px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-cover h2{font-size:33px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-cover p{font-size:16px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-prose{padding:18px 22px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-book-intro{gap:13px!important;align-items:start!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-book-intro>span{font-size:53px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-book-intro h2{font-size:27px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-book-intro p{font-size:16px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-geography-heading{padding:20px 16px 16px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-breadcrumbs{gap:3px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-breadcrumbs button{font-size:13px!important;padding:7px 10px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-geography-controls{padding:12px 14px!important;flex-wrap:wrap!important;gap:8px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-modes{gap:4px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-modes button{font-size:13px!important;padding:7px 9px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-stage{height:53svh!important;min-height:330px!important;max-height:530px!important;margin:0 8px!important;border-width:4px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-compass{left:12px!important;bottom:12px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-compass b{font-size:40px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-map-toolbar{right:10px!important;bottom:10px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-caption{padding:14px!important;gap:10px!important;flex-wrap:wrap!important;font-size:11px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-caption>span:nth-last-child(2){order:3!important;width:100%!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-geography-article{padding:27px 22px 35px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-record-hero{display:block!important;margin-bottom:20px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-record-hero figure{width:65%!important;max-width:250px!important;margin:0 auto 26px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-record-intro h2{font-size:31px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-article-lead{font-size:18px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-reader-backdrop{padding:9px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-reader{max-height:calc(100svh - 18px)!important;border-width:3px!important;border-radius:5px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-reader-toolbar{padding:8px 11px 8px 18px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-reader-body{padding:25px 23px 32px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-reading-section>header{flex-wrap:wrap!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-reading-section>header h3{font-size:25px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-journal-heading{flex-wrap:wrap!important;gap:14px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-journal-heading h2{font-size:31px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-journal-lead{font-size:20px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-journal-pager{gap:12px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-journal-pager button{padding:8px 10px!important;font-size:14px!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-source{font-size:11px!important}
}
@media(max-width:370px){html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-grid{grid-template-columns:1fr!important}html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-art{height:250px!important}html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-reader-body{padding:24px 17px!important}html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-text strong{font-size:23px!important}}
@media(prefers-reduced-motion:reduce){html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene *{transition:none!important;animation:none!important;transform:none!important}}

}

.atlas-loading{min-height:500px;display:grid;place-content:center;text-align:center;color:#4b301f;background:#eedbb5 url('/assets/ui/paper-grain.svg') repeat}.atlas-loading>div{font-size:80px}.atlas-loading h1{font:42px Georgia,serif}.world-editor-form{display:grid;gap:14px;padding:20px}.world-editor-form label{display:grid;gap:6px}.world-editor-form :is(input,textarea,select){width:100%;box-sizing:border-box}.world-editor-form input[type=checkbox]{width:auto}.world-editor-form label:has(input[type=checkbox]){display:flex;align-items:center}.world-editor-form select[multiple]{min-height:120px}.world-editor-preview{width:180px;max-height:200px;object-fit:contain}.world-editor-help{font-size:14px}.world-editor-recovery{padding:16px;border:1px solid #b5935f;background:#f6e6c7}.world-editor-recovery[hidden]{display:none}.world-editor-recovery-actions{display:flex;gap:8px;flex-wrap:wrap}

@layer shell {
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-related-object{display:flex!important;align-items:center!important;gap:10px!important;padding:7px 12px!important;max-width:100%!important;text-align:left!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-related-object img{width:40px!important;height:46px!important;max-height:none!important;object-fit:cover!important;object-position:top!important;border:1px solid #b5935f!important;flex:0 0 40px!important}
}

/* Original article illustrations and readable rule tables. */
.world-glossary .atlas-reading-image{margin:24px 0}.world-glossary .atlas-reading-image a{display:block}.world-glossary .atlas-reading-image img{display:block;width:auto;max-width:100%;height:auto;max-height:900px;object-fit:contain;margin:auto;border:1px solid #a27a45;border-radius:4px;background:#eee0be}.world-glossary .atlas-reading-image figcaption{font-size:13px;line-height:1.6;color:#674a2a;margin-top:8px;text-align:center}

/* An unillustrated resident stays readable as an index entry, rather than a tall empty portrait. */
@layer shell {
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-article{display:grid!important;grid-template-columns:280px minmax(0,1fr)!important;gap:26px!important;align-items:start!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-welcome{display:grid!important;gap:20px!important;min-width:0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-welcome .atlas-guild-cover{min-height:270px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-welcome .atlas-guild-cover>div{padding:24px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-welcome h2{font-size:27px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-welcome .atlas-newcomer{display:block!important;padding:20px!important;margin:0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-welcome .atlas-newcomer ol{grid-template-columns:minmax(0,1fr)!important;gap:16px!important;padding:0!important;margin:20px 0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-article .atlas-guild-prose{padding:0!important;max-width:none!important;width:100%!important;margin:0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-article .atlas-topics-intro{margin-bottom:18px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-article .atlas-topics-intro h2{font-size:28px!important;margin:8px 0 12px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-article .atlas-topic-image{height:120px!important}
@media(max-width:1050px){
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-article{display:flex!important;flex-direction:column!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-welcome{display:contents!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-welcome .atlas-guild-cover{order:0!important;min-height:190px!important;width:100%!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-article .atlas-guild-prose{order:1!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-welcome .atlas-newcomer{order:2!important}
}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene.atlas-catalog-view:has([data-world-section="residents"][aria-selected="true"]) .atlas-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene.atlas-catalog-view:has([data-world-section="residents"][aria-selected="true"]) .atlas-record-card:has(.atlas-image-note){display:grid!important;grid-template-columns:82px minmax(0,1fr)!important;align-content:start!important;padding:16px!important;column-gap:17px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene.atlas-catalog-view:has([data-world-section="residents"][aria-selected="true"]) .atlas-record-card:has(.atlas-image-note) .atlas-card-art{width:82px!important;height:108px!important;grid-row:1/3!important;border:1px solid #a7814d!important;border-radius:3px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene.atlas-catalog-view:has([data-world-section="residents"][aria-selected="true"]) .atlas-record-card:has(.atlas-image-note) .atlas-card-text{padding:0!important;min-width:0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene.atlas-catalog-view:has([data-world-section="residents"][aria-selected="true"]) .atlas-record-card:has(.atlas-image-note) .atlas-card-text strong{font-size:23px!important;margin:6px 0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene.atlas-catalog-view:has([data-world-section="residents"][aria-selected="true"]) .atlas-record-card:has(.atlas-image-note) .atlas-card-text>span{display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene.atlas-catalog-view:has([data-world-section="residents"][aria-selected="true"]) .atlas-record-card:has(.atlas-image-note) .atlas-card-arrow{grid-column:2!important;padding:12px 0 0!important}
@media(max-width:1000px){html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene.atlas-catalog-view:has([data-world-section="residents"][aria-selected="true"]) .atlas-card-grid{grid-template-columns:minmax(0,1fr)!important}}
}

@layer shell {
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-context{font-size:18px!important;margin:0 0 30px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-chapters>p{font-size:16px!important;color:#765d42!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-chapters>div{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))!important;gap:14px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-chapter{display:flex!important;justify-content:space-between!important;gap:18px!important;padding:20px!important;text-align:left!important;align-items:start!important;min-height:120px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-chapter>span:first-child{display:grid!important;gap:9px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-chapter small{font:12px/1.4 system-ui,sans-serif!important;color:#82613d!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-chapter strong{font:600 23px/1.25 Georgia,serif!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-chapter>span>span{font:15px/1.6 Georgia,serif!important;color:#765d42!important}
}

/* A local reader must escape both shell stacking contexts; guarded editors stay at 100. */
@layer shell {
 html[data-build="5"] body[data-role] .game-shell:has(#app .world-glossary [data-world-reader]),
 html[data-build="5"] body[data-role] .game-stage:has(#app .world-glossary [data-world-reader]),
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub):has(.world-glossary [data-world-reader]){position:relative!important;z-index:80!important}
 html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene:has([data-world-reader]){z-index:80!important}
}

/* Codex navigation: bounded map reading and illustrated topic drilldown. */
@layer shell {
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-geography-heading{padding:17px 26px!important;display:block!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-geography-heading p{margin:0!important;font:17px/1.55 Georgia,serif!important;color:#63482e!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-stage{display:grid!important;grid-template-columns:minmax(0,1fr)!important;height:clamp(480px,72svh,840px)!important;min-height:0!important;max-height:none!important;margin:0!important;border-width:4px!important;outline:0!important;overflow:hidden!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-stage.atlas-map-split{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-canvas{position:relative!important;min-width:0!important;min-height:0!important;overflow:hidden!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-top{position:absolute!important;left:14px!important;top:14px!important;right:14px!important;display:grid!important;justify-items:start!important;gap:8px!important;pointer-events:none!important;z-index:3!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-top>nav,.atlas-map-top>.atlas-map-modes{pointer-events:auto!important;background:#f5e6c9f5!important;box-shadow:0 3px 13px #261a1a40!important;border:1px solid #a27a45!important;border-radius:5px!important;padding:4px!important;max-width:100%!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-breadcrumbs{justify-content:start!important;gap:1px!important;max-width:100%!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-breadcrumbs button{font:14px/1.35 Georgia,serif!important;padding:8px!important;min-height:38px!important;background:transparent!important;border-color:transparent!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-breadcrumbs [aria-current="page"]{font-weight:700!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-modes{gap:3px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-modes button{padding:7px 9px!important;min-height:38px!important;font-size:13px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-utilities{position:absolute!important;left:14px!important;bottom:16px!important;display:flex!important;gap:7px!important;align-items:end!important;z-index:5!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-utilities>button,.atlas-author-tools{background:#f5e6c9f5!important;border:1px solid #a27a45!important;border-radius:5px!important;box-shadow:0 3px 10px #261a1a40!important;color:#49301c!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-utilities>button{min-height:44px!important;padding:10px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-author-tools{position:relative!important;margin:0!important;max-width:250px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-author-tools[open]>div{position:absolute!important;left:0!important;bottom:46px!important;min-width:220px!important;max-width:calc(100vw - 70px)!important;background:#f5e6c9!important;border:1px solid #a27a45!important;box-shadow:0 3px 15px #261a1a55!important;border-radius:5px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-index{position:absolute!important;left:14px!important;top:120px!important;bottom:75px!important;width:min(340px,calc(100% - 28px))!important;overflow:auto!important;overscroll-behavior:contain!important;padding:14px!important;z-index:4!important;border:1px solid #a27a45!important;background:#f7e9cffa!important;box-shadow:0 8px 28px #261a1a66!important;border-radius:5px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-index .atlas-search{width:100%!important;min-width:0!important;margin-bottom:12px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-index-row{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;padding:12px 8px!important;text-align:left!important;background:transparent!important;border:0!important;border-bottom:1px solid #b5935f66!important;min-height:48px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-index-row>span:nth-child(2){flex:1!important;display:grid!important;gap:3px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-index-row small{font:12px/1.3 system-ui,sans-serif!important;color:#6e4d2f!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-reading{display:flex!important;flex-direction:column!important;min-width:0!important;min-height:0!important;overflow:hidden!important;background:#f3e2bd url("/assets/ui/paper-grain.svg") repeat!important;border-left:3px double #9d7649!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-reading-toolbar{display:flex!important;align-items:center!important;gap:14px!important;flex:none!important;padding:12px 18px!important;background:#efdcbb!important;border-bottom:1px solid #b5935f!important;min-height:64px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-reading-toolbar button{min-height:42px!important;white-space:nowrap!important;background:#755035!important;color:#fff0ce!important;border-color:#654125!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-reading-toolbar>span{font:600 17px/1.3 Georgia,serif!important;overflow-wrap:anywhere!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-reading-body{flex:1!important;overflow:auto!important;min-height:0!important;overscroll-behavior:contain!important;scrollbar-width:thin!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-geography-article{padding:28px clamp(22px,3vw,42px) 45px!important;border-top:0!important;max-width:760px!important;width:100%!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-geography-article .atlas-record-hero{display:block!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-geography-article .atlas-record-intro h2{font-size:32px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-geography-article .atlas-article-lead{font-size:17px!important;line-height:1.75!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-edit-note{position:absolute!important;left:12px!important;right:12px!important;bottom:72px!important;background:#f5e6c9!important;padding:9px!important;font:13px/1.4 system-ui,sans-serif!important;border:1px solid #a27a45!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-map-toolbar{right:14px!important;bottom:16px!important;z-index:4!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-map-toolbar button{width:44px!important;min-height:44px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-subtabs{overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:thin!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-subtabs button{white-space:nowrap!important;flex:none!important;min-height:44px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,275px),1fr))!important;gap:22px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-tile{display:flex!important;flex-direction:column!important;padding:0!important;overflow:hidden!important;text-align:left!important;border:1px solid #ab8553!important;background:#f9edda!important;border-radius:6px!important;transition:box-shadow .15s ease!important;align-items:stretch!important;min-width:0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-tile:hover{box-shadow:0 7px 20px #5c391b24!important;border-color:#76502e!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-image{display:block!important;height:174px!important;position:relative!important;background:#795637!important;overflow:hidden!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-image img{display:block!important;object-fit:cover!important;width:100%!important;height:100%!important;max-height:none!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-image>small{position:absolute!important;left:12px!important;bottom:12px!important;padding:4px 8px!important;background:#35251dd9!important;color:#fce9c6!important;font:13px/1.4 system-ui,sans-serif!important;border:1px solid #d9bc86!important;border-radius:3px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-copy{display:grid!important;grid-template-rows:auto 1fr auto!important;gap:10px!important;padding:20px 22px!important;flex:1!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-copy>strong{font:600 24px/1.2 Georgia,serif!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-copy>span{font:16px/1.6 Georgia,serif!important;color:#694b31!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-copy>small{display:flex!important;justify-content:space-between!important;font:12px/1.4 system-ui,sans-serif!important;color:#795735!important;margin-top:6px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-heading{display:grid!important;gap:22px!important;border-bottom:1px solid #b5935f!important;padding:0 0 24px!important;margin-bottom:10px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-heading>button{justify-self:start!important;min-height:44px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-heading h2{margin:8px 0 12px!important;font-size:34px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-heading p{margin:0!important;max-width:65ch!important;color:#694b31!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-contents-list{display:grid!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-contents-row{display:flex!important;align-items:center!important;gap:20px!important;text-align:left!important;width:100%!important;padding:22px 8px!important;border:0!important;border-bottom:1px solid #b5935f77!important;background:transparent!important;border-radius:0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-contents-row>span:nth-child(2){display:grid!important;gap:7px!important;flex:1!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-contents-row strong{font:600 23px/1.25 Georgia,serif!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-contents-row>span>span{font:16px/1.6 Georgia,serif!important;color:#715337!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-contents-number{font:18px/1.3 Georgia,serif!important;color:#85613d!important;min-width:28px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-newcomer{padding:28px!important;margin:0 0 42px!important;border:1px solid #b5935f!important;background:#faf0da!important;border-radius:5px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-newcomer h2{font-size:29px!important;margin:8px 0 12px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-newcomer ol{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important;margin:22px 0!important;padding:0!important;list-style:none!important;counter-reset:arrival!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-newcomer li{display:grid!important;gap:7px!important;position:relative!important;padding-top:40px!important;counter-increment:arrival!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-newcomer li:before{content:counter(arrival)!important;position:absolute!important;top:0!important;left:0!important;width:28px!important;height:28px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:#765035!important;color:#ffeac5!important;font:14px/1 system-ui,sans-serif!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-newcomer li strong{font:600 20px/1.25 Georgia,serif!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-newcomer li span{font:15px/1.6 Georgia,serif!important;color:#694b31!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topics-intro{margin:0 0 23px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topics-intro h2{margin:8px 0 12px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-entity-intro{display:grid!important;grid-template-columns:190px minmax(0,1fr)!important;gap:24px!important;align-items:center!important;margin:20px 0 26px!important;padding:16px!important;background:#e7d1ab77!important;border:1px solid #b5935f88!important;border-radius:5px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-entity-intro img{width:190px!important;height:110px!important;object-fit:cover!important;border-radius:3px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-entity-intro p{margin:0!important;font-size:17px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-entity-group{border-top:1px solid #b5935f!important;margin:0 0 26px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-entity-group>h2{margin:0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-entity-group>h2>button{display:flex!important;gap:16px!important;align-items:center!important;justify-content:space-between!important;width:100%!important;min-height:70px!important;padding:18px 4px!important;background:transparent!important;border:0!important;text-align:left!important;font:600 25px/1.3 Georgia,serif!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-entity-group>h2>button>span:first-child{flex:1!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-entity-group>h2>button small{font:14px/1.4 system-ui,sans-serif!important;border:1px solid #b5935f!important;border-radius:18px!important;padding:3px 10px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-entity-group>[hidden]{display:none!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-resident-group{margin:26px 0 40px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-resident-group>h2{font-size:25px!important;padding-bottom:14px!important;border-bottom:1px solid #b5935f!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-resident-group>h2 small{font:14px/1 system-ui,sans-serif!important;color:#795735!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-entity-facts{display:flex!important;gap:5px!important;flex-wrap:wrap!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-entity-facts>span{padding:3px 6px!important;background:#e5cfaa!important;border-radius:3px!important;font:11px/1.4 system-ui,sans-serif!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-book-intro{padding:0 0 23px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-book-intro p{margin:0!important;color:#694b31!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,225px),1fr))!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-art{height:205px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-text{padding:17px 17px 12px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-text strong{font-size:24px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-text>span{font-size:15px!important;line-height:1.6!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene :is(button,input,select,a,summary):focus-visible{outline:3px solid #0c6866!important;outline-offset:3px!important}
@media(max-width:900px){
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-stage{height:clamp(450px,72svh,780px)!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-stage.atlas-map-split{grid-template-columns:minmax(0,1fr)!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-reading{position:absolute!important;inset:66px 0 0!important;z-index:8!important;border-left:0!important;border-top:3px double #9d7649!important;box-shadow:0 -8px 30px #271b1660!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-geography-heading{padding:14px 18px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-geography-heading p{font-size:15px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-prose{padding:24px 0 0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-guild-cover{min-height:270px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-grid{gap:16px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-newcomer{padding:22px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-newcomer ol{gap:16px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-newcomer li strong{font-size:18px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-geography-article{padding:26px 26px 38px!important}
}
@media(max-width:600px){
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-stage{height:70svh!important;min-height:400px!important;max-height:740px!important;border-width:3px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-top{left:8px!important;right:8px!important;top:8px!important;gap:5px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-breadcrumbs{gap:0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-breadcrumbs button{font-size:12px!important;padding:7px!important;min-height:38px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-modes button{font-size:12px!important;min-height:38px!important;padding:6px 9px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-utilities{left:8px!important;bottom:10px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-map-toolbar{right:8px!important;bottom:10px!important;gap:0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .world-map-toolbar button{width:39px!important;min-height:44px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-reading{inset:58px 0 0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-reading-toolbar{padding:9px 12px!important;gap:12px!important;min-height:60px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-reading-toolbar>span{font-size:15px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-map-index{left:8px!important;top:108px!important;bottom:72px!important;width:calc(100% - 16px)!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-grid{grid-template-columns:1fr!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-tile{display:grid!important;grid-template-columns:112px minmax(0,1fr)!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-image{height:100%!important;min-height:165px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-copy{padding:18px 16px!important;gap:8px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-copy>strong{font-size:22px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-copy>span{font-size:15px!important;line-height:1.5!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-copy>small{font-size:11px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-newcomer ol{grid-template-columns:1fr!important;gap:20px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-newcomer li{padding:0 0 0 42px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-newcomer li:before{top:0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-newcomer{margin-bottom:30px!important;padding:20px 18px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-heading h2{font-size:29px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-contents-row{gap:12px!important;padding:20px 0!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-contents-row strong{font-size:21px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-contents-row>span>span{font-size:15px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-entity-intro{grid-template-columns:95px minmax(0,1fr)!important;gap:14px!important;padding:11px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-entity-intro img{width:95px!important;height:120px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-entity-intro p{font-size:15px!important;line-height:1.55!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-entity-group>h2>button{font-size:22px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-art{height:170px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-text{padding:14px 12px 10px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-text strong{font-size:21px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-text>span{font-size:14px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-geography-article{padding:23px 18px 35px!important}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-geography-article .atlas-record-intro h2{font-size:29px!important}
}
@media(max-width:370px){html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-grid{grid-template-columns:1fr!important}html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-card-art{height:250px!important}html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-tile{grid-template-columns:88px minmax(0,1fr)!important}html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-topic-copy{padding:15px 12px!important}}
}

@layer shell {
.atlas-staff-label {
  display: inline-block;
  margin-block: .3rem .6rem;
  padding: .2rem .65rem;
  border: 1px solid #8c6143;
  border-radius: .25rem;
  color: #603925;
  background: #f3dfbd;
  font: 700 .84rem/1.15 system-ui, sans-serif;
}
.atlas-staff-block {
  margin-block: 1rem;
  padding: .85rem 1rem;
  border: 1px solid #a47b5d;
  border-inline-start: .3rem solid #8c6143;
  border-radius: .3rem;
  background: #ecdfc8;
}

.atlas-event-timeline {
  --chronicle-bg: #140f0d;
  --chronicle-ink: #ffefce;
  --chronicle-gold: #e7b96c;
  --chronicle-cell: 136px;
  --chronicle-thumb-height: calc((var(--chronicle-cell) - 12px) * .5625);
  --chronicle-rail: calc(20px + var(--chronicle-thumb-height));
  background: var(--chronicle-bg);
  border: 1px solid #845b36;
  border-radius: 7px;
  box-shadow: 0 16px 35px #42281441;
  color: var(--chronicle-ink);
  min-width: 0;
  overflow: hidden;
}

.atlas-surface > .atlas-event-timeline {
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
}

.chronicle-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.chronicle-empty {
  display: grid;
  align-content: center;
  min-height: 310px;
  padding: clamp(24px, 5vw, 64px);
  background: linear-gradient(95deg, #160e0df5, #23160e80), url('/assets/ui/atlas/event-archive.webp') center / cover;
}

.chronicle-catalog-bar {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 15px clamp(15px, 3vw, 36px);
  border-bottom: 1px solid #b5935f88;
  background: linear-gradient(110deg, #f7ebd480, #e6cfa155);
}

.chronicle-catalog-bar .chronicle-filters {
  flex: 1 1 260px;
  min-width: 0;
}

.chronicle-catalog-bar .atlas-catalog-actions { margin-inline-start: auto; }

.chronicle-catalog-bar + [data-world-timeline-results] {
  min-width: 0;
  padding: 12px clamp(15px, 3vw, 36px) 32px;
}

html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .chronicle-filters summary {
  display: inline-flex;
  align-items: center;
  gap: .75em;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid #ac8753;
  border-radius: 4px;
  background: #f8ebce;
  color: #583b24 !important;
  cursor: pointer;
  font: 600 15px/1.3 system-ui, sans-serif !important;
}

.chronicle-filters summary::marker { content: ''; }
.chronicle-filters summary::-webkit-details-marker { display: none; }

.chronicle-filters summary::after {
  content: '';
  width: .42em;
  height: .42em;
  margin-top: -.22em;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}

.chronicle-filters[open] summary::after {
  margin-top: .2em;
  transform: rotate(225deg);
}

html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .chronicle-filters .atlas-catalog-tools {
  margin: 12px 0 2px !important;
}

html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .chronicle-filters .atlas-guild-tabs {
  padding: 12px 0 0 !important;
}

.chronicle-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-block-size: clamp(420px, 52vw, 590px);
  padding: clamp(24px, 5vw, 68px);
  padding-block-end: clamp(30px, 5vw, 62px);
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  background: #241713 url('/assets/ui/atlas/event-archive.webp') center / cover no-repeat;
}

.chronicle-scene .chronicle-stage-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 44%;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity .54s ease-in-out, transform 1.05s ease-out;
  pointer-events: none;
}

.chronicle-scene .chronicle-stage-art.is-current {
  opacity: 1;
  transform: scale(1);
}

.chronicle-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, #110c0be8 0%, #170f0dc9 19%, #1a100d40 60%, transparent 82%),
    linear-gradient(90deg, #100c09cb, #140e0b54 57%, transparent 92%);
  pointer-events: none;
}

.chronicle-scene-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  gap: 14px;
  min-width: 0;
}

html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline .chronicle-event-title {
  max-width: 21ch !important;
  margin: 0 !important;
  color: #fff2d1 !important;
  font: 500 clamp(43px, 5.65vw, 82px)/1.025 Georgia, 'Times New Roman', serif !important;
  letter-spacing: -.035em !important;
  text-wrap: balance;
}

html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline .chronicle-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  max-width: min(100%, 50ch) !important;
  margin: 0 !important;
  overflow: hidden;
  color: #f0ddbd !important;
  font: 400 clamp(17px, 1.52vw, 22px)/1.52 Georgia, serif !important;
}

.chronicle-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 12px clamp(14px, 3vw, 38px) 6px;
  background: linear-gradient(#160f0df5, var(--chronicle-bg));
  border-block-start: 1px solid #a5754566;
}

html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline :is(.chronicle-read, .chronicle-arrow, .chronicle-overview) {
  min-height: 44px !important;
  border: 1px solid #9f7448 !important;
  border-radius: 3px !important;
  background: #261b15 !important;
  color: var(--chronicle-ink) !important;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline .chronicle-read {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 9px 18px !important;
  margin-block-start: 3px;
  border-color: #e1b573 !important;
  background: linear-gradient(110deg, #f4d49b, #dbac6e) !important;
  color: #241710 !important;
  font: 700 18px/1.25 Georgia, serif !important;
}

html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline .chronicle-read[hidden] { display: none !important; }

html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline .chronicle-arrow {
  display: grid;
  place-items: center;
  padding: 0 !important;
  width: 44px;
  font: 27px/1 Georgia, serif !important;
}

.chronicle-nav .chronicle-arrow:first-of-type { grid-column: 2; }
.chronicle-nav .chronicle-arrow:nth-of-type(2) { grid-column: 4; }

html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline .chronicle-arrow:disabled {
  opacity: .40;
  cursor: default !important;
}

html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline .chronicle-position {
  grid-column: 3;
  grid-row: 1;
  min-width: 5.5ch;
  text-align: center;
  color: #dfbd82 !important;
  font: 600 14px/1.35 system-ui, sans-serif !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap;
}

html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline .chronicle-position > strong {
  color: #fff0cf !important;
}

html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline .chronicle-overview {
  grid-column: 5;
  grid-row: 1;
  justify-self: end;
  padding: 9px 13px !important;
  background: #19120f !important;
  color: #f0d198 !important;
  font: 600 14px/1.25 system-ui, sans-serif !important;
}

html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline .chronicle-overview[aria-pressed="true"] {
  border-color: #d2a566 !important;
  background: #513527 !important;
  color: #ffebbc !important;
}

.chronicle-track-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #9a7449 #201712;
  scroll-padding-inline: 16px;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
}

.chronicle-track {
  position: relative;
  display: flex;
  inline-size: max-content;
  margin-inline: auto;
  padding: 0 16px 14px;
}

.chronicle-track::before {
  content: '';
  position: absolute;
  inset-block-start: var(--chronicle-rail);
  inset-inline: calc(var(--chronicle-cell) / 2 + 16px);
  block-size: 1px;
  background: #705032;
  pointer-events: none;
}

html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline button.chronicle-stop {
  position: relative;
  display: grid;
  flex: 0 0 var(--chronicle-cell);
  align-content: start;
  justify-items: stretch;
  grid-template-rows: var(--chronicle-thumb-height) auto;
  gap: 24px;
  inline-size: var(--chronicle-cell);
  min-inline-size: 0 !important;
  padding: 8px 6px 6px !important;
  border: 0 !important;
  background: transparent !important;
  text-align: center;
  scroll-snap-align: center;
}

.chronicle-stop::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset-block-start: calc(var(--chronicle-rail) - .5px);
  inset-inline-end: 50%;
  inline-size: 100%;
  block-size: 2px;
  pointer-events: none;
}

.chronicle-stop:not(:first-child):is([aria-pressed="true"], :has(~ .chronicle-stop[aria-pressed="true"]))::before {
  background: #dbab62;
  box-shadow: 0 0 9px #f5bc5c73;
}

.chronicle-stop::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset-block-start: calc(var(--chronicle-rail) - 2px);
  inset-inline-start: calc(50% - 2px);
  inline-size: 5px;
  block-size: 5px;
  border: 1px solid #c69858;
  border-radius: 50%;
  background: #352519;
  pointer-events: none;
}

.chronicle-stop[aria-pressed="true"]::after {
  inset-block-start: calc(var(--chronicle-rail) - 5px);
  inset-inline-start: calc(50% - 5px);
  inline-size: 11px;
  block-size: 11px;
  transform: rotate(45deg);
  border-color: #ffe2a4;
  border-radius: 1px;
  background: #f7cd84;
  box-shadow: 0 0 0 3px #251810, 0 0 16px 2px #e6ae538f;
}

.chronicle-thumb {
  display: block;
  overflow: hidden;
  border: 1px solid #6c4f35;
  border-radius: 3px;
  background: #35251a;
  transition: border-color .16s ease, box-shadow .16s ease;
}

html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline .chronicle-thumb > img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 45%;
  filter: brightness(.73) saturate(.76) !important;
  transition: filter .2s ease;
}

html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline .chronicle-stop-date {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-block-size: 2.5em;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: #cfb58c !important;
  font: 600 13px/1.25 system-ui, sans-serif !important;
}

.chronicle-stop[aria-pressed="true"] .chronicle-thumb {
  border-color: var(--chronicle-gold);
  box-shadow: 0 0 0 1px #c88d4f, 0 0 14px #ecaa4842;
}

html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline .chronicle-stop[aria-pressed="true"] .chronicle-stop-date {
  color: #ffe5a9 !important;
}

html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline .chronicle-stop[aria-pressed="true"] .chronicle-thumb > img {
  filter: none !important;
}

@media (hover: hover) {
  html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline :is(.chronicle-arrow, .chronicle-overview):not(:disabled):hover {
    background: #443025 !important;
    border-color: #e5b775 !important;
  }

  html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline .chronicle-read:hover {
    background: #ffe3ab !important;
    border-color: #fff0cd !important;
  }

  .chronicle-stop:hover .chronicle-thumb { border-color: #e6be85; }

  html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline .chronicle-stop:hover .chronicle-thumb > img {
    filter: none !important;
  }
}

html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline :is(.chronicle-read, .chronicle-arrow, .chronicle-overview, .chronicle-stop):focus-visible {
  outline: 2px solid #ffda93 !important;
  outline-offset: 2px !important;
}

html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline .chronicle-stop:focus-visible { outline-offset: -2px !important; }

@media (max-width: 720px) {
  .atlas-event-timeline { --chronicle-cell: 108px; }

  .chronicle-scene {
    min-block-size: clamp(370px, 60svh, 490px);
    padding: 22px;
    background-position: 56% center;
  }

  .chronicle-scene .chronicle-stage-art { object-position: 56% center; }

  .chronicle-scene::after {
    background: linear-gradient(0deg, #130d0cf7, #1a100dc7 29%, #1a0f0a3b 74%, #1a0f0a2a);
  }

  .chronicle-scene-copy { gap: 10px; }

  html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline .chronicle-event-title {
    font-size: clamp(34px, 10.3vw, 46px) !important;
  }

  .chronicle-nav { grid-template-columns: auto minmax(0, 1fr) auto auto; }

  .chronicle-nav .chronicle-arrow:first-of-type { grid-column: 1; }
  .chronicle-nav .chronicle-arrow:nth-of-type(2) { grid-column: 3; }
  html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline .chronicle-position { grid-column: 2; }
  html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline .chronicle-overview { grid-column: 4; }
}

@media (max-width: 375px) {
  .chronicle-scene { padding-inline: 16px; }
  .chronicle-nav { gap: 6px; padding-inline: 8px; }
  html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline .chronicle-overview { padding-inline: 8px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .chronicle-scene .chronicle-stage-art,
  .chronicle-thumb,
  html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene .atlas-event-timeline :is(.chronicle-read, .chronicle-arrow, .chronicle-overview, .chronicle-thumb > img) {
    transition: none;
    transform: none;
  }
}
.atlas-guild-member {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.atlas-guild-member .atlas-record-card { flex: 1; }
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .world-glossary.world-glossary.atlas-scene button.atlas-inline-link[data-glossary-ref],
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .atlas-link-preview .atlas-link-body button.atlas-inline-link[data-glossary-ref] {
  display: inline !important;
  appearance: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  font: inherit !important;
  color: inherit !important;
  white-space: normal !important;
  text-align: inherit !important;
  text-decoration: underline !important;
  text-decoration-color: #ac7845 !important;
  text-underline-offset: .2em;
  vertical-align: baseline !important;
  cursor: pointer;
}
.atlas-scene .atlas-inline-link:hover, .atlas-link-preview .atlas-inline-link:hover {
  background-color: #bf91482c !important;
}
.atlas-inline-link:focus-visible, .atlas-card-open:focus-visible {
  outline: 2px solid #a3784c !important;
  outline-offset: 3px;
}
.atlas-card-crosslinks { position: relative; }
.atlas-card-crosslinks .atlas-inline-link { position: relative; z-index: 2; }
html[data-build="5"] body :is(#app,#publicClub) .atlas-card-crosslinks > .atlas-card-open {
  position: absolute !important;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline-offset: -4px;
}
html[data-build="5"] body:is([data-role],[data-public-club="true"]) :is(#app,#publicClub) .atlas-link-preview {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(640px, calc(100vw - 28px));
  max-height: min(820px, calc(100dvh - 30px));
  padding: 0;
  background: #f8ecd2 url('/assets/ui/paper-grain.svg') repeat;
  color: #362a21;
  border: 2px solid #947045;
  border-radius: 9px;
  box-shadow: 0 22px 90px #1f130dee;
  overflow: hidden;
  font: 1rem/1.58 Georgia, serif;
  scrollbar-color: #95734e #f5e6c7;
}
.atlas-link-preview[open] { display: flex; flex-direction: column; }
.atlas-link-preview::backdrop { background: #20180fb8; }
.atlas-link-preview [hidden] { display: none !important; }
.atlas-link-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: .55rem .8rem;
  border-bottom: 1px solid #a8865a88;
  background: #e9d6b2;
}
.atlas-link-toolbar [data-glossary-preview-back] { margin-inline-end: auto; }
.atlas-link-toolbar button { color: #4a331f; background: #f7e7c6; border: 1px solid #a8875c; border-radius: 4px; min-height: 38px; padding: 0 .75rem; cursor: pointer; }
.atlas-link-toolbar [data-glossary-preview-close] { font-size: 1.4rem; }
.atlas-link-body { overflow: auto; overscroll-behavior: contain; padding: clamp(17px,5vw,35px); overflow-wrap: anywhere; }
.atlas-link-body h2 { font: 600 clamp(1.7rem,5vw,2.35rem)/1.12 Georgia, serif; margin: .36rem 0 .9rem; color: #48301d; }
.atlas-link-body h3 { font: 600 1.2rem/1.3 Georgia, serif; margin: 1.15rem 0 .45rem; color: #563b27; }
.atlas-link-body p { margin: .55rem 0 .85rem; }
.atlas-link-body figure { margin: .65rem 0 1.1rem; }
.atlas-link-body figure img { display: block; max-width: 100%; width: auto; max-height: min(42dvh,350px); height: auto; margin: 0 auto; border: 1px solid #a8875c; border-radius: 4px; }
.atlas-link-body figcaption { font-size: .85rem; text-align: center; }
.atlas-link-notes { margin-block: 1rem; }
.atlas-link-body .atlas-source {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .85rem;
  padding-top: .65rem;
  border-top: 1px solid #a8865a66;
  color: #705136;
  font: .8rem/1.45 system-ui,sans-serif !important;
}
.atlas-link-body .atlas-source time { white-space: nowrap; }
.atlas-guild-visibility {
  align-self: flex-start;
  max-width: 100%;
}
.atlas-person-region { min-width: 0; }
.atlas-person-region select { max-width: 100% !important; }
@media (max-width: 600px) {
  .atlas-guild-visibility, .atlas-person-region, .atlas-person-region select { width: 100% !important; }
}
}


/* assets/ui/audio-library.css */
.audio-library{min-width:0}.al-heading,.al-playlist-controls,.al-transport{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}.al-heading{margin-bottom:.7rem}.al-heading h3{margin:0;flex:1 1 9rem}.audio-library .aw-field{margin:.6rem 0}.al-groups{max-height:65vh;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.al-group{border-top:1px solid var(--border,#ba9a7155);padding:.55rem 0}.al-group>summary{font-weight:700;font-size:1.05rem}.audio-library summary{cursor:pointer;padding:.4rem;overflow-wrap:anywhere}.audio-library summary small{font-weight:400;margin-left:.4rem}.al-playlist,.al-subgroup{margin:.35rem 0 .35rem .3rem;border-left:2px solid #ba9a7155;padding-left:.45rem}.al-playlist-controls{padding:.35rem}.al-track{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.15rem .4rem;padding:.35rem;border-radius:.3rem}.al-track>.aw-button:first-child{text-align:left;justify-content:flex-start;grid-column:1;overflow-wrap:anywhere;white-space:normal;min-width:0}.al-track>small{grid-column:1;color:var(--muted,#766a5a);overflow-wrap:anywhere;padding-left:.45rem}.al-track>.aw-button:last-child:not(:first-child){grid-column:2;grid-row:1 / span 2}.al-track.is-playing{background:#bd955329}.al-track.is-playing>.aw-button:first-child{border-color:#a87e38}.al-current{display:flex;flex-direction:column;gap:.15rem;padding:.6rem;background:#bd955319;margin:.6rem 0;overflow-wrap:anywhere}.al-transport{margin:.4rem 0}.al-preview{padding:.5rem;background:#bd955319;overflow-wrap:anywhere}.al-editor{margin:.8rem 0;padding:.65rem}.al-editor-tracks{padding-left:1.5rem;max-height:18rem;overflow:auto}.al-editor-tracks li{padding:.35rem 0;overflow-wrap:anywhere}.al-editor-tracks li>div{display:flex;gap:.3rem;margin-top:.25rem}.audio-library input,.audio-library select{max-width:100%;min-width:0}.al-assignment-effects{display:flex;flex-wrap:wrap;gap:.3rem}.aw-location-inspector .audio-library .al-groups{max-height:28rem}.al-standalone{max-width:68rem;margin:auto}.al-standalone .al-groups{max-height:65vh}@media(max-width:600px){.al-playlist-controls{align-items:stretch}.al-playlist-controls>.aw-button{flex:1 1 10rem}.al-track{grid-template-columns:minmax(0,1fr)}.al-track>.aw-button:last-child:not(:first-child){grid-row:auto;grid-column:1}.al-transport>.aw-button{flex:1 1 7rem}.al-heading>.aw-button{flex:1 1 8rem}}


/* assets/ui/chat-notifications.css */
@layer shell {
 html[data-build="5"] body[data-screen="chats"] #app .tavern-screen {grid-template-rows:auto auto minmax(0,1fr)!important;}
 html[data-build="5"] body[data-screen="chats"] #app .tavern-screen>.chat-notification-toolbar {grid-row:1!important;}
 html[data-build="5"] body[data-screen="chats"] #app .tavern-screen>.tavern-notice-top {grid-row:2!important;}
 html[data-build="5"] body[data-screen="chats"] #app .tavern-screen>.tavern-chat-desk {grid-row:3!important;}
 html[data-build="5"] body[data-screen="chats"] #app .chat-notification-toolbar {
  display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:0 0 8px;
 }
 html[data-build="5"] body[data-screen="chats"] #app .chat-notification-toolbar>span {font-size:14px;color:#fff4d7;text-shadow:0 1px 3px #201208;}
 /* Fixed-size frame edges keep the clean parchment clear of every text row. */
 html[data-build="5"] body[data-screen="chats"] #app .tavern-screen[data-mobile-chat] .tavern-ledger-column>.chat-ledger,
 html[data-build="5"] body[data-screen="chats"] #app .tavern-screen[data-mobile-chat] .chat-ledger-group .chat-ledger {
  width:100%!important;max-width:none!important;margin:0!important;box-sizing:border-box!important;
  padding:12px 10px 16px!important;border:10px solid transparent!important;
  border-image:url('/assets/ui/chat-v32/ledger-clean-20261114.webp') 72 fill / 10px / 0 stretch!important;
  background:#f8e6bf!important;background-clip:padding-box!important;
  box-shadow:0 3px 8px #2d1c1226!important;
 }
 html[data-build="5"] body[data-screen="chats"] #app .chat-group-title {padding-left:12px!important;padding-right:6px!important;}
 html[data-build="5"] body[data-screen="chats"] #app .chat-group-title>span,
 html[data-build="5"] body[data-screen="chats"] #app .chat-group-summary {transform:none!important;}
 html[data-build="5"] body[data-screen="chats"] #app .chat-list-row {
  display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;align-items:center!important;gap:6px!important;min-width:0!important;
  padding:6px 0!important;border-radius:5px!important;
 }
 html[data-build="5"] body[data-screen="chats"] #app .chat-list-row + .chat-list-row {
  border-top:1px dashed #9c784c70!important;
 }
 html[data-build="5"] body[data-screen="chats"] #app .chat-list-row:has(>.chat-list-item.active) {
  background:linear-gradient(90deg,#557a6629,#80613a08)!important;box-shadow:inset 3px 0 #557a6699!important;
 }
 html[data-build="5"] body[data-screen="chats"] #app .chat-list-row:hover {
  background-color:#82623e0c!important;
 }
 html[data-build="5"] body[data-screen="chats"] #app .chat-list-row .chat-list-item {
  width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;padding-left:8px!important;padding-right:0!important;
  grid-template-columns:28px minmax(0,1fr) auto!important;gap:6px!important;box-sizing:border-box!important;
 }
 html[data-build="5"] body[data-screen="chats"] #app .chat-list-row .chat-side {transform:none!important;min-width:24px!important;}
 html[data-build="5"] body[data-screen="chats"] #app .chat-list-row .chat-main {min-width:0!important;}
 html[data-build="5"] body[data-screen="chats"] #app .chat-list-row .chat-main strong {
  color:#3c2d20!important;font-size:17px!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:anywhere!important;text-shadow:none!important;
 }
 html[data-build="5"] body[data-screen="chats"] #app .chat-list-row .chat-main>span {
  color:#604b36!important;font-size:15px!important;line-height:1.35!important;text-shadow:none!important;
 }
 html[data-build="5"] body[data-screen="chats"] #app .chat-list-row .chat-time {color:#604b36!important;font-size:13px!important;line-height:1.3!important;text-shadow:none!important;}
 html[data-build="5"] body[data-screen="chats"] #app .chat-list-row:focus-within {outline:2px solid #53725b!important;outline-offset:-2px!important;}
 html[data-build="5"] body .chat-notification-toggle {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 44px!important;
  width:44px!important;height:44px!important;min-height:44px!important;padding:6px!important;margin:0!important;
  border:0!important;border-radius:50%!important;background:transparent!important;
  box-shadow:none!important;color:#73543a!important;cursor:pointer!important;
 }
 html[data-build="5"] body .chat-notification-toggle svg {width:30px!important;height:30px!important;display:block!important;}
 html[data-build="5"] body .chat-notification-toggle.is-muted {background:transparent!important;color:#8a715b!important;}
 html[data-build="5"] body .chat-notification-toggle:not(.is-muted) {color:#94510b!important;}
 html[data-build="5"] body .chat-notification-toggle:hover {background:#8d704719!important;}
 html[data-build="5"] body .chat-notification-toggle:focus-visible {outline:2px dashed #59745a!important;outline-offset:-2px!important;background:#8d704719!important;}
 html[data-build="5"] body .chat-head-actions {align-items:center!important;flex-wrap:wrap!important;}
 html[data-build="5"] body .chat-mute-options {display:flex;gap:8px;flex-wrap:wrap;margin:16px 0;}
 html[data-build="5"] body .chat-mute-options button {min-height:44px;}
 html[data-build="5"] body .chat-mute-status {font-weight:700;color:#315d49;}
 @media(max-width:620px){
  html[data-build="5"] body[data-screen="chats"] #app .chat-notification-toolbar {justify-content:flex-start;gap:4px;}
  html[data-build="5"] body[data-screen="chats"] #app .chat-notification-toolbar>span {display:none;}
  html[data-build="5"] body[data-screen="chats"] #app .tavern-screen[data-mobile-chat] .tavern-ledger-column>.chat-ledger {padding:8px 6px 12px!important;}
  html[data-build="5"] body .chat-mute-options {display:grid;grid-template-columns:1fr 1fr;}
 }
 @media(max-width:480px){
  /* Keep the title column wide when staff have both bookmark and bell. */
  html[data-build="5"] body[data-screen="chats"] #app .tavern-ledger-column .chat-list-row:has([data-chat-attention]) {grid-template-columns:minmax(0,1fr) 44px!important;}
  html[data-build="5"] body[data-screen="chats"] #app .tavern-ledger-column .chat-list-row:has([data-chat-attention]) .chat-row-controls {flex-direction:column!important;}
 }
}


/* assets/ui/playful-navigation.css */
/* One illustrated sign and a distinct little drawing for each destination.
   Shell-layer importance intentionally wins over the retired raster atlases. */
@layer shell {
  html[data-build="5"] body[data-role] :is(#sideNav,#mobileNav) > :is(.nav-button,.mobile-tab)[data-nav-art],
  html[data-build="5"] body #publicClub :is(.public-club-nav,.public-mobile-nav) > :is(.nav-button,.mobile-tab)[data-nav-art] {
    --playful-nav-art:url('/assets/ui/nav-buttons/tavern-plaque-20261110.webp');
    position:relative!important;isolation:isolate!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;
    gap:7px!important;box-sizing:border-box!important;flex:none!important;width:100%!important;min-width:0!important;max-width:100%!important;
    min-height:58px!important;height:auto!important;margin:0!important;padding:11px 20px!important;
    border:0!important;border-radius:12px!important;background:var(--playful-nav-art) center/100% 100% no-repeat!important;
    color:#4c3628!important;box-shadow:none!important;filter:drop-shadow(0 2px 2px #2d1a1255)!important;
    text-shadow:none!important;transform:none!important;overflow:visible!important;cursor:pointer!important;
    transition:filter .16s ease,color .16s ease!important;
  }

  html[data-build="5"] body[data-role] :is(#sideNav,#mobileNav) > :is(.nav-button,.mobile-tab)[data-nav-art]::before,
  html[data-build="5"] body[data-role] :is(#sideNav,#mobileNav) > :is(.nav-button,.mobile-tab)[data-nav-art]::after,
  html[data-build="5"] body #publicClub :is(.public-club-nav,.public-mobile-nav) > :is(.nav-button,.mobile-tab)[data-nav-art]::before,
  html[data-build="5"] body #publicClub :is(.public-club-nav,.public-mobile-nav) > :is(.nav-button,.mobile-tab)[data-nav-art]::after {
    content:none!important;display:none!important;background:none!important;
  }

  html[data-build="5"] body[data-role] :is(#sideNav,#mobileNav) > :is(.nav-button,.mobile-tab)[data-nav-art] .nav-symbol,
  html[data-build="5"] body #publicClub :is(.public-club-nav,.public-mobile-nav) > :is(.nav-button,.mobile-tab)[data-nav-art] .nav-symbol {
    position:static!important;inset:auto!important;display:grid!important;place-items:center!important;flex:0 0 31px!important;
    width:31px!important;min-width:31px!important;height:34px!important;max-width:none!important;margin:0!important;padding:0!important;
    border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;filter:none!important;transform:none!important;overflow:visible!important;
    pointer-events:none!important;
  }

  html[data-build="5"] body[data-role] :is(#sideNav,#mobileNav) > :is(.nav-button,.mobile-tab)[data-nav-art] .nav-icon,
  html[data-build="5"] body #publicClub :is(.public-club-nav,.public-mobile-nav) > :is(.nav-button,.mobile-tab)[data-nav-art] .nav-icon {
    display:block!important;position:static!important;width:31px!important;height:34px!important;max-width:none!important;
    margin:0!important;padding:0!important;opacity:1!important;visibility:visible!important;filter:none!important;transform:none!important;overflow:visible!important;
  }

  html[data-build="5"] body[data-role] :is(#sideNav,#mobileNav) > :is(.nav-button,.mobile-tab)[data-nav-art] .nav-label,
  html[data-build="5"] body #publicClub :is(.public-club-nav,.public-mobile-nav) > :is(.nav-button,.mobile-tab)[data-nav-art] .nav-label {
    display:block!important;position:static!important;inset:auto!important;flex:1 1 auto!important;width:auto!important;
    min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;transform:none!important;
    font-family:var(--club-user-font,'Neucha','Segoe Print',Georgia,serif)!important;font-size:17px!important;font-weight:700!important;line-height:1.16!important;
    color:inherit!important;text-align:left!important;text-shadow:none!important;-webkit-text-stroke:0!important;letter-spacing:0!important;
    white-space:normal!important;overflow:visible!important;overflow-wrap:normal!important;word-break:normal!important;text-overflow:clip!important;hyphens:none!important;
  }

  html[data-build="5"] body[data-role] :is(#sideNav,#mobileNav) > :is(.nav-button,.mobile-tab)[data-nav-art]:is(:hover,:focus-visible),
  html[data-build="5"] body #publicClub :is(.public-club-nav,.public-mobile-nav) > :is(.nav-button,.mobile-tab)[data-nav-art]:is(:hover,:focus-visible) {
    background:var(--playful-nav-art) center/100% 100% no-repeat!important;color:#324f40!important;
    filter:brightness(1.06) drop-shadow(0 2px 3px #2d1a1266)!important;
  }

  html[data-build="5"] body[data-role] :is(#sideNav,#mobileNav) > :is(.nav-button,.mobile-tab)[data-nav-art]:is(.active,[aria-current="page"]),
  html[data-build="5"] body #publicClub :is(.public-club-nav,.public-mobile-nav) > :is(.nav-button,.mobile-tab)[data-nav-art]:is(.active,[aria-current="page"]) {
    background:var(--playful-nav-art) center/100% 100% no-repeat!important;color:#245b43!important;
    box-shadow:inset 0 0 0 2px #648a6570!important;filter:brightness(1.07) drop-shadow(0 2px 3px #284d3b88)!important;
  }

  html[data-build="5"] body[data-role] :is(#sideNav,#mobileNav) > :is(.nav-button,.mobile-tab)[data-nav-art]:focus-visible,
  html[data-build="5"] body #publicClub :is(.public-club-nav,.public-mobile-nav) > :is(.nav-button,.mobile-tab)[data-nav-art]:focus-visible {
    outline:3px solid #316f59!important;outline-offset:-3px!important;
  }

  html[data-build="5"] body[data-role] :is(#sideNav,#mobileNav) > :is(.nav-button,.mobile-tab)[data-nav-art] .nav-badge {
    display:grid!important;place-items:center!important;position:absolute!important;inset:2px 8px auto auto!important;
    min-width:18px!important;max-width:36px!important;height:18px!important;margin:0!important;padding:0 4px!important;
    border:1px solid #fff0d3!important;border-radius:10px!important;background:#9d4f3c!important;color:#fff8e5!important;
    font:700 11px/16px 'Segoe UI',sans-serif!important;text-align:center!important;transform:none!important;box-shadow:0 1px 2px #3e271b55!important;
  }

  @media (min-width:821px) {
    html[data-build="5"] body[data-role] #sideNav,
    html[data-build="5"] body #publicClub .public-club-nav {gap:5px!important;}
  }

  @media (max-width:820px) {
    /* The former sticky hint covered the first drawing when keyboard focus
       scrolled its plaque underneath it. The next plaque shows the scroll affordance. */
    html[data-build="5"] body[data-role] #mobileNav::before {content:none!important;display:none!important;}
    html[data-build="5"] body[data-role] #mobileNav > .mobile-tab[data-nav-art],
    html[data-build="5"] body #publicClub .public-mobile-nav > .mobile-tab[data-nav-art] {
      flex:0 0 auto!important;width:max-content!important;min-width:132px!important;max-width:208px!important;
      min-height:52px!important;padding:9px 17px!important;gap:5px!important;
    }
    html[data-build="5"] body[data-role] #mobileNav > .mobile-tab[data-nav-art] .nav-symbol,
    html[data-build="5"] body #publicClub .public-mobile-nav > .mobile-tab[data-nav-art] .nav-symbol {
      flex-basis:26px!important;width:26px!important;min-width:26px!important;height:29px!important;
    }
    html[data-build="5"] body[data-role] #mobileNav > .mobile-tab[data-nav-art] .nav-icon,
    html[data-build="5"] body #publicClub .public-mobile-nav > .mobile-tab[data-nav-art] .nav-icon {width:26px!important;height:29px!important;}
    html[data-build="5"] body[data-role] #mobileNav > .mobile-tab[data-nav-art] .nav-label,
    html[data-build="5"] body #publicClub .public-mobile-nav > .mobile-tab[data-nav-art] .nav-label {font-size:15px!important;line-height:1.15!important;}
  }

  @media (prefers-reduced-motion:reduce) {
    html[data-build="5"] body[data-role] :is(#sideNav,#mobileNav) > :is(.nav-button,.mobile-tab)[data-nav-art],
    html[data-build="5"] body #publicClub :is(.public-club-nav,.public-mobile-nav) > :is(.nav-button,.mobile-tab)[data-nav-art] {transition:none!important;}
  }
}


/* assets/ui/guild-goals.css */
/* The first existing layer owns quest surfaces, including important legacy rules. */
@layer quest-surfaces {
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board {
  margin:8px 0 24px!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;
 }
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-heading {
  display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;
  gap:10px 18px!important;margin:0 0 12px!important;padding:0 0 10px!important;border-bottom:1px dashed #e3be8966!important;
 }
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-heading h2 {
  margin:0!important;color:#f5dfb5!important;font-size:24px!important;line-height:1.2!important;font-weight:700!important;
  text-transform:none!important;letter-spacing:0!important;text-shadow:0 2px 3px #32190f!important;
 }
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-heading p {
  margin:4px 0 0!important;color:#f1d3a7!important;font-size:15px!important;line-height:1.35!important;text-shadow:0 1px 3px #32190f!important;
 }
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-list {
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;width:100%!important;padding:0!important;
 }
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-empty {
  display:flex!important;align-items:center!important;gap:16px!important;min-width:0!important;margin:0!important;padding:20px 22px!important;
  border:1px dashed #dbb88799!important;border-radius:3px!important;background:#40251973!important;
  box-shadow:inset 0 0 0 3px #4d2d151f!important;color:#f7e4bf!important;text-shadow:0 1px 2px #32190f!important;
 }
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-empty :is(strong,p) {
  color:inherit!important;white-space:normal!important;overflow-wrap:anywhere!important;
 }
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-empty strong {font-size:19px!important;line-height:1.3!important;}
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-empty p {margin:5px 0 0!important;font-size:16px!important;line-height:1.45!important;}
 html[data-build="5"] body[data-screen="quests"] #app .guild-goal-mark {display:block!important;flex:0 0 42px!important;color:#d8b485!important;}
 html[data-build="5"] body[data-screen="quests"] #app .guild-goal-mark svg {display:block!important;width:42px!important;height:48px!important;}
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-card {
  position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;
  width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;overflow:visible!important;
  border:1px solid #9d754c!important;border-radius:3px 7px 3px 6px!important;
  background:#e9d2a7 url('/assets/ui/paper-grain.svg') center/540px 405px repeat!important;background-blend-mode:multiply!important;
  box-shadow:0 3px 6px #27150f55,inset 0 0 0 4px #fff0c033!important;color:#493525!important;
 }
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-card::before,
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-card::after {display:none!important;content:none!important;}
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-card.has-image {grid-template-columns:140px minmax(0,1fr)!important;}
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-card-image {
  display:block!important;align-self:start!important;width:122px!important;height:122px!important;min-height:0!important;max-height:none!important;
  margin:18px 0 18px 18px!important;object-fit:cover!important;border:1px solid #a07c53!important;border-radius:3px!important;box-sizing:border-box!important;
 }
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-card-body {
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:11px!important;align-content:start!important;
  min-width:0!important;padding:18px 20px!important;background:none!important;
 }
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-card-body>header {
  grid-column:auto!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:12px!important;
 }
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-card-heading {flex:1 1 200px!important;min-width:0!important;}
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-card-heading small {
  display:block!important;margin:0 0 5px!important;color:#60472d!important;font-size:13px!important;line-height:1.3!important;letter-spacing:.02em!important;text-transform:none!important;
 }
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-card-heading h3 {
  display:block!important;margin:0!important;max-width:100%!important;color:#473222!important;font-size:23px!important;line-height:1.25!important;
  font-weight:700!important;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;text-overflow:clip!important;-webkit-line-clamp:unset!important;
 }
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-card-body>p {
  grid-column:auto!important;display:block!important;margin:0!important;color:#624b34!important;font-size:17px!important;line-height:1.5!important;
  white-space:pre-line!important;overflow:visible!important;overflow-wrap:anywhere!important;-webkit-line-clamp:unset!important;
 }
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-progress-caption {
  display:flex!important;align-items:baseline!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:6px 16px!important;
  padding-top:3px!important;font-size:16px!important;line-height:1.3!important;color:#5f4a31!important;
 }
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-status {color:#48624a!important;font-weight:700!important;}
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-count {color:#5f4a31!important;white-space:nowrap!important;}
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-progress-row {
  grid-column:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) 48px!important;gap:12px!important;align-items:center!important;
 }
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-progress {
  height:12px!important;border:1px solid #94734c!important;border-radius:3px!important;background:#c2ac83!important;box-shadow:inset 0 1px 2px #6c4b2b26!important;
 }
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-progress>i {
  display:block!important;height:100%!important;border-radius:2px!important;background:#698461!important;box-shadow:none!important;
 }
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .is-complete .goal-progress>i {background:#496e51!important;}
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-progress-value {min-width:0!important;font-size:17px!important;line-height:1.3!important;color:#48624a!important;}
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-card-body>footer {
  grid-column:auto!important;grid-row:auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;
  gap:12px 20px!important;margin:2px 0 0!important;padding:12px 0 0!important;border-top:1px dashed #aa875466!important;font-size:16px!important;white-space:normal!important;
 }
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-card-body>footer:empty {display:none!important;}
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-reward {display:grid!important;gap:3px!important;flex:1 1 150px!important;min-width:0!important;color:#65492c!important;}
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-reward small {color:#60472d!important;font-size:13px!important;}
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-reward>span {font-size:17px!important;line-height:1.4!important;white-space:normal!important;overflow-wrap:anywhere!important;}
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-direct-value {display:flex!important;align-items:center!important;gap:8px!important;margin:0!important;}
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-direct-value span {font-size:15px!important;color:#685038!important;}
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-direct-value input {
  width:84px!important;min-height:44px!important;box-sizing:border-box!important;padding:6px 8px!important;border:1px solid #a3855b!important;border-radius:4px!important;
  background:#f6e8ca!important;color:#493525!important;font-size:17px!important;
 }
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-card-actions {display:flex!important;gap:6px!important;align-items:center!important;flex-wrap:wrap!important;}
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board :is(.goal-card-actions button,.guild-goal-add) {
  min-height:44px!important;max-width:100%!important;padding:7px 12px!important;border:1px solid #a3855b!important;border-radius:4px!important;
  background:#eedbb7!important;color:#62462b!important;font-size:16px!important;line-height:1.25!important;white-space:normal!important;box-shadow:none!important;
 }
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-remove-button {width:44px!important;min-width:44px!important;padding:6px!important;background:transparent!important;color:#8d5140!important;font-size:24px!important;}
 html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board :is(button,input):focus-visible {outline:2px dashed #47684b!important;outline-offset:2px!important;}

 /* The editor is the same warm paper, including native controls and uploads. */
 html[data-build="5"] body #dialog.goal-editor-dialog {
  width:min(820px,calc(100vw - 24px))!important;max-width:820px!important;max-height:calc(100dvh - 24px)!important;
  box-sizing:border-box!important;overflow-y:auto!important;overflow-x:hidden!important;padding:22px!important;
  border:3px double #9b774b!important;border-radius:6px!important;background:#ead5ad url('/assets/ui/paper-grain.svg') center/540px 405px repeat!important;
  background-blend-mode:multiply!important;box-shadow:0 12px 50px #1c100b88!important;color:#493525!important;
 }
 html[data-build="5"] body #dialog.goal-editor-dialog .dialog-head {position:relative!important;top:auto!important;margin:0 0 16px!important;padding:0 36px 14px 0!important;background:none!important;border:0!important;border-bottom:1px dashed #a6835466!important;box-shadow:none!important;}
 html[data-build="5"] body #dialog.goal-editor-dialog .dialog-title {color:#493525!important;font-size:27px!important;line-height:1.25!important;}
 html[data-build="5"] body #dialog.goal-editor-dialog .dialog-sub {color:#60472d!important;font-size:16px!important;line-height:1.4!important;}
 html[data-build="5"] body #dialog.goal-editor-dialog .goal-editor {display:grid!important;gap:18px!important;min-width:0!important;}
 html[data-build="5"] body #dialog.goal-editor-dialog .goal-editor-intro {margin:0!important;color:#6a5237!important;font-size:16px!important;line-height:1.5!important;}
 html[data-build="5"] body #dialog.goal-editor-dialog .goal-editor-fields {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}
 html[data-build="5"] body #dialog.goal-editor-dialog .goal-editor-fields label {display:grid!important;gap:6px!important;min-width:0!important;margin:0!important;}
 html[data-build="5"] body #dialog.goal-editor-dialog .goal-editor-fields .full {grid-column:1/-1!important;}
 html[data-build="5"] body #dialog.goal-editor-dialog .goal-editor-fields label>span {color:#654b31!important;font-size:16px!important;}
 html[data-build="5"] body #dialog.goal-editor-dialog .goal-editor :is(input:not([type="file"]):not([type="hidden"]),textarea) {
  width:100%!important;min-width:0!important;min-height:44px!important;box-sizing:border-box!important;padding:9px 11px!important;border:1px solid #aa8b60!important;
  border-radius:4px!important;background:#f7e9cd!important;color:#493525!important;box-shadow:inset 0 1px 2px #6e4b2020!important;font:inherit!important;font-size:17px!important;
 }
 html[data-build="5"] body #dialog.goal-editor-dialog .goal-editor textarea {min-height:115px!important;resize:vertical!important;}
 html[data-build="5"] body #dialog.goal-editor-dialog .goal-image-editor {
  display:grid!important;grid-template-columns:145px minmax(0,1fr)!important;gap:16px!important;align-items:center!important;padding:15px!important;
  border:1px dashed #a5865a!important;border-radius:4px!important;background:#bc9b6220!important;
 }
 html[data-build="5"] body #dialog.goal-editor-dialog .goal-image-preview {
  display:grid!important;place-items:center!important;min-width:0!important;min-height:120px!important;max-height:none!important;overflow:hidden!important;
  padding:8px!important;box-sizing:border-box!important;border:1px dashed #b09268!important;border-radius:3px!important;background:#dec79f55!important;color:#60472d!important;font-size:15px!important;line-height:1.4!important;
 }
 html[data-build="5"] body #dialog.goal-editor-dialog .goal-image-preview.has-image {padding:0!important;}
 html[data-build="5"] body #dialog.goal-editor-dialog .goal-image-preview img {display:block!important;width:100%!important;height:130px!important;object-fit:contain!important;background:#dec79f55!important;}
 html[data-build="5"] body #dialog.goal-editor-dialog .goal-image-editor>div:last-child {display:flex!important;flex-wrap:wrap!important;gap:9px!important;min-width:0!important;}
 html[data-build="5"] body #dialog.goal-editor-dialog .goal-image-editor :is(b,p) {flex-basis:100%!important;margin:0!important;color:#6c5034!important;font-size:16px!important;line-height:1.4!important;}
 html[data-build="5"] body #dialog.goal-editor-dialog :is(.soft-button,.primary-button,.goal-image-upload) {
  min-height:44px!important;box-sizing:border-box!important;padding:9px 14px!important;border:1px solid #a18256!important;border-radius:4px!important;background:#eddbb7!important;color:#65482d!important;font-size:16px!important;line-height:1.3!important;box-shadow:none!important;
 }
 html[data-build="5"] body #dialog.goal-editor-dialog .primary-button {background:#537357!important;border-color:#416145!important;color:#fff1d4!important;}
 html[data-build="5"] body #dialog.goal-editor-dialog .goal-image-upload {position:relative!important;display:inline-flex!important;align-items:center!important;overflow:hidden!important;cursor:pointer!important;}
 html[data-build="5"] body #dialog.goal-editor-dialog .goal-image-upload input[type="file"] {position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important;}
 html[data-build="5"] body #dialog.goal-editor-dialog .dialog-actions {
  position:static!important;inset:auto!important;display:flex!important;flex-wrap:wrap!important;gap:10px!important;justify-content:flex-end!important;
  width:auto!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;margin:0!important;padding:12px 0 0!important;
  border:0!important;border-top:1px dashed #a6835466!important;background:none!important;box-shadow:none!important;
 }
 html[data-build="5"] body #dialog.goal-editor-dialog :is(input,textarea,button):focus-visible,
 html[data-build="5"] body #dialog.goal-editor-dialog .goal-image-upload:focus-within {outline:2px dashed #47684b!important;outline-offset:2px!important;}
 html[data-build="5"] body #dialog.goal-editor-dialog [hidden] {display:none!important;}
 @media(max-width:600px){
  html[data-build="5"] body[data-screen="quests"] #app .guild-goals-heading h2 {font-size:22px!important;}
  html[data-build="5"] body[data-screen="quests"] #app .guild-goals-empty {gap:10px!important;padding:16px 14px!important;align-items:flex-start!important;}
  html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-card.has-image {grid-template-columns:minmax(0,1fr)!important;}
  html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-card-image {width:calc(100% - 28px)!important;height:144px!important;margin:14px 14px 0!important;object-position:center!important;}
  html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-card-body {padding:16px 14px!important;}
  html[data-build="5"] body[data-screen="quests"] #app .guild-goals-board .goal-card-heading h3 {font-size:21px!important;}
  html[data-build="5"] body #dialog.goal-editor-dialog {width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;padding:17px 14px!important;}
  html[data-build="5"] body #dialog.goal-editor-dialog .goal-editor-fields {grid-template-columns:minmax(0,1fr)!important;}
  html[data-build="5"] body #dialog.goal-editor-dialog .goal-image-editor {grid-template-columns:minmax(0,1fr)!important;padding:12px!important;}
  html[data-build="5"] body #dialog.goal-editor-dialog .goal-image-preview.empty {min-height:68px!important;}
  html[data-build="5"] body #dialog.goal-editor-dialog .dialog-actions>button {flex:1 1 110px!important;}
 }
}


/* assets/ui/chat-attention.css */
/* Shared administrator bookmarks sit beside the personal notification bell. */
@layer shell {
 html[data-build="5"] body[data-screen="chats"] #app .chat-row-controls {display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:0!important;min-width:0!important;}
 html[data-build="5"] body[data-screen="chats"] #app .chat-list-row:has([data-chat-attention]) {grid-template-columns:minmax(0,1fr) 88px!important;}
 html[data-build="5"] body .chat-attention-toggle {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 44px!important;
  width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:7px!important;
  border:0!important;border-radius:4px!important;background:transparent!important;box-shadow:none!important;cursor:pointer!important;
 }
 html[data-build="5"] body .chat-attention-art {display:block!important;flex:none!important;width:30px!important;height:30px!important;pointer-events:none!important;}
 html[data-build="5"] body .chat-attention-toggle:not(.is-attention) .chat-attention-art {opacity:.68!important;}
 html[data-build="5"] body .chat-attention-toggle.is-attention .chat-attention-art {filter:drop-shadow(0 1px 1px #8a5d2733)!important;}
 html[data-build="5"] body .chat-attention-toggle:is(:hover,:focus-visible) {outline:2px dashed #966c38!important;outline-offset:-2px!important;}
 html[data-build="5"] body .chat-attention-toggle:disabled {opacity:.55!important;cursor:wait!important;}
 html[data-build="5"] body .chat-attention-summary {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important;gap:5px!important;
  min-width:0!important;max-width:100%!important;min-height:44px!important;margin:0!important;padding:6px 10px!important;
  border:1px solid #a17b4d!important;border-radius:5px!important;background:#eddbb7!important;box-shadow:none!important;color:#67492b!important;
  font:inherit!important;font-size:16px!important;line-height:1.2!important;white-space:normal!important;cursor:pointer!important;
 }
 html[data-build="5"] body .chat-attention-summary .chat-attention-art {width:25px!important;height:28px!important;}
 html[data-build="5"] body .chat-attention-summary [data-attention-count] {min-width:21px!important;padding:2px 4px!important;border-radius:5px!important;background:#d6bd93!important;color:#65472c!important;text-align:center!important;font:700 14px/1.25 'Segoe UI',sans-serif!important;}
 html[data-build="5"] body .chat-attention-summary.has-attention [data-attention-count] {background:#b88745!important;color:#3e2a18!important;}
 html[data-build="5"] body .chat-attention-summary:focus-visible {outline:2px dashed #654c2f!important;outline-offset:2px!important;}
 html[data-build="5"] body :is(#sideNav,#mobileNav) .nav-attention-badge {
  position:absolute!important;inset:auto 8px 3px auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:2px!important;
  min-width:23px!important;max-width:42px!important;height:17px!important;margin:0!important;padding:0 4px!important;border:1px solid #efdab3!important;border-radius:5px!important;
  background:#b38243!important;color:#3e2a18!important;font:700 10px/15px 'Segoe UI',sans-serif!important;white-space:nowrap!important;transform:none!important;pointer-events:none!important;
 }
 html[data-build="5"] body :is(#sideNav,#mobileNav) .nav-attention-badge svg {width:12px!important;height:12px!important;display:block!important;}
 html[data-build="5"] body #dialog .chat-attention-list {min-width:0!important;color:#62492f!important;}
 html[data-build="5"] body #dialog .chat-attention-list>p {font-size:17px!important;line-height:1.5!important;overflow-wrap:anywhere!important;}
 html[data-build="5"] body #dialog .chat-attention-entries {display:grid!important;gap:8px!important;margin:16px 0!important;}
 html[data-build="5"] body #dialog .chat-attention-entry {display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;padding:8px 0!important;border-bottom:1px dashed #a1835d66!important;}
 html[data-build="5"] body #dialog .chat-attention-entry>button {min-width:0!important;max-width:100%!important;min-height:44px!important;margin:0!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important;}
 @media(max-width:480px){
  html[data-build="5"] body[data-screen="chats"] #app .chat-list-row:has([data-chat-attention]) .chat-list-item {grid-template-columns:22px minmax(0,1fr) auto!important;gap:4px!important;padding-left:4px!important;}
  html[data-build="5"] body[data-screen="chats"] #app .chat-list-row:has([data-chat-attention]) .chat-icon {width:22px!important;height:22px!important;}
  html[data-build="5"] body .chat-attention-summary {font-size:15px!important;padding:6px 8px!important;}
 }
}

