:root { --trial-ink: #25234f; --trial-line: #d4cef5; }
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; }
body.trial-page {
  margin: 0;
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  color: var(--trial-ink);
  font: 14px/1.5 system-ui, "Microsoft YaHei", sans-serif;
  background: radial-gradient(ellipse at 85% 0%, #dedcf3, transparent 55%), linear-gradient(145deg, #ecebfb, #eef3ff);
}
.reward-float-stack { display: none !important; }
#fixedArea > header .nav { display: flex; }
#fixedArea > header .brand-logo { content: normal; }
#fixedArea > header .brand-light { display: none; }
html[data-header-mode="light"] #fixedArea > header .brand-light { display: block; }
html[data-header-mode="light"] #fixedArea > header .brand-dark { display: none; }
#fixedArea > header .header-invite { min-width: 44px; width: 44px; height: 44px; padding: 8px; color: var(--trial-ink) !important; }

.trial-shell { height: calc(100vh - 100px); height: calc(100dvh - 100px); min-height: 460px; display: flex; flex-direction: column; width: min(1180px, calc(100% - 28px)); margin: 0 auto; overflow: hidden; border: 1px solid rgba(212, 206, 245, .9); border-radius: 20px; background: #fff; box-shadow: 0 16px 38px rgba(35, 33, 91, .14); }
.trial-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 16px; border-bottom: 1px solid var(--trial-line); background: linear-gradient(105deg, #fbfbff, #f2efff); }
.trial-toolbar h1 { margin: 0; font-size: 16px; line-height: 1.3; }
.trial-toolbar p { margin: 2px 0 0; color: #736e8a; font-size: 12px; }
.trial-toolbar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.trial-toolbar button, .trial-open-external { flex: 0 0 auto; min-height: 34px; padding: 6px 13px; border: 1px solid #d4cef5; border-radius: 10px; color: #fff; background: linear-gradient(#447bec, #0c2775); font: inherit; font-weight: 700; line-height: 20px; text-decoration: none; cursor: pointer; }
.trial-open-external { color: #413a78; background: #fff; }
.trial-shell iframe { display: block; width: 100%; flex: 1; min-height: 0; border: 0; background: #f4f3ff; }

.draw-bottom-nav { position: fixed; z-index: 80; bottom: 0; left: 50%; display: flex; width: min(1180px, 100%); gap: 8px; justify-content: space-around; padding: 0 12px calc(6px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); isolation: isolate; }
.draw-bottom-nav::before { position: absolute; z-index: -1; inset: 32px 0 0; border: 1px solid var(--trial-line); border-radius: 24px 24px 0 0; background: #fcfdff; content: ""; }
.draw-bottom-item { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: center; padding: 0; border: 0; color: inherit; background: transparent; text-decoration: none; cursor: pointer; }
.draw-bottom-item img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 3px 3px #24245c44); }
.draw-bottom-item span { display: block; min-width: 60px; padding: 3px 10px; border-radius: 99px; color: #fff; background: linear-gradient(#447bec, #0c2775); font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; }
.draw-bottom-item.is-active span { background: linear-gradient(#765eff, #352184); box-shadow: 0 0 0 2px rgba(118, 94, 255, .16), 0 5px 12px rgba(53, 33, 132, .28); }
.draw-bottom-item:focus-visible { outline: 2px solid #6951cf; outline-offset: 3px; border-radius: 12px; }
#draw-service-dialog { width: min(500px, 92vw); max-height: 80vh; border: 1px solid var(--trial-line); border-radius: 20px; padding: 20px; color: var(--trial-ink); }
#draw-service-dialog::backdrop { background: #16193288; }
.draw-service-heading, .draw-service-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.draw-service-heading h2 { font-size: 18px; }.draw-service-heading button { border: 0; background: transparent; font-size: 26px; }
.draw-service-row { padding: 16px 0; border-bottom: 1px solid #eee; }.draw-service-row img { width: 48px; height: 48px; object-fit: contain; }.draw-service-row div { flex: 1; min-width: 0; overflow-wrap: anywhere; }.draw-service-row p { margin: 4px 0; font-size: 13px; }.draw-service-row a, .draw-service-row button { padding: 6px 12px; border: 1px solid var(--trial-line); border-radius: 8px; color: #5940bd; background: #f4f2ff; text-decoration: none; }
@media (max-width: 720px) { .trial-shell { width: 100%; height: calc(100dvh - 90px); min-height: 400px; border-right: 0; border-left: 0; border-radius: 0; }.trial-toolbar { align-items: flex-start; padding: 9px 12px; }.trial-toolbar p { max-width: 260px; }.trial-toolbar-actions { gap: 5px; }.trial-toolbar button, .trial-open-external { min-height: 32px; padding: 5px 8px; font-size: 12px; }.draw-bottom-nav { gap: 2px; padding-right: 4px; padding-left: 4px; }.draw-bottom-item img { width: 44px; height: 44px; }.draw-bottom-item span { min-width: 54px; padding: 3px 7px; font-size: 10px; } }
