:root {
    --bg: #e7f1f8;
    --ink: #102435;
    --accent: #1f6f9f;
    --accent-deep: #153f5a;
    --accent-soft: #d9ebf6;
    --panel: rgba(255, 255, 255, 0.94);
    --line: #d3e1eb;
    --warn: #9d0208;
    --sidebar-width: 200px;
    --header-height: 84px;
    --content-max-width: 980px;
    --min-app-width: 0px;
    --shell-padding-x: 24px;
    --shell-padding-bottom: 24px;
    --panel-padding: 24px;
    --topbar-gap: 16px;
    --topbar-padding-x: 16px;
    --topbar-card-width: 240px;
    --topbar-user-card-width: 300px;
    --topbar-card-gap: 12px;
    --topbar-logo-width: 168px;
    --topbar-logo-gap: 12px;
    --brand-gap: 14px;
    --brand-mark-size: 44px;
    --brand-mark-radius: 14px;
    --brand-name-size: 1.16rem;
    --brand-section-size: 0.84rem;
    --body-font-size: 16px;
    --sidebar-padding-y: 20px;
    --sidebar-padding-x: 16px;
    --sidebar-link-min-height: 48px;
    --sidebar-link-font-size: 0.94rem;
    --sidebar-sublink-min-height: 42px;
    --sidebar-sublink-font-size: 0.9rem;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    min-width: var(--min-app-width);
    overflow-x: auto;
    overflow-y: hidden;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: var(--body-font-size);
    background:
        radial-gradient(circle at top left, rgba(31, 111, 159, 0.18), transparent 22%),
        linear-gradient(180deg, #f7fbfe 0%, var(--bg) 100%);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

.layout {
    height: 100vh;
    height: 100dvh;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 0 var(--topbar-padding-x);
    border-bottom: 1px solid var(--line);
    background: rgba(250, 252, 249, 0.94);
    backdrop-filter: blur(14px);
}

.topbar.topbar-auth {
    gap: 2px;
    justify-content: flex-start;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 0;
    padding-right: 0;
}

.topbar-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: var(--topbar-gap);
    min-height: var(--header-height);
}

.topbar-auth .topbar-main {
    min-height: 34px;
}

.topbar-auth-body {
    margin-left: calc(var(--topbar-logo-width) + var(--topbar-logo-gap));
    min-width: 0;
    padding: 0 var(--topbar-padding-x);
}

.topbar-main-auth {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--topbar-gap);
}

.topbar-main-auth .topbar-center {
    justify-content: flex-start;
}

.topbar-main-auth .topbar-start {
    display: none;
}

.topbar-start {
    min-width: 0;
}

