/* product version: no legend, no numbered markers */
html:has(.frame), body:has(.frame), .frame { width:1280px !important; }
.legend, .n, .ln, .tip-k { display:none !important; }
/* Rules: two modes + whitelist / action */
.one-login { color: var(--muted) !important; font-weight: 500 !important; text-decoration: none !important; }
.modes.two { grid-template-columns: 1fr 1fr; }
.mode .filters { margin-top: 12px; }
.rules-cols.wl-act { grid-template-columns: 1.5fr 1fr; }
.wl-act .whitelist { display:grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.act-card { display:flex; flex-direction:column; gap:12px; }
.act-card .seg { align-self:flex-start; }
.act-opt { font-size:13px; line-height:1.5; color: var(--text); background:#f7f8fa; border-radius:8px; padding:10px 12px; }
.act-card .btn { margin-top:auto; align-self:stretch; height:42px; font-size:14px; }
/* Cleanup result block */
.result { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.result-head { display:flex; justify-content:space-between; align-items:baseline; margin-bottom: 8px; }
.result-title { font-size: 12.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.result-time { font-size: 12px; color: var(--faint); }
.result-total { font-size: 15px; font-weight: 650; margin-bottom: 6px; }
.result-row { display:flex; justify-content:space-between; font-size:13px; padding:6px 0; border-bottom:1px solid var(--line); }
.result-row span:last-child { color: var(--muted); }
.result-row b { color: var(--text); font-weight:650; }
.count-row { display:flex; align-items:center; gap:14px; }
.open-btn { height:34px; padding:0 16px; font-size:13.5px; font-weight:650; color: var(--brand); border-color:#b7d9d8; }
.preview .open-btn { width:auto; height:34px; font-size:13.5px; }
.preview .result { margin-top:16px; }
.modal-overlay { position: fixed; left:0; top:0; width:1280px; height:800px; background: rgba(17,24,39,.45); display:flex; align-items:center; justify-content:center; z-index: 100; }
.modal { width: 900px; background:#fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.3); display:flex; flex-direction:column; max-height: 640px; }
.modal-head { display:flex; justify-content:space-between; align-items:flex-start; padding: 16px 22px 12px; border-bottom:1px solid var(--line); }
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.modal-x { border:0; background:none; font-size: 24px; line-height:1; color: var(--muted); cursor:pointer; }
.modal-body { overflow-y:auto; padding: 0 22px; }
.modal-tbl { width:100%; border-collapse: collapse; font-size: 13px; }
.modal-tbl th { text-align:left; font-size: 11px; text-transform: uppercase; letter-spacing:.04em; color: var(--muted); font-weight:650; padding: 9px 8px; border-bottom:1px solid var(--line); }
.modal-tbl td { padding: 7px 8px; border-bottom:1px solid var(--line); vertical-align: middle; }
.modal-tbl td .hint { font-size: 11.5px; }
.modal-tbl tr.excluded td { opacity: .45; }
.modal-foot { display:flex; justify-content:space-between; align-items:center; padding: 12px 22px; border-top:1px solid var(--line); }
.pager { display:flex; align-items:center; gap:4px; }
.pager .hint { margin: 0 4px; }
.pg { min-width: 28px; height: 28px; border:1px solid var(--line-strong); background:#fff; border-radius:7px; font-size:12.5px; color: var(--text); }
.pg.on { background: var(--brand); border-color: var(--brand); color:#fff; font-weight:650; }
.modal-btns { display:flex; gap: 8px; }
.result-link { display:inline-block; margin-top:10px; font-size:13px; font-weight:650; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
