/* Shared recipe fields, deck search, and lane navigation. */
.lane-navigation{display:flex;gap:12px;align-items:center;font-size:12px!important;white-space:nowrap}.lane-navigation>span{color:#8d987f;font-size:10px;letter-spacing:.1em;text-transform:uppercase}.lane-navigation a{color:#dce7c3!important;text-decoration:none}.lane-navigation a:hover{color:#c8f000!important}.site-header{gap:20px;flex-wrap:wrap}.site-header .header-tools{gap:16px}.site-header nav[aria-label="Primary navigation"]{gap:18px}.copy-field{margin:15px 0 5px;min-width:0}.copy-field>label{display:block;color:#b8c4a7;font-size:11px;margin-bottom:7px}.copy-field>div{display:flex;align-items:stretch;border:1px solid #414d33;background:#0b1009}.copy-field textarea{width:100%;min-width:0;resize:vertical;border:0;background:transparent;color:#dbe9c3;font:11px/1.65 ui-monospace,monospace;padding:11px;overflow-wrap:anywhere;white-space:pre-wrap;box-sizing:border-box}.copy-icon{flex:0 0 38px;display:grid;place-items:start center;padding-top:13px;background:#1b2515;color:#d7e8b9;border:0;border-left:1px solid #3a472e;cursor:pointer}.copy-icon:hover{background:#344325;color:#effbcf}.copy-feedback{display:block;min-height:17px;margin-top:3px;font-size:10px;color:#c7e697}.recipe-variants{border:0;margin:16px 0;padding:0;display:flex;flex-wrap:wrap;gap:6px;min-width:0}.recipe-variants legend{font-size:12px;color:#b3bea1;margin-bottom:8px}.recipe-variants button{padding:8px 10px;border:1px solid #475339;background:#151d10;color:#b9c6a3;font-size:11px;flex:1;text-align:left;min-width:100px;cursor:pointer}.recipe-variants button span{display:block;font-size:10px;overflow-wrap:anywhere;opacity:.8;margin-top:4px}.recipe-variants button[aria-pressed=true]{border-color:#d7bd7a;background:#2f2c1b;color:#f3dfab}.model-search-wrap{position:relative;z-index:10;margin-bottom:10px}.model-search-wrap .search-box{margin:0}.model-search-wrap input{font-size:12px}.model-search-wrap [role=listbox]{position:absolute;top:calc(100% + 4px);left:0;right:0;max-height:300px;overflow-y:auto;background:#131b10;border:1px solid #7e8d63;box-shadow:0 14px 30px #000a}.model-search-wrap [role=listbox][hidden]{display:none}.model-search-wrap [role=option]{cursor:pointer;padding:11px;border-bottom:1px solid #34432a;font-size:11px;overflow-wrap:anywhere}.model-search-wrap [role=option] strong{font-weight:600;color:#e4eccf}.model-search-wrap [role=option] small{display:block;font-size:10px;line-height:1.5;margin-top:6px;color:#a7b890}.model-search-wrap [role=option]:hover,.model-search-wrap [aria-selected=true]{background:#303d21}.no-suggestions{padding:12px;color:#cbbf9a;font-size:12px}.card-library .draw-model-button{width:100%;margin:0 0 17px;padding:12px;background:#d5bb78;color:#17170d;justify-content:center;font-size:13px}.deck-and-card{display:grid;grid-template-columns:43px minmax(0,1fr);gap:12px;align-items:start}.deck-and-card .card-stock{width:40px;min-height:100px;margin-top:10px;padding:4px;gap:0;place-items:center;place-content:center}.deck-and-card .card-stock .deck-logo{display:block;width:28px;height:28px;object-fit:contain}.gold-card{cursor:pointer;transition:filter .15s,transform .15s}.gold-card:hover{filter:brightness(1.08);transform:translateY(-2px)}.gold-card:focus-visible{outline:3px solid #c8f000;outline-offset:4px}.gold-card header{grid-template-columns:37px minmax(0,1fr);gap:5px;align-items:center}.gold-card h3{font-size:16px}.spark-photo{position:relative;display:inline-block;flex-shrink:0;width:24px;height:13px;overflow:hidden;background:#070707;border-radius:2px}.spark-photo img{position:absolute!important;max-width:none!important;width:480%!important;height:auto!important;left:-312%!important;top:-354%!important;object-fit:fill!important}.header-spark{width:37px;height:20px}.spark-icons{gap:2px}.spark-icons .spark-photo{width:18px;height:10px}.nix-ready{display:flex;align-items:center;gap:5px}.nix-ready img{width:25px;height:25px;flex-shrink:0}.gold-card .nix-ready strong{font-size:9px}.deck-and-card .card-plate strong,.deck-and-card .card-plate.checkpoint strong{font-size:10px}.deck-and-card .gold-card .card-plate.status strong{font-size:10px}.card-library .hand-navigation{margin-top:0}.lane-page{max-width:1130px;margin:auto;padding:40px 4vw 65px}.back-to-cards{font-size:13px;color:#c8d8ad;text-decoration:none}.lane-page-heading{display:flex;align-items:center;justify-content:space-between;margin:35px 0 25px}.lane-page-heading h1{font-size:60px;line-height:1;margin:10px 0 16px;letter-spacing:-.04em}.lane-page-heading p{font-size:13px;color:#abb999}.lane-page-heading>img{width:90px;height:90px}.lane-tabs{display:flex;gap:8px;flex-wrap:wrap}.lane-tabs a{border:1px solid #405035;padding:9px 19px;color:#bacba7;text-decoration:none;font-size:13px}.lane-tabs a[aria-current=page]{background:#c8ed65;color:#121b0c;border-color:#c8ed65}.lane-intro{max-width:760px;font-size:13px;color:#a3b293;line-height:1.7;margin:25px 0 30px}.lane-model{border:1px solid #3e4c32;background:#12190f;padding:24px;margin-bottom:24px}.lane-model>header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.lane-model h2{margin:7px 0 8px;font-size:23px;line-height:1.3;overflow-wrap:anywhere}.lane-model header p{font:11px/1.6 ui-monospace,monospace;color:#a5b593;overflow-wrap:anywhere}.lane-publisher{color:#d5bf87;font-size:11px;letter-spacing:.05em}.lane-ready{display:flex;align-items:center;gap:8px;font-size:11px;min-width:145px;color:#d5e6bb}.lane-ready img{width:31px;height:31px}.lane-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border-top:1px solid #35452a;padding-top:20px}.lane-facts dt{font-size:10px;color:#9aa98d;margin-bottom:5px}.lane-facts dd{font-size:12px;line-height:1.5;margin:0;overflow-wrap:anywhere}.lane-model .recipe-variants button{flex:0 1 auto;min-width:170px}.lane-variant[hidden]{display:none}.lane-model details{padding-top:13px;margin-top:8px;border-top:1px solid #34442b;font-size:12px;line-height:1.6;color:#b8c6a4}.lane-model summary{cursor:pointer;color:#dce9c9}.lane-model details a{display:block;color:#dec68d}.lane-model code{overflow-wrap:anywhere}.lane-model .copy-field textarea{font-size:12px}.lane-model details .copy-field textarea{min-height:200px}
@media(max-width:1250px){.site-header .header-tools{margin-left:auto}.lane-navigation{gap:9px!important}.site-header .brand{margin-right:auto}.site-header{row-gap:12px}.site-header nav[aria-label="Primary navigation"]{gap:12px;font-size:12px}}
@media(max-width:760px){.card-library>.model-search-wrap,.card-library>.draw-model-button,.card-library>.deck-and-card{grid-column:1/-1}.deck-and-card{width:100%;max-width:410px;margin:auto;grid-template-columns:42px minmax(0,1fr);gap:12px}.deck-and-card .gold-card h3{font-size:17px}.site-header .header-tools{flex-wrap:wrap;justify-content:space-between;width:100%;margin:0}.lane-navigation{order:2;width:100%;justify-content:space-between}.site-header nav[aria-label="Primary navigation"]{order:1}.lane-page{padding:27px 17px}.lane-page-heading h1{font-size:46px}.lane-page-heading>img{width:58px;height:58px}.lane-model{padding:16px}.lane-model>header{display:block}.lane-ready{margin:15px 0}.lane-facts{grid-template-columns:1fr 1fr}.lane-model h2{font-size:20px}.lane-tabs a{padding:8px 12px}.lane-model .copy-field textarea{font-size:11px}}
@media(prefers-reduced-motion:reduce){.gold-card{transition:none}}
@media(max-width:760px){
 .site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:15px 10px;padding:16px;box-sizing:border-box}
 .site-header .brand{grid-column:1;grid-row:1;margin:0;min-width:0}
 .site-header .header-tools{display:contents}
 .site-header .language-picker{grid-column:2;grid-row:1;justify-self:end}
 .site-header nav[aria-label="Primary navigation"]{grid-column:1/-1;grid-row:2;width:100%;min-width:0;justify-content:flex-start;gap:20px}
 .site-header .lane-navigation{grid-column:1/-1;grid-row:3;min-width:0;width:100%;justify-content:space-between;gap:5px!important;font-size:11px!important}
 .site-header .lane-navigation>span{font-size:9px}
}
/* Brand and help share the top row; profile links sit beneath them. */
.site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;height:auto;gap:12px 24px;padding-top:16px;padding-bottom:16px;align-items:center}
.site-header .brand{grid-column:1;grid-row:1;margin:0;min-width:0}
.site-header .brand-mark{width:120px;height:120px;flex:0 0 120px}
.site-header>.lane-navigation{grid-column:1/-1;grid-row:2;margin:0;width:100%;justify-content:center;gap:32px!important}
.site-header .header-tools{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:18px;margin:0;width:auto;flex-wrap:nowrap}
.site-header .help-navigation{display:flex;align-items:center;gap:18px;font-size:12px;white-space:nowrap;width:auto;flex:0 0 auto}
.site-header .help-navigation a{color:#dce7c3;text-decoration:none}
.site-header .help-navigation a:hover{color:#c8f000}
.site-header .language-picker{grid-column:auto;grid-row:auto}
footer{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;min-height:0;padding-top:25px;padding-bottom:25px}
footer>div{flex-wrap:wrap;row-gap:12px}footer>div a{white-space:nowrap}
.footer-lane-navigation{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.footer-lane-navigation a{color:#dce7c3;text-decoration:none;font-size:12px}
.footer-lane-navigation a:hover{color:#c8f000}
.reference-details{margin:24px 0;border-top:1px solid #35452a;border-bottom:1px solid #35452a;padding:14px 0}
.reference-details>summary{cursor:pointer;color:#dce7c3;font-weight:600;font-size:14px}
.reference-details>summary:focus-visible{outline:2px solid #c8f000;outline-offset:5px}
.reference-details[open]>summary{margin-bottom:18px}
.reference-details table{display:block;overflow-x:auto}
@media(max-width:760px){
 .site-header{grid-template-columns:minmax(0,1fr) auto;gap:12px 16px;padding:16px}
 .site-header .brand-mark{width:112.5px;height:112.5px;flex-basis:112.5px}
 .site-header>.lane-navigation{justify-content:space-between;gap:5px!important}
 footer{align-items:flex-start;flex-direction:column;gap:16px}
 .footer-lane-navigation{gap:14px}
}
@media(max-width:480px){
 .site-header{column-gap:8px;padding:12px}
 .site-header .brand-name{display:none}
 .site-header .header-tools,.site-header .help-navigation{gap:10px}
 .site-header .language-picker{gap:4px}
 .site-header .language-picker>span{display:none}
}

.hand-counts{display:grid;text-align:center;gap:3px;font-variant-numeric:tabular-nums}
.hand-counts #card-position{font-size:10px;color:#919c83}
.card-stock .shuffle-label{position:absolute;top:calc(100% + 12px);left:50%;transform:translateX(-50%) translateY(-3px);padding:6px 9px;border:1px solid var(--gold);border-radius:4px;background:#14180f;color:#ffedb0;font:600 11px/1.2 system-ui;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .15s,transform .15s;z-index:5}
.card-stock:hover .shuffle-label,.card-stock:focus-visible .shuffle-label,.card-stock:active .shuffle-label{opacity:1;transform:translateX(-50%) translateY(0)}
@media(prefers-reduced-motion:reduce){.card-stock .shuffle-label{transition:none}}

/* Reserve control space so sound labels cannot reflow the cluster heading. */
.comic-column .board-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px}
.comic-column .board-heading>div:first-child{min-width:0}
.comic-column .board-heading h1{font-size:clamp(18px,1.4vw,22px);line-height:1.2;letter-spacing:-.025em;margin:0}
.comic-column .board-actions{gap:10px;flex-wrap:nowrap}
.comic-column .board-actions .sound-toggle{box-sizing:border-box;width:96px;min-width:96px;min-height:34px;margin:0;padding:6px 8px;text-align:center}
.comic-column .board-actions .text-button{white-space:nowrap}
@media(max-width:420px){.comic-column .board-heading{gap:10px}.comic-column .board-actions{gap:6px}.comic-column .board-actions .sound-toggle{width:82px;min-width:82px}}

/* 30% wider than the previous model card and shuffle deck; shrink to fit. */
.deck-and-card{grid-template-columns:62.8px minmax(0,1fr)}
.deck-and-card .card-stock{width:59.8px}
.deck-and-card .card-stock .deck-logo{width:41.6px;height:41.6px}
@media(min-width:1191px){.builder-layout{grid-template-columns:minmax(382.9px,437.5px) minmax(340px,1fr) minmax(260px,300px)}}
@media(min-width:761px) and (max-width:1190px){.builder-layout{grid-template-columns:minmax(280px,369.9px) minmax(340px,1fr)}}
@media(max-width:760px){.deck-and-card{max-width:580.5px}}

/* Image-model cards distinguish shell setup from validated deployment. */
.card-engine-pin,.card-pending{display:block;font-size:.72em;line-height:1.25;margin-top:4px}
.shell-card .nix-ready strong{font-size:clamp(10px,1vw,15px)}
.shell-card .card-pending{color:#694c17;font-weight:700}
.shell-status{border-color:#c6a45e;background:#c6a45e12}
.shell-status span{display:block;line-height:1.5}
.nix-ready .card-pending{display:block;font-size:9px;line-height:1.35;margin-top:3px;color:#3e491c;font-weight:700}
.shell-workflow-links{display:flex;flex-wrap:wrap;gap:12px}
#catalog-count{font-size:10px;line-height:1.4;text-align:right;max-width:240px}
