.capture-photo-count { display: none }
.capture-article-value {
  grid-column: 1 / -1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-weight: 600; font-size: 13px;
}
.attachment-strip { border-color: #cbd9f6; align-items: center }
.attachment-strip[hidden] { display: none }
.attachment-strip-body { flex: 1; min-width: 0 }
.attachment-strip-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px }
.attachment-strip-count { color: var(--muted); font-size: 11px }
.attachment-folder-link, .attachment-disk {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  color: var(--blue); text-decoration: none; font-weight: 600;
}
.attachment-folder-link { margin-left: auto; font-size: 12px; min-height: 32px }
.attachment-folder-link .icon, .attachment-disk .icon { width: 15px; height: 15px }
.attachment-briefs {
  display: grid; gap: 6px; margin-top: 8px;
}
.attachment-brief {
  display: flex; align-items: center; gap: 8px; text-align: left; padding: 5px 8px;
  min-width: 0; min-height: 47px; border: 1px solid var(--line); border-radius: 8px;
  background: #f9fbff; color: var(--ink); text-decoration: none; font: inherit;
}
.attachment-briefs .attachment-brief:hover { border-color: #aec5f5 }
.attachment-type {
  display: inline-grid; place-items: center; flex: none; width: 35px; height: 35px;
  background: var(--blue-soft); color: var(--blue); border: 1px solid #cfddfa;
  border-radius: 7px; font-size: 9px; font-weight: 700;
}
.attachment-type.pdf { background: #fff1ec; color: #8d4838; border-color: #f1dbd2 }
.attachment-type.archive { background: #f2eefb; color: #604c93; border-color: #e5dcf4 }
.attachment-brief-text { display: grid; gap: 2px; flex: 1; min-width: 0 }
.attachment-brief-text strong, .attachment-brief-text small {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.attachment-brief-text strong { font-size: 12px; font-weight: 650 }
.attachment-brief-text small { font-size: 10px; color: var(--muted) }
.attachment-file-controls { display: flex; align-items: center; gap: 6px; flex: none }
.attachment-action {
  display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0;
  background: #fff; border: 1px solid #cbd9f6; border-radius: 7px;
  color: var(--blue); text-decoration: none; cursor: pointer;
}
.attachment-action:hover { background: var(--blue-soft); border-color: #aec5f5 }
.attachment-action:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px }
.attachment-action:disabled { opacity: .55; cursor: wait }
.attachment-action .icon { width: 17px; height: 17px }
.attachment-action.attachment-delete { color: var(--red); border-color: #e8cbcc }
.attachment-action.attachment-delete:hover { background: #fff0f1 }
.attachment-confirm { width: min(420px, calc(100vw - 28px)) }
.attachment-confirm .dialog-body h2 { margin-bottom: 0; font-size: 19px }
#attachment-delete-message { overflow-wrap: anywhere }
.attachment-confirm-actions { display: flex; justify-content: flex-end; gap: 8px }
.attachment-confirm-actions .button { min-height: 44px }
.attachment-confirm-actions .attachment-delete-submit {
  color: var(--white); background: var(--red); border-color: var(--red);
}
.attachment-pick { color: var(--blue); background: var(--blue-soft); border: 1px solid #cbd9f6 }
.attachment-indicator-host { max-width: 1120px; margin: auto; text-align: right }
#attachment-indicator {
  margin: 0 0 8px; padding: 6px 12px; border: 1px solid #cbd9f6; border-radius: 7px;
  background: var(--blue-soft); color: var(--blue); font: inherit; font-size: 12px; font-weight: 600;
}
.attachment-dialog { width: min(660px, calc(100vw - 28px)); padding: 0; max-height: 88dvh; overflow: hidden }
.attachment-dialog[open] { display: flex; flex-direction: column }
.attachment-dialog-heading {
  flex: none; display: flex; align-items: flex-start; justify-content: space-between;
  padding: 17px 19px 12px; border-bottom: 1px solid var(--line);
}
.attachment-dialog-heading h2 { font-size: 20px }
.attachment-dialog-heading span { color: var(--muted); font-size: 12px }
.attachment-dialog-list {
  flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 12px 17px 16px;
  display: grid; gap: 8px; align-content: start;
}
.attachment-share-feedback { margin: 0; padding: 9px 17px; color: var(--blue); font-size: 12px; background: var(--blue-soft) }
.attachment-share-feedback:empty { display: none }
.attachment-share-feedback.error { color: #8d4838; background: #fff1ec }
.attachment-file-row {
  display: flex; align-items: center; min-width: 0; gap: 10px; padding: 8px 10px;
  min-height: 61px; background: #f9fbff; border: 1px solid var(--line); border-radius: 9px;
}
.attachment-file-row .attachment-type { width: 39px; height: 39px }
.attachment-file-info { display: grid; gap: 3px; flex: 1; min-width: 0 }
.attachment-file-info strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.attachment-file-status { font-size: 11px; color: var(--muted); overflow-wrap: anywhere }
.attachment-file-info progress { width: 100%; height: 6px; accent-color: var(--blue) }
.attachment-file-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0 }
.attachment-resume { color: var(--blue); font-size: 11px; max-width: 90px }
.attachment-dialog-actions {
  flex: none; padding: 12px 17px 16px; border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; align-items: center; gap: 9px; flex-wrap: wrap;
}
.attachment-add { display: inline-flex; align-items: center; justify-content: center; gap: 7px }
.attachment-add .icon { width: 16px; height: 16px }
.attachment-limit { font-size: 11px; color: var(--muted); text-align: center }
.attachment-note { padding: 8px 2px; color: var(--muted); font-size: 13px }
.attachment-queue-card { justify-self: start; color: var(--blue); font-size: 11px; min-height: 26px; padding: 0 }
@media(min-width: 901px) {
  .attachment-strip { min-height: 120px }
  .attachment-strip.attachment-empty-strip { min-height: 0 }
  .attachment-empty-spacer { display: none; aspect-ratio: 1 }
  .capture-strips:has(> .compact-capture-strip:is([data-kind="article"],[data-kind="inspection"]) .capture-item)
    .attachment-empty-spacer { display: block }
  .attachment-strip:has(.attachment-pick) .attachment-folder-link { margin-left: 0 }
}
@media(max-width: 1150px) {
  .attachment-indicator-host { margin: 0 16px }
}
@media(max-width: 900px) {
  .capture-strips { gap: 9px }
  .capture-strip {
    --capture-thumbnail-size: 32px;
    padding: 8px 9px; gap: 8px; min-height: 63px; align-items: center;
  }
  .capture-strip .capture-body, .attachment-strip-body {
    min-width: 0; display: grid; grid-template-columns: minmax(67px, 41%) minmax(0, 1fr);
    align-items: center; gap: 6px;
  }
  .capture-strip .capture-label, .attachment-strip-heading { display: grid; gap: 0; align-content: center }
  .capture-strip .capture-label .capture-open, .attachment-strip-heading .capture-open {
    min-height: 24px; padding: 0;
  }
  .capture-strip .capture-open strong { font-size: 15px }
  .capture-photo-count { display: block; color: var(--muted); font-size: 11px }
  .capture-strip .capture-article, .capture-strip .capture-empty, .attachment-folder-link { display: none }
  .capture-strip .capture-thumbs, .attachment-briefs {
    display: flex; min-height: 0; margin: 0; gap: 4px; align-items: center;
  }
  .capture-strip .capture-item, .capture-strip .capture-thumbnail,
  .capture-strip.codes-strip .capture-placeholder, .capture-strip .capture-overflow {
    width: var(--capture-thumbnail-size); height: var(--capture-thumbnail-size); min-width: 0;
  }
  .capture-strip .capture-overflow { font-size: 11px }
  .capture-strip .capture-camera { width: 44px; min-width: 44px; height: 44px; min-height: 44px; align-self: center }
  .capture-strip .capture-camera .icon { width: 19px; height: 19px }
  .attachment-strip .capture-camera { color: var(--blue); background: var(--blue-soft) }
  .attachment-brief {
    display: block; min-height: 0; padding: 0; background: transparent; border: 0;
    flex: 0 0 var(--capture-thumbnail-size);
  }
  .attachment-brief .attachment-type { width: var(--capture-thumbnail-size); height: var(--capture-thumbnail-size) }
  .attachment-brief-text { display: none }
  .attachment-dialog {
    position: fixed; inset: auto 0 0; width: 100%; max-width: none; margin: 0;
    max-height: 88dvh; border-radius: 18px 18px 0 0;
  }
  .attachment-dialog-heading { padding-top: 19px }
  .attachment-dialog-heading::before {
    content: ""; position: absolute; width: 34px; height: 4px; left: calc(50% - 17px);
    top: 7px; background: #dce4ee; border-radius: 3px;
  }
  .attachment-dialog-actions {
    display: grid; grid-template-columns: 1fr; gap: 7px;
    padding-bottom: max(15px, env(safe-area-inset-bottom));
  }
  .attachment-dialog-actions .button { min-height: 44px }
  .attachment-file-row.is-ready {
    display: grid; grid-template-columns: 39px minmax(0, 1fr);
    column-gap: 10px; row-gap: 5px;
  }
  .attachment-file-row.is-ready .attachment-file-controls { grid-column: 2; justify-self: end }
  .attachment-action { width: 44px; height: 44px }
  .attachment-action .icon { width: 19px; height: 19px }
}
@media(max-width: 392px) {
  .capture-strip { --capture-thumbnail-size: 28px }
  .capture-strip .capture-body, .attachment-strip-body { grid-template-columns: minmax(63px, 35%) minmax(0, 1fr) }
}
@media(max-width: 345px) {
  .capture-strip { --capture-thumbnail-size: 24px }
  .capture-strip .capture-thumbs, .attachment-briefs { gap: 3px }
}
