:root {
    --sidebar-width: 264px;
    --header-height: 56px;
    --ink: #202623;
    --muted: #68736e;
    --muted-soft: #909a95;
    --line: #e2e7e4;
    --line-strong: #cfd7d2;
    --surface: #ffffff;
    --canvas: #f4f6f5;
    --graphite: #202825;
    --graphite-soft: #2a3430;
    --accent: #137b61;
    --accent-dark: #0e654f;
    --accent-soft: #e8f4ef;
    --orange: #c76838;
    --orange-soft: #fff2e9;
    --success: #18805e;
    --danger: #bd4747;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-padding-top: 64px; overflow-x: hidden; }
body { min-height: 100%; margin: 0; overflow-x: hidden; }
body .workspace-main > section { scroll-margin-top: 64px; }
body {
    color: var(--ink);
    background: var(--canvas);
    font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
}
button, input, select { font: inherit; letter-spacing: 0; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[v-cloak] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.player-shell { min-height: 100vh; min-height: 100svh; }

.skip-link {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 8px;
    padding: 8px 12px;
    color: #fff;
    border-radius: 5px;
    background: var(--graphite);
    box-shadow: 0 8px 20px rgba(22, 31, 27, .2);
    transform: translateY(-180%);
    transition: transform 120ms ease;
}
.skip-link:focus, .skip-link:focus-visible { color: #fff; transform: translateY(0); }

.player-sidebar {
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--sidebar-width);
    min-height: 100vh;
    flex-direction: column;
    overflow: hidden;
    color: #c7d0cc;
    background: var(--graphite);
    box-shadow: 8px 0 28px rgba(22, 31, 27, .08);
}
.sidebar-identity {
    flex: 0 0 auto;
    padding: 16px 14px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    background: #19211e;
}
.identity-switch {
    display: grid;
    width: 100%;
    min-height: 54px;
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 11px;
    padding: 0;
    color: inherit;
    border: 0;
    background: transparent;
    text-align: left;
}
.identity-switch:focus-visible { outline: 2px solid #6bc1a5; outline-offset: 4px; }
.identity-switch > i { color: #71817a; font-size: 13px; transition: transform 150ms ease, color 150ms ease; }
.identity-switch:hover > i { color: #b9d9cc; transform: translateX(2px); }
.identity-avatar, .character-avatar {
    display: grid;
    place-items: center;
    color: #f4fbf8;
    background: var(--accent);
    font-size: 12px;
    font-weight: 800;
}
.identity-avatar { width: 40px; height: 40px; border-radius: 6px; }
.identity-summary { min-width: 0; }
.identity-summary strong, .identity-summary span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity-summary strong { color: #f7faf8; font-size: 14px; font-weight: 700; }
.identity-summary span { margin-top: 3px; color: #93a19b; font-size: 11px; }
.identity-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 11px; }
.identity-actions button {
    display: flex;
    min-width: 0;
    height: 31px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 6px;
    color: #b9c5c0;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 4px;
    background: rgba(255, 255, 255, .035);
    font-size: 11px;
}
.identity-actions button:hover, .identity-actions button:focus-visible { color: #fff; border-color: rgba(107, 193, 165, .48); outline: none; background: rgba(19, 123, 97, .18); }
.identity-actions i { font-size: 12px; }

.sidebar-brand {
    display: flex;
    height: 55px;
    flex: 0 0 55px;
    align-items: center;
    gap: 10px;
    padding: 0 17px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.sidebar-brand__mark {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 5px;
    background: var(--accent);
    font-size: 11px;
    font-weight: 800;
}
.sidebar-brand__copy { min-width: 0; }
.sidebar-brand__copy strong, .sidebar-brand__copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-brand__copy strong { color: #edf2f0; font-size: 12px; }
.sidebar-brand__copy span { margin-top: 1px; color: #76857e; font-size: 9px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 13px 10px 20px; scrollbar-color: #48544f transparent; scrollbar-width: thin; }
.sidebar-section + .sidebar-section { margin-top: 18px; }
.sidebar-recent { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sidebar-recent .sidebar-section__label { color: #8ab9a8; }
.sidebar-section__label { margin: 0 0 6px; padding: 0 11px; color: #718079; font-size: 10px; font-weight: 700; }
.sidebar-link {
    position: relative;
    display: flex;
    min-height: 39px;
    align-items: center;
    gap: 11px;
    margin: 2px 0;
    padding: 0 12px;
    border-radius: 4px;
    color: #aab6b0;
    transition: background-color 140ms ease, color 140ms ease;
}
.sidebar-link:hover, .sidebar-link:focus-visible { color: #f4f7f5; outline: none; background: rgba(255, 255, 255, .055); }
.sidebar-link.is-active { color: #f5fffb; background: rgba(32, 158, 119, .2); font-weight: 700; }
.sidebar-link.is-active::before { position: absolute; inset: 7px auto 7px -10px; width: 3px; background: #48b893; content: ""; }
.sidebar-link i { width: 18px; flex: 0 0 18px; color: #75827c; font-size: 15px; text-align: center; }
.sidebar-link.is-active i { color: #69c8a8; }
.sidebar-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-footer { flex: 0 0 auto; padding: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sidebar-action {
    display: flex;
    width: 100%;
    min-height: 38px;
    align-items: center;
    gap: 11px;
    padding: 0 12px;
    color: #8f9c96;
    border: 0;
    border-radius: 4px;
    background: transparent;
    text-align: left;
}
.sidebar-action:hover, .sidebar-action:focus-visible { color: #f0f4f2; outline: none; background: rgba(255, 255, 255, .05); }
.sidebar-action i { width: 18px; flex: 0 0 18px; color: #728079; font-size: 14px; text-align: center; }

.player-workspace { min-height: 100vh; margin-left: var(--sidebar-width); }
.workspace-header {
    position: sticky;
    z-index: 25;
    top: 0;
    display: flex;
    height: var(--header-height);
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(8px);
}
.workspace-breadcrumb { display: flex; min-width: 0; align-items: center; gap: 9px; color: #8a938f; font-size: 12px; }
.workspace-breadcrumb i { color: #c1c8c4; font-style: normal; }
.workspace-breadcrumb strong { overflow: hidden; color: #343b37; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.mobile-menu-button, .header-refresh {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    color: #67716c;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
}
.mobile-menu-button { display: none; }
.header-refresh { margin-left: auto; }
.mobile-menu-button:hover, .header-refresh:hover, .mobile-menu-button:focus-visible, .header-refresh:focus-visible { color: var(--accent); border-color: #9bc9ba; outline: none; background: #f7fbf9; }

.workspace-main { width: 100%; max-width: none; margin: 0; padding: 20px 20px 32px; }
.workspace-main.is-module-view {
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    min-height: 0;
    padding: 0;
    overflow: hidden;
}
.workspace-main.is-module-view .module-view {
    display: grid;
    height: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
}
.workspace-main.is-module-view .view-heading {
    min-height: 56px;
    margin: 0;
    padding: 8px 18px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.view-heading { display: flex; min-height: 45px; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.view-heading h1 { margin: 0; color: var(--ink); font-size: 22px; font-weight: 720; line-height: 1.25; }
.view-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.record-count { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.status-pill { display: inline-flex; min-height: 25px; flex: 0 0 auto; align-items: center; gap: 7px; padding: 0 10px; color: #6d7672; border: 1px solid var(--line-strong); border-radius: 13px; background: #fff; font-size: 11px; }
.status-pill::before { width: 7px; height: 7px; border-radius: 50%; background: #aab3af; content: ""; }
.status-pill.is-online { color: var(--success); border-color: #bfe1d4; background: #f7fcfa; }
.status-pill.is-online::before { background: var(--success); }

.facts-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.fact-item { min-width: 0; padding: 18px 20px; }
.fact-item + .fact-item { border-left: 1px solid var(--line); }
.fact-item dt { margin: 0 0 6px; color: #828c87; font-size: 11px; }
.fact-item dd { margin: 0; overflow: hidden; color: #252c28; font-size: 17px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.section-block { margin-top: 20px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 9px; }
.section-title h2 { margin: 0; font-size: 14px; font-weight: 700; }
.section-title span { flex: 0 0 auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.module-list { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.module-row { display: grid; min-height: 58px; grid-template-columns: 34px minmax(0, 1fr) auto 22px; align-items: center; gap: 12px; padding: 0 16px; transition: background-color 140ms ease; }
.module-row + .module-row { border-top: 1px solid var(--line); }
.module-row:hover, .module-row:focus-visible { outline: none; background: #f8faf9; }
.module-row__icon { display: grid; width: 30px; height: 30px; place-items: center; color: var(--accent); border-radius: 4px; background: var(--accent-soft); font-size: 15px; }
.module-row strong, .module-row small { display: block; }
.module-row strong { font-size: 13px; }
.module-row small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.module-row__count { color: #65706a; font-size: 11px; }
.module-row__arrow { color: #a0aaa5; font-size: 13px; text-align: right; }

.appearance-banner { display: flex; align-items: center; gap: 14px; margin: 18px 0 22px; padding: 13px 15px; border: 1px solid #d8e4de; background: #f5faf7; }
.appearance-banner__portrait { display: grid; width: 58px; height: 52px; flex: 0 0 58px; place-items: center; overflow: hidden; color: #0b7858; border: 1px solid #bdd8cc; border-radius: 5px; background: #e2f1ea; font-size: 17px; font-weight: 800; }
.appearance-banner__portrait img { width: 100%; height: 100%; object-fit: cover; }
.appearance-banner__copy { min-width: 0; flex: 1; }
.appearance-banner__copy strong, .appearance-banner__copy small, .appearance-banner__eyebrow { display: block; }
.appearance-banner__eyebrow { color: #258365; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.appearance-banner__copy strong { margin-top: 3px; color: #29372f; font-size: 13px; }
.appearance-banner__copy small { margin-top: 4px; color: #687a70; font-size: 11px; }
.appearance-modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(20, 28, 25, .48); }
.appearance-modal { width: min(760px, 100%); max-height: min(760px, 92vh); overflow: auto; background: #fff; box-shadow: 0 18px 70px rgba(18, 27, 23, .24); }
.appearance-modal__header, .appearance-modal__footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.appearance-modal__header h2 { margin: 4px 0 0; color: var(--ink); font-size: 18px; }
.appearance-modal__body { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; padding: 20px; }
.appearance-modal__preview { display: flex; min-height: 190px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: #f7faf8; text-align: center; }
.appearance-modal__preview img { width: 112px; height: 98px; object-fit: cover; border-radius: 5px; }
.appearance-modal__preview strong { color: var(--ink); font-size: 12px; }
.appearance-modal__preview span { color: var(--muted); font-size: 11px; }
.appearance-modal__fields { display: grid; gap: 16px; }
.appearance-modal__fields label > span, .appearance-field-label { display: block; margin-bottom: 6px; color: #5e6c64; font-size: 11px; font-weight: 700; }
.appearance-modal__fields select { width: 100%; height: 36px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; }
.appearance-face-grid { display: grid; grid-template-columns: repeat(8, minmax(44px, 1fr)); gap: 6px; }
.appearance-face-grid button { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 3px; padding: 3px; color: #68736e; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.appearance-face-grid button img { width: 100%; aspect-ratio: 1.14; object-fit: cover; }
.appearance-face-grid button small { font-size: 9px; }
.appearance-face-grid button.is-active { color: var(--accent-dark); border-color: var(--accent); box-shadow: 0 0 0 2px rgba(19, 123, 97, .12); }
.appearance-size-options { display: flex; gap: 7px; }
.appearance-size-options button { min-width: 58px; height: 31px; color: #68736e; border: 1px solid var(--line-strong); background: #fff; }
.appearance-size-options button.is-active { color: #fff; border-color: var(--accent); background: var(--accent); }
.appearance-modal__footer { justify-content: flex-end; border-top: 1px solid var(--line); border-bottom: 0; }
.secondary-button { height: 36px; padding: 0 15px; color: #68736e; border: 1px solid var(--line-strong); background: #fff; }
.secondary-button:hover, .secondary-button:focus-visible { border-color: #9dbdaf; }
.appearance-modal .primary-button { min-width: 100px; }

.data-panel { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.data-toolbar { display: flex; min-height: 58px; align-items: center; gap: 9px; padding: 10px 13px; border-bottom: 1px solid var(--line); }
.field-select, .field-search { height: 36px; color: #303733; border: 1px solid var(--line-strong); border-radius: 5px; outline: none; background: #fff; }
.field-select { min-width: 150px; padding: 0 34px 0 10px; }
.search-wrap { position: relative; width: min(320px, 100%); }
.search-wrap i { position: absolute; top: 10px; left: 11px; color: #939d98; }
.field-search { width: 100%; padding: 0 12px 0 34px; }
.field-select:focus, .field-search:focus { border-color: #83b9a7; box-shadow: 0 0 0 3px rgba(19, 123, 97, .09); }
.toolbar-spacer { flex: 1; }
.icon-button { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; color: #65706a; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; }
.icon-button.compact { width: 32px; height: 32px; flex-basis: 32px; }
.icon-button:hover, .icon-button:focus-visible { color: var(--accent-dark); border-color: #9dbdaf; outline: none; background: #f7faf9; }
.icon-button:disabled { cursor: not-allowed; opacity: .45; }
.table-scroll { width: 100%; overflow-x: auto; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
.data-table th, .data-table td { height: 46px; padding: 0 14px; overflow: hidden; border-bottom: 1px solid #edf0ee; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.data-table th { height: 39px; color: #737e79; background: #f8faf9; font-size: 11px; font-weight: 700; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #f9fbfa; }
.item-name-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.item-name-cell > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-icon { display: block; width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; image-rendering: auto; }
.cell-id, .cell-muted { color: #7c8681; }
.cell-name { color: #252c28; font-weight: 650; }
.cell-empty { color: #748078; font-style: normal; }
.data-grid { display: grid; gap: 10px; padding: 14px; }
.job-grid, .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.equipment-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.data-card { min-width: 0; border: 1px solid var(--line); background: #fff; }
.job-card { padding: 13px 14px 11px; }
.job-card__top, .job-card__meta, .skill-card__top, .equipment-card__slot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.job-card__top { min-width: 0; }
.job-card__meta { margin-top: 12px; padding-top: 9px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.job-card__meta strong { margin-left: 4px; color: var(--ink); }
.skill-card { padding: 13px 14px 12px; }
.skill-card__top { margin-bottom: 12px; }
.skill-card__name { display: block; min-height: 20px; overflow: hidden; color: var(--ink); font-size: 14px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.skill-card__original { display: block; min-height: 16px; margin-top: 2px; overflow: hidden; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.skill-card__value { display: flex; align-items: baseline; justify-content: space-between; margin-top: 13px; padding-top: 9px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.skill-card__value strong { color: var(--accent-dark); font-size: 18px; font-variant-numeric: tabular-nums; }
.equipment-card { display: flex; min-height: 132px; flex-direction: column; gap: 8px; padding: 12px; }
.equipment-card__name { display: flex; min-height: 34px; align-items: center; gap: 8px; overflow: hidden; font-size: 12px; line-height: 1.45; }
.equipment-card__name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.equipment-card__id, .equipment-card__source { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.equipment-card__source { margin-top: auto; }
.jobs-table { min-width: 680px; }
.skills-table { min-width: 740px; }
.job-cell { display: inline-flex; max-width: 100%; align-items: center; gap: 10px; }
.job-cell img { width: 30px; height: 30px; flex: 0 0 30px; object-fit: contain; }
.job-cell span, .job-cell strong, .job-cell small { display: block; min-width: 0; }
.job-cell strong { overflow: hidden; color: #252c28; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.job-cell small { margin-top: 1px; color: #68736e; font-size: 10px; }
.row-muted .job-cell img { filter: grayscale(1); opacity: .42; }
.row-muted .job-cell strong { color: #8d9691; font-weight: 500; }
.skill-value { color: #252c28; font-variant-numeric: tabular-nums; font-weight: 700; }
.tag { display: inline-flex; min-height: 23px; align-items: center; padding: 0 8px; border-radius: 4px; color: #5f6a64; background: #eef1ef; font-size: 11px; }
.tag.is-accent { color: var(--accent-dark); background: var(--accent-soft); }
.empty-state, .loading-state { display: grid; min-height: 300px; place-items: center; color: #68736e; }
.loading-state i, .module-loading i { margin-right: 8px; }
.table-pagination { display: flex; min-height: 52px; align-items: center; justify-content: flex-end; gap: 10px; padding: 8px 13px; border-top: 1px solid var(--line); }
.table-pagination span { min-width: 72px; color: var(--muted); font-size: 11px; text-align: center; }

.progress-facts { margin-bottom: 20px; }
.progress-panel { overflow: visible; }
.progress-section { padding: 18px 0 0; border-top: 1px solid var(--line); }
.progress-section:first-of-type { border-top: 0; }
.progress-section .section-title { padding: 0 14px; }
.progress-section .section-title span { overflow: hidden; text-overflow: ellipsis; }
.progress-table { min-width: 900px; }
.mission-table { min-width: 1050px; }
.progress-table td.progress-ids, .progress-table td.blob-preview { overflow: visible; white-space: normal; word-break: break-word; }
.progress-table td.progress-ids { color: #626d67; font-family: Consolas, "Courier New", monospace; font-size: 11px; line-height: 1.5; }
.blob-preview { color: #68736d; font-family: Consolas, "Courier New", monospace; font-size: 11px; }
.progress-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 18px 14px; }
.progress-split > div { min-width: 0; border: 1px solid var(--line); background: #fff; }
.progress-split .section-title { min-height: 47px; margin: 0; padding: 0 13px; border-bottom: 1px solid var(--line); }
.active-eminence-table { min-width: 100%; }
.empty-inline { min-height: 92px; display: grid; place-items: center; color: #68736e; font-size: 12px; }
.progress-id-summary { min-height: 43px; margin: 0; padding: 11px 13px; color: #626d67; border-top: 1px solid var(--line); font-family: Consolas, "Courier New", monospace; font-size: 11px; line-height: 1.5; word-break: break-word; }
.key-item-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--line); }
.key-item-stats div { min-width: 0; padding: 13px; }
.key-item-stats div + div { border-left: 1px solid var(--line); }
.key-item-stats dt { margin: 0 0 5px; color: var(--muted); font-size: 11px; }
.key-item-stats dd { margin: 0; color: var(--ink); font-size: 17px; font-weight: 720; }
.progress-diagnostics { padding-bottom: 18px; }
.point-table { min-width: 760px; }
.point-lockout { display: grid; min-height: 260px; place-content: center; justify-items: center; gap: 8px; padding: 24px; text-align: center; }
.point-lockout__icon { display: grid; width: 42px; height: 42px; place-items: center; color: #68736e; border: 1px solid var(--line-strong); border-radius: 5px; background: #f7f9f8; font-size: 18px; }
.point-lockout strong { margin-top: 5px; color: var(--ink); font-size: 14px; }
.point-lockout p { max-width: 340px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.jp-card { min-height: 184px; }
.jp-upgrades { display: flex; min-height: 38px; flex-wrap: wrap; align-content: flex-start; gap: 6px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); }
.jp-upgrades .tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jp-empty { min-height: 38px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); }

.module-host { position: relative; height: auto; min-height: 0; overflow: hidden; border: 0; background: #fff; }
.module-frame { display: block; width: 100%; height: 100%; min-height: 0; border: 0; background: #fff; }
.module-loading { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; color: #68736e; background: rgba(255, 255, 255, .9); }

.drawer-scrim, .sidebar-scrim { position: fixed; inset: 0; padding: 0; border: 0; background: rgba(20, 28, 25, .45); }
.drawer-scrim { z-index: 60; }
.sidebar-scrim { display: none; z-index: 35; }
.identity-drawer {
    position: fixed;
    z-index: 70;
    inset: 0 auto 0 var(--sidebar-width);
    width: min(430px, calc(100vw - var(--sidebar-width)));
    overflow: hidden;
    color: var(--ink);
    border-right: 1px solid var(--line);
    background: #fff;
    box-shadow: 18px 0 44px rgba(25, 35, 31, .16);
    transform: translateX(-102%);
    transition: transform 180ms ease;
}
.identity-drawer.is-open { transform: translateX(0); }
.drawer-header { display: flex; height: 72px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.drawer-header strong, .drawer-header span { display: block; }
.drawer-header strong { font-size: 15px; }
.drawer-header span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.switcher-tabs { display: grid; height: 49px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 20px; border-bottom: 1px solid var(--line); }
.switcher-tabs button { position: relative; color: #717b76; border: 0; background: transparent; font-size: 12px; font-weight: 650; }
.switcher-tabs button::after { position: absolute; right: 14px; bottom: -1px; left: 14px; height: 2px; background: transparent; content: ""; }
.switcher-tabs button.is-active { color: var(--accent-dark); }
.switcher-tabs button.is-active::after { background: var(--accent); }
.drawer-body { height: calc(100vh - 121px); height: calc(100dvh - 121px); overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 36px; }
.drawer-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.drawer-section-heading h2 { margin: 0; font-size: 13px; }
.drawer-section-heading span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.text-action, .row-action { flex: 0 0 auto; color: var(--accent-dark); border: 0; background: transparent; font-size: 11px; font-weight: 700; }
.text-action:hover, .text-action:focus-visible, .row-action:hover, .row-action:focus-visible { color: var(--accent); outline: none; text-decoration: underline; text-underline-offset: 3px; }
.switch-list { border-top: 1px solid var(--line); }
.switch-row {
    display: grid;
    width: 100%;
    min-height: 62px;
    grid-template-columns: 40px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 11px;
    padding: 9px 4px;
    color: inherit;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    text-align: left;
}
button.switch-row:hover, button.switch-row:focus-visible { outline: none; background: #f7faf8; }
.switch-row.is-current { background: #f3f9f6; }
.server-block { display: grid; width: 38px; height: 34px; place-items: center; color: #fff; border-radius: 5px; background: var(--graphite-soft); font-size: 12px; font-weight: 800; }
.server-block.is-server-75 { background: var(--orange); }
.server-block.is-server-99 { background: var(--accent); }
.switch-row__main { min-width: 0; }
.switch-row__main strong, .switch-row__main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch-row__main strong { font-size: 12px; }
.switch-row__main small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.current-state { color: var(--accent-dark); font-size: 10px; font-weight: 800; }
.row-icon { display: grid; width: 29px; height: 29px; place-items: center; color: #8b9690; border: 0; border-radius: 4px; background: transparent; }
.row-icon:hover, .row-icon:focus-visible { color: var(--danger); outline: none; background: #fff2f2; }
.character-row { grid-template-columns: 40px minmax(0, 1fr) auto 17px; }
.character-avatar { display: grid; width: 38px; height: 38px; place-items: center; overflow: hidden; color: #0b7858; border-radius: 50%; background: #e2f1ea; font-size: 11px; font-weight: 800; }
.character-avatar img { width: 100%; height: 100%; object-fit: cover; }
.online-state { display: inline-flex; align-items: center; gap: 5px; color: #68736e; font-size: 10px; }
.online-state::before { width: 6px; height: 6px; border-radius: 50%; background: #aeb6b2; content: ""; }
.online-state.is-online { color: var(--success); }
.online-state.is-online::before { background: var(--success); }
.character-row > i { color: #9aa49f; font-size: 12px; }
.character-row.is-current > i { color: var(--accent); }
.drawer-empty { display: flex; min-height: 180px; align-items: center; justify-content: center; gap: 7px; color: #68736e; font-size: 12px; }

.binding-form { display: grid; gap: 11px; margin: 0 0 18px; padding: 15px 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.binding-form label > span { display: block; margin-bottom: 5px; color: #626d67; font-size: 10px; font-weight: 650; }
.binding-form input, .binding-form select { width: 100%; height: 38px; padding: 0 10px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 5px; outline: none; background: #fff; }
.binding-form input:focus, .binding-form select:focus { border-color: #83b9a7; box-shadow: 0 0 0 3px rgba(19, 123, 97, .09); }
.primary-button { height: 39px; color: #fff; border: 0; border-radius: 5px; background: var(--accent); font-size: 12px; font-weight: 700; }
.primary-button:hover, .primary-button:focus-visible { outline: none; background: var(--accent-dark); }
.primary-button:disabled, .row-action:disabled, .row-icon:disabled, .switch-row:disabled { cursor: not-allowed; opacity: .55; }

.toast-message { position: fixed; z-index: 90; right: 22px; bottom: 22px; max-width: min(420px, calc(100vw - 44px)); padding: 12px 15px; color: var(--danger); border: 1px solid #edc7c7; border-radius: 5px; background: #fff6f6; box-shadow: 0 12px 30px rgba(30, 39, 35, .13); }
.toast-message.is-success { color: var(--success); border-color: #bfe0d3; background: #f5fbf8; }

button, a, input, select, textarea { touch-action: manipulation; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid #6bc1a5 !important;
    outline-offset: 2px !important;
}

@media (max-width: 920px) {
    .player-sidebar { transform: translateX(-102%); transition: transform 180ms ease; }
    .player-sidebar.is-open { transform: translateX(0); }
    .sidebar-scrim { display: block; }
    .player-workspace { margin-left: 0; }
    .mobile-menu-button { display: grid; }
    .identity-drawer { left: 0; width: min(430px, 100vw); }
    .workspace-main { padding: 18px 14px 28px; }
    .workspace-main.is-module-view { padding: 0; }
    .workspace-main.is-module-view .view-heading { padding: 8px 14px; }
}

@media (max-width: 680px) {
    .workspace-header { padding: 0 12px; }
    .workspace-breadcrumb span, .workspace-breadcrumb i { display: none; }
    .workspace-main { padding: 14px 10px 22px; }
    .workspace-main.is-module-view { padding: 0; }
    .workspace-main.is-module-view .view-heading { min-height: 52px; padding: 7px 12px; }
    .view-heading { min-height: 0; margin-bottom: 14px; }
    .view-heading h1 { font-size: 20px; }
    .view-heading p { display: none; }
    .facts-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fact-item:nth-child(3) { border-left: 0; }
    .fact-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .data-toolbar { align-items: stretch; flex-wrap: wrap; }
    .field-select, .search-wrap { width: 100%; }
    .toolbar-spacer { display: none; }
    .module-row { grid-template-columns: 32px minmax(0, 1fr) 18px; padding: 0 11px; }
    .module-row__count { display: none; }
    .data-grid { gap: 8px; padding: 10px; }
    .equipment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .progress-split { grid-template-columns: 1fr; gap: 10px; padding: 10px; }
    .equipment-card { min-height: 116px; padding: 9px; }
    .equipment-card .tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .job-cell { gap: 6px; }
    .job-cell img { width: 24px; height: 24px; flex-basis: 24px; }
    .module-host { height: auto; min-height: 0; margin: 0; }
    .drawer-header, .switcher-tabs { padding-right: 15px; padding-left: 15px; }
    .drawer-body { padding-right: 15px; padding-left: 15px; }
    .appearance-banner { align-items: flex-start; flex-wrap: wrap; }
    .appearance-banner .text-action { margin-left: 72px; }
    .appearance-modal__body { grid-template-columns: 1fr; }
    .appearance-modal__preview { min-height: 150px; }
    .appearance-face-grid { grid-template-columns: repeat(4, minmax(50px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
