/* Reuse the host's first layer: layered important declarations outrank unlayered styles.
   Every selector remains Mureka-only; native hidden behavior is preserved below. */
@layer akNativeState {
/* Private media and reference picker · same compact, neutral studio system. */
html body #aikaze-mureka-resources {
 --amr-bg:#202126 !important; --amr-panel:#282a30 !important; --amr-text:#f2f3f5 !important; --amr-muted:#b4b7c0 !important; --amr-soft:#a2a6b0 !important; --amr-line:#3c3f47 !important; --amr-accent:#d5ff3f !important;
 position:fixed !important; inset:0 !important; z-index:2147483000 !important; display:grid !important; place-items:center !important; padding:22px !important; margin:0 !important; background:#08090bcc !important; backdrop-filter:blur(14px) !important; color:var(--amr-text) !important; font:400 13px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important; text-align:left !important; color-scheme:dark !important; -webkit-text-size-adjust:100% !important; overscroll-behavior:contain !important;
}
html body #aikaze-mureka-resources *,html body #aikaze-mureka-resources *::before,html body #aikaze-mureka-resources *::after {box-sizing:border-box !important}
html body #aikaze-mureka-resources :where(section,header,h2,h3,p,label,button,input,textarea,select) {margin:0 !important; min-width:0 !important; max-width:100% !important; font-family:inherit !important; letter-spacing:normal !important; text-transform:none !important; box-shadow:none !important; text-shadow:none !important}
html body #aikaze-mureka-resources .amr-panel {width:min(580px,100%) !important; max-height:90dvh !important; overflow:auto !important; border:1px solid #ffffff0b !important; border-radius:18px !important; background:var(--amr-bg) !important; box-shadow:0 28px 90px #0008 !important; padding:24px !important; scrollbar-width:thin !important; scrollbar-color:#42454e transparent !important}
html body #aikaze-mureka-resources header {display:flex !important; justify-content:space-between !important; align-items:flex-start !important; gap:16px !important}
html body #aikaze-mureka-resources .amr-kicker {font-size:9px !important; line-height:1.5 !important; font-weight:550 !important; letter-spacing:.13em !important; color:var(--amr-accent) !important; margin:0 0 5px !important}
html body #aikaze-mureka-resources h2 {font-size:21px !important; font-weight:550 !important; line-height:1.35 !important; letter-spacing:-.45px !important; color:var(--amr-text) !important; margin:0 !important}
html body #aikaze-mureka-resources h3 {font-size:13px !important; line-height:1.5 !important; font-weight:550 !important; color:var(--amr-text) !important; margin:0 0 10px !important}
html body #aikaze-mureka-resources p {font-size:11px !important; color:var(--amr-muted) !important; line-height:1.65 !important; margin:7px 0 !important}
html body #aikaze-mureka-resources [data-amr-status] {color:var(--amr-muted) !important; font-size:11px !important; min-height:0 !important; margin:17px 0 !important; padding-left:10px !important; border-left:2px solid #d5ff3f66 !important}
html body #aikaze-mureka-resources .amr-saved,html body #aikaze-mureka-resources .amr-upload {padding:18px 0 0 !important; margin-top:18px !important; border:0 !important; border-top:1px solid var(--amr-line) !important; border-radius:0 !important; background:transparent !important}
html body #aikaze-mureka-resources button {display:inline-flex !important; align-items:center !important; justify-content:center !important; gap:6px !important; min-width:0 !important; min-height:34px !important; height:auto !important; width:auto !important; margin:8px 6px 0 0 !important; padding:8px 11px !important; border:0 !important; border-radius:7px !important; background:#30323a !important; color:var(--amr-text) !important; font:500 11px/1.5 Inter,system-ui,sans-serif !important; cursor:pointer !important; appearance:none !important; touch-action:manipulation !important; transform:none !important}
html body #aikaze-mureka-resources button::before,html body #aikaze-mureka-resources button::after {content:none !important}
html body #aikaze-mureka-resources button:hover:not(:disabled) {background:#3b3e46 !important; color:var(--amr-text) !important}
html body #aikaze-mureka-resources header>button {flex:none !important; width:30px !important; height:30px !important; min-height:30px !important; padding:0 !important; margin:0 !important; background:transparent !important; color:var(--amr-muted) !important; font-size:23px !important; line-height:1 !important}
html body #aikaze-mureka-resources button.amr-primary {min-height:38px !important; padding:9px 14px !important; background:var(--amr-accent) !important; color:#171b0a !important; font-size:12px !important; font-weight:650 !important}
html body #aikaze-mureka-resources button.amr-primary:hover:not(:disabled) {background:#e0ff76 !important; color:#171b0a !important}
html body #aikaze-mureka-resources button:disabled {opacity:.5 !important; cursor:not-allowed !important}
html body #aikaze-mureka-resources :focus-visible {outline:2px solid var(--amr-accent) !important; outline-offset:3px !important}
html body #aikaze-mureka-resources label {display:block !important; color:var(--amr-text) !important; font-size:12px !important; line-height:1.5 !important; font-weight:500 !important; margin-top:15px !important}
html body #aikaze-mureka-resources input[type=file],html body #aikaze-mureka-resources textarea,html body #aikaze-mureka-resources select {display:block !important; width:100% !important; min-height:38px !important; border:1px solid var(--amr-line) !important; border-radius:8px !important; background:#191a1f !important; padding:9px 10px !important; color:var(--amr-text) !important; margin:6px 0 0 !important; font:400 13px/1.5 Inter,system-ui,sans-serif !important; box-shadow:none !important; outline:none !important; transform:none !important; appearance:auto !important}
html body #aikaze-mureka-resources select option {background:#191a1f !important; color:var(--amr-text) !important}
html body #aikaze-mureka-resources input[type=file] {padding:7px !important; font-size:11px !important; border-style:dashed !important; min-height:43px !important; height:auto !important}
html body #aikaze-mureka-resources input::file-selector-button {appearance:none !important; min-height:27px !important; background:#30323a !important; color:var(--amr-text) !important; border:0 !important; border-radius:5px !important; padding:5px 9px !important; margin:0 9px 0 0 !important; font:500 11px/1.5 Inter,system-ui,sans-serif !important; box-shadow:none !important; cursor:pointer !important}
html body #aikaze-mureka-resources .amr-consent {display:flex !important; align-items:flex-start !important; gap:8px !important; color:var(--amr-muted) !important; font-size:11px !important; line-height:1.65 !important}
html body #aikaze-mureka-resources input[type=checkbox] {appearance:auto !important; -webkit-appearance:checkbox !important; display:inline-block !important; flex:0 0 14px !important; width:14px !important; height:14px !important; min-width:14px !important; max-width:14px !important; min-height:14px !important; max-height:14px !important; padding:0 !important; margin:2px 0 0 !important; border:0 !important; border-radius:3px !important; background:transparent !important; color:var(--amr-text) !important; accent-color:var(--amr-accent) !important; box-shadow:none !important; cursor:pointer !important; transform:none !important}
html body #aikaze-mureka-resources textarea {min-height:80px !important; resize:vertical !important}
html body #aikaze-mureka-resources textarea:focus,html body #aikaze-mureka-resources select:focus {background:#191a1f !important; border-color:#737c4b !important; box-shadow:none !important}
html body #aikaze-mureka-resources [data-amr-upload-limits] {font-size:10px !important; color:var(--amr-soft) !important; line-height:1.7 !important; margin-top:9px !important}
html body #aikaze-mureka-resources [data-amr-file-label] {font-size:10px !important; color:var(--amr-soft) !important; margin-top:7px !important}
html body #aikaze-mureka-resources .amr-quote {background:var(--amr-panel) !important; border-left:2px solid var(--amr-accent) !important; border-radius:0 9px 9px 0 !important; padding:15px !important; margin-top:16px !important}
html body #aikaze-mureka-resources .amr-quote [data-amr-price] {color:var(--amr-accent) !important; font-size:20px !important; line-height:1.4 !important; font-weight:600 !important; margin:0 !important}
html body #aikaze-mureka-resources .amr-resource {display:flex !important; justify-content:flex-start !important; width:100% !important; text-align:left !important}
html body #aikaze-mureka-resources [hidden] {display:none !important}
@media(max-width:540px) {
 html body #aikaze-mureka-resources {padding:10px !important}
 html body #aikaze-mureka-resources .amr-panel {padding:20px 17px !important; border-radius:14px !important; max-height:94dvh !important}
 html body #aikaze-mureka-resources h2 {font-size:20px !important}
 html body #aikaze-mureka-resources .amr-saved,html body #aikaze-mureka-resources .amr-upload {padding-top:16px !important; margin-top:16px !important}
 html body #aikaze-mureka-resources textarea,html body #aikaze-mureka-resources select {font-size:16px !important}
}
@media(prefers-reduced-motion:reduce) {
 html body #aikaze-mureka-resources * {transition:none !important; animation:none !important; scroll-behavior:auto !important}
}

