:root {
    --rd-bg: #f5f7fc;
    --rd-surface: #ffffff;
    --rd-border: #e6ebf5;
    --rd-border-strong: #d8e0ee;
    --rd-primary: #4158d8;
    --rd-primary-soft: #7481dd;
    --rd-primary-dark: #202d63;
    --rd-muted: #7a8599;
    --rd-heading: #15213d;
    --rd-sidebar: #151d31;
    --rd-sidebar-soft: #212b46;
    --rd-success-bg: #ddf8eb;
    --rd-success-text: #1b9a62;
    --rd-warning-bg: #ffedd9;
    --rd-warning-text: #f08a2a;
    --rd-danger-bg: #ffe1e1;
    --rd-danger-text: #f26868;
}

body {
    background:
        radial-gradient(circle at top left, rgba(115, 129, 222, 0.16), transparent 24%),
        linear-gradient(180deg, #f8faff 0%, #f3f6fc 100%);
    color: var(--rd-heading);
    min-height: 100vh;
    font-family: "Manrope", "Segoe UI", sans-serif;
}

.app-shell {
    display: grid;
    grid-template-columns: 252px 1fr;
    min-height: 100vh;
}

.sidebar {
    background:
        radial-gradient(circle at top left, rgba(114, 129, 221, 0.28), transparent 22%),
        linear-gradient(180deg, #1c2540 0%, #11192d 100%);
    color: #e2e8f0;
    padding: 16px 14px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-box {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #6675ef, #4b58d7);
    color: white;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 0.9rem;
    box-shadow: 0 10px 24px rgba(74, 88, 215, 0.28);
}

.brand-mark.has-image {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    padding: 5px;
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.brand-title {
    font-family: "Sora", "Manrope", sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
}

.sidebar-muted {
    color: #7180a2 !important;
}

.company-chip {
    padding: 0 6px;
}

.company-chip-brand {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-chip-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.92);
    padding: 4px;
    flex: 0 0 auto;
}

.company-chip-logo-fallback {
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, #5b6ce6, #3548b8);
    padding: 0;
}

.sidebar-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(116, 129, 221, 0.12);
    color: #8696c8;
    font-size: 0.8rem;
    font-weight: 600;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link-item {
    color: #c3cee6;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.nav-link-item:hover,
.nav-link-item.active {
    background: rgba(113, 125, 219, 0.18);
    border-color: rgba(150, 165, 255, 0.22);
    color: white;
    box-shadow: none;
}

.nav-link-item:hover .nav-icon,
.nav-link-item.active .nav-icon {
    color: white;
}

.nav-icon {
    width: 16px;
    color: #aab7d6;
    display: inline-flex;
    justify-content: center;
}

.nav-sub {
    margin-left: 14px;
    font-size: 0.93rem;
}

.content-area {
    padding: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(216, 224, 238, 0.88);
    padding: 18px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar-title-wrap {
    display: flex;
    align-items: center;
    min-height: 42px;
}

.topbar-eyebrow {
    font-family: "Sora", "Manrope", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--rd-heading);
}

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

.topbar-company-switch {
    min-width: 240px;
}

.topbar-company-switch .form-select {
    border-radius: 999px;
    min-height: 44px;
    background: rgba(246, 248, 253, 0.9);
}

.icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--rd-border);
    background: rgba(246, 248, 253, 0.9);
    color: #2f3b5f;
}

.profile-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    border: 1px solid var(--rd-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
}

.profile-badge,
.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #4158d8;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.82rem;
}

.logout-link {
    color: #7b869b;
    text-decoration: none;
    font-size: 0.9rem;
}

.page-wrap {
    padding: 28px 28px 36px;
}

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

.page-head-action {
    flex: 0 0 auto;
    min-width: 166px;
}

.page-title {
    font-family: "Sora", "Manrope", sans-serif;
    font-size: 2.05rem;
    line-height: 1.1;
    font-weight: 800;
    margin: 0;
    color: var(--rd-heading);
}

.page-subtitle {
    margin-top: 6px;
    color: #6f7f9e;
    font-size: 0.97rem;
}

.surface-card,
.list-card,
.metric-card,
.content-box,
.empty-state,
.modal-panel {
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.content-box {
    padding: 18px;
}

.search-toolbar {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 22px;
}

.search-box {
    position: relative;
    flex: 1;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a95ab;
}

.search-box .form-control {
    padding-left: 44px;
}

.toolbar-select {
    min-width: 180px;
}

.btn {
    border-radius: 14px;
    font-weight: 600;
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-sm {
    min-height: 34px;
    border-radius: 12px;
}

.btn i {
    display: inline-flex;
    align-items: center;
}

.btn-primary {
    background: var(--rd-primary);
    border-color: var(--rd-primary);
    color: #fff;
    box-shadow: 0 12px 26px rgba(65, 88, 216, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--rd-primary-soft);
    border-color: var(--rd-primary-soft);
    color: #fff;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-light {
    border-color: var(--rd-border-strong);
    background: #fff;
}

.btn-outline-primary {
    color: var(--rd-primary);
    border-color: #cfd7ef;
    box-shadow: inset 0 0 0 1px rgba(65, 88, 216, 0.04);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #2f44be;
    background: #f5f7ff;
    border-color: #b8c5f1;
}

.btn-outline-secondary {
    color: #4f5f7e;
    border-color: #d7deed;
    background: #fff;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: #24324f;
    background: #f8faff;
    border-color: #c7d1e6;
}

.btn-outline-danger {
    color: #d14343;
    border-color: #f2c2c2;
    background: #fff8f8;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    color: #b72d2d;
    background: #fff0f0;
    border-color: #eba5a5;
}

.form-control,
.form-select,
.form-check-input,
textarea.form-control {
    border-radius: 14px;
    border-color: var(--rd-border-strong);
    min-height: 44px;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: #9aa7f3;
}

.form-check-input {
    min-height: 18px;
}

.alert {
    margin: 14px 22px 0;
    border-radius: 14px;
    border: 1px solid var(--rd-border);
    background: rgba(255, 255, 255, 0.92);
    color: var(--rd-heading);
}

.stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.sticky-top-form {
    position: sticky;
    top: 24px;
}

.pill-check {
    background: #f7f9fe;
    border: 1px solid var(--rd-border);
    padding: 8px 12px;
    border-radius: 999px;
}

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

.field-label-toggle .form-label {
    margin-bottom: 0;
}

.field-enable-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--rd-muted);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.asset-optional-field.is-disabled {
    opacity: 0.62;
}

.asset-optional-field.is-disabled .form-control,
.asset-optional-field.is-disabled .form-select {
    background: #f7f9fe;
    border-style: dashed;
}

.status-pill,
.module-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
}

.status-pill.success {
    background: var(--rd-success-bg);
    color: var(--rd-success-text);
}

.status-pill.info {
    background: #dbe8ff;
    color: #4c75eb;
}

.status-pill.warning {
    background: var(--rd-warning-bg);
    color: var(--rd-warning-text);
}

.status-pill.danger {
    background: var(--rd-danger-bg);
    color: var(--rd-danger-text);
}

.status-pill.neutral,
.module-pill {
    background: #eef2f8;
    color: #40506f;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.metric-card {
    padding: 16px 20px;
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--rd-heading);
}

