/* ============================================================
   CLOUD | APPLICATION CHASSIS & CONTROL INTERFACE
   STAGED OWNERSHIP MAP (Build 01, Operation 03)
   ============================================================
   OWNER: Cloud-Interface.css
   SCOPE: fixed application shell, navigation, rails, sheets,
          settings, tools, workspace controls, viewport simulators.
   CONTENT CANVAS: css/Labs.css (independently owned).
   RULE: preserve existing selector behavior, declared values,
         responsive families, and established 1280x800 geometry.
   DO NOT merge these chassis rules into the canvas stylesheet.
   ============================================================ */

@font-face{
  font-family:"Poppins";
  src:url("../fonts/Poppins-Regular.ttf") format("truetype");
  font-style:normal;
  font-weight:400;
  font-display:swap;
}
@font-face{
  font-family:"Poppins";
  src:url("../fonts/Poppins-Medium.ttf") format("truetype");
  font-style:normal;
  font-weight:500;
  font-display:swap;
}
/* ==========================================================================
   MIGHTY INTERFACE V1
   Shared responsive cockpit grammar for AMPLIFY, Creative LABS and CLOUD.

   RESPONSIVE LAW
   Mobile -> Tablet -> Desktop -> Monster
   Family first -> fluid behavior -> stress test -> targeted calibration.

   This file owns application chrome only. Website/project content rendered
   inside .ui-engine-mount remains project-owned.
   ========================================================================== */

