:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-soft: #eef2f5;
    --text: #17202a;
    --muted: #6b7280;
    --border: #d7dde4;
    --primary: #146c5c;
    --primary-dark: #0e5145;
    --accent: #2563eb;
    --danger: #b42318;
    --warning: #8a5a00;
    --success-bg: #e7f6ee;
    --error-bg: #fdecec;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06);
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 60px;
    padding: 0 28px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.brand {
    font-weight: 800;
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 10px;
    color: #26323f;
    border-radius: 6px;
}

.nav a:hover {
    background: var(--surface-soft);
}

.userbar {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
}

.page {
    width: min(1240px, calc(100% - 32px));
    margin: 28px auto 56px;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.page-heading h1,
.panel h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
}

h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.muted {
    margin: 0;
    color: var(--muted);
}

.panel {
    margin-bottom: 18px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.narrow {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.install-panel {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.alert-success {
    background: var(--success-bg);
    color: #155a36;
    border-color: #b9dfc8;
}

.alert-error {
    background: var(--error-bg);
    color: #8a1f18;
    border-color: #efb3ad;
}

label {
    display: grid;
    gap: 7px;
    color: #26323f;
    font-weight: 650;
}

input,
select,
textarea {
    max-width: 100%;
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid #c9d1da;
    border-radius: 6px;
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(20, 108, 92, .16);
    border-color: var(--primary);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid h2,
.form-grid .actions,
.form-grid .checkbox,
.form-grid .full-row {
    grid-column: 1 / -1;
}

.stack {
    display: grid;
    gap: 16px;
}

.filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
}

.actions.inline {
    margin-top: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
    color: #1f2937;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.button:hover {
    background: var(--surface-soft);
}

.button.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.button.primary:hover {
    background: var(--primary-dark);
}

.button.danger {
    color: #ffffff;
    background: var(--danger);
    border-color: var(--danger);
}

.button.small {
    min-height: 32px;
    padding: 0 10px;
    font-size: 13px;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 650;
}

.checkbox input {
    width: auto;
    min-height: auto;
}

.inline-options {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.table-wrap {
    max-width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.section-title-row h2 {
    margin-bottom: 0;
}

.compact-table {
    margin-top: 14px;
}

.compact-table th,
.compact-table td {
    padding: 8px 10px;
}

.log-sample {
    max-width: 260px;
    white-space: normal;
    word-break: break-word;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    background: #ffffff;
}

th,
td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    background: #eef2f5;
    color: #334155;
    font-size: 13px;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

.center {
    text-align: center;
}

.table-meta,
.pagination,
.row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-meta {
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--muted);
}

.pagination {
    margin-top: 14px;
}

.row-actions form {
    margin: 0;
}

.portal-settings {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(360px, 1.2fr);
    gap: 20px;
    align-items: end;
}

.portal-settings-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.portal-token-panel {
    display: grid;
    grid-template-columns: minmax(240px, .8fr) minmax(420px, 1.2fr);
    gap: 20px;
    align-items: start;
}

.token-management-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
    gap: 14px;
}

.portal-token-form,
.token-reset-card {
    display: grid;
    gap: 12px;
}

.token-reset-card {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.token-action-row,
.token-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.token-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
}

.token-inline-form {
    margin-top: 8px;
}

.token-inline-form .token-input {
    flex: 1 1 260px;
    min-height: 32px;
    padding: 6px 8px;
}

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

.portal-link-grid h2 {
    margin-bottom: 6px;
}

.report-name-cell {
    min-width: 260px;
}

.public-link-cell {
    min-width: 560px;
}

.link-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.link-field input {
    min-height: 32px;
    padding: 6px 8px;
    color: #475569;
    background: #f8fafc;
    font-size: 13px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.status-pill.on {
    background: #e5f4ed;
    color: #16633f;
}

.status-pill.off {
    background: #eef2f7;
    color: #526174;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.report-card {
    display: grid;
    gap: 8px;
    min-height: 112px;
    padding: 18px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.report-card:hover {
    border-color: var(--primary);
}

.report-card span {
    color: var(--muted);
}

.portal-body {
    min-height: 100vh;
    background: #eef2f6;
}

.portal-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    min-height: 86px;
    padding: 18px 36px;
    color: #ffffff;
    background: #17202a;
    border-bottom: 4px solid var(--accent);
}

.portal-brand {
    display: flex;
    gap: 14px;
    align-items: center;
    min-width: 0;
}

.portal-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #17202a;
    background: #ffffff;
    font-weight: 900;
}

.portal-eyebrow {
    margin-bottom: 3px;
    color: #b8c2cc;
    font-size: 13px;
    font-weight: 800;
}

.portal-header h1 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 24px;
    line-height: 1.2;
}

.portal-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.portal-meta span {
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 6px;
    color: #d8dee7;
    background: rgba(255, 255, 255, .06);
    font-size: 13px;
    font-weight: 700;
}

.portal-main {
    width: min(1480px, calc(100% - 40px));
    margin: 24px auto 48px;
}

.portal-summary,
.portal-panel {
    margin-bottom: 16px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #d8dee7;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .07);
}

.portal-summary p {
    margin: 0;
    color: #475569;
}

.portal-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
    gap: 14px;
    align-items: end;
}

.portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.portal-table-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
    color: #475569;
}

.portal-table-head div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
}

.portal-table-head strong {
    color: #17202a;
    font-size: 17px;
}

.portal-table-wrap {
    max-height: calc(100vh - 320px);
}

.portal-table-wrap th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.portal-error {
    margin-top: 80px;
    text-align: center;
}

.portal-error h1 {
    margin: 0 0 10px;
}

.portal-body {
    color: #111827;
    background: #f3f6fa;
}

.portal-shell-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid #d9e1ea;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}

.portal-brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.portal-logo {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff;
    background: #0f766e;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .5px;
}

.portal-brand-block h1 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    line-height: 1.2;
}

.portal-shell-header .portal-eyebrow {
    margin-bottom: 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.portal-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.portal-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #d6dee8;
    border-radius: 999px;
    color: #475569;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 800;
}

.portal-workspace {
    width: min(1520px, calc(100% - 40px));
    margin: 22px auto 44px;
}

.portal-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(360px, .9fr);
    gap: 16px;
    margin-bottom: 16px;
}

.portal-title-card,
.portal-card,
.portal-metrics div {
    background: #ffffff;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.portal-title-card {
    min-height: 142px;
    padding: 22px;
}

.portal-section-kicker {
    margin-bottom: 8px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
}

.portal-title-card h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 26px;
    line-height: 1.2;
}

.portal-title-card p {
    max-width: 860px;
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.report-index-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 18px;
    align-items: end;
}

.report-search {
    min-height: 44px;
    border-color: #cbd5e1;
    background: #f8fafc;
}

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

.report-index-card {
    display: grid;
    align-content: start;
    min-height: 150px;
    padding: 18px;
    color: #17202a;
    background: #ffffff;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.report-index-card:hover {
    border-color: #0f766e;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.report-index-card span {
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
}

.report-index-card strong {
    margin-top: 10px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.25;
}

.report-index-card small {
    margin-top: 10px;
    color: #64748b;
    line-height: 1.45;
}

.report-index-card.boss-card {
    background: #102a2a;
    border-color: #102a2a;
}

.report-index-card.boss-card span,
.report-index-card.boss-card strong,
.report-index-card.boss-card small {
    color: #ffffff;
}

.portal-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.portal-filter-tags span {
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #315466;
    background: #edf6f5;
    font-size: 12px;
    font-weight: 800;
}

.portal-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.portal-metrics div {
    display: grid;
    align-content: center;
    min-height: 142px;
    padding: 18px;
}

.portal-metrics span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.portal-metrics strong {
    display: block;
    margin-top: 8px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.portal-card {
    margin-bottom: 16px;
    padding: 18px;
}

.portal-card-head,
.portal-table-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.portal-card-head h3,
.portal-table-head h3 {
    margin: 0;
    color: #111827;
    font-size: 17px;
}

.portal-card-head span,
.portal-table-head span {
    display: inline-block;
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}

.portal-export-actions,
.portal-actions,
.portal-table-tools,
.portal-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.portal-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
    gap: 14px;
    align-items: end;
}

.portal-filters label {
    color: #334155;
    font-size: 13px;
}

.portal-result-card {
    padding: 0;
    overflow: hidden;
}

.portal-result-card .portal-table-head {
    margin: 0;
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.portal-table-tools span {
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #166534;
    background: #e7f6ee;
    font-size: 12px;
    font-weight: 900;
}

.portal-table-wrap {
    max-height: calc(100vh - 360px);
    border: 0;
    border-radius: 0;
}

.portal-data-table {
    min-width: 980px;
}

.portal-data-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px 12px;
    color: #475569;
    background: #f8fafc;
    border-bottom: 1px solid #d9e1ea;
    font-size: 12px;
    text-transform: none;
    white-space: nowrap;
}

.portal-data-table td {
    padding: 10px 12px;
    color: #1f2937;
    border-bottom: 1px solid #edf2f7;
    white-space: nowrap;
}

.portal-data-table tbody tr:nth-child(even) td {
    background: #fbfdff;
}

.portal-data-table tbody tr:hover td {
    background: #f1f7f6;
}

.boss-workspace {
    width: min(1680px, calc(100% - 36px));
}

.boss-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.boss-metrics div {
    min-height: 132px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.boss-metrics span,
.boss-metrics small {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.boss-metrics strong {
    display: block;
    margin: 12px 0 8px;
    color: #0f172a;
    font-size: 26px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.boss-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.boss-card-panel {
    margin-bottom: 0;
}

.boss-card-panel.wide {
    grid-column: 1 / -1;
}

.boss-table-wrap {
    overflow: auto;
    max-height: 470px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.boss-screen {
    min-height: 100vh;
    overflow-x: hidden;
    color: #f5f7fb;
    background:
        linear-gradient(135deg, #080b10 0%, #121015 48%, #101914 100%);
    font-size: 15px;
}

.boss-screen::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(90deg, rgba(94, 225, 161, .028) 0 1px, transparent 1px 42px);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .88), rgba(0, 0, 0, .12));
}

.boss-screen::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    left: -42%;
    width: 34%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(232, 199, 126, .08), transparent);
    transform: skewX(-18deg);
    animation: boss-sweep 9s linear infinite;
}

.boss-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 72px;
    padding: 8px 18px;
    background: rgba(8, 11, 16, .92);
    border-bottom: 1px solid rgba(226, 232, 240, .14);
    backdrop-filter: blur(16px);
}

.boss-brand,
.boss-center,
.boss-controls,
.boss-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.boss-brand {
    flex: 0 0 auto;
    min-width: 0;
    justify-self: start;
}

.boss-center {
    width: 100%;
    min-width: 0;
    justify-self: center;
    justify-content: center;
    flex-wrap: wrap;
}

.boss-logo {
    display: block;
    width: 204px;
    height: 54px;
    flex: 0 0 auto;
    object-fit: contain;
    border: 1px solid rgba(226, 232, 240, .2);
    border-radius: 4px;
    background: #082a52;
}

.boss-fullscreen-logo {
    display: none;
}

