/* Product completion layer: stable app states and cohesive macOS-style detail. */

.hm-sync-state {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: #6e7781;
  font-size: 12px;
  white-space: nowrap;
}

.hm-sync-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30b98b;
  box-shadow: 0 0 0 4px rgba(48, 185, 139, .12);
}

.reminders-complete {
  --rc-accent: #ff5f57;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  color: #18202a;
  background: #f5f6f8;
}

.rc-sidebar {
  padding: 18px 12px;
  border-right: 1px solid rgba(45, 55, 68, .12);
  background: rgba(232, 235, 240, .88);
  overflow-y: auto;
}

.rc-app-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 18px;
  font-size: 15px;
}

.rc-app-title span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: white;
  background: var(--rc-accent);
  font-weight: 800;
}

.rc-sidebar nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rc-sidebar button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: default;
}

.rc-sidebar nav button {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  min-height: 54px;
  padding: 8px;
  border-radius: 12px;
  text-align: left;
  background: rgba(255, 255, 255, .62);
  transition: background .16s ease, transform .16s ease;
}

.rc-sidebar nav button:hover,
.rc-sidebar nav button.active {
  background: white;
  box-shadow: 0 8px 24px rgba(51, 61, 75, .08);
}

.rc-sidebar nav button:active,
.rc-list-button:active {
  transform: scale(.98);
}

.rc-nav-icon {
  color: var(--rc-accent);
  font-size: 16px;
}

.rc-sidebar nav b {
  font-size: 12px;
}

.rc-sidebar nav em {
  color: #6e7781;
  font-size: 11px;
  font-style: normal;
}

.rc-list-label {
  margin: 24px 10px 8px;
  color: #7a828d;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.rc-list-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}

.rc-list-button:hover,
.rc-list-button.active {
  background: rgba(255, 255, 255, .72);
}

.rc-list-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0a84ff;
}

.rc-list-dot.home {
  background: #30b98b;
}

.rc-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  padding: 28px 34px 22px;
  background:
    radial-gradient(circle at 95% 0, rgba(255, 95, 87, .08), transparent 34%),
    #fbfbfc;
}

.rc-main header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.rc-main header small {
  color: #8a929d;
  font-size: 12px;
}

.rc-main h1 {
  margin: 3px 0 0;
  color: var(--rc-accent);
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.rc-clear {
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  color: #68717e;
  background: rgba(104, 113, 126, .08);
  font-size: 12px;
}

.rc-list {
  min-height: 0;
  overflow-y: auto;
}

.rc-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border-bottom: 1px solid rgba(57, 68, 82, .1);
}

.rc-check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1.5px solid #b7bec7;
  border-radius: 50%;
  color: white;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.rc-item.done .rc-check {
  border-color: var(--rc-accent);
  background: var(--rc-accent);
}

.rc-item-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.rc-item-copy b,
.rc-item-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rc-item-copy b {
  font-size: 14px;
}

.rc-item-copy span {
  color: #89919c;
  font-size: 11px;
}

.rc-item.done .rc-item-copy b {
  color: #949ba4;
  text-decoration: line-through;
}

.rc-delete {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: transparent;
  background: transparent;
  font-size: 20px;
}

.rc-item:hover .rc-delete {
  color: #8a929d;
  background: rgba(104, 113, 126, .08);
}

.rc-empty {
  display: grid;
  place-items: center;
  align-content: center;
  height: 100%;
  min-height: 220px;
  color: #7e8792;
  text-align: center;
}

.rc-empty span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 15px;
  color: var(--rc-accent);
  background: rgba(255, 95, 87, .1);
  font-size: 22px;
  font-weight: 800;
}

.rc-empty b {
  color: #48515c;
}

.rc-empty p {
  margin: 6px 0 0;
  font-size: 12px;
}

.rc-composer {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 5px 7px 5px 12px;
  border: 1px solid rgba(57, 68, 82, .12);
  border-radius: 14px;
  background: white;
  box-shadow: 0 12px 30px rgba(46, 57, 72, .08);
}

.rc-composer > span {
  color: var(--rc-accent);
  font-size: 22px;
}

.rc-composer input,
.rc-composer select {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #25303c;
  background: transparent;
  font: inherit;
}

.rc-composer select {
  padding: 7px;
  border-radius: 8px;
  background: #f0f2f5;
  font-size: 12px;
}

.rc-composer button {
  padding: 8px 13px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: var(--rc-accent);
  font-weight: 700;
}

.safari-native-page {
  min-height: 100%;
  color: #15181d;
  background: #f5f6f8;
  overflow-y: auto;
}

.safari-native-page > header {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 54px;
  padding: 0 5%;
  border-bottom: 1px solid rgba(40, 48, 58, .1);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(20px);
}

.safari-native-page > header nav {
  flex: 1;
  color: #5f6874;
  font-size: 12px;
}

.safari-native-page > header button,
.snp-apple-hero button {
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: #0a84ff;
  font-weight: 700;
}

.safari-native-page.bili > header b {
  color: #fb7299;
  font-size: 19px;
}

.snp-feature {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 220px;
  margin: 22px 5%;
  padding: 32px;
  border-radius: 16px;
  color: white;
  background:
    linear-gradient(120deg, rgba(11, 20, 38, .32), rgba(11, 20, 38, .04)),
    url("../assets/photos/neon_waves.jpg") center 42% / cover;
  box-shadow: 0 24px 60px rgba(23, 35, 51, .2);
}

.snp-feature small {
  font-size: 12px;
  font-weight: 700;
}

.snp-feature h1 {
  max-width: 520px;
  margin: 8px 0 6px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -.04em;
}

