[v-cloak] { display: none !important; }
:root { --uc-border: #e7e7e7; --uc-soft: #f7f8fa; --uc-muted: #6b6b6b; }

.td-route-skeleton { position: fixed; inset: 0; z-index: 1000000; padding: 92px 4vw; background: #f5f7fa; }
.td-route-skeleton-inner { max-width: 1440px; margin: 0 auto; padding: 24px; background: #fff; border: 1px solid var(--uc-border); border-radius: 2px; }
.td-route-page-head { display: flex; min-height: 64px; padding: 12px 18px; align-items: center; justify-content: space-between; gap: 18px; background: #fff; border-bottom: 1px solid var(--uc-border); }
.td-route-page-head h1 { margin: 0; font-size: 20px; font-weight: 500; }
.td-route-page-head p { margin: 3px 0 0; color: var(--uc-muted); font-size: 12px; }

.td-page {
    --uc-border: #e7e7e7;
    --uc-soft: #f7f8fa;
    --uc-muted: #6b6b6b;
    color: var(--td-text-color-primary, #242424);
    font: var(--td-font-body-medium, 14px/22px "PingFang SC", "Microsoft YaHei", Arial, sans-serif);
    width: 100%;
    min-width: 0;
}

.td-page *, .td-dialog-scope * { box-sizing: border-box; }
.td-page .t-button,
.td-page .t-input,
.td-page .t-input__wrap,
.td-page .t-textarea,
.td-page .t-select,
.td-page .t-tag,
.td-dialog-scope .t-dialog { border-radius: 2px; }
.t-dialog,
.t-dialog .t-button,
.t-dialog .t-input,
.t-dialog .t-textarea,
.t-dialog .t-select,
.t-popup,
.t-select__dropdown,
.t-message,
.t-notification,
.t-alert,
.t-tag { border-radius: 2px !important; }

.td-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.td-page-header > div:first-child { flex: 1 1 auto; min-width: 0; }

.td-page-header h1 { margin: 0 0 5px; font-size: 24px; line-height: 1.4; font-weight: 600; }
.td-page-header p { margin: 0; color: var(--uc-muted); line-height: 1.7; }
.td-page-actions, .td-toolbar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.td-panel {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--uc-border);
    border-radius: 2px;
}

.td-panel + .td-panel { margin-top: 18px; }
.td-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 54px;
    padding: 13px 18px;
    background: var(--uc-soft);
    border-bottom: 1px solid var(--uc-border);
}
.td-panel-head h2 { margin: 0; font-size: 17px; line-height: 1.4; font-weight: 600; }
.td-panel-head p { margin: 3px 0 0; color: var(--uc-muted); font-size: 13px; }
.td-panel-body { padding: 18px; }

.td-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: var(--uc-soft);
    border-bottom: 1px solid var(--uc-border);
}
.td-toolbar-search { width: min(360px, 100%); }

.td-table-wrap { overflow-x: auto; }
.td-data-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.td-data-table th {
    padding: 12px 14px;
    color: var(--td-text-color-secondary, #5e5e5e);
    background: var(--uc-soft);
    border-bottom: 1px solid var(--uc-border);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
}
.td-data-table td { padding: 14px; border-bottom: 1px solid var(--uc-border); vertical-align: middle; }
.td-data-table tbody tr:last-child td { border-bottom: 0; }
.td-data-table tbody tr:hover { background: #fafafa; }
.td-data-table .center { text-align: center; }

.td-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 18px;
    background: var(--uc-soft);
    border-top: 1px solid var(--uc-border);
}
.td-pagination-meta { color: var(--uc-muted); font-size: 13px; }

.td-tabs-bar { display: flex; gap: 4px; padding: 6px 10px 0; border-bottom: 1px solid var(--uc-border); overflow-x: auto; scrollbar-width: none; }
.td-tabs-bar::-webkit-scrollbar { display: none; }
.td-tabs-bar a { position: relative; flex: none; padding: 10px 14px; color: var(--td-text-color-secondary, #5e5e5e); }
.td-tabs-bar a:hover, .td-tabs-bar a.active { color: var(--td-brand-color, #0052d9); }
.td-tabs-bar a.active::after { position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; background: var(--td-brand-color, #0052d9); content: ''; }
.td-copy-action { height: auto; margin-left: 7px; padding: 0; color: var(--td-brand-color, #0052d9); background: transparent; border: 0; border-radius: 0; cursor: pointer; }

.td-content-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
.td-article-list { margin: 0; padding: 0; list-style: none; }
.td-article-item { display: block; padding: 17px 18px; color: inherit; border-bottom: 1px solid var(--uc-border); }
.td-article-item:last-child { border-bottom: 0; }
.td-article-item:hover { color: var(--td-brand-color, #0052d9); background: #fafafa; }
.td-article-title { overflow: hidden; text-overflow: ellipsis; font-size: 15px; font-weight: 500; white-space: nowrap; }
.td-article-meta { display: flex; align-items: center; gap: 18px; margin-top: 8px; color: var(--uc-muted); font-size: 12px; }
.td-category-list { display: grid; gap: 2px; }
.td-category-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 8px; color: inherit; border-bottom: 1px solid var(--uc-border); }
.td-category-item:last-child { border-bottom: 0; }
.td-category-item:hover { color: var(--td-brand-color, #0052d9); }
.td-category-count { min-width: 26px; padding: 1px 7px; color: var(--td-success-color, #2ba471); background: var(--td-success-color-1, #e3f9e9); border-radius: 2px; text-align: center; }
.td-article-head { padding: 22px 22px 18px; border-bottom: 1px solid var(--uc-border); }
.td-article-head h1 { margin: 0; font-size: 24px; line-height: 1.45; font-weight: 600; }
.td-article-content { padding: 24px 22px; line-height: 1.85; overflow-wrap: anywhere; }
.td-article-content img { max-width: 100%; height: auto; }
.td-article-labels { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 16px 22px; border-top: 1px solid var(--uc-border); }
.td-article-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 16px 22px; background: var(--uc-soft); border-top: 1px solid var(--uc-border); }
.td-article-nav a { overflow: hidden; color: var(--td-brand-color, #0052d9); text-overflow: ellipsis; white-space: nowrap; }
.td-article-nav > span:last-child { text-align: right; }
.td-account-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 18px; align-items: start; }
.td-account-side { display: grid; gap: 18px; }
.td-profile-summary { text-align: center; }
.td-profile-avatar { display: grid; width: 64px; height: 64px; margin: 0 auto 12px; place-items: center; color: #fff; background: var(--td-brand-color, #0052d9); border-radius: 50%; font-size: 22px; font-weight: 600; }
.td-profile-summary h2 { margin: 0; font-size: 18px; }
.td-profile-summary p { margin: 5px 0 14px; color: var(--uc-muted); }
.td-info-list { display: grid; gap: 0; }
.td-info-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--uc-border); }
.td-info-row:last-child { border-bottom: 0; }
.td-info-row > span:first-child { color: var(--uc-muted); }
.td-info-row > span:last-child { text-align: right; overflow-wrap: anywhere; }

.td-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.td-form-field { min-width: 0; }
.td-form-field.wide { grid-column: 1 / -1; }
.td-form-field > label { display: block; margin-bottom: 7px; font-weight: 500; }
.td-form-help { margin-top: 6px; color: var(--uc-muted); font-size: 12px; line-height: 1.6; }
.td-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--uc-border); }

.td-page-alert { margin-bottom: 18px; }
.td-balance-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--uc-border);
    border-radius: 2px;
}
.td-balance-panel span { display: block; margin-bottom: 7px; color: var(--uc-muted); }
.td-balance-panel strong { font-size: 28px; line-height: 1.2; font-weight: 600; }
.td-recharge-form { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); gap: 22px; }
.td-recharge-form small { display: block; margin-top: 6px; color: var(--uc-muted); }
.td-payment-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.td-payment-grid .t-radio-button { display: flex; min-height: 54px; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 2px !important; }
.td-payment-grid .t-radio-button + .t-radio-button { margin-left: 0; }
.td-payment-grid img { max-width: 104px; max-height: 28px; object-fit: contain; }
.td-payment-grid img + span { margin-left: 7px; }
.td-pay-shell { min-height: 190px; }
.td-pay-content { min-height: 160px; padding: 0; overflow-wrap: anywhere; }
.td-pay-content img { max-width: 100%; height: auto; }
.td-pay-content .card, .td-pay-content .modal-content { border-radius: 2px !important; }

.td-auth-shell {
    position: relative;
    display: grid;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #eef3f8;
    background-image: var(--uc-auth-background-image, url("https://uapis.cn/api/v1/random/image?category=landscape"));
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.td-auth-brand {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    padding: 16px clamp(20px, 4vw, 56px);
}
.td-auth-logo img { display: block; max-width: 190px; max-height: 48px; object-fit: contain; }
.td-auth-home-link {
    padding: 8px 12px;
    color: #1d2433;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 1px;
    line-height: 1;
}
.td-auth-home-link:hover { color: var(--td-brand-color, #0052d9); background: #fff; border-color: rgba(0,82,217,.34); }
.td-auth-main {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 100vh;
    padding: 96px 20px 32px;
    place-items: center;
}
.td-auth-stage { display: grid; width: min(460px, 100%); gap: 12px; }
.td-auth-stage-login {
    width: min(1180px, 100%);
    grid-template-columns: minmax(220px, 1fr) minmax(420px, 460px) minmax(220px, 1fr);
    align-items: center;
    gap: 18px;
}
.td-auth-stage-login > .td-auth-notice { grid-column: 1; }
.td-auth-stage-login > .td-auth-card { grid-column: 2; }
.td-auth-stage-login > .td-auth-ad { grid-column: 3; }
.td-auth-stage-login > .td-auth-notice,
.td-auth-stage-login > .td-auth-card,
.td-auth-stage-login > .td-auth-ad { box-sizing: border-box; }
.td-auth-stage-wide { width: min(650px, 100%); align-self: start; margin-top: 12px; }
.td-auth-card {
    width: 100%;
    padding: 30px;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 0;
    box-shadow: 0 16px 42px rgba(0, 22, 58, .20);
}
.td-auth-card-wide { width: min(620px, 100%); }
.td-auth-head { margin-bottom: 26px; }
.td-auth-head h1 { margin: 0 0 7px; font-size: 26px; font-weight: 600; }
.td-auth-head p { margin: 0; color: var(--uc-muted); }
.td-auth-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--td-brand-color, #0052d9);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
}
.td-auth-form { display: grid; gap: 18px; }
.td-auth-links { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.td-auth-links > span { width: 1px; height: 14px; background: var(--uc-border); }
.td-auth-notice {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 15px;
    color: #2f3b52;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.62);
    border-left: 3px solid var(--td-brand-color, #0052d9);
    box-shadow: 0 8px 24px rgba(0, 22, 58, .14);
}
.td-auth-slot-icon {
    display: grid;
    width: 24px;
    height: 24px;
    color: #fff;
    background: var(--td-brand-color, #0052d9);
    border-radius: 50%;
    place-items: center;
    font-size: 13px;
    font-weight: 600;
}
.td-auth-slot-content { min-width: 0; }
.td-auth-slot-content strong { display: block; margin: 1px 0 4px; color: #1d2433; font-size: 14px; }
.td-auth-slot-content p,
.td-auth-ad-content p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.td-auth-slot-content p { color: var(--uc-muted); font-size: 13px; line-height: 1.65; }
.td-auth-slot-content a { display: inline-block; margin-top: 5px; font-size: 13px; }
.td-auth-ad {
    display: grid;
    min-height: 86px;
    grid-template-columns: 132px minmax(0, 1fr);
    color: inherit;
    overflow: hidden;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0, 22, 58, .14);
}
.td-auth-ad:hover { color: inherit; border-color: rgba(255,255,255,.92); }
.td-auth-ad > img { width: 100%; height: 100%; min-height: 86px; object-fit: cover; }
.td-auth-ad-content { display: grid; align-content: center; gap: 3px; padding: 12px 15px; }
.td-auth-ad-content > span { color: var(--td-brand-color, #0052d9); font-size: 11px; font-weight: 600; }
.td-auth-ad-content strong { color: #1d2433; font-size: 14px; }
.td-auth-ad-content p { color: var(--uc-muted); font-size: 12px; line-height: 1.55; }
.td-auth-ad-content em { color: var(--td-brand-color, #0052d9); font-size: 12px; font-style: normal; }
.td-auth-stage-login .td-auth-ad { grid-template-columns: 1fr; }
.td-auth-stage-login .td-auth-ad > img { height: 148px; min-height: 148px; }
.td-auth-mode-link { margin-top: -4px; justify-self: start; cursor: pointer; }
.td-auth-oauth { display: grid; gap: 10px; margin-top: 20px; color: var(--uc-muted); text-align: center; }
.td-auth-oauth > div { display: flex; align-items: center; justify-content: center; gap: 12px; }
.td-auth-oauth img { max-width: 32px; max-height: 32px; }
.td-phone-prefix { width: 112px; flex: 0 0 112px; }
.td-auth-tabs .t-tabs__content { padding-top: 22px; }
.td-auth-tabs form { display: grid; gap: 18px; }
.ExtremeTest_captcha {
    min-height: 42px;
}
.ExtremeTest_captcha:empty {
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: var(--td-text-color-secondary, #5e5e5e);
    background: var(--td-bg-color-secondarycontainer, #f3f3f3);
    border: 1px solid var(--uc-border);
    font-size: 13px;
}
.ExtremeTest_captcha:empty::before {
    content: "行为验证加载中…";
}
.ExtremeTest_captcha[data-behavior-init="error"]:empty {
    color: var(--td-error-color, #d54941);
    background: #fff2f0;
    border-color: #f5b5b0;
    cursor: pointer;
}
.ExtremeTest_captcha[data-behavior-init="error"]:empty::before {
    content: "行为验证加载失败，点击此处重试";
}
.td-code-field { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 8px; align-items: stretch; }
.td-captcha-image { display: grid; min-height: 32px; padding: 0; place-items: center; overflow: hidden; background: #fff; border: 1px solid var(--uc-border); border-radius: 2px; cursor: pointer; }
.td-captcha-image img { display: block; max-width: 100%; height: 100%; object-fit: cover; }
.td-inline-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.td-inline-field.td-phone-field { grid-template-columns: 130px minmax(0, 1fr); }
.td-auth-agreement { display: flex; align-items: flex-start; gap: 8px; color: var(--uc-muted); font-size: 13px; line-height: 1.7; }
.td-status-panel .td-panel-body { display: flex; min-height: 420px; align-items: center; flex-direction: column; justify-content: center; gap: 16px; text-align: center; }
.td-status-panel h2 { margin: 0; font-size: 18px; font-weight: 500; }
.td-status-image { width: 58px; height: 58px; object-fit: contain; }
.td-status-details { width: min(420px, 100%); border-top: 1px solid var(--uc-border); }
.td-status-details > div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 2px; border-bottom: 1px solid var(--uc-border); text-align: left; }
.td-status-details span { color: var(--uc-muted); }
.td-ticket-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(260px, .8fr); gap: 18px; align-items: start; }
.td-ticket-conversation { display: flex; max-height: 560px; min-height: 360px; flex-direction: column; gap: 18px; padding: 20px; overflow-y: auto; background: #fafafa; border-bottom: 1px solid var(--uc-border); }
.td-ticket-message { display: flex; align-items: flex-start; flex-direction: column; }
.td-ticket-message.is-user { align-items: flex-end; }
.td-ticket-message-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--uc-muted); font-size: 12px; }
.td-ticket-message-meta time { color: var(--uc-muted); }
.td-ticket-message-body { max-width: min(78%, 680px); padding: 11px 13px; background: #fff; border: 1px solid var(--uc-border); border-radius: 2px; line-height: 1.75; overflow-wrap: anywhere; }
.td-ticket-message.is-user .td-ticket-message-body { color: #fff; background: var(--td-brand-color, #0052d9); border-color: var(--td-brand-color, #0052d9); }
.td-ticket-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.td-ticket-attachments a { position: relative; display: block; width: 72px; height: 72px; overflow: hidden; border: 1px solid var(--uc-border); border-radius: 2px; }
.td-ticket-attachments img { width: 100%; height: 100%; object-fit: cover; }
.td-ticket-attachments span { position: absolute; right: 0; bottom: 0; left: 0; padding: 2px 4px; color: #fff; background: rgba(0,0,0,.56); font-size: 11px; text-align: center; }
.td-ticket-rating { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--uc-muted); font-size: 12px; }
.td-ticket-reply { padding: 18px; }
.td-ticket-reply > .td-form-field + .td-form-field { margin-top: 16px; }
.td-ticket-preview { min-height: 36px; margin-bottom: 8px; }
.td-ticket-sidebar { position: sticky; top: 76px; }
.td-department-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 18px; }
.td-department-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 14px; padding: 15px 16px; color: inherit; border: 1px solid var(--uc-border); border-radius: 2px; }
.td-department-card strong { font-size: 15px; font-weight: 500; }
.td-department-card span { grid-column: 1; color: var(--uc-muted); font-size: 13px; line-height: 1.6; }
.td-department-card i { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--uc-muted); }
.td-department-card:hover { color: var(--td-brand-color, #0052d9); border-color: var(--td-brand-color, #0052d9); }
.td-native-control { display: block; width: 100%; height: 32px; padding: 0 30px 0 9px; color: var(--td-text-color-primary, #191919); background: #fff; border: 1px solid var(--td-component-border, #dcdcdc); border-radius: 2px; outline: 0; }
.td-native-control:focus { border-color: var(--td-brand-color, #0052d9); box-shadow: 0 0 0 2px var(--td-brand-color-focus, rgba(0,82,217,.1)); }
.td-ticket-content-control { min-height: 166px; height: auto; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.td-ticket-submit-form { display: grid; gap: 18px; }
.td-ticket-submit-form em { color: var(--td-error-color, #d54941); font-style: normal; }

/* Complex legacy business widgets keep their DOM contracts, while their visible shell follows TDesign tokens. */
.td-legacy-surface .card,
.td-legacy-surface .modal-content,
.td-legacy-surface .list-group-item { background: #fff; border-color: var(--uc-border) !important; border-radius: 2px !important; box-shadow: none !important; }
.td-legacy-surface .card-header,
.td-legacy-surface .modal-header,
.td-legacy-surface .modal-footer { background: var(--uc-soft); border-color: var(--uc-border); }
.td-legacy-surface .form-control,
.td-legacy-surface .custom-select,
.td-legacy-surface .bootstrap-select > .dropdown-toggle { min-height: 32px; color: var(--td-text-color-primary, #191919); background: #fff; border: 1px solid var(--td-component-border, #dcdcdc); border-radius: 2px !important; box-shadow: none !important; }
.td-legacy-surface .form-control:focus,
.td-legacy-surface .custom-select:focus { border-color: var(--td-brand-color, #0052d9); box-shadow: 0 0 0 2px var(--td-brand-color-focus, rgba(0,82,217,.1)) !important; }
.td-legacy-surface .btn { min-height: 32px; padding: 5px 16px; border-radius: 2px !important; box-shadow: none !important; }
.td-legacy-surface .btn-primary { color: #fff; background: var(--td-brand-color, #0052d9); border-color: var(--td-brand-color, #0052d9); }
.td-legacy-surface .btn-danger,
.td-legacy-surface .btn-outline-danger:hover { color: #fff; background: var(--td-error-color, #d54941); border-color: var(--td-error-color, #d54941); }
.td-legacy-surface .badge { border-radius: 2px !important; }
.td-legacy-surface .table thead th { color: var(--td-text-color-secondary, #5e5e5e); background: var(--uc-soft); border-color: var(--uc-border); }
.td-legacy-surface .table td { border-color: var(--uc-border); }
.td-legacy-surface .progress { border-radius: 2px !important; }
.td-legacy-surface button[style*="border-radius"],
.td-legacy-surface input[style*="border-radius"],
.td-legacy-surface select[style*="border-radius"],
.td-legacy-surface textarea[style*="border-radius"],
.td-legacy-surface [class*="card"][style*="border-radius"],
.td-legacy-surface [class*="panel"][style*="border-radius"] { border-radius: 2px !important; }

/* Default-route compatibility: fallback templates inherit the same local TDesign visual system. */
.td-global-surface .card,
.td-global-surface .modal-content,
.td-global-surface .list-group-item,
.td-global-surface .dropdown-menu { background: #fff; border-color: var(--uc-border) !important; border-radius: 2px !important; box-shadow: none !important; }
.td-global-surface .card-header,
.td-global-surface .modal-header,
.td-global-surface .modal-footer { background: var(--uc-soft); border-color: var(--uc-border); }
.td-global-surface .form-control,
.td-global-surface .custom-select,
.td-global-surface .bootstrap-select > .dropdown-toggle,
.td-global-surface input[type="text"],
.td-global-surface input[type="number"],
.td-global-surface input[type="password"],
.td-global-surface input[type="email"],
.td-global-surface textarea,
.td-global-surface select { border-radius: 2px !important; box-shadow: none !important; }
.td-global-surface .form-control:focus,
.td-global-surface input:focus,
.td-global-surface textarea:focus,
.td-global-surface select:focus { border-color: var(--td-brand-color, #0052d9) !important; box-shadow: 0 0 0 2px var(--td-brand-color-focus, rgba(0,82,217,.1)) !important; }
.td-global-surface .btn { min-height: 32px; border-radius: 2px !important; box-shadow: none !important; }
.td-global-surface .btn-primary { color: #fff; background: var(--td-brand-color, #0052d9); border-color: var(--td-brand-color, #0052d9); }
.td-global-surface .badge,
.td-global-surface .nav-pills .nav-link,
.td-global-surface button[style*="border-radius"],
.td-global-surface input[style*="border-radius"],
.td-global-surface select[style*="border-radius"],
.td-global-surface textarea[style*="border-radius"],
.td-global-surface [class*="card"][style*="border-radius"],
.td-global-surface [class*="panel"][style*="border-radius"] { border-radius: 2px !important; }
.td-global-surface .table thead th { color: var(--td-text-color-secondary, #5e5e5e); background: var(--uc-soft); border-color: var(--uc-border); }
.td-global-surface .table td { border-color: var(--uc-border); }

.td-page-skeleton .t-skeleton__row { margin-right: 18px; margin-left: 18px; }
.td-page-skeleton .t-skeleton__row:first-child { margin-top: 20px; }
.td-page-skeleton .t-skeleton__row:last-child { margin-bottom: 20px; }
.td-empty { display: flex; min-height: 220px; align-items: center; justify-content: center; color: var(--uc-muted); }

.td-native-sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: auto;
    margin: 0;
    padding: 0 !important;
    color: inherit;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font: inherit;
    appearance: none !important;
    cursor: pointer;
}

/* Product list */
.td-service-toolbar { gap: 14px; }
.td-service-toolbar .td-toolbar-actions { flex: 1 1 auto; flex-wrap: wrap; }
.td-service-toolbar .td-toolbar-search { width: min(320px, 100%); flex: 0 0 auto; }
.td-service-table { min-width: 1120px; }
.td-service-table th:first-child,
.td-service-table td:first-child { width: 44px; text-align: center; }
.td-service-table td { vertical-align: middle; }

/* Legacy status refresh logic rewrites the TDesign button to `.dots`.
 * Keep it usable in the current table instead of falling back to a 4px dot. */
.td-service-table .td-toolbar-actions > button.dots {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    padding: 0;
    color: var(--td-brand-color, #0052d9);
    background: transparent !important;
    border: 0;
    border-radius: 2px;
    cursor: pointer;
    appearance: none;
}

.td-service-table .td-toolbar-actions > button.dots::before {
    content: "\21BB";
    display: block;
    font: 18px/1 Arial, sans-serif;
}

.td-service-table .td-toolbar-actions > button.dots:hover {
    color: var(--td-brand-color-hover, #266fe8);
    background: var(--td-brand-color-light, #ecf2fe) !important;
}

.td-service-table .td-toolbar-actions > button.dots:focus-visible {
    outline: 2px solid var(--td-brand-color-focus, #8eabdb);
    outline-offset: 1px;
}

#moduleReinstall .submit[disabled],
#moduleReinstall .submit.is-loading {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.68;
}

.uc-reinstall-submit-message { color: var(--td-brand-color, #0052d9); }
.uc-reinstall-submit-success { color: var(--td-success-color, #2ba471); }
.uc-reinstall-submit-warning { color: var(--td-warning-color, #d46b08); }

.uc-reinstall-progress {
    padding: 18px 0 8px;
}

.uc-reinstall-progress-text {
    color: var(--td-text-color-primary, #191919);
    font-size: 14px;
    line-height: 1.8;
}

.uc-reinstall-progress-text strong {
    color: var(--td-brand-color, #0052d9);
    font-weight: 600;
}

.uc-reinstall-progress-track {
    position: relative;
    height: 8px;
    margin-top: 18px;
    overflow: hidden;
    background: var(--td-bg-color-secondarycontainer, #f3f3f3);
    border-radius: 2px;
}

.uc-reinstall-progress-bar {
    position: relative;
    height: 100%;
    width: 0;
    overflow: hidden;
    background: linear-gradient(90deg, #0052d9 0%, #78a9ff 100%);
    border-radius: 2px;
    transition: width 0.45s ease;
}

.uc-reinstall-progress-bar::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.46), transparent);
    transform: translateX(-100%);
    animation: uc-reinstall-shimmer 1.5s linear infinite;
}

.uc-reinstall-progress.is-success .uc-reinstall-progress-bar {
    background: linear-gradient(90deg, #2ba471 0%, #85dbbe 100%);
}

.uc-reinstall-progress.is-warning .uc-reinstall-progress-bar {
    background: linear-gradient(90deg, #d46b08 0%, #f5ba5f 100%);
}

.uc-reinstall-progress.is-failed .uc-reinstall-progress-bar {
    background: linear-gradient(90deg, #d54941 0%, #f08f88 100%);
}

.uc-reinstall-progress.is-success .uc-reinstall-progress-bar::after,
.uc-reinstall-progress.is-warning .uc-reinstall-progress-bar::after,
.uc-reinstall-progress.is-failed .uc-reinstall-progress-bar::after {
    animation: none;
}

.uc-reinstall-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    color: var(--td-text-color-secondary, #5e5e5e);
    font-size: 12px;
}

.uc-reinstall-progress-meta strong {
    flex: 0 0 auto;
    color: var(--td-brand-color, #0052d9);
    font-variant-numeric: tabular-nums;
}

.uc-reinstall-progress-note {
    min-height: 20px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6;
}

@keyframes uc-reinstall-shimmer {
    100% { transform: translateX(100%); }
}

.td-cell-subtitle { display: block; margin-top: 4px; color: var(--uc-muted); font-size: 12px; line-height: 1.5; }
.td-os-icon { width: 22px; height: 22px; margin-right: 6px; object-fit: contain; vertical-align: middle; }
.td-dialog-source { display: none !important; }
.td-dialog-content { max-height: min(62vh, 560px); overflow: auto; color: var(--td-text-color-primary, #191919); }
.td-modal-bridge { display: none !important; }
.td-dialog-form { display: grid; gap: 18px; }
.td-dialog-content + .td-form-actions { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--uc-border); }
.t-dialog .td-code-field .td-native-control { flex: 1 1 auto; }
.t-dialog .btn { min-height: 32px; padding: 5px 16px; color: var(--td-text-color-primary, #191919); background: #fff; border: 1px solid var(--td-component-border, #dcdcdc); border-radius: 2px !important; box-shadow: none !important; }

/* Service detail keeps vendor module hooks but normalizes every visible shell to TDesign tokens. */
.td-service-detail button[style*="border-radius"],
.td-service-detail input[style*="border-radius"],
.td-service-detail select[style*="border-radius"],
.td-service-detail textarea[style*="border-radius"],
.td-service-detail [class*="card"][style*="border-radius"],
.td-service-detail [class*="panel"][style*="border-radius"] { border-radius: 2px !important; }
.td-service-detail .zc-btn,
.td-service-detail .zc-btn-ok,
.td-service-detail .zc-btn-no,
.td-service-detail .service_module_button { min-height: 32px; border-radius: 2px !important; box-shadow: none !important; }
.td-service-detail .zc-btn-ok,
.td-service-detail .zc-btn-primary { color: #fff !important; background: var(--td-brand-color, #0052d9) !important; border-color: var(--td-brand-color, #0052d9) !important; }
.td-service-detail .zc-btn-no { color: var(--td-text-color-primary, #191919) !important; background: #fff !important; border: 1px solid var(--td-component-border, #dcdcdc) !important; }
.td-service-detail input:not([type="checkbox"]):not([type="radio"]),
.td-service-detail select,
.td-service-detail textarea { border-radius: 2px !important; box-shadow: none !important; }
.td-service-detail input:focus,
.td-service-detail select:focus,
.td-service-detail textarea:focus { border-color: var(--td-brand-color, #0052d9) !important; box-shadow: 0 0 0 2px var(--td-brand-color-focus, rgba(0,82,217,.1)) !important; }
.td-download-layout { grid-template-columns: minmax(220px, .28fr) minmax(0, 1fr); }
.td-download-categories { display: grid; gap: 2px; padding: 8px; }
.td-download-categories a { display: flex; min-height: 40px; padding: 8px 10px; align-items: center; justify-content: space-between; color: inherit; border-radius: 2px; }
.td-download-categories a:hover { color: var(--td-brand-color, #0052d9); background: var(--td-brand-color-light, #ecf2fe); }
.td-download-categories i { margin-right: 8px; }
.td-nat-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.td-nat-row + .td-nat-row { margin-top: 8px; }
.td-renew-summary { display: flex; padding: 16px 18px; align-items: center; justify-content: space-between; border-top: 1px solid var(--uc-border); }
.td-renew-summary strong { color: var(--td-brand-color, #0052d9); font-size: 22px; }
.td-pay-fragment { color: var(--td-text-color-primary, #191919); }
.td-pay-head { display: flex; gap: 20px; padding-bottom: 16px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--uc-border); }
.td-pay-head h3 { margin: 0; font-size: 18px; font-weight: 500; }
.td-pay-head p { margin: 5px 0 0; color: var(--uc-muted); }
.td-pay-head > strong { color: var(--td-brand-color, #0052d9); font-size: 24px; }
.td-pay-main { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(220px, 1fr); gap: 24px; padding-top: 20px; }
.td-pay-code { display: flex; min-height: 220px; align-items: center; justify-content: center; background: var(--uc-soft); border: 1px solid var(--uc-border); border-radius: 2px; }
.td-pay-code object { width: 210px; height: 220px; }
.td-pay-options { display: grid; align-content: start; gap: 16px; }
.td-pay-options label { display: grid; gap: 7px; color: var(--uc-muted); }
.td-native-check { display: flex !important; grid-template-columns: auto 1fr; align-items: center; color: var(--td-text-color-primary, #191919) !important; }
.td-pay-balance { padding: 12px; background: var(--uc-soft); border: 1px solid var(--uc-border); border-radius: 2px; }
.td-button-native { display: inline-flex; min-height: 32px; padding: 5px 16px; align-items: center; justify-content: center; color: var(--td-text-color-primary, #191919); background: #fff; border: 1px solid var(--td-component-border, #dcdcdc); border-radius: 2px; cursor: pointer; }
.td-button-native.primary { color: #fff; background: var(--td-brand-color, #0052d9); border-color: var(--td-brand-color, #0052d9); }
.td-pay-success { display: grid; min-height: 220px; place-content: center; gap: 12px; color: var(--td-success-color, #2ba471); text-align: center; }
.td-pay-success i { font-size: 48px; }
.td-static-skeleton { display: grid; gap: 12px; width: 100%; padding: 20px; }
.td-static-skeleton i { display: block; height: 18px; background: linear-gradient(90deg,#f3f3f3 25%,#e7e7e7 37%,#f3f3f3 63%); background-size: 400% 100%; border-radius: 2px; animation: td-static-skeleton 1.4s ease infinite; }
.td-static-skeleton i:first-child { width: 44%; }
.td-static-skeleton i:nth-child(3) { width: 86%; }
.td-static-skeleton i:last-child { height: 120px; }
@keyframes td-static-skeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (max-width: 760px) {
    .td-page-header { display: block; }
    .td-page-actions { margin-top: 12px; }
    .td-toolbar, .td-pagination-bar { align-items: flex-start; flex-direction: column; }
    .td-form-grid { grid-template-columns: 1fr; }
    .td-form-field.wide { grid-column: auto; }
    .td-panel-head, .td-panel-body, .td-toolbar, .td-pagination-bar { padding-right: 12px; padding-left: 12px; }
    .td-content-grid { grid-template-columns: 1fr; }
    .td-account-grid { grid-template-columns: 1fr; }
    .td-balance-panel { align-items: flex-start; flex-direction: column; }
    .td-recharge-form { grid-template-columns: 1fr; }
    .td-payment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .td-auth-shell { display: grid; background-position: center; }
    .td-auth-brand { min-height: 64px; padding: 14px 16px; }
    .td-auth-logo img { max-height: 34px; }
    .td-auth-home-link { padding: 7px 9px; font-size: 13px; }
    .td-auth-main { min-height: 100vh; padding: 80px 12px 20px; }
    .td-auth-card { padding: 22px 18px; }
    .td-auth-ad { grid-template-columns: 96px minmax(0, 1fr); }
    .td-ticket-layout { grid-template-columns: 1fr; }
    .td-ticket-sidebar { position: static; }
    .td-ticket-message-body { max-width: 90%; }
    .td-department-grid { grid-template-columns: 1fr; padding: 12px; }
    .td-service-toolbar .td-toolbar-actions { width: 100%; }
    .td-service-toolbar .td-toolbar-search { width: 100%; }
    .td-download-layout { grid-template-columns: 1fr; }
    .td-renew-summary { align-items: flex-start; flex-direction: column-reverse; gap: 14px; }
    .td-pay-main { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
    .td-auth-stage-login {
        width: min(460px, 100%);
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 12px;
    }
    .td-auth-stage-login > .td-auth-notice,
    .td-auth-stage-login > .td-auth-card,
    .td-auth-stage-login > .td-auth-ad { grid-column: 1; }
    .td-auth-stage-login > .td-auth-notice { grid-row: 1; }
    .td-auth-stage-login > .td-auth-card { grid-row: 2; }
    .td-auth-stage-login > .td-auth-ad { grid-row: 3; }
    .td-auth-stage-login .td-auth-ad { grid-template-columns: 96px minmax(0, 1fr); }
    .td-auth-stage-login .td-auth-ad > img { height: 100%; min-height: 86px; }
}

/* The server may emit --nav-top-h-page: undefinedpx. Keep every authenticated route below the fixed navbar. */
body.inherit .sky-container .sky-main-content {
    margin-top: 48px !important;
}

body.inherit .sky-container .sky-navbar .sky-logo {
    height: 48px;
    overflow: hidden;
}

body.inherit .sky-container .sky-navbar .sky-logo img {
    display: block;
    width: auto !important;
    max-width: 120px;
    max-height: 36px;
    object-fit: contain;
}

.td-recharge-form {
    grid-template-columns: minmax(240px, 440px) minmax(280px, 1fr);
    gap: 16px 24px;
    align-items: start;
}

.td-recharge-form > .wide {
    grid-column: 1 / -1;
}

.td-recharge-form .td-payment-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 220px));
}

.td-recharge-form .td-form-actions {
    margin-top: 0;
}

@media (max-width: 900px) {
    .td-recharge-form {
        grid-template-columns: 1fr;
    }

    .td-recharge-form > .wide,
    .td-recharge-form > .td-form-field {
        grid-column: 1;
    }
}

@media (max-width: 760px) {
    body.inherit .sky-container .sky-main-content {
        width: 100%;
        margin-left: 0 !important;
    }

    body.inherit .sky-container .sky-sidebar {
        left: -300px;
        opacity: 0;
    }

    body.inherit .sky-container .sky-sidebar.isswitch {
        left: 0;
        opacity: 1;
    }
}

/* Flat console layout: structural surfaces use square edges; controls keep a minimal radius. */
.td-page {
    max-width: 1560px;
    margin-right: auto;
    margin-left: auto;
}

.td-panel,
.td-balance-panel,
.td-auth-card,
.td-route-skeleton-inner {
    border-radius: 0;
}

.td-page .t-button,
.td-page .t-input,
.td-page .t-input__wrap,
.td-page .t-textarea,
.td-page .t-select,
.td-page .t-tag,
.td-dialog-scope .t-dialog,
.t-dialog,
.t-dialog .t-button,
.t-dialog .t-input,
.t-dialog .t-textarea,
.t-dialog .t-select,
.t-popup,
.t-select__dropdown,
.t-message,
.t-notification,
.t-alert,
.t-tag {
    border-radius: 1px !important;
}

.td-page-header {
    align-items: center;
    margin-bottom: 16px;
}

.td-panel + .td-panel {
    margin-top: 16px;
}

.td-panel-head {
    min-height: 50px;
    padding: 12px 16px;
    background: #fafafa;
}

.td-panel-body {
    padding: 16px;
}

.td-toolbar {
    min-height: 56px;
    padding: 11px 16px;
    background: #fafafa;
    flex-wrap: wrap;
}

.td-toolbar-search {
    flex: 1 1 260px;
    width: auto;
    max-width: 420px;
}

.td-content-grid,
.td-account-grid,
.td-ticket-layout {
    gap: 16px;
}

.td-data-table th {
    padding: 11px 13px;
}

.td-data-table td {
    padding: 13px;
}

.td-pagination-bar {
    padding: 11px 16px;
    background: #fafafa;
}

.td-tabs-bar {
    gap: 0;
    padding-right: 12px;
    padding-left: 12px;
}

.td-category-count,
.td-native-control,
.td-captcha-image,
.td-ticket-message-body,
.td-ticket-attachments a,
.td-department-card,
.td-payment-grid .t-radio-button,
.td-pay-code,
.td-pay-balance,
.td-button-native,
.td-static-skeleton i {
    border-radius: 1px !important;
}

.td-department-grid {
    gap: 0;
    padding: 0;
    border-top: 1px solid var(--uc-border);
}

.td-department-card {
    min-height: 72px;
    border-width: 0 0 1px;
}

.td-download-categories a {
    border-radius: 0;
}

.td-legacy-surface .card,
.td-legacy-surface .list-group-item,
.td-global-surface .card,
.td-global-surface .list-group-item,
.td-global-surface .dropdown-menu {
    border-radius: 0 !important;
}

.td-legacy-surface .modal-content,
.td-global-surface .modal-content {
    border-radius: 1px !important;
}

.td-legacy-surface .form-control,
.td-legacy-surface .custom-select,
.td-legacy-surface .bootstrap-select > .dropdown-toggle,
.td-legacy-surface .btn,
.td-legacy-surface .badge,
.td-global-surface .form-control,
.td-global-surface .custom-select,
.td-global-surface .bootstrap-select > .dropdown-toggle,
.td-global-surface input[type="text"],
.td-global-surface input[type="number"],
.td-global-surface input[type="password"],
.td-global-surface input[type="email"],
.td-global-surface textarea,
.td-global-surface select,
.td-global-surface .btn,
.td-global-surface .badge,
.t-dialog .btn,
.td-service-detail .zc-btn,
.td-service-detail .zc-btn-ok,
.td-service-detail .zc-btn-no,
.td-service-detail .service_module_button,
.td-service-detail input:not([type="checkbox"]):not([type="radio"]),
.td-service-detail select,
.td-service-detail textarea {
    border-radius: 1px !important;
}

.td-legacy-surface [class*="card"][style*="border-radius"],
.td-legacy-surface [class*="panel"][style*="border-radius"],
.td-global-surface [class*="card"][style*="border-radius"],
.td-global-surface [class*="panel"][style*="border-radius"],
.td-service-detail [class*="card"][style*="border-radius"],
.td-service-detail [class*="panel"][style*="border-radius"] {
    border-radius: 0 !important;
}

.td-service-toolbar {
    align-items: center;
    gap: 10px 14px;
}

.td-service-toolbar .td-toolbar-actions {
    min-width: 0;
}

.td-service-toolbar .td-toolbar-search {
    flex: 1 1 280px;
    width: auto;
    max-width: 380px;
}

@media (max-width: 980px) {
    .td-content-grid,
    .td-account-grid,
    .td-ticket-layout {
        grid-template-columns: 1fr;
    }

    .td-ticket-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .td-page-header {
        align-items: flex-start;
    }

    .td-panel-head,
    .td-panel-body,
    .td-toolbar,
    .td-pagination-bar {
        padding-right: 12px;
        padding-left: 12px;
    }

    .td-toolbar-search,
    .td-service-toolbar .td-toolbar-search {
        width: 100%;
        max-width: none;
    }
}
