:root {
    --admin-paper: #f6f6f1;
    --admin-panel: #fffefa;
    --admin-ink: #202321;
    --admin-muted: #73766f;
    --admin-line: #d9d9d0;
    --admin-green: #628873;
    --admin-red: #a45d58;
    --admin-sidebar: #26302b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--admin-paper);
    color: var(--admin-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

.admin-body {
    min-height: 100vh;
}

.admin-layout {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 240px minmax(0, 1fr);
}

.admin-sidebar {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    padding: 30px 24px;
    background: var(--admin-sidebar);
    color: #dce9df;
}

.brand-mark {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    padding: 7px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.site-brand-logo-wrap {
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.site-brand-logo-wrap::after {
    position: absolute;
    inset: -35% auto -35% -80%;
    width: 45%;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.72) 48%, transparent 100%);
    content: "";
    pointer-events: none;
    transform: skewX(-20deg);
    animation: admin-logo-shine 4.8s ease-in-out infinite;
}

.site-brand-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

@keyframes admin-logo-shine {
    0%,
    62%,
    100% {
        transform: translateX(0) skewX(-20deg);
    }

    78% {
        transform: translateX(360%) skewX(-20deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-brand-logo-wrap::after {
        animation: none;
    }
}

.brand-mark span {
    display: block;
    width: 4px;
    background: currentColor;
}

.brand-mark span:nth-child(1) {
    height: 10px;
}

.brand-mark span:nth-child(2) {
    height: 17px;
}

.brand-mark span:nth-child(3) {
    height: 13px;
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1rem;
    font-weight: 760;
}

.sidebar-label,
.admin-kicker {
    color: var(--admin-green);
    font-size: 0.68rem;
    font-weight: 780;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sidebar-label {
    margin: 3rem 0 0.7rem;
}

.admin-nav {
    display: grid;
    gap: 0.25rem;
}

.admin-nav a,
.sidebar-bottom a {
    padding: 0.75rem 0.8rem;
    color: #aeb9b1;
    font-size: 0.86rem;
}

.admin-nav a:hover,
.admin-nav a.is-active,
.sidebar-bottom a:hover {
    background: rgba(220, 233, 223, 0.1);
    color: #fffefa;
}

.sidebar-bottom {
    display: grid;
    gap: 0.25rem;
    margin-top: auto;
}

.admin-main {
    width: min(1180px, calc(100% - 72px));
    margin: 0 auto;
    padding: 42px 0 70px;
}

.admin-topbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.2rem;
}

.admin-kicker {
    margin: 0 0 0.7rem;
}

.admin-topbar h1,
.auth-card h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 520;
    letter-spacing: -0.055em;
    line-height: 1;
}

.admin-user {
    display: grid;
    gap: 0.1rem;
    text-align: right;
}

.admin-user span {
    font-weight: 700;
}

.admin-user small {
    color: var(--admin-muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.stat-card,
.panel,
.auth-card {
    border: 1px solid var(--admin-line);
    background: var(--admin-panel);
}

.stat-card {
    display: grid;
    min-height: 132px;
    align-content: space-between;
    padding: 1.2rem;
}

.stat-card span {
    color: var(--admin-muted);
    font-size: 0.78rem;
}

.stat-card strong {
    font-size: 2.2rem;
    font-weight: 520;
    letter-spacing: -0.05em;
}

.panel {
    padding: 1.5rem;
}

.panel-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.panel-heading h2 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 700;
}

.button-primary {
    background: var(--admin-ink);
    color: #fffefa;
}

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

.button-secondary {
    border-color: var(--admin-line);
    background: transparent;
    color: var(--admin-muted);
}

.button-secondary:hover {
    border-color: var(--admin-ink);
    color: var(--admin-ink);
}

.panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.button-block {
    width: 100%;
}

.notice {
    margin-bottom: 1.2rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--admin-line);
    font-size: 0.84rem;
}

.notice-success {
    border-color: #b4ceb9;
    background: #edf6ef;
    color: #41634d;
}

.notice-error {
    border-color: #e1bfba;
    background: #fff0ed;
    color: #8d4742;
}

.button-danger {
    border-color: #d9aaa4;
    background: #fff0ed;
    color: #8d4742;
}

.button-danger:hover {
    border-color: #8d4742;
    background: #8d4742;
    color: #fffefa;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.data-table th {
    color: var(--admin-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
}

.data-table th,
.data-table td {
    padding: 0.95rem 0.65rem;
    border-bottom: 1px solid var(--admin-line);
    vertical-align: middle;
}

.data-table th:first-child,
.data-table td:first-child {
    padding-left: 0;
}

.data-table th:last-child,
.data-table td:last-child {
    padding-right: 0;
}

.data-table td strong {
    display: block;
    min-width: 170px;
    font-size: 0.86rem;
}

.status {
    display: inline-block;
    padding: 0.22rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
}

.status-published {
    background: #e4f1e7;
    color: #41634d;
}

.status-draft {
    background: #f2eee1;
    color: #806d44;
}

.status-hidden {
    background: #f4e4e1;
    color: #8d4742;
}

.content-type {
    display: inline-block;
    padding: 0.22rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.content-type-tutorial {
    background: #e9eee8;
    color: #4e6d58;
}

.content-type-skill {
    background: #e8edf3;
    color: #50677e;
}

.table-link,
.table-button {
    color: var(--admin-green);
    font-size: 0.78rem;
    font-weight: 700;
}

.table-button {
    padding: 0;
    border: 0;
    background: transparent;
}

.table-button.danger {
    color: var(--admin-red);
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    white-space: nowrap;
}

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

.navigation-url {
    max-width: 280px;
    overflow-wrap: anywhere;
    color: var(--admin-muted);
    font-size: 0.88rem;
}

.navigation-form {
    max-width: 680px;
}

.brand-settings-form {
    border-top: 1px solid var(--admin-line);
    padding-top: 1.5rem;
}

.brand-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
    gap: 1.15rem;
}

.brand-preview-field {
    display: grid;
    align-content: start;
    gap: 0.45rem;
}

.brand-preview-field > span {
    color: var(--admin-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.brand-preview {
    display: flex;
    min-height: 88px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px dashed var(--admin-line);
    background: #fff;
}

.brand-preview img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.brand-preview-empty {
    color: var(--admin-muted);
    font-size: 0.78rem;
}

.form-help {
    display: block;
    margin-top: 6px;
    color: var(--admin-muted);
    font-size: 0.82rem;
}

.toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.1rem;
}

.status-filter-group {
    display: grid;
    flex: 1 1 520px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    min-width: min(100%, 520px);
}

.filter-link {
    display: grid;
    min-height: 58px;
    align-content: center;
    gap: 0.12rem;
    padding: 0.7rem 0.85rem 0.7rem 1rem;
    border: 1px solid var(--admin-line);
    background: #fbfbf7;
    color: var(--admin-muted);
    font-size: 0.78rem;
    position: relative;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.filter-link::before {
    position: absolute;
    top: 0.8rem;
    left: 0;
    width: 3px;
    height: 1.2rem;
    background: var(--admin-line);
    content: "";
}

.filter-link-label {
    color: var(--admin-ink);
    font-size: 0.8rem;
    font-weight: 760;
}

.filter-link-note {
    color: var(--admin-muted);
    font-size: 0.68rem;
    line-height: 1.2;
}

.filter-link:hover {
    border-color: var(--admin-ink);
    background: #fffefa;
    color: var(--admin-ink);
    transform: translateY(-1px);
}

.filter-link-published::before {
    background: #6f9d7c;
}

.filter-link-draft::before {
    background: #ba9c57;
}

.filter-link-hidden::before {
    background: #b46c66;
}

.filter-link.is-active {
    border-color: var(--admin-ink);
    background: var(--admin-ink);
    color: #fffefa;
}

.filter-link.is-active .filter-link-label,
.filter-link.is-active .filter-link-note {
    color: #fffefa;
}

.filter-link.is-active::before {
    background: #fffefa;
}

.filter-link-published.is-active {
    border-color: #41634d;
    background: #41634d;
}

.filter-link-draft.is-active {
    border-color: #806d44;
    background: #806d44;
}

.filter-link-hidden.is-active {
    border-color: #8d4742;
    background: #8d4742;
}

.empty-state {
    padding: 3rem 1rem;
    color: var(--admin-muted);
    text-align: center;
}

.panel-description {
    max-width: 760px;
    margin: -0.5rem 0 1.4rem;
    color: var(--admin-muted);
    font-size: 0.86rem;
}

.panel-description code {
    padding: 0.1rem 0.3rem;
    background: #f1f1eb;
    color: var(--admin-ink);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.82em;
}

.translation-form {
    border-top: 1px solid var(--admin-line);
    padding-top: 1.5rem;
}

.seo-form-section {
    border-top: 1px solid var(--admin-line);
    padding: 1.5rem 0;
}

.seo-form-section:first-child {
    border-top: 0;
    padding-top: 0;
}

.seo-inline-section {
    margin-top: 0.4rem;
    padding: 1.4rem 0 0.3rem;
    border-top: 1px solid var(--admin-line);
}

.seo-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.seo-section-heading .admin-kicker {
    margin: 0;
}

.seo-section-heading h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 650;
}

.seo-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 1rem;
}

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

.translation-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.translation-status {
    display: grid;
    min-height: 108px;
    align-content: space-between;
    gap: 0.7rem;
    padding: 1rem;
    border: 1px solid var(--admin-line);
    background: #fbfbf7;
}

.translation-status span {
    color: var(--admin-muted);
    font-size: 0.74rem;
}

.translation-status strong {
    overflow-wrap: anywhere;
    font-size: 0.86rem;
}

.status-translation-none {
    background: #f1f1eb;
    color: var(--admin-muted);
}

.status-translation-pending {
    background: #f2eee1;
    color: #806d44;
}

.status-translation-approved {
    background: #e4f1e7;
    color: #41634d;
}

.status-translation-rejected,
.status-translation-failed {
    background: #f4e4e1;
    color: #8d4742;
}

.translation-review {
    margin: 1.5rem 0;
    padding: 1.2rem;
    border: 1px solid var(--admin-line);
    background: #fbfbf7;
}

.translation-review-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.translation-review-heading h3 {
    margin: 0.2rem 0 0;
    font-size: 1.1rem;
    font-weight: 650;
}

.translation-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1rem 0 1.2rem;
}

.translation-review-actions form {
    margin: 0;
}

.translation-editor-form {
    padding-top: 1.1rem;
    border-top: 1px solid var(--admin-line);
}

.translation-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.7rem;
    margin-top: 1rem;
}

.translation-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--admin-line);
}

