/* Envision your Engagefully 365 app
   RD Mobile palette from the TechSmart 2026 deck. The prospect's own colours
   arrive as --p (main) and --a (accent) on :root, set by app.js. */

:root {
  --rd-purple: #6246B4;
  --rd-purple-dark: #4B3392;
  --rd-purple-tint: #EFEBFA;
  --rd-teal: #04A6B3;
  --rd-teal-dark: #037680;
  --rd-teal-tint: #E6F7F8;
  --rd-green: #7BA040;
  --rd-green-dark: #57742A;
  --rd-green-tint: #F2F7EA;
  --ink: #2E2E38;
  --ink-soft: #5A5A6A;
  --ink-faint: #767685;
  --line: #DCDCE6;
  --line-soft: #ECEBF3;
  --paper: #FFFFFF;
  --bg: #F6F5FB;
  --focus: 0 0 0 3px rgba(98, 70, 180, .35);

  /* Replaced by app.js from the prospect's brand */
  --p: #6246B4; --a: #04A6B3;
  --on-p: #FFFFFF; --on-a: #1F1F27;
  --p-dark: #46327F; --on-pd: #FFFFFF;
  --p-soft: #F3F1FA; --p-tint: #E0DAF0; --p-ink: #6246B4;
  --a-soft: #DDF3F5; --a-ink: #037680;
  --p-glow: rgba(98, 70, 180, .22);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}
body.noscroll { overflow: hidden; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--rd-purple); }
:focus-visible { outline: none; box-shadow: var(--focus); }
[hidden] { display: none !important; }