.topbar-center {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.brand-block {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: var(--brand-gap);
    overflow: hidden;
    flex: 1 1 auto;
}

.brand-mark {
    width: var(--brand-mark-size);
    height: var(--brand-mark-size);
    flex: 0 0 var(--brand-mark-size);
    display: grid;
    place-items: center;
    border-radius: var(--brand-mark-radius);
    background: linear-gradient(135deg, var(--accent) 0%, #4b93bb 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-copy {
    min-width: 0;
    overflow: hidden;
}

.brand-name,
.brand-section {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-name {
    font-size: var(--brand-name-size);
    font-weight: 700;
}

.brand-section {
    color: #5a7183;
    font-size: var(--brand-section-size);
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--topbar-card-gap);
    min-width: 0;
}

.topbar-card {
    width: min(100%, var(--topbar-card-width));
    min-width: 0;
    max-width: var(--topbar-card-width);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid #d0deea;
    background: #f4faff;
}

.topbar-inline-card {
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    text-align: left;
    color: var(--accent-deep);
}

.topbar-inline-card:hover {
    background: #edf6fb;
    border-color: #bfd4e3;
}

.topbar-inline-card[aria-expanded="true"] {
    background: #e7f3fb;
    border-color: #a9c9dc;
}

.topbar-card-caret {
    color: #4f6c80;
    font-size: 0.82rem;
    line-height: 1;
}

.topbar-inline-card .topbar-card-value {
    color: var(--accent-deep);
}

.topbar-card-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.topbar-card-label {
    display: block;
    margin-bottom: 4px;
    color: #5a7183;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.topbar-card-value {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.topbar-user {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    text-align: center;
}

.topbar-user .topbar-card-label {
    margin-bottom: 0;
}

.topbar-user .topbar-card-value {
    width: 100%;
    min-width: 0;
}

.topbar-user-card {
    width: min(100%, var(--topbar-user-card-width));
    max-width: var(--topbar-user-card-width);
    gap: 10px;
}

.topbar-logo-slot {
    position: absolute;
    left: var(--topbar-padding-x);
    top: 4px;
    bottom: 4px;
    width: var(--topbar-logo-width);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.topbar-logo-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.topbar-logo-fallback {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(31, 111, 159, 0.15) 0%, rgba(75, 147, 187, 0.24) 100%);
    color: var(--accent-deep);
    font-weight: 800;
    letter-spacing: 0.06em;
}

.topbar-inline-card.account-switcher-card {
    position: relative;
    justify-content: space-between;
    padding-right: 12px;
}

.topbar-inline-card.account-switcher-card .topbar-card-copy {
    width: auto;
    flex: 1 1 auto;
    text-align: left;
}

.switcher-current {
    text-align: left;
}

.user-menu {
    position: relative;
}

.user-menu-panel {
    right: 0;
    left: auto;
    min-width: 180px;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.topnav a {
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
}

.topnav a:hover {
    background: #edf6fb;
}

.topbar-quick {
    min-width: 0;
    overflow: visible;
}

.topbar.topbar-auth .topbar-quick {
    transform: translateY(3px);
}

.topbar-quick-inner {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    padding: 0 var(--shell-padding-x);
}

.topbar-quick-track {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, var(--content-max-width));
    min-width: 0;
    margin: 0 auto;
}

.topbar-quick-hint {
    min-width: 0;
}

.topbar-quick-hint .topbar-quick-button {
    width: 100%;
}

.topbar-quick-button {
    min-height: 31px;
    padding: 0 10px;
    border-radius: 12px;
    border: 1px solid #5f98b9;
    background: linear-gradient(135deg, var(--accent) 0%, #3f86af 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-quick-button--with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    text-align: left;
}

.topbar-quick-button--with-icon span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-quick-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.topbar-quick-button:disabled {
    opacity: 0.92;
    cursor: default;
}

.topbar-quick-hint .topbar-quick-button:disabled {
    pointer-events: none;
}

.app-body {
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    margin-top: var(--header-height);
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    overflow-y: auto;
    overflow-x: hidden;
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: var(--sidebar-padding-y) var(--sidebar-padding-x);
    border-right: 1px solid var(--line);
    background: rgba(242, 248, 252, 0.92);
    overflow: auto;
}

.sidebar-nav,
.sidebar-footer {
    display: grid;
    gap: 10px;
}

.sidebar-auth-entry {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.sidebar-nav-public {
    flex: 1 1 auto;
    align-content: start;
}

.sidebar-subnav {
    display: grid;
    gap: 8px;
    margin-top: -2px;
    padding-left: 16px;
}

.sidebar-separator {
    height: 0;
    margin: 8px 0 2px;
    border-top: 2px solid #c7d9e5;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--sidebar-link-min-height);
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    font-weight: 600;
    font-size: var(--sidebar-link-font-size);
}

.sidebar-link:hover {
    background: #edf6fb;
    border-color: #d4e3ee;
}

.sidebar-link.is-active {
    background: linear-gradient(135deg, var(--accent) 0%, #3f86af 100%);
    border-color: var(--accent);
    color: #fff;
}

.sidebar-link-mode {
    cursor: default;
    background: rgba(31, 111, 159, 0.12);
    border-color: rgba(31, 111, 159, 0.18);
    color: var(--accent-deep);
}

.sidebar-link-mode:hover {
    background: rgba(31, 111, 159, 0.12);
    border-color: rgba(31, 111, 159, 0.18);
}

.sidebar-link-mode.is-active {
    background: linear-gradient(135deg, rgba(31, 111, 159, 0.18) 0%, rgba(75, 147, 187, 0.26) 100%);
    border-color: rgba(31, 111, 159, 0.2);
    color: var(--accent-deep);
}

.sidebar-sublink {
    min-height: var(--sidebar-sublink-min-height);
    padding-left: 18px;
    font-size: var(--sidebar-sublink-font-size);
    color: #36556c;
}

.sidebar-icon {
    display: none;
    width: 22px;
    flex: 0 0 22px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-sublink .sidebar-label {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.15;
}

.content-shell {
    min-height: 100%;
    overflow: visible;
    padding: 0 var(--shell-padding-x) var(--shell-padding-bottom);
    display: flex;
    flex-direction: column;
}

.content-shell > * {
    width: min(100%, var(--content-max-width));
    min-width: 0;
    margin: 0 auto;
}

.content-scroll {
    overflow: visible;
    min-height: 0;
    flex: 1 1 auto;
}

.content-x-scroll {
    width: 100%;
    overflow: visible;
}

.account-switcher {
    position: relative;
    width: min(100%, var(--topbar-card-width));
    min-width: 0;
}

.account-switcher-card {
    position: relative;
    justify-content: center;
    padding-right: 58px;
}

.account-switcher-card .topbar-card-copy {
    width: 100%;
    flex: 1 1 100%;
    text-align: center;
}

.switcher-current {
    text-align: center;
}

.switcher-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: max-content;
    min-width: 240px;
    max-width: min(320px, calc(100vw - 32px));
    padding: 8px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 40px rgba(19, 42, 27, 0.08);
    z-index: 140;
}

.account-switcher .switcher-menu {
    left: 0;
    right: auto;
}

.account-switcher.is-open .switcher-menu {
    display: block;
}

.switcher-menu a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
}

.switcher-menu a:hover {
    background: #f3f9fd;
}

.switcher-menu span {
    color: #5a7183;
    font-size: 0.88rem;
}

.switcher-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid #d0deea;
    background: #fff;
    color: var(--accent-deep);
}

.switcher-toggle:hover {
    background: #edf6fb;
}

.switcher-toggle-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.switcher-menu-action {
    margin-top: 8px;
    justify-content: center !important;
    border: 1px solid #d0deea;
    background: #f4faff;
    font-weight: 700;
}

.muted {
    color: #5a7183;
}

.grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.single-column {
    max-width: 720px;
}

.single-column.wide {
    max-width: 980px;
}

.single-table {
    max-width: 100%;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: var(--panel-padding);
    box-shadow: 0 18px 40px rgba(19, 42, 27, 0.06);
    overflow-x: auto;
    overflow-y: visible;
}

.panel--table {
    overflow: visible;
}

.panel :where(h1, h2, h3, h4, p, li, a, span, strong, div, td, th) {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.panel .nowrap {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.panel.accent {
    background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%);
    color: #fff;
}

.panel-accent {
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 44px rgba(16, 36, 53, 0.14);
}

.panel-accent::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 42%);
    pointer-events: none;
}

.panel-accent > * {
    position: relative;
    z-index: 1;
}

.panel-accent .eyebrow {
    color: rgba(248, 252, 255, 0.92);
    margin-bottom: 14px;
}

.panel-accent h2 {
    margin-bottom: 18px;
    font-size: clamp(1.6rem, 2.1vw, 2.45rem);
    line-height: 1.1;
}

.panel-accent-facts {
    display: grid;
    gap: 12px;
    max-width: 64ch;
}

.panel-home-intro .panel-accent-facts {
    max-width: none;
}

.panel-accent-facts p {
    margin: 0;
    color: rgba(244, 250, 255, 0.96);
    line-height: 1.55;
}

.panel-accent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.panel-accent-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 700;
}

.panel-accent-actions a:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.34);
}

