:root {
    color-scheme: light;
    --ink: #251f19;
    --muted: #70685f;
    --line: #ded6c8;
    --paper: #f7f3eb;
    --surface: #ffffff;
    --gold: #c79a45;
    --deep: #2a2119;
    --green: #2d7055;
    --red: #b95745;
}

/* mi.com-inspired refinement: light gray canvas, white cards, centered product-like sections. */
:root {
    --ink: #191919;
    --muted: #6b6b6b;
    --line: #e6e6e6;
    --paper: #f5f5f5;
    --gold: #ff6900;
    --deep: #191919;
    --red: #ff6900;
    --soft: #fafafa;
}

.topbar {
    background: rgba(255, 255, 255, 0.94);
}

.brand-mark {
    background: var(--gold);
    color: white;
}

.hero {
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(245, 245, 245, 0.8) 52%, rgba(255, 105, 0, 0.08)),
        var(--paper);
}

.primary-action,
button[type="submit"] {
    border-color: var(--gold);
    background: var(--gold);
}

.overview-panel,
.content-card,
.timeline,
.task-panel,
.editor-panel,
.table-panel,
.contact-card {
    box-shadow: 0 12px 32px rgba(25, 25, 25, 0.06);
}

.metric-grid article,
.contact-steps span,
.wechat-panel {
    background: var(--soft);
}

.section-band,
.muted-band,
.team-section,
.contact-section {
    background: var(--paper);
}

.section-heading {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.content-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(25, 25, 25, 0.1);
}

.team-card {
    border-color: var(--line);
    box-shadow: 0 14px 34px rgba(25, 25, 25, 0.06);
}

.team-arrow {
    background: rgba(25, 25, 25, 0.1);
}

.team-arrow:hover {
    background: rgba(25, 25, 25, 0.18);
}

.contact-section {
    padding: 72px clamp(20px, 5vw, 72px);
}

.contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    align-items: center;
    gap: 36px;
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.contact-copy h2 {
    max-width: 760px;
}

.contact-copy .intro {
    max-width: 720px;
}

.contact-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.contact-steps span {
    min-height: 52px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 800;
    text-align: center;
}

.wechat-panel {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
}

.wechat-panel strong {
    font-size: 22px;
}

.wechat-panel p {
    margin-bottom: 0;
    color: var(--muted);
}

.qr-placeholder {
    display: grid;
    width: 192px;
    aspect-ratio: 1;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px;
    border: 10px solid white;
    border-radius: 8px;
    background: white;
    box-shadow: inset 0 0 0 1px var(--line);
}

.qr-placeholder span {
    border-radius: 4px;
    background: var(--ink);
}

.qr-placeholder span:nth-child(2),
.qr-placeholder span:nth-child(4),
.qr-placeholder span:nth-child(8) {
    background: var(--gold);
}

.qr-placeholder span:nth-child(5) {
    background: white;
    box-shadow: inset 0 0 0 10px var(--ink);
}

@media (max-width: 980px) {
    .contact-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .nav {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav a {
        min-width: 82px;
        flex: 0 0 auto;
    }

    .contact-section {
        padding: 42px 16px;
    }

    .contact-card {
        gap: 24px;
        padding: 22px;
    }

    .contact-steps {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .wechat-panel {
        padding: 18px;
    }

    .qr-placeholder {
        width: min(188px, 70vw);
    }
}

/* Final admin header/user editor and carousel polish. */
.admin-current-user {
    display: inline-flex !important;
    min-height: 36px !important;
    align-items: center !important;
    padding: 0 12px !important;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.admin-body .topbar {
    grid-template-columns: 180px minmax(0, 1fr) minmax(220px, 320px) !important;
}

.admin-body .topbar::after {
    content: none !important;
}

.admin-header-actions {
    grid-column: 3 !important;
    justify-self: end !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    min-width: 0 !important;
}

.admin-user-editor {
    margin: 0;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.admin-user-list-view.hidden,
.admin-user-editor.hidden {
    display: none !important;
}

.admin-head-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

/* Final user editor page layout. */
#users-panel.user-editing > .admin-panel-head {
    display: none !important;
}

#users-panel.user-editing {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

#users-panel.user-editing .admin-user-editor {
    width: min(760px, 100%) !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    border: 1px solid #e7e7e7 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 32px rgba(25, 25, 25, 0.05) !important;
}

#users-panel.user-editing .editor-head {
    margin: 0 !important;
    padding: 22px 24px !important;
}

#users-panel.user-editing .editor-head h2 {
    font-size: 28px !important;
    line-height: 1.2 !important;
}

#users-panel.user-editing .editor-fields {
    max-width: none !important;
    padding: 24px !important;
}

#users-panel.user-editing .editor-fields label {
    display: grid !important;
    gap: 8px !important;
}

#users-panel.user-editing .editor-fields input,
#users-panel.user-editing .editor-fields select {
    width: 100% !important;
    height: 44px !important;
}

#users-panel.user-editing .button-row {
    margin-top: 4px !important;
}

.banner-slider {
    cursor: grab;
    user-select: none;
}

.banner-slider.is-dragging {
    cursor: grabbing;
}

.banner-slide img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.team-arrow {
    top: calc(50% + 38px) !important;
    width: 46px !important;
    height: 46px !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 50% !important;
    background: rgba(25, 25, 25, 0.38) !important;
    color: #ffffff !important;
    backdrop-filter: blur(6px) !important;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease !important;
}

.team-arrow:hover {
    border-color: #ff6900 !important;
    background: #ff6900 !important;
    transform: translateY(-2px) !important;
}

.team-arrow span {
    transform: translateY(-2px) !important;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
    font-size: 34px !important;
    font-weight: 300 !important;
}

.team-arrow-left {
    left: max(18px, calc((100vw - 1240px) / 2 - 24px)) !important;
}

.team-arrow-right {
    right: max(18px, calc((100vw - 1240px) / 2 - 24px)) !important;
}

@media (max-width: 760px) {
    .admin-current-user {
        min-height: 32px !important;
        padding: 0 !important;
    }
}

/* Absolute final team arrow polish - keep at file end. */
.team-arrow {
    top: calc(50% + 38px) !important;
    width: 46px !important;
    height: 46px !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 50% !important;
    background: rgba(25, 25, 25, 0.38) !important;
    color: #ffffff !important;
    backdrop-filter: blur(6px) !important;
}

.team-arrow:hover {
    border-color: #ff6900 !important;
    background: #ff6900 !important;
    transform: translateY(-2px) !important;
}

.team-arrow span {
    transform: translateY(-2px) !important;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
    font-size: 34px !important;
    font-weight: 300 !important;
}

.team-arrow-left {
    left: max(18px, calc((100vw - 1240px) / 2 - 24px)) !important;
}

.team-arrow-right {
    right: max(18px, calc((100vw - 1240px) / 2 - 24px)) !important;
}

@media (max-width: 760px) {
    .team-arrow {
        display: none !important;
    }
}

/* 20260703 team member detail page. */
.team-detail-article {
    display: grid;
    gap: 24px;
}

.team-detail-hero {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    padding: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.team-detail-photo {
    width: 220px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(145deg, #e9eef5, #ffffff);
    color: #0f766e;
    font-size: 72px;
    font-weight: 800;
}

.team-detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-detail-head span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(45, 212, 191, 0.28);
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.12);
    color: #0f766e;
    font-size: 13px;
    font-weight: 800;
}

.team-detail-head h1 {
    margin: 18px 0 12px;
    color: #111827;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
}

.team-detail-head p {
    max-width: 760px;
    margin: 0;
    color: #475569;
    font-size: 18px;
    line-height: 1.8;
}

.team-detail-head time {
    display: block;
    margin-top: 18px;
    color: #94a3b8;
    font-size: 13px;
}

.team-detail-body {
    padding: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

@media (max-width: 760px) {
    .team-detail-hero {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .team-detail-photo {
        width: min(100%, 260px);
    }

    .team-detail-body {
        padding: 22px;
    }
}

/* Absolute final user editor layout - keep at true file end. */
#users-panel.user-editing {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#users-panel.user-editing > .admin-panel-head {
    display: none !important;
}

#users-panel.user-editing .admin-user-list-view {
    display: none !important;
}

#users-panel.user-editing .admin-user-editor {
    display: block !important;
    width: min(760px, 100%) !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    border: 1px solid #e7e7e7 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 32px rgba(25, 25, 25, 0.05) !important;
}

#users-panel.user-editing .editor-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 22px 24px !important;
    border-bottom: 1px solid #eeeeee !important;
}

#users-panel.user-editing .editor-head h2 {
    margin: 0 !important;
    color: #191919 !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}

#users-panel.user-editing .editor-fields {
    display: grid !important;
    max-width: none !important;
    gap: 16px !important;
    padding: 24px !important;
}

#users-panel.user-editing .editor-fields label {
    display: grid !important;
    gap: 8px !important;
}

#users-panel.user-editing .editor-fields label > span {
    color: #666666 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

#users-panel.user-editing .editor-fields input,
#users-panel.user-editing .editor-fields select {
    width: 100% !important;
    height: 44px !important;
    border-radius: 6px !important;
    font-size: 15px !important;
}

#users-panel.user-editing .check-row {
    display: inline-flex !important;
    width: fit-content !important;
    grid-template-columns: none !important;
    align-items: center !important;
    gap: 10px !important;
}

#users-panel.user-editing .check-row input {
    width: 18px !important;
    height: 18px !important;
}

#users-panel.user-editing .button-row {
    margin-top: 2px !important;
}

#users-panel.user-editing .button-row button {
    min-width: 132px !important;
    min-height: 44px !important;
    border-radius: 6px !important;
}

#users-panel.user-editing .form-note {
    margin: 0 !important;
    color: #777777 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

@media (max-width: 640px) {
    #users-panel.user-editing .editor-head {
        display: grid !important;
        padding: 18px !important;
    }

    #users-panel.user-editing .editor-fields {
        padding: 18px !important;
    }

    #users-panel.user-editing .editor-head h2 {
        font-size: 24px !important;
    }

    #users-panel.user-editing .admin-new-button.secondary {
        width: 100% !important;
    }

    #users-panel.user-editing .button-row button {
        width: 100% !important;
    }
}

