:root {
    --bg: #f7fafc;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --text: #0f1f2a;
    --muted: #506775;
    --accent: #00547e;
    --accent-dark: #003a58;
    --accent-hover: #006b9f;
    --line: #d7e5ec;
    --success: #1d6a44;
    --danger-bg: #fff1ec;
    --shadow: 0 18px 44px rgba(0, 43, 66, 0.1);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --motion-fast: 0.18s ease;
    --file-accent: #00547e;
    --file-accent-strong: #006b9f;
    --file-accent-dark: #003a58;
    --file-accent-soft: #e6f3f8;
    --file-deep: #0d2433;
}

.files-hero,
.file-detail-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    margin: 42px auto 24px;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid color-mix(in srgb, var(--file-accent-strong) 16%, transparent);
    border-radius: 34px;
    background:
        radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--file-accent-strong) 18%, transparent), transparent 32%),
        linear-gradient(135deg, rgba(235, 246, 255, 0.96), rgba(255, 255, 255, 0.9));
    box-shadow: 0 28px 70px rgba(0, 43, 66, 0.1);
}

.files-hero h1,
.file-detail-hero h1 {
    max-width: 820px;
    margin: 8px 0 18px;
    font-family: "Space Grotesk", "Inter", sans-serif;
    color: var(--public-text, #10212b);
    font-size: clamp(2.4rem, 5vw, 4.9rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.files-hero {
    grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.78fr);
    gap: clamp(20px, 3.5vw, 46px);
    margin-top: 28px;
    padding: clamp(22px, 3.5vw, 38px);
    border-radius: 28px;
}

.files-hero h1 {
    max-width: 620px;
    margin: 6px 0 12px;
    font-size: clamp(1.95rem, 3.2vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.files-hero p {
    max-width: 590px;
    font-size: clamp(0.98rem, 1.25vw, 1.08rem);
    line-height: 1.58;
}

.file-detail-title.is-long-title {
    font-size: clamp(2.1rem, 4.2vw, 3.75rem);
    letter-spacing: -0.035em;
}

.file-detail-title.is-very-long-title {
    font-size: clamp(1.85rem, 3.1vw, 2.75rem);
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.file-detail-title.has-technical-title {
    font-size: clamp(2.2rem, 4vw, 3.7rem);
    letter-spacing: -0.035em;
}

.file-detail-title.is-long-title.has-technical-title {
    font-size: clamp(1.9rem, 3vw, 2.65rem);
    line-height: 1.14;
}

.file-detail-title.is-very-long-title.has-technical-title {
    font-size: clamp(1.85rem, 2.75vw, 2.55rem);
    line-height: 1.18;
}

.files-hero p,
.file-detail-hero p {
    max-width: 720px;
    color: var(--public-muted, var(--muted));
    font-size: clamp(1.02rem, 1.8vw, 1.24rem);
    line-height: 1.7;
}

.files-hero-actions,
.file-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.files-hero .files-hero-actions {
    margin-top: 22px;
}

.files-hero-visual {
    position: relative;
    min-height: 270px;
    border-radius: 26px;
    background:
        linear-gradient(150deg, rgba(0, 84, 126, 0.14), rgba(0, 107, 159, 0.07)),
        repeating-linear-gradient(135deg, rgba(0, 84, 126, 0.07) 0 1px, transparent 1px 16px);
}

.files-folder {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 158px;
    height: 126px;
    transform: translate(-50%, -50%) rotate(-6deg);
    border: 1px solid rgba(0, 84, 126, 0.18);
    border-radius: 28px;
    background: linear-gradient(145deg, #ffffff, #e8f5ff);
    box-shadow: 0 24px 56px rgba(0, 84, 126, 0.18);
}

.files-folder::before {
    content: "";
    position: absolute;
    left: 18px;
    top: -18px;
    width: 74px;
    height: 28px;
    border-radius: 16px 16px 0 0;
    background: #e8f5ff;
    border: 1px solid rgba(0, 84, 126, 0.16);
    border-bottom: 0;
}

.files-folder .material-symbols-outlined {
    color: var(--file-accent);
    font-size: 54px;
}

.files-folder strong {
    color: var(--file-accent-dark);
    letter-spacing: 0.18em;
}

.files-orbit {
    position: absolute;
    inset: 42px;
    border: 1px dashed color-mix(in srgb, var(--file-accent-strong) 34%, transparent);
    border-radius: 50%;
    animation: files-orbit 16s linear infinite;
}

.files-orbit-two {
    inset: 82px 28px;
    transform: rotate(36deg);
    animation-duration: 22s;
    animation-direction: reverse;
}

.files-chip {
    position: absolute;
    display: grid;
    place-items: center;
    min-width: 66px;
    height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    background: #fff;
    color: var(--file-accent);
    font-weight: 800;
    box-shadow: 0 14px 34px rgba(0, 43, 66, 0.12);
    animation: files-float 4.8s ease-in-out infinite;
}

.files-chip-pdf {
    left: 12%;
    top: 22%;
}

.files-chip-zip {
    right: 12%;
    top: 18%;
    animation-delay: -1.4s;
}

.files-chip-git {
    right: 20%;
    bottom: 16%;
    animation-delay: -2.6s;
}

.files-cable {
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: 48px;
    height: 12px;
    border-bottom: 5px solid color-mix(in srgb, var(--file-accent-strong) 24%, transparent);
    border-radius: 50%;
}

.files-guide-card,
.files-section,
.file-detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto;
}

.files-guide-card {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(300px, 1fr);
    gap: 24px;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff, #eef7ff);
    box-shadow: var(--shadow);
}

.files-guide-card h2,
.files-section h2,
.file-content-card h2,
.file-side-card h2 {
    margin: 0 0 10px;
    font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.files-guide-card p {
    margin: 0;
    color: var(--public-muted, var(--muted));
    line-height: 1.65;
}

.files-product-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 16px !important;
    padding: 8px 12px;
    border: 1px solid rgba(0, 84, 126, 0.11);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: color-mix(in srgb, var(--public-muted, var(--muted)) 88%, var(--file-accent-dark));
    font-size: 0.9rem;
}

.files-product-note .material-symbols-outlined {
    color: var(--file-accent-dark);
    font-size: 1.05rem;
}

.files-guide-steps {
    display: grid;
    gap: 10px;
}

.files-guide-steps a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 84, 126, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--public-text, var(--text));
    text-decoration: none;
}

.files-guide-steps span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--file-accent);
    color: #fff;
    font-weight: 800;
}

.files-section {
    padding: 30px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 24px 62px rgba(0, 43, 66, 0.07);
}

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

.files-section-link {
    color: var(--file-accent-dark);
    font-weight: 800;
    text-decoration: none;
}

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

.files-category-card,
.files-library-card,
.files-row-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 84, 126, 0.1);
    background: rgba(255, 255, 255, 0.84);
    color: var(--public-text, var(--text));
    text-decoration: none;
    transition: transform var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast);
}

.files-category-card:hover,
.files-library-card:hover,
.files-row-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--file-accent-strong) 34%, transparent);
    box-shadow: 0 18px 44px rgba(0, 84, 126, 0.13);
}

.files-category-card {
    min-height: 198px;
    padding: 20px;
    border-radius: 24px;
}

.files-category-card .material-symbols-outlined,
.files-library-card .material-symbols-outlined,
.files-row-card > .material-symbols-outlined {
    color: var(--file-accent);
}

.files-category-card .material-symbols-outlined {
    font-size: 34px;
}

.files-category-card strong,
.files-library-card strong,
.files-row-card strong {
    display: block;
    margin-top: 12px;
    font-size: 1.05rem;
}

.files-category-card p,
.files-library-card p {
    color: var(--public-muted, var(--muted));
    line-height: 1.5;
}

.files-category-card small,
.files-library-card small,
.files-row-card small {
    color: var(--public-muted, var(--muted));
}

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

.files-library-card {
    min-height: 210px;
    padding: 18px;
    border-radius: 24px;
}

.files-library-card .material-symbols-outlined {
    font-size: 30px;
}

.files-compact-list {
    columns: 3 260px;
    column-gap: 18px;
}

.files-compact-list a {
    break-inside: avoid;
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0 0 10px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 84, 126, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--public-text, var(--text));
    text-decoration: none;
}

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

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

.files-row-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 110px;
    padding: 18px;
    border-radius: 22px;
}

.files-row-card > .material-symbols-outlined {
    margin-top: 2px;
    font-size: 32px;
}

.files-row-card strong {
    margin-top: 0;
}

.files-breadcrumbs {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
}

.file-detail-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    align-items: start;
}

.file-detail-hero-releases {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
    padding-block: clamp(28px, 4vw, 46px);
}

.file-detail-hero-releases .file-detail-copy {
    max-width: 860px;
}

.file-detail-hero-releases h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 4.2vw, 3.85rem);
    line-height: 0.98;
    color: var(--public-text, #10212b);
}

.file-detail-hero-releases .file-detail-copy > p:not(.landing-kicker) {
    max-width: 720px;
}

.file-hero-repo {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: fit-content;
    max-width: 100%;
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 107, 159, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 16px 34px rgba(0, 84, 126, 0.08);
}

.file-hero-repo > .material-symbols-outlined {
    display: grid;
    place-items: center;
    min-width: 38px;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: var(--file-deep);
    color: #ffffff;
    font-size: 24px;
}

.file-hero-repo a {
    display: inline-block;
    color: var(--file-accent);
    font-weight: 900;
    overflow-wrap: anywhere;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

body.public-page .file-hero-repo a,
html.public-theme-dark body.public-page .file-hero-repo a {
    color: var(--file-accent);
}

.file-hero-repo small {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    color: var(--public-muted, #405866);
    font-size: 0.84rem;
    line-height: 1.35;
}

.file-hero-repo small span {
    position: relative;
    padding-left: 10px;
}

.file-hero-repo small span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--file-accent) 42%, transparent);
}

.file-version-panel {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-left: clamp(18px, 3vw, 30px);
    border-left: 1px solid color-mix(in srgb, var(--file-accent) 14%, transparent);
}

.file-version-panel::after {
    content: none;
}

.file-version-panel-head,
.file-version-latest,
.file-version-list {
    position: relative;
    z-index: 1;
}

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

.file-version-panel-head h2 {
    margin: 4px 0 0;
    color: var(--public-text, #10212b);
    font-size: clamp(1.35rem, 2.5vw, 1.9rem);
    letter-spacing: -0.04em;
}

body.public-page .file-version-panel-head h2,
html.public-theme-dark body.public-page .file-version-panel-head h2 {
    color: var(--public-text, #10212b);
}

.file-version-panel-head > .material-symbols-outlined {
    display: none;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--file-deep);
    color: #ffffff;
    font-size: 30px;
    box-shadow: 0 16px 34px rgba(13, 36, 51, 0.22);
}

.file-version-latest {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, var(--file-accent-strong) 20%, transparent);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--public-text, var(--text));
    text-decoration: none;
    transition: transform var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast);
}

.file-version-latest:hover,
.file-version-item:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--file-accent-strong) 42%, transparent);
    box-shadow: 0 16px 32px rgba(0, 84, 126, 0.12);
}

.file-version-latest.is-disabled,
.file-version-item.is-disabled,
.file-version-latest.is-disabled:hover,
.file-version-item.is-disabled:hover {
    cursor: default;
    opacity: 0.64;
    transform: none;
    box-shadow: none;
}

.file-version-latest small,
.file-version-latest em {
    display: block;
    color: var(--public-muted, var(--muted));
    font-style: normal;
}

.file-version-latest strong {
    display: block;
    margin: 3px 0;
    color: var(--file-accent-dark);
    font-size: 1.08rem;
    overflow-wrap: anywhere;
}

.file-version-list {
    display: grid;
    gap: 8px;
}

.file-version-more {
    margin-top: 10px;
}

.file-version-more summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    border: 1px dashed color-mix(in srgb, var(--file-accent-strong) 24%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--file-accent-soft) 34%, transparent);
    color: var(--file-accent-dark);
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 900;
    list-style: none;
    transition: border-color var(--motion-fast), background var(--motion-fast), transform var(--motion-fast);
}

.file-version-more summary::-webkit-details-marker {
    display: none;
}

.file-version-more summary:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--file-accent-strong) 42%, transparent);
    background: color-mix(in srgb, var(--file-accent-soft) 54%, transparent);
}

.file-version-more[open] summary {
    margin-bottom: 8px;
}

.file-version-item {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid rgba(0, 84, 126, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
    transition: transform var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast);
}

.file-version-item span {
    min-width: 0;
    overflow-wrap: anywhere;
}

body.public-page .file-version-item,
html.public-theme-dark body.public-page .file-version-item {
    color: var(--public-text, #10212b);
}

.file-version-item small {
    color: var(--public-muted, var(--muted));
    font-size: 0.82rem;
    font-weight: 700;
}

.file-detail-card {
    padding: 24px;
    border: 1px solid rgba(0, 84, 126, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
}

.file-detail-icon {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    margin-bottom: 20px;
    border-radius: 24px;
    background: var(--file-accent-soft);
    color: var(--file-accent);
    font-size: 42px;
}

.file-detail-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.file-detail-card div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(0, 84, 126, 0.1);
    padding-bottom: 10px;
}

.file-detail-card dt {
    color: var(--public-muted, var(--muted));
}

.file-detail-card dd {
    margin: 0;
    text-align: right;
    color: var(--public-text, var(--text));
    font-weight: 800;
}

.file-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
}

.file-detail-layout.is-wide {
    grid-template-columns: minmax(0, 1fr);
}

.file-content-card,
.file-side-card {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 20px 54px rgba(0, 43, 66, 0.08);
}

.file-side-panel {
    display: grid;
    align-content: start;
    gap: 18px;
}

.file-github-card {
    background:
        radial-gradient(circle at 16% 14%, rgba(0, 107, 159, 0.12), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(238, 247, 255, 0.88));
}

.file-github-head {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.file-github-head > .material-symbols-outlined {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: #0d2433;
    color: #ffffff;
    font-size: 30px;
}

.file-github-head h2 {
    margin: 4px 0 0;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    letter-spacing: -0.03em;
}

.file-github-head a {
    color: var(--accent-dark);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

.file-github-description {
    color: var(--public-muted, var(--muted));
    line-height: 1.55;
}

.file-github-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.file-github-meta span {
    padding: 7px 10px;
    border: 1px solid rgba(0, 84, 126, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--public-muted, var(--muted));
    font-size: 0.82rem;
    font-weight: 700;
}

.file-github-open {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #0d2433;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.file-releases-head {
    align-items: start;
    margin-bottom: 16px;
}

.file-release-list,
.file-product-list {
    display: grid;
    gap: 12px;
}

.file-release-list a,
.file-product-list a {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(0, 84, 126, 0.1);
    border-radius: 18px;
    background: rgba(247, 252, 252, 0.86);
    color: var(--public-text, var(--text));
    text-decoration: none;
}

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

.file-release-list a {
    align-items: flex-start;
    min-height: 116px;
    border-color: rgba(0, 107, 159, 0.16);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 246, 255, 0.86));
    transition: transform var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast);
}

.file-release-list a:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 107, 159, 0.38);
    box-shadow: 0 16px 36px rgba(0, 84, 126, 0.12);
}

.file-type-badge,
.file-release-icon {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 44px;
    width: 44px;
    height: 50px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    color: #00547e;
    --file-icon-sheet: #f6fbff;
    --file-icon-fold: #d9eef8;
    --file-icon-line: rgba(0, 84, 126, 0.2);
    --file-icon-ink: #006b9f;
    --file-icon-shadow: rgba(0, 84, 126, 0.2);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: none;
}

.file-type-badge::before,
.file-release-icon::before {
    content: none;
}

.file-type-badge-art {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 13px 20px var(--file-icon-shadow));
}

.file-icon-sheet {
    fill: var(--file-icon-sheet);
    stroke: rgba(0, 84, 126, 0.18);
    stroke-width: 1.25;
}

.file-icon-fold {
    fill: var(--file-icon-fold);
}

.file-icon-fold-line {
    fill: none;
    stroke: var(--file-icon-line);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.35;
}

.file-icon-glyph {
    fill: none;
    stroke: var(--file-icon-ink);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3.4;
}

.file-icon-glyph rect,
.file-icon-glyph circle {
    fill: rgba(255, 255, 255, 0.72);
    stroke: var(--file-icon-ink);
}

.file-type-badge-label {
    position: absolute;
    right: 6px;
    bottom: 5px;
    left: 6px;
    display: block;
    overflow: hidden;
    color: var(--file-icon-ink);
    font-size: inherit;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
    white-space: nowrap;
}

.file-type-badge-zip,
.file-type-badge-archive {
    --file-icon-sheet: #f3fbff;
    --file-icon-fold: #c7e8f7;
    --file-icon-ink: #005f8f;
    --file-icon-shadow: rgba(0, 95, 143, 0.22);
}

.file-type-badge-pdf {
    --file-icon-sheet: #f5fbff;
    --file-icon-fold: #cfeaf6;
    --file-icon-ink: #004a70;
    --file-icon-shadow: rgba(0, 74, 112, 0.22);
}

.file-type-badge-git {
    --file-icon-sheet: #eef9ff;
    --file-icon-fold: #b9dff2;
    --file-icon-ink: #003d5c;
    --file-icon-shadow: rgba(0, 61, 92, 0.24);
}

.file-type-badge-code {
    --file-icon-sheet: #effcff;
    --file-icon-fold: #bdeef8;
    --file-icon-ink: #006b9f;
    --file-icon-shadow: rgba(0, 107, 159, 0.2);
}

.file-type-badge-app {
    --file-icon-sheet: #f2f9ff;
    --file-icon-fold: #c8e3f4;
    --file-icon-ink: #0b5f96;
    --file-icon-shadow: rgba(11, 95, 150, 0.2);
}

.file-type-badge-image {
    --file-icon-sheet: #f4fbff;
    --file-icon-fold: #c5e7f6;
    --file-icon-ink: #006f9c;
    --file-icon-shadow: rgba(0, 111, 156, 0.2);
}

.file-type-badge-doc {
    --file-icon-sheet: #f6fbff;
    --file-icon-fold: #d4ecf7;
    --file-icon-ink: #075a82;
    --file-icon-shadow: rgba(7, 90, 130, 0.18);
}

.file-detail-type-badge {
    min-width: 88px;
    width: 88px;
    height: 102px;
    margin-bottom: 22px;
    font-size: 0.76rem;
}

.file-detail-type-badge .file-icon-glyph {
    stroke-width: 2.9;
}

.file-detail-type-badge .file-type-badge-label {
    bottom: 12px;
    font-size: 0.74rem;
}

.files-card-type-badge,
.files-row-type-badge,
.files-inline-type-badge {
    flex: 0 0 auto;
}

.files-card-type-badge {
    min-width: 46px;
    width: 46px;
    height: 52px;
}

.files-row-type-badge {
    min-width: 44px;
    width: 44px;
    height: 50px;
    margin-top: 1px;
}

.files-inline-type-badge {
    min-width: 32px;
    width: 32px;
    height: 36px;
    border-radius: 9px 9px 10px 10px;
    font-size: 0.52rem;
}

.files-inline-type-badge::before {
    border-top-width: 8px;
    border-left-width: 8px;
}

.files-inline-type-badge .file-type-badge-label {
    display: none;
}

.files-inline-type-badge .file-icon-glyph {
    stroke-width: 4.2;
}

.files-card-type-badge .file-type-badge-label,
.files-row-type-badge .file-type-badge-label,
.file-release-icon .file-type-badge-label {
    bottom: 6px;
    font-size: 0.55rem;
}

.file-release-list strong,
.file-release-list small,
.file-release-list em {
    display: block;
}

.file-release-list strong {
    margin-bottom: 3px;
}

.file-release-list small {
    color: var(--public-muted, var(--muted));
}

.file-release-list em {
    margin-top: 6px;
    color: var(--file-accent-dark);
    font-style: normal;
    font-weight: 800;
}

.file-product-list img {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    object-fit: contain;
    background: #fff;
}

.file-product-list a > div {
    min-width: 0;
}

.file-product-list strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.file-side-more {
    margin-top: 12px;
}

.file-side-more summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    border: 1px dashed color-mix(in srgb, var(--file-accent-strong) 24%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--file-accent-soft) 34%, transparent);
    color: var(--file-accent-dark);
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 900;
    list-style: none;
    text-align: center;
    transition: border-color var(--motion-fast), background var(--motion-fast), transform var(--motion-fast);
}

.file-side-more summary::-webkit-details-marker {
    display: none;
}

.file-side-more summary:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--file-accent-strong) 42%, transparent);
    background: color-mix(in srgb, var(--file-accent-soft) 54%, transparent);
}

.file-side-more[open] summary {
    margin-bottom: 12px;
}

.file-product-list .material-symbols-outlined {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(217, 242, 249, 0.95), rgba(238, 249, 252, 0.9));
    color: var(--file-accent-dark);
    font-size: 28px;
}

html.public-theme-dark body.public-page .files-hero,
html.public-theme-dark body.public-page .file-detail-hero {
    border-color: rgba(255, 255, 255, 0.105);
    background:
        radial-gradient(circle at 12% 8%, rgba(0, 84, 126, 0.22), transparent 34%),
        linear-gradient(135deg, rgba(24, 28, 34, 0.98), rgba(17, 20, 24, 0.94));
    box-shadow: var(--public-shadow-md);
}

html.public-theme-dark body.public-page .files-hero .landing-kicker,
html.public-theme-dark body.public-page .file-detail-hero .landing-kicker,
html.public-theme-dark body.public-page .files-section .landing-kicker {
    color: var(--file-accent);
}

html.public-theme-dark body.public-page .files-hero-visual {
    background:
        linear-gradient(150deg, rgba(0, 84, 126, 0.18), rgba(255, 255, 255, 0.035)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 16px);
}

html.public-theme-dark body.public-page .files-folder {
    border-color: rgba(255, 255, 255, 0.11);
    background: linear-gradient(145deg, rgba(32, 37, 44, 0.96), rgba(17, 20, 24, 0.92));
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.24);
}

html.public-theme-dark body.public-page .files-folder::before {
    border-color: rgba(255, 255, 255, 0.11);
    background: rgba(32, 37, 44, 0.96);
}

html.public-theme-dark body.public-page .files-chip,
html.public-theme-dark body.public-page .files-guide-steps a,
html.public-theme-dark body.public-page .files-category-card,
html.public-theme-dark body.public-page .files-library-card,
html.public-theme-dark body.public-page .files-row-card,
html.public-theme-dark body.public-page .files-compact-list a,
html.public-theme-dark body.public-page .file-hero-repo,
html.public-theme-dark body.public-page .file-version-latest,
html.public-theme-dark body.public-page .file-version-item,
html.public-theme-dark body.public-page .file-detail-card,
html.public-theme-dark body.public-page .file-content-card,
html.public-theme-dark body.public-page .file-side-card,
html.public-theme-dark body.public-page .file-release-list a,
html.public-theme-dark body.public-page .file-product-list a,
html.public-theme-dark body.public-page .file-github-meta span {
    border-color: rgba(255, 255, 255, 0.11);
    background: rgba(17, 20, 24, 0.82);
    color: var(--public-text);
    box-shadow: none;
}

html.public-theme-dark body.public-page .files-guide-card,
html.public-theme-dark body.public-page .files-section,
html.public-theme-dark body.public-page .file-detail-layout {
    background: transparent;
    box-shadow: none;
}

html.public-theme-dark body.public-page .files-guide-card,
html.public-theme-dark body.public-page .files-section {
    border: 1px solid rgba(255, 255, 255, 0.105);
    background:
        linear-gradient(135deg, rgba(17, 20, 24, 0.9), rgba(24, 28, 34, 0.78));
}

html.public-theme-dark body.public-page .files-category-card:hover,
html.public-theme-dark body.public-page .files-library-card:hover,
html.public-theme-dark body.public-page .files-row-card:hover,
html.public-theme-dark body.public-page .file-version-latest:hover,
html.public-theme-dark body.public-page .file-version-item:hover,
html.public-theme-dark body.public-page .file-release-list a:hover {
    border-color: rgba(118, 169, 194, 0.36);
    background: rgba(24, 28, 34, 0.96);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.22);
}

html.public-theme-dark body.public-page .file-detail-card div,
html.public-theme-dark body.public-page .file-version-panel {
    border-color: rgba(255, 255, 255, 0.105);
}

html.public-theme-dark body.public-page .file-side-more summary {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(118, 169, 194, 0.08);
    color: var(--file-accent);
}

html.public-theme-dark body.public-page .file-detail-icon,
html.public-theme-dark body.public-page .file-hero-repo > .material-symbols-outlined,
html.public-theme-dark body.public-page .file-version-panel-head > .material-symbols-outlined,
html.public-theme-dark body.public-page .file-github-head > .material-symbols-outlined,
html.public-theme-dark body.public-page .file-github-open {
    background: rgba(118, 169, 194, 0.14);
    color: var(--file-accent);
}

html.public-theme-dark body.public-page .file-version-latest strong,
html.public-theme-dark body.public-page .file-release-list em,
html.public-theme-dark body.public-page .files-section-link {
    color: var(--file-accent-dark);
}

html.public-theme-dark body.public-page .files-product-note {
    border-color: rgba(255, 255, 255, 0.11);
    background: rgba(118, 169, 194, 0.08);
    color: color-mix(in srgb, var(--public-muted) 82%, #fff);
}

html.public-theme-dark body.public-page .file-type-badge,
html.public-theme-dark body.public-page .file-release-icon {
    --file-icon-sheet: #162b37;
    --file-icon-fold: #204458;
    --file-icon-line: rgba(118, 169, 194, 0.32);
    --file-icon-ink: #8fc6df;
    --file-icon-shadow: rgba(0, 0, 0, 0.3);
}

html.public-theme-dark body.public-page .file-icon-glyph rect,
html.public-theme-dark body.public-page .file-icon-glyph circle {
    fill: rgba(17, 20, 24, 0.72);
}

html.public-theme-dark body.public-page .file-product-list img {
    background: rgba(255, 255, 255, 0.86);
}

@keyframes files-orbit {
    to {
        transform: rotate(360deg);
    }
}

@keyframes files-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@media (max-width: 980px) {
    .files-hero,
    .file-detail-hero,
    .files-guide-card,
    .file-detail-layout {
        grid-template-columns: 1fr;
    }

    .file-detail-hero-releases {
        grid-template-columns: 1fr;
    }

    .file-version-panel {
        margin-top: 6px;
        padding-left: 0;
        padding-top: 18px;
        border-left: 0;
        border-top: 1px solid color-mix(in srgb, var(--file-accent) 14%, transparent);
    }

    .file-version-list {
        display: flex;
        flex-wrap: wrap;
    }

    .file-version-item {
        display: inline-flex;
    }

    .files-category-grid,
    .files-library-grid,
    .files-list-grid,
    .files-list-grid-wide,
    .file-release-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .files-hero,
    .file-detail-hero,
    .files-section,
    .files-guide-card,
    .file-content-card,
    .file-side-card {
        border-radius: 22px;
        padding: 20px;
    }

    .files-hero-visual {
        min-height: 240px;
    }

    .files-category-grid,
    .files-library-grid,
    .files-list-grid,
    .files-list-grid-wide,
    .file-release-list {
        grid-template-columns: 1fr;
    }

    .file-hero-repo {
        width: 100%;
    }

    .file-version-latest {
        align-items: flex-start;
    }

    .file-version-list {
        display: grid;
    }

    .file-version-item {
        width: 100%;
        border-radius: 18px;
    }
}

* {
    box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--text);
    background:
        linear-gradient(rgba(0, 84, 126, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 84, 126, 0.028) 1px, transparent 1px),
        linear-gradient(180deg, #f8fafb 0%, var(--bg) 100%);
    background-size: 48px 48px, 48px 48px, auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-dark);
}

.wrap {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

.hero,
.actions,
.filters,
.stats-grid {
    display: flex;
    gap: 16px;
}

.admin-toolbar-actions,
.admin-inline-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-inline-form {
    margin: 0;
}

.section {
    margin: 32px 0;
}

.hero {
    align-items: stretch;
    padding: 48px 0 24px;
}

.hero > * {
    flex: 1;
}

.eyebrow,
.meta {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

h1, h2, h3 {
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    margin: 8px 0 16px;
}

.lead {
    font-size: 1.1rem;
    color: #42372a;
    max-width: 65ch;
}

.button,
button,
input,
select,
textarea {
    border-radius: 14px;
    font: inherit;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

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

.button-secondary {
    background: transparent;
    color: var(--accent-dark);
}

.button-danger {
    border-color: rgba(179, 71, 71, 0.34);
    background: #b34747;
    color: #fff;
}

.button-danger:hover {
    background: #953838;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.stats-grid {
    flex-wrap: wrap;
}

.stats-grid .card,
.stats-grid > div,
.stats-grid > article {
    flex: 1;
    min-width: 160px;
}

.stats-grid strong {
    display: block;
    margin-top: 8px;
    font-size: 2rem;
}

.chip {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.7);
}

.chip.active {
    border-color: var(--accent);
    background: #fff;
}

.auth-box,
.table-wrap,
.prose,
.entry-page {
    max-width: 900px;
}

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

label > span {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
}

textarea {
    resize: vertical;
}

.search-form {
    display: flex;
    gap: 12px;
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--danger-bg);
}

.alert.success {
    background: #e2f5ea;
    color: var(--success);
}

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

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.editor-btn {
    padding: 8px 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
}

.editor-btn:hover {
    background: #fff;
}

.editor-help {
    color: var(--muted);
    font-size: 0.92rem;
}

.editor-preview {
    min-height: 120px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
}

pre {
    overflow: auto;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
}

pre.is-highlighted {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 45%),
        #1f1d2b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

pre code {
    display: block;
    min-width: max-content;
    white-space: pre;
    font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
    line-height: 1.65;
    tab-size: 4;
}

.code-shell {
    position: relative;
    margin: 18px 0;
    overflow: hidden;
    border: 1px solid rgba(63, 77, 83, 0.95);
    border-radius: 18px;
    background: #222b2f;
    box-shadow: 0 18px 44px -30px rgba(18, 28, 33, 0.42);
}

.code-copy-button {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(88, 103, 110, 0.78);
    border-radius: 9px;
    background: rgba(39, 49, 54, 0.92);
    color: #eef4f6;
    font-size: 0.82rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.code-copy-button:hover,
.code-copy-button:focus-visible {
    background: rgba(90, 108, 116, 0.74);
    border-color: rgba(119, 139, 147, 0.92);
    transform: translateY(-1px);
    outline: none;
}

.code-copy-button.is-copied {
    background: rgba(61, 176, 123, 0.24);
    border-color: rgba(61, 176, 123, 0.38);
}

.code-copy-button.is-error {
    background: rgba(216, 91, 91, 0.22);
    border-color: rgba(216, 91, 91, 0.34);
}

.code-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
}

.code-gutter {
    display: grid;
    align-content: start;
    padding: 16px 10px 16px 14px;
    background: #182126;
    border-right: 1px solid rgba(59, 71, 77, 0.9);
    user-select: none;
}

.code-gutter-line {
    display: block;
    min-width: 2ch;
    color: #73858b;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    line-height: 1.65;
    text-align: right;
}

.code-content {
    min-width: 0;
    overflow: auto;
    padding: 16px 18px 16px 18px;
    background: #222b2f;
}

.code-shell pre code,
.code-shell .hljs,
.editor-preview .code-shell pre code,
.editor-preview .code-shell .hljs {
    color: #dfe7ea !important;
}

.code-shell .hljs-comment,
.code-shell .hljs-quote {
    color: #7f9096 !important;
}

.code-shell .hljs-keyword,
.code-shell .hljs-selector-tag,
.code-shell .hljs-section {
    color: #18c6ea !important;
}

.code-shell .hljs-built_in,
.code-shell .hljs-title.class_,
.code-shell .hljs-type,
.code-shell .hljs-property {
    color: #47a8ff !important;
}

.code-shell .hljs-title.function_,
.code-shell .hljs-function .hljs-title,
.code-shell .hljs-attr {
    color: #ffb24d !important;
}

.code-shell .hljs-string,
.code-shell .hljs-meta-string,
.code-shell .hljs-regexp {
    color: #e48cff !important;
}

.code-shell .hljs-number,
.code-shell .hljs-literal,
.code-shell .hljs-symbol,
.code-shell .hljs-bullet {
    color: #86c7ff !important;
}

.code-shell .hljs-variable,
.code-shell .hljs-template-variable,
.code-shell .hljs-params,
.code-shell .hljs-subst {
    color: #e9eff1 !important;
}

.hljs {
    background: transparent !important;
    padding: 0 !important;
    color: inherit;
}

.prose p,
.prose ul,
.prose blockquote,
.prose pre,
.prose h2,
.prose h3,
.prose h4 {
    margin-top: 0;
    margin-bottom: 16px;
}

.prose ul {
    padding-left: 20px;
}

.prose code {
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(187, 77, 0, 0.12);
    font-family: Consolas, "Courier New", monospace;
}

.prose pre code {
    padding: 0;
    background: transparent;
}

pre code span,
.hljs span {
    display: inline;
    margin: 0;
    font-weight: inherit;
}

.prose blockquote {
    padding: 12px 16px;
    border-left: 4px solid var(--accent);
    background: rgba(255, 244, 235, 0.95);
    border-radius: 10px;
}

.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
    line-height: 1;
}

body.public-page {
    --color-primary: #00547e;
    --color-primary-hover: #006b9f;
    --color-primary-dark: #003a58;
    --color-primary-deep: #002b42;
    --color-bg: #f7fafc;
    --color-surface: #ffffff;
    --color-surface-soft: #f4fafc;
    --color-surface-elevated: #ffffff;
    --color-border: #d7e5ec;
    --color-border-strong: #bfd5df;
    --color-text: #0f1f2a;
    --color-text-muted: #506775;
    --color-text-subtle: #7b8f9a;
    --color-accent-soft: #e6f3f8;
    --color-primary-soft: #e6f3f8;
    --color-focus: rgba(0, 84, 126, 0.32);
    --color-input-bg: #ffffff;
    --color-input-border: #d7e5ec;
    --color-control-bg: rgba(255, 255, 255, 0.94);
    --color-header-bg: rgba(255, 255, 255, 0.84);
    --color-footer-bg: #f7fafc;
    --public-bg: var(--color-bg);
    --public-surface: var(--color-surface-soft);
    --public-surface-strong: var(--color-accent-soft);
    --public-surface-soft: var(--color-surface);
    --public-stroke: rgba(0, 84, 126, 0.14);
    --public-text: var(--color-text);
    --public-muted: var(--color-text-muted);
    --public-teal: var(--color-primary);
    --public-teal-strong: var(--color-primary-hover);
    --public-teal-dark: var(--color-primary-dark);
    --public-deep: var(--color-primary-deep);
    --public-border: var(--color-border);
    --public-dark: #0d2433;
    --file-accent: var(--color-primary);
    --file-accent-strong: var(--color-primary-hover);
    --file-accent-dark: var(--color-primary-dark);
    --file-accent-soft: var(--color-primary-soft);
    --file-deep: #0d2433;
    --public-shadow-sm: 0 10px 28px rgba(0, 43, 66, 0.08);
    --public-shadow-md: 0 18px 46px rgba(0, 43, 66, 0.12);
    --public-shadow-lg: 0 28px 72px rgba(0, 43, 66, 0.16);
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--public-text);
    background:
        linear-gradient(rgba(0, 84, 126, 0.034) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 84, 126, 0.026) 1px, transparent 1px),
        linear-gradient(180deg, #f8fafb 0%, var(--public-bg) 48%, #eef6fa 100%);
    background-size: 52px 52px, 52px 52px, auto;
    scroll-padding-top: 92px;
}

body.public-page a {
    color: inherit;
}

.public-header {
    position: fixed;
    top: 0;
    z-index: 50;
    width: 100%;
    backdrop-filter: blur(18px);
    background: rgba(248, 250, 251, 0.88);
    border-bottom: 1px solid rgba(0, 84, 126, 0.1);
    box-shadow: 0 18px 44px -34px rgba(0, 43, 66, 0.24);
}

.public-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    min-height: 64px;
}

.public-page-with-sidebar .public-topbar {
    display: grid;
    grid-template-columns: 286px minmax(420px, 1fr) minmax(340px, 390px);
    gap: 20px;
    max-width: none;
    padding: 0 28px 0 20px;
}

.public-page-with-sidebar .public-brand {
    justify-self: start;
}

.public-page-with-sidebar .public-nav {
    justify-self: center;
}

.public-page-with-sidebar .public-topbar-actions {
    justify-self: end;
}

.public-brand,
.public-brand:visited {
    color: var(--public-teal);
    text-decoration: none;
    font: 700 1.2rem/1 "Space Grotesk", sans-serif;
    letter-spacing: -0.03em;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-logo,
.public-brand-logo {
    display: block;
    width: auto;
    height: 32px;
}

.public-brand span {
    white-space: nowrap;
}

.public-nav,
.public-topbar-actions,
.public-search,
.public-footer-inner,
.landing-actions,
.doc-breadcrumbs,
.catalog-filters {
    display: flex;
    align-items: center;
    gap: 14px;
}

.public-nav a {
    padding: 22px 4px 20px;
    text-decoration: none;
    color: var(--public-text);
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.public-nav a.is-active,
.public-nav a:hover {
    color: var(--public-teal);
    border-color: var(--public-teal);
}

.public-nav-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
    align-self: stretch;
}

.public-nav-dropdown summary {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 22px 4px 20px;
    color: var(--public-text);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color 0.2s ease;
}

.public-nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.public-nav-dropdown summary .material-symbols-outlined {
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.public-nav-dropdown[open] summary .material-symbols-outlined {
    transform: rotate(180deg);
}

.public-nav-dropdown.is-active summary,
.public-nav-dropdown summary:hover,
.public-nav-dropdown summary:focus-visible {
    color: var(--public-teal);
    outline: none;
}

.public-nav-dropdown-panel {
    position: absolute;
    top: calc(100% - 8px);
    left: 50%;
    z-index: 70;
    display: grid;
    min-width: 230px;
    padding: 8px;
    border: 1px solid rgba(0, 84, 126, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 56px -28px rgba(0, 43, 66, 0.28);
    transform: translateX(-50%);
}

.public-nav .public-nav-dropdown-panel a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    color: var(--public-text);
    white-space: nowrap;
}

.public-nav .public-nav-dropdown-panel a:hover,
.public-nav .public-nav-dropdown-panel a:focus-visible,
.public-nav .public-nav-dropdown-panel a.is-active {
    background: rgba(0, 129, 132, 0.1);
    color: var(--public-teal);
    outline: none;
}

.public-nav-dropdown--ide .public-nav-dropdown-panel {
    min-width: 308px;
}

.public-nav-dropdown--ide > summary > span:first-child {
    white-space: nowrap;
}

.public-nav .public-nav-dropdown-panel a.public-nav-recommended-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    gap: 10px;
    min-height: 68px;
    padding: 10px 12px;
    border: 1px solid rgba(210, 111, 16, 0.18);
    border-radius: 12px;
    background: rgba(255, 179, 71, 0.09);
    white-space: normal;
}

.public-nav .public-nav-dropdown-panel a.public-nav-recommended-link:hover,
.public-nav .public-nav-dropdown-panel a.public-nav-recommended-link:focus-visible {
    border-color: rgba(183, 84, 0, 0.3);
    background: rgba(255, 179, 71, 0.14);
    color: var(--public-text);
}

.public-nav-recommended-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(0, 84, 126, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--public-teal);
    font-size: 1.12rem;
}

.public-nav-recommended-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.public-nav-recommended-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--public-text);
    line-height: 1.1;
}

.public-nav-recommended-heading strong {
    font-size: 0.9rem;
    font-weight: 750;
    white-space: nowrap;
}

.public-nav-recommended-badge {
    padding: 3px 6px;
    border: 1px solid rgba(183, 84, 0, 0.18);
    border-radius: 999px;
    background: rgba(255, 179, 71, 0.16);
    color: #914500;
    font-size: 0.64rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.public-nav-recommended-note {
    overflow: hidden;
    color: var(--public-muted);
    font-size: 0.72rem;
    font-weight: 550;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-nav-recommended-external {
    align-self: center;
    color: var(--color-text-subtle);
    font-size: 1rem;
}

.public-nav-dropdown-divider {
    display: block;
    height: 1px;
    margin: 6px 8px;
    background: rgba(0, 84, 126, 0.1);
}

.public-search {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-width: 260px;
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgba(218, 228, 234, 0.72);
    color: var(--public-text);
    text-align: left;
    box-shadow: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.public-search:hover,
.public-search:focus-visible {
    border-color: rgba(0, 102, 104, 0.16);
    background: rgba(255, 255, 255, 0.94);
    transform: translateY(-1px);
    outline: none;
}

.public-search .material-symbols-outlined {
    flex: 0 0 auto;
    color: rgba(62, 73, 73, 0.72);
    font-size: 20px;
}

.public-search-trigger-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.public-search-trigger-title {
    overflow: hidden;
    color: var(--public-text);
    font-size: 0.95rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-search-trigger-hint {
    overflow: hidden;
    color: var(--public-muted);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-search-trigger-mobile-title {
    display: none;
    color: var(--public-text);
    font-size: 0.9rem;
    font-weight: 700;
}

.public-search-shortcut {
    margin-left: auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--public-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.public-menu-toggle,
.public-sidebar-mobile-head,
.public-sidebar-mobile-nav,
.public-mobile-nav,
.public-mobile-drawer,
.public-mobile-drawer-note {
    display: none;
}

.public-menu-toggle,
.public-sidebar-close {
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 102, 104, 0.12);
    background: rgba(255, 255, 255, 0.7);
    color: var(--public-text);
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.public-menu-toggle {
    min-width: 46px;
    min-height: 46px;
    padding: 0 14px;
    gap: 8px;
    border-radius: 999px;
    font-weight: 700;
}

.public-menu-toggle:hover,
.public-menu-toggle:focus-visible,
.public-sidebar-close:hover,
.public-sidebar-close:focus-visible {
    border-color: rgba(0, 102, 104, 0.2);
    background: rgba(255, 255, 255, 0.96);
    color: var(--public-teal);
    outline: none;
    transform: translateY(-1px);
}

.public-menu-toggle .material-symbols-outlined,
.public-sidebar-close .material-symbols-outlined {
    font-size: 22px;
}

.public-sidebar-close {
    display: inline-flex;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 14px;
}

.public-nav-backdrop {
    position: fixed;
    inset: 64px 0 0;
    z-index: 108;
    min-height: 0;
    padding: 0;
    border: 0;
    background: rgba(8, 27, 32, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.public-nav-backdrop:hover,
.public-nav-backdrop:focus-visible {
    background: rgba(8, 27, 32, 0.28);
    outline: none;
}

body.public-menu-open {
    overflow: hidden;
}

body.public-menu-open .public-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
}

body.search-overlay-open {
    overflow: hidden;
}

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: grid;
    place-items: start center;
    padding: 82px 24px 24px;
}

.search-overlay[hidden] {
    display: none;
}

.search-overlay-backdrop {
    position: absolute;
    inset: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(237, 246, 251, 0.74);
    backdrop-filter: blur(20px);
}

.search-overlay-backdrop:hover,
.search-overlay-backdrop:focus-visible,
.search-overlay-backdrop:active {
    border-color: transparent;
    background: rgba(237, 246, 251, 0.74);
    color: inherit;
    outline: none;
}

.search-overlay-dialog {
    position: relative;
    width: min(980px, calc(100vw - 32px));
    z-index: 1;
}

.search-overlay-panel {
    display: grid;
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(110, 121, 121, 0.14);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(118, 214, 216, 0.12), transparent 28%),
        rgba(248, 252, 255, 0.96);
    box-shadow: 0 36px 90px -42px rgba(19, 29, 33, 0.34);
}

.search-overlay-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.search-input-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 0 16px;
    border: 1px solid rgba(110, 121, 121, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 44px -34px rgba(19, 29, 33, 0.28);
}

.search-input-shell .material-symbols-outlined {
    flex: 0 0 auto;
    color: var(--public-muted);
}

.search-input-shell input {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--public-text);
    font: 600 1rem/1.4 "Inter", sans-serif;
}

.search-input-shell input:focus {
    outline: none;
}

.search-input-reset,
.search-overlay-close {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(110, 121, 121, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--public-muted);
    box-shadow: none;
}

.search-input-reset:hover,
.search-input-reset:focus-visible,
.search-overlay-close:hover,
.search-overlay-close:focus-visible {
    background: rgba(255, 255, 255, 1);
    color: var(--public-teal);
    border-color: rgba(0, 102, 104, 0.16);
    outline: none;
}

.search-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.search-scope-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-scope-chip {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(110, 121, 121, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--public-muted);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: none;
}

.search-scope-chip:hover,
.search-scope-chip:focus-visible {
    background: rgba(255, 255, 255, 0.94);
    color: var(--public-text);
    outline: none;
}

.search-scope-chip.is-active {
    border-color: rgba(0, 102, 104, 0.18);
    background: rgba(0, 102, 104, 0.1);
    color: var(--public-teal);
}

.search-toolbar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-toolbar-shortcut {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--public-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.search-summary {
    min-height: 20px;
    color: var(--public-muted);
    font-size: 0.92rem;
}

.search-overlay-body {
    min-height: 360px;
    max-height: min(68vh, 720px);
    overflow: auto;
    padding-right: 4px;
}

.search-state {
    display: none;
}

.search-state.is-active {
    display: block;
}

.search-state--idle,
.search-state--empty {
    padding: 10px 2px 2px;
}

.search-state-kicker {
    margin: 0 0 10px;
    color: var(--public-teal);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.search-state h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -0.04em;
    line-height: 1;
}

.search-state-copy {
    max-width: 64ch;
    margin: 14px 0 0;
    color: var(--public-muted);
    line-height: 1.7;
}

.search-suggestion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.search-suggestion-card {
    display: grid;
    gap: 8px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(110, 121, 121, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.search-suggestion-card:hover,
.search-suggestion-card:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(0, 102, 104, 0.18);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 56px -36px rgba(19, 29, 33, 0.24);
    outline: none;
}

.search-suggestion-card .material-symbols-outlined {
    color: var(--public-teal);
}

.search-suggestion-card strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
}

.search-suggestion-card span:last-child {
    color: var(--public-muted);
    font-size: 0.88rem;
}

.search-loading {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 220px;
    color: var(--public-muted);
}

.search-results-list {
    display: grid;
    gap: 10px;
}

.search-result-card {
    display: block;
    padding: 16px 18px;
    border: 1px solid rgba(110, 121, 121, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.search-result-card:hover,
.search-result-card:focus-visible,
.search-result-card.is-active {
    transform: translateY(-1px);
    border-color: rgba(0, 102, 104, 0.2);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 64px -40px rgba(19, 29, 33, 0.3);
    outline: none;
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    color: var(--public-muted);
    font-size: 0.82rem;
}

.search-result-path {
    color: var(--public-muted);
}

.search-result-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(0, 102, 104, 0.1);
    color: var(--public-teal);
    font-size: 0.74rem;
    font-weight: 700;
}

.search-result-title {
    display: block;
    margin: 0 0 8px;
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.08rem;
    line-height: 1.1;
}

.search-result-snippet {
    margin: 0;
    color: var(--public-muted);
    line-height: 1.65;
}

.search-result-card mark,
.search-state mark {
    padding: 0 0.18em;
    border-radius: 0.35em;
    background: rgba(0, 102, 104, 0.14);
    color: var(--public-text);
}

.public-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--public-teal);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.public-shell {
    display: flex;
    align-items: flex-start;
    min-height: calc(100vh - 72px);
    padding-top: 72px;
}

.public-sidebar {
    position: sticky;
    top: 72px;
    width: 304px;
    height: calc(100vh - 72px);
    overflow: auto;
    padding: 18px 0 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(245, 251, 255, 0.72) 100%);
    border-right: 1px solid rgba(189, 201, 201, 0.22);
    scrollbar-gutter: stable;
}

.public-sidebar-intro {
    display: grid;
    gap: 4px;
    margin: 0 18px 18px;
    padding: 16px 16px 14px;
    border: 1px solid rgba(0, 102, 104, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 20px 48px -34px rgba(19, 29, 33, 0.18);
}

.public-sidebar-intro p {
    margin: 0;
    color: var(--public-teal);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.public-sidebar-intro strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.02rem;
    line-height: 1.05;
    color: var(--public-text);
}

.public-sidebar-intro span {
    color: var(--public-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.public-sidebar-mobile-head {
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px 12px 18px;
    border-bottom: 1px solid rgba(0, 102, 104, 0.1);
    background: rgba(248, 252, 255, 0.92);
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.public-sidebar-mobile-nav,
.public-mobile-nav {
    gap: 8px;
    padding: 14px 18px 8px;
}

.public-sidebar-mobile-nav a,
.public-mobile-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    color: var(--public-muted);
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.public-sidebar-mobile-nav a:hover,
.public-sidebar-mobile-nav a:focus-visible,
.public-sidebar-mobile-nav a.is-active,
.public-mobile-nav a:hover,
.public-mobile-nav a:focus-visible,
.public-mobile-nav a.is-active {
    background: rgba(0, 129, 132, 0.1);
    color: var(--public-teal);
    outline: none;
    transform: translateX(1px);
}

.public-mobile-nav-group {
    display: grid;
    gap: 6px;
}

.public-mobile-nav-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    color: var(--public-muted);
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.public-mobile-nav-group summary::-webkit-details-marker {
    display: none;
}

.public-mobile-nav-group summary .material-symbols-outlined {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.public-mobile-nav-group[open] summary .material-symbols-outlined {
    transform: rotate(180deg);
}

.public-mobile-nav-group.is-active summary,
.public-mobile-nav-group summary:hover,
.public-mobile-nav-group summary:focus-visible {
    background: rgba(0, 129, 132, 0.1);
    color: var(--public-teal);
    outline: none;
    transform: translateX(1px);
}

.public-mobile-nav-group > div {
    display: grid;
    gap: 2px;
    padding: 2px 0 2px 12px;
}

.public-sidebar-mobile-nav .public-mobile-nav-group a,
.public-mobile-nav .public-mobile-nav-group a {
    min-height: 40px;
    padding-left: 14px;
    border-left: 0;
    border-radius: 12px;
    font-weight: 650;
}

.public-sidebar-mobile-nav .public-mobile-nav-group a.public-nav-recommended-link,
.public-mobile-nav .public-mobile-nav-group a.public-nav-recommended-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    gap: 10px;
    min-height: 66px;
    margin: 3px 0 4px;
    padding: 9px 10px;
    border: 1px solid rgba(210, 111, 16, 0.18);
    border-radius: 12px;
    background: rgba(255, 179, 71, 0.09);
    color: var(--public-text);
    transform: none;
}

.public-sidebar-mobile-nav .public-mobile-nav-group a.public-nav-recommended-link:hover,
.public-sidebar-mobile-nav .public-mobile-nav-group a.public-nav-recommended-link:focus-visible,
.public-mobile-nav .public-mobile-nav-group a.public-nav-recommended-link:hover,
.public-mobile-nav .public-mobile-nav-group a.public-nav-recommended-link:focus-visible {
    border-color: rgba(183, 84, 0, 0.3);
    background: rgba(255, 179, 71, 0.14);
    color: var(--public-text);
    transform: none;
}

.public-mobile-nav-group .public-nav-dropdown-divider {
    margin: 2px 8px 4px;
}

.public-mobile-drawer-note {
    margin: 14px 18px 0;
    padding: 16px;
    border: 1px solid rgba(0, 102, 104, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--public-muted);
    line-height: 1.45;
}

.public-mobile-drawer-note strong {
    display: block;
    margin-bottom: 4px;
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
}

.sidebar-tree {
    padding: 0 14px;
}

.sidebar-group + .sidebar-group {
    margin-top: 10px;
}

.sidebar-section-row,
.sidebar-category-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    align-items: center;
    gap: 4px;
}

.sidebar-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 11px 10px 11px 12px;
    color: var(--public-muted);
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    line-height: 1.16;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar-section-heading:hover {
    background: rgba(0, 102, 104, 0.08);
    color: var(--public-teal);
    transform: translateX(1px);
}

.sidebar-section-heading:focus-visible,
.sidebar-category-link:focus-visible,
.sidebar-item-link:focus-visible {
    outline: 2px solid rgba(0, 129, 132, 0.28);
    outline-offset: 2px;
}

.sidebar-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: 0;
    border-radius: 12px;
    background: rgba(216, 228, 234, 0.56);
    color: var(--public-muted);
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar-toggle-button:hover,
.sidebar-toggle-button:focus-visible {
    background: rgba(0, 102, 104, 0.1);
    color: var(--public-teal);
    outline: none;
    transform: translateX(1px);
}

.sidebar-toggle-button .material-symbols-outlined {
    font-size: 1.25rem;
    transition: transform 0.18s ease;
}

.sidebar-section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sidebar-section-label .material-symbols-outlined {
    flex: 0 0 auto;
}

.sidebar-section-label span:last-child,
.sidebar-category-title {
    min-width: 0;
    overflow-wrap: break-word;
}

.sidebar-section-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    flex: 0 0 auto;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(216, 228, 234, 0.72);
    color: var(--public-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.sidebar-group.is-open .sidebar-section-heading {
    background: rgba(0, 102, 104, 0.06);
    color: var(--public-teal);
}

.sidebar-tree[data-sidebar-accordion] .sidebar-section-body,
.sidebar-tree[data-sidebar-accordion] .sidebar-item-list {
    display: none;
}

.sidebar-tree[data-sidebar-accordion] .sidebar-group.is-open > .sidebar-section-body,
.sidebar-tree[data-sidebar-accordion] .sidebar-category.is-open > .sidebar-item-list {
    display: grid;
}

.sidebar-tree[data-sidebar-accordion] .sidebar-group.is-open > .sidebar-section-row .sidebar-toggle-button .material-symbols-outlined,
.sidebar-tree[data-sidebar-accordion] .sidebar-category.is-open > .sidebar-category-row .sidebar-toggle-button .material-symbols-outlined {
    transform: rotate(180deg);
}

.sidebar-category {
    margin-top: 6px;
}

.sidebar-category-link,
.sidebar-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-decoration: none;
}

.sidebar-category-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 42px;
    padding: 8px 8px 8px 36px;
    color: var(--public-text);
    border-radius: 12px;
    line-height: 1.16;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar-category-link:hover {
    background: rgba(218, 228, 234, 0.48);
    transform: translateX(1px);
}

.sidebar-category-link.is-active {
    background: rgba(0, 102, 104, 0.08);
    color: var(--public-teal);
}

.sidebar-category-title {
    font-weight: 500;
}

.sidebar-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    text-align: center;
    font-size: 0.72rem;
    color: var(--public-muted);
    background: rgba(216, 228, 234, 0.6);
    border-radius: 999px;
    font-weight: 700;
}

.sidebar-item-list {
    margin-top: 4px;
    display: grid;
}

.sidebar-subcategory + .sidebar-subcategory {
    margin-top: 10px;
}

.sidebar-subcategory-title {
    padding: 8px 14px 6px 60px;
    color: var(--public-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-item-link {
    padding: 9px 14px 9px 60px;
    color: rgba(19, 29, 33, 0.72);
    font-size: 0.94rem;
    border-right: 4px solid transparent;
    border-radius: 10px 0 0 10px;
    transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.sidebar-item-link:hover,
.sidebar-item-link.is-active {
    color: var(--public-teal);
    background: rgba(0, 129, 132, 0.1);
    border-right-color: var(--public-teal);
}

.legacy-sidebar-menu {
    display: grid;
    gap: 8px;
    padding: 0 14px 18px;
}

.legacy-sidebar-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 9px 10px 9px 12px;
    border-radius: 14px;
    color: var(--public-text);
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.legacy-sidebar-link:hover,
.legacy-sidebar-link:focus-visible,
.legacy-sidebar-link.is-active {
    background: rgba(0, 102, 104, 0.08);
    color: var(--public-teal);
    outline: none;
    transform: translateX(1px);
}

.legacy-sidebar-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.legacy-sidebar-label .material-symbols-outlined {
    flex: 0 0 auto;
    color: currentColor;
    font-size: 1.2rem;
}

.legacy-sidebar-label span:last-child {
    min-width: 0;
    overflow-wrap: break-word;
    font-weight: 600;
    line-height: 1.18;
}

.public-main {
    flex: 1;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 48px 72px;
}

.public-page-with-sidebar .public-main {
    max-width: none;
    margin: 0;
    padding-left: 44px;
}

.public-main.is-wide {
    max-width: 1320px;
    padding-top: 88px;
}

.section-heading p,
.landing-kicker {
    margin: 0 0 14px;
    color: var(--public-teal);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h1,
.section-heading h2,
.landing-hero h1,
.doc-title {
    margin: 0;
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.06;
    letter-spacing: 0;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 32px;
    align-items: stretch;
    min-height: calc(100svh - 168px);
}

.landing-copy {
    padding: 24px 0 12px;
}

.landing-hero h1 {
    max-width: 9ch;
    font-size: clamp(3.8rem, 9vw, 6.8rem);
    color: var(--public-teal);
}

.landing-copy p:last-of-type {
    max-width: 62ch;
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--public-muted);
}

.landing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 12px;
    background: var(--public-teal);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.landing-button .material-symbols-outlined {
    color: inherit;
}

body.public-page .landing-button,
body.public-page .landing-button:visited {
    color: #fff;
}

body.public-page .landing-button:hover,
body.public-page .landing-button:focus-visible {
    background: var(--color-primary-hover, #006b9f);
    color: #fff;
    outline: none;
    box-shadow: 0 14px 32px -22px rgba(0, 84, 126, 0.7);
}

.landing-button:visited {
    color: #fff;
}

body.public-page .landing-button.is-secondary,
.landing-button.is-secondary {
    background: rgba(0, 102, 104, 0.06);
    color: var(--public-teal);
}

body.public-page .landing-button.is-secondary:hover,
body.public-page .landing-button.is-secondary:focus-visible {
    background: rgba(0, 102, 104, 0.12);
    color: var(--public-teal);
    box-shadow: none;
}

.landing-panel,
.doc-surface,
.catalog-card,
.editorial-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 24px 64px -34px rgba(19, 29, 33, 0.18);
}

.landing-panel {
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(0, 129, 132, 0.14), rgba(255, 255, 255, 0.72)),
        rgba(255, 255, 255, 0.75);
}

.landing-panel-glow {
    position: absolute;
    inset: auto -80px -120px auto;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(118, 214, 216, 0.7), transparent 68%);
    filter: blur(12px);
}

.landing-stat-grid,
.editorial-grid,
.catalog-grid,
.doc-meta-grid {
    display: grid;
    gap: 18px;
}

.landing-stat-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    position: relative;
    z-index: 1;
}

.landing-stat-grid article,
.editorial-card,
.catalog-card,
.doc-surface,
.doc-note-box {
    padding: 22px 24px;
}

.landing-stat-grid span,
.doc-meta-grid span,
.editorial-card p,
.catalog-card p {
    display: block;
    color: var(--public-muted);
    font-size: 0.9rem;
}

.landing-stat-grid strong {
    display: block;
    margin-top: 8px;
    font-size: 2.8rem;
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
}

.landing-section {
    margin-top: 56px;
}

.software-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.68fr);
    gap: 32px;
    align-items: center;
    min-height: min(760px, calc(100svh - 128px));
}

.software-hero-copy {
    display: grid;
    align-content: center;
    padding: 24px 0;
}

.software-hero h1 {
    max-width: 12ch;
    margin: 0;
    color: var(--public-teal);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(3.2rem, 7vw, 6.2rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.software-hero-copy p:last-of-type {
    max-width: 66ch;
    margin: 22px 0 0;
    color: var(--public-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.software-hero-actions .landing-button {
    gap: 9px;
}

.software-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.software-trust-strip a,
.software-trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--public-muted);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        border-color var(--motion-fast),
        background var(--motion-fast),
        color var(--motion-fast),
        transform var(--motion-fast),
        box-shadow var(--motion-fast);
}

.software-trust-strip a:hover,
.software-trust-strip a:focus-visible {
    border-color: rgba(0, 102, 104, 0.32);
    background: rgba(0, 102, 104, 0.1);
    color: var(--public-teal-dark);
    box-shadow: 0 14px 30px -24px rgba(19, 29, 33, 0.42);
    transform: translateY(-1px);
    outline: none;
}

.software-trust-strip strong {
    color: var(--public-teal);
}

.software-setup-note {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.software-setup-note span {
    display: grid;
    gap: 7px;
    min-height: 86px;
    padding: 16px;
    border: 1px solid rgba(0, 102, 104, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 18px 42px -36px rgba(19, 29, 33, 0.32);
    color: var(--public-muted);
    font-size: 0.92rem;
    line-height: 1.35;
}

.software-setup-note strong {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(0, 102, 104, 0.1);
    color: var(--public-teal);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.95rem;
}

.software-hero-visual {
    position: relative;
    isolation: isolate;
    width: min(100%, 620px);
    min-height: 230px;
    margin-top: 24px;
    padding: 8px 0;
}

.software-hero-scene {
    display: block;
    width: min(100%, 520px);
    height: auto;
    filter: drop-shadow(0 24px 32px rgba(0, 84, 126, 0.13));
}

.software-hero-shadow {
    fill: rgba(0, 84, 126, 0.1);
}

.software-hero-cloud path:first-child {
    fill: rgba(255, 255, 255, 0.82);
    stroke: rgba(0, 102, 104, 0.13);
    stroke-width: 2;
}

.software-hero-cloud-signal {
    fill: none;
    stroke: rgba(0, 102, 104, 0.54);
    stroke-linecap: round;
    stroke-width: 6;
    animation: softwareHeroSignal 3.4s ease-in-out infinite;
}

.software-hero-orbit,
.software-hero-cable {
    fill: none;
    stroke: rgba(0, 102, 104, 0.34);
    stroke-dasharray: 12 18;
    stroke-linecap: round;
    stroke-width: 5;
    animation: softwareHeroFlow 4.8s linear infinite;
}

.software-hero-orbit.is-alt {
    stroke: rgba(255, 177, 66, 0.42);
    stroke-width: 4;
    animation-direction: reverse;
    animation-duration: 5.8s;
}

.software-hero-window rect {
    fill: url("#softwareScreenGradient");
}

.software-hero-window > path:not(.software-hero-code-line):not(.software-hero-upload-line) {
    fill: none;
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 2;
}

.software-hero-window circle {
    fill: rgba(255, 255, 255, 0.52);
}

.software-hero-laptop-base {
    fill: rgba(230, 243, 248, 0.92);
    stroke: rgba(0, 102, 104, 0.12);
    stroke-width: 2;
}

.software-hero-code-line,
.software-hero-upload-line {
    fill: none;
    stroke: #8ffcf3;
    stroke-dasharray: 130;
    stroke-dashoffset: 130;
    stroke-linecap: round;
    stroke-width: 8;
    animation: softwareHeroType 4.4s ease-in-out infinite;
}

.software-hero-code-line.is-two {
    animation-delay: 0.42s;
}

.software-hero-code-line.is-three {
    animation-delay: 0.84s;
}

.software-hero-upload-line {
    stroke: rgba(255, 255, 255, 0.62);
    stroke-width: 6;
    animation-delay: 1.15s;
}

.software-hero-upload-line.is-short {
    animation-delay: 1.45s;
}

.software-hero-progress-track {
    fill: rgba(255, 255, 255, 0.18);
}

.software-hero-progress-fill {
    fill: #ffb347;
    transform-box: fill-box;
    transform-origin: left center;
    animation: softwareHeroInstallProgress 4.4s ease-in-out infinite;
}

.software-hero-download circle {
    fill: rgba(255, 255, 255, 0.82);
    stroke: rgba(0, 102, 104, 0.14);
    stroke-width: 2;
}

.software-hero-download path {
    fill: none;
    stroke: var(--public-teal);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 8;
    animation: softwareHeroDownloadPulse 2.7s ease-in-out infinite;
}

.software-hero-board rect {
    fill: url("#softwareBoardGradient");
}

.software-hero-board circle {
    fill: #d5f5f2;
    animation: softwareHeroLed 2.4s ease-in-out infinite;
}

.software-hero-board circle:nth-of-type(2) {
    animation-delay: 0.75s;
}

.software-hero-board rect + circle + circle + rect {
    fill: rgba(255, 255, 255, 0.24);
}

.software-hero-board path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.36);
    stroke-linecap: round;
    stroke-width: 3;
}

.software-hero-file rect {
    fill: rgba(255, 255, 255, 0.82);
    stroke: rgba(0, 102, 104, 0.12);
    stroke-width: 2;
}

.software-hero-file path {
    fill: none;
    stroke: rgba(0, 102, 104, 0.46);
    stroke-linecap: round;
    stroke-width: 5;
}

.software-hero-file {
    transform-box: fill-box;
    transform-origin: center;
    animation: softwareHeroFileFloat 5.4s ease-in-out infinite;
}

.software-hero-file.is-linux {
    animation-delay: -1.8s;
}

.software-hero-file.is-macos {
    animation-delay: -3.1s;
}

.software-hero-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(0, 102, 104, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 16px 38px -28px rgba(19, 29, 33, 0.42);
    color: var(--public-teal-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
    animation: softwareHeroChipFloat 5.2s ease-in-out infinite;
}

.software-hero-chip.is-download {
    top: 12%;
    left: 1%;
}

.software-hero-chip.is-ide {
    top: 7%;
    right: 12%;
    animation-delay: -1.7s;
}

.software-hero-chip.is-board {
    right: 10%;
    bottom: 10%;
    animation-delay: -3s;
}

@keyframes softwareHeroFlow {
    to {
        stroke-dashoffset: -60;
    }
}

@keyframes softwareHeroType {
    0%,
    12% {
        opacity: 0;
        stroke-dashoffset: 130;
    }

    24%,
    72% {
        opacity: 1;
        stroke-dashoffset: 0;
    }

    88%,
    100% {
        opacity: 0;
        stroke-dashoffset: 0;
    }
}

@keyframes softwareHeroSignal {
    0%,
    100% {
        opacity: 0.56;
        stroke-dasharray: 0 0;
    }

    50% {
        opacity: 1;
        stroke-dasharray: 18 8;
    }
}

@keyframes softwareHeroInstallProgress {
    0%,
    12% {
        opacity: 0.5;
        transform: scaleX(0.08);
    }

    58%,
    78% {
        opacity: 1;
        transform: scaleX(1);
    }

    100% {
        opacity: 0.5;
        transform: scaleX(0.08);
    }
}

@keyframes softwareHeroDownloadPulse {
    0%,
    100% {
        filter: drop-shadow(0 0 0 rgba(0, 102, 104, 0));
        opacity: 0.72;
        transform: translateY(0);
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(0, 102, 104, 0.34));
        opacity: 1;
        transform: translateY(5px);
    }
}

@keyframes softwareHeroLed {
    0%,
    100% {
        fill: #d5f5f2;
        filter: drop-shadow(0 0 0 rgba(213, 245, 242, 0));
        opacity: 0.68;
    }

    45% {
        fill: #8ffcf3;
        filter: drop-shadow(0 0 10px rgba(143, 252, 243, 0.86));
        opacity: 1;
    }
}

@keyframes softwareHeroFileFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -8px, 0);
    }
}

@keyframes softwareHeroChipFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -7px, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .software-hero-orbit,
    .software-hero-cable,
    .software-hero-cloud-signal,
    .software-hero-code-line,
    .software-hero-upload-line,
    .software-hero-progress-fill,
    .software-hero-download path,
    .software-hero-board circle,
    .software-hero-file,
    .software-hero-chip {
        animation: none;
    }

    .software-hero-code-line,
    .software-hero-upload-line {
        opacity: 1;
        stroke-dashoffset: 0;
    }
}

.landing-button.is-disabled,
.software-download-button.is-disabled {
    border-color: rgba(110, 121, 121, 0.16);
    background: rgba(110, 121, 121, 0.12);
    color: var(--public-muted);
    cursor: not-allowed;
}

.software-release-card {
    display: grid;
    align-content: start;
    gap: 20px;
    padding: 28px;
    border: 1px solid rgba(110, 121, 121, 0.14);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(0, 129, 132, 0.14), rgba(255, 255, 255, 0.76)),
        rgba(255, 255, 255, 0.72);
    box-shadow: 0 24px 64px -34px rgba(19, 29, 33, 0.18);
}

.software-release-card-head {
    display: grid;
    gap: 12px;
}

.software-card-label,
.software-release-meta dt {
    color: var(--public-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.software-release-version {
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(3rem, 6vw, 5.4rem);
    line-height: 0.92;
}

.software-release-card-head p {
    margin: 0;
    color: var(--public-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.software-release-flow {
    display: grid;
    gap: 10px;
}

.software-release-flow-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.56);
}

.software-release-flow-item > .material-symbols-outlined {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(0, 102, 104, 0.1);
    color: var(--public-teal);
    font-size: 1.35rem;
}

.software-release-flow-item div {
    display: grid;
    gap: 4px;
}

.software-release-flow-item b {
    color: var(--public-text);
    font-size: 0.98rem;
}

.software-release-flow-item div span {
    color: var(--public-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.software-release-meta {
    display: grid;
    gap: 14px;
    margin: 0;
}

.software-release-meta div {
    display: grid;
    gap: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(110, 121, 121, 0.14);
}

.software-release-meta div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.software-release-meta dd {
    margin: 0;
    color: var(--public-text);
    font-weight: 700;
}

.software-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
}

.software-quick-section {
    display: grid;
    gap: 20px;
    margin-top: 34px;
}

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

.software-quick-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 96px;
    padding: 18px;
    border: 1px solid rgba(110, 121, 121, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--public-text);
    text-decoration: none;
    box-shadow: 0 20px 54px -38px rgba(19, 29, 33, 0.24);
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.software-quick-card:hover,
.software-quick-card:focus-visible,
.software-quick-card.is-detected {
    transform: translateY(-2px);
    border-color: rgba(0, 102, 104, 0.22);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 64px -42px rgba(19, 29, 33, 0.28);
    outline: none;
}

.software-quick-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(0, 129, 132, 0.1);
    color: var(--public-teal);
}

.software-quick-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.software-quick-copy strong,
.software-quick-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.software-quick-copy strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.04rem;
}

.software-quick-copy small {
    color: var(--public-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.software-quick-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    display: none;
    min-height: 24px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(0, 102, 104, 0.1);
    color: var(--public-teal);
    font-size: 0.72rem;
    font-weight: 800;
}

.software-quick-card.is-detected .software-quick-badge {
    display: inline-flex;
}

.software-install-guide {
    display: grid;
    gap: 24px;
    margin-top: 52px;
    scroll-margin-top: 100px;
}

.software-install-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: clamp(20px, 4vw, 42px);
    align-items: center;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(0, 129, 132, 0.14), transparent 38%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(230, 243, 248, 0.82));
    box-shadow: 0 24px 68px -46px rgba(19, 29, 33, 0.28);
}

.software-install-hero h3,
.software-install-os-card h3,
.software-install-steps h3,
.software-install-troubles h3 {
    margin: 0;
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
}

.software-install-hero p {
    max-width: 78ch;
    margin: 12px 0 0;
    color: var(--public-muted);
    font-size: 1.04rem;
    line-height: 1.7;
}

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

.software-install-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid rgba(0, 102, 104, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--public-text);
    font-weight: 800;
}

.software-install-checklist span,
.software-install-step-number {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 12px;
    background: rgba(0, 102, 104, 0.1);
    color: var(--public-teal);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 800;
}

.software-install-os-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.software-install-os-card,
.software-install-steps article,
.software-install-troubles {
    border: 1px solid rgba(110, 121, 121, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 24px 64px -42px rgba(19, 29, 33, 0.2);
}

.software-install-os-card {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 22px;
}

.software-install-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.software-install-card-head .material-symbols-outlined {
    color: var(--public-teal);
    font-size: 1.7rem;
}

.software-install-os-card ol,
.software-install-steps ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 22px;
}

.software-install-os-card li,
.software-install-steps p,
.software-install-troubles p {
    color: var(--public-muted);
    font-size: 0.98rem;
    line-height: 1.62;
}

.software-install-os-card li::marker {
    color: var(--public-teal);
    font-weight: 800;
}

.software-install-os-card a,
.software-install-troubles a {
    color: var(--public-teal);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.software-install-os-card a:hover,
.software-install-os-card a:focus-visible,
.software-install-troubles a:hover,
.software-install-troubles a:focus-visible {
    color: var(--public-teal-dark);
    outline: none;
}

.software-install-guide code {
    border-radius: 7px;
    background: rgba(0, 102, 104, 0.1);
    color: var(--public-teal-dark);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9em;
    padding: 0.08rem 0.32rem;
}

.software-install-steps {
    display: grid;
    gap: 14px;
}

.software-install-steps article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    padding: 22px;
}

.software-install-steps p {
    margin: 8px 0 0;
}

.software-install-port-help {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(0, 102, 104, 0.1);
    border-radius: 18px;
    background: rgba(230, 243, 248, 0.58);
}

.software-install-port-help h4 {
    margin: 0;
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
}

.software-install-port-help ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 22px;
}

.software-install-port-help li {
    color: var(--public-muted);
    line-height: 1.58;
}

.software-install-port-help li::marker {
    color: var(--public-teal);
    font-weight: 800;
}

.software-install-steps pre {
    overflow-x: auto;
    margin: 16px 0 0;
    padding: 18px;
    border-radius: 18px;
    background: #10242d;
    color: #d8fff8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.software-install-steps pre code {
    display: block;
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: 0.9rem;
    line-height: 1.7;
}

.software-install-troubles {
    display: grid;
    gap: 16px;
    padding: 22px;
}

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

.software-install-trouble-grid details {
    border: 1px solid rgba(0, 102, 104, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
    padding: 14px 16px;
}

.software-install-trouble-grid summary {
    color: var(--public-text);
    cursor: pointer;
    font-weight: 800;
}

.software-download-section {
    display: grid;
    gap: 24px;
    margin-top: 52px;
}

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

.software-platform-card {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(110, 121, 121, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 24px 64px -40px rgba(19, 29, 33, 0.2);
    scroll-margin-top: 100px;
    transition:
        border-color var(--motion-fast),
        box-shadow var(--motion-fast),
        transform var(--motion-fast);
}

.software-platform-card:target {
    border-color: rgba(0, 102, 104, 0.4);
    box-shadow:
        0 26px 72px -42px rgba(0, 102, 104, 0.36),
        0 0 0 5px rgba(0, 102, 104, 0.08);
    transform: translateY(-2px);
}

.software-platform-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.software-platform-head .material-symbols-outlined {
    color: var(--public-teal);
}

.software-platform-head h3 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.45rem;
}

.software-file-list {
    display: grid;
    gap: 10px;
}

.software-file-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 82px;
    padding: 14px;
    border: 1px solid rgba(110, 121, 121, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.66);
}

.software-file-row:hover {
    border-color: rgba(0, 102, 104, 0.16);
    background: rgba(255, 255, 255, 0.88);
}

.software-file-main {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.software-file-main strong {
    color: var(--public-text);
}

.software-file-main span {
    color: var(--public-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

body.public-page .software-download-button {
    min-width: 94px;
    border: 1px solid rgba(0, 102, 104, 0.12);
    background: var(--public-teal);
    color: #fff;
}

body.public-page .software-download-button:visited,
body.public-page .software-download-button span {
    color: #fff;
}

body.public-page .software-download-button:hover,
body.public-page .software-download-button:focus-visible {
    background: var(--public-teal-strong);
    outline: none;
}

.software-info-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.software-info-band article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(110, 121, 121, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.68);
}

.software-info-band .material-symbols-outlined {
    color: var(--public-teal);
}

.software-info-band h2 {
    margin: 0 0 8px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
}

.software-info-band p {
    margin: 0;
    color: var(--public-muted);
    line-height: 1.65;
}

.software-info-band a {
    display: inline-flex;
    margin-top: 12px;
    color: var(--public-teal);
    font-weight: 800;
    text-decoration: none;
}

.software-seo-section {
    margin-top: 44px;
}

.software-seo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 18px;
    align-items: start;
}

.software-seo-article,
.software-seo-faq {
    padding: 28px;
    border: 1px solid rgba(110, 121, 121, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 24px 64px -40px rgba(19, 29, 33, 0.18);
}

.software-seo-article h2,
.software-seo-faq h2 {
    margin: 0 0 18px;
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1.02;
}

.software-seo-article h3 {
    margin: 28px 0 10px;
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
}

.software-seo-article p,
.software-seo-article li,
.software-seo-faq p {
    color: var(--public-muted);
    line-height: 1.75;
}

.software-seo-article p {
    margin: 0 0 16px;
}

.software-seo-article ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
}

.software-seo-article strong {
    color: var(--public-text);
}

.software-seo-faq {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 10px;
}

.software-seo-faq details {
    padding: 14px 16px;
    border: 1px solid rgba(110, 121, 121, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
}

.software-seo-faq summary {
    cursor: pointer;
    color: var(--public-text);
    font-weight: 800;
    line-height: 1.35;
}

.software-seo-faq p {
    margin: 10px 0 0;
    font-size: 0.95rem;
}

.software-seo-faq code {
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(0, 102, 104, 0.08);
    color: var(--public-teal);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.82rem;
}

.editorial-grid,
.catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 24px;
}

.editorial-card strong,
.catalog-card h2 {
    display: block;
    margin: 8px 0 10px;
    font-size: 1.25rem;
}

.catalog-card-description {
    display: block;
    color: var(--public-muted);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.45;
}

.catalog-card-count {
    display: block;
    margin-top: auto;
    padding-top: 18px;
    color: var(--public-text);
    font-weight: 700;
}

.editorial-card-link,
.catalog-card-link,
.doc-meta-grid a {
    color: var(--public-teal);
    text-decoration: none;
    font-weight: 600;
}

.editorial-card-link,
.catalog-card-link {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.catalog-card-link {
    display: flex;
    flex-direction: column;
    min-height: 182px;
}

.editorial-card-link:hover,
.editorial-card-link:focus-visible,
.catalog-card-link:hover,
.catalog-card-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 30px 72px -36px rgba(19, 29, 33, 0.28);
    background: rgba(255, 255, 255, 0.82);
    outline: none;
}

.reference-home {
    display: grid;
    gap: 14px;
}

.reference-home-intro {
    padding: 4px 0 2px;
}

.reference-home-lead {
    max-width: 72ch;
    margin: 18px 0 0;
    font-size: 1.06rem;
    line-height: 1.75;
    color: var(--public-muted);
}

.reference-home-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
    color: var(--public-muted);
}

.reference-home-stats strong {
    color: var(--public-text);
}

.reference-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reference-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--public-muted);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 18px 40px -28px rgba(19, 29, 33, 0.18);
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.reference-tab:hover,
.reference-tab:focus-visible {
    color: var(--public-text);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    outline: none;
}

.reference-tab.is-active {
    background: rgba(0, 102, 104, 0.1);
    color: var(--public-teal);
}

.reference-panels {
    display: grid;
}

.reference-panel {
    display: none;
    min-width: 0;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 24px 64px -34px rgba(19, 29, 33, 0.18);
}

.reference-panel.is-active {
    display: block;
}

.reference-panel-intro {
    margin-bottom: 14px;
}

.reference-panel-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
}

.reference-panel-heading {
    display: grid;
    gap: 4px;
}

.reference-panel-heading p {
    margin: 0;
    color: var(--public-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.reference-panel-heading h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.55rem;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.reference-column-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(0, 102, 104, 0.08);
    color: var(--public-teal);
    box-shadow: inset 0 0 0 1px rgba(0, 102, 104, 0.08);
}

.reference-column-icon .material-symbols-outlined {
    font-size: 28px;
    font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
}

.reference-panel-lead {
    max-width: 56ch;
    margin: 2px 0 0;
    color: var(--public-muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

.reference-category-list {
    display: grid;
    gap: 16px;
}

.reference-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
}

.reference-category-card {
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(235, 245, 251, 0.58);
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.reference-category-card:hover {
    background: rgba(235, 245, 251, 0.82);
    box-shadow: inset 0 0 0 1px rgba(0, 102, 104, 0.08);
}

.reference-category-title {
    display: inline-block;
    margin-bottom: 5px;
    color: var(--public-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.94rem;
}

.reference-category-title:hover,
.reference-category-title:focus-visible {
    color: var(--public-teal);
    text-decoration: underline;
    text-underline-offset: 3px;
    outline: none;
}

.reference-item-links {
    display: grid;
    gap: 2px;
}

.reference-item-links a {
    display: block;
    padding: 3px 7px;
    margin: 0 -7px;
    border-radius: 8px;
    background: transparent;
    color: var(--public-teal);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.22;
    transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.reference-item-links a:hover,
.reference-item-links a:focus-visible {
    color: var(--public-text);
    background: rgba(0, 102, 104, 0.09);
    transform: translateX(3px);
    outline: none;
}

.reference-tooltip {
    position: absolute;
    z-index: 80;
    width: min(320px, calc(100vw - 32px));
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(19, 29, 33, 0.94);
    color: #e8f2f9;
    box-shadow: 0 24px 64px -28px rgba(19, 29, 33, 0.42);
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.reference-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reference-tooltip-title {
    margin-bottom: 6px;
    font-weight: 700;
}

.reference-tooltip-body {
    color: rgba(232, 242, 249, 0.82);
    font-size: 0.9rem;
    line-height: 1.45;
}

.doc-entry {
    max-width: 920px;
}

.doc-breadcrumbs {
    color: var(--public-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.doc-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(216, 229, 235, 0.7);
    color: rgba(90, 102, 107, 1);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
}

.doc-chip:hover,
.doc-chip:focus-visible {
    background: rgba(0, 102, 104, 0.12);
    color: var(--public-teal);
    outline: none;
}

.doc-chip.is-active {
    background: rgba(0, 102, 104, 0.1);
    color: var(--public-teal);
}

.doc-breadcrumb-link {
    color: var(--public-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.18s ease;
}

.doc-breadcrumb-link:hover,
.doc-breadcrumb-link:focus-visible {
    color: var(--public-teal);
    text-decoration: underline;
    text-underline-offset: 3px;
    outline: none;
}

.doc-breadcrumb-current {
    color: var(--public-text);
    font-weight: 800;
    line-height: 1.35;
}

.doc-hero {
    margin-bottom: 42px;
}

.doc-title {
    font-size: clamp(3.2rem, 8vw, 5rem);
    color: var(--public-teal);
}

.doc-lead {
    max-width: 58ch;
    margin: 20px 0 0;
    font-size: 1.14rem;
    line-height: 1.7;
}

.doc-lead code,
.catalog-item-card code {
    padding: 0.12em 0.34em;
    border-radius: 7px;
    background: rgba(216, 228, 234, 0.85);
    color: var(--public-text);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.88em;
    white-space: nowrap;
}

.doc-note-box {
    max-width: 720px;
    margin-top: 24px;
    background: rgba(218, 228, 234, 0.85);
    border-left: 4px solid rgba(0, 102, 104, 0.42);
    color: var(--public-muted);
}

.doc-note-box strong {
    display: block;
    margin-bottom: 8px;
    color: var(--public-text);
}

.doc-note-box .prose p:last-child {
    margin-bottom: 0;
}

.doc-section + .doc-section {
    margin-top: 40px;
}

.doc-section h2 {
    margin: 0 0 16px;
    font-size: 2rem;
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
}

.code-panel {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 22px;
    background: var(--public-dark);
}

.code-label {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 8px;
    background: rgba(218, 228, 234, 0.18);
    padding: 4px 8px;
    color: #e8f2f9;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.public-page pre {
    margin: 0;
    padding: 0;
    background: transparent;
    color: #e8f2f9;
    box-shadow: none;
}

body.public-page pre code {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.93rem;
    color: #e8f2f9;
}

body.public-page .prose {
    max-width: none;
    line-height: 1.8;
    color: var(--public-text);
}

body.public-page .prose h2,
body.public-page .prose h3,
body.public-page .prose h4 {
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
}

body.public-page .prose code {
    background: rgba(216, 229, 235, 0.9);
    color: var(--public-text);
}

body.public-page .prose pre code,
.editor-preview pre code {
    background: transparent;
}

body.public-page .prose blockquote {
    background: rgba(223, 234, 240, 0.74);
    border-left-color: rgba(0, 102, 104, 0.38);
}

body.public-page .prose img,
.visual-editor img,
.editor-preview img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 18px auto;
    border-radius: 20px;
    box-shadow: 0 26px 70px -42px rgba(19, 29, 33, 0.34);
}

.doc-article .table-wrap,
body.public-page .prose .table-wrap {
    width: fit-content;
    max-width: 100%;
    margin: 22px 0;
    overflow: auto;
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
}

body.public-page .prose table {
    width: max-content;
    margin: 0;
    min-width: min(520px, 100%);
    background: transparent;
}

body.public-page .prose th {
    background: rgba(216, 229, 235, 0.9);
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
}

body.public-page .prose td {
    color: var(--public-text);
}

.learn-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.learn-entry-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border: 1px solid rgba(0, 102, 104, 0.14);
    border-radius: 999px;
    background: rgba(216, 229, 235, 0.72);
    color: var(--public-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.learn-entry .doc-hero {
    max-width: 980px;
    margin-bottom: 28px;
}

.learn-entry .doc-title {
    max-width: 24ch;
    font-size: clamp(2rem, 3.4vw, 3.35rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.learn-entry .doc-lead {
    max-width: 66ch;
    margin-top: 16px;
    font-size: 1.05rem;
    line-height: 1.65;
}

.learn-article img {
    background: rgba(255, 255, 255, 0.88);
    padding: 8px;
}

.learn-category-card h2,
.learn-lesson-card strong {
    overflow-wrap: anywhere;
}

.learn-directory {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 58px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 102, 104, 0.16);
}

.learn-directory-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
}

.learn-directory-head p {
    margin: 0 0 4px;
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.learn-directory-head span {
    color: var(--public-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.learn-directory-head a {
    flex: 0 0 auto;
    color: var(--public-teal);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
}

.learn-directory-head a:hover,
.learn-directory-head a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
    outline: none;
}

.learn-directory-section {
    min-width: 0;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 102, 104, 0.14);
}

.learn-directory-heading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    text-decoration: none;
}

.learn-directory-heading:hover,
.learn-directory-heading:focus-visible {
    color: var(--public-teal);
    outline: none;
}

.learn-directory-heading .material-symbols-outlined {
    color: var(--public-teal);
    font-size: 1.28rem;
}

.learn-directory-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.learn-directory-list a {
    color: var(--public-muted);
    font-size: 0.95rem;
    line-height: 1.45;
    text-decoration: none;
}

.learn-directory-list a:hover,
.learn-directory-list a:focus-visible {
    color: var(--public-teal);
    text-decoration: underline;
    text-underline-offset: 4px;
    outline: none;
}

.legacy-lessons-page,
.legacy-entry {
    display: grid;
    gap: 34px;
}

.legacy-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.78fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(226, 247, 247, 0.92), rgba(255, 255, 255, 0.78) 58%, rgba(244, 250, 253, 0.92));
    box-shadow: 0 26px 72px -48px rgba(19, 29, 33, 0.3);
}

.legacy-hero::before {
    content: "";
    position: absolute;
    right: min(5vw, 70px);
    bottom: -110px;
    width: min(42vw, 460px);
    aspect-ratio: 1;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(0, 102, 104, 0.18), rgba(0, 102, 104, 0) 68%);
    pointer-events: none;
}

.legacy-hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 20px;
    max-width: 780px;
}

.legacy-hero h1 {
    max-width: 14ch;
    margin: 0;
    color: var(--public-teal);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(3.2rem, 7vw, 5.6rem);
    line-height: 1;
    letter-spacing: 0;
}

.legacy-hero-copy p:last-of-type {
    max-width: 66ch;
    margin: 0;
    color: var(--public-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

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

.legacy-hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.legacy-hero-illustration {
    position: relative;
    width: min(100%, 520px);
    isolation: isolate;
}

.legacy-hero-scene {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 28px 34px rgba(0, 84, 126, 0.13));
}

.legacy-hero-wire,
.legacy-hero-board-wire {
    fill: none;
    stroke: rgba(0, 102, 104, 0.42);
    stroke-dasharray: 12 18;
    stroke-linecap: round;
    stroke-width: 5;
    animation: legacyHeroWireFlow 4.6s linear infinite;
}

.legacy-hero-wire.is-second {
    stroke: rgba(255, 177, 66, 0.45);
    stroke-width: 4;
    animation-duration: 5.8s;
    animation-direction: reverse;
}

.legacy-hero-board-wire.is-yellow {
    stroke: rgba(255, 177, 66, 0.62);
    animation-duration: 3.8s;
}

.legacy-hero-orb {
    fill: rgba(0, 102, 104, 0.11);
}

.legacy-hero-orb.is-small {
    fill: rgba(255, 177, 66, 0.18);
}

.legacy-hero-card {
    fill: rgba(255, 255, 255, 0.74);
    stroke: rgba(0, 102, 104, 0.13);
    stroke-width: 2;
}

.legacy-hero-code,
.legacy-hero-signal,
.legacy-hero-screen-lines {
    fill: none;
    stroke: rgba(0, 102, 104, 0.18);
    stroke-linecap: round;
    stroke-width: 7;
}

.legacy-hero-typed-line {
    fill: none;
    stroke: #38d2ce;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    stroke-linecap: round;
    stroke-width: 7;
    animation: legacyHeroTypeLine 4.2s ease-in-out infinite;
}

.legacy-hero-typed-line.is-two {
    animation-delay: 0.55s;
}

.legacy-hero-typed-line.is-three {
    animation-delay: 1.1s;
}

.legacy-hero-cursor {
    fill: #ffb347;
    opacity: 0;
    animation: legacyHeroCursor 4.2s steps(1, end) infinite;
}

.legacy-hero-signal {
    stroke-width: 5;
}

.legacy-hero-shadow {
    fill: rgba(0, 84, 126, 0.1);
}

.legacy-hero-desk {
    fill: url("#legacyHeroDesk");
    stroke: rgba(0, 102, 104, 0.12);
}

.legacy-hero-kid circle {
    fill: #f2bf9c;
}

.legacy-hero-kid path {
    fill: #17232a;
}

.legacy-hero-kid.is-left path:nth-of-type(2) {
    fill: #006668;
}

.legacy-hero-kid.is-right path:nth-of-type(2) {
    fill: #ffb347;
}

.legacy-hero-kid .legacy-hero-arm {
    fill: none;
    stroke: #edb28e;
    stroke-linecap: round;
    stroke-width: 15;
}

.legacy-hero-laptop path:first-child {
    fill: #142a34;
}

.legacy-hero-laptop path:nth-child(2) {
    fill: #e8f4f6;
    stroke: rgba(0, 102, 104, 0.14);
}

.legacy-hero-board rect {
    fill: url("#legacyHeroBoard");
}

.legacy-hero-board circle {
    fill: #d5f5f2;
    filter: drop-shadow(0 0 0 rgba(213, 245, 242, 0));
    animation: legacyHeroLed 2.4s ease-in-out infinite;
}

.legacy-hero-board circle:nth-of-type(2) {
    animation-delay: 0.8s;
}

.legacy-hero-board rect + circle + circle + rect {
    fill: rgba(255, 255, 255, 0.26);
}

.legacy-hero-board > path:not(.legacy-hero-board-wire) {
    fill: none;
    stroke: rgba(255, 255, 255, 0.42);
    stroke-linecap: round;
    stroke-width: 3;
}

.legacy-hero-project rect {
    fill: #ffffff;
    stroke: rgba(0, 102, 104, 0.15);
}

.legacy-hero-project path {
    fill: none;
    stroke: #006668;
    stroke-linecap: round;
    stroke-width: 5;
}

.legacy-hero-project circle {
    fill: rgba(255, 177, 66, 0.72);
    transform-box: fill-box;
    transform-origin: center;
    animation: legacyHeroBulb 2.8s ease-in-out infinite;
}

.legacy-hero-floating-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid rgba(0, 102, 104, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 38px -28px rgba(19, 29, 33, 0.42);
    color: var(--public-teal-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
    animation:
        legacyHeroFloat 5.5s ease-in-out infinite,
        legacyHeroChipGlow 3.6s ease-in-out infinite;
}

.legacy-hero-floating-chip.is-arduino {
    top: 12%;
    left: 14%;
}

.legacy-hero-floating-chip.is-code {
    top: 21%;
    right: 7%;
    animation-delay: -1.8s;
}

.legacy-hero-floating-chip.is-project {
    right: 18%;
    bottom: 13%;
    animation-delay: -3.1s;
}

@keyframes legacyHeroFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -8px, 0);
    }
}

@keyframes legacyHeroWireFlow {
    to {
        stroke-dashoffset: -60;
    }
}

@keyframes legacyHeroTypeLine {
    0%,
    12% {
        opacity: 0;
        stroke-dashoffset: 100;
    }

    22%,
    70% {
        opacity: 1;
        stroke-dashoffset: 0;
    }

    88%,
    100% {
        opacity: 0;
        stroke-dashoffset: 0;
    }
}

@keyframes legacyHeroCursor {
    0%,
    11%,
    24%,
    37%,
    50%,
    63%,
    76%,
    89% {
        opacity: 0;
    }

    12%,
    23%,
    38%,
    49%,
    64%,
    75% {
        opacity: 1;
    }
}

@keyframes legacyHeroLed {
    0%,
    100% {
        fill: #d5f5f2;
        filter: drop-shadow(0 0 0 rgba(213, 245, 242, 0));
        opacity: 0.68;
    }

    45% {
        fill: #8ffcf3;
        filter: drop-shadow(0 0 10px rgba(143, 252, 243, 0.86));
        opacity: 1;
    }
}

@keyframes legacyHeroBulb {
    0%,
    100% {
        filter: drop-shadow(0 0 0 rgba(255, 177, 66, 0));
        opacity: 0.72;
        transform: scale(1);
    }

    45% {
        filter: drop-shadow(0 0 14px rgba(255, 177, 66, 0.82));
        opacity: 1;
        transform: scale(1.08);
    }
}

@keyframes legacyHeroChipGlow {
    0%,
    100% {
        box-shadow: 0 16px 38px -28px rgba(19, 29, 33, 0.42);
    }

    50% {
        box-shadow:
            0 18px 42px -28px rgba(19, 29, 33, 0.44),
            0 0 0 6px rgba(0, 102, 104, 0.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .legacy-hero-wire,
    .legacy-hero-board-wire,
    .legacy-hero-typed-line,
    .legacy-hero-cursor,
    .legacy-hero-board circle,
    .legacy-hero-project circle,
    .legacy-hero-floating-chip {
        animation: none;
    }

    .legacy-hero-typed-line {
        opacity: 1;
        stroke-dashoffset: 0;
    }
}

.legacy-hero-panel {
    display: grid;
    gap: 14px;
    align-content: center;
    padding: 24px;
    border: 1px solid rgba(0, 102, 104, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 24px 64px -40px rgba(19, 29, 33, 0.22);
}

.legacy-hero-panel div {
    display: grid;
    gap: 5px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 102, 104, 0.12);
}

.legacy-hero-panel div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.legacy-hero-panel span,
.legacy-card-meta,
.legacy-section-head p {
    color: var(--public-muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legacy-hero-panel strong {
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.6rem;
    line-height: 1;
}

.legacy-basic-projects {
    display: grid;
    grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
    gap: clamp(22px, 4vw, 42px);
    align-items: start;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(244, 250, 252, 0.82)),
        linear-gradient(90deg, rgba(0, 102, 104, 0.04), transparent 42%);
    box-shadow: 0 24px 68px -48px rgba(19, 29, 33, 0.28);
}

.legacy-basic-projects-visual {
    display: grid;
    gap: 18px;
}

.legacy-basic-projects-visual h2 {
    margin: 0;
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.12;
}

.legacy-basic-projects-visual img {
    width: min(100%, 170px);
    height: auto;
    filter: drop-shadow(0 18px 24px rgba(0, 84, 126, 0.16));
}

.legacy-basic-projects-content {
    display: grid;
    gap: 18px;
}

.legacy-basic-projects-content > p {
    max-width: 88ch;
    margin: 0;
    color: var(--public-text);
    font-size: 1.02rem;
    line-height: 1.62;
}

.legacy-basic-projects-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px clamp(24px, 5vw, 56px);
}

.legacy-basic-projects-columns ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
}

.legacy-basic-projects-columns li::marker {
    color: var(--public-teal);
}

.legacy-basic-projects-columns a {
    color: var(--public-teal);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color var(--motion-fast), text-decoration-color var(--motion-fast);
}

.legacy-basic-projects-columns a:hover,
.legacy-basic-projects-columns a:focus-visible {
    color: var(--public-teal-dark);
    text-decoration-color: transparent;
    outline: none;
}

.legacy-category-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scrollbar-width: thin;
}

.legacy-category-strip a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--public-text);
    text-decoration: none;
    font-weight: 700;
}

.legacy-category-strip small {
    color: var(--public-muted);
    font-weight: 800;
}

.legacy-category-strip a:hover,
.legacy-category-strip a:focus-visible,
.legacy-category-strip a.is-active {
    border-color: rgba(0, 102, 104, 0.24);
    background: rgba(0, 102, 104, 0.1);
    color: var(--public-teal);
    outline: none;
}

.legacy-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.legacy-section-head h2 {
    margin: 4px 0 0;
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.5rem;
    line-height: 1.08;
}

.legacy-section-head > span {
    flex: 0 0 auto;
    color: var(--public-muted);
    font-weight: 700;
}

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

.legacy-lesson-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 102, 104, 0.13);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--public-text);
    text-decoration: none;
    box-shadow: 0 22px 60px -42px rgba(19, 29, 33, 0.3);
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.legacy-lesson-card:hover,
.legacy-lesson-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(0, 102, 104, 0.28);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 28px 70px -44px rgba(19, 29, 33, 0.34);
    outline: none;
}

.legacy-card-media,
.legacy-entry-cover {
    position: relative;
    overflow: hidden;
    background: rgba(216, 229, 235, 0.72);
}

.legacy-card-media {
    aspect-ratio: 16 / 10;
}

.legacy-card-media img,
.legacy-card-video,
.legacy-entry-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.legacy-card-media img,
.legacy-entry-cover img {
    display: block;
}

.legacy-card-video {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.legacy-lesson-card.is-video-active .legacy-card-video,
.legacy-entry-cover.is-video-active .legacy-card-video {
    opacity: 1;
}

.legacy-card-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--public-teal);
}

.legacy-card-placeholder .material-symbols-outlined {
    font-size: 3rem;
}

.legacy-video-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--public-teal);
    box-shadow: 0 12px 30px -18px rgba(19, 29, 33, 0.5);
}

.legacy-card-body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.legacy-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.legacy-card-body strong {
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.15rem;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.legacy-card-lead {
    color: var(--public-muted);
    font-size: 0.94rem;
    line-height: 1.58;
}

.legacy-empty-state,
.legacy-seo-section {
    padding: 26px;
    border: 1px solid rgba(0, 102, 104, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
}

.legacy-empty-state {
    display: grid;
    justify-items: start;
    gap: 8px;
    color: var(--public-muted);
}

.legacy-empty-state .material-symbols-outlined {
    color: var(--public-teal);
    font-size: 2rem;
}

.legacy-empty-state strong {
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.2rem;
}

.legacy-seo-section {
    max-width: 940px;
}

.legacy-seo-section h2 {
    margin: 0 0 14px;
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
}

.legacy-seo-section p {
    margin: 0 0 14px;
    color: var(--public-muted);
    line-height: 1.75;
}

.legacy-seo-section p:last-child {
    margin-bottom: 0;
}

.legacy-entry {
    max-width: 1180px;
}

.legacy-entry-hero {
    display: grid;
    gap: 18px;
}

.legacy-entry .doc-title {
    max-width: 18ch;
    font-size: 4rem;
    line-height: 1.04;
}

.legacy-meta-link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border: 1px solid rgba(0, 102, 104, 0.14);
    border-radius: 999px;
    background: rgba(216, 229, 235, 0.72);
    color: var(--public-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.legacy-meta-link:hover,
.legacy-meta-link:focus-visible {
    border-color: rgba(0, 102, 104, 0.24);
    color: var(--public-teal);
    outline: none;
}

.legacy-entry-cover {
    width: min(920px, 100%);
    aspect-ratio: 16 / 9;
    margin: 10px 0 0;
    border-radius: 24px;
    box-shadow: 0 26px 70px -42px rgba(19, 29, 33, 0.34);
}

.legacy-entry-cover figcaption {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--public-teal);
    font-size: 0.82rem;
    font-weight: 800;
}

.legacy-entry-layout {
    display: grid;
    grid-template-columns: minmax(0, 850px) minmax(230px, 280px);
    gap: 28px;
    align-items: start;
}

.legacy-entry-content {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.legacy-toc {
    position: sticky;
    top: 92px;
    grid-column: 2;
    grid-row: 1;
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 46px -34px rgba(19, 29, 33, 0.28);
}

.legacy-toc strong {
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
}

.legacy-toc nav {
    display: grid;
    gap: 9px;
}

.legacy-toc a {
    position: relative;
    display: block;
    padding: 7px 0 7px 12px;
    color: var(--public-muted);
    font-size: 0.92rem;
    line-height: 1.4;
    text-decoration: none;
}

.legacy-toc a::before {
    content: "";
    position: absolute;
    top: 0.8em;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(0, 102, 104, 0.34);
}

.legacy-toc a:hover,
.legacy-toc a:focus-visible,
.legacy-toc a.is-active {
    color: var(--public-teal);
    text-decoration: underline;
    text-underline-offset: 4px;
    outline: none;
}

.legacy-toc a.is-active {
    font-weight: 800;
    text-decoration: none;
}

.legacy-toc a.is-active::before {
    background: var(--public-teal);
}

.legacy-article {
    overflow: visible;
    min-width: 0;
    max-width: 100%;
    padding: 34px 38px;
    border: 1px solid rgba(0, 102, 104, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 253, 254, 0.78)),
        rgba(255, 255, 255, 0.86);
}

.legacy-article p,
.legacy-article li {
    color: var(--public-text);
    font-size: 1.05rem;
    line-height: 1.75;
}

.legacy-article p,
.legacy-article ul,
.legacy-article ol,
.legacy-article figure,
.legacy-article blockquote,
.legacy-article pre {
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 22px;
}

.legacy-article p[style],
.legacy-article li[style],
.legacy-article span[style],
.legacy-article div[style],
.legacy-article h2[style],
.legacy-article h3[style],
.legacy-article h4[style] {
    color: inherit !important;
    font-family: inherit !important;
    letter-spacing: 0 !important;
}

.legacy-article h2,
.legacy-article h3,
.legacy-article h4 {
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.16;
}

.legacy-article h2 {
    scroll-margin-top: 96px;
    margin-top: 34px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 102, 104, 0.12);
    font-size: 2.15rem;
}

.legacy-article h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.legacy-article h3 {
    font-size: 1.55rem;
}

.legacy-article h4 {
    font-size: 1.25rem;
}

.legacy-article a {
    color: var(--public-teal);
    font-weight: 700;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

.content-callout,
.legacy-callout,
.legacy-article .alert {
    margin: 24px 0;
    padding: 16px 18px 16px 20px;
    border: 1px solid rgba(0, 102, 104, 0.16);
    border-left-width: 5px;
    border-radius: 8px;
    background: rgba(240, 249, 255, 0.96);
    color: #006a9b;
    box-shadow: 0 18px 46px -38px rgba(19, 29, 33, 0.28);
}

.content-callout-danger,
.legacy-callout-danger,
.legacy-article .alert-danger {
    border-color: #f3cbd0;
    border-left-color: #d9534f;
    background: #fff0f1;
    color: #b23a3a;
}

.content-callout-info,
.legacy-callout-info,
.legacy-article .alert-info {
    border-color: #bfeaf8;
    border-left-color: #007dbc;
    background: #f0f9ff;
    color: #006a9b;
}

.content-callout-success,
.legacy-callout-success,
.legacy-article .alert-success {
    border-color: #caeadf;
    border-left-color: #1d9d74;
    background: #f1f9f7;
    color: #187a59;
}

.content-callout p,
.content-callout ul,
.content-callout ol,
.legacy-callout p,
.legacy-callout ul,
.legacy-callout ol,
.legacy-article .alert p,
.legacy-article .alert ul,
.legacy-article .alert ol {
    color: inherit;
}

.content-callout-content > :last-child,
.legacy-callout-content > :last-child,
.legacy-article .alert > :last-child {
    margin-bottom: 0;
}

.legacy-article .alert em[class*="fa-"] {
    display: none;
}

.legacy-article figure {
    overflow-x: auto;
    text-align: center;
}

.legacy-article img {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    border: 1px solid rgba(0, 102, 104, 0.1);
    background: rgba(255, 255, 255, 0.86);
}

.legacy-article figure img {
    margin-top: 0;
    margin-bottom: 0;
}

.lesson-products {
    --kit-line: rgba(0, 102, 104, 0.14);
    --kit-shadow: rgba(0, 53, 72, 0.38);
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 22px;
    overflow: hidden;
    margin-top: 30px;
    padding: clamp(20px, 3.2vw, 32px);
    border: 1px solid var(--kit-line);
    border-radius: 32px;
    background:
        radial-gradient(circle at 10% 12%, rgba(0, 150, 153, 0.18), transparent 32%),
        radial-gradient(circle at 92% 18%, rgba(209, 139, 64, 0.14), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(239, 249, 250, 0.88) 52%, rgba(232, 244, 247, 0.84));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 26px 72px -48px var(--kit-shadow);
}

.lesson-products::before {
    content: "";
    position: absolute;
    top: -86px;
    right: -60px;
    z-index: 0;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 50%;
    background:
        linear-gradient(90deg, rgba(0, 102, 104, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(0, 102, 104, 0.08) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(circle, #000 0 58%, transparent 72%);
}

.lesson-products::after {
    content: "";
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 0;
    width: min(42%, 320px);
    height: 92px;
    border-right: 1px solid rgba(0, 102, 104, 0.12);
    border-bottom: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 0 0 28px 0;
    background:
        radial-gradient(circle, rgba(0, 102, 104, 0.18) 0 3px, transparent 4px) 0 0 / 54px 46px;
    opacity: 0.72;
}

.lesson-products-head {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 20px;
    align-items: start;
}

.lesson-products-titleline {
    display: flex;
    gap: 14px;
    align-items: center;
    min-width: 0;
}

.lesson-products-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(0, 102, 104, 0.14);
    border-radius: 20px 24px 18px 12px;
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.95), transparent 34%),
        linear-gradient(145deg, rgba(0, 150, 153, 0.2), rgba(209, 139, 64, 0.1));
    color: var(--public-teal);
    box-shadow: 0 18px 34px -28px rgba(0, 84, 126, 0.55);
    transform: rotate(-2deg);
}

.lesson-products-titleline p {
    margin: 0 0 4px;
    color: var(--public-teal);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lesson-products-titleline h2 {
    margin: 0;
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1;
    scroll-margin-top: 150px;
}

.lesson-products-intro {
    grid-column: 1 / -1;
    max-width: 64ch;
    margin: 0;
    color: var(--public-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.lesson-products-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(0, 102, 104, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--public-deep);
    font-size: 0.86rem;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.lesson-products-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    padding-top: 4px;
}

.lesson-products-grid::before {
    content: "";
    position: absolute;
    inset: 18px 24px 24px;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 102, 104, 0.08) 1px, transparent 1px) 0 0 / 86px 86px,
        linear-gradient(rgba(0, 102, 104, 0.08) 1px, transparent 1px) 0 0 / 86px 86px;
    mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 78%, transparent 100%);
    opacity: 0.58;
}

.lesson-product-card {
    --card-accent: #007c7e;
    --card-glow: rgba(0, 150, 153, 0.16);
    --card-chip: rgba(0, 102, 104, 0.08);
    --card-dot: rgba(0, 102, 104, 0.22);
    --card-shift: 0px;
    --card-tilt: 0deg;
    position: relative;
    z-index: 1;
    display: grid;
    grid-column: span 3;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    overflow: hidden;
    min-width: 0;
    min-height: 136px;
    padding: 16px 16px 16px 14px;
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 26px;
    background:
        radial-gradient(circle at 0 0, var(--card-glow), transparent 42%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(250, 253, 253, 0.78));
    color: inherit;
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 18px 42px -36px rgba(0, 53, 72, 0.42);
    transform: translateY(var(--card-shift)) rotate(var(--card-tilt));
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        background 220ms ease,
        box-shadow 220ms ease;
}

.lesson-product-card.tone-2 {
    --card-accent: #006f9f;
    --card-glow: rgba(0, 111, 159, 0.14);
    --card-chip: rgba(0, 111, 159, 0.08);
    --card-dot: rgba(0, 111, 159, 0.22);
}

.lesson-product-card.tone-3 {
    --card-accent: #c8752d;
    --card-glow: rgba(209, 139, 64, 0.16);
    --card-chip: rgba(209, 139, 64, 0.1);
    --card-dot: rgba(209, 139, 64, 0.26);
}

.lesson-product-card.tone-4 {
    --card-accent: #577d25;
    --card-glow: rgba(94, 132, 36, 0.13);
    --card-chip: rgba(94, 132, 36, 0.09);
    --card-dot: rgba(94, 132, 36, 0.22);
}

.lesson-product-card.tone-5 {
    --card-accent: #486b78;
    --card-glow: rgba(72, 107, 120, 0.13);
    --card-chip: rgba(72, 107, 120, 0.09);
    --card-dot: rgba(72, 107, 120, 0.22);
}

.lesson-product-card:nth-child(6n + 2) {
    --card-shift: 8px;
    --card-tilt: 0.35deg;
}

.lesson-product-card:nth-child(6n + 4) {
    --card-shift: -3px;
    --card-tilt: -0.28deg;
}

.lesson-product-card:nth-child(6n + 5) {
    --card-shift: 5px;
}

.lesson-product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(115deg, var(--card-glow), transparent 46%),
        linear-gradient(180deg, transparent 58%, rgba(0, 102, 104, 0.04));
    opacity: 0.74;
    transition: opacity 220ms ease;
}

.lesson-product-card::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--card-accent);
    box-shadow:
        15px 0 0 var(--card-dot),
        30px 0 0 rgba(0, 102, 104, 0.1);
    opacity: 0.82;
}

.lesson-product-card.is-featured {
    grid-column: span 6;
    grid-template-columns: minmax(118px, 154px) minmax(0, 1fr);
    min-height: 172px;
    padding: 18px 20px 18px 18px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 4% 14%, var(--card-glow), transparent 32%),
        radial-gradient(circle at 96% 0, rgba(209, 139, 64, 0.13), transparent 30%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(241, 251, 251, 0.88) 58%, rgba(232, 244, 247, 0.86));
}

.lesson-product-card.is-featured .lesson-product-media {
    border-radius: 28px 22px 26px 14px;
}

.lesson-product-card.is-featured .lesson-product-body strong {
    font-size: clamp(1.16rem, 2.1vw, 1.36rem);
    -webkit-line-clamp: 3;
}

.lesson-product-card.is-featured .lesson-product-body span {
    max-width: 58ch;
    -webkit-line-clamp: 3;
}

.lesson-product-card:hover,
.lesson-product-card:focus-visible {
    border-color: color-mix(in srgb, var(--card-accent) 42%, transparent);
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 24px 54px -34px rgba(0, 84, 126, 0.52);
    outline: none;
    transform: translateY(calc(var(--card-shift) - 4px)) rotate(0deg);
}

.lesson-product-card:hover::before,
.lesson-product-card:focus-visible::before {
    opacity: 0.98;
}

.lesson-product-index {
    position: absolute;
    right: 13px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(0, 102, 104, 0.08);
    border-radius: 999px;
    background: var(--card-chip);
    color: var(--card-accent);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.lesson-product-media {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid rgba(0, 102, 104, 0.09);
    border-radius: 22px 18px 22px 12px;
    background:
        radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.95), transparent 36%),
        linear-gradient(145deg, rgba(228, 244, 247, 0.98), rgba(246, 251, 252, 0.95));
    color: var(--card-accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 12px 28px -24px rgba(0, 53, 72, 0.45);
}

.lesson-product-media::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(0, 102, 104, 0.16);
    border-radius: inherit;
    opacity: 0.58;
}

.lesson-product-media::after {
    content: "";
    position: absolute;
    top: -28%;
    left: -72%;
    width: 44%;
    height: 160%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
    transform: rotate(18deg);
    transition: left 520ms ease;
}

.lesson-product-card:hover .lesson-product-media::after,
.lesson-product-card:focus-visible .lesson-product-media::after {
    left: 122%;
}

.lesson-product-media img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    filter: drop-shadow(0 10px 14px rgba(0, 53, 72, 0.12));
    transition: transform 220ms ease;
}

.lesson-product-card:hover .lesson-product-media img,
.lesson-product-card:focus-visible .lesson-product-media img {
    transform: scale(1.045) rotate(-1deg);
}

.lesson-product-media .material-symbols-outlined {
    position: relative;
    z-index: 1;
    font-size: 2rem;
}

.lesson-product-body {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    align-content: center;
    min-width: 0;
    padding-right: 24px;
}

.lesson-product-body strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.03rem;
    line-height: 1.14;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.lesson-product-body span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--public-muted);
    font-size: 0.9rem;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.lesson-product-body small {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 5px;
    margin-top: 2px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--card-chip);
    color: var(--card-accent);
    font-size: 0.8rem;
    font-weight: 900;
}

.lesson-product-body small .material-symbols-outlined {
    font-size: 1rem;
    transition: transform 180ms ease;
}

.lesson-product-card:hover small .material-symbols-outlined,
.lesson-product-card:focus-visible small .material-symbols-outlined {
    transform: translate(2px, -2px);
}

@supports not (color: color-mix(in srgb, #000 50%, transparent)) {
    .lesson-product-card:hover,
    .lesson-product-card:focus-visible {
        border-color: rgba(0, 102, 104, 0.3);
    }
}

.legacy-entry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.legacy-entry-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(0, 102, 104, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--public-teal);
    font-weight: 800;
    text-decoration: none;
}

.legacy-entry-action:hover,
.legacy-entry-action:focus-visible {
    border-color: rgba(0, 102, 104, 0.28);
    background: rgba(0, 102, 104, 0.08);
    outline: none;
}

.legacy-entry-action .material-symbols-outlined {
    font-size: 1.2rem;
}

.wiki-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 24px 72px;
}

.wiki-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    padding: 44px;
    border: 1px solid rgba(0, 122, 128, 0.18);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(230, 248, 248, 0.92), rgba(255, 255, 255, 0.96));
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.wiki-hero h1 {
    margin: 8px 0 14px;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.wiki-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.wiki-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.wiki-hero-stats span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid rgba(0, 122, 128, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--muted);
    font-weight: 700;
}

.wiki-hero-stats strong {
    color: var(--text);
}

.wiki-hero-mark {
    display: grid;
    place-items: center;
    width: 180px;
    aspect-ratio: 1;
    border-radius: 32px;
    background: #007b80;
    color: #fff;
    box-shadow: 0 24px 60px rgba(0, 91, 96, 0.28);
}

.wiki-hero-mark .material-symbols-outlined {
    font-size: 4rem;
}

.wiki-hero-mark strong {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0;
}

.wiki-group {
    margin-top: 34px;
}

.wiki-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 34px 0 16px;
}

.wiki-section-head p {
    margin: 0 0 4px;
    color: var(--public-teal, var(--accent));
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.wiki-section-head h2 {
    margin: 0;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    letter-spacing: 0;
}

.wiki-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.wiki-category-card,
.wiki-article-main,
.wiki-article-open,
.wiki-datasheet-link {
    color: inherit;
    text-decoration: none;
}

.wiki-category-card {
    display: grid;
    gap: 10px;
    min-height: 148px;
    padding: 20px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.wiki-category-card:hover,
.wiki-category-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(0, 122, 128, 0.34);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.wiki-category-card .material-symbols-outlined {
    color: var(--public-teal, var(--accent));
    font-size: 2rem;
}

.wiki-category-card strong {
    font-size: 1rem;
    line-height: 1.35;
}

.wiki-category-card small,
.wiki-article-row small {
    color: var(--muted);
    font-weight: 700;
}

.wiki-article-list {
    display: grid;
    gap: 10px;
}

.wiki-article-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    background: var(--surface);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.wiki-article-row:hover,
.wiki-article-row:focus-within {
    transform: translateY(-1px);
    border-color: rgba(0, 122, 128, 0.34);
}

.wiki-article-main {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
    gap: 4px;
}

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

.wiki-datasheet-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(0, 122, 128, 0.24);
    border-radius: 999px;
    background: rgba(0, 122, 128, 0.08);
    color: var(--public-teal, var(--accent));
    font-size: 0.78rem;
    font-weight: 800;
}

.wiki-datasheet-link:hover,
.wiki-datasheet-link:focus-visible,
.wiki-article-open:hover,
.wiki-article-open:focus-visible {
    outline: none;
    border-color: rgba(0, 122, 128, 0.42);
    background: rgba(0, 122, 128, 0.13);
}

.wiki-article-open {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--public-teal, var(--accent));
}

.wiki-article-open .material-symbols-outlined {
    font-size: 1.35rem;
}

.wiki-entry .legacy-toc a.is-nested {
    padding-left: 16px;
    font-size: 0.92rem;
}

.wiki-entry .wiki-article img {
    max-width: 100%;
    height: auto;
}

.wiki-linked-videos,
.wiki-linked-files {
    display: grid;
    gap: 16px;
    margin: 24px 0;
    padding: 22px;
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.wiki-linked-head p {
    margin: 0 0 4px;
    color: var(--public-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wiki-linked-head h2 {
    margin: 0;
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.45rem;
    letter-spacing: 0;
}

.wiki-video-list,
.wiki-file-list {
    display: grid;
    gap: 12px;
}

.wiki-video-card .legacy-video {
    margin: 0;
}

.wiki-file-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.wiki-file-card:hover,
.wiki-file-card:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(0, 122, 128, 0.34);
    background: rgba(0, 122, 128, 0.06);
    outline: none;
}

.wiki-file-card strong,
.wiki-file-card small {
    display: block;
}

.wiki-file-card strong {
    color: var(--public-text);
    line-height: 1.35;
}

.wiki-file-card small {
    margin-top: 2px;
    color: var(--public-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.wiki-file-card > .material-symbols-outlined {
    color: var(--public-teal, var(--accent));
}

.wiki-file-type-badge {
    width: 42px;
    height: 42px;
}

@media (max-width: 760px) {
    .wiki-page {
        padding: 24px 16px 56px;
    }

    .wiki-hero {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .wiki-hero-mark {
        width: 128px;
    }

    .wiki-section-head {
        align-items: start;
        flex-direction: column;
    }

    .wiki-article-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .wiki-article-actions {
        width: 100%;
        justify-content: space-between;
    }
}

.legacy-related-lessons {
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
}

.legacy-related-head p {
    margin: 0 0 4px;
    color: var(--public-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legacy-related-head h2 {
    margin: 0;
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.75rem;
}

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

.legacy-related-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    color: inherit;
    text-decoration: none;
}

.legacy-related-card:hover,
.legacy-related-card:focus-visible {
    border-color: rgba(0, 102, 104, 0.26);
    background: rgba(255, 255, 255, 0.95);
    outline: none;
    transform: translateY(-1px);
}

.legacy-related-media {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    background: rgba(216, 229, 235, 0.7);
}

.legacy-related-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.legacy-related-body {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.legacy-related-body strong {
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.16;
}

.legacy-related-body span {
    color: var(--public-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.legacy-article iframe,
.legacy-video iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 18px;
}

.legacy-video iframe {
    aspect-ratio: 16 / 9;
    height: auto;
}

.legacy-video,
.legacy-video-missing {
    margin: 24px 0;
}

.wiki-inline-videos {
    margin: 20px 0 28px;
}

.wiki-inline-video .legacy-video,
.wiki-inline-video .legacy-video-missing {
    margin: 0 0 20px;
}

.legacy-video-missing {
    padding: 18px;
    border: 1px dashed rgba(0, 102, 104, 0.28);
    border-radius: 18px;
    background: rgba(216, 229, 235, 0.5);
    color: var(--public-muted);
}

.legacy-article table {
    display: table;
    max-width: 100%;
}

@media (max-width: 1080px) {
    .legacy-hero,
    .legacy-entry-layout {
        grid-template-columns: 1fr;
    }

    .legacy-hero-visual {
        justify-content: flex-start;
    }

    .legacy-hero-illustration {
        width: min(100%, 460px);
    }

    .legacy-basic-projects {
        grid-template-columns: 1fr;
    }

    .legacy-basic-projects-visual {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .legacy-basic-projects-visual img {
        width: 130px;
    }

    .legacy-toc {
        position: static;
        grid-column: auto;
        grid-row: auto;
        order: -1;
    }

}

@media (max-width: 760px) {
    .legacy-hero-copy {
        min-height: auto;
    }

    .legacy-hero h1,
    .legacy-entry .doc-title {
        font-size: 2.85rem;
    }

    .legacy-hero-illustration {
        width: min(100%, 380px);
    }

    .legacy-hero-floating-chip {
        min-height: 29px;
        padding: 0 10px;
        font-size: 0.72rem;
    }

    .legacy-hero-floating-chip.is-arduino {
        left: 8%;
    }

    .legacy-hero-floating-chip.is-code {
        right: 2%;
    }

    .legacy-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .legacy-section-head h2,
    .legacy-seo-section h2 {
        font-size: 1.8rem;
    }

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

    .legacy-basic-projects {
        padding: 18px;
        border-radius: 22px;
    }

    .legacy-basic-projects-visual {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .legacy-basic-projects-columns {
        grid-template-columns: 1fr;
    }

    .legacy-article {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .legacy-article p,
    .legacy-article li {
        font-size: 1rem;
    }

    .legacy-article h2 {
        font-size: 1.75rem;
    }

    .legacy-article h3 {
        font-size: 1.35rem;
    }

    .legacy-related-grid {
        grid-template-columns: 1fr;
    }

    .legacy-related-card {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .legacy-entry-cover figcaption {
        left: 12px;
        right: 12px;
        justify-content: center;
    }
}

body.public-page .prose ol {
    padding-left: 24px;
    margin-top: 0;
    margin-bottom: 16px;
}

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

.admin-source-meta {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-source-meta span,
.admin-source-panel span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.admin-source-meta strong,
.admin-source-meta a {
    word-break: break-word;
}

.admin-source-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.admin-source-panel {
    display: block;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
}

.admin-source-panel textarea {
    min-height: 320px;
    resize: vertical;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    line-height: 1.65;
}

.editor-preview .code-shell {
    margin: 14px 0 0;
}

.editor-preview .code-copy-button {
    pointer-events: none;
}

.doc-meta-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.doc-meta-grid strong {
    display: block;
    margin-top: 8px;
    line-height: 1.5;
}

.doc-related-sections {
    display: grid;
    gap: 26px;
}

.doc-related-kicker {
    margin: 0;
    color: var(--public-teal);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.doc-related-explorer {
    display: grid;
    gap: 12px;
    padding: 22px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(0, 102, 104, 0.1);
    box-shadow: 0 24px 64px -34px rgba(19, 29, 33, 0.18);
}

.doc-related-explorer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.62fr) minmax(320px, 1.38fr);
    gap: 20px;
    align-items: start;
}

.doc-related-list {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.doc-related-list li {
    list-style: none;
}

.doc-related-link {
    display: block;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid transparent;
    color: var(--public-text);
    text-decoration: none;
    background: rgba(241, 248, 251, 0.86);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.doc-related-link-text {
    font-weight: 600;
    line-height: 1.35;
}

.doc-related-link:hover,
.doc-related-link:focus-visible,
.doc-related-link.is-active {
    background: rgba(0, 129, 132, 0.1);
    border-color: rgba(0, 102, 104, 0.16);
    color: var(--public-teal);
    transform: translateX(2px);
    outline: none;
}

.doc-related-preview {
    min-height: 0;
    padding: 22px 24px;
    border-radius: 20px;
    background: rgba(248, 252, 255, 0.96);
    border: 1px solid rgba(0, 102, 104, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.doc-related-preview-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 129, 132, 0.08);
    color: var(--public-teal);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.doc-related-preview h3 {
    margin: 0 0 10px;
    font-size: 1.22rem;
    font-family: "Space Grotesk", sans-serif;
    color: var(--public-text);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.doc-related-preview p {
    margin: 0;
    color: var(--public-muted);
    font-size: 1.02rem;
    line-height: 1.65;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.doc-related-preview.is-switching p {
    opacity: 0.35;
    transform: translateY(2px);
}

@media (max-width: 860px) {
    .doc-related-explorer-grid {
        grid-template-columns: 1fr;
    }

    .doc-related-preview {
        height: auto;
        min-height: 0;
    }
}

.catalog-page {
    max-width: 980px;
}

.catalog-subhead {
    margin: 10px 0 24px;
}

.catalog-subhead p,
.catalog-subhead span {
    color: var(--public-muted);
}

.catalog-subhead h2 {
    margin: 8px 0 10px;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--public-text);
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.08;
    letter-spacing: 0;
}

.catalog-filters {
    flex-wrap: wrap;
    margin: 22px 0 28px;
}

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

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

.catalog-subcategory-group h3 {
    margin: 0 0 14px;
    color: var(--public-teal);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.catalog-item-card {
    display: block;
    padding: 22px 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 24px 64px -34px rgba(19, 29, 33, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.catalog-item-card:hover,
.catalog-item-card:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 30px 72px -36px rgba(19, 29, 33, 0.28);
    outline: none;
}

.catalog-item-card p,
.catalog-item-card span {
    margin: 0;
    color: var(--public-muted);
    line-height: 1.45;
}

.catalog-item-card strong {
    display: block;
    margin: 8px 0 10px;
    font-size: 1.2rem;
    color: var(--public-text);
}

.public-footer {
    padding: 28px 0 42px;
    color: var(--public-muted);
}

.public-footer.with-sidebar {
    padding-left: 286px;
}

.public-footer-inner {
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 48px;
}

.public-footer-copy {
    display: grid;
    gap: 6px;
    max-width: 760px;
}

.public-footer-tagline,
.public-footer-description {
    margin: 0;
}

.public-footer-tagline {
    color: var(--public-text);
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.35;
}

.public-footer-description {
    max-width: 760px;
    font-size: .9rem;
    line-height: 1.55;
}

.public-footer-links {
    flex-shrink: 0;
    padding-top: 2px;
}

.public-footer-links a {
    text-decoration: none;
    margin-left: 18px;
}

.scroll-top-button {
    position: fixed;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 42;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(0, 102, 104, 0.18);
    border-radius: 18px;
    background:
        radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 36%),
        linear-gradient(145deg, rgba(227, 246, 247, 0.94), rgba(255, 255, 255, 0.86));
    color: var(--public-teal);
    box-shadow: 0 18px 42px -24px rgba(0, 68, 70, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.72);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 16px, 0) scale(0.94);
    transition:
        opacity 0.24s ease,
        transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.scroll-top-button[hidden] {
    display: none;
}

.scroll-top-button.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}

.scroll-top-button:hover,
.scroll-top-button:focus-visible {
    border-color: rgba(0, 102, 104, 0.34);
    background:
        radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 36%),
        linear-gradient(145deg, rgba(211, 242, 243, 0.98), rgba(255, 255, 255, 0.94));
    box-shadow: 0 22px 50px -24px rgba(0, 68, 70, 0.86), inset 0 1px 0 rgba(255, 255, 255, 0.82);
    outline: none;
    transform: translate3d(0, -3px, 0) scale(1.03);
}

.scroll-top-button:active {
    transform: translate3d(0, 0, 0) scale(0.97);
}

.scroll-top-button .material-symbols-outlined {
    font-size: 1.9rem;
    transition: transform 0.18s ease;
}

.scroll-top-button:hover .material-symbols-outlined,
.scroll-top-button:focus-visible .material-symbols-outlined {
    transform: translateY(-2px);
}

body.public-menu-open .scroll-top-button {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 12px, 0) scale(0.94);
}

@media (max-width: 1080px) {
    .reference-panel-grid {
        grid-template-columns: 1fr;
    }

    .public-nav {
        display: none;
    }

    .public-menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .public-topbar {
        gap: 14px;
    }

    .public-topbar-actions {
        min-width: 0;
        margin-left: auto;
    }

    .public-page-no-sidebar .public-topbar-actions {
        width: min(390px, 48vw);
    }

    .public-main,
    .public-main.is-wide {
        padding: 36px 28px 64px;
    }

    .public-page-with-sidebar .public-topbar {
        grid-template-columns: auto auto minmax(220px, 280px);
        padding: 0 24px;
    }

    .public-shell.has-sidebar {
        display: block;
    }

    .public-sidebar,
    .public-mobile-drawer {
        position: fixed;
        inset: 64px auto 0 0;
        z-index: 120;
        width: min(372px, calc(100vw - 28px));
        height: calc(100dvh - 64px);
        padding: 0 0 24px;
        overflow: auto;
        border-right: 1px solid rgba(0, 102, 104, 0.14);
        border-radius: 0 26px 0 0;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 250, 253, 0.94) 100%);
        box-shadow: 34px 0 90px -46px rgba(19, 29, 33, 0.48);
        scrollbar-gutter: stable;
        transform: translateX(-108%);
        transition: transform 0.22s ease;
        will-change: transform;
    }

    .public-mobile-drawer {
        display: block;
    }

    body.public-menu-open .public-sidebar,
    body.public-menu-open .public-mobile-drawer {
        transform: translateX(0);
    }

    .public-sidebar-mobile-head {
        position: sticky;
        top: 0;
        z-index: 1;
        display: flex;
    }

    .public-sidebar-mobile-nav,
    .public-mobile-nav,
    .public-mobile-drawer-note {
        display: grid;
    }

    .public-sidebar-intro {
        margin-top: 14px;
    }

    .public-page-with-sidebar .public-main {
        padding-left: 28px;
    }

    .landing-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .software-hero,
    .software-quick-grid,
    .software-install-hero,
    .software-install-os-grid,
    .software-install-trouble-grid,
    .software-platform-grid,
    .software-info-band,
    .software-seo-layout {
        grid-template-columns: 1fr;
    }

    .software-hero {
        min-height: auto;
    }

    .software-hero-visual {
        width: min(100%, 520px);
    }

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

    .software-seo-faq {
        position: static;
    }

    .public-footer.with-sidebar {
        padding-left: 0;
    }

    .public-footer-inner {
        padding: 0 28px;
    }
}

@media (max-width: 920px) {
    .public-main {
        padding-top: 24px;
    }

    .learn-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 34px;
    }
}

@media (max-width: 760px) {
    .public-topbar {
        min-height: 64px;
        padding: 8px 14px;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 10px;
    }

    .public-topbar-actions {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
    }

    .public-search {
        min-width: 0;
        flex: 1;
        min-height: 44px;
        padding: 0 12px;
    }

    .public-search-trigger-title {
        font-size: 0.9rem;
    }

    .public-search-trigger-hint,
    .public-search-shortcut,
    .search-toolbar-meta {
        display: none;
    }

    .public-main,
    .public-main.is-wide {
        padding: 28px 18px 48px;
    }

    .public-page-with-sidebar .public-topbar {
        grid-template-columns: auto auto minmax(0, 1fr);
        padding: 8px 14px;
    }

    .public-page-with-sidebar .public-main {
        padding-right: 18px;
        padding-left: 18px;
    }

    .scroll-top-button {
        right: max(16px, env(safe-area-inset-right));
        bottom: max(16px, env(safe-area-inset-bottom));
        width: 46px;
        height: 46px;
        border-radius: 16px;
    }

    .doc-title,
    .landing-hero h1,
    .software-hero h1 {
        line-height: 1.02;
        overflow-wrap: anywhere;
    }

    .software-file-row,
    .software-info-band article,
    .software-install-steps article,
    .software-setup-note {
        grid-template-columns: 1fr;
    }

    .software-install-hero,
    .software-install-os-card,
    .software-install-steps article,
    .software-install-troubles {
        border-radius: 20px;
        padding: 18px;
    }

    .software-install-card-head .material-symbols-outlined {
        font-size: 1.45rem;
    }

    .software-install-steps pre {
        margin-right: -4px;
        margin-left: -4px;
        padding: 14px;
        border-radius: 14px;
    }

    .software-hero-visual {
        min-height: 190px;
        margin-top: 18px;
    }

    .software-hero-chip {
        min-height: 28px;
        padding: 0 10px;
        font-size: 0.68rem;
    }

    .software-download-button {
        width: 100%;
    }


    body.public-page .prose,
    .catalog-item-card,
    .doc-surface,
    .doc-note-box {
        overflow-wrap: anywhere;
    }

    .code-shell {
        border-radius: 16px;
    }

    .code-gutter {
        padding: 14px 8px 14px 10px;
    }

    .code-gutter-line {
        font-size: 0.78rem;
        line-height: 1.6;
    }

    .code-content {
        padding: 14px 12px;
    }

    body.public-page pre code {
        font-size: 0.84rem;
        line-height: 1.6;
    }

    .code-copy-button {
        top: 10px;
        right: 10px;
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.76rem;
    }

    .public-sidebar,
    .public-mobile-drawer {
        top: 64px;
        width: min(360px, calc(100vw - 16px));
        height: calc(100dvh - 64px);
        border-radius: 0 22px 0 0;
    }

    .public-nav-backdrop {
        top: 64px;
    }

    .public-footer-inner,
    .public-footer-links {
        display: grid;
        gap: 10px;
    }

    .public-footer-copy,
    .public-footer-description {
        max-width: none;
    }

    .public-footer-links {
        padding-top: 0;
    }

    .public-footer-links a {
        margin-left: 0;
    }

    .learn-directory {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 22px;
        padding-top: 22px;
    }

    .learn-directory-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-top: 28px;
    }

    .learn-directory-section {
        padding-bottom: 22px;
    }

    .learn-directory-list {
        gap: 10px;
    }

    .public-brand span {
        white-space: normal;
    }

    .search-overlay {
        padding: 0;
    }

    .search-overlay-dialog {
        width: 100%;
        height: 100%;
    }

    .search-overlay-panel {
        min-height: 100%;
        padding: 16px;
        border-radius: 0;
    }

    .search-input-shell {
        min-height: 56px;
    }

    .search-overlay-body {
        min-height: 0;
        max-height: none;
        padding-right: 0;
    }

    .search-suggestion-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .public-brand-logo {
        height: 28px;
    }

    .public-menu-toggle {
        min-width: 44px;
        padding: 0;
    }

    .public-menu-toggle-text {
        display: none;
    }

    .public-search {
        gap: 8px;
    }

    .public-search-trigger-copy {
        display: none;
    }

    .public-search-trigger-mobile-title {
        display: inline;
    }

    .public-search .material-symbols-outlined {
        font-size: 19px;
    }
}

body.admin-page {
    --admin-bg: #f7fafc;
    --admin-surface: rgba(255, 255, 255, 0.82);
    --admin-surface-strong: rgba(255, 255, 255, 0.96);
    --admin-line: rgba(0, 84, 126, 0.14);
    --admin-muted: #506775;
    --admin-text: #0f1f2a;
    --admin-accent: #00547e;
    --admin-accent-hover: #006b9f;
    --admin-accent-dark: #003a58;
    --admin-accent-soft: rgba(0, 84, 126, 0.08);
    --admin-shadow: 0 24px 62px -44px rgba(0, 43, 66, 0.24);
    --admin-shell-surface: rgba(248, 250, 251, 0.92);
    --admin-shell-control: rgba(255, 255, 255, 0.68);
    --admin-shell-control-hover: rgba(255, 255, 255, 0.94);
    --admin-shell-control-active: rgba(230, 243, 248, 0.9);
    --admin-shell-control-border: rgba(0, 84, 126, 0.16);
    --admin-shell-control-border-strong: rgba(0, 84, 126, 0.28);
    --admin-shell-dropdown: rgba(255, 255, 255, 0.98);
    --admin-shell-dropdown-shadow: 0 22px 54px -38px rgba(0, 43, 66, 0.56);
    --admin-shell-focus: rgba(0, 84, 126, 0.16);
    --admin-home-panel: rgba(255, 255, 255, 0.78);
    --admin-home-panel-strong: rgba(255, 255, 255, 0.94);
    --admin-home-panel-soft: rgba(244, 248, 249, 0.78);
    --admin-home-line: rgba(22, 48, 58, 0.12);
    --admin-home-line-strong: rgba(109, 74, 38, 0.26);
    --admin-home-muted: #64727c;
    --admin-home-bus: #9a5b2f;
    --admin-home-good: #16745f;
    --admin-home-warning: #9a5b18;
    --admin-home-danger: #aa3f3f;
    --admin-home-info: #2a718d;
    --admin-manual-action-bg: rgba(255, 255, 255, 0.92);
    --admin-manual-action-bg-hover: rgba(255, 254, 251, 0.98);
    --admin-manual-action-bg-active: rgba(253, 249, 242, 0.98);
    --admin-manual-action-border: rgba(126, 83, 43, 0.14);
    --admin-manual-action-border-hover: rgba(154, 91, 47, 0.19);
    --admin-manual-action-text: #66452d;
    --admin-manual-action-focus: rgba(154, 91, 47, 0.24);
    --admin-manual-action-icon-color: #8a541f;
    --admin-manual-action-icon-color-hover: #754819;
    --admin-manual-action-icon-bg: rgba(154, 91, 47, 0.05);
    --admin-manual-action-icon-bg-hover: rgba(154, 91, 47, 0.068);
    --admin-manual-action-icon-border: rgba(154, 91, 47, 0.07);
    --admin-manual-action-icon-border-hover: rgba(154, 91, 47, 0.1);
    --admin-manual-action-rail-bg: rgba(255, 252, 247, 0.54);
    --admin-manual-action-rail-border: rgba(154, 91, 47, 0.085);
    --admin-manual-action-rail-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    --admin-manual-action-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), inset 0 -1px 0 rgba(154, 91, 47, 0.012);
    --admin-manual-action-shadow-hover: inset 0 0 0 1px rgba(154, 91, 47, 0.026), inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 -10px 16px rgba(154, 91, 47, 0.022);
    --admin-home-action-bg: var(--admin-manual-action-bg);
    --admin-home-action-bg-hover: var(--admin-manual-action-bg-hover);
    --admin-home-action-bg-active: var(--admin-manual-action-bg-active);
    --admin-home-action-border: var(--admin-manual-action-border);
    --admin-home-action-border-hover: var(--admin-manual-action-border-hover);
    --admin-home-action-text: var(--admin-manual-action-text);
    --admin-home-action-focus: var(--admin-manual-action-focus);
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--admin-text);
    background:
        linear-gradient(rgba(0, 84, 126, 0.034) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 84, 126, 0.026) 1px, transparent 1px),
        linear-gradient(180deg, #f8fafb 0%, var(--admin-bg) 100%);
    background-size: 52px 52px, 52px 52px, auto;
}

body.admin-page .section {
    margin: 24px 0;
}

body.admin-page .button,
body.admin-page button {
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: var(--admin-accent);
    color: #fff;
    font-weight: 600;
    box-shadow: none;
}

body.admin-page .button:hover,
body.admin-page button:hover {
    background: var(--admin-accent-hover);
}

body.admin-page .button-secondary {
    background: rgba(255, 255, 255, 0.78);
    border-color: var(--admin-line);
    color: var(--admin-text);
}

body.admin-page .button-secondary:hover {
    background: rgba(255, 255, 255, 0.94);
    color: var(--admin-text);
}

body.admin-page .meta,
body.admin-page .editor-help,
body.admin-page .admin-inline-note,
body.admin-page .admin-overview-card p,
body.admin-page .admin-hero-lead,
body.admin-page .admin-auth-copy p {
    color: var(--admin-muted);
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(248, 250, 251, 0.9);
    border-bottom: 1px solid rgba(0, 84, 126, 0.1);
    transform: translateY(0);
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 220ms ease;
    will-change: transform;
}

.admin-topbar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
    max-width: 1440px;
    max-height: 760px;
    margin: 0 auto;
    padding: 14px 32px;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 220ms ease, padding 220ms ease, opacity 180ms ease, transform 220ms ease;
}

body.admin-page.admin-menu-is-collapsed .admin-header {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    transform: translateY(calc(-100% - 8px));
}

body.admin-page.admin-menu-is-collapsed .admin-topbar {
    pointer-events: none;
}

body.admin-page .admin-menu-reveal {
    --admin-menu-reveal-edge: max(18px, calc((100vw - 1440px) / 2 + 24px));
    --admin-menu-reveal-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(230, 243, 248, 0.78));
    --admin-menu-reveal-hover-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(230, 243, 248, 0.86));
    --admin-menu-reveal-border: rgba(0, 84, 126, 0.18);
    --admin-menu-reveal-shadow: 0 18px 42px -30px rgba(0, 43, 66, 0.48);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    display: block;
    width: 100%;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--admin-accent);
    box-shadow: none;
    cursor: pointer;
    isolation: isolate;
    overflow: visible;
    transition: color 180ms ease;
}

body.admin-page .admin-menu-reveal[hidden] {
    display: none !important;
}

body.admin-page .admin-menu-reveal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -2;
    width: 100vw;
    height: 14px;
    border: 0;
    border-radius: 0;
    background: var(--admin-menu-reveal-bg);
    box-shadow: 0 16px 34px -28px rgba(0, 43, 66, 0.42);
    pointer-events: none;
    transition: background 180ms ease;
}

body.admin-page .admin-menu-reveal::after {
    content: "";
    position: absolute;
    top: 0;
    right: var(--admin-menu-reveal-edge);
    z-index: -1;
    width: 54px;
    height: 38px;
    border: 1px solid var(--admin-menu-reveal-border);
    border-top: 0;
    border-radius: 0 0 15px 15px;
    background: var(--admin-menu-reveal-bg);
    box-shadow: var(--admin-menu-reveal-shadow);
    pointer-events: none;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.admin-page .admin-menu-reveal:hover {
    background: transparent;
    color: #006b9f;
    box-shadow: none;
    transform: none;
}

body.admin-page .admin-menu-reveal:hover::before,
body.admin-page .admin-menu-reveal:hover::after {
    background: var(--admin-menu-reveal-hover-bg);
}

body.admin-page .admin-menu-reveal:focus-visible {
    background: transparent;
    outline: none;
    box-shadow: none;
    transform: none;
}

body.admin-page .admin-menu-reveal:focus-visible::after {
    box-shadow: 0 0 0 3px rgba(0, 129, 132, 0.12), var(--admin-menu-reveal-shadow);
}

body.admin-page .admin-menu-reveal-icon {
    position: absolute;
    top: 10px;
    right: calc(var(--admin-menu-reveal-edge) + 16px);
    z-index: 1;
    font-size: 21px;
    font-weight: 600;
    line-height: 1;
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--admin-accent);
    font: 700 1.12rem/1 "Space Grotesk", sans-serif;
    letter-spacing: -0.03em;
}

.admin-topbar-meta {
    display: grid;
    gap: 2px;
}

.admin-topbar-kicker,
.admin-kicker {
    margin: 0;
    color: var(--admin-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-topbar-caption {
    color: var(--admin-muted);
    font-size: 0.9rem;
}

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

.admin-nav-link,
.admin-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--admin-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--admin-muted);
    text-decoration: none;
    font-weight: 600;
}

.admin-nav-link .material-symbols-outlined {
    font-size: 20px;
}

.admin-theme-toggle {
    position: relative;
    gap: 10px;
    padding: 4px 12px 4px 5px;
    overflow: hidden;
}

.admin-theme-toggle-track {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 62px;
    height: 34px;
    padding: 3px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 24% 35%, rgba(255, 255, 255, 0.95), transparent 17px),
        linear-gradient(135deg, #ffe7ad 0%, #83d9ef 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 102, 104, 0.12);
    transition: background 0.28s ease, box-shadow 0.28s ease;
}

.admin-theme-toggle-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 30%, #fff7cf 0 22%, transparent 23%),
        linear-gradient(135deg, #ffd45f 0%, #ff9f43 100%);
    box-shadow: 0 8px 18px rgba(171, 103, 0, 0.28);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.28s ease, box-shadow 0.28s ease;
}

.admin-theme-toggle-icon {
    position: relative;
    z-index: 1;
    justify-self: center;
    font-size: 18px;
    transition: color 0.24s ease, opacity 0.24s ease, transform 0.24s ease;
}

.admin-theme-toggle-sun {
    color: #7a4c00;
}

.admin-theme-toggle-moon {
    color: rgba(12, 43, 58, 0.48);
    opacity: 0.52;
}

.admin-theme-toggle-label {
    min-width: 56px;
    font-size: 0.88rem;
    transition: color 0.24s ease;
}

.admin-theme-toggle.is-dark .admin-theme-toggle-track {
    background:
        radial-gradient(circle at 72% 30%, rgba(180, 229, 255, 0.34), transparent 15px),
        linear-gradient(135deg, #132738 0%, #28506a 100%);
    box-shadow: inset 0 0 0 1px rgba(110, 215, 217, 0.16);
}

.admin-theme-toggle.is-dark .admin-theme-toggle-knob {
    transform: translateX(28px);
    background:
        radial-gradient(circle at 34% 30%, #f7fbff 0 24%, transparent 25%),
        linear-gradient(135deg, #dceeff 0%, #90b7d7 100%);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}

.admin-theme-toggle.is-dark .admin-theme-toggle-sun {
    color: rgba(255, 218, 128, 0.52);
    opacity: 0.56;
}

.admin-theme-toggle.is-dark .admin-theme-toggle-moon {
    color: #eef8ff;
    opacity: 1;
    transform: rotate(-10deg);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-top-button,
    .scroll-top-button .material-symbols-outlined {
        transition: none;
    }

    .admin-theme-toggle-track,
    .admin-theme-toggle-knob,
    .admin-theme-toggle-icon,
    .admin-theme-toggle-label,
    .admin-header,
    .admin-topbar,
    .admin-menu-reveal {
        transition: none;
    }
}

.admin-nav-menu {
    position: relative;
}

.admin-nav-menu summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

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

.admin-nav-menu-chevron {
    margin-left: -4px;
    transition: transform 0.18s ease;
}

@media (prefers-reduced-motion: reduce) {
    .admin-nav-menu-chevron {
        transition: none;
    }
}

.admin-nav-menu[open] .admin-nav-menu-chevron {
    transform: rotate(180deg);
}

.admin-nav-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 80;
    display: grid;
    gap: 6px;
    width: min(270px, calc(100vw - 32px));
    padding: 8px;
    border: 1px solid var(--admin-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(15, 51, 58, 0.16);
    transform: translateX(-50%);
}

.admin-nav-menu-dropdown a {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--admin-text);
    text-decoration: none;
    white-space: nowrap;
}

.admin-nav-menu-dropdown a:hover,
.admin-nav-menu-dropdown a:focus-visible,
.admin-nav-menu-dropdown a.is-active {
    background: rgba(0, 129, 132, 0.08);
    color: var(--admin-accent);
    outline: none;
}

.admin-nav-menu-dropdown .material-symbols-outlined {
    color: var(--admin-accent);
    font-size: 20px;
}

.admin-create-menu {
    position: relative;
}

.admin-create-menu summary {
    list-style: none;
    cursor: pointer;
}

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

.admin-create-chevron {
    margin-left: -4px;
    transition: transform 0.18s ease;
}

.admin-create-menu[open] .admin-create-chevron {
    transform: rotate(180deg);
}

.admin-create-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 80;
    display: grid;
    gap: 8px;
    width: min(320px, calc(100vw - 32px));
    padding: 10px;
    border: 1px solid var(--admin-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(15, 51, 58, 0.16);
}

.admin-nav-menu[open],
.admin-create-menu[open] {
    z-index: 90;
}

.admin-nav-menu[open] .admin-nav-menu-dropdown,
.admin-create-menu[open] .admin-create-dropdown {
    z-index: 140;
}

.admin-create-dropdown a {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    color: var(--admin-text);
    text-decoration: none;
}

.admin-create-dropdown a:hover {
    background: rgba(0, 129, 132, 0.08);
}

.admin-create-dropdown .material-symbols-outlined {
    color: var(--admin-accent);
}

.admin-create-dropdown strong,
.admin-create-dropdown small {
    display: block;
}

.admin-create-dropdown small {
    margin-top: 2px;
    color: var(--admin-muted);
    font-size: 0.82rem;
}

.admin-nav-link-accent {
    border-color: rgba(0, 129, 132, 0.18);
    background: rgba(0, 129, 132, 0.08);
    color: var(--admin-accent);
}

.admin-nav-link:hover,
.admin-nav-link.is-active,
.admin-nav-menu.is-active > summary,
.admin-nav-menu[open] > summary,
.admin-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--admin-accent);
}

.admin-nav-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 129, 132, 0.14);
}

.admin-nav-link-accent:hover {
    background: rgba(0, 129, 132, 0.14);
}

.admin-main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 32px 64px;
}

.admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: end;
}

.admin-hero h1,
.admin-auth-copy h1 {
    margin: 8px 0 14px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.4rem, 5vw, 4.1rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: var(--admin-text);
}

.admin-editor-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    gap: 18px;
    align-items: start;
}

.admin-editor-hero .admin-hero-copy {
    padding: 22px 24px;
}

.admin-editor-hero h1 {
    max-width: 980px;
    margin: 6px 0 10px;
    font-size: clamp(1.75rem, 2.75vw, 2.35rem);
    line-height: 1.1;
    letter-spacing: -0.032em;
    overflow-wrap: anywhere;
}

.admin-editor-hero .admin-breadcrumbs {
    margin-top: 6px;
}

.admin-editor-hero .admin-hero-lead {
    max-width: 78ch;
    font-size: 0.96rem;
    line-height: 1.58;
}

.admin-editor-hero .admin-hero-actions {
    align-content: center;
    padding: 22px;
}

.admin-hero-copy,
.admin-hero-actions,
.admin-overview-card,
.admin-panel,
.admin-auth-panel,
.admin-auth-copy {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--admin-line);
    border-radius: 24px;
    background: var(--admin-surface);
    box-shadow: var(--admin-shadow);
}

.admin-hero-copy {
    padding: 28px 30px;
    background:
        linear-gradient(135deg, rgba(0, 129, 132, 0.12), rgba(255, 255, 255, 0.4)),
        var(--admin-surface);
}

.admin-hero-lead {
    max-width: 62ch;
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.72;
}

.admin-hero-actions {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 24px;
}

.admin-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.admin-overview-card {
    padding: 22px 24px;
}

.admin-overview-card.is-primary {
    background:
        linear-gradient(135deg, rgba(0, 129, 132, 0.16), rgba(255, 255, 255, 0.56)),
        var(--admin-surface);
}

.admin-overview-label {
    display: block;
    color: var(--admin-muted);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-overview-card strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-family: "Space Grotesk", sans-serif;
    color: var(--admin-text);
}

.admin-callout {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(0, 111, 145, 0.18);
    border-radius: 8px;
    background: rgba(0, 111, 145, 0.06);
}

.admin-code-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.admin-code-list code {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: #06313f;
    font-weight: 700;
    letter-spacing: 0;
    text-align: center;
}

.admin-list-command {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.44fr);
    gap: 14px;
    align-items: stretch;
}

.admin-list-command-copy,
.admin-list-command-actions,
.admin-status-strip {
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
    box-shadow: var(--admin-shadow);
}

.admin-list-command-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    min-width: 0;
    padding: 18px 20px;
}

.admin-list-command-copy h1 {
    margin: 6px 0 8px;
    color: var(--admin-text);
    font: 700 clamp(1.95rem, 3vw, 2.8rem)/1.04 "Space Grotesk", "Segoe UI", sans-serif;
    letter-spacing: 0;
}

.admin-list-command-copy p {
    max-width: 82ch;
    margin: 0;
    color: var(--admin-home-muted);
    font-size: 0.96rem;
    line-height: 1.56;
}

.admin-list-command-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(94px, max-content));
    gap: 8px;
    align-items: end;
}

.admin-list-command-meta span {
    display: grid;
    gap: 3px;
    min-height: 44px;
    padding-left: 10px;
    border-left: 3px solid var(--admin-home-bus);
    color: var(--admin-home-muted);
    font-size: 0.78rem;
    line-height: 1.2;
}

.admin-list-command-meta strong,
.admin-status-strip-item strong {
    color: var(--admin-text);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.admin-list-command-meta strong {
    font-size: 1.22rem;
    line-height: 1;
}

.admin-list-command-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-content: start;
    padding: 12px;
}

.admin-list-action {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid var(--admin-shell-control-border);
    border-radius: 8px;
    background: var(--admin-shell-control);
    background-image: none;
    color: var(--admin-text);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
    text-shadow: none;
    transform: none;
    white-space: nowrap;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.admin-list-action.is-primary {
    border-color: rgba(0, 84, 126, 0.28);
    background: rgba(230, 243, 248, 0.92);
    color: var(--admin-accent-dark);
}

.admin-list-action:hover {
    border-color: var(--admin-shell-control-border-strong);
    background: var(--admin-shell-control-hover);
    color: var(--admin-accent-dark);
    background-image: none;
    text-shadow: none;
    transform: none;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(0, 84, 126, 0.06);
}

.admin-list-action:focus-visible {
    border-color: var(--admin-shell-control-border-strong);
    background: var(--admin-shell-control-hover);
    color: var(--admin-accent-dark);
    background-image: none;
    text-shadow: none;
    transform: none;
    outline: none;
    box-shadow: 0 0 0 3px var(--admin-shell-focus);
}

.admin-list-action .material-symbols-outlined {
    display: inline-grid;
    place-items: center;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    color: currentColor;
    font-size: 19px;
    line-height: 1;
}

.admin-list-action span:not(.material-symbols-outlined) {
    min-width: 0;
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    word-break: normal;
    white-space: nowrap;
}

body.admin-page .admin-list-action,
body.admin-page a.admin-list-action,
body.admin-page button.admin-list-action,
body.admin-page .button.admin-list-action {
    min-height: 36px;
    padding: 0 11px;
    border-color: var(--admin-shell-control-border);
    border-radius: 8px;
    background: var(--admin-shell-control);
    background-image: none;
    color: var(--admin-text);
    font-size: 0.86rem;
    line-height: 1.1;
    text-shadow: none;
    transform: none;
    box-shadow: none;
}

body.admin-page .admin-list-action.is-primary,
body.admin-page a.admin-list-action.is-primary,
body.admin-page button.admin-list-action.is-primary,
body.admin-page .button.admin-list-action.is-primary {
    border-color: rgba(0, 84, 126, 0.28);
    background: rgba(230, 243, 248, 0.92);
    background-image: none;
    color: var(--admin-accent-dark);
}

body.admin-page .admin-list-action:hover,
body.admin-page a.admin-list-action:hover,
body.admin-page button.admin-list-action:hover,
body.admin-page .button.admin-list-action:hover {
    border-color: var(--admin-shell-control-border-strong);
    background: var(--admin-shell-control-hover);
    background-image: none;
    color: var(--admin-accent-dark);
    text-shadow: none;
    transform: none;
    box-shadow: inset 0 0 0 1px rgba(0, 84, 126, 0.06);
}

body.admin-page .admin-list-action:focus-visible,
body.admin-page a.admin-list-action:focus-visible,
body.admin-page button.admin-list-action:focus-visible,
body.admin-page .button.admin-list-action:focus-visible {
    border-color: var(--admin-shell-control-border-strong);
    background: var(--admin-shell-control-hover);
    background-image: none;
    color: var(--admin-accent-dark);
    text-shadow: none;
    transform: none;
    outline: none;
    box-shadow: 0 0 0 3px var(--admin-shell-focus);
}

.admin-status-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
}

.admin-status-strip-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
    align-items: center;
    min-width: 0;
    min-height: 66px;
    padding: 10px 14px;
    border-left: 1px solid var(--admin-home-line);
    color: inherit;
    text-decoration: none;
    transition: background-color 140ms ease;
}

.admin-status-strip-item:first-child {
    border-left: 0;
}

.admin-status-strip-item span {
    min-width: 0;
    color: var(--admin-text);
    font-weight: 800;
    line-height: 1.2;
}

.admin-status-strip-item strong {
    grid-row: span 2;
    color: var(--admin-home-info);
    font-size: 1.22rem;
    line-height: 1;
    text-align: right;
}

.admin-status-strip-item small {
    min-width: 0;
    color: var(--admin-home-muted);
    font-size: 0.78rem;
    line-height: 1.3;
}

.admin-status-strip-item:hover,
.admin-status-strip-item:focus-visible {
    background: var(--admin-home-panel-soft);
    outline: none;
}

.admin-status-strip-item.is-good strong {
    color: var(--admin-home-good);
}

.admin-status-strip-item.is-warning strong {
    color: var(--admin-home-warning);
}

.admin-status-strip-item.is-danger strong {
    color: var(--admin-home-danger);
}

.admin-list-filter {
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    background: var(--admin-home-panel);
}

.admin-list-filter .admin-filter-head {
    align-items: center;
}

.admin-list-filter .admin-filter-head h2 {
    margin-top: 4px;
    font-size: 1.08rem;
    line-height: 1.16;
    letter-spacing: 0;
}

.admin-list-filter .admin-filter-meta {
    color: var(--admin-home-muted);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

.admin-list-filter .admin-section-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

body.admin-page .admin-list-filter .chip {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.84rem;
    line-height: 1;
}

.admin-list-filter .admin-chip-meta {
    margin-left: 6px;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.76rem;
    font-variant-numeric: tabular-nums;
}

.admin-list-filter .admin-search-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    gap: 8px;
    min-width: 0;
}

.admin-list-filter .admin-files-search-form {
    grid-template-columns: minmax(260px, 1fr) minmax(190px, 280px) auto auto;
}

.admin-list-filter .admin-search-field {
    min-width: 0;
    width: 100%;
}

.admin-list-filter .admin-list-action,
.admin-list-filter .button {
    align-self: center;
    height: 40px;
    min-height: 40px;
    border-radius: 8px;
}

.admin-list-workspace {
    margin-top: 14px;
}

body.admin-page .admin-list-command.section,
body.admin-page .admin-status-strip.section {
    margin: 14px 0;
}

body.admin-page [data-admin-dynamic-search] > .admin-list-filter.section,
body.admin-page [data-admin-dynamic-search] > .admin-list-workspace.section {
    margin: 0;
}

body.admin-page [data-admin-dynamic-search]:has(> .admin-list-filter) {
    gap: 14px;
}

.admin-list-row {
    min-width: 0;
    border-radius: 8px;
}

.admin-list-row .admin-item-main,
.admin-list-row .admin-legacy-lesson-copy,
.admin-list-row .software-admin-file-main,
.admin-list-row .admin-card-links,
.admin-list-row .admin-breadcrumbs {
    min-width: 0;
}

.admin-list-row .admin-breadcrumbs,
.admin-list-row .admin-breadcrumbs span,
.admin-list-row .admin-card-links,
.admin-list-row .admin-card-links a,
.admin-list-row .admin-card-links span {
    overflow-wrap: anywhere;
}

.admin-list-row .admin-item-excerpt {
    display: -webkit-box;
    margin-top: 6px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.45;
}

.admin-list-row .admin-item-actions .admin-list-action,
.admin-list-row .admin-item-actions .button {
    min-height: 36px;
    border-radius: 8px;
    font-size: 0.84rem;
}

.software-admin-file.admin-list-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-radius: 8px;
}

.admin-files-operation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-files-operation-grid .product-sync-card {
    align-content: start;
    min-width: 0;
}

.admin-products-unresolved-panel .admin-panel-head,
.admin-products-operation-panel .admin-panel-head {
    align-items: flex-start;
}

.admin-products-unresolved-panel {
    padding: 12px 14px;
    border-color: rgba(154, 91, 47, 0.2);
}

.admin-products-unresolved-panel .admin-panel-head {
    gap: 10px;
}

.admin-products-unresolved-panel .admin-panel-head > div:first-child {
    flex: 0 0 auto;
    width: min(100%, 321px);
    min-width: 0;
}

.admin-products-unresolved-panel .admin-panel-head h2 {
    margin-top: 3px;
    font-size: 1.2rem;
    line-height: 1.12;
}

.admin-products-unresolved-panel .admin-panel-head .meta {
    max-width: 86ch;
    line-height: 1.42;
}

body.admin-page .admin-products-link-actions .admin-products-link-summary {
    flex: 1 1 220px;
    min-width: 0;
    max-width: none;
    margin: 0;
    color: var(--admin-home-muted);
    font-size: 0.84rem;
    line-height: 1.36;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
}

.admin-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.admin-products-unresolved-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.admin-products-link-actions {
    display: flex;
    flex: 0 1 640px;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: min(100%, 640px);
    max-width: 100%;
    min-width: 0;
}

body.admin-page .admin-products-status-strip.section {
    margin-bottom: 18px;
}

body.admin-page .admin-products-unresolved-panel.section {
    margin-top: 0;
    margin-bottom: 16px;
}

body.admin-page .admin-products-unresolved-panel {
    padding: 12px 16px;
}

body.admin-page .admin-products-unresolved-panel .admin-panel-head {
    gap: 10px;
    margin-bottom: 0;
}

body.admin-page [data-admin-dynamic-search="products"] {
    gap: 8px;
}

body.admin-page [data-admin-dynamic-search="products"] .admin-list-filter.section {
    margin-top: 6px;
}

body.admin-page [data-admin-dynamic-search="products"] .admin-filter-shell.admin-list-filter {
    gap: 8px;
    padding: 8px 14px;
}

body.admin-page .admin-products-list-workspace.section {
    margin-top: 0;
}

.admin-products-link-ledger {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.admin-products-link-ledger span {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
    min-width: 0;
    padding: 7px 9px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
}

.admin-products-link-ledger strong {
    color: var(--admin-home-warning);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.admin-products-link-ledger small {
    min-width: 0;
    color: var(--admin-home-muted);
    font-size: 0.76rem;
    line-height: 1.24;
}

@media (min-width: 761px) and (max-width: 900px) {
    body.admin-page .admin-products-unresolved-panel .admin-panel-head {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.admin-page .admin-products-link-actions {
        width: 100%;
    }

    body.admin-page .admin-products-link-actions .admin-products-link-summary {
        flex-basis: 300px;
    }
}

.admin-products-operation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.admin-products-operation-grid .product-sync-card {
    min-width: 0;
    border-radius: 8px;
}

.admin-products-list-workspace {
    gap: 12px;
    padding: 16px;
}

.admin-products-list-workspace .admin-board-head {
    margin-bottom: 10px;
}

.admin-products-list-workspace .admin-board-count {
    min-width: 82px;
    padding: 9px 12px;
    border-radius: 8px;
}

.admin-products-list-workspace .product-admin-card.admin-list-row {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    padding: 12px;
}

.admin-products-list-workspace .product-admin-media {
    width: 76px;
    height: 76px;
    border-radius: 8px;
}

.admin-products-list-workspace .product-admin-media img {
    padding: 6px;
}

.product-sync-card .admin-manual-action {
    width: fit-content;
}

html.admin-theme-dark body.admin-page .admin-list-command-copy,
html.admin-theme-dark body.admin-page .admin-list-command-actions,
html.admin-theme-dark body.admin-page .admin-status-strip,
html.admin-theme-dark body.admin-page .admin-list-filter {
    border-color: var(--admin-home-line);
    background: var(--admin-home-panel);
}

html.admin-theme-dark body.admin-page .admin-list-action {
    border-color: var(--admin-shell-control-border);
    background: var(--admin-shell-control);
    color: var(--admin-text);
}

html.admin-theme-dark body.admin-page .admin-list-action.is-primary {
    border-color: rgba(110, 215, 217, 0.22);
    background: rgba(110, 215, 217, 0.1);
    color: var(--admin-accent);
}

html.admin-theme-dark body.admin-page .admin-list-action:hover {
    border-color: var(--admin-shell-control-border-strong);
    background: var(--admin-shell-control-hover);
    color: #eafcff;
    box-shadow: inset 0 0 0 1px rgba(110, 215, 217, 0.08);
}

html.admin-theme-dark body.admin-page .admin-list-action:focus-visible {
    border-color: var(--admin-shell-control-border-strong);
    background: var(--admin-shell-control-hover);
    color: #eafcff;
    box-shadow: 0 0 0 3px var(--admin-shell-focus);
}

@media (max-width: 900px) {
    .admin-list-command {
        grid-template-columns: 1fr;
    }

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

    .admin-status-strip-item:nth-child(2n + 1) {
        border-left: 0;
    }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .admin-list-action {
        gap: 5px;
        padding: 0 8px;
        font-size: 0.8rem;
    }

    .admin-list-action .material-symbols-outlined {
        font-size: 18px;
    }
}

@media (max-width: 860px) {
    .software-admin-file.admin-list-row {
        grid-template-columns: 1fr;
    }

    .admin-products-list-workspace .product-admin-card.admin-list-row {
        grid-template-columns: 1fr;
    }

    .admin-products-list-workspace .product-admin-media {
        width: 86px;
        height: 86px;
    }
}

@media (max-width: 720px) {
    .admin-list-command-copy {
        grid-template-columns: 1fr;
    }

    .admin-list-command-meta,
    .admin-list-command-actions,
    .admin-status-strip,
    .admin-list-filter .admin-search-form,
    .admin-list-filter .admin-files-search-form,
    .admin-files-operation-grid,
    .admin-products-link-ledger,
    .admin-products-operation-grid {
        grid-template-columns: 1fr;
    }

    .admin-status-strip-item {
        border-left: 0;
        border-top: 1px solid var(--admin-home-line);
    }

    .admin-status-strip-item:first-child {
        border-top: 0;
    }
}

.admin-home-card {
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.admin-home-card:hover,
.admin-home-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(0, 102, 104, 0.24);
    box-shadow: 0 30px 80px -56px rgba(0, 47, 49, 0.42);
}

.admin-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-home-command {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 16px;
    align-items: stretch;
}

.admin-home-editorial {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
}

.admin-home-command-copy,
.admin-home-attention,
.admin-home-panel,
.admin-home-dock {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
    box-shadow: var(--admin-shadow);
}

.admin-home-command-copy {
    display: grid;
    align-content: space-between;
    gap: 24px;
    min-height: 256px;
    padding: 22px 24px;
}

.admin-home-editorial .admin-home-command-copy {
    background:
        linear-gradient(135deg, rgba(0, 84, 126, 0.06), rgba(255, 255, 255, 0) 54%),
        var(--admin-home-panel);
}

.admin-home-command h1 {
    margin: 8px 0 10px;
    max-width: 780px;
    color: var(--admin-text);
    font: 700 clamp(2rem, 4vw, 3.2rem)/1.02 "Space Grotesk", "Segoe UI", sans-serif;
    letter-spacing: 0;
}

.admin-home-lead {
    max-width: 68ch;
    margin: 0;
    color: var(--admin-home-muted);
    font-size: 1rem;
    line-height: 1.62;
}

.admin-home-rail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--admin-home-line);
}

.admin-home-rail span {
    display: grid;
    gap: 4px;
    padding-left: 12px;
    border-left: 3px solid var(--admin-home-bus);
}

.admin-home-rail strong,
.admin-home-count,
.admin-home-task-count,
.admin-home-value,
.admin-home-quality-value,
.admin-home-audit-time,
.admin-home-sync b {
    font-family: "JetBrains Mono", Consolas, monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.admin-home-rail strong {
    color: var(--admin-text);
    font-size: 1.42rem;
    line-height: 1;
}

.admin-home-rail small,
.admin-home-row small,
.admin-home-quality small,
.admin-home-sync small,
.admin-home-security-row small,
.admin-home-audit-row small {
    color: var(--admin-home-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.admin-home-attention,
.admin-home-panel {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 16px;
}

.admin-home-editorial-queue {
    border-color: var(--admin-home-line-strong);
}

.admin-home-panel-head,
.admin-home-dock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.admin-home-panel-head h2,
.admin-home-dock-head h2 {
    margin: 4px 0 0;
    color: var(--admin-text);
    font: 700 1.08rem/1.22 "Space Grotesk", "Segoe UI", sans-serif;
    letter-spacing: 0;
}

.admin-home-count,
.admin-home-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
    color: var(--admin-text);
    font-size: 0.86rem;
    white-space: nowrap;
}

.admin-home-chip {
    color: var(--admin-home-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.admin-home-signal-list,
.admin-home-task-list,
.admin-home-row-list,
.admin-home-sync-list,
.admin-home-security,
.admin-home-audit-list {
    display: grid;
    gap: 0;
    min-width: 0;
}

.admin-home-signal,
.admin-home-task,
.admin-home-row,
.admin-home-sync,
.admin-home-security-row,
.admin-home-audit-row {
    min-width: 0;
    border-top: 1px solid var(--admin-home-line);
    color: inherit;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.admin-home-signal:first-child,
.admin-home-task:first-child,
.admin-home-row:first-child,
.admin-home-sync:first-child,
.admin-home-security-row:first-child,
.admin-home-audit-row:first-child {
    border-top: 0;
}

.admin-home-signal {
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 10px 2px;
}

.admin-home-signal strong,
.admin-home-row strong,
.admin-home-sync strong,
.admin-home-security-row strong,
.admin-home-audit-row strong {
    display: block;
    min-width: 0;
    color: var(--admin-text);
    font-size: 0.94rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.admin-home-signal .material-symbols-outlined,
.admin-home-icon-link .material-symbols-outlined {
    font-size: 20px;
}

.admin-home-signal-mark {
    width: 3px;
    min-height: 34px;
    border-radius: 8px;
    background: var(--admin-home-info);
}

.admin-home-signal.is-danger .admin-home-signal-mark {
    background: var(--admin-home-danger);
}

.admin-home-signal.is-warning .admin-home-signal-mark {
    background: var(--admin-home-warning);
}

.admin-home-signal.is-info .admin-home-signal-mark {
    background: var(--admin-home-info);
}

.admin-home-task {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) minmax(58px, max-content);
    gap: 10px 12px;
    align-items: start;
    min-height: 74px;
    padding: 12px 2px;
}

.admin-home-task-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
    color: var(--admin-home-info);
}

.admin-home-task-icon .material-symbols-outlined,
.admin-home-task-primary .material-symbols-outlined,
.admin-home-task-button .material-symbols-outlined {
    font-size: 19px;
}

.admin-home-task-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.admin-home-task-main strong,
.admin-home-task-count strong {
    display: block;
    min-width: 0;
    color: var(--admin-text);
    line-height: 1.15;
}

.admin-home-task-main strong {
    font-size: 0.96rem;
    overflow-wrap: anywhere;
}

.admin-home-task-main small,
.admin-home-task-count small {
    color: var(--admin-home-muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

.admin-home-task-count {
    min-width: 58px;
    text-align: right;
}

.admin-home-task-count strong {
    font-size: 1.26rem;
    font-weight: 800;
}

.admin-home-task-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    grid-column: 2 / -1;
}

.admin-home-task-form {
    margin: 0;
}

.admin-home-task-primary,
body.admin-page .admin-home-task-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    min-height: 32px;
    max-width: 100%;
    padding: 0 10px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
    color: var(--admin-text);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
}

body.admin-page .admin-home-task-button {
    box-shadow: none;
    cursor: pointer;
}

.admin-home-task-primary:hover,
.admin-home-task-primary:focus-visible,
body.admin-page .admin-home-task-button:hover,
body.admin-page .admin-home-task-button:focus-visible {
    background: var(--admin-home-panel-strong);
    border-color: rgba(0, 84, 126, 0.24);
    outline: none;
}

.admin-home-task.is-danger .admin-home-task-icon,
.admin-home-task.is-danger .admin-home-task-count strong {
    color: var(--admin-home-danger);
}

.admin-home-task.is-warning .admin-home-task-icon,
.admin-home-task.is-warning .admin-home-task-count strong {
    color: var(--admin-home-warning);
}

.admin-home-task.is-info .admin-home-task-icon,
.admin-home-task.is-info .admin-home-task-count strong {
    color: var(--admin-home-info);
}

.admin-home-task.is-good .admin-home-task-icon,
.admin-home-task.is-good .admin-home-task-count strong {
    color: var(--admin-home-good);
}

.admin-home-signal:hover,
.admin-home-signal:focus-visible,
.admin-home-row:hover,
.admin-home-row:focus-visible,
.admin-home-sync:hover,
.admin-home-sync:focus-visible,
.admin-home-quality:hover,
.admin-home-quality:focus-visible,
.admin-home-security-row:hover,
.admin-home-security-row:focus-visible,
.admin-home-audit-row:hover,
.admin-home-audit-row:focus-visible,
.admin-home-dock-link:hover,
.admin-home-dock-link:focus-visible,
.admin-home-icon-link:hover,
.admin-home-icon-link:focus-visible {
    background: var(--admin-home-panel-soft);
    outline: none;
}

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

body.admin-page .admin-home-secondary {
    margin-top: 18px;
}

.admin-home-panel {
    grid-column: span 2;
    min-height: 260px;
}

.admin-home-panel.is-wide {
    grid-column: span 4;
}

.admin-home-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) max-content;
    gap: 12px;
    align-items: center;
    min-height: 62px;
    padding: 10px 0;
}

.admin-home-row-icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
    color: var(--admin-accent);
}

.admin-home-row-icon .material-symbols-outlined {
    font-size: 20px;
}

.admin-home-row-main {
    min-width: 0;
}

.admin-home-value {
    color: var(--admin-text);
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-home-quality-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
    min-width: 0;
}

.admin-home-quality {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) minmax(72px, 0.34fr) 46px;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 10px 0;
    border-top: 1px solid var(--admin-home-line);
    color: inherit;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.admin-home-quality:nth-child(-n + 2) {
    border-top: 0;
}

.admin-home-quality-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
    color: var(--admin-accent);
}

.admin-home-quality-icon .material-symbols-outlined {
    font-size: 19px;
}

.admin-home-quality-main {
    min-width: 0;
}

.admin-home-quality-meter {
    position: relative;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(26, 58, 70, 0.1);
}

.admin-home-quality-meter span {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--admin-home-quality-value);
    border-radius: inherit;
    background: var(--admin-home-info);
}

.admin-home-quality-value {
    color: var(--admin-text);
    font-size: 0.9rem;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.admin-home-quality.is-good .admin-home-quality-icon {
    color: var(--admin-home-good);
}

.admin-home-quality.is-good .admin-home-quality-meter span {
    background: var(--admin-home-good);
}

.admin-home-quality.is-warning .admin-home-quality-icon {
    color: var(--admin-home-warning);
}

.admin-home-quality.is-warning .admin-home-quality-meter span {
    background: var(--admin-home-warning);
}

.admin-home-quality.is-info .admin-home-quality-icon {
    color: var(--admin-home-info);
}

.admin-home-quality.is-info .admin-home-quality-meter span {
    background: var(--admin-home-info);
}

.admin-home-row.is-good .admin-home-row-icon,
.admin-home-sync.is-good b,
.admin-home-security-row.is-good .material-symbols-outlined {
    color: var(--admin-home-good);
}

.admin-home-row.is-warning .admin-home-row-icon,
.admin-home-sync.is-warning b {
    color: var(--admin-home-warning);
}

.admin-home-sync.is-danger b,
.admin-home-security-row.is-danger .material-symbols-outlined {
    color: var(--admin-home-danger);
}

.admin-home-row.is-info .admin-home-row-icon,
.admin-home-sync.is-info b {
    color: var(--admin-home-info);
}

.admin-home-icon-link {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
    color: var(--admin-accent);
    text-decoration: none;
}

.admin-home-sync {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 56px;
    padding: 10px 0;
}

.admin-home-sync > span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.admin-home-sync > span:last-child {
    justify-items: end;
    text-align: right;
}

.admin-home-sync b {
    color: var(--admin-home-muted);
    font-size: 0.9rem;
}

.admin-home-security-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 58px;
    padding: 10px 0;
}

.admin-home-security-row .material-symbols-outlined {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
    color: var(--admin-accent);
    font-size: 20px;
}

.admin-home-audit-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) minmax(120px, 0.8fr);
    gap: 12px;
    align-items: center;
    min-height: 54px;
    padding: 9px 0;
}

.admin-home-audit-time {
    color: var(--admin-home-muted);
    font-size: 0.82rem;
}

.admin-home-audit-route {
    min-width: 0;
    color: var(--admin-home-muted);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.admin-home-empty {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 10px 0;
    color: var(--admin-home-muted);
}

.admin-home-empty p {
    margin: 0;
}

.admin-home-empty .material-symbols-outlined {
    color: var(--admin-accent);
    font-size: 22px;
}

.admin-home-dock {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.admin-home-dock-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.admin-home-dock-link {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
    color: var(--admin-text);
    text-decoration: none;
    font-weight: 700;
}

.admin-home-dock-link .material-symbols-outlined {
    color: var(--admin-accent);
    font-size: 20px;
}

body.admin-page .button-small {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.86rem;
}

html.admin-theme-dark body.admin-page {
    --admin-home-panel: rgba(18, 28, 36, 0.82);
    --admin-home-panel-strong: rgba(24, 36, 45, 0.94);
    --admin-home-panel-soft: rgba(9, 16, 22, 0.44);
    --admin-home-line: rgba(223, 232, 236, 0.11);
    --admin-home-line-strong: rgba(220, 156, 93, 0.26);
    --admin-home-muted: #a9b6bd;
    --admin-home-bus: #c9874e;
    --admin-home-good: #71c7ad;
    --admin-home-warning: #d59a52;
    --admin-home-danger: #e18484;
    --admin-home-info: #86c2d8;
    --admin-manual-action-bg: rgba(24, 22, 19, 0.74);
    --admin-manual-action-bg-hover: rgba(33, 29, 24, 0.86);
    --admin-manual-action-bg-active: rgba(44, 37, 30, 0.9);
    --admin-manual-action-border: rgba(201, 135, 78, 0.2);
    --admin-manual-action-border-hover: rgba(226, 157, 88, 0.26);
    --admin-manual-action-text: #f0cfaa;
    --admin-manual-action-focus: rgba(226, 157, 88, 0.24);
    --admin-manual-action-icon-color: #f2c796;
    --admin-manual-action-icon-color-hover: #ffd7a8;
    --admin-manual-action-icon-bg: rgba(226, 157, 88, 0.065);
    --admin-manual-action-icon-bg-hover: rgba(226, 157, 88, 0.09);
    --admin-manual-action-icon-border: rgba(226, 157, 88, 0.095);
    --admin-manual-action-icon-border-hover: rgba(226, 157, 88, 0.135);
    --admin-manual-action-rail-bg: rgba(36, 30, 24, 0.44);
    --admin-manual-action-rail-border: rgba(226, 157, 88, 0.105);
    --admin-manual-action-rail-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    --admin-manual-action-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), inset 0 -1px 0 rgba(226, 157, 88, 0.018);
    --admin-manual-action-shadow-hover: inset 0 0 0 1px rgba(226, 157, 88, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.055), inset 0 -10px 16px rgba(226, 157, 88, 0.035);
    --admin-home-action-bg: var(--admin-manual-action-bg);
    --admin-home-action-bg-hover: var(--admin-manual-action-bg-hover);
    --admin-home-action-bg-active: var(--admin-manual-action-bg-active);
    --admin-home-action-border: var(--admin-manual-action-border);
    --admin-home-action-border-hover: var(--admin-manual-action-border-hover);
    --admin-home-action-text: var(--admin-manual-action-text);
    --admin-home-action-focus: var(--admin-manual-action-focus);
}

html.admin-theme-dark body.admin-page .admin-home-command-copy,
html.admin-theme-dark body.admin-page .admin-home-attention,
html.admin-theme-dark body.admin-page .admin-home-panel,
html.admin-theme-dark body.admin-page .admin-home-dock {
    background:
        linear-gradient(180deg, rgba(30, 40, 48, 0.72), rgba(13, 20, 27, 0.76)),
        var(--admin-home-panel);
    border-color: var(--admin-home-line);
}

html.admin-theme-dark body.admin-page .admin-home-row-icon,
html.admin-theme-dark body.admin-page .admin-home-count,
html.admin-theme-dark body.admin-page .admin-home-chip,
html.admin-theme-dark body.admin-page .admin-home-task-icon,
html.admin-theme-dark body.admin-page .admin-home-task-primary,
html.admin-theme-dark body.admin-page .admin-home-task-button,
html.admin-theme-dark body.admin-page .admin-home-icon-link,
html.admin-theme-dark body.admin-page .admin-home-quality-icon,
html.admin-theme-dark body.admin-page .admin-home-security-row .material-symbols-outlined,
html.admin-theme-dark body.admin-page .admin-home-dock-link {
    border-color: var(--admin-home-line);
    background: var(--admin-home-panel-soft);
}

html.admin-theme-dark body.admin-page .admin-home-signal:hover,
html.admin-theme-dark body.admin-page .admin-home-signal:focus-visible,
html.admin-theme-dark body.admin-page .admin-home-task-primary:hover,
html.admin-theme-dark body.admin-page .admin-home-task-primary:focus-visible,
html.admin-theme-dark body.admin-page .admin-home-task-button:hover,
html.admin-theme-dark body.admin-page .admin-home-task-button:focus-visible,
html.admin-theme-dark body.admin-page .admin-home-row:hover,
html.admin-theme-dark body.admin-page .admin-home-row:focus-visible,
html.admin-theme-dark body.admin-page .admin-home-sync:hover,
html.admin-theme-dark body.admin-page .admin-home-sync:focus-visible,
html.admin-theme-dark body.admin-page .admin-home-quality:hover,
html.admin-theme-dark body.admin-page .admin-home-quality:focus-visible,
html.admin-theme-dark body.admin-page .admin-home-security-row:hover,
html.admin-theme-dark body.admin-page .admin-home-security-row:focus-visible,
html.admin-theme-dark body.admin-page .admin-home-audit-row:hover,
html.admin-theme-dark body.admin-page .admin-home-audit-row:focus-visible,
html.admin-theme-dark body.admin-page .admin-home-dock-link:hover,
html.admin-theme-dark body.admin-page .admin-home-dock-link:focus-visible,
html.admin-theme-dark body.admin-page .admin-home-icon-link:hover,
html.admin-theme-dark body.admin-page .admin-home-icon-link:focus-visible {
    background: rgba(255, 255, 255, 0.045);
}

@media (max-width: 1080px) {
    .admin-home-command,
    .admin-home-grid {
        grid-template-columns: 1fr;
    }

    .admin-home-panel,
    .admin-home-panel.is-wide {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .admin-home-command-copy,
    .admin-home-attention,
    .admin-home-panel,
    .admin-home-dock {
        padding: 14px;
    }

    .admin-home-command-copy {
        min-height: 0;
    }

    .admin-home-editorial-queue {
        order: -1;
    }

    .admin-home-command h1 {
        font-size: clamp(1.85rem, 8vw, 2.35rem);
        line-height: 1.06;
        overflow-wrap: anywhere;
    }

    .admin-home-rail,
    .admin-home-quality-grid,
    .admin-home-dock-actions {
        grid-template-columns: 1fr;
    }

    .admin-home-task {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
    }

    .admin-home-task-icon {
        width: 36px;
        height: 36px;
    }

    .admin-home-task-count {
        grid-column: 2;
        justify-self: start;
        display: inline-flex;
        align-items: baseline;
        gap: 6px;
        min-width: 0;
        text-align: left;
    }

    .admin-home-task-count strong {
        font-size: 1.08rem;
    }

    .admin-home-task-actions {
        grid-column: 1 / -1;
        width: 100%;
    }

    .admin-home-task-primary,
    body.admin-page .admin-home-task-button {
        min-height: 34px;
        white-space: normal;
    }

    .admin-home-row {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .admin-home-quality {
        grid-template-columns: 34px minmax(0, 1fr) 44px;
    }

    .admin-home-quality-icon {
        grid-column: 1;
        grid-row: 1;
    }

    .admin-home-quality-main {
        grid-column: 2;
        grid-row: 1;
    }

    .admin-home-quality-value {
        grid-column: 3;
        grid-row: 1;
    }

    .admin-home-quality:nth-child(-n + 2) {
        border-top: 1px solid var(--admin-home-line);
    }

    .admin-home-quality:first-child {
        border-top: 0;
    }

    .admin-home-quality-meter {
        grid-column: 2 / -1;
        grid-row: 2;
        width: 100%;
    }

    .admin-home-value {
        grid-column: 2;
        justify-self: start;
        font-size: 0.96rem;
    }

    .admin-home-sync,
    .admin-home-audit-row {
        grid-template-columns: 1fr;
        gap: 5px;
        align-items: start;
    }

    .admin-home-sync > span:last-child {
        justify-items: start;
        text-align: left;
    }

    .admin-home-audit-route {
        max-width: 100%;
    }
}

.admin-overview-card .admin-overview-date {
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    line-height: 1.12;
}

.admin-settings-command .admin-list-command-copy {
    align-items: end;
}

.admin-settings-command .admin-list-command-meta {
    grid-template-columns: repeat(3, minmax(96px, max-content));
}

.admin-settings-command .admin-list-command-actions {
    align-content: start;
}

.admin-settings-status-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-settings-status {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.admin-settings-external-url {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
    box-shadow: var(--admin-shadow);
}

.admin-settings-external-url.is-ok {
    border-color: rgba(22, 116, 95, 0.2);
}

.admin-settings-external-url.is-warn {
    border-color: rgba(154, 91, 24, 0.28);
    background: rgba(255, 249, 238, 0.84);
}

.admin-settings-external-url.is-error {
    border-color: rgba(170, 63, 63, 0.28);
    background: rgba(255, 246, 244, 0.88);
}

.admin-settings-external-url-icon,
.admin-settings-card-icon,
.admin-settings-summary-icon {
    display: grid;
    place-items: center;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
    color: var(--admin-home-info);
}

.admin-settings-external-url-icon {
    width: 40px;
    height: 40px;
}

.admin-settings-card-icon,
.admin-settings-summary-icon {
    width: 36px;
    height: 36px;
}

.admin-settings-external-url.is-warn .admin-settings-external-url-icon,
.admin-settings-card.is-warn .admin-settings-card-icon,
.admin-settings-section .admin-settings-state.is-warn + .admin-settings-chevron {
    color: var(--admin-home-warning);
}

.admin-settings-external-url.is-error .admin-settings-external-url-icon,
.admin-settings-card.is-error .admin-settings-card-icon {
    color: var(--admin-home-danger);
}

.admin-settings-external-url-main,
.admin-settings-card-main {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.admin-settings-card-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: start;
    min-width: 0;
}

.admin-settings-card-head > div {
    min-width: 0;
}

.admin-settings-external-url h2,
.admin-settings-card h2,
.admin-settings-explain h2,
.admin-settings-refresh h3 {
    margin: 3px 0 0;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1.06rem;
    line-height: 1.12;
    letter-spacing: 0;
}

.admin-settings-external-url p,
.admin-settings-external-url ul,
.admin-settings-card p,
.admin-settings-explain p,
.admin-settings-refresh p {
    margin: 0;
    color: var(--admin-home-muted);
    font-size: 0.9rem;
    line-height: 1.48;
}

.admin-settings-external-url ul {
    padding-left: 18px;
}

.admin-settings-external-url strong {
    color: var(--admin-text);
    overflow-wrap: anywhere;
}

.admin-settings-login-code {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    overflow: hidden;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
    box-shadow: var(--admin-shadow);
}

.admin-settings-login-code.is-error {
    border-color: rgba(170, 63, 63, 0.2);
}

.admin-settings-login-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    min-width: 0;
}

.admin-settings-login-head h2 {
    margin: 3px 0 0;
    color: var(--admin-text);
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1.06rem;
    line-height: 1.12;
    letter-spacing: 0;
}

.admin-settings-login-copy,
.admin-settings-login-alert,
.admin-settings-login-empty {
    margin: 0;
    color: var(--admin-home-muted);
    font-size: 0.88rem;
    line-height: 1.42;
}

.admin-settings-login-copy {
    margin-top: 6px;
    max-width: 760px;
}

.admin-settings-login-alert {
    padding: 8px 10px;
    border: 1px solid rgba(170, 63, 63, 0.12);
    border-radius: 8px;
    background: rgba(255, 246, 244, 0.48);
    color: rgba(117, 58, 54, 0.86);
}

.admin-settings-login-empty {
    padding: 10px 0 0;
    border-top: 1px solid rgba(26, 53, 65, 0.08);
}

.admin-settings-login-state,
.admin-settings-login-code-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    min-width: 0;
    color: rgba(5, 32, 45, 0.76);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
}

.admin-settings-login-state {
    min-height: 30px;
    padding: 0 8px;
    border: 1px solid rgba(26, 53, 65, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
}

.admin-settings-login-state i,
.admin-settings-login-code-state i {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: rgba(31, 129, 92, 0.78);
}

.admin-settings-login-state.is-error,
.admin-settings-login-code-state.is-off {
    color: rgba(122, 58, 56, 0.86);
}

.admin-settings-login-state.is-error i,
.admin-settings-login-code-state.is-off i {
    background: rgba(168, 73, 70, 0.82);
}

.admin-settings-login-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(26, 53, 65, 0.08);
    border-radius: 8px;
    background: rgba(248, 251, 252, 0.54);
}

.admin-settings-login-facts div {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 8px 10px;
    border-left: 1px solid rgba(26, 53, 65, 0.07);
}

.admin-settings-login-facts div:first-child {
    border-left: 0;
}

.admin-settings-login-facts dt,
.admin-settings-login-facts dd {
    margin: 0;
    min-width: 0;
}

.admin-settings-login-facts dt {
    overflow: hidden;
    color: rgba(51, 76, 88, 0.62);
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-settings-login-facts dd {
    color: rgba(5, 32, 45, 0.86);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.admin-settings-login-facts dd.is-danger {
    color: rgba(122, 58, 56, 0.88);
}

.admin-settings-login-ledger {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(26, 53, 65, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.52);
}

.admin-settings-login-ledger-head,
.admin-settings-login-row {
    display: grid;
    grid-template-columns:
        minmax(220px, 1.15fr)
        minmax(124px, 0.58fr)
        minmax(220px, 1fr)
        minmax(172px, 0.72fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.admin-settings-login-ledger-head {
    min-height: 32px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(26, 53, 65, 0.08);
    color: rgba(51, 76, 88, 0.56);
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1;
}

.admin-settings-login-row {
    padding: 10px 12px;
    border-top: 1px solid rgba(26, 53, 65, 0.07);
}

.admin-settings-login-row:first-of-type {
    border-top: 0;
}

.admin-settings-login-row.is-risk {
    background: rgba(255, 246, 244, 0.28);
}

.admin-settings-login-admin,
.admin-settings-login-code-cell,
.admin-settings-login-reason {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-settings-login-admin strong,
.admin-settings-login-reason span {
    min-width: 0;
    overflow: hidden;
    color: rgba(5, 32, 45, 0.82);
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.24;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
}

.admin-settings-login-admin > span,
.admin-settings-login-code-cell small,
.admin-settings-login-reason small {
    min-width: 0;
    color: rgba(51, 76, 88, 0.62);
    font-size: 0.74rem;
    font-weight: 550;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.admin-settings-login-admin em {
    display: inline-flex;
    margin-left: 6px;
    color: rgba(51, 76, 88, 0.68);
    font-style: normal;
    font-weight: 650;
    white-space: nowrap;
}

.admin-settings-login-action {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.admin-settings-login-action form,
.admin-settings-login-disable {
    min-width: 0;
    width: 100%;
}

.admin-settings-login-disable > summary {
    width: fit-content;
    margin-left: auto;
    cursor: pointer;
    list-style: none;
}

.admin-settings-login-disable > summary::-webkit-details-marker {
    display: none;
}

.admin-settings-login-disable-form {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid rgba(170, 63, 63, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
}

.admin-settings-login-disable-form label {
    display: grid;
    gap: 5px;
    margin: 0;
}

.admin-settings-login-disable-form label > span {
    color: rgba(51, 76, 88, 0.68);
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.1;
}

.admin-settings-login-disable-form input {
    width: 100%;
    min-height: 36px;
    border-radius: 8px;
}

.admin-settings-login-action .admin-manual-action,
.admin-settings-login-action .admin-list-action {
    justify-content: center;
    width: 100%;
    min-width: 0;
    max-width: 190px;
    height: 36px;
    min-height: 36px;
}

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

.admin-settings-card,
.admin-settings-section {
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
    box-shadow: var(--admin-shadow);
}

.admin-settings-card {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 13px 14px;
    overflow: hidden;
}

.admin-settings-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--admin-home-info);
    content: "";
}

.admin-settings-card.is-ok::before {
    background: var(--admin-home-good);
}

.admin-settings-card.is-warn::before {
    background: var(--admin-home-warning);
}

.admin-settings-card.is-error::before {
    background: var(--admin-home-danger);
}

.admin-settings-state {
    display: inline-flex;
    flex: 0 0 auto;
    width: fit-content;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border: 1px solid rgba(42, 113, 141, 0.14);
    border-radius: 8px;
    background: rgba(42, 113, 141, 0.08);
    color: var(--admin-home-info);
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.admin-settings-state.is-ok {
    border-color: rgba(22, 116, 95, 0.16);
    background: rgba(22, 116, 95, 0.08);
    color: var(--admin-home-good);
}

.admin-settings-state.is-warn {
    border-color: rgba(154, 91, 24, 0.18);
    background: rgba(154, 91, 24, 0.1);
    color: var(--admin-home-warning);
}

.admin-settings-state.is-error {
    border-color: rgba(170, 63, 63, 0.18);
    background: rgba(170, 63, 63, 0.09);
    color: var(--admin-home-danger);
}

.admin-settings-facts {
    display: grid;
    gap: 6px;
    margin: 0;
}

.admin-settings-facts div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
    min-width: 0;
    padding-top: 7px;
    border-top: 1px solid var(--admin-home-line);
}

.admin-settings-facts dt,
.admin-settings-facts dd {
    margin: 0;
}

.admin-settings-facts dt {
    color: var(--admin-home-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-settings-facts dd {
    min-width: 0;
    color: var(--admin-text);
    font-size: 0.82rem;
    font-weight: 800;
    overflow-wrap: anywhere;
    text-align: right;
}

.admin-settings-facts dd.is-error {
    color: var(--admin-home-danger);
}

.admin-settings-card-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 8px;
    border: 1px solid var(--admin-shell-control-border);
    border-radius: 8px;
    background: var(--admin-shell-control);
    color: var(--admin-accent-dark);
    font-size: 0.8rem;
    font-weight: 900;
    text-decoration: none;
}

.admin-settings-card-link:hover,
.admin-settings-card-link:focus-visible {
    border-color: var(--admin-shell-control-border-strong);
    background: var(--admin-shell-control-hover);
    outline: none;
}

.admin-settings-card-link .material-symbols-outlined {
    font-size: 17px;
}

.admin-settings-accordion {
    display: grid;
    gap: 10px;
}

.admin-settings-section {
    overflow: hidden;
}

.admin-settings-section > summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
}

.admin-settings-section > summary::-webkit-details-marker {
    display: none;
}

.admin-settings-section summary strong {
    display: block;
    min-width: 0;
    color: var(--admin-text);
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.12;
}

.admin-settings-section summary small {
    display: block;
    min-width: 0;
    margin-top: 3px;
    color: var(--admin-home-muted);
    font-size: 0.82rem;
    line-height: 1.34;
}

.admin-settings-chevron {
    color: var(--admin-home-muted);
    transition: transform 0.18s ease;
}

.admin-settings-section[open] .admin-settings-chevron {
    transform: rotate(180deg);
}

.admin-settings-section-body {
    display: grid;
    grid-template-columns: minmax(210px, 0.34fr) minmax(0, 1fr);
    gap: 12px;
    padding: 0 14px 14px;
}

.admin-settings-explain,
.admin-settings-form,
.admin-settings-refresh {
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.52);
}

.admin-settings-explain {
    padding: 14px;
}

.admin-settings-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
}

.admin-settings-form label,
.admin-settings-refresh label {
    display: grid;
    gap: 7px;
    margin: 0;
}

.admin-settings-form label > span,
.admin-settings-refresh label > span {
    color: var(--admin-text);
    font-size: 0.86rem;
    font-weight: 900;
}

.admin-settings-form small {
    color: var(--admin-home-muted);
    font-size: 0.8rem;
    line-height: 1.36;
}

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

.admin-settings-actions .admin-manual-action,
.admin-settings-actions .admin-list-action,
.admin-settings-refresh .admin-manual-action {
    min-height: 36px;
    border-radius: 8px;
}

.admin-settings-refresh {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.32fr) minmax(180px, 0.42fr) auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
}

.admin-mail-test-form {
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.46fr) auto;
}

/* Admin security console: compact account risk, sessions, recovery and access controls. */
.admin-security-command .admin-list-command-meta {
    grid-template-columns: repeat(3, minmax(92px, max-content));
}

.admin-security-status-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-security-profile {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.admin-security-card,
.admin-security-panel,
.admin-security-stat,
.admin-security-recommendation {
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
    box-shadow: var(--admin-shadow);
}

.admin-security-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    min-width: 0;
    padding: 13px 14px;
}

.admin-security-card-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
    color: var(--admin-home-info);
    font-size: 21px;
}

.admin-security-card.is-good .admin-security-card-icon,
.admin-security-stat.is-good strong {
    color: var(--admin-home-good);
}

.admin-security-card.is-warning .admin-security-card-icon,
.admin-security-stat.is-warning strong {
    color: var(--admin-home-warning);
}

.admin-security-card.is-danger .admin-security-card-icon,
.admin-security-stat.is-danger strong {
    color: var(--admin-home-danger);
}

.admin-security-card > div,
.admin-security-recommendation > div {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.admin-security-label {
    color: var(--admin-home-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.admin-security-card strong,
.admin-security-recommendation strong,
.admin-security-stat strong,
.admin-security-panel-head h2,
.admin-security-password-panel h2 {
    min-width: 0;
    color: var(--admin-text);
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    letter-spacing: 0;
    line-height: 1.12;
}

.admin-security-card strong {
    overflow-wrap: anywhere;
    font-size: 1rem;
}

.admin-security-card p,
.admin-security-recommendation p,
.admin-security-stat p,
.admin-security-panel > .muted,
.admin-security-password-panel .muted {
    margin: 0;
    color: var(--admin-home-muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.admin-security-panel {
    display: grid;
    gap: 12px;
    padding: 14px 16px;
}

.admin-security-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
}

.admin-security-panel-head h2,
.admin-security-password-panel h2 {
    margin: 4px 0 0;
    font-size: 1.18rem;
}

.admin-security-panel-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.admin-security-panel-actions form {
    display: flex;
    min-width: 0;
    margin: 0;
}

body.admin-page .admin-security-danger-action,
body.admin-page button.admin-security-danger-action,
body.admin-page .button.admin-security-danger-action {
    border-color: rgba(170, 63, 63, 0.24);
    background: rgba(255, 248, 246, 0.96);
    background-image: none;
    color: #7d2e2e;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

body.admin-page .admin-security-danger-action:hover,
body.admin-page button.admin-security-danger-action:hover,
body.admin-page .button.admin-security-danger-action:hover {
    border-color: rgba(170, 63, 63, 0.38);
    background: rgba(255, 238, 234, 0.98);
    background-image: none;
    color: #7d2e2e;
    box-shadow:
        inset 0 0 0 1px rgba(170, 63, 63, 0.12),
        inset 0 -10px 18px rgba(170, 63, 63, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transform: none;
}

body.admin-page .admin-security-danger-action .material-symbols-outlined {
    border-color: rgba(170, 63, 63, 0.14);
    background: rgba(170, 63, 63, 0.08);
}

.admin-security-recommendations {
    display: grid;
    gap: 8px;
}

.admin-security-recommendation {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 11px 12px;
    box-shadow: none;
}

.admin-security-led {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border-radius: 999px;
    background: var(--admin-home-info);
    box-shadow: 0 0 0 3px rgba(42, 113, 141, 0.1);
}

.admin-security-recommendation.is-good .admin-security-led {
    background: var(--admin-home-good);
    box-shadow: 0 0 0 3px rgba(22, 116, 95, 0.1);
}

.admin-security-recommendation.is-warning .admin-security-led {
    background: var(--admin-home-warning);
    box-shadow: 0 0 0 3px rgba(154, 91, 24, 0.1);
}

.admin-security-recommendation.is-danger .admin-security-led {
    background: var(--admin-home-danger);
    box-shadow: 0 0 0 3px rgba(170, 63, 63, 0.1);
}

.admin-security-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.admin-security-stat {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 11px 12px;
    box-shadow: none;
}

.admin-security-stat strong {
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
}

.admin-security-callout {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(154, 91, 24, 0.22);
    border-radius: 8px;
    background: rgba(255, 249, 238, 0.82);
}

.admin-security-callout strong {
    color: var(--admin-home-warning);
}

.admin-security-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.44);
}

.admin-security-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.admin-security-table th,
.admin-security-table td {
    padding: 10px 11px;
    border-bottom: 1px solid var(--admin-home-line);
    text-align: left;
    vertical-align: top;
}

.admin-security-table th {
    color: var(--admin-home-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-security-table td {
    color: var(--admin-text);
    font-size: 0.84rem;
    line-height: 1.35;
}

.admin-security-table tr:last-child td {
    border-bottom: 0;
}

.admin-security-table code {
    white-space: nowrap;
}

.admin-security-panel .admin-permissions-grid {
    gap: 10px;
}

.admin-security-panel .admin-permission-group {
    padding: 12px;
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.52);
}

.admin-security-panel .admin-check-row {
    gap: 7px 9px;
    margin-top: 8px;
    font-size: 0.86rem;
}

.admin-security-panel .admin-check-row code {
    color: var(--admin-home-muted);
    font-size: 0.72rem;
}

.admin-security-password-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.admin-security-password-grid > div {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.admin-security-password-grid form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 10px;
    align-items: end;
}

.admin-security-password-grid label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: var(--admin-text);
    font-size: 0.84rem;
    font-weight: 900;
}

.admin-security-password-grid input {
    min-height: 38px;
    border-radius: 8px;
}

.admin-security-password-grid .button {
    min-height: 38px;
    border-radius: 8px;
}

/* Admin access console: account list, invites and permission signals. */
.admin-access-command .admin-list-command-meta {
    grid-template-columns: repeat(3, minmax(86px, max-content));
}

.admin-access-status-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.admin-page .admin-access-command.section,
body.admin-page .admin-access-status-strip.section,
body.admin-page .admin-access-workspace.section {
    margin: 14px 0;
}

.admin-status-strip-item.is-info strong {
    color: var(--admin-home-info);
}

body.admin-page .admin-access-workspace.admin-list-workspace {
    display: grid;
    grid-template-columns: minmax(240px, 0.28fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.admin-access-rail,
.admin-access-panel,
.admin-access-row,
.admin-access-empty {
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
    box-shadow: var(--admin-shadow);
}

.admin-access-rail,
.admin-access-panel {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
}

.admin-access-rail-head,
.admin-access-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
}

.admin-access-rail-head h2,
.admin-access-panel-head h2 {
    margin: 4px 0 0;
    color: var(--admin-text);
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1.18rem;
    letter-spacing: 0;
    line-height: 1.12;
}

.admin-access-count {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 4px 8px;
    border: 1px solid rgba(42, 113, 141, 0.14);
    border-radius: 8px;
    background: rgba(42, 113, 141, 0.08);
    color: var(--admin-home-info);
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.admin-access-rail-list,
.admin-access-list {
    display: grid;
    gap: 8px;
}

.admin-access-signal {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.48);
}

.admin-access-signal-icon,
.admin-access-avatar {
    display: grid;
    place-items: center;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
    color: var(--admin-home-info);
}

.admin-access-signal-icon {
    width: 34px;
    height: 34px;
    font-size: 20px;
}

.admin-access-signal > div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.admin-access-signal span:not(.material-symbols-outlined),
.admin-access-label,
.admin-access-cell span {
    color: var(--admin-home-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.admin-access-signal strong {
    color: var(--admin-text);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.admin-access-signal p {
    margin: 0;
    color: var(--admin-home-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.admin-access-signal.is-good .admin-access-signal-icon,
.admin-access-row.is-active .admin-access-avatar {
    color: var(--admin-home-good);
}

.admin-access-signal.is-warning .admin-access-signal-icon,
.admin-access-row.is-invited .admin-access-avatar {
    color: var(--admin-home-warning);
}

.admin-access-signal.is-danger .admin-access-signal-icon,
.admin-access-row.is-suspended .admin-access-avatar {
    color: var(--admin-home-danger);
}

.admin-access-row {
    display: grid;
    grid-template-columns: minmax(210px, 0.9fr) minmax(260px, 1.1fr) minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 12px;
    box-shadow: none;
}

.admin-access-row.is-suspended {
    border-color: rgba(170, 63, 63, 0.18);
    background: rgba(255, 248, 246, 0.78);
}

.admin-access-identity {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.admin-access-avatar {
    width: 40px;
    height: 40px;
    font-size: 22px;
}

.admin-access-identity > div,
.admin-access-right,
.admin-access-cell {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.admin-access-identity strong,
.admin-access-cell strong {
    min-width: 0;
    color: var(--admin-text);
    font-weight: 900;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.admin-access-email {
    min-width: 0;
    color: var(--admin-home-muted);
    font-size: 0.84rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.admin-access-badges,
.admin-access-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

body.admin-page .admin-access-summary {
    max-width: none;
    min-width: 0;
}

.admin-access-row .admin-status-pill {
    max-width: 100%;
    margin-top: 0;
    border-radius: 8px;
    line-height: 1.1;
    white-space: normal;
}

.admin-access-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.admin-access-cell {
    align-content: start;
    min-height: 54px;
    padding: 8px;
    border: 1px solid rgba(22, 48, 58, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.42);
}

.admin-access-cell small {
    color: var(--admin-home-muted);
    font-size: 0.74rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.admin-access-actions {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.admin-access-actions .admin-list-action {
    min-width: 118px;
}

.admin-access-empty {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 28px 18px;
    text-align: center;
    box-shadow: none;
}

.admin-access-empty .material-symbols-outlined {
    color: var(--admin-home-info);
    font-size: 34px;
}

.admin-access-empty strong {
    color: var(--admin-text);
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1.08rem;
}

.admin-access-empty p {
    margin: 0;
    color: var(--admin-home-muted);
}

/* Admin access form: invite/edit workbench with profile, permissions, sessions and audit. */
.admin-access-form-command .admin-list-command-meta {
    grid-template-columns: repeat(3, minmax(88px, max-content));
}

.admin-access-form-status-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.admin-page .admin-access-form-command.section,
body.admin-page .admin-access-form-status-strip.section,
body.admin-page .admin-access-form-workbench.section {
    margin: 14px 0;
}

.admin-access-form-workbench {
    display: grid;
    grid-template-columns: minmax(240px, 0.28fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.admin-access-form-rail,
.admin-access-form-panel {
    min-width: 0;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
    box-shadow: var(--admin-shadow);
}

.admin-access-form-rail {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.admin-access-form-main,
.admin-access-form-stack {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.admin-access-form-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.admin-access-form-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
}

.admin-access-form-panel-head h2 {
    margin: 4px 0 0;
    color: var(--admin-text);
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1.18rem;
    letter-spacing: 0;
    line-height: 1.12;
}

.admin-access-profile-grid label,
.admin-access-role-preset {
    display: grid;
    gap: 6px;
    min-width: 0;
    margin: 0;
    color: var(--admin-text);
    font-size: 0.84rem;
    font-weight: 900;
}

.admin-access-role-preset {
    max-width: 340px;
}

.admin-access-profile-grid input,
.admin-access-profile-grid select,
.admin-access-role-preset select {
    min-height: 38px;
    border-radius: 8px;
}

.admin-access-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.admin-access-operation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.admin-access-operation-grid .admin-inline-form,
.admin-access-form-panel-head .admin-inline-form {
    display: flex;
    min-width: 0;
    margin: 0;
}

.admin-access-operation-grid .admin-manual-action,
.admin-access-form-panel-head .admin-manual-action {
    width: 100%;
}

.admin-access-session-list,
.admin-access-audit-list {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.admin-access-session-row,
.admin-access-audit-row {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.48);
}

.admin-access-session-row {
    grid-template-columns: 64px minmax(96px, 0.36fr) repeat(2, minmax(130px, 0.54fr));
    align-items: start;
}

.admin-access-session-row small {
    grid-column: 1 / -1;
}

.admin-access-audit-row {
    grid-template-columns: minmax(128px, 0.34fr) minmax(150px, 0.5fr) minmax(130px, 0.45fr) minmax(120px, 0.4fr);
    align-items: start;
}

.admin-access-audit-row small {
    grid-column: 1 / -1;
}

.admin-access-session-row strong,
.admin-access-audit-row time,
.admin-access-audit-row strong {
    color: var(--admin-text);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.84rem;
    font-variant-numeric: tabular-nums;
}

.admin-access-session-row span,
.admin-access-session-row small,
.admin-access-audit-row span,
.admin-access-audit-row small {
    min-width: 0;
    color: var(--admin-home-muted);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.admin-access-audit-row code {
    white-space: normal;
}

.admin-access-form-panel .admin-permissions-grid {
    gap: 10px;
}

.admin-access-form-panel .admin-permission-group {
    padding: 12px;
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.52);
}

.admin-access-form-panel .admin-check-row {
    gap: 7px 9px;
    margin-top: 8px;
    font-size: 0.86rem;
}

.admin-access-form-panel .admin-check-row code {
    color: var(--admin-home-muted);
    font-size: 0.72rem;
}

.admin-filter-shell,
.admin-auth-shell {
    display: grid;
    gap: 18px;
}

.admin-filter-shell {
    padding: 24px 26px;
    border: 1px solid var(--admin-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: var(--admin-shadow);
}

.admin-filter-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
}

.admin-filter-head h2,
.admin-panel-head h2,
.admin-auth-panel h2 {
    margin: 6px 0 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.45rem;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.admin-section-filters {
    flex-wrap: wrap;
}

.admin-learn-filter-layout {
    display: grid;
    gap: 16px;
}

.admin-learn-filter-group {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--admin-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.48);
}

.admin-learn-group-head {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 10px;
    align-items: center;
    color: var(--admin-text);
}

.admin-learn-group-head .material-symbols-outlined {
    color: var(--admin-accent);
}

.admin-learn-group-head small {
    color: var(--admin-muted);
    font-size: 0.84rem;
}

.admin-chip-meta {
    margin-left: 8px;
    color: var(--admin-muted);
    font-size: 0.82rem;
}

.admin-search-form {
    align-items: stretch;
}

[data-admin-dynamic-search] {
    position: relative;
    display: grid;
    gap: 18px;
}

[data-admin-dynamic-search]::after {
    position: absolute;
    inset: -4px;
    z-index: 5;
    border-radius: 28px;
    background:
        linear-gradient(90deg, transparent, rgba(0, 117, 122, 0.08), transparent),
        rgba(244, 251, 252, 0.46);
    opacity: 0;
    pointer-events: none;
    content: "";
    transition: opacity 0.18s ease;
}

[data-admin-dynamic-search].is-loading::after {
    opacity: 1;
}

[data-admin-dynamic-search].is-loading {
    cursor: progress;
}

.admin-files-search-form {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(210px, 320px) auto auto;
    align-items: stretch;
}

.admin-search-field {
    position: relative;
    flex: 1;
    min-width: 0;
}

.admin-files-search-form .admin-search-field {
    width: 100%;
}

.admin-files-category-select {
    width: 100%;
    min-width: 0;
}

.admin-search-field span {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--admin-muted);
}

.admin-search-field input {
    padding-left: 44px;
}

.admin-workspace,
.admin-editor-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.admin-editor-shell {
    grid-template-columns: minmax(0, 1.4fr) 340px;
}

.admin-file-save-dock,
.admin-editor-save-dock {
    position: fixed;
    right: max(18px, calc((100vw - 1440px) / 2 + 32px));
    bottom: 22px;
    top: auto;
    z-index: 115;
    display: flex;
    justify-content: flex-end;
    max-width: min(360px, calc(100vw - 36px));
    padding: 6px;
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 999px;
    background: rgba(246, 252, 253, 0.82);
    box-shadow: 0 22px 58px rgba(0, 47, 49, 0.2);
    backdrop-filter: blur(16px);
}

.admin-file-save-dock .button,
.admin-editor-save-dock .button,
.admin-file-save-dock .admin-manual-action,
.admin-editor-save-dock .admin-manual-action {
    width: auto;
    max-width: 48px;
    min-height: 44px;
    padding-inline: 12px;
    overflow: hidden;
    border-radius: 999px;
    border-color: rgba(0, 102, 104, 0.16);
    box-shadow: none;
    gap: 0;
    transition: max-width 0.22s ease, gap 0.22s ease, padding 0.22s ease, transform 0.18s ease;
}

.admin-file-save-dock .button span:not(.material-symbols-outlined),
.admin-editor-save-dock .button span:not(.material-symbols-outlined),
.admin-file-save-dock .admin-manual-action span:not(.material-symbols-outlined),
.admin-editor-save-dock .admin-manual-action span:not(.material-symbols-outlined) {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    transition: max-width 0.22s ease, opacity 0.18s ease;
}

.admin-file-save-dock:hover .button,
.admin-file-save-dock:focus-within .button,
.admin-editor-save-dock:hover .button,
.admin-editor-save-dock:focus-within .button,
.admin-file-save-dock:hover .admin-manual-action,
.admin-file-save-dock:focus-within .admin-manual-action,
.admin-editor-save-dock:hover .admin-manual-action,
.admin-editor-save-dock:focus-within .admin-manual-action {
    max-width: 260px;
    padding-inline: 16px;
    gap: 9px;
}

.admin-file-save-dock:hover .button span:not(.material-symbols-outlined),
.admin-file-save-dock:focus-within .button span:not(.material-symbols-outlined),
.admin-editor-save-dock:hover .button span:not(.material-symbols-outlined),
.admin-editor-save-dock:focus-within .button span:not(.material-symbols-outlined),
.admin-file-save-dock:hover .admin-manual-action span:not(.material-symbols-outlined),
.admin-file-save-dock:focus-within .admin-manual-action span:not(.material-symbols-outlined),
.admin-editor-save-dock:hover .admin-manual-action span:not(.material-symbols-outlined),
.admin-editor-save-dock:focus-within .admin-manual-action span:not(.material-symbols-outlined) {
    max-width: 190px;
    opacity: 1;
}

.admin-editor-save-dock + .admin-editor-shell,
.admin-editor-shell:has(.admin-file-save-dock) {
    padding-bottom: 96px;
}

.admin-revision-panel {
    border-color: rgba(0, 117, 122, 0.18);
    background:
        linear-gradient(135deg, rgba(232, 249, 250, 0.78), rgba(255, 255, 255, 0.92)),
        var(--admin-surface);
}

.admin-revision-count {
    display: inline-flex;
    min-width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(0, 117, 122, 0.1);
    color: var(--admin-accent);
    font-weight: 800;
}

.admin-revision-guidance {
    margin-bottom: 14px;
}

.admin-revision-empty {
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 18px;
    border: 1px dashed rgba(0, 117, 122, 0.2);
    border-radius: 18px;
    color: var(--admin-muted);
    text-align: center;
}

.admin-revision-empty .material-symbols-outlined {
    color: var(--admin-accent);
}

.admin-revision-list {
    display: grid;
    gap: 8px;
}

.admin-revision-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 117, 122, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--admin-text);
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.admin-revision-link:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 117, 122, 0.36);
    background: #fff;
}

.admin-revision-link span:first-child {
    display: grid;
    gap: 3px;
}

.admin-revision-link small,
.admin-revision-more {
    color: var(--admin-muted);
}

.admin-revision-more {
    margin: 10px 0 0;
    font-size: 0.88rem;
}

.admin-revision-all {
    width: 100%;
    margin-top: 12px;
}

/* Admin revisions: dense text-version ledger. */
.admin-revisions-command .admin-list-command-actions {
    grid-template-columns: 1fr;
}

body.admin-page .admin-revisions-workspace.admin-list-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
    box-shadow: var(--admin-shadow);
}

body.admin-page .admin-revisions-workspace.admin-list-workspace > * {
    min-width: 0;
}

body.admin-page .admin-revisions-workspace::before {
    display: none;
}

.admin-revisions-context-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.admin-revision-chip {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
}

.admin-revision-chip strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--admin-text);
    font-size: 0.86rem;
    line-height: 1.18;
}

.admin-revision-chip small {
    color: var(--admin-home-muted);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
}

.admin-revisions-list {
    display: grid;
    gap: 10px;
}

.admin-revision-row {
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: stretch;
    padding: 12px;
}

body.admin-page .admin-revision-row.admin-list-row {
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: none;
    overflow: visible;
    transform: none;
}

body.admin-page .admin-revision-row.admin-list-row:hover,
body.admin-page .admin-revision-row.admin-list-row:focus-within {
    border-color: rgba(0, 84, 126, 0.26);
    background: var(--admin-home-panel-strong);
    box-shadow: inset 0 0 0 1px rgba(0, 84, 126, 0.06);
    transform: none;
}

.admin-revision-row .admin-item-actions {
    align-self: start;
    justify-content: flex-end;
}

.admin-revision-row .admin-list-action {
    align-self: start;
    min-width: 118px;
    min-height: 36px;
    height: 36px;
    white-space: nowrap;
}

.admin-revision-row .admin-list-action span:not(.material-symbols-outlined) {
    overflow-wrap: normal;
}

.admin-revision-row-marker {
    width: 10px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(154, 91, 47, 0.82), rgba(154, 91, 47, 0.18));
    box-shadow: inset 0 0 0 1px rgba(154, 91, 47, 0.18);
}

.admin-revision-row.is-restore .admin-revision-row-marker {
    background:
        linear-gradient(180deg, rgba(42, 113, 141, 0.82), rgba(42, 113, 141, 0.18));
    box-shadow: inset 0 0 0 1px rgba(42, 113, 141, 0.18);
}

.admin-revision-preview-line {
    max-width: 96ch;
    margin: 8px 0 0;
    color: var(--admin-home-muted);
    font-size: 0.92rem;
    line-height: 1.48;
}

.admin-revision-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}

.admin-revision-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--admin-home-muted);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.admin-revision-meta-row .material-symbols-outlined {
    color: var(--admin-home-info);
    font-size: 16px;
}

.admin-revisions-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 4px;
}

html.admin-theme-dark body.admin-page .admin-revision-chip,
html.admin-theme-dark body.admin-page .admin-revision-meta-row span {
    border-color: var(--admin-home-line);
    background: rgba(18, 28, 36, 0.56);
}

@media (max-width: 900px) {
    .admin-revisions-context-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-revision-row {
        grid-template-columns: 8px minmax(0, 1fr);
    }

    .admin-revision-row .admin-item-actions {
        grid-column: 2;
        align-self: start;
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .admin-revisions-context-strip {
        grid-template-columns: 1fr;
    }
}

/* Admin audit: security event ledger. */
body.admin-page .admin-audit-command .admin-list-command-actions {
    align-content: start;
}

body.admin-page .admin-audit-command .admin-list-action {
    align-self: start;
    min-height: 36px;
    height: 36px;
    white-space: nowrap;
}

body.admin-page .admin-audit-command .admin-list-action span:not(.material-symbols-outlined) {
    overflow-wrap: normal;
}

body.admin-page .admin-audit-status-strip .is-date strong {
    font-size: 1rem;
}

.admin-audit-filter-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr)) auto;
    gap: 8px;
    align-items: end;
}

.admin-audit-filter-form label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.admin-audit-filter-form label > span {
    color: var(--admin-home-muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.admin-audit-filter-form input {
    min-height: 38px;
    border-radius: 8px;
}

.admin-audit-filter-form .admin-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

body.admin-page .admin-audit-workspace.admin-list-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
    box-shadow: var(--admin-shadow);
}

body.admin-page .admin-audit-workspace.admin-list-workspace > * {
    min-width: 0;
}

body.admin-page .admin-audit-workspace::before {
    display: none;
}

.admin-audit-workspace .admin-board-head {
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.admin-audit-workspace .admin-board-head h2 {
    margin-top: 3px;
    font-size: 1.08rem;
    line-height: 1.18;
}

.admin-audit-workspace .admin-board-count {
    min-width: 82px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(42, 113, 141, 0.08);
}

.admin-audit-workspace .admin-board-count strong {
    color: var(--admin-home-info);
    font-size: 1.25rem;
}

.admin-audit-list {
    display: grid;
    gap: 10px;
}

.admin-audit-row {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px;
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: none;
    transform: none;
}

body.admin-page .admin-audit-row.admin-list-row {
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: none;
    overflow: visible;
    transform: none;
}

.admin-audit-row:hover,
.admin-audit-row:focus-within,
body.admin-page .admin-audit-row.admin-list-row:hover,
body.admin-page .admin-audit-row.admin-list-row:focus-within {
    border-color: rgba(0, 84, 126, 0.26);
    background: var(--admin-home-panel-strong);
    box-shadow: inset 0 0 0 1px rgba(0, 84, 126, 0.06);
    transform: none;
}

.admin-audit-row-marker {
    width: 10px;
    min-height: 100%;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(42, 113, 141, 0.82), rgba(42, 113, 141, 0.18));
    box-shadow: inset 0 0 0 1px rgba(42, 113, 141, 0.18);
}

.admin-audit-row.is-warning .admin-audit-row-marker {
    background:
        linear-gradient(180deg, rgba(154, 91, 47, 0.82), rgba(154, 91, 47, 0.18));
    box-shadow: inset 0 0 0 1px rgba(154, 91, 47, 0.18);
}

.admin-audit-row.is-danger .admin-audit-row-marker {
    background:
        linear-gradient(180deg, rgba(170, 63, 63, 0.82), rgba(170, 63, 63, 0.18));
    box-shadow: inset 0 0 0 1px rgba(170, 63, 63, 0.18);
}

.admin-audit-row .admin-item-title-row {
    gap: 7px;
    margin-bottom: 8px;
}

.admin-audit-row code {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--admin-text);
    font-size: 0.88rem;
    font-weight: 900;
}

.admin-audit-status,
.admin-audit-method {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 8px;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1;
}

.admin-audit-status {
    background: rgba(22, 116, 95, 0.1);
    color: var(--admin-home-good);
}

.admin-audit-status.is-danger {
    background: rgba(170, 63, 63, 0.12);
    color: var(--admin-home-danger);
}

.admin-audit-method {
    background: rgba(42, 113, 141, 0.1);
    color: var(--admin-home-info);
}

.admin-audit-route {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px;
    align-items: center;
    min-width: 0;
    color: var(--admin-text);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.32;
}

.admin-audit-route .material-symbols-outlined {
    color: var(--admin-home-info);
    font-size: 18px;
}

.admin-audit-route span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-audit-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}

.admin-audit-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--admin-home-muted);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.admin-audit-meta-row .material-symbols-outlined {
    color: var(--admin-home-info);
    font-size: 16px;
}

.admin-audit-payload {
    margin-top: 9px;
}

.admin-audit-payload summary {
    width: fit-content;
}

html.admin-theme-dark body.admin-page .admin-audit-workspace.admin-list-workspace,
html.admin-theme-dark body.admin-page .admin-audit-row,
html.admin-theme-dark body.admin-page .admin-audit-meta-row span {
    border-color: var(--admin-home-line);
    background: var(--admin-home-panel);
}

@media (max-width: 1180px) {
    .admin-audit-filter-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-audit-filter-form .admin-filter-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .admin-audit-filter-form {
        grid-template-columns: 1fr;
    }
}

.admin-revision-shell {
    align-items: start;
}

body.admin-page .admin-revision-command .admin-list-command-copy {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-content: start;
}

body.admin-page .admin-revision-command .admin-list-command-copy h1 {
    margin-bottom: 4px;
}

body.admin-page .admin-revision-command .admin-hero-lead {
    max-width: 88ch;
}

body.admin-page .admin-revision-command-meta {
    grid-template-columns: repeat(3, minmax(0, max-content));
    margin-top: 2px;
}

body.admin-page .admin-revision-command-meta span {
    min-width: 0;
}

body.admin-page .admin-revision-command-meta strong {
    max-width: 28ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.admin-page .admin-revision-status-strip .admin-status-strip-item strong {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.admin-page .admin-revision-status-strip .admin-status-strip-item.is-text strong {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 0.98rem;
}

.admin-revision-preview {
    max-width: none;
    min-height: 220px;
    padding: 18px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.admin-revision-source {
    width: 100%;
    min-height: 420px;
    resize: vertical;
    font-family: "JetBrains Mono", monospace;
}

.admin-revision-diff {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
    overflow-x: auto;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.admin-revision-diff-head {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 12px 14px;
    border-bottom: 1px solid var(--admin-line);
    background: rgba(238, 248, 249, 0.96);
    color: var(--admin-muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-revision-diff-head:nth-child(2) {
    border-left: 1px solid var(--admin-line);
}

.admin-revision-diff-line {
    min-height: 32px;
    margin: 0;
    padding: 7px 14px;
    border-top: 1px solid rgba(0, 117, 122, 0.08);
    color: var(--admin-text);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.84rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.admin-revision-diff-line:nth-child(2n + 4) {
    border-left: 1px solid var(--admin-line);
}

.admin-revision-diff-line.is-same {
    color: rgba(36, 50, 60, 0.7);
}

.admin-revision-diff-line.is-added {
    background: rgba(0, 117, 122, 0.1);
    color: #075f64;
}

.admin-revision-diff-line.is-removed {
    background: rgba(226, 74, 58, 0.1);
    color: #9d2f25;
}

.admin-revision-diff-line.is-changed {
    background: rgba(237, 166, 46, 0.12);
    color: #7a4c00;
}

.admin-rail {
    position: sticky;
    top: 98px;
}

.admin-rail-panel {
    max-height: calc(100vh - 124px);
    overflow: hidden;
}

.admin-rail-panel .admin-tree {
    min-height: 0;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 102, 104, 0.34) transparent;
}

.admin-rail-panel .admin-tree::-webkit-scrollbar {
    width: 8px;
}

.admin-rail-panel .admin-tree::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(0, 102, 104, 0.28);
}

.admin-rail-panel .admin-tree::-webkit-scrollbar-track {
    background: transparent;
}

.admin-rail-panel .admin-tree:focus-visible {
    outline: 2px solid rgba(0, 102, 104, 0.28);
    outline-offset: 4px;
}

.admin-panel {
    padding: 24px;
}

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

.admin-category-manager {
    display: grid;
    gap: 18px;
}

.admin-wiki-home-planner {
    display: grid;
    gap: 18px;
}

.admin-wiki-home-head {
    align-items: flex-start;
}

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

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

.admin-wiki-impact-grid article {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--admin-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.48);
}

.admin-wiki-impact-grid .material-symbols-outlined {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(0, 102, 104, 0.1);
    color: var(--admin-accent);
}

.admin-wiki-impact-grid strong,
.admin-wiki-home-category a,
.admin-wiki-home-category strong {
    color: var(--admin-text);
    font-weight: 900;
}

.admin-wiki-impact-grid p,
.admin-wiki-home-note p,
.admin-wiki-home-group-head p,
.admin-wiki-home-category small,
.admin-wiki-home-more {
    margin: 0;
    color: var(--admin-muted);
    line-height: 1.46;
}

.admin-wiki-impact-grid p {
    margin-top: 4px;
    font-size: 0.9rem;
}

.admin-wiki-home-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px 14px;
    border: 1px solid rgba(0, 102, 104, 0.18);
    border-radius: 18px;
    background: rgba(0, 102, 104, 0.07);
}

.admin-wiki-home-note .material-symbols-outlined {
    color: var(--admin-accent);
}

.admin-wiki-home-group-create {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(190px, 1fr) minmax(110px, 0.55fr) auto;
    gap: 12px;
    align-items: end;
    padding: 16px;
    border: 1px solid var(--admin-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.54);
}

.admin-wiki-home-group-create-copy {
    grid-column: 1 / -1;
}

.admin-wiki-home-group-create h3 {
    margin: 2px 0 4px;
    color: var(--admin-text);
    font-size: 1.08rem;
}

.admin-wiki-home-group-create label,
.admin-wiki-home-group-form label {
    display: grid;
    gap: 7px;
    margin: 0;
}

.admin-wiki-home-group-create label > span,
.admin-wiki-home-group-form label > span {
    color: var(--admin-muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.admin-wiki-home-group-card {
    padding: 16px;
    border: 1px solid var(--admin-line);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.4)),
        var(--admin-surface);
}

.admin-wiki-home-group-card.is-hidden {
    opacity: 0.72;
}

.admin-wiki-home-group-head .admin-wiki-home-group-description {
    margin-top: 6px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--admin-muted);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: normal;
}

.admin-wiki-home-group-editor {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.admin-wiki-home-group-preview {
    display: grid;
    place-items: center;
    min-height: 180px;
    overflow: hidden;
    border: 1px solid var(--admin-line);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(0, 102, 104, 0.06), rgba(0, 102, 104, 0)),
        rgba(255, 255, 255, 0.58);
}

.admin-wiki-home-group-preview img {
    display: block;
    max-width: 88%;
    max-height: 150px;
    object-fit: contain;
}

.admin-wiki-home-group-preview > .material-symbols-outlined {
    color: var(--admin-accent);
    font-size: 3rem;
    opacity: 0.58;
}

.admin-wiki-home-group-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-wiki-home-group-form textarea[name="description"] {
    min-height: 82px;
    resize: vertical;
}

.admin-wiki-home-group-text-preview {
    display: grid;
    gap: 7px;
    grid-column: 1 / -1;
    padding: 12px;
    border: 1px solid rgba(0, 84, 126, 0.16);
    border-radius: 8px;
    background: rgba(246, 249, 250, 0.9);
}

.admin-wiki-home-group-text-preview-body {
    display: grid;
    gap: 8px;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.42;
}

.admin-wiki-home-group-text-preview p {
    margin: 0;
}

.admin-wiki-home-group-text-preview a {
    color: #00547e;
    font-weight: 800;
    text-decoration: none;
}

.admin-wiki-home-group-text-preview a:hover,
.admin-wiki-home-group-text-preview a:focus-visible {
    color: #111;
    background: rgba(255, 204, 0, 0.16);
    outline: none;
}

.admin-wiki-home-group-manual-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.admin-wiki-home-group-manual-preview .wiki-home-manual-entry {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px;
    align-items: start;
    margin: 0;
}

.admin-wiki-home-group-manual-preview .number {
    display: inline-flex;
    min-width: 24px;
    justify-content: center;
    padding: 1px 7px;
    background: #00547e;
    color: #fff;
    font-weight: 800;
}

.admin-wiki-home-group-text-preview small {
    color: var(--admin-muted);
    font-size: 0.78rem;
}

.admin-wiki-home-group-form .button {
    align-self: end;
    min-height: 44px;
    width: fit-content;
}

.admin-wiki-home-group-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

.admin-wiki-home-group-row > label:first-child {
    flex: 0 1 140px;
}

.admin-wiki-home-group-row .admin-checkbox-row {
    min-height: 44px;
    margin: 0;
}

.admin-wiki-create-layout-row {
    grid-column: span 2;
}

.admin-wiki-layout-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    padding: 16px;
    border: 1px solid rgba(0, 102, 104, 0.18);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(0, 102, 104, 0.08), rgba(0, 102, 104, 0)),
        rgba(255, 255, 255, 0.54);
}

.admin-wiki-layout-toolbar h3 {
    margin: 2px 0 4px;
    color: var(--admin-text);
    font-size: 1.12rem;
}

.admin-wiki-layout-save {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.admin-wiki-layout-save.is-dirty .button:not(.button-secondary) {
    box-shadow: 0 0 0 4px rgba(0, 102, 104, 0.13);
}

.admin-wiki-layout-map {
    display: grid;
    gap: 14px;
}

.admin-wiki-layout-row {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px dashed rgba(0, 102, 104, 0.24);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.34);
}

.admin-wiki-layout-row.is-empty {
    min-height: 128px;
}

.admin-wiki-layout-row-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: var(--admin-muted);
    font-size: 0.84rem;
    font-weight: 900;
}

.admin-wiki-layout-row-head strong {
    color: var(--admin-text);
    font-size: 0.94rem;
}

.admin-wiki-layout-row-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-height: 96px;
}

.admin-wiki-layout-card {
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
    min-height: 116px;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--admin-line);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
        var(--admin-surface);
    box-shadow: 0 10px 26px rgba(31, 48, 54, 0.08);
    cursor: grab;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}

.admin-wiki-layout-card:hover,
.admin-wiki-layout-card:focus-within {
    border-color: rgba(0, 102, 104, 0.34);
    box-shadow: 0 16px 34px rgba(31, 48, 54, 0.12);
}

.admin-wiki-layout-card.is-wide {
    grid-column: 1 / -1;
}

.admin-wiki-layout-card.is-hidden {
    opacity: 0.58;
}

.admin-wiki-layout-card.is-dragging {
    opacity: 0.44;
    transform: scale(0.99);
}

.admin-wiki-layout-card:active {
    cursor: grabbing;
}

.admin-wiki-layout-drag {
    position: absolute;
    top: 50%;
    left: 10px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 40px;
    color: var(--admin-muted);
    transform: translateY(-50%);
}

.admin-wiki-layout-preview {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    overflow: hidden;
    border: 1px solid var(--admin-line);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(0, 102, 104, 0.06), rgba(0, 102, 104, 0)),
        rgba(255, 255, 255, 0.62);
}

.admin-wiki-layout-preview img {
    display: block;
    max-width: 84%;
    max-height: 78px;
    object-fit: contain;
}

.admin-wiki-layout-preview > .material-symbols-outlined {
    color: var(--admin-accent);
    font-size: 2.3rem;
    opacity: 0.54;
}

.admin-wiki-layout-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.admin-wiki-layout-copy span {
    display: block;
    color: var(--admin-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-wiki-layout-copy h4 {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
    color: var(--admin-text);
    font-size: 1rem;
    line-height: 1.16;
}

.admin-wiki-layout-copy p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.admin-wiki-layout-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-wiki-layout-chips span {
    max-width: 100%;
    padding: 5px 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(0, 102, 104, 0.08);
    color: var(--admin-accent);
    font-size: 0.72rem;
    letter-spacing: 0;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.admin-wiki-layout-settings-button {
    display: inline-flex;
    justify-content: center;
    gap: 6px;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(0, 102, 104, 0.22);
    border-radius: 999px;
    background: rgba(0, 102, 104, 0.08);
    color: var(--admin-accent);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
}

.admin-wiki-layout-settings-button .material-symbols-outlined {
    font-size: 1.05rem;
}

.admin-wiki-layout-settings-button:hover,
.admin-wiki-layout-settings-button:focus-visible {
    border-color: rgba(0, 102, 104, 0.36);
    background: rgba(0, 102, 104, 0.14);
}

body.admin-settings-modal-open {
    overflow: hidden;
}

.admin-wiki-home-map[hidden] {
    display: none !important;
}

.admin-wiki-home-map[data-layout-settings-layer] {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    place-items: center;
    padding: 24px;
    overflow: auto;
    background: rgba(12, 21, 24, 0.54);
    backdrop-filter: blur(8px);
}

.admin-wiki-home-map[data-layout-settings-layer].is-open {
    display: grid;
}

.admin-wiki-home-map[data-layout-settings-layer] .admin-wiki-home-group-card {
    display: none;
    width: min(1080px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    box-shadow: 0 34px 90px rgba(14, 26, 31, 0.28);
}

.admin-wiki-home-map[data-layout-settings-layer] .admin-wiki-home-group-card.is-active {
    display: grid;
}

.admin-wiki-home-map:not([data-layout-settings-layer]) {
    display: grid;
    gap: 12px;
}

.admin-wiki-home-group {
    display: grid;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--admin-line);
}

.admin-wiki-home-group:first-child {
    padding-top: 0;
    border-top: 0;
}

.admin-wiki-home-group-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.admin-wiki-home-group-head-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    align-items: center;
}

.admin-wiki-home-group-head span {
    display: block;
    color: var(--admin-muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-wiki-home-group-head h3 {
    margin: 3px 0 0;
    color: var(--admin-text);
    font-size: 1.08rem;
    line-height: 1.2;
}

.admin-wiki-home-group-head p {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(0, 102, 104, 0.08);
    color: var(--admin-accent);
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
}

.admin-wiki-settings-close {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--admin-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--admin-text);
    cursor: pointer;
}

.admin-wiki-settings-close:hover,
.admin-wiki-settings-close:focus-visible {
    border-color: rgba(0, 102, 104, 0.32);
    color: var(--admin-accent);
}

.admin-wiki-home-category-list {
    display: grid;
    gap: 8px;
}

.admin-wiki-home-category {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    min-width: 0;
    min-height: 56px;
    padding: 10px 12px;
    border: 1px solid var(--admin-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.42);
}

.admin-wiki-home-category > div:first-child {
    min-width: 0;
}

.admin-wiki-home-category a {
    text-decoration: none;
}

.admin-wiki-home-category a:hover,
.admin-wiki-home-category a:focus-visible {
    color: var(--admin-accent);
}

.admin-wiki-home-category small {
    display: block;
    margin-top: 3px;
    font-size: 0.8rem;
    word-break: break-word;
}

.admin-wiki-home-category-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.admin-wiki-home-category-actions > span {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(0, 102, 104, 0.08);
    color: var(--admin-accent);
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.admin-wiki-home-category-actions > a {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--admin-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--admin-accent);
    text-decoration: none;
}

.admin-wiki-home-category-actions > a:hover,
.admin-wiki-home-category-actions > a:focus-visible {
    border-color: var(--admin-line-strong);
    background: rgba(0, 102, 104, 0.1);
}

.admin-wiki-home-category-actions .material-symbols-outlined {
    font-size: 1.15rem;
}

.admin-wiki-group-categories-form {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--admin-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.46);
}

.admin-wiki-group-categories-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.admin-wiki-group-categories-head h4 {
    margin: 3px 0 0;
    color: var(--admin-text);
    font-size: 1rem;
    line-height: 1.2;
}

.admin-wiki-group-categories-head .button {
    flex: 0 0 auto;
}

.admin-wiki-group-categories-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.admin-wiki-group-categories-toolbar label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.admin-wiki-group-categories-toolbar label > span {
    color: var(--admin-muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-wiki-category-pool {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px dashed var(--admin-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.34);
}

.admin-wiki-category-pool-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: end;
}

.admin-wiki-category-pool-head h5 {
    margin: 3px 0 0;
    color: var(--admin-text);
    font-size: 0.96rem;
    line-height: 1.2;
}

.admin-wiki-category-pool-head .meta {
    max-width: 360px;
    text-align: right;
}

.admin-wiki-category-pool-search {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.admin-wiki-category-pool-search .material-symbols-outlined {
    position: absolute;
    left: 12px;
    color: var(--admin-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.admin-wiki-category-pool-search input {
    width: 100%;
    min-height: 40px;
    padding-left: 38px;
}

.admin-wiki-category-pool-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
    max-height: 220px;
    overflow: auto;
    padding-right: 4px;
}

.admin-wiki-category-pool-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3px 8px;
    align-items: center;
    min-width: 0;
    min-height: 54px;
    padding: 9px 10px;
    border: 1px solid var(--admin-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--admin-text);
    text-align: left;
    cursor: pointer;
}

.admin-wiki-category-pool-item[hidden] {
    display: none;
}

.admin-wiki-category-pool-item .material-symbols-outlined {
    grid-row: span 2;
    color: var(--admin-accent);
    font-size: 1.24rem;
}

.admin-wiki-category-pool-item strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.88rem;
    line-height: 1.16;
}

.admin-wiki-category-pool-item small {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--admin-muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.admin-wiki-category-pool-item:hover,
.admin-wiki-category-pool-item:focus-visible {
    border-color: var(--admin-line-strong);
    background: rgba(0, 102, 104, 0.08);
    outline: none;
}

.admin-wiki-category-pool-item.is-dragging {
    opacity: 0.55;
}

.admin-wiki-category-pool-empty {
    margin: 0;
    padding: 9px 10px;
    border: 1px dashed var(--admin-line);
    border-radius: 12px;
    color: var(--admin-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.admin-wiki-group-categories-list {
    display: grid;
    gap: 8px;
}

.admin-wiki-group-category {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-width: 0;
    min-height: 58px;
    padding: 10px;
    border: 1px solid var(--admin-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.56);
}

.admin-wiki-group-category.is-dragging {
    opacity: 0.58;
}

.admin-wiki-group-category.is-from-pool {
    border-style: dashed;
    border-color: rgba(0, 102, 104, 0.42);
    background: rgba(0, 102, 104, 0.08);
}

.admin-wiki-group-category-drag {
    color: var(--admin-muted);
    cursor: grab;
    font-size: 1.3rem;
    user-select: none;
}

.admin-wiki-group-category-copy {
    min-width: 0;
}

.admin-wiki-group-category-copy a,
.admin-wiki-group-category-copy strong {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--admin-text);
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
}

.admin-wiki-group-category-copy a:hover,
.admin-wiki-group-category-copy a:focus-visible {
    color: var(--admin-accent);
}

.admin-wiki-group-category-copy small {
    display: block;
    margin-top: 3px;
    color: var(--admin-muted);
    font-size: 0.78rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.admin-wiki-group-category-fields {
    display: grid;
    grid-template-columns: minmax(140px, 0.55fr) minmax(220px, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.admin-wiki-group-category-fields label {
    display: grid;
    gap: 5px;
}

.admin-wiki-group-category-fields label:last-child:nth-child(3) {
    grid-column: 1 / -1;
}

.admin-wiki-group-category-fields label > span {
    color: var(--admin-muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-wiki-group-category-fields input,
.admin-wiki-group-category-fields textarea {
    min-width: 0;
    font-size: 0.86rem;
}

.admin-wiki-group-category-fields textarea {
    resize: vertical;
}

.admin-wiki-group-category-preview {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid rgba(0, 84, 126, 0.16);
    border-radius: 8px;
    background: rgba(246, 249, 250, 0.9);
}

.admin-wiki-group-category-preview-body {
    display: grid;
    gap: 6px;
    margin-top: 6px;
    color: #333;
    font-size: 0.88rem;
    line-height: 1.4;
}

.admin-wiki-group-category-preview .number {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 1px 7px;
    background: #00547e;
    color: #fff;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.admin-wiki-group-category-preview p {
    margin: 0;
}

.admin-wiki-group-category-preview .ulLink {
    margin: 0 0 0 22px;
    padding: 0;
}

.admin-wiki-group-category-preview .ulLink li {
    margin: 4px 0;
    color: #00547e;
}

.admin-wiki-group-category-preview .wiki-home-extra-link.is-nested {
    margin-left: 14px;
    list-style: circle;
    font-size: 0.84rem;
}

.admin-wiki-group-category-preview a {
    color: #00547e;
    font-weight: 800;
    text-decoration: none;
}

.admin-wiki-group-category-preview a:hover,
.admin-wiki-group-category-preview a:focus-visible {
    color: #111;
    background: rgba(255, 204, 0, 0.16);
    outline: none;
}

.admin-wiki-group-category-preview small {
    color: var(--admin-muted);
    font-size: 0.78rem;
}

.admin-wiki-group-category-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.admin-wiki-group-category-actions > span {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(0, 102, 104, 0.08);
    color: var(--admin-accent);
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.admin-wiki-group-category-actions > a,
.admin-wiki-group-category-actions > button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--admin-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--admin-accent);
    text-decoration: none;
}

.admin-wiki-group-category-actions > button {
    color: #9a3a33;
    cursor: pointer;
}

.admin-wiki-group-category-actions > a:hover,
.admin-wiki-group-category-actions > a:focus-visible,
.admin-wiki-group-category-actions > button:hover,
.admin-wiki-group-category-actions > button:focus-visible {
    border-color: var(--admin-line-strong);
    background: rgba(0, 102, 104, 0.1);
}

.admin-wiki-group-category-actions .material-symbols-outlined {
    font-size: 1.12rem;
}

.admin-wiki-group-categories-empty {
    margin: 0;
    padding: 10px 12px;
    border: 1px dashed var(--admin-line);
    border-radius: 12px;
    color: var(--admin-muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.admin-wiki-inline-category-create {
    display: grid;
    grid-template-columns: minmax(220px, 1.1fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr);
    gap: 12px;
    align-items: end;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--admin-line);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(0, 102, 104, 0.055), rgba(255, 255, 255, 0.52)),
        rgba(255, 255, 255, 0.44);
}

.admin-wiki-inline-category-create > div {
    align-self: center;
    min-width: 0;
}

.admin-wiki-inline-category-create h4 {
    margin: 3px 0 3px;
    color: var(--admin-text);
    font-size: 1rem;
    line-height: 1.2;
}

.admin-wiki-inline-category-create label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.admin-wiki-inline-category-create label > span {
    color: var(--admin-muted);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-wiki-inline-category-create textarea {
    resize: vertical;
}

.admin-wiki-inline-category-create label:nth-of-type(3),
.admin-wiki-inline-category-create label:nth-of-type(4) {
    grid-column: span 2;
}

.admin-wiki-inline-category-create .button {
    justify-self: start;
}

.admin-wiki-home-more {
    padding: 6px 2px 0;
    font-size: 0.88rem;
    font-weight: 800;
}

.admin-category-manager-summary {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    cursor: pointer;
    list-style: none;
}

.admin-category-manager-summary::-webkit-details-marker {
    display: none;
}

.admin-category-manager-summary .admin-panel-head {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.admin-category-manager-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid var(--admin-line);
    border-radius: 999px;
    background: rgba(0, 102, 104, 0.08);
    color: var(--admin-accent);
    font-weight: 800;
    white-space: nowrap;
}

.admin-category-manager-toggle .material-symbols-outlined {
    transition: transform 0.22s ease;
}

.admin-category-toggle-label-close,
.admin-category-manager-collapsible[open] .admin-category-toggle-label-open {
    display: none;
}

.admin-category-manager-collapsible[open] .admin-category-toggle-label-close {
    display: inline;
}

.admin-category-manager-collapsible[open] .admin-category-manager-toggle .material-symbols-outlined {
    transform: rotate(180deg);
}

.admin-category-manager-body {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.admin-category-create,
.admin-category-card,
.admin-category-delete {
    border: 1px solid var(--admin-line);
    border-radius: 22px;
}

.admin-category-create {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(260px, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
}

.admin-category-create label,
.admin-category-form label,
.admin-category-delete label {
    display: grid;
    gap: 7px;
    margin: 0;
}

.admin-category-create label > span,
.admin-category-form label > span,
.admin-category-delete label > span {
    color: var(--admin-muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.admin-field-hint {
    color: var(--admin-muted);
    font-size: 0.78rem;
    line-height: 1.38;
}

.admin-category-create .button {
    min-height: 48px;
    white-space: nowrap;
}

.admin-category-manager-details {
    display: grid;
    gap: 14px;
}

.admin-category-manager-details > summary {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    width: fit-content;
    min-width: min(100%, 360px);
    padding: 12px 14px;
    border: 1px solid var(--admin-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.52);
    color: var(--admin-text);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.admin-category-manager-details > summary::-webkit-details-marker {
    display: none;
}

.admin-category-manager-details > summary strong {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    min-height: 28px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 102, 104, 0.11);
    color: var(--admin-accent);
    font-size: 0.86rem;
}

.admin-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.admin-category-manager-details .admin-category-grid {
    margin-top: 14px;
}

.admin-category-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.42)),
        var(--admin-surface);
}

.admin-category-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.admin-category-card-head strong,
.admin-category-card-head small {
    display: block;
}

.admin-category-card-head strong {
    color: var(--admin-text);
    font-size: 1.02rem;
    line-height: 1.18;
}

.admin-category-card-head small {
    margin-top: 4px;
    color: var(--admin-muted);
    font-size: 0.82rem;
    word-break: break-word;
}

.admin-category-card-head > span {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(0, 102, 104, 0.09);
    color: var(--admin-accent);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.admin-category-form {
    display: grid;
    gap: 10px;
}

.admin-category-form .button,
.admin-category-delete .button {
    width: fit-content;
}

.admin-category-danger {
    padding-top: 10px;
    border-top: 1px solid var(--admin-line);
}

.admin-category-danger > summary {
    width: fit-content;
    color: #b3422f;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 800;
}

.admin-category-delete {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    padding: 12px;
    background: var(--danger-bg);
}

.admin-category-delete p {
    margin: 0;
    color: var(--admin-text);
    font-size: 0.92rem;
    line-height: 1.48;
}

.admin-category-delete code {
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(122, 39, 24, 0.09);
    color: #8b2e1f;
}

.admin-wiki-category-page,
.admin-wiki-group-manager,
.admin-wiki-category-create-panel,
.admin-wiki-category-list-panel {
    overflow: hidden;
    border-radius: 8px;
}

.admin-wiki-category-page.admin-list-filter {
    display: grid;
    gap: 12px;
    padding: 14px 16px;
}

.admin-wiki-category-page-head {
    margin-bottom: 0;
}

.admin-wiki-category-page-head .meta {
    margin-top: 6px;
}

.admin-wiki-group-manager {
    display: grid;
    gap: 16px;
}

.admin-wiki-group-manager-head {
    align-items: center;
    margin-bottom: 0;
}

.admin-wiki-group-create {
    display: grid;
    grid-template-columns: minmax(220px, 0.46fr) minmax(280px, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: rgba(0, 102, 104, 0.055);
}

.admin-wiki-group-create label,
.admin-wiki-group-rename label,
.admin-wiki-group-assign label {
    display: grid;
    gap: 7px;
    min-width: 0;
    margin: 0;
}

.admin-wiki-group-create label > span,
.admin-wiki-group-rename label > span,
.admin-wiki-group-assign label > span {
    color: var(--admin-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.admin-wiki-group-create select,
.admin-wiki-group-assign select {
    min-height: 122px;
}

.admin-wiki-group-create .admin-manual-action {
    white-space: nowrap;
}

.admin-wiki-group-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
    align-items: start;
}

.admin-wiki-group-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.46)),
        var(--admin-surface);
}

.admin-wiki-group-card.is-system {
    background:
        linear-gradient(180deg, rgba(0, 102, 104, 0.08), rgba(255, 255, 255, 0.38)),
        var(--admin-surface);
}

.admin-wiki-group-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.admin-wiki-group-card-head strong {
    display: block;
    color: var(--admin-text);
    font-size: 1.02rem;
    line-height: 1.26;
}

.admin-wiki-group-card-head p,
.admin-wiki-group-system-note {
    margin: 4px 0 0;
    color: var(--admin-muted);
    font-size: 0.86rem;
    line-height: 1.42;
}

.admin-wiki-group-card-head .admin-list-action {
    flex: 0 0 auto;
    padding-inline: 12px;
    white-space: nowrap;
}

.admin-wiki-group-rename {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.admin-wiki-group-rename .admin-manual-action,
.admin-wiki-group-assign .admin-manual-action {
    white-space: nowrap;
}

.admin-wiki-group-details,
.admin-wiki-group-danger {
    padding-top: 10px;
    border-top: 1px dashed var(--admin-line);
}

.admin-wiki-group-details > summary,
.admin-wiki-group-danger > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 800;
    list-style: none;
}

.admin-wiki-group-details > summary {
    color: var(--admin-accent);
}

.admin-wiki-group-danger > summary {
    color: #b3422f;
}

.admin-wiki-group-details > summary::-webkit-details-marker,
.admin-wiki-group-danger > summary::-webkit-details-marker {
    display: none;
}

.admin-wiki-group-details .material-symbols-outlined,
.admin-wiki-group-danger .material-symbols-outlined {
    font-size: 1.05rem;
}

.admin-wiki-group-assign,
.admin-wiki-group-delete {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: end;
    margin-top: 10px;
}

.admin-wiki-group-delete {
    border-radius: 8px;
}

.admin-wiki-group-delete p {
    align-self: center;
}

.admin-wiki-category-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(210px, 280px) auto auto;
    gap: 12px;
    align-items: end;
}

.admin-wiki-category-filter {
    display: grid;
    gap: 7px;
    margin: 0;
}

.admin-wiki-category-filter > span,
.admin-wiki-category-url > span,
.admin-wiki-category-row-form label > span {
    color: var(--admin-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-wiki-category-toolbar .admin-list-action {
    white-space: nowrap;
}

.admin-wiki-category-create {
    grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px) auto;
    border-radius: 8px;
}

.admin-wiki-category-list-head {
    align-items: center;
    margin-bottom: 16px;
}

.admin-wiki-category-result-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid rgba(0, 102, 104, 0.18);
    border-radius: 8px;
    background: rgba(0, 102, 104, 0.08);
    color: var(--admin-accent);
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.admin-wiki-category-list {
    display: grid;
    gap: 10px;
}

.admin-wiki-category-row {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.48)),
        var(--admin-surface);
}

.admin-wiki-category-row-form {
    display: grid;
    grid-template-columns: 42px minmax(210px, 1.2fr) minmax(160px, 0.72fr) minmax(190px, 0.9fr) minmax(88px, 0.38fr) minmax(126px, 0.54fr) auto;
    gap: 10px;
    align-items: end;
}

.admin-wiki-category-row-form label,
.admin-wiki-category-url,
.admin-wiki-category-count {
    display: grid;
    gap: 6px;
    min-width: 0;
    margin: 0;
}

.admin-wiki-category-row-index {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
}

.admin-wiki-category-row-index span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(0, 102, 104, 0.09);
    color: var(--admin-accent);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-wiki-category-url code,
.admin-wiki-category-url a,
.admin-wiki-category-count a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-wiki-category-url code {
    display: block;
    max-width: 100%;
    padding: 7px 9px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--admin-text);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
}

.admin-wiki-category-url a,
.admin-wiki-category-count a {
    color: var(--admin-accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.admin-wiki-category-count span {
    display: inline-flex;
    width: fit-content;
    min-height: 34px;
    align-items: center;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(0, 102, 104, 0.09);
    color: var(--admin-accent);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.admin-wiki-category-actions {
    display: flex;
    justify-content: flex-end;
}

.admin-wiki-category-actions .admin-manual-action {
    white-space: nowrap;
}

.admin-wiki-category-danger {
    border-top: 1px dashed var(--admin-line);
    padding-top: 8px;
}

.admin-wiki-category-danger > summary {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    color: #b3422f;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 800;
    list-style: none;
}

.admin-wiki-category-danger > summary::-webkit-details-marker {
    display: none;
}

.admin-wiki-category-danger .material-symbols-outlined {
    font-size: 1.05rem;
}

.admin-wiki-category-delete {
    grid-template-columns: minmax(220px, 1fr) minmax(240px, 0.85fr) auto;
    align-items: end;
    border-radius: 8px;
}

.admin-wiki-category-delete p {
    align-self: center;
}

@media (max-width: 1280px) {
    .admin-wiki-category-row-form {
        grid-template-columns: 42px minmax(240px, 1fr) minmax(180px, 0.8fr) minmax(180px, 0.82fr);
    }

    .admin-wiki-category-sort-field,
    .admin-wiki-category-count,
    .admin-wiki-category-actions {
        grid-column: auto;
    }
}

@media (max-width: 980px) {
    .admin-wiki-category-toolbar,
    .admin-wiki-group-create,
    .admin-wiki-group-rename,
    .admin-wiki-group-assign,
    .admin-wiki-group-delete,
    .admin-wiki-category-create,
    .admin-wiki-category-delete {
        grid-template-columns: 1fr;
    }

    .admin-wiki-category-toolbar .admin-list-action,
    .admin-wiki-group-create .admin-manual-action,
    .admin-wiki-group-rename .admin-manual-action,
    .admin-wiki-group-assign .admin-manual-action,
    .admin-wiki-group-delete .admin-manual-action,
    .admin-wiki-category-create .admin-manual-action,
    .admin-wiki-category-delete .admin-manual-action {
        width: 100%;
        justify-content: center;
    }

    .admin-wiki-category-list-head {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-wiki-category-result-count {
        width: fit-content;
    }

    .admin-wiki-group-list {
        grid-template-columns: 1fr;
    }

    .admin-wiki-group-card-head {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-wiki-group-card-head .admin-list-action {
        width: 100%;
        justify-content: center;
    }

    .admin-wiki-category-row-form {
        grid-template-columns: 38px 1fr;
    }

    .admin-wiki-category-row-form label,
    .admin-wiki-category-url,
    .admin-wiki-category-count,
    .admin-wiki-category-actions {
        grid-column: 2;
    }

    .admin-wiki-category-row-index {
        grid-row: 1 / span 6;
        align-items: flex-start;
        padding-top: 20px;
    }

    .admin-wiki-category-actions {
        justify-content: stretch;
    }

    .admin-wiki-category-actions .admin-manual-action {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .admin-wiki-category-row {
        padding: 10px;
        border-radius: 8px;
    }

    .admin-wiki-category-row-form {
        grid-template-columns: 1fr;
    }

    .admin-wiki-category-row-index,
    .admin-wiki-category-row-form label,
    .admin-wiki-category-url,
    .admin-wiki-category-count,
    .admin-wiki-category-actions {
        grid-column: auto;
    }

    .admin-wiki-category-row-index {
        justify-content: flex-start;
        min-height: auto;
        padding-top: 0;
    }

    .admin-wiki-category-url a {
        white-space: normal;
        word-break: break-word;
    }
}

@media (max-width: 900px) {
    .admin-wiki-home-head,
    .admin-category-manager-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-wiki-home-actions {
        justify-content: stretch;
    }

    .admin-wiki-home-actions .button {
        flex: 1 1 220px;
        justify-content: center;
    }

    .admin-wiki-impact-grid {
        grid-template-columns: 1fr;
    }

    .admin-wiki-layout-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-wiki-layout-save {
        justify-content: stretch;
    }

    .admin-wiki-layout-save .button {
        flex: 1 1 190px;
        justify-content: center;
    }

    .admin-wiki-layout-row-grid {
        grid-template-columns: 1fr;
    }

    .admin-wiki-layout-card,
    .admin-wiki-layout-card.is-wide {
        grid-column: auto;
    }

    .admin-wiki-home-map[data-layout-settings-layer] {
        align-items: stretch;
        padding: 12px;
    }

    .admin-wiki-home-map[data-layout-settings-layer] .admin-wiki-home-group-card {
        width: 100%;
        max-height: calc(100vh - 24px);
    }

    .admin-wiki-home-group-create,
    .admin-wiki-home-group-editor,
    .admin-wiki-home-group-form {
        grid-template-columns: 1fr;
    }

    .admin-wiki-home-group-manual-preview {
        grid-template-columns: 1fr;
    }

    .admin-wiki-home-group-create .button,
    .admin-wiki-home-group-form .button {
        width: 100%;
        justify-content: center;
    }

    .admin-wiki-home-group-head,
    .admin-wiki-home-category {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-wiki-group-categories-head {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-wiki-category-pool-head {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-wiki-category-pool-head .meta {
        max-width: none;
        text-align: left;
    }

    .admin-wiki-group-categories-head .button {
        width: 100%;
        justify-content: center;
    }

    .admin-wiki-group-categories-toolbar,
    .admin-wiki-inline-category-create,
    .admin-wiki-group-category {
        grid-template-columns: 1fr;
    }

    .admin-wiki-inline-category-create label:nth-of-type(3),
    .admin-wiki-inline-category-create label:nth-of-type(4) {
        grid-column: auto;
    }

    .admin-wiki-group-category-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .admin-wiki-home-group-head-actions {
        justify-content: space-between;
        width: 100%;
    }

    .admin-wiki-home-group-head p,
    .admin-wiki-home-category-actions {
        width: fit-content;
    }

    .admin-category-manager-toggle {
        width: 100%;
    }

    .admin-files-search-form {
        grid-template-columns: 1fr;
    }

    .admin-category-create {
        grid-template-columns: 1fr;
    }

    .admin-files-search-form .button,
    .admin-wiki-inline-category-create .button,
    .admin-category-create .button,
    .admin-category-form .button,
    .admin-category-delete .button,
    .admin-category-manager-details > summary {
        width: 100%;
        justify-content: center;
    }
}

.admin-rail-panel,
.admin-board,
.admin-editor-main,
.admin-editor-side {
    display: grid;
    gap: 18px;
}

.admin-board-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}

.admin-board-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-context-create {
    min-height: 42px;
    padding-inline: 16px;
    white-space: nowrap;
}

.admin-board-count {
    display: inline-grid;
    place-items: center;
    min-width: 104px;
    padding: 12px 16px;
    border-radius: 20px;
    background: rgba(0, 102, 104, 0.08);
    color: var(--admin-accent);
}

.admin-board-count strong {
    font: 700 1.6rem/1 "Space Grotesk", sans-serif;
}

.software-admin-panel {
    display: grid;
    gap: 18px;
}

.software-admin-groups {
    display: grid;
    gap: 16px;
}

.software-admin-group {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--admin-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.48);
}

.software-admin-group-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.software-admin-group-head .material-symbols-outlined {
    color: var(--admin-accent);
}

.software-admin-group-head h3 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.18rem;
}

.software-admin-file-list {
    display: grid;
    gap: 10px;
}

.software-admin-file {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--admin-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.software-admin-file-main {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.software-admin-file-main strong {
    overflow-wrap: anywhere;
}

.software-admin-hash {
    overflow-wrap: anywhere;
    color: var(--admin-muted);
    font-size: 0.78rem;
}

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

.software-sync-dashboard {
    display: contents;
}

.software-sync-status {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(0, 102, 104, 0.16);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(237, 249, 250, 0.92), rgba(255, 255, 255, 0.86)),
        radial-gradient(circle at 94% 16%, rgba(0, 150, 153, 0.14), transparent 28%);
    box-shadow: 0 24px 58px -42px rgba(0, 58, 88, 0.28);
}

.software-sync-status[hidden] {
    display: none;
}

.software-sync-status.is-running {
    border-color: rgba(0, 102, 104, 0.24);
}

.software-sync-status.is-success {
    border-color: rgba(29, 106, 68, 0.2);
    background:
        linear-gradient(135deg, rgba(232, 248, 239, 0.94), rgba(255, 255, 255, 0.86)),
        radial-gradient(circle at 94% 16%, rgba(29, 106, 68, 0.12), transparent 28%);
}

.software-sync-status.is-error {
    border-color: rgba(179, 71, 71, 0.26);
    background:
        linear-gradient(135deg, rgba(255, 241, 236, 0.96), rgba(255, 255, 255, 0.86)),
        radial-gradient(circle at 94% 16%, rgba(179, 71, 71, 0.12), transparent 28%);
}

.software-sync-status-head,
.software-sync-meta,
.software-sync-file-log article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.software-sync-status-head h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
}

.software-sync-status p {
    margin: 0;
    color: var(--admin-muted);
    line-height: 1.5;
}

.software-sync-progress {
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: rgba(0, 84, 126, 0.11);
}

.software-sync-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #009699, #00547e);
    transition: width 0.28s ease;
}

.software-sync-meta strong {
    color: var(--admin-accent);
    font-family: "JetBrains Mono", Consolas, monospace;
}

.software-sync-meta span {
    min-width: 0;
    color: var(--admin-muted);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
    text-align: right;
}

.software-sync-file-log {
    display: grid;
    gap: 8px;
}

.software-sync-file-log:empty {
    display: none;
}

.software-sync-file-log article {
    padding: 9px 11px;
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
}

.software-sync-file-log strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
}

.software-sync-file-log span {
    color: var(--admin-accent);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.84rem;
}

/* Admin software console: operational mirror control without the legacy hero/button skin. */
body.admin-page .admin-software-command.section,
body.admin-page .admin-software-status-strip.section {
    margin: 14px 0;
}

.admin-software-command-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-content: start;
    padding: 12px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
    box-shadow: var(--admin-shadow);
}

.admin-software-command-actions .admin-inline-form {
    display: flex;
    min-width: 0;
}

body.admin-page .admin-software-command-actions .admin-manual-action,
body.admin-page .admin-software-command-actions .admin-list-action {
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

body.admin-page .admin-software-status-strip .admin-status-strip-item {
    cursor: default;
}

body.admin-page .admin-software-status-strip .admin-status-strip-item:hover,
body.admin-page .admin-software-status-strip .admin-status-strip-item:focus-visible {
    background: transparent;
    box-shadow: none;
}

.admin-software-workspace {
    display: grid;
    grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.admin-software-rail,
.admin-software-main {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.admin-software-release-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
    box-shadow: var(--admin-shadow);
}

.admin-software-release-card > .material-symbols-outlined {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(0, 84, 126, 0.14);
    border-radius: 8px;
    background: rgba(230, 243, 248, 0.76);
    color: var(--admin-accent-dark);
    font-size: 21px;
}

.admin-software-release-card strong {
    display: block;
    min-width: 0;
    margin: 2px 0 4px;
    color: var(--admin-text);
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.admin-software-release-card small {
    display: block;
    min-width: 0;
    color: var(--admin-home-muted);
    font-size: 0.8rem;
    line-height: 1.42;
}

.admin-software-release-card.is-good > .material-symbols-outlined {
    border-color: rgba(22, 116, 95, 0.16);
    background: rgba(22, 116, 95, 0.1);
    color: var(--admin-home-good);
}

.admin-software-release-card.is-warning > .material-symbols-outlined {
    border-color: rgba(154, 91, 24, 0.16);
    background: rgba(154, 91, 24, 0.1);
    color: var(--admin-home-warning);
}

.admin-software-panel {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
    box-shadow: var(--admin-shadow);
}

.admin-software-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.admin-software-panel-head h2 {
    margin: 3px 0 4px;
    color: var(--admin-text);
    font: 700 1.2rem/1.12 "Space Grotesk", "Segoe UI", sans-serif;
    letter-spacing: 0;
}

.admin-software-panel-head p:not(.admin-kicker) {
    max-width: 68ch;
    margin: 0;
    color: var(--admin-home-muted);
    font-size: 0.86rem;
    line-height: 1.42;
}

body.admin-page .admin-software-console .software-admin-groups {
    gap: 10px;
}

body.admin-page .admin-software-console .software-admin-group {
    gap: 10px;
    padding: 10px;
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
    box-shadow: none;
}

body.admin-page .admin-software-console .software-admin-group-head {
    gap: 8px;
    min-width: 0;
}

body.admin-page .admin-software-console .software-admin-group-head .material-symbols-outlined {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(0, 84, 126, 0.14);
    border-radius: 8px;
    background: rgba(230, 243, 248, 0.76);
    color: var(--admin-accent-dark);
    font-size: 19px;
}

body.admin-page .admin-software-console .software-admin-group-head h3 {
    min-width: 0;
    color: var(--admin-text);
    font: 800 0.98rem/1.15 "Segoe UI", system-ui, sans-serif;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

body.admin-page .admin-software-console .software-admin-file-list {
    gap: 8px;
}

body.admin-page .admin-software-console .software-admin-file {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 11px;
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: none;
}

body.admin-page .admin-software-console .software-admin-file-main {
    gap: 6px;
}

body.admin-page .admin-software-console .software-admin-file-main strong {
    font-size: 0.94rem;
    line-height: 1.24;
}

body.admin-page .admin-software-console .software-admin-hash {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding: 4px 6px;
    border: 1px solid var(--admin-home-line);
    border-radius: 6px;
    background: var(--admin-home-panel-soft);
    color: var(--admin-home-muted);
    font-size: 0.72rem;
    line-height: 1.3;
}

body.admin-page .admin-software-console .software-admin-file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

body.admin-page .admin-software-console .software-admin-file-actions .admin-inline-form {
    display: flex;
    flex: 0 0 auto;
    min-width: 0;
}

body.admin-page .admin-software-console .software-admin-file-actions .admin-manual-action,
body.admin-page .admin-software-console .software-admin-file-actions .admin-list-action {
    min-width: 126px;
}

body.admin-page .admin-software-sync-panel {
    gap: 10px;
    padding: 14px 16px;
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
    box-shadow: var(--admin-shadow);
}

body.admin-page .admin-software-sync-panel.is-running {
    border-color: rgba(42, 113, 141, 0.28);
    background: rgba(244, 250, 252, 0.92);
}

body.admin-page .admin-software-sync-panel.is-success {
    border-color: rgba(22, 116, 95, 0.2);
    background: rgba(241, 250, 246, 0.94);
}

body.admin-page .admin-software-sync-panel.is-error {
    border-color: rgba(170, 63, 63, 0.24);
    background: rgba(255, 246, 244, 0.94);
}

body.admin-page .admin-software-sync-panel .software-sync-status-head h2 {
    font-size: 1.12rem;
    line-height: 1.14;
}

body.admin-page .admin-software-sync-panel .software-sync-progress {
    height: 8px;
    border-radius: 8px;
    background: rgba(0, 84, 126, 0.09);
}

body.admin-page .admin-software-sync-panel .software-sync-progress span {
    background: linear-gradient(90deg, var(--admin-home-info), var(--admin-accent-dark));
}

body.admin-page .admin-software-sync-panel .software-sync-file-log article {
    padding: 8px 10px;
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
}

body.admin-page .admin-manual-action.is-loading .material-symbols-outlined:first-child {
    animation: admin-software-spin 0.8s linear infinite;
}

@media (max-width: 860px) {
    .admin-software-workspace {
        grid-template-columns: 1fr;
    }

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

    body.admin-page .admin-software-console .software-admin-file {
        grid-template-columns: 1fr;
    }

    body.admin-page .admin-software-console .software-admin-file-actions {
        justify-content: stretch;
        width: 100%;
    }

    body.admin-page .admin-software-console .software-admin-file-actions .admin-inline-form,
    body.admin-page .admin-software-console .software-admin-file-actions .admin-manual-action,
    body.admin-page .admin-software-console .software-admin-file-actions .admin-list-action {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .admin-software-command-actions,
    .admin-software-rail {
        grid-template-columns: 1fr;
    }

    .admin-software-panel-head {
        display: grid;
        grid-template-columns: 1fr;
    }
}

.legacy-video-refresh-dashboard {
    display: grid;
    gap: 14px;
}

.legacy-video-refresh-status {
    margin: 0;
}

.legacy-video-refresh-counters {
    display: grid;
    grid-template-columns: repeat(5, minmax(92px, 1fr));
    gap: 10px;
}

.legacy-video-refresh-counters article {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
}

.legacy-video-refresh-counters span {
    color: var(--admin-muted);
    font-size: 0.78rem;
}

.legacy-video-refresh-counters strong {
    color: var(--admin-accent);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 1rem;
}

body.admin-page .button.is-loading .material-symbols-outlined:first-child {
    animation: admin-software-spin 0.8s linear infinite;
}

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

.product-sync-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.product-sync-card {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 16px;
    border: 1px solid var(--admin-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.66);
}

.product-sync-card strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
}

.product-sync-card p {
    margin: 0;
    color: var(--admin-muted);
    line-height: 1.5;
}

.product-sync-log {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.product-sync-log article {
    display: grid;
    grid-template-columns: minmax(110px, auto) auto minmax(0, 1fr) minmax(180px, auto);
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--admin-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
}

.product-sync-log p {
    grid-column: 1 / -1;
    margin: 0;
    color: #9b2c2c;
}

.product-sync-log small[data-sync-time] {
    color: var(--admin-muted);
    text-align: right;
}

.product-admin-card {
    grid-template-columns: 92px minmax(0, 1fr) auto;
}

.product-admin-media {
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 16px;
    background: rgba(221, 237, 241, 0.84);
    color: var(--admin-accent);
}

.product-admin-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.product-photo-editor-shell {
    align-items: start;
}

.product-photo-main-panel,
.product-photo-upload-panel {
    display: grid;
    gap: 18px;
}

.product-photo-hero-preview {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.product-photo-hero-preview > img,
.product-photo-empty {
    width: 100%;
    min-height: 280px;
    border: 1px solid var(--admin-line);
    border-radius: 22px;
    background: rgba(221, 237, 241, 0.62);
}

.product-photo-hero-preview > img {
    object-fit: contain;
    padding: 18px;
}

.product-photo-empty {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: var(--admin-muted);
    text-align: center;
}

.product-photo-empty .material-symbols-outlined {
    color: var(--admin-accent);
    font-size: 2.6rem;
}

.product-photo-product-facts {
    display: grid;
    gap: 10px;
    margin: 0;
}

.product-photo-product-facts div {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--admin-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
}

.product-photo-product-facts dt {
    color: var(--admin-muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-photo-product-facts dd {
    margin: 0;
    color: var(--admin-text);
    font-weight: 900;
}

.product-photo-note,
.product-photo-help p {
    margin: 12px 0 0;
    color: var(--admin-muted);
    line-height: 1.5;
}

.product-photo-upload-form {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.product-photo-upload-card {
    margin: 0;
}

.product-photo-upload-fields {
    display: grid;
    gap: 12px;
    align-content: end;
}

.product-photo-upload-fields label,
.product-photo-card-form label {
    display: grid;
    gap: 7px;
    margin: 0;
}

.product-photo-upload-fields label > span,
.product-photo-card-form label > span {
    color: var(--admin-muted);
    font-size: 0.84rem;
    font-weight: 900;
}

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

.product-photo-card {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 14px;
    border: 1px solid var(--admin-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.66);
}

.product-photo-card.is-main {
    border-color: rgba(0, 102, 104, 0.32);
    box-shadow: inset 0 0 0 1px rgba(0, 102, 104, 0.08);
}

.product-photo-thumb {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--admin-line);
    border-radius: 16px;
    background: rgba(221, 237, 241, 0.62);
}

.product-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.product-photo-thumb > .material-symbols-outlined {
    color: var(--admin-muted);
    font-size: 2.4rem;
}

.product-photo-main-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(0, 102, 104, 0.92);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 900;
}

.product-photo-card-form {
    display: grid;
    gap: 10px;
}

.product-photo-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    min-width: 0;
    color: var(--admin-muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.product-photo-card-meta > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-photo-card-meta a {
    color: var(--admin-accent);
    text-decoration: none;
}

.product-photo-card-meta .admin-product-photo-open-action {
    flex: 0 0 auto;
    max-width: 100%;
}

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

.product-photo-card-actions form {
    display: contents;
}

.product-photo-card-actions .button,
.product-photo-card-actions .admin-manual-action {
    min-height: 40px;
}

.product-photo-help {
    display: grid;
    gap: 10px;
}

.product-photo-help p {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--admin-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.46);
}

.product-resource-panel {
    display: grid;
    gap: 18px;
}

.product-resource-upload-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--admin-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.5);
}

.product-resource-upload-form label {
    display: grid;
    gap: 7px;
    margin: 0;
}

.product-resource-upload-form label > span {
    color: var(--admin-muted);
    font-size: 0.84rem;
    font-weight: 900;
}

.product-resource-upload-form small,
.product-resource-body small {
    color: var(--admin-muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

.product-resource-manual-upload {
    border: 1px dashed var(--admin-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.34);
}

.product-resource-manual-upload summary {
    cursor: pointer;
    padding: 12px 14px;
    color: var(--admin-muted);
    font-size: 0.88rem;
    font-weight: 900;
}

.product-resource-manual-upload .product-resource-upload-form {
    margin: 0 14px 14px;
}

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

.product-resource-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--admin-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.66);
}

.product-resource-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(221, 237, 241, 0.74);
    color: var(--admin-accent);
}

.product-resource-body {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.product-resource-body strong {
    color: var(--admin-text);
    font-weight: 900;
}

.product-resource-body code {
    overflow-wrap: anywhere;
    color: var(--admin-muted);
    font-size: 0.86rem;
}

.product-resource-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.product-resource-actions form {
    display: contents;
}

.product-resource-actions .button,
.product-resource-actions .admin-list-action,
.product-resource-actions .admin-manual-action {
    min-height: 38px;
}

.product-resource-empty {
    margin: 0;
}

.legacy-products-panel form {
    margin-bottom: 16px;
}

.legacy-linked-products {
    display: grid;
    gap: 8px;
}

.legacy-linked-product {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 70px;
    padding: 8px;
    border: 1px solid var(--admin-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.62);
}

.legacy-linked-product > img,
.legacy-linked-product > .material-symbols-outlined {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(221, 237, 241, 0.84);
    color: var(--admin-accent);
    object-fit: contain;
}

.legacy-linked-product > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 8px;
    align-items: center;
    min-width: 0;
}

.legacy-linked-product strong {
    display: -webkit-box;
    min-width: 0;
    color: var(--admin-text);
    font-size: 0.95rem;
    line-height: 1.15;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.legacy-linked-product small {
    display: -webkit-box;
    grid-column: 1;
    color: var(--admin-muted);
    font-size: 0.82rem;
    line-height: 1.25;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.legacy-linked-product .admin-inline-form {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1 / span 2;
    gap: 5px;
    align-self: center;
    justify-content: flex-end;
}

.legacy-linked-product .button {
    display: inline-grid;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    place-items: center;
    padding: 0;
    border-radius: 8px;
}

.legacy-linked-product .button .material-symbols-outlined {
    font-size: 1.1rem;
}

.legacy-linked-product .button span:not(.material-symbols-outlined) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.admin-tree-link,
.admin-item-card,
.admin-source-panel,
.admin-side-panel {
    border: 1px solid var(--admin-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
}

.admin-tree-link {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--admin-text);
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.admin-tree-link:hover,
.admin-tree-link.active {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 102, 104, 0.22);
}

.admin-tree-group {
    display: grid;
    gap: 10px;
}

.admin-tree-group + .admin-tree-group {
    padding-top: 8px;
    border-top: 1px solid var(--admin-line);
}

.admin-tree-group-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    padding: 4px 4px 2px;
    color: var(--admin-text);
}

.admin-tree-group-head .material-symbols-outlined {
    color: var(--admin-accent);
}

.admin-tree-group-head strong,
.admin-tree-group-head small {
    display: block;
}

.admin-tree-group-head small {
    margin-top: 2px;
    color: var(--admin-muted);
    font-size: 0.78rem;
}

.admin-item-list {
    display: grid;
    gap: 14px;
}

.admin-item-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.admin-item-card:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 102, 104, 0.2);
    background: rgba(255, 255, 255, 0.88);
}

.admin-item-main {
    min-width: 0;
}

.admin-item-title-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.admin-item-title-link {
    color: var(--admin-text);
    font-weight: 700;
    font-size: 1.03rem;
    text-decoration: none;
}

.admin-item-title-link:hover {
    color: var(--admin-accent);
}

.admin-item-actions,
.admin-edit-actions,
.admin-toolbar-actions,
.admin-status-pair,
.admin-sticky-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.admin-breadcrumbs a:hover {
    color: var(--admin-accent);
}

.admin-item-excerpt {
    margin: 10px 0 0;
    line-height: 1.6;
}

.admin-legacy-lesson-main {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.admin-legacy-lesson-thumb {
    display: grid;
    place-items: center;
    width: 104px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--admin-line);
    border-radius: 18px;
    background: rgba(0, 102, 104, 0.08);
    color: var(--admin-accent);
}

.admin-legacy-lesson-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-legacy-lesson-thumb .material-symbols-outlined {
    font-size: 34px;
}

.admin-legacy-lesson-copy {
    min-width: 0;
}

.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 18px;
}

.admin-pagination-current {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--admin-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--admin-muted);
    font-weight: 700;
}

.admin-empty-state {
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 48px 24px;
    border: 1px dashed rgba(0, 102, 104, 0.24);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.44);
    text-align: center;
}

.admin-empty-state .material-symbols-outlined {
    font-size: 42px;
    color: var(--admin-accent);
}

.legacy-editorial-panel {
    padding: 24px;
}

.legacy-editorial-list {
    display: grid;
    gap: 18px;
}

.legacy-editorial-card {
    display: grid;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--admin-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
}

.legacy-editorial-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

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

.legacy-editorial-column {
    padding: 16px;
    border: 1px solid var(--admin-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.58);
}

.legacy-editorial-column.is-proposal {
    border-color: rgba(0, 102, 104, 0.26);
    background: rgba(0, 129, 132, 0.07);
}

.legacy-editorial-column h3,
.legacy-editorial-extra h3 {
    margin: 0 0 12px;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--admin-muted);
}

.legacy-editorial-column dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.legacy-editorial-column dt {
    color: var(--admin-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.legacy-editorial-column dd {
    margin: 0 0 8px;
    color: var(--admin-text);
    line-height: 1.62;
}

.legacy-editorial-warning {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(176, 95, 0, 0.25);
    border-radius: 16px;
    background: rgba(255, 245, 219, 0.84);
    color: #6d4300;
}

.legacy-editorial-warning .material-symbols-outlined {
    margin-top: 1px;
}

.legacy-editorial-warning strong,
.legacy-editorial-warning p {
    display: block;
    margin: 0;
}

.legacy-editorial-warning p {
    margin-top: 4px;
    line-height: 1.5;
}

.legacy-editorial-extra {
    display: grid;
    gap: 14px;
}

.legacy-editorial-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.legacy-editorial-tags span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(0, 129, 132, 0.1);
    color: var(--admin-text);
    font-size: 0.84rem;
    font-weight: 600;
}

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

.legacy-lesson-editor-shell .legacy-markdown-editor .visual-editor,
.legacy-lesson-editor-shell .legacy-markdown-editor .editor-source {
    height: auto;
    min-height: 520px;
    max-height: none;
    overflow-y: visible;
    scroll-padding: 28px;
    overscroll-behavior: auto;
}

.legacy-lesson-editor-shell .legacy-markdown-editor .editor-source {
    overflow-y: hidden;
    resize: none;
}

.legacy-html-editor span {
    color: var(--admin-muted);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legacy-html-editor textarea {
    min-height: 640px;
    font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
    font-size: 0.92rem;
    line-height: 1.58;
}

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

.admin-char-counter {
    margin-top: 6px;
    color: var(--admin-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: right;
}

.admin-char-counter.is-warning {
    color: #9a6a16;
}

.admin-char-counter.is-limit {
    color: #a83434;
}

.admin-form-span-full {
    grid-column: 1 / -1;
}

.legacy-publication-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 10px 16px;
    align-items: end;
    padding: 13px 14px;
    border: 1px solid rgba(0, 102, 104, 0.14);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(0, 102, 104, 0.045), rgba(255, 255, 255, 0.42)),
        rgba(248, 252, 253, 0.78);
}

.legacy-public-url-summary {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 0;
    min-width: 0;
}

.legacy-publication-status {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
}

.legacy-publication-status select {
    width: 100%;
}

.legacy-public-url-summary span,
.legacy-publication-status span {
    color: var(--admin-muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legacy-public-url-summary code {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 7px 10px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(0, 102, 104, 0.1);
    color: var(--admin-accent);
    font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legacy-public-url-summary small {
    color: var(--admin-muted);
    line-height: 1.45;
}

.legacy-publication-note {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--admin-muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.legacy-publication-note .material-symbols-outlined {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--admin-accent);
    font-size: 1rem;
}

.admin-field-label {
    display: block;
    margin-bottom: 8px;
    color: var(--admin-text);
    font-weight: 800;
}

.admin-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--admin-muted);
    font-weight: 700;
}

.admin-checkbox-row input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    padding: 0;
}

.admin-checkbox-row span {
    margin: 0;
}

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

.admin-source-panel {
    display: block;
    padding: 18px 20px;
}

.admin-source-panel textarea,
.admin-side-list strong,
.admin-side-list a,
.admin-side-list dd {
    overflow-wrap: anywhere;
    word-break: normal;
}

.admin-side-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.admin-side-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
    align-items: center;
    min-height: 0;
    padding: 10px 0;
    border: 0;
    border-top: 1px solid var(--admin-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.admin-side-list > div:first-child {
    border-top: 0;
    padding-top: 0;
}

.admin-side-list > div:last-child {
    padding-bottom: 0;
}

.admin-side-list span,
.admin-side-list dt {
    display: block;
    margin-bottom: 0;
    color: var(--admin-muted);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.admin-side-list strong,
.admin-side-list a,
.admin-side-list dd {
    display: -webkit-box;
    min-width: 0;
    margin: 0;
    color: var(--admin-text);
    text-decoration: none;
    font-weight: 760;
    line-height: 1.32;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.admin-side-list a {
    color: var(--admin-accent);
}

.admin-side-list a:hover {
    color: var(--admin-accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.admin-side-list small {
    display: -webkit-box;
    grid-column: 1;
    color: var(--admin-muted);
    font-size: 0.82rem;
    line-height: 1.25;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.admin-side-list .admin-inline-form,
.admin-side-list > div > .button {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
}

.admin-side-list .admin-inline-form {
    display: inline-flex;
    gap: 5px;
    justify-content: flex-end;
}

.admin-side-list .button {
    display: inline-grid;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    place-items: center;
    padding: 0;
    border-radius: 8px;
}

.admin-side-list .button .material-symbols-outlined {
    font-size: 1.1rem;
}

.admin-side-list .button span:not(.material-symbols-outlined) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 560px) {
    body.admin-page .legacy-linked-product {
        grid-template-columns: 44px minmax(0, 1fr);
        min-height: 64px;
        gap: 8px;
        padding: 7px;
    }

    body.admin-page .legacy-linked-product > img,
    body.admin-page .legacy-linked-product > .material-symbols-outlined {
        width: 44px;
        height: 44px;
    }

    body.admin-page .legacy-linked-product .button,
    body.admin-page .admin-side-list .button {
        width: 32px;
        min-width: 32px;
        height: 32px;
        min-height: 32px;
    }

    body.admin-page .admin-side-list > div {
        padding: 8px 0;
    }
}

.admin-relation-panel {
    position: relative;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}

.admin-relation-panel.is-relation-loading {
    border-color: rgba(0, 102, 104, 0.3);
    box-shadow: 0 0 0 4px rgba(0, 102, 104, 0.09);
}

.admin-relation-panel.is-relation-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.3) 42%, transparent 72%);
    animation: adminRelationSweep 1.1s linear infinite;
}

.admin-relation-panel.is-relation-success {
    border-color: rgba(12, 148, 112, 0.46);
    box-shadow: 0 0 0 4px rgba(12, 148, 112, 0.12);
}

.admin-relation-panel.is-relation-error {
    border-color: rgba(190, 45, 45, 0.52);
    box-shadow: 0 0 0 4px rgba(190, 45, 45, 0.12);
}

.admin-video-workbench {
    position: relative;
    display: flex;
    flex-direction: column;
}

.admin-video-workbench > .admin-list-command {
    order: 1;
}

.admin-video-workbench > .alert {
    order: 2;
}

.admin-video-workbench > .admin-status-strip {
    order: 3;
}

.admin-video-dynamic-region {
    order: 4;
    display: grid;
    gap: 14px;
}

.admin-videos-refresh-panel {
    order: 5;
    padding: 12px 14px;
}

.admin-video-hero {
    align-items: center;
}

.admin-video-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 12px;
}

.admin-video-stats article,
.admin-video-detail-grid article {
    display: grid;
    gap: 5px;
    padding: 13px 14px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.admin-video-stats article.is-warning {
    border-color: rgba(191, 91, 45, 0.26);
    background: rgba(255, 241, 226, 0.78);
}

.admin-video-stats span,
.admin-video-detail-grid span {
    color: var(--admin-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.admin-video-stats strong,
.admin-video-detail-grid strong {
    color: var(--admin-text);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 1.25rem;
}

.admin-video-refresh {
    display: grid;
    gap: 10px;
}

.admin-video-refresh-form {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    padding: 12px 14px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
}

.admin-video-refresh-console {
    display: grid;
    align-content: center;
    gap: 8px;
    min-width: 0;
}

.admin-video-refresh-copy {
    display: grid;
    align-content: center;
    gap: 5px;
    min-width: 0;
}

.admin-video-refresh-form h2 {
    max-width: none;
    margin: 0;
    color: var(--admin-text);
    font-size: 1.1rem;
    line-height: 1.14;
}

.admin-video-refresh-options {
    display: grid;
    grid-row: 1 / span 2;
    grid-template-columns: 1fr;
    gap: 6px;
    align-content: center;
    align-items: center;
    min-width: 0;
    padding: 4px 10px 4px 2px;
    border-right: 1px solid rgba(0, 102, 104, 0.12);
}

.admin-video-refresh-options-title {
    min-width: 0;
    overflow: hidden;
    color: var(--admin-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.05;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.admin-video-refresh-limit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 6px;
    align-items: center;
    min-width: 0;
}

.admin-video-refresh-limit span {
    min-width: 0;
    overflow: hidden;
    color: var(--admin-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.1;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.admin-video-refresh-limit select {
    width: 100%;
    height: 34px;
    min-height: 34px;
    padding: 0 18px 0 9px;
    border-radius: 8px;
    line-height: 34px;
}

.admin-video-refresh-force {
    gap: 5px;
    min-height: 32px;
    padding: 0 6px;
    border: 1px solid rgba(0, 102, 104, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    font-size: 0.8rem;
}

.admin-video-refresh-force input {
    width: 16px;
    height: 16px;
}

.admin-video-refresh-force span {
    min-width: 0;
    overflow: hidden;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-video-refresh-actions {
    display: grid;
    grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
    align-content: center;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
    padding: 4px;
    border: 1px solid var(--admin-manual-action-rail-border);
    border-radius: 8px;
    background: var(--admin-manual-action-rail-bg);
    box-shadow: var(--admin-manual-action-rail-shadow);
}

.admin-video-refresh-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(218px, 236px);
    gap: 8px;
    align-items: center;
    min-width: 0;
    min-height: 44px;
    padding: 5px 6px;
    border: 1px solid rgba(154, 91, 47, 0.075);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
}

body.admin-page .admin-video-refresh-actions .admin-manual-action {
    gap: 8px;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 36px;
    min-height: 36px;
    padding-inline: 10px;
}

.admin-video-refresh-form p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 0.86rem;
    line-height: 1.32;
}

.admin-video-refresh-facts {
    color: #3f6173 !important;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.82rem !important;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1.2 !important;
}

.admin-inline-warning {
    margin-top: 8px !important;
    color: #a65b19 !important;
    font-weight: 700;
}

.admin-video-toolbar {
    position: static;
    top: auto;
    z-index: auto;
    backdrop-filter: none;
}

.admin-video-view-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.admin-video-view-toggle .admin-list-action.is-active {
    border-color: rgba(0, 84, 126, 0.28);
    background: rgba(230, 243, 248, 0.92);
    color: var(--admin-accent-dark);
}

.admin-video-filter-chips .chip {
    gap: 6px;
}

.admin-video-filter-chips .material-symbols-outlined {
    font-size: 1rem;
}

.admin-video-filter-chips strong {
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.75rem;
}

.admin-video-search-form {
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 220px) minmax(120px, 150px) auto auto;
}

.admin-video-results {
    display: grid;
    gap: 16px;
}

.admin-video-results.admin-list-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
}

.admin-video-results.admin-list-workspace > * {
    min-width: 0;
}

.admin-video-table-scroll {
    overflow-x: auto;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
}

.admin-video-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    table-layout: fixed;
}

.admin-video-table th:nth-child(1) {
    width: 34%;
}

.admin-video-table th:nth-child(2) {
    width: 9%;
}

.admin-video-table th:nth-child(3) {
    width: 8%;
}

.admin-video-table th:nth-child(4) {
    width: 18%;
}

.admin-video-table th:nth-child(5) {
    width: 11%;
}

.admin-video-table th:nth-child(6) {
    width: 20%;
}

.admin-video-table th,
.admin-video-table td {
    padding: 10px 11px;
    border-bottom: 1px solid var(--admin-line);
    text-align: left;
    vertical-align: middle;
}

.admin-video-table th {
    color: var(--admin-muted);
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.admin-video-table tbody tr:hover {
    background: rgba(0, 102, 104, 0.045);
}

.admin-video-table-row {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.52);
}

.admin-video-table-row:focus-visible {
    outline: 2px solid rgba(0, 102, 104, 0.38);
    outline-offset: -2px;
    background: rgba(0, 102, 104, 0.055);
}

.admin-video-table-title {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
}

.admin-video-table-title strong {
    display: -webkit-box;
    color: var(--admin-text);
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.24;
}

.admin-video-table-title small {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 5px;
    color: var(--admin-muted);
}

.admin-video-mini-thumb {
    display: grid;
    width: 72px;
    aspect-ratio: 16 / 9;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(0, 102, 104, 0.08);
    color: var(--admin-accent);
}

.admin-video-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-video-provider {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(0, 102, 104, 0.1);
    color: var(--admin-accent);
    font-weight: 800;
}

.admin-video-row-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-end;
    min-width: 0;
}

.admin-video-row-actions .admin-video-icon-action,
.admin-video-row-menu > summary {
    position: relative;
    display: inline-grid;
    width: 36px;
    min-width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border-radius: 8px;
}

.admin-video-row-actions .admin-video-icon-action > span:not(.material-symbols-outlined) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.admin-video-row-actions .material-symbols-outlined {
    font-size: 1.15rem;
}

.admin-video-row-actions .admin-video-icon-action .material-symbols-outlined {
    width: auto;
    min-width: 0;
    height: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.admin-video-usage-summary {
    display: block;
    color: var(--admin-text);
    font-weight: 800;
}

.admin-video-usage-compact {
    display: block;
    margin-top: 4px;
    max-width: 260px;
    color: var(--admin-muted);
    line-height: 1.35;
}

.admin-video-row-menu {
    position: relative;
}

.admin-video-row-menu > summary {
    border: 1px solid var(--admin-line);
    background: rgba(255, 255, 255, 0.86);
    color: var(--admin-accent);
    list-style: none;
    cursor: pointer;
}

.admin-video-row-menu > summary::-webkit-details-marker {
    display: none;
}

.admin-video-row-menu[open] > summary {
    border-color: rgba(0, 102, 104, 0.28);
    background: rgba(0, 102, 104, 0.1);
}

.admin-video-row-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 8;
    display: grid;
    gap: 4px;
    width: 220px;
    padding: 8px;
    border: 1px solid var(--admin-line);
    border-radius: 10px;
    background: var(--admin-surface);
    box-shadow: 0 18px 48px rgba(0, 30, 36, 0.18);
}

.admin-video-row-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--admin-text);
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.admin-video-row-menu-item:hover,
.admin-video-row-menu-item:focus-visible {
    background: rgba(0, 102, 104, 0.08);
    color: var(--admin-accent);
}

.admin-video-row-actions form,
.admin-video-detail-actions form,
.admin-video-card-actions form {
    margin: 0;
}

.admin-video-toast-region {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 70;
    display: grid;
    gap: 8px;
    width: min(360px, calc(100vw - 28px));
    pointer-events: none;
}

.admin-video-toast {
    transform: translateY(8px);
    opacity: 0;
    padding: 12px 14px;
    border: 1px solid rgba(0, 102, 104, 0.2);
    border-radius: 8px;
    background: rgba(246, 255, 252, 0.96);
    color: var(--admin-text);
    box-shadow: 0 16px 40px rgba(0, 35, 40, 0.18);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.admin-video-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.admin-video-toast.is-error {
    border-color: rgba(177, 54, 54, 0.24);
    background: rgba(255, 245, 245, 0.96);
    color: #8f2c2c;
}

.admin-video-drawer[hidden] {
    display: none;
}

.admin-video-drawer {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    justify-items: end;
}

body.admin-page .admin-video-drawer-backdrop {
    position: absolute;
    inset: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    appearance: none;
    cursor: pointer;
}

body.admin-page .admin-video-drawer-backdrop:hover,
body.admin-page .admin-video-drawer-backdrop:focus,
body.admin-page .admin-video-drawer-backdrop:focus-visible,
body.admin-page .admin-video-drawer-backdrop:active {
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
}

.admin-video-drawer-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(620px, calc(100vw - 26px));
    height: 100%;
    border-left: 1px solid rgba(0, 102, 104, 0.16);
    background: rgba(249, 253, 255, 0.98);
    box-shadow: -18px 0 42px rgba(0, 30, 36, 0.16);
}

.admin-video-drawer-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid var(--admin-line);
}

.admin-video-drawer-head h2 {
    margin: 4px 0 0;
    color: var(--admin-text);
}

.admin-video-drawer-content {
    display: grid;
    align-content: start;
    gap: 14px;
    overflow: auto;
    padding: 16px 18px 18px;
}

.admin-video-detail-loading {
    padding: 28px;
    border: 1px dashed var(--admin-line);
    border-radius: 10px;
    color: var(--admin-muted);
    text-align: center;
}

.admin-video-detail-overview {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

.admin-video-detail-thumb {
    display: grid;
    aspect-ratio: 16 / 10;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(0, 102, 104, 0.1);
    border-radius: 10px;
    background: rgba(0, 102, 104, 0.08);
    color: var(--admin-accent);
}

.admin-video-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-video-detail-thumb .material-symbols-outlined {
    font-size: 2rem;
}

.admin-video-detail-overview.has-no-thumb {
    grid-template-columns: minmax(0, 1fr);
}

.admin-video-detail-overview.has-no-thumb .admin-video-detail-thumb {
    display: none;
}

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

.admin-video-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-video-detail-actions .admin-list-action,
.admin-video-detail-actions .admin-manual-action,
.admin-video-card-actions .admin-list-action,
.admin-video-card-actions .admin-manual-action,
.admin-video-copy-row .admin-list-action {
    min-height: 36px;
}

.admin-video-detail-section {
    display: grid;
    gap: 8px;
}

.admin-video-detail-section h3 {
    margin: 0;
    color: var(--admin-text);
}

.admin-video-detail-code {
    display: grid;
    gap: 10px;
}

.admin-video-detail-code textarea {
    width: 100%;
    min-height: 140px;
    resize: vertical;
}

.admin-video-detail-technical {
    padding: 12px;
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 10px;
    background: rgba(244, 250, 252, 0.72);
}

.admin-video-detail-technical .admin-video-detail-code {
    margin-top: 10px;
}

.admin-video-drawer-panel {
    width: min(600px, calc(100vw - 26px));
    background: rgba(250, 253, 255, 0.985);
    box-shadow: -14px 0 34px rgba(0, 30, 36, 0.13);
}

.admin-video-drawer-head {
    align-items: flex-start;
    padding: 14px 16px;
}

.admin-video-drawer-head h2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 1.2rem;
    line-height: 1.14;
}

body.admin-page .admin-video-drawer-close {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
}

body.admin-page .admin-video-drawer-close span:not(.material-symbols-outlined) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.admin-video-drawer-content {
    gap: 10px;
    padding: 12px 14px 16px;
}

.admin-video-detail-passport {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.admin-video-detail-passport.has-no-thumb {
    grid-template-columns: minmax(0, 1fr);
}

.admin-video-detail-passport.has-no-thumb .admin-video-detail-media {
    display: none;
}

.admin-video-detail-media,
.admin-video-detail-main {
    min-width: 0;
}

.admin-video-detail-passport .admin-video-detail-thumb {
    width: 128px;
    max-width: 128px;
    height: 78px;
    aspect-ratio: auto;
    border-radius: 8px;
}

.admin-video-detail-ledger {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
}

.admin-video-detail-ledger div {
    display: grid;
    align-content: center;
    min-width: 0;
    min-height: 36px;
    padding: 7px 9px;
    border: 1px solid rgba(0, 102, 104, 0.09);
    border-radius: 8px;
    background: rgba(244, 250, 252, 0.76);
}

.admin-video-detail-ledger dt {
    overflow: hidden;
    margin: 0 0 3px;
    color: var(--admin-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-video-detail-ledger dd {
    min-width: 0;
    margin: 0;
    color: var(--admin-text);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.admin-video-detail-action-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 8px;
    border: 1px solid rgba(0, 102, 104, 0.1);
    border-radius: 8px;
    background: rgba(244, 250, 252, 0.64);
}

.admin-video-detail-action-rail form,
.admin-video-detail-action-rail .admin-list-action,
.admin-video-detail-action-rail .admin-manual-action {
    min-width: 0;
    width: 100%;
}

.admin-video-detail-action-rail .admin-list-action,
.admin-video-detail-action-rail .admin-manual-action {
    justify-content: flex-start;
}

.admin-video-detail-section {
    padding: 10px;
    border: 1px solid rgba(0, 102, 104, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.66);
}

.admin-video-detail-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.admin-video-detail-section-head .material-symbols-outlined {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(0, 102, 104, 0.08);
    color: var(--admin-accent);
    font-size: 1rem;
}

.admin-video-detail-section-head h3 {
    min-width: 0;
    font-size: 1rem;
    line-height: 1.2;
}

.admin-video-detail-usage .admin-video-usage-list {
    max-height: 136px;
    overflow: auto;
    padding-right: 2px;
}

.admin-video-detail-preview {
    padding: 0;
    overflow: hidden;
}

.admin-video-detail-preview > summary {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    padding: 9px 10px;
    color: var(--admin-text);
    cursor: pointer;
    list-style: none;
}

.admin-video-detail-preview > summary::-webkit-details-marker {
    display: none;
}

.admin-video-detail-preview > summary > .material-symbols-outlined {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(0, 102, 104, 0.08);
    color: var(--admin-accent);
    font-size: 1rem;
}

.admin-video-detail-preview > summary > span:not(.material-symbols-outlined) {
    min-width: 0;
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-video-detail-preview > summary small {
    color: var(--admin-muted);
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.admin-video-detail-preview[open] > summary {
    border-bottom: 1px solid rgba(0, 102, 104, 0.1);
}

.admin-video-detail-preview-body {
    padding: 10px;
}

.admin-video-detail-preview .admin-video-preview {
    padding: 10px;
    border-radius: 8px;
}

.admin-video-detail-preview .admin-video-preview iframe,
.admin-video-detail-preview .admin-video-preview video {
    max-width: none;
    border-radius: 8px;
}

.admin-video-detail-technical {
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
}

.admin-video-detail-technical summary {
    min-height: 38px;
    padding: 9px 10px;
}

.admin-video-detail-technical .admin-video-detail-code {
    margin-top: 0;
    padding: 0 10px 10px;
    border-top: 1px solid rgba(0, 102, 104, 0.1);
}

.admin-video-grid {
    display: grid;
    gap: 14px;
}

.admin-video-card {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--admin-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.68);
}

.admin-video-card-media {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(221, 237, 241, 0.82);
    color: var(--admin-accent);
}

.admin-video-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-video-card-media .material-symbols-outlined {
    font-size: 2.1rem;
}

.admin-video-card-body {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.admin-video-card-body h3 {
    margin: 0;
    color: var(--admin-text);
    font-size: 1rem;
    line-height: 1.25;
}

.admin-video-copy-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-video-copy-row code,
.admin-video-picker-item code,
.admin-relation-picker-item code {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 7px 10px;
    overflow-wrap: anywhere;
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 12px;
    background: rgba(0, 102, 104, 0.08);
    color: var(--admin-accent);
    font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
    font-weight: 800;
}

.admin-video-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    min-width: 166px;
}

.admin-video-preview,
.admin-video-technical {
    grid-column: 1 / -1;
}

.admin-video-preview {
    padding: 14px;
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 16px;
    background: rgba(244, 250, 252, 0.78);
}

.admin-video-preview iframe,
.admin-video-preview video {
    display: block;
    width: 100%;
    max-width: 820px;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 14px;
    background: #000;
}

.admin-video-technical {
    padding-top: 2px;
}

.admin-video-technical summary,
.admin-video-usage summary {
    cursor: pointer;
    color: var(--admin-accent);
    font-weight: 800;
}

.admin-video-technical textarea {
    width: 100%;
    margin-top: 10px;
    min-height: 120px;
    resize: vertical;
    font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
    font-size: 0.82rem;
}

.admin-video-usage-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.admin-video-usage-breakdown {
    margin: 6px 0 0;
    color: var(--admin-muted);
    font-size: 0.82rem;
}

.admin-video-usage-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 4px 6px;
    border-radius: 999px;
    background: rgba(0, 102, 104, 0.06);
}

.admin-video-usage-item em {
    color: var(--admin-muted);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.admin-video-usage-list a,
.admin-video-usage-list strong {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(0, 102, 104, 0.08);
    color: var(--admin-accent);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.admin-video-usage-list strong {
    color: var(--admin-text);
}

.admin-video-picker {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    justify-items: end;
}

.admin-video-picker[hidden] {
    display: none;
}

.admin-video-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 30, 38, 0.36);
    backdrop-filter: blur(4px);
}

.admin-video-picker-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: 14px;
    width: min(680px, calc(100vw - 28px));
    height: calc(100vh - 28px);
    margin: 14px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--admin-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 30px 90px rgba(3, 22, 34, 0.26);
}

.admin-video-picker-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
}

.admin-video-picker-head h2 {
    margin: 4px 0 0;
    color: var(--admin-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.4rem;
}

.admin-video-picker-search {
    position: relative;
    display: block;
}

.admin-video-picker-search .material-symbols-outlined {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--admin-muted);
}

.admin-video-picker-search input {
    width: 100%;
    padding-left: 48px;
}

.admin-video-picker-status {
    min-height: 20px;
    color: var(--admin-muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.admin-video-picker-status[data-state="error"] {
    color: #a83434;
}

.admin-video-picker-results {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}

.admin-video-picker-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--admin-line);
    border-radius: 16px;
    background: rgba(244, 250, 252, 0.7);
}

.admin-video-picker-thumb {
    display: grid;
    place-items: center;
    width: 112px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(221, 237, 241, 0.82);
    color: var(--admin-accent);
}

.admin-video-picker-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-video-picker-item-main {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.admin-video-picker-item-main strong {
    overflow-wrap: anywhere;
    color: var(--admin-text);
    line-height: 1.25;
}

.admin-video-picker-item-main small {
    color: var(--admin-muted);
}

.admin-video-picker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.admin-video-picker-empty {
    padding: 24px;
    border: 1px dashed var(--admin-line);
    border-radius: 16px;
    color: var(--admin-muted);
    text-align: center;
    font-weight: 800;
}

body.admin-relation-picker-open {
    overflow: hidden;
}

.admin-relation-picker {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    justify-items: end;
}

.admin-relation-picker[hidden] {
    display: none;
}

.admin-relation-picker-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(12, 30, 38, 0.32);
    backdrop-filter: blur(4px);
}

.admin-relation-picker-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: 12px;
    width: min(660px, calc(100vw - 28px));
    height: calc(100vh - 28px);
    margin: 14px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 84, 126, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(3, 22, 34, 0.22);
}

.admin-relation-picker-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.admin-relation-picker-title {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
    min-width: 0;
}

.admin-relation-picker-title > .material-symbols-outlined {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0, 84, 126, 0.12);
    border-radius: 8px;
    background: rgba(0, 84, 126, 0.06);
    color: var(--admin-accent);
    font-size: 1.25rem;
}

.admin-relation-picker-title h2 {
    margin: 3px 0 0;
    color: var(--admin-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.24rem;
    letter-spacing: 0;
    line-height: 1.15;
}

.admin-relation-picker-title small {
    display: block;
    margin-top: 5px;
    color: var(--admin-muted);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.35;
}

.admin-relation-picker-search {
    position: relative;
    display: block;
}

.admin-relation-picker-search .material-symbols-outlined {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--admin-muted);
    font-size: 1.25rem;
}

.admin-relation-picker-search input {
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    min-height: 40px;
    padding: 0 12px 0 44px;
    border-color: rgba(0, 84, 126, 0.16);
    border-radius: 8px;
    background: rgba(244, 250, 252, 0.72);
    line-height: 40px;
}

.admin-relation-picker-status {
    min-height: 20px;
    color: var(--admin-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.admin-relation-picker-status[data-state="success"] {
    color: #16715d;
}

.admin-relation-picker-status[data-state="error"] {
    color: #a83434;
}

.admin-relation-picker-results {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}

.admin-relation-picker-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 9px;
    border: 1px solid rgba(0, 84, 126, 0.12);
    border-radius: 8px;
    background: rgba(248, 252, 253, 0.88);
}

.admin-relation-picker-thumb {
    display: grid;
    place-items: center;
    width: 76px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid rgba(0, 84, 126, 0.08);
    border-radius: 8px;
    background: rgba(221, 237, 241, 0.7);
    color: var(--admin-accent);
}

.admin-relation-picker-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-relation-picker-thumb .material-symbols-outlined {
    font-size: 1.7rem;
}

.admin-relation-picker-item-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-relation-picker-item-main strong {
    color: var(--admin-text);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.admin-relation-picker-item-main small,
.admin-relation-picker-item-main p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.admin-relation-picker-item-main code {
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 0.76rem;
}

.admin-relation-picker-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    min-width: 0;
}

.admin-relation-picker-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid rgba(0, 84, 126, 0.1);
    border-radius: 8px;
    background: rgba(0, 84, 126, 0.045);
    color: var(--admin-muted);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.admin-relation-picker-empty {
    padding: 22px;
    border: 1px dashed rgba(0, 84, 126, 0.18);
    border-radius: 8px;
    color: var(--admin-muted);
    text-align: center;
    font-weight: 800;
}

@media (max-width: 980px) {
    .admin-video-refresh-form {
        grid-template-columns: 1fr;
    }

    .admin-video-refresh-actions {
        grid-template-columns: 1fr;
    }

    .admin-video-refresh-options {
        grid-row: auto;
        grid-template-columns: auto minmax(190px, 220px) minmax(150px, 1fr);
        padding: 2px 2px 8px;
        border-right: 0;
        border-bottom: 1px solid rgba(0, 102, 104, 0.12);
    }
}

@media (min-width: 981px) and (max-width: 1180px) {
    .admin-video-refresh-form {
        grid-template-columns: minmax(200px, 220px) minmax(0, 1fr);
        gap: 10px;
    }

    .admin-video-refresh-actions {
        grid-template-columns: minmax(170px, 176px) minmax(0, 1fr);
        gap: 6px;
    }

    .admin-video-refresh-action-row {
        grid-template-columns: minmax(0, 1fr) minmax(232px, 240px);
    }

    body.admin-page .admin-video-refresh-actions .admin-manual-action {
        gap: 6px;
        height: 34px;
        min-height: 34px;
        padding-inline: 8px;
    }
}

@media (max-width: 900px) {
    .admin-video-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-video-refresh-form,
    .admin-video-search-form {
        grid-template-columns: 1fr;
    }

    .admin-video-toolbar {
        position: static;
    }

    .admin-video-view-toggle {
        justify-content: flex-start;
    }

    .admin-video-table {
        min-width: 860px;
    }

    .admin-video-row-actions {
        gap: 4px;
    }

    .admin-video-row-actions .admin-video-icon-action,
    .admin-video-row-menu > summary {
        width: 32px;
        min-width: 32px;
        height: 32px;
        min-height: 32px;
    }

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

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

    .admin-video-card-actions {
        justify-content: flex-start;
        min-width: 0;
    }

    .admin-video-card-media {
        max-width: 360px;
    }

    .admin-video-picker-panel {
        width: calc(100vw - 16px);
        height: calc(100vh - 16px);
        margin: 8px;
        border-radius: 18px;
    }

    .admin-video-picker-item {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .admin-video-picker-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .admin-video-picker-thumb {
        width: 92px;
    }

    .admin-relation-picker-panel {
        width: calc(100vw - 16px);
        height: calc(100vh - 16px);
        margin: 8px;
    }

    .admin-relation-picker-item {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .admin-relation-picker-thumb {
        width: 64px;
    }

    .admin-relation-picker-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .admin-video-table {
        min-width: 860px;
    }

    .admin-video-row-actions {
        gap: 4px;
    }

    .admin-video-row-actions .admin-video-icon-action,
    .admin-video-row-menu > summary {
        width: 32px;
        min-width: 32px;
        height: 32px;
        min-height: 32px;
    }
}

@media (max-width: 560px) {
    .admin-video-stats,
    .admin-video-detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-video-table-scroll {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .admin-video-table {
        display: block;
        min-width: 0;
    }

    .admin-video-table thead {
        display: none;
    }

    .admin-video-table tbody {
        display: grid;
        gap: 12px;
    }

    .admin-video-table tr,
    .admin-video-table td {
        display: block;
        width: 100%;
    }

    .admin-video-table-row {
        padding: 10px;
        border: 1px solid var(--admin-line);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.86);
    }

    .admin-video-table th,
    .admin-video-table td {
        padding: 7px 0;
        border-bottom: 0;
    }

    .admin-video-table-title {
        grid-template-columns: 86px minmax(0, 1fr);
        min-width: 0;
    }

    .admin-video-mini-thumb {
        width: 86px;
    }

    .admin-video-row-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        min-width: 0;
        padding-top: 4px;
    }

    .admin-video-row-menu-panel {
        right: auto;
        left: 0;
    }

    .admin-video-detail-overview {
        grid-template-columns: 1fr;
    }

    .admin-video-detail-passport,
    .admin-video-detail-ledger,
    .admin-video-detail-action-rail {
        grid-template-columns: 1fr;
    }

    .admin-video-detail-thumb {
        width: min(220px, 100%);
    }

    .admin-video-detail-passport .admin-video-detail-thumb {
        width: min(220px, 100%);
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .admin-video-drawer-panel {
        width: 100vw;
    }

    .admin-video-drawer-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-video-picker-item {
        grid-template-columns: 1fr;
    }

    .admin-video-picker-thumb {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .admin-video-refresh-actions {
        grid-template-columns: 1fr;
    }

    .admin-video-refresh-options,
    .admin-video-refresh-action-row {
        grid-template-columns: 1fr;
    }

    .admin-video-refresh-options {
        padding: 2px 2px 8px;
        border-right: 0;
        border-bottom: 1px solid rgba(0, 102, 104, 0.12);
    }

    .admin-video-refresh-options-title {
        white-space: normal;
    }

    body.admin-page .admin-video-refresh-actions .admin-manual-action {
        justify-content: center;
        width: 100%;
    }
}

html.admin-theme-dark body.admin-page .admin-video-card,
html.admin-theme-dark body.admin-page .admin-video-stats article,
html.admin-theme-dark body.admin-page .admin-video-refresh-form,
html.admin-theme-dark body.admin-page .admin-video-table-scroll,
html.admin-theme-dark body.admin-page .admin-video-row-menu-panel,
html.admin-theme-dark body.admin-page .admin-video-drawer-panel,
html.admin-theme-dark body.admin-page .admin-video-detail-grid article,
html.admin-theme-dark body.admin-page .admin-video-picker-panel,
html.admin-theme-dark body.admin-page .admin-video-picker-item,
html.admin-theme-dark body.admin-page .admin-relation-picker-panel,
html.admin-theme-dark body.admin-page .admin-relation-picker-item {
    background: rgba(12, 22, 27, 0.88);
}

html.admin-theme-dark body.admin-page .admin-video-card-media,
html.admin-theme-dark body.admin-page .admin-video-mini-thumb,
html.admin-theme-dark body.admin-page .admin-video-detail-thumb,
html.admin-theme-dark body.admin-page .admin-video-picker-thumb,
html.admin-theme-dark body.admin-page .admin-relation-picker-thumb,
html.admin-theme-dark body.admin-page .admin-video-preview {
    background: rgba(22, 44, 52, 0.78);
}

html.admin-theme-dark body.admin-page .admin-video-refresh-force,
html.admin-theme-dark body.admin-page .admin-video-refresh-action-row {
    border-color: rgba(123, 213, 239, 0.13);
    background: rgba(17, 30, 38, 0.68);
}

html.admin-theme-dark body.admin-page .admin-video-refresh-options {
    border-color: rgba(123, 213, 239, 0.13);
}

html.admin-theme-dark body.admin-page .admin-video-refresh-facts {
    color: #bfd8e4 !important;
}

html.admin-theme-dark body.admin-page .admin-video-copy-row code,
html.admin-theme-dark body.admin-page .admin-video-provider,
html.admin-theme-dark body.admin-page .admin-video-row-menu > summary,
html.admin-theme-dark body.admin-page .admin-video-picker-item code,
html.admin-theme-dark body.admin-page .admin-relation-picker-item code,
html.admin-theme-dark body.admin-page .admin-relation-picker-badge,
html.admin-theme-dark body.admin-page .admin-video-usage-item,
html.admin-theme-dark body.admin-page .admin-video-usage-list a,
html.admin-theme-dark body.admin-page .admin-video-usage-list strong {
    background: rgba(80, 201, 210, 0.12);
}

html.admin-theme-dark body.admin-page .admin-relation-picker-search input {
    border-color: rgba(123, 213, 239, 0.16);
    background: rgba(22, 44, 52, 0.72);
}

html.admin-theme-dark body.admin-page .admin-video-table tbody tr:hover {
    background: rgba(80, 201, 210, 0.08);
}

html.admin-theme-dark body.admin-page .admin-video-detail-passport,
html.admin-theme-dark body.admin-page .admin-video-detail-action-rail,
html.admin-theme-dark body.admin-page .admin-video-detail-section,
html.admin-theme-dark body.admin-page .admin-video-detail-technical {
    border-color: rgba(123, 213, 239, 0.14);
    background: rgba(17, 30, 38, 0.74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

html.admin-theme-dark body.admin-page .admin-video-detail-ledger div {
    border-color: rgba(123, 213, 239, 0.11);
    background: rgba(22, 44, 52, 0.62);
}

html.admin-theme-dark body.admin-page .admin-video-detail-section-head .material-symbols-outlined,
html.admin-theme-dark body.admin-page .admin-video-detail-preview > summary > .material-symbols-outlined {
    background: rgba(80, 201, 210, 0.12);
    color: #aee8f0;
}

html.admin-theme-dark body.admin-page .admin-video-detail-preview[open] > summary,
html.admin-theme-dark body.admin-page .admin-video-detail-technical .admin-video-detail-code {
    border-top-color: rgba(123, 213, 239, 0.12);
    border-bottom-color: rgba(123, 213, 239, 0.12);
}

html.admin-theme-dark body.admin-page .admin-video-toast {
    border-color: rgba(123, 213, 239, 0.18);
    background: rgba(18, 30, 37, 0.96);
    color: var(--admin-text);
}

.button.is-relation-loading {
    cursor: progress;
}

.material-symbols-outlined.is-spinning {
    animation: adminRelationSpin 0.9s linear infinite;
}

.admin-toast-region {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 1200;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

.admin-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 102, 104, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--admin-text);
    box-shadow: 0 18px 45px rgba(18, 35, 45, 0.18);
    font-size: 0.92rem;
    line-height: 1.35;
    pointer-events: auto;
    animation: adminToastIn 0.18s ease both;
}

.admin-toast > .material-symbols-outlined {
    color: #0c9470;
    font-size: 1.25rem;
    line-height: 1;
}

.admin-toast.is-error {
    border-color: rgba(190, 45, 45, 0.22);
}

.admin-toast.is-error > .material-symbols-outlined {
    color: #be2d2d;
}

.admin-toast.is-hiding {
    animation: adminToastOut 0.22s ease both;
}

@keyframes adminRelationSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes adminRelationSweep {
    from {
        background-position: -220px 0;
    }

    to {
        background-position: 220px 0;
    }
}

@keyframes adminToastIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes adminToastOut {
    to {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
}

.admin-guidance {
    display: grid;
    gap: 12px;
    color: var(--admin-muted);
    line-height: 1.65;
}

.admin-guidance p {
    margin: 0;
}

.admin-auto-source-card {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 119, 131, 0.16);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 119, 131, 0.12), transparent 40%),
        var(--admin-surface-strong);
}

.admin-auto-source-card span {
    color: var(--admin-muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.admin-auto-source-card strong {
    color: var(--admin-text);
    font-size: 1.05rem;
}

.admin-auto-source-card small {
    color: var(--admin-muted);
    line-height: 1.45;
}

.admin-file-main-fields-grid {
    display: grid;
    grid-template-columns:
        minmax(210px, 1fr)
        minmax(220px, 1fr)
        minmax(190px, 0.9fr)
        minmax(220px, 1fr);
    gap: 18px 14px;
    align-items: start;
}

.admin-file-main-field {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
}

.admin-file-main-field > span {
    min-height: 1.25em;
}

.admin-file-main-field input,
.admin-file-main-field select {
    width: 100%;
}

.admin-file-main-field .admin-char-counter {
    margin-top: -2px;
}

.admin-file-main-field .editor-help {
    max-width: 34ch;
    line-height: 1.35;
}

.admin-file-main-source-card {
    align-self: stretch;
    min-height: 126px;
    border-radius: 16px;
}

.admin-file-main-active-row {
    grid-column: 1 / -1;
    width: fit-content;
    max-width: 100%;
    margin-top: 0;
    padding-left: 4px;
}

@media (max-width: 1320px) {
    #iarduino-file-edit-form.admin-editor-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .admin-file-main-fields-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-file-main-source-card {
        grid-column: 1 / -1;
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .admin-file-main-fields-grid {
        grid-template-columns: 1fr;
    }

    .admin-file-main-active-row {
        width: 100%;
        padding-left: 0;
    }
}

.admin-local-file-upload {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--admin-line);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(0, 119, 131, 0.08), rgba(255, 255, 255, 0.7)),
        var(--admin-surface-strong);
}

.admin-local-file-upload-compact {
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
}

.admin-local-file-upload-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.admin-local-file-upload-head p {
    margin: 0;
    color: var(--admin-muted);
    line-height: 1.55;
}

.admin-local-file-upload-head > .material-symbols-outlined {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: rgba(0, 119, 131, 0.12);
    color: var(--admin-accent);
}

.admin-local-file-meta {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(90px, 0.45fr) minmax(180px, 1.4fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 119, 131, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.48);
}

.admin-local-file-meta span {
    min-width: 0;
    padding: 10px 12px;
    border-left: 1px solid rgba(0, 119, 131, 0.12);
    background: transparent;
}

.admin-local-file-meta span:first-child {
    border-left: 0;
}

.admin-local-file-meta small {
    display: block;
    margin-bottom: 4px;
    color: var(--admin-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-local-file-meta strong {
    display: block;
    color: var(--admin-text);
    font-size: 0.92rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.admin-local-file-dropzone {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 160px;
    padding: 24px;
    border: 1.5px dashed rgba(0, 119, 131, 0.34);
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 119, 131, 0.1), transparent 55%),
        rgba(255, 255, 255, 0.58);
    color: var(--admin-text);
    cursor: pointer;
    text-align: center;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.admin-local-file-dropzone:hover,
.admin-local-file-dropzone:focus-within,
.admin-local-file-upload.is-dragover .admin-local-file-dropzone {
    border-color: rgba(0, 119, 131, 0.68);
    background: rgba(0, 119, 131, 0.09);
    box-shadow: 0 22px 50px -34px rgba(0, 119, 131, 0.7);
    transform: translateY(-1px);
}

.admin-local-file-upload.is-uploading .admin-local-file-dropzone {
    pointer-events: none;
    opacity: 0.76;
}

.admin-local-file-upload-compact .admin-local-file-dropzone {
    grid-template-columns: auto minmax(0, 1fr);
    place-items: center start;
    min-height: 96px;
    padding: 16px;
    text-align: left;
}

.admin-local-file-dropzone > .material-symbols-outlined {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(0, 119, 131, 0.12);
    color: var(--admin-accent);
    font-size: 2rem;
}

.admin-local-file-upload-compact .admin-local-file-dropzone > .material-symbols-outlined {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 1.8rem;
}

.admin-local-file-dropzone strong {
    max-width: 520px;
    color: var(--admin-text);
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.admin-local-file-upload-compact .admin-local-file-dropzone strong {
    font-size: 0.98rem;
}

.admin-local-file-dropzone small {
    max-width: 620px;
    color: var(--admin-muted);
    line-height: 1.5;
}

.admin-local-file-upload-compact .admin-local-file-dropzone small {
    grid-column: 2;
}

.admin-local-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.admin-local-file-upload-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.admin-local-file-upload-footer [data-local-file-status] {
    color: var(--admin-muted);
    font-weight: 700;
}

.admin-local-file-upload-footer [data-local-file-status].is-success {
    color: var(--admin-accent);
}

.admin-local-file-upload-footer [data-local-file-status].is-error {
    color: #a34848;
}

.admin-github-sync-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--admin-line);
    border-radius: 18px;
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 119, 131, 0.12), transparent 34%),
        var(--admin-surface-strong);
}

.admin-github-sync-card span,
.admin-github-release-list span {
    display: block;
    margin-bottom: 5px;
    color: var(--admin-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-github-sync-card strong {
    color: var(--admin-text);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.admin-github-action-row {
    display: grid;
    grid-template-columns: minmax(280px, auto) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

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

.admin-github-actions .button,
.admin-github-actions .admin-manual-action,
.admin-github-actions .admin-list-action {
    justify-content: center;
}

.admin-github-actions .admin-manual-action,
.admin-github-actions .admin-list-action {
    flex: 0 1 178px;
    min-width: 154px;
}

.admin-github-detach-trigger {
    border-color: rgba(179, 71, 71, 0.28);
    color: #a34848;
}

.admin-github-action-row p {
    margin: 0;
    color: var(--admin-muted);
    line-height: 1.55;
}

.admin-github-details {
    padding: 14px 16px;
    border: 1px solid var(--admin-line);
    border-radius: 18px;
    background: var(--admin-surface-strong);
}

.admin-github-details summary {
    cursor: pointer;
    color: var(--admin-text);
    font-weight: 800;
}

.admin-github-details .admin-form-grid {
    margin-top: 16px;
}

.admin-github-detach-modal {
    width: min(560px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: 28px;
    background: transparent;
    color: var(--admin-text);
}

.admin-github-detach-modal::backdrop {
    background: rgba(4, 12, 18, 0.58);
    backdrop-filter: blur(8px);
}

.admin-github-detach-card {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 30px;
    border: 1px solid rgba(179, 71, 71, 0.24);
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0%, rgba(179, 71, 71, 0.16), transparent 34%),
        var(--admin-surface-strong);
    box-shadow: 0 28px 80px rgba(5, 20, 30, 0.28);
}

.admin-github-detach-card h2 {
    margin: -6px 0 0;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.admin-github-detach-card label {
    display: grid;
    gap: 8px;
}

.admin-github-detach-card code {
    justify-self: start;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(179, 71, 71, 0.12);
    color: #a34848;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-github-detach-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(179, 71, 71, 0.12);
    color: #a34848;
}

.admin-github-detach-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--admin-line);
    border-radius: 999px;
    background: var(--admin-surface);
    color: var(--admin-text);
}

.admin-github-detach-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 900px) {
    .admin-local-file-meta,
    .admin-github-sync-card,
    .admin-github-action-row {
        grid-template-columns: 1fr;
    }

    .admin-local-file-meta span {
        border-left: 0;
        border-top: 1px solid rgba(0, 119, 131, 0.12);
    }

    .admin-local-file-meta span:first-child {
        border-top: 0;
    }

    .admin-local-file-upload-compact .admin-local-file-dropzone {
        grid-template-columns: 1fr;
        place-items: center;
        text-align: center;
    }

    .admin-local-file-upload-compact .admin-local-file-dropzone small {
        grid-column: auto;
    }

    .admin-github-detach-actions .button,
    .admin-github-detach-actions .admin-list-action,
    .admin-github-detach-actions .admin-manual-action {
        width: 100%;
    }
}

.admin-danger-zone {
    border-color: rgba(179, 71, 71, 0.22);
    background:
        linear-gradient(135deg, rgba(179, 71, 71, 0.08), rgba(255, 255, 255, 0.72));
}

.admin-danger-zone .admin-kicker,
.admin-danger-zone code {
    color: #a34848;
}

.admin-danger-zone code {
    display: block;
    margin: -2px 0 4px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(179, 71, 71, 0.1);
    overflow-wrap: anywhere;
}

.admin-danger-zone label {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.admin-danger-zone .button-danger,
.admin-danger-zone .admin-security-danger-action {
    width: 100%;
    margin-top: 14px;
    justify-content: flex-start;
}

.admin-sticky-actions {
    position: sticky;
    top: 98px;
    padding: 18px;
    border: 1px solid var(--admin-line);
    border-radius: 20px;
    background: var(--admin-surface-strong);
    box-shadow: var(--admin-shadow);
}

.admin-sticky-actions .button {
    width: 100%;
}

.admin-auth-shell {
    min-height: calc(100svh - 150px);
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    align-items: stretch;
}

.admin-auth-copy,
.admin-auth-panel {
    padding: 32px;
}

.admin-auth-copy {
    display: grid;
    align-content: end;
    background:
        linear-gradient(135deg, rgba(0, 129, 132, 0.18), rgba(255, 255, 255, 0.24)),
        var(--admin-surface);
}

.admin-auth-copy p {
    max-width: 48ch;
    line-height: 1.8;
}

.status-filled,
.status-empty {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-filled {
    background: rgba(29, 106, 68, 0.12);
    color: #1d6a44;
}

.status-empty {
    background: rgba(187, 77, 0, 0.12);
    color: #9d4a17;
}

body.admin-page input,
body.admin-page select,
body.admin-page textarea {
    border-radius: 16px;
    border: 1px solid rgba(0, 102, 104, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: var(--admin-text);
}

body.admin-page input:focus,
body.admin-page select:focus,
body.admin-page textarea:focus {
    outline: none;
    border-color: rgba(0, 102, 104, 0.34);
    box-shadow: 0 0 0 4px rgba(0, 129, 132, 0.08);
}

body.admin-page .editor {
    gap: 14px;
}

body.admin-page .editor-toolbar {
    padding: 5px;
    border: 1px solid var(--admin-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
}

body.admin-page .editor-btn {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--admin-text);
}

body.admin-page .editor-tool-group {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.46);
    box-shadow: inset 0 0 0 1px rgba(0, 102, 104, 0.08);
}

body.admin-page .editor-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 36px;
    padding: 0;
    border-radius: 11px;
}

body.admin-page .editor-icon-btn .material-symbols-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-size: 21px;
    line-height: 1;
}

body.admin-page .editor-mini-plus,
body.admin-page .editor-mini-mark {
    position: absolute;
    right: 4px;
    bottom: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 999px;
    background: var(--admin-accent);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1;
}

body.admin-page .editor-mini-mark {
    min-width: 18px;
    font-size: 0.54rem;
    letter-spacing: -0.04em;
}

body.admin-page .editor-code-chip-btn {
    min-width: 48px;
    color: var(--admin-accent);
    background: rgba(0, 129, 132, 0.1);
}

body.admin-page .editor-code-chip-btn:hover,
body.admin-page .editor-code-chip-btn:focus-visible {
    background: rgba(0, 129, 132, 0.16);
}

body.admin-page .editor-callout-menu {
    position: relative;
    display: inline-flex;
}

body.admin-page .editor-callout-menu summary {
    list-style: none;
}

body.admin-page .editor-callout-menu summary::-webkit-details-marker {
    display: none;
}

body.admin-page .editor-callout-summary {
    color: #8e5b14;
    background: rgba(255, 202, 124, 0.14);
}

body.admin-page .editor-callout-menu[open] .editor-callout-summary,
body.admin-page .editor-callout-summary:hover,
body.admin-page .editor-callout-summary:focus-visible {
    background: rgba(255, 202, 124, 0.22);
    color: #7c4c0e;
}

body.admin-page .editor-callout-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, 38px);
    gap: 5px;
    padding: 7px;
    border: 1px solid var(--admin-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 46px -26px rgba(19, 29, 33, 0.34);
}

body.admin-page .editor-callout-btn-danger {
    color: #b34747;
    background: rgba(179, 71, 71, 0.1);
}

body.admin-page .editor-callout-btn-info {
    color: #007dbc;
    background: rgba(0, 125, 188, 0.1);
}

body.admin-page .editor-callout-btn-success {
    color: #1d7a57;
    background: rgba(29, 157, 116, 0.1);
}

body.admin-page .editor-callout-btn-danger:hover,
body.admin-page .editor-callout-btn-danger:focus-visible {
    background: rgba(179, 71, 71, 0.16);
    color: #a33838;
}

body.admin-page .editor-callout-btn-info:hover,
body.admin-page .editor-callout-btn-info:focus-visible {
    background: rgba(0, 125, 188, 0.16);
    color: #006a9b;
}

body.admin-page .editor-callout-btn-success:hover,
body.admin-page .editor-callout-btn-success:focus-visible {
    background: rgba(29, 157, 116, 0.16);
    color: #166c4e;
}

body.admin-page .editor-icon-text {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

body.admin-page .editor-btn:hover {
    background: rgba(0, 102, 104, 0.08);
    color: var(--admin-accent);
}

body.admin-page .editor-danger-btn {
    color: #a34848;
}

body.admin-page .editor-danger-btn:hover,
body.admin-page .editor-danger-btn:focus-visible {
    background: rgba(179, 71, 71, 0.12);
    color: #b34747;
}

body.admin-page .editor-preview {
    min-height: 180px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid var(--admin-line);
    background: rgba(255, 255, 255, 0.72);
}

body.admin-page .visual-editor-shell {
    gap: 12px;
}

body.admin-page .admin-editor-panel {
    overflow: visible;
}

body.admin-page .editor-command-bar {
    position: sticky;
    top: 88px;
    z-index: 20;
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 22px;
    background: rgba(246, 251, 253, 0.88);
    box-shadow: 0 24px 74px -48px rgba(19, 29, 33, 0.48);
    backdrop-filter: blur(18px);
}

body.admin-page .editor-context-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 760px;
    padding: 8px 10px;
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 18px;
    background: rgba(0, 129, 132, 0.08);
}

body.admin-page .editor-context-tools[hidden] {
    display: none;
}

body.admin-page .editor-context-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--admin-accent);
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
}

body.admin-page .editor-context-label .material-symbols-outlined {
    font-size: 19px;
}

body.admin-page .editor-mode-tabs {
    display: inline-flex;
    width: fit-content;
    padding: 5px;
    gap: 4px;
    border: 1px solid var(--admin-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
}

body.admin-page .editor-mode-tab {
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--admin-muted);
    font-weight: 700;
}

body.admin-page .editor-mode-tab.is-active {
    background: var(--admin-accent);
    color: #fff;
}

body.admin-page .editor-command-bar:has(.editor-expand-toggle) {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
}

body.admin-page .editor-command-bar:has(.editor-expand-toggle) .editor-mode-tabs {
    grid-column: 1;
}

body.admin-page .editor-command-bar:has(.editor-expand-toggle) .editor-expand-toggle {
    grid-column: 2;
    justify-self: end;
}

body.admin-page .editor-command-bar:has(.editor-expand-toggle) .editor-toolbar,
body.admin-page .editor-command-bar:has(.editor-expand-toggle) .editor-context-tools,
body.admin-page .editor-command-bar:has(.editor-expand-toggle) .editor-image-import {
    grid-column: 1 / -1;
}

body.admin-page .editor-expand-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 12px;
    border-color: rgba(0, 102, 104, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--admin-accent);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

body.admin-page .editor-expand-toggle .material-symbols-outlined {
    font-size: 18px;
}

body.admin-page .editor-expand-toggle:hover,
body.admin-page .editor-expand-toggle:focus-visible,
body.admin-page .editor-expand-toggle[aria-pressed="true"] {
    border-color: rgba(0, 102, 104, 0.22);
    background: rgba(0, 129, 132, 0.1);
    color: var(--admin-accent-dark);
}

body.admin-page .editor-btn-accent {
    background: rgba(0, 129, 132, 0.1);
    color: var(--admin-accent);
}

body.admin-page .editor-image-import {
    display: grid;
    gap: 8px;
    max-width: 760px;
    padding: 14px;
    border: 1px dashed rgba(0, 102, 104, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
}

body.admin-page .editor-image-import[hidden] {
    display: none;
}

body.admin-page .editor-image-import label {
    display: grid;
    gap: 8px;
}

body.admin-page .editor-image-import label > span {
    color: var(--admin-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

body.admin-page .editor-image-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

body.admin-page .editor-import-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    background: rgba(0, 129, 132, 0.1);
    color: var(--admin-accent);
}

body.admin-page .editor-import-btn .material-symbols-outlined {
    font-size: 20px;
}

body.admin-page .editor-upload-status {
    min-height: 20px;
    color: var(--admin-muted);
    font-size: 0.9rem;
}

body.admin-page .editor-upload-status[data-state="success"] {
    color: #287a54;
}

body.admin-page .editor-upload-status[data-state="error"] {
    color: #b34747;
}

body.admin-page .visual-editor,
body.admin-page .editor-source {
    min-height: 560px;
}

body.admin-page .wiki-article-html-editor .visual-editor,
body.admin-page .wiki-article-html-editor .editor-source {
    min-height: min(560px, calc(100vh - 260px));
    max-height: min(680px, calc(100vh - 180px));
    overflow-y: auto;
}

body.admin-page .visual-editor {
    padding: 28px;
    border: 1px solid var(--admin-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--admin-text);
    line-height: 1.75;
    overflow: auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.admin-page .visual-editor:focus {
    outline: none;
    border-color: rgba(0, 102, 104, 0.34);
    box-shadow: 0 0 0 4px rgba(0, 129, 132, 0.08);
}

body.admin-page .visual-editor:empty::before {
    content: "Начните писать статью или вставьте изображение...";
    color: var(--admin-muted);
}

body.admin-page .visual-editor h2,
body.admin-page .visual-editor h3,
body.admin-page .visual-editor h4 {
    margin: 24px 0 12px;
    color: var(--admin-text);
    font-family: "Space Grotesk", sans-serif;
}

body.admin-page .visual-editor p,
body.admin-page .visual-editor ul,
body.admin-page .visual-editor ol,
body.admin-page .visual-editor blockquote,
body.admin-page .visual-editor pre,
body.admin-page .visual-editor .table-wrap {
    margin-top: 0;
    margin-bottom: 16px;
}

body.admin-page .visual-editor code {
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(216, 229, 235, 0.9);
    font-family: "JetBrains Mono", Consolas, monospace;
}

body.admin-page .visual-editor pre {
    overflow: auto;
    padding: 18px;
    border-radius: 18px;
    background: #222b2f;
    color: #e8f2f9;
}

body.admin-page .visual-editor pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    white-space: pre;
}

body.admin-page .visual-editor blockquote {
    padding: 12px 16px;
    border-left: 4px solid rgba(0, 102, 104, 0.32);
    border-radius: 14px;
    background: rgba(223, 234, 240, 0.68);
}

body.admin-page .visual-editor .content-callout,
body.admin-page .visual-editor .legacy-callout {
    margin: 18px 0;
    border-radius: 12px;
}

body.admin-page .visual-editor .content-callout p,
body.admin-page .visual-editor .content-callout ul,
body.admin-page .visual-editor .content-callout ol,
body.admin-page .visual-editor .legacy-callout p,
body.admin-page .visual-editor .legacy-callout ul,
body.admin-page .visual-editor .legacy-callout ol {
    color: inherit;
}

body.admin-page .visual-editor .content-callout-content > :last-child,
body.admin-page .visual-editor .legacy-callout-content > :last-child {
    margin-bottom: 0;
}

body.admin-page .visual-editor .table-wrap {
    overflow: auto;
    border: 1px solid var(--admin-line);
    border-radius: 18px;
}

body.admin-page .visual-editor table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
}

body.admin-page .visual-editor th,
body.admin-page .visual-editor td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--admin-line);
    text-align: left;
    vertical-align: top;
}

body.admin-page .visual-editor th {
    background: rgba(216, 229, 235, 0.86);
    font-weight: 700;
}

body.admin-page .visual-editor img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 18px auto;
    border-radius: 20px;
    box-shadow: 0 26px 70px -42px rgba(19, 29, 33, 0.34);
}

body.admin-page .admin-wiki-editor-preview {
    display: grid;
    gap: 12px;
    margin-top: 8px;
    padding: 14px;
    border: 1px solid var(--admin-line);
    border-radius: 18px;
    background: rgba(246, 251, 253, 0.78);
}

body.admin-page .admin-wiki-editor-preview-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--admin-text);
    cursor: pointer;
    list-style: none;
}

body.admin-page .admin-wiki-editor-preview-head::-webkit-details-marker {
    display: none;
}

body.admin-page .admin-wiki-editor-preview-head > .material-symbols-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 10px;
    background: rgba(0, 129, 132, 0.1);
    color: var(--admin-accent);
    font-size: 20px;
}

body.admin-page .admin-wiki-editor-preview-head strong,
body.admin-page .admin-wiki-editor-preview-head small {
    display: block;
}

body.admin-page .admin-wiki-editor-preview-head strong {
    font-size: 0.96rem;
}

body.admin-page .admin-wiki-editor-preview-head small {
    margin-top: 3px;
    color: var(--admin-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

body.admin-page .admin-wiki-editor-preview-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    margin-left: auto;
    padding: 7px 11px;
    border: 1px solid rgba(0, 102, 104, 0.12);
    border-radius: 999px;
    color: var(--admin-accent);
    font-size: 0.78rem;
    font-weight: 800;
}

body.admin-page .admin-wiki-editor-preview-toggle::before {
    content: "Открыть";
}

body.admin-page .admin-wiki-editor-preview[open] .admin-wiki-editor-preview-toggle::before {
    content: "Свернуть";
}

body.admin-page .admin-wiki-editor-preview-frame {
    width: 100%;
    max-width: 740px;
    min-height: 170px;
    max-height: min(520px, 62vh);
    padding: 20px 18px;
    overflow: auto;
    border: 1px solid rgba(19, 29, 33, 0.14);
    border-radius: 10px;
    background: #fff;
    color: #111;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

body.admin-page .admin-wiki-editor-preview-frame .redactor-styles {
    max-width: 680px;
    min-height: 120px;
}

body.admin-page .admin-wiki-editor-preview-frame .redactor-styles:empty::before {
    content: "Предпросмотр загрузится после инициализации редактора.";
    color: #777;
    font-size: 14px;
}

html.admin-theme-dark body.admin-page {
    --admin-bg: #0f1820;
    --admin-surface: rgba(17, 27, 35, 0.78);
    --admin-surface-strong: rgba(17, 27, 35, 0.94);
    --admin-line: rgba(122, 154, 170, 0.18);
    --admin-muted: #a4b5bf;
    --admin-text: #edf5f8;
    --admin-accent: #6ed7d9;
    --admin-accent-soft: rgba(110, 215, 217, 0.12);
    --admin-shadow: 0 28px 80px -42px rgba(0, 0, 0, 0.5);
    background:
        radial-gradient(circle at top left, rgba(110, 215, 217, 0.12), transparent 24%),
        linear-gradient(180deg, #111a22 0%, #0d141b 100%);
}

html.admin-theme-dark body.admin-page .admin-header {
    background: rgba(10, 17, 24, 0.74);
    border-bottom-color: rgba(122, 154, 170, 0.12);
}

html.admin-theme-dark body.admin-page.admin-menu-is-collapsed .admin-header {
    background: transparent;
    border-bottom-color: transparent;
}

html.admin-theme-dark body.admin-page .admin-menu-reveal {
    --admin-menu-reveal-bg: linear-gradient(180deg, rgba(26, 38, 48, 0.92), rgba(15, 25, 33, 0.84));
    --admin-menu-reveal-hover-bg: linear-gradient(180deg, rgba(31, 45, 56, 0.94), rgba(17, 29, 38, 0.88));
    --admin-menu-reveal-border: rgba(110, 215, 217, 0.18);
    --admin-menu-reveal-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.72);
    background: transparent;
    color: var(--admin-accent);
    box-shadow: none;
}

html.admin-theme-dark body.admin-page .admin-menu-reveal::before {
    box-shadow: 0 16px 34px -26px rgba(0, 0, 0, 0.7);
}

html.admin-theme-dark body.admin-page .admin-menu-reveal:hover {
    background: transparent;
    color: #9fe9eb;
    box-shadow: none;
    transform: none;
}

html.admin-theme-dark body.admin-page .admin-menu-reveal:focus-visible {
    box-shadow: 0 0 0 3px rgba(110, 215, 217, 0.1), 0 20px 50px -30px rgba(0, 0, 0, 0.72);
}

html.admin-theme-dark body.admin-page .admin-brand,
html.admin-theme-dark body.admin-page .admin-nav-link.is-active,
html.admin-theme-dark body.admin-page .admin-nav-link:hover,
html.admin-theme-dark body.admin-page .admin-breadcrumbs a:hover,
html.admin-theme-dark body.admin-page .admin-item-title-link:hover {
    color: var(--admin-accent);
}

html.admin-theme-dark body.admin-page .admin-nav-link,
html.admin-theme-dark body.admin-page .admin-theme-toggle,
html.admin-theme-dark body.admin-page .button-secondary {
    background: rgba(18, 29, 38, 0.82);
    border-color: var(--admin-line);
    color: var(--admin-text);
}

html.admin-theme-dark body.admin-page .admin-nav-link-accent {
    background: rgba(110, 215, 217, 0.1);
    border-color: rgba(110, 215, 217, 0.18);
    color: var(--admin-accent);
}

html.admin-theme-dark body.admin-page .admin-create-dropdown {
    background: rgba(18, 29, 38, 0.98);
    border-color: var(--admin-line);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

html.admin-theme-dark body.admin-page .admin-create-dropdown a {
    color: var(--admin-text);
}

html.admin-theme-dark body.admin-page .admin-create-dropdown a:hover {
    background: rgba(110, 215, 217, 0.1);
}

html.admin-theme-dark body.admin-page .admin-danger-zone {
    background:
        linear-gradient(135deg, rgba(179, 71, 71, 0.12), rgba(17, 27, 35, 0.78));
    border-color: rgba(255, 177, 140, 0.18);
}

html.admin-theme-dark body.admin-page .admin-danger-zone .admin-kicker,
html.admin-theme-dark body.admin-page .admin-danger-zone code {
    color: #ffb18c;
}

html.admin-theme-dark body.admin-page .admin-danger-zone code {
    background: rgba(255, 177, 140, 0.1);
}

html.admin-theme-dark body.admin-page .admin-learn-filter-group {
    background: rgba(18, 29, 38, 0.58);
    border-color: var(--admin-line);
}

html.admin-theme-dark body.admin-page .button-secondary:hover,
html.admin-theme-dark body.admin-page .admin-nav-link:hover,
html.admin-theme-dark body.admin-page .admin-nav-link.is-active,
html.admin-theme-dark body.admin-page .admin-theme-toggle:hover {
    background: rgba(27, 40, 50, 0.96);
}

html.admin-theme-dark body.admin-page .admin-overview-card,
html.admin-theme-dark body.admin-page .admin-panel,
html.admin-theme-dark body.admin-page .admin-auth-panel,
html.admin-theme-dark body.admin-page .admin-auth-copy,
html.admin-theme-dark body.admin-page .admin-item-card,
html.admin-theme-dark body.admin-page .admin-tree-link,
html.admin-theme-dark body.admin-page .admin-source-panel,
html.admin-theme-dark body.admin-page .legacy-publication-row,
html.admin-theme-dark body.admin-page .legacy-editorial-card,
html.admin-theme-dark body.admin-page .legacy-editorial-column,
html.admin-theme-dark body.admin-page .admin-sticky-actions,
html.admin-theme-dark body.admin-page .admin-filter-shell,
html.admin-theme-dark body.admin-page .admin-pagination-current {
    background: var(--admin-surface);
}

html.admin-theme-dark body.admin-page .admin-file-save-dock,
html.admin-theme-dark body.admin-page .admin-editor-save-dock {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(18, 29, 38, 0.82);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.36);
}

html.admin-theme-dark body.admin-page .admin-revision-panel {
    border-color: rgba(110, 215, 217, 0.22);
    background:
        linear-gradient(135deg, rgba(21, 52, 60, 0.68), rgba(18, 29, 38, 0.92)),
        var(--admin-surface);
}

html.admin-theme-dark body.admin-page .admin-revision-count {
    background: rgba(110, 215, 217, 0.12);
    color: #84e6e8;
}

html.admin-theme-dark body.admin-page .admin-revision-link,
html.admin-theme-dark body.admin-page .admin-revision-preview,
html.admin-theme-dark body.admin-page .admin-revision-diff,
html.admin-theme-dark body.admin-page .admin-revision-card {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(9, 18, 25, 0.46);
}

html.admin-theme-dark body.admin-page .admin-revision-card {
    background:
        linear-gradient(135deg, rgba(18, 31, 40, 0.94), rgba(10, 22, 30, 0.78)),
        var(--admin-surface);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

html.admin-theme-dark body.admin-page .admin-revision-diff-head {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(19, 36, 45, 0.96);
    color: rgba(222, 238, 242, 0.72);
}

html.admin-theme-dark body.admin-page .admin-revision-diff-line {
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(235, 244, 246, 0.9);
}

html.admin-theme-dark body.admin-page .admin-revision-diff-line.is-same {
    color: rgba(235, 244, 246, 0.62);
}

html.admin-theme-dark body.admin-page .admin-revision-diff-line.is-added {
    background: rgba(110, 215, 217, 0.14);
    color: #b6f4f5;
}

html.admin-theme-dark body.admin-page .admin-revision-diff-line.is-removed {
    background: rgba(255, 116, 98, 0.14);
    color: #ffc2ba;
}

html.admin-theme-dark body.admin-page .admin-revision-diff-line.is-changed {
    background: rgba(251, 196, 87, 0.16);
    color: #ffe2a3;
}

html.admin-theme-dark body.admin-page .admin-revision-link:hover {
    border-color: rgba(110, 215, 217, 0.34);
    background: rgba(14, 28, 36, 0.78);
}

html.admin-theme-dark body.admin-page .admin-revision-empty {
    border-color: rgba(110, 215, 217, 0.22);
}

html.admin-theme-dark body.admin-page .admin-settings-external-url,
html.admin-theme-dark body.admin-page .admin-settings-login-code,
html.admin-theme-dark body.admin-page .admin-settings-card,
html.admin-theme-dark body.admin-page .admin-settings-section,
html.admin-theme-dark body.admin-page .admin-settings-explain,
html.admin-theme-dark body.admin-page .admin-settings-form,
html.admin-theme-dark body.admin-page .admin-settings-refresh {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(18, 29, 38, 0.78);
}

html.admin-theme-dark body.admin-page .admin-settings-card-link {
    border-color: rgba(134, 194, 216, 0.18);
    background: rgba(18, 28, 36, 0.72);
    color: #b8dcea;
}

html.admin-theme-dark body.admin-page .admin-settings-card-link:hover,
html.admin-theme-dark body.admin-page .admin-settings-card-link:focus-visible {
    border-color: rgba(134, 194, 216, 0.36);
    background: rgba(134, 194, 216, 0.11);
    color: #d8f0f8;
}

html.admin-theme-dark body.admin-page .admin-settings-summary-icon,
html.admin-theme-dark body.admin-page .admin-settings-card-icon {
    background: rgba(110, 215, 217, 0.1);
}

html.admin-theme-dark body.admin-page .admin-settings-state.is-ok {
    color: #7dd6a7;
}

html.admin-theme-dark body.admin-page .admin-settings-state.is-warn {
    color: #ffd99b;
}

html.admin-theme-dark body.admin-page .admin-settings-state.is-error,
html.admin-theme-dark body.admin-page .admin-settings-facts dd.is-error {
    color: #ffb8a8;
}

html.admin-theme-dark body.admin-page .admin-settings-login-facts,
html.admin-theme-dark body.admin-page .admin-settings-login-ledger,
html.admin-theme-dark body.admin-page .admin-settings-login-disable-form {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(14, 24, 32, 0.46);
}

html.admin-theme-dark body.admin-page .admin-settings-login-facts div,
html.admin-theme-dark body.admin-page .admin-settings-login-ledger-head,
html.admin-theme-dark body.admin-page .admin-settings-login-row,
html.admin-theme-dark body.admin-page .admin-settings-login-empty {
    border-color: rgba(255, 255, 255, 0.09);
}

html.admin-theme-dark body.admin-page .admin-settings-login-head h2,
html.admin-theme-dark body.admin-page .admin-settings-login-admin strong,
html.admin-theme-dark body.admin-page .admin-settings-login-reason span,
html.admin-theme-dark body.admin-page .admin-settings-login-facts dd {
    color: rgba(235, 247, 250, 0.9);
}

html.admin-theme-dark body.admin-page .admin-settings-login-copy,
html.admin-theme-dark body.admin-page .admin-settings-login-facts dt,
html.admin-theme-dark body.admin-page .admin-settings-login-admin > span,
html.admin-theme-dark body.admin-page .admin-settings-login-code-cell small,
html.admin-theme-dark body.admin-page .admin-settings-login-reason small,
html.admin-theme-dark body.admin-page .admin-settings-login-ledger-head {
    color: rgba(205, 224, 230, 0.64);
}

html.admin-theme-dark body.admin-page .admin-settings-login-state {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(14, 24, 32, 0.58);
    color: rgba(226, 240, 244, 0.82);
}

html.admin-theme-dark body.admin-page .admin-security-card,
html.admin-theme-dark body.admin-page .admin-security-panel,
html.admin-theme-dark body.admin-page .admin-security-stat,
html.admin-theme-dark body.admin-page .admin-security-recommendation,
html.admin-theme-dark body.admin-page .admin-security-table-wrap,
html.admin-theme-dark body.admin-page .admin-security-panel .admin-permission-group {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(18, 29, 38, 0.78);
}

html.admin-theme-dark body.admin-page .admin-security-card-icon {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(110, 215, 217, 0.1);
}

html.admin-theme-dark body.admin-page .admin-security-table th,
html.admin-theme-dark body.admin-page .admin-security-table td {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

html.admin-theme-dark body.admin-page .admin-security-callout {
    border-color: rgba(255, 217, 155, 0.18);
    background: rgba(86, 58, 24, 0.24);
}

html.admin-theme-dark body.admin-page .admin-security-callout strong {
    color: #ffd99b;
}

html.admin-theme-dark body.admin-page .admin-access-rail,
html.admin-theme-dark body.admin-page .admin-access-panel,
html.admin-theme-dark body.admin-page .admin-access-row,
html.admin-theme-dark body.admin-page .admin-access-empty,
html.admin-theme-dark body.admin-page .admin-access-signal,
html.admin-theme-dark body.admin-page .admin-access-cell {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(18, 29, 38, 0.78);
}

html.admin-theme-dark body.admin-page .admin-access-row.is-suspended {
    border-color: rgba(255, 184, 168, 0.18);
    background: rgba(64, 34, 31, 0.5);
}

html.admin-theme-dark body.admin-page .admin-access-signal-icon,
html.admin-theme-dark body.admin-page .admin-access-avatar {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(110, 215, 217, 0.1);
}

html.admin-theme-dark body.admin-page .admin-access-form-rail,
html.admin-theme-dark body.admin-page .admin-access-form-panel,
html.admin-theme-dark body.admin-page .admin-access-session-row,
html.admin-theme-dark body.admin-page .admin-access-audit-row,
html.admin-theme-dark body.admin-page .admin-access-form-panel .admin-permission-group {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(18, 29, 38, 0.78);
}

html.admin-theme-dark body.admin-page .admin-security-danger-action,
html.admin-theme-dark body.admin-page button.admin-security-danger-action,
html.admin-theme-dark body.admin-page .button.admin-security-danger-action {
    border-color: rgba(255, 184, 168, 0.2);
    background: rgba(64, 34, 31, 0.78);
    background-image: none;
    color: #ffb8a8;
}

html.admin-theme-dark body.admin-page .admin-security-danger-action:hover,
html.admin-theme-dark body.admin-page button.admin-security-danger-action:hover,
html.admin-theme-dark body.admin-page .button.admin-security-danger-action:hover {
    border-color: rgba(255, 184, 168, 0.34);
    background: rgba(83, 42, 37, 0.9);
    background-image: none;
    color: #ffd0c8;
}

html.admin-theme-dark body.admin-page [data-admin-dynamic-search]::after {
    background:
        linear-gradient(90deg, transparent, rgba(110, 215, 217, 0.12), transparent),
        rgba(9, 18, 25, 0.5);
}

html.admin-theme-dark body.admin-page .admin-legacy-lesson-thumb {
    background: rgba(110, 215, 217, 0.1);
}

html.admin-theme-dark body.admin-page .legacy-editorial-column.is-proposal,
html.admin-theme-dark body.admin-page .legacy-editorial-tags span {
    background: rgba(110, 215, 217, 0.1);
}

html.admin-theme-dark body.admin-page .legacy-editorial-warning {
    background: rgba(103, 70, 19, 0.32);
    border-color: rgba(255, 202, 124, 0.24);
    color: #ffd99b;
}

html.admin-theme-dark body.admin-page .admin-char-counter.is-warning {
    color: #ffd99b;
}

html.admin-theme-dark body.admin-page .admin-char-counter.is-limit {
    color: #ffb8a8;
}

html.admin-theme-dark body.admin-page .editor-callout-menu-panel {
    background: rgba(18, 29, 38, 0.98);
    border-color: var(--admin-line);
}

html.admin-theme-dark body.admin-page .editor-callout-summary {
    color: #ffd99b;
    background: rgba(255, 202, 124, 0.12);
}

html.admin-theme-dark body.admin-page .editor-callout-menu[open] .editor-callout-summary,
html.admin-theme-dark body.admin-page .editor-callout-summary:hover,
html.admin-theme-dark body.admin-page .editor-callout-summary:focus-visible {
    background: rgba(255, 202, 124, 0.18);
    color: #ffd99b;
}

html.admin-theme-dark body.admin-page .visual-editor .content-callout-danger,
html.admin-theme-dark body.admin-page .visual-editor .legacy-callout-danger {
    border-color: rgba(255, 177, 140, 0.28);
    border-left-color: #ff8f76;
    background: rgba(88, 32, 32, 0.38);
    color: #ffd0c5;
}

html.admin-theme-dark body.admin-page .visual-editor .content-callout-info,
html.admin-theme-dark body.admin-page .visual-editor .legacy-callout-info {
    border-color: rgba(110, 215, 217, 0.24);
    border-left-color: #6ed7d9;
    background: rgba(31, 60, 72, 0.44);
    color: #c5f5f6;
}

html.admin-theme-dark body.admin-page .visual-editor .content-callout-success,
html.admin-theme-dark body.admin-page .visual-editor .legacy-callout-success {
    border-color: rgba(125, 214, 167, 0.24);
    border-left-color: #7dd6a7;
    background: rgba(27, 68, 49, 0.38);
    color: #c9f7dc;
}

html.admin-theme-dark body.admin-page input,
html.admin-theme-dark body.admin-page select,
html.admin-theme-dark body.admin-page textarea,
html.admin-theme-dark body.admin-page .editor-toolbar,
html.admin-theme-dark body.admin-page .editor-preview,
html.admin-theme-dark body.admin-page .editor-command-bar,
html.admin-theme-dark body.admin-page .editor-mode-tabs,
html.admin-theme-dark body.admin-page .editor-image-import,
html.admin-theme-dark body.admin-page .visual-editor {
    background: rgba(11, 21, 28, 0.92);
    border-color: var(--admin-line);
    color: var(--admin-text);
}

html.admin-theme-dark body.admin-page .visual-editor code {
    background: rgba(55, 76, 88, 0.86);
}

html.admin-theme-dark body.admin-page .visual-editor blockquote,
html.admin-theme-dark body.admin-page .visual-editor th {
    background: rgba(55, 76, 88, 0.44);
}

html.admin-theme-dark body.admin-page .editor-tool-group {
    background: rgba(20, 33, 43, 0.74);
    box-shadow: inset 0 0 0 1px var(--admin-line);
}

html.admin-theme-dark body.admin-page .editor-context-tools {
    background: rgba(110, 215, 217, 0.08);
    border-color: var(--admin-line);
}

html.admin-theme-dark body.admin-page .editor-mode-tab.is-active {
    color: #0d1a20;
}

html.admin-theme-dark body.admin-page .editor-btn {
    color: var(--admin-text);
}

html.admin-theme-dark body.admin-page .editor-btn:hover {
    background: rgba(110, 215, 217, 0.1);
    color: var(--admin-accent);
}

html.admin-theme-dark body.admin-page .editor-expand-toggle {
    border-color: rgba(166, 207, 226, 0.12);
    background: rgba(18, 29, 38, 0.72);
    color: rgba(176, 222, 232, 0.9);
}

html.admin-theme-dark body.admin-page .editor-expand-toggle:hover,
html.admin-theme-dark body.admin-page .editor-expand-toggle:focus-visible,
html.admin-theme-dark body.admin-page .editor-expand-toggle[aria-pressed="true"] {
    border-color: rgba(118, 193, 211, 0.28);
    background: rgba(118, 193, 211, 0.12);
    color: #d8f5fb;
}

html.admin-theme-dark body.admin-page .editor-callout-menu .editor-callout-summary {
    background: rgba(255, 202, 124, 0.12);
    color: #ffd99b;
}

html.admin-theme-dark body.admin-page .editor-callout-menu[open] .editor-callout-summary,
html.admin-theme-dark body.admin-page .editor-callout-menu .editor-callout-summary:hover,
html.admin-theme-dark body.admin-page .editor-callout-menu .editor-callout-summary:focus-visible {
    background: rgba(255, 202, 124, 0.2);
    color: #ffd99b;
}

html.admin-theme-dark body.admin-page .status-filled {
    background: rgba(125, 214, 167, 0.14);
    color: #7dd6a7;
}

html.admin-theme-dark body.admin-page .status-empty {
    background: rgba(255, 177, 140, 0.12);
    color: #ffb18c;
}

@media (max-width: 1180px) {
    .admin-security-profile {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-security-status-strip,
    .admin-access-status-strip,
    .admin-access-form-status-strip,
    .admin-security-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.admin-page .admin-access-workspace.admin-list-workspace,
    .admin-access-form-workbench {
        grid-template-columns: 1fr;
    }

    .admin-access-rail-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .admin-access-form-workbench .admin-access-rail-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-access-signal {
        grid-template-columns: 30px minmax(0, 1fr);
        padding: 9px;
    }

    .admin-access-signal-icon {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .admin-security-password-grid,
    .admin-security-password-grid form {
        grid-template-columns: 1fr;
    }

    .admin-settings-status-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .admin-settings-login-ledger-head,
    .admin-settings-login-row {
        grid-template-columns:
            minmax(190px, 1.05fr)
            minmax(112px, 0.56fr)
            minmax(170px, 0.9fr)
            minmax(150px, 0.62fr);
        gap: 10px;
    }

    .admin-settings-login-action .admin-manual-action,
    .admin-settings-login-action .admin-list-action {
        max-width: 170px;
    }

    .admin-settings-section-body,
    .admin-settings-refresh {
        grid-template-columns: 1fr;
    }

    .admin-settings-section > summary {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .admin-settings-section > summary .admin-settings-state {
        grid-column: 2 / 3;
    }

    .admin-editor-shell,
    .admin-workspace,
    .admin-auth-shell {
        grid-template-columns: 1fr;
    }

    .admin-rail,
    .admin-sticky-actions {
        position: static;
    }

    .admin-rail-panel,
    .admin-rail-panel .admin-tree {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .legacy-lesson-editor-shell .legacy-markdown-editor .visual-editor,
    .legacy-lesson-editor-shell .legacy-markdown-editor .editor-source {
        height: auto;
        min-height: 520px;
        max-height: none;
        overflow-y: visible;
    }

    .admin-file-save-dock,
    .admin-editor-save-dock {
        position: fixed;
        right: 12px;
        bottom: 12px;
        left: 12px;
        justify-content: stretch;
        max-width: none;
        padding: 7px;
    }

    .admin-file-save-dock .button,
    .admin-editor-save-dock .button {
        width: 100%;
        max-width: none;
        justify-content: center;
        gap: 10px;
    }

    .admin-file-save-dock .button span:not(.material-symbols-outlined),
    .admin-editor-save-dock .button span:not(.material-symbols-outlined) {
        max-width: none;
        opacity: 1;
    }

    .admin-file-save-dock,
    .admin-editor-save-dock {
        position: static;
        margin: 0 18px 18px;
        border-radius: 18px;
    }

    .admin-source-grid,
    .admin-form-grid,
    .admin-settings-form,
    .legacy-editorial-grid {
        grid-template-columns: 1fr;
    }

    .legacy-publication-row {
        grid-template-columns: 1fr;
    }

    body.admin-page .editor-image-row {
        grid-template-columns: 1fr;
    }

    body.admin-page .editor-command-bar {
        top: 12px;
        max-height: 46vh;
        overflow: auto;
    }

    body.admin-page .editor-context-tools {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .admin-security-command .admin-list-command-meta,
    .admin-access-command .admin-list-command-meta,
    .admin-access-form-command .admin-list-command-meta,
    .admin-security-profile,
    .admin-security-status-strip,
    .admin-access-status-strip,
    .admin-access-form-status-strip,
    .admin-security-stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-access-rail-list,
    .admin-access-form-workbench .admin-access-rail-list,
    .admin-access-row,
    .admin-access-facts,
    .admin-access-operation-grid,
    .admin-access-session-row,
    .admin-access-audit-row {
        grid-template-columns: 1fr;
    }

    .admin-access-signal {
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 10px;
    }

    .admin-access-signal-icon {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }

    .admin-access-panel-head,
    .admin-access-rail-head,
    .admin-access-form-panel-head {
        display: grid;
    }

    .admin-access-actions,
    .admin-access-actions .admin-list-action,
    .admin-access-form-actions,
    .admin-access-form-actions .admin-manual-action,
    .admin-access-form-panel-head .admin-list-action,
    .admin-access-form-panel-head .admin-inline-form,
    .admin-access-form-panel-head .admin-manual-action {
        justify-content: stretch;
        width: 100%;
    }

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

    .admin-security-panel-head,
    .admin-security-panel-actions {
        display: grid;
        justify-content: stretch;
    }

    .admin-security-panel-actions form,
    .admin-security-panel-actions .admin-manual-action {
        width: 100%;
    }

    .admin-settings-command .admin-list-command-meta,
    .admin-settings-status,
    .admin-settings-status-strip {
        grid-template-columns: 1fr;
    }

    .admin-settings-external-url,
    .admin-settings-card {
        grid-template-columns: 1fr;
    }

    .admin-settings-login-head,
    .admin-settings-login-facts,
    .admin-settings-login-row {
        grid-template-columns: 1fr;
    }

    .admin-settings-login-head {
        gap: 8px;
    }

    .admin-settings-login-state {
        justify-self: start;
    }

    .admin-settings-login-facts div,
    .admin-settings-login-facts div:first-child {
        border-top: 1px solid rgba(26, 53, 65, 0.07);
        border-left: 0;
    }

    .admin-settings-login-facts div:first-child {
        border-top: 0;
    }

    .admin-settings-login-ledger-head {
        display: none;
    }

    .admin-settings-login-row {
        gap: 8px;
        padding: 12px;
    }

    .admin-settings-login-action {
        justify-content: stretch;
    }

    .admin-settings-login-disable > summary,
    .admin-settings-login-action .admin-manual-action,
    .admin-settings-login-action .admin-list-action {
        width: 100%;
        max-width: none;
        margin-left: 0;
    }

    .admin-settings-card-head {
        display: grid;
    }

    .admin-settings-section > summary {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .admin-settings-section > summary .admin-settings-state {
        grid-column: 2 / 3;
        justify-self: start;
    }
}

@media (max-width: 860px) {
    .admin-topbar,
    .admin-main {
        padding-left: 18px;
        padding-right: 18px;
    }

    .admin-topbar {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .admin-hero,
    .admin-item-card,
    .legacy-editorial-card-head,
    .software-admin-file,
    .admin-item-actions,
    .software-admin-file-actions,
    .admin-filter-head,
    .admin-board-head,
    .admin-hero-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .admin-topbar-actions,
    .admin-toolbar-actions,
    .admin-edit-actions,
    .admin-item-actions,
    .software-admin-file-actions {
        width: 100%;
    }

    .software-sync-status-head,
    .software-sync-meta,
    .software-sync-file-log article {
        align-items: flex-start;
        flex-direction: column;
    }

    .software-sync-meta span {
        text-align: left;
    }

    .legacy-video-refresh-counters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-topbar-actions > *,
    .admin-hero-actions > *,
    .admin-item-actions > *,
    .software-admin-file-actions > *,
    .admin-edit-actions > * {
        width: 100%;
    }

    .admin-create-menu,
    .admin-nav-menu {
        width: 100%;
    }

    .admin-create-menu summary,
    .admin-nav-menu summary {
        justify-content: center;
        width: 100%;
    }

    .admin-create-dropdown,
    .admin-nav-menu-dropdown {
        left: 0;
        right: auto;
        width: 100%;
        transform: none;
    }

    .admin-topbar-actions .button,
    .admin-topbar-actions .admin-nav-link,
    .admin-topbar-actions .admin-theme-toggle,
    .admin-hero-actions .button,
    .admin-item-actions .button,
    .legacy-editorial-card-head .button,
    .software-admin-file-actions .button,
    .admin-edit-actions .button,
    .admin-inline-form {
        justify-content: center;
    }

    .admin-legacy-lesson-main {
        grid-template-columns: 1fr;
    }

    .admin-legacy-lesson-thumb {
        width: 100%;
        max-width: 220px;
    }
}

/* Studio polish layer: shared visual system, without changing page structure. */
body.public-page,
body.admin-page {
    font-feature-settings: "kern" 1, "liga" 1;
}

body.public-page ::selection,
body.admin-page ::selection {
    background: rgba(0, 84, 126, 0.18);
    color: #0f1f2a;
}

body.public-page :focus-visible,
body.admin-page :focus-visible {
    outline: 3px solid rgba(0, 84, 126, 0.2);
    outline-offset: 3px;
}

body.public-page h1,
body.public-page h2,
body.public-page h3,
body.public-page h4,
body.admin-page h1,
body.admin-page h2,
body.admin-page h3,
body.admin-page h4 {
    letter-spacing: 0;
}

.public-topbar {
    min-height: 68px;
}

.public-nav a {
    position: relative;
    padding: 23px 8px 21px;
    border-bottom: 0;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.public-nav-dropdown summary {
    position: relative;
    padding: 23px 8px 21px;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.public-nav a::after {
    content: "";
    position: absolute;
    right: 8px;
    bottom: 14px;
    left: 8px;
    height: 2px;
    border-radius: 999px;
    background: var(--public-teal);
    opacity: 0;
    transform: scaleX(0.5);
    transform-origin: center;
    transition: opacity var(--motion-fast), transform var(--motion-fast);
}

.public-nav-dropdown summary::after {
    content: "";
    position: absolute;
    right: 8px;
    bottom: 14px;
    left: 8px;
    height: 2px;
    border-radius: 999px;
    background: var(--public-teal);
    opacity: 0;
    transform: scaleX(0.5);
    transform-origin: center;
    transition: opacity var(--motion-fast), transform var(--motion-fast);
}

.public-nav a.is-active::after,
.public-nav a:hover::after,
.public-nav a:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.public-nav-dropdown.is-active summary::after,
.public-nav-dropdown summary:hover::after,
.public-nav-dropdown summary:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.public-nav .public-nav-dropdown-panel a::after {
    display: none;
}

.public-search {
    border-color: rgba(0, 84, 126, 0.1);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--public-shadow-sm);
}

.public-topbar-actions .public-search {
    min-width: 0;
}

.public-search:hover,
.public-search:focus-visible {
    border-color: rgba(0, 84, 126, 0.24);
    background: #fff;
    box-shadow: 0 16px 36px rgba(0, 43, 66, 0.1);
}

.public-search .material-symbols-outlined,
.software-platform-head .material-symbols-outlined,
.software-info-band .material-symbols-outlined,
.reference-column-icon .material-symbols-outlined,
.learn-directory-heading .material-symbols-outlined {
    color: var(--public-teal);
}

.public-theme-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 0 13px 0 8px;
    border: 1px solid rgba(0, 84, 126, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--public-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), var(--public-shadow-sm);
    cursor: pointer;
}

.public-theme-toggle:hover,
.public-theme-toggle:focus-visible {
    border-color: rgba(0, 84, 126, 0.24);
    background: #fff;
    box-shadow: 0 16px 36px rgba(0, 43, 66, 0.1);
    transform: translateY(-1px);
}

.public-theme-toggle-track {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 58px;
    height: 34px;
    padding: 3px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 24% 35%, rgba(255, 255, 255, 0.95), transparent 17px),
        linear-gradient(135deg, #e6f3f8 0%, #d7eaf2 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 84, 126, 0.12);
}

.public-theme-toggle-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 30%, #fff7cf 0 22%, transparent 23%),
        linear-gradient(135deg, #ffd45f 0%, #ff9f43 100%);
    box-shadow: 0 8px 18px rgba(0, 43, 66, 0.18);
    transition:
        transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
        background-color var(--motion-fast),
        box-shadow var(--motion-fast);
}

.public-theme-toggle-icon {
    position: relative;
    z-index: 1;
    justify-self: center;
    font-size: 18px;
    transition: color var(--motion-fast), opacity var(--motion-fast), transform var(--motion-fast);
}

.public-theme-toggle-sun {
    color: #805800;
}

.public-theme-toggle-moon {
    color: rgba(0, 43, 66, 0.44);
    opacity: 0.58;
}

.public-theme-toggle-label {
    min-width: 54px;
    color: var(--public-muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.public-page-with-sidebar .public-theme-toggle {
    padding-right: 8px;
}

.public-page-with-sidebar .public-theme-toggle-label {
    display: none;
}

.public-theme-toggle.is-dark .public-theme-toggle-track,
html.public-theme-dark body.public-page .public-theme-toggle-track {
    background:
        radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.16), transparent 16px),
        linear-gradient(135deg, #15181d 0%, #272c33 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.public-theme-toggle.is-dark .public-theme-toggle-knob,
html.public-theme-dark body.public-page .public-theme-toggle-knob {
    transform: translateX(24px);
    background:
        radial-gradient(circle at 34% 30%, rgba(111, 185, 216, 0.32) 0 22%, transparent 23%),
        linear-gradient(135deg, #2a3037 0%, #15191f 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 8px 18px rgba(0, 0, 0, 0.34);
}

.public-theme-toggle.is-dark .public-theme-toggle-sun,
html.public-theme-dark body.public-page .public-theme-toggle-sun {
    color: rgba(255, 218, 128, 0.5);
    opacity: 0.58;
}

.public-theme-toggle.is-dark .public-theme-toggle-moon,
html.public-theme-dark body.public-page .public-theme-toggle-moon {
    color: #f4f5f6;
    opacity: 1;
    transform: rotate(-8deg);
}

.landing-hero h1,
.software-hero h1,
.legacy-hero h1,
.doc-title {
    color: var(--public-teal);
    text-wrap: balance;
}

.landing-copy p:last-of-type,
.software-hero-copy p:last-of-type,
.legacy-hero-copy p:last-of-type,
.doc-lead,
.reference-home-lead {
    color: var(--public-muted);
}

.landing-copy,
.software-hero-copy,
.legacy-hero-copy {
    min-width: 0;
}

.landing-actions,
.software-hero-actions {
    flex-wrap: wrap;
}

.landing-button,
.software-download-button,
.reference-tab,
.legacy-category-strip a,
.doc-chip,
.legacy-meta-link,
body.admin-page .button,
body.admin-page button,
.admin-nav-link,
.admin-theme-toggle {
    transition:
        background-color var(--motion-fast),
        border-color var(--motion-fast),
        color var(--motion-fast),
        box-shadow var(--motion-fast),
        transform var(--motion-fast);
}

.landing-button,
body.public-page .software-download-button,
body.admin-page .button,
body.admin-page button {
    border: 1px solid rgba(0, 43, 66, 0.08);
    background: linear-gradient(180deg, var(--public-teal-strong, #006b9f) 0%, var(--public-teal, #00547e) 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(0, 84, 126, 0.18);
}

.landing-button:hover,
.landing-button:focus-visible,
body.public-page .software-download-button:hover,
body.public-page .software-download-button:focus-visible,
body.admin-page .button:hover,
body.admin-page button:hover {
    background: linear-gradient(180deg, #006b9f 0%, #003a58 100%);
    color: #fff;
    box-shadow: 0 18px 38px rgba(0, 84, 126, 0.22);
    transform: translateY(-1px);
}

body.public-page .landing-button.is-secondary,
.landing-button.is-secondary,
body.admin-page .button-secondary {
    border-color: rgba(0, 84, 126, 0.18);
    background: rgba(230, 243, 248, 0.82);
    color: var(--public-teal, #00547e);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body.public-page .landing-button.is-secondary:hover,
body.public-page .landing-button.is-secondary:focus-visible,
body.admin-page .button-secondary:hover,
body.admin-page .button-secondary:focus-visible {
    border-color: rgba(0, 84, 126, 0.28);
    background: #fff;
    color: var(--public-teal-dark, #003a58);
    box-shadow: 0 12px 26px rgba(0, 43, 66, 0.1);
}

body.admin-page .alert {
    border: 1px solid rgba(179, 71, 71, 0.24);
    background: #fff1ec;
    color: #8f3328;
    box-shadow: 0 18px 42px -34px rgba(116, 45, 34, 0.38);
}

body.admin-page .alert.success {
    border-color: rgba(29, 106, 68, 0.2);
    background: #e7f6ed;
    color: #1d6a44;
    box-shadow: 0 18px 42px -34px rgba(29, 106, 68, 0.28);
}

body.admin-page .button.is-disabled,
body.admin-page .button.is-disabled:hover {
    pointer-events: none;
    opacity: 0.62;
    border-color: rgba(0, 84, 126, 0.14);
    background: rgba(230, 243, 248, 0.72);
    color: var(--public-teal, #00547e);
    box-shadow: none;
    transform: none;
}

.landing-panel,
.doc-surface,
.catalog-card,
.editorial-card,
.software-release-card,
.software-quick-card,
.software-platform-card,
.software-info-band article,
.software-seo-article,
.software-seo-faq,
.legacy-hero,
.legacy-hero-panel,
.legacy-lesson-card,
.legacy-empty-state,
.legacy-seo-section,
.reference-panel,
.doc-note-box,
.admin-panel,
.admin-overview-card,
.admin-auth-panel,
.admin-auth-copy,
.admin-item-card,
.admin-tree-link,
.admin-source-panel,
.admin-side-panel,
.legacy-editorial-card,
.legacy-editorial-column,
.software-admin-group,
.software-admin-file,
.admin-sticky-actions {
    border-color: rgba(0, 84, 126, 0.14);
    background-color: rgba(255, 255, 255, 0.84);
    box-shadow: 0 20px 52px -40px rgba(0, 43, 66, 0.24);
}

.catalog-card,
.editorial-card,
.software-release-card,
.software-platform-card,
.legacy-lesson-card,
.admin-panel,
.admin-overview-card,
.admin-auth-panel,
.admin-item-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.catalog-card::before,
.editorial-card::before,
.software-release-card::before,
.software-platform-card::before,
.legacy-lesson-card::before,
.admin-panel::before,
.admin-overview-card::before,
.admin-auth-panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 22px;
    left: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 84, 126, 0.18), transparent);
    pointer-events: none;
}

.editorial-card-link:hover,
.editorial-card-link:focus-visible,
.catalog-card-link:hover,
.catalog-card-link:focus-visible,
.software-quick-card:hover,
.software-quick-card:focus-visible,
.legacy-lesson-card:hover,
.legacy-lesson-card:focus-visible,
.admin-item-card:hover,
.admin-tree-link:hover,
.admin-tree-link.active {
    border-color: rgba(0, 84, 126, 0.26);
    background-color: #fff;
    box-shadow: 0 28px 62px -42px rgba(0, 43, 66, 0.3);
}

.landing-panel,
.software-release-card,
.legacy-hero,
.admin-auth-copy,
.admin-danger-zone {
    background-image:
        linear-gradient(135deg, rgba(230, 243, 248, 0.96), rgba(255, 255, 255, 0.82) 56%, rgba(244, 250, 252, 0.96)),
        linear-gradient(rgba(0, 84, 126, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 84, 126, 0.028) 1px, transparent 1px);
    background-size: auto, 34px 34px, 34px 34px;
}

.landing-panel-glow {
    display: none;
}

.software-trust-strip a,
.software-trust-strip span,
.reference-tab,
.doc-chip,
.legacy-category-strip a,
.legacy-meta-link,
.learn-entry-meta span,
.status-filled,
.status-empty {
    border-color: rgba(0, 84, 126, 0.14);
    background: rgba(230, 243, 248, 0.78);
    color: var(--public-muted, #506775);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.reference-tab.is-active,
.doc-chip.is-active,
.legacy-category-strip a.is-active,
.legacy-category-strip a:hover,
.legacy-category-strip a:focus-visible,
.legacy-meta-link:hover,
.legacy-meta-link:focus-visible {
    border-color: rgba(0, 84, 126, 0.28);
    background: rgba(230, 243, 248, 0.96);
    color: var(--public-teal);
}

.reference-panel,
.reference-category-card {
    background: rgba(255, 255, 255, 0.74);
}

.reference-category-card:hover {
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0, 84, 126, 0.12);
}

.reference-item-links a,
.editorial-card-link,
.catalog-card-link,
.doc-meta-grid a,
.software-info-band a,
.learn-directory-head a,
.learn-directory-list a:hover,
.learn-directory-list a:focus-visible,
.doc-breadcrumb-link:hover,
.doc-breadcrumb-link:focus-visible {
    color: var(--public-teal);
}

body.public-page .prose {
    color: var(--public-text);
    font-size: 1rem;
    line-height: 1.78;
}

body.public-page .prose h2,
body.public-page .prose h3,
body.public-page .prose h4,
.doc-section h2,
.legacy-section-head h2,
.software-seo-article h2,
.software-seo-faq h2 {
    color: var(--public-deep, #002b42);
    text-wrap: balance;
}

body.public-page .prose blockquote,
.doc-note-box,
body.admin-page .visual-editor blockquote {
    border-left-color: rgba(0, 84, 126, 0.44);
    background: rgba(230, 243, 248, 0.78);
}

.doc-article .table-wrap,
body.public-page .prose .table-wrap,
body.admin-page .visual-editor .table-wrap {
    border-color: rgba(0, 84, 126, 0.16);
    background: #fff;
    box-shadow: 0 18px 42px -34px rgba(0, 43, 66, 0.22);
}

body.public-page .prose th,
body.admin-page .visual-editor th {
    background: #e6f3f8;
    color: #0f1f2a;
}

body.public-page .prose img,
.visual-editor img,
.editor-preview img {
    box-shadow: 0 24px 58px -42px rgba(0, 43, 66, 0.36);
}

.public-sidebar,
.public-mobile-drawer,
.search-overlay-panel {
    border-color: rgba(0, 84, 126, 0.14);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 70px -46px rgba(0, 43, 66, 0.32);
}

.sidebar-section-link,
.sidebar-tree-link,
.legacy-sidebar-link {
    border-radius: 12px;
}

.sidebar-section-link:hover,
.sidebar-section-link:focus-visible,
.sidebar-section-link.is-active,
.sidebar-tree-link:hover,
.sidebar-tree-link:focus-visible,
.sidebar-tree-link.is-active,
.legacy-sidebar-link:hover,
.legacy-sidebar-link:focus-visible,
.legacy-sidebar-link.is-active {
    color: var(--public-teal);
    background: rgba(230, 243, 248, 0.86);
}

body.public-page input,
body.public-page select,
body.public-page textarea,
body.admin-page input,
body.admin-page select,
body.admin-page textarea {
    border-color: rgba(0, 84, 126, 0.18);
    background: rgba(255, 255, 255, 0.96);
    color: #0f1f2a;
    transition: border-color var(--motion-fast), box-shadow var(--motion-fast), background-color var(--motion-fast);
}

body.public-page input:focus,
body.public-page select:focus,
body.public-page textarea:focus,
body.admin-page input:focus,
body.admin-page select:focus,
body.admin-page textarea:focus {
    border-color: rgba(0, 84, 126, 0.46);
    box-shadow: 0 0 0 4px rgba(0, 84, 126, 0.09);
}

.admin-topbar {
    padding-top: 12px;
    padding-bottom: 12px;
}

.admin-nav-link,
.admin-theme-toggle {
    border-color: rgba(0, 84, 126, 0.14);
    background: rgba(255, 255, 255, 0.74);
}

.admin-nav-link:hover,
.admin-nav-link.is-active,
.admin-theme-toggle:hover {
    border-color: rgba(0, 84, 126, 0.24);
    background: #fff;
    color: var(--admin-accent);
    transform: translateY(-1px);
}

.admin-nav-link-accent {
    background: rgba(230, 243, 248, 0.9);
    border-color: rgba(0, 84, 126, 0.2);
    color: var(--admin-accent);
}

.admin-hero,
.admin-filter-shell,
.admin-board,
.editor-command-bar {
    border-color: rgba(0, 84, 126, 0.14);
    box-shadow: 0 20px 52px -42px rgba(0, 43, 66, 0.28);
}

body.admin-page .editor-toolbar,
body.admin-page .editor-command-bar,
body.admin-page .visual-editor,
body.admin-page .editor-preview,
body.admin-page .editor-mode-tabs,
body.admin-page .editor-image-import {
    border-color: rgba(0, 84, 126, 0.14);
    background: rgba(255, 255, 255, 0.88);
}

body.admin-page .editor-tool-group {
    background: rgba(244, 250, 252, 0.9);
    box-shadow: inset 0 0 0 1px rgba(0, 84, 126, 0.1);
}

body.admin-page .editor-icon-btn,
body.admin-page .editor-btn {
    transition: background-color var(--motion-fast), color var(--motion-fast), transform var(--motion-fast);
}

body.admin-page .editor-btn:hover,
body.admin-page .editor-btn:focus-visible {
    background: rgba(230, 243, 248, 0.96);
    color: var(--admin-accent);
}

body.admin-page .editor-mode-tab.is-active,
body.admin-page .editor-mini-plus,
body.admin-page .editor-mini-mark {
    background: var(--admin-accent);
}

html.admin-theme-dark body.admin-page {
    --admin-bg: #0f1820;
    --admin-surface: rgba(17, 27, 35, 0.8);
    --admin-surface-strong: rgba(17, 27, 35, 0.94);
    --admin-line: rgba(122, 154, 170, 0.18);
    --admin-muted: #a4b5bf;
    --admin-text: #edf5f8;
    --admin-accent: #7bd5ef;
    --admin-accent-hover: #9be3f4;
    --admin-accent-soft: rgba(123, 213, 239, 0.12);
    --admin-shell-surface: rgba(15, 24, 32, 0.9);
    --admin-shell-control: rgba(19, 30, 39, 0.78);
    --admin-shell-control-hover: rgba(27, 41, 52, 0.94);
    --admin-shell-control-active: rgba(28, 62, 77, 0.72);
    --admin-shell-control-border: rgba(122, 154, 170, 0.18);
    --admin-shell-control-border-strong: rgba(123, 213, 239, 0.34);
    --admin-shell-dropdown: rgba(17, 27, 35, 0.98);
    --admin-shell-dropdown-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.82);
    --admin-shell-focus: rgba(123, 213, 239, 0.2);
}

html.admin-theme-dark body.admin-page .button,
html.admin-theme-dark body.admin-page button {
    background: linear-gradient(180deg, #2c7895 0%, #17516d 100%);
    color: #fff;
}

html.admin-theme-dark body.admin-page .button:hover,
html.admin-theme-dark body.admin-page button:hover {
    background: linear-gradient(180deg, #3589a8 0%, #1f607e 100%);
}

html.admin-theme-dark body.admin-page .alert {
    border-color: rgba(255, 143, 118, 0.28);
    background: rgba(88, 32, 32, 0.46);
    color: #ffd0c5;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 18px 44px -34px rgba(0, 0, 0, 0.58);
}

html.admin-theme-dark body.admin-page .alert.success {
    border-color: rgba(125, 214, 167, 0.26);
    background: rgba(27, 68, 49, 0.46);
    color: #c9f7dc;
}

html.admin-theme-dark body.admin-page .button.is-disabled,
html.admin-theme-dark body.admin-page .button.is-disabled:hover {
    border-color: rgba(110, 215, 217, 0.12);
    background: rgba(18, 29, 38, 0.76);
    color: rgba(220, 232, 239, 0.68);
    box-shadow: none;
}

html.admin-theme-dark body.admin-page input,
html.admin-theme-dark body.admin-page select,
html.admin-theme-dark body.admin-page textarea {
    color: var(--admin-text);
}

html.admin-theme-dark body.admin-page .software-admin-group {
    border-color: rgba(123, 213, 239, 0.16);
    background: rgba(12, 23, 31, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html.admin-theme-dark body.admin-page .software-admin-file {
    border-color: rgba(123, 213, 239, 0.18);
    background:
        linear-gradient(180deg, rgba(22, 38, 49, 0.94) 0%, rgba(13, 25, 34, 0.94) 100%);
    color: var(--admin-text);
    box-shadow: 0 22px 54px -42px rgba(0, 0, 0, 0.72);
}

html.admin-theme-dark body.admin-page .software-admin-group-head h3,
html.admin-theme-dark body.admin-page .software-admin-file-main strong {
    color: var(--admin-text);
}

html.admin-theme-dark body.admin-page .software-sync-status {
    border-color: rgba(123, 213, 239, 0.18);
    background:
        linear-gradient(135deg, rgba(18, 32, 42, 0.94), rgba(12, 23, 31, 0.9)),
        radial-gradient(circle at 94% 16%, rgba(123, 213, 239, 0.12), transparent 28%);
    box-shadow: 0 24px 58px -42px rgba(0, 0, 0, 0.72);
}

html.admin-theme-dark body.admin-page .software-sync-status.is-success {
    border-color: rgba(125, 214, 167, 0.26);
    background:
        linear-gradient(135deg, rgba(19, 48, 36, 0.92), rgba(12, 23, 31, 0.9)),
        radial-gradient(circle at 94% 16%, rgba(125, 214, 167, 0.12), transparent 28%);
}

html.admin-theme-dark body.admin-page .software-sync-status.is-error {
    border-color: rgba(255, 143, 118, 0.28);
    background:
        linear-gradient(135deg, rgba(66, 29, 29, 0.88), rgba(12, 23, 31, 0.9)),
        radial-gradient(circle at 94% 16%, rgba(255, 143, 118, 0.12), transparent 28%);
}

html.admin-theme-dark body.admin-page .software-sync-status p,
html.admin-theme-dark body.admin-page .software-sync-meta span {
    color: var(--admin-muted);
}

html.admin-theme-dark body.admin-page .software-sync-progress {
    background: rgba(123, 213, 239, 0.12);
}

html.admin-theme-dark body.admin-page .software-sync-progress span {
    background: linear-gradient(90deg, #68d7dc, #80b6ff);
}

html.admin-theme-dark body.admin-page .software-sync-file-log article {
    border-color: rgba(123, 213, 239, 0.14);
    background: rgba(17, 31, 41, 0.74);
}

html.admin-theme-dark body.admin-page .legacy-video-refresh-counters article {
    border-color: rgba(123, 213, 239, 0.14);
    background: rgba(17, 31, 41, 0.74);
}

html.admin-theme-dark body.admin-page .software-admin-file .meta,
html.admin-theme-dark body.admin-page .software-admin-file .admin-breadcrumbs {
    color: var(--admin-muted);
}

html.admin-theme-dark body.admin-page .software-admin-hash {
    width: fit-content;
    max-width: 100%;
    padding: 5px 7px;
    border: 1px solid rgba(123, 213, 239, 0.14);
    border-radius: 10px;
    background: rgba(123, 213, 239, 0.08);
    color: #bdd3dd;
}

html.admin-theme-dark body.admin-page .admin-software-command-actions,
html.admin-theme-dark body.admin-page .admin-software-release-card,
html.admin-theme-dark body.admin-page .admin-software-panel,
html.admin-theme-dark body.admin-page .admin-software-sync-panel {
    border-color: var(--admin-home-line);
    background: var(--admin-home-panel);
    color: var(--admin-text);
    box-shadow: var(--admin-shadow);
}

html.admin-theme-dark body.admin-page .admin-software-release-card > .material-symbols-outlined,
html.admin-theme-dark body.admin-page .admin-software-console .software-admin-group-head .material-symbols-outlined {
    border-color: rgba(134, 194, 216, 0.18);
    background: rgba(134, 194, 216, 0.08);
    color: var(--admin-accent);
}

html.admin-theme-dark body.admin-page .admin-software-release-card.is-good > .material-symbols-outlined {
    border-color: rgba(125, 214, 167, 0.2);
    background: rgba(125, 214, 167, 0.1);
    color: #9ce0bd;
}

html.admin-theme-dark body.admin-page .admin-software-release-card.is-warning > .material-symbols-outlined {
    border-color: rgba(226, 157, 88, 0.2);
    background: rgba(226, 157, 88, 0.1);
    color: #f2c18d;
}

html.admin-theme-dark body.admin-page .admin-software-release-card strong,
html.admin-theme-dark body.admin-page .admin-software-panel-head h2,
html.admin-theme-dark body.admin-page .admin-software-console .software-admin-group-head h3,
html.admin-theme-dark body.admin-page .admin-software-console .software-admin-file-main strong {
    color: var(--admin-text);
}

html.admin-theme-dark body.admin-page .admin-software-release-card small,
html.admin-theme-dark body.admin-page .admin-software-panel-head p:not(.admin-kicker) {
    color: var(--admin-home-muted);
}

html.admin-theme-dark body.admin-page .admin-software-console .software-admin-group,
html.admin-theme-dark body.admin-page .admin-software-console .software-admin-file,
html.admin-theme-dark body.admin-page .admin-software-sync-panel .software-sync-file-log article,
html.admin-theme-dark body.admin-page .admin-software-console .software-admin-hash {
    border-color: var(--admin-home-line);
    background: var(--admin-home-panel-soft);
    box-shadow: none;
}

html.admin-theme-dark body.admin-page .admin-software-sync-panel.is-running {
    border-color: rgba(134, 194, 216, 0.26);
    background: rgba(18, 31, 41, 0.94);
}

html.admin-theme-dark body.admin-page .admin-software-sync-panel.is-success {
    border-color: rgba(125, 214, 167, 0.24);
    background: rgba(17, 43, 32, 0.9);
}

html.admin-theme-dark body.admin-page .admin-software-sync-panel.is-error {
    border-color: rgba(255, 143, 118, 0.24);
    background: rgba(55, 25, 24, 0.9);
}

@media (max-width: 760px) {
    .public-nav a::after {
        bottom: 8px;
    }

    .landing-button,
    body.public-page .software-download-button,
    body.admin-page .button,
    body.admin-page button {
        min-height: 46px;
    }

    .landing-actions,
    .software-hero-actions {
        width: 100%;
    }

    .landing-actions .landing-button,
    .software-hero-actions .landing-button {
        flex: 1 1 150px;
        min-width: 0;
        padding-right: 14px;
        padding-left: 14px;
        text-align: center;
    }

    .landing-hero h1,
    .software-hero h1 {
        font-size: clamp(3rem, 14vw, 4.8rem);
    }

    .public-theme-toggle {
        min-height: 44px;
        padding: 0 9px 0 6px;
    }

    .public-theme-toggle-track {
        width: 52px;
        height: 32px;
    }

    .public-theme-toggle-knob {
        width: 24px;
        height: 24px;
    }

    .public-theme-toggle.is-dark .public-theme-toggle-knob,
    html.public-theme-dark body.public-page .public-theme-toggle-knob {
        transform: translateX(22px);
    }

    .landing-panel,
    .doc-surface,
    .catalog-card,
    .editorial-card,
    .software-release-card,
    .software-platform-card,
    .legacy-hero,
    .legacy-lesson-card,
    .admin-panel,
    .admin-overview-card,
    .admin-auth-panel,
    .admin-item-card {
        border-radius: 18px;
    }
}

html.public-theme-dark body.public-page {
    --color-primary: #6fb9d8;
    --color-primary-hover: #8ad0ec;
    --color-primary-dark: #00547e;
    --color-primary-deep: #f4f5f6;
    --color-bg: #08090b;
    --color-surface: #111418;
    --color-surface-soft: #181c22;
    --color-surface-elevated: #20252c;
    --color-border: #2c343b;
    --color-border-strong: #3a4650;
    --color-text: #f4f5f6;
    --color-text-muted: #b1bac3;
    --color-text-subtle: #808992;
    --color-accent-soft: rgba(111, 185, 216, 0.1);
    --color-primary-soft: rgba(111, 185, 216, 0.12);
    --color-focus: rgba(111, 185, 216, 0.38);
    --color-input-bg: rgba(8, 9, 11, 0.72);
    --color-input-border: rgba(255, 255, 255, 0.13);
    --color-control-bg: rgba(17, 20, 24, 0.86);
    --color-header-bg: rgba(8, 9, 11, 0.88);
    --color-footer-bg: rgba(8, 9, 11, 0.92);
    --line: var(--color-border);
    --public-bg: var(--color-bg);
    --public-surface: var(--color-surface-soft);
    --public-surface-strong: rgba(255, 255, 255, 0.075);
    --public-surface-soft: var(--color-surface);
    --public-stroke: rgba(255, 255, 255, 0.11);
    --public-text: var(--color-text);
    --public-muted: var(--color-text-muted);
    --public-teal: var(--color-primary);
    --public-teal-strong: var(--color-primary-hover);
    --public-teal-dark: #b8e7f8;
    --public-deep: var(--color-primary-deep);
    --public-border: var(--color-border);
    --public-dark: #08090b;
    --file-accent: #76a9c2;
    --file-accent-strong: #8fbed2;
    --file-accent-dark: #d7e8f0;
    --file-accent-soft: rgba(0, 84, 126, 0.28);
    --file-deep: #101820;
    --public-shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.18);
    --public-shadow-md: 0 18px 46px rgba(0, 0, 0, 0.26);
    --public-shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.34);
    background:
        linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
        radial-gradient(circle at 20% 0%, rgba(111, 185, 216, 0.08), transparent 34%),
        linear-gradient(180deg, #08090b 0%, #101216 52%, #08090b 100%);
    background-size: 52px 52px, 52px 52px, auto, auto;
}

html.public-theme-dark body.public-page .public-header {
    background: var(--color-header-bg);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 44px -34px rgba(0, 0, 0, 0.64);
}

html.public-theme-dark body.public-page .public-brand-logo {
    filter: brightness(0) saturate(100%) invert(96%) sepia(4%) saturate(172%) hue-rotate(169deg) brightness(98%) contrast(92%);
}

html.public-theme-dark body.public-page .public-nav a,
html.public-theme-dark body.public-page .public-nav-dropdown summary {
    color: var(--public-text);
}

html.public-theme-dark body.public-page .doc-breadcrumb-link,
html.public-theme-dark body.public-page .public-footer,
html.public-theme-dark body.public-page .public-footer-links a {
    color: var(--public-muted);
}

html.public-theme-dark body.public-page .public-nav a.is-active,
html.public-theme-dark body.public-page .public-nav a:hover,
html.public-theme-dark body.public-page .public-nav a:focus-visible,
html.public-theme-dark body.public-page .public-nav-dropdown.is-active summary,
html.public-theme-dark body.public-page .public-nav-dropdown summary:hover,
html.public-theme-dark body.public-page .public-nav-dropdown summary:focus-visible,
html.public-theme-dark body.public-page .public-footer-links a:hover,
html.public-theme-dark body.public-page .public-footer-links a:focus-visible {
    color: var(--public-teal);
}

html.public-theme-dark body.public-page .public-nav-dropdown-panel {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(17, 20, 25, 0.98);
    box-shadow: 0 24px 56px -28px rgba(0, 0, 0, 0.64);
}

html.public-theme-dark body.public-page .public-nav-recommended-link,
html.public-theme-dark body.public-page .public-nav .public-nav-dropdown-panel a.public-nav-recommended-link {
    border-color: rgba(255, 179, 71, 0.24);
    background: rgba(255, 179, 71, 0.09);
}

html.public-theme-dark body.public-page .public-nav-recommended-icon {
    border-color: rgba(111, 185, 216, 0.18);
    background: rgba(111, 185, 216, 0.09);
}

html.public-theme-dark body.public-page .public-nav-recommended-badge {
    border-color: rgba(255, 179, 71, 0.24);
    background: rgba(255, 179, 71, 0.12);
    color: #ffd099;
}

html.public-theme-dark body.public-page .public-nav-dropdown-divider {
    background: rgba(255, 255, 255, 0.1);
}

html.public-theme-dark body.public-page .public-nav .public-nav-dropdown-panel a:hover,
html.public-theme-dark body.public-page .public-nav .public-nav-dropdown-panel a:focus-visible,
html.public-theme-dark body.public-page .public-nav .public-nav-dropdown-panel a.is-active,
html.public-theme-dark body.public-page .public-mobile-nav-group.is-active summary,
html.public-theme-dark body.public-page .public-mobile-nav-group summary:hover,
html.public-theme-dark body.public-page .public-mobile-nav-group summary:focus-visible {
    background: rgba(111, 185, 216, 0.1);
    color: var(--public-teal);
}

html.public-theme-dark body.public-page .public-search,
html.public-theme-dark body.public-page .public-theme-toggle,
html.public-theme-dark body.public-page .public-menu-toggle,
html.public-theme-dark body.public-page .public-sidebar-close,
html.public-theme-dark body.public-page .search-input-shell,
html.public-theme-dark body.public-page .search-scope-chip,
html.public-theme-dark body.public-page .search-toolbar-shortcut {
    border-color: rgba(255, 255, 255, 0.11);
    background: var(--color-control-bg);
    color: var(--public-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--public-shadow-sm);
}

html.public-theme-dark body.public-page .public-search:hover,
html.public-theme-dark body.public-page .public-search:focus-visible,
html.public-theme-dark body.public-page .public-theme-toggle:hover,
html.public-theme-dark body.public-page .public-theme-toggle:focus-visible,
html.public-theme-dark body.public-page .public-menu-toggle:hover,
html.public-theme-dark body.public-page .public-menu-toggle:focus-visible,
html.public-theme-dark body.public-page .public-sidebar-close:hover,
html.public-theme-dark body.public-page .public-sidebar-close:focus-visible {
    border-color: rgba(111, 185, 216, 0.28);
    background: rgba(24, 28, 34, 0.98);
    color: var(--public-teal);
}

html.public-theme-dark body.public-page .public-search-shortcut,
html.public-theme-dark body.public-page .sidebar-section-meta,
html.public-theme-dark body.public-page .sidebar-count,
html.public-theme-dark body.public-page .sidebar-toggle-button {
    background: rgba(255, 255, 255, 0.075);
    color: var(--public-muted);
    box-shadow: none;
}

html.public-theme-dark body.public-page .sidebar-toggle-button:hover,
html.public-theme-dark body.public-page .sidebar-toggle-button:focus-visible {
    background: rgba(111, 185, 216, 0.1);
    color: var(--public-teal);
}

html.public-theme-dark body.public-page .public-search-trigger-title,
html.public-theme-dark body.public-page .public-search-trigger-mobile-title,
html.public-theme-dark body.public-page .section-heading h1,
html.public-theme-dark body.public-page .section-heading h2,
html.public-theme-dark body.public-page .doc-title,
html.public-theme-dark body.public-page .landing-hero h1,
html.public-theme-dark body.public-page .software-hero h1,
html.public-theme-dark body.public-page .legacy-hero h1,
html.public-theme-dark body.public-page .legacy-section-head h2,
html.public-theme-dark body.public-page .catalog-subhead h2,
html.public-theme-dark body.public-page .catalog-card h2,
html.public-theme-dark body.public-page .legacy-card-body strong,
html.public-theme-dark body.public-page .software-platform-head h3,
html.public-theme-dark body.public-page .software-release-version,
html.public-theme-dark body.public-page .software-release-flow-item b,
html.public-theme-dark body.public-page .software-install-hero h3,
html.public-theme-dark body.public-page .software-install-os-card h3,
html.public-theme-dark body.public-page .software-install-steps h3,
html.public-theme-dark body.public-page .software-install-port-help h4,
html.public-theme-dark body.public-page .software-install-troubles h3,
html.public-theme-dark body.public-page .software-install-trouble-grid summary,
html.public-theme-dark body.public-page .software-file-main strong,
html.public-theme-dark body.public-page .software-info-band h2,
html.public-theme-dark body.public-page .software-seo-article h2,
html.public-theme-dark body.public-page .software-seo-faq h2,
html.public-theme-dark body.public-page .software-seo-article h3,
html.public-theme-dark body.public-page .reference-panel-heading h2,
html.public-theme-dark body.public-page .reference-category-title,
html.public-theme-dark body.public-page .catalog-item-card strong,
html.public-theme-dark body.public-page .doc-section h2,
html.public-theme-dark body.public-page .prose h2,
html.public-theme-dark body.public-page .prose h3,
html.public-theme-dark body.public-page .prose h4 {
    color: var(--public-text);
}

html.public-theme-dark body.public-page .landing-kicker,
html.public-theme-dark body.public-page .section-heading p,
html.public-theme-dark body.public-page .software-card-label,
html.public-theme-dark body.public-page .software-release-meta dt,
html.public-theme-dark body.public-page .legacy-card-meta,
html.public-theme-dark body.public-page .legacy-section-head p,
html.public-theme-dark body.public-page .search-state-kicker {
    color: var(--public-teal);
}

html.public-theme-dark body.public-page .landing-copy p:last-of-type,
html.public-theme-dark body.public-page .software-hero-copy p:last-of-type,
html.public-theme-dark body.public-page .legacy-hero-copy p:last-of-type,
html.public-theme-dark body.public-page .doc-lead,
html.public-theme-dark body.public-page .reference-home-lead,
html.public-theme-dark body.public-page .catalog-card p,
html.public-theme-dark body.public-page .editorial-card p,
html.public-theme-dark body.public-page .legacy-card-lead,
html.public-theme-dark body.public-page .legacy-basic-projects-content > p,
html.public-theme-dark body.public-page .software-file-main span,
html.public-theme-dark body.public-page .software-install-hero p,
html.public-theme-dark body.public-page .software-install-os-card li,
html.public-theme-dark body.public-page .software-install-steps p,
html.public-theme-dark body.public-page .software-install-port-help li,
html.public-theme-dark body.public-page .software-install-troubles p,
html.public-theme-dark body.public-page .software-info-band p,
html.public-theme-dark body.public-page .software-seo-article p,
html.public-theme-dark body.public-page .software-seo-article li,
html.public-theme-dark body.public-page .software-seo-faq p,
html.public-theme-dark body.public-page .catalog-item-card p,
html.public-theme-dark body.public-page .catalog-item-card span,
html.public-theme-dark body.public-page .reference-panel-lead,
html.public-theme-dark body.public-page .reference-tooltip-body,
html.public-theme-dark body.public-page .search-state-copy,
html.public-theme-dark body.public-page .search-result-excerpt {
    color: var(--public-muted);
}

html.public-theme-dark body.public-page .landing-panel,
html.public-theme-dark body.public-page .doc-surface,
html.public-theme-dark body.public-page .doc-related-explorer,
html.public-theme-dark body.public-page .doc-related-preview,
html.public-theme-dark body.public-page .catalog-card,
html.public-theme-dark body.public-page .editorial-card,
html.public-theme-dark body.public-page .software-release-card,
html.public-theme-dark body.public-page .software-quick-card,
html.public-theme-dark body.public-page .software-platform-card,
html.public-theme-dark body.public-page .software-file-row,
html.public-theme-dark body.public-page .software-install-hero,
html.public-theme-dark body.public-page .software-install-os-card,
html.public-theme-dark body.public-page .software-install-steps article,
html.public-theme-dark body.public-page .software-install-port-help,
html.public-theme-dark body.public-page .software-install-troubles,
html.public-theme-dark body.public-page .software-install-trouble-grid details,
html.public-theme-dark body.public-page .software-info-band article,
html.public-theme-dark body.public-page .software-seo-article,
html.public-theme-dark body.public-page .software-seo-faq,
html.public-theme-dark body.public-page .software-seo-faq details,
html.public-theme-dark body.public-page .legacy-hero,
html.public-theme-dark body.public-page .legacy-hero-panel,
html.public-theme-dark body.public-page .legacy-basic-projects,
html.public-theme-dark body.public-page .legacy-lesson-card,
html.public-theme-dark body.public-page .legacy-empty-state,
html.public-theme-dark body.public-page .legacy-seo-section,
html.public-theme-dark body.public-page .legacy-toc,
html.public-theme-dark body.public-page .legacy-related-lessons,
html.public-theme-dark body.public-page .legacy-related-card,
html.public-theme-dark body.public-page .reference-panel,
html.public-theme-dark body.public-page .reference-category-card,
html.public-theme-dark body.public-page .doc-note-box,
html.public-theme-dark body.public-page .catalog-item-card,
html.public-theme-dark body.public-page .search-overlay-panel,
html.public-theme-dark body.public-page .search-suggestion-card,
html.public-theme-dark body.public-page .search-result-card,
html.public-theme-dark body.public-page .public-sidebar,
html.public-theme-dark body.public-page .public-mobile-drawer {
    border-color: rgba(255, 255, 255, 0.105);
    background-color: rgba(17, 20, 24, 0.88);
    box-shadow: var(--public-shadow-md);
}

html.public-theme-dark body.public-page .landing-panel,
html.public-theme-dark body.public-page .software-release-card,
html.public-theme-dark body.public-page .legacy-hero {
    background-image:
        linear-gradient(135deg, rgba(24, 28, 34, 0.98), rgba(17, 20, 24, 0.9) 56%, rgba(8, 9, 11, 0.92)),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
}

html.public-theme-dark body.public-page .legacy-basic-projects {
    background-image:
        linear-gradient(135deg, rgba(24, 28, 34, 0.98), rgba(17, 20, 24, 0.9)),
        linear-gradient(90deg, rgba(111, 185, 216, 0.1), transparent 46%);
}

html.public-theme-dark body.public-page .software-setup-note span {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(17, 20, 24, 0.72);
}

html.public-theme-dark body.public-page .software-setup-note strong {
    background: rgba(111, 185, 216, 0.12);
    color: var(--public-teal);
}

html.public-theme-dark body.public-page .software-install-hero {
    background-image:
        radial-gradient(circle at top right, rgba(111, 185, 216, 0.14), transparent 42%),
        linear-gradient(135deg, rgba(24, 28, 34, 0.98), rgba(17, 20, 24, 0.92));
}

html.public-theme-dark body.public-page .software-install-checklist li {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
    color: var(--public-text);
}

html.public-theme-dark body.public-page .software-install-checklist span,
html.public-theme-dark body.public-page .software-install-step-number {
    background: rgba(111, 185, 216, 0.12);
    color: var(--public-teal);
}

html.public-theme-dark body.public-page .software-install-guide code {
    background: rgba(111, 185, 216, 0.12);
    color: #9be8ff;
}

html.public-theme-dark body.public-page .software-install-steps pre {
    background: #07141a;
}

html.public-theme-dark body.public-page .software-install-steps pre code {
    background: transparent;
    color: #d8fff8;
}

html.public-theme-dark body.public-page .software-release-card-head p,
html.public-theme-dark body.public-page .software-release-flow-item div span {
    color: rgba(220, 232, 239, 0.72);
}

html.public-theme-dark body.public-page .software-release-flow-item {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
}

html.public-theme-dark body.public-page .software-release-flow-item > .material-symbols-outlined {
    background: rgba(111, 185, 216, 0.12);
    color: var(--public-teal);
}

html.public-theme-dark body.public-page .software-platform-card:target {
    border-color: rgba(111, 185, 216, 0.42);
    box-shadow:
        0 26px 72px -42px rgba(111, 185, 216, 0.28),
        0 0 0 5px rgba(111, 185, 216, 0.1);
}

html.public-theme-dark body.public-page .software-hero-file rect,
html.public-theme-dark body.public-page .software-hero-cloud path:first-child,
html.public-theme-dark body.public-page .software-hero-download circle {
    fill: rgba(17, 20, 24, 0.78);
    stroke: rgba(255, 255, 255, 0.13);
}

html.public-theme-dark body.public-page .software-hero-laptop-base {
    fill: rgba(244, 250, 252, 0.9);
    stroke: rgba(255, 255, 255, 0.14);
}

html.public-theme-dark body.public-page .software-hero-chip {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(17, 20, 24, 0.78);
    color: var(--public-text);
}

html.public-theme-dark body.public-page .legacy-hero-scene {
    filter: drop-shadow(0 30px 38px rgba(0, 0, 0, 0.34));
}

html.public-theme-dark body.public-page .legacy-hero-card,
html.public-theme-dark body.public-page .legacy-hero-project rect {
    fill: rgba(17, 20, 24, 0.76);
    stroke: rgba(255, 255, 255, 0.13);
}

html.public-theme-dark body.public-page .legacy-hero-desk {
    fill: rgba(24, 28, 34, 0.92);
    stroke: rgba(255, 255, 255, 0.1);
}

html.public-theme-dark body.public-page .legacy-hero-laptop path:nth-child(2) {
    fill: rgba(244, 250, 252, 0.9);
}

html.public-theme-dark body.public-page .legacy-hero-floating-chip {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(17, 20, 24, 0.78);
    color: var(--public-text);
}

html.public-theme-dark body.public-page .legacy-basic-projects-visual h2 {
    color: var(--public-text);
}

html.public-theme-dark body.public-page .legacy-basic-projects-columns a {
    color: var(--public-teal);
}

html.public-theme-dark body.public-page .legacy-basic-projects-columns a:hover,
html.public-theme-dark body.public-page .legacy-basic-projects-columns a:focus-visible {
    color: var(--public-text);
}

html.public-theme-dark body.public-page .catalog-card::before,
html.public-theme-dark body.public-page .editorial-card::before,
html.public-theme-dark body.public-page .software-release-card::before,
html.public-theme-dark body.public-page .software-platform-card::before,
html.public-theme-dark body.public-page .legacy-lesson-card::before {
    background: linear-gradient(90deg, transparent, rgba(111, 185, 216, 0.24), transparent);
}

html.public-theme-dark body.public-page .software-quick-card:hover,
html.public-theme-dark body.public-page .software-quick-card:focus-visible,
html.public-theme-dark body.public-page .software-file-row:hover,
html.public-theme-dark body.public-page .legacy-lesson-card:hover,
html.public-theme-dark body.public-page .legacy-lesson-card:focus-visible,
html.public-theme-dark body.public-page .legacy-related-card:hover,
html.public-theme-dark body.public-page .legacy-related-card:focus-visible,
html.public-theme-dark body.public-page .catalog-card-link:hover,
html.public-theme-dark body.public-page .catalog-card-link:focus-visible,
html.public-theme-dark body.public-page .editorial-card-link:hover,
html.public-theme-dark body.public-page .editorial-card-link:focus-visible,
html.public-theme-dark body.public-page .search-suggestion-card:hover,
html.public-theme-dark body.public-page .search-suggestion-card:focus-visible,
html.public-theme-dark body.public-page .search-result-card:hover,
html.public-theme-dark body.public-page .search-result-card:focus-visible,
html.public-theme-dark body.public-page .search-result-card.is-active {
    border-color: rgba(111, 185, 216, 0.26);
    background-color: rgba(24, 28, 34, 0.98);
    box-shadow: var(--public-shadow-lg);
}

html.public-theme-dark body.public-page .landing-button,
html.public-theme-dark body.public-page .software-download-button {
    border-color: rgba(111, 185, 216, 0.24);
    background: linear-gradient(180deg, #237fa8 0%, #00547e 100%);
    color: #fff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

html.public-theme-dark body.public-page .landing-button:hover,
html.public-theme-dark body.public-page .landing-button:focus-visible,
html.public-theme-dark body.public-page .software-download-button:hover,
html.public-theme-dark body.public-page .software-download-button:focus-visible {
    background: linear-gradient(180deg, #2d9fd3 0%, #006b9f 100%);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
}

html.public-theme-dark body.public-page .landing-button.is-secondary,
html.public-theme-dark body.public-page .software-trust-strip a,
html.public-theme-dark body.public-page .software-trust-strip span,
html.public-theme-dark body.public-page .reference-tab,
html.public-theme-dark body.public-page .doc-chip,
html.public-theme-dark body.public-page .legacy-category-strip a,
html.public-theme-dark body.public-page .legacy-meta-link,
html.public-theme-dark body.public-page .legacy-entry-action,
html.public-theme-dark body.public-page .learn-entry-meta span,
html.public-theme-dark body.public-page .software-quick-badge {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
    color: var(--public-teal);
    box-shadow: none;
}

html.public-theme-dark body.public-page .software-trust-strip a:hover,
html.public-theme-dark body.public-page .software-trust-strip a:focus-visible {
    border-color: rgba(111, 185, 216, 0.34);
    background: rgba(111, 185, 216, 0.12);
    color: var(--public-text);
    box-shadow: 0 14px 30px -24px rgba(0, 0, 0, 0.52);
}

html.public-theme-dark body.public-page .landing-button.is-secondary:hover,
html.public-theme-dark body.public-page .landing-button.is-secondary:focus-visible,
html.public-theme-dark body.public-page .reference-tab:hover,
html.public-theme-dark body.public-page .reference-tab:focus-visible,
html.public-theme-dark body.public-page .reference-tab.is-active,
html.public-theme-dark body.public-page .doc-chip:hover,
html.public-theme-dark body.public-page .doc-chip:focus-visible,
html.public-theme-dark body.public-page .doc-chip.is-active,
html.public-theme-dark body.public-page .legacy-category-strip a:hover,
html.public-theme-dark body.public-page .legacy-category-strip a:focus-visible,
html.public-theme-dark body.public-page .legacy-category-strip a.is-active,
html.public-theme-dark body.public-page .legacy-entry-action:hover,
html.public-theme-dark body.public-page .legacy-entry-action:focus-visible {
    border-color: rgba(111, 185, 216, 0.3);
    background: rgba(111, 185, 216, 0.12);
    color: #dff3fb;
}

html.public-theme-dark body.public-page .public-sidebar-mobile-head,
html.public-theme-dark body.public-page .public-mobile-drawer-note,
html.public-theme-dark body.public-page .public-sidebar-intro,
html.public-theme-dark body.public-page .sidebar-section-link:hover,
html.public-theme-dark body.public-page .sidebar-section-link:focus-visible,
html.public-theme-dark body.public-page .sidebar-section-link.is-active,
html.public-theme-dark body.public-page .sidebar-tree-link:hover,
html.public-theme-dark body.public-page .sidebar-tree-link:focus-visible,
html.public-theme-dark body.public-page .sidebar-tree-link.is-active,
html.public-theme-dark body.public-page .legacy-sidebar-link:hover,
html.public-theme-dark body.public-page .legacy-sidebar-link:focus-visible,
html.public-theme-dark body.public-page .legacy-sidebar-link.is-active {
    background: rgba(111, 185, 216, 0.1);
    color: var(--public-teal);
}

html.public-theme-dark body.public-page .legacy-article {
    border-color: rgba(255, 255, 255, 0.105);
    background:
        linear-gradient(180deg, rgba(17, 20, 24, 0.96), rgba(17, 20, 24, 0.9)),
        var(--color-surface);
}

html.public-theme-dark body.public-page .legacy-article h2 {
    border-top-color: rgba(255, 255, 255, 0.11);
}

html.public-theme-dark body.public-page .legacy-article img {
    border-color: rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.065);
}

html.public-theme-dark body.public-page .doc-related-link {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.055);
    color: var(--public-text);
}

html.public-theme-dark body.public-page .doc-related-link:hover,
html.public-theme-dark body.public-page .doc-related-link:focus-visible,
html.public-theme-dark body.public-page .doc-related-link.is-active {
    border-color: rgba(111, 185, 216, 0.24);
    background: rgba(111, 185, 216, 0.12);
    color: var(--public-teal);
}

html.public-theme-dark body.public-page .doc-related-preview {
    background: rgba(24, 28, 34, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html.public-theme-dark body.public-page .doc-related-preview-label {
    background: rgba(111, 185, 216, 0.12);
    color: var(--public-teal);
}

html.public-theme-dark body.public-page .doc-related-preview code {
    background: rgba(255, 255, 255, 0.065);
    color: #eef2f4;
}

html.public-theme-dark body.public-page .public-nav-backdrop {
    background: rgba(3, 4, 5, 0.68);
}

html.public-theme-dark body.public-page input,
html.public-theme-dark body.public-page select,
html.public-theme-dark body.public-page textarea,
html.public-theme-dark body.public-page .search-input-shell input {
    border-color: var(--color-input-border);
    background: var(--color-input-bg);
    color: var(--public-text);
}

html.public-theme-dark body.public-page input::placeholder,
html.public-theme-dark body.public-page textarea::placeholder,
html.public-theme-dark body.public-page .search-input-shell input::placeholder {
    color: rgba(177, 186, 195, 0.72);
}

html.public-theme-dark body.public-page input:focus,
html.public-theme-dark body.public-page select:focus,
html.public-theme-dark body.public-page textarea:focus,
html.public-theme-dark body.public-page .search-input-shell:focus-within {
    border-color: var(--color-focus);
    box-shadow: 0 0 0 4px rgba(111, 185, 216, 0.1);
}

html.public-theme-dark body.public-page .prose code,
html.public-theme-dark body.public-page .doc-lead code,
html.public-theme-dark body.public-page .catalog-item-card code,
html.public-theme-dark body.public-page .software-seo-faq code,
html.public-theme-dark body.public-page .search-state-copy code {
    background: rgba(255, 255, 255, 0.065);
    color: #eef2f4;
}

html.public-theme-dark body.public-page .prose blockquote,
html.public-theme-dark body.public-page .doc-note-box {
    border-left-color: rgba(111, 185, 216, 0.38);
    background: rgba(255, 255, 255, 0.05);
}

html.public-theme-dark body.public-page .content-callout,
html.public-theme-dark body.public-page .legacy-callout,
html.public-theme-dark body.public-page .legacy-article .alert {
    border-color: rgba(111, 185, 216, 0.22);
    border-left-color: var(--public-teal);
    background: rgba(111, 185, 216, 0.1);
    color: var(--public-text);
    box-shadow: 0 18px 46px -38px rgba(0, 0, 0, 0.66);
}

html.public-theme-dark body.public-page .content-callout-danger,
html.public-theme-dark body.public-page .legacy-callout-danger,
html.public-theme-dark body.public-page .legacy-article .alert-danger {
    border-color: rgba(255, 143, 118, 0.28);
    border-left-color: #ff8f76;
    background: rgba(88, 32, 32, 0.38);
    color: #ffd0c5;
}

html.public-theme-dark body.public-page .content-callout-info,
html.public-theme-dark body.public-page .legacy-callout-info,
html.public-theme-dark body.public-page .legacy-article .alert-info {
    border-color: rgba(111, 185, 216, 0.28);
    border-left-color: var(--public-teal);
    background: rgba(111, 185, 216, 0.12);
    color: #dff3fb;
}

html.public-theme-dark body.public-page .content-callout-success,
html.public-theme-dark body.public-page .legacy-callout-success,
html.public-theme-dark body.public-page .legacy-article .alert-success {
    border-color: rgba(125, 214, 167, 0.24);
    border-left-color: #7dd6a7;
    background: rgba(27, 68, 49, 0.38);
    color: #c9f7dc;
}

html.public-theme-dark body.public-page .doc-article .table-wrap,
html.public-theme-dark body.public-page .prose .table-wrap {
    border-color: rgba(255, 255, 255, 0.11);
    background: rgba(17, 20, 24, 0.9);
}

html.public-theme-dark body.public-page th,
html.public-theme-dark body.public-page td,
html.public-theme-dark body.public-page .prose th,
html.public-theme-dark body.public-page .prose td {
    border-bottom-color: var(--color-border);
}

html.public-theme-dark body.public-page .prose th {
    background: rgba(255, 255, 255, 0.075);
    color: var(--public-text);
}

html.public-theme-dark body.public-page .prose td {
    color: var(--public-text);
}

html.public-theme-dark body.public-page .legacy-card-media,
html.public-theme-dark body.public-page .legacy-entry-cover,
html.public-theme-dark body.public-page .legacy-related-media,
html.public-theme-dark body.public-page .software-quick-icon,
html.public-theme-dark body.public-page .reference-column-icon {
    background: rgba(255, 255, 255, 0.065);
    color: var(--public-teal);
}

html.public-theme-dark body.public-page .legacy-video-badge,
html.public-theme-dark body.public-page .legacy-entry-cover figcaption {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 9, 11, 0.78);
    color: var(--public-text);
    box-shadow: 0 16px 34px -22px rgba(0, 0, 0, 0.82);
}

html.public-theme-dark body.public-page .legacy-card-media img,
html.public-theme-dark body.public-page .legacy-entry-cover img,
html.public-theme-dark body.public-page .prose img {
    box-shadow: 0 24px 58px -42px rgba(0, 0, 0, 0.82);
}

html.public-theme-dark body.public-page .wiki-hero {
    border-color: rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 82% 20%, rgba(111, 185, 216, 0.16), transparent 32%),
        linear-gradient(135deg, rgba(18, 28, 34, 0.96), rgba(9, 12, 16, 0.94));
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.32);
}

html.public-theme-dark body.public-page .wiki-hero h1,
html.public-theme-dark body.public-page .wiki-section-head h2,
html.public-theme-dark body.public-page .wiki-linked-head h2,
html.public-theme-dark body.public-page .wiki-category-card strong,
html.public-theme-dark body.public-page .wiki-article-main strong,
html.public-theme-dark body.public-page .wiki-file-card strong {
    color: var(--public-text);
}

html.public-theme-dark body.public-page .wiki-hero p,
html.public-theme-dark body.public-page .wiki-category-card small,
html.public-theme-dark body.public-page .wiki-article-row small,
html.public-theme-dark body.public-page .wiki-file-card small,
html.public-theme-dark body.public-page .wiki-linked-head p {
    color: var(--public-muted);
}

html.public-theme-dark body.public-page .wiki-hero-stats span {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    color: var(--public-muted);
}

html.public-theme-dark body.public-page .wiki-hero-stats strong {
    color: var(--public-text);
}

html.public-theme-dark body.public-page .wiki-category-card,
html.public-theme-dark body.public-page .wiki-article-row,
html.public-theme-dark body.public-page .wiki-linked-videos,
html.public-theme-dark body.public-page .wiki-linked-files {
    border-color: rgba(255, 255, 255, 0.11);
    background: rgba(17, 20, 25, 0.82);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

html.public-theme-dark body.public-page .wiki-file-card {
    border-color: rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.055);
}

html.public-theme-dark body.public-page .wiki-category-card:hover,
html.public-theme-dark body.public-page .wiki-category-card:focus-visible,
html.public-theme-dark body.public-page .wiki-article-row:hover,
html.public-theme-dark body.public-page .wiki-article-row:focus-within,
html.public-theme-dark body.public-page .wiki-file-card:hover,
html.public-theme-dark body.public-page .wiki-file-card:focus-visible,
html.public-theme-dark body.public-page .wiki-datasheet-link:hover,
html.public-theme-dark body.public-page .wiki-datasheet-link:focus-visible,
html.public-theme-dark body.public-page .wiki-article-open:hover,
html.public-theme-dark body.public-page .wiki-article-open:focus-visible {
    border-color: rgba(111, 185, 216, 0.34);
    background: rgba(111, 185, 216, 0.12);
}

html.public-theme-dark body.public-page .wiki-datasheet-link {
    border-color: rgba(111, 185, 216, 0.24);
    background: rgba(111, 185, 216, 0.1);
    color: var(--public-teal);
}

html.public-theme-dark body.public-page .search-overlay-backdrop {
    background: rgba(3, 4, 5, 0.7);
}

html.public-theme-dark body.public-page .search-overlay-close,
html.public-theme-dark body.public-page .search-input-reset {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.065);
    color: var(--public-muted);
}

html.public-theme-dark body.public-page .search-overlay-close:hover,
html.public-theme-dark body.public-page .search-overlay-close:focus-visible,
html.public-theme-dark body.public-page .search-input-reset:hover,
html.public-theme-dark body.public-page .search-input-reset:focus-visible {
    background: rgba(111, 185, 216, 0.1);
    color: var(--public-teal);
}

html.public-theme-dark body.public-page .scroll-top-button {
    border-color: rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(circle at 28% 18%, rgba(111, 185, 216, 0.18), rgba(111, 185, 216, 0) 36%),
        linear-gradient(145deg, rgba(24, 28, 34, 0.96), rgba(8, 9, 11, 0.9));
    color: var(--public-teal);
    box-shadow: 0 18px 42px -24px rgba(0, 0, 0, 0.82), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html.public-theme-dark body.public-page .scroll-top-button:hover,
html.public-theme-dark body.public-page .scroll-top-button:focus-visible {
    border-color: rgba(111, 185, 216, 0.28);
    background:
        radial-gradient(circle at 28% 18%, rgba(111, 185, 216, 0.22), rgba(111, 185, 216, 0) 36%),
        linear-gradient(145deg, rgba(31, 36, 43, 0.98), rgba(12, 14, 17, 0.94));
}

@media (max-width: 430px) {
    .public-theme-toggle {
        width: 44px;
        min-width: 44px;
        padding: 0;
        justify-content: center;
    }

    .public-theme-toggle-track {
        width: 34px;
        grid-template-columns: 1fr;
        background:
            radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.95), transparent 17px),
            linear-gradient(135deg, #e6f3f8 0%, #d7eaf2 100%);
    }

    .public-theme-toggle-icon {
        grid-area: 1 / 1;
    }

    .public-theme-toggle-moon {
        opacity: 0;
    }

    .public-theme-toggle.is-dark .public-theme-toggle-knob,
    html.public-theme-dark body.public-page .public-theme-toggle-knob {
        transform: none;
    }

    .public-theme-toggle.is-dark .public-theme-toggle-sun,
    html.public-theme-dark body.public-page .public-theme-toggle-sun {
        opacity: 0;
    }

    .public-theme-toggle.is-dark .public-theme-toggle-moon,
    html.public-theme-dark body.public-page .public-theme-toggle-moon {
        opacity: 1;
    }

    .public-theme-toggle-label {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-theme-toggle,
    .public-theme-toggle-track,
    .public-theme-toggle-knob,
    .public-theme-toggle-icon,
    .public-theme-toggle-label {
        transition: none;
    }
}

body.admin-page .legacy-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

body.admin-page .legacy-topic-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

body.admin-page .legacy-topic-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

body.admin-page .legacy-topic-search {
    margin: 0;
}

body.admin-page .legacy-topic-counter {
    display: inline-grid;
    place-items: center;
    min-width: 96px;
    min-height: 48px;
    padding: 8px 14px;
    border: 1px solid var(--admin-line);
    border-radius: 16px;
    background: rgba(0, 84, 126, 0.08);
    color: var(--admin-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

body.admin-page .legacy-topic-counter strong {
    display: block;
    color: var(--admin-accent);
    font: 800 1.35rem/1 "Space Grotesk", sans-serif;
}

body.admin-page .legacy-topic-selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

body.admin-page .legacy-topic-selected-chip,
body.admin-page .legacy-topic-selected-empty {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--admin-line);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
}

body.admin-page .legacy-topic-selected-chip {
    background: rgba(230, 243, 248, 0.82);
    color: var(--admin-accent);
}

body.admin-page .legacy-topic-selected-empty {
    background: rgba(255, 255, 255, 0.62);
    color: var(--admin-muted);
}

body.admin-page .legacy-topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

body.admin-page .legacy-topic-toggle {
    width: fit-content;
    cursor: pointer;
}

body.admin-page .legacy-topic-toggle-button {
    min-height: 48px;
    white-space: nowrap;
    pointer-events: none;
}

body.admin-page .legacy-topic-disclosure-control {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

body.admin-page .legacy-topic-disclosure-control:not(:checked) ~ .legacy-topic-full {
    display: none;
}

body.admin-page .legacy-topic-disclosure-control:checked ~ .legacy-topic-summary .legacy-topic-toggle-button {
    border-color: rgba(0, 84, 126, 0.28);
    background: rgba(230, 243, 248, 0.82);
    color: var(--admin-accent);
}

body.admin-page .legacy-topic-disclosure-control:focus-visible ~ .legacy-topic-summary .legacy-topic-toggle-button {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 129, 132, 0.12);
}

body.admin-page .legacy-topic-full {
    display: grid;
    gap: 14px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--admin-line);
}

body.admin-page .legacy-topic-option {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid var(--admin-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--admin-text);
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.admin-page .legacy-topic-option[hidden],
body.admin-page .legacy-topic-option.is-filtered-out,
body.admin-page .legacy-topic-empty[hidden] {
    display: none !important;
}

body.admin-page .legacy-topic-option:hover,
body.admin-page .legacy-topic-option:focus-within {
    border-color: rgba(0, 84, 126, 0.32);
    background: rgba(244, 250, 252, 0.96);
    transform: translateY(-1px);
}

body.admin-page .legacy-topic-option:has(input:checked) {
    border-color: rgba(0, 84, 126, 0.32);
    background: rgba(230, 243, 248, 0.82);
    box-shadow: 0 16px 36px -30px rgba(0, 43, 66, 0.32);
}

body.admin-page .legacy-topic-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

body.admin-page .legacy-topic-check {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(0, 84, 126, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.74);
    color: transparent;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

body.admin-page .legacy-topic-check .material-symbols-outlined {
    font-size: 19px;
    font-weight: 700;
}

body.admin-page .legacy-topic-option:has(input:checked) .legacy-topic-check {
    border-color: var(--admin-accent);
    background: var(--admin-accent);
    color: #fff;
}

body.admin-page .legacy-topic-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

body.admin-page .legacy-topic-copy strong,
body.admin-page .legacy-topic-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.admin-page .legacy-topic-copy small,
body.admin-page .legacy-topic-empty {
    color: var(--admin-muted);
    font-size: 0.84rem;
}

body.admin-page .legacy-topic-empty {
    margin: 12px 0 0;
    font-weight: 700;
}

body.admin-page .legacy-media-card {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--admin-line);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(244, 250, 252, 0.82)),
        var(--admin-surface-strong);
}

body.admin-page .legacy-media-preview {
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(0, 84, 126, 0.12);
    border-radius: 18px;
    background:
        radial-gradient(circle at 28% 18%, rgba(0, 84, 126, 0.12), transparent 38%),
        linear-gradient(135deg, rgba(230, 243, 248, 0.96), rgba(255, 255, 255, 0.82));
}

body.admin-page .legacy-media-preview img,
body.admin-page .legacy-media-preview video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.admin-page .legacy-media-preview video {
    background: #0f1f2a;
}

body.admin-page .legacy-media-empty {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 18px;
    color: var(--admin-muted);
    text-align: center;
    font-weight: 700;
}

body.admin-page .legacy-media-empty .material-symbols-outlined {
    color: var(--admin-accent);
    font-size: 34px;
}

body.admin-page .legacy-media-dropzone {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 14px 16px;
    border: 1px dashed rgba(0, 84, 126, 0.28);
    border-radius: 18px;
    background: rgba(230, 243, 248, 0.52);
    color: var(--admin-text);
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

body.admin-page .legacy-media-dropzone:hover,
body.admin-page .legacy-media-dropzone:focus-within,
body.admin-page .legacy-media-dropzone.is-dragover {
    border-color: rgba(0, 84, 126, 0.56);
    background: rgba(230, 243, 248, 0.86);
    box-shadow: 0 16px 34px -28px rgba(0, 43, 66, 0.4);
    transform: translateY(-1px);
}

body.admin-page .legacy-media-dropzone > .material-symbols-outlined {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 14px;
    background: var(--admin-accent);
    color: #fff;
}

body.admin-page .legacy-media-dropzone strong,
body.admin-page .legacy-media-dropzone small {
    display: block;
    line-height: 1.35;
}

body.admin-page .legacy-media-dropzone small {
    margin-top: 3px;
    color: var(--admin-muted);
    font-weight: 600;
}

body.admin-page .legacy-media-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

body.admin-page .legacy-media-file {
    margin: 0;
    color: var(--admin-accent);
    font-size: 0.86rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

body.admin-page .legacy-media-requirements {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 18px;
    color: var(--admin-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

body.admin-page .legacy-media-remove {
    margin-top: 2px;
    padding: 10px 12px;
    border: 1px solid rgba(179, 71, 71, 0.16);
    border-radius: 14px;
    background: rgba(179, 71, 71, 0.06);
}

html.admin-theme-dark body.admin-page .legacy-media-card {
    background:
        linear-gradient(180deg, rgba(19, 36, 47, 0.88), rgba(13, 24, 32, 0.92)),
        var(--admin-surface);
}

html.admin-theme-dark body.admin-page .legacy-topic-counter,
html.admin-theme-dark body.admin-page .legacy-topic-option,
html.admin-theme-dark body.admin-page .legacy-topic-selected-empty {
    background: rgba(20, 33, 43, 0.76);
    border-color: var(--admin-line);
}

html.admin-theme-dark body.admin-page .legacy-topic-selected-chip {
    border-color: rgba(110, 215, 217, 0.22);
    background: rgba(110, 215, 217, 0.1);
    color: var(--admin-accent);
}

html.admin-theme-dark body.admin-page .legacy-topic-disclosure-control:checked ~ .legacy-topic-summary .legacy-topic-toggle-button {
    border-color: rgba(110, 215, 217, 0.3);
    background: rgba(110, 215, 217, 0.12);
    color: var(--admin-accent);
}

html.admin-theme-dark body.admin-page .legacy-topic-option:hover,
html.admin-theme-dark body.admin-page .legacy-topic-option:focus-within,
html.admin-theme-dark body.admin-page .legacy-topic-option:has(input:checked) {
    border-color: rgba(110, 215, 217, 0.28);
    background: rgba(110, 215, 217, 0.1);
    box-shadow: 0 16px 36px -24px rgba(0, 0, 0, 0.54);
}

html.admin-theme-dark body.admin-page .legacy-topic-check {
    border-color: rgba(110, 215, 217, 0.22);
    background: rgba(11, 21, 28, 0.72);
}

html.admin-theme-dark body.admin-page .legacy-topic-option:has(input:checked) .legacy-topic-check {
    border-color: var(--admin-accent);
    background: rgba(110, 215, 217, 0.2);
    color: var(--admin-accent);
}

html.admin-theme-dark body.admin-page .legacy-media-preview {
    border-color: var(--admin-line);
    background:
        radial-gradient(circle at 28% 18%, rgba(110, 215, 217, 0.13), transparent 38%),
        linear-gradient(135deg, rgba(20, 33, 43, 0.96), rgba(11, 21, 28, 0.9));
}

html.admin-theme-dark body.admin-page .legacy-media-dropzone {
    border-color: rgba(110, 215, 217, 0.24);
    background: rgba(110, 215, 217, 0.07);
}

html.admin-theme-dark body.admin-page .legacy-media-dropzone:hover,
html.admin-theme-dark body.admin-page .legacy-media-dropzone:focus-within,
html.admin-theme-dark body.admin-page .legacy-media-dropzone.is-dragover {
    border-color: rgba(110, 215, 217, 0.46);
    background: rgba(110, 215, 217, 0.12);
    box-shadow: 0 16px 36px -24px rgba(0, 0, 0, 0.56);
}

html.admin-theme-dark body.admin-page .legacy-media-dropzone > .material-symbols-outlined {
    background: rgba(110, 215, 217, 0.16);
    color: var(--admin-accent);
}

html.admin-theme-dark body.admin-page .admin-auto-source-card,
html.admin-theme-dark body.admin-page .admin-local-file-upload {
    border-color: rgba(110, 215, 217, 0.18);
    background:
        radial-gradient(circle at 100% 0%, rgba(110, 215, 217, 0.12), transparent 40%),
        rgba(11, 21, 28, 0.72);
}

html.admin-theme-dark body.admin-page .admin-local-file-dropzone {
    border-color: rgba(110, 215, 217, 0.28);
    background:
        radial-gradient(circle at 50% 0%, rgba(110, 215, 217, 0.12), transparent 55%),
        rgba(255, 255, 255, 0.04);
}

html.admin-theme-dark body.admin-page .admin-local-file-dropzone:hover,
html.admin-theme-dark body.admin-page .admin-local-file-dropzone:focus-within,
html.admin-theme-dark body.admin-page .admin-local-file-upload.is-dragover .admin-local-file-dropzone {
    border-color: rgba(110, 215, 217, 0.54);
    background: rgba(110, 215, 217, 0.1);
}

html.admin-theme-dark body.admin-page .admin-local-file-dropzone > .material-symbols-outlined,
html.admin-theme-dark body.admin-page .admin-local-file-upload-head > .material-symbols-outlined {
    background: rgba(110, 215, 217, 0.15);
    color: var(--admin-accent);
}

html.admin-theme-dark body.admin-page .admin-local-file-meta {
    border-color: rgba(110, 215, 217, 0.16);
    background: rgba(255, 255, 255, 0.045);
}

html.admin-theme-dark body.admin-page .admin-local-file-meta span {
    border-color: rgba(110, 215, 217, 0.13);
    background: transparent;
}

html.admin-theme-dark body.admin-page .legacy-media-remove {
    border-color: rgba(255, 177, 140, 0.2);
    background: rgba(88, 32, 32, 0.2);
}

/* Keep code, tables and editorial blocks readable after late light-theme polish rules. */
html.admin-theme-dark body.admin-page .visual-editor,
html.admin-theme-dark body.admin-page .editor-preview,
html.admin-theme-dark body.admin-page .editor-source {
    border-color: rgba(122, 154, 170, 0.18);
    background:
        linear-gradient(180deg, rgba(18, 29, 38, 0.96), rgba(11, 21, 28, 0.96)),
        #0b151c;
    color: var(--admin-text);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 24px 58px -48px rgba(0, 0, 0, 0.78);
}

html.admin-theme-dark body.admin-page,
html.admin-theme-dark body.admin-page *,
html.public-theme-dark body.public-page,
html.public-theme-dark body.public-page * {
    scrollbar-color: rgba(122, 154, 170, 0.42) rgba(255, 255, 255, 0.045);
    scrollbar-width: thin;
}

html.admin-theme-dark body.admin-page *::-webkit-scrollbar,
html.public-theme-dark body.public-page *::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

html.admin-theme-dark body.admin-page *::-webkit-scrollbar-track,
html.public-theme-dark body.public-page *::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.045);
    border-radius: 999px;
}

html.admin-theme-dark body.admin-page *::-webkit-scrollbar-thumb,
html.public-theme-dark body.public-page *::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 999px;
    background: rgba(122, 154, 170, 0.42);
    background-clip: padding-box;
}

html.admin-theme-dark body.admin-page *::-webkit-scrollbar-thumb:hover,
html.public-theme-dark body.public-page *::-webkit-scrollbar-thumb:hover {
    background: rgba(123, 213, 239, 0.5);
    background-clip: padding-box;
}

html.admin-theme-dark body.admin-page .visual-editor:focus,
html.admin-theme-dark body.admin-page .editor-source:focus {
    border-color: rgba(110, 215, 217, 0.38);
    box-shadow:
        0 0 0 4px rgba(110, 215, 217, 0.1),
        0 24px 58px -48px rgba(0, 0, 0, 0.78);
}

html.admin-theme-dark body.admin-page .visual-editor h2,
html.admin-theme-dark body.admin-page .visual-editor h3,
html.admin-theme-dark body.admin-page .visual-editor h4,
html.admin-theme-dark body.admin-page .editor-preview h2,
html.admin-theme-dark body.admin-page .editor-preview h3,
html.admin-theme-dark body.admin-page .editor-preview h4 {
    color: #f3f7fa;
}

html.admin-theme-dark body.admin-page .visual-editor code,
html.admin-theme-dark body.admin-page .editor-preview code {
    border: 1px solid rgba(122, 154, 170, 0.18);
    background: rgba(122, 154, 170, 0.12);
    color: #f1f7fa;
}

html.admin-theme-dark body.admin-page .visual-editor pre,
html.admin-theme-dark body.admin-page .editor-preview pre,
html.admin-theme-dark body.admin-page .visual-editor pre.is-highlighted,
html.admin-theme-dark body.admin-page .editor-preview pre.is-highlighted,
html.admin-theme-dark body.admin-page .visual-editor .code-shell,
html.admin-theme-dark body.admin-page .editor-preview .code-shell {
    border: 1px solid rgba(122, 154, 170, 0.16);
    background:
        linear-gradient(180deg, rgba(17, 24, 32, 0.98), rgba(9, 15, 20, 0.98)),
        #0b1117;
    color: #edf5f8;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 18px 48px -40px rgba(0, 0, 0, 0.82);
}

html.admin-theme-dark body.admin-page .visual-editor pre code,
html.admin-theme-dark body.admin-page .editor-preview pre code,
html.admin-theme-dark body.admin-page .visual-editor pre .hljs,
html.admin-theme-dark body.admin-page .editor-preview pre .hljs {
    border: 0;
    background: transparent !important;
    color: #edf5f8 !important;
    text-shadow: none;
}

html.admin-theme-dark body.admin-page .visual-editor .hljs,
html.admin-theme-dark body.admin-page .editor-preview .hljs,
html.public-theme-dark body.public-page .prose .hljs,
html.public-theme-dark body.public-page .legacy-article .hljs,
html.public-theme-dark body.public-page .doc-article .hljs {
    color: #edf5f8 !important;
}

html.admin-theme-dark body.admin-page .visual-editor .hljs-comment,
html.admin-theme-dark body.admin-page .visual-editor .hljs-quote,
html.admin-theme-dark body.admin-page .editor-preview .hljs-comment,
html.admin-theme-dark body.admin-page .editor-preview .hljs-quote,
html.public-theme-dark body.public-page .prose .hljs-comment,
html.public-theme-dark body.public-page .prose .hljs-quote,
html.public-theme-dark body.public-page .legacy-article .hljs-comment,
html.public-theme-dark body.public-page .legacy-article .hljs-quote {
    color: #8ba3ad !important;
}

html.admin-theme-dark body.admin-page .visual-editor .hljs-keyword,
html.admin-theme-dark body.admin-page .visual-editor .hljs-selector-tag,
html.admin-theme-dark body.admin-page .visual-editor .hljs-section,
html.admin-theme-dark body.admin-page .editor-preview .hljs-keyword,
html.admin-theme-dark body.admin-page .editor-preview .hljs-selector-tag,
html.admin-theme-dark body.admin-page .editor-preview .hljs-section,
html.public-theme-dark body.public-page .prose .hljs-keyword,
html.public-theme-dark body.public-page .prose .hljs-selector-tag,
html.public-theme-dark body.public-page .legacy-article .hljs-keyword,
html.public-theme-dark body.public-page .legacy-article .hljs-selector-tag {
    color: #77d8f7 !important;
}

html.admin-theme-dark body.admin-page .visual-editor .hljs-built_in,
html.admin-theme-dark body.admin-page .visual-editor .hljs-type,
html.admin-theme-dark body.admin-page .visual-editor .hljs-property,
html.admin-theme-dark body.admin-page .visual-editor .hljs-title.class_,
html.admin-theme-dark body.admin-page .editor-preview .hljs-built_in,
html.admin-theme-dark body.admin-page .editor-preview .hljs-type,
html.admin-theme-dark body.admin-page .editor-preview .hljs-property,
html.admin-theme-dark body.admin-page .editor-preview .hljs-title.class_,
html.public-theme-dark body.public-page .prose .hljs-built_in,
html.public-theme-dark body.public-page .prose .hljs-type,
html.public-theme-dark body.public-page .legacy-article .hljs-built_in,
html.public-theme-dark body.public-page .legacy-article .hljs-type {
    color: #9ccfff !important;
}

html.admin-theme-dark body.admin-page .visual-editor .hljs-title.function_,
html.admin-theme-dark body.admin-page .visual-editor .hljs-function .hljs-title,
html.admin-theme-dark body.admin-page .visual-editor .hljs-attr,
html.admin-theme-dark body.admin-page .editor-preview .hljs-title.function_,
html.admin-theme-dark body.admin-page .editor-preview .hljs-function .hljs-title,
html.admin-theme-dark body.admin-page .editor-preview .hljs-attr,
html.public-theme-dark body.public-page .prose .hljs-title.function_,
html.public-theme-dark body.public-page .prose .hljs-function .hljs-title,
html.public-theme-dark body.public-page .legacy-article .hljs-title.function_,
html.public-theme-dark body.public-page .legacy-article .hljs-function .hljs-title {
    color: #ffd08a !important;
}

html.admin-theme-dark body.admin-page .visual-editor .hljs-string,
html.admin-theme-dark body.admin-page .visual-editor .hljs-meta-string,
html.admin-theme-dark body.admin-page .visual-editor .hljs-regexp,
html.admin-theme-dark body.admin-page .editor-preview .hljs-string,
html.admin-theme-dark body.admin-page .editor-preview .hljs-meta-string,
html.admin-theme-dark body.admin-page .editor-preview .hljs-regexp,
html.public-theme-dark body.public-page .prose .hljs-string,
html.public-theme-dark body.public-page .prose .hljs-meta-string,
html.public-theme-dark body.public-page .legacy-article .hljs-string,
html.public-theme-dark body.public-page .legacy-article .hljs-meta-string {
    color: #d7b2ff !important;
}

html.admin-theme-dark body.admin-page .visual-editor .hljs-number,
html.admin-theme-dark body.admin-page .visual-editor .hljs-literal,
html.admin-theme-dark body.admin-page .visual-editor .hljs-symbol,
html.admin-theme-dark body.admin-page .visual-editor .hljs-bullet,
html.admin-theme-dark body.admin-page .editor-preview .hljs-number,
html.admin-theme-dark body.admin-page .editor-preview .hljs-literal,
html.admin-theme-dark body.admin-page .editor-preview .hljs-symbol,
html.admin-theme-dark body.admin-page .editor-preview .hljs-bullet,
html.public-theme-dark body.public-page .prose .hljs-number,
html.public-theme-dark body.public-page .prose .hljs-literal,
html.public-theme-dark body.public-page .legacy-article .hljs-number,
html.public-theme-dark body.public-page .legacy-article .hljs-literal {
    color: #9ccfff !important;
}

html.admin-theme-dark body.admin-page .visual-editor .hljs-variable,
html.admin-theme-dark body.admin-page .visual-editor .hljs-template-variable,
html.admin-theme-dark body.admin-page .visual-editor .hljs-params,
html.admin-theme-dark body.admin-page .visual-editor .hljs-subst,
html.admin-theme-dark body.admin-page .editor-preview .hljs-variable,
html.admin-theme-dark body.admin-page .editor-preview .hljs-template-variable,
html.admin-theme-dark body.admin-page .editor-preview .hljs-params,
html.admin-theme-dark body.admin-page .editor-preview .hljs-subst,
html.public-theme-dark body.public-page .prose .hljs-variable,
html.public-theme-dark body.public-page .prose .hljs-template-variable,
html.public-theme-dark body.public-page .legacy-article .hljs-variable,
html.public-theme-dark body.public-page .legacy-article .hljs-template-variable {
    color: #f1f7fa !important;
}

html.admin-theme-dark body.admin-page .visual-editor .code-gutter,
html.admin-theme-dark body.admin-page .editor-preview .code-gutter,
html.public-theme-dark body.public-page .code-gutter {
    border-right-color: rgba(122, 154, 170, 0.16);
    background: rgba(255, 255, 255, 0.025);
    color: rgba(168, 187, 198, 0.76);
}

html.admin-theme-dark body.admin-page .visual-editor .code-copy-button,
html.admin-theme-dark body.admin-page .editor-preview .code-copy-button,
html.public-theme-dark body.public-page .code-copy-button {
    border-color: rgba(122, 154, 170, 0.18);
    background: rgba(16, 32, 42, 0.9);
    color: #dce8ef;
}

html.admin-theme-dark body.admin-page .visual-editor .code-content,
html.admin-theme-dark body.admin-page .editor-preview .code-content,
html.public-theme-dark body.public-page .code-content {
    background: transparent;
}

html.admin-theme-dark body.admin-page .visual-editor .code-shell pre,
html.admin-theme-dark body.admin-page .editor-preview .code-shell pre,
html.public-theme-dark body.public-page .code-shell pre {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

html.admin-theme-dark body.admin-page .visual-editor blockquote,
html.admin-theme-dark body.admin-page .editor-preview blockquote {
    border-left-color: rgba(110, 215, 217, 0.38);
    background: rgba(110, 215, 217, 0.08);
    color: var(--admin-text);
}

html.admin-theme-dark body.admin-page .visual-editor .table-wrap,
html.admin-theme-dark body.admin-page .editor-preview .table-wrap {
    border-color: rgba(122, 154, 170, 0.18);
    background: rgba(11, 21, 28, 0.74);
    box-shadow: 0 18px 46px -38px rgba(0, 0, 0, 0.72);
}

html.admin-theme-dark body.admin-page .visual-editor th,
html.admin-theme-dark body.admin-page .editor-preview th {
    background: rgba(122, 154, 170, 0.13);
    color: #f3f7fa;
}

html.admin-theme-dark body.admin-page .visual-editor td,
html.admin-theme-dark body.admin-page .editor-preview td {
    color: var(--admin-text);
}

html.admin-theme-dark body.admin-page .visual-editor th,
html.admin-theme-dark body.admin-page .visual-editor td,
html.admin-theme-dark body.admin-page .editor-preview th,
html.admin-theme-dark body.admin-page .editor-preview td {
    border-bottom-color: rgba(122, 154, 170, 0.18);
}

html.admin-theme-dark body.admin-page .visual-editor img,
html.admin-theme-dark body.admin-page .editor-preview img {
    border-color: rgba(122, 154, 170, 0.14);
    box-shadow: 0 24px 58px -44px rgba(0, 0, 0, 0.82);
}

html.public-theme-dark body.public-page pre,
html.public-theme-dark body.public-page pre.is-highlighted,
html.public-theme-dark body.public-page .prose pre,
html.public-theme-dark body.public-page .legacy-article pre,
html.public-theme-dark body.public-page .doc-article pre,
html.public-theme-dark body.public-page .code-shell {
    border-color: rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(17, 20, 24, 0.98), rgba(9, 12, 15, 0.98)),
        #0d1117;
    color: #edf5f8;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 18px 48px -40px rgba(0, 0, 0, 0.82);
}

html.public-theme-dark body.public-page pre code,
html.public-theme-dark body.public-page pre .hljs {
    background: transparent !important;
    color: #edf5f8 !important;
}

@media (max-width: 1180px) {
    body.admin-page .legacy-topic-tools {
        grid-template-columns: 1fr;
    }

    body.admin-page .legacy-topic-summary {
        grid-template-columns: 1fr;
    }

    body.admin-page .legacy-topic-counter,
    body.admin-page .legacy-topic-toggle,
    body.admin-page .legacy-topic-toggle-button {
        width: fit-content;
    }

    body.admin-page .legacy-media-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin dark audit layer: graphite UI, neutral chrome, compact mobile navigation. */
html.admin-theme-dark body.admin-page {
    --admin-bg: #08090b;
    --admin-surface: rgba(18, 20, 23, 0.84);
    --admin-surface-strong: rgba(23, 25, 29, 0.96);
    --admin-surface-elevated: rgba(28, 31, 35, 0.96);
    --admin-line: rgba(255, 255, 255, 0.115);
    --admin-line-strong: rgba(255, 255, 255, 0.18);
    --admin-muted: #a5abb3;
    --admin-text: #f2f4f7;
    --admin-accent: #d9dee4;
    --admin-accent-hover: #ffffff;
    --admin-accent-dark: #9da4ad;
    --admin-accent-soft: rgba(255, 255, 255, 0.08);
    --admin-focus: rgba(218, 224, 231, 0.24);
    --admin-shadow: 0 28px 80px -46px rgba(0, 0, 0, 0.78);
    color-scheme: dark;
    background:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px),
        radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.08), transparent 28%),
        linear-gradient(180deg, #111315 0%, #08090b 74%, #060708 100%);
    background-size: 48px 48px, 48px 48px, auto, auto;
}

html.admin-theme-dark body.admin-page ::selection {
    background: rgba(218, 224, 231, 0.24);
    color: #fff;
}

html.admin-theme-dark body.admin-page :focus-visible {
    outline-color: var(--admin-focus);
}

html.admin-theme-dark body.admin-page .brand-logo {
    filter: brightness(0) saturate(100%) invert(96%) sepia(4%) saturate(172%) hue-rotate(169deg) brightness(98%) contrast(92%);
}

html.admin-theme-dark body.admin-page .admin-header {
    background: rgba(8, 9, 11, 0.78);
    border-bottom-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 18px 50px -42px rgba(0, 0, 0, 0.9);
}

html.admin-theme-dark body.admin-page .admin-menu-reveal {
    --admin-menu-reveal-bg: linear-gradient(180deg, rgba(24, 26, 30, 0.96), rgba(14, 15, 17, 0.9));
    --admin-menu-reveal-hover-bg: linear-gradient(180deg, rgba(32, 35, 40, 0.98), rgba(18, 20, 23, 0.94));
    --admin-menu-reveal-border: rgba(255, 255, 255, 0.12);
    --admin-menu-reveal-shadow: 0 18px 44px -30px rgba(0, 0, 0, 0.82);
    color: #e6eaef;
}

html.admin-theme-dark body.admin-page .admin-menu-reveal:hover {
    color: #fff;
}

html.admin-theme-dark body.admin-page .admin-menu-reveal::after {
    border-color: var(--admin-menu-reveal-border);
    background: var(--admin-menu-reveal-bg);
}

html.admin-theme-dark body.admin-page .admin-brand,
html.admin-theme-dark body.admin-page .admin-kicker,
html.admin-theme-dark body.admin-page .admin-topbar-kicker,
html.admin-theme-dark body.admin-page .admin-breadcrumbs a:hover,
html.admin-theme-dark body.admin-page .admin-item-title-link:hover,
html.admin-theme-dark body.admin-page .software-admin-group-head .material-symbols-outlined,
html.admin-theme-dark body.admin-page .admin-nav-menu-dropdown .material-symbols-outlined,
html.admin-theme-dark body.admin-page .admin-create-dropdown .material-symbols-outlined,
html.admin-theme-dark body.admin-page .legacy-topic-counter strong,
html.admin-theme-dark body.admin-page .legacy-media-file {
    color: var(--admin-accent);
}

html.admin-theme-dark body.admin-page .admin-nav-link,
html.admin-theme-dark body.admin-page .admin-theme-toggle,
html.admin-theme-dark body.admin-page .button-secondary,
html.admin-theme-dark body.admin-page .admin-nav-menu-dropdown,
html.admin-theme-dark body.admin-page .admin-create-dropdown,
html.admin-theme-dark body.admin-page .editor-tool-group,
html.admin-theme-dark body.admin-page .editor-mode-tabs {
    border-color: var(--admin-line);
    background: rgba(16, 18, 21, 0.82);
    color: var(--admin-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

html.admin-theme-dark body.admin-page .admin-wiki-category-row,
html.admin-theme-dark body.admin-page .admin-wiki-group-card {
    background:
        linear-gradient(180deg, rgba(28, 31, 35, 0.86), rgba(18, 20, 23, 0.78)),
        var(--admin-surface);
}

html.admin-theme-dark body.admin-page .admin-wiki-group-card.is-system,
html.admin-theme-dark body.admin-page .admin-wiki-group-create {
    background: rgba(255, 255, 255, 0.055);
}

html.admin-theme-dark body.admin-page .admin-wiki-category-url code {
    background: rgba(255, 255, 255, 0.07);
    color: var(--admin-text);
}

html.admin-theme-dark body.admin-page .admin-wiki-category-delete,
html.admin-theme-dark body.admin-page .admin-wiki-group-delete {
    background: rgba(122, 39, 24, 0.16);
}

html.admin-theme-dark body.admin-page .admin-wiki-category-danger > summary,
html.admin-theme-dark body.admin-page .admin-wiki-group-danger > summary {
    color: #ffb7a8;
}

html.admin-theme-dark body.admin-page .admin-nav-link:hover,
html.admin-theme-dark body.admin-page .admin-nav-link.is-active,
html.admin-theme-dark body.admin-page .admin-nav-menu.is-active > summary,
html.admin-theme-dark body.admin-page .admin-nav-menu[open] > summary,
html.admin-theme-dark body.admin-page .admin-theme-toggle:hover,
html.admin-theme-dark body.admin-page .button-secondary:hover,
html.admin-theme-dark body.admin-page .admin-create-menu[open] > summary {
    border-color: var(--admin-line-strong);
    background: rgba(255, 255, 255, 0.085);
    color: #fff;
}

html.admin-theme-dark body.admin-page .admin-nav-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(218, 224, 231, 0.16);
}

html.admin-theme-dark body.admin-page .admin-nav-link-accent,
html.admin-theme-dark body.admin-page .admin-nav-link-accent:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.052));
    color: #fff;
}

html.admin-theme-dark body.admin-page .admin-create-dropdown {
    background: rgba(18, 20, 23, 0.985);
    box-shadow: 0 26px 62px rgba(0, 0, 0, 0.66);
}

html.admin-theme-dark body.admin-page .admin-nav-menu-dropdown {
    background: rgba(18, 20, 23, 0.985);
    box-shadow: 0 26px 62px rgba(0, 0, 0, 0.66);
}

html.admin-theme-dark body.admin-page .admin-nav-menu-dropdown a,
html.admin-theme-dark body.admin-page .admin-create-dropdown a {
    color: var(--admin-text);
}

html.admin-theme-dark body.admin-page .admin-nav-menu-dropdown a:hover,
html.admin-theme-dark body.admin-page .admin-nav-menu-dropdown a:focus-visible,
html.admin-theme-dark body.admin-page .admin-nav-menu-dropdown a.is-active {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

html.admin-theme-dark body.admin-page .admin-create-dropdown a:hover {
    background: rgba(255, 255, 255, 0.07);
}

html.admin-theme-dark body.admin-page .admin-theme-toggle-track,
html.admin-theme-dark body.admin-page .admin-theme-toggle.is-dark .admin-theme-toggle-track {
    border-color: rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 70% 34%, rgba(255, 255, 255, 0.16), transparent 17px),
        linear-gradient(135deg, #262a30 0%, #111317 100%);
}

html.admin-theme-dark body.admin-page .admin-theme-toggle.is-dark .admin-theme-toggle-knob {
    background:
        radial-gradient(circle at 34% 30%, #ffffff 0 23%, transparent 24%),
        linear-gradient(135deg, #d8dde4, #aeb5be);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.5);
}

html.admin-theme-dark body.admin-page .admin-theme-toggle.is-dark .admin-theme-toggle-moon,
html.admin-theme-dark body.admin-page .admin-theme-toggle-label {
    color: #f2f4f7;
}

html.admin-theme-dark body.admin-page .button,
html.admin-theme-dark body.admin-page button {
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, #34383f 0%, #23262b 100%);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 46px -38px rgba(0, 0, 0, 0.9);
}

html.admin-theme-dark body.admin-page .button:hover,
html.admin-theme-dark body.admin-page button:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: linear-gradient(180deg, #3d424a 0%, #2a2e34 100%);
    color: #fff;
}

html.admin-theme-dark body.admin-page .button-danger,
html.admin-theme-dark body.admin-page .button-danger:hover {
    border-color: rgba(255, 143, 118, 0.28);
    background: rgba(88, 32, 32, 0.42);
    color: #ffd0c5;
}

html.admin-theme-dark body.admin-page input,
html.admin-theme-dark body.admin-page select,
html.admin-theme-dark body.admin-page textarea {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(8, 9, 11, 0.72);
    color: var(--admin-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

html.admin-theme-dark body.admin-page input::placeholder,
html.admin-theme-dark body.admin-page textarea::placeholder {
    color: rgba(165, 171, 179, 0.72);
}

html.admin-theme-dark body.admin-page input:focus,
html.admin-theme-dark body.admin-page select:focus,
html.admin-theme-dark body.admin-page textarea:focus {
    border-color: rgba(218, 224, 231, 0.32);
    box-shadow: 0 0 0 4px rgba(218, 224, 231, 0.08);
}

html.admin-theme-dark body.admin-page .admin-hero,
html.admin-theme-dark body.admin-page .admin-filter-shell,
html.admin-theme-dark body.admin-page .admin-board,
html.admin-theme-dark body.admin-page .admin-panel,
html.admin-theme-dark body.admin-page .admin-overview-card,
html.admin-theme-dark body.admin-page .admin-auth-panel,
html.admin-theme-dark body.admin-page .admin-auth-copy,
html.admin-theme-dark body.admin-page .admin-item-card,
html.admin-theme-dark body.admin-page .admin-tree-link,
html.admin-theme-dark body.admin-page .admin-source-panel,
html.admin-theme-dark body.admin-page .admin-side-panel,
html.admin-theme-dark body.admin-page .legacy-editorial-card,
html.admin-theme-dark body.admin-page .legacy-editorial-column,
html.admin-theme-dark body.admin-page .software-admin-group,
html.admin-theme-dark body.admin-page .software-admin-file,
html.admin-theme-dark body.admin-page .admin-sticky-actions,
html.admin-theme-dark body.admin-page .legacy-media-card,
html.admin-theme-dark body.admin-page .legacy-media-preview {
    border-color: var(--admin-line);
    background:
        linear-gradient(180deg, rgba(27, 30, 34, 0.92), rgba(14, 15, 17, 0.92)),
        var(--admin-surface);
    color: var(--admin-text);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        var(--admin-shadow);
}

html.admin-theme-dark body.admin-page .admin-hero-copy,
html.admin-theme-dark body.admin-page .admin-overview-card.is-primary,
html.admin-theme-dark body.admin-page .landing-panel,
html.admin-theme-dark body.admin-page .admin-danger-zone {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.024) 58%, rgba(255, 255, 255, 0.058)),
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px),
        var(--admin-surface);
    background-size: auto, 34px 34px, 34px 34px, auto;
}

html.admin-theme-dark body.admin-page .admin-panel::before,
html.admin-theme-dark body.admin-page .admin-overview-card::before,
html.admin-theme-dark body.admin-page .admin-auth-panel::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

html.admin-theme-dark body.admin-page .admin-item-card:hover,
html.admin-theme-dark body.admin-page .admin-home-card:hover,
html.admin-theme-dark body.admin-page .admin-home-card:focus-visible,
html.admin-theme-dark body.admin-page .admin-tree-link:hover,
html.admin-theme-dark body.admin-page .admin-tree-link.active {
    border-color: var(--admin-line-strong);
    background:
        linear-gradient(180deg, rgba(34, 37, 42, 0.96), rgba(19, 21, 24, 0.96)),
        var(--admin-surface-elevated);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 28px 72px -46px rgba(0, 0, 0, 0.92);
}

html.admin-theme-dark body.admin-page .admin-board-count,
html.admin-theme-dark body.admin-page .status-filled,
html.admin-theme-dark body.admin-page .status-empty,
html.admin-theme-dark body.admin-page .admin-wiki-impact-grid .material-symbols-outlined,
html.admin-theme-dark body.admin-page .admin-wiki-home-group-head p,
html.admin-theme-dark body.admin-page .admin-wiki-home-group-preview > .material-symbols-outlined,
html.admin-theme-dark body.admin-page .admin-wiki-home-category-actions > span,
html.admin-theme-dark body.admin-page .admin-wiki-group-category-actions > span,
html.admin-theme-dark body.admin-page .admin-wiki-group-category-preview .number,
html.admin-theme-dark body.admin-page .admin-wiki-home-group-manual-preview .number,
html.admin-theme-dark body.admin-page .admin-wiki-layout-preview > .material-symbols-outlined,
html.admin-theme-dark body.admin-page .admin-wiki-layout-chips span,
html.admin-theme-dark body.admin-page .admin-wiki-layout-settings-button,
html.admin-theme-dark body.admin-page .admin-category-card-head > span,
html.admin-theme-dark body.admin-page .admin-category-manager-details > summary strong,
html.admin-theme-dark body.admin-page .legacy-topic-counter,
html.admin-theme-dark body.admin-page .legacy-topic-selected-chip,
html.admin-theme-dark body.admin-page .legacy-topic-selected-empty,
html.admin-theme-dark body.admin-page .legacy-editorial-tags span,
html.admin-theme-dark body.admin-page .software-admin-hash {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.065);
    color: var(--admin-text);
    box-shadow: none;
}

html.admin-theme-dark body.admin-page .admin-wiki-impact-grid article,
html.admin-theme-dark body.admin-page .admin-wiki-home-note,
html.admin-theme-dark body.admin-page .admin-wiki-home-group-create,
html.admin-theme-dark body.admin-page .admin-wiki-home-group-card,
html.admin-theme-dark body.admin-page .admin-wiki-home-group-preview,
html.admin-theme-dark body.admin-page .admin-wiki-home-group-text-preview,
html.admin-theme-dark body.admin-page .admin-wiki-home-category,
html.admin-theme-dark body.admin-page .admin-wiki-home-category-actions > a,
html.admin-theme-dark body.admin-page .admin-wiki-group-categories-form,
html.admin-theme-dark body.admin-page .admin-wiki-category-pool,
html.admin-theme-dark body.admin-page .admin-wiki-category-pool-item,
html.admin-theme-dark body.admin-page .admin-wiki-category-pool-empty,
html.admin-theme-dark body.admin-page .admin-wiki-inline-category-create,
html.admin-theme-dark body.admin-page .admin-wiki-group-category,
html.admin-theme-dark body.admin-page .admin-wiki-group-category-preview,
html.admin-theme-dark body.admin-page .admin-wiki-group-category-actions > a,
html.admin-theme-dark body.admin-page .admin-wiki-group-category-actions > button,
html.admin-theme-dark body.admin-page .admin-wiki-group-categories-empty,
html.admin-theme-dark body.admin-page .admin-wiki-layout-toolbar,
html.admin-theme-dark body.admin-page .admin-wiki-layout-row,
html.admin-theme-dark body.admin-page .admin-wiki-layout-card,
html.admin-theme-dark body.admin-page .admin-wiki-layout-preview,
html.admin-theme-dark body.admin-page .admin-wiki-settings-close,
html.admin-theme-dark body.admin-page .admin-category-create,
html.admin-theme-dark body.admin-page .admin-category-card,
html.admin-theme-dark body.admin-page .admin-category-manager-toggle,
html.admin-theme-dark body.admin-page .admin-category-manager-details > summary {
    border-color: var(--admin-line);
    background:
        linear-gradient(180deg, rgba(32, 35, 40, 0.82), rgba(17, 18, 21, 0.82)),
        var(--admin-surface);
}

html.admin-theme-dark body.admin-page .admin-wiki-group-category-preview-body {
    color: var(--admin-text);
}

html.admin-theme-dark body.admin-page .admin-wiki-home-group-text-preview-body {
    color: var(--admin-text);
}

html.admin-theme-dark body.admin-page .admin-wiki-group-category-preview .ulLink li,
html.admin-theme-dark body.admin-page .admin-wiki-group-category-preview a,
html.admin-theme-dark body.admin-page .admin-wiki-home-group-text-preview a {
    color: #9ed7ff;
}

html.admin-theme-dark body.admin-page .admin-wiki-group-category-preview a:hover,
html.admin-theme-dark body.admin-page .admin-wiki-group-category-preview a:focus-visible,
html.admin-theme-dark body.admin-page .admin-wiki-home-group-text-preview a:hover,
html.admin-theme-dark body.admin-page .admin-wiki-home-group-text-preview a:focus-visible {
    color: #fff;
    background: rgba(255, 204, 0, 0.12);
}

html.admin-theme-dark body.admin-page .admin-category-delete {
    border-color: rgba(255, 143, 118, 0.18);
    background: rgba(88, 32, 32, 0.24);
}

html.admin-theme-dark body.admin-page .admin-category-delete code {
    background: rgba(255, 143, 118, 0.1);
    color: #ffd0c5;
}

html.admin-theme-dark body.admin-page .admin-category-danger > summary {
    color: #ffb09f;
}

html.admin-theme-dark body.admin-page .status-filled {
    border-color: rgba(125, 214, 167, 0.22);
    background: rgba(125, 214, 167, 0.12);
    color: #a8ecc4;
}

html.admin-theme-dark body.admin-page .status-empty {
    border-color: rgba(255, 202, 124, 0.22);
    background: rgba(255, 202, 124, 0.1);
    color: #ffd99b;
}

html.admin-theme-dark body.admin-page .editor-command-bar,
html.admin-theme-dark body.admin-page .editor-toolbar,
html.admin-theme-dark body.admin-page .editor-preview,
html.admin-theme-dark body.admin-page .editor-mode-tabs,
html.admin-theme-dark body.admin-page .editor-image-import,
html.admin-theme-dark body.admin-page .visual-editor,
html.admin-theme-dark body.admin-page .editor-source {
    border-color: var(--admin-line);
    background:
        linear-gradient(180deg, rgba(18, 20, 23, 0.97), rgba(10, 11, 13, 0.97)),
        #0b0c0e;
    color: var(--admin-text);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 22px 58px -46px rgba(0, 0, 0, 0.86);
}

html.admin-theme-dark body.admin-page .admin-wiki-editor-preview {
    border-color: var(--admin-line);
    background:
        linear-gradient(180deg, rgba(18, 20, 23, 0.92), rgba(10, 11, 13, 0.92)),
        #0b0c0e;
}

html.admin-theme-dark body.admin-page .admin-wiki-editor-preview-head > .material-symbols-outlined {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.065);
    color: var(--admin-text);
}

html.admin-theme-dark body.admin-page .admin-wiki-editor-preview-frame {
    border-color: rgba(255, 255, 255, 0.14);
    background: #fff;
    color: #111;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 22px 58px -46px rgba(0, 0, 0, 0.86);
}

html.admin-theme-dark body.admin-page .visual-editor:focus,
html.admin-theme-dark body.admin-page .editor-source:focus {
    border-color: rgba(218, 224, 231, 0.32);
    box-shadow:
        0 0 0 4px rgba(218, 224, 231, 0.08),
        0 22px 58px -46px rgba(0, 0, 0, 0.86);
}

html.admin-theme-dark body.admin-page .editor-context-tools,
html.admin-theme-dark body.admin-page .editor-btn-accent,
html.admin-theme-dark body.admin-page .editor-import-btn {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.065);
    color: var(--admin-text);
}

html.admin-theme-dark body.admin-page .editor-btn,
html.admin-theme-dark body.admin-page .editor-callout-summary,
html.admin-theme-dark body.admin-page .editor-mode-tab {
    border-color: transparent;
    background: transparent;
    color: var(--admin-text);
    box-shadow: none;
}

html.admin-theme-dark body.admin-page .legacy-public-url-summary code {
    background: rgba(110, 215, 217, 0.12);
    color: var(--admin-accent);
}

html.admin-theme-dark body.admin-page .admin-wiki-editor-workbench .admin-wiki-url-summary {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html.admin-theme-dark body.admin-page .editor-btn:hover,
html.admin-theme-dark body.admin-page .editor-btn:focus-visible,
html.admin-theme-dark body.admin-page .editor-callout-menu[open] .editor-callout-summary,
html.admin-theme-dark body.admin-page .editor-callout-menu .editor-callout-summary:hover,
html.admin-theme-dark body.admin-page .editor-callout-menu .editor-callout-summary:focus-visible {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

html.admin-theme-dark body.admin-page .editor-mode-tab.is-active {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
}

html.admin-theme-dark body.admin-page .editor-callout-menu-panel {
    border-color: var(--admin-line);
    background: rgba(18, 20, 23, 0.985);
}

html.admin-theme-dark body.admin-page .legacy-topic-option,
html.admin-theme-dark body.admin-page .legacy-topic-check,
html.admin-theme-dark body.admin-page .legacy-media-dropzone,
html.admin-theme-dark body.admin-page .legacy-media-empty {
    border-color: var(--admin-line);
    background: rgba(255, 255, 255, 0.052);
    color: var(--admin-text);
}

html.admin-theme-dark body.admin-page .legacy-topic-disclosure-control:checked ~ .legacy-topic-summary .legacy-topic-toggle-button,
html.admin-theme-dark body.admin-page .legacy-topic-option:hover,
html.admin-theme-dark body.admin-page .legacy-topic-option:focus-within,
html.admin-theme-dark body.admin-page .legacy-topic-option:has(input:checked),
html.admin-theme-dark body.admin-page .legacy-media-dropzone:hover,
html.admin-theme-dark body.admin-page .legacy-media-dropzone:focus-within,
html.admin-theme-dark body.admin-page .legacy-media-dropzone.is-dragover {
    border-color: var(--admin-line-strong);
    background: rgba(255, 255, 255, 0.085);
    color: #fff;
    box-shadow: 0 18px 44px -36px rgba(0, 0, 0, 0.8);
}

html.admin-theme-dark body.admin-page .legacy-topic-option:has(input:checked) .legacy-topic-check,
html.admin-theme-dark body.admin-page .legacy-media-dropzone > .material-symbols-outlined {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

html.admin-theme-dark body.admin-page table,
html.admin-theme-dark body.admin-page th,
html.admin-theme-dark body.admin-page td {
    border-color: var(--admin-line);
}

html.admin-theme-dark body.admin-page th {
    background: rgba(255, 255, 255, 0.075);
    color: var(--admin-text);
}

html.admin-theme-dark body.admin-page td {
    color: var(--admin-text);
}

html.admin-theme-dark body.admin-page .alert {
    border-color: rgba(255, 143, 118, 0.28);
    background: rgba(88, 32, 32, 0.46);
    color: #ffd0c5;
}

html.admin-theme-dark body.admin-page .alert.success {
    border-color: rgba(125, 214, 167, 0.24);
    background: rgba(27, 68, 49, 0.42);
    color: #c9f7dc;
}

html.admin-theme-dark body.admin-page .admin-toast {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(20, 31, 39, 0.96);
    color: var(--admin-text);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
}

html.admin-theme-dark body.admin-page .admin-relation-panel.is-relation-loading::after {
    background:
        linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.09) 42%, transparent 72%);
}

html.admin-theme-dark body.admin-page .legacy-editorial-warning,
html.admin-theme-dark body.admin-page .editor-callout-menu .editor-callout-summary {
    border-color: rgba(255, 202, 124, 0.22);
    background: rgba(255, 202, 124, 0.1);
    color: #ffd99b;
}

html.admin-theme-dark body.admin-page .visual-editor blockquote,
html.admin-theme-dark body.admin-page .editor-preview blockquote,
html.admin-theme-dark body.admin-page .visual-editor .content-callout-info,
html.admin-theme-dark body.admin-page .visual-editor .legacy-callout-info,
html.admin-theme-dark body.admin-page .editor-preview .content-callout-info,
html.admin-theme-dark body.admin-page .editor-preview .legacy-callout-info {
    border-color: rgba(255, 255, 255, 0.14);
    border-left-color: rgba(218, 224, 231, 0.46);
    background: rgba(255, 255, 255, 0.06);
    color: var(--admin-text);
}

html.public-theme-dark body.public-page .lesson-products {
    border-color: rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 10% 12%, rgba(94, 234, 212, 0.16), transparent 32%),
        radial-gradient(circle at 92% 18%, rgba(255, 174, 92, 0.11), transparent 28%),
        linear-gradient(135deg, rgba(12, 28, 36, 0.94), rgba(7, 16, 22, 0.91));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 26px 72px -48px rgba(0, 0, 0, 0.82);
}

html.public-theme-dark body.public-page .lesson-products::before {
    border-color: rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
}

html.public-theme-dark body.public-page .lesson-products::after {
    border-color: rgba(255, 255, 255, 0.09);
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.16) 0 3px, transparent 4px) 0 0 / 54px 46px;
    opacity: 0.5;
}

html.public-theme-dark body.public-page .lesson-products-grid::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px) 0 0 / 86px 86px,
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px) 0 0 / 86px 86px;
    opacity: 0.5;
}

html.public-theme-dark body.public-page .lesson-products-count {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    color: var(--public-text);
}

html.public-theme-dark body.public-page .lesson-products-icon {
    border-color: rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(94, 234, 212, 0.14), rgba(111, 185, 216, 0.08));
}

html.public-theme-dark body.public-page .lesson-product-card {
    border-color: rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 0 0, var(--card-glow), transparent 42%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.045));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 16px 36px -34px rgba(0, 0, 0, 0.88);
}

html.public-theme-dark body.public-page .lesson-product-card.is-featured {
    background:
        radial-gradient(circle at 4% 14%, var(--card-glow), transparent 32%),
        radial-gradient(circle at 96% 0, rgba(255, 174, 92, 0.1), transparent 30%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
}

html.public-theme-dark body.public-page .lesson-product-card:hover,
html.public-theme-dark body.public-page .lesson-product-card:focus-visible {
    border-color: rgba(94, 234, 212, 0.34);
    background: rgba(255, 255, 255, 0.09);
}

html.public-theme-dark body.public-page .lesson-product-media {
    border-color: rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.14), transparent 36%),
        rgba(255, 255, 255, 0.07);
}

html.public-theme-dark body.public-page .lesson-product-media::before {
    border-color: rgba(255, 255, 255, 0.12);
}

html.public-theme-dark body.public-page .lesson-product-media::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

html.public-theme-dark body.public-page .lesson-product-index {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.055);
    color: rgba(223, 243, 251, 0.72);
}

html.public-theme-dark body.public-page .lesson-product-body small {
    background: rgba(255, 255, 255, 0.06);
}

html.admin-theme-dark body.admin-page .product-sync-card,
html.admin-theme-dark body.admin-page .product-sync-log article,
html.admin-theme-dark body.admin-page .product-photo-product-facts div,
html.admin-theme-dark body.admin-page .product-photo-card,
html.admin-theme-dark body.admin-page .product-photo-help p,
html.admin-theme-dark body.admin-page .product-resource-upload-form,
html.admin-theme-dark body.admin-page .product-resource-manual-upload,
html.admin-theme-dark body.admin-page .product-resource-card,
html.admin-theme-dark body.admin-page .legacy-linked-product {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

html.admin-theme-dark body.admin-page .admin-side-list > div {
    border-color: rgba(255, 255, 255, 0.12);
    background: transparent;
}

html.admin-theme-dark body.admin-page .product-admin-media,
html.admin-theme-dark body.admin-page .product-photo-hero-preview > img,
html.admin-theme-dark body.admin-page .product-photo-empty,
html.admin-theme-dark body.admin-page .product-photo-thumb,
html.admin-theme-dark body.admin-page .product-resource-icon,
html.admin-theme-dark body.admin-page .legacy-linked-product > img,
html.admin-theme-dark body.admin-page .legacy-linked-product > .material-symbols-outlined {
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 860px) {
    body.admin-page .product-photo-hero-preview,
    body.admin-page .product-photo-upload-form,
    body.admin-page .product-resource-upload-form,
    body.admin-page .product-resource-card {
        grid-template-columns: 1fr;
    }

    body.admin-page .product-photo-card-actions,
    body.admin-page .product-photo-card-actions .button,
    body.admin-page .product-photo-upload-fields .button,
    body.admin-page .product-resource-actions,
    body.admin-page .product-resource-actions .button,
    body.admin-page .product-resource-upload-form .button {
        width: 100%;
        justify-content: center;
    }

    body.admin-page .product-photo-card-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    body.admin-page .product-photo-card-meta .admin-product-photo-open-action {
        align-self: stretch;
    }

    body.public-page .lesson-products-head {
        grid-template-columns: 1fr;
    }

    body.public-page .lesson-products-count {
        justify-self: start;
    }

    body.public-page .lesson-products-grid {
        grid-template-columns: 1fr;
    }

    body.public-page .lesson-product-card,
    body.public-page .lesson-product-card.is-featured {
        grid-column: auto;
        grid-template-columns: 76px minmax(0, 1fr);
        min-height: 116px;
        transform: none;
    }

    body.public-page .lesson-product-card:hover,
    body.public-page .lesson-product-card:focus-visible {
        transform: translateY(-3px);
    }

    body.admin-page .admin-topbar {
        gap: 12px;
        padding: 10px 12px;
    }

    body.admin-page .admin-brand .brand-logo {
        height: 28px;
    }

    body.admin-page .admin-topbar-actions {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
        width: 100%;
    }

    body.admin-page .admin-topbar-actions > *,
    body.admin-page .admin-create-menu,
    body.admin-page .admin-nav-menu,
    body.admin-page .admin-create-menu summary,
    body.admin-page .admin-nav-menu summary,
    body.admin-page .admin-topbar-actions .button,
    body.admin-page .admin-topbar-actions .admin-nav-link,
    body.admin-page .admin-topbar-actions .admin-theme-toggle {
        width: auto;
        min-width: 0;
    }

    body.admin-page .admin-create-menu,
    body.admin-page .admin-nav-menu {
        position: static;
    }

    body.admin-page .admin-topbar-actions .admin-nav-link,
    body.admin-page .admin-topbar-actions .admin-theme-toggle,
    body.admin-page .admin-create-menu summary,
    body.admin-page .admin-nav-menu summary {
        justify-content: center;
        min-height: 42px;
        padding: 0 10px;
        font-size: 0.92rem;
    }

    body.admin-page .admin-topbar-actions .material-symbols-outlined {
        font-size: 18px;
    }

    body.admin-page .admin-create-dropdown,
    body.admin-page .admin-nav-menu-dropdown {
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        z-index: 120;
        width: 100%;
        max-height: min(62vh, 390px);
        overflow: auto;
        transform: none;
    }

    body.admin-page .admin-topbar-actions.has-open-admin-menu > *:not([open]) {
        pointer-events: none;
    }

    body.admin-page.admin-topbar-menu-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 49;
        background: transparent;
    }

    body.admin-page .admin-topbar-actions.has-open-admin-menu > details[open],
    body.admin-page .admin-topbar-actions.has-open-admin-menu > details[open] * {
        pointer-events: auto;
    }

    body.admin-page .admin-theme-toggle-track {
        width: 48px;
        height: 30px;
    }

    body.admin-page .admin-theme-toggle-knob {
        width: 22px;
        height: 22px;
    }

    body.admin-page .admin-theme-toggle.is-dark .admin-theme-toggle-knob {
        transform: translateX(18px);
    }

    body.admin-page .admin-main {
        padding-top: 18px;
    }

    body.admin-page .product-admin-card {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    body.admin-page .product-admin-card .software-admin-file-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    body.admin-page .product-sync-log article {
        grid-template-columns: 1fr;
    }

    body.admin-page .admin-hero-copy {
        padding: 22px 20px;
    }

    body.admin-page .admin-hero h1,
    body.admin-page .admin-auth-copy h1 {
        font-size: clamp(1.85rem, 7.2vw, 2.25rem);
        line-height: 1.06;
        overflow-wrap: anywhere;
    }

    body.admin-page .admin-editor-hero h1 {
        font-size: clamp(1.55rem, 6.4vw, 2rem);
        line-height: 1.12;
    }
}

@media (max-width: 480px) {
    body.public-page .lesson-products {
        padding: 16px;
        border-radius: 24px;
    }

    body.public-page .lesson-products-titleline {
        align-items: flex-start;
    }

    body.public-page .lesson-products-icon {
        width: 48px;
        height: 48px;
        border-radius: 17px;
    }

    body.public-page .lesson-product-card,
    body.public-page .lesson-product-card.is-featured {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
        border-radius: 22px;
    }

    body.public-page .lesson-product-body {
        padding-right: 0;
    }

    body.public-page .lesson-product-index {
        display: none;
    }

    body.admin-page .admin-topbar-actions {
        grid-template-columns: 1fr 1fr;
    }

    body.admin-page .admin-nav-menu--admin {
        grid-column: 1 / -1;
    }

    body.admin-page .admin-theme-toggle-label {
        display: inline;
        min-width: 0;
    }

    body.admin-page .admin-topbar-actions .admin-nav-link,
    body.admin-page .admin-topbar-actions .admin-theme-toggle,
    body.admin-page .admin-create-menu summary,
    body.admin-page .admin-nav-menu summary {
        gap: 6px;
        padding-right: 8px;
        padding-left: 8px;
        font-size: 0.86rem;
    }
}

@media (max-width: 760px) {
    body.public-page .wiki-entry .doc-title {
        max-width: 100%;
        font-size: 2.25rem;
        line-height: 1.08;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: auto;
    }
}

@media (max-width: 430px) {
    body.public-page .wiki-entry .doc-title {
        font-size: 2.1rem;
    }
}

body.public-page--wiki,
body.public-page--wiki-entry {
    --public-text: #111;
    --public-muted: #444;
    --public-teal: #00547e;
    --public-surface: #fff;
    --public-surface-soft: #f7f6f6;
    --public-border: #e7e7e7;
    background: #fff;
    color: #111;
}

html.public-theme-dark body.public-page--wiki,
html.public-theme-dark body.public-page--wiki-entry {
    --public-text: #f4f5f6;
    --public-muted: #b1bac3;
    --public-teal: #6fb9d8;
    --public-teal-strong: #8ad0ec;
    --public-teal-dark: #b8e7f8;
    --public-surface: #111418;
    --public-surface-soft: #181c22;
    --public-border: rgba(255, 255, 255, 0.12);
    background: #08090b;
    color: var(--public-text);
}

body.public-page--wiki .public-main,
body.public-page--wiki-entry .public-main {
    max-width: none;
    padding: 18px 0 48px;
    background: #fff;
}

html.public-theme-dark body.public-page--wiki .public-main,
html.public-theme-dark body.public-page--wiki-entry .public-main {
    background:
        radial-gradient(circle at 16% 0%, rgba(111, 185, 216, 0.08), transparent 34%),
        linear-gradient(180deg, #08090b 0%, #101216 52%, #08090b 100%);
}

.wiki-old,
.wiki-old * {
    box-sizing: border-box;
}

.wiki-old {
    color: #111;
    font-family: "PT Sans", "Inter", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.35;
}

.wiki-old .width100 {
    width: 100%;
}

.wiki-old .width1366 {
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
}

.wiki-old .backgroundGrey {
    background-color: #f7f6f6;
}

.wiki-old h1 {
    margin: 20px 10px;
    color: #444;
    font-family: "PT Sans", "Inter", Arial, sans-serif;
    font-size: 35px;
    line-height: 1.18;
}

.wiki-old .pageInfo h1,
.wiki-old .pageInfo h2 {
    color: #333;
    margin: 20px 10px;
}

.wiki-old .LinkBar {
    margin: 0 10px;
    color: #444;
    font-size: 16px;
    line-height: 26px;
}

.wiki-old .LinkBar a,
.wiki-old .LinkBar .link {
    color: #1e789b;
}

.wiki-old .LinkBar a:hover,
.wiki-old .LinkBar a:focus-visible {
    color: #12465b;
}

.wiki-old .boxMain-1,
.wiki-old .boxMain-2 {
    display: grid;
    align-items: stretch;
}

.wiki-old .boxMain-2 {
    grid-template-columns: minmax(600px, 1fr) minmax(600px, 1fr);
}

.wiki-old .boxMain {
    margin: 10px;
}

.wiki-old .boxMainCol2 {
    display: grid;
    grid-template-columns: 200px minmax(40px, 1fr);
}

.wiki-old .boxMain .col1 {
    padding: 10px;
}

.wiki-old .boxMain .col1 h2 {
    margin: 0 0 20px;
    padding: 0;
    color: #333;
    font-family: "PT Sans", "Inter", Arial, sans-serif;
    font-size: 24px;
    line-height: 1.18;
}

.wiki-old .boxMain .col1 picture,
.wiki-old .boxMain .col1 img {
    display: block;
    width: 150px;
    max-width: 100%;
}

.wiki-old .wiki-home-group-description {
    max-width: 100%;
    margin: 0 0 12px;
    color: #333;
    font-size: 15px;
    line-height: 1.42;
}

.wiki-old .boxMain .col2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.wiki-old .boxMain .col2.wiki-home-balanced-columns {
    --wiki-home-balanced-columns: 2;
    grid-template-columns: repeat(var(--wiki-home-balanced-columns), minmax(0, 1fr));
}

.wiki-old .boxMain .col2.wiki-home-columns-3 {
    --wiki-home-balanced-columns: 3;
}

.wiki-old .boxMain .col2.wiki-home-columns-4 {
    --wiki-home-balanced-columns: 4;
}

.wiki-old .boxMain .col2.wiki-home-columns-5 {
    --wiki-home-balanced-columns: 5;
}

.wiki-old .boxMain .col2 > div {
    margin: 15px 5px;
}

.wiki-old .number {
    display: inline;
    padding: 0 6px;
    background-color: #00547e;
    color: #fff;
    font-weight: 700;
}

.wiki-old .ulLink {
    margin: 0 0 0 30px;
    padding: 0;
}

.wiki-old .ulLink li {
    margin: 5px 0;
    color: #00547e;
}

.wiki-old .wiki-home-extra-link.is-nested {
    margin-left: 16px;
    list-style: circle;
    font-size: 14px;
}

.wiki-old .wiki-home-manual-entry {
    margin: 0 0 12px;
    color: #333;
    font-size: 15px;
    line-height: 1.42;
}

.wiki-old .wiki-home-manual-entry a,
.wiki-old .wiki-home-group-description a {
    color: #00547e;
    font-weight: 700;
    text-decoration-line: underline;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgba(0, 84, 126, 0.55);
    text-underline-offset: 3px;
}

.wiki-old .wiki-home-extra-link a {
    color: #00547e;
    font-weight: inherit;
    text-decoration-line: underline;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgba(0, 84, 126, 0.55);
    text-underline-offset: 3px;
}

.wiki-old a,
.wiki-old .link {
    color: #00547e;
    text-decoration: none;
}

.wiki-old .wiki-home-manual-entry a:hover,
.wiki-old .wiki-home-manual-entry a:focus-visible,
.wiki-old .wiki-home-group-description a:hover,
.wiki-old .wiki-home-group-description a:focus-visible,
.wiki-old .wiki-home-extra-link a:hover,
.wiki-old .wiki-home-extra-link a:focus-visible {
    text-decoration-color: #111;
}

.wiki-old a:hover,
.wiki-old a:focus-visible {
    color: #111;
    background-color: rgba(255, 204, 0, 0.15);
    outline: none;
}

.wiki-old .Datasheet {
    display: inline-block;
    margin-top: 5px;
    padding: 1px 8px;
    border-radius: 4px;
    background-color: #a0a0a0;
    color: #fff;
    font-size: 14px;
    line-height: 1.25;
}

.wiki-old .Datasheet:hover,
.wiki-old .Datasheet:focus-visible {
    background-color: #0090da;
    color: #fff;
}

.wiki-old .wiki-category-page-listing .boxMainCol2 {
    grid-template-columns: 1fr;
}

.wiki-old .wiki-category-page-listing .boxMain .col1 {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-bottom: 1px solid #e2e2e2;
}

.wiki-old .wiki-category-page-listing .boxMain .col1 h2 {
    margin: 0;
}

.wiki-old .wiki-category-page-listing .boxMain .col1 picture,
.wiki-old .wiki-category-page-listing .boxMain .col1 img {
    width: 78px;
}

.wiki-old .wiki-category-page-listing .boxMain .col2 {
    display: block;
}

.wiki-old .wiki-category-page-listing .boxMain .col2 > div {
    margin: 12px;
}

.wiki-old .wiki-category-listing-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.wiki-old .wiki-category-count {
    color: #666;
    font-size: 14px;
    font-weight: 700;
}

.wiki-old .wiki-category-listing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 8px;
    margin: 0;
}

.wiki-old .wiki-category-card-old {
    display: grid;
    gap: 8px;
    align-content: space-between;
    min-width: 0;
    min-height: 104px;
    padding: 10px;
    border: 1px solid #d9e6ec;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 84, 126, 0.05);
}

.wiki-old .wiki-category-card-old:hover {
    border-color: rgba(0, 84, 126, 0.42);
}

.wiki-old .wiki-category-card-main {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.wiki-old .wiki-category-card-main:hover,
.wiki-old .wiki-category-card-main:focus-visible {
    background: transparent;
    color: inherit;
}

.wiki-old .wiki-category-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(0, 84, 126, 0.18);
    border-radius: 4px;
    background: #eef8fd;
    color: #00547e;
    font-size: 18px;
}

.wiki-old .wiki-category-card-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.wiki-old .wiki-category-card-copy strong {
    color: #1b2a31;
    font-size: 15px;
    line-height: 1.2;
}

.wiki-old .wiki-category-card-copy small {
    display: -webkit-box;
    overflow: hidden;
    color: #555;
    font-size: 13px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wiki-old .wiki-category-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-left: 36px;
}

.wiki-old .wiki-category-open {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 24px;
    padding: 2px 8px;
    border: 1px solid rgba(0, 84, 126, 0.26);
    border-radius: 4px;
    background: #f4fbff;
    color: #00547e;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
}

.wiki-old .wiki-category-open .material-symbols-outlined {
    font-size: 16px;
}

.wiki-old .wiki-category-open:hover,
.wiki-old .wiki-category-open:focus-visible {
    border-color: #00547e;
    background: #00547e;
    color: #fff;
    outline: none;
}

.wiki-old .status-new {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #ffcc00;
    color: #2a2a2a;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.wiki-old .pageWiki {
    display: grid;
    grid-template-columns: 720px minmax(150px, 1fr);
    gap: 0;
    margin-top: 50px;
}

.wiki-old #content {
    margin: 0 10px;
}

.wiki-old .redactor-styles {
    margin: 0;
    color: #111;
    font-family: Arial, sans-serif;
    text-align: justify;
}

.wiki-old .redactor-styles p {
    margin: 0 0 1em;
    text-indent: 20px;
}

.wiki-old .redactor-styles a,
.wiki-old .redactor-styles a:hover {
    color: #1e789b;
}

.wiki-old .redactor-styles h1,
.wiki-old .redactor-styles h2,
.wiki-old .redactor-styles h3,
.wiki-old .redactor-styles h4,
.wiki-old .redactor-styles h5,
.wiki-old .redactor-styles h6 {
    margin: 0 0 0.5em;
    padding: 0;
    color: #2a2e34;
    font-family: "PT Sans Narrow", "PT Sans", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

.wiki-old .redactor-styles h2 {
    font-size: 22px;
}

.wiki-old .redactor-styles h3 {
    font-size: 18px;
}

.wiki-old .redactor-styles ul,
.wiki-old .redactor-styles ol {
    margin: 0 0 1em 1.5em;
    padding: 0;
}

.wiki-old .redactor-styles ul li,
.wiki-old .redactor-styles ol li {
    text-align: left;
}

.wiki-old .redactor-styles img,
.wiki-old .redactor-styles video,
.wiki-old .redactor-styles iframe,
.wiki-old .redactor-styles embed,
.wiki-old .redactor-styles object {
    max-width: 100%;
}

.wiki-old .redactor-styles img,
.wiki-old .redactor-styles video,
.wiki-old .redactor-styles embed,
.wiki-old .redactor-styles object {
    height: auto;
}

.wiki-old .redactor-styles table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

.wiki-old .redactor-styles table th,
.wiki-old .redactor-styles table td {
    padding: 5px;
    border: 1px solid #eee;
}

.wiki-old .redactor-styles code,
.wiki-old .redactor-styles kbd {
    position: relative;
    top: -1px;
    display: inline;
    max-width: calc(100% - 8px);
    margin-right: 4px;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 2px;
    background-color: #eff1f2;
    color: rgba(33, 34, 36, 0.9);
    font-family: Consolas, Menlo, Monaco, "Courier New", monospace;
    line-height: 1;
    word-wrap: break-word;
}

.wiki-old .redactor-styles pre,
.wiki-old .redactor-styles pre code,
.wiki-old .redactor-styles pre .hljs {
    color: #fff;
    font-family: Consolas, Menlo, Monaco, "Courier New", monospace;
}

.wiki-old .redactor-styles pre {
    display: block;
    padding: 10px;
    overflow: auto;
    background-color: #333;
}

.wiki-old .redactor-styles pre code,
.wiki-old .redactor-styles pre .hljs {
    top: 0;
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    line-height: 1.5;
}

.wiki-old .redactor-styles .alert {
    padding: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 4px;
    text-indent: 0;
}

.wiki-old .redactor-styles .alert p {
    margin-bottom: 0;
    text-indent: 0;
}

.wiki-old .redactor-styles .alert-success {
    border: 1px solid #e0f1e9;
    background-color: #f1f9f7;
    color: #1d9d74;
}

.wiki-old .redactor-styles .alert-danger {
    border: 1px solid #f7d8dd;
    background-color: #fbeeed;
    color: #d9534f;
}

.wiki-old .redactor-styles .alert-info {
    border: 1px solid #ccf3ff;
    background-color: #f0f9ff;
    color: #007dbc;
}

.wiki-old .redactor-styles .alert-warning {
    border: 1px solid #f7e7b7;
    background-color: #fff8e2;
    color: #8a6414;
}

.wiki-old .nav_right {
    display: block;
    margin-top: 20px;
    padding-left: 10px;
    border-left: 2px solid #1e789b;
}

.wiki-old .nav_right h3 {
    margin: 20px 0 5px;
    color: #444;
    font-family: "PT Sans Narrow", "PT Sans", Arial, sans-serif;
    font-size: 30px;
    line-height: 1.15;
}

.wiki-old .nav_right ul {
    margin: 0 0 0 20px;
    padding: 0;
    color: #1e789b;
}

.wiki-old .nav_right li {
    margin-left: 0;
}

.wiki-old .nav_right a {
    display: block;
    margin-top: 10px;
    color: #1e789b;
    font-size: 14px;
    text-indent: 0;
}

.wiki-old .nav_right a:hover,
.wiki-old .nav_right a:focus-visible {
    color: #12465b;
}

.wiki-old #prev_wiki {
    overflow: hidden;
    margin-bottom: 10px;
    font-size: 14px;
}

.wiki-old #prev_wiki .left {
    float: left;
    width: 200px;
    min-height: 160px;
}

.wiki-old #prev_wiki .left .img_prev_grup {
    max-width: 190px;
    max-height: 160px;
}

.wiki-old #prev_wiki .right {
    float: left;
    max-width: 470px;
    margin-left: 10px;
}

.wiki-old #prev_wiki .right .title {
    margin: 5px 0;
    color: #444;
    font-size: 15px;
    font-weight: 700;
}

.wiki-old #prev_wiki .right .wiki_linl_block {
    margin-bottom: 5px;
    margin-left: 5px;
}

.wiki-old #prev_wiki .right .wiki_linl_block span {
    color: #444;
}

.wiki-old #prev_wiki .right .wiki-resource-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    margin-bottom: 8px;
}

.wiki-old #prev_wiki .right .wiki-library-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    margin-bottom: 8px;
}

.wiki-old #prev_wiki .right .wiki-resource-link,
.wiki-old #prev_wiki .right .wiki-library-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(0, 84, 126, 0.34);
    border-radius: 4px;
    background: #f4fbff;
    color: #00547e;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
    box-shadow: inset 0 -1px 0 rgba(0, 84, 126, 0.12);
}

.wiki-old #prev_wiki .right .wiki-library-link {
    gap: 5px;
    max-width: 100%;
    justify-content: flex-start;
}

.wiki-old #prev_wiki .right .wiki-library-link span {
    color: inherit;
}

.wiki-old #prev_wiki .right .wiki-library-link .material-symbols-outlined {
    flex: 0 0 auto;
    font-size: 17px;
    line-height: 1;
}

.wiki-old #prev_wiki .right .wiki-resource-link:hover,
.wiki-old #prev_wiki .right .wiki-resource-link:focus-visible,
.wiki-old #prev_wiki .right .wiki-library-link:hover,
.wiki-old #prev_wiki .right .wiki-library-link:focus-visible {
    border-color: #00547e;
    background: #00547e;
    color: #fff;
    outline: none;
}

.wiki-old #prev_wiki .right .wiki-resource-id {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: #666;
    font-size: 13px;
}

.wiki-old .wiki-shop-link-button {
    margin-top: 8px;
}

.wiki-old #wiki-shop-link {
    margin-top: 10px;
}

.wiki-old #wiki-shop-link .item {
    margin: 8px 0;
}

.wiki-old #wiki-shop-link .item a {
    display: inline-grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.wiki-old #wiki-shop-link .item .img {
    display: grid;
    place-items: center;
    width: 54px;
    height: 44px;
    border: 1px solid #e7e7e7;
    background: #fff;
}

.wiki-old #wiki-shop-link .item img {
    max-width: 50px;
    max-height: 40px;
}

.wiki-old #wiki-shop-link .item .name {
    line-height: 1.25;
}

.wiki-old .button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    border-width: 1px;
    border-style: solid;
    border-color: #d43f3a;
    background-color: #d9534f;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}

.wiki-old .button:hover,
.wiki-old .button:focus-visible {
    border-color: #ac2925;
    background-color: #c9302c;
    color: #fff;
}

.wiki-old .wiki-old-linked {
    margin: 24px 10px 0;
    padding: 12px 14px;
    border: 1px solid #e7e7e7;
    background: #f7f6f6;
}

.wiki-old .wiki-old-linked h2 {
    margin: 0 0 10px;
    color: #333;
    font-family: "PT Sans", "Inter", Arial, sans-serif;
    font-size: 22px;
}

.wiki-old .wiki-old-video {
    margin: 10px 0;
}

.wiki-old .wiki-old-video iframe {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 16 / 9;
    height: auto;
}

.wiki-old .textblack {
    color: #000;
}

html.public-theme-dark body.public-page .wiki-old {
    color: var(--public-text);
}

html.public-theme-dark body.public-page .wiki-old .backgroundGrey,
html.public-theme-dark body.public-page .wiki-old .wiki-old-linked {
    border: 1px solid rgba(255, 255, 255, 0.105);
    background-color: rgba(17, 20, 24, 0.9);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

html.public-theme-dark body.public-page .wiki-old h1,
html.public-theme-dark body.public-page .wiki-old .pageInfo h1,
html.public-theme-dark body.public-page .wiki-old .pageInfo h2,
html.public-theme-dark body.public-page .wiki-old .boxMain .col1 h2,
html.public-theme-dark body.public-page .wiki-old .redactor-styles,
html.public-theme-dark body.public-page .wiki-old .redactor-styles h1,
html.public-theme-dark body.public-page .wiki-old .redactor-styles h2,
html.public-theme-dark body.public-page .wiki-old .redactor-styles h3,
html.public-theme-dark body.public-page .wiki-old .redactor-styles h4,
html.public-theme-dark body.public-page .wiki-old .redactor-styles h5,
html.public-theme-dark body.public-page .wiki-old .redactor-styles h6,
html.public-theme-dark body.public-page .wiki-old .nav_right h3,
html.public-theme-dark body.public-page .wiki-old #prev_wiki .right .title,
html.public-theme-dark body.public-page .wiki-old #prev_wiki .right .wiki_linl_block span,
html.public-theme-dark body.public-page .wiki-old .wiki-old-linked h2,
html.public-theme-dark body.public-page .wiki-old .textblack {
    color: var(--public-text);
}

html.public-theme-dark body.public-page .wiki-old .LinkBar {
    color: var(--public-muted);
}

html.public-theme-dark body.public-page .wiki-old .wiki-home-group-description,
html.public-theme-dark body.public-page .wiki-old .wiki-home-manual-entry {
    color: var(--public-muted);
}

html.public-theme-dark body.public-page .wiki-old a,
html.public-theme-dark body.public-page .wiki-old .link,
html.public-theme-dark body.public-page .wiki-old .LinkBar a,
html.public-theme-dark body.public-page .wiki-old .LinkBar .link,
html.public-theme-dark body.public-page .wiki-old .redactor-styles a,
html.public-theme-dark body.public-page .wiki-old .redactor-styles a:hover,
html.public-theme-dark body.public-page .wiki-old .nav_right a {
    color: var(--public-teal);
}

html.public-theme-dark body.public-page .wiki-old .redactor-styles [style*="color" i] {
    color: var(--public-text) !important;
}

html.public-theme-dark body.public-page .wiki-old .redactor-styles a[style*="color" i] {
    color: var(--public-teal) !important;
}

html.public-theme-dark body.public-page .wiki-old .redactor-styles [style*="background" i] {
    background-color: transparent !important;
}

html.public-theme-dark body.public-page .wiki-old .redactor-styles [style*="border-color" i] {
    border-color: rgba(255, 255, 255, 0.16) !important;
}

html.public-theme-dark body.public-page .wiki-old .redactor-styles mark {
    background-color: rgba(255, 204, 0, 0.2);
    color: #ffe89a;
}

html.public-theme-dark body.public-page .wiki-old a:hover,
html.public-theme-dark body.public-page .wiki-old a:focus-visible,
html.public-theme-dark body.public-page .wiki-old .LinkBar a:hover,
html.public-theme-dark body.public-page .wiki-old .LinkBar a:focus-visible,
html.public-theme-dark body.public-page .wiki-old .nav_right a:hover,
html.public-theme-dark body.public-page .wiki-old .nav_right a:focus-visible {
    background-color: rgba(111, 185, 216, 0.12);
    color: #dff3fb;
}

html.public-theme-dark body.public-page .wiki-old .number {
    background-color: #237fa8;
    color: #fff;
}

html.public-theme-dark body.public-page .wiki-old .ulLink li,
html.public-theme-dark body.public-page .wiki-old .nav_right ul {
    color: var(--public-teal);
}

html.public-theme-dark body.public-page .wiki-old .Datasheet {
    background-color: rgba(255, 255, 255, 0.18);
    color: var(--public-text);
}

html.public-theme-dark body.public-page .wiki-old .wiki-category-count,
html.public-theme-dark body.public-page .wiki-old .wiki-category-card-copy small {
    color: var(--public-muted);
}

html.public-theme-dark body.public-page .wiki-old .wiki-category-card-old {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(17, 20, 24, 0.88);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.035);
}

html.public-theme-dark body.public-page .wiki-old .wiki-category-card-old:hover {
    border-color: rgba(111, 185, 216, 0.38);
}

html.public-theme-dark body.public-page .wiki-old .wiki-category-card-copy strong {
    color: var(--public-text);
}

html.public-theme-dark body.public-page .wiki-old .wiki-category-page-listing .boxMain .col1 {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

html.public-theme-dark body.public-page .wiki-old .wiki-category-card-icon,
html.public-theme-dark body.public-page .wiki-old .wiki-category-open {
    border-color: rgba(111, 185, 216, 0.32);
    background: rgba(111, 185, 216, 0.12);
    color: var(--public-teal);
}

html.public-theme-dark body.public-page .wiki-old .wiki-category-open:hover,
html.public-theme-dark body.public-page .wiki-old .wiki-category-open:focus-visible {
    border-color: rgba(138, 208, 236, 0.72);
    background: rgba(111, 185, 216, 0.26);
    color: #e9f8ff;
}

html.public-theme-dark body.public-page .wiki-old #prev_wiki .right .wiki-resource-link,
html.public-theme-dark body.public-page .wiki-old #prev_wiki .right .wiki-library-link {
    border-color: rgba(111, 185, 216, 0.42);
    background: rgba(111, 185, 216, 0.12);
    color: var(--public-teal);
    box-shadow: inset 0 -1px 0 rgba(111, 185, 216, 0.16);
}

html.public-theme-dark body.public-page .wiki-old #prev_wiki .right .wiki-resource-link:hover,
html.public-theme-dark body.public-page .wiki-old #prev_wiki .right .wiki-resource-link:focus-visible,
html.public-theme-dark body.public-page .wiki-old #prev_wiki .right .wiki-library-link:hover,
html.public-theme-dark body.public-page .wiki-old #prev_wiki .right .wiki-library-link:focus-visible {
    border-color: rgba(138, 208, 236, 0.72);
    background: rgba(111, 185, 216, 0.26);
    color: #e9f8ff;
}

html.public-theme-dark body.public-page .wiki-old #prev_wiki .right .wiki-resource-id {
    color: var(--public-muted);
}

html.public-theme-dark body.public-page .wiki-old #wiki-shop-link .item .img {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

html.public-theme-dark body.public-page .wiki-old .Datasheet:hover,
html.public-theme-dark body.public-page .wiki-old .Datasheet:focus-visible {
    background-color: #0090da;
    color: #fff;
}

html.public-theme-dark body.public-page .wiki-old .nav_right {
    border-left-color: var(--public-teal);
}

html.public-theme-dark body.public-page .wiki-old #prev_wiki .left .img_prev_grup,
html.public-theme-dark body.public-page .wiki-old .boxMain .col1 img {
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

html.public-theme-dark body.public-page .wiki-old .redactor-styles img,
html.public-theme-dark body.public-page .wiki-old .redactor-styles video,
html.public-theme-dark body.public-page .wiki-old .redactor-styles iframe,
html.public-theme-dark body.public-page .wiki-old .redactor-styles embed,
html.public-theme-dark body.public-page .wiki-old .redactor-styles object {
    border-color: rgba(255, 255, 255, 0.11);
}

html.public-theme-dark body.public-page .wiki-old .redactor-styles table {
    background: rgba(17, 20, 24, 0.86);
}

html.public-theme-dark body.public-page .wiki-old .redactor-styles table th,
html.public-theme-dark body.public-page .wiki-old .redactor-styles table td {
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--public-text);
}

html.public-theme-dark body.public-page .wiki-old .redactor-styles table th {
    background: rgba(255, 255, 255, 0.075);
}

html.public-theme-dark body.public-page .wiki-old .redactor-styles code,
html.public-theme-dark body.public-page .wiki-old .redactor-styles kbd {
    background-color: rgba(255, 255, 255, 0.075);
    color: #eef2f4;
}

html.public-theme-dark body.public-page .wiki-old .redactor-styles pre {
    background-color: #07141a;
}

html.public-theme-dark body.public-page .wiki-old .redactor-styles pre,
html.public-theme-dark body.public-page .wiki-old .redactor-styles pre code,
html.public-theme-dark body.public-page .wiki-old .redactor-styles pre .hljs {
    color: #d8fff8;
}

html.public-theme-dark body.public-page .wiki-old .redactor-styles .alert {
    box-shadow: 0 18px 46px -38px rgba(0, 0, 0, 0.66);
}

html.public-theme-dark body.public-page .wiki-old .redactor-styles .alert-success {
    border-color: rgba(125, 214, 167, 0.24);
    background-color: rgba(27, 68, 49, 0.38);
    color: #c9f7dc;
}

html.public-theme-dark body.public-page .wiki-old .redactor-styles .alert-danger {
    border-color: rgba(255, 143, 118, 0.28);
    background-color: rgba(88, 32, 32, 0.38);
    color: #ffd0c5;
}

html.public-theme-dark body.public-page .wiki-old .redactor-styles .alert-info {
    border-color: rgba(111, 185, 216, 0.28);
    background-color: rgba(111, 185, 216, 0.12);
    color: #dff3fb;
}

html.public-theme-dark body.public-page .wiki-old .redactor-styles .alert-warning {
    border-color: rgba(255, 213, 106, 0.28);
    background-color: rgba(108, 79, 19, 0.34);
    color: #ffe2a3;
}

html.public-theme-dark body.public-page .wiki-old .button {
    border-color: rgba(255, 143, 118, 0.36);
    background-color: #d9534f;
    color: #fff;
}

html.public-theme-dark body.public-page .wiki-old .button:hover,
html.public-theme-dark body.public-page .wiki-old .button:focus-visible {
    background-color: #c9302c;
    color: #fff;
}

@media (max-width: 1260px) {
    .wiki-old .boxMain-2 {
        grid-template-columns: 1fr;
    }

    .wiki-old .boxMainCol2 {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .wiki-old .pageWiki {
        grid-template-columns: minmax(0, 1fr) 260px;
        padding: 0 10px;
    }
}

@media (max-width: 1259px) {
    .wiki-old .boxMain .col2.wiki-home-columns-5 {
        --wiki-home-balanced-columns: 4;
    }
}

@media (max-width: 1099px) {
    .wiki-old .boxMain .col2.wiki-home-columns-4,
    .wiki-old .boxMain .col2.wiki-home-columns-5 {
        --wiki-home-balanced-columns: 3;
    }
}

@media (max-width: 860px) {
    body.public-page--wiki .public-main,
    body.public-page--wiki-entry .public-main {
        padding-top: 10px;
    }

    .wiki-old h1 {
        margin: 16px 10px;
        font-size: 26px;
    }

    .wiki-old .boxMainCol2,
    .wiki-old .pageWiki {
        grid-template-columns: 1fr;
    }

    .wiki-old .boxMain .col2 {
        grid-template-columns: 1fr;
    }

    .wiki-old .boxMain .col2.wiki-home-balanced-columns {
        --wiki-home-balanced-columns: 1;
    }

    .wiki-old .boxMain .col1 picture,
    .wiki-old .boxMain .col1 img {
        width: 120px;
    }

    .wiki-old #prev_wiki .left,
    .wiki-old #prev_wiki .right {
        float: none;
        width: auto;
        max-width: none;
        margin-left: 10px;
    }

    .wiki-old .nav_right {
        margin: 24px 10px 0;
    }
}

@media (max-width: 520px) {
    .wiki-old .boxMain {
        margin: 8px 10px;
    }

    .wiki-old .boxMain .col1 {
        padding-bottom: 0;
    }

    .wiki-old .boxMain .col1 h2 {
        font-size: 22px;
    }

    .wiki-old .ulLink {
        margin-left: 22px;
    }

    .wiki-old .wiki-category-listing {
        grid-template-columns: 1fr;
    }

    .wiki-old .wiki-category-page-listing .boxMain .col1 {
        align-items: flex-start;
    }
}

.wiki-home-public-separator {
    width: 100%;
    height: 1px;
    margin: 18px 0;
    background: rgba(0, 84, 126, 0.18);
}

.wiki-home-builder {
    --builder-panel: #ffffff;
    --builder-panel-strong: #f9fcfd;
    --builder-line: rgba(11, 64, 88, 0.14);
    --builder-text: #10212b;
    --builder-muted: #607482;
    --builder-cyan: #006b9f;
    --builder-green: #24835d;
    --builder-coral: #c24f37;
    --builder-yellow: #9f7416;
    --builder-shadow: 0 22px 70px rgba(15, 35, 46, 0.12);
    width: min(1760px, calc(100% - 24px));
    margin: 18px auto 28px;
    color: var(--builder-text);
}

.wiki-builder-commandbar,
.wiki-builder-statusbar,
.wiki-builder-sidebar,
.wiki-builder-canvas-shell,
.wiki-builder-metrics article,
.wiki-builder-command-palette {
    border: 1px solid var(--builder-line);
    border-radius: 8px;
    background: var(--builder-panel);
    box-shadow: var(--builder-shadow);
}

.wiki-builder-commandbar {
    position: sticky;
    top: 8px;
    z-index: 20;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
}

.wiki-builder-title,
.wiki-builder-command-actions,
.wiki-builder-canvas-toolbar,
.wiki-builder-canvas-tools,
.wiki-builder-inspector-head,
.wiki-builder-statusbar,
.wiki-builder-revision,
.wiki-builder-category-item header {
    display: flex;
    align-items: center;
}

.wiki-builder-title {
    gap: 14px;
    min-width: 0;
}

.wiki-builder-title h1 {
    margin: 2px 0 0;
    font-size: clamp(1.45rem, 2vw, 2.15rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.wiki-builder-back {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--builder-line);
    border-radius: 8px;
    color: var(--builder-text);
    text-decoration: none;
    background: var(--builder-panel-strong);
}

.wiki-builder-command-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.wiki-home-builder .button,
.wiki-home-builder button,
.wiki-home-builder .icon-button,
.wiki-home-builder .admin-list-action,
.wiki-home-builder .admin-manual-action {
    border-radius: 8px;
    letter-spacing: 0;
}

.wiki-home-builder .icon-button {
    display: inline-grid;
    place-items: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border: 1px solid var(--builder-line);
    background: var(--builder-panel-strong);
    color: var(--builder-text);
}

.wiki-home-builder .icon-button:hover,
.wiki-home-builder .icon-button:focus-visible {
    background: rgba(0, 107, 159, 0.08);
    color: var(--builder-cyan);
}

.wiki-builder-command-button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(0, 107, 159, 0.26);
    background: #e8f6fb;
    color: #0c5878;
}

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

.wiki-builder-metrics article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    align-items: center;
    padding: 12px;
}

.wiki-builder-metrics .material-symbols-outlined {
    grid-row: span 2;
    color: var(--builder-cyan);
}

.wiki-builder-metrics strong {
    font-size: 1.2rem;
    line-height: 1;
}

.wiki-builder-metrics small,
.wiki-builder-canvas-toolbar small,
.wiki-builder-layer small,
.wiki-builder-template small,
.wiki-builder-inspector-head small,
.wiki-builder-revision small {
    color: var(--builder-muted);
    font-size: 0.78rem;
    line-height: 1.3;
}

.wiki-builder-shell {
    display: grid;
    grid-template-columns: minmax(260px, 310px) minmax(0, 1fr) minmax(300px, 380px);
    gap: 12px;
    align-items: start;
}

.wiki-builder-sidebar,
.wiki-builder-canvas-shell {
    min-height: min(820px, calc(100vh - 250px));
    overflow: hidden;
}

.wiki-builder-sidebar {
    display: flex;
    flex-direction: column;
}

.wiki-builder-tabs {
    display: flex;
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid var(--builder-line);
    background: var(--builder-panel-strong);
    overflow-x: auto;
}

.wiki-builder-tabs button {
    flex: 1 0 auto;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--builder-muted);
    font-size: 0.83rem;
    font-weight: 700;
}

.wiki-builder-tabs button.is-active {
    border-color: rgba(0, 107, 159, 0.24);
    background: #eaf7fb;
    color: var(--builder-cyan);
}

.wiki-builder-panel {
    min-height: 0;
    padding: 10px;
    overflow: auto;
}

.wiki-builder-block-preset,
.wiki-builder-template,
.wiki-builder-layer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 58px;
    margin-bottom: 8px;
    padding: 10px;
    border: 1px solid var(--builder-line);
    border-radius: 8px;
    background: var(--builder-panel-strong);
    color: var(--builder-text);
    text-align: left;
}

.wiki-builder-block-preset:hover,
.wiki-builder-template:hover,
.wiki-builder-layer:hover,
.wiki-builder-layer.is-selected {
    border-color: rgba(0, 107, 159, 0.36);
    background: #edf8fb;
}

.wiki-builder-block-preset strong,
.wiki-builder-template strong,
.wiki-builder-layer strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wiki-builder-block-preset .material-symbols-outlined {
    color: var(--builder-green);
}

.wiki-builder-layer .material-symbols-outlined,
.wiki-builder-template .material-symbols-outlined {
    color: var(--builder-cyan);
}

.wiki-builder-layer.is-hidden,
.wiki-builder-canvas-block.is-hidden {
    opacity: 0.48;
}

.wiki-builder-layer input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.wiki-builder-layer-handle {
    color: var(--builder-muted);
}

.wiki-builder-layer-actions {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
}

.wiki-builder-layer-step {
    display: inline-grid;
    grid-template-columns: repeat(2, 24px);
    gap: 2px;
}

.wiki-builder-layer-step .material-symbols-outlined {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    color: var(--builder-muted);
}

.wiki-builder-layer-step .material-symbols-outlined:hover,
.wiki-builder-layer-step .material-symbols-outlined:focus-visible {
    background: rgba(0, 107, 159, 0.12);
    color: var(--builder-cyan);
}

.wiki-builder-bulkbar,
.wiki-builder-inspector-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.wiki-builder-canvas-shell {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f8fbfc, #ecf3f6);
}

.wiki-builder-canvas-toolbar {
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--builder-line);
    background: var(--builder-panel);
}

.wiki-builder-canvas-toolbar strong {
    display: block;
    overflow-wrap: anywhere;
}

.wiki-builder-canvas-tools {
    gap: 6px;
}

.wiki-builder-canvas-viewport {
    min-height: 0;
    padding: 16px;
    overflow: auto;
}

.wiki-builder-canvas-viewport.is-mobile .wiki-builder-public-stage {
    max-width: 430px;
}

.wiki-builder-canvas-viewport.is-mobile .wiki-builder-public-stage .boxMain-2,
.wiki-builder-canvas-viewport.is-mobile .wiki-builder-public-stage .boxMainCol2,
.wiki-builder-canvas-viewport.is-mobile .wiki-builder-public-stage .boxMain .col2 {
    grid-template-columns: 1fr;
}

.wiki-builder-canvas-viewport.is-mobile .wiki-builder-public-stage .boxMain .col1 picture,
.wiki-builder-canvas-viewport.is-mobile .wiki-builder-public-stage .boxMain .col1 img {
    width: 120px;
}

.wiki-builder-public-stage {
    width: 100%;
    max-width: 1366px;
    min-height: 640px;
    margin: 0 auto;
    padding: 18px;
    border: 1px solid rgba(11, 64, 88, 0.12);
    border-radius: 8px;
    background: #ffffff;
}

.wiki-builder-public-stage .width100,
.wiki-builder-public-stage .width1366 {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.wiki-builder-public-stage .pageInfo {
    padding: 0;
}

.wiki-builder-public-stage .boxMain-1,
.wiki-builder-public-stage .boxMain-2 {
    display: grid;
    align-items: stretch;
    gap: 0;
    margin-bottom: 0;
}

.wiki-builder-public-stage .boxMain-2 {
    grid-template-columns: minmax(600px, 1fr) minmax(600px, 1fr);
}

.wiki-builder-public-stage .boxMain-1 {
    grid-template-columns: minmax(0, 1fr);
}

.wiki-builder-public-stage .wiki-builder-canvas-block {
    position: relative;
    min-width: 0;
}

.wiki-builder-public-stage .boxMain {
    position: relative;
    min-width: 0;
}

.wiki-builder-public-stage .wiki-builder-canvas-block.is-fallback > .boxMain {
    outline: 1px dashed rgba(0, 84, 126, 0.22);
}

.wiki-builder-canvas-block {
    outline: 0 solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, outline-color 0.18s ease;
}

.wiki-builder-canvas-block.is-selected {
    outline: 2px solid var(--builder-cyan);
    box-shadow: 0 18px 38px rgba(0, 107, 159, 0.13);
}

.wiki-builder-canvas-block[data-motion="fade"] {
    animation: wikiBuilderFade 0.28s ease both;
}

.wiki-builder-canvas-block[data-motion="slide"] {
    animation: wikiBuilderSlide 0.28s ease both;
}

.wiki-builder-canvas-block[data-motion="scale"] {
    animation: wikiBuilderScale 0.24s ease both;
}

.wiki-builder-drag-handle {
    position: absolute;
    top: -30px;
    right: 12px;
    z-index: 3;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 1px solid rgba(0, 84, 126, 0.18);
    background: rgba(255, 255, 255, 0.88);
    color: var(--builder-muted);
    cursor: grab;
}

.wiki-builder-block-tools {
    position: absolute;
    top: -30px;
    left: 12px;
    z-index: 3;
    display: flex;
    gap: 4px;
    padding: 2px;
    border: 1px solid rgba(0, 84, 126, 0.14);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 26px rgba(12, 49, 65, 0.12);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.wiki-builder-canvas-block:hover .wiki-builder-block-tools,
.wiki-builder-canvas-block.is-selected .wiki-builder-block-tools {
    opacity: 1;
    transform: translateY(0);
}

.wiki-builder-block-tools .icon-button {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
}

.wiki-builder-separator {
    position: relative;
    min-height: 44px;
    border: 1px dashed rgba(0, 107, 159, 0.28);
    border-radius: 8px;
    background: repeating-linear-gradient(90deg, #ffffff 0, #ffffff 14px, #edf5f8 14px, #edf5f8 28px);
}

.wiki-builder-separator > span {
    position: absolute;
    left: 50px;
    right: 18px;
    top: 50%;
    height: 1px;
    background: rgba(0, 84, 126, 0.26);
}

.wiki-builder-empty-canvas,
.wiki-builder-empty-panel,
.wiki-builder-empty-block {
    display: grid;
    gap: 8px;
    place-items: center;
    min-height: 96px;
    padding: 14px;
    border: 1px dashed rgba(0, 84, 126, 0.22);
    border-radius: 8px;
    color: var(--builder-muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.58);
}

.wiki-builder-inspector-shell .wiki-builder-tabs {
    flex-wrap: wrap;
}

.wiki-builder-inspector-head {
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid var(--builder-line);
    border-radius: 8px;
    background: var(--builder-panel-strong);
}

.wiki-builder-inspector-head .material-symbols-outlined {
    color: var(--builder-green);
}

.wiki-builder-field {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--builder-text);
    font-size: 0.84rem;
    font-weight: 700;
}

.wiki-builder-field input,
.wiki-builder-field textarea,
.wiki-builder-field select,
.wiki-builder-command-search input {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--builder-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--builder-text);
    font: 500 0.9rem/1.4 "Inter", sans-serif;
}

.wiki-builder-field input,
.wiki-builder-field select,
.wiki-builder-command-search input {
    min-height: 40px;
    padding: 0 10px;
}

.wiki-builder-field textarea {
    resize: vertical;
    padding: 9px 10px;
}

.wiki-builder-check {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: 10px 0 14px;
    font-weight: 700;
}

.wiki-builder-check input {
    width: 18px;
    height: 18px;
}

.wiki-builder-category-stack {
    display: grid;
    gap: 10px;
}

.wiki-builder-category-item,
.wiki-builder-revision {
    border: 1px solid var(--builder-line);
    border-radius: 8px;
    background: var(--builder-panel-strong);
}

.wiki-builder-category-item {
    padding: 10px;
}

.wiki-builder-category-item header {
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.wiki-builder-category-item header strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wiki-builder-history {
    display: grid;
    gap: 8px;
}

.wiki-builder-revision {
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
}

.wiki-builder-revision > div {
    min-width: 0;
}

.wiki-builder-revision strong {
    display: block;
    overflow-wrap: anywhere;
}

.wiki-builder-statusbar {
    gap: 8px;
    min-height: 44px;
    margin-top: 12px;
    padding: 8px 12px;
    color: var(--builder-muted);
}

.wiki-builder-statusbar .material-symbols-outlined {
    color: var(--builder-green);
}

.wiki-builder-statusbar-spacer {
    flex: 1;
}

.wiki-home-builder[data-builder-tone="error"] .wiki-builder-statusbar .material-symbols-outlined {
    color: var(--builder-coral);
}

.wiki-home-builder[data-builder-tone="dirty"] .wiki-builder-statusbar .material-symbols-outlined,
.wiki-home-builder[data-builder-tone="loading"] .wiki-builder-statusbar .material-symbols-outlined {
    color: var(--builder-yellow);
}

.wiki-home-builder[data-document-state="dirty"] [data-metric-dirty] {
    color: var(--builder-yellow);
}

.wiki-home-builder[data-document-state="draft"] [data-metric-dirty] {
    color: var(--builder-cyan);
}

.wiki-home-builder[data-document-state="published"] [data-metric-dirty] {
    color: var(--builder-green);
}

.wiki-home-builder.is-action-pending {
    cursor: wait;
}

.wiki-home-builder.is-action-pending button:disabled,
.wiki-home-builder.is-action-pending input:disabled,
.wiki-home-builder.is-action-pending textarea:disabled,
.wiki-home-builder.is-action-pending select:disabled {
    cursor: wait;
    opacity: 0.64;
}

.wiki-home-builder [data-action-button].is-loading,
.wiki-home-builder [data-action-button].is-success {
    opacity: 1;
}

.wiki-home-builder [data-action-button].is-loading {
    border-color: rgba(229, 194, 104, 0.58);
    background: linear-gradient(135deg, #fff8dc, #edf8fb);
    color: #704d00;
}

.wiki-home-builder [data-action-button].is-success {
    border-color: rgba(20, 140, 95, 0.34);
    background: linear-gradient(135deg, #e6f8ed, #effbf7);
    color: #146d4a;
    animation: wikiBuilderActionPulse 0.72s ease both;
}

.wiki-builder-action-spinner {
    animation: wikiBuilderActionSpin 1s linear infinite;
}

.wiki-builder-toast-region {
    position: fixed;
    right: 22px;
    bottom: 62px;
    z-index: 130;
    display: grid;
    gap: 8px;
    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}

.wiki-builder-toast {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 107, 159, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--builder-text);
    box-shadow: 0 18px 46px rgba(12, 49, 65, 0.16);
    animation: wikiBuilderToastIn 0.2s ease both;
}

.wiki-builder-toast .material-symbols-outlined {
    color: var(--builder-green);
}

.wiki-builder-toast.is-loading .material-symbols-outlined {
    color: var(--builder-yellow);
    animation: wikiBuilderActionSpin 1s linear infinite;
}

.wiki-builder-toast.is-error {
    border-color: rgba(255, 120, 96, 0.32);
    background: #fff3ef;
}

.wiki-builder-toast.is-error .material-symbols-outlined {
    color: var(--builder-coral);
}

.wiki-builder-command-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: start center;
    padding: 92px 18px 18px;
    background: rgba(12, 24, 31, 0.48);
    backdrop-filter: blur(7px);
}

.wiki-builder-command-overlay[hidden] {
    display: none;
}

.wiki-builder-command-palette {
    width: min(720px, 100%);
    overflow: hidden;
}

.wiki-builder-command-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--builder-line);
}

.wiki-builder-command-results {
    max-height: min(520px, calc(100vh - 210px));
    overflow: auto;
    padding: 8px;
}

.wiki-builder-command-results button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 44px;
    margin-bottom: 4px;
    padding: 0 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--builder-text);
    text-align: left;
}

.wiki-builder-command-results button:hover,
.wiki-builder-command-results button:focus-visible {
    border-color: rgba(0, 107, 159, 0.22);
    background: #edf8fb;
}

@keyframes wikiBuilderFade {
    from { opacity: 0.45; }
    to { opacity: 1; }
}

@keyframes wikiBuilderSlide {
    from { opacity: 0.55; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes wikiBuilderScale {
    from { opacity: 0.65; transform: scale(0.985); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes wikiBuilderActionSpin {
    to { transform: rotate(360deg); }
}

@keyframes wikiBuilderActionPulse {
    0% { box-shadow: 0 0 0 0 rgba(30, 160, 105, 0.28); }
    70% { box-shadow: 0 0 0 8px rgba(30, 160, 105, 0); }
    100% { box-shadow: none; }
}

@keyframes wikiBuilderToastIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .wiki-builder-canvas-block,
    .wiki-builder-canvas-block[data-motion],
    .wiki-builder-action-spinner,
    .wiki-builder-toast,
    .wiki-home-builder [data-action-button].is-success {
        animation: none;
        transition: none;
    }
}

@media (max-width: 1280px) {
    .wiki-builder-shell {
        grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
    }

    .wiki-builder-inspector-shell {
        grid-column: 1 / -1;
        min-height: auto;
    }

    .wiki-builder-inspector-shell .wiki-builder-panel {
        max-height: 460px;
    }
}

@media (max-width: 900px) {
    .wiki-builder-commandbar {
        position: static;
    }

    .wiki-builder-commandbar,
    .wiki-builder-title,
    .wiki-builder-command-actions,
    .wiki-builder-statusbar {
        align-items: stretch;
        flex-direction: column;
    }

    .wiki-builder-metrics,
    .wiki-builder-shell {
        grid-template-columns: 1fr;
    }

    .wiki-builder-sidebar,
    .wiki-builder-canvas-shell {
        min-height: auto;
    }

}

@media (max-width: 560px) {
    .wiki-home-builder {
        width: min(100% - 12px, 1760px);
    }

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

    .wiki-builder-command-actions .button,
    .wiki-builder-command-actions .wiki-builder-command-button,
    .wiki-builder-command-actions a {
        width: 100%;
        justify-content: center;
    }
}

html.admin-theme-dark body.admin-page .wiki-home-builder {
    --builder-panel: #17232c;
    --builder-panel-strong: #1d2b35;
    --builder-line: rgba(166, 207, 226, 0.18);
    --builder-text: #edf7fb;
    --builder-muted: #a4bac6;
    --builder-cyan: #6dccf2;
    --builder-green: #7bd5a3;
    --builder-coral: #ff9a82;
    --builder-yellow: #e5c268;
    --builder-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

html.admin-theme-dark body.admin-page .wiki-builder-commandbar,
html.admin-theme-dark body.admin-page .wiki-builder-statusbar,
html.admin-theme-dark body.admin-page .wiki-builder-sidebar,
html.admin-theme-dark body.admin-page .wiki-builder-canvas-shell,
html.admin-theme-dark body.admin-page .wiki-builder-metrics article,
html.admin-theme-dark body.admin-page .wiki-builder-command-palette,
html.admin-theme-dark body.admin-page .wiki-builder-field input,
html.admin-theme-dark body.admin-page .wiki-builder-field textarea,
html.admin-theme-dark body.admin-page .wiki-builder-field select,
html.admin-theme-dark body.admin-page .wiki-builder-command-search input {
    background: var(--builder-panel);
    color: var(--builder-text);
}

html.admin-theme-dark body.admin-page .wiki-builder-panel,
html.admin-theme-dark body.admin-page .wiki-builder-tabs,
html.admin-theme-dark body.admin-page .wiki-builder-block-preset,
html.admin-theme-dark body.admin-page .wiki-builder-template,
html.admin-theme-dark body.admin-page .wiki-builder-layer,
html.admin-theme-dark body.admin-page .wiki-builder-inspector-head,
html.admin-theme-dark body.admin-page .wiki-builder-category-item,
html.admin-theme-dark body.admin-page .wiki-builder-revision,
html.admin-theme-dark body.admin-page .wiki-home-builder .icon-button {
    background: var(--builder-panel-strong);
    color: var(--builder-text);
}

html.admin-theme-dark body.admin-page .wiki-builder-public-stage {
    background: #eef3f5;
    color: #10212b;
}

body.admin-wiki-builder-page {
    overflow: hidden;
    background:
        linear-gradient(rgba(0, 107, 159, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 107, 159, 0.045) 1px, transparent 1px),
        linear-gradient(135deg, #f6fbfc 0%, #eef6f8 54%, #f9fbf4 100%);
    background-size: 28px 28px, 28px 28px, auto;
}

body.admin-wiki-builder-page .admin-main--wiki-builder {
    width: 100%;
    max-width: none;
    height: 100vh;
    min-height: 0;
    margin: 0;
    padding: 10px 10px 0;
}

body.admin-wiki-builder-page .admin-header {
    position: fixed;
    inset: 0 0 auto;
}

body.admin-wiki-builder-page .admin-menu-reveal {
    height: 32px;
    min-height: 32px;
}

body.admin-wiki-builder-page .admin-menu-reveal::after {
    height: 32px;
}

body.admin-wiki-builder-page .admin-menu-reveal-icon {
    top: 7px;
}

body.admin-wiki-builder-page .wiki-home-builder {
    --builder-panel: rgba(255, 255, 255, 0.88);
    --builder-panel-strong: rgba(246, 251, 252, 0.94);
    --builder-ink: #10212b;
    --builder-line: rgba(0, 84, 126, 0.16);
    --builder-text: #10212b;
    --builder-muted: #627782;
    --builder-cyan: #006b9f;
    --builder-green: #257a5b;
    --builder-coral: #c7543c;
    --builder-yellow: #a47716;
    --builder-shell-gap: 10px;
    --builder-canvas-scale: 1;
    --builder-shadow: 0 16px 42px rgba(15, 35, 46, 0.1);
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: var(--builder-shell-gap);
    width: 100%;
    height: calc(100vh - 10px);
    min-height: 0;
    margin: 0;
    padding: 8px;
    overflow: hidden;
    color: var(--builder-text);
    isolation: isolate;
}

body.admin-wiki-builder-page .wiki-home-builder::before {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: -1;
    border: 1px solid rgba(0, 107, 159, 0.1);
    border-radius: 10px;
    background:
        linear-gradient(90deg, transparent 0 22px, rgba(37, 122, 91, 0.08) 22px 23px, transparent 23px 46px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(238, 247, 249, 0.7));
    background-size: 46px 46px, auto;
    pointer-events: none;
}

body.admin-wiki-builder-page .wiki-home-builder {
    height: calc(100vh - 34px);
    margin: 0 auto;
}

body.admin-wiki-builder-page .wiki-builder-commandbar,
body.admin-wiki-builder-page .wiki-builder-statusbar,
body.admin-wiki-builder-page .wiki-builder-sidebar,
body.admin-wiki-builder-page .wiki-builder-canvas-shell,
body.admin-wiki-builder-page .wiki-builder-command-palette {
    border: 1px solid var(--builder-line);
    border-radius: 8px;
    background: var(--builder-panel);
    box-shadow: var(--builder-shadow);
    backdrop-filter: blur(18px);
}

body.admin-wiki-builder-page .wiki-builder-commandbar {
    position: relative;
    top: auto;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(270px, 0.9fr) minmax(280px, 0.72fr) max-content;
    gap: 10px;
    align-items: center;
    min-height: 72px;
    padding: 9px 10px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.93), rgba(238, 248, 250, 0.9)),
        linear-gradient(135deg, rgba(0, 107, 159, 0.08), rgba(37, 122, 91, 0.06));
}

body.admin-wiki-builder-page .wiki-builder-title {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
}

body.admin-wiki-builder-page .wiki-builder-title h1 {
    margin: 1px 0 0;
    font-size: clamp(1.08rem, 1.25vw, 1.34rem);
    line-height: 1.08;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.admin-wiki-builder-page .wiki-builder-title .admin-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

body.admin-wiki-builder-page .wiki-builder-back {
    min-width: 42px;
    min-height: 42px;
    padding: 0 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
}

body.admin-wiki-builder-page .wiki-builder-metrics {
    display: flex;
    gap: 6px;
    align-items: center;
    min-width: 0;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

body.admin-wiki-builder-page .wiki-builder-metrics article {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0 7px;
    align-items: center;
    min-width: max-content;
    min-height: 42px;
    padding: 6px 10px;
    border: 1px solid rgba(0, 107, 159, 0.13);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: none;
}

body.admin-wiki-builder-page .wiki-builder-metrics .material-symbols-outlined {
    grid-row: span 2;
    color: var(--builder-cyan);
    font-size: 20px;
}

body.admin-wiki-builder-page .wiki-builder-metrics strong {
    font-size: 0.98rem;
    line-height: 1;
}

body.admin-wiki-builder-page .wiki-builder-metrics small {
    font-size: 0.68rem;
    line-height: 1;
    text-transform: uppercase;
}

body.admin-wiki-builder-page .wiki-builder-command-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    overflow-x: auto;
    position: relative;
    z-index: 2;
    scrollbar-width: thin;
}

body.admin-wiki-builder-page .wiki-home-builder .button,
body.admin-wiki-builder-page .wiki-home-builder button,
body.admin-wiki-builder-page .wiki-home-builder .icon-button,
body.admin-wiki-builder-page .wiki-home-builder .admin-list-action,
body.admin-wiki-builder-page .wiki-home-builder .admin-manual-action,
body.admin-wiki-builder-page .wiki-builder-command-button {
    border-radius: 8px;
    letter-spacing: 0;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

body.admin-wiki-builder-page .wiki-home-builder .icon-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    border-color: rgba(0, 84, 126, 0.16);
    background: rgba(255, 255, 255, 0.74);
}

body.admin-wiki-builder-page .wiki-builder-command-button,
body.admin-wiki-builder-page .wiki-home-builder .button,
body.admin-wiki-builder-page .wiki-builder-command-actions .admin-list-action,
body.admin-wiki-builder-page .wiki-builder-command-actions .admin-manual-action {
    height: 38px;
    min-height: 38px;
    padding: 0 11px;
}

body.admin-wiki-builder-page .wiki-builder-command-button {
    gap: 7px;
    border: 1px solid rgba(0, 107, 159, 0.22);
    background: linear-gradient(135deg, #e7f7fb, #f3fbf6);
    color: var(--builder-text);
}

body.admin-wiki-builder-page .wiki-builder-command-actions .admin-list-action,
body.admin-wiki-builder-page .wiki-builder-command-actions .admin-manual-action {
    gap: 7px;
}

body.admin-wiki-builder-page .wiki-builder-title h1,
body.admin-wiki-builder-page .wiki-builder-title .admin-kicker {
    pointer-events: none;
}

body.admin-legacy-lessons-builder-page .wiki-builder-title h1 {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.admin-wiki-builder-page .wiki-builder-drawer-button {
    display: none;
}

body.admin-wiki-builder-page .wiki-builder-shell {
    display: grid;
    grid-template-columns: minmax(292px, 334px) minmax(720px, 1fr) minmax(340px, 400px);
    gap: var(--builder-shell-gap);
    min-height: 0;
    overflow: hidden;
}

body.admin-wiki-builder-page .wiki-builder-sidebar,
body.admin-wiki-builder-page .wiki-builder-canvas-shell {
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

body.admin-wiki-builder-page .wiki-builder-sidebar {
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 250, 251, 0.9)),
        linear-gradient(90deg, rgba(0, 107, 159, 0.08), transparent 42%);
}

body.admin-wiki-builder-page .wiki-builder-tabs {
    flex: 0 0 auto;
    gap: 4px;
    padding: 7px;
    border-bottom-color: rgba(0, 107, 159, 0.12);
    background: rgba(246, 251, 252, 0.9);
}

body.admin-wiki-builder-page .wiki-builder-tabs button {
    min-height: 32px;
    padding: 0 9px;
    border-radius: 7px;
    font-size: 0.78rem;
}

body.admin-wiki-builder-page .wiki-builder-tabs button.is-active {
    border-color: rgba(0, 107, 159, 0.22);
    background: #e8f7fb;
}

body.admin-wiki-builder-page .wiki-builder-panel {
    flex: 1 1 auto;
    min-height: 0;
    padding: 9px;
    overflow: auto;
}

body.admin-wiki-builder-page [data-left-panel="blocks"].is-active {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 8px;
}

body.admin-wiki-builder-page .wiki-builder-block-preset,
body.admin-wiki-builder-page .wiki-builder-template,
body.admin-wiki-builder-page .wiki-builder-layer {
    position: relative;
    width: 100%;
    margin: 0;
    border: 1px solid rgba(0, 107, 159, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--builder-text);
    box-shadow: none;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

body.admin-wiki-builder-page .wiki-builder-block-preset {
    display: grid;
    grid-template-columns: 1fr;
    align-content: end;
    min-height: 116px;
    padding: 42px 10px 10px;
    overflow: hidden;
    text-wrap: balance;
}

body.admin-wiki-builder-page .wiki-builder-block-preset::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0, 107, 159, 0.14), transparent 46%),
        linear-gradient(90deg, transparent 0 14px, rgba(37, 122, 91, 0.08) 14px 15px, transparent 15px 30px);
    background-size: auto, 30px 30px;
    pointer-events: none;
}

body.admin-wiki-builder-page .wiki-builder-block-preset > .material-symbols-outlined {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(37, 122, 91, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--builder-green);
    font-size: 20px;
}

body.admin-wiki-builder-page .wiki-builder-block-preset:hover,
body.admin-wiki-builder-page .wiki-builder-template:hover,
body.admin-wiki-builder-page .wiki-builder-layer:hover,
body.admin-wiki-builder-page .wiki-builder-layer.is-selected {
    border-color: rgba(0, 107, 159, 0.38);
    background: #edf8fb;
    transform: translateY(-1px);
}

body.admin-wiki-builder-page .wiki-builder-block-preset strong,
body.admin-wiki-builder-page .wiki-builder-template strong,
body.admin-wiki-builder-page .wiki-builder-layer strong {
    position: relative;
    z-index: 1;
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.admin-wiki-builder-page .wiki-builder-block-preset small,
body.admin-wiki-builder-page .wiki-builder-template small,
body.admin-wiki-builder-page .wiki-builder-layer small {
    position: relative;
    z-index: 1;
    display: block;
    min-width: 0;
    margin-top: 2px;
    color: var(--builder-muted);
    font-size: 0.72rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.admin-wiki-builder-page .wiki-builder-order-toolbar,
body.admin-wiki-builder-page .wiki-builder-bulkbar,
body.admin-wiki-builder-page .wiki-builder-inspector-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 7px;
}

body.admin-wiki-builder-page .wiki-builder-order-sticky {
    position: sticky;
    top: 0;
    z-index: 3;
    display: grid;
    gap: 7px;
    margin-bottom: 7px;
}

body.admin-wiki-builder-page .wiki-builder-order-toolbar {
    align-items: center;
    justify-content: space-between;
    padding: 7px;
    border: 1px solid rgba(0, 107, 159, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
}

body.admin-wiki-builder-page .wiki-builder-order-toolbar .button.is-active,
body.admin-wiki-builder-page .wiki-builder-order-toolbar .admin-list-action.is-active {
    border-color: rgba(37, 122, 91, 0.32);
    background: #e7f6ee;
    color: var(--builder-green);
}

body.admin-wiki-builder-page .wiki-builder-bulk-count {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 9px;
    border-radius: 7px;
    background: rgba(0, 107, 159, 0.08);
    color: var(--builder-muted);
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

body.admin-wiki-builder-page .wiki-builder-bulkbar {
    padding: 7px;
    border: 1px dashed rgba(0, 107, 159, 0.22);
    border-radius: 8px;
    background: rgba(232, 247, 251, 0.58);
}

body.admin-wiki-builder-page .wiki-builder-bulkbar .button,
body.admin-wiki-builder-page .wiki-builder-bulkbar .admin-manual-action,
body.admin-wiki-builder-page .wiki-builder-inspector-actions .admin-manual-action,
body.admin-wiki-builder-page .wiki-builder-revision .admin-manual-action {
    width: auto;
    min-width: 0;
    padding: 0 10px;
}

body.admin-wiki-builder-page .wiki-builder-order-toolbar .admin-list-action,
body.admin-wiki-builder-page .wiki-builder-bulkbar .admin-manual-action,
body.admin-wiki-builder-page .wiki-builder-inspector-actions .admin-manual-action,
body.admin-wiki-builder-page .wiki-builder-revision .admin-manual-action {
    height: 36px;
    min-height: 36px;
}

body.admin-wiki-builder-page .wiki-builder-inspector-actions .admin-security-danger-action,
body.admin-wiki-builder-page .wiki-builder-bulkbar .admin-security-danger-action {
    color: #7d2e2e;
}

body.admin-wiki-builder-page .wiki-builder-layer-list,
body.admin-wiki-builder-page .wiki-builder-template-list {
    display: grid;
    gap: 7px;
}

body.admin-wiki-builder-page .wiki-builder-layer {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    min-height: 60px;
    padding: 7px;
    scroll-margin-top: 168px;
}

body.admin-wiki-builder-page .wiki-builder-layer-thumb,
body.admin-wiki-builder-page .wiki-builder-template-thumb {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border: 1px solid rgba(0, 84, 126, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 107, 159, 0.11), rgba(37, 122, 91, 0.09)),
        #f3f8fa;
    color: var(--builder-cyan);
}

body.admin-wiki-builder-page .wiki-builder-layer-thumb img,
body.admin-wiki-builder-page .wiki-builder-template-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

body.admin-wiki-builder-page .wiki-builder-layer-index {
    position: absolute;
    right: 3px;
    bottom: 3px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 6px;
    background: rgba(16, 33, 43, 0.82);
    color: #fff;
    font: 800 0.66rem/18px "Inter", sans-serif;
    text-align: center;
}

body.admin-wiki-builder-page .wiki-builder-template {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-height: 58px;
    padding: 7px;
}

body.admin-wiki-builder-page .wiki-builder-layer input[type="checkbox"] {
    width: 16px;
    height: 16px;
    scroll-margin-top: 188px;
}

body.admin-wiki-builder-page .wiki-builder-layer-actions {
    display: inline-flex;
    gap: 3px;
}

body.admin-wiki-builder-page .wiki-builder-layer-step {
    grid-template-columns: repeat(2, 22px);
}

body.admin-wiki-builder-page .wiki-builder-layer-step .material-symbols-outlined {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 18px;
}

body.admin-wiki-builder-page .wiki-builder-canvas-shell {
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(rgba(0, 107, 159, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 107, 159, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(249, 252, 253, 0.95), rgba(232, 241, 244, 0.94));
    background-size: 24px 24px, 24px 24px, auto;
}

body.admin-wiki-builder-page .wiki-builder-canvas-toolbar {
    position: sticky;
    top: 0;
    z-index: 4;
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(0, 107, 159, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

body.admin-wiki-builder-page .wiki-builder-canvas-toolbar strong {
    font-size: 0.92rem;
}

body.admin-wiki-builder-page .wiki-builder-canvas-tools {
    display: flex;
    gap: 5px;
    align-items: center;
}

body.admin-wiki-builder-page .wiki-builder-zoom-label {
    min-width: 44px;
    color: var(--builder-muted);
    font: 800 0.76rem/1 "Inter", sans-serif;
    text-align: center;
}

body.admin-wiki-builder-page .wiki-builder-canvas-viewport {
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px;
    overflow: auto;
    scroll-padding: 18px;
}

body.admin-wiki-builder-page .wiki-builder-public-stage {
    width: 1366px;
    max-width: none;
    min-height: 640px;
    margin: 0 auto;
    padding: 18px;
    overflow-x: clip;
    border: 1px solid rgba(0, 84, 126, 0.14);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(14, 42, 54, 0.12);
    transform: scale(var(--builder-canvas-scale, 1));
    transform-origin: top left;
}

body.admin-wiki-builder-page .wiki-builder-public-stage.legacy-lessons-page {
    display: grid;
    width: min(1180px, 100%);
    max-width: none;
    gap: 34px;
    padding: 24px;
    background: #f8fbfb;
    color: var(--public-text, #132024);
}

body.admin-wiki-builder-page .wiki-builder-public-stage.legacy-lessons-page .legacy-hero,
body.admin-wiki-builder-page .wiki-builder-public-stage.legacy-lessons-page .legacy-basic-projects,
body.admin-wiki-builder-page .wiki-builder-public-stage.legacy-lessons-page .legacy-lesson-card,
body.admin-wiki-builder-page .wiki-builder-public-stage.legacy-lessons-page .legacy-seo-section {
    box-sizing: border-box;
}

body.admin-wiki-builder-page .wiki-builder-public-stage.legacy-lessons-page .wiki-builder-canvas-block > .legacy-hero,
body.admin-wiki-builder-page .wiki-builder-public-stage.legacy-lessons-page .wiki-builder-canvas-block > .legacy-basic-projects,
body.admin-wiki-builder-page .wiki-builder-public-stage.legacy-lessons-page .wiki-builder-canvas-block > .legacy-section-head,
body.admin-wiki-builder-page .wiki-builder-public-stage.legacy-lessons-page .wiki-builder-canvas-block > .legacy-card-grid,
body.admin-wiki-builder-page .wiki-builder-public-stage.legacy-lessons-page .wiki-builder-canvas-block > .legacy-seo-section {
    width: 100%;
}

body.admin-wiki-builder-page .wiki-builder-canvas-viewport.is-mobile .wiki-builder-public-stage {
    width: 430px;
}

body.admin-wiki-builder-page .wiki-builder-canvas-viewport.is-mobile .wiki-builder-public-stage.legacy-lessons-page {
    padding: 18px;
}

body.admin-wiki-builder-page .wiki-builder-public-stage .boxMain {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.admin-wiki-builder-page .wiki-builder-canvas-block.is-selected {
    outline: 2px solid var(--builder-cyan);
    box-shadow: 0 0 0 4px rgba(0, 107, 159, 0.1), 0 18px 34px rgba(0, 107, 159, 0.12);
}

body.admin-wiki-builder-page .wiki-builder-drag-handle {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
}

body.admin-wiki-builder-page .wiki-builder-block-tools .icon-button {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
}

body.admin-wiki-builder-page .wiki-builder-inspector-shell .wiki-builder-tabs {
    flex-wrap: nowrap;
}

body.admin-wiki-builder-page .wiki-builder-inspector {
    display: grid;
    gap: 9px;
}

body.admin-wiki-builder-page .wiki-builder-inspector-head,
body.admin-wiki-builder-page .wiki-builder-category-item,
body.admin-wiki-builder-page .wiki-builder-revision {
    border-color: rgba(0, 107, 159, 0.13);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

body.admin-wiki-builder-page .wiki-builder-inspector-head {
    margin-bottom: 4px;
    padding: 9px;
}

body.admin-wiki-builder-page .wiki-builder-field {
    gap: 5px;
    margin-bottom: 2px;
    font-size: 0.78rem;
}

body.admin-wiki-builder-page .wiki-builder-field input,
body.admin-wiki-builder-page .wiki-builder-field select,
body.admin-wiki-builder-page .wiki-builder-command-search input {
    min-height: 36px;
    padding: 0 9px;
}

body.admin-wiki-builder-page .wiki-builder-field textarea {
    min-height: 76px;
    padding: 8px 9px;
}

body.admin-wiki-builder-page .wiki-builder-history {
    position: relative;
    display: grid;
    gap: 8px;
}

body.admin-wiki-builder-page .wiki-builder-history::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 16px;
    width: 1px;
    background: rgba(0, 107, 159, 0.2);
}

body.admin-wiki-builder-page .wiki-builder-revision {
    position: relative;
    padding: 9px 9px 9px 34px;
}

body.admin-wiki-builder-page .wiki-builder-revision::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 11px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--builder-cyan);
    border-radius: 50%;
    background: #fff;
}

body.admin-wiki-builder-page .wiki-builder-statusbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 36px;
    margin: 0;
    padding: 6px 10px;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.78);
}

body.admin-wiki-builder-page .wiki-builder-command-overlay {
    z-index: 110;
    padding: 70px 18px 18px;
}

body.admin-wiki-builder-page .wiki-builder-command-palette {
    width: min(760px, 100%);
    max-height: calc(100vh - 110px);
}

body.admin-wiki-builder-page .wiki-builder-command-results {
    max-height: min(560px, calc(100vh - 190px));
}

body.admin-wiki-builder-page .wiki-builder-drawer-scrim {
    display: none;
}

@media (max-width: 1500px) {
    body.admin-wiki-builder-page .wiki-builder-shell {
        grid-template-columns: minmax(268px, 286px) minmax(720px, 1fr) minmax(306px, 330px);
    }

    body.admin-wiki-builder-page .wiki-builder-commandbar {
        grid-template-columns: minmax(240px, 0.75fr) minmax(220px, 0.55fr) max-content;
    }

    body.admin-wiki-builder-page [data-left-panel="blocks"].is-active {
        grid-template-columns: 1fr;
    }

    body.admin-wiki-builder-page .wiki-builder-block-preset {
        min-height: 66px;
        padding: 10px 10px 10px 50px;
    }

    body.admin-wiki-builder-page .wiki-builder-block-preset > .material-symbols-outlined {
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (max-width: 1180px) {
    body.admin-wiki-builder-page .wiki-home-builder {
        height: calc(100vh - 34px);
        padding: 6px;
    }

    body.admin-wiki-builder-page .wiki-builder-commandbar {
        grid-template-columns: minmax(0, 1fr);
        min-height: 62px;
    }

    body.admin-wiki-builder-page .wiki-builder-command-actions {
        order: 2;
        grid-column: 1 / -1;
        max-width: 100%;
        justify-content: flex-start;
    }

    body.admin-wiki-builder-page .wiki-builder-metrics {
        order: 3;
        grid-column: 1 / -1;
        padding-top: 2px;
    }

    body.admin-wiki-builder-page .wiki-builder-drawer-button {
        display: inline-grid;
    }

    body.admin-wiki-builder-page .wiki-builder-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    body.admin-wiki-builder-page .wiki-builder-canvas-shell {
        grid-column: 1;
        grid-row: 1;
    }

    body.admin-wiki-builder-page .wiki-builder-library,
    body.admin-wiki-builder-page .wiki-builder-inspector-shell {
        position: fixed;
        top: 8px;
        bottom: 8px;
        z-index: 95;
        width: min(360px, calc(100vw - 22px));
        height: auto;
        transform: translateX(calc(-100% - 20px));
        transition: transform 0.22s ease;
    }

    body.admin-wiki-builder-page .wiki-builder-library {
        left: 8px;
    }

    body.admin-wiki-builder-page .wiki-builder-inspector-shell {
        right: 8px;
        transform: translateX(calc(100% + 20px));
    }

    body.admin-wiki-builder-page .wiki-home-builder.is-library-open .wiki-builder-library,
    body.admin-wiki-builder-page .wiki-home-builder.is-inspector-open .wiki-builder-inspector-shell {
        transform: translateX(0);
    }

    body.admin-wiki-builder-page .wiki-home-builder.is-library-open .wiki-builder-drawer-scrim,
    body.admin-wiki-builder-page .wiki-home-builder.is-inspector-open .wiki-builder-drawer-scrim {
        position: fixed;
        inset: 0;
        z-index: 90;
        display: block;
        width: 100vw;
        height: 100vh;
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: rgba(11, 27, 36, 0.38);
        box-shadow: none;
    }

}

@media (max-width: 760px) {
    body.admin-wiki-builder-page .admin-main--wiki-builder {
        padding: 6px 6px 0;
    }

    body.admin-wiki-builder-page .wiki-home-builder {
        height: calc(100vh - 6px);
        gap: 6px;
        padding: 4px;
    }

    body.admin-wiki-builder-page .wiki-builder-commandbar {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
        padding: 8px;
    }

    body.admin-wiki-builder-page .wiki-builder-title {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    body.admin-wiki-builder-page .wiki-builder-back {
        min-width: 38px;
        width: 38px;
        padding: 0;
        justify-content: center;
    }

    body.admin-wiki-builder-page .wiki-builder-back span:not(.material-symbols-outlined) {
        display: none;
    }

    body.admin-wiki-builder-page .wiki-builder-title h1 {
        font-size: 1.02rem;
    }

    body.admin-wiki-builder-page .wiki-builder-metrics {
        order: 2;
    }

    body.admin-wiki-builder-page .wiki-builder-metrics article {
        min-height: 34px;
        padding: 5px 8px;
    }

    body.admin-wiki-builder-page .wiki-builder-metrics small {
        display: none;
    }

    body.admin-wiki-builder-page .wiki-builder-command-actions {
        order: 3;
        max-width: 100%;
        justify-content: flex-start;
    }

    body.admin-wiki-builder-page .wiki-builder-command-actions .button span:not(.material-symbols-outlined),
    body.admin-wiki-builder-page .wiki-builder-command-actions a span:not(.material-symbols-outlined),
    body.admin-wiki-builder-page .wiki-builder-command-actions .admin-list-action span:not(.material-symbols-outlined),
    body.admin-wiki-builder-page .wiki-builder-command-actions .admin-manual-action span:not(.material-symbols-outlined),
    body.admin-wiki-builder-page .wiki-builder-command-button span:not(.material-symbols-outlined) {
        display: none;
    }

    body.admin-wiki-builder-page .wiki-builder-command-button,
    body.admin-wiki-builder-page .wiki-home-builder .button,
    body.admin-wiki-builder-page .wiki-builder-command-actions .admin-list-action,
    body.admin-wiki-builder-page .wiki-builder-command-actions .admin-manual-action {
        width: 38px;
        min-width: 38px;
        padding: 0;
        overflow: hidden;
        justify-content: center;
    }

    body.admin-wiki-builder-page .wiki-builder-order-toolbar .button,
    body.admin-wiki-builder-page .wiki-builder-order-toolbar .admin-list-action,
    body.admin-wiki-builder-page .wiki-builder-bulkbar .button,
    body.admin-wiki-builder-page .wiki-builder-bulkbar .admin-manual-action,
    body.admin-wiki-builder-page .wiki-builder-inspector-actions .button,
    body.admin-wiki-builder-page .wiki-builder-inspector-actions .admin-manual-action,
    body.admin-wiki-builder-page .wiki-builder-revision .admin-manual-action {
        width: auto;
        min-width: 0;
        padding: 0 10px;
        overflow: visible;
    }

    body.admin-wiki-builder-page .wiki-builder-canvas-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    body.admin-wiki-builder-page .wiki-builder-canvas-tools {
        width: 100%;
        overflow-x: auto;
    }

    body.admin-wiki-builder-page .wiki-builder-canvas-viewport {
        padding: 10px;
    }

    body.admin-wiki-builder-page .wiki-builder-public-stage {
        padding: 12px;
    }

    body.admin-wiki-builder-page .wiki-builder-statusbar {
        overflow: hidden;
        white-space: nowrap;
    }
}

html.admin-theme-dark body.admin-wiki-builder-page {
    background:
        linear-gradient(rgba(110, 215, 217, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 215, 217, 0.045) 1px, transparent 1px),
        linear-gradient(135deg, #0f1820 0%, #121e27 58%, #101a20 100%);
    background-size: 28px 28px, 28px 28px, auto;
}

html.admin-theme-dark body.admin-wiki-builder-page .wiki-home-builder {
    --builder-panel: rgba(23, 35, 44, 0.9);
    --builder-panel-strong: rgba(29, 43, 53, 0.94);
    --builder-line: rgba(166, 207, 226, 0.18);
    --builder-text: #edf7fb;
    --builder-muted: #a4bac6;
    --builder-cyan: #6dccf2;
    --builder-green: #7bd5a3;
    --builder-coral: #ff9a82;
    --builder-yellow: #e5c268;
    --builder-shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
}

html.admin-theme-dark body.admin-wiki-builder-page .wiki-home-builder::before,
html.admin-theme-dark body.admin-wiki-builder-page .wiki-builder-canvas-shell {
    background:
        linear-gradient(rgba(110, 215, 217, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 215, 217, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(23, 35, 44, 0.9), rgba(15, 26, 34, 0.92));
    background-size: 24px 24px, 24px 24px, auto;
}

html.admin-theme-dark body.admin-wiki-builder-page .wiki-builder-commandbar,
html.admin-theme-dark body.admin-wiki-builder-page .wiki-builder-statusbar,
html.admin-theme-dark body.admin-wiki-builder-page .wiki-builder-sidebar,
html.admin-theme-dark body.admin-wiki-builder-page .wiki-builder-canvas-toolbar,
html.admin-theme-dark body.admin-wiki-builder-page .wiki-builder-command-palette,
html.admin-theme-dark body.admin-wiki-builder-page .wiki-builder-metrics article,
html.admin-theme-dark body.admin-wiki-builder-page .wiki-builder-block-preset,
html.admin-theme-dark body.admin-wiki-builder-page .wiki-builder-template,
html.admin-theme-dark body.admin-wiki-builder-page .wiki-builder-layer,
html.admin-theme-dark body.admin-wiki-builder-page .wiki-builder-order-sticky,
html.admin-theme-dark body.admin-wiki-builder-page .wiki-builder-order-toolbar,
html.admin-theme-dark body.admin-wiki-builder-page .wiki-builder-bulkbar,
html.admin-theme-dark body.admin-wiki-builder-page .wiki-builder-inspector-head,
html.admin-theme-dark body.admin-wiki-builder-page .wiki-builder-category-item,
html.admin-theme-dark body.admin-wiki-builder-page .wiki-builder-revision,
html.admin-theme-dark body.admin-wiki-builder-page .wiki-home-builder .icon-button {
    background-color: var(--builder-panel);
    color: var(--builder-text);
}

html.admin-theme-dark body.admin-wiki-builder-page .wiki-builder-public-stage {
    background: #eef3f5;
    color: #10212b;
}

body.admin-page .admin-form-grid,
body.admin-page .admin-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    align-items: end;
}

body.admin-page .admin-filter-actions,
body.admin-page .admin-table-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

body.admin-page .admin-status-pill {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-top: 6px;
    padding: 4px 9px;
    border: 1px solid rgba(0, 102, 104, 0.16);
    border-radius: 999px;
    background: rgba(0, 129, 132, 0.08);
    color: var(--admin-text);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.admin-page .admin-status-pill.is-active {
    border-color: rgba(0, 129, 132, 0.24);
    background: rgba(0, 129, 132, 0.12);
    color: #006b70;
}

body.admin-page .admin-status-pill.is-invited,
body.admin-page .admin-status-pill.is-warning {
    border-color: rgba(176, 95, 0, 0.24);
    background: rgba(255, 202, 124, 0.2);
    color: #8a4f00;
}

body.admin-page .admin-status-pill.is-suspended,
body.admin-page .admin-status-pill.is-locked {
    border-color: rgba(168, 54, 54, 0.2);
    background: rgba(255, 111, 111, 0.12);
    color: #9b2f2f;
}

body.admin-page .admin-access-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 180px;
    max-width: 360px;
}

body.admin-page .admin-permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

body.admin-page .admin-permission-group {
    min-width: 0;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--admin-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
}

body.admin-page .admin-permission-group legend {
    padding: 0 8px;
    color: var(--admin-text);
    font-weight: 800;
}

body.admin-page .admin-check-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px 10px;
    align-items: start;
    margin: 10px 0 0;
    color: var(--admin-text);
    font-weight: 700;
}

body.admin-page .admin-check-row code {
    grid-column: 2;
    color: var(--admin-muted);
    font-size: 0.76rem;
    white-space: normal;
}

body.admin-page .admin-code-note {
    color: var(--admin-muted);
    font-weight: 700;
}

body.admin-page .admin-meta-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

body.admin-page .admin-meta-list div {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--admin-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.58);
}

body.admin-page .admin-meta-list span {
    color: var(--admin-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

body.admin-page .admin-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 520px);
    gap: 14px;
    align-items: start;
    max-width: 1180px;
    min-height: calc(100svh - 138px);
    margin: 0 auto;
}

body.admin-page .admin-auth-shell.section {
    margin-top: 0;
}

body.admin-page .admin-auth-copy,
body.admin-page .admin-auth-panel {
    display: grid;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
    box-shadow: var(--admin-shadow);
}

body.admin-page .admin-auth-copy {
    align-content: space-between;
    gap: 18px;
    background:
        linear-gradient(135deg, rgba(230, 243, 248, 0.96), rgba(255, 255, 255, 0.82) 58%, rgba(244, 250, 252, 0.96)),
        linear-gradient(rgba(0, 84, 126, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 84, 126, 0.028) 1px, transparent 1px);
    background-size: auto, 34px 34px, 34px 34px;
}

body.admin-page .admin-auth-panel {
    align-content: start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.9);
}

body.admin-page .admin-auth-copy::before,
body.admin-page .admin-auth-panel::before {
    display: none;
}

body.admin-page .admin-auth-copy h1 {
    max-width: 12ch;
    margin: 8px 0 10px;
    color: var(--admin-text);
    font: 700 clamp(2rem, 3.8vw, 3.05rem)/1.02 "Space Grotesk", "Segoe UI", sans-serif;
    letter-spacing: 0;
    overflow-wrap: normal;
}

body.admin-page .admin-auth-copy .admin-kicker {
    color: var(--admin-accent);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
}

body.admin-page .admin-auth-copy > p:not(.admin-kicker) {
    max-width: 64ch;
    margin: 0;
    color: var(--admin-home-muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

body.admin-page .admin-auth-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--admin-home-line);
}

body.admin-page .admin-auth-panel-head h2 {
    margin: 5px 0 0;
    color: var(--admin-text);
    font: 700 clamp(1.22rem, 2vw, 1.52rem)/1.08 "Space Grotesk", "Segoe UI", sans-serif;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

body.admin-page .admin-auth-signal-list {
    display: grid;
    gap: 8px;
}

body.admin-page .admin-auth-signal {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

body.admin-page .admin-auth-signal > .material-symbols-outlined {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(42, 113, 141, 0.1);
    color: var(--admin-home-info);
    font-size: 20px;
}

body.admin-page .admin-auth-signal strong,
body.admin-page .admin-auth-signal small {
    display: block;
    min-width: 0;
}

body.admin-page .admin-auth-signal strong {
    color: var(--admin-text);
    font-size: 0.93rem;
    line-height: 1.2;
}

body.admin-page .admin-auth-signal small {
    margin-top: 3px;
    color: var(--admin-home-muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

body.admin-page .admin-auth-signal.is-good > .material-symbols-outlined {
    background: rgba(22, 116, 95, 0.1);
    color: var(--admin-home-good);
}

body.admin-page .admin-auth-signal.is-warning > .material-symbols-outlined {
    background: rgba(154, 91, 24, 0.1);
    color: var(--admin-home-warning);
}

body.admin-page .admin-auth-signal.is-danger > .material-symbols-outlined {
    background: rgba(170, 63, 63, 0.1);
    color: var(--admin-home-danger);
}

body.admin-page .admin-auth-form {
    gap: 11px;
}

body.admin-page .admin-auth-form label {
    gap: 6px;
}

body.admin-page .admin-auth-form input {
    min-height: 42px;
    border-radius: 8px;
}

body.admin-page .admin-auth-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

body.admin-page .admin-auth-facts span,
body.admin-page .admin-auth-panel .admin-meta-list div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
}

body.admin-page .admin-auth-facts small,
body.admin-page .admin-auth-panel .admin-meta-list span {
    color: var(--admin-home-muted);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

body.admin-page .admin-auth-facts strong,
body.admin-page .admin-auth-panel .admin-meta-list strong,
body.admin-page .admin-code-note code {
    min-width: 0;
    color: var(--admin-text);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.86rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

body.admin-page .admin-auth-shell--code .admin-auth-facts {
    grid-template-columns: minmax(0, 1fr) minmax(118px, 0.64fr);
}

body.admin-page .admin-auth-shell--code .admin-auth-facts span:first-child {
    grid-column: 1 / -1;
}

body.admin-page .admin-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

body.admin-page .admin-auth-actions form {
    margin: 0;
}

body.admin-page .admin-auth-primary,
body.admin-page .admin-auth-secondary {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background-image: none;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none;
    text-shadow: none;
    transform: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

body.admin-page .admin-auth-primary span:not(.material-symbols-outlined),
body.admin-page .admin-auth-secondary span:not(.material-symbols-outlined) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.admin-page .admin-auth-primary {
    border-color: rgba(0, 84, 126, 0.28);
    background: var(--admin-accent-dark);
    background-image: none;
    color: #fff;
}

body.admin-page .admin-auth-primary:hover,
body.admin-page .admin-auth-primary:focus-visible {
    border-color: rgba(0, 84, 126, 0.34);
    background: var(--admin-accent);
    background-image: none;
    color: #fff;
    transform: none;
}

body.admin-page .admin-auth-secondary {
    border-color: var(--admin-shell-control-border);
    background: var(--admin-shell-control);
    background-image: none;
    color: var(--admin-text);
}

body.admin-page .admin-auth-secondary:hover,
body.admin-page .admin-auth-secondary:focus-visible {
    border-color: var(--admin-shell-control-border-strong);
    background: var(--admin-shell-control-hover);
    background-image: none;
    color: var(--admin-accent-dark);
    transform: none;
}

body.admin-page .admin-auth-primary:focus-visible,
body.admin-page .admin-auth-secondary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--admin-shell-focus);
}

body.admin-page .admin-auth-primary:focus:not(:focus-visible),
body.admin-page .admin-auth-secondary:focus:not(:focus-visible) {
    outline: none;
}

body.admin-page .admin-auth-primary:disabled,
body.admin-page .admin-auth-secondary:disabled {
    opacity: 0.68;
    cursor: default;
}

body.admin-page .admin-auth-details {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
}

body.admin-page .admin-auth-details summary {
    cursor: pointer;
    color: var(--admin-home-muted);
    font-weight: 800;
}

body.admin-page .admin-auth-details .admin-auth-form {
    margin-top: 12px;
}

body.admin-page .admin-auth-panel .alert {
    margin: 0;
}

body.admin-page .admin-auth-panel .admin-code-note {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(170, 63, 63, 0.18);
    border-radius: 8px;
    background: rgba(170, 63, 63, 0.06);
}

body.admin-page .admin-auth-shell--forbidden .admin-auth-copy h1 {
    max-width: 14ch;
}

body.admin-page .admin-technical-details pre {
    max-width: min(560px, 70vw);
    max-height: 260px;
    overflow: auto;
    white-space: pre-wrap;
}

html.admin-theme-dark body.admin-page .admin-permission-group,
html.admin-theme-dark body.admin-page .admin-meta-list div {
    background: rgba(255, 255, 255, 0.04);
}

html.admin-theme-dark body.admin-page .admin-auth-copy,
html.admin-theme-dark body.admin-page .admin-auth-panel,
html.admin-theme-dark body.admin-page .admin-auth-signal,
html.admin-theme-dark body.admin-page .admin-auth-details,
html.admin-theme-dark body.admin-page .admin-auth-facts span,
html.admin-theme-dark body.admin-page .admin-auth-panel .admin-meta-list div {
    border-color: var(--admin-home-line);
    background-color: rgba(17, 27, 34, 0.7);
}

html.admin-theme-dark body.admin-page .admin-auth-copy {
    background-image:
        linear-gradient(135deg, rgba(24, 42, 54, 0.96), rgba(15, 24, 31, 0.84) 58%, rgba(18, 32, 42, 0.96)),
        linear-gradient(rgba(110, 215, 217, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 215, 217, 0.045) 1px, transparent 1px);
}

html.admin-theme-dark body.admin-page .admin-auth-primary {
    border-color: rgba(110, 215, 217, 0.28);
    background: rgba(0, 107, 159, 0.82);
    background-image: none;
    color: #eefbff;
}

html.admin-theme-dark body.admin-page .admin-auth-secondary {
    border-color: var(--admin-shell-control-border);
    background: var(--admin-shell-control);
    background-image: none;
    color: var(--admin-text);
}

@media (max-width: 960px) {
    body.admin-page .admin-auth-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    body.admin-page .admin-auth-copy {
        align-content: start;
    }

    body.admin-page .admin-auth-copy h1 {
        max-width: none;
        font-size: clamp(1.7rem, 5vw, 2.3rem);
    }

    body.admin-page .admin-auth-signal-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    body.admin-page .admin-auth-copy,
    body.admin-page .admin-auth-panel {
        padding: 14px;
    }

    body.admin-page .admin-auth-signal-list,
    body.admin-page .admin-auth-facts {
        grid-template-columns: 1fr;
    }

    body.admin-page .admin-auth-actions,
    body.admin-page .admin-auth-actions form,
    body.admin-page .admin-auth-primary,
    body.admin-page .admin-auth-secondary {
        width: 100%;
    }

    body.admin-page .admin-auth-primary,
    body.admin-page .admin-auth-secondary {
        justify-content: center;
    }
}

body.admin-page .legacy-linked-product .button,
body.admin-page .admin-side-list .button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
}

@media (max-width: 560px) {
    body.admin-page .legacy-linked-product .button,
    body.admin-page .admin-side-list .button {
        width: 32px;
        min-width: 32px;
        height: 32px;
        min-height: 32px;
    }
}

.public-admin-edit-button {
    position: fixed;
    left: max(16px, env(safe-area-inset-left));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 0;
    min-height: 42px;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(0, 93, 111, 0.24);
    border-radius: 8px;
    background: #006b70;
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(3, 34, 42, 0.22);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.public-admin-edit-main,
.public-admin-edit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.public-admin-edit-main {
    gap: 8px;
    padding: 0 12px;
}

.public-admin-edit-icon {
    width: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0;
}

.public-admin-edit-button .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
}

.public-admin-edit-button:hover {
    background: #00535b;
    box-shadow: 0 18px 42px rgba(3, 34, 42, 0.28);
    color: #ffffff;
    transform: translateY(-1px);
}

.public-admin-edit-main:hover,
.public-admin-edit-main:focus-visible,
.public-admin-edit-icon:hover,
.public-admin-edit-icon:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    outline: none;
}

.public-admin-edit-main:focus-visible,
.public-admin-edit-icon:focus-visible {
    outline: 3px solid rgba(13, 148, 136, 0.32);
    outline-offset: -3px;
}

.public-admin-edit-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .public-admin-edit-button {
        left: max(12px, env(safe-area-inset-left));
        bottom: max(12px, env(safe-area-inset-bottom));
        min-height: 38px;
        font-size: 0.78rem;
    }

    .public-admin-edit-main,
    .public-admin-edit-icon {
        min-height: 38px;
    }

    .public-admin-edit-main {
        gap: 7px;
        padding: 0 10px;
    }

    .public-admin-edit-icon {
        width: 36px;
    }

    .public-admin-edit-button .material-symbols-outlined {
        font-size: 18px;
    }
}

@media print {
    .public-admin-edit-button {
        display: none !important;
    }
}

/* Admin editor workbench: compact create/edit surfaces with relation side rails. */
body.admin-page .admin-list-action.is-disabled,
body.admin-page .admin-list-action.is-disabled:hover,
body.admin-page .admin-list-action.is-disabled:focus-visible {
    border-color: rgba(80, 103, 113, 0.14);
    background: rgba(240, 245, 247, 0.72);
    color: var(--admin-home-muted);
    box-shadow: none;
    cursor: default;
    pointer-events: none;
}

body.admin-page .admin-editor-command.admin-list-command {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.28fr);
    gap: 12px;
    margin: 14px 0;
}

body.admin-page .admin-editor-command .admin-list-command-copy,
body.admin-page .admin-editor-command .admin-list-command-actions,
body.admin-page .admin-editor-status-strip,
body.admin-page .admin-editor-workbench .admin-panel,
body.admin-page .admin-editor-workbench .admin-side-panel {
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
    box-shadow: var(--admin-shadow);
}

body.admin-page .admin-editor-command .admin-list-command-copy {
    display: block;
    padding: 16px 18px;
}

body.admin-page .admin-editor-command .admin-list-command-copy h1 {
    margin: 5px 0 7px;
    font-size: clamp(1.72rem, 2.5vw, 2.35rem);
    line-height: 1.06;
}

body.admin-page .admin-editor-command .admin-list-command-copy p {
    max-width: 86ch;
}

body.admin-page .admin-editor-command .admin-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 0 0 8px;
    color: var(--admin-home-muted);
    font-size: 0.84rem;
    line-height: 1.3;
}

body.admin-page .admin-editor-command .admin-hero-lead {
    max-width: 92ch;
    color: var(--admin-home-muted);
    font-size: 0.92rem;
    line-height: 1.48;
}

body.admin-page .admin-editor-command .admin-list-command-actions {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 10px;
}

body.admin-page .admin-editor-command .admin-list-action span:not(.material-symbols-outlined) {
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
    white-space: nowrap;
}

body.admin-page .admin-editor-status-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 12px 0;
}

body.admin-page .admin-editor-status-strip .admin-status-strip-item {
    min-height: 58px;
    padding: 9px 12px;
}

body.admin-page .admin-editor-status-strip .admin-status-strip-item strong {
    font-size: 1.05rem;
}

body.admin-page .admin-editor-status-strip .admin-status-strip-item small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.admin-page .admin-editor-workbench {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    gap: 14px;
    align-items: start;
    margin-top: 12px;
}

body.admin-page .admin-editor-workbench .admin-editor-main,
body.admin-page .admin-editor-workbench .admin-editor-side {
    gap: 14px;
}

body.admin-page .admin-editor-workbench .admin-panel {
    overflow: hidden;
}

body.admin-page .admin-editor-workbench .admin-panel::before {
    display: none;
}

body.admin-page .admin-editor-workbench .admin-panel-head {
    gap: 12px;
    margin-bottom: 12px;
}

body.admin-page .admin-editor-workbench .admin-panel-head h2 {
    margin-top: 3px;
    font-size: 1.08rem;
    line-height: 1.16;
}

body.admin-page .admin-editor-workbench .admin-form-grid {
    gap: 12px;
}

body.admin-page .admin-editor-workbench input,
body.admin-page .admin-editor-workbench select,
body.admin-page .admin-editor-workbench textarea {
    border-radius: 8px;
}

body.admin-page .admin-editor-workbench .editor-help,
body.admin-page .admin-editor-workbench .admin-guidance,
body.admin-page .admin-editor-workbench .admin-inline-note {
    color: var(--admin-home-muted);
    font-size: 0.84rem;
    line-height: 1.42;
}

body.admin-page .admin-wiki-editor-workbench .admin-wiki-publication-grid {
    align-items: start;
}

body.admin-page .admin-wiki-editor-workbench .admin-wiki-url-summary {
    display: grid;
    grid-template-columns: minmax(122px, max-content) minmax(0, 1fr);
    gap: 4px 12px;
    align-items: center;
    padding: 11px 13px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.admin-page .admin-wiki-editor-workbench .admin-wiki-url-summary span {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    white-space: nowrap;
}

body.admin-page .admin-wiki-editor-workbench .admin-wiki-url-summary code {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
    width: auto;
    min-width: 0;
    padding: 6px 9px;
    border-radius: 8px;
}

body.admin-page .admin-wiki-editor-workbench .admin-wiki-url-summary small {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    font-size: 0.82rem;
}

body.admin-page .admin-wiki-editor-workbench .admin-wiki-publication-meta {
    display: grid;
    grid-template-columns: minmax(154px, 0.82fr) minmax(250px, 1.55fr) minmax(140px, 0.58fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
}

body.admin-page .admin-wiki-editor-workbench .admin-wiki-publication-meta > label {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
}

body.admin-page .admin-wiki-editor-workbench .admin-wiki-publication-meta > label > span {
    margin: 0;
}

body.admin-page .admin-wiki-editor-workbench .admin-wiki-publication-meta select,
body.admin-page .admin-wiki-editor-workbench .admin-wiki-publication-meta input {
    min-width: 0;
    min-height: 48px;
}

body.admin-page .admin-wiki-editor-workbench .admin-wiki-category-field .editor-help {
    max-width: 44ch;
    margin-top: -1px;
}

body.admin-page .admin-wiki-editor-workbench .admin-wiki-weight-field {
    max-width: 180px;
}

body.admin-page .admin-wiki-editor-workbench .admin-wiki-weight-field > span {
    white-space: nowrap;
}

body.admin-page .admin-wiki-editor-workbench .admin-wiki-announcement-field {
    margin-top: 2px;
}

@media (max-width: 760px) {
    body.admin-page .admin-wiki-editor-workbench .admin-wiki-url-summary,
    body.admin-page .admin-wiki-editor-workbench .admin-wiki-publication-meta {
        grid-template-columns: minmax(0, 1fr);
    }

    body.admin-page .admin-wiki-editor-workbench .admin-wiki-url-summary span,
    body.admin-page .admin-wiki-editor-workbench .admin-wiki-url-summary code,
    body.admin-page .admin-wiki-editor-workbench .admin-wiki-url-summary small {
        grid-column: 1;
        grid-row: auto;
    }

    body.admin-page .admin-wiki-editor-workbench .admin-wiki-weight-field {
        max-width: none;
    }
}

body.admin-page .admin-editor-workbench .admin-side-panel {
    padding: 14px;
}

body.admin-page .admin-editor-workbench .admin-technical-context {
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none;
}

body.admin-page .admin-editor-workbench .admin-technical-context > summary {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 20px;
    gap: 10px;
    align-items: center;
    min-height: 48px;
    padding: 10px 12px;
    color: var(--admin-home-muted);
    cursor: pointer;
    list-style: none;
}

body.admin-page .admin-editor-workbench .admin-technical-context > summary::-webkit-details-marker {
    display: none;
}

body.admin-page .admin-editor-workbench .admin-technical-context > summary > .material-symbols-outlined:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(0, 84, 126, 0.13);
    border-radius: 8px;
    background: rgba(0, 84, 126, 0.045);
    color: rgba(0, 84, 126, 0.78);
    font-size: 16px;
}

body.admin-page .admin-editor-workbench .admin-technical-context > summary strong {
    display: block;
    overflow: hidden;
    color: var(--admin-home-ink);
    font-size: 0.86rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.admin-page .admin-editor-workbench .admin-technical-context > summary small {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    font-size: 0.76rem;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.admin-page .admin-editor-workbench .admin-technical-context-chevron {
    justify-self: end;
    color: var(--admin-home-muted);
    font-size: 19px;
    transition: transform 140ms ease, color 140ms ease;
}

body.admin-page .admin-editor-workbench .admin-technical-context[open] .admin-technical-context-chevron {
    color: var(--admin-home-ink);
    transform: rotate(180deg);
}

body.admin-page .admin-editor-workbench .admin-technical-context > summary:hover {
    background: rgba(0, 84, 126, 0.035);
}

body.admin-page .admin-editor-workbench .admin-technical-context > summary:focus-visible {
    outline: 2px solid rgba(0, 84, 126, 0.28);
    outline-offset: -2px;
}

body.admin-page .admin-editor-workbench .admin-technical-context-body {
    padding: 0 12px 12px;
    border-top: 1px solid var(--admin-home-line);
}

body.admin-page .admin-editor-workbench .admin-technical-context-body .admin-side-list {
    padding-top: 10px;
}

body.admin-page .admin-editor-workbench .admin-side-list {
    gap: 0;
}

body.admin-page .admin-editor-workbench .legacy-linked-product,
body.admin-page .admin-editor-workbench .admin-revision-link {
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
    box-shadow: none;
    transform: none;
}

body.admin-page .admin-editor-workbench .legacy-linked-product {
    padding: 8px;
}

body.admin-page .admin-editor-workbench .admin-side-list > div {
    padding: 10px 0;
    border-color: var(--admin-home-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

body.admin-page .admin-editor-workbench .admin-side-list > div:first-child {
    padding-top: 0;
}

body.admin-page .admin-editor-workbench .admin-side-list > div:last-child {
    padding-bottom: 0;
}

body.admin-page .admin-editor-workbench .admin-side-list > div > span:first-child,
body.admin-page .admin-editor-workbench .admin-side-list > div > dt:first-child {
    grid-column: 1 / -1;
}

body.admin-page .admin-editor-workbench .admin-side-list > div > span:first-child + strong,
body.admin-page .admin-editor-workbench .admin-side-list > div > span:first-child + a,
body.admin-page .admin-editor-workbench .admin-side-list > div > dt:first-child + dd {
    display: block;
    grid-column: 1 / -1;
    min-width: 0;
    max-height: 2.72em;
    line-height: 1.36;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: normal;
}

body.admin-page .admin-editor-workbench .admin-side-list > div > span:first-child + strong span {
    display: inline;
    margin: 0;
    color: inherit;
    font: inherit;
    letter-spacing: 0;
    text-transform: none;
}

body.admin-page .admin-editor-workbench .admin-revision-panel {
    background: var(--admin-home-panel);
}

body.admin-page .admin-editor-workbench .admin-revision-empty {
    border-radius: 8px;
}

body.admin-page .admin-editor-workbench .admin-revision-link:hover,
body.admin-page .admin-editor-workbench .legacy-linked-product:hover {
    border-color: rgba(0, 84, 126, 0.22);
    background: var(--admin-home-panel-strong);
    transform: none;
}

body.admin-page .admin-editor-workbench .admin-side-list > div:hover {
    border-color: var(--admin-home-line);
    background: linear-gradient(90deg, rgba(0, 84, 126, 0.035), rgba(0, 84, 126, 0) 64%);
    box-shadow: inset 3px 0 0 rgba(0, 84, 126, 0.11);
    transform: none;
}

body.admin-page .admin-editor-workbench .admin-relation-panel .admin-side-list > div:hover {
    background: linear-gradient(90deg, rgba(154, 91, 47, 0.045), rgba(154, 91, 47, 0) 66%);
    box-shadow: inset 3px 0 0 rgba(154, 91, 47, 0.14);
}

body.admin-page .admin-editor-workbench .stack {
    gap: 10px;
}

body.admin-page .admin-file-relation-sync-panel .stack {
    align-items: stretch;
}

body.admin-page .admin-file-relation-sync-action {
    justify-content: flex-start;
    width: 100%;
}

body.admin-page .admin-editor-workbench .admin-relation-panel .admin-editor-relation-submit {
    justify-content: flex-start;
    width: 100%;
}

body.admin-page .admin-editor-workbench .admin-relation-panel .admin-editor-relation-picker-action {
    justify-content: flex-start;
    width: 100%;
}

body.admin-page .admin-editor-workbench .admin-relation-panel .admin-editor-relation-icon-action {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    justify-self: end;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
}

body.admin-page .admin-editor-workbench .admin-relation-panel .admin-editor-relation-icon-action span:not(.material-symbols-outlined) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

body.admin-page .admin-editor-workbench .admin-relation-panel .admin-relation-linked-list {
    display: grid;
    gap: 0;
    min-width: 0;
    margin-top: 10px;
    border-top: 1px solid var(--admin-home-line);
}

body.admin-page .admin-editor-workbench .admin-relation-panel .admin-relation-linked-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) max-content;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 50px;
    padding: 8px 0;
    border-bottom: 1px solid var(--admin-home-line);
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: background-color 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

body.admin-page .admin-editor-workbench .admin-relation-panel .admin-relation-linked-row:hover {
    border-color: rgba(154, 91, 47, 0.16);
    background: rgba(154, 91, 47, 0.035);
    box-shadow: inset 3px 0 0 rgba(154, 91, 47, 0.13);
    transform: none;
}

body.admin-page .admin-editor-workbench .admin-relation-panel .admin-relation-linked-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    overflow: hidden;
    border: 1px solid rgba(154, 91, 47, 0.09);
    border-radius: 8px;
    background: rgba(255, 252, 247, 0.72);
    color: var(--admin-manual-action-icon-color);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

body.admin-page .admin-editor-workbench .admin-relation-panel .admin-relation-linked-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.admin-page .admin-editor-workbench .admin-relation-panel .admin-relation-linked-icon .material-symbols-outlined {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 1;
}

body.admin-page .admin-editor-workbench .admin-relation-panel .admin-relation-linked-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

body.admin-page .admin-editor-workbench .admin-relation-panel .admin-relation-linked-main strong,
body.admin-page .admin-editor-workbench .admin-relation-panel .admin-relation-linked-main a {
    display: -webkit-box;
    min-width: 0;
    max-height: 2.72em;
    overflow: hidden;
    color: var(--admin-text);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.36;
    overflow-wrap: anywhere;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.admin-page .admin-editor-workbench .admin-relation-panel .admin-relation-linked-main a:hover {
    color: #00547e;
    text-decoration: none;
}

body.admin-page .admin-editor-workbench .admin-relation-panel .admin-relation-linked-main small {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--admin-muted);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.32;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.admin-page .admin-editor-workbench .admin-relation-panel .admin-relation-linked-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 34px;
    margin: 0;
}

body.admin-page .admin-editor-workbench .admin-relation-panel .admin-relation-linked-actions .admin-editor-relation-icon-action {
    grid-column: auto;
    grid-row: auto;
    align-self: center;
    justify-self: auto;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-color: var(--admin-manual-action-border);
    background: var(--admin-manual-action-bg);
    background-image: none;
    color: var(--admin-manual-action-text);
    box-shadow: var(--admin-manual-action-shadow);
    transform: none;
}

body.admin-page .admin-editor-workbench .admin-relation-panel .admin-relation-linked-actions .admin-editor-relation-icon-action:hover,
body.admin-page .admin-editor-workbench .admin-relation-panel .admin-relation-linked-actions .admin-editor-relation-icon-action:focus-visible {
    border-color: var(--admin-manual-action-border-hover);
    background: var(--admin-manual-action-bg-hover);
    background-image: none;
    color: var(--admin-manual-action-text);
    box-shadow: var(--admin-manual-action-shadow-hover);
    transform: none;
}

body.admin-page .admin-editor-workbench .admin-relation-panel .admin-relation-linked-actions .admin-editor-relation-icon-action .material-symbols-outlined {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    font-size: 18px;
    line-height: 1;
}

body.admin-page .admin-editor-workbench .stack .button,
body.admin-page .admin-editor-workbench .admin-side-list .button,
body.admin-page .admin-editor-workbench .legacy-linked-product .button {
    min-height: 34px;
    border-radius: 8px;
    font-size: 0.82rem;
}

body.admin-page .admin-editor-workbench .admin-relation-panel .stack > button,
body.admin-page .admin-editor-workbench .admin-relation-panel .admin-side-list button,
body.admin-page .admin-editor-workbench .admin-relation-panel .legacy-linked-product button,
body.admin-page .admin-editor-workbench .admin-relation-panel .legacy-linked-product a.button {
    border-color: var(--admin-manual-action-border);
    background: var(--admin-manual-action-bg);
    background-image: none;
    color: var(--admin-manual-action-text);
    box-shadow: var(--admin-manual-action-shadow);
    transform: none;
}

body.admin-page .admin-editor-workbench .admin-relation-panel .stack > button:hover,
body.admin-page .admin-editor-workbench .admin-relation-panel .stack > button:focus-visible,
body.admin-page .admin-editor-workbench .admin-relation-panel .admin-side-list button:hover,
body.admin-page .admin-editor-workbench .admin-relation-panel .admin-side-list button:focus-visible,
body.admin-page .admin-editor-workbench .admin-relation-panel .legacy-linked-product button:hover,
body.admin-page .admin-editor-workbench .admin-relation-panel .legacy-linked-product button:focus-visible,
body.admin-page .admin-editor-workbench .admin-relation-panel .legacy-linked-product a.button:hover,
body.admin-page .admin-editor-workbench .admin-relation-panel .legacy-linked-product a.button:focus-visible {
    border-color: var(--admin-manual-action-border-hover);
    background: var(--admin-manual-action-bg-hover);
    background-image: none;
    color: var(--admin-manual-action-text);
    box-shadow: var(--admin-manual-action-shadow-hover);
    transform: none;
    outline: none;
}

body.admin-page .admin-editor-workbench .wiki-article-html-editor .visual-editor,
body.admin-page .admin-editor-workbench .wiki-article-html-editor .editor-source {
    border-radius: 8px;
}

body.admin-page .admin-file-create-workbench .admin-sticky-actions {
    position: sticky;
    top: 108px;
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
}

body.admin-page .admin-file-create-workbench .admin-sticky-actions .button,
body.admin-page .admin-file-create-workbench .admin-sticky-actions .admin-manual-action {
    justify-content: flex-start;
    width: 100%;
    min-height: 40px;
    border-radius: 8px;
}

body.admin-page .admin-file-create-workbench .admin-editor-panel,
body.admin-page .admin-file-editor-workbench .admin-file-main-fields-panel,
body.admin-page .admin-file-editor-workbench .admin-local-file-upload,
body.admin-page .admin-file-editor-workbench .admin-github-sync-card,
body.admin-page .admin-file-editor-workbench .admin-auto-source-card,
body.admin-page .admin-file-editor-workbench .admin-github-details {
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
}

body.admin-page .admin-file-editor-workbench .admin-file-main-fields-grid {
    gap: 12px;
}

body.admin-page .admin-file-editor-status-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.admin-page .admin-file-editor-workbench .admin-file-main-source-card {
    min-height: 0;
}

body.admin-page .admin-file-editor-workbench .file-description-editor .visual-editor,
body.admin-page .admin-file-editor-workbench .file-description-editor .editor-source {
    min-height: min(520px, calc(100vh - 270px));
    border-radius: 8px;
}

body.admin-page .admin-file-editor-workbench .admin-local-file-upload-head,
body.admin-page .admin-file-editor-workbench .admin-local-file-meta,
body.admin-page .admin-file-editor-workbench .admin-local-file-upload-footer,
body.admin-page .admin-file-editor-workbench .admin-github-action-row,
body.admin-page .admin-file-editor-workbench .admin-github-actions {
    gap: 10px;
}

body.admin-page .admin-file-editor-workbench .admin-local-file-dropzone {
    border-radius: 8px;
}

body.admin-page .admin-legacy-lesson-create-workbench .admin-sticky-actions,
body.admin-page .admin-learn-create-workbench .admin-sticky-actions {
    position: sticky;
    top: 108px;
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
}

body.admin-page .admin-legacy-lesson-create-workbench .admin-sticky-actions .button,
body.admin-page .admin-legacy-lesson-create-workbench .admin-sticky-actions .admin-manual-action,
body.admin-page .admin-learn-create-workbench .admin-sticky-actions .button,
body.admin-page .admin-learn-create-workbench .admin-sticky-actions .admin-manual-action {
    justify-content: flex-start;
    width: 100%;
    min-height: 40px;
    border-radius: 8px;
}

body.admin-page .admin-learn-create-workbench .admin-editor-panel,
body.admin-page .admin-learn-editor-workbench .admin-learn-main-fields-panel,
body.admin-page .admin-learn-editor-workbench .admin-learn-content-panel,
body.admin-page .admin-learn-editor-workbench .admin-learn-source-card,
body.admin-page .admin-learn-editor-workbench .admin-source-panel {
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
}

body.admin-page .admin-learn-editor-status-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.admin-page .admin-learn-editor-workbench .learn-markdown-editor .visual-editor,
body.admin-page .admin-learn-editor-workbench .learn-markdown-editor .editor-source {
    min-height: min(540px, calc(100vh - 270px));
    max-height: min(660px, calc(100vh - 190px));
    overflow: auto;
    border-radius: 8px;
}

body.admin-page .admin-learn-editor-workbench .admin-source-grid {
    gap: 10px;
}

body.admin-page .admin-learn-editor-workbench .admin-source-panel {
    padding: 12px;
}

body.admin-page .admin-learn-editor-workbench .admin-source-panel textarea {
    min-height: 280px;
    max-height: min(520px, calc(100vh - 260px));
}

body.admin-page .admin-reference-create-workbench .admin-sticky-actions {
    position: sticky;
    top: 108px;
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
}

body.admin-page .admin-reference-create-workbench .admin-sticky-actions .button,
body.admin-page .admin-reference-create-workbench .admin-sticky-actions .admin-manual-action {
    justify-content: flex-start;
    width: 100%;
    min-height: 40px;
    border-radius: 8px;
}

body.admin-page .admin-reference-create-workbench .admin-editor-panel,
body.admin-page .admin-reference-editor-workbench .admin-reference-main-fields-panel,
body.admin-page .admin-reference-editor-workbench .admin-reference-content-panel,
body.admin-page .admin-reference-editor-workbench .admin-reference-source-card,
body.admin-page .admin-reference-editor-workbench .admin-source-panel {
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
}

body.admin-page .admin-reference-create-status-strip,
body.admin-page .admin-reference-editor-status-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.admin-page .admin-reference-editor-workbench .reference-markdown-editor .visual-editor,
body.admin-page .admin-reference-editor-workbench .reference-markdown-editor .editor-source {
    min-height: min(540px, calc(100vh - 270px));
    max-height: min(660px, calc(100vh - 190px));
    overflow: auto;
    border-radius: 8px;
}

body.admin-page .admin-editor-workbench.is-editor-focus-mode {
    grid-template-columns: 1fr;
    width: min(100%, calc(var(--admin-editor-focus-width, 920px) + 56px));
    max-width: calc(var(--admin-editor-focus-width, 920px) + 56px);
    margin-inline: auto;
}

body.admin-page .admin-editor-workbench.is-editor-focus-mode .admin-editor-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
}

body.admin-page .admin-editor-workbench.is-editor-focus-mode .admin-editor-main > .admin-panel:not(.is-editor-focus-panel),
body.admin-page .admin-editor-workbench.is-editor-focus-mode .admin-editor-side {
    display: none;
}

body.admin-page .admin-editor-workbench.is-editor-focus-mode .admin-editor-main > .admin-panel.is-editor-focus-panel {
    width: min(100%, calc(var(--admin-editor-focus-width, 920px) + 56px));
    max-width: calc(var(--admin-editor-focus-width, 920px) + 56px);
    margin-inline: auto;
    overflow: visible;
    scroll-margin-top: 92px;
}

body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, var(--admin-editor-focus-width, 920px));
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
}

body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-command-bar {
    top: 72px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: none;
    overflow: visible;
    z-index: 35;
}

body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .visual-editor,
body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-source {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: max(720px, calc(100svh - 220px));
    max-height: none;
    height: auto;
    border-radius: 8px;
}

body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .visual-editor {
    overflow: visible;
}

body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-source {
    overflow: hidden;
}

@media (min-width: 1181px) {
    body.admin-page .admin-editor-workbench.is-editor-focus-mode {
        --admin-editor-focus-rail-width: 224px;
        --admin-editor-focus-rail-gap: 12px;
        width: min(100%, calc(var(--admin-editor-focus-width, 920px) + var(--admin-editor-focus-rail-width) + var(--admin-editor-focus-rail-gap) + 56px));
        max-width: calc(var(--admin-editor-focus-width, 920px) + var(--admin-editor-focus-rail-width) + var(--admin-editor-focus-rail-gap) + 56px);
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .admin-editor-main > .admin-panel.is-editor-focus-panel {
        width: min(100%, calc(var(--admin-editor-focus-width, 920px) + var(--admin-editor-focus-rail-width) + var(--admin-editor-focus-rail-gap) + 56px));
        max-width: calc(var(--admin-editor-focus-width, 920px) + var(--admin-editor-focus-rail-width) + var(--admin-editor-focus-rail-gap) + 56px);
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded {
        display: grid;
        grid-template-columns: minmax(0, var(--admin-editor-focus-width, 920px)) var(--admin-editor-focus-rail-width);
        column-gap: var(--admin-editor-focus-rail-gap);
        align-items: start;
        width: min(100%, calc(var(--admin-editor-focus-width, 920px) + var(--admin-editor-focus-rail-width) + var(--admin-editor-focus-rail-gap)));
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .visual-editor,
    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-source,
    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-help,
    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded [data-editor-live-preview] {
        grid-column: 1;
        width: 100%;
        min-width: 0;
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-command-bar {
        grid-column: 2;
        grid-row: 1 / span 3;
        position: sticky;
        top: 76px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 34px;
        align-self: start;
        width: var(--admin-editor-focus-rail-width);
        max-height: calc(100svh - 96px);
        min-width: 0;
        gap: 8px;
        padding: 8px;
        overflow: visible;
        border-radius: 8px;
        background: rgba(246, 251, 253, 0.92);
        box-shadow: inset 0 0 0 1px rgba(0, 84, 126, 0.08);
        backdrop-filter: blur(14px);
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-expand-toggle,
    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-mode-tabs,
    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-toolbar,
    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-context-tools,
    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-image-import {
        grid-column: auto;
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-expand-toggle {
        order: 0;
        grid-column: 2;
        grid-row: 1;
        justify-self: stretch;
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;
        padding: 0;
        gap: 0;
        border-radius: 8px;
        font-size: 0.74rem;
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-expand-toggle [data-editor-expand-label] {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-expand-toggle .material-symbols-outlined {
        font-size: 17px;
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-mode-tabs {
        order: 0;
        grid-column: 1;
        grid-row: 1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        padding: 3px;
        gap: 3px;
        border-radius: 8px;
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-mode-tab {
        width: 100%;
        min-height: 30px;
        padding-inline: 6px;
        overflow: hidden;
        border-radius: 6px;
        font-size: 0.72rem;
        line-height: 1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-toolbar {
        order: 1;
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        padding: 0;
        gap: 7px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-tool-group {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(5, 34px);
        justify-content: center;
        gap: 5px;
        padding: 0 0 8px;
        border-radius: 0;
        background: transparent;
        box-shadow: inset 0 -1px 0 rgba(0, 84, 126, 0.12);
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-toolbar .editor-tool-group:last-child {
        padding-bottom: 0;
        box-shadow: none;
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-icon-btn,
    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-code-chip-btn {
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;
        padding: 0;
        border-radius: 8px;
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-icon-btn .material-symbols-outlined {
        font-size: 19px;
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-icon-text {
        font-size: 0.72rem;
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-context-tools {
        order: 2;
        grid-column: 1 / -1;
        display: grid;
        width: 100%;
        max-width: none;
        gap: 7px;
        padding: 8px 0 0;
        border: 0;
        border-top: 1px solid rgba(0, 84, 126, 0.12);
        border-radius: 0;
        background: transparent;
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-context-tools[hidden] {
        display: none;
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-context-label {
        justify-content: center;
        gap: 4px;
        font-size: 0.68rem;
        font-weight: 700;
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-context-label .material-symbols-outlined {
        font-size: 17px;
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-image-import {
        position: absolute;
        top: 52px;
        right: calc(100% + 10px);
        z-index: 45;
        width: min(360px, calc(var(--admin-editor-focus-width, 920px) - 24px));
        max-width: calc(100vw - 148px);
        padding: 12px;
        border-radius: 8px;
        box-shadow: 0 18px 46px -34px rgba(19, 29, 33, 0.42);
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-image-import[hidden] {
        display: none;
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-image-row {
        grid-template-columns: minmax(0, 1fr);
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-import-btn {
        min-height: 38px;
    }
}

@media (min-width: 561px) and (max-width: 1180px) {
    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-command-bar {
        gap: 8px;
        padding: 8px;
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-toolbar {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-tool-group {
        flex: 0 0 auto;
    }
}

@media (max-width: 560px) {
    body.admin-page .editor-command-bar:has(.editor-expand-toggle) {
        grid-template-columns: 1fr;
    }

    body.admin-page .editor-command-bar:has(.editor-expand-toggle) .editor-mode-tabs,
    body.admin-page .editor-command-bar:has(.editor-expand-toggle) .editor-expand-toggle {
        grid-column: 1;
    }

    body.admin-page .editor-command-bar:has(.editor-expand-toggle) .editor-expand-toggle {
        justify-self: stretch;
        width: 100%;
    }

    body.admin-page .admin-editor-workbench.is-editor-focus-mode .visual-editor-shell.is-editor-expanded .editor-command-bar {
        position: static;
        top: auto;
    }
}

body.admin-page .admin-reference-editor-workbench .admin-source-grid {
    gap: 10px;
}

body.admin-page .admin-reference-editor-workbench .admin-source-panel {
    padding: 12px;
}

body.admin-page .admin-reference-editor-workbench .admin-source-panel textarea {
    min-height: 280px;
    max-height: min(520px, calc(100vh - 260px));
}

body.admin-page .admin-product-editor-status-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.admin-page .admin-product-editor-workbench .product-photo-main-panel,
body.admin-page .admin-product-editor-workbench .product-photo-upload-panel,
body.admin-page .admin-product-editor-workbench .product-resource-panel,
body.admin-page .admin-product-editor-workbench .product-photo-gallery-panel,
body.admin-page .admin-product-editor-workbench .admin-side-panel {
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
}

body.admin-page .admin-product-editor-workbench .product-photo-hero-preview {
    gap: 14px;
}

body.admin-page .admin-product-editor-workbench .product-photo-hero-preview > img,
body.admin-page .admin-product-editor-workbench .product-photo-empty {
    min-height: 240px;
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
}

body.admin-page .admin-product-editor-workbench .product-photo-hero-preview > img {
    padding: 14px;
}

body.admin-page .admin-product-editor-workbench .product-photo-product-facts {
    gap: 8px;
}

body.admin-page .admin-product-editor-workbench .product-photo-product-facts div,
body.admin-page .admin-product-editor-workbench .product-photo-card,
body.admin-page .admin-product-editor-workbench .product-photo-thumb,
body.admin-page .admin-product-editor-workbench .product-resource-upload-form,
body.admin-page .admin-product-editor-workbench .product-resource-manual-upload,
body.admin-page .admin-product-editor-workbench .product-resource-card,
body.admin-page .admin-product-editor-workbench .product-photo-help p {
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
}

body.admin-page .admin-product-editor-workbench .product-photo-card.is-main {
    border-color: rgba(22, 116, 95, 0.32);
    box-shadow: inset 0 0 0 1px rgba(22, 116, 95, 0.1);
}

body.admin-page .admin-product-editor-workbench .product-photo-main-badge {
    border-radius: 8px;
    background: var(--admin-home-good);
}

body.admin-page .admin-product-editor-workbench .product-resource-icon {
    border-radius: 8px;
    background: rgba(42, 113, 141, 0.1);
    color: var(--admin-home-info);
}

body.admin-page .admin-product-editor-workbench .product-photo-upload-form,
body.admin-page .admin-product-editor-workbench .product-resource-upload-form {
    gap: 12px;
}

body.admin-page .admin-product-editor-workbench .product-photo-upload-fields {
    align-content: start;
}

body.admin-page .admin-product-editor-workbench .product-resource-upload-form {
    grid-template-columns: minmax(0, 1fr) auto;
}

body.admin-page .admin-product-editor-workbench .product-resource-manual-upload .product-resource-upload-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

body.admin-page .admin-product-editor-workbench .product-photo-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

body.admin-page .admin-product-editor-workbench .product-photo-card-actions .button,
body.admin-page .admin-product-editor-workbench .product-photo-upload-fields .button,
body.admin-page .admin-product-editor-workbench .product-resource-actions .button,
body.admin-page .admin-product-editor-workbench .product-resource-upload-form .button,
body.admin-page .admin-product-editor-workbench .product-photo-card-actions .admin-manual-action,
body.admin-page .admin-product-editor-workbench .product-photo-card-meta .admin-list-action,
body.admin-page .admin-product-editor-workbench .product-photo-upload-fields .admin-manual-action,
body.admin-page .admin-product-editor-workbench .product-resource-actions .admin-list-action,
body.admin-page .admin-product-editor-workbench .product-resource-actions .admin-manual-action,
body.admin-page .admin-product-editor-workbench .product-resource-upload-form .admin-manual-action {
    min-height: 36px;
    border-radius: 8px;
    font-size: 0.84rem;
}

body.admin-page .admin-product-editor-workbench .product-resource-actions .button span:not(.material-symbols-outlined),
body.admin-page .admin-product-editor-workbench .product-photo-card-actions .button span:not(.material-symbols-outlined),
body.admin-page .admin-product-editor-workbench .product-photo-card-meta .admin-list-action span:not(.material-symbols-outlined),
body.admin-page .admin-product-editor-workbench .product-resource-actions .admin-list-action span:not(.material-symbols-outlined),
body.admin-page .admin-product-editor-workbench .product-resource-actions .admin-manual-action span:not(.material-symbols-outlined),
body.admin-page .admin-product-editor-workbench .product-photo-card-actions .admin-manual-action span:not(.material-symbols-outlined) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.admin-page .admin-editor-workbench .editor-command-bar {
    top: 76px;
    border-radius: 8px;
    box-shadow: 0 18px 46px -36px rgba(19, 29, 33, 0.45);
}

@media (min-width: 1181px) {
    body.admin-page:has(.admin-editor-workbench) .admin-editor-save-dock {
        right: max(376px, calc((100vw - 1440px) / 2 + 386px));
    }
}

html.admin-theme-dark body.admin-page .admin-list-action.is-disabled,
html.admin-theme-dark body.admin-page .admin-list-action.is-disabled:hover,
html.admin-theme-dark body.admin-page .admin-list-action.is-disabled:focus-visible {
    border-color: rgba(166, 207, 226, 0.1);
    background: rgba(17, 27, 34, 0.58);
    color: rgba(191, 209, 218, 0.58);
}

html.admin-theme-dark body.admin-page .admin-editor-command .admin-list-command-copy,
html.admin-theme-dark body.admin-page .admin-editor-command .admin-list-command-actions,
html.admin-theme-dark body.admin-page .admin-editor-status-strip,
html.admin-theme-dark body.admin-page .admin-editor-workbench .admin-panel,
html.admin-theme-dark body.admin-page .admin-editor-workbench .admin-side-panel {
    border-color: var(--admin-home-line);
    background: var(--admin-home-panel);
}

html.admin-theme-dark body.admin-page .admin-editor-workbench .legacy-linked-product,
html.admin-theme-dark body.admin-page .admin-editor-workbench .admin-revision-link {
    background: rgba(17, 27, 34, 0.62);
}

html.admin-theme-dark body.admin-page .admin-editor-workbench .admin-side-list > div {
    border-color: var(--admin-home-line);
    background: transparent;
}

html.admin-theme-dark body.admin-page .admin-editor-workbench .admin-technical-context {
    background: rgba(17, 27, 34, 0.54);
    box-shadow: none;
}

html.admin-theme-dark body.admin-page .admin-editor-workbench .admin-technical-context > summary:hover {
    background: rgba(118, 193, 211, 0.06);
}

html.admin-theme-dark body.admin-page .admin-editor-workbench .admin-technical-context > summary > .material-symbols-outlined:first-child {
    border-color: rgba(118, 193, 211, 0.16);
    background: rgba(118, 193, 211, 0.08);
    color: rgba(176, 222, 232, 0.86);
}

html.admin-theme-dark body.admin-page .admin-editor-workbench .admin-technical-context > summary:focus-visible {
    outline-color: rgba(118, 193, 211, 0.35);
}

html.admin-theme-dark body.admin-page .admin-editor-workbench .admin-side-list > div:hover {
    background: linear-gradient(90deg, rgba(118, 193, 211, 0.08), rgba(118, 193, 211, 0) 64%);
    box-shadow: inset 3px 0 0 rgba(118, 193, 211, 0.16);
}

html.admin-theme-dark body.admin-page .admin-editor-workbench .admin-relation-panel .admin-side-list > div:hover {
    background: linear-gradient(90deg, rgba(214, 153, 87, 0.08), rgba(214, 153, 87, 0) 66%);
    box-shadow: inset 3px 0 0 rgba(214, 153, 87, 0.18);
}

html.admin-theme-dark body.admin-page .admin-editor-workbench .admin-relation-panel .admin-relation-linked-list {
    border-color: var(--admin-home-line);
}

html.admin-theme-dark body.admin-page .admin-editor-workbench .admin-relation-panel .admin-relation-linked-row {
    border-color: var(--admin-home-line);
}

html.admin-theme-dark body.admin-page .admin-editor-workbench .admin-relation-panel .admin-relation-linked-row:hover {
    border-color: rgba(214, 153, 87, 0.18);
    background: rgba(214, 153, 87, 0.07);
    box-shadow: inset 3px 0 0 rgba(214, 153, 87, 0.18);
}

html.admin-theme-dark body.admin-page .admin-editor-workbench .admin-relation-panel .admin-relation-linked-icon {
    border-color: rgba(226, 157, 88, 0.1);
    background: rgba(36, 30, 24, 0.42);
    color: var(--admin-manual-action-icon-color);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

html.admin-theme-dark body.admin-page .admin-editor-workbench .admin-relation-panel .admin-relation-linked-main a:hover {
    color: #b7e1eb;
}

@media (min-width: 901px) and (max-width: 1180px) {
    body.admin-page .admin-editor-command.admin-list-command {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
    }

    body.admin-page .admin-editor-workbench.admin-editor-shell {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    }

    body.admin-page #iarduino-file-edit-form.admin-editor-workbench.admin-editor-shell {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    }

    body.admin-page .admin-editor-workbench .admin-editor-side {
        position: sticky;
        top: 108px;
        max-height: calc(100vh - 128px);
        overflow: auto;
        padding-right: 3px;
    }

    body.admin-page .admin-editor-workbench .admin-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.admin-page .admin-editor-workbench .admin-form-span-full,
    body.admin-page .admin-editor-workbench .legacy-public-url-summary {
        grid-column: 1 / -1;
    }

    body.admin-page .admin-editor-workbench .wiki-article-html-editor .visual-editor,
    body.admin-page .admin-editor-workbench .wiki-article-html-editor .editor-source {
        min-height: min(520px, calc(100vh - 260px));
        max-height: min(620px, calc(100vh - 190px));
    }

    body.admin-page .admin-file-editor-workbench .admin-file-main-fields-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.admin-page .admin-file-editor-workbench .admin-file-main-source-card {
        grid-column: 1 / -1;
    }

    body.admin-page .admin-wiki-save-dock.admin-editor-save-dock,
    body.admin-page .admin-legacy-lesson-save-dock.admin-editor-save-dock,
    body.admin-page .admin-file-save-dock.admin-editor-save-dock,
    body.admin-page .admin-learn-save-dock.admin-editor-save-dock,
    body.admin-page .admin-reference-save-dock.admin-editor-save-dock {
        position: static;
        justify-content: stretch;
        max-width: none;
        margin-top: 8px;
        border-radius: 8px;
        background: var(--admin-home-panel-soft);
        backdrop-filter: none;
    }

    body.admin-page .admin-wiki-save-dock.admin-editor-save-dock .button,
    body.admin-page .admin-wiki-save-dock.admin-editor-save-dock .admin-manual-action,
    body.admin-page .admin-legacy-lesson-save-dock.admin-editor-save-dock .button,
    body.admin-page .admin-legacy-lesson-save-dock.admin-editor-save-dock .admin-manual-action,
    body.admin-page .admin-file-save-dock.admin-editor-save-dock .button,
    body.admin-page .admin-file-save-dock.admin-editor-save-dock .admin-manual-action,
    body.admin-page .admin-learn-save-dock.admin-editor-save-dock .button,
    body.admin-page .admin-learn-save-dock.admin-editor-save-dock .admin-manual-action,
    body.admin-page .admin-reference-save-dock.admin-editor-save-dock .button,
    body.admin-page .admin-reference-save-dock.admin-editor-save-dock .admin-manual-action {
        width: 100%;
        max-width: none;
        min-height: 40px;
        padding-inline: 12px;
        border-radius: 8px;
        gap: 8px;
    }

    body.admin-page .admin-wiki-save-dock.admin-editor-save-dock .button span:not(.material-symbols-outlined),
    body.admin-page .admin-wiki-save-dock.admin-editor-save-dock .admin-manual-action span:not(.material-symbols-outlined),
    body.admin-page .admin-legacy-lesson-save-dock.admin-editor-save-dock .button span:not(.material-symbols-outlined),
    body.admin-page .admin-legacy-lesson-save-dock.admin-editor-save-dock .admin-manual-action span:not(.material-symbols-outlined),
    body.admin-page .admin-file-save-dock.admin-editor-save-dock .button span:not(.material-symbols-outlined),
    body.admin-page .admin-file-save-dock.admin-editor-save-dock .admin-manual-action span:not(.material-symbols-outlined),
    body.admin-page .admin-learn-save-dock.admin-editor-save-dock .button span:not(.material-symbols-outlined),
    body.admin-page .admin-learn-save-dock.admin-editor-save-dock .admin-manual-action span:not(.material-symbols-outlined),
    body.admin-page .admin-reference-save-dock.admin-editor-save-dock .button span:not(.material-symbols-outlined),
    body.admin-page .admin-reference-save-dock.admin-editor-save-dock .admin-manual-action span:not(.material-symbols-outlined) {
        max-width: none;
        opacity: 1;
    }
}

@media (min-width: 1181px) and (max-width: 1320px) {
    body.admin-page #iarduino-file-edit-form.admin-editor-workbench.admin-editor-shell {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    }

    body.admin-page .admin-file-editor-workbench .admin-file-main-fields-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.admin-page .admin-file-editor-workbench .admin-file-main-source-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    body.admin-page .admin-editor-command.admin-list-command,
    body.admin-page .admin-editor-workbench.admin-editor-shell {
        grid-template-columns: 1fr;
    }

    body.admin-page .admin-file-editor-status-strip,
    body.admin-page .admin-editor-status-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.admin-page .admin-editor-workbench .admin-editor-side {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    body.admin-page .admin-wiki-save-dock.admin-editor-save-dock,
    body.admin-page .admin-legacy-lesson-save-dock.admin-editor-save-dock,
    body.admin-page .admin-file-save-dock.admin-editor-save-dock,
    body.admin-page .admin-learn-save-dock.admin-editor-save-dock,
    body.admin-page .admin-reference-save-dock.admin-editor-save-dock {
        position: static;
        justify-content: stretch;
        max-width: none;
        margin-top: 8px;
        border-radius: 8px;
        background: var(--admin-home-panel-soft);
        backdrop-filter: none;
    }

    body.admin-page .admin-wiki-save-dock.admin-editor-save-dock .button,
    body.admin-page .admin-wiki-save-dock.admin-editor-save-dock .admin-manual-action,
    body.admin-page .admin-legacy-lesson-save-dock.admin-editor-save-dock .button,
    body.admin-page .admin-legacy-lesson-save-dock.admin-editor-save-dock .admin-manual-action,
    body.admin-page .admin-file-save-dock.admin-editor-save-dock .button,
    body.admin-page .admin-file-save-dock.admin-editor-save-dock .admin-manual-action,
    body.admin-page .admin-learn-save-dock.admin-editor-save-dock .button,
    body.admin-page .admin-learn-save-dock.admin-editor-save-dock .admin-manual-action,
    body.admin-page .admin-reference-save-dock.admin-editor-save-dock .button,
    body.admin-page .admin-reference-save-dock.admin-editor-save-dock .admin-manual-action {
        width: 100%;
        max-width: none;
        min-height: 40px;
        padding-inline: 12px;
        border-radius: 8px;
        gap: 8px;
    }

    body.admin-page .admin-wiki-save-dock.admin-editor-save-dock .button span:not(.material-symbols-outlined),
    body.admin-page .admin-wiki-save-dock.admin-editor-save-dock .admin-manual-action span:not(.material-symbols-outlined),
    body.admin-page .admin-legacy-lesson-save-dock.admin-editor-save-dock .button span:not(.material-symbols-outlined),
    body.admin-page .admin-legacy-lesson-save-dock.admin-editor-save-dock .admin-manual-action span:not(.material-symbols-outlined),
    body.admin-page .admin-file-save-dock.admin-editor-save-dock .button span:not(.material-symbols-outlined),
    body.admin-page .admin-file-save-dock.admin-editor-save-dock .admin-manual-action span:not(.material-symbols-outlined),
    body.admin-page .admin-learn-save-dock.admin-editor-save-dock .button span:not(.material-symbols-outlined),
    body.admin-page .admin-learn-save-dock.admin-editor-save-dock .admin-manual-action span:not(.material-symbols-outlined),
    body.admin-page .admin-reference-save-dock.admin-editor-save-dock .button span:not(.material-symbols-outlined),
    body.admin-page .admin-reference-save-dock.admin-editor-save-dock .admin-manual-action span:not(.material-symbols-outlined) {
        max-width: none;
        opacity: 1;
    }
}

body.admin-page .admin-editor-workbench.admin-editor-shell.is-editor-focus-mode {
    grid-template-columns: 1fr;
}

body.admin-page #iarduino-file-edit-form.admin-editor-workbench.admin-editor-shell.is-editor-focus-mode {
    grid-template-columns: 1fr;
}

body.admin-page .admin-editor-workbench.is-editor-focus-mode .admin-editor-side {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

@media (max-width: 600px) {
    body.admin-page .admin-reference-create-command .admin-list-command-copy,
    body.admin-page .admin-reference-editor-command .admin-list-command-copy {
        padding: 14px 16px;
    }

    body.admin-page .admin-reference-create-command .admin-list-command-copy h1,
    body.admin-page .admin-reference-editor-command .admin-list-command-copy h1 {
        margin-bottom: 6px;
        font-size: 1.55rem;
        line-height: 1.08;
    }

    body.admin-page .admin-reference-create-command .admin-hero-lead,
    body.admin-page .admin-reference-editor-command .admin-hero-lead {
        font-size: 0.88rem;
        line-height: 1.42;
    }

    body.admin-page .admin-reference-editor-command .admin-hero-lead {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    body.admin-page .admin-reference-create-command .admin-list-command-meta,
    body.admin-page .admin-reference-editor-command .admin-list-command-meta {
        display: none;
    }

    body.admin-page .admin-reference-editor-command .admin-list-command-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.admin-page .admin-reference-create-status-strip .admin-status-strip-item,
    body.admin-page .admin-reference-editor-status-strip .admin-status-strip-item {
        min-height: 58px;
        padding: 8px 10px;
        gap: 2px 8px;
    }

    body.admin-page .admin-reference-create-status-strip .admin-status-strip-item strong,
    body.admin-page .admin-reference-editor-status-strip .admin-status-strip-item strong {
        font-size: 0.95rem;
    }

    body.admin-page .admin-reference-create-status-strip .admin-status-strip-item small,
    body.admin-page .admin-reference-editor-status-strip .admin-status-strip-item small {
        font-size: 0.72rem;
        -webkit-line-clamp: 1;
    }

    body.admin-page .admin-reference-save-dock.admin-editor-save-dock {
        position: fixed;
        right: 14px;
        bottom: 14px;
        left: 14px;
        justify-content: stretch;
        max-width: none;
        margin: 0;
        border-radius: 8px;
        background: rgba(246, 252, 253, 0.92);
        backdrop-filter: blur(16px);
    }

    body.admin-page .admin-reference-save-dock.admin-editor-save-dock .button,
    body.admin-page .admin-reference-save-dock.admin-editor-save-dock .admin-manual-action {
        width: 100%;
        max-width: none;
        justify-content: center;
        gap: 8px;
        padding-inline: 12px;
        border-radius: 8px;
    }

    body.admin-page .admin-reference-save-dock.admin-editor-save-dock .button span:not(.material-symbols-outlined),
    body.admin-page .admin-reference-save-dock.admin-editor-save-dock .admin-manual-action span:not(.material-symbols-outlined) {
        max-width: none;
        overflow: hidden;
        opacity: 1;
        white-space: nowrap;
    }
}

/* Admin manual actions: compact operator controls, separate from the global large-button skin. */
.admin-home-task-primary,
body.admin-page .admin-manual-action,
body.admin-page button.admin-manual-action,
body.admin-page .button.admin-manual-action,
body.admin-page .admin-home-task-button {
    min-height: 32px;
    border-radius: 8px;
    line-height: 1.1;
    transform: none;
    transition:
        background 140ms ease,
        border-color 140ms ease,
        color 140ms ease,
        box-shadow 140ms ease,
        outline-color 140ms ease;
}

.admin-home-task-primary {
    border-color: rgba(0, 84, 126, 0.16);
    background: rgba(255, 255, 255, 0.72);
    color: var(--admin-accent-dark);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.admin-home-task-primary:hover,
.admin-home-task-primary:focus-visible {
    border-color: rgba(0, 84, 126, 0.28);
    background: rgba(230, 243, 248, 0.86);
    color: var(--admin-accent-dark);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 10px 22px -18px rgba(0, 84, 126, 0.55);
    outline: none;
}

body.admin-page .admin-manual-action,
body.admin-page .admin-home-task-button,
body.admin-page .admin-manual-action:visited,
body.admin-page .admin-home-task-button:visited,
body.admin-page button.admin-manual-action,
body.admin-page .button.admin-manual-action,
body.admin-page button.admin-manual-action:visited,
body.admin-page .button.admin-manual-action:visited {
    appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    isolation: isolate;
    box-sizing: border-box;
    flex: 0 0 auto;
    vertical-align: middle;
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--admin-manual-action-border);
    border-radius: 8px;
    background: var(--admin-manual-action-bg);
    background-clip: padding-box;
    background-image: none;
    color: var(--admin-manual-action-text);
    box-shadow: var(--admin-manual-action-shadow);
    font-size: 0.82rem;
    font-weight: 680;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    line-height: 1;
    overflow: hidden;
    text-shadow: none;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
    filter: none;
    user-select: none;
}

.admin-home-task-actions,
.admin-products-unresolved-actions {
    min-width: 0;
    width: fit-content;
    max-width: 100%;
    padding: 3px;
    border: 1px solid var(--admin-manual-action-rail-border);
    border-radius: 8px;
    background: var(--admin-manual-action-rail-bg);
    box-shadow: var(--admin-manual-action-rail-shadow);
}

.admin-home-task-form,
.admin-products-unresolved-actions .admin-inline-form {
    display: flex;
    flex: 0 1 auto;
    max-width: 100%;
    min-width: 0;
}

body.admin-page .admin-products-unresolved-actions .admin-inline-form {
    flex: 0 0 158px;
    width: 158px;
}

.admin-home-task-actions .admin-manual-action,
.admin-products-unresolved-actions .admin-manual-action {
    min-width: 142px;
}

body.admin-page .admin-home-task-actions .admin-home-task-form {
    display: flex;
    flex: 0 1 154px;
    width: 154px;
    max-width: 100%;
    min-width: 0;
}

body.admin-page .admin-home-task-actions .admin-manual-action {
    justify-content: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

body.admin-page .admin-products-unresolved-actions .admin-manual-action {
    justify-content: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-inline: 10px;
    text-align: center;
}

.admin-home-task-actions .admin-manual-action {
    max-width: min(100%, 184px);
}

body.admin-page .admin-manual-action:hover,
body.admin-page .admin-home-task-button:hover,
body.admin-page button.admin-manual-action:hover,
body.admin-page .button.admin-manual-action:hover {
    border-color: var(--admin-manual-action-border-hover);
    background: var(--admin-manual-action-bg-hover);
    background-image: none;
    color: var(--admin-manual-action-text);
    box-shadow: var(--admin-manual-action-shadow-hover);
    transform: none;
    outline: none;
}

body.admin-page .admin-manual-action,
body.admin-page .admin-manual-action:hover,
body.admin-page .admin-manual-action:focus,
body.admin-page .admin-manual-action:active,
body.admin-page .admin-home-task-button,
body.admin-page .admin-home-task-button:hover,
body.admin-page .admin-home-task-button:focus,
body.admin-page .admin-home-task-button:active,
body.admin-page button.admin-manual-action,
body.admin-page button.admin-manual-action:hover,
body.admin-page button.admin-manual-action:focus,
body.admin-page button.admin-manual-action:active,
body.admin-page .button.admin-manual-action,
body.admin-page .button.admin-manual-action:hover,
body.admin-page .button.admin-manual-action:focus,
body.admin-page .button.admin-manual-action:active {
    background-image: none;
    text-shadow: none;
    transform: none;
}

body.admin-page .admin-manual-action:hover,
body.admin-page .admin-home-task-button:hover,
body.admin-page button.admin-manual-action:hover,
body.admin-page .button.admin-manual-action:hover {
    box-shadow: var(--admin-manual-action-shadow-hover);
}

body.admin-page .admin-manual-action:focus-visible,
body.admin-page .admin-home-task-button:focus-visible,
body.admin-page button.admin-manual-action:focus-visible,
body.admin-page .button.admin-manual-action:focus-visible {
    outline: 2px solid var(--admin-manual-action-focus);
    outline-offset: 2px;
}

body.admin-page .admin-manual-action:focus:not(:focus-visible),
body.admin-page .admin-home-task-button:focus:not(:focus-visible),
body.admin-page button.admin-manual-action:focus:not(:focus-visible),
body.admin-page .button.admin-manual-action:focus:not(:focus-visible) {
    outline: none;
}

body.admin-page .admin-manual-action:active,
body.admin-page .admin-home-task-button:active,
body.admin-page button.admin-manual-action:active,
body.admin-page .button.admin-manual-action:active {
    border-color: var(--admin-manual-action-border-hover);
    background: var(--admin-manual-action-bg-active);
    background-image: none;
    box-shadow:
        inset 0 0 0 1px rgba(154, 91, 47, 0.044),
        inset 0 1px 1px rgba(62, 40, 24, 0.08);
    transform: none;
}

body.admin-page .admin-manual-action:disabled,
body.admin-page .admin-manual-action.is-disabled,
body.admin-page .admin-home-task-button:disabled,
body.admin-page .admin-home-task-button.is-disabled,
body.admin-page button.admin-manual-action:disabled,
body.admin-page button.admin-manual-action.is-disabled,
body.admin-page .button.admin-manual-action:disabled,
body.admin-page .button.admin-manual-action.is-disabled {
    border-color: rgba(109, 74, 38, 0.16);
    background: rgba(247, 241, 233, 0.74);
    background-image: none;
    color: rgba(61, 42, 28, 0.52);
    box-shadow: none;
    cursor: progress;
    opacity: 1;
    transform: none;
}

body.admin-page .admin-manual-action .material-symbols-outlined,
body.admin-page .admin-home-task-button .material-symbols-outlined {
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    flex: 0 0 18px;
    width: 18px;
    min-width: 18px;
    height: 18px;
    border: 1px solid var(--admin-manual-action-icon-border);
    border-radius: 6px;
    background: var(--admin-manual-action-icon-bg);
    color: var(--admin-manual-action-icon-color, currentColor);
    font-size: 18px;
    font-variation-settings: "FILL" 0, "wght" 460, "GRAD" 0, "opsz" 20;
    font-weight: 460;
    line-height: 1;
    transition: background-color 140ms ease, border-color 140ms ease;
}

body.admin-page .admin-manual-action:hover .material-symbols-outlined,
body.admin-page .admin-home-task-button:hover .material-symbols-outlined,
body.admin-page .admin-manual-action:focus-visible .material-symbols-outlined,
body.admin-page .admin-home-task-button:focus-visible .material-symbols-outlined,
body.admin-page button.admin-manual-action:hover .material-symbols-outlined,
body.admin-page button.admin-manual-action:focus-visible .material-symbols-outlined,
body.admin-page .button.admin-manual-action:hover .material-symbols-outlined,
body.admin-page .button.admin-manual-action:focus-visible .material-symbols-outlined {
    background: var(--admin-manual-action-icon-bg-hover);
    border-color: var(--admin-manual-action-icon-border-hover);
    color: var(--admin-manual-action-icon-color-hover, var(--admin-manual-action-icon-color));
}

body.admin-page .admin-manual-action span:not(.material-symbols-outlined),
body.admin-page .admin-home-task-button span:not(.material-symbols-outlined) {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
    word-break: normal;
    white-space: nowrap;
}

body.admin-page .admin-manual-action.admin-security-danger-action,
body.admin-page button.admin-manual-action.admin-security-danger-action,
body.admin-page .button.admin-manual-action.admin-security-danger-action {
    border-color: rgba(170, 63, 63, 0.28);
    background: rgba(255, 248, 246, 0.98);
    background-image: none;
    color: #7d2e2e;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

body.admin-page .admin-manual-action.admin-security-danger-action:hover,
body.admin-page button.admin-manual-action.admin-security-danger-action:hover,
body.admin-page .button.admin-manual-action.admin-security-danger-action:hover {
    border-color: rgba(170, 63, 63, 0.42);
    background: rgba(255, 238, 234, 0.98);
    background-image: none;
    color: #7d2e2e;
    box-shadow:
        inset 0 0 0 1px rgba(170, 63, 63, 0.13),
        inset 0 -10px 18px rgba(170, 63, 63, 0.075),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
    transform: none;
}

body.admin-page .admin-manual-action.admin-security-danger-action .material-symbols-outlined,
body.admin-page button.admin-manual-action.admin-security-danger-action .material-symbols-outlined,
body.admin-page .button.admin-manual-action.admin-security-danger-action .material-symbols-outlined {
    border-color: rgba(170, 63, 63, 0.16);
    background: rgba(170, 63, 63, 0.08);
}

body.admin-page .admin-manual-action.admin-security-danger-action:hover .material-symbols-outlined,
body.admin-page button.admin-manual-action.admin-security-danger-action:hover .material-symbols-outlined,
body.admin-page .button.admin-manual-action.admin-security-danger-action:hover .material-symbols-outlined {
    border-color: rgba(170, 63, 63, 0.22);
    background: rgba(170, 63, 63, 0.12);
}

body.admin-page .admin-wiki-create-workbench .admin-wiki-create-action {
    width: 100%;
    justify-content: flex-start;
}

body.admin-page .admin-manual-action.is-relation-loading,
body.admin-page .button.admin-manual-action.is-relation-loading,
body.admin-page .admin-home-task-button.is-relation-loading {
    cursor: progress;
}

html.admin-theme-dark body.admin-page .admin-home-task-primary {
    border-color: rgba(134, 194, 216, 0.18);
    background: rgba(18, 28, 36, 0.72);
    color: #b8dcea;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html.admin-theme-dark body.admin-page .admin-home-task-primary:hover,
html.admin-theme-dark body.admin-page .admin-home-task-primary:focus-visible {
    border-color: rgba(134, 194, 216, 0.36);
    background: rgba(134, 194, 216, 0.11);
    color: #d8f0f8;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 26px -22px rgba(134, 194, 216, 0.65);
}

html.admin-theme-dark body.admin-page .admin-home-task-button,
html.admin-theme-dark body.admin-page .admin-manual-action,
html.admin-theme-dark body.admin-page button.admin-manual-action,
html.admin-theme-dark body.admin-page .button.admin-manual-action,
html.admin-theme-dark body.admin-page .admin-home-task-button:hover,
html.admin-theme-dark body.admin-page .admin-manual-action:hover,
html.admin-theme-dark body.admin-page button.admin-manual-action:hover,
html.admin-theme-dark body.admin-page .button.admin-manual-action:hover,
html.admin-theme-dark body.admin-page .admin-manual-action:focus-visible,
html.admin-theme-dark body.admin-page .admin-home-task-button:focus-visible,
html.admin-theme-dark body.admin-page button.admin-manual-action:focus-visible,
html.admin-theme-dark body.admin-page .button.admin-manual-action:focus-visible {
    color: var(--admin-manual-action-text);
    text-shadow: none;
}

html.admin-theme-dark body.admin-page .admin-manual-action,
html.admin-theme-dark body.admin-page .admin-home-task-button,
html.admin-theme-dark body.admin-page button.admin-manual-action,
html.admin-theme-dark body.admin-page .button.admin-manual-action {
    border-color: var(--admin-manual-action-border);
    background: var(--admin-manual-action-bg);
    background-image: none;
    color: var(--admin-manual-action-text);
    box-shadow: var(--admin-manual-action-shadow);
}

html.admin-theme-dark body.admin-page .admin-manual-action:hover,
html.admin-theme-dark body.admin-page .admin-home-task-button:hover,
html.admin-theme-dark body.admin-page button.admin-manual-action:hover,
html.admin-theme-dark body.admin-page .button.admin-manual-action:hover {
    border-color: var(--admin-manual-action-border-hover);
    background: var(--admin-manual-action-bg-hover);
    background-image: none;
    color: var(--admin-manual-action-text);
    box-shadow: var(--admin-manual-action-shadow-hover);
    transform: none;
}

html.admin-theme-dark body.admin-page .admin-manual-action:disabled,
html.admin-theme-dark body.admin-page .admin-manual-action.is-disabled,
html.admin-theme-dark body.admin-page .admin-home-task-button:disabled,
html.admin-theme-dark body.admin-page .admin-home-task-button.is-disabled,
html.admin-theme-dark body.admin-page button.admin-manual-action:disabled,
html.admin-theme-dark body.admin-page button.admin-manual-action.is-disabled,
html.admin-theme-dark body.admin-page .button.admin-manual-action:disabled,
html.admin-theme-dark body.admin-page .button.admin-manual-action.is-disabled {
    border-color: rgba(201, 135, 78, 0.16);
    background: rgba(31, 27, 23, 0.76);
    background-image: none;
    color: rgba(242, 208, 173, 0.52);
    box-shadow: none;
}

html.admin-theme-dark body.admin-page .admin-manual-action.admin-security-danger-action,
html.admin-theme-dark body.admin-page button.admin-manual-action.admin-security-danger-action,
html.admin-theme-dark body.admin-page .button.admin-manual-action.admin-security-danger-action {
    border-color: rgba(255, 184, 168, 0.22);
    background: rgba(64, 34, 31, 0.8);
    background-image: none;
    color: #ffb8a8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html.admin-theme-dark body.admin-page .admin-manual-action.admin-security-danger-action:hover,
html.admin-theme-dark body.admin-page button.admin-manual-action.admin-security-danger-action:hover,
html.admin-theme-dark body.admin-page .button.admin-manual-action.admin-security-danger-action:hover {
    border-color: rgba(255, 184, 168, 0.36);
    background: rgba(83, 42, 37, 0.92);
    background-image: none;
    color: #ffd0c8;
    box-shadow:
        inset 0 0 0 1px rgba(255, 184, 168, 0.08),
        inset 0 -10px 18px rgba(255, 118, 96, 0.06);
    transform: none;
}

html.admin-theme-dark body.admin-page .admin-manual-action.admin-security-danger-action .material-symbols-outlined,
html.admin-theme-dark body.admin-page button.admin-manual-action.admin-security-danger-action .material-symbols-outlined,
html.admin-theme-dark body.admin-page .button.admin-manual-action.admin-security-danger-action .material-symbols-outlined {
    border-color: rgba(255, 184, 168, 0.18);
    background: rgba(255, 184, 168, 0.1);
}

html.admin-theme-dark body.admin-page .admin-manual-action.admin-security-danger-action:hover .material-symbols-outlined,
html.admin-theme-dark body.admin-page button.admin-manual-action.admin-security-danger-action:hover .material-symbols-outlined,
html.admin-theme-dark body.admin-page .button.admin-manual-action.admin-security-danger-action:hover .material-symbols-outlined {
    border-color: rgba(255, 184, 168, 0.26);
    background: rgba(255, 184, 168, 0.16);
}

/* Admin control cascade guard: keep system actions above the broad admin button fallback. */
body.admin-page .admin-list-action,
body.admin-page .admin-list-action:hover,
body.admin-page .admin-list-action:focus,
body.admin-page .admin-list-action:active,
body.admin-page button.admin-list-action,
body.admin-page button.admin-list-action:hover,
body.admin-page button.admin-list-action:focus,
body.admin-page button.admin-list-action:active,
body.admin-page .admin-manual-action,
body.admin-page .admin-manual-action:hover,
body.admin-page .admin-manual-action:focus,
body.admin-page .admin-manual-action:active,
body.admin-page button.admin-manual-action,
body.admin-page button.admin-manual-action:hover,
body.admin-page button.admin-manual-action:focus,
body.admin-page button.admin-manual-action:active,
body.admin-page .admin-security-danger-action,
body.admin-page .admin-security-danger-action:hover,
body.admin-page .admin-security-danger-action:focus,
body.admin-page .admin-security-danger-action:active,
body.admin-page button.admin-security-danger-action,
body.admin-page button.admin-security-danger-action:hover,
body.admin-page button.admin-security-danger-action:focus,
body.admin-page button.admin-security-danger-action:active,
body.admin-page .admin-auth-primary,
body.admin-page .admin-auth-primary:hover,
body.admin-page .admin-auth-primary:focus,
body.admin-page .admin-auth-primary:active,
body.admin-page button.admin-auth-primary,
body.admin-page button.admin-auth-primary:hover,
body.admin-page button.admin-auth-primary:focus,
body.admin-page button.admin-auth-primary:active,
body.admin-page .admin-auth-secondary,
body.admin-page .admin-auth-secondary:hover,
body.admin-page .admin-auth-secondary:focus,
body.admin-page .admin-auth-secondary:active,
body.admin-page button.admin-auth-secondary,
body.admin-page button.admin-auth-secondary:hover,
body.admin-page button.admin-auth-secondary:focus,
body.admin-page button.admin-auth-secondary:active,
body.admin-page .admin-home-task-button,
body.admin-page .admin-home-task-button:hover,
body.admin-page .admin-home-task-button:focus,
body.admin-page .admin-home-task-button:active,
body.admin-page button.admin-home-task-button,
body.admin-page button.admin-home-task-button:hover,
body.admin-page button.admin-home-task-button:focus,
body.admin-page button.admin-home-task-button:active {
    background-image: none;
    text-shadow: none;
    transform: none;
    filter: none;
}

body.admin-page button.admin-relation-picker-backdrop,
body.admin-page button.admin-relation-picker-backdrop:hover,
body.admin-page button.admin-relation-picker-backdrop:focus,
body.admin-page button.admin-relation-picker-backdrop:active,
html.admin-theme-dark body.admin-page button.admin-relation-picker-backdrop,
html.admin-theme-dark body.admin-page button.admin-relation-picker-backdrop:hover,
html.admin-theme-dark body.admin-page button.admin-relation-picker-backdrop:focus,
html.admin-theme-dark body.admin-page button.admin-relation-picker-backdrop:active {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    appearance: none;
    background: rgba(12, 30, 38, 0.32);
    background-image: none !important;
    box-shadow: none;
    color: transparent;
    cursor: default;
    opacity: 1;
    outline: 0;
    text-shadow: none;
    transform: none;
    filter: none;
}

body.admin-page .admin-video-row-actions .admin-video-icon-action,
body.admin-page .admin-video-row-actions button.admin-video-icon-action.admin-manual-action,
body.admin-page .admin-video-row-actions .admin-list-action.admin-video-icon-action {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    background-image: none !important;
    text-shadow: none;
    transform: none;
}

body.admin-page .admin-video-row-actions .admin-video-icon-action .material-symbols-outlined,
body.admin-page .admin-video-row-actions button.admin-video-icon-action.admin-manual-action .material-symbols-outlined {
    display: grid;
    place-items: center;
    width: auto;
    min-width: 0;
    height: auto;
    border: 0;
    background: transparent;
    color: var(--admin-accent);
    font-family: "Material Symbols Outlined";
    font-size: 19px;
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
    line-height: 1;
    box-shadow: none;
}

body.admin-page .admin-video-row-actions button.admin-video-icon-action.admin-manual-action .material-symbols-outlined {
    color: var(--admin-manual-action-text);
}

body.admin-page .admin-video-row-actions .admin-video-icon-action span:not(.material-symbols-outlined) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 760px) {
    .admin-home-task-primary,
    body.admin-page .admin-manual-action,
    body.admin-page .admin-home-task-button {
        height: 36px;
        min-height: 36px;
        white-space: nowrap;
    }

    body.admin-page .admin-security-panel-actions form,
    body.admin-page .admin-security-panel-actions .admin-manual-action {
        width: 100%;
    }

    body.admin-page .admin-products-unresolved-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        width: 100%;
    }

    body.admin-page .admin-products-unresolved-panel .admin-panel-head {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.admin-page .admin-products-link-actions {
        display: grid;
        justify-items: stretch;
        gap: 8px;
        width: 100%;
    }

    body.admin-page .admin-products-unresolved-actions .admin-inline-form {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    body.admin-page .admin-home-task-actions .admin-home-task-form {
        flex-basis: 100%;
        width: 100%;
    }

    body.admin-page .admin-products-unresolved-actions {
        grid-template-columns: 1fr;
    }

    body.admin-page .admin-products-unresolved-actions .admin-inline-form {
        flex-basis: 100%;
        width: 100%;
    }
}

/* Admin redesign Phase 1: compact shell controls and dropdowns. */
body.admin-page .admin-header {
    background: var(--admin-shell-surface);
    border-bottom-color: var(--admin-shell-control-border);
    box-shadow: 0 14px 34px -32px rgba(0, 43, 66, 0.36);
}

body.admin-page .admin-topbar {
    gap: 16px;
    max-height: none;
    padding: 10px 32px;
}

body.admin-page .admin-brand .brand-logo {
    height: 36px;
}

body.admin-page .admin-topbar-actions {
    gap: 7px;
}

body.admin-page .admin-topbar-actions .admin-nav-link,
body.admin-page .admin-topbar-actions .admin-theme-toggle,
body.admin-page .admin-create-menu > summary,
body.admin-page .admin-nav-menu > summary {
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--admin-shell-control-border);
    border-radius: 8px;
    background: var(--admin-shell-control);
    color: var(--admin-muted);
    box-shadow: none;
    font-size: 0.88rem;
    line-height: 1;
    transform: none;
}

body.admin-page .admin-topbar-actions .admin-nav-link span:not(.material-symbols-outlined),
body.admin-page .admin-topbar-actions .admin-theme-toggle-label,
body.admin-page .admin-create-menu > summary span:not(.material-symbols-outlined),
body.admin-page .admin-nav-menu > summary span:not(.material-symbols-outlined) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.admin-page .admin-topbar-actions .admin-nav-link:hover,
body.admin-page .admin-topbar-actions .admin-nav-link:focus-visible,
body.admin-page .admin-topbar-actions .admin-nav-link.is-active,
body.admin-page .admin-topbar-actions .admin-theme-toggle:hover,
body.admin-page .admin-topbar-actions .admin-theme-toggle:focus-visible,
body.admin-page .admin-create-menu[open] > summary,
body.admin-page .admin-nav-menu[open] > summary,
body.admin-page .admin-nav-menu.is-active > summary {
    border-color: var(--admin-shell-control-border-strong);
    background: var(--admin-shell-control-hover);
    color: var(--admin-accent);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46);
    transform: none;
    outline: none;
}

body.admin-page .admin-topbar-actions .admin-nav-link.is-active,
body.admin-page .admin-nav-menu.is-active > summary {
    background: var(--admin-shell-control-active);
    color: var(--admin-accent-dark);
}

body.admin-page .admin-nav-link:focus-visible,
body.admin-page .admin-theme-toggle:focus-visible,
body.admin-page .admin-create-menu > summary:focus-visible,
body.admin-page .admin-nav-menu > summary:focus-visible {
    outline: 3px solid var(--admin-shell-focus);
    outline-offset: 2px;
}

body.admin-page .admin-topbar-actions .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}

body.admin-page .admin-create-menu > summary .admin-create-chevron,
body.admin-page .admin-nav-menu > summary .admin-nav-menu-chevron {
    font-size: 17px;
}

body.admin-page .admin-nav-link-accent {
    border-color: rgba(0, 84, 126, 0.2);
    background: rgba(230, 243, 248, 0.8);
    color: var(--admin-accent-dark);
}

body.admin-page .admin-theme-toggle {
    gap: 8px;
    padding: 3px 9px 3px 4px;
}

body.admin-page .admin-theme-toggle-track {
    width: 48px;
    height: 28px;
    padding: 3px;
}

body.admin-page .admin-theme-toggle-knob {
    width: 20px;
    height: 20px;
}

body.admin-page .admin-theme-toggle.is-dark .admin-theme-toggle-knob {
    transform: translateX(20px);
}

body.admin-page .admin-theme-toggle-icon {
    font-size: 16px;
}

body.admin-page .admin-theme-toggle-label {
    min-width: 48px;
    font-size: 0.82rem;
}

body.admin-page .admin-create-dropdown,
body.admin-page .admin-nav-menu-dropdown {
    top: calc(100% + 8px);
    border-color: var(--admin-shell-control-border);
    border-radius: 12px;
    background: var(--admin-shell-dropdown);
    box-shadow: var(--admin-shell-dropdown-shadow);
}

body.admin-page .admin-nav-menu-dropdown {
    width: min(238px, calc(100vw - 32px));
    padding: 6px;
}

body.admin-page .admin-create-dropdown {
    width: min(292px, calc(100vw - 32px));
    padding: 8px;
}

body.admin-page .admin-nav-menu-dropdown a,
body.admin-page .admin-create-dropdown a {
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--admin-text);
}

body.admin-page .admin-nav-menu-dropdown a {
    padding: 8px 10px;
}

body.admin-page .admin-create-dropdown a {
    gap: 10px;
    padding: 10px;
}

body.admin-page .admin-create-dropdown small {
    font-size: 0.78rem;
    line-height: 1.25;
}

body.admin-page .admin-nav-menu-dropdown a:hover,
body.admin-page .admin-nav-menu-dropdown a:focus-visible,
body.admin-page .admin-nav-menu-dropdown a.is-active,
body.admin-page .admin-create-dropdown a:hover,
body.admin-page .admin-create-dropdown a:focus-visible {
    border-color: var(--admin-shell-control-border);
    background: var(--admin-shell-control-active);
    color: var(--admin-accent-dark);
    outline: none;
}

body.admin-page .admin-main {
    padding-top: 24px;
}

html.admin-theme-dark body.admin-page .admin-header {
    background: var(--admin-shell-surface);
    border-bottom-color: var(--admin-shell-control-border);
    box-shadow: 0 16px 38px -30px rgba(0, 0, 0, 0.84);
}

html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-nav-link,
html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-theme-toggle,
html.admin-theme-dark body.admin-page .admin-create-menu > summary,
html.admin-theme-dark body.admin-page .admin-nav-menu > summary {
    border-color: var(--admin-shell-control-border);
    background: var(--admin-shell-control);
    color: var(--admin-muted);
    box-shadow: none;
}

html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-nav-link:hover,
html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-nav-link:focus-visible,
html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-nav-link.is-active,
html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-theme-toggle:hover,
html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-theme-toggle:focus-visible,
html.admin-theme-dark body.admin-page .admin-create-menu[open] > summary,
html.admin-theme-dark body.admin-page .admin-nav-menu[open] > summary,
html.admin-theme-dark body.admin-page .admin-nav-menu.is-active > summary {
    border-color: var(--admin-shell-control-border-strong);
    background: var(--admin-shell-control-hover);
    color: var(--admin-accent);
    box-shadow: none;
}

html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-nav-link.is-active,
html.admin-theme-dark body.admin-page .admin-nav-menu.is-active > summary {
    background: var(--admin-shell-control-active);
    color: #dff6ff;
}

html.admin-theme-dark body.admin-page .admin-create-dropdown,
html.admin-theme-dark body.admin-page .admin-nav-menu-dropdown {
    border-color: var(--admin-shell-control-border);
    background: var(--admin-shell-dropdown);
    box-shadow: var(--admin-shell-dropdown-shadow);
}

html.admin-theme-dark body.admin-page .admin-nav-menu-dropdown a:hover,
html.admin-theme-dark body.admin-page .admin-nav-menu-dropdown a:focus-visible,
html.admin-theme-dark body.admin-page .admin-nav-menu-dropdown a.is-active,
html.admin-theme-dark body.admin-page .admin-create-dropdown a:hover,
html.admin-theme-dark body.admin-page .admin-create-dropdown a:focus-visible {
    border-color: var(--admin-shell-control-border-strong);
    background: var(--admin-shell-control-active);
    color: #dff6ff;
}

/* Admin shell navigation: compact editorial instrument rail. */
body.admin-page .admin-header {
    background: rgba(248, 250, 251, 0.94);
    border-bottom-color: rgba(0, 84, 126, 0.12);
    box-shadow: 0 16px 38px -34px rgba(0, 43, 66, 0.34);
}

body.admin-page .admin-topbar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    min-height: 58px;
    padding: 8px 28px;
}

body.admin-page .admin-brand {
    min-width: 0;
    padding: 3px 0;
}

body.admin-page .admin-brand .brand-logo {
    height: 34px;
}

body.admin-page .admin-topbar-actions {
    gap: 6px;
    min-width: 0;
    flex-wrap: nowrap;
}

body.admin-page .admin-topbar-actions .admin-nav-link,
body.admin-page .admin-topbar-actions .admin-theme-toggle,
body.admin-page .admin-create-menu > summary,
body.admin-page .admin-nav-menu > summary {
    min-height: 36px;
    height: 36px;
    padding: 0 9px;
    border-color: rgba(0, 84, 126, 0.13);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    color: #49616e;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
    font-size: 0.84rem;
    font-weight: 680;
    letter-spacing: 0;
    line-height: 1;
    transform: none;
}

body.admin-page .admin-topbar-actions .admin-nav-link span:not(.material-symbols-outlined),
body.admin-page .admin-topbar-actions .admin-theme-toggle-label,
body.admin-page .admin-create-menu > summary span:not(.material-symbols-outlined),
body.admin-page .admin-nav-menu > summary span:not(.material-symbols-outlined) {
    max-width: 128px;
}

body.admin-page .admin-topbar-actions .material-symbols-outlined {
    width: 18px;
    min-width: 18px;
    font-size: 18px;
    line-height: 1;
}

body.admin-page .admin-create-menu > summary .admin-create-chevron,
body.admin-page .admin-nav-menu > summary .admin-nav-menu-chevron {
    width: 16px;
    min-width: 16px;
    margin-left: -3px;
    color: rgba(73, 97, 110, 0.78);
}

body.admin-page .admin-topbar-actions .admin-nav-link:hover,
body.admin-page .admin-topbar-actions .admin-nav-link:focus-visible,
body.admin-page .admin-topbar-actions .admin-theme-toggle:hover,
body.admin-page .admin-topbar-actions .admin-theme-toggle:focus-visible,
body.admin-page .admin-create-menu[open] > summary,
body.admin-page .admin-nav-menu[open] > summary,
body.admin-page .admin-nav-menu.is-active > summary {
    border-color: rgba(0, 84, 126, 0.24);
    background: rgba(255, 255, 255, 0.94);
    color: var(--admin-accent);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
    transform: none;
}

body.admin-page .admin-topbar-actions .admin-nav-link.is-active,
body.admin-page .admin-nav-menu.is-active > summary {
    border-color: rgba(0, 84, 126, 0.28);
    background: rgba(226, 242, 248, 0.82);
    color: var(--admin-accent-dark);
    box-shadow:
        inset 0 -2px 0 rgba(0, 84, 126, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

body.admin-page .admin-create-menu > summary.admin-nav-link-accent {
    border-color: rgba(154, 91, 47, 0.24);
    background: rgba(154, 91, 47, 0.075);
    color: #77491f;
}

body.admin-page .admin-create-menu > summary.admin-nav-link-accent:hover,
body.admin-page .admin-create-menu[open] > summary.admin-nav-link-accent,
body.admin-page .admin-create-menu > summary.admin-nav-link-accent:focus-visible {
    border-color: rgba(154, 91, 47, 0.32);
    background: rgba(154, 91, 47, 0.12);
    color: #6b3f1c;
    box-shadow:
        inset 0 -2px 0 rgba(154, 91, 47, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

body.admin-page .admin-nav-link-utility,
body.admin-page .admin-topbar-actions .admin-theme-toggle {
    border-color: rgba(80, 103, 117, 0.14);
    background: rgba(247, 250, 251, 0.58);
    color: #60727c;
}

body.admin-page .admin-nav-link-utility:hover,
body.admin-page .admin-nav-link-utility:focus-visible,
body.admin-page .admin-topbar-actions .admin-theme-toggle:hover,
body.admin-page .admin-topbar-actions .admin-theme-toggle:focus-visible {
    border-color: rgba(0, 84, 126, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: var(--admin-accent);
}

body.admin-page .admin-theme-toggle {
    gap: 7px;
    padding: 3px 8px 3px 4px;
}

body.admin-page .admin-theme-toggle-track {
    width: 44px;
    height: 26px;
}

body.admin-page .admin-theme-toggle-knob {
    width: 18px;
    height: 18px;
}

body.admin-page .admin-theme-toggle.is-dark .admin-theme-toggle-knob {
    transform: translateX(18px);
}

body.admin-page .admin-theme-toggle-icon {
    font-size: 15px;
}

body.admin-page .admin-theme-toggle-label {
    min-width: 44px;
    font-size: 0.8rem;
}

body.admin-page .admin-nav-menu-dropdown,
body.admin-page .admin-create-dropdown {
    top: calc(100% + 7px);
    border-color: rgba(0, 84, 126, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 54px -36px rgba(0, 43, 66, 0.52);
    backdrop-filter: blur(18px);
}

body.admin-page .admin-nav-menu-dropdown {
    width: min(236px, calc(100vw - 32px));
    padding: 6px;
}

body.admin-page .admin-create-dropdown {
    width: min(300px, calc(100vw - 32px));
    padding: 7px;
}

body.admin-page .admin-nav-menu-dropdown a,
body.admin-page .admin-create-dropdown a {
    min-height: 36px;
    border-radius: 8px;
    background: transparent;
    font-size: 0.84rem;
}

body.admin-page .admin-nav-menu-dropdown a:hover,
body.admin-page .admin-nav-menu-dropdown a:focus-visible,
body.admin-page .admin-nav-menu-dropdown a.is-active,
body.admin-page .admin-create-dropdown a:hover,
body.admin-page .admin-create-dropdown a:focus-visible {
    border-color: rgba(0, 84, 126, 0.13);
    background: rgba(226, 242, 248, 0.64);
    color: var(--admin-accent-dark);
}

body.admin-page .admin-create-dropdown a:hover,
body.admin-page .admin-create-dropdown a:focus-visible {
    border-color: rgba(154, 91, 47, 0.18);
    background: rgba(154, 91, 47, 0.08);
    color: #6b3f1c;
}

html.admin-theme-dark body.admin-page .admin-header {
    background: rgba(15, 24, 32, 0.93);
    border-bottom-color: rgba(122, 154, 170, 0.17);
    box-shadow: 0 18px 42px -32px rgba(0, 0, 0, 0.82);
}

html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-nav-link,
html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-theme-toggle,
html.admin-theme-dark body.admin-page .admin-create-menu > summary,
html.admin-theme-dark body.admin-page .admin-nav-menu > summary {
    border-color: rgba(122, 154, 170, 0.18);
    background: rgba(19, 30, 39, 0.74);
    color: #a8bac4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-nav-link:hover,
html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-nav-link:focus-visible,
html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-theme-toggle:hover,
html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-theme-toggle:focus-visible,
html.admin-theme-dark body.admin-page .admin-create-menu[open] > summary,
html.admin-theme-dark body.admin-page .admin-nav-menu[open] > summary,
html.admin-theme-dark body.admin-page .admin-nav-menu.is-active > summary {
    border-color: rgba(123, 213, 239, 0.34);
    background: rgba(27, 41, 52, 0.94);
    color: var(--admin-accent);
    box-shadow: none;
}

html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-nav-link.is-active,
html.admin-theme-dark body.admin-page .admin-nav-menu.is-active > summary {
    border-color: rgba(123, 213, 239, 0.36);
    background: rgba(28, 62, 77, 0.72);
    color: #dff6ff;
    box-shadow: inset 0 -2px 0 rgba(123, 213, 239, 0.22);
}

html.admin-theme-dark body.admin-page .admin-create-menu > summary.admin-nav-link-accent {
    border-color: rgba(214, 153, 87, 0.26);
    background: rgba(214, 153, 87, 0.1);
    color: #f0c68d;
}

html.admin-theme-dark body.admin-page .admin-create-menu > summary.admin-nav-link-accent:hover,
html.admin-theme-dark body.admin-page .admin-create-menu[open] > summary.admin-nav-link-accent,
html.admin-theme-dark body.admin-page .admin-create-menu > summary.admin-nav-link-accent:focus-visible {
    border-color: rgba(214, 153, 87, 0.38);
    background: rgba(214, 153, 87, 0.16);
    color: #ffd49a;
    box-shadow: inset 0 -2px 0 rgba(214, 153, 87, 0.24);
}

html.admin-theme-dark body.admin-page .admin-nav-link-utility,
html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-theme-toggle {
    border-color: rgba(122, 154, 170, 0.14);
    background: rgba(18, 28, 36, 0.54);
    color: #91a2ac;
}

html.admin-theme-dark body.admin-page .admin-nav-menu-dropdown,
html.admin-theme-dark body.admin-page .admin-create-dropdown {
    border-color: rgba(122, 154, 170, 0.18);
    background: rgba(17, 27, 35, 0.98);
    box-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.84);
}

html.admin-theme-dark body.admin-page .admin-nav-menu-dropdown a:hover,
html.admin-theme-dark body.admin-page .admin-nav-menu-dropdown a:focus-visible,
html.admin-theme-dark body.admin-page .admin-nav-menu-dropdown a.is-active {
    border-color: rgba(123, 213, 239, 0.26);
    background: rgba(28, 62, 77, 0.66);
    color: #dff6ff;
}

html.admin-theme-dark body.admin-page .admin-create-dropdown a:hover,
html.admin-theme-dark body.admin-page .admin-create-dropdown a:focus-visible {
    border-color: rgba(214, 153, 87, 0.28);
    background: rgba(214, 153, 87, 0.13);
    color: #ffd49a;
}

@media (min-width: 1181px) {
    body.admin-page .admin-nav-menu--admin > summary span:not(.material-symbols-outlined),
    body.admin-page .admin-create-menu > summary span:not(.material-symbols-outlined) {
        max-width: 116px;
    }

    body.admin-page .admin-nav-link-utility span:not(.material-symbols-outlined) {
        max-width: 58px;
    }
}

@media (max-width: 1180px) {
    body.admin-page .admin-topbar {
        gap: 12px;
        padding: 9px 18px;
    }

    body.admin-page .admin-topbar-actions {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
    }

    body.admin-page .admin-topbar-actions .admin-nav-link,
    body.admin-page .admin-topbar-actions .admin-theme-toggle,
    body.admin-page .admin-create-menu > summary,
    body.admin-page .admin-nav-menu > summary {
        justify-content: center;
        min-height: 36px;
        height: 36px;
        padding: 0 8px;
    }

    body.admin-page .admin-nav-menu-dropdown,
    body.admin-page .admin-create-dropdown {
        max-width: calc(100vw - 36px);
    }
}

@media (max-width: 760px) {
    body.admin-page .admin-topbar {
        align-items: start;
        padding: 8px 12px;
    }

    body.admin-page .admin-topbar-actions {
        position: relative;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    body.admin-page .admin-create-dropdown,
    body.admin-page .admin-nav-menu-dropdown {
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        max-height: min(58vh, 360px);
        overflow: auto;
        transform: none;
    }
}

@media (max-width: 480px) {
    body.admin-page .admin-brand .brand-logo {
        height: 28px;
    }

    body.admin-page .admin-topbar-actions .admin-nav-link,
    body.admin-page .admin-topbar-actions .admin-theme-toggle,
    body.admin-page .admin-create-menu > summary,
    body.admin-page .admin-nav-menu > summary {
        font-size: 0.82rem;
    }

    body.admin-page .admin-theme-toggle-label {
        min-width: 0;
    }
}

/* Reference admin: compact language-catalog workbench. */
body.admin-page .admin-reference-command .admin-list-command-actions {
    align-content: stretch;
}

body.admin-page .admin-reference-workspace .admin-rail-panel,
body.admin-page .admin-reference-workspace .admin-board {
    gap: 12px;
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
    box-shadow: var(--admin-shadow);
}

body.admin-page .admin-reference-workspace .admin-rail-panel::before,
body.admin-page .admin-reference-workspace .admin-board::before {
    display: none;
}

body.admin-page .admin-reference-workspace .admin-rail-panel {
    padding: 14px;
}

body.admin-page .admin-reference-workspace .admin-board {
    padding: 16px;
}

body.admin-page .admin-reference-workspace .admin-board-head {
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

body.admin-page .admin-reference-workspace .admin-board-head h2 {
    margin-top: 3px;
    font-size: 1.08rem;
    line-height: 1.18;
}

body.admin-page .admin-reference-workspace .admin-board-tools {
    gap: 8px;
}

body.admin-page .admin-reference-workspace .admin-context-create {
    min-height: 36px;
    padding-inline: 11px;
}

body.admin-page .admin-reference-workspace .admin-rail-panel .admin-tree {
    gap: 7px;
}

body.admin-page .admin-reference-workspace .admin-tree-link,
body.admin-page .admin-reference-workspace .admin-item-card.admin-list-row {
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: none;
    transform: none;
}

body.admin-page .admin-reference-workspace .admin-tree-link {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
    padding: 10px 12px;
}

body.admin-page .admin-reference-workspace .admin-tree-link strong {
    grid-column: 1 / -1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
    line-height: 1.18;
}

body.admin-page .admin-reference-workspace .admin-tree-link span {
    min-width: 0;
    color: var(--admin-home-muted);
    font-size: 0.78rem;
    line-height: 1.2;
}

body.admin-page .admin-reference-workspace .admin-tree-link span:last-child {
    color: var(--admin-home-bus);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-variant-numeric: tabular-nums;
}

body.admin-page .admin-reference-workspace .admin-tree-link:hover,
body.admin-page .admin-reference-workspace .admin-tree-link:focus-visible,
body.admin-page .admin-reference-workspace .admin-tree-link.active,
body.admin-page .admin-reference-workspace .admin-item-card.admin-list-row:hover,
body.admin-page .admin-reference-workspace .admin-item-card.admin-list-row:focus-within {
    border-color: rgba(0, 84, 126, 0.26);
    background: var(--admin-home-panel-strong);
    box-shadow: inset 0 0 0 1px rgba(0, 84, 126, 0.06);
    transform: none;
    outline: none;
}

body.admin-page .admin-reference-workspace .admin-item-card.admin-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 13px 14px;
}

body.admin-page .admin-reference-workspace .admin-item-title-row {
    gap: 8px;
    margin-bottom: 6px;
}

body.admin-page .admin-reference-workspace .admin-item-title-link {
    font-size: 0.98rem;
    line-height: 1.25;
}

body.admin-page .admin-reference-workspace .admin-item-excerpt {
    margin-top: 7px;
    color: var(--admin-home-muted);
    font-size: 0.84rem;
    line-height: 1.42;
}

body.admin-page .admin-reference-workspace .admin-item-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    min-width: max-content;
}

body.admin-page .admin-reference-workspace .admin-board-count {
    min-width: 82px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(0, 84, 126, 0.07);
}

body.admin-page .admin-reference-workspace .admin-board-count strong {
    font-size: 1.25rem;
}

html.admin-theme-dark body.admin-page .admin-reference-workspace .admin-tree-link,
html.admin-theme-dark body.admin-page .admin-reference-workspace .admin-item-card.admin-list-row {
    background: rgba(17, 27, 34, 0.62);
}

html.admin-theme-dark body.admin-page .admin-reference-workspace .admin-tree-link:hover,
html.admin-theme-dark body.admin-page .admin-reference-workspace .admin-tree-link:focus-visible,
html.admin-theme-dark body.admin-page .admin-reference-workspace .admin-tree-link.active,
html.admin-theme-dark body.admin-page .admin-reference-workspace .admin-item-card.admin-list-row:hover,
html.admin-theme-dark body.admin-page .admin-reference-workspace .admin-item-card.admin-list-row:focus-within {
    background: var(--admin-home-panel-strong);
}

/* Reference trash: compact recovery queue. */
body.admin-page .admin-trash-command .admin-list-command-actions {
    align-content: stretch;
}

body.admin-page .admin-trash-status-strip .is-date strong {
    font-size: 1rem;
}

body.admin-page .admin-trash-workspace.admin-list-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 14px;
    padding: 16px;
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
    box-shadow: var(--admin-shadow);
}

body.admin-page .admin-trash-workspace.admin-list-workspace > * {
    min-width: 0;
}

body.admin-page .admin-trash-workspace::before {
    display: none;
}

body.admin-page .admin-trash-workspace .admin-board-head {
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

body.admin-page .admin-trash-workspace .admin-board-head h2 {
    margin-top: 3px;
    font-size: 1.08rem;
    line-height: 1.18;
}

body.admin-page .admin-trash-workspace .admin-board-count {
    min-width: 82px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(154, 91, 47, 0.08);
}

body.admin-page .admin-trash-workspace .admin-board-count strong {
    color: var(--admin-home-warning);
    font-size: 1.25rem;
}

body.admin-page .admin-trash-section-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
}

body.admin-page .admin-trash-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid rgba(154, 91, 47, 0.16);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.78);
    color: var(--admin-text);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
}

body.admin-page .admin-trash-chip strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

body.admin-page .admin-trash-chip small {
    color: var(--admin-home-bus);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.76rem;
    font-variant-numeric: tabular-nums;
}

body.admin-page .admin-trash-list {
    gap: 8px;
}

body.admin-page .admin-trash-row.admin-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 13px 14px;
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: none;
    transform: none;
}

body.admin-page .admin-trash-row.admin-list-row:hover,
body.admin-page .admin-trash-row.admin-list-row:focus-within {
    border-color: rgba(154, 91, 47, 0.26);
    background: var(--admin-home-panel-strong);
    box-shadow: inset 0 0 0 1px rgba(154, 91, 47, 0.07);
    transform: none;
    outline: none;
}

body.admin-page .admin-trash-row .admin-item-title-row {
    gap: 8px;
    margin-bottom: 6px;
}

body.admin-page .admin-trash-row .admin-item-title-link {
    font-size: 0.98rem;
    line-height: 1.25;
}

body.admin-page .admin-trash-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

body.admin-page .admin-trash-meta-row > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 0 8px;
    border: 1px solid var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel-soft);
    color: var(--admin-home-muted);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

body.admin-page .admin-trash-meta-row .material-symbols-outlined {
    color: var(--admin-home-bus);
    font-size: 17px;
}

body.admin-page .admin-trash-reason {
    margin: 9px 0 0;
    padding: 8px 10px;
    border-left: 3px solid rgba(154, 91, 47, 0.28);
    border-radius: 0 8px 8px 0;
    background: rgba(255, 247, 234, 0.72);
    color: var(--admin-home-muted);
    font-size: 0.84rem;
    line-height: 1.42;
}

body.admin-page .admin-trash-row .admin-item-actions {
    display: flex;
    justify-content: flex-end;
    min-width: max-content;
}

body.admin-page .admin-trash-empty {
    border-radius: 8px;
}

html.admin-theme-dark body.admin-page .admin-trash-workspace,
html.admin-theme-dark body.admin-page .admin-trash-section-strip {
    border-color: var(--admin-home-line);
    background: var(--admin-home-panel);
}

html.admin-theme-dark body.admin-page .admin-trash-chip,
html.admin-theme-dark body.admin-page .admin-trash-row.admin-list-row,
html.admin-theme-dark body.admin-page .admin-trash-meta-row > span {
    background: rgba(17, 27, 34, 0.62);
}

html.admin-theme-dark body.admin-page .admin-trash-row.admin-list-row:hover,
html.admin-theme-dark body.admin-page .admin-trash-row.admin-list-row:focus-within {
    background: var(--admin-home-panel-strong);
}

html.admin-theme-dark body.admin-page .admin-trash-reason {
    background: rgba(57, 41, 26, 0.56);
}

/* Learn/reference command bars keep primary creation distinct from secondary navigation. */
body.admin-page .admin-reference-command .admin-list-command-actions,
body.admin-page .admin-learn-command .admin-list-command-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
}

body.admin-page .admin-reference-command .admin-list-command-actions .admin-list-action.is-primary,
body.admin-page .admin-learn-command .admin-list-command-actions .admin-list-action.is-primary {
    grid-column: 1 / -1;
}

body.admin-page .admin-learn-filter.admin-list-filter {
    gap: 10px;
    padding: 12px 14px;
}

body.admin-page .admin-learn-filter .admin-learn-filter-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

body.admin-page .admin-learn-filter .admin-learn-filter-group {
    position: relative;
    gap: 8px;
    overflow: hidden;
    padding: 10px 12px;
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.52);
    box-shadow: none;
}

body.admin-page .admin-learn-filter .admin-learn-filter-group::after {
    position: absolute;
    right: 0;
    bottom: 8px;
    z-index: 2;
    width: 32px;
    height: 38px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(252, 254, 255, 0.96) 76%);
    pointer-events: none;
    content: "";
}

body.admin-page .admin-learn-filter .admin-learn-group-head {
    grid-template-columns: auto minmax(0, max-content) minmax(0, 1fr);
    gap: 8px;
}

body.admin-page .admin-learn-filter .admin-learn-group-head strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
}

body.admin-page .admin-learn-filter .admin-learn-group-head small {
    min-width: 0;
    color: var(--admin-home-muted);
    font-size: 0.78rem;
    line-height: 1.25;
}

body.admin-page .admin-learn-filter .admin-section-filters {
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 30px 6px 0;
    scroll-padding-inline: 8px 30px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

body.admin-page .admin-learn-filter .admin-section-filters .chip {
    flex: 0 0 auto;
}

body.admin-page .admin-learn-filter .admin-section-filters::-webkit-scrollbar {
    height: 6px;
}

body.admin-page .admin-learn-filter .admin-section-filters::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(0, 84, 126, 0.18);
}

body.admin-page .admin-learn-workspace .admin-rail-panel,
body.admin-page .admin-learn-workspace .admin-board {
    gap: 12px;
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: var(--admin-home-panel);
    box-shadow: var(--admin-shadow);
}

body.admin-page .admin-learn-workspace .admin-rail-panel::before,
body.admin-page .admin-learn-workspace .admin-board::before {
    display: none;
}

body.admin-page .admin-learn-workspace .admin-rail-panel {
    padding: 14px;
}

body.admin-page .admin-learn-workspace .admin-board {
    padding: 16px;
}

body.admin-page .admin-learn-workspace .admin-board-head {
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

body.admin-page .admin-learn-workspace .admin-board-head h2 {
    margin-top: 3px;
    font-size: 1.08rem;
    line-height: 1.18;
}

body.admin-page .admin-learn-workspace .admin-board-tools {
    gap: 8px;
}

body.admin-page .admin-learn-workspace .admin-context-create {
    min-height: 36px;
    padding-inline: 11px;
}

body.admin-page .admin-learn-workspace .admin-tree-group {
    gap: 7px;
}

body.admin-page .admin-learn-workspace .admin-tree-group-head {
    gap: 8px;
    padding: 2px 2px 0;
}

body.admin-page .admin-learn-workspace .admin-tree-group-head strong {
    font-size: 0.86rem;
    line-height: 1.16;
}

body.admin-page .admin-learn-workspace .admin-tree-group-head small {
    color: var(--admin-home-muted);
    font-size: 0.74rem;
}

body.admin-page .admin-learn-workspace .admin-tree-link,
body.admin-page .admin-learn-workspace .admin-item-card.admin-list-row {
    border-color: var(--admin-home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: none;
    transform: none;
}

body.admin-page .admin-learn-workspace .admin-tree-link {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
    padding: 10px 12px;
}

body.admin-page .admin-learn-workspace .admin-tree-link strong {
    grid-column: 1 / -1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
    line-height: 1.18;
}

body.admin-page .admin-learn-workspace .admin-tree-link span {
    min-width: 0;
    color: var(--admin-home-muted);
    font-size: 0.78rem;
    line-height: 1.2;
}

body.admin-page .admin-learn-workspace .admin-tree-link span:last-child {
    color: var(--admin-home-bus);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-variant-numeric: tabular-nums;
}

body.admin-page .admin-learn-workspace .admin-tree-link:hover,
body.admin-page .admin-learn-workspace .admin-tree-link:focus-visible,
body.admin-page .admin-learn-workspace .admin-tree-link.active,
body.admin-page .admin-learn-workspace .admin-item-card.admin-list-row:hover,
body.admin-page .admin-learn-workspace .admin-item-card.admin-list-row:focus-within {
    border-color: rgba(0, 84, 126, 0.26);
    background: var(--admin-home-panel-strong);
    box-shadow: inset 0 0 0 1px rgba(0, 84, 126, 0.06);
    transform: none;
    outline: none;
}

body.admin-page .admin-learn-workspace .admin-item-card.admin-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 13px 14px;
}

body.admin-page .admin-learn-workspace .admin-item-title-row {
    gap: 8px;
    margin-bottom: 6px;
}

body.admin-page .admin-learn-workspace .admin-item-title-link {
    font-size: 0.98rem;
    line-height: 1.25;
}

body.admin-page .admin-learn-workspace .admin-item-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: 7px;
    color: var(--admin-home-muted);
    font-size: 0.84rem;
    line-height: 1.36;
}

body.admin-page .admin-learn-workspace .admin-item-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    min-width: max-content;
}

body.admin-page .admin-learn-workspace .admin-board-count {
    min-width: 82px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(0, 84, 126, 0.07);
}

body.admin-page .admin-learn-workspace .admin-board-count strong {
    font-size: 1.25rem;
}

html.admin-theme-dark body.admin-page .admin-learn-filter .admin-learn-filter-group,
html.admin-theme-dark body.admin-page .admin-learn-workspace .admin-tree-link,
html.admin-theme-dark body.admin-page .admin-learn-workspace .admin-item-card.admin-list-row {
    background: rgba(17, 27, 34, 0.62);
}

html.admin-theme-dark body.admin-page .admin-learn-filter .admin-learn-filter-group::after {
    background: linear-gradient(90deg, rgba(17, 27, 34, 0), rgba(17, 27, 34, 0.96) 76%);
}

html.admin-theme-dark body.admin-page .admin-learn-workspace .admin-tree-link:hover,
html.admin-theme-dark body.admin-page .admin-learn-workspace .admin-tree-link:focus-visible,
html.admin-theme-dark body.admin-page .admin-learn-workspace .admin-tree-link.active,
html.admin-theme-dark body.admin-page .admin-learn-workspace .admin-item-card.admin-list-row:hover,
html.admin-theme-dark body.admin-page .admin-learn-workspace .admin-item-card.admin-list-row:focus-within {
    background: var(--admin-home-panel-strong);
}

@media (max-width: 1180px) {
    body.admin-page .admin-topbar {
        align-items: start;
        padding-inline: 24px;
    }

    body.admin-page .admin-topbar-actions {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 7px;
        width: 100%;
    }

    body.admin-page .admin-topbar-actions > *,
    body.admin-page .admin-create-menu,
    body.admin-page .admin-nav-menu,
    body.admin-page .admin-create-menu > summary,
    body.admin-page .admin-nav-menu > summary,
    body.admin-page .admin-topbar-actions .admin-nav-link,
    body.admin-page .admin-topbar-actions .admin-theme-toggle {
        width: auto;
        min-width: 0;
    }

    body.admin-page .admin-topbar-actions .admin-nav-link,
    body.admin-page .admin-topbar-actions .admin-theme-toggle,
    body.admin-page .admin-create-menu > summary,
    body.admin-page .admin-nav-menu > summary {
        justify-content: center;
    }
}

@media (min-width: 761px) and (max-width: 1180px) {
    body.admin-page .admin-topbar {
        align-items: start;
    }

    body.admin-page .admin-topbar-actions {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        justify-content: stretch;
        overflow: visible;
    }

    body.admin-page .admin-topbar-actions > *,
    body.admin-page .admin-create-menu,
    body.admin-page .admin-nav-menu,
    body.admin-page .admin-create-menu > summary,
    body.admin-page .admin-nav-menu > summary,
    body.admin-page .admin-topbar-actions .admin-nav-link,
    body.admin-page .admin-topbar-actions .admin-theme-toggle {
        width: auto;
        min-width: 0;
        max-width: 100%;
    }

    body.admin-page .admin-nav-menu-dropdown,
    body.admin-page .admin-create-dropdown {
        right: 0;
        left: auto;
        max-width: calc(100vw - 48px);
        transform: none;
    }
}

@media (max-width: 760px) {
    body.admin-page .admin-topbar-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Final closure for the compact admin shell after legacy responsive blocks. */
@media (max-width: 1180px) {
    body.admin-page .admin-topbar {
        padding: 9px 18px;
    }

    body.admin-page .admin-topbar-actions {
        gap: 6px;
    }
}

@media (max-width: 760px) {
    body.admin-page .admin-topbar {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px 12px;
    }

    body.admin-page .admin-topbar-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    body.admin-page .admin-create-menu,
    body.admin-page .admin-nav-menu {
        position: static;
    }

    body.admin-page .admin-nav-menu--admin {
        grid-column: auto;
    }

    body.admin-page .admin-topbar-actions .admin-nav-link,
    body.admin-page .admin-topbar-actions .admin-theme-toggle,
    body.admin-page .admin-create-menu > summary,
    body.admin-page .admin-nav-menu > summary {
        min-height: 36px;
        height: 36px;
        padding: 0 8px;
    }
}

/* Premium admin shell rail: richer visual language without changing navigation contracts. */
body.admin-page .admin-header {
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 249, 0.92));
    border-bottom-color: rgba(0, 84, 126, 0.13);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.88) inset,
        0 18px 44px -36px rgba(0, 43, 66, 0.44);
}

body.admin-page .admin-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(0, 84, 126, 0.08), rgba(154, 91, 47, 0.08), rgba(0, 84, 126, 0.04)),
        repeating-linear-gradient(90deg, rgba(0, 84, 126, 0.055) 0 1px, transparent 1px 52px);
    opacity: 0.38;
    pointer-events: none;
}

body.admin-page .admin-topbar {
    position: relative;
    z-index: 1;
    min-height: 66px;
    padding: 9px 28px;
}

body.admin-page .admin-brand {
    position: relative;
    min-height: 48px;
    padding: 7px 12px 7px 0;
    border-right: 1px solid rgba(0, 84, 126, 0.14);
}

body.admin-page .admin-brand::after {
    content: "";
    position: absolute;
    right: -1px;
    top: 9px;
    bottom: 9px;
    width: 2px;
    border-radius: 999px;
    background: rgba(154, 91, 47, 0.32);
}

body.admin-page .admin-brand .brand-logo {
    height: 38px;
    filter: drop-shadow(0 8px 16px rgba(0, 84, 126, 0.12));
}

body.admin-page .admin-topbar-actions {
    position: relative;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border: 1px solid rgba(0, 84, 126, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.64);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        inset 0 -1px 0 rgba(0, 84, 126, 0.055),
        0 18px 40px -34px rgba(0, 43, 66, 0.5);
    backdrop-filter: blur(18px) saturate(1.08);
}

body.admin-page .admin-topbar-actions::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)),
        linear-gradient(90deg, rgba(0, 84, 126, 0.035), rgba(154, 91, 47, 0.035));
    pointer-events: none;
}

body.admin-page .admin-topbar-actions > *,
body.admin-page .admin-topbar-actions .admin-nav-link,
body.admin-page .admin-topbar-actions .admin-theme-toggle,
body.admin-page .admin-create-menu > summary,
body.admin-page .admin-nav-menu > summary {
    position: relative;
    z-index: 1;
}

body.admin-page .admin-topbar-actions .admin-nav-link,
body.admin-page .admin-topbar-actions .admin-theme-toggle,
body.admin-page .admin-create-menu > summary,
body.admin-page .admin-nav-menu > summary {
    min-height: 38px;
    height: 38px;
    gap: 7px;
    padding: 0 8px;
    border-color: transparent;
    background: transparent;
    color: #425966;
    box-shadow: none;
    font-size: 0.84rem;
    font-weight: 760;
}

body.admin-page .admin-topbar-actions .admin-nav-link > .material-symbols-outlined:first-child,
body.admin-page .admin-nav-menu > summary > .material-symbols-outlined:first-child,
body.admin-page .admin-create-menu > summary > .material-symbols-outlined:first-child {
    display: inline-grid;
    place-items: center;
    width: 24px;
    min-width: 24px;
    height: 24px;
    border: 1px solid rgba(0, 84, 126, 0.13);
    border-radius: 7px;
    background: rgba(0, 84, 126, 0.055);
    color: var(--admin-accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
    font-size: 17px;
}

body.admin-page .admin-topbar-actions .admin-nav-link:hover,
body.admin-page .admin-topbar-actions .admin-nav-link:focus-visible,
body.admin-page .admin-topbar-actions .admin-theme-toggle:hover,
body.admin-page .admin-topbar-actions .admin-theme-toggle:focus-visible,
body.admin-page .admin-create-menu[open] > summary,
body.admin-page .admin-nav-menu[open] > summary,
body.admin-page .admin-nav-menu.is-active > summary {
    border-color: rgba(0, 84, 126, 0.16);
    background: rgba(255, 255, 255, 0.72);
    color: var(--admin-accent);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.72),
        0 12px 22px -20px rgba(0, 43, 66, 0.42);
}

body.admin-page .admin-topbar-actions .admin-nav-link:hover > .material-symbols-outlined:first-child,
body.admin-page .admin-topbar-actions .admin-nav-link:focus-visible > .material-symbols-outlined:first-child,
body.admin-page .admin-nav-menu[open] > summary > .material-symbols-outlined:first-child,
body.admin-page .admin-nav-menu.is-active > summary > .material-symbols-outlined:first-child {
    border-color: rgba(0, 84, 126, 0.2);
    background: rgba(0, 84, 126, 0.09);
}

body.admin-page .admin-topbar-actions .admin-nav-link.is-active,
body.admin-page .admin-nav-menu.is-active > summary {
    border-color: rgba(0, 84, 126, 0.26);
    background: rgba(229, 244, 249, 0.92);
    color: var(--admin-accent-dark);
    box-shadow:
        inset 0 -2px 0 rgba(0, 84, 126, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 14px 26px -22px rgba(0, 43, 66, 0.5);
}

body.admin-page .admin-topbar-actions .admin-nav-link.is-active > .material-symbols-outlined:first-child,
body.admin-page .admin-nav-menu.is-active > summary > .material-symbols-outlined:first-child {
    border-color: rgba(0, 84, 126, 0.24);
    background: rgba(0, 84, 126, 0.13);
    color: var(--admin-accent-dark);
}

body.admin-page .admin-create-menu > summary.admin-nav-link-accent {
    border-color: rgba(154, 91, 47, 0.2);
    background: rgba(154, 91, 47, 0.075);
    color: #77491f;
}

body.admin-page .admin-create-menu > summary.admin-nav-link-accent > .material-symbols-outlined:first-child {
    border-color: rgba(154, 91, 47, 0.2);
    background: rgba(154, 91, 47, 0.085);
    color: #8a4f1c;
}

body.admin-page .admin-create-menu > summary.admin-nav-link-accent:hover,
body.admin-page .admin-create-menu[open] > summary.admin-nav-link-accent,
body.admin-page .admin-create-menu > summary.admin-nav-link-accent:focus-visible {
    border-color: rgba(154, 91, 47, 0.34);
    background: rgba(154, 91, 47, 0.13);
    color: #6b3f1c;
    box-shadow:
        inset 0 -2px 0 rgba(154, 91, 47, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.76),
        0 14px 26px -22px rgba(109, 62, 28, 0.42);
}

body.admin-page .admin-nav-link-utility,
body.admin-page .admin-topbar-actions .admin-theme-toggle {
    color: #5d707a;
}

body.admin-page .admin-nav-link-utility > .material-symbols-outlined:first-child {
    border-color: rgba(80, 103, 117, 0.15);
    background: rgba(80, 103, 117, 0.055);
    color: #527080;
}

body.admin-page .admin-theme-toggle {
    padding: 4px 8px 4px 4px;
}

body.admin-page .admin-theme-toggle-track {
    width: 46px;
    height: 28px;
    box-shadow:
        inset 0 0 0 1px rgba(0, 102, 104, 0.14),
        0 8px 16px -14px rgba(0, 43, 66, 0.35);
}

body.admin-page .admin-theme-toggle-knob {
    width: 20px;
    height: 20px;
}

body.admin-page .admin-theme-toggle.is-dark .admin-theme-toggle-knob {
    transform: translateX(18px);
}

body.admin-page .admin-nav-menu-dropdown,
body.admin-page .admin-create-dropdown {
    border-color: rgba(0, 84, 126, 0.16);
    background: rgba(255, 255, 255, 0.985);
    box-shadow:
        0 24px 62px -34px rgba(0, 43, 66, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.admin-page .admin-nav-menu-dropdown a,
body.admin-page .admin-create-dropdown a {
    border-color: transparent;
    background: transparent;
}

body.admin-page .admin-nav-menu-dropdown a .material-symbols-outlined,
body.admin-page .admin-create-dropdown a > .material-symbols-outlined {
    display: inline-grid;
    place-items: center;
    width: 24px;
    min-width: 24px;
    height: 24px;
    border-radius: 7px;
    background: rgba(0, 84, 126, 0.065);
    color: var(--admin-accent);
    font-size: 17px;
}

body.admin-page .admin-create-dropdown a > .material-symbols-outlined {
    background: rgba(154, 91, 47, 0.085);
    color: #8a4f1c;
}

html.admin-theme-dark body.admin-page .admin-header {
    background:
        linear-gradient(180deg, rgba(18, 29, 38, 0.96), rgba(12, 20, 27, 0.93));
    border-bottom-color: rgba(122, 154, 170, 0.18);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 18px 46px -30px rgba(0, 0, 0, 0.9);
}

html.admin-theme-dark body.admin-page .admin-header::before {
    background:
        linear-gradient(90deg, rgba(123, 213, 239, 0.13), rgba(214, 153, 87, 0.11), rgba(123, 213, 239, 0.06)),
        repeating-linear-gradient(90deg, rgba(123, 213, 239, 0.055) 0 1px, transparent 1px 52px);
    opacity: 0.3;
}

html.admin-theme-dark body.admin-page .admin-brand {
    border-right-color: rgba(122, 154, 170, 0.16);
}

html.admin-theme-dark body.admin-page .admin-brand::after {
    background: rgba(214, 153, 87, 0.36);
}

html.admin-theme-dark body.admin-page .admin-topbar-actions {
    border-color: rgba(122, 154, 170, 0.18);
    background: rgba(18, 29, 38, 0.66);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        inset 0 -1px 0 rgba(123, 213, 239, 0.06),
        0 20px 46px -32px rgba(0, 0, 0, 0.82);
}

html.admin-theme-dark body.admin-page .admin-topbar-actions::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0)),
        linear-gradient(90deg, rgba(123, 213, 239, 0.04), rgba(214, 153, 87, 0.035));
}

html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-nav-link,
html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-theme-toggle,
html.admin-theme-dark body.admin-page .admin-create-menu > summary,
html.admin-theme-dark body.admin-page .admin-nav-menu > summary {
    border-color: transparent;
    background: transparent;
    color: #a9bbc5;
}

html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-nav-link > .material-symbols-outlined:first-child,
html.admin-theme-dark body.admin-page .admin-nav-menu > summary > .material-symbols-outlined:first-child,
html.admin-theme-dark body.admin-page .admin-create-menu > summary > .material-symbols-outlined:first-child {
    border-color: rgba(123, 213, 239, 0.16);
    background: rgba(123, 213, 239, 0.08);
    color: var(--admin-accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-nav-link:hover,
html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-nav-link:focus-visible,
html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-theme-toggle:hover,
html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-theme-toggle:focus-visible,
html.admin-theme-dark body.admin-page .admin-create-menu[open] > summary,
html.admin-theme-dark body.admin-page .admin-nav-menu[open] > summary,
html.admin-theme-dark body.admin-page .admin-nav-menu.is-active > summary {
    border-color: rgba(123, 213, 239, 0.22);
    background: rgba(27, 42, 54, 0.76);
    color: #dff6ff;
    box-shadow: none;
}

html.admin-theme-dark body.admin-page .admin-topbar-actions .admin-nav-link.is-active,
html.admin-theme-dark body.admin-page .admin-nav-menu.is-active > summary {
    border-color: rgba(123, 213, 239, 0.34);
    background: rgba(30, 70, 88, 0.72);
    color: #e7fbff;
    box-shadow: inset 0 -2px 0 rgba(123, 213, 239, 0.28);
}

html.admin-theme-dark body.admin-page .admin-create-menu > summary.admin-nav-link-accent {
    border-color: rgba(214, 153, 87, 0.24);
    background: rgba(214, 153, 87, 0.08);
    color: #f0c68d;
}

html.admin-theme-dark body.admin-page .admin-create-menu > summary.admin-nav-link-accent > .material-symbols-outlined:first-child,
html.admin-theme-dark body.admin-page .admin-create-dropdown a > .material-symbols-outlined {
    border-color: rgba(214, 153, 87, 0.2);
    background: rgba(214, 153, 87, 0.11);
    color: #ffd49a;
}

html.admin-theme-dark body.admin-page .admin-create-menu > summary.admin-nav-link-accent:hover,
html.admin-theme-dark body.admin-page .admin-create-menu[open] > summary.admin-nav-link-accent,
html.admin-theme-dark body.admin-page .admin-create-menu > summary.admin-nav-link-accent:focus-visible {
    border-color: rgba(214, 153, 87, 0.38);
    background: rgba(214, 153, 87, 0.16);
    color: #ffd49a;
    box-shadow: inset 0 -2px 0 rgba(214, 153, 87, 0.24);
}

html.admin-theme-dark body.admin-page .admin-nav-menu-dropdown,
html.admin-theme-dark body.admin-page .admin-create-dropdown {
    border-color: rgba(122, 154, 170, 0.2);
    background: rgba(17, 27, 35, 0.99);
    box-shadow:
        0 24px 62px -32px rgba(0, 0, 0, 0.88),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@media (min-width: 1181px) {
    body.admin-page .admin-topbar-actions .admin-nav-link span:not(.material-symbols-outlined),
    body.admin-page .admin-create-menu > summary span:not(.material-symbols-outlined),
    body.admin-page .admin-nav-menu > summary span:not(.material-symbols-outlined) {
        max-width: 118px;
    }
}

@media (max-width: 1180px) {
    body.admin-page .admin-topbar {
        min-height: 0;
    }

    body.admin-page .admin-topbar-actions {
        padding: 5px;
    }

    body.admin-page .admin-topbar-actions .admin-nav-link,
    body.admin-page .admin-topbar-actions .admin-theme-toggle,
    body.admin-page .admin-create-menu > summary,
    body.admin-page .admin-nav-menu > summary {
        min-height: 38px;
        height: 38px;
    }
}

@media (max-width: 760px) {
    body.admin-page .admin-brand {
        min-height: 40px;
        padding-top: 3px;
        padding-bottom: 3px;
        border-right: 0;
        border-bottom: 1px solid rgba(0, 84, 126, 0.11);
    }

    body.admin-page .admin-brand::after {
        right: auto;
        top: auto;
        bottom: -1px;
        left: 0;
        width: 96px;
        height: 2px;
    }

    body.admin-page .admin-brand .brand-logo {
        height: 30px;
    }

    body.admin-page .admin-topbar-actions {
        width: 100%;
    }

    body.admin-page .admin-create-dropdown small {
        display: none;
    }

    body.admin-page .admin-create-dropdown a {
        min-height: 42px;
    }
}

/* Stitch-blended admin shell: current logo, centered grouped navigation, quiet utility cluster. */
body.admin-page .admin-header {
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(242, 248, 251, 0.96));
    border-bottom: 1px solid rgba(0, 84, 126, 0.14);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 16px 42px -36px rgba(0, 43, 66, 0.42);
}

body.admin-page .admin-header::before {
    display: none;
}

body.admin-page .admin-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
    gap: 28px;
    width: 100%;
    min-height: 64px;
    padding: 0 30px;
}

body.admin-page .admin-brand {
    min-height: 64px;
    padding: 0;
    border: 0;
}

body.admin-page .admin-brand::after {
    display: none;
}

body.admin-page .admin-brand .brand-logo {
    height: 34px;
    filter: drop-shadow(0 8px 16px rgba(0, 84, 126, 0.1));
}

body.admin-page .admin-topbar-actions {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 20px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

body.admin-page .admin-topbar-actions::before {
    display: none;
}

body.admin-page .admin-nav-main,
body.admin-page .admin-nav-utilities {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    min-width: 0;
}

body.admin-page .admin-nav-main {
    justify-content: center;
    gap: 26px;
    height: 64px;
}

body.admin-page .admin-nav-utilities {
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    height: 64px;
}

body.admin-page .admin-topbar-actions.has-open-admin-menu > .admin-nav-main,
body.admin-page .admin-topbar-actions.has-open-admin-menu > .admin-nav-utilities,
body.admin-page .admin-topbar-actions.has-open-admin-menu .admin-nav-main > *,
body.admin-page .admin-topbar-actions.has-open-admin-menu .admin-nav-utilities > * {
    pointer-events: auto;
}

body.admin-page .admin-nav-utilities::before {
    content: "";
    order: 2;
    width: 1px;
    height: 32px;
    margin: 0 4px;
    border-radius: 999px;
    background: rgba(0, 84, 126, 0.16);
}

body.admin-page .admin-nav-main .admin-nav-link,
body.admin-page .admin-nav-main .admin-nav-menu > summary {
    position: relative;
    min-height: 64px;
    height: 64px;
    gap: 5px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #425966;
    box-shadow: none;
    font-size: 0.91rem;
    font-weight: 720;
    letter-spacing: 0;
}

body.admin-page .admin-nav-main .admin-nav-link > .material-symbols-outlined:first-child,
body.admin-page .admin-nav-main .admin-nav-menu > summary > .material-symbols-outlined:first-child {
    display: none;
}

body.admin-page .admin-nav-main .admin-nav-link span:not(.material-symbols-outlined),
body.admin-page .admin-nav-main .admin-nav-menu > summary span:not(.material-symbols-outlined),
body.admin-page .admin-nav-utilities .admin-nav-link span:not(.material-symbols-outlined),
body.admin-page .admin-nav-utilities .admin-create-menu > summary span:not(.material-symbols-outlined) {
    max-width: none;
    white-space: nowrap;
}

body.admin-page .admin-nav-main .admin-nav-link::after,
body.admin-page .admin-nav-main .admin-nav-menu > summary::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 999px 999px 0 0;
    background: transparent;
    transition: background-color 0.18s ease, opacity 0.18s ease;
}

body.admin-page .admin-nav-main .admin-nav-link:hover,
body.admin-page .admin-nav-main .admin-nav-link:focus-visible,
body.admin-page .admin-nav-main .admin-nav-menu[open] > summary,
body.admin-page .admin-nav-main .admin-nav-menu > summary:hover,
body.admin-page .admin-nav-main .admin-nav-menu > summary:focus-visible {
    border-color: transparent;
    background: transparent;
    color: #003c5c;
    box-shadow: none;
}

body.admin-page .admin-nav-main .admin-nav-link:hover::after,
body.admin-page .admin-nav-main .admin-nav-link:focus-visible::after,
body.admin-page .admin-nav-main .admin-nav-menu[open] > summary::after,
body.admin-page .admin-nav-main .admin-nav-menu > summary:hover::after,
body.admin-page .admin-nav-main .admin-nav-menu > summary:focus-visible::after {
    background: rgba(0, 84, 126, 0.28);
}

body.admin-page .admin-nav-main .admin-nav-link.is-active,
body.admin-page .admin-nav-main .admin-nav-menu.is-active > summary {
    border-color: transparent;
    background: transparent;
    color: #003c5c;
    box-shadow: none;
}

body.admin-page .admin-nav-main .admin-nav-link.is-active::after,
body.admin-page .admin-nav-main .admin-nav-menu.is-active > summary::after {
    background: #00547e;
}

body.admin-page .admin-nav-main .admin-nav-menu-chevron {
    width: 16px;
    min-width: 16px;
    height: 16px;
    color: rgba(0, 60, 92, 0.64);
    font-size: 18px;
    transition: transform 0.18s ease;
}

body.admin-page .admin-nav-main .admin-nav-menu[open] .admin-nav-menu-chevron {
    transform: rotate(180deg);
}

body.admin-page .admin-nav-menu {
    position: relative;
}

body.admin-page .admin-nav-menu-dropdown,
body.admin-page .admin-create-dropdown {
    top: calc(100% + 9px);
    border: 1px solid rgba(0, 84, 126, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.985);
    box-shadow:
        0 26px 64px -36px rgba(0, 43, 66, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.admin-page .admin-nav-main .admin-nav-menu-dropdown {
    left: 50%;
    min-width: 250px;
    transform: translateX(-50%);
}

body.admin-page .admin-nav-menu-dropdown a,
body.admin-page .admin-create-dropdown a {
    border-color: transparent;
    background: transparent;
    color: #233946;
}

body.admin-page .admin-nav-menu-dropdown a:hover,
body.admin-page .admin-nav-menu-dropdown a:focus-visible,
body.admin-page .admin-nav-menu-dropdown a.is-active,
body.admin-page .admin-create-dropdown a:hover,
body.admin-page .admin-create-dropdown a:focus-visible {
    border-color: rgba(0, 84, 126, 0.12);
    background: rgba(231, 244, 249, 0.76);
    color: #003c5c;
}

body.admin-page .admin-nav-menu-dropdown a .material-symbols-outlined,
body.admin-page .admin-create-dropdown a > .material-symbols-outlined {
    display: inline-grid;
    place-items: center;
    width: 26px;
    min-width: 26px;
    height: 26px;
    border: 1px solid rgba(0, 84, 126, 0.12);
    border-radius: 8px;
    background: rgba(0, 84, 126, 0.06);
    color: #00547e;
    font-size: 18px;
}

body.admin-page .admin-nav-utilities .admin-theme-toggle,
body.admin-page .admin-nav-utilities .admin-nav-link,
body.admin-page .admin-nav-utilities .admin-create-menu > summary {
    min-height: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 760;
    letter-spacing: 0;
    box-shadow: none;
}

body.admin-page .admin-nav-utilities .admin-theme-toggle {
    order: 1;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    gap: 0;
    padding: 0;
    border: 1px solid rgba(0, 84, 126, 0.12);
    background: rgba(255, 255, 255, 0.48);
    color: #526873;
}

body.admin-page .admin-nav-utilities .admin-theme-toggle:hover,
body.admin-page .admin-nav-utilities .admin-theme-toggle:focus-visible {
    border-color: rgba(0, 84, 126, 0.2);
    background: rgba(255, 255, 255, 0.8);
    color: #003c5c;
    box-shadow: none;
}

body.admin-page .admin-nav-utilities .admin-theme-toggle-track {
    position: relative;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    background: transparent;
    box-shadow: none;
}

body.admin-page .admin-nav-utilities .admin-theme-toggle-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 22px;
    min-width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    color: currentColor;
    font-size: 20px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.16s ease, color 0.16s ease;
}

body.admin-page .admin-nav-utilities .admin-theme-toggle-knob {
    display: none;
}

body.admin-page .admin-nav-utilities .admin-theme-toggle:not(.is-dark) .admin-theme-toggle-moon,
body.admin-page .admin-nav-utilities .admin-theme-toggle.is-dark .admin-theme-toggle-sun {
    opacity: 1;
}

body.admin-page .admin-nav-utilities .admin-theme-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

body.admin-page .admin-nav-utilities .admin-nav-link-utility {
    order: 3;
    gap: 7px;
    padding: 0 15px;
    border: 1px solid rgba(0, 84, 126, 0.17);
    background: rgba(255, 255, 255, 0.72);
    color: #285166;
}

body.admin-page .admin-nav-utilities .admin-nav-link-utility > .material-symbols-outlined:first-child {
    display: inline-grid;
    place-items: center;
    width: 18px;
    min-width: 18px;
    height: 18px;
    border: 0;
    background: transparent;
    color: #527080;
    font-size: 18px;
}

body.admin-page .admin-nav-utilities .admin-nav-link-utility:hover,
body.admin-page .admin-nav-utilities .admin-nav-link-utility:focus-visible {
    border-color: rgba(0, 84, 126, 0.28);
    background: #ffffff;
    color: #003c5c;
    box-shadow: 0 12px 24px -22px rgba(0, 43, 66, 0.42);
}

body.admin-page .admin-nav-utilities .admin-create-menu {
    position: relative;
    order: 4;
}

body.admin-page .admin-nav-utilities .admin-create-menu > summary.admin-nav-link-accent {
    gap: 7px;
    padding: 0 15px;
    border: 1px solid rgba(118, 68, 28, 0.3);
    background: #8b4f24;
    color: #ffffff;
    box-shadow: 0 14px 30px -22px rgba(109, 62, 28, 0.58);
}

body.admin-page .admin-nav-utilities .admin-create-menu > summary.admin-nav-link-accent > .material-symbols-outlined:first-child {
    display: inline-grid;
    place-items: center;
    width: 18px;
    min-width: 18px;
    height: 18px;
    border: 0;
    background: transparent;
    color: currentColor;
    font-size: 19px;
}

body.admin-page .admin-nav-utilities .admin-create-menu > summary.admin-nav-link-accent:hover,
body.admin-page .admin-nav-utilities .admin-create-menu > summary.admin-nav-link-accent:focus-visible,
body.admin-page .admin-nav-utilities .admin-create-menu[open] > summary.admin-nav-link-accent {
    border-color: rgba(118, 68, 28, 0.42);
    background: #77491f;
    color: #ffffff;
    box-shadow: 0 16px 32px -22px rgba(109, 62, 28, 0.66);
}

body.admin-page .admin-nav-utilities .admin-create-chevron {
    width: 16px;
    min-width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    transition: transform 0.18s ease;
}

body.admin-page .admin-nav-utilities .admin-create-menu[open] .admin-create-chevron {
    transform: rotate(180deg);
}

body.admin-page .admin-nav-utilities .admin-create-dropdown {
    right: 0;
    left: auto;
    width: min(330px, calc(100vw - 32px));
}

body.admin-page .admin-create-dropdown a > .material-symbols-outlined {
    border-color: rgba(139, 79, 36, 0.15);
    background: rgba(139, 79, 36, 0.08);
    color: #8b4f24;
}

html.admin-theme-dark body.admin-page .admin-header {
    background:
        linear-gradient(180deg, rgba(18, 29, 38, 0.98), rgba(12, 20, 27, 0.97));
    border-bottom-color: rgba(122, 154, 170, 0.18);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 18px 46px -30px rgba(0, 0, 0, 0.86);
}

html.admin-theme-dark body.admin-page .admin-brand {
    border: 0;
}

html.admin-theme-dark body.admin-page .admin-topbar-actions {
    background: transparent;
    box-shadow: none;
}

html.admin-theme-dark body.admin-page .admin-nav-utilities::before {
    background: rgba(122, 154, 170, 0.22);
}

html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-link,
html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-menu > summary {
    border-color: transparent;
    background: transparent;
    color: #a9bbc5;
}

html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-link:hover,
html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-link:focus-visible,
html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-menu[open] > summary,
html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-menu > summary:hover,
html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-menu > summary:focus-visible,
html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-link.is-active,
html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-menu.is-active > summary {
    border-color: transparent;
    background: transparent;
    color: #e7fbff;
    box-shadow: none;
}

html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-link:hover::after,
html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-link:focus-visible::after,
html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-menu[open] > summary::after,
html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-menu > summary:hover::after,
html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-menu > summary:focus-visible::after {
    background: rgba(123, 213, 239, 0.28);
}

html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-link.is-active::after,
html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-menu.is-active > summary::after {
    background: #7bd5ef;
}

html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-menu-chevron {
    color: rgba(211, 232, 241, 0.72);
}

html.admin-theme-dark body.admin-page .admin-nav-menu-dropdown,
html.admin-theme-dark body.admin-page .admin-create-dropdown {
    border-color: rgba(122, 154, 170, 0.2);
    background: rgba(17, 27, 35, 0.99);
    box-shadow:
        0 24px 62px -32px rgba(0, 0, 0, 0.88),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html.admin-theme-dark body.admin-page .admin-nav-menu-dropdown a,
html.admin-theme-dark body.admin-page .admin-create-dropdown a {
    color: #d7e6ee;
}

html.admin-theme-dark body.admin-page .admin-nav-menu-dropdown a:hover,
html.admin-theme-dark body.admin-page .admin-nav-menu-dropdown a:focus-visible,
html.admin-theme-dark body.admin-page .admin-nav-menu-dropdown a.is-active,
html.admin-theme-dark body.admin-page .admin-create-dropdown a:hover,
html.admin-theme-dark body.admin-page .admin-create-dropdown a:focus-visible {
    border-color: rgba(123, 213, 239, 0.18);
    background: rgba(30, 70, 88, 0.5);
    color: #e7fbff;
}

html.admin-theme-dark body.admin-page .admin-nav-menu-dropdown a .material-symbols-outlined {
    border-color: rgba(123, 213, 239, 0.16);
    background: rgba(123, 213, 239, 0.08);
    color: #9be4f6;
}

html.admin-theme-dark body.admin-page .admin-create-dropdown a > .material-symbols-outlined {
    border-color: rgba(214, 153, 87, 0.2);
    background: rgba(214, 153, 87, 0.11);
    color: #ffd49a;
}

html.admin-theme-dark body.admin-page .admin-nav-utilities .admin-theme-toggle {
    border-color: rgba(122, 154, 170, 0.2);
    background: rgba(18, 29, 38, 0.54);
    color: #a9bbc5;
}

html.admin-theme-dark body.admin-page .admin-nav-utilities .admin-theme-toggle:hover,
html.admin-theme-dark body.admin-page .admin-nav-utilities .admin-theme-toggle:focus-visible {
    border-color: rgba(122, 154, 170, 0.22);
    background: rgba(27, 42, 54, 0.72);
    color: #e7fbff;
}

html.admin-theme-dark body.admin-page .admin-nav-utilities .admin-theme-toggle-track {
    background: transparent;
    box-shadow: none;
}

html.admin-theme-dark body.admin-page .admin-nav-utilities .admin-nav-link-utility {
    border-color: rgba(122, 154, 170, 0.2);
    background: rgba(18, 29, 38, 0.6);
    color: #c6d6de;
}

html.admin-theme-dark body.admin-page .admin-nav-utilities .admin-nav-link-utility:hover,
html.admin-theme-dark body.admin-page .admin-nav-utilities .admin-nav-link-utility:focus-visible {
    border-color: rgba(123, 213, 239, 0.3);
    background: rgba(27, 42, 54, 0.82);
    color: #e7fbff;
}

html.admin-theme-dark body.admin-page .admin-nav-utilities .admin-nav-link-utility > .material-symbols-outlined:first-child {
    color: #9bbdcb;
}

html.admin-theme-dark body.admin-page .admin-nav-utilities .admin-create-menu > summary.admin-nav-link-accent {
    border-color: rgba(214, 153, 87, 0.32);
    background: #9a5b2f;
    color: #ffffff;
}

html.admin-theme-dark body.admin-page .admin-nav-utilities .admin-create-menu > summary.admin-nav-link-accent:hover,
html.admin-theme-dark body.admin-page .admin-nav-utilities .admin-create-menu > summary.admin-nav-link-accent:focus-visible,
html.admin-theme-dark body.admin-page .admin-nav-utilities .admin-create-menu[open] > summary.admin-nav-link-accent {
    border-color: rgba(214, 153, 87, 0.45);
    background: #ad6736;
    color: #ffffff;
}

@media (max-width: 1180px) {
    body.admin-page .admin-topbar {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        gap: 18px;
        min-height: 0;
        padding: 8px 18px;
    }

    body.admin-page .admin-brand {
        min-height: 42px;
        padding-top: 2px;
    }

    body.admin-page .admin-topbar-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.admin-page .admin-nav-main {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
        height: auto;
    }

    body.admin-page .admin-nav-main .admin-nav-link,
    body.admin-page .admin-nav-main .admin-nav-menu > summary {
        justify-content: center;
        min-height: 38px;
        height: 38px;
        padding: 0 8px;
        border: 1px solid rgba(0, 84, 126, 0.12);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.6);
        font-size: 0.82rem;
    }

    body.admin-page .admin-nav-main .admin-nav-link:hover,
    body.admin-page .admin-nav-main .admin-nav-link:focus-visible,
    body.admin-page .admin-nav-main .admin-nav-menu[open] > summary,
    body.admin-page .admin-nav-main .admin-nav-menu > summary:hover,
    body.admin-page .admin-nav-main .admin-nav-menu > summary:focus-visible,
    body.admin-page .admin-nav-main .admin-nav-link.is-active,
    body.admin-page .admin-nav-main .admin-nav-menu.is-active > summary {
        border-color: rgba(0, 84, 126, 0.2);
        background: rgba(255, 255, 255, 0.86);
    }

    body.admin-page .admin-nav-main .admin-nav-link::after,
    body.admin-page .admin-nav-main .admin-nav-menu > summary::after {
        right: 8px;
        bottom: -1px;
        left: 8px;
    }

    body.admin-page .admin-nav-utilities {
        height: auto;
        justify-content: flex-end;
    }

    html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-link,
    html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-menu > summary {
        border-color: rgba(122, 154, 170, 0.18);
        background: rgba(18, 29, 38, 0.55);
    }

    html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-link:hover,
    html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-link:focus-visible,
    html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-menu[open] > summary,
    html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-menu > summary:hover,
    html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-menu > summary:focus-visible,
    html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-link.is-active,
    html.admin-theme-dark body.admin-page .admin-nav-main .admin-nav-menu.is-active > summary {
        border-color: rgba(123, 213, 239, 0.24);
        background: rgba(27, 42, 54, 0.78);
    }
}

@media (max-width: 760px) {
    body.admin-page .admin-topbar {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px 12px;
    }

    body.admin-page .admin-brand {
        min-height: 36px;
        padding: 0;
        border: 0;
    }

    body.admin-page .admin-brand .brand-logo {
        height: 30px;
    }

    body.admin-page .admin-topbar-actions {
        width: 100%;
    }

    body.admin-page .admin-nav-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    body.admin-page .admin-nav-main .admin-nav-link,
    body.admin-page .admin-nav-main .admin-nav-menu > summary {
        min-width: 0;
        font-size: 0.8rem;
    }

    body.admin-page .admin-nav-main .admin-nav-menu,
    body.admin-page .admin-nav-utilities .admin-create-menu {
        position: static;
    }

    body.admin-page .admin-nav-menu-dropdown,
    body.admin-page .admin-create-dropdown {
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        width: auto;
        max-width: calc(100vw - 24px);
        transform: none;
    }

    body.admin-page .admin-nav-utilities {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1.25fr);
        gap: 6px;
        min-width: 0;
    }

    body.admin-page .admin-nav-utilities::before {
        display: none;
    }

    body.admin-page .admin-nav-utilities .admin-theme-toggle,
    body.admin-page .admin-nav-utilities .admin-nav-link-utility,
    body.admin-page .admin-nav-utilities .admin-create-menu > summary {
        justify-content: center;
        width: 100%;
        min-width: 0;
        height: 38px;
        min-height: 38px;
        padding-right: 8px;
        padding-left: 8px;
    }

    body.admin-page .admin-nav-utilities .admin-theme-toggle {
        padding: 0;
    }

    body.admin-page .admin-nav-utilities .admin-create-dropdown small {
        display: none;
    }
}

@media (max-width: 430px) {
    body.admin-page .admin-nav-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.admin-page .admin-nav-main .admin-nav-link,
    body.admin-page .admin-nav-main .admin-nav-menu > summary {
        padding-right: 6px;
        padding-left: 6px;
        font-size: 0.76rem;
    }

    body.admin-page .admin-nav-utilities .admin-nav-link-utility span:not(.material-symbols-outlined),
    body.admin-page .admin-nav-utilities .admin-create-menu > summary span:not(.material-symbols-outlined) {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Admin list pages keep the editor rail beside results on tablet-class workspaces. */
@media (min-width: 901px) and (max-width: 1180px) {
    body.admin-page .admin-list-command {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    }

    body.admin-page .admin-list-command-actions {
        grid-template-columns: 1fr;
    }

    body.admin-page .admin-list-command-copy {
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: start;
        padding: 16px 18px;
    }

    body.admin-page .admin-list-command-copy h1 {
        margin-bottom: 6px;
        font-size: clamp(1.9rem, 3.2vw, 2.45rem);
    }

    body.admin-page .admin-list-command-copy p {
        max-width: 74ch;
        line-height: 1.48;
    }

    body.admin-page .admin-list-command-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    body.admin-page .admin-list-command-actions {
        padding: 10px;
    }

    body.admin-page .admin-list-filter {
        gap: 9px;
        padding: 12px 14px;
    }

    body.admin-page .admin-list-filter .chip {
        min-height: 30px;
        font-size: 0.8rem;
    }

    body.admin-page .admin-list-filter .admin-list-action,
    body.admin-page .admin-list-filter .button {
        min-height: 38px;
    }

    body.admin-page .admin-list-workspace .admin-board-head {
        margin-bottom: 12px;
    }

    body.admin-page .admin-list-workspace {
        grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
        align-items: start;
    }

    body.admin-page .admin-video-results.admin-list-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    body.admin-page .admin-list-workspace .admin-rail {
        position: sticky;
        top: 116px;
    }

    body.admin-page .admin-list-workspace .admin-rail-panel,
    body.admin-page .admin-list-workspace .admin-rail-panel .admin-tree {
        max-height: calc(100vh - 150px);
        overflow: auto;
        padding-right: 4px;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    body.admin-page .admin-reference-command .admin-list-command-copy {
        padding: 14px 16px;
    }

    body.admin-page .admin-reference-command .admin-list-command-copy h1 {
        font-size: clamp(1.76rem, 2.8vw, 2.15rem);
    }

    body.admin-page .admin-reference-command .admin-list-command-copy p {
        font-size: 0.9rem;
        line-height: 1.38;
    }

    body.admin-page .admin-reference-workspace.admin-list-workspace {
        grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
        gap: 14px;
    }

    body.admin-page .admin-learn-command .admin-list-command-copy {
        padding: 14px 16px;
    }

    body.admin-page .admin-learn-command .admin-list-command-copy h1 {
        font-size: clamp(1.76rem, 2.8vw, 2.15rem);
    }

    body.admin-page .admin-learn-command .admin-list-command-copy p {
        font-size: 0.9rem;
        line-height: 1.38;
    }

    body.admin-page .admin-learn-filter .admin-learn-group-head small {
        display: none;
    }

    body.admin-page .admin-learn-workspace.admin-list-workspace {
        grid-template-columns: minmax(160px, 180px) minmax(0, 1fr);
        gap: 14px;
    }

    body.admin-page .admin-learn-workspace .admin-board-count {
        display: inline-flex;
        gap: 6px;
        min-width: 68px;
        min-height: 36px;
        padding: 6px 8px;
    }

    body.admin-page .admin-learn-workspace .admin-board-count .material-symbols-outlined {
        font-size: 20px;
    }

    body.admin-page .admin-learn-workspace .admin-item-card.admin-list-row {
        padding: 11px 12px;
    }

    body.admin-page .admin-learn-workspace .admin-item-actions {
        min-width: 0;
    }

    body.admin-page .admin-learn-workspace .admin-item-actions .admin-list-action,
    body.admin-page .admin-learn-workspace .admin-item-actions .button {
        width: 36px;
        min-width: 36px;
        padding: 0;
    }

    body.admin-page .admin-learn-workspace .admin-item-actions .admin-list-action span:not(.material-symbols-outlined),
    body.admin-page .admin-learn-workspace .admin-item-actions .button span:not(.material-symbols-outlined) {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* Admin filter console: quiet shared filter/search surface for dynamic list pages. */
body.admin-page .admin-filter-shell.admin-list-filter {
    --admin-filter-surface: rgba(255, 255, 255, 0.68);
    --admin-filter-surface-strong: rgba(255, 255, 255, 0.88);
    --admin-filter-inset: rgba(247, 251, 253, 0.94);
    --admin-filter-line: rgba(0, 84, 126, 0.14);
    --admin-filter-line-strong: rgba(0, 84, 126, 0.28);
    --admin-filter-text: #173747;
    --admin-filter-muted: #5f7480;
    --admin-filter-badge: rgba(0, 84, 126, 0.065);
    --admin-filter-active: rgba(231, 244, 249, 0.86);
    --admin-filter-action: rgba(255, 255, 255, 0.82);
    display: grid;
    gap: 12px;
    padding: 14px 16px;
    overflow: hidden;
    border: 1px solid var(--admin-filter-line);
    border-radius: 8px;
    background: var(--admin-filter-surface);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 18px 42px -40px rgba(0, 43, 66, 0.42);
}

body.admin-page .admin-filter-shell.admin-list-filter::before,
body.admin-page .admin-filter-shell.admin-list-filter::after {
    display: none;
}

body.admin-page .admin-list-filter .admin-filter-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

body.admin-page .admin-list-filter .admin-filter-head > div:first-child {
    min-width: 0;
}

body.admin-page .admin-list-filter .admin-video-filter-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
}

body.admin-page .admin-list-filter .admin-video-catalog-tools {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

body.admin-page .admin-list-filter .admin-filter-head h2 {
    margin: 3px 0 0;
    color: var(--admin-filter-text);
    font-size: 1rem;
    line-height: 1.18;
    letter-spacing: 0;
}

body.admin-page .admin-list-filter .admin-filter-meta {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 32px;
    color: var(--admin-filter-muted);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    white-space: nowrap;
}

body.admin-page .admin-list-filter .admin-filter-meta .admin-search-reset {
    flex: 0 0 auto;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    padding: 0 10px;
    font-family: inherit;
    font-size: 0.78rem;
}

body.admin-page .admin-list-filter .admin-video-view-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

body.admin-page .admin-list-filter .admin-video-view-button {
    flex: 0 0 auto;
    min-width: 116px;
}

body.admin-page .admin-list-filter .admin-section-filters,
body.admin-page .admin-list-filter .admin-video-filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 0;
}

body.admin-page .admin-list-filter .chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 32px;
    height: 32px;
    max-width: 100%;
    padding: 0 9px;
    overflow: hidden;
    border: 1px solid var(--admin-filter-line);
    border-radius: 8px;
    background: var(--admin-filter-action);
    color: #16425a;
    box-shadow: none;
    font-size: 0.82rem;
    font-weight: 640;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    text-shadow: none;
    transform: none;
}

body.admin-page .admin-list-filter .chip > span:not(.material-symbols-outlined):not(.admin-chip-meta),
body.admin-page .admin-list-filter .chip > strong:not(.admin-chip-meta) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.admin-page .admin-list-filter .chip > .material-symbols-outlined {
    display: inline-grid;
    place-items: center;
    width: 16px;
    min-width: 16px;
    height: 16px;
    margin: 0;
    color: rgba(0, 84, 126, 0.78);
    font-size: 17px;
    line-height: 1;
}

body.admin-page .admin-list-filter .admin-chip-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 20px;
    margin: 0;
    padding: 0 6px;
    border: 1px solid rgba(0, 84, 126, 0.1);
    border-radius: 6px;
    background: var(--admin-filter-badge);
    color: #486676;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
}

body.admin-page .admin-list-filter .chip:hover,
body.admin-page .admin-list-filter .chip:focus-visible {
    border-color: var(--admin-filter-line-strong);
    background: var(--admin-filter-surface-strong);
    color: var(--admin-accent-dark);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.66);
    outline: none;
    transform: none;
}

body.admin-page .admin-list-filter .chip.active,
body.admin-page .admin-list-filter .chip.is-active {
    border-color: var(--admin-filter-line-strong);
    background: var(--admin-filter-active);
    color: var(--admin-accent-dark);
    box-shadow:
        inset 0 -2px 0 rgba(0, 84, 126, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.admin-page .admin-list-filter .chip.active .admin-chip-meta,
body.admin-page .admin-list-filter .chip.is-active .admin-chip-meta {
    border-color: rgba(0, 84, 126, 0.14);
    background: rgba(255, 255, 255, 0.54);
    color: #244b5f;
}

body.admin-page .admin-list-filter .meta {
    margin: 0;
    color: var(--admin-filter-muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

body.admin-page .admin-list-filter .admin-search-form,
body.admin-page .admin-list-filter .admin-files-search-form,
body.admin-page .admin-list-filter .admin-video-search-form {
    display: grid;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

body.admin-page .admin-list-filter .admin-search-form {
    grid-template-columns: minmax(240px, 1fr) auto auto;
}

body.admin-page .admin-list-filter .admin-files-search-form {
    grid-template-columns: minmax(240px, 1fr) minmax(190px, 280px) auto auto;
}

body.admin-page .admin-list-filter .admin-video-search-form {
    grid-template-columns: minmax(360px, 1fr) auto;
}

body.admin-page .admin-list-filter .admin-video-search-controls {
    display: grid;
    grid-template-columns: minmax(218px, 240px) minmax(150px, 170px) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

body.admin-page .admin-list-filter .admin-search-field {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 0 12px;
    overflow: hidden;
    border: 1px solid var(--admin-filter-line);
    border-radius: 8px;
    background: var(--admin-filter-inset);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.58),
        inset 0 -1px 0 rgba(0, 84, 126, 0.04);
}

body.admin-page .admin-list-filter .admin-search-field > .material-symbols-outlined {
    display: inline-grid;
    position: static;
    top: auto;
    left: auto;
    grid-column: 1;
    grid-row: 1;
    place-items: center;
    margin: 0;
    width: 22px;
    min-width: 22px;
    height: 22px;
    color: rgba(0, 60, 92, 0.72);
    font-size: 20px;
    line-height: 1;
    transform: none;
}

body.admin-page .admin-list-filter .admin-search-field input {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #253f4d;
    font-size: 0.94rem;
    line-height: 1.2;
}

body.admin-page .admin-list-filter .admin-search-field input::placeholder {
    color: rgba(64, 83, 94, 0.74);
}

body.admin-page .admin-list-filter .admin-search-field:focus-within {
    border-color: rgba(0, 84, 126, 0.32);
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.74),
        0 0 0 3px rgba(0, 84, 126, 0.08);
}

body.admin-page .admin-list-filter select,
body.admin-page .admin-list-filter .admin-select,
body.admin-page .admin-list-filter .admin-video-search-form label:has(select),
body.admin-page .admin-list-filter .admin-video-sort-control,
body.admin-page .admin-list-filter .admin-video-page-size-control {
    min-width: 0;
    height: 40px;
    min-height: 40px;
    border-radius: 8px;
}

body.admin-page .admin-list-filter .admin-video-search-form label:has(select),
body.admin-page .admin-list-filter .admin-video-sort-control,
body.admin-page .admin-list-filter .admin-video-page-size-control {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid var(--admin-filter-line);
    background: var(--admin-filter-inset);
    color: var(--admin-filter-muted);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

body.admin-page .admin-list-filter .admin-video-search-form label:has(select) > span,
body.admin-page .admin-list-filter .admin-video-sort-control > span,
body.admin-page .admin-list-filter .admin-video-page-size-control > span {
    white-space: nowrap;
}

body.admin-page .admin-list-filter .admin-video-search-form label:has(select) select,
body.admin-page .admin-list-filter .admin-video-sort-control select,
body.admin-page .admin-list-filter .admin-video-page-size-control select,
body.admin-page .admin-list-filter select.admin-select,
body.admin-page .admin-list-filter .admin-select {
    width: 100%;
    padding: 0 28px 0 10px;
    border: 1px solid var(--admin-filter-line);
    background-color: var(--admin-filter-inset);
    color: #253f4d;
    font-size: 0.86rem;
}

body.admin-page .admin-list-filter .admin-video-search-form label:has(select) select,
body.admin-page .admin-list-filter .admin-video-sort-control select,
body.admin-page .admin-list-filter .admin-video-page-size-control select {
    height: 38px;
    min-height: 38px;
    padding-right: 18px;
    padding-left: 0;
    border: 0;
    background-color: transparent;
}

body.admin-page .admin-list-filter .admin-video-search-controls .admin-search-submit {
    min-width: 96px;
}

body.admin-page .admin-list-filter .admin-list-action,
body.admin-page .admin-list-filter .button {
    align-self: center;
    justify-content: center;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    padding: 0 13px;
    border-radius: 8px;
    background-image: none;
    text-shadow: none;
    transform: none;
}

body.admin-page .admin-list-filter .admin-list-action:hover,
body.admin-page .admin-list-filter .admin-list-action:focus-visible,
body.admin-page .admin-list-filter .button:hover,
body.admin-page .admin-list-filter .button:focus-visible {
    background-image: none;
    text-shadow: none;
    transform: none;
}

html.admin-theme-dark body.admin-page .admin-filter-shell.admin-list-filter {
    --admin-filter-surface: rgba(18, 29, 38, 0.7);
    --admin-filter-surface-strong: rgba(27, 42, 54, 0.86);
    --admin-filter-inset: rgba(13, 22, 30, 0.92);
    --admin-filter-line: rgba(122, 154, 170, 0.2);
    --admin-filter-line-strong: rgba(123, 213, 239, 0.3);
    --admin-filter-text: #edf8fc;
    --admin-filter-muted: #a9bbc5;
    --admin-filter-badge: rgba(123, 213, 239, 0.08);
    --admin-filter-active: rgba(30, 70, 88, 0.62);
    --admin-filter-action: rgba(18, 29, 38, 0.72);
    background: var(--admin-filter-surface);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 20px 46px -34px rgba(0, 0, 0, 0.86);
}

html.admin-theme-dark body.admin-page .admin-list-filter .chip {
    color: #cfe1e8;
}

html.admin-theme-dark body.admin-page .admin-list-filter .chip > .material-symbols-outlined {
    color: rgba(155, 228, 246, 0.8);
}

html.admin-theme-dark body.admin-page .admin-list-filter .admin-chip-meta {
    border-color: rgba(123, 213, 239, 0.14);
    color: #acc8d3;
}

html.admin-theme-dark body.admin-page .admin-list-filter .chip:hover,
html.admin-theme-dark body.admin-page .admin-list-filter .chip:focus-visible,
html.admin-theme-dark body.admin-page .admin-list-filter .chip.active,
html.admin-theme-dark body.admin-page .admin-list-filter .chip.is-active {
    color: #e7fbff;
}

html.admin-theme-dark body.admin-page .admin-list-filter .chip.active .admin-chip-meta,
html.admin-theme-dark body.admin-page .admin-list-filter .chip.is-active .admin-chip-meta {
    background: rgba(123, 213, 239, 0.11);
    color: #d4f5ff;
}

html.admin-theme-dark body.admin-page .admin-list-filter .admin-search-field input,
html.admin-theme-dark body.admin-page .admin-list-filter .admin-video-search-form label:has(select) select,
html.admin-theme-dark body.admin-page .admin-list-filter select.admin-select,
html.admin-theme-dark body.admin-page .admin-list-filter .admin-select {
    color: #dcebf1;
}

html.admin-theme-dark body.admin-page .admin-list-filter .admin-search-field input::placeholder {
    color: rgba(199, 216, 224, 0.68);
}

html.admin-theme-dark body.admin-page .admin-list-filter .admin-search-field > .material-symbols-outlined {
    color: rgba(155, 228, 246, 0.72);
}

html.admin-theme-dark body.admin-page .admin-list-filter .admin-search-field:focus-within {
    border-color: rgba(123, 213, 239, 0.34);
    background: rgba(17, 27, 35, 0.98);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.045),
        0 0 0 3px rgba(123, 213, 239, 0.09);
}

@media (max-width: 1180px) {
    body.admin-page .admin-filter-shell.admin-list-filter {
        gap: 10px;
        padding: 12px 14px;
    }

    body.admin-page .admin-list-filter .admin-video-filter-head {
        gap: 10px;
    }

    body.admin-page .admin-list-filter .admin-video-view-button {
        min-width: 108px;
        padding-inline: 10px;
    }

    body.admin-page .admin-list-filter .admin-video-search-controls {
        grid-template-columns: minmax(206px, 226px) minmax(140px, 158px) auto;
        gap: 6px;
    }

    body.admin-page .admin-list-filter .admin-video-search-controls .admin-search-submit {
        min-width: 88px;
    }

    body.admin-page .admin-list-filter .admin-filter-head h2 {
        font-size: 0.96rem;
    }

    body.admin-page .admin-list-filter .chip {
        min-height: 30px;
        height: 30px;
        padding-inline: 8px;
        font-size: 0.78rem;
    }

    body.admin-page .admin-list-filter .admin-chip-meta {
        min-height: 19px;
        padding-inline: 5px;
        font-size: 0.68rem;
    }

    body.admin-page .admin-learn-filter.admin-list-filter {
        gap: 6px;
        padding: 8px 12px;
    }

    body.admin-page .admin-learn-filter .admin-learn-filter-layout {
        gap: 8px;
    }

    body.admin-page .admin-learn-filter .admin-learn-filter-group {
        gap: 6px;
        padding: 8px 10px 7px;
    }

    body.admin-page .admin-learn-filter .admin-learn-group-head {
        gap: 6px;
    }

    body.admin-page .admin-learn-filter .admin-learn-group-head .material-symbols-outlined {
        font-size: 19px;
    }

    body.admin-page .admin-learn-filter .admin-section-filters {
        padding-bottom: 4px;
    }
}

@media (max-width: 760px) {
    body.admin-page .admin-list-filter .admin-filter-head {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    body.admin-page .admin-list-filter .admin-video-filter-head {
        gap: 8px;
    }

    body.admin-page .admin-list-filter .admin-video-catalog-tools {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
    }

    body.admin-page .admin-list-filter .admin-video-view-toggle {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    body.admin-page .admin-list-filter .admin-video-view-button {
        width: 100%;
        min-width: 0;
    }

    body.admin-page .admin-list-filter .admin-filter-meta {
        justify-content: flex-start;
        min-height: 20px;
        flex-wrap: wrap;
    }

    body.admin-page .admin-list-filter .admin-search-form,
    body.admin-page .admin-list-filter .admin-files-search-form,
    body.admin-page .admin-list-filter .admin-video-search-form {
        grid-template-columns: 1fr;
    }

    body.admin-page .admin-list-filter .admin-video-search-controls {
        grid-template-columns: 1fr;
        width: 100%;
    }

    body.admin-page .admin-list-filter .admin-search-field,
    body.admin-page .admin-list-filter .admin-list-action,
    body.admin-page .admin-list-filter .button,
    body.admin-page .admin-list-filter select,
    body.admin-page .admin-list-filter .admin-select,
    body.admin-page .admin-list-filter .admin-video-search-form label:has(select),
    body.admin-page .admin-list-filter .admin-video-sort-control,
    body.admin-page .admin-list-filter .admin-video-page-size-control {
        width: 100%;
    }

    body.admin-page .admin-list-filter .chip {
        max-width: 100%;
    }

    body.admin-page .admin-learn-filter.admin-list-filter .admin-learn-filter-layout {
        grid-template-columns: 1fr;
    }

    body.admin-page .admin-learn-filter.admin-list-filter .admin-learn-filter-group {
        width: 100%;
    }
}

body.admin-page .admin-learn-filter.admin-list-filter .admin-section-filters {
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 30px 6px 0;
    scroll-padding-inline: 8px 30px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

body.admin-page .admin-learn-filter.admin-list-filter .admin-section-filters .chip {
    flex: 0 0 auto;
    max-width: min(260px, 82vw);
}

body.admin-page .admin-learn-filter.admin-list-filter .admin-learn-filter-group::after {
    right: 0;
    bottom: 8px;
    width: 32px;
    height: 36px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(252, 254, 255, 0.96) 76%);
    pointer-events: none;
}

html.admin-theme-dark body.admin-page .admin-learn-filter.admin-list-filter .admin-learn-filter-group::after {
    background: linear-gradient(90deg, rgba(18, 29, 38, 0), rgba(18, 29, 38, 0.98) 76%);
}

@media (max-width: 1180px) {
    body.admin-page .admin-learn-filter.admin-list-filter .admin-section-filters {
        padding-bottom: 4px;
    }
}

/* Admin access: compact one-panel account registry. */
body.admin-page .admin-access-command.admin-list-command {
    grid-template-columns: minmax(0, 1fr) minmax(258px, 320px);
    gap: 12px;
}

body.admin-page .admin-access-command .admin-list-command-copy {
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
}

body.admin-page .admin-access-title-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

body.admin-page .admin-access-title-line .admin-kicker {
    margin: 0;
}

body.admin-page .admin-access-backlink {
    color: var(--admin-home-muted);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

body.admin-page .admin-access-backlink:hover,
body.admin-page .admin-access-backlink:focus-visible {
    color: var(--admin-accent-dark);
}

body.admin-page .admin-access-command .admin-list-command-copy h1 {
    margin: 4px 0 6px;
    font-size: clamp(1.76rem, 2.55vw, 2.32rem);
    line-height: 1.06;
}

body.admin-page .admin-access-command .admin-list-command-copy p {
    max-width: 62ch;
    font-size: 0.9rem;
    line-height: 1.42;
}

body.admin-page .admin-access-command .admin-list-command-meta {
    align-self: center;
    grid-template-columns: repeat(3, minmax(76px, max-content));
}

body.admin-page .admin-access-command .admin-list-command-meta span {
    min-height: 36px;
    font-size: 0.74rem;
}

body.admin-page .admin-access-command .admin-list-command-meta strong {
    font-size: 1.08rem;
}

body.admin-page .admin-access-command .admin-list-command-actions {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 7px;
    padding: 10px;
}

body.admin-page .admin-access-command .admin-list-action {
    min-height: 34px;
}

body.admin-page .admin-access-status-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.admin-page .admin-access-status-strip .admin-status-strip-item {
    min-height: 52px;
    padding: 8px 12px;
}

body.admin-page .admin-access-status-strip .admin-status-strip-item strong {
    font-size: 1.08rem;
}

body.admin-page .admin-access-status-strip .admin-status-strip-item small {
    font-size: 0.74rem;
}

body.admin-page .admin-access-workspace.admin-list-workspace {
    display: block;
}

body.admin-page .admin-access-panel {
    gap: 10px;
    padding: 12px;
}

body.admin-page .admin-access-panel-head {
    align-items: center;
    gap: 12px;
}

body.admin-page .admin-access-panel-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

body.admin-page .admin-access-risk-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

body.admin-page .admin-access-risk-chip {
    display: inline-grid;
    grid-template-columns: 22px minmax(0, auto);
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 30px;
    padding: 4px 7px;
    border: 1px solid rgba(42, 113, 141, 0.16);
    border-radius: 8px;
    background: rgba(248, 252, 253, 0.72);
    color: var(--admin-home-info);
    white-space: nowrap;
}

body.admin-page .admin-access-risk-chip > span:last-child {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
}

body.admin-page .admin-access-risk-chip strong {
    color: var(--admin-text);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.94rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

body.admin-page .admin-access-risk-chip span span {
    min-width: 0;
    overflow: hidden;
    color: var(--admin-home-muted);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
}

body.admin-page .admin-access-risk-icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(42, 113, 141, 0.16);
    border-radius: 7px;
    background: rgba(42, 113, 141, 0.06);
    color: currentColor;
    font-size: 17px;
}

body.admin-page .admin-access-risk-chip.is-good {
    border-color: rgba(47, 125, 103, 0.18);
    color: var(--admin-home-good);
}

body.admin-page .admin-access-risk-chip.is-warning {
    border-color: rgba(170, 104, 22, 0.2);
    color: var(--admin-home-warning);
}

body.admin-page .admin-access-risk-chip.is-danger {
    border-color: rgba(170, 63, 63, 0.2);
    color: var(--admin-home-danger);
}

body.admin-page .admin-access-row {
    grid-template-columns: minmax(220px, 0.86fr) minmax(390px, 1.44fr) minmax(220px, 0.9fr) minmax(112px, auto);
    gap: 10px;
    padding: 10px 12px;
}

body.admin-page .admin-access-identity {
    grid-template-columns: 36px minmax(0, 1fr);
}

body.admin-page .admin-access-avatar {
    width: 36px;
    height: 36px;
    font-size: 20px;
}

body.admin-page .admin-access-facts {
    grid-template-columns: minmax(70px, 0.65fr) minmax(105px, 0.92fr) minmax(112px, 0.9fr) minmax(132px, 1fr);
    gap: 0;
}

body.admin-page .admin-access-row .admin-access-cell {
    min-height: 0;
    align-content: center;
    gap: 4px;
    padding: 0 10px;
    border: 0;
    border-left: 1px solid rgba(22, 48, 58, 0.09);
    border-radius: 0;
    background: transparent;
}

body.admin-page .admin-access-row .admin-access-cell:first-child {
    padding-left: 0;
    border-left: 0;
}

body.admin-page .admin-access-cell span {
    font-size: 0.68rem;
    letter-spacing: 0.035em;
}

body.admin-page .admin-access-cell strong,
body.admin-page .admin-access-identity strong {
    line-height: 1.14;
}

body.admin-page .admin-access-cell small {
    font-size: 0.7rem;
    line-height: 1.18;
}

body.admin-page .admin-access-right {
    gap: 5px;
}

body.admin-page .admin-access-summary {
    gap: 5px;
}

body.admin-page .admin-access-actions .admin-list-action {
    min-width: 112px;
}

html.admin-theme-dark body.admin-page .admin-access-risk-chip {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(18, 29, 38, 0.62);
}

html.admin-theme-dark body.admin-page .admin-access-risk-icon {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(110, 215, 217, 0.1);
}

html.admin-theme-dark body.admin-page .admin-access-row .admin-access-cell {
    border-color: rgba(255, 255, 255, 0.1);
    background: transparent;
}

@media (min-width: 901px) and (max-width: 1180px) {
    body.admin-page .admin-access-command.admin-list-command {
        grid-template-columns: minmax(0, 1fr) minmax(232px, 280px);
    }

    body.admin-page .admin-access-command .admin-list-command-copy {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 13px 16px;
    }

    body.admin-page .admin-access-command .admin-list-command-copy h1 {
        font-size: clamp(1.65rem, 2.7vw, 2rem);
    }

    body.admin-page .admin-access-command .admin-list-command-meta {
        grid-template-columns: repeat(3, minmax(64px, max-content));
    }

    body.admin-page .admin-access-row {
        grid-template-columns: minmax(210px, 0.9fr) minmax(260px, 1.08fr) minmax(190px, 0.82fr) minmax(108px, auto);
    }

    body.admin-page .admin-access-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 0;
    }

    body.admin-page .admin-access-row .admin-access-cell:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    body.admin-page .admin-access-risk-strip {
        max-width: 540px;
    }
}

@media (max-width: 900px) {
    body.admin-page .admin-access-command.admin-list-command {
        grid-template-columns: 1fr;
    }

    body.admin-page .admin-access-command .admin-list-command-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.admin-page .admin-access-panel-head {
        display: grid;
    }

    body.admin-page .admin-access-panel-tools {
        justify-content: flex-start;
    }

    body.admin-page .admin-access-risk-strip {
        justify-content: flex-start;
    }

    body.admin-page .admin-access-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    body.admin-page .admin-access-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 0;
    }

    body.admin-page .admin-access-actions,
    body.admin-page .admin-access-actions .admin-list-action {
        justify-content: stretch;
        width: 100%;
    }
}

@media (max-width: 760px) {
    body.admin-page .admin-access-command .admin-list-command-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    body.admin-page .admin-access-status-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.admin-page .admin-access-status-strip .admin-status-strip-item:nth-child(odd) {
        border-left: 0;
    }
}

@media (max-width: 600px) {
    body.admin-page .admin-access-command .admin-list-command-copy {
        grid-template-columns: 1fr;
    }

    body.admin-page .admin-access-command .admin-list-command-actions {
        grid-template-columns: 1fr;
    }

    body.admin-page .admin-access-panel-tools {
        display: grid;
        justify-content: stretch;
    }

    body.admin-page .admin-access-risk-strip {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.admin-page .admin-access-risk-chip {
        width: 100%;
    }

    body.admin-page .admin-access-facts {
        grid-template-columns: 1fr;
    }

    body.admin-page .admin-access-row .admin-access-cell {
        padding: 7px 0 0;
        border-top: 1px solid rgba(22, 48, 58, 0.09);
        border-left: 0;
    }

    body.admin-page .admin-access-row .admin-access-cell:first-child {
        padding-top: 0;
        border-top: 0;
    }
}

/* Admin access Scandinavian audit: quiet ledger, minimal color, thin structure. */
body.admin-page .admin-access-command .admin-list-command-copy,
body.admin-page .admin-access-command .admin-list-command-actions,
body.admin-page .admin-access-status-strip,
body.admin-page .admin-access-panel {
    border-color: rgba(26, 53, 65, 0.1);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: none;
}

body.admin-page .admin-access-command .admin-list-command-copy {
    padding: 13px 16px;
}

body.admin-page .admin-access-command .admin-list-command-copy h1 {
    font-size: clamp(1.72rem, 2.4vw, 2.24rem);
    font-weight: 700;
}

body.admin-page .admin-access-command .admin-list-command-copy p {
    color: rgba(51, 76, 88, 0.82);
    font-size: 0.88rem;
    line-height: 1.46;
}

body.admin-page .admin-access-backlink {
    color: rgba(51, 76, 88, 0.64);
    font-weight: 650;
}

body.admin-page .admin-access-command .admin-list-command-meta {
    gap: 14px;
}

body.admin-page .admin-access-command .admin-list-command-meta span {
    min-height: 0;
    padding-left: 0;
    border-left: 0;
    color: rgba(51, 76, 88, 0.62);
    font-size: 0.72rem;
    font-weight: 550;
}

body.admin-page .admin-access-command .admin-list-command-meta strong {
    color: var(--admin-text);
    font-size: 1.04rem;
    font-weight: 700;
}

body.admin-page .admin-access-command .admin-list-action,
body.admin-page .admin-access-command .admin-list-action.is-primary {
    border-color: rgba(26, 53, 65, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: rgba(0, 46, 68, 0.86);
    font-weight: 700;
}

body.admin-page .admin-access-status-strip .admin-status-strip-item {
    min-height: 44px;
    padding: 8px 12px;
    border-left-color: rgba(26, 53, 65, 0.08);
}

body.admin-page .admin-access-status-strip .admin-status-strip-item span {
    color: rgba(5, 32, 45, 0.82);
    font-size: 0.86rem;
    font-weight: 700;
}

body.admin-page .admin-access-status-strip .admin-status-strip-item strong {
    color: rgba(5, 32, 45, 0.86);
    font-size: 1rem;
    font-weight: 700;
}

body.admin-page .admin-access-status-strip .admin-status-strip-item small {
    color: rgba(51, 76, 88, 0.62);
    font-size: 0.72rem;
}

body.admin-page .admin-access-panel {
    gap: 0;
    padding: 0;
    overflow: hidden;
}

body.admin-page .admin-access-panel-head {
    padding: 14px 14px 10px;
    border-bottom: 1px solid rgba(26, 53, 65, 0.08);
}

body.admin-page .admin-access-panel-head h2 {
    font-size: 1.08rem;
    font-weight: 700;
}

body.admin-page .admin-access-count {
    min-height: 24px;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: rgba(51, 76, 88, 0.68);
    font-size: 0.78rem;
    font-weight: 650;
}

body.admin-page .admin-access-risk-note {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
    margin: 0;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(26, 53, 65, 0.08);
    color: rgba(51, 76, 88, 0.68);
    font-size: 0.82rem;
    line-height: 1.3;
}

body.admin-page .admin-access-risk-note span:first-child {
    color: rgba(5, 32, 45, 0.74);
    font-weight: 650;
}

body.admin-page .admin-access-risk-note strong {
    color: rgba(5, 32, 45, 0.86);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.84rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

body.admin-page .admin-access-list {
    gap: 0;
}

body.admin-page .admin-access-ledger-head,
body.admin-page .admin-access-row {
    display: grid;
    grid-template-columns:
        minmax(230px, 1.18fr)
        minmax(96px, 0.44fr)
        minmax(142px, 0.64fr)
        minmax(176px, 0.82fr)
        minmax(220px, 1fr)
        minmax(94px, auto);
    column-gap: 14px;
    align-items: center;
    min-width: 0;
}

body.admin-page .admin-access-ledger-head {
    min-height: 34px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(26, 53, 65, 0.08);
    color: rgba(51, 76, 88, 0.56);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0;
}

body.admin-page .admin-access-row {
    gap: 0 14px;
    padding: 11px 14px;
    border: 0;
    border-radius: 0;
    border-top: 1px solid rgba(26, 53, 65, 0.07);
    background: transparent;
    box-shadow: none;
}

body.admin-page .admin-access-row:first-of-type {
    border-top: 0;
}

body.admin-page .admin-access-row.is-suspended {
    border-color: rgba(26, 53, 65, 0.07);
    background: rgba(252, 250, 248, 0.58);
}

body.admin-page .admin-access-row:hover {
    background: rgba(248, 251, 252, 0.72);
}

body.admin-page .admin-access-identity {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
}

body.admin-page .admin-access-avatar {
    width: 30px;
    height: 30px;
    border-color: rgba(26, 53, 65, 0.1);
    border-radius: 50%;
    background: rgba(248, 250, 250, 0.84);
    color: rgba(5, 32, 45, 0.72);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.78rem;
    font-weight: 700;
}

body.admin-page .admin-access-identity > div {
    gap: 3px;
}

body.admin-page .admin-access-identity strong {
    color: rgba(5, 32, 45, 0.92);
    font-size: 0.94rem;
    font-weight: 700;
}

body.admin-page .admin-access-email {
    color: rgba(51, 76, 88, 0.7);
    font-size: 0.8rem;
    font-weight: 550;
}

body.admin-page .admin-access-quiet-flag {
    display: inline-flex;
    width: fit-content;
    color: rgba(129, 84, 31, 0.82);
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.2;
}

body.admin-page .admin-access-status-cell,
body.admin-page .admin-access-role-cell,
body.admin-page .admin-access-activity-cell {
    min-width: 0;
}

body.admin-page .admin-access-status-cell {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    color: rgba(5, 32, 45, 0.82);
    font-size: 0.84rem;
    font-weight: 650;
}

body.admin-page .admin-access-state-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: rgba(80, 94, 102, 0.46);
}

body.admin-page .admin-access-state-dot.is-active {
    background: rgba(31, 129, 92, 0.78);
}

body.admin-page .admin-access-state-dot.is-invited {
    background: rgba(178, 118, 42, 0.8);
}

body.admin-page .admin-access-state-dot.is-suspended {
    background: rgba(168, 73, 70, 0.82);
}

body.admin-page .admin-access-role-cell,
body.admin-page .admin-access-activity-cell {
    display: grid;
    gap: 3px;
    align-content: center;
}

body.admin-page .admin-access-role-cell strong {
    color: rgba(5, 32, 45, 0.9);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.18;
}

body.admin-page .admin-access-role-cell small,
body.admin-page .admin-access-activity-cell small,
body.admin-page .admin-access-invite-line {
    color: rgba(51, 76, 88, 0.58);
    font-size: 0.72rem;
    font-weight: 550;
    line-height: 1.2;
}

body.admin-page .admin-access-activity-cell > span:first-child {
    color: rgba(5, 32, 45, 0.78);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    line-height: 1.2;
}

body.admin-page .admin-access-right {
    gap: 0;
}

body.admin-page .admin-access-summary {
    gap: 4px;
}

body.admin-page .admin-access-permission-tag,
body.admin-page .admin-access-permission-empty {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 21px;
    padding: 2px 6px;
    border: 1px solid rgba(26, 53, 65, 0.1);
    border-radius: 6px;
    background: rgba(250, 251, 251, 0.76);
    color: rgba(5, 32, 45, 0.72);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.1;
}

body.admin-page .admin-access-permission-tag.is-all {
    border-color: rgba(168, 73, 70, 0.14);
    background: rgba(253, 250, 249, 0.72);
    color: rgba(122, 58, 56, 0.86);
}

body.admin-page .admin-access-permission-empty {
    color: rgba(51, 76, 88, 0.54);
}

body.admin-page .admin-access-open-action.admin-list-action {
    justify-content: flex-end;
    min-width: 0;
    min-height: 32px;
    padding: 0;
    border-color: transparent;
    background: transparent;
    color: rgba(0, 62, 91, 0.78);
    font-size: 0.82rem;
    font-weight: 650;
}

body.admin-page .admin-access-open-action.admin-list-action .material-symbols-outlined {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
    font-size: 17px;
}

body.admin-page .admin-access-open-action.admin-list-action:hover,
body.admin-page .admin-access-open-action.admin-list-action:focus-visible {
    border-color: rgba(0, 84, 126, 0.1);
    background: rgba(0, 84, 126, 0.035);
    color: var(--admin-accent-dark);
    box-shadow: none;
}

html.admin-theme-dark body.admin-page .admin-access-command .admin-list-command-copy,
html.admin-theme-dark body.admin-page .admin-access-command .admin-list-command-actions,
html.admin-theme-dark body.admin-page .admin-access-status-strip,
html.admin-theme-dark body.admin-page .admin-access-panel {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(18, 29, 38, 0.72);
}

html.admin-theme-dark body.admin-page .admin-access-row,
html.admin-theme-dark body.admin-page .admin-access-ledger-head,
html.admin-theme-dark body.admin-page .admin-access-panel-head,
html.admin-theme-dark body.admin-page .admin-access-risk-note {
    border-color: rgba(255, 255, 255, 0.09);
}

html.admin-theme-dark body.admin-page .admin-access-row:hover {
    background: rgba(255, 255, 255, 0.035);
}

html.admin-theme-dark body.admin-page .admin-access-avatar,
html.admin-theme-dark body.admin-page .admin-access-permission-tag,
html.admin-theme-dark body.admin-page .admin-access-permission-empty {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
}

@media (min-width: 901px) and (max-width: 1180px) {
    body.admin-page .admin-access-ledger-head,
    body.admin-page .admin-access-row {
        grid-template-columns:
            minmax(214px, 1.08fr)
            minmax(86px, 0.42fr)
            minmax(128px, 0.6fr)
            minmax(150px, 0.76fr)
            minmax(170px, 0.9fr)
            minmax(84px, auto);
        column-gap: 10px;
    }

    body.admin-page .admin-access-row {
        padding-inline: 12px;
    }

    body.admin-page .admin-access-ledger-head {
        padding-inline: 12px;
    }

    body.admin-page .admin-access-open-action.admin-list-action span:not(.material-symbols-outlined) {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

@media (max-width: 900px) {
    body.admin-page .admin-access-ledger-head {
        display: none;
    }

    body.admin-page .admin-access-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 12px 14px;
    }

    body.admin-page .admin-access-status-cell,
    body.admin-page .admin-access-role-cell,
    body.admin-page .admin-access-activity-cell,
    body.admin-page .admin-access-right {
        padding-left: 40px;
    }

    body.admin-page .admin-access-open-action.admin-list-action {
        justify-content: flex-start;
        width: fit-content;
        margin-left: 40px;
    }
}

@media (max-width: 600px) {
    body.admin-page .admin-access-risk-note {
        display: grid;
        gap: 4px 6px;
    }

    body.admin-page .admin-access-status-cell,
    body.admin-page .admin-access-role-cell,
    body.admin-page .admin-access-activity-cell,
    body.admin-page .admin-access-right {
        padding-left: 0;
    }

    body.admin-page .admin-access-open-action.admin-list-action {
        margin-left: 0;
    }
}

/* Admin audit Scandinavian ledger: quiet filters and low-noise event rows. */
body.admin-page .admin-audit-command .admin-list-command-copy,
body.admin-page .admin-audit-command .admin-list-command-actions,
body.admin-page .admin-audit-status-strip,
body.admin-page .admin-audit-workspace.admin-list-workspace {
    border-color: rgba(26, 53, 65, 0.1);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: none;
}

body.admin-page .admin-audit-command .admin-list-command-copy {
    padding: 13px 16px;
}

body.admin-page .admin-audit-command .admin-list-command-copy h1 {
    font-size: clamp(1.72rem, 2.4vw, 2.24rem);
    font-weight: 700;
}

body.admin-page .admin-audit-command .admin-list-command-copy p {
    max-width: 66ch;
    color: rgba(51, 76, 88, 0.82);
    font-size: 0.88rem;
    line-height: 1.46;
}

body.admin-page .admin-audit-command .admin-list-command-meta {
    gap: 14px;
}

body.admin-page .admin-audit-command .admin-list-command-meta span {
    min-height: 0;
    padding-left: 0;
    border-left: 0;
    color: rgba(51, 76, 88, 0.62);
    font-size: 0.72rem;
    font-weight: 550;
}

body.admin-page .admin-audit-command .admin-list-command-meta strong {
    color: var(--admin-text);
    font-size: 1.04rem;
    font-weight: 700;
}

body.admin-page .admin-audit-command .admin-list-action,
body.admin-page .admin-audit-command .admin-list-action.is-primary {
    border-color: rgba(26, 53, 65, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: rgba(0, 46, 68, 0.86);
    font-weight: 700;
}

body.admin-page .admin-audit-status-strip .admin-status-strip-item {
    min-height: 44px;
    padding: 8px 12px;
    border-left-color: rgba(26, 53, 65, 0.08);
}

body.admin-page .admin-audit-status-strip .admin-status-strip-item span {
    color: rgba(5, 32, 45, 0.82);
    font-size: 0.86rem;
    font-weight: 700;
}

body.admin-page .admin-audit-status-strip .admin-status-strip-item strong {
    color: rgba(5, 32, 45, 0.86);
    font-size: 1rem;
    font-weight: 700;
}

body.admin-page .admin-audit-status-strip .admin-status-strip-item small {
    color: rgba(51, 76, 88, 0.62);
    font-size: 0.72rem;
}

body.admin-page .admin-audit-filter-form {
    grid-template-columns: repeat(5, minmax(130px, 1fr)) auto;
}

body.admin-page .admin-audit-filter-form label > span {
    color: rgba(51, 76, 88, 0.64);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

body.admin-page .admin-audit-filter-form input {
    min-height: 36px;
    border-color: rgba(26, 53, 65, 0.12);
    background: rgba(248, 250, 250, 0.72);
}

body.admin-page .admin-audit-workspace.admin-list-workspace {
    gap: 0;
    padding: 0;
    overflow: hidden;
}

body.admin-page .admin-audit-workspace .admin-board-head {
    padding: 14px 14px 10px;
    border-bottom: 1px solid rgba(26, 53, 65, 0.08);
}

body.admin-page .admin-audit-workspace .admin-board-head h2 {
    font-size: 1.08rem;
    font-weight: 700;
}

body.admin-page .admin-audit-ledger-count {
    color: rgba(51, 76, 88, 0.68);
    font-size: 0.78rem;
    font-weight: 650;
    white-space: nowrap;
}

body.admin-page .admin-audit-ledger-note {
    margin: 0;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(26, 53, 65, 0.08);
    color: rgba(51, 76, 88, 0.68);
    font-size: 0.82rem;
    line-height: 1.35;
}

body.admin-page .admin-audit-list {
    gap: 0;
}

body.admin-page .admin-audit-ledger-head,
body.admin-page .admin-audit-row {
    display: grid;
    grid-template-columns:
        minmax(138px, 0.74fr)
        minmax(250px, 1.28fr)
        minmax(180px, 0.88fr)
        minmax(210px, 1fr)
        minmax(82px, auto);
    column-gap: 14px;
    align-items: center;
    min-width: 0;
}

body.admin-page .admin-audit-ledger-head {
    min-height: 34px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(26, 53, 65, 0.08);
    color: rgba(51, 76, 88, 0.56);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0;
}

body.admin-page .admin-audit-row.admin-list-row {
    gap: 0 14px;
    padding: 11px 14px;
    border: 0;
    border-top: 1px solid rgba(26, 53, 65, 0.07);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.admin-page .admin-audit-row.admin-list-row:first-of-type {
    border-top: 0;
}

body.admin-page .admin-audit-row.is-warning,
body.admin-page .admin-audit-row.is-danger,
body.admin-page .admin-audit-row.admin-list-row.is-warning,
body.admin-page .admin-audit-row.admin-list-row.is-danger {
    background: transparent;
}

body.admin-page .admin-audit-row:hover,
body.admin-page .admin-audit-row:focus-within,
body.admin-page .admin-audit-row.admin-list-row:hover,
body.admin-page .admin-audit-row.admin-list-row:focus-within {
    border-color: rgba(26, 53, 65, 0.07);
    background: rgba(248, 251, 252, 0.72);
    box-shadow: none;
    transform: none;
}

body.admin-page .admin-audit-time-cell,
body.admin-page .admin-audit-action-cell,
body.admin-page .admin-audit-actor-cell,
body.admin-page .admin-audit-target-cell,
body.admin-page .admin-audit-response-cell {
    min-width: 0;
}

body.admin-page .admin-audit-time-cell,
body.admin-page .admin-audit-action-cell,
body.admin-page .admin-audit-target-cell {
    display: grid;
    gap: 3px;
    align-content: center;
}

body.admin-page .admin-audit-time-cell strong,
body.admin-page .admin-audit-activity-cell strong {
    color: rgba(5, 32, 45, 0.82);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    line-height: 1.2;
}

body.admin-page .admin-audit-method {
    display: inline-flex;
    width: fit-content;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(51, 76, 88, 0.58);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.2;
}

body.admin-page .admin-audit-row code {
    color: rgba(5, 32, 45, 0.9);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

body.admin-page .admin-audit-route {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    color: rgba(51, 76, 88, 0.62);
    font-size: 0.76rem;
    line-height: 1.2;
}

body.admin-page .admin-audit-actor-cell,
body.admin-page .admin-audit-target-cell > span {
    color: rgba(5, 32, 45, 0.78);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

body.admin-page .admin-audit-target-cell small {
    color: rgba(51, 76, 88, 0.58);
    font-size: 0.72rem;
    font-weight: 550;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

body.admin-page .admin-audit-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(5, 32, 45, 0.78);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.2;
}

body.admin-page .admin-audit-status i {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: rgba(31, 129, 92, 0.78);
}

body.admin-page .admin-audit-status.is-danger {
    background: transparent;
    color: rgba(122, 58, 56, 0.86);
}

body.admin-page .admin-audit-status.is-danger i {
    background: rgba(168, 73, 70, 0.82);
}

body.admin-page .admin-audit-payload {
    grid-column: 1 / -1;
    margin: 7px 0 0;
    padding-top: 8px;
    border-top: 1px solid rgba(26, 53, 65, 0.06);
}

body.admin-page .admin-audit-payload summary {
    width: fit-content;
    color: rgba(51, 76, 88, 0.62);
    font-size: 0.74rem;
    font-weight: 650;
}

body.admin-page .admin-audit-payload pre {
    margin-top: 8px;
    border-color: rgba(26, 53, 65, 0.08);
    background: rgba(248, 250, 250, 0.72);
    color: rgba(5, 32, 45, 0.8);
}

html.admin-theme-dark body.admin-page .admin-audit-command .admin-list-command-copy,
html.admin-theme-dark body.admin-page .admin-audit-command .admin-list-command-actions,
html.admin-theme-dark body.admin-page .admin-audit-status-strip,
html.admin-theme-dark body.admin-page .admin-audit-workspace.admin-list-workspace {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(18, 29, 38, 0.72);
}

html.admin-theme-dark body.admin-page .admin-audit-workspace .admin-board-head,
html.admin-theme-dark body.admin-page .admin-audit-ledger-note,
html.admin-theme-dark body.admin-page .admin-audit-ledger-head,
html.admin-theme-dark body.admin-page .admin-audit-row.admin-list-row,
html.admin-theme-dark body.admin-page .admin-audit-payload {
    border-color: rgba(255, 255, 255, 0.09);
}

html.admin-theme-dark body.admin-page .admin-audit-row:hover,
html.admin-theme-dark body.admin-page .admin-audit-row.admin-list-row:hover {
    background: rgba(255, 255, 255, 0.035);
}

@media (min-width: 901px) and (max-width: 1180px) {
    body.admin-page .admin-audit-filter-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.admin-page .admin-audit-filter-form .admin-filter-actions {
        justify-content: flex-start;
    }

    body.admin-page .admin-audit-ledger-head,
    body.admin-page .admin-audit-row {
        grid-template-columns:
            minmax(120px, 0.68fr)
            minmax(210px, 1.18fr)
            minmax(150px, 0.82fr)
            minmax(170px, 0.92fr)
            minmax(70px, auto);
        column-gap: 10px;
    }

    body.admin-page .admin-audit-ledger-head,
    body.admin-page .admin-audit-row.admin-list-row {
        padding-inline: 12px;
    }
}

@media (max-width: 900px) {
    body.admin-page .admin-audit-filter-form {
        grid-template-columns: 1fr;
    }

    body.admin-page .admin-audit-filter-form .admin-filter-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    body.admin-page .admin-audit-ledger-head {
        display: none;
    }

    body.admin-page .admin-audit-row.admin-list-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
        padding: 12px 14px;
    }

    body.admin-page .admin-audit-response-cell {
        order: -1;
    }
}

/* Public layout audit layer: shared reading widths and calmer heading rhythm. */
body.public-page {
    --public-readable-width: 980px;
    --public-wide-width: 1180px;
    --public-stage-width: 1224px;
    --public-page-gutter: 48px;
}

body.public-page .public-main,
body.public-page .public-main.is-wide {
    box-sizing: border-box;
}

body.public-page .public-main.is-wide {
    max-width: 1280px;
}

body.public-page .public-main.is-wide > :is(
    .landing-hero,
    .software-hero,
    .legacy-lessons-page,
    .legacy-entry
) {
    width: min(100%, var(--public-stage-width));
    margin-right: auto;
    margin-left: auto;
}

body.public-page :is(
    .doc-entry,
    .catalog-page,
    .reference-home
) {
    width: min(100%, var(--public-readable-width));
}

body.public-page :is(
    .doc-title,
    .section-heading h1,
    .section-heading h2,
    .catalog-subhead h2,
    .files-hero h1,
    .file-detail-hero h1,
    .software-hero h1,
    .legacy-hero h1
) {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

body.public-page :is(
    .doc-breadcrumbs,
    .learn-entry-meta,
    .software-trust-strip,
    .legacy-card-meta,
    .legacy-hero-actions,
    .files-hero-actions,
    .file-detail-actions
) {
    min-width: 0;
}

body.public-page .doc-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

body.public-page :is(.doc-chip, .legacy-meta-link, .learn-entry-meta span) {
    max-width: 100%;
    white-space: nowrap;
}

body.public-page :is(.landing-kicker, .section-heading p) {
    max-width: 100%;
    line-height: 1.35;
    overflow-wrap: normal;
}

body.public-page .doc-title {
    max-width: min(100%, 20ch);
    font-size: 3.75rem;
    line-height: 1.06;
}

body.public-page .learn-entry .doc-title {
    max-width: min(100%, 22ch);
    font-size: 3rem;
    line-height: 1.12;
}

body.public-page .legacy-entry .doc-title {
    max-width: min(100%, 22ch);
    font-size: 3.35rem;
    line-height: 1.06;
}

body.public-page--home .landing-hero {
    min-height: min(720px, calc(100svh - 140px));
}

body.public-page--home .landing-hero h1 {
    max-width: 12ch;
    font-size: 5.45rem;
    line-height: 1;
}

body.public-page--legacy-lessons .legacy-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.58fr);
}

body.public-page--legacy-lessons .legacy-hero h1 {
    max-width: 20ch;
    font-size: 3.9rem;
    line-height: 1.02;
}

body.public-page--software .software-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
    min-height: min(720px, calc(100svh - 132px));
}

body.public-page--software .software-hero h1 {
    max-width: 13ch;
    font-size: 5.15rem;
    line-height: 1;
}

body.public-page--software .software-hero-copy p:last-of-type,
body.public-page--legacy-lessons .legacy-hero-copy p:last-of-type,
body.public-page--files .files-hero p,
body.public-page .file-detail-hero p {
    font-size: 1.06rem;
}

body.public-page .software-release-version {
    font-size: 4.6rem;
}

body.public-page--files .files-hero {
    width: min(100%, var(--public-wide-width));
}

body.public-page--files .files-hero h1 {
    max-width: 680px;
    font-size: 3.1rem;
    line-height: 1.08;
}

body.public-page .file-detail-hero h1,
body.public-page .file-detail-title,
body.public-page .file-detail-title.is-long-title,
body.public-page .file-detail-title.is-very-long-title,
body.public-page .file-detail-title.has-technical-title,
body.public-page .file-detail-title.is-long-title.has-technical-title,
body.public-page .file-detail-title.is-very-long-title.has-technical-title {
    font-size: 3.4rem;
    line-height: 1.06;
    letter-spacing: 0;
}

body.public-page--wiki .public-main,
body.public-page--wiki-entry .public-main {
    padding-top: 30px;
}

body.public-page--wiki .wiki-old .width1366,
body.public-page--wiki-entry .wiki-old .width1366 {
    width: min(calc(100% - var(--public-page-gutter) - var(--public-page-gutter)), var(--public-wide-width));
    max-width: var(--public-wide-width);
}

body.public-page .wiki-old h1 {
    margin: 0;
    color: var(--public-teal);
    font-family: "Space Grotesk", "PT Sans", "Inter", Arial, sans-serif;
    font-size: 2.75rem;
    line-height: 1.08;
    letter-spacing: 0;
    text-wrap: balance;
    overflow-wrap: break-word;
    word-break: normal;
}

body.public-page .wiki-old .LinkBar {
    display: block;
    margin: 14px 0 0;
    color: var(--public-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    overflow-wrap: break-word;
}

body.public-page .wiki-old .boxMain-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

body.public-page .wiki-old .pageWiki {
    grid-template-columns: minmax(0, 860px) minmax(240px, 1fr);
    gap: 34px;
    margin-top: 34px;
}

body.public-page .wiki-old #content {
    min-width: 0;
    margin: 0;
}

body.public-page .wiki-old .redactor-styles {
    color: var(--public-text);
    font-size: 1rem;
    line-height: 1.68;
    text-align: left;
    overflow-wrap: break-word;
}

body.public-page .wiki-old .redactor-styles p {
    text-indent: 0;
}

body.public-page .wiki-old #prev_wiki {
    display: grid;
    grid-template-columns: minmax(160px, 200px) minmax(0, 1fr);
    gap: 14px;
    overflow: visible;
}

body.public-page .wiki-old #prev_wiki .left,
body.public-page .wiki-old #prev_wiki .right {
    float: none;
    width: auto;
    max-width: none;
    margin: 0;
}

body.public-page .wiki-old .nav_right {
    min-width: 0;
    margin-top: 0;
    padding-left: 18px;
}

@media (min-width: 761px) {
    body.public-page :is(
        .software-trust-strip a,
        .software-trust-strip span,
        .legacy-meta-link,
        .learn-entry-meta span
    ) {
        white-space: nowrap;
    }
}

@media (min-width: 761px) and (max-width: 1080px) {
    body.public-page {
        --public-page-gutter: 28px;
    }

    body.public-page .doc-title {
        font-size: 3.15rem;
    }

    body.public-page .learn-entry .doc-title {
        font-size: 2.55rem;
    }

    body.public-page .legacy-entry .doc-title {
        font-size: 3rem;
    }

    body.public-page--home .landing-hero h1 {
        max-width: 12ch;
        font-size: 4.45rem;
    }

    body.public-page--legacy-lessons .legacy-hero {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 0.58fr);
        padding: 36px;
    }

    body.public-page--legacy-lessons .legacy-hero h1 {
        font-size: 3.55rem;
    }

    body.public-page--software .software-hero {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
        min-height: auto;
    }

    body.public-page--software .software-hero h1 {
        font-size: 4.1rem;
    }

    body.public-page--files .files-hero h1 {
        font-size: 2.75rem;
    }

    body.public-page .file-detail-hero h1,
    body.public-page .file-detail-title,
    body.public-page .file-detail-title.is-long-title,
    body.public-page .file-detail-title.is-very-long-title,
    body.public-page .file-detail-title.has-technical-title,
    body.public-page .file-detail-title.is-long-title.has-technical-title,
    body.public-page .file-detail-title.is-very-long-title.has-technical-title {
        font-size: 2.95rem;
    }
}

@media (max-width: 760px) {
    body.public-page {
        --public-page-gutter: 18px;
    }

    body.public-page .doc-title,
    body.public-page .section-heading h1,
    body.public-page .section-heading h2,
    body.public-page .catalog-subhead h2 {
        max-width: 100%;
        font-size: 2.35rem;
        line-height: 1.1;
        overflow-wrap: break-word;
    }

    body.public-page .learn-entry .doc-title,
    body.public-page .legacy-entry .doc-title {
        max-width: 100%;
        font-size: 2.35rem;
    }

    body.public-page--home .landing-hero {
        min-height: auto;
    }

    body.public-page--home .landing-hero h1 {
        max-width: 100%;
        font-size: 3.25rem;
        line-height: 1.05;
    }

    body.public-page--legacy-lessons .legacy-hero {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    body.public-page--software .software-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: auto;
    }

    body.public-page--software .software-hero-visual {
        min-height: 170px;
        margin-top: 14px;
    }

    body.public-page--software .software-hero-scene {
        width: min(100%, 410px);
    }

    body.public-page--software .software-trust-strip {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.public-page--software .software-trust-strip a,
    body.public-page--software .software-trust-strip span {
        min-height: 38px;
        width: 100%;
    }

    body.public-page--software .software-setup-note {
        gap: 8px;
    }

    body.public-page--software .software-setup-note span {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        min-height: 52px;
        padding: 12px;
    }

    body.public-page--software .software-release-card {
        gap: 14px;
        padding: 18px;
    }

    body.public-page--software .software-release-card-head {
        gap: 8px;
    }

    body.public-page--software .software-release-version {
        font-size: 2.75rem;
        line-height: 0.98;
    }

    body.public-page--software .software-release-card-head p,
    body.public-page--software .software-release-flow-item div span {
        font-size: 0.92rem;
        line-height: 1.42;
    }

    body.public-page--software .software-release-flow {
        gap: 8px;
    }

    body.public-page--software .software-release-flow-item {
        gap: 10px;
        padding: 10px;
        border-radius: 14px;
    }

    body.public-page--software .software-release-flow-item > .material-symbols-outlined {
        width: 32px;
        height: 32px;
        border-radius: 12px;
        font-size: 1.18rem;
    }

    body.public-page--software .software-release-meta {
        gap: 8px;
    }

    body.public-page--software .software-release-meta div {
        padding-bottom: 8px;
    }

    body.public-page--legacy-lessons .legacy-hero h1,
    body.public-page--software .software-hero h1 {
        max-width: 100%;
        font-size: 3rem;
        line-height: 1.04;
    }

    body.public-page--files .files-hero h1,
    body.public-page .file-detail-hero h1,
    body.public-page .file-detail-title,
    body.public-page .file-detail-title.is-long-title,
    body.public-page .file-detail-title.is-very-long-title,
    body.public-page .file-detail-title.has-technical-title,
    body.public-page .file-detail-title.is-long-title.has-technical-title,
    body.public-page .file-detail-title.is-very-long-title.has-technical-title {
        max-width: 100%;
        font-size: 2.15rem;
        line-height: 1.12;
    }

    body.public-page--wiki .wiki-old .width1366,
    body.public-page--wiki-entry .wiki-old .width1366 {
        width: min(calc(100% - 32px), var(--public-wide-width));
    }

    body.public-page .wiki-old h1 {
        font-size: 2rem;
        line-height: 1.12;
    }

    body.public-page .wiki-old .boxMain-2,
    body.public-page .wiki-old .pageWiki,
    body.public-page .wiki-old #prev_wiki {
        grid-template-columns: 1fr;
    }

    body.public-page .wiki-old .pageWiki {
        gap: 26px;
        margin-top: 28px;
    }

    body.public-page .wiki-old .nav_right {
        margin: 0;
        padding-top: 20px;
        padding-left: 0;
        border-top: 2px solid #1e789b;
        border-left: 0;
    }
}

@media (max-width: 430px) {
    body.public-page--home .landing-hero h1,
    body.public-page--legacy-lessons .legacy-hero h1,
    body.public-page--software .software-hero h1 {
        font-size: 2.8rem;
    }

    body.public-page .doc-title,
    body.public-page .learn-entry .doc-title,
    body.public-page .legacy-entry .doc-title {
        font-size: 2.15rem;
    }
}

/* The Wiki builder uses a dense 1366px knowledge map on its root page. */
body.public-page.public-page--wiki .public-main.is-wide {
    max-width: none;
}

body.public-page--wiki .wiki-old-home.wiki-home-index .width1366 {
    width: min(100%, 1366px);
    max-width: 1366px;
}

body.public-page--wiki .wiki-old-home.wiki-home-index .boxMain-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

@media (max-width: 1260px) {
    body.public-page--wiki .wiki-old-home.wiki-home-index .boxMain-2 {
        grid-template-columns: 1fr;
    }
}

/* Compact editorial homepage. */
body.public-page--home .public-main.is-wide {
    max-width: 1320px;
    padding-top: 32px;
}

.site-home {
    width: min(100%, var(--public-stage-width, 1224px));
    margin: 0 auto;
}

.site-home-kicker {
    margin: 0 0 8px;
    color: var(--public-teal);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}

.site-home-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 330px;
    overflow: hidden;
    padding: 28px 42px;
    border-block: 1px solid var(--public-border);
    background: #eef7f8;
}

.site-home-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, #f9fcfd 0%, rgba(249, 252, 253, 0.97) 42%, rgba(249, 252, 253, 0.72) 60%, rgba(249, 252, 253, 0.08) 100%);
}

.site-home-hero-media {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.site-home-hero-copy {
    width: min(100%, 640px);
}

.site-home-hero h1,
.site-home-section-head h2,
.site-home-trema h2,
.site-home-wiki h2 {
    margin: 0;
    font-family: "Space Grotesk", "Inter", sans-serif;
    letter-spacing: 0;
    text-wrap: balance;
}

.site-home-hero h1 {
    max-width: 14ch;
    color: var(--public-teal-dark);
    font-size: 3.15rem;
    line-height: 1;
}

.site-home-hero-lead {
    max-width: 58ch;
    margin: 16px 0 0;
    color: var(--public-muted);
    font-size: 1rem;
    line-height: 1.58;
}

.site-home-actions,
.site-home-trema-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.site-home-button,
.site-home-trema-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid rgba(0, 84, 126, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--public-teal-dark);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-home-button .material-symbols-outlined,
.site-home-trema-button .material-symbols-outlined {
    font-size: 1.18rem;
}

.site-home-button.is-primary {
    border-color: var(--public-teal);
    background: var(--public-teal);
    color: #fff;
}

.site-home-button:hover,
.site-home-button:focus-visible {
    border-color: var(--public-teal);
    background: #fff;
    color: var(--public-teal-dark);
    outline: none;
    transform: translateY(-1px);
}

.site-home-button.is-primary:hover,
.site-home-button.is-primary:focus-visible {
    background: var(--public-teal-strong);
    color: #fff;
}

.site-home-hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 610px);
    margin-top: 18px;
    border-top: 1px solid rgba(0, 84, 126, 0.16);
}

.site-home-hero-facts a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 7px;
    min-width: 0;
    padding: 10px 12px 0 0;
    color: var(--public-muted);
    font-size: 0.76rem;
    line-height: 1.25;
    text-decoration: none;
}

.site-home-hero-facts a + a {
    padding-left: 13px;
    border-left: 1px solid rgba(0, 84, 126, 0.14);
}

.site-home-hero-facts strong {
    color: var(--public-text);
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 1.12rem;
    line-height: 1;
}

.site-home-hero-facts a:hover span,
.site-home-hero-facts a:focus-visible span {
    color: var(--public-teal);
}

.site-home-section {
    margin-top: 36px;
}

.site-home-section-head,
.site-home-wiki-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.site-home-section-head h2,
.site-home-wiki h2 {
    color: var(--public-text);
    font-size: 1.85rem;
    line-height: 1.08;
}

.site-home-section-head p:last-child {
    max-width: 62ch;
    margin: 7px 0 0;
    color: var(--public-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.site-home-section-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    color: var(--public-teal);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.site-home-section-link .material-symbols-outlined {
    font-size: 1.15rem;
    transition: transform 0.18s ease;
}

.site-home-section-link:hover .material-symbols-outlined,
.site-home-section-link:focus-visible .material-symbols-outlined {
    transform: translateX(3px);
}

.site-home-lesson-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.site-home-lesson-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--public-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--public-text);
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.site-home-lesson-card:hover,
.site-home-lesson-card:focus-visible {
    border-color: rgba(0, 84, 126, 0.34);
    box-shadow: 0 16px 34px -28px rgba(0, 43, 66, 0.55);
    outline: none;
    transform: translateY(-2px);
}

.site-home-lesson-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid var(--public-border);
    background: #eaf5f6;
}

.site-home-lesson-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.site-home-lesson-card:hover .site-home-lesson-media img,
.site-home-lesson-card:focus-visible .site-home-lesson-media img {
    transform: scale(1.025);
}

.site-home-lesson-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 166px;
    padding: 13px 14px 12px;
}

.site-home-lesson-label {
    color: var(--public-teal);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
}

.site-home-lesson-body strong {
    display: -webkit-box;
    margin-top: 7px;
    overflow: hidden;
    color: var(--public-text);
    font-size: 0.98rem;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.site-home-lesson-lead {
    display: -webkit-box;
    margin-top: 7px;
    overflow: hidden;
    color: var(--public-muted);
    font-size: 0.79rem;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.site-home-lesson-open {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 11px;
    color: var(--public-teal);
    font-size: 0.78rem;
    font-weight: 700;
}

.site-home-lesson-open .material-symbols-outlined {
    font-size: 1rem;
}

.site-home-empty {
    margin: 0;
    padding: 24px 0;
    border-block: 1px solid var(--public-border);
    color: var(--public-muted);
}

.site-home-trema {
    display: grid;
    grid-template-columns: minmax(320px, 0.88fr) minmax(420px, 1.12fr);
    gap: 34px;
    align-items: center;
    margin-top: 48px;
    padding: 34px 36px;
    border-block: 1px solid #343b44;
    border-top-width: 3px;
    border-top-color: #ff7100;
    background: #151a21;
    color: #f7f8fa;
}

.site-home-trema-copy {
    min-width: 0;
}

.site-home-trema-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-family: "Space Grotesk", "Inter", sans-serif;
    letter-spacing: 0;
}

.site-home-trema-brand > span:last-child {
    margin-left: 3px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    color: #ff9b4b;
    font-family: "Inter", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
}

.site-home-trema-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #fff;
    color: #161a20;
    font-size: 1.1rem;
    font-weight: 800;
}

.site-home-trema-mark::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: #ff7100;
}

.site-home-trema h2 {
    max-width: 16ch;
    margin-top: 16px;
    color: #fff;
    font-size: 2.25rem;
    line-height: 1.04;
}

.site-home-trema-copy > p {
    max-width: 56ch;
    margin: 14px 0 0;
    color: #bac3cc;
    font-size: 0.91rem;
    line-height: 1.55;
}

.site-home-trema-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 14px;
    margin: 19px 0 0;
    padding: 0;
    list-style: none;
}

.site-home-trema-features li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #e7ebef;
    font-size: 0.79rem;
    line-height: 1.3;
}

.site-home-trema-features .material-symbols-outlined {
    color: #ff8a2a;
    font-size: 1.05rem;
}

.site-home-trema-button {
    border-color: rgba(255, 255, 255, 0.24);
    background: transparent;
    color: #fff;
}

.site-home-trema-button.is-primary {
    border-color: #ff7100;
    background: #ff7100;
    color: #161a20;
}

.site-home-trema-button:hover,
.site-home-trema-button:focus-visible {
    border-color: #ff9b4b;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
    transform: translateY(-1px);
}

.site-home-trema-button.is-primary:hover,
.site-home-trema-button.is-primary:focus-visible {
    background: #ff8a2a;
    color: #11161c;
}

.site-home-trema-copy small {
    display: block;
    margin-top: 11px;
    color: #929da8;
    font-size: 0.72rem;
    line-height: 1.35;
}

.site-home-trema-visual {
    min-width: 0;
    margin: 0;
}

.site-home-trema-visual img {
    display: block;
    width: 100%;
    aspect-ratio: 112 / 50;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: #fff;
}

.site-home-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 34px;
    margin-top: 48px;
    padding-top: 34px;
    border-top: 1px solid var(--public-border);
}

.site-home-directory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.site-home-directory-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 76px;
    padding: 11px 12px;
    border: 1px solid var(--public-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--public-text);
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.site-home-directory-item:hover,
.site-home-directory-item:focus-visible {
    border-color: rgba(0, 84, 126, 0.34);
    background: #fff;
    outline: none;
    transform: translateY(-1px);
}

.site-home-directory-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--public-surface-strong);
    color: var(--public-teal);
    font-size: 1.2rem;
}

.site-home-directory-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.site-home-directory-copy strong {
    color: var(--public-text);
    font-size: 0.88rem;
    line-height: 1.25;
}

.site-home-directory-copy > span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--public-muted);
    font-size: 0.72rem;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.site-home-directory-meta {
    color: var(--public-muted);
    font-size: 0.68rem;
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
}

.site-home-directory-arrow {
    color: var(--public-teal);
    font-size: 1rem;
}

.site-home-wiki {
    min-width: 0;
    padding-left: 28px;
    border-left: 1px solid var(--public-border);
}

.site-home-wiki-head {
    align-items: center;
    margin-bottom: 9px;
}

.site-home-wiki h2 {
    font-size: 1.55rem;
}

.site-home-wiki-head > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--public-border);
    border-radius: 8px;
    color: var(--public-teal);
    text-decoration: none;
}

.site-home-wiki-head > a:hover,
.site-home-wiki-head > a:focus-visible {
    border-color: var(--public-teal);
    background: var(--public-surface-strong);
    outline: none;
}

.site-home-wiki-list {
    display: grid;
}

.site-home-wiki-list a {
    display: grid;
    gap: 4px;
    padding: 13px 0;
    border-bottom: 1px solid var(--public-border);
    text-decoration: none;
}

.site-home-wiki-list a > span {
    color: var(--public-teal);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
}

.site-home-wiki-list strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--public-text);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.site-home-wiki-list a:hover strong,
.site-home-wiki-list a:focus-visible strong {
    color: var(--public-teal);
}

html.public-theme-dark body.public-page--home .site-home-hero {
    background: #17252b;
}

html.public-theme-dark body.public-page--home .site-home-hero::after {
    background: linear-gradient(90deg, #101a21 0%, rgba(16, 26, 33, 0.97) 44%, rgba(16, 26, 33, 0.7) 68%, rgba(16, 26, 33, 0.18) 100%);
}

html.public-theme-dark body.public-page--home .site-home-hero-media {
    opacity: 0.58;
}

html.public-theme-dark body.public-page--home .site-home-hero h1 {
    color: #ecf7fa;
}

html.public-theme-dark body.public-page--home .site-home-button {
    border-color: rgba(160, 205, 219, 0.28);
    background: rgba(20, 35, 44, 0.9);
    color: #d9edf3;
}

html.public-theme-dark body.public-page--home .site-home-button.is-primary {
    border-color: #1e789b;
    background: #1e789b;
    color: #fff;
}

html.public-theme-dark body.public-page--home :is(.site-home-lesson-card, .site-home-directory-item) {
    border-color: rgba(160, 205, 219, 0.18);
    background: rgba(16, 28, 36, 0.88);
}

html.public-theme-dark body.public-page--home :is(.site-home-lesson-card, .site-home-directory-item):hover,
html.public-theme-dark body.public-page--home :is(.site-home-lesson-card, .site-home-directory-item):focus-visible {
    border-color: rgba(160, 205, 219, 0.38);
    background: #14242d;
}

@media (max-width: 1080px) {
    .site-home-hero {
        min-height: 320px;
        padding: 26px 34px;
    }

    .site-home-hero h1 {
        font-size: 3rem;
    }

    .site-home-trema {
        grid-template-columns: minmax(300px, 0.92fr) minmax(380px, 1.08fr);
        gap: 24px;
        padding: 30px;
    }

    .site-home-trema h2 {
        font-size: 2rem;
    }

    .site-home-overview {
        grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
        gap: 24px;
    }

    .site-home-directory-item {
        grid-template-columns: 36px minmax(0, 1fr) 18px;
    }

    .site-home-directory-meta {
        grid-column: 2;
        text-align: left;
    }

    .site-home-directory-arrow {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}

@media (max-width: 900px) {
    .site-home-hero::after {
        background: linear-gradient(90deg, #f9fcfd 0%, rgba(249, 252, 253, 0.96) 58%, rgba(249, 252, 253, 0.45) 100%);
    }

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

    .site-home-trema,
    .site-home-overview {
        grid-template-columns: 1fr;
    }

    .site-home-trema {
        gap: 28px;
    }

    .site-home-trema h2 {
        max-width: 22ch;
    }

    .site-home-trema-visual {
        width: min(100%, 720px);
    }

    .site-home-wiki {
        padding-top: 28px;
        padding-left: 0;
        border-top: 1px solid var(--public-border);
        border-left: 0;
    }

    .site-home-wiki-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 20px;
    }
}

@media (max-width: 600px) {
    body.public-page--home .public-main.is-wide {
        padding-top: 18px;
    }

    .site-home-hero {
        align-items: flex-end;
        min-height: 440px;
        padding: 28px 20px;
    }

    .site-home-hero::after {
        background: linear-gradient(180deg, rgba(249, 252, 253, 0.2) 0%, rgba(249, 252, 253, 0.9) 42%, #f9fcfd 68%, #f9fcfd 100%);
    }

    .site-home-hero-media {
        height: 54%;
        object-position: center;
    }

    .site-home-hero h1 {
        max-width: 100%;
        font-size: 2.5rem;
        line-height: 1.04;
    }

    .site-home-hero-lead {
        font-size: 0.93rem;
        line-height: 1.5;
    }

    .site-home-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .site-home-button {
        width: 100%;
    }

    .site-home-hero-facts {
        margin-top: 20px;
    }

    .site-home-hero-facts a {
        grid-template-columns: 1fr;
        gap: 4px;
        padding-right: 7px;
    }

    .site-home-hero-facts a + a {
        padding-left: 9px;
    }

    .site-home-hero-facts span {
        font-size: 0.67rem;
    }

    .site-home-section,
    .site-home-trema,
    .site-home-overview {
        margin-top: 36px;
    }

    .site-home-section-head {
        align-items: flex-start;
        gap: 12px;
    }

    .site-home-section-head h2,
    .site-home-wiki h2 {
        font-size: 1.6rem;
    }

    .site-home-section-head p:last-child {
        font-size: 0.82rem;
    }

    .site-home-section-link > span:first-child {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .site-home-section-link {
        justify-content: center;
        width: 38px;
        height: 38px;
        min-height: 38px;
        border: 1px solid var(--public-border);
        border-radius: 8px;
    }

    .site-home-lesson-grid,
    .site-home-directory-grid,
    .site-home-wiki-list {
        grid-template-columns: 1fr;
    }

    .site-home-lesson-body {
        min-height: 154px;
    }

    .site-home-trema {
        padding: 24px 20px;
    }

    .site-home-trema h2 {
        max-width: 100%;
        font-size: 1.9rem;
    }

    .site-home-trema-features {
        grid-template-columns: 1fr;
    }

    .site-home-trema-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .site-home-trema-button {
        width: 100%;
    }

    .site-home-overview {
        padding-top: 28px;
    }

    .site-home-directory-item {
        min-height: 78px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-home-button,
    .site-home-trema-button,
    .site-home-lesson-card,
    .site-home-lesson-media img,
    .site-home-directory-item,
    .site-home-section-link .material-symbols-outlined {
        transition: none;
    }
}