.metric-card .status-pill {
    margin-top: 12px;
}

.asset-grid,
.stack-list {
    display: grid;
    gap: 14px;
}

.asset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.asset-menu {
    position: relative;
}

.asset-menu summary {
    list-style: none;
}

.asset-menu summary::-webkit-details-marker {
    display: none;
}

.asset-menu-popover {
    position: absolute;
    top: 42px;
    right: 0;
    width: 168px;
    background: #fff;
    border: 1px solid var(--rd-border);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    padding: 8px;
    display: grid;
    gap: 2px;
    z-index: 3;
}

.asset-menu-item {
    min-height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    color: var(--rd-heading);
    text-decoration: none;
    background: transparent;
    border: 0;
    width: 100%;
}

.asset-menu-item:hover {
    background: #f4f7fd;
}

.asset-menu-item.danger {
    color: #ef4444;
}

.asset-card,
.company-row,
.user-row,
.backup-row {
    background: #fff;
    border: 1px solid var(--rd-border);
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.asset-card {
    padding: 18px 18px 16px;
}

.asset-top,
.list-row-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.asset-main {
    display: flex;
    gap: 14px;
    min-width: 0;
}

.asset-icon,
.row-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f2f5ff 0%, #e8eeff 100%);
    color: #5870de;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-size: 1.05rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.row-icon.has-logo {
    background: #fff;
    color: transparent;
    box-shadow: none;
    border: 1px solid var(--rd-border);
    padding: 5px;
    overflow: hidden;
}

.row-icon.has-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

.asset-name,
.row-title {
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--rd-heading);
    margin-bottom: 2px;
}

.asset-meta,
.row-subtitle {
    color: var(--rd-muted);
    font-size: 1rem;
}

.asset-footer,
.row-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.asset-notes {
    margin-top: 12px;
    display: grid;
    gap: 8px;
    color: var(--rd-muted);
    font-size: 0.98rem;
}

.asset-code {
    padding: 6px 10px;
    border-radius: 10px;
    background: #f6f8fd;
    color: #9aa5ba;
    font-weight: 700;
}

.action-dot {
    width: 36px;
    height: 36px;
    border: 1px solid #dbe2f0;
    background: #fff;
    color: #4a5677;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-dot:hover {
    background: #f6f8fd;
    border-color: #c7d1e6;
}

.stack-list {
    grid-template-columns: 1fr;
}

.company-row,
.user-row,
.backup-row {
    padding: 22px 24px;
}

.row-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.backup-row-select {
    display: flex;
    align-items: center;
    padding-top: 4px;
}

.backup-select-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

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

.backup-select-box span {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    border: 1px solid #ced8ea;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition: all 0.2s ease;
}

.backup-select-box input:checked + span {
    background: linear-gradient(180deg, #4f6ee8 0%, #3957d1 100%);
    border-color: #3957d1;
    box-shadow: 0 10px 20px rgba(65, 88, 216, 0.18);
    position: relative;
}

.backup-select-box input:checked + span::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.row-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--rd-muted);
    justify-content: flex-end;
}

.row-right form {
    margin: 0;
    display: inline-flex;
}

.row-right .btn-sm {
    min-width: 138px;
}

.row-right .action-dot {
    min-width: 36px;
}

.empty-state {
    min-height: 420px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--rd-muted);
}

.empty-state i {
    font-size: 4rem;
    color: #c5ccda;
    margin-bottom: 14px;
}

.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(13, 18, 31, 0.62);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    z-index: 1040;
}