/* Absolute final case-more alignment - keep at true file end. */
#cases .section-heading {
    width: min(1240px, calc(100% - 48px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-right: 0 !important;
    position: relative !important;
    text-align: center !important;
}

#cases .content-grid {
    width: min(1240px, calc(100% - 48px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

#cases #case-more {
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    width: auto !important;
    margin: 0 !important;
    display: grid !important;
    transform: translateY(-50%) !important;
}

#cases #case-more.hidden {
    display: none !important;
}

#cases #case-more a {
    width: auto !important;
    min-width: 174px !important;
    min-height: 46px !important;
    padding: 0 20px !important;
    border: 1px solid #eeeeee !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(25, 25, 25, 0.05) !important;
}

@media (max-width: 980px) {
    #cases .section-heading {
        display: grid !important;
        gap: 10px !important;
    }

    #cases #case-more {
        position: static !important;
        justify-self: center !important;
        transform: none !important;
    }
}

@media (max-width: 760px) {
    #cases .section-heading,
    #cases .content-grid {
        width: min(100% - 32px, 1240px) !important;
    }

    #cases .content-grid {
        grid-template-columns: 1fr !important;
    }

    #cases #case-more {
        width: 100% !important;
    }

    #cases #case-more a {
        width: 100% !important;
    }
}

/* Absolute final case-more alignment - keep at true file end. */
#cases .section-heading {
    width: min(1240px, calc(100% - 48px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-right: 0 !important;
    position: relative !important;
    text-align: center !important;
}

#cases .content-grid {
    width: min(1240px, calc(100% - 48px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

#cases #case-more {
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    width: auto !important;
    margin: 0 !important;
    display: grid !important;
    transform: translateY(-50%) !important;
}

#cases #case-more.hidden {
    display: none !important;
}

#cases #case-more a {
    width: auto !important;
    min-width: 174px !important;
    min-height: 46px !important;
    padding: 0 20px !important;
    border: 1px solid #eeeeee !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(25, 25, 25, 0.05) !important;
}

@media (max-width: 980px) {
    #cases .section-heading {
        display: grid !important;
        gap: 10px !important;
    }

    #cases #case-more {
        position: static !important;
        justify-self: center !important;
        transform: none !important;
    }
}

@media (max-width: 760px) {
    #cases .section-heading,
    #cases .content-grid {
        width: min(100% - 32px, 1240px) !important;
    }

    #cases .content-grid {
        grid-template-columns: 1fr !important;
    }

    #cases #case-more {
        width: 100% !important;
    }

    #cases #case-more a {
        width: 100% !important;
    }
}

/* Absolute final case-more alignment - keep at true file end. */
#cases .section-heading {
    width: min(1240px, calc(100% - 48px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-right: 0 !important;
    position: relative !important;
    text-align: center !important;
}

#cases .content-grid {
    width: min(1240px, calc(100% - 48px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

#cases #case-more {
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    width: auto !important;
    margin: 0 !important;
    display: grid !important;
    transform: translateY(-50%) !important;
}

#cases #case-more.hidden {
    display: none !important;
}

#cases #case-more a {
    width: auto !important;
    min-width: 174px !important;
    min-height: 46px !important;
    padding: 0 20px !important;
    border: 1px solid #eeeeee !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(25, 25, 25, 0.05) !important;
}

@media (max-width: 980px) {
    #cases .section-heading {
        display: grid !important;
        gap: 10px !important;
    }

    #cases #case-more {
        position: static !important;
        justify-self: center !important;
        transform: none !important;
    }
}

@media (max-width: 760px) {
    #cases .section-heading,
    #cases .content-grid {
        width: min(100% - 32px, 1240px) !important;
    }

    #cases .content-grid {
        grid-template-columns: 1fr !important;
    }

    #cases #case-more {
        width: 100% !important;
    }

    #cases #case-more a {
        width: 100% !important;
    }
}

/* Public content list/detail pages and admin rich text editor. */
.section-more {
    width: min(100% - 48px, 1240px);
    margin: 14px auto 0;
    display: grid;
}

.section-more a,
.back-link,
.pagination a,
.pagination span {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
}

.section-more a {
    width: 100%;
    min-height: 72px;
    padding: 0 24px;
    border: 1px solid #eeeeee;
    background: #ffffff;
    color: #191919;
    box-shadow: 0 10px 24px rgba(25, 25, 25, 0.04);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.section-more a:hover {
    border-color: #ff6900;
    background: #fff7f1;
    color: #ff6900;
    transform: translateY(-1px);
}

.section-more a::after {
    content: "›";
    margin-left: 8px;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.section-more a:hover::after {
    transform: translateX(4px);
}

#cases .section-heading {
    position: relative !important;
    padding-right: 220px !important;
}

#cases #case-more {
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    width: auto !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
}

#cases #case-more a {
    min-width: 172px !important;
    min-height: 46px !important;
    padding: 0 18px !important;
    border-color: #eeeeee !important;
    background: #ffffff !important;
    box-shadow: 0 8px 20px rgba(25, 25, 25, 0.04) !important;
}

#cases #case-more a:hover {
    border-color: #ff6900 !important;
    background: #fff7f1 !important;
}

#news #news-more {
    width: min(1240px, calc(100% - 48px)) !important;
    max-width: none !important;
}

#news #news-more a {
    min-height: 72px !important;
}

a.content-card,
a.news-item {
    color: inherit;
    text-decoration: none;
}

.public-page {
    width: min(100% - 48px, 1040px);
    margin: 0 auto;
    padding: 112px 0 72px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    color: #8a8a8a;
    font-size: 13px;
    font-weight: 800;
}

.breadcrumb a {
    color: #555555;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #ff6900;
}

.breadcrumb span {
    color: #b5b5b5;
}

.list-hero,
.detail-article {
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(25, 25, 25, 0.05);
}

.list-hero {
    position: relative;
    overflow: hidden;
    padding: 28px 34px;
    margin-bottom: 18px;
}

.list-hero::after {
    content: none;
}

.list-hero h1 {
    margin: 6px 0 10px;
    color: #191919;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.12;
}

.list-hero p:last-child {
    max-width: 620px;
    margin: 0;
    color: #666666;
    font-size: 16px;
    line-height: 1.8;
}

.public-list {
    display: grid;
    gap: 14px;
}

.public-list-item {
    display: grid;
    gap: 12px;
    padding: 26px;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.public-list-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.public-list-item:hover {
    border-color: #ff6900;
    transform: translateY(-2px);
}

.public-list-item span,
.detail-head span {
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 105, 0, 0.1);
    color: #ff6900;
    font-size: 13px;
    font-weight: 800;
}

.public-list-item h2 {
    margin: 0;
    color: #191919;
    font-size: clamp(20px, 3vw, 26px);
    line-height: 1.35;
}

.public-list-item p {
    margin: 0;
    color: #666666;
    font-size: 15px;
    line-height: 1.8;
}

.public-list-item time,
.detail-head time {
    color: #999999;
    font-size: 13px;
    font-weight: 700;
}

.public-list-item > strong {
    width: fit-content;
    color: #ff6900;
    font-size: 14px;
}

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

.pagination a,
.pagination span {
    min-width: 86px;
    padding: 0 14px;
    border: 1px solid #dedede;
    background: #ffffff;
    color: #191919;
}

.pagination a:not(.disabled):hover {
    border-color: #ff6900;
    color: #ff6900;
}

.pagination a.disabled {
    pointer-events: none;
    color: #b5b5b5;
}

.detail-article {
    padding: 34px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.back-link {
    width: fit-content;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #dedede;
    color: #191919;
}

.back-link:hover {
    border-color: #ff6900;
    color: #ff6900;
}

.detail-head {
    display: grid;
    gap: 12px;
    padding-bottom: 26px;
    border-bottom: 1px solid #eeeeee;
}

.detail-head h1 {
    margin: 0;
    color: #191919;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.16;
}

.detail-head p {
    margin: 0;
    color: #666666;
    font-size: 17px;
    line-height: 1.85;
}

.detail-body {
    padding-top: 28px;
    color: #333333;
    font-size: 16px;
    line-height: 1.9;
}

.detail-body h2,
.detail-body h3 {
    margin: 28px 0 12px;
    color: #191919;
    line-height: 1.35;
}

.detail-body p {
    margin: 0 0 16px;
}

.detail-body ul,
.detail-body ol {
    margin: 0 0 18px 22px;
    padding: 0;
}

.detail-body a {
    color: #ff6900;
    font-weight: 800;
}

.richtext-label {
    display: grid;
    gap: 8px;
}

.richtext-label .ql-toolbar.ql-snow {
    border-color: #eeeeee;
    border-radius: 6px 6px 0 0;
    background: #fafafa;
}

.richtext-label .ql-container.ql-snow {
    min-height: 240px;
    border-color: #dedede;
    border-radius: 0 0 6px 6px;
    background: #ffffff;
}

.richtext-label .ql-editor {
    min-height: 240px;
    color: #191919;
    font-size: 15px;
    line-height: 1.8;
}

.richtext-label .ql-editor h2,
.richtext-label .ql-editor h3 {
    line-height: 1.35;
}

.richtext-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    background: #fafafa;
}

.richtext-toolbar button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #dedede;
    border-radius: 6px;
    background: #ffffff;
    color: #333333;
    font-size: 13px;
    font-weight: 800;
}

.richtext-toolbar button:hover {
    border-color: #ff6900;
    color: #ff6900;
}

.richtext-editor {
    min-height: 220px;
    padding: 14px;
    border: 1px solid #dedede;
    border-radius: 6px;
    background: #ffffff;
    color: #191919;
    font-size: 15px;
    line-height: 1.8;
    outline: none;
}

.richtext-editor:focus {
    border-color: #ff6900;
    box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.12);
}

.richtext-editor:empty::before {
    content: attr(data-placeholder);
    color: #999999;
}

@media (max-width: 760px) {
    #cases .section-heading {
        padding-right: 0 !important;
    }

    #cases #case-more {
        position: static !important;
        width: 100% !important;
        margin-top: 14px !important;
        transform: none !important;
    }

    #cases #case-more a {
        width: 100% !important;
        min-height: 56px !important;
    }

    .section-more {
        width: min(100% - 32px, 1240px);
    }

    .section-more a {
        width: 100%;
    }

    .public-page {
        width: min(100% - 24px, 1040px);
        padding: 92px 0 44px;
    }

    .breadcrumb {
        margin-bottom: 12px;
        font-size: 12px;
    }

    .list-hero,
    .detail-article {
        padding: 22px;
    }

    .list-hero::after {
        right: -72px;
        bottom: -72px;
    }

    .public-list-meta {
        display: grid;
        align-items: start;
    }

    .public-list-item {
        padding: 20px;
    }

    .pagination {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
    }

    .richtext-toolbar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .richtext-toolbar button {
        width: 100%;
    }
}