.ic {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -.125em;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-in {
  max-width: 1320px; margin: 0 auto; height: 64px; padding: 0 24px;
  display: flex; align-items: center; gap: 16px;
}
.ef-logo { height: 34px; width: auto; }
.topbar-sep { width: 1px; height: 28px; background: var(--line); }
.topbar-title { font-weight: 700; color: var(--rd-purple); font-size: 15px; }
.version {
  padding: 1px 8px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line-soft);
  color: var(--ink-faint); font-size: 12px; font-weight: 600; letter-spacing: .2px;
}
.version-foot { white-space: nowrap; }
.region {
  margin-left: auto; flex: none;
  display: inline-flex; padding: 3px; gap: 2px;
  border-radius: 999px; background: var(--bg); border: 1px solid var(--line-soft);
}
.region button {
  min-height: 36px; min-width: 52px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-soft); font-weight: 700; font-size: 13px; letter-spacing: .3px;
}
.region button:hover { color: var(--rd-purple); }
.region button[aria-pressed="true"] { background: var(--rd-purple); color: #fff; box-shadow: 0 1px 3px rgba(46, 46, 56, .2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:hover { border-color: var(--rd-purple); color: var(--rd-purple); }
.btn:active { transform: translateY(1px); }
.btn .ic { font-size: 18px; }
.btn-primary { background: var(--rd-purple); border-color: var(--rd-purple); color: #fff; }
.btn-primary:hover { background: var(--rd-purple-dark); border-color: var(--rd-purple-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--rd-purple-tint); border-color: transparent; color: var(--rd-purple); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.link {
  background: none; border: 0; padding: 0;
  color: var(--rd-purple); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Layout ---------- */
.layout {
  max-width: 1320px; margin: 0 auto; padding: 28px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 42vw, 520px);
  gap: 32px; align-items: start;
}

.kicker {
  margin: 0 0 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--rd-teal-dark);
}
h1 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; font-weight: 800;
  letter-spacing: -.4px; color: var(--rd-purple);
}
.lede { margin: 10px 0 0; max-width: 560px; font-size: 16px; color: var(--ink-soft); }

/* ---------- Steps ---------- */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin: 24px 0 16px; padding: 5px;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 16px;
  scroll-margin-top: 80px;
}
.step {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px;
  border: 0; border-radius: 11px; background: transparent;
  font-weight: 700; font-size: 13.5px; color: var(--ink-soft); text-align: left;
}
.step:hover { background: var(--bg); }
.step-n {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--line-soft); color: var(--ink-soft); font-size: 12px;
}
.step-n .ic { font-size: 14px; stroke-width: 2.6; }
.step.done .step-n { background: var(--rd-green); color: #fff; }
.step[aria-current="step"] { background: var(--rd-purple); color: #fff; }
.step[aria-current="step"] .step-n { background: #fff; color: var(--rd-purple); }

/* ---------- Panels & fields ---------- */
.panel {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 20px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(46, 46, 56, .04), 0 10px 30px rgba(46, 46, 56, .06);
}
.panel h2 { margin: 0 0 18px; font-size: 21px; font-weight: 800; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend, .label {
  display: block; margin-bottom: 7px; padding: 0;
  font-weight: 700; font-size: 14px;
}
.opt { margin-left: 4px; font-weight: 600; font-size: 12px; color: var(--ink-faint); }
input[type="text"], select {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"]:focus, select:focus { outline: none; border-color: var(--rd-purple); box-shadow: var(--focus); }
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A5A6A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.help { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.aside-link { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font-weight: 600; font-size: 13.5px;
}
.chip:hover { border-color: var(--rd-purple); }
.chip .ic { display: none; font-size: 15px; stroke-width: 2.4; }
.chip[aria-pressed="true"] { background: var(--rd-purple); border-color: var(--rd-purple); color: #fff; }
.chip[aria-pressed="true"] .ic { display: inline; }

/* Logo drop */
.drop {
  border: 2px dashed var(--line); border-radius: 16px; padding: 22px;
  background: var(--bg); text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop.drag { border-color: var(--rd-purple); background: var(--rd-purple-tint); }
.drop-empty { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.drop-empty b { font-size: 15px; }
.drop-empty span { color: var(--ink-soft); font-size: 14px; }
.drop-empty u { color: var(--rd-purple); font-weight: 700; text-underline-offset: 3px; }
.drop-empty small { margin-top: 6px; color: var(--ink-faint); font-size: 12.5px; }
.drop-ic { font-size: 30px; color: var(--rd-purple); line-height: 1; margin-bottom: 4px; }
.drop.has { border-style: solid; background: #fff; cursor: default; padding: 14px; }
.drop.has .drop-empty, .drop:not(.has) .drop-full { display: none; }
.drop-full { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.drop-full img {
  max-height: 80px; max-width: 60%; object-fit: contain; padding: 8px; border-radius: 10px;
  background: repeating-conic-gradient(#F0F0F4 0 25%, #fff 0 50%) 0 0 / 14px 14px;
}
.drop-acts { display: flex; gap: 6px; }

/* Colours */
.colour-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.colour-grid .field { margin-bottom: 4px; }
.colour-in { display: flex; gap: 8px; }
.colour-in input[type="color"] {
  flex: none; width: 46px; height: 46px; padding: 3px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
}
.colour-in input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.colour-in input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 8px; }
.colour-in input[type="color"]::-moz-color-swatch { border: 0; border-radius: 8px; }
.colour-in input[type="text"] { font-family: ui-monospace, "SF Mono", Menlo, monospace; text-transform: uppercase; min-width: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sw {
  width: 28px; height: 28px; padding: 0; border-radius: 8px;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line);
}
.sw:hover { transform: scale(1.08); }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.sw-help { margin: 0 0 18px; }

/* Radio choices */
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  position: relative; flex: 1; min-width: 150px;
  display: flex; flex-direction: column; gap: 8px; padding: 12px;
  border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer;
  font-weight: 600; font-size: 13.5px;
}
.choice:hover { border-color: var(--rd-purple); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice.on { border-color: var(--rd-purple); background: var(--rd-purple-tint); }
.choice:focus-within { box-shadow: var(--focus); }
.choice.small { flex: none; min-width: 120px; flex-direction: row; align-items: center; padding: 10px 16px; }
.mini {
  display: flex; flex-direction: column; height: 60px;
  border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; background: #fff;
}
.mini i { position: relative; height: 24px; background: #fff; }
.mini i::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 8px; margin-left: -20px;
  border-radius: 4px; background: var(--p);
}
.mini b { flex: 1; background: var(--p); position: relative; }
.mini b::after {
  content: ""; position: absolute; left: 10px; right: 30%; top: 10px; height: 14px;
  border-radius: 3px; background: rgba(255, 255, 255, .85);
}
.mini-colour i { background: var(--p); }
.mini-colour i::after { background: #fff; }
.mini-colour b { background: #F1F1F5; }
.mini-colour b::after { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }

/* Home-screen icon preview */
.homescreen {
  margin-top: 14px; max-width: 340px; padding: 22px 16px 18px;
  border-radius: 24px;
  background: linear-gradient(160deg, #3A2D6C 0%, #1F5C73 58%, #2C7A5A 100%);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 8px;
}
.hs-app { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; color: #fff; font-size: 10.5px; text-align: center; }
.hs-app .ph {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; color: #fff; font-size: 25px;
}
.hs-app .ph .ic { stroke-width: 2; }
.hs-l { max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-app.you .hs-l { font-weight: 700; }

/* Prospect's app icon (used in plan, home screen, push) */
.app-icon {
  --s: 52px;
  position: relative; flex: none; overflow: hidden;
  width: var(--s); height: var(--s); border-radius: calc(var(--s) * .23);
  display: grid; place-items: center;
  background: var(--p); color: var(--on-p);
  box-shadow: inset 0 calc(var(--s) * -.1) 0 var(--a);
}
.app-icon b { font-weight: 800; font-size: calc(var(--s) * .34); letter-spacing: .02em; line-height: 1; padding-bottom: calc(var(--s) * .06); }
.app-icon b.long { font-size: calc(var(--s) * .26); }
.app-icon.logo { background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.app-icon.logo img { width: 82%; height: 82%; object-fit: contain; }

/* Features */
.fcount {
  font-size: 13px; font-weight: 700; color: var(--rd-purple);
  background: var(--rd-purple-tint); padding: 2px 10px; border-radius: 999px;
}
.included {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 14px;
  background: var(--rd-teal-tint); font-size: 13.5px; color: var(--ink-soft);
}
.included b { color: var(--rd-teal-dark); }
.recbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin: 0 0 20px; padding: 10px 10px 10px 14px; border-radius: 14px;
  background: var(--rd-purple-tint); font-size: 14px; font-weight: 600;
}
.recbar:empty { display: none; }
.recbar .ic { color: var(--rd-purple); margin-right: 6px; }
.recbar.all { background: var(--rd-green-tint); }
.recbar.all .ic { color: var(--rd-green-dark); }

.tone-purple { --tone: var(--rd-purple); --tone-ink: var(--rd-purple); --tone-tint: var(--rd-purple-tint); }
.tone-teal { --tone: var(--rd-teal); --tone-ink: var(--rd-teal-dark); --tone-tint: var(--rd-teal-tint); }
.tone-green { --tone: var(--rd-green); --tone-ink: var(--rd-green-dark); --tone-tint: var(--rd-green-tint); }
.tone-ai { --tone: #8C6FE0; --tone-ink: #4B3392; --tone-tint: #F4F0FD; }

.fgroup { margin: 0 0 22px; }
.fgroup > header { margin-bottom: 10px; padding: 2px 0 2px 12px; border-left: 4px solid var(--tone); }
.fgroup h3 { margin: 0; font-size: 16px; color: var(--tone-ink); }
.fgroup h3 .new {
  margin-left: 6px; padding: 1px 7px; border-radius: 6px; vertical-align: 2px;
  font-size: 10.5px; letter-spacing: .5px; text-transform: uppercase;
  background: var(--tone); color: #fff;
}
.fgroup > header p { margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.fcard {
  position: relative; display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 40px 12px 12px;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.fcard:hover { border-color: var(--tone); }
.fcard input { position: absolute; opacity: 0; pointer-events: none; }
.fcard:focus-within { box-shadow: var(--focus); }
.fcard.on { border-color: var(--tone); background: var(--tone-tint); }
.fic {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--tone-tint); color: var(--tone-ink); font-size: 19px;
}
.fcard.on .fic { background: var(--tone); color: #fff; }
.ftext { min-width: 0; }
.fname { display: block; font-weight: 700; font-size: 14px; line-height: 1.3; }
.fdesc { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--ink-soft); }
.fcheck {
  position: absolute; top: 12px; right: 12px; width: 20px; height: 20px;
  display: grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: 6px; background: #fff;
  color: #fff; font-size: 14px;
}
.fcheck .ic { stroke-width: 3; visibility: hidden; }
.fcard.on .fcheck { background: var(--tone); border-color: var(--tone); }
.fcard.on .fcheck .ic { visibility: visible; }
.rec {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; vertical-align: 1px;
  font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  background: var(--rd-teal-tint); color: var(--rd-teal-dark);
}
.fcard.on .rec { background: #fff; }

/* Plan */
.plan { border: 1px solid var(--line-soft); border-radius: 18px; overflow: hidden; background: #fff; }
.plan-head {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  background: var(--bg); border-bottom: 1px solid var(--line-soft);
}
.plan-head .kicker { margin-bottom: 2px; }
.plan-head h3 { margin: 0; font-size: 20px; line-height: 1.2; }
.plan-sub { margin: 2px 0 0; font-size: 14px; color: var(--ink-soft); }
.plan-sw { margin-left: auto; display: flex; gap: 6px; }
.plan-sw span { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.plan section { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.plan h4 {
  margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ink-faint); display: flex; align-items: center; gap: 6px;
}
.count { padding: 1px 8px; border-radius: 999px; background: var(--rd-purple); color: #fff; font-size: 11px; letter-spacing: 0; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 4px 11px; border-radius: 999px; background: var(--rd-purple-tint); color: var(--rd-purple); font-weight: 600; font-size: 13px; }
.start { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.start li { display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; }
.start-k {
  grid-row: span 2; align-self: start; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  background: var(--rd-purple); color: #fff;
}
.start li:nth-child(2) .start-k { background: var(--rd-teal-dark); }
.start li:nth-child(3) .start-k { background: var(--rd-green-dark); }
.start b { font-size: 15px; line-height: 1.35; }
.start .start-d { font-size: 13.5px; color: var(--ink-soft); }
.plan-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 18px; }
.plan-col h5 { margin: 0 0 6px; padding-left: 8px; border-left: 3px solid var(--tone); font-size: 14px; color: var(--tone-ink); }
.plan-col ul { list-style: none; margin: 0; padding: 0; }
.plan-col li { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 13.5px; }
.plan-col li .ic { color: var(--tone-ink); font-size: 16px; }
.incl { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-soft); }
.incl li { margin: 3px 0; }
.plan-foot { display: flex; align-items: center; gap: 12px; padding: 14px 20px; font-size: 12.5px; color: var(--ink-faint); }
.plan-foot img { height: 30px; width: auto; }
.plan-empty { padding: 4px 0; color: var(--ink-soft); font-size: 14px; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.step-nav .is-hidden { visibility: hidden; }

/* ---------- Preview column ---------- */
.preview {
  position: sticky; top: 84px;
  height: calc(100vh - 112px); min-height: 540px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.phone-wrap { position: relative; flex: none; }
.phone-wrap::before {
  content: ""; position: absolute; left: -35%; right: -35%; top: 6%; bottom: 6%;
  background: radial-gradient(closest-side, var(--p-glow), transparent);
  pointer-events: none;
}
.preview-actions { width: min(100%, 440px); text-align: center; }
.alert-form { display: flex; gap: 8px; }
.alert-form input[type="text"] { flex: 1; min-width: 0; height: 44px; border-radius: 999px; font-size: 14px; }
.hint { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-faint); }
.preview-close, .preview-fab { display: none; }

/* ---------- Footer & toast ---------- */
.foot {
  margin: 36px 0 0; padding: 20px 0 0;
  display: flex; align-items: center; gap: 18px;
  border-top: 1px solid var(--line-soft); color: var(--ink-faint); font-size: 13px;
}
.foot img { height: 38px; width: auto; flex: none; }
.foot p { margin: 0; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  opacity: 0; pointer-events: none; transform: translate(-50%, 20px);
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ======================================================================
   Phone
   ====================================================================== */
.phone {
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 360px; height: 740px; padding: 12px;
  border-radius: 60px; background: #17171B; transform-origin: 0 0;
  box-shadow:
    inset 0 0 0 2px #4A4A52, inset 0 0 0 5px #0B0B0D,
    0 40px 80px rgba(36, 24, 80, .24), 0 10px 24px rgba(36, 24, 80, .16);
}
.screen {
  position: relative; isolation: isolate;
  width: 100%; height: 100%; overflow: hidden;
  border-radius: 48px; background: #fff;
  display: flex; flex-direction: column;
  color: #1F1F27;
  font: 400 13px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Open Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
:where(.screen) button { font: inherit; color: inherit; cursor: pointer; text-align: inherit; }
.screen .ic { stroke-width: 1.7; }

.status {
  position: relative; z-index: 3; flex: none; height: 48px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 28px 0 36px;
  background: #fff; color: #111; font-weight: 600; font-size: 14.5px;
}
.status.on-p { background: var(--p); color: var(--on-p); }
.island { position: absolute; top: 11px; left: 50%; width: 110px; height: 32px; margin-left: -55px; border-radius: 20px; background: #000; }
.st-sys { display: flex; align-items: center; gap: 5px; }
.st-sys svg { height: 11.5px; width: auto; fill: currentColor; }

.view {
  position: relative; flex: 1;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  scrollbar-width: none;
}
.view::-webkit-scrollbar { display: none; }
.scr { min-height: 100%; }
.anim-push { animation: pushIn .24s ease-out; }
.anim-back { animation: backIn .24s ease-out; }
@keyframes pushIn { from { transform: translateX(28px); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes backIn { from { transform: translateX(-28px); opacity: .2; } to { transform: none; opacity: 1; } }

.tabbar {
  position: relative; z-index: 3; flex: none;
  display: flex; padding: 7px 4px 24px;
  background: #fff; border-top: 1px solid #E7E7ED;
}
.tab {
  flex: 1; padding: 0; border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; color: #70707D; text-align: center !important;
}
.tab-ic { position: relative; font-size: 24px; line-height: 0; }
.tab.on { color: var(--p-ink); font-weight: 700; }
.tab.on .ic { stroke-width: 2.1; }
.badge {
  position: absolute; top: -5px; left: 15px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: #E5484D; color: #fff;
  font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
}
.home-ind { position: absolute; z-index: 5; bottom: 8px; left: 50%; width: 124px; height: 5px; margin-left: -62px; border-radius: 3px; background: #111; }

/* Push notification */
.push {
  position: absolute; z-index: 8; left: 8px; right: 8px; top: 50px;
  transform: translateY(-160%); opacity: 0;
  transition: transform .5s cubic-bezier(.2, .9, .25, 1.12), opacity .3s;
}
.push.show { transform: none; opacity: 1; }
.push-card {
  width: 100%; display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 12px; border: 0; border-radius: 20px;
  background: rgba(246, 246, 249, .95);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  color: #111; text-align: left;
}
.push-card .app-icon { --s: 38px; }
.push-txt { flex: 1; min-width: 0; }
.push-app { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: #6B6B78; }
.push-app i { font-style: normal; text-transform: none; letter-spacing: 0; }
.push-txt b { display: block; margin-top: 1px; font-size: 13.5px; line-height: 1.25; }
.push-body { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.3; color: #3A3A44; }

/* Home */
.scr-home.style-light { background: var(--p); color: var(--on-p); }
.scr-home.style-colour { background: #F3F3F7; }
.home-head { display: flex; align-items: center; justify-content: center; min-height: 92px; padding: 6px 18px 18px; }
.style-light .home-head { background: #fff; color: #1F1F27; }
.style-colour .home-head { background: var(--p); color: var(--on-p); }
.logo-chip { display: inline-flex; align-items: center; justify-content: center; }
.logo-chip img { display: block; max-height: 62px; max-width: 260px; width: auto; height: auto; object-fit: contain; }
.style-colour .logo-chip { padding: 8px 14px; border-radius: 14px; background: #fff; }
.mono-lockup { display: flex; align-items: center; gap: 10px; text-align: left; }
.mono-lockup .app-icon { --s: 48px; }
.style-colour .mono-lockup .app-icon { background: #fff; color: var(--p-ink); }
.mono-name { max-width: 210px; font-weight: 700; font-size: 15.5px; line-height: 1.15; }
.home-body { padding: 14px 0 18px; }
.h-sec { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 9px; font-size: 17px; font-weight: 600; }
.see { padding: 0; border: 0; background: none; font-size: 12.5px; font-weight: 600; }
.style-light .see { color: var(--on-p); }
.style-colour .see { color: var(--p-ink); }
.pill { padding: 3px 9px; border-radius: 10px; background: #fff; color: var(--p-ink); font-size: 10.5px; font-weight: 700; }
.style-colour .pill { background: var(--p); color: var(--on-p); }
.hscroll {
  display: flex; gap: 10px; padding: 0 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }

.banner {
  position: relative; flex: none; overflow: hidden;
  width: 272px; height: 156px; padding: 0; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--p-dark), var(--p));
  color: var(--on-p); text-align: left !important; scroll-snap-align: start;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.style-colour .banner { box-shadow: 0 4px 12px rgba(0, 0, 0, .1); }
.b-text { position: absolute; z-index: 1; left: 14px; top: 14px; right: 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.b-title { font-size: 19px; font-weight: 800; line-height: 1.1; letter-spacing: -.2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b-sub { font-size: 12px; font-weight: 400; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.b-tag { margin-top: 4px; padding: 3px 8px; border-radius: 4px; background: var(--a); color: var(--on-a); font-size: 11px; font-weight: 800; letter-spacing: .6px; }
.b-cap { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 8px 14px; background: rgba(0, 0, 0, .3); color: #fff; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-art { position: absolute; right: -40px; top: -46px; width: 156px; height: 156px; border-radius: 50%; background: var(--a); opacity: .9; }
.b-cover {
  position: absolute; z-index: 1; right: 16px; top: 16px; width: 66px; height: 88px; padding: 6px;
  display: flex; flex-direction: column; gap: 4px;
  border-radius: 3px; background: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); transform: rotate(4deg);
}
.b-cover i { display: block; height: 20px; border-radius: 2px; background: var(--p); }
.b-cover em { display: block; height: 4px; border-radius: 2px; background: #D9D9E0; }
.b-cover em.s { width: 60%; }
.b-cover em.img { height: 24px; background: var(--a-soft); }
.b-ring { position: absolute; right: -44px; top: -34px; width: 172px; height: 172px; border-radius: 50%; border: 18px solid var(--a); opacity: .9; }
.banner.b-sp { background: repeating-linear-gradient(135deg, #fff 0 14px, #F3F3F7 14px 28px); color: #1F1F27; }
.b-sp .b-k { position: absolute; left: 14px; top: 12px; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #6B6B78; }
.b-sp .b-text { top: 32px; right: 18px; }
.b-sp .b-title { font-size: 18px; color: #1F1F27; }
.b-sp .b-cap { background: var(--a); color: var(--on-a); }
.b-wel .b-art { right: -60px; top: auto; bottom: -90px; width: 210px; height: 210px; opacity: .55; }
.b-wel .b-art2 { position: absolute; right: 28px; top: 18px; width: 46px; height: 46px; border-radius: 50%; border: 8px solid var(--a); }

.shortcuts { display: flex; gap: 8px; padding: 0 16px; }
.sc { flex: none; width: 72px; padding: 0; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; text-align: center !important; }
.style-light .sc { color: var(--on-p); }
.sc-box { width: 72px; height: 68px; border-radius: 8px; background: #fff; color: var(--p-ink); display: grid; place-items: center; font-size: 25px; }
.style-colour .sc-box { box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.sc-box.add { background: transparent; border: 2px dashed currentColor; color: inherit; opacity: .7; box-shadow: none !important; }
.style-colour .sc-box.add { color: #8A8A99; }
.sc-l { max-width: 72px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.al-card { flex: none; width: 236px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; background: #fff; color: #1F1F27; text-align: left !important; scroll-snap-align: start; }
.style-colour .al-card { box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.al-card .t { min-height: 62px; padding: 11px 12px; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.al-card .d { padding: 7px 12px; background: var(--p-dark); color: var(--on-pd); font-size: 11px; }

.news-row { display: flex; align-items: center; gap: 10px; width: calc(100% - 32px); margin: 0 16px 8px; padding: 8px; border: 0; border-radius: 10px; background: #fff; color: #1F1F27; text-align: left !important; }
.style-colour .news-row { box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.thumb { position: relative; flex: none; overflow: hidden; width: 58px; height: 58px; border-radius: 8px; background: linear-gradient(135deg, var(--p), var(--p-dark)); }
.thumb::after { content: ""; position: absolute; right: -12px; bottom: -14px; width: 40px; height: 40px; border-radius: 50%; background: var(--a); }
.thumb.t1 { background: linear-gradient(135deg, var(--a), var(--p)); }
.thumb.t1::after { background: #fff; opacity: .35; }
.thumb.t2 { background: var(--p-tint); }
.thumb.t2::after { left: -10px; top: -10px; background: var(--p); }
.thumb.big { width: 100%; height: 120px; border-radius: 10px 10px 0 0; }
.thumb.big::after { width: 110px; height: 110px; right: -20px; bottom: -40px; }
.nr-t { font-weight: 600; font-size: 13px; line-height: 1.3; }
.nr-d { margin-top: 3px; font-size: 11px; color: #7A7A88; }

.brief { display: block; width: calc(100% - 32px); margin: 16px 16px 0; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #fff; color: #1F1F27; text-align: left !important; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.brief-top { position: relative; display: block; padding: 12px 14px 24px; background: linear-gradient(135deg, var(--p), var(--p-dark)); color: var(--on-p); }
.brief-top::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -16px; height: 30px; border-radius: 50% 50% 0 0; background: #fff; }
.ai-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.brief-top b { display: block; margin-top: 3px; font-size: 19px; }
.brief-body { position: relative; z-index: 1; display: block; padding: 2px 14px 13px; }
.brief-body b { display: block; font-size: 14px; }
.brief-body span { display: block; margin-top: 2px; font-size: 12.5px; color: #5A5A6A; }

.coming { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 0 16px; padding: 10px; border: 0; border-radius: 10px; background: #fff; color: #1F1F27; text-align: left !important; }
.style-colour .coming { box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.cal { flex: none; width: 48px; border-radius: 8px; overflow: hidden; text-align: center; background: var(--p-soft); }
.cal i { display: block; padding: 2px 0; background: var(--p); color: var(--on-p); font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.cal b { display: block; padding: 3px 0 4px; font-size: 19px; color: var(--p-ink); }

/* Common screen parts */
.scr-title { display: flex; align-items: center; justify-content: space-between; padding: 4px 16px 12px; font-size: 28px; font-weight: 700; letter-spacing: -.3px; }
.seg { display: inline-flex; padding: 2px; border-radius: 9px; background: #EEEEF3; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.seg span { padding: 5px 11px; border-radius: 7px; color: #555; }
.seg .on { background: #fff; color: #111; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.access { display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 32px); margin: 0 16px 14px; padding: 11px; border: 0; border-radius: 10px; background: #F2F2F6; font-size: 13px; font-weight: 500; }
.access .ic { color: var(--p-ink); font-size: 17px; }

.ev-card { display: block; width: calc(100% - 32px); margin: 0 16px 14px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--p-dark); color: var(--on-pd); text-align: left !important; }
.ev-art { position: relative; display: block; height: 116px; overflow: hidden; background: linear-gradient(135deg, var(--p), var(--p-dark)); }
.ev-big {
  position: absolute; z-index: 1; left: 16px; right: 92px; top: 16px;
  color: var(--on-p); font-size: 22px; font-weight: 900; line-height: 1.02; letter-spacing: -.3px; text-transform: uppercase;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ev-ring { position: absolute; right: -42px; top: -36px; width: 170px; height: 170px; border-radius: 50%; border: 18px solid var(--a); }
.ev-art.v1 .ev-ring { display: none; }
.ev-art.v1::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 120px; background: repeating-linear-gradient(-55deg, var(--a) 0 10px, transparent 10px 22px); opacity: .9; }
.ev-art.v2 .ev-ring { border-radius: 30px; border-width: 14px; transform: rotate(25deg); }
.ev-meta { display: block; padding: 10px 14px 12px; }
.ev-meta b { display: block; font-size: 15px; }
.ev-meta span { display: block; font-size: 11.5px; opacity: .9; }

.nav { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 12px 0 6px; background: #fff; border-bottom: 1px solid #ECECF1; }
.nav-back { padding: 4px; border: 0; background: none; color: var(--p-ink) !important; font-size: 24px; line-height: 0; }
.nav-title { flex: 1; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-act { color: var(--p-ink); font-size: 20px; line-height: 0; }
.hero { position: relative; overflow: hidden; padding: 18px 16px 22px; background: linear-gradient(135deg, var(--p), var(--p-dark)); color: var(--on-p); }
.hero::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 170px; height: 170px; border-radius: 50%; background: var(--a); opacity: .55; }
.hero-k { position: relative; z-index: 1; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; opacity: .92; }
.hero-t { position: relative; z-index: 1; max-width: 85%; margin-top: 5px; font-size: 25px; font-weight: 800; line-height: 1.08; letter-spacing: -.3px; }
.pad { padding: 14px 16px 20px; }
.search { display: flex; align-items: center; gap: 8px; margin: 12px 16px; padding: 9px 12px; border-radius: 10px; background: #EFEFF4; color: #8A8A99; font-size: 13px; }
.search .ic { font-size: 16px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 4px 16px 20px; }
.tile { aspect-ratio: 1 / 1; padding: 6px; border: 0; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; background: var(--p-soft); color: var(--p-ink) !important; font-size: 11px; font-weight: 600; line-height: 1.2; text-align: center !important; }
.tile .ic { font-size: 27px; }
.li { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 16px; border: 0; border-bottom: 1px solid #EFEFF3; background: none; text-align: left !important; }
.li-b { flex: 1; min-width: 0; }
.li-b b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.li-b span { display: block; margin-top: 1px; font-size: 12px; color: #6E6E7C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-b span.wrap { white-space: normal; }
.li > .ic { flex: none; font-size: 21px; color: var(--p-ink); }
.li .chev { font-size: 16px; color: #B4B4BF; }
.li .time { flex: none; align-self: flex-start; font-size: 11px; color: #8A8A99; }
.li.me { background: var(--p-soft); }
.av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.av0 { background: var(--p-tint); color: var(--p-ink); }
.av1 { background: var(--a-soft); color: var(--a-ink); }
.av2 { background: #ECECF1; color: #4A4A57; }
.logo-sq { flex: none; width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: var(--p-soft); color: var(--p-ink); font-weight: 800; font-size: 13px; }
.btn-p { padding: 10px 18px; border: 0; border-radius: 22px; background: var(--p); color: var(--on-p) !important; font-weight: 600; font-size: 13px; }
.btn-o { flex: none; padding: 4px 12px; border: 1.5px solid var(--p-ink); border-radius: 16px; background: #fff; color: var(--p-ink) !important; font-size: 12px; font-weight: 600; }
.btn-o.on { background: var(--p); border-color: var(--p); color: var(--on-p) !important; }
.full-btn { display: block; width: calc(100% - 32px); margin: 14px 16px; padding: 12px; border: 0; border-radius: 12px; background: var(--p); color: var(--on-p) !important; font-weight: 700; font-size: 14px; text-align: center !important; }
.card { margin-bottom: 10px; padding: 12px; border: 1px solid #ECECF2; border-radius: 12px; background: #fff; }
.sub-h { padding: 14px 16px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #7A7A88; }
.chips-p { display: flex; gap: 6px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; }
.chips-p span { flex: none; padding: 5px 11px; border-radius: 14px; background: #F0F0F4; font-size: 12px; font-weight: 500; }
.chips-p .on { background: var(--p); color: var(--on-p); }
.dot { flex: none; align-self: flex-start; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--p-ink); }
.dot.read { background: transparent; }
.tag-new { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 4px; background: var(--a); color: var(--on-a); font-size: 9.5px; font-weight: 700; vertical-align: 1px; }

/* Account */
.acct { display: flex; align-items: center; gap: 12px; padding: 2px 16px 14px; }
.acct .av { width: 56px; height: 56px; font-size: 18px; }
.acct b { display: block; font-size: 18px; }
.acct span { font-size: 12.5px; color: #6E6E7C; }
.mcard { position: relative; overflow: hidden; min-height: 178px; margin: 0 16px 14px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, var(--p), var(--p-dark)); color: var(--on-p); box-shadow: 0 8px 20px rgba(0, 0, 0, .16); }
.mcard::before { content: ""; position: absolute; left: -40px; bottom: -90px; width: 200px; height: 200px; border-radius: 50%; background: var(--a); opacity: .35; }
.mc-org { position: relative; max-width: 72%; font-weight: 700; font-size: 13px; line-height: 1.25; }
.mc-k { position: relative; margin-top: 3px; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; opacity: .85; }
.mc-name { position: absolute; left: 16px; bottom: 34px; font-size: 17px; font-weight: 700; }
.mc-no { position: absolute; left: 16px; bottom: 15px; font-size: 11px; opacity: .9; }
.mc-qr { position: absolute; right: 14px; bottom: 14px; width: 72px; height: 72px; padding: 5px; border-radius: 8px; background: #fff; }
.mc-qr svg, .qr svg { display: block; width: 100%; height: 100%; }
.mcard .app-icon { --s: 34px; position: absolute; right: 14px; top: 14px; box-shadow: inset 0 -3px 0 var(--a); background: #fff; color: var(--p-ink); }
.mcard .app-icon.logo { box-shadow: none; }
.tog { position: relative; flex: none; width: 44px; height: 26px; padding: 0; border: 0; border-radius: 13px; background: #D9D9E0; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .18s; }
.tog.on { background: var(--p); }
.tog.on::after { left: 21px; }

/* Event screens */
.ev-hero { position: relative; overflow: hidden; padding: 16px 16px 18px; background: linear-gradient(135deg, var(--p), var(--p-dark)); color: var(--on-p); }
.ev-hero .ev-ring { right: -40px; top: -40px; width: 140px; height: 140px; border-width: 16px; }
.ev-hero b { position: relative; display: block; max-width: 78%; font-size: 21px; font-weight: 800; line-height: 1.1; }
.ev-hero .ev-line { position: relative; display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 12px; opacity: .95; }
.ev-hero + .brief { margin-top: 14px; }
.ev-hero ~ .tiles { padding-top: 14px; }
.days { display: flex; gap: 6px; padding: 12px 16px 6px; }
.days span { flex: 1; padding: 7px 0; border-radius: 9px; background: #F0F0F4; font-size: 12px; font-weight: 600; text-align: center; }
.days .on { background: var(--p); color: var(--on-p); }
.sess { display: flex; align-items: flex-start; gap: 12px; padding: 11px 16px; border-bottom: 1px solid #EFEFF3; }
.sess-t { flex: none; width: 44px; padding-top: 1px; font-weight: 700; font-size: 12.5px; color: var(--p-ink); }
.sess-b { flex: 1; min-width: 0; }
.sess-b b { display: block; font-size: 13.5px; font-weight: 600; }
.sess-b span { display: block; margin-top: 2px; font-size: 11.5px; color: #6E6E7C; }
.sess.brk { background: #F7F7FA; }
.sess.brk .sess-b b { font-weight: 500; color: #6E6E7C; }
.sess.mtg { background: var(--a-soft); }
.star { padding: 2px; border: 0; background: none; color: #C4C4CE !important; font-size: 19px; line-height: 0; }
.star.on { color: var(--a-ink) !important; }
.star.on .ic { fill: currentColor; }
.poll { margin: 12px 16px; padding: 14px; border-radius: 14px; background: var(--p-soft); }
.poll-q { margin-bottom: 10px; font-weight: 700; font-size: 14px; }
.poll-live { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--p-ink); }
.poll-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #E5484D; }
.bar { position: relative; display: flex; align-items: center; height: 32px; margin-bottom: 6px; padding: 0 10px; overflow: hidden; border-radius: 8px; background: #fff; font-size: 12.5px; font-weight: 600; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--p-tint); }
.bar.top i { background: var(--a-soft); }
.bar span, .bar em { position: relative; }
.bar span { flex: 1; }
.bar em { font-style: normal; color: var(--p-ink); }
.q { display: flex; gap: 12px; padding: 11px 16px; border-bottom: 1px solid #EFEFF3; }
.q p { margin: 0; font-size: 13px; }
.q small { display: block; margin-top: 3px; font-size: 11px; color: #8A8A99; }
.vote { flex: none; width: 36px; padding: 3px 0; border: 1.5px solid #E2E2E8; border-radius: 9px; background: #fff; color: var(--p-ink) !important; font-size: 12px; font-weight: 700; display: flex; flex-direction: column; align-items: center; text-align: center !important; }
.vote .ic { font-size: 13px; stroke-width: 2.4; }
.vote.on { background: var(--p); border-color: var(--p); color: var(--on-p) !important; }
.ask { display: flex; gap: 8px; margin: 12px 16px 18px; }
.ask span { flex: 1; padding: 10px 12px; border-radius: 20px; background: #F0F0F4; color: #8A8A99; font-size: 13px; }
.bizcard { margin: 14px 16px; padding: 18px 16px; border: 1px solid #ECECF2; border-radius: 16px; background: #fff; text-align: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.bizcard b { display: block; font-size: 17px; }
.bizcard span { display: block; font-size: 12.5px; color: #6E6E7C; }
.bizcard .qr { width: 150px; height: 150px; margin: 12px auto 4px; }
.scanner { position: relative; height: 220px; margin: 14px 16px; overflow: hidden; border-radius: 16px; background: radial-gradient(circle at 50% 40%, #3C3C46, #121216); }
.scanner .frame { position: absolute; left: 50%; top: 46%; width: 140px; height: 140px; transform: translate(-50%, -50%); border-radius: 16px; box-shadow: 0 0 0 3px var(--a), 0 0 0 999px rgba(0, 0, 0, .25); }
.scan-line { position: absolute; left: 8px; right: 8px; top: 10%; height: 2px; background: var(--a); box-shadow: 0 0 12px var(--a); animation: scan 2.2s ease-in-out infinite alternate; }
@keyframes scan { to { top: 88%; } }
.scanner small { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: #fff; font-size: 12px; }
.rate { flex: none; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.rate.hot { background: #FDE7E7; color: #B42318; }
.rate.warm { background: #FEF3DD; color: #94520A; }
.rate.cold { background: #EAF1FB; color: #2457A6; }
.lb-me { display: flex; justify-content: space-around; margin: 12px 16px; padding: 14px; border-radius: 14px; background: var(--p-soft); text-align: center; }
.lb-me b { display: block; font-size: 22px; color: var(--p-ink); }
.lb-me span { font-size: 11.5px; color: #6E6E7C; }
.rank { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #F0F0F4; font-weight: 800; font-size: 12px; }
.rank.r1 { background: #F6D66B; }
.rank.r2 { background: #DADDE3; }
.rank.r3 { background: #E8B48A; }
.pts { font-weight: 700; font-size: 13px; color: var(--p-ink); }
.floor { display: block; width: calc(100% - 32px); margin: 12px 16px 4px; }
.find { display: flex; align-items: center; gap: 8px; margin: 0 16px; padding: 10px 12px; border-radius: 10px; background: var(--a-soft); font-size: 12.5px; }
.find .ic { color: var(--a-ink); font-size: 17px; }

.bk-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px 14px; background: var(--p); color: var(--on-p); font-weight: 600; font-size: 16px; }
.bk-head button { padding: 0; border: 0; background: none; color: var(--on-p) !important; font-size: 22px; line-height: 0; }
.person { display: flex; align-items: center; gap: 12px; margin: 14px 16px 8px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .09); }
.person .av { width: 44px; height: 44px; background: var(--p); color: var(--on-p); }
.person b { display: block; font-size: 14.5px; }
.person span { font-size: 12px; color: #6E6E7C; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px; }
.slot { padding: 10px; border: 1.5px solid #E2E2E8; border-radius: 10px; background: #fff; font-weight: 600; font-size: 13px; text-align: center !important; }
.slot.on { border-color: var(--p); background: var(--p-soft); color: var(--p-ink) !important; }
.draft { margin: 0 16px; padding: 12px; border: 1.5px solid #E2E2E8; border-radius: 12px; background: #fff; font-size: 13px; line-height: 1.45; color: #33333D; }
.ai-note { display: flex; align-items: center; gap: 5px; margin: 6px 16px 0; font-size: 11px; font-weight: 600; color: var(--p-ink); }

.br-top { position: relative; overflow: hidden; padding: 14px 18px 46px; background: linear-gradient(135deg, var(--p), var(--p-dark)); color: var(--on-p); }
.br-top::before { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(0, 0, 0, .18); }
.br-top::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -24px; height: 50px; border-radius: 50% 50% 0 0; background: #fff; }
.br-k { position: relative; font-size: 13px; opacity: .92; }
.br-t { position: relative; margin-top: 4px; font-size: 28px; font-weight: 800; }
.br-hello { padding: 0 18px; }
.br-hello b { display: block; font-size: 17px; }
.br-hello p { margin: 4px 0 0; font-size: 13px; color: #5A5A6A; }
.tl { padding: 8px 18px 18px; }
.tl-i { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid #F0F0F4; }
.tl-i time { font-weight: 700; font-size: 12.5px; color: var(--p-ink); }
.tl-i b { display: block; font-size: 13.5px; }
.tl-i span { display: block; font-size: 12px; color: #6E6E7C; }
.screen.us .sess-t { width: 60px; }
.screen.us .tl-i { grid-template-columns: 62px 1fr; }
.tl-i.sugg { margin: 4px -10px; padding: 9px 10px; border: 0; border-radius: 10px; background: var(--a-soft); }

.ring { display: block; width: 130px; height: 130px; margin: 0 auto; }
.ring-wrap { position: relative; padding: 16px 0 6px; text-align: center; }
.ring-n { position: absolute; left: 0; right: 0; top: 56px; }
.ring-n b { display: block; font-size: 26px; line-height: 1; color: var(--p-ink); }
.ring-n span { font-size: 11px; color: #6E6E7C; }
.ring-cap { margin: 4px 16px 0; text-align: center; font-size: 12.5px; color: #5A5A6A; }
.prog { height: 6px; margin-top: 8px; border-radius: 3px; background: #ECECF1; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--p); }
.course { display: flex; gap: 12px; align-items: flex-start; }
.course .thumb { width: 64px; height: 64px; }
.course-b { flex: 1; min-width: 0; }
.course-b b { display: block; font-size: 13.5px; }
.course-b span { display: block; font-size: 11.5px; color: #6E6E7C; }
.covers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px 16px 20px; }
.cover { position: relative; overflow: hidden; aspect-ratio: 3 / 4; padding: 10px; border-radius: 6px; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .14); }
.cover i { display: block; margin: -10px -10px 8px; padding: 10px; background: var(--p); color: var(--on-p); font-style: normal; font-weight: 800; font-size: 12px; line-height: 1.15; }
.cover em { display: block; height: 52px; margin-bottom: 6px; border-radius: 3px; background: linear-gradient(135deg, var(--a-soft), var(--p-tint)); }
.cover small { display: block; font-size: 11px; font-weight: 600; color: #3A3A44; }
.cover-cap { margin-top: 6px; font-size: 11.5px; color: #6E6E7C; }
.web { margin: 12px 16px; overflow: hidden; border: 1px solid #E6E6EC; border-radius: 12px; }
.web-hero { height: 110px; background: linear-gradient(135deg, var(--p), var(--a)); }
.web-l { height: 9px; margin: 10px 12px; border-radius: 5px; background: #ECECF1; }
.web-l.t { width: 75%; height: 14px; background: #D9D9E2; }
.web-l.s { width: 55%; }
.note { margin: 10px 16px; padding: 10px 12px; border-radius: 10px; background: var(--p-soft); font-size: 12px; color: #4A4A57; }
.sponsor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px 20px; }
.sponsor-grid span { display: grid; place-items: center; height: 70px; border: 1.5px dashed #D2D2DC; border-radius: 10px; color: #8A8A99; font-size: 11.5px; font-weight: 600; text-align: center; }
.sponsor-grid span.lead { grid-column: 1 / -1; height: 90px; border-style: solid; border-color: var(--a); background: var(--a-soft); color: var(--a-ink); }

/* Feature spotlight */
.pulse { outline: 3px solid var(--a); outline-offset: 2px; animation: pulseRing 1s ease-out 3; }
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 var(--a); }
  70% { box-shadow: 0 0 0 12px rgba(0, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

/* ======================================================================
   Responsive
   ====================================================================== */
@media (max-width: 1100px) {
  .layout { gap: 24px; }
}

@media (max-width: 759px) {
  .layout { display: block; padding: 20px 16px 40px; }
  .topbar-in { padding: 0 16px; }
  .panel { padding: 20px 16px; border-radius: 16px; }
  .preview {
    position: fixed; inset: 0; z-index: 60;
    height: auto; min-height: 0; padding: 60px 16px 16px;
    display: none; justify-content: center;
    background: rgba(26, 18, 50, .97);
  }
  .preview.open { display: flex; }
  .preview .hint { color: rgba(255, 255, 255, .8); }
  .preview-close { display: inline-flex; position: absolute; top: 12px; right: 12px; min-height: 40px; }
  .preview-fab { display: inline-flex; position: fixed; right: 16px; bottom: 16px; z-index: 40; box-shadow: 0 10px 24px rgba(36, 24, 80, .3); }
  .toast { bottom: 84px; }
  .foot { flex-direction: column; align-items: flex-start; padding-bottom: 72px; }
  .step-nav { margin-bottom: 8px; }
}

@media (max-width: 560px) {
  .topbar-sep, .topbar-title, .version { display: none; }
  .ef-logo { height: 26px; }
  .topbar-in { gap: 8px; }
  .region button { min-width: 44px; padding: 0 9px; }
  #resetBtn { padding: 0 10px; }
  .alert-form { flex-direction: column; }
  .plan-actions .btn { width: 100%; }
}

/* The builder column narrows on tablets too, so these follow its width, not the window's. */
.builder { container-type: inline-size; min-width: 0; }
@container (max-width: 540px) {
  .field-row, .colour-grid { grid-template-columns: 1fr; }
  .steps { display: flex; }
  .step { flex: none; justify-content: center; }
  .step .step-l { display: none; }
  .step[aria-current="step"] { flex: 1; justify-content: flex-start; }
  .step[aria-current="step"] .step-l { display: inline; }
  .plan-head { flex-wrap: wrap; }
  .plan-sw { margin-left: 0; }
  .start li { grid-template-columns: 1fr; row-gap: 4px; }
  .start-k { grid-row: auto; justify-self: start; padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ======================================================================
   Print: the plan, with the phone beside it
   ====================================================================== */
@media print {
  @page { margin: 12mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; font-size: 12px; }
  .topbar, .intro, .steps, .step-nav, .preview-actions, .preview-fab, .preview-close,
  .plan-actions, .panel .help, .toast, .foot, .panel > h2 { display: none !important; }
  .panel:not([data-step="4"]) { display: none !important; }
  .panel[data-step="4"] { display: block !important; padding: 0; border: 0; box-shadow: none; }
  .layout { display: grid; grid-template-columns: 1fr 230px; gap: 8mm; max-width: none; padding: 0; }
  .preview { position: static; display: block !important; height: auto; min-height: 0; background: none; padding: 0; }
  .phone-wrap { width: 230px !important; height: 473px !important; }
  .phone-wrap::before { display: none; }
  .phone { transform: scale(.639) !important; box-shadow: none; }
  .plan-head, .start li, .plan-col, .incl li { break-inside: avoid; }
}
