/**
 * Direct Edit - Admin UI
 * Layout: topbar + sidebar + main content
 */

@import url('fonts.css');
:root {
    --cds-interactive-01: #8A3FFC;
    --cds-interactive-01-hover: #7829E8;
    --cds-interactive-02: #393939;
    --cds-interactive-02-hover: #4C4C4C;
    --cds-background: #f4f4f4;
    --cds-ui-background: #ffffff;
    --cds-ui-03: #e0e0e0;
    --cds-text-01: #161616;
    --cds-text-02: #525252;
    --cds-field-01: #f4f4f4;
    --cds-danger: #da1e28;
    --cds-success: #24a148;
    --cds-warning: #f1c21b;
    --topbar-height: 48px;
    --sidebar-width: 224px;
}


/* ── RESET ────────────────────────────────── */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Direct Edit Plex', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--cds-text-01);
    background: var(--cds-background);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 300;
    color: var(--cds-text-01);
}

h1 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 24px;
    font-weight: 500;
}

h3 {
    font-size: 18px;
    font-weight: 600;
}

p {
    margin-bottom: 24px;
}

a {
    color: var(--cds-interactive-01);
    text-decoration: underline;
    cursor: pointer;    
}

a:hover {
    text-decoration: underline;
    color: var(--cds-interactive-01-hover);
}

.de-text-button {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.de-text-button:hover {
    color: inherit;
}

code,
pre {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 14px;
}


/* ── TOPBAR ──────────────────────────────── */

.de-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: #161616;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 500;
    border-bottom: 1px solid #393939;
}

.de-topbar-brand {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.de-topbar-brand img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.de-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.de-topbar-actions a,
.de-topbar-actions button {
    color: #c6c6c6;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.de-topbar-actions a:hover,
.de-topbar-actions button:hover:not(:disabled) {
    color: #ffffff;
    text-decoration: none;
}

.de-topbar-actions button:disabled {
    opacity: 0.5;
    cursor: progress;
}

.de-topbar-actions img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(0.7);
    transition: filter 0.15s;
}

.de-topbar-actions a:hover img {
    filter: brightness(0) invert(1);
}


/* ── APP SHELL ───────────────────────────── */

.de-app {
    display: flex;
    padding-top: var(--topbar-height);
    min-height: 100svh;
}


/* ── SIDEBAR ─────────────────────────────── */

.de-sidebar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: #ffffff;
    border-right: 1px solid var(--cds-ui-03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    z-index: 400;
}

.de-nav {
    padding: 8px 0;
}

.de-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--cds-text-01);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.1s;
    cursor: pointer;
    user-select: none;
}

.de-nav-item:hover {
    background: #f4f4f4;
    text-decoration: none;
    color: var(--cds-text-01);
}

.de-nav-item.active {
    background: #f0e8ff;
    border-left-color: var(--cds-interactive-01);
    color: var(--cds-interactive-01);
    font-weight: 600;
}

.de-nav-item img {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    flex-shrink: 0;
    filter: brightness(0);
}

.de-nav-item.active img {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(26%) sepia(96%) saturate(1641%) hue-rotate(255deg) brightness(98%) contrast(105%);
}

.de-nav-section {
    padding: 16px 16px 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--cds-text-02);
}

.de-nav-divider {
    border: none;
    border-top: 1px solid var(--cds-ui-03);
    margin: 8px 0;
}


/* ── SIDEBAR FOOTER ──────────────────────── */

.de-sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--cds-ui-03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.de-version {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--cds-interactive-01);
    background: #f0e8ff;
    padding: 2px 8px;
}

.de-version-date {
    font-size: 11px;
    color: var(--cds-text-02);
}

.de-language-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.de-language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d0d7de;
    background: #ffffff;
    padding: 10px 12px;
    cursor: pointer;
}

.de-language-option.is-selected {
    border-color: var(--cds-interactive-01);
    background: #f0e8ff;
}

.de-language-option input[type="radio"] {
    margin: 0;
}

.de-language-flag {
    display: block;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}


/* ── MAIN CONTENT ────────────────────────── */

.de-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 32px;
    min-height: calc(100svh - var(--topbar-height));
}


/* ── SECTIONS (tab switching) ────────────── */

.de-section {
    display: none;
}

.de-section.active {
    display: block;
}


/* ── STAT CARDS ──────────────────────────── */

.de-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.de-stat-card {
    background: #ffffff;
    border: 1px solid var(--cds-ui-03);
    padding: 20px 24px;
}

.de-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cds-text-02);
    margin-bottom: 8px;
}

