.trc-mobile-only, .trc-role-sheet:not([open]) { display: none; }

@media (max-width: 767.98px) {
    :root {
        --role-ink: #000e27;
        --role-container: #0f2444;
        --role-muted: #44474e;
        --role-blue: #004ad1;
        --role-accent: #1d63ff;
        --role-bg: #fbf9fc;
        --role-line: #c5c6cf;
        --role-soft: #edf2ff;
        --role-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    }
    body[data-trc-role] { color: var(--role-ink); background: var(--role-bg); font: 15px/1.55 var(--role-font); }
    body[data-trc-role] :is(h1,h2,h3,h4,button,input,select,textarea) { font-family: var(--role-font); }
    body[data-trc-role] :focus-visible { outline: 3px solid var(--role-blue) !important; outline-offset: 2px; }
    .trc-role-workspace #wrapper > :is(.navbar,.sidebar), .trc-role-workspace .right-sidebar { display: none !important; }
    .trc-role-workspace #wrapper, .trc-role-dialog #wrapper { margin: 0; padding: 0; background: var(--role-bg); }
    .trc-role-workspace #page-wrapper { margin: 0; padding: 0; background: var(--role-bg); min-height: 85dvh; }
    .trc-role-workspace #page-wrapper > .container-fluid { padding: 0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left)); }
    .trc-role-workspace #page-wrapper .row { --bs-gutter-x: 0; margin-inline: 0; }
    .trc-role-workspace #page-wrapper .row > [class*="col-"] { min-width: 0; }
    .trc-role-workspace #page-wrapper > .container-fluid > .row > [class*="col-"] { padding-inline: 0; }
    .trc-role-workspace #page-wrapper > .footer { position: static; padding: 12px 10px calc(88px + env(safe-area-inset-bottom)); background: transparent; font-size: 12px; color: var(--role-muted); }
    .trc-role-workspace .bg-title { background: transparent; margin: 0; padding: 21px 0 13px; }
    .trc-role-workspace .bg-title .page-title { padding: 0; margin: 0; color: var(--role-ink); font-size: 24px; line-height: 1.35; font-weight: 750; }
    .trc-role-workspace .bg-title .breadcrumb { display: none; }
    .trc-role-bar, .trc-auth-bar {
        display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 1010;
        padding: calc(5px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 5px max(16px, env(safe-area-inset-left));
        min-height: 58px; background: #fff; color: var(--role-ink); border-bottom: 1px solid var(--role-line);
    }
    .trc-role-bar { position: sticky; top: 0; }
    .trc-role-logo { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; color: var(--role-ink); }
    .trc-role-logo img { border-radius: 7px; width: 32px; height: 32px; }
    .trc-role-logo strong { font-size: 22px; line-height: 1; letter-spacing: -.045em; font-weight: 800; }
    .trc-role-logo span { padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--role-line); font-size: 14px; font-weight: 600; }
    .trc-role-bar { gap: 6px; background: var(--role-bg); }
    .trc-role-bar .trc-role-logo strong { font-size: 16px; letter-spacing: 0; }
    .trc-role-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; margin-left: auto; border: 1px solid var(--role-line); border-radius: 30px; font-size: 12px; font-weight: 650; background: #f5f3f6; }
    .trc-role-badge i { color: var(--role-blue); }
    .trc-role-menu-button, .trc-sheet-head button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--role-ink); font-size: 20px; }
    .trc-role-tabs {
        display: flex; position: fixed; z-index: 1015; inset: auto 0 0; gap: 3px; padding: 5px max(8px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
        background: #fff; border-top: 1px solid var(--role-line); box-shadow: 0 -3px 18px #12335808;
    }
    .trc-role-tabs :is(a,button) { display: grid; place-content: center; justify-items: center; gap: 3px; flex: 1; min-height: 50px; padding: 2px; border: 0; border-radius: 8px; background: transparent; color: var(--role-muted); font-size: 11px; font-weight: 600; }
    .trc-role-tabs i { font-size: 19px; }
    .trc-role-tabs [aria-current="page"] { color: var(--role-blue); }
    .trc-role-tabs [aria-current="page"] i { color: var(--role-accent); }
    .trc-role-sheet[open] { display: flex; flex-direction: column; position: fixed; inset: auto 0 0; width: 100%; max-width: 100%; height: auto; max-height: calc(90dvh - env(safe-area-inset-top)); padding: 0; margin: 0; border: 0; border-radius: 20px 20px 0 0; background: var(--role-bg); color: var(--role-ink); }
    .trc-role-sheet::backdrop { background: rgb(16 32 53 / 48%); }
    .trc-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 20px; background: white; border-bottom: 1px solid var(--role-line); }
    .trc-sheet-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
    .trc-sheet-body { overflow-y: auto; overscroll-behavior-y: contain; padding: 14px 16px calc(24px + env(safe-area-inset-bottom)); }
    .trc-sheet-account { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
    .trc-account-letter { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; color: white; background: var(--role-blue); font-size: 18px; font-weight: 700; }
    .trc-sheet-account strong, .trc-sheet-account small { display: block; overflow-wrap: anywhere; }
    .trc-sheet-account small { color: var(--role-muted); }
    .trc-sheet-account a { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; min-height: 44px; white-space: nowrap; color: var(--role-blue); }
    .trc-menu-section h3 { color: var(--role-muted); margin: 18px 0 7px; font: 650 13px/1.4 var(--role-font); }
    .trc-menu-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; overflow: hidden; background: var(--role-line); border: 1px solid var(--role-line); border-radius: 12px; }
    .trc-menu-grid a { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 47px; padding: 8px 12px; color: var(--role-ink); background: white; font-weight: 550; }
    .trc-menu-grid a:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .trc-menu-grid a i { color: var(--role-muted); font-size: 12px; }
    .trc-menu-grid [aria-current="page"] { background: var(--role-soft); color: var(--role-blue); }
    .trc-role-dashboard { display: block; }
    .trc-dashboard-desktop, .trc-role-workspace:has(.trc-role-dashboard) .bg-title { display: none; }
    .trc-role-dashboard { padding-top: 16px; }
    .trc-role-funds { position: relative; isolation: isolate; overflow: hidden; padding: 20px 18px 16px; border-radius: 16px; background: var(--role-container); color: white; }
    .trc-funds-top, .trc-funds-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .trc-funds-label, .trc-funds-state { color: #d7e3ff; font-size: 12px; line-height: 18px; font-weight: 600; }
    .trc-funds-line { flex-wrap: wrap; margin: 5px 0 14px; }
    .trc-funds-line a { display: flex; align-items: center; min-height: 44px; padding: 4px 12px; border-radius: 9px; color: white; background: var(--role-blue); font-size: 13px; font-weight: 650; }
    .trc-funds-value { display: block; font-size: 28px; line-height: 36px; letter-spacing: -.25px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
    :is(.trc-funds-stats,.trc-conversion-values) { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; gap: 9px; }
    .trc-funds-stats { border-top: 1px solid #ffffff33; padding-top: 12px; }
    :is(.trc-funds-stats,.trc-conversion-values) dt { font-weight: 500; font-size: 11px; line-height: 1.45; }
    .trc-funds-stats dt { color: #d1dfeb; }
    :is(.trc-funds-stats,.trc-conversion-values) dd { margin: 4px 0 0; font-size: 15px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
    .trc-shortcut-section, .trc-task-section { margin: 18px 0; }
    .trc-shortcut-section:not(:has(a)), .trc-task-section:not(:has(a)), .trc-menu-section:not(:has(a)) { display: none; }
    .trc-shortcut-section h2, .trc-task-section h2 { margin: 0 0 10px; font: 650 20px/28px var(--role-font); color: var(--role-ink); }
    .trc-shortcuts, .trc-shortcut-links, .trc-task-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
    [data-trc-role="advertisement"] .trc-shortcuts { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .trc-shortcuts a, .trc-shortcut-links a, .trc-task-grid a { color: var(--role-ink); background: #fff; border: 1px solid var(--role-line); border-radius: 12px; }
    .trc-shortcuts a { display: grid; align-content: start; padding: 12px; gap: 4px; }
    .trc-shortcuts a i { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 2px; border-radius: 10px; color: var(--role-blue); background: #f5f3f6; font-size: 18px; }
    [data-trc-role="advertisement"] .trc-shortcuts a i { width: 23px; height: 26px; background: none; }
    .trc-shortcuts strong { font: 650 16px/24px var(--role-font); }
    .trc-shortcuts small { font-size: 12px; line-height: 18px; color: var(--role-muted); }
    .trc-shortcut-links { margin-top: 8px; }
    .trc-shortcut-links a, .trc-task-grid a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; font-size: 14px; font-weight: 600; }
    .trc-shortcut-links i, .trc-task-grid i { color: var(--role-blue); }
    .trc-shortcut-links .fa-angle-right { margin-left: auto; font-size: 12px; color: var(--role-muted); }
    .trc-section-title { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
    .trc-section-title h2, .trc-dashboard-chart .white-box .box-title { font-size: 17px; line-height: 1.45; font-weight: 720; margin: 0; color: var(--role-ink); }
    .trc-section-title a { display: flex; gap: 5px; min-height: 44px; align-items: center; font-size: 12px; font-weight: 600; color: var(--role-blue); }
    .trc-conversion-card, .trc-dashboard-chart .white-box { padding: 15px; border-radius: 16px; background: white; border: 1px solid var(--role-line); margin: 0 0 14px; }
    .trc-conversion-card { margin-top: 12px; }
    .trc-conversion-values { margin-top: 12px; }
    .trc-conversion-values dt { color: var(--role-muted); }
    .trc-conversion-values dd { font-size: 20px; }
    .trc-dashboard-chart .white-box > [id] { height: 245px !important; }
    .trc-dashboard-chart .white-box > .box-title { margin-bottom: 8px; }
    .trc-role-workspace .white-box { padding: 16px; margin-bottom: 14px; border: 1px solid var(--role-line); border-radius: 16px; }
    .trc-role-workspace .white-box .box-title { color: var(--role-ink); font-size: 17px; font-weight: 700; }
    .trc-role-workspace .white-box form:not(.form-horizontal) .form-group { margin-bottom: 12px; }
    .trc-role-workspace .panel, .trc-role-dialog .panel {
        border: 1px solid var(--role-line); border-radius: 16px; margin: 0 0 14px; background: #fff; box-shadow: none;
    }
    .trc-role-workspace .panel-heading, .trc-role-dialog .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 10px 14px; background: #fff; color: var(--role-ink); border-bottom: 1px solid var(--role-line); border-radius: 16px 16px 0 0; font-size: 15px; font-weight: 700; }
    .trc-role-workspace .panel-heading .panel-action { position: static; margin-left: auto; flex: none; }
    body[data-trc-role] .panel-body, body[data-trc-role] .panel-footer { padding: 14px; }
    body[data-trc-role] .panel-footer { background: #fff; border-color: var(--role-line); border-radius: 0 0 16px 16px; }
    body[data-trc-role] .panel-footer .pagination { float: none !important; }
    body[data-trc-role] .form-horizontal .form-group { margin: 0 0 14px; }
    body[data-trc-role] .form-horizontal .form-group > [class*="col-"] { padding-inline: 0; }
    body[data-trc-role] .form-horizontal .form-group > label.control-label { text-align: left; margin: 7px 0 4px; padding: 0; color: var(--role-ink); font-size: 14px; font-weight: 600; }
    body[data-trc-role] .form-control, body[data-trc-role] .select2-selection { border: 1px solid #c6d1dc; border-radius: 8px; background: #fff; min-height: 44px; color: var(--role-ink); font-size: 16px; }
    body[data-trc-role] .select2-container .select2-selection--single .select2-selection__rendered { line-height: 42px; padding-left: 11px; }
    body[data-trc-role] .select2-container .select2-selection--single .select2-selection__arrow { height: 42px; }
    body[data-trc-role] .form-control:disabled, body[data-trc-role] .form-control[readonly] { background: #f4f6f9; }
    body[data-trc-role] :is(.btn,.input-group-addon) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 8px; white-space: normal; }
    body[data-trc-role] .btn-default { background: #fff; color: var(--role-blue); border-color: var(--role-line); }
    body[data-trc-role] .panel-heading .panel-action a.btn { color: var(--role-blue); background: var(--role-soft); border-color: transparent; }
    body[data-trc-role] .btn-info, body[data-trc-role] .panel-footer button[type="submit"] { background: var(--role-blue); border-color: var(--role-blue); color: #fff; }
    body[data-trc-role] .radio-inline, body[data-trc-role] .checkbox-inline { display: inline-flex; min-height: 44px; align-items: center; gap: 4px; }
    body[data-trc-role] .input-group-addon, body[data-trc-role] .input-group-btn { flex: none; }
    body[data-trc-role] .help-block { color: var(--role-muted); line-height: 1.55; overflow-wrap: anywhere; }
    body[data-trc-role] :is(.trc-support,.trc-notice,.trc-account-summary) { border-radius: 12px; background: var(--role-soft); border-color: var(--role-line); border-left-color: var(--role-blue); }
    body[data-trc-role] .trc-account-summary { position: static; }
    body[data-trc-role] :is(.trc-upload-feedback,.alert,textarea,code) { overflow-wrap: anywhere; }
    .trc-role-dialog .container-fluid { padding: 14px !important; }
    body[data-trc-role] .layui-layer-iframe { max-width: calc(100vw - 12px); max-height: calc(100dvh - 12px); }
    .trc-filter-button, .trc-record-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 4px 10px; border: 0; border-radius: 7px; font-weight: 600; font-size: 13px; color: var(--role-blue); background: var(--role-soft); }
    .trc-filters-collapsed > .panel-wrapper { display: none; }
    .trc-role-workspace .trc-filters-collapsed > .panel-heading { border: 0; border-radius: 16px; }
    .trc-role-workspace .trc-scroll-hint { font-size: 12px; color: var(--role-muted); }
    .trc-role-workspace .trc-scroll-hint:has(+ .trc-card-table) { display: none; }
    .trc-role-workspace .trc-card-table { overflow: visible; }
    .trc-role-workspace .trc-card-table > table { display: block; border: 0; width: 100%; min-width: 0; margin: 0; }
    .trc-card-table > table > thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
    .trc-card-table > table > tbody { display: grid; gap: 10px; }
    .trc-card-table > table > tbody > tr { display: grid; border: 1px solid var(--role-line); border-radius: 10px; padding: 6px 12px; background: #fff; }
    .trc-role-workspace .trc-card-table > table > tbody > tr > td { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; max-width: 100%; width: auto; padding: 5px 0; position: static; white-space: normal !important; overflow-wrap: anywhere; color: var(--role-ink); font-size: 14px; line-height: 1.45; border: 0 !important; font-weight: 550; text-align: left !important; background: transparent !important; box-shadow: none; }
    .trc-card-table td[data-trc-label]::before { content: attr(data-trc-label); color: var(--role-muted); font-size: 12px; font-weight: 500; margin-right: auto; }
    .trc-role-workspace .trc-card-table td.trc-record-title { order: -1; font-size: 16px; font-weight: 720; border-bottom: 1px solid var(--role-line) !important; padding: 3px 0 7px; }
    .trc-card-table td.trc-record-title::before, .trc-card-table td.trc-record-actions::before { display: none; }
    .trc-record-toggle { margin-left: auto; }
    .trc-role-workspace .trc-card-table tr:not(.trc-record-expanded) > td.trc-record-extra { display: none; }
    .trc-role-workspace .trc-card-table td.trc-record-actions { order: 2; gap: 6px; }
    .trc-card-table td.trc-record-actions a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 3px 8px; border: 1px solid var(--role-line); border-radius: 7px; color: var(--role-blue); }
    .trc-card-table .trc-empty-record td { justify-content: center; min-height: 70px; }
    .trc-role-workspace .trc-card-table img { max-width: min(100%,140px); max-height: 100px; }
    .trc-role-workspace .report-details dl { grid-template-columns: auto minmax(0,1fr); }
    .trc-role-auth #wrapper.login-register { display: block; position: static; padding: 0 0 calc(24px + env(safe-area-inset-bottom)); min-height: 100dvh; height: auto; background: var(--role-bg) !important; }
    .trc-auth-bar { min-height: 52px; background: var(--role-bg); border: 0; }
    .trc-auth-intro { display: block; width: 100%; max-width: 510px; margin: 0 auto; padding: 8px max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left)); }
    .trc-auth-intro .trc-role-logo img { width: 40px; height: 40px; }
    .trc-auth-intro .trc-role-logo strong { font-size: 20px; letter-spacing: 0; }
    .trc-auth-intro h1 { margin: 10px 0 16px; color: var(--role-ink); font-size: 24px; font-weight: 700; line-height: 32px; }
    .trc-login-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; background: #efedf0; padding: 4px; border-radius: 12px; }
    .trc-login-tabs a { display: grid; place-items: center; min-height: 44px; border-radius: 8px; color: var(--role-muted); font-size: 14px; font-weight: 600; }
    .trc-login-tabs a[aria-current] { background: #fff; color: var(--role-ink); box-shadow: 0 1px 4px #000e2718; }
    .trc-role-auth:has(.trc-auth-intro) :is(.trc-login-identity, form > h3, .trc-login-desktop-label, .trc-account-links a:not(:last-child)) { display: none; }
    .trc-login-button-label { display: inline; }
    .trc-password-field { position: relative; }
    .trc-password-field #login-password { padding-right: 48px; }
    .trc-password-toggle { display: grid; place-items: center; position: absolute; right: 1px; bottom: 1px; min-width: 44px; min-height: 44px; border: 0; color: var(--role-muted); background: transparent; }
    .trc-auth-return { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; color: var(--role-muted); font-size: 13px; }
    .trc-role-auth .login-box, .trc-role-auth .login-box.login-sidebar { background: transparent; max-width: 510px; width: 100%; padding: 16px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
    .trc-role-auth .login-box .white-box { padding: 24px 18px; margin: 0; border-radius: 16px; box-shadow: 0 4px 16px #1629420a; border: 1px solid var(--role-line); background: #fff; }
    .trc-role-auth .login-box .form-control { font-size: 16px; color: var(--role-ink); padding-inline: 12px; box-shadow: none; background: #fff; }
    .trc-role-auth .login-box .login-field-label { font-size: 13px; font-weight: 650; }
    .trc-role-auth .login-box .box-title { font-size: 24px; line-height: 1.4; font-weight: 750; color: var(--role-ink); }
    .trc-role-auth .trc-login-identity { display: flex; align-items: center; gap: 8px; margin: 0 0 6px !important; font-size: 13px; color: var(--role-muted); }
    .trc-role-auth .trc-login-identity img { display: none; }
    .trc-role-auth .login-box .input-group { gap: 0 8px; }
    .trc-role-auth .input-group > .login-field-label { margin-bottom: 6px; }
    .trc-role-auth .captcha-refresh { display: flex; align-items: center; border-color: var(--role-line); border-radius: 8px; overflow: hidden; }
    .trc-role-auth .login-box .btn-block { min-height: 46px; font-size: 16px; font-weight: 650; }
    .trc-role-auth .trc-account-links { clear: both; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 14px; padding-top: 8px; margin-top: 12px; }
    .trc-role-auth .trc-account-links a { display: flex; align-items: center; min-height: 44px; color: var(--role-blue); font-size: 13px; }
}