.translation-preview-field {
    display: grid;
    gap: 0.45rem;
}

.translation-preview-field > span {
    color: var(--admin-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.translation-preview-value {
    min-height: 42px;
    padding: 0.75rem;
    border: 1px solid var(--admin-line);
    background: #fffefa;
    font-size: 0.84rem;
    line-height: 1.6;
}

.translation-preview-content {
    max-height: 520px;
    overflow: auto;
    padding: 1rem;
    border: 1px solid var(--admin-line);
    background: #fffefa;
}

.translation-empty-state {
    padding: 1.5rem 0 0.5rem;
    text-align: left;
}

.collector-form {
    display: flex;
    align-items: end;
    gap: 0.8rem;
}

.collector-form label {
    flex: 1;
}

.field-help {
    display: block;
    margin-top: 0.3rem;
    color: var(--admin-muted);
    font-size: 0.72rem;
}

.repository-description {
    max-width: 280px;
    color: var(--admin-muted);
}

.collected-file-list {
    display: grid;
    border-top: 1px solid var(--admin-line);
}

.collected-file {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 130px;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--admin-line);
    font-size: 0.78rem;
}

.collected-file:hover {
    color: var(--admin-green);
}

.file-type {
    color: var(--admin-green);
    font-size: 0.66rem;
    font-weight: 780;
    letter-spacing: 0.08em;
}

.file-path {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: var(--admin-muted);
    text-align: right;
}

.article-form {
    border-top: 1px solid var(--admin-line);
    padding-top: 1.5rem;
}

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

.form-grid label,
.stack-form label {
    display: grid;
    gap: 0.45rem;
}

.form-grid label > span,
.stack-form label > span {
    color: var(--admin-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.field-span-2 {
    grid-column: span 2;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--admin-line);
    border-radius: 0;
    outline: 0;
    background: #fff;
    color: var(--admin-ink);
    font-size: 0.86rem;
}

input,
select {
    min-height: 42px;
    padding: 0.6rem 0.7rem;
}

textarea {
    min-height: 92px;
    padding: 0.7rem;
    line-height: 1.6;
    resize: vertical;
}

.content-textarea {
    min-height: 300px;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.8rem;
}

.toastui-editor-shell {
    min-width: 0;
}

.toastui-editor-shell > .editor-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--admin-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.toastui-editor-defaultUI {
    border-color: var(--admin-line);
}

.toastui-editor-defaultUI-toolbar {
    background: #fbfbf7;
}

.editor-load-error {
    min-height: 180px;
    display: grid;
    place-items: center;
    border: 1px solid #e1bfba;
    background: #fff0ed;
    color: #8d4742;
    font-size: 0.86rem;
}

.article-content-source {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.skill-content-textarea {
    min-height: 360px;
}

.markdown-editor {
    border: 1px solid var(--admin-line);
    background: #fbfbf7;
}

.markdown-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.65rem;
    border-bottom: 1px solid var(--admin-line);
}

.markdown-toolbar button {
    display: inline-grid;
    width: 34px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--admin-line);
    background: #fffefa;
    color: var(--admin-ink);
    font-size: 0.78rem;
    font-weight: 700;
}

.markdown-toolbar button:hover {
    border-color: var(--admin-green);
    color: var(--admin-green);
}

.markdown-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.markdown-workspace > div {
    min-width: 0;
}

.editor-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--admin-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.markdown-preview {
    min-height: 300px;
    overflow-wrap: anywhere;
    padding: 0.75rem;
    border: 1px solid var(--admin-line);
    background: #fff;
    color: var(--admin-ink);
    font-size: 0.86rem;
    line-height: 1.7;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3,
.markdown-preview h4,
.markdown-preview h5,
.markdown-preview h6 {
    margin: 0.2rem 0 0.7rem;
    line-height: 1.25;
}

.markdown-preview p {
    margin: 0 0 0.8rem;
}

.markdown-preview blockquote {
    margin: 0 0 0.8rem;
    padding-left: 0.8rem;
    border-left: 3px solid var(--admin-green);
    color: var(--admin-muted);
}

.markdown-preview code,
.source-file-content {
    font-family: "SFMono-Regular", Consolas, monospace;
}

.markdown-preview code {
    padding: 0.1rem 0.25rem;
    background: #f1f1eb;
}

.source-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 1.4rem;
    margin-bottom: 1.5rem;
    padding: 1.1rem;
    border: 1px solid var(--admin-line);
    background: #fbfbf7;
}

.source-summary-title {
    display: block;
    margin: 0.2rem 0 0.45rem;
    color: var(--admin-ink);
    font-size: 1.05rem;
    font-weight: 750;
}

.source-summary-title:hover {
    color: var(--admin-green);
}

.source-summary p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 0.82rem;
}

