/* Preserve v1.0.32 mobile header exactly; retain current desktop presentation. */
@media(max-width:1250px){
/* Navigation-only styles imported from ManhwaToons Reader Child 1.2.30. */
.mt-brand{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:800;white-space:nowrap;color:#e9f8ff!important;text-decoration:none}.mt-brand span{background:linear-gradient(100deg,#f4faff 35%,#23b8e0);background-clip:text;-webkit-background-clip:text;color:transparent}.mt-logo{width:42px;height:42px;object-fit:contain;border-radius:50%}#mt-nav{margin:auto}.mt-menu{display:flex;list-style:none;gap:2px;padding:4px!important;margin:0!important;background:#161616;border:1px solid #2b2b2b;border-radius:30px}.mt-menu a{display:block;padding:8px 16px;font-size:13px;font-weight:700;white-space:nowrap;color:#bdbdc4;border-radius:22px;text-decoration:none}.mt-menu a:hover,.mt-menu .current-menu-item a{background:#303034;color:white}.mt-menu-toggle{background:none;border:0;color:white;font-size:25px;padding:4px;line-height:1.2}.mt-menu-toggle{display:none}
@media(max-width:1100px){.mt-menu a{padding:8px 10px;font-size:12px}.mt-brand{font-size:20px}}
@media(max-width:1250px){.mt-brand{margin-right:auto}.mt-logo{width:34px;height:34px}.mt-menu-toggle{display:block;order:3}#mt-nav{display:none;position:absolute;top:59px;left:0;right:0;background:#101115;padding:15px;border-bottom:1px solid #30323a}#mt-nav.is-open{display:block}.mt-menu{border:0;border-radius:0;flex-wrap:wrap;background:none}.mt-menu a{padding:10px 14px}}
@media(max-width:480px){.mt-brand{font-size:18px}}
.mt-drawer-title,.mt-drawer-backdrop{display:none}
@media(max-width:1250px){.mt-menu-open{overflow:hidden}.mt-menu-toggle{font-size:26px}.mt-drawer-backdrop:not([hidden]){display:block;position:fixed;inset:0;width:100%;height:100dvh;background:#0009;border:0;z-index:1101;cursor:default}
#mt-nav{display:none;position:fixed;inset:0 auto 0 0;width:min(320px,88vw);height:100dvh;padding:0 12px 25px;background:#1b1a2d;overflow:auto;border:0;z-index:1102;margin:0;box-shadow:20px 0 60px #0008}#mt-nav.is-open{display:block}.mt-drawer-title{display:flex;align-items:center;justify-content:space-between;padding:18px 10px;margin-bottom:12px;border-bottom:1px solid #ffffff12;color:#fff}.mt-drawer-title strong{font-size:18px}.mt-drawer-close{background:none;border:0;color:#9c9aaa;font-size:30px;padding:0 8px}.mt-menu{display:flex;flex-direction:column;gap:6px;padding:0!important;border:0;background:none;border-radius:0}.mt-menu li{width:100%;list-style:none}.mt-menu a{font-size:15px;padding:14px;border-radius:9px;color:#efeff6;white-space:normal}.mt-menu a:hover,.mt-menu .current-menu-item a{background:#7626de;color:white}
}
@media(max-width:480px){.mt-brand{font-size:19px}}
.mt-brand .mt-logo{display:block;width:235px!important;height:auto!important;max-width:100%;max-height:46px;object-fit:contain;border-radius:0!important;flex:none}
@media(max-width:1250px){.mt-brand .mt-logo{width:195px!important;max-height:38px}}
@media(max-width:480px){.mt-brand .mt-logo{width:175px!important;max-height:34px}}
@media(max-width:360px){.mt-brand .mt-logo{width:145px!important}}
@media(max-width:480px){.mt-brand{min-width:0;flex:1;margin-right:auto}.mt-brand .mt-logo{width:100%!important;max-width:145px!important;object-fit:contain}.mt-menu-toggle{padding:3px;font-size:23px;flex-shrink:0}}
@media(max-width:360px){.mt-brand .mt-logo{max-width:112px!important}}
.mt-header .mt-menu .mt-get-app a{background:#087f9e!important;color:#fff!important;border:1px solid #42c5df;border-radius:22px;font-weight:800;box-shadow:0 0 12px #27b6d322}
.mt-header .mt-menu .mt-get-app a:hover{background:#0a9dbb!important;border-color:#9beaf7}
@media(max-width:1250px){.mt-header .mt-menu .mt-get-app{margin:8px 12px}.mt-header .mt-menu .mt-get-app a{text-align:center;padding:11px 18px!important}}
@media(max-width:1250px){
.mt-header .mt-menu .mt-get-app{display:block;width:auto;margin:8px 12px!important;padding:0!important}
.mt-header .mt-menu .mt-get-app a{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;min-width:0!important;max-width:100%;height:32px!important;min-height:32px!important;padding:0 15px!important;border-radius:18px!important;font-size:12px!important;line-height:1!important;box-sizing:border-box;box-shadow:none!important}
}
.mt-header .mt-menu .mt-get-app a{background:#087f9e!important;color:#fff!important;border:1px solid #42c5df;border-radius:22px;font-weight:800;box-shadow:0 0 12px #27b6d322}
.mt-header .mt-menu .mt-get-app a:hover{background:#0a9dbb!important;border-color:#9beaf7}
@media(max-width:1250px){.mt-header .mt-menu .mt-get-app{margin:8px 12px}.mt-header .mt-menu .mt-get-app a{text-align:center;padding:11px 18px!important}}
@media(max-width:1250px){
.mt-header .mt-menu .mt-get-app{display:block;width:auto;margin:8px 12px!important;padding:0!important}
.mt-header .mt-menu .mt-get-app a{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;min-width:0!important;max-width:100%;height:32px!important;min-height:32px!important;padding:0 15px!important;border-radius:18px!important;font-size:12px!important;line-height:1!important;box-sizing:border-box;box-shadow:none!important}
}

/* Keep the imported navigation within Ember's existing header flow. */
body.ember .ember-header.mt-header{position:relative;inset:auto;z-index:auto;height:auto;min-height:82px;background:transparent;border:0;flex-wrap:wrap}
body.ember .ember-header #mt-nav{order:5;flex:1 0 100%;display:flex;justify-content:center;margin:0}
body.ember .ember-header .mt-menu{width:max-content;max-width:100%;font-family:Arial,Helvetica,sans-serif}
body.ember .ember-header .mt-logo{width:auto;height:auto;max-width:190px;max-height:46px;border-radius:0;object-fit:contain}
body.ember .ember-header .mt-brand{margin-right:auto}
body.ember .ember-header .mt-menu a{color:#bdbdc4}
body.ember .ember-header .mt-menu a:hover{color:#fff}
body.ember .mt-drawer-backdrop[hidden]{display:none!important}
@media(max-width:1250px){
body.ember .ember-header #mt-nav{display:none;position:fixed;inset:0 auto 0 0;width:min(320px,88vw);height:100dvh;z-index:1102;overflow:auto;background:#1b1a2d;padding:0 12px 25px}
body.ember .ember-header #mt-nav.is-open{display:block}
body.ember .ember-header .mt-menu{width:100%}
body.ember .ember-header .mt-menu-toggle{display:block;color:var(--f-ink);order:0;font-size:24px;background:transparent;border:0}
body.ember .ember-header .mt-drawer-backdrop:not([hidden]){display:block;position:fixed;inset:0;width:100vw;height:100dvh;background:#0009;border:0;z-index:1101}
body.ember.mt-menu-open{overflow:hidden}
}

/* Desktop sequence: logo, navigation, search, account controls. */
@media(min-width:1251px){
body.ember .ember-header.mt-header{display:flex!important;flex-wrap:nowrap!important;align-items:center;gap:16px;max-width:1800px}
body.ember .ember-header .mt-brand{order:0!important;margin-right:0!important;flex:0 0 auto}
body.ember .ember-header #mt-nav{order:1!important;flex:1 1 auto!important;width:auto!important;min-width:0;justify-content:center;margin:0!important}
body.ember .ember-header .ember-search{order:2!important}
body.ember .ember-header .ember-header-actions{order:3!important}
body.ember .ember-header .mt-menu{flex-wrap:nowrap}
body.ember .ember-header .mt-menu a{padding:8px 12px}
body.ember .ember-header .mt-menu-toggle{display:none!important}
}
@media(min-width:801px) and (max-width:1250px){
body.ember .ember-header .mt-drawer-title{display:flex}
body.ember .ember-header #mt-nav .mt-menu{flex-direction:column;background:none;border:0;border-radius:0;gap:6px;padding:0!important}
body.ember .ember-header #mt-nav .mt-menu li{width:100%;list-style:none}
body.ember .ember-header #mt-nav .mt-menu a{display:block;white-space:normal;padding:14px}
}

}
@media(min-width:1251px){
/* Unified ManhwaToons header. All rules are limited to the header. */
body.ember .site-header{border-bottom:1px solid #ffffff0c!important;background:var(--f-bg)!important}
body.ember .site-header .ember-header.mt-header{position:relative;inset:auto;z-index:auto;display:grid!important;grid-template-columns:174px auto minmax(210px,280px) auto;align-items:center;justify-content:center;gap:18px!important;width:calc(100% - 48px);max-width:1600px;margin:0 auto!important;padding:18px 0!important;min-height:86px;height:auto;box-sizing:border-box;background:transparent;border:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
body.ember .ember-header.mt-header *{box-sizing:border-box}
body.ember .ember-header.mt-header .mt-brand{display:flex;align-items:center;justify-content:flex-start;grid-column:1;grid-row:1;order:0!important;width:174px;max-width:174px;min-width:0;margin:0!important;flex:none;text-decoration:none}
body.ember .ember-header.mt-header .mt-logo{display:block;width:174px!important;height:auto!important;max-width:100%!important;max-height:44px;object-fit:contain;border-radius:0}
body.ember .ember-header.mt-header #mt-nav{display:block;position:static;grid-column:2;grid-row:1;order:1!important;width:auto!important;min-width:0;max-width:none;margin:0!important;padding:0;border:0;background:transparent;box-shadow:none;overflow:visible;flex:none!important}
body.ember .ember-header.mt-header .mt-menu{display:flex;align-items:center;justify-content:center;gap:2px!important;width:max-content;max-width:none;margin:0!important;padding:4px!important;list-style:none!important;background:#ffffff03;border:1px solid #ffffff0b;border-radius:14px;font-family:inherit}
body.ember .ember-header.mt-header .mt-menu li{margin:0!important;padding:0!important;list-style:none;float:none}
body.ember .ember-header.mt-header .mt-menu a{display:flex;align-items:center;justify-content:center;min-height:36px;padding:8px 10px;font-size:12px;font-weight:600;line-height:1.4;white-space:nowrap;text-decoration:none;color:var(--f-muted)!important;border:1px solid transparent;border-radius:10px;transition:background .15s,color .15s}
body.ember .ember-header.mt-header .mt-menu a:hover,body.ember .ember-header.mt-header .mt-menu a:focus-visible{background:var(--f-raised);color:var(--f-ink)!important}
body.ember .ember-header.mt-header .mt-menu .mt-get-app a,body.ember .ember-header.mt-header .mt-menu a[href*="manhwatoon.app"]{background:#087f9e!important;color:#fff!important;border:1px solid #3bc1db;border-radius:10px;box-shadow:0 3px 12px #087f9e22;font-weight:750}
body.ember .ember-header.mt-header .ember-search{grid-column:3;grid-row:1;order:2!important;width:100%!important;min-width:0!important;max-width:none;flex:none!important;margin:0!important;align-self:center}
body.ember .ember-header.mt-header .ember-search input[type=search]{position:relative!important;inset:auto!important;width:100%!important;max-width:100%!important;height:44px!important;min-height:44px!important;border:1px solid var(--f-line)!important;border-radius:12px!important;background:var(--f-surface)!important;font-size:12px!important;transition:border-color .15s,box-shadow .15s}
body.ember .ember-header.mt-header .ember-search input[type=search]:focus{border-color:#268fa8!important;box-shadow:0 0 0 3px #268fa81a;outline:none}
body.ember .ember-header.mt-header .ember-search::before{content:none!important}
body.ember .ember-header.mt-header .ember-search .ember-advanced-search{font-size:10px;padding-inline:7px;top:7px;bottom:7px}
body.ember .ember-header.mt-header .ember-search>button{height:38px;min-width:36px;top:3px;right:3px;font-size:22px}
body.ember .ember-header.mt-header .ember-header-actions{display:flex!important;align-items:center;justify-content:flex-end;grid-column:4;grid-row:1;order:3!important;gap:6px!important;min-width:0;flex:none;white-space:nowrap;margin:0}
body.ember .ember-header.mt-header .ember-header-actions>button,body.ember .ember-header.mt-header .ember-header-actions>.ember-history{display:inline-flex!important;align-items:center;justify-content:center;width:40px;min-width:40px;height:44px;min-height:44px;margin:0!important;padding:0!important;border:1px solid var(--f-line);border-radius:12px;background:var(--f-surface);color:var(--f-muted);font-size:20px;line-height:1;cursor:pointer;text-decoration:none}
body.ember .ember-header.mt-header .ember-header-actions>.ember-mode{color:#ffb23e}
body.ember .ember-header.mt-header .ember-header-actions>.ember-button{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;margin:0!important;padding:9px 14px!important;border:1px solid var(--f-line);border-radius:12px;background:var(--f-surface);color:var(--f-ink);font-size:12px;font-weight:650;line-height:1.4;text-decoration:none}
body.ember .ember-header.mt-header .ember-header-actions>:hover{border-color:#458b9b;background:var(--f-raised)}
body.ember .ember-header.mt-header :is(a,button,input):focus-visible{outline:2px solid #42bfd8!important;outline-offset:3px}
body.ember .ember-header.mt-header .mt-menu-toggle,body.ember .ember-header.mt-header .mt-drawer-title,body.ember .ember-header.mt-header .mt-drawer-backdrop{display:none}
body.ember .ember-header.mt-header [hidden]{display:none!important}
@media(max-width:1500px){
body.ember .site-header .ember-header.mt-header{grid-template-columns:44px minmax(140px,1fr) minmax(220px,340px) auto;gap:12px!important;max-width:1240px}
body.ember .ember-header.mt-header .mt-menu-toggle{display:flex;align-items:center;justify-content:center;grid-column:1;grid-row:1;width:44px;min-height:44px;padding:0;order:0!important;border:1px solid var(--f-line);border-radius:12px;background:var(--f-surface);color:var(--f-ink);font-size:22px;cursor:pointer}
body.ember .ember-header.mt-header .mt-brand{grid-column:2;width:160px;max-width:100%}
body.ember .ember-header.mt-header .ember-search{grid-column:3}
body.ember .ember-header.mt-header .ember-header-actions{grid-column:4}
body.ember .ember-header.mt-header #mt-nav{display:none;position:fixed;inset:0 auto 0 0;width:min(340px,88vw)!important;max-width:88vw;height:100dvh;z-index:1102;margin:0!important;padding:16px!important;overflow:auto;overscroll-behavior:contain;background:var(--f-bg);border-right:1px solid var(--f-line);box-shadow:20px 0 70px #0006}
body.ember .ember-header.mt-header #mt-nav.is-open{display:block}
body.ember .ember-header.mt-header #mt-nav .mt-menu{flex-direction:column;align-items:stretch;gap:5px!important;width:100%;padding:0!important;border:0;background:transparent}
body.ember .ember-header.mt-header #mt-nav .mt-menu a{justify-content:flex-start;min-height:46px;padding:12px 14px;font-size:14px;white-space:normal}
body.ember .ember-header.mt-header .mt-drawer-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid var(--f-line);color:var(--f-ink);font-size:18px}
body.ember .ember-header.mt-header .mt-drawer-close{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;background:var(--f-surface);color:var(--f-ink);border:1px solid var(--f-line);border-radius:10px;font-size:25px;cursor:pointer}
body.ember .ember-header.mt-header .mt-drawer-backdrop:not([hidden]){display:block;position:fixed;inset:0;width:100vw;height:100dvh;z-index:1101;background:#0009;border:0;cursor:pointer}
body.ember.mt-menu-open{overflow:hidden}
}
@media(max-width:900px){
body.ember .site-header .ember-header.mt-header{grid-template-columns:minmax(0,1fr) 44px!important;gap:12px!important;width:calc(100% - 32px);padding:14px 0!important}
body.ember .ember-header.mt-header .mt-brand{grid-column:1;grid-row:1;width:170px;max-width:100%}
body.ember .ember-header.mt-header .mt-menu-toggle{grid-column:2;grid-row:1}
body.ember .ember-header.mt-header .ember-search{grid-column:1/-1;grid-row:2;width:100%!important}
body.ember .ember-header.mt-header .ember-search input[type=search]{font-size:16px!important}
body.ember .ember-header.mt-header .ember-header-actions{grid-column:1/-1;grid-row:3;justify-content:flex-end;flex-wrap:wrap;gap:8px!important}
body.ember .ember-header.mt-header .ember-header-actions>button,body.ember .ember-header.mt-header .ember-header-actions>.ember-history{width:44px;min-width:44px}
}
@media(prefers-reduced-motion:reduce){body.ember .ember-header.mt-header *{transition:none!important}}
/* Explicit search bounds win over inherited Madara/Ember expansion rules. */
@media(min-width:901px){
body.ember .site-header .ember-header.mt-header .ember-search{width:260px!important;min-width:260px!important;max-width:260px!important;flex:0 0 260px!important;justify-self:start}
body.ember .site-header .ember-header.mt-header .ember-search input[type=search]{width:100%!important;max-width:100%!important}
}
@media(min-width:1501px){
body.ember .site-header .ember-header.mt-header{grid-template-columns:174px max-content 260px max-content!important}
}
@media(min-width:901px) and (max-width:1500px){
body.ember .site-header .ember-header.mt-header{grid-template-columns:44px minmax(140px,1fr) 260px max-content!important}
}
@media(max-width:900px){
body.ember .site-header .ember-header.mt-header .ember-search{width:100%!important;min-width:0!important;max-width:100%!important;flex:none!important}
}

}