.modal-panel {
    width: min(100%, 760px);
    padding: 28px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

body.modal-open {
    overflow: hidden;
}

.asset-edit-modal {
    width: min(100%, 980px);
}

.label-modal {
    width: min(100%, 860px);
    padding: 22px 22px 18px;
}

.modal-panel.modal-compact {
    width: min(100%, 468px);
    padding: 22px 22px 20px;
    border-radius: 16px;
}

.backup-detail-backdrop {
    background: rgba(9, 14, 25, 0.48);
    backdrop-filter: blur(12px);
}

.backup-detail-modal-panel {
    width: min(100%, 760px);
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 28px 90px rgba(7, 12, 24, 0.28);
}

.backup-detail-hero {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    margin-bottom: 20px;
    border-radius: 20px;
    border: 1px solid #e0e7f4;
    background: linear-gradient(180deg, #f8faff 0%, #f1f5ff 100%);
}

.backup-detail-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(180deg, #edf2ff 0%, #e4ebff 100%);
    color: #5670e5;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-size: 1.2rem;
}

.backup-detail-kicker {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #7d8bab;
}

.backup-detail-title {
    margin: 4px 0 6px;
    font-size: 1.5rem;
    line-height: 1.08;
    color: var(--rd-heading);
}

.backup-detail-subtitle {
    color: #64748f;
    font-size: 0.96rem;
}

.backup-detail-grid {
    grid-template-columns: 132px minmax(0, 1fr);
}

.backup-detail-empty {
    padding: 16px 18px;
    border: 1px dashed #d3dcf0;
    border-radius: 16px;
    background: #fbfcff;
    color: #7a89a5;
}

.backup-row {
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.backup-row.is-dragging {
    opacity: 0.58;
    transform: scale(0.985);
}

.backup-row.is-drop-target {
    border-color: #9cb8ff;
    box-shadow: 0 20px 42px rgba(65, 88, 216, 0.14);
    transform: translateY(-1px);
}

.backup-row .row-left > div:last-child {
    min-width: 0;
}

.backup-row .row-title a {
    color: inherit;
    text-decoration: none;
}

.backup-row .row-title a:hover {
    color: var(--rd-primary);
}

.backup-meta-list {
    display: grid;
    gap: 8px;
}

.backup-meta-item {
    display: grid;
    grid-template-columns: 114px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
}

.backup-meta-label {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a97b1;
}

.backup-meta-item strong {
    min-width: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #21314f;
}

.password-modal-panel {
    width: min(100%, 520px);
}

.modal-panel.modal-narrow {
    width: min(100%, 700px);
}

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

.modal-head.compact {
    margin-bottom: 18px;
}

.modal-title {
    font-size: 1.95rem;
    font-weight: 800;
    margin: 0;
}

.modal-title-sm {
    font-size: 1.1rem;
    font-weight: 700;
}

.asset-modal-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    background: #eef1f6;
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 20px;
}

.asset-tab-button {
    min-height: 34px;
    border: 0;
    background: transparent;
    border-radius: 12px;
    font-weight: 700;
    color: #697892;
}

.asset-tab-button.active {
    background: #fff;
    color: var(--rd-heading);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.asset-tab-panel,
.label-tab-panel {
    display: none;
}

.asset-tab-panel.active,
.label-tab-panel.active {
    display: block;
}

.inline-hint {
    margin-top: 6px;
    font-size: 0.9rem;
}

.section-title-sm {
    font-size: 1rem;
    font-weight: 800;
    color: var(--rd-heading);
}

.inline-hint.warning {
    color: #f08a2a;
}

.auto-tag-button {
    min-width: 44px;
}

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

.label-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 22px;
}

.label-check-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.label-save-model-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: stretch;
    padding-top: 12px;
    border-top: 1px solid var(--rd-border);
}

.label-save-model-row .btn {
    min-width: 138px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.label-template-card {
    border: 1px solid var(--rd-border);
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    text-align: left;
}

.label-template-card:hover {
    border-color: #cfd7ef;
}

.label-template-title {
    font-weight: 800;
    color: var(--rd-heading);
}

.label-template-meta {
    color: var(--rd-muted);
    font-size: 0.92rem;
    margin-top: 4px;
}

.label-preview-stage {
    min-height: 280px;
    display: grid;
    place-items: center;
}

.label-preview-card {
    width: 270px;
    min-height: 150px;
    border: 2px solid #283245;
    border-radius: 4px;
    padding: 12px 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.label-preview-company {
    font-size: 0.78rem;
    color: #5a6780;
}

.label-preview-name {
    font-size: clamp(1rem, var(--label-preview-font, 16px), 1.2rem);
    font-weight: 800;
    color: #10192e;
    margin-top: 2px;
}

.label-preview-meta {
    font-size: 0.84rem;
    color: #44516e;
    margin-top: 4px;
}

.label-preview-bar {
    margin: 10px auto 6px;
    width: 84px;
    height: var(--label-preview-bar-height, 22px);
    background: repeating-linear-gradient(90deg, #111827 0 2px, #fff 2px 4px);
}

.label-preview-code {
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    color: #10192e;
}

.label-preview-empty {
    margin: auto 0;
    text-align: center;
    color: var(--rd-muted);
    font-size: 0.94rem;
}

.label-preview-caption {
    text-align: center;
    color: var(--rd-muted);
}

.label-zpl-note {
    border: 1px solid #b9d3ff;
    background: #eef5ff;
    color: #2f63db;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.label-modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid var(--rd-border);
}

.label-modal-actions .btn {
    min-width: 152px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.label-modal-actions .btn-outline-secondary {
    min-width: 136px;
}

.label-modal-actions .btn-primary {
    min-width: 162px;
}

.modal-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #7c879e;
    text-decoration: none;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.modal-close:hover {
    background: #f3f5fb;
}

.password-choice-card {
    border: 1px solid var(--rd-border);
    border-radius: 18px;
    padding: 16px;
    background: linear-gradient(180deg, #fbfcff 0%, #f4f7fd 100%);
}

.password-choice-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.password-default-toggle {
    white-space: nowrap;
}

.password-choice-value {
    margin-top: 14px;
    min-height: 46px;
    border-radius: 14px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px dashed #c8d3ea;
    color: var(--rd-primary-dark);
    font-weight: 800;
}

.custom-password-fields {
    margin-top: 2px;
}

.is-hidden {
    display: none;
}

.password-modal-user {
    margin-top: -6px;
    margin-bottom: 6px;
    color: var(--rd-muted);
    font-size: 0.95rem;
}

.btn i {
    font-size: 0.96em;
}

.btn-outline-secondary.btn-sm,
.btn-outline-primary.btn-sm {
    border-radius: 999px;
    padding: 0 14px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.detail-grid dt {
    font-size: 0.88rem;
    color: var(--rd-muted);
}

.detail-grid dd {
    margin: 0;
    font-weight: 600;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-item {
    border-left: 3px solid #93c5fd;
    padding-left: 14px;
}

.timeline-item.compact {
    margin-bottom: 12px;
}

.file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rd-border);
}

.file-row:last-child {
    border-bottom: 0;
}

.mono-small {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.78rem;
    word-break: break-all;
}

.breadcrumb-line {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb-line a {
    text-decoration: none;
    color: var(--rd-primary);
    font-weight: 700;
}

.login-shell,
.install-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card,
.install-card {
    width: min(100%, 520px);
    border-radius: 28px;
}

.install-body,
.label-body {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.label-preview {
    background: #fff;
    border: 2px solid #0f172a;
    border-radius: 16px;
    padding: 20px;
    min-height: 220px;
}

.barcode-box {
    border: 2px dashed #0f172a;
    padding: 16px;
    text-align: center;
    letter-spacing: 0.2em;
    font-weight: 700;
}

.zpl-box {
    background: #0f172a;
    color: #bef264;
    border-radius: 16px;
    padding: 18px;
    min-height: 240px;
}

.list-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.backup-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.backup-actions .btn {
    min-width: 0;
    padding: 0 16px;
}

.backup-actions .btn-primary {
    min-width: 132px;
}

.backup-row .row-left {
    align-items: flex-start;
}

.backup-row .row-icon {
    margin-top: 2px;
}

.form-actions {
    align-items: center;
    flex-wrap: wrap;
    row-gap: 10px;
}

.form-actions .btn {
    min-width: 144px;
}

.form-actions .btn-outline-secondary {
    min-width: 128px;
}

.form-actions .btn-primary {
    min-width: 156px;
}

.date-br-input {
    letter-spacing: 0.02em;
}

.backup-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 18px;
}

.backup-layout.single-column {
    grid-template-columns: 1fr;
}

.backup-main {
    display: grid;
    gap: 18px;
}

.backup-browser-card {
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.upload-selection-card {
    border: 1px solid #dbe3f2;
    border-radius: 18px;
    background: linear-gradient(180deg, #f9fbff 0%, #f3f7ff 100%);
    padding: 16px;
    display: grid;
    gap: 14px;
}

.upload-selection-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.upload-selection-kicker {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: #7d8db0;
    margin-bottom: 4px;
}

.upload-file-list {
    display: grid;
    gap: 8px;
    max-height: 224px;
    overflow-y: auto;
    padding-right: 4px;
}

.upload-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f5;
    padding: 10px 12px;
}

.upload-file-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.upload-file-name {
    min-width: 0;
    font-weight: 700;
    color: var(--rd-heading);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-file-size {
    flex: 0 0 auto;
    color: var(--rd-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.upload-file-remove {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid #dbe3f2;
    background: #fff;
    color: #7a88a6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.upload-file-remove:hover {
    border-color: #c7d3ea;
    background: #f7f9fe;
    color: #4d5d7f;
}

.tag-input-card {
    min-height: 50px;
    border: 1px solid #dbe3f2;
    border-radius: 16px;
    background: #fff;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-input-card:focus-within {
    border-color: #b8caef;
    box-shadow: 0 0 0 4px rgba(74, 103, 219, 0.08);
}

.tag-chip-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 8px 0 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #eef4ff 0%, #e4edff 100%);
    color: #3451a4;
    font-weight: 700;
}

.tag-chip-remove {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 999px;
    background: rgba(52, 81, 164, 0.12);
    color: #3451a4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.tag-entry-input {
    flex: 1 1 180px;
    min-width: 140px;
    border: 0;
    outline: none;
    padding: 6px 2px;
    background: transparent;
    color: var(--rd-heading);
}

.tag-entry-input::placeholder {
    color: #97a4bf;
}

.upload-progress-backdrop {
    background: rgba(13, 18, 31, 0.72);
    backdrop-filter: blur(12px);
}

.modal-panel.modal-compact.upload-progress-panel {
    width: min(100%, 560px);
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 30px 100px rgba(15, 23, 42, 0.3);
    padding: 24px;
}

.upload-progress-shell {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.upload-progress-orb {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: linear-gradient(180deg, #eff4ff 0%, #dfe9ff 100%);
    color: #4867d8;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.upload-progress-copy h3 {
    margin: 2px 0 6px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--rd-heading);
}

.upload-progress-copy div:last-child {
    color: var(--rd-muted);
}

.upload-progress-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    font-weight: 800;
    color: #7d8db0;
}

.upload-progress-track {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: #e8eef9;
    overflow: hidden;
    margin-bottom: 12px;
}

.upload-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5c76e8 0%, #6a5be8 55%, #4dc4ff 100%);
    transition: width 180ms ease;
}

.upload-progress-panel.is-processing .upload-progress-fill {
    background: linear-gradient(90deg, #5c76e8 0%, #7d70ef 45%, #4dc4ff 100%);
    background-size: 200% 100%;
    animation: uploadProgressPulse 1.4s linear infinite;
}

.upload-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--rd-muted);
}

.upload-progress-meta strong {
    font-size: 1.1rem;
    color: var(--rd-heading);
}

.upload-progress-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.upload-progress-stat {
    border: 1px solid #e4ebf8;
    border-radius: 16px;
    background: #fff;
    padding: 12px 14px;
    display: grid;
    gap: 6px;
    min-height: 96px;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.upload-progress-stat span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6em;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: #7d8db0;
    text-align: center;
}

.upload-progress-stat strong {
    color: var(--rd-heading);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.upload-progress-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #eef4ff;
    color: #3f548b;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.upload-progress-note i {
    margin-top: 2px;
    color: #5870de;
}

.upload-progress-tags {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e4ebf8;
}

.upload-progress-description {
    margin-top: 16px;
}

.upload-progress-tags-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: #7d8db0;
    margin-bottom: 10px;
}

.upload-progress-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.progress-tag-chip {
    min-height: 30px;
    padding: 0 12px;
}

.upload-progress-description-copy {
    border: 1px solid #e4ebf8;
    border-radius: 16px;
    background: #fff;
    padding: 12px 14px;
    color: var(--rd-heading);
    line-height: 1.5;
    white-space: pre-wrap;
}

@keyframes uploadProgressPulse {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.backup-details-card {
    max-width: 540px;
}

.dashboard-shell {
    max-width: 1080px;
    margin: 0 auto;
}

.dashboard-headline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-title {
    margin: 8px 0 0;
    font-size: 2.35rem;
    line-height: 1.04;
    font-weight: 800;
    color: var(--rd-heading);
}

.dashboard-company-chip {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--rd-border);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #55627f;
    font-weight: 700;
}

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

.dashboard-stat-box {
    background: #fff;
    border: 1px solid var(--rd-border);
    border-radius: 18px;
    padding: 20px 20px 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.03);
}

.dashboard-stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--rd-heading);
}

.dashboard-stat-label {
    margin-top: 8px;
    font-size: 0.94rem;
    color: var(--rd-muted);
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-grid-refined {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 18px;
}

.dashboard-side-stack {
    display: grid;
    gap: 18px;
}

.dashboard-module-card,
.dashboard-feed-card {
    padding: 24px;
}

.dashboard-module-copy {
    color: var(--rd-muted);
    max-width: 460px;
}

.dashboard-module-grid {
    display: grid;
    gap: 12px;
}

.dashboard-module-link {
    min-height: 84px;
    border: 1px solid var(--rd-border);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    padding: 18px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.dashboard-module-link:hover {
    border-color: #d7def4;
    transform: translateY(-1px);
}

.dashboard-module-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #edf1ff;
    color: #5f71e2;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}

.dashboard-module-title {
    font-size: 1.04rem;
    font-weight: 800;
    color: var(--rd-heading);
}

.dashboard-module-subtitle {
    margin-top: 3px;
    color: var(--rd-muted);
    font-size: 0.93rem;
}

.dashboard-empty {
    min-height: 120px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--rd-muted);
}

.compact-row {
    padding: 16px 18px;
}

.catalog-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.catalogs-shell {
    max-width: 1010px;
    margin: 0 auto;
}

.catalogs-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.catalogs-back {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #44516e;
    text-decoration: none;
}

.catalogs-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--rd-heading);
}

.catalog-company-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.catalog-company-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rd-heading);
}

.catalog-company-select,
.catalog-company-readonly {
    width: 260px;
    min-height: 40px;
}

.catalog-company-readonly {
    border: 1px solid var(--rd-border-strong);
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: #55627f;
}

.catalog-card {
    padding: 18px 18px 16px;
    border-radius: 20px;
}

.catalog-card.catalog-card-empty {
    min-height: 180px;
    display: grid;
    place-items: center;
}

.catalog-card-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: #eceff4;
    border-radius: 15px;
    padding: 4px;
    margin-bottom: 20px;
}

