:root{--astrantia-accent:#137d76;--astrantia-ink:#123c39}
#button-account .astrantia-skin-head{width:32px!important;height:32px!important;object-fit:contain;image-rendering:pixelated}#button-account .astrantia-skin-head[hidden]{display:none!important}
#page-astrantia_rankings .ui.masthead{display:none}
.astrantia-rankings{padding-top:2rem;padding-bottom:2rem;color:#20342d}.ranking-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.4rem}.ranking-heading h1{margin:.35rem 0;font-size:2rem}.ranking-heading p{margin:.5rem 0}.ranking-eyebrow{font-size:.7rem;letter-spacing:.12em;color:#137d76;font-weight:700}.ranking-tabs{display:flex;gap:.5rem;margin-bottom:1.25rem;flex-wrap:wrap}.ranking-tabs a{display:flex;align-items:center;min-height:44px;border-radius:10px;padding:.75rem 1rem;color:#5c7368;background:#eef3ef;font-weight:600;text-decoration:none}.ranking-tabs a[aria-current=page]{background:#137d76;color:white}.ranking-tabs a:focus-visible{outline:3px solid #5bb8af;outline-offset:2px}.ranking-card{border-radius:16px!important;padding:1.4rem!important;min-height:300px}.ranking-summary{display:flex;justify-content:space-between;align-items:baseline;gap:.8rem;margin-bottom:1rem}.ranking-summary h2{font-size:1.25rem;margin:0}.ranking-summary span,.ranking-updated{color:#6e8276;font-size:.8rem}.ranking-table{width:100%;border-collapse:collapse;table-layout:fixed}.ranking-table thead th{font-size:.8rem;color:#6e8276;padding:.7rem .5rem;text-align:left;border-bottom:1px solid #dbe6de}.ranking-table th:first-child{width:75px}.ranking-table th:last-child{width:100px;text-align:right}.ranking-table tbody th{padding:.85rem .5rem;text-align:left;font-weight:600;overflow-wrap:anywhere}.ranking-table td{padding:.85rem .5rem;border-bottom:1px solid #edf2ee}.ranking-table tbody th{border-bottom:1px solid #edf2ee}.ranking-table .ranking-value{text-align:right;font-variant-numeric:tabular-nums;font-weight:700;color:#137d76}.ranking-position{display:inline-flex;justify-content:center;align-items:center;width:32px;height:32px;border-radius:50%;color:#697c71;background:#f0f4f0}.ranking-podium{color:#795a21;background:#f5edda;font-weight:700}.ranking-empty{padding:2rem 0;line-height:1.7;max-width:640px}.ranking-empty h3{margin-bottom:.6rem}.ranking-privacy{color:#6e8276;font-size:.85rem;line-height:1.6;margin-top:1.1rem}.ranking-updated{margin-top:1.2rem;line-height:1.5}
@media(max-width:600px){.astrantia-rankings{padding-top:1.2rem}.ranking-heading{align-items:flex-start;flex-direction:column}.ranking-heading .ui.button{display:inline-block;margin:0;min-height:44px}.ranking-tabs{gap:.4rem}.ranking-tabs a{font-size:.8rem;padding:.65rem .75rem}.ranking-card{padding:1rem!important}.ranking-summary{align-items:flex-start;flex-direction:column;gap:.4rem}.ranking-table{font-size:.85rem}.ranking-table th:first-child{width:54px}.ranking-table th:last-child{width:72px}.ranking-table td,.ranking-table tbody th{padding:.75rem .2rem}.ranking-table .ranking-value{display:table-cell!important}.ranking-table tbody th{width:auto}.ranking-position{width:28px;height:28px}}
/* Fomantic adds body.pushable only after JS initializes. Keep the same layout before then. */
body > .pusher{display:flex!important;flex-direction:column!important;min-height:100vh!important;min-height:100svh!important}
body > .pusher > #wrapper{flex:1 0 auto}
body > .pusher > #footer{flex:0 0 auto;margin:0!important}
html{scrollbar-gutter:stable}
.ui.masthead{background-image:radial-gradient(ellipse at 12% 20%,#216a64 0,transparent 55%),linear-gradient(125deg,#102522,#1e3935)!important;background-color:#102522!important}
.ui.masthead h1{font-size:2.7rem;letter-spacing:-.04em}.connect-server{border:1px solid #ffffff25;border-radius:12px!important;background:#ffffff10!important}
.navbar{box-shadow:0 2px 12px #173e3714}.navbar .nav-link{font-weight:600}
.card,.ui.segment{border-radius:12px!important;box-shadow:0 3px 16px #163d3010}
.ui.segment{padding:1.5rem;background:var(--white,#fff);border:1px solid #ddd}
.ui.button,.astrantia-copy{display:inline-block;border:1px solid #c4d7d4;border-radius:7px;padding:.65rem 1rem;margin:.25rem .3rem .25rem 0;color:var(--astrantia-ink);background:#f3faf8;text-decoration:none;font-weight:600;cursor:pointer}
.ui.primary.button{background:var(--astrantia-accent);border-color:var(--astrantia-accent);color:#fff}
.astrantia-copy{font-size:.8rem;padding:.25rem .55rem;margin-left:.4rem}
.card-body h2{color:var(--astrantia-ink);font-weight:700;margin-bottom:1rem}.card-body h3{font-size:1.25rem;margin-top:1.8rem;color:#23756c}
.card-body p,.card-body li{line-height:1.8}.card-body code{background:#edf5f2;border-radius:4px;padding:.2rem .4rem;color:#12675e}
#widget-online-staff,#widget-online-users,#widget-statistics{display:none!important}
/* Nameless' generic member dashboard is empty until profiles are linked. */
.navbar a[href="/members/"],a[href="/members/"]{display:none!important}
.astrantia-mechanics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1rem;margin:1.5rem 0}
.astrantia-mechanics-grid a{display:flex;flex-direction:column;gap:.45rem;padding:1.15rem;border:1px solid #cfe1dd;border-radius:10px;background:#f7fbfa;color:var(--astrantia-ink);text-decoration:none;transition:transform .15s ease,box-shadow .15s ease}
.astrantia-mechanics-grid a:hover{transform:translateY(-2px);box-shadow:0 5px 16px #163d3018}.astrantia-mechanics-grid span{color:#50635f;line-height:1.45}
.astrantia-guide-steps li{margin:.55rem 0}.astrantia-guide-note{border-left:4px solid var(--astrantia-accent);padding:.85rem 1rem;background:#f1f8f6;border-radius:0 8px 8px 0}
.ui.table{width:100%;border-collapse:collapse}.ui.table td,.ui.table th{padding:.8rem;border-bottom:1px solid #ddd;text-align:left}
@media(max-width:600px){.ui.table{font-size:.85rem}.ui.table th:last-child,.ui.table td:last-child{display:none}.ui.button{display:block;text-align:center}}
.astrantia-access { max-width: 780px !important; padding: 2rem 0; }
.astrantia-guide-section{margin-top:2rem}
.astrantia-guide-section p,.astrantia-guide-section li{line-height:1.65}
.astrantia-guide-table{max-width:100%;overflow-x:auto}
.astrantia-guide .ui.table td,.astrantia-guide .ui.table th{display:table-cell!important;vertical-align:top;overflow-wrap:anywhere}
.astrantia-guide .ui.table td:first-child{width:27%;min-width:105px;font-weight:600}
@media(max-width:600px){.astrantia-guide .ui.segment{padding:1.1rem}.astrantia-guide h1{font-size:1.7rem}.astrantia-guide .ui.table{font-size:.9rem}}
.astrantia-control { padding: 2rem 0; }
.astrantia-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.5rem 0; }
.astrantia-tabs button { border: 1px solid #128b80; background: white; border-radius: .4rem; padding: .8rem 1.1rem; cursor: pointer; }
.astrantia-tabs button[aria-pressed="true"] { background: #128b80; color: white; }
.astrantia-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 1rem; }
.astrantia-metrics > div { border: 1px solid #dde5e3; border-radius: .5rem; padding: 1rem; }
.astrantia-metrics strong { font-size: 1.3rem; }
.astrantia-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.astrantia-control label { display: block; margin: 1rem 0; }
.astrantia-control form button { margin: 1rem 0 !important; }
#console-output, #server-chat { background: #101c24; color: #d8efe6; min-height: 260px; max-height: 460px; overflow: auto; padding: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: .5rem; }
#message-preview { background: #182834; color: #ffd166; display: flex; min-height: 150px; padding: 2rem; align-items: center; justify-content: center; flex-direction: column; text-align: center; overflow-wrap: anywhere; }
#message-preview strong { font-size: clamp(1.2rem,3vw,2rem); }
#message-preview span { color: #ffeeaa; margin-top: .5rem; }
#message-preview.chat-preview { min-height: 80px; text-align: left; align-items: flex-start; }
#message-preview.chat-preview strong { font-size: 1rem; }
.astrantia-control [hidden], .astrantia-access [hidden] { display: none !important; }
@media(max-width:600px) { .astrantia-tabs button { flex: 1 0 40%; } .astrantia-control .ui.segment { padding: 1rem; } }
.astrantia-dashboard{padding:2rem 0 3rem;min-width:0}
#page-astrantia_dashboard .ui.masthead{display:none}
.dashboard-heading h1{overflow-wrap:anywhere}
@media(max-width:600px){#button-account{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:48vw;vertical-align:middle}}
.dashboard-heading,.dashboard-section-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.dashboard-eyebrow{font-size:.75rem;letter-spacing:.12em;font-weight:700;color:#137d76}
.dashboard-heading h1{font-size:clamp(1.8rem,4vw,2.8rem);margin:.3rem 0}
.dashboard-nav{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.5rem 0}
.dashboard-nav a{padding:.8rem 1rem;border:1px solid #cfe1dd;border-radius:8px;background:#f3faf8;color:#123c39;text-decoration:none}
.dashboard-nav a[aria-current]{background:#137d76;color:white}
.dashboard-content{min-height:320px}.dashboard-content p,.chat-message{overflow-wrap:anywhere}
.profession-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:1rem;margin:1rem 0}
.profession-card{padding:1rem;border:1px solid #cfe1dd;border-radius:10px;background:#f7fbfa}.profession-card progress{display:block;width:100%;height:12px;accent-color:#137d76;margin:1rem 0}
.astrantia-dashboard input,.astrantia-dashboard select,.astrantia-dashboard textarea,.astrantia-control input,.astrantia-control select,.astrantia-control textarea{max-width:100%;width:100%;padding:.7rem;border:1px solid #c4d7d4;border-radius:6px;box-sizing:border-box}
.inventory-grid{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:.4rem;margin-bottom:1.5rem}.inventory-grid.equipment{grid-template-columns:repeat(5,minmax(0,1fr))}
.inventory-slot{min-width:0;padding:.55rem;border:1px solid #c4d7d4;border-radius:7px;background:#f3faf8;font-size:.8rem;overflow-wrap:anywhere}.inventory-slot summary{cursor:pointer;list-style:none}.inventory-slot strong{display:block;margin:.35rem 0}.slot-label{font-size:.7rem;color:#61746e}.slot-amount{font-weight:700}.inventory-slot.empty{background:#f8f9f9;color:#7b8984}.inventory-slot[open]{grid-column:span 3}
.chat-conversation{padding:1rem;border:1px solid #cfe1dd;border-radius:10px;margin:1rem 0}.chat-conversation>summary{cursor:pointer;font-weight:700}.chat-message{max-width:85%;margin:1rem 0;padding:.8rem;border-radius:9px;background:#f0f4f3}.chat-message.own{margin-left:auto;background:#e0f3ed}.chat-message p{margin:.4rem 0 0}.chat-message small{color:#50635f}
.dashboard-map{width:100%;height:clamp(350px,65vh,650px);border:0;border-radius:10px}
@media(max-width:600px){.astrantia-dashboard .ui.segment{padding:1rem}.dashboard-nav a{flex:1 0 40%;text-align:center;padding:.7rem}.inventory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.inventory-grid.equipment{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-slot[open]{grid-column:1/-1}.dashboard-section-heading h2{font-size:1.4rem}.chat-message{max-width:100%}.astrantia-dashboard .astrantia-metrics{grid-template-columns:1fr 1fr}.astrantia-metrics strong{font-size:1.05rem;overflow-wrap:anywhere}}
/* Personal game workspace: visual items, character and a single active conversation. */
#page-astrantia_dashboard{background:#f4f6f5;color:#20342d}
.astrantia-dashboard{padding-top:1.5rem;max-width:1180px!important}
.dashboard-heading h1{font-size:clamp(1.55rem,3vw,2.15rem);letter-spacing:-.035em}.dashboard-heading>div>p:last-child{color:#64766e}
.dashboard-nav{flex-wrap:nowrap;overflow-x:auto;padding-bottom:.4rem;margin:1.2rem 0;scrollbar-width:thin;gap:.3rem}
.dashboard-nav a{flex:none;white-space:nowrap;border:0;background:transparent;color:#63766c;padding:.7rem .95rem;border-radius:9px;font-weight:600;font-size:.92rem}
.dashboard-nav a[aria-current]{background:#e1eee6;color:#166d43}.dashboard-nav a:hover{background:#e9f1ec}
.astrantia-dashboard .dashboard-content{border:1px solid #e0e7e2!important;box-shadow:0 3px 16px #213a2a05!important;border-radius:16px!important;padding:1.4rem!important}
.dashboard-section-heading h2{font-size:1.25rem;margin:0}.dashboard-content>#dashboard-status{font-size:.78rem;color:#7b8c80;margin-top:.5rem}
.dashboard-content>#dashboard-data{margin-top:1.1rem}.dashboard-content>p:not(#dashboard-status){font-size:.82rem;color:#69796f;max-width:85ch}
.muted{color:#75847b;font-size:.82rem}.dashboard-empty{padding:2.5rem 1rem;color:#748279;text-align:center}.card-eyebrow{color:#82958a;letter-spacing:.1em;font-size:.7rem}
.character-hero{display:grid;grid-template-columns:200px 1fr;gap:2rem;align-items:center;margin:1rem 0 1.8rem}
.character-portrait{background:radial-gradient(ellipse at 50% 80%,#c2d9bc,#e8efe6 70%);border-radius:24px;display:flex;min-height:260px;align-items:center;justify-content:center;padding:1rem;overflow:hidden}
.character-skin{height:235px;width:auto;image-rendering:pixelated;filter:drop-shadow(0 12px 10px #263a3838)}
.character-info>h2{font-size:2rem;margin:.7rem 0 .35rem}.character-rank{color:#596e60;font-size:1rem}.presence{display:inline-flex;gap:.4rem;align-items:center;color:#76867d;font-size:.75rem;background:#f0f3f1;border-radius:20px;padding:.3rem .65rem}.presence::before{content:'';height:6px;width:6px;border-radius:50%;background:#9baba1}.presence.online{color:#268551;background:#eaf5ed}.presence.online::before{background:#36925a}
.character-info .astrantia-metrics{margin-top:1.2rem;grid-template-columns:repeat(3,1fr);gap:.8rem}.character-info .astrantia-metrics>div{background:#f7f9f7;border:0;padding:.9rem}.character-info .astrantia-metrics p{font-size:.75rem}.character-info .astrantia-metrics strong{font-size:1.25rem}
.account-history{color:#738177;font-size:.8rem;margin-top:1rem}.account-history summary{cursor:pointer}
.profession-card{background:#fff;border:1px solid #e0e7df;border-radius:14px;padding:1.3rem;position:relative}.profession-card>.item-icon{float:right;width:56px;height:56px}.profession-card h3{margin:.4rem 0 .8rem}.profession-card>progress{height:7px;border:0}.profession-card .ui.button{font-size:.82rem;margin:.6rem 0 0;max-width:100%;border-radius:8px}.profession-forget{color:#93664e!important;background:#f6f0ec!important;width:100%}.profession-tool{display:flex;align-items:flex-start;gap:.9rem;padding:1rem 0;border-top:1px solid #eef1ed}.profession-tool>.item-icon{width:44px;height:44px;margin-top:.5rem}.profession-tool>div{flex:1;min-width:0}.profession-tool strong{display:block;font-size:.85rem;overflow-wrap:anywhere}.profession-tool small{display:block}.durability-bar{width:100%;height:7px;accent-color:#68a965;display:block;margin:.6rem 0 .2rem}.durability-label{color:#6f8376;font-size:.7rem}
.inventory-layout{display:grid;grid-template-columns:100px minmax(0,1fr) 235px;gap:1.3rem;align-items:start;padding:.8rem 0}.inventory-layout h3{font-size:.8rem;font-weight:600;color:#7d8d82;margin:0 0 .8rem}.inventory-equipment .inventory-grid.equipment{grid-template-columns:1fr}.inventory-grid{grid-template-columns:repeat(9,minmax(0,1fr));gap:4px;margin-bottom:1.25rem}
.inventory-cell{position:relative;aspect-ratio:1;background:#e8ece8;border:1px solid #dce3db;border-top-color:#fff;border-left-color:#fff;border-radius:7px;cursor:pointer;padding:5px;min-width:0;display:flex;align-items:center;justify-content:center;color:#91a08f;overflow:hidden;box-shadow:inset 1px 1px 0 #ffffffa0,inset -1px -1px 0 #cad4c660}
.inventory-cell:hover,.inventory-cell.selected{background:#dcebdc;outline:2px solid #75a17c;outline-offset:-2px}.inventory-cell.empty{cursor:default;background:#f2f4f1}.inventory-cell.enchanted>.item-icon{filter:drop-shadow(0 0 5px #a083de85)}
.item-icon{height:48px;width:48px;object-fit:contain;image-rendering:pixelated;flex:none;max-width:100%}.inventory-cell>.item-icon{height:100%;width:100%;max-height:60px;max-width:60px}.item-icon-missing{font-size:1.8rem;text-align:center}.empty-slot-symbol{font-size:1.2rem;color:#bcc8ba}
.item-count{position:absolute;bottom:3px;right:5px;font-size:.8rem;line-height:1;font-weight:800;color:#fff;text-shadow:1px 1px #1e2f23,-1px -1px #1e2f23}.cell-durability{position:absolute;bottom:2px;left:10%;width:80%;height:4px;accent-color:#57a767;border:0}
.item-inspector{background:#f8faf7;border-radius:12px;border:1px solid #e9eee7;padding:1rem;min-height:190px;overflow-wrap:anywhere}.item-inspector>.item-icon{width:64px;height:64px;margin-bottom:.6rem}.item-inspector h3{font-size:.95rem;color:#364b3b}.item-inspector p{font-size:.78rem}.enchantment{color:#7760a5!important}.item-lore{color:#69796e}
.messenger{display:grid;grid-template-columns:285px minmax(0,1fr);height:min(620px,70vh);min-height:420px;border:1px solid #e0e7df;border-radius:14px;overflow:hidden;background:#fff}
.messenger.general{grid-template-columns:1fr}.conversation-sidebar{border-right:1px solid #e4e9e2;display:flex;flex-direction:column;min-width:0;background:#fcfdfb;overflow:hidden}.conversation-sidebar-title{display:flex;justify-content:space-between;align-items:center;padding:1rem}.conversation-sidebar-title h3{font-size:1rem;margin:0}.new-conversation{background:#e9f2e8;border:0;border-radius:8px;width:30px;height:30px;color:#367644;font-size:1.2rem;cursor:pointer}.conversation-sidebar>input{margin:0 1rem .8rem;width:calc(100% - 2rem)!important;background:#f0f4ee;border:0!important;font-size:.8rem}.conversation-list{overflow-y:auto;flex:1}.conversation-row{display:flex;width:100%;align-items:center;text-align:left;gap:.65rem;border:0;border-bottom:1px solid #f1f3ef;background:transparent;padding:.85rem .9rem;cursor:pointer;min-width:0}.conversation-row.active,.conversation-row:hover{background:#eaf3e7}.chat-avatar{border-radius:50%;width:38px;height:38px;display:flex;align-items:center;justify-content:center;background:#dce8d7;color:#537347;font-size:.75rem;font-weight:700;flex:none}.conversation-info{min-width:0;flex:1}.conversation-info strong{font-size:.83rem;display:block}.conversation-preview{color:#899486;font-size:.74rem;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;margin-top:.2rem}.conversation-meta{display:flex;flex-direction:column;align-items:flex-end;gap:.35rem;flex:none}.conversation-meta small{font-size:.65rem;color:#929d8e}.unread-badge{background:#4c9761;color:#fff;border-radius:30px;min-width:18px;padding:0 5px;text-align:center;font-size:.66rem}.new-chat-chooser{padding:0 1rem 1rem}.new-chat-chooser select{font-size:.8rem}
.conversation-thread{display:flex;flex-direction:column;min-width:0;min-height:0;background:#f2f5ef}.conversation-heading{display:flex;align-items:center;gap:.6rem;background:#fff;border-bottom:1px solid #e3e9df;padding:.8rem 1rem;min-height:66px}.conversation-heading>div{display:flex;align-items:center;gap:.6rem;min-width:0}.conversation-heading h3{font-size:.9rem;margin:0;color:#5f725d}.chat-name{font-weight:600;font-size:.9rem;overflow-wrap:anywhere}.chat-back{display:none;border:0;background:transparent;color:#567f52;font-size:1.3rem;cursor:pointer}.message-stream{flex:1;overflow-y:auto;padding:1.2rem;display:flex;flex-direction:column;gap:.45rem;overscroll-behavior:contain}.conversation-welcome{margin:auto;padding:1.5rem;text-align:center;font-size:.9rem;color:#8a9983}.message-day{align-self:center;font-size:.65rem;background:#e4eadd;border-radius:5px;padding:.15rem .5rem;color:#83927a;margin:.4rem 0}.message-bubble{max-width:82%;background:#fff;align-self:flex-start;padding:.65rem .8rem .4rem;border-radius:0 12px 12px 12px;box-shadow:0 1px 1px #68796118;overflow-wrap:anywhere}.message-bubble.own{align-self:flex-end;background:#dfeeda;border-radius:12px 0 12px 12px}.message-bubble p{white-space:pre-wrap;margin:0;font-size:.86rem}.bubble-meta{display:block;text-align:right;font-size:.6rem;color:#8c9e80;white-space:nowrap;margin-top:.25rem}.bubble-sender{color:#588b4b;font-size:.72rem;display:block;margin-bottom:.25rem}.message-composer{display:flex;gap:.6rem;padding:.8rem;border-top:1px solid #e3e9dd;background:#fff;align-items:end}.message-composer textarea{background:#f4f6f1;resize:none;min-height:42px;max-height:100px;border:0!important;border-radius:12px!important;padding:.7rem!important;flex:1;font-size:.85rem}.send-message{background:#44875a;color:#fff;border:0;border-radius:10px;padding:.7rem .9rem;font-size:.8rem;font-weight:600;cursor:pointer}.send-message:disabled{opacity:.5}.chat-feedback:empty{display:none}.chat-feedback{font-size:.78rem;color:#986d51;padding:.3rem 1rem;margin:0;background:#fff}.message-composer[hidden],.new-chat-chooser[hidden]{display:none!important}
.map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}.map-toolbar .map-position{font-size:.8rem;color:#6c8270;margin:0}
@media(max-width:800px){.inventory-layout{grid-template-columns:70px minmax(0,1fr)}.item-inspector{grid-column:1/-1;min-height:100px}.inventory-equipment .inventory-grid.equipment{gap:5px}.character-hero{grid-template-columns:140px 1fr;gap:1rem}.character-portrait{min-height:210px}.character-skin{height:195px}.character-info>h2{font-size:1.5rem}.messenger{grid-template-columns:240px minmax(0,1fr)}}
@media(max-width:600px){.astrantia-dashboard{padding-top:1rem}.dashboard-heading h1{font-size:1.5rem}.dashboard-heading{gap:.5rem}.dashboard-heading>div>p:last-child{font-size:.8rem}.dashboard-heading>.ui.button{font-size:.7rem;padding:.7rem}.dashboard-nav a{flex:none;text-align:left;padding:.65rem .75rem;font-size:.8rem}.dashboard-content .dashboard-section-heading h2{font-size:1.1rem}.astrantia-dashboard .dashboard-content{padding:1rem!important}.character-hero{grid-template-columns:100px 1fr;gap:.8rem}.character-portrait{min-height:175px;padding:.6rem;border-radius:14px}.character-skin{height:170px}.character-info>h2{font-size:1.3rem}.character-info .astrantia-metrics{grid-template-columns:1fr!important;gap:.3rem}.character-info .astrantia-metrics>div{display:flex;align-items:center;justify-content:space-between;padding:.35rem .5rem;gap:.3rem}.character-info .astrantia-metrics p{margin:0;font-size:.65rem}.character-info .astrantia-metrics strong{font-size:.8rem}.character-rank{font-size:.8rem}.presence{font-size:.65rem}.profession-grid{grid-template-columns:1fr}.profession-card{padding:1rem}.inventory-layout{display:flex;flex-direction:column;gap:1rem;padding:0}.inventory-equipment,.inventory-pack,.item-inspector{width:100%}.inventory-equipment .inventory-grid.equipment{grid-template-columns:repeat(5,minmax(0,1fr))}.inventory-grid{grid-template-columns:repeat(9,minmax(0,1fr));gap:2px}.inventory-cell{padding:1px;border-radius:3px}.item-count{font-size:.6rem;right:2px;bottom:2px}.cell-durability{height:3px}.inventory-layout h3{font-size:.75rem}.item-inspector{padding:.8rem;min-height:115px}.messenger,.messenger.general{display:flex;min-height:430px;height:65vh;max-height:620px;border-radius:10px}.conversation-sidebar,.conversation-thread{width:100%}.messenger.private .conversation-thread{display:none}.messenger.private.chat-open .conversation-sidebar{display:none}.messenger.private.chat-open .conversation-thread{display:flex}.chat-back{display:block}.conversation-heading{padding:.65rem}.message-stream{padding:.7rem}.message-bubble{max-width:92%}.message-composer{padding:.6rem;gap:.35rem}.send-message{padding:.7rem .65rem}.message-composer textarea{font-size:16px!important}.new-chat-chooser select{font-size:16px!important}.map-toolbar{gap:.5rem}}

.inventory-cell.empty>.item-icon{opacity:.4}.inventory-cell.empty:hover{outline:none}

.astrantia-dashboard[data-dashboard-tab="inventory"] .dashboard-content{min-height:550px}.astrantia-dashboard[data-dashboard-tab="chats"] .dashboard-content,.astrantia-dashboard[data-dashboard-tab="gamechat"] .dashboard-content{min-height:min(820px,calc(70vh + 200px))}
@media(max-width:600px){.astrantia-dashboard[data-dashboard-tab="inventory"] .dashboard-content{min-height:630px}.astrantia-dashboard[data-dashboard-tab="chats"] .dashboard-content,.astrantia-dashboard[data-dashboard-tab="gamechat"] .dashboard-content{min-height:calc(65vh + 210px)}}

/* Searchable moderation tables retain actions and become labelled rows on phones. */
.staff-section-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.2rem}.staff-section-heading h2{margin:0;font-size:1.35rem}.staff-section-heading p{margin:.4rem 0 0}.staff-section-heading>div:last-child{display:flex;gap:.4rem;flex-wrap:wrap}
.staff-filters{display:grid;grid-template-columns:minmax(0,1fr) 180px 110px;gap:.8rem;margin-bottom:1.2rem}.staff-filters label{font-size:.8rem;font-weight:600;color:#576c60}.staff-filters input,.staff-filters select{display:block;width:100%;min-height:44px;border:1px solid #cad8ce;border-radius:8px;padding:.6rem;background:#fff;color:#20342d;margin-top:.35rem}
.staff-table{width:100%;border-collapse:collapse;font-size:.9rem}.staff-table th,.staff-table td{padding:.8rem;border-bottom:1px solid #e1e8e2;text-align:left;overflow-wrap:anywhere}.staff-table th{color:#617269;background:#f4f7f4;font-size:.8rem}.staff-table td:last-child{width:130px}.staff-table td strong{font-size:.9rem}.staff-table tbody tr:hover{background:#f8faf8}.table-sort{border:0;background:transparent;color:inherit;font-weight:600;padding:0;min-height:32px;cursor:pointer}.player-state{display:inline-block;background:#f0f3f0;color:#6c7970;border-radius:20px;padding:.3rem .65rem;font-size:.75rem}.player-state.online{background:#e2f3e7;color:#207b41}.staff-danger{color:#a44040!important;background:#fff7f6!important;border-color:#edd4d0!important}
.staff-pagination{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-top:1rem;font-size:.8rem;color:#67786a}.staff-pagination>div{display:flex;align-items:center;gap:.5rem}.staff-pagination .ui.button{min-height:44px;margin:0}.page-counter{min-width:40px;text-align:center}.staff-empty{padding:2rem;text-align:center;color:#768777}
.staff-dialog{border:1px solid #d2ded4;border-radius:16px;padding:1.5rem;width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow-y:auto;color:#20342d;box-shadow:0 15px 60px #102c3040}.staff-dialog::backdrop{background:#142e3266}.staff-dialog .staff-section-heading{align-items:center}.dialog-close{border:0;background:#f0f4f0;border-radius:50%;width:40px;height:40px;font-size:1.5rem;cursor:pointer}.staff-dialog label{display:block;margin-top:.8rem}.staff-dialog input,.staff-dialog textarea,.staff-dialog select{font-size:16px!important;min-height:44px}.dialog-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1.2rem}.player-combobox{position:relative}.player-combobox [role=listbox]{position:absolute;top:100%;left:0;right:0;z-index:2;background:white;border:1px solid #c5d8ca;border-radius:8px;box-shadow:0 4px 16px #102c3020;max-height:240px;overflow-y:auto;padding:.25rem}.player-suggestion{display:block;width:100%;border:0;border-radius:4px;background:white;padding:.7rem;text-align:left;min-height:44px;color:#20342d;cursor:pointer}.player-suggestion:hover,.player-suggestion[aria-selected=true]{background:#e7f2e7}.player-combobox [role=listbox] p{padding:.7rem}.staff-dialog [hidden]{display:none!important}.staff-table-container{min-height:220px}
@media(max-width:600px){.astrantia-tabs{flex-wrap:nowrap;overflow-x:auto;gap:.35rem;scrollbar-width:thin;padding-bottom:.4rem}.astrantia-tabs button{flex:none;white-space:nowrap;padding:.65rem .8rem;min-height:44px;font-size:.8rem}.staff-section-heading{align-items:flex-start;flex-direction:column;gap:.65rem}.staff-section-heading>div:last-child{width:100%}.staff-section-heading .ui.button{display:inline-block;flex:1;min-height:44px;margin:0}.staff-filters{grid-template-columns:1fr 100px}.staff-filters label:first-child{grid-column:1/-1}.staff-filters input,.staff-filters select{font-size:16px}.staff-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.staff-table,.staff-table tbody,.staff-table tr{display:block;width:100%}.staff-table tr{border:1px solid #e0e8df;border-radius:10px;padding:.6rem .8rem;margin-bottom:.6rem}.staff-table td{display:flex!important;align-items:baseline;justify-content:space-between;gap:.8rem;border:0;padding:.3rem 0;width:100%!important;font-size:.8rem}.staff-table td:before{content:attr(data-label);color:#7b8a7c;font-size:.7rem;flex:0 0 65px}.staff-table td:first-child:before{display:none}.staff-table td:first-child{padding-bottom:.5rem}.staff-table .ui.button{display:inline-block;margin:0;min-height:44px}.staff-pagination{align-items:center;flex-direction:column;gap:.7rem}.staff-pagination>div{width:100%;justify-content:space-between}.staff-pagination .ui.button{display:inline-block;font-size:.8rem;padding:.65rem .8rem}.staff-dialog{padding:1rem}.staff-dialog .staff-section-heading{flex-direction:row}.dialog-actions .ui.button{display:inline-block;flex:1;margin:0}.staff-table-container{min-height:300px}}

.inventory-search{display:grid;grid-template-columns:auto minmax(180px,1fr) auto;gap:.8rem;align-items:center;margin:1rem 0 1.5rem;font-size:.85rem;color:#526b5d}.inventory-search input{min-height:44px;padding:.7rem;border:1px solid #cbdcd2;border-radius:8px;font-size:16px}.inventory-unmatched{opacity:.23}.inventory-cell:focus-visible{outline:3px solid #399b83;outline-offset:2px}@media(max-width:650px){.inventory-search{grid-template-columns:1fr}.inventory-search input{width:100%}}

/* Account and logout work without the hover-only popup or any JavaScript. */
.astrantia-account{position:relative;margin-left:.4rem;align-self:center}.astrantia-account>summary{cursor:pointer;list-style:none;min-height:40px;display:flex!important;align-items:center;gap:.4rem}.astrantia-account>summary::-webkit-details-marker{display:none}.astrantia-account>summary:focus-visible{outline:3px solid #2a9985;outline-offset:2px}.astrantia-account-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:220px;z-index:1200;background:#fff;border:1px solid #d4e2db;border-radius:12px;box-shadow:0 12px 36px #173b312b;padding:.5rem;color:#20342d}.astrantia-account:not([open])>.astrantia-account-menu{display:none}.astrantia-account-menu a,.astrantia-account-menu button{display:block;width:100%;padding:.75rem;border:0;background:transparent;border-radius:7px;text-align:left;color:inherit;font:inherit;cursor:pointer}.astrantia-account-menu a:hover,.astrantia-account-menu button:hover{background:#edf5f0}.astrantia-account-menu form{margin:0}.astrantia-account-menu hr{border:0;border-top:1px solid #e2ebe5;margin:.35rem 0}body.dark .astrantia-account-menu{background:#202e29;color:#e1ece5;border-color:#40574c}
