/* PC UI/UX pass (2026-11-05, Claude): growth(강화) grid, deck(덱·진화 스킬), synergy popup.
   PC/tablet-landscape only. Phone layouts are untouched. Loaded last. */
@media (min-width:1024px) and (min-height:600px){
  /* ---------- 강화: overview layout ---------- */
  #releasePanel .work044.work089.work076:not(.work-selected076){grid-template-columns:232px minmax(0,1fr)!important;grid-template-rows:52px minmax(0,1fr)!important;gap:14px 18px!important;padding:16px 18px!important}
  #releasePanel .work044.work089 .work-races050{grid-column:1/-1!important;grid-row:1!important;margin-right:250px!important;gap:10px!important;height:52px!important;min-height:52px!important}
  #releasePanel .work044.work089 .work-races050 button{height:52px!important;min-height:52px!important;font-size:18px!important;font-weight:700}
  #releasePanel .work044.work089 .work-list{grid-column:1!important;grid-row:2!important;flex-direction:column!important;gap:10px!important;padding:0!important;overflow-y:auto!important}
  #releasePanel .work044.work089 .work-list>button{flex:0 0 72px!important;height:72px!important;min-height:72px!important;max-height:72px!important;flex-direction:row!important;justify-content:flex-start!important;gap:12px!important;padding:0 16px!important;font-size:18px!important;font-weight:700;text-align:left}
  #releasePanel .work044.work089 .work-list .work-category-art089{display:block!important;width:40px!important;height:40px!important;flex:0 0 40px!important}
  #releasePanel .work044.work089 .work-browser076{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:column;gap:12px!important;min-height:0}
  #releasePanel .work044.work089 .work-toolbar089{min-height:44px!important;gap:10px!important;padding:0!important;font-size:15px}
  #releasePanel .work044.work089 .work-toolbar089 .work-filter045{height:44px;min-width:150px;font-size:16px!important;padding:0 12px!important;border-radius:8px;background:#1E2933!important;border:1px solid #3E4F5C!important;color:#ECE6D6}
  #releasePanel .work044.work089 .work-toolbar089>button{height:44px;min-height:44px!important;font-size:16px!important;padding:0 16px!important}
  #releasePanel .work044.work089 .work-toolbar089>strong{font-size:16px!important;color:#A9B3BA}
  /* card grid: whole cards, nothing overlaps */
  #releasePanel .work044.work089 .work-grid076{flex:1 1 auto;min-height:0;overflow-y:auto;grid-template-columns:repeat(auto-fill,minmax(188px,1fr))!important;grid-auto-rows:calc((100% - 28px) / 3)!important;gap:14px!important;padding:2px 6px 2px 2px!important;align-content:start!important;scroll-snap-type:y mandatory;scroll-padding-top:2px}
  #releasePanel .work044.work089 .work-grid076 .work-card076{position:relative;display:flex!important;flex-direction:column!important;align-items:stretch;gap:8px!important;height:auto!important;min-height:0!important;padding:10px!important;border-radius:10px;overflow:hidden;scroll-snap-align:start;background:linear-gradient(#22303C,#18222C)!important}
  #releasePanel .work044.work089 .work-card076>.work-portrait089{position:static!important;inset:auto!important;transform:none!important;order:0;flex:1 1 auto!important;width:100%!important;height:auto!important;min-height:0!important;object-fit:contain!important;border-radius:6px;background:radial-gradient(ellipse at 50% 60%,#2b3d4c,#18222c 70%)}
  #releasePanel .work044.work089 .work-card076>.work-name089{position:static!important;order:1;flex:0 0 40px;height:40px!important;display:flex!important;align-items:center;justify-content:center;padding:0 4px!important;font-size:16px!important;line-height:19px!important;font-weight:700;white-space:normal!important;text-align:center;overflow:hidden;color:#F4E6BD;background:none!important}
  #releasePanel .work044.work089 .work-card076>.work-level089{position:absolute!important;left:16px!important;top:16px!important;z-index:2;padding:2px 7px!important;border:1px solid #5B7385!important;border-radius:6px;background:#0d1620e6!important;font-size:14px!important;line-height:18px!important;font-weight:700!important;font-family:inherit!important;color:#ECE6D6;font-variant-numeric:tabular-nums}
  #releasePanel .work044.work089 .work-card076>.work-material089{position:relative!important;inset:auto!important;order:2;flex:0 0 22px;height:22px!important;margin:0!important;border:1px solid #3E4F5C!important;border-radius:6px;overflow:hidden;display:block!important;background:#101921}
  #releasePanel .work044.work089 .work-material089 progress{position:absolute!important;inset:0!important;height:100%!important;width:100%!important;margin:0!important}
  #releasePanel .work044.work089 .work-material089 small{position:absolute!important;inset:0!important;z-index:1;display:block!important;font-size:13px!important;line-height:20px!important;font-weight:700!important;color:#ECE6D6!important;text-align:center;font-variant-numeric:tabular-nums}
  #releasePanel .work044.work089 .work-card076>.upgrade-ready076{top:16px!important;right:16px!important;font-size:12px!important;padding:3px 6px!important;border-radius:6px}
  #releasePanel .work044.work089 .work-card076>.new086{top:16px!important;right:16px!important;bottom:auto!important}

  /* ---------- 덱 · 진화 스킬 ---------- */
  #releasePanel .release-shell:has(.deck-panel)>.release-panel-head h2{font-size:22px!important}
  #releasePanel .deck-panel .deck-races{gap:10px!important;height:44px}
  #releasePanel .deck-panel .deck-races>button{min-width:96px;height:44px!important;min-height:44px!important;font-size:17px!important}
  /* unit list shows whole rows only */
  #releasePanel .deck-panel .deck-unit-list{scroll-snap-type:y mandatory!important;grid-auto-rows:calc((100% - 3 * 12px) / 4)!important;row-gap:12px!important}
  #releasePanel .deck-panel .deck-unit-list>button{scroll-snap-align:start;height:auto!important;min-height:0!important;overflow:hidden}
  #releasePanel .deck-panel .deck-unit-list>button>img{height:calc(100% - 30px)!important;max-height:none!important;width:auto!important;max-width:100%!important;min-height:0!important;object-fit:contain!important}
  #releasePanel .deck-panel .deck-unit-list>button>strong{font-size:17px!important;line-height:21px}
  #releasePanel .deck-panel .deck-unit-list>button>small{display:none!important}
  /* evolution tree: readable text and portraits */
  #releasePanel .deck-panel .relationship-recipe h4{font-size:16px!important;margin-bottom:8px}
  #releasePanel .deck-panel .relationship-deck nav button{font-size:16px!important;min-height:44px!important}
  #releasePanel .deck-panel .relationship-skills>button{font-size:16px!important;min-height:46px!important}
  #releasePanel .deck-panel .relationship-skills>button img{width:30px!important;height:30px!important}
  #releasePanel .deck-panel .relationship-deck nav button img{width:28px!important;height:28px!important}
  #releasePanel .deck-panel .relationship-unit{min-height:64px!important}
  #releasePanel .deck-panel .relationship-unit img{width:46px!important;height:46px!important;object-fit:contain}
  #releasePanel .deck-panel .relationship-unit strong{font-size:16px!important;line-height:20px}
  #releasePanel .deck-panel .relationship-unit .relationship-count,#releasePanel .deck-panel .relationship-unit small{font-size:14px!important}
  #releasePanel .deck-panel .deck-hero568 h3{font-size:30px!important}

  /* ---------- 군단 시너지 팝업 ---------- */
  #synergyGuide .codex-shell.v3-shell{zoom:min(var(--ui-k,1),1.3);height:auto!important;max-height:calc(100dvh / min(var(--ui-k,1),1.3) - 32px)!important;width:min(1180px,calc(100vw / min(var(--ui-k,1),1.3) - 48px))!important;max-width:none!important}
  #synergyGuide .v31-synergy-main{min-height:0!important;max-height:calc(100dvh / min(var(--ui-k,1),1.3) - 230px)!important}
  #synergyGuide .v31-synergy-main{overflow:hidden!important;align-items:stretch!important;height:calc(100dvh / min(var(--ui-k,1),1.3) - 230px)!important;grid-template-rows:minmax(0,1fr)!important}
  #synergyGuide .v31-synergy-main>.v31-trait-list,#synergyGuide .v31-synergy-main>.v31-trait-detail{min-height:0!important;height:100%!important;max-height:100%!important;overflow-y:auto!important;overscroll-behavior:contain}
}

