html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    min-height: 100%;
}

/* Masa 主题变量在预渲染/断点未就绪时可能还没注入，rgba(var(--m-theme-*)) 会变成透明。 */
:root {
    --m-theme-surface: 255, 255, 255;
    --m-theme-on-surface: 27, 37, 89;
    --m-theme-surface-container: 255, 255, 255;
    --m-theme-on-surface-variant: 72, 85, 133;
    --m-theme-outline-variant: 216, 224, 236;
    --m-medium-emphasis-opacity: 0.6;
    --m-disabled-opacity: 0.38;
}

.navigation.m-navigation-drawer {
    background-color: #fff !important;
}

/* 只在 Masa 尚未 data-booted 时补占位；boot 之后仍走原来的 JS 布局，不改收缩/关闭/移动端。 */
@media (min-width: 960px) {
    .m-application:has(.navigation:not(.m-navigation-drawer--mini-variant):not(.m-navigation-drawer--close)) .m-main:not([data-booted="true"]) {
        padding-top: 60px;
        padding-left: 240px;
    }

    .m-application:has(.navigation:not(.m-navigation-drawer--mini-variant):not(.m-navigation-drawer--close)) .m-app-bar:not([data-booted="true"]) {
        left: 240px;
        width: calc(100% - 240px);
    }

    .m-application:has(.navigation.m-navigation-drawer--mini-variant) .m-main:not([data-booted="true"]) {
        padding-top: 60px;
        padding-left: 80px;
    }

    .m-application:has(.navigation.m-navigation-drawer--mini-variant) .m-app-bar:not([data-booted="true"]) {
        left: 80px;
        width: calc(100% - 80px);
    }
}

.m-main > .pa-6 {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

/* ------------------------------------------------------------------
 * Short viewport (Chrome 非全屏): 带底部操作栏的页级 Card 限高，
 * 正文区内滚，取消/保存始终贴卡底可见。不改各页 C# / 保存逻辑。
 * Dialog / Overlay / Menu / BottomSheet 内的 Card 在下方显式还原。
 * ------------------------------------------------------------------ */
.m-main {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.m-main .m-card:has(> .m-card__actions) {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 108px);
    max-height: calc(100dvh - 108px);
}

.m-main .m-card:has(> .m-card__actions) > .m-card__title,
.m-main .m-card:has(> .m-card__actions) > .m-card__subtitle {
    flex-shrink: 0;
}

.m-main .m-card:has(> .m-card__actions) > .m-card__text {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.m-main .m-card:has(> .m-card__actions) > .m-card__actions {
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.m-dialog .m-card:has(> .m-card__actions),
.m-overlay .m-card:has(> .m-card__actions),
.m-menu .m-card:has(> .m-card__actions),
.m-bottom-sheet .m-card:has(> .m-card__actions) {
    max-height: none;
}

.m-dialog .m-card:has(> .m-card__actions) > .m-card__text,
.m-overlay .m-card:has(> .m-card__actions) > .m-card__text,
.m-menu .m-card:has(> .m-card__actions) > .m-card__text,
.m-bottom-sheet .m-card:has(> .m-card__actions) > .m-card__text {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

h1:focus {
    outline: none;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

:root {
    --fd-primary: #552cf1;
    --fd-primary-hover: #4521d8;
    --fd-primary-soft: #f1effe;
    --fd-border: #d8e0ec;
    --fd-muted: #6b778d;
    --fd-text: #1e293b;
    --fd-save: #22a34a;
    --fd-save-hover: #1a8a3c;
    --fd-danger: #c5303e;
}

.navigation .m-list-group__header .m-list-item__content {
    flex: 1 1 auto !important;
}

.navigation .m-list-group__header .m-list-item__icon.m-list-group__header__append-icon {
    min-width: 24px !important;
    margin-left: auto !important;
    flex: 0 0 auto !important;
}

.navigation.m-navigation-drawer--mini-variant:not(.m-navigation-drawer--is-mouseover) .m-list-item,
.navigation.m-navigation-drawer--mini-variant:not(.m-navigation-drawer--is-mouseover) .m-list-group__header {
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-content: center !important;
}

.navigation.m-navigation-drawer--mini-variant:not(.m-navigation-drawer--is-mouseover) .m-list-item__icon {
    min-width: 24px !important;
    margin: 0 !important;
    justify-content: center !important;
}

.navigation.m-navigation-drawer--mini-variant:not(.m-navigation-drawer--is-mouseover) .m-list-item__content,
.navigation.m-navigation-drawer--mini-variant:not(.m-navigation-drawer--is-mouseover) .m-list-group__header__append-icon,
.navigation.m-navigation-drawer--mini-variant:not(.m-navigation-drawer--is-mouseover) .m-list-group__items {
    display: none !important;
}

.navigation .nav-sub-group > .m-list-group__header {
    min-height: 40px;
}

.navigation .m-list-group__items .m-list-group__items .m-list-item {
    padding-left: 76px !important;
}

.fd-page {
    width: min(1360px, 100%);
}

.fd-page button,
.fd-page input,
.fd-page select,
.fd-drawer button,
.fd-drawer input {
    font: inherit;
}

.fd-heading {
    min-height: 70px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.fd-heading h1 {
    margin: 0 !important;
    color: var(--fd-text) !important;
    font-family: inherit !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
}

.fd-heading p {
    margin: 6px 0 0 !important;
    color: var(--fd-muted) !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

.fd-card {
    border: 1px solid var(--fd-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(31, 42, 68, 0.045);
}

.fd-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 16px;
    color: #34415a;
    border: 1px solid var(--fd-border);
    border-radius: 7px;
    background: #fff;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.fd-btn:hover:not(.fd-btn-save):not(.fd-btn-primary):not(.fd-btn-danger):not(.fd-btn-danger-outline) {
    background: #f7f8fa;
}

.fd-btn:disabled {
    color: #a8b1bf;
    border-color: #d8e0ec;
    background: #f4f6f9;
    cursor: not-allowed;
}

.fd-btn-primary {
    color: #fff;
    border-color: var(--fd-primary);
    background: var(--fd-primary);
}

.fd-btn-primary:hover {
    border-color: var(--fd-primary-hover);
    background: var(--fd-primary-hover);
}

.fd-btn .m-icon {
    color: inherit !important;
}

.fd-btn-save {
    color: #fff !important;
    border-color: var(--fd-save) !important;
    background: var(--fd-save) !important;
}

.fd-btn-save:hover {
    color: #fff !important;
    border-color: var(--fd-save-hover) !important;
    background: var(--fd-save-hover) !important;
}

.fd-btn-save .m-icon,
.fd-btn-save .theme--light.m-icon {
    color: #fff !important;
    caret-color: #fff !important;
}

.fd-btn-danger,
.fd-btn-danger-outline {
    color: var(--fd-danger) !important;
    border-color: #e6b6bd !important;
    background: #fff !important;
}

.fd-btn-danger:hover:not(:disabled),
.fd-btn-danger-outline:hover:not(:disabled) {
    background: #fff5f6 !important;
}

.fd-btn-small {
    min-height: 36px;
    height: 36px;
    padding: 0 11px;
    font-size: 12px;
}

.fd-field {
    display: grid;
    gap: 6px;
    color: #556278;
    font-size: 12px;
    font-weight: 700;
}

.fd-star {
    color: var(--fd-danger);
    font-weight: 700;
}

.fd-field input,
.fd-field select {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    color: var(--fd-text);
    border: 1px solid var(--fd-border);
    border-radius: 7px;
    background: #fff;
}

.fd-field input:focus,
.fd-field select:focus {
    border-color: var(--fd-primary);
    outline: none;
}

.fd-empty {
    padding: 52px;
    color: var(--fd-muted);
    text-align: center;
}

.fd-size-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 16px;
}

.fd-size-groups,
.fd-size-detail {
    min-height: 560px;
    padding: 18px;
}

.fd-panel-head,
.fd-size-detail-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--fd-border);
}

.fd-page h2,
.fd-page h3,
.fd-panel-head h2,
.fd-size-detail-heading h3 {
    margin: 0 !important;
    color: var(--fd-text) !important;
    font-family: inherit !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.3 !important;
}

.fd-panel-head p,
.fd-size-detail-heading p {
    margin: 4px 0 0 !important;
    color: var(--fd-muted) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

.fd-size-group-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.fd-size-group-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    color: #354158;
    border: 1px solid var(--fd-border);
    border-radius: 8px;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.fd-size-group-item.active {
    color: #4930db;
    border-color: #cfc6ff;
    background: var(--fd-primary-soft);
}

.fd-size-group-item span {
    display: grid;
    gap: 4px;
}

.fd-size-group-item small {
    color: var(--fd-muted);
}

.fd-size-group-item em {
    font-style: normal;
    font-size: 12px;
}

.fd-size-detail-top .fd-field {
    width: min(420px, 52%);
}

.fd-button-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.fd-size-detail-heading {
    margin: 20px 0 12px;
}

.fd-size-detail-list {
    display: grid;
    gap: 8px;
}

.fd-size-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 86px;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--fd-border);
    border-radius: 8px;
    background: #fff;
}

.fd-drag-handle {
    display: grid;
    place-items: center;
    color: #9aa4b6;
    cursor: grab;
}

.fd-size-row input,
.fd-size-add-row input {
    height: 38px;
    padding: 0 10px;
    color: var(--fd-text);
    border: 1px solid var(--fd-border);
    border-radius: 7px;
}

.fd-size-delete {
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--fd-danger) !important;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.fd-size-delete .m-icon {
    color: inherit !important;
}

.fd-size-add-row {
    display: grid;
    grid-template-columns: minmax(180px, 320px) auto;
    justify-content: start;
    gap: 10px;
    margin-top: 14px;
}

.fd-catalog-card {
    overflow: hidden;
}

.fd-toolbar {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--fd-border);
}

.fd-toolbar-actions,
.fd-toolbar-search {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fd-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 280px;
}

.fd-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    z-index: 1;
    width: 16px;
    height: 16px;
    margin: 0;
    color: #8290a6;
    font-size: 16px;
    line-height: 16px;
    pointer-events: none;
    transform: translateY(-50%);
}

.fd-search input {
    width: 100%;
    height: 36px;
    padding: 0 36px 0 32px;
    color: var(--fd-text);
    border: 1px solid var(--fd-border);
    border-radius: 7px;
    background: #fff;
}

.fd-search-clear {
    position: absolute;
    z-index: 1;
    right: 5px;
    top: 4px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: var(--fd-muted);
    border: 0;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
}

.fd-search-clear:hover {
    color: var(--fd-primary);
    background: var(--fd-primary-soft);
}

.fd-refresh {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #69768d;
    border: 1px solid var(--fd-border);
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
}

.fd-refresh:hover {
    color: var(--fd-primary);
    border-color: #b9adf7;
    background: var(--fd-primary-soft);
}

.fd-table-wrap {
    overflow-x: auto;
}

.fd-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.fd-table th,
.fd-table td {
    height: 48px;
    padding: 9px 14px;
    text-align: left;
    white-space: nowrap;
}

.fd-table th {
    color: #46546b;
    background: #fbfcff;
    font-size: 12px;
    font-weight: 700;
}

.fd-table td {
    border-top: 1px solid var(--fd-border);
}

.fd-table tbody tr:hover td {
    background: #fbfaff;
}

.fd-table .fd-check {
    width: 48px;
    min-width: 48px;
    padding-right: 4px;
    padding-left: 16px;
    text-align: center;
}

.fd-table .fd-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--fd-primary);
}

