/* ARK_WEBVIEW_BUNDLE_V11: original icons, colors, controls and handlers retained. */
#arkNotebookV2 [data-ark-bundle-hide="1"],[data-ark-bundle-top-hide="1"]{display:none!important}
#arkNotebookV2 .ark-bundle-files-toggle{margin:6px 0;min-height:32px;font:inherit;color:inherit;background:var(--raise,var(--surface,#232327));border:1px solid var(--line,#353035);border-radius:8px;cursor:pointer}
html.ark-bundle-admin body>header.top{flex-wrap:wrap!important;gap:8px!important;max-width:100%!important;box-sizing:border-box!important}
html.ark-bundle-admin body>header.top>.ark-bundle-toggle{order:90;display:flex!important;align-items:center;gap:10px;flex:0 0 100%!important;width:100%!important;max-width:100%!important;min-height:44px;padding:10px 12px;margin:0!important;border:1px solid var(--line,#353035);border-radius:12px;background:var(--raise,var(--surface,#232327));color:inherit;font:inherit;text-align:left}
.ark-bundle-toggle .ark-bundle-chevron{margin-inline-start:auto}.ark-bundle-toggle[aria-expanded="true"] .ark-bundle-chevron{transform:rotate(180deg)}
html.ark-bundle-admin body>header.top>#tabs.ark-bundle-menu{order:91;flex:0 0 100%!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:0!important;box-sizing:border-box!important}
html.ark-bundle-admin body>header.top>#tabs.ark-bundle-menu:not(.ark-bundle-open){display:none!important}
html.ark-bundle-admin body>header.top>#tabs.ark-bundle-menu.ark-bundle-open{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:5px!important}
html.ark-bundle-admin #tabs.ark-bundle-menu.ark-bundle-open>button:not([hidden]){width:100%!important;max-width:100%!important;flex:0 0 auto!important;min-height:42px;height:auto!important;white-space:normal!important;justify-content:flex-start!important;text-align:left!important;overflow:visible!important;display:flex!important;align-items:center!important;gap:8px}
html.ark-bundle-admin #tabs.ark-bundle-menu svg{flex-shrink:0}
html.ark-bundle-app,html.ark-bundle-app body{max-width:100%;overflow-x:clip}

/* V12: selected original tab replaces generic menu label; align every mobile header row. */
html.ark-bundle-admin body>header.top{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-auto-rows:auto;align-items:center!important;width:100%!important;max-width:none!important;min-width:0!important;margin-inline:0!important;padding-inline:10px!important;gap:8px!important;box-sizing:border-box!important}
html.ark-bundle-admin body>header.top>.brand{grid-column:1;grid-row:1;min-width:0!important;max-width:100%!important;overflow:hidden;white-space:nowrap}
html.ark-bundle-admin body>header.top>.hdr-tools{grid-column:2;grid-row:1;display:flex!important;justify-content:flex-end!important;gap:6px!important;margin:0!important;min-width:0!important}
html.ark-bundle-admin body>header.top>.who{grid-column:1/-1;grid-row:2;max-width:100%!important;width:100%!important;margin:0!important;min-width:0!important}
html.ark-bundle-admin body>header.top>.who:empty{display:none!important}
html.ark-bundle-admin body>header.top>.ark-bundle-toggle{grid-column:1/-1;grid-row:3;min-height:44px!important;height:auto!important;box-sizing:border-box!important;background:var(--accent,#e11d2e)!important;color:#fff!important;font-weight:600!important;justify-content:space-between!important}
html.ark-bundle-admin body>header.top>#tabs.ark-bundle-menu{grid-column:1/-1;grid-row:4;padding:5px!important}
html.ark-bundle-admin body>header.top>#tabs.ark-bundle-menu.ark-bundle-open>button:not([hidden]){box-sizing:border-box!important;min-height:44px!important;height:auto!important;padding:10px 12px!important;line-height:1.35!important;font-size:14px!important;justify-content:flex-start!important}
html.ark-bundle-admin body>header.top .ark-bundle-current{display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere;text-align:left}
html.ark-bundle-admin body>header.top .ark-bundle-current svg,html.ark-bundle-admin body>header.top>#tabs.pill .ark-nav-icon,html.ark-bundle-admin body>header.top>#tabs.pill>button svg{display:inline-block!important;width:18px!important;height:18px!important;flex:0 0 18px!important}
html.ark-bundle-admin body>header.top .ark-bundle-chevron{width:18px;height:18px;flex:none}
html.ark-bundle-admin body>header.top .hdr-tools #arkFileToolsOpen{min-width:0!important;width:auto!important;padding-inline:10px!important;height:40px!important;max-height:40px!important}
html.ark-bundle-admin body>header.top .hdr-tools #theme{width:40px!important;height:40px!important;min-height:40px!important;flex:none}
html.ark-bundle-admin #login:not([hidden]){min-height:0!important;padding:24px 12px!important;box-sizing:border-box!important}
@media(max-width:340px){html.ark-bundle-admin body>header.top .hdr-tools #arkFileToolsOpen>span{display:none!important}html.ark-bundle-admin body>header.top .hdr-tools #arkFileToolsOpen{width:40px!important}}
