.sync-console{
    --sync-text:#1f2937;
    --sync-title:#172033;
    --sync-muted:#64748b;
    --sync-border:#e1e7f0;
    --sync-blue:#2272c8;
    --sync-soft:#e8f2ff;
    --sync-hover:#dbeafe;
    --sync-surface:#f8fafc;
}
.sync-heading{
    margin-bottom:10px;
}
.sync-titlebar h1, .sync-title-actions, .sync-block-copy, .sync-block-actions, .backup-title, .backup-title h2{
    display:inline-block;
    vertical-align:middle;
    margin-right:10px;
}
.sync-heading h1{
    margin:0 12px 0 0;
    color:var(--sync-title);
    font-size:24px;
    line-height:34px;
}
.sync-heading p{
    margin:4px 0 0;
    color:var(--sync-muted);
}
.sync-tools{
    margin:8px 0;
}
.sync-tool-panel{
    margin-top:6px;
    padding:8px 10px;
    border:1px solid var(--sync-border);
    border-radius:8px;
}
.sms-test summary{
    cursor:pointer;
    color:var(--sync-muted);
    line-height:34px;
}
.client-download-hint, .client-version{
    margin-left:6px;
    color:var(--sync-muted);
}
.client-download-item{
    margin:0 10px 6px 0;
}
.client-download-item > div, .client-download-link{
    display:inline-block;
    vertical-align:middle;
    margin-right:8px;
}
.client-download-item p, .record-settings p, .sync-tutorial p, .sms-test p{
    margin:4px 0;
    color:var(--sync-muted);
    line-height:1.5;
}
.client-download-link{
    text-decoration:none;
}
.android-download-qr{
    display:inline-block;
    padding:8px;
    vertical-align:middle;
    background:#fff;
    color:var(--sync-muted);
    text-align:center;
    font-size:14px;
}
.android-download-qr canvas{
    display:block;
    margin-bottom:6px;
}
.sync-online b{
    color:var(--sync-blue);
}
.sync-online-devices{
    display:block;
    overflow-wrap:anywhere;
}
.sync-block, .diagnostic-panel{
    box-sizing:border-box;
    min-width:0;
    margin:10px 0 0;
    padding:12px;
    border:1px solid var(--sync-border);
    border-radius:8px;
}
.sync-block-heading, .diagnostic-heading{
    margin-bottom:8px;
}
.sync-block h2, .diagnostic-heading h2, .backup-detail-dialog h2{
    display:inline-block;
    margin:0;
    color:var(--sync-title);
    font-size:18px;
    font-weight:600;
    vertical-align:middle;
    line-height:34px;
}
.sync-block-copy p, .sync-block-description{
    display:inline-block;
    margin:0 8px;
    line-height:34px;
    vertical-align:middle;
    color:var(--sync-muted);
}
.sync-button, .sync-refresh, .sync-copy, .sync-tab, .diagnostic-toggle, .device-item button{
    display:inline-block;
    box-sizing:border-box;
    height:34px;
    margin:0 6px 0 0;
    padding:0 10px;
    border:0;
    border-radius:8px;
    background:var(--sync-soft);
    color:var(--sync-blue);
    font:inherit;
    font-size:14px;
    line-height:34px;
    white-space:nowrap;
    vertical-align:middle;
    cursor:pointer;
}
.sync-button:hover, .sync-refresh:hover, .device-item button:hover{
    background:var(--sync-hover);
}
.sync-text-button, .sync-copy, .diagnostic-toggle{
    background:transparent;
    color:var(--sync-muted);
}
.sync-text-button:hover, .sync-copy:hover, .diagnostic-toggle:hover, .sync-tab:hover{
    background:#f1f5f9;
}
.sync-tool-toggle{
    border:1px solid var(--sync-border);
    background:var(--sync-surface);
    color:var(--sync-muted);
    line-height:32px;
}
.sync-tool-toggle:hover, .sync-tool-toggle[aria-expanded="true"]{
    border-color:#b8d5f6;
    background:var(--sync-soft);
    color:var(--sync-blue);
}
.sync-copy.is-copied, .sync-tab.is-active{
    background:var(--sync-soft);
    color:var(--sync-blue);
}
.sync-button:active, .sync-refresh:active, .sync-copy:active, .diagnostic-toggle:active, .device-item button:active{
    transform:scale(.98);
}
.sync-button:disabled, .sync-refresh:disabled, .sync-copy:disabled, .sync-tab:disabled, .device-item button:disabled{
    opacity:.5;
    cursor:default;
    transform:none;
}
.sync-refresh.is-refreshing{
    opacity:.72;
    cursor:wait;
}
.sync-tabs{
    display:inline-block;
    margin:0 0 8px;
    padding:2px;
    border:1px solid var(--sync-border);
    border-radius:8px;
}
.sync-tab{
    background:transparent;
    color:var(--sync-muted);
}
.backup-filters, .backup-actions, .backup-pagination{
    margin:0 0 8px;
    color:var(--sync-muted);
    line-height:38px;
}
.backup-filters label, .backup-actions label, .backup-pagination label, .record-settings-form label, .sms-test-form label{
    display:inline-block;
    margin-right:8px;
    vertical-align:middle;
}
.backup-filters input, .backup-filters select, .backup-actions select, .backup-pagination input, .record-settings-form input, .sms-test-form input, .sms-test-form textarea, .device-item input, .sync-source{
    box-sizing:border-box;
    width:150px;
    max-width:100%;
    height:34px;
    margin-left:6px;
    padding:0 8px;
    border:1px solid var(--sync-border);
    border-radius:8px;
    background:#fff;
    color:var(--sync-text);
    font:inherit;
    vertical-align:middle;
}
.backup-filters input[type="datetime-local"]{
    width:205px;
}
.backup-pagination input{
    width:65px;
}
.backup-actions > span, .backup-pagination > span{
    margin-right:8px;
}
.backup-record-check{
    width:16px;
    height:16px;
    vertical-align:middle;
    accent-color:var(--sync-blue);
}
.backup-task-list{
    margin-top:8px;
}
.backup-task-item{
    padding:6px 0;
    border-top:1px solid var(--sync-border);
    overflow-wrap:anywhere;
}
.backup-detail-dialog{
    box-sizing:border-box;
    max-width:min(680px, 94vw);
    width:100%;
    border:1px solid var(--sync-border);
    border-radius:10px;
    padding:16px;
    color:var(--sync-text);
    font-size:14px;
}
.backup-detail-dialog::backdrop{
    background:rgba(15, 23, 42, .35);
}
.backup-detail-dialog pre{
    max-height:60vh;
    overflow:auto;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    font:inherit;
}
.sync-table-wrap{
    min-width:0;
    overflow:auto;
    overscroll-behavior:contain;
}
.sync-records{
    max-height:360px;
}
.sync-table{
    width:100%;
    min-width:620px;
    border-collapse:separate;
    border-spacing:0;
    font-size:14px;
}
.sync-table thead{
    position:sticky;
    top:0;
    z-index:2;
    background:#fff;
}
.sync-table th{
    background:var(--sync-surface);
    color:var(--sync-muted);
    font-weight:500;
    text-align:left;
}
.sync-table th, .sync-table td{
    padding:5px 8px;
    line-height:24px;
    vertical-align:middle;
    white-space:nowrap;
    font-variant-numeric:tabular-nums;
}
.sync-table td{
    max-width:320px;
    border-top:1px solid #edf1f5;
}
.sync-table tr:hover td{
    background:#f8fbff;
}
.sync-cell-content{
    display:block;
    max-width:100%;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}
