/* =========================================================
   枫叶代码库 · Maple Codex
   Front-end + Admin design system
   ========================================================= */

:root {
    --ink: #17222e;
    --ink-2: #233240;
    --ink-3: #5d6977;
    --ink-4: #8a94a0;
    --paper: #f7f3ea;
    --paper-2: #efe8da;
    --white: #fffdf9;
    --line: #e4ddcf;
    --line-strong: #d1c7b6;
    --maple: #df5d3d;
    --maple-deep: #bd4327;
    --maple-soft: #fbe8df;
    --gold: #e7b15d;
    --teal: #356d64;
    --navy: #14202b;
    --ok: #397a5c;
    --danger: #b84536;
    --radius: 20px;
    --radius-sm: 14px;
    --shadow-sm: 0 8px 24px rgba(23, 34, 46, 0.06);
    --shadow: 0 22px 60px rgba(23, 34, 46, 0.11);
    --font: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    --font-display: "Georgia", "Noto Serif SC", "Songti SC", "STSong", serif;
    --mono: "Cascadia Mono", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::selection {
    background: var(--maple);
    color: #fff;
}

::selection {
    background: var(--maple);
    color: #fff;
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

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

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
ol {
    margin: 0;
}

code,
.mono {
    font-family: var(--mono);
}

mark {
    color: inherit;
    background: #ffe1a3;
    border-radius: 3px;
    padding: 0 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: -80px;
    left: 20px;
    z-index: 999;
    padding: 10px 16px;
    border-radius: 8px;
    color: #fff;
    background: var(--ink);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

.container {
    width: min(1240px, calc(100% - 64px));
    margin-inline: auto;
}

.main {
    min-height: 60vh;
}

/* ---------- Buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.25;
    white-space: nowrap;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.button-primary {
    color: #fff;
    background: var(--maple);
    box-shadow: 0 9px 24px rgba(223, 93, 61, 0.25);
}

.button-primary:hover {
    background: var(--maple-deep);
    box-shadow: 0 12px 28px rgba(223, 93, 61, 0.3);
}

.button-ghost {
    color: var(--ink);
    background: transparent;
    border-color: var(--line-strong);
}

.button-ghost:hover {
    background: var(--white);
    border-color: var(--ink-3);
}

.button-sm {
    min-height: 36px;
    padding: 8px 15px;
    font-size: 12.5px;
}

.button-lg {
    min-height: 52px;
    padding: 14px 28px;
    font-size: 15px;
}

.button-block {
    width: 100%;
}

.text-link {
    color: var(--ink-3);
    font-size: 13.5px;
    font-weight: 600;
    transition: color 0.18s ease;
}

.text-link:hover {
    color: var(--maple);
}

.text-button {
    padding: 0;
    border: 0;
    color: var(--ink-3);
    background: none;
    font-size: 13px;
    font-weight: 700;
    transition: color 0.18s ease;
}

.text-button:hover {
    color: var(--maple);
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: transparent;
}

.text-ok {
    color: var(--ok) !important;
}

.text-warn {
    color: var(--danger) !important;
}

.danger-text {
    padding: 0;
    border: 0;
    color: var(--danger);
    background: none;
    font-size: 12.5px;
    font-weight: 700;
}

.danger-text:hover {
    text-decoration: underline;
}

.success-text {
    padding: 0;
    border: 0;
    color: var(--ok);
    background: none;
    font-size: 12.5px;
    font-weight: 700;
}

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

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background:
        radial-gradient(900px 120px at 8% -40%, rgba(232, 102, 69, 0.11), transparent 65%),
        linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(247, 241, 232, 0.88));
    border-bottom: 1px solid rgba(215, 201, 182, 0.55);
    backdrop-filter: blur(18px);
    box-shadow: 0 6px 24px rgba(23, 34, 46, 0.045);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
    background:
        radial-gradient(900px 120px at 8% -40%, rgba(232, 102, 69, 0.08), transparent 65%),
        rgba(252, 249, 243, 0.97);
    border-bottom-color: rgba(202, 184, 162, 0.65);
    box-shadow: 0 12px 32px rgba(23, 34, 46, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 80px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: var(--maple);
    background: var(--ink);
    box-shadow: 0 8px 20px rgba(23, 34, 46, 0.18);
}

.brand-mark svg {
    width: 27px;
    height: 27px;
}

.site-header .brand-mark {
    width: 44px;
    height: 44px;
    background: transparent;
    box-shadow: none;
}

.brand-mark img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 4px 8px rgba(23, 34, 46, 0.12));
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.035em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--ink-3);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.24em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
    padding: 5px;
    border: 1px solid rgba(211, 195, 175, 0.55);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.main-nav a {
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--ink-3);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.main-nav a:hover {
    color: var(--ink);
    background: rgba(255, 253, 249, 0.95);
    box-shadow: 0 4px 12px rgba(23, 34, 46, 0.06);
    transform: translateY(-1px);
}

.main-nav a.is-active {
    color: var(--maple-deep);
    background: #fffdf9;
    box-shadow:
        0 4px 12px rgba(23, 34, 46, 0.08),
        inset 0 0 0 1px rgba(232, 102, 69, 0.2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding-left: 14px;
    border-left: 1px solid rgba(211, 195, 175, 0.55);
}

.header-login {
    padding: 8px;
}

.header-register-button {
    background: linear-gradient(135deg, #ec7655, #d74f32);
    box-shadow: 0 9px 22px rgba(209, 77, 48, 0.25);
}

.header-register-button:hover {
    background: linear-gradient(135deg, #df6646, #bd3e24);
    box-shadow: 0 12px 26px rgba(209, 77, 48, 0.33);
}

.header-login-button {
    padding: 8px 15px;
    border: 1px solid rgba(211, 195, 175, 0.8);
    color: var(--ink);
    background: rgba(255, 253, 248, 0.7);
    box-shadow: 0 5px 14px rgba(23, 34, 46, 0.06);
}

.header-login-button:hover {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
    box-shadow: 0 9px 20px rgba(23, 34, 46, 0.18);
}

.header-checkin-form {
    margin: 0;
}

.header-checkin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #ecd5a8;
    border-radius: 999px;
    color: #8a6325;
    background: #fdf7e9;
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

button.header-checkin {
    cursor: pointer;
}

button.header-checkin:hover {
    border-color: #d9b96e;
    background: #fbefd2;
    transform: translateY(-1px);
}

.header-checkin small {
    color: #b0883e;
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 600;
}

.header-checkin.is-done {
    border-color: #cfe4d7;
    color: var(--ok);
    background: #eaf4ee;
}

.header-checkin.is-done small {
    color: var(--ok);
}

.user-menu {
    position: relative;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 10px 5px 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 253, 249, 0.7);
    transition: background 0.18s ease, border-color 0.18s ease;
}

.user-chip:hover {
    background: var(--white);
    border-color: var(--line-strong);
}

.user-chip svg {
    width: 13px;
    color: var(--ink-4);
}

.user-chip-name {
    max-width: 110px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--maple), #a83a24);
    font-size: 13px;
    font-weight: 800;
}

.avatar.has-image {
    overflow: hidden;
    border: 1px solid #f0dfcb;
    background: #fff7ec;
}

.avatar.has-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: auto;
}

.avatar-lg {
    width: 42px;
    height: 42px;
    font-size: 16px;
}

.avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 238px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.user-menu.is-open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 9px 14px;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--line);
}

.dropdown-head div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dropdown-head strong {
    overflow: hidden;
    font-size: 13.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-head small {
    margin-top: 2px;
    color: #1762c5;
    font-size: 12px;
    line-height: 1.45;
}

.user-dropdown > a,
.dropdown-logout {
    display: block;
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-radius: 10px;
    color: var(--ink-3);
    background: none;
    font-size: 13px;
    text-align: left;
}

.user-dropdown > a:hover,
.dropdown-logout:hover {
    color: var(--ink);
    background: var(--paper);
}

.dropdown-logout {
    color: var(--danger);
}

.dropdown-checkin-form {
    margin: 3px 0;
}

.dropdown-checkin {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-radius: 10px;
    color: var(--maple-deep);
    background: var(--maple-soft);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    transition: background 0.16s ease, color 0.16s ease;
}

button.dropdown-checkin {
    cursor: pointer;
}

.dropdown-checkin:hover {
    color: var(--maple-deep);
    background: #f8dbd0;
}

.dropdown-checkin small {
    margin-left: auto;
    color: #a2604f;
    font-family: var(--mono);
    font-size: 8.5px;
    font-weight: 600;
}

.dropdown-checkin.is-done {
    color: var(--ok);
    background: #eaf4ee;
    cursor: default;
}

.dropdown-checkin.is-done small {
    color: var(--ok);
}

.mobile-menu-button {
    display: none;
}

.mobile-menu-button span {
    display: block;
    width: 17px;
    height: 1.7px;
    margin: 2.4px 0;
    background: currentColor;
}

/* ---------- Toasts ---------- */

.toast-stack {
    position: fixed;
    top: 92px;
    right: 24px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(370px, calc(100vw - 32px));
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--ink);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    animation: toastIn 0.25s ease both;
}

.toast-success {
    border-left-color: var(--ok);
}

.toast-error {
    border-left-color: var(--danger);
}

.toast-info {
    border-left-color: var(--teal);
}

.toast-dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-top: 6px;
    border-radius: 50%;
    background: currentColor;
}

.toast-success .toast-dot {
    background: var(--ok);
}

.toast-error .toast-dot {
    background: var(--danger);
}

.toast-info .toast-dot {
    background: var(--teal);
}

.toast > span:nth-child(2) {
    flex: 1;
}

.toast button {
    flex: 0 0 auto;
    padding: 0 2px;
    border: 0;
    color: var(--ink-4);
    background: none;
    font-size: 18px;
    line-height: 1;
}

.toast.is-leaving {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 74px 0 92px;
    background:
        radial-gradient(circle at 8% 12%, rgba(223, 93, 61, 0.09), transparent 30%),
        radial-gradient(circle at 92% 58%, rgba(231, 177, 93, 0.13), transparent 32%),
        linear-gradient(180deg, #faf7f0 0%, #f4eee3 100%);
}

.hero::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.26;
    background-image:
        linear-gradient(rgba(23, 34, 46, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 34, 46, 0.05) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
}

.hero-glow-a {
    top: -130px;
    right: 27%;
    width: 360px;
    height: 360px;
    background: rgba(231, 177, 93, 0.16);
}

.hero-glow-b {
    bottom: -180px;
    left: -120px;
    width: 430px;
    height: 430px;
    background: rgba(223, 93, 61, 0.1);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: 64px;
    align-items: center;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--maple-deep);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--maple);
    box-shadow: 0 0 0 4px rgba(223, 93, 61, 0.12);
}

.hero-copy h1 {
    margin: 22px 0 22px;
    font-family: var(--font-display);
    font-size: clamp(48px, 5.1vw, 76px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.hero-copy h1 em {
    color: var(--maple);
    font-style: normal;
}

.hero-lead {
    max-width: 540px;
    color: var(--ink-3);
    font-size: 15.5px;
    line-height: 1.9;
}

.hero-search {
    position: relative;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 650px;
    margin-top: 30px;
    padding: 6px;
    border: 1px solid rgba(23, 34, 46, 0.09);
    border-radius: 17px;
    background: var(--white);
    box-shadow: 0 18px 42px rgba(23, 34, 46, 0.1);
}

.hero-search .search-icon,
.search-bar .search-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    color: var(--ink-4);
}

.hero-search .search-icon svg,
.search-bar .search-icon svg {
    width: 19px;
    height: 19px;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 4px;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-size: 14px;
}

.hero-search input::placeholder,
.search-bar input::placeholder {
    color: #9aa1a8;
}

.hero-search select {
    max-width: 118px;
    height: 34px;
    padding: 0 8px;
    border: 0;
    border-left: 1px solid var(--line);
    outline: 0;
    color: var(--ink-3);
    background: transparent;
    font-size: 12px;
    cursor: pointer;
}

.hero-search-button {
    padding-inline: 19px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    color: var(--ink-3);
    font-size: 11.5px;
}

.hero-meta strong {
    color: var(--ink);
}

.hero-meta-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--line-strong);
}

.hero-login-note {
    margin-top: 18px;
    color: var(--ink-3);
    font-size: 12px;
}

.hero-login-note a {
    color: var(--maple-deep);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-visual {
    position: relative;
    padding: 14px 6px 22px;
}

.console-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    color: #c9d2d9;
    background:
        radial-gradient(circle at 100% 0, rgba(223, 93, 61, 0.17), transparent 38%),
        linear-gradient(145deg, #1a2835 0%, #111b25 100%);
    box-shadow: 0 34px 70px rgba(23, 34, 46, 0.27);
    transform: rotate(-1.1deg);
}

.console-card::after {
    position: absolute;
    inset: 0;
    content: "";
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.07), transparent 28%);
    pointer-events: none;
}

.console-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #738594;
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.14em;
}

.console-dots {
    display: flex;
    gap: 5px;
}

.console-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4b5b67;
}

.console-dots i:first-child {
    background: var(--maple);
}

.console-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    color: #9eb4a7;
}

.console-live i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #6cc08b;
    box-shadow: 0 0 0 3px rgba(108, 192, 139, 0.12);
}

.console-body {
    padding: 22px 22px 20px;
}

.console-line {
    display: flex;
    justify-content: space-between;
    padding: 0 2px 12px;
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.14em;
}

.console-dim {
    color: #677a88;
}

.console-row {
    display: grid;
    grid-template-columns: 24px 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    transition: background 0.18s ease;
}

.console-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.console-index {
    color: #5d6f7d;
    font-family: var(--mono);
    font-size: 9px;
}

.console-code {
    color: #f0cf95;
    font-family: var(--mono);
    font-size: 11.5px;
}

.console-name {
    overflow: hidden;
    color: #edf1f4;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.console-tag {
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--cat, #d9a45f);
    background: rgba(255, 255, 255, 0.07);
    font-size: 8.5px;
    white-space: nowrap;
}

.console-result {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.console-foot {
    display: flex;
    justify-content: space-between;
    padding: 13px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #6d7f8c;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.1em;
}

.signal {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 5px;
    border-radius: 50%;
    background: #6cc08b;
}

.hero-stamp {
    position: absolute;
    right: -14px;
    bottom: -12px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 116px;
    height: 116px;
    padding: 15px;
    border-radius: 50%;
    color: var(--ink);
    background: var(--gold);
    box-shadow: 0 16px 34px rgba(151, 108, 43, 0.26);
    transform: rotate(7deg);
}

.hero-stamp span {
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.06em;
}

.hero-stamp small {
    font-size: 7.5px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.1em;
}

/* ---------- Category grid ---------- */

.category-section {
    padding: 92px 0 100px;
    background: var(--white);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin-top: 7px;
    font-family: var(--font-display);
    font-size: clamp(32px, 3.3vw, 44px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-heading > p {
    max-width: 420px;
    padding-bottom: 7px;
    color: var(--ink-3);
    font-size: 13px;
    line-height: 1.8;
}

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

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 218px;
    padding: 22px 20px 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fffcf6;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.category-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    content: "";
    background: var(--cat);
    opacity: 0.75;
}

.category-card::after {
    position: absolute;
    right: -34px;
    bottom: -44px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    content: "";
    background: var(--cat-bg);
    opacity: 0.65;
    transition: transform 0.3s ease;
}

.category-card:hover {
    border-color: var(--cat);
    box-shadow: 0 18px 36px rgba(23, 34, 46, 0.09);
    transform: translateY(-4px);
}

.category-card:hover::after {
    transform: scale(1.25);
}

.category-number {
    position: absolute;
    top: 19px;
    right: 19px;
    color: var(--line-strong);
    font-family: var(--mono);
    font-size: 9px;
}

.category-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 15px;
    border-radius: 13px;
    color: var(--cat);
    background: var(--cat-bg);
    font-size: 20px;
}

.category-name {
    position: relative;
    z-index: 1;
    font-size: 19px;
    font-weight: 750;
    letter-spacing: 0.01em;
}

.category-en {
    position: relative;
    z-index: 1;
    margin-top: 2px;
    color: var(--cat);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.category-desc {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    color: var(--ink-3);
    font-size: 11.5px;
    line-height: 1.65;
}

.category-foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 9.5px;
}

.category-arrow {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: var(--ink);
    background: var(--cat-bg);
    font-family: var(--font);
    font-size: 11px;
    transition: transform 0.2s ease;
}

.category-card:hover .category-arrow {
    transform: translate(2px, -2px);
}

/* ---------- How / CTA ---------- */

.how-section {
    position: relative;
    padding: 88px 0 96px;
    overflow: hidden;
    color: #f8f4eb;
    background:
        radial-gradient(circle at 84% 5%, rgba(223, 93, 61, 0.18), transparent 30%),
        var(--ink);
}

.how-section::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.18;
    background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 100% 72px;
    pointer-events: none;
}

.section-heading-light {
    position: relative;
    z-index: 1;
}

.section-heading-light .section-kicker {
    color: var(--gold);
}

.section-heading-light > p {
    color: #98a5b0;
}

.how-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.how-card {
    padding: 28px 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    transition: background 0.2s ease, transform 0.2s ease;
}

.how-card:hover {
    background: rgba(255, 255, 255, 0.055);
    transform: translateY(-3px);
}

.how-index {
    color: var(--maple);
    font-family: var(--mono);
    font-size: 10px;
}

.how-card h3 {
    margin: 24px 0 10px;
    font-size: 17px;
    font-weight: 700;
}

.how-card p {
    color: #98a5b0;
    font-size: 12.5px;
    line-height: 1.8;
}

.how-sample {
    display: inline-block;
    margin-top: 22px;
    padding: 7px 10px;
    border-radius: 6px;
    color: #e9c68c;
    background: rgba(0, 0, 0, 0.23);
    font-family: var(--mono);
    font-size: 10px;
}

.cta-section {
    padding: 74px 0;
    background: var(--paper);
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px 52px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0, rgba(231, 177, 93, 0.14), transparent 35%),
        var(--white);
    box-shadow: var(--shadow-sm);
}

.cta-card h2 {
    margin: 7px 0 8px;
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 600;
}

.cta-card p {
    color: var(--ink-3);
    font-size: 13px;
}

.cta-actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

/* ---------- Footer ---------- */

.site-footer {
    padding: 58px 0 24px;
    color: #aab5be;
    background: #101923;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 70px;
    padding-bottom: 42px;
}

.brand-footer {
    color: #fff;
}

.brand-footer .brand-mark {
    color: var(--maple);
    background: rgba(255, 255, 255, 0.08);
}

.brand-footer .brand-copy small {
    color: #657583;
}

.footer-brand p {
    max-width: 430px;
    margin-top: 18px;
    color: #8996a1;
    font-size: 12.5px;
    line-height: 1.85;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-links h4 {
    margin-bottom: 13px;
    color: #d8dfe4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.footer-links a {
    display: block;
    margin-bottom: 8px;
    color: #8996a1;
    font-size: 12px;
    transition: color 0.18s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #657583;
    font-size: 10.5px;
}

/* ---------- Forms ---------- */

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

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

.form-grid .field:first-child,
.form-grid .field:first-of-type {
    grid-column: 1 / -1;
}

.form-grid .form-actions {
    grid-column: 1 / -1;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field > span:first-child {
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 700;
}

.field > span:first-child small {
    margin-left: 5px;
    color: var(--ink-4);
    font-size: 10.5px;
    font-weight: 500;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    outline: 0;
    color: var(--ink);
    background: #fffdf9;
    font-size: 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field textarea {
    min-height: 150px;
    line-height: 1.75;
    resize: vertical;
}

.field input[type="color"] {
    height: 44px;
    padding: 4px;
    cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--maple);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(223, 93, 61, 0.1);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #a5adb5;
}

.field-hint {
    color: var(--ink-4);
    font-size: 11px;
    line-height: 1.6;
}

.password-wrap {
    position: relative;
    display: block;
}

.password-wrap input {
    padding-right: 58px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    padding: 6px 8px;
    border: 0;
    border-radius: 7px;
    color: var(--ink-3);
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: var(--maple);
    background: var(--maple-soft);
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.captcha-row input {
    flex: 1;
    min-width: 0;
    width: auto;
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-indent: 0.1em;
}

.captcha-image {
    flex: 0 0 auto;
    width: 132px;
    height: 46px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--paper);
    cursor: pointer;
}

.captcha-refresh {
    align-self: flex-start;
    margin-top: -2px;
    padding: 0;
    border: 0;
    color: var(--ink-3);
    background: none;
    font-size: 10.5px;
    font-weight: 650;
}

.captcha-refresh:hover {
    color: var(--maple);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 3px;
}

.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid #efc9c1;
    border-radius: 10px;
    color: #8d3021;
    background: #fdf0ec;
    font-size: 12.5px;
    line-height: 1.6;
}

.form-alert > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    color: #fff;
    background: var(--danger);
    font-size: 10px;
    font-weight: 800;
}

.form-alert-wide {
    max-width: none;
}

/* ---------- Auth pages ---------- */

.auth-shell {
    padding: 64px 0 84px;
    background:
        radial-gradient(circle at 8% 20%, rgba(223, 93, 61, 0.08), transparent 28%),
        radial-gradient(circle at 90% 75%, rgba(231, 177, 93, 0.1), transparent 30%),
        var(--paper);
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 26px;
    align-items: stretch;
    max-width: 1080px;
}