.de-stat-value {
    font-size: 40px;
    font-weight: 300;
    line-height: 1;
    color: var(--cds-text-01);
}

.de-stat-action {
    margin-top: 28px;
    width: fit-content;
}

a.de-stat-card {
    display: block;
    text-decoration: none;
    transition: background 0.1s;
    color: inherit;
}

a.de-stat-card:hover {
    background: #f0e8ff;
}


/* ── SECTION HEADER ──────────────────────── */

.de-section-header {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--cds-ui-03);
    padding-bottom: 16px;
}

.de-section-header h1 {
    margin-bottom: 0;
}

.de-section-header-split {
    justify-content: space-between;
}

.de-section-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.backup-export-trigger {
    white-space: nowrap;
}


/* ── FILE LIST ───────────────────────────── */

.card {
    background: #ffffff;
    border: 1px solid var(--cds-ui-03);
    margin-bottom: 24px;
}

.display-none {
    display: none !important;
}

.de-search-card {
    padding: 20px 24px;
}

.de-search-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cds-text-01);
}

.de-search-controls {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}

.de-search-input {
    width: 100%;
    flex: 1 1 420px;
    height: 48px;
    padding: 0 14px;
    border: 2px solid #8d8d8d;
    background: #ffffff;
    font-family: 'Direct Edit Plex', sans-serif;
    font-size: 16px;
    color: var(--cds-text-01);
}

.de-search-input:focus {
    border-color: var(--cds-interactive-01);
    outline: 2px solid var(--cds-interactive-01);
    outline-offset: 1px;
}

.de-search-hint {
    margin-top: 10px;
    font-size: 13px;
    color: var(--cds-text-02);
    line-height: 1.5;
}

.de-search-empty {
    font-size: 13px;
    line-height: 1.5;
    color: var(--cds-text-02);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.de-search-empty {
    padding: 18px 24px;
}

.de-page-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    align-items: center;
}

.de-page-checklist-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    border: 1px solid #d0d7de;
    background: #ffffff;
    color: var(--cds-text-02);
    font: inherit;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

.de-page-checklist-dot {
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: #8d8d8d;
}

.de-page-checklist-badge.is-ok {
    border-color: #a7f0ba;
    background: #f6fff8;
}

.de-page-checklist-badge.is-ok .de-page-checklist-dot {
    background: #24a148;
}

.de-page-checklist-badge.is-warning {
    border-color: #ffd7d9;
    background: #fff8f8;
}

.de-page-checklist-badge.is-warning .de-page-checklist-dot {
    background: #da1e28;
}

.de-page-checklist-badge:focus-visible {
    outline: 2px solid var(--cds-interactive-01);
    outline-offset: 2px;
}

.page-list {
    border-top: 1px solid var(--cds-ui-03);
}

.page-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--cds-ui-03);
    transition: background 70ms;
}

.page-item:last-child {
    border-bottom: none;
}

.page-item:hover {
    background: #f4f4f4;
}

.page-actions-wrap {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.page-info strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
    color: var(--cds-interactive-01);
    word-break: break-all;
    overflow-wrap: anywhere;
}

.page-info .page-path {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
    color: var(--cds-text-02);
    word-break: break-all;
    overflow-wrap: anywhere;
}

.copy-file-dialog {
    width: min(620px, 100%);
}

.copy-file-source,
.copy-file-preview {
    margin-bottom: 18px;
    padding: 12px 14px;
    background: #f4f4f4;
    border-left: 4px solid var(--cds-interactive-01);
    font-size: 14px;
    line-height: 1.6;
}

.copy-file-source code,
.copy-file-preview code {
    display: inline-block;
    margin-left: 6px;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.de-dir-heading {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cds-text-02);
    margin: 24px 0 8px;
    padding-left: 12px;
    border-left: 3px solid var(--cds-interactive-01);
    word-break: break-all;
    overflow-wrap: anywhere;
}

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

.indexing-file-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    background: #f4f4f4;
    color: var(--cds-text-02);
}

.indexing-file-status.is-present {
    background: #defbe6;
    color: #0e6027;
}

.indexing-file-status.is-missing {
    background: #fff1f1;
    color: #a2191f;
}

.indexing-summary {
    padding: 16px 20px;
}

.indexing-summary div {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.indexing-summary code {
    padding: 2px 6px;
    background: #f4f4f4;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.indexing-summary p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--cds-text-02);
}

.indexing-table-head,
.indexing-page-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px 132px 132px;
    gap: 16px;
    align-items: center;
}

.indexing-table-head {
    padding: 10px 16px;
    background: #f4f4f4;
    border-bottom: 1px solid var(--cds-ui-03);
    color: var(--cds-text-02);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
}

