/* The clickable app demo. Drawn to match the console: navy rail, pale highlight, Barlow headings. */
.ap {
  --ink: #1d2d3d;
  --steel: #416180;
  --pale: #d6ebff;
  --wash: #f4f7fa;
  --line: rgb(29 45 61 / 0.12);
  --ok: #1f7a46;
  --warn: #9a6a00;
  --bad: #a3322a;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgb(29 45 61 / 0.2);
  box-shadow: 0 40px 100px #1d2d3d40;
  color: var(--ink);
  text-align: left;
  font-size: 15px;
}
.ap * {
  box-sizing: border-box;
}
.ap button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.ap-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: #e9ecf0;
  font-size: 12px;
  color: var(--steel);
}
.ap-chrome i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c3cad2;
}
.ap-chrome span {
  margin-left: 10px;
}
.ap-frame {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  height: var(--ap-h);
  max-height: 80vh;
}
.ap-rail {
  background: #101a24;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 8px;
}
.ap-logo {
  font:
    700 1.15rem/1 'Barlow Condensed',
    sans-serif;
  letter-spacing: 0.08em;
  color: var(--pale);
  text-align: center;
  padding: 8px 0 14px;
}
.ap-rail button {
  background: none;
  border: 0;
  color: #b7c6d6;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 2px;
  border-radius: 12px;
  font-size: 11.5px;
  position: relative;
}
.ap-rail button:hover {
  background: rgb(214 235 255 / 0.1);
}
.ap-rail button[aria-current='true'] {
  background: var(--pale);
  color: var(--ink);
}
.ap-rail .badge {
  position: absolute;
  top: 4px;
  right: 18px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #e06a3c;
  color: #fff;
  font-size: 10.5px;
  display: grid;
  place-items: center;
}
.ap-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  background: var(--wash);
}
.ap-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.ap-biz {
  font:
    700 1.25rem/1 'Barlow Condensed',
    sans-serif;
  white-space: nowrap;
}
.ap-biz small {
  display: block;
  font:
    500 11px/1.3 'Barlow',
    sans-serif;
  color: var(--steel);
}
.ap-search {
  position: relative;
  flex: 1;
  max-width: 420px;
  margin-left: auto;
}
.ap-search input {
  width: 100%;
  font: inherit;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px 8px 36px;
  background: var(--wash);
  color: var(--ink);
}
.ap-search > .ap-ic {
  position: absolute;
  left: 12px;
  top: 9px;
  color: var(--steel);
}
.ap-results {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 50px #1d2d3d33;
  z-index: 5;
  padding: 6px;
  display: grid;
}
.ap-results button {
  background: none;
  border: 0;
  text-align: left;
  padding: 9px 10px;
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.ap-results button:hover {
  background: var(--wash);
}
.ap-results small {
  color: var(--steel);
}
.ap-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  flex: none;
}
.ap-scroll {
  overflow-y: auto;
  padding: clamp(14px, 2.2vw, 26px);
  min-height: 0;
}
.ap-page {
  display: grid;
  gap: 14px;
  align-content: start;
  max-width: 980px;
}
.ap-page > h2,
.ap h2 {
  margin: 0;
  font:
    700 1.9rem/1.1 'Barlow Condensed',
    sans-serif;
}
.ap h3 {
  margin: 4px 0 0;
  font:
    600 11.5px/1 'Barlow',
    sans-serif;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--steel);
}
.ap p {
  margin: 0;
}
.ap-sub {
  color: var(--steel);
}
.ap-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 8px;
}
.ap-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.ap-two {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
}
.ap-stat span {
  display: block;
  font-size: 12px;
  color: var(--steel);
}
.ap-stat strong {
  font:
    700 1.9rem/1.15 'Barlow Condensed',
    sans-serif;
}
.ap-stat em {
  font-style: normal;
  font-size: 12px;
  color: var(--ok);
}
.ap-hero {
  background: linear-gradient(135deg, #1d2d3d, #2d4560);
  color: #fff;
  border: 0;
  border-radius: 20px;
  padding: 20px;
  display: grid;
  gap: 10px;
}
.ap-hero h3 {
  color: var(--pale);
}
.ap-hero h2 {
  color: #fff;
}
.ap-hero .ap-sub {
  color: #c8d8e8;
}
.ap-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ap-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 9px 14px;
  font-weight: 600;
}
.ap-btn:hover {
  border-color: var(--ink);
}
.ap-btn.pri {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.ap-hero .ap-btn {
  background: rgb(255 255 255 / 0.1);
  border-color: rgb(255 255 255 / 0.3);
  color: #fff;
}
.ap-hero .ap-btn.pri {
  background: var(--pale);
  border-color: var(--pale);
  color: var(--ink);
}
.ap-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
.ap-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
button.ap-row:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.ap-row .m {
  flex: 1;
  min-width: 0;
}
.ap-row .m strong,
.ap-row .m small {
  display: block;
}
.ap-row small {
  color: var(--steel);
}
.ap-time {
  font:
    700 1.2rem/1 'Barlow Condensed',
    sans-serif;
  min-width: 44px;
}
.ap-chip {
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
  background: #e8f0f8;
  border: 1px solid #c6d8ea;
  white-space: nowrap;
}
.ap-chip.ok {
  background: #e1f3e6;
  border-color: #9fd3ae;
  color: var(--ok);
}
.ap-chip.warn {
  background: #fdf1d8;
  border-color: #e7c36a;
  color: var(--warn);
}
.ap-chip.bad {
  background: #fbe3e1;
  border-color: #e59a94;
  color: var(--bad);
}
.ap-chip.soon {
  background: #ece6fb;
  border-color: #cfc3f0;
  color: #5b3fa6;
}
.ap-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ap-tabs button {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
}
.ap-tabs button[aria-selected='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.ap-back {
  background: none;
  border: 0;
  color: var(--steel);
  padding: 0;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-self: start;
}
.ap-back .icon {
  transform: scaleX(-1);
}
.ap-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.ap-steps div {
  text-align: center;
  font-size: 11.5px;
  color: var(--steel);
  padding-top: 8px;
  border-top: 4px solid #d6dee7;
  border-radius: 2px;
}
.ap-steps div.on {
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 600;
}
.ap-timer {
  font:
    700 2.2rem/1 'Barlow Condensed',
    sans-serif;
}
.ap-check {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.ap-check input {
  width: 19px;
  height: 19px;
  accent-color: var(--ink);
}
.ap-photos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ap-photos i {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(135deg, #9db6cf, #5f7f9e);
}
.ap-photos i:nth-child(2n) {
  background: linear-gradient(135deg, #c9d6c2, #7b9a78);
}
.ap-photos i:nth-child(3n) {
  background: linear-gradient(135deg, #d8c9b0, #a58b62);
}
.ap-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
}
.ap-line.t {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 10px;
  font-size: 1.1em;
}
.ap-line.t strong {
  font:
    700 1.5rem/1 'Barlow Condensed',
    sans-serif;
}
.ap-bar {
  height: 10px;
  border-radius: 6px;
  background: #e1e8ef;
  overflow: hidden;
}
.ap-bar i {
  display: block;
  height: 100%;
  background: var(--steel);
  border-radius: 6px;
}
.ap-bar.low i {
  background: #d1553f;
}
.ap-chart {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  height: 150px;
  align-items: end;
}
.ap-chart div {
  display: flex;
  align-items: end;
  gap: 2px;
  height: 100%;
}
.ap-chart i {
  flex: 1;
  background: var(--steel);
  border-radius: 3px 3px 0 0;
}
.ap-chart i.o {
  background: none;
  border: 1.5px solid var(--steel);
  border-bottom: 0;
}
.ap-sug {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.ap-sug.done {
  opacity: 0.55;
}
.ap-sug .m {
  flex: 1;
}
.ap-sug strong,
.ap-sug small {
  display: block;
}
.ap-sug small {
  color: var(--steel);
}
.ap-ic {
  display: inline-grid;
  place-items: center;
}
.ap-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  flex: none;
  font-weight: 600;
}
.ap-week {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.ap-week > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 170px;
}
.ap-week .today {
  border-color: var(--ink);
}
.ap-week button {
  text-align: left;
  font-size: 12.5px;
  background: var(--pale);
  border: 0;
  border-radius: 8px;
  padding: 6px 8px;
}
.ap-week span {
  color: var(--steel);
  font-size: 12.5px;
}
.ap-input {
  font: inherit;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
  background: #fff;
  width: 100%;
}
.ap-count {
  width: 84px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
}
.ap-toast {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: #101a24;
  color: #fff;
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 16px 40px #0007;
  z-index: 9;
  max-width: calc(100% - 32px);
  animation: ap-in 0.25s ease both;
}
.ap-toast .ap-ic {
  color: #7fd39a;
}
@keyframes ap-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}
.ap-site {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.ap-site .hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font:
    700 1.3rem/1 'Barlow Condensed',
    sans-serif;
  color: var(--steel);
}
.ap-site .bd {
  padding: 22px 16px;
  background: linear-gradient(135deg, #e6eef6, #fff 70%);
}
.ap-site h4 {
  margin: 0 0 6px;
  font:
    700 2rem/1 'Barlow Condensed',
    sans-serif;
}
.ap-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ap-switch i {
  width: 38px;
  height: 22px;
  border-radius: 12px;
  background: var(--ink);
  position: relative;
}
.ap-switch i::after {
  content: '';
  position: absolute;
  right: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}
.ap-nojs {
  padding: 24px;
}
@media (max-width: 760px) {
  .ap-frame {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .ap-rail {
    order: 2;
    flex-direction: row;
    padding: 4px;
  }
  .ap-rail button {
    flex: 1;
    font-size: 10px;
    padding: 6px 0;
  }
  .ap-logo {
    display: none;
  }
  .ap-two {
    grid-template-columns: 1fr;
  }
  .ap-week {
    grid-template-columns: 1fr;
  }
  .ap-week > div {
    min-height: 0;
  }
  .ap-search {
    display: none;
  }
  .ap-steps div {
    font-size: 10px;
  }
}

/* guided tour */
.ap-tour {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
  background: #101a24;
  color: #fff;
  border-radius: 18px;
  padding: 14px 16px 14px;
  box-shadow: 0 18px 50px #0009;
}
.ap-tour-dots {
  grid-column: 1 / -1;
  display: flex;
  gap: 4px;
}
.ap-tour-dots i {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.2);
  transition: background 0.3s;
}
.ap-tour-dots i.on {
  background: var(--pale);
}
.ap-tour-text strong {
  display: block;
  font:
    700 1.25rem/1.2 'Barlow Condensed',
    sans-serif;
}
.ap-tour-text span {
  color: #c8d8e8;
  font-size: 13.5px;
}
.ap-tour-btns {
  display: flex;
  gap: 6px;
  align-items: center;
}
.ap-tour-btns button {
  background: rgb(255 255 255 / 0.12);
  border: 0;
  color: #fff;
  border-radius: 10px;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  display: grid;
  place-items: center;
}
.ap-tour-btns button:hover {
  background: rgb(255 255 255 / 0.22);
}
.ap-tour-btns [data-tour='back'] .icon {
  transform: scaleX(-1);
}
.ap-tour-btns .x {
  background: none;
  text-decoration: underline;
  color: var(--pale);
  font-size: 13px;
  white-space: nowrap;
}
.has-tour .ap-scroll {
  padding-bottom: 150px;
}
.has-tour .ap-toast {
  bottom: 118px;
}
.ap-spot {
  outline: 3px solid #e8743f;
  outline-offset: 3px;
  border-radius: 14px;
  animation: ap-pulse 0.9s ease-in-out 2;
}
@keyframes ap-pulse {
  50% {
    outline-color: rgb(232 116 63 / 0.35);
  }
}
.ap-notes {
  position: absolute;
  top: 70px;
  right: 16px;
  z-index: 7;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100% - 32px));
}
.ap-note {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 16px 40px #1d2d3d44;
  animation: ap-slide 0.4s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.ap-note strong,
.ap-note small {
  display: block;
}
.ap-note small {
  color: var(--steel);
}
@keyframes ap-slide {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
}
.ap-outro {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  background: rgb(16 26 36 / 0.88);
  color: #fff;
  animation: ap-fade 0.4s ease both;
}
@keyframes ap-fade {
  from {
    opacity: 0;
  }
}
.ap-outro h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
}
.ap-outro p {
  max-width: 460px;
  color: #c8d8e8;
  font-size: 1.1rem;
}
.ap-outro .ap-btn {
  text-decoration: none;
}
@media (max-width: 760px) {
  .ap-tour {
    grid-template-columns: 1fr;
  }
  .ap-tour-text span {
    display: none;
  }
  .ap-tour-btns .x {
    margin-left: auto;
  }
  .has-tour .ap-scroll {
    padding-bottom: 120px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ap-note,
  .ap-spot,
  .ap-outro {
    animation: none;
  }
}
.ap-outro .ap-btn:not(.pri) {
  background: transparent;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.5);
}
.ap-outro .ap-btn.pri {
  background: #e8743f;
  color: #fff;
}
.ap-outro .ap-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.ap-tour {
  padding: 10px 14px;
  gap: 6px 14px;
  left: 10px;
  right: 10px;
  bottom: 10px;
}
.ap-tour-text strong {
  font-size: 1.1rem;
}
.ap-tour-text span {
  font-size: 13px;
}
.has-tour .ap-scroll {
  padding-bottom: 118px;
}
.has-tour .ap-toast {
  bottom: 96px;
}

.ap-scroll > *,
.ap-page > * {
  min-width: 0;
  max-width: 100%;
}
.ap-hero,
.ap-card,
.ap-stats > * {
  min-width: 0;
}

.ap-outro .ap-btn.pri {
  background: var(--pale);
  color: #101a24;
}
.ap-notes {
  top: auto;
  bottom: 104px;
  right: 16px;
}
.ap-note {
  animation-name: ap-rise;
}
@keyframes ap-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
