/* Reino: shared workshop finish. Geometry of inventory cells, combat and minigames stays owned by their modules. */
:root{--realm-paper:#ded6e3;--realm-muted:#aaa1b4;--realm-gold:#dfc385;--realm-line:#74604455;--realm-panel:linear-gradient(145deg,#1b1824,#10121b);--realm-radius:12px}
.realm-heading{display:flex;align-items:center;gap:20px;position:relative;border:1px solid var(--realm-line);border-radius:12px;background:radial-gradient(ellipse at 8% 50%,#98743526,transparent 60%),var(--realm-panel);padding:12px 20px;margin:0 0 18px;min-width:0;box-sizing:border-box;overflow:hidden;color:var(--realm-paper)}
.realm-art{flex:0 0 116px;width:116px;pointer-events:none}.realm-art svg{display:block;width:100%;height:auto;color:var(--realm-art-accent,#c8a86c)}.realm-heading>div:not(.realm-art){min-width:0;flex:1}.realm-eyebrow{font-size:9px;letter-spacing:2px;color:#af9974}.realm-heading h3{font-family:Cinzel,serif;font-size:21px;line-height:1.35;color:var(--realm-gold);margin:6px 0}.realm-heading p{font-size:12px;line-height:1.7;color:var(--realm-muted);margin:0;max-width:580px}.realm-heading-seal{color:#af9259;opacity:.55;font-size:25px;margin-left:auto}.realm-heading[data-realm-theme=farm],.realm-heading[data-realm-theme=greenhouse],.realm-heading[data-realm-theme=animals]{background:radial-gradient(ellipse at 8% 50%,#54835124,transparent 60%),var(--realm-panel)}.realm-heading[data-realm-theme=rest]{background:radial-gradient(ellipse at 8% 50%,#6672a329,transparent 60%),var(--realm-panel)}.realm-art-glints{animation:realm-glimmer 5s ease-in-out infinite;transform-origin:center}
@keyframes realm-glimmer{0%,100%{opacity:.25}50%{opacity:.85}}
/* Shared shells and content surfaces */
:is(.lobby-center,.house-modal-body,.bank-modal-body,.admin-workspace-body) :is(.dsk-fantasy-scene,.dsk-npc-scene,.dsk-module-body,.house-panel){color:var(--realm-paper);box-sizing:border-box;min-width:0}
:is(.lobby-center,.house-modal-body,.bank-modal-body) .dsk-fantasy-scene{max-width:1100px;margin-inline:auto;padding:18px;border:1px solid var(--realm-line);background:radial-gradient(ellipse at 5% 30%,#987b2d12,transparent 55%),var(--realm-panel);box-shadow:0 12px 36px #0003;border-radius:14px}
.dsk-fantasy-scene>.realm-heading{background:transparent;border-width:0 0 1px;border-radius:0;padding:0 0 14px;margin-bottom:18px;box-shadow:none}.dsk-fantasy-scene:before{opacity:.25}.dsk-fantasy-head{color:var(--realm-gold)}
:is(.lobby-center,.house-modal-body,.bank-modal-body,.admin-workspace-body) :is(.dsk-fantasy-card,.bank-tab-panel,.house-chest-side,.house-plot,.house-stable-detail,.house-stable-slot,.npc-an-card,.quest-card,.job-card,.tt-detail,.tt-slots-wrap,.tt-path-row,.pet-equipped-panel,.pet-temp-slot,.pet-card,.rankings-panel,.market-listing-card,.social-card,.clan-card,.p2-card){border-radius:10px;border-color:var(--realm-line);background-color:#191620;box-shadow:inset 0 1px 0 #f1d9b407,0 4px 14px #0001;box-sizing:border-box;min-width:0}
:is(.lobby-center,.house-modal-body,.bank-modal-body) :is(.dsk-fantasy-card,.bank-section,.house-panel) :is(h4,h5){color:var(--realm-gold);font-family:Cinzel,serif}
/* Navigation: wraps rather than creating a second horizontal scrollbar. */
:is(.lobby-center,.house-modal-body,.bank-modal-body) :is(.dsk-tabs,.social-tabs,.bank-tabs,.house-stable-locs,.dsk-module-toolbar){display:flex;flex-wrap:wrap;gap:7px;margin:0 0 14px;padding:7px;border:1px solid #65523f44;border-radius:9px;background:#12111a;min-width:0}
:is(.lobby-center,.house-modal-body,.bank-modal-body) :is(.dsk-tab,.social-tab,.house-stable-loc-btn){border-radius:7px;background:#211b2b;border:1px solid #65524455;color:#bdb2c7;padding:9px 13px;font-size:11px;min-height:36px;white-space:normal}
:is(.lobby-center,.house-modal-body,.bank-modal-body) :is(.dsk-tab--on,.social-tab--on,.house-stable-loc-btn--on){background:linear-gradient(135deg,#514125,#2b232b);border-color:#b69755;color:#ecd49b;box-shadow:inset 0 1px #f4dfaa11}
/* Buttons preserve existing size contracts, especially inventory, talent nodes and battle controls. */
:is(.lobby-center,.house-modal-body,.bank-modal-body,.admin-workspace-body) :is(.btn-primary,.btn-secondary,.btn-ghost){border-radius:7px;line-height:1.35;transition:filter .15s,border-color .15s;box-sizing:border-box}
:is(.lobby-center,.house-modal-body,.bank-modal-body,.admin-workspace-body) .btn-primary{background:linear-gradient(135deg,#d0b468,#9e7e39);color:#1b1510;border:1px solid #dbc17c;box-shadow:0 3px 12px #ad853a18}
:is(.lobby-center,.house-modal-body,.bank-modal-body,.admin-workspace-body) .btn-secondary{background:linear-gradient(145deg,#302639,#1c1926);color:#e1d4b5;border:1px solid #75604477}
:is(.lobby-center,.house-modal-body,.bank-modal-body,.admin-workspace-body) .btn-ghost{background:#191521;color:#bfb1c8;border:1px solid #66504455}
:is(.lobby-center,.house-modal-body,.bank-modal-body,.admin-workspace-body) button:not(:disabled):hover{filter:brightness(1.12)}
:is(.lobby-center,.house-modal-body,.bank-modal-body,.admin-workspace-body) :is(button,input,select,textarea,summary):focus-visible{outline:2px solid #ddc17b;outline-offset:3px}
/* Inputs: explicit types avoid changing the fishing slider, checkboxes or info icons. */
:is(.lobby-center,.house-modal-body,.bank-modal-body,.admin-workspace-body) :is(input[type=text],input[type=number],input[type=search],input[type=password],input[type=datetime-local],select,textarea){background-color:#111019;border:1px solid #65516f66;border-radius:6px;color:#e1d9e7;max-width:100%;box-sizing:border-box;min-width:0}
:is(.lobby-center,.house-modal-body,.bank-modal-body,.admin-workspace-body) input::placeholder{color:#83778f}
/* Home: quiet room, fertile plots and coordinated storage. */
:is(.lobby-center,.house-modal-body) .house-panel{max-width:1100px;margin:auto;padding:16px;border:1px solid var(--realm-line);border-radius:12px;background:var(--realm-panel)}
.house-panel--center .house-section-title{font-size:15px}.house-panel .house-hint{font-size:11px;line-height:1.7;color:#aaa1b4}.house-panel .house-rest-status{padding:18px;margin:18px auto;border:1px solid #62638255;border-radius:10px;background:radial-gradient(ellipse,#53638320,transparent 70%),#15141f;color:#c8c5dd;max-width:440px}.house-panel .house-rest-status--on{border-color:#91ac9655;color:#c8dfbf}.house-panel .house-vitals-mini{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.house-panel .house-vitals-mini>span{background:#15141f;border:1px solid #4e405955;padding:8px 12px;border-radius:7px;font-size:11px}.house-panel .house-hub-card{border-radius:10px;background:linear-gradient(145deg,#24202d,#15151f);border-color:#78623f66;box-shadow:inset 0 1px #f1d9b407}.house-panel .house-hub-card:hover{border-color:#c3a265}.house-panel .house-farm-scene,.house-panel .house-greenhouse-scene,.house-stable-scene{border:1px solid #66875d44;border-radius:12px;background:radial-gradient(ellipse at 40% 20%,#4670471c,transparent 65%),#12171a;padding:14px}.house-panel .house-farm-stat{border-color:#76623f55;background:#1b1b23;border-radius:8px}.house-panel .house-farm-stat-val{color:#d9c285}.house-panel .house-tree-grid,.house-panel .house-cell-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.house-panel .house-tree-grid{max-width:360px;margin:auto}.house-panel .house-cell,.house-panel .house-tree-slot{border-radius:8px}.house-panel .house-chest-side{padding:12px;background:linear-gradient(145deg,#1b1924,#11131b);border-color:#725d3e55}.house-panel .house-fish-gear{justify-content:center;gap:18px}.house-panel .house-fish-gear-slot{padding:12px;border:1px solid #5f829255;border-radius:10px;background:#151c25}.house-panel .house-fish-bar{box-shadow:0 0 0 1px #70859744}
/* NPC commerce and recipes */
.dsk-npc-scene{padding:18px;border:1px solid var(--realm-line)!important;border-radius:12px;background:var(--realm-panel)!important;max-width:1100px;margin:auto}.dsk-npc-scene-head{padding:12px 0 18px;border-bottom:1px solid #74604444;margin-bottom:16px}.dsk-npc-scene-head h4{font:17px Cinzel,serif;color:var(--realm-gold)}.dsk-npc-scene-head p{font-size:12px;color:var(--realm-muted);line-height:1.7}.dsk-npc-shop-grid{gap:12px}.dsk-npc-shop-card{border-radius:10px;background:linear-gradient(145deg,#25202d,#15151e)!important;box-shadow:0 5px 16px #0002;padding:14px;min-width:0}.dsk-npc-shop-card-art{border:1px solid #92724733;border-radius:10px;background:radial-gradient(ellipse,#a2832c24,transparent 75%),#15121d!important}.dsk-npc-shop-card-img{object-fit:contain}.dsk-npc-shop-card-name{color:#e2d2ae;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.dsk-npc-shop-price{font-size:11px}.dsk-npc-shop-actions,.npc-an-actions{display:flex;flex-wrap:wrap;gap:8px}.dsk-npc-shop-buy{border-radius:7px;background:linear-gradient(135deg,#c9ac62,#967435);color:#1b1510;border:1px solid #c9ad68;min-height:36px;padding:8px 12px}.dsk-npc-shop-buy--alt{background:#30243d;color:#d9c6ed;border-color:#8b6ba7}.npc-queue,.npc-craft-card,.npc-craft-recipe{border:1px solid var(--realm-line);border-radius:10px;background:#191520;padding:12px}.npc-an-stats{display:flex;gap:10px;flex-wrap:wrap;padding:10px;border-radius:8px;background:#100f17}.npc-an-wallet{display:inline-block;border:1px solid #95794055;background:#8a6c291c;padding:7px 12px;border-radius:20px;color:#dfc385;font-size:11px}
/* Quests, work and talents keep their semantic state colours. */
.quests-panel-root{max-width:1100px;margin:auto}.quest-grid{gap:12px}.quest-card{background:linear-gradient(145deg,#24202e,#14141f)!important;border:1px solid #77603d66!important;border-radius:11px!important;overflow:hidden}.quest-card-body{padding:16px;min-width:0}.quest-card h4{font:14px Cinzel,serif;color:#dfc385}.quest-card p{font-size:12px;line-height:1.7;color:#b3a9bf}.quest-card-cat{font-size:9px;color:#af9a75;letter-spacing:.7px}.quest-card--done{border-color:#7ea56c88!important}.quest-progress{height:6px;border-radius:8px;background:#302438;overflow:hidden;margin:12px 0}.quest-progress>div{background:linear-gradient(90deg,#6f5f99,#b8a2d3);border-radius:8px}.quest-card--done .quest-progress>div{background:linear-gradient(90deg,#527551,#abc88e)}.quest-card-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px}.job-card{border-radius:11px!important;border-color:#83694155!important}.job-card-title{font-size:14px}.job-card-inner{padding:16px}.tt-pp{background:#ad85351a;border:1px solid #a88a4155;border-radius:8px;padding:12px;color:#ccb684;font-size:12px}.tt-slots-wrap{padding:14px;border:1px solid var(--realm-line);background:var(--realm-panel)}.tt-detail{padding:16px;border:1px solid #7d644f55;background:var(--realm-panel)}.tt-path-row{padding:12px;border:1px solid #7d644f55;background:#181521}.tt-path-title{color:#d4ba7d;font-family:Cinzel,serif}.tt-path-track{overflow-x:visible;flex-wrap:wrap;gap:8px}.tt-node{border-radius:10px}.tt-node--owned{border-color:#79a56d}.tt-node--ready{border-color:#d3ae52}.tt-node--locked{border-color:#916071}.tt-slot{border-radius:8px;background:linear-gradient(145deg,#25202e,#17141e)}
/* Bank and excavation */
.bank-section{padding:10px;min-width:0}.bank-hint{line-height:1.7;font-size:12px;color:#b1a5ba}.bank-section label{font-size:11px;color:#c4b2cd}.bank-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.bank-actions button{width:auto!important}.bank-lottery-history{padding:0;list-style:none}.bank-lottery-history li{padding:10px;border-bottom:1px solid #74604433;font-size:11px}.exc-entry{padding:20px;border:1px solid #6e634855;border-radius:12px;background:radial-gradient(ellipse,#62684818,transparent 75%),var(--realm-panel)}.exc-entry h3,.exc-best{color:#dec486}.exc-entry p{font-size:12px;line-height:1.7}.exc-run-head,.exc-safe-panel,.exc-outcome,.exc-loot-bar{padding:14px;border:1px solid #76614455;border-radius:10px;background:var(--realm-panel);margin-bottom:12px}.exc-actions{display:flex;flex-wrap:wrap;gap:10px}.exc-run-head h3{color:#dec486}.exc-grid{border-radius:10px;border:1px solid #72614666}
/* Remaining collections, clan panels and the main navigation. */
.dsk-view-header,.dsk-hub-lobby-head{border-bottom-color:#80664155}.dsk-hub-tab,.game-tab{border-radius:7px 7px 0 0}.dsk-hub-tab--on{background:linear-gradient(135deg,#433128,#211b2c);color:#e7c988;border-bottom-color:#be9a50}.lobby-slots-grid .lobby-slot-card{border-radius:10px;box-shadow:inset 0 1px #f5deab11,0 5px 16px #0002}.rankings-panel table{border-collapse:collapse;width:100%}.rankings-panel :is(td,th){padding:10px;border-bottom:1px solid #64513f44}.rankings-panel th{color:#dfc385;background:#231e2d}.p2-card,.clan-card,.pet-card{background:var(--realm-panel)}.p2-card h4,.pet-name{color:#dfc385}.inv-section{border-radius:10px;background:var(--realm-panel);border-color:#705b4155}
/* Administration: clear grouping and compact, aligned controls. */
.dsk-admin-root{color:var(--realm-paper)}.dsk-admin-nav{background:var(--realm-panel);border:1px solid var(--realm-line);border-radius:10px;padding:8px;scrollbar-width:thin;scrollbar-color:#806b4b #17131f}.dsk-admin-nav-btn{border-radius:6px;margin:2px 0;padding:9px 10px;min-height:35px;font-size:11px;color:#bfb3cb;border:1px solid transparent}.dsk-admin-nav-btn--on{background:linear-gradient(135deg,#44332a,#2a2037);border-color:#a98a5555;color:#e3c889}.dsk-admin-main{border:1px solid #74604444;border-radius:12px;background:linear-gradient(145deg,#191520,#10121a);padding:16px;min-width:0}.dsk-admin-module-title{color:#dfc385;font:17px Cinzel,serif;padding-bottom:12px;border-bottom:1px solid #74604444}.adf-root :is(.adf-card,.adf-shell-section,.admin-card,.admin-section,.admin-slot-editor,.admin-npc-editor,.admin-form-section,.admin-accordion){border:1px solid #74604455;border-radius:9px;background:linear-gradient(145deg,#211b29,#14141c);margin-bottom:12px;min-width:0}.adf-root :is(.adf-shell-section-head,summary){cursor:pointer;color:#dbc18a;padding:12px;line-height:1.5}.adf-root details[open]>summary{border-bottom:1px solid #74604433;margin-bottom:10px}.adf-root :is(.adf-shell-section-body,.admin-form-section){padding:14px}.adf-root :is(.admin-editor-toolbar,.admin-slot-editor-head,.admin-image-actions,.adf-toolbar,.adf-shell-header-actions){display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}.adf-root .admin-slot-editor-head{justify-content:space-between;margin-bottom:12px}.adf-root :is(.admin-toggle,.admin-checkbox){display:flex!important;align-items:center;flex-direction:row!important;gap:7px;font-size:11px;margin:0}.adf-root :is(input[type=checkbox],input[type=radio]){width:16px!important;height:16px!important;min-height:0!important;flex:none;accent-color:#c7a759;margin:0!important}.adf-root label:has(>input[type=checkbox]){display:flex;flex-direction:row;align-items:center;gap:7px}.adf-root :is(input[type=text],input[type=number],input[type=search],select){min-height:34px;padding:7px 9px;font-size:12px}.adf-root textarea{padding:10px;font-size:12px;line-height:1.6}.adf-root :is(.admin-hint,.adf-hint){color:#a99db5;font-size:11px;line-height:1.7}.adf-root :is(.admin-image-field,.admin-image-preview){border-color:#74604455;border-radius:8px;background:#17141e}.adf-root table{border-collapse:collapse}.adf-root :is(th,td){padding:9px;border-bottom:1px solid #74604444;font-size:11px}.adf-root th{color:#dfc385;background:#211b2a}.adf-root .tt-path-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.adf-root .tt-path-head>input{flex:1 1 180px}.adf-root .tt-path-head>label{flex:none;position:static}.adf-root button{max-width:100%}.adf-root .admin-slot-editor-actions{display:flex;gap:6px;position:static}
@media(max-width:800px){.realm-heading{padding:12px;gap:12px}.realm-art{flex-basis:90px;width:90px}.realm-heading h3{font-size:18px}.realm-heading-seal{display:none}.dsk-admin-main{padding:12px}.dsk-admin-layout{gap:12px}.house-chest-dual{grid-template-columns:1fr}.dsk-npc-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.realm-heading{gap:10px;margin-bottom:12px}.realm-art{flex-basis:70px;width:70px}.realm-eyebrow{font-size:8px;letter-spacing:1px}.realm-heading h3{font-size:16px;margin:5px 0}.realm-heading p{font-size:10px;line-height:1.6}.dsk-fantasy-scene>.realm-heading{padding-bottom:10px}.lobby-center .dsk-fantasy-scene,.lobby-center .house-panel,.dsk-npc-scene{padding:12px}.dsk-admin-layout{grid-template-columns:1fr}.dsk-admin-nav{display:flex;flex-wrap:wrap;gap:4px;max-height:none!important}.dsk-admin-nav-btn{flex:1 1 120px}.quest-grid,.jobs-grid{grid-template-columns:1fr}.dsk-npc-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dsk-npc-shop-card{padding:10px}.dsk-npc-shop-card-name{font-size:11px}.dsk-npc-shop-buy{min-height:44px;width:100%}.tt-layout{grid-template-columns:1fr}.bank-actions button{flex:1 1 130px;min-height:44px}.house-panel .house-tree-grid{max-width:300px}.adf-root :is(.adf-shell-header-actions,.admin-editor-toolbar)>button{min-height:44px}.adf-root .admin-slot-editor-fields{grid-template-columns:1fr}}
@media(max-width:380px){.dsk-npc-shop-grid{grid-template-columns:1fr}.realm-art{flex-basis:58px;width:58px}}
@media(prefers-reduced-motion:reduce){.realm-art-glints{animation:none}:is(.lobby-center,.house-modal-body,.bank-modal-body,.admin-workspace-body) :is(.btn-primary,.btn-secondary,.btn-ghost){transition:none}}

/* Collection panels and remaining shared dialogs. */
.house-hub-card>.realm-art{width:78px;margin:0 auto 8px}.house-panel .house-hub-grid{gap:12px}.lobby-center :is(.inv-hub-col,.inv-item-detail,.pet-detail-panel,.pet-collection-panel,.jrn-stat-card,.ency-entry,.ency-search,.relay-match,.relay-team,.p2-section,.clan-panel,.clan-tournament-card){border:1px solid var(--realm-line);border-radius:10px;background:var(--realm-panel);box-shadow:inset 0 1px #f1d9b407}.inv-wallet{color:#ddc385;font-size:12px}.jrn-stat-card{padding:12px}.jrn-stat-value{color:#dfc385}.jrn-category-head{gap:10px}.ency-search{padding:14px;gap:12px}.ency-entry{margin-bottom:8px}.ency-entry summary{padding:12px;cursor:pointer}.lobby-center :is(.p2-tabs,.relay-actions,.clan-actions){display:flex;gap:8px;flex-wrap:wrap}.house-modal-sheet,.bank-modal-sheet,.admin-workspace-sheet{background:linear-gradient(150deg,#20192b,#11131c);border-color:#79634366;border-radius:14px;box-shadow:0 16px 55px #0008}.house-modal-top,.bank-modal-top,.admin-workspace-top{border-bottom-color:#74604455;background:#19141f}.house-modal-top h3,.bank-modal-top h3{color:#dfc385;font-family:Cinzel,serif}.dsk-admin-root>.realm-heading{padding-block:8px}.dsk-admin-root>.realm-heading .realm-art{width:86px;flex-basis:86px}@media(max-width:600px){.house-hub-card>.realm-art{width:65px}.ency-search{grid-template-columns:repeat(2,minmax(0,1fr))}.ency-search label:first-child{grid-column:1/-1}.dsk-admin-root>.realm-heading .realm-art{width:65px;flex-basis:65px}}

.relay-root{padding:16px;border:1px solid var(--realm-line);border-radius:12px;background:var(--realm-panel);color:var(--realm-paper)}.relay-root .relay-tournament{border:1px solid #79603f55;border-radius:10px;background:linear-gradient(145deg,#26202d,#14131e);padding:14px}.relay-root .relay-tournament h4{font:14px Cinzel,serif;color:#dfc385}.relay-root .relay-tournament p{font-size:11px;color:#b2a7bc}.relay-root>details{border:1px solid #79603f55;border-radius:8px;padding:12px;margin-bottom:12px;background:#19151f}.relay-root summary{color:#d7bd81;cursor:pointer}.relay-form{gap:12px}.relay-form label{font-size:11px;color:#bdb0c8}.clan-card-fantasy,.dsk-vip-shop,.exp-cave-card,.pvp-panel{border-color:#74604455;border-radius:12px}.lobby-center .jobs-list{gap:12px}.lobby-center .job-card-inner{padding:14px}.lobby-center .dsk-npc-shop-card{padding:14px;gap:8px}.lobby-center .quest-card{border-radius:11px}.lobby-center .quest-card-body{padding:16px}.lobby-center .house-hub-card>.realm-art{flex:none}.lobby-center .house-hub-card{gap:8px}.lobby-center .adf-root .tt-path-track{overflow-x:visible}.lobby-center .house-panel>.house-section-title{margin-top:12px}@media(max-width:600px){.lobby-center .dsk-npc-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lobby-center .dsk-npc-shop-card{padding:10px}.lobby-center .dsk-admin-layout{grid-template-columns:1fr}.lobby-center .dsk-admin-nav{max-height:none;height:auto}.lobby-center .tt-layout{grid-template-columns:1fr}.lobby-center .jobs-list{grid-template-columns:1fr}}@media(max-width:380px){.lobby-center .dsk-npc-shop-grid{grid-template-columns:1fr}}
