﻿:root {
    --bg: #edf7e8;
    --panel: #ffffff;
    --soft: #f3f5f7;
    --line: #e2e2e2;
    --text: #2f2f2f;
    --muted: #747474;
    --blue: #1f78ff;
    --blue-soft: #eaf2ff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.78)),
        url("../images/background.webp") center / cover no-repeat;
    background-attachment: fixed;
    color: var(--text);
}

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

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

button {
    font: inherit;
}

.icon {
    width: 20px;
    height: 20px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-shell {
    position: fixed;
    inset: 0;
    height: 100vh;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-rows: 66px minmax(0, 1fr);
    transition: grid-template-columns 0.34s var(--ease);
}

.topbar {
    position: sticky;
    top: 0;
    grid-column: 1 / -1;
    height: 66px;
    display: grid;
    grid-template-columns: 210px minmax(260px, 720px) 1fr;
    align-items: center;
    gap: 26px;
    padding: 0 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    z-index: 5;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.icon-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    padding: 0;
    color: #202020;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.icon-button:hover {
    background: #f0f2f4;
    transform: translateY(-1px);
}

.brand {
    font-size: 26px;
    line-height: 1;
    font-weight: 500;
    color: #444444;
    white-space: nowrap;
}

.search {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--soft);
    color: #707070;
}

.search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 16px;
}

.search input::placeholder {
    color: #929292;
}

.auth-nav {
    justify-self: end;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 42px;
    padding-right: 8px;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.user-pill {
    max-width: 160px;
    overflow: hidden;
    padding: 7px 12px;
    border: 1px solid #d8e5f8;
    border-radius: 999px;
    background: #f5f9ff;
    color: #2562b7;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar,
.top-avatar,
.menu-avatar,
.profile-avatar {
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #dcecff, #b7d3ff);
    color: #1e5fbf;
    font-weight: 700;
}

.avatar img,
.top-avatar img,
.menu-avatar img,
.profile-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.user-menu-wrap {
    position: relative;
    display: grid;
    place-items: center;
    padding: 10px 0;
}

.avatar-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.avatar-button:hover {
    box-shadow: 0 0 0 4px rgba(31, 120, 255, 0.12);
    transform: translateY(-1px);
}

.top-avatar {
    width: 38px;
    height: 38px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
    font-size: 16px;
}

.menu-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    font-size: 17px;
}

.user-menu {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    width: 218px;
    padding: 8px;
    border: 1px solid rgba(215, 222, 232, 0.95);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
    z-index: 20;
}

.user-menu::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 17px;
    width: 12px;
    height: 12px;
    border-left: 1px solid rgba(215, 222, 232, 0.95);
    border-top: 1px solid rgba(215, 222, 232, 0.95);
    background: rgba(255, 255, 255, 0.98);
    transform: rotate(45deg);
}

.user-menu-wrap:hover .user-menu,
.user-menu-wrap:focus-within .user-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.user-menu-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 8px 10px;
    border-bottom: 1px solid #eceff3;
    margin-bottom: 6px;
}

.user-menu-head strong,
.user-menu-head span {
    display: block;
    max-width: 136px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-head strong {
    color: #303030;
    font-size: 15px;
    line-height: 1.2;
}

.user-menu-head span {
    margin-top: 4px;
    color: #838383;
    font-size: 12px;
    font-weight: 500;
}

.user-menu > a {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 10px;
    border-radius: 7px;
    color: #424242;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.user-menu > a:hover {
    background: #eef5ff;
    color: var(--blue);
}

.user-menu > a.danger:hover {
    background: #fff1f1;
    color: #b42318;
}

.sidebar {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    min-width: 0;
    padding: 12px 10px 18px;
    border-right: 1px solid #f0f0f0;
    background: rgba(255, 255, 255, 0.92);
    overflow: hidden auto;
    will-change: opacity, transform;
    transition: opacity 0.3s var(--ease), transform 0.34s var(--ease), border-color 0.24s var(--ease);
}

.side-nav {
    width: 220px;
    display: grid;
    gap: 4px;
}

.nav-item {
    width: 100%;
    height: 46px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    color: #3f3f3f;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-item:hover {
    background: rgba(31, 120, 255, 0.08);
    transform: translateX(2px);
}

.nav-item.active {
    color: var(--blue);
    background: rgba(31, 120, 255, 0.12);
    box-shadow: inset 3px 0 0 var(--blue);
    font-weight: 700;
}

.nav-icon {
    width: 26px;
    display: flex;
    justify-content: center;
    color: #777777;
}

.nav-item.active .nav-icon {
    color: var(--blue);
}

.nav-chevron {
    color: #777777;
    transition: transform 0.22s var(--ease);
}

.nav-chevron .icon {
    width: 18px;
    height: 18px;
}

.resource-group:not(.open) .nav-chevron {
    transform: rotate(-90deg);
}

.sub-nav {
    display: grid;
    overflow: hidden;
    gap: 2px;
    padding: 2px 0 6px 18px;
    max-height: 580px;
    opacity: 1;
    transition: max-height 0.26s var(--ease), opacity 0.2s var(--ease), padding 0.26s var(--ease);
}

.resource-group:not(.open) .sub-nav {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.sub-item {
    height: 42px;
    padding-left: 14px;
    color: #3f3f3f;
    font-size: 14px;
}

.sub-item.active {
    height: 42px;
}

.sub-item .icon {
    width: 19px;
    height: 19px;
}

.separated {
    margin-top: 14px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    height: 68px;
}

.account-section {
    margin-top: 12px;
}

.account-separator {
    height: 1px;
    margin: 8px 10px 10px;
    border-top: 1px dashed rgba(120, 130, 145, 0.38);
}

.content {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    padding: 28px 56px 60px;
}

.content.auth-content {
    display: grid;
    padding: 0 56px;
}

.server-empty-page {
    min-height: 100%;
}

.home-login-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    border: 1px solid rgba(218, 226, 236, 0.92);
    border-radius: 14px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(26, 42, 64, 0.09);
}

.home-login-copy {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.home-login-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(24, 119, 242, 0.12);
    flex: 0 0 auto;
}

.home-login-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.home-login-copy span {
    display: inline-flex;
    margin-bottom: 4px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

.home-login-copy h1 {
    margin: 0;
    color: #172233;
    font-size: 24px;
    line-height: 1.2;
}

.home-login-copy p {
    margin: 6px 0 0;
    color: #6e7784;
    font-size: 14px;
}

.home-qq-login-button {
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    border: 1px solid #168cf0;
    border-radius: 9px;
    padding: 0 18px;
    background: linear-gradient(180deg, #2aa7ff 0%, #1877f2 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(24, 119, 242, 0.22);
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.home-qq-login-button img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.home-qq-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(24, 119, 242, 0.3);
}

.home-qq-login-button.disabled {
    border-color: #d8d8d8;
    background: #f5f6f8;
    color: #8a8f99;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.launcher-feature {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    align-items: center;
    gap: 28px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid rgba(218, 226, 236, 0.92);
    border-radius: 14px;
    padding: 26px 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94)),
        radial-gradient(circle at 88% 18%, rgba(46, 134, 255, 0.14), transparent 32%);
    box-shadow: 0 18px 45px rgba(26, 42, 64, 0.1);
}

.launcher-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(50, 92, 138, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 92, 138, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 78%);
    pointer-events: none;
}

.launcher-feature-copy,
.launcher-showcase {
    position: relative;
    z-index: 1;
}

.launcher-feature-copy > span {
    display: inline-flex;
    margin-bottom: 10px;
    border-radius: 999px;
    padding: 5px 11px;
    background: #fff4df;
    color: #a76500;
    font-size: 12px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(240, 168, 62, 0.22);
}

.launcher-feature h1 {
    margin: 0;
    color: #172233;
    font-size: 34px;
    line-height: 1.18;
}

.launcher-feature p {
    max-width: 560px;
    margin: 13px 0 0;
    color: #68717d;
    font-size: 15px;
    line-height: 1.7;
}

.launcher-feature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.launcher-feature-actions a {
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #8bbcff;
    border-radius: 8px;
    padding: 0 16px;
    background: #eaf2ff;
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
}

.launcher-feature-actions a:first-child {
    border-color: #2e86ff;
    background: #2e86ff;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(46, 134, 255, 0.24);
}

.launcher-showcase {
    min-height: 265px;
}

.launcher-showcase img {
    position: absolute;
    display: block;
    width: min(76%, 560px);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid rgba(200, 211, 225, 0.95);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(26, 42, 64, 0.16);
}

.launcher-showcase img:first-child {
    top: 8px;
    right: 0;
    z-index: 2;
}

.launcher-showcase img:last-child {
    left: 0;
    bottom: 0;
    z-index: 1;
    transform: scale(0.9);
    opacity: 0.82;
}

.home-hero {
    position: relative;
    min-height: 310px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: 34px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid rgba(218, 226, 236, 0.9);
    border-radius: 14px;
    padding: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.92)),
        radial-gradient(circle at 82% 20%, rgba(93, 169, 255, 0.18), transparent 34%);
    box-shadow: 0 18px 45px rgba(26, 42, 64, 0.1);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(55, 96, 141, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(55, 96, 141, 0.055) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.7), transparent 76%);
    pointer-events: none;
}

.home-hero-copy {
    position: relative;
    z-index: 1;
}

.home-hero-copy > span {
    display: inline-flex;
    margin-bottom: 10px;
    border-radius: 999px;
    padding: 5px 11px;
    background: #eef6ff;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(72, 145, 237, 0.18);
}

.home-hero h1 {
    margin: 0;
    max-width: 680px;
    color: #19212c;
    font-size: 42px;
    line-height: 1.18;
}

.home-hero p {
    max-width: 650px;
    margin: 14px 0 0;
    color: #68717d;
    font-size: 15px;
    line-height: 1.7;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.home-hero-actions a,
.works-showcase-head a {
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid #8bbcff;
    border-radius: 8px;
    padding: 0 16px;
    background: #eaf2ff;
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
}

.home-hero-actions a:first-child {
    border-color: #2e86ff;
    background: #2e86ff;
    color: #fff;
    box-shadow: 0 10px 22px rgba(46, 134, 255, 0.24);
}

.home-visual {
    position: relative;
    z-index: 1;
    min-height: 230px;
}

.home-cube-stack {
    position: absolute;
    inset: 28px 34px 22px 42px;
    transform: rotate(-8deg);
}

.home-cube-stack span {
    position: absolute;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(68, 96, 132, 0.16);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(231, 241, 255, 0.92)),
        repeating-linear-gradient(45deg, rgba(46, 134, 255, 0.07) 0 8px, transparent 8px 16px);
    box-shadow: 0 18px 35px rgba(40, 68, 103, 0.14);
    animation: homeCubeFloat 5.8s ease-in-out infinite;
}

.home-cube-stack span:nth-child(1) { left: 12px; top: 74px; }
.home-cube-stack span:nth-child(2) { left: 82px; top: 28px; animation-delay: -0.8s; }
.home-cube-stack span:nth-child(3) { left: 154px; top: 72px; animation-delay: -1.6s; }
.home-cube-stack span:nth-child(4) { left: 222px; top: 22px; animation-delay: -2.4s; }
.home-cube-stack span:nth-child(5) { left: 118px; top: 134px; animation-delay: -3.2s; }

.home-floating-card {
    position: absolute;
    z-index: 2;
    display: grid;
    gap: 2px;
    min-width: 126px;
    border: 1px solid rgba(218, 226, 236, 0.95);
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 35px rgba(26, 42, 64, 0.12);
    backdrop-filter: blur(10px);
    animation: homePanelFloat 6.2s ease-in-out infinite;
}

.home-floating-card strong {
    color: #1e2937;
    font-size: 24px;
    line-height: 1;
}

.home-floating-card span {
    color: #6b7582;
    font-size: 12px;
    font-weight: 700;
}

.home-floating-card-a {
    top: 18px;
    right: 20px;
}

.home-floating-card-b {
    right: 108px;
    bottom: 18px;
    animation-delay: -2s;
}

.home-category-dock {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.home-category-dock a {
    position: relative;
    display: grid;
    gap: 7px;
    min-height: 104px;
    overflow: hidden;
    border: 1px solid rgba(218, 226, 236, 0.9);
    border-radius: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(26, 42, 64, 0.06);
    transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.home-category-dock a::after {
    content: "";
    position: absolute;
    inset: auto -20px -30px auto;
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: rgba(46, 134, 255, 0.08);
    transform: rotate(20deg);
}

.home-category-dock a:hover {
    border-color: #b9d6fa;
    box-shadow: 0 16px 34px rgba(46, 134, 255, 0.12);
    transform: translateY(-3px);
}

.home-category-dock .icon {
    width: 22px;
    height: 22px;
    color: #2e86ff;
}

.home-category-dock strong {
    color: #202a36;
    font-size: 15px;
}

.home-category-dock span {
    color: #74808d;
    font-size: 12px;
    line-height: 1.45;
}

.works-showcase {
    border: 1px solid rgba(218, 226, 236, 0.86);
    border-radius: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 26px rgba(26, 42, 64, 0.07);
}

.works-page {
    min-height: 100%;
}

.works-showcase-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.works-showcase-head h2 {
    margin: 0;
    color: #252a32;
    font-size: 22px;
    line-height: 1.2;
}

.works-showcase-head p {
    margin: 6px 0 0;
    color: #6f7884;
    font-size: 13px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.work-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(22, 34, 52, 0.05);
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}

.work-card:hover {
    border-color: #bdd4f5;
    box-shadow: 0 14px 28px rgba(31, 120, 255, 0.12);
    transform: translateY(-3px);
}

@keyframes homeCubeFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -12px, 0); }
}

@keyframes homePanelFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -8px, 0); }
}

@keyframes submitPanelIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-cover {
    display: block;
    min-height: 132px;
    background-size: cover;
    background-position: center;
}

.work-card-body {
    display: grid;
    gap: 8px;
    padding: 13px 14px 14px;
}

.work-card-body > span {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

.work-card-body h3 {
    overflow: hidden;
    margin: 0;
    color: #262b33;
    font-size: 17px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.work-card-body p {
    min-height: 38px;
    margin: 0;
    color: #707985;
    font-size: 13px;
    line-height: 1.45;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 42px;
}

.section-head h1 {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
}

.section-more {
    color: var(--blue);
    margin-right: 6px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 24px 22px;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}

.home-stats div {
    min-height: 82px;
    display: grid;
    align-content: center;
    gap: 6px;
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 22px rgba(29, 43, 64, 0.05);
}

.home-stats strong {
    color: #202833;
    font-size: 26px;
    line-height: 1;
}

.home-stats span {
    color: #6a7480;
    font-size: 13px;
    font-weight: 700;
}

.topic-card {
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    overflow: hidden;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.topic-card:hover {
    border-color: #c7d8ef;
    box-shadow: 0 8px 22px rgba(31, 120, 255, 0.12);
    transform: translateY(-2px);
}

.topic-card-head {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 26px;
    color: #777777;
}

.topic-card-head h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
}

.topic-card-head .icon,
.section-more .icon {
    color: var(--blue);
}

.topic-list {
    display: none;
    border-top: 1px solid #ececec;
    background: #fbfcfe;
}

.topic-card:hover .topic-list,
.topic-card:focus-within .topic-list {
    display: block;
}

.topic-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 26px;
    color: #4d4d4d;
    font-size: 14px;
}

.topic-row + .topic-row {
    border-top: 1px solid #eeeeee;
}

.topic-row small {
    color: #8a8a8a;
    white-space: nowrap;
}

.resource-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.resource-head h1 {
    margin: 0;
    color: #2f2f2f;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.resource-head p {
    margin: 7px 0 0;
    color: #6e6e6e;
    font-size: 14px;
}

.resource-actions {
    display: flex;
    gap: 10px;
}

.resource-actions button {
    height: 34px;
    padding: 0 18px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: #3f3f3f;
    cursor: pointer;
    transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.resource-actions button:hover {
    border-color: #b8cff1;
    background: #f5f9ff;
    transform: translateY(-1px);
}

.resource-browser {
    display: grid;
    gap: 18px;
}

.resource-filter {
    position: relative;
    z-index: 6;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(216, 226, 238, 0.96);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 22px rgba(23, 42, 70, 0.08);
}

.resource-filter-search {
    min-width: min(100%, 260px);
    height: 38px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #dce6f2;
    border-radius: 8px;
    padding: 0 12px;
    background: #ffffff;
    color: #728196;
}

.resource-filter-search svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.resource-filter-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #253143;
    font: inherit;
    outline: 0;
}

.resource-filter-search input::placeholder {
    color: #9aa6b4;
}

.filter-dropdown,
.form-checks {
    position: relative;
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
}

.filter-dropdown.open {
    z-index: 40;
}

.filter-dropdown legend,
.form-checks legend {
    width: 100%;
    margin: 0;
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
}

.filter-dropdown legend button {
    min-width: 150px;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    border: 1px solid #d9e2ee;
    border-radius: 8px;
    padding: 0 11px 0 12px;
    background: #ffffff;
    color: #303743;
    font: inherit;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(22, 34, 52, 0.04);
    transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease), color 0.16s var(--ease);
}

.filter-dropdown legend button:hover,
.filter-dropdown.open legend button {
    border-color: #8bbcff;
    box-shadow: 0 0 0 3px rgba(31, 120, 255, 0.08);
    color: var(--blue);
}

.filter-dropdown legend button em {
    color: #8a94a3;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
}

.filter-dropdown legend .icon {
    width: 17px;
    height: 17px;
    transition: transform 0.18s var(--ease);
}

.filter-dropdown.open legend .icon {
    transform: rotate(180deg);
}

.filter-dropdown:not(.open) .filter-option-list,
.filter-dropdown:not(.open) .sort-field {
    display: none;
}

.check-group {
    max-height: 176px;
    overflow: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-right: 4px;
}

.multi-filter .check-group {
    max-height: 116px;
}

.filter-option-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 280px;
    max-height: 320px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 4px;
    padding: 10px;
    border: 1px solid #dce5f0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 34px rgba(22, 34, 52, 0.16);
    overflow: hidden;
}

.filter-option-search {
    position: relative;
    z-index: 2;
    height: 38px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    border: 1px solid #d9e2ee;
    border-radius: 8px;
    padding: 0 10px 0 36px;
    background: #ffffff;
    box-shadow: none;
}

.filter-option-items {
    min-height: 0;
    max-height: 214px;
    display: grid;
    align-content: start;
    gap: 4px;
    overflow: auto;
    padding: 2px 4px 2px 0;
    scrollbar-gutter: stable;
}

.filter-option-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-option-tools button {
    height: 26px;
    border: 1px solid #d7e5f7;
    border-radius: 7px;
    padding: 0 8px;
    background: #f6faff;
    color: #2e6eb8;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.filter-option-items .check-pill {
    width: max-content;
    max-width: 100%;
}

.dropdown-filter .filter-option-items .check-pill {
    width: 100%;
}

.filter-option-search .icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: #8a94a3;
    flex: 0 0 auto;
    display: block;
}

.filter-option-search input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent;
    color: #303743;
    font: inherit;
    font-size: 13px;
    line-height: 38px !important;
    box-shadow: none !important;
    display: block;
    -webkit-appearance: none;
    appearance: none;
}

.filter-option-search input::placeholder {
    color: #9aa4b2;
}

.check-pill {
    position: relative;
    display: inline-flex !important;
    gap: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer;
    user-select: none;
}

.check-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.check-pill span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    padding: 0 9px;
    background: #ffffff;
    color: #555555;
    cursor: pointer;
    transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease), color 0.16s var(--ease), transform 0.16s var(--ease);
}

