/* INKLYDT passage tools R12: one compact annotation surface. */
#selectionComposer.hidden,
body.admin-sandbox #selectionComposer.hidden{display:none!important}

#selectionComposer:not(.hidden){
  width:min(360px,calc(100vw - 24px))!important;
  height:auto!important;
  min-height:0!important;
  max-height:calc(100dvh - 96px)!important;
  overflow:auto!important;
  border:1px solid var(--ink-rule-strong,#c4cbbb)!important;
  border-radius:12px!important;
  background:var(--ink-paper,#fbf9f5)!important;
  color:var(--ink-ink,#294336)!important;
  box-shadow:var(--ink-shadow,0 18px 48px rgba(34,52,39,.12))!important;
  backdrop-filter:none!important;
}

#selectionComposer[data-layout^="side-"]{
  box-shadow:0 20px 55px rgba(34,52,39,.14)!important;
}

#selectionComposer header{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:14px!important;
  min-height:0!important;
  padding:16px 18px!important;
  border-bottom:1px solid var(--ink-rule,#d7dacf)!important;
  background:var(--ink-paper-deep,#f4f1e8)!important;
  color:var(--ink-ink,#294336)!important;
}
#selectionComposer header .micro{
  color:#667364!important;
  font:700 9px/1.3 system-ui,sans-serif!important;
  letter-spacing:.1em!important;
}
body #selectionComposer #selectionExcerpt{
  display:block!important;
  max-height:110px!important;
  margin-top:7px!important;
  overflow:auto!important;
  background:transparent!important;
  color:#213e32!important;
  -webkit-text-fill-color:#213e32!important;
  opacity:1!important;
  text-shadow:none!important;
  text-transform:none!important;
  letter-spacing:0!important;
  font:400 15px/1.52 Georgia,"Times New Roman",serif!important;
}
body #selectionComposer #closeComposer{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:58px!important;
  height:34px!important;
  padding:0 11px!important;
  border:1px solid var(--ink-rule-strong,#c4cbbb)!important;
  border-radius:7px!important;
  background:transparent!important;
  color:var(--ink-ink,#294336)!important;
  -webkit-text-fill-color:var(--ink-ink,#294336)!important;
  font:600 11px/1 system-ui,sans-serif!important;
}

#selectionComposer .composer-tabs{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:4px!important;
  margin:10px 12px 0!important;
  padding:4px!important;
  border:0!important;
  border-radius:8px!important;
  background:#e9eddf!important;
}
#selectionComposer .composer-tabs button{
  min-height:34px!important;
  padding:7px 5px!important;
  border:0!important;
  border-radius:6px!important;
  background:transparent!important;
  color:#59705c!important;
  font:600 11px/1.25 system-ui,sans-serif!important;
  letter-spacing:0!important;
  text-transform:none!important;
  cursor:pointer!important;
}
#selectionComposer .composer-tabs button.active{
  background:var(--ink-paper-soft,#fffdf8)!important;
  color:#234d40!important;
  box-shadow:0 1px 3px rgba(37,60,32,.08)!important;
}

#selectionComposer .composer-pane{padding:14px 18px 16px!important}
#selectionComposer .composer-purpose{
  margin:0 0 13px!important;
  color:#697665!important;
  font:12px/1.45 system-ui,sans-serif!important;
}
#selectionComposer label{
  display:block!important;
  color:#3b5547!important;
  font:600 12px/1.45 system-ui,sans-serif!important;
  letter-spacing:0!important;
}
#selectionComposer textarea,
#selectionComposer select{
  box-sizing:border-box!important;
  width:100%!important;
  margin-top:5px!important;
  border:1px solid #cdd5c7!important;
  border-radius:7px!important;
  background:var(--ink-paper-soft,#fffdf8)!important;
  color:#263c31!important;
  font:14px/1.5 system-ui,sans-serif!important;
}
#selectionComposer textarea{
  min-height:104px!important;
  height:104px!important;
  margin-bottom:10px!important;
  padding:11px 12px!important;
  resize:vertical!important;
}
#selectionComposer select{min-height:38px!important;padding:8px 9px!important}
#selectionComposer .form-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-bottom:10px!important}
#selectionComposer .primary{
  width:100%!important;
  min-height:40px!important;
  margin-top:4px!important;
  padding:9px 11px!important;
  border:0!important;
  border-radius:7px!important;
  background:var(--ink-green,#294b3a)!important;
  color:#fffef4!important;
  font:600 12px/1.3 system-ui,sans-serif!important;
  letter-spacing:0!important;
  text-transform:none!important;
  cursor:pointer!important;
}
#selectionComposer .audit-primary{background:var(--ink-audit,#7b443c)!important}
#selectionComposer .composer-status{
  min-height:0!important;
  margin:0!important;
  padding:0 18px!important;
  color:#526c52!important;
  font:12px/1.4 system-ui,sans-serif!important;
  letter-spacing:0!important;
}
#selectionComposer .composer-status:not(:empty){padding-bottom:14px!important}
#selectionComposer button:focus-visible,
#selectionComposer textarea:focus-visible,
#selectionComposer select:focus-visible{
  outline:2px solid var(--ink-brass,#9b854e)!important;
  outline-offset:2px!important;
}

/* Preserve the deliberately minimal reader chrome from R9. */
body .reader-heading-actions #chapterButton,
body .reader-heading-actions #notesButton{display:none!important}
body .reader-controls .control-center>:not(#homeButton){display:none!important}
body .reader-controls .control-center{display:flex!important;justify-content:center!important}
body .reader-controls #homeButton{display:block!important}
body .reader-heading-actions #readingAnnotationLayers{display:flex!important;justify-content:flex-end!important}

@media(max-width:920px){
  #selectionComposer:not(.hidden){
    left:12px!important;
    right:12px!important;
    top:auto!important;
    bottom:max(72px,calc(64px + env(safe-area-inset-bottom)))!important;
    width:auto!important;
    max-height:min(68dvh,640px)!important;
    border-radius:14px 14px 8px 8px!important;
  }
  #selectionComposer .form-row{grid-template-columns:1fr!important}
}