.catalog-card-tab {
    min-height: 32px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #61708d;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
}

.catalog-card-tab.active {
    background: #fff;
    color: var(--rd-heading);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

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

.catalog-section-copy {
    color: #6f7c96;
    font-size: 0.98rem;
}

.catalog-list {
    display: grid;
    gap: 12px;
}

.catalog-item-row {
    border: 1px solid var(--rd-border);
    border-radius: 14px;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #fff;
}

.catalog-item-title {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--rd-heading);
}

.catalog-item-meta {
    margin-top: 2px;
    color: #8390a8;
    font-size: 0.9rem;
}

.catalog-pill-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.catalog-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-dot.danger {
    color: #ef4444;
}

.catalog-empty-block,
.catalog-empty-text {
    color: #7e8aa4;
    text-align: center;
}

.catalog-empty-block {
    min-height: 180px;
    display: grid;
    place-items: center;
    width: 100%;
}

.catalog-empty-text {
    padding: 36px 0 28px;
    font-size: 0.98rem;
}

.catalog-subsection {
    padding: 4px 0 10px;
}

.catalog-subsection.with-divider {
    margin-top: 10px;
    padding-top: 22px;
    border-top: 1px solid var(--rd-border);
}

.catalog-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--rd-heading);
}

.section-empty {
    min-height: 92px;
    display: grid;
    place-items: center;
}