.check-pill input:checked + span {
    border-color: #8dbfff;
    background: #eef6ff;
    color: var(--blue);
    box-shadow: 0 0 0 2px rgba(46, 134, 255, 0.08);
}

.check-pill:hover span {
    border-color: #b8d8ff;
    color: var(--blue);
}

.dropdown-filter .check-pill span {
    position: relative;
    width: 100%;
    min-height: 34px;
    border: 0;
    border-radius: 8px;
    padding: 0 8px 0 36px;
    background: transparent;
    color: #4f5966;
    font-size: 13px;
    line-height: 1.25;
}

.dropdown-filter .check-pill span::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 50%;
    width: 17px;
    height: 17px;
    border: 1px solid #c8d3df;
    border-radius: 50%;
    background: #ffffff;
    transform: translateY(-50%);
    transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.dropdown-filter .check-pill span::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0;
    transform: translateY(-50%);
}

.dropdown-filter .check-pill input:checked + span {
    background: #eaf2ff;
    color: var(--blue);
}

.dropdown-filter .check-pill input:checked + span::before {
    border-color: var(--blue);
    background: var(--blue);
    box-shadow: 0 0 0 3px rgba(31, 120, 255, 0.12);
}

.dropdown-filter .check-pill input:checked + span::after {
    opacity: 1;
}

.dropdown-filter .check-pill:hover span {
    background: #f4f8ff;
    color: var(--blue);
    transform: none;
}

.dropdown-filter .sort-field {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 40;
    width: 180px;
    display: grid;
    padding: 10px;
    border: 1px solid #dce5f0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 34px rgba(22, 34, 52, 0.16);
}

.dropdown-filter select {
    height: 36px;
    width: 100%;
    border: 1px solid #d9e2ee;
    border-radius: 8px;
    padding: 0 10px;
    background: #ffffff;
    color: #303743;
    font: inherit;
}

.filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.filter-actions button,
.filter-actions a {
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e2ee;
    border-radius: 8px;
    padding: 0 12px;
    background: #ffffff;
    color: #303743;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.filter-actions button {
    border-color: #8bbcff;
    background: #eaf2ff;
    color: var(--blue);
}

.filter-actions a {
    color: #68717f;
}

.dropdown-filter .check-pill input:checked + span {
    border-color: transparent;
}

.dropdown-filter .check-pill:hover span {
    transform: none;
}

.sort-field {
    align-self: auto;
}

.submit-mini-link {
    height: 34px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #8bbcff;
    border-radius: 7px;
    padding: 0 14px;
    background: #eaf2ff;
    color: var(--blue);
    font-weight: 700;
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 28px;
    border: 1px dashed #c7d8ef;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.86);
    color: #6f7782;
    text-align: center;
}

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

.resource-card {
    min-width: 0;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.resource-card:hover {
    border-color: #b9d0ef;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    transform: translateY(-4px);
}

.resource-cover {
    position: relative;
    height: 132px;
    display: block;
    background-color: #dce7d5;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #eeeeee;
    transition: filter 0.22s var(--ease), transform 0.22s var(--ease);
}

.resource-card:hover .resource-cover {
    filter: saturate(1.08) contrast(1.03);
}

.has-cover-image {
    background-size: cover;
    background-position: center;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.resource-info {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #777777;
}

.resource-info .icon {
    width: 16px;
    height: 16px;
}

.resource-body {
    min-height: 122px;
    padding: 12px 10px 10px;
    border-bottom: 1px solid #eeeeee;
}

.resource-body h2 {
    margin: 0 0 15px;
    overflow: hidden;
    color: #050505;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-body p {
    margin: 0;
    overflow: hidden;
    color: #7e858c;
    font-size: 16px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 12px;
}

.resource-badges span {
    max-width: 82px;
    overflow: hidden;
    padding: 3px 7px;
    border: 1px solid #d8e5f8;
    border-radius: 999px;
    background: #f4f8ff;
    color: #3767a8;
    font-size: 11px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-footer {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: #8a8a8a;
    font-size: 14px;
}

.item-icons {
    display: block;
    overflow: hidden;
    max-width: 100%;
    color: #333333;
    font-size: 20px;
    letter-spacing: 6px;
    white-space: nowrap;
}

.auth-page {
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 0;
}

.auth-card {
    width: min(420px, 100%);
    padding: 28px;
    border: 1px solid rgba(216, 216, 216, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

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

.auth-card-head h1 {
    margin: 0;
    color: #2f2f2f;
    font-size: 24px;
    line-height: 1.2;
}

.auth-card-head p {
    margin: 8px 0 0;
    color: #777777;
    font-size: 14px;
}

.qq-only-card {
    width: min(520px, 100%);
    padding: 42px 52px 36px;
    text-align: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 46px rgba(34, 48, 72, 0.16);
}

.qq-brand-mark {
    width: 82px;
    height: 82px;
    display: inline-grid;
    place-items: center;
    margin: 0 auto 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(24, 119, 242, 0.14);
}

.qq-brand-mark img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
}

.qq-auth-head {
    margin-bottom: 28px;
}

.qq-auth-head h1 {
    font-size: 30px;
    font-weight: 800;
}

.qq-auth-head p {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.72;
    font-size: 15px;
}

.auth-errors {
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid #ffd1d1;
    border-radius: 8px;
    background: #fff3f3;
    color: #b42318;
    font-size: 14px;
}

.auth-errors p {
    margin: 0;
}

.auth-errors p + p {
    margin-top: 6px;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: #424242;
    font-size: 15px;
}

.field input {
    height: 42px;
    width: 100%;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    padding: 0 12px;
    background: #ffffff;
    color: #2f2f2f;
    font: inherit;
    outline: 0;
    transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field textarea {
    width: 100%;
    resize: vertical;
    min-height: 110px;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    padding: 10px 12px;
    background: #ffffff;
    color: #2f2f2f;
    font: inherit;
    outline: 0;
    transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field input:focus,
.field textarea:focus {
    border-color: #8bbcff;
    box-shadow: 0 0 0 3px rgba(31, 120, 255, 0.14);
}

.auth-submit {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 7px;
    background: var(--blue);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.auth-submit:hover {
    background: #1767df;
    transform: translateY(-1px);
}

.oauth-divider {
    position: relative;
    margin: 18px 0;
    text-align: center;
    color: #8a8f99;
    font-size: 13px;
}

.oauth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e4e8ef;
}

.oauth-divider span {
    position: relative;
    z-index: 1;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.95);
}

.qq-login-button {
    width: 100%;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #168cf0;
    border-radius: 8px;
    background: linear-gradient(180deg, #2aa7ff 0%, #1877f2 100%);
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 26px rgba(24, 119, 242, 0.24);
    transition: background-color 0.18s var(--ease), transform 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.qq-login-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}

.qq-login-button:hover {
    border-color: #0d77dc;
    background: linear-gradient(180deg, #42b4ff 0%, #126ee5 100%);
    box-shadow: 0 18px 34px rgba(24, 119, 242, 0.32);
    transform: translateY(-2px);
}

.qq-login-button.disabled {
    border-color: #d8d8d8;
    background: #f5f6f8;
    color: #8a8f99;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.auth-switch {
    margin: 18px 0 0;
    color: #777777;
    font-size: 14px;
    text-align: center;
}

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

.profile-page {
    min-height: 100%;
    display: grid;
    place-items: start center;
    padding-top: 28px;
}

.profile-card {
    width: min(720px, 100%);
    padding: 30px;
    border: 1px solid rgba(216, 216, 216, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 86px;
    height: 86px;
    flex: 0 0 auto;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    font-size: 34px;
}

.profile-summary h1 {
    margin: 0;
    color: #2f2f2f;
    font-size: 26px;
    line-height: 1.2;
}

.profile-summary p {
    margin: 8px 0 4px;
    color: #4f4f4f;
    font-size: 17px;
}

.profile-summary small {
    color: #8a8a8a;
}

.profile-success {
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid #c8ead3;
    border-radius: 8px;
    background: #f1fbf4;
    color: #247044;
    font-size: 14px;
}

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

.profile-form .field:nth-of-type(3),
.profile-form .field:nth-of-type(4),
.profile-actions {
    grid-column: 1 / -1;
}

.profile-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 6px;
}

.profile-actions .auth-submit {
    width: 180px;
}

.user-center-card {
    width: min(1080px, 100%);
}

.user-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.user-tabs a,
.notification-actions button,
.points-form button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    padding: 0 12px;
    background: #ffffff;
    color: #3f3f3f;
    font-weight: 700;
}

.user-tabs a.active,
.level-badge {
    border-color: #8bbcff;
    background: #eaf2ff;
    color: var(--blue);
}

.level-badge {
    display: inline-flex;
    border: 1px solid #8bbcff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
}

.user-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
    gap: 18px;
}

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

.security-card,
.notification-item,
.member-hero,
.member-stats {
    border: 1px solid rgba(216, 216, 216, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
}

.security-card {
    padding: 18px;
}

.security-card h2,
.member-page h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.security-card p {
    margin: 8px 0;
    color: #666666;
    font-size: 13px;
}

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

.notification-item {
    padding: 14px;
}

.notification-item.unread {
    border-color: #8bbcff;
    background: #f4f8ff;
}

.notification-item div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notification-item span {
    color: #7a7a7a;
    font-size: 12px;
}

.notification-item p {
    margin: 8px 0 0;
    color: #555555;
}

.notification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.member-page {
    display: grid;
    gap: 18px;
}

.member-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px;
}

.member-hero h1 {
    margin: 0;
    font-size: 28px;
}

.member-hero p {
    margin: 8px 0 0;
    color: #4f4f4f;
}

.member-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
}

.member-stats span {
    display: grid;
    place-items: center;
    min-height: 42px;
    border-radius: 7px;
    background: #f7f9fc;
    font-weight: 700;
}

.points-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 0 0 10px;
}

.points-form input {
    height: 32px;
    min-width: 0;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    padding: 0 8px;
    font: inherit;
}

.admin-page {
    display: grid;
    gap: 18px;
}

.submit-resource-page {
    display: grid;
    place-items: start center;
    padding-top: 4px;
}

.submit-resource-form {
    width: min(1120px, 100%);
}

.submit-resource-form,
.resource-editor {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(216, 216, 216, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.admin-resource-form.resource-editor {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.form-head h1 {
    margin: 0;
    font-size: 24px;
}

.form-head p {
    margin: 7px 0 0;
    color: #747474;
}

.submit-resource-form label,
.resource-editor label {
    display: grid;
    gap: 7px;
    color: #555555;
    font-size: 13px;
    font-weight: 700;
}

.submit-resource-form .form-checks,
.resource-editor .form-checks,
.submit-resource-form .admin-wide,
.resource-editor .admin-wide,
.submit-resource-form .auth-errors,
.submit-resource-form .profile-success,
.submit-resource-form .auth-submit,
.resource-editor .auth-submit {
    grid-column: 1 / -1;
}

.submit-resource-form input,
.submit-resource-form select,
.submit-resource-form textarea,
.resource-editor textarea {
    min-width: 0;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    padding: 0 10px;
    background: #ffffff;
    font: inherit;
}

.submit-resource-form input,
.submit-resource-form select {
    height: 36px;
}

.submit-resource-form input[type="file"],
.resource-editor input[type="file"] {
    height: auto;
    padding: 7px 10px;
}

.submit-resource-form small,
.resource-editor small {
    color: #777777;
    font-size: 12px;
    font-weight: 500;
}

.submit-resource-form textarea,
.resource-editor textarea {
    min-height: 92px;
    padding: 10px;
    resize: vertical;
}

.submit-select-shell {
    width: min(1120px, 100%);
    display: grid;
    gap: 18px;
}

.submit-select-head,
.submit-workflow-head,
.submit-step-card,
.submit-final-bar {
    border: 1px solid rgba(218, 226, 236, 0.92);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(26, 42, 64, 0.08);
}

.submit-select-head {
    padding: 26px;
}

.submit-select-head > span,
.submit-workflow-head span {
    display: inline-flex;
    margin-bottom: 8px;
    border-radius: 999px;
    padding: 5px 11px;
    background: #eef6ff;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

.submit-select-head h1,
.submit-workflow-head h1 {
    margin: 0;
    color: #1d2632;
    font-size: 30px;
    line-height: 1.2;
}

.submit-select-head p,
.submit-workflow-head p {
    max-width: 720px;
    margin: 9px 0 0;
    color: #687382;
    line-height: 1.7;
}

.submit-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.submit-type-card {
    position: relative;
    display: grid;
    gap: 9px;
    min-height: 138px;
    overflow: hidden;
    border: 1px solid rgba(218, 226, 236, 0.95);
    border-radius: 12px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px rgba(26, 42, 64, 0.06);
    transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.submit-type-card::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -32px;
    width: 96px;
    height: 96px;
    border-radius: 22px;
    background: rgba(46, 134, 255, 0.08);
    transform: rotate(18deg);
}

.submit-type-card:hover {
    border-color: #b9d6fa;
    box-shadow: 0 18px 38px rgba(46, 134, 255, 0.13);
    transform: translateY(-4px);
}

.submit-type-card .icon {
    width: 26px;
    height: 26px;
    color: #2e86ff;
}

.submit-type-card strong {
    color: #1f2935;
    font-size: 17px;
}

.submit-type-card span {
    color: #71808f;
    font-size: 13px;
    line-height: 1.55;
}

.submit-resource-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.submit-workflow-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
}

.submit-workflow-head > a {
    order: 2;
    flex: 0 0 auto;
    border: 1px solid #cfe0f5;
    border-radius: 8px;
    padding: 9px 12px;
    color: #2e6eb8;
    font-weight: 800;
    background: #f4f8ff;
}

.submit-step-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    border: 1px solid rgba(218, 226, 236, 0.9);
    border-radius: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(26, 42, 64, 0.08);
    backdrop-filter: blur(10px);
}

.submit-step-nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #556170;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.submit-step-nav button:hover,
.submit-step-nav button.active {
    background: #eef6ff;
    color: var(--blue);
}

.submit-step-panels {
    display: grid;
}

.submit-step-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    scroll-margin-top: 18px;
}

.submit-step-card[hidden] {
    display: none;
}

.submit-step-card.active {
    animation: submitPanelIn 0.2s ease both;
}

.submit-step-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.submit-step-title > span {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eef6ff;
    color: #2e86ff;
    font-size: 13px;
    font-weight: 900;
}

.submit-step-title h2 {
    margin: 0;
    color: #1f2935;
    font-size: 19px;
}

.submit-step-title p {
    margin: 5px 0 0;
    color: #71808f;
    font-size: 13px;
}

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

.submit-resource-form .submit-step-card label {
    min-width: 0;
}

.submit-resource-form .submit-step-card input:not([data-filter-search]),
.submit-resource-form .submit-step-card select {
    height: 40px;
    border-color: #dbe3ee;
    border-radius: 8px;
}

.submit-resource-form .submit-step-card input:not([data-filter-search]):focus,
.submit-resource-form .submit-step-card select:focus {
    outline: 2px solid rgba(46, 134, 255, 0.16);
    border-color: #7bb5ff;
}

.submit-resource-form .submit-step-card .filter-option-search input,
.filter-option-search input {
    border-radius: 0 !important;
}

.dependency-editor {
    display: grid;
    gap: 10px;
    border: 1px solid #e1e8f1;
    border-radius: 10px;
    padding: 14px;
    background: #fbfdff;
}

.ownership-editor {
    display: grid;
    gap: 10px;
    border: 1px solid #e1e8f1;
    border-radius: 10px;
    padding: 14px;
    background: #fbfdff;
}

.ownership-head,
.dependency-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ownership-head legend,
.dependency-head legend {
    color: #354052;
    font-size: 14px;
    font-weight: 900;
}

.ownership-head button,
.dependency-head button,
.ownership-row button,
.dependency-row button {
    height: 34px;
    border: 1px solid #cfe0f5;
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: #2e6eb8;
    font-weight: 800;
    cursor: pointer;
}

.ownership-head button::before {
    content: "+";
    margin-right: 6px;
    font-weight: 900;
}

.ownership-list,
.dependency-list {
    display: grid;
    gap: 9px;
}

.dependency-empty,
.version-empty {
    margin: 0;
    border: 1px dashed #cfe0f5;
    border-radius: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.ownership-row,
.dependency-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(150px, 1fr) minmax(180px, 1.2fr) auto;
    align-items: center;
    gap: 10px;
}

.ownership-row input {
    height: 38px;
    min-width: 0;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    padding: 0 10px;
    background: #fff;
    font: inherit;
}

.ownership-role-picker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.ownership-role-picker button {
    height: 30px;
    border: 1px solid #d7e1ef;
    border-radius: 999px;
    padding: 0 10px;
    background: #fff;
    color: #596676;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.ownership-role-picker button.active {
    border-color: #8dbfff;
    background: #eef6ff;
    color: #2e86ff;
}

.ownership-role-picker [data-custom-role] {
    width: 82px;
    height: 30px;
    border-radius: 999px;
    padding: 0 10px;
}

.ownership-role-picker [data-add-custom-role] {
    width: 30px;
    padding: 0;
    font-size: 16px;
}

.dependency-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.dependency-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.submit-final-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
}

.submit-final-bar span {
    color: #6d7785;
    font-size: 13px;
}

.submit-final-bar .auth-submit {
    width: auto;
    min-width: 150px;
}

.submit-version-manager {
    display: grid;
    gap: 14px;
}

.version-manager-head,
.submit-version-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.version-manager-head {
    border: 1px solid #e1e8f1;
    border-radius: 10px;
    padding: 14px;
    background: #fbfdff;
}

.version-manager-head div {
    display: grid;
    gap: 4px;
}

.version-manager-head strong,
.submit-version-head strong {
    color: #253143;
    font-size: 15px;
}

.version-manager-head span {
    color: #71808f;
    font-size: 12px;
}

.version-manager-head button,
.submit-version-head button {
    height: 34px;
    border: 1px solid #cfe0f5;
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: #2e6eb8;
    font-weight: 800;
    cursor: pointer;
}

.version-manager-head button::before {
    content: "+";
    margin-right: 6px;
    font-weight: 900;
}

.submit-version-list {
    display: grid;
    gap: 10px;
}

.submit-version-card {
    display: grid;
    gap: 14px;
    border: 1px solid #e1e8f1;
    border-radius: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.78);
}

.submit-version-draft {
    display: grid;
    gap: 12px;
}

.submit-version-draft[hidden] {
    display: none;
}

.version-draft-card {
    border-color: #cfe0f5;
    background: #fbfdff;
}

.version-confirm-add {
    justify-self: end;
    height: 36px;
    border: 1px solid #8bbcff;
    border-radius: 8px;
    padding: 0 16px;
    background: #eaf2ff;
    color: var(--blue);
    font-weight: 900;
    cursor: pointer;
}

.version-list-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #e6edf5;
    padding-top: 12px;
}

.version-list-tools strong {
    color: #253143;
}

.version-list-tools input {
    width: min(260px, 100%);
    height: 36px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    padding: 0 10px;
    background: #fff;
}

.version-list-card {
    padding: 0;
    gap: 0;
    overflow: visible;
    background: rgba(255, 255, 255, 0.94);
}

.version-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(160px, 0.7fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 12px 14px;
}

.version-row-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.version-row-main strong {
    overflow: hidden;
    color: #253143;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.version-row-main span,
.version-row-meta span {
    overflow: hidden;
    color: #71808f;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.version-row-meta {
    min-width: 0;
}

.version-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.version-row-actions button {
    height: 32px;
    border: 1px solid #cfe0f5;
    border-radius: 8px;
    padding: 0 11px;
    background: #fff;
    color: #2e6eb8;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.version-row-actions [data-remove-submit-version] {
    color: #d44b4b;
    border-color: #f1cdcd;
}

.version-edit-panel {
    display: grid;
    gap: 14px;
    border-top: 1px solid #e6edf5;
    padding: 14px;
    background: #fbfdff;
}

.version-edit-panel[hidden] {
    display: none;
}

.version-select-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}

.version-filter-dropdown {
    width: max-content;
    max-width: 100%;
}

.version-filter-dropdown .filter-option-list {
    z-index: 20;
    width: min(360px, calc(100vw - 64px));
}

@media (max-width: 760px) {
    .version-list-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .version-row-actions {
        justify-content: flex-end;
    }

    .version-panel .version-row,
    .version-file {
        grid-template-columns: minmax(0, 1fr);
    }

    .version-file span {
        text-align: left;
    }

    .version-file .download-button {
        justify-self: start;
    }
}

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

.submit-radio-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #dce6f2;
    border-radius: 12px;
    padding: 14px;
    background: #fbfdff;
    cursor: pointer;
}