:root{--bg:#000;
  --panel:#0b0d12;
  --panel-2:#15171d;
  --panel-3:#20232a;
  --line:#242830;
  --text:#f4f2ed;
  --muted:#a7abb3;
  --orange:#FF6200;
  --magenta:#B815AD;
  --spectrum:linear-gradient(90deg,#FF6200 0%,#FF6200 18%,#B815AD 48%,#B815AD 100%);
  --radius:22px;
  --shadow:0 24px 80px rgba(0,0,0,.38);

  --ui-top:78px;
  --ui-rail:205px;
  --ui-select:285px;
  --ui-work:350px;
  --ui-control:52px;
  --ui-gutter:16px;
  --ui-type:16px;
  --ui-rail-font:16px;
  --ui-panel-intro-font:14px;
  --ui-label-font:13px;
  --ui-panel-top-space:clamp(68px,4vw,142px);
  --notification-badge-x:10px;
  --notification-badge-y:-10px;
  --notification-badge-size:14px;
  --notification-badge-pad:3px;
  --notification-badge-font:8px;
  --top-avatar-font:12px;
}

*{box-sizing:border-box}
html{
  width:100%;
  height:100%;
  overflow:hidden;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body{margin:0;
  width:100%;
  height:100%;
  overflow:hidden;
  background:var(--bg);
  color:var(--text);
  font-family:"Poppins",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;}
button,input,select{font:inherit}
button{cursor:pointer}
img{display:block;max-width:100%}
.state{position:absolute;left:-9999px;opacity:0;pointer-events:none}

/* ==========================================================================
   CLOUD AUTHENTICATION PAINT GATE
   ========================================================================== */
html[data-cloud-auth-state="pending"] body{
  visibility:hidden;
}

/* ==========================================================================
   TOP APPLICATION BAR
   ========================================================================== */
.top{
  position:fixed;
  z-index:100;
  inset:0 0 auto;
  height:var(--ui-top);
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 var(--ui-gutter);
  background:rgba(0,0,0,.96);
  border-bottom:0;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.logo{flex:0 0 190px;
  width:190px;
  height:58px;
  border:0;
  border-radius:13px;
  background:#050505;
  box-shadow:0 0 22px rgba(184,21,173,.17);
  overflow:hidden;}
.logo img{display:block;width:81%;height:100%;object-fit:contain;object-position:left center}
.logo .logo-icon{display:none}
.logo .logo-full{display:block}
.nav{display:flex;align-items:center;gap:3px;min-width:0}
.top>.nav{position:static;height:100%;flex:0 1 auto}
.top>.nav>button:first-child{padding-left:0}

.nav button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-height:43px;
  border:0;
  border-radius:8px;
  background:none;
  color:#e9e8e3;
  padding:0 10px;
  font-size:16px;
  font-weight:500;
  letter-spacing:0;
  white-space:nowrap;}
.nav .on{color:#e9e8e3}
.grow{flex:1;min-width:10px}
.cloud-portal-mobile{display:none}

/* cPanel belongs to the application navigation, not the tool rail. */
.nav .nav-cpanel{display:flex;align-items:center;justify-content:center;min-height:43px;padding:0 9px}
.nav-cpanel img{display:block;width:clamp(88px,7.5vw,120px);height:auto}
.nav-cpanel:hover img,.nav-cpanel:focus-visible img{filter:brightness(1.08)}
.nav-cpanel:focus-visible{outline:1px solid var(--orange);outline-offset:2px}

.cloud-action-secondary{min-height:43px;
  flex:0 0 auto;
  border:0;
  border-radius:10px;
  color:#fff;
  padding:0 17px;
  font-size:16px;
  font-weight:500;
  background:#121419;
  white-space:nowrap;
  display:inline-flex;align-items:center;justify-content:center;text-decoration:none;}
.view{height:auto;min-height:0;flex:0 0 auto;border:0;border-radius:10px;color:#fff;padding:8px 10px;font-size:16px;font-weight:500;line-height:1.2;background:#121419;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;}

.devices{
  display:flex;
  flex:0 0 auto;
  gap:3px;
  padding:4px;
  background:#121419;
  border:1px solid rgba(255,255,255,.10);
  border-radius:11px;
}
.dev{
  width:45px;
  height:39px;
  border:0;
  border-radius:7px;
  background:none;
  color:#fff;
}
.dev.on{background:none;color:var(--orange)}
.dev svg{width:25px;height:25px;stroke:currentColor;fill:none;stroke-width:1.8}

.cloud-action-primary{height:46px;
  flex:0 0 auto;
  border:0;
  border-radius:10px;
  background:var(--orange);
  color:#fff;
  padding:0 15px;
  font-size:16px;
  font-weight:500;
  letter-spacing:0;
  display:inline-flex;align-items:center;justify-content:center;text-decoration:none;white-space:nowrap;}
.pub{height:auto;min-height:0;flex:0 0 auto;border:0;border-radius:10px;background:var(--orange);color:#fff;padding:8px 10px;font-size:16px;font-weight:500;line-height:1.2;letter-spacing:0;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;white-space:nowrap;}
.util{width:38px;height:38px;flex:0 0 auto;border:0;background:none;color:#ddd;display:grid;place-items:center;padding:0}
.util svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.util:hover,.util:focus-visible{color:#fff;outline:none}
.dock-edge{display:none}
/* CLOUD NAVIGATION | Shared original hamburger on every viewport. */
.mobile-menu-toggle{display:grid;place-items:center;align-self:center;flex:0 0 38px;width:38px;height:38px;margin-left:8px;border:0;border-radius:0;background:transparent;color:#fff;padding:0}
.hamburger-lines{display:block;width:27px;height:20px;background:linear-gradient(to bottom,#fff 0 3px,transparent 3px 8px,#fff 8px 11px,transparent 11px 16px,#fff 16px 19px)}
.account-popover{position:fixed;z-index:8000;top:calc(var(--ui-top) + 10px);right:12px;width:min(340px,calc(100vw - 24px));border:1px solid rgba(255,255,255,.10);border-radius:12px;background:#17191e;color:#f1f1f3;box-shadow:0 24px 60px rgba(0,0,0,.58);overflow:hidden}
.account-popover-head{display:grid;grid-template-columns:54px 1fr auto;gap:12px;align-items:center;padding:16px}
.account-avatar-lg{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#272b33;border:1px solid rgba(255,255,255,.10);font-weight:500;font-size:14px}
.account-ident{min-width:0;display:flex;flex-direction:column;gap:3px}
.account-ident strong{font-size:15px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-ident span,.account-kicker,.account-popover-status span{font-size:11px;color:#9297a1;letter-spacing:.05em}
.account-change,.account-popover-actions button,.account-popover-plan button{border:0;background:none;color:var(--orange);padding:0;font-size:11px;font-weight:500}
.account-popover-actions{display:flex;gap:18px;padding:0 16px 16px;border-bottom:1px solid rgba(255,255,255,.10)}
.account-popover-plan{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:16px;border-bottom:1px solid rgba(255,255,255,.10)}
.account-popover-plan strong{font-size:15px}
.account-popover-plan [data-core-binding="broadcasts.message"]{font-size:16px;line-height:1.5}
.account-popover-status{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 16px}
.account-popover-status strong{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:500;color:#d8dbe1}
.account-popover-status i{width:8px;height:8px;border-radius:50%;background:#4ecb71;box-shadow:0 0 10px rgba(78,203,113,.35)}

/* CLOUD APP ACCOUNT + BROADCAST SHELL — single canonical owner. */
.amplify-avatar-toggle{border:1px solid rgba(255,255,255,.10);border-radius:50%;background:#20232a;overflow:hidden;font-size:var(--top-avatar-font);font-weight:500;letter-spacing:.04em}
.amplify-avatar-toggle img{width:100%;height:100%;object-fit:cover;display:none}
.amplify-avatar-toggle [data-avatar-fallback]{display:grid;place-items:center;width:100%;height:100%}
.account-avatar-lg{overflow:hidden}
.account-avatar-lg img{width:100%;height:100%;object-fit:cover;display:none}
/* The fallback initials retain their subtle outline; a real profile image fills the circle without one. */
.amplify-avatar-toggle:has(> img[src]),.account-avatar-lg:has(> img[src]){border:0;background:transparent}
.notification-badge{position:absolute;transform:translate(var(--notification-badge-x),var(--notification-badge-y));min-width:var(--notification-badge-size);height:var(--notification-badge-size);padding:0 var(--notification-badge-pad);border-radius:999px;background:var(--orange);color:#fff;font-size:var(--notification-badge-font);font-weight:500;line-height:var(--notification-badge-size);text-align:center}
.broadcast-popover{right:58px}
.account-popover[hidden],.broadcast-popover[hidden]{display:none}

/* ==========================================================================
   SINGLE MASTER APPLICATION SHELL
   ========================================================================== */
.app{
  position:fixed;
  top:var(--ui-top);
  right:0;
  bottom:0;
  left:0;
  display:flex;
  overflow:hidden;
  background:var(--bg);
}

/* ==========================================================================
   TOOL RAIL
   ========================================================================== */
.rail{
  position:relative;
  z-index:40;
  flex:0 0 var(--ui-rail);
  width:var(--ui-rail);
  height:100%;
  display:flex;
  flex-direction:column;
  padding:16px 12px;
  background:#000;
  border-right:0;
}
.railmain{display:flex;flex:1;min-height:0;flex-direction:column;gap:6px;overflow-y:auto;overscroll-behavior:contain}
.rail-group{display:flex;flex:0 0 auto;align-items:center;min-height:33px;margin-top:12px;padding:0 13px;border-radius:8px;background:var(--orange);color:#fff;font-size:13px;font-weight:500;letter-spacing:.08em;white-space:nowrap}
.rail-group:first-child{margin-top:0}
.rail-wide{display:inline}
.rail-short{display:none}
.rbtn{min-height:var(--ui-control);
  border:0;
  border-radius:10px;
  background:#0b0d12;
  color:#ddd;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 14px;
  font-size:var(--ui-rail-font);
  font-weight:500;
  letter-spacing:0;
  text-align:left;
  cursor:pointer;
  text-decoration:none;white-space:nowrap;}
.rbtn:hover{background:#14171d}
.rbtn.active{background:#181b21;color:#fff}
.dot{
  width:13px;
  height:13px;
  border-radius:50%;
  flex:0 0 13px;
  border:1px solid rgba(255,255,255,.10);
  background:var(--orange);
}
.dot.orange{background:var(--orange)}
.rbtn.active .dot{box-shadow:0 0 12px rgba(255,98,0,.48)}
/* ==========================================================================
   CLOUD NAVIGATION | SHARED NAVIGATION ELEMENTS
   The active rail switches between portrait dock and landscape side rail.
   Landscape behavior is defined only inside the existing responsive families.
   ========================================================================== */
.cloud-nav-icon{display:none}
.cloud-icon-home{display:none}

/* ==========================================================================
   M!LU | FLOATING CHAT LAUNCHER | REUSED PUBLIC HOMEPAGE PATTERN
   Always available across the five LABS pages. Popover logic is unchanged.
   Portrait-phone position stays above the approved bottom dock.
   ========================================================================== */
.ask-milu-float{
  position:fixed;z-index:85;right:0;bottom:24px;
  display:block;width:148px;height:101px;
  padding:0;border:0;background:transparent;
  cursor:pointer;filter:drop-shadow(0 12px 24px rgba(0,0,0,.55));
  transition:transform .18s ease;
}
.ask-milu-float img{display:block;width:100%;height:100%;object-fit:contain}
.ask-milu-float:hover,.ask-milu-float:focus-visible{transform:translateY(-2px)}
.ask-milu-float:focus-visible{outline:2px solid var(--orange);outline-offset:2px}

/* ==========================================================================
   SELECTION + WORK PANELS
   UNIVERSAL SHEET MODEL
   Universal Sheet portrait mechanics are canonical on every device.
   Landscape/desktop sheets fill the usable canvas while preserving top nav + rail.
   ========================================================================== */
.sleeve{
  display:none;
  position:absolute;
  z-index:32;
  left:var(--ui-rail);
  right:0;
  top:auto;
  bottom:0;
  width:auto;
  height:0;
  opacity:0;
  pointer-events:none;
  background:linear-gradient(90deg,var(--orange),var(--magenta),var(--orange));
}
.panel{
  position:absolute;
  z-index:70;
  top:0;
  right:0;
  bottom:0;
  left:var(--ui-rail);
  width:auto;
  height:auto;
  transform:translateY(105%);
  opacity:0;
  overflow:hidden;
  border-right:0;
  border-top:0;
  box-shadow:0 -20px 50px rgba(0,0,0,.55);
  transition:transform .22s ease,opacity .16s ease;
}
.select{background:rgba(21,23,29,.985)}
.work{z-index:75;background:rgba(24,26,31,.985)}
.inner{width:min(100%,680px);margin:0 auto;padding:var(--ui-panel-top-space) 21px 34px}
.toolpane,.workpane{display:none}
.panel h2{margin:0 0 8px;font-size:24px;line-height:1.08;font-weight:500}
.intro{margin:0 0 21px;color:#999fa9;font-size:var(--ui-panel-intro-font);line-height:1.55}
.item{
  width:100%;
  min-height:53px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:9px;
  background:#101217;
  color:#e5e5e7;
  text-align:left;
  padding:0 14px;
  margin-bottom:8px;
  font-size:var(--ui-rail-font);
  font-weight:500;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.item>span:last-child{color:#fff;font-size:1.35em;line-height:1}
.item:hover,.item.active,.item:focus-visible{background:#181b21;border-color:var(--orange);outline:none}
.add{
  width:100%;
  height:45px;
  margin-top:18px;
  border:1px solid var(--orange);
  border-radius:8px;
  color:#fff;
  background:transparent;
  font-weight:500;
}
.field{margin-bottom:18px}
.field label,.field-label{display:block;margin-bottom:7px;color:#fff;font-size:var(--ui-label-font);font-weight:400}
.field input,.field select{
  width:100%;
  height:42px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:7px;
  background:#111318;
  color:#eee;
  padding:0 10px;
}
.field textarea{
  display:block;
  width:100%;
  min-height:110px;
  resize:vertical;
  padding:10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:7px;
  background:#111318;
  color:#eee;
  font:inherit;
  line-height:1.5;
}
.field select{
  appearance:none;
  -webkit-appearance:none;
  padding-right:38px;
  background-color:#111318;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M5.5 7l3.5 3.5L12.5 7' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:18px 18px;
}
.field input[type="range"]{
  appearance:none;
  -webkit-appearance:none;
  height:5px;
  padding:0;
  border:0;
  border-radius:999px;
  background:var(--orange);
  accent-color:var(--orange);
}
.field input[type="range"]::-webkit-slider-runnable-track{height:5px;border-radius:999px;background:var(--orange)}
.field input[type="range"]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:22px;height:22px;margin-top:-8.5px;border:0;border-radius:50%;background:#fff}
.field input[type="range"]::-moz-range-track{height:5px;border:0;border-radius:999px;background:var(--orange)}
.field input[type="range"]::-moz-range-progress{height:5px;border-radius:999px;background:var(--orange)}
.field input[type="range"]::-moz-range-thumb{width:22px;height:22px;border:0;border-radius:50%;background:#fff}
.field input:focus,.field select:focus,.field textarea:focus,.branding-work textarea:focus-visible{border-color:var(--orange);outline:none}
.actions{display:flex;gap:9px;margin-top:25px}
.actions button,.actions label{
  height:46px;
  padding:0 15px;
  border-radius:10px;
  font-family:"Poppins",system-ui,sans-serif;
  font-size:16px;
  font-weight:500;
  letter-spacing:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  cursor:pointer;
}
.cancel{background:#15171b;border:1px solid rgba(255,255,255,.10);color:#ddd}
.save{border:0;background:var(--orange);color:#fff}

/* BRANDING — shared visual controls for every work pane and responsive family. */
.branding-work{--brand-height:42px;--brand-control-font:14px;--brand-detail-font:12px;--brand-picker-font:13px;--brand-icon-size:27px;--brand-right-width:105px;--brand-gap:9px}
.branding-work .field{min-width:0}
.branding-work .field-help{margin:8px 0 0;line-height:1.45}
.branding-work .brand-divider{height:1px;margin:24px 0;background:#3a3e46}
.branding-work .brand-subheading{margin:0 0 16px}
.branding-work .brand-conditional[hidden],.branding-work .brand-social-presentation[hidden],.branding-work .brand-footer-logo[hidden]{display:none}
.branding-work .brand-control-row,.branding-work .brand-color-row{display:grid;grid-template-columns:minmax(0,1fr) var(--brand-right-width);gap:var(--brand-gap);align-items:center}
.branding-work .brand-asset-face{display:flex;min-width:0;height:var(--brand-height);align-items:center;padding:0 10px;border:1px solid rgba(255,255,255,.10);border-radius:7px;background:#111318;color:#eee;font-size:var(--brand-control-font);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.branding-work .brand-browse{width:100%;height:var(--brand-height);padding:0 8px;border:1px solid rgba(255,255,255,.10);border-radius:7px;background:#20232a;color:#fff;font-size:var(--brand-detail-font)}
.branding-work .brand-toggle{display:flex;width:100%;min-height:var(--brand-height);justify-content:space-between;align-items:center;padding:0 10px;border:1px solid rgba(255,255,255,.10);border-radius:7px;background:#111318;color:#eee;font-size:var(--ui-label-font)}
.branding-work .brand-toggle span:last-child{min-width:48px;padding:5px 8px;border-radius:999px;background:#333841;color:#ddd;text-align:center}
.branding-work .brand-toggle[aria-pressed="true"] span:last-child{background:var(--orange);color:#fff}
.branding-work .brand-range-head{display:flex;justify-content:space-between;align-items:center}
.branding-work .brand-toggle .field-label,.branding-work .brand-range-head .field-label{margin-bottom:0}
.branding-work .brand-range-head output{color:#ddd}
.branding-work .brand-range{width:100%;margin:12px 0 8px}
.branding-work .brand-color-trigger{position:relative;display:flex;min-width:0;height:var(--brand-height);align-items:center;gap:11px;margin-bottom:0;padding:0 10px;border:1px solid rgba(255,255,255,.10);border-radius:7px;background:#111318;color:#eee;cursor:pointer}
.branding-work .brand-color-trigger input[type="color"]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0}
.branding-work .brand-swatch{width:var(--brand-icon-size);height:var(--brand-icon-size);flex:0 0 var(--brand-icon-size);border:1px solid rgba(255,255,255,.10);border-radius:50%;background:var(--swatch)}
.branding-work .brand-color-value{font-size:var(--brand-picker-font)}
.branding-work .brand-chevron,.branding-work .brand-picker-button::after{content:"";width:7px;height:7px;flex:0 0 7px;border-right:2px solid var(--orange);border-bottom:2px solid var(--orange);transform:rotate(45deg)}
.branding-work .brand-chevron{margin-left:auto;margin-right:5px}
.branding-work .brand-hex{width:100%;text-transform:uppercase}
.branding-work .brand-hex[aria-invalid="true"]{border-color:#ef6b6b}
.branding-work .brand-picker-button{display:flex;width:100%;min-height:var(--brand-height);align-items:center;gap:8px;padding:0 16px 0 10px;border:1px solid rgba(255,255,255,.10);border-radius:7px;background:#111318;color:#eee;text-align:left;font-size:var(--brand-control-font)}
.branding-work .brand-picker-button::after{margin-left:auto;margin-bottom:3px}
.branding-work .brand-picker-button .brand-platform-icon+span{flex:1}
.branding-work .brand-picker-button:hover,.branding-work .brand-picker-button:focus-visible,.branding-work .brand-browse:focus-visible{border-color:var(--orange);outline:none}
.branding-work .brand-picker-list{margin-top:7px;padding:8px;border:1px solid rgba(255,255,255,.10);border-radius:9px;background:#101217}
.branding-work .brand-picker-list[hidden]{display:none}
.branding-work .brand-picker-search{margin-bottom:8px;appearance:none;-webkit-appearance:none;caret-color:var(--orange);-webkit-tap-highlight-color:transparent}
.branding-work .brand-picker-search::-webkit-search-decoration,.branding-work .brand-picker-search::-webkit-search-cancel-button,.branding-work .brand-picker-search::-webkit-search-results-button,.branding-work .brand-picker-search::-webkit-search-results-decoration{display:none}
.branding-work .brand-picker-section{padding:9px 6px 5px}
.branding-work .brand-picker-divider{height:1px;margin:7px 4px;background:#3a3e46}
.branding-work .brand-picker-options{max-height:280px;overflow-y:auto}
.branding-work .brand-picker-option{display:flex;width:100%;min-height:max(46px,calc(var(--brand-icon-size) + 16px));align-items:center;gap:10px;padding:6px 8px;border:0;border-radius:7px;background:transparent;color:#eee;text-align:left;font-size:var(--brand-control-font)}
.branding-work .brand-picker-option .brand-platform-icon,.branding-work .brand-picker-option .brand-platform-icon svg{width:calc(var(--brand-icon-size) + 4px);height:calc(var(--brand-icon-size) + 4px)}
.branding-work .brand-picker-option .brand-platform-icon{flex-basis:calc(var(--brand-icon-size) + 4px)}
.branding-work .brand-picker-option:hover,.branding-work .brand-picker-option:focus-visible,.branding-work .brand-picker-option[aria-selected="true"]{background:#292d35;color:#fff;outline:none}
.branding-work .brand-picker-option[aria-selected="true"]{box-shadow:inset 3px 0 var(--orange)}
.branding-work .brand-platform-icon{display:inline-flex;width:var(--brand-icon-size);height:var(--brand-icon-size);flex:0 0 var(--brand-icon-size);align-items:center;justify-content:center;color:#fff}
.branding-work .brand-platform-icon svg{display:block;width:var(--brand-icon-size);height:var(--brand-icon-size)}
.branding-work .brand-font-preview{font-family:var(--preview-font),"Poppins",system-ui,sans-serif;font-size:var(--brand-control-font)}
.branding-work .brand-font-upload{display:block;width:100%;margin:0 0 8px;padding:10px;border:1px dashed #565c66;border-radius:7px;background:#181b21;color:#fff;text-align:left;font-size:var(--brand-control-font);font-weight:400}
.branding-work .profile-list{display:flex;flex-direction:column;gap:8px;margin-top:16px}
.branding-work .profile-empty{margin:0}
.branding-work .profile-row{display:grid;grid-template-columns:var(--brand-icon-size) minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;border:1px solid rgba(255,255,255,.10);border-radius:9px;background:#101217}
.branding-work .profile-row>.brand-platform-icon{color:var(--profile-icon-color,#fff)}
.branding-work .profile-row strong,.branding-work .profile-row small{display:block;overflow-wrap:anywhere}
.branding-work .profile-row strong{font-size:var(--brand-control-font);font-weight:500}
.branding-work .profile-row small{margin-top:3px;color:#aeb3bd;font-size:var(--ui-label-font)}
.branding-work .profile-actions{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.branding-work .profile-actions button{padding:6px;border:0;background:transparent;color:var(--orange);font-size:var(--ui-label-font);font-weight:500}
.branding-work .profile-color{grid-column:1/-1;margin:0}
.branding-work .brand-add-profile{margin-top:2px}
.branding-work .brand-segmented{display:flex;gap:6px}
.branding-work .brand-segmented button{flex:1;min-width:0;min-height:var(--brand-height);padding:0 6px;border:1px solid rgba(255,255,255,.10);border-radius:7px;background:#111318;color:#eee;font-size:var(--brand-control-font)}
.branding-work .brand-segmented button[aria-pressed="true"]{border-color:var(--orange);background:#302018;color:#fff}
.branding-work textarea{display:block;width:100%;min-height:110px;resize:vertical;padding:10px;border:1px solid rgba(255,255,255,.10);border-radius:7px;background:#111318;color:#eee;font:inherit}
.branding-work button:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.branding-work :is(.brand-picker-button,.brand-browse,.brand-segmented button):focus-visible{border-color:var(--orange);outline:none}
/* ASK M!LU — global assistant shell, derived from the proven AMPLIFY account-popover grammar. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ask-milu-nav{cursor:pointer}
.ask-milu-popover{position:fixed;z-index:8000;top:calc(var(--ui-top) + 10px);right:12px;bottom:12px;width:min(430px,calc(100vw - 24px));max-height:none;border:1px solid rgba(255,255,255,.10);border-radius:16px;background:#17191e;color:#f1f1f3;box-shadow:0 24px 60px rgba(0,0,0,.58);overflow:hidden;display:flex;flex-direction:column;opacity:0;visibility:hidden;transform:translateY(-8px) scale(.985);transform-origin:top right;pointer-events:none;transition:opacity .17s ease,transform .17s ease,visibility .17s ease}
.ask-milu-popover.open{opacity:1;visibility:visible;transform:translateY(0) scale(1);pointer-events:auto}
.ask-milu-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 14px 12px;border-bottom:1px solid rgba(255,255,255,.10);background:#17191e}
.ask-milu-brand{min-width:0;display:flex;align-items:center;flex:1 1 auto}
.ask-milu-brand img{display:block;width:min(252px,100%);height:auto;object-fit:contain;object-position:left center;flex:0 1 auto}

.ask-milu-close{width:36px;height:36px;flex:0 0 36px;border:0;border-radius:8px;background:transparent;color:#ddd;font-size:27px;line-height:1;display:grid;place-items:center;padding:0}
.ask-milu-close:hover,.ask-milu-close:focus-visible{background:#20232a;color:#fff;outline:none}
.ask-milu-conversation{display:flex;flex:1 1 auto;min-height:0;max-height:none;flex-direction:column;gap:10px;padding:16px;overflow-y:auto;overscroll-behavior:contain;background:#111318}
.ask-milu-message{max-width:88%;padding:11px 13px;border:1px solid rgba(255,255,255,.10);border-radius:14px;font-size:14px;line-height:1.5}
.ask-milu-message strong,.ask-milu-message span{display:block}
.ask-milu-message strong{margin-bottom:3px;font-weight:500}
.ask-milu-message--milu{align-self:flex-start;background:#1c1f25;color:#e9e8e3;border-top-left-radius:5px}
.ask-milu-message--user{align-self:flex-end;background:#2a211d;color:#fff;border-color:rgba(255,98,0,.52);border-top-right-radius:5px}
.ask-milu-prompts{display:flex;flex-wrap:wrap;gap:8px;padding:12px 14px 4px;background:#17191e}
.ask-milu-prompts button{min-height:34px;padding:0 11px;border:1px solid rgba(255,255,255,.10);border-radius:999px;background:#20232a;color:#e9e8e3;font-size:12px;font-weight:500}
.ask-milu-prompts button:hover,.ask-milu-prompts button:focus-visible{border-color:var(--orange);color:#fff;outline:none}
.ask-milu-composer{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:8px;padding:10px 14px 12px;background:#17191e}
.ask-milu-composer input{width:100%;height:44px;border:1px solid rgba(255,255,255,.10);border-radius:10px;background:#111318;color:#eee;padding:0 13px;font-size:16px;outline:none}
.ask-milu-composer input:focus{border-color:var(--orange)}
.ask-milu-composer input::placeholder{color:#838894}
.ask-milu-send{width:40px;height:44px;border:0;border-radius:10px;background:var(--orange);color:#fff;font-size:22px;line-height:1;display:grid;place-items:center;padding:0}
.ask-milu-send:hover,.ask-milu-send:focus-visible{filter:brightness(1.06);outline:none}
.ask-milu-support{padding:0 14px 14px;background:#17191e;color:#9297a1;font-size:11px}
.ask-milu-support a{color:var(--orange);font-weight:500;text-decoration:none}

/* ASK M!LU responsive calibration copied from the public MIGHTY shell. */
@media (max-width:819px){
  /* M!LU float | phone portrait: above retained bottom rail */
  .ask-milu-float{bottom:calc(var(--ui-dock) + var(--ui-dock-offset) + 16px);width:30.8vw;height:20.46vw}

  .mobile-back::before{font-size:clamp(43.74px,calc(2.349vw + max(0px,1.944vw - 58.32px)),194.4px);}

  .ask-milu-popover{
    top:calc(var(--ui-top) + 8px);
    right:8px;
    bottom:8px;
    width:min(360px,calc(100vw - 16px));
    max-height:none;
  }
  .ask-milu-brand img{width:min(238px,85%)}
  .ask-milu-conversation{max-height:min(44dvh,360px)}
}

@media (orientation:portrait) and (min-width:820px){
  /* M!LU float | tablet portrait: stays above the existing dock. */
  .ask-milu-float{bottom:calc(var(--ui-dock) + var(--ui-dock-offset) + 2.43902439vw);width:18.04878049vw;height:12.31707317vw}

  .ask-milu-popover{
    top:calc(var(--ui-top) + 1.2195122vw);
    right:1.70731707vw;
    bottom:1.70731707vw;
    width:min(48.7804878vw,calc(100vw - 3.41463415vw));
    max-height:none;
  }

  /* M!LU native input, message and close controls keep pace with its panel. */
  .ask-milu-head{gap:1.46341463vw;padding:1.70731707vw 1.70731707vw 1.46341463vw}
  .ask-milu-close{width:4.3902439vw;height:4.3902439vw;flex-basis:4.3902439vw;border-radius:.97560976vw;font-size:3.29268293vw}
  .ask-milu-conversation{gap:1.2195122vw;padding:1.95121951vw}
  .ask-milu-message{padding:1.34146341vw 1.58536585vw;border-radius:1.70731707vw;font-size:1.70731707vw}
  .ask-milu-prompts{gap:.97560976vw;padding:1.46341463vw 1.70731707vw .48780488vw}
  .ask-milu-prompts button{min-height:4.14634146vw;padding:0 1.34146341vw;font-size:1.46341463vw}
  .ask-milu-composer{grid-template-columns:minmax(0,1fr) 4.87804878vw;gap:.97560976vw;padding:1.2195122vw 1.70731707vw 1.46341463vw}
  .ask-milu-composer input{height:5.36585366vw;padding-inline:1.58536585vw;border-radius:1.2195122vw;font-size:max(16px,1.95121951vw)}
  .ask-milu-send{width:4.87804878vw;height:5.36585366vw;border-radius:1.2195122vw;font-size:2.68292683vw}
  .ask-milu-support{padding:0 1.70731707vw 1.70731707vw;font-size:1.34146341vw}
}

@media (orientation:landscape) and (max-width:991px) and (max-height:600px){
  .ask-milu-popover.milu-landscape-keyboard{
    top:calc(var(--milu-visual-top) + 4px);
    bottom:calc(var(--milu-visual-bottom) + 4px);
  }
  .ask-milu-head{flex:0 0 auto;min-height:42px;padding:4px 10px}
  .ask-milu-brand img{width:min(110px,100%)}
  .ask-milu-close{width:32px;height:32px;flex-basis:32px;font-size:24px}
  .ask-milu-conversation{min-height:0;max-height:none;padding:7px 10px}
  .ask-milu-message{flex-shrink:0}
  .ask-milu-prompts,.ask-milu-support{display:none}
  .ask-milu-composer{flex:0 0 auto;padding:4px 10px 6px}
  .ask-milu-composer input,.ask-milu-send{height:38px}
}

.cloud-overlay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:clamp(8px,2vw,32px);background:rgba(0,0,0,.93);color:#fff}
.cloud-overlay[hidden]{display:none}
.cloud-shell{display:flex;flex-direction:column;width:min(100%,1200px);height:min(100%,900px);min-height:0;padding:clamp(18px,3vw,44px);border:1px solid rgba(255,255,255,.10);border-radius:16px;background:#16191f;box-shadow:0 30px 100px #000}
.cloud-head{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid rgba(255,255,255,.10);padding-bottom:18px}
.cloud-head small{color:var(--orange);font-size:12px;letter-spacing:.14em}
.cloud-head h2{margin:6px 0 0;font-size:clamp(25px,3vw,42px)}
.cloud-intro{color:#acb1ba}
/* CLOUD | EDITOR TYPOGRAPHY | Local to NEW PDF and NEW TEXT DOCUMENT */
#cloud-editor-heading{font-weight:500}
#cloud-editor-dialog .cloud-intro{font-size:17px}
.cloud-files{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));align-content:start;gap:12px;flex:1;min-height:0;overflow-y:auto;padding:8px 0}
.cloud-file{min-height:110px;padding:18px;border:1px solid rgba(255,255,255,.10);border-radius:9px;background:#20242c;color:#eee;text-align:left;font-size:15px;overflow-wrap:anywhere}
.cloud-file::before{content:"▧";display:block;margin-bottom:10px;color:var(--orange);font-size:25px}
.cloud-file[aria-selected="true"]{border-color:var(--orange);background:#2b2522}
.cloud-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:18px;border-top:1px solid rgba(255,255,255,.10)}
.cloud-shell button:not(.cloud-file):not(.cloud-action-primary):not(.cloud-action-secondary){min-height:42px;padding:0 20px;border:1px solid rgba(255,255,255,.10);border-radius:8px;background:#252a33;color:#fff;cursor:pointer}
.cloud-shell .cloud-select{border-color:var(--orange);background:var(--orange)}
.cloud-shell .cloud-select:disabled{opacity:.4;cursor:default}
.cloud-shell button:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.cloud-shell :is(.cloud-file,.cloud-select):focus-visible{border-color:var(--orange);outline:none}

#tool-branding:checked~.rail label[for="tool-branding"],
#tool-pages:checked~.rail label[for="tool-pages"],
#tool-navigation:checked~.rail label[for="tool-navigation"],
#tool-features:checked~.rail label[for="tool-features"],
#tool-sections:checked~.rail label[for="tool-sections"],
#tool-music:checked~.rail label[for="tool-music"],
#tool-gallery:checked~.rail label[for="tool-gallery"],
#tool-merch:checked~.rail label[for="tool-merch"],
#tool-funnels:checked~.rail label[for="tool-funnels"],
#tool-audience:checked~.rail label[for="tool-audience"],
#tool-seo:checked~.rail label[for="tool-seo"],
#tool-source:checked~.rail label[for="tool-source"]{
  background:#181b21;color:#fff
}
#tool-branding:checked~.select,
#tool-pages:checked~.select,
#tool-navigation:checked~.select,
#tool-features:checked~.select,
#tool-sections:checked~.select,
#tool-music:checked~.select,
#tool-gallery:checked~.select,
#tool-merch:checked~.select,
#tool-funnels:checked~.select,
#tool-audience:checked~.select,
#tool-seo:checked~.select,
#tool-source:checked~.select{
  transform:translateY(0);opacity:1;overflow-y:auto
}
#tool-branding:checked~.select .branding,
#tool-pages:checked~.select .pages,
#tool-navigation:checked~.select .navigation,
#tool-features:checked~.select .features,
#tool-sections:checked~.select .sections,
#tool-music:checked~.select .music,
#tool-gallery:checked~.select .gallery,
#tool-merch:checked~.select .merch,
#tool-funnels:checked~.select .funnels,
#tool-audience:checked~.select .audience,
#tool-seo:checked~.select .seo,
#tool-source:checked~.select .source{display:block}

#tool-branding:checked~#work-logo:checked~.work,
#tool-branding:checked~#work-social:checked~.work,
#tool-branding:checked~#work-background:checked~.work,
#tool-branding:checked~#work-type:checked~.work,
#tool-branding:checked~#work-colors:checked~.work,
#tool-branding:checked~#work-header:checked~.work,
#tool-branding:checked~#work-footer:checked~.work,
#tool-sections:checked~#work-hero:checked~.work,
#tool-music:checked~#work-album:checked~.work,
#work-cloud-upload:checked~.work,
#work-cloud-storage:checked~.work{
  transform:translateY(0);opacity:1;overflow-y:auto
}
#work-logo:checked~.work .logo-settings,
#work-social:checked~.work .social-settings,
#work-background:checked~.work .background-settings,
#work-type:checked~.work .type,
#work-colors:checked~.work .colors,
#work-header:checked~.work .header-settings,
#work-footer:checked~.work .footer-settings,
#work-hero:checked~.work .hero,
#work-album:checked~.work .album,
#work-cloud-upload:checked~.work .cloud-upload-work,
#work-cloud-storage:checked~.work .cloud-storage-work{display:block}

/* ==========================================================================
   WORKSPACE / ENGINE MOUNT
   The application shell owns only the mount geometry.
   ========================================================================== */
.viewport{
  position:relative;
  z-index:1;
  flex:1;
  min-width:0;
  height:100%;
  overflow:auto;
  overscroll-behavior:contain;
  background:#050506;
  display:flex;
  justify-content:center;
  align-items:flex-start;
}
.canvas{
  width:100%;
  min-height:100%;
  flex:0 0 auto;
  background:#000;
  box-shadow:0 0 0 1px rgba(255,255,255,.035);
  transition:width .22s ease;
}
.canvas.mobile{width:min(390px,100%)}
.canvas.tablet{width:min(820px,100%)}
.canvas.desktop{width:100%}
.canvas.monster{width:100%}

/* Account entry: centered, human greeting. */

/* Shared compact application menu component. */
.mobile-app-menu{display:none;position:fixed;z-index:7000;top:calc(var(--ui-top) + 6px);right:var(--ui-gutter);width:max-content;min-width:166px;max-width:calc(100vw - 20px);max-height:calc(100dvh - var(--ui-top) - 12px);padding:8px;background:#17191e;border:1px solid rgba(255,255,255,.10);border-radius:12px;box-shadow:0 24px 60px rgba(0,0,0,.58);overflow-y:auto}
.mobile-app-menu.open{display:block}
.mobile-menu-nav{display:flex;flex-direction:column;gap:2px}
.mobile-menu-nav button,.mobile-menu-nav a{min-height:38px;border:0;border-radius:7px;background:transparent;color:#e9e8e3;text-align:left;padding:0 10px;font-size:16px;font-weight:500;display:flex;align-items:center;gap:9px;white-space:nowrap}
.mobile-menu-nav .dot{width:8px;height:8px;flex-basis:8px;border:0}
.mobile-menu-nav button:hover,.mobile-menu-nav button:focus-visible,.mobile-menu-nav a:hover,.mobile-menu-nav a:focus-visible{background:#181b21;color:var(--orange);outline:none}
.mobile-menu-nav .on{color:var(--orange)}
.mobile-menu-nav a{text-decoration:none}
.mobile-cpanel-link img{display:block;width:118px;height:auto}
.mobile-cpanel-link:hover img,.mobile-cpanel-link:focus-visible img{filter:brightness(1.08)}
.mobile-cpanel-link:focus-visible{outline:1px solid var(--orange);outline-offset:2px}

@media (min-width:820px) and (orientation:landscape){
  /* ========================================================================
     CLOUD NAVIGATION | LANDSCAPE BASE FAMILY (820px+)
     Compact icon rail at left + labeled dock at bottom.
     Portrait families below remain untouched.
     ======================================================================== */
  :root{--ui-rail:76px}
  /* CLOUD NAVIGATION | LANDSCAPE CANVAS-TO-DOCK CLEARANCE
     Keep the workspace above the fixed text dock, not visually against it. */
  /* CLOUD APPLICATION MENU | Landscape canvas reclaims former bottom-dock clearance. */
  .app{bottom:0}
  .rail{align-items:center;padding:12px 8px}
  .railmain{width:100%;align-items:center;gap:7px;overflow-y:auto}
  .rail-group{display:none}
  .rail .rbtn{flex:0 0 auto;width:56px;height:56px;min-height:56px;justify-content:center;gap:0;padding:7px;border-radius:10px;font-size:0}
  .rail .rbtn .dot,.rail .rbtn .cloud-nav-label{display:none}
  .rail .rbtn .cloud-nav-icon{display:block;width:36px;height:36px;object-fit:contain}
  /* CLOUD MENU BUILD07 | Pricing and registration retain the existing
     landscape icon rules and appear alongside the seven other icons. */
  .rail .cloud-icon-home{display:flex}
  .rail .rbtn[aria-current="page"]{background:#181b21}
  .rail .rbtn:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
  /* CLOUD APPLICATION MENU | Dock is hidden, not deleted; every dock style above remains intact. */
    .rail-group{background:transparent;color:#aeb3bd;font-weight:400}
  .railmain{padding-right:clamp(6px,.55vw,28px)}
  .panel h2{margin-bottom:clamp(10px,.75vw,27px)}
  .intro{margin-bottom:clamp(23px,1.55vw,55px)}
}

/* ==========================================================================
   MOBILE FAMILY
   The desktop rail becomes a horizontal tool dock. Panels become sheets.
   ========================================================================== */

/* Shared portrait dock and sheet mechanics; exclusive families follow. */

@media (max-width:819px), (orientation:portrait) and (min-width:820px){
  .mobile-back::before{font-size:clamp(48.6px,calc(2.61vw + max(0px,2.16vw - 64.8px)),216px);}

  :root{--ui-top:64px;
    --ui-rail:0px;
    --ui-select:100vw;
    --ui-work:100vw;
    --ui-control:48px;
    --ui-gutter:10px;
    --ui-dock:64px;
    --ui-dock-offset:14px;}

  .top{gap:6px;padding:0 5px;overflow:visible}
  .top>.nav{display:none}
  .logo{display:block;flex:0 0 52px;width:52px;height:52px;margin-left:-9px;border-radius:8px}
  .logo .logo-icon{display:block}
  .logo .logo-full{display:none}
  .mobile-menu-toggle{display:grid;place-items:center;align-self:center;flex:0 0 34px;width:34px;height:38px;margin-left:8px;border:0;border-radius:0;background:transparent;color:#fff;padding:0}
  .hamburger-lines{display:block;width:27px;height:20px;background:linear-gradient(to bottom,#fff 0 3px,transparent 3px 8px,#fff 8px 11px,transparent 11px 16px,#fff 16px 19px)}
  .grow{display:block;flex:0 0 0;min-width:0}
  .cloud-action-secondary{min-height:40px;padding:0 10px;font-size:14px}
  .view{height:auto;min-height:0;padding:5px 6.25px;font-size:14px}
  .devices{gap:1px;padding:3px}
  .dev{width:30px;height:34px}
  .dev svg{width:20px;height:20px}
  .cloud-action-primary{height:40px;padding:0 9px;font-size:14px}
  .pub{height:auto;min-height:0;padding:5px 6.25px;font-size:14px}
  .util{width:31px;height:36px;font-size:17px}

  
  /* Mobile selection cards share the same visual grammar as tablet portrait. */
  .item{min-height:54px;margin-bottom:8px;padding:0 14px;border:1px solid rgba(255,255,255,.10);border-radius:9px;background:#101217;font-size:14px;font-weight:400}
  .item>span:first-child{letter-spacing:.02em}
  .item>span:last-child{font-size:20px;line-height:1}
  .item:hover,.item.active{background:#181b21;border-color:var(--orange)}

  .app{padding-bottom:calc(var(--ui-dock) + var(--ui-dock-offset) + 8px)}
  .rail{position:fixed;z-index:80;left:0;right:0;bottom:var(--ui-dock-offset);width:100%;height:var(--ui-dock);padding:5px 8px max(5px,env(safe-area-inset-bottom));border-right:0;border-top:0;background:rgba(0,0,0,.98);overflow:visible}
  .railmain{flex:1;flex-direction:row;gap:6px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding-right:28px;scroll-padding-inline:8px}
  .railmain::-webkit-scrollbar{display:none}
  .rbtn{flex:0 0 auto;min-height:50px;padding:0 13px;gap:8px;font-size:14px;border-radius:10px}
  .rail-group{min-height:50px;margin:0 8px 0 16px;padding:0 14px;font-size:13px}
  .rail-group:first-child{margin-left:0}
  .rail-wide{display:none}
  .rail-short{display:inline}
  .dot{width:10px;height:10px;flex-basis:10px}
  .dock-edge{display:grid;place-items:center;position:fixed;z-index:95;bottom:var(--ui-dock-offset);width:30px;height:var(--ui-dock);border:0;color:var(--orange);font-size:25px;opacity:0;pointer-events:none;transition:opacity .15s ease}
  .dock-edge.show{opacity:1;pointer-events:auto}
  .dock-prev{left:0;background:linear-gradient(90deg,#000 45%,rgba(0,0,0,.86) 72%,transparent)}
  .dock-next{right:0;background:linear-gradient(270deg,#000 45%,rgba(0,0,0,.86) 72%,transparent)}

  .sleeve{left:0;right:0;top:auto;bottom:calc(var(--ui-dock) + var(--ui-dock-offset));width:100%;height:0;background:linear-gradient(90deg,var(--orange),var(--magenta),var(--orange))}
  #tool-branding:checked~.sleeve,
  #tool-pages:checked~.sleeve,
  #tool-navigation:checked~.sleeve,
  #tool-features:checked~.sleeve,
  #tool-sections:checked~.sleeve,
  #tool-music:checked~.sleeve,
  #tool-gallery:checked~.sleeve,
  #tool-merch:checked~.sleeve,
  #tool-funnels:checked~.sleeve,
  #tool-audience:checked~.sleeve,
  #tool-seo:checked~.sleeve,
  #tool-source:checked~.sleeve{height:3px;opacity:1}

  .panel{position:fixed;z-index:70;top:var(--ui-top);right:0;bottom:calc(var(--ui-dock) + var(--ui-dock-offset));left:0;width:100%;height:auto;transform:translateY(105%);opacity:0;border-right:0;border-top:0;box-shadow:0 -20px 50px rgba(0,0,0,.55);transition:transform .22s ease,opacity .16s ease}
  .select{background:rgba(21,23,29,.985)}
  .work{z-index:75;background:rgba(24,26,31,.985)}
  #tool-branding:checked~.select,
  #tool-pages:checked~.select,
  #tool-navigation:checked~.select,
  #tool-features:checked~.select,
  #tool-sections:checked~.select,
  #tool-music:checked~.select,
  #tool-gallery:checked~.select,
  #tool-merch:checked~.select,
  #tool-funnels:checked~.select,
  #tool-audience:checked~.select,
  #tool-seo:checked~.select,
  #tool-source:checked~.select{transform:translateY(0);opacity:1;overflow-y:auto}
  #tool-branding:checked~#work-logo:checked~.work,
  #tool-branding:checked~#work-social:checked~.work,
  #tool-branding:checked~#work-background:checked~.work,
  #tool-branding:checked~#work-type:checked~.work,
  #tool-branding:checked~#work-colors:checked~.work,
  #tool-branding:checked~#work-header:checked~.work,
  #tool-branding:checked~#work-footer:checked~.work,
  #tool-sections:checked~#work-hero:checked~.work,
  #tool-music:checked~#work-album:checked~.work,
#work-cloud-upload:checked~.work,
#work-cloud-storage:checked~.work{transform:translateY(0);opacity:1;overflow-y:auto}

  .inner{width:min(100%,520px);margin:0 auto;padding:var(--ui-panel-top-space) 20px 34px}
  .viewport{width:100%}
}
/* COMPACT PHONE — complete mobile presentation below 820px in either orientation. */
@media (max-width:819px){
  :root{--ui-top:78px}
  .sleeve{display:block}
  .top{justify-content:flex-end;gap:clamp(6px,2vw,9px)}
  .bell-btn{display:grid;order:2}
  .cloud-action-secondary{order:2;font-size:clamp(12px,3.85vw,15px);padding-inline:clamp(4px,1.4vw,10px)}
  .view{order:2;font-size:clamp(12px,3.85vw,15px);padding:5px 6.25px}
  .top>.view{background:var(--orange);color:#fff}
  .devices{order:2;gap:0;padding:2px}
  .dev{width:clamp(21px,7.2vw,30px)}
  .pub{display:none}
  .cloud-action-primary{order:3;font-size:clamp(12px,3.85vw,15px);padding-inline:clamp(4px,1.4vw,9px)}
  .logo{display:block;order:0;flex:0 0 clamp(135px,42vw,180px);width:clamp(135px,42vw,180px);height:78px;align-self:flex-start;margin-left:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
  .logo .logo-icon{display:none}
  .logo .logo-full{display:block;width:90%;height:100%;object-fit:contain;object-position:left center}
  .grow{order:1;flex:1;min-width:0}
  .amplify-avatar-toggle{order:3;width:clamp(34px,9vw,36px);height:clamp(34px,9vw,36px);flex-basis:clamp(34px,9vw,36px);margin-left:0;font-size:var(--top-avatar-font)}
  .mobile-menu-toggle{order:4;flex-basis:clamp(27px,8vw,30px);width:clamp(27px,8vw,30px);margin-left:0}
  
  .rbtn{font-size:16px}
  
  .item{font-size:15px}
  .intro{font-size:14px}
  :root{--ui-label-font:13px}
  .actions button,.actions label,.add{font-size:13px}
  .field input,.field select,.branding-work .brand-picker-button{font-size:16px}
  .branding-work .brand-picker-option{font-size:16px}
  .branding-work .profile-row strong{font-size:15px}
  .branding-work .brand-browse,.branding-work .brand-font-upload{font-size:13px}
  .branding-work .brand-segmented button{font-size:13px}
  .branding-work textarea{font-size:16px}
  .account-popover{top:calc(var(--ui-top) + 8px);right:8px;width:min(300px,calc(100vw - 16px))}
}


/* Panel close controls retain the existing radio navigation behavior. */
.mobile-back{
  position:absolute;
  top:0;
  right:0;
  z-index:1;
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  width:clamp(44px,calc(2.6vw + max(0px,1.5vw - 45px)),160px);
  height:clamp(44px,calc(2.6vw + max(0px,1.5vw - 45px)),160px);
  margin:0;
  padding:4px 6px 0 0;
  border:0;
  background:transparent;
  color:var(--orange);
  font-size:0;
  cursor:pointer;
}
.mobile-back::before{
  content:"×";
  display:block;
  width:auto;
  height:auto;
  flex:none;
  background:none;
  color:var(--orange);
  font-size:clamp(54px,calc(2.9vw + max(0px,2.4vw - 72px)),240px);
  font-weight:500;
  line-height:1;
}
.mobile-back:focus-visible{outline:2px solid var(--orange);outline-offset:2px;border-radius:6px}
.panel h2{padding-right:clamp(44px,2.6vw,88px)}

/* TABLET PORTRAIT — approved 820px proportional reference. */

@media (orientation:portrait) and (min-width:820px){
  .sleeve{display:block}
  :root{--ui-top:10vw;--ui-dock:10vw;--ui-dock-offset:2.19512195vw;--ui-control:6.34146341vw;--ui-gutter:1.70731707vw}
  .top{gap:0.73170732vw;padding:0 1.2195122vw 0 0.73170732vw}
  .logo{order:1;flex:0 0 28.15243902vw;width:28.15243902vw;height:10.27317073vw;margin-left:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
  .grow{order:2;flex:1;min-width:0}
  .cloud-action-secondary{order:3}
  .view{order:3}
  .devices{order:4}
  .cloud-action-primary{order:5}
  .pub{order:5}
  .util{order:6}
  .mobile-menu-toggle{order:8}
  .logo .logo-icon{display:none}
  .logo .logo-full{display:block;width:74.52%;max-width:none;height:100%;object-fit:contain;object-position:left center}
  .mobile-menu-toggle{flex-basis:clamp(4.87804878vw,6.5vw,6.58536585vw);width:clamp(4.87804878vw,6.5vw,6.58536585vw);height:6.58536585vw;margin-left:0}
  .cloud-action-secondary{min-height:5.6097561vw;padding:0 clamp(1.2195122vw,2vw,2.07317073vw);font-size:1.95121951vw}
  .view{height:auto;min-height:0;padding:0.97560976vw 1.2195122vw;font-size:1.95121951vw}
  .devices{gap:0.36585366vw;padding:0.36585366vw;border-radius:1.34146341vw}
  .dev{width:clamp(3.90243902vw,5vw,5.12195122vw);height:5.12195122vw;border-radius:0.97560976vw}
  .dev svg{width:3.04878049vw;height:3.04878049vw}
  .cloud-action-primary{height:5.6097561vw;padding:0 clamp(1.2195122vw,2vw,2.07317073vw);font-size:1.95121951vw}
  .pub{height:auto;min-height:0;padding:0.97560976vw 1.2195122vw;font-size:1.95121951vw}
  .util{width:clamp(4.63414634vw,5.75vw,5.85365854vw);height:5.85365854vw;font-size:2.68292683vw}
  .rail{padding:0.97560976vw 1.2195122vw max(0.97560976vw,env(safe-area-inset-bottom))}
  .railmain{gap:0.97560976vw;padding-right:6.34146341vw}
  .rail-group{min-height:7.31707317vw;font-size:1.95121951vw}
  .rbtn{min-height:7.31707317vw;padding:0 2.19512195vw;gap:1.2195122vw;font-size:1.95121951vw;font-weight:500;border-radius:1.34146341vw}
  .dot{width:1.46341463vw;height:1.46341463vw;flex-basis:1.46341463vw}
  .dock-edge{width:4.87804878vw;font-size:3.53658537vw}
  .dock-next{right:0.48780488vw}
  .dock-prev{left:0.48780488vw}
  /* CLOUD | TABLET PORTRAIT | Keep the shared bottom rail and canvas clearance. */

  .intro{font-size:1.95121951vw;line-height:1.55;margin-bottom:2.92682927vw}
  .item{min-height:7.07317073vw;margin-bottom:1.09756098vw;padding:0 1.95121951vw;border:1px solid rgba(255,255,255,.10);border-radius:1.09756098vw;background:#101217;font-size:1.95121951vw}
  .item>span:first-child{letter-spacing:.02em}
  .item>span:last-child{font-size:2.68292683vw;line-height:1}
  .item:hover,.item.active{background:#181b21;border-color:var(--orange)}

  .actions button,.actions label{height:5.6097561vw;padding:0 2.31707317vw;font-size:1.95121951vw}
  .inner{width:min(100%,82.92682927vw);padding:var(--ui-panel-top-space) 3.41463415vw 5.12195122vw}


  /* 820px approved portrait reference: CLOUD's native avatar, bell,
     badges, close controls, popup anchors and sheets share one scale. */
  :root{
    --ui-panel-top-space:8.29268293vw;
    --ui-rail-font:1.95121951vw;
    --ui-panel-intro-font:1.95121951vw;
    --ui-label-font:1.58536585vw;
    --top-avatar-font:1.46341463vw;
    --notification-badge-x:1.2195122vw;
    --notification-badge-y:-1.2195122vw;
    --notification-badge-size:1.70731707vw;
    --notification-badge-pad:.36585366vw;
    --notification-badge-font:.97560976vw;
  }
  .bell-btn{display:grid;order:6;flex:0 0 5.85365854vw;width:5.85365854vw;height:5.85365854vw}
  .bell-btn svg{width:2.92682927vw;height:2.92682927vw}
  .util svg{width:2.92682927vw;height:2.92682927vw}
  .amplify-avatar-toggle{order:7;flex:0 0 5.85365854vw;width:5.85365854vw;height:5.85365854vw;margin:0;border-width:1px;font-size:var(--top-avatar-font)}
  .mobile-menu-toggle .hamburger-lines{
    width:3.29268293vw;height:2.43902439vw;
    background:linear-gradient(to bottom,#fff 0 .36585366vw,transparent .36585366vw .97560976vw,#fff .97560976vw 1.34146341vw,transparent 1.34146341vw 1.95121951vw,#fff 1.95121951vw 2.31707317vw)
  }
  .mobile-back{width:5.36585366vw;height:5.36585366vw;padding:.48780488vw .73170732vw 0 0}
  .panel h2{padding-right:5.36585366vw}
  .mobile-back::before{font-size:5.92682927vw}
  .panel{bottom:calc(var(--ui-dock) + var(--ui-dock-offset))}
  .sleeve{bottom:calc(var(--ui-dock) + var(--ui-dock-offset))}
  .panel h2{font-size:2.92682927vw;margin-bottom:.97560976vw}
  .panel .inner{font-size:1.95121951vw}
  .field{margin-bottom:2.19512195vw}
  .field label,.field-label{margin-bottom:.85365854vw;font-size:1.46341463vw}
  .field input,.field select,.field textarea{height:5.12195122vw;border-radius:.85365854vw;padding-inline:1.2195122vw;font-size:max(16px,1.95121951vw)}
  .field textarea{height:auto;min-height:13.41463415vw;padding-block:1.2195122vw}
  .actions{gap:1.2195122vw;margin-top:3.04878049vw;flex-wrap:wrap}

  .add{height:5.48780488vw;margin-top:2.19512195vw;border-radius:.97560976vw}
  .account-popover{top:calc(var(--ui-top) + 1.2195122vw);right:1.46341463vw;width:min(41.46341463vw,calc(100vw - 2.92682927vw));border-radius:1.46341463vw}
  .account-popover-head{grid-template-columns:6.58536585vw minmax(0,1fr) auto;gap:1.46341463vw;padding:1.95121951vw}
  .account-avatar-lg{width:6.58536585vw;height:6.58536585vw;font-size:1.70731707vw}
  .account-ident strong,.account-popover-plan strong{font-size:1.82926829vw}
  .account-ident span,.account-kicker,.account-popover-status span{font-size:1.34146341vw}
  .account-change,.account-popover-actions button,.account-popover-plan button{font-size:1.34146341vw}
  .account-popover-actions{gap:2.19512195vw;padding:0 1.95121951vw 1.95121951vw}
  .account-popover-plan{gap:.85365854vw;padding:1.95121951vw}
  .account-popover-plan [data-core-binding="broadcasts.message"]{font-size:1.95121951vw}
  .account-popover-status{gap:1.46341463vw;padding:1.70731707vw 1.95121951vw}
  .account-popover-status strong{gap:.85365854vw;font-size:1.34146341vw}
  .account-popover-status i{width:.97560976vw;height:.97560976vw}
  .broadcast-popover{right:6.58536585vw}
  .mobile-app-menu{top:calc(var(--ui-top) + .73170732vw);right:var(--ui-gutter);min-width:20.24390244vw;padding:.97560976vw;border-radius:1.46341463vw}
  .mobile-menu-nav{gap:.24390244vw}
  .mobile-menu-nav button,.mobile-menu-nav a{min-height:4.63414634vw;padding-inline:1.2195122vw;font-size:1.95121951vw;gap:1.09756098vw}
  .mobile-menu-nav .dot{width:.97560976vw;height:.97560976vw;flex-basis:.97560976vw}
  .mobile-cpanel-link img{width:14.3902439vw}
  /* Existing CLOUD overlay/dialog primitives scale with the tablet chassis.
     Keep internal scroll ownership and accessible closing controls. */
  .cloud-overlay{padding:2.19512195vw}
  .cloud-shell{width:min(100%,146.34146341vw);height:min(100%,109.75609756vw);max-height:calc(100dvh - 4.3902439vw);padding:clamp(18px,5.36585366vw,7vw);border-radius:1.95121951vw}
  .cloud-head{gap:2.43902439vw;padding-bottom:2.19512195vw}
  .cloud-head small{font-size:1.46341463vw}
  .cloud-head h2{font-size:clamp(25px,3.04878049vw,5.12195122vw)}
  .cloud-files{grid-template-columns:repeat(auto-fill,minmax(min(100%,23.17073171vw),1fr));gap:1.46341463vw;padding-block:.97560976vw}
  .cloud-file{min-height:13.41463415vw;padding:2.19512195vw;border-radius:1.09756098vw;font-size:1.82926829vw}

}

/* TABLET / SMALL-LAPTOP LANDSCAPE */

@media (min-width:960px) and (max-width:1399px) and (orientation:landscape){
  .mobile-back::before{font-size:clamp(48.6px,calc(2.61vw + max(0px,2.16vw - 64.8px)),216px);}

  :root{--ui-top:clamp(82px,calc(34px + 4.6875vw),98px);
    --ui-rail:5.9375vw;
    --ui-select:clamp(300px,25.8vw,350px);
    --ui-work:clamp(370px,31.6vw,430px);
    --ui-control:clamp(48px,4.6875vw,60px);
    --ui-gutter:clamp(10px,1.4vw,18px);
    --ui-rail-font:clamp(16px,calc(.5vw + 10.88px),17.28px);
    --ui-panel-intro-font:clamp(15px,1.35vw,18px);}

  .top{gap:clamp(4px,.55vw,7px);padding:0 var(--ui-gutter)}
  .logo{flex:0 0 18.03515625vw;
    width:18.03515625vw;
    height:calc(var(--ui-top) - 6px);
    border-radius:0;
    background:transparent;
    box-shadow:none;
    overflow:visible;}
  .logo .logo-full{display:block;
    width:74.52%;
    height:100%;
    object-fit:contain;
    object-position:left center;}

  .top>.nav{left:var(--ui-rail)}
  .nav{gap:1px}
  .nav-cpanel img{width:clamp(78px,8vw,103px)}
  .nav button{min-height:clamp(40px,3.83vw,49px);
    padding:0 clamp(6px,.78vw,10px);
    font-size:clamp(16px,calc(.5vw + 10.88px),17.28px);}

  .cloud-action-secondary{min-height:clamp(40px,3.83vw,49px);
    padding:0 clamp(11px,1.4vw,18px);
    font-size:clamp(16px,calc(.5vw + 10.88px),17.28px);}
.view{height:auto;min-height:0;padding:clamp(6px,.625vw,8px) clamp(7.5px,.78125vw,10px);font-size:clamp(16px,calc(.5vw + 10.88px),17.28px);}
  .devices{gap:clamp(1px,.23vw,3px);padding:3px;border-radius:11px}
  .dev{width:clamp(34px,3.75vw,48px);height:clamp(36px,3.36vw,43px)}
  .dev svg{width:clamp(21px,2.1vw,27px);height:clamp(21px,2.1vw,27px)}
  .cloud-action-primary{height:clamp(40px,3.83vw,49px);
    padding:0 clamp(11px,1.33vw,17px);
    font-size:clamp(16px,calc(.5vw + 10.88px),17.28px);}
.pub{height:auto;min-height:0;padding:clamp(6px,.625vw,8px) clamp(7.5px,.78125vw,10px);font-size:clamp(16px,calc(.5vw + 10.88px),17.28px);}
  .util{width:clamp(34px,3.28vw,42px);height:clamp(34px,3.28vw,42px)}
  .util svg{width:clamp(21px,1.95vw,25px);height:clamp(21px,1.95vw,25px)}

  /* ========================================================================
     CLOUD COMPACT NAVIGATION | 960–1399 LANDSCAPE GEOMETRY
     Canonical 1280 reference: 76px rail, 8px horizontal padding,
     60px icon buttons, 36px icons, 7px gaps.
     ======================================================================== */
  .rail{padding:.9375vw .625vw}
  .railmain{gap:.546875vw;padding-right:0}
  .rail .rbtn{min-height:4.6875vw;width:4.6875vw;height:4.6875vw;padding:.546875vw;gap:0;border-radius:.78125vw;font-size:0}
  .rail .rbtn .cloud-nav-icon{width:2.8125vw;height:2.8125vw}

}

/* Narrow tablet landscape: only navigation changes; the rail/canvas persist. */
@media (min-width:960px) and (max-width:1099px) and (orientation:landscape){
  .top>.nav{display:none}
  .grow{flex:1;min-width:0}
  .mobile-menu-toggle{display:grid;place-items:center;align-self:center;flex:0 0 34px;width:34px;height:38px;border:0;background:transparent;color:#fff;padding:0}
  .hamburger-lines{display:block;width:27px;height:20px;background:linear-gradient(to bottom,#fff 0 3px,transparent 3px 8px,#fff 8px 11px,transparent 11px 16px,#fff 16px 19px)}

}

/* PHONE LANDSCAPE */

@media (min-width:820px) and (max-width:959px) and (orientation:landscape){
  .mobile-back::before{font-size:clamp(48.6px,calc(2.61vw + max(0px,2.16vw - 64.8px)),216px);}

  .top{left:0;right:auto;width:100dvw;max-width:none;padding-left:14px;padding-right:14px}
  .logo{display:block;order:0;flex:0 0 clamp(135px,42vmin,180px);width:clamp(135px,42vmin,180px);height:78px;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
  .logo .logo-icon{display:none}
  .logo .logo-full{display:block;width:90%;height:100%;object-fit:contain;object-position:left center}
  .app{left:0;right:auto;width:100dvw;max-width:none}
  .rail{flex-basis:var(--ui-rail);width:var(--ui-rail);padding:12px 8px}
  .top>.nav{display:none}
  .grow{display:block;flex:1;min-width:0}
  .mobile-menu-toggle{display:grid;place-items:center;align-self:center;flex:0 0 34px;width:34px;height:38px;margin-left:0;border:0;border-radius:0;background:transparent;color:#fff;padding:0}
  .hamburger-lines{display:block;width:27px;height:20px;background:linear-gradient(to bottom,#fff 0 3px,transparent 3px 8px,#fff 8px 11px,transparent 11px 16px,#fff 16px 19px)}
  
  
  .rail{padding-top:16px;padding-bottom:9px}
  
  
}
/* ==========================================================================
   DESKTOP / LAPTOP — one fluid composition
   ========================================================================== */


/* MONSTER / LARGE DISPLAY — aspect variants retain their approved scale. */

/* ==========================================================================
   LARGE-SCREEN WORK PANEL — 1280 × 800 REFERENCE SCALE
   One authoritative owner for Desktop → Ultrawide → 4K → 5K → 8K.
   1 reference px = 0.078125vw.
   ========================================================================== */


/* Short landscape rail density only. */

@media (min-width:960px) and (max-width:1399px) and (max-height:700px) and (orientation:landscape){
  :root{--ui-control:44px}
  .rail{padding-top:10px;padding-bottom:8px}
  .railmain{gap:3px}
  .rbtn{min-height:44px}
}
/* Low-height desktop rail density only. */

/* ==========================================================================
   CLOUD BIDIRECTIONAL 1280 SYSTEM — COMPACT LANDSCAPE + LARGE SCREENS
   One authoritative 1280 reference owner: compact landscape scales down;
   desktop and ultrawide scale up. Portrait families remain separately owned.
   1 reference px = 0.078125vw.
   ========================================================================== */
@media (orientation:landscape) and (min-width:1281px){
  .logo .logo-full{width:74.52%}
}

@media (orientation:landscape) and (min-width:960px), (orientation:landscape) and (min-width:820px) and (max-width:959px) and (max-height:600px){
  /* M!LU float | golden 1280 reference: 148 x 101 px */
  .ask-milu-float{width:11.5625vw;height:7.890625vw;bottom:1.875vw}

  :root{
    --ui-top:7.34375vw;                 /* 94px */
    --ui-rail:5.9375vw;                /* 76px at 1280 */
    --ui-select:25.8vw;                 /* 330.24px */
    --ui-work:31.6vw;                   /* 404.48px */
    --ui-control:4.6875vw;              /* 60px */
    --ui-gutter:1.4vw;                  /* 17.92px */
    --ui-rail-font:1.35vw;              /* 17.28px */
    --ui-panel-intro-font:1.35vw;       /* 17.28px */
    --ui-label-font:1.015625vw;         /* 13px */
    --ui-panel-top-space:5.3125vw;      /* 68px */

    --notification-badge-x:.78125vw;    /* 10px */
    --notification-badge-y:-.78125vw;   /* -10px */
    --notification-badge-size:1.09375vw;/* 14px */
    --notification-badge-pad:.234375vw; /* 3px */
    --notification-badge-font:.625vw;   /* 8px */
  }

  /* ---- Chassis --------------------------------------------------------- */
  .top{
    gap:.546875vw;                      /* 7px */
    padding:0 var(--ui-gutter);
  }

  /* Logo width stays independent of the compact icon rail.
     230.85px / 1280 = 18.03515625vw; matches approved desktop branding. */
  .logo{
    flex:0 0 18.03515625vw;
    width:18.03515625vw;
    height:6.875vw;                     /* 88px */
    border-radius:0;
    background:transparent;
    box-shadow:none;
    overflow:visible;
  }

  .logo .logo-full{
    display:block;
    height:100%;
    object-fit:contain;
    object-position:left center;
  }

  .nav{gap:.078125vw}                   /* 1px */

  .nav-cpanel img{width:8vw}            /* 102.4px */

  .nav button{
    min-height:3.828125vw;              /* 49px */
    padding:0 .78vw;                    /* 9.984px */
    border-radius:.625vw;               /* 8px */
    font-size:var(--ui-rail-font);
  }

  .view{
    height:auto;
    min-height:0;
    padding:.625vw .78125vw;
    border-radius:.78125vw;
    font-size:var(--ui-rail-font);
  }
  .cloud-action-secondary{
    min-height:3.828125vw;
    padding:0 1.4vw;
    border-radius:.78125vw;             /* 10px */
    font-size:var(--ui-rail-font);
  }

  .devices{
    gap:.23vw;
    padding:.234375vw;
    border-width:.078125vw;
    border-radius:.859375vw;            /* 11px */
  }

  .dev{
    width:3.75vw;                       /* 48px */
    height:3.359375vw;                  /* 43px */
    border-radius:.546875vw;            /* 7px */
  }

  .dev svg{
    width:2.1vw;                        /* 26.88px */
    height:2.1vw;
  }

  .pub{
    height:auto;
    min-height:0;
    padding:.625vw .78125vw;
    border-radius:.78125vw;
    font-size:var(--ui-rail-font);
  }
  .cloud-action-primary{
    height:3.828125vw;
    padding:0 1.328125vw;               /* 17px */
    border-radius:.78125vw;
    font-size:var(--ui-rail-font);
  }

  .util{
    width:3.28125vw;                    /* 42px */
    height:3.28125vw;
  }

  .util svg{
    width:1.953125vw;                   /* 25px */
    height:1.953125vw;
  }

  .amplify-avatar-toggle{
    width:3.28125vw;
    height:3.28125vw;
    flex-basis:3.28125vw;
    border-width:.078125vw;
    font-size:.9375vw;                  /* 12px */
  }

  .bell-btn{
    width:3.28125vw;
    height:3.28125vw;
  }
  .bell-btn svg{width:1.953125vw;height:1.953125vw}
  :root{--top-avatar-font:.9375vw}

  /* ========================================================================
     CLOUD COMPACT NAVIGATION | 1280 × 800 REFERENCE GEOMETRY
     Single landscape rail owner. Reference conversion: 1px / 1280 = 0.078125vw.
     Scales compact navigation and the retained portrait-matched dock together.
     ======================================================================== */
  .app{bottom:0} /* CLOUD APPLICATION MENU: canvas occupies released dock space */
  .rail{padding:.9375vw .625vw}
  .railmain{gap:.546875vw;padding-right:0}
  .rail .rbtn{width:4.6875vw;height:4.6875vw;min-height:4.6875vw;padding:.546875vw;border-radius:.78125vw;font-size:0}
  .rail .rbtn .cloud-nav-icon{width:2.8125vw;height:2.8125vw}
  /* Portrait-equivalent bottom dock: 82px height, 60px controls, 16px text. */

  /* CLOUD APPLICATION MENU | 1280-reference hamburger geometry: 38px / 27px / 20px. */
  .mobile-menu-toggle{flex-basis:2.96875vw;width:2.96875vw;height:2.96875vw;margin-left:.625vw}
  .hamburger-lines{width:2.109375vw;height:1.5625vw;background:linear-gradient(to bottom,#fff 0 .234375vw,transparent .234375vw .625vw,#fff .625vw .859375vw,transparent .859375vw 1.25vw,#fff 1.25vw 1.484375vw)}
  .mobile-menu-nav .dot{width:.625vw;height:.625vw;flex-basis:.625vw}

  /* CLOUD APPLICATION MENU | Scale the existing hamburger popover from the 1280 reference. */
  .mobile-app-menu{
    top:calc(var(--ui-top) + .46875vw); /* 6px */
    right:var(--ui-gutter);
    min-width:12.96875vw;               /* 166px */
    max-width:calc(100vw - 1.5625vw);   /* 20px */
    max-height:calc(100dvh - var(--ui-top) - .9375vw); /* 12px */
    padding:.625vw;                     /* 8px */
    border-width:.078125vw;             /* 1px */
    border-radius:.9375vw;              /* 12px */
    box-shadow:0 1.875vw 4.6875vw rgba(0,0,0,.58); /* 24px / 60px */
  }
  .mobile-menu-nav{gap:.15625vw}        /* 2px */
  .mobile-menu-nav button,
  .mobile-menu-nav a{
    min-height:2.96875vw;               /* 38px */
    border-radius:.546875vw;            /* 7px */
    padding:0 .78125vw;                 /* 10px */
    font-size:1.25vw;                   /* 16px */
    gap:.703125vw;                      /* 9px */
  }

  /* ---- Account / Broadcast -------------------------------------------- */
  .account-popover{
    top:calc(var(--ui-top) + .78125vw);
    right:.9375vw;
    width:26.5625vw;                    /* 340px */
    border-width:.078125vw;
    border-radius:.9375vw;              /* 12px */
    box-shadow:0 1.875vw 4.6875vw rgba(0,0,0,.58);
  }

  .account-popover-head{
    grid-template-columns:4.21875vw 1fr auto;
    gap:.9375vw;
    padding:1.25vw;
  }

  .account-avatar-lg{
    width:4.21875vw;
    height:4.21875vw;
    border-width:.078125vw;
    font-size:1.09375vw;
  }

  .account-ident{gap:.234375vw}
  .account-ident strong{font-size:1.171875vw}

  .account-ident span,
  .account-kicker,
  .account-popover-status span{
    font-size:.859375vw;
  }

  .account-change,
  .account-popover-actions button,
  .account-popover-plan button{
    font-size:.859375vw;
  }

  .account-popover-actions{
    gap:1.40625vw;
    padding:0 1.25vw 1.25vw;
    border-bottom-width:.078125vw;
  }

  .account-popover-plan{
    gap:.546875vw;
    padding:1.25vw;
    border-bottom-width:.078125vw;
  }

  .account-popover-plan strong{font-size:1.171875vw}

  .account-popover-plan [data-core-binding="broadcasts.message"]{font-size:1.25vw;line-height:1.5}

  .account-popover-status{
    gap:.9375vw;
    padding:1.09375vw 1.25vw;
  }

  .account-popover-status strong{
    gap:.546875vw;
    font-size:.859375vw;
  }

  .account-popover-status i{
    width:.625vw;
    height:.625vw;
    box-shadow:0 0 .78125vw rgba(78,203,113,.35);
  }

  .broadcast-popover{right:4.53125vw}   /* 58px */

  /* ---- Sheets / Work Panels ------------------------------------------- */
  .mobile-back{
    width:3.4375vw;                     /* 44px */
    height:3.4375vw;
    padding:.3125vw .46875vw 0 0;       /* 4px 6px */
  }

  .mobile-back::before{font-size:3.796875vw} /* 48.6px */

  .mobile-back:focus-visible{
    outline-width:.15625vw;
    outline-offset:.15625vw;
    border-radius:.46875vw;
  }

  .panel h2{
    padding-right:3.4375vw;
    margin-bottom:.625vw;
    font-size:1.875vw;                  /* 24px */
  }

  .inner{
    width:min(calc(100% - 3.28125vw),53.125vw); /* 680px */
    padding:var(--ui-panel-top-space) 1.640625vw 2.65625vw;
  }

  .intro{margin-bottom:1.640625vw}

  .item{
    min-height:4.140625vw;              /* 53px */
    padding:0 1.09375vw;
    margin-bottom:.625vw;
    border-width:.078125vw;
    border-radius:.703125vw;
    font-size:1.35vw;
  }

  .add{
    height:3.515625vw;
    margin-top:1.40625vw;
    border-width:.078125vw;
    border-radius:.625vw;
    font-size:1.25vw;
  }

  .field{margin-bottom:1.40625vw}

  .field label,.field-label{margin-bottom:.546875vw}

  .field input,.field select{
    height:3.28125vw;
    border-width:.078125vw;
    border-radius:.546875vw;
    padding:0 .78125vw;
    font-size:max(16px,1.25vw);
  }

  .field textarea{
    min-height:8.59375vw;
    padding:.78125vw;
    border-width:.078125vw;
    border-radius:.546875vw;
    font-size:1.25vw;
  }

  .field select{
    padding-right:2.96875vw;
    background-position:right .9375vw center;
    background-size:1.40625vw 1.40625vw;
  }

  .field input[type="range"]{height:.390625vw}
  .field input[type="range"]::-webkit-slider-runnable-track{height:.390625vw}
  .field input[type="range"]::-webkit-slider-thumb{
    width:1.71875vw;
    height:1.71875vw;
    margin-top:-.6640625vw;
  }
  .field input[type="range"]::-moz-range-track,
  .field input[type="range"]::-moz-range-progress{height:.390625vw}
  .field input[type="range"]::-moz-range-thumb{
    width:1.71875vw;
    height:1.71875vw;
  }

  .actions{
    gap:.703125vw;
    margin-top:1.953125vw;
  }

  .actions button,.actions label{
    height:3.59375vw;
    padding:0 1.171875vw;
    border-radius:.78125vw;
    font-size:1.25vw;
  }

  /* ---- Branding -------------------------------------------------------- */
  .branding-work{
    --brand-height:3.28125vw;
    --brand-control-font:1.09375vw;
    --brand-detail-font:.9375vw;
    --brand-picker-font:1.015625vw;
    --brand-icon-size:2.109375vw;
    --brand-right-width:8.203125vw;
    --brand-gap:.703125vw;
  }

  .branding-work .field-help{margin-top:.625vw}
  .branding-work .brand-divider{height:.078125vw;margin:1.875vw 0}
  .branding-work .brand-subheading{margin-bottom:1.25vw}

  .branding-work .brand-asset-face,
  .branding-work .brand-toggle{
    padding-left:.78125vw;
    padding-right:.78125vw;
    border-width:.078125vw;
    border-radius:.546875vw;
  }

  .branding-work .brand-browse{
    padding:0 .625vw;
    border-width:.078125vw;
    border-radius:.546875vw;
  }

  .branding-work .brand-toggle span:last-child{
    min-width:3.75vw;
    padding:.390625vw .625vw;
  }

  .branding-work .brand-range{margin:.9375vw 0 .625vw}

  .branding-work .brand-color-trigger{
    gap:.859375vw;
    padding:0 .78125vw;
    border-width:.078125vw;
    border-radius:.546875vw;
  }

  .branding-work .brand-swatch{border-width:.078125vw}

  .branding-work .brand-chevron,
  .branding-work .brand-picker-button::after{
    width:.546875vw;
    height:.546875vw;
    flex-basis:.546875vw;
    border-right-width:.15625vw;
    border-bottom-width:.15625vw;
  }

  .branding-work .brand-chevron{margin-right:.390625vw}

  .branding-work .brand-picker-button{
    gap:.625vw;
    padding:0 1.25vw 0 .78125vw;
    border-width:.078125vw;
    border-radius:.546875vw;
  }

  .branding-work .brand-picker-button::after{margin-bottom:.234375vw}

  .branding-work .brand-picker-list{
    margin-top:.546875vw;
    padding:.625vw;
    border-width:.078125vw;
    border-radius:.703125vw;
  }

  .branding-work .brand-picker-search{margin-bottom:.625vw}
  .branding-work .brand-picker-section{padding:.703125vw .46875vw .390625vw}
  .branding-work .brand-picker-divider{height:.078125vw;margin:.546875vw .3125vw}
  .branding-work .brand-picker-options{max-height:21.875vw}

  .branding-work .brand-picker-option{
    min-height:max(3.59375vw,calc(var(--brand-icon-size) + 1.25vw));
    gap:.78125vw;
    padding:.46875vw .625vw;
    border-radius:.546875vw;
  }

  .branding-work .brand-picker-option .brand-platform-icon,
  .branding-work .brand-picker-option .brand-platform-icon svg{
    width:calc(var(--brand-icon-size) + .3125vw);
    height:calc(var(--brand-icon-size) + .3125vw);
  }

  .branding-work .brand-picker-option .brand-platform-icon{
    flex-basis:calc(var(--brand-icon-size) + .3125vw);
  }

  .branding-work .brand-font-upload{
    margin-bottom:.625vw;
    padding:.78125vw;
    border-width:.078125vw;
    border-radius:.546875vw;
  }

  .branding-work .profile-list{
    gap:.625vw;
    margin-top:1.25vw;
  }

  .branding-work .profile-row{
    gap:.78125vw;
    padding:.78125vw;
    border-width:.078125vw;
    border-radius:.703125vw;
  }

  .branding-work .profile-row small{margin-top:.234375vw}
  .branding-work .profile-actions{gap:.3125vw}
  .branding-work .profile-actions button{padding:.46875vw}
  .branding-work .brand-add-profile{margin-top:.15625vw}
  .branding-work .brand-segmented{gap:.46875vw}

  .branding-work .brand-segmented button{
    padding:0 .46875vw;
    border-width:.078125vw;
    border-radius:.546875vw;
  }

  .branding-work textarea{
    min-height:8.59375vw;
    padding:.78125vw;
    border-width:.078125vw;
    border-radius:.546875vw;
    font-size:1.25vw;
  }

  /* ---- Cloud picker ---------------------------------------------------- */
  .cloud-overlay{padding:2vw}

  .cloud-shell{
    width:min(100%,93.75vw);             /* 1200px */
    height:min(100%,70.3125vw);          /* 900px cap, viewport still wins */
    padding:3vw;                         /* 38.4px */
    border-width:.078125vw;
    border-radius:1.25vw;
    box-shadow:0 2.34375vw 7.8125vw #000;
  }

  .cloud-head{
    gap:1.5625vw;
    border-bottom-width:.078125vw;
    padding-bottom:1.40625vw;
  }

  .cloud-head small{
    font-size:.9375vw;
    letter-spacing:.14em;
  }

  .cloud-head h2{
    margin:.46875vw 0 0;
    font-size:3vw;
  }

  /* CLOUD | EDITOR NOTICE | 1280 reference: 17px = 1.328125vw */
  #cloud-editor-dialog .cloud-intro{font-size:1.328125vw}

  .cloud-files{
    grid-template-columns:repeat(auto-fill,minmax(min(100%,14.84375vw),1fr));
    gap:.9375vw;
    padding:.625vw 0;
  }

  .cloud-file{
    min-height:8.59375vw;
    padding:1.40625vw;
    border-width:.078125vw;
    border-radius:.703125vw;
    font-size:1.171875vw;
  }

  .cloud-file::before{
    margin-bottom:.78125vw;
    font-size:1.953125vw;
  }

  .cloud-actions{
    gap:.78125vw;
    padding-top:1.40625vw;
    border-top-width:.078125vw;
  }

  .cloud-shell button:not(.cloud-file):not(.cloud-action-primary):not(.cloud-action-secondary){
    min-height:3.28125vw;
    padding:0 1.5625vw;
    border-width:.078125vw;
    border-radius:.625vw;
  }

  .cloud-shell button:focus-visible{
    outline-width:.15625vw;
    outline-offset:.15625vw;
  }

  /* ---- ASK M!LU ------------------------------------------------------- */
  .ask-milu-popover{
    top:calc(var(--ui-top) + .78125vw);
    right:.9375vw;
    bottom:.9375vw;
    width:33.59375vw;                    /* 430px */
    max-height:none;
    border-width:.078125vw;
    border-radius:1.25vw;
    box-shadow:0 1.875vw 4.6875vw rgba(0,0,0,.58);
  }

  .ask-milu-head{
    gap:.9375vw;
    padding:1.09375vw 1.09375vw .9375vw;
    border-bottom-width:.078125vw;
  }

  .ask-milu-brand img{
    width:19.6875vw;                     /* 252px */
    height:auto;
    flex-basis:auto;
  }

  .ask-milu-close{
    width:2.8125vw;
    height:2.8125vw;
    flex-basis:2.8125vw;
    border-radius:.625vw;
    font-size:2.109375vw;
  }

  .ask-milu-conversation{
    min-height:0;
    max-height:none;
    gap:.78125vw;
    padding:1.25vw;
  }

  .ask-milu-message{
    padding:.859375vw 1.015625vw;
    border-width:.078125vw;
    border-radius:1.09375vw;
    font-size:1.09375vw;
  }

  .ask-milu-message strong{margin-bottom:.234375vw}

  .ask-milu-prompts{
    gap:.625vw;
    padding:.9375vw 1.09375vw .3125vw;
  }

  .ask-milu-prompts button{
    min-height:2.65625vw;
    padding:0 .859375vw;
    border-width:.078125vw;
    font-size:.9375vw;
  }

  .ask-milu-composer{
    grid-template-columns:minmax(0,1fr) 3.125vw;
    gap:.625vw;
    padding:.78125vw 1.09375vw .9375vw;
  }

  .ask-milu-composer input{
    height:3.4375vw;
    border-width:.078125vw;
    border-radius:.78125vw;
    padding:0 1.015625vw;
    font-size:1.25vw;
  }

  .ask-milu-send{
    width:3.125vw;
    height:3.4375vw;
    border-radius:.78125vw;
    font-size:1.71875vw;
  }

  .ask-milu-support{
    padding:0 1.09375vw 1.09375vw;
    font-size:.859375vw;
  }
}

@media (orientation:landscape) and (min-width:960px), (orientation:landscape) and (min-width:820px) and (max-width:959px) and (max-height:600px){
  .ask-milu-popover{
    top:calc(var(--ui-top) + .78125vw);
    right:.9375vw;
    bottom:.9375vw;
    width:min(33.59375vw,calc(100vw - 1.875vw));
    max-height:none;
    border:0;
    border-radius:1.25vw;
    box-shadow:0 1.875vw 4.6875vw rgba(0,0,0,.58);
    transform:translateY(-.625vw) scale(.985);
  }

  .ask-milu-head{
    gap:.9375vw;
    padding:1.09375vw 1.09375vw .9375vw;
    border-bottom-width:.078125vw;
  }

  .ask-milu-brand img{
    width:19.6875vw;                    /* Live M!LU 252px approved 1280 reference */
    height:auto;
    flex-basis:auto;
  }

  .ask-milu-close{
    width:2.8125vw;
    height:2.8125vw;
    flex-basis:2.8125vw;
    border-radius:.625vw;
    font-size:2.109375vw;
  }

  .ask-milu-conversation{
    min-height:0;
    max-height:none;
    gap:.78125vw;
    padding:1.25vw;
  }

  .ask-milu-message{
    padding:.859375vw 1.015625vw;
    border-width:.078125vw;
    border-radius:1.09375vw;
    font-size:1.09375vw;
  }

  .ask-milu-message strong{margin-bottom:.234375vw}

  .ask-milu-prompts{
    gap:.625vw;
    padding:.9375vw 1.09375vw .3125vw;
  }

  .ask-milu-prompts button{
    min-height:2.65625vw;
    padding:0 .859375vw;
    border-width:.078125vw;
    font-size:.9375vw;
  }

  .ask-milu-composer{
    grid-template-columns:minmax(0,1fr) 3.125vw;
    gap:.625vw;
    padding:.78125vw 1.09375vw .9375vw;
  }

  .ask-milu-composer input{
    height:3.4375vw;
    border-width:.078125vw;
    border-radius:.78125vw;
    padding:0 1.015625vw;
    font-size:1.25vw;
  }

  .ask-milu-send{
    width:3.125vw;
    height:3.4375vw;
    border-radius:.78125vw;
    font-size:1.71875vw;
  }

  .ask-milu-support{
    padding:0 1.09375vw 1.09375vw;
    font-size:.859375vw;
  }
}

/* CLOUD LEFT RAIL | AMPLIFY / LABS 1280 BIDIRECTIONAL REFERENCE
   Reference geometry: 60px item, 41.4px icon, 8.625px Poppins label,
   34px full-width band, 27px orange chevron. Landscape rail only;
   every CLOUD bottom dock keeps its existing selectors and geometry. */
.rail>.railmain{scrollbar-width:none;-ms-overflow-style:none}
.rail>.railmain::-webkit-scrollbar{display:none}
@media (min-width:820px) and (orientation:landscape){
  :root{--cloud-rail-unit:.078125vw}
  .rail>.railmain{gap:calc(7 * var(--cloud-rail-unit));padding-right:0;scroll-padding-block:calc(34 * var(--cloud-rail-unit))}
  .rail .rbtn{flex:0 0 auto;width:calc(60 * var(--cloud-rail-unit));height:calc(60 * var(--cloud-rail-unit));min-height:calc(60 * var(--cloud-rail-unit));padding:calc(3 * var(--cloud-rail-unit)) calc(4 * var(--cloud-rail-unit));gap:calc(2 * var(--cloud-rail-unit));flex-direction:column;align-items:center;justify-content:center;border-radius:calc(10 * var(--cloud-rail-unit));font-size:0}
  .rail .rbtn .dot{display:none}
  .rail .rbtn .cloud-nav-icon{display:block;width:calc(41.4 * var(--cloud-rail-unit));height:calc(41.4 * var(--cloud-rail-unit));flex:0 0 auto;object-fit:contain}
  .rail .rbtn .cloud-nav-label{display:block;width:100%;font-family:'Poppins',system-ui,sans-serif;font-size:calc(8.625 * var(--cloud-rail-unit));font-weight:500;line-height:1.15;letter-spacing:0;color:#ddd;text-align:center;white-space:nowrap}
  .rail.has-vertical-scroll-cues>.dock-edge{display:grid;place-items:center;position:absolute;z-index:95;top:auto;bottom:auto;left:0;right:0;width:100%;height:calc(34 * var(--cloud-rail-unit));margin:0;padding:0;border:0;border-radius:0;font-size:0;line-height:1;color:var(--orange);opacity:0;pointer-events:none;cursor:pointer;transition:opacity .15s ease;-webkit-tap-highlight-color:transparent}
  .rail.has-vertical-scroll-cues>.dock-edge.show{opacity:1;pointer-events:auto}
  .rail.has-vertical-scroll-cues>.dock-edge::before{content:'›';display:block;font-size:calc(27 * var(--cloud-rail-unit));line-height:1;color:var(--orange);text-shadow:0 0 10px rgba(255,98,0,.18)}
  .rail.has-vertical-scroll-cues>.dock-prev{top:0;background:linear-gradient(180deg,#000 45%,rgba(0,0,0,.88) 72%,transparent)}
  .rail.has-vertical-scroll-cues>.dock-prev::before{transform:rotate(-90deg)}
  .rail.has-vertical-scroll-cues>.dock-next{bottom:0;background:linear-gradient(0deg,#000 45%,rgba(0,0,0,.88) 72%,transparent)}
  .rail.has-vertical-scroll-cues>.dock-next::before{transform:rotate(90deg)}
  .rail.has-vertical-scroll-cues>.dock-edge:focus-visible{outline:2px solid var(--orange);outline-offset:-2px}
}
/* Touch-primary devices: no native grey scrollbars in CLOUD popups,
   sheets, modal dialogs or rails. Scrolling and desktop mousebars remain. */
@media (pointer:coarse){
  .cloud-overlay,.cloud-overlay *,
  [role='dialog'],[role='dialog'] *,
  .account-popover,.account-popover *,
  .broadcast-popover,.broadcast-popover *,
  .ask-milu-popover,.ask-milu-popover *,
  .mobile-app-menu,.mobile-app-menu *,
  .cloud-new-sheet,.cloud-new-sheet *,
  .cloud-file-menu,.cloud-file-menu *{scrollbar-width:none!important;-ms-overflow-style:none}
  .cloud-overlay::-webkit-scrollbar,.cloud-overlay *::-webkit-scrollbar,
  [role='dialog']::-webkit-scrollbar,[role='dialog'] *::-webkit-scrollbar,
  .account-popover::-webkit-scrollbar,.account-popover *::-webkit-scrollbar,
  .broadcast-popover::-webkit-scrollbar,.broadcast-popover *::-webkit-scrollbar,
  .ask-milu-popover::-webkit-scrollbar,.ask-milu-popover *::-webkit-scrollbar,
  .mobile-app-menu::-webkit-scrollbar,.mobile-app-menu *::-webkit-scrollbar,
  .cloud-new-sheet::-webkit-scrollbar,.cloud-new-sheet *::-webkit-scrollbar,
  .cloud-file-menu::-webkit-scrollbar,.cloud-file-menu *::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
}