.sync-action-cell{
    width:1%;
    white-space:nowrap;
}
.sync-empty{
    margin:0;
    padding:12px;
    color:var(--sync-muted);
    text-align:center;
}
.sms-test{
    margin-top:6px;
}
.sms-test-form textarea{
    width:300px;
    padding:6px 8px;
    resize:vertical;
}
.sync-source{
    width:160px;
    margin:0 8px 0 0;
}
.device-item{
    margin:4px 0;
}
.device-item > span{
    display:inline-block;
    margin-right:8px;
}
.device-item button{
    margin-left:8px;
}
.diagnostic-heading h2{
    margin-right:8px;
}
.diagnostic-list{
    max-height:260px;
    overflow:auto;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    font:14px/1.4 Consolas, "Microsoft YaHei", monospace;
}
.is-nowrap{
    white-space:pre;
    overflow-wrap:normal;
}
.file-records{
    overflow:auto;
}
.file-record-row{
    margin:2px 0;
    white-space:nowrap;
}
.file-record-name{
    display:inline-block;
    max-width:40%;
    overflow:hidden;
    text-overflow:ellipsis;
    vertical-align:middle;
}
.sync-console [hidden]{
    display:none;
}
@media (max-width:600px){
    .sync-block, .diagnostic-panel{
        padding:8px;
    }
    .sync-heading h1{
        font-size:20px;
    }
    .backup-filters label{
        margin-right:4px;
    }
    .backup-filters input, .backup-filters select{
        width:130px;
    }
    .backup-filters input[type="datetime-local"]{
        width:195px;
    }
    .sync-block-copy p, .sync-block-description{
        margin-left:0;
    }
}