/* Synergy inspector: match the recipe lab at every screen size. */
#synergyGuide .codex-shell.v3-shell{border:2px solid #B88A3A!important;border-image:none!important;border-radius:10px!important;background:#18222c!important;box-shadow:inset 0 1px 0 rgba(255,240,200,.14),0 0 0 4px rgba(8,12,18,.6),0 18px 48px rgba(0,0,0,.6)!important;overflow:hidden}
html.pixel-ui038 #synergyGuide .codex-shell.v3-shell{border-image-source:none!important}
#synergyGuide .codex-header{background:linear-gradient(180deg,#22313f,#1a2631)!important;border-bottom:1px solid #3E4F5C!important;padding:10px 16px!important}
#synergyGuide .codex-header small{color:#A9B3BA!important;letter-spacing:.08em}
#synergyGuide .codex-header h2{color:#FFF0C8!important;text-shadow:0 2px 0 #3a2a10!important}
#synergyGuide .codex-header .close{width:40px!important;height:40px!important;border:1px solid #5B7385!important;border-image:none!important;border-radius:8px!important;background:linear-gradient(180deg,#3A4E5E,#26343F)!important;box-shadow:0 3px 0 #10171e!important;color:#ECE6D6!important}
#synergyGuide .codex-header .close:active{transform:translateY(2px);box-shadow:0 1px 0 #10171e!important}
#synergyGuide .v31-side-tabs button{border:1px solid #5B7385!important;border-image:none!important;border-radius:8px!important;background:linear-gradient(180deg,#3A4E5E,#26343F)!important;color:#ECE6D6!important;box-shadow:0 3px 0 #10171e!important}
#synergyGuide .v31-side-tabs button.active{border:2px solid #FFF0B8!important;background:linear-gradient(180deg,#F0C060,#D9A23F)!important;color:#1A1408!important;box-shadow:0 3px 0 #6b4c16!important}
#synergyGuide .v31-synergy-main{border-top:1px solid #3E4F5C!important}
#synergyGuide .v31-trait-list{background:#141c24!important}
#synergyGuide .v31-trait-detail{background:#1a2631!important}
#synergyGuide :is(.v31-trait,.v31-stage,.v31-member){border:1px solid #3E4F5C!important;border-image:none!important;border-radius:8px!important;background:linear-gradient(180deg,#26333F,#1c2731)!important}
#synergyGuide .v31-trait.active,#synergyGuide .v31-stage.achieved{border-color:#79A878!important}
#synergyGuide .v31-member.owned{border-color:#A9894B!important}
#synergyGuide .v31-trait.selected,#synergyGuide .v31-stage.current{outline:2px solid #E3B04B!important;outline-offset:-2px!important}
#synergyGuide .v31-trait:focus-visible,#synergyGuide .v31-member:focus-visible,#synergyGuide .v31-side-tabs button:focus-visible{outline:2px solid #FFF0B8!important;outline-offset:1px}
@media(max-height:450px){#synergyGuide .codex-header{padding:6px 12px!important}#synergyGuide .codex-header .close{width:34px!important;height:34px!important}}

/* Phone landscape: same whole-card layout for the 강화 grid (names never covered). */
@media (max-height:599px) and (orientation:landscape){
  #releasePanel .work044.work089 .work-browser076{display:flex!important;flex-direction:column;min-height:0}
  /* card grid: whole cards, nothing overlaps */
  #releasePanel .work044.work089 .work-grid076{flex:1 1 auto;min-height:0;overflow-y:auto;grid-template-columns:repeat(auto-fill,minmax(118px,1fr))!important;grid-auto-rows:calc((100% - 8px) / 2)!important;gap:8px!important;padding:2px 4px 2px 2px!important;align-content:start!important;scroll-snap-type:y mandatory;scroll-padding-top:2px}
  #releasePanel .work044.work089 .work-grid076 .work-card076{position:relative;display:flex!important;flex-direction:column!important;align-items:stretch;gap:4px!important;height:auto!important;min-height:0!important;padding:6px!important;border-radius:10px;overflow:hidden;scroll-snap-align:start;background:linear-gradient(#22303C,#18222C)!important}
  #releasePanel .work044.work089 .work-card076>.work-portrait089{position:static!important;inset:auto!important;transform:none!important;order:0;flex:1 1 auto!important;width:100%!important;height:auto!important;min-height:0!important;object-fit:contain!important;border-radius:6px;background:radial-gradient(ellipse at 50% 60%,#2b3d4c,#18222c 70%)}
  #releasePanel .work044.work089 .work-card076>.work-name089{position:static!important;order:1;flex:0 0 30px;height:30px!important;display:flex!important;align-items:center;justify-content:center;padding:0 4px!important;font-size:12px!important;line-height:14px!important;font-weight:700;white-space:normal!important;text-align:center;overflow:hidden;color:#F4E6BD;background:none!important}
  #releasePanel .work044.work089 .work-card076>.work-level089{position:absolute!important;left:9px!important;top:9px!important;z-index:2;padding:1px 5px!important;border:1px solid #5B7385!important;border-radius:6px;background:#0d1620e6!important;font-size:11px!important;line-height:14px!important;font-weight:700!important;font-family:inherit!important;color:#ECE6D6;font-variant-numeric:tabular-nums}
  #releasePanel .work044.work089 .work-card076>.work-material089{position:relative!important;inset:auto!important;order:2;flex:0 0 18px;height:18px!important;margin:0!important;border:1px solid #3E4F5C!important;border-radius:6px;overflow:hidden;display:block!important;background:#101921}
  #releasePanel .work044.work089 .work-material089 progress{position:absolute!important;inset:0!important;height:100%!important;width:100%!important;margin:0!important}
  #releasePanel .work044.work089 .work-material089 small{position:absolute!important;inset:0!important;z-index:1;display:block!important;font-size:11px!important;line-height:16px!important;font-weight:700!important;color:#ECE6D6!important;text-align:center;font-variant-numeric:tabular-nums}
  #releasePanel .work044.work089 .work-card076>.upgrade-ready076{top:9px!important;right:9px!important;font-size:11px!important;padding:3px 6px!important;border-radius:6px}
  #releasePanel .work044.work089 .work-card076>.new086{top:9px!important;right:9px!important;bottom:auto!important}

}
