:root {
    --xl-blue: #0b57d0;
    --xl-blue-2: #1683e8;
    --xl-action-blue: #4a82e8;
    --xl-action-blue-hover: #3d74d8;
    --xl-ink: #111827;
    --xl-muted: #647085;
    --xl-soft: #f5f7fb;
    --xl-panel: #ffffff;
    --xl-line: #dfe6f3;
    --xl-line-strong: #c2cce0;
    --xl-success: #16835f;
    --xl-success-soft: #e9f6ef;
    --xl-warning: #c76000;
    --xl-warning-soft: #fff2e3;
    --xl-danger: #cf1f1f;
    --xl-danger-soft: #fff0ed;
    --xl-purple-soft: #f1f3ff;
    --xl-shadow: 0 8px 18px rgba(21, 39, 75, 0.06);
}

* {
    box-sizing: border-box;
    font-family: inherit;
}

html {
    font-family: "Noto Serif Simplified Chinese", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
    height: 100%;
}

body {
    height: 100%;
    margin: 0;
    color: var(--xl-ink);
    background: linear-gradient(90deg, #fff 0, #fff 260px, #fbfcff 260px);
    overflow: hidden;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.xl-shell {
    height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    overflow: hidden;
}

.xl-sidebar {
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 32px 16px 26px;
    background: #fff;
    border-right: 1px solid var(--xl-line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 8px 32px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 0;
    display: grid;
    place-items: center;
    background: transparent;
    overflow: hidden;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.brand-name {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0;
}

.brand-subtitle {
    margin-top: 4px;
    color: #2f3b52;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.primary-action {
    width: 100%;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    background: #0d63f3;
    border: 0;
    border-radius: 8px;
    font-weight: 500;
}

.side-nav {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.nav-item {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 14px;
    color: #273247;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-weight: 600;
    text-align: left;
}

.nav-item i {
    width: 22px;
    font-size: 18px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--xl-blue);
    background: #eef4ff;
}

.nav-item.active {
    box-shadow: inset 0 0 0 1px rgba(11, 87, 208, 0.06);
}

.home-link {
    width: 100%;
    height: 48px;
    margin-top: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 14px;
    color: #273247;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-weight: 600;
    text-align: left;
}

.home-link i {
    width: 22px;
    font-size: 18px;
}

.home-link:hover {
    color: var(--xl-blue);
    background: #eef4ff;
}

.xl-main {
    min-width: 0;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 34px 24px 44px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.xl-main::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.topbar {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.global-search {
    width: min(560px, 46vw);
    height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 17px;
    color: #536079;
    background: #fff;
    border: 1px solid var(--xl-line-strong);
    border-radius: 15px;
}

.global-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--xl-ink);
    background: transparent;
}

.global-search input::placeholder {
    color: #65718a;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #172238;
    background: transparent;
    border: 0;
    border-radius: 10px;
    font-size: 18px;
}

.icon-btn:hover {
    background: #eef4ff;
    color: var(--xl-blue);
}

.avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #fff;
    background: radial-gradient(circle at 35% 35%, #6dc8ff, #063e71 65%);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
}

.view {
    display: none;
    min-height: 100%;
}

.view.active {
    display: block;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 28px 8px 34px;
}

.page-heading.slim {
    margin-bottom: 20px;
}

.page-heading h1,
.center-heading h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: 0;
}

.page-heading p,
.center-heading p {
    margin: 12px 0 0;
    color: #39465c;
    font-size: 16px;
}

.freshness {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    color: #1d2a40;
    background: #fff;
    border: 1px solid var(--xl-line-strong);
    border-radius: 14px;
    font-weight: 500;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    min-height: 148px;
    padding: 24px 24px 22px;
    background: var(--xl-panel);
    border: 1px solid #d8e3fa;
    border-radius: 12px;
}

.metric-card.danger {
    border-color: #ffd3c8;
    background: #fffdfc;
}

.metric-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #202a3e;
    font-weight: 600;
}

.metric-icon {
    color: var(--xl-blue);
    font-size: 20px;
}

.metric-card.danger .metric-icon,
.metric-card.danger .metric-value,
.metric-card.danger .metric-note {
    color: var(--xl-danger);
}

.metric-value {
    margin-top: 26px;
    font-size: 36px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0;
}

.metric-note {
    margin-top: 12px;
    color: #3e4c63;
    font-size: 14px;
    font-weight: 500;
}

.chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr);
    gap: 20px;
}