.indexing-table-head span:nth-child(n+2) {
    justify-self: start;
    text-align: left;
}

.indexing-head-check {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    justify-self: start;
    width: 132px;
    color: var(--cds-text-02);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.indexing-head-check input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.indexing-noindex-cell {
    align-self: center;
    justify-self: start;
    width: 96px;
    min-height: 24px;
    text-align: left;
}

.indexing-warning {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    background: #fff1f1;
    color: #a2191f;
    font-size: 12px;
    font-weight: 600;
}

.indexing-check {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    width: 132px;
    min-height: 32px;
    color: var(--cds-text-01);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    justify-self: start;
}

.indexing-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.indexing-check-placeholder {
    align-self: center;
    justify-self: start;
    width: 132px;
    min-height: 32px;
}

.indexing-top-actions,
.indexing-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px 0 0;
}

.indexing-top-actions {
    padding: 0 0 18px;
}


/* ── BUTTONS ─────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 48px;
    padding: 0 16px;
    font-family: 'Direct Edit Plex', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: 0 !important;
    cursor: pointer;
    transition: background 70ms cubic-bezier(0, 0, 0.38, 0.9);
}

.btn-small {
    height: 32px;
    padding: 0 14px;
    font-size: 14px;
}

.btn-primary {
    background: var(--cds-interactive-01);
    color: #fff;
}

.btn-primary:hover {
    background: var(--cds-interactive-01-hover);
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background: var(--cds-interactive-02);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--cds-interactive-02-hover);
    color: #fff;
    text-decoration: none;
}

.btn-warning {
    background: var(--cds-danger);
    color: #fff;
}

.btn-warning:hover {
    background: #ba1b23;
    color: #fff;
    text-decoration: none;
}

.btn img {
    filter: brightness(0) invert(1);
}


/* ── FORMS ───────────────────────────────── */

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--cds-text-02);
    font-weight: 600;
}

.hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--cds-text-02);
    line-height: 1.4;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
select,
textarea {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: var(--cds-field-01);
    border: none;
    border-bottom: 1px solid #8d8d8d;
    border-radius: 0 !important;
    font-family: inherit;
    font-size: 16px;
    color: var(--cds-text-01);
    transition: all 0.1s;
}

textarea {
    height: auto;
    min-height: 120px;
    padding: 12px 16px;
}

input:hover,
select:hover,
textarea:hover {
    background: #e5e5e5;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--cds-interactive-01);
    outline-offset: -2px;
    background: #e5e5e5;
}

input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f4f4f4;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    text-transform: none;
    font-weight: 400;
    font-size: 14px;
}


/* ── ALERTS ──────────────────────────────── */

.alert-success,
.alert-error {
    padding: 12px 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: #defbe6;
    border-left: 4px solid #24a148;
    color: #0e6027;
}

.alert-error {
    background: #fff1f0;
    border-left: 4px solid #da1e28;
    color: #750e13;
}

.alert-success img,
.alert-error img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}


/* ── ACCOUNT PLACEHOLDER ─────────────────── */

.de-placeholder {
    background: #ffffff;
    border: 1px solid var(--cds-ui-03);
    padding: 48px;
    text-align: center;
    color: var(--cds-text-02);
}

.de-placeholder img {
    width: 48px;
    height: 48px;
    opacity: 0.2;
    margin-bottom: 16px;
}


/* ── LOGIN PAGE ──────────────────────────── */

.login-page {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cds-background);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 24px;
}

.login-box {
    background: #ffffff;
    padding: 48px;
    border-top: 4px solid var(--cds-interactive-01);
    text-align: center;
}

.login-box h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.login-box .subtitle {
    color: var(--cds-text-02);
    font-size: 14px;
    margin-bottom: 32px;
    max-width: none;
}

.login-form {
    text-align: left;
}

.login-form .form-group {
    margin-bottom: 24px;
}

.login-footer {
    margin-top: 24px;
    color: var(--cds-text-02);
}


/* ── UTILITIES ───────────────────────────── */

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

.mb-0 {
    margin-bottom: 0;
}

.text-muted {
    color: var(--cds-text-02);
}

.text-small {
    font-size: 14px;
}

.text-tiny {
    font-size: 11px;
}

.text-bold {
    font-weight: 600;
}

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

.text-uppercase {
    text-transform: uppercase;
}

.mt-1 {
    margin-top: 4px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 12px;
}

.mt-4 {
    margin-top: 16px;
}