.source-summary dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0;
}

.source-summary dl div {
    display: grid;
    align-content: space-between;
    gap: 0.4rem;
    padding-left: 0.7rem;
    border-left: 1px solid var(--admin-line);
}

.source-summary dt {
    color: var(--admin-muted);
    font-size: 0.7rem;
}

.source-summary dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 0.8rem;
    font-weight: 700;
}

.source-file-list {
    display: grid;
    gap: 0.65rem;
}

.source-file {
    border: 1px solid var(--admin-line);
    background: #fbfbf7;
}

.source-file summary {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 100px;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem;
    cursor: pointer;
    list-style: none;
}

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

.source-file summary:hover {
    color: var(--admin-green);
}

.source-file summary > span:last-child {
    color: var(--admin-muted);
    font-size: 0.72rem;
    text-align: right;
}

.source-file-actions {
    padding: 0 0.8rem 0.7rem;
}

.source-file-content {
    max-height: 460px;
    overflow: auto;
    margin: 0;
    padding: 1rem;
    border-top: 1px solid var(--admin-line);
    background: #202522;
    color: #dce9df;
    font-size: 0.76rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--admin-green);
    box-shadow: 0 0 0 3px rgba(98, 136, 115, 0.12);
}

.check-field {
    display: flex !important;
    align-items: center;
    align-self: end;
    min-height: 42px;
    grid-template-columns: auto 1fr;
    gap: 0.55rem !important;
}