.panel {
    min-width: 0;
    background: #fff;
    border: 1px solid #dce6f7;
    border-radius: 12px;
    overflow: hidden;
}

.panel-head {
    height: 70px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    padding: 0 26px;
}

.panel-head h2,
.section-head h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
}

.panel-head h2 {
    grid-column: 2;
    text-align: center;
}

.ghost-btn {
    grid-column: 3;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #283247;
    background: transparent;
    border: 0;
    border-radius: 9px;
}

.chart {
    width: 100%;
    height: 282px;
}

.chart canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.chart.compact {
    height: 188px;
}

.legend-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    padding: 0 30px 24px;
}

.status-panel .legend-list {
    position: absolute;
    top: 78px;
    right: 38px;
    z-index: 2;
    display: grid;
    width: min(520px, calc(100% - 76px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: end;
    gap: 8px 18px;
    margin: 0;
    padding: 0;
}

.status-panel {
    position: relative;
    display: flex;
    flex-direction: column;
}

.status-panel .chart.compact {
    height: 166px;
    margin-top: 96px;
}

.status-panel .legend-item {
    min-width: 0;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    line-height: 1.1;
}

.status-panel .legend-item strong {
    display: none;
}

.status-panel .legend-name {
    gap: 6px;
    color: #42506a;
    min-width: 0;
}

.status-panel .legend-name span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-panel .legend-dot {
    width: 9px;
    height: 9px;
}

.legend-percent {
    flex: 0 0 auto;
    color: #7a879b;
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
}

.legend-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #1e293b;
}

.legend-name span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.workbench-left {
    min-width: 0;
    display: grid;
    gap: 20px;
    align-content: start;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(108px, 0.85fr) minmax(118px, 0.9fr) minmax(108px, 0.85fr) minmax(190px, 1.3fr) 96px;
    gap: 10px;
    align-items: end;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--xl-line);
    border-radius: 12px;
}

.filter-field {
    display: grid;
    gap: 6px;
}

.filter-field.wide {
    grid-column: auto;
}

.filter-panel > .primary-small {
    width: 100%;
}

.filter-field label {
    color: #26334b;
    font-size: 12px;
    font-weight: 600;
}

.filter-field select,
.filter-field input {
    height: 38px;
    padding: 0 11px;
    color: #172238;
    background: #fbfcff;
    border: 1px solid #e3e8f3;
    border-radius: 8px;
    outline: 0;
}

.primary-small,
.outline-btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 600;
}

.primary-small {
    color: #fff;
    background: var(--xl-action-blue);
    border: 0;
}

.primary-small:hover {
    background: var(--xl-action-blue-hover);
}

.outline-btn {
    color: #172238;
    background: #fff;
    border: 1px solid var(--xl-line-strong);
}

.table-panel {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--xl-line);
    border-radius: 12px;
}

.issue-table {
    width: 100%;
    min-width: 690px;
    table-layout: fixed;
    border-collapse: collapse;
}

.issue-table th,
.issue-table td {
    padding: 16px 10px;
    border-bottom: 1px solid #edf1f7;
    text-align: left;
    vertical-align: middle;
}

.issue-table th {
    color: #26334b;
    background: #fbfcff;
    font-size: 13px;
    font-weight: 600;
}

.issue-table td {
    font-size: 14px;
    word-break: break-word;
}

.issue-table th:nth-child(1),
.issue-table td:nth-child(1) { width: 19%; }
.issue-table th:nth-child(2),
.issue-table td:nth-child(2) { width: 18%; }
.issue-table th:nth-child(3),
.issue-table td:nth-child(3) { width: 8%; }
.issue-table th:nth-child(4),
.issue-table td:nth-child(4) { width: 12%; }
.issue-table th:nth-child(5),
.issue-table td:nth-child(5) { width: 15%; }
.issue-table th:nth-child(6),
.issue-table td:nth-child(6) { width: 16%; }
.issue-table th:nth-child(7),
.issue-table td:nth-child(7) { width: 12%; }

.issue-table tr {
    transition: background 0.16s ease;
}

.issue-table tbody tr:hover,
.issue-table tbody tr.selected {
    background: #f5f8ff;
}

.term-link {
    color: var(--xl-blue);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.term-link:hover {
    color: #0645ad;
}

.link-button {
    padding: 0;
    color: var(--xl-blue);
    background: transparent;
    border: 0;
    font-weight: 600;
    text-decoration: none;
}

#view-rules a,
#view-rules button,
#view-detail a,
#view-detail button {
    text-decoration: none;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
}