.auth-art {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 580px;
    padding: 50px 48px;
    overflow: hidden;
    border-radius: 26px;
    color: #f8f4eb;
    background:
        radial-gradient(circle at 85% 0, rgba(223, 93, 61, 0.28), transparent 38%),
        linear-gradient(145deg, #1c2b39 0%, #111b25 100%);
}

.auth-art::after {
    position: absolute;
    right: -80px;
    bottom: -110px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 46px rgba(255, 255, 255, 0.025), 0 0 0 92px rgba(255, 255, 255, 0.018);
}

.auth-art .section-kicker {
    color: var(--gold);
}

.auth-art h1 {
    margin: 20px 0 16px;
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.auth-art h1 em {
    color: var(--maple);
    font-style: normal;
}

.auth-art > p {
    max-width: 380px;
    color: #9ba8b2;
    font-size: 13px;
    line-height: 1.85;
}

.auth-art-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 36px;
}

.auth-art-list div {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #c9d2d9;
    font-size: 12px;
}

.auth-art-list span {
    color: var(--maple);
    font-family: var(--mono);
    font-size: 9px;
}

.auth-quote {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 30px;
}

.quote-mark {
    display: block;
    height: 22px;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 46px;
    line-height: 1;
}

.auth-quote p {
    max-width: 290px;
    margin-top: 6px;
    color: #8d9aa4;
    font-family: var(--font-display);
    font-size: 14px;
    line-height: 1.7;
}

.auth-card {
    align-self: center;
    padding: 42px 40px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.auth-card-head {
    margin-bottom: 26px;
}

.auth-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 5px;
    color: var(--maple-deep);
    background: var(--maple-soft);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.auth-card-head h2 {
    margin: 13px 0 5px;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
}

.auth-card-head p {
    color: var(--ink-3);
    font-size: 12px;
}

.auth-card-head a {
    color: var(--maple-deep);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-register-button {
    margin-top: 10px;
}

.auth-switch {
    margin-top: 20px;
    color: var(--ink-3);
    font-size: 11.5px;
    text-align: center;
}

.auth-switch a {
    color: var(--maple-deep);
    font-weight: 700;
}

.auth-note {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--ink-4);
    font-size: 10.5px;
    line-height: 1.7;
    text-align: center;
}

/* ---------- Search page ---------- */

.search-hero {
    padding: 44px 0 30px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 90% 10%, rgba(231, 177, 93, 0.12), transparent 26%),
        linear-gradient(180deg, #faf7f0, #f5f0e6);
}

.search-hero-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.search-hero h1 {
    margin: 7px 0 5px;
    font-family: var(--font-display);
    font-size: clamp(32px, 3.8vw, 46px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.search-hero-top p {
    color: var(--ink-3);
    font-size: 12px;
}

.search-hero-top p strong {
    color: var(--ink);
}

.back-home {
    flex: 0 0 auto;
    padding-bottom: 3px;
    color: var(--ink-3);
    font-size: 12px;
    font-weight: 600;
}

.back-home:hover {
    color: var(--maple);
}

.search-bar {
    position: relative;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 930px;
    margin: 26px auto 0;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.search-bar .region-select {
    max-width: 96px;
    height: 34px;
    padding: 0 10px;
    border: 0;
    border-right: 1px solid var(--line);
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.search-bar input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 6px;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-size: 14px;
}

.search-bar select {
    max-width: 128px;
    height: 34px;
    padding: 0 8px;
    border: 0;
    border-left: 1px solid var(--line);
    outline: 0;
    color: var(--ink-3);
    background: transparent;
    font-size: 12px;
    cursor: pointer;
}

.search-ads {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    text-align: center;
}

.search-ad {
    max-width: 100%;
    overflow-x: auto;
}

.search-ad img,
.search-ad iframe {
    max-width: 100%;
}

.search-ad-banner img {
    display: block;
    width: 960px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 960 / 90;
    object-fit: cover;
}

.update-ads {
    margin-bottom: 16px;
}

.update-server-board {
    margin: 0 0 18px;
}

.update-top-ads {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto 16px;
    padding: 0;
}

.corner-ads {
    position: fixed;
    bottom: 20px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 300px;
}

.corner-ads-left {
    left: 20px;
}

.corner-ads-right {
    right: 20px;
}

.corner-ad img {
    display: block;
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(18, 28, 38, 0.18);
}

.ad-thumb {
    display: block;
    width: 110px;
    height: 34px;
    object-fit: contain;
    border: 1px solid #e7e1d6;
    border-radius: 4px;
    background: #fff;
}

.admin-regions-page .admin-page-head p {
    font-size: 14.5px;
    line-height: 1.7;
}

.admin-regions-page .admin-file-pill {
    font-size: 12px;
}

.admin-regions-page .field > span:first-child {
    font-size: 15px;
}

.admin-regions-page .field > span:first-child small {
    font-size: 12.5px;
}

.admin-regions-page .field input,
.admin-regions-page .field select {
    font-size: 16px;
}

.admin-regions-page .data-table {
    font-size: 14px;
}

.admin-regions-page .data-table th {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 11px;
}

.admin-regions-page .data-table td {
    padding-top: 15px;
    padding-bottom: 15px;
}

.admin-regions-page .data-table code {
    font-size: 12px;
}

.admin-regions-page .table-actions a,
.admin-regions-page .table-actions button {
    font-size: 12.5px;
}

.admin-regions-page .status-pill {
    padding: 4px 9px;
    font-size: 11.5px;
}

.admin-regions-page .panel-note {
    font-size: 12px;
}

.admin-regions-page .import-notes p {
    font-size: 12.5px;
    line-height: 1.7;
}

.admin-regions-page .import-notes li > span {
    font-size: 10px;
}

.admin-regions-head {
    position: relative;
    overflow: hidden;
    align-items: flex-end;
    padding: 26px 28px;
    border: 1px solid #e7ddcf;
    border-radius: 18px;
    background:
        radial-gradient(circle at 10% 0%, rgba(223, 93, 61, 0.1), transparent 38%),
        radial-gradient(circle at 92% 12%, rgba(55, 104, 137, 0.1), transparent 36%),
        linear-gradient(135deg, #fffdf9 0%, #f8f2e8 100%);
}

.admin-regions-head::after {
    position: absolute;
    right: 20px;
    bottom: -22px;
    content: "REGIONS";
    color: rgba(96, 78, 58, 0.055);
    font-family: var(--font-display);
    font-size: 104px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    pointer-events: none;
}

.admin-regions-head-main,
.admin-regions-head .admin-page-actions {
    position: relative;
    z-index: 1;
}

.regions-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid #e8cbbd;
    border-radius: 999px;
    color: var(--maple-deep);
    background: #fff8f3;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.regions-kicker i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--maple);
    box-shadow: 0 0 0 3px rgba(223, 93, 61, 0.12);
}

.admin-regions-head h1 {
    margin-top: 11px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.admin-regions-head p {
    margin-top: 8px;
    max-width: 660px;
    color: var(--ink-3);
    font-size: 14.5px;
    line-height: 1.75;
}

.regions-head-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 17px;
}

.regions-head-stats > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid rgba(219, 205, 187, 0.8);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(4px);
}

.regions-head-stats strong {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 19px;
    line-height: 1;
}

.regions-head-stats span {
    color: var(--ink-4);
    font-size: 10.5px;
    font-weight: 600;
}

.regions-head-stats .regions-stock-pill {
    align-self: center;
    min-height: 39px;
    padding: 10px 13px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
}

.regions-head-stats .regions-stock-pill strong {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 700;
}

.admin-regions-head .admin-page-actions {
    flex: 0 0 auto;
    align-items: flex-end;
    flex-direction: column;
    gap: 10px;
}

.admin-regions-page .data-table tbody tr {
    transition: background 0.18s ease;
}

.admin-regions-page .data-table tbody tr:hover {
    background: #fffdf8;
}

.admin-regions-page .data-table code {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 6px;
    color: #5f5345;
    background: #f5f0e6;
}

.admin-regions-page .table-actions .table-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid #d9e2ea;
    border-radius: 999px;
    color: #426987;
    background: #f4f9fc;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.admin-regions-page .table-actions .table-action span {
    display: inline-grid;
    place-items: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(66, 105, 135, 0.1);
    font-size: 9px;
    line-height: 1;
}

.admin-regions-page .table-actions .table-action:hover {
    border-color: #b8cedd;
    background: #eaf4fb;
    transform: translateY(-1px);
}

.admin-regions-page .table-actions .table-action-toggle {
    border-color: #ead9b9;
    color: #8a6429;
    background: #fffdf6;
}

.admin-regions-page .table-actions .table-action-toggle span {
    background: rgba(138, 100, 41, 0.1);
}

.admin-regions-page .table-actions .table-action-toggle:hover {
    border-color: #dcc18f;
    background: #fdf8ea;
}

.admin-regions-page .table-actions .table-action-toggle.is-enable {
    border-color: #cfe2d6;
    color: #3f7658;
    background: #f4fbf7;
}

.admin-regions-page .table-actions .table-action-toggle.is-enable span {
    background: rgba(63, 118, 88, 0.1);
}

.admin-regions-page .table-actions .table-action-toggle.is-enable:hover {
    border-color: #a9ceb7;
    background: #eaf7ef;
}

@media (max-width: 900px) {
    .admin-regions-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .admin-regions-head h1 {
        font-size: 34px;
    }

    .admin-regions-head::after {
        font-size: 76px;
    }

    .admin-regions-head .admin-page-actions {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 16px;
    }
}

.region-switch-form {
    display: flex;
    align-items: center;
    gap: 7px;
}

.region-switch-form label {
    color: var(--ink-4);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.region-switch-form select {
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink-2);
    background: var(--white);
    font-size: 11px;
    cursor: pointer;
}

.admin-ads-head {
    position: relative;
    align-items: flex-end;
    overflow: hidden;
    padding: 26px 28px;
    border: 1px solid #e5dbcd;
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 0%, rgba(52, 100, 132, 0.11), transparent 37%),
        radial-gradient(circle at 93% 10%, rgba(223, 93, 61, 0.09), transparent 38%),
        linear-gradient(135deg, #fffdf9 0%, #f5f1e9 100%);
}

.admin-ads-head::after {
    position: absolute;
    right: 18px;
    bottom: -24px;
    content: "IMAGE ADS";
    color: rgba(62, 83, 100, 0.052);
    font-family: var(--font-display);
    font-size: 104px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    pointer-events: none;
}

.admin-ads-head-main,
.admin-ads-head .admin-page-actions {
    position: relative;
    z-index: 1;
}

.ads-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid #c9dbe6;
    border-radius: 999px;
    color: #426987;
    background: #f4fafd;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.ads-kicker i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5b87a8;
    box-shadow: 0 0 0 3px rgba(91, 135, 168, 0.13);
}

.admin-ads-head h1 {
    margin-top: 11px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.admin-ads-head p {
    margin-top: 8px;
    max-width: 660px;
    color: var(--ink-3);
    font-size: 14px;
    line-height: 1.75;
}

.ads-head-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.ads-head-stats > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid rgba(205, 213, 216, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
}

.ads-head-stats strong {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 19px;
    line-height: 1;
}

.ads-head-stats span {
    color: var(--ink-4);
    font-size: 10.5px;
    font-weight: 600;
}

.admin-ads-head .admin-page-actions {
    flex: 0 0 auto;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.ads-head-stats .ads-stock-pill {
    align-self: center;
    min-height: 39px;
    padding: 10px 13px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
}

.admin-ads-page .ad-form-panel,
.admin-ads-page > .panel,
.admin-ads-page .admin-grid-side .panel {
    border-radius: 16px;
}

.admin-ads-page .ad-form-panel {
    background: linear-gradient(145deg, #fffefb 0%, #fbf7ef 100%);
}

.admin-ads-page .admin-grid-side .panel {
    background: linear-gradient(145deg, #fffefb 0%, #f7f9fb 100%);
}

.admin-ads-page .ad-thumb {
    width: 128px;
    height: 40px;
    border-radius: 6px;
}

.admin-ads-page .data-table tbody tr {
    transition: background 0.18s ease;
}

.admin-ads-page .data-table tbody tr:hover {
    background: #fffdf8;
}

.admin-ads-page .ad-click-count {
    display: inline-flex;
    padding: 4px 8px;
    border: 1px solid #d9e2ea;
    border-radius: 999px;
    color: #426987;
    background: #f4f9fc;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.admin-ads-page .table-actions .table-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid #d9e2ea;
    border-radius: 999px;
    color: #426987;
    background: #f4f9fc;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.admin-ads-page .table-actions .table-action span {
    display: inline-grid;
    place-items: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(66, 105, 135, 0.1);
    font-size: 9px;
    line-height: 1;
}

.admin-ads-page .table-actions .table-action:hover {
    border-color: #b8cedd;
    background: #eaf4fb;
    transform: translateY(-1px);
}

.admin-ads-page .table-actions .table-action-toggle {
    border-color: #ead9b9;
    color: #8a6429;
    background: #fffdf6;
}

.admin-ads-page .table-actions .table-action-toggle span {
    background: rgba(138, 100, 41, 0.1);
}

.admin-ads-page .table-actions .table-action-toggle:hover {
    border-color: #dcc18f;
    background: #fdf8ea;
}

.admin-ads-page .table-actions .table-action-toggle.is-enable {
    border-color: #cfe2d6;
    color: #3f7658;
    background: #f4fbf7;
}

.admin-ads-page .table-actions .table-action-toggle.is-enable span {
    background: rgba(63, 118, 88, 0.1);
}

.admin-ads-page .table-actions .table-action-delete {
    border-color: #ecc5bb;
    color: #aa4a37;
    background: #fff7f4;
}

.admin-ads-page .table-actions .table-action-delete span {
    background: rgba(170, 74, 55, 0.1);
    font-size: 11px;
}

.admin-ads-page .table-actions .table-action-delete:hover {
    border-color: #dfa18f;
    color: #8e3523;
    background: #fdece7;
}

@media (max-width: 900px) {
    .admin-ads-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .admin-ads-head h1 {
        font-size: 34px;
    }

    .admin-ads-head::after {
        font-size: 74px;
    }

    .admin-ads-head .admin-page-actions {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 16px;
    }
}

.admin-ads-page .admin-page-head p {
    font-size: 13px;
}

.admin-ads-page .admin-file-pill {
    font-size: 11px;
}

.admin-ads-page .field > span:first-child {
    font-size: 13.5px;
}

.admin-ads-page .field > span:first-child small {
    font-size: 11.5px;
}

.admin-ads-page .field input,
.admin-ads-page .field select {
    font-size: 15px;
}

.admin-ads-page .field-hint {
    font-size: 11.5px;
}

.admin-ads-page .data-table {
    font-size: 12.5px;
}

.admin-ads-page .data-table th {
    padding-top: 11px;
    padding-bottom: 11px;
    font-size: 10px;
}

.admin-ads-page .data-table td {
    padding-top: 13px;
    padding-bottom: 13px;
}

.admin-ads-page .data-table code {
    font-size: 11px;
}

.admin-ads-page .muted-cell {
    font-size: 11.5px !important;
}

.admin-ads-page .status-pill {
    padding: 4px 8px;
    font-size: 10.5px;
}

.admin-ads-page .table-actions a,
.admin-ads-page .table-actions button {
    font-size: 11.5px;
}

.admin-ads-page .panel-note {
    font-size: 11px;
}

.admin-ads-page .import-notes p {
    font-size: 11.5px;
}

.ad-click-count {
    color: var(--maple-deep);
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 700;
}

.ad-click-count:hover {
    text-decoration: underline;
}

.ad-click-filter {
    margin-bottom: 0;
    margin-left: auto;
}

.ad-click-agent {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ad-click-location {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ads-code-input {
    min-height: 230px;
    font-family: var(--mono) !important;
    font-size: 12px !important;
    line-height: 1.65;
    tab-size: 2;
    white-space: pre;
}

.ad-code-preview {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ad-code-preview code {
    font-size: 9px;
}

.subcategory-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 253, 249, 0.72);
}

.search-results > .subcategory-strip {
    margin-top: 0;
    margin-bottom: 12px;
}

.subcategory-strip-label {
    margin-right: 3px;
    color: var(--ink-4);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.subcategory-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink-2);
    background: #fffdf8;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.subcategory-chip span {
    color: var(--ink-4);
    font-family: var(--mono);
    font-size: 9px;
}

.subcategory-chip:hover {
    border-color: #d7c4b7;
    color: var(--maple-deep);
    background: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

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

.subcategory-chip.is-active span {
    color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 640px) {
    .subcategory-strip {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
        width: 100%;
        gap: 5px;
        overflow: visible;
        padding: 9px 10px;
    }

    .subcategory-strip-label {
        grid-column: 1 / -1;
        margin: 0 0 1px;
    }

    .subcategory-chip {
        justify-content: space-between;
        min-width: 0;
        padding: 7px 8px;
        white-space: nowrap;
    }
}

.server-board {
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid #cbd7de;
    border-radius: 10px;
    background: #fffef0;
    box-shadow: 0 8px 22px rgba(23, 34, 46, 0.05);
}

.server-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
}

.server-table th {
    padding: 8px 13px;
    border-right: 1px solid #cbd7de;
    border-bottom: 1px solid #cbd7de;
    color: #152534;
    background: #dbe9f1;
    font-size: 12px;
    font-weight: 750;
    text-align: center;
}

.server-table th:first-child {
    width: 17%;
}

.server-table th:last-child,
.server-table td:last-child {
    border-right: 0;
}

.server-table td {
    padding: 9px 14px;
    border-right: 1px solid #eee8dc;
    border-bottom: 1px solid #eee8dc;
    color: var(--server-tone, #1739c8);
    line-height: 1.55;
    text-align: center;
    word-break: break-word;
}

.server-table tbody tr:nth-child(odd) {
    background: #fffef1;
}

.server-table tbody tr:nth-child(even) {
    background: #fff8fa;
}

.server-table tbody tr:last-child td {
    border-bottom: 0;
}

.server-table tbody tr:hover {
    background: #fff9e7;
}

.server-name {
    font-size: 12.5px;
    font-weight: 750;
    white-space: nowrap;
}

.server-popup-trigger {
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.server-popup-trigger:focus-visible {
    outline: 2px solid var(--maple);
    outline-offset: -2px;
}

.server-title-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% + 28px);
    min-height: 100%;
    margin: -9px -14px;
    padding: 9px 14px;
    color: inherit;
    text-align: center;
    text-decoration: none;
}

.server-title-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.server-title-text {
    display: block;
    width: calc(100% + 28px);
    margin: -9px -14px;
    padding: 9px 14px;
}

.server-ext {
    margin-left: 4px;
    font-size: 8.5px;
    letter-spacing: 0.02em;
    opacity: 0.55;
}

.server-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 20px;
}

.server-modal[hidden] {
    display: none;
}

.server-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 17, 24, 0.56);
    backdrop-filter: blur(3px);
}

.server-modal-card {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 25px 26px 23px;
    border: 1px solid #e1ddd2;
    border-top: 4px solid var(--server-tone, #1739c8);
    border-radius: 14px;
    background: #fffdf9;
    box-shadow: 0 28px 80px rgba(10, 17, 24, 0.32);
    animation: server-modal-in 0.16s ease-out;
}

.server-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink-3);
    background: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.server-modal-close:hover {
    color: var(--maple);
    border-color: #d7c4b7;
}

.server-modal-kicker {
    color: var(--maple);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.server-modal-card h2 {
    margin: 7px 35px 9px 0;
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.server-modal-desc {
    max-height: 42vh;
    overflow-y: auto;
    padding-right: 4px;
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.85;
    white-space: pre-wrap;
}

.server-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

body.modal-open {
    overflow: hidden;
}

@keyframes server-modal-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.server-desc {
    text-align: center;
    letter-spacing: 0.01em;
}

.server-desc-link {
    display: block;
    width: calc(100% + 28px);
    min-height: 100%;
    margin: -9px -14px;
    padding: 9px 14px;
    color: inherit;
    text-align: center;
    text-decoration: none;
}

.server-desc-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.server-desc-text {
    display: block;
    width: calc(100% + 28px);
    margin: -9px -14px;
    padding: 9px 14px;
    text-align: center;
}

.server-form-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(110px, 0.65fr);
}

.server-form-grid .field:first-of-type {
    grid-column: auto;
}

.server-preview {
    overflow: hidden;
    border: 1px solid #cbd7de;
    border-radius: 8px;
    background: #fffef1;
}

.server-preview-head {
    display: grid;
    grid-template-columns: 33% 1fr;
    border-bottom: 1px solid #cbd7de;
    background: #dbe9f1;
}

.server-preview-head span {
    padding: 7px 9px;
    color: #152534;
    font-size: 9px;
    font-weight: 750;
    text-align: center;
}

.server-preview-head span:first-child {
    border-right: 1px solid #cbd7de;
}

.server-preview-row {
    display: grid;
    grid-template-columns: 33% 1fr;
    color: var(--server-tone, #1739c8);
    font-size: 9px;
    line-height: 1.55;
    text-align: center;
}

.server-preview-row strong,
.server-preview-row span {
    padding: 8px 9px;
}

.server-preview-row strong {
    border-right: 1px solid #eee8dc;
    font-size: 9.5px;
}

.server-preview-note {
    margin-top: 12px;
    line-height: 1.7;
}

.server-admin-name {
    color: var(--server-tone);
    font-size: 10.5px;
    font-weight: 700;
}

.server-admin-desc {
    max-width: 380px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-expiry-time {
    display: block;
    margin-top: 3px;
    color: var(--ink-4);
    font-family: var(--mono);
    font-size: 8px;
    white-space: nowrap;
}

.server-expired-row td {
    opacity: 0.62;
}

.coin-value {
    color: #986d24;
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 700;
}

.table-link {
    color: var(--maple-deep);
    font-size: 9.5px;
    font-weight: 700;
}

.table-link:hover {
    text-decoration: underline;
}

.tone-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: #1739c8;
}



.search-layout {
    display: grid;
    grid-template-columns: 258px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding-top: 28px;
    padding-bottom: 74px;
}

.search-sidebar {
    position: sticky;
    top: 98px;
}

.sidebar-block {
    margin-bottom: 14px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--white);
}

.sidebar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 5px;
    color: var(--ink-2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-title small {
    color: var(--ink-4);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 500;
}

.category-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    border-radius: 9px;
    color: var(--ink-3);
    font-size: 12.5px;
    transition: color 0.16s ease, background 0.16s ease;
}

.category-nav a:hover {
    color: var(--ink);
    background: var(--paper);
}

.category-nav a.is-active {
    color: var(--ink);
    background: var(--maple-soft);
    font-weight: 700;
}

.category-nav a small {
    margin-left: auto;
    color: var(--ink-4);
    font-family: var(--mono);
    font-size: 8.5px;
}

.nav-symbol {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    border-radius: 7px;
    color: var(--cat, var(--ink-3));
    background: var(--cat-bg, var(--paper));
    font-size: 11px;
}

.cat-text-cash { --cat: #c9823e; --cat-bg: #fbf0df; }
.cat-text-consume { --cat: #5b8c6d; --cat-bg: #edf6ef; }
.cat-text-eqp { --cat: #b34d3c; --cat-bg: #f9e9e5; }
.cat-text-itemoption { --cat: #7c5bb0; --cat-bg: #f0eaf9; }
.cat-text-etc { --cat: #7a6a9c; --cat-bg: #f0ecf8; }
.cat-text-ins { --cat: #a06a4c; --cat-bg: #f7ede5; }
.cat-text-map { --cat: #3f7b8a; --cat-bg: #e8f3f5; }
.cat-text-mob { --cat: #7a4f4b; --cat-bg: #f3eae8; }
.cat-text-npc { --cat: #9a6b3f; --cat-bg: #f8efdf; }
.cat-text-pet { --cat: #c26a88; --cat-bg: #fbeaf0; }
.cat-text-skill { --cat: #4965a2; --cat-bg: #eaeef8; }

.subcategory-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.subcategory-list a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-3);
    font-size: 10.5px;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.subcategory-list a span {
    color: var(--ink-4);
    font-family: var(--mono);
    font-size: 8px;
}

.subcategory-list a:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.subcategory-list a.is-active {
    border-color: var(--maple);
    color: var(--maple-deep);
    background: var(--maple-soft);
    font-weight: 700;
}

.sidebar-tip {
    padding: 18px;
    border-radius: 17px;
    color: #c5d0d8;
    background: var(--ink);
}

.tip-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 11px;
    border-radius: 9px;
    color: var(--gold);
    background: rgba(255, 255, 255, 0.07);
    font-size: 14px;
}

.sidebar-tip strong {
    display: block;
    color: #fff;
    font-size: 12px;
}

.sidebar-tip p {
    margin-top: 6px;
    color: #8f9da8;
    font-size: 10.5px;
    line-height: 1.7;
}

.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 13px;
    padding: 0 3px;
}

.results-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-3);
    font-size: 11.5px;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 3px rgba(57, 122, 92, 0.11);
}

.results-page {
    padding-left: 9px;
    border-left: 1px solid var(--line);
    color: var(--ink-4);
    font-family: var(--mono);
    font-size: 9px;
}

.results-exact {
    padding: 2px 7px;
    border-radius: 999px;
    color: var(--maple-deep);
    background: var(--maple-soft);
    font-size: 8.5px;
    font-weight: 700;
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.sort-form {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-4);
    font-size: 10.5px;
}

.sort-form select {
    padding: 6px 24px 6px 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: 0;
    color: var(--ink-3);
    background: var(--white);
    font-size: 10.5px;
    cursor: pointer;
}

.level-form {
    color: var(--ink-3);
    font-size: 12.5px;
    font-weight: 700;
}

.level-form select {
    padding: 7px 28px 7px 10px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px 18px 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-left: 3px solid var(--cat);
    border-radius: 14px;
    background: var(--white);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.result-card:hover {
    border-color: var(--line-strong);
    border-left-color: var(--cat);
    box-shadow: 0 14px 30px rgba(23, 34, 46, 0.08);
    transform: translateX(3px);
}

.result-mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    margin-top: 2px;
    border-radius: 12px;
    color: var(--cat);
    background: var(--cat-bg);
    font-size: 19px;
}

.result-mark.has-icon {
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
}

.result-mark.has-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 2px rgba(23, 34, 46, 0.12));
}

.result-mark.has-tooltip {
    cursor: help;
}

.result-mark.has-tooltip:focus-visible {
    outline: 2px solid var(--maple);
    outline-offset: 2px;
}

.item-tooltip {
    position: fixed;
    z-index: 180;
    width: 336px;
    max-width: calc(100vw - 24px);
    overflow: hidden;
    border: 1px solid #2b3a46;
    border-radius: 14px;
    color: #dce6ee;
    background:
        radial-gradient(circle at 100% 0, rgba(223, 93, 61, 0.13), transparent 35%),
        #101a23;
    box-shadow: 0 24px 60px rgba(8, 14, 20, 0.38);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.13s ease, transform 0.13s ease, visibility 0.13s ease;
}

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

.item-tooltip-head {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 14px 12px;
    border-bottom: 1px solid #263540;
}

.item-tooltip-image {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    overflow: hidden;
    border: 1px solid #31424f;
    border-radius: 9px;
    color: var(--maple);
    background: #1a2630;
    font-size: 20px;
}

.item-tooltip-image img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    image-rendering: pixelated;
}

.item-tooltip-title {
    min-width: 0;
    flex: 1;
}

.item-tooltip-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.item-tooltip-kind,
.item-tooltip-sub {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 8.5px;
    font-weight: 700;
}

.item-tooltip-kind {
    color: #edceff;
    background: #4b2d63;
}

.item-tooltip-sub {
    color: #aadbe7;
    background: #243b47;
}

.item-tooltip-id {
    margin-left: auto;
    color: #69b8ff;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.item-tooltip-name {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-tooltip-body {
    padding: 11px 14px 12px;
}

.item-tooltip-level {
    padding-bottom: 8px;
    border-bottom: 1px solid #25343f;
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
}

.item-tooltip-level b {
    color: #69b8ff;
    font-family: var(--mono);
    font-size: 14px;
}

.item-tooltip-jobs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.job-chip {
    padding: 2px 7px;
    border: 1px solid #32745d;
    border-radius: 4px;
    color: #76dbb2;
    background: #132a23;
    font-size: 8.5px;
    font-weight: 700;
}

.item-tooltip-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 14px;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid #25343f;
}

.item-tooltip-stat span {
    display: block;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.item-tooltip-stat strong {
    display: block;
    color: #69b8ff;
    font-size: 14px;
    font-weight: 700;
}

.item-tooltip-stat strong.is-number {
    color: #69b8ff;
    font-family: var(--mono);
}

.item-tooltip-empty {
    padding: 5px 0;
    color: #82949f;
    font-size: 11px;
}

.item-tooltip-foot {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #25343f;
    color: #718591;
    font-size: 9px;
}

.result-main {
    min-width: 0;
    flex: 1;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.code-pill {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 5px;
    color: var(--ink-2);
    background: var(--paper);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.category-pill {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 5px;
    color: var(--cat, var(--ink-3));
    background: var(--cat-bg, var(--paper));
    font-size: 9.5px;
    font-weight: 700;
}

.sub-pill {
    display: inline-block;
    padding: 3px 7px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--ink-4);
    font-size: 9.5px;
}

.region-pill {
    color: var(--maple-deep);
    border-color: #e9c9bd;
    background: #fdf2ed;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.02em;
}

.result-card .category-pill {
    padding: 3px 8px;
    border: 1px solid rgba(23, 34, 46, 0.08);
    color: var(--ink-2);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.copy-id-button {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid #d8c7e6;
    border-radius: 5px;
    color: #7b3fa0;
    background: #faf5ff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.copy-id-button:hover,
.copy-id-button:focus-visible {
    border-color: #b995d1;
    color: #612b86;
    background: #f4e9fc;
    outline: none;
}

.copy-id-button.is-copied {
    color: var(--ok);
    border-color: #b9d9c8;
    background: #eef8f2;
}

.result-card .sub-pill {
    padding: 3px 8px;
    border-color: #d9d1c2;
    color: var(--ink-2);
    background: #f4efe5;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.45;
}

.result-card .code-pill {
    color: #cf2f2f;
    background: #fdeceb;
    font-weight: 700;
}

.result-card h3 {
    margin: 0;
    color: #1762c5;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
}

.result-card:hover h3 {
    color: #0e4f9f;
}

.result-subtitle {
    margin-top: 2px;
    color: var(--ink-3);
    font-size: 11px;
}

.result-desc {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    color: var(--ink-3);
    font-size: 11.5px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.result-arrow {
    flex: 0 0 auto;
    align-self: center;
    color: var(--line-strong);
    font-size: 18px;
    transition: color 0.18s ease, transform 0.18s ease;
}

.result-card:hover .result-arrow {
    color: var(--cat);
    transform: translateX(3px);
}

.empty-state {
    padding: 62px 30px;
    border: 1px dashed var(--line-strong);
    border-radius: 18px;
    background: rgba(255, 253, 249, 0.65);
    text-align: center;
}

.empty-mark {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: var(--maple);
    background: var(--maple-soft);
    font-family: var(--font-display);
    font-size: 24px;
}

.empty-state h2 {
    margin-bottom: 7px;
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 600;
}

.empty-state p {
    max-width: 430px;
    margin: 0 auto;
    color: var(--ink-3);
    font-size: 12.5px;
    line-height: 1.8;
}

.empty-actions {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 22px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 26px;
}

.pagination a,
.pagination > span {
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 7px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink-3);
    background: var(--white);
    font-family: var(--mono);
    font-size: 10px;
}

.pagination a:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.pagination a.is-active {
    border-color: var(--ink);
    color: #fff;
    background: var(--ink);
}

.page-arrow {
    font-family: var(--font) !important;
    font-size: 13px !important;
}

.page-arrow.is-disabled {
    opacity: 0.4;
}

.page-ellipsis {
    border: 0 !important;
    background: transparent !important;
}

/* ---------- Suggestions ---------- */

.suggest-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 40;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--white);
    box-shadow: 0 22px 50px rgba(23, 34, 46, 0.16);
}

.suggest-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
    transition: background 0.15s ease;
}

.suggest-item:last-child {
    border-bottom: 0;
}

.suggest-item:hover,
.suggest-item:focus {
    background: var(--paper);
    outline: 0;
}

.suggest-mark {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    color: var(--cat, var(--ink-3));
    background: var(--cat-bg, var(--paper));
    font-size: 10px;
}

.suggest-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.suggest-main strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggest-main small {
    overflow: hidden;
    color: var(--ink-4);
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggest-code {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 9px;
}

.suggest-empty {
    padding: 15px;
    color: var(--ink-3);
    font-size: 11.5px;
    text-align: center;
}

/* ---------- Entry detail ---------- */

.entry-hero {
    position: relative;
    overflow: hidden;
    padding: 30px 0 48px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 89% 6%, var(--cat-bg), transparent 36%),
        radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.75), transparent 40%),
        linear-gradient(135deg, #fbf8f1 0%, #f4eee3 100%);
}

.entry-hero > .container {
    position: relative;
    z-index: 1;
}

.entry-hero-watermark {
    position: absolute;
    top: 50%;
    right: 3.5%;
    color: var(--cat);
    font-size: clamp(150px, 20vw, 270px);
    line-height: 1;
    opacity: 0.055;
    transform: translateY(-50%) rotate(-8deg);
    pointer-events: none;
    user-select: none;
}

.entry-hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, var(--cat), transparent 55%);
    opacity: 0.65;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 28px;
    color: var(--ink-4);
    font-size: 10.5px;
}

.breadcrumb a:hover {
    color: var(--maple);
}

.breadcrumb span {
    color: var(--line-strong);
}

.entry-back-breadcrumb {
    margin-left: auto;
    padding: 6px 12px;
    font-size: 10.5px;
    line-height: 1.35;
}

.entry-hero-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 22px;
}

.entry-emblem {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border: 1px solid var(--cat);
    border-radius: 24px;
    color: var(--cat);
    background:
        radial-gradient(circle at 35% 24%, #fff 0%, var(--cat-bg) 70%);
    box-shadow:
        0 16px 30px rgba(23, 34, 46, 0.08),
        inset 0 0 0 5px rgba(255, 255, 255, 0.4);
    font-size: 36px;
}

.entry-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
}

.entry-code-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 158px;
    padding: 4px 5px 4px 9px;
    border: 1px solid #d9d1c2;
    border-radius: 8px;
    color: var(--ink-2);
    background: #f4efe5;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}

.entry-hero .entry-kicker .category-pill,
.entry-hero .entry-kicker .region-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 158px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entry-code-inline strong {
    color: var(--maple-deep);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.entry-code-copy {
    margin-top: 0;
    padding: 3px 6px;
    border-color: rgba(255, 255, 255, 0.16);
    border-radius: 5px;
    color: #c3ced6;
    background: rgba(255, 255, 255, 0.06);
    font-size: 8.5px;
    line-height: 1.3;
}

.entry-code-copy:hover,
.entry-code-copy.is-copied {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.entry-hero .sub-pill {
    padding: 4px 9px;
    border-color: #d9d1c2;
    color: var(--ink-2);
    background: #f4efe5;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.45;
}

.entry-hero .entry-kicker .category-pill {
    padding: 4px 9px;
    border: 1px solid #d9d1c2;
    border-radius: 5px;
    color: var(--cat, var(--ink-3));
    background: var(--cat-bg, var(--paper));
    font-size: 11px;
    font-weight: 650;
    line-height: 1.45;
}

.equipment-stats-card .field-count {
    padding: 5px 9px;
    color: var(--ink-3);
    font-family: var(--font);
    font-size: 10.5px;
    font-weight: 700;
}

.entry-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.entry-name-row h1 {
    min-width: 0;
}

.entry-title-block h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.entry-back-button {
    flex: 0 0 auto;
    background: rgba(255, 253, 249, 0.7);
}

.entry-subtitle {
    display: inline-flex;
    margin-top: 11px;
    padding: 4px 9px;
    border: 1px solid #e5dbca;
    border-radius: 999px;
    color: var(--ink-3);
    background: rgba(255, 253, 248, 0.72);
    font-size: 11.5px;
    line-height: 1.5;
}

.entry-code-card {
    min-width: 190px;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    color: #9eacb6;
    background: var(--ink);
    box-shadow: 0 16px 35px rgba(23, 34, 46, 0.16);
    text-align: right;
}

.entry-code-card > span {
    display: block;
    margin-bottom: 2px;
    color: #687986;
    font-family: var(--mono);
    font-size: 7.5px;
    letter-spacing: 0.18em;
}

.entry-code-card strong {
    display: block;
    color: #f3d49d;
    font-family: var(--mono);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.copy-button {
    margin-top: 7px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 6px;
    color: #b7c3cb;
    background: rgba(255, 255, 255, 0.04);
    font-size: 9px;
    transition: background 0.16s ease, color 0.16s ease;
}

.copy-button:hover,
.copy-button.is-copied {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.entry-code-inline .entry-code-copy {
    margin-top: 0;
    padding: 4px 9px;
    border-color: #d9d1c2;
    border-radius: 5px;
    color: var(--ink-2);
    background: #fffaf3;
    font-size: 10.5px;
    font-weight: 650;
    line-height: 1.25;
}

.entry-code-inline .entry-code-copy:hover,
.entry-code-inline .entry-code-copy.is-copied {
    color: var(--maple-deep);
    border-color: #d7b8a8;
    background: #fff3ea;
}

.entry-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    align-items: start;
    padding-top: 30px;
    padding-bottom: 74px;
}

.entry-aside {
    position: sticky;
    top: 98px;
}

.content-card {
    margin-bottom: 16px;
    padding: 28px 30px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
}

.entry-content .content-card {
    border-radius: 20px;
    background: linear-gradient(155deg, #fffefb 0%, #fbf7ef 100%);
    box-shadow: 0 12px 30px rgba(23, 34, 46, 0.045);
}

.entry-content .content-card-head {
    padding-bottom: 15px;
    border-bottom: 1px solid #eee5d7;
    margin-bottom: 18px;
}

.entry-content .content-card-head h2 {
    font-size: 28px;
}

.entry-content .field-list {
    border-top: 0;
}

.entry-content .field-row {
    padding: 15px 12px;
    border-bottom: 1px solid #eee5d7;
    border-radius: 10px;
    transition: background 0.18s ease;
}

.entry-content .field-row:hover {
    background: #faf6ed;
}

.entry-content .field-key span {
    align-self: flex-start;
    padding: 3px 7px;
    border-radius: 5px;
    background: #f5efe4;
    font-size: 11.5px;
}

.entry-content .field-key code {
    margin-left: 7px;
    font-size: 9px;
}

.entry-content .field-value {
    font-size: 13px;
    line-height: 1.9;
}

.raw-fields-card .content-card-head h2 {
    font-size: 30px;
}

.raw-fields-card .field-row {
    padding: 16px 12px;
}

.raw-fields-card .field-key span {
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 400;
}

.raw-fields-card .field-key code {
    margin-left: 8px;
    font-size: 11.5px;
    font-weight: 400;
}

.raw-fields-card .field-value {
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.95;
}

.map-life-card .content-card-head h2 {
    font-size: 30px;
}

.npc-map-card .content-card-head h2 {
    font-size: 30px;
}

.npc-map-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 8px;
}

.npc-map-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #e6dcce;
    border-radius: 11px;
    color: var(--ink-2);
    background: rgba(255, 253, 248, 0.86);
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

a.npc-map-item:hover {
    border-color: #d5b9a8;
    background: #fffaf4;
    transform: translateY(-1px);
}

.npc-map-item.is-unlinked {
    opacity: 0.82;
}

.npc-map-icon {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    overflow: hidden;
    place-items: center;
    border-radius: 9px;
    color: #557d99;
    background: #edf5fa;
    font-size: 17px;
}

.npc-map-icon img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    image-rendering: pixelated;
}

.npc-map-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.npc-map-copy strong {
    overflow: hidden;
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.npc-map-copy small {
    overflow: hidden;
    color: var(--ink-4);
    font-family: var(--mono);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.npc-map-badge {
    align-self: flex-start;
    padding: 3px 5px;
    border-radius: 4px;
    color: #557d99;
    background: #edf5fa;
    font-size: 9px;
    font-weight: 700;
}

.map-life-groups {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.map-life-group {
    min-width: 0;
    padding: 14px;
    border: 1px solid #eee3d3;
    border-radius: 14px;
    background: rgba(255, 253, 248, 0.7);
}

.map-life-group.is-npc {
    border-color: #d5e5dc;
    background: #f7fbf8;
}

.map-life-group.is-mob {
    border-color: #ecd7cd;
    background: #fdf8f4;
}

.map-life-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.map-life-group-head h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-2);
    font-size: 16px;
    font-weight: 750;
}

.map-life-group-head h3 i {
    color: #5a9475;
    font-size: 10px;
    font-style: normal;
}

.map-life-group.is-mob .map-life-group-head h3 i {
    color: #b46c54;
}

.map-life-group-head > span {
    display: inline-grid;
    min-width: 25px;
    height: 25px;
    padding: 0 7px;
    place-items: center;
    border-radius: 999px;
    color: #557360;
    background: #eaf5ee;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
}

.map-life-group.is-mob .map-life-group-head > span {
    color: #9a5d48;
    background: #f9eae3;
}

.map-life-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 8px;
}

.map-life-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 9px;
    border: 1px solid rgba(23, 34, 46, 0.07);
    border-radius: 11px;
    color: var(--ink-2);
    background: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

a.map-life-item:hover {
    border-color: #d8c6b4;
    background: #fffdf8;
    transform: translateY(-1px);
}

.map-life-item.is-unlinked {
    opacity: 0.82;
}

.map-life-icon {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    overflow: hidden;
    place-items: center;
    border-radius: 9px;
    background: #f7f2e8;
}

.map-life-item.is-npc .map-life-icon {
    background: #edf7f0;
}

.map-life-item.is-mob .map-life-icon {
    background: #fdf0e9;
}

.map-life-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    image-rendering: pixelated;
}

.map-life-icon b {
    color: #749480;
    font-size: 15px;
    font-weight: 500;
}

.map-life-item.is-mob .map-life-icon b {
    color: #b77b64;
}

.map-life-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 1px;
}

.map-life-copy strong {
    overflow: hidden;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-life-copy small {
    overflow: hidden;
    color: var(--ink-4);
    font-family: var(--mono);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-life-badge {
    align-self: flex-start;
    padding: 3px 5px;
    border-radius: 4px;
    color: #4b8062;
    background: #e8f4ec;
    font-size: 9px;
    font-weight: 700;
}

.map-life-item.is-mob .map-life-badge {
    color: #9d604b;
    background: #f9e8df;
}

.map-life-hidden {
    align-self: flex-start;
    padding: 3px 5px;
    border: 1px solid #e6d9c6;
    border-radius: 4px;
    color: var(--ink-4);
    font-size: 9px;
}

.map-life-empty {
    margin: 8px 0 2px;
    padding: 12px;
    border-radius: 8px;
    color: var(--ink-4);
    background: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .map-life-groups,
    .map-life-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

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

.content-card-head h2 {
    margin-top: 4px;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.description-body {
    color: var(--ink-2);
    font-size: 14px;
    line-height: 2.1;
    word-break: break-word;
}

.description-body.has-media {
    display: flex;
    align-items: flex-start;
    gap: 26px;
}

.description-media {
    display: grid;
    place-items: center;
    flex: 0 0 156px;
    width: 156px;
    height: 156px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 42%, #fff 0%, var(--paper) 72%);
}

.description-media img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 8px 12px rgba(23, 34, 46, 0.14));
}

.description-copy {
    flex: 1;
    min-width: 0;
    padding-top: 3px;
}

.muted-copy {
    color: var(--ink-3);
    font-size: 13px;
    line-height: 1.8;
}

.field-count {
    padding: 4px 8px;
    border-radius: 5px;
    color: var(--ink-4);
    background: var(--paper);
    font-family: var(--mono);
    font-size: 9px;
}

.field-list {
    border-top: 1px solid var(--line);
}

.field-row {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

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

.field-key {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.field-key span {
    color: var(--ink-2);
    font-size: 11.5px;
    font-weight: 700;
}

.field-key code {
    color: var(--ink-4);
    font-size: 8.5px;
}

.field-value {
    color: var(--ink-2);
    font-size: 12.5px;
    line-height: 1.85;
    word-break: break-word;
}

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

.equipment-stat {
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent),
        #faf7f0;
}

.skill-effect-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 16px;
}

.skill-effect {
    padding: 11px 13px;
    border: 1px solid #e7e1d6;
    border-radius: 9px;
    background: #faf7f0;
}

.skill-effect > span {
    display: block;
    margin-bottom: 4px;
    color: var(--ink-4);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.skill-effect p {
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.75;
}

.skill-effect small {
    display: block;
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid #e8e1d4;
    color: var(--ink-4);
    font-size: 11px;
    line-height: 1.6;
}

.skill-value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.skill-value {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid #e7e1d6;
    border-radius: 8px;
    background: #fffdf9;
}

.skill-value span {
    display: block;
    overflow: hidden;
    color: var(--ink-3);
    font-size: 11.5px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.skill-value code {
    color: var(--ink-4);
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 500;
}

.skill-value strong {
    display: block;
    margin-top: 4px;
    color: var(--maple-deep);
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 700;
}

.skill-value small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--ink-4);
    font-family: var(--mono);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.skill-values-source {
    margin-top: 14px;
    color: var(--ink-4);
    font-size: 10.5px;
}

.skill-values-source code {
    font-family: var(--mono);
    font-size: 10px;
}

@media (max-width: 760px) {
    .skill-value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.equipment-stat span {
    display: block;
    margin-bottom: 3px;
    color: var(--ink-3);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.equipment-stat strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
    font-weight: 750;
}

.equipment-stat strong.is-number {
    color: #c0392b;
}

.equipment-stat strong.is-increase {
    color: #c0392b;
}

.equipment-stats-source {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--ink-4);
    font-size: 9.5px;
}

.equipment-stats-source code {
    font-size: 9px;
}

.related-list {
    display: flex;
    flex-direction: column;
}

.related-card .content-card-head h2 {
    font-size: 30px;
}

.related-list a {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    padding: 13px 2px;
    border-top: 1px solid var(--line);
    font-size: 14.5px;
    font-weight: 400;
    transition: color 0.16s ease;
}

.related-list a:hover {
    color: var(--maple);
}

.related-list .mono {
    color: var(--ink-4);
    font-size: 12px;
    font-weight: 400;
}

.related-list a > span:last-child {
    color: var(--line-strong);
}

.side-card {
    margin-bottom: 14px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}

.side-card h3 {
    margin-bottom: 13px;
    font-size: 13px;
    font-weight: 800;
}

.entry-meta-card dl,
.side-card dl {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.entry-meta-card dl > div,
.side-card dl > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
    font-size: 10.5px;
}

.entry-meta-card dt,
.side-card dt {
    flex: 0 0 auto;
    color: var(--ink-4);
}

.entry-meta-card dd,
.side-card dd {
    color: var(--ink-2);
    text-align: right;
    word-break: break-word;
}

.entry-meta-card code {
    font-size: 9px;
}

.entry-meta-card {
    border-radius: 18px;
    background: linear-gradient(150deg, #fffefb 0%, #faf4e8 100%);
    box-shadow: 0 12px 28px rgba(23, 34, 46, 0.05);
}

.entry-meta-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 400;
}

.entry-meta-card h3::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: "";
    background: var(--maple);
    box-shadow: 0 0 0 4px rgba(223, 93, 61, 0.1);
}

.entry-meta-card dl > div {
    padding: 12px 0;
    font-size: 14.5px;
    line-height: 1.5;
}

.entry-meta-card dt {
    color: var(--ink-2);
    font-family: "SimHei", "Heiti SC", "Microsoft YaHei", sans-serif;
    font-size: 14.5px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.entry-meta-card dd {
    font-size: 14.5px;
    font-weight: 400;
}

.entry-meta-card code {
    padding: 1px 4px;
    border-radius: 4px;
    background: #faf5eb;
    font-size: 13px;
}

.entry-code-row {
    font-family: "SimHei", "Heiti SC", "Microsoft YaHei", sans-serif;
}

.entry-code-row dt {
    font-weight: 400;
}

.entry-code-dd {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
    font-family: "SimHei", "Heiti SC", "Microsoft YaHei", sans-serif;
}

.entry-code-row code {
    font-family: "SimHei", "Heiti SC", "Microsoft YaHei", sans-serif;
    font-weight: 400;
}

.entry-code-row .entry-copy-id {
    font-family: "SimHei", "Heiti SC", "Microsoft YaHei", sans-serif;
}

.entry-copy-id {
    padding: 3px 7px;
    border: 1px solid #e2d7c6;
    border-radius: 5px;
    color: var(--ink-3);
    background: #fffaf2;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    cursor: pointer;
    transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.entry-copy-id:hover,
.entry-copy-id.is-copied {
    border-color: #d7b8a8;
    color: var(--maple-deep);
    background: #fff3ea;
}

.entry-meta-feedback {
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.feedback-open-button {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 13px 12px;
    border: 1px solid #e7cdbf;
    border-radius: 13px;
    color: var(--ink-2);
    background:
        radial-gradient(circle at 100% 0, rgba(223, 93, 61, 0.08), transparent 55%),
        #fffaf5;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.feedback-open-button:hover {
    border-color: #dcae9a;
    background: #fff5ed;
    transform: translateY(-1px);
}

.feedback-login-button {
    text-decoration: none;
}

.feedback-login-button:hover {
    text-decoration: none;
}

.feedback-open-icon {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    color: var(--maple-deep);
    background: #fce9df;
    font-size: 16px;
}

.feedback-open-button > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.feedback-open-button strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 750;
    letter-spacing: 0.01em;
}

.feedback-open-button small {
    color: var(--ink-4);
    font-size: 11.5px;
    line-height: 1.5;
}

.feedback-dialog {
    width: min(590px, calc(100vw - 32px));
    max-width: 100%;
    max-height: calc(100vh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.feedback-dialog::backdrop {
    background: rgba(16, 25, 34, 0.48);
    backdrop-filter: blur(3px);
}

.feedback-form {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid #e7dbcb;
    border-radius: 20px;
    background: #fffdf9;
    box-shadow: 0 28px 90px rgba(16, 25, 34, 0.28);
}

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

.feedback-head h2 {
    margin-top: 4px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.feedback-close {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid #eadfce;
    border-radius: 9px;
    color: var(--ink-3);
    background: #fffaf3;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.feedback-close:hover {
    color: var(--maple);
    border-color: #e0b7a6;
}

.feedback-item-context {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 16px;
    padding: 9px 11px;
    border: 1px solid #eee4d4;
    border-radius: 9px;
    background: #faf6ed;
}

.feedback-item-context code {
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--maple-deep);
    background: #fff;
    font-size: 10px;
}

.feedback-item-context span {
    overflow: hidden;
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feedback-fields {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.feedback-fields .field > span:first-child {
    font-size: 13px;
}

.feedback-fields .field textarea {
    min-height: 130px;
}

.feedback-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.feedback-actions {
    display: flex;
    gap: 9px;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #eee5d7;
}

.feedback-actions .button {
    flex: 1;
    min-height: 40px;
    font-size: 12px;
}

@media (max-width: 520px) {
    .feedback-form {
        padding: 18px;
    }

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

    .feedback-actions {
        flex-direction: column-reverse;
    }
}

.source-card {
    color: #c3ced6;
    background:
        radial-gradient(circle at 95% 0, rgba(223, 93, 61, 0.2), transparent 40%),
        var(--ink);
}

.source-mark {
    display: inline-block;
    margin-bottom: 12px;
    padding: 3px 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    color: var(--gold);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.12em;
}

.source-card h3 {
    color: #fff;
}

.source-card p {
    color: #8e9ca6;
    font-size: 11px;
    line-height: 1.8;
}

.source-card p code {
    color: #d7b980;
    font-size: 10px;
}

.source-card a {
    display: inline-block;
    margin-top: 15px;
    color: var(--gold);
    font-size: 10.5px;
    font-weight: 700;
}

.user-tip-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    background: var(--maple-soft);
    border-color: #f2d3c8;
}

.user-tip-card p {
    color: #775247;
    font-size: 10.5px;
    line-height: 1.7;
}

.user-tip-card a {
    grid-column: 2;
    color: var(--maple-deep);
    font-size: 10.5px;
    font-weight: 700;
}

.notfound-section {
    padding: 80px 0;
}

/* ---------- Account ---------- */

.account-hero {
    padding: 44px 0;
    color: #fff;
    background:
        radial-gradient(circle at 90% 0, rgba(223, 93, 61, 0.22), transparent 35%),
        var(--ink);
}

.checkin-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0, rgba(231, 177, 93, 0.16), transparent 35%),
        var(--white);
}

.checkin-balance {
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding: 5px 11px;
    border: 1px solid #ecd5a8;
    border-radius: 999px;
    color: #8a6325;
    background: #fdf7e9;
}

.checkin-balance strong {
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 600;
    line-height: 1;
}

.checkin-balance span {
    font-size: 9px;
    font-weight: 700;
}

.checkin-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 26px;
}

.checkin-copy p {
    margin-bottom: 12px;
    color: var(--ink-3);
    font-size: 12.5px;
}

.checkin-copy p strong {
    color: var(--maple-deep);
}

.checkin-copy form {
    display: inline-flex;
}

.checkin-history {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    max-width: 340px;
}

.checkin-history span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink-4);
    font-family: var(--mono);
    font-size: 8px;
}

.checkin-history i {
    color: #a57827;
    font-style: normal;
    font-weight: 700;
}

.account-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.account-identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.account-avatar {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    color: var(--gold);
    background: rgba(255, 255, 255, 0.06);
    font-family: var(--font-display);
    font-size: 34px;
}

.account-avatar.has-image {
    overflow: hidden;
    border-color: rgba(255, 214, 174, 0.55);
    background: #fff7ec;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.account-avatar.has-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-picker-card .avatar-picker-note {
    margin: 2px 0 14px;
    color: var(--ink-3);
    font-size: 12.5px;
    line-height: 1.7;
}

.avatar-picker-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 9px;
}

.avatar-option {
    min-width: 0;
    cursor: pointer;
}

.avatar-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.avatar-option-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 7px 5px 6px;
    border: 1px solid #e8dfd2;
    border-radius: 11px;
    background: #fffdf9;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.avatar-option-inner img,
.avatar-option-letter {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff5e8;
}

.avatar-option-letter {
    color: #fff;
    background: linear-gradient(135deg, var(--maple), #a83a24);
    font-family: var(--font-display);
    font-size: 24px;
}

.avatar-option-inner small {
    overflow: hidden;
    max-width: 100%;
    color: var(--ink-3);
    font-size: 10px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar-option:hover .avatar-option-inner {
    border-color: #d7c4b1;
    background: #fffaf4;
    transform: translateY(-1px);
}

.avatar-option input:checked + .avatar-option-inner {
    border-color: var(--maple);
    background: #fff5ed;
    box-shadow: 0 0 0 2px rgba(223, 93, 61, 0.12);
}

.avatar-option input:focus-visible + .avatar-option-inner {
    outline: 2px solid rgba(223, 93, 61, 0.35);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .avatar-picker-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.account-identity .section-kicker {
    color: var(--gold);
}

.account-identity h1 {
    margin: 3px 0 2px;
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 600;
    line-height: 1.1;
}

.account-identity p {
    color: #8f9ca6;
    font-size: 11px;
}

.account-stats {
    display: flex;
    align-items: center;
    gap: 0;
}

.account-stats > div {
    display: flex;
    flex-direction: column;
    min-width: 100px;
    padding: 0 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.account-stats strong {
    color: #fff;
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 600;
}

.account-stats span {
    color: #81909b;
    font-size: 9.5px;
}

.account-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    align-items: start;
    padding-top: 28px;
    padding-bottom: 74px;
}

.account-aside {
    position: sticky;
    top: 98px;
}

.account-empty {
    padding: 34px 20px;
    text-align: center;
}

.account-empty > span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    border-radius: 50%;
    color: var(--maple);
    background: var(--maple-soft);
    font-size: 20px;
}

.account-empty p {
    margin-bottom: 16px;
    color: var(--ink-3);
    font-size: 12px;
}

.history-list {
    border-top: 1px solid var(--line);
}

.history-list a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 12px;
    padding: 11px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    transition: color 0.16s ease;
}

.history-list a:hover {
    color: var(--maple);
}

.history-icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    color: var(--ink-3);
    background: var(--paper);
    font-size: 12px;
}

.history-query {
    overflow: hidden;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-time {
    color: var(--ink-4);
    font-size: 9.5px;
}

.history-list .category-pill {
    --cat: var(--ink-3);
    --cat-bg: var(--paper);
}

.quick-links {
    display: flex;
    flex-direction: column;
}

.quick-links a {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    color: var(--ink-3);
    font-size: 11.5px;
}

.quick-links a:hover {
    color: var(--maple);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 700;
    white-space: nowrap;
}

.status-pill::before {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    content: "";
    background: currentColor;
}

.status-pill.is-active {
    color: var(--ok);
    background: #eaf4ee;
}

.status-pill.is-off {
    color: var(--danger);
    background: #faeae7;
}

.status-pill.is-idle {
    color: #9a6d24;
    background: #fbf1dd;
}

/* ---------- Category color tokens ---------- */

.cat-cash,
.tag-cash { --cat: #c9823e; --cat-bg: #fbf0df; }
.cat-consume,
.tag-consume { --cat: #5b8c6d; --cat-bg: #edf6ef; }
.cat-eqp,
.tag-eqp { --cat: #b34d3c; --cat-bg: #f9e9e5; }
.cat-itemoption,
.tag-itemoption { --cat: #7c5bb0; --cat-bg: #f0eaf9; }
.cat-etc,
.tag-etc { --cat: #7a6a9c; --cat-bg: #f0ecf8; }
.cat-ins,
.tag-ins { --cat: #a06a4c; --cat-bg: #f7ede5; }
.cat-map,
.tag-map { --cat: #3f7b8a; --cat-bg: #e8f3f5; }
.cat-mob,
.tag-mob { --cat: #7a4f4b; --cat-bg: #f3eae8; }
.cat-npc,
.tag-npc { --cat: #9a6b3f; --cat-bg: #f8efdf; }
.cat-pet,
.tag-pet { --cat: #c26a88; --cat-bg: #fbeaf0; }
.cat-skill,
.tag-skill { --cat: #4965a2; --cat-bg: #eaeef8; }

/* =========================================================
   Admin login
   ========================================================= */

.admin-login-body {
    min-height: 100vh;
    background: var(--paper);
}

.admin-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.96fr);
    min-height: 100vh;
}

.admin-login-art {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 46px 56px 34px;
    overflow: hidden;
    color: #f6f2e9;
    background:
        radial-gradient(circle at 86% 3%, rgba(223, 93, 61, 0.3), transparent 34%),
        radial-gradient(circle at 10% 90%, rgba(231, 177, 93, 0.12), transparent 30%),
        #121d27;
}

.admin-login-art::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 40% 40%, #000, transparent 75%);
}

.admin-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.admin-brand .brand-mark {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.admin-brand > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.admin-brand strong {
    font-size: 17px;
    letter-spacing: 0.03em;
}

.admin-brand small {
    margin-top: 5px;
    color: #70818e;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.admin-login-copy {
    position: relative;
    z-index: 2;
    max-width: 540px;
    margin: auto 0;
    padding: 50px 0;
}

.admin-login-copy .section-kicker {
    color: var(--gold);
}

.admin-login-copy h1 {
    margin: 20px 0 18px;
    font-family: var(--font-display);
    font-size: clamp(46px, 5vw, 68px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.admin-login-copy h1 em {
    color: var(--maple);
    font-style: normal;
}

.admin-login-copy > p {
    max-width: 420px;
    color: #93a1ac;
    font-size: 13px;
    line-height: 1.9;
}

.admin-login-metrics {
    display: flex;
    margin-top: 38px;
}

.admin-login-metrics > div {
    display: flex;
    flex-direction: column;
    min-width: 120px;
    padding: 0 25px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-login-metrics > div:first-child {
    padding-left: 0;
    border-left: 0;
}

.admin-login-metrics strong {
    color: #fff;
    font-family: var(--font-display);
    font-size: 29px;
    font-weight: 600;
}

.admin-login-metrics span {
    color: #73838f;
    font-size: 9px;
}

.admin-login-foot {
    position: relative;
    z-index: 2;
    color: #657581;
    font-size: 9.5px;
}

.admin-login-panel {
    display: grid;
    place-items: center;
    padding: 46px;
    background:
        radial-gradient(circle at 100% 0, rgba(231, 177, 93, 0.12), transparent 34%),
        var(--paper);
}

.admin-login-form-wrap {
    width: min(380px, 100%);
}

.admin-login-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 5px;
    color: var(--maple-deep);
    background: var(--maple-soft);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.admin-login-form-wrap h2 {
    margin: 14px 0 4px;
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.admin-login-sub {
    margin-bottom: 25px;
    color: var(--ink-3);
    font-size: 12px;
}

.admin-login-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
    font-size: 10.5px;
}

.admin-login-links a {
    color: var(--ink-3);
    font-weight: 600;
}

.admin-login-links a:hover {
    color: var(--maple);
}

.admin-login-note {
    margin-top: 16px;
    color: var(--ink-4);
    font-size: 9.5px;
    line-height: 1.7;
}

.admin-login-flash {
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid #d7e5da;
    border-radius: 8px;
    color: var(--ok);
    background: #eef6f0;
    font-size: 11px;
}

.admin-login-flash.is-error {
    border-color: #efc9c1;
    color: var(--danger);
    background: #fdf0ec;
}

.admin-login-flash.is-info {
    border-color: #d9e0e6;
    color: var(--ink-3);
    background: #f2f4f5;
}

/* =========================================================
   Admin workspace
   ========================================================= */

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

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    width: 252px;
    padding: 24px 17px 18px;
    overflow-y: auto;
    color: #aebbc5;
    background:
        radial-gradient(circle at 0 0, rgba(223, 93, 61, 0.14), transparent 30%),
        #14202b;
}

.admin-sidebar .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: none;
}

.admin-sidebar .brand-mark svg {
    width: 24px;
}

.admin-sidebar > .admin-brand {
    padding: 0 8px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}

.admin-nav-label {
    padding: 11px 12px 7px;
    color: #8a9ca8;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border-radius: 8px;
    color: #a8b6c0;
    font-size: 14px;
    font-weight: 550;
    transition: color 0.16s ease, background 0.16s ease;
}

.admin-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.admin-nav a.is-active {
    color: #fff;
    background: rgba(223, 93, 61, 0.17);
}

.admin-nav a.is-active .admin-nav-icon {
    color: var(--maple);
}

.admin-nav-icon {
    display: grid;
    place-items: center;
    width: 23px;
    color: #708592;
    font-size: 14.5px;
}

.admin-sidebar-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 14px 9px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.admin-user div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.admin-user strong {
    overflow: hidden;
    color: #e3e9ed;
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user small {
    color: #7d8e9b;
    font-size: 10px;
}

.admin-logout {
    padding: 4px 6px;
    border: 0;
    color: #9caab5;
    background: none;
    font-size: 11px;
}

.admin-logout:hover {
    color: var(--maple);
}

.admin-workspace {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    margin-left: 252px;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 18px;
    height: 66px;
    padding: 0 32px;
    border-bottom: 1px solid #e3dfd4;
    background: rgba(246, 244, 237, 0.9);
    backdrop-filter: blur(14px);
}

.admin-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9a9f9f;
    font-size: 10.5px;
}

.admin-breadcrumb a:hover {
    color: var(--maple);
}

.admin-breadcrumb strong {
    color: var(--ink-2);
    font-weight: 700;
}

.admin-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.admin-status-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #76837f;
    font-size: 9.5px;
}

.admin-status-dot i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4c9a70;
    box-shadow: 0 0 0 3px rgba(76, 154, 112, 0.12);
}

.admin-main {
    flex: 1;
    width: 100%;
    max-width: 1480px;
    padding: 30px 32px 42px;
}

.admin-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 32px;
    border-top: 1px solid #e1ddd2;
    color: #9a9e9d;
    font-family: var(--mono);
    font-size: 8.5px;
}

.admin-menu-button {
    display: none;
}

.admin-overlay {
    display: none;
}

.admin-toasts {
    top: 78px;
    right: 30px;
}

/* Admin page heading */

.admin-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}

.admin-page-head h1 {
    margin: 6px 0 3px;
    font-family: var(--font-display);
    font-size: clamp(30px, 3.2vw, 40px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.admin-page-head p {
    color: var(--ink-3);
    font-size: 11.5px;
}

.admin-page-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}

.admin-file-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid #ddd8cc;
    border-radius: 999px;
    color: var(--ink-3);
    background: rgba(255, 253, 249, 0.65);
    font-family: var(--mono);
    font-size: 9px;
}

.admin-file-pill i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4c9a70;
}

/* Stats */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 18px;
}

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

.stat-card {
    position: relative;
    min-height: 144px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid #e1ddd2;
    border-radius: 16px;
    background: var(--white);
}

.stat-card.stat-dark {
    color: #fff;
    border-color: var(--ink);
    background:
        radial-gradient(circle at 100% 0, rgba(223, 93, 61, 0.28), transparent 44%),
        var(--ink);
}

.stat-label {
    display: block;
    color: var(--ink-3);
    font-size: 10px;
    font-weight: 650;
}

.stat-dark .stat-label {
    color: #94a3ae;
}

.stat-card strong {
    display: block;
    margin: 6px 0 2px;
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.stat-card strong small {
    color: var(--ink-4);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
}

.stat-foot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ink-4);
    font-size: 9px;
}

.stat-dark .stat-foot {
    color: #8a9aa5;
}

.stat-foot i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--maple);
}

.stat-watermark {
    position: absolute;
    right: 15px;
    bottom: 5px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 56px;
    line-height: 1;
    opacity: 0.04;
}

.stat-dark .stat-watermark {
    color: #fff;
    opacity: 0.08;
}

/* Panels & grids */

.admin-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-grid-main {
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
}

.admin-grid-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-grid-side .panel {
    margin-bottom: 0;
}

.admin-grid-import {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.admin-grid-edit {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.admin-grid-settings {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
}

.panel {
    margin-bottom: 18px;
    padding: 22px 24px;
    border: 1px solid #e1ddd2;
    border-radius: 16px;
    background: var(--white);
}

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

.panel-head h2 {
    margin-top: 3px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.panel-head > a {
    flex: 0 0 auto;
    color: var(--ink-3);
    font-size: 10px;
    font-weight: 700;
}

.panel-head > a:hover {
    color: var(--maple);
}

.panel-note {
    color: var(--ink-4);
    font-size: 9.5px;
}

.panel-empty {
    padding: 18px 0;
    color: var(--ink-3);
    font-size: 11.5px;
}

.panel-empty a {
    color: var(--maple-deep);
    font-weight: 700;
}

.panel-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--ink-3);
    font-size: 10px;
    font-weight: 700;
}

.panel-link:hover {
    color: var(--maple);
}

/* Coverage */

.coverage-list {
    display: flex;
    flex-direction: column;
}

.coverage-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 0;
    border-top: 1px solid #eee9df;
}

.coverage-row:first-child {
    border-top: 0;
}

.coverage-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 31px;
    height: 31px;
    border-radius: 8px;
    color: var(--cat);
    background: var(--cat-bg);
    font-size: 12px;
}

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

.coverage-name {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.coverage-name strong {
    font-size: 10.5px;
    font-weight: 700;
}

.coverage-name span {
    overflow: hidden;
    color: var(--ink-4);
    font-family: var(--mono);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coverage-bar {
    height: 3px;
    overflow: hidden;
    border-radius: 2px;
    background: #eee9df;
}

.coverage-bar span {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: var(--ink);
    opacity: 0.6;
}

.coverage-count {
    flex: 0 0 48px;
    color: var(--ink-4);
    font-family: var(--mono);
    font-size: 9px;
    text-align: right;
}

.coverage-count.is-ready {
    color: var(--ink-2);
}

/* Health */

.health-list {
    display: flex;
    flex-direction: column;
}

.health-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid #eee9df;
    font-size: 10px;
}

.health-list > div:first-child {
    border-top: 0;
}

.health-list span {
    color: var(--ink-4);
}

.health-list strong {
    color: var(--ink-2);
    font-weight: 650;
    text-align: right;
}

.health-list code {
    font-size: 9px;
}

.mini-user-list {
    display: flex;
    flex-direction: column;
}

.mini-user-list > div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-top: 1px solid #eee9df;
}

.mini-user-list > div:first-child {
    border-top: 0;
}

.mini-user-name {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    font-size: 10.5px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-user-time {
    color: var(--ink-4);
    font-size: 8.5px;
}

/* Tables */

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-top: 1px solid #e5e0d5;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10.5px;
    text-align: left;
}

.data-table th {
    padding: 9px 12px;
    color: var(--ink-4);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    padding: 11px 12px;
    border-top: 1px solid #eee9df;
    color: var(--ink-2);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background 0.15s ease;
}

.data-table tbody tr:hover {
    background: #faf7f0;
}

.data-table strong {
    font-weight: 650;
}

.data-table code {
    color: var(--ink-3);
    font-size: 9px;
}

.data-table .table-empty {
    padding: 30px;
    color: var(--ink-4);
    text-align: center;
}

.code-strong {
    color: var(--ink) !important;
    font-size: 10px !important;
    font-weight: 600;
    white-space: nowrap;
}

.table-sub {
    display: block;
    max-width: 240px;
    overflow: hidden;
    color: var(--ink-4);
    font-size: 8.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.muted-cell {
    color: var(--ink-4) !important;
    font-size: 9.5px;
}

.entry-desc-cell {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    white-space: nowrap;
}

.table-actions a,
.table-actions button {
    color: var(--ink-3);
    font-size: 9.5px;
    font-weight: 650;
}

.table-actions a:hover {
    color: var(--maple);
}

.table-actions form {
    display: inline-flex;
}

.inline-form {
    display: inline-flex;
}

.table-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.table-cat-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 29px;
    height: 29px;
    border-radius: 7px;
    color: var(--cat);
    background: var(--cat-bg);
    font-size: 11px;
}

.table-category > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.table-category strong {
    font-size: 10.5px;
}

.table-category small {
    color: var(--ink-4);
    font-family: var(--mono);
    font-size: 8px;
}

.table-user {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* Filters */

.admin-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.admin-search {
    display: flex;
    align-items: center;
    gap: 5px;
    width: min(300px, 100%);
    padding: 0 10px;
    border: 1px solid #ddd7ca;
    border-radius: 8px;
    background: #fffdf9;
}

.admin-search span {
    color: var(--ink-4);
    font-size: 13px;
}

.admin-search input {
    width: 100%;
    height: 34px;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-size: 11px;
}

.admin-filter select {
    height: 34px;
    max-width: 190px;
    padding: 0 8px;
    border: 1px solid #ddd7ca;
    border-radius: 8px;
    outline: 0;
    color: var(--ink-2);
    background: #fffdf9;
    font-size: 10.5px;
}

.filter-result {
    margin-left: auto;
    color: var(--ink-4);
    font-family: var(--mono);
    font-size: 8.5px;
}

.admin-pagination {
    justify-content: flex-end;
    margin-top: 18px;
}

.admin-pagination a,
.admin-pagination > span {
    min-width: 29px;
    height: 29px;
    font-size: 9px;
}

/* Admin entry editor */

.admin-entry-edit-head {
    position: relative;
    align-items: flex-end;
    overflow: hidden;
    padding: 26px 28px;
    border: 1px solid #e5dbcd;
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 0%, rgba(223, 93, 61, 0.09), transparent 37%),
        radial-gradient(circle at 93% 10%, rgba(52, 100, 132, 0.1), transparent 38%),
        linear-gradient(135deg, #fffdf9 0%, #f6f1e8 100%);
}

.admin-entry-edit-head::after {
    position: absolute;
    right: 18px;
    bottom: -24px;
    content: "EDIT";
    color: rgba(91, 74, 56, 0.052);
    font-family: var(--font-display);
    font-size: 118px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    pointer-events: none;
}

.admin-entry-edit-head-main,
.admin-entry-edit-head .admin-page-actions {
    position: relative;
    z-index: 1;
}

.entry-edit-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid #c9dbe6;
    border-radius: 999px;
    color: #426987;
    background: #f4fafd;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.entry-edit-kicker i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5b87a8;
    box-shadow: 0 0 0 3px rgba(91, 135, 168, 0.13);
}

.admin-entry-edit-head h1 {
    margin-top: 11px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.admin-entry-edit-head p {
    margin-top: 8px;
    color: var(--ink-3);
    font-size: 14px;
    line-height: 1.7;
}

.entry-edit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.entry-edit-meta span {
    padding: 5px 9px;
    border: 1px solid rgba(216, 207, 190, 0.9);
    border-radius: 999px;
    color: var(--ink-4);
    background: rgba(255, 255, 255, 0.7);
    font-size: 10.5px;
    font-weight: 600;
}

.admin-entry-edit-head .admin-page-actions {
    flex: 0 0 auto;
    align-items: flex-end;
    flex-direction: column;
    gap: 9px;
}

.admin-entry-edit-page .panel {
    border-radius: 16px;
}

.admin-entry-edit-page .entry-edit-panel {
    background: linear-gradient(145deg, #fffefb 0%, #fbf7ef 100%);
}

.admin-entry-edit-page .panel-head h2 {
    font-size: 27px;
}

.admin-entry-edit-page .code-pill {
    padding: 5px 10px;
    font-size: 12px;
}

.admin-entry-edit-page .field > span:first-child {
    font-size: 15px;
}

.admin-entry-edit-page .field > span:first-child small {
    font-size: 12.5px;
}

.admin-entry-edit-page .field input,
.admin-entry-edit-page .field textarea {
    font-size: 15.5px;
}

.admin-entry-edit-page .field input {
    min-height: 50px;
}

.admin-entry-edit-page .field textarea {
    line-height: 1.8;
}

.admin-entry-edit-page .form-actions .button {
    font-size: 12.5px;
}

.admin-entry-edit-page .admin-grid-side .health-list > div {
    padding: 11px 0;
    font-size: 13px;
}

.admin-entry-edit-page .admin-grid-side .health-list strong {
    font-size: 13.5px;
}

.admin-entry-edit-page .admin-grid-side .health-list code {
    padding: 3px 7px;
    border-radius: 5px;
    background: #f6f1e7;
    font-size: 11.5px;
}

.admin-entry-edit-page .raw-field-list {
    border-radius: 10px;
}

.admin-entry-edit-page .raw-field-list > div {
    padding: 9px 10px;
    border-radius: 7px;
    font-size: 12.5px;
}

.admin-entry-edit-page .raw-field-list code {
    font-size: 11.5px;
}

.admin-entry-edit-page .raw-field-list span {
    font-size: 12.5px;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .admin-entry-edit-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .admin-entry-edit-head h1 {
        font-size: 34px;
    }

    .admin-entry-edit-head::after {
        font-size: 78px;
    }

    .admin-entry-edit-head .admin-page-actions {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 16px;
    }
}

.admin-equipment-page .admin-data-head::after {
    content: "STATS";
}

.admin-equipment-page .equipment-cancel-link {
    padding: 5px 10px;
    border: 1px solid #e6dccd;
    border-radius: 999px;
    color: var(--ink-3);
    background: #fffdf9;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
}

.admin-equipment-page .equipment-cancel-link:hover {
    border-color: #d3bea9;
    color: var(--maple-deep);
    background: #fff8f2;
}

.equipment-json-field textarea {
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.75;
}

/* Data management page */

.admin-data-head {
    position: relative;
    align-items: flex-end;
    overflow: hidden;
    padding: 26px 28px;
    border: 1px solid #e5dbcd;
    border-radius: 18px;
    background:
        radial-gradient(circle at 7% 0%, rgba(223, 93, 61, 0.09), transparent 36%),
        radial-gradient(circle at 94% 8%, rgba(60, 106, 136, 0.1), transparent 38%),
        linear-gradient(135deg, #fffdf9 0%, #f6f1e8 100%);
}

.admin-data-head::after {
    position: absolute;
    right: 18px;
    bottom: -24px;
    content: "ENTRIES";
    color: rgba(91, 74, 56, 0.052);
    font-family: var(--font-display);
    font-size: 112px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    pointer-events: none;
}

.admin-data-head-main,
.admin-data-head .admin-page-actions {
    position: relative;
    z-index: 1;
}

.entries-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid #e8cbbd;
    border-radius: 999px;
    color: var(--maple-deep);
    background: #fff8f3;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.entries-kicker i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--maple);
    box-shadow: 0 0 0 3px rgba(223, 93, 61, 0.12);
}

.admin-data-head h1 {
    margin-top: 11px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.admin-data-head p {
    margin-top: 8px;
    max-width: 640px;
    color: var(--ink-3);
    font-size: 14px;
    line-height: 1.75;
}

.entries-head-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.entries-head-stats > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid rgba(219, 205, 187, 0.85);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(4px);
}

.entries-head-stats strong {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 19px;
    line-height: 1;
}

.entries-head-stats strong.is-text {
    max-width: 150px;
    overflow: hidden;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entries-head-stats span {
    color: var(--ink-4);
    font-size: 10.5px;
    font-weight: 600;
}

.admin-data-head .admin-page-actions {
    flex: 0 0 auto;
    align-items: center;
    flex-direction: row;
    gap: 9px;
}

.admin-data-page .entries-filter-bar {
    padding: 11px;
    border: 1px solid #eee5d8;
    border-radius: 11px;
    background: linear-gradient(135deg, #fffdf9 0%, #fbf7ef 100%);
}

.admin-data-page .admin-search {
    border-color: #e5dbcd;
    border-radius: 9px;
    background: #fff;
}

.admin-data-page .admin-filter select {
    border-color: #e5dbcd;
    border-radius: 9px;
    background: #fff;
}

.admin-data-page .entries-filter-bar .button-sm {
    border-radius: 9px;
}

.admin-data-page .data-table tbody tr {
    transition: background 0.18s ease;
}

.admin-data-page .data-table tbody tr:hover {
    background: #fffdf8;
}

.admin-data-page .code-strong {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid #ece4d7;
    border-radius: 6px;
    color: #5f5345;
    background: #faf5eb;
    letter-spacing: 0.03em;
}

.admin-data-page .entries-table .status-pill {
    padding: 4px 9px;
    color: #426987;
    background: #f0f7fb;
    font-size: 11px;
    font-weight: 700;
}

.admin-data-page .data-table .category-pill {
    display: inline-block;
    padding: 4px 9px;
    border: 1px solid #e8dfd0;
    border-radius: 999px;
    color: #796955;
    background: #fffaf1;
}

.admin-data-page .table-actions .table-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border: 1px solid #d9e2ea;
    border-radius: 999px;
    color: #426987;
    background: #f4f9fc;
    font-size: 10.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.admin-data-page .table-actions .table-action span {
    display: inline-grid;
    place-items: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(66, 105, 135, 0.1);
    font-size: 9px;
    line-height: 1;
}

.admin-data-page .table-actions .table-action:hover {
    border-color: #b8cedd;
    background: #eaf4fb;
    transform: translateY(-1px);
}

.admin-data-page .table-actions .table-action-view {
    color: #66725e;
    border-color: #dde4d6;
    background: #f8fbf5;
}

.admin-data-page .table-actions .table-action-view span {
    background: rgba(102, 114, 94, 0.1);
}

.admin-data-page .table-actions .table-action-view:hover {
    border-color: #c2d1b9;
    background: #f0f7eb;
}

.admin-data-page .table-actions .table-action-delete {
    border-color: #ecc5bb;
    color: #aa4a37;
    background: #fff7f4;
}

.admin-data-page .table-actions .table-action-delete span {
    background: rgba(170, 74, 55, 0.1);
    font-size: 11px;
}

.admin-data-page .table-actions .table-action-delete:hover {
    border-color: #dfa18f;
    color: #8e3523;
    background: #fdece7;
}

.admin-data-page .admin-pagination a,
.admin-data-page .admin-pagination > span {
    border-radius: 8px;
}

.admin-data-page .admin-pagination a.is-active {
    border-color: var(--maple);
    color: #fff;
    background: var(--maple);
}

@media (max-width: 900px) {
    .admin-data-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .admin-data-head h1 {
        font-size: 34px;
    }

    .admin-data-head::after {
        font-size: 78px;
    }

    .admin-data-head .admin-page-actions {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 16px;
    }
}

.admin-data-page .admin-page-head p {
    font-size: 13px;
}

.admin-data-page .admin-file-pill {
    font-size: 11px;
}

.admin-data-page .admin-search input {
    font-size: 12.5px;
}

.admin-data-page .admin-filter select {
    font-size: 12px;
}

.admin-data-page .filter-result {
    font-size: 10.5px;
}

.admin-data-page .data-table {
    font-size: 14px;
}

.admin-data-page .data-table th {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 11px;
}

.admin-data-page .data-table td {
    padding-top: 14px;
    padding-bottom: 14px;
}

.admin-data-page .data-table code {
    font-size: 12.5px;
}

.admin-data-page .code-strong {
    font-size: 13px !important;
}

.admin-data-page .table-sub {
    font-size: 12.5px;
}

.admin-data-page .muted-cell {
    font-size: 13px !important;
}

.admin-data-page .entry-desc-cell {
    font-size: 13.5px !important;
}

.admin-data-page .data-table .category-pill {
    padding: 4px 9px;
    font-size: 12.5px;
}

.admin-data-page .table-actions a,
.admin-data-page .table-actions button {
    font-size: 11.5px;
}

.admin-data-page .admin-pagination a,
.admin-data-page .admin-pagination > span {
    min-width: 32px;
    height: 32px;
    font-size: 11px;
}

.admin-clear-button {
    color: var(--danger) !important;
    border-color: #efc9c1 !important;
}

.admin-clear-button:hover {
    background: #fdf0ec !important;
}

/* Public version update page */

.update-hero {
    padding: 50px 0 28px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 92% 8%, rgba(223, 93, 61, 0.08), transparent 32%),
        linear-gradient(180deg, #fbf8f1, #f7f2e8);
}

.update-hero-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.update-hero h1 {
    margin: 5px 0 4px;
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.update-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.update-title-main {
    position: relative;
    padding-bottom: 5px;
}

.update-title-main::after {
    position: absolute;
    bottom: 0;
    left: 3px;
    width: 58px;
    height: 3px;
    border-radius: 3px;
    content: "";
    background: linear-gradient(90deg, var(--maple), var(--gold));
}

.update-title-region {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid #e8cabd;
    border-radius: 10px;
    color: var(--maple-deep);
    background: linear-gradient(135deg, #fffaf6 0%, #fdf0e9 100%);
    box-shadow: 0 5px 14px rgba(223, 93, 61, 0.08);
    font-family: var(--mono);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transform: translateY(3px);
}

.update-title-region::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: "";
    background: var(--maple);
    box-shadow: 0 0 0 3px rgba(223, 93, 61, 0.12);
}

.update-hero p {
    color: var(--ink-3);
    font-size: 12.5px;
}

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

.update-subtitle {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
    color: var(--ink-3);
    font-size: 12px;
}

.update-subtitle.is-empty {
    color: var(--ink-4);
    font-size: 12.5px;
}

.update-version-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid #e8cabd;
    border-radius: 999px;
    color: var(--maple-deep);
    background: linear-gradient(135deg, #fffaf6 0%, #fdf0e9 100%);
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.update-version-chip em {
    color: var(--maple);
    font-style: normal;
    font-size: 12px;
}

.update-compare-label {
    color: var(--ink-4);
    font-size: 11px;
    font-weight: 600;
}

.update-change-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid #d8e7de;
    border-radius: 999px;
    color: #4b6e5a;
    background: linear-gradient(135deg, #f7fcf9 0%, #eef7f2 100%);
    font-size: 11px;
    font-weight: 600;
}

.update-change-chip strong {
    color: #2e7451;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
}

.update-region-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.update-region-switch label {
    color: var(--ink-4);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.update-region-switch select {
    height: 30px;
    max-width: 210px;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

#update-region {
    max-width: 100px;
}

#update-history {
    max-width: 210px;
}

.update-history-switch,
.update-region-only {
    flex: 0 0 auto;
}

.update-back-button {
    flex: 0 0 auto;
    box-shadow: 0 8px 20px rgba(223, 93, 61, 0.2);
}

.update-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    margin-top: 20px;
}

.update-summary > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.update-summary-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px !important;
    margin-left: auto;
}

.update-stat {
    position: relative;
    min-width: 112px;
    padding: 11px 14px 12px 16px;
    overflow: hidden;
    border: 1px solid #e6e0d4;
    border-radius: 11px;
    background: linear-gradient(135deg, #fffefb 0%, #faf7f0 100%);
    box-shadow: 0 5px 14px rgba(23, 34, 46, 0.045);
}

.update-stat::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    content: "";
    background: #c9b99f;
}

.update-stat.is-added::before {
    background: #4b9a73;
}

.update-stat.is-updated::before {
    background: #c08b35;
}

.update-stat.is-removed::before {
    background: #cc6453;
}

.update-stat.is-time {
    min-width: 178px;
    background: linear-gradient(135deg, #fbfdff 0%, #f2f6fa 100%);
}

.update-stat.is-time::before {
    background: #6f8fae;
}

.update-stat-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-4);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.update-stat-label i {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    color: #7b8a96;
    background: rgba(123, 138, 150, 0.1);
    font-family: var(--mono);
    font-size: 10px;
    font-style: normal;
    line-height: 1;
}

.update-stat.is-added .update-stat-label i {
    color: #357a58;
    background: rgba(75, 154, 115, 0.13);
}

.update-stat.is-updated .update-stat-label i {
    color: #966b25;
    background: rgba(192, 139, 53, 0.14);
}

.update-stat.is-removed .update-stat-label i {
    color: #b24d3d;
    background: rgba(204, 100, 83, 0.13);
}

.update-stat.is-time .update-stat-label i {
    color: #537795;
    background: rgba(111, 143, 174, 0.14);
}

.update-summary span {
    color: var(--ink-4);
    font-size: 11px;
}

.update-summary strong {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
}

.update-summary strong.is-added {
    color: var(--ok);
}

.update-summary strong.is-updated {
    color: #a16c21;
}

.update-summary strong.is-removed {
    color: var(--danger);
}

.update-summary strong.is-time {
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
}

.update-body {
    min-height: 55vh;
    padding: 26px 0 70px;
}

.update-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    margin-bottom: 16px;
}

.update-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fffdf9;
}

.update-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 7px;
    color: var(--ink-3);
    font-size: 13px;
    font-weight: 650;
}

.update-tabs a:hover {
    color: var(--maple);
    text-decoration: none;
}

.update-tabs a.is-active {
    color: #fff;
    background: var(--ink);
}

.update-tabs a span {
    font-family: var(--mono);
    font-size: 10px;
    opacity: 0.7;
}

.update-filter {
    display: flex;
    flex: 1;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    color: var(--ink-4);
    font-size: 10px;
}

.update-filter-label {
    padding-top: 6px;
    font-size: 10px;
    white-space: nowrap;
}

.update-category-radios {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
    max-width: 760px;
}

.update-radio {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink-3);
    background: #fffdf9;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.update-radio input {
    width: 12px;
    height: 12px;
    margin: 0;
    accent-color: var(--maple);
    cursor: pointer;
}

.update-radio small {
    color: var(--ink-4);
    font-family: var(--mono);
    font-size: 8.5px;
    font-weight: 500;
}

.update-radio:hover {
    border-color: #d7c4b7;
}

.update-radio:has(input:checked) {
    border-color: var(--maple);
    color: var(--maple-deep);
    background: #fff4ef;
}

.update-radio:has(input:checked) small {
    color: #a9644d;
}

.update-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffdf9;
}

.update-item {
    display: grid;
    grid-template-columns: 44px 58px 118px minmax(0, 1fr) 140px;
    gap: 12px;
    align-items: center;
    padding: 13px 16px;
    border-top: 1px solid #eee9df;
}

.update-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border: 1px solid #e7e1d6;
    border-radius: 8px;
    color: var(--ink-4);
    background: #faf7f0;
    font-size: 16px;
}

.update-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 1px 1px rgba(23, 34, 46, 0.12));
}

.update-item:first-child {
    border-top: 0;
}

.update-item:hover {
    background: #fcf9f3;
}

.update-type {
    justify-self: start;
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.update-type.is-added {
    color: var(--ok);
    background: #eaf4ee;
}

.update-type.is-updated {
    color: #96631d;
    background: #fbf1dd;
}

.update-type.is-removed {
    color: var(--danger);
    background: #faeae7;
}

.update-code code {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 13.5px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.update-code span {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: #1762c5;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.update-main {
    min-width: 0;
}

.update-main strong {
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 700;
}

.update-old {
    color: var(--ink-4);
    font-size: 11.5px;
    text-decoration: line-through;
}

.update-arrow {
    margin: 0 5px;
    color: var(--ink-4);
}

.update-note {
    margin-left: 7px;
    padding: 2px 6px;
    border-radius: 4px;
    color: #8a642c;
    background: #f8efdf;
    font-size: 9px;
}

.update-sub {
    margin-top: 3px;
    overflow: hidden;
    color: var(--ink-4);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.update-action {
    color: var(--ink-4);
    font-size: 10px;
    text-align: right;
}

.update-action a {
    white-space: nowrap;
}

.update-missing {
    color: #a8a096;
    font-size: 9.5px;
}

@media (max-width: 760px) {
    .update-hero {
        padding-top: 34px;
    }

    .update-hero-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .update-hero h1 {
        font-size: 30px;
    }

    .update-summary {
        gap: 8px;
    }

    .update-summary-actions {
        width: 100%;
        margin-left: 0;
    }

    .update-stat,
    .update-stat.is-time {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }

    .update-summary strong {
        font-size: 18px;
    }

    .update-summary strong.is-time {
        font-size: 12.5px;
    }

    .update-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .update-tabs {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .update-tabs::-webkit-scrollbar {
        display: none;
    }

    .update-tabs a {
        flex: 0 0 auto;
    }

    .update-filter {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .update-category-radios {
        justify-content: flex-start;
        width: 100%;
        max-width: none;
    }

    .update-item {
        grid-template-areas:
            "icon type code"
            "main main main"
            "action action action";
        grid-template-columns: 42px auto minmax(0, 1fr);
        gap: 8px 10px;
        padding: 13px;
    }

    .update-icon {
        grid-area: icon;
    }

    .update-type {
        grid-area: type;
    }

    .update-code {
        grid-area: code;
        text-align: right;
    }

    .update-main {
        grid-area: main;
    }

    .update-action {
        grid-area: action;
        text-align: left;
    }
}

/* Admin version contrast */

.admin-contrast-head {
    position: relative;
    align-items: flex-end;
    overflow: hidden;
    padding: 26px 28px;
    border: 1px solid #e5dbcd;
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 0%, rgba(223, 93, 61, 0.09), transparent 37%),
        radial-gradient(circle at 93% 10%, rgba(72, 116, 146, 0.1), transparent 38%),
        linear-gradient(135deg, #fffdf9 0%, #f5f1e9 100%);
}

.admin-contrast-head::after {
    position: absolute;
    right: 18px;
    bottom: -24px;
    content: "CONTRAST";
    color: rgba(91, 74, 56, 0.052);
    font-family: var(--font-display);
    font-size: 106px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    pointer-events: none;
}

.admin-contrast-head-main,
.admin-contrast-head .admin-page-actions {
    position: relative;
    z-index: 1;
}

.contrast-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid #e8cbbd;
    border-radius: 999px;
    color: var(--maple-deep);
    background: #fff8f3;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.contrast-kicker i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--maple);
    box-shadow: 0 0 0 3px rgba(223, 93, 61, 0.12);
}

.admin-contrast-head h1 {
    margin-top: 11px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.admin-contrast-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-contrast-title > span:first-child {
    position: relative;
    padding-bottom: 5px;
}

.admin-contrast-title > span:first-child::after {
    position: absolute;
    bottom: 0;
    left: 3px;
    width: 54px;
    height: 3px;
    border-radius: 3px;
    content: "";
    background: linear-gradient(90deg, var(--maple), var(--gold));
}

.contrast-region-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid #e8cabd;
    border-radius: 10px;
    color: var(--maple-deep);
    background: linear-gradient(135deg, #fffaf6 0%, #fdf0e9 100%);
    box-shadow: 0 5px 14px rgba(223, 93, 61, 0.08);
    font-family: var(--mono);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transform: translateY(3px);
}

.contrast-region-badge::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: "";
    background: var(--maple);
    box-shadow: 0 0 0 3px rgba(223, 93, 61, 0.12);
}

.admin-contrast-head p {
    margin-top: 8px;
    max-width: 660px;
    color: var(--ink-3);
    font-size: 14px;
    line-height: 1.75;
}

.contrast-head-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.contrast-head-stats > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid rgba(219, 205, 187, 0.85);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
}

.contrast-head-stats strong {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 19px;
    line-height: 1;
}

.contrast-head-stats span {
    color: var(--ink-4);
    font-size: 10.5px;
    font-weight: 600;
}

.contrast-head-stats .contrast-head-region {
    align-self: center;
    min-height: 39px;
    padding: 4px 7px 4px 11px;
    border: 1px solid rgba(219, 205, 187, 0.85);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
}

.contrast-head-stats .contrast-head-region label {
    color: var(--ink-4);
    font-size: 10.5px;
    font-weight: 600;
}

.contrast-head-stats .contrast-head-region select {
    height: 29px;
    color: var(--ink);
    background: transparent;
    font-size: 11.5px;
    font-weight: 700;
}

.admin-contrast-head .admin-page-actions {
    flex: 0 0 auto;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-contrast-page .contrast-version-settings {
    border-radius: 16px;
    background: linear-gradient(145deg, #fffefb 0%, #fbf7ef 100%);
}

.admin-contrast-page .contrast-version-grid {
    gap: 14px;
}

.admin-contrast-page .contrast-version-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(150deg, #fffefb 0%, #fbf7ef 100%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-contrast-page .contrast-version-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    content: "";
    background: #d8c7b0;
}

.admin-contrast-page .contrast-version-card.is-old::before {
    background: linear-gradient(90deg, #6f8fae, #a8c0d4);
}

.admin-contrast-page .contrast-version-card.is-new::before {
    background: linear-gradient(90deg, var(--maple), #e6aa83);
}

.admin-contrast-page .contrast-version-card:hover {
    border-color: #dccbbb;
    box-shadow: 0 10px 24px rgba(23, 34, 46, 0.08);
    transform: translateY(-2px);
}

.admin-contrast-page .contrast-version-count {
    margin-top: 8px;
    font-size: 42px;
}

.admin-contrast-page .contrast-summary {
    border-radius: 14px;
    background: linear-gradient(145deg, #fffefb 0%, #fbf7ef 100%);
    box-shadow: 0 5px 16px rgba(23, 34, 46, 0.04);
}

.admin-contrast-page .contrast-summary strong {
    font-family: var(--mono);
    font-size: 19px;
}

@media (max-width: 900px) {
    .admin-contrast-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .admin-contrast-head h1 {
        font-size: 34px;
    }

    .admin-contrast-head::after {
        font-size: 76px;
    }

    .admin-contrast-head .admin-page-actions {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 16px;
    }
}

.admin-contrast-page .admin-page-head p {
    font-size: 15px;
    line-height: 1.7;
}

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

.admin-contrast-page .section-kicker {
    font-size: 9.5px;
}

.admin-contrast-page .region-switch-form label {
    font-size: 11.5px;
}

.admin-contrast-page .region-switch-form select {
    font-size: 12.5px;
}

.admin-contrast-page .button {
    font-size: 12.5px;
}

.contrast-version-settings {
    margin-bottom: 14px;
    padding: 18px 20px;
}

.contrast-version-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.contrast-version-fields .field {
    gap: 6px;
}

.contrast-version-fields .field > span:first-child {
    font-size: 14.5px;
}

.contrast-version-fields .field > span:first-child small {
    font-size: 12.5px;
}

.contrast-version-fields .field input {
    padding: 11px 13px;
    font-size: 16px;
}

.contrast-version-fields .button {
    min-height: 46px;
}

.contrast-version-form .panel-note {
    margin-top: 10px;
    font-size: 12.5px;
    line-height: 1.7;
}

.contrast-version-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.contrast-version-card,
.contrast-run-card {
    margin-bottom: 0;
}

.contrast-version-count {
    margin-top: 2px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.15;
}

.contrast-version-count small {
    color: var(--ink-4);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
}

.contrast-version-meta {
    margin: 6px 0 11px;
    color: var(--ink-3);
    font-size: 13.5px;
    line-height: 1.65;
}

.contrast-version-path {
    display: block;
    margin-bottom: 14px;
    overflow: hidden;
    color: var(--ink-4);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contrast-version-card .button {
    width: 100%;
}

.contrast-version-ready {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 12px;
    border: 1px solid #cfe2d6;
    border-radius: 999px;
    color: #3f7658;
    background: #f4fbf7;
    font-size: 12px;
    font-weight: 700;
}

.contrast-version-ready span {
    display: inline-grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #e1f1e7;
    font-size: 10px;
}

.contrast-run-note {
    margin-bottom: 15px;
    color: var(--ink-3);
    font-size: 14.5px;
    line-height: 1.75;
}

.contrast-card-clear-form {
    margin-top: 8px;
}

.contrast-clear-form {
    margin-top: 9px;
}

.contrast-clear-note {
    margin-top: 9px;
    color: var(--ink-4);
    font-size: 12px;
    line-height: 1.7;
}

.contrast-dir-error {
    margin-top: 8px;
    color: var(--danger);
    font-size: 12px;
}

.contrast-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    margin-bottom: 18px;
    padding: 14px 18px;
    border: 1px solid #e1ddd2;
    border-radius: 12px;
    background: var(--white);
}

.contrast-summary > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contrast-summary span {
    color: var(--ink-4);
    font-size: 11.5px;
}

.contrast-summary strong {
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
}

.admin-contrast-page .data-table {
    font-size: 14px;
}

.admin-contrast-page .data-table th {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 11px;
}

.admin-contrast-page .data-table td {
    padding-top: 15px;
    padding-bottom: 15px;
}

.admin-contrast-page .data-table code {
    font-size: 12.5px;
}

.admin-contrast-page .status-pill {
    padding: 4px 9px;
    font-size: 11px;
}

.admin-contrast-page .muted-cell {
    font-size: 12.5px !important;
}

@media (max-width: 1100px) {
    .contrast-version-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .contrast-version-grid,
    .contrast-version-fields {
        grid-template-columns: 1fr;
    }

    .contrast-version-fields .button {
        width: 100%;
    }
}

/* Admin navigation management */

.admin-navigation-head {
    position: relative;
    align-items: flex-end;
    overflow: hidden;
    padding: 26px 28px;
    border: 1px solid #e5dbcd;
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 0%, rgba(223, 93, 61, 0.09), transparent 37%),
        radial-gradient(circle at 93% 10%, rgba(80, 116, 143, 0.1), transparent 38%),
        linear-gradient(135deg, #fffdf9 0%, #f6f1e8 100%);
}

.admin-navigation-head::after {
    position: absolute;
    right: 18px;
    bottom: -24px;
    content: "NAVIGATION";
    color: rgba(91, 74, 56, 0.052);
    font-family: var(--font-display);
    font-size: 98px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    pointer-events: none;
}

.admin-navigation-head-main,
.admin-navigation-head .admin-page-actions {
    position: relative;
    z-index: 1;
}

.navigation-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid #e8cbbd;
    border-radius: 999px;
    color: var(--maple-deep);
    background: #fff8f3;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.navigation-kicker i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--maple);
    box-shadow: 0 0 0 3px rgba(223, 93, 61, 0.12);
}

.admin-navigation-head h1 {
    margin-top: 11px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.admin-navigation-head p {
    margin-top: 8px;
    max-width: 640px;
    color: var(--ink-3);
    font-size: 14px;
    line-height: 1.75;
}

.navigation-head-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.navigation-head-stats > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid rgba(219, 205, 187, 0.85);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
}

.navigation-head-stats strong {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 19px;
    line-height: 1;
}

.navigation-head-stats span {
    color: var(--ink-4);
    font-size: 10.5px;
    font-weight: 600;
}

.navigation-head-stats .navigation-stock-pill {
    align-self: center;
    min-height: 39px;
    padding: 10px 13px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
}

.admin-navigation-head .admin-page-actions {
    flex: 0 0 auto;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 9px;
}

.admin-navigation-page #nav-form {
    border-radius: 16px;
    background: linear-gradient(145deg, #fffefb 0%, #fbf7ef 100%);
}

.admin-navigation-page .admin-grid-side .panel {
    border-radius: 16px;
    background: linear-gradient(145deg, #fffefb 0%, #f7f9fb 100%);
}

.admin-navigation-page > .panel {
    border-radius: 16px;
}

.admin-navigation-page .data-table tbody tr {
    transition: background 0.18s ease;
}

.admin-navigation-page .data-table tbody tr:hover {
    background: #fffdf8;
}

@media (max-width: 900px) {
    .admin-navigation-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .admin-navigation-head h1 {
        font-size: 34px;
    }

    .admin-navigation-head::after {
        font-size: 68px;
    }

    .admin-navigation-head .admin-page-actions {
        align-items: flex-start;
        margin-top: 16px;
    }
}

.admin-navigation-page .admin-page-head p {
    font-size: 14px;
}

.admin-navigation-page .admin-file-pill {
    font-size: 12px;
}

.admin-navigation-page .field > span:first-child {
    font-size: 14px;
}

.admin-navigation-page .field > span:first-child small {
    font-size: 12px;
}

.admin-navigation-page .field input,
.admin-navigation-page .field select,
.admin-navigation-page .field textarea {
    font-size: 15px;
}

.admin-navigation-page .field-hint {
    font-size: 12.5px;
}

.admin-navigation-page .data-table {
    font-size: 13px;
}

.admin-navigation-page .data-table th {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 11px;
}

.admin-navigation-page .data-table td {
    padding-top: 14px;
    padding-bottom: 14px;
}

.admin-navigation-page .data-table code {
    font-size: 12px;
}

.admin-navigation-page .status-pill {
    padding: 4px 8px;
    font-size: 11px;
}

.admin-navigation-page .table-actions a,
.admin-navigation-page .table-actions button {
    font-size: 12px;
}

.admin-navigation-page .panel-note {
    font-size: 12px;
}

.admin-navigation-page .import-notes p {
    font-size: 12.5px;
}

.nav-url-cell {
    max-width: 340px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Admin password page */

.admin-password-head {
    position: relative;
    align-items: flex-end;
    overflow: hidden;
    padding: 26px 28px;
    border: 1px solid #e5dbcd;
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 0%, rgba(223, 93, 61, 0.09), transparent 37%),
        radial-gradient(circle at 93% 10%, rgba(80, 116, 143, 0.1), transparent 38%),
        linear-gradient(135deg, #fffdf9 0%, #f6f1e8 100%);
}

.admin-password-head::after {
    position: absolute;
    right: 18px;
    bottom: -24px;
    content: "SECURE";
    color: rgba(91, 74, 56, 0.052);
    font-family: var(--font-display);
    font-size: 110px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    pointer-events: none;
}

.admin-password-head-main {
    position: relative;
    z-index: 1;
}

.password-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid #e8cbbd;
    border-radius: 999px;
    color: var(--maple-deep);
    background: #fff8f3;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.password-kicker i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--maple);
    box-shadow: 0 0 0 3px rgba(223, 93, 61, 0.12);
}

.admin-password-head h1 {
    margin-top: 11px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.admin-password-head p {
    margin-top: 8px;
    max-width: 650px;
    color: var(--ink-3);
    font-size: 14px;
    line-height: 1.75;
}

.password-head-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.password-head-meta span {
    padding: 5px 9px;
    border: 1px solid rgba(216, 207, 190, 0.9);
    border-radius: 999px;
    color: var(--ink-4);
    background: rgba(255, 255, 255, 0.7);
    font-size: 10.5px;
    font-weight: 600;
}

.admin-password-page .password-form-panel {
    border-radius: 16px;
    background: linear-gradient(145deg, #fffefb 0%, #fbf7ef 100%);
}

.admin-password-page .password-form-panel .panel-head h2 {
    font-size: 27px;
}

.admin-password-page .field > span:first-child {
    font-size: 14.5px;
}

.admin-password-page .field > span:first-child small {
    font-size: 12.5px;
}

.admin-password-page .field input {
    font-size: 15px;
}

.admin-password-page .password-toggle {
    font-size: 12px;
}

.admin-password-page .form-actions .button {
    font-size: 12.5px;
}

.admin-password-page .admin-grid-side .panel {
    border-radius: 16px;
    background: linear-gradient(145deg, #fffefb 0%, #f7f9fb 100%);
}

.admin-password-page .health-list > div {
    padding: 11px 0;
    font-size: 13px;
}

.admin-password-page .health-list strong {
    font-size: 13.5px;
}

.admin-password-page .health-list code {
    padding: 3px 7px;
    border-radius: 5px;
    background: #f6f1e7;
    font-size: 11.5px;
}

.admin-password-page .security-note {
    background:
        radial-gradient(circle at 100% 0, rgba(223, 93, 61, 0.06), transparent 50%),
        linear-gradient(145deg, #fffefb 0%, #fbf7ef 100%);
}

.admin-password-page .security-note h3 {
    font-size: 22px;
}

.admin-password-page .security-note p {
    font-size: 13px;
    line-height: 1.75;
}

.admin-password-page .security-note .source-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e8cbbd;
    border-radius: 10px;
    color: var(--maple-deep);
    background: #fff5ed;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .admin-password-head {
        padding: 22px;
    }

    .admin-password-head h1 {
        font-size: 34px;
    }

    .admin-password-head::after {
        font-size: 76px;
    }
}

.admin-password-page .admin-page-head p {
    font-size: 13px;
}

.admin-password-page .field > span:first-child {
    font-size: 13.5px;
}

.admin-password-page .field > span:first-child small {
    font-size: 11.5px;
}

.admin-password-page .form-alert {
    font-size: 13px;
}

.admin-password-page .health-list > div {
    font-size: 12px;
}

.admin-password-page .health-list code {
    font-size: 10.5px;
}

.admin-password-page .security-note p {
    font-size: 11.5px;
}

/* Admin visit analytics */

.admin-visits-page .admin-data-head::after {
    content: "VISITS";
}

.admin-visits-page .visits-table th:nth-child(1) {
    width: 150px;
}

.admin-visits-page .visits-table th:nth-child(2) {
    width: 32%;
}

.admin-visits-page .visits-table th:nth-child(3) {
    width: 150px;
}

.admin-visits-page .visits-table th:nth-child(4) {
    width: 190px;
}

.admin-visits-page .visits-table th:nth-child(5) {
    width: 110px;
}

.admin-visits-page .visits-table th:nth-child(6) {
    width: 90px;
}

.admin-visits-page .visit-time {
    white-space: nowrap;
}

.admin-visits-page .visit-page a {
    color: var(--maple-deep);
    font-weight: 600;
    text-decoration: none;
}

.admin-visits-page .visit-page a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.admin-visits-page .visit-origin {
    line-height: 1.5;
}

.admin-visits-page .visit-origin code {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 5px;
    color: #5f5345;
    background: #faf5eb;
    font-size: 11.5px;
}

.admin-visits-page .visit-origin small {
    display: block;
    margin-top: 4px;
    color: var(--ink-4);
    font-size: 10.5px;
}

.admin-visits-page .visit-referrer {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-visits-page .visit-referrer a {
    color: #426987;
    text-decoration: none;
}

.admin-visits-page .visit-referrer a:hover {
    text-decoration: underline;
}

.admin-visits-page .visit-referrer span {
    color: var(--ink-4);
}

.admin-visits-page .visit-browser {
    white-space: nowrap;
}

.admin-visits-page .visit-duration {
    display: inline-flex;
    padding: 4px 8px;
    border: 1px solid #e6ddcd;
    border-radius: 999px;
    color: #7a6a55;
    background: #fbf7ef;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-visits-page .data-table tbody tr:hover {
    background: #fffdf8;
}

.admin-visits-page .visits-date-field {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #e5dbcd;
    border-radius: 9px;
    background: #fff;
}

.admin-visits-page .visits-date-field > span {
    color: var(--ink-4);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-visits-page .visits-date-field input {
    width: 118px;
    border: 0;
    outline: 0;
    color: var(--ink-2);
    background: transparent;
    font-family: var(--mono);
    font-size: 10.5px;
}

.admin-visits-page .visits-date-sep {
    color: var(--ink-4);
    font-size: 10px;
}

@media (max-width: 900px) {
    .admin-visits-page .visits-date-field {
        flex: 1 1 150px;
    }

    .admin-visits-page .visits-date-field input {
        width: 100%;
    }
}

/* Admin feedback messages */

.admin-feedback-head::after {
    content: "MESSAGES";
}

.admin-feedback-page .feedback-table th:nth-child(1) {
    width: 72px;
}

.admin-feedback-page .feedback-table th:nth-child(2) {
    width: 180px;
}

.admin-feedback-page .feedback-table th:nth-child(3) {
    width: 32%;
}

.admin-feedback-page .feedback-table th:nth-child(4) {
    width: 130px;
}

.admin-feedback-page .feedback-table th:nth-child(5) {
    width: 130px;
}

.admin-feedback-page .feedback-table th:nth-child(6) {
    width: 80px;
}

.admin-feedback-page .feedback-table th:nth-child(7) {
    width: 150px;
}

.feedback-type {
    display: inline-flex;
    padding: 4px 8px;
    border: 1px solid #e7d9c9;
    border-radius: 999px;
    color: #766654;
    background: #faf5eb;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.feedback-type.is-bug {
    border-color: #edc9c0;
    color: #a94e3c;
    background: #fdf2ee;
}

.feedback-type.is-suggestion {
    border-color: #cddfd4;
    color: #3f7359;
    background: #f3faf6;
}

.feedback-type.is-correction {
    border-color: #cfdce7;
    color: #496d88;
    background: #f3f8fc;
}

.feedback-unread-row {
    background: #fffdf8;
}

.feedback-item {
    line-height: 1.5;
}

.feedback-item > a:first-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--ink-2);
    text-decoration: none;
}

.feedback-item > a:first-child:hover {
    color: var(--maple-deep);
}

.feedback-item code {
    align-self: flex-start;
    padding: 2px 5px;
    border-radius: 4px;
    background: #faf5eb;
    font-size: 9.5px;
}

.feedback-item span {
    overflow: hidden;
    max-width: 170px;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feedback-page-link {
    display: inline-block;
    margin-top: 4px;
    color: #4a7595;
    font-size: 9.5px;
    font-weight: 650;
    text-decoration: none;
}

.feedback-page-link:hover {
    text-decoration: underline;
}

.feedback-detail summary {
    overflow: hidden;
    max-width: 390px;
    color: var(--ink-2);
    font-size: 11px;
    line-height: 1.55;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.feedback-detail summary:hover {
    color: var(--maple-deep);
}

.feedback-detail div {
    max-width: 430px;
    margin-top: 7px;
    padding: 8px 10px;
    border-left: 2px solid #e7d4c1;
    color: var(--ink-3);
    background: #fcf8f0;
    font-size: 11px;
    line-height: 1.7;
    white-space: normal;
}

.feedback-contact {
    overflow: hidden;
    max-width: 120px;
    color: var(--ink-3);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feedback-origin {
    line-height: 1.5;
}

.feedback-origin span {
    display: block;
    overflow: hidden;
    max-width: 120px;
    color: var(--ink-2);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feedback-origin code {
    display: inline-block;
    margin-top: 3px;
    color: var(--ink-4);
    font-size: 9px;
}

.feedback-time {
    white-space: nowrap;
}

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

.admin-feedback-page .feedback-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.admin-feedback-page .feedback-action {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    min-width: 104px;
    padding: 6px 10px;
    border: 1px solid #d4e5db;
    border-radius: 999px;
    color: #3f7658;
    background: #f3faf6;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-feedback-page .feedback-action-icon {
    display: inline-grid;
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    place-items: center;
    border-radius: 50%;
    background: rgba(63, 118, 88, 0.12);
    font-size: 9px;
    line-height: 1;
}

.admin-feedback-page .feedback-action:hover {
    border-color: #a9cdb7;
    color: #2e6046;
    background: #eaf7ef;
    transform: translateY(-1px);
}

.admin-feedback-page .feedback-action-restore {
    border-color: #d2dde7;
    color: #4c6a82;
    background: #f5f9fc;
}

.admin-feedback-page .feedback-action-restore .feedback-action-icon {
    background: rgba(76, 106, 130, 0.12);
}

.admin-feedback-page .feedback-action-restore:hover {
    border-color: #aec6d8;
    color: #35566f;
    background: #eaf3f9;
}

.admin-feedback-page .feedback-action-delete {
    border-color: #ecc5bb;
    color: #aa4a37;
    background: #fff7f4;
}

.admin-feedback-page .feedback-action-delete .feedback-action-icon {
    background: rgba(170, 74, 55, 0.11);
    font-size: 12px;
}

.admin-feedback-page .feedback-action-delete:hover {
    border-color: #dfa18f;
    color: #8e3523;
    background: #fdece7;
}

@media (max-width: 900px) {
    .feedback-detail summary,
    .feedback-detail div {
        max-width: 260px;
    }
}

/* Admin users management */

.admin-users-head {
    position: relative;
    align-items: flex-end;
    overflow: hidden;
    padding: 26px 28px;
    border: 1px solid #e5dbcd;
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 0%, rgba(223, 93, 61, 0.09), transparent 37%),
        radial-gradient(circle at 93% 10%, rgba(80, 116, 143, 0.1), transparent 38%),
        linear-gradient(135deg, #fffdf9 0%, #f6f1e8 100%);
}

.admin-users-head::after {
    position: absolute;
    right: 18px;
    bottom: -24px;
    content: "MEMBERS";
    color: rgba(91, 74, 56, 0.052);
    font-family: var(--font-display);
    font-size: 108px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    pointer-events: none;
}

.admin-users-head-main,
.admin-users-head .admin-page-actions {
    position: relative;
    z-index: 1;
}

.users-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid #e8cbbd;
    border-radius: 999px;
    color: var(--maple-deep);
    background: #fff8f3;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.users-kicker i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--maple);
    box-shadow: 0 0 0 3px rgba(223, 93, 61, 0.12);
}

.admin-users-head h1 {
    margin-top: 11px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.admin-users-head p {
    margin-top: 8px;
    max-width: 640px;
    color: var(--ink-3);
    font-size: 14.5px;
    line-height: 1.75;
}

.users-head-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.users-head-stats > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid rgba(219, 205, 187, 0.85);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
}

.users-head-stats strong {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 19px;
    line-height: 1;
}

.users-head-stats span {
    color: var(--ink-4);
    font-size: 10.5px;
    font-weight: 600;
}

.admin-users-head .admin-page-actions {
    flex: 0 0 auto;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 9px;
}

.admin-users-page .users-filter-bar {
    padding: 11px;
    border: 1px solid #eee5d8;
    border-radius: 11px;
    background: linear-gradient(135deg, #fffdf9 0%, #fbf7ef 100%);
}

.admin-users-page .admin-search {
    border-color: #e5dbcd;
    border-radius: 9px;
    background: #fff;
}

.admin-users-page .users-filter-bar .button-sm {
    border-radius: 9px;
}

.admin-users-page > .panel {
    border-radius: 16px;
}

.admin-users-page .users-table tbody tr {
    transition: background 0.18s ease;
}

.admin-users-page .users-table tbody tr:hover {
    background: #fffdf8;
}

.admin-users-page .table-user .avatar {
    box-shadow: 0 3px 9px rgba(223, 93, 61, 0.12);
}

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

.admin-users-page .coin-value {
    display: inline-flex;
    padding: 3px 8px;
    border: 1px solid #ead9b9;
    border-radius: 999px;
    color: #8a6429;
    background: #fffdf6;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
}

.admin-users-page .users-table code {
    padding: 3px 7px;
    border-radius: 5px;
    color: #5f5345;
    background: #faf5eb;
    font-size: 11.5px;
}

.admin-users-page .table-actions .table-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid #ecc5bb;
    border-radius: 999px;
    color: #aa4a37;
    background: #fff7f4;
    font-size: 11px;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.admin-users-page .table-actions .table-action span {
    display: inline-grid;
    place-items: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(170, 74, 55, 0.1);
    font-size: 9px;
    line-height: 1;
}

.admin-users-page .table-actions .table-action:hover {
    border-color: #dfa18f;
    color: #8e3523;
    background: #fdece7;
    transform: translateY(-1px);
}

.admin-users-page .table-actions .table-action-edit {
    padding: 6px 12px;
    border-color: #d9e2ea;
    color: #426987;
    background: linear-gradient(135deg, #f8fbfd 0%, #eef5fa 100%);
    box-shadow: 0 4px 11px rgba(66, 105, 135, 0.05);
    font-size: 11.5px;
}

.admin-users-page .table-actions .table-action-edit span {
    width: 17px;
    height: 17px;
    background: #e5eef5;
    font-size: 10px;
}

.admin-users-page .table-actions .table-action-edit:hover {
    border-color: #b7cedc;
    color: #315a78;
    background: #eaf4fb;
}

.admin-users-page .table-actions .table-action-toggle.is-disable {
    padding: 6px 12px;
    border-color: #e8c8b2;
    color: #9a5a32;
    background: linear-gradient(135deg, #fffaf4 0%, #fdf0e4 100%);
    box-shadow: 0 4px 11px rgba(154, 90, 50, 0.06);
    font-size: 11.5px;
}

.admin-users-page .table-actions .table-action-toggle.is-disable span {
    width: 17px;
    height: 17px;
    color: #9a5a32;
    background: #f3dfc9;
    font-size: 10px;
    font-weight: 800;
}

.admin-users-page .table-actions .table-action-toggle.is-disable:hover {
    border-color: #d9a984;
    color: #864622;
    background: #fcebdb;
    box-shadow: 0 6px 15px rgba(154, 90, 50, 0.1);
}

.admin-users-page .table-actions .table-action-toggle.is-enable {
    border-color: #cfe2d6;
    color: #3f7658;
    background: #f4fbf7;
}

.admin-users-page .table-actions .table-action-toggle.is-enable span {
    background: rgba(63, 118, 88, 0.1);
}

.admin-users-page .table-actions .table-action-toggle.is-enable:hover {
    border-color: #a9ceb7;
    color: #2f6347;
    background: #eaf7ef;
}

@media (max-width: 900px) {
    .admin-users-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .admin-users-head h1 {
        font-size: 34px;
    }

    .admin-users-head::after {
        font-size: 74px;
    }

    .admin-users-head .admin-page-actions {
        align-items: flex-start;
        margin-top: 16px;
    }
}

.admin-user-edit-page .user-edit-panel {
    border-radius: 16px;
    background: linear-gradient(145deg, #fffefb 0%, #fbf7ef 100%);
}

.admin-user-edit-page .admin-grid-side .panel {
    border-radius: 16px;
}

.admin-user-edit-page .field > span:first-child {
    font-size: 14.5px;
}

.admin-user-edit-page .field input,
.admin-user-edit-page .field select {
    font-size: 15px;
}

.admin-user-edit-page .field input[name="username"] {
    color: #746b5f;
    background: #f5f0e7;
    border-color: #e7ded0;
    cursor: not-allowed;
}

.admin-user-edit-page .health-list > div {
    padding: 11px 0;
    font-size: 13px;
}

.admin-user-edit-page .health-list strong {
    font-size: 13.5px;
}

.admin-user-edit-page .health-list code {
    padding: 3px 7px;
    border-radius: 5px;
    background: #f6f1e7;
    font-size: 11.5px;
}

@media (max-width: 900px) {
    .admin-user-edit-page .admin-users-head .admin-page-actions {
        align-items: flex-start;
        margin-top: 14px;
    }
}

.admin-users-page .admin-page-head p {
    font-size: 16px;
    line-height: 1.75;
}

.admin-users-page .admin-file-pill {
    font-size: 13px;
}

.admin-users-page .panel-head h2 {
    font-size: 27px;
}

.admin-users-page .stat-label {
    font-size: 14px;
}

.admin-users-page .stat-card strong {
    font-size: 52px;
}

.admin-users-page .stat-card strong small {
    font-size: 15px;
}

.admin-users-page .stat-foot {
    font-size: 13.5px;
    line-height: 1.7;
}

.admin-users-page .admin-search input {
    font-size: 15.5px;
}

.admin-users-page .filter-result {
    font-size: 13px;
}

.admin-users-page .data-table {
    font-size: 15.5px;
}

.admin-users-page .data-table th {
    padding-top: 13px;
    padding-bottom: 13px;
    font-size: 12px;
}

.admin-users-page .data-table td {
    padding-top: 17px;
    padding-bottom: 17px;
}

.admin-users-page .data-table code {
    font-size: 14px;
}

.admin-users-page .table-user strong {
    font-size: 16px;
}

.admin-users-page .coin-value {
    font-size: 14px;
}

.admin-users-page .status-pill {
    padding: 5px 10px;
    font-size: 12px;
}

.admin-users-page .users-table button {
    font-size: 13.5px;
}

.admin-users-page .admin-pagination a,
.admin-users-page .admin-pagination > span {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
}

.nav-color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    vertical-align: -2px;
}

.admin-navigation-page .table-actions .table-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid #d9e2ea;
    border-radius: 999px;
    color: #426987;
    background: #f4f9fc;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.admin-navigation-page .table-actions .table-action span {
    display: inline-grid;
    place-items: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(66, 105, 135, 0.1);
    font-size: 9px;
    line-height: 1;
}

.admin-navigation-page .table-actions .table-action:hover {
    border-color: #b8cedd;
    background: #eaf4fb;
    transform: translateY(-1px);
}

.admin-navigation-page .table-actions .table-action-toggle {
    border-color: #ead9b9;
    color: #8a6429;
    background: #fffdf6;
}

.admin-navigation-page .table-actions .table-action-toggle span {
    background: rgba(138, 100, 41, 0.1);
}

.admin-navigation-page .table-actions .table-action-toggle:hover {
    border-color: #dcc18f;
    background: #fdf8ea;
}

.admin-navigation-page .table-actions .table-action-toggle.is-enable {
    border-color: #cfe2d6;
    color: #3f7658;
    background: #f4fbf7;
}

.admin-navigation-page .table-actions .table-action-toggle.is-enable span {
    background: rgba(63, 118, 88, 0.1);
}

.admin-navigation-page .table-actions .table-action-toggle.is-enable:hover {
    border-color: #a9ceb7;
    background: #eaf7ef;
}

.admin-navigation-page .table-actions .table-action-delete {
    border-color: #ecc5bb;
    color: #aa4a37;
    background: #fff7f4;
}

.admin-navigation-page .table-actions .table-action-delete span {
    background: rgba(170, 74, 55, 0.1);
    font-size: 11px;
}

.admin-navigation-page .table-actions .table-action-delete:hover {
    border-color: #dfa18f;
    color: #8e3523;
    background: #fdece7;
}

/* Not found */

.not-found-page {
    background:
        radial-gradient(circle at 14% 18%, rgba(223, 93, 61, 0.08), transparent 34%),
        radial-gradient(circle at 86% 8%, rgba(55, 104, 137, 0.08), transparent 34%),
        #f8f4ec;
}

.not-found-shell {
    display: grid;
    min-height: 62vh;
    padding: 64px 0 84px;
    place-items: center;
}

.not-found-card {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 42px 36px 38px;
    overflow: hidden;
    border: 1px solid #e6dccd;
    border-radius: 26px;
    background: linear-gradient(145deg, #fffefb 0%, #f8f1e5 100%);
    box-shadow: 0 24px 70px rgba(23, 34, 46, 0.09);
    text-align: center;
}

.not-found-orbit {
    position: absolute;
    top: -100px;
    left: 50%;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(223, 93, 61, 0.1);
    border-radius: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.not-found-orbit::before,
.not-found-orbit::after {
    position: absolute;
    border: 1px solid rgba(223, 93, 61, 0.075);
    border-radius: 50%;
    content: "";
}

.not-found-orbit::before {
    inset: 44px;
}

.not-found-orbit::after {
    inset: 88px;
}

.not-found-card > *:not(.not-found-orbit) {
    position: relative;
    z-index: 1;
}

.not-found-code {
    margin: 8px 0 2px;
    color: transparent;
    background: linear-gradient(135deg, var(--maple) 0%, #d89962 55%, #6f8fae 100%);
    background-clip: text;
    -webkit-background-clip: text;
    font-family: var(--font-display);
    font-size: clamp(92px, 17vw, 164px);
    font-weight: 700;
    letter-spacing: -0.08em;
    line-height: 0.9;
}

.not-found-card h1 {
    margin: 4px 0 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.not-found-copy {
    max-width: 470px;
    margin: 10px auto 0;
    color: var(--ink-3);
    font-size: 14px;
    line-height: 1.75;
}

.not-found-path {
    display: inline-block;
    max-width: 100%;
    margin-top: 15px;
    overflow: hidden;
    padding: 6px 10px;
    border: 1px solid #eadfd0;
    border-radius: 7px;
    color: #7b6b58;
    background: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.not-found-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

@media (max-width: 640px) {
    .not-found-shell {
        padding: 36px 0 56px;
    }

    .not-found-card {
        padding: 30px 18px 26px;
        border-radius: 20px;
    }

    .not-found-code {
        font-size: 94px;
    }

    .not-found-actions {
        flex-direction: column;
    }

    .not-found-actions .button {
        width: 100%;
    }
}

/* Admin domain redirects */

/* User publishing */

.publish-hero {
    padding: 54px 0 34px;
    border-bottom: 1px solid #eee6da;
    background:
        radial-gradient(circle at 12% 8%, rgba(223, 93, 61, 0.11), transparent 36%),
        radial-gradient(circle at 88% 0%, rgba(43, 106, 143, 0.12), transparent 36%),
        linear-gradient(135deg, #fffdf9 0%, #f7f2e9 100%);
}

.publish-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid #e8cbbd;
    border-radius: 999px;
    color: var(--maple-deep);
    background: #fff8f3;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.publish-kicker i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--maple);
    box-shadow: 0 0 0 3px rgba(223, 93, 61, 0.12);
}

.publish-hero h1 {
    margin: 11px 0 8px;
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.publish-hero p {
    color: var(--ink-3);
    font-size: 15px;
    line-height: 1.75;
}

.publish-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.publish-hero-stats > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid rgba(219, 205, 187, 0.85);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
}

.publish-hero-stats strong {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 19px;
    line-height: 1;
}

.publish-hero-stats span {
    color: var(--ink-4);
    font-size: 10.5px;
    font-weight: 600;
}

.publish-hero .publish-rule-note {
    display: inline-flex;
    margin-top: 14px;
    padding: 6px 11px;
    border: 1px solid #edc9c0;
    border-radius: 999px;
    color: #9c4d3c;
    background: #fdf2ee;
    font-size: 11.5px;
    font-weight: 600;
}

.publish-body {
    padding: 24px 0 70px;
}

.publish-lock-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding: 13px 16px;
    border: 1px solid #ead9b9;
    border-radius: 10px;
    background: linear-gradient(135deg, #fffdf6 0%, #fdf8ea 100%);
}

.publish-lock-note strong {
    flex: 0 0 auto;
    color: #8a6429;
    font-size: 13px;
}

.publish-lock-note p {
    margin: 0;
    color: #7b6a4e;
    font-size: 12.5px;
    line-height: 1.65;
}

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

.publish-panel {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(150deg, #fffefb 0%, #fbf7ef 100%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.publish-panel::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    content: "";
    background: #d8c7b0;
}

.publish-panel.is-text::before {
    background: linear-gradient(90deg, var(--maple), #e6aa83);
}

.publish-panel.is-image::before {
    background: linear-gradient(90deg, #6f8fae, #a8c0d4);
}

.publish-panel.is-text .section-kicker {
    color: var(--maple-deep);
}

.publish-panel.is-image .section-kicker {
    color: #4c7492;
}

.publish-panel:hover {
    border-color: #ded0bf;
    box-shadow: 0 10px 26px rgba(23, 34, 46, 0.06);
}

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

.publish-panel-desc {
    margin: -2px 0 12px;
    color: var(--ink-4);
    font-size: 12px;
    line-height: 1.7;
}

.publish-panel .field > span:first-child {
    font-size: 15px;
}

.publish-panel .field > span:first-child small {
    font-size: 12.5px;
}

.publish-panel .field input,
.publish-panel .field textarea,
.publish-panel .field select {
    font-size: 15px;
}

.publish-panel .field-hint {
    font-size: 12.5px;
    line-height: 1.65;
}

.publish-panel .button {
    font-size: 12.5px;
}

.publish-panel .button[disabled] {
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
    transform: none;
}

.publish-panel .status-pill {
    padding: 5px 9px;
    font-size: 10.5px;
}

.publish-contact-qq {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 2px;
    padding: 7px 11px;
    border: 1px solid #d7e2ea;
    border-radius: 999px;
    color: #5d6f7c;
    background: #f5fafd;
    font-size: 11.5px;
    font-weight: 600;
}

.publish-contact-qq a {
    color: #3e7092;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.publish-contact-qq a:hover {
    color: var(--maple-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.publish-readonly-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 51px;
    padding: 12px 14px;
    border: 1px solid #e5ded2;
    border-radius: 10px;
    color: var(--ink-3);
    background: #faf6ee;
    font-size: 15px;
}

.publish-readonly-field small {
    color: var(--ink-4);
    font-size: 11.5px;
}

.publish-edit-body {
    max-width: 780px;
}

.publish-edit-body .publish-panel {
    margin-top: 0;
}

.publish-history {
    margin-top: 2px;
}

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

.publish-history .panel-note {
    font-size: 12px;
}

.publish-history .status-pill {
    padding: 5px 10px;
    font-size: 11px;
}

.publish-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.publish-history-item {
    position: relative;
    display: grid;
    grid-template-columns: 136px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px 14px 18px;
    overflow: hidden;
    border: 1px solid #e9e2d6;
    border-radius: 12px;
    background: linear-gradient(135deg, #fffefb 0%, #fdfaf4 100%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.publish-history-item::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    content: "";
    background: #d8b8a8;
}

.publish-history-item.is-text::before {
    background: var(--maple);
}

.publish-history-item.is-image::before {
    background: #6f8fae;
}

.publish-history-item:hover {
    border-color: #dcc9ba;
    box-shadow: 0 8px 22px rgba(23, 34, 46, 0.07);
    transform: translateY(-1px);
}

.publish-history-type {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #9d4b34;
    background: #fdf0e8;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.publish-history-item.is-image .publish-history-type {
    color: #4c7492;
    background: #eef5fa;
}

.publish-history-type i {
    font-style: normal;
    font-size: 10px;
    line-height: 1;
}

.publish-history-item strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
}

.publish-history-item small {
    display: block;
    margin-top: 3px;
    color: var(--ink-4);
    font-size: 11.5px;
}

.publish-history-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.publish-delete-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border: 1px solid #ecc5bb;
    border-radius: 999px;
    color: #aa4a37;
    background: #fff7f4;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.publish-delete-link i {
    display: inline-grid;
    place-items: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(170, 74, 55, 0.1);
    font-size: 11px;
    font-style: normal;
    line-height: 1;
}

.publish-delete-link:hover {
    border-color: #dfa18f;
    color: #8e3523;
    background: #fdece7;
    transform: translateY(-1px);
}

.publish-clicks-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border: 1px solid #cfe2d6;
    border-radius: 999px;
    color: #3f7658;
    background: #f4fbf7;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.publish-clicks-link i {
    display: inline-grid;
    place-items: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(63, 118, 88, 0.1);
    font-size: 10px;
    font-style: normal;
    line-height: 1;
}

.publish-clicks-link b {
    padding: 1px 5px;
    border-radius: 999px;
    background: #e1f1e7;
    font-family: var(--mono);
    font-size: 9.5px;
}

.publish-clicks-link:hover {
    border-color: #a9cdb7;
    background: #eaf7ef;
    transform: translateY(-1px);
}

.clicks-hero-actions {
    margin-top: 16px;
}

.clicks-ad-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 13px;
    border: 1px solid #e4dacb;
    border-radius: 16px;
    background: linear-gradient(145deg, #fffefb 0%, #f8f3e9 100%);
}

.clicks-ad-thumb {
    display: grid;
    flex: 0 0 auto;
    width: 86px;
    height: 54px;
    overflow: hidden;
    place-items: center;
    border: 1px solid #eadfce;
    border-radius: 10px;
    color: #a28c72;
    background: #f4eee3;
    font-size: 22px;
}

.clicks-ad-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.clicks-ad-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.clicks-ad-copy .section-kicker {
    color: var(--ink-4);
    font-size: 9px;
}

.clicks-ad-copy strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 17px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clicks-ad-copy small {
    color: var(--ink-4);
    font-size: 11px;
}

.clicks-ad-summary > .status-pill {
    flex: 0 0 auto;
}

.clicks-panel {
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(145deg, #fffefb 0%, #fbf8f1 100%);
}

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

.clicks-table {
    font-size: 12px;
}

.clicks-table th {
    padding: 10px 14px;
    font-size: 9px;
}

.clicks-table td {
    padding: 12px 14px;
    font-size: 11.5px;
}

.clicks-time {
    white-space: nowrap;
}

.clicks-location {
    color: var(--ink-3);
    white-space: nowrap;
}

.clicks-browser {
    color: var(--ink-3);
    white-space: nowrap;
}

.clicks-agent {
    max-width: 340px;
    overflow: hidden;
    color: var(--ink-4);
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .clicks-ad-summary {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .clicks-ad-copy {
        flex: 1 1 calc(100% - 110px);
    }

    .clicks-ad-summary > .status-pill {
        margin-left: 100px;
    }

    .clicks-agent {
        max-width: 220px;
    }
}

.publish-delete-dialog {
    width: min(410px, calc(100vw - 32px));
    max-width: 100%;
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.publish-delete-dialog::backdrop {
    background: rgba(16, 25, 34, 0.45);
    backdrop-filter: blur(3px);
}

.publish-delete-form {
    padding: 22px;
    border: 1px solid #e8d9cb;
    border-radius: 16px;
    background: #fffdf9;
    box-shadow: 0 28px 80px rgba(16, 25, 34, 0.26);
}

.publish-delete-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.publish-delete-mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid #edc9c0;
    border-radius: 13px;
    color: #b24d3d;
    background: #fdf2ee;
    font-family: var(--mono);
    font-size: 23px;
    line-height: 1;
}

.publish-delete-head h2 {
    margin-top: 3px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 600;
}

.publish-delete-text {
    margin-top: 17px;
    color: var(--ink-3);
    font-size: 12.5px;
    line-height: 1.65;
}

.publish-delete-text strong {
    color: var(--maple-deep);
}

.publish-delete-note {
    margin-top: 7px;
    color: var(--ink-4);
    font-size: 11.5px;
    line-height: 1.7;
}

.publish-delete-actions {
    display: flex;
    gap: 9px;
    margin-top: 18px;
}

.publish-delete-actions .button {
    flex: 1;
    min-height: 40px;
    padding: 9px 12px;
    font-size: 12px;
}

.publish-delete-confirm {
    border-color: #b74a37;
    color: #fff;
    background: #b74a37;
}

.publish-delete-confirm:hover {
    border-color: #9c3928;
    color: #fff;
    background: #9c3928;
}

.publish-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid #e8cabd;
    border-radius: 999px;
    color: var(--maple-deep);
    background: linear-gradient(135deg, #fffdfb 0%, #fdf1ea 100%);
    box-shadow: 0 3px 9px rgba(223, 93, 61, 0.06);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.publish-edit-link i {
    font-style: normal;
    font-size: 10px;
    line-height: 1;
}

.publish-edit-link:hover {
    border-color: #dfa995;
    color: var(--maple-deep);
    background: #fdf0e8;
    transform: translateY(-1px);
}

.publish-history-reason {
    display: flex;
    grid-column: 1 / -1;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid #edc9c0;
    border-radius: 8px;
    color: #8b4c3e;
    background: #fdf2ee;
}

.publish-history-reason strong {
    flex: 0 0 auto;
    font-size: 10.5px;
    line-height: 1.65;
}

.publish-history-reason span {
    font-size: 11.5px;
    line-height: 1.65;
}

.publish-edit-reason {
    margin-bottom: 14px;
}

.admin-reviews-head {
    position: relative;
    align-items: flex-end;
    overflow: hidden;
    padding: 26px 28px;
    border: 1px solid #e6dccd;
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 0%, rgba(223, 93, 61, 0.09), transparent 37%),
        radial-gradient(circle at 93% 10%, rgba(75, 154, 115, 0.1), transparent 37%),
        linear-gradient(135deg, #fffdf9 0%, #f6f1e8 100%);
}

.admin-reviews-head::after {
    position: absolute;
    right: 18px;
    bottom: -24px;
    content: "REVIEW";
    color: rgba(91, 74, 56, 0.052);
    font-family: var(--font-display);
    font-size: 112px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    pointer-events: none;
}

.admin-reviews-head-main,
.admin-reviews-head .admin-page-actions {
    position: relative;
    z-index: 1;
}

.reviews-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid #cfe2d6;
    border-radius: 999px;
    color: #3f7658;
    background: #f4fbf7;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.reviews-kicker i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4b9a73;
    box-shadow: 0 0 0 3px rgba(75, 154, 115, 0.12);
}

.admin-reviews-head h1 {
    margin-top: 11px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.admin-reviews-head p {
    margin-top: 8px;
    max-width: 650px;
    color: var(--ink-3);
    font-size: 14px;
    line-height: 1.75;
}

.reviews-head-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.reviews-head-stats > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid rgba(216, 207, 190, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
}

.reviews-head-stats strong {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 19px;
    line-height: 1;
}

.reviews-head-stats div:first-child strong {
    color: var(--maple-deep);
}

.reviews-head-stats span {
    color: var(--ink-4);
    font-size: 10.5px;
    font-weight: 600;
}

.admin-reviews-head .admin-page-actions {
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 9px;
}

.review-panel {
    border-radius: 16px;
}

.review-empty-state {
    padding: 52px 24px;
    border: 1px solid #e6ddcf;
    border-style: solid;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 0%, rgba(75, 154, 115, 0.08), transparent 46%),
        linear-gradient(135deg, #fffefb 0%, #fbf7ef 100%);
}

.review-empty-state .empty-mark {
    width: 62px;
    height: 62px;
    border: 1px solid #cfe2d6;
    border-radius: 19px;
    color: #4b9a73;
    background: #f2faf5;
    box-shadow: 0 10px 24px rgba(75, 154, 115, 0.1);
    font-size: 25px;
}

.review-empty-state h2 {
    margin-top: 14px;
    font-size: 28px;
}

.review-empty-state p {
    max-width: 460px;
    margin: 8px auto 0;
    line-height: 1.75;
}

.review-empty-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .admin-reviews-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .admin-reviews-head h1 {
        font-size: 34px;
    }

    .admin-reviews-head::after {
        font-size: 78px;
    }

    .admin-reviews-head .admin-page-actions {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 16px;
    }
}

.admin-reviews-page .admin-page-head p {
    font-size: 15px;
    line-height: 1.7;
}

.review-panel {
    margin-bottom: 16px;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.review-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    overflow: visible;
    padding: 16px 18px 16px 20px;
    border: 1px solid #e9e2d6;
    border-radius: 12px;
    background: linear-gradient(135deg, #fffefb 0%, #fdfaf4 100%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.review-item::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    content: "";
    background: #d8b8a8;
}

.review-item.is-text-ad::before {
    background: var(--maple);
}

.review-item.is-image-ad::before {
    background: #6f8fae;
}

.review-item:hover {
    border-color: #ddcbbb;
    box-shadow: 0 8px 22px rgba(23, 34, 46, 0.06);
}

.review-panel .panel-note {
    padding: 4px 9px;
    border: 1px solid #e8dfd1;
    border-radius: 999px;
    background: #fbf7ef;
    color: #8b765b;
    font-size: 10.5px;
    font-weight: 700;
}

.review-item.is-text-ad .review-title .status-pill {
    color: #9d4b34;
    background: #fdf0e8;
}

.review-item.is-image-ad .review-title .status-pill {
    padding: 5px 10px;
    color: #4c7492;
    background: #eef5fa;
    font-size: 12px;
    font-weight: 700;
}

.review-thumb {
    flex: 0 0 auto;
    width: 150px;
    max-width: 100%;
}

.review-thumb img {
    display: block;
    width: 100%;
    max-height: 90px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.review-main {
    flex: 1;
    min-width: 0;
}

.review-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.review-title strong {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.4;
}

.review-desc {
    margin-top: 9px;
    padding: 10px 12px;
    border-left: 2px solid #ead8c8;
    border-radius: 0 8px 8px 0;
    color: #5d584f;
    background: rgba(253, 250, 244, 0.85);
    font-size: 12.5px;
    line-height: 1.75;
}

.review-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 10px;
    color: var(--ink-4);
    font-size: 10.5px;
}

.review-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.review-meta a {
    color: var(--maple-deep);
}

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

.review-actions form {
    margin: 0;
}

.review-actions .button-reject {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-color: #e7b9ae;
    color: #a84232;
    background: linear-gradient(135deg, #fffaf8 0%, #fdf0eb 100%);
    box-shadow: 0 4px 12px rgba(168, 66, 50, 0.06);
}

.review-actions .button-reject span {
    display: inline-grid;
    place-items: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(168, 66, 50, 0.1);
    font-size: 12px;
    line-height: 1;
}

.review-actions .button-reject:hover {
    border-color: #d78e7e;
    color: #8d3022;
    background: #fde9e3;
    transform: translateY(-1px);
}

.review-reject {
    position: relative;
}

.review-reject summary {
    list-style: none;
    cursor: pointer;
}

.review-reject summary::-webkit-details-marker {
    display: none;
}

.review-reject-form {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    width: 310px;
    padding: 14px;
    border: 1px solid #e3d6c5;
    border-radius: 11px;
    background: #fffdf9;
    box-shadow: 0 14px 34px rgba(23, 34, 46, 0.16);
}

.review-reject-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-reject-form label > span {
    color: #7c6652;
    font-size: 11px;
    font-weight: 700;
}

.review-reject-form textarea {
    width: 100%;
    min-height: 84px;
    padding: 9px 10px;
    border: 1px solid #dfd2c2;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 12.5px;
    line-height: 1.6;
    resize: vertical;
}

.review-reject-form textarea:focus {
    border-color: #c99b83;
    outline: 2px solid rgba(201, 155, 131, 0.17);
}

.review-reject-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.review-reject-actions .button {
    flex: 1;
    padding: 8px 10px;
    font-size: 11.5px;
}

.button-reject-solid {
    border: 1px solid #b74a37;
    color: #fff;
    background: #b74a37;
}

.button-reject-solid:hover {
    border-color: #9c3928;
    color: #fff;
    background: #9c3928;
}

.review-approve-dialog {
    width: min(430px, calc(100vw - 32px));
    max-width: 100%;
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.review-approve-dialog::backdrop {
    background: rgba(16, 25, 34, 0.45);
    backdrop-filter: blur(3px);
}

.review-approve-form {
    padding: 22px;
    border: 1px solid #e5dccf;
    border-radius: 16px;
    background: #fffdf9;
    box-shadow: 0 28px 80px rgba(16, 25, 34, 0.26);
}

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

.review-approve-head h2 {
    margin-top: 4px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 600;
}

.review-approve-close {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #e6ded2;
    border-radius: 50%;
    color: var(--ink-3);
    background: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.review-approve-subtitle {
    margin-top: 12px;
    color: var(--ink-3);
    font-size: 12px;
    line-height: 1.65;
}

.review-approve-subtitle strong {
    color: var(--maple-deep);
}

.review-approve-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.review-approve-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-approve-grid label > span {
    color: #7c6652;
    font-size: 11px;
    font-weight: 700;
}

.review-approve-grid input {
    min-height: 40px;
    padding: 7px 9px;
    border: 1px solid #dfd3c4;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 12.5px;
}

.review-approve-grid input:focus {
    border-color: #c99b83;
    outline: 2px solid rgba(201, 155, 131, 0.17);
}

.review-approve-hint {
    margin-top: 10px;
    color: var(--ink-4);
    font-size: 11px;
    line-height: 1.65;
}

.review-approve-actions {
    display: flex;
    gap: 9px;
    margin-top: 18px;
}

.review-approve-actions .button {
    flex: 1;
    min-height: 40px;
    padding: 9px 12px;
    font-size: 12px;
}

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

    .review-item {
        flex-direction: column;
    }

    .review-thumb {
        width: 100%;
    }

    .review-actions {
        width: 100%;
    }

    .review-actions form,
    .review-actions > .button,
    .review-actions .review-reject {
        flex: 1;
    }

    .review-reject-form {
        position: static;
        width: 100%;
        margin-top: 8px;
        box-shadow: 0 8px 20px rgba(23, 34, 46, 0.08);
    }
}

@media (max-width: 640px) {
    .publish-hero {
        padding-top: 34px;
    }

    .publish-history-item {
        grid-template-columns: 1fr auto;
        padding: 13px 13px 13px 15px;
    }

    .publish-history-type {
        grid-column: 1 / -1;
    }

    .publish-history-side {
        align-self: end;
    }
}

.admin-domains-head {
    position: relative;
    align-items: flex-end;
    overflow: hidden;
    padding: 26px 28px;
    border: 1px solid #e5dbcd;
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 0%, rgba(223, 93, 61, 0.09), transparent 37%),
        radial-gradient(circle at 93% 10%, rgba(55, 104, 137, 0.1), transparent 38%),
        linear-gradient(135deg, #fffdf9 0%, #f6f1e8 100%);
}

.admin-domains-head::after {
    position: absolute;
    right: 18px;
    bottom: -24px;
    content: "DOMAINS";
    color: rgba(91, 74, 56, 0.052);
    font-family: var(--font-display);
    font-size: 104px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    pointer-events: none;
}

.admin-domains-head-main,
.admin-domains-head .admin-page-actions {
    position: relative;
    z-index: 1;
}

.domains-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid #e8cbbd;
    border-radius: 999px;
    color: var(--maple-deep);
    background: #fff8f3;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.domains-kicker i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--maple);
    box-shadow: 0 0 0 3px rgba(223, 93, 61, 0.12);
}

.admin-domains-head h1 {
    margin-top: 11px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.admin-domains-head p {
    margin-top: 8px;
    max-width: 640px;
    color: var(--ink-3);
    font-size: 14px;
    line-height: 1.75;
}

.domains-head-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.domains-head-stats > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid rgba(219, 205, 187, 0.85);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
}

.domains-head-stats strong {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 19px;
    line-height: 1;
}

.domains-head-stats strong.is-text {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
}

.domains-head-stats span {
    color: var(--ink-4);
    font-size: 10.5px;
    font-weight: 600;
}

.admin-domains-head .admin-page-actions {
    flex: 0 0 auto;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 9px;
}

.admin-domains-page .domain-target-panel {
    border-radius: 16px;
    background: linear-gradient(145deg, #fffefb 0%, #f7f6f0 100%);
}

.admin-domains-page .domain-add-panel {
    border-radius: 16px;
    background: linear-gradient(145deg, #fffefb 0%, #fbf7ef 100%);
}

.admin-domains-page .admin-grid-side .panel {
    border-radius: 16px;
    background: linear-gradient(145deg, #fffefb 0%, #f7f9fb 100%);
}

.admin-domains-page .domain-target-panel .field input {
    font-family: var(--mono);
    font-size: 14px;
}

.admin-domains-page .data-table tbody tr {
    transition: background 0.18s ease;
}

.admin-domains-page .data-table tbody tr:hover {
    background: #fffdf8;
}

.admin-domains-page .data-table code {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid #e8dfd1;
    border-radius: 6px;
    color: #5f5345;
    background: #faf5eb;
    font-size: 12.5px;
}

.admin-domains-page .table-actions .table-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid #d9e2ea;
    border-radius: 999px;
    color: #426987;
    background: #f4f9fc;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.admin-domains-page .table-actions .table-action span {
    display: inline-grid;
    place-items: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(66, 105, 135, 0.1);
    font-size: 9px;
    line-height: 1;
}

.admin-domains-page .table-actions .table-action:hover {
    border-color: #b8cedd;
    background: #eaf4fb;
    transform: translateY(-1px);
}

.admin-domains-page .table-actions .table-action-toggle {
    border-color: #ead9b9;
    color: #8a6429;
    background: #fffdf6;
}

.admin-domains-page .table-actions .table-action-toggle span {
    background: rgba(138, 100, 41, 0.1);
}

.admin-domains-page .table-actions .table-action-toggle:hover {
    border-color: #dcc18f;
    background: #fdf8ea;
}

.admin-domains-page .table-actions .table-action-toggle.is-enable {
    border-color: #cfe2d6;
    color: #3f7658;
    background: #f4fbf7;
}

.admin-domains-page .table-actions .table-action-toggle.is-enable span {
    background: rgba(63, 118, 88, 0.1);
}

.admin-domains-page .table-actions .table-action-delete {
    border-color: #ecc5bb;
    color: #aa4a37;
    background: #fff7f4;
}

.admin-domains-page .table-actions .table-action-delete span {
    background: rgba(170, 74, 55, 0.1);
    font-size: 11px;
}

.admin-domains-page .table-actions .table-action-delete:hover {
    border-color: #dfa18f;
    color: #8e3523;
    background: #fdece7;
}

@media (max-width: 900px) {
    .admin-domains-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .admin-domains-head h1 {
        font-size: 34px;
    }

    .admin-domains-head::after {
        font-size: 72px;
    }

    .admin-domains-head .admin-page-actions {
        align-items: flex-start;
        margin-top: 16px;
    }
}

.admin-domains-page .admin-page-head p {
    font-size: 15px;
    line-height: 1.7;
}

.admin-domains-page .admin-file-pill {
    font-size: 13px;
}

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

.admin-domains-page .field > span:first-child {
    font-size: 15px;
}

.admin-domains-page .field > span:first-child small {
    font-size: 12.5px;
}

.admin-domains-page .field input {
    font-size: 16px;
}

.admin-domains-page .field-hint {
    font-size: 12.5px;
    line-height: 1.65;
}

.admin-domains-page .button {
    font-size: 12.5px;
}

.admin-domains-page .import-notes p {
    font-size: 13px;
    line-height: 1.75;
}

.admin-domains-page .import-notes span {
    font-size: 10.5px;
}

.admin-domains-page .panel-note {
    font-size: 12px;
}

.admin-domains-page .data-table {
    font-size: 14px;
}

.admin-domains-page .data-table th {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 11px;
}

.admin-domains-page .data-table td {
    padding-top: 15px;
    padding-bottom: 15px;
}

.admin-domains-page .data-table code {
    font-size: 12.5px;
}

.admin-domains-page .status-pill {
    padding: 4px 9px;
    font-size: 11px;
}

.admin-domains-page .table-actions a,
.admin-domains-page .table-actions button {
    font-size: 12.5px;
}

/* Admin site settings */

.admin-settings-head {
    position: relative;
    align-items: flex-end;
    overflow: hidden;
    padding: 26px 28px;
    border: 1px solid #e5dbcd;
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 0%, rgba(223, 93, 61, 0.09), transparent 37%),
        radial-gradient(circle at 93% 10%, rgba(80, 116, 143, 0.1), transparent 38%),
        linear-gradient(135deg, #fffdf9 0%, #f6f1e8 100%);
}

.admin-settings-head::after {
    position: absolute;
    right: 18px;
    bottom: -24px;
    content: "SETTINGS";
    color: rgba(91, 74, 56, 0.052);
    font-family: var(--font-display);
    font-size: 104px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    pointer-events: none;
}

.admin-settings-head-main,
.admin-settings-head .admin-page-actions {
    position: relative;
    z-index: 1;
}

.settings-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid #e8cbbd;
    border-radius: 999px;
    color: var(--maple-deep);
    background: #fff8f3;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.settings-kicker i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--maple);
    box-shadow: 0 0 0 3px rgba(223, 93, 61, 0.12);
}

.admin-settings-head h1 {
    margin-top: 11px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.admin-settings-head p {
    margin-top: 8px;
    max-width: 650px;
    color: var(--ink-3);
    font-size: 14px;
    line-height: 1.75;
}

.settings-head-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.settings-head-stats > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid rgba(219, 205, 187, 0.85);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
}

.settings-head-stats strong {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 16px;
    line-height: 1;
}

.settings-head-stats strong.is-ok {
    color: #3f7658;
}

.settings-head-stats strong.is-bad {
    color: var(--danger);
}

.settings-head-stats span {
    color: var(--ink-4);
    font-size: 10.5px;
    font-weight: 600;
}

.admin-settings-head .admin-page-actions {
    flex: 0 0 auto;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 9px;
}

.admin-settings-page .admin-grid-settings .panel {
    border-radius: 16px;
}

.admin-settings-page .admin-grid-settings > .panel {
    background: linear-gradient(145deg, #fffefb 0%, #fbf7ef 100%);
}

.admin-settings-page .admin-grid-settings .admin-grid-side .panel {
    background: linear-gradient(145deg, #fffefb 0%, #f7f9fb 100%);
}

.admin-settings-page .health-list > div {
    padding: 11px 0;
}

.admin-settings-page .health-list strong {
    font-size: 13px;
}

.admin-settings-page .extension-list span {
    border-radius: 8px;
    background: #f4f9fc;
}

@media (max-width: 900px) {
    .admin-settings-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .admin-settings-head h1 {
        font-size: 34px;
    }

    .admin-settings-head::after {
        font-size: 72px;
    }

    .admin-settings-head .admin-page-actions {
        align-items: flex-start;
        margin-top: 16px;
    }
}

.admin-settings-page .admin-page-head p {
    font-size: 13px;
}

.admin-settings-page .field > span:first-child {
    font-size: 13.5px;
}

.admin-settings-page .field > span:first-child small {
    font-size: 11.5px;
}

.admin-settings-page .field-hint {
    font-size: 11.5px;
}

.admin-settings-page .health-list > div {
    font-size: 12px;
}

.admin-settings-page .health-list code {
    font-size: 10.5px;
}

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

.admin-settings-page .source-file strong {
    font-size: 13px;
}

.admin-settings-page .source-file small {
    font-size: 11.5px;
}

.admin-settings-page .source-file > span:last-child {
    font-size: 15px;
}

.settings-xml-check .status-pill {
    padding: 5px 10px;
    font-size: 12px;
}

.admin-settings-page .extension-list span {
    font-size: 10px;
}

.admin-settings-page .status-pill {
    padding: 4px 8px;
    font-size: 10.5px;
}

.admin-settings-page .settings-xml-check .status-pill {
    padding: 5px 10px;
    font-size: 12px;
}

/* Admin dashboard */

.admin-dashboard-head {
    position: relative;
    align-items: flex-end;
    overflow: hidden;
    padding: 26px 28px;
    border: 1px solid #e5dbcd;
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 0%, rgba(223, 93, 61, 0.1), transparent 38%),
        radial-gradient(circle at 94% 8%, rgba(52, 100, 132, 0.12), transparent 38%),
        linear-gradient(135deg, #fffdf9 0%, #f7f1e7 100%);
}

.admin-dashboard-head::after {
    position: absolute;
    right: 18px;
    bottom: -26px;
    content: "CONTROL";
    color: rgba(96, 78, 58, 0.05);
    font-family: var(--font-display);
    font-size: 118px;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
    pointer-events: none;
}

.admin-dashboard-head-main,
.admin-dashboard-head .admin-page-actions {
    position: relative;
    z-index: 1;
}

.dashboard-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid #e8cbbd;
    border-radius: 999px;
    color: var(--maple-deep);
    background: #fff8f3;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.dashboard-kicker i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--maple);
    box-shadow: 0 0 0 3px rgba(223, 93, 61, 0.12);
}

.admin-dashboard-head h1 {
    margin-top: 11px;
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.admin-dashboard-head h1 em {
    color: var(--maple-deep);
    font-style: normal;
}

.admin-dashboard-head p {
    margin-top: 7px;
    color: var(--ink-3);
    font-size: 13.5px;
    line-height: 1.7;
}

.dashboard-head-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 15px;
}

.dashboard-head-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid rgba(219, 205, 187, 0.8);
    border-radius: 999px;
    color: var(--ink-4);
    background: rgba(255, 255, 255, 0.66);
    font-size: 10px;
    font-weight: 600;
}

.dashboard-head-meta .is-online {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4b9a73;
    box-shadow: 0 0 0 3px rgba(75, 154, 115, 0.12);
}

.admin-dashboard-head .admin-page-actions {
    align-items: center;
    flex-direction: row;
    gap: 9px;
}

.admin-dashboard-page .stat-grid {
    gap: 12px;
    margin-top: 14px;
}

.admin-dashboard-page .dashboard-stat {
    display: flex;
    flex-direction: column;
    min-height: 160px;
    padding: 18px 19px;
    border-radius: 17px;
    background: linear-gradient(150deg, #fffefb 0%, #fbf7ef 100%);
    box-shadow: 0 6px 18px rgba(23, 34, 46, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-dashboard-page .dashboard-stat::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    content: "";
    background: #d7c5ad;
}

.admin-dashboard-page .dashboard-stat.is-warm::before {
    background: linear-gradient(90deg, #d99a4e, #e6bc7e);
}

.admin-dashboard-page .dashboard-stat.is-blue::before {
    background: linear-gradient(90deg, #5b87a8, #9dbbd0);
}

.admin-dashboard-page .dashboard-stat.is-green::before {
    background: linear-gradient(90deg, #4f9770, #96c4a9);
}

.admin-dashboard-page .dashboard-stat.stat-dark {
    border-color: #1b2733;
    background:
        radial-gradient(circle at 100% 0, rgba(223, 93, 61, 0.32), transparent 44%),
        linear-gradient(140deg, #1c2936 0%, #121b24 100%);
    box-shadow: 0 12px 28px rgba(23, 34, 46, 0.18);
}

.admin-dashboard-page .dashboard-stat.stat-dark::before {
    background: linear-gradient(90deg, var(--maple), #e7a062);
}

.admin-dashboard-page .dashboard-stat:hover {
    border-color: #d9c7b4;
    box-shadow: 0 12px 26px rgba(23, 34, 46, 0.09);
    transform: translateY(-2px);
}

.admin-dashboard-page .dashboard-stat.stat-dark:hover {
    border-color: #2c3c4b;
    box-shadow: 0 16px 32px rgba(23, 34, 46, 0.23);
}

.dashboard-stat-icon {
    display: grid;
    position: absolute;
    top: 15px;
    right: 15px;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #eadfce;
    border-radius: 10px;
    color: #8d7a61;
    background: rgba(255, 255, 255, 0.6);
    font-family: var(--mono);
    font-size: 14px;
}

.stat-dark .dashboard-stat-icon {
    border-color: rgba(255, 255, 255, 0.14);
    color: #f0c4a9;
    background: rgba(255, 255, 255, 0.07);
}

.admin-dashboard-page .dashboard-stat .stat-label {
    position: relative;
    z-index: 1;
    padding-right: 36px;
    font-size: 11px;
    letter-spacing: 0.03em;
}

.admin-dashboard-page .dashboard-stat strong {
    margin: 15px 0 4px;
    font-size: 40px;
    line-height: 1;
}

.admin-dashboard-page .dashboard-stat .stat-foot {
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.admin-dashboard-page .dashboard-stat .stat-watermark {
    right: 8px;
    bottom: -16px;
    color: rgba(83, 67, 48, 0.045);
    font-size: 76px;
}

.admin-dashboard-page .dashboard-stat.stat-dark .stat-watermark {
    color: rgba(255, 255, 255, 0.05);
}

.admin-dashboard-page .coverage-row {
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.admin-dashboard-page .coverage-row:hover {
    border-color: #eee4d6;
    background: #fffdf8;
}

.admin-dashboard-page .coverage-icon {
    border-radius: 8px;
    background: #f6f0e5;
}

.admin-dashboard-page .coverage-bar {
    height: 6px;
    background: #eee8dc;
}

.admin-dashboard-page .coverage-bar span {
    border-radius: 999px;
    background: linear-gradient(90deg, #df5d3d 0%, #e0a35e 100%);
}

.admin-dashboard-page .coverage-count {
    padding: 4px 8px;
    border-radius: 999px;
    background: #faf5eb;
}

.admin-dashboard-page .coverage-count.is-ready {
    color: #357a58;
    background: #eef7f2;
}

.admin-dashboard-page .panel {
    border-radius: 15px;
}

@media (max-width: 900px) {
    .admin-dashboard-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .admin-dashboard-head h1 {
        font-size: 32px;
    }

    .admin-dashboard-head::after {
        font-size: 78px;
    }

    .admin-dashboard-head .admin-page-actions {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 16px;
    }
}

.admin-dashboard-page .admin-page-head p {
    font-size: 13px;
}

.admin-dashboard-page .stat-label {
    font-size: 11.5px;
}

.admin-dashboard-page .stat-card strong {
    font-size: 42px;
}

.admin-dashboard-page .stat-card strong small {
    font-size: 13px;
}

.admin-dashboard-page .stat-foot {
    font-size: 10.5px;
}

.admin-dashboard-page .coverage-name strong {
    font-size: 12px;
}

.admin-dashboard-page .coverage-name span {
    font-size: 9.5px;
}

.admin-dashboard-page .coverage-count {
    font-size: 11px;
}

.admin-dashboard-page .health-list > div {
    font-size: 12px;
}

.admin-dashboard-page .health-list code {
    font-size: 10.5px;
}

.admin-dashboard-page .mini-user-name {
    font-size: 12.5px;
}

.admin-dashboard-page .mini-user-time {
    font-size: 10px;
}

.admin-dashboard-page .panel-head > a {
    font-size: 11.5px;
}

.admin-dashboard-page .panel-link {
    font-size: 12px;
}

.admin-dashboard-page .panel-note {
    font-size: 11px;
}

.admin-dashboard-page .panel-empty {
    font-size: 12.5px;
}

.admin-dashboard-page .data-table {
    font-size: 12.5px;
}

.admin-dashboard-page .data-table th {
    padding-top: 11px;
    padding-bottom: 11px;
    font-size: 10px;
}

.admin-dashboard-page .data-table td {
    padding-top: 13px;
    padding-bottom: 13px;
}

.admin-dashboard-page .data-table code {
    font-size: 11.5px;
}

.admin-dashboard-page .status-pill {
    padding: 4px 8px;
    font-size: 10.5px;
}

/* Server spotlight management page */

.admin-servers-head {
    position: relative;
    align-items: flex-end;
    overflow: hidden;
    padding: 26px 28px;
    border: 1px solid #e5dbcd;
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 0%, rgba(223, 93, 61, 0.09), transparent 37%),
        radial-gradient(circle at 93% 10%, rgba(80, 116, 143, 0.1), transparent 38%),
        linear-gradient(135deg, #fffdf9 0%, #f6f1e8 100%);
}

.admin-servers-head::after {
    position: absolute;
    right: 18px;
    bottom: -24px;
    content: "TEXT ADS";
    color: rgba(91, 74, 56, 0.052);
    font-family: var(--font-display);
    font-size: 106px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    pointer-events: none;
}

.admin-servers-head-main,
.admin-servers-head .admin-page-actions {
    position: relative;
    z-index: 1;
}

.servers-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid #e8cbbd;
    border-radius: 999px;
    color: var(--maple-deep);
    background: #fff8f3;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.servers-kicker i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--maple);
    box-shadow: 0 0 0 3px rgba(223, 93, 61, 0.12);
}

.admin-servers-head h1 {
    margin-top: 11px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.admin-servers-head p {
    margin-top: 8px;
    max-width: 640px;
    color: var(--ink-3);
    font-size: 14px;
    line-height: 1.75;
}

.servers-head-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.servers-head-stats > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid rgba(219, 205, 187, 0.85);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(4px);
}

.servers-head-stats strong {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 19px;
    line-height: 1;
}

.servers-head-stats span {
    color: var(--ink-4);
    font-size: 10.5px;
    font-weight: 600;
}

.admin-servers-head .admin-page-actions {
    flex: 0 0 auto;
    align-items: flex-end;
    flex-direction: column;
    gap: 9px;
}

.admin-servers-page #server-form,
.admin-servers-page .admin-grid-side .panel,
.admin-servers-page > .panel {
    border-radius: 16px;
}

.admin-servers-page #server-form {
    background: linear-gradient(145deg, #fffefb 0%, #fbf7ef 100%);
}

.admin-servers-page .server-preview {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(23, 34, 46, 0.04);
}

.admin-servers-page .server-preview-head {
    background: #f3f7fa;
}

.admin-servers-page .server-preview-note {
    margin-top: 10px;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .admin-servers-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .admin-servers-head h1 {
        font-size: 34px;
    }

    .admin-servers-head::after {
        font-size: 72px;
    }

    .admin-servers-head .admin-page-actions {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 16px;
    }
}

.admin-servers-page .admin-page-head p {
    font-size: 13px;
}

.admin-servers-page .admin-file-pill {
    font-size: 11px;
}

.admin-servers-page .field > span:first-child {
    font-size: 13.5px;
}

.admin-servers-page .field > span:first-child small {
    font-size: 11.5px;
}

.admin-servers-page .panel-note {
    font-size: 11px;
}

.admin-servers-page .server-preview-head span {
    padding: 9px 10px;
    font-size: 10.5px;
}

.admin-servers-page .server-preview-row {
    font-size: 11px;
    line-height: 1.6;
}

.admin-servers-page .server-preview-row strong {
    font-size: 11.5px;
}

.admin-servers-page .server-admin-name {
    font-size: 12px;
}

.admin-servers-page .data-table {
    font-size: 12.5px;
}

.admin-servers-page .data-table th {
    padding-top: 11px;
    padding-bottom: 11px;
    font-size: 10px;
}

.admin-servers-page .data-table td {
    padding-top: 13px;
    padding-bottom: 13px;
}

.admin-servers-page .data-table code {
    font-size: 11px;
}

.admin-servers-page .muted-cell {
    font-size: 11.5px !important;
}

.admin-servers-page .table-link {
    font-size: 11.5px;
}

.admin-servers-page .status-pill {
    padding: 4px 8px;
    font-size: 10.5px;
}

.server-expiry-cell {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-servers-page .server-expiry-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 0;
    padding: 4px 8px;
    border: 1px solid #e6ddcd;
    border-radius: 999px;
    color: #7a6a55;
    background: #fbf7ef;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.admin-servers-page .server-expiry-time i {
    color: #b18a4d;
    font-size: 10px;
    font-style: normal;
    line-height: 1;
}

.admin-servers-page .server-expiry-time.is-expired {
    border-color: #edc9c0;
    color: #a84b3b;
    background: #fdf1ed;
}

.admin-servers-page .server-expiry-time.is-expired i {
    color: #b65b4b;
}

.admin-servers-page .table-actions .table-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid #d9e2ea;
    border-radius: 999px;
    color: #426987;
    background: #f4f9fc;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.admin-servers-page .table-actions .table-action span {
    display: inline-grid;
    place-items: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(66, 105, 135, 0.1);
    font-size: 10px;
    line-height: 1;
}

.admin-servers-page .table-actions .table-action:hover {
    border-color: #b8cedd;
    background: #eaf4fb;
    transform: translateY(-1px);
}

.admin-servers-page .table-actions .table-action-delete {
    border-color: #ecc5bb;
    color: #aa4a37;
    background: #fff7f4;
}

.admin-servers-page .table-actions .table-action-delete span {
    background: rgba(170, 74, 55, 0.1);
}

.admin-servers-page .table-actions .table-action-delete:hover {
    border-color: #dfa18f;
    color: #8e3523;
    background: #fdece7;
}

.admin-servers-page .table-actions a,
.admin-servers-page .table-actions button {
    font-size: 11.5px;
}

.admin-servers-page .import-notes p {
    font-size: 11.5px;
}

/* Import */

.admin-import-head {
    position: relative;
    align-items: flex-end;
    overflow: hidden;
    padding: 26px 28px;
    border: 1px solid #e4dccf;
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 0%, rgba(53, 105, 135, 0.11), transparent 38%),
        radial-gradient(circle at 93% 8%, rgba(223, 93, 61, 0.09), transparent 36%),
        linear-gradient(135deg, #fffdf9 0%, #f4f1e9 100%);
}

.admin-import-head::after {
    position: absolute;
    right: 20px;
    bottom: -24px;
    content: "IMPORT";
    color: rgba(62, 83, 100, 0.055);
    font-family: var(--font-display);
    font-size: 112px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    pointer-events: none;
}

.admin-import-head-main,
.admin-import-head .admin-page-actions {
    position: relative;
    z-index: 1;
}

.import-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid #c9dbe6;
    border-radius: 999px;
    color: #426987;
    background: #f4fafd;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.import-kicker i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5b87a8;
    box-shadow: 0 0 0 3px rgba(91, 135, 168, 0.13);
}

.admin-import-head h1 {
    margin-top: 11px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.admin-import-head p {
    margin-top: 8px;
    max-width: 680px;
    color: var(--ink-3);
    font-size: 14px;
    line-height: 1.75;
}

.import-head-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.import-head-stats > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid rgba(205, 213, 216, 0.85);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(4px);
}

.import-head-stats strong {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 19px;
    line-height: 1;
}

.import-head-stats span {
    color: var(--ink-4);
    font-size: 10.5px;
    font-weight: 600;
}

.admin-import-head .admin-page-actions {
    flex: 0 0 auto;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 9px;
}

.admin-import-head .admin-page-actions .inline-form {
    align-items: center;
    margin: 0;
}

.import-head-stats .import-stock-pill {
    align-self: center;
    min-height: 39px;
    padding: 10px 13px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.import-head-stats .import-head-region {
    align-self: center;
    min-height: 39px;
    padding: 4px 7px 4px 11px;
    border: 1px solid rgba(205, 213, 216, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
}

.import-head-stats .import-head-region label {
    font-size: 9.5px;
}

.import-head-stats .import-head-region select {
    height: 29px;
    font-size: 11.5px;
}

.import-source-panel {
    margin-bottom: 15px;
    border-radius: 15px;
    background: linear-gradient(145deg, #fffefb 0%, #fbf7ef 100%);
}

.import-source-panel {
    position: relative;
    overflow: hidden;
}

.import-source-panel::after {
    position: absolute;
    top: 24px;
    right: 26px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    content: "";
    background: radial-gradient(circle, rgba(223, 93, 61, 0.06), transparent 68%);
    pointer-events: none;
}

.import-source-panel .panel-head {
    position: relative;
    z-index: 1;
    padding-bottom: 13px;
    border-bottom: 1px solid #eee7db;
}

.import-source-panel .panel-head h2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.source-region-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid #e8cbbd;
    border-radius: 999px;
    color: var(--maple-deep);
    background: #fff2ea;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.source-edit-link {
    position: relative;
    z-index: 1;
    padding: 5px 9px;
    border: 1px solid #e5dbcd;
    border-radius: 999px;
    color: var(--ink-3);
    background: #fffdf9;
    font-size: 10.5px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.source-edit-link:hover {
    border-color: #d4bea9;
    background: #fff8f2;
}

.source-card {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 16px;
    border: 1px solid #e7ddce;
    border-radius: 12px;
    background: linear-gradient(135deg, #fffefb 0%, #fbf6ed 100%);
}

.source-card-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid #ecd3c5;
    border-radius: 12px;
    color: #b05e43;
    background: linear-gradient(145deg, #fff6ef 0%, #fbe8dd 100%);
    box-shadow: 0 4px 12px rgba(176, 94, 67, 0.08);
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.source-card-body {
    flex: 1;
    min-width: 0;
}

.source-card-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.source-card-title > span {
    color: var(--ink-3);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.source-card-title code {
    max-width: 100%;
    overflow: hidden;
    padding: 5px 9px;
    border: 1px solid #ece5d9;
    border-radius: 6px;
    color: #5b5d5e;
    background: #fff;
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 8px;
    color: var(--ink-4);
    font-size: 11.5px;
}

.source-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.source-card-meta span::before {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    content: "";
    background: #c9b594;
}

.source-card-status {
    flex: 0 0 auto;
    padding: 5px 10px;
    font-size: 11.5px;
}

@media (max-width: 760px) {
    .source-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .source-card-body {
        flex-basis: calc(100% - 62px);
    }

    .source-card-status {
        margin-left: 61px;
    }
}

#import-app .panel {
    border-radius: 15px;
}

.import-table .table-cat-icon {
    border-radius: 9px;
}

.import-table tbody tr {
    transition: background 0.18s ease;
}

.import-table tbody tr:hover {
    background: #fffdf8;
}

.import-table tbody td {
    border-bottom-color: #f1ebdf;
}

.import-table .button-sm {
    border-color: #d7e2e9;
    color: #426987;
    background: #f6fbfe;
}

.import-table .button-sm:hover {
    border-color: #b7cedc;
    background: #eaf4fb;
}

.import-upload-panel,
.import-history-panel {
    border-radius: 15px;
}

@media (max-width: 900px) {
    .admin-import-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .admin-import-head h1 {
        font-size: 34px;
    }

    .admin-import-head::after {
        font-size: 78px;
    }

    .admin-import-head .admin-page-actions {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 16px;
    }
}

.import-source-panel {
    margin-bottom: 15px;
}

.source-path-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.source-path {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e4dfd3;
    border-radius: 8px;
    background: #faf7f0;
}

.source-folder {
    flex: 0 0 auto;
    padding: 2px 5px;
    border-radius: 3px;
    color: var(--maple-deep);
    background: var(--maple-soft);
    font-family: var(--mono);
    font-size: 7.5px;
    font-weight: 700;
}

.source-path code {
    overflow: hidden;
    color: var(--ink-3);
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inline-warning {
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 7px;
    color: #8f5c1d;
    background: #fbf1dd;
    font-size: 10px;
}

.import-progress {
    margin-bottom: 15px;
    padding: 16px 18px;
    border: 1px solid #263644;
    border-radius: 12px;
    color: #c4d0d8;
    background: var(--ink);
}

.import-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 13px;
}

.import-progress-head strong {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.import-progress-head > span {
    color: var(--gold);
    font-family: var(--mono);
    font-size: 11px;
}

.import-progress-bar {
    height: 4px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.import-progress-bar span {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--maple), var(--gold));
    transition: width 0.3s ease;
}

.import-log {
    max-height: 190px;
    margin-top: 12px;
    overflow-y: auto;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.55;
}

.import-log-line {
    display: flex;
    gap: 12px;
    padding: 5px 0;
    color: #b4c2cc;
}

.import-log-line > span:first-child {
    flex: 0 0 auto;
    color: #5d7180;
}

.import-log-line.is-ok > span:last-child {
    color: #9ac7ad;
}

.import-log-line.is-bad > span:last-child {
    color: #e19a88;
}

.import-count {
    font-family: var(--mono);
    font-size: 9.5px;
}

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

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

.import-table th {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 10.5px;
}

.import-table td {
    padding-top: 13px;
    padding-bottom: 13px;
}

.import-table .table-category strong {
    font-size: 14px;
}

.import-table .table-category small {
    font-size: 11px;
}

.import-table code {
    font-size: 11.5px;
}

.import-table .import-count {
    font-size: 12px;
}

.import-table .status-pill {
    padding: 4px 9px;
    font-size: 10.5px;
}

.import-table .button-sm {
    min-height: 34px;
    font-size: 11.5px;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.file-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 138px;
    padding: 20px;
    border: 1px dashed #cfc6b6;
    border-radius: 12px;
    background: #faf7f0;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.file-drop:hover,
.file-drop.is-dragging,
.file-drop.has-file {
    border-color: var(--maple);
    background: #fdf2ed;
}

.file-drop input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.file-drop-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    border-radius: 9px;
    color: var(--maple);
    background: var(--maple-soft);
    font-size: 16px;
}

.file-drop strong {
    font-size: 11.5px;
}

.file-drop small {
    margin-top: 3px;
    color: var(--ink-4);
    font-size: 9px;
}

.file-name {
    margin-top: 7px;
    color: var(--maple-deep);
    font-family: var(--mono);
    font-size: 9px;
}

.import-notes {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    list-style: none;
}

.import-notes li {
    display: flex;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid #eee9df;
}

.import-notes li:first-child {
    border-top: 0;
}

.import-notes span {
    flex: 0 0 auto;
    color: var(--maple);
    font-family: var(--mono);
    font-size: 8.5px;
}

.import-notes p {
    color: var(--ink-3);
    font-size: 10.5px;
    line-height: 1.7;
}

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

.admin-grid-import .import-notes li {
    gap: 14px;
    padding: 14px 0;
}

.admin-grid-import .import-notes span {
    font-size: 10.5px;
}

.admin-grid-import .import-notes p {
    font-size: 14px;
    line-height: 1.75;
}

.import-upload-panel .file-drop strong {
    font-size: 13.5px;
}

.import-upload-panel .file-drop small {
    margin-top: 5px;
    font-size: 12.5px;
    line-height: 1.6;
}

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

.import-history-panel .panel-note {
    font-size: 11px;
}

.import-history-panel .data-table {
    font-size: 12.5px;
}

.import-history-panel .data-table th {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 10.5px;
}

.import-history-panel .data-table td {
    padding-top: 13px;
    padding-bottom: 13px;
}

.import-history-panel .data-table code {
    font-size: 11.5px;
}

.import-history-panel .status-pill {
    padding: 4px 9px;
    font-size: 10.5px;
}

/* Settings / raw */

.source-file-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.source-file {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border: 1px solid #e8e3d8;
    border-radius: 9px;
}

.source-file > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    line-height: 1.35;
}

.source-file strong {
    overflow: hidden;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-file small {
    color: var(--ink-4);
    font-size: 8px;
}

.source-file > span:last-child {
    font-size: 12px;
}

.source-file.is-ok > span:last-child {
    color: var(--ok);
}

.source-file.is-bad {
    border-color: #efccc4;
    background: #fdf4f1;
}

.source-file.is-bad > span:last-child {
    color: var(--danger);
}

.extension-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.extension-list span {
    padding: 5px 8px;
    border-radius: 5px;
    font-family: var(--mono);
    font-size: 8.5px;
}

.extension-list .is-ok {
    color: var(--ok);
    background: #eaf4ee;
}

.extension-list .is-bad {
    color: var(--danger);
    background: #faeae7;
}

.raw-field-list {
    max-height: 360px;
    overflow-y: auto;
}

.raw-field-list > div {
    padding: 8px 0;
    border-top: 1px solid #eee9df;
}

.raw-field-list > div:first-child {
    border-top: 0;
}

.raw-field-list code {
    display: block;
    color: var(--maple-deep);
    font-size: 8px;
}

.raw-field-list span {
    display: block;
    margin-top: 2px;
    color: var(--ink-3);
    font-size: 9.5px;
    line-height: 1.6;
}

.security-note p {
    color: var(--ink-3);
    font-size: 10.5px;
    line-height: 1.75;
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hero-grid {
        gap: 42px;
    }

    .hero-copy h1 {
        font-size: clamp(46px, 5vw, 64px);
    }

    .admin-grid-main {
        grid-template-columns: minmax(0, 1.4fr) minmax(270px, 0.8fr);
    }
}

@media (max-width: 1020px) {
    .main-nav {
        gap: 0;
    }

    .main-nav a {
        padding-inline: 10px;
    }

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

    .auth-grid {
        grid-template-columns: minmax(0, 1fr) 420px;
    }

    .auth-art {
        padding: 42px 36px;
    }

    .auth-art h1 {
        font-size: 44px;
    }

    .entry-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .entry-code-card {
        min-width: 165px;
    }

    .admin-grid-main,
    .admin-grid-import,
    .admin-grid-edit,
    .admin-grid-settings {
        grid-template-columns: minmax(0, 1fr);
    }

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

@media (max-width: 900px) {
    .container {
        width: min(100% - 40px, 760px);
    }

    .header-inner {
        height: 70px;
        gap: 14px;
    }

    .mobile-menu-button {
        display: inline-grid;
        width: 38px;
        height: 38px;
        border: 0;
        background: rgba(255, 253, 249, 0.7);
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        padding: 9px;
        border: 1px solid var(--line);
        border-radius: 15px;
        background: var(--white);
        box-shadow: var(--shadow);
        margin-left: 0;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 11px 13px;
    }

    .brand-copy strong {
        font-size: 15px;
    }

    .header-login {
        display: none;
    }

    .hero {
        padding: 56px 0 70px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .hero-copy h1 {
        font-size: clamp(48px, 8vw, 68px);
    }

    .hero-lead {
        max-width: 620px;
    }

    .hero-visual {
        max-width: 620px;
        padding-bottom: 22px;
    }

    .console-card {
        transform: none;
    }

    .hero-stamp {
        right: -4px;
        width: 104px;
        height: 104px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .section-heading > p {
        max-width: 600px;
        padding-bottom: 0;
    }

    .category-section,
    .how-section {
        padding: 66px 0 72px;
    }

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

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

    .cta-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
        padding: 36px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .auth-shell {
        padding: 40px 0 60px;
    }

    .auth-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .auth-art {
        min-height: 0;
        padding: 38px 36px;
    }

    .auth-art h1 {
        font-size: 42px;
    }

    .auth-art-list {
        margin-top: 25px;
    }

    .auth-quote {
        display: none;
    }

    .auth-card {
        padding: 34px 30px;
    }

    .search-layout {
        grid-template-columns: minmax(0, 1fr);
        min-width: 0;
        padding-top: 20px;
    }

    .search-sidebar {
        position: static;
        width: 100%;
        min-width: 0;
    }

    .search-results {
        width: 100%;
        min-width: 0;
    }

    .sidebar-block {
        width: 100%;
        min-width: 0;
        padding: 13px;
    }

    .category-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 5px;
        overflow: visible;
        padding-bottom: 0;
    }

    .category-nav a {
        min-width: 0;
        padding: 8px 7px;
        gap: 7px;
        white-space: nowrap;
    }

    .category-nav a small {
        display: none;
    }

    .subcategory-block {
        display: none;
    }

    .sidebar-tip {
        display: none;
    }

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

    .entry-aside {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .entry-aside .side-card {
        margin-bottom: 0;
    }

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

    .account-aside {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .account-aside .side-card {
        margin-bottom: 0;
    }

    .admin-login-shell {
        grid-template-columns: 1fr;
    }

    .admin-login-art {
        min-height: 380px;
        padding: 32px 34px 28px;
    }

    .admin-login-copy {
        padding: 34px 0 24px;
    }

    .admin-login-copy h1 {
        font-size: 46px;
    }

    .admin-login-panel {
        padding: 46px 30px 60px;
    }

    .admin-login-form-wrap {
        width: min(420px, 100%);
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.24s ease;
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    .admin-workspace {
        margin-left: 0;
    }

    .admin-menu-button {
        display: inline-grid;
        width: 34px;
        height: 34px;
        border: 1px solid #ddd8cc;
        border-radius: 8px;
    }

    .admin-menu-button span {
        display: block;
        width: 14px;
        height: 1.5px;
        margin: 1.8px 0;
        background: currentColor;
    }

    .admin-overlay {
        position: fixed;
        inset: 0;
        z-index: 65;
        background: rgba(14, 22, 30, 0.45);
        backdrop-filter: blur(2px);
    }

    .admin-overlay.is-visible {
        display: block;
    }

    body.admin-nav-open {
        overflow: hidden;
    }

    .admin-topbar {
        padding: 0 20px;
    }

    .admin-main {
        padding: 24px 20px 36px;
    }

    .admin-footer {
        padding-inline: 20px;
    }

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

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

    .admin-page-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 640px) {
    .container {
        width: calc(100% - 36px);
    }

    .header-actions .button {
        min-height: 36px;
        padding: 8px 13px;
        font-size: 12px;
    }

    .user-chip-name {
        display: none;
    }

    .user-chip svg {
        display: none;
    }

    .header-actions {
        gap: 7px;
    }

    .header-checkin {
        min-height: 32px;
        padding: 0 8px;
        font-size: 10px;
    }

    .header-checkin small {
        display: none;
    }

    .hero {
        padding: 40px 0 58px;
    }

    .hero-copy h1 {
        font-size: 43px;
    }

    .hero-lead {
        font-size: 14px;
    }

    .hero-search {
        flex-wrap: wrap;
        padding: 7px;
    }

    .hero-search .search-icon {
        width: 30px;
    }

    .hero-search input {
        flex-basis: calc(100% - 34px);
        height: 40px;
    }

    .hero-search select {
        flex: 1;
        max-width: none;
        height: 38px;
        padding-left: 10px;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .hero-search-button {
        flex: 1;
        min-height: 38px;
    }

    .hero-meta {
        gap: 8px;
        font-size: 10.5px;
    }

    .hero-stamp {
        right: 0;
        bottom: -8px;
        width: 90px;
        height: 90px;
        padding: 11px;
    }

    .hero-stamp span {
        font-size: 20px;
    }

    .hero-stamp small {
        font-size: 6.5px;
    }

    .console-body {
        padding: 16px 14px;
    }

    .console-row {
        grid-template-columns: 18px 62px minmax(0, 1fr);
        gap: 8px;
        padding: 11px 5px;
    }

    .console-tag {
        display: none;
    }

    .console-name {
        font-size: 12px;
    }

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

    .category-card {
        min-height: 204px;
        padding: 18px 16px 15px;
    }

    .category-name {
        font-size: 17px;
    }

    .category-desc {
        font-size: 10.5px;
    }

    .section-heading h2 {
        font-size: 31px;
    }

    .how-section,
    .category-section {
        padding: 56px 0 60px;
    }

    .cta-card {
        padding: 28px 24px;
    }

    .cta-card h2 {
        font-size: 28px;
    }

    .cta-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .auth-art {
        padding: 30px 24px;
    }

    .auth-art h1 {
        font-size: 36px;
    }

    .auth-art-list {
        display: none;
    }

    .auth-card {
        padding: 28px 22px;
    }

    .auth-card-head h2 {
        font-size: 28px;
    }

    .search-hero {
        padding-top: 30px;
    }

    .search-hero-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .search-hero h1 {
        font-size: 32px;
    }

    .search-bar {
        flex-wrap: wrap;
    }

    .search-bar .search-icon {
        width: 30px;
    }

    .search-bar input {
        flex-basis: calc(100% - 34px);
        height: 40px;
    }

    .search-bar select {
        flex: 1;
        max-width: none;
        height: 38px;
        padding-left: 10px;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .search-bar .button {
        min-height: 38px;
        order: 3;
        flex: 0 0 auto;
    }

    .search-bar .region-select {
        order: 0;
        flex: 0 0 76px;
        max-width: 76px;
        height: 40px;
        padding: 0 7px;
        border-top: 0;
        border-right: 1px solid var(--line);
        font-size: 10px;
    }

    .search-bar .search-icon {
        order: 1;
        flex: 0 0 30px;
    }

    .search-bar input {
        order: 2;
        flex: 1 1 120px;
        width: auto;
        min-width: 0;
        height: 40px;
    }

    .search-bar select[name="category"] {
        order: 4;
        flex: 0 0 100%;
        max-width: none;
        height: 38px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .server-board::before {
        display: block;
        padding: 8px 12px;
        border-bottom: 1px solid #cbd7de;
        content: "长期置顶服务器";
        color: #152534;
        background: #dbe9f1;
        font-size: 11px;
        font-weight: 750;
        letter-spacing: 0.08em;
    }

    .server-table thead {
        display: none;
    }

    .server-table,
    .server-table tbody,
    .server-table tr,
    .server-table td {
        display: block;
        width: 100%;
    }

    .server-table tbody tr {
        padding: 11px 13px;
        border-bottom: 1px solid #eee8dc;
    }

    .server-table tbody tr:last-child {
        border-bottom: 0;
    }

    .server-table td {
        padding: 0;
        border: 0;
        text-align: left;
    }

    .server-name {
        font-size: 12.5px;
        white-space: normal;
    }

    .server-board,
    .search-ads,
    .corner-ads {
        display: none;
    }

    .server-modal {
        padding: 12px;
    }

    .server-modal-card {
        padding: 22px 18px 18px;
    }

    .server-modal-desc {
        max-height: 50vh;
        font-size: 12.5px;
    }

    .server-title-link {
        justify-content: flex-start;
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;
    }

    .server-title-text {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .server-desc {
        margin-top: 3px;
        font-size: 10.5px;
        line-height: 1.7;
    }

    .server-desc-link,
    .server-desc-text {
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;
    }

    .results-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .result-card {
        gap: 11px;
        padding: 15px 14px;
    }

    .result-mark {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 15px;
    }

    .result-card h3 {
        font-size: 15px;
    }

    .result-desc {
        -webkit-line-clamp: 3;
    }

    .result-arrow {
        display: none;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .entry-hero {
        padding-top: 22px;
    }

    .breadcrumb {
        margin-bottom: 18px;
    }

    .entry-hero-main {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
    }

    .entry-emblem {
        width: 58px;
        height: 58px;
        border-radius: 16px;
        font-size: 24px;
    }

    .entry-name-row {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .entry-title-block h1 {
        font-size: 31px;
    }

    .entry-back-button {
        min-height: 32px;
        padding: 6px 11px;
        font-size: 11px;
    }

    .entry-hero .entry-kicker .category-pill,
    .entry-hero .entry-kicker .region-pill,
    .entry-code-inline {
        width: auto;
    }

    .entry-code-card {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-width: 0;
        text-align: left;
    }

    .entry-code-card > span {
        display: none;
    }

    .entry-code-card strong {
        font-size: 22px;
    }

    .copy-button {
        margin-top: 0;
    }

    .content-card {
        padding: 22px 18px;
    }

    .description-body.has-media {
        flex-direction: column;
        gap: 16px;
    }

    .description-media {
        flex: 0 0 auto;
        width: 128px;
        height: 128px;
    }

    .description-media img {
        width: 96px;
        height: 96px;
    }

    .content-card-head h2 {
        font-size: 23px;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .equipment-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .equipment-stat {
        padding: 9px 11px;
    }

    .equipment-stat strong {
        font-size: 13px;
    }

    .entry-aside {
        grid-template-columns: 1fr;
    }

    .account-hero-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-avatar {
        width: 60px;
        height: 60px;
        border-radius: 17px;
        font-size: 26px;
    }

    .account-identity h1 {
        font-size: 30px;
    }

    .account-stats {
        width: 100%;
    }

    .account-stats > div {
        min-width: 0;
        flex: 1;
        padding: 0 14px;
    }

    .account-stats > div:first-child {
        padding-left: 0;
        border-left: 0;
    }

    .account-stats strong {
        font-size: 22px;
    }

    .checkin-main {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .checkin-history {
        justify-content: flex-start;
        max-width: none;
    }

    .history-list a {
        grid-template-columns: 25px minmax(0, 1fr) auto;
    }

    .history-list .category-pill,
    .history-list .history-time {
        display: none;
    }

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

    .account-aside {
        grid-template-columns: 1fr;
    }

    .admin-login-art {
        min-height: 310px;
        padding: 24px;
    }

    .admin-login-copy {
        padding: 26px 0 18px;
    }

    .admin-login-copy h1 {
        font-size: 38px;
    }

    .admin-login-copy > p {
        font-size: 12px;
    }

    .admin-login-metrics {
        display: none;
    }

    .admin-login-panel {
        padding: 36px 22px 48px;
    }

    .admin-topbar {
        height: 58px;
        padding: 0 16px;
        gap: 10px;
    }

    .admin-breadcrumb a,
    .admin-breadcrumb span {
        display: none;
    }

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

    .admin-main {
        padding: 20px 16px 30px;
    }

    .admin-footer {
        flex-direction: column;
        gap: 3px;
        padding: 12px 16px;
    }

    .admin-toasts {
        top: auto;
        right: 12px;
        bottom: 18px;
    }

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

    .admin-page-actions {
        flex-wrap: wrap;
    }

    .stat-grid,
    .stat-grid-three {
        grid-template-columns: 1fr;
    }

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

    .admin-grid-side {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 18px 16px;
    }

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

    .admin-filter {
        flex-wrap: wrap;
    }

    .admin-search {
        width: 100%;
    }

    .admin-filter select {
        flex: 1;
    }

    .filter-result {
        width: 100%;
        margin-left: 0;
    }

    .source-path-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .source-path {
        width: 100%;
    }

    .source-file-grid {
        grid-template-columns: 1fr;
    }

    .table-wrap {
        margin-inline: -16px;
        width: calc(100% + 32px);
        padding-inline: 16px;
    }

    .data-table {
        min-width: 620px;
    }

    .toast-stack {
        top: 80px;
        right: 12px;
    }

    .notfound-section {
        padding: 50px 0;
    }
}

@media (max-width: 760px) {
    .item-tooltip {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- Monster attributes ---------- */

.mob-attr-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.mob-attr-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 3px 7px;
    border: 1px solid #e8dccb;
    border-radius: 999px;
    background: #fbf7ef;
    color: #736555;
    font-size: 9px;
    line-height: 1.2;
    white-space: nowrap;
}

.mob-attr-chip small {
    color: #a08f7b;
    font-size: 8px;
}

.mob-attr-chip b {
    color: #44505b;
    font-family: var(--mono, monospace);
    font-size: 10px;
    font-weight: 700;
}

.mob-attr-chip.is-level {
    border-color: #e3b8a6;
    background: #fff2ea;
}

.mob-attr-chip.is-level b {
    color: #a9452f;
}

.mob-attributes-card .content-card-head {
    align-items: center;
}

.mob-attribute-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid #eadfce;
    border-radius: 10px;
    background: #eadfce;
}

.mob-attribute-item {
    display: flex;
    min-height: 58px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 9px 12px;
    background: #fffdf9;
}

.mob-attribute-item span {
    color: #9b8e7f;
    font-size: 9px;
}

.mob-attribute-item strong {
    color: var(--ink, #1d252e);
    font-family: var(--mono, monospace);
    font-size: 14px;
    font-weight: 700;
}

.mob-attribute-item.is-level {
    background: #fff4ed;
}

.mob-attribute-item.is-level strong {
    color: #a9452f;
}

@media (max-width: 700px) {
    .mob-attribute-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mob-attribute-item {
        min-height: 52px;
        padding: 8px 10px;
    }
}

/* Larger monster attribute typography */
.mob-attr-chip {
    gap: 5px;
    padding: 5px 9px;
    font-size: 11px;
}

.mob-attr-chip small {
    font-size: 9.5px;
}

.mob-attr-chip b {
    font-size: 12px;
}

.mob-attribute-item {
    min-height: 70px;
    padding: 12px 14px;
}

.mob-attribute-item span {
    font-size: 11px;
}

.mob-attribute-item strong {
    font-size: 18px;
}

/* ---------- 我的发布 · 记录卡片 ---------- */

.publish-history {
    padding: 24px;
}

.publish-history .panel-head {
    align-items: flex-end;
}

.publish-history .panel-head h2 {
    font-size: 28px;
}

.publish-history-overview {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
    margin: 16px 0 4px;
}

.publish-history-overview > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid #ece3d6;
    border-radius: 10px;
    background: #fbf8f1;
}

.publish-history-overview span {
    color: var(--ink-4);
    font-size: 9px;
}

.publish-history-overview strong {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.publish-history-overview strong.is-pending {
    color: #b08443;
}

.publish-history-overview strong.is-approved {
    color: var(--ok);
}

.publish-history-overview strong.is-rejected {
    color: var(--danger);
}

.publish-history-list {
    gap: 12px;
    margin-top: 14px;
}

.publish-history-item {
    grid-template-columns: 78px minmax(0, 1fr) minmax(270px, auto);
    gap: 18px;
    min-height: 100px;
    padding: 17px 19px;
    border: 1px solid #e8ddcd;
    border-radius: 16px;
    background:
        linear-gradient(110deg, rgba(223, 93, 61, 0.035), transparent 42%),
        #fffdf9;
    box-shadow: 0 5px 16px rgba(23, 34, 46, 0.035);
}

.publish-history-item.is-image {
    background:
        linear-gradient(110deg, rgba(111, 143, 174, 0.055), transparent 42%),
        #fffdf9;
}

.publish-history-item::before {
    width: 4px;
    border-radius: 4px 0 0 4px;
}

.publish-history-item:hover {
    border-color: #d8c3ad;
    box-shadow: 0 12px 28px rgba(23, 34, 46, 0.075);
    transform: translateY(-2px);
}

.publish-history-type {
    display: flex;
    width: 68px;
    height: 68px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border: 1px solid #f0d8ca;
    border-radius: 15px;
    background: #fff5ee;
    color: #a54c35;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.publish-history-item.is-image .publish-history-type {
    border-color: #d6e4ee;
    background: #f1f8fc;
    color: #4d7695;
}

.publish-history-type i {
    font-size: 21px;
    line-height: 1;
}

.publish-history-item > div:nth-child(2) {
    min-width: 0;
}

.publish-history-item > div:nth-child(2) > strong {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.publish-history-item > div:nth-child(2) > small {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: var(--ink-4);
    font-size: 11px;
    line-height: 1.6;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.publish-history-side {
    justify-content: flex-end;
    gap: 6px;
    max-width: 390px;
}

.publish-history-side .status-pill {
    padding: 5px 9px;
    font-size: 10px;
}

.publish-history-side .publish-expiry {
    font-size: 10px;
}

.publish-history-side .publish-edit-link,
.publish-history-side .publish-delete-link,
.publish-history-side .publish-offline-link,
.publish-history-side .publish-clicks-link {
    padding: 5px 9px;
    font-size: 10px;
}

.publish-history-reason {
    grid-column: 1 / -1;
    margin-top: 1px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #fff5f1;
}

.publish-history-reason strong {
    font-size: 10px !important;
}

.publish-history-reason span {
    font-size: 10px;
}

.publish-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 42px 20px 38px;
    text-align: center;
}

.publish-history-empty > span {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
    place-items: center;
    border: 1px dashed #d9c8b6;
    border-radius: 50%;
    color: var(--maple);
    font-size: 18px;
}

.publish-history-empty strong {
    color: var(--ink);
    font-size: 15px;
}

.publish-history-empty p {
    color: var(--ink-4);
    font-size: 11px;
}

@media (max-width: 1050px) {
    .publish-history-overview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .publish-history-item {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .publish-history-side {
        grid-column: 2;
        justify-content: flex-start;
        max-width: none;
        margin-top: 2px;
    }
}

@media (max-width: 620px) {
    .publish-history {
        padding: 16px;
    }

    .publish-history .panel-head h2 {
        font-size: 23px;
    }

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

    .publish-history-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 11px;
        padding: 15px;
    }

    .publish-history-type {
        width: auto;
        height: 29px;
        flex-direction: row;
        gap: 5px;
        padding: 0 9px;
        border-radius: 7px;
    }

    .publish-history-type i {
        font-size: 12px;
    }

    .publish-history-side {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        max-width: none;
    }

    .publish-history-item > div:nth-child(2) > strong {
        white-space: normal;
    }

    .publish-history-item > div:nth-child(2) > small {
        white-space: normal;
    }
}

/* ---------- 我的发布 · 到期与上下架 ---------- */

.publish-history-side .publish-expiry {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    padding: 5px 10px 5px 8px;
    border: 1px solid #eadbc5;
    border-left: 3px solid #e0ab55;
    border-radius: 9px;
    background: linear-gradient(135deg, #fffdfa, #fbf3e5);
    color: #6f5d48;
    white-space: nowrap;
}

.publish-history-side .publish-expiry > i {
    display: grid;
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 6px;
    background: #f5e6cd;
    color: #9d6b28;
    font-size: 12px;
    font-style: normal;
    line-height: 1;
}

.publish-history-side .publish-expiry-label {
    color: #a18d75;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.publish-history-side .publish-expiry strong {
    color: #4f4335;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.publish-history-side .publish-expiry.is-expired {
    border-color: #ecc7be;
    border-left-color: #c45f4b;
    background: #fff6f3;
}

.publish-history-side .publish-expiry.is-expired > i {
    background: #f9e2dc;
    color: #a9452f;
}

.publish-history-side .publish-expiry.is-expired strong {
    color: #a9452f;
}

.publish-history-side .publish-expiry.is-permanent {
    border-color: #cfe2d5;
    border-left-color: #6ca886;
    background: #f5fbf7;
}

.publish-history-side .publish-expiry.is-permanent > i {
    background: #e2f1e7;
    color: #397a5c;
}

.publish-history-side .publish-expiry.is-permanent strong {
    color: #397a5c;
}

.publish-offline-link {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    border: 1px solid #e5cba5;
    border-radius: 9px;
    background: linear-gradient(135deg, #fffaf1, #fbf0dc);
    color: #8c5a18;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.publish-offline-link i {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 50%;
    background: rgba(140, 90, 24, 0.12);
    font-size: 10px;
    font-style: normal;
    line-height: 1;
}

.publish-offline-link:hover {
    border-color: #d3a96d;
    background: #fff5e2;
    color: #71470f;
    transform: translateY(-1px);
}

.publish-offline-link.is-off {
    border-color: #bfd9c7;
    background: linear-gradient(135deg, #f7fcf8, #eaf5ed);
    color: #347052;
}

.publish-offline-link.is-off i {
    background: rgba(52, 112, 82, 0.11);
}

.publish-offline-link.is-off:hover {
    border-color: #95c4a5;
    background: #eaf7ee;
    color: #286044;
}

.publish-offline-link.is-disabled {
    border-color: #e9e2d8;
    background: #f8f5ef;
    color: #a39a8e;
    cursor: not-allowed;
    opacity: 0.8;
}

.publish-offline-link.is-disabled i {
    background: rgba(163, 154, 142, 0.12);
}

.publish-offline-link.is-disabled:hover {
    transform: none;
}

.publish-history-side .publish-edit-link {
    min-height: 34px;
    border-radius: 9px;
    font-size: 10px;
}

.publish-history-side .publish-delete-link {
    min-height: 34px;
    border-radius: 9px;
    font-size: 10px;
}

.publish-history-side .publish-clicks-link {
    min-height: 34px;
    border-radius: 9px;
    font-size: 10px;
}

@media (max-width: 620px) {
    .publish-history-side .publish-expiry {
        min-height: 32px;
    }

    .publish-offline-link,
    .publish-history-side .publish-edit-link,
    .publish-history-side .publish-delete-link {
        min-height: 32px;
    }
}

/* 到期徽章与上下架按钮：独立成组，避免挤在一起 */
.publish-history-side {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: end;
    align-items: center;
    gap: 7px;
    max-width: 430px;
}

.publish-history-side .publish-expiry {
    grid-column: 1 / -1;
    justify-self: end;
    min-height: 38px;
    padding: 6px 11px 6px 9px;
}

.publish-history-side .publish-expiry > i {
    width: 24px;
    height: 24px;
    font-size: 14px;
}

.publish-history-side .publish-expiry-label {
    font-size: 9px;
}

.publish-history-side .publish-expiry strong {
    font-size: 11px;
}

.publish-offline-link {
    min-height: 36px;
    padding: 0 13px;
    border-color: #dcb67b;
    background: linear-gradient(135deg, #fff8e9, #f9ecd2);
    color: #774b10;
    font-size: 10.5px;
}

.publish-offline-link i {
    width: 18px;
    height: 18px;
    background: rgba(119, 75, 16, 0.13);
    font-size: 11px;
}

.publish-offline-link.is-off {
    border-color: #accdaf;
    background: linear-gradient(135deg, #f4fbf5, #e6f3e8);
    color: #2e6b4c;
}

@media (max-width: 620px) {
    .publish-history-side {
        display: flex;
        justify-content: flex-start;
    }

    .publish-history-side .publish-expiry {
        justify-self: auto;
    }
}

/* 我的发布：到期、状态、上下架、编辑、删除同一行 */
.publish-history-item {
    grid-template-columns: 78px minmax(0, 1fr) auto;
}

.publish-history-side {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    max-width: none;
}

.publish-history-side .publish-expiry {
    grid-column: auto;
    justify-self: auto;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 5px 9px 5px 8px;
    gap: 6px;
}

.publish-history-side .publish-expiry > i {
    width: 22px;
    height: 22px;
    font-size: 13px;
}

.publish-history-side .publish-expiry-label {
    font-size: 8.5px;
}

.publish-history-side .publish-expiry strong {
    font-size: 10px;
}

.publish-history-side .status-pill {
    flex: 0 0 auto;
    white-space: nowrap;
}

.publish-offline-link,
.publish-history-side .publish-edit-link,
.publish-history-side .publish-delete-link,
.publish-history-side .publish-clicks-link {
    flex: 0 0 auto;
    min-height: 36px;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .publish-history-side {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 1050px) {
    .publish-history-item {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .publish-history-side {
        grid-column: 2;
        justify-content: flex-start;
        margin-top: 2px;
    }
}

@media (max-width: 620px) {
    .publish-history-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .publish-history-side {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        max-width: none;
    }
}

/* ---------- 我的发布 · 编辑广告弹窗 ---------- */

.publish-edit-dialog {
    width: min(680px, calc(100vw - 28px));
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
}

.publish-edit-dialog::backdrop {
    background: rgba(18, 26, 34, 0.48);
    backdrop-filter: blur(5px);
}

.publish-edit-form {
    display: flex;
    max-height: min(88vh, 780px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e8d9c7;
    border-radius: 22px;
    background: #fffdf9;
    box-shadow: 0 32px 90px rgba(16, 25, 34, 0.3);
    animation: publish-dialog-in 0.2s ease-out;
}

@keyframes publish-dialog-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.publish-edit-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #ecdfce;
    background:
        radial-gradient(circle at 88% 0, rgba(231, 177, 93, 0.18), transparent 36%),
        linear-gradient(135deg, #fff8ed, #fffdf9);
}

.publish-edit-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.publish-edit-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #edcfba;
    border-radius: 13px;
    background: #fff3e8;
    color: var(--maple-deep);
    font-size: 19px;
    line-height: 1;
}

.publish-edit-dialog-head .section-kicker {
    color: #a98765;
    font-size: 9px;
}

.publish-edit-dialog-head h2 {
    margin-top: 2px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 29px;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.publish-edit-close {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #e7d9c7;
    border-radius: 9px;
    background: rgba(255, 253, 249, 0.76);
    color: #8c7c6b;
    font-size: 20px;
    line-height: 1;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.publish-edit-close:hover {
    border-color: #d6bfa8;
    background: #fff8ed;
    color: var(--maple-deep);
}

.publish-edit-dialog-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 11px 24px;
    border-bottom: 1px solid #f0e2d1;
    background: #fff8eb;
    color: #8f704f;
    font-size: 10.5px;
    line-height: 1.7;
}

.publish-edit-dialog-note::before {
    flex: 0 0 auto;
    color: #c38a3c;
    content: "◈";
    font-size: 10px;
}

.publish-edit-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 24px 22px;
    overflow-y: auto;
}

.publish-edit-title-field {
    margin: 0;
}

.publish-edit-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: 1px;
    padding-top: 2px;
    border-top: 1px dashed #eadfce;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
}

.publish-edit-section-head small {
    color: var(--ink-4);
    font-size: 9px;
    font-weight: 400;
}

.publish-edit-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.publish-edit-fields[hidden] {
    display: none;
}

.publish-edit-wide {
    grid-column: 1 / -1;
}

.publish-edit-form .field {
    margin: 0;
    gap: 6px;
}

.publish-edit-form .field > span:first-child {
    color: #6f6253;
    font-size: 11px;
    font-weight: 650;
}

.publish-edit-form .field > span:first-child small {
    color: #a59684;
    font-size: 9px;
}

.publish-edit-form .field input,
.publish-edit-form .field textarea,
.publish-edit-form .field select {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #e4d7c5;
    border-radius: 9px;
    outline: 0;
    background: #fcf9f3;
    color: var(--ink);
    font-size: 12px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.publish-edit-form .field textarea {
    min-height: 122px;
    resize: vertical;
    line-height: 1.7;
}

.publish-edit-form .field input:focus,
.publish-edit-form .field textarea:focus,
.publish-edit-form .field select:focus {
    border-color: #d8a17e;
    background: #fffdf9;
    box-shadow: 0 0 0 3px rgba(223, 93, 61, 0.09);
}

.publish-edit-form .field input[type="color"] {
    width: 92px;
    height: 42px;
    padding: 4px;
    cursor: pointer;
}

.publish-edit-form .field input[type="file"] {
    padding: 7px 9px;
    font-size: 10px;
}

.publish-edit-form .field input[type="file"]::file-selector-button {
    margin-right: 9px;
    padding: 4px 8px;
    border: 1px solid #e2d3bf;
    border-radius: 5px;
    background: #fffaf1;
    color: #7c6650;
    font-size: 9px;
}

.publish-edit-form .field-hint {
    margin-top: 0;
    color: #a19484;
    font-size: 9px;
    line-height: 1.55;
}

.publish-edit-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 13px;
    border: 1px solid #eadbc7;
    border-radius: 9px;
    background: #fbf7ef;
}

.publish-edit-type span {
    color: #9d8b76;
    font-size: 10px;
}

.publish-edit-type strong {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
}

.publish-edit-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 24px 16px;
    border-top: 1px solid #ecdfce;
    background: #fffdf9;
}

.publish-edit-action-hint {
    margin-right: auto;
    color: #a89b8c;
    font-size: 9px;
}

.publish-edit-dialog-actions .button {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 11px;
}

.publish-edit-dialog-actions .button-primary {
    min-width: 130px;
}

@media (max-width: 620px) {
    .publish-edit-dialog {
        width: calc(100vw - 18px);
    }

    .publish-edit-form {
        max-height: 92vh;
        border-radius: 17px;
    }

    .publish-edit-dialog-head {
        padding: 17px 16px 14px;
    }

    .publish-edit-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .publish-edit-dialog-head h2 {
        font-size: 24px;
    }

    .publish-edit-dialog-note {
        padding: 9px 16px;
        font-size: 9.5px;
    }

    .publish-edit-body {
        padding: 15px 16px 16px;
    }

    .publish-edit-fields {
        grid-template-columns: 1fr;
    }

    .publish-edit-wide {
        grid-column: auto;
    }

    .publish-edit-dialog-actions {
        padding: 11px 16px 13px;
    }

    .publish-edit-action-hint {
        display: none;
    }

    .publish-edit-dialog-actions .button {
        flex: 1;
    }
}

/* 编辑广告弹窗：字体加大 */
.publish-edit-dialog {
    width: min(720px, calc(100vw - 28px));
}

.publish-edit-dialog-head h2 {
    font-size: 32px;
}

.publish-edit-dialog-head .section-kicker {
    font-size: 10px;
}

.publish-edit-icon {
    width: 48px;
    height: 48px;
    font-size: 21px;
}

.publish-edit-close {
    width: 35px;
    height: 35px;
    font-size: 22px;
}

.publish-edit-dialog-note {
    padding: 12px 26px;
    font-size: 12px;
    line-height: 1.75;
}

.publish-edit-body {
    gap: 16px;
    padding: 22px 26px 24px;
}

.publish-edit-section-head {
    font-size: 14px;
}

.publish-edit-section-head small {
    font-size: 10.5px;
}

.publish-edit-form .field {
    gap: 7px;
}

.publish-edit-form .field > span:first-child {
    font-size: 13px;
}

.publish-edit-form .field > span:first-child small {
    font-size: 10.5px;
}

.publish-edit-form .field input,
.publish-edit-form .field textarea,
.publish-edit-form .field select {
    min-height: 46px;
    padding: 11px 13px;
    font-size: 14px;
    line-height: 1.55;
}

.publish-edit-form .field textarea {
    min-height: 140px;
    font-size: 14px;
}

.publish-edit-form .field input[type="color"] {
    height: 46px;
}

.publish-edit-form .field input[type="file"] {
    font-size: 11px;
}

.publish-edit-form .field input[type="file"]::file-selector-button {
    font-size: 10px;
}

.publish-edit-form .field-hint {
    font-size: 10.5px;
}

.publish-edit-type {
    padding: 12px 14px;
}

.publish-edit-type span {
    font-size: 11.5px;
}

.publish-edit-type strong {
    font-size: 11.5px;
}

.publish-edit-dialog-actions {
    padding: 15px 26px 17px;
}

.publish-edit-action-hint {
    font-size: 10px;
}

.publish-edit-dialog-actions .button {
    min-height: 42px;
    padding: 9px 16px;
    font-size: 13px;
}

.publish-edit-dialog-actions .button-primary {
    min-width: 145px;
}

@media (max-width: 620px) {
    .publish-edit-dialog-head h2 {
        font-size: 27px;
    }

    .publish-edit-dialog-note {
        padding: 10px 17px;
        font-size: 11px;
    }

    .publish-edit-body {
        padding: 16px 17px 17px;
    }

    .publish-edit-section-head {
        font-size: 13px;
    }

    .publish-edit-form .field > span:first-child {
        font-size: 12px;
    }

    .publish-edit-form .field input,
    .publish-edit-form .field textarea,
    .publish-edit-form .field select {
        min-height: 44px;
        font-size: 13px;
    }

    .publish-edit-dialog-actions {
        padding: 12px 17px 14px;
    }

    .publish-edit-dialog-actions .button {
        min-height: 40px;
        font-size: 12px;
    }
}

/* 编辑弹窗：提示文字清晰化 */
.publish-edit-section-head small {
    padding: 3px 8px;
    border: 1px solid #eadac4;
    border-radius: 999px;
    background: #fbf3e7;
    color: #765f48;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.publish-edit-action-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: auto;
    padding: 5px 9px;
    border: 1px solid #eadac4;
    border-radius: 7px;
    background: #fbf4e8;
    color: #705d48;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.publish-edit-action-hint::before {
    color: #b07a31;
    content: "◈";
    font-size: 9px;
}

@media (max-width: 620px) {
    .publish-edit-dialog-actions {
        flex-wrap: wrap;
    }

    .publish-edit-action-hint {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-right: 0;
        order: -1;
        font-size: 10.5px;
    }

    .publish-edit-section-head small {
        font-size: 9.5px;
    }
}

/* 我的发布概览：字体加大 */
.publish-history-overview > div {
    gap: 4px;
    padding: 13px 15px;
    border-radius: 12px;
}

.publish-history-overview span {
    color: #75685a;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.publish-history-overview strong {
    font-size: 20px;
    line-height: 1.25;
}

@media (max-width: 620px) {
    .publish-history-overview > div {
        padding: 11px 12px;
    }

    .publish-history-overview span {
        font-size: 11px;
    }

    .publish-history-overview strong {
        font-size: 18px;
    }
}

/* ---------- 后台 · 文字/图片广告转让弹窗 ---------- */

.ad-transfer-dialog {
    width: min(560px, calc(100vw - 28px));
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
}

.ad-transfer-dialog::backdrop {
    background: rgba(18, 26, 34, 0.48);
    backdrop-filter: blur(5px);
}

.ad-transfer-form {
    overflow: hidden;
    border: 1px solid #e7d9c7;
    border-radius: 20px;
    background: #fffdf9;
    box-shadow: 0 32px 86px rgba(16, 25, 34, 0.28);
    animation: ad-transfer-in 0.2s ease-out;
}

@keyframes ad-transfer-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ad-transfer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 21px 23px 18px;
    border-bottom: 1px solid #ecdfce;
    background:
        radial-gradient(circle at 88% 0, rgba(111, 143, 174, 0.16), transparent 38%),
        linear-gradient(135deg, #fff8ed, #fffdf9);
}

.ad-transfer-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ad-transfer-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #d8e2e9;
    border-radius: 13px;
    background: #f1f7fb;
    color: #4f7795;
    font-family: var(--mono);
    font-size: 19px;
    line-height: 1;
}

.ad-transfer-head .section-kicker {
    color: #a18365;
    font-size: 9px;
}

.ad-transfer-head h2 {
    margin-top: 2px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.ad-transfer-dialog .review-approve-close {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #e7d9c7;
    border-radius: 9px;
    background: rgba(255, 253, 249, 0.8);
    color: #8c7c6b;
    font-size: 20px;
    line-height: 1;
}

.ad-transfer-dialog .review-approve-close:hover {
    border-color: #d6bfa8;
    background: #fff8ed;
    color: var(--maple-deep);
}

.ad-transfer-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 23px 22px;
}

.ad-transfer-target {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 13px 15px;
    overflow: hidden;
    border: 1px solid #e8ddcd;
    border-radius: 12px;
    background: linear-gradient(135deg, #fffaf2, #fffdf9);
}

.ad-transfer-target::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: #dfa86d;
    content: "";
}

.ad-transfer-target-label {
    color: #a28c72;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.08em;
}

.ad-transfer-target strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ad-transfer-target small {
    color: var(--ink-4);
    font-size: 10px;
}

.ad-transfer-target small span {
    color: var(--ink-3);
    font-weight: 600;
}

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

.ad-transfer-dialog .field {
    margin: 0;
    gap: 6px;
}

.ad-transfer-dialog .field > span:first-child {
    color: #6f6253;
    font-size: 11px;
    font-weight: 650;
}

.ad-transfer-dialog .field input,
.ad-transfer-dialog .field select {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid #e4d7c5;
    border-radius: 9px;
    outline: 0;
    background: #fcf9f3;
    color: var(--ink);
    font-size: 12px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ad-transfer-dialog .field input:focus,
.ad-transfer-dialog .field select:focus {
    border-color: #d1a27e;
    background: #fffdf9;
    box-shadow: 0 0 0 3px rgba(223, 93, 61, 0.08);
}

.ad-transfer-hint {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #ecdfce;
    border-radius: 9px;
    background: #fbf6ed;
    color: #88765f;
    font-size: 10.5px;
    line-height: 1.7;
}

.ad-transfer-hint::before {
    flex: 0 0 auto;
    color: #b3884f;
    content: "◈";
    font-size: 9px;
}

.ad-transfer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 23px 16px;
    border-top: 1px solid #ecdfce;
    background: #fffdf9;
}

.ad-transfer-actions .button {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 12px;
}

.ad-transfer-actions .button-primary {
    min-width: 116px;
}

@media (max-width: 560px) {
    .ad-transfer-dialog {
        width: calc(100vw - 18px);
    }

    .ad-transfer-form {
        border-radius: 17px;
    }

    .ad-transfer-head {
        padding: 17px 16px 14px;
    }

    .ad-transfer-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

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

    .ad-transfer-body {
        padding: 15px 16px 16px;
    }

    .ad-transfer-fields {
        grid-template-columns: 1fr;
    }

    .ad-transfer-actions {
        padding: 12px 16px 14px;
    }

    .ad-transfer-actions .button {
        flex: 1;
    }
}

/* 我的发布：编辑、未到期不可删除文字清晰化 */
.publish-history-side .publish-edit-link {
    min-height: 36px;
    padding: 0 12px;
    border-color: #dfb39f;
    color: #9c3f28;
    background: linear-gradient(135deg, #fff9f6, #fbeade);
    font-size: 12px;
    font-weight: 700;
    opacity: 1;
}

.publish-history-side .publish-edit-link i {
    font-size: 12px;
}

.publish-history-side .publish-edit-link:hover {
    border-color: #ce8d73;
    color: #85301d;
    background: #fbe4d8;
}

.publish-history-side .publish-delete-link {
    min-height: 36px;
    padding: 0 11px;
    border-color: #e8c5ba;
    color: #9f5546;
    background: #fff8f5;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.publish-history-side .publish-delete-link i {
    width: 16px;
    height: 16px;
    background: rgba(159, 85, 70, 0.12);
    font-size: 11px;
}

.publish-history-side .publish-delete-link.is-disabled {
    border-color: #e8c8bd;
    color: #915a4c;
    background: #fdf2ed;
    opacity: 1;
    cursor: not-allowed;
}

.publish-history-side .publish-delete-link.is-disabled i {
    background: rgba(145, 90, 76, 0.13);
}

.publish-history-side .publish-delete-link.is-disabled:hover {
    border-color: #e8c8bd;
    color: #915a4c;
    background: #fdf2ed;
    transform: none;
}

/* ---------- 图片广告点击记录 ---------- */

.my-ad-clicks-page .clicks-hero .publish-hero-stats > div {
    min-width: 88px;
    padding: 9px 12px;
    border: 1px solid rgba(228, 221, 207, 0.9);
    border-radius: 10px;
    background: rgba(255, 253, 249, 0.68);
}

.my-ad-clicks-page .clicks-hero .publish-hero-stats strong {
    font-size: 16px;
}

.my-ad-clicks-page .clicks-hero .publish-hero-stats span {
    font-size: 9px;
}

.my-ad-clicks-page .clicks-ad-summary {
    gap: 16px;
    padding: 15px;
    border-color: #e5d8c6;
    border-radius: 18px;
    background:
        radial-gradient(circle at 96% 0, rgba(111, 143, 174, 0.08), transparent 30%),
        linear-gradient(135deg, #fffefb, #faf4e9);
}

.my-ad-clicks-page .clicks-ad-thumb {
    width: 98px;
    height: 64px;
    border-radius: 11px;
    background: #f4eee3;
}

.my-ad-clicks-page .clicks-ad-copy strong {
    font-size: 18px;
}

.my-ad-clicks-page .clicks-ad-copy small {
    margin-top: 2px;
    font-size: 10px;
}

.clicks-ad-meta {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-left: auto;
}

.clicks-ad-meta > span:not(.status-pill) {
    display: flex;
    flex-direction: column;
    gap: 1px;
    color: var(--ink-4);
    font-size: 8px;
    white-space: nowrap;
}

.clicks-ad-meta > span b {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
}

.my-ad-clicks-page .clicks-panel {
    padding: 23px;
    border-radius: 20px;
}

.my-ad-clicks-page .clicks-panel .panel-head {
    align-items: flex-end;
}

.my-ad-clicks-page .clicks-panel .panel-head h2 {
    font-size: 27px;
}

.clicks-filter-card {
    margin-top: 15px;
    overflow: hidden;
    border: 1px solid #e8dccb;
    border-radius: 14px;
    background: #fbf8f1;
}

.clicks-filter-main {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    padding: 14px 15px;
}

.clicks-filter-mark {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #e3d2bc;
    border-radius: 9px;
    background: #fffaf2;
    color: #9d7b55;
    font-size: 17px;
}

.clicks-filter-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 5px;
}

.clicks-filter-title {
    color: #8b7964;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.clicks-date-range {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.clicks-date-range label {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.clicks-date-range label > span {
    color: var(--ink-4);
    font-size: 8px;
}

.clicks-date-range input {
    min-height: 36px;
    padding: 7px 9px;
    border: 1px solid #e2d5c3;
    border-radius: 7px;
    outline: 0;
    background: #fffdf9;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 10px;
}

.clicks-date-range input:focus {
    border-color: #d1a27e;
    box-shadow: 0 0 0 3px rgba(223, 93, 61, 0.08);
}

.clicks-date-range > i {
    padding-bottom: 8px;
    color: #b4a18b;
    font-style: normal;
    font-size: 12px;
}

.clicks-filter-main > .button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 14px;
    font-size: 10px;
}

.clicks-filter-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 15px;
    border-top: 1px solid #ece2d4;
    background: rgba(255, 253, 249, 0.64);
}

.clicks-presets {
    display: flex;
    align-items: center;
    gap: 5px;
}

.clicks-presets > span {
    margin-right: 3px;
    color: var(--ink-4);
    font-size: 8px;
}

.clicks-presets a {
    padding: 3px 8px;
    border: 1px solid #e7dccb;
    border-radius: 999px;
    color: #8b7964;
    background: #fffdf9;
    font-size: 9px;
    white-space: nowrap;
}

.clicks-presets a:hover {
    border-color: #d8c4ae;
    color: var(--maple-deep);
}

.clicks-presets a.is-active {
    border-color: #e6bca7;
    background: #fff2e9;
    color: var(--maple-deep);
    font-weight: 700;
}

.clicks-range-note {
    color: var(--ink-4);
    font-family: var(--mono);
    font-size: 8.5px;
    white-space: nowrap;
}

.clicks-range-note strong {
    color: var(--ink-3);
    font-weight: 600;
}

.my-ad-clicks-page .clicks-table {
    margin-top: 13px;
    border: 1px solid #e9dfd1;
    border-radius: 11px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.my-ad-clicks-page .clicks-table th {
    padding: 10px 13px;
    border-bottom: 1px solid #e9dfd1;
    background: #f8f3e9;
    color: #9a8a77;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.05em;
}

.my-ad-clicks-page .clicks-table td {
    padding: 12px 13px;
    border-bottom: 1px solid rgba(233, 223, 209, 0.65);
    font-size: 10px;
}

.my-ad-clicks-page .clicks-table tbody tr:last-child td {
    border-bottom: 0;
}

.my-ad-clicks-page .clicks-table tbody tr:hover {
    background: #fdfaf3;
}

.clicks-time {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.clicks-time-date {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
}

.clicks-time small {
    color: var(--ink-4);
    font-family: var(--mono);
    font-size: 9px;
}

.clicks-ip {
    display: inline-block;
    padding: 3px 6px;
    border: 1px solid #e7ddce;
    border-radius: 5px;
    background: #fbf8f1;
    color: #5b6470;
    font-family: var(--mono);
    font-size: 9px;
}

.clicks-location span,
.clicks-browser span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ink-3);
    font-size: 9.5px;
}

.clicks-location i {
    color: #b18a5c;
    font-style: normal;
    font-size: 10px;
}

.clicks-browser span {
    padding: 3px 7px;
    border-radius: 999px;
    background: #f2f6f8;
    color: #647b8a;
    font-size: 9px;
}

.clicks-agent {
    color: var(--ink-4);
    font-size: 9px !important;
}

.clicks-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 44px 20px 40px;
    text-align: center;
}

.clicks-empty-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 5px;
    place-items: center;
    border: 1px dashed #d9c8b5;
    border-radius: 50%;
    background: #fffaf2;
    color: #b6926c;
    font-size: 23px;
}

.clicks-empty h3 {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
}

.clicks-empty p {
    max-width: 430px;
    color: var(--ink-4);
    font-size: 10px;
    line-height: 1.7;
}

.clicks-empty .button {
    margin-top: 8px;
}

@media (max-width: 760px) {
    .clicks-ad-meta {
        width: 100%;
        justify-content: flex-start;
        margin-left: 112px;
    }

    .my-ad-clicks-page .clicks-ad-summary {
        flex-wrap: wrap;
    }

    .clicks-filter-main {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .clicks-filter-copy {
        flex: 1 1 calc(100% - 52px);
    }

    .clicks-filter-main > .button {
        margin-left: 50px;
    }

    .clicks-date-range {
        flex-wrap: wrap;
    }

    .clicks-filter-foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .clicks-range-note {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .my-ad-clicks-page .clicks-ad-meta {
        margin-left: 0;
    }

    .clicks-date-range label {
        flex: 1;
    }

    .clicks-date-range input {
        width: 100%;
    }

    .clicks-filter-main > .button {
        width: 100%;
        margin-left: 0;
    }
}

/* 点击记录时间单元格保持表格布局 */
.my-ad-clicks-page .clicks-table td.clicks-time {
    display: table-cell;
    white-space: nowrap;
}

.my-ad-clicks-page .clicks-table .clicks-time-date {
    display: inline;
    margin-right: 5px;
}

.my-ad-clicks-page .clicks-table .clicks-time small {
    display: inline;
}

/* 图片广告点击记录：整体字体加大 */
.my-ad-clicks-page .clicks-hero .publish-hero-stats > div {
    min-width: 102px;
    padding: 11px 14px;
}

.my-ad-clicks-page .clicks-hero .publish-hero-stats strong {
    font-size: 19px;
}

.my-ad-clicks-page .clicks-hero .publish-hero-stats span {
    font-size: 11px;
}

.my-ad-clicks-page .clicks-ad-copy .section-kicker {
    font-size: 10.5px;
}

.my-ad-clicks-page .clicks-ad-copy strong {
    font-size: 20px;
}

.my-ad-clicks-page .clicks-ad-copy small {
    font-size: 11.5px;
}

.clicks-ad-meta > span:not(.status-pill) {
    font-size: 10px;
}

.clicks-ad-meta > span b {
    font-size: 12px;
}

.my-ad-clicks-page .clicks-panel .panel-note {
    font-size: 11px;
}

.clicks-filter-title {
    font-size: 11px;
}

.clicks-date-range label > span {
    font-size: 10px;
}

.clicks-date-range input {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12px;
}

.clicks-date-range > i {
    font-size: 14px;
}

.clicks-filter-main > .button {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 12px;
}

.clicks-presets > span {
    font-size: 10px;
}

.clicks-presets a {
    padding: 4px 10px;
    font-size: 11px;
}

.clicks-range-note {
    font-size: 10.5px;
}

.my-ad-clicks-page .clicks-table th {
    padding: 11px 14px;
    font-size: 10.5px;
}

.my-ad-clicks-page .clicks-table td {
    padding: 13px 14px;
    font-size: 12px;
}

.my-ad-clicks-page .clicks-table .clicks-time-date {
    font-size: 13px;
}

.my-ad-clicks-page .clicks-table .clicks-time small {
    font-size: 11px;
}

.clicks-ip {
    padding: 4px 7px;
    font-size: 11px;
}

.clicks-location span {
    font-size: 11.5px;
}

.clicks-browser span {
    padding: 4px 8px;
    font-size: 10.5px;
}

.clicks-agent {
    font-size: 10.5px !important;
}

.clicks-empty h3 {
    font-size: 22px;
}

.clicks-empty p {
    font-size: 12px;
}

.clicks-empty .button {
    font-size: 11px;
}

@media (max-width: 760px) {
    .my-ad-clicks-page .clicks-table th {
        font-size: 9.5px;
    }

    .my-ad-clicks-page .clicks-table td {
        font-size: 11px;
    }

    .clicks-date-range input {
        font-size: 11px;
    }
}

/* 图片广告点击记录：再次提高字号 */
.my-ad-clicks-page .clicks-ad-copy .section-kicker {
    font-size: 12px;
}

.my-ad-clicks-page .clicks-ad-copy strong {
    font-size: 23px;
}

.my-ad-clicks-page .clicks-ad-copy small {
    font-size: 13px;
}

.clicks-ad-meta > span:not(.status-pill) {
    font-size: 12px;
}

.clicks-ad-meta > span b {
    font-size: 14px;
}

.clicks-filter-title {
    font-size: 13px;
}

.clicks-date-range label > span {
    font-size: 12px;
}

.clicks-date-range input {
    min-height: 44px;
    padding: 9px 11px;
    font-size: 14px;
}

.clicks-date-range > i {
    font-size: 16px;
}

.clicks-filter-main > .button {
    min-height: 44px;
    font-size: 14px;
}

.clicks-presets > span {
    font-size: 11px;
}

.clicks-presets a {
    padding: 5px 11px;
    font-size: 12px;
}

.clicks-range-note {
    font-size: 12px;
}

.my-ad-clicks-page .clicks-table th {
    padding: 12px 14px;
    font-size: 12px;
}

.my-ad-clicks-page .clicks-table td {
    padding: 14px;
    font-size: 13.5px;
}

.my-ad-clicks-page .clicks-table .clicks-time-date {
    font-size: 14px;
}

.my-ad-clicks-page .clicks-table .clicks-time small {
    font-size: 12px;
}

.clicks-ip {
    font-size: 12.5px;
}

.clicks-location span {
    font-size: 13px;
}

.clicks-browser span {
    font-size: 12px;
}

.clicks-agent {
    font-size: 12px !important;
}

.clicks-empty h3 {
    font-size: 25px;
}

.clicks-empty p {
    font-size: 13px;
}

.clicks-empty .button {
    font-size: 12px;
}

.my-ad-clicks-page .clicks-hero .publish-hero-stats strong {
    font-size: 21px;
}

.my-ad-clicks-page .clicks-hero .publish-hero-stats span {
    font-size: 12px;
}

@media (max-width: 760px) {
    .my-ad-clicks-page .clicks-table th {
        font-size: 11px;
    }

    .my-ad-clicks-page .clicks-table td {
        font-size: 12px;
    }

    .clicks-date-range input {
        font-size: 13px;
    }
}

/* 首页区域选择：长名称完整显示 */
.search-bar .region-select {
    min-width: 145px;
    max-width: 210px;
    height: 40px;
    padding: 0 28px 0 12px;
    color: var(--ink);
    background: #fffdf9;
    font-family: var(--font-body, var(--font-sans, sans-serif));
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-overflow: ellipsis;
}

@media (max-width: 760px) {
    .search-bar .region-select {
        flex: 0 0 150px;
        max-width: 150px;
        min-width: 0;
        height: 40px;
        padding: 0 22px 0 9px;
        font-size: 11.5px;
    }
}

/* 首页结果分页信息清晰化 */
.results-page {
    padding: 3px 8px;
    border-left: 0;
    border-radius: 999px;
    background: #f5f0e6;
    color: #5d6872;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .results-page {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* 最新更新物品：区域下拉框清晰化 */
.update-region-switch {
    gap: 8px;
    padding: 5px 7px 5px 11px;
}

.update-region-switch label {
    color: #5e6b76;
    font-size: 11.5px;
    font-weight: 700;
}

.update-region-switch select {
    height: 34px;
    padding: 0 26px 0 8px;
    color: var(--ink);
    font-family: var(--font-body, var(--font-sans, sans-serif));
    font-size: 12.5px;
    font-weight: 700;
}

#update-region {
    min-width: 140px;
    max-width: 205px;
}

@media (max-width: 760px) {
    .update-region-switch.update-region-only {
        width: 100%;
        justify-content: space-between;
    }

    #update-region {
        min-width: 0;
        max-width: none;
        flex: 1;
        font-size: 12px;
    }
}

/* 最新更新物品：历史版本下拉框清晰化 */
.update-history-switch {
    gap: 8px;
    padding: 5px 7px 5px 11px;
}

.update-history-switch label {
    color: #5e6b76;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

#update-history {
    min-width: 220px;
    max-width: 300px;
    height: 34px;
    padding: 0 26px 0 8px;
    color: var(--ink);
    font-family: var(--font-mono, var(--mono, monospace));
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 760px) {
    .update-history-switch {
        width: 100%;
        justify-content: space-between;
    }

    #update-history {
        min-width: 0;
        max-width: none;
        flex: 1;
        font-size: 11.5px;
    }
}

/* 手机端搜索：输入框可收缩，按钮保持第一行 */
@media (max-width: 760px) {
    .search-bar input {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }
}

/* 首页搜索框靠近导航栏 */
.search-hero {
    padding-top: 22px;
}

.search-hero .search-bar {
    margin-top: 12px;
}

@media (max-width: 760px) {
    .search-hero {
        padding-top: 16px;
    }

    .search-hero .search-bar {
        margin-top: 10px;
    }
}
