:root{font-family:"Segoe UI",sans-serif;color:#26312c;background:#fafbf9;color-scheme:light;--accent:#215b43;--muted:#626c65;--line:#e1e6df;--soft:#edf2e9}
.threat-summary .page-heading{margin-bottom:14px}.threat-help{display:flex;align-items:baseline;justify-content:space-between;gap:8px 20px;flex-wrap:wrap}.threat-help>p{font-size:13px}.threat-help details{font-size:13px;color:var(--muted)}.threat-help details[open]{flex-basis:100%}.threat-help summary{cursor:pointer;color:var(--accent);padding:6px 0;min-height:28px;line-height:1.3}.threat-help summary:focus-visible{outline:3px solid #427558;outline-offset:3px}.threat-help details p{font-size:13px;margin-top:8px;max-width:75ch}.threat-summary .security-section{margin-top:20px}.threat-summary .threat-section-heading{gap:8px;margin-bottom:8px}.threat-summary .threat-section-heading h2{font-size:16px}.threat-summary .threat-section-heading .subtle{min-height:32px;padding:6px 10px}.threat-summary .security-empty{font-size:14px}

.threat-section-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:12px}.threat-section-heading h2{margin:0}.threat-section-heading .subtle{min-height:44px;color:var(--accent)}.threat-assessment .threat-review{margin-left:auto}
#nav-security{position:relative;padding-right:31px}#threat-scan-label{white-space:nowrap}.threat-count{position:absolute;right:8px;display:inline-grid;place-items:center;width:18px;height:18px;flex-shrink:0;border-radius:50%;background:#626c65;color:#fff;font-size:11px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums;margin-left:auto}.threat-count[hidden]{display:none}.threat-count.unread{background:#b42318}.threat-count.large-count{right:5px;width:24px;height:24px;font-size:10px}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #ccd5cb;background:#fff;border-radius:7px;padding:9px 15px;color:inherit;font-weight:600}button:hover{background:#edf2e9}button:disabled{opacity:.55;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #427558;outline-offset:3px}::selection{background:#d5e8cb;color:#173c2a}input{caret-color:var(--accent)}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.app-shell{display:grid;grid-template-columns:210px 1fr;min-height:100vh}.sidebar{background:#f0f3ed;border-right:1px solid var(--line);padding:24px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;padding:0 8px 28px;font-size:17px;font-weight:650;line-height:1.3;letter-spacing:-.02em}.brand-logo{width:38px;height:38px;flex-shrink:0}nav{display:grid;gap:6px}.nav-button{display:flex;align-items:center;text-align:left;gap:11px;border:0;padding:10px 13px;background:transparent;font-size:14px}.nav-button.selected{background:#dfe9d9;color:#214e37}.sidebar-footer{margin-top:auto;color:var(--muted);font-size:12px;display:flex;align-items:center;gap:7px;padding:14px 7px}.status-dot{width:6px;height:6px;border-radius:50%;background:#5e8158}main{min-width:0;padding:0 32px 28px}.topbar{height:64px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:13px}.subtle{background:transparent;border:0;display:inline-flex;align-items:center;gap:7px;font-size:13px}.subtle:hover{background:var(--soft)}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:26px 0 20px}h1{font-size:28px;line-height:1.2;letter-spacing:-.025em;margin:0 0 10px;font-weight:650}h2{font-size:19px;margin:0 0 12px;letter-spacing:-.01em}p{line-height:1.55;margin:0;color:var(--muted);font-size:14px;max-width:70ch}.primary{color:#fff;background:var(--accent);border-color:var(--accent)}.primary:hover{background:#194c36}.toolbar{display:flex;align-items:center;gap:12px;margin:16px 0}.search{width:100%;max-width:390px;background:white;border:1px solid #cbd4c9;border-radius:7px;padding:11px 14px;font-size:14px}.list-label{display:flex;justify-content:space-between;align-items:center;padding:12px 0;font-size:12px;color:var(--muted)}.group-list{border-top:1px solid var(--line)}.group-row{border:0;border-bottom:1px solid var(--line);border-radius:0;width:100%;background:transparent;display:flex;align-items:center;padding:16px 4px;gap:16px;text-align:left;font-weight:400}.group-row:hover{background:#f0f5ec}.source-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:10px;background:#e8eee3;color:#345f44;flex-shrink:0}.source-icon svg{width:23px;height:23px}.group-name{font-weight:600;font-size:16px;display:block}.group-subtitle{display:block;color:var(--muted);font-size:12px;margin-top:5px}.count{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;padding:4px 11px;border-radius:6px;background:#eaf0e5;min-width:34px;text-align:center;margin-left:auto}.chevron{width:16px;margin-left:8px;color:#778174}.footnote{font-size:12px;margin-top:20px;color:var(--muted)}.back{margin-top:24px;padding-left:0;color:var(--accent)}.back svg{width:16px}.back+.page-heading{margin-top:17px}.notice{border:1px solid var(--line);padding:13px 16px;border-radius:7px;background:#f1f5ed;margin:18px 0;font-size:13px;line-height:1.6;color:#4a574d}.notice.warning{background:#fff8e8;border-color:#e4d7b3;color:#705b29}.sender-row{display:flex;align-items:center;gap:15px;padding:13px 0;border-bottom:1px solid var(--line)}.sender-copy{min-width:0;flex:1}.sender-name{font-size:14px;font-weight:600;overflow-wrap:anywhere}.sender-detail{font-size:12px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}.switch{position:relative;width:38px;height:22px;border:0;border-radius:20px;padding:0;background:#879188;flex-shrink:0}.switch:hover{background:#6d7c70}.switch[aria-checked=true]{background:var(--accent)}.switch::after{content:"";position:absolute;width:16px;height:16px;background:#fff;border-radius:50%;left:3px;top:3px;transition:transform .16s ease-out}.switch[aria-checked=true]::after{transform:translateX(16px)}.switch-label{font-size:12px;color:var(--muted);min-width:54px;text-align:right}.empty{padding:50px 20px;text-align:center;color:var(--muted);font-size:14px;line-height:1.7}.empty svg{width:36px;height:36px;color:#7c8c73;margin-bottom:15px}.empty strong{display:block;color:#384c3b;font-size:17px;margin-bottom:8px}.log-controls{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.record-label{display:flex;align-items:center;gap:9px;font-size:13px}.record-label .switch{margin-left:0}.log-controls button{margin-left:auto}.logs-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}.logs-layout.has-detail{grid-template-columns:minmax(0,1fr) minmax(235px,.85fr)}.log-row{width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;padding:13px 0;display:block;text-align:left;font-weight:400}.log-row.selected{background:var(--soft)}.log-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.log-source{font-weight:600;font-size:13px;overflow-wrap:anywhere}.log-time{font-size:11px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}.log-title{font-size:13px;margin-top:7px;overflow-wrap:anywhere;color:#515e54}.log-detail{margin-top:16px;border:1px solid var(--line);border-radius:8px;padding:20px;background:white;align-self:start;position:sticky;top:16px;min-width:0}.log-detail p{white-space:pre-wrap;overflow-wrap:anywhere}.detail-label{font-size:11px;color:var(--muted);margin:21px 0 5px}.detail-value{font-size:13px;overflow-wrap:anywhere}.log-detail button{margin-top:20px;width:100%}.filters{border:1px solid #cbd4c9;border-radius:7px;padding:10px;background:white;font-size:13px}#feedback{border-radius:7px;padding:12px 15px;background:#eaf1e5;margin-top:18px;font-size:13px;line-height:1.5}#feedback.error{background:#fff0ec;color:#943e2e}dialog{border:1px solid var(--line);border-radius:12px;padding:27px;width:420px;max-width:calc(100vw - 40px);box-shadow:0 14px 50px #1a2c2529}dialog::backdrop{background:#1d31234d}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}::-webkit-scrollbar{width:9px}::-webkit-scrollbar-thumb{background:#bdc8b9;border-radius:8px;border:2px solid #fafbf9}
@media(max-width:760px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:16px 20px;flex-direction:row;align-items:center;justify-content:space-between;border-right:0;border-bottom:1px solid var(--line);gap:12px}.brand{padding:0;font-size:13px}.brand-logo{width:30px;height:30px}nav{display:flex}.nav-button{font-size:12px;padding:9px;gap:6px}.nav-button svg{width:16px}.sidebar-footer{display:none}main{padding:0 24px 28px}.topbar{height:60px}.page-heading{margin-top:26px}h1{font-size:26px}.logs-layout.has-detail{grid-template-columns:1fr}.log-detail{position:static;grid-row:1}.page-heading{gap:12px}.toolbar{flex-wrap:wrap}.search{max-width:none}.page-heading>button{font-size:12px;padding:9px;flex-shrink:0}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.sender-technical{margin-top:7px;font-size:12px;color:var(--muted)}.sender-technical summary{cursor:pointer;width:fit-content;color:var(--accent)}.sender-technical summary:focus-visible{outline:3px solid #427558;outline-offset:3px}.sender-technical[open]{padding-bottom:3px}
.with-last-date{display:grid;grid-template-columns:minmax(0,1fr) 160px 54px 38px}.sender-last{font-size:12px;line-height:1.55;min-width:0;font-variant-numeric:tabular-nums}.last-label{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}.sender-last time{display:block;overflow-wrap:anywhere}.last-unavailable{color:var(--muted)}
@media(max-width:760px){.with-last-date{grid-template-columns:minmax(0,1fr) 54px 38px;row-gap:10px}.with-last-date .sender-copy{grid-column:1;grid-row:1}.with-last-date .sender-last{grid-column:1;grid-row:2}.with-last-date .switch-label{grid-column:2;grid-row:1}.with-last-date .switch{grid-column:3;grid-row:1}}
.sender-last time{text-align:left}
.preference-label{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}.permission-choices{display:flex;flex-wrap:wrap;gap:8px}.permission-choices button{font-size:13px;min-height:36px;padding:7px 12px}.permission-unset{grid-template-columns:minmax(0,1fr) 160px 190px}.unset-permission{grid-column:3;min-width:0}.global-preference{flex:0 1 230px;min-width:0}.page-heading:has(.global-preference){flex-wrap:wrap}.notification-action .permission-choices button{margin-top:0}
@media(max-width:760px){.permission-unset{grid-template-columns:minmax(0,1fr)}.permission-unset .sender-copy{grid-column:1;grid-row:1}.permission-unset .sender-last{grid-column:1;grid-row:2}.permission-unset .unset-permission{grid-column:1;grid-row:3}.global-preference{flex-basis:100%}}


.notification-detail{max-width:720px}.notification-detail .notification-message{font-size:16px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;color:#26312c;max-width:65ch}
.notification-metadata{margin:16px 0;display:grid;gap:12px}.notification-metadata div{min-width:0}.notification-metadata dt{font-size:12px;color:var(--muted);margin-bottom:5px}.notification-metadata dd{margin:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.notification-detail .sender-technical{font-size:13px;margin-top:16px}.notification-detail summary{padding:8px 0;min-height:36px}.notification-action{border-top:1px solid var(--line);margin-top:20px;padding-top:16px}.notification-action h2{font-size:16px;margin-bottom:8px}.notification-action p{font-size:14px}.notification-action button{margin-top:12px;min-height:36px;font-size:14px;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left}
#back-to-logs{min-height:44px;font-size:16px}.page-heading h1{overflow-wrap:anywhere}

body.drawer-open{overflow:hidden}.notification-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(580px,calc(100vw - 32px));max-width:none;height:100dvh;max-height:100dvh;border:0;border-left:1px solid var(--line);border-radius:0;padding:0;box-shadow:none;background:var(--surface,#fff);color:#26312c;overflow-y:auto;overscroll-behavior:contain}
.notification-drawer::backdrop{background:#1d312366;backdrop-filter:blur(2px)}.drawer-header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 24px;background:#fff;border-bottom:1px solid var(--line);font-size:16px;font-weight:600}.drawer-close{display:grid;place-items:center;min-width:44px;min-height:44px;padding:10px}.drawer-content{padding:0 24px 24px}.drawer-content .page-heading{margin:20px 0 0}.drawer-content h1{font-size:22px;line-height:1.3}.drawer-feedback{padding:10px 12px;margin-bottom:12px;background:var(--feedback-surface,#eaf1e5);font-size:13px;line-height:1.5}.drawer-feedback.error{background:#fff0ec;color:#943e2e}
@media(max-width:760px){.drawer-header{padding:8px 16px}.drawer-content{padding:0 16px 20px}}
@media(forced-colors:active){.notification-drawer{border-left:2px solid CanvasText}.notification-drawer::backdrop{background:Canvas;opacity:.65}}

.security-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff8e8;color:#705b29;padding:16px;margin-top:24px;border:1px solid #e4d7b3;border-radius:7px;font-size:16px}.security-summary button{min-height:44px}.security-explanation{font-size:16px}.security-section{margin-top:32px}.security-section>p{font-size:16px}.security-finding{border-bottom:1px solid var(--line);padding:24px 0}.security-finding h3{margin:0 0 10px;font-size:18px;overflow-wrap:anywhere}.security-finding p{font-size:16px;margin-bottom:12px}.security-finding ul,.threat-reasons ul{font-size:16px;line-height:1.6;padding-left:22px}.security-finding button{font-size:16px;min-height:44px}.finding-actions{display:flex;flex-wrap:wrap;gap:10px}.security-empty{margin:20px 0;color:var(--muted)}.threat-reasons{font-size:16px}.threat-reasons p{font-size:16px}
@media(max-width:760px){.sidebar{flex-wrap:wrap}nav{flex-wrap:wrap}.security-summary{align-items:flex-start}}
.threat-finding{padding:0;max-width:none;margin-top:12px;border:1px solid var(--line);border-radius:12px;background:#fff}.threat-notification{padding:14px 16px}.threat-notification-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin-bottom:10px;color:var(--muted);font-size:12px}.threat-notification-source{display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere;font-size:13px;font-weight:600;color:#26312c}.threat-notification-source svg{width:16px;height:16px;color:var(--muted)}.threat-notification-meta time{font-variant-numeric:tabular-nums}.threat-notification h3{font-size:16px;line-height:1.5;margin:0}.threat-notification .threat-notification-body{margin:6px 0 0;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;color:#515e54}.threat-assessment{padding:12px 16px;border-top:1px solid var(--line);border-radius:0 0 12px 12px;background:#f1f5ed}.threat-assessment h4{margin:0;font-size:13px;font-weight:600;color:#705b29}.threat-assessment ul{margin:4px 0 10px;font-size:14px;line-height:1.5;color:#4a574d}.threat-assessment li+li{margin-top:6px}.threat-assessment button{font-size:13px;min-height:36px;padding:7px 12px}
@media(max-width:760px){.threat-notification,.threat-assessment{padding:12px 14px}.threat-finding{max-width:none}}
.threat-notification-body{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.threat-notification-body.is-expanded{display:block;-webkit-line-clamp:unset;overflow:visible}.threat-notification .threat-expand{margin-top:4px;padding:4px 0;min-height:28px;font-size:13px;color:var(--accent)}.threat-expand[hidden]{display:none}
.log-toolbar{flex-wrap:wrap}.log-period-label{font-size:13px;color:var(--muted)}.log-toolbar .filters{min-height:44px}#log-period{appearance:none;padding:10px 40px 10px 12px;background-image:url('./dropdown-chevron.svg');background-repeat:no-repeat;background-position:right 12px center;background-size:16px 16px;line-height:20px;color:var(--text,#26312c)}.log-pagination{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;padding:20px 0;border-top:1px solid var(--line);font-size:13px;font-variant-numeric:tabular-nums}.log-page-summary{color:var(--muted)}.log-page-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.log-page-controls button{min-height:44px}
@media(forced-colors:active){#log-period{appearance:auto;background-image:none;padding-right:12px}}
.permission-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;padding-bottom:16px;border-bottom:1px solid var(--line)}.permission-heading h2{margin:0}.permission-checked{font-size:12px;font-variant-numeric:tabular-nums}.permission-empty{padding:32px 0;margin:0;font-size:16px;color:#26312c}.permission-help{margin-top:24px;padding-top:16px;border-top:1px solid var(--line)}.permission-help>p{font-size:13px}.permission-help details{margin-top:8px;font-size:13px;color:var(--muted)}.permission-help summary{width:fit-content;cursor:pointer;min-height:44px;padding:12px 0;color:var(--accent);font-weight:600}.permission-help summary:hover{color:#194c36}.permission-help summary:focus-visible{outline:3px solid #427558;outline-offset:3px}.permission-help ul{max-width:70ch;padding-left:20px;margin:8px 0 0;line-height:1.6}.permission-help li+li{margin-top:8px}.permission-watch .security-finding:last-of-type{border-bottom:0}
@media(pointer:coarse){.threat-assessment button,.threat-notification .threat-expand,.threat-help summary,.threat-summary .threat-section-heading .subtle{min-height:44px}}

.message-metadata{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);padding-bottom:16px;border-bottom:1px solid var(--line);margin:12px 0 16px}.notification-detail .notice{padding:12px;margin:16px 0;font-size:13px}.notification-detail .threat-reasons ul{font-size:14px;line-height:1.5;margin:8px 0;padding-left:20px}.notification-detail .threat-reasons p{font-size:13px}.notification-detail .sender-technical .notification-metadata{margin:8px 0 12px}.notification-detail .sender-technical dd{font-size:13px}
@media(pointer:coarse){.notification-detail summary,.notification-action button{min-height:44px}}