/* Absolute final admin mobile adaptation - keep at true file end. */
@media (max-width: 760px) {
    .admin-body {
        min-width: 0 !important;
        background: #f4f4f4 !important;
    }

    .admin-body .topbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 30 !important;
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-areas:
            "brand actions"
            "nav nav" !important;
        gap: 10px 12px !important;
        width: 100% !important;
        min-height: 0 !important;
        padding: 10px 14px !important;
        background: rgba(0, 0, 0, 0.92) !important;
    }

    .admin-body .brand {
        grid-area: brand !important;
        min-width: 0 !important;
        gap: 8px !important;
        color: #ffffff !important;
        font-size: 14px !important;
    }

    .admin-body .brand span:last-child {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .admin-body .brand-mark {
        width: 30px !important;
        height: 30px !important;
        border-radius: 8px !important;
        font-size: 15px !important;
    }

    .admin-body .nav {
        grid-area: nav !important;
        justify-self: stretch !important;
        display: flex !important;
        gap: 6px !important;
        overflow-x: auto !important;
        padding-bottom: 2px !important;
        scrollbar-width: none !important;
    }

    .admin-body .nav::-webkit-scrollbar,
    .admin-sidebar::-webkit-scrollbar {
        display: none !important;
    }

    .admin-body .nav a {
        flex: 1 0 auto !important;
        min-height: 34px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 12px !important;
        border-radius: 6px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        color: #ffffff !important;
        font-size: 13px !important;
        font-weight: 800 !important;
    }

    .admin-header-actions {
        grid-area: actions !important;
        justify-self: end !important;
        gap: 6px !important;
    }

    .admin-current-user {
        max-width: 96px !important;
        overflow: hidden !important;
        color: rgba(255, 255, 255, 0.82) !important;
        font-size: 12px !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .admin-logout {
        min-height: 30px !important;
        padding: 0 9px !important;
        border-color: rgba(255, 255, 255, 0.24) !important;
        border-radius: 6px !important;
        background: transparent !important;
        color: #ffffff !important;
        font-size: 12px !important;
    }

    .admin-shell {
        display: grid !important;
        width: 100% !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 12px 12px 32px !important;
    }

    .admin-sidebar {
        position: sticky !important;
        top: 94px !important;
        z-index: 20 !important;
        display: flex !important;
        gap: 8px !important;
        width: calc(100vw - 24px) !important;
        max-width: none !important;
        overflow-x: auto !important;
        padding: 8px !important;
        border-radius: 8px !important;
        box-shadow: 0 8px 24px rgba(25, 25, 25, 0.06) !important;
        scrollbar-width: none !important;
    }

    .admin-sidebar-title {
        display: none !important;
    }

    .admin-menu {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 94px !important;
        min-height: 38px !important;
        justify-content: center !important;
        padding: 0 14px !important;
        margin: 0 !important;
        border-radius: 6px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }

    .admin-panel {
        overflow: hidden !important;
        border-radius: 8px !important;
    }

    .admin-panel-head {
        display: grid !important;
        gap: 14px !important;
        padding: 18px !important;
    }

    .admin-panel-head h1 {
        font-size: 24px !important;
        line-height: 1.18 !important;
    }

    .admin-head-actions {
        width: 100% !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }

    .admin-list-view,
    .admin-editor-view {
        padding: 12px !important;
    }

    .admin-shell .table-wrap {
        overflow: visible !important;
    }

    .admin-shell table,
    .admin-shell thead,
    .admin-shell tbody,
    .admin-shell tr,
    .admin-shell th,
    .admin-shell td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .admin-shell thead {
        display: none !important;
    }

    .admin-shell tbody {
        display: grid !important;
        gap: 12px !important;
    }

    .admin-shell tbody tr {
        overflow: hidden !important;
        border: 1px solid #eeeeee !important;
        border-radius: 8px !important;
        background: #ffffff !important;
    }

    .admin-shell tbody td {
        display: grid !important;
        grid-template-columns: 82px minmax(0, 1fr) !important;
        gap: 12px !important;
        align-items: start !important;
        min-height: 42px !important;
        padding: 11px 14px !important;
        border-bottom: 1px solid #f1f1f1 !important;
        color: #2f2f2f !important;
        line-height: 1.5 !important;
        word-break: break-word !important;
    }

    .admin-shell tbody td:last-child {
        border-bottom: 0 !important;
    }

    .admin-shell tbody td::before {
        content: attr(data-label) !important;
        color: #8a8a8a !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        line-height: 1.6 !important;
    }

    .admin-shell tbody td[colspan] {
        display: block !important;
        padding: 24px 16px !important;
        text-align: center !important;
    }

    .admin-shell tbody td[colspan]::before {
        content: none !important;
    }

    .table-actions,
    .banner-row-actions,
    .order-actions {
        justify-content: flex-start !important;
        gap: 8px !important;
    }

    .table-actions button,
    .banner-row-actions button,
    .order-actions button {
        min-height: 34px !important;
        padding: 0 11px !important;
        border-radius: 6px !important;
    }

    .banner-preview {
        width: min(100%, 220px) !important;
    }

    .banner-url-input {
        width: 100% !important;
        min-width: 0 !important;
        height: 40px !important;
    }

    .editor-head {
        margin: 0 !important;
    }

    .editor-head h2 {
        font-size: 24px !important;
    }

    .editor-fields,
    .module-form-fields {
        max-width: none !important;
        gap: 14px !important;
    }

    .editor-fields input,
    .editor-fields select,
    .editor-fields textarea,
    .module-form-fields input,
    .module-form-fields textarea {
        width: 100% !important;
        min-width: 0 !important;
        font-size: 16px !important;
    }

    .editor-fields input,
    .editor-fields select,
    .module-form-fields input {
        height: 44px !important;
    }

    .button-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .button-row button {
        width: 100% !important;
        min-height: 44px !important;
    }
}

/* Admin mobile adaptation. */
@media (max-width: 760px) {
    .admin-body {
        min-width: 0 !important;
        background: #f4f4f4 !important;
    }

    .admin-body .topbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 30 !important;
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-areas:
            "brand actions"
            "nav nav" !important;
        gap: 10px 12px !important;
        width: 100% !important;
        min-height: 0 !important;
        padding: 10px 14px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        background: rgba(0, 0, 0, 0.92) !important;
    }

    .admin-body .brand {
        grid-area: brand !important;
        min-width: 0 !important;
        gap: 8px !important;
        color: #ffffff !important;
        font-size: 14px !important;
    }

    .admin-body .brand-mark {
        width: 30px !important;
        height: 30px !important;
        border-radius: 8px !important;
        font-size: 15px !important;
    }

    .admin-body .nav {
        grid-area: nav !important;
        justify-self: stretch !important;
        display: flex !important;
        gap: 6px !important;
        overflow-x: auto !important;
        padding-bottom: 2px !important;
        scrollbar-width: none !important;
    }

    .admin-body .nav::-webkit-scrollbar {
        display: none !important;
    }

    .admin-body .nav a {
        flex: 1 0 auto !important;
        min-height: 34px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 12px !important;
        border-radius: 6px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        color: #ffffff !important;
        font-size: 13px !important;
        font-weight: 800 !important;
    }

    .admin-header-actions {
        grid-area: actions !important;
        justify-self: end !important;
        gap: 6px !important;
    }

    .admin-current-user {
        max-width: 96px !important;
        overflow: hidden !important;
        color: rgba(255, 255, 255, 0.82) !important;
        font-size: 12px !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .admin-logout {
        min-height: 30px !important;
        padding: 0 9px !important;
        border-color: rgba(255, 255, 255, 0.24) !important;
        border-radius: 6px !important;
        background: transparent !important;
        color: #ffffff !important;
        font-size: 12px !important;
    }

    .admin-shell {
        display: grid !important;
        width: 100% !important;
        gap: 12px !important;
        padding: 12px 12px 32px !important;
    }

    .admin-sidebar {
        position: sticky !important;
        top: 94px !important;
        z-index: 20 !important;
        display: flex !important;
        gap: 8px !important;
        width: calc(100vw - 24px) !important;
        max-width: none !important;
        overflow-x: auto !important;
        padding: 8px !important;
        border-radius: 8px !important;
        box-shadow: 0 8px 24px rgba(25, 25, 25, 0.06) !important;
        scrollbar-width: none !important;
    }

    .admin-sidebar::-webkit-scrollbar {
        display: none !important;
    }

    .admin-sidebar-title {
        display: none !important;
    }

    .admin-menu {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 94px !important;
        min-height: 38px !important;
        justify-content: center !important;
        padding: 0 14px !important;
        margin: 0 !important;
        border-radius: 6px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }

    .admin-panel {
        overflow: hidden !important;
        border-radius: 8px !important;
    }

    .admin-panel-head {
        display: grid !important;
        gap: 14px !important;
        padding: 18px !important;
    }

    .admin-panel-head h1 {
        font-size: 24px !important;
        line-height: 1.18 !important;
    }

    .admin-head-actions {
        width: 100% !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }

    .admin-count {
        min-height: 34px !important;
        padding: 0 12px !important;
        font-size: 13px !important;
    }

    .admin-new-button {
        min-height: 40px !important;
        padding: 0 14px !important;
        border-radius: 6px !important;
        font-size: 14px !important;
    }

    .admin-list-view,
    .admin-editor-view {
        padding: 12px !important;
    }

    .admin-shell .table-wrap {
        overflow: visible !important;
    }

    .admin-shell table,
    .admin-shell thead,
    .admin-shell tbody,
    .admin-shell tr,
    .admin-shell th,
    .admin-shell td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .admin-shell thead {
        display: none !important;
    }

    .admin-shell tbody {
        display: grid !important;
        gap: 12px !important;
    }

    .admin-shell tbody tr {
        overflow: hidden !important;
        border: 1px solid #eeeeee !important;
        border-radius: 8px !important;
        background: #ffffff !important;
    }

    .admin-shell tbody td {
        display: grid !important;
        grid-template-columns: 82px minmax(0, 1fr) !important;
        gap: 12px !important;
        align-items: start !important;
        min-height: 42px !important;
        padding: 11px 14px !important;
        border-bottom: 1px solid #f1f1f1 !important;
        color: #2f2f2f !important;
        line-height: 1.5 !important;
        word-break: break-word !important;
    }

    .admin-shell tbody td:last-child {
        border-bottom: 0 !important;
    }

    .admin-shell tbody td::before {
        content: attr(data-label) !important;
        color: #8a8a8a !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        line-height: 1.6 !important;
    }

    .admin-shell tbody td[colspan] {
        display: block !important;
        padding: 24px 16px !important;
        text-align: center !important;
    }

    .admin-shell tbody td[colspan]::before {
        content: none !important;
    }

    .admin-shell tbody td strong {
        min-width: 0 !important;
        font-size: 15px !important;
    }

    .admin-shell tbody td span {
        min-width: 0 !important;
    }

    .table-actions,
    .banner-row-actions,
    .order-actions {
        justify-content: flex-start !important;
        gap: 8px !important;
    }

    .table-actions button,
    .banner-row-actions button,
    .order-actions button {
        min-height: 34px !important;
        padding: 0 11px !important;
        border-radius: 6px !important;
    }

    .banner-preview {
        width: min(100%, 220px) !important;
    }

    .banner-url-input {
        width: 100% !important;
        min-width: 0 !important;
        height: 40px !important;
    }

    .editor-head {
        margin: 0 !important;
    }

    .editor-head h2 {
        font-size: 24px !important;
    }

    .editor-fields,
    .module-form-fields {
        max-width: none !important;
        gap: 14px !important;
    }

    .editor-fields input,
    .editor-fields select,
    .editor-fields textarea,
    .module-form-fields input,
    .module-form-fields textarea {
        width: 100% !important;
        min-width: 0 !important;
        font-size: 16px !important;
    }

    .editor-fields input,
    .editor-fields select,
    .module-form-fields input {
        height: 44px !important;
    }

    .button-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .button-row button {
        width: 100% !important;
        min-height: 44px !important;
    }
}

/* Absolute final user editor layout - keep at true file end. */
#users-panel.user-editing {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#users-panel.user-editing > .admin-panel-head {
    display: none !important;
}

