:root{--bg:#e8eef0;--ink:#233c39;--muted:#61726f;--green:#176b57;--shadow:7px 7px 15px #b9c6ca,-7px -7px 15px #fff;--inset:inset 4px 4px 9px #c4cdd1,inset -4px -4px 9px #fff}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.55 system-ui,sans-serif}main{max-width:1180px;margin:auto;padding:24px}header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:25px}h1{font-size:clamp(30px,6vw,48px);letter-spacing:-2px;margin:6px 0 0}h1 span{color:var(--green)}h2,h3,h4,p{margin:0 0 8px}h2{font-size:20px}h3{font-size:17px}h4{font-size:15px}a{color:var(--green)}.small,.muted,footer{font-size:13px;color:var(--muted)}.panel,.stats>div{padding:20px;border-radius:20px;background:var(--bg);box-shadow:var(--shadow);margin-bottom:22px}.drive{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.drive>div:first-child{flex:1}.wide{width:100%;grid-column:1/-1}progress{width:100%;height:10px;accent-color:var(--green)}button,.button,summary{font:inherit;cursor:pointer;text-decoration:none;color:var(--ink)}button,.button{display:inline-flex;align-items:center;justify-content:center;border:0;background:var(--bg);border-radius:12px;padding:10px 15px;box-shadow:var(--shadow);font-weight:650;min-height:42px;white-space:normal;text-align:center;transition:transform .12s,box-shadow .12s}button:hover,.button:hover{transform:translateY(-1px)}button:active,.button:active,.selected{box-shadow:var(--inset)}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #278b78;outline-offset:3px}button:disabled{opacity:.55;cursor:not-allowed}.primary{background:var(--green);color:#fff;box-shadow:5px 5px 10px #a8bcb7,-5px -5px 10px #fff}.danger{color:#a12d2d;margin-top:10px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stats>div{display:grid;gap:3px;margin:0 0 20px}.stats strong{font-size:25px;color:var(--green)}.stats span{color:var(--muted);font-size:13px}.tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:15px;margin:5px 0 22px}.tabs .selected{color:var(--green);font-weight:800}.search{display:block;margin-bottom:18px}input:not([type=checkbox]),select,textarea{width:100%;min-width:0;border:0;border-radius:12px;background:var(--bg);color:var(--ink);box-shadow:var(--inset);padding:12px;font:inherit}label{display:grid;gap:6px;font-weight:600;font-size:13px}.check{display:flex;align-items:center;gap:8px;margin:12px 0;font-weight:400}.check input{accent-color:var(--green);width:17px;height:17px}.section h3{padding-bottom:10px;border-bottom:1px solid #c9d5d5}.indicator{padding:15px 0;border-bottom:1px solid #ccd6d6;scroll-margin:20px}.indicator:last-child{border:0}.indicatorhead,.evidence,.actions,.viewerhead{display:flex;align-items:center;justify-content:space-between;gap:12px}.count{font-size:12px;color:var(--muted);white-space:nowrap}.evidence{margin:12px 0;padding:14px;background:#f3f7f6;border-radius:14px;box-shadow:3px 3px 7px #c4d0d1}.evidence strong,.evidence .muted{display:block;overflow-wrap:anywhere}.evidence p{font-size:13px;margin-top:5px}.actions{flex-wrap:wrap;justify-content:flex-end}.actions button,.actions a{font-size:13px;min-height:36px;padding:8px 10px;box-shadow:3px 3px 7px #c4d0d1,-3px -3px 7px #fff}.add summary{color:var(--green);font-weight:700}details{margin:12px 0}summary{padding:6px 0}form.edit{padding:14px;margin:8px 0;background:var(--bg);box-shadow:var(--inset);border-radius:14px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.notice{padding:14px;border-radius:12px;margin:12px 0}.ok{background:#d1e8da}.bad{background:#f6dedc;color:#852b27}footer{text-align:center;margin:30px 0}dialog{width:min(1100px,96vw);height:90vh;border:0;border-radius:20px;padding:16px;background:var(--bg);color:var(--ink)}dialog::backdrop{background:#142d2dbb}dialog iframe{width:100%;height:calc(100% - 90px);border:0;background:#fff}.viewerhead{margin-bottom:10px}.viewerhead strong{flex:1;overflow-wrap:anywhere}[hidden]{display:none!important}@media(max-width:650px){main{padding:15px}.stats{grid-template-columns:repeat(2,1fr);gap:12px}.panel{padding:14px}.evidence{align-items:flex-start;flex-direction:column}.actions{justify-content:flex-start}.formgrid{grid-template-columns:1fr}.tabs{gap:8px}.drive>div:first-child{flex-basis:100%}.indicatorhead{align-items:flex-start}.viewerhead{flex-wrap:wrap}header{align-items:flex-start}}

/* R2: collapsible navigation. No evidence is added by opening a folder. */
main{max-width:1160px;padding:32px 28px}body{font-size:16px}header{margin-bottom:24px}.stats>div{padding:17px 20px}.aspect-list{display:grid;gap:17px}.accordion{margin:0;min-width:0}.accordion-toggle{display:flex;align-items:center;gap:14px;width:100%;list-style:none;cursor:pointer;border-radius:15px;padding:14px 17px;min-height:56px;background:var(--bg);box-shadow:var(--shadow);font-weight:700;transition:box-shadow .18s,background .18s;text-align:left}.accordion-toggle::-webkit-details-marker{display:none}.accordion-toggle::marker{content:''}.accordion-toggle:hover{color:var(--green)}.accordion[open]>.accordion-toggle{box-shadow:var(--inset);color:var(--green)}.aspect-toggle{font-size:18px;min-height:68px}.letter{flex:0 0 40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#176b57;color:white;font-size:19px}.toggle-title{flex:1;min-width:0;overflow-wrap:anywhere}.chevron{flex:0 0 10px;width:10px;height:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin:0 4px 4px;transition:transform .18s}.accordion[open]>.accordion-toggle>.chevron{transform:rotate(225deg);margin-bottom:0}.accordion-body{min-width:0}.aspect-body{padding:17px 8px 5px 20px;display:grid;gap:12px}.section-toggle{font-size:16px;box-shadow:4px 4px 9px #c1cdd1,-4px -4px 9px #fff}.section-body{padding:13px 5px 3px 17px;display:grid;gap:10px}.indicator{padding:0;border:0;scroll-margin:16px}.indicator-toggle{font-size:14px;min-height:48px;padding:12px 13px;box-shadow:3px 3px 7px #c6d0d3,-3px -3px 7px #fff}.indicator-body{padding:12px 5px 5px 13px}.indicator-body>.muted{padding:8px 0}.evidence{gap:12px;margin:8px 0;padding:13px}.evidence-icon{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:10px;background:#dce8ef;color:#285d91;font-size:24px;font-weight:800}.evidence-folder .evidence-icon{background:#f8e7be;color:#936714}.evidence-website .evidence-icon{background:#d7eee4;color:#176b57}.evidence-info{flex:1;min-width:0}.evidence-info strong{font-size:15px}.evidence .preview{color:var(--green)}.accordion-toggle .count{font-weight:500;font-size:12px}.indicator-body .add>summary{display:inline-block;padding:10px 15px;box-shadow:var(--shadow);border-radius:12px}.indicator-body .add[open]>summary{box-shadow:var(--inset)}
@media(max-width:650px){main{padding:18px 14px}.aspect-list{gap:14px}.accordion-toggle{gap:9px;padding:12px 10px}.aspect-toggle{font-size:16px}.letter{flex-basis:32px;height:32px;font-size:16px}.aspect-body{padding:13px 0 3px 9px}.section-body{padding:12px 0 3px 8px}.indicator-body{padding:10px 0 3px 5px}.section-toggle{font-size:14px}.indicator-toggle{font-size:13px}.accordion-toggle .count{font-size:10px;white-space:normal;text-align:right;max-width:66px}.evidence{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:start}.evidence .actions{grid-column:2;justify-content:flex-start}.evidence-info strong{font-size:14px}.stats>div{padding:12px}.stats strong{font-size:22px}}
@media(prefers-reduced-motion:reduce){.accordion-toggle,.chevron,button,.button{transition:none}}

/* R3: five horizontal shortcuts on desktop and mobile. */
.aspect-tabs{grid-template-columns:repeat(5,minmax(0,1fr));gap:15px;margin:5px 0 22px}.aspect-tab{min-width:0;min-height:46px;font-size:16px}.aspect-tab.selected{box-shadow:var(--inset);color:var(--green);font-weight:800}.aspect{scroll-margin-top:16px}@media(max-width:650px){.aspect-tabs{gap:8px}.aspect-tab{padding:9px 4px;min-height:44px;font-size:15px}}

/* R6: stable shell. The header never scrolls with the content. */
.pkkm-app{height:100vh;height:100dvh;overflow:hidden}.app-shell{display:flex;flex-direction:column;height:100%;padding:0 24px;max-width:1160px}.fixed-head{flex:0 0 auto;background:var(--bg);padding:12px 8px 14px;z-index:2}.fixed-head header{margin:0 0 8px;align-items:center}.fixed-head h1{font-size:clamp(23px,3vw,34px);margin:0;letter-spacing:-.7px}.fixed-head header p{font-size:12px;margin:0}.fixed-head header .small{font-size:11px}.period-form{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) auto;gap:10px;align-items:end;margin:7px 0 12px}.period-form select{padding:8px;min-height:38px}.period-form label{font-size:11px;gap:3px}.period-form button{min-height:38px;padding:7px 12px;font-size:13px}.fixed-head .aspect-tabs{grid-template-columns:1.4fr repeat(5,minmax(0,1fr));margin:0;gap:10px}.fixed-head .aspect-tab{min-height:38px;padding:7px 4px;font-size:14px}.workspace{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;padding:12px 10px 28px;overscroll-behavior-y:contain}.workspace .stats{margin-top:6px}.workspace .stats>div{margin-bottom:12px}.workspace footer{margin-bottom:10px}@media(max-width:650px){.app-shell{padding:0 8px}.fixed-head{padding:8px 4px 9px}.fixed-head header{gap:6px}.fixed-head header .button{font-size:12px;min-height:36px;padding:6px 9px}.fixed-head .aspect-tabs{gap:5px}.fixed-head .aspect-tab{font-size:13px;min-height:36px}.period-form{gap:5px;margin-bottom:9px}.period-form button{padding:6px;font-size:11px}.period-form select{font-size:12px;padding:7px 3px}.workspace{padding:10px 6px 20px}.workspace .stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.workspace .stats>div{padding:9px 5px}.workspace .stats strong{font-size:17px}.workspace .stats span{font-size:10px}}@media(max-height:440px){.fixed-head header p,.fixed-head header .small{display:none}.fixed-head{padding-top:4px;padding-bottom:5px}.period-form{margin:2px 0 6px}.fixed-head header{margin-bottom:2px}.fixed-head h1{font-size:22px}.fixed-head .aspect-tab{min-height:32px}.period-form select,.period-form button{min-height:30px;padding:3px 6px}.period-form label{gap:0}}

/* R9 — compact persistent header; counters are a single slim strip, not large cards. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.fixed-head header{min-height:38px;margin:0 0 8px;gap:8px}.fixed-head h1{font-size:clamp(16px,2.5vw,26px);line-height:1.18;letter-spacing:-.35px;min-width:0}.fixed-head .mode-button{flex-shrink:0;font-size:13px;min-height:36px;padding:6px 12px}.fixed-head .period-form{margin:0 0 8px;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) auto}.fixed-head .period-form label{display:block}.workspace .stats{gap:0;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 12px;border-radius:10px;box-shadow:3px 3px 8px #c4cfd2,-3px -3px 8px #fff}.workspace .stats>div{display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:5px;padding:6px;margin:0;border-radius:0;box-shadow:none;background:transparent;border-right:1px solid #d1dcdd}.workspace .stats>div:last-child{border-right:0}.workspace .stats strong{font-size:15px;line-height:1.3}.workspace .stats span{font-size:11px;line-height:1.3}.workspace .search{margin:0 0 12px}.workspace .search input{padding:8px 12px;min-height:38px;font-size:14px}.back-site{margin-bottom:12px;font-size:13px;min-height:34px}.copy-open{font-size:13px;margin:6px 0 6px 8px;min-height:36px;padding:7px 12px;color:var(--green)}#copydialog{height:auto;max-height:90dvh;width:min(640px,96vw);overflow:auto}#copylist{max-height:38dvh;overflow:auto;border-radius:10px;box-shadow:var(--inset);padding:6px 12px;margin:8px 0;min-height:48px}.copy-row{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:8px;align-items:start;border-bottom:1px solid #cad5d6;padding:8px 0}.copy-row:last-child{border-bottom:0}.copy-row label{display:block;overflow-wrap:anywhere;cursor:pointer}.copy-row input{width:16px;height:16px;accent-color:var(--green);margin-top:3px}.copy-row .muted{display:block;font-size:11px}.copy-row a{font-size:12px;white-space:nowrap}.copy-tools{justify-content:flex-start;margin-top:8px}#copyindicator{overflow-wrap:anywhere}#copyapply{width:100%}
@media(max-width:760px){.app-shell{padding:0 8px}.fixed-head{padding:5px 3px 7px}.fixed-head header{min-height:34px;margin-bottom:5px;align-items:center;gap:6px}.fixed-head h1{font-size:clamp(13px,4vw,18px);letter-spacing:-.25px;white-space:nowrap}.fixed-head .mode-button{font-size:11px;min-height:32px;padding:5px 8px;border-radius:9px}.fixed-head .period-form{gap:6px;margin-bottom:7px;grid-template-columns:minmax(0,1.6fr) minmax(0,.9fr) auto}.fixed-head .period-form select,.fixed-head .period-form button{min-height:34px;padding:5px 8px;font-size:12px;border-radius:9px}.fixed-head .aspect-tabs{gap:6px;grid-template-columns:1.35fr repeat(5,minmax(0,1fr))}.fixed-head .aspect-tab{min-height:34px;font-size:13px;padding:5px 3px;border-radius:9px}.workspace{padding:8px 5px 18px;scrollbar-gutter:auto}.workspace .stats{margin:0 0 8px}.workspace .stats>div{padding:4px 2px;gap:2px;flex-direction:column;align-items:center}.workspace .stats span{font-size:9px}.workspace .stats strong{font-size:13px}.workspace .search{margin-bottom:10px}.workspace .search input{min-height:34px;padding:6px 10px;font-size:13px;border-radius:9px}.aspect-toggle{min-height:46px;font-size:14px;padding:8px 9px}.section-toggle,.indicator-toggle{min-height:42px;padding:8px 10px}.aspect-body,.section-body{gap:8px;padding-top:9px}.letter{flex-basis:27px;height:27px;font-size:14px;border-radius:8px}.accordion-toggle .count{font-size:10px}.copy-open{margin-left:0}.copy-row{grid-template-columns:20px minmax(0,1fr) auto}.copy-tools button{font-size:11px}}
@media(max-width:350px){.fixed-head h1{font-size:12px}.fixed-head .mode-button{font-size:10px;padding:4px 6px}.fixed-head .aspect-tabs{gap:4px}.fixed-head .aspect-tab{font-size:12px}.workspace .stats span{font-size:8px}}
@media(max-height:440px){.fixed-head{padding:2px 4px 5px}.fixed-head header{min-height:28px;margin-bottom:3px}.fixed-head h1{font-size:16px}.fixed-head .period-form{margin-bottom:5px}.fixed-head .period-form select,.fixed-head .period-form button,.fixed-head .aspect-tab{min-height:29px;padding:3px 6px}.fixed-head .mode-button{min-height:28px}.workspace .stats>div{padding:3px}.workspace .search input{min-height:30px}}

/* R10: compact management controls share the fixed aspect navigation. */
.fixed-head .aspect-tabs.with-two-tools{grid-template-columns:1.4fr repeat(5,minmax(0,1fr)) minmax(0,1.35fr) minmax(0,1.35fr)}
.fixed-head .aspect-tabs.with-one-tool{grid-template-columns:1.4fr repeat(5,minmax(0,1fr)) minmax(0,1.35fr)}
.fixed-head .tool-tab{min-width:0;min-height:32px;padding:4px 7px;gap:5px;font-size:12px;white-space:nowrap;color:var(--green);align-self:stretch;border-radius:10px}
.tool-tab svg{width:16px;height:16px;flex-shrink:0;display:block}.tool-icon{display:inline-flex;position:relative}.drive-dot{position:absolute;width:7px;height:7px;border:1px solid var(--bg);border-radius:50%;background:#8a9593;right:-3px;top:-2px}.tool-connected .drive-dot{background:#16835c}.tool-exit{margin:0;display:flex;min-width:0}.tool-exit .tool-tab{width:100%}
.tool-dialog{width:min(520px,calc(100vw - 24px));height:auto;max-height:calc(100dvh - 32px);padding:18px;overflow:auto;border-radius:16px;box-shadow:0 12px 36px #102b2b55;font-size:14px}.tool-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.tool-dialog-head h2{margin:0;font-size:18px}.tool-dialog-head button{min-height:32px;min-width:32px;padding:2px 8px;font-size:20px;line-height:1}.tool-dialog .actions{justify-content:flex-end;margin-top:14px;gap:10px}.tool-dialog .danger{margin-top:0}.tool-dialog label{margin-top:12px}.tool-dialog .tool-drive-body{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.tool-drive-body>div:first-child{flex:1 1 100%}.tool-drive-body p{margin:0}.tool-drive-body .wide{font-size:12px}.tool-dialog button,.tool-dialog .button{font-size:13px;min-height:36px;padding:6px 10px}.tool-dialog-head button{font-size:20px;min-height:32px;padding:2px 8px}.tool-dialog .actions button{min-height:36px}
@media(max-width:650px){.fixed-head .aspect-tabs.with-two-tools,.fixed-head .aspect-tabs.with-one-tool{gap:4px}.fixed-head .aspect-tabs.with-two-tools{grid-template-columns:1.45fr repeat(5,minmax(0,1fr)) repeat(2,minmax(0,1.45fr))}.fixed-head .aspect-tabs.with-one-tool{grid-template-columns:1.45fr repeat(5,minmax(0,1fr)) minmax(0,1.45fr)}.fixed-head .with-two-tools .aspect-tab,.fixed-head .with-one-tool .aspect-tab{font-size:12px;padding:3px 1px;min-height:36px}.fixed-head .with-two-tools .aspect-tab:first-child,.fixed-head .with-one-tool .aspect-tab:first-child{font-size:10px}.fixed-head .tool-tab{flex-direction:column;gap:1px;font-size:10px;line-height:1.1;padding:3px 1px;min-height:36px}.tool-tab svg{width:14px;height:14px}.tool-dialog{padding:14px}.tool-dialog-head h2{font-size:16px}}
@media(max-width:350px){.fixed-head .aspect-tabs.with-two-tools,.fixed-head .aspect-tabs.with-one-tool{gap:3px}.fixed-head .tool-tab{font-size:9px}.fixed-head .with-two-tools .aspect-tab:first-child{font-size:9px}}

/* R11: compact utility dialogs, independent from full-page evidence viewer. */
#access-tools.tool-dialog,#drive-tools.tool-dialog{
  box-sizing:border-box;position:fixed;inset:0;margin:auto;
  height:fit-content;min-height:0;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);
  max-width:calc(100vw - 24px);overflow:auto;overscroll-behavior:contain;
  padding:16px;border-radius:14px;
}
#access-tools.tool-dialog{width:400px}
#drive-tools.tool-dialog{width:330px}
.tool-dialog .tool-dialog-head{margin-bottom:8px;gap:8px}
.tool-dialog .tool-dialog-head h2{font-size:16px;line-height:1.35}
.tool-dialog p{font-size:13px;line-height:1.45;margin:0 0 6px;overflow-wrap:anywhere}
.tool-dialog .actions{margin-top:10px;gap:8px;flex-wrap:wrap}
.tool-dialog .tool-drive-body{gap:8px}
.tool-dialog input{min-width:0;width:100%}
@media(max-width:650px){
  #access-tools.tool-dialog,#drive-tools.tool-dialog{padding:12px;max-width:calc(100vw - 24px)}
  .tool-dialog .actions{justify-content:flex-start}
}

/* R12: enforce compact dimensions regardless of stale external stylesheet. */
html body dialog#access-tools.tool-dialog,html body dialog#drive-tools.tool-dialog{
 position:fixed!important;inset:0!important;margin:auto!important;
 height:fit-content!important;min-height:0!important;max-height:calc(100vh - 32px)!important;max-height:calc(100dvh - 32px)!important;
 max-width:calc(100vw - 24px)!important;box-sizing:border-box!important;overflow:auto!important;
 padding:14px!important;border-radius:14px!important;
}
html body dialog#access-tools.tool-dialog{width:390px!important}
html body dialog#drive-tools.tool-dialog{width:320px!important}
#access-tools .tool-dialog-head,#drive-tools .tool-dialog-head{margin-bottom:8px}
#access-tools p,#drive-tools p{font-size:13px;line-height:1.45;margin:0 0 6px;overflow-wrap:anywhere}
