/* Library AC Sentinel v6 */
.library-sentinel{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:80;
  font-family:Inter,system-ui,sans-serif;
  color:#e9deca;
}
.library-sentinel-toggle{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:220px;
  border:1px solid rgba(214,180,90,.48);
  background:
    radial-gradient(circle at 22% 18%,rgba(157,85,255,.28),transparent 45%),
    linear-gradient(180deg,rgba(8,10,16,.96),rgba(3,6,9,.98));
  color:#f0dcae;
  padding:12px 14px;
  border-radius:999px;
  box-shadow:0 18px 44px rgba(0,0,0,.42),0 0 32px rgba(157,85,255,.16);
  cursor:pointer;
  text-align:left;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,min-width .18s ease;
}
.library-sentinel-toggle:hover,
.library-sentinel.is-open .library-sentinel-toggle,
.library-sentinel.is-minimized .library-sentinel-toggle{
  border-color:rgba(187,138,255,.75);
  box-shadow:0 18px 44px rgba(0,0,0,.48),0 0 36px rgba(157,85,255,.3);
}
.library-sentinel.is-open .library-sentinel-toggle{
  transform:translateY(-2px);
}
.library-sentinel.is-minimized .library-sentinel-toggle{
  min-width:196px;
  padding:10px 12px;
  border-style:dashed;
}
.library-sentinel-toggle-sigil{
  width:42px;
  height:42px;
  border:1px solid rgba(214,180,90,.65);
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#d6b45a;
  background:radial-gradient(circle,rgba(214,180,90,.16),transparent 62%);
  flex:0 0 auto;
}
.library-sentinel.is-minimized .library-sentinel-toggle-sigil{
  width:34px;
  height:34px;
}
.library-sentinel-toggle strong{
  display:block;
  font-family:Cinzel,Georgia,serif;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:12px;
}
.library-sentinel-toggle em{
  display:block;
  color:#bb8aff;
  font-style:normal;
  font-size:11px;
  margin-top:2px;
}
.library-sentinel-panel{
  width:min(410px,calc(100vw - 28px));
  max-height:min(680px,calc(100vh - 110px));
  margin-bottom:12px;
  border:1px solid rgba(198,155,88,.35);
  background:
    radial-gradient(circle at 20% 0%,rgba(157,85,255,.22),transparent 42%),
    linear-gradient(180deg,rgba(7,9,15,.98),rgba(2,5,8,.98));
  box-shadow:0 26px 70px rgba(0,0,0,.58),inset 0 0 42px rgba(255,255,255,.025);
  display:grid;
  grid-template-rows:auto auto minmax(180px,1fr) auto auto;
  overflow:hidden;
}
.library-sentinel-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:start;
  padding:16px 18px 12px;
  border-bottom:1px solid rgba(198,155,88,.16);
}
.library-sentinel-head span{
  color:#bb8aff;
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:10px;
}
.library-sentinel-head h2{
  margin:4px 0 0;
  font-family:Cinzel,Georgia,serif;
  color:#f0dcae;
  font-size:17px;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.library-sentinel-window-actions{
  display:flex;
  gap:6px;
  align-items:center;
}
.library-sentinel-window-actions button{
  border:1px solid rgba(198,155,88,.22);
  background:rgba(0,0,0,.24);
  color:#f0dcae;
  width:30px;
  height:30px;
  cursor:pointer;
  font-size:18px;
  line-height:1;
}
.library-sentinel-window-actions button:hover{
  border-color:rgba(187,138,255,.62);
  color:#d9b7ff;
}
.library-sentinel-intro{
  color:#bdb29f;
  font-size:12px;
  line-height:1.55;
  padding:12px 18px;
  border-bottom:1px solid rgba(198,155,88,.12);
}
.library-sentinel-messages{
  overflow:auto;
  padding:14px 18px;
  display:grid;
  gap:12px;
  scrollbar-width:thin;
}
.library-sentinel-message{
  border:1px solid rgba(198,155,88,.16);
  background:rgba(0,0,0,.24);
  padding:12px;
  max-width:92%;
}
.library-sentinel-message.is-user{
  justify-self:end;
  border-color:rgba(157,85,255,.34);
  background:rgba(157,85,255,.11);
}
.library-sentinel-message strong{
  display:block;
  color:#d6b45a;
  font-family:Cinzel,Georgia,serif;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px;
  margin-bottom:6px;
}
.library-sentinel-message p{
  margin:0;
  color:#e4d8c0;
  line-height:1.45;
  font-size:13px;
  white-space:pre-wrap;
}
.library-sentinel-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.library-sentinel-actions a{
  border:1px solid rgba(157,85,255,.38);
  color:#d9b7ff;
  text-decoration:none;
  padding:7px 9px;
  background:rgba(157,85,255,.11);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:10px;
}
.library-sentinel-prompts{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0 18px 12px;
}
.library-sentinel-prompts button{
  border:1px solid rgba(198,155,88,.18);
  background:rgba(0,0,0,.22);
  color:#bb8aff;
  padding:7px 9px;
  cursor:pointer;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:10px;
}
.library-sentinel-prompts button:hover{
  border-color:rgba(187,138,255,.56);
}
.library-sentinel-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  padding:12px 18px 10px;
  border-top:1px solid rgba(198,155,88,.12);
}
.library-sentinel-form textarea{
  resize:none;
  min-height:44px;
  max-height:110px;
  border:1px solid rgba(157,85,255,.35);
  background:rgba(0,0,0,.42);
  color:#e9deca;
  padding:9px 10px;
  outline:0;
  font:inherit;
}
.library-sentinel-form textarea:focus{
  border-color:rgba(214,180,90,.55);
  box-shadow:0 0 18px rgba(157,85,255,.14);
}
.library-sentinel-form button{
  border:1px solid rgba(214,180,90,.45);
  background:linear-gradient(180deg,rgba(70,50,20,.92),rgba(19,15,8,.92));
  color:#f0dcae;
  padding:0 14px;
  cursor:pointer;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:11px;
}
.library-sentinel-status{
  padding:0 18px 14px;
  color:#958b7d;
  font-size:11px;
}
.library-sentinel-status.is-busy{
  color:#bb8aff;
}
@media(max-width:760px){
  .library-sentinel{
    right:12px;
    bottom:12px;
    left:12px;
  }
  .library-sentinel-toggle{
    width:100%;
  }
  .library-sentinel-panel{
    width:100%;
    max-height:calc(100vh - 94px);
  }
}