.mb-1 {
    margin-bottom: 4px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-5 {
    margin-bottom: 20px;
}

.ml-1 {
    margin-left: 4px;
}

.ml-2 {
    margin-left: 8px;
}

.mr-1 {
    margin-right: 4px;
}

.mr-2 {
    margin-right: 8px;
}

.m-0 {
    margin: 0;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.display-inline {
    display: inline;
}

.display-block {
    display: block;
}

.display-flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-gap-2 {
    gap: 8px;
}

.flex-gap-4 {
    gap: 16px;
}

.flex-gap-6 {
    gap: 24px;
}

.p-0 {
    padding: 0;
}

.p-5 {
    padding: 48px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 12px;
}

.mt-4 {
    margin-top: 16px;
}

.border-light {
    border: 1px solid var(--cds-ui-03);
}

.border-top-none {
    border-top: none;
}

.w-100 {
    width: 100%;
}

.h-auto {
    height: auto;
}

.no-resize {
    resize: none;
}

.break-all {
    word-break: break-all;
}

.no-transform {
    text-transform: none;
}

.ls-sm {
    letter-spacing: 0;
}

.min-w-110 {
    min-width: 110px;
}

.flex-gap-1 {
    gap: 4px;
}

.flex-gap-2 {
    gap: 8px;
}

.w-100 {
    width: 100%;
}

.h-auto {
    height: auto;
}

.no-max-width {
    max-width: none;
}

.no-resize {
    resize: none;
}

.bg-white {
    background: #ffffff;
}

.border-light {
    border: 1px solid var(--cds-ui-03);
}

.ls-1 {
    letter-spacing: 1px;
}

.ls-2 {
    letter-spacing: 2px;
}

.ls-sm {
    letter-spacing: 0;
}

.no-transform {
    text-transform: none;
}


/* -- SPECIFIC UTILITIES -- */

.badge-self {
    font-size: 11px;
    color: var(--cds-interactive-01);
    margin-left: 6px;
    font-weight: 600;
}

.hint-inline {
    font-size: 14px;
    color: var(--cds-text-02);
    margin-bottom: 20px;
    margin-top: -8px;
}

.otp-code-input {
    font-size: 20px;
    letter-spacing: 6px;
    text-align: center;
}

.otp-secret-box {
    display: block;
    background: #f4f4f4;
    padding: 8px 12px;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 16px;
    word-break: break-all;
}


/* ============================================================
   RESPONSIVE BREAKPOINTS
   tablet portrait:   < 992px
   mobile landscape:  < 768px
   mobile portrait:   < 478px
   ============================================================ */


/* -- Tablet portrait (< 992px) ------------------------------ */

@media (max-width: 992px) {
    .de-main {
        padding: 24px;
    }
    .de-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    h1 {
        font-size: 32px;
    }
    h2 {
        font-size: 22px;
    }
}


/* -- Mobile (< 768px) -- sidebar becomes top nav bar -------- */

@media (max-width: 768px) {
    /* Stack layout */
    .de-app {
        flex-direction: column;
    }
    .de-main {
        margin-left: 0 !important;
        padding: 16px;
    }
    /* Reset ALL desktop sidebar fixed positioning */
    .de-sidebar {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        top: auto !important;
        left: auto !important;
        bottom: auto !important;
        overflow: visible !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        border-right: none;
        border-bottom: 2px solid var(--cds-ui-03);
    }
    .de-sidebar-footer {
        display: none !important;
    }
    /* Nav: wrap all items across full width */
    .de-nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        overflow: visible !important;
        padding: 0 !important;
        width: 100%;
    }
    /* 5 items / 20% each = one row, always fits */
    .de-nav-item {
        flex: 1 1 20% !important;
        max-width: 20% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        padding: 10px 4px !important;
        font-size: 10px !important;
        text-align: center;
        border-left: none !important;
        border-bottom: 3px solid transparent !important;
        white-space: normal;
        overflow: visible !important;
        line-height: 1.2;
        height: auto;
    }
    .de-nav-item img {
        width: 18px;
        height: 18px;
    }
    .de-nav-item.active {
        border-left: none !important;
        border-bottom-color: var(--cds-interactive-01) !important;
    }
    .de-nav-section,
    .de-nav-divider {
        display: none !important;
    }
    /* Stats: 3 columns on landscape */
    .de-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .de-stat-value {
        font-size: 28px;
    }
    /* File list: wrap action buttons below name */
    .page-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    .page-item>div:last-child {
        width: 100%;
        justify-content: flex-end;
    }
    .indexing-page-item {
        display: grid;
        grid-template-columns: 96px 132px 132px;
        align-items: center;
    }
    .indexing-page-item .page-info {
        grid-column: 1 / -1;
    }
    .indexing-table-head {
        grid-template-columns: minmax(0, 1fr) 96px 132px 132px;
        overflow-x: auto;
    }
    .indexing-noindex-cell {
        justify-self: start;
    }
    .indexing-warning {
        justify-self: start;
    }
    .indexing-check {
        justify-self: start;
    }
    .indexing-check-placeholder {
        justify-self: start;
    }
    .indexing-top-actions,
    .indexing-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    /* Users table: convert to card layout */
    .user-table,
    .user-table tbody,
    .user-table tr,
    .user-table td {
        display: block !important;
        box-sizing: border-box;
    }
    .user-table thead {
        display: none !important;
    }
    .user-table tr {
        border-bottom: 2px solid #e0e0e0;
        padding: 12px 16px;
    }
    .user-table td {
        display: flex !important;
        align-items: center;
        gap: 8px;
        padding: 4px 0 !important;
        border: none !important;
        width: 100% !important;
    }
    .user-table td[data-label]::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 600;
        color: #525252;
        min-width: 80px;
        flex-shrink: 0;
        text-transform: uppercase;
        letter-spacing: .3px;
    }
    .user-table td.td-actions {
        justify-content: flex-end;
        padding-top: 8px !important;
    }
    .user-table td.td-actions::before {
        display: none;
    }
    /* Add-user form: full width */
    .add-form {
        max-width: 100% !important;
        padding: 20px 16px !important;
    }
}