.snp-feature p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
}

.snp-feature > span {
  display: grid;
  place-items: center;
  min-width: 66px;
  height: 40px;
  border-radius: 12px;
  color: #1c2430;
  background: white;
  font-size: 13px;
  font-weight: 800;
}

.safari-native-page.bili main {
  padding: 0 5% 40px;
}

.safari-native-page.bili main h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.snp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.snp-grid button {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px 12px;
  min-height: 88px;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  color: inherit;
  background: white;
  text-align: left;
  box-shadow: 0 8px 24px rgba(35, 44, 56, .08);
}

.snp-grid button:active {
  transform: scale(.98);
}

.snp-grid i {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: #fb7299;
  font-size: 21px;
  font-style: normal;
  font-weight: 800;
}

.snp-grid b {
  align-self: end;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.snp-grid span {
  color: #8a929c;
  font-size: 11px;
}

.safari-native-page.apple {
  color: #f5f7fa;
  background: #07090d;
}

.safari-native-page.apple > header {
  color: #f5f7fa;
  border-color: rgba(255, 255, 255, .1);
  background: rgba(9, 11, 16, .86);
}

.snp-apple-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 360px;
  padding: 48px 8%;
  background:
    radial-gradient(circle at 82% 44%, rgba(27, 125, 209, .55), transparent 26%),
    radial-gradient(circle at 70% 60%, rgba(90, 206, 255, .18), transparent 34%);
}

.snp-apple-hero small {
  color: #7cc9ff;
  font-weight: 750;
}

.snp-apple-hero h1 {
  max-width: 660px;
  margin: 10px 0 12px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: .98;
  letter-spacing: -.055em;
}

.snp-apple-hero p {
  max-width: 560px;
  margin: 0 0 24px;
  color: #a9b2bf;
  font-size: 16px;
  line-height: 1.6;
}

.snp-apple-hero div {
  display: flex;
  gap: 10px;
}

.snp-apple-hero button + button {
  color: #d7eaff;
  background: rgba(87, 174, 255, .14);
}

.snp-apple-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .1);
}

.snp-apple-products button {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
  padding: 28px;
  border: 0;
  color: white;
  background: #11151d;
  text-align: left;
}

.snp-apple-products button:hover {
  background: #171d27;
}

.snp-apple-products b {
  font-size: 20px;
}

.snp-apple-products span {
  color: #8793a2;
}

.maps-online-button {
  font-size: 11px !important;
}

#win-maps .static-map-scroll-container {
  background-color: #dfe9d5 !important;
  background-image:
    radial-gradient(ellipse at 18% 22%, rgba(124, 174, 105, .28) 0 7%, transparent 7.4%),
    radial-gradient(ellipse at 78% 69%, rgba(118, 169, 97, .24) 0 9%, transparent 9.5%),
    linear-gradient(90deg, transparent 0 45%, rgba(107, 190, 226, .62) 45% 54%, transparent 54%),
    linear-gradient(18deg, rgba(255, 255, 255, .24), transparent 38%) !important;
  background-size: 100% 100% !important;
}

#win-maps .static-map-grid {
  opacity: .38;
  background-size: 124px 104px !important;
}

#win-maps .static-river {
  width: 190px !important;
  background: rgba(70, 174, 219, .48) !important;
  filter: none !important;
  box-shadow: inset 18px 0 30px rgba(255, 255, 255, .22), inset -18px 0 30px rgba(44, 132, 180, .12);
}

#win-maps .static-road {
  border: 1px solid rgba(151, 160, 156, .2);
  box-shadow: 0 1px 4px rgba(81, 94, 89, .12) !important;
}

#win-maps .static-road.primary {
  background: #fffdf6 !important;
  box-shadow: 0 0 0 3px rgba(240, 196, 92, .48), 0 2px 6px rgba(81, 94, 89, .16) !important;
}

.offline-city-labels {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.offline-city-labels span {
  position: absolute;
  left: var(--label-x);
  top: var(--label-y);
  padding: 4px 7px;
  border-radius: 7px;
  color: #52635f;
  background: rgba(238, 244, 233, .7);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .02em;
  text-shadow: 0 1px rgba(255, 255, 255, .9);
}

@media (max-width: 720px) {
  #menubar-app-menus {
    display: none !important;
  }

  .menu-right .status-button:nth-of-type(1),
  .menu-right .status-button:nth-of-type(3),
  .menu-right #fullscreen-button {
    display: none;
  }

  .clock-button {
    max-width: 92px;
    padding-inline: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
  }

  .toast-container {
    top: 36px;
    right: 8px;
    left: 8px;
    gap: 6px;
    align-items: flex-end;
  }

  .toast {
    width: min(280px, calc(100vw - 16px));
    padding: 10px 12px;
    border-radius: 14px;
  }

  .toast:nth-child(n + 3) {
    display: none;
  }

  .reminders-complete {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .rc-sidebar {
    padding: 12px 8px;
  }

  .rc-app-title {
    padding-inline: 6px;
  }

  .rc-sidebar nav {
    grid-template-columns: 1fr;
  }

  .rc-main {
    padding: 20px 16px 14px;
  }

  .rc-composer {
    grid-template-columns: 20px minmax(0, 1fr) auto;
  }

  .rc-composer select {
    display: none;
  }

  .snp-grid {
    grid-template-columns: 1fr;
  }

  .snp-feature {
    min-height: 180px;
    padding: 22px;
  }

  .snp-feature > span,
  .safari-native-page > header nav {
    display: none;
  }

  .snp-apple-products {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rc-sidebar nav button,
  .rc-list-button,
  .snp-grid button {
    transition: none;
  }
}
