:root {
  color: #192c2a;
  background: #eff4f2;
  font: 15px/1.5 system-ui, "PingFang SC", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header, main { padding: 24px clamp(16px, 5vw, 72px); }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #13342e; color: #fff; }
header a { color: #c4e1d8; }
.header-button { color: #13342e; background: #fff; }
.header-button:hover { background: #e4f2ee; }
h1, h2 { margin: 0; }
h1 { font-size: 26px; }
h2 { font-size: 19px; }
main { max-width: 1320px; margin: auto; }
.card, dialog { background: #fff; border: 1px solid #cadad3; border-radius: 12px; padding: 20px; margin-bottom: 18px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; margin: 12px 0; }
input, select, textarea, button { font: inherit; color: inherit; border: 1px solid #a4b9b0; border-radius: 6px; padding: 7px 10px; background: #fff; }
button { cursor: pointer; white-space: nowrap; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 2px solid #148063; outline-offset: 2px; }
.primary { background: #13654f; border-color: #13654f; color: #fff; font-weight: 650; }
.section-head, .actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 8px 0; }
th, td { text-align: left; vertical-align: middle; padding: 8px; border-bottom: 1px solid #dde8e3; max-width: 320px; overflow-wrap: anywhere; }
th { color: #415a50; white-space: nowrap; }
td button { margin: 2px; }
dialog { margin: auto; width: min(100% - 24px, 460px); max-height: 90vh; }
dialog::backdrop { background: #193b33a6; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
#notice { background: #dceddf; padding: 10px 14px; border-radius: 6px; }
#notice.error, #dialog-error { background: #fff1e8; color: #8a3315; padding: 10px 14px; border-radius: 6px; }
.model-enable, .model-actions { display: flex; flex-direction: row; align-items: center; gap: 10px; }
#model-config-status { color: #415a50; margin: 10px 0 0; }
#model-config-status.error { color: #8a3315; }

.ops-fields { align-items: end; margin-block: 12px; }
.ops-fields .ops-checkbox { display: flex; align-items: center; gap: 6px; }
.ops-fields .ops-checkbox input { width: auto; }
.ops-wrap, .ops-payload { overflow-wrap: anywhere; }
.ops-payload { max-width: 560px; max-height: 360px; overflow: auto; white-space: pre-wrap; font: inherit; }
