/* Aevy phone brand layer: calm, consistent and professional.
   Phones only (max-width:760px). Loaded after mobile-aevy.css. */
.ax-em { font-style: normal; }
.ax-ghost { display: none !important; }

@media (max-width: 760px) {
  :root { --bk: #172a9a; --bk2: #2f55e4; --bln: #e3e9fb; --bsoft: #eef2ff; }

  /* ---------- canvas ---------- */
  html body, html[data-theme="dark"] body {
    background: linear-gradient(180deg, #e8edff 0, #f4f6ff 360px) #f4f6ff !important;
    background-attachment: scroll !important;
  }
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important; }

  /* ---------- header: clean bar ---------- */
  .site-header, .site-header.hide {
    background: rgba(255,255,255,.9) !important; border-bottom: 1px solid var(--bln) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.8), 0 8px 24px -18px rgba(23,42,154,.35) !important;
    backdrop-filter: blur(18px) saturate(1.4) !important; -webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
    height: 56px !important;
  }
  .site-header .brand { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; gap: 8px !important; }
  .site-header .brand .aevy-flower { width: 28px !important; height: 28px !important; }
  .site-header .brand .aevy-word { font-size: 21px !important; font-weight: 800 !important; letter-spacing: -.04em !important; }
  .site-header .bar-actions .mobile-alerts, .site-header .bar-actions .mobile-profile {
    background: #fff !important; border: 1px solid var(--bln) !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  .site-header .bar-actions .mobile-profile { box-shadow: none !important; padding: 2px !important; }
  .site-header .bar-actions .mobile-alerts::after { border-color: #fff; }

  /* ---------- hero: framed brand card, text on gradient ---------- */
  #homeRoot .ax-dash-hero {
    width: calc(100vw - 24px) !important; margin: 12px calc(50% - 50vw + 12px) 0 !important;
    height: clamp(450px, 124vw, 500px) !important; border-radius: 28px !important;
    background: #1b2a8f !important; box-shadow: 0 24px 48px -26px rgba(23,42,154,.65) !important; overflow: hidden !important;
  }
  #homeRoot .ax-dash-hero::before {
    content: "" !important; display: block !important; position: absolute !important; inset: 0 !important; z-index: 1; height: auto !important;
    background: linear-gradient(180deg, rgba(20,32,130,0) 20%, rgba(20,32,130,.68) 50%, rgba(16,26,110,.97) 100%) !important;
  }
  #homeRoot .ax-dash-art {
    inset: 0 !important; width: 100% !important; height: 100% !important; -webkit-mask-image: none !important; mask-image: none !important;
  }
  #homeRoot .ax-dash-art img { object-position: 82% 0 !important; height: 114% !important; transform: translateY(-12%) !important; }
  #homeRoot .ax-dash-copy {
    position: absolute !important; left: 0 !important; right: 0 !important; bottom: 0 !important; z-index: 2 !important;
    width: 100% !important; padding: 0 22px 24px !important;
  }
  .ax-dash-copy .ax-eyebrow { display: block; margin: 0 0 10px !important; font-size: 10px !important; letter-spacing: .14em !important; color: #b9c8ff !important; text-shadow: none !important; }
  .ax-dash-copy .ax-eyebrow::before { display: none !important; }
  .ax-dash-copy h1 {
    margin: 0 0 10px !important; font-size: 1.85rem !important; line-height: 1.1 !important; letter-spacing: -.035em !important;
    font-weight: 800 !important; color: #fff !important; text-shadow: none !important;
  }
  .ax-dash-copy h1 span { color: #bfcdff !important; }
  .ax-dash-copy > p:not(.ax-eyebrow) { max-width: 34ch !important; font-size: 13.5px !important; line-height: 1.55 !important; color: rgba(255,255,255,.84) !important; text-shadow: none !important; }
  .ax-dash-actions { margin: 18px 0 0 !important; }
  .ax-dash-actions .btn {
    min-height: 46px !important; padding: 0 22px !important; font-size: 14.5px !important; font-weight: 700 !important;
    color: #1b34a8 !important; background: #fff !important; border: 0 !important; box-shadow: 0 10px 22px -10px rgba(0,0,0,.45) !important;
  }

  /* ---------- quick links ---------- */
  .ax-in { margin-top: 16px !important; }
  .ax-dash-shortcuts { gap: 10px !important; margin: 0 0 14px !important; }
  .ax-dash-shortcuts a {
    min-height: 66px !important; padding: 12px !important; gap: 11px !important; border-radius: 18px !important;
    background: #fff !important; border: 1px solid var(--bln) !important; box-shadow: 0 1px 2px rgba(23,42,154,.05), 0 10px 22px -18px rgba(23,42,154,.4) !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  .ax-dash-shortcuts i {
    flex: none; width: 38px !important; height: 38px !important; border-radius: 12px !important; font-size: 0 !important;
    background: var(--bsoft) var(--ic) center / 20px no-repeat !important; -webkit-mask: none !important; mask: none !important;
  }
  .ax-dash-shortcuts a:nth-child(1) i { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f55e4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-3.9-3.9'/%3E%3C/svg%3E"); }
  .ax-dash-shortcuts a:nth-child(2) i { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f55e4' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='7' height='7' rx='2'/%3E%3Crect x='13.5' y='3.5' width='7' height='7' rx='2'/%3E%3Crect x='3.5' y='13.5' width='7' height='7' rx='2'/%3E%3Crect x='13.5' y='13.5' width='7' height='7' rx='2'/%3E%3C/svg%3E"); }
  .ax-dash-shortcuts a:nth-child(3) i { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f55e4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='8.5' width='17' height='4' rx='1.2'/%3E%3Cpath d='M5 12.5V19a1.5 1.5 0 0 0 1.5 1.5h11A1.5 1.5 0 0 0 19 19v-6.5M12 8.5v12M12 8.5C9 8.5 7 7.4 7.8 5.8 8.8 4 11.3 5.7 12 8.5Zm0 0c3 0 5-1.1 4.2-2.7C15.2 4 12.7 5.7 12 8.5Z'/%3E%3C/svg%3E"); }
  .ax-dash-shortcuts a:nth-child(4) i { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f55e4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.8'/%3E%3Cpath d='M4.5 20.5c.8-3.8 3.7-5.6 7.5-5.6s6.7 1.8 7.5 5.6'/%3E%3C/svg%3E"); }
  .ax-dash-shortcuts b { font-size: 13.5px !important; font-weight: 700 !important; line-height: 1.2 !important; color: var(--bk) !important; }
  .ax-dash-shortcuts small, .ax-dash-shortcuts em { display: none !important; }

  /* ---------- panels ---------- */
  .ax-dash-panels { gap: 12px !important; margin: 0 0 24px !important; }
  .ax-dash-panel {
    padding: 16px 16px 8px !important; border-radius: 20px !important; background: #fff !important; border: 1px solid var(--bln) !important;
    box-shadow: 0 1px 2px rgba(23,42,154,.05), 0 12px 26px -20px rgba(23,42,154,.4) !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  .ax-dash-panel h3 { margin: 0 0 6px !important; font-size: 15.5px !important; font-weight: 800 !important; color: var(--bk) !important; letter-spacing: -.01em; }
  .ax-trends a {
    display: flex !important; align-items: center !important; gap: 12px; padding: 10px 0 !important; font-size: 14px !important; font-weight: 600 !important; color: #243a96 !important;
    border-top: 1px solid #eef1fb !important;
  }
  .ax-trends a:first-child { border-top: 0 !important; }
  .ax-trends a .ax-em { display: none; }
  .ax-trends a::before {
    content: ""; flex: none; width: 34px; height: 34px; border-radius: 11px;
    background: var(--bsoft) var(--ic) center / 18px no-repeat;
  }
  .ax-trends a:nth-child(1) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f55e4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 16.5V12l1.8-4.5A2 2 0 0 1 8.7 6h6.6a2 2 0 0 1 1.9 1.5L19 12v4.5M5 16.5h14M5 16.5V19M19 16.5V19'/%3E%3Ccircle cx='8' cy='13.5' r='.6'/%3E%3Ccircle cx='16' cy='13.5' r='.6'/%3E%3C/svg%3E"); }
  .ax-trends a:nth-child(2) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f55e4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 7-5 5 5 5M16 7l5 5-5 5M13.5 4.5l-3 15'/%3E%3C/svg%3E"); }
  .ax-trends a:nth-child(3) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f55e4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2.5'/%3E%3Cpath d='M11 18.5h2'/%3E%3C/svg%3E"); }
  .ax-trends a:nth-child(4) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f55e4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M18.4 5.6l-2.1 2.1M7.7 16.3l-2.1 2.1'/%3E%3C/svg%3E"); }
  .ax-trends a span:not(.ax-em) { margin-left: auto; font-size: 18px !important; color: #9aaae6 !important; }

  /* community card: solid brand gradient */
  .ax-dash-quote, .ax-dash-quote.ax-dash-panel {
    min-height: 0 !important; padding: 20px !important; border: 0 !important; justify-content: flex-start !important;
    background-image: linear-gradient(135deg, rgba(27,42,143,.96), rgba(63,88,226,.9)), url('../assets/sakura-sky.jpg') !important;
    background-size: cover !important; background-position: center !important; box-shadow: 0 18px 36px -22px rgba(27,42,143,.8) !important;
  }
  .ax-dash-quote::before { display: none !important; }
  .ax-dash-quote h3 { position: static !important; margin: 0 0 10px !important; font-size: 10px !important; letter-spacing: .14em; text-transform: uppercase; color: #b9c8ff !important; font-weight: 700 !important; }
  .ax-dash-quote p { margin: 0 0 8px !important; transform: none !important; font-size: 21px !important; line-height: 1.25 !important; font-weight: 700 !important; letter-spacing: -.02em; color: #fff !important; }
  .ax-dash-quote small { font-size: 12px !important; color: rgba(255,255,255,.78) !important; }

  .ax-dash-tip { border-left: 3px solid #4667ee !important; padding-bottom: 14px !important; }
  .ax-dash-tip p { margin: 0 0 8px !important; font-size: 13px !important; line-height: 1.55 !important; color: #4b5f9e !important; }
  .ax-dash-tip a { font-size: 13px; font-weight: 700; text-decoration: none; }

  /* ---------- library ---------- */
  .ax-dash-library { margin: 8px 0 28px !important; }
  .ax-dash-library .ax-lib-head h2 { font-size: 1.15rem !important; font-weight: 800 !important; letter-spacing: -.02em; color: var(--bk) !important; }
  .ax-dash-library .ax-eyebrow { font-size: 10px !important; color: var(--bk2) !important; }
  .ax-filter button { background: #fff !important; border: 1px solid var(--bln) !important; color: #3a4f95 !important; font-weight: 600; backdrop-filter: none !important; }
  .ax-filter button.on { background: var(--bk2) !important; border-color: var(--bk2) !important; color: #fff !important; }
  .ax-dash-library .ax-row, .ax-dash-library .ax-empty { background: #fff !important; border-color: var(--bln) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  footer { background: #fff !important; backdrop-filter: none !important; }

  /* ---------- dock ---------- */
  .tabbar {
    left: 14px !important; right: 14px !important; height: 62px !important; padding: 6px 6px !important; border-radius: 22px !important;
    background: rgba(255,255,255,.96) !important; border: 1px solid var(--bln) !important;
    box-shadow: 0 14px 34px -14px rgba(23,42,154,.45), 0 2px 6px rgba(23,42,154,.06) !important;
  }
  .tabbar a { color: #6c7fb8 !important; }
  .tabbar a > b { color: #6c7fb8 !important; font-size: 10px !important; font-weight: 600 !important; }
  .tabbar a > svg { width: 22px !important; height: 22px !important; padding: 5px 16px !important; border-radius: 14px !important; }
  .tabbar a[aria-current="page"] { color: var(--bk2) !important; }
  .tabbar a[aria-current="page"] > svg { background: #e8eeff !important; color: var(--bk2) !important; box-shadow: none !important; }
  .tabbar a[aria-current="page"] > b { color: var(--bk2) !important; font-weight: 800 !important; }
  .tabbar a[data-route="publish"] > svg {
    width: 22px !important; height: 22px !important; padding: 8px !important; border-radius: 15px !important; color: #fff !important;
    background: linear-gradient(135deg, #2f55e4, #5a5de8) !important; box-shadow: 0 8px 16px -8px rgba(47,85,228,.8) !important;
  }
  .tabbar a[data-route="publish"] > b { color: var(--bk2) !important; }
  #toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media (max-width: 380px) {
  .ax-dash-copy h1 { font-size: 1.65rem !important; }
  .ax-dash-shortcuts b { font-size: 12.5px !important; }
}

/* =====================================================================
   Refinement pass: tighter hero, badge eyebrow, app-style quick links
   ===================================================================== */
@media (max-width: 760px) {
  /* hero */
  #homeRoot .ax-dash-hero { height: clamp(400px, 108vw, 440px) !important; border-radius: 26px !important; }
  #homeRoot .ax-dash-art img { transform: translateY(-9%) !important; height: 112% !important; object-position: 80% 0 !important; }
  #homeRoot .ax-dash-copy { padding: 0 20px 20px !important; }
  .ax-dash-copy .ax-eyebrow {
    display: inline-flex !important; align-items: center; margin: 0 0 12px !important; padding: 6px 11px !important; border-radius: 999px;
    font-size: 10px !important; font-weight: 700 !important; line-height: 1 !important; letter-spacing: .12em !important; color: #e4ebff !important;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .ax-em { display: none; }
  .ax-dash-copy h1 { font-size: 1.7rem !important; line-height: 1.12 !important; margin-bottom: 8px !important; }
  .ax-dash-copy > p:not(.ax-eyebrow) { max-width: 31ch !important; font-size: 13px !important; line-height: 1.5 !important; color: rgba(255,255,255,.8) !important; }
  .ax-dash-actions { display: flex !important; gap: 10px !important; margin-top: 16px !important; }
  .ax-dash-actions .btn { min-height: 44px !important; padding: 0 20px !important; font-size: 14px !important; }
  .ax-dash-actions .btn:nth-child(2) { display: inline-flex !important; }
  .ax-dash-actions .ax-ghost {
    display: inline-flex !important; align-items: center; justify-content: center; color: #fff !important; font-weight: 650 !important;
    background: rgba(255,255,255,.14) !important; border: 1px solid rgba(255,255,255,.35) !important; box-shadow: none !important;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }

  /* quick links: launcher row */
  .ax-in { margin-top: 18px !important; }
  .ax-dash-shortcuts { grid-template-columns: repeat(4, minmax(0,1fr)) !important; gap: 6px !important; margin-bottom: 18px !important; }
  .ax-dash-shortcuts a {
    flex-direction: column !important; align-items: center !important; justify-content: flex-start !important; text-align: center;
    min-height: 0 !important; padding: 0 !important; gap: 8px !important; background: transparent !important; border: 0 !important; box-shadow: none !important;
  }
  .ax-dash-shortcuts a > span { flex: none; width: 100%; }
  .ax-dash-shortcuts i {
    width: 56px !important; height: 56px !important; border-radius: 18px !important; background-size: 24px !important;
    background-color: #fff !important; border: 1px solid var(--bln); box-shadow: 0 1px 2px rgba(23,42,154,.05), 0 12px 22px -14px rgba(23,42,154,.5);
  }
  .ax-dash-shortcuts b { display: block; font-size: 11.5px !important; font-weight: 650 !important; line-height: 1.25 !important; color: #243a96 !important; }

  /* section titles */
  .ax-dash-panel h3 { font-size: 15px !important; margin-bottom: 4px !important; }
  .ax-dash-quote h3 { font-size: 10px !important; }
  .ax-dash-panel { padding: 14px 16px 6px !important; }
  .ax-dash-tip { padding-bottom: 14px !important; }
  .ax-dash-library .ax-lib-head h2 { font-size: 1.1rem !important; }
}

@media (max-width: 760px) {
  .ax-dash-copy .ax-eyebrow::first-letter { font-size: 0 !important; }
  .ax-dash-copy .ax-eyebrow { font-family: inherit !important; text-transform: uppercase; white-space: nowrap; }
  .ax-dash-actions .btn:nth-child(2) { display: inline-flex !important; }
}