.fd-code {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.fd-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fd-actions button {
    height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    color: var(--fd-primary);
    border: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.fd-actions button:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fd-actions button.danger {
    color: var(--fd-danger);
}

.fd-empty-cell {
    height: 180px !important;
    color: var(--fd-muted);
    text-align: center !important;
}

.fd-footer {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 18px;
    color: var(--fd-muted);
    border-top: 1px solid var(--fd-border);
    font-size: 12px;
}

.fd-spacer {
    flex: 1;
}

.fd-footer select {
    height: 32px;
    padding: 0 8px;
    color: #4f5d74;
    border: 1px solid var(--fd-border);
    border-radius: 6px;
    background: #fff;
}

.fd-pager {
    display: flex;
    gap: 4px;
    margin-left: 6px;
}

.fd-pager button {
    min-width: 32px;
    height: 32px;
    border: 1px solid #e0e4eb;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.fd-pager button.active {
    color: #fff;
    border-color: var(--fd-primary);
    background: var(--fd-primary);
}

.fd-pager button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.fd-drawer-layer {
    position: fixed;
    z-index: 90;
    inset: 0;
    background: rgba(30, 39, 62, 0.12);
}

.fd-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: min(430px, 94vw);
    height: 100%;
    display: grid;
    grid-template-rows: 62px minmax(0, 1fr) 72px;
    border-left: 1px solid var(--fd-border);
    background: #fff;
    box-shadow: -16px 0 40px rgba(25, 35, 58, 0.12);
}

.fd-drawer > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--fd-border);
}

.fd-drawer > header h2 {
    margin: 0 !important;
    color: var(--fd-text) !important;
    font-family: inherit !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.fd-drawer > header button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #6b778d;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.fd-drawer-body {
    overflow-y: auto;
    padding: 22px 24px 28px;
}

.fd-form-field {
    margin-bottom: 18px;
}

.fd-form-field small,
.fd-field small {
    display: block;
    margin-top: 6px;
    color: var(--fd-muted);
    font-size: 11px;
    font-weight: 400;
}

.fd-field-error {
    color: var(--fd-danger) !important;
}

.fd-page input.invalid,
.fd-drawer input.invalid {
    border-color: var(--fd-danger) !important;
}

.fd-drawer input.readonly,
.fd-drawer input[readonly] {
    color: #718096;
    border-color: #e1e6ee;
    background: #f2f4f8;
    cursor: not-allowed;
}

.fd-drawer > footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 24px;
    border-top: 1px solid var(--fd-border);
}

.fd-drawer > footer .fd-btn {
    min-width: 92px;
    height: 40px;
}

.m-main .od-page > .od-tabs:first-child {
    margin-top: -24px;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
}

.od-tabs {
    height: 56px;
    display: flex;
    align-items: stretch;
    gap: 24px;
    margin: 0 0 12px;
    padding: 0;
    background: #fff;
    border-bottom: 1px solid #e4e9f1;
    overflow: visible;
    box-sizing: border-box;
}

.od-tabs .od-tab {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 56px;
    padding: 0 4px;
    margin: 0;
    color: #475569;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    cursor: pointer;
}

.od-tabs .od-tab-logo {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    color: #7c6cf0;
    border-radius: 5px;
    background: #f5f3ff;
}

.od-tabs .od-tab-logo svg {
    display: block;
    color: inherit;
}

.od-tabs .od-tab:hover {
    color: #552cf1;
    background: #fff;
}

.od-tabs .od-tab.active,
.od-tabs .od-tab[aria-selected="true"] {
    color: #552cf1 !important;
    font-weight: 700;
}

.od-tabs .od-tab.active .od-tab-logo,
.od-tabs .od-tab[aria-selected="true"] .od-tab-logo {
    color: #552cf1;
    background: #f0eefc;
}

.od-tabs .od-tab.active::after,
.od-tabs .od-tab[aria-selected="true"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #552cf1;
}

.od-tab-count {
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    margin-left: 0;
    padding: 0 5px;
    border-radius: 9px;
    background: #f1f3f6;
    color: #64748b;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    align-items: center;
    justify-content: center;
}

.od-tabs .od-tab.active .od-tab-count {
    color: #556078;
    background: #f0eefc;
}

.od-tabs .od-tab.disabled {
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.72;
}

.od-tabs .od-tab.disabled .od-tab-logo {
    color: #94a3b8;
    background: #f1f3f6;
}

.od-tabs .od-tab.disabled:hover {
    color: #94a3b8;
    background: #fff;
}

.od-ratio-workspace {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.od-plan-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.od-plan-cards {
    display: flex;
    gap: 10px;
    min-width: 0;
    overflow-x: auto;
    flex: 1;
    padding: 2px 1px 4px;
    scrollbar-width: thin;
}

.od-plan-empty {
    flex: 1;
    min-height: 148px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 36px 24px;
    color: #475569;
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    border: 1px solid #e8edf4;
    border-radius: 10px;
    background: #f8fafc;
}

.od-plan-empty-title {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
}

.od-plan-empty-hint {
    font-size: 13px;
    font-weight: 400;
    color: #94a3b8;
}

.od-plan-card {
    appearance: none;
    position: relative;
    min-width: 286px;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 14px 10px !important;
    color: #334155;
    border: 1px solid #e4e9f1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(31, 42, 68, .035);
    text-align: left;
    transition: border-color .16s, background-color .16s, box-shadow .16s;
}

.od-plan-card-select {
    appearance: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.od-plan-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.od-plan-card-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    color: #94a3b8;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
}

.od-plan-card:hover .od-plan-card-delete,
.od-plan-card.active .od-plan-card-delete,
.od-plan-card-delete:hover,
.od-plan-card-delete:focus-visible {
    opacity: 1;
    pointer-events: auto;
}

.od-plan-card-delete:hover,
.od-plan-card-delete:focus-visible {
    color: #c5303e;
    background: #fff5f6;
}

.od-plan-card:not(.active):hover {
    border-color: #d7dde7;
    background: #fff;
    box-shadow: 0 1px 4px rgba(31, 42, 68, .04);
}

.od-plan-card.active {
    color: #334155;
    border-color: #cbd5e1;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .13), 0 2px 6px rgba(15, 23, 42, .06);
}

.od-plan-card-main {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 8px;
}

.od-plan-card-title {
    overflow: hidden;
    color: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.od-plan-card.active .od-plan-card-title {
    color: #552cf1;
}

.od-plan-card-sub {
    color: #64748b;
    font-size: 11px;
    white-space: nowrap;
}

.od-plan-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding-top: 6px;
    border-top: 1px solid #eef1f5;
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    white-space: nowrap;
}

.od-plan-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    color: inherit;
}

.od-plan-card-meta-creator {
    flex: 1 1 auto;
    min-width: 0;
}

.od-plan-card-meta-time {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
}

.od-plan-card-meta-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.od-plan-card-meta-icon {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    color: #94a3b8;
}

.od-plan-card-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f3f6;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    font-style: normal;
    white-space: nowrap;
}

.od-plan-card .od-plan-card-status {
    align-self: start;
    flex: 0 0 auto;
}

.od-plan-card-status.unsaved {
    background: #f1f3f6;
    color: #64748b;
}

.od-plan-card-status.pending {
    background: #fff5d6;
    color: #9a6700;
}

.od-plan-card-status.done {
    background: #eaf8ee;
    color: #18733a;
}

.od-ratio-view .m-card {
    overflow: hidden;
    border: 1px solid #e4e9f1 !important;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(31, 42, 68, .035) !important;
}

.od-ratio-view table {
    border-color: #e8edf3 !important;
}

.od-ratio-view th,
.od-ratio-view td {
    border-color: #e8edf3 !important;
}

.od-ratio-view thead th,
.od-ratio-view td[style*="background:#f7f7f7"],
.od-ratio-view td[style*="background:#f5f5f5"] {
    background: #f6f7fa !important;
    color: #526078 !important;
    font-weight: 700;
}

.od-ratio-workspace .container {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.od-ratio-overview {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 0 1px;
}

.od-ratio-data-card {
    overflow: hidden;
    border: 1px solid #e4e9f1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(31, 42, 68, .035);
}

.od-ratio-table-wrap {
    overflow-x: auto;
}

.od-ratio-qty-table,
.od-ratio-result-table,
.od-ratio-param-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.od-ratio-param-table {
    min-width: max-content;
}

.od-ratio-qty-table {
    min-width: 900px;
}

.od-ratio-qty-table th,
.od-ratio-qty-table td {
    height: 44px;
    padding: 7px 10px !important;
    border: 1px solid #e8edf3;
}

.od-ratio-qty-table thead th {
    background: #f6f7fa;
    color: #526078;
    font-weight: 700;
    text-align: left;
}

.od-ratio-qty-table tbody td,
.od-ratio-qty-table tbody th {
    background: #fff;
    color: #334155;
    font-weight: 400;
}

.od-ratio-qty-table thead th.od-ratio-text,
.od-ratio-qty-table tbody th.od-ratio-text,
.od-ratio-qty-table td.od-ratio-text,
.od-ratio-qty-table tbody th {
    width: 1%;
    font-weight: 700;
    text-align: left !important;
    white-space: nowrap;
    padding-left: 14px !important;
    padding-right: 12px !important;
    vertical-align: middle;
}

.od-ratio-qty-table tbody td.od-ratio-text {
    width: auto;
    font-weight: 400;
}

.od-ratio-qty-table .od-ratio-summary,
.od-ratio-qty-table .od-ratio-grand {
    background: #edf1f6 !important;
    font-weight: 700;
}

.od-ratio-num {
    text-align: center;
}

.od-ratio-sheet {
    width: 100%;
    border-collapse: collapse;
    font: 12px/1.4 "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    color: #334155;
}

.od-ratio-sheet th,
.od-ratio-sheet td {
    height: 46px;
    padding: 5px 7px;
    border: 1px solid #e8edf3;
    text-align: center;
    vertical-align: middle;
    background: #fff;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: 400;
}

.od-ratio-sheet thead th {
    background: #f6f7fa;
    color: #526078;
    font-weight: 700;
    white-space: nowrap;
}

.od-ratio-sheet .od-ratio-sheet-group {
    background: #eef6e6;
    color: #334155;
    font-weight: 700;
}

.od-ratio-sheet .od-ratio-sheet-sizes {
    background: #fafafa;
    color: #526078;
    font-weight: 700;
}

.od-ratio-sheet .od-ratio-sheet-total {
    background: #f0f2f5;
    font-weight: 700;
}

.od-ratio-sheet-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    font-size: 12px;
    font-weight: 400;
    color: #334155;
}