.submit-radio-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.submit-radio-card span {
    display: grid;
    gap: 3px;
}

.submit-radio-card strong {
    color: #253143;
}

.submit-radio-card small {
    color: #71808f;
    font-size: 12px;
}

.submit-radio-card.selected {
    border-color: #8dbfff;
    background: #f4f9ff;
}

.rich-editor-wrap {
    display: grid;
    gap: 8px;
}

.rich-editor-label {
    color: #555555;
    font-size: 13px;
    font-weight: 700;
}

.rich-toolbar {
    display: none;
}

.template-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.template-toolbar button {
    height: 30px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    padding: 0 10px;
    background: #ffffff;
    color: #3f3f3f;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.rich-editor {
    min-height: 220px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    padding: 14px;
    background: #ffffff;
    color: #2f2f2f;
    line-height: 1.7;
    outline: 0;
    resize: vertical;
    width: 100%;
}

.rich-editor:focus {
    border-color: #8bbcff;
    box-shadow: 0 0 0 3px rgba(31, 120, 255, 0.14);
}

.rich-editor-wrap .ck.ck-editor {
    min-width: 0;
}

.rich-editor-wrap .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content {
    border: 1px solid #dbe5f0;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
}

.rich-editor-wrap .ck.ck-toolbar {
    background: linear-gradient(180deg, #fbfdff, #f6f9fe);
    border: 0;
    padding: 8px;
}

.rich-editor-wrap .ck.ck-toolbar .ck.ck-toolbar__separator {
    background: #dce7f5;
}

.rich-editor-wrap .ck.ck-button,
.rich-editor-wrap .ck.ck-dropdown .ck-button.ck-dropdown__button {
    border-radius: 7px;
}

.rich-editor-wrap .ck.ck-button:hover,
.rich-editor-wrap .ck.ck-button.ck-on,
.rich-editor-wrap .ck.ck-dropdown .ck-button.ck-on {
    background: #eaf3ff;
}

.rich-editor-wrap .ck.ck-editor__main > .ck-editor__editable {
    min-height: 420px;
    border: 1px solid #dbe5f0;
    border-radius: 0 0 10px 10px;
    padding: 18px 20px;
    background: #ffffff;
    color: #2f3a45;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.72;
    box-shadow: none;
}

.rich-editor-wrap .ck.ck-editor__main > .ck-editor__editable.ck-focused {
    border-color: #8bbcff;
    box-shadow: 0 0 0 3px rgba(31, 120, 255, 0.14);
}

.rich-editor-wrap .ck-content h1,
.rich-editor-wrap .ck-content h2,
.rich-editor-wrap .ck-content h3,
.rich-editor-wrap .ck-content h4 {
    margin: 16px 0 8px;
    color: #17212f;
}

.rich-editor-wrap .ck-content p {
    margin: 0 0 10px;
}

.rich-editor-wrap .ck-content blockquote {
    margin: 10px 0;
    border-left: 4px solid #b8cff1;
    padding: 8px 12px;
    background: #f6f9ff;
    color: #4f5f78;
}

.rich-editor-wrap .ck-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.rich-editor-wrap .ck-content table {
    max-width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.rich-editor-wrap .ck-content th,
.rich-editor-wrap .ck-content td {
    border: 1px solid #dfe5ed;
    padding: 7px 10px;
    vertical-align: top;
}

.comment-rich-editor .ck.ck-editor__main > .ck-editor__editable {
    min-height: 180px;
}

.comment-edit-rich-editor .ck.ck-editor__main > .ck-editor__editable {
    min-height: 150px;
}

.owner-rich-editor .ck.ck-editor__main > .ck-editor__editable {
    min-height: 320px;
}

.rich-editor-error {
    margin-top: 8px;
    padding: 9px 12px;
    border: 1px solid #f3b7b7;
    border-radius: 8px;
    background: #fff5f5;
    color: #b42318;
    font-size: 13px;
}

.rich-editor h2,
.resource-detail-text h2 {
    margin: 16px 0 8px;
    font-size: 22px;
}

.rich-editor h3,
.resource-detail-text h3 {
    margin: 14px 0 7px;
    font-size: 18px;
}

.rich-editor p,
.resource-detail-text p {
    margin: 0 0 10px;
}

.rich-editor blockquote,
.resource-detail-text blockquote {
    margin: 10px 0;
    border-left: 4px solid #b8cff1;
    padding: 8px 12px;
    background: #f6f9ff;
    color: #4f5f78;
}

.rich-editor img,
.resource-detail-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.rich-editor table,
.resource-detail-text table {
    max-width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    background: #ffffff;
}

.rich-editor th,
.rich-editor td,
.resource-detail-text th,
.resource-detail-text td {
    border: 1px solid #dfe5ed;
    padding: 7px 10px;
    vertical-align: top;
}

.admin-subtabs,
.status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 12px;
    border: 1px solid rgba(216, 216, 216, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
}

.admin-subtabs a,
.status-tabs a {
    height: 32px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    padding: 0 12px;
    background: #ffffff;
    color: #4f4f4f;
    font-weight: 700;
}

.admin-subtabs a.active,
.status-tabs a.active {
    border-color: #8bbcff;
    background: #eaf2ff;
    color: var(--blue);
}

.bulk-review-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(216, 216, 216, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
}

.bulk-review-bar input {
    height: 34px;
    min-width: 180px;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    padding: 0 10px;
    font: inherit;
}

.bulk-review-bar button,
.download-button {
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #8bbcff;
    border-radius: 7px;
    padding: 0 14px;
    background: #eaf2ff;
    color: var(--blue);
    cursor: pointer;
    font-weight: 700;
}

.review-center {
    gap: 14px;
}

.review-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
}

.review-card {
    display: grid;
    gap: 12px;
    border: 1px solid #dfe8f3;
    border-radius: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 36px rgba(55, 80, 110, 0.08);
}

.review-card-top,
.review-actions,
.review-mini-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.review-card-top {
    justify-content: space-between;
}

.review-card-main {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.review-thumb {
    width: 74px;
    aspect-ratio: 1;
    border: 1px solid #e1e8f1;
    border-radius: 10px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.review-thumb .resource-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card-main strong {
    display: block;
    overflow: hidden;
    color: #253143;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-card-main p {
    margin: 4px 0 8px;
    overflow: hidden;
    color: #71808f;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-mini-tags span {
    border: 1px solid #dfe8f3;
    border-radius: 999px;
    padding: 4px 8px;
    background: #f8fbff;
    color: #607083;
    font-size: 12px;
    font-weight: 800;
}

.review-card-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.review-card-info div {
    min-width: 0;
    border: 1px solid #edf2f7;
    border-radius: 9px;
    padding: 9px;
    background: #fbfdff;
}

.review-card-info dt {
    color: #8390a0;
    font-size: 12px;
}

.review-card-info dd {
    margin: 3px 0 0;
    overflow: hidden;
    color: #2f3a4a;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-actions button,
.review-actions a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfe0f5;
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: #2e6eb8;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.review-actions form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-reject-form {
    flex: 1 1 100%;
}

.review-reject-form input {
    flex: 1;
    min-width: 160px;
    height: 34px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    padding: 0 10px;
}

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

.review-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 24px;
}

.review-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 28, 42, 0.38);
    backdrop-filter: blur(6px);
}

.review-modal-panel {
    position: relative;
    z-index: 1;
    width: min(860px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    border: 1px solid #dfe8f3;
    border-radius: 14px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 80px rgba(20, 35, 55, 0.22);
}

.review-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    height: 34px;
    border: 1px solid #dfe8f3;
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: #607083;
    font-weight: 900;
    cursor: pointer;
}

.review-modal-head {
    padding-right: 72px;
}

.review-modal-head h2 {
    margin: 0;
    color: #253143;
}

.review-modal-head p {
    margin: 6px 0 0;
    color: #71808f;
}

.review-modal-grid {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.review-modal-grid dl,
.review-modal-section {
    display: grid;
    gap: 8px;
    margin: 0;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 12px;
    background: #fbfdff;
}

.review-modal-grid dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-modal-grid dt {
    color: #8390a0;
    font-size: 12px;
}

.review-modal-grid dd {
    margin: 3px 0 0;
    color: #2f3a4a;
    font-weight: 800;
}

.review-modal-section h3 {
    margin: 0;
    color: #253143;
    font-size: 15px;
}

.review-modal-section p {
    margin: 0;
    color: #607083;
    line-height: 1.7;
}

.review-version-line {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(160px, 1fr) minmax(120px, 0.8fr);
    gap: 8px;
    align-items: center;
    border-top: 1px solid #edf2f7;
    padding-top: 8px;
    color: #607083;
    font-size: 13px;
}

.review-version-line strong {
    color: #253143;
}

body.modal-open {
    overflow: hidden;
}

.resource-detail {
    display: grid;
    gap: 14px;
}

.detail-crumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #d8dfe8;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.96);
    color: #68717d;
    font-size: 14px;
}

.detail-crumbs a {
    color: #2a6fcb;
    font-weight: 700;
}

.detail-crumbs strong {
    min-width: 0;
    overflow: hidden;
    color: #3b4652;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-overview {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.detail-left-card,
.resource-detail-main,
.detail-section {
    border: 1px solid #d8dfe8;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.97);
}

.detail-left-card,
.resource-detail-main {
    padding: 14px;
    box-shadow: 0 14px 34px rgba(30, 44, 66, 0.06);
}

.resource-detail-cover {
    min-height: 190px;
    border: 1px solid #d8dfe8;
    border-radius: 9px;
    background-size: cover;
    background-position: center;
}

.resource-detail-main {
    min-width: 0;
}

.resource-detail-head {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.resource-detail-head h1 {
    margin: 0;
    color: #202833;
    font-size: 28px;
    line-height: 1.25;
}

.resource-detail-head p {
    margin: 8px 0 0;
    color: #747474;
}

.detail-title-line {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 10px;
}

.detail-title-line em {
    grid-column: 1 / -1;
    color: #65707c;
    font-size: 15px;
    font-style: normal;
}

.detail-badges {
    margin: 0;
}

.resource-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 14px;
    border: 0;
}

.resource-meta div {
    min-width: 0;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 9px 10px;
    background: #fbfdff;
}

.resource-meta dt {
    color: #777777;
    font-size: 12px;
    font-weight: 700;
}

.resource-meta dd {
    margin: 4px 0 0;
    color: #333333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-detail-text {
    color: #424242;
    line-height: 1.75;
}

.resource-detail-text.detail-section {
    padding: 18px 22px;
}

.detail-empty-note {
    border: 1px dashed #cfd9e6;
    border-radius: 7px;
    padding: 14px 16px;
    background: #f8fbff;
    color: #4f5f72;
}

.detail-empty-note strong {
    display: block;
    margin-bottom: 6px;
    color: #253142;
    font-size: 16px;
}

.detail-empty-note p {
    margin: 0;
}

.detail-section > h2,
.resource-detail-text.detail-section > h2 {
    margin: 0 0 14px;
    border-bottom: 1px solid #dde3eb;
    padding-bottom: 8px;
    color: #202833;
    font-size: 21px;
}

.resource-social-stats,
.resource-actions-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.detail-vote-bar {
    height: 18px;
    margin: 12px 0 8px;
    overflow: hidden;
    border-radius: 4px;
    background: repeating-linear-gradient(-45deg, #ffd995 0 10px, #ffc15a 10px 20px);
}

.detail-vote-bar span {
    display: block;
    height: 100%;
    background: rgba(37, 183, 88, 0.75);
}

.detail-vote-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #68717d;
    font-size: 13px;
}

.detail-radar {
    margin-top: 14px;
    border-top: 1px solid #edf0f5;
    padding-top: 12px;
}

.detail-radar strong {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.radar-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.radar-box span {
    border-radius: 999px;
    padding: 5px 9px;
    background: #f2f5f8;
    color: #596471;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.detail-left-rating {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    border-top: 1px solid #edf0f5;
    padding-top: 12px;
}

.detail-left-rating label {
    display: grid;
    gap: 6px;
}

.detail-left-rating label span {
    color: #596471;
    font-size: 13px;
    font-weight: 800;
}

.detail-left-rating select,
.detail-left-rating button {
    width: 100%;
    min-height: 36px;
    border-radius: 8px;
    font: inherit;
}

.detail-left-rating select {
    border: 1px solid #d8e2ee;
    padding: 0 10px;
    background: #fff;
    color: #263243;
}

.detail-left-rating button {
    border: 1px solid #8bbcff;
    background: #eaf2ff;
    color: var(--blue);
    font-weight: 900;
    cursor: pointer;
}

.detail-chip-section {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    border: 1px solid #edf2f7;
    border-radius: 9px;
    padding: 12px;
    background: #fbfdff;
}

.detail-chip-section h2 {
    margin: 0;
    color: #4a5562;
    font-size: 15px;
}

.detail-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    max-height: 92px;
    overflow: auto;
    padding-right: 4px;
}

.detail-chip-list span {
    border: 1px solid #d6e4ff;
    border-radius: 999px;
    padding: 4px 9px;
    background: #f6f9ff;
    color: #2365bd;
    font-size: 13px;
    font-weight: 700;
}

.detail-score-card {
    display: grid;
    place-items: center;
    min-height: 82px;
    margin-top: 14px;
    border: 1px solid #d6e4ff;
    border-radius: 10px;
    background: linear-gradient(180deg, #f7fbff, #eef6ff);
    color: #2365bd;
}

.detail-score-card strong {
    font-size: 28px;
    line-height: 1;
}

.detail-score-card span {
    margin-top: 6px;
    color: #607083;
    font-size: 14px;
}

.detail-side-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 12px 0;
    border: 1px solid #edf0f5;
    border-radius: 9px;
    overflow: hidden;
}

.detail-side-stats div {
    display: grid;
    place-items: center;
    min-height: 56px;
    border-right: 1px solid #edf0f5;
    border-bottom: 1px solid #edf0f5;
    background: #fbfcfe;
}

.detail-side-stats strong {
    color: #202833;
    font-size: 17px;
}

.detail-side-stats span {
    color: #7a8490;
    font-size: 12px;
}

.detail-action-panel {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
}

.detail-action-panel form {
    display: grid;
    grid-template-columns: 1fr;
}

.detail-action-panel button,
.detail-action-panel select {
    width: 100%;
}

.resource-social-stats span,
.dependency-panel a {
    border: 1px solid #d8e5f8;
    border-radius: 999px;
    padding: 5px 10px;
    background: #f4f8ff;
    color: #3767a8;
    font-size: 13px;
    font-weight: 700;
}

.resource-actions-panel form {
    display: inline-flex;
    gap: 8px;
}

.resource-actions-panel button,
.comment-form button,
.pagination a {
    min-height: 32px;
    border: 1px solid #8bbcff;
    border-radius: 7px;
    padding: 0 12px;
    background: #eaf2ff;
    color: var(--blue);
    font-weight: 700;
    cursor: pointer;
}

.resource-actions-panel select {
    height: 32px;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    padding: 0 8px;
}

.dependency-panel,
.comment-panel {
    margin: 18px 0;
    border: 1px solid #e4e8ef;
    border-radius: 10px;
    padding: 14px;
    background: #ffffff;
}

.mcwiki-detail .detail-section,
.mcwiki-detail .dependency-panel,
.mcwiki-detail .comment-panel {
    box-shadow: 0 10px 24px rgba(29, 43, 64, 0.05);
}

.mcwiki-detail .comment-panel {
    margin: 0;
    border-radius: 7px;
    padding: 18px 22px;
}

.wiki-comment-panel {
    display: grid;
    gap: 16px;
}

.comment-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #dde3eb;
    padding-bottom: 8px;
}

.comment-section-head h2 {
    margin: 0;
    color: #202833;
    font-size: 21px;
}

.comment-section-head span {
    color: #7a8490;
    font-size: 14px;
}

.mcwiki-detail .version-panel {
    margin: 0;
    border-radius: 10px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.98);
}

.version-panel .version-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 18px;
    align-items: center;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    padding: 13px 14px;
    margin-top: 10px;
    background: #fbfdff;
}

.version-panel .version-row:first-of-type {
    margin-top: 0;
}

.version-panel .version-row > div:first-child {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.version-panel .version-row strong {
    color: #253143;
    font-size: 17px;
}

.version-panel .version-row span,
.version-panel .version-row small {
    min-width: 0;
    overflow: hidden;
    color: #697684;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.version-file {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 10px;
    align-items: center;
}

.version-file span {
    text-align: right;
}

.version-file .download-button {
    min-width: 88px;
    min-height: 38px;
    border-color: #2f7dff;
    border-radius: 9px;
    background: #2878ff;
    color: #fff;
    font-weight: 900;
    white-space: nowrap;
}

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

.version-panel-head h2,
.version-panel-head p {
    margin: 0;
}

.version-panel-head p {
    margin-top: 4px;
    color: #738090;
    font-size: 13px;
}

.download-primary-trigger {
    border: 0;
    cursor: pointer;
}

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

.download-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: grid;
    place-items: center;
    padding: 24px;
}

.download-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 28, 42, 0.42);
    backdrop-filter: blur(6px);
}

.download-modal-panel {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: min(820px, calc(100vh - 48px));
    overflow: auto;
    border: 1px solid #dbe5f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(21, 35, 55, 0.24);
}

.download-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid #d8e2ee;
    border-radius: 10px;
    background: #fff;
    color: #647386;
    cursor: pointer;
}

.download-modal-head {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 26px 72px 22px 28px;
    border-bottom: 1px solid #e7edf5;
}

.download-modal-cover {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
}

.download-modal-head span {
    color: #8a96a6;
    font-weight: 800;
    letter-spacing: 0;
}

.download-modal-head h2 {
    margin: 4px 0;
    color: #202b3a;
    font-size: 24px;
}

.download-modal-head p {
    margin: 0;
    color: #6c7988;
}

.download-filter-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 22px 28px;
    border-bottom: 1px solid #edf2f7;
    background: #fbfdff;
}

.download-filter-row label {
    display: grid;
    gap: 8px;
    color: #263243;
    font-weight: 900;
}

.download-filter-row select {
    width: 100%;
    height: 46px;
    border: 1px solid #d7e0ec;
    border-radius: 9px;
    padding: 0 12px;
    background: #fff;
    color: #293546;
    font: inherit;
}

.download-selected-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 28px 8px;
}

.download-selected-title strong {
    color: #202b3a;
    font-size: 18px;
}

