/* A compact fantasy-defense workbench, not a second archive. */
:root{--action-height:184px;--work-ink:#244f5a;--work-gold:#bd954b}
body{padding-bottom:calc(var(--action-height) + 24px)}main{max-width:1400px;margin:auto;padding:20px 28px 28px}body>header{position:static;min-height:66px}body>header nav{gap:18px}body>header nav a{min-height:44px}
.workbench-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:8px}.workbench-heading .eyebrow{font-size:10px;letter-spacing:.15em;color:#8b743d;margin:0 0 3px}.workbench-heading h1{font-size:30px;line-height:1.2;letter-spacing:-1px;margin:0}.account{padding:0 0 0 20px;min-width:0;border:0;border-left:2px solid #c5b77e;text-align:right}.account>strong{font-size:24px;line-height:1.2}.account p{font-size:11px;margin:4px 0}.account small{font-size:10px}
.dev-panel{font-size:11px;color:#607e81;border-bottom:1px solid #c5d7d4}.dev-panel>summary{min-height:36px;cursor:pointer;padding:9px 0}.dev-panel .mode-banner{margin:0 0 8px}.dev-panel>p{font-size:11px;line-height:1.7}.status-strip{padding:6px 0 12px;min-height:44px;margin:0;gap:10px}.status-strip .status{font-size:12px;margin:0}.status-strip button{min-height:36px;padding:6px 12px;font-size:11px;flex-shrink:0}
.workspace{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(0,1.6fr);gap:22px;align-items:start;margin:0}.library{padding:16px;background:#f8fcf6;scroll-margin-top:16px;border-top-color:#78aaa4}.library h2{font-size:18px}.library .section-heading{gap:8px}.library .owned-only{font-size:12px}.card-search{display:block;font-size:12px;margin-top:10px;color:#4a747b}.card-search input{display:block;min-height:44px;width:100%;max-width:100%;border:1px solid #a9c7c5;background:#fffef8;color:#234f59;border-radius:3px;padding:9px 11px;font:inherit;font-size:14px;margin-top:5px}.filters{display:grid;grid-template-columns:1.2fr .7fr 1fr;gap:8px;margin:10px 0 6px}.filters label{font-size:11px;min-width:0}.filters select{width:100%;min-width:0;font-size:12px;padding:7px}.filter-actions{display:flex;align-items:center;justify-content:space-between;font-size:12px}.filter-actions label{display:flex;align-items:center;gap:7px}.filter-actions button{font-size:11px;min-height:44px;padding:6px 12px}.filter-actions input,.owned-only input{width:18px;height:18px;accent-color:#388578}.collection-order-note{font-size:10px;line-height:1.6;margin:7px 0}.cards{max-height:calc(100dvh - var(--action-height) - 380px);min-height:210px;padding:4px}.member-group{margin-bottom:12px}.member-group>h3{font-size:12px}.member-cards{grid-template-columns:repeat(var(--member-columns),94px);gap:8px}.member-cards>.card{width:94px}.card>strong{font-size:12px}.card small{font-size:10px}.card img{aspect-ratio:3/4}.card .grade{font-size:11px}.card .lock{font-size:8px}.card .ready-badge{display:block;padding:3px;color:#38766b;font-size:9px}.card .ready-badge[data-ready=false]{color:#967539}
.workbench.detail{position:static;max-height:none;overflow:visible;padding:18px 20px;background:#fffef7;border-top:3px solid #bea361;box-shadow:0 6px 18px #557f7610}.selected-card{display:flex;gap:15px;align-items:center;margin:0}.selected-card img{width:84px;height:112px;border-width:2px}.selected-summary{flex:1;min-width:0}.selected-card h2{font-size:27px;margin:3px 0}.selected-card #detail-grade{font-size:12px;margin:0}.selected-card strong{display:block;font-size:19px;margin:4px 0 0;color:#3e887b}.selected-card #lock-card{font-size:11px;padding:8px;min-height:44px;align-self:flex-start}.selected-card #open-picker{display:none}.selection-note{font-size:11px;line-height:1.6;margin:10px 0 0;color:#6a817d}
.preparation-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:14px}.growth-block{margin:0;padding:14px 0 0;border-top:1px solid #d6dfcb}.block-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.block-heading h3{font-size:16px;margin:0;color:#315d64}.block-heading h3>span{font:12px Georgia,serif;color:#ac8a4d;margin-right:8px}.block-heading h3 small{font-size:10px;color:#829085;font-weight:400}.block-heading>b{font-size:12px;color:#4b8475}.growth-block>label{font-size:12px;margin:10px 0 5px;display:block}.growth-block select{width:100%;font-size:13px;min-width:0}.growth-block p{font-size:12px;line-height:1.65;margin:8px 0}.growth-block .muted{font-size:11px;line-height:1.7}.growth-block progress{margin:12px 0;height:7px}.potion-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.potion-actions button{font-size:12px;min-height:44px;padding:7px 4px}.potion-actions #fill-exp{background:#e4f1e6;border-color:#9abbb1;color:#376f65}.potion-preview{min-height:40px;color:#6e744c;background:#f4f1e0;padding:8px;border-radius:3px}.material-cards{display:flex;gap:7px;flex-wrap:wrap;min-height:76px}.material-chip{position:relative;width:55px;margin:0}.material-chip img{width:46px;height:58px;object-fit:cover;object-position:center 20%;border:1px solid #c0af75;border-radius:2px}.material-chip figcaption{font-size:9px;line-height:1.4;overflow-wrap:anywhere;color:#486e73}.material-chip b{position:absolute;top:38px;right:0;padding:1px 4px;color:#fff9df;background:#385f68;font-size:11px;border-radius:2px}.material-block #lock-note{font-size:10px;color:#829086}
.booster-block{margin-top:14px;padding-top:13px}.booster-native,.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;clip-path:inset(50%);overflow:hidden;white-space:nowrap}.booster-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:10px}.booster-choice{min-width:0;min-height:62px;text-align:left;padding:8px;font-size:12px;border:1px solid #c2d2c6;border-radius:4px;background:#f8faf1;color:#3a626b}.booster-choice strong,.booster-choice small{display:block}.booster-choice strong{font-size:12px}.booster-choice small{font-size:10px;line-height:1.5;margin-top:3px}.booster-choice[aria-pressed=true]{background:#e0eee3;border-color:#6d9b82;box-shadow:inset 0 0 0 1px #85af93}.booster-choice:disabled{opacity:1;color:#84938a;background:#f0f2e9;border-style:dashed}.booster-block #booster-stock{font-size:10px;margin-bottom:0}
.secondary-panel{border-top:1px solid #d2ddcf;margin-top:12px;padding-top:1px}.secondary-panel>summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:12px;color:#5b7b79}.secondary-panel p{font-size:12px;line-height:1.8}.secondary-panel a{font-size:12px;display:inline-flex;align-items:center;min-height:44px}.secondary-panel .risk{font-size:11px;line-height:1.8;padding:10px;background:#f8f0dc}.secondary-panel .readiness{margin-top:6px}.secondary-panel .pool-row{margin-top:0}.secondary-panel .dismantle-row{margin:10px 0 0}.workbench-links{display:flex;gap:18px;border-top:1px solid #d2ddcf;font-size:11px;margin-top:10px}.workbench-links a{display:inline-flex;align-items:center;min-height:44px;color:#39788a}.backup-panel{margin-top:18px;padding:6px 0}.backup-panel>summary{font-size:12px}
.action-dock{position:fixed;z-index:30;left:50%;bottom:0;transform:translateX(-50%);width:min(1400px,calc(100% - 36px));display:grid;grid-template-columns:minmax(0,1fr) 150px minmax(260px,1fr);gap:18px;align-items:center;padding:15px 22px max(14px,env(safe-area-inset-bottom));background:#fffdf2f7;border:1px solid #b7c6b7;border-top:3px solid #ba9c58;border-radius:8px 8px 0 0;box-shadow:0 -8px 30px #335c7222;backdrop-filter:blur(10px);color:#2e535c}.action-summary{min-width:0}.action-summary>strong{display:block;font-size:16px;line-height:1.5;color:#294f5a;overflow-wrap:anywhere}.action-summary #odds{border:0;padding:0;font-size:12px;line-height:1.5;margin:4px 0;color:#52765c}.action-summary #spend-preview{border:0;background:none;padding:0;margin:3px 0;font-size:11px;line-height:1.6;color:#65796f}.action-summary .gate{font-size:11px;line-height:1.5;margin:3px 0;color:#95663b}.action-dock #enhance{width:100%;min-height:60px;font-size:17px;padding:9px}.result-slot{min-height:94px;min-width:0;border-left:1px solid #ccd8c7;padding-left:16px;display:flex;align-items:center}.result-slot>#result-idle{font-size:12px;line-height:1.9;color:#819085}.operation-result{scroll-margin:0;min-width:0;width:100%;background:transparent;border:0;margin:0;padding:0;display:flex;gap:10px;align-items:center;box-shadow:none;border-radius:0}.operation-result[hidden]{display:none}.result-copy{min-width:0;flex:1}.operation-result #operation-target{font-size:10px;margin:0 0 4px;color:#6a817c;line-height:1.4;overflow-wrap:anywhere}.operation-result #outcome-title{display:block;font-size:21px;line-height:1.3;color:var(--result-color,#46725e)}.operation-result #operation-message{display:block;font-size:12px;line-height:1.65;font-weight:600;color:#466b67;overflow-wrap:anywhere}.operation-result[data-outcome] #operation-message{font-size:10px;color:#74837c}.operation-result #outcome-note{font-size:11px;line-height:1.5;margin:3px 0;color:#62796e}.operation-result #recover-operation{font-size:12px;min-height:44px;padding:6px 8px;margin-top:6px}.operation-result[data-error=true] #operation-message{color:#9e5439}.operation-result[data-outcome=destroy] #outcome-title{color:#b24138}.collection-toast{display:none!important}
#card-picker{width:min(600px,calc(100vw - 20px));max-height:calc(92dvh - env(safe-area-inset-bottom));padding:0;background:#f5faf2;color:#294f5a;border:1px solid #a8c4bb;border-top:3px solid #c2a45f;border-radius:12px 12px 4px 4px;overflow:hidden}#card-picker::backdrop{background:#24485999;backdrop-filter:blur(4px)}.picker-heading{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid #c9dacd}.picker-heading h2{font-size:18px;margin:0}.picker-heading button{min-height:44px;font-size:12px;padding:7px 14px}#card-picker .library{border:0;padding:12px 14px;background:none}#card-picker .cards{max-height:calc(92dvh - 365px);min-height:160px}#card-picker .collection-order-note{display:none}
@media(min-width:1001px){#library-host{position:sticky;top:16px}.status-strip button{min-height:36px}}
@media(max-width:1000px) and (min-width:741px){.workspace{grid-template-columns:minmax(250px,.9fr) minmax(0,1.4fr);gap:14px}.preparation-grid{grid-template-columns:1fr}.booster-options{grid-template-columns:repeat(2,minmax(0,1fr))}.action-dock{grid-template-columns:minmax(0,1fr) 130px minmax(220px,.9fr);gap:10px;padding:12px}.action-summary>strong{font-size:14px}.workbench.detail{padding:15px}.selected-card h2{font-size:23px}}
@media(max-width:740px){body>header{padding:8px 4%;min-height:68px;gap:3px}body>header nav{gap:7px}body>header nav a{font-size:11px;min-height:40px}main{padding:12px 12px 24px}.workbench-heading{gap:10px;margin-bottom:4px}.workbench-heading h1{font-size:25px}.workbench-heading .eyebrow{font-size:8px}.account{padding-left:10px}.account>strong{font-size:21px}.account p{font-size:10px;margin:3px 0}.account small{display:none}.dev-panel>summary{font-size:10px;min-height:32px;padding:8px 0}.status-strip{padding:4px 0 8px}.status-strip .status{font-size:10px}.status-strip button{font-size:10px;min-height:36px;padding:5px 8px}.workspace{display:block}#library-host{display:none}.workbench.detail{padding:13px 14px;max-height:none;overflow:visible}.selected-card{gap:11px}.selected-card img{width:63px;height:84px}.selected-card h2{font-size:24px}.selected-card #detail-grade{font-size:11px}.selected-card strong{font-size:16px}.selected-card #lock-card{min-height:44px;font-size:10px;padding:7px}.selected-card #open-picker{display:inline-flex;align-items:center;min-height:44px;font-size:12px;padding:6px 10px;margin-top:6px;background:#e5f0e5;border-color:#a7c5b1}.selection-note{font-size:10px;margin-top:8px}.preparation-grid{grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.block-heading h3{font-size:14px}.block-heading h3>span{font-size:10px;margin-right:5px}.block-heading>b{font-size:10px}.growth-block{padding-top:11px}.growth-block p{font-size:11px}.growth-block>label{font-size:11px}.growth-block select{font-size:13px;min-height:44px;padding:6px}.growth-block .muted{font-size:10px}.potion-actions{grid-template-columns:1fr;gap:6px}.potion-actions button{font-size:12px}.potion-preview{min-height:54px;padding:7px;font-size:10px!important}.material-chip{width:44px}.material-chip img{width:40px;height:52px}.material-chip b{top:33px;font-size:10px}.material-chip figcaption{font-size:8px}.material-cards{gap:5px}.material-block #lock-note{font-size:9px}.booster-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.booster-choice{min-height:57px}.secondary-panel{margin-top:9px}.secondary-panel>summary{font-size:12px}.workbench-links{gap:16px}.action-dock{width:100%;border-inline:0;border-radius:8px 8px 0 0;grid-template-columns:minmax(0,1fr) 108px;gap:5px 10px;padding:10px 14px max(10px,env(safe-area-inset-bottom))}.action-summary>strong{font-size:13px;line-height:1.45}.action-summary #odds{font-size:10px;margin:3px 0}.action-summary #spend-preview,.action-summary .gate{font-size:10px;line-height:1.5;margin:2px 0}.action-dock #enhance{min-height:60px;font-size:15px}.result-slot{grid-column:1/-1;border-left:0;border-top:1px solid #d7dfcc;padding:7px 0 0;min-height:80px}.result-slot>#result-idle{font-size:11px;margin:0}.operation-result{gap:11px}.operation-result #outcome-title{font-size:22px}.operation-result #operation-message{font-size:11px}.operation-result #operation-target{font-size:9px;margin-bottom:1px}.operation-result #outcome-note{font-size:10px}.backup-panel{margin-top:12px}.backup-panel>summary{font-size:12px}.member-cards{grid-template-columns:repeat(var(--member-columns),94px)}.member-cards>.card{width:94px}.filters{grid-template-columns:1.2fr .7fr 1fr}.filters label{min-width:0}.library .cards{padding:4px}.card-search input{font-size:16px}}
@media(max-width:350px){.preparation-grid{gap:9px}.workbench.detail{padding:12px 10px}.selected-card #lock-card{padding:5px}.selected-card h2{font-size:22px}.material-chip{width:40px}.material-chip img{width:36px;height:47px}.action-dock{padding-inline:10px;grid-template-columns:minmax(0,1fr) 100px}.booster-choice strong{font-size:11px}}
@media(prefers-reduced-motion:reduce){.action-dock{backdrop-filter:none}.card{transition:none}}
/* Trial uses the same bright game workshop, with an always-visible authority seal. */
.trial-workbench-banner:not([hidden]){display:flex;align-items:center;gap:16px;padding:16px 20px;margin-bottom:16px;border:2px solid #527d53;border-left:7px solid #d6a837;border-radius:14px;background:linear-gradient(115deg,#f8efd0,#edf6e9 70%);color:#223d2a;box-shadow:0 4px 0 #cfddc4}
.trial-workbench-seal{display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:12px;background:#365d41;color:#fff0ab;font-size:28px;box-shadow:inset 0 0 0 2px #d6b55e}
.trial-workbench-banner h2{font-size:21px;margin:4px 0}.trial-workbench-banner p{margin:4px 0;line-height:1.5}.trial-workbench-banner .eyebrow{color:#4b663e}
.trial-workbench-actions{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto;flex-shrink:0}.trial-workbench-actions a{padding:12px 16px;border-radius:9px;background:#355b40;color:#fff7d4;text-decoration:none;font-weight:800;min-height:44px}
@media(max-width:740px){.trial-workbench-banner:not([hidden]){flex-wrap:wrap;padding:14px;gap:10px}.trial-workbench-banner>div:not(.trial-workbench-actions){flex:1;min-width:0}.trial-workbench-actions{width:100%;margin-left:0}.trial-workbench-actions a{flex:1;text-align:center}.trial-workbench-banner h2{font-size:19px}}
@media(max-width:740px){.trial-workbench-banner[data-status=ready]:not([hidden]){display:grid;grid-template-columns:32px minmax(0,1fr)64px;gap:9px;padding:10px}.trial-workbench-banner[data-status=ready] .trial-workbench-seal{width:32px;height:36px;font-size:22px}.trial-workbench-banner[data-status=ready] .eyebrow{display:none}.trial-workbench-banner[data-status=ready] h2{font-size:17px}.trial-workbench-banner[data-status=ready] [data-trial-note]{font-size:11px;line-height:1.4}.trial-workbench-banner[data-status=ready] .trial-workbench-actions{width:auto}.trial-workbench-banner[data-status=ready] .trial-workbench-actions a{width:64px;padding:9px 5px;font-size:12px;line-height:1.5}}
