dialog:has(.owner-notice) {
 width: min(580px, calc(100vw - 28px));
}
.owner-notice-heading {
 display: flex;
 gap: 12px;
 align-items: flex-start;
 padding-right: 42px;
 margin-bottom: 14px;
}
.owner-notice-heading .mg-brand {
 width: 36px;
 height: 36px;
 flex: 0 0 36px;
}
.owner-notice-heading h2 {
 margin: 0;
 font-size: clamp(20px, 4vw, 26px);
 line-height: 1.2;
}
.owner-notice-heading p {
 margin: 4px 0 0;
 font-size: 14px;
 color: #58654c;
}
.owner-notice-options {
 border-block: 1px solid #dce2d3;
 padding-block: 4px;
}
.mg-compact .owner-notice-switch {
 position: relative;
 display: grid;
 grid-template-columns: minmax(0, 1fr) 44px;
 gap: 12px;
 align-items: center;
 min-height: 44px;
 padding: 6px 0;
 font-size: 16px;
 cursor: pointer;
}
.owner-notice-switch > input[type=checkbox] {
 position: absolute;
 inset: 0;
 width: 100% !important;
 height: 100% !important;
 opacity: 0;
 cursor: pointer;
}
.owner-notice-track {
 width: 44px;
 height: 25px;
 border-radius: 20px;
 background: #727b6b;
 pointer-events: none;
}
.owner-notice-track::before {
 content: "";
 display: block;
 width: 19px;
 height: 19px;
 margin: 3px;
 border-radius: 50%;
 background: white;
}
.owner-notice-switch > input:checked + .owner-notice-track { background: #526e3c; }
.owner-notice-switch > input:checked + .owner-notice-track::before { transform: translateX(19px); }
.owner-notice-switch > input:focus-visible + .owner-notice-track {
 outline: 3px solid #78984c;
 outline-offset: 3px;
}
.owner-notice-actions, .owner-notice-test {
 display: flex;
 align-items: center;
 gap: 8px 12px;
 margin-top: 12px;
}
.owner-notice-actions { justify-content: space-between; }
.owner-notice button, .owner-notice a.btn { min-height: 44px; }
.owner-notice button.ghost { padding-inline: 0; }
.owner-notice .owner-notice-result {
 margin: 0;
 color: #58654c;
 font-size: 14px;
 line-height: 1.4;
}
.owner-notice .owner-notice-result:empty { display: none; }
.owner-notice a + .owner-notice-result { margin-top: 10px; }
.owner-notice-result[data-state=sent] { color: #38612d; }
.owner-notice-result:is([data-state=failed],[data-state=unknown],[data-state=no_channel]) { color: #754d24; }
.owner-notice .owner-notice-code {
 font-size: 24px;
 font-weight: 700;
 letter-spacing: .1em;
 margin-block: 12px;
 font-variant-numeric: tabular-nums;
}
.owner-notice-error {
 margin-top: 12px;
 padding: 8px 12px;
 border-radius: 8px;
 color: #843825;
 background: #fff1e9;
}
.owner-notice-error button { display: block; }
@media (max-width: 500px) {
 .owner-notice-actions, .owner-notice-test { flex-direction: column; align-items: stretch; }
 .owner-notice-actions button[type=submit] { order: -1; }
 .owner-notice .owner-notice-result { text-align: center; }
}