.status-unknown,
.status-pending {
    color: #b82b16;
    background: var(--xl-danger-soft);
}

.status-partial_match {
    color: #6d4a00;
    background: var(--xl-warning-soft);
}

.status-valid_alias,
.status-valid_processed,
.status-valid_combination,
.status-valid_exact,
.status-resolved {
    color: #075d43;
    background: var(--xl-success-soft);
}

.status-not_required {
    color: #435065;
    background: #eef2f7;
}

.detail-drawer {
    display: none;
    width: min(720px, calc(100vw - 48px));
    max-height: calc(100vh - 96px);
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 80;
    transform: translate(-50%, -50%);
    padding: 24px;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    border: 1px solid var(--xl-line);
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.18);
    overflow-y: auto;
}

.detail-drawer.open {
    display: block;
}

body.review-modal-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(2px);
}

.drawer-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
}

.drawer-title {
    margin: 0 38px 8px 0;
    font-size: 22px;
    font-weight: 600;
}

.drawer-subtitle {
    margin: 0 0 24px;
    color: var(--xl-muted);
}

.context-box {
    padding: 18px;
    background: #fff;
    border: 1px solid #e8edf6;
    border-radius: 12px;
    margin-bottom: 18px;
}

.context-box h3 {
    margin: 0 0 12px;
    font-size: 15px;
}

.detail-term {
    margin-bottom: 10px;
    color: var(--xl-danger);
    font-size: 22px;
    font-weight: 600;
}

.muted {
    color: var(--xl-muted);
}

.review-action-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.review-action {
    min-height: 70px;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #16233a;
    text-align: left;
    background: #fff;
    border: 1px solid #dbe6f5;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(16, 38, 74, 0.05);
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.review-action:hover {
    transform: translateY(-1px);
    border-color: #b8d1f4;
    box-shadow: 0 10px 22px rgba(17, 68, 145, 0.09);
}

.review-action i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #0b57d0;
    background: #edf5ff;
    border-radius: 10px;
}

.review-action strong,
.review-action-desc {
    display: block;
}

.review-action strong {
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 700;
}

.review-action-desc {
    color: #61708a;
    font-size: 12px;
    line-height: 1.45;
}

.review-action-primary {
    color: #0b57d0;
    background: #f1f5ff;
    border-color: #d8e1ff;
}

.review-action-primary i {
    color: #0b57d0;
    background: #fff;
}

.review-action-primary .review-action-desc {
    color: #53647d;
}

.review-action-primary:hover {
    background: #e9efff;
    border-color: #bfcdfd;
}

.review-action-danger {
    color: var(--xl-danger);
    border: 1px solid #ffd3c8;
}

.review-action-danger i {
    color: var(--xl-danger);
    background: #fff1ee;
}

.review-action-quiet {
    background: #f8fbff;
}

.review-action-quiet i {
    color: #5d6b82;
    background: #eef2f7;
}

.normalization-rule-panel {
    margin-top: 14px;
    padding: 14px;
    background: #f8fbff;
    border: 1px solid #d8e3fa;
    border-radius: 12px;
}

.normalization-rule-panel[hidden] {
    display: none;
}

.normalization-rule-panel strong {
    display: block;
    color: #172238;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.normalization-rule-panel p {
    margin: 0 0 12px;
    color: #61708a;
    font-size: 12px;
    line-height: 1.45;
}

.normalization-rule-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.normalization-rule-row input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    color: #16233a;
    background: #fff;
    border: 1px solid #ccd8ec;
    border-radius: 8px;
    outline: none;
}

.normalization-rule-row input:focus {
    border-color: var(--xl-action-blue);
    box-shadow: 0 0 0 3px rgba(74, 130, 232, 0.12);
}

.center-heading {
    max-width: 980px;
    margin: 78px auto 68px;
    text-align: center;
}

.rule-search {
    height: 64px;
    margin: 32px auto 0;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 760px;
    padding: 0 14px 0 24px;
    background: #fff;
    border: 1px solid var(--xl-line-strong);
    border-radius: 18px;
}

.rule-search i {
    color: #66738c;
    font-size: 22px;
}

.rule-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--xl-ink);
    font-size: 16px;
}

.rule-search button {
    width: 92px;
    height: 44px;
    color: #fff;
    background: var(--xl-action-blue);
    border: 0;
    border-radius: 12px;
    font-weight: 600;
}