.download-selected-title span {
    color: #718094;
    font-size: 13px;
}

.download-file-list {
    display: grid;
    gap: 10px;
    padding: 0 28px 28px;
}

.download-file-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 16px;
    align-items: center;
    border: 1px solid #e6edf5;
    border-radius: 12px;
    padding: 16px 18px;
    background: #fff;
}

.download-file-row[hidden] {
    display: none;
}

.download-file-main {
    min-width: 0;
}

.download-file-main strong {
    display: block;
    color: #202b3a;
    font-size: 17px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-file-main p {
    margin: 8px 0 0;
    color: #758294;
    font-size: 13px;
}

.download-file-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    color: #657386;
}

.download-file-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 6px;
    background: #f1f5fa;
    padding: 2px 8px;
    font-size: 13px;
}

.download-file-tags .release-mark {
    background: #2abf5b;
    color: #fff;
    font-weight: 900;
}

.download-file-side {
    display: grid;
    justify-items: end;
    gap: 5px;
    color: #6e7b8c;
}

.download-file-side small {
    color: #8b97a6;
}

.download-file-action {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid #2f7dff;
    border-radius: 10px;
    background: #2878ff;
    color: #fff;
}

.download-file-action.disabled {
    border-color: #d8e1ec;
    background: #eef3f8;
    color: #9aa7b7;
}

.download-empty {
    border: 1px dashed #d4deeb;
    border-radius: 12px;
    padding: 18px;
    color: #758294;
    text-align: center;
}

@media (max-width: 760px) {
    .download-filter-row,
    .download-file-row,
    .download-modal-head {
        grid-template-columns: 1fr;
    }

    .download-file-side {
        justify-items: start;
    }
}

.dependency-panel h2,
.comment-panel h2 {
    margin: 0 0 12px;
    font-size: 17px;
}

.dependency-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dependency-panel h2 {
    width: 100%;
}

.dependency-panel a span {
    margin-left: 8px;
    color: #777777;
}

.wiki-comment-form {
    display: block;
    margin: 0;
    border: 1px solid #e5edf7;
    border-radius: 10px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(24, 42, 70, 0.06);
}

.comment-editor-avatar {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    border: 1px solid #d6e4f5;
    border-radius: 50%;
    background: linear-gradient(135deg, #3bbf93, #2f8ed8);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.comment-editor-avatar img,
.comment-editor-avatar span {
    width: 100%;
    height: 100%;
}

.comment-editor-avatar img {
    display: block;
    object-fit: cover;
}

.comment-editor-avatar span {
    display: grid;
    place-items: center;
}

.comment-editor-main {
    display: grid;
    min-width: 0;
    gap: 12px;
}

.comment-editor-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef3f8;
}

.comment-editor-head strong {
    display: block;
    margin: 0;
    color: #1f2d3d;
    font-size: 15px;
}

.comment-editor-head span {
    display: block;
    margin-top: 2px;
    color: #7d8a99;
    font-size: 13px;
}

.comment-rich-editor {
    gap: 8px;
}

.comment-rich-editor .ck.ck-editor__main > .ck-editor__editable {
    min-height: 220px;
}

.comment-edit-rich-editor .ck.ck-editor__main > .ck-editor__editable {
    min-height: 180px;
}

.comment-rich-editor .template-toolbar,
.comment-edit-rich-editor .template-toolbar {
    order: 3;
    gap: 8px;
    margin-top: 8px;
}

.comment-rich-editor .template-toolbar button,
.comment-edit-rich-editor .template-toolbar button {
    height: 34px;
    border: 0;
    border-radius: 6px;
    padding: 0 12px;
    background: #f3f4f6;
    color: #858585;
    font-size: 14px;
    font-weight: 800;
}

.comment-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
}

.comment-submit-button {
    min-width: 104px;
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    background: #2f8ed8;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(47, 142, 216, 0.22);
}

.comment-submit-row span {
    color: #7a8794;
    font-size: 13px;
}

.comment-submit-row a {
    margin-left: auto;
    color: #2a6fcb;
    font-weight: 700;
}

.comment-item {
    padding: 0;
    border-top: 1px solid #edf0f5;
}

.wiki-comment-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding-top: 16px;
}

.comment-author-side {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 6px;
    color: #65707c;
    font-size: 13px;
}

.comment-author-side strong {
    max-width: 86px;
    overflow: hidden;
    color: #596471;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comment-body-main {
    min-width: 0;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    padding: 12px 14px 0;
    background: #ffffff;
}

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

.comment-head strong {
    display: block;
}

.comment-item span,
.comment-head span {
    margin-left: 8px;
    color: #8a8a8a;
    font-size: 12px;
}

.comment-rich-body {
    min-height: 44px;
    margin: 8px 0 12px;
    color: #27313d;
    font-size: 15px;
    line-height: 1.75;
}

.comment-rich-body p {
    margin: 0 0 8px;
}

.comment-rich-body blockquote {
    margin: 8px 0;
    border-left: 4px solid #b8cff1;
    padding: 8px 12px;
    background: #f6f9ff;
    color: #4f5f78;
}

.comment-rich-body img {
    max-width: min(100%, 520px);
    height: auto;
    display: block;
    margin: 8px 0;
    border-radius: 7px;
}

.comment-rich-body table {
    max-width: 100%;
    border-collapse: collapse;
}

.comment-rich-body td,
.comment-rich-body th {
    border: 1px solid #dfe5ed;
    padding: 6px 8px;
}

.comment-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 -14px;
    border-top: 1px solid #eef2f6;
    padding: 9px 14px 10px;
    background: #fbfcfe;
    border-radius: 0 0 8px 8px;
}

.comment-actions:empty {
    display: none;
}

.comment-actions form {
    margin: 0;
}

.comment-actions button,
.comment-actions summary,
.comment-actions input {
    height: 34px;
    box-sizing: border-box;
}

.comment-actions button,
.comment-actions summary {
    min-width: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    padding: 0 10px;
    background: #ffffff;
    color: #3f4a56;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.comment-actions summary {
    list-style: none;
}

.comment-actions summary::-webkit-details-marker {
    display: none;
}

.comment-actions .danger-button {
    border-color: #ffd1d1;
    background: #fffafa;
    color: #b42318;
}

.comment-actions .reject-form {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.comment-actions .reject-form input {
    width: 160px;
    border: 1px solid #ffd1d1;
    border-radius: 6px;
    padding: 0 10px;
    font: inherit;
}

.comment-edit,
.comment-report {
    position: relative;
}

.comment-edit form,
.comment-report form {
    display: grid;
    gap: 8px;
    min-width: min(520px, 70vw);
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #e4e8ef;
    border-radius: 8px;
    background: #ffffff;
}

.comment-report input {
    height: 32px;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    padding: 0 8px;
    font: inherit;
}

.comment-admin-stats {
    display: grid;
    gap: 6px;
}

.comment-admin-stats span {
    width: max-content;
    border: 1px solid #dfe5ed;
    border-radius: 999px;
    padding: 4px 9px;
    background: #f7f9fc;
    color: #52606f;
    font-size: 12px;
    font-weight: 700;
}

.comment-admin-stats .report-hot {
    border-color: #ffc9c9;
    background: #fff5f5;
    color: #b42318;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
}

.pagination a {
    min-width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination a.active {
    background: var(--blue);
    color: #ffffff;
}

.dependency-editor {
    display: grid;
    gap: 10px;
}

.dependency-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.3fr) auto auto;
    gap: 10px;
    align-items: center;
}

.dependency-row input {
    height: 34px;
    min-width: 0;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    padding: 0 10px;
    font: inherit;
}

.ownership-row {
    grid-template-columns: minmax(260px, 1.4fr) minmax(150px, 1fr) minmax(180px, 1.2fr) auto;
}

.version-panel {
    margin: 18px 0;
    border: 1px solid #e4e8ef;
    border-radius: 10px;
    overflow: hidden;
}

.version-panel h2 {
    margin: 0;
    padding: 12px 14px;
    background: #f7f9fc;
    font-size: 17px;
}

.version-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-top: 1px solid #edf0f5;
}

.version-row span,
.version-row small,
.empty-inline {
    display: block;
    margin-top: 4px;
    color: #747474;
    font-size: 13px;
}

.version-file {
    min-width: 220px;
    display: grid;
    justify-items: end;
    align-content: center;
    gap: 6px;
}

.version-admin-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(216, 216, 216, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

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

.version-form label {
    display: grid;
    gap: 7px;
    color: #555555;
    font-size: 13px;
    font-weight: 700;
}

.version-form input,
.version-form select {
    height: 36px;
    min-width: 0;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    padding: 0 10px;
    background: #ffffff;
    font: inherit;
}

.version-form input[type="file"] {
    height: auto;
    padding: 7px 10px;
}

.version-form .form-checks,
.version-form .admin-wide,
.version-form .auth-submit {
    grid-column: 1 / -1;
}

.version-inline-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(90px, 1fr));
    gap: 8px;
    align-items: center;
}

.version-inline-form input,
.version-inline-form select {
    min-width: 0;
    height: 32px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    padding: 0 8px;
    font: inherit;
}

.version-inline-form input[type="file"] {
    height: auto;
    padding: 5px 8px;
}

.version-inline-form span {
    grid-column: 1 / -2;
    color: #777777;
    font-size: 12px;
}

.version-inline-form button {
    height: 32px;
    border: 1px solid #8bbcff;
    border-radius: 6px;
    background: #eaf2ff;
    color: var(--blue);
    font-weight: 700;
}

.admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid rgba(216, 216, 216, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.admin-head h1 {
    margin: 0;
    font-size: 24px;
}

.admin-head p {
    margin: 6px 0 0;
    color: #747474;
}

.admin-tabs {
    display: flex;
    gap: 10px;
}

.admin-tabs a,
.admin-search button,
.inline-admin-form button,
.admin-resource-form button,
.danger-button {
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    padding: 0 14px;
    background: #ffffff;
    color: #3f3f3f;
    cursor: pointer;
    font-weight: 700;
}

.admin-tabs a.active {
    border-color: #8bbcff;
    background: #eaf2ff;
    color: var(--blue);
}

.role-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 220px;
}

.role-checkbox-group label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    border: 1px solid #d8dfe8;
    border-radius: 999px;
    padding: 0 10px;
    background: #ffffff;
    color: #5f6875;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.role-checkbox-group label.checked {
    border-color: #8bbcff;
    background: #eaf2ff;
    color: var(--blue);
}

.role-checkbox-group input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.role-checkbox-group label:has(input:disabled) {
    cursor: not-allowed;
    opacity: 0.72;
}

.admin-settings-panel {
    display: grid;
    gap: 16px;
}

.settings-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(216, 216, 216, 0.9);
    border-radius: 10px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.settings-card h2 {
    margin: 0;
    font-size: 18px;
}

.settings-card p {
    margin: 6px 0 0;
    color: #777777;
    font-size: 13px;
}

.settings-card-wide {
    display: block;
}

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

.settings-tools {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.settings-tools button {
    height: 32px;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    padding: 0 12px;
    background: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.switch-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.switch-row input,
.category-switch-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-row span,
.category-switch-state {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #d9dce2;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.switch-row span::after,
.category-switch-state::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.switch-row input:checked + span,
.category-switch-card input:checked + .category-switch-state {
    background: var(--blue);
}

.switch-row input:checked + span::after,
.category-switch-card input:checked + .category-switch-state::after {
    transform: translateX(20px);
}

.category-switch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.category-switch-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 6px 10px;
    min-height: 72px;
    border: 1px solid #e2e5ea;
    border-radius: 9px;
    padding: 12px;
    background: #fbfcfe;
    cursor: pointer;
}

.category-switch-card strong {
    color: #2f343b;
}

.category-switch-card em {
    grid-column: 2;
    color: #777777;
    font-style: normal;
    font-size: 12px;
}

.admin-search,
.admin-resource-form,
.admin-table {
    border: 1px solid rgba(216, 216, 216, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.owner-page {
    max-width: 1260px;
    margin: 0 auto;
}

.owner-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    overflow: hidden;
    border: 1px solid rgba(218, 226, 236, 0.92);
    border-radius: 14px;
    padding: 24px 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94)),
        radial-gradient(circle at 92% 18%, rgba(46, 134, 255, 0.13), transparent 34%);
    box-shadow: 0 18px 45px rgba(26, 42, 64, 0.1);
}

.owner-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(50, 92, 138, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 92, 138, 0.045) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.owner-hero > div,
.owner-hero-actions {
    position: relative;
    z-index: 1;
}

.owner-hero span {
    display: inline-flex;
    margin-bottom: 8px;
    border-radius: 999px;
    padding: 5px 11px;
    background: #eef6ff;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(72, 145, 237, 0.18);
}

.owner-hero h1 {
    margin: 0;
    color: #172233;
    font-size: 30px;
    line-height: 1.15;
}

.owner-hero p {
    max-width: 760px;
    margin: 8px 0 0;
    color: #68717d;
    font-size: 15px;
    line-height: 1.65;
}

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

.owner-hero-actions a {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8dfe8;
    border-radius: 9px;
    padding: 0 16px;
    background: #ffffff;
    color: #3f4650;
    font-weight: 800;
}

.owner-hero-actions a.active {
    border-color: #8bbcff;
    background: #eaf2ff;
    color: var(--blue);
}

.owner-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.owner-stat-grid article {
    border: 1px solid rgba(218, 226, 236, 0.9);
    border-radius: 12px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 26px rgba(26, 42, 64, 0.07);
}

.owner-stat-grid span,
.owner-stat-grid em {
    display: block;
    color: #6f7884;
    font-size: 13px;
    font-style: normal;
}

.owner-stat-grid strong {
    display: block;
    margin: 8px 0 5px;
    color: #172233;
    font-size: 30px;
    line-height: 1;
}

.owner-binding-card {
    margin-bottom: 16px;
}

.owner-binding-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.owner-binding-body code {
    display: block;
    width: fit-content;
    max-width: 100%;
    overflow: auto;
    margin-top: 12px;
    border: 1px solid #dbe7f5;
    border-radius: 10px;
    padding: 12px 14px;
    background: #f8fbff;
    color: #172233;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.owner-binding-body p {
    margin: 10px 0 0;
    color: #6f7884;
    font-size: 13px;
    line-height: 1.55;
}

.owner-binding-body button {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #8bbcff;
    border-radius: 9px;
    padding: 0 16px;
    background: #eaf2ff;
    color: var(--blue);
    font-weight: 900;
    cursor: pointer;
}

.owner-console-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 16px;
    align-items: start;
}

.owner-message-card {
    border: 1px solid rgba(216, 216, 216, 0.9);
    border-radius: 14px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 32px rgba(26, 42, 64, 0.08);
}

.owner-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.owner-card-head > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #eef5ff;
    color: var(--blue);
}

.owner-card-head .icon {
    width: 22px;
    height: 22px;
}

.owner-card-head h2 {
    margin: 0;
    color: #1f2937;
    font-size: 20px;
}

.owner-card-head p {
    margin: 5px 0 0;
    color: #777777;
    font-size: 13px;
    line-height: 1.5;
}

.owner-message-form {
    display: grid;
    gap: 14px;
}

.owner-message-form .owner-field {
    display: grid;
    gap: 7px;
    color: #555555;
    font-size: 13px;
    font-weight: 700;
}

.owner-message-form input,
.owner-message-form select,
.owner-message-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    padding: 0 11px;
    background: #ffffff;
    color: #253041;
    font: inherit;
    outline: none;
    transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
}

.owner-message-form input,
.owner-message-form select {
    height: 38px;
}

.owner-message-form textarea {
    min-height: 132px;
    padding-top: 10px;
    resize: vertical;
}

.owner-rich-editor {
    display: grid;
    gap: 8px;
}

.owner-rich-editor .ck.ck-editor__main > .ck-editor__editable {
    min-height: 320px;
}

.owner-rich-editor .rich-editor-label {
    color: #555555;
    font-size: 13px;
    font-weight: 700;
}

.owner-message-form input[type="file"] {
    height: auto;
    padding: 9px 11px;
}

.owner-update-form textarea {
    min-height: 116px;
}

.owner-update-file input[type="file"] {
    border-style: dashed;
    background: linear-gradient(135deg, #f8fbff, #f2f7ff);
}

.owner-version-composer {
    margin-bottom: 16px;
}

.owner-compose-form {
    display: grid;
    gap: 14px;
}

.owner-compose-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.7fr) 180px;
    gap: 12px;
}