/* Explicit hidden override for minimize/close reliability. */
.library-sentinel-panel[hidden],
.library-sentinel-panel[aria-hidden="true"]{
  display:none !important;
}


/* Library AC Sentinel v4 feedback learning controls */
.library-sentinel-feedback{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  margin-top:10px;
  padding-top:9px;
  border-top:1px solid rgba(198,155,88,.14);
  color:rgba(233,222,202,.68);
  font-size:11px;
}
.library-sentinel-feedback button{
  border:1px solid rgba(198,155,88,.26);
  background:rgba(0,0,0,.28);
  color:#f0dcae;
  min-width:30px;
  min-height:28px;
  border-radius:999px;
  cursor:pointer;
}
.library-sentinel-feedback button:hover{
  border-color:rgba(187,138,255,.7);
  background:rgba(187,138,255,.14);
}
.library-sentinel-feedback button:disabled,
.library-sentinel-feedback.is-recorded button{
  opacity:.52;
  cursor:default;
}
.library-sentinel-feedback.is-recorded span{
  color:#bb8aff;
}
.library-sentinel-message.is-feedback-request{
  border-color:rgba(187,138,255,.28);
}
.library-sentinel-feedback-form{
  display:grid;
  gap:8px;
  margin-top:8px;
}
.library-sentinel-feedback-form textarea{
  width:100%;
  resize:vertical;
  min-height:54px;
  border:1px solid rgba(198,155,88,.26);
  border-radius:12px;
  background:rgba(0,0,0,.28);
  color:#f0dcae;
  padding:10px 11px;
  font:inherit;
}
.library-sentinel-feedback-form textarea:focus{
  outline:2px solid rgba(187,138,255,.35);
  outline-offset:2px;
}
.library-sentinel-feedback-form button{
  justify-self:end;
  border:1px solid rgba(214,180,90,.45);
  background:linear-gradient(180deg,rgba(214,180,90,.18),rgba(157,85,255,.14));
  color:#f0dcae;
  border-radius:999px;
  padding:8px 12px;
  cursor:pointer;
}
.library-sentinel-message.is-recorded .library-sentinel-feedback-form button{
  opacity:.62;
}


