/* ==========================================================================
   字集 · Admin readability pass
   Operational labels and data are raised to comfortable reading sizes while
   keeping the same paper-and-ink identity as the public site.
   ========================================================================== */

:root {
    --admin-radius: 12px;
    --muted-light: #6a655b;
}

body {
    font-size: 15px;
    line-height: 1.65;
}

.admin-brand__type small {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0.06em;
}

.admin-brand--light .admin-brand__type small {
    color: rgba(251, 249, 244, 0.52);
}

/* Sidebar and top bar --------------------------------------------------- */
.admin-nav-label {
    margin-bottom: 8px;
    color: rgba(251, 249, 244, 0.56);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.admin-nav {
    gap: 4px;
}

.admin-nav a {
    min-height: 46px;
    padding: 0 13px;
    border-radius: 8px;
    color: rgba(251, 249, 244, 0.72);
    font-size: 15px;
    font-weight: 500;
}

.admin-nav a > .icon {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

.sidebar-create {
    padding: 13px;
    border-radius: 8px;
    color: rgba(251, 249, 244, 0.84);
    font-size: 14px;
}

.sidebar-create .icon {
    width: 16px;
    height: 16px;
}

.sidebar-view-site {
    color: rgba(251, 249, 244, 0.58);
    font-size: 13px;
}

.sidebar-view-site .icon {
    width: 15px;
    height: 15px;
}

.admin-user {
    padding: 14px 12px;
}

.admin-user__avatar {
    width: 36px;
    height: 36px;
    font-size: 17px;
}

.admin-user strong {
    font-size: 14px;
}

.admin-user > div span {
    color: rgba(251, 249, 244, 0.55);
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0;
}

.admin-topbar {
    min-height: 74px;
}

.admin-topbar__menu {
    width: 44px;
    height: 44px;
}

.admin-breadcrumb {
    gap: 8px;
    font-size: 14px;
}

.admin-breadcrumb strong {
    font-weight: 600;
}

.admin-status {
    gap: 7px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 12.5px;
    letter-spacing: 0;
}

.admin-status i {
    width: 7px;
    height: 7px;
}

.admin-topbar__visit {
    border-color: var(--line-strong);
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 500;
}

.admin-status,
.admin-topbar__right,
.admin-topbar__left {
    gap: 16px;
}

.admin-footer {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0;
}

/* Shared small text ---------------------------------------------------- */
.admin-page .eyebrow,
.auth-page .eyebrow {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: none;
}

.admin-eyebrow {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: none;
}

.tag {
    padding: 4px 8px;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1.4;
}

.button {
    min-height: 44px;
    padding: 0 17px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.button--small {
    min-height: 40px;
    padding: 0 13px;
    font-size: 13px;
}

.button--large {
    min-height: 52px;
    font-size: 15px;
}

.button .icon {
    width: 16px;
    height: 16px;
}

.flash {
    border-radius: 10px;
}

.flash p {
    font-size: 14px;
}

.flash__close {
    min-width: 32px;
    min-height: 32px;
}

/* Page heading, metrics and panels ------------------------------------ */
.admin-page-head h1 {
    font-size: clamp(36px, 3.5vw, 48px);
}

.admin-page-head__main > p:last-child {
    max-width: 680px;
    font-size: 15px;
    line-height: 1.8;
}

.back-link {
    font-size: 13.5px;
}

.metric-grid {
    gap: 14px;
}

.metric-card {
    min-height: 184px;
    padding: 22px;
    border-radius: var(--admin-radius);
    box-shadow: 0 6px 20px rgba(23, 23, 19, 0.035);
}

.metric-card__top {
    font-size: 13px;
}

.metric-card__icon {
    width: 32px;
    height: 32px;
}

.metric-card__icon .icon {
    width: 15px;
    height: 15px;
}

.metric-card__badge,
.metric-card__trend {
    padding: 4px 9px;
    font-size: 12px;
}

.metric-card__trend {
    padding: 0;
}

.metric-card__caption {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0;
}

.metric-card--dark .metric-card__caption {
    color: rgba(251, 249, 244, 0.52);
}

.admin-panel {
    padding: 24px;
    border-radius: var(--admin-radius);
    box-shadow: 0 6px 20px rgba(23, 23, 19, 0.028);
}

.panel-head {
    gap: 18px;
    margin-bottom: 20px;
}

.panel-kicker {
    margin-bottom: 5px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.panel-head h2 {
    font-size: 26px;
}

.panel-head__meta {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 12.5px;
    letter-spacing: 0;
}

.panel-link {
    font-size: 13px;
}

.panel-link .icon {
    width: 14px;
    height: 14px;
}

.panel-empty {
    color: var(--muted);
    font-size: 14px;
}

/* Dashboard lists ------------------------------------------------------ */
.ranking-item {
    grid-template-columns: 32px minmax(0, 1fr) 76px 36px;
    gap: 12px;
    padding: 15px 0;
}

.ranking-item__rank {
    font-family: var(--font-sans);
    font-size: 12px;
}

.ranking-item__title {
    gap: 7px;
    margin-bottom: 9px;
}

.ranking-item__title strong {
    font-size: 14.5px;
}

.ranking-item__count {
    font-size: 14px;
}

.ranking-item__link {
    width: 34px;
    height: 34px;
}

.ranking-item__link .icon {
    width: 13px;
    height: 13px;
}

.progress-track {
    height: 5px;
}

.completion__ring {
    width: 112px;
    height: 112px;
}

.completion__ring > span {
    font-size: 30px;
}

.completion__ring small {
    font-size: 11.5px;
}

.completion__copy p {
    font-size: 14px;
}

.completion__copy > span {
    font-size: 12.5px;
}

.format-bar__item {
    padding: 13px 8px;
}

.format-bar__item span {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0;
}

.format-bar__item strong {
    font-size: 18px;
}

.style-mini > p {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0;
}

.style-mini__row {
    grid-template-columns: 68px minmax(0, 1fr) 26px;
    min-height: 28px;
}

.style-mini__row > span {
    font-size: 12.5px;
}

.style-mini__row strong {
    font-family: var(--font-sans);
    font-size: 12px;
}

.recent-item {
    grid-template-columns: 38px minmax(0, 1fr) auto 38px auto;
    gap: 12px;
    padding: 13px 0;
}

.recent-item__glyph {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 19px;
}

.recent-item__main strong {
    font-size: 14px;
}

.recent-item__main span {
    font-size: 12px;
}

.recent-item__date {
    font-family: var(--font-sans);
    font-size: 12px;
}

.recent-item__action {
    font-size: 13px;
}

.quick-links strong {
    font-size: 14px;
}

.quick-links small {
    font-size: 12px;
}

.quick-note p {
    font-size: 12.5px;
}

/* Search and tables ---------------------------------------------------- */
.panel-toolbar {
    padding: 17px 20px;
    gap: 18px;
}

.admin-search {
    width: min(100%, 420px);
    min-height: 46px;
    padding: 0 5px 0 13px;
    border-radius: 9px;
}

.admin-search > .icon {
    width: 17px;
    height: 17px;
}

.admin-search input {
    height: 44px;
    font-size: 15px;
}

.admin-search .button {
    min-height: 36px;
    font-size: 13px;
}

.admin-search__clear {
    width: 30px;
    height: 30px;
}

.toolbar-meta {
    color: var(--muted);
    font-size: 12.5px;
}

.admin-table th {
    padding: 13px 16px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.admin-table td {
    padding: 15px 16px;
    font-size: 13.5px;
}

.admin-font-cell {
    gap: 13px;
    min-width: 240px;
}

.admin-font-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    font-size: 24px;
}

.admin-font-name {
    font-size: 15.5px;
}

.admin-font-family,
.admin-font-author {
    font-size: 12.5px;
}

.format-pips {
    gap: 4px;
    margin-bottom: 5px;
}

.format-pips span {
    padding: 2px 5px;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0;
}

.admin-file-size {
    font-family: var(--font-sans);
    font-size: 12px;
}

.admin-download-count {
    gap: 5px;
    font-size: 13px;
}

.admin-date {
    font-family: var(--font-sans);
    font-size: 12.5px;
}

.admin-date__sub {
    font-size: 12px;
}

.row-actions {
    gap: 7px;
}

.admin-empty h2 {
    font-size: 28px;
}

.admin-empty p {
    font-size: 14px;
}

.page-footnote {
    font-size: 12.5px;
}

.table-note {
    font-size: 12.5px;
}

/* Forms ---------------------------------------------------------------- */
.form-errors {
    border-radius: 10px;
}

.form-errors strong {
    font-size: 15px;
}

.form-errors li {
    font-size: 13.5px;
}

.form-card {
    border-radius: var(--admin-radius);
}

.form-card__head h2 {
    font-size: 26px;
}

.form-card__head p {
    font-size: 13.5px;
    line-height: 1.7;
}

.field > label,
.field-label-row label {
    font-size: 13.5px;
    font-weight: 500;
}

.field > input,
.field > textarea,
.field > select {
    font-size: 15px;
    border-radius: 8px;
}

.field > input,
.field > select {
    min-height: 48px;
}

.field > textarea {
    line-height: 1.7;
}

.field__control {
    min-height: 48px;
    border-radius: 8px;
}

.field__control input {
    font-size: 15px;
}

.field-help {
    font-size: 12.5px;
    line-height: 1.65;
}

.field-error {
    font-size: 12.5px;
}

.char-counter {
    font-size: 12px;
}

.upload-note p {
    font-size: 13.5px;
    line-height: 1.7;
}

.upload-field {
    border-radius: 10px;
}

.upload-field__head strong {
    font-size: 14.5px;
}

.upload-field__head > div span {
    font-size: 12.5px;
}

.upload-required {
    font-size: 11.5px;
}

.upload-current {
    border-radius: 8px;
}

.upload-current strong {
    font-size: 13.5px;
}

.upload-current > div span {
    font-size: 12px;
}

.dropzone {
    border-radius: 10px;
}

.dropzone__title {
    font-size: 14px;
}

.dropzone__meta {
    font-size: 12px;
}

.dropzone__selected {
    font-size: 12.5px;
}

.form-summary h3 {
    font-size: 17px;
}

.form-summary li {
    font-size: 13.5px;
}

.form-summary li strong {
    font-size: 12.5px;
}

.form-summary > p {
    font-size: 12.5px;
}

.form-tip p {
    font-size: 12.5px;
}

.form-actions__note {
    font-size: 12.5px;
}

/* Statistics ----------------------------------------------------------- */
.stats-summary__item > span {
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 0;
}

.stats-summary__item > small {
    font-size: 12px;
}

.stats-table th {
    font-size: 12px;
}

.stats-table td {
    font-size: 13.5px;
}

.stats-font-link strong {
    font-size: 15px;
}

.stats-font-link span {
    font-size: 12px;
}

.stats-bar-cell strong {
    font-size: 12.5px;
}

.stats-share {
    font-size: 12.5px !important;
}

.style-distribution__label {
    font-size: 13px;
}

.style-distribution__label strong {
    font-size: 12px;
}

.style-distribution__row > span {
    font-size: 12.5px;
}

.format-inventory__item strong {
    font-size: 14px;
}

.format-inventory__item > div span {
    font-size: 12px;
}

.stats-note p {
    font-size: 12.5px;
}

.report-stamp {
    font-size: 11.5px;
}

/* Authentication ------------------------------------------------------- */
.auth-back {
    font-size: 13px;
}

.auth-heading > p:last-child {
    font-size: 14.5px;
    line-height: 1.75;
}

.auth-security p {
    font-size: 12.5px;
    line-height: 1.7;
}

.auth-copyright {
    font-size: 11.5px;
    line-height: 1.7;
}

.auth-form .button--wide {
    min-height: 52px;
    font-size: 15px;
}

.auth-art__quote {
    font-size: clamp(28px, 3vw, 42px);
}

.auth-art__issue {
    font-size: 11px;
}

.auth-art__bottom {
    font-size: 11px;
}

/* Account page --------------------------------------------------------- */
.account-note p {
    font-size: 13px;
    line-height: 1.8;
}

.account-note h2 {
    font-size: 27px;
}

.account-form .field label {
    font-size: 13.5px;
}

.account-note code {
    font-size: 12px;
}

/* Responsive adjustments ---------------------------------------------- */
@media (max-width: 1280px) {
    .metric-card {
        min-height: 170px;
    }
}

@media (max-width: 900px) {
    .admin-shell {
        margin-left: 0;
    }

    .admin-sidebar {
        width: 280px;
    }

    .admin-nav a {
        font-size: 15px;
    }

    .admin-topbar__right .admin-status {
        display: none;
    }

    .admin-page-head__main > p:last-child {
        font-size: 14.5px;
    }

    .metric-card__number {
        font-size: 38px;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 15px;
    }

    .admin-main {
        padding-top: 24px;
    }

    .admin-page-head h1 {
        font-size: 36px;
    }

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

    .metric-card {
        min-height: 150px;
        padding: 20px;
    }

    .dashboard-grid,
    .dashboard-grid--lower {
        grid-template-columns: 1fr;
    }

    .admin-panel {
        padding: 18px;
    }

    .panel-head h2 {
        font-size: 24px;
    }

    .admin-table th,
    .admin-table td {
        padding-inline: 12px;
    }

    .admin-search {
        width: 100%;
    }

    .panel-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 14px;
    }

    .toolbar-meta {
        justify-content: flex-start;
    }

    .admin-font-cell {
        min-width: 210px;
    }

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

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

    .form-actions .button {
        width: 100%;
    }

    .auth-heading h1 {
        font-size: 38px;
    }

    .auth-security p,
    .auth-copyright {
        font-size: 12.5px;
    }

    .admin-user strong {
        font-size: 14px;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }
}
/* Minimum legible sizes for remaining operational micro-labels. */
.auth-art__issue,
.auth-art__bottom {
    font-size: 12px;
}

.auth-copyright {
    font-size: 12px;
}

.metric-card__foot .metric-card__trend {
    font-size: 12px;
}

.completion__ring small {
    font-size: 12px;
}

.confirm-dialog__body > p:not(.admin-eyebrow) {
    font-size: 13px;
    line-height: 1.8;
}

.format-pips span {
    font-size: 12px;
}

.form-preview-card__head,
.form-preview-card__foot,
.form-preview-card__head span,
.form-preview-card__foot span {
    font-size: 12px;
}

.field > label em,
.field-label-row label em {
    font-size: 12px;
}

.upload-format,
.form-card__number,
.upload-required {
    font-size: 12px;
}

.format-inventory__tag,
.format-inventory__item small,
.format-inventory__item > div small,
.stats-rank {
    font-size: 12px;
}

.report-stamp {
    font-size: 12px;
}

.page-footnote,
.table-note {
    font-size: 12.5px;
}
.stats-table .stats-rank {
    font-size: 12px !important;
}
.tag--subtle {
    color: #5f5a50;
}
.admin-topbar {
    background: var(--paper);
    box-shadow: 0 6px 20px rgba(23, 23, 19, 0.025);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.admin-search input::placeholder,
.field__control input::placeholder,
.field > input::placeholder,
.field > textarea::placeholder {
    color: #756f65;
    opacity: 1;
}
.icon-button {
    width: 38px;
    height: 38px;
}

.icon-button .icon {
    width: 16px;
    height: 16px;
}
.auth-setup-note {
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}
.admin-page-head__aside {
    flex-wrap: wrap;
    gap: 10px 16px;
}

.stats-reset {
    display: inline-flex;
}

.row-actions {
    gap: 6px;
}

.row-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.row-action .icon {
    width: 14px;
    height: 14px;
}

.row-action:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper-light);
}

.row-action--danger:hover {
    border-color: var(--danger);
    background: var(--danger);
    color: #fff;
}

@media (max-width: 720px) {
    .row-action {
        min-height: 40px;
        padding-inline: 11px;
    }

    .stats-reset,
    .stats-reset .button {
        width: 100%;
    }
}
