/* Artmilap 5.3: responsive presentation. No business-state or route changes. */
:root{--glass:rgba(255,255,255,.82);--glass-line:rgba(118,78,174,.14);--studio-shadow:0 12px 38px rgba(59,29,98,.055)}
:root[data-theme=dark]{--glass:rgba(26,21,38,.85);--glass-line:rgba(211,184,255,.15);--studio-shadow:0 14px 38px rgba(0,0,0,.18)}
html[data-theme] .appbar,html[data-theme] .appbar.dark,html[data-theme] .appbar.root.dark{background:var(--glass);backdrop-filter:blur(22px) saturate(140%);-webkit-backdrop-filter:blur(22px) saturate(140%);border-bottom:1px solid var(--glass-line);box-shadow:0 5px 24px rgba(47,22,91,.025)}
html[data-theme] .appbar::after{content:"";position:absolute;height:1px;bottom:-1px;left:12%;right:12%;background:linear-gradient(90deg,transparent,rgba(158,94,236,.3),transparent);pointer-events:none}
html[data-theme] .appbar-title h1{white-space:normal;overflow-wrap:anywhere}
html[data-theme] .icon-btn,html[data-theme] .appbar-mark{background:var(--glass);box-shadow:inset 0 1px 0 rgba(255,255,255,.14);border-color:var(--glass-line)}
html[data-theme] .bottom-nav{background:var(--glass);backdrop-filter:blur(24px) saturate(150%);-webkit-backdrop-filter:blur(24px) saturate(150%)}
html[data-theme] .card,html[data-theme] .list-row,html[data-theme] .quick-action{box-shadow:0 2px 8px rgba(56,25,94,.025);transition:box-shadow .18s ease,border-color .18s ease,transform .18s ease}
@media(hover:hover){html[data-theme] button.card:hover,html[data-theme] button.list-row:hover,html[data-theme] .quick-action:hover{box-shadow:var(--studio-shadow);border-color:var(--control-line);transform:translateY(-2px)}}
.studio-nav,.studio-foot,.layout-switch,.studio-view-note{display:none}
.layout-switch{gap:3px;padding:4px;background:var(--surface-2);border:1px solid var(--line);border-radius:12px}
.layout-switch button{border:0;background:transparent;color:var(--muted);padding:8px 11px;font-size:12px;line-height:18px;min-height:34px;border-radius:8px;white-space:nowrap}
.layout-switch button[aria-pressed=true]{background:var(--surface);color:var(--primary);box-shadow:0 2px 6px rgba(35,5,91,.08)}
.studio-view-note{font-size:11px;line-height:18px;color:var(--muted)}
.studio-nav a{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:13px;min-height:46px;color:var(--muted);font-size:14px;font-weight:600;text-decoration:none;position:relative}
.studio-nav a.active{color:var(--primary);background:var(--primary-soft)}
.studio-nav a.active::before{content:"";position:absolute;left:-18px;width:3px;height:22px;border-radius:0 4px 4px 0;background:var(--primary)}
.studio-nav a:hover{background:var(--hover);color:var(--ink)}
.studio-nav svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.studio-nav h2{font-size:10px;text-transform:uppercase;letter-spacing:.14em;font-weight:700;color:var(--muted);margin:28px 14px 9px}
.studio-foot{margin-top:auto;padding:20px 12px 8px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;line-height:20px}
.studio-foot a{display:block;color:var(--primary);text-decoration:none;font-weight:650;margin-top:6px}
.studio-directory-toggle{margin:20px 0 8px;padding:10px 12px;width:100%;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--muted);font-size:12px;min-height:40px;cursor:pointer}
.figma-source-icon{width:24px;height:24px;object-fit:contain;display:block;flex:none;vertical-align:middle;filter:none!important}
.figma-original-icon{display:none!important}
html[data-theme] .figma-source-icon{filter:none!important}
html[data-theme] .quick-icon:has(.figma-source-icon),html[data-theme] .icon-box:has(.figma-source-icon){background:var(--primary-soft);color:var(--primary);border:1px solid var(--control-line)}
html[data-theme] .quick-icon .figma-source-icon{width:28px;height:28px}
html[data-theme] .nav-icon .figma-source-icon{width:24px;height:24px}
.figma-hero-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;pointer-events:none}
.hero:has(.figma-hero-art)>:not(.figma-hero-art){position:relative;z-index:1}
.hero:has(.figma-hero-art)::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(49,20,106,.9),rgba(108,59,177,.62));z-index:1}
html[data-theme] .hero:has(.figma-hero-art),html[data-theme] .hero:has(.figma-hero-art) :is(h2,p,.eyebrow,strong,.hero-stat span){color:#fff!important}
html[data-theme][data-display=desktop] body{height:100vh;overflow:hidden;background:var(--canvas)}
html[data-theme][data-display=desktop] .prototype-workspace{display:grid;grid-template-columns:238px minmax(0,1fr);height:100dvh;min-height:0;background:var(--canvas)}
html[data-theme][data-display=desktop] .prototype-sidebar{display:flex;flex-direction:column;height:100dvh;padding:28px 18px 16px;background:var(--glass);backdrop-filter:blur(24px);border-right:1px solid var(--glass-line);overflow:auto}
html[data-theme][data-display=desktop] .prototype-brand{margin:0 7px 23px;padding-bottom:23px;border-bottom:1px solid var(--line)}
html[data-theme][data-display=desktop] .prototype-brand strong{font-size:23px;font-weight:800;letter-spacing:-.04em}
html[data-theme][data-display=desktop] .prototype-brand span{font-size:10px;line-height:17px}
html[data-theme][data-display=desktop] .prototype-inspector{display:none}
html[data-theme][data-display=desktop] .prototype-stage{padding:0;display:flex;flex-direction:column;min-height:0;height:100dvh;gap:0;align-items:stretch}
html[data-theme][data-display=desktop] .preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;max-width:none;padding:13px 32px;min-height:66px;background:var(--glass);border-bottom:1px solid var(--glass-line);margin:0;flex-wrap:wrap}
html[data-theme][data-display=desktop] .preview-heading{margin-right:auto}
html[data-theme][data-display=desktop] .preview-heading strong{font-size:11px;letter-spacing:.13em;text-transform:uppercase;font-weight:700;color:var(--muted)}
html[data-theme][data-display=desktop] .preview-heading small{display:none}
html[data-theme][data-display=desktop] .device-shell{width:100%;height:auto;flex:1;min-height:0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}
html[data-theme][data-display=desktop] .device-camera{display:none}
html[data-theme][data-display=desktop] .mobile-app{height:100%;width:100%;border-radius:0;overflow:hidden}
html[data-theme][data-display=desktop] .screen{height:100%;min-height:0;background:var(--canvas)}
html[data-theme][data-display=desktop] .appbar{padding:24px 36px 20px;min-height:94px;background:transparent;backdrop-filter:none;border:0;box-shadow:none}
html[data-theme][data-display=desktop] .appbar .appbar-title h1,html[data-theme][data-display=desktop] .appbar.root .appbar-title h1{font-size:27px;line-height:34px;max-width:none}
html[data-theme][data-display=desktop] .appbar.root .appbar-mark{display:none}
html[data-theme][data-display=desktop] .appbar-title p{font-size:13px;margin-top:4px}
html[data-theme][data-display=desktop] .screen-scroll{padding:0 20px 32px;scrollbar-width:thin;overflow:auto;min-height:0;scroll-padding-bottom:100px}
html[data-theme][data-display=desktop] .screen.no-bottom .screen-scroll{padding-bottom:28px}
html[data-theme][data-display=desktop] .screen-scroll>.page{max-width:1120px;margin:0 auto;width:100%;padding:12px 16px 24px;gap:22px}
html[data-theme][data-display=desktop] .screen-scroll>.page:has(>.form),html[data-theme][data-display=desktop] .screen-scroll>.page:has(>.field){max-width:840px}
html[data-theme][data-display=desktop] .screen-scroll>.page:has(>.state-panel){max-width:760px}
html[data-theme][data-display=desktop] .hero{padding:30px 32px}
html[data-theme][data-display=desktop] .hero h2{max-width:700px;font-size:30px;line-height:1.17}
html[data-theme][data-display=desktop] .hero p{max-width:680px;font-size:15px;line-height:24px}
html[data-theme][data-display=desktop] .hero-stats{max-width:540px;margin-top:25px}
html[data-theme][data-display=desktop] .section-head h2{font-size:18px}
html[data-theme][data-display=desktop] .section-head p{font-size:12px}
html[data-theme][data-display=desktop] .card{padding:20px}
html[data-theme][data-display=desktop] .card.media-card{padding:16px}
html[data-theme][data-display=desktop] .list:has(>.media-card){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
html[data-theme][data-display=desktop] .list:has(>.media-card) .thumb.wide{height:185px;object-fit:cover}
html[data-theme][data-display=desktop] .list:has(>.media-card) .media-content{padding:16px 4px 4px}
html[data-theme][data-display=desktop] .list:has(>.media-card) .card-row{flex-wrap:wrap;align-items:flex-start;gap:10px}
html[data-theme][data-display=desktop] .list:has(>.media-card) .card-body{flex:1 1 150px}
html[data-theme][data-display=desktop] .dashboard-page{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(0,1fr);grid-template-areas:"search search" "hero commitment" "attention tools" "quick quick";align-items:start}
html[data-theme][data-display=desktop] .dashboard-search-row{grid-area:search}
html[data-theme][data-display=desktop] .dashboard-page>.hero{grid-area:hero;min-height:282px}
html[data-theme][data-display=desktop] .dashboard-page>.studio-attention{grid-area:attention}
html[data-theme][data-display=desktop] .dashboard-page>.studio-commitment{grid-area:commitment;padding:22px;border-radius:24px;background:var(--surface);border:1px solid var(--line);min-height:282px;align-content:start}
html[data-theme][data-display=desktop] .studio-commitment>.card{border:0;padding:6px 0 0;box-shadow:none;background:transparent}
html[data-theme][data-display=desktop] .studio-commitment .card-row{flex-wrap:wrap}
html[data-theme][data-display=desktop] .studio-commitment .btn-row{margin-top:24px!important}
html[data-theme][data-display=desktop] .dashboard-page>.studio-tools{grid-area:tools}
html[data-theme][data-display=desktop] .dashboard-page>.studio-quick{grid-area:quick}
html[data-theme][data-display=desktop] .dashboard-page>.card{grid-column:1/-1}
html[data-theme][data-display=desktop] .dashboard-page .quick-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:12px}
html[data-theme][data-display=desktop] .quick-action{padding:18px 7px;min-height:112px;gap:10px}
html[data-theme][data-display=desktop] .card-row{min-width:0}
html[data-theme][data-display=desktop] .bottom-nav{display:none}
html[data-theme][data-display=desktop] .sticky-actions{max-width:1088px;margin:0 auto;background:var(--glass);backdrop-filter:blur(24px);border:1px solid var(--line);border-radius:20px;padding:14px;box-shadow:var(--studio-shadow)}
html[data-theme][data-display=desktop] .tabs{max-width:1088px;margin:0 auto;padding:6px 16px 16px}
html[data-theme][data-display=desktop] .studio-nav,html[data-theme][data-display=desktop] .studio-foot{display:block}
html[data-theme][data-display=desktop] .layout-switch{display:flex}
html[data-theme][data-display=desktop] .directory-search,html[data-theme][data-display=desktop] .route-directory{display:none}
html[data-theme][data-display=desktop] .directory-open .directory-search,html[data-theme][data-display=desktop] .directory-open .route-directory{display:grid}
html[data-theme][data-display=desktop] .directory-open .studio-nav{display:none}
html[data-theme][data-display=phone] .prototype-workspace{display:block;min-height:100dvh}
html[data-theme][data-display=phone] .prototype-sidebar,html[data-theme][data-display=phone] .prototype-inspector{display:none}
html[data-theme][data-display=phone] .prototype-stage{padding:24px;display:flex;flex-direction:column;gap:16px;align-items:center}
html[data-theme][data-display=phone] .preview-toolbar{display:flex;max-width:800px;width:100%;justify-content:center;gap:16px;flex-wrap:wrap}
html[data-theme][data-display=phone] .device-shell{width:390px;height:844px;flex:none}
html[data-theme][data-display=phone] .layout-switch,html[data-theme][data-display=review] .layout-switch{display:flex}
html[data-theme][data-display=review] .preview-toolbar{flex-wrap:wrap;gap:8px}
html[data-theme][data-display=review] .preview-heading{display:none}
html[data-theme] .layout-settings .layout-switch{display:flex;flex-wrap:wrap;margin-top:12px}
html[data-theme] .layout-settings p{font-size:12px;line-height:19px}
@media(min-width:960px) and (max-width:1270px){html[data-theme][data-display=desktop] .prototype-workspace{grid-template-columns:206px minmax(0,1fr)}html[data-theme][data-display=desktop] .preview-toolbar{padding:12px 22px}html[data-theme][data-display=desktop] .preview-heading{display:none}html[data-theme][data-display=desktop] .screen-scroll{padding-inline:8px}html[data-theme][data-display=desktop] .dashboard-page .quick-grid{grid-template-columns:repeat(4,1fr)}html[data-theme][data-display=desktop] .list:has(>.media-card){grid-template-columns:repeat(2,minmax(0,1fr))}html[data-theme][data-display=desktop] .dashboard-page>.hero{padding:24px}html[data-theme][data-display=desktop] .hero h2{font-size:27px}}
@media(max-width:959px){html[data-theme][data-display=mobile] .prototype-workspace{display:block;height:100dvh;min-height:0}html[data-theme][data-display=mobile] .prototype-sidebar,html[data-theme][data-display=mobile] .prototype-inspector,html[data-theme][data-display=mobile] .preview-toolbar{display:none}html[data-theme][data-display=mobile] .prototype-stage{padding:0;display:block;height:100dvh}html[data-theme][data-display=mobile] .device-shell{width:100%;height:100dvh;padding:0;border:0;border-radius:0;box-shadow:none}html[data-theme][data-display=mobile] .mobile-app{border-radius:0}html[data-theme][data-display=mobile] .device-camera{display:none}}
@media(min-width:620px) and (max-width:959px){html[data-theme][data-display=mobile] .page{max-width:740px;width:100%;margin:auto}html[data-theme][data-display=mobile] .quick-grid{grid-template-columns:repeat(4,1fr)}}
@media(prefers-reduced-transparency:reduce){html[data-theme] .appbar,html[data-theme] .bottom-nav,html[data-theme] .sticky-actions{background:var(--surface);backdrop-filter:none}}
@supports not (backdrop-filter:blur(1px)){html[data-theme] .appbar,html[data-theme] .bottom-nav{background:var(--surface)}}
@media(prefers-reduced-motion:reduce){html[data-theme] *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
/* Source artwork. Original PNG colors remain untouched in both themes. */
.figma-icon{display:none;flex:0 0 auto;width:var(--figma-size,24px);height:var(--figma-size,24px);border-radius:8px;overflow:hidden;vertical-align:middle;background:#f7f2ff;line-height:0;pointer-events:none}.figma-icon.is-ready{display:inline-flex;align-items:center;justify-content:center}.figma-icon-image{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;border-radius:0!important;box-shadow:none!important;filter:none!important}.figma-art{filter:none!important}.avatar.figma-art{object-fit:cover}.figma-asset-notice{margin:0 20px 12px;padding:10px 14px;border:1px solid var(--line,#ded5ec);border-radius:12px;background:var(--surface,#fff);color:var(--ink,#201333);font-size:12px;line-height:1.6;display:flex;gap:16px;align-items:center;justify-content:space-between}.figma-asset-notice a{color:var(--primary,#611adf);white-space:nowrap}.figma-asset-notice strong{font-weight:700}.ops-demo-bar+.figma-asset-notice{margin:12px 32px 0}.ops-nav .figma-icon{--figma-size:22px}.ops-metric .figma-icon{--figma-size:24px}@media(max-width:760px){.figma-asset-notice{margin:6px 10px;font-size:11px;gap:8px}.figma-asset-notice span{flex:1}.figma-asset-notice a{white-space:normal}}

/* Keep inserted source icons out of flexible label and badge selectors. */
.ops-side nav a span.figma-icon{flex:0 0 var(--figma-size,22px);width:var(--figma-size,22px);height:var(--figma-size,22px)}
.ops-bell>span.figma-icon{position:static;border:0;padding:0;width:22px;height:22px;background:#f7f2ff}
.ops-checks span.figma-icon{display:none}.ops-checks span.figma-icon.is-ready{display:inline-flex}
.figma-asset-notice{color:var(--ink,#201333)}
