body{margin:0}main{max-width:1100px;margin:50px auto;padding:24px}h1{font-size:32px}p{line-height:1.7}.cards{display:flex;gap:16px;flex-wrap:wrap}.card,section{border:0;border-radius:16px;padding:24px;margin-bottom:20px}.card{flex:1;min-width:170px}.value{font-size:28px;font-weight:700;margin-top:10px}button{cursor:pointer}input:not([type=checkbox]):not([type=radio]){width:300px;max-width:75%}#login{max-width:440px;margin:50px auto}#login input{display:block;box-sizing:border-box;width:100%;max-width:100%;margin:14px 0}#login button{width:100%}table{width:100%;border-collapse:collapse}td,th{text-align:left;padding:12px;border-bottom:1px solid var(--guard-stroke);font-size:13px}pre{white-space:pre-wrap;overflow-wrap:anywhere}#message{min-height:24px}section{overflow:auto}
.indicator-input{width:95%}button:disabled{opacity:.45;cursor:not-allowed}

section{scroll-margin-top:20px}.filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.filters label{display:flex;flex-direction:column;gap:6px;font-size:13px}.filters input{width:190px;max-width:100%;box-sizing:border-box}.pagination{display:flex;gap:16px;align-items:center;margin-top:16px}#eventStorage{color:#a12622}@media(max-width:600px){main{margin:12px auto;padding:12px}.filters label,.filters input{width:100%}section{padding:16px}}

#eventError{color:#a12622;font-weight:600}#eventError:empty{display:none}

#requestPolicyError{color:#a12622}#requestPolicySave,#requestPolicyReload{margin-top:16px}#requestRules button{margin:3px}

[hidden]{display:none!important}#pageTitle:focus{outline:none;box-shadow:none}#pageScope:empty{display:none}

#reportError,#statsError,#statsWarning,#systemError,#systemWarning{color:#a12622}.report td{overflow-wrap:anywhere}.report table{table-layout:fixed}@media print{body{background:white;color:black}main.report{max-width:none;margin:0;padding:0}.report section{overflow:visible;border:0;border-radius:0;padding:0;margin-bottom:24px}.report tr{break-inside:avoid}.report thead{display:table-header-group}.report h2{break-after:avoid}.report p{color:#333}.report td,.report th{font-size:10pt;padding:5pt}}

#agentError{color:#a12622}#agentRows td{min-width:100px;max-width:260px;overflow-wrap:anywhere}#agentDetails{margin-top:24px}

#requestProtocolFields input{width:auto;max-width:none}#requestProtocolFields label{display:inline-flex;gap:6px;margin:8px}

#userManagement .user-table-wrap{overflow-x:auto}#userManagement td{overflow-wrap:anywhere}#userMenus label{display:inline-flex;align-items:center;gap:6px;margin:6px 16px 6px 0}#userMenus input,#userDisabled{width:auto}#userManagement td button{margin:2px}

body[data-role="viewer"] #requestRuleForm,body[data-role="viewer"] #requestPolicySave,body[data-role="viewer"] #save,body[data-role="viewer"] #analyze,body[data-role="viewer"] #requestRules button,body[data-role="viewer"] #requestRules input{display:none!important}

body[data-role="viewer"] #policy{pointer-events:none;opacity:.7}

/* Frame measurements: 66px toolbar, #1976D2 primary, 14px UI.
   User-panel widths are provisional; the layout is three columns. */