/* Hidden native fields stay hidden regardless of important component display rules. */
html body #aikaze-mureka-resources [hidden][hidden] {display:none !important}

/* Complete studio state styling: local upload, review, processing and saved sources. */
html body #aikaze-mureka-resources :where(span,strong,b,em,small,pre,code,a) {color:inherit !important; -webkit-text-fill-color:currentColor !important; text-shadow:none !important}
html body #aikaze-mureka-resources :where(h2,h3,p,label,button,input,textarea,select) {-webkit-text-fill-color:currentColor !important}
html body #aikaze-mureka-resources :where(p,button,label) {overflow-wrap:anywhere !important}
html body #aikaze-mureka-resources .amr-panel {border-color:#ffffff12 !important; background:linear-gradient(135deg,#24262b,#1c1e23) !important; box-shadow:0 28px 90px #0008,inset 0 1px #ffffff06 !important}
html body #aikaze-mureka-resources header>button {width:32px !important; height:32px !important; min-height:32px !important; background:#ffffff06 !important; border:1px solid #ffffff08 !important; border-radius:8px !important}
html body #aikaze-mureka-resources :is(button,input,textarea,select,a):focus-visible {outline:2px solid var(--amr-accent) !important; outline-offset:3px !important}
html body #aikaze-mureka-resources button:disabled {opacity:.68 !important}
html body #aikaze-mureka-resources [data-amr-status]:not(:empty) {padding:10px 12px !important; margin:14px 0 !important; border:1px solid #ffffff0d !important; border-radius:8px !important; background:#292c31 !important; color:#cbd0d8 !important; font-size:11px !important; line-height:1.65 !important}
html body #aikaze-mureka-resources [data-amr-status]:empty {display:none !important}
html body #aikaze-mureka-resources input[type=file] {border:1px dashed #515660 !important; color:var(--amr-text) !important; line-height:1.7 !important}
html body #aikaze-mureka-resources input::file-selector-button:hover {background:#41464f !important}
html body #aikaze-mureka-resources select {appearance:none !important; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23b4b7c0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; background-repeat:no-repeat !important; background-position:right 11px center !important; background-size:16px 16px !important; padding-right:35px !important}
html body #aikaze-mureka-resources .amr-quote {padding:15px !important; border:1px solid #d5ff3f26 !important; border-left:3px solid var(--amr-accent) !important; border-radius:10px !important; background:linear-gradient(135deg,#2b2e26,#24262b) !important}
html body #aikaze-mureka-resources .amr-quote [data-amr-price] {color:var(--amr-accent) !important; -webkit-text-fill-color:var(--amr-accent) !important; font-size:20px !important; font-weight:650 !important; line-height:1.35 !important; letter-spacing:-.4px !important; font-variant-numeric:tabular-nums !important}
html body #aikaze-mureka-resources .amr-resource {border:1px solid #ffffff0b !important; background:#2a2d33 !important; color:var(--amr-text) !important; gap:12px !important}
html body #aikaze-mureka-resources .amr-resource::after {content:"" !important; display:block !important; margin-left:auto !important; width:6px !important; height:6px !important; flex:0 0 6px !important; border:solid currentColor !important; border-width:1.5px 1.5px 0 0 !important; border-radius:0 !important; background:none !important; transform:rotate(45deg) !important; position:static !important}
html body #aikaze-mureka-resources .amr-resource:hover:not(:disabled) {background:#34382f !important; border-color:#d5ff3f40 !important; color:var(--amr-text) !important}
html body #aikaze-mureka-resources .amr-library-note {color:#bfc5b2 !important; font-size:11px !important; line-height:1.6 !important; margin:11px 0 0 !important}
html body #aikaze-mureka-resources .amr-limits {margin:8px 0 0 !important; padding:0 !important; border:0 !important; background:transparent !important; color:var(--amr-muted) !important; font-size:11px !important; line-height:1.65 !important}
html body #aikaze-mureka-resources .amr-limits summary {display:list-item !important; margin:0 !important; padding:5px 0 !important; color:var(--amr-muted) !important; -webkit-text-fill-color:currentColor !important; font:500 10px/1.6 Inter,system-ui,sans-serif !important; cursor:pointer !important; list-style:disclosure-closed inside !important}
html body #aikaze-mureka-resources .amr-limits[open] summary {list-style-type:disclosure-open !important; color:var(--amr-text) !important}
html body #aikaze-mureka-resources .amr-limits summary:focus-visible {outline:2px solid var(--amr-accent) !important; outline-offset:3px !important}
html body #aikaze-mureka-resources .amr-limits [data-amr-upload-limits] {margin:5px 0 9px !important; padding:10px 12px !important; background:#181b20 !important; border:1px solid #ffffff0b !important; border-radius:8px !important; color:var(--amr-muted) !important}
html body #aikaze-mureka-resources .amr-consent {padding:10px 12px !important; border:1px solid #ffffff0b !important; border-radius:8px !important; background:#ffffff03 !important}
html body #aikaze-mureka-resources .amr-consent:has(input:checked) {border-color:#d5ff3f30 !important; color:#dce2cf !important}
html body #aikaze-mureka-resources .amr-consent:has(input:focus-visible) {outline:2px solid var(--amr-accent) !important; outline-offset:3px !important}
@media(max-width:540px) {
 html body #aikaze-mureka-resources .amr-panel {padding:18px 16px !important}
 html body #aikaze-mureka-resources .amr-quote {padding:13px !important}
 html body #aikaze-mureka-resources .amr-quote [data-amr-price] {font-size:19px !important}
 html body #aikaze-mureka-resources .amr-quote button {min-height:36px !important}
}
html body #aikaze-mureka-resources [hidden][hidden] {display:none !important}

}