/* -- Mobile portrait (< 478px) ------------------------------ */

@media (max-width: 478px) {
    .de-main {
        padding: 12px;
    }
    /* Stats: one card per row */
    .de-stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .de-stat-card {
        padding: 16px 20px;
    }
    .de-stat-value {
        font-size: 36px;
    }
    .de-stat-label {
        font-size: 13px;
    }
    .de-section-header h2 {
        font-size: 18px;
    }
}


/* -- USER MANAGEMENT -- */

.user-table-wrap {
    background: #fff;
    border: 1px solid var(--cds-ui-03);
    overflow-x: auto;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.user-table th {
    text-align: left;
    background: #f4f4f4;
    padding: 12px 16px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--cds-text-02);
    border-bottom: 2px solid var(--cds-ui-03);
}

.user-table td {
    padding: 16px;
    border-bottom: 1px solid var(--cds-ui-03);
    vertical-align: middle;
}

.user-table tr:hover td {
    background: #f9f9f9;
}

.user-table .col-date {
    white-space: nowrap;
    color: var(--cds-text-02);
}

.user-table .td-actions {
    text-align: right;
}

.badge-2fa {
    background: #defbe6;
    color: #0e6027;
    font-size: 11px;
    padding: 2px 8px;
    font-weight: 600;
}

.add-form {
    background: #fff;
    border: 1px solid var(--cds-ui-03);
    padding: 28px 28px 24px;
    max-width: 480px;
    margin-top: 32px;
}


/* -- SUPPORT PAGE & OTHERS -- */

.support-container {
    max-width: 800px;
}

.support-card {
    background: #fff;
    border: 1px solid var(--cds-ui-03);
    padding: 32px;
    margin-bottom: 24px;
}

.support-header {
    margin-bottom: 32px;
    border-bottom: 1px solid #f4f4f4;
    padding-bottom: 16px;
}

.support-row {
    display: flex;
    margin-bottom: 16px;
    font-size: 14px;
}

.support-label {
    width: 150px;
    color: var(--cds-text-02);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
}

.support-value {
    flex: 1;
}

.support-link {
    color: var(--cds-interactive-01);
    font-weight: 600;
}

.cta-box {
    margin-top: 32px;
    padding: 24px;
    background: #f0e8ff;
    border-left: 4px solid var(--cds-interactive-01);
}

.cta-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.cta-text {
    font-size: 14px;
    color: var(--cds-text-02);
    line-height: 1.5;
}

.tip-list {
    font-size: 14px;
    color: var(--cds-text-02);
    line-height: 1.6;
    padding-left: 20px;
}

.tip-list li {
    margin-bottom: 8px;
}

.de-onboarding-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) ;
    gap: 20px;
    align-items: start;
}

.de-onboarding-block {
    border: 1px solid var(--cds-ui-03);
    background: #fafafa;
    padding: 20px;
    min-width: 0;
    overflow: hidden;
    height: 100%;
}

.de-onboarding-block.grid-2-columns {
    grid-column: span 2;
}

.de-onboarding-block h3 {
    margin-bottom: 12px;
}

.de-onboarding-list {
    margin: 0;
}

