/* Quest Catalog visual pass — development */
#questsView{padding-bottom:34px}
#questsView .card{box-shadow:0 12px 30px rgba(0,0,0,.2)}

.ll-quest-page-heading{align-items:flex-start;margin:2px 0 12px;padding:4px 2px 0}
.ll-quest-heading-copy{max-width:980px}
.ll-quest-title-line{display:flex;align-items:baseline;gap:11px;flex-wrap:wrap}
.ll-quest-title-line h2{font-size:clamp(24px,3vw,32px);letter-spacing:-.025em}
.ll-quest-total-inline{display:inline-flex;align-items:center;gap:4px;color:#b7c5d4;font-size:12px;font-weight:800}
.ll-quest-total-inline strong{color:var(--gold);font-size:16px}
.ll-quest-heading-meta{margin-top:5px;color:#7f90a2;font-size:11px;letter-spacing:.01em}
.ll-quest-page-heading p{max-width:940px;line-height:1.45}

.ll-quest-impact-compact{margin-bottom:12px;padding:12px 14px;background:linear-gradient(180deg,rgba(16,28,39,.96),rgba(12,20,28,.96));border-color:#29445d}
.ll-quest-state-head{align-items:center}
.ll-quest-state-head .ll-dev-kicker{color:#73cfff}
.ll-quest-state-head h3{font-size:15px}
.ll-quest-state-head p{max-width:850px}
.ll-quest-state-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-top:10px}
.ll-quest-metric{appearance:none;display:flex;align-items:center;gap:7px;min-width:0;padding:8px 9px;border:1px solid #2b3b49;border-radius:9px;background:#0a1219;color:#dce6ef;text-align:left;transition:.15s ease}
.ll-quest-metric:hover{border-color:#52708b;background:#0d1822;transform:translateY(-1px)}
.ll-quest-metric.active{border-color:#d5ac50;background:#211a0d;box-shadow:0 0 0 1px rgba(242,198,107,.13)}
.ll-quest-metric strong{flex:0 0 auto;color:var(--gold);font-size:18px;line-height:1}
.ll-quest-metric span{min-width:0;color:#bcc9d5;font-size:11px;font-weight:850;line-height:1.15}

.ll-quest-layout{display:grid;grid-template-columns:minmax(0,2.65fr) minmax(300px,1fr);gap:12px;align-items:start}
.ll-quest-catalog-shell{min-width:0;padding:12px}
.ll-quest-toolbar{position:sticky;top:82px;z-index:8;margin:-12px -12px 10px;padding:12px;background:linear-gradient(180deg,rgba(16,24,33,.99),rgba(16,24,33,.96));border-bottom:1px solid #283747;border-radius:13px 13px 0 0;backdrop-filter:blur(8px)}
.ll-quest-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}
.ll-quest-search-row input{width:100%;height:40px;padding:9px 12px;border-color:#35526c;background:#081119;font-size:13px}
.ll-quest-search-row input:focus{outline:none;border-color:#65abff;box-shadow:0 0 0 2px rgba(101,171,255,.12)}
.ll-quest-filter-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.ll-quest-filter-chips button{appearance:none;border:1px solid #2d3b49;border-radius:999px;background:#0b131a;color:#91a1b1;padding:5px 8px;font-size:10px;font-weight:850;white-space:nowrap;transition:.12s ease}
.ll-quest-filter-chips button:hover{border-color:#53697c;color:#dce5ed}
.ll-quest-filter-chips button.active{border-color:#d6ad51;background:#241d0e;color:#ffe09a}
.ll-quest-filter-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) auto;gap:6px;align-items:center;margin-top:8px}
.ll-quest-filter-row select{min-width:0;width:100%;height:33px;padding:5px 7px;background:#0a1219;border-color:#2a3a48;font-size:11px;color:#bcc8d4}
#llQuestShown{text-align:right;white-space:nowrap;padding-left:3px}

.ll-quest-catalog-grid{display:grid!important;grid-template-columns:1fr!important;gap:7px}
.ll-quest-catalog-card{position:relative;display:block!important;min-height:0!important;padding:10px 11px!important;border-radius:10px!important;background:#0b1219!important;box-shadow:none!important;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease,transform .15s ease}
.ll-quest-catalog-card:hover{border-color:#405366;box-shadow:0 8px 20px rgba(0,0,0,.15)!important}
.ll-quest-catalog-card.status-auto_completed{border-color:#315f43!important;background:#0b1710!important;box-shadow:inset 3px 0 0 #42a162!important}
.ll-quest-catalog-card.status-auto_planned:not(.completed){border-color:#544a72!important;background:#11101b!important;box-shadow:inset 3px 0 0 #8d78bd!important}
.ll-quest-catalog-card.status-available:not(.completed){border-color:#6a5b2b!important;background:#15130c!important;box-shadow:inset 3px 0 0 #c7a647!important}
.ll-quest-catalog-card.status-planned:not(.completed){border-color:#385873!important;background:#0c151e!important;box-shadow:inset 3px 0 0 #5d91bc!important}
.ll-quest-catalog-card.status-impossible:not(.completed){border-color:#663b43!important;background:#170d10!important;box-shadow:inset 3px 0 0 #ab5966!important}
.ll-quest-catalog-card.status-unclassified:not(.completed){border-color:#3d4b59!important;background:#10161c!important;box-shadow:inset 3px 0 0 #69798a!important}
.ll-quest-catalog-card.status-event_only:not(.completed),.ll-quest-catalog-card.status-league_extra:not(.completed){border-color:#315365!important;background:#0c161b!important;box-shadow:inset 3px 0 0 #467c96!important}
.ll-quest-catalog-card.completed{border-color:#315f43!important;background:#0b1710!important;box-shadow:inset 3px 0 0 #42a162!important}
.ll-quest-catalog-card.ll-quest-focus{border-color:#f1c966!important;box-shadow:0 0 0 2px rgba(242,198,107,.36),0 12px 32px rgba(0,0,0,.28)!important;transform:translateY(-1px)}
.ll-quest-card-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center!important}
.ll-quest-card-main{display:grid;gap:5px;min-width:0}
.ll-quest-title-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
.ll-quest-title-row>strong{font-size:14px;line-height:1.25;color:#f0f4f8}
.ll-quest-meta-pills{margin:0!important;gap:4px!important}
.ll-quest-meta-pills .pill{padding:3px 6px;font-size:9px;background:#0a1117}
.ll-quest-quick-context{font-size:11px;color:#8798a8;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ll-catalog-actions{display:flex!important;align-items:center!important;justify-content:flex-end;gap:5px!important;flex-wrap:wrap!important}
.ll-catalog-actions .btn{padding:5px 7px;font-size:10px}
.ll-quest-detail-button{min-width:58px}
.ll-quest-card-details{margin-top:9px;padding:10px;border-top:1px solid rgba(82,101,119,.35);border-radius:0 0 8px 8px;background:rgba(2,8,13,.18)}
.ll-quest-card-details[hidden]{display:none!important}
.ll-quest-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:8px}
.ll-quest-fact{gap:3px!important;margin-top:8px}
.ll-quest-fact>span{font-size:9px!important;color:#718292!important}
.ll-quest-fact>div{font-size:11px;line-height:1.45!important;color:#c4ced8}
.ll-quest-context-note{margin-top:8px;padding:7px 8px!important}
.ll-quest-context-note.auto{border-color:#315a42;background:#0d1812}
.ll-quest-context-note.blocked{border-color:#713f48;background:#1b1013}
.ll-quest-context-note.blocked strong{color:#ffc0c8}
.ll-quest-context-note.unresolved{border-color:#4c5966;background:#111820}
.ll-quest-context-note.unresolved strong{color:#d8e1ea}
.ll-quest-context-note.event{border-color:#34566a;background:#0d171d}
.ll-quest-context-note.event strong{color:#bceeff}
.ll-quest-unlocks details{margin-top:5px;padding-top:6px}
.ll-quest-unlocks summary{font-size:11px;color:#b8c6d3}
.ll-quest-unlocks ul{font-size:11px;color:#9eacb9}
.ll-quest-more{margin-top:12px}

.ll-quest-status{flex:0 0 auto;padding:2px 6px!important;font-size:9px!important;letter-spacing:.01em}
.ll-quest-status.auto_completed{border-color:#2f7b49;color:#9bf4b2;background:#102219}
.ll-quest-status.auto_planned{border-color:#6f628d;color:#d7c8ff;background:#171326}
.ll-quest-status.available{border-color:#806823;color:#ffe5a6;background:#211c0d}
.ll-quest-status.planned{border-color:#416580;color:#c4e3ff;background:#0d1a24}
.ll-quest-status.impossible{border-color:#7c3f48;color:#ffc0c8;background:#211014}
.ll-quest-status.unclassified{border-color:#596675;color:#d8e1ea;background:#111820}
.ll-quest-status.event_only,.ll-quest-status.league_extra{border-color:#365f6f;color:#bceeff;background:#0d1b22}
.ll-quest-status.auto_reference{border-color:#496b54;color:#b9e8c5;background:#102019}

.ll-quest-reference{min-width:0}
.ll-quest-reference-card{position:sticky;top:82px;max-height:calc(100vh - 100px);overflow:auto;padding:0;border-color:#29445d;background:linear-gradient(180deg,#0d1822,#0a1219);scrollbar-width:thin;scrollbar-color:#31465a transparent}
.ll-reference-head{position:sticky;top:0;z-index:3;padding:13px 13px 10px;background:linear-gradient(180deg,rgba(13,24,34,.99),rgba(13,24,34,.96));border-bottom:1px solid #263b4e;backdrop-filter:blur(8px)}
.ll-reference-head h3{margin:0;font-size:15px}
.ll-reference-head p{margin:5px 0 0;color:#8192a3;font-size:10px;line-height:1.4}
.ll-quest-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:10px 12px;border-bottom:1px solid #243746}
.ll-quest-legend button{appearance:none;display:flex;align-items:center;gap:6px;min-width:0;border:1px solid #243746;border-radius:8px;background:#091118;color:#aebac5;padding:6px;font-size:9px;text-align:left;transition:.12s ease}
.ll-quest-legend button:hover,.ll-quest-legend button.active{border-color:#58738a;background:#0c1720;color:#eef4f8}
.ll-quest-legend i{width:8px;height:8px;border-radius:50%;flex:0 0 auto;background:#778493}
.ll-quest-legend i.auto_completed{background:#49a968}.ll-quest-legend i.auto_planned{background:#8e78bd}.ll-quest-legend i.available{background:#c4a142}.ll-quest-legend i.planned{background:#5f93bd}.ll-quest-legend i.impossible{background:#b45c69}.ll-quest-legend i.unclassified{background:#718191}
.ll-reference-regions{display:grid;gap:0;padding:0 12px}
.ll-region-reference{border-bottom:1px solid #223543}
.ll-region-reference:last-child{border-bottom:0}
.ll-region-reference>summary{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px 0;cursor:pointer;list-style:none}
.ll-region-reference>summary::-webkit-details-marker{display:none}
.ll-region-reference>summary img{width:28px;height:28px;object-fit:contain;filter:drop-shadow(0 3px 5px rgba(0,0,0,.3))}
.ll-region-reference-copy{display:grid;gap:1px;min-width:0}
.ll-region-reference-copy strong{font-size:11px;color:#e6edf4}
.ll-region-reference-copy small{font-size:9px;color:#778b9d}
.ll-region-reference.state-unlocked .ll-region-reference-copy small{color:#73d68c}.ll-region-reference.state-planned .ll-region-reference-copy small{color:#ccb9ff}
.ll-region-count{display:grid;place-items:center;min-width:25px;height:22px;border:1px solid #32495c;border-radius:999px;color:#a8bdd0;background:#0a141c;font-size:9px;font-weight:900}
.ll-region-reference-list{display:grid;gap:3px;padding:0 0 9px 38px}
.ll-reference-filter{appearance:none;border:1px dashed #38516a;border-radius:7px;background:#0b151e;color:#8ebee9;padding:6px 7px;font-size:9px;font-weight:800;text-align:left}
.ll-reference-quest{appearance:none;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center;border:0;border-radius:6px;background:transparent;color:#aebbc7;padding:5px 6px;font-size:9px;text-align:left}
.ll-reference-quest:hover{background:#12202b;color:#f0f5f8}
.ll-reference-quest span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ll-reference-quest small{font-size:8px;color:#687b8d}
.ll-reference-quest.is-now small{color:#70d68a}.ll-reference-quest.is-planned small{color:#bba5ed}
.ll-reference-coverage{margin:0 12px 12px;padding:9px;border:1px solid #253b4b;border-radius:9px;background:#091119}
.ll-reference-coverage summary{cursor:pointer;color:#a9bdcf;font-size:10px;font-weight:850}
.ll-reference-coverage>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:7px;font-size:9px;color:#798b9b}
.ll-reference-coverage strong{color:var(--gold);font-size:12px}

.ll-completed-pill{border-color:#2f7b49!important;color:#9bf4b2!important;background:#102219!important}

@media(max-width:1280px){
  .ll-quest-state-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ll-quest-filter-row{grid-template-columns:repeat(3,minmax(0,1fr))}
  #llQuestShown{text-align:left}
}
@media(max-width:1080px){
  .ll-quest-layout{grid-template-columns:1fr}
  .ll-quest-reference-card{position:relative;top:auto;max-height:none;overflow:visible}
  .ll-reference-regions{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
  .ll-quest-toolbar{top:82px}
}
@media(max-width:760px){
  .ll-quest-page-heading{padding-left:0;padding-right:0}
  .ll-quest-state-head>span{display:none}
  .ll-quest-state-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ll-quest-metric{padding:8px}
  .ll-quest-filter-row{grid-template-columns:1fr 1fr}
  #llQuestShown{grid-column:1/-1}
  .ll-quest-card-head{grid-template-columns:1fr!important;align-items:start!important}
  .ll-catalog-actions{justify-content:flex-start}
  .ll-quest-quick-context{white-space:normal}
  .ll-quest-detail-grid{grid-template-columns:1fr}
  .ll-reference-regions{grid-template-columns:1fr}
  .ll-quest-reference-card{border-radius:11px}
}
@media(max-width:480px){
  .ll-quest-state-strip,.ll-quest-filter-row{grid-template-columns:1fr}
  .ll-quest-legend{grid-template-columns:1fr}
  .ll-quest-filter-chips{flex-wrap:nowrap;overflow:auto;padding-bottom:3px}
  .ll-quest-filter-chips button{flex:0 0 auto}
}
