/* GlowAuth UI system refresh — consistent spacing, accessible controls, responsive surfaces. */
:root {
  color-scheme: dark;
  --ga-bg: #08090d;
  --ga-surface: rgba(17, 18, 25, .92);
  --ga-surface-raised: rgba(23, 24, 34, .96);
  --ga-border: rgba(255, 255, 255, .09);
  --ga-border-strong: rgba(255, 255, 255, .16);
  --ga-text: #f5f6fa;
  --ga-muted: #a0a4b4;
  --ga-dim: #777d91;
  --ga-accent: #b6a4ff;
  --ga-accent-strong: #8d77ff;
  --ga-accent-soft: rgba(145, 119, 255, .14);
  --ga-radius-sm: 12px;
  --ga-radius-md: 18px;
  --ga-radius-lg: 25px;
  --ga-ease: cubic-bezier(.2, .75, .25, 1);
  --ga-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --ga-content-width: 1500px;
}

html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  min-width: 320px;
  overflow-x: clip;
  color: var(--ga-text);
  background-color: var(--ga-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body, button, input, select, textarea { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
img, svg, video, canvas { max-width: 100%; }
:focus-visible { outline: 2px solid rgba(190, 176, 255, .95) !important; outline-offset: 3px !important; }
::selection { color: #fff; background: rgba(129, 105, 255, .42); }
.hidden { display: none !important; }

/* Login stays recognizably GlowAuth rather than inheriting a third-party sign-in design. */
#loginView .login-wrap { width: min(1160px, calc(100% - 40px)); gap: clamp(28px, 5vw, 76px); padding: clamp(24px, 5vw, 56px) 0; }
#loginView .login-showcase { min-width: 0; }
#loginView .brand-row { gap: 14px; }
#loginView .brand-logo, #loginView .login-logo { object-fit: contain; }
#loginView .showcase-copy h1 { max-width: 680px; font-size: clamp(2.65rem, 5.8vw, 5.45rem); line-height: .98; letter-spacing: -.065em; }
#loginView .showcase-copy p, #loginView .login-heading p { max-width: 52ch; line-height: 1.75; }
#loginView .login-card { width: min(100%, 430px); padding: clamp(23px, 3.4vw, 34px); border: 1px solid var(--ga-border); border-radius: 27px; background: linear-gradient(155deg, rgba(23, 24, 34, .94), rgba(10, 11, 17, .98)); box-shadow: var(--ga-shadow), inset 0 1px 0 rgba(255,255,255,.035); }
#loginView .google-button, #loginView .github-button { min-height: 50px; border-radius: 13px; transition: transform .2s var(--ga-ease), border-color .2s var(--ga-ease), background .2s var(--ga-ease), box-shadow .2s var(--ga-ease); }
#loginView .google-button:hover, #loginView .github-button:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,.22); }

/* Dashboard frame and brand header. */
#dashboardView { min-height: 100dvh; }
.dashboard-shell { width: min(var(--ga-content-width), calc(100% - clamp(24px, 4vw, 72px))) !important; margin-inline: auto !important; padding: clamp(14px, 2.6vw, 32px) 0 136px !important; }
.dashboard-header, .topbar {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: clamp(12px, 2vw, 24px) !important;
  min-width: 0;
  padding: 13px clamp(13px, 2vw, 22px) !important;
  border: 1px solid var(--ga-border) !important;
  border-radius: 23px !important;
  background: linear-gradient(130deg, rgba(18, 19, 27, .96), rgba(10, 11, 17, .94)) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.035) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.dashboard-header .brand-link { flex: 0 1 auto; min-width: 0; gap: 12px; }
.dashboard-header .brand-logo-frame { width: 47px; height: 47px; flex: 0 0 47px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: #07080c; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.dashboard-header .brand-logo-frame img { width: 100%; height: 100%; object-fit: cover; }
.dashboard-header .brand-copy { min-width: 0; }
.dashboard-header .brand-copy .brand-kicker { color: #858a9c; font-size: .57rem; letter-spacing: .16em; }
.dashboard-header .brand-copy strong { font-size: clamp(.95rem, 1.25vw, 1.1rem); letter-spacing: -.035em; }
.dashboard-header .brand-copy strong em { color: #b6a4ff; font-style: normal; }
.dashboard-header .brand-copy .brand-subtitle { color: #84899a; font-size: .67rem; }
.shop-header-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 41px; padding: 0 15px; border: 1px solid rgba(177,160,255,.27); border-radius: 12px; color: #e9e3ff; background: linear-gradient(130deg, rgba(140,119,242,.16), rgba(120,108,215,.07)); font-size: .72rem; font-weight: 850; cursor: pointer; white-space: nowrap; transition: transform .18s var(--ga-ease), border-color .18s var(--ga-ease), background .18s var(--ga-ease); }
.shop-header-button > span { color: #d4c8ff; }
.shop-header-button:hover { transform: translateY(-1px); border-color: rgba(190,175,255,.48); background: linear-gradient(130deg, rgba(140,119,242,.25), rgba(120,108,215,.12)); }
.dashboard-header .top-actions { display: flex; align-items: center; justify-content: flex-end; gap: clamp(9px, 1.4vw, 16px); min-width: 0; }
.dashboard-header .status { padding: 8px 11px; border: 1px solid rgba(102,226,181,.12); border-radius: 13px; background: rgba(102,226,181,.035); }
.dashboard-header .status strong { font-size: .69rem; }
.dashboard-header .status small { color: #9298aa; font-size: .57rem; }
.dashboard-header .profile { min-width: 0; max-width: 235px; padding: 5px 9px 5px 5px; border: 1px solid var(--ga-border); border-radius: 14px; background: rgba(255,255,255,.025); }
.dashboard-header .profile strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .71rem; }
.dashboard-header .profile small { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .58rem; }
.dashboard-header .logout-btn { min-height: 41px; border: 1px solid var(--ga-border-strong); border-radius: 12px; background: rgba(255,255,255,.045); transition: background .18s var(--ga-ease), border-color .18s var(--ga-ease), transform .18s var(--ga-ease); }
.dashboard-header .logout-btn:hover { background: rgba(255,255,255,.085); border-color: rgba(255,255,255,.22); transform: translateY(-1px); }

/* Section navigation keeps all seven workspaces clear across desktop and tablet. */
.dashboard-nav {
  position: sticky !important;
  top: 10px !important;
  z-index: 80 !important;
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 7px !important;
  width: 100%;
  margin: 12px 0 24px !important;
  padding: 8px !important;
  border: 1px solid var(--ga-border) !important;
  border-radius: 19px !important;
  background: rgba(11, 12, 18, .89) !important;
  box-shadow: 0 14px 38px rgba(0,0,0,.24) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.dashboard-nav .dashboard-tab {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  min-width: 0 !important;
  min-height: 53px !important;
  padding: 9px 10px !important;
  border: 1px solid transparent !important;
  border-radius: 13px !important;
  background: transparent !important;
  text-align: left;
  transition: background .18s var(--ga-ease), border-color .18s var(--ga-ease), color .18s var(--ga-ease), transform .18s var(--ga-ease) !important;
}
.dashboard-nav .dashboard-tab:hover { background: rgba(255,255,255,.045) !important; border-color: rgba(255,255,255,.065) !important; }
.dashboard-nav .dashboard-tab.is-active { border-color: rgba(169,149,255,.2) !important; background: linear-gradient(135deg, rgba(134,111,255,.16), rgba(110,120,255,.055)) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.03) !important; }
.dashboard-nav .tab-icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid var(--ga-border); border-radius: 10px; background: rgba(255,255,255,.035); color: #bfb4ff; font-size: .7rem; font-weight: 850; }
.dashboard-nav .dashboard-tab strong { display: block; overflow: hidden; color: #eaebf2; font-size: .68rem; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-nav .dashboard-tab small { display: block; overflow: hidden; margin-top: 3px; color: #868b9b; font-size: .55rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.mobile-tabs-toggle { border: 1px solid var(--ga-border-strong) !important; border-radius: 12px !important; background: rgba(255,255,255,.045) !important; }

/* Shared surfaces, typography and controls make the entire workspace feel related. */
.dashboard-section { min-width: 0; animation: ga-enter .28s var(--ga-ease) both; }
.dashboard-section.hidden { display: none !important; }
@keyframes ga-enter { from { opacity: .65; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.card, .dashboard-home-card, .execution-stat-card, .controls-summary-card, .metric-grid article, .panel-form-section, .premium-bg-card, .api-price-card {
  border-color: var(--ga-border) !important;
  border-radius: var(--ga-radius-md) !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.018) !important;
}
.card, .dashboard-home-card { background: linear-gradient(150deg, rgba(19,20,29,.91), rgba(11,12,18,.96)) !important; }
.dashboard-overview-hero, .hero-panel, .api-hero, .docs-hero, .controls-hero { border-radius: 24px !important; border-color: var(--ga-border) !important; }
.dashboard-overview-hero { gap: clamp(18px, 3vw, 36px) !important; padding: clamp(23px, 3vw, 36px) !important; }
.dashboard-overview-copy h1 { font-size: clamp(2.35rem, 4.7vw, 4.35rem) !important; letter-spacing: -.065em !important; }
.dashboard-overview-copy p, .hero-content p, .api-hero-copy p, .docs-hero p { max-width: 65ch; line-height: 1.7 !important; }
.execution-stat-grid { gap: 12px !important; margin: 14px 0 !important; }
.execution-stat-card { min-width: 0; padding: clamp(16px, 2vw, 23px) !important; }
.execution-stat-card strong { letter-spacing: -.045em; }
.execution-content-grid { gap: 14px !important; }
.dashboard-home-card { padding: clamp(17px, 2.3vw, 25px) !important; }
.dashboard-home-card-heading h2, .panel-card-heading h2, .section-top h2 { letter-spacing: -.035em; }
.workspace-grid, .panel-builder-grid, .api-layout-grid { gap: clamp(12px, 1.8vw, 22px) !important; }
.panel-form-section { padding: clamp(15px, 2vw, 22px) !important; background: rgba(255,255,255,.015) !important; }
.panel-card-heading { gap: 15px; }
.panel-field > span, .panel-field label { line-height: 1.45; }
.panel-field input, .panel-field textarea, .panel-field select, input, select, textarea {
  min-width: 0;
  max-width: 100%;
  border-radius: 11px;
}
.panel-field input:focus, .panel-field textarea:focus, .panel-field select:focus, input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: rgba(181,162,255,.58) !important; box-shadow: 0 0 0 3px rgba(145,119,255,.09) !important; }
button.primary-btn, button.secondary-btn, .builder-publish, .api-buy-button, .shop-secondary-action { min-height: 40px; border-radius: 11px; font-weight: 760; transition: transform .18s var(--ga-ease), border-color .18s var(--ga-ease), background .18s var(--ga-ease), box-shadow .18s var(--ga-ease), opacity .18s var(--ga-ease); }
button.primary-btn:hover:not(:disabled), .builder-publish:hover:not(:disabled), .api-buy-button:hover:not(:disabled), .shop-secondary-action:hover { transform: translateY(-1px); }
button:disabled { cursor: not-allowed !important; opacity: .5 !important; }
pre, code, textarea.source-code-input, .api-code, .docs-code-card code { overflow-wrap: anywhere; }
input[type="checkbox"], input[type="radio"] { accent-color: #a997ff; }
#toast, .toast { z-index: 420 !important; max-width: min(520px, calc(100vw - 28px)) !important; }

/* Shop banner: contained, dismissible, safe-area aware, and never used as an ad overlay. */
.floating-shop-banner {
  position: fixed;
  z-index: 90;
  right: clamp(12px, 2.7vw, 34px);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(535px, calc(100vw - 28px));
  padding: 12px 12px 12px 15px;
  border: 1px solid rgba(174,157,255,.22);
  border-radius: 18px;
  background: linear-gradient(125deg, rgba(23,22,36,.97), rgba(12,13,21,.97));
  box-shadow: 0 18px 55px rgba(0,0,0,.43), 0 0 40px rgba(116,93,255,.08), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: ga-banner-in .32s var(--ga-ease) both;
}
.floating-shop-banner[hidden], .floating-shop-banner.is-dismissed { display: none !important; }
@keyframes ga-banner-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.floating-shop-copy { display: flex; align-items: center; gap: 11px; min-width: 0; }
.floating-shop-copy > span:last-child { display: block; min-width: 0; }
.floating-shop-copy strong, .floating-shop-copy small { display: block; }
.floating-shop-copy strong { font-size: .78rem; letter-spacing: -.015em; }
.floating-shop-copy small { margin-top: 4px; color: #a2a3b7; font-size: .62rem; line-height: 1.4; }
.floating-shop-mark { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid rgba(176,157,255,.24); border-radius: 12px; color: #d3c8ff; background: linear-gradient(145deg, rgba(151,124,255,.22), rgba(151,124,255,.055)); font-size: 1rem; }
.floating-shop-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.floating-shop-cta { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-width: 90px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(203,192,255,.3); border-radius: 12px; color: #fff; background: linear-gradient(125deg, #8b77f2, #6d68d9); font-size: .75rem; font-weight: 850; box-shadow: 0 8px 24px rgba(103,83,223,.18); cursor: pointer; transition: filter .18s var(--ga-ease), transform .18s var(--ga-ease); }
.floating-shop-cta:hover { filter: brightness(1.09); transform: translateY(-1px); }
.floating-shop-dismiss { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid transparent; border-radius: 10px; color: #a6a7b8; background: transparent; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.floating-shop-dismiss:hover { border-color: var(--ga-border); color: #fff; background: rgba(255,255,255,.06); }

/* The Shop is a native GlowAuth surface, not a third-party-looking checkout skin. */
.shop-modal { position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px)); }
.shop-modal.hidden { display: none !important; }
.shop-modal-backdrop { position: absolute; inset: 0; background: rgba(3,4,8,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: ga-fade-in .18s ease both; }
@keyframes ga-fade-in { from { opacity: 0; } to { opacity: 1; } }
.shop-dialog { position: relative; display: flex; flex-direction: column; width: min(1120px, 100%); max-height: min(900px, 94dvh); min-height: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 25px; background: linear-gradient(150deg, rgba(21,22,32,.99), rgba(8,9,14,.99)); box-shadow: 0 34px 115px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.045); animation: ga-dialog-in .22s var(--ga-ease) both; }
@keyframes ga-dialog-in { from { opacity: .75; transform: translateY(9px) scale(.995); } to { opacity: 1; transform: translateY(0) scale(1); } }
.shop-dialog-header { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px 16px; padding: clamp(20px, 3vw, 30px) clamp(19px, 3vw, 32px) 20px; border-bottom: 1px solid rgba(255,255,255,.075); background: radial-gradient(ellipse at 0% 0%, rgba(132,108,255,.12), transparent 55%); }
.shop-dialog-brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.shop-dialog-mark { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border: 1px solid rgba(179,160,255,.24); border-radius: 15px; color: #e2dcff; background: rgba(145,119,255,.12); font-size: 1.15rem; }
.shop-eyebrow { display: block; color: #9b91c8; font-size: .61rem; font-weight: 850; letter-spacing: .15em; }
.shop-dialog-brand h2 { margin: 3px 0 0; color: #fff; font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.1; letter-spacing: -.05em; }
.shop-dialog-header > p { grid-column: 1 / -1; max-width: 75ch; margin: 0; color: #a1a5b5; font-size: .77rem; line-height: 1.65; }
.shop-close-button { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--ga-border); border-radius: 12px; color: #c7c8d4; background: rgba(255,255,255,.035); font-size: 1.5rem; cursor: pointer; }
.shop-close-button:hover { color: #fff; background: rgba(255,255,255,.09); }
.shop-dialog-content { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 2px clamp(16px, 2.7vw, 30px) 20px; scrollbar-gutter: stable; }
.shop-section { padding: 24px 0 23px; }
.shop-section + .shop-section { border-top: 1px solid rgba(255,255,255,.075); }
.shop-section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 17px; }
.shop-section-index { display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 35px; border: 1px solid rgba(255,255,255,.09); border-radius: 11px; background: rgba(255,255,255,.035); color: #cbc1ff; font-size: .66rem; font-weight: 850; }
.shop-section-heading h3 { margin: 5px 0 5px; color: #f1f1f7; font-size: clamp(1.05rem, 1.8vw, 1.35rem); letter-spacing: -.03em; }
.shop-section-heading p { margin: 0; color: #9a9eaf; font-size: .73rem; line-height: 1.55; }
.shop-plan-grid, .shop-style-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shop-plan-card { min-width: 0; padding: 17px; border: 1px solid rgba(255,255,255,.085); border-radius: 16px; background: linear-gradient(150deg, rgba(255,255,255,.033), rgba(255,255,255,.012)); }
.shop-plan-card-featured { border-color: rgba(162,142,255,.35); background: linear-gradient(145deg, rgba(124,101,255,.105), rgba(255,255,255,.014)); box-shadow: inset 0 0 0 1px rgba(167,146,255,.035); }
.shop-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #969bae; font-size: .55rem; font-weight: 850; letter-spacing: .09em; }
.shop-plan-icon { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid rgba(174,157,255,.17); border-radius: 9px; background: rgba(145,119,255,.09); color: #c7baff; font-size: .84rem; }
.shop-plan-card h4 { margin: 12px 0 6px; color: #f5f5fb; font-size: 1.12rem; letter-spacing: -.035em; }
.shop-plan-card > p { min-height: 38px; margin: 0; color: #969bae; font-size: .69rem; line-height: 1.55; }
.shop-plan-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 15px 0; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); }
.shop-plan-stats span, .shop-plan-stats strong, .shop-plan-stats small { display: block; min-width: 0; }
.shop-plan-stats strong { color: #e6e1ff; font-size: 1.05rem; letter-spacing: -.025em; }
.shop-plan-stats small { margin-top: 2px; color: #858ba0; font-size: .58rem; line-height: 1.35; }
.shop-plan-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.shop-plan-prices span { display: block; padding: 9px; border: 1px solid rgba(255,255,255,.06); border-radius: 10px; background: rgba(0,0,0,.13); }
.shop-plan-prices small, .shop-plan-prices strong { display: block; }
.shop-plan-prices small { color: #969bae; font-size: .55rem; line-height: 1.35; }
.shop-plan-prices strong { margin-top: 5px; color: #f5f4fc; font-size: .96rem; letter-spacing: -.025em; }
.shop-section-action { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.shop-section-action > span { color: #82889b; font-size: .64rem; line-height: 1.5; }
.shop-secondary-action { display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 0 14px; border: 1px solid rgba(172,156,255,.24); color: #ded7ff; background: rgba(137,113,255,.1); font-size: .69rem; cursor: pointer; }
.shop-secondary-action:hover { border-color: rgba(172,156,255,.42); background: rgba(137,113,255,.16); }
.shop-style-card { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; background: rgba(255,255,255,.018); }
.shop-style-art { position: relative; isolation: isolate; height: 122px; overflow: hidden; display: flex; align-items: flex-start; padding: 13px; background: #10121d; }
.shop-style-art::before, .shop-style-art::after { position: absolute; z-index: -1; content: ""; pointer-events: none; }
.shop-style-art::before { inset: 0; background: radial-gradient(ellipse at 22% 100%, rgba(54,230,191,.5), transparent 42%), radial-gradient(ellipse at 80% 20%, rgba(146,94,255,.65), transparent 48%), linear-gradient(130deg, #10182a, #14111f); }
.shop-style-art::after { inset: 0; opacity: .42; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.16) 49%, transparent 70%); }
.shop-style-art span { color: rgba(255,255,255,.92); font-size: .56rem; font-weight: 900; letter-spacing: .19em; }
.shop-style-art i, .shop-style-art b { position: absolute; display: block; border: 1px solid rgba(255,255,255,.27); border-radius: 50%; pointer-events: none; }
.shop-style-art i { width: 145px; height: 145px; right: -15px; bottom: -88px; box-shadow: 0 0 30px rgba(255,255,255,.08), inset 0 0 30px rgba(255,255,255,.08); }
.shop-style-art b { width: 95px; height: 95px; right: 24px; bottom: -58px; }
.shop-style-nebula::before { background: radial-gradient(ellipse at 25% 75%, rgba(37,132,255,.68), transparent 40%), radial-gradient(ellipse at 80% 25%, rgba(166,90,255,.62), transparent 45%), radial-gradient(ellipse at 70% 95%, rgba(255,94,176,.24), transparent 36%), #0b1020; }
.shop-style-prism::before { background: linear-gradient(130deg, rgba(34,26,65,.9), rgba(22,42,63,.85)), conic-gradient(from 35deg at 70% 55%, #8c74ff, #3caeff, #ff72c8, #8c74ff); }
.shop-style-prism i { width: 130px; height: 130px; border-radius: 20px; transform: rotate(35deg); right: 15px; bottom: -53px; }
.shop-style-copy { padding: 13px; }
.shop-style-copy h4 { margin: 0 0 5px; color: #f1f1f7; font-size: .83rem; }
.shop-style-copy p { margin: 0; color: #959bad; font-size: .64rem; line-height: 1.5; }
.shop-style-price { display: block; margin-bottom: 7px; color: #d3caff; font-size: .9rem; font-weight: 850; }
.shop-style-price small { color: #9297aa; font-size: .57rem; font-weight: 600; }
.shop-security-note { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; border: 1px solid rgba(111,220,179,.13); border-radius: 13px; background: rgba(111,220,179,.035); }
.shop-security-note > span { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border: 1px solid rgba(111,220,179,.17); border-radius: 9px; color: #91e2bd; }
.shop-security-note p { margin: 0; color: #9ca8ac; font-size: .65rem; line-height: 1.6; }
.shop-security-note strong { color: #d6f2e4; }
.shop-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(19px, 3vw, 32px); border-top: 1px solid rgba(255,255,255,.075); background: rgba(5,6,10,.55); }
.shop-dialog-footer > span { display: flex; align-items: center; gap: 8px; color: #888da0; font-size: .61rem; }
.shop-dialog-footer i { width: 3px; height: 3px; border-radius: 50%; background: #686d80; }
.shop-dialog-footer button { min-height: 35px; padding: 0 13px; border: 1px solid var(--ga-border); border-radius: 10px; color: #e0e1eb; background: rgba(255,255,255,.045); font-size: .68rem; font-weight: 750; cursor: pointer; }
body.shop-open { overflow: hidden; }

/* Tablet layout. */
@media (min-width: 701px) and (max-width: 1120px) {
  .dashboard-shell { width: min(var(--ga-content-width), calc(100% - 32px)) !important; }
  .dashboard-nav { grid-template-columns: repeat(4, minmax(0,1fr)) !important; }
  .dashboard-nav .dashboard-tab[data-dashboard-tab="docs"], .dashboard-nav .dashboard-tab[data-dashboard-tab="controls"] { grid-column: auto !important; width: auto !important; }
  .dashboard-nav .dashboard-tab { min-height: 48px !important; }
  .dashboard-header .brand-copy .brand-subtitle { display: none; }
  .dashboard-header .status small { display: none; }
  .shop-plan-card { padding: 14px; }
  .shop-plan-prices { grid-template-columns: 1fr; }
}

@media (min-width: 701px) and (max-width: 900px) {
  .dashboard-header { flex-wrap: wrap !important; }
  .dashboard-header .top-actions { flex: 1 1 100%; justify-content: space-between; }
  .dashboard-header .profile { flex: 1; max-width: none; }
}

/* Phone layout. The existing menu controller owns open/close positioning. */
@media (max-width: 700px) {
  html { scroll-padding-top: 18px; }
  .dashboard-shell { width: calc(100% - 20px) !important; padding-top: max(9px, env(safe-area-inset-top, 0px)) !important; padding-bottom: calc(122px + env(safe-area-inset-bottom, 0px)) !important; }
  .dashboard-header, .topbar { display: grid !important; grid-template-columns: minmax(0,1fr) auto auto; gap: 7px !important; align-items: center !important; padding: 10px !important; border-radius: 17px !important; }
  .dashboard-header .brand-link { grid-column: 1; grid-row: 1; gap: 9px; }
  .dashboard-header .brand-logo-frame { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; }
  .dashboard-header .brand-copy .brand-kicker { font-size: .48rem; }
  .dashboard-header .brand-copy strong { font-size: .91rem; }
  .dashboard-header .brand-copy .brand-subtitle { display: none; }
  .dashboard-header #openShopHeaderButton { grid-column: 2; grid-row: 1; min-height: 37px; padding-inline: 10px; border-radius: 10px; font-size: .65rem; }
  .dashboard-header > .mobile-tabs-toggle { grid-column: 3; grid-row: 1; min-height: 38px !important; height: 38px !important; padding-inline: 10px !important; }
  .dashboard-header .top-actions { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: space-between; gap: 7px; width: 100%; }
  .dashboard-header .status { min-width: 0; padding: 6px 8px; border-radius: 10px; }
  .dashboard-header .status strong { font-size: .61rem; }
  .dashboard-header .status small { display: none; }
  .dashboard-header .profile { flex: 1; max-width: none; gap: 6px; padding: 4px 7px 4px 4px; border-radius: 10px; }
  .dashboard-header .profile .avatar, .dashboard-header .profile-fallback { width: 28px; height: 28px; flex-basis: 28px; }
  .dashboard-header .profile strong { max-width: 130px; font-size: .62rem; }
  .dashboard-header .profile small { max-width: 130px; font-size: .51rem; }
  .dashboard-header .logout-btn { min-width: 73px; min-height: 36px; height: 36px; padding: 0 8px; border-radius: 10px; font-size: .62rem; }
  .dashboard-nav { margin: 8px 0 16px !important; padding: 8px !important; border-radius: 17px !important; }
  .dashboard-nav .dashboard-tab { min-height: 46px !important; padding: 8px !important; border-radius: 11px !important; }
  .dashboard-nav .tab-icon { flex-basis: 27px; width: 27px; height: 27px; border-radius: 8px; }
  .dashboard-nav .dashboard-tab strong { font-size: .64rem; }
  .dashboard-nav .dashboard-tab small { font-size: .51rem; }
  .dashboard-overview-hero, .hero-panel, .api-hero, .docs-hero, .controls-hero { border-radius: 18px !important; }
  .dashboard-overview-hero { display: grid !important; gap: 18px !important; padding: 21px 17px !important; }
  .dashboard-overview-copy h1 { font-size: clamp(2.1rem, 9.4vw, 3.25rem) !important; }
  .dashboard-overview-copy p, .hero-content p, .api-hero-copy p { font-size: .78rem !important; }
  .dashboard-overview-actions { justify-content: space-between; flex-wrap: wrap; gap: 9px; }
  .execution-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  .execution-stat-card { padding: 14px !important; border-radius: 14px !important; }
  .execution-stat-card strong { font-size: 1.45rem !important; }
  .execution-stat-card small { line-height: 1.45; }
  .execution-content-grid, .workspace-grid, .panel-builder-grid, .api-layout-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; }
  .dashboard-home-card, .card { padding: 15px !important; border-radius: 16px !important; }
  .panel-form-section { padding: 13px !important; border-radius: 13px !important; }
  .metric-grid { gap: 7px !important; }
  .metric-grid article { padding: 11px 9px !important; border-radius: 12px !important; }
  .metric-grid span { font-size: .59rem !important; }
  .metric-grid strong { font-size: 1.1rem !important; }
  .metric-grid small { font-size: .54rem !important; line-height: 1.4; }
  .panel-card-heading, .section-top, .key-list-head, .generated-keys-head { align-items: flex-start; flex-wrap: wrap; }
  .key-generator-grid { grid-template-columns: minmax(0,1fr) !important; }
  .key-generator-grid .primary-btn { grid-column: auto !important; }
  .api-pricing-grid { grid-template-columns: minmax(0,1fr) !important; }
  .api-price-card, .api-price-card-featured { padding: 16px !important; border-radius: 15px !important; }
  .floating-shop-banner { right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: calc(100vw - 20px); gap: 8px; padding: 9px; border-radius: 15px; }
  .floating-shop-mark { flex-basis: 32px; width: 32px; height: 32px; border-radius: 10px; }
  .floating-shop-copy { gap: 8px; }
  .floating-shop-copy strong { font-size: .69rem; }
  .floating-shop-copy small { max-width: 185px; font-size: .54rem; }
  .floating-shop-cta { min-width: 68px; min-height: 37px; padding-inline: 10px; gap: 6px; font-size: .67rem; }
  .floating-shop-dismiss { width: 28px; height: 30px; }
  .shop-modal { padding: max(7px, env(safe-area-inset-top, 0px)) 7px max(7px, env(safe-area-inset-bottom, 0px)); }
  .shop-dialog { max-height: 96dvh; border-radius: 19px; }
  .shop-dialog-header { gap: 8px 10px; padding: 17px 15px 14px; }
  .shop-dialog-brand { gap: 10px; }
  .shop-dialog-mark { width: 39px; height: 39px; flex-basis: 39px; border-radius: 12px; }
  .shop-eyebrow { font-size: .54rem; }
  .shop-dialog-brand h2 { font-size: 1.58rem; }
  .shop-dialog-header > p { font-size: .67rem; }
  .shop-close-button { width: 34px; height: 34px; border-radius: 10px; }
  .shop-dialog-content { padding: 0 14px 15px; }
  .shop-section { padding: 19px 0; }
  .shop-section-heading { gap: 9px; margin-bottom: 13px; }
  .shop-section-index { flex-basis: 30px; width: 30px; height: 30px; border-radius: 9px; font-size: .58rem; }
  .shop-section-heading h3 { font-size: 1.02rem; }
  .shop-section-heading p { font-size: .66rem; }
  .shop-plan-grid, .shop-style-grid { grid-template-columns: minmax(0,1fr) !important; gap: 9px; }
  .shop-plan-card { padding: 14px; border-radius: 13px; }
  .shop-plan-card h4 { margin-top: 9px; font-size: 1rem; }
  .shop-plan-card > p { min-height: 0; font-size: .67rem; }
  .shop-plan-stats { margin: 11px 0; padding: 10px 0; }
  .shop-plan-prices { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .shop-plan-prices strong { font-size: .91rem; }
  .shop-section-action { align-items: stretch; flex-direction: column; gap: 9px; }
  .shop-section-action > span { font-size: .6rem; }
  .shop-secondary-action { width: 100%; min-height: 40px; }
  .shop-style-card { display: grid; grid-template-columns: minmax(110px, .68fr) minmax(0, 1fr); }
  .shop-style-art { height: 100%; min-height: 125px; padding: 10px; }
  .shop-style-copy { align-self: center; padding: 12px; }
  .shop-style-copy h4 { font-size: .79rem; }
  .shop-style-copy p { font-size: .61rem; }
  .shop-security-note { padding: 11px; }
  .shop-security-note p { font-size: .61rem; }
  .shop-dialog-footer { padding: 10px 14px; }
}

@media (max-width: 390px) {
  .dashboard-shell { width: calc(100% - 14px) !important; }
  .dashboard-header .brand-copy .brand-kicker { font-size: .42rem; }
  .dashboard-header .brand-copy strong { font-size: .85rem; }
  .dashboard-header .top-actions { gap: 5px; }
  .dashboard-header .status { padding-inline: 6px; }
  .dashboard-header .status strong { font-size: .56rem; }
  .dashboard-header .profile strong { max-width: 90px; }
  .dashboard-header .profile small { max-width: 90px; }
  .dashboard-header #openShopHeaderButton { padding-inline: 8px; min-height: 35px; font-size: .6rem; }
  .dashboard-header > .mobile-tabs-toggle { padding-inline: 8px !important; }
  .dashboard-header .logout-btn { min-width: 63px; padding-inline: 5px; font-size: .56rem; }
  .floating-shop-copy small { max-width: 142px; }
  .floating-shop-mark { display: none; }
  .shop-style-card { grid-template-columns: minmax(96px, .6fr) minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* Final responsive bug fixes: one authoritative mobile menu and a contained shop banner. */
@media (max-width: 700px) {
  #dashboardNav {
    display: none !important;
    position: fixed !important;
    inset: auto 10px auto 10px !important;
    top: var(--mobile-nav-top, calc(112px + env(safe-area-inset-top, 0px))) !important;
    bottom: auto !important;
    z-index: 44 !important;
    width: auto !important;
    max-width: 520px !important;
    max-height: var(--mobile-nav-max-height, calc(100dvh - 128px - env(safe-area-inset-top, 0px))) !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-rows: min-content !important;
    align-content: start !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid rgba(166,145,255,.24) !important;
    border-radius: 18px !important;
    background: linear-gradient(150deg, rgba(22,24,41,.99), rgba(10,12,22,.99)) !important;
    box-shadow: 0 24px 70px rgba(0,0,0,.54), inset 0 1px 0 rgba(255,255,255,.045) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
  }
  body.mobile-tabs-open #dashboardNav {
    display: grid !important;
    animation: ga-menu-in .18s var(--ga-ease) both;
  }
  #dashboardNav > .dashboard-tab,
  #dashboardNav > .dashboard-tab[data-dashboard-tab="docs"],
  #dashboardNav > .dashboard-tab[data-dashboard-tab="controls"] {
    display: flex !important;
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 56px !important;
    height: auto !important;
    justify-self: stretch !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 11px !important;
    margin: 0 !important;
    padding: 9px 11px !important;
    border-radius: 12px !important;
    background: transparent !important;
  }
  #dashboardNav > .dashboard-tab .tab-icon {
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
  }
  #dashboardNav > .dashboard-tab > span:last-child {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  #dashboardNav > .dashboard-tab strong {
    display: block !important;
    font-size: .76rem !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  #dashboardNav > .dashboard-tab small {
    display: block !important;
    margin-top: 3px !important;
    font-size: .61rem !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }
  #mobileNavScrim:not(.hidden) {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 38 !important;
    background: rgba(3,4,10,.68) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
  }
  body.mobile-tabs-open { overflow: hidden !important; }
  body.mobile-tabs-open #floatingShopBanner { display: none !important; }
  .floating-shop-banner {
    right: 10px !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    width: min(460px, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
    gap: 8px !important;
    padding: 9px !important;
    border-radius: 15px !important;
  }
  .floating-shop-copy { flex: 1 1 auto !important; min-width: 0 !important; gap: 8px !important; }
  .floating-shop-copy small { max-width: 34vw !important; font-size: .55rem !important; }
  .floating-shop-actions { flex: 0 0 auto !important; gap: 4px !important; }
  .floating-shop-cta { min-width: 68px !important; min-height: 38px !important; padding-inline: 10px !important; }
  .floating-shop-dismiss { flex: 0 0 28px !important; width: 28px !important; min-height: 32px !important; }
}
@keyframes ga-menu-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
.generated-keys-head { align-items: flex-start; }
.generated-keys-title { flex: 1 1 220px; min-width: 0; }
.generated-keys-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
.generated-keys-head-actions .generated-keys-copy-all { min-height: 40px; }
.generated-keys-dismiss {
  display: inline-grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  min-height: 36px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: #a9afc1;
  background: rgba(255,255,255,.035);
  font: 500 1.35rem/1 ui-sans-serif,system-ui,sans-serif;
  cursor: pointer;
}
.generated-keys-dismiss:hover { color: #fff; background: rgba(255,255,255,.08); }
.key-list-head-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; min-width: 0; }
#showGeneratedKeysButton.hidden { display: none !important; }
@media (max-width: 700px) {
  .generated-keys-head { display: flex; flex-wrap: wrap; }
  .generated-keys-head-actions { width: 100%; justify-content: stretch; }
  .generated-keys-head-actions .generated-keys-copy-all { flex: 1 1 auto; }
  .generated-keys-dismiss { flex: 0 0 40px; }
  .key-list-head-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .key-list-head-actions #showGeneratedKeysButton { grid-column: 1 / -1; width: 100%; }
  .key-list-head-actions button { min-width: 0; white-space: normal; }
  .floating-shop-copy small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 360px) {
  .floating-shop-copy small { display: none !important; }
  .floating-shop-copy strong { font-size: .65rem !important; }
  .floating-shop-cta { min-width: 60px !important; padding-inline: 8px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.mobile-tabs-open #dashboardNav { animation: none !important; }
}


/* Marketplace and panel-capacity workflow fixes — loaded after legacy style layers. */
.shop-dialog-header { grid-template-columns: minmax(0, 1fr) 42px !important; grid-template-rows: auto auto !important; align-items: start !important; }
.shop-dialog-brand { grid-column: 1 !important; grid-row: 1 !important; min-width: 0; }
.shop-dialog-header > .shop-close-button { grid-column: 2 !important; grid-row: 1 !important; justify-self: end !important; align-self: start !important; position: relative !important; inset: auto !important; z-index: 3 !important; margin: 0 !important; flex: 0 0 39px; box-sizing: border-box; }
.shop-dialog-header > p { grid-column: 1 / -1 !important; grid-row: 2 !important; min-width: 0; padding-right: 0; }
.shop-plan-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 11px; }
.shop-plan-actions button, .shop-style-action { display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 38px; padding: 8px 9px; border: 1px solid rgba(176,157,255,.24); border-radius: 10px; color: #e8e3ff; background: linear-gradient(120deg, rgba(135,108,255,.19), rgba(71,140,255,.12)); font: 750 .62rem/1.25 Inter, system-ui, sans-serif; cursor: pointer; transition: border-color .18s ease, background .18s ease, opacity .18s ease; }
.shop-plan-actions button:hover:not(:disabled), .shop-style-action:hover:not(:disabled) { border-color: rgba(195,177,255,.48); background: linear-gradient(120deg, rgba(135,108,255,.28), rgba(71,140,255,.2)); }
.shop-plan-actions button:disabled, .shop-style-action:disabled { opacity: .55; cursor: not-allowed; }
.shop-plan-actions button[data-billing-term="month"] { color: #c2c8dd; background: rgba(255,255,255,.035); }
.shop-style-art { justify-content: space-between; gap: 8px; }
.shop-style-preview { position: relative; z-index: 2; min-height: 29px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.26); border-radius: 8px; color: #fff; background: rgba(10,12,20,.58); font: 750 .55rem/1.2 Inter, system-ui, sans-serif; cursor: pointer; }
.shop-style-preview:hover { background: rgba(10,12,20,.8); }
.shop-style-copy { display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
.shop-style-price { margin: 0; }
.shop-style-state { align-self: flex-start; color: #999fb6; font-size: .5rem; font-weight: 850; letter-spacing: .06em; line-height: 1.35; }
.shop-style-card.is-owned .shop-style-state { color: #82e6c1; }
.shop-style-card.is-selected { border-color: rgba(112,239,203,.56); box-shadow: 0 0 0 1px rgba(112,239,203,.09); }
.shop-style-card.is-selected .shop-style-action { color: #c3f8e5; border-color: rgba(112,239,203,.3); background: rgba(48,177,136,.12); }
.shop-style-action { width: 100%; margin-top: auto; }
.shop-style-card.is-selected .shop-style-action:disabled { opacity: .95; }
.panel-appearance-summary { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid rgba(171,157,255,.13); border-radius: 14px; background: linear-gradient(145deg, rgba(130,107,255,.055), rgba(255,255,255,.012)); }
.panel-appearance-current { display: grid; gap: 6px; min-width: 0; }
.panel-appearance-kicker { color: #858ba2; font-size: .55rem; font-weight: 850; letter-spacing: .12em; }
#premiumBackgroundActive { color: #f0edff; font-size: .83rem; overflow-wrap: anywhere; }
#premiumBackgroundFootnote { color: #8d94ab; font-size: .62rem; line-height: 1.5; }
.panel-appearance-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.panel-appearance-actions button { min-height: 38px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; color: #cbcde0; background: rgba(255,255,255,.035); font: 750 .62rem/1.2 Inter, system-ui, sans-serif; cursor: pointer; }
.panel-appearance-actions .panel-appearance-shop { color: #e8e1ff; border-color: rgba(176,157,255,.28); background: rgba(137,113,255,.12); }
.panel-appearance-actions button:hover { border-color: rgba(195,177,255,.42); }
.panel-appearance-settings > .premium-bg-mode { display: inline-flex; margin-top: 9px; }
.panel-capacity-note { display: block; margin-top: 7px; color: #9d9abf; font-size: .62rem; line-height: 1.5; }
.panel-capacity-note.is-full { color: #ffca9b; }
.execution-dashboard-updated { color: #777f98; font-size: .58rem; white-space: nowrap; }
#shopBillingFeedback { margin-top: 12px; }
@media (max-width: 760px) {
  .shop-plan-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .shop-dialog-header > .shop-close-button { width: 36px !important; height: 36px !important; flex-basis: 36px; }
  .panel-appearance-summary { grid-template-columns: minmax(0,1fr); }
  .panel-appearance-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); justify-content: stretch; }
  .panel-appearance-actions button { width: 100%; }
  .execution-dashboard-updated { display: none; }
}
@media (max-width: 390px) {
  .shop-plan-actions { grid-template-columns: minmax(0,1fr); }
  .shop-dialog-header { grid-template-columns: minmax(0,1fr) 36px !important; }
  .panel-appearance-actions { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .shop-plan-actions button, .shop-style-action { transition: none; }
}


/* Shop close control: hard-anchor the X to the dialog's top-right inset. */
.shop-dialog-header {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
}
.shop-dialog-brand {
  grid-column: 1 !important;
  grid-row: 1 !important;
  padding-right: 54px;
}
.shop-dialog-header > .shop-close-button {
  position: absolute !important;
  top: clamp(20px, 3vw, 30px) !important;
  right: clamp(19px, 3vw, 32px) !important;
  left: auto !important;
  bottom: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: clamp(19px, 3vw, 32px) !important;
  z-index: 5 !important;
  display: grid !important;
  place-items: center !important;
  width: 39px !important;
  height: 39px !important;
  min-width: 39px !important;
  min-height: 39px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  flex: none !important;
  box-sizing: border-box !important;
}
.shop-dialog-header > p {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  min-width: 0;
  padding-right: 0;
}
@media (max-width: 650px) {
  .shop-dialog-brand { padding-right: 46px; }
  .shop-dialog-header > .shop-close-button {
    top: 17px !important;
    right: 15px !important;
    inset-inline-end: 15px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }
}

/* Execution insights: responsive 7D/30D chart and best-effort client reports. */
.execution-range-switch{display:flex;gap:5px;padding:4px;border:1px solid rgba(190,198,255,.12);border-radius:11px;background:rgba(255,255,255,.025)}
.execution-range-switch button{min-width:43px;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:#8e95ac;font:800 .68rem Inter,system-ui,sans-serif;cursor:pointer}
.execution-range-switch button.is-active{background:rgba(156,124,255,.17);color:#e5dcff;box-shadow:inset 0 0 0 1px rgba(156,124,255,.25)}
.execution-insights-chart{min-height:154px;padding:15px 5px 0;display:flex;flex-direction:column;gap:10px}
.execution-chart-bars{height:145px;display:grid;grid-template-columns:repeat(30,minmax(0,1fr));gap:clamp(2px,.65vw,8px);align-items:stretch}
.execution-chart-day{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.execution-chart-day i{display:block;width:min(100%,22px);min-height:2px;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,#b7a1ff,#6d83ff);box-shadow:0 0 12px rgba(156,124,255,.14);transition:height .2s ease}
.execution-chart-day small{font-size:.55rem;color:#7f879e;white-space:nowrap;writing-mode:horizontal-tb}
.execution-insights-summary{display:flex;gap:10px;margin-top:12px}
.execution-insights-summary span{flex:1;display:grid;gap:5px;padding:12px;border:1px solid rgba(190,198,255,.09);border-radius:12px;background:rgba(255,255,255,.018)}
.execution-insights-summary small{color:#8a91a8;font-size:.63rem}.execution-insights-summary strong{font-size:1.15rem;color:#e8e9f5}
.execution-executor-list{display:grid;gap:8px}.execution-executor-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:9px;align-items:center;padding:11px 12px;border:1px solid rgba(190,198,255,.09);border-radius:11px;background:rgba(255,255,255,.018)}
.execution-executor-row strong{min-width:0;overflow-wrap:anywhere;font-size:.72rem;color:#dce0ef}.execution-executor-row b{font-size:.78rem;color:#b8a6ff}.execution-executor-row small{font-size:.59rem;color:#838aa1}
.published-panel-preview .preview-primary,.published-panel-preview .preview-key-row button{background:linear-gradient(135deg,var(--panel-accent),color-mix(in srgb,var(--panel-accent) 58%,#4b87ff))}
.published-panel-preview .preview-brand>span:first-child{background:linear-gradient(140deg,var(--panel-accent),color-mix(in srgb,var(--panel-accent) 55%,#537fff))}
.published-panel-preview .preview-key-row button.preview-auto-add{background:linear-gradient(135deg,#42cfa4,#2784c8)}
@media(max-width:640px){.execution-chart-bars{grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.execution-chart-day small{font-size:.53rem}.execution-insights-card .dashboard-home-card-heading{align-items:flex-start;gap:10px}.execution-range-switch button{min-width:36px;padding:7px 8px}}

.execution-chart-bars{grid-template-columns:repeat(30,minmax(0,1fr))}.execution-chart-bars[data-range="7"]{grid-template-columns:repeat(7,minmax(0,1fr))}
