/* Aevy phone theme: dreamy sakura home, glass cards and a floating dock.
   Everything is inside (max-width:760px), so tablet and desktop layouts are not touched.
   Loaded last, so it wins over the older sheets. */

@media (max-width: 760px) {

  /* ---------- page background: soft sakura sky ---------- */
  html body,
  html[data-theme="dark"] body {
    background-color: #e9eeff !important;
    background-image:
      linear-gradient(180deg, rgba(232,237,255,.55) 0%, rgba(226,232,255,.72) 55%, rgba(222,228,255,.9) 100%),
      url('../assets/sakura-sky.jpg') !important;
    background-size: auto, cover !important;
    background-position: center, 62% 0 !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll, fixed !important;
  }
  html[data-theme="dark"] body {
    background-color: #111a38 !important;
    background-image:
      linear-gradient(180deg, rgba(15,24,51,.86) 0%, rgba(17,26,56,.93) 100%),
      url('../assets/sakura-sky.jpg') !important;
  }
  body { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important; }

  /* ---------- header: transparent, glass pill logo ---------- */
  .site-header, .site-header.hide {
    background: linear-gradient(180deg, rgba(233,238,255,.92), rgba(233,238,255,.5) 70%, rgba(233,238,255,0)) !important;
    border: 0 !important; box-shadow: none !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    height: 66px !important; --hdr: 66px !important;
  }
  html[data-theme="dark"] .site-header, html[data-theme="dark"] .site-header.hide {
    background: linear-gradient(180deg, rgba(15,24,51,.85), rgba(15,24,51,0)) !important;
  }
  .site-header .wrap { width: calc(100% - 32px) !important; min-height: 66px !important; }
  .site-header .brand {
    gap: 10px !important; padding: 6px 22px 6px 12px !important;
    border: 1px solid rgba(255,255,255,.7) !important; border-radius: 999px !important;
    background: rgba(255,255,255,.55) !important;
    box-shadow: 0 6px 20px -8px rgba(52,80,190,.25) !important;
    backdrop-filter: blur(14px) !important; -webkit-backdrop-filter: blur(14px) !important;
  }
  .site-header .brand .aevy-flower { width: 36px !important; height: 36px !important; color: #2f4fe0 !important; }
  .site-header .brand .aevy-word { font-size: 27px !important; color: #1b34a8 !important; }
  .site-header .bar-actions { gap: 12px !important; }
  .site-header .bar-actions .mobile-alerts {
    width: 46px !important; height: 46px !important;
    border: 1px solid rgba(255,255,255,.75) !important; background: rgba(255,255,255,.6) !important;
    color: #2a47c4 !important; box-shadow: 0 6px 18px -8px rgba(52,80,190,.28) !important;
    backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important;
  }
  .site-header .bar-actions .mobile-profile {
    width: 46px !important; height: 46px !important; padding: 3px !important;
    border: 2px solid #fff !important; background: rgba(255,255,255,.85) !important;
    box-shadow: 0 0 0 2px #9db1ff, 0 6px 18px -8px rgba(52,80,190,.35) !important;
  }
  .site-header .mobile-profile .avatar { width: 38px !important; height: 38px !important; }
  /* small notification dot like the reference */
  .site-header .bar-actions .mobile-alerts { position: relative; }
  .site-header .bar-actions .mobile-alerts::after {
    content: ""; position: absolute; top: 9px; right: 11px; width: 9px; height: 9px;
    border-radius: 50%; background: #ff5a6a; border: 2px solid #fff;
  }

  /* ---------- hero: full-bleed art, text sits on top ---------- */
  .ax-in { width: calc(100% - 28px) !important; }
  .ax-dash-hero {
    position: relative !important; display: block !important; width: 100vw !important;
    margin: 0 calc(50% - 50vw) 0 !important; max-width: none !important;
    min-height: 0 !important; height: clamp(500px, 138vw, 600px) !important;
    border: 0 !important; border-radius: 0 !important; background: transparent !important;
    background-image: none !important; box-shadow: none !important; overflow: hidden !important;
  }
  .ax-dash-copy {
    position: relative !important; z-index: 2 !important; width: 74% !important; max-width: none !important;
    padding: 8px 0 0 20px !important; background: transparent !important; background-image: none !important;
  }
  html[data-theme="dark"] .ax-dash-copy { background: transparent !important; }
  .ax-dash-copy .ax-eyebrow {
    margin: 0 0 12px !important; font-size: 10.5px !important; letter-spacing: .13em !important; color: #3257e0 !important;
  }
  .ax-dash-copy h1 {
    margin: 0 0 14px !important; font-size: clamp(1.95rem, 8.4vw, 2.6rem) !important;
    line-height: 1.02 !important; letter-spacing: -.045em !important; font-weight: 800 !important;
    color: #172a9a !important; text-shadow: 0 2px 14px rgba(255,255,255,.55);
  }
  .ax-dash-copy h1 span { color: #3b5fe6 !important; }
  .ax-dash-copy > p:not(.ax-eyebrow) {
    max-width: 21ch !important; margin: 0 !important; font-size: 13.5px !important; line-height: 1.5 !important;
    color: #243a96 !important; text-shadow: 0 1px 10px rgba(255,255,255,.7);
  }
  .ax-dash-actions { margin: 18px 0 0 !important; }
  .ax-dash-actions .btn {
    min-height: 54px !important; padding: 0 26px !important; border-radius: 999px !important;
    font-size: 16px !important; font-weight: 650 !important; color: #fff !important;
    background: linear-gradient(110deg, #2437b8, #3552e0) !important;
    box-shadow: 0 14px 28px -10px rgba(36,55,184,.65) !important;
  }
  .ax-dash-pills { display: none !important; }

  .ax-dash-art {
    position: absolute !important; z-index: 1; inset: 70px 0 0 auto !important;
    width: 80% !important; height: calc(100% - 70px) !important; border: 0 !important; background: transparent !important;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%), linear-gradient(180deg, transparent 0%, #000 22%, #000 72%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 42%), linear-gradient(180deg, transparent 0%, #000 22%, #000 72%, transparent 100%);
    mask-composite: intersect;
  }
  .ax-dash-art picture { display: block !important; width: 100% !important; height: 100% !important; }
  .ax-dash-art img {
    width: 100% !important; height: 100% !important; object-fit: cover !important;
    object-position: 100% 20% !important;
  }

  /* ---------- quick link cards ---------- */
  .ax-in { margin-top: -78px !important; position: relative; z-index: 3; }
  .ax-dash-shortcuts { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 12px !important; margin: 0 0 14px !important; }
  .ax-dash-shortcuts a {
    position: relative; min-height: 84px !important; padding: 12px 9px 12px 12px !important; gap: 8px !important;
    border: 1px solid rgba(255,255,255,.85) !important; border-radius: 24px !important;
    background: rgba(255,255,255,.62) !important;
    backdrop-filter: blur(16px) saturate(1.3) !important; -webkit-backdrop-filter: blur(16px) saturate(1.3) !important;
    box-shadow: 0 12px 30px -18px rgba(52,80,190,.45), inset 0 1px 0 rgba(255,255,255,.9) !important;
  }
  .ax-dash-shortcuts i {
    width: 30px !important; height: 34px !important; border-radius: 50% !important;
    background: transparent !important; color: #2f55e4 !important; font-size: 26px !important; line-height: 1;
  }
  .ax-dash-shortcuts a, .ax-dash-shortcuts a * { overflow-wrap: normal !important; word-break: normal !important; }
  .ax-dash-shortcuts b { font-size: 13.5px !important; white-space: normal !important; color: #1b2f8f; line-height: 1.15; }
  .ax-dash-shortcuts small { margin-top: 3px !important; font-size: 11px !important; line-height: 1.25 !important; color: #5a6fa8 !important; }
  .ax-dash-shortcuts em {
    display: grid !important; width: 26px !important; height: 26px !important; font-size: 19px !important; line-height: 1;
    color: #2a4ad0 !important; border: 1px solid #c9d5ff !important; background: rgba(255,255,255,.55) !important;
  }
  /* 2-line subtitle keeps all four cards the same height */
  .ax-dash-shortcuts a > span { flex: 1; min-width: 0; }

  /* ---------- panels ---------- */
  .ax-dash-panels { gap: 14px !important; margin: 0 0 22px !important; }
  .ax-dash-panel {
    padding: 18px 18px 14px !important; border: 1px solid rgba(255,255,255,.85) !important; border-radius: 26px !important;
    background: rgba(255,255,255,.66) !important;
    backdrop-filter: blur(16px) saturate(1.25) !important; -webkit-backdrop-filter: blur(16px) saturate(1.25) !important;
    box-shadow: 0 14px 34px -22px rgba(52,80,190,.5) !important;
  }
  .ax-dash-panel h3 { margin: 0 0 8px !important; font-size: 19px !important; font-weight: 800 !important; color: #172a9a !important; }
  .ax-trends { gap: 0 !important; }
  .ax-trends a {
    padding: 11px 2px !important; font-size: 16px !important; font-weight: 500; color: #1c3399 !important;
    border-top: 1px solid rgba(160,178,240,.28);
  }
  .ax-trends a:first-child { border-top: 0; }
  .ax-trends a span { color: #3a5be0; font-size: 20px; }

  /* quote card: sky photo, tilted white script text */
  .ax-dash-quote, .ax-dash-quote.ax-dash-panel {
    position: relative; min-height: 190px !important; justify-content: flex-end !important; border: 0 !important;
    background-image: linear-gradient(180deg, rgba(60,86,214,.30), rgba(36,52,170,.62)), url('../assets/sakura-sky.jpg') !important;
    background-size: cover !important; background-position: center !important;
  }
  .ax-dash-quote::before {
    content: "\201C"; position: absolute; top: 4px; left: 20px; font: 800 64px/1 Georgia, serif; color: rgba(255,255,255,.92);
  }
  .ax-dash-quote h3 { position: absolute; top: 16px; right: 18px; margin: 0 !important; font-size: 11px !important; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85) !important; }
  .ax-dash-quote p { margin: 0 0 6px !important; font-size: 24px !important; font-weight: 600; line-height: 1.2 !important; transform: rotate(-4deg); transform-origin: left bottom; color: #fff !important; }
  .ax-dash-quote small { color: rgba(255,255,255,.85) !important; }

  .ax-dash-tip { background: rgba(255,255,255,.66) !important; }
  .ax-dash-tip p { font-size: 13px !important; color: #3a4f95 !important; }

  /* ---------- library ---------- */
  .ax-dash-library .ax-lib-head h2 { color: #172a9a !important; }
  .ax-filter button { background: rgba(255,255,255,.65); border-color: rgba(255,255,255,.9); color: #2a3f9e; backdrop-filter: blur(10px); }
  .ax-filter button.on { background: linear-gradient(110deg, #2f46c9, #4a63ea); border-color: transparent; color: #fff; }
  .ax-dash-library .ax-row, .ax-dash-library .ax-empty {
    background: rgba(255,255,255,.66) !important; border-color: rgba(255,255,255,.85) !important;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }

  /* ---------- footer on top of the photo ---------- */
  footer { background: rgba(255,255,255,.55) !important; border-color: rgba(255,255,255,.8) !important; backdrop-filter: blur(14px); }

  /* ---------- floating glass dock ---------- */
  .tabbar {
    left: 14px !important; right: 14px !important; bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    height: 76px !important; padding: 8px 8px !important; border-radius: 34px !important;
    border: 1px solid rgba(255,255,255,.9) !important; background: rgba(244,247,255,.72) !important;
    box-shadow: 0 18px 40px -16px rgba(40,62,170,.5), inset 0 1px 0 rgba(255,255,255,.95) !important;
    backdrop-filter: blur(26px) saturate(1.5) !important; -webkit-backdrop-filter: blur(26px) saturate(1.5) !important;
  }
  .tabbar a { gap: 4px !important; color: #2a47c4 !important; }
  .tabbar a > svg { width: 24px !important; height: 24px !important; padding: 7px 17px !important; }
  .tabbar a > b { font-size: 11px !important; font-weight: 650 !important; color: #2a47c4; }
  .tabbar a[aria-current="page"] > svg {
    color: #fff !important; background: linear-gradient(120deg, #3a6df2, #5a5de8) !important;
    box-shadow: 0 8px 18px -6px rgba(58,90,235,.65) !important; border-radius: 22px !important;
  }
  .tabbar a[aria-current="page"] > b { color: #1f3bb8 !important; font-weight: 800 !important; }
  .tabbar a[data-route="publish"] { transform: none !important; }
  .tabbar a[data-route="publish"] > svg {
    width: 28px !important; height: 28px !important; padding: 9px !important; border-radius: 50% !important;
    background: linear-gradient(135deg, #3a6df2, #6a58ea) !important; box-shadow: 0 10px 22px -6px rgba(58,90,235,.7) !important;
  }
  html[data-theme="dark"] .tabbar { background: rgba(20,31,68,.82) !important; border-color: rgba(145,165,230,.3) !important; }
  html[data-theme="dark"] .tabbar a, html[data-theme="dark"] .tabbar a > b { color: #c6d3ff !important; }

  /* ---------- dark mode text on the hero ---------- */
  html[data-theme="dark"] .ax-dash-copy h1 { color: #eef2ff !important; text-shadow: none; }
  html[data-theme="dark"] .ax-dash-copy > p:not(.ax-eyebrow) { color: #cdd8ff !important; text-shadow: none; }
  html[data-theme="dark"] .ax-dash-shortcuts a, html[data-theme="dark"] .ax-dash-panel { background: rgba(26,38,78,.7) !important; border-color: rgba(145,165,230,.25) !important; }
  html[data-theme="dark"] .ax-dash-shortcuts b, html[data-theme="dark"] .ax-dash-panel h3, html[data-theme="dark"] .ax-trends a { color: #eef2ff !important; }
  html[data-theme="dark"] .ax-dash-shortcuts small { color: #a9b9ea !important; }
}

@media (max-width: 380px) {
  .ax-dash-copy { width: 70% !important; padding-left: 16px !important; }
  .ax-dash-shortcuts b { font-size: 12.5px !important; }
  .ax-dash-shortcuts small { font-size: 10px !important; }
  .ax-dash-shortcuts i { width: 24px !important; font-size: 22px !important; }
  .tabbar a > svg { padding: 7px 13px !important; }
}

/* =====================================================================
   Phone polish: consistent icons, professional pop-ups, toast, banner
   ===================================================================== */
@media (max-width: 760px) {

  /* ---- quick-link icons: one SVG set, same size and weight ---- */
  .ax-dash-shortcuts i {
    font-size: 0 !important; width: 28px !important; height: 28px !important; flex: none;
    background: #2f55e4 !important; border-radius: 0 !important;
    -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
  }
  .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='%23000' 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='%23000' 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='%23000' 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='%23000' 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 em { width: 26px !important; height: 26px !important; font-size: 0 !important; position: relative; }
  .ax-dash-shortcuts em::after { content: ""; width: 7px; height: 7px; border: solid #2a4ad0; border-width: 2px 2px 0 0; transform: rotate(45deg) translate(-1px, 1px); position: absolute; top: 50%; left: 50%; margin: -4px 0 0 -4px; }
  .ax-trends a span { font-size: 18px !important; }

  /* ---- announcement bar: slim glass strip ---- */
  .x-ann {
    min-height: 40px !important; padding: 8px 14px !important; gap: 10px !important; font-size: 13px !important; font-weight: 600 !important;
    background: linear-gradient(110deg, #2f46c9, #4b64ea) !important; color: #fff !important; letter-spacing: .005em;
    box-shadow: 0 6px 18px -10px rgba(36,55,184,.6) !important;
  }
  .x-ann button { width: 28px !important; height: 28px !important; border-radius: 50% !important; background: rgba(255,255,255,.18) !important; font-size: 18px !important; line-height: 1 !important; color: #fff !important; }

  /* ---- toast: sits above the dock, glass pill ---- */
  #toast {
    bottom: calc(106px + env(safe-area-inset-bottom, 0px)) !important; max-width: calc(100% - 40px) !important;
    padding: 12px 20px !important; border-radius: 999px !important; font-size: 13.5px !important; font-weight: 600 !important; text-align: center;
    color: #fff !important; background: rgba(24,40,120,.92) !important;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 16px 34px -12px rgba(24,40,120,.6) !important;
  }

  /* ---- detail pop-up: clean bottom sheet ---- */
  dialog {
    position: fixed !important; inset: auto 0 0 0 !important; margin: 0 !important;
    width: 100% !important; max-width: 100% !important; max-height: 90dvh !important;
    border: 0 !important; border-radius: 28px 28px 0 0 !important;
    background: #fbfcff !important; color: var(--text) !important;
    box-shadow: 0 -24px 60px -20px rgba(24,40,120,.45) !important;
  }
  dialog[open] { animation: aevySheet .28s cubic-bezier(.2,.8,.2,1) !important; }
  @keyframes aevySheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  dialog::backdrop { background: rgba(22,32,92,.45) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .dlg-head { position: relative; padding: 26px 18px 14px !important; gap: 12px !important; align-items: flex-start; border-bottom: 1px solid #e3e9ff !important; background: transparent !important; }
  .dlg-head::before { content: ""; position: absolute; top: 9px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: #c9d4fb; }
  .dlg-head h2 { font-size: 1.15rem !important; line-height: 1.25 !important; letter-spacing: -.02em !important; font-weight: 750 !important; overflow-wrap: anywhere; color: #172a9a; }
  .dlg-head .sub { margin-top: 6px !important; gap: 4px 12px !important; font-size: 11.5px !important; }
  .dlg-head .icon-btn, #dlgClose {
    flex: none; display: grid !important; place-items: center; width: 38px !important; height: 38px !important;
    border-radius: 50% !important; border: 1px solid #dbe3ff !important; background: #f1f4ff !important; color: #2a47c4 !important; outline: none !important; box-shadow: none !important;
  }
  .dlg-head .icon-btn svg, #dlgClose svg { width: 17px !important; height: 17px !important; }
  .dlg-body { padding: 16px 18px calc(24px + env(safe-area-inset-bottom, 0px)) !important; gap: 14px !important; }
  .dlg-bar { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
  .dlg-bar .btn { min-height: 44px; justify-content: center; font-size: 14px; }
  .dlg-bar .btn-primary { grid-column: 1 / -1; min-height: 48px; }
  .dlg-body pre { padding: 12px 14px; border-radius: 14px; font-size: 12.5px; }

  /* ---- upload sheet ---- */
  .up-modal { background: rgba(22,32,92,.45) !important; backdrop-filter: blur(6px) !important; -webkit-backdrop-filter: blur(6px) !important; }
  .up-box {
    background: #fbfcff !important; border: 0 !important; border-radius: 28px 28px 0 0 !important; position: relative;
    padding: 26px 18px calc(20px + env(safe-area-inset-bottom, 0px)) !important; box-shadow: 0 -24px 60px -20px rgba(24,40,120,.45) !important;
  }
  .up-box::before { content: ""; position: absolute; top: 9px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: #c9d4fb; }
  .up-head h2 { font-size: 1.2rem !important; font-weight: 750 !important; color: #172a9a; }
  .up-head .icon-btn { width: 38px !important; height: 38px !important; border-radius: 50% !important; border: 1px solid #dbe3ff !important; background: #f1f4ff !important; color: #2a47c4 !important; }
  .up-box .drop { padding: 30px 16px !important; border: 1.5px dashed #9db1ff !important; border-radius: 20px !important; background: #f3f6ff !important; color: #3a4f95 !important; }
  .up-box .field, .up-box input, .up-box select { min-height: 46px; border-radius: 14px !important; background-color: #fff !important; }
  .up-box .actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .up-box .actions .btn { min-height: 50px; justify-content: center; }

  /* ---- floating chat/messages panels: same glass look ---- */
  .mp, .pwa-card, .dx { border-radius: 22px !important; border: 1px solid rgba(255,255,255,.9) !important; background: rgba(251,252,255,.96) !important; box-shadow: 0 22px 50px -18px rgba(24,40,120,.45) !important; }
  .pwa-card { bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important; }

  /* ---- dark mode ---- */
  html[data-theme="dark"] dialog, html[data-theme="dark"] .up-box { background: #172248 !important; }
  html[data-theme="dark"] .dlg-head h2, html[data-theme="dark"] .up-head h2 { color: #eef2ff; }
  html[data-theme="dark"] .dlg-head { border-bottom-color: #2a3b6c !important; }
  html[data-theme="dark"] .dlg-head .icon-btn, html[data-theme="dark"] .up-head .icon-btn { background: #202f5b !important; border-color: #3a4d7f !important; color: #cedaff !important; }
  html[data-theme="dark"] .up-box .drop { background: #1b2a56 !important; color: #c1cff4 !important; }
  html[data-theme="dark"] .up-box .field, html[data-theme="dark"] .up-box input, html[data-theme="dark"] .up-box select { background: #202f5b !important; }
}

/* dropdown arrow for select fields in the pop-ups (older rules reset it) */
.up-box select.sel, #gwModal select.sel {
  -webkit-appearance: none; appearance: none; padding-right: 42px !important;
  background-image: 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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 18px !important;
}

/* =====================================================================
   Compact sizing: smaller header, text, cards and dock on phones
   ===================================================================== */
@media (max-width: 760px) {
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important; }

  /* header */
  .site-header, .site-header.hide { height: 56px !important; --hdr: 56px !important; }
  .site-header .wrap { min-height: 56px !important; width: calc(100% - 24px) !important; }
  .site-header .brand { gap: 7px !important; padding: 4px 14px 4px 9px !important; }
  .site-header .brand .aevy-flower { width: 26px !important; height: 26px !important; }
  .site-header .brand .aevy-word { font-size: 20px !important; }
  .site-header .bar-actions { gap: 8px !important; }
  .site-header .bar-actions .mobile-alerts { width: 38px !important; height: 38px !important; }
  .site-header .bar-actions .mobile-alerts svg { width: 19px !important; height: 19px !important; }
  .site-header .bar-actions .mobile-alerts::after { top: 7px; right: 9px; width: 8px; height: 8px; }
  .site-header .bar-actions .mobile-profile { width: 38px !important; height: 38px !important; padding: 2px !important; }
  .site-header .mobile-profile .avatar { width: 30px !important; height: 30px !important; }

  /* hero */
  .ax-dash-hero { height: clamp(430px, 116vw, 500px) !important; }
  .ax-dash-copy { width: 72% !important; padding: 4px 0 0 16px !important; }
  .ax-dash-copy .ax-eyebrow { margin-bottom: 8px !important; font-size: 9px !important; letter-spacing: .1em !important; }
  .ax-dash-copy h1 { margin-bottom: 10px !important; font-size: clamp(1.65rem, 7.2vw, 2.05rem) !important; line-height: 1.05 !important; }
  .ax-dash-copy > p:not(.ax-eyebrow) { max-width: 20ch !important; font-size: 12.5px !important; line-height: 1.45 !important; }
  .ax-dash-actions { margin-top: 14px !important; }
  .ax-dash-actions .btn { min-height: 44px !important; padding: 0 20px !important; font-size: 14px !important; }
  .ax-dash-art { inset: 50px 0 0 auto !important; height: calc(100% - 50px) !important; }

  /* cards */
  .ax-in { margin-top: -56px !important; width: calc(100% - 24px) !important; }
  .ax-dash-shortcuts { gap: 9px !important; margin-bottom: 11px !important; }
  .ax-dash-shortcuts a { min-height: 70px !important; padding: 10px 8px 10px 10px !important; gap: 7px !important; border-radius: 20px !important; }
  .ax-dash-shortcuts i { width: 22px !important; height: 26px !important; }
  .ax-dash-shortcuts b { font-size: 12.5px !important; }
  .ax-dash-shortcuts small { font-size: 10.5px !important; line-height: 1.2 !important; }
  .ax-dash-shortcuts em { width: 22px !important; height: 22px !important; }
  .ax-dash-shortcuts em::after { width: 6px; height: 6px; margin: -3px 0 0 -4px; }

  /* panels */
  .ax-dash-panels { gap: 10px !important; }
  .ax-dash-panel { padding: 14px 15px 10px !important; border-radius: 22px !important; }
  .ax-dash-panel h3 { margin-bottom: 4px !important; font-size: 16px !important; }
  .ax-trends a { padding: 9px 2px !important; font-size: 14px !important; }
  .ax-dash-quote, .ax-dash-quote.ax-dash-panel { min-height: 150px !important; }
  .ax-dash-quote::before { font-size: 48px; left: 16px; }
  .ax-dash-quote h3 { font-size: 9.5px !important; top: 14px; right: 14px; }
  .ax-dash-quote p { font-size: 19px !important; }
  .ax-dash-quote small { font-size: 11px; }
  .ax-dash-tip p { font-size: 12px !important; }
  .ax-dash-library .ax-lib-head h2 { font-size: 1.2rem !important; }
  .ax-sub { font-size: 13px !important; }

  /* dock */
  .tabbar { left: 12px !important; right: 12px !important; bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important; height: 64px !important; padding: 6px !important; border-radius: 28px !important; }
  .tabbar a { gap: 3px !important; }
  .tabbar a > svg { width: 21px !important; height: 21px !important; padding: 5px 14px !important; }
  .tabbar a > b { font-size: 10px !important; }
  .tabbar a[data-route="publish"] > svg { width: 24px !important; height: 24px !important; padding: 8px !important; }
  #toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important; font-size: 12.5px !important; padding: 10px 16px !important; }

  /* pop-ups */
  .dlg-head h2 { font-size: 1.02rem !important; }
  .up-head h2 { font-size: 1.08rem !important; }
  .up-box label.l, .up-box .l { font-size: 12px !important; margin-bottom: 5px; }
  .up-box .field, .up-box input, .up-box select { min-height: 42px !important; font-size: 14.5px !important; }
  .up-box .drop { padding: 22px 14px !important; font-size: 14px; }
  .up-box .actions .btn { min-height: 46px !important; font-size: 14.5px; }
  .dlg-bar .btn { min-height: 40px; font-size: 13.5px; }
  .dlg-bar .btn-primary { min-height: 44px; }
  .dlg-head .icon-btn, #dlgClose, .up-head .icon-btn { width: 34px !important; height: 34px !important; }
}
@media (max-width: 380px) {
  .ax-dash-copy h1 { font-size: 1.6rem !important; }
  .ax-dash-shortcuts b { font-size: 12px !important; }
  .ax-dash-shortcuts small { font-size: 10px !important; }
}