.owner-compose-grid {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.owner-compose-grid-single {
    grid-template-columns: 1fr;
}

.owner-drop-zone {
    min-height: 360px;
    display: grid !important;
    place-items: center;
    align-content: center;
    gap: 10px !important;
    border: 1px dashed #9ab8db;
    border-radius: 14px;
    padding: 24px;
    background: linear-gradient(145deg, #f8fbff, #edf5ff);
    color: #5f7187;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.owner-drop-zone.drag-over {
    border-color: var(--blue);
    background: #eaf2ff;
    transform: translateY(-1px);
}

.owner-drop-zone input {
    display: none;
}

.owner-drop-zone strong {
    color: #263141;
    font-size: 18px;
}

.owner-drop-zone span {
    max-width: 230px;
    color: #718093;
    font-size: 13px;
    line-height: 1.6;
}

.owner-tree-panel {
    min-height: 430px;
    overflow: hidden;
    border: 1px solid #dbe5f0;
    border-radius: 14px;
    background: #fbfdff;
}

.owner-tree-panel.drag-over,
.owner-file-tree.drag-over {
    border-color: #1f6feb;
    background: #f3f8ff;
}

.owner-tree-input {
    display: none;
}

.owner-tree-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e7eef6;
    padding: 14px 16px;
    background: linear-gradient(180deg, #ffffff, #f5f9ff);
}

.owner-tree-head > div:first-child {
    min-width: 0;
}

.owner-tree-head strong {
    color: #263141;
}

.owner-tree-head small,
.owner-tree-head span {
    color: #708096;
    font-size: 13px;
}

.owner-tree-head span.storage-warning {
    color: #b42318;
    font-weight: 900;
}

.owner-tree-head small {
    display: block;
    margin-top: 3px;
}

.owner-tree-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.owner-tree-actions button {
    height: 32px;
    border: 1px solid #d6e3f3;
    border-radius: 8px;
    padding: 0 10px;
    background: #ffffff;
    color: #1f4f9f;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.owner-file-tree {
    min-height: 350px;
    max-height: 560px;
    overflow: auto;
    padding: 12px;
    font-size: 13px;
}

.owner-tree-folder {
    margin: 4px 0;
}

.owner-tree-folder summary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    list-style: none;
    border-radius: 8px;
    padding: 6px 8px;
    color: #324154;
    font-weight: 800;
    cursor: pointer;
}

.owner-tree-folder summary.selected,
.owner-tree-folder.drag-target > summary {
    background: #eaf2ff;
    color: #1f4f9f;
}

.owner-tree-folder summary::before {
    content: "▾";
    margin-right: 7px;
    color: #7e8da0;
}

.owner-tree-folder:not([open]) summary::before {
    content: "▸";
}

.owner-tree-children {
    margin-left: 16px;
    border-left: 1px solid #e3ebf4;
    padding-left: 10px;
}

.owner-tree-file {
    width: auto;
    max-width: 100%;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    padding: 6px 8px;
    background: transparent;
    color: #334155;
    text-align: left;
    cursor: context-menu;
}

.owner-tree-file:hover,
.owner-tree-file.selected {
    background: #eef6ff;
}

.owner-tree-file.selected {
    outline: 2px solid rgba(31, 111, 235, 0.28);
}

.owner-tree-state {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #e8eef6;
    color: #64748b;
    font-weight: 900;
}

.owner-tree-name {
    overflow: hidden;
    flex: 0 1 auto;
    max-width: min(420px, 38vw);
    color: #263141;
    font-weight: 800;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-tree-path {
    overflow: hidden;
    flex: 0 1 auto;
    max-width: min(520px, 42vw);
    color: #8391a3;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-tree-badge {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 3px 8px;
    background: #eef2f7;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.owner-tree-new .owner-tree-state,
.owner-tree-replace .owner-tree-state {
    background: #dcfce7;
    color: #16824a;
}

.owner-tree-new .owner-tree-badge {
    background: #ecfdf3;
    color: #16803c;
}

.owner-tree-replace .owner-tree-badge {
    background: #eaf2ff;
    color: #1f6feb;
}

.owner-tree-replaced {
    opacity: 0.7;
}

.owner-tree-replaced .owner-tree-state {
    background: #fff7ed;
    color: #c2410c;
}

.owner-tree-replaced .owner-tree-badge {
    background: #fff7ed;
    color: #c2410c;
}

.owner-tree-delete {
    opacity: 0.66;
}

.owner-tree-delete .owner-tree-state {
    background: #ffe4e6;
    color: #be123c;
}

.owner-tree-delete .owner-tree-name,
.owner-tree-delete .owner-tree-path {
    text-decoration: line-through;
}

.owner-tree-delete .owner-tree-badge {
    background: #ffe4e6;
    color: #be123c;
}

.owner-tree-menu {
    position: fixed;
    z-index: 10020;
    min-width: 168px;
    border: 1px solid #d8e2ef;
    border-radius: 10px;
    padding: 6px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.owner-tree-menu button {
    width: 100%;
    height: 32px;
    display: flex;
    align-items: center;
    border: 0;
    border-radius: 7px;
    padding: 0 10px;
    background: transparent;
    color: #263141;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.owner-tree-menu button:hover:not(:disabled) {
    background: #eef6ff;
    color: #1f4f9f;
}

.owner-tree-menu button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.owner-tree-menu hr {
    margin: 5px 0;
    border: 0;
    border-top: 1px solid #edf2f7;
}

.owner-image-field small {
    color: #7a8491;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.owner-message-form input:focus,
.owner-message-form select:focus,
.owner-message-form textarea:focus {
    border-color: #8bbcff;
    background: #fbfdff;
    box-shadow: 0 0 0 3px rgba(31, 120, 255, 0.12);
}

.owner-form-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 12px;
}

.owner-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
    border-top: 1px solid #edf2f7;
    padding-top: 14px;
}

.owner-switch {
    display: inline-flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px !important;
    cursor: pointer;
}

.owner-switch input {
    display: none;
}

.owner-switch span {
    width: 38px;
    height: 22px;
    position: relative;
    border-radius: 999px;
    background: #d8d8d8;
    transition: background 0.2s ease;
}

.owner-switch span::after {
    content: "";
    width: 18px;
    height: 18px;
    position: absolute;
    top: 2px;
    left: 2px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}

.owner-switch input:checked + span {
    background: var(--blue);
}

.owner-switch input:checked + span::after {
    transform: translateX(16px);
}

.owner-message-form button,
.owner-table button {
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    padding: 0 15px;
    background: #ffffff;
    color: #3f3f3f;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.owner-message-form button {
    min-width: 120px;
    border-color: #8bbcff;
    background: #eaf2ff;
    color: var(--blue);
}

.owner-message-form button:hover,
.owner-table button:hover {
    transform: translateY(-1px);
}

.owner-api-card code {
    display: block;
    overflow: auto;
    border: 1px solid #e3e7ef;
    border-radius: 8px;
    padding: 12px;
    background: #f7f9fc;
    color: #334155;
}

.owner-api-stats {
    margin-top: 14px;
    display: grid;
    gap: 3px;
}

.owner-api-stats strong {
    color: #1f2937;
    font-size: 32px;
    line-height: 1;
}

.owner-api-stats span {
    color: #777777;
    font-size: 13px;
}

.owner-api-note {
    display: grid;
    gap: 4px;
    margin-top: 16px;
    border-radius: 10px;
    padding: 12px;
    background: #f4f8ff;
}

.owner-api-note strong {
    color: #263141;
    font-size: 13px;
}

.owner-api-note span {
    color: #6f7884;
    font-size: 12px;
}

.owner-message-list {
    padding: 0;
    overflow: hidden;
    margin-top: 16px;
}

.owner-message-list .owner-card-head {
    margin: 0;
    padding: 20px 20px 0;
}

.owner-table {
    margin-top: 16px;
    border-width: 1px 0 0;
    border-radius: 0;
    box-shadow: none;
}

.owner-table table {
    min-width: 960px;
}

.owner-table th {
    background: #f7f9fc;
    color: #5d6673;
    font-size: 13px;
}

.owner-table td strong {
    display: block;
    color: #303030;
    font-size: 15px;
}

.owner-table td span {
    display: block;
    margin-top: 4px;
    color: #717b88;
    font-size: 12px;
    line-height: 1.45;
}

.owner-message-thumb {
    display: block;
    width: 168px;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    object-fit: cover;
    background: #f3f4f6;
}

.owner-update-list .owner-level {
    display: inline-flex;
    margin-top: 7px;
}

.owner-user-list {
    overflow: hidden;
}

.owner-user-search {
    display: flex;
    gap: 10px;
    margin: 18px 0 0;
}

.owner-user-search input {
    min-width: 0;
    flex: 1;
    height: 38px;
    border: 1px solid #d8dfe8;
    border-radius: 8px;
    padding: 0 12px;
    background: #ffffff;
    color: #253041;
    font: inherit;
    outline: none;
}

.owner-user-search input:focus {
    border-color: #8bbcff;
    box-shadow: 0 0 0 3px rgba(31, 120, 255, 0.12);
}

.owner-user-search button,
.owner-user-search a {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #8bbcff;
    border-radius: 8px;
    padding: 0 15px;
    background: #eaf2ff;
    color: var(--blue);
    font-weight: 800;
    cursor: pointer;
}

.owner-user-search a {
    border-color: #d8dfe8;
    background: #ffffff;
    color: #5f6875;
}

.owner-users-table {
    margin-top: 16px;
}

.owner-users-table code {
    display: inline-flex;
    width: max-content;
    max-width: 260px;
    overflow: hidden;
    border-radius: 7px;
    padding: 5px 8px;
    background: #f4f8ff;
    color: #27496f;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.owner-user-cell .top-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
}

.owner-level,
.owner-state {
    display: inline-flex !important;
    align-items: center;
    width: fit-content;
    margin: 0 !important;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px !important;
    font-weight: 800;
}

.owner-level-info {
    background: #eef5ff;
    color: #2563eb !important;
}

.owner-level-success {
    background: #ecfdf3;
    color: #16803c !important;
}

.owner-level-warning {
    background: #fff7ed;
    color: #c2410c !important;
}

.owner-state.active {
    background: #ecfdf3;
    color: #16803c !important;
}

.owner-state.muted {
    background: #f3f4f6;
    color: #6b7280 !important;
}

.owner-entry-page {
    max-width: 1180px;
}

.owner-entry-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(218, 226, 236, 0.9);
    border-radius: 18px;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96)),
        radial-gradient(circle at 96% 12%, rgba(31, 111, 235, 0.14), transparent 34%);
    box-shadow: 0 18px 44px rgba(31, 53, 82, 0.1);
}

.owner-entry-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
}

.owner-entry-copy > span {
    width: fit-content;
    border-radius: 999px;
    padding: 5px 11px;
    background: #eef6ff;
    color: #1f6feb;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.owner-entry-copy h1 {
    margin: 14px 0 8px;
    color: #172233;
    font-size: 34px;
    line-height: 1.12;
}

.owner-entry-copy p {
    max-width: 650px;
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.75;
}

.owner-entry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.owner-entry-actions a {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce3ec;
    border-radius: 10px;
    padding: 0 16px;
    background: #ffffff;
    color: #4b5563;
    font-weight: 900;
}

.owner-entry-actions .owner-primary-link {
    border-color: #1f6feb;
    background: #1f6feb;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(31, 111, 235, 0.2);
}

.owner-entry-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid #e1e8f2;
    border-radius: 16px;
    padding: 20px;
    background:
        linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.owner-entry-panel strong {
    color: #172233;
    font-size: 26px;
    line-height: 1.2;
}

.owner-entry-panel > span {
    margin-top: 4px;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.owner-entry-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 18px;
    border-radius: 999px;
    padding: 8px 12px;
    background: #f3f6fa;
    color: #475467;
    font-size: 13px;
    font-weight: 900;
}

.owner-entry-status em {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #98a2b3;
    font-style: normal;
}

.owner-entry-status em.active {
    background: #12b76a;
    box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.12);
}

.owner-entry-status em.muted {
    background: #f79009;
    box-shadow: 0 0 0 4px rgba(247, 144, 9, 0.12);
}

.owner-entry-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.owner-entry-grid article {
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 180px;
    border: 1px solid rgba(220, 227, 236, 0.92);
    border-radius: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 26px rgba(31, 53, 82, 0.07);
}

.owner-entry-grid article > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #eef6ff;
    color: #1f6feb;
}

.owner-entry-grid article .icon {
    width: 20px;
    height: 20px;
}

.owner-entry-grid strong {
    color: #202938;
    font-size: 17px;
}

.owner-entry-grid p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.6;
}

.owner-entry-grid a {
    align-self: end;
    width: fit-content;
    color: #1f6feb;
    font-size: 13px;
    font-weight: 900;
}

body.owner-console-body {
    background: #f7faff;
}

.owner-console-standalone {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(247, 250, 255, 0.96), rgba(255, 255, 255, 0.98)),
        var(--page-bg);
}

.owner-console-side {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-right: 1px solid #e2e8f0;
    padding: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
    box-shadow: 8px 0 28px rgba(31, 53, 82, 0.06);
}

.owner-console-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    padding: 0 12px;
    background: #ffffff;
    color: #172233;
    box-shadow: 0 8px 18px rgba(31, 53, 82, 0.06);
}

.owner-console-brand span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #eef6ff;
    color: #1f6feb;
}

.owner-console-brand .icon {
    width: 18px;
    height: 18px;
}

.owner-console-brand strong {
    font-size: 16px;
}

.owner-console-nav {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.owner-console-nav a,
.owner-console-side-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    border-radius: 10px;
    padding: 0 12px;
    color: #566170;
    font-size: 14px;
    font-weight: 850;
    transition: background-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.owner-console-nav a:hover,
.owner-console-side-footer a:hover {
    background: #f2f7ff;
    color: #1f4f9f;
}

.owner-console-nav a.active {
    background: #1f6feb;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(31, 111, 235, 0.2);
}

.owner-console-nav .icon,
.owner-console-side-footer .icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.owner-console-side-footer {
    display: grid;
    gap: 6px;
    margin-top: auto;
    border-top: 1px solid #e8eef6;
    padding-top: 12px;
}

.owner-console-area {
    display: grid;
    grid-template-rows: 64px minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
}

.owner-console-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e4eaf2;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
}

.owner-console-top > div {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.owner-console-top > div > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eef6ff;
    color: #1f6feb;
}

.owner-console-top .icon {
    width: 21px;
    height: 21px;
}

.owner-console-top h1 {
    margin: 0;
    color: #172233;
    font-size: 19px;
    line-height: 1.2;
}

.owner-console-top p {
    margin: 3px 0 0;
    color: #667085;
    font-size: 12px;
}

.owner-console-top nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
}

.owner-console-top nav a {
    height: 34px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #dce3ec;
    border-radius: 9px;
    padding: 0 12px;
    background: #ffffff;
    color: #566170;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}

.owner-console-top .top-avatar {
    margin-left: 4px;
}

.owner-console-workspace {
    min-height: 0;
    overflow: auto;
    padding: 14px 18px 24px;
}

.owner-console-workspace .owner-page {
    width: min(100%, 1480px);
    margin: 0 auto;
}

.owner-console-workspace .owner-hero {
    display: none;
}

.owner-console-workspace .owner-binding-card {
    margin-top: 0;
}

.owner-overview-dashboard {
    display: grid;
    grid-template-columns: minmax(460px, 0.92fr) minmax(460px, 1.08fr);
    gap: 12px;
    align-items: start;
    max-width: 1480px;
    margin: 0 auto;
}

.owner-overview-primary {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.owner-overview-primary .owner-message-card {
    margin: 0;
}

.owner-overview-primary .owner-binding-card {
    padding: 16px 18px;
}

.owner-overview-primary .owner-binding-card .owner-card-head {
    align-items: center;
    margin-bottom: 10px;
}

.owner-overview-primary .owner-binding-card .owner-binding-body {
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
}

.owner-overview-primary .owner-binding-card .owner-binding-body > div {
    min-width: 0;
}

.owner-overview-primary .owner-binding-card .owner-binding-body code {
    width: min(100%, 500px);
    white-space: nowrap;
}

.owner-overview-primary .owner-binding-card .owner-binding-body form {
    justify-self: end;
}

.owner-overview-primary .owner-binding-card .owner-binding-body button {
    min-width: 138px;
}

.owner-console-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 auto 10px;
    max-width: 1480px;
}

.owner-console-section-head h2 {
    margin: 0;
    color: #172233;
    font-size: 20px;
}

.owner-console-section-head p {
    margin: 3px 0 0;
    color: #667085;
    font-size: 13px;
}

.owner-console-add-button {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #1f6feb;
    border-radius: 10px;
    padding: 0 15px;
    background: #1f6feb;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(31, 111, 235, 0.2);
}

.owner-console-add-button span {
    font-size: 20px;
    line-height: 1;
}

.owner-overview-rings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    min-width: 0;
}

.owner-overview-rings article {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    min-height: 128px;
    border: 1px solid rgba(220, 227, 236, 0.92);
    border-radius: 16px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 26px rgba(31, 53, 82, 0.07);
}

.owner-overview-rings article > div {
    width: 76px;
    height: 76px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    border-radius: 50%;
    background:
        radial-gradient(circle closest-side, #ffffff 70%, transparent 72% 100%),
        conic-gradient(#1f6feb calc(var(--ring-value, 0) * 1%), #e7edf6 0);
}

.owner-overview-rings strong,
.owner-overview-rings span {
    display: block;
    text-align: center;
}

.owner-overview-rings strong {
    color: #172233;
    font-size: 22px;
    line-height: 1;
}

.owner-overview-rings span {
    margin-top: 3px;
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}

.owner-overview-rings em {
    color: #667085;
    font-size: 11px;
    font-style: normal;
    font-weight: 750;
}

.owner-overview-api {
    margin: 0;
}

.owner-overview-api .owner-api-note span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.owner-overview-api .owner-api-note {
    margin-top: 10px;
    padding: 10px 12px;
}

.owner-list-only {
    margin-top: 0;
}

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

.owner-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 24px;
}

.owner-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(8px);
}

.owner-modal-panel {
    position: relative;
    width: min(780px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    margin: 0;
}

.owner-modal-panel-wide {
    width: min(1180px, calc(100vw - 48px));
}

.owner-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 14px;
}

.owner-modal-head h2 {
    margin: 0;
    color: #172233;
    font-size: 20px;
}

.owner-modal-head p {
    margin: 5px 0 0;
    color: #667085;
    font-size: 13px;
}

.owner-modal-head button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #dce3ec;
    border-radius: 9px;
    background: #ffffff;
    color: #475467;
    font-size: 22px;
    cursor: pointer;
}

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

.owner-version-composer.owner-uploading .owner-modal-head,
.owner-version-composer.owner-uploading .owner-compose-form {
    display: none;
}

.owner-upload-progress-page[hidden] {
    display: none;
}

.owner-upload-progress-page {
    display: grid;
    gap: 18px;
    min-height: min(520px, calc(100vh - 96px));
    align-content: center;
    padding: 28px;
}

.owner-upload-progress-hero {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}

.owner-upload-progress-hero span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid #cfe0ff;
    border-radius: 999px;
    padding: 0 12px;
    background: #eef5ff;
    color: #1f6feb;
    font-size: 12px;
    font-weight: 900;
}

.owner-upload-progress-hero strong {
    color: #172233;
    font-size: clamp(46px, 8vw, 86px);
    line-height: 1;
}

.owner-upload-progress-hero p {
    margin: 0;
    color: #667085;
    font-size: 15px;
    font-weight: 800;
}

.owner-upload-progress-bar {
    height: 14px;
    overflow: hidden;
    border: 1px solid #dbe8ff;
    border-radius: 999px;
    background: #edf4ff;
}

.owner-upload-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1f6feb, #4f9dff);
    box-shadow: 0 8px 24px rgba(31, 111, 235, 0.25);
    transition: width 0.18s ease;
}

.owner-upload-progress-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.owner-upload-progress-grid article {
    min-width: 0;
    border: 1px solid #e4ebf5;
    border-radius: 12px;
    padding: 12px;
    background: #ffffff;
}

.owner-upload-progress-grid span {
    display: block;
    color: #7b8493;
    font-size: 12px;
    font-weight: 850;
}

.owner-upload-progress-grid strong {
    display: block;
    overflow: hidden;
    margin-top: 6px;
    color: #172233;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-upload-progress-note {
    margin: 0;
    color: #7b8493;
    font-size: 13px;
    text-align: center;
}

.owner-page {
    max-width: 1320px;
}

.owner-page .message {
    margin: 14px 0;
}

.owner-hero {
    min-height: 132px;
    border-color: rgba(218, 226, 236, 0.86);
    border-radius: 16px;
    padding: 22px 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 252, 255, 0.96) 58%, rgba(240, 247, 255, 0.95) 100%),
        radial-gradient(circle at 92% 20%, rgba(50, 128, 255, 0.15), transparent 34%);
    box-shadow: 0 16px 38px rgba(31, 53, 82, 0.1);
}

.owner-hero::before {
    opacity: 0.7;
    background-size: 28px 28px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
}

.owner-hero span {
    margin-bottom: 7px;
    padding: 4px 10px;
    background: #f0f7ff;
    color: #2563eb;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.owner-hero h1 {
    font-size: 28px;
    letter-spacing: 0;
}

.owner-hero p {
    max-width: 700px;
    margin-top: 7px;
    color: #667085;
    font-size: 14px;
}

.owner-hero-actions {
    align-self: stretch;
    align-items: center;
    border: 1px solid #e1e8f2;
    border-radius: 12px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.owner-hero-actions a {
    min-width: 96px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    padding: 0 13px;
    background: transparent;
    color: #566170;
    font-size: 13px;
    transition: background-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.owner-hero-actions a:hover {
    background: #f4f8ff;
    color: #1f4f9f;
}

.owner-hero-actions a.active {
    border-color: transparent;
    background: #ffffff;
    color: #1f6feb;
    box-shadow: 0 6px 18px rgba(31, 111, 235, 0.14);
}

.owner-message-card {
    border-color: rgba(220, 227, 236, 0.92);
    border-radius: 14px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 252, 255, 0.97));
    box-shadow: 0 12px 28px rgba(31, 53, 82, 0.075);
}

.owner-card-head {
    gap: 11px;
    margin-bottom: 12px;
}

