/* CLENA Studio — Overview mobile v7
   Mobile-only: the existing desktop layout remains untouched.
   This stylesheet must load after the inline editor themes. */
@media (max-width: 860px) {
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .section-page-head {
    display: none !important; /* title already appears in the fixed top bar */
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .hero-card {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 16px !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 18px 19px !important;
    border-radius: 17px !important;
    background: linear-gradient(115deg,#1e4c9c 0%,#335ec2 60%,#6250b6 100%) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    box-shadow: 0 7px 22px rgba(27,54,125,.15) !important;
    animation: none !important;
    overflow: hidden !important;
    isolation: isolate !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .hero-card::before {
    content: "" !important;
    animation: none !important;
    inset: -55% -28% !important;
    opacity: .4 !important;
    will-change: auto !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .hero-card::after {
    display: none !important;
    animation: none !important;
    content: none !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .hero-card > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    min-width: 0 !important;
    width: 100% !important;
    height: auto !important;
    gap: 0 !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .hero-card .eyebrow {
    display: block !important;
    margin: 0 0 8px !important;
    color: #d8e7ff !important;
    font-size: 9px !important;
    font-weight: 850 !important;
    letter-spacing: .12em !important;
    line-height: 1.2 !important;
  }
  /* The verified check is already visible in the navbar. No redundant large badge. */
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .hero-card #studioHeroVerifiedTag {
    display: none !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .hero-card h2 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 7px !important;
    color: #fff !important;
    font-size: clamp(22px,3vw,27px) !important;
    font-weight: 850 !important;
    line-height: 1.13 !important;
    letter-spacing: -.04em !important;
    text-wrap: balance;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .hero-card p {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #dce7ff !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .hero-card .hero-progress {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    align-self: center !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: 104px !important;
    max-width: 104px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px 8px !important;
    border: 1px solid rgba(255,255,255,.2) !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.11) !important;
    box-shadow: none !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .hero-card .progress-ring {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .hero-card .progress-ring::after {
    inset: 5px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .hero-card .progress-ring strong {
    font-size: 13px !important;
    font-weight: 900 !important;
    color: #fff !important;
    line-height: 1 !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .hero-card .hero-progress > span {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    color: #ecf2ff !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .stat-grid {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    gap: 9px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 10px 0 12px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .stat-grid > .stat-card {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    min-height: 71px !important;
    height: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 11px 12px !important;
    border-radius: 13px !important;
    border: 1px solid #e0e8f4 !important;
    background: #fff !important;
    box-shadow: 0 2px 9px rgba(28,55,100,.045) !important;
    box-sizing: border-box !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .stat-grid > .stat-card:last-child {
    grid-column: auto !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .stat-grid .stat-icon {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 10px !important;
    font-size: 17px !important;
    color: #3567d5 !important;
    background: #eaf1ff !important;
    margin: 0 !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .stat-grid > .stat-card:nth-child(2) .stat-icon {
    color: #7950c6 !important;
    background: #f2eafe !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .stat-grid > .stat-card:nth-child(3) .stat-icon {
    color: #15847b !important;
    background: #e6f7f3 !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .stat-grid .stat-icon i {
    font-size: 18px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .stat-grid > .stat-card > div {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .stat-grid .stat-card small {
    display: block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.24 !important;
    color: #667790 !important;
    overflow-wrap: normal !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .stat-grid .stat-card strong {
    display: block !important;
    margin: 4px 0 0 !important;
    color: #162d54 !important;
    font-size: 21px !important;
    line-height: 1.12 !important;
    font-weight: 900 !important;
    letter-spacing: -.04em !important;
    overflow-wrap: break-word !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .stat-grid .stat-card button {
    display: none !important; /* management shortcuts remain accessible from the navigation */
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 12px !important;
    padding: 17px !important;
    border: 1px solid #e0e8f4 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 3px 14px rgba(35,53,84,.045) !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel .clena-insights-heading {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    min-width: 0 !important;
    margin: 0 0 13px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel .clena-insights-heading > div:first-child {
    min-width: 0 !important;
    flex: 1 1 220px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel .clena-insights-kicker {
    color: #6b52b6 !important;
    font-size: 9px !important;
    font-weight: 850 !important;
    letter-spacing: .025em !important;
    line-height: 1.3 !important;
    white-space: normal !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel .clena-insights-heading h2 {
    margin: 6px 0 5px !important;
    color: #1e3154 !important;
    font-size: 21px !important;
    line-height: 1.15 !important;
    font-weight: 850 !important;
    letter-spacing: -.035em !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel .clena-insights-heading p {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    margin: 0 !important;
    color: #697993 !important;
    font-size: 11px !important;
    line-height: 1.42 !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel .clena-insights-period {
    display: inline-flex !important;
    align-items: center !important;
    align-self: flex-start !important;
    gap: 5px !important;
    min-height: 32px !important;
    padding: 6px 9px !important;
    border: 1px solid #e2e9f4 !important;
    border-radius: 9px !important;
    background: #f4f7fd !important;
    color: #46618c !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    font-weight: 750 !important;
    white-space: nowrap !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaInsightsLocked[hidden],
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaInsightsContent[hidden] {
    display: none !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaInsightsLocked {
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 14px !important;
    margin: 0 !important;
    background: #f7f8ff !important;
    border: 1px solid #e2e7f8 !important;
    border-radius: 12px !important;
    text-align: left !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaInsightsLocked > i {
    display: inline-grid !important;
    place-items: center !important;
    width: 30px !important;
    height: 30px !important;
    margin: 0 0 8px !important;
    border-radius: 9px !important;
    color: #6457b9 !important;
    background: #eae9fc !important;
    font-size: 18px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaInsightsLocked strong {
    font-size: 13px !important;
    line-height: 1.35 !important;
    color: #2b3b6d !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaInsightsLocked p {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    margin: 5px 0 0 !important;
    color: #6b7592 !important;
    font-size: 10.5px !important;
    line-height: 1.43 !important;
    overflow: hidden !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel .clena-insights-kpis {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    gap: 7px !important;
    min-width: 0 !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel .clena-insights-kpis > article {
    padding: 10px !important;
    border-radius: 11px !important;
    min-width: 0 !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel .clena-insights-kpis strong {
    margin: 4px 0 0 !important;
    font-size: 23px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel .clena-insights-chart-card,
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel .clena-insights-details article {
    min-width: 0 !important;
    margin-top: 10px !important;
    padding: 12px !important;
    border-radius: 12px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel .clena-insights-chart {
    height: 125px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] .clena-ads-coming {
    display: flex !important;
    align-items: flex-start !important;
    gap: 11px !important;
    min-width: 0 !important;
    margin: 12px 0 !important;
    padding: 15px !important;
    border-radius: 15px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] .clena-ads-coming .clena-ads-emblem {
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    font-size: 18px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] .clena-ads-coming h3 {
    font-size: 17px !important;
    margin: 3px 0 !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] .clena-ads-coming p {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] .control-center {
    min-width: 0 !important;
    margin-top: 13px !important;
    padding: 16px !important;
    border-radius: 16px !important;
    box-shadow: 0 3px 14px rgba(35,53,84,.045) !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] .control-center-head {
    align-items: flex-start !important;
    gap: 7px !important;
    margin-bottom: 11px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] .control-center-head h3 {
    font-size: 19px !important;
    line-height: 1.2 !important;
    margin: 4px 0 !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] .control-center-head p {
    font-size: 11px !important;
    line-height: 1.45 !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] .workflow-grid {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 8px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] .workflow-card {
    min-width: 0 !important;
    min-height: 97px !important;
    height: auto !important;
    padding: 12px !important;
    border: 1px solid #e3e9f4 !important;
    border-radius: 12px !important;
    background: #f8faff !important;
    box-shadow: none !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] .workflow-card > i {
    font-size: 20px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] .workflow-card strong {
    font-size: 11.5px !important;
    line-height: 1.3 !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] .workflow-card small {
    font-size: 10px !important;
    line-height: 1.35 !important;
  }
}
@media (max-width: 600px) {
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .hero-card {
    grid-template-columns: minmax(0,1fr) !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 16px 16px 14px !important;
    border-radius: 16px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .hero-card h2 {
    font-size: clamp(21px,5.8vw,24px) !important;
    margin-bottom: 6px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .hero-card p {
    font-size: 11px !important;
    line-height: 1.43 !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .hero-card .hero-progress {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    align-self: stretch !important;
    gap: 9px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 43px !important;
    padding: 6px 9px !important;
    border-radius: 10px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .hero-card .progress-ring {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .hero-card .progress-ring::after {
    inset: 3px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .hero-card .progress-ring strong {
    font-size: 10.5px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .hero-card .hero-progress > span {
    font-size: 10px !important;
    text-align: left !important;
    white-space: nowrap !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .stat-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 8px !important;
    margin: 10px 0 11px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .stat-grid > .stat-card {
    min-height: 72px !important;
    padding: 10px !important;
    gap: 8px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .stat-grid > .stat-card:last-child {
    grid-column: 1 / -1 !important;
    min-height: 61px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .stat-grid .stat-icon {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .stat-grid .stat-card small {
    font-size: 10px !important;
    line-height: 1.2 !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .stat-grid .stat-card strong {
    font-size: 20px !important;
    margin-top: 3px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel {
    padding: 14px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel .clena-insights-heading {
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 11px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel .clena-insights-heading > div:first-child {
    flex: 0 1 auto !important;
    width: 100% !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel .clena-insights-kicker {
    display: none !important; /* the topbar already shows the verified seal */
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel .clena-insights-heading h2 {
    font-size: 19px !important;
    margin: 0 0 5px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel .clena-insights-heading p {
    font-size: 11px !important;
    line-height: 1.4 !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel .clena-insights-period {
    min-height: 29px !important;
    font-size: 10px !important;
    padding: 6px 9px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaInsightsLocked {
    padding: 11px !important;
    border-radius: 10px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaInsightsLocked > i {
    display: none !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaInsightsLocked strong {
    font-size: 12px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaInsightsLocked p {
    font-size: 10px !important;
    margin-top: 3px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel .clena-insights-kpis > article {
    padding: 8px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel .clena-insights-kpis span {
    font-size: 9px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] #clenaStoreInsightsPanel .clena-insights-kpis strong {
    font-size: 21px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] .control-center {
    padding: 13px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] .workflow-card {
    min-height: 88px !important;
    padding: 10px !important;
  }
}
@media (max-width: 350px) {
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .hero-card {
    padding: 13px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .stat-grid {
    gap: 6px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .stat-grid > .stat-card {
    gap: 5px !important;
    padding: 8px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .stat-grid .stat-icon {
    flex-basis: 27px !important;
    min-width: 27px !important;
    width: 27px !important;
    height: 27px !important;
  }
  body.clena-editor-v2 #app .editor-section[data-editor-section="overview"] > .stat-grid .stat-card strong {
    font-size: 18px !important;
  }
}