#users-panel.user-editing .admin-user-list-view {
    display: none !important;
}

#users-panel.user-editing .admin-user-editor {
    display: block !important;
    width: min(760px, 100%) !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    border: 1px solid #e7e7e7 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 32px rgba(25, 25, 25, 0.05) !important;
}

#users-panel.user-editing .editor-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 22px 24px !important;
    border-bottom: 1px solid #eeeeee !important;
}

#users-panel.user-editing .editor-head h2 {
    margin: 0 !important;
    color: #191919 !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}

#users-panel.user-editing .editor-fields {
    display: grid !important;
    max-width: none !important;
    gap: 16px !important;
    padding: 24px !important;
}

#users-panel.user-editing .editor-fields label {
    display: grid !important;
    gap: 8px !important;
}

#users-panel.user-editing .editor-fields label > span {
    color: #666666 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

#users-panel.user-editing .editor-fields input,
#users-panel.user-editing .editor-fields select {
    width: 100% !important;
    height: 44px !important;
    border-radius: 6px !important;
    font-size: 15px !important;
}

#users-panel.user-editing .check-row {
    display: inline-flex !important;
    width: fit-content !important;
    grid-template-columns: none !important;
    align-items: center !important;
    gap: 10px !important;
}

#users-panel.user-editing .check-row input {
    width: 18px !important;
    height: 18px !important;
}

#users-panel.user-editing .button-row {
    margin-top: 2px !important;
}

#users-panel.user-editing .button-row button {
    min-width: 132px !important;
    min-height: 44px !important;
    border-radius: 6px !important;
}

#users-panel.user-editing .form-note {
    margin: 0 !important;
    color: #777777 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

@media (max-width: 640px) {
    #users-panel.user-editing .editor-head {
        display: grid !important;
        padding: 18px !important;
    }

    #users-panel.user-editing .editor-fields {
        padding: 18px !important;
    }

    #users-panel.user-editing .editor-head h2 {
        font-size: 24px !important;
    }

    #users-panel.user-editing .admin-new-button.secondary {
        width: 100% !important;
    }

    #users-panel.user-editing .button-row button {
        width: 100% !important;
    }
}

/* Absolute final user editor layout - keep after admin/mobile overrides. */
#users-panel.user-editing {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#users-panel.user-editing > .admin-panel-head {
    display: none !important;
}

#users-panel.user-editing .admin-user-list-view {
    display: none !important;
}

#users-panel.user-editing .admin-user-editor {
    display: block !important;
    width: min(760px, 100%) !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    border: 1px solid #e7e7e7 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 32px rgba(25, 25, 25, 0.05) !important;
}

#users-panel.user-editing .editor-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 22px 24px !important;
    border-bottom: 1px solid #eeeeee !important;
}

#users-panel.user-editing .editor-head h2 {
    margin: 0 !important;
    color: #191919 !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}

#users-panel.user-editing .editor-fields {
    display: grid !important;
    max-width: none !important;
    gap: 16px !important;
    padding: 24px !important;
}

#users-panel.user-editing .editor-fields label {
    display: grid !important;
    gap: 8px !important;
}

#users-panel.user-editing .editor-fields label > span {
    color: #666666 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

#users-panel.user-editing .editor-fields input,
#users-panel.user-editing .editor-fields select {
    width: 100% !important;
    height: 44px !important;
    border-radius: 6px !important;
    font-size: 15px !important;
}

#users-panel.user-editing .check-row {
    display: inline-flex !important;
    width: fit-content !important;
    grid-template-columns: none !important;
    align-items: center !important;
    gap: 10px !important;
}

#users-panel.user-editing .check-row input {
    width: 18px !important;
    height: 18px !important;
}

#users-panel.user-editing .button-row {
    margin-top: 2px !important;
}

#users-panel.user-editing .button-row button {
    min-width: 132px !important;
    min-height: 44px !important;
    border-radius: 6px !important;
}

#users-panel.user-editing .form-note {
    margin: 0 !important;
    color: #777777 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

@media (max-width: 640px) {
    #users-panel.user-editing .editor-head {
        display: grid !important;
        padding: 18px !important;
    }

    #users-panel.user-editing .editor-fields {
        padding: 18px !important;
    }

    #users-panel.user-editing .editor-head h2 {
        font-size: 24px !important;
    }

    #users-panel.user-editing .admin-new-button.secondary {
        width: 100% !important;
    }

    #users-panel.user-editing .button-row button {
        width: 100% !important;
    }
}

/* Login page and admin logout. */
.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.45)),
        #191919;
}

.login-shell {
    width: min(100% - 32px, 440px);
}

.login-panel {
    display: grid;
    gap: 26px;
    padding: 34px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #191919;
    text-decoration: none;
}

