/* Approved Research 06, shared unchanged by both backgrounds. */
html body.faithful-target[data-board-background] :is(#modal,#phone-faithful,#desktop-drawer,#faithful-context,#selected,#research) .sw-research-card.field-expedition,
.sw-research-card.field-expedition{--field-art:348px;position:relative;isolation:isolate;display:flex;flex-direction:column;width:100%;max-width:360px;min-height:620px;margin:0 auto;padding:0!important;border:1px solid #627882!important;border-radius:12px!important;background:#182530!important;color:#1f2c32!important;box-shadow:inset 0 0 0 3px #faffffcc,0 2px 0 #f0f4f3,0 4px 0 #687682,0 6px 0 #9aa5ab,0 18px 30px #0007!important;overflow:hidden;text-align:left}
.field-expedition:after{content:"";position:absolute;inset:6px;border:1px solid #6a7f884d;border-radius:8px;z-index:9;pointer-events:none}
.field-expedition .research-art{position:absolute;inset:0;width:100%!important;height:100%!important;aspect-ratio:auto;object-fit:cover;object-position:48% 20%;border-radius:0;z-index:-3}
.field-expedition .mission-veil{position:absolute;inset:0;background:linear-gradient(0deg,#10212d 0%,#10212d 20%,#10212d00 65%);z-index:-2}
.field-expedition .mission-leaf{position:absolute;inset:var(--field-art) 0 0;background:linear-gradient(120deg,#eff0e7,#d8dfd9);clip-path:polygon(0 0,72% 0,80% 24px,100% 24px,100% 100%,0 100%);z-index:-1}
.field-expedition .mission-rail{position:absolute;left:0;top:var(--field-art);bottom:0;width:8px;background:#be713e;z-index:0}
.field-expedition .mission-type{position:absolute;inset:22px 23px auto;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0;border:0;background:none;font:600 9px/1.5 system-ui;letter-spacing:.13em;text-transform:uppercase;color:#e6ecee;text-shadow:0 1px 6px #05131f}
.field-expedition .mission-type>span:last-child{display:grid;place-items:center;width:24px;height:24px;flex:none;border:1px solid #adced473;border-radius:50%;background:#09202d70;font-size:18px}
.field-expedition .mission-tab{position:absolute;right:22px;top:calc(var(--field-art) - 30px);width:49px;height:49px;border:2px solid #d2d8d1;border-radius:9px;background:#182b37;color:#e2a16c;display:grid;place-items:center;font:25px system-ui;box-shadow:0 3px 7px #0006;transform:rotate(45deg)}
.field-expedition .mission-tab>span{transform:rotate(-45deg)}
html body.faithful-target[data-board-background] :is(#modal,#phone-faithful,#desktop-drawer,#faithful-context,#selected,#research) .field-expedition .research-card-copy,
.field-expedition .research-card-copy{position:relative;display:flex;flex-direction:column;flex:1;margin-top:var(--field-art);padding:17px 27px 23px!important;background:none!important;color:#1f2c32!important}
.field-expedition .mission-label{margin:0 0 17px;color:#ae6135;font:700 8px/1.4 system-ui;letter-spacing:.15em;text-transform:uppercase}
html body.faithful-target[data-board-background] :is(#modal,#phone-faithful,#desktop-drawer,#faithful-context,#selected,#research) .field-expedition :is(h3,.research-description,.research-card-rewards,.research-card-rewards strong,.research-card-rewards span),
.field-expedition :is(h3,.research-description,.research-card-rewards){color:#1f2c32!important}
html body.faithful-target #modal .field-expedition h3,.field-expedition h3{font:700 25px/1.08 system-ui!important;letter-spacing:-.04em!important;margin:0 0 11px!important;overflow-wrap:anywhere}
html body.faithful-target #modal .field-expedition .research-description,.field-expedition .research-description{font:13px/1.5 system-ui!important;margin:0 0 11px!important;color:#354a54!important}
html body.faithful-target[data-board-background] :is(#modal,#phone-faithful,#desktop-drawer,#faithful-context,#selected,#research) .field-expedition .research-card-count,
.field-expedition .research-card-count{font:10px/1.5 system-ui!important;color:#586c73!important;margin:0 0 14px!important}
.field-expedition .mission-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding:12px 0 0;border-top:1px solid #66818a66}
html body.faithful-target #modal .field-expedition .research-card-rewards,.field-expedition .research-card-rewards{display:flex;gap:13px;flex-wrap:wrap;border:0!important;margin:0!important;padding:0!important;font:500 21px/1.3 system-ui!important}
.field-expedition .research-card-rewards>strong{border-right:1px solid #6a82894d;padding-right:13px}
.field-expedition .research-card-rewards .sw-symbol{width:24px!important;height:24px!important}
.field-expedition .mission-footer .research-brand{display:block;width:81px;height:27px;object-fit:contain;margin:0!important;flex:none}
.field-expedition .research-quantity{top:65px;right:22px;z-index:2;background:#182b37;color:#eff0e7;border-color:#879ca4}
/* Preserve the generator's live sockets, token ownership and planned/installed state. */
html body.faithful-target[data-board-background] :is(#modal,#phone-faithful,#desktop-drawer,#faithful-context) .field-expedition .generator-mode-option{background:#dbe3df!important;color:#1f2c32!important;border-color:#6a8289!important;box-shadow:none!important}
.field-expedition .generator-socket{background:#a6b8b124;border-color:#687f85}
.field-expedition .generator-mode-option small{color:#354a54!important}
.field-expedition .generator-mode-option.is-selected{border-color:#ae6135!important}
.field-expedition .generator-mode-option.is-draft{border-style:dashed!important}
.field-expedition.compact-card{--field-art:210px;min-height:450px;max-width:260px}
.field-expedition.compact-card .research-card-copy{padding:16px 17px 18px!important}
html body.faithful-target #modal .field-expedition.compact-card h3,.field-expedition.compact-card h3{font-size:18px!important}
.field-expedition.compact-card .research-description{font-size:12px!important}
.field-expedition.compact-card .mission-label{font-size:7px;margin-bottom:12px}
.field-expedition.compact-card .mission-tab{width:38px;height:38px;right:18px;top:calc(var(--field-art) - 23px)}
.field-expedition.compact-card .mission-footer{gap:6px;flex-wrap:wrap}
@media(max-width:420px){.sw-research-card.field-expedition:not(.compact-card){--field-art:290px;min-height:570px}.field-expedition .research-card-copy{padding-inline:24px!important}}
/* Functional dialogs remain modal/focus-managed; their visible outer surface goes away. */
html body.faithful-target[data-board-background] :is(#modal,#faithful-context,#desktop-drawer,#phone-faithful .sheet):has(.field-expedition){background:none!important;background-image:none!important;border:0!important;border-image:none!important;border-radius:0!important;box-shadow:none!important;padding:20px!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;overflow:auto!important;isolation:isolate}
html body.faithful-target[data-board-background] #modal:has(.field-expedition)>.close{top:2px!important;right:2px!important;background:#182b37!important;color:#eff0e7!important;border:1px solid #83979e!important;border-radius:50%!important;z-index:12}
html body.faithful-target[data-board-background] #modal:has(.field-expedition) #modalbody{background:none!important;min-width:0}
html body.faithful-target[data-board-background] :is(.research-reveal,.scan-choice,.research-collection,.generator-inventory):has(.field-expedition){background:none!important;border:0!important;box-shadow:none!important;color:#1f2c32!important}
html body.faithful-target[data-board-background] #modal:has(.field-expedition){width:fit-content!important;min-width:0!important}
html body.faithful-target[data-board-background] .scan-choice-grid{grid-template-columns:repeat(2,minmax(0,360px));grid-auto-rows:1fr auto auto;justify-content:center;gap:26px}
html body.faithful-target[data-board-background] .scan-choice-grid .scan-option{display:grid;grid-row:span 3;grid-template-rows:subgrid;row-gap:10px;align-items:stretch;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;max-width:360px}
html body.faithful-target[data-board-background] :is(.research-reveal,.scan-choice,.research-collection,.generator-inventory):has(.field-expedition)>:is(h2,p,.eyebrow,ul,.research-progress,.generator-owners,details),
html body.faithful-target[data-board-background] .scan-option>:is(p,.notice),
html body.faithful-target[data-board-background] .generator-owned-finding>:is(p,small,.generator-actions){color:#1f2c32!important;background:#eff0e7f5!important;border-radius:7px;padding:10px!important}
html body.faithful-target[data-board-background] :is(.research-reveal,.scan-choice,.research-collection,.generator-inventory):has(.field-expedition)>:is(h2,p,.eyebrow,ul,.research-progress,.generator-owners,details) :is(h3,p,small,span,strong){color:inherit!important}
html body.faithful-target[data-board-background] .research-collection-card{background:none!important;border:0!important;padding:0!important;box-shadow:none!important}
html body.faithful-target[data-board-background] .research-reveal{display:block;width:100%;max-width:380px}
/* Give every single-card reveal the same frame, independent of the length of its copy. */
html[data-ui-runtime=web] body.faithful-target[data-board-background] #modal:has(.research-reveal>.field-expedition){
 --research-reveal-frame:420px;
 width:min(var(--research-reveal-frame),calc(100vw - 16px))!important;
 padding-inline:var(--research-reveal-inset,20px)!important;
 scrollbar-gutter:stable both-edges;
}
@media(max-width:700px){
 #modal:has(.research-reveal>.field-expedition){--research-reveal-inset:14px}
}
html[data-ui-runtime=web] body.faithful-target[data-board-background] #modal:has(.research-reveal>.field-expedition) #modalbody{
 padding:0!important;
}
html body.faithful-target[data-board-background] .research-collection-grid{gap:24px}
html body.faithful-target[data-board-background] .field-expedition .generator-mode-option{background:#dbe3df!important;color:#1f2c32!important;border-color:#6a8289!important;box-shadow:none!important}
html body.faithful-target[data-board-background] .field-expedition .generator-mode-option:hover:not(:disabled){background:#cad9d4!important;color:#1f2c32!important}
@media(max-width:700px){html body.faithful-target[data-board-background] .scan-choice-grid{grid-template-columns:minmax(0,360px)}html body.faithful-target[data-board-background] #modal:has(.field-expedition){padding:20px 10px!important}}
/* Close lives above the standalone card, never over its artwork or corners. */
html body.faithful-target[data-board-background] #modal:has(.field-expedition){padding-top:54px!important}
html body.faithful-target[data-board-background] :is(#modal,#phone-faithful,#desktop-drawer,#faithful-context) .field-expedition .generator-mode-option.is-selected{border-color:#ae6135!important}
html body.faithful-target[data-board-background] #modal .research-reveal>.notice{background:#eff0e7!important;color:#354a54!important;border-color:#9caca9!important;padding:10px;border-radius:7px}
html body.faithful-target[data-board-background] #modal .research-reveal>.notice.error{background:#f4d9d0!important;color:#682c24!important;border-color:#ad7464!important}
/* A reveal already has Continue. Avoid a second floating close over its heading. */
html body.faithful-target[data-board-background] #modal:has(.research-reveal #cardclose)>.close{display:none!important}
html body.faithful-target[data-board-background] #modal:has(.research-reveal #cardclose){padding-top:20px!important}
html body.faithful-target[data-board-background] #modal:has(.field-expedition)>.close{width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;font:24px/1 system-ui!important;display:grid;place-items:center}
/* Refined proportions: content determines the card height, not a 620px floor. */
html body.faithful-target[data-board-background] :is(#modal,#phone-faithful,#desktop-drawer,#faithful-context,#selected,#research) .sw-research-card.field-expedition,
.sw-research-card.field-expedition{--field-art:clamp(140px,28dvh,240px);min-height:0!important;max-width:380px}
.field-expedition .research-card-copy{padding:16px 24px 18px!important}
.field-expedition .mission-label{margin-bottom:12px}
html body.faithful-target #modal .field-expedition h3,.field-expedition h3{font-size:22px!important}
.field-expedition .mission-footer{margin-top:12px;padding-top:10px}
.field-expedition.compact-card{--field-art:180px;max-width:260px;min-height:0!important}
html body.faithful-target[data-board-background] #modal:has(.research-reveal #cardclose)>.close{display:none!important}
html body.faithful-target[data-board-background] #modal .research-reveal>.eyebrow{font-size:12px;letter-spacing:.04em;padding:8px 12px!important;margin-bottom:12px}
html body.faithful-target[data-board-background] #modal .research-reveal>#cardclose{display:block;margin:18px auto 2px!important;min-height:44px!important;padding:9px 24px!important;font-size:16px!important}
@media(max-height:500px) and (min-width:600px){
 html[data-ui-runtime=web] body.faithful-target[data-board-background] #modal:has(.research-reveal>.field-expedition){--research-reveal-frame:690px}
 html body.faithful-target[data-board-background] #modal .research-reveal{max-width:650px}
 html body.faithful-target[data-board-background] #modal .research-reveal .field-expedition{--field-art:0px;max-width:650px;min-height:250px!important;padding-left:42%!important}
 html body.faithful-target[data-board-background] #modal .research-reveal .research-art{width:42%!important}
 html body.faithful-target[data-board-background] #modal .research-reveal .mission-leaf{left:42%;clip-path:none}
 html body.faithful-target[data-board-background] #modal .research-reveal .mission-rail{left:42%}
 html body.faithful-target[data-board-background] #modal .research-reveal .mission-type{left:16px;right:60%;font-size:8px}
 html body.faithful-target[data-board-background] #modal .research-reveal .mission-tab{display:none}
}
.field-expedition .research-card-copy{min-width:0}
.field-expedition .mission-footer{flex-wrap:wrap}
.field-expedition .research-card-rewards{min-width:0;max-width:100%}
/* Inventory uses the same autonomous card surface as a research reveal. */
html body.faithful-target[data-board-background] #modal .generator-inventory{width:min(740px,calc(100vw - 60px));margin:auto;color:#eff0e7!important}
html body.faithful-target[data-board-background] #modal .generator-inventory :is(.generator-owned-grid,.generator-owned-finding,.generator-inventory-heading){background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
html body.faithful-target[data-board-background] #modal .generator-inventory-heading{display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:16px}
html body.faithful-target[data-board-background] #modal .generator-inventory-heading h2{font:22px/1.25 Georgia,serif!important;color:#eff0e7!important;margin:0}
html body.faithful-target[data-board-background] #modal .generator-owners{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;background:none!important;padding:0!important}
html body.faithful-target[data-board-background] #modal .generator-owners button{font-size:13px!important;min-height:38px;padding:6px 10px!important;background:#192d3b!important;color:#f0e8d3!important;border:1px solid #83979e!important;box-shadow:none!important}
html body.faithful-target[data-board-background] #modal .generator-owners button[aria-pressed=true]{border-color:#d5b477!important;background:#304754!important}
html body.faithful-target[data-board-background] #modal .generator-owned-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:20px;justify-content:center}
html body.faithful-target[data-board-background] #modal .generator-owned-finding{width:100%;max-width:360px;justify-self:center}
html body.faithful-target[data-board-background] #modal .generator-owned-finding .field-expedition{width:100%!important;max-width:none!important;--field-art:clamp(140px,24dvh,200px)}
html body.faithful-target[data-board-background] #modal .generator-card-guidance{margin:12px 0 0;padding:12px;background:#eff0e7!important;color:#243841!important;border:1px solid #9caca9;border-radius:10px;font:14px/1.45 system-ui!important}
html body.faithful-target[data-board-background] #modal .generator-card-guidance :is(p,small){color:inherit!important;margin:0 0 7px;font:inherit!important}
html body.faithful-target[data-board-background] #modal .generator-actions button{background:#1b3442!important;color:#eff0e7!important;border-color:#82999e!important;min-height:44px;margin:5px 0 0;padding:8px 12px!important;font:14px/1.4 system-ui!important;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
html body.faithful-target[data-board-background] #modal .generator-inventory>.generator-inventory-rules{background:#eff0e7!important;color:#243841!important;margin-top:14px;padding:10px 12px!important;font:13px/1.5 system-ui!important}
.generator-amount{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;vertical-align:middle}.generator-amount .sw-symbol{width:1.2em!important;height:1.2em!important;vertical-align:middle}
html body.faithful-target[data-board-background] .field-expedition button.generator-mode-option:disabled{opacity:.65!important;cursor:not-allowed!important}
html body.faithful-target[data-board-background] .field-expedition button.generator-mode-option:not(:disabled){cursor:pointer}
html body.faithful-target[data-board-background] .generator-choice{background:transparent!important;color:#f5ecd9!important}
html body.faithful-target[data-board-background] .generator-choice :is(h2,p,.eyebrow){background:transparent!important;color:inherit!important}
html body.faithful-target[data-board-background] .generator-payments button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:48px}
@media(max-width:600px){html body.faithful-target[data-board-background] #modal .generator-inventory{width:100%}.generator-owners button{flex:0 1 auto}}
html body.faithful-target[data-board-background] #modal .field-expedition button.generator-mode-option:disabled{background:#dbe3df!important;color:#243841!important;opacity:1!important;border-color:#8c9da0!important;box-shadow:none!important}
html body.faithful-target[data-board-background] #modal .field-expedition .generator-mode-option :is(strong,small,span){color:#243841!important}
html body.faithful-target[data-board-background] #modal .generator-inventory-rules :is(summary,p,h3){color:#243841!important;background:transparent!important}
html body.faithful-target[data-board-background] #modal .generator-inventory-heading{position:static!important;min-height:0!important;height:auto!important;width:auto!important}

/* Empty inventories are standalone too: they have no card for :has(.field-expedition). */
html[data-ui-runtime=web] body.faithful-target[data-board-background] dialog#modal:has(.generator-inventory){background:none!important;background-image:none!important;border:0!important;border-image:none!important;box-shadow:none!important;border-radius:0!important;isolation:isolate;width:fit-content!important;min-width:0!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;padding:54px 20px 20px!important;overflow:auto!important}
html body.faithful-target[data-board-background] #modal:has(.generator-inventory) #modalbody{background:none!important;min-width:0!important;max-width:100%!important;overflow:visible!important}
html body.faithful-target[data-board-background] #modal .generator-inventory{box-sizing:border-box;min-width:0!important;max-width:100%!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
html body.faithful-target[data-board-background] #modal .generator-owners{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box;flex-wrap:wrap!important;white-space:normal!important}
html body.faithful-target[data-board-background] #modal .generator-owners button{min-width:0!important;max-width:100%!important;white-space:normal!important;flex:0 1 auto!important;overflow-wrap:anywhere}
html body.faithful-target[data-board-background] #modal .generator-owned-grid>.generator-card-guidance{grid-column:1/-1;text-align:center;margin:0!important;box-sizing:border-box;max-width:100%;width:100%;font-size:15px!important}
html body.faithful-target[data-board-background] #modal:has(.generator-inventory)>.close{top:2px!important;right:2px!important;width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;font:24px/1 system-ui!important;display:grid;place-items:center;background:#182b37!important;color:#eff0e7!important;border:1px solid #83979e!important;border-radius:50%!important;z-index:12}
@media(max-width:600px){html[data-ui-runtime=web] body.faithful-target[data-board-background] dialog#modal:has(.generator-inventory){padding:48px 10px 14px!important}html body.faithful-target[data-board-background] #modal .generator-owners button{min-height:44px!important}}
/* Expanded rules retain one opaque light surface, including the nested section. */
html body.faithful-target[data-board-background] #modal .generator-inventory-rules .generator-rules{background:#eff0e7!important;background-image:none!important;color:#243841!important;border:0!important;box-shadow:none!important;padding:8px 0 0!important;margin:0!important;opacity:1!important}
html body.faithful-target[data-board-background] #modal .generator-inventory-rules .generator-rules :is(h3,p,strong,small,span){color:#243841!important;background:transparent!important;opacity:1!important;text-shadow:none!important}
html body.faithful-target[data-board-background] #modal .generator-inventory-rules .generator-rules p{font:14px/1.6 system-ui!important;margin:12px 0!important}
html body.faithful-target[data-board-background] #modal .generator-inventory-rules .generator-rules h3{font:700 17px/1.4 Georgia,serif!important;margin:8px 0!important}
/* Interaction surfaces retain the light card palette in every input state. */
html body.faithful-target[data-board-background] #modal .field-expedition button.generator-mode-option:is(:hover,:focus-visible,:active):not(:disabled){background:#cad9d4!important;background-image:none!important;color:#243841!important;border-color:#9b7842!important;filter:none!important;transform:none!important;opacity:1!important;box-shadow:inset 0 0 0 1px #b59965!important}
html body.faithful-target[data-board-background] #modal .field-expedition button.generator-mode-option:is(:hover,:focus-visible,:active) :is(strong,small,span){color:#243841!important}
html body.faithful-target[data-board-background] dialog#modal:has([data-generator-close])>.close{display:none!important}
html[data-ui-runtime=web] body.faithful-target[data-board-background] dialog#modal:has([data-generator-close]){padding-top:20px!important}
html body.faithful-target[data-board-background] #modal .generator-inventory-titlebar{display:flex;align-items:center;justify-content:center;gap:18px;width:100%;background:transparent!important}
html body.faithful-target[data-board-background] #modal [data-generator-close]{position:static!important;min-height:44px;padding:7px 14px!important;border:1px solid #83979e!important;border-radius:8px!important;background:#192d3b!important;color:#f0e8d3!important;font:14px/1.4 system-ui!important;box-shadow:none!important}
.component-symbol{display:inline-flex;align-items:center;vertical-align:middle;line-height:1}
.component-symbol>.sw-symbol{width:1.25em!important;height:1.25em!important;flex:none;vertical-align:middle}
.component-copy{color:inherit;font:inherit;background:transparent!important}
html[data-ui-runtime=web] body.faithful-target[data-board-background] dialog#modal[open] #modalbody .generator-inventory .field-expedition button.generator-mode-option[data-generator-mode]{--cosmic-control-hover:#cad9d4;--cosmic-control:#dbe3df;transition:none!important}
html[data-ui-runtime=web] body.faithful-target[data-board-background] dialog#modal[open] #modalbody .generator-inventory .field-expedition button.generator-mode-option[data-generator-mode]:is(:hover,:focus-visible,:active):not(:disabled){background:#cad9d4!important;background-image:none!important;color:#243841!important}
.field-expedition .mission-label{color:#954e29!important}
.field-expedition .research-card-count{color:#4d626c!important}
.generator-compact-status .generator-mini-token{display:inline-block;vertical-align:middle;margin-right:4px}
.generator-compact-status .sw-symbol{width:20px!important;height:20px!important;vertical-align:middle}
/* Standalone 06 cards with one shared title and progress area. */
html[data-ui-runtime=web] body.faithful-target[data-board-background] dialog#modal:has(.research-collection) {
 width: fit-content!important;
 min-width: 0!important;
 max-width: calc(100vw - 16px)!important;
 max-height: calc(100dvh - 16px)!important;
 padding: 16px!important;
 background: none!important;
 border: 0!important;
 border-radius: 0!important;
 box-shadow: none!important;
 overflow: auto!important;
}
html[data-ui-runtime=web] body.faithful-target[data-board-background] dialog#modal:has(.research-collection)::backdrop {
 background: #0b131ee0;
 backdrop-filter: blur(8px);
}
html[data-ui-runtime=web] body.faithful-target[data-board-background] #modal:has(.research-collection) #modalbody {
 background: none!important;
 padding: 0!important;
 max-height: none!important;
 overflow: visible!important;
}
html[data-ui-runtime=web] body.faithful-target[data-board-background] #modal:has(.research-collection) > .close {
 top: 24px!important;
 right: 24px!important;
 left: auto!important;
}
html body.faithful-target[data-board-background] #modal .research-collection {
 --collection-card-width: 296px;
 --collection-gap: 20px;
 width: min(calc(var(--collection-columns) * (var(--collection-card-width) + var(--collection-gap)) - var(--collection-gap)), calc(100vw - 48px));
 max-width: 100%;
 min-width: 0;
 color: #f6ebd6!important;
}
#modal .discoveries-header {
 display: flex;
 align-items: flex-start;
 justify-content: space-between;
 flex-wrap: wrap;
 gap: 10px 22px;
 padding: 12px 54px 12px 14px;
 border: 1px solid #c4a66e65;
 border-radius: 10px;
 background: #162535;
 color: inherit;
}
#modal .discoveries-header h2 {
 margin: 0;
 font-size: clamp(22px, 3vw, 30px);
 line-height: 1.15;
 color: inherit;
}
#modal .discoveries-header h2 small {
 display: flex;
 align-items: center;
 gap: 6px;
 margin-top: 7px;
 font: 600 13px/1.3 system-ui, sans-serif;
 color: #e4d3b6;
}
#modal .discoveries-header h2 small img { width: 20px; height: 20px; }
#modal .discoveries-progress {
 color: #f6ebd6;
 font: 13px/1.4 system-ui, sans-serif;
}
#modal .discoveries-progress h3 {
 margin: 0 0 4px;
 font: 600 11px/1.3 system-ui, sans-serif;
 color: #e4c38c;
}
#modal .discoveries-progress p { margin: 0; color: inherit; }
#modal .discoveries-progress .sw-symbol { width: 17px; height: 17px; }
.discoveries-next {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 5px 8px;
 margin-top: 5px;
 color: #e4d3b6;
}
.discoveries-meter { display: inline-flex; gap: 3px; }
.discoveries-meter > span {
 width: 11px;
 height: 5px;
 border: 1px solid #ad9b7c;
 border-radius: 3px;
}
.discoveries-meter > .filled { background: #e4c38c; }
html body.faithful-target[data-board-background] #modal .research-collection-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), var(--collection-card-width)));
 grid-auto-rows: 1fr;
 align-items: stretch;
 justify-content: center;
 gap: var(--collection-gap);
 margin: 18px 0;
}
html body.faithful-target[data-board-background] #modal .research-collection-card {
 display: grid;
 min-width: 0;
 height: auto!important;
}
html body.faithful-target[data-board-background] #modal .research-collection-card .field-expedition {
 --field-art: 194px;
 height: auto;
 max-width: none;
}
html body.faithful-target[data-board-background] #modal .research-collection-card .field-expedition .research-card-copy {
 padding: 16px 20px 18px!important;
}
html body.faithful-target[data-board-background] #modal .research-collection-card .field-expedition h3 {
 font-size: 21px!important;
 overflow-wrap: anywhere;
}
#modal .research-collection-card .field-expedition .research-description { display: block; }
#modal :is(.research-collection-card,.scan-option) .mission-footer { margin-top: auto; }
#modal .research-collection-card .mission-footer { gap: 5px; }
#modal .research-collection-card .field-expedition .generator-modes { gap: 6px; }
html body.faithful-target[data-board-background] #modal .research-collection > .research-collection-note {
 color: #f6ebd6!important;
 background: transparent!important;
 font: 13px/1.45 system-ui, sans-serif;
 padding: 10px 0!important;
 border-top: 1px solid #c4a66e65;
}
#modal .research-collection-note p { margin: 6px 0 0; color: inherit; }
#modal .research-collection-note summary { color: #e4c38c!important; background: none!important; cursor: pointer; }
#modal .discoveries-empty { color: #f6ebd6; }
