.src-page {
  display: grid;
  gap: 20px;
  min-width: 0;
  color: #252735;
}
.src-panel {
  min-width: 0;
  padding: clamp(16px, 2.1vw, 28px);
}
.src-section-head, .src-dialog-head, .src-form-foot, .src-block-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.src-section-head { margin-bottom: 18px; }
.src-section-head h2, .src-dialog-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.src-actions, .src-checks, .src-time-row, .src-select-row, .src-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.src-select-row { font-size: 13px; color: #5c6170; }
.src-back, .src-link { width: fit-content; color: #913e36; text-decoration: none; }
.src-link:hover, .src-back:hover { text-decoration: underline; }
.src-back { font-size: 13px; font-weight: 600; }
.src-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.src-table th, .src-table td { text-align: left; padding: 13px 12px; border-bottom: 1px solid #eeeae5; }
.src-table th { color: #696a75; font-size: 12px; white-space: nowrap; background: #f9f8f6; }
.src-table tbody tr:last-child td { border-bottom: 0; }
.src-table td { overflow-wrap: anywhere; }
.src-table td:first-child .src-link { font-weight: 650; }
.src-table small, .src-table td > small { display: block; color: #717280; padding-top: 4px; font-size: 11px; }
.src-table td .src-details { margin: 0; border: 0; padding: 0; }
.src-columns { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.src-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px,100%),1fr)); gap: 20px 24px; margin: 0 0 12px; }
.src-facts dt, .src-help, .src-form small, .src-file-name { color: #646575; font-size: 13px; line-height: 1.65; }
.src-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 14px; }
.src-basis { border-top: 1px solid #ebe7e2; margin-top: 16px; padding-top: 14px; }
.src-basis strong { font-size: 13px; }
.src-basis p { white-space: pre-line; overflow-wrap: anywhere; margin: 5px 0; }
.src-error { color: #992f26; background: #fff1ed; border: 1px solid #f0c7be; border-radius: 9px; padding: 12px 15px; overflow-wrap: anywhere; }
.src-notice { margin: 10px 0; white-space: pre-line; overflow-wrap: anywhere; }
.src-filter { align-items: end; margin-bottom: 18px; gap: 12px; }
.src-filter .src-link { align-self: center; margin-top: 18px; }
.src-field { display: grid; align-content: start; gap: 6px; min-width: 0; font-size: 13px; font-weight: 600; }
.src-field > span { line-height: 1.55; }
.src-filter input, .src-filter select, .src-dialog input:not([type="checkbox"],[type="file"]), .src-dialog textarea, .src-dialog select, .src-select-row select {
  min-width: 0; border: 1px solid #d6d6db; background: #fff; color: #292a36; border-radius: 7px; padding: 8px 10px;
  font: inherit; font-weight: 400; max-width: 100%;
}
.src-filter input, .src-filter select { min-height: 37px; }
.src-field textarea, .src-block-row textarea { width: 100%; resize: vertical; box-sizing: border-box; }
.src-form input[readonly] { background: #f6f5f3; }
.src-time { display: inline-block; font-variant-numeric: tabular-nums; }
.src-times { display: grid; gap: 7px; margin: 0 0 12px; }
.src-dialog {
  box-sizing: border-box; width: min(720px, calc(100vw - 28px)); max-height: min(90dvh, 1024px); overflow: auto;
  padding: clamp(18px, 4vw, 30px); color: #292a36; border: 1px solid #dfd9d4; border-radius: 15px;
  background: #fff; box-shadow: 0 18px 80px #26223829;
}
.src-dialog::backdrop { background: #25253268; }
.src-dialog-head { margin-bottom: 22px; }
.src-dialog > .src-error { margin-bottom: 12px; }
.src-form, .src-block-editor { display: grid; gap: 16px; }
.src-form .form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.src-form fieldset { margin: 0; min-width: 0; padding: 14px; border: 1px solid #ded9d3; border-radius: 9px; }
.src-form legend { padding: 0 5px; font-size: 13px; font-weight: 650; }
.src-form-foot { justify-content: flex-end; padding-top: 6px; }
.src-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.src-check input { width: 16px; height: 16px; accent-color: #b74637; }
.src-details { margin-top: 14px; border-top: 1px solid #ebe7e2; padding-top: 12px; }
.src-details summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.src-json, .src-code { font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace !important; }
.src-json { margin: 10px 0 0; max-height: 450px; overflow: auto; padding: 14px; border-radius: 8px; background: #f7f6f4; white-space: pre-wrap; overflow-wrap: anywhere; }
.src-plus { color: #226348; }
.src-minus { color: #a73832; }
.src-body { width: min(100%,780px); margin: 18px auto 4px; }
.src-body p { margin: 1em 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.85; }
.src-body figure { margin: 20px 0; }
.src-body figure a { display: block; width: fit-content; }
.src-body img { display: block; max-width: 100%; max-height: 65vh; width: auto; height: auto; object-fit: contain; cursor: zoom-in; border-radius: 5px; }
.src-body figcaption { margin-top: 6px; font-size: 12px; color: #666977; }
.src-block-editor { margin-bottom: 12px; gap: 8px; }
.src-block-row { padding: 10px; border-radius: 8px; background: #f7f6f3; }
.src-block-controls { margin-bottom: 7px; }
.src-block-controls strong { font-size: 13px; }
.src-thumb-link img { max-height: 72px; max-width: 100%; object-fit: contain; }
.src-pick-file { position: relative; overflow: hidden; cursor: pointer; }
.src-pick-file input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.src-pick-file:focus-within { outline: 2px solid #a64635; outline-offset: 2px; }
.src-validation:not(:empty) { margin-top: 12px; }
@media (max-width: 900px) {
  .src-columns { grid-template-columns: 1fr; }
  .src-table { min-width: 620px; }
  .src-panel .table-wrap, .src-dialog .table-wrap { overflow: auto; }
}
@media (max-width: 600px) {
  .src-page { gap: 13px; }
  .src-form .form-grid { grid-template-columns: 1fr; }
  .src-dialog { max-height: 92dvh; }
  .src-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .src-filter .src-field { flex: 1 1 136px; }
}