.rule-search button:hover {
    background: var(--xl-action-blue-hover);
}

.category-band,
.rules-section {
    max-width: 1180px;
    margin: 0 auto 44px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-head h2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-head h2 i {
    color: var(--xl-blue);
    font-size: 20px;
}

.section-caption {
    margin: -4px 0 16px;
    color: #52627d;
    font-size: 14px;
    line-height: 1.7;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid #e2e8f4;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.category-card.category-disease {
    color: #7a2222;
    background: #fff2f2;
    border-color: #ffd7d7;
}

.category-card.category-syndrome {
    background: #f1f5ff;
    border-color: #d8e1ff;
}

.category-card.category-formula {
    background: #fff6e8;
    border-color: #f4dfb9;
}

.category-card.category-medicine {
    color: #145b40;
    background: #edf8f2;
    border-color: #cfe9da;
}

.category-card:hover,
.category-card.active {
    border-color: #8fbaf5;
    box-shadow: 0 8px 18px rgba(35, 111, 213, 0.08);
    transform: translateY(-1px);
}

.category-card i {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--xl-blue);
    background: rgba(255, 255, 255, 0.8);
}

.category-title {
    font-weight: 600;
}

.category-count {
    margin-top: 3px;
    color: #42506a;
    font-size: 13px;
}

.category-action {
    margin-top: 6px;
    color: var(--xl-blue);
    font-size: 12px;
}

.rule-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.rule-card {
    padding: 24px;
    background: #fff;
    border: 1px solid #d8e3fa;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(15, 35, 68, 0.05);
}

.rule-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #1d2a40;
    font-size: 13px;
    font-weight: 600;
}

.rule-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rule-save-btn,
.rule-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #1d2a40;
    background: #fff;
    border: 1px solid #d7dfec;
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
}

.rule-save-btn {
    color: var(--xl-action-blue);
    background: #eef5ff;
    border-color: #cfe0fb;
}

.rule-save-btn:hover {
    color: #fff;
    background: var(--xl-action-blue);
    border-color: var(--xl-action-blue);
}

.rule-delete-btn:hover {
    color: #111827;
    background: #f3f6fb;
    border-color: #b8c5d8;
}

.rule-delete-btn span {
    display: none;
}

.rules-empty {
    grid-column: 1 / -1;
    border: 1px dashed #cbd8ec;
    border-radius: 12px;
    background: #f7fbff;
}

.rule-pagination {
    grid-column: 1 / -1;
}

.rule-title {
    margin: 22px 0 14px;
    font-size: 21px;
    font-weight: 600;
}

.rule-kind-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: #55647a;
    font-size: 13px;
}

.rule-kind-select {
    min-width: 124px;
    height: 36px;
    padding: 0 34px 0 12px;
    color: #172238;
    background: #fbfcff;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    outline: none;
}

.rule-kind-select:focus {
    border-color: var(--xl-action-blue);
    box-shadow: 0 0 0 3px rgba(74, 130, 232, 0.12);
}

.logic-box {
    display: grid;
    gap: 10px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #dbe8f8;
    border-radius: 10px;
}

.logic-row {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 12px;
    align-items: center;
}

.logic-key {
    color: #7b8496;
    font-weight: 600;
}

.logic-key.then {
    color: var(--xl-danger);
}

.rule-inline-input {
    width: min(100%, 360px);
    min-height: 36px;
    margin-left: 8px;
    padding: 0 10px;
    color: #172238;
    background: #fbfcff;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    font: inherit;
    outline: none;
}

.rule-inline-input:focus {
    border-color: #9fc2f5;
    box-shadow: 0 0 0 3px rgba(74, 130, 232, 0.12);
}

.term-results {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.term-results-head {
    flex-basis: 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    color: #1b2a42;
}

.term-results-head span {
    font-weight: 600;
}

.term-results-head small {
    color: #65748c;
}

.term-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 10px;
    color: #1f2d46;
    background: #f5f8ff;
    border: 1px solid #e1e8f6;
    border-radius: 8px;
    font-weight: 500;
}

.report-detail-panel {
    padding: 26px;
}

.report-record-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.record-search-wrap,
.record-toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.record-search-wrap {
    min-width: 320px;
    flex: 1;
}

.record-toolbar-actions {
    flex: 0 0 auto;
}

.record-search {
    width: min(440px, 100%);
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    color: #6d7b92;
    background: #fff;
    border: 1px solid #d7e3f4;
    border-radius: 10px;
}

