/* Developer pages own their layout; no inherited fixed headers or browser menus. */
.mg-page,.mg-page *,.mg-dialog,.mg-dialog *{box-sizing:border-box}
.mg-page{max-width:1520px;margin:0 auto;padding:34px 28px 72px;color:var(--sd-ink,#17223b);font:14px/1.55 Inter,system-ui,sans-serif}
.mg-page :is(header,footer){position:static!important;inset:auto!important;height:auto!important;min-height:0!important;border:0!important;background:none!important;box-shadow:none!important;padding:0}
.mg-page a,.mg-page button,.mg-dialog a,.mg-dialog button{text-decoration:none!important}
.mg-head{display:flex;justify-content:space-between;align-items:start;gap:24px;margin:0 0 28px}.mg-head>div:first-child{max-width:850px;min-width:0}.mg-head small{color:#2875ed;font-size:11px;letter-spacing:.12em;font-weight:750}.mg-head h1{font-size:30px;line-height:1.25;margin:8px 0 10px;color:var(--sd-ink,#111c35)}.mg-head p{margin:0;color:var(--sd-mut,#657695);line-height:1.7}
.mg-page button{cursor:pointer;font:inherit;color:inherit;border:1px solid var(--sd-line,#dbe4f1);background:var(--sd-card,#fff);border-radius:9px;padding:9px 13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}.mg-page button:hover{background:#edf3ff}.mg-page button:disabled{opacity:.5;cursor:default}.mg-page button.mg-primary{background:#2467ee;border-color:#2467ee;color:#fff}.mg-page button:focus-visible,.mg-dialog button:focus-visible{outline:2px solid #2467ee;outline-offset:3px}.mg-page svg{width:17px;height:17px;flex-shrink:0}.mg-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.mg-head .mg-actions{justify-content:flex-end}
.mg-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:0 0 24px}.mg-stats>div,.mg-card{border:1px solid var(--sd-line,#dce5f3);border-radius:16px;background:var(--sd-card,#fff);box-shadow:0 2px 5px #12234b06}.mg-stats>div{padding:18px 20px}.mg-stats span{display:block;font-size:12px;font-weight:650;color:var(--sd-mut,#657695)}.mg-stats b{display:block;font-size:28px;margin-top:6px}.mg-card{padding:24px;margin:20px 0}.mg-card h2{font-size:18px;margin:0 0 10px}
.mg-search,.mg-filters label{display:grid;gap:7px;font-weight:650}.mg-search{max-width:480px;margin-bottom:22px}.mg-page input,.mg-page select{min-width:0;width:100%;border:1px solid var(--sd-line,#dbe4f1);background:var(--sd-card,#fff);color:inherit;border-radius:9px;font:inherit;padding:10px 12px}.mg-filters{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin:0 0 20px}.mg-filters label{flex:1 1 160px;min-width:130px;max-width:380px}.mg-filters .cc-select{width:100%;justify-content:space-between}.mg-table-wrap+.mg-filters{margin-top:20px}.mg-table-wrap{overflow:auto;border:1px solid var(--sd-line,#e0e7f2);border-radius:12px}.mg-page table,.mg-dialog table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}.mg-page th,.mg-dialog th{padding:13px 14px;background:var(--sd-sunk,#f6f8fd);color:var(--sd-mut,#617291);font-size:11px;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}.mg-page td,.mg-dialog td{padding:16px 14px;border-top:1px solid var(--sd-line,#e7edf6);vertical-align:top;overflow-wrap:anywhere;max-width:410px}.mg-page td small{display:block;color:var(--sd-mut,#697b99);margin-top:5px}.mg-page code,.mg-dialog code{font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere}.mg-page td code,.mg-hooks code,.mg-dialog td code{display:block}.mg-page td .mg-actions{min-width:180px;max-width:260px}.mg-tags{display:flex;flex-wrap:wrap;gap:6px;min-width:150px;max-width:350px}.mg-badge{display:inline-block;padding:4px 8px;background:#eef3fb;color:#425f8b;border-radius:20px;font-size:11px;line-height:1.5;overflow-wrap:anywhere}.mg-ok{background:#e9f8ef;color:#167447}.mg-warn{background:#fff6e6;color:#946200}.mg-bad{background:#ffefed;color:#b42318}.mg-empty{text-align:center;padding:42px 22px;border:1px dashed var(--sd-line,#dce5f3);border-radius:12px;color:var(--sd-mut,#687a98)}.mg-empty svg{width:38px;height:38px;color:#4b82e8;margin-bottom:12px}.mg-empty h2{font-size:18px;color:var(--sd-ink,#17223b)}.mg-empty p{margin:0}.mg-pager{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:22px 0 0}.mg-notice{padding:14px 18px;border-radius:10px;background:#edf4ff;border:1px solid #c4d9ff;margin:16px 0;overflow-wrap:anywhere}.mg-error{background:#fff0ee;border-color:#f4c2bc;color:#b42318}.mg-error-text{color:#b42318!important}.mg-hooks{display:grid;gap:18px}.mg-hooks article{border:1px solid var(--sd-line,#dce5f3);border-radius:12px;padding:22px;display:grid;gap:20px}.mg-hooks code{margin:10px 0;color:var(--sd-mut,#60718f)}.mg-hooks p,.mg-hooks small{color:var(--sd-mut,#60718f)}.mg-hooks .mg-actions{border-top:1px solid var(--sd-line,#e7edf6);padding-top:18px}.mg-help summary{cursor:pointer;font-weight:750}.mg-help p{color:var(--sd-mut,#617291);line-height:1.75;max-width:100ch}.mg-help a{color:#2467ee}.mg-page [hidden],.mg-dialog [hidden]{display:none!important}
.mg-dialog .cc-dialog-content{padding:26px}.mg-dialog .cc-dialog-content>p{line-height:1.7}.mg-dialog .mg-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.mg-dialog label{margin-bottom:20px}.mg-dialog label small,.mg-help-text{font-size:13px;color:var(--sd-mut,#657695);line-height:1.65;font-weight:400}.mg-dialog input{min-width:0}.mg-dialog .cc-actions{padding:22px 4px 4px;margin-top:24px;gap:12px;border-top:1px solid var(--sd-line,#e3eaf5)}.mg-dialog [data-error]{color:#b42318;white-space:pre-line}.mg-permission-intro h3{margin:6px 0}.mg-permission-intro p{margin:0 0 20px;color:var(--sd-mut,#657695)}
.mg-scope-group{border:1px solid var(--sd-line,#dae4f3);border-radius:14px;padding:16px 18px 20px;margin:24px 0;background:var(--sd-card,#fff);min-width:0}.mg-scope-group legend{padding:0 8px;font-size:14px;font-weight:750}.mg-group-actions{display:flex;justify-content:flex-end;margin:0 0 14px}.mg-dialog .mg-group-actions button{font-size:12px;padding:6px 10px}.mg-permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.mg-permission{display:flex;align-items:center;gap:18px;justify-content:space-between;border:1px solid var(--sd-line,#dce5f3);border-radius:11px;padding:18px;background:var(--sd-sunk,#f8faff);min-height:100px}.mg-permission>div{min-width:0}.mg-permission b{display:block;font:650 13px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere}.mg-permission small{display:block;color:var(--sd-mut,#637493);margin-top:6px;font-size:12px;line-height:1.6}.mg-unavailable{display:block;margin-top:8px;color:#946200;font-size:11px}.mg-dialog button.mg-switch{display:block;width:38px;height:22px;min-width:38px;padding:3px;border:0;border-radius:999px;background:#b1bed1;flex:none}.mg-switch span{display:block;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #15254033;transition:transform .15s ease}.mg-dialog button.mg-switch[aria-checked=true]{background:#2467ee}.mg-switch[aria-checked=true] span{transform:translateX(16px)}.mg-switch:disabled{opacity:.5;cursor:not-allowed}.mg-dialog label.mg-event{display:flex;align-items:start;gap:12px;border:1px solid var(--sd-line,#dce5f3);border-radius:11px;padding:18px;margin:0;min-width:0}.mg-event input,.mg-dialog .mg-checkbox input{width:17px;height:17px;flex:none;accent-color:#2467ee;margin-top:3px}.mg-event b{font:650 12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere}.mg-event small{display:block;margin-top:6px}.mg-dialog label.mg-checkbox{display:flex;gap:12px;align-items:start}.mg-secret,.mg-code{padding:20px;border:1px solid #c9d9f3;border-radius:12px;background:#f4f7fd;color:#17223b;font:13px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text}.mg-secret{border-color:#b5dfc8;background:#f1fbf5}.mg-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;max-height:55vh;overflow:auto}.mg-dns-value{min-width:220px;max-width:500px}.mg-details{display:grid;grid-template-columns:130px 1fr;gap:14px}.mg-details dt{color:var(--sd-mut,#637493)}.mg-details dd{margin:0;overflow-wrap:anywhere}
@media(max-width:1100px){.mg-table-wrap table{min-width:700px}.mg-head{flex-wrap:wrap}.mg-stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.mg-page{padding:24px 16px 50px}.mg-card{padding:18px}.mg-permission-grid,.mg-dialog .mg-form-grid{grid-template-columns:1fr}.mg-pager{flex-wrap:wrap}.mg-dialog .cc-dialog-content{padding:18px}.mg-details{grid-template-columns:1fr;gap:6px}.mg-details dd{margin-bottom:12px}}@media(prefers-reduced-motion:reduce){.mg-switch span{transition:none}}
html[data-theme=dark] .mg-secret,html[data-theme=dark] .mg-code{background:#182235;color:#d4deed;border-color:#34425a}html[data-theme=dark] .mg-page button:hover{background:#21314b}

/* Delivery: natural-height headings and readable, independent control rows. */
#senditto-platform-root .mg-head{height:auto!important;min-height:0!important;border:0!important;padding-bottom:0!important;align-items:flex-start!important;gap:24px}
#senditto-platform-root .mg-head>div:first-child{min-width:0;flex:1}
#senditto-platform-root .mg-head p{margin:10px 0 0;max-width:760px;line-height:1.65;position:static}
#senditto-platform-root .mg-head:after,#senditto-platform-root .mg-head:before{display:none!important}
.mg-page .mg-card{margin-block:20px}.mg-card h2{margin:0 0 12px}.mg-card>p{line-height:1.65}
.mg-card-title{display:flex;align-items:center;gap:16px;justify-content:space-between;flex-wrap:wrap}
.mg-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin:20px 0}
.mg-facts>div{padding:16px;background:#f7f9fd;border:1px solid #e1e8f3;border-radius:12px;display:flex;flex-direction:column;gap:8px;overflow-wrap:anywhere}
.mg-page .mg-filters{display:flex;gap:16px;flex-wrap:wrap;align-items:end;margin-bottom:20px}
.mg-page .mg-filters>label{min-width:200px;flex:1}.mg-page .mg-search{margin-bottom:16px}.mg-filters .mg-search{margin-bottom:0}
.mg-dialog .mg-check,.mg-page .mg-check{display:flex;align-items:flex-start;gap:10px;font-weight:500;line-height:1.55;margin-block:16px}
.mg-check input[type=checkbox]{width:17px;height:17px;flex:0 0 17px;margin-top:3px;accent-color:#2563eb}
.mg-dialog .mg-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:20px}
.mg-dialog label{gap:8px}.mg-dialog .mg-fields label{margin:0}.mg-dialog form>label{margin-block:18px}
.mg-dialog fieldset{border:1px solid #dce5f5;padding:18px;border-radius:12px;margin:20px 0}
.mg-dialog legend{padding:0 8px;font-weight:700}.mg-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 24px}
.mg-options .mg-check{margin:6px 0;padding:12px;background:#f7f9fd;border-radius:10px}
.mg-page .mg-help{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px}
.mg-help article{border:1px solid #e1e8f3;border-radius:16px;background:white;padding:24px}
.mg-help article>svg{width:24px;height:24px;color:#2563eb;margin-bottom:12px}.mg-help h2{font-size:16px;margin:0 0 10px}.mg-help p{margin:0;color:#5b6f91;line-height:1.7}
.mg-page .mg-table-wrap code{display:block;overflow-wrap:anywhere;white-space:normal}.mg-page td small{margin-top:7px}.mg-page .mg-table-wrap table{min-width:760px}
.mg-detail{margin:0}.mg-detail>div{display:grid;grid-template-columns:180px 1fr;gap:20px;padding:14px 0;border-bottom:1px solid #e1e8f3}.mg-detail dt{font-weight:700}.mg-detail dd{margin:0;overflow-wrap:anywhere}
.mg-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:18px;background:#f5f8ff;border-radius:12px;line-height:1.7}
.mg-dialog .cc-actions{padding-top:22px;gap:12px}.mg-page a,.mg-dialog a{text-decoration:none!important}
.mg-page [data-notice]:empty{display:none}.mg-page .mg-pager{margin-top:18px;gap:16px}.mg-page button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:800px){.mg-dialog .mg-fields,.mg-page .mg-help{grid-template-columns:1fr}.mg-detail>div{grid-template-columns:1fr;gap:6px}.mg-page .mg-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.mg-dialog .mg-readonly{display:grid;gap:8px;min-width:0;align-content:start}.mg-dialog .mg-readonly>span{font-weight:650}.mg-dialog .mg-readonly>code{display:block;min-height:44px;padding:10px 12px;border:1px solid var(--sd-line,#dbe4f1);border-radius:9px;background:var(--sd-sunk,#f6f8fd);white-space:normal;overflow-wrap:anywhere}

.mg-toggle{display:flex!important;align-items:center;gap:14px;padding:20px 0;border-bottom:1px solid #e2e9f6;cursor:pointer}.mg-toggle span{flex:1}.mg-toggle small{display:block;font-weight:400;margin-top:6px;color:#637393;line-height:1.6}.mg-toggle input{position:absolute;opacity:0;width:1px;height:1px}.mg-toggle i{position:relative;width:36px;height:21px;flex:0 0 36px;background:#b3bfd3;border-radius:12px;transition:background .15s}.mg-toggle i:after{content:"";position:absolute;left:3px;top:3px;width:15px;height:15px;background:white;border-radius:50%;transition:transform .15s}.mg-toggle input:checked+i{background:#2864ed}.mg-toggle input:checked+i:after{transform:translateX(15px)}.mg-toggle input:focus-visible+i{outline:3px solid #90b1ff;outline-offset:3px}.mg-save{padding-top:24px;margin-top:16px;border-top:1px solid #e2e9f6;justify-content:flex-end}.mg-save [data-dirty]{margin-right:auto;color:#637393}.mg-page progress{display:block;width:130px;height:7px;margin:10px 0;accent-color:#2864ed}.mg-file{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0}.mg-dialog textarea{width:100%;box-sizing:border-box;resize:vertical;border:1px solid #dce5f6;border-radius:10px;padding:12px;font:inherit;color:inherit}.mg-dialog details{margin:16px 0}.mg-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere}.mg-page .mg-head{height:auto!important;min-height:0!important;position:static!important;align-items:flex-start!important;border:0!important;padding-bottom:0!important}.mg-page .mg-head>div:first-child{min-width:0;flex:1}.mg-page .mg-head p{position:static!important;line-height:1.6;margin:12px 0 0!important}.mg-page a,.mg-dialog a{text-decoration:none!important}.mg-dialog [data-error]:empty{display:none}

.mg-page .mg-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0 16px}.mg-page .mg-fields label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:650;color:#536584}.mg-page .mg-fields input{margin:0;width:100%;font:14px/1.5 inherit;color:#17223b;padding:11px 12px;border:1px solid #dce5f3;border-radius:10px;background:#fff}.mg-page .mg-fields input:disabled{background:#f5f7fb;color:#7c8ca6}.mg-page .mg-fields+p{font-size:13px;line-height:1.65;color:#637393;margin:0 0 20px}@media(max-width:900px){.mg-page .mg-fields{grid-template-columns:1fr}}