.owner-card-head > span {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: linear-gradient(135deg, #eef6ff, #f7fbff);
    box-shadow: inset 0 0 0 1px rgba(83, 148, 235, 0.14);
}

.owner-card-head .icon {
    width: 18px;
    height: 18px;
}

.owner-card-head h2 {
    font-size: 17px;
}

.owner-card-head p {
    margin-top: 3px;
    color: #717b88;
    font-size: 12px;
}

.owner-binding-card {
    margin: 14px 0;
    padding: 16px 18px;
}

.owner-binding-body {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    border-top: 1px solid #eef3f8;
    padding-top: 12px;
}

.owner-binding-body code {
    margin-top: 7px;
    border-color: #dce9f8;
    border-radius: 9px;
    padding: 8px 11px;
    background: #f8fbff;
    font-size: 13px;
}

.owner-binding-body button {
    height: 34px;
    border-radius: 8px;
    background: #1f6feb;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(31, 111, 235, 0.18);
}

.owner-binding-body button:disabled {
    cursor: not-allowed;
    border-color: #d7dee8;
    background: #eef2f6;
    color: #64748b;
    box-shadow: none;
}

.owner-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.owner-stat-grid article {
    position: relative;
    overflow: hidden;
    min-height: 96px;
    border-radius: 13px;
    padding: 14px 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(31, 53, 82, 0.07);
}

.owner-stat-grid article::after {
    content: "";
    position: absolute;
    right: -20px;
    top: -24px;
    width: 78px;
    height: 78px;
    border-radius: 28px;
    background: rgba(31, 111, 235, 0.08);
    transform: rotate(18deg);
}

.owner-stat-grid strong {
    margin: 7px 0 4px;
    font-size: 28px;
}

.owner-console-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 14px;
}

.owner-message-form {
    gap: 12px;
}

.owner-message-form .owner-field {
    gap: 6px;
    color: #4b5563;
    font-size: 12px;
}

.owner-message-form input,
.owner-message-form select,
.owner-message-form textarea {
    border-color: #dce3ec;
    border-radius: 9px;
    background: #fbfcff;
}

.owner-message-form input,
.owner-message-form select {
    height: 36px;
}

.owner-rich-editor {
    gap: 7px;
}

.owner-rich-editor .ck.ck-editor {
    overflow: hidden;
    border: 1px solid #dce3ec;
    border-radius: 12px;
    background: #ffffff;
}

.owner-rich-editor .ck.ck-toolbar {
    border-width: 0 0 1px;
    border-color: #edf1f6;
    background: #f8fafc;
}

.owner-rich-editor .ck.ck-editor__main > .ck-editor__editable {
    min-height: 270px;
    border: 0;
    padding: 18px 20px;
}

.owner-rich-editor .ck.ck-editor__editable.ck-focused {
    box-shadow: none;
}

.owner-form-row {
    grid-template-columns: 160px minmax(0, 1fr);
}

.owner-form-footer {
    margin-top: 0;
    padding-top: 12px;
}

.owner-message-form button,
.owner-table button,
.owner-user-search button,
.owner-user-search a {
    border-radius: 8px;
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
}

.owner-message-form button {
    border-color: #1f6feb;
    background: #1f6feb;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(31, 111, 235, 0.18);
}

.owner-message-form .owner-tree-file {
    border-color: transparent;
    background: #ffffff;
    color: #334155;
    box-shadow: none;
}

.owner-message-form .owner-tree-file:hover,
.owner-message-form .owner-tree-file.drag-target {
    background: #f1f7ff;
    color: #263141;
}

.owner-message-form .owner-tree-file.selected {
    background: #eef6ff;
    color: #263141;
    box-shadow: inset 0 0 0 2px rgba(31, 111, 235, 0.24);
}

.owner-message-form .owner-tree-name {
    color: #263141;
}

.owner-message-form .owner-tree-path {
    color: #8391a3;
}

.owner-table button {
    border-color: #dce3ec;
    background: #ffffff;
}

.owner-table button.danger-button {
    border-color: #ffd3d3;
    background: #fff5f5;
    color: #b42318;
}

.owner-api-card {
    position: sticky;
    top: 18px;
}

.owner-api-card code,
.owner-api-note {
    border-radius: 10px;
}

.owner-api-card code {
    border-color: #dce3ec;
    background: #f8fafc;
    font-size: 12px;
    line-height: 1.6;
}

.owner-api-note {
    margin-top: 12px;
    background: #f5f8fc;
}

.owner-api-stats {
    margin-top: 13px;
    border-radius: 12px;
    padding: 13px;
    background: linear-gradient(135deg, #eff6ff, #f8fbff);
}

.owner-api-stats strong {
    color: #1f6feb;
}

.owner-message-list {
    margin-top: 14px;
    border-radius: 14px;
}

.owner-message-list .owner-card-head {
    padding: 18px 18px 0;
}

.owner-table {
    margin-top: 14px;
    border-color: #edf1f6;
}

.owner-table table {
    min-width: 920px;
}

.owner-table th {
    padding: 11px 14px;
    background: #f8fafc;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
}

.owner-table td {
    padding: 12px 14px;
}

.owner-table tr:hover td {
    background: #fbfdff;
}

.owner-table td strong {
    color: #202938;
    font-size: 14px;
}

.owner-table td span {
    color: #667085;
}

.owner-message-thumb {
    width: 138px;
    border-radius: 9px;
}

.owner-console-section-head {
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: none;
    margin: 0 0 10px;
    text-align: left;
}

.owner-console-section-head > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.owner-head-metrics {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.owner-head-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    border: 1px solid #e3eaf3;
    border-radius: 999px;
    padding: 0 11px;
    background: #ffffff;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.owner-head-metrics strong {
    color: #172233;
    font-size: 13px;
}

.owner-overview-rings article {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    min-height: 106px;
    padding: 14px;
    text-align: left;
}

.owner-overview-rings article > div {
    flex: 0 0 76px;
}

.owner-overview-rings em {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    color: #5d6673;
    font-size: 12px;
    line-height: 1.55;
    text-align: left;
}

.owner-storage-ring {
    grid-column: span 2;
}

.owner-storage-ring dl {
    flex: 1 1 auto;
    display: grid;
    gap: 6px;
    min-width: 0;
    margin: 0;
}

.owner-storage-ring dl > div {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
}

.owner-storage-ring dt,
.owner-storage-ring dd {
    margin: 0;
}

.owner-storage-ring dt {
    color: #7b8493;
    font-size: 12px;
    font-weight: 850;
}

.owner-storage-ring dd {
    overflow: hidden;
    color: #4b5565;
    font-size: 14px;
    font-weight: 900;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-message-table table,
.owner-update-table table {
    min-width: 1020px;
    table-layout: fixed;
}

.owner-message-table th,
.owner-message-table td,
.owner-update-table th,
.owner-update-table td {
    text-align: left;
    vertical-align: middle;
}

.owner-message-table th:nth-child(1) {
    width: 34%;
}

.owner-message-table th:nth-child(2) {
    width: 90px;
}

.owner-message-table th:nth-child(3) {
    width: 110px;
}

.owner-message-table th:nth-child(4) {
    width: 130px;
}

.owner-message-table th:nth-child(5) {
    width: 210px;
}

.owner-message-table th:nth-child(6) {
    width: 150px;
}

.owner-update-table th:nth-child(1) {
    width: 30%;
}

.owner-update-table th:nth-child(2) {
    width: 130px;
}

.owner-update-table th:nth-child(3) {
    width: 130px;
}

.owner-update-table th:nth-child(4) {
    width: 180px;
}

.owner-update-table th:nth-child(5) {
    width: 150px;
}

.owner-update-table th:nth-child(6) {
    width: 150px;
}

.owner-message-table .owner-level,
.owner-message-table .owner-state,
.owner-update-table .owner-level,
.owner-update-table .owner-state {
    display: inline-flex;
    width: auto;
    margin: 0 6px 5px 0;
    white-space: nowrap;
}

.owner-message-table td:last-child form,
.owner-update-table td:last-child form {
    display: inline-flex;
    margin: 0 6px 6px 0;
}

.owner-message-table td:last-child,
.owner-update-table td:last-child {
    text-align: right;
}

.owner-message-table td:first-child strong,
.owner-update-table td:first-child strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-message-table td:first-child span,
.owner-update-table td:first-child span {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.owner-user-list {
    margin-top: 14px;
}

.owner-user-search {
    align-items: center;
    margin-top: 14px;
    border: 1px solid #e4eaf2;
    border-radius: 12px;
    padding: 8px;
    background: #f8fafc;
}

.owner-user-search input {
    height: 36px;
    border-color: transparent;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #e0e7f0;
}

.owner-user-search button {
    border-color: #1f6feb;
    background: #1f6feb;
    color: #ffffff;
}

.owner-users-table {
    margin-top: 14px;
}

.owner-users-table code {
    max-width: 220px;
    background: #eef6ff;
}

.owner-storage-bar {
    width: min(220px, 100%);
    height: 8px;
    overflow: hidden;
    margin: 6px 0;
    border-radius: 999px;
    background: #e8eef6;
}

.owner-storage-bar span {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #1f6feb, #22c55e);
}

.owner-user-cell {
    min-width: 180px;
}

.owner-level,
.owner-state {
    padding: 4px 10px;
}

.admin-search {
    display: flex;
    gap: 10px;
    padding: 16px;
}

.admin-search input {
    min-width: 0;
    flex: 1;
    height: 36px;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    padding: 0 12px;
    font: inherit;
}

.admin-table {
    overflow: auto;
}

.admin-table table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #ececec;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: #666666;
    font-size: 13px;
    background: #f7f9fc;
}

.admin-table td span {
    display: block;
    margin-top: 4px;
    color: #858585;
    font-size: 13px;
}

.admin-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-users-table table {
    min-width: 1080px;
}

.admin-users-table th,
.admin-users-table td {
    padding: 10px 12px;
    vertical-align: middle;
}

.admin-users-table th:nth-child(1) {
    width: 250px;
}

.admin-users-table th:nth-child(2) {
    width: 260px;
}

.admin-users-table th:nth-child(3) {
    width: 390px;
}

.admin-users-table th:nth-child(4) {
    width: 360px;
}

.admin-users-table th:nth-child(5) {
    width: 110px;
}

.admin-users-table .menu-avatar {
    width: 42px;
    height: 42px;
}

.admin-users-table .admin-user-cell strong {
    display: block;
    color: #303030;
    font-size: 15px;
    line-height: 1.25;
}

.admin-users-table .admin-user-cell span {
    max-width: 165px;
    overflow: hidden;
    margin-top: 2px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-users-table td:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
}

.admin-users-table td:nth-child(2) span {
    margin: 0;
    color: #737373;
    font-size: 12px;
    line-height: 1.35;
}

.admin-users-table .inline-admin-form {
    grid-template-columns: 120px 110px 82px;
}

.admin-users-table .inline-admin-form select,
.admin-users-table .inline-admin-form button {
    height: 32px;
}

.admin-users-table .points-form {
    grid-template-columns: 84px 86px 1fr 64px;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.admin-users-table .points-form + .points-form {
    margin-top: 6px;
}

.admin-users-table .points-form strong {
    font-size: 13px;
    white-space: nowrap;
}

.admin-users-table .points-form input,
.admin-users-table .points-form button {
    height: 30px;
    font-size: 13px;
}

.admin-users-table .points-form input {
    padding: 0 8px;
}

.admin-users-table .admin-actions {
    gap: 8px;
}

.admin-users-table .admin-actions a,
.admin-users-table .admin-actions button {
    height: 30px;
    min-width: 48px;
    padding: 0 10px;
    font-size: 13px;
}

.admin-owner-table table {
    min-width: 1120px;
}

.admin-owner-table th,
.admin-owner-table td {
    padding: 12px;
    vertical-align: top;
}

.admin-owner-table th:nth-child(1) {
    width: 250px;
}

.admin-owner-table th:nth-child(2) {
    width: 300px;
}

.admin-owner-table th:nth-child(3) {
    width: 240px;
}

.admin-owner-table th:nth-child(4) {
    width: 230px;
}

.admin-owner-table th:nth-child(5) {
    width: 170px;
}

.admin-owner-table .inline-admin-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch;
}

.admin-owner-table .role-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-owner-table .role-checkbox-group label {
    height: 28px;
    padding: 0 9px;
    font-size: 12px;
}

.admin-owner-table .inline-admin-form select,
.admin-owner-table .inline-admin-form button,
.admin-owner-table .points-form input,
.admin-owner-table .points-form button {
    width: 100%;
    height: 32px;
}

.admin-owner-table .points-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.admin-owner-table .points-form span {
    grid-column: 1 / -1;
    margin: 0;
}

.admin-owner-table .admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}

.admin-owner-table .admin-actions a {
    min-width: 74px;
    height: 32px;
    justify-content: center;
    padding: 0 10px;
    white-space: nowrap;
}

.storage-admin-grid {
    display: grid;
    grid-template-columns: minmax(680px, 1.55fr) minmax(360px, .75fr);
    align-items: start;
    gap: 24px;
    margin-bottom: 22px;
}

.storage-node-form {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(180px, .65fr) minmax(260px, 1fr) minmax(260px, 1fr);
    gap: 18px 20px;
    align-items: end;
    overflow: visible;
}

.storage-node-form label,
.storage-node-form label:nth-of-type(2),
.storage-node-form label:nth-of-type(3) {
    grid-column: auto;
    min-width: 0;
}

.storage-node-form label:nth-of-type(2),
.storage-node-form label:nth-of-type(3),
.storage-node-form label:nth-of-type(4) {
    grid-column: span 1;
}

.storage-node-form label span {
    white-space: normal;
    line-height: 1.35;
}

.storage-node-form input {
    width: 100%;
    min-width: 0;
}

.storage-node-form .switch-row {
    grid-column: span 1;
    min-height: 54px;
    align-self: end;
    justify-content: flex-start;
}

.storage-node-form .auth-submit {
    grid-column: span 1;
    width: 100%;
    min-width: 0;
    align-self: end;
}

.storage-node-form .logout-link {
    align-self: end;
    justify-self: start;
}

.storage-help-card {
    align-self: start;
    min-width: 0;
    overflow-wrap: anywhere;
}

.storage-help-card h2 {
    margin-bottom: 14px;
}

.storage-help-card code {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    background: #f3f6fb;
    color: #174ea6;
    line-height: 1.4;
}

.storage-step-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.storage-step-list li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.storage-step-list li > span {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef4ff;
    color: #1d4ed8;
    font-weight: 800;
}

.storage-step-list p {
    margin: 4px 0 0;
    color: #59677d;
    line-height: 1.55;
    word-break: normal;
    overflow-wrap: anywhere;
}

.storage-node-table td > span,
.storage-node-table td > strong {
    display: block;
    margin-bottom: 5px;
}

.storage-node-table .admin-actions {
    align-items: flex-start;
    gap: 8px;
}

.storage-node-table .admin-actions form {
    margin: 0;
}

.storage-node-table table {
    table-layout: fixed;
}

.storage-node-table th:nth-child(1) {
    width: 28%;
}

.storage-node-table th:nth-child(2) {
    width: 22%;
}

.storage-node-table th:nth-child(3),
.storage-node-table th:nth-child(4) {
    width: 18%;
}

.storage-node-table th:nth-child(5) {
    width: 14%;
}

.storage-node-table td {
    overflow-wrap: anywhere;
}

.inline-admin-form {
    display: grid;
    grid-template-columns: 130px 120px 110px auto;
    align-items: center;
    gap: 10px;
}

.inline-admin-form select,
.admin-resource-form select,
.admin-resource-form input {
    height: 36px;
    min-width: 0;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    padding: 0 10px;
    background: #ffffff;
    font: inherit;
}

.danger-button {
    border-color: #ffd1d1;
    background: #fff7f7;
    color: #b42318;
}

.danger-button:disabled,
.inline-admin-form button:disabled,
.inline-admin-form select:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.admin-resource-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    gap: 12px;
    padding: 16px;
}

.admin-resource-form label {
    display: grid;
    gap: 7px;
    color: #555555;
    font-size: 13px;
    font-weight: 700;
}

.admin-resource-form label:nth-of-type(2),
.admin-resource-form label:nth-of-type(3),
.admin-wide {
    grid-column: span 2;
}

.admin-resource-form .auth-submit {
    align-self: end;
    height: 36px;
}

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

.admin-actions a {
    color: var(--blue);
    font-weight: 700;
}

.admin-actions form {
    margin: 0;
}

.resource-actions-cell {
    flex-wrap: wrap;
    align-items: flex-start;
    min-width: 260px;
}

.resource-actions-cell button {
    height: 32px;
}

.reject-form {
    display: inline-flex;
    gap: 6px;
}

.reject-form input {
    width: 116px;
    height: 32px;
    border: 1px solid #ffd1d1;
    border-radius: 7px;
    padding: 0 8px;
    font: inherit;
}

.status-badge {
    display: inline-flex !important;
    width: max-content;
    margin: 0 !important;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px !important;
    font-weight: 700;
}

.status-pending {
    background: #fff8e1;
    color: #8a5a00 !important;
}

.status-published {
    background: #eefbf2;
    color: #247044 !important;
}

.status-draft {
    background: #f1f3f6;
    color: #5d6673 !important;
}

.status-rejected {
    background: #fff1f1;
    color: #b42318 !important;
}

.logout-link {
    color: #777777;
    font-weight: 700;
}

.logout-link:hover {
    color: #b42318;
}

