.bwr-panel { margin-top: 18px; padding: 18px; border: 1px solid #dfe7e4; border-radius: 12px; background: #fbfcfc; color: #263632; min-width: 0; }
.bwr-panel *, .bwr-dialog *, .bwr-image-dialog * { box-sizing: border-box; }
.bwr-panel [hidden], .bwr-dialog [hidden], .bwr-image-dialog [hidden] { display: none !important; }
.bwr-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.bwr-heading h3 { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 750; color: #1b3028; }
.bwr-heading p { margin: 5px 0 0; color: #6b7772; font-size: 12px; line-height: 1.6; }
.bwr-panel button, .bwr-dialog button, .bwr-image-dialog button, .bwr-image-dialog a, .bwr-dialog input, .bwr-dialog select, .bwr-dialog textarea { font: inherit; }
.bwr-edit-button { flex: 0 0 auto; padding: 8px 12px; border: 1px solid #c6d7cc; border-radius: 6px; background: #fff; color: #35694e; font-size: 12px !important; line-height: 1.6; font-weight: 650 !important; cursor: pointer; }
.bwr-edit-button:hover { border-color: #6e9a7f; background: #f4f8f5; }
.bwr-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.bwr-field > span { font-size: 12px; line-height: 1.5; font-weight: 650; color: #46554e; }
.bwr-field input, .bwr-field select, .bwr-field textarea { width: 100%; max-width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid #d6e0da; border-radius: 7px; background: #fff; color: #263632; font-size: 13px; line-height: 1.5; }
.bwr-field select { text-overflow: ellipsis; }
.bwr-field textarea { resize: vertical; }
.bwr-panel :focus-visible, .bwr-dialog :focus-visible, .bwr-image-dialog :focus-visible { outline: 2px solid #458369; outline-offset: 2px; }
.bwr-image-button, .bwr-save-button { flex: 0 0 auto; padding: 9px 13px; border: 1px solid #32694f; border-radius: 6px; background: #32694f; color: #fff; font-size: 12px !important; line-height: 1.6; font-weight: 650 !important; cursor: pointer; }
.bwr-image-button:hover, .bwr-save-button:hover { background: #28583f; }
.bwr-panel button:disabled, .bwr-dialog button:disabled { opacity: .5; cursor: default; }
.bwr-table-wrap { min-width: 0; border: 1px solid #e2e8e4; border-radius: 7px; overflow: hidden; background: #fff; }
.bwr-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 11px; line-height: 1.6; }
.bwr-table th, .bwr-table td { padding: 9px 10px; text-align: left; border-bottom: 1px solid #e9eeeb; overflow-wrap: anywhere; vertical-align: top; }
.bwr-table th { color: #68796f; background: #f1f5f2; font-weight: 650; }
.bwr-table thead th:nth-child(1) { width: 36%; }.bwr-table thead th:nth-child(2) { width: 42%; }.bwr-table thead th:nth-child(3) { width: 22%; }
.bwr-table .bwr-group-row th { padding: 8px 10px; color: #526c5c; background: #f5f8f5; font-size: 10px; font-weight: 750; letter-spacing: .3px; }
.bwr-table td:last-child { color: #314c3e; font-weight: 650; white-space: nowrap; }
.bwr-table tr:last-child td { border-bottom: 0; }
.bwr-note { margin: 10px 0 0; color: #7d8781; font-size: 10px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.bwr-image-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 15px; }
.bwr-image-actions p { margin: 0; color: #89938c; font-size: 10px; line-height: 1.7; }
.bwr-image-status { margin: 9px 0 0; color: #50705b; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.bwr-sync { margin: 10px 0 0; font-size: 10px; line-height: 1.6; color: #89928c; overflow-wrap: anywhere; }
.bwr-panel .is-error, .bwr-dialog .is-error { color: #a04b3e; }
.bwr-dialog { width: min(920px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: min(90vh, 900px); max-height: min(90dvh, 900px); margin: auto; padding: 0; border: 1px solid #dce4de; border-radius: 13px; background: #fff; color: #263632; box-shadow: 0 20px 90px #162f272e; }
.bwr-dialog[open] { display: flex; flex-direction: column; }
.bwr-dialog::backdrop { background: #16282066; }
.bwr-dialog-header { flex: 0 0 auto; display: flex; justify-content: space-between; gap: 15px; padding: 22px 24px 18px; border-bottom: 1px solid #e6ece8; }
.bwr-dialog-header h2 { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 750; }
.bwr-dialog-header p { margin: 5px 0 0; color: #77847b; font-size: 12px; line-height: 1.6; }
.bwr-close { flex: 0 0 30px; align-self: flex-start; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 5px; background: #f3f6f4; color: #627168; font-size: 24px !important; line-height: 1; cursor: pointer; }
.bwr-dialog-content { min-height: 0; min-width: 0; overflow-y: auto; padding: 16px 24px 22px; }
.bwr-editor-hint { margin: 0 0 15px; color: #748078; font-size: 12px; line-height: 1.75; }
.bwr-editor-rows { display: grid; gap: 12px; }
.bwr-editor-row { padding: 13px 14px 15px; border: 1px solid #e2e9e4; border-radius: 8px; background: #fbfcfb; }
.bwr-editor-row-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.bwr-editor-row-top strong { font-size: 11px; color: #819086; font-weight: 650; }
.bwr-delete { padding: 0; border: 0; background: transparent; color: #986b61; font-size: 11px !important; cursor: pointer; }
.bwr-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 2fr) minmax(0, .8fr); gap: 10px; }
.bwr-editor-grid .bwr-field input, .bwr-editor-grid .bwr-field select { padding: 8px 9px; font-size: 12px; }
.bwr-add-button { width: 100%; margin-top: 12px; padding: 11px 10px; border: 1px dashed #b8cabe; border-radius: 7px; background: #fff; color: #4c715a; font-size: 12px !important; cursor: pointer; }
.bwr-note-field { margin-top: 22px; }.bwr-password-field { max-width: 310px; margin-top: 18px; }
.bwr-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: 0 0 auto; padding: 15px 24px; border-top: 1px solid #e6ece8; background: #fbfcfb; }
.bwr-dialog-footer > p { margin: 0; min-width: 0; font-size: 11px; line-height: 1.7; color: #637c6a; overflow-wrap: anywhere; }
.bwr-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
.bwr-secondary-button { padding: 9px 10px; border: 1px solid #d0dcd4; border-radius: 6px; background: #fff; color: #576b5d; font-size: 11px !important; cursor: pointer; }
.bwr-image-dialog { width: min(920px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: 92vh; max-height: 92dvh; margin: auto; padding: 0; border: 1px solid #dce4de; border-radius: 12px; background: #fff; color: #263632; box-shadow: 0 20px 90px #162f272e; }
.bwr-image-dialog[open] { display: flex; flex-direction: column; }
.bwr-image-dialog::backdrop { background: #16282066; }
.bwr-image-preview { min-height: 0; padding: 16px; overflow: auto; background: #eef2ef; }
.bwr-image-preview img { display: block; width: 100%; height: auto; border: 1px solid #e0e5e1; background: #fff; user-select: auto; -webkit-touch-callout: default; }
.bwr-image-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; border-top: 1px solid #e6ece8; }
.bwr-image-footer > span { min-width: 0; color: #849087; font-size: 11px; line-height: 1.7; }
.bwr-image-footer a { flex: 0 0 auto; text-decoration: none; line-height: 1.6; }
@media (max-width: 700px) {
  .bwr-editor-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bwr-editor-grid .bwr-field:nth-child(3) { grid-column: 1 / 2; }
  .bwr-dialog-header { padding: 18px 16px 14px; }.bwr-dialog-content { padding: 14px 16px 18px; }.bwr-dialog-footer { padding: 13px 16px; }
  .bwr-dialog-footer { align-items: stretch; flex-direction: column; gap: 9px; }.bwr-dialog-actions { justify-content: flex-end; }
}
@media (max-width: 420px) {
  .bwr-panel { padding: 13px; }.bwr-heading { gap: 8px; }.bwr-heading p { font-size: 11px; }
  .bwr-field input, .bwr-field select { min-height: 42px; font-size: 16px; }
  .bwr-table { font-size: 10px; }.bwr-table th, .bwr-table td { padding: 8px 6px; }.bwr-table td:last-child { white-space: normal; }
  .bwr-dialog, .bwr-image-dialog { width: calc(100vw - 20px); max-width: calc(100vw - 20px); border-radius: 10px; }.bwr-dialog-header h2 { font-size: 16px; }
  .bwr-editor-grid { grid-template-columns: minmax(0, 1fr); }.bwr-editor-row { padding: 11px; }.bwr-editor-grid .bwr-field input, .bwr-editor-grid .bwr-field select { font-size: 16px; }
  .bwr-edit-button { padding: 7px 9px; font-size: 11px !important; }.bwr-image-preview { padding: 7px; }.bwr-image-footer { padding: 11px 13px; }
}
