.mr-section { margin: 0 0 32px; padding: clamp(16px,3vw,28px); border: 1px solid #c8d6cf; border-radius: 24px; background: #f6f9f5; color: #1c3830; }
.mr-heading, .mr-toolbar, .mr-card-top, .mr-actions, .mr-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mr-heading h2 { margin: 4px 0 8px; font-size: clamp(1.35rem,3vw,1.9rem); }
.mr-heading p, .mr-subheading p { margin: 6px 0; max-width: 65ch; }
.mr-toolbar { margin: 20px 0 8px; padding-top: 16px; border-top: 1px solid #d6e1da; }
.mr-toolbar label { display: flex; gap: 8px; align-items: center; font-size: .85rem; }
.mr-toolbar select { max-width: 240px; min-width: 0; padding: 10px; border: 1px solid #c8d6cf; border-radius: 10px; background: white; color: #1c3830; }
.mr-actions { justify-content: flex-start; }
.mr-grid, .mr-pot-grid, .mr-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.mr-card, .mr-pot { min-width: 0; padding: 20px; background: white; border: 1px solid #d5e1d9; border-radius: 18px; overflow-wrap: anywhere; }
.mr-card h3 { margin: 14px 0 5px; font-size: 1.25rem; }
.mr-kind { color: #315f46; font-size: .8rem; font-weight: 700; }
.mr-badge { background: #fff3d9; color: #73521a; padding: 6px 9px; font-size: .74rem; border-radius: 20px; }
.mr-card dl { margin: 16px 0; display: grid; gap: 9px; }
.mr-card dl div { display: grid; grid-template-columns: 95px 1fr; gap: 10px; font-size: .84rem; }
.mr-card dt, .mr-muted, .mr-footnote { color: #52685d; }
.mr-card dd { margin: 0; }
.mr-muted, .mr-footnote, .mr-notice, .mr-pot small { font-size: .83rem; line-height: 1.55; }
.mr-id { display: block; margin-top: 14px; font-size: .67rem; color: #60766a; overflow-wrap: anywhere; }
.mr-history, .mr-archived { border-top: 1px solid #dde6df; margin-top: 16px; padding-top: 12px; font-size: .85rem; }
.mr-history summary, .mr-archived summary { cursor: pointer; padding: 6px 0; }
.mr-history p { padding: 8px 0; border-bottom: 1px solid #e6ece7; }
.mr-subheading { margin: 26px 0 14px; }
.mr-subheading h3, .mr-pot h4 { margin: 0 0 8px; }
.mr-empty { grid-column: 1/-1; padding: 25px; border: 1px dashed #a8bfaf; border-radius: 16px; }
.mr-footnote { margin: 20px 0 0; }
#module-registry-editor { width: min(760px,calc(100vw - 24px)); max-height: 90dvh; padding: clamp(18px,4vw,32px); border: 1px solid #cbd9ce; border-radius: 22px; color: #1c3830; overflow-y: auto; box-sizing: border-box; }
#module-registry-editor::backdrop { background: #142a2599; }
#module-registry-editor .field { display: grid; margin: 14px 0; min-width: 0; }
#module-registry-editor input:not([type=checkbox]), #module-registry-editor select { width: 100%; min-width: 0; box-sizing: border-box; }
.mr-sensors { margin: 20px 0; border: 1px solid #d5e1d9; border-radius: 12px; display: grid; gap: 12px; padding: 16px; }
.mr-sensors label { display: flex; align-items: center; gap: 10px; font-size: .87rem; }
.mr-editor-footer { padding-top: 16px; border-top: 1px solid #d5e1d9; }
.mr-error { color: #9c2825; font-size: .87rem; min-height: 1.4em; }
.mr-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.mr-choose button { display: grid; gap: 12px; text-align: left; padding: 24px; border: 1px solid #b6caba; border-radius: 16px; background: #f2f7f0; color: #204431; }
.mr-choose strong { font-size: 1.25rem; }
.mr-choose span, .mr-choose small { line-height: 1.5; }
.mr-review { padding: 16px 20px; background: #f2f7f0; margin: 20px 0; border-radius: 16px; overflow-wrap: anywhere; }
.mr-room-entry { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 16px 0; padding: 16px; border: 1px solid #d5e1d9; border-radius: 16px; }
.mr-room-entry small { display: block; color: #52685d; margin-top: 4px; }
@media (max-width: 620px) {
  .mr-grid, .mr-pot-grid, .mr-form-grid, .mr-choose { grid-template-columns: 1fr; }
  .mr-card, .mr-pot { padding: 16px; }
  .mr-heading > .mr-actions { width: 100%; }
  .mr-heading > .mr-actions button { flex: 1; }
  .mr-card dl div { grid-template-columns: 85px 1fr; }
  .mr-editor-footer { align-items: stretch; }
  .mr-editor-footer button { flex: 1; }
}