.panel-account-overview h2 {
    margin-bottom: 20px;
}

.panel-accent-toolbar {
    display: grid;
    gap: 0;
    margin-bottom: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.panel-accent-toolbar-head {
    display: flex;
    align-items: center;
    min-height: 22px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.panel-accent-toolbar-title {
    color: rgba(228, 241, 250, 0.86);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.panel-accent-toolbar-actions {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
}

.panel-accent-toolbar-button {
    min-height: 30px;
    width: 100%;
    padding: 0 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(248, 252, 255, 0.96);
    font-weight: 700;
    font-size: 0.82rem;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-accent-toolbar-button:disabled {
    opacity: 0.92;
    cursor: default;
}

.panel-account-overview {
    --account-label-width: 168px;
}

.panel-account-overview .panel-accent-toolbar {
    margin-bottom: 18px;
}

.panel-accent-meta,
.panel-accent-details {
    display: grid;
    grid-template-columns: var(--account-label-width) minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 12px;
    align-items: start;
}

.panel-accent-meta {
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
}

.panel-accent-details {
    max-width: 520px;
}

.panel-accent-section {
    display: grid;
    gap: 16px;
}

.panel-account-overview .detail-label {
    color: rgba(228, 241, 250, 0.82);
    font-weight: 700;
}

.panel-account-overview .meta-value,
.panel-account-overview .detail-value {
    color: rgba(250, 252, 255, 0.98);
    min-width: 0;
}

.panel-account-overview .meta-value {
    font-weight: 500;
}

.panel-accent-middle {
    display: grid;
    grid-template-columns: minmax(280px, 460px) minmax(320px, 1fr);
    gap: 24px;
    align-items: start;
}

.panel-accent-middle-main,
.panel-accent-middle-side {
    min-width: 0;
}

.panel-accent-middle-side {
    display: grid;
    gap: 16px;
}

.panel-accent-info-block {
    display: grid;
    gap: 10px;
}

.panel-accent-info-title {
    color: rgba(238, 247, 252, 0.92);
    font-weight: 700;
}

.panel-accent-info-list {
    margin: 0;
    padding-left: 18px;
    color: rgba(250, 252, 255, 0.96);
    display: grid;
    gap: 6px;
}

.panel-accent-verify-table {
    display: grid;
    gap: 8px;
    padding-left: 18px;
}

.panel-accent-verify-row {
    display: grid;
    grid-template-columns: minmax(110px, 132px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-accent-verify-row:last-child {
    border-bottom: 0;
}

.panel-accent-verify-serial {
    color: rgba(250, 252, 255, 0.98);
    font-weight: 700;
}

.panel-accent-verify-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: rgba(239, 247, 252, 0.92);
}

.panel-accent-verify-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    flex: 0 0 22px;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.panel-accent-verify-row.is-warning .panel-accent-verify-icon {
    background: #f0ae00;
}

.panel-accent-verify-row.is-danger .panel-accent-verify-icon {
    background: #b23658;
}

.panel-accent-verify-row.is-danger .panel-accent-verify-status {
    color: #ffd9e3;
}

@media (max-width: 980px) {
    .panel-accent-toolbar-actions {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        padding: 8px;
    }

    .panel-accent-toolbar-button {
        min-height: 28px;
        padding: 0 8px;
        font-size: 0.78rem;
    }

    .panel-accent-middle {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
}

.panel-accent-meter-prompt {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    padding: 4px 0;
    border: 0;
    background: transparent;
}

.panel-accent-meter-prompt.is-success {
    background: transparent;
}

.panel-accent-meter-prompt.is-warning {
    background: transparent;
}

.panel-accent-meter-prompt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.panel-accent-meter-prompt.is-success .panel-accent-meter-prompt-icon {
    background: #2e8b6c;
}

.panel-accent-meter-prompt.is-warning .panel-accent-meter-prompt-icon {
    background: #f0ae00;
}

.panel-accent-meter-prompt-text {
    color: rgba(250, 252, 255, 0.98);
    font-weight: 700;
    text-align: center;
}

.panel-accent-meter-prompt-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.panel-accent-meter-prompt-action:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.32);
}

.panel-accent-divider {
    height: 1px;
    margin: 18px 0;
    background: rgba(255, 255, 255, 0.16);
}

.panel-accent-status {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.panel-accent-status .status-label {
    color: rgba(233, 244, 252, 0.9);
    font-weight: 700;
}

.panel-accent-status .status-value {
    color: #fff;
    font-size: 1.15rem;
    line-height: 1;
}

.panel-accent-status.is-debt {
    background: rgba(255, 255, 255, 0.1);
}

.panel-accent-status.is-credit {
    background: rgba(220, 244, 255, 0.14);
}

.panel-accent-status.is-neutral {
    background: rgba(255, 255, 255, 0.07);
}

.panel-accent-note {
    margin-top: 14px;
    color: rgba(228, 241, 250, 0.72);
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: right;
}

.precalc-total-status {
    margin-top: 10px;
    border-color: #d2e2ee;
    background: #f0f6fb;
}

.precalc-total-status .status-label {
    color: #2f5d7c;
}

.precalc-total-status .status-value {
    color: #0f3856;
}

.precalc-total-main {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.precalc-total-pay {
    margin-left: auto;
}

.precalc-total-note {
    color: var(--accent-deep);
}

.panel h2,
.panel h3 {
    margin-top: 0;
}

.auth-mode-switch {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #f7fbfe;
}

.auth-mode-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    color: #3b5970;
    font-weight: 600;
    white-space: nowrap;
}

.auth-mode-link:hover {
    background: #edf6fb;
    border-color: #d4e3ee;
}

.auth-mode-link.is-active {
    background: linear-gradient(135deg, var(--accent) 0%, #3f86af 100%);
    border-color: var(--accent);
    color: #fff;
}

.eyebrow {
    margin-bottom: 10px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.dev-width-mode-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 999px;
    border: 1px solid #bfd4e3;
    background: #eef6fb;
    color: #2b5976;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: none;
    vertical-align: middle;
}

.news-item + .news-item {
    border-top: 1px solid var(--line);
    margin-top: 16px;
    padding-top: 16px;
}

.news-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.article-text {
    white-space: pre-line;
    line-height: 1.6;
}

.rich-text {
    line-height: 1.65;
}

.rich-text > :first-child {
    margin-top: 0;
}

.rich-text > :last-child {
    margin-bottom: 0;
}

.rich-text h1,
.rich-text h2,
.rich-text h3 {
    margin: 0 0 14px;
    line-height: 1.2;
}

.rich-text h1 {
    font-size: 1.8rem;
}

.rich-text h2 {
    font-size: 1.45rem;
}

.rich-text h3 {
    font-size: 1.2rem;
}

.rich-text p,
.rich-text ul,
.rich-text ol {
    margin: 0 0 14px;
}

.rich-text ul,
.rich-text ol {
    padding-left: 22px;
}

.rich-text hr {
    margin: 18px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.rich-text a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.14em;
}

.rich-text .rt-primary {
    color: var(--accent);
}

.rich-text .rt-align-left {
    text-align: left;
}

.rich-text .rt-align-center {
    text-align: center;
}

.rich-text .rt-align-right {
    text-align: right;
}

.rich-text .rt-important {
    color: #b42318;
    font-weight: 700;
}

.rich-text .rt-attention {
    color: #8a5a00;
    font-weight: 700;
}

.rich-text .rt-warning {
    color: #9b2c2c;
    font-weight: 700;
}

.rich-text .rt-success {
    color: #0f6a46;
    font-weight: 700;
}

.rich-editor {
    display: grid;
    gap: 12px;
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    row-gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f7fbfe;
    align-items: center;
}

.rich-editor-toolbar button,
.rich-editor-toolbar select {
    width: auto;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #d0deea;
    background: #fff;
}

.rich-editor-toolbar button {
    cursor: pointer;
    font-weight: 600;
    color: var(--accent-deep);
    background: linear-gradient(135deg, #edf6fb 0%, #d9ebf6 100%);
}

.rich-editor-toolbar button:hover {
    border-color: #8eb9d4;
    background: linear-gradient(135deg, #e5f2fa 0%, #cfe5f3 100%);
}

.rich-editor-toolbar select {
    color: var(--ink);
}

.rich-editor-canvas {
    min-height: 320px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    outline: none;
}

.rich-editor-canvas:focus {
    border-color: #8eb9d4;
    box-shadow: 0 0 0 3px rgba(31, 111, 159, 0.12);
}

.rich-editor-note {
    margin: -2px 0 0;
    font-size: 0.92rem;
}

.contact-list,
.plain-list {
    margin: 0;
    padding-left: 18px;
}

.contact-list-compact {
    --contact-compact-label-width: 280px;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.contact-list-compact li {
    display: grid;
    grid-template-columns: var(--contact-compact-label-width) minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
}

.contact-list-compact strong {
    color: var(--ink);
    font-weight: 800;
}

.contact-list-compact span {
    min-width: 0;
    color: #334b5c;
    overflow-wrap: normal;
    word-break: normal;
}

@media (max-width: 760px) {
    .contact-list-compact {
        --contact-compact-label-width: 220px;
    }

    .contact-list-compact li {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .contact-list-compact span {
        white-space: normal;
    }
}

.contact-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.contact-card {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f6fbff;
    border: 1px solid #d9e7f0;
}

.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.auth-log-lookup-form {
    display: grid;
    gap: 12px;
}

.auth-log-table th:last-child,
.auth-log-table td:last-child {
    width: 100%;
}

.auth-log-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
}

.auth-log-status--success {
    color: #0c5a32;
    background: rgba(102, 187, 106, 0.18);
}

.auth-log-status--error {
    color: #8d233d;
    background: rgba(231, 76, 60, 0.16);
}

.profile-meta {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 10px;
    align-items: start;
}

.profile-meta-label {
    font-weight: 700;
    color: var(--text);
}

.profile-meta-value {
    min-width: 0;
    color: var(--text);
}

.admin-control-panel {
    display: grid;
    gap: 12px;
}

.admin-control-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 14px;
    border: 1px solid rgba(49, 121, 177, 0.16);
    background: linear-gradient(135deg, rgba(49, 121, 177, 0.1) 0%, rgba(25, 102, 155, 0.16) 100%);
    color: var(--primary-strong);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.admin-control-button:hover {
    background: linear-gradient(135deg, rgba(49, 121, 177, 0.16) 0%, rgba(25, 102, 155, 0.22) 100%);
}

.admin-status-meta {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 10px;
    align-items: start;
}

.admin-status-label {
    font-weight: 700;
    color: var(--text);
}

.admin-status-value {
    color: var(--text);
}

@media (max-width: 760px) {
    .profile-meta {
        grid-template-columns: 170px minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 8px;
    }
}

@media (max-width: 520px) {
    .profile-meta {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }
}

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

.section-backlink--standalone {
    width: min(100%, var(--content-max-width));
    position: sticky;
    top: 8px;
    z-index: 12;
    margin: 0 auto 8px;
    padding: 4px 0;
    background: linear-gradient(180deg, rgba(231, 241, 248, 0.96) 0%, rgba(231, 241, 248, 0.78) 100%);
    backdrop-filter: blur(6px);
}

.section-backlink-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--muted);
}

.table-shell {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
}

.table-shell--sticky {
    overflow: visible;
}

.table-shell > .data-table {
    min-width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    background: transparent;
}

.data-table th,
.data-table td {
    padding: 5px 6px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    line-height: 1.2;
}

.data-table th + th,
.data-table td + td {
    border-left: 1px solid rgba(211, 225, 235, 0.9);
}

.data-table th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5a7183;
    white-space: nowrap;
    background: #f8fbfe;
}

.data-table tbody tr:hover {
    background: #f6fbff;
}

.data-table tbody tr.is-selected,
.data-table tbody tr.selected {
    background: #f3f9fd;
}

.data-table--sticky thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #f7fbfe;
    box-shadow: inset 0 -1px 0 var(--line);
}

.data-table--compact th,
.data-table--compact td {
    padding: 4px 5px;
}

.data-table .numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.data-table .nowrap {
    white-space: nowrap;
}

.centered {
    text-align: center;
}

.data-table--clickable tbody tr {
    cursor: pointer;
}

.data-table--clickable tbody tr:focus-visible {
    outline: 2px solid rgba(31, 111, 159, 0.24);
    outline-offset: -2px;
}

.data-table--clickable tbody tr a {
    position: relative;
    z-index: 1;
}

.data-table tbody tr.row-description-row:hover {
    background: transparent;
}

.data-table tbody tr.row-description-row {
    display: none;
}

.data-table--clickable tbody tr.row-description-row {
    cursor: default;
}

.data-table td.row-description-cell {
    color: var(--accent);
    padding-left: 10px;
}

.master-row-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid #d0deea;
    background: #f4faff;
    color: var(--accent-deep);
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.master-row-toggle:hover {
    background: #edf6fb;
    border-color: #8eb9d4;
}

.master-row-toggle[aria-expanded="true"] {
    background: linear-gradient(135deg, #edf6fb 0%, #d9ebf6 100%);
}

.master-detail-row {
    display: none;
}

.master-detail-row.is-open {
    display: table-row;
}

.master-detail-row > td {
    padding: 0;
    background: #fbfdff;
}

.master-detail-panel {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 18px;
}

.master-detail-panel > :last-child {
    margin-bottom: 0;
}

.charge-detail-table thead th {
    border-top: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 6;
    background: #f7fbfe;
    box-shadow: inset 0 -1px 0 var(--line);
}

.query-col {
    display: none;
}

.query-caption-short {
    display: none;
}

.table-result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
}

.table-result-badge--success {
    background: #dff5e7;
    color: #1d7a48;
}

.table-result-badge--danger {
    background: #fbe3e7;
    color: #b2384e;
}

.table-result-badge--info {
    background: #e8f1f8;
    color: #2a678f;
}

.selected {
    background: #f3f9fd;
}

.table-cell-with-hint {
    cursor: help;
    text-decoration: underline dotted rgba(31, 111, 159, 0.45);
    text-underline-offset: 2px;
}

.table-cell-hint-popup {
    position: fixed;
    z-index: 1200;
    max-width: min(420px, calc(100vw - 16px));
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #bcd5e4;
    background: #f4fbff;
    color: var(--accent-deep);
    box-shadow: 0 10px 26px rgba(19, 63, 90, 0.2);
    font-size: 0.88rem;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #edf3f8;
    color: #4f6678;
    font-size: 0.82rem;
    font-weight: 700;
}

.tag-active {
    background: #dceffc;
    color: #135f89;
}

.tag-primary {
    background: #ddebf5;
    color: #2f6486;
}

.actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    background: #f1f7fb;
    border: 1px solid #d0deea;
    font-weight: 600;
}

.danger-link {
    color: #8d1e24;
    background: #fff4f4;
    border-color: #ebc9cb;
}

.form-panel form {
    display: grid;
    gap: 12px;
}

input,
button,
select,
textarea {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #c8d9e5;
    background: #fff;
}

button {
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

.error {
    color: var(--warn);
    font-weight: 700;
}

strong {
    font-weight: 800;
}

.success {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #eef8fd;
    border: 1px solid #c7e0ee;
}

.error-block {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff1f1;
    border: 1px solid #ebc9cb;
    color: #8d1e24;
    font-weight: 700;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-row input {
    width: auto;
}

.meter-submit-form {
    gap: 16px;
}

.meter-entry-table th,
.meter-entry-table td {
    vertical-align: middle;
}

.meter-entry-input {
    width: 84px;
    min-width: 0;
    max-width: 100%;
    padding: 8px 8px;
    text-align: right;
}

.meter-check-date {
    white-space: nowrap;
}

.meter-check-date--warning {
    color: #b27b00;
    font-weight: 700;
}

.meter-check-date--expired {
    color: #b2384e;
    font-weight: 800;
}

.meter-entry-table tfoot th {
    border-top: 2px solid var(--line);
    background: #f7fbfe;
}

.inline-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.pay-grid {
    align-items: start;
}

.pay-panel h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.pay-panel {
    position: sticky;
    top: 58px;
    z-index: 8;
}

.pay-form {
    display: grid;
    gap: 12px;
    margin-top: 8px;
    max-width: 360px;
}

.pay-form label {
    font-weight: 700;
    color: #2b4d64;
}

.pay-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.pay-method-start-form {
    display: none;
}

.pay-method-card {
    min-height: 170px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #35579b;
    background: linear-gradient(180deg, #4968ad 0%, #3f5f9f 100%);
    color: #fff;
    display: grid;
    align-content: stretch;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.pay-method-card:hover {
    border-color: #6f90c7;
    background: linear-gradient(180deg, #4f6fb8 0%, #4666ab 100%);
}

.pay-method-card:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.pay-method-title {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.01em;
    align-self: center;
}

.pay-method-logo {
    width: min(100%, 240px);
    max-height: 86px;
    object-fit: contain;
    align-self: center;
}

.pay-method-state {
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    align-self: end;
}

.pay-method-note {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.8rem;
    line-height: 1.25;
}

.pay-confirm-modal[hidden] {
    display: none;
}

.pay-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
}

.pay-confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 28, 41, 0.48);
}

.pay-confirm-modal__dialog {
    position: relative;
    width: min(92vw, 440px);
    margin: 14vh auto 0;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #c8d9e5;
    background: #fff;
    box-shadow: 0 18px 44px rgba(19, 42, 27, 0.24);
}

.pay-confirm-modal__dialog h3 {
    margin: 0 0 10px;
}

.pay-confirm-modal__line {
    margin: 6px 0;
}

.pay-confirm-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.pay-confirm-modal__actions .action-link {
    color: var(--ink);
    background: #f1f7fb;
    border: 1px solid #d0deea;
}

@media (min-width: 1441px) {
    .show-xl {
        display: table-cell;
    }

    .show-desc-xl {
        display: table-row !important;
    }
}

@media (min-width: 1241px) and (max-width: 1440px) {
    .show-lg {
        display: table-cell;
    }

    .show-desc-lg {
        display: table-row !important;
    }
}

@media (max-width: 1440px) {
    :root {
        --content-max-width: 940px;
        --shell-padding-x: 20px;
    }
}

@media (min-width: 1121px) and (max-width: 1240px) {
    .show-md {
        display: table-cell;
    }

    .show-desc-md {
        display: table-row !important;
    }

    :root {
        --sidebar-width: 184px;
        --content-max-width: 880px;
        --shell-padding-x: 16px;
        --shell-padding-bottom: 20px;
        --panel-padding: 22px;
        --topbar-card-width: 220px;
        --topbar-user-card-width: 275px;
        --topbar-gap: 14px;
        --topbar-card-gap: 10px;
        --topbar-logo-width: 152px;
        --topbar-logo-gap: 10px;
        --brand-mark-size: 40px;
        --brand-mark-radius: 12px;
        --brand-name-size: 1.05rem;
        --brand-section-size: 0.78rem;
        --body-font-size: 15px;
        --sidebar-padding-y: 18px;
        --sidebar-padding-x: 14px;
        --sidebar-link-min-height: 46px;
        --sidebar-link-font-size: 0.91rem;
        --sidebar-sublink-min-height: 40px;
        --sidebar-sublink-font-size: 0.86rem;
    }
}

@media (max-width: 760px) {
    .meter-entry-input {
        width: 68px;
        padding: 6px 6px;
    }
}

@media (min-width: 761px) and (max-width: 1120px) {
    .show-sm {
        display: table-cell;
    }

    .show-desc-sm {
        display: table-row !important;
    }

    .query-caption-long {
        display: none;
    }

    .query-caption-short {
        display: inline;
    }

    .topbar {
        gap: 12px;
        padding: 0 12px;
    }

    .topbar-quick {
        overflow: visible;
        padding-bottom: 0;
    }

    .topbar-quick-inner {
        padding: 0 18px;
    }

    .topbar-quick-track {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        min-width: 0;
    }

    .content-shell {
        padding: 0 18px 18px;
    }

    .app-sidebar {
        justify-content: flex-start;
    }

    .sidebar-nav {
        flex: 1 1 auto;
        align-content: start;
    }

    .sidebar-footer {
        margin-top: 18px;
        padding-top: 18px;
        border-top: 2px solid #c7d9e5;
    }

    :root {
        --sidebar-width: 168px;
        --content-max-width: 820px;
        --panel-padding: 20px;
        --topbar-card-width: 200px;
        --topbar-user-card-width: 250px;
        --topbar-logo-width: 132px;
        --topbar-logo-gap: 8px;
        --body-font-size: 14px;
        --brand-name-size: 0.98rem;
        --brand-section-size: 0.74rem;
        --sidebar-link-font-size: 0.88rem;
        --sidebar-sublink-font-size: 0.84rem;
    }
}

@media (max-width: 760px) {
    .show-xs {
        display: table-cell;
    }

    .show-desc-xs {
        display: table-row !important;
    }

    .query-caption-long {
        display: none;
    }

    .query-caption-short {
        display: inline;
    }

    :root {
        --sidebar-width: 72px;
        --content-max-width: 760px;
        --shell-padding-x: 14px;
        --panel-padding: 18px;
        --topbar-card-width: 184px;
        --topbar-user-card-width: 232px;
        --topbar-logo-width: var(--sidebar-width);
        --topbar-logo-gap: 8px;
        --body-font-size: 14px;
        --brand-name-size: 0.94rem;
        --brand-section-size: 0.7rem;
    }

    .topbar-main {
        gap: 8px;
    }

    .topbar-logo-slot {
        left: 0;
        width: var(--sidebar-width);
    }

    .topbar-auth-body {
        padding: 0 10px;
    }

    .topbar-inline-card {
        padding: 7px 10px;
    }

    .topbar-quick {
        overflow: visible;
        padding-bottom: 0;
    }

    .topbar-quick-inner {
        padding: 0 8px 0 0;
    }

    .topbar-quick-track {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        min-width: 0;
        gap: 6px;
    }

    .topbar-quick-button {
        min-height: 34px;
        font-size: 0.76rem;
    }

    .pay-panel {
        top: 52px;
    }

    .app-sidebar {
        justify-content: flex-start;
        padding-left: 8px;
        padding-right: 8px;
    }

    .sidebar-nav {
        flex: 1 1 auto;
        align-content: start;
    }

    .sidebar-footer {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 2px solid #c7d9e5;
    }

    .sidebar-link {
        justify-content: center;
        padding: 0;
        min-height: 44px;
    }

    .sidebar-subnav {
        padding-left: 0;
    }

    .sidebar-auth-entry {
        padding-bottom: 14px;
        margin-bottom: 14px;
    }

    .sidebar-label {
        display: none;
    }

    .sidebar-icon {
        display: inline-block;
        width: auto;
        font-size: 0.94rem;
    }
}

@media (max-width: 760px) {
    :root {
        --sidebar-width: 64px;
        --content-max-width: 700px;
        --shell-padding-x: 8px;
        --shell-padding-bottom: 28px;
        --panel-padding: 14px;
        --topbar-card-width: 168px;
        --topbar-user-card-width: 210px;
        --topbar-logo-width: var(--sidebar-width);
        --topbar-logo-gap: 8px;
        --topbar-gap: 10px;
        --topbar-card-gap: 8px;
        --topbar-padding-x: 12px;
        --brand-gap: 10px;
        --brand-mark-size: 36px;
        --brand-mark-radius: 10px;
        --brand-name-size: 0.88rem;
        --brand-section-size: 0.66rem;
        --body-font-size: 13px;
    }

    .switcher-menu {
        min-width: 220px;
    }

    .content-shell {
        padding: 0 8px 28px 0;
    }

    .topbar-card-label {
        font-size: 0.62rem;
    }

    .sidebar-link,
    .sidebar-sublink {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    :root {
        --sidebar-width: 56px;
        --shell-padding-x: 6px;
        --shell-padding-bottom: 36px;
        --panel-padding: 12px;
        --topbar-card-width: 156px;
        --topbar-user-card-width: 196px;
        --topbar-logo-width: var(--sidebar-width);
        --topbar-logo-gap: 6px;
        --body-font-size: 12px;
    }

    .topbar-auth-body {
        padding: 0 6px;
    }

    .topbar-logo-slot {
        left: 0;
        width: var(--sidebar-width);
    }

    .topbar-quick-button {
        min-height: 33px;
        font-size: 0.72rem;
    }

    .pay-panel {
        top: 48px;
    }

    .content-shell {
        padding: 0 6px 36px 0;
    }

    .topbar-quick-inner {
        padding: 0 6px 0 0;
    }

    .app-sidebar {
        padding-left: 6px;
        padding-right: 6px;
    }

    .sidebar-link {
        min-height: 40px;
        border-radius: 10px;
    }

    .sidebar-icon {
        font-size: 0.88rem;
    }
}
