/* Desktop recovery routes and transient states share live authorization and form handlers with H5. */
.desk-recovery-bar { display: none; }
@media (min-width: 768px) {
    .desk-recovery-bar {
        display: flex; align-items: center; justify-content: space-between;
        height: 56px; padding: 0 32px; box-sizing: border-box; color: #17253c;
        background: white; border-bottom: 1px solid #dbe2ec;
    }
    .desk-recovery-bar a { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 0; color: inherit; background: none; font-weight: 650; text-decoration: none; }
    .desk-http-code { color: #53637a; font: 500 13px ui-monospace,monospace; }
    .trc-status-page[data-trc-desktop-design] {
        min-height: 100vh;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        background: #f3f5f9;
        color: #17253c;
        font: 15px/1.65 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    }
    .trc-status-page[data-trc-desktop-design] main {
        display: grid;
        gap: 24px;
        width: min(640px, calc(100% - 80px));
        max-width: none;
        margin: clamp(64px, 17vh, 190px) auto;
        padding: 40px;
        box-sizing: border-box;
        border: 1px solid #dbe2ec;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 12px 44px #172d4a0c;
    }
    .trc-status-card .trc-status-number {
        display: block;
        color: #2756b5;
        font-size: 48px;
        line-height: 1;
        font-weight: 750;
        margin: 12px 0 16px;
    }
    .trc-status-page .trc-status-card h1 { font-size: 27px; line-height: 1.35; margin: 12px 0; }
    .trc-status-page .trc-status-card p:last-child { color: #54647b; margin: 0; }
    .trc-status-page[data-trc-desktop-design] nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; }
    .trc-status-expired[data-trc-desktop-design] main { max-width: 540px; }
    .trc-status-missing[data-trc-desktop-design] .trc-status-card img { display: none; }
    .trc-status-missing[data-trc-desktop-design] nav a:first-child { display: none; }
    .trc-status-page[data-trc-desktop-design] nav a {
        display: block; text-align: center; padding: 10px 18px; text-decoration: none;
        margin: 0; color: #214e9d; background: #f4f7fc; border: 1px solid #d9e3ef; border-radius: 8px;
    }
    .trc-status-expired[data-trc-desktop-design] nav a:last-child { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
    .trc-status-page[data-trc-desktop-design] nav a:focus-visible { outline: 3px solid #76a2ed; outline-offset: 2px; }

    .trc-status-business[data-trc-desktop-design] .error-page { position: static; background: none; }
    .trc-status-business[data-trc-desktop-design] .error-box {
        max-width: 640px; margin: 12vh auto; background: #fff; border: 1px solid #dbe2ec;
        border-radius: 16px; padding: 36px; color: #17253c;
    }
    .trc-status-business[data-trc-desktop-design] .error-body { padding: 0; }
    .trc-status-business[data-trc-desktop-design] .error-body h1 { font: 700 28px/1.4 system-ui, sans-serif; color: #17253c; }
    .trc-status-business[data-trc-desktop-design] .error-body h3 {
        padding: 14px; margin: 20px 0; border-left: 3px solid #be3442; background: #fff2f1;
        color: #7a2531; font: 500 15px/1.6 system-ui, sans-serif; text-transform: none !important;
    }
    .trc-status-business[data-trc-desktop-design] .error-box footer { position: static; margin-top: 20px; }
    .trc-status-business .error-body .desk-error-home { display: inline-flex; align-items: center; min-height: 36px; margin-left: 8px; padding: 4px 12px; border: 1px solid #d9e3ef; border-radius: 6px; color: #234d94; }
    .layui-layer-dialog[data-trc-desktop-design] {
        width: min(460px, calc(100vw - 64px)) !important;
        inset-inline: 0 !important;
        margin-inline: auto;
        top: 50% !important;
        translate: 0 -50%;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 20px 70px #071b3b33;
    }
    .layui-layer-dialog[data-trc-desktop-design] .layui-layer-title { color: #17253c; font-size: 17px; font-weight: 650; background: #fff; }
    .layui-layer-dialog[data-trc-desktop-design] .trc-confirm-target { font-size: 13px; color: #4d5a6c; border-radius: 6px; padding: 10px 14px; background: #f3f5f9; margin: 12px 0 0; }
    .layui-layer-dialog[data-trc-desktop-design] .layui-layer-btn a { border-radius: 6px; height: auto; min-height: 34px; padding: 3px 18px; }
    .layui-layer-dialog[data-trc-desktop-design="PC-SH-CONFIRM-DELETE"] .layui-layer-btn0 { background: #b52c39; border-color: #b52c39; color: white; }

    .viewer-container[data-trc-desktop-design] { background-color: #101827; }
    .viewer-container[data-trc-desktop-design] .viewer-toolbar > ul { display: inline-flex; gap: 4px; padding: 6px 10px; background: #17273f; border-radius: 8px; }
    .viewer-container[data-trc-desktop-design] .viewer-toolbar > ul > li { display: grid; place-items: center; width: 32px; height: 32px; }
    .trc-form-feedback[data-trc-desktop-design] { padding: 16px 20px; color: #762434; background: #fff4f3; border: 1px solid #e9bac0; border-left: 4px solid #ba3546; border-radius: 8px; }
    .trc-form-feedback[data-trc-desktop-design] p { font-weight: 650; }
    .trc-form-feedback .desk-feedback-count { display: block; font-weight: 700; margin-bottom: 4px; }
    .trc-form-feedback[data-trc-desktop-design] a { color: #872434; text-decoration: underline; }
    [data-trc-desktop-design="PC-SH-CAMPAIGN-DRAFT"] { border-inline-start: 4px solid #225ec2; }
    [data-trc-desktop-design="PC-SH-CAMPAIGN-DRAFT"] .panel-heading { font-weight: 650; }
    [data-trc-desktop-design="PC-SH-CAMPAIGN-DRAFT"] .draft-placement-line { display: none; }
    [data-trc-desktop-design="PC-SH-CAMPAIGN-DRAFT"] .desk-draft-record { display: block; overflow-x: auto; margin-block: 16px; }
    .desk-draft-record table { width: 100%; border-collapse: collapse; }
    .desk-draft-record :is(th, td) { padding: 10px 14px; text-align: left; border: 1px solid #dbe2ec; }
    .desk-draft-record th { color: #495c77; background: #f4f7fb; font-size: 13px; }
}