.catalog-modal .form-label {
    font-weight: 700;
    color: var(--rd-heading);
}

.catalog-modal {
    width: min(100%, 530px) !important;
    padding: 26px 26px 22px;
}

.catalog-modal .modal-head.compact {
    margin-bottom: 16px;
}

.catalog-modal .form-control,
.catalog-modal .form-select,
.catalog-modal textarea.form-control {
    min-height: 40px;
    border-radius: 13px;
}

.catalog-modal textarea.form-control {
    min-height: 92px;
}

.catalog-help {
    margin-top: 6px;
    color: #7d89a4;
    font-size: 0.92rem;
}

.mono-small-input {
    font-family: "Consolas", "Courier New", monospace;
    letter-spacing: 0.05em;
}

.catalog-checkbox-list {
    display: grid;
    gap: 10px;
}

.catalog-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.98rem;
}

.catalog-tab {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: #f1f4fb;
    color: #51607f;
    font-weight: 700;
}

.catalog-tab.active {
    background: var(--rd-primary);
    color: #fff;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
}

.catalog-form-stack,
.catalog-double-stack {
    display: grid;
    gap: 18px;
}

.form-surface {
    padding: 20px;
}

.catalog-check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-hero {
    padding: 26px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

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

.settings-wrap {
    display: flex;
    justify-content: center;
}

.rdconnect-stack {
    width: min(100%, 980px);
    display: grid;
    gap: 18px;
}

.rdconnect-hub {
    width: min(100%, 1120px);
    display: grid;
    grid-template-columns: 320px 1fr;
    overflow: hidden;
}

.rdconnect-nav {
    padding: 24px;
    background: linear-gradient(180deg, #f8faff 0%, #eef2ff 100%);
    border-right: 1px solid var(--rd-border);
    display: grid;
    align-content: start;
    gap: 18px;
}

.rdconnect-nav-head {
    display: flex;
    gap: 14px;
    align-items: center;
}

.rdconnect-avatar {
    flex: 0 0 auto;
    background: linear-gradient(135deg, #4a5ad8, #202d63);
}

.rdconnect-nav-list {
    display: grid;
    gap: 10px;
}

.rdconnect-nav-item {
    width: 100%;
    border: 1px solid #dbe3f3;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    text-align: left;
    color: var(--rd-heading);
}

.rdconnect-nav-item strong,
.rdconnect-nav-item small {
    display: block;
}

.rdconnect-nav-item small {
    margin-top: 4px;
    color: var(--rd-muted);
    font-size: 0.84rem;
}

.rdconnect-nav-item.active {
    border-color: #9aa7f3;
    box-shadow: 0 12px 28px rgba(65, 88, 216, 0.12);
}

.rdconnect-nav-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #edf1ff;
    color: #5062de;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.rdconnect-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d6ddeb;
}

.rdconnect-status-dot.is-ready {
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.14);
}

.rdconnect-content {
    padding: 28px;
}

.rdconnect-panel {
    display: none;
}

.rdconnect-panel.active {
    display: block;
}

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

.rdconnect-panel-subtitle {
    margin-top: 4px;
}

.brand-uploader-card {
    border: 1px solid var(--rd-border);
    border-radius: 22px;
    background: linear-gradient(180deg, #fbfcff 0%, #f4f7fd 100%);
    padding: 18px;
    display: grid;
    gap: 14px;
}

.brand-uploader-card-inline {
    grid-template-columns: 118px 1fr;
    align-items: center;
}

.brand-uploader-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8995ad;
}

.brand-uploader-copy {
    color: var(--rd-muted);
    line-height: 1.5;
}

.brand-uploader-preview {
    width: 112px;
    height: 112px;
    border-radius: 28px;
    border: 1px dashed #cad5ea;
    background: #fff;
    display: grid;
    place-items: center;
    color: #4b5ed8;
    font-size: 2rem;
    font-weight: 800;
    overflow: hidden;
}

.brand-uploader-preview.has-image {
    border-style: solid;
}

.brand-uploader-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 10px;
}

