
:root{--ink:#1f2938;--muted:#596777;--line:#dce2e9;--canvas:#f7f9fc;--paper:#fff;--accent:#344ddb;--selected:#eef1ff;--good:#166947;--bad:#b52c39;--radius:8px;--space:24px;--sidebar:232px;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang TC","Microsoft JhengHei",sans-serif;color:var(--ink);background:var(--canvas);font-size:15px;line-height:1.6;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:38px;border:1px solid var(--line);border-radius:6px;padding:7px 13px;background:var(--paper);color:var(--ink);font-weight:550;transition:background .15s,transform .1s,border-color .15s}button:hover{background:#f1f4f9}button:active{transform:scale(.98)}button.primary{background:var(--accent);border-color:var(--accent);color:white}button.primary:hover{background:#263bb9}button.quiet{background:transparent;border-color:transparent;color:var(--muted)}button.danger{color:var(--bad)}button:disabled{cursor:default;opacity:.5;transform:none}button.is-busy{pointer-events:none}button.is-busy:after{content:"";display:inline-block;width:12px;height:12px;margin-left:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite}a{color:var(--accent);text-underline-offset:3px}a.external{word-break:break-all}input,select,textarea{width:100%;padding:9px 11px;border:1px solid #bcc7d4;border-radius:6px;background:var(--paper);color:var(--ink);min-height:42px}textarea{resize:vertical;line-height:1.55}input[type=checkbox]{width:17px;height:17px;min-height:0;accent-color:var(--accent);margin:0}:focus-visible{outline:3px solid #9aacf5;outline-offset:3px}input:focus,textarea:focus,select:focus{border-color:var(--accent)}h1,h2,h3,p{margin-top:0}h1{font-size:25px;line-height:1.3;font-weight:650;letter-spacing:-.6px;margin-bottom:7px}h2{font-size:18px;line-height:1.4;margin-bottom:14px}h3{font-size:15px;margin:0 0 10px}p{margin-bottom:14px}small,.muted{color:var(--muted);font-size:14px}.mono,code,textarea.code{font-family:"SFMono-Regular",Consolas,monospace;font-size:13.5px;font-variant-numeric:tabular-nums}.shell{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;top:0;height:100dvh;background:#fff;border-right:1px solid var(--line);padding:24px 16px 16px;display:flex;flex-direction:column;gap:22px}.brand{display:flex;align-items:center;gap:10px;padding:0 8px;font-size:18px;font-weight:650;letter-spacing:-.5px}.brand-symbol{display:inline-grid;place-items:center;width:31px;height:31px;background:var(--accent);color:#fff;border-radius:8px;font-weight:700;font-size:20px}.site-switch label{font-size:13px;color:var(--muted);display:block;margin:0 8px 6px}.site-switch select{font-size:14px}.site-switch .add-site{width:100%;text-align:left;margin-top:5px}nav{display:flex;flex-direction:column;gap:4px}nav button{text-align:left;border:0;border-radius:6px;display:flex;gap:10px;align-items:center;padding:10px 12px;color:var(--muted)}nav button.active{background:var(--selected);color:var(--accent);font-weight:650}nav .section-label{font-size:13px;color:var(--muted);padding:20px 12px 5px}.nav-icon{font-size:17px;width:20px;text-align:center;line-height:1}.account{margin-top:auto;border-top:1px solid var(--line);padding:16px 8px 0;overflow-wrap:anywhere}.account strong{display:block;font-size:14px}.account small{font-size:13px}.account button{display:block;padding-left:0;margin-top:4px}.main{padding:32px clamp(20px,3.5vw,56px);min-width:0;max-width:1800px;width:100%;margin:0 auto;align-self:start}.topline{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px}.topline p{color:var(--muted);font-size:14px;margin:0;overflow-wrap:anywhere}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:white;border:1px solid var(--line);border-radius:var(--radius);margin:0 0 26px}.stat{padding:17px 22px;border-right:1px solid var(--line)}.stat:last-child{border-right:0}.stat .label{font-size:13px;color:var(--muted)}.stat .value{font-size:27px;font-weight:600;line-height:1.5;font-variant-numeric:tabular-nums;letter-spacing:-.6px}.stat small{font-size:13px}.toolbar{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:14px}.toolbar .search{max-width:320px}.toolbar select{max-width:180px}.surface{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:14px}th{color:var(--muted);font-weight:500;font-size:13px;background:#fafbfd;border-bottom:1px solid var(--line);padding:12px 18px;white-space:nowrap}td{padding:16px 18px;border-bottom:1px solid #ebeff4;vertical-align:middle}tr:last-child td{border-bottom:0}.row-link{border:0;background:transparent!important;padding:0;min-height:24px;text-align:left;color:var(--ink);font-weight:550;word-break:break-word}.row-link:hover{color:var(--accent)}td small{display:block;margin-top:3px;max-width:360px;overflow-wrap:anywhere}.path{font-family:"SFMono-Regular",Consolas,monospace;font-size:13px}.badge{display:inline-flex;align-items:center;gap:6px;padding:3px 8px;white-space:nowrap;border-radius:4px;background:#eef2f6;color:#4d5c6c;font-size:13px}.badge.good{background:#eaf5ef;color:var(--good)}.badge.bad{background:#fceef0;color:var(--bad)}.badge.active{background:#eef1ff;color:#334dcc}.badge.active:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;animation:pulse 1.3s ease-in-out infinite}.empty{padding:66px 24px;text-align:center}.empty p{color:var(--muted);max-width:420px;margin:0 auto 20px}.empty h2{font-weight:600}.form-section{padding:24px;border-bottom:1px solid var(--line)}.form-section:last-child{border-bottom:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 22px}.field{display:flex;flex-direction:column;gap:6px}.field>label{font-size:14px;font-weight:550}.field small{font-size:13px}.field.full{grid-column:1/-1}.checks{display:flex;gap:10px 22px;flex-wrap:wrap}.check{display:flex;align-items:center;gap:8px;font-size:14px;min-height:35px}.form-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:18px 24px;background:#fcfdff}.error{color:var(--bad);background:#fff1f2;border-radius:5px;padding:10px 12px;font-size:14px;margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere}.error:empty{display:none}.notice-inline{padding:12px 16px;border:1px solid #d6dff3;background:#f5f7fd;border-radius:6px;font-size:14px;margin:0 0 20px}.login{min-height:100dvh;display:grid;place-items:center;padding:28px}.login-panel{max-width:390px;width:100%}.login-panel .brand{padding:0;margin-bottom:38px}.login-panel h1{font-size:26px}.login-panel form{margin-top:28px}.login-panel .field{margin-bottom:18px}.login-panel button.primary{width:100%;margin-top:7px}.login-panel .intro{color:var(--muted)}dialog{border:1px solid var(--line);border-radius:12px;padding:0;max-width:min(720px,calc(100vw - 28px));width:720px;max-height:calc(100dvh - 48px);box-shadow:0 20px 80px #15213633;color:var(--ink);animation:dialog-in .22s ease-out}dialog::backdrop{background:#17223755}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:21px 24px;border-bottom:1px solid var(--line)}.dialog-head h2{margin:0}.dialog-head button{padding:0 10px;font-size:21px}.dialog-body{padding:24px}.editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.editor-column{min-width:0}.editor-column .field{margin-bottom:16px}.editor textarea{min-height:430px;font-size:13px}.editor iframe{width:100%;height:540px;background:white;border:1px solid var(--line);border-radius:6px}.tabs{display:flex;gap:6px;margin-bottom:16px;flex-wrap:wrap}.tabs button{border:0;background:transparent;font-size:14px}.tabs button.active{background:var(--selected);color:var(--accent)}.editor-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 15px}.editor-header h2{margin:0}.version-list{display:flex;flex-direction:column;gap:0}.version{padding:17px 20px;display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line)}.version:last-child{border:0}.version strong{display:block}.version .actions{justify-content:flex-end}.files-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.files-grid .surface{padding:20px}.files-grid textarea{min-height:330px;font-size:13px}.files-grid h2{font-family:"SFMono-Regular",Consolas,monospace}.rules-editor{width:100%;min-height:260px;margin-top:14px;font-size:13px}.sources{margin-bottom:24px}.sources td:first-child{font-weight:550}.skeleton{padding:30px;color:var(--muted)}.startup{min-height:100dvh;display:flex;align-items:center;justify-content:center;gap:16px}.startup p{margin:0}.bar{height:5px;background:#e6ebf4;border-radius:4px;overflow:hidden;margin-top:8px;max-width:140px}.bar span{display:block;height:100%;background:var(--accent);width:var(--coverage,0%)}#notice{position:fixed;right:24px;bottom:24px;max-width:420px;padding:12px 18px;background:#1f2938;color:white;border-radius:7px;box-shadow:0 6px 25px #19233625;z-index:20;display:none;font-size:14px}#notice.visible{display:block;animation:toast-in .18s ease-out}#notice.error-notice{background:#902631}.first-entry .main>.topline{animation:appear .25s ease-out}.first-entry .stats{animation:appear .3s .05s ease-out both}.first-entry .surface{animation:appear .3s .09s ease-out both}.no-wrap{white-space:nowrap}.split-note{display:flex;justify-content:space-between;gap:12px;margin-bottom:16px}.text-link{border:0;padding:0;min-height:26px;color:var(--accent);background:transparent!important}.login-panel .footnote{font-size:13px;margin-top:24px;color:var(--muted)}.read-only{font-size:13px;color:var(--muted)}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.3}}@keyframes dialog-in{from{opacity:0;transform:translateY(10px)}}@keyframes toast-in{from{opacity:0;transform:translateY(5px)}}@keyframes appear{from{opacity:0;transform:translateY(6px)}}
@media(max-width:1050px){:root{--sidebar:200px}.main{padding:28px 22px}.stat{padding:15px}.editor,.files-grid{grid-template-columns:1fr}.editor iframe{height:450px}.form-grid{gap:16px}.topline{flex-wrap:wrap}}
@media(max-width:680px){.shell{display:block}.sidebar{height:auto;position:relative;padding:14px 16px;gap:14px;border:0;border-bottom:1px solid var(--line)}.sidebar .brand{padding:0}.site-switch{display:flex;gap:8px}.site-switch label{display:none}.site-switch select{flex:1;min-width:0}.site-switch .add-site{width:auto;margin:0}.sidebar nav{flex-direction:row;overflow:auto;gap:3px}.sidebar nav button{white-space:nowrap;padding:8px 10px;font-size:14px}.nav-icon,.sidebar .section-label{display:none}.account{padding:0;margin:0;border:0;display:flex;align-items:center;gap:8px}.account strong{font-size:13px}.account small{font-size:13px}.account button{margin:0 0 0 auto;padding:4px;font-size:13px;min-height:30px}.main{padding:24px 16px}.stats{grid-template-columns:1fr 1fr}.stat:nth-child(2){border-right:0}.stat:nth-child(-n+2){border-bottom:1px solid var(--line)}.stat .value{font-size:25px}.topline h1{font-size:23px}.topline>.actions{width:100%}.toolbar{flex-wrap:wrap}.toolbar .search{max-width:none;flex:1;min-width:150px}.toolbar select{max-width:145px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.form-section,.dialog-body{padding:18px}.form-footer{padding:16px 18px}.files-grid{gap:16px}td,th{padding:12px}.empty{padding:40px 18px}.version{padding:16px;flex-wrap:wrap}.login{padding:24px}#notice{right:16px;left:16px;bottom:16px;max-width:none}.editor iframe{height:380px}.editor textarea{min-height:320px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Discovery keeps live progress separate from the persistent, selectable page inventory. */
.scan-intro{color:var(--muted);margin:0 0 18px;font-size:14px}
.scan-run{margin-bottom:24px}.scan-history{display:flex;align-items:center;gap:14px;padding:16px 20px;border-bottom:1px solid var(--line)}
.scan-history label{font-size:14px;font-weight:550;white-space:nowrap}.scan-history select{max-width:360px}.scan-history>span{margin-left:auto;white-space:nowrap;font-size:13px}
#scan-summary{padding:20px}.scan-run-head,.scan-run-head>div{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.scan-run-head .muted{font-size:13px}
.scan-counts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:20px 0 16px;gap:16px}.scan-counts dt{font-size:13px;color:var(--muted)}.scan-counts dd{font-size:26px;font-weight:600;font-variant-numeric:tabular-nums;margin:4px 0 0}
.scan-stop{font-size:14px;margin:0}.scan-options{margin-top:14px;color:var(--muted);font-size:13px}.scan-options summary{cursor:pointer;width:fit-content}.scan-options p{margin:10px 0 0;overflow-wrap:anywhere}.scan-options[open]>p{animation:appear .15s ease-out}
.badge.warn{background:#fff3d9;color:#875b09}.scan-inventory-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.scan-inventory-head h2{margin:0 0 6px}.scan-inventory-head p{margin:0}.scan-inventory-head>button{flex-shrink:0}
.scan-selection{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;flex-wrap:wrap}.scan-selection .muted{font-size:13px}.scan-select{width:48px;text-align:center}.scan-table th,.scan-table td{padding:14px 16px}.scan-table .scan-page{min-width:260px;max-width:500px}.scan-page strong{display:block;font-size:14px;overflow-wrap:anywhere}.scan-page>.path{display:block;margin-top:5px;overflow-wrap:anywhere}.scan-page small{max-width:100%;font-size:13px}.scan-table td[data-label]{min-width:100px}.scan-table td .path{overflow-wrap:anywhere;max-width:260px}
.scan-page-error{margin-top:6px;font-size:13px;color:var(--bad)}.scan-page-error.scan-skip{color:var(--muted)}.scan-page-error summary{cursor:pointer}.scan-page-error p{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.scan-empty{padding:32px 20px;text-align:center}.scan-empty h2,.scan-empty h3{margin-bottom:10px}.scan-empty p{margin:0 auto;max-width:480px;color:var(--muted)}
.discovery-panel{animation:appear .2s ease-out}
@media(max-width:1050px){.scan-history{flex-wrap:wrap}.scan-history>span{margin-left:0}.scan-table td,.scan-table th{padding:12px}.scan-counts{grid-template-columns:repeat(3,minmax(0,1fr))}.topline:has(+.discovery-panel){flex-wrap:wrap}}
@media(max-width:680px){
  .topline:has(+.discovery-panel),.topline:has([data-action=discover]){flex-wrap:wrap}.topline:has(+.discovery-panel)>.actions,.topline:has([data-action=discover])>.actions{width:100%;justify-content:flex-end}
  .scan-history{padding:14px;gap:8px}.scan-history label{width:100%}.scan-history select{max-width:none}.scan-history>span{font-size:12px}.scan-run{margin-bottom:20px}#scan-summary{padding:16px}.scan-counts{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 18px;margin:16px 0}.scan-counts dd{font-size:22px}.scan-counts dt{font-size:12px}.scan-run-head>div{gap:8px}.scan-inventory-head{flex-wrap:wrap}.scan-inventory-head>button{margin-left:auto}
  .scan-selection>.actions{width:100%;justify-content:flex-end}.scan-selection>.muted{font-size:13px}.scan-filter .search{max-width:none;min-width:150px}.scan-filter select{max-width:140px}
}
@media(max-width:1050px){.scan-table,.scan-table tbody{display:block}.scan-table thead{display:block}.scan-table thead tr{display:flex;align-items:center;padding:10px 14px;background:#fafbfd}.scan-table thead th{border:0;padding:0;background:none}.scan-table thead th:nth-child(n+3){display:none}.scan-table thead .scan-select{width:30px;text-align:left}.scan-table tbody tr{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;padding:16px 14px;border-top:1px solid var(--line)}.scan-table td{display:block;border:0;padding:0;min-width:0!important;max-width:none!important}.scan-table td.scan-select{grid-column:1;grid-row:1;width:auto;text-align:left;padding-top:3px}.scan-table td.scan-page{grid-column:2}.scan-table td[data-label]{grid-column:2;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.scan-table td[data-label]:before{content:attr(data-label);color:var(--muted);font-size:12px;min-width:86px}.scan-table td[data-label] small{margin:0}.scan-table td .path{max-width:100%}.scan-table .no-wrap{white-space:normal}}

.site-fields{border:0;padding:0;margin:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.coverage{display:block;height:5px;width:140px;max-width:100%;margin-top:8px;appearance:none;border:0;background:#e6ebf4}.coverage::-webkit-progress-bar{background:#e6ebf4;border-radius:4px}.coverage::-webkit-progress-value{background:var(--accent);border-radius:4px}

/* Mobile rows keep the page and its action together instead of squeezing columns. */
@media(max-width:680px){
  .sidebar{display:grid;grid-template-columns:1fr auto;gap:10px;padding:12px 16px}
  .sidebar .brand{font-size:16px}.sidebar .brand-symbol{width:27px;height:27px;font-size:18px}
  .site-switch{grid-column:1/-1;grid-row:2}.sidebar nav{grid-column:1/-1;grid-row:3}
  .account{grid-column:2;grid-row:1;gap:10px}.account small{display:none}
  .account button{margin:0}.account strong{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .main{padding:20px 16px}.topline{margin-bottom:16px;align-items:center;flex-wrap:nowrap}
  .topline>.actions{width:auto;flex-shrink:0}.topline .primary{padding:7px 10px;font-size:14px}
  .stats{margin-bottom:16px}.stat{padding:9px 12px}.stat .value{font-size:21px;line-height:1.4}
  .stat>small{display:none}.stat .coverage{margin-top:3px}.stat .label{font-size:12px}
  .pages-table,.pages-table tbody{display:block}.pages-table thead{display:none}
  .pages-table tr{display:grid;grid-template-columns:1fr auto;gap:7px 12px;padding:16px;border-bottom:1px solid var(--line)}
  .pages-table tr:last-child{border:0}.pages-table td{display:block;border:0;padding:0;min-width:0}
  .pages-table td:first-child{grid-column:1/-1}.pages-table td:last-child{grid-column:2;grid-row:2/5;align-self:end}
  .pages-table .row-link{font-size:15px}.pages-table .path{margin-top:4px}
  .pages-table .page-language,.pages-table .page-time{color:var(--muted);font-size:13px}
  .pages-table td:last-child button{padding:7px 0 0 8px;color:var(--accent)}
}

/* Source creation stays short; Proxy configuration lives in its own view. */
.source-fields{display:grid;gap:18px;margin-top:20px}
.render-options{border-top:1px solid var(--line);padding-top:16px}
.render-options summary{cursor:pointer;color:var(--muted);font-size:14px}
.render-options[open] summary{margin-bottom:18px}
.field-help{margin:12px 0 0;color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.update-fields{margin-top:20px}
.proxy-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.proxy-heading h2{margin:0}.crawler-heading{margin-top:20px}
.edge-fields{animation:appear .18s ease-out}
[hidden]{display:none!important}

/* Keep the reason beside its page; expand evidence only when investigating. */
.render-failure{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-top:6px;font-size:13px;color:var(--bad)}
.render-failure .text-link{font-size:13px}
.failure-heading{font-size:18px;font-weight:600;color:var(--bad)}
.diagnostic-facts{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px;margin:0 0 20px}
.diagnostic-facts div{min-width:0}.diagnostic-facts dt{font-size:13px;color:var(--muted)}
.diagnostic-facts dd{margin:3px 0 0;font-size:14px;overflow-wrap:anywhere}
.diagnostic-requests{padding-left:20px;margin:12px 0 20px}
.diagnostic-requests li{padding:6px 0;overflow-wrap:anywhere}.diagnostic-requests small{display:block}
.diagnostic-section{margin-top:16px}.diagnostic-section summary{cursor:pointer;font-size:14px}
.diagnostic-section pre{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.attempt-list{padding-left:22px}.attempt-list li{margin-top:14px;font-size:14px}.attempt-list small{display:block}
@media(max-width:680px){.diagnostic-facts{grid-template-columns:1fr}}

/* Rules stay optional; each hostname and path form one removable entry. */
.request-policy{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}
.request-policy summary{cursor:pointer;font-size:14px;color:var(--muted)}
.block-rules{display:grid;gap:16px;margin:16px 0}
.block-rule{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) auto;align-items:end;gap:12px}
.block-rule button{min-height:42px;font-size:13px}
.resource-notice{margin-top:6px}.resource-notice .text-link{font-size:13px}
@media(max-width:1050px){.block-rule{grid-template-columns:minmax(0,1fr)}.block-rule .field{grid-column:1}.block-rule button{grid-column:1;justify-self:end;min-height:38px}}

/* Catalog forms and JSON edit the same configuration; provenance stays in details. */
.rules-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.rules-toolbar .tabs{margin:0}.crawler-table td:first-child{min-width:150px}
.crawler-table td:last-child .actions{flex-wrap:nowrap}.crawler-table td:last-child button{font-size:13px;padding:7px 9px}
.crawler-ua-heading{margin-top:24px}.crawler-ua-heading h3{margin:0}
.ua-rule-row{display:grid;grid-template-columns:145px minmax(0,1fr);gap:14px 18px;padding:18px 0;border-bottom:1px solid var(--line)}
.ua-rule-row:last-child{border-bottom:0}.ua-rule-row .ua-source{grid-column:1/-1}.ua-rule-row>button{grid-column:2;justify-self:end;font-size:13px}
.crawler-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.crawler-detail-heading>strong{font-size:19px;overflow-wrap:anywhere}
.ua-detail-list>div{margin:14px 0}.ua-detail-list strong{font-size:14px;overflow-wrap:anywhere}.ua-detail-list p{margin:4px 0 0}
.dialog-body .mono{overflow-wrap:anywhere}.crawler-table .mono{overflow-wrap:anywhere}
/* Manual overrides stay separate from feeds; history exposes before/after changes. */
.manual-ip-settings{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}
.manual-ip-settings summary{cursor:pointer;font-size:14px;font-weight:550}
.manual-ip-settings>.actions{margin-top:18px}
.manual-ip-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:14px 18px;padding:18px 0;border-bottom:1px solid var(--line)}
.manual-ip-row>button{grid-column:1/-1;justify-self:end;font-size:13px}
.field-error{color:var(--bad);font-size:13px;margin:0}.manual-ip-row [aria-invalid=true]{border-color:var(--bad)}
.manual-ip-list{list-style:none;padding:0}.manual-ip-list li{margin:12px 0;overflow-wrap:anywhere}.manual-ip-list small{display:block;margin-top:4px}
.ip-range-list{max-height:260px;overflow:auto;padding-left:22px;font-size:13px}
.rules-history-table td:first-child{min-width:170px}.rules-history-table td:last-child{white-space:nowrap}
.history-crawler>strong{font-size:17px;overflow-wrap:anywhere}.history-crawler>small{display:block;margin-top:5px;overflow-wrap:anywhere}
.history-change-group{margin:20px 0}.history-change-group>summary{cursor:pointer;font-weight:600}
.history-change{margin-top:16px;border:1px solid var(--line);border-radius:6px;overflow:hidden}
.history-change>h3{margin:0;padding:10px 14px;background:var(--canvas);overflow-wrap:anywhere}
/* Signs and text preserve diff meaning without relying on color alone. */
.history-diff{font-size:13px;font-family:"SFMono-Regular",Consolas,monospace;line-height:1.65}
.diff-line{display:grid;grid-template-columns:30px minmax(0,1fr);padding:5px 12px 5px 0}
.diff-sign{text-align:center;font-weight:650;user-select:none}.diff-value{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}
.diff-added{color:#116329;background:#dafbe1}.diff-removed{color:#82071e;background:#ffebe9}
.diff-context{color:var(--muted);background:#fff}.diff-label{font-weight:500}
.diff-legend{display:flex;gap:10px;flex-wrap:wrap;font-size:13px}.diff-legend>span{padding:4px 8px;border-radius:4px}
.snapshot-versions .version{padding:16px 0;align-items:flex-start;flex-wrap:wrap}
.snapshot-versions .version-info{flex:1 1 260px;min-width:0;overflow-wrap:anywhere}
.snapshot-versions .version-info small{display:block;margin-top:4px}
.snapshot-versions .actions{flex:1 1 240px}
.snapshot-comparison{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:14px;align-items:start;margin-bottom:18px}
.snapshot-comparison strong,.snapshot-comparison small{display:block;margin-top:6px;overflow-wrap:anywhere}
.comparison-arrow{padding-top:24px;color:var(--muted)}
.snapshot-html-diff h3 small{float:right}.diff-note{padding:10px 14px;margin:0;border-bottom:1px solid var(--line)}
.diff-hunk-label{padding:6px 14px;background:var(--selected);color:var(--muted)}
.snapshot-html-diff .diff-line{padding-top:2px;padding-bottom:2px}
.snapshot-no-change{margin-top:20px}.snapshot-diff-body{animation:dialog-in .16s ease-out}
@media(max-width:680px){.snapshot-comparison{grid-template-columns:1fr}.comparison-arrow{display:none}.snapshot-versions .actions{justify-content:flex-start}}
@media(prefers-reduced-motion:reduce){.snapshot-diff-body{animation:none}}
@media(max-width:680px){.rules-toolbar{align-items:stretch}.rules-toolbar>.actions{width:100%}}
@media(max-width:1050px){
  .crawler-table,.crawler-table tbody{display:block}.crawler-table thead{display:none}
  .crawler-table tr{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px;border-bottom:1px solid var(--line)}
  .crawler-table tr:last-child{border-bottom:0}.crawler-table td{display:block;min-width:0!important;border:0;padding:0}
  .crawler-table td:first-child,.crawler-table td:last-child{grid-column:1/-1}
  .crawler-table td[data-label]:before{content:attr(data-label);display:block;color:var(--muted);font-size:13px;margin-bottom:3px}
  .crawler-table td:last-child .actions{justify-content:flex-end}
  .ua-rule-row{grid-template-columns:1fr}.ua-rule-row .ua-source,.ua-rule-row>button{grid-column:1}
  .manual-ip-row{grid-template-columns:1fr}.manual-ip-row>button{grid-column:1}
  .rules-history-table,.rules-history-table tbody{display:block}.rules-history-table thead{display:none}
  .rules-history-table tr{display:grid;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}
  .rules-history-table td{display:block;padding:0;border:0;min-width:0!important}.rules-history-table td:last-child{justify-self:end}
}
.locale-switch{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);min-width:0}.locale-switch select{width:auto;min-width:112px;max-width:100%;font-size:13px;padding:6px 9px;min-height:36px}.account>.locale-switch{margin-bottom:12px}.login-panel>.locale-switch{justify-content:flex-end;margin-bottom:18px}.dialog-head{gap:12px;flex-wrap:wrap}.dialog-head h2{flex:1}.dialog-head>.locale-switch{margin-left:auto}.sidebar{overflow-y:auto}
@media(max-width:680px){.account>.locale-switch{margin:0;order:3}.account{flex-wrap:wrap;max-width:160px;justify-content:flex-end}.account>.locale-switch{flex-basis:100%;justify-content:flex-end}.account .locale-switch>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.dialog-head>.locale-switch{order:3;width:100%;justify-content:flex-end}.dialog-head h2{min-width:0}.locale-switch select{min-width:108px}}
