:root{--nav:#101827;--nav2:#17233a;--bg:#f4f7fb;--card:#fff;--text:#172033;--muted:#64748b;--line:#dce3ee;--blue:#2563eb;--green:#059669;--red:#dc2626;--amber:#d97706}*{box-sizing:border-box}body{margin:0;font:14px/1.5 "Segoe UI",Arial,sans-serif;color:var(--text);background:var(--bg)}a{color:var(--blue);text-decoration:none}.layout{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.sidebar{background:linear-gradient(180deg,var(--nav),var(--nav2));color:#fff;padding:22px 16px;position:sticky;top:0;height:100vh;overflow-y:auto}.brand{font-weight:800;font-size:19px;letter-spacing:.4px;margin:0 8px 22px}.brand small{display:block;color:#94a3b8;font-size:11px;font-weight:500}.nav a{display:block;color:#cbd5e1;padding:9px 12px;border-radius:7px;margin:2px 0}.nav a:hover,.nav a.active{background:#273653;color:#fff}.nav-home{font-weight:700;margin-bottom:8px!important}.nav-group{border-top:1px solid #ffffff14;padding:5px 0}.nav-group summary{cursor:pointer;list-style:none;color:#e2e8f0;font-weight:700;padding:10px 12px;border-radius:7px;user-select:none}.nav-group summary::-webkit-details-marker{display:none}.nav-group summary:after{content:"›";float:right;color:#94a3b8;transition:transform .15s}.nav-group[open] summary:after{transform:rotate(90deg)}.nav-group summary:hover{background:#273653}.nav-group>div{padding:0 0 4px 10px}.nav-group>div a{font-size:13px;padding:8px 12px}.admin-group{margin-top:8px;border:1px solid #f59e0b55;border-radius:8px;background:#f59e0b0a}.admin-group summary{color:#fde68a}.main{min-width:0}.topbar{min-height:64px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 28px}.user-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.content{padding:26px;max-width:1500px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.page-head h1{font-size:24px;margin:0}.muted{color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.card{background:var(--card);border:1px solid var(--line);border-radius:11px;padding:18px;box-shadow:0 1px 2px #0f172a0a;margin-bottom:16px}.metric b{font-size:28px;display:block}.metric span{color:var(--muted)}.metric-link{color:var(--text);transition:transform .12s,border-color .12s,box-shadow .12s}.metric-link small{display:block;color:var(--blue);margin-top:7px}.metric-link:hover{transform:translateY(-2px);border-color:#93c5fd;box-shadow:0 6px 18px #2563eb18}table{width:100%;border-collapse:collapse;background:#fff}th,td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:12px;text-transform:uppercase;color:var(--muted);background:#f8fafc}input,select,textarea{width:100%;padding:9px 10px;border:1px solid #cbd5e1;border-radius:6px;background:#fff}textarea{min-height:100px}label{font-weight:600;display:block;margin:10px 0 5px}.btn,button,input[type=submit]{width:auto;border:0;border-radius:6px;padding:9px 14px;background:var(--blue);color:#fff;cursor:pointer;font-weight:600}.btn.secondary,button.secondary{background:#475569}.btn.danger,button.danger{background:var(--red)}.compact{padding:7px 10px;font-size:12px}.inline{display:inline}.inline-form{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.inline-form>div{min-width:160px;flex:1}.flash{padding:11px 14px;border-radius:7px;margin-bottom:12px;background:#dbeafe;color:#1e40af}.flash.success{background:#d1fae5;color:#065f46}.flash.danger{background:#fee2e2;color:#991b1b}.flash.warning{background:#fef3c7;color:#92400e}.badge{display:inline-block;padding:3px 7px;border-radius:999px;background:#e2e8f0;font-size:11px;font-weight:700}.badge.ok,.badge.SUCCEEDED,.badge.COMPLETED,.badge.PASS,.badge.READY{background:#d1fae5;color:#065f46}.badge.bad,.badge.FAILED,.badge.VULNERABLE,.badge.ERROR{background:#fee2e2;color:#991b1b}.login-shell{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 20% 20%,#1e3a8a,#0f172a 55%)}.login-card{width:min(430px,92vw);background:#fff;border-radius:15px;padding:30px;box-shadow:0 20px 60px #0006}.login-card h1{margin-top:0}.actions{display:flex;gap:7px;flex-wrap:wrap}.code{font:12px Consolas,monospace;white-space:pre-wrap;background:#f8fafc;padding:10px;border:1px solid var(--line);border-radius:6px}.progress{height:8px;background:#e2e8f0;border-radius:8px;overflow:hidden}.progress span{display:block;height:100%;background:var(--blue)}

[hidden]{display:none!important}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}.topbar-title{display:flex;align-items:center;gap:10px}.mobile-menu-toggle{display:none}.table-wrap{overflow-x:auto}.compact-head{margin-bottom:10px}.compact-head h2{font-size:18px;margin:0}.empty-state{text-align:center;color:var(--muted);padding:28px!important}.disclosure-card summary{cursor:pointer;font-size:16px;font-weight:700}.disclosure-card[open] summary{margin-bottom:8px}.filter-actions{display:flex;align-items:center;gap:7px;flex:0!important}.pagination{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:16px}.pagination .current{background:var(--blue)}.pagination-gap{padding:0 4px}.target-summary{margin:18px 0 12px;padding:11px 13px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;display:flex;gap:8px;flex-wrap:wrap}.target-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.target-picker{border:1px solid var(--line);border-radius:9px;padding:12px;min-width:0}.target-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.target-picker-head h2{font-size:16px;margin:0}.target-picker-head input{max-width:240px}.target-picker-actions{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.target-list{height:260px;overflow:auto;border:1px solid var(--line);border-radius:7px;padding:7px;background:#fff}.target-list>label{display:flex;align-items:center;gap:7px;margin:0;padding:6px 7px;border-radius:5px;font-weight:500}.target-list>label:hover{background:#eff6ff}.target-list input[type=checkbox],.check-label input[type=checkbox]{width:auto;flex:0 0 auto}.check-label{margin-top:16px}.report-recipient{max-width:520px;margin:8px 0;padding:12px;background:#f8fafc;border:1px solid var(--line);border-radius:8px}.report-recipient label{margin-top:0}.report-recipient .muted{display:block;margin-top:5px}.scan-actions{margin-top:14px}

.sort-link{display:inline-flex;align-items:center;gap:5px;color:inherit;text-decoration:none;white-space:nowrap}.sort-link span{color:#94a3b8;font-size:11px}.sort-link:hover,.sort-link.active{color:var(--blue)}.sort-link.active span{color:var(--blue)}
.profile-table-wrap{width:100%}.profile-table{width:100%;min-width:900px;table-layout:fixed}.profile-table .profile-name-col{width:14%}.profile-table .profile-ports-col{width:27%}.profile-table .profile-policy-col{width:21%}.profile-table .profile-options-col{width:18%}.profile-table .profile-status-col{width:8%}.profile-table .profile-actions-col{width:12%}.profile-table td{vertical-align:top}.profile-name,.profile-description{overflow-wrap:anywhere}.profile-description{margin-top:4px}.profile-port-summary{display:flex;align-items:center;gap:8px;min-width:0}.profile-port-summary .badge{flex:0 0 auto;white-space:nowrap}.profile-port-summary code{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-port-details{margin-top:8px}.profile-port-details summary{cursor:pointer;color:var(--blue);font-weight:700}.profile-port-details>code{display:block;max-height:150px;overflow:auto;margin-top:7px;padding:8px;border:1px solid var(--line);border-radius:6px;background:#f8fafc;white-space:normal;overflow-wrap:anywhere;line-height:1.55}.policy-lines{display:grid;gap:4px}.option-chips{display:flex;gap:5px;flex-wrap:wrap}.profile-table td:last-child .actions{flex-wrap:wrap}
@media(max-width:900px){.layout{grid-template-columns:1fr}.sidebar{display:none;position:fixed;inset:0 auto 0 0;width:min(310px,88vw);height:100vh;z-index:60;box-shadow:10px 0 30px #0f172a55}.layout.nav-open .sidebar{display:block}.mobile-menu-toggle{display:inline-flex}.topbar{position:sticky;top:0;z-index:40;align-items:center}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.target-grid{grid-template-columns:1fr}.content{padding:18px}}
@media(max-width:560px){.grid{grid-template-columns:1fr}.page-head{align-items:flex-start;flex-direction:column}.user-actions{justify-content:flex-start}.topbar{align-items:flex-start;flex-direction:column}.target-picker-head{align-items:flex-start;flex-direction:column}.target-picker-head input{max-width:none}.filter-actions{flex-basis:100%!important}.scan-actions>button{width:100%}}

.form-card{max-width:720px}.form-field{margin-bottom:14px}.form-field label{margin-bottom:5px}.field-help{margin-top:5px;color:var(--muted);font-size:12px}.has-error input,.has-error textarea,.has-error select{border-color:var(--red);box-shadow:0 0 0 1px var(--red)}.field-errors{margin:6px 0 0;padding-left:20px;color:#991b1b}.form-error-summary{margin:14px 0;padding:13px 15px;border:1px solid #fecaca;border-left:5px solid var(--red);border-radius:7px;background:#fff1f2;color:#881337}.form-error-summary ul{margin:7px 0 0;padding-left:20px}.form-error-summary a{color:#991b1b;text-decoration:underline}.security-notice{margin-bottom:16px;padding:12px 14px;border:1px solid #fde68a;border-radius:7px;background:#fffbeb;color:#78350f}.form-actions{margin-top:18px}.form-actions input.danger{background:var(--red)}
.agent-card{border-left:5px solid var(--blue)}.agent-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.agent-metrics>div{padding:12px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.agent-metrics span{display:block;color:var(--muted);font-size:12px}.agent-metrics b{display:block;margin:3px 0;font-size:20px}.agent-metrics small{display:block;color:var(--muted);overflow-wrap:anywhere}.agent-metrics small span{display:inline}.agent-actions{align-items:center}.agent-safety{margin:12px 0 0}.badge.ONLINE{background:#d1fae5;color:#065f46}.badge.WARNING{background:#fef3c7;color:#92400e}.badge.ERROR{background:#fee2e2;color:#991b1b}
@media(max-width:900px){.agent-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.agent-metrics{grid-template-columns:1fr}}
.compact-checkbox{width:auto}.web-bulk-actions{margin-top:12px}
.rule-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.rule-category-grid>div{border:1px solid var(--line);background:#f8fafc;border-radius:8px;padding:12px}.rule-category-grid b,.rule-category-grid span{display:block}.rule-category-grid span{color:var(--muted);font-size:12px;margin-top:4px}.rule-json-editor{min-height:180px}.web-rule-table{min-width:1120px}.web-rule-table th:nth-child(1){width:16%}.web-rule-table th:nth-child(2){width:15%}.web-rule-table th:nth-child(3){width:11%}.web-rule-table th:nth-child(4){width:34%}.web-rule-table th:nth-child(5){width:16%}.web-rule-table th:nth-child(6){width:8%}.web-rule-edit-card{max-width:980px}.web-rule-edit-card .rule-json-editor{min-height:360px}.rule-remediation{margin-top:7px;color:var(--muted);font-size:12px}.badge.REVIEW{background:#fef3c7;color:#92400e}
.web-result-search>div:first-child{max-width:620px}.web-result-overview{margin-bottom:4px}.web-result-count-note{margin:0 0 16px}.web-result-groups{display:grid;gap:12px}.web-result-group{padding:0;overflow:hidden;margin-bottom:0}.web-result-group>summary{position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 18px;cursor:pointer;list-style:none}.web-result-group>summary::-webkit-details-marker{display:none}.web-result-group>summary:after{content:"›";color:var(--muted);font-size:20px;flex:0 0 auto;transition:transform .15s}.web-result-group[open]>summary:after{transform:rotate(90deg)}.web-result-group[open]>summary{border-bottom:1px solid var(--line);background:var(--surface)}.web-result-target{display:grid;gap:3px;min-width:0}.web-result-target b,.web-result-target small{overflow-wrap:anywhere}.web-result-target small{color:var(--muted);font-weight:400}.web-result-statuses{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.web-result-table{min-width:860px}.web-result-table th:nth-child(1){width:18%}.web-result-table th:nth-child(2){width:29%}.web-result-table th:nth-child(3),.web-result-table th:nth-child(4){width:11%}.web-result-table th:nth-child(5){width:14%}.web-result-table th:nth-child(6){width:17%}
@media(max-width:760px){.web-result-group>summary{align-items:flex-start;flex-direction:column}.web-result-statuses{justify-content:flex-start}.web-result-group>summary:after{position:absolute;right:28px}}
.web-run-progress{border-left:5px solid var(--blue)}.web-run-progress-bar{height:12px;margin:14px 0 18px}.web-run-metrics{margin-bottom:12px}.web-run-current{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.web-run-resume{margin-top:14px}.web-run-item-table{min-width:900px}.web-run-item-table th:nth-child(1){width:24%}.web-run-item-table th:nth-child(2){width:25%}.web-run-item-table th:nth-child(3){width:10%}.web-run-item-table th:nth-child(4){width:22%}.web-run-item-table th:nth-child(5){width:19%}.badge.QUEUED,.badge.PENDING{background:#e2e8f0;color:#334155}.badge.RUNNING{background:#dbeafe;color:#1e40af}.badge.PARTIAL,.badge.INTERRUPTED{background:#fef3c7;color:#92400e}
@media(max-width:900px){.rule-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.rule-category-grid{grid-template-columns:1fr}}
.profile-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.port-builder{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:10px;background:#fbfdff}.port-builder.has-error{border-color:#fca5a5}.port-entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.port-entry-box{padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff}.port-entry-box label{margin-top:0}.port-entry-action,.port-range-action{display:flex;align-items:center;gap:7px}.port-entry-action input{min-width:0}.port-range-action input{min-width:0}.port-range-action span{color:var(--muted);font-weight:700}.port-presets{margin:14px 0}.port-presets>b{display:block;margin-bottom:7px}.port-selection-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 8px}.port-token-list{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-height:48px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff}.port-token{display:inline-flex;align-items:center;gap:5px;padding:5px 6px 5px 9px;border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;color:#1e3a8a}.port-token-remove{padding:0;width:22px;height:22px;border-radius:50%;background:#dbeafe;color:#1e40af;line-height:1}.port-validation{margin-top:8px;font-size:13px;font-weight:600}.port-validation.valid{color:#047857}.port-validation.invalid{color:#b91c1c}.port-manual-details{margin-top:12px}.port-manual-details summary{cursor:pointer;color:var(--blue);font-weight:700}.port-manual-details .port-spec-input{margin-top:8px}.profile-options-card{margin:18px 0;padding:14px;border:1px solid var(--line);border-radius:9px;background:#f8fafc}.profile-options-card h2{font-size:17px;margin:0 0 10px}.profile-option-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.profile-option{display:flex;align-items:center;gap:8px;margin:0;padding:9px;border:1px solid var(--line);border-radius:7px;background:#fff;font-weight:600}.profile-option input{width:auto}
@media(max-width:900px){.profile-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.port-entry-grid{grid-template-columns:1fr}}@media(max-width:560px){.profile-settings-grid,.profile-option-grid{grid-template-columns:1fr}.port-entry-action,.port-range-action{align-items:stretch;flex-direction:column}.port-entry-action button,.port-range-action button{width:100%}}
.create-panel{padding:0;overflow:hidden}.create-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 18px;cursor:pointer;list-style:none;background:#f8fafc}.create-panel>summary::-webkit-details-marker{display:none}.create-panel>summary span:first-child{display:grid;gap:2px}.create-panel>summary small{color:var(--muted);font-weight:400}.create-panel>summary:after{content:"＋";font-size:22px;color:var(--blue)}.create-panel[open]>summary{border-bottom:1px solid var(--line)}.create-panel[open]>summary:after{content:"−"}.summary-action{margin-left:auto;color:var(--blue);font-weight:700}.create-panel-body{padding:18px}.web-profile-table{min-width:850px}.web-profile-table th:nth-child(1){width:23%}.web-profile-table th:nth-child(2){width:10%}.web-profile-table th:nth-child(3){width:39%}.web-profile-table th:nth-child(4){width:10%}.web-profile-table th:nth-child(5){width:18%}.profile-rule-preview,.profile-rule-list{display:flex;gap:5px;flex-wrap:wrap}.profile-rule-preview span,.profile-rule-list span{padding:3px 7px;border-radius:999px;background:#f1f5f9;font-size:12px}.profile-rule-list{margin-top:8px;max-height:180px;overflow:auto}.wide-field{flex:2!important}.rule-picker{margin-top:16px;border:1px solid var(--line);border-radius:9px;padding:12px}.rule-picker legend{font-weight:700;padding:0 5px}.rule-picker-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.rule-picker-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:420px;overflow:auto}.rule-choice,.web-profile-choice{display:flex;align-items:flex-start;gap:9px;margin:0;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff;font-weight:500}.rule-choice:hover,.web-profile-choice:hover{border-color:#93c5fd;background:#eff6ff}.rule-choice input,.web-profile-choice input{width:auto;margin-top:3px;flex:0 0 auto}.rule-choice span,.web-profile-choice span{min-width:0}.rule-choice b,.rule-choice small,.web-profile-choice b,.web-profile-choice small{display:block}.rule-choice small,.web-profile-choice small{margin-top:4px;color:var(--muted);font-weight:400;overflow-wrap:anywhere}.web-profile-selector{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.target-profile-run{display:flex;align-items:center;gap:6px}.target-profile-run select{min-width:180px}
@media(max-width:900px){.web-profile-selector{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.rule-picker-grid,.web-profile-selector{grid-template-columns:1fr}.rule-picker-toolbar{align-items:flex-start;flex-direction:column}.target-profile-run{align-items:stretch;flex-direction:column}.target-profile-run select,.target-profile-run button{width:100%}}
.default-badge{margin-left:5px;background:#dbeafe;color:#1d4ed8}.selection-column{width:46px;text-align:center}.selection-column input{width:auto}.asset-scan-note{margin:8px 0 12px}.selection-status{display:inline-flex;align-items:center;justify-content:center;min-width:72px;padding:6px 9px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--muted);font-size:12px;font-weight:700}

/* Theme and shared visual system */
:root{
  color-scheme:light;
  --surface:#f8fafc;
  --surface-hover:#eff6ff;
  --input:#fff;
  --table-row:#fff;
  --button-primary:#2563eb;
  --secondary:#475569;
  --focus:#60a5fa;
  --shadow:0 1px 3px #0f172a12,0 10px 28px #0f172a08;
  --shadow-hover:0 8px 24px #0f172a14;
  --info-bg:#dbeafe;--info-text:#1e40af;--info-border:#bfdbfe;
  --success-bg:#d1fae5;--success-text:#065f46;
  --danger-bg:#fee2e2;--danger-text:#991b1b;--danger-border:#fecaca;
  --warning-bg:#fef3c7;--warning-text:#92400e;--warning-border:#fde68a;
  --token-bg:#eff6ff;--token-text:#1e3a8a;--token-border:#bfdbfe;
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --nav:#070d18;--nav2:#0c1628;--bg:#09111f;--card:#111b2e;--text:#e6edf7;
  --muted:#9dafc5;--line:#2a3a55;--blue:#7cb7ff;--green:#34d399;--red:#fb7185;--amber:#fbbf24;
  --surface:#162238;--surface-hover:#1b3153;--input:#0d1728;--table-row:#111b2e;
  --button-primary:#2563eb;--secondary:#33445f;--focus:#60a5fa;
  --shadow:0 1px 3px #0008,0 14px 34px #0004;--shadow-hover:0 10px 28px #0006;
  --info-bg:#172f55;--info-text:#bfdbfe;--info-border:#31598d;
  --success-bg:#083c32;--success-text:#a7f3d0;
  --danger-bg:#4b1822;--danger-text:#fecdd3;--danger-border:#7f1d2d;
  --warning-bg:#493213;--warning-text:#fde68a;--warning-border:#79531e;
  --token-bg:#172f55;--token-text:#bfdbfe;--token-border:#31598d;
}
@media(prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;
    --nav:#070d18;--nav2:#0c1628;--bg:#09111f;--card:#111b2e;--text:#e6edf7;
    --muted:#9dafc5;--line:#2a3a55;--blue:#7cb7ff;--green:#34d399;--red:#fb7185;--amber:#fbbf24;
    --surface:#162238;--surface-hover:#1b3153;--input:#0d1728;--table-row:#111b2e;
    --button-primary:#2563eb;--secondary:#33445f;--focus:#60a5fa;
    --shadow:0 1px 3px #0008,0 14px 34px #0004;--shadow-hover:0 10px 28px #0006;
    --info-bg:#172f55;--info-text:#bfdbfe;--info-border:#31598d;
    --success-bg:#083c32;--success-text:#a7f3d0;
    --danger-bg:#4b1822;--danger-text:#fecdd3;--danger-border:#7f1d2d;
    --warning-bg:#493213;--warning-text:#fde68a;--warning-border:#79531e;
    --token-bg:#172f55;--token-text:#bfdbfe;--token-border:#31598d;
  }
}
html{background:var(--bg)}body{font-family:"Pretendard Variable","Noto Sans KR","Segoe UI",Arial,sans-serif;transition:background-color .16s,color .16s}
.main{background:var(--bg)}.content{width:100%;padding-bottom:48px}.topbar{position:sticky;top:0;z-index:40;background:color-mix(in srgb,var(--card) 94%,transparent);backdrop-filter:blur(12px);box-shadow:0 1px 0 var(--line)}
.card{background:var(--card);box-shadow:var(--shadow)}.metric-link:hover{border-color:var(--focus);box-shadow:var(--shadow-hover)}
table{background:var(--card)}tbody tr{background:var(--table-row);transition:background-color .12s}tbody tr:hover{background:var(--surface-hover)}th{background:var(--surface);letter-spacing:.02em}
input,select,textarea{background:var(--input);color:var(--text);border-color:var(--line)}input::placeholder,textarea::placeholder{color:var(--muted);opacity:.85}input[type=checkbox],input[type=radio]{accent-color:var(--button-primary)}
.btn,button,input[type=submit]{background:var(--button-primary)}.btn.secondary,button.secondary{background:var(--secondary)}.btn:hover,button:hover,input[type=submit]:hover{filter:brightness(1.08)}button:disabled:hover{filter:none}
.code,.report-recipient,.agent-metrics>div,.rule-category-grid>div,.profile-options-card,.create-panel>summary,.response-grid>section{background:var(--surface)}
.target-list,.port-entry-box,.port-token-list,.profile-option,.rule-choice,.web-profile-choice{background:var(--card)}
.target-list>label:hover,.rule-choice:hover,.web-profile-choice:hover{background:var(--surface-hover);border-color:var(--focus)}
.target-summary{background:var(--info-bg);border-color:var(--info-border)}.profile-port-details>code{background:var(--surface)}
.port-builder{background:color-mix(in srgb,var(--surface) 65%,var(--card))}.port-token{background:var(--token-bg);color:var(--token-text);border-color:var(--token-border)}.port-token-remove{background:var(--token-border);color:var(--token-text)}
.flash{background:var(--info-bg);color:var(--info-text);border:1px solid var(--info-border)}.flash.success{background:var(--success-bg);color:var(--success-text);border-color:var(--success-bg)}.flash.danger{background:var(--danger-bg);color:var(--danger-text);border-color:var(--danger-border)}.flash.warning{background:var(--warning-bg);color:var(--warning-text);border-color:var(--warning-border)}
.badge{background:var(--surface);color:var(--text);border:1px solid var(--line)}.badge.ok,.badge.SUCCEEDED,.badge.COMPLETED,.badge.PASS,.badge.READY,.badge.ONLINE{background:var(--success-bg);color:var(--success-text);border-color:transparent}.badge.bad,.badge.FAILED,.badge.VULNERABLE,.badge.ERROR{background:var(--danger-bg);color:var(--danger-text);border-color:transparent}.badge.WARNING,.badge.REVIEW{background:var(--warning-bg);color:var(--warning-text);border-color:transparent}.default-badge{background:var(--info-bg);color:var(--info-text);border-color:var(--info-border)}
.field-errors,.port-validation.invalid{color:var(--danger-text)}.port-validation.valid{color:var(--success-text)}.form-error-summary{background:var(--danger-bg);color:var(--danger-text);border-color:var(--danger-border);border-left-color:var(--red)}.form-error-summary a{color:var(--danger-text)}.security-notice{background:var(--warning-bg);color:var(--warning-text);border-color:var(--warning-border)}
.schedule-status-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.schedule-table{min-width:1180px}.schedule-table th:nth-child(1){width:17%}.schedule-table th:nth-child(2){width:18%}.schedule-table th:nth-child(3){width:14%}.schedule-table th:nth-child(4){width:15%}.schedule-table th:nth-child(5){width:10%}.schedule-table th:nth-child(6){width:26%}.schedule-form-card{max-width:1100px}.schedule-core-fields{grid-template-columns:2fr 1fr 1fr 1fr}.schedule-weekdays{margin:14px 0}.check-row{display:flex;flex-wrap:wrap;gap:8px}.check-row label{display:flex;align-items:center;gap:4px;border:1px solid var(--line);border-radius:7px;padding:7px 10px;background:var(--panel-soft)}.schedule-scan-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}.schedule-scan-card{min-width:0;border:1px solid var(--line);border-radius:9px;padding:14px}.schedule-scan-card legend{padding:0 6px}.schedule-profile-picker{max-height:190px;overflow:auto;border:1px solid var(--line);border-radius:7px;padding:8px}.schedule-profile-picker label{display:block;padding:7px}.schedule-recipients{min-height:92px}.recipient-list{display:grid;gap:3px;margin-top:6px}.status-ok{color:var(--success-text)}.status-warn{color:var(--warning-text)}.status-bad{color:var(--danger-text)}@media(max-width:1100px){.schedule-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:900px){.schedule-status-grid,.schedule-scan-grid,.schedule-core-fields{grid-template-columns:1fr}}
.profile-rule-preview span,.profile-rule-list span{background:var(--surface)}.login-shell{background:radial-gradient(circle at 20% 20%,#173b76,var(--bg) 58%)}.login-card{background:var(--card);color:var(--text);box-shadow:0 24px 70px #0008}
.theme-control{display:inline-flex;align-items:center;gap:7px;margin:0;padding:4px 5px 4px 9px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:12px;color:var(--muted);white-space:nowrap}.theme-control span{font-weight:700}.theme-control select{width:auto;min-width:74px;padding:5px 26px 5px 7px;border:0;background-color:transparent;font-weight:700;color:var(--text)}.timezone-indicator{display:inline-flex;align-items:center;padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--muted);font-size:11px;font-weight:700;white-space:nowrap}.login-theme{position:fixed;top:18px;right:18px;z-index:2;display:flex;align-items:center;gap:8px}.user-identity{white-space:nowrap}
.page-head h1{font-weight:800;letter-spacing:-.025em}.card h2{letter-spacing:-.015em}.sidebar{box-shadow:8px 0 30px #0002}.brand{color:#fff}.nav a,.nav-group summary{transition:background-color .12s,color .12s}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:900px){.topbar{backdrop-filter:none}.user-actions{width:100%;justify-content:flex-start}.content{padding-bottom:36px}}
@media(max-width:560px){.theme-control{order:-1}.user-identity{width:100%}.login-theme{top:10px;right:10px}.login-card{margin-top:52px}}

/* Help center */
.help-top-link{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font-size:12px;font-weight:800;white-space:nowrap}.help-top-link span{display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:var(--blue);color:#fff;font-size:12px}.help-top-link:hover,.help-top-link.active{border-color:var(--focus);background:var(--info-bg);color:var(--info-text)}
.help-recommended{display:flex;align-items:center;gap:14px;border-left:5px solid var(--blue);color:var(--text)}.help-recommended>span:nth-child(2){display:grid;gap:3px;min-width:0;flex:1}.help-recommended small{color:var(--muted);font-weight:400}.help-recommended strong{color:var(--blue);white-space:nowrap}.help-topic-number{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:11px;background:linear-gradient(145deg,var(--blue),#0891b2);color:#fff;font-size:12px;font-weight:900;letter-spacing:.04em;flex:0 0 auto}.help-search{display:flex;align-items:end;gap:8px}.help-search>div{min-width:240px;flex:1}.help-search label{margin-top:0}.help-quick-start{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,2fr);gap:24px;align-items:center;background:linear-gradient(135deg,var(--card),var(--info-bg))}.help-quick-start h2{margin:8px 0 4px}.help-quick-start p{margin:0;color:var(--muted)}.help-quick-start ol{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none;counter-reset:quick}.help-quick-start li{position:relative;min-width:0;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--card);counter-increment:quick}.help-quick-start li:before{content:counter(quick);display:grid;place-items:center;width:24px;height:24px;margin-bottom:7px;border-radius:50%;background:var(--blue);color:#fff;font-size:11px;font-weight:800}.help-quick-start li b,.help-quick-start li span{display:block}.help-quick-start li span{margin-top:3px;color:var(--muted);font-size:12px}.help-result-count{margin:18px 0 10px}.help-topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.help-topic-card{position:relative;display:block;min-height:205px;color:var(--text);transition:transform .12s,border-color .12s,box-shadow .12s}.help-topic-card:hover{transform:translateY(-2px);border-color:var(--focus);box-shadow:var(--shadow-hover)}.help-topic-card>.badge{position:absolute;top:18px;right:18px}.help-topic-card h2{margin:15px 0 6px}.help-topic-card p{color:var(--muted);min-height:42px}.help-topic-card strong{color:var(--blue)}.help-empty{grid-column:1/-1}.help-breadcrumb{display:flex;gap:7px;align-items:center;margin-bottom:12px;color:var(--muted);font-size:12px}.help-topic-head>div{display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:center}.help-topic-head h1,.help-topic-head p{grid-column:2;margin:0}.help-topic-head .help-topic-number{grid-row:1/3}.help-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:16px;align-items:start}.help-topic-nav{position:sticky;top:80px;padding:12px}.help-topic-nav>b{display:block;padding:6px 8px 10px}.help-topic-nav nav{display:grid;gap:3px}.help-topic-nav a{display:flex;align-items:center;gap:8px;padding:8px;border-radius:7px;color:var(--text);font-size:12px;font-weight:700}.help-topic-nav a span{color:var(--muted);font:11px Consolas,monospace}.help-topic-nav a:hover,.help-topic-nav a.active{background:var(--info-bg);color:var(--info-text)}.help-topic-content{min-width:0}.help-topic-content h2{margin:8px 0 12px}.help-step-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}.help-step-list li{display:flex;align-items:flex-start;gap:10px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.help-step-list li>span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--blue);color:#fff;font-size:12px;font-weight:800;flex:0 0 auto}.help-step-list p{margin:2px 0 0}.help-detail-intro{margin:22px 2px 10px}.help-detail-intro h2{margin:7px 0 0}.help-detail-intro p{margin:3px 0}.help-detail-section{padding:0;overflow:hidden}.help-detail-section>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;cursor:pointer;font-weight:800;list-style:none}.help-detail-section>summary::-webkit-details-marker{display:none}.help-detail-section>summary:after{content:"›";font-size:20px;color:var(--muted);transition:transform .12s}.help-detail-section[open]>summary:after{transform:rotate(90deg)}.help-detail-section>summary span{margin-left:auto;color:var(--muted);font-size:11px;font-weight:500}.help-detail-section ul{margin:0;padding:0 36px 17px 44px;border-top:1px solid var(--line)}.help-detail-section li{margin-top:11px}.help-caution{border-left:5px solid var(--amber);background:var(--warning-bg);color:var(--warning-text)}.help-caution p{margin:5px 0 0}
@media(max-width:1000px){.help-quick-start{grid-template-columns:1fr}.help-quick-start ol{grid-template-columns:repeat(3,minmax(0,1fr))}.help-layout{grid-template-columns:1fr}.help-topic-nav{position:static}.help-topic-nav nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.help-topic-grid{grid-template-columns:1fr}.help-quick-start ol,.help-topic-nav nav{grid-template-columns:1fr}.help-search{align-items:stretch;flex-direction:column}.help-search button,.help-search .btn{width:100%;text-align:center}.help-recommended{align-items:flex-start;flex-wrap:wrap}.help-recommended strong{width:100%;padding-left:52px}}
