.basket-page{max-width:1100px;margin:0 auto;padding:24px;color:#203b32;font:16px/1.5 system-ui,sans-serif}.basket-heading,.basket-actions{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}.basket-actions{justify-content:flex-start;margin-top:16px}.basket-heading h1{font-size:1.7rem;margin:0}.basket-card{background:#fff;border:1px solid #cedbd3;border-radius:14px;padding:22px;margin:20px 0}.basket-card h2{font-size:1.2rem;margin:0 0 12px}.basket-button,.basket-page .basket-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#20533e;border:1px solid #20533e;border-radius:9px;color:white;font:600 15px/1.3 system-ui;padding:11px 16px;text-decoration:none;min-height:44px;cursor:pointer}.basket-button.secondary{background:#edf3ef;color:#244e3a;border-color:#b8cbbb}.basket-button:disabled{cursor:wait;opacity:.6}.basket-button:focus-visible,.basket-check input:focus-visible,.basket-page :is(input,textarea,select,summary):focus-visible{outline:3px solid #2872ac;outline-offset:3px}.basket-muted{color:#52685d;font-size:.9rem}.basket-notice{background:#eff5f1;border-left:4px solid #327653;padding:12px 16px}.basket-notice.error{background:#fff3f1;border-color:#b23b31;color:#822c26}.basket-items{display:grid;gap:8px}.basket-item{display:flex;align-items:center;gap:14px;border-bottom:1px solid #e0e8e1;padding:12px 0}.basket-item>a{flex:1;color:#245340;overflow-wrap:anywhere}.basket-item .basket-button{padding:9px 12px}.basket-page form>label{display:block;font-weight:600;margin-top:18px}.basket-page :is(input:not([type=checkbox]),textarea,select){display:block;box-sizing:border-box;width:100%;border:1px solid #9aafa1;border-radius:8px;padding:11px;font:inherit;background:white;color:#183b2a;margin-top:6px}.basket-page textarea{resize:vertical}.basket-check{display:inline-flex;align-items:center;gap:8px;font:500 14px/1.4 system-ui;cursor:pointer;padding:8px 0;color:#245340}.basket-check input[type=checkbox]{appearance:auto;flex:none;min-width:18px;min-height:18px;width:18px!important;height:18px!important;margin:0;accent-color:#20533e}.basket-page form>label.basket-check{display:flex;font-weight:500}.basket-settings-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.basket-page summary{cursor:pointer;font-weight:600;padding:6px}.basket-bar{position:sticky;bottom:10px;z-index:20;background:#f4f8f5;border:1px solid #b8cbbb;border-radius:12px;box-shadow:0 4px 20px #173d2420;padding:12px 18px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:20px auto;max-width:1100px}.basket-bar-status{flex:1;min-width:180px;color:#315140;font:14px/1.4 system-ui}.basket-bar-status.error{color:#a22e25}.basket-bar .basket-button{font-size:14px}.basket-page [hidden],.basket-bar[hidden],.basket-check[hidden]{display:none!important}.basket-page #basket-progress.busy:before{content:'';display:inline-block;width:14px;height:14px;border:2px solid #bad0c0;border-top-color:#20533e;border-radius:50%;vertical-align:middle;margin-right:8px;animation:basket-spin 1s linear infinite}@keyframes basket-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.basket-page #basket-progress.busy:before{animation:none}}@media(max-width:600px){.basket-page{padding:14px}.basket-card{padding:16px}.basket-heading{align-items:flex-start}.basket-settings-grid{grid-template-columns:1fr 1fr}.basket-bar{bottom:0;padding:10px;margin:10px 0}.basket-item{flex-wrap:wrap}.basket-item>a{min-width:60%}.basket-page .basket-actions .basket-button{flex:1}.basket-page h1{font-size:1.4rem}}

.basket-toast{position:fixed;z-index:2147483647;bottom:20px;right:20px;max-width:min(500px,90vw);padding:14px 18px;border:1px solid #b64b41;border-radius:10px;background:#fff2ee;color:#81362e;box-shadow:0 4px 16px #0002}.basket-toast[hidden]{display:none}

/* Preserve the shared primary contrast even when the host themes all links. */
.basket-button:not(.secondary){color:#fff!important}
.basket-bar [hidden]{display:none!important}
.basket-check[data-selected="true"]{color:#164d32;font-weight:650}
.basket-check:has(input:disabled){cursor:wait;opacity:.65}
.basket-retry{font:inherit;font-weight:650;text-decoration:underline;color:inherit;background:transparent;border:0;padding:8px;cursor:pointer;min-height:44px}
.basket-retry:focus-visible{outline:3px solid #2872ac;outline-offset:2px}
.basket-floating{position:fixed;right:18px;left:auto;bottom:12px;max-width:calc(100vw - 36px);margin:0;z-index:45}
body.ged-basket-standalone>main{padding-bottom:110px}
.basket-floating .basket-bar-status:not(.error){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;min-width:0}
.basket-floating:has(.error){max-width:min(620px,calc(100vw - 36px))}
@media(max-width:600px){
  .basket-bar{gap:8px;flex-wrap:nowrap;align-items:stretch;padding:8px;bottom:env(safe-area-inset-bottom,0px)}
  .basket-bar .basket-button{padding:10px 9px;min-width:0;white-space:normal}
  .basket-bar .basket-button.secondary{flex:1}
  .basket-bar-status:not(.error){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;min-width:0}
  .basket-bar:has(.basket-bar-status.error){flex-wrap:wrap}
  .basket-bar-status.error{flex-basis:100%;min-width:0;overflow-wrap:anywhere}
  .basket-floating{right:8px;left:8px;bottom:max(8px,env(safe-area-inset-bottom,0px));max-width:none}
}

/* A single quiet affordance, shared by lists, reference cards and viewers.
   Do not restyle the text acknowledgement checkbox on the basket page. */
.basket-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0!important}
.basket-check.basket-toggle{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;min-width:34px;min-height:34px;padding:0;margin:0;border:1px solid transparent;border-radius:8px;box-sizing:border-box;background:transparent;color:#526d62;vertical-align:middle;cursor:pointer}
.basket-check.basket-toggle input[type=checkbox]{position:absolute;inset:0;display:block;opacity:0;width:100%!important;height:100%!important;min-width:0;min-height:0;margin:0;padding:0;cursor:inherit;z-index:1}
.basket-toggle svg{display:block;flex:none;width:21px;height:21px;pointer-events:none}
.basket-toggle .basket-retained{display:none}
.basket-toggle[data-selected="true"] .basket-add{display:none}
.basket-toggle[data-selected="true"] .basket-retained{display:block}
.basket-check.basket-toggle[data-selected="true"]{color:#17633e;background:#e5f2e9;border-color:#b8d6c1}
.basket-check.basket-toggle:hover{color:#164e36;background:#edf4ef;border-color:#c4d8cb}
.basket-check.basket-toggle:has(input:focus-visible){outline:3px solid #2872ac;outline-offset:2px}
.basket-check.basket-toggle:has(input:disabled){cursor:wait;opacity:.65}
.basket-check.basket-inline{margin-inline-start:8px}
p:has(>.basket-inline):not(:has(>.basket-inline~.basket-inline)){position:relative;min-height:34px;padding-inline-end:44px;overflow-wrap:anywhere}
p:has(>.basket-inline):not(:has(>.basket-inline~.basket-inline))>.basket-inline{position:absolute;inset-inline-end:0;top:0;margin:0}
.basket-document-line{display:flex;flex-direction:row;align-items:flex-start;gap:10px;min-width:0}
.basket-document-line>:first-child{flex:1;min-width:0;margin-block:0;overflow-wrap:anywhere}
.basket-document-line>.basket-toggle{margin-inline-start:auto}
.basket-document-line>.result-heading{flex-direction:column;gap:5px}
.document-card:has(>.basket-toggle){flex-wrap:nowrap}
.document-card:has(>.basket-toggle)>div{flex:1;min-width:0}
.result-top>.basket-toggle{margin-inline-start:auto}
.ged-recent-documents li:has(>.basket-toggle){flex-direction:row;flex-wrap:wrap}
.ged-recent-documents li:has(>.basket-toggle)>span{flex:1;min-width:0}
.ged-recent-documents li:has(>.basket-toggle)>.basket-toggle{margin-inline-start:auto;float:none}
.gdv-tools>.basket-toggle{margin-inline-start:4px}
/* The workspace already has its permanent basket entry. No second banner
   covers results inside an embedded page. Keep bulk addition available. */
.basket-bar.basket-embedded{position:static;display:flex;justify-content:flex-end;background:none;border:0;box-shadow:none;padding:0;margin:12px 0;max-width:none;min-height:0}
.basket-embedded .basket-button.secondary{background:transparent;border-color:transparent;color:#365e49;font-size:13px;padding:6px 9px}
.basket-embedded .basket-button.secondary:hover{background:#edf4ef;border-color:#c4d8cb}
.basket-floating{padding:6px;gap:6px;border-radius:10px}
.basket-floating .basket-button{font-size:13px;padding:8px 11px}
@media(max-width:600px),(pointer:coarse){
  .basket-check.basket-toggle{width:44px;height:44px;min-width:44px;min-height:44px;flex-basis:44px}
  p:has(>.basket-inline):not(:has(>.basket-inline~.basket-inline)){min-height:44px;padding-inline-end:52px}
  .basket-document-line{gap:8px}
  .basket-embedded .basket-button.secondary{flex:none}
  .basket-floating{left:auto;max-width:calc(100vw - 16px)}
  .basket-floating .basket-button{padding:8px;font-size:12px}
}
@media(forced-colors:active){.basket-check.basket-toggle{border-color:ButtonText}.basket-check.basket-toggle[data-selected="true"]{border:2px solid Highlight}}

.basket-button[aria-disabled=true]{opacity:.5;cursor:default}

/* The original workspace places its permanent basket before the mode button
   in the dark heading, including when the simplified interface is active. */
.workspace .header-links>.basket-global{flex:none;min-height:44px;padding:9px 16px;border:1px solid #286148;border-radius:9px;background:#20533e;color:#fff!important;white-space:nowrap;box-shadow:none}
.workspace .header-links>.basket-global:hover,.workspace .header-links>.basket-global:focus-visible{background:#28704f;color:#fff!important}
@media(max-width:680px){.workspace .header-links>.basket-global{padding:8px 10px;font-size:13px}}