.record-search:focus-within {
    border-color: #9dc2f4;
    box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.08);
}

.record-search input {
    width: 100%;
    min-width: 0;
    color: #1f2d45;
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
}

.record-search input::placeholder {
    color: #93a1b5;
}

.sort-dropdown {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px 0 12px;
    color: #273247;
    background: #fff;
    border: 1px solid #d7e3f4;
    border-radius: 10px;
    font-weight: 600;
}

.sort-dropdown i {
    color: #0b57d0;
}

.sort-dropdown select {
    min-width: 98px;
    color: inherit;
    background: transparent;
    border: 0;
    outline: none;
    font: inherit;
    cursor: pointer;
}

.batch-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icon-action {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #0b57d0;
    background: #eef5ff;
    border: 1px solid #d5e5fb;
    border-radius: 10px;
    font: inherit;
    cursor: pointer;
}

.icon-action:hover:not(:disabled) {
    background: #e3efff;
    border-color: #bcd5f7;
}

.icon-action:disabled {
    color: #98a4b6;
    background: #f6f8fb;
    border-color: #dce5f3;
    cursor: not-allowed;
}

.danger-action {
    color: #bd1f1f;
    background: #fff4f2;
    border-color: #ffd2cd;
}

.danger-action:hover:not(:disabled) {
    background: #ffe6e2;
    border-color: #ffbcb5;
}

.action-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    color: #fff;
    background: #c91f1f;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
}

.report-record-list {
    display: grid;
    gap: 14px;
}

.report-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    color: #536079;
    font-size: 14px;
}

.report-pagination.single-page {
    justify-content: flex-end;
}

.report-pagination.compact {
    margin: 0;
    gap: 7px;
    color: #273247;
    font-weight: 600;
}

.report-pagination.compact .page-btn {
    min-width: 30px;
    height: 30px;
}

.page-btn {
    min-width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    color: #273247;
    background: #fff;
    border: 1px solid #d9e4f4;
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
}

.page-btn:hover:not(:disabled),
.page-btn.active {
    color: #fff;
    background: #0b57d0;
    border-color: #0b57d0;
}

.page-btn:disabled {
    color: #a0adbf;
    background: #f4f7fb;
    cursor: not-allowed;
}