.od-ratio-sheet .od-ratio-check {
    width: 14px;
    height: 14px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #552cf1;
}

.od-ratio-sheet .od-ratio-check.is-mixed {
    appearance: none;
    border: 1px solid #9b88f7;
    border-radius: 3px;
    background: #552cf1;
    position: relative;
}

.od-ratio-sheet .od-ratio-check.is-mixed::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    top: 5px;
    height: 2px;
    background: #fff;
}

.od-ratio-param-table th,
.od-ratio-param-table td {
    height: 42px;
    padding: 8px 12px !important;
    border: 1px solid #e8edf3;
}

.od-ratio-overview .od-ratio-param-table tr > :first-child {
    padding-left: 14px !important;
}

.od-ratio-param-table th {
    width: 10%;
    color: #526078;
    background: #f6f7fa;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-align: left;
}

.od-ratio-param-table td {
    color: #334155;
    background: #fff;
    text-align: left;
}

.od-ratio-result-table {
    min-width: 760px;
}

.od-ratio-scheme-summary {
    min-width: max-content;
}

.od-ratio-scheme-summary th {
    white-space: nowrap;
}

.od-ratio-result-table th,
.od-ratio-result-table td {
    height: 44px;
    padding: 7px 11px !important;
    border: 1px solid #e8edf3;
    text-align: center;
}

.od-ratio-result-table thead th {
    background: #f6f7fa;
    color: #526078;
    font-weight: 700;
}

.od-ratio-result-table tbody td,
.od-ratio-result-table tbody th {
    background: #fff;
    color: #334155;
}

.od-ratio-result-table tbody th {
    font-weight: 700;
    text-align: left;
}

.od-ratio-actions {
    display: flex;
    align-items: center;
    min-height: 64px;
    margin-top: 2px;
    padding: 12px 14px !important;
    border: 1px solid #e4e9f1;
    border-radius: 10px;
    background: #fff;
}

.od-ratio-action-right {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: auto;
    justify-content: flex-end;
}

.od-ratio-btn {
    appearance: none;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 16px !important;
    border: 1px solid #d8e0ec;
    border-radius: 7px;
    background: #fff;
    color: #34415a;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.od-ratio-btn svg {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.od-ratio-btn:disabled {
    opacity: .56;
    cursor: not-allowed;
}

.od-ratio-btn-assistant {
    color: #fff;
    border-color: #2563eb;
    background: #2563eb;
}

.od-ratio-btn-assistant:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.od-ratio-btn-save {
    color: #fff;
    border-color: #15803d;
    background: #15803d;
}

.od-ratio-btn-save:hover {
    background: #116832;
    border-color: #116832;
}

.od-layout-rebuild-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 10px 14px;
    border: 1px solid #f6d98a;
    border-radius: 8px;
    background: #fff8e6;
    color: #8a6d1d;
    font-size: 13px;
    font-weight: 600;
}

.od-layout-rebuild-banner-wait {
    color: #b45309;
    font-weight: 700;
}

.od-layout-rebuild-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #334155;
    cursor: pointer;
}

.od-layout-rebuild-btn:hover,
.od-layout-rebuild-btn.is-active {
    color: #ea580c;
}

.od-layout-rebuild-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.od-layout-rebuild-btn svg {
    display: block;
    width: 18px;
    height: 18px;
}

.od-ratio-btn-print {
    color: #fff;
    border-color: #552cf1;
    background: #552cf1;
}

.od-ratio-btn-print:hover {
    background: #4521d8;
    border-color: #4521d8;
}

.od-ratio-btn-back {
    color: #552cf1;
    border-color: #9b88f7;
    background: #fff;
}

.od-ratio-btn-back:hover {
    border-color: #552cf1;
    background: #f1effe;
}

.od-ratio-btn-boke {
    color: #a85a0d;
    border-color: #e7b36f;
    background: #fff8eb;
}

.od-ratio-btn-boke:hover {
    color: #8d4908;
    border-color: #d9933d;
    background: #fff1d8;
}

.od-highlow-bar {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.od-highlow-bar .od-ratio-btn:disabled {
    opacity: .56;
    cursor: not-allowed;
}

.od-confirm-table-wrap.is-editing .od-confirm-td {
    padding: 2px !important;
}

.od-confirm-td.is-dirty {
    background: #fff8d9;
}

.od-confirm-cell-input {
    width: 100%;
    min-width: 52px;
    box-sizing: border-box;
    border: 1px solid #d8e0ec;
    border-radius: 4px;
    text-align: center;
    padding: 4px 2px;
    font-size: 12px;
    font-weight: 600;
    color: #34415a;
    background: #fff;
}

.od-confirm-cell-input.is-dirty,
.od-confirm-td.is-dirty .od-confirm-cell-input {
    background: #fff8d9;
    border-color: #e6c96a;
}

.od-confirm-cell-input:focus {
    outline: none;
    border-color: #552cf1;
    box-shadow: 0 0 0 2px rgba(85, 44, 241, .12);
}

.od-ratio-draft-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 10px;
    padding: 10px 12px !important;
    border: 1px solid #dbe7fb;
    border-radius: 8px;
    background: #f4f8ff;
}

.od-ratio-draft-heading strong {
    color: #1e3a8a;
    font-size: 14px;
}

.od-ratio-param-wrap {
    container-type: inline-size;
    container-name: ratio-params;
}

.od-ratio-param-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #e4e9f1;
    border-radius: 8px;
    background: #fff;
}

@supports (grid-template-columns: subgrid) {
    .od-ratio-param-grid {
        grid-template-columns: repeat(4, max-content minmax(0, 1fr)) max-content minmax(160px, 1fr);
    }
}

.od-ratio-param {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-right: 1px solid #e4e9f1;
    border-bottom: 1px solid #e4e9f1;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin: 0;
}

@supports (grid-template-columns: subgrid) {
    .od-ratio-param {
        display: grid;
        grid-template-columns: subgrid;
        grid-column: span 2;
        column-gap: 8px;
        row-gap: 0;
        justify-content: start;
    }
}

.od-ratio-param:nth-child(5),
.od-ratio-param:nth-child(10) {
    border-right: 0;
}

.od-ratio-param:nth-child(n+6) {
    border-bottom: 0;
}

.od-ratio-param-input {
    width: 54px;
    height: 34px;
    border: 1px solid #d7dee8;
    border-radius: 7px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    background: #fff;
}

.od-ratio-param-input:disabled {
    background: #f4f6f9;
    color: #94a3b8;
}

.od-ratio-param-select {
    width: 64px;
    min-width: 64px;
    max-width: 64px;
    height: 34px;
    padding: 0 6px;
    border: 1px solid #d7dee8;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    background: #fff;
    justify-self: start;
}

.od-ratio-param-text,
.od-ratio-param-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-weight: 700;
}

.od-ratio-param-range {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.od-ratio-param-switch {
    white-space: nowrap;
}

.od-ratio-param-perf {
    gap: 14px;
}

.od-ratio-param-default,
.od-ratio-param-avg {
    justify-content: flex-start;
    justify-items: start;
}

.od-ratio-param-default .od-ratio-btn-settings {
    grid-column: 1 / -1;
    justify-self: start;
    width: auto;
    min-width: 160px;
}

.od-ratio-btn-settings {
    color: #552cf1;
    border-color: #9b88f7;
    background: #fff;
}

.od-ratio-btn-settings:hover {
    background: #f5f2ff;
    border-color: #552cf1;
}

/* 笔记本/窄内容区：5 列 nowrap + 侧栏后实际宽度不够，会叠字。
   按内容区（container）折成 2 列；窗口宽度作无 container 时的退路。 */
@container ratio-params (max-width: 1280px) {
    .od-ratio-param-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    @supports (grid-template-columns: subgrid) {
        .od-ratio-param-grid {
            grid-template-columns: repeat(2, max-content minmax(0, 1fr));
        }
    }

    .od-ratio-param {
        min-width: 0;
        border-right: 1px solid #e4e9f1;
        border-bottom: 1px solid #e4e9f1;
    }

    .od-ratio-param:nth-child(even) {
        border-right: 0;
    }

    .od-ratio-param:nth-child(n+6) {
        border-bottom: 1px solid #e4e9f1;
    }

    .od-ratio-param:nth-last-child(-n+2) {
        border-bottom: 0;
    }
}

@media (max-width: 1100px) {
    .od-ratio-param-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    @supports (grid-template-columns: subgrid) {
        .od-ratio-param-grid {
            grid-template-columns: repeat(2, max-content minmax(0, 1fr));
        }
    }

    .od-ratio-param {
        min-width: 0;
        border-right: 1px solid #e4e9f1;
        border-bottom: 1px solid #e4e9f1;
    }

    .od-ratio-param:nth-child(even) {
        border-right: 0;
    }

    .od-ratio-param:nth-child(n+6) {
        border-bottom: 1px solid #e4e9f1;
    }

    .od-ratio-param:nth-last-child(-n+2) {
        border-bottom: 0;
    }
}

.od-progress-drawer {
    position: fixed;
    z-index: 120;
    right: 24px;
    bottom: 18px;
    left: 264px;
    max-height: calc(100vh - 90px);
    overflow: auto;
    padding: 14px;
    border: 1px solid #e4e9f1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(28, 38, 68, .22);
}

.od-progress-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.od-progress-message {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

.od-progress-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.od-progress-status:before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: "";
}

.od-progress-status.online {
    color: #16803d;
    background: #eaf8ee;
}

.od-progress-status.online:before {
    background: #22b84c;
}

.od-progress-status.offline {
    color: #64748b;
    background: #f1f3f6;
}

.od-progress-status.offline:before {
    background: #94a3b8;
}

.od-progress-chip {
    padding: 5px 8px;
    color: #64748b;
    border: 1px solid #e4e9f1;
    border-radius: 7px;
    background: #fafbfe;
    font-size: 11px;
}

.od-progress-chip-pct {
    color: #5b4dff;
    border-color: #cfd3ff;
    background: #f3f4ff;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    min-width: 3.2em;
    text-align: center;
}

.od-progress-toggle,
.od-progress-cancel {
    appearance: none;
    border: 0;
    background: transparent;
    color: #5b4dff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 4px;
    min-height: 28px;
    position: relative;
    z-index: 2;
}

.od-progress-cancel {
    padding: 4px 10px;
    border: 1px solid #e4e9f1;
    border-radius: 7px;
    background: #fff;
}

.od-progress-ad {
    height: 310px;
    margin: 12px 0 0;
    overflow: hidden;
    border: 1px solid #dfe5f4;
    border-radius: 10px;
    background: #f4f6fd;
    cursor: pointer;
}

.od-progress-ad-image,
.od-progress-ad-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.od-progress-ad-image {
    object-fit: contain;
}

.od-progress-drawer.collapsed .od-progress-ad {
    display: none;
}

.od-progress-track {
    position: relative;
    height: 16px;
    margin-top: -3px;
    border: 1px solid #e4e9f1;
    border-radius: 9px;
    background: #f1f3f8;
}

.od-progress-drawer.collapsed .od-progress-track {
    margin-top: 12px;
}

.od-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: #5b4dff;
    transition: width 1s linear;
}

