/* 总览「需要关注」、额度页筛选、会话页筛选的样式；只用 app.css 里已定义的变量。 */

.attention-list{display:flex;flex-direction:column;gap:8px}
.attention-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid var(--line);background:var(--panel2);border-radius:10px;padding:11px 13px;font-size:11px;color:var(--sub)}
.attention-item:hover{background:var(--line2)}
.attention-item .icon{flex-shrink:0;width:15px;height:15px}
.attention-item span{flex:1;color:var(--text);line-height:1.6}
.attention-item .icon:last-child{color:var(--muted);width:13px;height:13px}
.attention-item.error{border-color:#e2a89e55;background:var(--error-bg)}
.attention-item.error .icon:first-child{color:var(--error)}
.attention-item.error span{color:var(--error)}
.attention-item.warning{border-color:#d8bd7f55;background:var(--warn-bg)}
.attention-item.warning .icon:first-child{color:var(--warn)}
.attention-calm{display:flex;align-items:center;gap:12px;padding:16px 2px 22px}
.attention-calm>.icon{color:var(--mint-text);width:22px;height:22px;flex-shrink:0}
.attention-calm strong{font-size:12px;display:block;margin-bottom:3px}

.usage-hidden-note{display:flex;align-items:center;gap:10px;padding:12px 22px;border-top:1px solid var(--line2)}

@media(max-width:480px){
  .attention-item{align-items:flex-start}
  .attention-item span{line-height:1.7}
  /* 窄屏放不下标题 + 切换按钮 + 徽章，换行到第二排，不挤压也不横向溢出 */
  .usage-card-head{flex-wrap:wrap}
  .usage-head-tools{flex-basis:100%;justify-content:flex-end}
}
.alert-events{display:grid;gap:8px;margin-top:14px}.alert-events small{display:block;font-size:10px;color:var(--muted);margin-top:2px}

.sched-zone{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--sub)}.sched-zone input{width:64px;min-height:30px}.sched-list{margin-top:10px}.sched-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"check fields run" "last last last";gap:4px 16px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line2)}.sched-row:last-child{border-bottom:0}.sched-row .checkline{grid-area:check;padding:0}.sched-row .checkline strong{font-size:12px;color:var(--text);font-weight:560}.sched-fields{grid-area:fields;display:flex;gap:10px}.sched-fields label{display:flex;flex-direction:column;gap:4px;font-size:10px;color:var(--muted)}.sched-fields input{width:96px;min-height:30px}.sched-run{grid-area:run}.sched-last{grid-area:last;padding-left:23px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:700px){.sched-row{grid-template-columns:1fr;grid-template-areas:"check" "fields" "last" "run"}.sched-fields,.sched-last,.sched-run{padding-left:23px}.sched-last{white-space:normal}}
.backup-lists{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:22px}.backup-section h3{font-size:12px}.backup-list{max-height:300px;overflow:auto;margin-top:8px;border:1px solid var(--line);border-radius:10px;padding:0 12px}.backup-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line2)}.backup-row:last-child{border-bottom:0}.backup-row>div{min-width:0}.backup-row .mono{word-break:break-all}.backup-row .btn{flex:none;white-space:nowrap}
@media(max-width:700px){.backup-lists{grid-template-columns:1fr}}

.settings-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:24px;overflow-x:auto}.settings-tabs button{border:0;background:transparent;color:var(--muted);font-size:12px;font-weight:540;padding:11px 16px;border-bottom:2px solid transparent;white-space:nowrap;flex:none}.settings-tabs button:hover{color:var(--sub)}.settings-tabs button.active{color:var(--text);border-color:var(--text)}
@media(max-width:700px){.settings-tabs{margin-bottom:18px}}
.sched-fields{flex-wrap:wrap;justify-content:flex-end;max-width:460px}.sched-wide{flex:1 1 100%}.sched-wide input{width:100%}.sched-check{flex-direction:row!important;align-items:center;gap:6px!important;font-size:11px!important;color:var(--sub)!important;align-self:flex-end;min-height:30px}.sched-check input{width:auto;min-height:0}
@media(max-width:700px){.sched-fields{justify-content:flex-start;max-width:none}}

/* 总览最近请求：压低行高，UA 单行截断，悬停看全文 */
.compact-table th,.compact-table td{padding:7px 12px}
.compact-table .cell-title{gap:6px}
.compact-table .recent-model{max-width:150px}
.compact-table .ua-cell{width:100%;max-width:0}
.compact-table .ua-cell>div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px}
.compact-table .ua-cell .cell-sub{margin-top:1px}
.compact-table .ua-cell b{font-weight:550;color:var(--text)}