body{background:#fafbfc;color:#20374b;font:14px -apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo',sans-serif}main{max-width:none;margin:0;padding:0}#app{padding:0 50px 32px}.admin-topbar{height:66px;display:flex;align-items:center;gap:30px;background:#fff;box-shadow:0 2px 5px #20374b26;margin:0 -50px 26px;padding:0 50px;position:relative;z-index:10;box-sizing:border-box}.admin-brand{display:flex;align-items:center;gap:8px;min-width:145px;text-decoration:none;color:#20374b;font-size:21px;font-weight:700;white-space:nowrap}#adminNav{margin:0;padding:0;border:0;display:flex;flex-wrap:nowrap;gap:12px;align-items:center;min-width:0}#adminNav>a{height:36px;box-sizing:border-box;display:flex;align-items:center;gap:8px;padding:0 10px;color:#20374b;background:none;border-radius:0;font-size:14px;font-weight:500;white-space:nowrap}#adminNav a[aria-current="page"]{color:#1976d2;background:none}.admin-tools details{padding:0;background:none;border-radius:0;position:relative}.admin-tools summary{list-style:none;cursor:pointer}summary::-webkit-details-marker{display:none}.nav-icon{width:22px;height:22px;flex:none}.admin-tools .nav-menu{position:absolute;top:calc(100% + 7px);left:0;min-width:168px;background:#fff;box-shadow:0 3px 12px #20374b33;border:1px solid #e4e8eb;z-index:20;padding:6px 0}.admin-tools .nav-menu a{display:block;white-space:nowrap;padding:10px 16px;margin:0;background:white;color:#20374b;text-decoration:none;border-radius:0}.admin-tools .nav-menu a:hover{background:#e7f1fa}.admin-tools{display:flex;align-items:center;gap:14px;margin-left:auto;white-space:nowrap;font-size:12px}.admin-tools .nav-menu{left:auto;right:0}.session-label{color:#64788a}#logout{padding:8px 10px;background:transparent;color:#20374b;border:1px solid #d9e1e7}.page-heading{display:flex;align-items:center;gap:18px;border-bottom:1px solid #dce2e8;margin-bottom:18px;padding-bottom:12px}#pageTitle{margin:0;font-size:21px;line-height:36px;color:#20374b}#pageTitle:before{content:'▣';font-size:28px;color:#1976d2;margin-right:12px}.scope-note{font-size:12px;color:#7d8792}#message{position:relative;margin:0 50px;min-height:0;font-size:12px}#message:not(:empty){padding:5px 0}section,.card{border-radius:2px;padding:16px;border-color:#dfe5ea;box-shadow:0 1px 2px #20374b08}button{border-radius:2px;padding:8px 14px;background:#1976d2;font-size:13px;min-height:34px}input,select{border-radius:2px;padding:7px 9px;min-height:32px;box-sizing:border-box}td,th{padding:7px 10px;font-size:13px}thead th{background:#1976d2;color:white;font-size:12px;font-weight:500;height:35px}tbody tr:hover{background:#f1f7fb}.filters{gap:10px}#login{margin:80px auto;padding:26px;max-width:390px}#login h1{font-size:26px}.user-columns{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.7fr) minmax(0,1.2fr);gap:16px;margin:20px 0}.user-panel{min-width:0;border:1px solid #dfe5ea;background:white;padding:12px}.panel-title{font-size:15px;margin:0 0 16px;padding:8px 0 12px;border-bottom:1px solid #dfe5ea;display:flex;justify-content:space-between;align-items:center}.feature-state{font-weight:400;font-size:11px;border-radius:2px;padding:3px 6px}.feature-state.partial{color:#8a5700;background:#fff3d4}.feature-state.pending{color:#66717d;background:#eef1f4}.scope-placeholder{padding:16px;background:#f4f6f8;border:1px dashed #ccd5dc;font-size:13px}.user-panel p{font-size:12px;line-height:1.6}.user-panel .filters label{flex:1;min-width:120px}.user-panel .filters input{width:100%;max-width:100%}.user-panel .user-table-wrap{margin-top:12px}.user-panel #userMenus{margin-top:12px;border:1px solid #dfe5ea}.user-panel #userMenus label{display:flex;font-size:13px;margin:6px 0}.selected-user{background:#c1dff5!important}#userForm>p{font-size:12px}#userManagement>h3:first-child{display:none}#userEditorTitle{font-size:14px}#userRows td button{padding:5px 7px;font-size:12px;min-height:28px}
@media(max-width:1300px){.admin-topbar{gap:12px;padding:0 24px}.admin-brand{min-width:120px;font-size:18px}#adminNav{gap:2px}#adminNav>a{padding:0 7px}.session-label{display:none}.admin-tools{gap:8px}.user-columns{grid-template-columns:minmax(0,1fr) minmax(0,.7fr) minmax(0,1fr)}}
@media(max-width:1000px){#app{padding:0 20px 24px}.admin-topbar{margin:0 -20px 20px;height:auto;min-height:66px;flex-wrap:wrap;padding:12px 20px;gap:12px}.admin-brand{order:0}.admin-tools{order:1}#adminNav{order:2;flex-basis:100%;flex-wrap:wrap;gap:4px}.user-columns{grid-template-columns:1fr}.admin-tools .nav-menu{right:0}.page-heading{flex-wrap:wrap;gap:8px}.scope-note{font-size:11px}}
@media(max-width:600px){#app{padding:0 12px 18px}.admin-topbar{margin:0 -12px 16px;padding:10px 12px}.admin-brand{font-size:17px;min-width:100px}.admin-tools{gap:8px}#adminNav>a{font-size:13px;padding:0 7px;gap:4px}.nav-icon{width:18px;height:18px}.user-panel{padding:10px}#message{margin:0 12px}.user-panel .filters label{min-width:0}#login{margin:30px 12px;max-width:none}.user-panel .filters label,.user-panel .filters input{width:100%}}
#message{position:fixed;bottom:0;left:0;right:0;margin:0;padding:5px 50px;background:#fff;border-top:1px solid #e4e8eb;z-index:30}#message:empty{display:none}@media(max-width:600px){#message{padding:5px 12px}}
#adminExtras[data-active="true"]>summary,#adminExtras a[aria-current="page"]{color:#1976d2}.user-panel .filters #userDisabled{width:16px;height:16px;min-height:0;max-width:16px;flex:none;margin:0}.user-panel .filters label:has(#userDisabled){flex-direction:row;align-items:center;gap:8px;min-width:0}
#eventSection{border:0;padding:0;box-shadow:none;background:transparent}.detection-toolbar{display:flex;align-items:center;gap:26px;min-height:64px;border-bottom:1px solid #d7dfe5;padding-bottom:12px}.detection-toolbar h2{font-size:23px;margin:0;white-space:nowrap;color:#111}.detection-toolbar h2>span{color:#1976d2;font-size:34px}.log-storage{font-weight:600;white-space:nowrap}.log-tools{margin-left:auto;display:flex;align-items:center;gap:32px}.log-tools button,.log-tools summary,.log-tools a{background:none;color:#607d8b;border:0;padding:8px;font-size:14px;text-decoration:none;white-space:nowrap;cursor:pointer}.log-scope{font-size:12px;margin:8px 0}.log-summary{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:10px 0}.log-summary>span{font-size:11px;color:#7c8996}.log-summary>strong{font-size:13px;font-weight:400}.detection-table-wrap{overflow:auto;max-width:100%;border:1px solid #d5dde3;border-radius:5px 5px 0 0}#detectionTable{width:max-content;min-width:100%;table-layout:auto;background:white}#detectionTable th{height:48px;padding:6px 8px;white-space:nowrap}#detectionTable td{height:27px;box-sizing:border-box;padding:3px 6px;border:1px solid #e0e0e0;white-space:nowrap;overflow:visible;text-overflow:clip;font-size:12px}#detectionTable th:nth-child(1){width:65px}#detectionTable th:nth-child(2){width:145px}#detectionTable th:nth-child(3){width:40px}#detectionTable th:nth-child(4),#detectionTable th:nth-child(5){width:100px}#detectionTable th:nth-child(6),#detectionTable th:nth-child(7),#detectionTable th:nth-child(8){width:145px}#detectionTable th:nth-child(9){width:40px}#detectionTable th:nth-child(10){width:130px}#detectionTable th:nth-child(11),#detectionTable th:nth-child(12){width:150px}#detectionTable th:nth-child(13){width:65px}#detectionTable th:nth-child(14){width:200px}#detectionTable th:nth-child(15){width:260px}.log-number{border:0;background:none;color:#1456ed;text-decoration:underline;padding:0;min-height:0;font-size:12px}#eventFilters{background:white;border:1px solid #d6dfe5;padding:16px;margin:12px 0}.log-missing{flex-basis:100%;display:flex;gap:10px;flex-wrap:wrap;border:1px solid #e1e5e9}.log-missing legend{font-size:12px;color:#768694}.log-missing input{width:150px}#logColumns{padding:12px;background:#fff;border:1px solid #d6dfe5;margin:10px 0}#logColumns label{display:inline-flex;align-items:center;margin:8px;gap:5px}#logColumns input{width:14px;height:14px;min-height:0}#logDetail{box-sizing:border-box;max-width:700px;width:calc(100% - 48px);border:1px solid #bccbd5;border-radius:3px;padding:20px}#logDetail::backdrop{background:#20374b66}#logDetail pre{font-size:13px;max-height:55vh;overflow:auto}#eventSection .pagination{justify-content:center;font-size:12px}
@media(max-width:900px){.detection-toolbar{flex-wrap:wrap;gap:10px}.log-tools{width:100%;justify-content:space-between;gap:4px}.log-tools button,.log-tools summary,.log-tools a{font-size:12px;padding:6px}.log-summary{flex-direction:column;align-items:flex-start;gap:4px}.log-summary>strong{line-height:1.5}#eventSection .pagination{flex-wrap:wrap}#logColumns label{font-size:12px}}
/* Domain/URL policy structure; unsupported settings stay explicit. */
#policyReference{padding:0;border:0;background:transparent}.policy-tabbar{display:flex;align-items:center;background:#1976d2;min-height:48px;color:white;gap:0}.policy-tabbar button{height:48px;border:0;border-radius:0;background:transparent;color:#e3eefb;font-size:14px;padding:0 22px;border-bottom:3px solid transparent}.policy-tabbar button[aria-selected=true]{color:white;border-bottom-color:white;background:#1565b0}.policy-tabbar span{margin-left:auto;padding:10px 18px;font-size:13px}.policy-reference-note{font-size:12px;color:#607284}.policy-layout{display:grid;grid-template-columns:145px minmax(0,1fr);gap:20px;margin-top:20px}.policy-layout aside{align-self:start;position:sticky;top:12px;display:flex;flex-direction:column;gap:3px}.policy-layout aside button{text-align:left;font-size:12px;background:transparent;color:#35566e;border:0;padding:8px 4px;height:auto}.policy-layout aside button:hover{background:#c1dff5}.policy-url-root{font-size:12px;padding:8px 4px}.policy-card-list{min-width:0}.policy-reference-card{background:white;border:1px solid #e0e5e9;margin-bottom:24px;scroll-margin-top:20px}.policy-reference-card header{min-height:52px;display:flex;align-items:center;gap:12px;padding:0 16px}.policy-reference-card h3{font-size:16px;margin:0}.policy-reference-card header span{font-size:12px;color:#607284}.policy-reference-card header div{margin-left:auto;display:flex;gap:8px}.policy-reference-card header button{min-width:80px}.policy-reference-card button:disabled{opacity:1;color:#72808b;background:#eef0f2;cursor:not-allowed}.policy-reference-card table{margin:0;min-width:620px}.policy-reference-card th{height:39px;padding:5px 10px;white-space:nowrap;font-size:12px;font-weight:500}.policy-reference-card td{height:70px;color:#607284;padding:10px}.policy-table-scroll{overflow-x:auto}.policy-ip-tabs{display:flex;background:#e4f5f7;padding:6px 12px;gap:8px}
@media(max-width:700px){.policy-tabbar{flex-wrap:wrap}.policy-tabbar button{flex:1;padding:0 8px}.policy-tabbar span{width:100%;margin:0}.policy-layout{grid-template-columns:minmax(0,1fr);gap:10px}.policy-layout aside{position:static;flex-direction:row;overflow-x:auto}.policy-layout aside button{flex-shrink:0}.policy-reference-card header{flex-wrap:wrap;padding:12px;gap:8px}.policy-reference-card header div{margin-left:0}.policy-reference-card h3{font-size:15px}}
.policy-live-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px}.policy-live-form[hidden]{display:none}.policy-live-form label{display:flex;flex-direction:column;gap:5px;font-size:13px}.policy-live-form input,.policy-live-form select{width:100%;min-width:0}.policy-live-form select[multiple]{height:105px}.policy-live-list{overflow:auto}.policy-live-note,.policy-live-status{padding:0 16px;font-size:12px}.policy-live-list td{height:39px}.policy-live-status{color:#264c76}#policyCommonEditors{margin:16px 0;border:1px solid #dbe3eb;background:white}#policyCommonEditors>summary{padding:14px;color:#20374b;cursor:pointer}#policyCommonEditors section{margin:0;border:0;border-top:1px solid #dbe3eb}@media(max-width:700px){.policy-live-form{grid-template-columns:minmax(0,1fr)}}
.detection-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}.chart-card{min-width:0;background:#fff;border:1px solid #dce4ec}.chart-card>header{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid #e5ebf0}.chart-card h3{font-size:16px;margin:0 auto 0 0}.chart-card header button{background:transparent;color:#577383;border:1px solid #dce4ec;padding:4px 8px;font-size:12px;min-height:28px}.chart-content{padding:12px 16px}.chart-content svg{display:block;width:100%;height:auto;min-height:60px}.chart-note{font-size:12px;color:#697c8e;margin:0 0 12px}.chart-content .chart-card{border:0}.chart-content .chart-card .chart-content{padding:0}.chart-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.chart-day{padding:9px 3px;border-radius:3px;text-align:center;min-width:0}.chart-day span{display:block;font-size:10px}.chart-day strong{font-size:15px}.chart-content details{margin-top:12px}.chart-content details table{width:100%;table-layout:fixed}.chart-content td{overflow-wrap:anywhere}@media(max-width:850px){.detection-charts{grid-template-columns:minmax(0,1fr)}.chart-calendar{grid-template-columns:repeat(4,minmax(0,1fr))}}

.catalog-panels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.catalog-panel{min-width:0;overflow:auto}.catalog-panel td{overflow-wrap:anywhere}.catalog-panel button{margin:3px}.catalog-panel .filters{margin-top:16px}.catalog-panel .filters label{width:100%}.catalog-panel .filters input{width:100%}@media(max-width:900px){.catalog-panels{grid-template-columns:minmax(0,1fr)}}

#securityTemplateSection td{overflow-wrap:anywhere}#securityTemplateSection .policy-reference-card{overflow:auto;margin:16px 0}#securityTemplateSection header{flex-wrap:wrap}.template-editor{display:grid;gap:12px;max-width:760px;margin:16px 0}.template-editor label{display:grid;gap:6px}.template-editor input,.template-editor select,.template-editor textarea{box-sizing:border-box;width:100%;max-width:100%;padding:10px}.template-editor textarea{min-height:90px}.template-editor select[multiple]{min-height:100px}
/* Live HEADNAME rows use a compact six-column policy table. */
#domainCard6 td{height:auto;padding:5px 10px;white-space:nowrap}#domainCard6 td:first-child,#domainCard6 th:first-child{width:100px}#domainCard6 td:nth-child(2){width:90px}#domainCard6 td input{width:5rem;min-width:0;margin:0}#domainCard6 td select{width:150px;margin:0}#domainCard6>p[role=status]{margin:10px 16px}#domainCard6 header>div{flex-wrap:wrap}
#securityTemplateSection dialog p{overflow-wrap:anywhere}

#logDetail{max-height:85vh;overflow:auto}#requestDetailPanel{border:1px solid #d6dfe5;padding:12px;margin:12px 0}#requestDetailText{white-space:pre-wrap;overflow-wrap:anywhere;max-height:30vh}#detailDecodeError{color:#b42318}

#detectionMatchPanel{border:1px solid #d6dfe5;padding:12px;margin:12px 0}#detectionMatchMessage,#detectionMatchRules{white-space:pre-wrap;overflow-wrap:anywhere}#detectionMatchPanel h4{margin:8px 0}

.log-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.log-detail-heading h3{margin:0}#logDetail.expanded{max-width:1200px;width:calc(100% - 32px);box-sizing:border-box}#logDetail .log-detail-heading button{flex-shrink:0}

body.detail-window #app>*:not(#eventSection){display:none!important}body.detail-window #eventSection>*:not(#logDetail):not(#standaloneDetailStatus){display:none!important}body.detail-window #logDetail{width:calc(100% - 24px);max-height:calc(100vh - 24px)}.log-detail-heading{flex-wrap:wrap}.log-detail-heading h3{margin-right:auto}

#ipTemplateSection .ip-template-toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:14px 0}#ipTemplateSection .ip-template-toolbar label{display:grid;gap:5px;min-width:min(320px,100%)}#ipTemplateTable{min-width:760px}#ipTemplateTable td{vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere}#ipTemplateTable td:last-child{white-space:nowrap}#ipTemplateSection dialog{width:min(560px,calc(100vw - 32px));box-sizing:border-box;max-height:85vh;overflow:auto;border:1px solid #c7d4df;padding:20px;color:#20374b}#ipTemplateSection dialog::backdrop{background:#20374b55}#ipTemplateSection dialog form{display:grid;gap:14px}#ipTemplateSection dialog label{display:grid;gap:6px}#ipTemplateSection dialog input,#ipTemplateSection dialog textarea,#ipTemplateSection dialog select{box-sizing:border-box;width:100%;max-width:100%;padding:9px}#ipTemplateSection dialog select[multiple]{min-height:110px}#ipTemplateSection dialog textarea{min-height:80px}#ipTemplateSection .ip-template-dialog-actions{display:flex;gap:8px;justify-content:flex-end}
.ip-policy-batch{margin-block:1rem;padding:1rem;border:1px solid #d7e0ea;border-radius:.45rem;background:#f8fafc}.ip-policy-batch h4{margin:.1rem 0 .5rem}.ip-policy-batch>p{max-width:100ch;color:#53647a}.ip-policy-batch select[multiple]{min-width:18rem;min-height:7rem}.ip-policy-batch select[multiple] option{padding:.2rem .35rem}

/* Shared administrator shell. Tokens adapted from maintenance24 console-design.css.
   Preserve feature selectors and route DOM; navigation geometry is CSS-only. */
@font-face {
  font-family: "Pretendard Variable";
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
  src: url("/assets/pretendard-variable.woff2?v=1.3.9") format("woff2-variations");
}
:root {
  --guard-font: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  --guard-canvas: #f6f7f9;
  --guard-panel: #fff;
  --guard-field: #f2f4f6;
  --guard-hover: #e9ecef;
  --guard-ink: rgba(27,31,38,.89);
  --guard-muted: rgba(27,36,45,.62);
  --guard-nav-ink: rgba(28,31,39,.77);
  --guard-nav-active: rgba(18,32,53,.05);
  --guard-caption: rgba(23,30,41,.47);
  --guard-blue-hover: #1b64da;
  --guard-danger: #c6293e;
  --guard-shadow: 0 16px 48px #1b27351a;
  --guard-focus: #3182f6;
  --guard-stroke: #e5e8eb;
  --guard-blue: #3182f6;
  --guard-blue-ink: #1b64da;
  --guard-blue-soft: #e8f3ff;
  --guard-radius: 16px;
  --guard-header: 68px;
  --guard-rail: 220px;
  --guard-anchor: 92px;
  /* Foundation tokens (toss-apple-design). */
  --guard-success: #16734c;
  --guard-success-soft: #e8f7ef;
  --guard-danger-soft: #fff0f1;
  --guard-danger-hover: #a51f33;
  --guard-row-hover: #f9fafb;
  --guard-space-1: 4px;
  --guard-space-2: 8px;
  --guard-space-3: 12px;
  --guard-space-4: 16px;
  --guard-space-5: 20px;
  --guard-space-6: 24px;
  --guard-space-8: 32px;
  --guard-space-12: 48px;
  --guard-radius-control: 10px;
  --guard-radius-card: 16px;
  --guard-radius-popover: 14px;
  --guard-radius-dialog: 20px;
  --guard-control-h: 40px;
  --guard-control-h-sm: 32px;
  --guard-touch-h: 44px;
}
body { background: var(--guard-canvas); color: var(--guard-ink); font: 14px/1.6 var(--guard-font); font-synthesis: none; }
#app { box-sizing: border-box; min-height: 100vh; min-width: 0; padding: calc(var(--guard-header) + 32px) 32px 64px calc(var(--guard-rail) + 32px); }
.admin-topbar { position: fixed; inset: 0 0 auto; height: var(--guard-header); min-height: 0; margin: 0; padding: 0 24px; gap: 24px; flex-wrap: nowrap; background: var(--guard-canvas); border-bottom: 0; box-shadow: none; z-index: 40; }
.admin-brand { color: var(--guard-ink); font-size: 20px; line-height: 32px; font-weight: 700; letter-spacing: -.6px; min-width: 0; }
.admin-tools { gap: 16px; order: initial; }
.session-label { color: var(--guard-muted); }
#adminNav { position: fixed; inset: var(--guard-header) auto 0 0; width: var(--guard-rail); box-sizing: border-box; padding: 16px 12px 14px; margin: 0; display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 2px; overflow: auto; overscroll-behavior: contain; background: var(--guard-canvas); border-right: 0; }
#adminNav > a { height: 34px; min-height: 34px; padding: 5px 12px; gap: 12px; border-radius: 10px; color: var(--guard-nav-ink); font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; }
#adminNav > a:hover { background: var(--guard-nav-active); }
#adminNav a[aria-current="page"] { color: var(--guard-ink); background: var(--guard-nav-active); font-weight: 600; }




.admin-tools .nav-menu a { border-radius: 10px; color: var(--guard-ink); background: transparent; }
.admin-tools .nav-menu a:hover { background: var(--guard-field); }
.admin-tools summary { min-height: 32px; box-sizing: border-box; display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 10px; color: var(--guard-muted); font-size: 14px; font-weight: 600; }
.admin-tools summary:hover { background: var(--guard-hover); color: var(--guard-ink); }
/* Disclosure chevron as an SVG icon (never a unicode glyph); rotates when open. */
.extras-chevron { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 150ms ease; }
#adminExtras[open] > summary .extras-chevron { transform: rotate(180deg); }
.session-label { font-size: 12px; }
#logout { background: var(--guard-field); border: 1px solid transparent; color: var(--guard-ink); border-radius: var(--guard-radius-control); min-height: 32px; padding: 6px 10px; font-size: 14px; line-height: 20px; font-weight: 600; }
#logout:hover { background: var(--guard-hover); filter: none; }
.page-heading { border: 0; padding: 0; margin: 0 0 12px; }
#pageTitle { color: var(--guard-ink); font-size: 26px; line-height: 1.45; letter-spacing: -.7px; font-weight: 700; }
#pageTitle::before { content: none; }
#pageScope { margin: 0 0 28px; max-width: 100ch; color: var(--guard-muted); font-size: 15px; line-height: 24px; font-weight: 500; }
#app h2, #app h3 { color: var(--guard-ink); letter-spacing: -.6px; line-height: 1.45; }
#app h3 { font-size: 17px; line-height: 26px; font-weight: 700; }
p { color: var(--guard-muted); }
section, .card, .user-panel, .chart-card, .policy-reference-card { border-color: var(--guard-stroke); border-radius: var(--guard-radius); background: var(--guard-panel); box-shadow: none; }
section, .card { padding: 24px; margin-bottom: 24px; min-width: 0; }
.cards { gap: 20px; }
.card { box-sizing: border-box; }
.value { font-size: 30px; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.user-panel { padding: 20px; }
.panel-title, .chart-card > header, .detection-toolbar { border-color: var(--guard-stroke); }
#app :is(button,input,select,textarea), #login :is(button,input) { font-family: var(--guard-font); }
/* Buttons: neutral fill by default; blue only for the area's primary action
   (.primary, or a form's submit button). Radius/height come from tokens. */
button { box-sizing: border-box; border: 0; border-radius: var(--guard-radius-control); min-height: var(--guard-control-h); padding: 0 var(--guard-space-4); background: var(--guard-field); color: var(--guard-ink); font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: -.2px; transition: background-color .15s, color .15s; }
button:hover:not(:disabled) { background: var(--guard-hover); }
button:where(.primary), form button:where([type=submit], :not([type])) { background: var(--guard-blue); color: #fff; }
button:where(.primary):hover:not(:disabled), form button:where([type=submit], :not([type])):hover:not(:disabled) { background: var(--guard-blue-hover); }
button.secondary { color: var(--guard-ink); background: var(--guard-field); }
button.secondary:hover:not(:disabled) { background: var(--guard-hover); }
#app td button { min-height: var(--guard-control-h-sm); padding: 0 10px; }
:where(td, p, span) > button + button { margin-inline-start: var(--guard-space-2); }
.filters button { min-height: var(--guard-control-h); }
input, select, textarea { color: var(--guard-ink); background: var(--guard-field); border: 1px solid transparent; border-radius: var(--guard-radius-control); padding: 9px 12px; font: inherit; letter-spacing: -.2px; }
:is(input, textarea)::placeholder { color: var(--guard-muted); opacity: 1; }
input:not([type=checkbox]):not([type=radio]), select { min-height: var(--guard-control-h); }
/* One outer height for text inputs and single selects in the same row. */
input:not([type=checkbox], [type=radio], [type=range], [type=file], [type=color], [type=hidden]), select:not([multiple]):not([size]) { box-sizing: border-box; height: var(--guard-control-h); padding-block: 0; }
/* Checkboxes/radios never inherit text-input sizing (was 300x32 / 230x32). */
input:is([type=checkbox], [type=radio]) { box-sizing: border-box; width: 18px !important; height: 18px !important; min-width: 18px; max-width: none !important; min-height: 0 !important; padding: 0 !important; flex: none; vertical-align: -4px; accent-color: var(--guard-blue); }
/* Borderless surfaces: nested panels separate by spacing, not outer borders. */
#app section :is(section, .card, .user-panel, .chart-card, .policy-reference-card) { border-width: 0; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; margin: 0 0 var(--guard-space-2); font-weight: 600; color: var(--guard-ink); }
#app dialog { box-sizing: border-box; max-width: calc(100vw - 32px); border-radius: var(--guard-radius-dialog); }
.filters { gap: 12px; }
.filters label { color: var(--guard-muted); }
#app :is(table) { color: var(--guard-ink); }
#app thead th { background: var(--guard-field); color: var(--guard-muted); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--guard-stroke); }
#app tbody td { color: var(--guard-ink); }
#app :is(td,th) { border-color: var(--guard-stroke); }
#app tbody tr:hover { background: var(--guard-row-hover); }
#app :is(.policy-table-scroll,.detection-table-wrap,.user-table-wrap,.policy-live-list) { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.detection-table-wrap { border-color: var(--guard-stroke); border-radius: 12px; }
#detectionTable td { padding: 7px 8px; }
.policy-tabbar { background: var(--guard-field); color: var(--guard-ink); border-radius: 12px; padding: 4px; gap: 4px; }
.policy-tabbar button { color: var(--guard-muted); border-radius: 10px; border: 0; }
.policy-tabbar button[aria-selected=true] { background: var(--guard-panel); color: var(--guard-blue-ink); box-shadow: 0 1px 4px #19283c12; }
.policy-tabbar span { color: var(--guard-muted); }
#policyReference { overflow: visible; }
.policy-layout { grid-template-columns: 168px minmax(0,1fr); gap: 24px; }
.policy-layout aside { top: var(--guard-anchor); max-height: calc(100dvh - var(--guard-anchor) - 20px); overflow-y: auto; }
.policy-layout aside button { padding: 9px 10px; color: var(--guard-muted); border-radius: 10px; }
.policy-layout aside button:hover { color: var(--guard-ink); background: var(--guard-nav-active); }
.policy-reference-card header { padding: 16px 20px; }
#policyCommonEditors, #eventFilters, #logColumns { border-color: var(--guard-stroke); border-radius: 12px; }
.policy-ip-tabs { background: var(--guard-field); }
.detection-toolbar h2 { font-size: 28px; letter-spacing: -.7px; }
.detection-toolbar h2 > span { color: var(--guard-blue-ink); }
#app dialog { background: var(--guard-panel); border: 0; border-radius: var(--guard-radius-dialog); color: var(--guard-ink); padding: 28px; box-shadow: var(--guard-shadow); }
#app dialog::backdrop { background: #191f2859; backdrop-filter: blur(3px); }
#message { box-sizing: border-box; left: var(--guard-rail); padding: 12px 32px; background: var(--guard-panel); border-color: var(--guard-stroke); font-size: 13px; max-height: 30vh; overflow: auto; }
#login { box-sizing: border-box; width: calc(100% - 32px); max-width: 440px; margin: 12vh auto; padding: 32px; }
#login h1 { font-size: 26px; letter-spacing: -.7px; }
#login { background: var(--guard-panel); border: 1px solid var(--guard-stroke); border-radius: var(--guard-radius); }
#login input { background: var(--guard-field); border: 1px solid transparent; border-radius: 10px; min-height: 42px; }
#login button { min-height: 42px; border-radius: 10px; }
/* Scroll targets include programmatically focused cards; do not hide focus. */
#app :is([id], [tabindex]) { scroll-margin-top: var(--guard-anchor); }
/* Focus: no rings (toss-apple-design). Keyboard cue = underline, see ui-foundation.css. */
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible { outline: none; box-shadow: none; }
#pageTitle:focus, #pageTitle:focus-visible { outline: none; box-shadow: none; }
#adminNav :focus-visible { outline-offset: -2px; }
body.detail-window #app { padding: 12px; }
@media (max-width: 1100px) {
  :root { --guard-rail: 220px; }
  #app { padding-right: 24px; padding-left: calc(var(--guard-rail) + 24px); }
  .policy-layout { grid-template-columns: minmax(0,1fr); }
  .policy-layout aside { position: static; flex-direction: row; overflow-x: auto; max-height: none; }
  .policy-layout aside button { flex-shrink: 0; }
  .user-columns { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  :root { --guard-header: 64px; --guard-rail: 0px; --guard-anchor: 136px; }
  #app { padding: 140px 16px 64px; }
  /* JS measures the fixed submenu against the page title so long menus keep a
     deliberate gap; mobile scroll/tap closes the overlay before it covers tools. */
  #message:not(:empty) + #app:has(#adminExtras[open]) { padding-top: calc(48px + var(--mobile-nav-extra, 0px)); }
  .admin-topbar { padding: 0 16px; gap: 8px; }
  .admin-brand { font-size: 17px; }
  .admin-tools { gap: 4px; font-size: 12px; }
  .admin-tools summary { padding: 6px; }
  #logout { padding: 6px 8px; }
  #adminNav { inset: var(--guard-header) 0 auto; height: 52px; width: 100%; padding: 4px 12px; flex-direction: row; align-items: center; gap: 4px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--guard-stroke); background: var(--guard-panel); }
  #adminNav > a { flex-shrink: 0; }
  #adminNav > a { padding: 8px 10px; min-height: 40px; font-size: 13px; }
  #pageTitle, .detection-toolbar h2 { font-size: 24px; }
  section, .card, .user-panel { padding: 16px; }
  .cards { gap: 12px; }
  .card { min-width: min(150px,100%); }
  .policy-tabbar { flex-wrap: wrap; }
  .policy-tabbar button { flex: 1; padding: 0 8px; font-size: 13px; }
  .policy-tabbar span { width: 100%; padding: 8px; }
  .policy-reference-card header { flex-wrap: wrap; padding: 16px; }
  .policy-reference-card header div { margin-left: 0; flex-wrap: wrap; }
  .filters label, .filters input { width: 100%; min-width: 0; }
  .ip-policy-batch select[multiple] { min-width: 0; max-width: 100%; }
  .log-tools { flex-wrap: wrap; }
  .pagination { flex-wrap: wrap; gap: 12px; }
  #message { left: 0; padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  .admin-topbar { display: none; }
  #app { padding: 0; }
}
/* Policy shortcuts wrap within the workspace on small screens, keeping every
   destination visible without requiring a second horizontal navigation strip. */
@media (max-width: 1100px) {
  .policy-layout aside { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 4px; overflow: visible; }
  .policy-layout aside button { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
}
/* Keep extension active states on the shared accent token. */
#adminExtras[data-active="true"] > summary,
#adminExtras a[aria-current="page"] { color: var(--guard-ink); background: var(--guard-nav-active); font-weight: 600; }
@media (max-width: 760px) {
  #ipTemplateSection .ip-template-toolbar label { min-width: 0; width: 100%; }
  #ipTemplateSection .ip-template-toolbar label input { box-sizing: border-box; width: 100%; max-width: 100%; }
  #userForm .filters label:has(#userRole) { flex: 1 1 100%; }
  #userForm .filters select { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .detection-toolbar { flex-wrap: wrap; gap: 12px; }
  .log-tools { width: 100%; margin-left: 0; flex-wrap: wrap; gap: 12px; }
}
/* Existing status text stays in document flow, so refresh/error messages never
   cover tables or the final dashboard cards. Live-region behavior is unchanged. */
#message:not(:empty) { position: static; margin: 0; padding: calc(var(--guard-header) + 24px) 32px 0 calc(var(--guard-rail) + 32px); border: 0; background: transparent; color: var(--guard-muted); font-size: 12px; max-height: none; overflow-wrap: anywhere; }
#message:not(:empty) + #app { padding-top: 16px; }
.admin-root:has(#app[hidden]) #message { max-width: 440px; margin: 0 auto; padding: 16px; }
@media (max-width: 760px) {
  #message:not(:empty) { padding: 132px 16px 0; }
}
/* Filled and stroked navigation icons follow Maintenance24's icon palette. */
#adminNav svg.nav-icon { width: 20px; height: 20px; margin: 1px; flex: none; stroke-linecap: round; stroke-linejoin: round; }
:is(#eventError,#agentError,#requestPolicyError,#reportError,#statsError,#systemError,#detailDecodeError,.notice) { color: var(--guard-danger); }
#eventStorage { color: var(--guard-danger); }
.value { font-weight: 700; color: var(--guard-ink); }
.card { color: var(--guard-muted); font-weight: 500; }
@media (max-width: 760px) {
  .admin-topbar { background: var(--guard-canvas); }
  #adminNav { background: var(--guard-canvas); border-bottom: 1px solid var(--guard-stroke); padding: 6px 12px; }
  #adminNav > a { height: 36px; min-height: 36px; padding: 6px 10px; gap: 6px; }
  .session-label { display: none; }
}
/* maintenance24 round3: top-level cards sit borderless on the canvas; nested
   cards keep the hairline so white-on-white panels stay separated. */
#app > section, .cards > .card { border-color: transparent; }
.chart-card header button, .policy-reference-card header button.secondary { background: var(--guard-field); color: var(--guard-ink); border-color: transparent; border-radius: var(--guard-radius-control); font-weight: 500; }
.chart-card header button:hover:not(:disabled) { background: var(--guard-hover); }
.log-tools :is(button,summary,a) { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; box-sizing: border-box; padding: 0 12px; color: var(--guard-muted); border-radius: 10px; font-weight: 600; line-height: 1; white-space: nowrap; }
.log-tools :is(button,summary,a):hover:not(:disabled) { background: var(--guard-hover); color: var(--guard-ink); }
/* Utility tool icons: consistent gray outline, no fill (toss-apple utility set). */
.log-tools .tool-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Realtime popover: token surface, horizontal label, single select chevron. */
.log-tools details { position: relative; }
.log-tools details[open] > summary { color: var(--guard-ink); background: var(--guard-hover); }
.log-tools details[open] > label { position: absolute; right: 0; top: calc(100% + 6px); left: auto; z-index: 20; display: flex; align-items: center; gap: 10px; min-width: max-content; padding: 12px 14px; background: var(--guard-panel); border: 1px solid var(--guard-stroke); border-radius: 14px; box-shadow: var(--guard-shadow); font-size: 13px; color: var(--guard-muted); white-space: nowrap; }
.log-tools .realtime-label { white-space: nowrap; }
.log-tools #eventInterval { min-width: 96px; min-height: 40px; padding: 8px 12px; appearance: auto; -webkit-appearance: menulist; background-color: var(--guard-field); }
.detection-toolbar h2 .toolbar-glyph { width: 26px; height: 26px; vertical-align: -5px; margin-right: 4px; fill: none; stroke: var(--guard-blue-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#app p a { color: var(--guard-blue-ink); }

#eventSection .detection-toolbar h2:focus { outline: none; box-shadow: none; }

@media (max-width: 760px) {
  .log-tools details[open] > label { left: 0; right: auto; min-width: 0; max-width: calc(100vw - 24px); box-sizing: border-box; }
}

/* Page title consistency: every route title (common #pageTitle and the
   detection-log toolbar heading) shares one type scale, top edge and gap. */
.page-heading { margin: 0 0 12px; min-height: 38px; }
#pageTitle, #eventSection .detection-toolbar h2 { margin: 0; font-size: 26px; line-height: 38px; letter-spacing: -.7px; font-weight: 700; color: var(--guard-ink); }
#eventSection .detection-toolbar { min-height: 38px; align-items: center; margin: 0 0 12px; padding: 0; border-bottom: 0; }
#eventSection .detection-toolbar h2 .toolbar-glyph { display: none; }
#eventSection .detection-toolbar .log-storage { color: var(--guard-muted); font-size: 14px; font-weight: 500; }
/* Refresh/status line lives in the header's left area, aligned with the page
   column, instead of sitting above the title. Login screen keeps its own spot. */
.admin-root:has(> #app:not([hidden])) > #message:not(:empty) { position: fixed; z-index: 41; top: calc(var(--guard-header) / 2); left: calc(var(--guard-rail) + 32px); right: auto; bottom: auto; transform: translateY(-50%); box-sizing: border-box; height: auto; min-height: 0; max-width: calc(100vw - var(--guard-rail) - 32px - 340px); margin: 0; padding: 0; border: 0; background: transparent; color: var(--guard-muted); font-size: 13px; line-height: 18px; font-weight: 500; max-height: 54px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow-wrap: anywhere; pointer-events: none; }
.admin-root:has(> #app:not([hidden])) > #message:not(:empty) + #app { padding-top: calc(var(--guard-header) + 32px); }
body.detail-window .admin-root > #message:not(:empty) { position: static; transform: none; max-width: none; padding: 12px; }
@media (max-width: 1100px) {
  .admin-root:has(> #app:not([hidden])) > #message:not(:empty) { left: calc(var(--guard-rail) + 24px); }
}
@media (max-width: 760px) {
  #pageTitle, #eventSection .detection-toolbar h2 { font-size: 24px; line-height: 34px; }
  .page-heading, #eventSection .detection-toolbar { min-height: 34px; }
  /* Mobile: brand row moves up and the status line sits beneath it. */
  .admin-root:has(> #app:not([hidden]) ) > #message:not(:empty) { top: 42px; left: 16px; right: 16px; height: 16px; max-width: none; transform: none; display: block; font-size: 11px; line-height: 16px; white-space: nowrap; text-overflow: ellipsis; }
  .admin-root:has(> #message:not(:empty)) .admin-topbar { align-items: flex-start; padding-top: 6px; }
  .admin-root:has(> #app:not([hidden])) > #message:not(:empty) + #app { padding-top: 140px; }
  #app:has(#adminExtras[open]) { padding-top: calc(140px + var(--mobile-nav-extra, 0px)); }
  .admin-root:has(> #app:not([hidden])) > #message:not(:empty) + #app:has(#adminExtras[open]) { padding-top: calc(140px + var(--mobile-nav-extra, 0px)); }
  /* Keep the live status available to assistive tech without painting over
     the expanded mobile navigation. */
  .admin-root:has(#adminExtras[open]) > #message:not(:empty) { opacity: 0; }
}
/* Detail windows must override the more-specific :has()-based header rules. */
body.detail-window .admin-root:has(> #app:not([hidden])) > #message:not(:empty) { position: static; transform: none; max-width: none; padding: 12px; }
body.detail-window .admin-root:has(> #app:not([hidden])) > #message:not(:empty) + #app { padding: 12px; }
#authLoading { box-sizing: border-box; width: calc(100% - 32px); max-width: 440px; margin: 12vh auto; padding: 28px 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--guard-stroke); border-radius: var(--guard-radius); background: var(--guard-panel); box-shadow: var(--guard-shadow); color: var(--guard-muted); text-align: center; }
#authLoading strong { color: var(--guard-ink); font-size: 20px; }
#authLoading span { font-size: 13px; }

/* URL templates contain two panels; keep the wide table out of the generic three-column user layout. */
#urlpUserPane .user-columns { grid-template-columns: minmax(340px,.9fr) minmax(0,1.5fr); }
#urlpUserPane .user-panel:last-child { min-width: 0; }
#urlpUserPane .user-table-wrap { overflow-x: auto; }
#urlpUserPane .user-table-wrap table { min-width: 1080px; }
#urlpUserPane .user-table-wrap th:last-child, #urlpUserPane .user-table-wrap td:last-child { min-width: 340px; white-space: nowrap; }
#urlpUserPane .user-table-wrap td:last-child { text-align: right; }
#urlpUserPane .user-table-wrap td:last-child button { padding: 4px 6px; font-size: 12px; }
@media (max-width: 1000px) { #urlpUserPane .user-columns { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 600px) { #urlpUserPane .user-table-wrap td:last-child button { min-height: 44px; } }

/* Read-only native policy summary: long stored values remain readable. */
#policySummary th,#policySummary td{overflow-wrap:anywhere;white-space:normal}
.domain-limit-warning{margin:14px 16px;padding:12px 14px;border:1px solid #f0d7a1;background:#fff9ea;color:#76520a;font-size:12px;line-height:1.6}
.domain-limit-reference{display:block;margin-top:8px}
.domain-limit-controls{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:0 16px 12px}
.domain-limit-controls label{display:grid;gap:5px;color:#607284;font-size:12px}
.domain-limit-controls select{min-width:min(360px,75vw)}
.domain-limit-status{min-height:20px;padding:0 16px;color:#607284;font-size:12px}
.domain-limit-table-wrap table{min-width:960px}
.domain-limit-table-wrap th[scope="row"]{min-width:200px;background:#fff;color:#20374b;text-align:left}
.domain-limit-table-wrap td{height:auto;min-width:150px;vertical-align:middle}
.domain-limit-table-wrap input,.domain-limit-table-wrap select{width:100%;min-width:120px}
.domain-limit-multipart{display:grid;grid-template-columns:repeat(3,minmax(110px,1fr));gap:8px;min-width:420px}
.domain-limit-multipart label{display:grid;gap:4px;color:#607284;font-size:11px}
@media(max-width:700px){.domain-limit-controls{align-items:stretch}.domain-limit-controls label,.domain-limit-controls select{width:100%;min-width:0}.domain-limit-controls button{flex:1}.domain-limit-multipart{min-width:380px}}

/* IA13-02: constrain long choices and keep the complete policy table scrollable. */
#urlSecurityPatternMount { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
#urlSecurityPatternMount > div { min-width: 0; max-width: 100%; }
#urlSecurityPatternMount select { min-width: 0; max-width: 100%; }
#urlSecurityPatternMount button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
#urlSecurityPatternMount .policy-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
#urlSecurityPatternMount td { vertical-align: top; }

/* Keep the domain base policy table within its card on narrow screens. */
#domainBaseNextMount { overflow-x: auto; }

/* 대시보드 통계 카드를 클릭하면 해당 페이지로 이동한다. 권한이 있는 카드만 활성화된다. */
.cards > .card.is-clickable { cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.cards > .card.is-clickable:hover { transform: translateY(-2px); box-shadow: 0 6px 18px #20374b1f; }
.cards > .card.is-clickable:active { transform: translateY(0); box-shadow: 0 2px 6px #20374b14; }
.cards > .card.is-clickable:focus-visible { outline: 2px solid #1976d2; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .cards > .card.is-clickable { transition: none; } .cards > .card.is-clickable:hover { transform: none; } }