.rdconnect-info-card {
    min-height: 100%;
    border: 1px solid var(--rd-border);
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfcff 0%, #f4f7fd 100%);
    padding: 16px 18px;
    display: grid;
    gap: 8px;
}

.rdconnect-info-card strong {
    color: var(--rd-heading);
}

.rdconnect-info-card span {
    color: var(--rd-muted);
    line-height: 1.5;
}

.rdconnect-placeholder {
    min-height: 320px;
    border: 1px dashed #d7dff1;
    border-radius: 24px;
    background: linear-gradient(180deg, #fbfcff 0%, #f6f8fd 100%);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 28px;
}

.rdconnect-placeholder i {
    font-size: 2rem;
    color: #7b8aed;
    margin-bottom: 10px;
}

.rdconnect-placeholder h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--rd-heading);
    margin-bottom: 8px;
}

.rdconnect-placeholder p {
    max-width: 520px;
    margin: 0;
    color: var(--rd-muted);
}

.settings-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    width: 100%;
    overflow: hidden;
}

.settings-card-side {
    padding: 28px;
    background: linear-gradient(180deg, #f7f9ff 0%, #eef2ff 100%);
    border-right: 1px solid var(--rd-border);
}

.settings-card-main {
    padding: 28px;
}

.settings-avatar {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: var(--rd-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    font-weight: 800;
}

.verify-inline {
    display: grid;
    gap: 10px;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--rd-heading);
}

.muted-block {
    color: var(--rd-muted);
}

.verify-copy {
    color: var(--rd-muted);
    line-height: 1.45;
    margin-bottom: 18px;
}

.backup-path-card {
    padding: 20px 22px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.backup-path-card.is-drop-target {
    border-color: #9cb8ff;
    box-shadow: 0 18px 44px rgba(65, 88, 216, 0.16);
    transform: translateY(-1px);
}

.backup-undo-form {
    margin: 0;
}

.backup-card-head {
    padding: 20px 22px 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.backup-card-head .section-title {
    margin-bottom: 0;
}

.backup-card-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.backup-select-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #dce4f2;
    background: #fff;
    color: #596783;
    font-weight: 700;
}

.backup-select-toggle input {
    accent-color: var(--rd-primary);
}

.backup-batch-toolbar {
    margin: 14px 22px 8px;
    padding: 14px 16px;
    border: 1px solid #d8e4f7;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f2f7ff 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.backup-batch-kicker {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7582a0;
}

.backup-batch-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.backup-batch-actions form {
    margin: 0;
}

.backup-browser-card .empty-state {
    margin: 16px 22px 22px;
}

.verify-modal-panel {
    width: min(100%, 760px);
}

.move-panel {
    width: min(100%, 760px);
}

.move-file-current {
    padding: 18px;
    border: 1px solid #e1e8f5;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    margin-bottom: 12px;
}

.move-file-kicker {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7684a2;
}

.move-file-name {
    margin-top: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--rd-heading);
    word-break: break-word;
}

.move-file-meta {
    margin-top: 4px;
    color: var(--rd-muted);
}

.move-file-path-row {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e6ecf7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #6f7f9d;
}

.move-file-path-row strong {
    color: var(--rd-heading);
    text-align: right;
    word-break: break-word;
}

.move-item-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.move-item-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #edf3ff;
    color: #45567a;
    font-weight: 700;
    max-width: 100%;
    word-break: break-word;
}