.de-onboarding-list li {
    margin-bottom: 10px;
}

.de-onboarding-example {
    margin: 14px 0 0;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--cds-ui-03);
    overflow-x: auto;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.5;
}

.de-onboarding-example code {
    display: block;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.de-live-faq {
    background: #f8f4ff;
    border-color: #d8c7ff;
}

.de-live-faq-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.de-live-faq-status {
    margin: 0;
    color: var(--cds-text-02);
    font-size: 14px;
}

.de-live-faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.de-live-faq-item {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--cds-ui-03);
    padding: 18px;
}

.de-live-faq-item h3 {
    margin-bottom: 8px;
}

.de-live-faq-item p {
    margin: 0;
    color: var(--cds-text-02);
    font-size: 14px;
}

.de-live-faq-code {
    margin: 14px 0 0;
    padding: 14px 16px;
    max-width: 100%;
    overflow-x: auto;
    background: var(--cds-field-01);
    border: 1px solid var(--cds-ui-03);
    color: var(--cds-text-01);
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre;
}

.de-live-faq-code code {
    font: inherit;
    color: inherit;
}

@media (max-width: 1400px) {
    .de-onboarding-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .de-onboarding-block.grid-2-columns {
        grid-column: span 2;
    }
}

@media (max-width: 860px) {
    .de-onboarding-grid {
        grid-template-columns: 1fr;
    }

    .de-live-faq-list {
        grid-template-columns: 1fr;
    }

    .de-onboarding-block.grid-2-columns {
        grid-column: auto;
    }
}


/* -- SETTINGS PAGE -- */

.settings-container {
    max-width: 600px;
}

.settings-card {
    background: #fff;
    border: 1px solid var(--cds-ui-03);
    padding: 32px;
}

.settings-card h2 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--cds-text-02);
    margin-bottom: 16px;
    margin-top: 32px;
    border-bottom: 1px solid #f4f4f4;
    padding-bottom: 8px;
}

.settings-card section:first-child h2 {
    margin-top: 0;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 16px 0;
    user-select: none;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    text-transform: none;
    font-size: 14px;
    color: var(--cds-text-01);
    letter-spacing: 0;
}

.settings-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 2px solid #f4f4f4;
}

.settings-notice {
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.45;
    border-left: 4px solid var(--cds-ui-04);
    background: #f4f4f4;
}

.settings-notice-ok {
    border-left-color: var(--cds-success);
    background: #defbe6;
    color: #0e6027;
}

.settings-notice-warning {
    border-left-color: var(--cds-warning);
    background: #fff4ce;
    color: #684e00;
}

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

.settings-inline-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.settings-inline-checks label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    color: var(--cds-text-01);
    font-weight: 400;
}

.settings-inline-checks input {
    width: 18px;
    height: 18px;
}

.hint {
    font-size: 12px;
    color: var(--cds-text-02);
    line-height: 1.4;
    display: block;
}


/* -- PROFILE PAGE -- */

.profile-section {
    background: #fff;
    border: 1px solid var(--cds-ui-03);
    padding: 24px;
    margin-bottom: 24px;
}

.profile-section h2 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.profile-section form {
    max-width: 400px;
}

@media (max-width: 768px) {
    .profile-section form {
        max-width: 100%;
    }
}

.badge-status {
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
}

.badge-status-on {
    background: #defbe6;
    color: #0e6027;
}

.badge-status-off {
    background: #f4f4f4;
    color: var(--cds-text-02);
    font-weight: 400;
}

.recovery-codes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 16px 0;
}

.recovery-code {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 16px;
    background: #f4f4f4;
    padding: 8px 12px;
    letter-spacing: 2px;
}

.qr-block {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin: 16px 0;
    flex-wrap: wrap;
}


/* -- BACKUPS PAGE -- */

.backup-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 16px;
    border-bottom: 1px solid var(--cds-ui-03);
    gap: 16px;
}

.backup-item:last-child {
    border-bottom: none;
}

.backup-info {
    flex: 1;
    min-width: 0;
}

.backup-name {
    font-weight: 500;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.backup-meta {
    font-size: 12px;
    color: var(--cds-text-02);
    margin-top: 4px;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.backup-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.export-modal {
    position: fixed;
    inset: 0;
    background: rgba(22, 22, 22, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
}

.export-modal-dialog {
    width: min(860px, 100%);
    max-height: calc(100svh - 48px);
    overflow: auto;
    background: #ffffff;
    border: 1px solid var(--cds-ui-03);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}

.export-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--cds-ui-03);
}

.export-modal-header h2 {
    margin: 0 0 8px;
}

.export-modal-subtitle {
    margin: 0;
    color: var(--cds-text-02);
    max-width: 680px;
}

.export-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: var(--cds-text-02);
    flex-shrink: 0;
}

