.manual-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line, #333);
  font-size: 13px;
  color: var(--muted, #aaa);
}
.manual-toolbar > div {
  display: flex;
  gap: 8px;
}
.manual-toolbar button,
.manual-detail button,
.manual-sheet button {
  min-height: 42px;
  border-radius: 10px;
  padding: 9px 14px;
  border: 1px solid #3a3a3a;
  background: #252525;
  color: #eee;
  font: inherit;
  cursor: pointer;
}
.manual-detail .bm3-primary,
.manual-sheet .bm3-primary {
  background: #f58220;
  border-color: #f58220;
  color: #111;
  font-weight: 650;
}
.manual-detail button:disabled {
  opacity: 0.5;
  cursor: default;
}
.manual-head {
  padding: 18px 20px;
}
.manual-detail {
  padding: 0 20px 24px;
  overflow: auto;
}
.manual-section {
  padding: 18px 0;
  border-bottom: 1px solid #303030;
}
.manual-section h4 {
  font-size: 14px;
  margin: 0 0 12px;
}
.manual-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.manual-section dl {
  margin: 0;
  font-size: 13px;
}
.manual-section dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}
.manual-section dt {
  color: #aaa;
}
.manual-section dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.manual-instructions {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.5;
}
.manual-file {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  padding: 12px 0;
  color: #ddd;
  text-decoration: none;
  border-bottom: 1px solid #2a2a2a;
}
.manual-file small {
  grid-column: 1;
  color: #aaa;
  font-size: 11px;
}
.manual-file > span:last-child {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  font-size: 22px;
  color: #f58220;
}
.manual-file > span:first-child {
  overflow-wrap: anywhere;
}
.manual-upload {
  display: block;
  position: relative;
  margin: 12px 0;
  padding: 14px;
  border: 1px dashed #555;
  border-radius: 12px;
  color: #f9a45a;
  font-size: 14px;
  cursor: pointer;
}
.manual-upload input {
  display: block;
  width: 100%;
  margin-top: 10px;
  font-size: 13px;
}
.manual-upload small {
  display: block;
  font-size: 11px;
  color: #aaa;
  margin-top: 8px;
}
.manual-detail label,
.manual-sheet label {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  margin: 14px 0;
}
.manual-detail textarea,
.manual-sheet input,
.manual-sheet textarea,
.manual-sheet select {
  box-sizing: border-box;
  display: block;
  width: 100%;
  border: 1px solid #444;
  border-radius: 10px;
  background: #161616;
  color: #eee;
  font: inherit;
  font-size: 16px;
  padding: 12px;
  margin-top: 6px;
}
.manual-sheet input[readonly] {
  font-size: 12px;
}
.manual-sheet {
  width: min(520px, calc(100% - 32px));
  max-height: 85dvh;
  padding: 0;
  border: 1px solid #383838;
  border-radius: 20px;
  background: #1c1c1e;
  color: #eee;
  box-shadow: 0 24px 90px #0008;
}
.manual-sheet::backdrop {
  background: #0008;
  backdrop-filter: blur(3px);
}
.manual-sheet header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #333;
}
.manual-sheet h2 {
  margin: 0;
  font-size: 18px;
}
.manual-sheet .manual-cancel {
  border: 0;
  background: transparent;
  color: #f99b4d;
  padding: 8px;
}
.manual-sheet-body {
  padding: 0 20px 24px;
  overflow: auto;
}
.manual-muted {
  color: #aaa;
  font-size: 13px;
  line-height: 1.5;
}
.manual-error,
#manual-status {
  padding: 12px;
  border-radius: 10px;
  background: #392618;
  color: #ffc08a;
  font-size: 13px;
}
.manual-feedback {
  border-left: 3px solid #f58220;
  padding-left: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.manual-review-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.manual-detail details {
  padding: 12px 0;
}
.manual-detail summary {
  font-size: 13px;
  cursor: pointer;
}
.manual-review-email {
  background: #111;
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
}
.manual-review-email pre {
  white-space: pre-wrap;
  font: inherit;
  line-height: 1.5;
}
.manual-account-list section {
  padding: 16px 0;
  border-bottom: 1px solid #333;
}
.manual-account-list strong small {
  display: block;
  color: #aaa;
  font-weight: 400;
  margin-top: 5px;
}
.manual-alert {
  display: block;
  width: 100%;
  text-align: left;
  margin: 10px 0;
}
.manual-alert small {
  display: block;
  font-size: 11px;
  color: #aaa;
  margin-top: 6px;
}
.manual-handle {
  display: none;
}
@media (max-width: 700px) {
  .manual-toolbar {
    padding: 8px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .manual-toolbar > span {
    display: none;
  }
  .manual-toolbar > div {
    width: 100%;
    justify-content: flex-end;
  }
  .manual-toolbar button {
    font-size: 12px;
    min-height: 40px;
    padding: 8px 10px;
  }
  .manual-head {
    padding: 16px;
  }
  .manual-detail {
    padding: 0 16px max(24px, env(safe-area-inset-bottom));
  }
  .manual-sheet {
    position: fixed;
    inset: auto 0 0;
    margin: 0;
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    border: 0;
    border-top: 1px solid #444;
    border-radius: 24px 24px 0 0;
    animation: manual-rise 0.22s ease-out;
  }
  .manual-handle {
    display: block;
    width: 36px;
    height: 5px;
    background: #666;
    border-radius: 8px;
    margin: 9px auto 0;
  }
  .manual-sheet header {
    padding: 12px 18px;
  }
  .manual-sheet-body {
    padding: 0 18px max(24px, env(safe-area-inset-bottom));
  }
  .manual-sheet form > button {
    width: 100%;
  }
  .manual-detail .manual-section > button {
    margin: 6px 4px 0 0;
  }
  .manual-review-actions > button {
    flex: 1;
  }
  .manual-section dd {
    max-width: 72%;
  }
  .manual-sheet input,
  .manual-sheet textarea {
    font-size: 16px;
  }
  @keyframes manual-rise {
    from {
      transform: translateY(40px);
      opacity: 0.5;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .manual-sheet {
    animation: none;
  }
}

.manual-sheet header {
  position: sticky;
  top: 0;
  background: #1c1c1e;
  z-index: 1;
}
.manual-current-review {
  border-bottom-color: #815127;
}
.manual-section > button {
  margin: 6px 6px 0 0;
}