.move-item-pill.muted {
    background: #f4f7fb;
    color: #71809f;
}

.folder-tree-list {
    display: grid;
    gap: 10px;
}

.folder-tree-empty {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px dashed #d4def1;
    border-radius: 16px;
    background: #fbfdff;
    color: #70809f;
}

.folder-tree-option {
    display: block;
    cursor: pointer;
}

.folder-tree-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    padding-left: calc(16px + (var(--tree-level) * 22px));
    border-radius: 18px;
    border: 1px solid #dde5f3;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    transition: all 0.2s ease;
}

.folder-tree-option:hover .folder-tree-card {
    border-color: #c8d5eb;
    background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
}

.folder-tree-option input:checked + .folder-tree-card {
    border-color: color-mix(in srgb, var(--tree-color) 58%, white);
    box-shadow: 0 18px 32px rgba(65, 88, 216, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
}

.folder-tree-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--tree-color) 14%, white);
    color: var(--tree-color);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.folder-tree-icon.root {
    background: #edf2ff;
    color: #4158d8;
}

.folder-tree-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
    flex: 1 1 auto;
}

.folder-tree-copy strong {
    color: var(--rd-heading);
    font-size: 0.98rem;
}

.folder-tree-copy small {
    color: #74829d;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.folder-tree-option.is-current .folder-tree-card {
    border-style: solid;
}

.verify-match-hint {
    padding: 12px 14px;
    border: 1px solid #e2e8f4;
    border-radius: 14px;
    background: #f8fbff;
    color: #6f7f9d;
    font-size: 0.93rem;
}

.verify-system-card {
    border: 1px solid var(--rd-border);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    padding: 18px;
}

.verify-system-empty {
    color: #7d89a4;
    line-height: 1.5;
}

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

.verify-system-head h3 {
    margin: 4px 0 4px;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--rd-heading);
}

.verify-system-kicker {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8b96ad;
}

.verify-system-copy {
    color: #677792;
    font-size: 0.93rem;
}

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

.verify-system-grid div,
.verify-compare-item {
    display: grid;
    gap: 4px;
}

.verify-system-grid span,
.verify-compare-item span {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8a96ad;
}

.verify-system-grid strong,
.verify-compare-item strong {
    color: #21314f;
    font-weight: 700;
}

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

.verify-compare-item {
    padding: 14px;
    border: 1px solid #e3e9f4;
    border-radius: 16px;
    background: #fbfcff;
}

.verify-compare-item.wide {
    grid-column: 1 / -1;
}

.verify-results-panel {
    border: 1px solid var(--rd-border);
    border-radius: 18px;
    background: #fff;
    padding: 16px;
}

.verify-result-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.verify-result-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
}

.verify-result-item strong {
    display: block;
    color: var(--rd-heading);
}

.verify-result-item span {
    display: block;
    margin-top: 4px;
    color: #677792;
    font-size: 0.93rem;
    line-height: 1.4;
}

.verify-result-item i {
    font-size: 1rem;
    margin-top: 2px;
}

