/* Shared KeyCaller visual system. Loaded after feature styles on both pages.
   Semantic route, class and warning colors remain owned by their components. */
@font-face{font-family:'Lilita One';src:url('LilitaOne-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Nunito;src:url('Nunito-Variable.ttf') format('truetype');font-weight:200 1000;font-style:normal;font-display:swap}
:root{
  --bg:#1a1829;--bg2:#221f36;--panel:#2b2843;--panel2:#343054;--panel3:#3b3663;
  --ink:#110f1c;--contour:#110f1c;--text:#f2eee6;--muted:#c0bad7;--lav:#c9c1ff;
  --green:#4edb95;--green2:#368f5e;--yellow:#ffc81c;--cream:#eae3db;
  --kc-line:#554d78;--kc-soft:#332e4d;--kc-accent:#4edb95;--r:12px;--c:3px;
  --shadow:0 8px 0 #0b091c80;--shadow-m:0 5px 0 #0b091c80;--shadow-s:0 3px 0 #0b091c80;
  --gloss:inset 0 2px 0 #ffffff20;--bevel:inset 0 -4px 0 #0003;
  font-family:Nunito,system-ui,sans-serif;
}
/* Keep the original display/body pairing. Feature styles already use these
   families; never force one face onto every heading, control and data label. */
body{font-family:Nunito,system-ui,sans-serif}
:root body :is(code,pre,kbd,samp,.rtlink){font-family:ui-monospace,Consolas,monospace!important}
body{background:radial-gradient(ellipse at 85% -10%,#4d356755,transparent 48%),radial-gradient(ellipse at 0 100%,#254c4330,transparent 50%),var(--bg);font-weight:600;line-height:1.5}
.wrap{max-width:1800px;padding:24px 32px 40px;margin:auto}
:is(h1,h2,h3,h4){font-family:'Lilita One',Impact,sans-serif;font-weight:400;letter-spacing:.025em;text-transform:uppercase;text-shadow:none;-webkit-text-stroke:0}
button,input,select,textarea{font-size:14px}
button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}
:is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--kc-accent);outline-offset:4px}
button{transition:background .15s,border-color .15s,color .15s}
header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px;padding:0 0 20px;border-bottom:1px solid var(--kc-line)}
header .brand{display:flex;align-items:center;gap:12px}
header .logo{display:block;flex:none;width:46px;height:46px;min-width:46px;border:0;border-radius:0;background:none;box-shadow:none;transform:none;line-height:1}
header .logo img{display:block;width:100%;height:100%}
header h1{font-size:26px;line-height:1.05;font-weight:600;letter-spacing:-1px;color:var(--text);text-transform:none;text-shadow:none;-webkit-text-stroke:0}
header .built{color:var(--muted);font-size:11px;line-height:1.5;font-weight:400;margin-top:5px}
header .tagline{font-size:12px;letter-spacing:.02em;max-width:none}
header .tagline span{color:#a19ab8;margin:0 10px}
.dungeon-choice{border:1px solid var(--kc-line);border-radius:10px;background:var(--bg2);box-shadow:none;margin-bottom:12px}
.dungeon-choice>summary{padding:11px 15px;min-height:44px}
.dungeon-choice>summary strong{font-weight:600;letter-spacing:0}
/* The atlas artwork has its own layer. Names always sit on an opaque surface;
   their contrast must never depend on map brightness or the selected wash. */
.dungeon-choice .dungeons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:4px 14px 14px;margin:0;overflow:visible;scroll-snap-type:none}
.dungeons .tile{display:flex;flex-direction:column;gap:0;isolation:isolate;min-width:0;min-height:0;padding:0;overflow:hidden;border:1px solid #52616a;border-radius:9px;background:#14212b;color:#f1eee5;box-shadow:0 3px 0 #070f15;font-size:14px;font-weight:600;text-align:left;text-transform:none;text-shadow:none;transform:none;transition:border-color .16s,box-shadow .16s}
.dungeons .tile::before,.dungeons .tile::after{content:none}
.dungeons .tile .tile-art{display:flex;align-items:flex-end;min-height:86px;padding:14px;background-color:#2b383a;background-image:linear-gradient(90deg,#0d1c24b8,#0d1c2440),var(--tile-art,none);background-size:cover;background-position:center 34%;border-bottom:1px solid #67715b66}
.dungeons .tile .glyph{color:#f5e5bd;font-size:32px;line-height:1;font-weight:600;letter-spacing:-1px;text-shadow:0 2px 9px #000b;margin:0}
.dungeons .tile .tile-caption{display:flex;flex:1;flex-direction:column;gap:12px;padding:14px;background:#14212b}
.dungeons .tile .nm{display:block;min-height:44px;color:#f1eee5;font-size:17px;font-weight:600;line-height:1.3;letter-spacing:0;text-transform:none;overflow-wrap:normal}
.dungeons .tile .st{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:auto 0 0;padding:0;color:#b6c7cd;font-size:12px;font-weight:400;line-height:1.4}
.dungeons .tile .tile-arrow{color:#dfc187;font-size:18px;line-height:1}
.dungeons .tile.sel{border-color:#4edb95;background:#182d2c;box-shadow:0 3px 0 #070f15,inset 0 0 0 1px #4edb95}
.dungeons .tile.sel .tile-caption{background:#182d2c}
.dungeons .tile.sel .st,.dungeons .tile.sel .tile-arrow{color:#a4edcf}
.dungeons .tile:hover{border-color:#d8ba80;transform:none;box-shadow:0 3px 0 #070f15,0 0 0 1px #d8ba8044}
.dungeons .tile:active{transform:none;box-shadow:none}
.dungeons .tile:focus-visible{outline:3px solid #f2cd85;outline-offset:3px}
@media(max-width:1099px){.dungeon-choice .dungeons{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:559px){
  .dungeon-choice .dungeons{grid-template-columns:minmax(0,1fr);gap:8px;padding:4px 10px 12px}
  .dungeons .tile{display:grid;grid-template-columns:68px minmax(0,1fr);min-height:86px}
  .dungeons .tile .tile-art{min-height:100%;padding:10px 6px;align-items:center;justify-content:center;border-bottom:0;border-right:1px solid #67715b66}
  .dungeons .tile .glyph{font-size:25px}
  .dungeons .tile .tile-caption{padding:12px;gap:6px}
  .dungeons .tile .nm{min-height:0;font-size:16px;line-height:1.3}
  .dungeons .tile .st{font-size:11px}
}
.wb-context{gap:12px;padding:4px 0 12px;font-size:12px;color:var(--muted)}
.wb-context .wb-eyebrow{display:none}
.wb-context a{font-size:12px;color:var(--kc-accent)}
#wb-plans{padding:7px 12px;min-height:36px;font-size:12px}
.wb-eyebrow{font-size:10px;line-height:1.5;font-weight:600;letter-spacing:.17em;color:var(--green);margin:0 0 8px}
#wb-nav{display:flex;gap:4px;padding:5px;border:1px solid var(--kc-line);border-radius:10px;background:#221f36;margin:0 0 28px;scroll-margin-top:12px}
#wb-nav button{flex:1;min-height:46px;padding:8px 14px;border:0;border-radius:6px;background:none;color:var(--muted);font-size:13px;font-weight:600;gap:10px}
#wb-nav button:last-child{border:0}
#wb-nav button span{display:grid;place-items:center;min-width:24px;height:24px;border:1px solid #405561;border-radius:50%;font-size:10px;font-variant-numeric:tabular-nums;color:#9ab0bb}
#wb-nav button[aria-current=step]{background:#233b39;color:#c5f7e2;box-shadow:inset 0 0 0 1px #4d8071;border:0}
#wb-nav button[aria-current=step] span{background:var(--green);color:#12251f;border-color:var(--green)}
#wb-nav button[aria-disabled=true]{color:#7f959f}
.wb-heading{gap:24px;margin:12px 0 28px}
.wb-heading h2{font-size:clamp(27px,2.6vw,40px);font-weight:600;line-height:1.13;letter-spacing:-.035em}
.wb-heading p:not(.wb-eyebrow){font-size:14px;font-weight:400;line-height:1.6;color:var(--muted);margin-top:10px;max-width:650px}
.wb-pane h3{font-size:18px;line-height:1.35;font-weight:600;color:var(--text);letter-spacing:-.02em}
.wb-primary,.wb-secondary,.wb-text{border-radius:7px;font-size:13px;font-weight:600;line-height:1.4;min-height:42px;padding:10px 15px;box-shadow:none;text-transform:none;letter-spacing:0}
.wb-primary{background:var(--green);color:#10271f;border:1px solid var(--green)}
.wb-primary:hover{background:#b3f2d9;border-color:#b3f2d9}
.wb-secondary{background:var(--panel);border:1px solid #7a6f9c;color:var(--text)}
.wb-secondary:hover{background:#48406c;border-color:#c9c1ff}
.wb-text{color:var(--green);padding-left:0}
.wb-start-grid{gap:14px;margin-bottom:32px}
.wb-start-card{position:relative;isolation:isolate;overflow:hidden;padding:26px;min-height:258px;border:1px solid var(--kc-line);border-radius:12px;background:linear-gradient(135deg,#3b3259,#221f36);box-shadow:none}
.wb-start-card.wb-feature{border-color:#507e6e;background:linear-gradient(130deg,#1c3a33,#2b2843)}
.wb-start-card.wb-feature::after{content:'';position:absolute;z-index:-1;right:-24px;top:-25px;width:155px;height:155px;background:url('keycaller-mark.svg') center/contain no-repeat;opacity:.12;transform:rotate(-12deg);pointer-events:none}
.wb-card-icon{display:grid;place-items:center;width:38px;height:38px;border:1px solid #5b817766;border-radius:50%;font-size:23px;font-weight:400;margin-bottom:22px;background:#11271f44;color:var(--green)}
.wb-start-card p{font-size:14px;font-weight:400;line-height:1.6;margin:12px 0 24px;max-width:36ch}
.wb-start-card .wb-text{font-size:12px}
.wb-reference-heading{border-top:1px solid var(--kc-line);padding-top:24px}
.wb-reference-heading h3{font-size:20px}
.wb-reference-heading p{font-size:13px;line-height:1.6}
#wb-run-slot,.wb-disclosure{background:var(--bg2);border-color:var(--kc-line);border-radius:10px;box-shadow:none}
.wb-disclosure>summary{font-weight:600}
.wb-mechanic-note{border:1px solid #7e69453d;border-left:3px solid var(--yellow);border-radius:6px;background:#a78a4310;color:#e8cfa1;padding:10px 13px;font-size:12px;line-height:1.55}
#wb-build .stage{grid-template-columns:minmax(0,1.75fr) minmax(360px,1fr);gap:18px}
#wb-build .map{border:1px solid #4b615e;border-radius:10px;background:#10191d;box-shadow:0 8px 32px #0003}
.sechead{font-size:10px;font-weight:600;letter-spacing:.13em;color:#c9c1ff;margin-bottom:10px}
.sechead::after{background:var(--kc-line)}
.sechead small{font-size:10px;font-weight:400;letter-spacing:0;color:var(--muted)}
#map .tools{gap:6px;top:10px;right:10px}
#map .tools button{width:38px;height:38px;border:1px solid #607872;border-radius:7px;background:#12201eed;box-shadow:0 2px 8px #0004;color:#e6f4ee;font-size:18px;transform:none;backdrop-filter:blur(8px)}
#map .tools button:hover{background:#315249;border-color:#c9c1ff}
#map .legend{background:#211c32eb;border:1px solid #67598488;border-radius:7px;padding:6px 9px;box-shadow:none;backdrop-filter:blur(8px);font-size:10px}
#map .legend .lgt{font-size:10px;color:#cadadf}
#rtyours .rt-sticky-tools{background:var(--bg);border-bottom:1px solid var(--kc-line);box-shadow:0 8px 14px #1a1829e6;padding-top:0}
#rtyours .rt-sticky-tools .stepbar{background:var(--panel);border:1px solid var(--kc-line);border-radius:9px;padding:10px;gap:6px}
#rtyours .pbtn,#rtyours .rtbar button{border:1px solid #685b8b;border-radius:6px;background:#393156;color:var(--text);font-size:12px;font-weight:600;box-shadow:none;min-height:36px;padding:7px 10px;transform:none}
#rtyours .pbtn:hover{background:#2e4852;border-color:#c9c1ff}
#rtyours #rtnew{background:var(--green);color:#10271f;border-color:var(--green)}
#rtyours .rtedbanner{background:#142825;border:1px solid #3f695b;border-radius:6px;font-size:11px;font-weight:400;color:#c3ddcf;margin-top:8px;padding:8px 10px}
#rtyours .rtedbanner b{font-weight:600}
#rtyours .stephint{font-size:11px;font-weight:400;line-height:1.6;color:var(--muted)}
#rtyours .rtpk summary{font-size:12px;font-weight:600;padding:7px 2px}
#rtyours .rtpacks{gap:5px;max-height:142px;scrollbar-width:thin}
#rtyours .rtpc{min-height:28px;border:1px solid #77688e;border-radius:5px;background:#352e50;color:#eee9fa;box-shadow:none;font-size:11px;font-weight:600;letter-spacing:0;padding:4px 7px;transform:none}
#rtyours .rtpc small{font-size:10px;font-weight:400;color:inherit;opacity:.8}
#rtyours .rtpc.in{background:#264d40;border-color:#6ca38d;color:#d2f5e4}
#rtyours .rtpc.sel{background:#dfbf78;border-color:#efcf88;color:#262213}
#rtyours .rtpc.boss{border-color:var(--yellow)}
#rtlist .rty{background:#2b2843;border:1px solid #514770;border-left:3px solid var(--pc,var(--green));border-radius:9px;box-shadow:none;padding:13px 12px;margin-top:12px}
#rtlist .rty.sel{background:#393257;border-color:#4edb95;box-shadow:inset 0 0 0 1px #4edb9522}
#rtlist .rty .n{border:1px solid #0a181d;border-radius:7px;box-shadow:none;font-size:24px;font-weight:600;letter-spacing:-1px}
#rtlist .rty .gt{border-width:1px;box-shadow:none;border-radius:4px;font-weight:600}
.wb-export{border:1px solid #466d5e;border-radius:10px;background:#152d28;box-shadow:none}
:is(#planner,#timed-insights,#plan-checkpoints,#run-lookup){border-color:var(--kc-line);background:var(--bg2);box-shadow:none;border-radius:10px}
#wb-group #planner,#wb-execute #timed-insights{border:1px solid var(--kc-line);background:var(--bg2);border-radius:10px}
#wb-group #planner :is(input,select){background:#1c192c;border-color:#675984;font-weight:400;border-radius:7px}
#wb-group #planner button{background:var(--panel2);border-color:#675984;font-weight:600;border-radius:7px}
#wb-group #planner button[aria-pressed=true]{background:#254a3e;border-color:var(--green);color:#b8f5dc}
#wb-group #planner details{border-color:var(--kc-line)}
#wb-group #planner .plan-cohort{background:#2b2843;font-weight:400;color:var(--muted)}
#wb-group #planner .plan-cohort.warn{color:#e8cfa1;background:#a78a4310}
#wb-group #planner .plan-card{background:var(--panel);border-color:var(--kc-line)}
#utility-overview{background:var(--bg2);border-color:var(--kc-line);border-radius:10px}
#utility-overview>summary{font-weight:600}
#utility-overview .uo-scope{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
#utility-overview .uo-scope button{min-height:36px;font:800 12px Nunito}
#utility-overview .uo-scope button[aria-pressed=true]{background:var(--panel3);border-color:var(--purple);color:var(--text)}
#utility-overview .uo-scope-note,#utility-overview .uo-empty{font:600 12px/1.6 Nunito;color:var(--muted);margin:0 0 12px}
#utility-overview .uo-empty-summary{font:600 11px Nunito;color:var(--muted)}
/* Preparation and pull details use the same ink, parchment and purple as the map.
   Green remains a confirmed tool state; gold calls attention to a decision. */
#utility-overview>summary strong{font:400 17px 'Lilita One',Nunito;color:var(--cream)}
#utility-overview>summary:before,.pu-review>summary:before{color:var(--yellow)}
#utility-overview .uo-body,#utility-overview .uo-cap article{border-color:var(--kc-line)}
#utility-overview .uo-cap{background:var(--panel);border-color:var(--kc-line);box-shadow:0 3px 0 var(--ink)}
#utility-overview .uo-cap>summary b{font:400 17px 'Lilita One',Nunito;color:var(--cream)}
#utility-overview .uo-cap>summary span,#utility-overview .uo-intro p,#utility-overview .uo-foot{color:var(--muted)}
#utility-overview .uo-role{color:#f0cc83}
#utility-overview .uo-cap h3 button{color:var(--text);text-decoration-color:var(--lav)}
#utility-overview .uo-cap h3 span,#utility-overview .uo-links{color:var(--muted)}
#utility-overview .uo-cap p{color:var(--text)}
#utility-overview .uo-status.covered,.pu-review .uo-status.covered{color:#a3e9ce}
#utility-overview .uo-status.prepare,.pu-review .uo-status.prepare{color:#f0cc83}
#utility-overview .uo-chip,.pu-review .pu-cap{background:var(--bg2);color:var(--text)}
#utility-overview .uo-chip.covered,.pu-review .pu-cap.covered{color:#a3e9ce}
:is(#utility-overview,.pu-review) .uo-tools button,#utility-overview .uo-links button{background:var(--panel3);border-color:#897bb4;color:var(--text);box-shadow:0 2px 0 var(--ink)}
:is(#utility-overview,.pu-review) .uo-tools button:hover,#utility-overview .uo-links button:hover{background:#4b416b;border-color:var(--lav)}
#utility-overview .uo-links a,.pu-review a{color:var(--lav)}
:is(#utility-overview,.pu-review) :focus-visible{outline-color:var(--yellow)}
.pu-review{background:var(--bg2);border-color:var(--kc-line);color:var(--text)}
.pu-review>summary,.pu-review article>strong{color:var(--cream)}
.pu-review article,.pu-review .pu-limit{border-color:var(--kc-line)}
.pu-review article>small,.pu-review .pu-limit{color:var(--muted)}
#plan-buffs{border-color:var(--kc-line)}
#plan-buffs .pb-card{background:var(--panel);border-color:var(--kc-line);box-shadow:0 3px 0 var(--ink)}
#plan-buffs .pb-card h4{font:400 19px 'Lilita One',Nunito;color:var(--cream)}
#plan-buffs .pb-card-top span,#plan-buffs .pb-provider,#plan-buffs .pb-note{color:var(--muted)}
#plan-buffs .pb-card>strong{color:#f0cc83}
#plan-buffs .pb-card p{color:var(--text)}
#plan-buffs .pb-card .pb-synergy{border-color:var(--kc-line);color:var(--muted)}
#plan-buffs .pb-card a{color:var(--lav)}
#plan-buffs #pb-example{background:var(--panel);border-color:#897348;box-shadow:inset 3px 0 0 #f0cc83}
#plan-buffs #pb-example>summary{color:var(--cream)}
#plan-buffs .pb-result output,#plan-buffs .pb-slider-label output{color:#f0cc83}
#plan-buffs .pb-result span{color:var(--muted)}
#wb-group #planner #pb-physical{background:linear-gradient(to right,#f0cc83 var(--pb-fill,50%),var(--kc-line) var(--pb-fill,50%)) center / 100% 8px no-repeat}
#planner #pb-physical::-webkit-slider-thumb{border-color:var(--cream);background:#b88a35;box-shadow:0 2px 0 var(--ink)}
#planner #pb-physical::-moz-range-thumb{border-color:var(--cream);background:#b88a35;box-shadow:0 2px 0 var(--ink)}
#planner #pb-physical:focus-visible{outline-color:var(--yellow)}
#wb-execute #plan-checkpoints{background:linear-gradient(130deg,#303c3c,#2b2843);border-color:#466d5e;border-radius:10px}
#run-lookup{padding:clamp(20px,3vw,32px)}
#run-lookup h2{font-size:32px;font-weight:600;letter-spacing:-.03em}
#run-lookup :is(input,select){background:#1c192c;border-color:#675984;color:var(--text);font-weight:400}
#run-lookup button{background:var(--green);border-color:var(--green);color:#10271f;font-weight:600}
#run-lookup button:hover{background:#b3f2d9}
#run-lookup .lookup-metrics{gap:20px 40px;padding:16px;border:1px solid var(--kc-line);border-radius:8px;background:var(--panel)}
#run-lookup .lookup-metrics b{font-size:24px;font-weight:600;font-variant-numeric:tabular-nums}
.lookup-summary{border-top-color:var(--kc-line)}
footer{border-top:1px solid var(--kc-line);font-size:11px;line-height:1.8;color:#b3accb;margin-top:30px;padding-top:18px;text-align:left}
footer a{color:#d4cced}
@media(min-width:761px){
  .wrap:has(#app[data-workbench=build]){padding-top:18px}
  .wrap:has(#app[data-workbench=build]) header{margin-bottom:12px;padding-bottom:12px}
  #app[data-workbench=build] #wb-nav{margin-bottom:14px}
  #app[data-workbench=build] #wb-nav button{min-height:38px;padding-top:6px;padding-bottom:6px}
  .wb-build-heading{margin:12px 0 16px}
  .wb-build-heading h2{font-size:26px}
}
@media(min-width:1100px){
  /* Match the scrolling editor to the adjacent map instead of leaving a long
     empty left column. The toolbar remains inside its own scroll container. */
  #wb-build .stage>.col:nth-child(2){max-height:max(530px,calc((min(100vw,1800px) - 82px)*.63636 / 1.5 + 26px))}
}
@media(max-width:1000px) and (min-width:761px){#wb-build .stage{grid-template-columns:minmax(0,1.2fr) minmax(320px,1fr)}.wb-start-card{padding:20px}.wb-context{gap:8px}}
@media(max-width:760px){
  .wrap{padding:16px 12px 28px}
  header{padding-bottom:14px;margin-bottom:14px;gap:10px}
  header .logo{width:38px;height:38px;min-width:38px}
  header h1{font-size:23px}
  header .tagline{display:none}
  .wb-context{gap:8px;font-size:11px;padding-bottom:12px}
  .wb-context a{font-size:11px}
  #wb-context{flex:1 1 220px}
  #wb-nav{gap:3px;padding:4px;margin-bottom:22px}
  #wb-nav button{flex-direction:column;gap:5px;min-height:62px;padding:7px 2px;font-size:10px;line-height:1.2}
  #wb-nav button span{height:21px;min-width:21px;font-size:9px}
  .wb-heading{gap:14px;margin:8px 0 20px}
  .wb-heading h2{font-size:29px}
  .wb-heading p:not(.wb-eyebrow){font-size:13px;line-height:1.55}
  .wb-start-grid{gap:12px;margin-bottom:24px}
  .wb-start-card{padding:20px;min-height:0;display:grid;grid-template-columns:34px 1fr;gap:0 14px}
  .wb-card-icon{grid-row:1/3;width:34px;height:34px;margin:0}
  .wb-start-card h3{font-size:19px;align-self:center}
  .wb-start-card p{grid-column:2;margin:8px 0 18px;font-size:13px}
  .wb-start-card button{grid-column:2;justify-self:start;max-width:100%}
  .wb-build-heading h2{font-size:25px}
  #wb-build .map{height:auto!important;min-height:0;max-height:none;aspect-ratio:3/2}
  #map .tools{top:8px;right:8px}
  #map .tools button{width:36px;height:36px}
  #wb-build .stage{gap:18px}
  .sechead{letter-spacing:.08em;font-size:10px}
  .sechead small{font-size:9px}
  #rtyours .rt-sticky-tools{padding:6px 0 9px}
  #rtyours .rt-sticky-tools .stepbar{padding:9px;gap:6px}
  #rtyours .pbtn{min-height:38px;font-size:11px;padding:7px 9px}
  #run-lookup h2{font-size:26px}
  footer{font-size:10px;line-height:1.8}
}
/* The active builder is a workspace: one dungeon header, a compact step strip,
   then the route. Expanded reviews stay in normal flow, above the map. */
.wrap:has(#app[data-workbench=build]){display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:24px;row-gap:0;padding-top:14px}
.wrap:has(#app[data-workbench=build])>header{grid-column:1;grid-row:1;align-self:start;border:0;padding:0;margin:0 0 8px;min-height:44px}
.wrap:has(#app[data-workbench=build])>header .logo{width:34px;height:34px;min-width:34px}
.wrap:has(#app[data-workbench=build])>header h1{font-size:22px}
.wrap:has(#app[data-workbench=build])>header .built{display:none}
.wrap:has(#app[data-workbench=build])>.dungeon-choice{grid-column:2;grid-row:1;align-self:start;justify-self:end;width:min(100%,520px);margin:0 0 8px}
.wrap:has(#app[data-workbench=build])>.dungeon-choice[open]{grid-column:1/-1;grid-row:2;width:100%;justify-self:stretch}
.wrap:has(#app[data-workbench=build])>:is(main,footer){grid-column:1/-1}
#app[data-workbench=build] .wb-context{padding:0 0 8px;min-height:36px}
#app[data-workbench=build] #wb-context{flex:initial}
#app[data-workbench=build] #wb-nav{border:0;border-bottom:1px solid var(--kc-line);border-radius:0;background:none;padding:0 0 8px;margin-bottom:12px}
#app[data-workbench=build] #wb-nav button{min-height:40px;padding:6px 10px}
#app[data-workbench=build] .wb-build-heading{margin:0 0 12px;gap:12px;align-items:center}
#app[data-workbench=build] .wb-build-heading>div:first-child{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:12px;row-gap:2px}
#app[data-workbench=build] .wb-build-heading .wb-eyebrow{margin:0;font-size:10px;letter-spacing:.06em}
#app[data-workbench=build] .wb-build-heading h2{font-size:23px;line-height:1.25}
#app[data-workbench=build] .wb-build-heading .wb-actions:has(>button:not([hidden])){flex:none}
#app[data-workbench=build] .wb-build-heading .wb-actions:not(:has(>button:not([hidden]))){display:none}
#app[data-workbench=build] .wb-mechanic-note{padding:7px 11px;margin:0 0 10px;font-size:12px;line-height:1.5}
.wb-check-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:8px;margin-bottom:12px;align-items:start}
.wb-check-row>div{min-width:0}
.wb-check-row:has(#utility-overview[open]) #wb-build-utility,.wb-check-row:has(#rvhead[aria-expanded=true]) #wb-review-slot{grid-column:1/-1}
.wb-check-row:not(:has(#rvhead)){grid-template-columns:minmax(0,1fr)}
.wb-check-row #utility-overview{margin:0;border-radius:8px}
#wb-build .wb-check-row :is(#utility-overview,#wb-review-slot){margin:0}
.wb-check-row #utility-overview>summary{padding:8px 10px;min-height:44px;gap:8px;font-size:11px}
.wb-check-row #utility-overview>summary strong{font-size:12px}
.wb-check-row .uo-chip{padding:3px 6px;font-size:11px}
.wb-check-row #rvwrap{margin:0}
.wb-check-row #rvhead{min-height:44px;box-sizing:border-box;flex-wrap:wrap;font-size:10px;line-height:1.4;letter-spacing:0;background:var(--bg2);border:1px solid var(--kc-line);border-radius:8px;padding:8px 10px}
.wb-check-row #rvhead .rvscore{font-size:12px;letter-spacing:0}
.wb-check-row .rvi{border:1px solid var(--kc-line);border-radius:7px;background:var(--bg2);font-weight:400;font-size:12px;line-height:1.5}
@media(max-width:760px){
  .wrap:has(#app[data-workbench=build]){column-gap:10px;padding-top:12px}
  .wrap:has(#app[data-workbench=build])>header{gap:0;min-height:44px;align-items:center}
  .wrap:has(#app[data-workbench=build])>header .brand{gap:6px}
  .wrap:has(#app[data-workbench=build])>header .logo{width:26px;height:26px;min-width:26px}
  .wrap:has(#app[data-workbench=build])>header h1{font-size:18px}
  .wrap:has(#app[data-workbench=build])>.dungeon-choice>summary{padding:7px 9px;gap:6px;min-height:44px}
  .wrap:has(#app[data-workbench=build])>.dungeon-choice strong{font-size:11px;overflow-wrap:anywhere}
  .wrap:has(#app[data-workbench=build])>.dungeon-choice .picker-action{display:none}
  #app[data-workbench=build] .wb-context{gap:6px;font-size:11px}
  #app[data-workbench=build] #wb-context{flex:1 1 180px}
  #app[data-workbench=build] .wb-context a{margin-left:0}
  #app[data-workbench=build] #wb-nav button{min-height:44px;flex-direction:row;font-size:10px;padding:6px 4px;gap:0}
  #app[data-workbench=build] #wb-nav button span{display:none}
  #app[data-workbench=build] .wb-build-heading h2{font-size:21px}
  #app[data-workbench=build] .wb-build-heading>div:first-child{column-gap:8px}
  #app[data-workbench=build] .wb-build-heading .wb-eyebrow{width:100%}
  .wb-check-row{grid-template-columns:minmax(0,1fr);gap:6px}
  .wb-check-row .uo-chips{width:auto;gap:4px}
  .wb-check-row #utility-overview>summary{gap:6px}
}
.rt-empty-slots{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:10px 0;padding:10px;border:1px solid var(--kc-line);border-radius:7px;color:var(--muted);font-size:12px;line-height:1.5;background:var(--bg2)}
.rt-empty-slots>span{flex:1 1 180px}
/* Original KeyCaller art direction: inked silhouettes, parchment, jewel panels
   and chunky display lettering. Geometry and scrolling are owned above. */
:root body :is(h1,h2,h3,h4,.disp,.dungeons .glyph,.dungeons .nm,.dungeon-choice strong,.wb-primary,.wb-secondary,#wb-nav button,#rtlist .n){font-family:'Lilita One',Impact,sans-serif;font-weight:400;letter-spacing:.035em}
header h1{color:var(--yellow);font-weight:400;text-transform:uppercase;letter-spacing:.04em;text-shadow:0 2px 0 #a6521e,0 4px 0 var(--ink);-webkit-text-stroke:.35px var(--ink)}
header .built{font-weight:700;color:#c8bfdc}
header .tagline{font-weight:700;color:#c8bfdc}
.dungeon-choice{border:3px solid var(--ink);border-radius:12px;background:#28233e;box-shadow:inset 0 2px 0 #ffffff0d,0 4px 0 #0b091c66}
.dungeon-choice>summary{border-bottom-color:#64527e}
.dungeon-choice>summary strong{color:#eee4cb;font-size:16px;text-transform:uppercase}
.dungeon-choice .dungeons{gap:12px;padding-bottom:18px}
.dungeons .tile{border:3px solid var(--ink);border-radius:11px;background:#eee4cf;box-shadow:inset 0 2px 0 #fff8,0 5px 0 #0d0a1c;transition:box-shadow .12s,border-color .12s}
.dungeons .tile .tile-art{min-height:66px;padding:10px 12px;background-color:#a59068;background-image:linear-gradient(90deg,#110f1c66,#110f1c00),var(--tile-art,none);border-bottom:3px solid var(--ink)}
.dungeons .tile .glyph{font-size:30px;color:#fff0cd;text-shadow:0 2px 0 var(--ink),1px 0 0 var(--ink),-1px 0 0 var(--ink);letter-spacing:.04em}
.dungeons .tile .tile-caption{padding:12px;gap:8px;background:#eee4cf;box-shadow:inset 0 -5px 0 #d4c4a6}
.dungeons .tile .nm{font-size:17px;line-height:1.2;min-height:41px;text-transform:uppercase;color:#201a2b}
.dungeons .tile .st{font-weight:800;color:#514438;font-size:11px}
.dungeons .tile .tile-arrow{color:#514438;font-weight:900}
.dungeons .tile.sel{background:#8ce3b3;border-color:var(--ink);box-shadow:0 5px 0 #0d0a1c,0 0 0 2px #4edb95}
.dungeons .tile.sel .tile-caption{background:#8ce3b3;box-shadow:inset 0 -5px 0 #60b989}
.dungeons .tile.sel .st,.dungeons .tile.sel .tile-arrow{color:#173d2a}
.dungeons .tile:hover{border-color:#b38231;box-shadow:0 5px 0 #0d0a1c,0 0 0 2px #ffc81c}
.dungeons .tile:active{box-shadow:0 2px 0 #0d0a1c}
.dungeons .tile:focus-visible{outline-color:#ffc81c;outline-offset:3px}
#wb-nav{background:#252039;border:3px solid var(--ink);box-shadow:inset 0 2px 0 #ffffff0d,0 4px 0 #0b091c66}
#wb-nav button{color:#ddd4f7;font-size:14px;border-radius:7px}
#wb-nav button[aria-current=step]{background:#4edb95;color:#102a20;box-shadow:inset 0 2px 0 #ffffff44,inset 0 -4px 0 #247d4f;border:2px solid var(--ink)}
#wb-nav button[aria-current=step] span{background:#1e4736;border-color:#1e4736;color:#c5f6db}
.wb-heading h2{color:#f3e6c7;text-shadow:0 2px 0 #8e7659,0 4px 0 var(--ink)}
.wb-pane h3{color:#e0d3ff}
.wb-eyebrow{color:#ffda67;font-weight:900;letter-spacing:.12em}
.wb-primary,.wb-secondary{border:3px solid var(--ink);border-radius:9px;box-shadow:inset 0 2px 0 #fff4,inset 0 -4px 0 #0003,0 3px 0 #0d0a1c;font-size:15px;text-transform:uppercase;min-height:44px}
.wb-primary{background:#4edb95;color:#122d21}
.wb-primary:hover{background:#80eeb2;border-color:#9beaba}
.wb-secondary{background:#c9c1ff;color:#262039}
.wb-secondary:hover{background:#ded9ff;border-color:#eee6ff}
.wb-start-card{border:3px solid var(--ink);border-radius:14px;background:linear-gradient(135deg,#44365e,#2b2843);box-shadow:inset 0 3px 0 #ffffff13,0 6px 0 #0d0a1c}
.wb-start-card.wb-feature{border-color:var(--ink);background:linear-gradient(125deg,#304f46,#2b2843);box-shadow:inset 0 3px 0 #81dabd30,0 6px 0 #0d0a1c}
.wb-card-icon{border:2px solid var(--ink);border-radius:8px;background:#c9c1ff;color:#262039;box-shadow:inset 0 -3px 0 #8277c1;transform:rotate(-4deg);font-weight:900}
#wb-build .map{border:4px solid var(--ink);border-radius:12px;box-shadow:inset 0 2px 0 #dac697,0 5px 0 #0d0a1c}
.sechead{color:#d1c5ed;font-weight:900}
.sechead::after{height:2px;background:linear-gradient(90deg,#bd8c3f,#bd8c3f15)}
#map .tools button{border:2px solid var(--ink);background:#44385e;box-shadow:inset 0 2px 0 #ffffff20,inset 0 -3px 0 #221a35;color:#f2eaff;border-radius:8px}
#map .tools button:hover{background:#655281;border-color:#ad96ce}
#rtyours .rt-sticky-tools .stepbar{border:3px solid var(--ink);background:#302943;box-shadow:inset 0 2px 0 #ffffff18,0 3px 0 #0d0a1c}
#rtyours .pbtn,#rtyours .rtbar button{border:2px solid var(--ink);background:#4b3e63;color:#f4eefa;box-shadow:inset 0 2px 0 #ffffff18,inset 0 -3px 0 #0003;font-weight:900}
#rtyours .pbtn:hover{background:#65517e;border-color:#9f87c1}
#rtyours #rtnew{background:#4edb95;border-color:var(--ink);color:#112c20}
#rtlist .rty{border:3px solid var(--ink);border-left:6px solid var(--pc,var(--green));background:linear-gradient(135deg,#39324f,#2b2843);box-shadow:inset 0 2px 0 #ffffff13,0 4px 0 #0d0a1c}
#rtlist .rty.sel{background:linear-gradient(135deg,#4a3d65,#343054);border-color:#7b6b9d;border-left-color:var(--pc,var(--green));box-shadow:inset 0 2px 0 #ffffff20,0 4px 0 #0d0a1c}
#rtlist .rty .n{border:3px solid var(--ink);box-shadow:inset 0 2px 0 #ffffff44,inset 0 -4px 0 #0003;border-radius:9px}
.wb-export{border:3px solid var(--ink);background:#284638;box-shadow:inset 0 2px 0 #ffffff13,0 4px 0 #0d0a1c}
#app[data-workbench=build] .wb-context{padding-bottom:4px}
#app[data-workbench=build] .wb-build-heading{margin-bottom:8px}
#wb-execute #plan-checkpoints{border:3px solid var(--ink);border-top:3px solid #ac8748;background:linear-gradient(130deg,#3b304e,#29253e);box-shadow:inset 0 2px 0 #ffffff12,0 4px 0 #0d0a1c}
#wb-execute #plan-checkpoints :is(input,select){background:#201b30;border-color:#716080;color:#f0e9f7}
#wb-execute #plan-checkpoints button{background:#514163;border:2px solid var(--ink);color:#f0e9f7;box-shadow:inset 0 2px 0 #ffffff13,inset 0 -3px 0 #0003}
.dungeon-choice .dungeons{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:720px){.dungeon-choice .dungeons{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:1200px){.dungeon-choice .dungeons{grid-template-columns:repeat(8,minmax(0,1fr))}}
@media(min-width:960px) and (max-width:1199px){
  .dungeons .tile{display:grid;grid-template-columns:48px minmax(0,1fr)}
  .dungeons .tile .tile-art{min-height:100%;padding:8px 4px;align-items:center;justify-content:center;border-bottom:0;border-right:3px solid var(--ink)}
  .dungeons .tile .glyph{font-size:25px}
}
@media(max-width:559px){
  .dungeons .tile{display:flex;flex-direction:column}
  .dungeons .tile .tile-art{min-height:38px;padding:8px;border-bottom:3px solid var(--ink);border-right:0;justify-content:flex-start}
  .dungeons .tile .glyph{font-size:25px}
  .dungeons .tile .tile-caption{padding:10px;gap:6px}
  .dungeons .tile .nm{min-height:38px;font-size:16px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
