html,
body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: Roboto, ui-sans-serif, system-ui, sans-serif;
}

.phone-app {
  width: 390px;
  height: 844px;
  margin: 0 auto;
  background: #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

html.panel,
html.panel body {
  background: #1c1c1e;
}

html.panel .phone-app {
  background: #1c1c1e;
  height: 720px;
}

html.panel .tabs {
  padding-top: 8px;
}

/* Height is the iPhone 15 Pro top safe-area inset, so the app header starts
   below the Dynamic Island instead of running underneath it. The time and
   indicators centre vertically alongside the island. */
.status {
  box-sizing: border-box;
  height: 59px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.status-right {
  display: flex;
  gap: 6px;
  align-items: center;
}

.sig,
.wifi,
.bat {
  display: inline-block;
  background: #fff;
}

.sig {
  width: 16px;
  height: 10px;
  clip-path: polygon(0 100%, 25% 70%, 25% 100%, 50% 40%, 50% 100%, 75% 20%, 75% 100%, 100% 0, 100% 100%);
}

.wifi {
  width: 14px;
  height: 10px;
  border-radius: 8px 8px 0 0;
}

.bat {
  width: 22px;
  height: 10px;
  border-radius: 2px;
}

.top {
  display: grid;
  grid-template-columns: 40px 1fr 72px;
  align-items: center;
  padding: 2px 12px 6px;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2c2c2e;
}

.title {
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.8px;
  font-size: 16px;
}

.pro {
  display: inline-block;
  background: #3b82f6;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1.5px 5px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  vertical-align: 2px;
  margin-left: 4px;
}

.icons {
  text-align: right;
  letter-spacing: 6px;
  font-size: 16px;
}

.search {
  margin: 2px 12px 8px;
  height: 38px;
  border-radius: 10px;
  background: #2c2c2e;
  color: #636366;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 15px;
}

.tabs {
  display: flex;
  gap: 18px;
  padding: 0 16px;
  overflow: hidden;
  height: 34px;
  align-items: flex-end;
}

.tabs button {
  background: none;
  border: 0;
  color: #8e8e93;
  font: 400 14.5px Roboto, sans-serif;
  padding: 0 0 6px;
  border-bottom: 1.6px solid transparent;
}

.tabs button.on {
  color: #fff;
  font-weight: 600;
  border-bottom-color: #fff;
}

.filters {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px 8px 12px;
  color: #8e8e93;
  font-size: 13.5px;
}

.grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 2px 8px 12px;
  align-content: start;
  overflow: hidden;
}

.card {
  box-sizing: border-box;
  background: #1c1c1e;
  border-radius: 6px;
  padding: 6px 7px 7px 8px;
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 61px;
  gap: 4px;
}

.card > :first-child {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  overflow: hidden;
}

.ex {
  color: #636366;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.pair {
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  margin: 1px 0 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kind {
  color: #8e8e93;
  font-size: 9.5px;
  white-space: nowrap;
}

.right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.spark {
  width: 61px;
  height: 36px;
  margin: 0;
  display: block;
  flex-shrink: 0;
}

.quotes {
  margin-top: auto;
  text-align: right;
  white-space: nowrap;
}

.price {
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tee {
  color: #8e8e93;
  font-weight: 500;
  font-size: 11px;
  margin-right: 1px;
}

.chg {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  margin-top: 2px;
}

.up {
  color: #34c759;
}

.dn {
  color: #ff453a;
}

.dock {
  height: 58px;
  border-top: 0.5px solid #2c2c2e;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  color: #636366;
  font-size: 11px;
  text-align: center;
  padding-bottom: 8px;
}

.dock span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.dock .on {
  color: #fff;
  font-weight: 600;
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.alert-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 12px;
}

.alert-head h1 {
  margin: 0;
  font-size: 22px;
}

.push-row {
  margin: 0 12px 12px;
  background: #1c1c1e;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.push-row p {
  margin: 2px 0 0;
  color: #8e8e93;
  font-size: 12px;
}

.toggle {
  width: 48px;
  height: 28px;
  border-radius: 99px;
  background: #3b82f6;
  position: relative;
  flex-shrink: 0;
}

.toggle::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  right: 2px;
}

.alert-list {
  flex: 1;
  overflow: hidden;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert-card {
  background: #1c1c1e;
  border-radius: 12px;
  padding: 12px;
}

.alert-card .meta {
  display: flex;
  justify-content: space-between;
  color: #636366;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.alert-card h2 {
  margin: 6px 0 4px;
  font-size: 16px;
}

.alert-card .rule {
  color: #8e8e93;
  font-size: 13px;
}

.pill {
  font-size: 10px;
  font-weight: 700;
  color: #34c759;
  background: rgba(52, 199, 89, 0.12);
  padding: 2px 7px;
  border-radius: 99px;
}

.push-banner {
  margin: 0 12px 10px;
  background: rgba(28, 28, 30, 0.96);
  border: 1px solid #2c2c2e;
  border-radius: 16px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
}

.push-banner .app-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #3b82f6;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.push-banner strong {
  font-size: 13px;
}

.push-banner p {
  margin: 2px 0 0;
  color: #8e8e93;
  font-size: 12px;
}

.push-banner .when {
  color: #636366;
  font-size: 11px;
}

.chart-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px 4px;
}

.chart-bar .sym {
  font-size: 16px;
  font-weight: 800;
}

.chart-bar .px {
  font-family: "IBM Plex Mono", monospace;
  color: #34c759;
  font-size: 15px;
}

.chart-bar .px.dn {
  color: #ff453a;
}

.tf {
  display: flex;
  gap: 4px;
  padding: 0 12px 8px;
}

.tf span {
  font-size: 11px;
  color: #8e8e93;
  padding: 4px 8px;
  border-radius: 6px;
}

.tf .on {
  background: #1c1c1e;
  color: #fff;
  font-weight: 600;
}

.chart-wrap {
  flex: 1;
  min-height: 0;
  padding: 0 4px 8px;
}

.chart-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

html.ios,
html.ios body {
  background: #0a1020;
}

html.framed .island {
  visibility: hidden;
}

.ios-wallpaper {
  width: 390px;
  height: 844px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(520px 420px at 20% 0%, rgba(59, 130, 246, 0.45), transparent 55%),
    radial-gradient(480px 380px at 110% 30%, rgba(168, 85, 247, 0.28), transparent 50%),
    radial-gradient(400px 500px at 40% 110%, rgba(16, 185, 129, 0.18), transparent 45%),
    #0b1220;
}

.ios-wallpaper.home {
  background:
    radial-gradient(420px 360px at 80% 10%, rgba(59, 130, 246, 0.4), transparent 50%),
    radial-gradient(380px 420px at 0% 80%, rgba(99, 102, 241, 0.35), transparent 50%),
    linear-gradient(180deg, #1a2744, #0b1020);
}

.island {
  width: 126px;
  height: 37px;
  background: #000;
  border-radius: 20px;
  margin: 11px auto 0;
  position: relative;
  z-index: 3;
}

.island.wide {
  width: 248px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  box-sizing: border-box;
}

.island-t {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #3b82f6;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.island-pair {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.island-px {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  font-family: "IBM Plex Mono", monospace;
}

.island-up {
  font-size: 11px;
  font-weight: 700;
  color: #34c759;
}

.ios-status {
  position: absolute;
  top: 14px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  z-index: 2;
  pointer-events: none;
}

.lock-status span:first-child {
  opacity: 0;
}

.ios-push {
  margin: 18px 14px 0;
  background: rgba(40, 40, 44, 0.78);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 22px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.ios-push-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #3b82f6;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-push-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.ios-push-top span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.ios-push p {
  margin: 2px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}

.ios-apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 8px;
  padding: 36px 22px 0;
}

.ios-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ios-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.ios-icon.tm {
  background: #3b82f6;
}

.ios-app em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
}

.ios-dock {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 22px;
  height: 92px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0 10px;
}

.lock-time {
  text-align: center;
  margin-top: 8px;
}

.lock-date {
  font-size: 20px;
  font-weight: 600;
}

.lock-clock {
  font-size: 84px;
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1;
}

.live-card {
  margin: 18px 16px 0;
  background: rgba(20, 20, 22, 0.82);
  backdrop-filter: blur(28px);
  border-radius: 24px;
  padding: 14px 16px 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.live-card header {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

.live-app {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

.live-app i {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #3b82f6;
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.live-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.live-pair {
  font-size: 20px;
  font-weight: 800;
}

.live-ex {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin-top: 2px;
}

.live-px {
  text-align: right;
}

.live-px strong {
  display: block;
  font-size: 22px;
  font-family: "IBM Plex Mono", monospace;
}

.live-px span {
  color: #34c759;
  font-size: 13px;
  font-weight: 700;
}

.live-spark {
  width: 100%;
  height: 28px;
  margin-top: 8px;
}

.lock-push {
  margin-top: 10px;
}

.lock-tools {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 36px;
  display: flex;
  justify-content: space-between;
}

.lock-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}
