/* Homepage guided evidence intake.
   One open, native disclosure at a time; all draft fields and the method
   selection remain in the document, with no API, admission or storage changes.
   Loaded last to follow existing compact/layout/icon rules. */
#app .intake-workbench--open .intake-source-panel {
  gap:0;
}
#app .intake-workbench--open .intake-source-panel > details.intake-stage {
  box-sizing:border-box;
  display:block;
  width:100%;
  margin:0;
  padding:0;
  border:0;
  border-bottom:1px solid #3F474A;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  min-width:0;
}
/* Avoid a bracket around the full three-step sequence.
   Keep only the two separators between adjacent steps. */
#app .intake-workbench--open .intake-source-panel > details.intake-stage:first-child {
  border-top:0;
}
#app .intake-workbench--open .intake-source-panel > details.intake-stage:last-child {
  border-bottom:0;
}
#app .intake-workbench--open .intake-source-panel > details.intake-stage > summary {
  box-sizing:border-box;
  display:flex;
  align-items:center;
  width:100%;
  min-height:68px;
  gap:11px;
  margin:0;
  padding:12px 3px 12px 0;
  list-style:none;
  cursor:pointer;
  color:#EEEDE8;
  background:transparent;
  border:0;
  text-align:left;
}
#app .intake-workbench--open .intake-source-panel > details.intake-stage > summary::-webkit-details-marker {
  display:none;
}
#app .intake-workbench--open .intake-source-panel > details.intake-stage > summary::marker {
  content:"";
}
#app .intake-workbench--open .intake-stage-number {
  box-sizing:border-box;
  display:grid;
  place-items:center;
  flex:0 0 28px;
  width:28px;
  height:28px;
  border:1px solid #657074;
  border-radius:50%;
  color:#BAC3C4;
  background:transparent;
  font-size:12px;
  font-weight:700;
  line-height:1;
}
#app .intake-workbench--open .intake-stage[open] > summary .intake-stage-number {
  background:#D7E45B;
  border-color:#D7E45B;
  color:#1C1E21;
}
#app .intake-workbench--open .intake-stage-heading {
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  min-width:0;
  gap:3px;
}
#app .intake-workbench--open .intake-stage-heading > strong {
  font-size:14px;
  font-weight:650;
  line-height:1.3;
  color:#EEEDE8;
}
#app .intake-workbench--open .intake-stage-description {
  display:block;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:11px;
  line-height:1.45;
  font-weight:450;
  color:#A9B3B5;
}
#app .intake-workbench--open .intake-stage-caret {
  flex:0 0 8px;
  width:8px;
  height:8px;
  margin-right:7px;
  border-right:1.75px solid #AFB9BA;
  border-bottom:1.75px solid #AFB9BA;
  transform:rotate(45deg);
  transition:transform .15s ease;
}
#app .intake-workbench--open .intake-stage[open] .intake-stage-caret {
  transform:rotate(225deg);
}
#app .intake-workbench--open .intake-stage > summary:hover .intake-stage-heading > strong {
  color:#D7E45B;
}
/* Keyboard focus stays visible on the number, not a citron outline
   surrounding the entire expanded 'Add screens' heading. */