.verify-result-item.ok {
    background: #f3fbf6;
}

.verify-result-item.ok i {
    color: #16935f;
}

.verify-result-item.fail {
    background: #fff5f5;
}

.verify-result-item.fail i {
    color: #d54848;
}

.upload-dropzone {
    min-height: 88px;
    border: 1px dashed #d8def0;
    border-radius: 16px;
    display: grid;
    place-items: center;
    gap: 8px;
    color: #7e8aa4;
    cursor: pointer;
    text-align: center;
    padding: 16px;
}

.upload-dropzone i {
    font-size: 1.6rem;
    color: #7b8aed;
}

.modal-actions-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.modal-actions-split .btn {
    min-width: 0;
}

.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-swatch input {
    display: none;
}

.color-swatch span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: block;
    box-shadow: 0 0 0 2px transparent;
    cursor: pointer;
}

.color-swatch input:checked + span {
    box-shadow: 0 0 0 3px rgba(65, 88, 216, 0.3);
}

.permissions-strip {
    min-height: 42px;
    border: 1px solid var(--rd-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    gap: 12px;
}

.permissions-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--rd-muted);
    font-size: 0.92rem;
}

.toggle-switch input {
    display: none;
}

.toggle-ui {
    width: 34px;
    height: 20px;
    border-radius: 999px;
    background: #d7def6;
    position: relative;
    transition: 0.2s ease;
}

.toggle-ui::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.toggle-switch input:checked + .toggle-ui {
    background: #5b6de2;
}

.toggle-switch input:checked + .toggle-ui::after {
    left: 17px;
}

.user-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.user-box .fw-semibold {
    font-size: 0.96rem;
}

.audit-shell {
    padding: 22px;
}

.audit-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.audit-toolbar {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 160px 160px auto;
    gap: 14px;
    align-items: end;
    margin-top: 18px;
}

.audit-toolbar-actions {
    justify-content: flex-start;
}

.audit-module-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.audit-module-pill {
    text-decoration: none;
    border: 1px solid transparent;
}

.audit-module-pill.active {
    border-color: rgba(65, 88, 216, 0.18);
    box-shadow: inset 0 0 0 1px rgba(65, 88, 216, 0.08);
}

.audit-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.audit-highlight-table-wrap,
.audit-log-table-wrap {
    border: 1px solid var(--rd-border);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.audit-highlight-table thead th,
.audit-log-table thead th {
    background: #eef2f8;
    color: #20314d;
    font-weight: 800;
    font-size: 0.93rem;
    border-bottom: 1px solid #dde5f1;
    padding: 14px 12px;
}

.audit-highlight-table td,
.audit-log-table td {
    padding: 12px;
    vertical-align: top;
    border-color: #e7edf6;
}

.audit-action-title {
    font-weight: 700;
    color: var(--rd-heading);
}

.audit-action-key {
    margin-top: 4px;
    color: #8794ac;
    font-size: 0.83rem;
}

.audit-detail-copy {
    margin-top: 4px;
    color: #62728f;
    font-size: 0.93rem;
    line-height: 1.45;
}

.table {
    --bs-table-bg: transparent;
}

@media (max-width: 992px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
    }

    .sticky-top-form {
        position: static;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-hero,
    .dashboard-grid,
    .catalog-layout,
    .detail-grid-layout,
    .settings-card {
        grid-template-columns: 1fr;
    }

    .rdconnect-hub {
        grid-template-columns: 1fr;
    }

    .brand-uploader-card-inline {
        grid-template-columns: 1fr;
    }

    .rdconnect-nav {
        border-right: 0;
        border-bottom: 1px solid var(--rd-border);
    }

    .rdconnect-panel-head {
        flex-direction: column;
    }

    .dashboard-headline,
    .dashboard-grid-refined,
    .dashboard-stat-strip {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

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

    .catalog-company-bar,
    .catalog-section-head,
    .catalog-item-row {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-company-select,
    .catalog-company-readonly {
        width: 100%;
    }

    .detail-hero {
        flex-direction: column;
    }

    .modal-actions-split {
        grid-template-columns: 1fr;
    }

    .label-tabs,
    .label-template-grid,
    .label-check-grid,
    .label-save-model-row {
        grid-template-columns: 1fr;
    }

    .backup-batch-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .backup-batch-actions {
        justify-content: stretch;
    }

    .backup-batch-actions form,
    .backup-batch-actions .btn {
        width: 100%;
    }

    .folder-tree-card {
        padding-left: calc(14px + (var(--tree-level) * 14px));
    }

    .password-choice-head {
        flex-direction: column;
    }

    .label-modal-actions {
        flex-direction: column;
    }

    .backup-detail-hero,
    .backup-meta-item {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .backup-detail-grid {
        grid-template-columns: 1fr;
    }

    .verify-system-head,
    .verify-system-grid,
    .verify-compare-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .audit-head,
    .audit-section-head,
    .audit-toolbar {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .topbar-actions,
    .search-toolbar,
    .page-head,
    .backup-layout,
    .asset-grid,
    .metric-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .backup-layout {
        display: block;
    }

    .asset-grid,
    .metric-grid {
        display: grid;
    }

    .asset-grid {
        grid-template-columns: 1fr;
    }

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

    .page-wrap {
        padding: 20px 16px 24px;
    }

    .alert {
        margin-left: 16px;
        margin-right: 16px;
    }
}

@media (max-width: 640px) {
    .upload-progress-stats {
        grid-template-columns: 1fr;
    }
}