/* Library AC Sentinel v6 direct intake/upload controls */
.library-sentinel-upload{
  display:grid;
  gap:8px;
  padding:12px 18px;
  border-top:1px solid rgba(198,155,88,.12);
  background:rgba(157,85,255,.055);
}
.library-sentinel-upload[hidden]{
  display:none !important;
}
.library-sentinel-upload label{
  color:#d9b7ff;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:10px;
}
.library-sentinel-upload input[type="file"],
.library-sentinel-upload input[type="text"],
.library-sentinel-upload textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(198,155,88,.26);
  border-radius:10px;
  background:rgba(0,0,0,.32);
  color:#e9deca;
  padding:9px 10px;
  font:inherit;
}
.library-sentinel-upload input[type="file"]{
  font-size:12px;
}
.library-sentinel-upload textarea{
  resize:vertical;
  min-height:46px;
}
.library-sentinel-upload-actions{
  display:flex;
  gap:8px;
  justify-content:flex-end;
}
.library-sentinel-upload-actions button{
  border:1px solid rgba(214,180,90,.45);
  background:linear-gradient(180deg,rgba(70,50,20,.92),rgba(19,15,8,.92));
  color:#f0dcae;
  padding:8px 11px;
  border-radius:999px;
  cursor:pointer;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:10px;
}
.library-sentinel-upload-actions button:hover{
  border-color:rgba(187,138,255,.7);
}