.report-record-card {
    min-height: 148px;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe6f3;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(28, 50, 86, 0.05);
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.report-record-card.selected {
    border-color: #8ab4f8;
    background: #f7fbff;
}

.report-record-card:hover,
.report-record-card:focus-visible {
    border-color: #b9c8e4;
    background: #fcfdff;
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(28, 50, 86, 0.08);
}

.report-thumb {
    position: relative;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    padding: 18px;
    background: #f6f4f3;
    border-right: 1px solid #e7e3df;
}

.report-thumb::before {
    content: "";
    width: 88px;
    height: 112px;
    position: absolute;
    opacity: 0;
}

.thumb-line,
.thumb-block {
    display: block;
    width: 78px;
    height: 5px;
    background: #d4d7dd;
    border-radius: 999px;
}

.thumb-line.strong {
    height: 10px;
    background: #393942;
}

.thumb-line.short {
    width: 44px;
}

.thumb-line.small {
    width: 56px;
    background: #35629a;
}

.thumb-block {
    width: 78px;
    height: 7px;
    margin-top: 8px;
    background: #2d5f99;
}

.report-record-main {
    min-width: 0;
    padding: 24px 22px;
}

.record-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.record-title {
    min-width: 0;
    padding: 0;
    color: #071b3a;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    text-align: left;
    overflow-wrap: anywhere;
}

.record-title:hover {
    color: var(--xl-blue);
}

.record-subtitle {
    margin-top: 8px;
    color: #536079;
    font-size: 15px;
}

.record-entity-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.record-entity-tag {
    max-width: min(260px, 100%);
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #26334b;
    font-size: 13px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-entity-tag b {
    font-size: 12px;
    font-weight: 600;
}

.record-entity-tag.entity-disease {
    color: #7a2222;
    background: #fff2f2;
    border-color: #ffd7d7;
}

.record-entity-tag.entity-syndrome {
    background: #f1f5ff;
    border-color: #d8e1ff;
}

.record-entity-tag.entity-formula {
    background: #fff6e8;
    border-color: #f4dfb9;
}

.record-entity-tag.entity-medicine {
    color: #145b40;
    background: #edf8f2;
    border-color: #cfe9da;
}

.record-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    color: #273247;
    font-size: 14px;
}

.chip-button {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    color: #0b57d0;
    background: #eef4ff;
    border: 1px solid #d7e5ff;
    border-radius: 8px;
    font-weight: 600;
}

.chip-button:hover {
    background: #e2edff;
}

.record-select {
    position: relative;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.record-select-left {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
}

.record-select input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.record-select span {
    width: 18px;
    height: 18px;
    display: block;
    background: #fff;
    border: 1px solid #bfcee4;
    border-radius: 5px;
}

.record-select:hover span {
    border-color: #0b57d0;
    background: #eef4ff;
}

.record-select input:checked + span {
    background: #0b57d0;
    border-color: #0b57d0;
    box-shadow: inset 0 0 0 4px #fff;
}

.icon-only {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #536079;
    background: transparent;
    border: 0;
    border-radius: 8px;
}

.icon-only:hover {
    color: var(--xl-blue);
    background: #eef4ff;
}

.danger-icon:hover {
    color: var(--xl-danger);
    background: var(--xl-danger-soft);
}

.detail-toolbar,
.report-table-head,
.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.paper-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf1f7;
}

.paper-head span {
    color: var(--xl-blue);
    font-weight: 600;
}

.paper-head h3 {
    margin: 8px 0 0;
    font-size: 24px;
    font-weight: 600;
}

.paper-head strong {
    align-self: flex-start;
    padding: 6px 10px;
    color: #1d2a40;
    background: #eef2f7;
    border-radius: 999px;
    font-size: 13px;
}

.paper-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.paper-grid div {
    padding: 14px;
    background: #fbfcff;
    border: 1px solid #edf1f7;
    border-radius: 8px;
}

.paper-grid span,
.paper-section h4 {
    display: block;
    margin: 0 0 7px;
    color: #647085;
    font-size: 13px;
    font-weight: 600;
}

.paper-grid strong {
    line-height: 1.55;
}

.paper-section {
    margin-top: 20px;
}

.paper-section p {
    margin: 0;
    line-height: 1.75;
}

.paper-herbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.paper-herbs span {
    padding: 6px 10px;
    background: #eef8f2;
    border: 1px solid #d8ecdf;
    border-radius: 7px;
}

.paper-foot {
    margin-top: 26px;
    padding-top: 14px;
    color: #647085;
    border-top: 1px solid #edf1f7;
    font-size: 13px;
}

.report-table-head h2,
.section-title-row h3,
.check-section h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
}

.report-table-head p {
    margin: 8px 0 0;
    color: var(--xl-muted);
}

.report-run-table-wrap {
    overflow-x: auto;
    border: 1px solid #edf1f7;
    border-radius: 10px;
}

.report-run-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    table-layout: fixed;
}

.report-run-table th,
.report-run-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #edf1f7;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}

.report-run-table th {
    color: #26334b;
    background: #fbfcff;
    font-size: 13px;
    font-weight: 600;
}

.report-run-table tbody tr {
    cursor: pointer;
}

.report-run-table tbody tr:hover {
    background: #f5f8ff;
}

.report-run-table th:nth-child(1),
.report-run-table td:nth-child(1) { width: 18%; }
.report-run-table th:nth-child(2),
.report-run-table td:nth-child(2) { width: 16%; }
.report-run-table th:nth-child(3),
.report-run-table td:nth-child(3) { width: 36%; }
.report-run-table th:nth-child(4),
.report-run-table td:nth-child(4) { width: 10%; }
.report-run-table th:nth-child(5),
.report-run-table td:nth-child(5) { width: 10%; }
.report-run-table th:nth-child(6),
.report-run-table td:nth-child(6) { width: 10%; }

.check-section {
    margin-top: 16px;
}

.run-question {
    margin-top: 12px;
    padding: 12px 14px;
    background: #fbfcff;
    border: 1px solid #e3eaf6;
    border-radius: 10px;
}

.run-question-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.run-question-head span {
    color: var(--xl-muted);
    font-size: 13px;
}

.prompt-mini-btn {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    color: #7b879a;
    background: transparent;
    border: 0;
    border-radius: 8px;
    opacity: 0.72;
    cursor: pointer;
}

.prompt-mini-btn:hover,
.prompt-mini-btn:focus-visible {
    color: var(--xl-blue);
    background: #eef4ff;
    opacity: 1;
    outline: none;
}