.boss-kicker,
.boss-panel-head span {
    color: #e8c77e;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.boss-center h1,
.boss-hero-panel h2,
.boss-panel-head h3 {
    margin: 0;
    color: #ffffff;
    letter-spacing: 0;
}

.boss-center h1 {
    margin-top: 2px;
    font-size: 24px;
    white-space: nowrap;
}

.boss-controls {
    flex: 1 1 auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
    padding: 0;
    max-width: 100%;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    scrollbar-width: thin;
}

.boss-controls input {
    width: auto;
    min-width: 120px;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    color: #f8fafc;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(226, 232, 240, .18);
    font-weight: 800;
}

.boss-select-field {
    display: inline-flex;
    min-height: 36px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 0 9px;
    border: 1px solid rgba(232, 199, 126, .24);
    border-radius: 10px;
    color: #f8e7bb;
    background: rgba(255, 255, 255, .035);
    font-weight: 900;
    white-space: nowrap;
}

.boss-select-field span {
    color: #d7dee8;
    font-size: 12px;
    font-weight: 900;
}

.boss-select-field select {
    min-height: 32px;
    padding: 0 26px 0 8px;
    border: 0;
    border-radius: 8px;
    color: #f8fafc;
    background: rgba(255, 255, 255, .06);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.boss-select-field select option {
    color: #17212d;
    background: #ffffff;
    font-weight: 800;
}

.boss-select-field select option:checked {
    color: #ffffff;
    background: #2563d6;
}

.boss-mode-tabs,
.boss-style-tabs,
.boss-language-tabs {
    flex: 0 0 auto;
    display: inline-flex;
    overflow: hidden;
    min-width: 210px;
    min-height: 36px;
    padding: 2px;
    border: 1px solid rgba(232, 199, 126, .28);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
}

.boss-style-tabs {
    min-width: 174px;
}

.boss-language-tabs {
    min-width: 126px;
}

.boss-mode-tab,
.boss-style-tab,
.boss-language-tab {
    min-height: 32px;
    padding: 0 14px;
    border: 0;
    border-radius: 0;
    color: #d7dee8;
    background: transparent;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.boss-mode-tab + .boss-mode-tab,
.boss-style-tab + .boss-style-tab,
.boss-language-tab + .boss-language-tab {
    border-left: 1px solid rgba(232, 199, 126, .22);
}

.boss-mode-tab.active,
.boss-style-tab.active,
.boss-language-tab.active {
    color: #10140f;
    background: #e8c77e;
}

.boss-controls button,
.boss-controls a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(232, 199, 126, .24);
    border-radius: 10px;
    color: #f8e7bb;
    background: rgba(255, 255, 255, .035);
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.boss-controls button:hover,
.boss-controls a:hover {
    transform: translateY(-1px);
    border-color: rgba(232, 199, 126, .5);
    background: rgba(232, 199, 126, .12);
}

.boss-controls button[type="submit"] {
    color: #08110d;
    border-color: transparent;
    background: linear-gradient(135deg, #e8c77e, #5ee1a1);
    box-shadow: 0 8px 18px rgba(94, 225, 161, .14);
}

.boss-controls .boss-theme-toggle,
.boss-controls .boss-fullscreen-toggle {
    color: #f8e7bb;
    background: rgba(255, 255, 255, .04);
}

.boss-controls .boss-mode-tab,
.boss-controls .boss-style-tab,
.boss-controls .boss-language-tab {
    flex: 1 0 68px;
    min-width: 68px;
    min-height: 30px;
    padding: 0 11px;
    border: 0;
    border-radius: 8px;
    color: #d7dee8;
    background: transparent;
    box-shadow: none;
    white-space: nowrap;
}

.boss-controls .boss-mode-tab:hover,
.boss-controls .boss-style-tab:hover,
.boss-controls .boss-language-tab:hover {
    transform: none;
    background: rgba(255, 255, 255, .08);
}

.boss-controls .boss-mode-tab.active,
.boss-controls .boss-style-tab.active,
.boss-controls .boss-language-tab.active {
    color: #10140f;
    background: #e8c77e;
}

.boss-status {
    justify-content: flex-end;
    flex-wrap: wrap;
    justify-self: end;
}

.boss-status span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 9px;
    border: 1px solid rgba(226, 232, 240, .16);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, .06);
    font-size: 12px;
    font-weight: 800;
}

.boss-live-dot::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 999px;
    background: #5ee1a1;
    box-shadow: 0 0 14px rgba(94, 225, 161, .85);
}

.boss-refreshing .boss-live-dot::before {
    animation: boss-pulse .8s ease-in-out infinite;
}

.boss-stage {
    width: min(1880px, calc(100% - 36px));
    margin: 18px auto 34px;
}

.boss-stage.is-entering {
    animation: boss-enter .42s ease-out both;
}

.boss-stage.is-leaving {
    opacity: .55;
    transform: translateY(4px);
    transition: opacity .12s ease, transform .12s ease;
}

.boss-screen.boss-fullscreen .boss-stage.is-entering,
.boss-screen.boss-fullscreen .boss-stage.is-leaving {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
}

.boss-hero-panel,
.boss-panel,
.boss-metrics div {
    position: relative;
    border: 1px solid rgba(226, 232, 240, .14);
    border-radius: 8px;
    background: rgba(17, 24, 39, .78);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

.boss-panel,
.boss-metrics div,
.boss-hero-panel {
    overflow: hidden;
}

.boss-panel::before,
.boss-metrics div::before,
.boss-hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, .1), transparent 32%, transparent 68%, rgba(94, 225, 161, .08));
    opacity: .18;
}

.boss-hero-panel {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    min-height: 150px;
    margin-bottom: 14px;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(25, 35, 30, .94), rgba(16, 20, 24, .92));
}

.boss-hero-panel h2 {
    margin-top: 8px;
    font-size: 40px;
    line-height: 1.15;
}

.boss-hero-panel p {
    margin: 10px 0 0;
    color: #9ca3af;
    font-size: 16px;
    font-weight: 800;
}

.boss-hero-number {
    text-align: right;
}

.boss-hero-number span,
.boss-metrics span,
.boss-metrics small {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 900;
}

.boss-hero-number strong {
    display: block;
    margin-top: 8px;
    color: #f8e7bb;
    font-size: clamp(44px, 3.4vw, 56px);
    line-height: 1.05;
}

.boss-screen .boss-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.boss-screen .boss-metrics div {
    min-height: 130px;
    padding: 18px;
    background: rgba(15, 23, 42, .72);
}

.boss-screen .boss-metrics strong {
    margin: 12px 0 8px;
    color: #ffffff;
    font-size: clamp(32px, 2.35vw, 42px);
}

.boss-analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.boss-rank-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.boss-side-stack {
    display: grid;
    gap: 14px;
}

.boss-panel {
    padding: 18px;
    isolation: isolate;
}

.boss-panel-large {
    min-height: 360px;
}

.boss-timeline-panel.boss-timeline-compact {
    min-height: 0;
}

.boss-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.boss-panel-head span {
    display: none;
}

.boss-panel-head h3 {
    margin-top: 0;
    font-size: 24px;
}

.boss-panel-head strong {
    color: #f8e7bb;
    font-size: 24px;
}

.boss-timeline-head {
    justify-content: flex-start;
}

.boss-timeline-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: baseline;
}

.boss-timeline-heading h3 {
    margin: 0;
}

.boss-timeline-heading strong {
    white-space: nowrap;
}

.boss-gantt {
    display: grid;
    gap: 8px;
}

.boss-timeline-panel .boss-gantt {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
}

.boss-gantt-row {
    display: grid;
    grid-template-columns: 48px minmax(110px, 1fr) 116px 46px;
    gap: 10px;
    align-items: center;
    min-height: 24px;
}

.boss-gantt-row span,
.boss-gantt-row em,
.boss-branch-row span {
    color: #9ca3af;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.boss-gantt-row div,
.boss-branch-track {
    min-width: 0;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.boss-gantt-row i,
.boss-branch-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d7a84a, #5ee1a1);
    background-size: 180% 100%;
    animation: boss-bar-flow 3.8s ease-in-out infinite;
}

.boss-gantt-row strong,
.boss-branch-row em {
    color: #f8fafc;
    font-size: 15px;
    font-style: normal;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.boss-column-chart {
    display: grid;
    grid-template-columns: repeat(var(--bar-count, 12), minmax(0, 1fr));
    gap: clamp(3px, .55vw, 10px);
    align-items: stretch;
    min-height: 280px;
    padding: 8px 2px 0;
    overflow: hidden;
}

.boss-column-item {
    display: grid;
    grid-template-rows: 34px minmax(140px, 1fr) 18px 16px;
    gap: 5px;
    align-items: end;
    min-width: 0;
    text-align: center;
}

.boss-column-item strong {
    overflow: hidden;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.boss-column-bar {
    position: relative;
    display: flex;
    height: 100%;
    min-height: 120px;
    align-items: flex-end;
    overflow: hidden;
    border-radius: clamp(7px, .7vw, 12px) clamp(7px, .7vw, 12px) 5px 5px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035)),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 32px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.boss-column-bar i {
    display: block;
    width: 100%;
    height: calc(var(--bar-height, 1) * 1%);
    min-height: 4px;
    border-radius: inherit;
    background: linear-gradient(180deg, #5ee1a1, #d7a84a);
    background-size: 100% 180%;
    box-shadow: 0 -10px 24px rgba(94, 225, 161, .24);
    animation: boss-column-rise .55s ease-out both, boss-bar-flow 4.2s ease-in-out infinite;
}

.boss-screen.boss-fullscreen .boss-column-bar i {
    animation: boss-bar-flow 4.2s ease-in-out infinite;
}

.boss-column-item span,
.boss-column-item em {
    overflow: hidden;
    color: #9ca3af;
    font-size: clamp(11px, .72vw, 13px);
    font-style: normal;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.boss-column-dense .boss-column-item {
    grid-template-rows: minmax(140px, 1fr) 18px 16px;
    gap: 4px;
    justify-items: center;
}

.boss-column-dense .boss-column-item strong {
    display: none;
}

.boss-column-dense .boss-column-bar {
    width: clamp(12px, 1.25vw, 22px);
    justify-self: center;
    border-radius: 8px 8px 4px 4px;
}

.boss-branch-bars {
    display: grid;
    gap: 12px;
}

.boss-branch-row {
    display: grid;
    grid-template-columns: minmax(130px, .72fr) minmax(160px, 1fr) 118px;
    gap: 12px;
    align-items: center;
    min-height: 34px;
}

.boss-branch-row > div:first-child {
    min-width: 0;
}

.boss-branch-row strong {
    display: block;
    color: #ffffff;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.boss-branch-row span {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.boss-product-list {
    display: grid;
    gap: 10px;
}

.boss-product-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 132px;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(226, 232, 240, .1);
    border-radius: 8px;
    background: rgba(2, 6, 12, .22);
}

.boss-compact-rank-row {
    grid-template-columns: 38px minmax(0, 1fr) 118px;
}

.boss-rank-no {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #10140f;
    background: #e8c77e;
    font-weight: 900;
}

.boss-product-main {
    min-width: 0;
}

.boss-product-main strong {
    display: block;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.boss-compact-rank-row .boss-product-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.boss-product-main span {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.boss-product-track {
    height: 8px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.boss-product-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d7a84a, #5ee1a1);
    background-size: 180% 100%;
    animation: boss-bar-flow 3.8s ease-in-out infinite;
}

.boss-product-row em {
    color: #f8fafc;
    font-size: 15px;
    font-style: normal;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.boss-screen .boss-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.boss-panel-wide {
    grid-column: 1 / -1;
}

.boss-screen .boss-table-wrap {
    max-height: 420px;
    overflow-x: hidden;
    border-color: rgba(226, 232, 240, .12);
    background: rgba(255, 255, 255, .03);
}

.boss-data-table th {
    color: #f8e7bb;
    background: rgba(255, 255, 255, .06);
    border-bottom-color: rgba(226, 232, 240, .12);
}

.boss-data-table td {
    color: #e5e7eb;
    border-bottom-color: rgba(226, 232, 240, .08);
}

.boss-data-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, .025);
}

.boss-data-table tbody tr:hover td {
    background: rgba(94, 225, 161, .08);
}

.boss-empty {
    margin: 0;
    color: #9ca3af;
}

.boss-loading-state {
    min-height: min(520px, calc(100vh - 180px));
    display: grid;
    place-items: center;
    border: 1px solid rgba(94, 225, 161, .18);
    border-radius: 8px;
    background: radial-gradient(circle at 50% 42%, rgba(94, 225, 161, .16), rgba(15, 23, 42, .82) 46%, rgba(2, 6, 23, .9));
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

.boss-loading-spinner {
    width: 72px;
    height: 72px;
    border: 6px solid rgba(226, 232, 240, .14);
    border-top-color: #6ee7a8;
    border-right-color: #f8e7bb;
    border-radius: 999px;
    animation: boss-spin .8s linear infinite;
    box-shadow: 0 0 30px rgba(94, 225, 161, .22);
}

@keyframes boss-sweep {
    0% {
        transform: translateX(0) skewX(-18deg);
    }
    100% {
        transform: translateX(420vw) skewX(-18deg);
    }
}

@keyframes boss-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes boss-bar-flow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes boss-column-rise {
    from {
        transform: scaleY(.08);
        opacity: .55;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes boss-pulse {
    0%, 100% {
        opacity: .45;
        transform: scale(.82);
    }
    50% {
        opacity: 1;
        transform: scale(1.12);
    }
}

@keyframes boss-spin {
    to {
        transform: rotate(360deg);
    }
}

.boss-screen table,
.boss-screen .portal-data-table,
.boss-screen .boss-data-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    color: #e5e7eb;
    background: transparent;
}

.boss-screen .boss-data-table th,
.boss-screen .boss-data-table td {
    white-space: normal;
    overflow-wrap: anywhere;
}

.boss-screen .boss-data-table th {
    color: #f8e7bb;
    background: rgba(255, 255, 255, .075);
    border-bottom-color: rgba(232, 199, 126, .18);
}

.boss-screen .boss-data-table td {
    color: #e8edf5;
    background: rgba(8, 13, 20, .36);
    border-bottom-color: rgba(226, 232, 240, .08);
}

.boss-screen .boss-data-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, .035);
}

.boss-screen .boss-data-table tbody tr:hover td {
    background: rgba(94, 225, 161, .1);
}

.boss-screen .boss-table-wrap {
    background: rgba(2, 6, 12, .35);
    scrollbar-color: rgba(232, 199, 126, .55) rgba(255, 255, 255, .08);
}

.boss-screen .boss-table-wrap::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.boss-screen .boss-table-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .08);
}

.boss-screen .boss-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(232, 199, 126, .55);
    border-radius: 999px;
}

.boss-screen.boss-fullscreen .boss-brand {
    display: none;
}

.boss-screen.boss-fullscreen .boss-fullscreen-logo {
    position: fixed;
    top: 24px;
    left: 22px;
    z-index: 80;
    display: block;
    width: clamp(142px, 10.8vw, 196px);
    height: clamp(38px, 3vw, 52px);
    object-fit: contain;
    border: 1px solid rgba(226, 232, 240, .2);
    border-radius: 4px;
    background: #082a52;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
    pointer-events: none;
}

.boss-gear-toggle {
    display: none;
}

.boss-screen.boss-fullscreen {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
    padding: 6px;
    background:
        radial-gradient(circle at 14% 8%, rgba(20, 184, 166, .24), transparent 30%),
        radial-gradient(circle at 82% 18%, rgba(232, 199, 126, .2), transparent 28%),
        linear-gradient(135deg, #050913 0%, #0a1723 48%, #08120e 100%);
}

.boss-screen.boss-fullscreen::before {
    opacity: .75;
    background:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 225, 161, .025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .94), rgba(0, 0, 0, .32));
}

.boss-screen.boss-fullscreen .boss-gear-toggle {
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 120;
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(232, 199, 126, .35);
    border-radius: 999px;
    color: #f8e7bb;
    background: rgba(8, 11, 16, .78);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.boss-screen.boss-fullscreen .boss-topbar {
    position: fixed;
    top: 10px;
    left: 50%;
    z-index: 110;
    width: min(1660px, calc(100% - 76px));
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 52px;
    padding: 7px 14px;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -130%);
    transition: opacity .18s ease, transform .18s ease;
}

