/* Compact cabinet: overview first, details when requested. */
.cabinet-compact {color:#e4edef;background:radial-gradient(ellipse at 20% 0,#142529 0,#0b1115 65%)}
.cabinet-compact .shell {max-width:1140px;padding:28px 24px 60px}
.cabinet-compact button {cursor:pointer;color:#dce9ec;margin-top:0}
.cabinet-compact button:disabled {cursor:default;opacity:.45}
.cabinet-compact button:focus-visible,.cabinet-compact summary:focus-visible,.cabinet-compact input:focus-visible {outline:2px solid #9bd4bf;outline-offset:3px}
.cabinet-compact .topbar {padding-bottom:20px;align-items:center;gap:12px}
.cabinet-compact .topbar h1 {font-size:30px;margin:6px 0 0;letter-spacing:-.035em}
.cabinet-compact .eyebrow {font-size:10px;letter-spacing:.15em;color:#8ea9aa}
.cabinet-compact .status {border:0;color:#90c5ab;padding:0;white-space:nowrap;font-size:10px}
.cabinet-compact .tabs {display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) auto;gap:6px;margin:20px 0 18px;align-items:stretch}
.cabinet-compact .tabs>button,.cabinet-compact .cabinet-more>summary {display:flex;justify-content:center;align-items:center;min-height:43px;margin:0;padding:9px 13px;font-size:13px;border:1px solid #293b41;border-radius:8px;background:#101c21;white-space:nowrap}
.cabinet-compact .tabs>button.active {background:#203b35;border-color:#5c927e;color:#d7f4e7}
.cabinet-more {position:relative;padding:0!important;border:0!important}
.cabinet-more>summary {list-style:none;cursor:pointer;user-select:none}
.cabinet-more>summary::after {content:'⌄';margin-left:8px;color:#8ea9aa}
.cabinet-more>summary::-webkit-details-marker {display:none}
.cabinet-more-menu {position:absolute;right:0;top:calc(100% + 8px);z-index:20;min-width:240px;padding:8px;display:grid;gap:4px;background:#142228;border:1px solid #3a5358;border-radius:10px;box-shadow:0 12px 30px #0008}
.cabinet-more-menu>* {display:block;width:100%;text-align:left;padding:11px 12px!important;margin:0!important;border:0!important;background:transparent!important;border-radius:5px;color:#dce9ec!important;font:inherit;font-size:13px;text-decoration:none}
.cabinet-more-menu>*:hover {background:#263e42!important}
.cabinet-compact .dossier {display:block}
.profile-sections {display:flex;gap:22px;margin:0 0 20px;border-bottom:1px solid #293c42}
.profile-sections button {padding:12px 2px;background:transparent;border:0;border-bottom:2px solid transparent;color:#91a7ad;font-size:13px;border-radius:0}
.profile-sections button.active {border-bottom-color:#92cdb4;color:#e0f2e9}
.profile-overview {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:16px;align-items:start}
.cabinet-compact .card {min-height:0;padding:22px;border-radius:12px;background:#111d22c9;border:1px solid #293b42}
.cabinet-compact .identity,.cabinet-compact .vitals,.cabinet-compact .stats,.cabinet-compact .titles,.cabinet-compact .skills {grid-column:auto;grid-row:auto;min-height:0}
.cabinet-compact .identity {position:relative;padding-right:124px;min-height:320px}
.cabinet-compact .identity .portrait {position:absolute;right:22px;top:25px;width:78px;height:104px;margin:0;border-radius:8px;overflow:hidden;color:#6e8a92;font-size:11px}
.cabinet-compact .identity h2 {font-size:23px;line-height:1.25;margin:16px 0 8px;overflow-wrap:anywhere;letter-spacing:-.03em}
.cabinet-compact .identity>p {margin:5px 0;font-size:13px;line-height:1.55}
.cabinet-compact .identity #statusLine {font-size:12px;color:#8ca5aa}
.profile-identifiers {margin:18px 0 14px}
.profile-identifiers>label {display:block;font-size:11px;color:#8fa9ad;margin-bottom:6px}
.profile-id-row {display:flex;align-items:center;gap:8px}
.profile-id-row input {width:90px;min-width:0;border:0;border-radius:4px;background:#0b151a;padding:8px 9px;color:#d5f2e5;font:600 17px ui-monospace,monospace}
.profile-id-row button,.profile-guild button {font-size:11px;padding:7px 10px;border-radius:5px;border-color:#3c5b58;background:#172b2b}
.profile-identifiers>small {display:block;font-size:10px;line-height:1.5;color:#8aa1a5;margin-top:6px}
.profile-guild {display:grid;gap:6px;border-top:1px solid #294047;padding-top:15px;margin-right:-102px}
.profile-guild .label {font-size:10px;letter-spacing:.1em}
.profile-guild strong {font-size:15px;overflow-wrap:anywhere}
.profile-guild small {font-size:11px;color:#9bb0b4}
.profile-guild button {justify-self:start;margin-top:3px}
.profile-fold {border-top:1px solid #294047;padding-top:13px;margin-top:14px}
.profile-fold>summary,.profile-build-manual>summary,.cabinet-filter-fold>summary {font-size:13px;color:#a9c0c3;cursor:pointer;line-height:1.6}
.profile-fold>summary:hover,.profile-build-manual>summary:hover {color:#e2f3ee}
.profile-identity-settings {margin-right:-102px}
.profile-settings-body {padding-top:12px;display:flex;gap:8px;flex-wrap:wrap}
.profile-settings-body button {font-size:12px;padding:9px 12px}
.profile-settings-body .portrait-editor,.profile-settings-body #identityEditor {width:100%}
.cabinet-compact .vitals {display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cabinet-compact .vitals>.label,.cabinet-compact .vitals>.profile-progress,.cabinet-compact .vitals>button {grid-column:1/-1}
.cabinet-compact .vitals>div {padding:0;border:0}
.cabinet-compact .vitals>div>div {padding:12px 0;border:0;border-bottom:1px solid #293d44}
.cabinet-compact .vitals strong {display:block;margin-top:5px;font-size:23px;letter-spacing:-.03em}
.cabinet-compact .vitals small {font-size:11px;color:#90a8ae;opacity:1}
.profile-progress {padding-top:6px!important}
.profile-progress progress {width:100%;height:6px;display:block;margin-top:8px;accent-color:#8bc7ab}
#profileFreePoints {background:#24443a;border-color:#638d76;color:#e3f5e9;padding:10px;text-align:left;font-size:12px;border-radius:6px}
.cabinet-compact .titles,.cabinet-compact .promo {padding:16px 20px}
.cabinet-compact .titles .profile-fold,.cabinet-compact .promo .profile-fold {margin:0;padding:0;border:0}
.cabinet-compact .equipped-title {font-size:13px;margin:0 0 12px;background:transparent;border:0;padding:0}
.cabinet-compact .promo .label,.cabinet-compact .titles .label {display:none}
.cabinet-compact .title-chip {margin:6px 0 0}
.cabinet-compact .profile-panel>.skills+.skills {margin-top:16px}
.cabinet-compact .v2-build-head {gap:12px;margin-bottom:14px}
.cabinet-compact .v2-build-head>div>span {font-size:11px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.profile-build-manual {margin:6px 0 20px;padding:12px 0;border-top:1px solid #2c4148;border-bottom:1px solid #2c4148}
.profile-build-manual .v2-spec-image {max-height:180px;object-fit:contain;margin-top:16px}
.cabinet-compact .skillcols {gap:24px}
.cabinet-compact .skillcols h3 {font-size:14px;margin:10px 0}
.cabinet-compact details.skill-disclosure {display:block;padding:0;border:1px solid #2a4148;background:#101b20;border-radius:8px;margin:8px 0;overflow:hidden;cursor:auto}
.skill-disclosure>summary {display:grid;grid-template-columns:32px minmax(0,1fr) 12px;gap:10px;align-items:start;padding:12px;cursor:pointer;list-style:none}
.skill-disclosure>summary::-webkit-details-marker {display:none}
.skill-disclosure>summary::after {content:'+';color:#8eafa8;font-size:17px;line-height:1}
.skill-disclosure[open]>summary::after {content:'−'}
.skill-disclosure>summary b {font-size:13px}
.skill-disclosure .v2-skill-preview {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:5px;line-height:1.45;font-size:11px;color:#94adb1}
.skill-disclosure .learned-skill-description {padding:0 14px 14px;margin:0;line-height:1.6}
.skill-disclosure .v2-skill-badge {width:30px;height:30px;margin:0;flex-shrink:0}
.skill-disclosure .v2-skill-badge img {width:30px;height:30px;object-fit:cover}
.skill-disclosure .skill-forget {font-size:11px;padding:7px 10px;color:#d3a5a5;border-color:#654344;background:#281c20}
.cabinet-filter-fold {position:relative}
.cabinet-filter-fold>summary {font-size:12px;padding:7px 0;white-space:nowrap}
.cabinet-filter-fields {display:flex;gap:8px;flex-wrap:wrap;padding:10px 0}
.cabinet-compact .inventory-controls,.cabinet-compact .market-filters {display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.cabinet-compact .inventory-controls input,.cabinet-compact .market-filters input {flex:1;min-width:130px}
.cabinet-compact .inventory-head {flex-wrap:wrap}
.cabinet-compact .inventory-head>.inventory-controls {width:100%}
.cabinet-compact .guild-card {min-height:0}
.cabinet-compact .guild-section-tabs {gap:6px}
.guild-overview-fold>summary {font-size:14px;font-weight:600;cursor:pointer;color:#c5dadb}
.guild-overview-fold[open]>summary {margin-bottom:16px}
@media(max-width:720px){
 .cabinet-compact .shell {padding:20px 14px 40px}
 .cabinet-compact .topbar {flex-direction:row;align-items:center}
 .cabinet-compact .topbar h1 {font-size:25px}
 .cabinet-compact .status {font-size:9px}
 .cabinet-compact .tabs {grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:16px 0 12px}
 .cabinet-compact .tabs>button,.cabinet-compact .cabinet-more>summary {font-size:12px;padding:9px 6px;min-height:39px}
 .profile-sections {gap:18px;margin-bottom:14px}
 .profile-sections button {font-size:12px;padding:11px 0}
 .profile-overview {grid-template-columns:1fr;gap:12px}
 .cabinet-compact .card {padding:18px}
 .cabinet-compact .identity {padding-right:114px;min-height:0}
 .cabinet-compact .identity .portrait {right:18px;top:20px;width:74px;height:99px}
 .profile-guild,.profile-identity-settings {margin-right:-96px}
 .cabinet-compact .identity h2 {font-size:22px}
 .cabinet-compact .vitals {gap:8px 18px}
 .cabinet-compact .vitals strong {font-size:22px}
 .cabinet-compact .skillcols {grid-template-columns:1fr;gap:14px}
 .cabinet-compact .v2-build-head {grid-template-columns:1fr}
 .cabinet-compact .v2-build-head>div {padding:8px 0}
 .cabinet-compact .v2-build-head>div>span {display:none}
 .cabinet-compact .profile-panel .stats {padding:18px 12px}
 .cabinet-compact .guild-section-tabs {display:flex;overflow:auto;flex-wrap:nowrap}
 .cabinet-compact .guild-section-tab {flex-shrink:0;font-size:12px;padding:9px}
}
/* Approved responsive cabinet, 17 October. The existing skill and inventory UI
   keeps its behavior; navigation, overview and guild workspace share this skin. */
:root {--ui-bg:#0d151b;--ui-surface:#142129;--ui-line:#2b3d47;--ui-muted:#a1b3c3;--ui-text:#ecf0f4;--ui-accent:#67cdb4}
.cabinet-compact {color:var(--ui-text);background:var(--ui-bg);font-size:14px;line-height:1.5}
.cabinet-compact .shell {max-width:1420px;padding:20px 30px 48px}
.cabinet-compact .topbar {display:flex;align-items:center;gap:24px;padding:0 0 16px;border-bottom:1px solid var(--ui-line)}
.cabinet-brand {color:var(--ui-text);text-decoration:none;font-size:23px;font-weight:750;letter-spacing:-.025em;white-space:nowrap}
.cabinet-compact .tabs {display:flex;flex:1;gap:6px;margin:0;justify-content:center;align-self:stretch}
.cabinet-compact .tabs>button {display:flex;gap:9px;padding:10px 12px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;min-height:48px;font-size:14px;color:#bcc9d6}
.cabinet-compact .tabs>button.active {background:transparent;border-bottom-color:var(--ui-accent);color:#78e1cb}
.ui-icon {display:inline-block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}
.cabinet-tools {display:flex;align-items:center;gap:16px;min-width:0}
.header-character {color:var(--ui-muted);max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.cabinet-compact .cabinet-more>summary {border:0;background:transparent;padding:10px 3px;min-height:44px;font-size:14px}
.page-heading {display:flex;align-items:center;margin:22px 0 18px}
.page-heading h1 {margin:0;font-size:30px;letter-spacing:-.035em;line-height:1.25}
body:has(#guild:not(.hidden)) .page-heading {display:none}
.cabinet-compact .page {margin-top:0}
.cabinet-compact .card {padding:22px;background:var(--ui-surface);border-color:var(--ui-line);border-radius:10px}
.cabinet-compact button,.cabinet-compact input,.cabinet-compact select {font:inherit}
.cabinet-compact input,.cabinet-compact select {max-width:100%;min-width:0;color:var(--ui-text);background:#14232c;border:1px solid #3a515e;border-radius:7px;padding:10px 12px;min-height:42px}
.cabinet-compact button {border-radius:7px;min-height:42px;touch-action:manipulation}
.cabinet-compact button:focus-visible,.cabinet-compact a:focus-visible,.cabinet-compact select:focus-visible,.cabinet-compact summary:focus-visible {outline:2px solid var(--ui-accent);outline-offset:3px}
.cabinet-compact .muted {opacity:1;color:var(--ui-muted)}
.profile-sections {gap:30px;margin-bottom:22px}
.profile-sections button {font-size:15px;min-height:46px!important;padding:10px 3px!important;background:transparent;border-radius:0}
.profile-sections button.active {color:var(--ui-text);border-bottom-color:var(--ui-accent)}
.profile-overview {grid-template-columns:minmax(0,.88fr) minmax(0,1.35fr);gap:18px 24px}
.cabinet-compact .identity {padding:22px;min-height:0;grid-column:1;grid-row:1}
.identity-main {display:flex;gap:20px;align-items:center}
.cabinet-compact .identity .portrait {position:static;width:110px;height:140px;flex:0 0 110px;border:0;background:#0e1920;margin:0;border-radius:8px;overflow:hidden}
.cabinet-compact .identity .portrait img {display:block;width:100%;height:100%;object-fit:cover}
.identity-info {min-width:0;flex:1}
.cabinet-compact .identity h2 {font-size:25px;line-height:1.3;margin:0 0 8px;letter-spacing:-.025em;overflow-wrap:anywhere}
.identity-info p {font-size:13px;margin:0 0 14px;color:var(--ui-muted);line-height:1.55}
.profile-id-row {display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.profile-id-row label {color:var(--ui-muted);font-size:12px}
.profile-id-row input {width:76px;padding:4px 2px;min-height:36px;border:0;background:transparent;color:var(--ui-text);font:500 14px ui-monospace,monospace}
.profile-id-row button {display:flex;align-items:center;gap:7px;border:0;background:transparent;color:#bbccdd;min-height:40px;padding:5px 2px;font-size:12px}
.profile-id-row .ui-icon {width:18px;height:18px}
.copy-status {display:block;font-size:11px;color:var(--ui-accent);margin-top:8px;overflow-wrap:anywhere}
.copy-status:empty {display:none}
.cabinet-compact .profile-guild {display:flex;width:100%;align-items:center;gap:14px;margin:20px 0 0;padding:18px 0 0;border:0;border-top:1px solid var(--ui-line);border-radius:0;background:transparent;text-align:left;color:var(--ui-text)}
.guild-emblem {font-size:34px;line-height:1;color:#d2b78a;flex:0 0 38px;text-align:center}
.profile-guild-copy {display:grid;gap:4px;flex:1;min-width:0}
.profile-guild strong {font-size:15px;overflow-wrap:anywhere}
.profile-guild small {font-size:12px;color:var(--ui-muted)}
.cabinet-compact .identity #statusLine {color:var(--ui-muted);font-size:11px;line-height:1.5;margin:16px 0 0}
.cabinet-compact .vitals {display:flex;flex-direction:column;gap:22px;grid-column:2;grid-row:1/span 2;padding:26px 28px}
.vitals-heading {margin:0 0 0;font-size:22px;line-height:1.25;letter-spacing:-.025em}
.cabinet-compact .vitals>div {padding:0;border:0}
.cabinet-compact .vitals .vital-bar-head {padding:0;border:0;display:flex;gap:14px;align-items:center;justify-content:space-between;font-size:14px}
.cabinet-compact .vitals .vital-bar-head strong {font-size:15px;margin:0;font-weight:600;white-space:nowrap}
.vitals progress,.profile-progress progress {appearance:none;display:block;width:100%;height:9px;margin:9px 0 0;border:0;border-radius:10px;overflow:hidden;accent-color:var(--ui-accent);background:#2a3e48}
.vitals progress::-webkit-progress-bar {background:#2a3e48;border-radius:10px}
.vitals progress::-webkit-progress-value {background:#70d99d;border-radius:10px}
.vitals progress::-moz-progress-bar {background:#70d99d;border-radius:10px}
#shield progress::-webkit-progress-value,.profile-progress progress::-webkit-progress-value {background:#62c9da}
#shield progress::-moz-progress-bar,.profile-progress progress::-moz-progress-bar {background:#62c9da}
.cabinet-compact .vitals .vital-metrics {display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--ui-line);border-bottom:1px solid var(--ui-line);padding:18px 0;gap:16px}
.cabinet-compact .vitals .vital-metrics>div {padding:0;border:0}
.cabinet-compact .vitals .vital-metrics>div+div {border-left:1px solid var(--ui-line);padding-left:22px}
.vitals .vital-metrics>div>div {padding:0;border:0}
.cabinet-compact .vitals .vital-metrics strong {font-size:20px;margin:5px 0 0;font-variant-numeric:tabular-nums}
.cabinet-compact .vitals small {font-size:13px;color:var(--ui-muted)}
.cabinet-compact #profileFreePoints {align-self:flex-start;min-height:42px;margin:0;padding:4px 0;border:0;background:transparent;color:#79dfc9;font-size:14px}
.profile-overview-extras {display:grid;grid-column:1;grid-row:2;align-content:start;gap:0}
.cabinet-compact .profile-overview-extras .card {padding:0 18px;min-height:0;border:0;border-bottom:1px solid var(--ui-line);border-radius:0;background:transparent}
.profile-overview-extras .profile-fold {margin:0;padding:0;border:0}
.profile-overview-extras .profile-fold>summary {display:block;list-style:none;padding:15px 2px;color:var(--ui-text);font-size:14px;cursor:pointer;min-height:50px}
.profile-overview-extras .profile-fold>summary::-webkit-details-marker {display:none}
.profile-overview-extras .profile-fold>summary::after {content:'›';float:right;color:#adbfce;font-size:20px;line-height:1}
.profile-overview-extras .profile-fold[open]>summary::after {content:'⌄'}
.profile-overview-extras .profile-fold>div {padding-bottom:16px}
.profile-identity-settings {margin-right:0}
.cabinet-compact .equipped-title {font-size:12px;color:var(--ui-muted);font-weight:400}
@media(max-width:1150px) and (min-width:721px){
 .cabinet-compact .shell {padding:18px 22px 40px}
 .cabinet-brand {font-size:19px}.cabinet-compact .topbar {gap:14px}
 .cabinet-compact .tabs>button {gap:6px;padding:8px;font-size:13px}.header-character {display:none}
 .identity-main {gap:14px}.cabinet-compact .identity .portrait {width:82px;height:110px;flex-basis:82px}
 .cabinet-compact .identity h2 {font-size:22px}.profile-overview {grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:18px}
}
@media(max-width:720px){
 .cabinet-compact .shell {padding:12px 16px calc(92px + env(safe-area-inset-bottom))}
 .cabinet-compact .topbar {display:block;position:relative;height:0;padding:0;border:0;margin:0;z-index:40}
 .cabinet-brand,.header-character {display:none}
 .cabinet-tools {position:absolute;top:0;right:0;left:auto;width:max-content;justify-content:flex-end}
 .cabinet-compact .cabinet-more>summary {min-height:42px;padding:7px 3px;font-size:13px}
 .cabinet-more-menu {min-width:240px;max-width:calc(100vw - 32px)}
 .cabinet-compact .tabs {position:fixed;left:0;right:0;bottom:0;z-index:50;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:0;padding:7px 8px calc(5px + env(safe-area-inset-bottom));border-top:1px solid var(--ui-line);background:#101c24}
 .cabinet-compact .tabs>button {flex-direction:column;gap:3px;min-height:54px;margin:0;padding:4px 0;border:0;background:transparent;font-size:10px;line-height:1.4;color:#bdcad8}
 .cabinet-compact .tabs>button.active {color:#7be0ca;border:0;background:transparent}
 .tabs .ui-icon {width:23px;height:23px}
 .page-heading {margin:0 0 8px;min-height:44px;max-width:calc(100% - 64px)}
 .page-heading h1 {font-size:24px;line-height:1.2}
 body:has(#guild:not(.hidden)) .page-heading {display:flex}
 .profile-sections {gap:0;justify-content:space-between;margin-bottom:14px}
 .profile-sections button {font-size:13px;min-height:44px!important;padding:9px 3px!important}
 .profile-overview {display:flex;flex-direction:column;gap:0}
 .cabinet-compact .identity {padding:8px 0 14px;border:0;border-radius:0;background:transparent;width:100%}
 .identity-main {gap:16px;align-items:center}
 .cabinet-compact .identity .portrait {width:76px;height:94px;flex-basis:76px;position:static}
 .cabinet-compact .identity h2 {font-size:21px;margin-bottom:5px}
 .identity-info p {font-size:12px;margin:0 0 5px;line-height:1.5}
 .profile-id-row {gap:5px}.profile-id-row input {width:65px;font-size:13px;min-height:32px}
 .profile-id-row button {font-size:11px;min-height:36px;gap:5px}.profile-id-row .ui-icon {width:17px;height:17px}
 .cabinet-compact .profile-guild {margin-top:14px;padding-top:14px;gap:10px;min-height:62px}
 .profile-guild strong {font-size:14px}.profile-guild small {font-size:11px}
 .guild-emblem {flex-basis:32px;font-size:30px}
 .cabinet-compact .identity #statusLine {margin-top:9px;font-size:10px}
 .cabinet-compact .vitals {padding:14px 0 10px;gap:16px;background:transparent;border:0;border-top:1px solid var(--ui-line);border-radius:0;width:100%}
 .vitals-heading {display:none}
 .cabinet-compact .vitals .vital-bar-head {font-size:13px}
 .cabinet-compact .vitals .vital-bar-head strong {font-size:13px}
 .vitals progress {height:8px;margin-top:7px}
 .cabinet-compact .vitals .vital-metrics {padding:13px 0;gap:12px}
 .cabinet-compact .vitals .vital-metrics strong {font-size:17px}
 .cabinet-compact .vitals small {font-size:12px}
 .cabinet-compact #profileFreePoints {font-size:12px;min-height:40px}
 .profile-overview-extras {width:100%}
 .cabinet-compact .profile-overview-extras .card {padding:0}
 .profile-overview-extras .profile-fold>summary {font-size:13px;padding:13px 0;min-height:46px}
 .cabinet-compact .card {padding:16px}
 .cabinet-compact #profileOverview .identity {padding:8px 0 14px}
 .cabinet-compact #profileOverview .vitals {padding:14px 0 10px}
}
/* Guild navigation, roster and contextual member panel. */
.guild-responsive {display:grid;gap:18px;margin-top:20px}
.guild-responsive h2 {margin:0;font-size:23px;line-height:1.35;letter-spacing:-.02em}
.guild-responsive .guild-ui-note {font-size:12px;line-height:1.6;color:var(--ui-muted);margin:12px 0}
.guild-identity-strip {display:flex;align-items:center;gap:18px;border:1px solid var(--ui-line);padding:18px 22px;border-radius:10px;background:var(--ui-surface)}
.guild-strip-copy {min-width:0}.guild-strip-copy h2 {font-size:21px;overflow-wrap:anywhere}
.guild-strip-copy small {display:block;margin-top:4px;color:var(--ui-muted);font-size:13px}
.guild-strip-stats {display:flex;gap:18px;margin-left:22px;border-left:1px solid var(--ui-line);padding-left:26px;color:#becddd;font-size:13px;flex-wrap:wrap}
.guild-workspace {display:grid;grid-template-columns:185px minmax(0,1fr);gap:18px;align-items:start}
.guild-workspace.has-member {grid-template-columns:185px minmax(0,1fr) 300px}
.guild-workspace-nav {min-width:0;align-self:stretch}
.guild-desktop-sections {display:grid;gap:4px;padding:16px 10px;background:#121f27;border:1px solid var(--ui-line);border-radius:10px;align-content:start;height:100%}
.guild-sidebar-label {display:block;color:var(--ui-muted);font-size:12px;padding:0 10px 12px}
.cabinet-compact .guild-ui-button {margin:0;padding:10px 13px;border:1px solid #3c5360;background:#1c2b35;color:var(--ui-text);min-height:44px;font-size:13px;cursor:pointer;line-height:1.4}
.cabinet-compact .guild-sidebar-link {display:flex;gap:13px;align-items:center;width:100%;text-align:left;background:transparent;border:0;padding:12px 10px;font-size:13px;color:#b7c8d9}
.guild-sidebar-link.active {background:#1b393c!important;color:#a1eadc!important;box-shadow:inset 3px 0 var(--ui-accent)}
.guild-sidebar-link .ui-icon {width:21px;height:21px}
.guild-mobile-section {display:none}
.guild-workspace-main {min-width:0;padding:22px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:10px;align-self:start}
.guild-section-heading {display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:8px}
.cabinet-compact .guild-primary {display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--ui-accent);border:1px solid var(--ui-accent);color:#08241f;font-weight:650}
.guild-primary:hover {background:#8adfc9!important;color:#08241f!important}
.guild-primary .ui-icon {width:18px;height:18px}
.guild-local-tabs {display:flex;gap:18px;align-items:stretch;border-bottom:1px solid var(--ui-line);margin:8px 0 18px;overflow:auto}
.cabinet-compact .guild-local-tabs .guild-ui-button {background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 2px;font-size:13px;white-space:nowrap;color:var(--ui-muted)}
.guild-local-tabs .active {border-bottom-color:var(--ui-accent)!important;color:var(--ui-text)!important}
.guild-roster-search {display:block;width:100%;margin-bottom:16px}
.guild-roster-columns {display:grid;grid-template-columns:minmax(0,1.65fr) minmax(80px,1fr) 65px 95px;gap:12px;align-items:center;padding:9px 8px;font-size:11px;color:var(--ui-muted);border-bottom:1px solid var(--ui-line)}
.guild-roster-columns>:last-child {text-align:right}
.guild-member-list {display:block;margin:0;padding:0;list-style:none}
.guild-member-list li {margin:0;padding:0}
.cabinet-compact .guild-member-row {display:grid;grid-template-columns:minmax(0,1.65fr) minmax(80px,1fr) 65px 95px;gap:12px;align-items:center;width:100%;min-height:62px;margin:0;padding:10px 8px;border:0;border-bottom:1px solid var(--ui-line);border-radius:0;background:transparent;text-align:left;color:#dce6ef;font-size:12px}
.guild-member-row:hover {background:#1d333b!important}
.guild-member-row.selected {background:#1c363b!important;box-shadow:inset 3px 0 var(--ui-accent);border-radius:7px!important}
.guild-roster-person {display:flex;align-items:center;gap:11px;min-width:0}
.guild-initials {display:inline-flex;width:36px;height:36px;flex:0 0 36px;align-items:center;justify-content:center;border-radius:50%;border:1px solid #465a68;background:#263846;color:#bdcde0;font-size:12px;line-height:1}
.guild-person-copy {display:grid;gap:3px;min-width:0}
.guild-person-copy strong {font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.guild-person-copy small {font-size:11px;line-height:1.5;color:var(--ui-muted)}
.guild-mobile-meta,.guild-row-chevron {display:none!important}
.guild-roster-contribution {text-align:right;font-variant-numeric:tabular-nums}
.guild-roster-level {font-variant-numeric:tabular-nums}
.guild-empty {padding:20px!important;color:var(--ui-muted);font-size:13px}
.guild-member-panel {min-width:0;align-self:start;padding:18px;background:#15232c;border:1px solid #36505d;border-radius:10px;position:sticky;top:18px}
.guild-member-panel-top {display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;color:#b9ccdd;font-size:13px}
.cabinet-compact .guild-icon-button {padding:6px;width:40px;min-height:40px;border:0;background:transparent;color:#bdcddd}
.guild-member-identity {display:flex;gap:12px;align-items:center;margin-bottom:12px}
.guild-member-identity .guild-initials {width:50px;height:50px;flex-basis:50px;font-size:18px}
.guild-member-panel h2 {font-size:18px;line-height:1.35;overflow-wrap:anywhere}
.guild-member-panel h2:focus {outline:0}
.guild-member-id {display:flex;gap:5px;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--ui-muted)}
.guild-member-id input {width:67px!important;min-height:32px!important;padding:4px 0!important;border:0!important;background:transparent!important;font:12px ui-monospace,monospace!important}
.cabinet-compact .guild-text-button {display:inline-flex;align-items:center;gap:6px;padding:7px 0;border:0;background:transparent;min-height:40px;font-size:12px;color:#bcd0e2;text-align:left}
.guild-text-button .ui-icon {width:18px;height:18px}
.guild-member-notice {display:block;color:var(--ui-accent);font-size:11px;margin:6px 0}
.guild-member-notice:empty {display:none}
.guild-member-actions {border-top:1px solid var(--ui-line);margin-top:18px}
.cabinet-compact .guild-context-action {display:flex;gap:12px;align-items:center;width:100%;text-align:left;min-height:60px;padding:13px 0;border:0;border-bottom:1px solid var(--ui-line);border-radius:0;background:transparent;font-size:13px}
.guild-context-action span {flex:1}
.guild-context-action>.ui-icon:last-child {width:17px}
.guild-ui-fold {margin-top:18px;padding-top:14px;border-top:1px solid var(--ui-line)}
.guild-ui-fold>summary {cursor:pointer;color:#c5d5e1;font-size:13px;line-height:1.5;padding:7px 0;min-height:40px}
.guild-ui-fold[open]>summary {margin-bottom:10px}
.guild-ui-fold>summary small {display:block;font-size:11px;color:var(--ui-muted);margin-top:4px;line-height:1.6}
.guild-special-actions {display:grid;gap:9px}
.cabinet-compact .guild-danger,.cabinet-compact .guild-danger-secondary,.guild-responsive .guild-negative {background:#422930;border:1px solid #81505a;color:#ffd5db}
.guild-member-editor {display:grid;gap:14px;margin-top:8px}
.guild-member-editor label {display:grid;gap:7px;font-size:13px}
.guild-member-editor input,.guild-member-editor select {width:100%}
.guild-member-editor .guild-ui-note {margin:0}
.guild-member-backdrop {display:none}
.guild-invite-row,.guild-payroll-summary {display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 0;border-bottom:1px solid var(--ui-line)}
.guild-balance {display:grid;gap:5px;margin:22px 0;color:var(--ui-muted)}
.guild-balance strong {color:var(--ui-text);font-size:28px}
.guild-shortcuts {margin-bottom:18px}
.guild-shortcuts h2 {font-size:18px;margin-bottom:12px}
.guild-shortcut-actions {display:flex;gap:8px;flex-wrap:wrap}
.guild-responsive .guild-action {margin:0;min-height:44px;font-size:13px;border-radius:7px}
.guild-overview-keyfigures {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px}
.guild-responsive .guild-layout {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.guild-responsive .guild-layout .guild-card {padding:16px}
.guild-responsive .guild-card {margin:0;min-width:0}
.guild-workspace-main>.guild-card {padding:0;border:0;background:transparent}
.guild-workspace-main .guild-ui-fold>.guild-card {border:0;background:transparent;padding:0}
.guild-responsive .guild-honors-gallery {margin-bottom:16px}
.guild-responsive .guild-terminal {white-space:pre-wrap;font-family:inherit;line-height:1.65;font-size:14px;margin:16px 0 20px;overflow-wrap:anywhere}
.guild-responsive .guild-actions {gap:8px}
.guild-responsive .guild-input {margin-top:16px}
.guild-responsive .guild-input input {flex:1;min-width:0}
.guild-responsive .guild-permission-rank {margin-bottom:8px}
.guild-responsive .guild-permission-rank>summary {font-size:13px;cursor:pointer;min-height:42px;padding:10px}
.guild-responsive .guild-permission-option {font-size:12px;line-height:1.6}
.guild-responsive .guild-permission-option input {min-height:auto;flex-shrink:0}
.guild-invite-dialog {width:min(600px,calc(100vw - 32px));max-height:min(82vh,760px);overflow:auto;color:var(--ui-text);background:var(--ui-surface);border:1px solid #47616e;border-radius:12px;padding:24px;box-shadow:0 24px 80px #0009}
.guild-invite-dialog::backdrop {background:#03090dd9}
.guild-invite-dialog>.guild-icon-button {position:absolute;right:8px;top:8px;z-index:2}
.guild-invite-dialog .guild-recruitment {border:0;background:transparent;padding:12px 0 0;margin:0}
.guild-invite-dialog .guild-recruitment h3 {padding-right:20px}
.guild-invite-dialog input {width:100%}
.guild-invite-dialog .guild-search-form {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;margin:16px 0}
.guild-invite-dialog .guild-candidate-row {padding:12px 0;font-size:13px}
.guild-invite-dialog .guild-action {min-height:44px;margin:0}
.guild-invite-dialog .guild-description {font-size:13px;line-height:1.6}
.guild-busy .guild-workspace,.guild-busy .guild-invite-dialog {pointer-events:none;opacity:.65}
@media(max-width:1150px) and (min-width:721px){
 .guild-workspace {grid-template-columns:minmax(0,1fr)}
 .guild-workspace.has-member {grid-template-columns:minmax(0,1fr) 280px}
 .guild-workspace-nav {grid-column:1/-1}
 .guild-desktop-sections {display:none}
 .guild-mobile-section {display:flex;align-items:center;gap:14px;color:var(--ui-muted);font-size:13px}
 .guild-mobile-section select {min-width:240px}
 .guild-roster-columns,.cabinet-compact .guild-member-row {grid-template-columns:minmax(0,1.5fr) minmax(65px,.8fr) 45px 65px;gap:7px}
 .guild-workspace-main {padding:16px}
 .guild-roster-person {gap:7px}.guild-roster-person .guild-initials {width:30px;height:30px;flex-basis:30px}
 .guild-person-copy strong {font-size:12px}.guild-member-panel {padding:16px}
 .guild-strip-stats {gap:8px;margin-left:0;padding-left:16px;font-size:12px}
}
@media(max-width:720px){
 .guild-responsive {gap:14px;margin-top:0}
 .guild-identity-strip {border:0;background:transparent;flex-wrap:wrap;gap:10px;padding:8px 0 14px;border-bottom:1px solid var(--ui-line);border-radius:0}
 .guild-identity-strip .guild-emblem {font-size:32px;flex:0 0 34px}
 .guild-strip-copy {flex:1}.guild-strip-copy h2 {font-size:17px}
 .guild-strip-copy small {font-size:11px}
 .guild-strip-stats {gap:12px;flex-basis:100%;border:0;margin:0 0 0 44px;padding:0;font-size:11px}
 .guild-workspace,.guild-workspace.has-member {display:flex;flex-direction:column;gap:14px;align-items:stretch}
 .guild-desktop-sections {display:none}
 .guild-mobile-section {display:flex;gap:12px;align-items:center;color:var(--ui-muted);font-size:12px}
 .guild-mobile-section select {flex:1;min-height:44px}
 .guild-workspace-main {padding:0;border:0;border-radius:0;background:transparent}
 .guild-responsive h2 {font-size:19px}
 .guild-section-heading {margin-top:1px}
 .guild-section-heading .guild-primary {font-size:12px;padding:10px 12px}
 .guild-local-tabs {gap:20px;margin:5px 0 14px}
 .cabinet-compact .guild-local-tabs .guild-ui-button {font-size:12px}
 .guild-roster-search {font-size:12px!important;margin-bottom:8px}
 .guild-roster-columns,.guild-desktop-id,.guild-roster-role,.guild-roster-level,.guild-roster-contribution {display:none!important}
 .cabinet-compact .guild-member-row {display:flex;gap:12px;justify-content:space-between;padding:12px 0;min-height:64px;border-radius:0}
 .guild-person-copy strong {font-size:13px}
 .guild-mobile-meta {display:block!important;font-size:10px!important}
 .guild-row-chevron {display:block!important;width:17px;height:17px;color:#afc4d6}
 .guild-roster-person {gap:10px}.guild-roster-person .guild-initials {width:36px;height:36px;flex-basis:36px}
 .guild-member-row.selected {padding-left:9px!important;padding-right:9px!important}
 .guild-responsive .guild-ui-note {font-size:11px}
 .guild-workspace.has-member .guild-member-backdrop {display:block;position:fixed;inset:0;background:#03090dbb;z-index:70}
 .guild-member-panel {position:fixed;z-index:80;inset:auto 0 0;max-height:86dvh;overflow:auto;overscroll-behavior:contain;border-radius:18px 18px 0 0;border:1px solid #3b5765;padding:22px 22px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -20px 60px #0007;scroll-padding:20px}
 .guild-member-panel::before {content:'';display:block;width:48px;height:4px;border-radius:4px;margin:-11px auto 12px;background:#7894a3}
 .guild-member-panel h2 {font-size:20px}
 .guild-member-panel-top {margin-bottom:10px}
 .guild-member-panel .guild-ui-note {font-size:12px}
 .guild-member-panel .guild-person-copy small {font-size:12px}
 .guild-member-id {font-size:13px}.guild-member-id input {font-size:13px!important;width:70px!important}
 .guild-context-action {font-size:14px!important;min-height:58px!important}
 .guild-member-actions {margin-top:14px}
 .guild-member-danger>summary {font-size:14px}
 .guild-member-danger>summary small {font-size:12px}
 .guild-sheet-open {overflow:hidden}
 .guild-responsive .guild-layout {grid-template-columns:1fr}
 .guild-overview-keyfigures {gap:10px}
 .guild-responsive .guild-permission-grid {grid-template-columns:1fr}
 .guild-invite-dialog {width:100%;max-height:88dvh;margin:auto 0 0;border-radius:18px 18px 0 0;padding:22px 20px calc(22px + env(safe-area-inset-bottom))}
 .guild-invite-dialog .guild-search-form {grid-template-columns:1fr}
 .guild-invite-dialog .guild-candidate-row {gap:10px;align-items:center}
 .guild-invite-dialog .guild-candidate-row span {font-size:12px}
 .guild-invite-row,.guild-payroll-summary {gap:10px}
}

/* Player message settings. Responsive, keyboard accessible. */
#messagePreferencesEditor {display:grid;gap:12px}
#messagePreferencesEditor .mp-group {border:1px solid #2a4144;border-radius:8px;padding:9px 13px;background:#0d1b20}
#messagePreferencesEditor .mp-group>summary {font-weight:650;cursor:pointer;margin:0 0 5px}
#messagePreferencesEditor .mp-options {display:grid;gap:9px;padding:9px 0}
#messagePreferencesEditor .mp-field {display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,45%);align-items:center;gap:12px;font-size:13px;color:#d8e7e9}
#messagePreferencesEditor select {min-height:38px;border:1px solid #426166;color:#e4f2ed;background:#10262b;border-radius:7px;padding:6px 9px;width:100%;max-width:100%}
#messagePreferencesEditor .mp-actions {display:flex;flex-wrap:wrap;gap:10px}
#messagePreferencesEditor .mp-actions button {border:1px solid #5b9c85;border-radius:8px;background:#214137;padding:10px 18px}
#messagePreferencesEditor .mp-actions button:disabled {opacity:.4}
@media(max-width:660px){#messagePreferencesEditor .mp-field{grid-template-columns:1fr;gap:5px}}

/* Distinct rank title chooser inside existing character title fold. */
.spec-title-section {border-bottom:1px solid #294047;margin:4px 0 16px;padding-bottom:15px}
.spec-title-section h4 {font-size:14px;margin:8px 0 7px;color:#c6e7d9}
.spec-title-help {color:#95acb0;font-size:12px;line-height:1.5;margin:0 0 12px}
.spec-title-visibility {display:flex;align-items:center;gap:9px;padding:7px 0;font-size:13px;color:#e0f0e9;cursor:pointer}
.spec-title-visibility input {width:17px;height:17px;accent-color:#7ac59f}
.spec-title-current {margin:7px 0 10px;color:#94aeb0;font-size:12px}
.spec-title-current strong {color:#e0f0e9;font-weight:600}
.spec-title-grid {display:grid;gap:7px;grid-template-columns:1fr}
.spec-title-grid button {display:flex;justify-content:space-between;align-items:center;gap:8px;min-width:0;padding:10px 11px!important;min-height:45px;text-align:left;border:1px solid #345057;border-radius:8px;background:#132329;color:#cbdede;font-size:12px}
.spec-title-grid button span {min-width:0;overflow-wrap:anywhere}
.spec-title-grid button small {flex-shrink:0;color:#93afb4;font-size:10px}
.spec-title-grid button.selected {border-color:#69b397;background:#1b3530;color:#ebfff4}
.spec-title-grid button.locked {opacity:.63}
.spec-title-message {color:#9ed3bf;display:block;min-height:1em;font-size:11px;margin-top:6px}
.spec-title-dialog {width:min(calc(100vw - 32px),430px);max-height:80vh;overflow:auto;border:1px solid #53796e;border-radius:14px;padding:18px 20px 20px;background:#122126;color:#e3f3ef;box-shadow:0 22px 75px #000a}
.spec-title-dialog::backdrop {background:#02080bcc}
.spec-title-dialog-head {display:flex;justify-content:space-between;align-items:center;gap:12px}
.spec-title-dialog-tag {font-size:10px;letter-spacing:.14em;color:#95cdb8}
.spec-title-dialog button {cursor:pointer}
.spec-title-dialog-head button {border:0;background:transparent;color:#d7e9e3;font-size:23px;padding:0 5px}
.spec-title-dialog h3 {font-size:19px;margin:14px 0 8px;line-height:1.35}
.spec-title-dialog p {font-size:13px;line-height:1.6}
.spec-title-rank-info {color:#9ed3bc}
#specTitlePreviewStatus {color:#abc3c1}
.spec-title-dialog-actions {display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}
.spec-title-dialog-actions button {padding:10px 13px;border-radius:7px;border:1px solid #3e6760;color:#e9f4ef;background:#18302d}
.spec-title-dialog-actions .spec-title-confirm {background:#245142;border-color:#669f89}
@media(min-width:720px) {.spec-title-grid {grid-template-columns:1fr 1fr}}

/* Administrator's character directory v2: search/scroll/dossier. */
.admin-directory-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 13px;flex-wrap:wrap}
.admin-directory-heading .label{display:block;margin-bottom:4px}
.admin-directory-heading .muted{margin:0;font-size:12px;line-height:1.5}
.admin-directory-heading button{border:1px solid #355462;background:#182b34;padding:9px 12px;min-height:36px;color:#c6dee5}
.admin-directory-layout{display:grid;grid-template-columns:minmax(245px,310px) minmax(0,1fr);gap:14px;align-items:start;min-width:0}
.cabinet-compact .admin-directory-side,.cabinet-compact .admin-directory-details{padding:16px;min-width:0}
.admin-directory-side{position:sticky;top:10px}
.admin-directory-side>label{font-weight:700;display:block;margin-bottom:9px}
.admin-directory-search{display:flex;gap:7px}
.admin-directory-search input{flex:1;min-width:0;background:#101d25;color:#e6eff4;border:1px solid #45616b;border-radius:8px;padding:10px;min-height:40px}
.admin-directory-search input:focus-visible{outline:2px solid #5bc6b4;outline-offset:1px}
.admin-directory-search button{min-height:40px;background:#1a4645;border-color:#4a9991;color:#ddfffa}
.admin-directory-count{font-size:12px;margin:12px 0 8px}
.admin-directory-list{max-height:min(66vh,710px);min-height:240px;overflow-y:auto;overscroll-behavior:contain;border:1px solid #34515d;border-radius:9px;background:#0d1b23;scrollbar-width:thin}
.admin-directory-list .muted{font-size:12px;padding:15px}
.cabinet-compact .admin-directory-list .admin-player-choice{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;width:100%;min-height:70px;padding:12px 11px;background:transparent;color:#e2edf3;border:0;border-bottom:1px solid #273c46;border-radius:0;overflow-wrap:anywhere}
.cabinet-compact .admin-directory-list .admin-player-choice:hover{background:#19343f}
.cabinet-compact .admin-directory-list .admin-player-choice.selected{background:#1b4447;box-shadow:inset 3px 0 #5bd4bc}
.admin-player-choice strong{font-size:13px;font-weight:680}
.admin-callsign{font-weight:500;color:#b9dce8}
.admin-player-choice small{font-size:11px;color:#b2c4ce}
.admin-player-scene{font-size:10px;color:#789daa}
.cabinet-compact button.admin-directory-more{width:100%;margin-top:10px;min-height:36px;background:#172d36;color:#c8dce7;border:1px solid #385968}
.admin-directory-details{min-height:450px}
.admin-dossier{display:grid;gap:12px}
.admin-profile-summary{display:grid;gap:16px;margin-bottom:5px}
.admin-profile-heading{display:flex;gap:13px;align-items:center;min-width:0}
.admin-profile-portrait{width:73px;height:83px;object-fit:cover;flex:0 0 73px;border:1px solid #385767;border-radius:7px}
.admin-profile-heading h2{font-size:21px;margin:0 0 7px;overflow-wrap:anywhere}
.admin-profile-heading p{margin:0 0 5px;line-height:1.5;font-size:12px;overflow-wrap:anywhere}
.admin-profile-specialization{color:#90cdbd}
.admin-profile-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.admin-profile-tile{display:grid;gap:4px;padding:11px;border-radius:8px;background:#10252e;border:1px solid #2d4b57;min-width:0}
.admin-profile-tile small{font-size:10px;color:#9fbbcb;line-height:1.3}
.admin-profile-tile strong{font-size:13px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.admin-dossier-jump{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid #34515b;padding:3px 0 13px}
.cabinet-compact .admin-dossier-jump-btn{min-height:31px;padding:6px 9px;font-size:11px;color:#c9e3e9;border:1px solid #395864;border-radius:7px;background:#162a35}
.admin-dossier-section{border:1px solid #334d59;border-radius:9px;background:#101f28}
.admin-dossier-section>summary{font-size:14px;font-weight:700;line-height:1.5;padding:13px 15px;cursor:pointer;color:#e5f4f6}
.admin-dossier-section>summary:hover{color:#77d4c2}
.admin-dossier-body{padding:0 15px 14px;display:grid;gap:10px}
.admin-detail-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px 14px;margin:0}
.admin-field{min-width:0;padding:8px 0;border-bottom:1px solid #273f48}
.admin-field dt{font-size:11px;color:#8db0bf;margin-bottom:3px}
.admin-field dd{font-size:12px;color:#e5eef1;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.admin-dossier-items{display:grid;gap:9px}
.admin-record{display:grid;gap:6px;padding:12px;background:#142832;border:1px solid #2d4653;border-radius:7px;min-width:0;overflow-wrap:anywhere}
.admin-record>strong{font-size:13px}
.admin-record-caption{font-size:12px;line-height:1.55;color:#acc4cc;white-space:pre-wrap}
.admin-record .admin-detail-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.admin-data-json{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;line-height:1.55;background:#0d1b22;color:#b7d8d5;border-radius:7px;border:1px solid #294853;white-space:pre-wrap;overflow-wrap:anywhere;max-height:500px;overflow:auto;padding:12px;min-width:0}
.admin-readonly-note{font-size:12px;color:#86bbaa;margin:4px 0}
.admin-error{color:#f9b9ae}
@media(max-width:1020px){.admin-directory-layout{grid-template-columns:245px minmax(0,1fr)}.admin-detail-fields,.admin-record .admin-detail-fields{grid-template-columns:1fr}}
@media(max-width:680px){.admin-directory-layout{grid-template-columns:minmax(0,1fr)}.admin-directory-side{position:static}.admin-directory-list{max-height:290px;min-height:120px}.admin-profile-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.cabinet-compact .admin-directory-side,.cabinet-compact .admin-directory-details{padding:12px}.admin-profile-heading h2{font-size:19px}}


/* Persistent system boosts: visible in Overview, each with its own expiry. */
.cabinet-compact .vitals .active-effects{margin:0;padding-top:16px;border-top:1px solid var(--ui-line);min-width:0}
.active-effects>summary{padding:2px 0;font-size:13px;line-height:1.5;font-weight:600;color:var(--ui-text);cursor:pointer}
.active-effects>summary::marker{color:var(--ui-accent)}
.active-effects[open]>summary{margin-bottom:8px}
.active-effect{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 14px;padding:9px 0;min-width:0}
.active-effect+.active-effect{border-top:1px solid #2b3d4766}
.cabinet-compact .vitals .active-effect-title{font-size:14px;font-weight:600;line-height:1.45;letter-spacing:0;margin:0;color:#9cdec8;overflow-wrap:anywhere}
.active-effect-source{grid-column:1;font-size:11px;line-height:1.5;color:var(--ui-muted);overflow-wrap:anywhere}
.active-effect-time{grid-column:2;grid-row:1/span 2;align-self:center;max-width:220px;font-size:11px;line-height:1.5;text-align:right;color:var(--ui-text);font-variant-numeric:tabular-nums}
.active-effects-empty,.active-effects-note{margin:4px 0 0;font-size:12px;line-height:1.5;color:var(--ui-muted)}
.active-effects-note{padding-top:8px}
@media(max-width:1000px){.active-effect{grid-template-columns:minmax(0,1fr)}.active-effect-time{grid-column:1;grid-row:auto;max-width:none;text-align:left}.active-effect-source{grid-row:2}}
@media(max-width:720px){.cabinet-compact .vitals .active-effects{padding-top:12px}.active-effect{padding:8px 0}}

/* Shared guild membership line under the character's identity. */
.profile-guild-line{color:var(--text-muted,#a6bbc2);font-size:.9rem;line-height:1.45;margin:.15rem 0 .45rem;overflow-wrap:anywhere}