.login-panel h1 {
    margin: 0;
    color: #191919;
    font-size: 30px;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-form label {
    display: grid;
    gap: 8px;
}

.login-form label span {
    color: #333333;
    font-size: 14px;
    font-weight: 800;
}

.login-form input {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1px solid #dedede;
    border-radius: 6px;
    background: #ffffff;
    color: #191919;
    font-size: 15px;
}

.login-form input:focus {
    border-color: #ff6900;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.12);
}

.admin-logout {
    min-height: 36px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.admin-logout:hover {
    border-color: #ff6900 !important;
    background: #ff6900 !important;
    color: #ffffff !important;
}

@media (max-width: 760px) {
    .login-panel {
        padding: 26px;
    }

    .admin-logout {
        min-height: 32px !important;
        padding: 0 10px !important;
        white-space: nowrap !important;
    }

    .admin-header-actions {
        width: 100% !important;
        justify-content: space-between !important;
    }
}

/* Final scroll-aware navigation highlight. */
.topbar .nav a,
.topbar .nav a:first-child {
    color: #ffffff !important;
}

.topbar .nav a .nav-en,
.topbar .nav a:first-child .nav-en {
    color: rgba(255, 255, 255, 0.62) !important;
}

.topbar .nav a.is-active,
.topbar .nav a:hover {
    color: #ff6900 !important;
}

.topbar .nav a.is-active .nav-en,
.topbar .nav a:hover .nav-en {
    color: rgba(255, 105, 0, 0.86) !important;
}

/* Final team/news width and data-driven team cards. */
.team-section,
.muted-band#news {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.team-heading,
.team-rail,
#news .section-heading,
.news-list {
    width: min(1240px, calc(100% - 48px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.team-section {
    padding-top: 76px !important;
    padding-bottom: 86px !important;
    background: #f5f5f5 !important;
}

.team-heading {
    margin-bottom: 30px !important;
}

.team-heading h2 {
    font-size: clamp(30px, 3.4vw, 42px) !important;
    font-weight: 650 !important;
}

.team-heading h2::after {
    display: none !important;
}

.team-track {
    width: max-content !important;
    gap: 18px !important;
    padding-left: 0 !important;
}

.team-card {
    display: grid !important;
    width: min(604px, calc(100vw - 48px)) !important;
    min-height: 292px !important;
    grid-template-columns: minmax(0, 1fr) 190px !important;
    align-items: center !important;
    gap: 26px !important;
    padding: 30px !important;
    border: 1px solid #eeeeee !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 30px rgba(25, 25, 25, 0.06) !important;
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(25, 25, 25, 0.1) !important;
}

.team-copy {
    min-width: 0;
}

.team-kicker {
    display: inline-flex !important;
    min-height: 28px !important;
    align-items: center !important;
    margin-bottom: 18px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: rgba(255, 105, 0, 0.1) !important;
    color: #ff6900 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.team-copy h3 {
    margin: 0 0 10px !important;
    color: #191919 !important;
    font-size: 34px !important;
    font-weight: 650 !important;
    line-height: 1.08 !important;
}

.team-copy p {
    margin: 0 0 8px !important;
    color: #666666 !important;
    font-size: 15px !important;
    line-height: 1.58 !important;
}

.team-copy .team-role {
    color: #2f2f2f !important;
    font-weight: 700 !important;
}

.team-avatar {
    width: 184px !important;
    aspect-ratio: 1 !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    border: 8px solid #f1f1f1 !important;
    border-radius: 50% !important;
    background: #eeeeee !important;
    box-shadow: none !important;
}

.team-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.team-avatar span {
    color: #a0a0a0 !important;
    font-size: 62px !important;
    font-weight: 700 !important;
}

.team-empty {
    width: min(1240px, calc(100vw - 48px));
    padding: 30px;
    border-radius: 8px;
    background: #ffffff;
}

.team-arrow {
    top: calc(50% + 34px) !important;
    width: 44px !important;
    height: 58px !important;
    border-radius: 6px !important;
    background: rgba(25, 25, 25, 0.14) !important;
    color: #ffffff !important;
}

.team-arrow-left {
    left: max(16px, calc((100vw - 1240px) / 2 - 58px)) !important;
}

.team-arrow-right {
    right: max(16px, calc((100vw - 1240px) / 2 - 58px)) !important;
}

.news-list {
    display: grid !important;
    gap: 14px !important;
}

.news-item {
    width: 100% !important;
    grid-template-columns: 136px minmax(0, 1fr) !important;
    border: 1px solid #eeeeee !important;
}

@media (max-width: 760px) {
    .team-heading,
    .team-rail,
    #news .section-heading,
    .news-list {
        width: min(100% - 32px, 1240px) !important;
    }

    .team-card {
        width: calc(100vw - 32px) !important;
        min-height: 0 !important;
        grid-template-columns: 1fr !important;
        gap: 22px !important;
        padding: 24px !important;
    }

    .team-avatar {
        width: 150px !important;
        justify-self: start !important;
    }

    .team-copy h3 {
        font-size: 30px !important;
    }

    .team-arrow {
        display: none !important;
    }

    .news-item {
        grid-template-columns: 1fr !important;
    }
}

/* Image banner carousel. */
.home-banner {
    padding: 0 !important;
    background: #000000 !important;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: clamp(360px, 45vw, 620px);
    overflow: hidden;
    background: #111111;
    touch-action: pan-y;
}

.banner-slides {
    position: absolute;
    inset: 0;
    display: flex;
    transition: transform 0.65s ease;
    will-change: transform;
}

.banner-slide {
    position: relative;
    min-width: 100%;
    height: 100%;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.banner-caption {
    position: absolute;
    left: max(24px, calc((100vw - 1240px) / 2 + 24px));
    top: 50%;
    width: min(620px, calc(100% - 48px));
    transform: translateY(-50%);
    color: #ffffff;
}

.banner-caption .eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.banner-caption h1 {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 650;
    line-height: 1.08;
}

.banner-caption .intro {
    color: rgba(255, 255, 255, 0.78);
}

.banner-dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.banner-dots button {
    width: 46px !important;
    height: 3px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.42) !important;
}

.banner-dots button.active {
    background: #ff6900 !important;
}

@media (max-width: 760px) {
    .banner-slider {
        height: 420px;
    }

    .banner-caption {
        left: 20px;
        width: calc(100% - 40px);
    }

    .banner-caption h1 {
        font-size: 34px;
    }

    .banner-dots {
        bottom: 18px;
    }
}

/* Banner, team width, and news visual fixes. */
.home-banner {
    padding: 96px 0 64px !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 245, 245, 0.88)),
        #f5f5f5 !important;
}

.home-banner-inner {
    width: min(1240px, calc(100% - 48px)) !important;
    min-height: 360px;
    display: grid;
    align-content: center;
    margin: 0 auto;
    padding: clamp(36px, 6vw, 72px);
    border-radius: 8px;
    background:
        radial-gradient(circle at 88% 28%, rgba(255, 105, 0, 0.12), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    box-shadow: 0 14px 34px rgba(25, 25, 25, 0.06);
}

.home-banner h1 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: clamp(38px, 5.4vw, 68px);
    font-weight: 560;
    line-height: 1.08;
}

.home-banner .intro {
    max-width: 680px;
}

.portal-hero {
    min-height: auto !important;
    padding-top: 56px !important;
}

.team-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.team-rail {
    width: min(1240px, calc(100% - 48px)) !important;
    margin: 0 auto !important;
}

.team-track {
    padding-left: 0 !important;
}

.team-card {
    width: min(604px, calc(100vw - 52px)) !important;
}

.news-list {
    width: min(980px, calc(100% - 48px)) !important;
    margin: 0 auto !important;
    gap: 14px !important;
}

.news-item {
    grid-template-columns: 112px minmax(0, 1fr) !important;
    align-items: center;
    gap: 22px !important;
    padding: 22px 24px !important;
    border: 0 !important;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(25, 25, 25, 0.05);
}

.news-item time {
    display: grid;
    min-height: 44px;
    place-items: center;
    border-radius: 8px;
    background: #f7f7f7;
    color: #ff6900;
    font-size: 13px;
    font-weight: 600;
}

.news-item strong {
    display: block;
    margin-bottom: 4px;
    color: #1f1f1f;
    font-size: 18px;
    font-weight: 560;
}

.news-item p {
    color: #707070;
}

@media (max-width: 760px) {
    .home-banner {
        padding: 34px 0 32px !important;
    }

    .home-banner-inner {
        width: min(100% - 32px, 1240px) !important;
        min-height: 320px;
        padding: 28px 22px;
    }

    .home-banner h1 {
        font-size: 34px;
    }

    .team-rail,
    .news-list {
        width: min(100% - 32px, 1240px) !important;
    }

    .team-card {
        width: calc(100vw - 32px) !important;
    }

    .news-item {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 18px !important;
    }

    .news-item time {
        width: fit-content;
        min-height: 32px;
        padding: 0 10px;
    }
}

/* Center the header navigation group while keeping the logo on the left. */
.topbar {
    display: grid !important;
    grid-template-columns: 180px minmax(0, 1fr) 180px !important;
    align-items: center !important;
}

.brand {
    grid-column: 1 !important;
    justify-self: start !important;
}

.nav {
    grid-column: 2 !important;
    justify-self: center !important;
    justify-content: center !important;
}

.topbar::after {
    content: "" !important;
    grid-column: 3 !important;
}

@media (max-width: 760px) {
    .topbar {
        display: flex !important;
        grid-template-columns: none !important;
    }

    .brand,
    .nav {
        grid-column: auto !important;
    }

    .nav {
        justify-self: auto !important;
        justify-content: flex-start !important;
    }

    .topbar::after {
        content: none !important;
    }
}

/* Absolute final header color override. Keep this at file end. */
.topbar {
    background: #ffffff;
    border-bottom-color: #e8e8e8;
    box-shadow: none;
}

.brand {
    color: #191919;
}

.brand-mark {
    background: #ff6900;
    color: #ffffff;
}

.nav a {
    background: transparent;
    color: #3c3c3c;
}

.nav a:hover {
    background: transparent;
    color: #ff6900;
}

@media (max-width: 760px) {
    .topbar {
        background: #ffffff;
    }

    .nav a {
        background: transparent;
        border-color: transparent;
        border-radius: 0;
        color: #3c3c3c;
    }
}

/* Strict Xiaomi-like header color pass. */
:root {
    --mi-orange: #ff6900;
    --mi-black: #191919;
    --mi-text: #3c3c3c;
    --mi-muted: #606060;
    --mi-border: #e8e8e8;
    --mi-page: #f7f7f7;
}

body {
    background: var(--mi-page);
}

.topbar {
    background: #ffffff;
    border-bottom-color: var(--mi-border);
    box-shadow: none;
}

.brand {
    color: var(--mi-black);
}

.brand-mark {
    background: var(--mi-orange);
    color: #ffffff;
}

.nav {
    color: var(--mi-text);
}

.nav a {
    background: transparent;
    color: var(--mi-text);
}

.nav a:hover {
    background: transparent;
    color: var(--mi-orange);
}

.eyebrow {
    color: var(--mi-muted);
}

.primary-action,
button[type="submit"] {
    border-color: var(--mi-orange);
    background: var(--mi-orange);
}

@media (max-width: 760px) {
    .topbar {
        background: #ffffff;
    }

    .nav a {
        background: transparent;
        color: var(--mi-text);
        border-color: transparent;
        border-radius: 0;
    }

    .nav a:hover {
        background: transparent;
        color: var(--mi-orange);
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(20px, 5vw, 72px);
    background: rgba(247, 243, 235, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand,
.nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-size: 18px;
    font-weight: 850;
}

.brand-mark {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 8px;
    background: var(--deep);
    color: var(--gold);
    font-weight: 900;
}

.nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

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

.hero,
.admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 440px);
    align-items: center;
    gap: clamp(28px, 6vw, 72px);
    padding: clamp(42px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.hero {
    min-height: calc(100vh - 68px);
    background:
        linear-gradient(120deg, rgba(199, 154, 69, 0.2), rgba(255, 255, 255, 0.4) 46%, rgba(42, 33, 25, 0.12)),
        var(--paper);
}

.portal-hero {
    border-bottom: 1px solid var(--line);
}

.admin-hero {
    padding-bottom: 32px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 22px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 23px;
    line-height: 1.2;
    letter-spacing: 0;
}

.intro {
    max-width: 680px;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions,
.button-row,
.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions {
    margin-top: 32px;
}

.primary-action,
.secondary-action,
button {
    min-height: 44px;
    border-radius: 8px;
    padding: 10px 18px;
    border: 1px solid var(--deep);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.primary-action,
button[type="submit"] {
    background: var(--deep);
    color: white;
}

.secondary-action,
button {
    background: white;
    color: var(--ink);
}

.overview-panel,
.content-card,
.timeline,
.task-panel,
.editor-panel,
.table-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 18px 40px rgba(37, 31, 25, 0.08);
}

.overview-panel {
    padding: 24px;
}

.panel-header,
.task-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.panel-header strong {
    color: var(--green);
}

.promise {
    margin-top: 28px;
}

.promise strong {
    display: block;
    margin-bottom: 10px;
    color: var(--deep);
    font-size: 36px;
    line-height: 1.15;
}

.promise p {
    color: var(--muted);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 22px;
}

.metric-grid article {
    min-height: 82px;
    padding: 14px;
    border-radius: 8px;
    background: #f4eee2;
}

.metric-grid strong {
    display: block;
    font-size: 28px;
}

.metric-grid span,
.content-card small {
    color: var(--muted);
    font-size: 13px;
}

.section-band {
    padding: 72px clamp(20px, 5vw, 72px);
    background: white;
}

.muted-band {
    background: #f3ecdf;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-heading.compact {
    margin-bottom: 22px;
}

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

.content-card {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
}

.content-card p {
    color: var(--muted);
}

.team-section {
    position: relative;
    overflow: hidden;
    padding: 70px 0 82px;
    background: #ebe9e6;
}

.team-heading {
    position: relative;
    width: min(520px, calc(100% - 32px));
    margin: 0 auto 42px;
    text-align: center;
}

.team-heading span {
    position: absolute;
    left: 50%;
    top: -34px;
    transform: translateX(-72%);
    color: rgba(37, 31, 25, 0.16);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 78px;
    font-style: italic;
    line-height: 1;
    pointer-events: none;
}

.team-heading h2 {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 0 16px 12px;
    color: var(--deep);
    font-size: clamp(34px, 5vw, 48px);
}

.team-heading h2::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    border-top: 2px solid var(--red);
    border-bottom: 2px solid var(--red);
}

.team-heading h2::first-letter {
    color: var(--red);
}

.team-rail {
    overflow: hidden;
    padding: 0 0 8px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.team-track {
    display: flex;
    width: max-content;
    gap: 18px;
    padding-left: max(16px, calc((100vw - 1440px) / 2 + 16px));
}

.team-rail.is-dragging,
.team-section:hover .team-rail {
    overflow-x: auto;
}

.team-rail::-webkit-scrollbar {
    height: 0;
}

.team-rail {
    scrollbar-width: none;
}

.team-arrow {
    position: absolute;
    top: 54%;
    z-index: 2;
    display: grid;
    width: 54px;
    height: 64px;
    min-height: 0;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    box-shadow: none;
}

.team-arrow:hover {
    background: rgba(255, 255, 255, 0.34);
}

.team-arrow span {
    transform: translateY(-2px);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 70px;
    font-weight: 300;
    line-height: 1;
}

.team-arrow-left {
    left: 36px;
}

.team-arrow-right {
    right: 36px;
}

.team-card {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 270px;
    align-items: center;
    width: min(720px, calc(100vw - 52px));
    min-height: 300px;
    gap: 22px;
    padding: 36px 32px;
    background: white;
    border: 1px solid rgba(222, 214, 200, 0.72);
    box-shadow: 0 18px 38px rgba(37, 31, 25, 0.06);
}

.team-copy h3 {
    margin-bottom: 8px;
    color: #34302c;
    font-size: 34px;
}

.team-copy p {
    margin-bottom: 7px;
    color: #6f6b66;
    font-size: 17px;
    font-weight: 650;
}

.team-kicker {
    display: block;
    margin-bottom: 20px;
    color: #77736e;
    font-size: 16px;
    font-weight: 800;
}

.team-role {
    color: #514d48;
}

.team-avatar {
    display: grid;
    width: 250px;
    aspect-ratio: 1;
    place-items: center;
    justify-self: end;
    border: 8px solid #d8d7d6;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.2), transparent 28%),
        linear-gradient(145deg, #55535a, #2f3038);
    color: rgba(255, 255, 255, 0.86);
    font-size: 86px;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.team-avatar span {
    transform: translateY(4px);
}

.avatar-warm {
    background:
        radial-gradient(circle at 52% 34%, rgba(255, 255, 255, 0.22), transparent 27%),
        linear-gradient(145deg, #675d59, #3c3436);
}

.avatar-cool {
    background:
        radial-gradient(circle at 48% 34%, rgba(255, 255, 255, 0.2), transparent 26%),
        linear-gradient(145deg, #696a72, #393942);
}

.avatar-deep {
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.18), transparent 26%),
        linear-gradient(145deg, #4e5c62, #2a3438);
}

.avatar-red {
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.18), transparent 26%),
        linear-gradient(145deg, #8b5a52, #44302d);
}

.tag,
.status {
    display: inline-block;
    width: fit-content;
    margin-bottom: 18px;
    border-radius: 999px;
    padding: 4px 10px;
    background: var(--gold);
    color: var(--deep);
    font-size: 12px;
    font-weight: 900;
}

.workspace,
.admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: 18px;
    padding: 72px clamp(20px, 5vw, 72px);
}

.timeline,
.task-panel,
.editor-panel,
.table-panel {
    padding: 26px;
}

.timeline-list {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline-list li {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.timeline-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

time {
    color: var(--gold);
    font-weight: 900;
}

.timeline-list p,
.news-item p,
.form-note {
    margin-bottom: 0;
    color: var(--muted);
}

.lead-form,
.editor-panel {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    background: white;
    color: var(--ink);
    font: inherit;
}

textarea {
    resize: vertical;
}

.news-list {
    display: grid;
    gap: 14px;
}

.news-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.admin-body {
    background: #f7f3eb;
}

.admin-main {
    min-height: calc(100vh - 68px);
}

.admin-layout {
    grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
    padding-top: 24px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

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

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

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

th {
    color: var(--muted);
    font-size: 13px;
}

td span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.status {
    margin: 0;
    background: #eadfd0;
    color: var(--muted);
}

.status.published {
    background: rgba(45, 112, 85, 0.14);
    color: var(--green);
}

.table-actions button {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 13px;
}

.empty-state {
    color: var(--muted);
}

@media (max-width: 980px) {
    .hero,
    .workspace,
    .content-grid,
    .admin-hero,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .team-card {
        grid-template-columns: 1fr 220px;
        min-height: 260px;
    }

    .team-avatar {
        width: 210px;
        font-size: 72px;
    }
}

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

    h1 {
        font-size: 40px;
    }

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

    .timeline-list li,
    .news-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .team-section {
        padding: 54px 0 62px;
    }

    .team-heading {
        margin-bottom: 30px;
    }

    .team-heading span {
        top: -25px;
        font-size: 58px;
    }

    .team-card {
        grid-template-columns: 1fr;
        width: calc(100vw - 32px);
        min-height: 0;
        padding: 24px;
    }

    .team-avatar {
        order: -1;
        width: min(210px, 70vw);
        justify-self: center;
    }

    .team-copy h3 {
        font-size: 30px;
    }

    .team-copy p {
        font-size: 15px;
    }

    .team-arrow {
        top: auto;
        bottom: 18px;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(255, 255, 255, 0.72);
        border-radius: 50%;
        background: rgba(42, 33, 25, 0.22);
    }

    .team-arrow span {
        font-size: 46px;
    }

    .team-arrow-left {
        left: 18px;
    }

    .team-arrow-right {
        right: 18px;
    }
}

/* Header refined toward mi.com: white bar, subtle separation, black text, orange identity mark. */
.topbar {
    min-height: 56px;
    gap: 28px;
    padding: 0 clamp(20px, 5vw, 72px);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
    backdrop-filter: saturate(160%) blur(12px);
}

.brand {
    flex: 0 0 auto;
    gap: 10px;
    color: #191919;
    font-size: 16px;
    font-weight: 600;
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #ff6900;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.nav {
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 0;
    color: #3c3c3c;
    font-size: 14px;
    font-weight: 400;
}

.nav a {
    display: inline-grid;
    min-height: 56px;
    place-items: center;
    padding: 0 16px;
    color: #3c3c3c;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.nav a:hover {
    background: #fafafa;
    color: #ff6900;
}

@media (max-width: 760px) {
    .topbar {
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
    }

    .brand {
        width: auto;
        justify-content: flex-start;
        font-size: 16px;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
    }

    .nav {
        width: 100%;
        gap: 8px;
        padding-bottom: 0;
        overflow-x: auto;
    }

    .nav a {
        min-width: auto;
        min-height: 34px;
        padding: 0 12px;
        border: 0;
        border-radius: 999px;
        background: #f5f5f5;
        color: #4a4a4a;
        white-space: nowrap;
    }

    .nav a:hover {
        background: #eeeeee;
        color: #ff6900;
    }
}

@media (max-width: 760px) {
    body {
        line-height: 1.55;
    }

    .topbar {
        gap: 12px;
        padding: 12px 16px;
    }

    .brand {
        width: 100%;
        justify-content: space-between;
        font-size: 17px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        font-size: 13px;
    }

    .nav a {
        min-height: 36px;
        display: grid;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.72);
        text-align: center;
    }

    .hero,
    .admin-hero,
    .section-band,
    .workspace,
    .admin-layout {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero,
    .admin-hero {
        gap: 22px;
        padding-top: 32px;
        padding-bottom: 36px;
    }

    .section-band,
    .workspace,
    .admin-layout {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .workspace,
    .admin-layout {
        gap: 14px;
    }

    h1 {
        margin-bottom: 16px;
        font-size: 38px;
        line-height: 1.08;
    }

    h2 {
        font-size: 27px;
    }

    h3 {
        font-size: 21px;
    }

    .intro {
        font-size: 16px;
    }

    .hero-actions,
    .button-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .primary-action,
    .secondary-action,
    button {
        width: 100%;
        min-height: 46px;
        padding: 11px 14px;
        text-align: center;
    }

    .overview-panel,
    .timeline,
    .task-panel,
    .editor-panel,
    .table-panel {
        padding: 18px;
    }

    .promise {
        margin-top: 20px;
    }

    .promise strong {
        font-size: 28px;
    }

    .content-card {
        min-height: auto;
        padding: 18px;
    }

    .tag {
        margin-bottom: 12px;
    }

    .lead-form,
    .editor-panel {
        gap: 12px;
    }

    input,
    select,
    textarea {
        min-height: 44px;
        font-size: 16px;
    }

    .table-panel {
        overflow: hidden;
    }

    .table-wrap {
        margin: 0 -18px -18px;
        padding: 0 18px 18px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 680px;
    }

    th,
    td {
        padding: 12px 10px;
    }

    .table-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(58px, 1fr));
        gap: 8px;
    }

    .table-actions button {
        width: auto;
        min-height: 34px;
        padding: 6px 8px;
    }
}

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

    .hero,
    .admin-hero {
        padding-top: 26px;
    }

    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 24px;
    }

    .eyebrow {
        font-size: 12px;
    }

    .panel-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .overview-panel,
    .timeline,
    .task-panel,
    .editor-panel,
    .table-panel {
        padding: 16px;
    }

    .table-wrap {
        margin: 0 -16px -16px;
        padding: 0 16px 16px;
    }
}

/* Final overrides kept at the end so the mi.com-style layout wins over older rules. */
.topbar {
    background: rgba(255, 255, 255, 0.94);
}

.section-band,
.muted-band,
.team-section,
.contact-section {
    background: var(--paper);
}

.section-heading {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.team-arrow {
    background: rgba(25, 25, 25, 0.1);
}

.team-arrow:hover {
    background: rgba(25, 25, 25, 0.18);
}

@media (max-width: 760px) {
    .nav {
        display: flex;
        grid-template-columns: none;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav a {
        min-width: 82px;
        flex: 0 0 auto;
    }

    .contact-section {
        padding: 42px 16px;
    }

    .contact-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 22px;
    }

    .contact-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .nav {
        grid-template-columns: none;
    }
}

/* Visual refinement: calmer headings, softer team cards, and a more unified palette. */
:root {
    --ink: #1f1f1f;
    --muted: #707070;
    --subtle: #9a9a9a;
    --line: #ececec;
    --paper: #f5f5f5;
    --surface: #ffffff;
    --gold: #ff6900;
    --deep: #1f1f1f;
    --red: #ff6900;
    --soft: #fafafa;
}

body {
    color: var(--ink);
    font-family: Arial, "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--subtle);
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
}

h1 {
    font-weight: 650;
}

h2 {
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 560;
    line-height: 1.22;
}

h3 {
    font-weight: 560;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2,
.contact-copy h2 {
    color: var(--ink);
}

.section-heading .eyebrow,
.contact-copy .eyebrow {
    color: var(--subtle);
}

.content-card,
.timeline,
.task-panel,
.overview-panel,
.contact-card {
    border-color: transparent;
}

.team-section {
    padding-top: 62px;
}

.team-heading {
    margin-bottom: 30px;
}

.team-heading span {
    top: -18px;
    transform: translateX(-62%);
    color: rgba(31, 31, 31, 0.07);
    font-size: 60px;
}

.team-heading h2 {
    padding-bottom: 8px;
    font-size: clamp(28px, 3.4vw, 38px);
    font-weight: 560;
}

.team-heading h2::after {
    left: 24px;
    right: 24px;
    height: 2px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 105, 0, 0.55);
}

.team-heading h2::first-letter {
    color: inherit;
}

.team-track {
    gap: 16px;
}

.team-card {
    grid-template-columns: minmax(230px, 1fr) 210px;
    width: min(640px, calc(100vw - 52px));
    min-height: 250px;
    gap: 24px;
    padding: 28px;
    border: 0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(31, 31, 31, 0.055);
}

.team-copy h3 {
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 28px;
    font-weight: 560;
}

.team-copy p {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 400;
}

.team-kicker {
    width: fit-content;
    margin-bottom: 18px;
    border-radius: 999px;
    padding: 4px 10px;
    background: rgba(255, 105, 0, 0.08);
    color: var(--gold);
    font-size: 13px;
    font-weight: 650;
}

.team-role {
    color: var(--ink);
    font-weight: 500;
}

.team-avatar {
    width: 190px;
    border: 0;
    background:
        radial-gradient(circle at 50% 33%, rgba(255, 255, 255, 0.88), transparent 31%),
        linear-gradient(145deg, #f3f3f3, #dedede);
    color: #b6b6b6;
    font-size: 70px;
    font-weight: 560;
    box-shadow: inset 0 0 0 1px #eeeeee;
}

.avatar-warm,
.avatar-cool,
.avatar-deep,
.avatar-red {
    background:
        radial-gradient(circle at 50% 33%, rgba(255, 255, 255, 0.9), transparent 31%),
        linear-gradient(145deg, #f4f4f4, #dedede);
}

.avatar-warm span,
.avatar-cool span,
.avatar-deep span,
.avatar-red span {
    color: #a8a8a8;
}

.team-arrow {
    width: 48px;
    height: 56px;
    background: rgba(31, 31, 31, 0.08);
    color: rgba(31, 31, 31, 0.72);
}

.team-arrow:hover {
    background: rgba(31, 31, 31, 0.13);
}

.team-arrow span {
    font-size: 58px;
}

.contact-steps span {
    color: var(--muted);
    font-weight: 500;
}

.wechat-panel strong {
    font-weight: 560;
}

@media (max-width: 980px) {
    .team-card {
        grid-template-columns: 1fr 180px;
    }

    .team-avatar {
        width: 172px;
        font-size: 62px;
    }
}

@media (max-width: 620px) {
    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 24px;
    }

    .team-section {
        padding-top: 46px;
    }

    .team-heading span {
        top: -16px;
        font-size: 46px;
    }

    .team-card {
        grid-template-columns: 1fr;
        width: calc(100vw - 32px);
        padding: 22px;
    }

    .team-avatar {
        width: 156px;
        font-size: 54px;
    }

    .team-copy h3 {
        font-size: 25px;
    }

    .team-arrow {
        color: white;
        background: rgba(31, 31, 31, 0.22);
    }
}

/* Absolute final header color override. Keep this at file end. */
.topbar {
    background: #ffffff;
    border-bottom-color: #e8e8e8;
    box-shadow: none;
}

.brand {
    color: #191919;
}

.brand-mark {
    background: #ff6900;
    color: #ffffff;
}

.nav a {
    background: transparent;
    color: #3c3c3c;
}

.nav a:hover {
    background: transparent;
    color: #ff6900;
}

@media (max-width: 760px) {
    .topbar {
        background: #ffffff;
    }

    .nav a {
        background: transparent;
        border-color: transparent;
        border-radius: 0;
        color: #3c3c3c;
    }
}

/* FINAL Xiaomi header lock - must stay last. */
.topbar {
    min-height: 56px !important;
    padding: 0 clamp(20px, 5vw, 72px) !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e8e8e8 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.brand {
    color: #191919 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

.brand-mark {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    background: #ff6900 !important;
    color: #ffffff !important;
    font-size: 15px !important;
}

.nav {
    color: #3c3c3c !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.nav a {
    min-height: 56px !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #3c3c3c !important;
}

.nav a:hover {
    background: transparent !important;
    color: #ff6900 !important;
}

@media (max-width: 760px) {
    .topbar {
        min-height: 0 !important;
        padding: 10px 14px !important;
        background: #ffffff !important;
    }

    .nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 18px !important;
    }

    .nav a {
        min-width: auto !important;
        min-height: 32px !important;
        padding: 0 !important;
        background: transparent !important;
        color: #3c3c3c !important;
        white-space: nowrap !important;
    }
}

/* FINAL Xiaomi black header and centered module lock. */
.topbar {
    min-height: 64px !important;
    padding: 0 max(24px, calc((100vw - 1680px) / 2 + 24px)) !important;
    background: rgba(0, 0, 0, 0.82) !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.brand {
    flex: 0 0 auto !important;
    margin-right: 34px !important;
    color: #ffffff !important;
    font-size: 0 !important;
}

.brand-mark {
    width: 38px !important;
    height: 38px !important;
    border-radius: 11px !important;
    background: #ff6900 !important;
    color: #ffffff !important;
    font-size: 19px !important;
    font-weight: 700 !important;
}

.nav {
    flex: 0 1 auto !important;
    justify-content: center !important;
    gap: 0 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.nav a {
    min-height: 64px !important;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    white-space: nowrap !important;
}

.nav a:first-child {
    color: #ff6900 !important;
}

.nav a:hover {
    background: transparent !important;
    color: #ff6900 !important;
}

.hero {
    padding-left: max(24px, calc((100vw - 1240px) / 2 + 24px)) !important;
    padding-right: max(24px, calc((100vw - 1240px) / 2 + 24px)) !important;
}

.section-heading,
.content-grid,
.workspace,
.contact-card {
    width: min(1240px, calc(100% - 48px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.section-band,
.workspace,
.contact-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.team-track {
    padding-left: max(24px, calc((100vw - 1240px) / 2 + 24px)) !important;
}

@media (max-width: 760px) {
    .topbar {
        min-height: 56px !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 10px 16px !important;
        background: rgba(0, 0, 0, 0.88) !important;
    }

    .brand {
        width: auto !important;
        margin-right: 0 !important;
    }

    .brand-mark {
        width: 34px !important;
        height: 34px !important;
        border-radius: 9px !important;
        font-size: 17px !important;
    }

    .nav {
        width: 100% !important;
        justify-content: flex-start !important;
        gap: 22px !important;
        overflow-x: auto !important;
        color: #ffffff !important;
        scrollbar-width: none !important;
    }

    .nav::-webkit-scrollbar {
        display: none !important;
    }

    .nav a {
        min-width: auto !important;
        min-height: 32px !important;
        padding: 0 !important;
        color: #ffffff !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
    }

    .nav a:first-child {
        color: #ff6900 !important;
    }

    .hero,
    .section-band,
    .workspace,
    .contact-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hero > *,
    .section-heading,
    .content-grid,
    .workspace,
    .contact-card {
        width: min(100% - 32px, 1240px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .team-track {
        padding-left: 16px !important;
    }
}

/* Admin console shell. */
.admin-body {
    min-height: 100vh;
    background: #f5f5f5;
}

.admin-shell {
    display: grid;
    width: min(1320px, calc(100% - 48px));
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    margin: 0 auto;
    padding: 32px 0 56px;
}

.admin-sidebar {
    position: sticky;
    top: 88px;
    align-self: start;
    padding: 14px;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(25, 25, 25, 0.05);
}

.admin-sidebar-title {
    display: grid;
    gap: 4px;
    padding: 12px 10px 16px;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 10px;
}

.admin-sidebar-title span {
    color: #191919;
    font-size: 18px;
    font-weight: 800;
}

.admin-sidebar-title strong {
    color: #8a8a8a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.admin-menu {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #3c3c3c;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
}

.admin-menu:hover {
    background: #f6f6f6;
    color: #ff6900;
}

.admin-menu.active {
    background: #191919;
    color: #ffffff;
}

.admin-workspace {
    min-width: 0;
}

.admin-panel {
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(25, 25, 25, 0.05);
}

.admin-panel.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

.admin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px;
    border-bottom: 1px solid #eeeeee;
}

.admin-panel-head h1 {
    margin: 4px 0 0;
    color: #191919;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}

.admin-count,
.admin-new-button {
    flex: 0 0 auto;
}

.admin-count {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f5f5f5;
    color: #555555;
    font-size: 14px;
    font-weight: 800;
}

.admin-new-button {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid #191919;
    border-radius: 6px;
    background: #191919;
    color: #ffffff;
    font-weight: 800;
}

.admin-new-button:hover {
    border-color: #ff6900;
    background: #ff6900;
}

.admin-list-view,
.admin-editor-view {
    padding: 20px;
}

.admin-list-view .table-panel,
.admin-editor-view {
    box-shadow: none;
}

.admin-list-view .section-heading,
.admin-editor-view .section-heading {
    width: 100% !important;
    text-align: left;
}

.admin-editor-view {
    border: 0;
    border-radius: 0;
}

.admin-editor-view.hidden {
    display: none;
}

.editor-head {
    margin: -20px -20px 20px;
}

.editor-head h2 {
    margin: 4px 0 0;
    color: #191919;
    font-size: clamp(22px, 3vw, 30px);
}

.editor-fields {
    display: grid;
    max-width: 760px;
    gap: 16px;
}

.admin-new-button.secondary {
    border-color: #dedede;
    background: #ffffff;
    color: #191919;
}

.admin-new-button.secondary:hover {
    border-color: #ff6900;
    background: #ffffff;
    color: #ff6900;
}

.admin-shell .table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-shell table {
    min-width: 760px;
}

.admin-shell tbody td:first-child {
    color: #555555;
    font-weight: 700;
}

.admin-shell tbody td strong {
    display: block;
    color: #191919;
}

.admin-shell tbody td span {
    display: block;
    margin-top: 5px;
}

.banner-admin-row td {
    vertical-align: middle;
}

.banner-preview {
    display: grid;
    width: 132px;
    aspect-ratio: 16 / 9;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #f6f6f6;
    color: #8a8a8a;
    font-size: 13px;
    font-weight: 700;
}

.banner-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-url-input {
    width: min(360px, 34vw);
    min-width: 240px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #dedede;
    border-radius: 6px;
    background: #ffffff;
    color: #191919;
    font-size: 14px;
}

.banner-url-input:focus {
    border-color: #ff6900;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.12);
}

.order-actions,
.banner-row-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.order-actions span {
    min-width: 26px;
    margin: 0;
    color: #191919;
    font-size: 15px;
    font-weight: 800;
}

.order-actions button,
.banner-row-actions button {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #dedede;
    border-radius: 5px;
    background: #ffffff;
    color: #333333;
    font-size: 13px;
    font-weight: 800;
}

.order-actions button:hover,
.banner-row-actions button:hover {
    border-color: #ff6900;
    color: #ff6900;
}

.order-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.admin-shell table:has(.banner-admin-row) {
    min-width: 980px;
}

@media (max-width: 980px) {
    .admin-shell {
        grid-template-columns: 1fr;
        width: min(100% - 32px, 1320px);
        padding-top: 20px;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-sidebar-title {
        border-bottom: 0;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .admin-sidebar {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .admin-sidebar::-webkit-scrollbar {
        display: none;
    }

    .admin-menu {
        width: auto;
        min-width: 104px;
        display: inline-flex;
        justify-content: center;
        margin-right: 8px;
    }

}

@media (max-width: 640px) {
    .admin-shell {
        width: min(100% - 24px, 1320px);
        padding-bottom: 36px;
    }

    .admin-panel-head {
        display: grid;
        padding: 20px;
    }

    .admin-list-view,
    .admin-editor-view {
        padding: 14px;
    }

    .editor-head {
        margin: -14px -14px 16px;
    }

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

/* Final homepage spacing and bilingual section titles. */
main {
    margin-top: 0 !important;
}

.home-banner {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.home-banner .banner-slider {
    display: block;
}

.section-english {
    margin: 10px auto 0;
    color: #9a9a9a;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.section-heading.compact .section-english {
    margin-top: 8px;
    font-size: 12px;
}

.team-heading {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.team-heading h2 {
    margin: 0;
}

.team-heading span {
    order: 2;
    color: #9a9a9a !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.4 !important;
    text-transform: uppercase;
}

/* Final admin content-list cleanup and module-specific form layout. */
.admin-list-toolbar {
    justify-content: flex-end;
    min-height: 68px;
}

.admin-list-view {
    padding-top: 0;
}

.admin-list-view .table-panel {
    border: 0;
    border-radius: 0;
}

.module-form-fields {
    display: grid;
    gap: 16px;
}

.module-form-fields label {
    display: grid;
    gap: 8px;
}

.module-form-fields label span {
    color: #333333;
    font-size: 14px;
    font-weight: 800;
}

.module-form-fields input,
.module-form-fields textarea,
.module-form-fields select {
    width: 100%;
}

/* Final bilingual homepage navigation. */
.topbar .nav a {
    display: grid !important;
    align-content: center !important;
    justify-items: center !important;
    gap: 2px !important;
    line-height: 1.1 !important;
}

.nav-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}

.nav-en {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: none;
}

.topbar .nav a:hover .nav-en,
.topbar .nav a:first-child .nav-en {
    color: rgba(255, 105, 0, 0.82);
}

@media (max-width: 760px) {
    .topbar .nav a {
        justify-items: start !important;
        gap: 1px !important;
    }

    .nav-label {
        font-size: 13px;
    }

    .nav-en {
        font-size: 9px;
    }
}

/* Absolute final team/news layout lock. */
.team-section,
.muted-band#news {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.team-heading,
.team-rail,
#news .section-heading,
#news .news-list {
    width: min(1240px, calc(100% - 48px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.team-section {
    padding-top: 76px !important;
    padding-bottom: 86px !important;
    background: #f5f5f5 !important;
}

.team-heading {
    margin-bottom: 30px !important;
}

.team-heading h2 {
    font-size: clamp(30px, 3.4vw, 42px) !important;
    font-weight: 650 !important;
}

.team-heading h2::after {
    display: none !important;
}

.team-track {
    width: max-content !important;
    gap: 18px !important;
    padding-left: 0 !important;
}

.team-card {
    display: grid !important;
    width: min(604px, calc(100vw - 48px)) !important;
    min-height: 292px !important;
    grid-template-columns: minmax(0, 1fr) 190px !important;
    align-items: center !important;
    gap: 26px !important;
    padding: 30px !important;
    border: 1px solid #eeeeee !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 30px rgba(25, 25, 25, 0.06) !important;
}

.team-copy h3 {
    margin: 0 0 10px !important;
    color: #191919 !important;
    font-size: 34px !important;
    font-weight: 650 !important;
    line-height: 1.08 !important;
}

.team-copy p {
    margin: 0 0 8px !important;
    color: #666666 !important;
    font-size: 15px !important;
    line-height: 1.58 !important;
}

.team-copy .team-role {
    color: #2f2f2f !important;
    font-weight: 700 !important;
}

.team-kicker {
    display: inline-flex !important;
    min-height: 28px !important;
    align-items: center !important;
    margin-bottom: 18px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: rgba(255, 105, 0, 0.1) !important;
    color: #ff6900 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.team-avatar {
    width: 184px !important;
    aspect-ratio: 1 !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    border: 8px solid #f1f1f1 !important;
    border-radius: 50% !important;
    background: #eeeeee !important;
    box-shadow: none !important;
}

.team-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.team-arrow-left {
    left: max(16px, calc((100vw - 1240px) / 2 - 58px)) !important;
}

.team-arrow-right {
    right: max(16px, calc((100vw - 1240px) / 2 - 58px)) !important;
}

#news .news-list {
    display: grid !important;
    gap: 14px !important;
}

#news .news-item {
    width: 100% !important;
    grid-template-columns: 136px minmax(0, 1fr) !important;
    border: 1px solid #eeeeee !important;
}

@media (max-width: 760px) {
    .team-heading,
    .team-rail,
    #news .section-heading,
    #news .news-list {
        width: min(100% - 32px, 1240px) !important;
    }

    .team-card {
        width: calc(100vw - 32px) !important;
        min-height: 0 !important;
        grid-template-columns: 1fr !important;
        gap: 22px !important;
        padding: 24px !important;
    }

    .team-avatar {
        width: 150px !important;
        justify-self: start !important;
    }

    .team-arrow {
        display: none !important;
    }

    #news .news-item {
        grid-template-columns: 1fr !important;
    }
}

/* Absolute final team arrow polish - keep at true file end. */
.team-arrow {
    top: calc(50% + 38px) !important;
    width: 46px !important;
    height: 46px !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 50% !important;
    background: rgba(25, 25, 25, 0.38) !important;
    color: #ffffff !important;
    backdrop-filter: blur(6px) !important;
}

.team-arrow:hover {
    border-color: #ff6900 !important;
    background: #ff6900 !important;
    transform: translateY(-2px) !important;
}

.team-arrow span {
    transform: translateY(-2px) !important;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
    font-size: 34px !important;
    font-weight: 300 !important;
}

.team-arrow-left {
    left: max(18px, calc((100vw - 1240px) / 2 - 24px)) !important;
}

.team-arrow-right {
    right: max(18px, calc((100vw - 1240px) / 2 - 24px)) !important;
}

@media (max-width: 760px) {
    .team-arrow {
        display: none !important;
    }
}

/* Absolute final user editor layout - keep at true file end. */
#users-panel.user-editing {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#users-panel.user-editing > .admin-panel-head {
    display: none !important;
}

#users-panel.user-editing .admin-user-list-view {
    display: none !important;
}

#users-panel.user-editing .admin-user-editor {
    display: block !important;
    width: min(760px, 100%) !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    border: 1px solid #e7e7e7 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 32px rgba(25, 25, 25, 0.05) !important;
}

#users-panel.user-editing .editor-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 22px 24px !important;
    border-bottom: 1px solid #eeeeee !important;
}

#users-panel.user-editing .editor-head h2 {
    margin: 0 !important;
    color: #191919 !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}

#users-panel.user-editing .editor-fields {
    display: grid !important;
    max-width: none !important;
    gap: 16px !important;
    padding: 24px !important;
}

#users-panel.user-editing .editor-fields label {
    display: grid !important;
    gap: 8px !important;
}

#users-panel.user-editing .editor-fields label > span {
    color: #666666 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

#users-panel.user-editing .editor-fields input,
#users-panel.user-editing .editor-fields select {
    width: 100% !important;
    height: 44px !important;
    border-radius: 6px !important;
    font-size: 15px !important;
}

#users-panel.user-editing .check-row {
    display: inline-flex !important;
    width: fit-content !important;
    grid-template-columns: none !important;
    align-items: center !important;
    gap: 10px !important;
}

#users-panel.user-editing .check-row input {
    width: 18px !important;
    height: 18px !important;
}

#users-panel.user-editing .button-row {
    margin-top: 2px !important;
}

#users-panel.user-editing .button-row button {
    min-width: 132px !important;
    min-height: 44px !important;
    border-radius: 6px !important;
}

#users-panel.user-editing .form-note {
    margin: 0 !important;
    color: #777777 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

@media (max-width: 640px) {
    #users-panel.user-editing .editor-head {
        display: grid !important;
        padding: 18px !important;
    }

    #users-panel.user-editing .editor-fields {
        padding: 18px !important;
    }

    #users-panel.user-editing .editor-head h2 {
        font-size: 24px !important;
    }

    #users-panel.user-editing .admin-new-button.secondary {
        width: 100% !important;
    }

    #users-panel.user-editing .button-row button {
        width: 100% !important;
    }
}