.od-progress-horse {
    position: absolute;
    top: -43px;
    width: 58px;
    transform: translateX(-50%);
    animation: od-horse-bob .55s ease-in-out infinite alternate;
    transition: left 1s linear;
}

.od-progress-horse img {
    width: 58px;
    height: 38px;
    object-fit: contain;
}

.od-progress-caption {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 9px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.od-progress-caption-result {
    grid-column: 2;
    justify-self: center;
    font-size: 13px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.od-progress-caption-percent {
    grid-column: 3;
    justify-self: end;
    color: #5b4dff;
    font-variant-numeric: tabular-nums;
}

@keyframes od-horse-bob {
    from { transform: translate(-50%, 5px); }
    to { transform: translate(-50%, -4px); }
}

@media (prefers-reduced-motion: reduce) {
    .od-progress-fill,
    .od-progress-horse {
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 960px) {
    .od-progress-drawer {
        left: 12px;
        right: 12px;
    }

    .od-progress-ad {
        height: 240px;
    }
}

.od-page {
    padding-bottom: 24px;
    min-width: 0;
    max-width: 100%;
    color: #1e293b;
    font: 14px/1.5 "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

.od-cad-modal {
    font: 14px/1.5 "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
    border-radius: 10px !important;
    overflow: hidden;
}

.od-cad-modal-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 0;
}

.od-cad-modal-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.od-cad-modal-title {
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
    line-height: 40px;
}

.od-cad-modal-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: stretch;
    padding: 8px 16px 20px;
}

.od-cad-modal-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.od-cad-modal-file {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.od-cad-modal-file .od-input {
    flex: 1;
    min-width: 0;
    margin-top: 0;
}

.od-cad-pick {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.od-cad-file-input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.od-cad-modal-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.od-cad-modal-actions .od-btn {
    min-width: 88px;
}

.od-scheme {
    margin-bottom: 8px;
    color: #6b778d;
    font-size: 13px;
}

.od-context-card,
.od-fabrics-card {
    margin: 0 0 12px;
    border: 1px solid #e4e9f1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(31, 42, 68, 0.035);
}

.od-context-card {
    overflow: visible;
    position: relative;
    z-index: 4;
}

.od-fabrics-card {
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.od-style-bar {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    margin: 0;
    padding: 5px 14px;
    border-bottom: 1px solid #edf0f4;
}

.od-style-tabs-scroll {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.od-style-tabs {
    display: flex;
    align-items: stretch;
    gap: 6px;
    flex-wrap: nowrap;
    min-width: max-content;
    height: 44px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.od-style-tabs .od-style-tab {
    position: relative;
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
    height: 44px;
    margin: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
}

.od-style-tabs .od-style-tab:hover {
    background: #fbfaff;
}

.od-style-tabs .od-style-tab.active {
    color: #552cf1;
    background: #faf8ff;
}

.od-style-tabs .od-style-tab.active::after {
    content: "";
    position: absolute;
    right: 8px;
    bottom: 0;
    left: 8px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #552cf1;
}

.od-style-tab-main {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 220px;
    min-width: 180px;
    max-width: 260px;
    height: 42px;
    padding: 0 10px;
    margin: 0;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-align: left;
}

.od-style-tabs .od-style-tab.active .od-style-tab-main {
    color: #552cf1;
}

.od-style-tab-close {
    visibility: hidden;
    opacity: 0;
    appearance: none;
    width: 34px;
    height: 42px;
    margin: 0;
    padding: 0;
    color: #94a3b8;
    border: 0;
    border-left: 1px solid #edf0f4;
    border-radius: 0 6px 6px 0;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    pointer-events: none;
}

.od-style-tab:hover .od-style-tab-close,
.od-style-tab-close:hover,
.od-style-tab-close:focus-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.od-style-tab-close:hover {
    color: #c5303e;
    background: #fff5f6;
}

.od-style-index {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    color: #552cf1;
    border-radius: 6px;
    background: #f1effe;
    font-size: 12px;
    font-weight: 800;
}

.od-style-tabs .od-style-tab strong {
    display: block;
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.od-style-thumb {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    overflow: hidden;
    border: 1px solid #dce3ed;
    border-radius: 6px;
    background: #f7f8fb;
    cursor: zoom-in;
}

.od-style-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.od-style-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.od-chip-btn {
    appearance: none;
    height: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.od-chip-btn:hover {
    color: #552cf1;
    border-color: #a797f7;
    background: #faf8ff;
}

.od-chip-btn svg {
    display: block;
}

.od-link-btn {
    appearance: none;
    border: 0;
    background: none;
    color: #552cf1;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.od-lock-wrap {
    position: relative;
    display: inline-flex;
}

.od-lock-mask {
    position: absolute;
    inset: -4px;
    cursor: not-allowed;
}

.od-style-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 12px 14px;
    margin: 0;
    min-width: 0;
    max-width: 100%;
    box-shadow: none;
}

.od-style-cad {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.5;
    color: #445269;
}

.od-style-cad-label {
    flex: 0 0 auto;
    font-weight: 800;
}

.od-style-cad-value {
    /* 主截断在 CadFileDisplayName（10 字）；此处防止异常超长串撑破布局 */
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: #1e293b;
}

.od-style-cad-value.is-empty {
    color: #94a3b8;
    font-weight: 500;
}

.od-style-cad-tip {
    display: inline-block;
    max-width: min(480px, 70vw);
    white-space: normal;
    word-break: break-all;
    font-size: 12px;
    line-height: 1.45;
}

.od-style-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.65fr) minmax(160px, auto);
    gap: 12px;
    align-items: end;
}

.od-style-code,
.od-style-order,
.od-style-size {
    grid-column: auto;
    grid-row: auto;
}

.od-style-code-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.od-style-code-control .od-input {
    min-width: 0;
    flex: 1;
    margin-top: 0;
}

.od-field {
    display: flex;
    flex-direction: column;
    gap: 0;
    color: #445269;
    font-size: 12px;
    font-weight: 800;
}

.od-field > span {
    line-height: 1.2;
}

.od-field em {
    color: #c5303e;
    font-style: normal;
}

.od-input,
.od-field .od-input {
    height: 40px;
    margin-top: 6px;
    border: 1px solid #d8e0ec;
    border-radius: 7px;
    padding: 0 10px;
    color: #1e293b;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}

.od-input[readonly],
.od-input:disabled {
    background: #f3f5f8;
    color: #5c6880;
    border-color: #e0e5ee;
    cursor: not-allowed;
}

.od-link-btn.disabled,
.od-link-btn:disabled {
    color: #c5cad3;
    cursor: not-allowed;
    pointer-events: none;
}

.od-style-settings {
    position: relative;
    align-self: end;
    justify-self: stretch;
    z-index: 6;
}

.od-style-settings .parameter-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    z-index: 20;
    min-width: 240px;
    max-width: 320px;
    padding: 8px 10px;
    border: 1px solid #d8e0ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(31, 42, 68, 0.16);
}

.od-settings-btn {
    appearance: none;
    box-sizing: border-box;
    width: 100%;
    min-width: 160px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 20px;
    border: 1px solid #9b88f7;
    background: #fff;
    color: #552cf1;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.od-settings-btn svg {
    display: block;
    flex: 0 0 16px;
}

.od-settings-btn:hover {
    background: #f1effe;
}

.od-input.invalid {
    border-color: #d32f2f;
}

.od-field-error {
    display: block;
    margin-top: 4px;
    color: #d32f2f;
    font-size: 12px;
    font-weight: 400;
}

.od-fabric-toolbar {
    display: flex;
    align-items: center;
    min-height: 54px;
    margin: 0;
    padding: 8px 14px;
    background: #fff;
    border-bottom: 1px solid #e4e9f1;
}

.od-add-fabric {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    border: 0;
    background: #552cf1;
    color: #fff;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.od-add-fabric:hover {
    background: #4521d8;
}

.od-add-fabric svg {
    display: block;
}

.od-fabric-stats {
    margin-left: auto;
    color: #6b778d;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    text-align: right;
    white-space: nowrap;
}

.od-fabric-stats strong {
    color: #435067;
    font-size: 12px;
    font-weight: 700;
}

.od-fabric-stack {
    display: grid;
    gap: 12px;
    padding: 12px 14px 14px;
}

.od-fabric-card {
    background: #fff;
    border: 1px solid #e4e9f1;
    border-radius: 10px;
    padding: 0;
    margin: 0;
    box-shadow: none;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}

.od-fabric-card.is-main {
    border-color: #d7f3e3;
    box-shadow: inset 3px 0 0 #22c55e;
}

.od-fabric-meta {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    margin: 0;
    padding: 8px 12px 8px 14px;
    background: #fff;
    border-bottom: 1px solid #e4e9f1;
    border-radius: 0;
}

.od-fabric-card.is-folded .od-fabric-meta {
    border-bottom: 0;
}

.od-fabric-fold {
    appearance: none;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 1px solid #d5dbe6;
    border-radius: 7px;
    background: #fff;
    color: #526078;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.od-fabric-fold:hover,
.od-fabric-fold:focus-visible {
    border-color: #9b88f7;
    color: #552cf1;
    outline: none;
}

.od-fabric-meta-right {
    margin-left: auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.od-inline {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.od-inline > span {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
}

.od-inline:not(.od-fabric-name-field) .od-input,
.od-inline:not(.od-fabric-name-field) input {
    width: 54px;
    height: 28px;
    margin-top: 0;
    padding: 0 4px;
    color: #1e293b;
    border: 0;
    border-bottom: 1px solid #b9c2d0;
    border-radius: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
}

.od-inline .od-input:hover {
    border-bottom-color: #8d98aa;
}

.od-inline .od-input:focus {
    border: 1px solid #552cf1;
    border-radius: 5px;
    background: #fff;
    outline: none;
}

.od-inline .fd-suggest-caret {
    display: none;
}

.od-inline .fd-suggest,
.od-inline .fd-suggest-combo,
.od-inline .fd-suggest-activator {
    width: auto;
    height: 28px;
    flex: 0 0 auto;
}

.od-inline.od-inline-composition .od-input,
.od-inline.od-inline-composition input,
.od-inline.od-inline-composition .fd-suggest,
.od-inline.od-inline-composition .fd-suggest-combo,
.od-inline.od-inline-composition .fd-suggest-activator {
    width: 132px;
    flex: 0 0 132px;
    text-align: left;
    padding: 0 6px;
}

.od-inline-num .od-input {
    width: 48px;
}

.od-inline-num .od-input[type="number"] {
    -moz-appearance: textfield;
}

.od-inline-num .od-input::-webkit-outer-spin-button,
.od-inline-num .od-input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.od-fabric-name-field .od-fabric-name {
    width: min(350px, 28vw);
    height: 34px;
    margin-top: 0;
    padding: 0 8px;
    border: 0;
    border-bottom: 1px solid #aeb8c8;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.od-inline em {
    color: #9aa3b2;
    font-style: normal;
    font-size: 11px;
}

.od-reuse-hint {
    padding: 2px 12px 8px;
    color: #9aa6b8;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.od-fabric-name-field .od-fabric-name-suggest,
.od-fabric-name-field .od-fabric-name-suggest .fd-suggest-activator {
    width: min(350px, 28vw);
    height: 34px;
    flex: 0 0 auto;
}

.od-fabric-name-field .od-fabric-name-suggest .od-fabric-name {
    width: 100%;
    padding-right: 22px;
}

.od-inline.od-fabric-name-field .fd-suggest-caret {
    display: block;
}

.m-menu__content.od-reuse-menu {
    min-width: 280px;
}

.od-main-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid #bee3ca;
    border-radius: 5px;
    background: #edf8f1;
    color: #16a34a;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.od-set-main {
    appearance: none;
    height: 28px;
    padding: 0 8px;
    border: 1px solid #b7dcc4;
    border-radius: 5px;
    background: #fff;
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.od-fabric-actions {
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

.od-fabric-card:hover .od-fabric-actions,
.od-fabric-card:focus-within .od-fabric-actions,
.fabric-section:hover .od-fabric-actions,
.fabric-section:focus-within .od-fabric-actions {
    opacity: 1;
    pointer-events: auto;
}

.od-fabric-delete {
    appearance: none;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    margin-left: 4px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    opacity: 0;
    transition: color 0.16s, opacity 0.16s, background-color 0.16s;
}

.od-fabric-card:hover .od-fabric-delete,
.od-fabric-card:focus-within .od-fabric-delete,
.fabric-section:hover .od-fabric-delete,
.fabric-section:focus-within .od-fabric-delete {
    opacity: 1;
}

.od-fabric-delete:hover,
.od-fabric-delete:focus-visible {
    color: #c5303e;
    background: #fff5f6;
}

.od-table-add {
    appearance: none;
    border: 0;
    background: none;
    color: #552cf1;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 4px;
}

.od-total-row {
    background: #f8f9fa;
    font-weight: 600;
}

.od-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #e4e9f1;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

.od-footer-spacer {
    flex: 1;
}

.od-footer-left,
.od-footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.od-btn {
    appearance: none;
    min-height: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 16px;
    color: #34415a;
    border: 1px solid #9aa6b8;
    border-radius: 7px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.od-btn:hover {
    border-color: #7f8b9d;
    background: #f7f8fa;
}

.od-btn svg {
    display: block;
}

.od-btn:disabled {
    opacity: 0.56;
    cursor: not-allowed;
}

.od-btn-save {
    color: #fff;
    border-color: #15803d;
    background: #15803d;
}

.od-btn-save:hover {
    border-color: #116832;
    background: #116832;
}

.od-btn-primary {
    color: #fff;
    border-color: #552cf1;
    background: #552cf1;
}

.od-btn-primary:hover {
    border-color: #4521d8;
    background: #4521d8;
}

.od-btn-back,
.od-btn-ratio {
    appearance: none;
    border: 0;
    border-radius: 6px;
    height: 40px;
    padding: 0 18px;
    cursor: pointer;
    font-size: 14px;
}

.od-btn-save:disabled,
.od-btn-ratio:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fabric-section {
    position: relative;
}

.fabric-section .hover-main {
    display: none;
}

.fabric-section:hover .hover-main {
    display: inline-flex;
}

.fabric-table-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    border: 0;
    border-radius: 0;
}

.fabric-table-wrap.is-folded {
    display: none;
}

.od-grid {
    --od-color-w: 158px;
    --od-weight-w: 88px;
    --od-size-w: 72px;
    --od-total-w: 92px;
    --od-size-count: 1;
    width: max-content;
    min-width: calc(var(--od-color-w) + var(--od-weight-w) + var(--od-total-w) + var(--od-size-count) * var(--od-size-w));
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.od-grid col.od-col-color {
    width: var(--od-color-w);
}

.od-grid col.od-col-weight {
    width: var(--od-weight-w);
}

.od-grid col.od-col-size {
    width: var(--od-size-w);
}

.od-grid col.od-col-total {
    width: var(--od-total-w);
}

.od-grid col.od-col-action {
    width: 96px;
}

.od-grid th,
.od-grid td {
    height: 46px;
    border: 0;
    border-right: 1px solid #e8edf3;
    border-bottom: 1px solid #e8edf3;
    padding: 5px 7px;
    text-align: center;
    vertical-align: middle;
    background: #fff;
    box-sizing: border-box;
}

.od-grid thead th {
    border-top: 1px solid #e8edf3;
}

.od-grid th:first-child,
.od-grid td:first-child {
    border-left: 1px solid #e8edf3;
}

.od-grid tbody tr:hover td {
    background: #fbfaff;
}

.od-grid th {
    background: #f6f7fa;
    font-weight: 700;
    white-space: nowrap;
    color: #526078;
    font-size: 12px;
}

.od-grid .col-color {
    position: sticky;
    left: 0;
    z-index: 3;
    width: var(--od-color-w);
    min-width: var(--od-color-w);
    max-width: var(--od-color-w);
    text-align: left;
    white-space: nowrap;
    overflow: visible;
    background: #fff;
}

.od-grid .col-weight {
    position: sticky;
    left: var(--od-color-w);
    z-index: 3;
    width: var(--od-weight-w);
    min-width: var(--od-weight-w);
    max-width: var(--od-weight-w);
    background: #fff;
    box-shadow: 5px 0 8px rgba(31, 42, 68, 0.05);
}

.od-grid .col-size {
    width: var(--od-size-w);
    min-width: var(--od-size-w);
    max-width: var(--od-size-w);
}

.od-grid td.col-size {
    overflow: hidden;
}

.od-grid .col-total {
    position: sticky;
    right: 0;
    z-index: 3;
    width: var(--od-total-w);
    min-width: var(--od-total-w);
    max-width: var(--od-total-w);
    background: #f0f2f5;
    box-shadow: -5px 0 8px rgba(31, 42, 68, 0.05);
}

.od-grid .col-action {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    white-space: nowrap;
    padding-left: 10px;
    padding-right: 10px;
}

.od-grid td.col-color:hover,
.od-grid td.col-color:focus-within,
.od-grid td.col-color:has(.fd-suggest.is-open) {
    z-index: 28;
}

.od-grid thead .col-color,
.od-grid thead .col-weight,
.od-grid thead .col-total {
    z-index: 5;
}

.od-grid thead .col-color,
.od-grid thead .col-weight {
    background: #f6f7fa;
}

.od-grid thead .col-total {
    background: #f0f2f5;
}

.od-grid tbody td.col-color,
.od-grid tbody td.col-weight {
    background: #fff;
}

.od-grid tbody td.col-total,
.od-grid tbody td.col-total strong {
    background: #edf1f6;
    color: #1e293b;
    font-weight: 700;
}

.od-grid tbody tr:hover td.col-color,
.od-grid tbody tr:hover td.col-weight {
    background: #fbfaff;
}

.od-grid tbody tr:hover td.col-total,
.od-grid tbody tr:hover td.col-total strong {
    background: #edf1f6;
}

.od-grid .col-color-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.od-size-head {
    position: relative;
    display: block;
}

.od-size-head .size-header-input {
    width: 100%;
    min-width: 0;
    display: block;
}

.od-size-plus {
    position: absolute;
    top: 50%;
    right: 2px;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #552cf1;
    font-size: 16px;
    line-height: 20px;
    cursor: pointer;
    padding: 0;
    transform: translateY(-50%);
}

.od-size-plus:hover {
    background: #ede9fe;
}

.od-total-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    padding: 0 22px 0 6px;
    box-sizing: border-box;
}

.od-grid thead .col-total .od-size-plus {
    position: absolute;
    top: 50%;
    right: 2px;
    left: auto;
    transform: translateY(-50%);
    z-index: 7;
}

.od-grid .size-header-input,
.od-grid .table-input {
    width: 100%;
    min-width: 0;
    height: 32px;
    box-sizing: border-box;
    padding: 0 6px;
    color: #334155;
    border: 0;
    border-bottom: 1px solid #cbd5e1;
    border-radius: 0;
    background: transparent;
    font: inherit;
    font-size: 13px;
    text-align: center;
}

.od-grid .od-size-head .size-header-input {
    padding-right: 22px;
}

.od-grid .od-hover-control .color-input {
    padding-right: 40px;
}

.od-grid .table-input:focus,
.od-grid .size-header-input:focus {
    outline: none;
    border-bottom-color: #552cf1;
    background: #fff;
}

.od-col-del {
    appearance: none;
    display: inline-flex;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid #ff7875;
    border-radius: 4px;
    background: #fff1f0;
    color: #ff4d4f;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.od-col-del svg {
    display: block;
    color: inherit;
    stroke: currentColor;
}

.od-col-del:hover {
    background: #ffe4e1;
    border-color: #ff4d4f;
}

.col-hover-del {
    position: relative;
    overflow: visible;
}

.col-hover-del .od-col-del {
    position: absolute;
    top: 50%;
    left: auto;
    right: 2px;
    z-index: 6;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
}

.col-hover-del:hover .od-col-del,
.col-hover-del:focus-within .od-col-del {
    opacity: 1;
    pointer-events: auto;
}

.od-hover-control {
    position: relative;
    overflow: visible;
}

.od-hover-control .color-input {
    padding-right: 40px;
}

.od-hover-control .fd-suggest-caret {
    right: 24px;
}

.od-hover-control .od-col-del {
    position: absolute;
    top: 50%;
    left: auto;
    right: 2px;
    z-index: 8;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
}

.od-hover-control:hover .od-col-del,
.od-hover-control:focus-within .od-col-del {
    opacity: 1;
    pointer-events: auto;
}

.od-row-del {
    appearance: none;
    border: 0;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 4px;
    height: 26px;
    padding: 0 10px;
    font-size: 12px;
    cursor: pointer;
}

.od-row-del:hover {
    background: #fecaca;
}

.od-total-row td {
    background: #f8f9fb !important;
    color: #6b778d;
}

.fd-suggest {
    position: relative;
    width: 100%;
    display: block;
}

.fd-suggest.is-open {
    z-index: 30;
}

.fd-suggest-activator {
    position: relative;
    width: 100%;
}

.fd-suggest-combo input {
    padding-right: 22px;
}

.fd-suggest-caret {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 0;
    background: none;
    color: #6b778d;
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
    padding: 0;
}

.fd-suggest.is-open .fd-suggest-combo input,
.fd-suggest.is-open .fd-suggest-activator input {
    border-color: #552cf1;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(85, 44, 241, 0.16);
}

.m-menu__content.fd-suggest-menu {
    box-sizing: border-box;
    background: #f4f1ff !important;
    border: 1px solid #552cf1;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(49, 18, 140, 0.28);
    overflow: hidden;
}

.fd-suggest-menu-body {
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
    background: #f4f1ff;
}

.fd-suggest-empty {
    padding: 10px 12px;
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #6b778d;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    background: #fff;
    border-radius: 6px;
}

.fd-suggest-item {
    display: block;
    width: 100%;
    border: 1px solid #e4def8;
    border-radius: 6px;
    background: #fff;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    color: #111827;
}

.fd-suggest-item.is-selected {
    border-color: #552cf1;
    background: #ede9fe;
    color: #3b1d9e;
}

.fd-suggest-item + .fd-suggest-item {
    margin-top: 4px;
}

.fd-suggest-item:hover {
    background: #552cf1;
    border-color: #552cf1;
    color: #fff;
}

.style-image-host {
    height: 40px;
    position: relative;
    flex: 0 0 auto;
}

.style-image-field {
    display: inline-flex;
    align-items: center;
    height: 40px;
    box-sizing: border-box;
}

.style-image-field-button {
    height: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 0 11px;
    color: #552cf1;
    border: 1px solid #9b88f7;
    border-radius: 7px;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.style-image-field-button:hover {
    background: #f6f3ff;
}

.style-image-field-button img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
}

.style-image-field-button.has-image {
    padding-left: 7px;
}

.style-image-mini {
    width: 36px;
    height: 36px;
    box-sizing: border-box;
    padding: 0;
    border: 1px solid #d7dbe3;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    cursor: zoom-in;
}

.style-image-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.style-image-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid #9b88f7;
    border-radius: 6px;
    background: #fff;
    color: #552cf1;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.style-image-open-btn:hover,
.style-image-open-btn.has-image:hover {
    border-color: #552cf1;
    background: #f5f3ff;
}

.style-image-empty-text {
    color: #9aa3b2;
    font-size: 12px;
}

.style-image-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eef0f4;
}

.style-image-modal-head strong {
    font-size: 16px;
    color: #1f2937;
}

.style-image-modal-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #6b778d;
    font-size: 22px;
    line-height: 32px;
    cursor: pointer;
}

.style-image-modal-body {
    padding: 20px !important;
}

.style-image-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 180px;
    padding: 24px 16px;
    border: 1px dashed #93c5fd;
    border-radius: 8px;
    background: #f8fbff;
    cursor: pointer;
    outline: none;
}

.style-image-dropzone:focus,
.style-image-dropzone:hover {
    border-color: #552cf1;
    background: #f5f3ff;
}

.style-image-dropzone.is-busy {
    pointer-events: none;
    opacity: 0.72;
}

.style-image-file-input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.style-image-dropzone-title {
    color: #374151;
    font-size: 14px;
}

.style-image-dropzone-hint {
    color: #9aa3b2;
    font-size: 12px;
}

.style-image-modal-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 88px;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #9aa3b2;
    font-size: 13px;
}

.style-image-modal-preview.has-file {
    justify-content: flex-start;
    background: #f0fdf4;
    color: #166534;
}

.style-image-modal-preview img {
    width: 88px;
    height: 66px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #bbf7d0;
    background: #fff;
}

.style-image-preview-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.style-image-preview-copy strong {
    color: #15803d;
    font-size: 13px;
}

.style-image-preview-copy span {
    color: #4b5563;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 240px;
}

.style-image-modal-remove {
    margin-left: auto;
    border: 0;
    background: none;
    color: #dc2626;
    font-size: 13px;
    cursor: pointer;
}

.style-image-modal-foot {
    padding: 12px 20px 20px !important;
}

.style-image-viewer-body {
    display: grid !important;
    place-items: center;
    min-height: 260px;
    max-height: calc(100vh - 190px);
    padding: 20px !important;
    background: #f7f8fb;
}

.style-image-viewer-body img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 230px);
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.style-image-viewer-foot {
    padding: 12px 20px 20px !important;
}

.list-style-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.55;
}

.list-sort-head {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    color: inherit;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.list-sort-head span {
    color: #9ba3b2;
    font-weight: 700;
}

.list-inline-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.list-action-btn {
    height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 9px;
    color: #552cf1;
    border: 1px solid #cfc5ff;
    border-radius: 6px;
    background: #fff;
    font: 700 12px/1 "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
    white-space: nowrap;
    cursor: pointer;
}

.list-action-btn:hover {
    border-color: #552cf1;
    background: #f6f3ff;
}

.list-action-btn svg {
    display: block;
    flex: 0 0 16px;
}

.list-action-btn.danger {
    color: #c5303e;
    border-color: #edc3c9;
}

.list-action-btn.danger:hover {
    border-color: #d98a94;
    background: #fff4f5;
}

.list-style-thumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
}

.list-style-thumb {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 2px;
    border: 1px solid #dfe5ef;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    flex: 0 0 40px;
}

.list-style-thumb:hover {
    border-color: #9b88f7;
    background: #f6f3ff;
}

.list-style-thumb img,
.list-style-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.list-style-more {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 0;
    color: #4318ff;
    border: 1px dashed #a797f7;
    border-radius: 6px;
    background: #faf8ff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

.list-style-more:hover {
    background: #f6f3ff;
}

.list-style-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.list-style-preview-card {
    margin: 0;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    background: #fafafa;
}

.list-style-preview-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.list-style-preview-card figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
}

@media (max-width: 900px) {
    .od-style-bar {
        flex-wrap: wrap;
        height: auto;
        align-items: flex-start;
    }

    .od-style-tabs-scroll {
        width: 100%;
        flex-basis: 100%;
    }

    .od-style-bar-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .od-style-grid {
        grid-template-columns: 1fr 1fr;
    }

    .od-style-code {
        grid-column: 1 / -1;
    }

    .od-style-settings {
        justify-self: start;
    }

    .od-fabric-meta,
    .od-fabric-meta-right {
        flex-wrap: wrap;
    }

    .fd-size-layout {
        grid-template-columns: 1fr;
    }

    .fd-size-groups,
    .fd-size-detail {
        min-height: 0;
    }

    .fd-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .fd-search {
        width: min(100%, 420px);
        flex: 1;
    }
}

/* 订单列表：对齐原型字体与密度，避免 Roboto 中文和胶囊按钮造成的疏、跳、难受。 */
.order-list-page {
    width: min(1520px, 100%);
    margin: 0 auto;
    color: #1e293b;
    font: 13px/1.45 "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

.order-list-page,
.order-list-page .m-btn,
.order-list-page .m-btn__content,
.order-list-page .m-input,
.order-list-page .m-select,
.order-list-page .m-text-field,
.order-list-page .m-data-table,
.order-list-page .text-btn,
.order-list-page .text-subtitle {
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif !important;
}

.order-list-heading {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 4px;
}

.order-list-title {
    margin: 0;
    color: #1e293b !important;
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    line-height: 1.25 !important;
}

.order-list-create.m-btn {
    min-width: 142px !important;
    height: 40px !important;
    padding: 0 16px !important;
    border-radius: 7px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.order-list-filter {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 66px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #d8e0ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(31, 42, 68, 0.045);
}

.order-list-search {
    width: min(440px, 54%);
}

.order-list-search-field.m-input,
.order-list-search-field.m-text-field {
    margin-top: 0 !important;
    padding-top: 0 !important;
    font-size: 13px;
}

.order-list-search-field .m-input__control {
    min-height: 38px !important;
}

.order-list-search-field .m-input__slot {
    min-height: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    align-items: center !important;
}

.order-list-search-field fieldset {
    min-height: 38px !important;
    border-radius: 7px !important;
    border-color: #d8e0ec !important;
    border-width: 1px !important;
}

.order-list-search-field .m-input__prepend-inner {
    height: 38px !important;
    margin: 0 6px 0 0 !important;
    padding: 0 !important;
    align-self: center !important;
    display: flex !important;
    align-items: center !important;
}

.order-list-search-icon.m-icon,
.order-list-search-field .m-input__prepend-inner .m-icon {
    height: 16px !important;
    width: 16px !important;
    margin: 0 !important;
    line-height: 16px !important;
    color: #7d879b !important;
}

.order-list-search-field .m-text-field__details {
    display: none !important;
}

.order-list-search-field input {
    height: 38px !important;
    min-height: 38px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    color: #1e293b !important;
    font-size: 13px !important;
    font-family: inherit !important;
    line-height: 38px !important;
}

.order-list-search-field input::placeholder {
    color: #9aa4b6 !important;
    font-size: 13px !important;
    opacity: 1;
}

.order-list-btn.m-btn {
    min-width: 0 !important;
    height: 38px !important;
    padding: 0 14px !important;
    border-radius: 7px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.order-list-btn .m-btn__content {
    height: 100%;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.order-list-btn:not(.order-list-btn-primary) {
    color: #34415a !important;
    border-color: #9aa6b8 !important;
    background: #fff !important;
}

.order-list-btn:not(.order-list-btn-primary):hover {
    border-color: #7f8b9d !important;
    background: #f7f8fa !important;
}

.order-list-table-card {
    margin-top: 20px;
    overflow: visible;
    border: 1px solid #d8e0ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(31, 42, 68, 0.045);
}

.order-list-undo {
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px 0;
}

.order-list-table.m-data-table {
    border-radius: 10px 10px 0 0;
    background: transparent !important;
}

.order-list-table .m-data-table__wrapper {
    overflow-x: auto;
}

.order-list-table table {
    width: 100%;
    min-width: 1240px;
    table-layout: auto;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.order-list-table th,
.order-list-table td {
    height: auto !important;
    padding: 10px 12px !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    white-space: nowrap;
    vertical-align: middle;
}

.order-list-table thead th {
    height: 56px !important;
    color: #46546b !important;
    background: #fbfcff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
}

.order-list-table tbody td {
    height: 52px !important;
    color: #1e293b !important;
    background: #fff !important;
    border-top: 1px solid #d8e0ec !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
}

.order-list-table tbody tr:hover td {
    background: #fbfaff !important;
}

.order-list-table th:nth-child(1),
.order-list-table td:nth-child(1) {
    width: 150px;
}

.order-list-table th:nth-child(2),
.order-list-table td:nth-child(2) {
    min-width: 180px;
    max-width: 280px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.order-list-table th:nth-child(3),
.order-list-table td:nth-child(3) {
    width: 190px;
    min-width: 190px;
}

.order-list-table th:nth-child(4),
.order-list-table td:nth-child(4) {
    min-width: 150px;
}

.order-list-table th:nth-child(7),
.order-list-table td:nth-child(7) {
    width: 142px;
    min-width: 142px;
}

.order-list-table th:nth-child(8),
.order-list-table td:nth-child(8) {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    overflow: visible;
}

.order-list-table th:nth-child(9),
.order-list-table td:nth-child(9) {
    width: 1%;
    min-width: 180px;
    text-align: center;
}

.order-list-remark {
    position: relative;
    max-width: 180px;
}

.order-list-remark-text {
    display: block;
    width: 100%;
    max-width: 180px;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.order-list-remark-hint {
    position: absolute;
    left: 0;
    top: calc(100% - 2px);
    z-index: 20;
    padding: 0;
    color: #b4bcc8;
    background: none;
    border: 0;
    border-radius: 0;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: none;
}

.order-list-remark:hover .order-list-remark-hint,
.order-list-remark:focus-within .order-list-remark-hint {
    opacity: 1;
}

.order-list-remark-editor {
    display: block;
    width: 100%;
    min-height: 120px;
    box-sizing: border-box;
    padding: 10px 12px;
    color: #1e293b;
    border: 1px solid #e4e9f1;
    border-radius: 7px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

.order-list-remark-editor:focus {
    outline: none;
    border-color: #552cf1;
    box-shadow: 0 0 0 2px rgba(85, 44, 241, 0.16);
}

.order-list-remark-full {
    margin: 0;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.confirm-phrase-dialog {
    font: 14px/1.5 "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
    border-radius: 10px !important;
    overflow: hidden;
}

.confirm-phrase-message {
    margin: 0 0 16px;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.6;
}

.confirm-phrase-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #445269;
    font-size: 13px;
    font-weight: 700;
}

.confirm-phrase-input {
    margin-top: 0 !important;
}

.order-list-empty {
    color: #a0aabd;
}

.order-list-pager {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    color: #626d82;
    border-top: 1px solid #e8ebf2;
    font-size: 12px;
}

.order-list-pager-spacer {
    flex: 1;
}

.order-list-page-size {
    width: 78px;
    flex: 0 0 78px;
}

.order-list-page-size .m-input__control,
.order-list-page-size .m-input__slot,
.order-list-page-size fieldset {
    min-height: 34px !important;
    border-radius: 6px !important;
}

.order-list-page-size fieldset {
    border-color: #d8e0ec !important;
    border-width: 1px !important;
}

.order-list-page-size input,
.order-list-page-size .m-select__selection {
    font-size: 12px !important;
    color: #626d82 !important;
}

.order-list-pagination.m-pagination {
    margin-left: 8px;
}

.order-list-pagination .m-pagination__item,
.order-list-pagination .m-pagination__navigation {
    min-width: 32px !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 2px !important;
    border: 1px solid #e0e4eb !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    background: #fff !important;
    font-size: 12px !important;
    font-family: inherit !important;
}

.order-list-pagination .m-pagination__item--active {
    color: #fff !important;
    border-color: #552cf1 !important;
    background: #552cf1 !important;
}

@media (max-width: 900px) {
    .order-list-heading {
        flex-wrap: wrap;
        min-height: 0;
        margin-bottom: 12px;
    }

    .order-list-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .order-list-search {
        width: 100%;
    }

    .order-list-pager {
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

.home-page {
    position: relative;
    min-height: calc(100vh - 108px);
    margin: -24px;
    padding: 24px 28px 32px;
    overflow: hidden;
    background-color: #f7f9fc;
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}
.home-page::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background-color: #f7f9fc;
    background-image: url("../img/home/home-page-background.png");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% 100%;
    pointer-events: none;
    content: "";
}
.home-page::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.03) 28%, rgba(255,255,255,.24) 62%, rgba(247,249,252,.72) 86%, rgba(247,249,252,.94) 100%);
    pointer-events: none;
    content: "";
}
.home-page > * { position: relative; z-index: 1; }
.home-workbench {
    width: min(1440px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 22px;
    color: #172033;
}
.home-welcome {
    position: relative;
    min-height: 154px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    padding: 26px 30px;
    background: transparent;
}
.home-welcome > div:first-child {
    display: grid;
    align-content: start;
    gap: 8px;
}
.home-welcome-title {
    margin: 0;
    color: #172033;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -.02em;
}
.home-order-entry {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 13px;
    color: #fff;
    border: 1px solid #552cf1;
    border-radius: 7px;
    background: #552cf1;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.home-order-entry:hover { color: #fff; background: #4a1fe0; border-color: #4a1fe0; }
.home-order-entry-icon { display: grid; place-items: center; }
.home-welcome-date {
    position: absolute;
    top: 26px;
    right: 30px;
    display: grid;
    grid-template-columns: 16px auto;
    align-items: center;
    justify-items: end;
    gap: 7px 8px;
    color: #667085;
    font-size: 13px;
}
.home-welcome-date strong {
    grid-column: 2;
    color: #667085;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.home-date-icon,
.home-license-icon { display: grid; place-items: center; color: #98a2b3; }
.home-license-summary {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #475467;
}
.home-license-summary.is-warn,
.home-license-tip { color: #dc2626; }
.home-license-tip {
    grid-column: 1 / -1;
    font-size: 12px;
}
.home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 12px;
}
.home-section-head strong {
    color: #1f2937;
    font-size: 18px;
    line-height: 1.3;
}
.home-period,
.home-light-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 0;
    color: #475467;
    border: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.home-overview-period {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.home-period-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}
select.home-period {
    cursor: pointer;
    min-width: 96px;
    padding: 4px 28px 4px 10px;
    border: 1px solid #e4e7ec;
    border-radius: 6px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23475467' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center;
    background-size: 12px;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
    appearance: none;
    -webkit-appearance: none;
}
select.home-period:focus-visible {
    outline: 2px solid rgba(85, 44, 241, .42);
    outline-offset: 2px;
}
.home-light-link {
    cursor: pointer;
}
.home-light-link:hover { color: #552cf1; }
.home-light-link:focus-visible {
    outline: 2px solid rgba(85, 44, 241, .42);
    outline-offset: 3px;
    border-radius: 3px;
}
.home-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.home-kpi-card {
    min-width: 0;
    min-height: 116px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 18px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
}
.home-kpi-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 10px;
    background: #f2f4f7;
}
.home-kpi-icon img { width: 23px; height: 23px; object-fit: contain; }
.home-kpi-card.tone-ratio .home-kpi-icon { background: #fff1e8; }
.home-kpi-card.tone-layout .home-kpi-icon { background: #e8f8f5; }
.home-kpi-card.tone-purchase .home-kpi-icon { background: #edf4ff; }
.home-kpi-card.tone-saving .home-kpi-icon,
.home-kpi-card.tone-labor .home-kpi-icon { background: #f0f3f7; }
.home-kpi-card > div { min-width: 0; display: grid; gap: 4px; }
.home-kpi-card strong {
    color: #101828;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.home-kpi-card span:not(.home-kpi-icon) {
    overflow: hidden;
    color: #667085;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-report-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr);
    grid-template-rows: auto auto auto;
    gap: 16px;
    align-items: stretch;
}
.home-report-toolbar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    min-width: 0;
}
.home-report-toolbar strong { font-size: 18px; }
.home-report-toolbar label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #475467;
    font-size: 13px;
}
.home-report-toolbar select,
.home-report-toolbar input[type="date"],
.home-report-toolbar .home-report-employee-input {
    height: 32px;
    border: 1px solid #d8e0ec;
    border-radius: 6px;
    padding: 0 8px;
    background: #fff;
}
.home-report-employee-field {
    position: relative;
    z-index: 3;
}
.home-report-employee-combo {
    position: relative;
    display: inline-block;
    min-width: 190px;
}
.home-report-employee-input {
    width: 220px;
    box-sizing: border-box;
    font-size: 13px;
    color: #344054;
}
.home-report-employee-input::placeholder {
    color: #98a2b3;
}
.home-report-employee-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 220px;
    max-height: 240px;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    overflow: auto;
    border: 1px solid #d8e0ec;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    z-index: 20;
}
.home-report-employee-menu li {
    padding: 7px 10px;
    color: #344054;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-report-employee-menu li:hover,
.home-report-employee-menu li.is-active {
    background: #f4f6fb;
    color: #552cf1;
}
.home-report-employee-menu li.is-empty {
    color: #98a2b3;
    cursor: default;
}
.home-report-employee-menu li.is-empty:hover {
    background: transparent;
    color: #98a2b3;
}
.home-report-range-picker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.home-report-ratio-cell { grid-column: 1; grid-row: 2; }
.home-report-layout-cell { grid-column: 1; grid-row: 3; }
.home-report-announcement-cell { grid-column: 2; grid-row: 2; }
.home-report-update-cell { grid-column: 2; grid-row: 3; }
.home-report-card,
.home-info-card {
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid #e8ecf2;
    border-radius: 9px;
    background: #fff;
}
.home-report-card-head {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}
.home-report-card-body {
    display: grid;
    align-items: stretch;
    gap: 18px;
    min-width: 0;
}
.home-report-card-body.enterprise,
.home-report-card-body.employee-layout {
    grid-template-columns: 132px minmax(0, 1fr) 260px;
    gap: 12px 16px;
}
.home-report-card-body.employee-ratio {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px 16px;
}
.home-report-core,
.home-report-trend,
.home-report-top5,
.home-report-distribution {
    min-width: 0;
}
.home-report-trend,
.home-report-top5 {
    display: flex;
    flex-direction: column;
    min-height: 156px;
}
.home-report-core {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    padding-right: 16px;
    border-right: 1px solid #f0f2f5;
}
.home-report-core > span {
    display: block;
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
}
.home-report-core > strong {
    margin-top: 5px;
    color: #172033;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.home-report-core em {
    font-style: normal;
    font-size: 13px;
    margin-left: 4px;
    color: #64748b;
}
.home-report-subheading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 8px;
}
.home-report-subheading strong {
    color: #344054;
    font-size: 12px;
    font-weight: 600;
}
.home-trend {
    width: 100%;
    height: 118px;
    display: block;
}
.home-report-donut-wrap {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    flex: 1;
    min-height: 120px;
}
.home-report-donut {
    position: relative;
    width: 112px;
    height: 112px;
}
.home-report-donut svg {
    display: block;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.home-report-donut-track,
.home-report-donut-segment {
    fill: none;
    stroke-width: 13;
}
.home-report-donut-track {
    stroke: #eef2f7;
}
.home-report-donut-segment {
    stroke-linecap: butt;
    outline: none;
    cursor: pointer;
    transition: opacity .12s ease, stroke-width .12s ease;
}
.home-report-donut-segment:hover,
.home-report-donut-segment:focus-visible,
.home-report-donut-segment.is-tooltip-active {
    opacity: .82;
    stroke-width: 14;
}
.home-report-legend li.home-report-tooltip-target {
    cursor: pointer;
}
.home-report-tooltip {
    position: fixed;
    z-index: 10000;
    min-width: 132px;
    max-width: 240px;
    padding: 8px 10px;
    border: 1px solid #dfe4ec;
    border-radius: 7px;
    background: #fff;
    color: #344054;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
    font-size: 12px;
    line-height: 1.45;
    pointer-events: none;
}
.home-report-tooltip strong,
.home-report-tooltip span { display: block; }
.home-report-tooltip strong {
    color: #172033;
    font-weight: 650;
}
.home-report-tooltip span {
    margin-top: 2px;
    color: #667085;
}
.home-report-tooltip b {
    color: #344054;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.home-report-tooltip-mark {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: #23b8a2;
    vertical-align: middle;
}
.home-report-tooltip-mark.ratio { background: #8067df; }
.home-report-tooltip-mark.layout { background: #23b8a2; }
.home-report-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.home-report-donut-center strong {
    color: #172033;
    font-size: 20px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.home-report-donut-center span {
    margin-top: 4px;
    color: #98a2b3;
    font-size: 10px;
}
.home-report-legend {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}
.home-report-legend li {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #667085;
    font-size: 11px;
    line-height: 1.3;
}
.home-report-legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.home-report-legend span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-report-legend strong {
    color: #344054;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.home-util-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.home-util-list li {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 28px 42px;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin: 8px 0;
}
.home-util-list em {
    text-align: right;
    font-style: normal;
    color: #667085;
}
.home-report-progress {
    height: 8px;
    background: #eef2f7;
    border-radius: 99px;
    overflow: hidden;
}
.home-report-progress i {
    display: block;
    height: 100%;
    background: #0f9f8a;
}
.home-info-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.home-info-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.home-info-title img { width: 18px; height: 18px; }
.home-notice-list,
.home-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}
.home-notice-list li,
.home-timeline li {
    cursor: pointer;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}
.home-notice-list li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}
.home-list-icon { display: grid; place-items: center; margin-top: 2px; }
.home-list-icon img { width: 16px; height: 16px; }
.home-notice-meta,
.home-update-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 0;
}
.home-notice-meta strong,
.home-update-meta .home-update-title,
.home-update-meta > strong:not(:first-child) {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-notice-meta time,
.home-update-meta time {
    margin-left: auto;
    flex: 0 0 auto;
    color: #98a2b3;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.home-list-type {
    padding: 2px 6px;
    color: #475467;
    border-radius: 4px;
    background: #f2f4f7;
    font-size: 10px;
    white-space: nowrap;
    flex: 0 0 auto;
}
.home-pinned-tag {
    padding: 2px 6px;
    color: #b54708;
    border: 1px solid #fed7aa;
    border-radius: 4px;
    background: #fff7ed;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}
.home-notice-copy p,
.home-timeline p {
    margin: 4px 0 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
}
.home-timeline { display: grid; gap: 0; }
.home-timeline li {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}
.home-timeline li.latest .home-update-node { background: #0f9f8a; }
.home-update-node {
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    display: inline-block;
}
.home-empty { color: #94a3b8; cursor: default !important; }
.home-service-section {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 10px;
    padding: 20px 22px 0;
}
.home-service-section::before,
.home-service-section::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
}
.home-service-section::before {
    z-index: 0;
    background: url("../img/home/home-service-background.png") center center / cover no-repeat;
}
.home-service-section::after {
    z-index: 0;
    background: rgba(255, 255, 255, 0.62);
}
.home-service-section > * { position: relative; z-index: 1; }
.home-service-bar {
    display: grid;
    grid-template-columns: 1.35fr repeat(4, 1fr);
    min-width: 0;
    margin: 0 -22px;
    border-top: 1px solid #eaecf0;
    background: rgba(255, 255, 255, .72);
}
.home-service-item {
    min-width: 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 18px 16px;
    border-right: 1px solid #eaecf0;
    background: transparent;
}
.home-service-item:last-child { border-right: 0; }
.home-service-item img { width: 28px; height: 28px; flex: 0 0 28px; }
.home-service-item span { min-width: 0; display: grid; gap: 2px; flex: 1; }
.home-service-item strong { display: block; font-size: 12px; color: #64748b; font-weight: 400; }
.home-service-item b { font-size: 13px; color: #172033; }
.home-service-item small {
    overflow: hidden;
    color: #98a2b3;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-service-link {
    color: #2563eb;
    text-decoration: none;
}
.home-service-link:hover { text-decoration: underline; }
.home-modal-layer {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(17, 24, 39, .48);
}
.home-modal.home-info-modal {
    width: min(720px, calc(100vw - 32px));
    max-height: min(78vh, 720px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(16, 24, 40, .16);
}
.home-info-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 12px 20px;
    border-bottom: 1px solid #eaecf0;
}
.home-info-modal-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.home-info-modal-heading h2,
.home-info-modal-title {
    margin: 0 !important;
    color: #1f2937 !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
}
.platform-home-detail h3 {
    margin: 14px 0 16px !important;
    color: #1f2937 !important;
    font-family: inherit !important;
    font-size: 20px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    letter-spacing: normal !important;
}
.home-info-modal-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    border-radius: 8px;
    background: #f4f1ff;
}
.home-info-modal-icon img {
    width: 19px;
    height: 19px;
    object-fit: contain;
}
.home-modal-close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #475467;
    cursor: pointer;
}
.home-modal-close:hover {
    color: #1f2937;
    background: #f2f4f7;
}
.home-info-modal-body {
    min-height: 0;
    overflow: auto;
    padding: 20px 24px;
}
.home-info-modal-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-height: 64px;
    padding: 12px 24px;
    border-top: 1px solid #eaecf0;
}
.home-modal-btn {
    min-width: 88px;
    height: 36px;
    padding: 0 16px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    background: #fff;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.home-modal-btn.is-primary,
.home-info-modal-foot .home-modal-btn:last-child {
    color: #fff;
    border-color: #552cf1;
    background: #552cf1;
}
.home-modal-btn.is-primary:hover,
.home-info-modal-foot .home-modal-btn:last-child:hover {
    border-color: #4521d8;
    background: #4521d8;
}
.home-modal-announcements,
.home-modal-updates {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.home-modal-announcements li,
.home-modal-updates li {
    border-bottom: 1px solid #eaecf0;
}
.home-modal-announcements li:last-child,
.home-modal-updates li:last-child { border-bottom: 0; }
.home-modal-announcements button,
.home-modal-updates button {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    padding: 14px 0;
    border: 0;
    background: none;
    text-align: left;
    color: inherit;
    cursor: pointer;
}
.home-modal-announcements button:hover,
.home-modal-updates button:hover { background: #fafbff; }
.home-modal-row-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.home-modal-announcements p {
    grid-column: 1 / -1;
    margin: 0;
    color: #475467;
    font-size: 13px;
    line-height: 1.7;
}
.home-modal-announcements time,
.home-modal-updates time {
    grid-column: 2;
    grid-row: 1;
    color: #98a2b3;
    font-size: 12px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.home-modal-updates .home-update-meta {
    grid-column: 1;
}
.home-modal-updates .home-update-title {
    grid-column: 1 / -1;
    color: #344054;
    font-size: 14px;
    font-weight: 650;
}
.platform-home-detail { max-width: 860px; margin: 0 auto; }
.platform-detail-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #667085;
    font-size: 13px;
}
.platform-detail-meta time {
    flex: 0 0 auto;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.home-detail-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f2f4f7;
    color: #475467;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.home-software-modal .home-info-modal-body {
    position: relative;
    isolation: isolate;
    max-height: min(60vh, 560px);
    background: #fff;
}
.home-software-modal .home-info-modal-body::before,
.home-software-modal .home-info-modal-body::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
}
.home-software-modal .home-info-modal-body::before {
    z-index: 0;
    background: url("../img/home/home-software-background.png") center center / cover no-repeat;
}
.home-software-modal .home-info-modal-body::after {
    z-index: 1;
    background: rgba(255, 255, 255, 0.5);
}
.home-software-modal .home-info-modal-body > * {
    position: relative;
    z-index: 2;
}
.home-rich-content { font-size: 14px; line-height: 1.7; color: #344054; }
.home-rich-content p { margin: 0 0 10px; }
@media (max-width: 1100px) {
    .home-kpi-grid,
    .home-report-layout,
    .home-service-bar { grid-template-columns: 1fr; }
    .home-report-ratio-cell,
    .home-report-layout-cell,
    .home-report-announcement-cell,
    .home-report-update-cell { grid-column: auto; grid-row: auto; }
    .home-welcome-date { position: static; justify-items: start; }
    .home-report-card-body.enterprise,
    .home-report-card-body.employee-layout,
    .home-report-card-body.employee-ratio {
        grid-template-columns: 1fr;
    }
    .home-report-core {
        padding-right: 0;
        padding-bottom: 12px;
        border-right: 0;
        border-bottom: 1px solid #f0f2f5;
    }
    .home-report-donut-wrap { grid-template-columns: 112px minmax(0, 1fr); }
}

.user-seat-quota {
    color: #6b778d;
    font-size: 14px;
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}
.user-seat-quota-full {
    color: #c5303e;
    font-weight: 700;
}
.user-seat-limit-dialog {
    box-shadow: none !important;
    background: transparent !important;
}
.user-seat-limit-card {
    position: relative;
    padding: 28px 28px 24px;
    border: 1px solid #d8e0ec !important;
    border-radius: 10px !important;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18) !important;
    text-align: center;
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}
.user-seat-limit-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #98a2b3;
    cursor: pointer;
}
.user-seat-limit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #fa8c16;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}
.user-seat-limit-title {
    margin-bottom: 10px;
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
}
.user-seat-limit-body {
    margin: 0 auto 22px;
    max-width: 300px;
    color: #6b778d;
    font-size: 13px;
    line-height: 1.6;
}
.user-seat-limit-ok {
    min-width: 96px !important;
    height: 38px !important;
    border-radius: 7px !important;
    background: #552cf1 !important;
}

.is-dongle-readonly .is-dongle-write,
.is-dongle-readonly .od-btn-save,
.is-dongle-readonly .od-ratio-btn-save,
.is-dongle-readonly .od-ratio-btn-assistant,
.is-dongle-readonly .od-ratio-btn-boke,
.is-dongle-readonly .fd-btn-save,
.is-dongle-readonly .fd-btn-danger,
.is-dongle-readonly .fd-btn-danger-outline,
.is-dongle-readonly .order-list-create,
.is-dongle-readonly .od-plan-card-delete {
    display: none !important;
}

