/* Policies workspace: deliberately scoped so other portal tabs retain their layout. */
#managedRoot.policy-workspace{--pw-ink:#153653;--pw-blue:#1768d9;--pw-line:#dce9f5;--pw-muted:#617b94;gap:14px;color:var(--pw-ink);min-width:0}
#managedRoot.policy-workspace>.section-heading{display:none}
#managedRoot.policy-workspace .managed-status:empty{display:none}
#managedRoot.policy-workspace .managed-status{margin:0;padding:10px 14px;border:1px solid #bedcf6;border-radius:10px;background:#eef7ff;color:#174f7c}
#managedRoot.policy-workspace .managed-tabs{gap:8px;margin:0 0 2px;flex-wrap:wrap}
#managedRoot.policy-workspace .managed-tabs button{border:1px solid var(--pw-line);background:white;color:#28537c;border-radius:9px;padding:0 16px;box-shadow:none;transform:none}
#managedRoot.policy-workspace .managed-tabs button[aria-pressed=true]{background:var(--pw-blue);border-color:var(--pw-blue);color:white}
#managedRoot.policy-workspace .managed-controls{display:grid;grid-template-columns:minmax(160px,1fr) minmax(160px,1fr) auto auto;align-items:end;gap:14px;padding:16px;border:1px solid #d9eafa;background:#edf6ff;border-radius:12px}
#managedRoot.policy-workspace .managed-controls label{min-width:0;gap:6px;font-size:13px;font-weight:500}
#managedRoot.policy-workspace .policy-scope{display:flex;gap:4px;padding:3px;border:1px solid #d4e4f5;border-radius:9px;background:#fff}
#managedRoot.policy-workspace .policy-scope button{padding:0 12px;height:36px!important;min-height:36px!important;white-space:nowrap;border:0;border-radius:6px;background:transparent;color:#486581}
#managedRoot.policy-workspace .policy-scope button[aria-pressed=true]{background:#dfedff;color:#155bb1;box-shadow:inset 0 0 0 1px #8dbbf0}
#managedRoot.policy-workspace button{font-family:inherit;font-size:13px;font-weight:550;cursor:pointer;transition:background .15s,border-color .15s;letter-spacing:normal;text-transform:none}
#managedRoot.policy-workspace button:hover{filter:none;transform:none;box-shadow:none}
#managedRoot.policy-workspace button.quiet:hover{background:#e8f2ff;border-color:#a8c9ef;color:#174e86}
#managedRoot.policy-workspace button:disabled{cursor:default;opacity:.55}
#managedRoot.policy-workspace button:focus-visible,#managedRoot.policy-workspace input:focus-visible,#managedRoot.policy-workspace select:focus-visible,#managedRoot.policy-workspace textarea:focus-visible,#managedRoot.policy-workspace summary:focus-visible{outline:3px solid #92c4ff;outline-offset:2px}
#managedRoot.policy-workspace #managedPolicyEdit{margin:0;display:grid;gap:12px;min-width:0}
#managedRoot.policy-workspace .policy-grid{border:0;padding:0;margin:0;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
#managedRoot.policy-workspace .policy-card{background:white;border:1px solid var(--pw-line);box-shadow:0 4px 16px #153f6a05;border-radius:13px;padding:20px;min-width:0;display:grid;gap:16px;align-content:start}
#managedRoot.policy-workspace .policy-attachments,#managedRoot.policy-workspace .policy-access{align-self:stretch}
#managedRoot.policy-workspace .policy-card-heading{display:flex;align-items:flex-start;gap:12px;padding:0;margin:0;border:0;background:none;min-height:0}
#managedRoot.policy-workspace .policy-card h3{margin:0;color:#123458;font-size:17px;font-weight:700;text-align:left;line-height:1.3;letter-spacing:0}
#managedRoot.policy-workspace .policy-card-heading p{margin:5px 0 0;font-size:13px;line-height:1.4;color:var(--pw-muted)}
#managedRoot.policy-workspace .policy-section-icon{display:inline-flex;color:#1376e5;flex:0 0 26px;align-items:center}
#managedRoot.policy-workspace .policy-section-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#managedRoot.policy-workspace .policy-card label{display:grid;gap:6px;color:#254967;font-size:13px;font-weight:500;min-width:0}
#managedRoot.policy-workspace input:not([type=checkbox]):not([type=radio]),#managedRoot.policy-workspace select{height:40px!important;min-height:40px!important;border:1px solid #cfdfee;border-radius:8px;background:#fff;color:var(--pw-ink);padding:8px 11px;width:100%;max-width:100%;font-size:14px;box-shadow:none;box-sizing:border-box}
#managedRoot.policy-workspace textarea{min-height:72px;height:72px;width:100%;max-width:100%;box-sizing:border-box;resize:vertical;border:1px solid #cfdfee;border-radius:8px;padding:10px 12px;background:#fff;color:var(--pw-ink);font:14px/1.5 inherit}
#managedRoot.policy-workspace select[data-mode=BlockAll]{color:#a3283a;border-color:#f1c0c8;background:#fff3f5}
#managedRoot.policy-workspace small{color:var(--pw-muted);font-size:12px;font-weight:400;line-height:1.5}
#managedRoot.policy-workspace .policy-sites{display:grid;gap:6px}
#managedRoot.policy-workspace .policy-sites label{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}
#managedRoot.policy-workspace textarea:disabled{background:#f5f8fb;color:#8193a4}
#managedRoot.policy-workspace .policy-duration{display:grid;gap:10px}
#managedRoot.policy-workspace .policy-label{font-size:13px;color:#254967}
#managedRoot.policy-workspace .policy-presets{display:flex;gap:6px;align-items:end;flex-wrap:wrap}
#managedRoot.policy-workspace .policy-presets button{border:1px solid #d4e4f5;border-radius:7px;background:white;color:#28537c;padding:0 11px;height:36px!important;min-height:36px!important}
#managedRoot.policy-workspace .policy-presets button[aria-pressed=true]{background:#eaf3ff;border-color:#8bb8f0;color:#135cbd}
#managedRoot.policy-workspace .policy-custom{max-width:95px}
#managedRoot.policy-workspace .policy-custom input{height:36px!important;min-height:36px!important}
#managedRoot.policy-workspace .policy-browser-table{border:1px solid #e0ebf5;border-radius:10px;overflow:hidden}
#managedRoot.policy-workspace .policy-browser-header,#managedRoot.policy-workspace .policy-browser-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 14px;min-height:46px;box-sizing:border-box}
#managedRoot.policy-workspace .policy-browser-header{min-height:32px;background:#f3f8fd;color:#58728a;font-size:12px;font-weight:600;padding:8px 14px}
#managedRoot.policy-workspace .policy-browser-row{border-top:1px solid #eaf1f7;font-size:13px;line-height:1.4}
#managedRoot.policy-workspace .policy-browser-name{display:flex;gap:10px;align-items:center;color:#173957}
#managedRoot.policy-workspace .policy-browser-icon{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;flex-shrink:0;border-radius:8px;background:#eef6ff;font-size:20px;font-weight:750}
#managedRoot.policy-workspace .policy-icon-edge{color:#087cad;background:#e4f7f8}
#managedRoot.policy-workspace .policy-icon-firefox{color:#c95418;background:#fff0e5}
#managedRoot.policy-workspace .policy-icon-brave{color:#d94b1c;background:#fff0e8;font-size:15px}
#managedRoot.policy-workspace .policy-icon-opera{color:#e31d47;background:#fff0f4}
#managedRoot.policy-workspace .policy-icon-incognito{color:#445469;background:#eff2f5}
#managedRoot.policy-workspace .policy-switch-group{display:grid;justify-items:end;gap:5px}
#managedRoot.policy-workspace button.policy-switch{display:inline-flex;align-items:center;gap:9px;border:0;border-radius:6px;background:transparent;color:#516579;height:28px!important;min-height:28px!important;padding:0;box-shadow:none;flex-shrink:0}
#managedRoot.policy-workspace .policy-switch-label{font-size:12px;min-width:22px;text-align:right}
#managedRoot.policy-workspace .policy-switch-track{display:block;width:40px;height:23px;border-radius:99px;padding:3px;box-sizing:border-box;background:#cdd7e1;transition:background .15s}
#managedRoot.policy-workspace .policy-switch-track>span{display:block;width:17px;height:17px;background:white;border-radius:50%;box-shadow:0 1px 3px #18385530;transition:transform .15s}
#managedRoot.policy-workspace .policy-switch[aria-checked=true] .policy-switch-track{background:#1871df}
#managedRoot.policy-workspace .policy-switch[aria-checked=true] .policy-switch-track>span{transform:translateX(17px)}
#managedRoot.policy-workspace .policy-switch[aria-checked=true]{color:#175fb6}
#managedRoot.policy-workspace label.policy-keep{display:flex;align-items:center;gap:5px;font-size:11px;white-space:nowrap;font-weight:400;color:#6a7f93}
#managedRoot.policy-workspace .policy-keep input{width:14px;height:14px;margin:0;accent-color:#1768d9}
#managedRoot.policy-workspace .policy-note{border:0;border-radius:8px;background:#f2f7fc;padding:10px 12px;font-size:12px;color:#59718c;line-height:1.5}
#managedRoot.policy-workspace summary{cursor:pointer}
#managedRoot.policy-workspace .policy-note p{font-size:12px;margin:8px 0 0}
#managedRoot.policy-workspace .policy-usb-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#managedRoot.policy-workspace label.policy-choice{position:relative;display:block;cursor:pointer;font-size:12px;text-align:center}
#managedRoot.policy-workspace .policy-choice input{position:absolute;opacity:0;width:1px;height:1px}
#managedRoot.policy-workspace .policy-choice span{display:flex;align-items:center;justify-content:center;min-height:40px;padding:6px;border:1px solid #d5e3f1;border-radius:8px;color:#335873;background:#fff;box-sizing:border-box}
#managedRoot.policy-workspace .policy-choice input:checked+span{background:#eaf3ff;border-color:#80b2f1;color:#135fc7}
#managedRoot.policy-workspace .policy-choice input:focus-visible+span{outline:3px solid #92c4ff;outline-offset:2px}
#managedRoot.policy-workspace .policy-choice:last-child{grid-column:1/-1;justify-self:start}
#managedRoot.policy-workspace .policy-choice:last-child span{min-height:27px;font-size:11px;padding:3px 8px}
#managedRoot.policy-workspace .policy-inline-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#managedRoot.policy-workspace .policy-delivery{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;background:#fff;border:1px solid var(--pw-line);border-radius:11px;font-size:13px}
#managedRoot.policy-workspace .policy-delivery>div{flex:1;min-width:200px}
#managedRoot.policy-workspace .policy-delivery small{display:block;margin-top:3px}
#managedRoot.policy-workspace .policy-badge{padding:6px 9px;border-radius:7px;background:#edf3fa;color:#356080;font-size:12px}
#managedRoot.policy-workspace .policy-badge.is-pending{background:#fff5df;color:#9b6410}
#managedRoot.policy-workspace #policyRecheck{height:32px!important;min-height:32px!important;font-size:12px;background:#f5f9fe;border:1px solid #dbe7f4;border-radius:7px;color:#28537c}
#managedRoot.policy-workspace .policy-details{font-size:12px;color:#5b738a;max-width:100%;overflow-wrap:anywhere}
#managedRoot.policy-workspace .policy-details[open]{flex-basis:100%}
#managedRoot.policy-workspace .policy-details span{display:block;margin-top:8px;line-height:1.6}
#managedRoot.policy-workspace .policy-savebar{position:sticky;bottom:0;z-index:15;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:13px 16px;background:#f8fbff;border:1px solid #d2e3f4;border-radius:11px;box-shadow:0 -4px 18px #11385708;color:#173957}
#managedRoot.policy-workspace .policy-savebar strong{font-size:13px;font-weight:600}
#managedRoot.policy-workspace .policy-savebar small{display:block;margin-top:4px}
#managedRoot.policy-workspace .policy-save-actions{display:flex;gap:8px}
#managedRoot.policy-workspace .policy-save-actions button{height:40px!important;min-height:40px!important;border:1px solid #aacaf1;border-radius:8px;padding:0 16px;color:#1659a6;background:white}
#managedRoot.policy-workspace #policySave{background:#1468dc;color:white;border-color:#1468dc}
#managedRoot.policy-workspace #policySave:hover{background:#1259bd}
#managedRoot.policy-workspace [hidden]{display:none!important}
#managedRoot.policy-workspace .policy-sr{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
@media(max-width:1150px){#managedRoot.policy-workspace .managed-controls{grid-template-columns:1fr 1fr}#managedRoot.policy-workspace .policy-scope{justify-self:start}#managedRoot.policy-workspace #managedRefresh{justify-self:end}#managedRoot.policy-workspace .policy-card{padding:16px}}
@media(max-width:850px){#managedRoot.policy-workspace .policy-grid{grid-template-columns:minmax(0,1fr)}#managedRoot.policy-workspace .managed-tabs{flex-wrap:nowrap;overflow:auto;padding-bottom:3px}#managedRoot.policy-workspace .managed-tabs button{white-space:nowrap;flex:0 0 auto}#managedRoot.policy-workspace .policy-savebar{padding:12px}}
@media(max-width:480px){#managedRoot.policy-workspace .managed-controls{gap:10px;padding:12px}#managedRoot.policy-workspace .managed-controls label{font-size:12px}#managedRoot.policy-workspace .policy-scope{grid-column:1/-1;justify-self:stretch}#managedRoot.policy-workspace .policy-scope button{flex:1}#managedRoot.policy-workspace #managedRefresh{grid-column:1/-1;width:100%}#managedRoot.policy-workspace .policy-browser-row{padding:9px 10px;gap:6px}#managedRoot.policy-workspace .policy-browser-name{gap:7px;font-size:12px}#managedRoot.policy-workspace .policy-card{padding:14px}#managedRoot.policy-workspace .policy-save-actions{width:100%}#managedRoot.policy-workspace .policy-save-actions button{flex:1;padding:0 10px}#managedRoot.policy-workspace .policy-savebar{bottom:0;padding-bottom:max(12px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){#managedRoot.policy-workspace *{transition:none!important}}
/* Explicit card header grid avoids generic portal header space-between rules. */
#managedRoot.policy-workspace header.policy-card-heading{display:grid!important;grid-template-columns:26px minmax(0,1fr);justify-content:start!important;align-items:start;gap:12px}
#managedRoot.policy-workspace .policy-card-heading>div{min-width:0;text-align:left!important}
#managedRoot.policy-workspace .policy-card-heading h3{font-weight:700!important;text-align:left!important}
#managedRoot.policy-workspace .policy-browser-icon svg{width:21px;height:21px;fill:currentColor;display:block}