.run-question p {
    margin: 0;
    color: #172238;
    line-height: 1.55;
    word-break: break-word;
}

.modal-open {
    overflow: hidden;
}

.prompt-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(12, 22, 39, 0.32);
}

.prompt-modal {
    width: min(880px, calc(100vw - 56px));
    max-height: min(78vh, 720px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 28, 48, 0.18);
}

.prompt-modal-head,
.prompt-modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
}

.prompt-modal-head {
    border-bottom: 1px solid #edf1f7;
}

.prompt-modal-head h3 {
    margin: 0;
    color: #111b2f;
    font-size: 18px;
    font-weight: 500;
}

.prompt-modal-head p {
    margin: 5px 0 0;
    color: #647085;
    font-size: 12px;
}

.prompt-modal pre {
    margin: 0;
    padding: 16px 18px;
    overflow: auto;
    color: #172238;
    background: #fbfcff;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.prompt-modal-foot {
    border-top: 1px solid #edf1f7;
}

.diagnosis-card {
    padding: 20px;
    background: #fbfcff;
    border: 1px solid #e3eaf6;
    border-radius: 10px;
}

.diagnosis-main {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.diagnosis-main div {
    min-height: 76px;
    padding: 12px;
    background: #fff;
    border: 1px solid #edf1f7;
    border-radius: 8px;
}

.diagnosis-main span {
    display: block;
    margin-bottom: 8px;
    color: var(--xl-muted);
    font-size: 12px;
}

.diagnosis-main strong {
    display: block;
    line-height: 1.45;
    word-break: break-word;
}

.herb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.herb-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    color: #1f2d46;
    background: #eef8f2;
    border: 1px solid #d8ecdf;
    border-radius: 7px;
    font-weight: 500;
}

.report-note {
    margin-top: 14px;
    color: #273247;
    line-height: 1.65;
}

.entity-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
    align-items: start;
}

.entity-group {
    min-width: 0;
    border: 1px solid #edf1f7;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.entity-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #fbfcff;
    border-bottom: 1px solid #edf1f7;
}

.entity-group-title span {
    font-size: 15px;
    font-weight: 600;
}

.entity-group-title strong {
    color: var(--xl-muted);
}

.entity-group-body {
    display: grid;
    gap: 7px;
    padding: 8px;
}

.entity-group-medicine {
    grid-column: 1 / -1;
}

.entity-group-medicine .entity-group-body {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.entity-group-medicine .entity-check-row {
    min-height: 68px;
}

.entity-check-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
    padding: 8px;
    background: #fbfcff;
    border: 1px solid #eef2f8;
    border-radius: 8px;
}

.entity-check-row strong {
    display: block;
    color: #0f1d35;
    font-size: 13px;
    line-height: 1.32;
    word-break: break-word;
}

.entity-check-row p {
    margin: 3px 0 0;
    color: var(--xl-muted);
    font-size: 12px;
    line-height: 1.3;
}

.entity-check-row .status-pill {
    width: fit-content;
    min-height: 24px;
    padding: 3px 8px;
    font-size: 12px;
    white-space: nowrap;
}

.candidate-line {
    color: #0b57d0 !important;
}

.empty-mini {
    padding: 12px 10px;
    color: var(--xl-muted);
    background: #fbfcff;
    border-radius: 8px;
}

.xl-shell :where(h1, h2, h3, h4, strong, .nav-item, .metric-top, .metric-value, .panel-head h2, .section-head h2, .filter-field label, .issue-table th, .term-link, .link-button, .status-pill, .drawer-title, .detail-term, .match-option span, .category-name, .rule-title, .logic-key, .run-meta strong, .primary-small, .outline-btn, .danger-btn, .quiet-btn) {
    font-family: inherit;
    font-weight: 500;
}

.run-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.run-meta {
    padding: 11px 12px;
    background: #f8fbff;
    border-radius: 10px;
}