.boss-screen.boss-fullscreen.boss-controls-open .boss-topbar {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.boss-screen.boss-fullscreen .boss-controls {
    justify-content: center;
    gap: 6px;
}

.boss-screen.boss-fullscreen .boss-center h1 {
    display: none;
}

.boss-screen.boss-fullscreen .boss-controls input,
.boss-screen.boss-fullscreen .boss-controls select,
.boss-screen.boss-fullscreen .boss-controls button,
.boss-screen.boss-fullscreen .boss-controls a {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.boss-screen.boss-fullscreen .boss-select-field {
    min-height: 34px;
    padding: 0 9px;
    gap: 5px;
}

.boss-screen.boss-fullscreen .boss-mode-tabs,
.boss-screen.boss-fullscreen .boss-style-tabs,
.boss-screen.boss-fullscreen .boss-language-tabs {
    min-height: 34px;
    min-width: 198px;
    padding: 2px;
}

.boss-screen.boss-fullscreen .boss-controls .boss-mode-tab,
.boss-screen.boss-fullscreen .boss-controls .boss-style-tab,
.boss-screen.boss-fullscreen .boss-controls .boss-language-tab {
    flex-basis: 64px;
    min-width: 64px;
    min-height: 28px;
}

.boss-screen.boss-fullscreen .boss-status {
    gap: 6px;
}

.boss-screen.boss-fullscreen .boss-status span {
    min-height: 24px;
    padding: 0 8px;
    font-size: 11px;
}

.boss-screen.boss-fullscreen .boss-stage {
    display: grid;
    width: min(1920px, 100%);
    height: calc(100vh - 12px);
    margin: 0 auto;
    overflow: hidden;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: 100px minmax(0, 1.04fr) minmax(0, 1.16fr);
    gap: 8px;
}

.boss-screen.boss-fullscreen .boss-hero-panel {
    display: none;
}

.boss-screen.boss-fullscreen .boss-screen .boss-metrics,
.boss-screen.boss-fullscreen .boss-metrics {
    grid-column: 1 / -1;
    grid-row: 1;
    gap: 8px;
    margin: 0;
    min-height: 0;
}

.boss-screen.boss-fullscreen .boss-metrics div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 0;
    padding: 12px 16px;
    border-color: rgba(94, 225, 161, .26);
    background:
        linear-gradient(135deg, rgba(8, 18, 32, .9), rgba(10, 30, 28, .76)),
        radial-gradient(circle at 90% 20%, rgba(232, 199, 126, .18), transparent 34%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.boss-screen.boss-fullscreen .boss-metrics div:first-child {
    padding-left: clamp(176px, 13.4vw, 230px);
}

.boss-screen.boss-fullscreen .boss-metrics div:first-child::before {
    display: none;
}

.boss-screen.boss-fullscreen .boss-screen .boss-metrics strong,
.boss-screen.boss-fullscreen .boss-metrics strong {
    margin: 5px 0 3px;
    color: #f8e7bb;
    font-size: 38px;
    line-height: 1.05;
    text-shadow: 0 0 18px rgba(232, 199, 126, .22);
}

.boss-screen.boss-fullscreen .boss-metrics span {
    font-size: 15px;
}

.boss-screen.boss-fullscreen .boss-metrics small {
    display: none;
}

.boss-screen.boss-fullscreen .boss-metrics .boss-period-range {
    display: block;
    margin-top: 2px;
    color: rgba(91, 113, 141, .98);
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.boss-screen.boss-fullscreen .boss-metrics div:nth-child(2),
.boss-screen.boss-fullscreen .boss-metrics div:nth-child(3) {
    align-items: center;
    padding-right: 16px;
    padding-left: 16px;
    text-align: center;
}

.boss-screen.boss-fullscreen .boss-metrics div:nth-child(2)::before,
.boss-screen.boss-fullscreen .boss-metrics div:nth-child(3)::before {
    display: none;
}

.boss-screen.boss-fullscreen.boss-style-beverage .boss-metrics div,
.boss-screen.boss-fullscreen.boss-style-summary .boss-metrics div,
.boss-screen.boss-fullscreen.boss-style-enterprise .boss-metrics div {
    justify-content: center;
}

.boss-screen.boss-fullscreen.boss-style-beverage .boss-metrics div:first-child,
.boss-screen.boss-fullscreen.boss-style-summary .boss-metrics div:first-child,
.boss-screen.boss-fullscreen.boss-style-enterprise .boss-metrics div:first-child {
    padding-left: clamp(176px, 13.4vw, 230px);
}

.boss-screen.boss-fullscreen.boss-style-beverage .boss-metrics div:first-child::before,
.boss-screen.boss-fullscreen.boss-style-summary .boss-metrics div:first-child::before,
.boss-screen.boss-fullscreen.boss-style-enterprise .boss-metrics div:first-child::before {
    display: none;
}

.boss-screen.boss-fullscreen.boss-style-enterprise .boss-fullscreen-logo {
    display: none;
}

.boss-screen.boss-fullscreen.boss-style-enterprise .boss-metrics div:first-child {
    padding-left: 16px;
}

.boss-screen.boss-fullscreen.boss-style-enterprise .boss-metrics div:first-child::before {
    display: block;
}

.boss-screen.boss-fullscreen .boss-panel {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding: 12px 14px;
    border-color: rgba(94, 225, 161, .2);
    background:
        linear-gradient(145deg, rgba(8, 18, 32, .9), rgba(8, 13, 20, .72)),
        radial-gradient(circle at 100% 0%, rgba(94, 225, 161, .12), transparent 34%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.boss-screen.boss-fullscreen .boss-panel::after,
.boss-screen.boss-fullscreen .boss-metrics div::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(232, 199, 126, .32), transparent 18%, transparent 82%, rgba(94, 225, 161, .22));
    opacity: .18;
}

.boss-screen.boss-fullscreen .boss-panel-large {
    min-height: 0;
}

.boss-screen.boss-fullscreen .boss-timeline-panel.boss-timeline-compact {
    min-height: 0;
}

.boss-screen.boss-fullscreen .boss-analytics-grid {
    grid-column: 1 / 8;
    grid-row: 2;
    min-height: 0;
    margin: 0;
}

.boss-screen.boss-fullscreen .boss-rank-grid {
    grid-column: 8 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-height: 0;
    margin: 0;
}

.boss-screen.boss-fullscreen .boss-screen .boss-grid,
.boss-screen.boss-fullscreen .boss-grid {
    grid-column: 1 / -1;
    grid-row: 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-height: 0;
    margin: 0;
}

.boss-screen.boss-fullscreen .boss-panel-wide {
    grid-column: auto;
}

.boss-screen.boss-fullscreen .boss-panel-head {
    flex: 0 0 auto;
    margin-bottom: 9px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(94, 225, 161, .14);
}

.boss-screen.boss-fullscreen .boss-panel-head h3 {
    color: #ffffff;
    font-size: 24px;
    text-shadow: 0 0 16px rgba(94, 225, 161, .16);
}

.boss-screen.boss-fullscreen .boss-panel-head strong {
    color: #f8e7bb;
    font-size: 24px;
}

.boss-screen.boss-fullscreen .boss-gantt,
.boss-screen.boss-fullscreen .boss-column-chart,
.boss-screen.boss-fullscreen .boss-branch-bars,
.boss-screen.boss-fullscreen .boss-product-list,
.boss-screen.boss-fullscreen .boss-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.boss-screen.boss-fullscreen .boss-timeline-panel .boss-gantt {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: 8px 18px;
    align-content: stretch;
}

.boss-screen.boss-fullscreen .boss-column-chart {
    grid-template-columns: repeat(var(--bar-count, 12), minmax(0, 1fr));
    gap: 7px;
    align-items: stretch;
    padding: 2px 0 0;
    overflow: hidden;
}

.boss-screen.boss-fullscreen .boss-column-chart.boss-column-dense {
    gap: clamp(2px, .32vw, 5px);
}

.boss-screen.boss-fullscreen .boss-column-item {
    grid-template-rows: 28px minmax(0, 1fr) 15px 14px;
    gap: 4px;
}

.boss-screen.boss-fullscreen .boss-column-dense .boss-column-item {
    grid-template-rows: minmax(0, 1fr) 15px 14px;
}

.boss-screen.boss-fullscreen .boss-column-dense .boss-column-item span,
.boss-screen.boss-fullscreen .boss-column-dense .boss-column-item em {
    overflow: visible;
    font-size: 11px;
    line-height: 1.1;
    text-overflow: clip;
    font-variant-numeric: tabular-nums;
}

.boss-screen.boss-fullscreen .boss-column-item strong {
    font-size: 13px;
}

.boss-screen.boss-fullscreen .boss-column-bar {
    min-height: 0;
    border-radius: 9px 9px 4px 4px;
}

.boss-screen.boss-fullscreen .boss-column-chart.boss-column-dense .boss-column-bar {
    width: clamp(10px, .95vw, 18px);
    justify-self: center;
    border-radius: 7px 7px 4px 4px;
}

.boss-screen.boss-fullscreen .boss-column-item span,
.boss-screen.boss-fullscreen .boss-column-item em {
    font-size: 12px;
}

.boss-screen.boss-fullscreen .boss-gantt-row {
    grid-template-columns: 42px minmax(64px, 1fr) 96px 40px;
    gap: 7px;
    min-height: 0;
    align-content: center;
    padding: 6px 8px;
    border: 1px solid rgba(226, 232, 240, .08);
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .035), rgba(94, 225, 161, .045));
}

.boss-screen.boss-fullscreen .boss-gantt-row:nth-child(n+11),
.boss-screen.boss-fullscreen .boss-branch-row:nth-child(n+6),
.boss-screen.boss-fullscreen .boss-product-row:nth-child(n+6),
.boss-screen.boss-fullscreen .boss-data-table tbody tr:nth-child(n+7) {
    display: none;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-branch-row:nth-child(n+4) {
    display: none;
}

.boss-screen.boss-fullscreen .boss-gantt-row span,
.boss-screen.boss-fullscreen .boss-gantt-row em,
.boss-screen.boss-fullscreen .boss-branch-row span {
    font-size: 13px;
}

.boss-screen.boss-fullscreen .boss-gantt-row div,
.boss-screen.boss-fullscreen .boss-branch-track {
    height: 10px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.boss-screen.boss-fullscreen .boss-gantt-row strong,
.boss-screen.boss-fullscreen .boss-branch-row em {
    font-size: 15px;
}

.boss-screen.boss-fullscreen .boss-branch-bars {
    gap: 7px;
}

.boss-screen.boss-fullscreen .boss-branch-row {
    grid-template-columns: minmax(76px, .72fr) minmax(46px, 1fr) 96px;
    gap: 7px;
    min-height: 32px;
}

.boss-screen.boss-fullscreen .boss-branch-row strong {
    font-size: 16px;
}

.boss-screen.boss-fullscreen .boss-rank-grid .boss-branch-row,
.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-operations .boss-branch-row {
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-rows: auto 10px;
    gap: 4px 8px;
    min-height: 44px;
}

.boss-screen.boss-fullscreen .boss-rank-grid .boss-branch-row > div:first-child,
.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-operations .boss-branch-row > div:first-child {
    grid-column: 1;
    grid-row: 1;
}

.boss-screen.boss-fullscreen .boss-rank-grid .boss-branch-row strong,
.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-operations .boss-branch-row strong {
    overflow: visible;
    line-height: 1.16;
    text-overflow: clip;
    white-space: normal;
}

.boss-screen.boss-fullscreen .boss-rank-grid .boss-branch-track,
.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-operations .boss-branch-track {
    grid-column: 1 / -1;
    grid-row: 2;
}

.boss-screen.boss-fullscreen .boss-rank-grid .boss-branch-row em,
.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-operations .boss-branch-row em {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
}

.boss-screen.boss-fullscreen .boss-product-list {
    gap: 6px;
}

.boss-screen.boss-fullscreen .boss-product-row {
    grid-template-columns: 28px minmax(0, 1fr) 104px;
    gap: 7px;
    min-height: 0;
    padding: 7px 9px;
    border-color: rgba(226, 232, 240, .08);
    background: rgba(255, 255, 255, .035);
}

.boss-screen.boss-fullscreen .boss-rank-no {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 13px;
}

.boss-screen.boss-fullscreen .boss-product-main strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.boss-screen.boss-fullscreen .boss-product-main span {
    margin-top: 2px;
    font-size: 12px;
}

.boss-screen.boss-fullscreen .boss-product-track {
    height: 5px;
    margin-top: 4px;
}

.boss-screen.boss-fullscreen .boss-product-row em {
    font-size: 14px;
}

.boss-screen.boss-fullscreen .boss-table-wrap {
    max-height: none;
    border-color: rgba(94, 225, 161, .14);
    background: rgba(2, 6, 12, .22);
}

.boss-screen.boss-fullscreen .boss-data-table th,
.boss-screen.boss-fullscreen .boss-data-table td {
    padding: 4px 6px;
    font-size: 13px;
    line-height: 1.2;
}

.boss-screen.boss-theme-light {
    color: #102033;
    background: linear-gradient(135deg, #eef4fb 0%, #f8fafc 46%, #edfdf5 100%);
}

.boss-screen.boss-theme-light::before {
    background:
        repeating-linear-gradient(0deg, rgba(15, 23, 42, .05) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(90deg, rgba(16, 185, 129, .05) 0 1px, transparent 1px 42px);
}

.boss-screen.boss-theme-light::after {
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, .16), transparent);
}

.boss-screen.boss-theme-light .boss-topbar {
    background: rgba(255, 255, 255, .9);
    border-bottom-color: rgba(15, 23, 42, .1);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.boss-screen.boss-theme-light .boss-logo {
    color: #0f172a;
    background: #fff7dc;
    border-color: rgba(180, 126, 16, .35);
}

.boss-screen.boss-theme-light.boss-fullscreen .boss-gear-toggle {
    color: #0f766e;
    background: rgba(255, 255, 255, .86);
    border-color: rgba(15, 23, 42, .14);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}

.boss-screen.boss-theme-light.boss-fullscreen {
    background:
        radial-gradient(circle at 14% 8%, rgba(20, 184, 166, .18), transparent 30%),
        radial-gradient(circle at 86% 16%, rgba(14, 165, 233, .16), transparent 28%),
        linear-gradient(135deg, #eef6ff 0%, #f8fafc 48%, #ecfdf5 100%);
}

.boss-screen.boss-theme-light.boss-fullscreen .boss-metrics div,
.boss-screen.boss-theme-light.boss-fullscreen .boss-panel {
    border-color: rgba(15, 118, 110, .18);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(236, 253, 245, .62)),
        radial-gradient(circle at 100% 0%, rgba(14, 165, 233, .12), transparent 34%);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .12), inset 0 1px 0 rgba(255, 255, 255, .72);
}

.boss-screen.boss-theme-light.boss-fullscreen .boss-screen .boss-metrics strong,
.boss-screen.boss-theme-light.boss-fullscreen .boss-metrics strong {
    color: #0f172a;
    text-shadow: none;
}

.boss-screen.boss-theme-light.boss-fullscreen .boss-panel-head {
    border-bottom-color: rgba(15, 118, 110, .14);
}

.boss-screen.boss-theme-light.boss-fullscreen .boss-gantt-row,
.boss-screen.boss-theme-light.boss-fullscreen .boss-product-row {
    background: rgba(255, 255, 255, .56);
    border-color: rgba(15, 23, 42, .08);
}

.boss-screen.boss-theme-light .boss-kicker,
.boss-screen.boss-theme-light .boss-panel-head span {
    color: #a16207;
}

.boss-screen.boss-theme-light .boss-center h1,
.boss-screen.boss-theme-light .boss-hero-panel h2,
.boss-screen.boss-theme-light .boss-panel-head h3,
.boss-screen.boss-theme-light .boss-branch-row strong,
.boss-screen.boss-theme-light .boss-product-main strong {
    color: #0f172a;
}

.boss-screen.boss-theme-light .boss-controls input {
    color: #0f172a;
    background: #ffffff;
    border-color: rgba(15, 23, 42, .18);
}

.boss-screen.boss-theme-light .boss-select-field,
.boss-screen.boss-theme-light .boss-select-field select {
    color: #0f172a;
    background: #ffffff;
    border-color: rgba(15, 23, 42, .18);
}

.boss-screen.boss-theme-light .boss-select-field span {
    color: #64748b;
}

.boss-screen.boss-theme-light .boss-controls {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.boss-screen.boss-theme-light .boss-mode-tabs,
.boss-screen.boss-theme-light .boss-style-tabs,
.boss-screen.boss-theme-light .boss-language-tabs,
.boss-screen.boss-theme-light .boss-select-field,
.boss-screen.boss-theme-light .boss-controls button,
.boss-screen.boss-theme-light .boss-controls a {
    border-color: rgba(161, 98, 7, .32);
}

.boss-screen.boss-theme-light .boss-controls .boss-mode-tab,
.boss-screen.boss-theme-light .boss-controls .boss-style-tab,
.boss-screen.boss-theme-light .boss-controls .boss-language-tab {
    color: #334155;
    border-color: transparent;
    background: transparent;
}

.boss-screen.boss-theme-light .boss-controls .boss-mode-tab.active,
.boss-screen.boss-theme-light .boss-controls .boss-style-tab.active,
.boss-screen.boss-theme-light .boss-controls .boss-language-tab.active,
.boss-screen.boss-theme-light .boss-controls button[type="submit"] {
    color: #ffffff;
    background: #0f766e;
}

.boss-screen.boss-theme-light .boss-controls a,
.boss-screen.boss-theme-light .boss-controls .boss-theme-toggle,
.boss-screen.boss-theme-light .boss-controls .boss-fullscreen-toggle {
    color: #0f766e;
    background: #ffffff;
}

.boss-screen.boss-theme-light .boss-status span {
    color: #334155;
    background: rgba(255, 255, 255, .82);
    border-color: rgba(15, 23, 42, .12);
}

.boss-screen.boss-theme-light .boss-hero-panel,
.boss-screen.boss-theme-light .boss-panel,
.boss-screen.boss-theme-light .boss-metrics div {
    background: rgba(255, 255, 255, .82);
    border-color: rgba(15, 23, 42, .1);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .1);
}

.boss-screen.boss-theme-light .boss-hero-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(235, 253, 246, .92));
}

.boss-screen.boss-theme-light .boss-hero-panel p,
.boss-screen.boss-theme-light .boss-hero-number span,
.boss-screen.boss-theme-light .boss-metrics span,
.boss-screen.boss-theme-light .boss-metrics small,
.boss-screen.boss-theme-light .boss-gantt-row span,
.boss-screen.boss-theme-light .boss-gantt-row em,
.boss-screen.boss-theme-light .boss-column-item span,
.boss-screen.boss-theme-light .boss-column-item em,
.boss-screen.boss-theme-light .boss-branch-row span,
.boss-screen.boss-theme-light .boss-product-main span {
    color: #64748b;
}

.boss-screen.boss-theme-light .boss-hero-number strong,
.boss-screen.boss-theme-light .boss-screen .boss-metrics strong,
.boss-screen.boss-theme-light .boss-metrics strong,
.boss-screen.boss-theme-light .boss-panel-head strong,
.boss-screen.boss-theme-light .boss-gantt-row strong,
.boss-screen.boss-theme-light .boss-column-item strong,
.boss-screen.boss-theme-light .boss-branch-row em,
.boss-screen.boss-theme-light .boss-product-row em {
    color: #0f172a;
}

.boss-screen.boss-theme-light .boss-gantt-row div,
.boss-screen.boss-theme-light .boss-column-bar,
.boss-screen.boss-theme-light .boss-branch-track,
.boss-screen.boss-theme-light .boss-product-track {
    background: rgba(15, 23, 42, .09);
}

.boss-screen.boss-theme-light .boss-product-row {
    background: rgba(255, 255, 255, .64);
    border-color: rgba(15, 23, 42, .1);
}

.boss-screen.boss-theme-light .boss-table-wrap {
    background: rgba(255, 255, 255, .72);
    border-color: rgba(15, 23, 42, .12);
}

.boss-screen.boss-theme-light table,
.boss-screen.boss-theme-light .portal-data-table,
.boss-screen.boss-theme-light .boss-data-table {
    color: #334155;
}

.boss-screen.boss-theme-light .boss-data-table th {
    color: #92400e;
    background: rgba(250, 204, 21, .12);
    border-bottom-color: rgba(161, 98, 7, .18);
}

.boss-screen.boss-theme-light .boss-data-table td,
.boss-screen.boss-theme-light .boss-data-table tbody tr:nth-child(even) td {
    color: #334155;
    background: rgba(255, 255, 255, .66);
    border-bottom-color: rgba(15, 23, 42, .08);
}

.boss-screen.boss-theme-light .boss-data-table tbody tr:hover td {
    background: rgba(20, 184, 166, .1);
}

.portal-pagination {
    justify-content: flex-end;
    padding: 14px 18px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
}

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

.stats div {
    padding: 14px;
    background: var(--surface-soft);
    border-radius: 8px;
}

.stats span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.stats strong {
    display: block;
    margin-top: 6px;
    overflow-wrap: anywhere;
}

.stats small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.storage-note {
    margin-top: 12px;
}

.badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-size: 12px;
    font-weight: 800;
}

.badge.success {
    background: #dff4e8;
    color: #12653b;
}

.badge.failed {
    background: #fde2df;
    color: #9b241b;
}

.badge.running {
    background: #fff4cc;
    color: var(--warning);
}

.badge.paused {
    background: #e7edf5;
    color: #36506f;
}

.badge.skipped {
    background: #eef2f7;
    color: #596579;
}

.hint {
    padding: 12px;
    color: var(--muted);
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.hint pre,
.mono,
code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.hint pre {
    margin: 8px 0 0;
    white-space: pre-wrap;
}

@media (max-width: 860px) {
    .topbar {
        position: static;
        flex-wrap: wrap;
        padding: 14px 16px;
    }

    .nav,
    .userbar {
        width: 100%;
        flex-wrap: wrap;
    }

    .page {
        width: min(100% - 20px, 1240px);
        margin-top: 18px;
    }

    .form-grid,
    .filters,
    .stats,
    .portal-settings,
    .portal-settings-form,
    .portal-token-panel,
    .token-management-grid,
    .portal-link-grid,
    .portal-filters {
        grid-template-columns: 1fr;
    }

    .page-heading {
        display: grid;
    }

    .public-link-cell {
        min-width: 320px;
    }

    .link-field {
        grid-template-columns: 1fr;
    }

    .portal-header {
        display: grid;
        padding: 16px;
    }

    .portal-meta {
        justify-content: flex-start;
    }

    .portal-main {
        width: min(100% - 20px, 1480px);
        margin-top: 14px;
    }

    .portal-table-head {
        display: grid;
    }
}

@media (max-width: 980px) {
    .portal-shell-header {
        position: static;
        display: grid;
        padding: 14px 16px;
    }

    .portal-header-actions {
        justify-content: flex-start;
    }

    .portal-workspace {
        width: min(100% - 20px, 1520px);
        margin-top: 14px;
    }

    .portal-overview,
    .portal-filters,
    .report-index-hero,
    .boss-grid {
        grid-template-columns: 1fr;
    }

    .portal-metrics,
    .boss-metrics {
        grid-template-columns: 1fr;
    }

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

    .boss-topbar,
    .boss-analytics-grid,
    .boss-rank-grid,
    .boss-screen .boss-grid {
        grid-template-columns: 1fr;
    }

    .boss-brand,
    .boss-center,
    .boss-controls,
    .boss-status {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
    }

    .boss-timeline-panel .boss-gantt {
        grid-template-columns: 1fr;
    }

    .boss-controls,
    .boss-status {
        justify-content: flex-start;
    }

    .boss-center {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .boss-screen .boss-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-metrics div {
        min-height: 92px;
    }

    .portal-card-head,
    .portal-table-head {
        display: grid;
    }

    .portal-export-actions,
    .portal-actions,
    .portal-pagination {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .report-index-grid {
        grid-template-columns: 1fr;
    }

    .boss-stage {
        width: min(100% - 20px, 1880px);
    }

    .boss-hero-panel {
        display: grid;
    }

    .boss-hero-number {
        text-align: left;
    }

    .boss-screen .boss-metrics,
    .boss-gantt-row,
    .boss-branch-row {
        grid-template-columns: 1fr;
    }

    .boss-gantt-row strong,
    .boss-branch-row em {
        text-align: left;
    }
}

@media (max-width: 700px) {
    body {
        font-size: 16px;
    }

    .topbar {
        gap: 10px;
        padding: calc(12px + env(safe-area-inset-top)) 12px 12px;
    }

    .brand {
        width: 100%;
        white-space: normal;
    }

    .nav {
        gap: 6px;
    }

    .nav a {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
        min-height: 40px;
        padding: 0 8px;
        text-align: center;
    }

    .userbar {
        align-items: flex-start;
        justify-content: space-between;
    }

    .page {
        width: min(100% - 16px, 1240px);
        margin: 12px auto 28px;
    }

    .page-heading {
        gap: 8px;
        margin-bottom: 12px;
    }

    .page-heading h1,
    .panel h1 {
        font-size: 23px;
    }

    h2 {
        font-size: 17px;
    }

    .panel {
        margin-bottom: 12px;
        padding: 14px;
    }

    input,
    select,
    textarea {
        min-height: 44px;
        font-size: 16px;
    }

    .button,
    .report-btn {
        width: 100%;
        min-height: 42px;
        padding: 0 12px;
    }

    .button.small {
        min-height: 38px;
        font-size: 14px;
    }

    .actions,
    .row-actions,
    .pagination,
    .table-meta,
    .section-title-row,
    .token-action-row,
    .token-inline-form,
    .portal-header-actions,
    .portal-export-actions,
    .portal-actions,
    .portal-table-tools,
    .portal-pagination,
    .report-toolbar-actions,
    .report-pager {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .checkbox {
        align-items: flex-start;
    }

    .checkbox input {
        margin-top: 3px;
    }

    .stats,
    .report-grid {
        grid-template-columns: 1fr;
    }

    .report-name-cell,
    .public-link-cell {
        min-width: 0;
    }

    .token-inline-form .token-input {
        flex-basis: auto;
    }

    .table-wrap,
    .portal-table-wrap,
    .report-table-scroll {
        max-height: none;
        overflow-x: hidden;
        border: 0;
        border-radius: 0;
    }

    .table-wrap table,
    .portal-data-table,
    .report-table {
        display: block;
        min-width: 0;
        width: 100%;
        background: transparent;
    }

    .table-wrap thead,
    .portal-data-table thead,
    .report-table thead {
        display: none;
    }

    .table-wrap tbody,
    .table-wrap tr,
    .table-wrap td,
    .portal-data-table tbody,
    .portal-data-table tr,
    .portal-data-table td,
    .report-table tbody,
    .report-table tr,
    .report-table td {
        display: block;
        width: 100%;
    }

    .table-wrap tr,
    .portal-data-table tr,
    .report-table tr {
        margin-bottom: 10px;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    .table-wrap td,
    .portal-data-table td,
    .report-table td {
        min-height: 38px;
        padding: 9px 10px;
        white-space: normal;
        overflow-wrap: anywhere;
        border-bottom: 1px solid #edf2f7;
    }

    .table-wrap td:last-child,
    .portal-data-table td:last-child,
    .report-table td:last-child {
        border-bottom: 0;
    }

    .portal-shell-header {
        padding: calc(12px + env(safe-area-inset-top)) 12px 12px;
    }

    .portal-brand-block {
        align-items: flex-start;
    }

    .portal-workspace,
    .portal-main,
    .report-shell {
        width: min(100% - 16px, 1520px);
        margin-top: 12px;
        margin-bottom: 28px;
    }

    .portal-title-card,
    .portal-card,
    .portal-summary,
    .portal-panel,
    .report-toolbar,
    .report-table-panel {
        padding: 14px;
    }

    .portal-title-card h2,
    .report-hero h1 {
        font-size: 22px;
    }

    .report-index-hero,
    .report-filter-form,
    .portal-filters {
        grid-template-columns: 1fr;
    }

    .report-status,
    .report-table-summary {
        justify-content: flex-start;
    }

    .report-table-summary {
        padding: 10px 0;
    }

    .report-table-panel {
        overflow: visible;
    }

    .boss-screen:not(.boss-fullscreen) .boss-topbar {
        position: static;
        grid-template-columns: 1fr;
        padding: calc(12px + env(safe-area-inset-top)) 12px 12px;
    }

    .boss-screen:not(.boss-fullscreen) .boss-stage {
        width: min(100% - 16px, 1880px);
        margin-top: 12px;
    }

    .boss-controls,
    .boss-status,
    .boss-mode-tabs,
    .boss-style-tabs,
    .boss-language-tabs,
    .boss-select-field {
        width: 100%;
        min-width: 0;
    }

    .boss-controls input,
    .boss-controls select,
    .boss-controls button,
    .boss-controls a {
        flex: 1 1 100%;
        min-width: 0;
    }

    .boss-mode-tabs,
    .boss-style-tabs,
    .boss-language-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .boss-style-tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .boss-language-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .boss-screen .boss-metrics,
    .boss-screen .boss-grid,
    .boss-analytics-grid,
    .boss-rank-grid,
    .boss-screen.boss-style-enterprise .boss-template-enterprise,
    .boss-screen.boss-style-enterprise .boss-enterprise-hero,
    .boss-screen.boss-style-enterprise .boss-enterprise-kpis,
    .boss-screen.boss-style-enterprise .boss-enterprise-command,
    .boss-screen.boss-style-enterprise .boss-enterprise-operations,
    .boss-screen.boss-style-enterprise .boss-enterprise-ranking {
        grid-template-columns: 1fr;
    }

    .boss-branch-row,
    .boss-product-row,
    .boss-compact-rank-row {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .boss-branch-row {
        grid-template-columns: 1fr;
    }

    .boss-product-row em,
    .boss-branch-row em {
        grid-column: 1 / -1;
        text-align: left;
    }

    .boss-screen.boss-fullscreen {
        height: auto;
        min-height: 100svh;
        overflow-y: auto;
        padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    }

    .boss-screen.boss-fullscreen .boss-stage,
    .boss-screen.boss-fullscreen.boss-style-summary .boss-stage,
    .boss-screen.boss-fullscreen.boss-style-beverage .boss-stage,
    .boss-screen.boss-fullscreen.boss-style-enterprise .boss-stage {
        display: grid;
        width: 100%;
        height: auto;
        min-height: calc(100svh - 16px);
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 8px;
    }

    .boss-screen.boss-fullscreen .boss-metrics,
    .boss-screen.boss-fullscreen .boss-analytics-grid,
    .boss-screen.boss-fullscreen .boss-rank-grid,
    .boss-screen.boss-fullscreen .boss-grid,
    .boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-hero,
    .boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-kpis,
    .boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-command,
    .boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-operations,
    .boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-ranking {
        grid-column: 1;
        grid-row: auto;
        grid-template-columns: 1fr;
    }

    .boss-screen.boss-fullscreen .boss-metrics strong,
    .boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-total strong {
        font-size: 30px;
    }

    .boss-screen.boss-fullscreen .boss-panel-head h3,
    .boss-screen.boss-fullscreen .boss-panel-head strong {
        font-size: 20px;
    }

    .boss-screen.boss-fullscreen .boss-gantt-row:nth-child(n+11),
    .boss-screen.boss-fullscreen .boss-branch-row:nth-child(n+4),
    .boss-screen.boss-fullscreen .boss-product-row:nth-child(n+6) {
        display: grid;
    }

    .boss-screen.boss-fullscreen .boss-data-table tbody tr:nth-child(n+7) {
        display: block;
    }
}

.report-public {
    min-height: 100vh;
    color: #1f2937;
    background: #f7f8fb;
    font-size: 14px;
}

.report-shell {
    width: min(1500px, calc(100% - 32px));
    margin: 22px auto 40px;
}

.report-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.report-label {
    margin-bottom: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.report-hero h1 {
    margin: 0;
    color: #111827;
    font-size: 26px;
    line-height: 1.25;
}

.report-hero p {
    max-width: 840px;
    margin: 8px 0 0;
    color: #667085;
    line-height: 1.6;
}

.report-status {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.report-status span,
.report-table-summary span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #d9e2ec;
    border-radius: 999px;
    color: #526174;
    background: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.report-toolbar,
.report-table-panel {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.report-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    margin-bottom: 14px;
    padding: 14px;
}

.report-filter-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.report-filter-form label {
    gap: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.report-filter-form input,
.report-filter-form select {
    min-height: 38px;
    border-color: #d6dee8;
    border-radius: 7px;
    background: #fbfcfe;
    font-size: 14px;
}

.report-toolbar-actions,
.report-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.report-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #d6dee8;
    border-radius: 7px;
    color: #334155;
    background: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.report-btn:hover {
    background: #f4f7fa;
}

.report-btn.primary {
    color: #ffffff;
    border-color: #2563eb;
    background: #2563eb;
}

.report-btn.primary:hover {
    background: #1d4ed8;
}

.report-table-panel {
    overflow: hidden;
}

.report-table-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 14px;
    border-bottom: 1px solid #e5ebf2;
}

.report-table-scroll {
    max-height: calc(100vh - 250px);
    overflow: auto;
}

.report-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    background: #ffffff;
}

.report-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px 12px;
    color: #5b6678;
    background: #f8fafc;
    border-bottom: 1px solid #dce4ee;
    font-size: 12px;
    font-weight: 900;
    text-transform: none;
    white-space: nowrap;
}

.report-table td {
    padding: 10px 12px;
    color: #202939;
    border-bottom: 1px solid #eef2f6;
    white-space: nowrap;
}

.report-table tbody tr:nth-child(even) td {
    background: #fcfdff;
}

.report-table tbody tr:hover td {
    background: #eff6ff;
}

.report-pager {
    justify-content: flex-end;
    padding: 12px 14px;
    border-top: 1px solid #e5ebf2;
}

@media (max-width: 900px) {
    .report-shell {
        width: min(100% - 20px, 1500px);
        margin-top: 14px;
    }

    .report-hero,
    .report-filter-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .report-status,
    .report-table-summary,
    .report-pager {
        justify-content: flex-start;
    }

    .report-toolbar {
        position: static;
    }
}

/* Boss screen style presets */
.boss-screen.boss-style-summary,
.boss-screen.boss-style-summary.boss-fullscreen {
    color: #2d2430;
    background:
        radial-gradient(circle at 8% 5%, rgba(255, 143, 106, .22), transparent 32%),
        radial-gradient(circle at 92% 4%, rgba(82, 145, 255, .18), transparent 28%),
        linear-gradient(135deg, #fff0f2 0%, #fff7ee 32%, #f6f2ff 66%, #edf7ff 100%);
}

.boss-screen.boss-style-summary::before {
    opacity: .55;
    background:
        linear-gradient(175deg, rgba(245, 124, 69, .18), transparent 18%, transparent 82%, rgba(82, 145, 255, .16)),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, .06) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(90deg, rgba(148, 163, 184, .04) 0 1px, transparent 1px 44px);
}

.boss-screen.boss-style-summary::after {
    background: linear-gradient(90deg, transparent, rgba(255, 143, 106, .18), rgba(82, 145, 255, .12), transparent);
}

.boss-screen.boss-style-summary .boss-topbar {
    background: rgba(255, 255, 255, .88);
    border-bottom-color: rgba(226, 133, 83, .18);
    box-shadow: 0 18px 45px rgba(93, 64, 98, .12);
}

.boss-screen.boss-style-summary .boss-logo {
    color: #9a4d11;
    background: #fff3cf;
    border-color: rgba(237, 137, 54, .34);
}

.boss-screen.boss-style-summary.boss-fullscreen .boss-gear-toggle {
    color: #9a4d11;
    background: rgba(255, 255, 255, .88);
    border-color: rgba(237, 137, 54, .28);
}

.boss-screen.boss-style-summary .boss-kicker,
.boss-screen.boss-style-summary .boss-panel-head span {
    color: #d46b32;
}

.boss-screen.boss-style-summary .boss-center h1,
.boss-screen.boss-style-summary .boss-hero-panel h2,
.boss-screen.boss-style-summary .boss-panel-head h3,
.boss-screen.boss-style-summary .boss-branch-row strong,
.boss-screen.boss-style-summary .boss-product-main strong {
    color: #251d2b;
}

.boss-screen.boss-style-summary .boss-hero-number strong {
    color: #251d2b;
    text-shadow: none;
}

.boss-screen.boss-style-summary .boss-hero-number span {
    color: #7a566d;
}

.boss-screen.boss-style-summary .boss-controls input,
.boss-screen.boss-style-summary .boss-select-field,
.boss-screen.boss-style-summary .boss-select-field select,
.boss-screen.boss-style-summary .boss-controls button,
.boss-screen.boss-style-summary .boss-controls a,
.boss-screen.boss-style-summary .boss-mode-tabs,
.boss-screen.boss-style-summary .boss-style-tabs,
.boss-screen.boss-style-summary .boss-language-tabs {
    color: #4b3a48;
    background: rgba(255, 255, 255, .82);
    border-color: rgba(220, 143, 82, .28);
}

.boss-screen.boss-style-summary .boss-select-field span {
    color: #7a566d;
}

.boss-screen.boss-style-summary .boss-controls .boss-mode-tab,
.boss-screen.boss-style-summary .boss-controls .boss-style-tab,
.boss-screen.boss-style-summary .boss-controls .boss-language-tab {
    color: #4b3a48;
    background: transparent;
}

.boss-screen.boss-style-summary .boss-controls .boss-mode-tab.active,
.boss-screen.boss-style-summary .boss-controls .boss-style-tab.active,
.boss-screen.boss-style-summary .boss-controls .boss-language-tab.active,
.boss-screen.boss-style-summary .boss-controls button[type="submit"] {
    color: #ffffff;
    background: linear-gradient(135deg, #ff8a3d, #f0c94d);
    box-shadow: 0 12px 24px rgba(255, 138, 61, .22);
}

.boss-screen.boss-style-summary .boss-controls .boss-theme-toggle,
.boss-screen.boss-style-summary .boss-controls .boss-fullscreen-toggle,
.boss-screen.boss-style-summary .boss-controls a {
    color: #9a4d11;
}

.boss-screen.boss-style-summary .boss-status span {
    color: #5b4a5d;
    background: rgba(255, 255, 255, .76);
    border-color: rgba(220, 143, 82, .2);
}

.boss-screen.boss-style-summary .boss-hero-panel,
.boss-screen.boss-style-summary .boss-panel,
.boss-screen.boss-style-summary .boss-metrics div,
.boss-screen.boss-style-summary.boss-fullscreen .boss-panel,
.boss-screen.boss-style-summary.boss-fullscreen .boss-metrics div {
    border-color: rgba(255, 255, 255, .68);
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 20px 54px rgba(102, 76, 112, .14), inset 0 1px 0 rgba(255, 255, 255, .85);
}

.boss-screen.boss-style-summary .boss-panel::before,
.boss-screen.boss-style-summary .boss-hero-panel::before {
    opacity: .24;
    background: linear-gradient(120deg, rgba(255, 126, 77, .18), transparent 35%, rgba(73, 182, 238, .14));
}

.boss-screen.boss-style-summary .boss-panel::after,
.boss-screen.boss-style-summary .boss-metrics div::after {
    opacity: .16;
    background: linear-gradient(90deg, rgba(255, 138, 61, .26), transparent 22%, transparent 76%, rgba(54, 204, 116, .2));
}

.boss-screen.boss-style-summary .boss-metrics div:nth-child(1),
.boss-screen.boss-style-summary.boss-fullscreen .boss-metrics div:nth-child(1) {
    background: linear-gradient(135deg, #ff813a 0%, #f4ca4e 100%);
}

.boss-screen.boss-style-summary .boss-metrics div:nth-child(2),
.boss-screen.boss-style-summary.boss-fullscreen .boss-metrics div:nth-child(2) {
    background: linear-gradient(135deg, #355deb 0%, #49b6ee 100%);
}

.boss-screen.boss-style-summary .boss-metrics div:nth-child(3),
.boss-screen.boss-style-summary.boss-fullscreen .boss-metrics div:nth-child(3) {
    background: linear-gradient(135deg, #2fb8d1 0%, #34cc74 100%);
}

.boss-screen.boss-style-summary .boss-metrics div::before {
    opacity: .28;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .28) 0 8px, transparent 8px 18px);
}

.boss-screen.boss-style-summary .boss-screen .boss-metrics strong,
.boss-screen.boss-style-summary .boss-metrics strong,
.boss-screen.boss-style-summary .boss-metrics span,
.boss-screen.boss-style-summary .boss-metrics small {
    color: #ffffff;
    text-shadow: 0 8px 22px rgba(52, 36, 27, .16);
}

.boss-screen.boss-style-summary .boss-panel-head {
    border-bottom-color: rgba(221, 139, 85, .2);
}

.boss-screen.boss-style-summary .boss-panel-head strong,
.boss-screen.boss-style-summary .boss-gantt-row strong,
.boss-screen.boss-style-summary .boss-column-item strong,
.boss-screen.boss-style-summary .boss-branch-row em,
.boss-screen.boss-style-summary .boss-product-row em {
    color: #251d2b;
}

.boss-screen.boss-style-summary .boss-gantt-row,
.boss-screen.boss-style-summary .boss-product-row {
    background: rgba(255, 255, 255, .76);
    border-color: rgba(221, 139, 85, .16);
}

.boss-screen.boss-style-summary .boss-gantt-row span,
.boss-screen.boss-style-summary .boss-gantt-row em,
.boss-screen.boss-style-summary .boss-column-item span,
.boss-screen.boss-style-summary .boss-column-item em,
.boss-screen.boss-style-summary .boss-branch-row span,
.boss-screen.boss-style-summary .boss-product-main span {
    color: #716177;
}

.boss-screen.boss-style-summary .boss-gantt-row div,
.boss-screen.boss-style-summary .boss-column-bar,
.boss-screen.boss-style-summary .boss-branch-track,
.boss-screen.boss-style-summary .boss-product-track {
    background: rgba(148, 163, 184, .18);
}

.boss-screen.boss-style-summary .boss-gantt-row i,
.boss-screen.boss-style-summary .boss-column-bar i,
.boss-screen.boss-style-summary .boss-branch-track i,
.boss-screen.boss-style-summary .boss-product-track i {
    background: linear-gradient(180deg, #ff7f50, #f0ad64);
}

.boss-screen.boss-style-summary .boss-gantt-row i,
.boss-screen.boss-style-summary .boss-branch-track i,
.boss-screen.boss-style-summary .boss-product-track i {
    background: linear-gradient(90deg, #f0ad64, #ff7f50);
}

.boss-screen.boss-style-summary .boss-rank-no {
    color: #5b3309;
    background: linear-gradient(135deg, #ffe08a, #ffad66);
}

.boss-screen.boss-style-summary .boss-table-wrap,
.boss-screen.boss-style-summary .boss-data-table td,
.boss-screen.boss-style-summary .boss-data-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, .68);
}

.boss-screen.boss-style-summary .boss-data-table th {
    color: #a84f17;
    background: rgba(255, 138, 61, .12);
}

.boss-screen.boss-style-beverage,
.boss-screen.boss-style-beverage.boss-fullscreen {
    color: #19314f;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .7), transparent 18%),
        linear-gradient(135deg, #e9f5ff 0%, #f7fbff 48%, #eaf2ff 100%);
}

.boss-screen.boss-style-beverage::before {
    opacity: .72;
    background:
        repeating-linear-gradient(0deg, rgba(66, 153, 225, .08) 0 1px, transparent 1px 42px),
        repeating-linear-gradient(90deg, rgba(66, 153, 225, .06) 0 1px, transparent 1px 42px);
}

.boss-screen.boss-style-beverage::after {
    background: linear-gradient(90deg, transparent, rgba(255, 125, 31, .12), rgba(52, 144, 220, .14), transparent);
}

.boss-screen.boss-style-beverage .boss-topbar {
    background: rgba(252, 254, 255, .9);
    border-bottom-color: rgba(85, 142, 205, .22);
    box-shadow: 0 16px 38px rgba(38, 84, 130, .13);
}

.boss-screen.boss-style-beverage .boss-logo {
    color: #ff7d1f;
    background: #ffe6cf;
    border-color: rgba(255, 125, 31, .28);
}

.boss-screen.boss-style-beverage.boss-fullscreen .boss-gear-toggle {
    color: #2374ab;
    background: rgba(255, 255, 255, .9);
    border-color: rgba(85, 142, 205, .22);
}

.boss-screen.boss-style-beverage .boss-kicker,
.boss-screen.boss-style-beverage .boss-panel-head span {
    color: #2b80c7;
}

.boss-screen.boss-style-beverage .boss-center h1,
.boss-screen.boss-style-beverage .boss-hero-panel h2,
.boss-screen.boss-style-beverage .boss-panel-head h3,
.boss-screen.boss-style-beverage .boss-branch-row strong,
.boss-screen.boss-style-beverage .boss-product-main strong {
    color: #10223a;
}

.boss-screen.boss-style-beverage .boss-hero-number strong {
    color: #07152a;
    text-shadow: none;
}

.boss-screen.boss-style-beverage .boss-hero-number span {
    color: #5b718d;
}

.boss-screen.boss-style-beverage .boss-controls input,
.boss-screen.boss-style-beverage .boss-select-field,
.boss-screen.boss-style-beverage .boss-select-field select,
.boss-screen.boss-style-beverage .boss-controls button,
.boss-screen.boss-style-beverage .boss-controls a,
.boss-screen.boss-style-beverage .boss-mode-tabs,
.boss-screen.boss-style-beverage .boss-style-tabs,
.boss-screen.boss-style-beverage .boss-language-tabs {
    color: #19314f;
    background: rgba(255, 255, 255, .9);
    border-color: rgba(85, 142, 205, .24);
}

.boss-screen.boss-style-beverage .boss-select-field span {
    color: #5b718d;
}

.boss-screen.boss-style-beverage .boss-controls .boss-mode-tab,
.boss-screen.boss-style-beverage .boss-controls .boss-style-tab,
.boss-screen.boss-style-beverage .boss-controls .boss-language-tab {
    color: #28466c;
    background: transparent;
}

.boss-screen.boss-style-beverage .boss-controls .boss-mode-tab.active,
.boss-screen.boss-style-beverage .boss-controls .boss-style-tab.active,
.boss-screen.boss-style-beverage .boss-controls .boss-language-tab.active,
.boss-screen.boss-style-beverage .boss-controls button[type="submit"] {
    color: #ffffff;
    background: linear-gradient(135deg, #ff8b25, #ff5f2d);
    box-shadow: 0 12px 24px rgba(255, 125, 31, .2);
}

.boss-screen.boss-style-beverage .boss-controls .boss-theme-toggle,
.boss-screen.boss-style-beverage .boss-controls .boss-fullscreen-toggle,
.boss-screen.boss-style-beverage .boss-controls a {
    color: #2374ab;
}

.boss-screen.boss-style-beverage .boss-status span {
    color: #28466c;
    background: rgba(255, 255, 255, .82);
    border-color: rgba(85, 142, 205, .18);
}

.boss-screen.boss-style-beverage .boss-hero-panel,
.boss-screen.boss-style-beverage .boss-panel,
.boss-screen.boss-style-beverage .boss-metrics div,
.boss-screen.boss-style-beverage.boss-fullscreen .boss-panel,
.boss-screen.boss-style-beverage.boss-fullscreen .boss-metrics div {
    border-color: rgba(139, 184, 229, .38);
    background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(239, 247, 255, .86));
    box-shadow: 0 16px 40px rgba(64, 116, 170, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.boss-screen.boss-style-beverage .boss-panel::before,
.boss-screen.boss-style-beverage .boss-hero-panel::before {
    opacity: .22;
    background: linear-gradient(120deg, rgba(72, 161, 232, .18), transparent 34%, rgba(255, 125, 31, .12));
}

.boss-screen.boss-style-beverage .boss-panel::after,
.boss-screen.boss-style-beverage .boss-metrics div::after {
    opacity: .14;
    background: linear-gradient(90deg, rgba(72, 161, 232, .2), transparent 22%, transparent 78%, rgba(255, 125, 31, .16));
}

.boss-screen.boss-style-beverage .boss-metrics div {
    padding-left: 92px;
}

.boss-screen.boss-style-beverage .boss-metrics div::before {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 22px;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    opacity: 1;
    transform: translateY(-50%);
    background:
        linear-gradient(135deg, rgba(255, 125, 31, .22), rgba(255, 125, 31, .08)),
        radial-gradient(circle at 52% 50%, rgba(255, 125, 31, .9) 0 7px, transparent 8px),
        linear-gradient(90deg, transparent 0 26px, rgba(255, 125, 31, .85) 26px 32px, transparent 32px);
}

.boss-screen.boss-style-beverage .boss-metrics div:nth-child(2)::before {
    background:
        linear-gradient(135deg, rgba(72, 161, 232, .22), rgba(72, 161, 232, .08)),
        linear-gradient(135deg, transparent 33%, rgba(72, 161, 232, .9) 34% 48%, transparent 49%),
        linear-gradient(90deg, rgba(72, 161, 232, .5) 0 8px, transparent 8px 14px, rgba(72, 161, 232, .72) 14px 24px, transparent 24px 30px, rgba(72, 161, 232, .95) 30px 44px, transparent 44px);
}

.boss-screen.boss-style-beverage .boss-metrics div:nth-child(3)::before {
    background:
        linear-gradient(135deg, rgba(57, 199, 111, .22), rgba(57, 199, 111, .08)),
        conic-gradient(from 30deg, #43d87f 0 25%, #48a1e8 0 58%, #ff8b25 0 100%);
}

.boss-screen.boss-style-beverage .boss-screen .boss-metrics strong,
.boss-screen.boss-style-beverage .boss-metrics strong,
.boss-screen.boss-style-beverage .boss-panel-head strong,
.boss-screen.boss-style-beverage .boss-gantt-row strong,
.boss-screen.boss-style-beverage .boss-column-item strong,
.boss-screen.boss-style-beverage .boss-branch-row em,
.boss-screen.boss-style-beverage .boss-product-row em {
    color: #07152a;
    text-shadow: none;
}

.boss-screen.boss-style-beverage .boss-metrics span,
.boss-screen.boss-style-beverage .boss-metrics small,
.boss-screen.boss-style-beverage .boss-gantt-row span,
.boss-screen.boss-style-beverage .boss-gantt-row em,
.boss-screen.boss-style-beverage .boss-column-item span,
.boss-screen.boss-style-beverage .boss-column-item em,
.boss-screen.boss-style-beverage .boss-branch-row span,
.boss-screen.boss-style-beverage .boss-product-main span {
    color: #5b718d;
}

.boss-screen.boss-style-beverage .boss-panel-head {
    border-bottom-color: rgba(85, 142, 205, .18);
}

.boss-screen.boss-style-beverage .boss-gantt-row,
.boss-screen.boss-style-beverage .boss-product-row {
    background: rgba(255, 255, 255, .78);
    border-color: rgba(139, 184, 229, .28);
}

.boss-screen.boss-style-beverage .boss-gantt-row div,
.boss-screen.boss-style-beverage .boss-column-bar,
.boss-screen.boss-style-beverage .boss-branch-track,
.boss-screen.boss-style-beverage .boss-product-track {
    background: rgba(64, 116, 170, .13);
}

.boss-screen.boss-style-beverage .boss-gantt-row i,
.boss-screen.boss-style-beverage .boss-column-bar i,
.boss-screen.boss-style-beverage .boss-branch-track i,
.boss-screen.boss-style-beverage .boss-product-track i {
    background: linear-gradient(180deg, #48a1e8, #b9ddff);
}

.boss-screen.boss-style-beverage .boss-gantt-row i,
.boss-screen.boss-style-beverage .boss-branch-track i,
.boss-screen.boss-style-beverage .boss-product-track i {
    background: linear-gradient(90deg, #b9ddff, #48a1e8);
}

.boss-screen.boss-style-beverage .boss-rank-no {
    color: #ffffff;
    background: linear-gradient(135deg, #ffb13b, #ff6b2d);
}

.boss-screen.boss-style-beverage .boss-table-wrap,
.boss-screen.boss-style-beverage .boss-data-table td,
.boss-screen.boss-style-beverage .boss-data-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, .72);
}

.boss-screen.boss-style-beverage .boss-data-table th {
    color: #1e5f99;
    background: rgba(72, 161, 232, .12);
}

.boss-screen.boss-style-enterprise,
.boss-screen.boss-style-enterprise.boss-fullscreen {
    color: #d8e0ea;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 16%),
        linear-gradient(135deg, #101722 0%, #18212d 46%, #151d1b 100%);
}

.boss-screen.boss-style-enterprise::before {
    opacity: .72;
    background:
        repeating-linear-gradient(0deg, rgba(214, 178, 116, .055) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(90deg, rgba(95, 132, 140, .05) 0 1px, transparent 1px 46px),
        linear-gradient(120deg, rgba(122, 87, 52, .14), transparent 34%, rgba(36, 112, 115, .1));
}

.boss-screen.boss-style-enterprise::after {
    background: linear-gradient(90deg, transparent, rgba(214, 178, 116, .16), rgba(45, 142, 136, .1), transparent);
}

.boss-screen.boss-style-enterprise .boss-topbar {
    background: rgba(14, 22, 32, .94);
    border-bottom-color: rgba(196, 156, 91, .26);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .26);
}

.boss-screen.boss-style-enterprise .boss-logo {
    border-color: rgba(214, 178, 116, .42);
    background: #082a52;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}

.boss-screen.boss-style-enterprise.boss-fullscreen .boss-gear-toggle {
    color: #e6c993;
    background: rgba(14, 22, 32, .88);
    border-color: rgba(214, 178, 116, .34);
}

.boss-screen.boss-style-enterprise .boss-kicker,
.boss-screen.boss-style-enterprise .boss-panel-head span {
    color: #c9a96f;
}

.boss-screen.boss-style-enterprise .boss-center h1,
.boss-screen.boss-style-enterprise .boss-hero-panel h2,
.boss-screen.boss-style-enterprise .boss-panel-head h3,
.boss-screen.boss-style-enterprise .boss-branch-row strong,
.boss-screen.boss-style-enterprise .boss-product-main strong {
    color: #f5f0e8;
}

.boss-screen.boss-style-enterprise .boss-controls input,
.boss-screen.boss-style-enterprise .boss-select-field,
.boss-screen.boss-style-enterprise .boss-select-field select,
.boss-screen.boss-style-enterprise .boss-controls button,
.boss-screen.boss-style-enterprise .boss-controls a,
.boss-screen.boss-style-enterprise .boss-mode-tabs,
.boss-screen.boss-style-enterprise .boss-style-tabs,
.boss-screen.boss-style-enterprise .boss-language-tabs {
    color: #f1f5f9;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(214, 178, 116, .28);
}

.boss-screen.boss-style-enterprise .boss-select-field span {
    color: #c8d0da;
}

.boss-screen.boss-style-enterprise .boss-controls .boss-mode-tab,
.boss-screen.boss-style-enterprise .boss-controls .boss-style-tab,
.boss-screen.boss-style-enterprise .boss-controls .boss-language-tab {
    color: #d8e0ea;
    background: transparent;
}

.boss-screen.boss-style-enterprise .boss-controls .boss-mode-tab.active,
.boss-screen.boss-style-enterprise .boss-controls .boss-style-tab.active,
.boss-screen.boss-style-enterprise .boss-controls .boss-language-tab.active,
.boss-screen.boss-style-enterprise .boss-controls button[type="submit"] {
    color: #101722;
    background: linear-gradient(135deg, #d8b46f, #6fb5a7);
    box-shadow: 0 12px 26px rgba(111, 181, 167, .16);
}

.boss-screen.boss-style-enterprise .boss-controls .boss-theme-toggle,
.boss-screen.boss-style-enterprise .boss-controls .boss-fullscreen-toggle,
.boss-screen.boss-style-enterprise .boss-controls a {
    color: #e6c993;
}

.boss-screen.boss-style-enterprise .boss-status span {
    color: #dce5ef;
    background: rgba(14, 22, 32, .72);
    border-color: rgba(214, 178, 116, .28);
}

.boss-screen.boss-style-enterprise .boss-hero-panel,
.boss-screen.boss-style-enterprise .boss-panel,
.boss-screen.boss-style-enterprise .boss-metrics div,
.boss-screen.boss-style-enterprise.boss-fullscreen .boss-panel,
.boss-screen.boss-style-enterprise.boss-fullscreen .boss-metrics div {
    border-color: rgba(214, 178, 116, .2);
    background:
        linear-gradient(145deg, rgba(23, 33, 46, .94), rgba(14, 22, 32, .9)),
        linear-gradient(90deg, rgba(122, 87, 52, .18), transparent 44%, rgba(36, 112, 115, .12));
    box-shadow: 0 22px 52px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.boss-screen.boss-style-enterprise .boss-hero-panel {
    background:
        linear-gradient(135deg, rgba(29, 42, 58, .96), rgba(18, 30, 36, .94)),
        linear-gradient(90deg, rgba(214, 178, 116, .2), transparent 60%);
}

.boss-screen.boss-style-enterprise .boss-panel::before,
.boss-screen.boss-style-enterprise .boss-hero-panel::before {
    opacity: .2;
    background: linear-gradient(120deg, rgba(214, 178, 116, .18), transparent 35%, rgba(111, 181, 167, .12));
}

.boss-screen.boss-style-enterprise .boss-panel::after,
.boss-screen.boss-style-enterprise .boss-metrics div::after {
    opacity: .18;
    background: linear-gradient(90deg, rgba(214, 178, 116, .22), transparent 28%, transparent 76%, rgba(111, 181, 167, .18));
}

.boss-screen.boss-style-enterprise .boss-metrics div:nth-child(1),
.boss-screen.boss-style-enterprise.boss-fullscreen .boss-metrics div:nth-child(1) {
    background: linear-gradient(135deg, #1d2a3a 0%, #6d5330 100%);
}

.boss-screen.boss-style-enterprise .boss-metrics div:nth-child(2),
.boss-screen.boss-style-enterprise.boss-fullscreen .boss-metrics div:nth-child(2) {
    background: linear-gradient(135deg, #1b3641 0%, #276d69 100%);
}

.boss-screen.boss-style-enterprise .boss-metrics div:nth-child(3),
.boss-screen.boss-style-enterprise.boss-fullscreen .boss-metrics div:nth-child(3) {
    background: linear-gradient(135deg, #283241 0%, #596a7a 100%);
}

.boss-screen.boss-style-enterprise .boss-metrics div::before {
    opacity: .22;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .1) 0 1px, transparent 1px 16px),
        linear-gradient(0deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 16px);
}

.boss-screen.boss-style-enterprise .boss-screen .boss-metrics strong,
.boss-screen.boss-style-enterprise .boss-metrics strong,
.boss-screen.boss-style-enterprise .boss-metrics span,
.boss-screen.boss-style-enterprise .boss-metrics small {
    color: #fffaf0;
    text-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}

.boss-screen.boss-style-enterprise .boss-panel-head {
    border-bottom-color: rgba(214, 178, 116, .16);
}

.boss-screen.boss-style-enterprise .boss-panel-head strong,
.boss-screen.boss-style-enterprise .boss-gantt-row strong,
.boss-screen.boss-style-enterprise .boss-column-item strong,
.boss-screen.boss-style-enterprise .boss-branch-row em,
.boss-screen.boss-style-enterprise .boss-product-row em {
    color: #f6ead6;
}

.boss-screen.boss-style-enterprise .boss-hero-panel p,
.boss-screen.boss-style-enterprise .boss-hero-number span,
.boss-screen.boss-style-enterprise .boss-gantt-row span,
.boss-screen.boss-style-enterprise .boss-gantt-row em,
.boss-screen.boss-style-enterprise .boss-column-item span,
.boss-screen.boss-style-enterprise .boss-column-item em,
.boss-screen.boss-style-enterprise .boss-branch-row span,
.boss-screen.boss-style-enterprise .boss-product-main span {
    color: #aeb9c6;
}

.boss-screen.boss-style-enterprise .boss-gantt-row,
.boss-screen.boss-style-enterprise .boss-product-row {
    background: rgba(255, 255, 255, .045);
    border-color: rgba(214, 178, 116, .13);
}

.boss-screen.boss-style-enterprise .boss-gantt-row div,
.boss-screen.boss-style-enterprise .boss-column-bar,
.boss-screen.boss-style-enterprise .boss-branch-track,
.boss-screen.boss-style-enterprise .boss-product-track {
    background: rgba(255, 255, 255, .08);
}

.boss-screen.boss-style-enterprise .boss-gantt-row i,
.boss-screen.boss-style-enterprise .boss-branch-track i,
.boss-screen.boss-style-enterprise .boss-product-track i {
    background: linear-gradient(90deg, #c9a96f, #6fb5a7);
}

.boss-screen.boss-style-enterprise .boss-column-bar i {
    background: linear-gradient(180deg, #6fb5a7, #d8b46f);
    box-shadow: 0 -10px 24px rgba(111, 181, 167, .16);
}

.boss-screen.boss-style-enterprise .boss-rank-no {
    color: #101722;
    background: linear-gradient(135deg, #d8b46f, #6fb5a7);
}

.boss-screen.boss-style-enterprise .boss-table-wrap,
.boss-screen.boss-style-enterprise .boss-data-table td,
.boss-screen.boss-style-enterprise .boss-data-table tbody tr:nth-child(even) td {
    color: #d8e0ea;
    background: rgba(14, 22, 32, .62);
    border-bottom-color: rgba(214, 178, 116, .12);
}

.boss-screen.boss-style-enterprise .boss-data-table th {
    color: #e6c993;
    background: rgba(214, 178, 116, .1);
}

.boss-screen.boss-style-enterprise .boss-template-enterprise {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.boss-enterprise-hero,
.boss-enterprise-kpis,
.boss-enterprise-command,
.boss-enterprise-operations,
.boss-enterprise-ranking {
    grid-column: 1 / -1;
}

.boss-enterprise-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .75fr) minmax(190px, .38fr);
    gap: 14px;
    align-items: stretch;
    min-height: 170px;
    padding: 18px;
    border: 1px solid rgba(214, 178, 116, .24);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(20, 31, 43, .96), rgba(17, 27, 31, .95)),
        linear-gradient(90deg, rgba(121, 82, 45, .22), transparent 48%, rgba(38, 120, 113, .16));
    box-shadow: 0 24px 58px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.boss-enterprise-title,
.boss-enterprise-total,
.boss-enterprise-badge,
.boss-enterprise-kpis article,
.boss-enterprise-brief-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(214, 178, 116, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
}

.boss-enterprise-title {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 22px 24px;
    background:
        linear-gradient(110deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)),
        linear-gradient(90deg, rgba(214, 178, 116, .08), transparent);
}

.boss-enterprise-title span,
.boss-enterprise-total span,
.boss-enterprise-badge span,
.boss-enterprise-kpis span,
.boss-enterprise-brief-card span {
    color: #c9a96f;
    font-size: 14px;
    font-weight: 900;
}

.boss-enterprise-title h2 {
    margin: 10px 0 0;
    color: #fffaf0;
    font-size: clamp(40px, 3.25vw, 54px);
    line-height: 1.12;
}

.boss-enterprise-title p {
    margin: 12px 0 0;
    color: #b8c2cf;
    font-size: 16px;
    font-weight: 800;
}

.boss-enterprise-total,
.boss-enterprise-badge {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.boss-enterprise-total {
    background:
        linear-gradient(135deg, rgba(109, 83, 48, .62), rgba(25, 40, 52, .84)),
        linear-gradient(180deg, rgba(255, 255, 255, .08), transparent);
}

.boss-enterprise-total strong {
    margin-top: 10px;
    color: #fffaf0;
    font-size: clamp(44px, 3.4vw, 58px);
    line-height: 1.04;
    font-variant-numeric: tabular-nums;
}

.boss-enterprise-total small,
.boss-enterprise-badge small,
.boss-enterprise-kpis small {
    margin-top: 8px;
    color: #aeb9c6;
    font-size: 14px;
    font-weight: 800;
}

.boss-enterprise-badge {
    align-items: flex-start;
    background:
        linear-gradient(135deg, rgba(39, 109, 105, .48), rgba(23, 33, 46, .9)),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 18px);
}

.boss-enterprise-badge strong {
    margin-top: 8px;
    color: #101722;
    padding: 8px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #d8b46f, #6fb5a7);
    font-size: 28px;
    line-height: 1;
}

.boss-enterprise-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.boss-enterprise-kpis article {
    min-height: 126px;
    padding: 18px;
    background:
        linear-gradient(145deg, rgba(26, 39, 52, .92), rgba(14, 22, 32, .88)),
        linear-gradient(90deg, rgba(214, 178, 116, .12), transparent);
}

.boss-enterprise-kpis strong {
    display: block;
    margin-top: 12px;
    color: #fffaf0;
    font-size: clamp(34px, 2.6vw, 44px);
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.boss-enterprise-command {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .7fr);
    gap: 14px;
    align-items: stretch;
}

.boss-enterprise-trend {
    min-height: 430px;
}

.boss-screen.boss-style-enterprise .boss-enterprise-column-chart {
    min-height: 330px;
    padding-top: 14px;
}

.boss-enterprise-brief {
    display: grid;
    gap: 14px;
}

.boss-enterprise-brief-card {
    display: grid;
    min-height: 132px;
    align-content: center;
    padding: 18px;
    background:
        linear-gradient(145deg, rgba(23, 33, 46, .94), rgba(17, 27, 31, .9)),
        linear-gradient(90deg, rgba(36, 112, 115, .12), rgba(214, 178, 116, .08));
}

.boss-enterprise-brief-card strong {
    margin-top: 8px;
    overflow: hidden;
    color: #fffaf0;
    font-size: 22px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.boss-enterprise-brief-card p {
    margin: 6px 0 0;
    overflow: hidden;
    color: #aeb9c6;
    font-size: 15px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.boss-enterprise-brief-card em {
    margin-top: 10px;
    color: #e6c993;
    font-size: 24px;
    font-style: normal;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.boss-enterprise-operations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.boss-enterprise-ranking {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.boss-screen.boss-style-enterprise .boss-template-enterprise .boss-panel {
    min-height: 0;
    background:
        linear-gradient(145deg, rgba(23, 33, 46, .96), rgba(14, 22, 32, .9)),
        linear-gradient(90deg, rgba(122, 87, 52, .16), transparent 44%, rgba(36, 112, 115, .12));
}

.boss-screen.boss-style-enterprise .boss-template-enterprise .boss-panel-head {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(214, 178, 116, .16);
}

.boss-screen.boss-style-enterprise .boss-template-enterprise .boss-panel-head span {
    display: block;
}

.boss-screen.boss-fullscreen .boss-template-enterprise {
    grid-template-rows: clamp(96px, 13vh, 112px) clamp(88px, 12vh, 108px) minmax(0, 1fr) clamp(216px, 29vh, 280px);
    gap: 8px;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-hero {
    grid-row: 1;
    min-height: 0;
    padding: 8px;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-title,
.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-total,
.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-badge {
    padding: 10px 14px;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-title h2 {
    margin-top: 4px;
    font-size: 36px;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-title p,
.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-total small,
.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-badge small {
    margin-top: 4px;
    font-size: 13px;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-total strong {
    margin-top: 4px;
    font-size: 40px;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-badge strong {
    margin-top: 4px;
    padding: 6px 10px;
    font-size: 24px;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-kpis {
    grid-row: 2;
    gap: 8px;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-kpis article {
    min-height: 0;
    padding: 10px 12px;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-kpis strong {
    margin-top: 5px;
    font-size: 34px;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-command {
    grid-row: 3;
    min-height: 0;
    gap: 8px;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-trend {
    min-height: 0;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-column-chart {
    min-height: 0;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-brief {
    min-height: 0;
    gap: 8px;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-brief-card {
    min-height: 0;
    padding: 10px 12px;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-brief-card strong {
    font-size: 20px;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-brief-card p,
.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-brief-card span {
    font-size: 13px;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-brief-card em {
    margin-top: 4px;
    font-size: 20px;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-operations,
.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-ranking {
    grid-row: 4;
    min-height: 0;
    gap: 8px;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-operations {
    grid-column: 1 / 6;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-ranking {
    grid-column: 6 / -1;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-ranking .boss-panel {
    padding: 9px 10px;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-ranking .boss-panel-head {
    margin-bottom: 6px;
    padding-bottom: 6px;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-ranking .boss-panel-head span {
    font-size: 11px;
    line-height: 1.25;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-ranking .boss-panel-head h3 {
    font-size: 20px;
    line-height: 1.15;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-ranking .boss-product-list {
    gap: 5px;
    align-content: start;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-ranking .boss-product-row:nth-child(n+4) {
    display: none;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-ranking .boss-product-row {
    grid-template-columns: 28px minmax(0, 1fr) minmax(108px, .44fr);
    gap: 7px;
    min-height: 44px;
    padding: 5px 7px;
    align-items: center;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-ranking .boss-rank-no {
    width: 24px;
    height: 24px;
    font-size: 13px;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-ranking .boss-product-main strong {
    font-size: 15px;
    line-height: 1.2;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-ranking .boss-product-main span {
    margin-top: 1px;
    font-size: 12px;
    line-height: 1.2;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-ranking .boss-product-track {
    height: 5px;
    margin-top: 3px;
}

.boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-ranking .boss-product-row em {
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.1;
    text-overflow: ellipsis;
}

@media (max-width: 1180px) {
    .boss-screen.boss-style-enterprise .boss-template-enterprise,
    .boss-enterprise-hero,
    .boss-enterprise-command,
    .boss-enterprise-operations,
    .boss-enterprise-ranking {
        grid-template-columns: 1fr;
    }

    .boss-enterprise-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .boss-enterprise-kpis {
        grid-template-columns: 1fr;
    }

    .boss-enterprise-title h2 {
        font-size: 28px;
    }

    .boss-enterprise-total strong {
        font-size: 32px;
    }
}

.boss-screen.boss-fullscreen.boss-style-summary .boss-stage,
.boss-screen.boss-fullscreen.boss-style-beverage .boss-stage,
.boss-screen.boss-fullscreen.boss-style-enterprise .boss-stage {
    gap: 10px;
}

.boss-screen.boss-fullscreen .boss-style-tabs {
    min-width: 156px;
}

.boss-screen.boss-fullscreen .boss-language-tabs {
    min-width: 118px;
}

.boss-screen.boss-fullscreen .boss-controls .boss-style-tab {
    flex-basis: 48px;
    min-width: 48px;
}

.boss-screen.boss-fullscreen .boss-controls .boss-language-tab {
    flex-basis: 52px;
    min-width: 52px;
}

@media (max-width: 1320px) {
    .portal-data-table,
    .report-table {
        min-width: 0;
        table-layout: fixed;
    }

    .portal-data-table th,
    .portal-data-table td,
    .report-table th,
    .report-table td {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .portal-table-wrap,
    .report-table-scroll {
        overflow-x: hidden;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 16px;
    }

    input,
    select,
    textarea {
        min-height: 44px;
        font-size: 16px;
    }

    .button,
    .report-btn {
        width: 100%;
        min-height: 42px;
    }

    .page,
    .portal-workspace,
    .portal-main,
    .report-shell {
        width: min(100% - 16px, 1520px);
        margin-top: 12px;
        margin-bottom: 28px;
    }

    .topbar,
    .portal-shell-header,
    .boss-screen:not(.boss-fullscreen) .boss-topbar {
        position: static;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: calc(12px + env(safe-area-inset-top)) 12px 12px;
    }

    .brand,
    .nav,
    .userbar,
    .portal-header-actions,
    .boss-brand,
    .boss-center,
    .boss-controls,
    .boss-status {
        width: 100%;
    }

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

    .nav a {
        justify-content: center;
        min-height: 40px;
        padding: 0 8px;
        text-align: center;
    }

    .page-heading,
    .form-grid,
    .filters,
    .stats,
    .portal-settings,
    .portal-settings-form,
    .portal-token-panel,
    .token-management-grid,
    .portal-link-grid,
    .portal-overview,
    .portal-filters,
    .report-index-hero,
    .report-filter-form,
    .portal-metrics,
    .report-grid,
    .report-index-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .panel,
    .portal-title-card,
    .portal-card,
    .portal-summary,
    .portal-panel,
    .report-toolbar,
    .report-table-panel {
        padding: 14px;
    }

    .page-heading h1,
    .panel h1 {
        font-size: 23px;
    }

    .portal-title-card h2,
    .report-hero h1 {
        font-size: 22px;
    }

    .actions,
    .row-actions,
    .pagination,
    .table-meta,
    .section-title-row,
    .token-action-row,
    .token-inline-form,
    .portal-header-actions,
    .portal-export-actions,
    .portal-actions,
    .portal-table-tools,
    .portal-pagination,
    .report-toolbar-actions,
    .report-pager {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        justify-content: stretch;
    }

    .report-name-cell,
    .public-link-cell,
    .token-inline-form .token-input {
        min-width: 0;
    }

    .link-field,
    .portal-card-head,
    .portal-table-head,
    .report-hero {
        display: grid;
        grid-template-columns: 1fr;
    }

    .report-status,
    .report-table-summary {
        justify-content: flex-start;
    }

    .table-wrap,
    .portal-table-wrap,
    .report-table-scroll {
        max-height: none;
        overflow-x: hidden;
        border: 0;
        border-radius: 0;
    }

    .table-wrap table,
    .portal-data-table,
    .report-table {
        display: block !important;
        min-width: 0 !important;
        width: 100% !important;
        background: transparent;
    }

    .table-wrap thead,
    .portal-data-table thead,
    .report-table thead {
        display: none;
    }

    .table-wrap tbody,
    .table-wrap tr,
    .table-wrap td,
    .portal-data-table tbody,
    .portal-data-table tr,
    .portal-data-table td,
    .report-table tbody,
    .report-table tr,
    .report-table td {
        display: block !important;
        width: 100% !important;
    }

    .table-wrap tr,
    .portal-data-table tr,
    .report-table tr {
        margin-bottom: 10px;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    .table-wrap td,
    .portal-data-table td,
    .report-table td {
        min-height: 38px;
        padding: 9px 10px;
        white-space: normal !important;
        overflow-wrap: anywhere;
        border-bottom: 1px solid #edf2f7;
    }

    .table-wrap td:last-child,
    .portal-data-table td:last-child,
    .report-table td:last-child {
        border-bottom: 0;
    }

    .boss-screen:not(.boss-fullscreen) .boss-stage {
        width: min(100% - 16px, 1880px);
        margin-top: 12px;
    }

    .boss-mode-tabs,
    .boss-style-tabs,
    .boss-language-tabs,
    .boss-select-field {
        width: 100%;
        min-width: 0 !important;
    }

    .boss-controls input,
    .boss-controls select,
    .boss-controls button,
    .boss-controls a {
        flex: 1 1 100%;
        min-width: 0 !important;
    }

    .boss-mode-tabs,
    .boss-language-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .boss-style-tabs {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .boss-screen .boss-metrics,
    .boss-screen .boss-grid,
    .boss-analytics-grid,
    .boss-rank-grid,
    .boss-screen.boss-style-enterprise .boss-template-enterprise,
    .boss-screen.boss-style-enterprise .boss-enterprise-hero,
    .boss-screen.boss-style-enterprise .boss-enterprise-kpis,
    .boss-screen.boss-style-enterprise .boss-enterprise-command,
    .boss-screen.boss-style-enterprise .boss-enterprise-operations,
    .boss-screen.boss-style-enterprise .boss-enterprise-ranking {
        grid-template-columns: 1fr !important;
    }

    .boss-branch-row {
        grid-template-columns: 1fr !important;
    }

    .boss-product-row,
    .boss-compact-rank-row {
        grid-template-columns: 30px minmax(0, 1fr) !important;
    }

    .boss-product-row em,
    .boss-branch-row em {
        grid-column: 1 / -1;
        text-align: left;
    }

    .boss-screen.boss-fullscreen {
        height: auto;
        min-height: 100svh;
        overflow-y: auto;
        padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    }

    .boss-screen.boss-fullscreen .boss-stage,
    .boss-screen.boss-fullscreen.boss-style-summary .boss-stage,
    .boss-screen.boss-fullscreen.boss-style-beverage .boss-stage,
    .boss-screen.boss-fullscreen.boss-style-enterprise .boss-stage {
        display: grid;
        width: 100%;
        height: auto;
        min-height: calc(100svh - 16px);
        grid-template-columns: 1fr !important;
        grid-template-rows: none;
        gap: 8px;
    }

    .boss-screen.boss-fullscreen .boss-metrics,
    .boss-screen.boss-fullscreen .boss-analytics-grid,
    .boss-screen.boss-fullscreen .boss-rank-grid,
    .boss-screen.boss-fullscreen .boss-grid,
    .boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-hero,
    .boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-kpis,
    .boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-command,
    .boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-operations,
    .boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-ranking {
        grid-column: 1;
        grid-row: auto;
        grid-template-columns: 1fr !important;
    }

    .boss-screen.boss-fullscreen .boss-metrics strong,
    .boss-screen.boss-fullscreen .boss-template-enterprise .boss-enterprise-total strong {
        font-size: 30px;
    }

    .boss-screen.boss-fullscreen .boss-panel-head h3,
    .boss-screen.boss-fullscreen .boss-panel-head strong {
        font-size: 20px;
    }

    .boss-screen.boss-fullscreen .boss-gantt-row:nth-child(n+11),
    .boss-screen.boss-fullscreen .boss-branch-row:nth-child(n+4),
    .boss-screen.boss-fullscreen .boss-product-row:nth-child(n+6) {
        display: grid;
    }

    .boss-screen.boss-fullscreen .boss-data-table tbody tr:nth-child(n+7) {
        display: block !important;
    }
}

@media (max-width: 900px) {
    .boss-screen:not(.boss-fullscreen) .boss-column-chart.boss-column-dense {
        grid-template-columns: 1fr !important;
        gap: 8px;
        min-height: 0;
        padding: 4px 0 0;
    }

    .boss-screen:not(.boss-fullscreen) .boss-column-chart.boss-column-dense .boss-column-item {
        grid-template-columns: 42px minmax(0, 1fr) 54px;
        grid-template-rows: 18px;
        gap: 8px;
        align-items: center;
        min-height: 18px;
        text-align: left;
    }

    .boss-screen:not(.boss-fullscreen) .boss-column-chart.boss-column-dense .boss-column-item strong {
        display: none;
    }

    .boss-screen:not(.boss-fullscreen) .boss-column-chart.boss-column-dense .boss-column-bar {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        height: 12px;
        min-height: 12px;
        border-radius: 999px;
    }

    .boss-screen:not(.boss-fullscreen) .boss-column-chart.boss-column-dense .boss-column-bar i {
        width: calc(var(--bar-height, 1) * 1%);
        height: 100%;
        min-height: 0;
    }

    .boss-screen:not(.boss-fullscreen) .boss-column-chart.boss-column-dense .boss-column-item span {
        grid-column: 1;
        grid-row: 1;
        overflow: visible;
        color: #334966;
        font-size: 12px;
        font-weight: 900;
        line-height: 1;
        text-overflow: clip;
        white-space: nowrap;
    }

    .boss-screen:not(.boss-fullscreen) .boss-column-chart.boss-column-dense .boss-column-item:not(:first-child):not(:nth-child(10n)):not(:last-child) span {
        visibility: visible;
    }

    .boss-screen:not(.boss-fullscreen) .boss-column-chart.boss-column-dense .boss-column-item em {
        display: block !important;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        color: #5f728e;
        font-size: 11px;
        font-weight: 900;
        line-height: 1;
        text-align: right;
    }

    .boss-screen.boss-fullscreen .boss-column-chart.boss-column-dense {
        grid-template-columns: 1fr !important;
        gap: 6px;
        min-height: 0;
        padding-top: 0;
    }

    .boss-screen.boss-fullscreen .boss-column-chart.boss-column-dense .boss-column-item {
        grid-template-columns: 52px minmax(0, 1fr) 44px;
        grid-template-rows: 16px;
        gap: 6px;
        align-items: center;
        min-height: 16px;
        text-align: left;
    }

    .boss-screen.boss-fullscreen .boss-column-chart.boss-column-dense .boss-column-item strong {
        display: none;
    }

    .boss-screen.boss-fullscreen .boss-column-chart.boss-column-dense .boss-column-item span,
    .boss-screen.boss-fullscreen .boss-column-chart.boss-column-dense .boss-column-item em {
        overflow: hidden;
        font-size: 11px;
        line-height: 1;
        text-overflow: clip;
        white-space: nowrap;
    }

    .boss-screen.boss-fullscreen .boss-column-chart.boss-column-dense .boss-column-item span {
        grid-column: 1;
        grid-row: 1;
    }

    .boss-screen.boss-fullscreen .boss-column-chart.boss-column-dense .boss-column-item em {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .boss-screen.boss-fullscreen .boss-column-chart.boss-column-dense .boss-column-bar {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        height: 10px;
        min-height: 10px;
        border-radius: 999px;
    }

    .boss-screen.boss-fullscreen .boss-column-chart.boss-column-dense .boss-column-bar i {
        width: calc(var(--bar-height, 1) * 1%);
        height: 100%;
        min-height: 0;
    }
}
