/* Catalogs, profession routes and account characters share the global UI tokens. */
.guide-nav { display: flex; align-items: center; flex: 1 1 auto; gap: 2px; min-width: 0; margin-left: 16px; }
.guide-nav a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 10px; border-bottom: 2px solid transparent; border-radius: 5px 5px 0 0; color: var(--nav-ink); font-size: 13px; line-height: 22px; font-weight: 550; white-space: nowrap; text-decoration: none; }
.guide-nav a:hover { background: #263947; color: white; }
.guide-nav a[aria-current] { border-bottom-color: #69b4bd; background: #263b48; color: white; }
.guide-nav .nav-icon { display: block; width: 18px; height: 18px; flex: none; }
.guide-nav .nav-icon svg { display: block; width: 100%; height: 100%; }
.guide-nav a.nav-secondary { gap: 5px; padding-right: 8px; padding-left: 8px; color: var(--nav-muted); font-size: 12px; }
.guide-nav a.nav-secondary:first-of-type { margin-left: 8px; }
.guide-nav a.nav-secondary[aria-current] { color: white; }
.guide-page { scroll-margin-top: 96px; }
.guide-page > h1 { margin-bottom: 16px; font-size: 30px; }
.guide-page > p { max-width: 90ch; }
.phase-note { display: none; }
.guide-classes { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.guide-classes button { display: inline-flex; align-items: center; justify-content: center; flex: 1 1 auto; gap: 7px; min-height: 48px; padding: 8px 10px; border: 1px solid #becbd3; border-radius: 7px; background: white; box-shadow: inset 0 -3px var(--class-color,#698594); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; }
.guide-classes button:hover { background: #f5f8f9; border-color: #728e9c; }
.guide-classes button[aria-pressed=true] { border-color: #3c7988; background: #eaf3f4; color: #153e48; }
.guide-classes img { width: 24px; height: 24px; border: 1px solid #b7c4cd; border-radius: 5px; object-fit: cover; }
.guide-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: end; gap: 12px; margin-bottom: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.guide-filters label, .player-bar label, .recipe-cost > label, .component label { display: flex; flex-direction: column; gap: 5px; min-width: 0; color: var(--muted); font-size: 12px; line-height: 18px; font-weight: 650; }
.guide-filters input, .guide-filters select, .player-bar input, .player-bar select, .recipe-cost input { display: block; width: 100%; min-width: 0; height: 44px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--control-line); border-radius: 7px; background: white; color: var(--ink); font-size: 14px; line-height: 22px; }
.guide-filters button, .player-bar button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 13px; border: 1px solid var(--control-line); border-radius: 7px; background: white; color: var(--ink); font-size: 14px; line-height: 22px; font-weight: 600; }
.guide-filters button:hover { background: var(--soft); }
.guide-filters .guide-check { display: flex; flex-direction: row; align-items: center; gap: 9px; min-height: 44px; color: #465d6b; font-size: 12px; font-weight: 500; }
.guide-check input, .player-toggle input { width: 18px !important; height: 18px !important; min-height: 18px !important; flex: none; padding: 0; accent-color: var(--accent); }
#guide-filters { grid-template-columns: 180px 180px minmax(190px,.9fr) minmax(260px,1.6fr); grid-template-areas: "levelmin levelmax role search" "advanced advanced goals reset"; gap: 12px; }
#guide-filters > label:has([name=class]) { grid-area: klass; }
#guide-filters > label:has([name=level_min]) { grid-area: levelmin; }
#guide-filters > label:has([name=level_max]) { grid-area: levelmax; }
#guide-filters > label:has([name=role]) { grid-area: role; }
#guide-filters > label:has([name=search]) { grid-area: search; }
#guide-filters > .guide-advanced { grid-area: advanced; }
#guide-filters > .guide-check { grid-area: goals; }
#guide-filters > button[type=reset] { grid-area: reset; justify-self: end; min-width: 100px; }
#guide-filters:has(.guide-advanced[open]) { grid-template-areas: "levelmin levelmax role search" "advanced advanced advanced advanced" "goals goals goals reset"; }
.guide-advanced { min-width: 0; margin: 0 !important; }
.guide-advanced summary { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--control-line); border-radius: 7px; background: #f7f9fa; color: #314c5c; font-size: 13px; line-height: 22px; font-weight: 600; text-decoration: none; list-style: none; }
.guide-advanced summary::-webkit-details-marker { display: none; }
.guide-advanced summary:hover { background: #edf3f5; }
.guide-advanced summary > svg { width: 18px; height: 18px; flex: none; }
.guide-advanced .filter-chevron { width: 16px; height: 16px; margin-left: auto; flex: none; }
.guide-advanced[open] .filter-chevron { transform: rotate(180deg); }
.guide-advanced[open] summary { max-width: 280px; background: #eaf3f5; border-color: #8fb4c0; }
.guide-advanced-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #dce5ea; }
#craft-filters { grid-template-columns: minmax(180px,1fr) 130px minmax(240px,1.4fr) auto; }
#craft-filters button { min-width: 100px; }
#guide-count, #craft-count { margin: 10px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 16px; }
.guide-card { display: flex; flex-direction: column; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); overflow-wrap: anywhere; }
.guide-card h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; font-weight: 700; }
.guide-card h2 a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.guide-card h2 a:hover { color: var(--blue); }
.guide-card p { margin-bottom: 12px; color: #455965; font-size: 14px; line-height: 1.55; }
.guide-card p:last-child { margin-bottom: 0; }
.guide-item-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.guide-item-head > img { width: 48px; height: 48px; flex: none; border: 1px solid #c6d5de; border-radius: 7px; object-fit: cover; }
.guide-item-head > div { min-width: 0; }
.guide-item-head h2 { margin-bottom: 3px; }
.guide-item-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
body:has(#guide-filters) .guide-card > p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.guide-open { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; color: var(--blue); font-size: 13px; line-height: 20px; font-weight: 600; }
.guide-card ul { margin: 0; padding-left: 18px; color: #4c626f; font-size: 13px; }
.guide-card li { margin: 5px 0; }
.guide-page section { margin: 22px 0; }
.guide-page section h2 { margin-bottom: 12px; font-size: 22px; }
.guide-page li { margin-bottom: 8px; }
.guide-page details { margin: 16px 0; }
.guide-page summary { min-height: 44px; cursor: pointer; }
.guide-page a { overflow-wrap: anywhere; }
.guide-page table { width: 100%; border-collapse: collapse; font-size: 14px; }
.guide-page th, .guide-page td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.guide-page th { background: #edf3f5; color: #365565; font-size: 12px; font-weight: 650; }
.guide-page .table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 7px; background: white; }
.guide-page input { max-width: 100%; }

/* Profile controls remain one shared row, without a second class picker. */
.player-bar { max-width: 1264px; margin: 14px auto 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.player-bar form { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.player-bar input[type=number] { width: 88px; }
.player-bar select { min-width: 150px; }
.player-bar .player-toggle { flex-direction: row; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; }
.player-bar button[type=submit] { border-color: #4d8998; background: #eaf3f5; color: #255b6b; }
.player-bar button[type=submit]:hover { background: #dcecf0; }
.player-bar a { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; font-size: 13px; font-weight: 600; }
.player-bar details { order: 2; flex: 0 1 auto; }
.player-bar details[open] { flex-basis: 100%; }
.player-bar form > a { order: 3; }
.player-bar summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; font-weight: 600; }
.player-bar summary::before { content: '+'; margin-right: 6px; font-size: 16px; }
.player-bar details[open] summary::before { content: '−'; }
.player-bar details p { max-width: 90ch; margin: 7px 0 0; }
.player-bar p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
body:has([data-listing]) .player-bar label:has([name=class]) { display: none; }
body:has(#guide-filters,#craft-filters,[data-recipe-cost],#profession-route-filters,.profession-card-head,.profession-title) .player-bar label:has([name=class]), body:has(#guide-filters,#craft-filters,[data-recipe-cost],#profession-route-filters,.profession-card-head,.profession-title) .player-bar label:has([name=level]), body:has(#guide-filters,#craft-filters,[data-recipe-cost],#profession-route-filters,.profession-card-head,.profession-title) .player-bar .player-toggle, body:has(#guide-filters,#craft-filters,[data-recipe-cost],#profession-route-filters,.profession-card-head,.profession-title) .player-bar details, body:has(#guide-filters,#craft-filters,[data-recipe-cost],#profession-route-filters,.profession-card-head,.profession-title) .player-bar button[type=submit], body:has(#guide-filters,#craft-filters,[data-recipe-cost],#profession-route-filters,.profession-card-head,.profession-title) #player-status { display: none; }
body:has(#guide-filters,#craft-filters,[data-recipe-cost],#profession-route-filters,.profession-card-head,.profession-title) .player-bar { margin: 0 auto; padding: 0 28px; border: 0; border-radius: 0; background: transparent; }
body:has(#guide-filters,#craft-filters,[data-recipe-cost],#profession-route-filters,.profession-card-head,.profession-title) .player-bar form { min-height: 44px; }
body:has(#guide-filters,#craft-filters,[data-recipe-cost],#profession-route-filters,.profession-card-head,.profession-title) .player-bar a { min-height: 44px; margin-left: auto; font-size: 12px; }

/* Saved characters and profile forms. */
.character-row { display: grid; grid-template-columns: minmax(0,1fr) repeat(3,max-content); align-items: center; gap: 8px; min-height: 64px; padding: 10px 0; border-bottom: 1px solid #e1e8ec; }
.character-row strong { min-width: 0; color: var(--ink); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.character-row button, #character-message button { min-height: 44px; padding: 10px 12px; border: 1px solid #b9cbd5; border-radius: 6px; background: white; color: #36596c; font-size: 13px; line-height: 22px; font-weight: 600; }
.character-row button:hover, #character-message button:hover { background: #edf4f6; }
.character-row button[data-character-action=select] { border-color: #a5c5ce; background: #edf5f6; color: #2c6571; }
.character-row button[data-character-action=remove] { color: var(--danger); }
.character-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.character-identity img { width: 40px; height: 40px; flex: none; border: 1px solid #c8d6de; border-radius: 7px; object-fit: cover; }
.character-details { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.character-actions { display: flex; align-items: center; gap: 8px; }
.character-row:has(.character-actions) { grid-template-columns: minmax(0,1fr) auto; }
#character-form { grid-template-columns: minmax(180px,1.2fr) repeat(3,minmax(140px,1fr)) 90px; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
#character-form input[type=hidden] { display: none; }
#character-form button[type=submit] { grid-column: 1; justify-self: start; }
#character-form button[type=reset] { grid-column: 2; justify-self: start; }
#character-message, #recovery-generate-message { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
#character-message:empty, #recovery-generate-message:empty { display: none; }
#character-message[data-error=true], #recovery-generate-message[data-error=true] { color: var(--danger); }
#recovery-generate-form { grid-template-columns: minmax(0,1fr) auto; align-items: end; }
#recovery-code-count { display: inline-block; margin: 0 0 14px; padding: 4px 8px; border: 1px solid #cddde4; border-radius: 5px; background: #f0f6f8; color: #3f6375; font-size: 12px; }
#admin-panel { grid-column: auto; }

/* Recipes have one clear result, then the inputs needed for the batch. */
.recipe-result { display: flex; align-items: flex-start; gap: 16px; max-width: 920px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.recipe-result-icon { width: 64px; height: 64px; flex: none; border: 1px solid #c4d4dd; border-radius: 9px; object-fit: cover; }
.recipe-result h2 { margin-bottom: 8px; font-size: 18px; }
.recipe-result p:last-child { margin-bottom: 0; }
.recipe-cost { max-width: 960px; }
.recipe-cost > label { max-width: 260px; }
.recipe-cost > p { color: var(--muted); font-size: 12px; }
.component { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.component h2 { margin-bottom: 10px; font-size: 18px !important; }
.component-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.component-head h2 { margin: 0; }
.component-icon { width: 44px; height: 44px; flex: none; border: 1px solid #c7d7df; border-radius: 6px; object-fit: cover; }
.component h2 .entity-mention { min-height: 44px; font-size: 16px; }
.component p { margin-bottom: 10px; color: #465c69; font-size: 14px; }
.component label { max-width: 280px; margin-top: 12px; }
.cost-result { display: block; margin: 16px 0; padding: 14px 16px; border: 1px solid #b5cfd8; border-radius: 7px; background: #eaf3f6; color: #25596c; font-size: 14px; line-height: 1.5; font-weight: 600; }

/* Compact profession stages beside the original interactive map. */
.profession-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,.9fr); align-items: start; gap: 22px; margin: 20px 0; }
.profession-map { position: sticky; top: calc(var(--header-height) + 16px); min-width: 0; margin: 0 !important; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.profession-map h2 { margin-bottom: 12px; font-size: 18px !important; }
.profession-map p { margin-bottom: 10px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.profession-map-frame { display: block; width: 100%; min-height: 440px; border: 1px solid #c8d6de; border-radius: 7px; background: #e7eef2; }
.profession-map iframe { display: block; width: 100%; min-height: 440px; border: 0; border-radius: 6px; }
.profession-map .map-embed { aspect-ratio: auto; }
.profession-stage-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.profession-stage-nav a, .profession-stage-nav button, .profession-zone { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 9px 11px; border: 1px solid #b6cbd5; border-radius: 6px; background: white; color: #305a6d; font-size: 12px; line-height: 22px; font-weight: 600; }
.profession-stage-nav a:hover, .profession-stage-nav button:hover, .profession-zone:hover { background: #edf5f7; text-decoration: none; }
.profession-zone[aria-pressed=true], .profession-zone[aria-current], .profession-stage-nav [aria-current] { border-color: #5d94a6; background: #e5f0f4; color: #1e566b; }
.profession-milestones { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.profession-stage { min-width: 0; margin: 0 !important; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.profession-stage h2, .profession-stage h3 { margin: 0 0 8px; font-size: 18px !important; }
.profession-stage p { margin: 0 0 9px; color: #455c69; font-size: 14px; }
.profession-stage p:last-child { margin-bottom: 0; }
.profession-stage ul, .profession-stage ol { margin: 8px 0; padding-left: 20px; }
.profession-stage li { margin-bottom: 6px; font-size: 13px; line-height: 1.55; }
.profession-recipes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.profession-recipe-card { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.profession-recipe-card img { width: 44px; height: 44px; flex: none; border: 1px solid #c9d8e0; border-radius: 6px; object-fit: cover; }
.profession-recipe-card h3, .profession-recipe-card h2 { margin: 0 0 5px; font-size: 16px !important; line-height: 1.4; }
.profession-recipe-card p { margin: 0; color: var(--muted); font-size: 12px; }

@media(max-width:1200px) {
 .guide-nav { gap: 0; margin-left: 8px; }
 .guide-nav a { gap: 5px; padding: 9px 7px; font-size: 12px; }
 .guide-nav a.nav-secondary { padding-right: 6px; padding-left: 6px; font-size: 11px; }
 .guide-nav .nav-icon { width: 17px; height: 17px; }
 #character-form { grid-template-columns: repeat(3,minmax(0,1fr)); }
 #character-form button[type=submit], #character-form button[type=reset] { grid-column: auto; }
}
@media(max-width:1000px) {
 .guide-nav { order: 4; flex-basis: 100%; justify-content: space-between; margin: 0; }
 .guide-nav a { min-height: 44px; }
 .guide-grid, .profession-recipes { grid-template-columns: repeat(2,minmax(0,1fr)); }
 #guide-filters { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-areas: "levelmin levelmax" "role search" "advanced reset" "goals goals"; }
 #guide-filters:has(.guide-advanced[open]) { grid-template-areas: "levelmin levelmax" "role search" "advanced advanced" "goals reset"; }
 #craft-filters { grid-template-columns: minmax(0,1fr) 120px; }
 #craft-filters label:has([name=search]) { grid-column: 1; }
 .profession-layout { grid-template-columns: minmax(0,1fr) 360px; gap: 16px; }
 .player-bar { margin-right: 28px; margin-left: 28px; }
}
@media(max-width:760px) {
 .guide-nav { flex-wrap: wrap; justify-content: flex-start; gap: 3px; }
 .guide-nav a, .guide-nav a.nav-secondary { padding: 8px 9px; font-size: 12px; }
 .guide-nav .nav-icon { width: 18px; height: 18px; }
 .guide-classes { gap: 6px; }
 .guide-classes button { flex: 1 1 28%; font-size: 12px; }
 .guide-grid, .profession-recipes { grid-template-columns: 1fr; }
 .guide-page > h1 { font-size: 27px; }
 .guide-advanced-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .player-bar { margin: 12px 16px 0; padding: 12px; }
 .player-bar a { margin-left: 0; }
 .player-bar form { align-items: end; }
 body:has(#guide-filters,#craft-filters,[data-recipe-cost],#profession-route-filters,.profession-card-head,.profession-title) .player-bar { margin: 0; padding-right: 16px; padding-left: 16px; }
 #character-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .character-row { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
 .character-row strong, .character-identity { grid-column: 1/-1; }
 .character-row:has(.character-actions) { grid-template-columns: 1fr; }
 .character-actions { flex-wrap: wrap; }
 .character-row button { padding-right: 8px; padding-left: 8px; }
 #recovery-generate-form { grid-template-columns: 1fr; }
 #recovery-generate-form button { justify-self: start; }
 .profession-layout { grid-template-columns: 1fr; }
 .profession-map { position: static; }
 .profession-map-frame, .profession-map iframe { min-height: 380px; }
}
@media(max-width:420px) {
 #guide-filters, #guide-filters:has(.guide-advanced[open]) { grid-template-columns: 1fr; grid-template-areas: "levelmin" "levelmax" "role" "search" "advanced" "goals" "reset"; }
 #guide-filters > button[type=reset] { justify-self: start; }
 .guide-advanced-grid, #craft-filters, #character-form { grid-template-columns: 1fr; }
 #craft-filters label:has([name=search]), #character-form button { grid-column: auto; }
 .guide-classes button { flex-basis: 42%; white-space: normal; }
 .guide-filters { padding: 12px; }
 .recipe-result { gap: 12px; padding: 14px; }
 .recipe-result-icon { width: 48px; height: 48px; }
 .component { padding: 14px; }
}

/* The same result pattern fits a recipe card and a detailed recipe. */
.guide-card > .recipe-result, .profession-recipe-card > .recipe-result { align-items: center; gap: 12px; max-width: none; margin-bottom: 12px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); }
.guide-card > .recipe-result .recipe-result-icon, .profession-recipe-card > .recipe-result .recipe-result-icon { width: 48px; height: 48px; border-radius: 7px; }
.guide-card > .recipe-result h2 { margin: 0; }
.profession-recipe-card > .recipe-result { min-height: 48px; margin: 0; font-size: 15px; line-height: 1.45; font-weight: 650; }
.guide-card li.component-head { align-items: center; gap: 8px; margin: 7px 0; }
.guide-card li .component-icon { width: 28px; height: 28px; border-radius: 4px; }
.profession-main { min-width: 0; }
.profession-section-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.profession-section-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 12px; border: 1px solid #bdcdd5; border-radius: 6px; background: white; color: #305a6d; font-size: 13px; font-weight: 600; }
.profession-stage h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.stage-skill { color: #356275; font-size: 13px; font-weight: 650; white-space: nowrap; }
.profession-zones { display: grid; gap: 8px; margin: 10px 0; }
.profession-zone-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; font-size: 12px; color: var(--muted); }
.profession-zone-row p { flex-basis: 100%; margin: 0; font-size: 12px; }

#code-recover-message { margin: 0; font-size: 13px; line-height: 1.55; }
#code-recover-message:empty { display: none; }
#code-recover-message[data-error=true] { color: var(--danger); }
.profession-zone-row .trainer-source, .profession-zone-row .zone-source, .profession-zone-row .entity-mention { display: inline-flex; align-items: center; min-height: 28px; }
.stage-source { display: inline-flex; align-items: center; min-height: 32px; font-size: 12px; }

#guide-filters > .guide-class-field, #guide-filters > label:has([name=class]) { display: none; }
.item-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; }
.guide-card > .item-meta { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
#guide-filters > .guide-advanced { max-width: 280px; }
#guide-filters > .guide-advanced[open] { max-width: none; }

.player-bar input:disabled, .player-bar select:disabled { background: #eef2f4; color: var(--muted); cursor: default; }

.coordinate-copy { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 11px; border: 1px solid var(--control-line); border-radius: 6px; background: white; color: #305a6d; font: inherit; font-size: 12px; line-height: 22px; font-weight: 600; }
.coordinate-copy:hover { background: #edf5f7; }
.coordinate-icon { width: 16px; height: 16px; flex: none; }
.profession-card-head { align-items: center; gap: 12px; }
.profession-icon { width: 44px; height: 44px; flex: none; border: 1px solid #c6d5de; border-radius: 7px; object-fit: cover; }
.profession-card-head h2 { margin: 0; }
.profession-title { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.profession-title > .profession-icon { width: 56px; height: 56px; border-radius: 9px; }
.profession-title h1 { margin: 0; font-size: 30px; }
@media(max-width:760px) { .profession-title h1 { font-size: 27px; } }

body:has(.account-page) .player-bar { display: none; }

/* Shared controls and compact reference layouts. */
.header-character { display:flex; flex-direction:column; gap:2px; min-width:130px; max-width:190px; color:#d7e4ec; font-size:10px; font-weight:600; }
#player-character-wrap { display:flex; flex-direction:column; gap:2px; min-width:130px; max-width:190px; color:#d7e4ec; font-size:10px; font-weight:600; }
#player-character-select { width:100%; min-height:38px; padding:6px 26px 6px 9px; border:1px solid #627988; border-radius:6px; background:#253947; color:white; font:inherit; font-size:12px; }
#player-character-select:focus-visible { outline:3px solid #80d3e1; outline-offset:2px; }
.topbar-inner { gap:10px; }
.guide-nav { margin-left:4px; }
.guide-nav a { padding-inline:8px; }
.lang-switch { flex-shrink:0; }
#craft-filters, [data-recipe-filters] { grid-template-columns:repeat(4,minmax(130px,1fr)); }
[data-recipe-filters] label:has([name=search]) { grid-column:span 2; }
[data-recipe-filters] .guide-check { align-self:end; }
[data-craft-count] { margin:8px 0 12px; font-size:13px; color:var(--muted); }
.profession-stage { padding:0 !important; border:1px solid #bdccd5; border-radius:8px; background:#fff; overflow:clip; margin:10px 0; }
.profession-stage > summary { display:flex; align-items:center; gap:12px; min-height:56px; padding:12px 16px; background:#eef4f6; font-size:15px; font-weight:650; list-style:none; cursor:pointer; }
.profession-stage > summary::-webkit-details-marker { display:none; }
.profession-stage > summary::after { content:'+'; margin-left:auto; font-size:22px; line-height:1; color:#326373; }
.profession-stage[open] > summary::after { content:'−'; }
.profession-stage > :not(summary) { margin-left:16px; margin-right:16px; }
.profession-stage > :last-child { margin-bottom:16px; }
.profession-stage > summary h3 { margin:0; font-size:15px; }
.profession-stage summary .stage-skill { padding:3px 7px; border:1px solid #a8c5cf; border-radius:5px; background:#fff; }
.profession-stage > .profession-zones { padding-bottom:4px; }
.profession-map { top:95px; }
.profession-map h2 { margin-bottom:8px; font-size:20px; }
.profession-map p { font-size:12px; line-height:1.5; margin:8px 0; }
.profession-map details { padding:9px 0; margin:0; border-top:1px solid #d8e2e8; border-bottom:0; }
.profession-map details summary { min-height:32px; font-size:13px; }
.profession-map details > :not(summary) { margin-top:8px; margin-bottom:0; }
.profession-map ul, .profession-map ol { padding-left:20px; font-size:12px; margin:8px 0; }
.profession-map li { margin:5px 0; }
.profession-zone-row { padding:8px 0; border-bottom:1px solid #e1e8ec; }
.profession-zone-row:last-child { border-bottom:0; }
.town-icon { width:28px; height:28px; object-fit:contain; flex:none; }
.zone-about { display:inline-flex; align-items:center; gap:5px; }
.zone-about svg { width:16px; height:16px; }
.profession-map-frame { border:1px solid #becdd6; border-radius:7px; }
.profession-section-nav { margin-block:12px; }
#profession-skill-status { flex-basis:100%; margin:0; font-size:12px; color:var(--muted); }
.guide-card details, .recipe-detail details { margin-top:8px; }
.guide-card details > :not(summary), .recipe-detail details > :not(summary) { margin-top:8px; margin-bottom:0; }
.guide-card details ul, .recipe-detail details ul { padding-left:18px; }
.item-stats { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0; padding:0; list-style:none; }
.item-stat { display:inline-flex; align-items:center; gap:6px; padding:5px 8px; border:1px solid #b7cbd4; border-radius:5px; background:#eef5f7; color:#294c5c; font-size:12px; line-height:1.4; }
.item-stat[data-stat=strength] { background:#f9edeb; border-color:#dcb8af; color:#8c352c; }
.item-stat[data-stat=agility] { background:#edf4e8; border-color:#bdd0ae; color:#3c6427; }
.item-stat[data-stat=intellect] { background:#eaf1fb; border-color:#adc4e2; color:#2d568d; }
.item-stat[data-stat=stamina] { background:#f5edf7; border-color:#d0b4d8; color:#704181; }
.item-stat[data-stat=spirit] { background:#e8f5f1; border-color:#a9d1c6; color:#286655; }
.recipe-purpose, .quality-label { display:inline-flex; gap:5px; padding:3px 7px; border:1px solid currentColor; border-radius:5px; font-size:11px; line-height:1.5; }
.quality-1 { color:#354d5c; }.quality-2 { color:#2b6f1e; }.quality-3 { color:#215da0; }.quality-4 { color:#8044a3; }.quality-5 { color:#98500b; }
#avatar-preset-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(90px,1fr)); gap:10px; }
.avatar-preset { display:flex; flex-direction:column; align-items:center; gap:6px; padding:8px; border:2px solid #bfced7; border-radius:9px; background:#f6f9fb; font-size:12px; color:#304a5a; cursor:pointer; }
.avatar-preset > img, .avatar-preset > span:first-child { width:64px; height:64px; object-fit:cover; border-radius:7px; }
.avatar-preset > span:first-child:not(:last-child) { display:grid; place-items:center; font-size:28px; background:#213d4e; color:white; }
.avatar-preset[aria-pressed=true] { border-color:#276878; background:#e4f2f4; box-shadow:0 0 0 2px #c4e3e9; }
.avatar-preset:hover { border-color:#47798c; }
#site-comments { max-width:900px; margin-top:24px; padding-top:20px; border-top:1px solid #bdccd6; }
#site-comments h2 { font-size:23px; }
#comment-form { display:flex; flex-wrap:wrap; gap:10px; margin:12px 0 20px; }
#comment-form label { width:100%; font-size:13px; font-weight:600; }
#comment-form textarea { width:100%; min-height:110px; border:1px solid #a9bfcc; border-radius:7px; padding:12px; background:#fff; font:inherit; font-size:14px; resize:vertical; }
#comment-form button, .comment-actions button, #comments-more, #comments-login { min-height:44px; padding:9px 13px; border:1px solid #9ab4c3; border-radius:6px; color:#254b5d; background:#f7fafb; font:inherit; font-size:13px; cursor:pointer; }
#comment-form button[type=submit] { background:#245b6b; border-color:#245b6b; color:#fff; }
.site-comment { display:grid; grid-template-columns:42px minmax(0,1fr); gap:12px; padding:16px 0; border-top:1px solid #d9e3e9; }
.comment-avatar { width:42px; height:42px; display:grid; place-items:center; border-radius:8px; background:#284a5c; color:white; overflow:hidden; }
.comment-avatar img { width:100%; height:100%; object-fit:cover; }
.comment-head { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; font-size:13px; }
.comment-head time, .comment-edited { font-size:11px; color:#526c7c; }
.site-comment .comment-text { white-space:pre-wrap; overflow-wrap:anywhere; margin:8px 0; font-size:14px; line-height:1.6; }
.comment-actions { display:flex; gap:8px; }
#comments-status, #avatar-preset-status { margin:8px 0; color:var(--muted); font-size:13px; }
#comments-status[data-error=true], #avatar-preset-status[data-error=true] { color:var(--danger); }
#findings-pagination { display:flex; align-items:center; justify-content:center; gap:16px; padding:20px 0; }
#findings-pagination button, #date-calendar button, #date-recent { min-height:44px; padding:8px 12px; border:1px solid #a6bfcd; border-radius:6px; background:white; color:#30566a; font:inherit; font-size:13px; cursor:pointer; }
#findings-pagination button:disabled { opacity:.55; cursor:default; }
#date-calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:5px; }
#date-calendar-grid button { padding:6px; font-size:11px; }
#date-calendar-grid button.has-articles { box-shadow:inset 0 -3px #5f95a4; }
#date-calendar button[aria-pressed=true] { background:#245b6b; color:white; border-color:#245b6b; }
#filter-toggle { align-self:start; }
.filter-options { align-self:start; }
@media(max-width:1100px) { #craft-filters,[data-recipe-filters] { grid-template-columns:repeat(3,minmax(100px,1fr)); } .topbar-inner { flex-wrap:wrap; } #player-character-wrap { margin-left:auto; } .header-spacer { display:none; } }
@media(max-width:760px) { #craft-filters,[data-recipe-filters] { grid-template-columns:repeat(2,minmax(0,1fr)); } .header-character,#player-character-wrap { max-width:160px; min-width:120px; } .site-comment { gap:8px; grid-template-columns:32px minmax(0,1fr); } .comment-avatar { width:32px; height:32px; } }
@media(max-width:420px) { #craft-filters,[data-recipe-filters] { grid-template-columns:1fr; } [data-recipe-filters] label:has([name=search]) { grid-column:auto; } #findings-pagination { gap:8px; font-size:12px; } #date-calendar-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
.item-detail-head { display:flex; align-items:flex-start; gap:22px; margin:12px 0 24px; }
.item-detail-icon { width:128px; height:128px; object-fit:cover; flex:none; border:3px solid #879ca9; border-radius:12px; box-shadow:0 6px 18px #19394c30; }
.item-detail-head h1 { margin:0 0 10px; font-size:30px; }
.item-detail-head p { max-width:76ch; margin:8px 0; }
.item-detail-page h2 { font-size:22px; margin:20px 0 10px; }
.claim-badge { display:inline-flex; align-items:center; gap:5px; border:1px solid currentColor; border-radius:5px; padding:4px 7px; font-size:11px; font-weight:600; }
.claim-badge.verified,.claim-badge[data-status=verified] { background:#e8f4eb; color:#2d683c; border-color:#a8c8b1; }
.claim-badge.unverified,.claim-badge[data-status=unverified] { background:#fbf1da; color:#7a5c12; border-color:#d4c18c; }
.item-stat.stat-strength { background:#f9edeb; border-color:#dcb8af; color:#8c352c; }
.item-stat.stat-agility { background:#edf4e8; border-color:#bdd0ae; color:#3c6427; }
.item-stat.stat-intellect { background:#eaf1fb; border-color:#adc4e2; color:#2d568d; }
.item-stat.stat-stamina { background:#f5edf7; border-color:#d0b4d8; color:#704181; }
.item-stat.stat-spirit { background:#e8f5f1; border-color:#a9d1c6; color:#286655; }
.item-sources { padding:10px 0; border-top:1px solid #d2dee5; }
.item-sources summary { min-height:36px; display:flex; align-items:center; font-size:13px; }
.item-sources > :not(summary) { margin-top:8px; margin-bottom:0; }
.entity-popover { width:min(390px,calc(100vw - 24px)); padding:16px; border:1px solid #7a8c9d; border-radius:8px; background:linear-gradient(135deg,#102638,#0a1725); color:#e8eff4; box-shadow:0 12px 32px #07152150,inset 0 0 0 2px #21384b; font-size:13px; }
.entity-popover-head { position:relative; padding-right:30px; min-height:52px; }
.entity-popover-icon { width:52px; height:52px; border:1px solid #91a1ac; border-radius:6px; object-fit:cover; }
.entity-popover-title { flex:1; gap:3px; padding-right:42px; }
.entity-popover-title strong { color:#fff; font-size:16px; line-height:1.35; }
.entity-popover[data-quality="2"] .entity-popover-title strong { color:#66db5e; }
.entity-popover[data-quality="3"] .entity-popover-title strong { color:#79b7ff; }
.entity-popover[data-quality="4"] .entity-popover-title strong { color:#cc97ff; }
.entity-popover .entity-kind { color:#a6bfce; font-size:10px; }
.entity-popover .entity-level { position:absolute; top:0; right:30px; padding:3px 6px; border:1px solid #668599; border-radius:4px; color:#e4f0f6; background:#203b4e; font-size:11px; white-space:nowrap; }
.entity-popover .entity-close { position:absolute; top:-7px; right:-9px; width:36px; min-height:36px; padding:0; color:#b8cad6; background:transparent; border:0; font-size:24px; }
.entity-popover .entity-description { margin-top:12px; font-size:13px; line-height:1.5; color:#e1eaf0; }
.entity-popover .entity-tooltip-lines { margin-top:12px; }
.entity-popover p.entity-tooltip-line { margin:3px 0; line-height:1.45; font-size:13px; white-space:pre-line; }
.entity-tooltip-line[data-line-kind=effect],.entity-tooltip-line[data-line-kind=stat] { color:#83df80; }
.entity-tooltip-line[data-line-kind=flavor] { color:#e2c690; font-style:italic; }
.entity-tooltip-line[data-line-kind=requirement] { color:#b7cdda; }
.entity-tooltip-links { display:flex; flex-wrap:wrap; align-items:center; gap:2px 14px; margin-top:12px; padding-top:8px; border-top:1px solid #385064; }
.entity-popover .entity-local-link,.entity-popover .entity-source { display:inline-flex; align-items:center; min-height:32px; margin:0; color:#b7e2fa; font-size:11px; text-decoration:none; }
.entity-popover .entity-image-credit { color:#a9c3d1; font-size:10px; }
.entity-popover :focus-visible { outline:2px solid #a4e6ff; outline-offset:2px; }
@media(max-width:600px) { .item-detail-icon { width:84px; height:84px; }.item-detail-head { gap:14px; }.item-detail-head h1 { font-size:24px; } }
.recipe-pagination { display:flex; gap:14px; align-items:center; justify-content:center; padding:18px 0; font-size:13px; }
.recipe-pagination button { min-height:44px; padding:8px 14px; border:1px solid #a7bfcd; border-radius:6px; background:white; color:#30566a; font:inherit; cursor:pointer; }
.recipe-pagination button:disabled { opacity:.55; cursor:default; }
.evidence-status { display:inline-flex; align-items:center; gap:5px; padding:3px 7px; border:1px solid #b8c9d2; border-radius:5px; font-size:11px; line-height:1.5; }
.evidence-status--verified { color:#2d683c; background:#e8f4eb; border-color:#a8c8b1; }
.evidence-status--unverified { color:#7a5c12; background:#fbf1da; border-color:#d4c18c; }
.item-evidence { display:flex; flex-wrap:wrap; gap:6px; }
.lang-switch { display:inline-flex; align-items:center; gap:3px; padding:3px; border:1px solid #526c7c; border-radius:6px; background:#172d3c; }
.lang-switch a { display:inline-flex; align-items:center; justify-content:center; min-width:31px; min-height:34px; padding:5px; color:#d4e2ea; font-size:11px; font-weight:650; text-decoration:none; border-radius:4px; }
.lang-switch a[aria-current] { color:#102f3e; background:#cbe4ea; }
.lang-switch a:hover { background:#315266; color:white; }
.date-controls { display:flex; flex-wrap:wrap; align-items:end; gap:8px; width:100%; padding:8px 0; }
.date-controls > label { display:flex; flex-direction:column; gap:4px; font-size:11px; color:#526b7a; font-weight:600; }
.date-controls input[type=date] { width:156px; min-width:0; height:44px; padding:8px 10px; border:1px solid var(--control-line); border-radius:6px; font:inherit; font-size:13px; color:var(--ink); background:white; }
.date-picker { position:relative; margin:0; border:0; }
.date-picker > summary { display:flex; align-items:center; gap:7px; min-height:44px; padding:8px 12px; border:1px solid var(--control-line); border-radius:6px; background:#f5f9fa; color:#30566a; list-style:none; font-size:13px; font-weight:600; cursor:pointer; }
.date-picker > summary::-webkit-details-marker { display:none; }
.date-picker > summary svg { width:17px; height:17px; }
.date-picker-panel { position:absolute; z-index:20; top:calc(100% + 6px); left:0; width:360px; max-width:calc(100vw - 54px); padding:14px; border:1px solid #a7bfcd; border-radius:8px; background:white; box-shadow:0 8px 24px #193b4a29; }
.date-picker-panel > label { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; font-size:12px; }
.calendar-nav { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.item-restriction { margin:10px 0; padding:8px 11px; border-left:3px solid #869fae; background:#eff4f7; font-size:13px; line-height:1.5; }
.entity-tooltip-line[data-line-kind=strength] { color:#ffaaa0; }
.entity-tooltip-line[data-line-kind=agility] { color:#9de28e; }
.entity-tooltip-line[data-line-kind=intellect] { color:#9bc8ff; }
.entity-tooltip-line[data-line-kind=stamina] { color:#d7adf0; }
.entity-tooltip-line[data-line-kind=spirit] { color:#8edbc3; }
@media(max-width:600px) { .date-controls > label { flex:1 1 130px; }.date-controls input[type=date] { width:100%; }.date-picker-panel { left:auto; right:0; width:300px; } }
#player-rules-toggle { align-self:end; background:transparent; border-color:transparent; color:#405d6f; font-size:12px; font-weight:600; }
#player-rules-toggle::before { content:'+'; font-size:16px; }
#player-rules-toggle[aria-expanded=true]::before { content:'−'; }
#player-rules-panel { padding:10px 0 0; border-top:1px solid #dce6ec; margin-top:8px; }
body:has(#guide-filters,#craft-filters,[data-recipe-cost],#profession-route-filters,.profession-card-head,.profession-title) #player-rules-toggle { display:none; }
#account-private > .account-columns { display:grid; grid-column:1/-1; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); align-items:start; gap:18px; }
.account-support { display:grid; gap:18px; min-width:0; }
.account-columns .account-panel { grid-column:auto !important; }
#avatar-presets { margin:10px 0 16px; padding:10px 0; border-top:1px solid #d6e1e7; border-bottom:1px solid #d6e1e7; }
#avatar-presets > summary { display:flex; align-items:center; min-height:36px; font-size:14px; font-weight:600; color:#30576b; cursor:pointer; }
#avatar-presets > summary::before { content:'+'; margin-right:8px; font-size:19px; }
#avatar-presets[open] > summary::before { content:'−'; }
#avatar-preset-list { margin-top:10px; }
@media(max-width:760px) { #account-private > .account-columns { grid-template-columns:1fr; } }
@media(max-width:1350px) and (min-width:1101px) { .guide-nav a { padding-inline:6px; font-size:12px; gap:5px; }.guide-nav .nav-icon { width:16px; height:16px; }#player-character-wrap { max-width:160px; }.account-trigger { max-width:140px; }.topbar-inner { padding-inline:20px; gap:8px; } }
@media(max-width:600px) { .date-picker-panel { left:0; right:auto; width:min(300px,calc(100vw - 54px)); } }
body:has(#guide-filters,#craft-filters,[data-recipe-cost],#profession-route-filters,.profession-title,.item-detail-page) .player-bar { display:none; }
