*{box-sizing:border-box}body{margin:0;font:14px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#17233b;background:#f4f6fa}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #d9e0ed;background:white;color:#263955;border-radius:7px;padding:8px 14px}button:hover{border-color:#3469dc;color:#3469dc}.primary{background:#3469dc;color:white;border-color:#3469dc}.primary:hover{background:#2959c0;color:white}.danger{color:#b42318}.shell{display:grid;grid-template-columns:225px 1fr;min-height:100vh}.sidebar{background:#172843;color:#c8d4e7;padding:24px 14px;position:sticky;top:0;height:100vh;overflow:auto}.brand{display:flex;align-items:center;gap:10px;padding:0 9px 27px;color:white;font-size:20px;font-weight:750}.mark{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#477cf0;color:white;font-size:19px}.brand small{display:block;color:#8da7cb;font-weight:400;font-size:11px}.nav{display:block;text-align:left;width:100%;border:0;color:#c8d4e7;background:transparent;margin:3px 0;padding:11px 13px;border-radius:6px}.nav:hover,.nav.selected{background:#294675;color:white}.nav b{display:inline-block;width:28px}.navgroup{color:#8196b4;font-size:11px;padding:20px 12px 5px;letter-spacing:1px}.main{min-width:0}.top{height:66px;background:#fff;border-bottom:1px solid #e3e8f0;display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:2}.top small{color:#71829c}.content{padding:26px;max-width:1550px;margin:auto}h1{font-size:25px;margin:0 0 4px;letter-spacing:-.5px}h2{font-size:17px;margin:0 0 15px}h3{margin:0 0 9px}.muted{color:#74849b;font-size:13px}.heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 23px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 20px}.card{background:#fff;border:1px solid #e0e6ef;border-radius:10px;padding:20px;box-shadow:0 3px 9px #233b6205;min-width:0;margin-bottom:16px}.cards .card{margin:0}.metric{font-size:29px;font-weight:730;line-height:1.4;letter-spacing:-.7px}.metric-label{color:#6b7b94;font-size:13px}.toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:12px 0}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}th{background:#f5f7fb;text-align:left;color:#61738d;font-weight:600;padding:11px 12px}td{padding:12px;border-bottom:1px solid #ecf0f5;vertical-align:middle}td.wrap{white-space:normal;max-width:370px;overflow-wrap:anywhere}tr:last-child td{border:0}.pill{display:inline-block;border-radius:4px;background:#eff3f8;padding:2px 9px;color:#63748d;font-size:12px}.on{background:#e9f7ee;color:#237946}.off{background:#f2f3f5;color:#69778b}.link{color:#3469dc;text-decoration:none;overflow-wrap:anywhere}.link:hover{text-decoration:underline}.empty{padding:38px;text-align:center;color:#8190a5}.progress{height:8px;background:#e9edf5;border-radius:8px;overflow:hidden}.progress span{display:block;height:100%;background:#3469dc}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:flex;flex-direction:column;gap:5px;margin-bottom:13px}.field label{font-weight:600;color:#42536e;font-size:13px}input,select{width:100%;border:1px solid #d7dfeb;border-radius:6px;background:white;padding:10px 11px;min-width:0;color:#17233b}input:focus,select:focus{outline:2px solid #d6e5ff;border-color:#3469dc}dialog{border:0;border-radius:12px;width:min(700px,95vw);max-height:90vh;padding:25px;box-shadow:0 20px 80px #16284644;color:#17233b}dialog::backdrop{background:#15233b80}.modalhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.modalhead h2{margin:0}.actions{display:flex;gap:9px;justify-content:flex-end;margin-top:18px}.targetrow{border:1px solid #e1e8f0;border-radius:8px;padding:12px;margin:10px 0}.targetrow .field{margin-bottom:8px}.auth{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.authleft{background:#183151;color:white;display:flex;flex-direction:column;justify-content:center;padding:12%;gap:12px}.authleft h1{font-size:38px;line-height:1.25}.authleft p{color:#b7cbea;font-size:16px}.authright{display:flex;align-items:center;justify-content:center;padding:28px}.authbox{width:400px;max-width:100%;padding:30px}.authbox h1{margin-bottom:18px}.authbox .primary{width:100%;margin-top:8px}.authbox .switch{width:100%;margin-top:10px;border:0}.note{background:#eef4ff;border:1px solid #dce7fb;color:#45648e;padding:12px;border-radius:6px;margin:12px 0}.toast{position:fixed;right:22px;bottom:24px;background:#172843;color:white;padding:12px 18px;border-radius:8px;z-index:10;box-shadow:0 4px 18px #15233b44}#toast:empty{display:none}.stack{display:grid;gap:12px}.split{display:grid;grid-template-columns:1fr 1fr;gap:16px}.smallbtn{padding:5px 9px;font-size:12px}.chartrow{display:grid;grid-template-columns:105px 1fr 55px;gap:12px;align-items:center;padding:6px 0}.chartbar{height:11px;background:#edf2fa;border-radius:4px}.chartbar i{display:block;height:100%;background:#5b84e7;border-radius:4px}.right{text-align:right}.nowrap{white-space:nowrap} @media(max-width:850px){.shell{grid-template-columns:1fr}.sidebar{height:auto;position:static;display:flex;align-items:center;gap:4px;overflow-x:auto;padding:10px}.brand{padding:0 10px 0 0;white-space:nowrap}.brand small,.navgroup{display:none}.nav{width:auto;white-space:nowrap;padding:9px}.nav b{display:none}.top{padding:0 15px;position:static}.content{padding:16px}.cards{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}.auth{grid-template-columns:1fr}.authleft{padding:30px}.authleft h1{font-size:27px}.formgrid{grid-template-columns:1fr}.heading{align-items:flex-start} }

/* V2: compact operations console */
:root{--sidebar:#20242e;--blue:#3267d6;--line:#e2e5ea;--ink:#343b46}
body{font:13px/1.55 -apple-system,BlinkMacSystemFont,"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",sans-serif;color:var(--ink);background:#f3f4f6}
.shell{grid-template-columns:216px minmax(0,1fr)}.sidebar{background:var(--sidebar);padding:0 0 42px;color:#b9c1cf;position:sticky}.sidebar .brand{height:58px;padding:0 16px;gap:11px;border-bottom:1px solid #343a46;font-size:18px;letter-spacing:.1px}.sidebar .mark{height:30px;width:30px;background:#3767df;border-radius:5px;font-size:17px}.sidebar .brand small{font-size:10px;color:#9da9bd}.menu-search{position:relative;margin:14px 12px 7px}.menu-search input{background:#2d3440;border:1px solid #3a4251;color:white;height:32px;padding:5px 30px 5px 10px;border-radius:3px}.menu-search input::placeholder{color:#9ba6b7}.menu-search span{position:absolute;right:10px;top:3px;color:#aab4c3;font-size:19px}.navgroup{padding:16px 16px 5px;color:#788698;font-size:11px;letter-spacing:.5px}.nav{margin:0;border-radius:0;padding:11px 15px;font-size:13px;font-weight:500;color:#c4ccd8;border-left:3px solid transparent}.nav[hidden]{display:none}.nav b{font-size:15px;width:24px;color:#a2b0c5}.nav:hover{background:#2e3543;color:white}.nav.selected{background:#355bd1;color:white;border-left-color:#7da1ff}.nav.selected b{color:white}.sidefoot{position:absolute;bottom:12px;left:16px;color:#8491a6;font-size:11px}.top{height:54px;padding:0 19px;box-shadow:none;position:relative}.top-left,.top-right{display:flex;align-items:center;gap:12px}.top-left strong{font-size:14px}.menu-symbol{color:#667184;font-size:17px}.top-divider{height:20px;border-left:1px solid #e1e5eb}.user-dot{width:26px;height:26px;background:#e7edf9;color:#315dc6;border-radius:50%;display:grid;place-items:center;font-weight:700}.tabbar{display:flex;align-items:stretch;background:#fff;border-bottom:1px solid #dce1e8;min-height:38px;overflow:auto}.tab{display:flex;align-items:center;white-space:nowrap;border-right:1px solid #e5e8ed;border-top:2px solid transparent}.tab button,.tabrefresh{border:0;border-radius:0;background:transparent;padding:7px 12px;color:#616b7b;font-size:12px}.tab.active{border-top-color:#3769e0;background:#f0f4ff}.tab.active button{color:#315dc6}.tab .tab-close{padding:4px 9px 4px 0;color:#9299a4}.tabfill{flex:1}.tabrefresh{border-left:1px solid #e5e8ed;font-size:17px}.content{padding:16px;max-width:none}.heading{margin:0 0 12px;gap:8px}h1{font-size:19px;letter-spacing:0;color:#2f3742}h2{font-size:15px;margin-bottom:12px}.muted{font-size:12px;color:#87909e}.card{border:1px solid #e1e5eb;border-radius:3px;padding:14px;box-shadow:none;margin-bottom:12px}.cards{gap:12px;margin-bottom:14px}.metric{font-size:24px;color:#29374c}.summarybar{display:flex;flex-wrap:wrap;align-items:center;gap:18px;background:#eaf1fc;border:1px solid #cbd9ef;color:#425978;padding:10px 12px;margin-bottom:12px;border-radius:3px;font-size:12px}.summarybar strong{color:#26456f}.summarybar b{margin-left:5px;color:#243b63;font-size:14px}.filtergrid{display:grid;grid-template-columns:minmax(200px,1.6fr) minmax(110px,1fr) minmax(140px,1fr) auto;gap:12px;align-items:end}.filtergrid .field{margin:0;gap:4px}.filter-actions{display:flex;gap:6px}.field label{font-size:12px;font-weight:500;color:#454d59}input,select{height:34px;border-radius:3px;border-color:#d9dfe6;padding:6px 9px;font-size:13px}button{border-radius:3px;padding:6px 12px;font-size:13px}.primary{background:#2877df;border-color:#2877df}.toolbar{margin:14px 0 10px;gap:6px}.toolbar button{height:32px;padding:5px 12px;color:white;border:0;font-size:12px}.toolbar button:disabled{opacity:.48;cursor:default}.tool-refresh{background:#3b4658}.tool-add{background:#18a689}.tool-edit{background:#40b7aa}.tool-copy{background:#2476db}.toolbar-spacer{flex:1}.tablewrap{border:1px solid var(--line);border-radius:2px}table{font-size:12px}th{background:#f3f5f7;color:#454d58;font-weight:600;padding:9px 10px;border-bottom:1px solid #dfe4e9}td{padding:10px;border-bottom:1px solid #e7ebef;color:#424b56}tbody tr:nth-child(even){background:#fafbfd}tbody tr:hover{background:#f2f6fd}.row-select{width:14px;height:14px;accent-color:#3769e0;vertical-align:middle}.url-chip{display:inline-block;padding:3px 6px;background:#f5f6f8;border:1px solid #e2e6eb;border-radius:3px;max-width:235px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;vertical-align:middle;font:11px/1.5 ui-monospace,monospace}.icon-copy{padding:2px 5px;border:0;background:transparent;color:#53627a}.inline-edit{color:#236bc8;padding:3px 8px}.pill{border-radius:2px;padding:2px 6px}.tablefooter{display:flex;align-items:center;justify-content:space-between;margin-top:12px;font-size:12px;color:#717b89}.smallbtn:disabled{opacity:.45;cursor:default}.empty{padding:36px}.note{border-radius:3px}.authleft{background:#20242e}.authbox{border-radius:5px}.modalhead{border-bottom:1px solid #e5e8ed;padding-bottom:12px}dialog{border-radius:5px}.targetrow{border-radius:3px}
@media(max-width:1050px){.filtergrid{grid-template-columns:1fr 1fr}.filter-actions{justify-content:flex-start}.summarybar{gap:10px}.top-right .muted{display:none}}
@media(max-width:850px){.shell{grid-template-columns:1fr}.sidebar{height:auto;position:static;display:flex;align-items:center;gap:3px;padding:5px;overflow:auto}.sidebar .brand{height:40px;border:0;padding:0 8px}.sidebar .nav{border-left:0;padding:8px}.menu-search,.sidefoot,.navgroup{display:none}.content{padding:10px}.top{padding:0 10px}.top-left small{display:none}.filtergrid{grid-template-columns:1fr 1fr}.summarybar{padding:8px}.tabbar{min-height:34px}}
/* Compact enterprise console */
:root{--line:#e0e4e9}body{font-family:"Microsoft YaHei",Arial,sans-serif;font-size:13px}.sidebar .brand small{font-size:11px;font-weight:400;opacity:.65}.card{box-shadow:none;border-radius:3px}.summarybar{border-radius:2px}.primary,.toolbar button,.smallbtn{border-radius:3px}.previewlink{overflow-wrap:anywhere;color:#2464b5}.linkform textarea{width:100%;resize:vertical}.inputgroup{display:flex;gap:8px}.inputgroup input{flex:1;min-width:0}.inputgroup button{white-space:nowrap}
/* V4.2 — compact, restrained operations UI */
button{transition:background .12s,border-color .12s,color .12s}button:focus-visible,a:focus-visible{outline:2px solid #3678d6;outline-offset:2px}.toolbar .tool-add{background:#2877df}.toolbar .tool-edit{background:#fff;color:#43536a;border:1px solid #d3dae5}.toolbar .tool-copy{background:#fff;color:#2366c5;border:1px solid #b9cdec}.toolbar .tool-refresh{background:#fff;color:#4f5d70;border:1px solid #d3dae5}.toolbar button:not(:disabled):hover{filter:brightness(.96)}.link-cell{display:flex;align-items:center;gap:7px;min-width:205px}.link-cell .url-chip{background:transparent;border:0;font:12px/1.5 Arial,sans-serif;color:#2466b8;padding:0;max-width:230px;text-decoration:none}.link-cell .url-chip:hover{text-decoration:underline}.copy-btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap;border:1px solid #c6d6eb;background:#f7faff;color:#2466b8;font-size:12px;padding:5px 8px;min-height:29px;border-radius:4px}.copy-btn:hover{background:#e9f1ff;border-color:#8aaee1}.copy-btn.copied,.toolbar button.copied{color:#16804a;background:#eef9f1;border-color:#a6d7b5;opacity:1}.route-tag{display:block;color:#916627;margin-top:3px;font-size:11px}.route-note{background:#fffbef;color:#805d25;border:1px solid #e9dcb7;padding:8px 12px;margin:0 0 10px;border-radius:4px;font-size:12px}.route-note[hidden]{display:none}.detail-link{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#f6f8fb;border:1px solid #e1e6ee;padding:10px 12px;margin-bottom:16px;border-radius:4px}.detail-link a{overflow-wrap:anywhere;flex:1;min-width:160px}.modalhead{margin-bottom:18px;padding-bottom:14px}.modalhead h2{margin:0;font-size:16px;font-weight:600}.close-btn{font-size:22px;line-height:1;border:0;background:transparent;color:#738094;padding:2px 8px}.close-btn:hover{background:#eef1f5;color:#29374c}dialog{width:min(690px,calc(100vw - 32px));padding:22px 26px;border-radius:6px;box-shadow:0 12px 38px #15223930}dialog:has(.simple-target){width:min(530px,calc(100vw - 32px))}.targetrow{padding:0;border:0;margin:10px 0 16px;background:transparent}.target-label{display:block;font-weight:500;color:#414b59;margin-bottom:6px}.target-input{display:flex;gap:8px;align-items:center}.target-input input{flex:1;min-width:0;height:38px}.target-input .removeTarget{position:static;flex:0 0 32px;margin:0;height:32px;border:1px solid #ead4d4;background:#fff;color:#b94c4c;padding:0;font-size:20px}.field-help{display:block;color:#788393;font-size:12px;margin:6px 0 12px;line-height:1.6}.simple-target .actions{border-top:1px solid #e5e9ef;padding-top:15px}.actions button{min-width:78px;height:35px}.toast{z-index:1000;right:24px;bottom:24px;position:fixed;background:#263546;color:#fff;border-radius:5px;padding:12px 18px;box-shadow:0 3px 12px #182b412e}.toast.success{background:#176943}#modalToast:empty,#toast:empty{display:none}@media(max-width:650px){dialog{padding:16px}.link-cell{min-width:185px}.detail-link a{min-width:100%}}
/* 4.4 operational layout: neutral surfaces, concise table actions */
body{background:#f4f6f9;color:#263549}.content .heading h1{font-size:20px;font-weight:600;letter-spacing:.1px}.list-card{padding:16px}.tablewrap table th{background:#f3f5f8;color:#526176;font-weight:600}.tablewrap td{vertical-align:middle}.tablewrap tbody tr:hover{background:#f8faff}.toolbar button,.row-actions button,.copy-btn{border-radius:5px}.row-actions{display:flex;align-items:center;gap:5px;white-space:nowrap}.row-actions button{height:30px;font-size:12px;padding:0 8px}.visit-btn{color:#1d63b6!important;background:#f4f8ff!important;border-color:#d6e3f5!important}.reset-btn{color:#a25d24!important;border-color:#ead9c9!important;background:#fffaf4!important}.inline-targets{min-width:225px;max-height:160px;overflow:auto;display:grid;gap:3px;padding:2px 0}.inline-target{display:flex;align-items:center;gap:7px;min-height:31px;border-bottom:1px solid #edf0f4}.inline-target:last-child{border-bottom:0}.target-address{max-width:170px;min-width:85px;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#4e5c70;font-size:12px}.target-count{color:#718096;font-variant-numeric:tabular-nums;min-width:16px;text-align:right;font-size:11px}.target-switch{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;padding:3px 0;border:0;background:transparent;color:#7b8794;font-size:11px;box-shadow:none}.target-switch:hover{background:transparent;color:#42536b}.target-switch.is-on{color:#177a51}.switch-track{display:inline-block;position:relative;width:29px;height:16px;background:#c2c9d3;border-radius:10px;transition:background .15s}.switch-track i{position:absolute;top:2px;left:2px;width:12px;height:12px;background:white;border-radius:50%;transition:transform .15s;box-shadow:0 1px 2px #22334430}.is-on .switch-track{background:#25a16c}.is-on .switch-track i{transform:translateX(13px)}.target-switch:disabled{opacity:.55}.route-badge{display:inline-block;background:#fff7e8;border:1px solid #f0dfbd;color:#89621e;border-radius:4px;padding:3px 7px;font-size:12px;white-space:nowrap}.route-badge.ready{background:#ecf8f0;border-color:#cce8d7;color:#207849}.link-cell .url-chip{max-width:250px;font-size:12px}.copy-btn{font-weight:500}.copy-btn:disabled{opacity:.45;cursor:not-allowed}.visit-top{display:flex;justify-content:space-between;align-items:center;margin:0 0 14px;color:#526176}.link-visits .tablewrap{max-height:420px;overflow:auto}.link-visits .tablewrap td{white-space:normal;overflow-wrap:anywhere}.link-visits .tablewrap th{white-space:nowrap;position:sticky;top:0}.link-visits .field input{height:34px}dialog:has(.link-visits){width:min(1000px,calc(100vw - 32px))}.linkform .field{margin-bottom:13px}.linkform .field label{font-weight:500;color:#485467}.actions{gap:8px}.toolbar .tool-add{background:#2469c8}.top .smallbtn{border-radius:4px}
/* 4.5 / operations workspace */
:root{--line:#dfe5ec;--ink:#283748;--accent:#2164be}body{background:#f2f4f7;color:var(--ink);font-size:13px}.brand-logo{width:36px;height:36px;flex:0 0 36px;display:block}.sidebar .brand{gap:10px}.sidebar .brand-logo{width:32px;height:32px;flex-basis:32px}.sidefoot{line-height:1.85;font-size:12px}.sidefoot a{color:#9cc8ff;text-decoration:none}.sidefoot a:hover{text-decoration:underline}.card{border-radius:5px}.summarybar{background:#f7f9fc;border:1px solid #dfe5ec;border-left:3px solid #2164be}.tablewrap{border-radius:4px}.tablewrap table th{background:#f0f3f7;color:#455468}.tablewrap td{padding:9px 10px}.row-actions button{border-radius:4px}.toolbar button,.copy-btn{border-radius:4px}.link-cell{gap:8px;max-width:var(--link-width,280px)}.link-cell .url-chip{display:block;flex:1;min-width:0;max-width:none}.inline-targets{min-width:0;max-width:var(--target-width,300px);max-height:none;overflow:visible;gap:0}.inline-target{min-height:30px;gap:8px}.target-address{max-width:none;min-width:0}.more-targets{border:0;text-align:left;background:none;color:#2469c8;padding:5px 0;font-size:12px}.more-targets:hover{background:#eef4fc}.resize-head{position:relative;padding-right:12px!important}.col-grip{position:absolute;right:0;top:0;bottom:0;width:8px;cursor:col-resize;border-right:2px solid #c4cedb;touch-action:none}.col-grip:hover{border-right-color:#2164be}.wrap-urls .url-chip,.wrap-urls .target-address{white-space:normal;overflow-wrap:anywhere;overflow:visible;word-break:break-all}.editor-top{height:60px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:2}.editor-brand{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:600}.editor-brand span{font-size:13px;font-weight:400;color:#68788c}.back-link{color:#2164be;text-decoration:none;font-weight:500}.editor-shell{max-width:1240px;padding:24px;margin:0 auto}.editor-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 18px;align-items:end}.editor-fields .field{margin:0}.editor-fields .actions{justify-content:flex-start;margin:0}.editor-fields .previewlink{font-size:13px}.editor-section-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 16px}.editor-section-head h2{margin:0;font-size:16px}.editor-section-head small{font-weight:400;color:#728196;margin-left:8px}.target-editor table{white-space:normal;table-layout:fixed}.target-editor th:nth-child(1){width:72%}.target-editor th:nth-child(2){width:11%}.target-editor th:nth-child(3){width:17%}.edit-url{font-family:Arial,sans-serif;width:100%;font-size:13px}.edit-url[readonly]{background:transparent;border-color:transparent;color:#35465c;padding-left:0;cursor:text}.edit-url:not([readonly]){border-color:#6ea0df;background:#fff}.target-editor .row-actions button[hidden]{display:none}.add-inline{display:flex;gap:8px;margin-top:12px;align-items:center}.add-inline input{flex:1}.add-inline button{white-space:nowrap}.import-progress{background:#f3f6fa;padding:12px;border:1px solid #dfe5ec;border-radius:4px;color:#35546f}.editor-top .brand-logo{width:32px;height:32px;flex-basis:32px}@media(max-width:760px){.editor-shell{padding:12px}.editor-fields{grid-template-columns:1fr}.target-editor table{min-width:650px}.editor-top{padding:0 12px}.sidefoot{display:none}}

/* V4.6 – target operations */
.target-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:10px 12px;margin:0 0 12px;background:#f6f8fa;border:1px solid #dfe5ec;border-radius:5px}.target-selection,.target-bulk{display:flex;align-items:center;gap:8px}.select-all{display:inline-flex;align-items:center;gap:6px;color:#42536b;white-space:nowrap}.select-all input,.target-select{width:16px;height:16px;margin:0;accent-color:#2164be;vertical-align:middle}.target-total{margin-left:auto;color:#627085;font-size:12px;white-space:nowrap}.target-total b{color:#233750;font-size:16px;margin-left:5px;font-variant-numeric:tabular-nums}.target-toolbar button{height:32px;padding:0 12px;font-size:12px;border-radius:4px}.bulk-enable{color:#18764d!important;background:#f2faf5!important;border-color:#bcdcc9!important}.danger-btn{color:#bd4141!important;background:#fff!important;border-color:#ebc9c9!important}.danger-btn:not(:disabled):hover{background:#fff0f0!important;border-color:#cc7777!important}.row-save{background:#2164be!important;color:#fff!important;border-color:#2164be!important}.target-editor table{min-width:750px}.target-editor th:nth-child(1){width:54px;text-align:center}.target-editor th:nth-child(2){width:auto}.target-editor th:nth-child(3){width:92px;text-align:right}.target-editor th:nth-child(4){width:100px}.target-editor th:nth-child(5){width:180px}.target-editor td:first-child{text-align:center}.target-editor td:nth-child(3){text-align:right}.click-number{font-variant-numeric:tabular-nums;font-weight:600;color:#344960}.target-editor .row-actions{justify-content:flex-start;gap:6px}.target-footnote{font-size:12px;color:#758398;margin:12px 0 0;line-height:1.6}.more-targets{align-self:start;padding:6px 8px;justify-self:start;border-radius:4px;color:#2469c8}.inline-targets{max-height:none}.brand-logo{object-fit:contain}.sidebar .brand-logo{background:#fff;border-radius:6px;padding:3px}.editor-section-head button{white-space:nowrap}@media(max-width:760px){.target-total{margin-left:0}.target-toolbar{gap:10px}.target-bulk{flex-wrap:wrap}}
/* Final editor layout: compact controls, durable sorting, clear hierarchy. */
:root{--accent:#2164be;--line:#dce3eb;--ink:#243447}
.editor-top{height:64px;padding:0 28px;box-shadow:0 1px 2px #172b4310}.editor-brand{gap:12px}.editor-top .brand-logo{width:36px;height:36px;flex-basis:36px}.editor-shell{max-width:1440px;padding:24px 30px}.editor-shell>.heading{margin-bottom:16px}.editor-shell>.heading h1{font-size:22px;letter-spacing:0}.editor-shell .card{box-shadow:none;border-radius:6px;padding:20px}.detail-link{background:#f6f8fb;border:1px solid #dce4ee;padding:12px 14px;gap:16px}.detail-link .link{font-size:14px;font-weight:500}.editor-fields{gap:16px 20px;grid-template-columns:repeat(3,minmax(0,1fr))}.editor-fields .field input,.editor-fields .field select{height:36px}.editor-fields .editor-save{grid-column:3;justify-content:flex-end;align-self:end}.editor-save button{min-width:112px}.editor-section-head{padding-bottom:14px;border-bottom:1px solid #e8edf2}.target-editor .tablewrap{border:1px solid #dce3eb;border-radius:5px}.target-editor table{min-width:790px}.target-editor th:nth-child(1){width:76px;text-align:center}.target-editor th:nth-child(2){width:54px;text-align:center}.target-editor th:nth-child(3){width:auto;text-align:left}.target-editor th:nth-child(4){width:100px;text-align:right}.target-editor th:nth-child(5){width:102px}.target-editor th:nth-child(6){width:172px}.target-editor td:nth-child(2){text-align:center}.target-editor td:nth-child(3){text-align:left}.target-editor td:nth-child(4){text-align:right}.target-editor td{padding:10px 12px}.sort-controls{display:flex;align-items:center;justify-content:center;gap:5px}.drag-handle{padding:0 4px;width:28px;height:30px;font-size:20px;line-height:1;color:#78879a;border:1px solid #e0e5eb;border-radius:4px;background:white;cursor:grab}.drag-handle:active{cursor:grabbing}.move-pair{display:flex;flex-direction:column;gap:2px}.move-pair button{width:19px;height:15px;padding:0;font-size:11px;line-height:11px;border-radius:3px;color:#63758a}.move-pair button:disabled{opacity:.3}.target-editor tr.dragging{opacity:.48}.target-editor tr.drop-before td{box-shadow:inset 0 3px #209c84}.target-editor tr.drop-after td{box-shadow:inset 0 -3px #209c84}.target-toolbar{background:#f8fafc;padding:11px 12px}.target-toolbar .target-total{font-weight:500}.target-toolbar button:disabled,.danger-btn:disabled{opacity:.43;cursor:not-allowed}.target-editor .edit-url{height:36px}.target-editor .edit-url[readonly]{padding:0 2px}.target-editor .row-actions{gap:7px}.more-targets{display:inline-flex;gap:6px;align-items:center;font-weight:500;border:1px solid transparent;padding:4px 7px;margin:3px 0}.more-targets:hover{border-color:#d7e3f2;background:#f1f6fc}.inline-targets:has([aria-expanded="true"]){padding:3px 0}.inline-target .target-count{margin-left:4px;color:#68788b}.sidebar .brand-logo{background:transparent;padding:0;border-radius:0}.authleft .brand-logo{background:#fff;border-radius:8px;padding:3px}
@media(max-width:760px){.editor-shell{padding:12px}.editor-fields{grid-template-columns:1fr}.editor-fields .editor-save{grid-column:auto;justify-content:flex-end}.editor-top{padding:0 12px}.editor-shell .card{padding:14px}.target-toolbar .target-total{margin-left:0}.editor-brand span{display:none}}

/* V4.7: consistent table controls and explicit refresh actions */
.main-link-results th:nth-child(6),.main-link-results td:nth-child(6){text-align:center;min-width:76px;vertical-align:middle}
.total-click-number{display:block;text-align:center;font-weight:650;font-size:17px;line-height:1.35;color:#263b55;font-variant-numeric:tabular-nums}
.main-link-results .target-address{font-size:13px;line-height:1.5;flex:1;min-width:0;color:#354d66}
.main-link-results .inline-target{gap:6px;min-height:36px}
.main-link-results .target-count{font-size:12px;min-width:24px;text-align:center;color:#586d85;font-variant-numeric:tabular-nums}
.target-quick{flex:none;font-size:11px;padding:3px 6px;height:25px;color:#2469c8;background:#fff;border:1px solid #d8e3f1;border-radius:4px;white-space:nowrap}
.target-quick:hover,.quick-edit:hover{background:#edf4ff;border-color:#9dbde8}
.main-link-results .inline-targets{max-width:var(--target-width,300px)}
.main-link-results .row-actions{flex-wrap:wrap;gap:5px;min-width:160px}
.more-targets{color:#2164be;background:#f4f8fd;border:1px solid #dce7f5;padding:4px 10px;margin:5px 0 2px}
.tool-refresh,.refresh-visible,.tabrefresh{background:#f0f5fb!important;color:#245b9a!important;border:1px solid #cbd9e9!important;min-width:76px;padding:7px 12px!important;font-size:13px!important;font-weight:600;border-radius:4px;white-space:nowrap}
.tabrefresh{margin:3px 8px;min-height:30px}
.tool-refresh:hover,.refresh-visible:hover,.tabrefresh:hover{background:#e2edfc!important;border-color:#9db9df!important}
.editor-top-actions,.admin-actions,.admin-filter{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.editor-top-actions .back-link{font-size:13px;padding:8px 0}
.admin-section .row-actions{flex-wrap:wrap;justify-content:flex-start;gap:6px}
.admin-section h2{font-size:16px;margin-bottom:10px}
.admin-section .tablewrap td{vertical-align:middle}
.admin-filter label{font-size:12px;color:#65768b;white-space:nowrap}
.admin-filter select{min-width:150px;width:auto}
.admin-url{display:flex;align-items:center;gap:8px;max-width:340px}
.admin-url span{overflow-wrap:anywhere;white-space:normal;color:#2469c8;flex:1;min-width:0}
.admin-detail-url{overflow-wrap:anywhere;color:#2469c8}
.danger-note{background:#fff7f5;border:1px solid #f0d3cc;color:#984232;line-height:1.7;padding:12px;border-radius:4px}
.target-editor th:nth-child(4),.target-editor td:nth-child(4){text-align:center}
.target-editor .click-number{font-size:16px}

/* V4.7.1: shared column geometry for target heading and each target row. */
.main-link-results .target-group-head{padding:9px 10px!important}
.main-link-results .target-column-head,.main-link-results .inline-target{display:grid;grid-template-columns:minmax(0,1fr) 64px 61px 44px;gap:8px;align-items:center;width:100%;box-sizing:border-box}
.main-link-results .target-column-head{font-size:12px;line-height:1.5;white-space:nowrap}
.main-link-results .target-column-head span:not(:first-child){text-align:center}
.main-link-results .inline-targets{width:100%;max-width:none;min-width:0}
.main-link-results .target-address{font-size:14px;line-height:1.55}
.main-link-results .inline-target .target-count{font-size:15px;font-weight:600;line-height:1.4;margin:0;min-width:0;text-align:center;color:#30465f}
.main-link-results .inline-target .target-switch{justify-self:center}
.main-link-results .inline-target .target-quick{justify-self:center;width:42px;font-size:12px;height:27px;padding:3px 4px}
.main-link-results .inline-target{min-height:37px}