#app .intake-workbench--open .intake-stage > summary:focus-visible {
  outline:none;
}
#app .intake-workbench--open .intake-stage > summary:focus-visible .intake-stage-number {
  outline:2px solid #D7E45B;
  outline-offset:3px;
}
#app .intake-workbench--open .intake-stage-body {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  min-width:0;
  gap:10px;
  padding:4px 0 19px 39px;
}
#app .intake-workbench--open .intake-stage-body > .row[role="group"] {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:15px;
  margin:0 0 1px;
}
#app .intake-workbench--open .intake-stage-body > .row[role="group"] button.intake-kind {
  min-height:44px;
  padding:9px 2px 10px;
  font-size:12px;
}
#app .intake-workbench--open .intake-stage-body > .drop {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto auto;
  align-items:center;
  gap:4px 10px;
  box-sizing:border-box;
  min-width:0;
  min-height:85px;
  width:100%;
  margin:0;
  padding:12px 13px;
  border-radius:10px;
  text-align:left;
}
#app .intake-workbench--open .intake-stage-body > .drop strong {
  grid-column:1;
  grid-row:1;
  min-width:0;
  font-size:13px;
  line-height:1.4;
}
#app .intake-workbench--open .intake-stage-body > .drop > p.fine {
  grid-column:1;
  grid-row:2;
  margin:0;
  font-size:10.5px;
  line-height:1.5;
}
#app .intake-workbench--open .intake-stage-body > .drop > .upload-choice {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  grid-column:2;
  grid-row:1 / 3;
  min-height:44px;
  padding:8px 11px;
  margin:0;
  box-sizing:border-box;
  gap:7px;
  white-space:nowrap;
}
#app .intake-workbench--open .intake-stage-body > .drop #intake-files {
  position:absolute;
  width:1px;
  height:1px;
  min-height:0;
  padding:0;
  opacity:0;
}
#app .intake-workbench--open .intake-stage-body > .step-list {
  display:grid;
  gap:6px;
  margin:0;
  min-width:0;
}
#app .intake-workbench--open .intake-stage-body > .field {
  min-width:0;
  margin:0;
}
#app .intake-workbench--open .intake-stage-body > .field label {
  display:flex;
  align-items:flex-start;
  gap:8px;
  line-height:1.45;
  margin-bottom:8px;
}
#app .intake-workbench--open .intake-stage-body > .field textarea {
  box-sizing:border-box;
  display:block;
  width:100%;
  max-width:100%;
  min-height:84px;
  padding:10px 12px;
  font-size:14px;
  line-height:1.5;
}
#app .intake-workbench--open .intake-stage-body > .field input {
  box-sizing:border-box;
  display:block;
  width:100%;
  min-height:44px;
  padding:10px 12px;
  font-size:14px;
}
#app .intake-workbench--open .intake-stage-body > details {
  width:100%;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
}
#app .intake-workbench--open .intake-stage-body > details > summary {
  box-sizing:border-box;
  display:list-item;
  width:fit-content;
  min-height:44px;
  padding:11px 0;
  cursor:pointer;
  font-size:12px;
  line-height:1.5;
  color:#C7D0D1;
}
#app .intake-workbench--open .intake-stage-body > details[open] .field {
  min-width:0;
  margin:8px 0 12px;
}
#app .intake-workbench--open .intake-stage-next {
  display:inline-flex;
  width:fit-content;
  min-width:0;
  min-height:44px;
  align-items:center;
  justify-content:flex-start;
  padding:10px 0;
  margin:1px 0 0;
  border:0;
  background:transparent;
  color:#D7E45B;
  -webkit-text-fill-color:#D7E45B;
  font-size:12px;
  font-weight:650;
  line-height:1.4;
  text-align:left;
  cursor:pointer;
}
#app .intake-workbench--open .intake-stage-next:hover {
  text-decoration:underline;
  text-underline-offset:4px;
}
#app .intake-workbench--open .intake-stage-next:focus-visible {
  outline:2px solid #D7E45B;
  outline-offset:3px;
}
#app .intake-workbench--open .intake-stage-body button.intake-example {
  margin:0;
  min-height:44px;
  padding:10px 0;
  align-self:flex-start;
}
#app .intake-workbench--open > .row .fine {
  max-width:44ch;
}
@media(max-width:920px) {
  #app .intake-workbench--open .intake-source-panel {
    max-width:680px;
  }
}
@media(max-width:600px) {
  #app .intake-workbench--open .intake-source-panel > details.intake-stage > summary {
    min-height:66px;
  }
  #app .intake-workbench--open .intake-stage-body {
    padding:2px 0 16px 0;
  }
  #app .intake-workbench--open .intake-stage-body > .drop {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto auto;
    min-height:0;
    padding:13px 14px;
    gap:5px;
  }
  #app .intake-workbench--open .intake-stage-body > .drop strong {
    grid-column:1;
    grid-row:1;
  }
  #app .intake-workbench--open .intake-stage-body > .drop > p.fine {
    grid-column:1;
    grid-row:2;
  }
  #app .intake-workbench--open .intake-stage-body > .drop > .upload-choice {
    grid-column:1;
    grid-row:3;
    width:fit-content;
    margin-top:5px;
  }
  #app .intake-workbench--open .intake-stage-body > .row[role="group"] {
    gap:14px;
  }
  #app .intake-workbench--open > .row .fine {
    text-align:left;
  }
}
@media(prefers-reduced-motion:reduce) {
  #app .intake-workbench--open .intake-stage-caret {transition:none;}
}
