@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root{--bg:#111719;--sidebar:#192225;--panel:#202a2e;--panel2:#1a2326;--line:#354146;--text:#f1f4f4;--muted:#aeb9bc;--orange:#ff6845;--orange2:#ff7957;--radius:14px}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Inter,Arial,sans-serif}
body{font-size:14px}
button{font:inherit;color:inherit;cursor:pointer}
.app{min-height:100vh;display:flex}
.sidebar{width:244px;flex:0 0 244px;background:var(--sidebar);border-right:1px solid var(--line);height:100vh;position:sticky;top:0;display:flex;flex-direction:column;padding:18px 12px 12px;z-index:20}
.brand{display:flex;align-items:center;gap:10px;padding:0 8px 22px;border-bottom:1px solid var(--line)}
.brand-mark,.avatar{width:36px;height:36px;border-radius:10px;background:var(--orange);display:grid;place-items:center;color:#fff;font-size:19px;font-weight:800;flex:none}
.brand-copy{display:flex;flex-direction:column;gap:2px}
.brand-copy strong{font-size:15px;letter-spacing:-.3px}
.brand-copy span,.account-copy span{font-size:10px;color:var(--muted)}
.nav-scroll{overflow:auto;flex:1;padding:17px 0 12px;scrollbar-width:thin}
.nav-group{padding:0 0 14px;margin-bottom:13px;border-bottom:1px solid var(--line)}
.nav-group:last-child{border:0;margin-bottom:0}
.nav-label{color:#839397;text-transform:uppercase;letter-spacing:.08em;font-size:9px;font-weight:800;padding:0 10px 8px}
.nav-link{width:100%;display:flex;align-items:center;gap:10px;text-align:left;border:0;background:transparent;padding:11px 10px;border-radius:9px;color:#c5ced0;font-size:12px;font-weight:600;margin:2px 0;transition:background .16s,color .16s}
.nav-link:hover{background:#263236;color:#fff}
.nav-link.active{background:#303b3f;color:#fff}
.nav-link.active .nav-icon{color:var(--orange)}
.nav-icon{width:16px;text-align:center;font-size:17px;color:#9eabad;line-height:1}
.sidebar-account{border-top:1px solid var(--line);padding:13px 5px 0;display:flex;align-items:center;gap:9px}
.avatar{width:31px;height:31px;border-radius:50%;font-size:14px}
.account-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.account-copy strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dots{border:0;background:transparent;color:var(--muted);font-size:20px}
.main-area{min-width:0;flex:1;display:flex;flex-direction:column}
.topbar{height:66px;min-height:66px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 25px;gap:16px;background:#171f22;position:sticky;top:0;z-index:10}
.breadcrumbs{display:flex;align-items:center;gap:9px;color:#9eabad;font-size:12px}
.breadcrumbs i{font-style:normal;color:#59666a}
.breadcrumbs strong{color:#e9eeee;font-weight:600}
.top-actions{display:flex;align-items:center;gap:9px}
.credits-pill{height:39px;display:flex;align-items:center;gap:5px;padding:0 13px;border:1px solid #3c494e;border-radius:11px;background:#222d31;font-size:12px}
.credits-pill span:last-child{color:#c1cbcd}
.flame{color:var(--orange);font-size:18px}
.buy-button{height:39px;border:0;border-radius:9px;background:var(--orange);padding:0 17px;color:#171b1d;font-weight:800;font-size:12px}
.buy-button:hover{background:#ff805f}
.icon-button{border:1px solid #3a464b;background:#242e32;border-radius:50%;width:37px;height:37px;display:grid;place-items:center;color:#dce2e3}
.profile-button{border:1px solid #3a464b;background:#303a3e;width:37px;height:37px;border-radius:50%;font-weight:800}
.menu-toggle,.sidebar-close{display:none}
.page-content{width:100%;max-width:1800px;margin:0 auto;padding:24px;flex:1}
.footer{border-top:1px solid var(--line);padding:13px 25px;color:#778589;font-size:10px}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius)}
.hero-panel{padding:18px 20px;display:grid;grid-template-columns:1fr 1.05fr;gap:22px;align-items:center;margin-bottom:22px}
.eyebrow{display:inline-flex;width:max-content;padding:5px 9px;border-radius:20px;background:#3a302c;color:var(--orange);font-size:10px;font-weight:800;letter-spacing:.04em}
.hero-panel h1{font-size:clamp(25px,3vw,38px);line-height:1.12;letter-spacing:-1.2px;margin:13px 0 9px}
.hero-panel p{color:#c0cbcd;line-height:1.55;margin:0 0 16px;font-size:13px}
.hero-art{min-height:250px;border-radius:13px;overflow:hidden;background:linear-gradient(140deg,#e5d6c8,#d0bca9);display:flex;align-items:center;justify-content:center;position:relative}
.art-scene{width:88%;height:190px;border:9px solid #c89a66;border-radius:13px;background:linear-gradient(#d9c5a7 0 33%,#5b493d 34% 38%,#a8754d 39% 100%);box-shadow:0 8px 18px #39271c55;position:relative;overflow:hidden}
.art-sun{position:absolute;width:55px;height:55px;border-radius:50%;background:#d8b77c;top:16px;left:43%}
.mountain{position:absolute;bottom:67px;width:0;height:0;border-left:75px solid transparent;border-right:75px solid transparent;border-bottom:115px solid #684b3d;filter:drop-shadow(0 3px 1px #2b211d)}
.mountain:after{content:"";position:absolute;top:18px;left:-19px;border-left:19px solid transparent;border-right:19px solid transparent;border-bottom:31px solid #e4d1b7}
.m1{left:12%}.m2{left:37%;transform:scale(1.2)}.m3{right:1%;transform:scale(.8)}
.tree{position:absolute;bottom:15px;width:0;height:0;border-left:18px solid transparent;border-right:18px solid transparent;border-bottom:75px solid #344b3d}
.tree:after{content:"";position:absolute;top:23px;left:-13px;border-left:13px solid transparent;border-right:13px solid transparent;border-bottom:52px solid #435b48}
.t1{left:7%}.t2{left:20%;transform:scale(.75)}.t3{right:17%;transform:scale(.8)}.t4{right:4%;transform:scale(1.15)}
.river{position:absolute;bottom:-8px;left:31%;width:42%;height:66px;background:#344d53;clip-path:polygon(0 0,100% 0,76% 40%,100% 100%,20% 100%,45% 55%);border-radius:50%}
.hero-actions{display:flex;gap:8px;flex-wrap:wrap}
.btn{border:1px solid #465359;background:#2a3539;border-radius:8px;padding:10px 13px;font-size:11px;font-weight:700}
.btn.primary{background:var(--orange);border-color:var(--orange);color:#171b1d}
.section-title{font-size:18px;margin:0 0 13px;letter-spacing:-.3px}
.studio-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.studio-card{background:var(--panel);border:1px solid transparent;border-radius:12px;padding:13px;display:flex;flex-direction:column;gap:8px;min-height:91px;text-align:left}
.studio-card:hover{border-color:#a64e38;transform:translateY(-1px)}
.studio-card .card-icon{font-size:18px;color:var(--orange)}
.studio-card strong{font-size:13px}
.studio-card span:last-child{font-size:11px;color:var(--muted)}
/* Converter preview keeps the familiar three-column workspace. */
.converter-layout{display:grid;grid-template-columns:minmax(205px,285px) minmax(360px,1fr) minmax(220px,285px);gap:15px;min-height:calc(100vh - 135px)}
.converter-panel{padding:16px;min-width:0}
.converter-panel h2{font-size:19px;margin:3px 0 7px}
.converter-panel .sub{color:var(--muted);font-size:12px;line-height:1.45;margin:0 0 16px}
.choice{width:100%;display:flex;align-items:center;gap:10px;text-align:left;padding:12px 10px;margin:0 0 9px;border:1px solid #414e53;background:#273236;border-radius:9px}
.choice.selected{border-color:#b6533b;background:#392f2d}
.choice .choice-icon{width:34px;height:34px;flex:none;border-radius:9px;background:#49332e;color:var(--orange);display:grid;place-items:center;font-size:19px}
.choice strong{display:block;font-size:12px;margin-bottom:4px}
.choice small{display:block;color:#b9c4c6;font-size:10px;line-height:1.4}
.notice{background:#283337;border:1px solid #46545a;border-radius:8px;padding:11px;margin-top:18px;font-size:11px;color:#c5d0d2}
.before-after{height:100%;display:flex;flex-direction:column;gap:10px}
.before-after h3{text-align:center;font-size:14px;letter-spacing:.08em;margin:2px 0 0}
.upload-area{flex:1;min-height:380px;border:1px solid #46545a;border-radius:9px;background:radial-gradient(ellipse at center,#273236,#151c1f 72%);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px}
.upload-symbol{font-size:65px;color:var(--orange);line-height:1;margin-bottom:20px}
.upload-area h2{font-size:22px;margin:0 0 9px}
.upload-area p{color:var(--muted);font-size:12px;margin:0 0 22px}
.upload-button{border:1px solid #df6a35;background:#a9441e;color:#fff;border-radius:24px;padding:13px 22px;font-weight:700}
.gallery-heading{display:flex;justify-content:space-between;align-items:center;margin:15px 0 9px;font-size:12px}
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.gallery-tile{aspect-ratio:1;background:linear-gradient(135deg,#394448,#20292d);border:1px solid #46545a;border-radius:8px;display:grid;place-items:center;color:#aeb9bc;font-size:22px}
.gallery-tile:first-child{grid-column:span 3;aspect-ratio:1.5}
.wide-button{width:100%;padding:11px;border-radius:8px;background:#303b3f;border:1px solid #46545a;font-weight:700;font-size:12px}
.mock-page{max-width:1050px;margin:0 auto}
.mock-page .panel{padding:22px;margin-bottom:15px}
.mock-page h1{font-size:29px;margin:12px 0}
.mock-page p{color:var(--muted);line-height:1.6}
.mobile-only{display:none}
@media(max-width:1120px){.sidebar{width:218px;flex-basis:218px}.converter-layout{grid-template-columns:220px minmax(300px,1fr)}.gallery-panel{grid-column:1/-1}.gallery-grid{grid-template-columns:repeat(6,1fr)}.gallery-tile:first-child{grid-column:span 1;aspect-ratio:1}}
@media(max-width:760px){.sidebar{position:fixed;left:0;top:0;bottom:0;height:100dvh;width:270px;transform:translateX(-102%);transition:transform .22s ease;box-shadow:18px 0 45px #0008}.sidebar.open{transform:translateX(0)}.sidebar-close{display:grid;margin-left:auto}.sidebar-scrim{position:fixed;inset:0;background:#0009;z-index:19;display:none}.sidebar-scrim.show{display:block}.menu-toggle{display:grid}.topbar{height:58px;min-height:58px;padding:0 12px;gap:9px}.breadcrumbs{margin-right:auto;font-size:11px}.top-actions{gap:5px}.credits-pill{height:34px;padding:0 8px;font-size:10px}.buy-button{height:34px;padding:0 10px;font-size:10px}.notification{display:none}.profile-button{width:33px;height:33px}.page-content{padding:13px}.hero-panel{grid-template-columns:1fr;padding:15px;gap:14px}.hero-art{min-height:185px}.art-scene{height:145px}.hero-panel h1{font-size:28px}.converter-layout{display:flex;flex-direction:column;min-height:0}.converter-panel{padding:13px}.converter-left{order:1}.converter-centre{order:2;min-height:390px}.gallery-panel{order:3}.upload-area{min-height:310px}.choice{padding:10px}.studio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer{padding:12px}.nav-scroll{overscroll-behavior:contain}}
@media(max-width:420px){.breadcrumbs span,.breadcrumbs i{display:none}.credits-pill span:last-child{display:none}.buy-button{font-size:9px;padding:0 8px}.studio-grid{grid-template-columns:1fr 1fr}.hero-actions .btn{flex:1}.converter-panel h2{font-size:17px}}


/* Sidebar collapse control: centred on the sidebar's right divider */
.sidebar{position:sticky;overflow:visible}
.collapse-toggle{
  position:absolute;
  right:-12px;
  top:50%;
  transform:translateY(-50%);
  z-index:35;
  width:24px;
  height:24px;
  border:1px solid #465359;
  border-radius:50%;
  background:#263237;
  color:#e8eeee;
  display:grid;
  place-items:center;
  font-size:19px;
  line-height:1;
  padding:0 0 2px;
  box-shadow:0 2px 8px #0005;
}
.collapse-toggle:hover{background:var(--orange);border-color:var(--orange);color:#15191b}
.app.sidebar-collapsed .collapse-toggle{right:-12px;top:50%;transform:translateY(-50%) rotate(180deg)}
@media(max-width:760px){.collapse-toggle{display:none}}


/* Functional desktop compact-sidebar layout */
.app .sidebar{
  transition:width .2s ease, flex-basis .2s ease;
}
.app.sidebar-collapsed .sidebar{
  width:76px;
  flex:0 0 76px;
  padding-left:10px;
  padding-right:10px;
}
.app.sidebar-collapsed .brand{
  justify-content:center;
  padding-left:0;
  padding-right:0;
}
.app.sidebar-collapsed .brand-copy,
.app.sidebar-collapsed .nav-label,
.app.sidebar-collapsed .nav-link > span:not(.nav-icon),
.app.sidebar-collapsed .account-copy,
.app.sidebar-collapsed .dots{
  display:none;
}
.app.sidebar-collapsed .nav-link{
  justify-content:center;
  padding:12px 5px;
}
.app.sidebar-collapsed .nav-icon{
  width:auto;
  font-size:19px;
}
.app.sidebar-collapsed .sidebar-account{
  justify-content:center;
  padding-left:0;
  padding-right:0;
}
.app.sidebar-collapsed .nav-group{
  padding-bottom:11px;
}
@media(max-width:760px){
  .app.sidebar-collapsed .sidebar{width:244px;flex-basis:244px}
}


/* Redesigned sidebar navigation */
.nav-icon{width:19px;height:19px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 19px;color:var(--orange)}
.nav-icon svg,.section-chevron svg{width:19px;height:19px;display:block;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav-link{color:#fff;min-height:41px;gap:12px;padding:10px 11px;font-size:12px}
.nav-link:hover{color:#fff;background:#293438}
.nav-link.active{color:#fff;background:#303b3f;box-shadow:inset 2px 0 0 var(--orange)}
.nav-link.active .nav-icon{color:var(--orange)}
.nav-label{color:#91a1a6;padding-left:11px}
.nav-section-toggle{width:100%;border:0;background:transparent;display:flex;align-items:center;justify-content:space-between;padding:0 10px 8px;color:#fff;cursor:pointer}
.section-heading{display:flex;align-items:center;gap:9px}
.section-heading .nav-label{padding:0;color:#91a1a6}
.section-chevron{display:inline-flex;color:var(--orange);transition:transform .18s ease}
.section-chevron svg{width:16px;height:16px}
.studios-group.collapsed .section-chevron{transform:rotate(-90deg)}
.studios-group.collapsed .studios-links{display:none}
.studios-group .nav-link{padding-left:11px}
.nav-bottom{margin-top:2px}
.app.sidebar-collapsed .nav-section-toggle{justify-content:center;padding:3px 0 9px}
.app.sidebar-collapsed .nav-section-toggle .nav-label,.app.sidebar-collapsed .section-chevron{display:none}
.app.sidebar-collapsed .nav-link{justify-content:center}
.app.sidebar-collapsed .nav-icon{width:19px;height:19px;flex-basis:19px}
@media(max-width:760px){.nav-link{min-height:43px}.nav-section-toggle{padding-top:2px}}


/* Keep the main navigation sections fixed; only the expanded Studios list scrolls */
.nav-scroll{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
  padding:17px 0 12px;
  scrollbar-width:none;
}
.nav-scroll::-webkit-scrollbar{display:none}
.nav-group{flex:0 0 auto}
.studios-group{
  display:flex;
  flex-direction:column;
  flex:0 1 auto;
  min-height:0;
}
.studios-group:not(.collapsed){
  flex:1 1 0;
}
.studios-group .studios-links{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#59666b transparent;
  padding-right:3px;
}
.studios-group .studios-links::-webkit-scrollbar{width:5px}
.studios-group .studios-links::-webkit-scrollbar-track{background:transparent}
.studios-group .studios-links::-webkit-scrollbar-thumb{background:#59666b;border-radius:8px}
.studios-links .nav-link{
  min-height:35px;
  padding:7px 10px;
  gap:10px;
  font-size:11px;
  line-height:1.2;
}
.studios-links .nav-icon,
.studios-links .nav-icon svg{
  width:17px;
  height:17px;
  flex-basis:17px;
}
.nav-bottom{
  margin-top:auto;
  flex:0 0 auto;
}
@media(max-width:760px){
  .nav-scroll{overflow:hidden;min-height:0}
  .studios-group:not(.collapsed){flex:1 1 0}
  .studios-group .studios-links{min-height:0}
}


/* Compact full-sidebar navigation: all menu groups scroll together */
.nav-scroll{
  display:block;
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding:12px 0 10px;
  scrollbar-width:thin;
  scrollbar-color:#59666b transparent;
  overscroll-behavior:contain;
}
.nav-scroll::-webkit-scrollbar{width:5px}
.nav-scroll::-webkit-scrollbar-track{background:transparent}
.nav-scroll::-webkit-scrollbar-thumb{background:#59666b;border-radius:8px}
.nav-group,
.studios-group,
.nav-bottom{
  display:block;
  flex:initial;
  min-height:0;
  margin-top:0;
}
.nav-group{padding-bottom:9px;margin-bottom:9px}
.nav-label{
  font-size:9px;
  line-height:1.2;
  letter-spacing:.08em;
  padding:0 9px 5px;
}
.nav-link{
  min-height:33px;
  padding:7px 9px;
  margin:1px 0;
  gap:9px;
  font-size:11px;
  line-height:1.2;
  border-radius:8px;
}
.nav-icon,
.nav-icon svg{
  width:17px;
  height:17px;
  flex-basis:17px;
}
.nav-section-toggle{
  min-height:30px;
  padding:2px 9px 5px;
  font-size:10px;
}
.section-heading{gap:8px}
.section-chevron svg{width:14px;height:14px}
.studios-group .studios-links{
  display:block;
  flex:initial;
  min-height:0;
  overflow:visible;
  padding:0;
  scrollbar-width:none;
}
.studios-links .nav-link{
  min-height:32px;
  padding:6px 9px;
  gap:9px;
  font-size:10.5px;
}
.studios-links .nav-icon,
.studios-links .nav-icon svg{
  width:16px;
  height:16px;
  flex-basis:16px;
}
.nav-bottom{
  margin-top:0;
  padding-bottom:8px;
}
@media(max-width:760px){
  .nav-scroll{
    display:block;
    overflow-y:auto;
    min-height:0;
    padding-top:10px;
  }
  .nav-link{min-height:36px;font-size:11px}
  .studios-links .nav-link{min-height:34px;font-size:10.5px}
}


/* Image Converter: reclaim the right column and show recent work in an overlay drawer */
.gallery-trigger{display:none;align-items:center;gap:8px;height:39px;padding:0 13px;border:1px solid #3c494e;border-radius:10px;background:#222d31;color:#f1f4f4;font-size:12px;font-weight:700}
.gallery-trigger:not([hidden]){display:inline-flex}
.gallery-trigger:hover{border-color:var(--orange);background:#2b363a}
.gallery-trigger-icon{font-size:17px;color:var(--orange);line-height:1}
.converter-layout-drawer{grid-template-columns:minmax(225px,315px) minmax(0,1fr);min-height:calc(100vh - 135px)}
.converter-layout-drawer .converter-centre{min-height:calc(100vh - 135px)}
.workspace-heading{display:flex;align-items:center;justify-content:center;position:relative;min-height:24px;margin-bottom:10px}
.workspace-heading h3{margin:0;font-size:14px;letter-spacing:.05em}
.workspace-hint{position:absolute;right:4px;color:#8f9da1;font-size:10px}
.converter-layout-drawer .upload-area{min-height:420px}
.gallery-scrim{position:fixed;inset:0;background:rgba(3,8,10,.58);backdrop-filter:blur(2px);z-index:80;opacity:0;visibility:hidden;transition:opacity .22s ease,visibility .22s ease}
.gallery-scrim.show{opacity:1;visibility:visible}
.gallery-drawer{position:fixed;z-index:81;top:0;right:0;width:390px;max-width:min(92vw,420px);height:100dvh;padding:24px 22px 20px;background:#1b2529;border-left:1px solid #435158;box-shadow:-22px 0 65px rgba(0,0,0,.42);transform:translateX(105%);visibility:hidden;transition:transform .25s ease,visibility .25s ease;overflow-y:auto;overscroll-behavior:contain}
.gallery-drawer.open{transform:translateX(0);visibility:visible}
.drawer-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:20px}
.drawer-eyebrow{font-size:9px;font-weight:800;letter-spacing:.13em;color:var(--orange)}
.drawer-header h2{font-size:23px;margin:5px 0 4px;letter-spacing:-.5px}
.drawer-header p{font-size:12px;color:var(--muted);margin:0}
.drawer-close{width:36px;height:36px;flex:none;border:1px solid #46545a;border-radius:10px;background:#263237;color:#fff;font-size:24px;line-height:1}
.drawer-close:hover{border-color:var(--orange);color:var(--orange)}
.drawer-full-gallery{height:43px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;margin-bottom:22px}
.drawer-full-gallery span{color:var(--orange);font-size:17px}
.gallery-drawer .gallery-heading{display:flex;align-items:center;justify-content:space-between;font-size:11px;margin:0 0 10px}
.gallery-drawer .gallery-heading span{color:var(--muted);font-size:10px}
.gallery-feature{width:100%;display:block;text-align:left;padding:0;border:1px solid #46545a;border-radius:12px;overflow:hidden;background:#222d31;color:#fff;margin-bottom:12px}
.gallery-feature-art{height:165px;display:grid;place-items:center;font-size:38px;color:#ff7957;background:radial-gradient(circle at 50% 45%,#3b484c,#1b2428 70%)}
.gallery-feature-caption{display:flex;flex-direction:column;gap:4px;padding:11px 13px}
.gallery-feature-caption strong{font-size:12px}
.gallery-feature-caption small{font-size:10px;color:var(--muted)}
.drawer-gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.drawer-gallery-grid .gallery-tile{width:100%;aspect-ratio:1;border:1px solid #46545a;border-radius:10px;background:linear-gradient(145deg,#354247,#1b2529);color:#ff986f;font-size:24px;display:grid;place-items:center}
.drawer-gallery-grid .gallery-tile:hover,.gallery-feature:hover{border-color:var(--orange)}
.drawer-inspiration{border-top:1px solid var(--line);margin-top:22px;padding-top:17px}
.gallery-drawer .gallery-heading.centered{justify-content:center;margin-bottom:12px}
.social-button{display:flex;align-items:center;justify-content:flex-start;gap:11px;text-align:left;padding:10px 12px;margin-bottom:9px;min-height:57px}
.social-button span{display:flex;flex-direction:column;gap:3px}
.social-button strong{font-size:11px}
.social-button small{font-size:9px;color:var(--muted)}
.social-facebook,.social-youtube{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:17px;flex:none;background:#1877f2}
.social-youtube{background:#e62117;font-size:12px}
@media(max-width:1120px){.converter-layout-drawer{grid-template-columns:215px minmax(0,1fr)}.converter-layout-drawer .converter-centre{min-height:600px}}
@media(max-width:760px){.converter-layout-drawer{display:flex;flex-direction:column;min-height:0}.converter-layout-drawer .converter-centre{min-height:430px}.converter-layout-drawer .upload-area{min-height:310px}.gallery-trigger{height:34px;padding:0 9px;font-size:10px}.gallery-trigger-icon{font-size:15px}.gallery-drawer{padding:20px 16px}.workspace-hint{display:none}}
@media(max-width:420px){.gallery-trigger{padding:0 7px}.gallery-trigger-icon{display:none}.gallery-drawer{max-width:94vw}}


/* Help & Resources stays docked at the bottom of the sidebar.
   Workspace navigation above it remains in the single scroll area. */
.sidebar{
  min-height:100vh;
  height:100vh;
}
.nav-scroll{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
}
.nav-bottom{
  flex:0 0 auto;
  margin:0;
  padding:10px 0 9px;
  border-top:1px solid var(--line);
  background:var(--sidebar);
}
.nav-bottom > .nav-label{
  padding:0 11px 6px;
}
.nav-bottom .nav-link{
  min-height:34px;
  padding:7px 11px;
  margin:1px 0;
  font-size:11px;
}
.nav-social-links{
  display:grid;
  grid-template-columns:1fr;
  gap:5px;
  padding:7px 5px 0;
  margin-top:6px;
  border-top:1px solid rgba(120,140,146,.18);
}
.nav-social-link{
  width:100%;
  min-height:30px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:5px 6px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#fff;
  text-align:left;
  font-size:10px;
  font-weight:600;
}
.nav-social-link:hover{
  background:#293438;
}
.nav-social-icon{
  width:20px;
  height:20px;
  flex:0 0 20px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#fff;
  font-weight:800;
  font-size:13px;
}
.facebook-mark{background:#1877f2}
.youtube-mark{background:#e62117;font-size:9px}
.app.sidebar-collapsed .nav-bottom > .nav-label,
.app.sidebar-collapsed .nav-social-link > span:last-child{
  display:none;
}
.app.sidebar-collapsed .nav-social-links{
  padding-left:0;
  padding-right:0;
}
.app.sidebar-collapsed .nav-social-link{
  justify-content:center;
  padding:5px 0;
}
@media(max-width:760px){
  .sidebar{height:100dvh;min-height:100dvh}
  .nav-scroll{flex:1 1 auto;min-height:0;overflow-y:auto}
  .nav-bottom{flex:0 0 auto}
}


/* Extra-compact sidebar spacing: fit more destinations without changing
   the fixed Help & Resources footer or the expandable Studios behaviour. */
.nav-scroll{
  padding-top:10px;
  padding-bottom:7px;
}
.nav-group{
  padding-bottom:7px;
  margin-bottom:7px;
}
.nav-label{
  padding-bottom:4px;
  font-size:8px;
  letter-spacing:.075em;
}
.nav-link{
  min-height:31px;
  padding:5px 9px;
  margin:1px 0;
  gap:9px;
  font-size:11px;
  line-height:1.15;
}
.nav-icon{
  width:17px;
  height:17px;
  flex-basis:17px;
}
.nav-icon svg{
  width:17px;
  height:17px;
}
.nav-section-toggle{
  padding:0 9px 5px;
}
.section-heading{
  gap:8px;
}
.section-chevron svg{
  width:14px;
  height:14px;
}
.studios-group .nav-link{
  padding-left:9px;
}
.nav-bottom{
  padding-top:7px;
  padding-bottom:6px;
}
.nav-bottom > .nav-label{
  padding:0 9px 3px;
}
.nav-bottom .nav-link{
  min-height:29px;
  padding:5px 9px;
  margin:0;
  font-size:10.5px;
}
.nav-social-links{
  gap:2px;
  padding-top:5px;
  margin-top:4px;
}
.nav-social-link{
  min-height:26px;
  padding:3px 5px;
  font-size:9.5px;
}
.nav-social-icon{
  width:18px;
  height:18px;
  flex-basis:18px;
  font-size:12px;
}
.sidebar-account{
  padding-top:9px;
}
@media(max-width:760px){
  .nav-link{
    min-height:34px;
    padding-top:6px;
    padding-bottom:6px;
  }
  .nav-bottom .nav-link{
    min-height:31px;
  }
}


/* Ultra-compact navigation pass */
.nav-scroll{
  padding-top:6px;
  padding-bottom:4px;
}
.nav-group{
  padding-bottom:4px;
  margin-bottom:4px;
}
.nav-label{
  font-size:8px;
  line-height:1.1;
  padding:0 8px 2px;
  letter-spacing:.07em;
}
.nav-link{
  min-height:25px;
  height:auto;
  padding:3px 8px;
  margin:0;
  gap:7px;
  border-radius:7px;
  font-size:10px;
  line-height:1.1;
}
.nav-icon,
.nav-icon svg{
  width:15px;
  height:15px;
  flex-basis:15px;
}
.nav-section-toggle{
  min-height:23px;
  padding:0 8px 3px;
}
.section-heading{
  gap:6px;
}
.section-chevron svg{
  width:12px;
  height:12px;
}
.studios-group .nav-link,
.studios-links .nav-link{
  min-height:24px;
  padding:3px 8px;
  font-size:9.8px;
  gap:7px;
}
.studios-links .nav-icon,
.studios-links .nav-icon svg{
  width:14px;
  height:14px;
  flex-basis:14px;
}
.nav-bottom{
  padding-top:5px;
  padding-bottom:4px;
}
.nav-bottom > .nav-label{
  padding:0 8px 2px;
}
.nav-bottom .nav-link{
  min-height:23px;
  padding:3px 8px;
  font-size:9.8px;
}
.nav-social-links{
  gap:0;
  padding:3px 4px 0;
  margin-top:3px;
}
.nav-social-link{
  min-height:22px;
  padding:2px 4px;
  gap:7px;
  font-size:9px;
}
.nav-social-icon{
  width:16px;
  height:16px;
  flex-basis:16px;
  font-size:10px;
}
.sidebar-account{
  padding-top:6px;
  gap:7px;
}
@media(max-width:760px){
  .nav-scroll{padding-top:6px;padding-bottom:4px}
  .nav-link{min-height:28px;padding:4px 8px;font-size:10px}
  .studios-links .nav-link{min-height:26px;font-size:9.8px}
  .nav-bottom .nav-link{min-height:25px}
  .nav-social-link{min-height:23px}
}


/* Balanced compact sidebar: restore readable labels/icons while keeping
   the tighter vertical rhythm from the previous revision. */
.nav-scroll{
  padding-top:7px;
  padding-bottom:5px;
}
.nav-group{
  padding-bottom:5px;
  margin-bottom:5px;
}
.nav-label{
  font-size:8.5px;
  line-height:1.15;
  padding:0 9px 3px;
  letter-spacing:.075em;
}
.nav-link{
  min-height:28px;
  padding:4px 9px;
  margin:0;
  gap:8px;
  border-radius:7px;
  font-size:11px;
  line-height:1.15;
}
.nav-icon,
.nav-icon svg{
  width:17px;
  height:17px;
  flex-basis:17px;
}
.nav-section-toggle{
  min-height:26px;
  padding:0 9px 4px;
}
.section-heading{gap:7px}
.section-chevron svg{width:13px;height:13px}
.studios-group .nav-link,
.studios-links .nav-link{
  min-height:27px;
  padding:4px 9px;
  gap:8px;
  font-size:10.8px;
}
.studios-links .nav-icon,
.studios-links .nav-icon svg{
  width:16px;
  height:16px;
  flex-basis:16px;
}
.nav-bottom{
  padding-top:6px;
  padding-bottom:5px;
}
.nav-bottom > .nav-label{
  padding:0 9px 3px;
}
.nav-bottom .nav-link{
  min-height:26px;
  padding:4px 9px;
  font-size:10.5px;
}
.nav-social-links{
  gap:1px;
  padding:4px 4px 0;
  margin-top:4px;
}
.nav-social-link{
  min-height:24px;
  padding:3px 4px;
  gap:8px;
  font-size:9.5px;
}
.nav-social-icon{
  width:17px;
  height:17px;
  flex-basis:17px;
  font-size:11px;
}
.sidebar-account{
  padding-top:7px;
  gap:8px;
}
@media(max-width:760px){
  .nav-scroll{padding-top:7px;padding-bottom:5px}
  .nav-link{min-height:30px;padding:5px 9px;font-size:11px}
  .studios-links .nav-link{min-height:28px;font-size:10.8px}
  .nav-bottom .nav-link{min-height:27px}
  .nav-social-link{min-height:24px}
}


/* Navigation layout: top groups and Help stay fixed; only Studio links scroll */
.sidebar{
  display:flex;
  flex-direction:column;
  height:100vh;
  min-height:0;
  overflow:hidden;
}
.nav-fixed-top{
  flex:0 0 auto;
  min-height:0;
  overflow:visible;
  padding-top:6px;
}
.nav-fixed-top .nav-group{
  flex:0 0 auto;
}
.studios-group{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  min-height:0;
  overflow:hidden;
  margin:0;
  padding:5px 0 0;
  border-bottom:0;
}
.studios-group .nav-section-toggle{
  flex:0 0 auto;
}
.studios-group .studios-links{
  display:block;
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#59666b transparent;
  padding:0 3px 4px 0;
}
.studios-group .studios-links::-webkit-scrollbar{width:5px}
.studios-group .studios-links::-webkit-scrollbar-track{background:transparent}
.studios-group .studios-links::-webkit-scrollbar-thumb{background:#59666b;border-radius:8px}
.studios-group.collapsed{
  flex:0 0 auto;
}
.studios-group.collapsed .studios-links{
  display:none;
}
.nav-bottom{
  flex:0 0 auto;
  margin-top:0;
  background:var(--sidebar);
}
.sidebar-account{
  flex:0 0 auto;
  background:var(--sidebar);
}
@media(max-width:760px){
  .sidebar{
    height:100dvh;
    min-height:0;
  }
  .nav-fixed-top{flex:0 0 auto}
  .studios-group{flex:1 1 auto;min-height:0}
  .studios-group .studios-links{min-height:0;overflow-y:auto}
  .nav-bottom,.sidebar-account{flex:0 0 auto}
}


/* Production workspace shell */
html, body {width:100%;height:100%;min-height:100%;overflow:hidden}
body {margin:0}
.app {height:100vh;min-height:0;overflow:hidden}
.sidebar {height:100vh;min-height:0;overflow:hidden}
.main-area {height:100vh;min-height:0;overflow:hidden}
.topbar {flex:0 0 66px}
.workspace-frame-wrap {position:relative;flex:1 1 auto;min-height:0;overflow:hidden;background:#111719}
#workspaceFrame,.workspace-cached-frame {position:absolute;inset:0;display:block;width:100%;height:100%;border:0;background:#111719}
.workspace-cached-frame[aria-hidden="true"] {visibility:hidden;pointer-events:none}
.gallery-trigger {height:39px;display:inline-flex;align-items:center;gap:8px;border:1px solid #3c494e;border-radius:10px;background:#222d31;color:#f2f5f5;padding:0 13px;font-size:12px;font-weight:750}
.gallery-trigger:hover {background:#303b3f;border-color:#58676d}
.gallery-trigger[hidden] {display:none!important}
.gallery-trigger-icon {font-size:16px;color:var(--orange)}
.auth-actions {display:flex;align-items:center;gap:7px}
.auth-actions[hidden], .profile-button[hidden], .profile-popover[hidden] {display:none!important}
.auth-button {height:39px;border:1px solid #465359;border-radius:9px;background:#2a3539;color:#f4f6f6;padding:0 13px;font-size:12px;font-weight:750}
.auth-button.primary {background:var(--orange);border-color:var(--orange);color:#171b1d}
.profile-wrap {position:relative}
.profile-popover {position:absolute;right:0;top:calc(100% + 9px);width:220px;padding:10px;background:#202a2e;border:1px solid #465359;border-radius:12px;box-shadow:0 16px 36px #0008;z-index:80}
.profile-popover-head {padding:8px 9px 11px;border-bottom:1px solid var(--line);margin-bottom:6px}
.profile-popover-head strong,.profile-popover-head small {display:block}
.profile-popover-head strong {font-size:12px}
.profile-popover-head small {font-size:10px;color:var(--muted);margin-top:3px}
.profile-popover a,.profile-popover button {display:block;width:100%;padding:9px;border:0;border-radius:7px;background:transparent;color:#eef2f2;text-align:left;text-decoration:none;font-size:12px}
.profile-popover a:hover,.profile-popover button:hover {background:#303b3f}
.profile-popover .logout-action {color:#ff7957}
.sidebar-social-link {text-decoration:none;color:inherit}
.sidebar-account {cursor:pointer}
.sidebar-account:hover {background:#202a2e;border-radius:9px}
.app.sidebar-collapsed .nav-fixed-top .nav-group {padding-bottom:8px}
.app.sidebar-collapsed .studios-group .nav-section-toggle {justify-content:center}
.app.sidebar-collapsed .studios-group .studios-links .nav-link {justify-content:center}
.app.sidebar-collapsed .nav-bottom .nav-social-links {display:none}
@media(max-width:760px){
  .app {height:100dvh}
  .main-area {height:100dvh}
  .topbar {flex-basis:58px;height:58px;min-height:58px}
  .workspace-frame-wrap {min-height:0}
  .gallery-trigger {height:34px;padding:0 8px;font-size:10px}
  .credits-pill {height:34px}
  .auth-button {height:34px;padding:0 8px;font-size:10px}
  .profile-popover {right:-4px}
}
@media(max-width:420px){
  .topbar {padding:0 8px}
  .breadcrumbs span,.breadcrumbs i {display:none}
  .top-actions {gap:4px}
  .gallery-trigger {padding:0 7px}
  .gallery-trigger .gallery-trigger-text {display:none}
  .credits-pill span:last-child {display:none}
  .buy-button {font-size:9px;padding:0 8px}
}

.nav-fixed-top{flex:0 0 auto;min-height:0;overflow:visible;padding-top:6px}
.nav-fixed-top .nav-group{flex:0 0 auto}

.credits-pill[hidden],.buy-button[hidden],.profile-wrap[hidden]{display:none!important}
.nav-link{text-decoration:none}
.sidebar-account{width:100%;border-left:0;border-right:0;border-bottom:0;background:transparent;color:inherit;text-align:left;font:inherit}
.sidebar-account:hover{background:#202a2e}
.sidebar-account .avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.profile-button img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}

/* Dock Help & Resources at the bottom even when Studios is collapsed. */
.nav-bottom{margin-top:auto}

/* The persistent Gallery drawer displays real thumbnails from the page's
   existing #galleryGrid; its original preview/full-gallery handlers are reused. */
.gallery-feature-art{padding:8px;background:#151d20}
.gallery-feature-art img{display:block;max-width:100%;max-height:165px;width:100%;height:165px;object-fit:contain;border-radius:6px}
.gallery-feature-art img[hidden]{display:none!important}
.gallery-feature:disabled{cursor:default;opacity:.9}
.drawer-gallery-grid .gallery-drawer-thumb{position:relative;display:block;padding:0;overflow:hidden;min-width:0}
.drawer-gallery-grid .gallery-drawer-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.drawer-gallery-grid .gallery-drawer-thumb .gallery-style-label{position:absolute;left:4px;right:4px;bottom:4px;padding:4px 5px;border-radius:5px;background:rgba(12,17,19,.82);color:#fff;font-size:9px;font-weight:700;line-height:1.2;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.topbar-bell{display:inline-flex;width:17px;height:17px;color:#f1f4f4}.topbar-bell svg{width:17px;height:17px}


/* Mobile app navigation: a fixed bottom bar and an overlay menu sheet.
   Desktop keeps the original persistent left sidebar unchanged. */
@media (max-width:760px){
  .app{display:flex;flex-direction:column;height:100dvh;min-height:0}
  .sidebar{
    position:fixed;left:10px;right:10px;top:auto;bottom:calc(66px + env(safe-area-inset-bottom));
    width:auto;max-width:none;height:auto;max-height:84dvh;min-height:0;
    flex:0 0 auto;padding:12px 12px 9px;border:1px solid rgba(112,130,137,.48);
    overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;scrollbar-width:thin;
    border-radius:18px;background:rgba(25,34,37,.94);
    backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);
    box-shadow:0 18px 55px rgba(0,0,0,.48);z-index:42;
    transform:translateY(calc(100% + 30px));opacity:0;visibility:hidden;
    transition:transform .24s ease,opacity .2s ease,visibility .24s;
  }
  .sidebar.open{transform:translateY(0);opacity:1;visibility:visible}
  .brand{padding:0 5px 10px;gap:9px}
  .brand-mark{width:34px;height:34px}
  .brand-copy strong{font-size:14px}
  .brand-copy span{font-size:10px}
  .sidebar-close{display:grid;width:34px;height:34px}
  .collapse-toggle{display:none!important}
  .nav-fixed-top{padding-top:7px}
  .nav-group{padding-bottom:6px;margin-bottom:6px}
  .nav-label{font-size:9px;padding-bottom:4px}
  .nav-link{min-height:35px;padding:6px 9px;font-size:11px;gap:9px}
  .nav-icon,.nav-icon svg{width:17px;height:17px;flex-basis:17px}
  .studios-group{flex:1 1 auto;min-height:0;padding-top:4px}
  .studios-group .studios-links{max-height:24dvh;overflow-y:auto;overscroll-behavior:contain}
  .studios-group .nav-link,.studios-links .nav-link{min-height:32px;font-size:10.8px}
  .nav-section-toggle{min-height:31px;padding:2px 9px 5px}
  .nav-bottom{padding-top:6px;padding-bottom:2px}
  .nav-bottom .nav-link{min-height:31px;font-size:10.8px}
  .nav-social-links{display:none}
  .sidebar-account{padding-top:7px}
  .sidebar-scrim{position:fixed;inset:0 0 calc(62px + env(safe-area-inset-bottom)) 0;background:rgba(0,0,0,.58);z-index:41;display:none}
  .sidebar-scrim.show{display:block}
  .main-area{height:100dvh;min-height:0;padding-bottom:calc(62px + env(safe-area-inset-bottom));overflow:hidden}
  .topbar{flex:0 0 58px;height:58px;min-height:58px;padding:0 9px;gap:7px}
  .menu-toggle{display:grid;width:34px;height:34px;flex:0 0 34px}
  .breadcrumbs{min-width:0;flex:1;overflow:hidden;white-space:nowrap}
  .breadcrumbs strong{overflow:hidden;text-overflow:ellipsis}
  .top-actions{gap:4px;flex:0 0 auto}
  .mobile-bottom-nav{
    position:fixed;left:0;right:0;bottom:0;z-index:40;
    min-height:calc(62px + env(safe-area-inset-bottom));
    padding:6px 9px calc(6px + env(safe-area-inset-bottom));
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;
    background:rgba(20,28,31,.96);border-top:1px solid rgba(91,108,114,.48);
    backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  }
  .mobile-nav-item{
    min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
    border:0;border-radius:11px;background:transparent;color:#aeb9bc;text-decoration:none;
    font:600 10px/1.1 Inter,Arial,sans-serif;padding:4px 2px;
  }
  .mobile-nav-item.active{color:#fff;background:#293438}
  .mobile-nav-item.active .mobile-nav-icon{color:var(--orange)}
  .mobile-nav-icon{width:20px;height:20px;display:grid;place-items:center;color:#c5ced0}
  .mobile-nav-icon svg{width:20px;height:20px;display:block}
  .mobile-nav-icon.more-dots{font-size:20px;letter-spacing:1px;line-height:15px}
  .mobile-nav-item:active{background:#303b3f}
  .workspace-frame-wrap{min-height:0;flex:1 1 auto}
}
@media (min-width:761px){.mobile-bottom-nav{display:none!important}}

@media (max-width:760px){
  .sidebar.studios-focus .nav-fixed-top,.sidebar.studios-focus .nav-bottom,.sidebar.studios-focus .sidebar-account{display:none}
  .sidebar.studios-focus .studios-group{flex:1 1 auto;min-height:0;padding-top:5px}
  .sidebar.studios-focus .studios-group .studios-links{max-height:none;flex:1 1 auto}
}


/* Fix: keep the desktop sidebar collapse handle fully visible
   above the adjacent page content. */
@media (min-width: 761px) {
  .app > .sidebar {
    z-index: 50;
    overflow: visible;
  }

  .app > .main-area {
    position: relative;
    z-index: 1;
  }

  .app .collapse-toggle {
    right: -13px;
    width: 26px;
    height: 26px;
    z-index: 60;
  }

  .app.sidebar-collapsed .collapse-toggle {
    right: -13px;
  }
}


/* Shared workspace light theme: shell surfaces and navigation. */
:root[data-theme="light"]{color-scheme:light;--bg:#fff;--sidebar:#fff;--panel:#fff;--panel2:#fff;--line:#dedede;--text:#000;--muted:#000}
html[data-theme="light"],html[data-theme="light"] body{background:#fff;color:#111315}
html[data-theme="light"] .sidebar{background:#fff;border-right-color:#dedede}
html[data-theme="light"] .brand-copy strong,html[data-theme="light"] .nav-link,html[data-theme="light"] .nav-section-toggle,html[data-theme="light"] .sidebar-account,html[data-theme="light"] .account-copy strong{color:#171a1c}
html[data-theme="light"] .brand-copy span,html[data-theme="light"] .account-copy span,html[data-theme="light"] .nav-label,html[data-theme="light"] .section-heading .nav-label{color:#000}
html[data-theme="light"] .nav-link:hover,html[data-theme="light"] .nav-section-toggle:hover{background:#fff;color:#000}
html[data-theme="light"] .nav-link.active{background:#fff;color:#000;box-shadow:inset 3px 0 0 var(--orange)}
html[data-theme="light"] .topbar{background:#fff;border-bottom-color:#e1e5e8}
html[data-theme="light"] .breadcrumbs{color:#697277}
html[data-theme="light"] .breadcrumbs i{color:#a3aaae}
html[data-theme="light"] .breadcrumbs strong{color:#171a1c}
html[data-theme="light"] .credits-display{color:#111315}
html[data-theme="light"] .credits-display>span:last-child{color:#687278}
html[data-theme="light"] .icon-button,html[data-theme="light"] .profile-button{background:#fff;border-color:#dedede;color:#000}
html[data-theme="light"] .icon-button:hover,html[data-theme="light"] .profile-button:hover{background:#fff;border-color:var(--orange)}
html[data-theme="light"] .profile-popover{background:#fff;border-color:#dce1e4;color:#111315;box-shadow:0 14px 36px rgba(0,0,0,.14)}
html[data-theme="light"] .profile-popover-head{border-bottom-color:#e4e8ea}
html[data-theme="light"] .profile-popover-head small{color:#687278}
html[data-theme="light"] .profile-popover a,html[data-theme="light"] .profile-popover button{color:#202528}
html[data-theme="light"] .profile-popover a:hover,html[data-theme="light"] .profile-popover button:hover{background:#f1f3f4}
html[data-theme="light"] .sidebar-scrim{background:rgba(12,18,21,.35)}
html[data-theme="light"] .mobile-bottom-nav{background:rgba(255,255,255,.97);border-top-color:#dfe3e6;box-shadow:0 -8px 24px rgba(0,0,0,.06)}
html[data-theme="light"] .mobile-nav-item{color:#687278}
html[data-theme="light"] .mobile-nav-item.active{color:#000;background:#fff}
html[data-theme="light"] .mobile-nav-item.active .mobile-nav-icon{color:var(--orange)}
html[data-theme="light"] .gallery-scrim{background:rgba(15,20,23,.28)}
html[data-theme="light"] .gallery-drawer{background:#fff;border-left-color:#dce1e4;color:#111315;box-shadow:-18px 0 45px rgba(0,0,0,.15)}
html[data-theme="light"] .drawer-header p,html[data-theme="light"] .gallery-drawer .gallery-heading span,html[data-theme="light"] .social-button small{color:#657075}
html[data-theme="light"] .drawer-close,html[data-theme="light"] .gallery-feature,html[data-theme="light"] .drawer-gallery-grid .gallery-tile,html[data-theme="light"] .social-button{background:#fff;border-color:#dedede;color:#000}
html[data-theme="light"] .gallery-feature-art{background:#fff}
html[data-theme="light"] .footer{background:#fff;color:#000;border-top-color:#dedede}
html[data-theme="light"] .collapse-toggle{background:#fff;color:#202629;border-color:#d0d7da;box-shadow:0 2px 8px rgba(0,0,0,.12)}
html[data-theme="light"] .nav-social-link{color:#333b3f}
@media(max-width:760px){html[data-theme="light"] .sidebar{background:#fff;box-shadow:18px 0 45px rgba(0,0,0,.16)}html[data-theme="light"] .topbar{background:#fff}}

/* Credits are plain text, not a pill. */
.credits-display{min-height:37px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 3px;border:0;border-radius:0;background:transparent;color:#f1f4f4;font-size:12px;white-space:nowrap}
.credits-display strong{font-weight:800}.credits-display>span:last-child{color:#aeb9bc}.credits-display .flame{font-size:18px}
.theme-toggle{flex:0 0 37px}.theme-toggle-icon,.theme-toggle-icon svg{width:18px;height:18px;display:block}
@media(max-width:760px){.credits-display{min-height:34px;gap:4px;font-size:10px;padding:0 1px}.credits-display .flame{font-size:16px}.theme-toggle{width:34px;height:34px;flex-basis:34px}.notification{display:inline-grid;width:34px;height:34px}.profile-button{width:33px;height:33px}}
@media(max-width:420px){.topbar{padding:0 8px;gap:6px}.top-actions{gap:5px}.credits-display>span:last-child{display:none}}


/* Use the real MarcAM logo in the workspace sidebar. */
.brand-mark.brand-logo-image {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
  border-radius: 10px;
  background: transparent;
  padding: 0;
}
html[data-theme="light"] .brand-mark.brand-logo-image {
  background: transparent;
}

/* Final light-theme polish for the persistent shell (outside the page iframe). */
html[data-theme="light"] .main-area,
html[data-theme="light"] .workspace-frame-wrap,
html[data-theme="light"] #workspaceFrame,
html[data-theme="light"] .page-content {
  background: #fff !important;
  background-color: #fff !important;
  color: #000 !important;
}
html[data-theme="light"] .topbar,
html[data-theme="light"] .sidebar,
html[data-theme="light"] .mobile-bottom-nav,
html[data-theme="light"] .gallery-drawer,
html[data-theme="light"] .profile-popover {
  background: #fff !important;
  background-color: #fff !important;
  color: #000 !important;
  border-color: #dedede !important;
}
html[data-theme="light"] .notification,
html[data-theme="light"] .notification:hover,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .profile-button,
html[data-theme="light"] .profile-button:hover {
  background: #fff !important;
  color: #000 !important;
  border: 1px solid #d5dadd !important;
  opacity: 1 !important;
}
html[data-theme="light"] .topbar-bell,
html[data-theme="light"] .topbar-bell svg,
html[data-theme="light"] .notification svg,
html[data-theme="light"] .theme-toggle-icon,
html[data-theme="light"] .theme-toggle-icon svg {
  color: #000 !important;
  stroke: #000 !important;
  opacity: 1 !important;
}
html[data-theme="light"] .gallery-trigger,
html[data-theme="light"] .gallery-trigger:hover {
  background: #fff !important;
  color: #000 !important;
  border: 1px solid #ff6845 !important;
  box-shadow: none !important;
}
html[data-theme="light"] .gallery-trigger-icon { color: #ff6845 !important; }
html[data-theme="light"] .nav-link.active,
html[data-theme="light"] .mobile-nav-item.active {
  background: #fff0eb !important;
  color: #000 !important;
}
html[data-theme="light"] .nav-link.active .nav-icon,
html[data-theme="light"] .mobile-nav-item.active .mobile-nav-icon { color: #ff6845 !important; }

/* Site language selector */
.language-picker{position:relative;display:flex;align-items:center}
.language-toggle{display:grid;place-items:center;font-size:20px;line-height:1;flex:0 0 37px}
.language-menu{position:absolute;right:0;top:calc(100% + 10px);width:190px;max-height:min(420px,70vh);overflow:auto;padding:6px;background:var(--panel,#202a2e);border:1px solid var(--line,#3b484d);border-radius:12px;box-shadow:0 14px 36px rgba(0,0,0,.24);z-index:1000}
.language-menu[hidden]{display:none!important}
.language-option{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:0;border-radius:8px;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}
.language-option:hover,.language-option[aria-checked="true"]{background:rgba(255,128,95,.16)}
.language-option .language-flag{font-size:19px}
html[data-theme="light"] .language-menu{background:#fff;color:#111;border-color:#ddd;box-shadow:0 14px 36px rgba(0,0,0,.14)}
@media(max-width:420px){.language-toggle{width:34px;height:34px;flex-basis:34px}.language-menu{right:-38px}}


/* Keep the workspace loading surface in sync with the selected theme.
   These rules must come after the base charcoal backgrounds above. */
html[data-theme="light"] .workspace-frame-wrap,
html[data-theme="light"] #workspaceFrame,
html[data-theme="light"] html[data-theme="dark"] .workspace-frame-wrap,
html[data-theme="dark"] #workspaceFrame,
html[data-theme="dark"] 


/* Keep Google/profile photos fully inside the shared circular avatar. */
.profile-button{overflow:hidden;display:grid;place-items:center;padding:0}
.profile-button img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;border-radius:50%;padding:2px}
.avatar{overflow:hidden}
.avatar img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;border-radius:inherit;padding:2px}


/* Help & Resources More menu: open upward without moving its trigger. */
.nav-bottom {
  position: relative;
}
.nav-more {
  position: relative;
  z-index: 25;
  margin: 1px 0 0;
  padding: 0;
}
.nav-more > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}
.nav-more > summary::-webkit-details-marker {
  display: none;
}
.nav-more-toggle .nav-more-chevron {
  margin-left: auto;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .72;
  transition: transform .22s cubic-bezier(.2,.75,.25,1);
}
.nav-more[open] > .nav-more-toggle .nav-more-chevron {
  transform: rotate(180deg);
}
.nav-more-links {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 7px);
  z-index: 30;
  box-sizing: border-box;
  max-height: min(42vh, 280px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 7px 6px 7px 10px;
  margin: 0;
  border: 1px solid rgba(130,150,158,.28);
  border-left: 2px solid var(--orange, #ff6848);
  border-radius: 9px;
  background: #1b2529;
  box-shadow: 0 10px 28px rgba(0,0,0,.32);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(9px) scale(.985);
  transform-origin: bottom center;
  transition:
    opacity .2s ease,
    transform .24s cubic-bezier(.2,.75,.25,1),
    visibility 0s linear .24s;
}
.nav-more[open] > .nav-more-links {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    opacity .2s ease,
    transform .24s cubic-bezier(.2,.75,.25,1),
    visibility 0s;
}
.nav-more-links .nav-link {
  min-height: 31px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 10.5px;
  border-radius: 6px;
}
.nav-more-links .nav-link + .nav-link {
  margin-top: 2px;
}
.nav-more-toggle:focus-visible {
  outline: 2px solid var(--accent, #ff6848);
  outline-offset: 1px;
}
html[data-theme="light"] .nav-more-links {
  background: #fff;
  border-color: rgba(70,85,92,.2);
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
}
@media (prefers-reduced-motion: reduce) {
  .nav-more-toggle .nav-more-chevron,
  .nav-more-links,
  .nav-more[open] > .nav-more-links {
    transition: none;
  }
}


/* Recent creations: slim edge tab + overlay drawer on image-conversion pages. */
.gallery-trigger,
.gallery-trigger:not([hidden]) {
  position:fixed;
  z-index:79;
  top:50%;
  right:0;
  transform:translateY(-50%);
  width:34px;
  height:76px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:7px 4px;
  border:1px solid #526168;
  border-right:0;
  border-radius:11px 0 0 11px;
  background:#263237;
  color:#f4f6f6;
  box-shadow:-5px 4px 18px rgba(0,0,0,.25);
  cursor:pointer;
  transition:width .18s ease, background .18s ease, border-color .18s ease;
}
.gallery-trigger:not([hidden]){display:flex}
.gallery-trigger:hover{width:40px;background:#303d42;border-color:var(--orange)}
.gallery-trigger-icon{font-size:17px;line-height:1;color:var(--orange)}
.gallery-trigger-chevron{font-size:22px;line-height:12px;color:#dce3e5}
.gallery-trigger[aria-expanded="true"] .gallery-trigger-chevron{transform:rotate(180deg)}
.gallery-trigger[hidden]{display:none!important}
.gallery-scrim{background:rgba(3,8,10,.18);backdrop-filter:none}
.gallery-drawer{z-index:81;width:360px;max-width:min(88vw,390px);padding:24px 20px 20px}
@media(max-width:760px){
  .gallery-trigger,.gallery-trigger:not([hidden]){width:31px;height:66px}
  .gallery-trigger:hover{width:35px}
  .gallery-drawer{width:340px;max-width:88vw;padding:20px 16px}
}
html[data-theme="light"] .gallery-trigger,
html[data-theme="light"] .gallery-trigger:not([hidden]){
  background:#f2f5f6;color:#20282b;border-color:#cbd3d6;
}


/* My Gallery drawer: clearer edge tab and tidy featured-card + six-tile layout. */
.gallery-trigger,
.gallery-trigger:not([hidden]){
  width:64px;
  height:116px;
  gap:9px;
  padding:12px 5px;
  border:1px solid rgba(255,104,69,.78);
  border-right:0;
  border-radius:15px 0 0 15px;
  background:linear-gradient(145deg,#303d42,#202a2e);
  box-shadow:-7px 5px 22px rgba(0,0,0,.34);
}
.gallery-trigger:not([hidden]){display:flex}
.gallery-trigger:hover{width:70px;background:#35444a;border-color:var(--orange)}
.gallery-trigger-icon{display:block;width:29px;height:29px;flex:none;color:var(--orange)}
.gallery-trigger-label{display:block;color:#f4f6f6;font-size:9px;font-weight:850;letter-spacing:1.05px;line-height:1;white-space:nowrap}
.gallery-trigger-chevron{font-size:25px;line-height:14px;color:#e6edef;transition:transform .18s ease}
.gallery-trigger[aria-expanded="true"] .gallery-trigger-chevron{transform:rotate(180deg)}
.gallery-drawer{width:380px;max-width:min(90vw,420px);padding:25px 21px 22px}
.gallery-drawer .drawer-header{margin-bottom:19px}
.gallery-drawer .drawer-header h2{font-size:24px}
.gallery-drawer .gallery-heading{margin-bottom:10px}
.gallery-feature{margin-bottom:14px}
.gallery-feature-art{height:178px;min-height:178px;padding:10px;background:#151d20}
.gallery-feature-art img{width:100%;height:158px;max-height:158px;object-fit:contain;background:#151d20}
.drawer-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.drawer-gallery-grid .gallery-tile,
.drawer-gallery-grid .gallery-tile:first-child,
.drawer-gallery-grid .gallery-drawer-thumb{grid-column:auto!important;width:100%;min-width:0;aspect-ratio:1!important;height:auto!important;overflow:hidden;border-radius:10px}
.drawer-gallery-grid .gallery-drawer-thumb img{width:100%;height:100%;min-height:0;object-fit:contain;background:#151d20}
.drawer-gallery-grid .gallery-drawer-thumb .gallery-style-label{left:4px;right:4px;bottom:4px;padding:4px 5px;font-size:9px}
.drawer-full-gallery{height:46px;justify-content:center;gap:10px;margin-top:16px;margin-bottom:4px;border-color:var(--orange);background:linear-gradient(100deg,#ff6845,#e64f2d);color:#fff}
.drawer-full-gallery span{color:#fff}
html[data-theme="light"] .gallery-trigger,
html[data-theme="light"] .gallery-trigger:not([hidden]){background:linear-gradient(145deg,#fff,#f0f3f4);border-color:#ff6845;box-shadow:-5px 4px 16px rgba(0,0,0,.16)}
html[data-theme="light"] .gallery-trigger-label{color:#20282b}
html[data-theme="light"] .gallery-trigger-chevron{color:#20282b}
html[data-theme="light"] .gallery-feature-art,
html[data-theme="light"] .gallery-feature-art img,
html[data-theme="light"] .drawer-gallery-grid .gallery-drawer-thumb img{background:#f3f5f6}
@media(max-width:760px){
  .gallery-trigger,.gallery-trigger:not([hidden]){width:58px;height:104px;gap:8px;padding:10px 4px}
  .gallery-trigger:hover{width:62px}
  .gallery-trigger-icon{width:26px;height:26px}
  .gallery-trigger-label{font-size:8px;letter-spacing:.8px}
  .gallery-drawer{width:360px;max-width:90vw;padding:21px 16px 18px}
  .gallery-feature-art{height:160px;min-height:160px}
  .gallery-feature-art img{height:140px;max-height:140px}
  .drawer-gallery-grid{gap:8px}
}
@media(max-width:420px){
  .gallery-trigger,.gallery-trigger:not([hidden]){width:54px;height:96px}
  .gallery-trigger:hover{width:58px}
  .gallery-drawer{max-width:92vw}
}