.check-field input {
    width: 16px;
    min-height: 16px;
}

.check-field span {
    color: var(--admin-ink) !important;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.7rem;
    margin-top: 1.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--admin-line);
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 20% 15%, rgba(185, 215, 194, 0.3), transparent 28%),
        var(--admin-paper);
}

.auth-card {
    width: min(100%, 430px);
    padding: 2.2rem;
}

.auth-card h1 {
    margin-bottom: 1.8rem;
}

.stack-form {
    display: grid;
    gap: 1rem;
}

.auth-note {
    margin: 1.2rem 0 0;
    color: var(--admin-muted);
    font-size: 0.78rem;
}

.auth-note a {
    color: var(--admin-green);
    font-weight: 700;
}

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

    .admin-sidebar {
        min-height: auto;
        padding: 18px 20px;
    }

    .sidebar-label {
        margin-top: 1.5rem;
    }

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

    .sidebar-bottom {
        display: flex;
        margin-top: 1rem;
    }

    .admin-main {
        width: min(100% - 32px, 760px);
        padding-top: 30px;
    }

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

@media (max-width: 620px) {
    .admin-topbar,
    .panel-heading {
        align-items: start;
        flex-direction: column;
    }

    .admin-user {
        text-align: left;
    }

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

    .brand-settings-grid {
        grid-template-columns: 1fr;
    }

    .field-span-2 {
        grid-column: auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }

    .stat-card {
        min-height: 110px;
    }

    .panel {
        padding: 1rem;
    }

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

    .translation-status-grid {
        grid-template-columns: 1fr;
    }

    .translation-preview-grid {
        grid-template-columns: 1fr;
    }

    .seo-toggle-grid {
        grid-template-columns: 1fr;
    }

    .status-filter-group {
        flex-basis: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 100%;
    }

    .markdown-workspace,
    .source-summary {
        grid-template-columns: 1fr;
    }

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

    .source-file summary {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .source-file summary > span:last-child {
        grid-column: 2;
        text-align: left;
    }

    .collected-file {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .file-size {
        grid-column: 2;
        text-align: left;
    }
}