.export-modal-body {
    padding: 24px;
}

.checklist-detail-dialog {
    width: min(640px, 100%);
}

.checklist-detail-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checklist-detail-item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--cds-ui-03);
    background: #f4f4f4;
}

.checklist-detail-link-main {
    color: var(--cds-text-01);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.checklist-detail-link-meta {
    color: var(--cds-text-02);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.checklist-detail-link-target {
    width: fit-content;
    max-width: 100%;
    padding: 2px 5px;
    background: #ffffff;
    color: var(--cds-text-02);
    font-size: 12px;
    overflow-wrap: anywhere;
    white-space: normal;
}

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

.export-option-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--cds-ui-03);
    background: #ffffff;
    cursor: pointer;
}

.export-option-card input {
    margin-top: 2px;
}

.export-option-copy {
    display: grid;
    gap: 4px;
}

.export-option-copy strong {
    font-size: 15px;
    color: var(--cds-text-01);
}

.export-option-copy span {
    font-size: 12px;
    line-height: 1.5;
    color: var(--cds-text-02);
    word-break: break-word;
}

.export-limit-box {
    margin-top: 20px;
    padding: 16px 18px;
    border-left: 4px solid var(--cds-interactive-01);
    background: #f4f4f4;
}

.export-limit-box strong {
    display: block;
    margin-bottom: 8px;
}

.export-limit-box p {
    margin: 0 0 8px;
    color: var(--cds-text-02);
}

.export-limit-box p:last-child {
    margin-bottom: 0;
}

.export-progress {
    margin-top: 20px;
    padding: 16px 18px;
    background: #f4f4f4;
    border: 1px solid var(--cds-ui-03);
}

.export-progress-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

.export-progress-bar {
    position: relative;
    width: 100%;
    height: 12px;
    overflow: hidden;
    background: #dde1e6;
}

.export-progress-bar-fill {
    position: absolute;
    inset: 0;
    width: 40%;
    background: linear-gradient(90deg, var(--cds-interactive-01), #8a3ffc);
    animation: export-progress-slide 1.25s ease-in-out infinite;
}

.export-progress.is-complete .export-progress-bar-fill {
    width: 100%;
    transform: none;
    animation: none;
    background: linear-gradient(90deg, #24a148, #42be65);
}

.export-progress-copy {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--cds-text-02);
}

.export-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

body.de-modal-open {
    overflow: hidden;
}

@keyframes export-progress-slide {
    0% {
        transform: translateX(-110%);
    }
    100% {
        transform: translateX(280%);
    }
}

.view-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.view-modal-content {
    background: #fff;
    width: 90%;
    max-width: 900px;
    height: 80vh;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.view-modal-content textarea {
    flex: 1;
    width: 100%;
    margin-top: 12px;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 13px;
    resize: none;
    border: 1px solid var(--cds-ui-03);
    padding: 12px;
    background: #f4f4f4;
}

.view-modal-content iframe {
    flex: 1;
    width: 100%;
    margin-top: 12px;
    border: 1px solid var(--cds-ui-03);
    background: #ffffff;
}

@media (max-width: 768px) {
    .de-section-header-split {
        align-items: stretch;
        flex-direction: column;
    }
    .de-section-header-actions {
        margin-left: 0;
    }
    .backup-export-trigger {
        width: 100%;
        justify-content: center;
    }
    .export-modal {
        padding: 12px;
    }
    .export-options-grid {
        grid-template-columns: 1fr;
    }
    .export-modal-header,
    .export-modal-body {
        padding: 18px;
    }
    .export-modal-actions {
        flex-direction: column-reverse;
    }
    .export-modal-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .backup-page-item {
        flex-direction: column;
        gap: 10px;
    }
    .backup-actions-wrap {
        width: 100%;
        justify-content: flex-start;
    }
}


/* -- LOGIN PAGE TABS -- */

.login-tabs {
    display: flex;
    border-bottom: 2px solid var(--cds-ui-03);
    margin-bottom: 24px;
}

.login-tab {
    flex: 1;
    display: block;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    border: none;
    background: none;
    color: var(--cds-text-02);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    text-decoration: none;
}

.login-tab a{
    text-decoration: none;
}

.login-tab.active {
    color: var(--cds-interactive-01);
    border-bottom-color: var(--cds-interactive-01);
    font-weight: 600;
}

.tab-panel {
    display: none;
}

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

.alert-warning {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    color: #e65100;
    margin-bottom: 24px;
    padding: 16px;
}

.bg-white-50 {
    background: rgba(255, 255, 255, 0.5);
}

.p-3 {
    padding: 12px;
}

.icon-white {
    filter: brightness(0) invert(1);
}

.opacity-6 {
    opacity: 0.6;
}

.mt-5 {
    margin-top: 32px;
}

.otp-code-input {
    font-size: 24px !important;
    letter-spacing: 8px;
    text-align: center;
    font-family: Consolas, 'Courier New', monospace;
}

.otp-secret-box {
    display: block;
    padding: 16px;
    background: #f4f4f4;
    border: 1px solid var(--cds-ui-03);
    font-family: Consolas, 'Courier New', monospace;
    font-size: 14px;
    margin-bottom: 16px;
    word-break: break-all;
    font-weight: 600;
    color: var(--cds-interactive-01);
}

.hint-inline {
    font-size: 13px;
    color: var(--cds-text-02);
    margin-bottom: 16px;
    display: block;
}

.settings-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: flex-start;
}

@media (max-width: 1100px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }
}

