.mg-shell{display:flex;min-height:100vh;background:#f3f6fa;color:#18304a;font-size:14px}.mg-sidebar{width:240px;flex-shrink:0;background:#172b47;color:#d5dfed;padding:30px 20px;display:flex;flex-direction:column;gap:18px}.mg-sidebar img{width:140px}.mg-sidebar>p{font-size:11px;letter-spacing:2px;color:#8ca5c5;margin:0}.mg-sidebar nav{display:grid;gap:4px}.mg-sidebar button{background:transparent;border:0;color:inherit;text-align:left;padding:10px 12px;border-radius:6px}.mg-sidebar button:hover,.mg-sidebar button[aria-current]{background:#2b4669;color:white}.mg-sidebar small{overflow-wrap:anywhere;margin-top:24px}.mg-main{flex:1;min-width:0;padding:40px}.mg-main>header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.mg-main h1{font-size:30px;margin:6px 0}.mg-main h2{font-size:22px}.mg-main small{color:#6a7e97}.mg-shell button,.mg-shell select,.mg-shell input{min-height:40px}.mg-main button,.mg-dialog button,.mg-media a{background:white;border:1px solid #cdd8e5;padding:9px 15px;border-radius:6px;color:#18304a;font-weight:600}.mg-shell .mg-primary{background:#006bdf;color:white;border-color:#006bdf}.mg-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:20px;margin-bottom:24px}.mg-stats button{text-align:left;padding:25px;border:1px solid #dfe6ef}.mg-stats strong{display:block;font-size:38px;margin-top:16px}.mg-panel{background:white;border:1px solid #dfe6ef;border-radius:10px;padding:28px;margin-bottom:24px}.mg-toolbar,.mg-pagination{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:22px 0}.mg-toolbar input{flex:1;min-width:180px}.mg-shell input,.mg-shell select,.mg-shell textarea{border:1px solid #cbd7e6;border-radius:6px;padding:10px 12px;background:white;color:#18304a;max-width:100%}.mg-table{overflow:auto;border:1px solid #dfe6ef;border-radius:10px;background:white}.mg-table table{border-collapse:collapse;width:100%;min-width:720px}.mg-table th{background:#eaf0f7;text-align:left;padding:16px}.mg-table td{padding:16px;border-bottom:1px solid #e7edf4;max-width:320px;overflow-wrap:anywhere}.mg-table small{display:block;margin-top:5px}.mg-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.mg-actions a{color:#006bdf}.mg-badge{font-size:12px;padding:4px 10px;background:#eef0f4;border-radius:20px;white-space:nowrap}.mg-badge.is-published{background:#e0f4eb;color:#167347}.mg-error,.mg-notice{padding:15px 20px;border-radius:8px;background:#fee9e9;color:#962a2a;overflow-wrap:anywhere}.mg-notice{background:#dff4e9;color:#186743}.mg-empty{text-align:center;padding:40px}.mg-media{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:20px}.mg-media article{background:white;border:1px solid #dce4ef;padding:15px;border-radius:8px;overflow:hidden}.mg-media img,.mg-media>article>strong{height:130px;width:100%;object-fit:contain;background:#f1f4f8;display:grid;place-items:center}.mg-media p{margin:14px 0;overflow-wrap:anywhere}.mg-media button,.mg-media a{display:inline-block;margin:3px;padding:6px 9px;font-size:12px}.mg-overlay{position:fixed;inset:0;background:#10203fb3;z-index:100;display:flex;align-items:center;justify-content:center;padding:24px}.mg-dialog{background:white;border-radius:12px;width:720px;max-width:100%;max-height:90vh;overflow:auto;padding:30px;box-shadow:0 20px 80px #10203f40}.mg-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:25px}.mg-dialog-header h2{font-size:23px;margin:0}.mg-form{display:grid;gap:20px}.mg-form>label{display:grid;gap:8px;font-weight:600}.mg-form textarea{width:100%;resize:vertical}.mg-form .mg-check{display:flex;align-items:center;gap:10px}.mg-check input{width:18px;height:18px;min-height:18px}.mg-form fieldset{border:1px solid #dce4ef;border-radius:8px;display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:20px}.mg-preview{max-height:170px;object-fit:contain}.mg-dialog dd{margin:6px 0 18px;overflow-wrap:anywhere}.mg-dialog dt{font-weight:bold}.mg-panel select{display:block;width:100%;margin:12px 0}.mg-main>header small{letter-spacing:2px;font-size:11px}@media(max-width:900px){.mg-sidebar{width:195px;padding:25px 12px}.mg-main{padding:25px 18px}}@media(max-width:620px){.mg-shell{display:block}.mg-sidebar{width:100%;padding:18px}.mg-sidebar img{width:100px}.mg-sidebar>p,.mg-sidebar>small{display:none}.mg-sidebar nav{display:flex;overflow:auto;padding-bottom:8px}.mg-sidebar nav button{white-space:nowrap}.mg-sidebar>a:not(:first-child),.mg-sidebar>button{align-self:flex-start}.mg-sidebar{gap:8px}.mg-main h1{font-size:24px}.mg-main>header{align-items:flex-start}.mg-dialog{padding:20px;max-height:94vh}.mg-overlay{padding:10px}.mg-form fieldset{grid-template-columns:1fr}.mg-toolbar>*{max-width:100%}}
dialog.mg-dialog{border:0;margin:auto;color:#18304a}dialog.mg-dialog::backdrop{background:#10203fb3}

.mg-languages{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.mg-languages button{min-height:44px;padding:8px 10px;border:1px solid #8ba1bb;border-radius:6px;background:transparent;color:inherit;font-size:13px;cursor:pointer}.mg-languages button[aria-pressed="true"]{background:#006bdf;color:white;border-color:#006bdf}.mg-languages button:focus-visible{outline:3px solid #00cfee;outline-offset:2px}.mg-language-help{font-weight:400;background:#eef5ff;padding:14px;border-radius:6px;margin:0}.mg-dialog{width:min(760px,calc(100vw - 24px))}.mg-shell button:disabled{opacity:.55;cursor:wait}.mg-main>header{flex-wrap:wrap}

fieldset.mg-languages{padding:0;border:0;min-width:0}
.mg-audit-detail{white-space:pre-wrap;overflow-wrap:anywhere;max-width:280px;font-size:12px}.mg-stats>.mg-panel{margin:0;padding:18px}.mg-panel .mg-stats{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.mg-form fieldset>div{min-width:0}
.mg-trends th{white-space:nowrap}.mg-trends th:first-child,.mg-trends td:first-child{min-width:150px}
.mg-form fieldset.mg-position{display:block}.mg-position>p{font-weight:400;line-height:1.6}.mg-map-editor{max-width:340px;background:#243c55;border-radius:8px;touch-action:none;cursor:crosshair}.mg-map-editor .dealer-map-pin{pointer-events:none;min-height:0}.mg-coordinate-fields{display:flex;gap:16px;margin:20px 0}.mg-coordinate-fields label{display:grid;gap:6px;flex:1;min-width:0}.mg-coordinate-fields input{width:100%}

.login-captcha{margin:0;padding:14px;border:1px solid #ccd4df;border-radius:8px;min-width:0}.login-captcha legend{font-weight:700}.login-captcha p{font-size:13px;line-height:1.5;margin:8px 0;color:#475569}.captcha-image-row{display:flex;align-items:center;gap:10px;margin:10px 0}.captcha-image-area{flex:1;min-width:0;min-height:80px;display:flex;align-items:center;background:#f6f6f6;border-radius:4px;overflow:hidden}.captcha-image-area img{width:240px;height:80px;max-width:100%;object-fit:contain}.captcha-refresh{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;min-height:44px;cursor:pointer;background:white;color:#172337;border:1px solid #ccd4df;border-radius:4px}.login-captcha label{display:block}.login-captcha input{display:block;width:100%;padding:12px;border:1px solid #ccd4df;border-radius:6px;letter-spacing:.18em}.login-captcha .form-error{color:#a31919}

.report-dashboard{display:grid;gap:18px;min-width:0}.report-heading,.report-controls,.report-axis{display:flex;gap:16px;justify-content:space-between;align-items:center;flex-wrap:wrap}.report-heading h2{margin:0}.report-heading button{min-height:42px;padding:8px 14px;border:1px solid #cbd5e1;border-radius:6px;background:white;color:#174578;white-space:nowrap}.report-controls{justify-content:flex-start;margin:16px 0}.report-controls label{display:grid;gap:6px}.report-controls input,.report-controls select,.report-dashboard select{padding:9px;border:1px solid #cbd5e1;border-radius:6px;max-width:100%}.report-range{font-size:13px;color:#46576b}.report-chart{display:block;width:100%;max-height:190px;margin:12px 0}.report-legend{display:flex;gap:20px;flex-wrap:wrap;font-size:13px;margin-top:20px}.report-legend span:before{content:'';display:inline-block;width:16px;height:4px;background:#1764a7;margin-right:6px;vertical-align:middle}.report-legend span:nth-child(2):before{background:#d56817}.report-legend span:nth-child(3):before{background:#13806c}.report-axis{font-size:12px;color:#64748b}.report-section{min-width:0}.report-section>p{font-size:13px;margin-top:12px}.report-section details{margin-top:16px}.report-section summary{cursor:pointer;color:#174578;padding:8px 0}.report-ranking{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin-top:16px}.report-ranking>div{border:1px solid #e2e8f0;border-radius:8px;padding:14px}.report-ranking>div>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px}.report-ranking meter{width:100%;height:10px;margin-top:10px}.report-ranking .report-chart{height:55px;margin-bottom:0}.report-unavailable{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.report-unavailable>div{padding:16px;background:#f4f6f9;border-radius:8px}.report-unavailable p{margin:8px 0 0;color:#64748b}.report-section tfoot{font-weight:bold;background:#f3f6fa}.report-dashboard[aria-busy=true] .report-section{opacity:.65}@media(max-width:700px){.report-heading{align-items:flex-start}.report-controls>*{width:100%}.report-chart{max-height:130px}.report-ranking{grid-template-columns:1fr}.report-dashboard .mg-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.captcha-refresh:disabled{opacity:.55;cursor:wait}.captcha-refresh:focus-visible{outline:3px solid #006bdf;outline-offset:2px}.mg-account-toolbar{width:100%;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px}.mg-account-identity{display:grid;gap:4px;min-width:0;max-width:100%;overflow-wrap:anywhere}.mg-account-identity span{font-size:12px;color:#6a7e97}.mg-header-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-width:0}.mg-header-actions .mg-languages{margin:0}.mg-header-actions>button{min-height:44px}@media(max-width:620px){.mg-account-identity{width:100%}.mg-header-actions{gap:8px}.mg-header-actions .mg-languages{gap:4px}.mg-header-actions .mg-languages button{padding:8px}.mg-header-actions>button{padding:9px 10px}}

.report-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.report-tabs button[aria-selected=true]{background:#006bdf;color:white;border-color:#006bdf}.report-tabs button:focus-visible{outline:3px solid #00cfee;outline-offset:2px}#report-content{display:grid;gap:18px;min-width:0}

.report-global-controls{position:sticky;top:0;z-index:5;box-shadow:0 3px 12px #18304a12;display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px}.report-global-controls h2{margin:0;flex:1}.report-global-controls .report-controls{margin:0}.report-global-controls>p,.report-global-controls>output{width:100%;margin:0}.report-summary-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.report-summary-cards .mg-panel{margin:0;padding:20px;min-width:0;overflow-wrap:anywhere}.report-summary-cards strong{display:block;font-size:32px}.report-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px;margin:0;border-bottom:1px solid #cdd8e5}.report-tabs button{white-space:nowrap;border:0;border-radius:0;background:transparent;border-bottom:3px solid transparent}.report-tabs button[aria-selected=true]{background:transparent;color:#006bdf;border-bottom-color:#006bdf}#report-content{grid-template-columns:repeat(2,minmax(0,1fr))}#report-content>.mg-panel{margin:0}#report-content>[data-report=traffic-trend]{grid-column:1/-1;order:-5}#report-content>[data-report=sources],#report-content>[data-report=models]{order:-4}#report-content>[data-report=garages]{order:-3}#report-content>[data-report=garage-models]{order:-2}#report-content>[data-report=matrix]{grid-column:1/-1;order:-5}#report-content>[data-report=summary],#report-content>[data-report=trend],#report-content>[data-report=traffic-summary],#report-content>.report-region-search,#report-content>p{grid-column:1/-1}.report-region-search{display:grid;gap:8px}.report-region-search input{width:100%}#report-content[data-module=marketing]{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}#report-content[data-module=marketing]>[data-report=garages]{order:0}@media(max-width:700px){#report-content,#report-content[data-module=marketing]{grid-template-columns:1fr}.report-global-controls{padding:14px}.report-global-controls .report-controls{gap:8px;flex-wrap:nowrap;width:100%}.report-global-controls .report-controls>label{min-width:0;width:50%}.report-global-controls>p{font-size:11px}.report-summary-cards{gap:8px}.report-summary-cards .mg-panel{padding:12px}.report-summary-cards strong{font-size:25px}.report-tabs{max-width:100%}}

.report-section>label{display:grid;gap:8px;margin:16px 0}.report-section>label select{width:100%}#report-content[data-module=products]>[data-report=models]{order:0}#report-content[data-module=products]>[data-report=regions]{order:0}

/* Align labels and controls; generic panel select margins must not offset labels. */
.report-global-controls .report-controls{align-items:end}.report-global-controls .report-controls>label{min-width:150px;align-content:start}.report-global-controls .report-controls input,.report-global-controls .report-controls select{margin:0;width:100%;min-height:42px;box-sizing:border-box}
@media(max-width:700px){.report-global-controls .report-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.report-global-controls .report-controls>label{min-width:0;width:100%}.report-global-controls .report-controls>label:first-child{grid-column:1/-1}}

.mg-faq-languages{display:flex!important;gap:8px;padding:12px}.mg-faq-languages legend{font-weight:700}.mg-faq-languages button[aria-pressed=true]{background:#203e73;color:#fff}.mg-form .mg-language-help{grid-column:1/-1;max-width:100%;overflow-wrap:anywhere}.mg-form .mg-faq-languages{grid-column:1/-1}

.mg-model-gallery ol{padding:0;list-style:none;display:grid;gap:16px}.mg-model-gallery li{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;align-items:center;border:1px solid #d9e2ee;border-radius:8px;padding:12px}.mg-model-gallery li>img{width:100px;height:80px;object-fit:contain}.mg-model-gallery li>.mg-actions{grid-column:1/-1}.mg-model-gallery p{line-height:1.5}@media(max-width:480px){.mg-model-gallery li{grid-template-columns:1fr}.mg-model-gallery li>img{width:100%;height:120px}}

/* Article editor and the two distinct image fields. */
.mg-article-body-field,.mg-article-image-field{display:grid;gap:8px;min-width:0;font-weight:600}.mg-article-editor,.mg-article-image{display:grid;gap:12px;min-width:0;font-weight:400}.mg-rich-toolbar,.mg-rich-link{display:flex;flex-wrap:wrap;gap:6px;min-width:0}.mg-rich-toolbar button{padding:8px 10px;min-height:40px}.mg-rich-toolbar button[aria-pressed=true]{background:#006bdf;color:white;border-color:#006bdf}.mg-rich-link input{flex:1;min-width:120px}.mg-article-editor .tiptap{min-height:240px;padding:16px;border:1px solid #a5b8cf;border-radius:6px;outline-offset:3px;overflow-wrap:anywhere;font-weight:400;line-height:1.6}.mg-article-editor .tiptap p{margin:0 0 12px}.mg-article-editor .tiptap ul,.mg-article-editor .tiptap ol{padding-left:28px}.mg-article-editor .tiptap h2{font-size:24px}.mg-article-editor .tiptap h3{font-size:21px}.mg-article-editor .tiptap h4{font-size:18px}.mg-article-editor .tiptap a{color:#006bdf;text-decoration:underline}.mg-article-editor img,.mg-article-editor video{max-width:100%;height:auto;display:block}.mg-form fieldset.mg-rich-media{grid-template-columns:minmax(0,1fr);padding:12px;min-width:0}.mg-rich-media input,.mg-rich-media select,.mg-article-image select{width:100%;min-width:0}.mg-article-upload{display:grid;gap:6px;font-weight:600;overflow-wrap:anywhere}.mg-article-upload input{width:100%;min-width:0}.mg-article-editor small,.mg-article-image small{overflow-wrap:anywhere;line-height:1.5}.mg-article-image .mg-actions{align-items:end}.mg-article-image img{max-width:100%;width:auto;justify-self:start}.mg-article-editor [role=alert],.mg-article-image [role=alert]{color:#962a2a}.mg-article-editor button:focus-visible{outline:3px solid #006bdf;outline-offset:2px}

/* Reference editor: heading/preview above a two-row toolbar and white canvas. */
.mg-dialog:has(.mg-article-editor){width:1026px}
.mg-article-editor [hidden]{display:none!important}
.mg-rich-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.mg-rich-heading h3{margin:0;font-size:16px;line-height:1.5;font-weight:600}
.mg-rich-heading .mg-rich-preview-toggle{min-height:46px;padding:10px 18px;border-radius:12px;background:white;flex-shrink:0}
.mg-rich-help{margin:0;font-size:13px;line-height:1.7;color:#627187;font-weight:400;overflow-wrap:anywhere}
.mg-rich-frame{border:1px solid #dedbe3;border-radius:16px;overflow:hidden;min-width:0;background:#fff}
.mg-article-editor .mg-rich-toolbar{display:block;padding:15px;background:#f3f0f6;border-bottom:1px solid #dedbe3}
.mg-rich-toolbar-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
.mg-rich-insert-row{margin-top:8px}
.mg-article-editor .mg-rich-toolbar button,.mg-article-editor .mg-rich-toolbar select{min-height:44px;padding:10px 12px;border:1px solid #dfdce3;border-radius:7px;background:#fff;font-size:13px;line-height:1.4;font-weight:400;max-width:100%;white-space:normal}
.mg-article-editor .mg-rich-toolbar button[aria-pressed=true],.mg-rich-toolbar button[aria-expanded=true]{background:#e3ebfb;border-color:#9fbce7;color:#174a90}
.mg-rich-toolbar button:has(>svg),.mg-rich-toolbar button:has(>strong),.mg-rich-toolbar button:has(>em),.mg-rich-toolbar button:has(>u){width:38px;padding:10px 8px}
.mg-rich-toolbar select{width:auto;max-width:150px}
.mg-article-editor .mg-rich-link{padding:16px;background:#faf9fc;border-bottom:1px solid #dedbe3}
.mg-form fieldset.mg-rich-media{margin:0;padding:16px;border:0;border-bottom:1px solid #dedbe3;border-radius:0;background:#faf9fc}
.mg-rich-media legend{float:left;width:100%;padding:0;margin:0 0 8px;font-weight:600}
.mg-article-editor .tiptap,.mg-rich-preview{min-height:375px;padding:28px;border:0;border-radius:0;outline-offset:-3px;font-size:16px;line-height:1.8;overflow-wrap:anywhere;color:#18304a}
.mg-article-editor .tiptap p,.mg-rich-preview p{margin:0 0 16px}
.mg-rich-preview h2{font-size:24px}.mg-rich-preview h3{font-size:21px}.mg-rich-preview h4{font-size:18px}
.mg-rich-preview ul,.mg-rich-preview ol{padding-left:28px}
.mg-rich-preview a{color:#006bdf;text-decoration:underline}
.mg-rich-preview .mg-rich-empty{color:#6a7e97}
.mg-rich-count{text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:600px){.mg-rich-heading{align-items:flex-start;gap:10px}.mg-rich-heading h3{padding-top:10px}.mg-rich-heading .mg-rich-preview-toggle{padding:10px 12px;max-width:56%;font-size:12px}.mg-article-editor .mg-rich-toolbar{padding:12px}.mg-article-editor .mg-rich-toolbar button,.mg-article-editor .mg-rich-toolbar select{padding:9px 10px}.mg-article-editor .tiptap,.mg-rich-preview{min-height:300px;padding:20px}.mg-article-editor .mg-rich-link{padding:12px}.mg-rich-help{font-size:12px}}

.mg-form fieldset.mg-article-categories{grid-template-columns:minmax(0,1fr);min-width:0}.mg-article-categories>p{margin:0;line-height:1.6;font-weight:400}.mg-article-categories>label{display:grid;gap:8px;font-weight:600;min-width:0}.mg-article-categories select{width:100%;min-width:0;max-width:100%}.mg-category-options{display:grid;gap:10px;max-height:240px;overflow:auto;min-width:0}.mg-category-options label{font-weight:400;overflow-wrap:anywhere;min-width:0}
.mg-table [data-text-source] td{vertical-align:top}.mg-table [data-text-source] td:first-child>strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.mg-text-versions{display:grid;gap:6px;font-size:12px;line-height:1.5}.mg-text-versions>div{display:grid;grid-template-columns:28px minmax(0,1fr);gap:6px}.mg-text-versions span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-width:0;overflow-wrap:anywhere}

/* GPS degrees: aligned labels, inputs and errors share rows at every width. */
.mg-form fieldset.mg-gps-editor{min-width:0}
.mg-gps-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;row-gap:8px;margin:20px 0}
.mg-gps-fields>[data-coordinate=latitude]{grid-column:1}
.mg-gps-fields>[data-coordinate=longitude]{grid-column:2}
.mg-gps-fields>label{grid-row:1;align-self:end;margin:0;line-height:1.4}
.mg-gps-fields>input{grid-row:2;width:100%;min-width:0;min-height:44px;font-variant-numeric:tabular-nums}
.mg-gps-fields>.mg-gps-error{grid-row:3;margin:0;color:#962a2a;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:480px){.mg-gps-fields{column-gap:10px}.mg-gps-fields>input{padding:10px 8px}}

/* Keep labels above the text filters and align the controls at their bottom edge. */
.mg-text-filters{align-items:flex-end}
.mg-text-filters>label{display:grid;gap:8px;min-width:0}
.mg-panel .mg-text-filters select{margin:0}
.mg-text-filters select,.mg-text-filters>button{box-sizing:border-box;height:40px}

.mg-localized-file {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
}
.mg-localized-file > output { overflow-wrap: anywhere; }
.mg-localized-file > input[hidden] { display: none !important; }
.mg-localized-file > button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.mg-inquiry-details .mg-dialog-header>div{min-width:0;overflow-wrap:anywhere}
.mg-inquiry-message{white-space:pre-wrap;overflow-wrap:anywhere}
.mg-inquiry-details>label{display:grid;gap:8px}

.mg-inquiry-filter-bar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:22px 0}
.mg-inquiry-filter-bar>label{display:grid;gap:8px;flex:1 1 210px;min-width:0;max-width:100%}
.mg-inquiry-filter-bar select{box-sizing:border-box;width:100%;min-width:0;height:40px;margin:0}
.mg-inquiry-filter-bar>button{box-sizing:border-box;min-height:40px;max-width:100%}
@font-face{font-family:Poppins;src:url('/fonts/poppins-latin-400-normal.woff2')}*{box-sizing:border-box}body{margin:0;font-family:Poppins,Arial,sans-serif;background:#f3f5f9}button,input,textarea,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:#4514ff}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #926aff;outline-offset:3px}.mg-sidebar{background:#0e103a;width:250px;position:sticky;top:0;height:100vh;overflow:auto;padding:28px 18px}.admin-brand{color:white;text-decoration:none;font-size:28px;letter-spacing:.12em;font-weight:bold;display:block}.admin-brand span{display:block;letter-spacing:.14em;font-size:9px;font-weight:400;margin-top:7px;color:#bfc0df}.mg-sidebar nav{margin-top:16px}.mg-sidebar nav button{font-size:12px;min-height:39px}.mg-sidebar button:hover,.mg-sidebar button[aria-current]{background:#3c18a5}.mg-main{padding:40px;max-width:1600px}.mg-main h1{letter-spacing:-.04em;color:#111433}.mg-primary,.mg-shell .mg-primary{background:#4514ff;border-color:#4514ff}.mg-stats strong{color:#4514ff}.mg-sidebar .sidebar-bottom{display:grid;gap:16px;margin-top:auto;padding-top:20px;font-size:12px}.sidebar-bottom a{color:#d8d2ff}.sidebar-bottom small{margin:0}.sidebar-bottom select{color:white;background:#25254f;padding:4px;border:1px solid #5d5b82;width:100%;margin-top:8px}.admin-intro{color:#718197;margin-bottom:28px}.site-link{padding:10px 16px;border:1px solid #d8deeb;border-radius:8px;text-decoration:none;font-size:13px}.search-label{display:grid;gap:6px;flex:1}.mg-toolbar>label{display:grid;gap:6px;font-size:12px}.mg-toolbar label input,.mg-toolbar label select{margin:0;min-width:180px}.mg-panel p{line-height:1.8}.mg-dialog{width:min(1026px,calc(100vw - 32px));padding:28px}.mg-dialog form input,.mg-dialog form textarea{width:100%;min-width:0}.mg-dialog form input[type=checkbox]{width:18px}.mg-dialog button{border:1px solid #ccd3e3;border-radius:7px;padding:10px 16px;color:#18304a;background:white}.mg-dialog .mg-primary{background:#4514ff;color:white;border-color:#4514ff}.editor-footer{display:flex;flex-wrap:wrap;gap:12px;position:sticky;bottom:-28px;padding:20px 0;background:white;border-top:1px solid #e0e4ee;z-index:2}.editor-tabs{display:flex;gap:8px}.page-field{display:grid;gap:8px;padding:16px;border:1px solid #e0e4ee;border-radius:8px;margin:12px 0}.page-field small{color:#76849b}.mg-form .image-field{display:grid;grid-template-columns:160px 1fr;gap:14px;margin:18px 0}.image-field img{width:160px;max-height:180px;object-fit:contain;grid-row:span 3;background:#f3f5f8}.image-field label{display:grid;gap:6px;font-size:12px}.permission-table{overflow:auto}.permission-table table{border-collapse:collapse;width:100%;min-width:650px}.permission-table td,.permission-table th{padding:10px;border-bottom:1px solid #e0e4ee;text-align:left;font-size:12px}.inquiry-message{white-space:pre-wrap;overflow-wrap:anywhere;background:#f2f4f8;border-radius:8px;padding:20px;line-height:1.8}.admin-login{max-width:580px;margin:12vh auto;padding:45px;border:1px solid #e2e5ee;border-radius:18px;background:white}.admin-login .admin-brand{color:#111433}.admin-login .admin-brand span{color:#7d7b9d}.admin-login h1{font-size:26px;margin-top:40px;letter-spacing:-.04em}.admin-login p{font-size:13px;color:#6a7892;line-height:1.8}.login-button{display:block;margin:28px 0;padding:16px;background:#4514ff;color:white;border-radius:8px;text-align:center;text-decoration:none}.loading{padding:60px}.mg-media small{display:block;color:#7f8ba0;margin-top:6px}#toast{display:none;position:fixed;bottom:24px;right:24px;max-width:500px;background:#173d32;color:white;padding:18px 24px;border-radius:10px;z-index:10000;box-shadow:0 8px 32px #0002}#toast.visible,#toast.error{display:block}#toast.error{background:#842d36}@media(max-width:850px){.mg-main{padding:24px}.mg-sidebar{width:210px}}@media(max-width:620px){.mg-sidebar{position:relative;height:auto;width:auto}.mg-sidebar nav{margin:6px 0}.mg-sidebar .sidebar-bottom{display:flex;flex-wrap:wrap;align-items:center}.mg-sidebar .sidebar-bottom small{display:none}.sidebar-bottom select{width:auto}.mg-main{padding:22px 14px}.admin-login{margin:30px 14px;padding:25px}.mg-form .image-field{grid-template-columns:1fr}.image-field img{grid-row:auto}.editor-footer{bottom:-20px}}
.mg-dialog input,.mg-dialog textarea,.mg-dialog select{border:1px solid #cbd7e6;border-radius:7px;padding:11px 13px;color:#18304a;background:white;font:14px/1.6 Poppins,Arial}.mg-dialog .mg-form input[type=number]{min-height:44px}.mg-dialog input[type=checkbox]{padding:0}.mg-dialog .page-field small{font-size:11px;letter-spacing:.04em}