.thumb-chest {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
        repeating-linear-gradient(0deg, transparent 0 20px, rgba(70, 70, 70, 0.18) 20px 22px),
        repeating-linear-gradient(90deg, transparent 0 20px, rgba(70, 70, 70, 0.18) 20px 22px),
        linear-gradient(135deg, #d6d6d6, #9d9d9d 42%, #ececec 42% 60%, #8f8f8f);
}

.thumb-duck {
    background-image:
        radial-gradient(circle at 42% 32%, #23aa38 0 21%, transparent 22%),
        radial-gradient(circle at 55% 40%, #ffe03b 0 15%, transparent 16%),
        linear-gradient(135deg, #f8faf8, #d9e5ff);
}

.thumb-keys {
    background-image:
        linear-gradient(90deg, rgba(255,255,255,.85) 0 22%, transparent 22% 28%, rgba(255,255,255,.85) 28% 50%, transparent 50% 56%, rgba(255,255,255,.85) 56% 78%, transparent 78%),
        linear-gradient(135deg, #503b2c, #2c2119);
}

.thumb-village {
    background-image:
        radial-gradient(circle at 32% 52%, #927748 0 13%, transparent 14%),
        radial-gradient(circle at 62% 44%, #987948 0 14%, transparent 15%),
        linear-gradient(180deg, #a8c9e8 0 50%, #6da4c3 51% 100%);
}

.thumb-apple {
    background-image:
        radial-gradient(circle at 52% 45%, #ffe58a 0 22%, #f6a326 23% 33%, transparent 34%),
        repeating-linear-gradient(45deg, #ffd73d 0 16px, #e8a814 16px 32px);
}

.thumb-gems {
    background-image:
        linear-gradient(rgba(0,0,0,.24), rgba(0,0,0,.24)),
        repeating-linear-gradient(90deg, #4d5771 0 28px, #78936c 28px 56px, #b06d83 56px 84px, #303642 84px 112px);
}

.thumb-parkour {
    background-image:
        linear-gradient(155deg, transparent 0 44%, rgba(0,0,0,.72) 45% 56%, transparent 57%),
        linear-gradient(20deg, #ffffff 0 28%, #2d65db 29% 56%, #f8f8f8 57% 100%);
}

.thumb-input {
    background-image:
        linear-gradient(155deg, transparent 0 46%, #1f1f1f 47% 49%, transparent 50%),
        linear-gradient(25deg, transparent 0 48%, #1f1f1f 49% 51%, transparent 52%),
        linear-gradient(#ffffff, #f5f5f5);
}

.thumb-neoforge {
    background-image:
        linear-gradient(90deg, #ef8e2e 0 40%, #f3f3f3 40% 46%, #77818a 46% 100%);
}

.thumb-pyrite {
    background-image:
        radial-gradient(circle at 50% 45%, #f5de7b 0 26%, transparent 27%),
        linear-gradient(135deg, #101010, #343434);
}

.thumb-crop {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
        linear-gradient(160deg, #d7c2a4 0 38%, #7b4f31 39% 58%, #4b7e35 59% 100%);
}

.thumb-book {
    background-image:
        radial-gradient(circle at 80% 58%, #e7f7d1 0 13%, transparent 14%),
        linear-gradient(135deg, #248344 0 45%, #8dd05f 46% 100%);
}

.owner-console-section-head {
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
}

.owner-console-section-head > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.owner-head-metrics {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.owner-head-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    border: 1px solid #e3eaf3;
    border-radius: 999px;
    padding: 0 11px;
    background: #ffffff;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.owner-head-metrics strong {
    color: #172233;
    font-size: 13px;
}

.owner-overview-rings article {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    min-height: 106px;
    padding: 14px;
    text-align: left;
}

.owner-overview-rings article > div {
    flex: 0 0 76px;
}

.owner-overview-rings em {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    color: #5d6673;
    font-size: 12px;
    line-height: 1.55;
    text-align: left;
}

.owner-message-table table,
.owner-update-table table {
    min-width: 1020px;
    table-layout: fixed;
}

.owner-message-table th,
.owner-message-table td,
.owner-update-table th,
.owner-update-table td {
    text-align: left;
    vertical-align: middle;
}

.owner-message-table th:nth-child(1) { width: 34%; }
.owner-message-table th:nth-child(2) { width: 90px; }
.owner-message-table th:nth-child(3) { width: 110px; }
.owner-message-table th:nth-child(4) { width: 130px; }
.owner-message-table th:nth-child(5) { width: 210px; }
.owner-message-table th:nth-child(6) { width: 150px; }

.owner-update-table th:nth-child(1) { width: 30%; }
.owner-update-table th:nth-child(2) { width: 130px; }
.owner-update-table th:nth-child(3) { width: 130px; }
.owner-update-table th:nth-child(4) { width: 180px; }
.owner-update-table th:nth-child(5) { width: 150px; }
.owner-update-table th:nth-child(6) { width: 150px; }

.owner-message-table .owner-level,
.owner-message-table .owner-state,
.owner-update-table .owner-level,
.owner-update-table .owner-state {
    display: inline-flex;
    width: auto;
    margin: 0 6px 5px 0;
    white-space: nowrap;
}

.owner-message-table td:last-child,
.owner-update-table td:last-child {
    text-align: right;
}

.owner-message-table td:last-child form,
.owner-update-table td:last-child form {
    display: inline-flex;
    margin: 0 6px 6px 0;
}

.owner-message-table td:first-child strong,
.owner-update-table td:first-child strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-message-table td:first-child span,
.owner-update-table td:first-child span {
    max-width: 100%;
    overflow-wrap: anywhere;
}

body.sidebar-collapsed .app-shell {
    grid-template-columns: 0px minmax(0, 1fr);
}

body.sidebar-collapsed .sidebar {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-100%);
    border-color: transparent;
}

body.sidebar-collapsed .content {
    grid-column: 2;
}

@media (max-width: 1240px) {
    .owner-overview-dashboard {
        grid-template-columns: 1fr;
    }

    .owner-overview-rings {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .app-shell {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .topbar {
        grid-template-columns: 180px minmax(180px, 1fr) auto;
        gap: 18px;
        padding: 0 18px;
    }

    .brand-wrap {
        gap: 16px;
    }

    .brand {
        font-size: 23px;
    }

    .auth-nav {
        gap: 22px;
    }

    .content {
        padding: 24px 28px 50px;
    }

    .content.auth-content {
        padding: 0 28px;
    }

    .home-hero {
        grid-template-columns: 1fr;
    }

    .launcher-feature {
        grid-template-columns: 1fr;
    }

    .home-login-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-qq-login-button {
        width: 100%;
    }

    .launcher-showcase {
        min-height: 300px;
    }

    .home-visual {
        min-height: 190px;
    }

    .home-category-dock {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .submit-step-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ownership-row,
    .dependency-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .storage-node-form {
        grid-template-columns: 1fr;
    }

    .storage-node-form .switch-row,
    .storage-node-form .auth-submit {
        grid-column: auto;
    }

    .storage-node-table {
        overflow-x: auto;
    }

    .storage-node-table table {
        min-width: 860px;
    }

    .app-shell {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .topbar {
        position: sticky;
        top: 0;
        min-height: 66px;
        height: auto;
        grid-template-columns: auto 1fr auto;
        gap: 12px;
        padding: 10px 14px;
    }

    .brand-wrap {
        gap: 10px;
    }

    .brand {
        font-size: 22px;
    }

    .search {
        grid-column: 1 / -1;
        height: 42px;
    }

    .auth-nav {
        gap: 16px;
        padding: 0;
        font-size: 14px;
    }

    .sidebar {
        display: none;
        position: fixed;
        top: 66px;
        left: 0;
        bottom: 0;
        width: 240px;
        z-index: 4;
        box-shadow: 8px 0 20px rgba(0, 0, 0, 0.12);
    }

    body.mobile-nav-open .sidebar {
        display: block;
    }

    .content {
        grid-column: 1;
        grid-row: 2;
        padding: 22px 16px 44px;
    }

    .content.auth-content {
        padding: 20px 16px 32px;
    }

    .section-head {
        margin-bottom: 22px;
    }

    .launcher-feature {
        padding: 20px;
    }

    .home-login-strip {
        padding: 16px;
    }

    .home-login-copy {
        align-items: flex-start;
    }

    .home-login-copy h1 {
        font-size: 21px;
    }

    .home-login-copy p {
        font-size: 13px;
        line-height: 1.55;
    }

    .launcher-feature h1 {
        font-size: 27px;
    }

    .launcher-showcase {
        display: grid;
        gap: 12px;
        min-height: 0;
    }

    .launcher-showcase img {
        position: static;
        width: 100%;
        transform: none !important;
        opacity: 1;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-stats {
        grid-template-columns: 1fr 1fr;
    }

    .resource-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .works-showcase-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-hero {
        min-height: auto;
        padding: 22px;
    }

    .home-hero h1 {
        font-size: 26px;
    }

    .home-visual {
        display: none;
    }

    .home-category-dock {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .submit-workflow-head,
    .submit-final-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .submit-step-nav {
        position: static;
        grid-template-columns: 1fr 1fr;
    }

    .submit-field-grid,
    .submit-confirm-grid,
    .ownership-row,
    .dependency-row {
        grid-template-columns: 1fr;
    }

    .works-showcase {
        padding: 16px;
    }

    .resource-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }

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

    .resource-browser {
        grid-template-columns: 1fr;
    }

    .resource-filter {
        position: static;
        max-height: none;
    }

    .filter-dropdown {
        flex: 1 1 150px;
    }

    .filter-option-list {
        width: min(280px, calc(100vw - 42px));
    }

    .detail-overview {
        grid-template-columns: 1fr;
    }

    .detail-side-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resource-detail-cover {
        min-height: 180px;
    }

    .resource-meta {
        grid-template-columns: 1fr;
    }

    .wiki-comment-item {
        grid-template-columns: 1fr;
    }

    .comment-editor-avatar {
        width: 38px;
        height: 38px;
    }

    .comment-author-side {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        justify-items: start;
        align-items: center;
    }

    .comment-author-side strong {
        max-width: none;
        text-align: left;
    }

    .comment-actions {
        align-items: stretch;
    }

    .comment-actions .reject-form {
        width: 100%;
        flex-wrap: wrap;
    }

    .comment-actions .reject-form input {
        flex: 1 1 170px;
    }

    .comment-edit form,
    .comment-report form {
        min-width: 0;
    }

    .resource-cover {
        height: 112px;
    }

    .topic-card-head {
        padding: 0 18px;
    }

    .topic-card-head h2 {
        font-size: 16px;
    }

    .profile-card,
    .auth-card {
        padding: 22px;
    }

    .profile-summary {
        align-items: flex-start;
    }

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

    .user-grid,
    .member-stats {
        grid-template-columns: 1fr;
    }

    .member-hero {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .profile-actions .auth-submit {
        width: 100%;
    }

    .admin-head,
    .admin-search {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-tabs {
        width: 100%;
    }

    .admin-tabs a {
        flex: 1;
    }

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

    .storage-admin-grid {
        grid-template-columns: 1fr;
    }

    .storage-node-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-resource-form label:nth-of-type(2),
    .admin-resource-form label:nth-of-type(3),
    .admin-wide {
        grid-column: auto;
    }

    .owner-entry-hero {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .owner-entry-copy {
        min-height: 0;
    }

    .owner-entry-copy h1 {
        font-size: 27px;
    }

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

    .owner-entry-actions a {
        width: 100%;
    }

    .owner-entry-grid {
        grid-template-columns: 1fr;
    }

    .owner-console-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .owner-head-metrics {
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-left: 0;
    }

    .owner-overview-primary .owner-binding-card {
        padding: 18px;
    }

    .owner-overview-primary .owner-binding-card .owner-binding-body {
        grid-template-columns: 1fr;
    }

    .owner-overview-primary .owner-binding-card .owner-binding-body form,
    .owner-overview-primary .owner-binding-card .owner-binding-body button {
        width: 100%;
    }

    .owner-console-add-button {
        width: 100%;
    }

    .owner-overview-rings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .owner-modal {
        padding: 12px;
    }

    .owner-modal-panel,
    .owner-modal-panel-wide {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
    }

    .owner-compose-toolbar,
    .owner-compose-grid {
        grid-template-columns: 1fr;
    }

    .owner-upload-progress-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .owner-tree-head {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .owner-tree-actions {
        width: 100%;
    }

    .owner-tree-actions button {
        flex: 1;
    }

    .owner-drop-zone {
        min-height: 220px;
    }

    .owner-tree-file {
        width: 100%;
    }

    .owner-tree-path {
        display: none;
    }

    .owner-console-standalone {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .owner-console-side {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
        padding: 10px;
    }

    .owner-console-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        margin-top: 0;
        padding-bottom: 2px;
    }

    .owner-console-nav a {
        flex: 0 0 auto;
    }

    .owner-console-side-footer {
        display: none;
    }

    .owner-console-area {
        grid-template-rows: auto minmax(0, 1fr);
    }

    .owner-console-top {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px;
    }

    .owner-console-top nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .owner-console-workspace {
        padding: 14px;
    }

    .owner-console-grid,
    .owner-form-row {
        grid-template-columns: 1fr;
    }

    .owner-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .owner-hero-actions {
        width: 100%;
    }

    .owner-hero-actions a {
        flex: 1;
    }

    .owner-stat-grid {
        grid-template-columns: 1fr;
    }

    .owner-binding-body {
        grid-template-columns: 1fr;
    }

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

    .owner-message-form button {
        width: 100%;
    }
}

/* Keep the redesigned plugin publishing flow above legacy editor styles. */
.editor-market-page .editor-review-panel {
    margin-top: 26px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e1e7ea;
    border-radius: 8px;
}

.editor-submit-page .editor-submit-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.editor-submit-page .editor-submit-form .editor-submit-card,
.editor-submit-page .editor-submit-form .editor-submit-confirm {
    grid-column: 1 / -1;
}

.editor-submit-page .editor-plugin-drop input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.editor-submit-page .editor-submit-confirm .auth-submit {
    grid-column: auto;
}

/* Compact market header and isolate it from global submit-button sizing. */
.editor-market-page .editor-market-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 28px;
    min-height: 0;
    padding: 24px 26px;
    overflow: visible;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #dfe6e9;
    border-left: 4px solid #167e9b;
    border-radius: 7px;
    box-shadow: 0 7px 22px rgba(35, 61, 70, .06);
}

.editor-market-page .editor-market-hero::after {
    display: none;
}

.editor-market-page .editor-market-hero-copy {
    width: auto;
    min-width: 0;
}

.editor-market-page .editor-market-eyebrow {
    margin-bottom: 5px;
    font-size: 10px;
}

.editor-market-page .editor-market-hero h1 {
    font-size: 26px;
    white-space: normal;
}

.editor-market-page .editor-market-hero p {
    max-width: 720px;
    margin: 7px 0 13px;
    font-size: 14px;
    line-height: 1.6;
}

.editor-market-page .editor-market-summary {
    gap: 18px;
    font-size: 12px;
}

.editor-market-page .editor-market-summary strong {
    font-size: 15px;
}

.editor-market-page .market-publish-link.auth-submit {
    grid-column: auto;
    width: auto !important;
    min-width: 126px;
    max-width: 170px;
    min-height: 40px;
    margin: 0;
    padding: 0 17px;
    align-self: center;
    justify-self: end;
    flex: 0 0 auto;
}

.resource-detail-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.resource-detail-edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    color: #176f89;
    font-size: 13px;
    font-weight: 800;
    background: #f1f8fa;
    border: 1px solid #c9dfe5;
    border-radius: 6px;
    white-space: nowrap;
}

.resource-detail-edit-button:hover {
    color: #fff;
    background: #167e9b;
    border-color: #167e9b;
}

.resource-update-note-field {
    display: grid;
    gap: 8px;
    padding: 18px;
    background: #f7fbfc;
    border: 1px solid #cfe2e7;
    border-radius: 7px;
}

.resource-update-note-field span {
    font-weight: 800;
}

.resource-update-note-field em {
    margin-left: 6px;
    color: #d14d4d;
    font-size: 12px;
    font-style: normal;
}

.resource-update-note-field textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
}

.resource-update-note-field small {
    color: #7b8a91;
}

.review-update-section {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #d8e5e9;
    border-radius: 8px;
}

.review-update-section-head,
.review-update-card-head,
.review-update-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.review-update-section-head h2,
.review-update-card-head h3 {
    margin: 0;
    color: #243842;
}

.review-update-section-head p,
.review-update-card-head p {
    margin: 4px 0 0;
    color: #7e8c93;
    font-size: 12px;
}

.review-update-section-head > span,
.review-update-card-head > div > span {
    display: inline-flex;
    padding: 4px 8px;
    color: #167e9b;
    font-size: 11px;
    font-weight: 800;
    background: #eaf6f8;
    border-radius: 4px;
}

.review-update-list {
    display: grid;
    gap: 14px;
}

.review-update-card {
    padding: 18px;
    background: #fff;
    border: 1px solid #dfe7ea;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(34, 59, 68, .05);
}

.review-update-card-head > div > span {
    margin-bottom: 6px;
}

.review-update-card-head > a {
    flex: 0 0 auto;
    color: #167e9b;
    font-size: 13px;
}

.review-update-note {
    margin-top: 14px;
    padding: 13px 15px;
    background: #f6fafb;
    border-left: 3px solid #167e9b;
}

.review-update-note strong {
    color: #31505b;
    font-size: 12px;
}

.review-update-note p {
    margin: 5px 0 0;
    color: #526871;
    line-height: 1.65;
}

.review-change-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.review-change-item {
    overflow: hidden;
    border: 1px solid #e1e7e9;
    border-radius: 6px;
}

.review-change-item h4 {
    margin: 0;
    padding: 9px 12px;
    color: #344b54;
    font-size: 13px;
    background: #f7f9fa;
    border-bottom: 1px solid #e5eaec;
}

.review-change-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-change-compare > div {
    min-width: 0;
    padding: 11px 12px;
}

.review-change-before {
    background: #fff8f8;
    border-right: 1px solid #efdede;
}

.review-change-after {
    background: #f3fbf6;
}

.review-change-compare span {
    display: block;
    margin-bottom: 5px;
    color: #8b969b;
    font-size: 11px;
    font-weight: 800;
}

.review-change-before span { color: #b05a5a; }
.review-change-after span { color: #2e8052; }

.review-change-compare p {
    max-height: 150px;
    margin: 0;
    overflow: auto;
    color: #41555e;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.review-update-actions {
    align-items: stretch;
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid #e6ebed;
}

.review-update-actions form {
    display: flex;
    flex: 1 1 0;
    gap: 8px;
}

.review-update-actions input {
    min-width: 0;
    flex: 1;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d8e1e4;
    border-radius: 5px;
}

.review-update-actions button {
    min-height: 38px;
    padding: 0 14px;
    color: #fff;
    background: #167e9b;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}

.review-update-actions .danger-button {
    background: #b84f4f;
}

@media (max-width: 720px) {
    .editor-market-page .editor-market-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 20px;
    }

    .editor-market-page .market-publish-link.auth-submit {
        width: 100% !important;
        max-width: none;
        justify-self: stretch;
    }

    .resource-detail-head { grid-template-columns: 1fr; }
    .resource-detail-edit-button { width: 100%; }
    .review-update-section-head,
    .review-update-card-head,
    .review-update-actions { align-items: stretch; flex-direction: column; }
    .review-change-compare { grid-template-columns: 1fr; }
    .review-change-before { border-right: 0; border-bottom: 1px solid #efdede; }
    .review-update-actions form { width: 100%; flex-direction: column; }
}

@media (max-width: 460px) {
    .owner-overview-rings {
        grid-template-columns: 1fr;
    }

    .owner-storage-ring {
        grid-column: auto;
    }

    .owner-storage-ring dl > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .home-category-dock {
        grid-template-columns: 1fr;
    }

    .home-hero-actions a {
        width: 100%;
    }
}

.editor-market-page,
.editor-submit-page {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.editor-market-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.editor-market-head h1,
.editor-submit-page .form-head h1 {
    margin: 0;
    font-size: 26px;
}

.editor-market-head p,
.editor-submit-page .form-head p {
    margin: 7px 0 0;
    color: var(--muted);
}

.market-publish-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 106px;
}

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

.editor-plugin-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 116px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e3e7ea;
    border-radius: 8px;
}

.editor-plugin-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #eef5f7;
    color: #167e9b;
    font-size: 20px;
    font-weight: 700;
}

.editor-plugin-title {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.editor-plugin-title h2 {
    margin: 0;
    font-size: 16px;
}

.editor-plugin-title span,
.editor-plugin-meta {
    color: #9299a1;
    font-size: 12px;
}

.editor-plugin-body p {
    margin: 6px 0 9px;
    color: #697078;
    font-size: 13px;
    line-height: 1.55;
}

.editor-plugin-meta {
    display: flex;
    gap: 14px;
}

.editor-plugin-download {
    padding: 8px 14px;
    border: 1px solid #dce2e6;
    border-radius: 5px;
    color: #177f9c;
}

.editor-plugin-download:hover {
    background: #f1f7f8;
}

/* Editor plugin market, detail and publishing flow */
.editor-market-page,
.editor-submit-page,
.editor-plugin-detail-page {
    width: min(1220px, 100%);
}

.editor-market-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding: 30px 32px;
    overflow: hidden;
    color: #17252d;
    background: linear-gradient(115deg, #fff 0%, #f5fafb 64%, #edf6f8 100%);
    border: 1px solid #dce7ea;
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(28, 57, 67, .07);
}

.editor-market-hero::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 34%;
    opacity: .34;
    background: repeating-linear-gradient(135deg, transparent 0 14px, #d9e9ed 14px 15px);
    pointer-events: none;
}

.editor-market-hero-copy,
.market-publish-link {
    position: relative;
    z-index: 1;
}

.editor-market-eyebrow,
.editor-submit-hero > span,
.editor-plugin-detail-title > span {
    display: block;
    margin-bottom: 8px;
    color: #167e9b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
}

.editor-market-hero h1,
.editor-submit-hero h1,
.editor-plugin-detail-title h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.25;
}

.editor-market-hero p {
    max-width: 680px;
    margin: 10px 0 18px;
    color: #65747b;
    line-height: 1.75;
}

.editor-market-summary {
    display: flex;
    gap: 24px;
    color: #718087;
    font-size: 13px;
}

.editor-market-summary strong {
    margin-right: 4px;
    color: #243a44;
    font-size: 17px;
}

.market-publish-link {
    min-width: 130px;
    gap: 8px;
    flex: 0 0 auto;
    box-shadow: 0 8px 20px rgba(22, 126, 155, .16);
}

.market-publish-link > span {
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.editor-market-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #e1e7ea;
    border-radius: 7px;
}

.editor-market-search {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    background: #f7f9fa;
    border: 1px solid #e4e9eb;
    border-radius: 5px;
}

.editor-market-search > span {
    color: #7c8b92;
    font-size: 21px;
    line-height: 1;
}

.editor-market-search input {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
}

.editor-market-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 10px 0 13px;
    color: #7b878d;
    font-size: 12px;
    border-left: 1px solid #e5eaec;
}

.editor-market-sort select {
    min-width: 104px;
    height: 34px;
    border: 0;
    outline: 0;
    color: #354950;
    background: #fff;
}

.editor-market-toolbar > button {
    height: 40px;
    padding: 0 20px;
    color: #fff;
    background: #167e9b;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
}

.editor-market-grid {
    gap: 16px;
}

.editor-plugin-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 190px;
    padding: 0;
    overflow: hidden;
    border-color: #e0e6e9;
    box-shadow: 0 5px 18px rgba(30, 53, 61, .04);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.editor-plugin-card:hover {
    transform: translateY(-2px);
    border-color: #bfd8df;
    box-shadow: 0 13px 28px rgba(30, 65, 76, .09);
}

.editor-plugin-card-main {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    flex: 1;
    padding: 20px;
    color: inherit;
}

.editor-plugin-mark {
    width: 58px;
    height: 58px;
    border: 1px solid #d8e8ec;
    background: linear-gradient(145deg, #f3fafb, #e6f2f5);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .72);
}

.editor-plugin-title {
    align-items: center;
}

.editor-plugin-title h2 {
    color: #20343d;
    font-size: 17px;
}

.editor-plugin-title span {
    padding: 2px 7px;
    color: #167e9b;
    background: #edf7f9;
    border-radius: 3px;
}

.editor-plugin-body p {
    min-height: 42px;
    margin: 8px 0 12px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.editor-plugin-meta {
    flex-wrap: wrap;
    row-gap: 5px;
}

.editor-plugin-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 14px;
    background: #fafbfb;
    border-top: 1px solid #edf0f1;
}

.editor-plugin-card-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 13px;
    color: #53656d;
    border-radius: 4px;
}

.editor-plugin-card-actions .editor-plugin-download {
    color: #fff;
    background: #167e9b;
    border-color: #167e9b;
}

.editor-plugin-card-actions .editor-plugin-download:hover {
    background: #126d87;
}

.editor-market-empty {
    grid-column: 1 / -1;
    display: grid;
    gap: 6px;
    min-height: 180px;
    place-content: center;
}

.editor-market-empty strong {
    color: #344a53;
    font-size: 16px;
}

.editor-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.editor-section-head h2 {
    margin: 0;
    color: #263c45;
    font-size: 18px;
}

.editor-section-head p {
    margin: 5px 0 0;
    color: #89949a;
    font-size: 12px;
}

.editor-section-head > span {
    padding: 4px 9px;
    color: #167e9b;
    font-size: 12px;
    background: #edf7f9;
    border-radius: 4px;
}

.editor-review-panel {
    padding: 22px;
    background: #fff;
    border: 1px solid #e1e7ea;
    border-radius: 8px;
}

.editor-review-row form input {
    min-width: 170px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #dfe5e8;
    border-radius: 4px;
}

.editor-review-row button {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 4px;
}

.editor-plugin-detail-page {
    margin: 0 auto;
}

.editor-plugin-back,
.editor-submit-hero > a {
    display: inline-flex;
    margin-bottom: 14px;
    color: #718087;
    font-size: 13px;
}

.editor-plugin-detail-hero {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 30px;
    background: linear-gradient(120deg, #fff, #f3f9fa);
    border: 1px solid #dce7ea;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(31, 62, 73, .07);
}

.editor-plugin-detail-mark {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    color: #167e9b;
    font-size: 34px;
    font-weight: 800;
    background: #eaf5f7;
    border: 1px solid #d1e5ea;
    border-radius: 8px;
    box-shadow: inset 0 0 0 6px rgba(255,255,255,.65);
}

.editor-plugin-detail-title h1 {
    font-size: 28px;
}

.editor-plugin-detail-title > p {
    margin: 8px 0 13px;
    color: #687980;
}

.editor-plugin-detail-title > div {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #879299;
    font-size: 12px;
}

.editor-plugin-primary-download {
    display: grid;
    gap: 2px;
    min-width: 150px;
    padding: 12px 18px;
    color: #fff;
    text-align: left;
    background: #167e9b;
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(22, 126, 155, .2);
}

.editor-plugin-primary-download small {
    opacity: .78;
}

.editor-plugin-primary-download strong {
    font-size: 16px;
}

.editor-plugin-detail-actions {
    display: grid;
    gap: 9px;
    min-width: 170px;
}

.editor-plugin-detail-actions .editor-plugin-primary-download {
    width: 100%;
}

.editor-plugin-admin-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.editor-plugin-admin-actions a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    color: #48616b;
    font-size: 12px;
    font-weight: 800;
    background: #fff;
    border: 1px solid #cfdee3;
    border-radius: 5px;
    white-space: nowrap;
}

.editor-plugin-admin-actions a:hover {
    color: #fff;
    background: #167e9b;
    border-color: #167e9b;
}

.editor-plugin-meta-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.editor-plugin-meta-fields label {
    display: grid;
    gap: 7px;
}

.editor-plugin-meta-fields input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #dce3e6;
    border-radius: 5px;
}

.editor-plugin-meta-fields .admin-wide {
    grid-column: 1 / -1;
}

.editor-plugin-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    align-items: start;
    gap: 18px;
    margin-top: 18px;
}

.editor-plugin-description,
.editor-plugin-facts,
.editor-plugin-versions,
.editor-my-submissions {
    padding: 22px;
    background: #fff;
    border: 1px solid #e1e7ea;
    border-radius: 8px;
}

.editor-plugin-description .resource-detail-text {
    min-height: 240px;
    margin-top: 20px;
    padding: 0;
    border: 0;
}

.editor-description-empty {
    display: grid;
    min-height: 180px;
    place-items: center;
    color: #9aa3a8;
}

.editor-plugin-facts h2 {
    margin: 0 0 14px;
    font-size: 17px;
}

.editor-plugin-facts dl {
    margin: 0;
}

.editor-plugin-facts dl > div {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #edf0f1;
}

.editor-plugin-facts dt {
    color: #8a959b;
    font-size: 12px;
}

.editor-plugin-facts dd {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #40545d;
    font-size: 13px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-plugin-versions {
    margin-top: 18px;
}

.editor-version-list {
    margin-top: 14px;
    border-top: 1px solid #e9edef;
}

.editor-version-list article {
    display: grid;
    grid-template-columns: 34px minmax(170px, 1fr) auto 76px;
    align-items: center;
    gap: 14px;
    min-height: 66px;
    border-bottom: 1px solid #edf0f1;
}

.editor-version-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #167e9b;
    font-size: 11px;
    background: #edf7f9;
    border-radius: 5px;
}

.editor-version-list article > div:nth-child(2) {
    display: grid;
    gap: 3px;
}

.editor-version-list article > div:nth-child(2) span,
.editor-version-meta {
    color: #8a959b;
    font-size: 12px;
}

.editor-version-meta {
    display: flex;
    gap: 16px;
}

.editor-version-list article > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    color: #167e9b;
    border: 1px solid #cfe0e5;
    border-radius: 4px;
}

.editor-plugin-not-found {
    width: min(600px, 100%);
    margin: 60px auto;
    padding: 50px;
    text-align: center;
    background: #fff;
    border: 1px solid #e1e7ea;
    border-radius: 8px;
}

.editor-submit-hero {
    padding: 6px 2px 22px;
    border-bottom: 1px solid #dfe6e9;
}

.editor-submit-hero > span {
    margin-top: 4px;
}

.editor-submit-hero p {
    margin: 9px 0 0;
    color: #77868d;
}

.editor-submit-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.editor-submit-card {
    padding: 22px;
    background: #fff;
    border: 1px solid #e1e7ea;
    border-radius: 8px;
}

.editor-submit-card-head {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 18px;
}

.editor-submit-card-head > span {
    width: 34px;
    height: 34px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: #167e9b;
    font-size: 12px;
    font-weight: 800;
    background: #edf7f9;
    border-radius: 5px;
}

.editor-submit-card-head h2 {
    margin: 0;
    color: #293e47;
    font-size: 17px;
}

.editor-submit-card-head p {
    margin: 5px 0 0;
    color: #89949a;
    font-size: 12px;
}

.editor-plugin-drop {
    min-height: 160px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px !important;
    cursor: pointer;
    background: #f9fbfb;
    border: 1px dashed #bcd1d7;
    border-radius: 7px;
    transition: background .18s ease, border-color .18s ease;
}

.editor-plugin-drop:hover {
    background: #f2f8f9;
    border-color: #6caabd;
}

.editor-plugin-drop input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.editor-plugin-drop-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #167e9b;
    font-size: 25px;
    background: #e7f3f6;
    border-radius: 50%;
}

.editor-plugin-drop strong {
    color: #3c515a;
    font-size: 15px;
}

.editor-plugin-drop small,
.editor-submit-summary small {
    color: #929ca1;
}

.editor-submit-summary {
    display: grid;
    gap: 7px;
    margin-bottom: 18px;
}

.editor-submit-summary input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #dce3e6;
    border-radius: 5px;
}

.editor-plugin-rich {
    display: block;
}

.editor-plugin-rich .rich-editor-label {
    display: block;
    margin-bottom: 7px;
}

.editor-submit-confirm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    background: #f1f7f8;
    border: 1px solid #d4e4e8;
    border-radius: 8px;
}

.editor-submit-confirm > div {
    display: grid;
    gap: 4px;
}

.editor-submit-confirm > div span {
    color: #7b8a90;
    font-size: 12px;
}

.editor-submit-confirm .auth-submit {
    grid-column: auto;
    min-width: 120px;
}

.editor-my-submissions {
    margin-top: 22px;
}

.editor-submission-table {
    margin-top: 14px;
}

.editor-submission-table td:first-child {
    display: grid;
    gap: 3px;
}

.editor-submission-table td:first-child span {
    color: #929ca1;
    font-size: 11px;
}

.editor-submission-status {
    display: inline-flex;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

.editor-submission-status.pending { color: #9a6b1c; background: #fff7e5; }
.editor-submission-status.published { color: #28764b; background: #eaf7ef; }
.editor-submission-status.rejected { color: #a94444; background: #fff0f0; }

@media (max-width: 900px) {
    .editor-plugin-detail-layout { grid-template-columns: 1fr; }
    .editor-plugin-detail-hero { grid-template-columns: 72px minmax(0, 1fr); }
    .editor-plugin-detail-mark { width: 72px; height: 72px; }
    .editor-plugin-detail-actions { grid-column: 1 / -1; width: 100%; }
    .editor-plugin-primary-download { width: 100%; }
    .editor-version-list article { grid-template-columns: 34px minmax(0, 1fr) 70px; padding: 10px 0; }
    .editor-version-meta { grid-column: 2 / -1; grid-row: 2; }
}

@media (max-width: 720px) {
    .editor-market-hero { align-items: stretch; flex-direction: column; padding: 22px; }
    .editor-market-hero::after { display: none; }
    .editor-market-hero h1, .editor-submit-hero h1 { font-size: 25px; }
    .market-publish-link { width: 100%; }
    .editor-market-toolbar { grid-template-columns: 1fr; }
    .editor-market-sort { border-left: 0; border-top: 1px solid #e5eaec; }
    .editor-market-sort select { flex: 1; }
    .editor-market-grid { grid-template-columns: 1fr; }
    .editor-plugin-card-main { grid-template-columns: 46px minmax(0, 1fr); padding: 16px; }
    .editor-plugin-mark { width: 46px; height: 46px; }
    .editor-plugin-detail-hero { grid-template-columns: 58px minmax(0, 1fr); padding: 20px; gap: 15px; }
    .editor-plugin-detail-mark { width: 58px; height: 58px; font-size: 24px; }
    .editor-plugin-detail-title h1 { font-size: 23px; }
    .editor-plugin-detail-title > div { gap: 8px 14px; }
    .editor-plugin-admin-actions,
    .editor-plugin-meta-fields { grid-template-columns: 1fr; }
    .editor-plugin-meta-fields .admin-wide { grid-column: auto; }
    .editor-version-meta { flex-wrap: wrap; gap: 5px 12px; }
    .editor-version-list article { grid-template-columns: 30px minmax(0, 1fr) 64px; gap: 9px; }
    .editor-version-list article > a { font-size: 12px; }
    .editor-submit-card, .editor-plugin-description, .editor-plugin-facts, .editor-plugin-versions, .editor-my-submissions { padding: 16px; }
    .editor-submit-confirm { align-items: stretch; flex-direction: column; }
    .editor-submit-confirm .auth-submit { width: 100%; }
    .editor-review-row, .editor-review-row form { align-items: stretch; flex-direction: column; }
    .editor-review-row form input { width: 100%; }
}

.editor-review-panel {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #e3e7ea;
}

.editor-review-panel h2 {
    font-size: 17px;
}

.editor-review-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f2;
}

.editor-review-row div,
.editor-review-row form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.editor-review-row span {
    color: var(--muted);
    font-size: 12px;
}

.editor-submit-page .form-head {
    margin-bottom: 20px;
}

.editor-submit-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e3e7ea;
    border-radius: 8px;
}

.editor-submit-form label {
    display: grid;
    gap: 7px;
    color: #555d65;
    font-size: 13px;
}

.editor-submit-form label:has(textarea),
.editor-submit-form .form-checkbox,
.editor-submit-form button {
    grid-column: 1 / -1;
}

.editor-submit-form input,
.editor-submit-form select,
.editor-submit-form textarea {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #dce1e5;
    border-radius: 5px;
    background: #fff;
    font: inherit;
}

.editor-submit-form .form-checkbox {
    display: flex;
    align-items: center;
}

.editor-submit-form .form-checkbox input {
    width: auto;
}

.editor-submission-table,
.editor-submit-page > .admin-table {
    margin-top: 22px;
}

.editor-updates-page {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.editor-updates-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}

.editor-updates-hero > div {
    min-width: 0;
    padding: 24px;
    border: 1px solid #dde6f2;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.96));
    box-shadow: 0 16px 42px rgba(45, 62, 92, .08);
}

.editor-updates-hero span,
.editor-release-current em {
    color: #64748b;
    font-style: normal;
    font-weight: 700;
}

.editor-updates-hero h1 {
    margin: 8px 0 8px;
    font-size: 30px;
    letter-spacing: 0;
}

.editor-updates-hero p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.editor-release-current {
    display: grid;
    align-content: center;
    gap: 8px;
}

.editor-release-current strong {
    font-size: 28px;
    color: #172033;
    word-break: break-word;
}

.editor-release-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.editor-release-stats article {
    padding: 18px;
    border: 1px solid #e3eaf3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(45, 62, 92, .06);
}

.editor-release-stats strong {
    display: block;
    font-size: 24px;
    color: #172033;
}

.editor-release-stats span {
    color: #64748b;
    font-weight: 700;
}

.editor-release-layout {
    display: grid;
    grid-template-columns: minmax(680px, 1.4fr) minmax(320px, .6fr);
    gap: 18px;
    align-items: start;
}

.editor-release-form,
.editor-release-guide,
.editor-release-list {
    border: 1px solid #e0e8f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(45, 62, 92, .07);
}

.editor-release-form {
    padding: 20px;
}

.editor-release-card-head,
.editor-release-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.editor-release-card-head h2,
.editor-release-list-head h2,
.editor-release-guide h2 {
    margin: 0;
    font-size: 20px;
}

.editor-release-card-head p,
.editor-release-list-head p {
    margin: 5px 0 0;
    color: #64748b;
}

.editor-release-card-head .auth-submit {
    width: auto;
    min-width: 120px;
}

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

.editor-release-fields label {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: #475569;
    font-weight: 800;
}

.editor-release-fields input,
.editor-release-fields select,
.editor-release-fields textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #d8e1ee;
    border-radius: 10px;
    padding: 11px 12px;
    background: #fff;
    font: inherit;
}

.editor-release-file,
.editor-release-notes,
.editor-release-required {
    grid-column: 1 / -1;
}

.editor-release-required {
    display: inline-flex !important;
    width: fit-content;
    align-items: center;
    grid-template-columns: auto auto;
}

.editor-release-required input {
    width: auto;
}

.editor-release-guide {
    padding: 20px;
}

.editor-release-guide ul {
    display: grid;
    gap: 14px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.editor-release-guide li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
}

.editor-release-guide li > span {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef4ff;
    color: #1d4ed8;
    font-weight: 900;
}

.editor-release-guide p {
    margin: 4px 0 0;
    color: #64748b;
    line-height: 1.6;
}

.editor-release-list {
    margin-top: 18px;
    padding: 20px;
}

.editor-release-table table {
    table-layout: fixed;
}

.editor-release-table th:nth-child(1) { width: 25%; }
.editor-release-table th:nth-child(2) { width: 12%; }
.editor-release-table th:nth-child(3) { width: 25%; }
.editor-release-table th:nth-child(4) { width: 14%; }
.editor-release-table th:nth-child(5) { width: 14%; }
.editor-release-table th:nth-child(6) { width: 10%; }

.editor-release-table td {
    vertical-align: top;
    overflow-wrap: anywhere;
}

.editor-release-table td strong,
.editor-release-table td span {
    display: block;
}

.editor-release-table td span {
    margin-top: 4px;
    color: #64748b;
}

.editor-release-channel,
.editor-release-required-badge {
    display: inline-flex !important;
    width: fit-content;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-weight: 900;
}

.editor-release-channel.stable {
    background: #ecfdf3;
    color: #027a48 !important;
}

.editor-release-channel.preview {
    background: #eff6ff;
    color: #1d4ed8 !important;
}

.editor-release-required-badge {
    margin-top: 6px;
    background: #fff7ed;
    color: #c2410c !important;
}

.editor-release-table form {
    margin: 0;
}

.editor-release-table button {
    min-width: 70px;
    height: 34px;
}

@media (max-width: 860px) {
    .editor-market-grid,
    .editor-submit-form {
        grid-template-columns: 1fr;
    }

    .editor-market-head,
    .editor-review-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 1100px) {
    .editor-release-layout,
    .editor-updates-hero {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .editor-release-stats,
    .editor-release-fields {
        grid-template-columns: 1fr;
    }

    .editor-release-card-head,
    .editor-release-list-head {
        align-items: stretch;
        flex-direction: column;
    }

    .editor-release-card-head .auth-submit {
        width: 100%;
    }

    .editor-release-table {
        overflow-x: auto;
    }

    .editor-release-table table {
        min-width: 860px;
    }
}