.system-info-panel {
    background: #f4f4f4;
    padding: 24px;
}

.info-group {
    margin-bottom: 16px;
}

.info-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--cds-text-02);
    margin-bottom: 4px;
    opacity: 0.8;
}

.info-value {
    font-size: 14px;
    font-family: Consolas, 'Courier New', monospace;
    color: var(--cds-text-01);
    word-break: break-all;
    line-height: 1.4;
}

.info-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status-ok {
    color: var(--cds-success);
}

.status-err {
    color: var(--cds-danger);
}


/* ── THEME PICKER (SETTINGS) ──────────────── */

.de-theme-picker {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.de-theme-picker .de-color-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    box-sizing: border-box;
    border: 3px solid #e0e0e0;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.de-theme-picker .de-color-dot img {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.de-theme-picker .de-color-dot:hover {
    transform: scale(1.1);
    border-color: #c6c6c6;
}

.de-theme-picker .de-color-dot.active {
    box-shadow: 0 0 0 2px var(--cds-text-01), 0 0 0 4px #ffffff;
    border-color: #ffffff;
}

.backup-page-item {
    align-items: flex-start;
}

.backup-page-info strong {
    color: var(--cds-text-01);
}

.backup-actions-wrap {
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.de-license-callout {
    margin: 16px;
    padding: 14px 14px 12px;
    background: #fff8e1;
    border-left: 4px solid #f1c21b;
}

.de-license-callout strong {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #8a3b00;
}

.de-license-callout p {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.45;
    color: #6f3700;
    max-width: none;
}

.de-license-callout a {
    font-size: 12px;
    font-weight: 600;
    color: #8a3ffc;
}

.license-status-card {
    background: #ffffff;
    border: 1px solid var(--cds-ui-03);
    padding: 24px;
    margin-bottom: 24px;
}

.license-status-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 14px;
}

.license-status-row:last-child {
    border-bottom: none;
}

.license-status-label {
    color: var(--cds-text-02);
    min-width: 140px;
}

.license-status-value {
    font-family: Consolas, 'Courier New', monospace;
    text-align: right;
    word-break: break-all;
}

.license-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.license-status-active {
    background: #defbe6;
    color: #0e6027;
}

.license-status-warning {
    background: #fff3e0;
    color: #8a3b00;
}

.license-status-trial {
    background: #fff3e0;
    color: #8a3b00;
}

.license-status-muted {
    background: #f4f4f4;
    color: #525252;
}

.license-status-emphasis {
    font-weight: 700;
    color: #161616;
}

.license-trial-callout {
    margin: 16px 0 20px;
    padding: 18px 20px;
    border: 1px solid #ffd08a;
    background: linear-gradient(135deg, #fff8ef 0%, #fff1dc 100%);
    border-radius: 12px;
}

.license-trial-callout-expired {
    border-color: #ffd7d9;
    background: linear-gradient(135deg, #fff5f5 0%, #fff1f0 100%);
}

.license-trial-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #a15300;
    margin-bottom: 8px;
}

.license-trial-callout-expired .license-trial-kicker {
    color: #b42318;
}

.license-trial-days {
    font-family: 'Direct Edit Plex', sans-serif;
    font-size: 44px;
    line-height: 1;
    font-weight: 700;
    color: #8a3b00;
    margin-bottom: 6px;
}

.license-trial-caption {
    font-size: 14px;
    color: #8a4b10;
}

.license-trial-expired {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    color: #b42318;
}