.run-meta span {
    display: block;
    color: var(--xl-muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.entity-timeline {
    display: grid;
    gap: 12px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    background: #fff;
    border: 1px solid #edf1f7;
    border-radius: 10px;
}

.empty-state {
    padding: 42px 20px;
    color: #647085;
    text-align: center;
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    min-width: 220px;
    padding: 14px 16px;
    color: #fff;
    background: #172238;
    border-radius: 10px;
    z-index: 20;
}

@media (max-width: 1180px) {
    .xl-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .metric-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .chart-grid,
    .workbench {
        grid-template-columns: 1fr;
    }

    .entity-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-drawer {
        min-height: auto;
    }

    .rule-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    body {
        background: #fbfcff;
        overflow: auto;
    }

    .xl-shell {
        display: block;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .xl-sidebar {
        height: auto;
        min-height: auto;
        position: relative;
        border-right: 0;
        border-bottom: 1px solid var(--xl-line);
    }

    .xl-main {
        height: auto;
        overflow: visible;
        padding: 20px 16px 36px;
    }

    .topbar {
        align-items: stretch;
        height: auto;
        padding: 16px 0;
        flex-direction: column;
    }

    .global-search {
        width: 100%;
    }

    .metric-grid,
    .category-grid,
    .filter-panel,
    .run-meta-grid,
    .diagnosis-main,
    .report-record-card,
    .paper-grid {
        grid-template-columns: 1fr;
    }

    .entity-check-row {
        grid-template-columns: 1fr;
    }

    .entity-board {
        grid-template-columns: 1fr;
    }

    .report-thumb {
        border-right: 0;
        border-bottom: 1px solid #e7e3df;
    }

}

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

[hidden] {
    display: none !important;
}

.login-view {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    background: #fff;
}

.login-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #f0eff5;
}

.visual-brand {
    position: absolute;
    top: 44px;
    left: clamp(44px, 6vw, 76px);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #18304d;
    text-decoration: none;
}

.visual-brand img {
    width: 42px;
    height: 42px;
}

.visual-brand span {
    display: grid;
}

.visual-brand strong {
    font-size: 18px;
}

.visual-brand small {
    margin-top: 2px;
    color: #6f7180;
    font-size: 11px;
}

.visual-tagline {
    margin-left: 10px;
    color: #6f7180;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.6;
    max-width: none;
}

.visual-animation {
    position: absolute;
    top: 23%;
    left: 50%;
    width: min(61%, 430px);
    transform: translateX(-50%);
}

.visual-animation lottie-player {
    width: 100%;
    height: auto;
}

.login-panel {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 56px clamp(42px, 7vw, 96px);
    background: #fff;
}

.login-form-shell {
    width: min(410px, 100%);
}

.login-eyebrow {
    margin: 0 0 12px;
    color: #00a889;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .14em;
}

.login-form-shell h1 {
    margin: 0 0 8px;
    color: #171824;
    font-size: 36px;
    letter-spacing: -.04em;
}

.login-note {
    margin: 0 0 38px;
    color: #818791;
    font-size: 13px;
    line-height: 1.7;
}

.login-form-shell form {
    display: grid;
    gap: 22px;
}

.login-form-shell label {
    color: #3b3d49;
    font-size: 13px;
}

.input-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 0 1px 12px;
    border-bottom: 1px solid #d9dce2;
}

.input-line:focus-within {
    border-color: #171824;
}

.input-line i {
    width: 16px;
    color: #9298a2;
}

.input-line input {
    min-width: 0;
    flex: 1;
    padding: 0;
    color: #171824;
    background: transparent;
    border: 0;
    outline: 0;
}

.input-line input::placeholder {
    color: #b0b4bb;
}

.form-message {
    min-height: 20px;
    margin: -6px 0 -8px;
    color: var(--xl-danger);
    font-size: 13px;
}

.login-button {
    width: 100%;
    height: 54px;
    color: #fff;
    background: #171824;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(23, 24, 36, .14);
    font-weight: 700;
}

.login-button:hover {
    background: #292b3a;
}

.login-button:disabled {
    cursor: wait;
    opacity: .62;
}

.login-boundary {
    display: flex;
    gap: 10px;
    margin-top: 26px;
    padding-top: 20px;
    color: #89909c;
    border-top: 1px solid #eceef2;
    font-size: 12px;
    line-height: 1.7;
}

.login-boundary i {
    margin-top: 3px;
    color: #00a889;
}

.login-boundary a {
    color: var(--xl-blue);
    text-decoration: none;
}

.admin-account {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    color: var(--xl-muted);
    border-top: 1px solid var(--xl-line);
    font-size: 12px;
}

.admin-account span {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-account button {
    flex: none;
    padding: 0;
    color: #273247;
    background: transparent;
    border: 0;
    text-align: left;
    white-space: nowrap;
}

.admin-account button:hover {
    color: var(--xl-blue);
}

@media (max-width: 820px) {
    .login-view {
        display: block;
    }

    .login-visual {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 40px 24px;
    }
}