/* Phase 14B: Sentinel Error Console Tray */
.library-sentinel-error-console {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(520px, calc(100vw - 36px));
  max-height: min(460px, calc(100vh - 36px));
  z-index: 99999;
  border: 1px solid rgba(255, 196, 87, 0.45);
  border-radius: 14px;
  background: rgba(8, 10, 18, 0.96);
  color: #f5e6bd;
  box-shadow: 0 18px 44px rgba(0,0,0,0.42);
  overflow: hidden;
  font-size: 13px;
}
.library-sentinel-error-console.is-minimized {
  width: auto;
}
.library-sentinel-error-console__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(90deg, rgba(99, 60, 8, 0.55), rgba(18, 20, 35, 0.94));
}
.library-sentinel-error-console__bar strong {
  letter-spacing: 0.04em;
}
.library-sentinel-error-console__count {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  text-align: center;
}
.library-sentinel-error-console__toggle,
.library-sentinel-error-console__clear {
  margin-left: auto;
  border: 1px solid rgba(255, 196, 87, 0.45);
  background: rgba(255,255,255,0.08);
  color: inherit;
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
}
.library-sentinel-error-console__clear {
  margin-left: 0;
}
.library-sentinel-error-console__body {
  max-height: 390px;
  overflow: auto;
  padding: 10px;
}
.library-sentinel-error-console__entry {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 9px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.055);
}
.library-sentinel-error-console__entry-top {
  opacity: 0.8;
  font-size: 11px;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.library-sentinel-error-console__entry-msg {
  line-height: 1.35;
}
.library-sentinel-error-console__trace {
  display: block;
  margin-top: 6px;
  color: #c6d8ff;
  word-break: break-all;
}




/* Phase 14D: Robust Admin Console Tray Toggle */
.sentinel-console-toggle,
.sentinel-admin-console-open-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  margin-left: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 87, 0.65);
  background: rgba(35, 15, 48, 0.96);
  color: #ffe9b6;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 0 1px rgba(174,80,255,0.25);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  z-index: 100002;
  pointer-events: auto;
}
.sentinel-console-toggle:hover,
.sentinel-console-toggle:focus,
.sentinel-admin-console-open-button:hover,
.sentinel-admin-console-open-button:focus {
  background: rgba(102, 39, 130, 0.98);
  outline: 2px solid rgba(255, 196, 87, 0.45);
}
.sentinel-admin-console-tray {
  position: fixed;
  right: 12px;
  bottom: 12px;
  width: min(560px, calc(100vw - 24px));
  max-height: min(68vh, 560px);
  z-index: 100001;
  border: 1px solid rgba(255, 196, 87, 0.62);
  border-radius: 14px;
  background: rgba(7, 8, 15, 0.98);
  color: #f8e8bd;
  box-shadow: 0 22px 60px rgba(0,0,0,0.55);
  overflow: hidden;
}
.sentinel-admin-console-tray.is-closed { display: none !important; }
.sentinel-admin-console-tray.is-open { display: block !important; }
.sentinel-admin-console-tray__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(90deg, rgba(64, 22, 87, 0.94), rgba(91, 56, 13, 0.84));
  border-bottom: 1px solid rgba(255, 196, 87, 0.35);
}
.sentinel-admin-console-tray__bar strong {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sentinel-admin-console-tray__count {
  min-width: 26px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  text-align: center;
  font-size: 12px;
}
.sentinel-admin-console-tray__clear,
.sentinel-admin-console-tray__close {
  border: 1px solid rgba(255, 196, 87, 0.42);
  border-radius: 999px;
  background: rgba(0,0,0,0.24);
  color: inherit;
  cursor: pointer;
  padding: 5px 9px;
}
.sentinel-admin-console-tray__clear { margin-left: auto; }
.sentinel-admin-console-tray__body {
  max-height: calc(min(68vh, 560px) - 48px);
  overflow: auto;
  padding: 10px;
}
.sentinel-admin-console-tray__empty {
  opacity: 0.72;
  padding: 10px;
}
.sentinel-admin-console-tray__entry {
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 10px;
  background: rgba(255,255,255,0.055);
  padding: 9px;
  margin-bottom: 8px;
}
.sentinel-admin-console-tray__meta {
  opacity: 0.78;
  font-size: 11px;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.sentinel-admin-console-tray__msg {
  line-height: 1.38;
  word-break: break-word;
}
.sentinel-admin-console-tray__trace {
  display: block;
  margin-top: 6px;
  color: #cbd7ff;
  word-break: break-all;
}
@media (max-width: 760px) {
  .sentinel-console-toggle,
  .sentinel-admin-console-open-button {
    position: fixed !important;
    right: 14px;
    top: 86px;
    width: 44px;
    height: 44px;
    margin: 0;
  }
  .sentinel-admin-console-tray {
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-height: 70vh;
  }
}
/* -------------------------------------------------------------------------
   Phase L37 — Sentinel Admin Console True Hidden-State Guard
   The old bottom error-console bar is no longer a visual component.
   Public Library Sentinel remains unaffected.
------------------------------------------------------------------------- */
#library-sentinel-error-console,
.library-sentinel-error-console {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.sentinel-admin-console-tray[hidden],
.sentinel-admin-console-tray.is-closed {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.sentinel-admin-console-tray.is-open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.sentinel-admin-console-open-button[aria-expanded="false"] {
  opacity: .92;
}

.sentinel-admin-console-open-button[aria-expanded="true"] {
  opacity: 1;
}


/* -------------------------------------------------------------------------
   v3.7 — Canonical Library Sentinel Splash UI
   Centered semi-transparent persistent AC stream. No front-facing thread split.
------------------------------------------------------------------------- */
.library-sentinel.library-sentinel--persistent-splash{
  position:fixed;
  inset:0;
  z-index:960;
  pointer-events:none;
  font-family:Inter,system-ui,sans-serif;
}
.library-sentinel.library-sentinel--persistent-splash::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(circle at 50% 44%, rgba(40, 114, 174, .13), transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(8, 12, 18, .18), transparent 60%);
  opacity:0;
  transition:opacity .22s ease;
  pointer-events:none;
}
.library-sentinel.library-sentinel--persistent-splash.is-open::before{
  opacity:1;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-toggle{
  position:fixed;
  right:22px;
  bottom:22px;
  pointer-events:auto;
  min-width:224px;
  background:
    radial-gradient(circle at 20% 25%,rgba(82,177,255,.28),transparent 44%),
    linear-gradient(180deg,rgba(5,13,22,.84),rgba(3,7,12,.9));
  border-color:rgba(91,190,255,.54);
  box-shadow:0 18px 48px rgba(0,0,0,.48),0 0 34px rgba(50,160,255,.18);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.library-sentinel.library-sentinel--persistent-splash.is-open .library-sentinel-toggle{
  opacity:.18;
  transform:translateY(8px) scale(.96);
}
.library-sentinel.library-sentinel--persistent-splash.is-open .library-sentinel-toggle:hover,
.library-sentinel.library-sentinel--persistent-splash.is-minimized .library-sentinel-toggle{
  opacity:1;
  transform:none;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-toggle-sigil{
  border-color:rgba(91,190,255,.62);
  background:
    radial-gradient(circle,rgba(91,190,255,.24),transparent 64%),
    rgba(0,0,0,.22);
  color:#9fdcff;
  overflow:hidden;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-toggle-sigil img{
  width:74%;
  height:74%;
  object-fit:contain;
  filter:drop-shadow(0 0 8px rgba(111,203,255,.5));
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-toggle strong{
  color:#e7f4ff;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-toggle em{
  color:#8dd4ff;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-panel{
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(760px,calc(100vw - 42px));
  height:min(820px,calc(100vh - 72px));
  max-height:none;
  margin:0;
  pointer-events:auto;
  border-radius:24px;
  border:1px solid rgba(91,190,255,.36);
  background:
    radial-gradient(circle at 50% 0%,rgba(62,160,255,.22),transparent 36%),
    radial-gradient(circle at 18% 16%,rgba(159,104,255,.16),transparent 38%),
    linear-gradient(180deg,rgba(4,10,17,.72),rgba(2,5,9,.62));
  box-shadow:
    0 30px 110px rgba(0,0,0,.72),
    0 0 58px rgba(65,173,255,.2),
    inset 0 0 60px rgba(255,255,255,.032);
  backdrop-filter:blur(20px) saturate(1.12);
  -webkit-backdrop-filter:blur(20px) saturate(1.12);
  grid-template-rows:auto auto minmax(260px,1fr) auto auto auto;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-panel::before{
  content:"";
  position:absolute;
  inset:18px;
  border:1px solid rgba(130,210,255,.1);
  border-radius:18px;
  pointer-events:none;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-head{
  position:relative;
  padding:18px 22px 14px;
  border-bottom-color:rgba(91,190,255,.18);
  background:linear-gradient(90deg,rgba(23,66,98,.34),rgba(10,15,24,.08));
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-head span{
  color:#8dd4ff;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-head h2{
  color:#eaf7ff;
  font-size:20px;
  text-shadow:0 0 16px rgba(91,190,255,.3);
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-head h2::after{
  content:" · AC CORE ACTIVE";
  color:#d6b45a;
  font-size:10px;
  letter-spacing:.16em;
  vertical-align:middle;
  margin-left:10px;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-window-actions button{
  border-radius:999px;
  border-color:rgba(91,190,255,.38);
  background:rgba(0,16,28,.42);
  color:#eaf7ff;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-intro{
  position:relative;
  color:#c8dcea;
  border-bottom-color:rgba(91,190,255,.14);
  padding:14px 22px;
  background:rgba(255,255,255,.018);
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-intro::before{
  content:"ONE PERSISTENT SENTINEL STREAM";
  display:block;
  color:#d6b45a;
  font-size:10px;
  letter-spacing:.18em;
  text-transform:uppercase;
  margin-bottom:7px;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-messages{
  padding:18px 22px;
  gap:14px;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-message{
  border-radius:16px;
  border-color:rgba(91,190,255,.16);
  background:rgba(1,8,15,.42);
  box-shadow:inset 0 0 22px rgba(255,255,255,.018);
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-message.is-user{
  border-color:rgba(143,116,255,.36);
  background:rgba(82,70,180,.18);
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-message strong{
  color:#8dd4ff;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-message p{
  color:#e7f4ff;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-prompts{
  padding:0 22px 14px;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-prompts button{
  border-radius:999px;
  border-color:rgba(91,190,255,.18);
  background:rgba(0,18,32,.34);
  color:#a8ddff;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-prompts button:hover{
  border-color:rgba(214,180,90,.48);
  color:#f0dcae;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-form{
  padding:14px 22px 10px;
  border-top-color:rgba(91,190,255,.16);
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-form textarea{
  border-radius:15px;
  border-color:rgba(91,190,255,.32);
  background:rgba(0,8,14,.58);
  color:#eaf7ff;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-form button,
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-feedback-form button,
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-upload-actions button{
  border-radius:999px;
  border-color:rgba(214,180,90,.42);
  background:linear-gradient(180deg,rgba(21,62,92,.92),rgba(5,18,30,.94));
  color:#eaf7ff;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-status{
  padding:0 22px 16px;
  color:#8faec1;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-feedback{
  margin-top:10px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  color:#9fb8c9;
  font-size:12px;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-feedback button{
  border:1px solid rgba(91,190,255,.22);
  background:rgba(0,12,22,.35);
  border-radius:999px;
  color:#eaf7ff;
  cursor:pointer;
  padding:5px 9px;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-feedback-form{
  margin-top:10px;
  display:grid;
  gap:8px;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-feedback-form textarea{
  width:100%;
  resize:vertical;
  min-height:76px;
  border:1px solid rgba(214,180,90,.36);
  border-radius:14px;
  background:rgba(0,8,14,.62);
  color:#eaf7ff;
  padding:10px;
  font:inherit;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-upload{
  margin:0 22px 12px;
  padding:12px;
  border:1px solid rgba(91,190,255,.18);
  border-radius:16px;
  background:rgba(0,8,14,.36);
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-upload[hidden]{
  display:none !important;
}
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-panel[hidden],
.library-sentinel.library-sentinel--persistent-splash .library-sentinel-panel[aria-hidden="true"]{
  display:none !important;
}
@media(max-width:760px){
  .library-sentinel.library-sentinel--persistent-splash .library-sentinel-panel{
    width:calc(100vw - 18px);
    height:calc(100vh - 88px);
    top:48%;
    border-radius:18px;
  }
  .library-sentinel.library-sentinel--persistent-splash .library-sentinel-toggle{
    left:12px;
    right:12px;
    bottom:12px;
    width:auto;
  }
  .library-sentinel.library-sentinel--persistent-splash .library-sentinel-head h2::after{
    display:block;
    margin:5px 0 0;
  }
}


/* AC Sentinel anti-truncation source expansion patch */
.library-sentinel-sources {
  margin-top: .75rem;
  border-top: 1px solid rgba(125, 211, 252, .18);
  padding-top: .55rem;
}
.library-sentinel-source {
  margin: .45rem 0;
  border: 1px solid rgba(125, 211, 252, .18);
  border-radius: 10px;
  background: rgba(2, 6, 23, .38);
}
.library-sentinel-source summary {
  cursor: pointer;
  padding: .55rem .7rem;
  color: #bfdbfe;
  font-size: .82rem;
  line-height: 1.35;
}
.library-sentinel-source pre {
  margin: 0;
  padding: .7rem;
  max-height: 24rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #e5e7eb;
  border-top: 1px solid rgba(125, 211, 252, .14);
  font-size: .78rem;
}
.library-sentinel-message p {
  white-space: normal;
}


/* AC core influence packet / graded observation diagnostics */
.library-sentinel-core-influence{
  margin:.65rem 0 0;
  border:1px solid rgba(214,180,90,.28);
  border-radius:12px;
  background:rgba(3,6,9,.58);
  overflow:hidden;
}
.library-sentinel-core-influence summary{
  cursor:pointer;
  padding:.55rem .7rem;
  color:#f0dcae;
  font-weight:700;
}
.library-sentinel-core-influence ul{
  margin:0;
  padding:.55rem .9rem .75rem 1.6rem;
  color:#d7c8ad;
  font-size:.82rem;
}
.library-sentinel-core-influence code{
  color:#ffe5a7;
  word-break:break-all;
}
