/* macOS application maturity layer — native density, coherent materials and
   complete states shared by every application. */
:root {
  --cp-bg: rgba(28, 28, 30, .98);
  --cp-sidebar: rgba(42, 42, 45, .9);
  --cp-surface: rgba(255, 255, 255, .075);
  --cp-surface-strong: rgba(255, 255, 255, .12);
  --cp-border: rgba(255, 255, 255, .095);
  --cp-separator: rgba(255, 255, 255, .075);
  --cp-text: #f5f5f7;
  --cp-secondary: rgba(235, 235, 245, .6);
  --cp-tertiary: rgba(235, 235, 245, .32);
  --cp-blue: #0a84ff;
  --cp-green: #30d158;
  --cp-red: #ff453a;
  --cp-radius: 12px;
}

.light-mode {
  --cp-bg: rgba(246, 246, 248, .985);
  --cp-sidebar: rgba(232, 232, 236, .88);
  --cp-surface: rgba(0, 0, 0, .045);
  --cp-surface-strong: rgba(0, 0, 0, .075);
  --cp-border: rgba(0, 0, 0, .1);
  --cp-separator: rgba(0, 0, 0, .08);
  --cp-text: #1d1d1f;
  --cp-secondary: rgba(60, 60, 67, .68);
  --cp-tertiary: rgba(60, 60, 67, .36);
  --cp-blue: #007aff;
  --cp-green: #28a745;
  --cp-red: #ff3b30;
}

.cp-native-window.window {
  color: var(--cp-text);
  background: var(--cp-bg);
  border: 1px solid color-mix(in srgb, var(--cp-border), white 5%);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .42),
    0 7px 22px rgba(0, 0, 0, .25),
    inset 0 1px rgba(255, 255, 255, .1);
}

.cp-native-window.window:not(.active) {
  box-shadow: 0 14px 42px rgba(0, 0, 0, .28), 0 3px 10px rgba(0, 0, 0, .16);
}

.cp-native-window .titlebar {
  height: 38px;
  min-height: 38px;
  background: color-mix(in srgb, var(--cp-bg), transparent 7%);
  border-color: var(--cp-separator);
  backdrop-filter: saturate(1.7) blur(28px);
}

.cp-native-window .window-title {
  color: var(--cp-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.cp-native-window .window-body {
  color: var(--cp-text);
  background: var(--cp-bg);
}

.cp-native-window button,
.cp-native-window input,
.cp-native-window textarea,
.cp-native-window select {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

.cp-native-window button:focus-visible,
.cp-native-window input:focus-visible,
.cp-native-window textarea:focus-visible,
.cp-native-window select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cp-blue), transparent 55%);
  outline-offset: 1px;
}

.cp-native-window button {
  transition: background-color .14s ease, color .14s ease, transform .1s ease, opacity .14s ease;
}

.cp-native-window button:active:not(:disabled) {
  transform: scale(.975);
}

.cp-native-window * {
  scrollbar-color: color-mix(in srgb, var(--cp-text), transparent 76%) transparent;
}

.cp-native-window *::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.cp-native-window *::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--cp-text), transparent 76%);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.cp-native-window *::-webkit-scrollbar-track {
  background: transparent;
}

/* Settings */
#win-settings.window {
  min-width: min(760px, 100%);
}

#win-settings .titlebar {
  background: color-mix(in srgb, var(--cp-sidebar), transparent 5%);
}

#win-settings .window-body {
  overflow: hidden;
}

.cp-settings-app {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
  background: var(--cp-bg);
  color: var(--cp-text);
  font-size: 13px;
}

.cp-settings-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 11px 10px 12px;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .035), transparent 55%),
    var(--cp-sidebar);
  border-right: 1px solid var(--cp-separator);
}

.cp-settings-search {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr 18px;
  align-items: center;
  height: 28px;
  margin: 0 1px 9px;
  padding: 0 6px;
  border-radius: 7px;
  color: var(--cp-secondary);
  background: color-mix(in srgb, var(--cp-text), transparent 91%);
  box-shadow: inset 0 0 0 1px var(--cp-border);
}

.cp-settings-search:focus-within {
  box-shadow: inset 0 0 0 2px var(--cp-blue), 0 0 0 2px color-mix(in srgb, var(--cp-blue), transparent 70%);
}

.cp-settings-search span {
  font-size: 17px;
  transform: translateY(-1px);
}

.cp-settings-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--cp-text);
  background: transparent;
  font-size: 12px;
}

.cp-settings-search button {
  width: 17px;
  height: 17px;
  border: 0;
  border-radius: 50%;
  color: var(--cp-secondary);
  background: var(--cp-surface-strong);
  line-height: 1;
}

.cp-settings-account {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 7px 8px;
  border: 0;
  border-radius: 9px;
  color: var(--cp-text);
  background: transparent;
  text-align: left;
}

.cp-settings-account:hover {
  background: var(--cp-surface);
}

.cp-settings-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  background:
    radial-gradient(circle at 68% 25%, rgba(255,255,255,.38), transparent 30%),
    linear-gradient(145deg, #7048e8, #0a84ff);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .35), 0 4px 10px rgba(0, 0, 0, .2);
  font-size: 18px;
  font-weight: 650;
}

.cp-settings-account > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cp-settings-account b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-settings-account small {
  margin-top: 2px;
  color: var(--cp-secondary);
  font-size: 10px;
}

.cp-settings-account > i {
  color: var(--cp-tertiary);
  font-style: normal;
  font-size: 17px;
}

#cp-settings-nav {
  min-height: 0;
  overflow: auto;
  padding: 5px 1px 18px;
}

.cp-settings-nav-group {
  margin-bottom: 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--cp-separator);
}

.cp-settings-nav-group:last-child {
  border: 0;
}

.cp-settings-nav-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 31px;
  padding: 0 7px;
  border: 0;
  border-radius: 7px;
  color: var(--cp-text);
  background: transparent;
  text-align: left;
}

.cp-settings-nav-item[hidden] {
  display: none;
}

.cp-settings-nav-item:hover {
  background: var(--cp-surface);
}

.cp-settings-nav-item.active {
  color: white;
  background: var(--cp-blue);
}

.cp-settings-nav-item > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: white;
  background: var(--icon-color);
  box-shadow: inset 0 1px rgba(255, 255, 255, .32), 0 1px 2px rgba(0, 0, 0, .2);
  font-size: 12px;
  font-weight: 700;
}

.cp-settings-nav-item b {
  font-size: 12px;
  font-weight: 500;
}

.cp-settings-detail {
  min-width: 0;
  overflow: auto;
  padding: 34px max(30px, 7%) 60px;
  background:
    radial-gradient(circle at 90% 0, rgba(255, 255, 255, .025), transparent 38%),
    var(--cp-bg);
}

.cp-settings-heading {
  margin: 0 0 21px;
}

.cp-settings-heading h1 {
  margin: 0;
  color: var(--cp-text);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.035em;
}

.cp-settings-heading p {
  margin: 5px 0 0;
  color: var(--cp-secondary);
  font-size: 12px;
}

.cp-settings-section-label {
  margin: 20px 3px 7px;
  color: var(--cp-secondary);
  font-size: 11px;
  font-weight: 600;
}

.cp-settings-group {
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--cp-border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--cp-surface), transparent 8%);
  box-shadow: 0 1px rgba(255, 255, 255, .03);
}

.cp-settings-row {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 13px;
  gap: 10px;
  border-bottom: 1px solid var(--cp-separator);
}

.cp-settings-row:last-child {
  border-bottom: 0;
}

.cp-settings-row.clickable {
  cursor: default;
}

.cp-settings-row.clickable:hover {
  background: var(--cp-surface);
}

.cp-row-copy {
  flex: 1;
  min-width: 0;
}

.cp-row-copy > b {
  display: block;
  font-size: 12px;
  font-weight: 520;
}

.cp-row-copy > small {
  display: block;
  margin-top: 2px;
  color: var(--cp-secondary);
  font-size: 10.5px;
}

.cp-row-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--cp-secondary);
  font-size: 11px;
}

.cp-row-control select {
  max-width: 240px;
  height: 25px;
  padding: 0 24px 0 8px;
  border: 1px solid var(--cp-border);
  border-radius: 6px;
  color: var(--cp-text);
  background: var(--cp-surface-strong);
  font-size: 11px;
}

.cp-row-control input[type="range"] {
  width: 170px;
  accent-color: var(--cp-blue);
}

.cp-row-control output {
  min-width: 30px;
  color: var(--cp-secondary);
}

.cp-row-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 7px;
  color: white;
  background: var(--icon-color);
  font-size: 12px;
  font-weight: 700;
}

.cp-row-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cp-chevron {
  color: var(--cp-tertiary);
  font-size: 19px;
  font-style: normal;
  line-height: 1;
}

.cp-switch {
  position: relative;
  width: 32px;
  height: 19px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cp-text), transparent 76%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

.cp-switch i,
.cp-switch em {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1);
}

.cp-switch.on {
  background: var(--cp-green);
}

.cp-switch.on i,
.cp-switch.on em {
  transform: translateX(13px);
}

.cp-pill-button,
.cp-info-button {
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--cp-border);
  border-radius: 6px;
  color: var(--cp-text);
  background: var(--cp-surface-strong);
  font-size: 10.5px;
  font-weight: 550;
}

.cp-info-button {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  padding: 0;
  border-radius: 50%;
  color: var(--cp-blue);
  font-family: Georgia, serif;
  font-weight: 700;
}

.cp-wifi-signal {
  letter-spacing: -3px;
  color: var(--cp-blue);
  transform: rotate(-45deg);
}

.cp-lock {
  color: var(--cp-secondary);
}

.cp-settings-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  text-align: center;
}

.cp-settings-empty > span {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 13px;
  border-radius: 16px;
  color: white;
  background: #0a84ff;
  font-size: 29px;
}

.cp-settings-empty b {
  font-size: 15px;
}

.cp-settings-empty p {
  margin: 5px 0 14px;
  color: var(--cp-secondary);
  font-size: 11px;
}

.cp-settings-empty button {
  padding: 5px 13px;
  border: 0;
  border-radius: 6px;
  color: white;
  background: var(--cp-blue);
  font-size: 11px;
}

.cp-settings-footnote {
  margin: -5px 10px 20px;
  color: var(--cp-secondary);
  font-size: 10.5px;
}

.cp-status-good,
.cp-selected-mark {
  color: var(--cp-green);
  font-weight: 600;
}

.cp-appearance-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 14px;
  border-bottom: 1px solid var(--cp-separator);
}

.cp-appearance-row > span {
  display: flex;
  flex-direction: column;
  min-width: 115px;
}

.cp-appearance-row > span b,
.cp-accent-row > span b {
  font-size: 12px;
  font-weight: 520;
}

.cp-appearance-row > span small {
  margin-top: 3px;
  color: var(--cp-secondary);
  font-size: 10px;
}

.cp-appearance-choices {
  display: flex;
  gap: 13px;
}

.cp-appearance-choices button {
  width: 92px;
  padding: 0;
  border: 0;
  color: var(--cp-secondary);
  background: transparent;
  font-size: 10.5px;
}

.cp-appearance-choices button > i {
  display: block;
  position: relative;
  width: 88px;
  height: 55px;
  margin-bottom: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 7px;
  background: #f4f4f6;
  box-shadow: inset 20px 0 #e0e0e3, inset 0 11px rgba(255,255,255,.8), 0 1px 4px rgba(0,0,0,.16);
}

.cp-appearance-choices button > i.dark {
  background: #252527;
  box-shadow: inset 20px 0 #333336, inset 0 11px rgba(255,255,255,.045), 0 1px 4px rgba(0,0,0,.35);
}

.cp-appearance-choices button > i.auto {
  background: linear-gradient(90deg, #f4f4f6 50%, #252527 50%);
  box-shadow: inset 20px 0 rgba(0,0,0,.09), inset 0 11px rgba(128,128,128,.1), 0 1px 4px rgba(0,0,0,.25);
}

.cp-appearance-choices button.active > i {
  border-color: var(--cp-blue);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cp-blue), transparent 72%);
}

.cp-appearance-choices button.active b {
  color: var(--cp-text);
}

.cp-accent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 14px;
  border-bottom: 1px solid var(--cp-separator);
}

.cp-accent-row > div {
  display: flex;
  gap: 7px;
}

.cp-accent-row button {
  position: relative;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--swatch);
}

.cp-accent-row button.active::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 2px solid var(--swatch);
  border-radius: inherit;
}

.cp-battery-summary {
  margin-bottom: 14px;
  padding: 17px 18px 12px;
  border: 1px solid var(--cp-border);
  border-radius: 12px;
  background: var(--cp-surface);
}

.cp-battery-summary > div:first-child {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
}

.cp-battery-summary > div:first-child b {
  font-size: 26px;
  line-height: 1;
}

.cp-battery-summary > div:first-child small {
  grid-column: 2;
  color: var(--cp-secondary);
  font-size: 10.5px;
}

.cp-battery-large {
  position: relative;
  display: block;
  grid-row: span 2;
  width: 54px;
  height: 25px;
  padding: 3px;
  border: 2px solid var(--cp-secondary);
  border-radius: 6px;
}

.cp-battery-large::after {
  content: "";
  position: absolute;
  top: 7px;
  right: -6px;
  width: 3px;
  height: 9px;
  border-radius: 0 2px 2px 0;
  background: var(--cp-secondary);
}

.cp-battery-large i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--cp-green);
}

.cp-battery-chart {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 90px;
  margin: 16px 2px 5px;
  border-bottom: 1px solid var(--cp-separator);
  background: repeating-linear-gradient(to top, transparent 0, transparent 29px, var(--cp-separator) 30px);
}

.cp-battery-chart i {
  flex: 1;
  min-height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--cp-green);
}

.cp-battery-chart i.low {
  background: #ffcc00;
}

.cp-battery-summary footer {
  display: flex;
  justify-content: space-between;
  color: var(--cp-secondary);
  font-size: 9.5px;
}

.cp-wallpaper-current {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 15px;
  padding-bottom: 18px;
}

.cp-wallpaper-current > div {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--cp-border);
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
}

.cp-wallpaper-current > span {
  display: flex;
  flex-direction: column;
}

.cp-wallpaper-current b {
  font-size: 12px;
}

.cp-wallpaper-current small {
  margin-top: 4px;
  color: var(--cp-secondary);
  font-size: 10px;
}

.cp-wallpaper-current select {
  height: 26px;
  border: 1px solid var(--cp-border);
  border-radius: 6px;
  color: var(--cp-text);
  background: var(--cp-surface);
  font-size: 10px;
}

.cp-wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.cp-wallpaper-grid button {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--cp-border);
  border-radius: 9px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.cp-wallpaper-grid button span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 12px 7px 5px;
  color: white;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7));
  text-align: left;
  font-size: 9.5px;
}

.cp-display-preview {
  display: grid;
  place-items: center;
  height: 178px;
  margin-bottom: 16px;
}

.cp-display-preview > div {
  position: relative;
  display: grid;
  place-items: center;
  width: 240px;
  height: 144px;
  border: 5px solid #1b1b1d;
  border-radius: 11px;
  background:
    radial-gradient(circle at 40% 35%, #63d3ff, transparent 29%),
    linear-gradient(145deg, #076b9c, #14235e 57%, #5b2e7e);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .3);
  color: white;
}

.cp-display-preview > div::after {
  content: "";
  position: absolute;
  bottom: -17px;
  width: 46px;
  height: 14px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(#777, #bbb);
}

.cp-display-preview span {
  font-size: 13px;
  font-weight: 650;
}

.cp-display-preview i {
  margin-top: 4px;
  font-size: 9px;
  font-style: normal;
  opacity: .74;
}

.cp-account-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.cp-account-hero > span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #7048e8, #0a84ff);
  font-size: 34px;
  font-weight: 650;
}

.cp-account-hero h2 {
  margin: 0;
}

.cp-account-hero p {
  margin: 4px 0 10px;
  color: var(--cp-secondary);
}

.cp-account-hero button {
  padding: 5px 11px;
  border: 1px solid var(--cp-border);
  border-radius: 6px;
  color: var(--cp-text);
  background: var(--cp-surface);
}

/* Battery menu extra */
#control-center[data-panel-kind="battery"] {
  width: 312px !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 13px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .08), transparent 40%),
    rgba(30, 30, 33, .93) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .42), 0 3px 10px rgba(0, 0, 0, .24), inset 0 1px rgba(255,255,255,.14) !important;
  backdrop-filter: blur(34px) saturate(1.55) !important;
}

.light-mode #control-center[data-panel-kind="battery"] {
  background: rgba(246, 246, 248, .92) !important;
}

.cp-battery-popover {
  padding: 12px 12px 9px;
  color: var(--cp-text);
  font-size: 12px;
}

.cp-battery-popover header,
.cp-battery-popover header > div {
  display: flex;
  align-items: center;
}

.cp-battery-popover header {
  justify-content: space-between;
}

.cp-battery-popover header > div {
  gap: 9px;
}

.cp-battery-popover header b {
  font-size: 13px;
}

.cp-battery-popover header small {
  color: var(--cp-secondary);
  font-size: 10px;
}

.cp-battery-menu-glyph {
  position: relative;
  width: 31px;
  height: 14px;
  padding: 2px;
  border: 1.5px solid var(--cp-secondary);
  border-radius: 4px;
}

.cp-battery-menu-glyph::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 4px;
  width: 2px;
  height: 5px;
  border-radius: 0 2px 2px 0;
  background: var(--cp-secondary);
}

.cp-battery-menu-glyph i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--cp-green);
}

.cp-battery-popover-status {
  margin: 4px 0 8px 40px;
  color: var(--cp-secondary);
  font-size: 10px;
}

.cp-battery-mini-chart {
  display: flex;
  align-items: end;
  gap: 2px;
  height: 48px;
  padding-top: 5px;
  border-bottom: 1px solid var(--cp-separator);
  background: repeating-linear-gradient(to top, transparent 0, transparent 15px, var(--cp-separator) 16px);
}

.cp-battery-mini-chart i {
  flex: 1;
  min-height: 2px;
  border-radius: 1px 1px 0 0;
  background: var(--cp-green);
  opacity: .9;
}

.cp-battery-chart-label {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--cp-tertiary);
  font-size: 8.5px;
}

.cp-menu-separator {
  height: 1px;
  margin: 8px -12px;
  background: var(--cp-separator);
}

.cp-battery-menu-row,
.cp-battery-settings-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  padding: 3px 5px;
  border: 0;
  border-radius: 6px;
  color: var(--cp-text);
  background: transparent;
  text-align: left;
}

.cp-battery-menu-row:hover,
.cp-battery-settings-link:hover {
  color: white;
  background: var(--cp-blue);
}

.cp-battery-menu-row > span {
  display: flex;
  flex-direction: column;
}

.cp-battery-menu-row b {
  font-size: 11px;
  font-weight: 520;
}

.cp-battery-menu-row small {
  color: var(--cp-secondary);
  font-size: 9px;
}

.cp-battery-menu-row:hover small {
  color: rgba(255, 255, 255, .72);
}

.cp-battery-menu-row .cp-switch {
  width: 29px;
  height: 17px;
}

.cp-battery-menu-row .cp-switch em {
  width: 13px;
  height: 13px;
}

.cp-battery-menu-row .cp-switch.on em {
  transform: translateX(12px);
}

.cp-battery-settings-link {
  min-height: 25px;
  font-size: 11px;
}

/* App Store */
#win-appstore .window-body {
  overflow: hidden;
}

.cp-store-app {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
  color: var(--cp-text);
  background: var(--cp-bg);
  font-size: 12px;
}

.cp-store-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 13px 10px 10px;
  border-right: 1px solid var(--cp-separator);
  background: var(--cp-sidebar);
}

.cp-store-search {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  height: 29px;
  margin: 0 1px 10px;
  padding: 0 7px;
  border-radius: 7px;
  color: var(--cp-secondary);
  background: var(--cp-surface-strong);
  box-shadow: inset 0 0 0 1px var(--cp-border);
}

.cp-store-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--cp-text);
  background: transparent;
  font-size: 11px;
}

.cp-store-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cp-store-sidebar nav > button {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  color: var(--cp-secondary);
  background: transparent;
  text-align: left;
  font-size: 12px;
}

.cp-store-sidebar nav > button:hover {
  background: var(--cp-surface);
}

.cp-store-sidebar nav > button.active {
  color: white;
  background: var(--cp-blue);
}

.cp-store-sidebar nav > button > span {
  color: var(--cp-blue);
  font-size: 14px;
}

.cp-store-sidebar nav > button.active > span {
  color: white;
}

.cp-store-sidebar nav > button > i {
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  color: white;
  background: #ff3b30;
  font-size: 9px;
  font-style: normal;
}

.cp-store-account {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 7px;
  border: 0;
  border-top: 1px solid var(--cp-separator);
  color: var(--cp-text);
  background: transparent;
  text-align: left;
}

.cp-store-account > span:first-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #39b9d4, #087aa0);
  font-weight: 700;
}

.cp-store-account > span:last-child {
  display: flex;
  flex-direction: column;
}

.cp-store-account b {
  font-size: 11px;
}

.cp-store-account small {
  color: var(--cp-secondary);
  font-size: 9px;
}

.cp-store-main {
  min-width: 0;
  overflow: auto;
  padding: 29px 30px 55px;
}

.cp-store-heading {
  margin-bottom: 18px;
}

.cp-store-heading.inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.cp-store-heading small {
  color: var(--cp-secondary);
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
}

.cp-store-heading h1 {
  margin: 3px 0 0;
  font-size: 29px;
  letter-spacing: -.045em;
}

.cp-store-hero-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(440px, 68%);
  gap: 13px;
  padding-bottom: 9px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.cp-store-hero {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  color: white;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .75), rgba(0,0,0,.18)),
    var(--hero) center/cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
  text-align: left;
  scroll-snap-align: start;
}

.cp-store-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 1px rgba(255,255,255,.24), inset 0 0 0 1px rgba(255,255,255,.1);
  border-radius: inherit;
  pointer-events: none;
}

.cp-store-hero > div {
  position: absolute;
  top: 26px;
  left: 25px;
  width: 56%;
}

.cp-store-hero > div small {
  color: rgba(255,255,255,.7);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.cp-store-hero h2 {
  margin: 7px 0;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.cp-store-hero p {
  margin: 0;
  color: rgba(255,255,255,.75);
  font-size: 11px;
}

.cp-store-hero footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 39px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: rgba(18, 18, 20, .68);
  backdrop-filter: blur(20px) saturate(1.4);
}

.cp-store-hero footer img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: contain;
}

.cp-store-hero footer span {
  display: flex;
  flex-direction: column;
}

.cp-store-hero footer b {
  font-size: 11px;
}

.cp-store-hero footer small {
  color: rgba(255,255,255,.62);
  font-size: 9px;
}

.cp-store-hero footer i {
  min-width: 44px;
  padding: 4px 11px;
  border-radius: 999px;
  color: #0a84ff;
  background: rgba(255,255,255,.16);
  text-align: center;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
}

.cp-store-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 22px;
}

.cp-store-columns > div > header,
.cp-music-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--cp-separator);
}

.cp-store-columns h2,
.cp-music-section h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -.02em;
}

.cp-store-columns header button,
.cp-music-section header button {
  border: 0;
  color: var(--cp-blue);
  background: transparent;
  font-size: 10px;
}

.cp-store-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  border-bottom: 1px solid var(--cp-separator);
}

.cp-store-row > em {
  color: var(--cp-secondary);
  text-align: center;
  font-style: normal;
  font-size: 14px;
}

.cp-store-row:has(> em) {
  grid-template-columns: 20px 48px minmax(0, 1fr) auto;
}

.cp-store-row > img {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  object-fit: contain;
}

.cp-store-row > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cp-store-row > span b {
  overflow: hidden;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-store-row > span small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--cp-secondary);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-store-row > span i {
  margin-top: 3px;
  color: #ff9f0a;
  font-style: normal;
  font-size: 8px;
  letter-spacing: -1px;
}

.cp-store-row > span strong {
  color: var(--cp-secondary);
  font-weight: 500;
  letter-spacing: 0;
}

.cp-store-row > button,
.cp-update-all,
.cp-store-detail header button,
.cp-store-updates article > button {
  display: grid;
  place-items: center;
  min-width: 50px;
  height: 24px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--cp-blue);
  background: var(--cp-surface-strong);
  font-size: 10px;
  font-weight: 700;
}

.cp-store-row > button:hover,
.cp-store-detail header button:hover {
  color: white;
  background: var(--cp-blue);
}

.cp-store-progress {
  --progress: 0;
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: conic-gradient(var(--cp-blue) calc(var(--progress) * 1%), var(--cp-border) 0);
  -webkit-mask: radial-gradient(circle, transparent 47%, black 49%);
  mask: radial-gradient(circle, transparent 47%, black 49%);
}

.cp-store-category-hero {
  min-height: 145px;
  margin-bottom: 18px;
  border-radius: 13px;
  background:
    radial-gradient(circle at 78% 12%, rgba(255,255,255,.3), transparent 25%),
    linear-gradient(135deg, #0f73b9, #5b39c6 58%, #bf5af2);
  color: white;
}

.cp-store-category-hero > div {
  padding: 22px;
}

.cp-store-category-hero small {
  color: rgba(255,255,255,.68);
  font-size: 9px;
  font-weight: 700;
}

.cp-store-category-hero h2 {
  max-width: 360px;
  margin: 8px 0 5px;
  font-size: 23px;
}

.cp-store-category-hero p {
  margin: 0;
  color: rgba(255,255,255,.7);
  font-size: 10px;
}

.cp-store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

.cp-store-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.cp-store-category-grid button {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: 1fr 1fr;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--cp-border);
  border-radius: 11px;
  color: var(--cp-text);
  background: var(--cp-surface);
  text-align: left;
}

.cp-store-category-grid button:hover {
  background: var(--cp-surface-strong);
}

.cp-store-category-grid span {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  color: white;
  background: hsl(var(--category-hue) 70% 52%);
  font-size: 16px;
}

.cp-store-category-grid b {
  font-size: 12px;
}

.cp-store-category-grid small {
  color: var(--cp-secondary);
  font-size: 9px;
}

.cp-update-all {
  color: var(--cp-blue);
}

.cp-store-updates {
  border-top: 1px solid var(--cp-separator);
}

.cp-store-updates article {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 83px;
  border-bottom: 1px solid var(--cp-separator);
}

.cp-store-updates article > img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.cp-store-updates article > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cp-store-updates article b {
  font-size: 12px;
}

.cp-store-updates article small {
  margin-top: 3px;
  color: var(--cp-secondary);
  font-size: 9.5px;
}

.cp-store-updates article em {
  margin-top: 3px;
  color: var(--cp-tertiary);
  font-style: normal;
  font-size: 9px;
}

.cp-store-history {
  color: var(--cp-secondary);
  font-size: 10px;
  line-height: 1.5;
}

.cp-store-empty {
  display: grid;
  place-items: center;
  min-height: 360px;
  text-align: center;
}

.cp-store-empty span {
  font-size: 44px;
  color: var(--cp-tertiary);
}

.cp-store-empty b {
  margin-top: -120px;
  font-size: 15px;
}

.cp-store-empty p {
  margin-top: -180px;
  color: var(--cp-secondary);
  font-size: 10px;
}

.cp-store-detail {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(630px, calc(100% - 190px));
  padding: 30px 30px 50px;
  overflow: auto;
  border-left: 1px solid var(--cp-border);
  background: color-mix(in srgb, var(--cp-bg), transparent 1%);
  box-shadow: -20px 0 50px rgba(0, 0, 0, .28);
  transform: translateX(102%);
  transition: transform .26s cubic-bezier(.2, .8, .2, 1);
}

.cp-store-detail.show {
  transform: translateX(0);
}

.cp-store-detail-close {
  position: sticky;
  z-index: 2;
  top: 0;
  float: right;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--cp-secondary);
  background: var(--cp-surface-strong);
}

.cp-store-detail > header {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.cp-store-detail > header > img {
  width: 92px;
  height: 92px;
  border-radius: 21px;
  object-fit: contain;
}

.cp-store-detail > header h2 {
  margin: 4px 0 3px;
  font-size: 21px;
  letter-spacing: -.03em;
}

.cp-store-detail > header p {
  margin: 0 0 11px;
  color: var(--cp-secondary);
  font-size: 11px;
}

.cp-store-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 11px 0;
  border-top: 1px solid var(--cp-separator);
  border-bottom: 1px solid var(--cp-separator);
}

.cp-store-stats span {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--cp-separator);
}

.cp-store-stats span:last-child {
  border: 0;
}

.cp-store-stats b {
  font-size: 14px;
}

.cp-store-stats small {
  margin-top: 2px;
  color: var(--cp-secondary);
  font-size: 8.5px;
}

.cp-store-screenshots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 10px;
  margin: 19px 0 22px;
  overflow-x: auto;
}

.cp-store-screenshots > div {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 13px;
  background:
    radial-gradient(circle at calc(25% + var(--shot) * 20%) 20%, rgba(255,255,255,.38), transparent 23%),
    linear-gradient(calc(130deg + var(--shot) * 20deg), #0b83d7, #5f3bc4 58%, #cc4ab5);
}

.cp-store-screenshots > div::before {
  content: "";
  position: absolute;
  inset: 45px 24px 30px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 9px;
  background: rgba(15,16,23,.75);
  box-shadow: inset 0 27px rgba(255,255,255,.06), 0 14px 28px rgba(0,0,0,.25);
}

.cp-store-screenshots span {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: flex;
  flex-direction: column;
  color: white;
}

.cp-store-screenshots b {
  font-size: 14px;
}

.cp-store-screenshots small {
  margin-top: 3px;
  color: rgba(255,255,255,.7);
  font-size: 9px;
}

.cp-store-detail > h3,
.cp-store-whats-new h3 {
  margin: 17px 0 8px;
  font-size: 14px;
}

.cp-store-description {
  color: var(--cp-secondary);
  font-size: 10.5px;
  line-height: 1.55;
}

.cp-store-whats-new,
.cp-store-privacy {
  margin-top: 18px;
  padding: 13px;
  border: 1px solid var(--cp-border);
  border-radius: 11px;
  background: var(--cp-surface);
}

.cp-store-whats-new span,
.cp-store-privacy {
  display: flex;
  flex-direction: column;
}

.cp-store-whats-new b,
.cp-store-privacy b {
  font-size: 11px;
}

.cp-store-whats-new small,
.cp-store-privacy small {
  margin-top: 3px;
  color: var(--cp-secondary);
  font-size: 9.5px;
}

.cp-store-privacy > span {
  margin-bottom: 6px;
  color: var(--cp-blue);
  font-size: 10px;
  font-weight: 600;
}

.cp-store-detail > footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  color: var(--cp-secondary);
  font-size: 9.5px;
}

.cp-store-detail > footer span {
  display: flex;
  justify-content: space-between;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--cp-separator);
}

.cp-store-detail > footer b {
  color: var(--cp-text);
  font-weight: 500;
}

.cp-store-account-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0 25px;
}

.cp-store-account-page > span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #39b9d4, #087aa0);
  font-size: 29px;
  font-weight: 700;
}

.cp-store-account-page h2 {
  margin: 10px 0 2px;
}

.cp-store-account-page p {
  margin: 0 0 13px;
  color: var(--cp-secondary);
}

.cp-store-account-page button {
  padding: 5px 12px;
  border: 0;
  border-radius: 6px;
  color: white;
  background: var(--cp-blue);
}

/* Music */
#win-music .window-body {
  overflow: hidden;
}

.cp-music-app {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 74px;
  width: 100%;
  height: 100%;
  min-height: 0;
  color: var(--cp-text);
  background: var(--cp-bg);
}

.cp-music-sidebar {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px 10px;
  overflow: auto;
  border-right: 1px solid var(--cp-separator);
  background: var(--cp-sidebar);
}

.cp-music-sidebar > label {
  display: grid;
  grid-template-columns: 19px 1fr;
  align-items: center;
  height: 29px;
  margin-bottom: 8px;
  padding: 0 7px;
  border-radius: 7px;
  color: var(--cp-secondary);
  background: var(--cp-surface-strong);
  box-shadow: inset 0 0 0 1px var(--cp-border);
}

.cp-music-sidebar > label input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--cp-text);
  background: transparent;
  font-size: 11px;
}

.cp-music-sidebar h3 {
  margin: 12px 8px 4px;
  color: var(--cp-secondary);
  font-size: 9.5px;
  font-weight: 600;
}

.cp-music-sidebar nav {
  display: flex;
  flex-direction: column;
}

.cp-music-sidebar nav button {
  display: grid;
  grid-template-columns: 23px 1fr;
  align-items: center;
  min-height: 29px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  color: var(--cp-text);
  background: transparent;
  text-align: left;
  font-size: 11.5px;
}

.cp-music-sidebar nav button:hover {
  background: var(--cp-surface);
}

.cp-music-sidebar nav button.active {
  color: white;
  background: var(--cp-blue);
}

.cp-music-sidebar nav button span {
  color: #ff375f;
  font-size: 13px;
}

.cp-music-sidebar nav button.active span {
  color: white;
}

.cp-music-import {
  margin: auto 4px 0;
  padding: 7px 8px;
  border: 0;
  border-top: 1px solid var(--cp-separator);
  color: #ff375f;
  background: transparent;
  text-align: left;
  font-size: 10px;
}

.cp-music-main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow: auto;
  padding: 28px 29px 55px;
}

.cp-music-heading {
  margin-bottom: 17px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--cp-separator);
}

.cp-music-heading small {
  color: #ff375f;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.cp-music-heading h1 {
  margin: 3px 0 0;
  font-size: 28px;
  letter-spacing: -.045em;
}

.cp-music-heading p {
  margin: 4px 0 0;
  color: var(--cp-secondary);
  font-size: 10px;
}

.cp-music-feature {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 210px;
  width: 100%;
  min-height: 222px;
  padding: 22px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  color: white;
  background:
    linear-gradient(90deg, rgba(12,14,22,.9), rgba(12,14,22,.48)),
    var(--feature, none) center/cover;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 12px 28px rgba(0,0,0,.2);
  text-align: left;
}

.cp-music-feature > div {
  align-self: center;
  position: relative;
  z-index: 1;
}

.cp-music-feature small {
  color: rgba(255,255,255,.62);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.cp-music-feature h2 {
  margin: 7px 0 3px;
  font-size: 27px;
  letter-spacing: -.04em;
}

.cp-music-feature p {
  margin: 0 0 17px;
  color: rgba(255,255,255,.68);
  font-size: 10px;
}

.cp-music-feature > div > span {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 7px;
  color: white;
  background: #ff375f;
  font-size: 10px;
  font-weight: 650;
}

.cp-music-feature > i {
  justify-self: end;
  align-self: center;
  width: 178px;
  aspect-ratio: 1;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 35px rgba(0,0,0,.45);
  transform: rotate(3deg);
}

.cp-music-section {
  margin-top: 23px;
}

.cp-album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.cp-album-grid.large {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.cp-album-card {
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--cp-text);
  background: transparent;
  text-align: left;
}

.cp-album-card > span {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 7px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 15px rgba(0,0,0,.22);
}

.cp-album-card > span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.18);
  opacity: 0;
  transition: opacity .16s;
}

.cp-album-card:hover > span::after {
  opacity: 1;
}

.cp-album-card > span i {
  position: absolute;
  z-index: 1;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: white;
  background: rgba(15,15,18,.7);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .16s, transform .16s;
  font-style: normal;
  font-size: 10px;
}

.cp-album-card:hover > span i {
  opacity: 1;
  transform: translateY(0);
}

.cp-album-card > b {
  display: block;
  overflow: hidden;
  margin-top: 7px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-album-card > small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--cp-secondary);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-music-mixes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.cp-music-mixes button {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: 1fr 1fr;
  min-height: 67px;
  padding: 10px;
  border: 1px solid var(--cp-border);
  border-radius: 10px;
  color: var(--cp-text);
  background: var(--cp-surface);
  text-align: left;
}

.cp-music-mixes i {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(145deg, #ff375f, #af52de);
  font-style: normal;
}

.cp-music-mixes b {
  font-size: 10.5px;
}

.cp-music-mixes small {
  color: var(--cp-secondary);
  font-size: 8.5px;
}

.cp-music-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cp-music-editorial > div {
  min-height: 230px;
  padding: 17px;
  border-radius: 12px;
  color: white;
  background:
    linear-gradient(0deg, rgba(0,0,0,.75), transparent 65%),
    var(--editorial, none) center/cover;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.cp-music-editorial small {
  color: rgba(255,255,255,.7);
  font-size: 9px;
}

.cp-music-editorial h2 {
  max-width: 230px;
  margin: 9px 0;
  font-size: 19px;
}

.cp-music-editorial button {
  padding: 5px 11px;
  border: 0;
  border-radius: 6px;
  color: white;
  background: #ff375f;
  font-size: 9.5px;
}

.cp-music-back {
  margin-bottom: 15px;
  padding: 0;
  border: 0;
  color: #ff375f;
  background: transparent;
  font-size: 11px;
}

.cp-album-hero {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  align-items: end;
  padding-bottom: 20px;
}

.cp-album-hero > span {
  width: 190px;
  aspect-ratio: 1;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 14px 28px rgba(0,0,0,.32);
}

.cp-album-hero small {
  color: #ff375f;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.cp-album-hero h1 {
  margin: 6px 0 4px;
  font-size: 29px;
  letter-spacing: -.045em;
}

.cp-album-hero p,
.cp-album-hero em {
  display: block;
  margin: 0;
  color: var(--cp-secondary);
  font-size: 10px;
  font-style: normal;
}

.cp-album-hero footer {
  display: flex;
  gap: 7px;
  margin-top: 17px;
}

.cp-album-hero footer button {
  min-height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  color: white;
  background: #ff375f;
  font-size: 10px;
  font-weight: 600;
}

.cp-song-list {
  border-top: 1px solid var(--cp-separator);
}

.cp-song-row {
  display: grid;
  grid-template-columns: 29px minmax(130px, 1.4fr) minmax(100px, 1fr) 29px 42px 30px;
  align-items: center;
  min-height: 47px;
  padding: 0 4px;
  border-bottom: 1px solid var(--cp-separator);
  font-size: 10px;
}

.cp-song-row:has(.cp-song-cover) {
  grid-template-columns: 29px 38px minmax(130px, 1.4fr) minmax(100px, 1fr) 29px 42px 30px;
}

.cp-song-row:hover {
  background: var(--cp-surface);
}

.cp-song-row.current b,
.cp-song-row.current .cp-song-play {
  color: #ff375f;
}

.cp-song-play,
.cp-song-favorite,
.cp-song-more {
  padding: 0;
  border: 0;
  color: var(--cp-secondary);
  background: transparent;
}

.cp-song-cover {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
}

.cp-song-row > span:not(.cp-song-cover) {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cp-song-row b,
.cp-song-row small,
.cp-song-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-song-row b {
  font-size: 10.5px;
}

.cp-song-row small,
.cp-song-row em,
.cp-song-row time {
  color: var(--cp-secondary);
  font-size: 9px;
  font-style: normal;
}

.cp-song-favorite.active {
  color: #ff375f;
}

.cp-music-copyright {
  color: var(--cp-tertiary);
  font-size: 8.5px;
}

.cp-artist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cp-artist-grid button {
  padding: 0;
  border: 0;
  color: var(--cp-text);
  background: transparent;
  text-align: center;
}

.cp-artist-grid span {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 7px 18px rgba(0,0,0,.24);
}

.cp-artist-grid b {
  display: block;
  margin-top: 8px;
  font-size: 10.5px;
}

.cp-artist-grid small {
  color: var(--cp-secondary);
  font-size: 9px;
}

.cp-music-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  text-align: center;
}

.cp-music-empty span {
  color: var(--cp-tertiary);
  font-size: 44px;
}

.cp-music-empty b {
  margin-top: 9px;
  font-size: 14px;
}

.cp-music-empty p {
  margin: 4px 0;
  color: var(--cp-secondary);
  font-size: 10px;
}

.cp-music-player {
  z-index: 4;
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(330px, 1.5fr) minmax(190px, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 7px 13px;
  border-top: 1px solid var(--cp-border);
  background: color-mix(in srgb, var(--cp-sidebar), transparent 2%);
  backdrop-filter: blur(24px) saturate(1.35);
}

.cp-now-playing {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 25px;
  align-items: center;
  gap: 9px;
}

.cp-now-playing > span {
  width: 48px;
  height: 48px;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
}

.cp-now-playing > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cp-now-playing b,
.cp-now-playing small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-now-playing b {
  font-size: 10.5px;
}

.cp-now-playing small {
  margin-top: 2px;
  color: var(--cp-secondary);
  font-size: 9px;
}

.cp-now-playing button,
.cp-player-center button,
.cp-player-tools button {
  padding: 0;
  border: 0;
  color: var(--cp-secondary);
  background: transparent;
}

.cp-now-playing button.active,
.cp-player-center button.active,
.cp-player-tools button.active {
  color: #ff375f;
}

.cp-player-center > nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cp-player-center > nav button {
  font-size: 11px;
}

.cp-player-center > nav button.primary {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--cp-text);
  background: var(--cp-surface-strong);
  font-size: 10px;
}

.cp-player-center > div {
  display: grid;
  grid-template-columns: 35px 1fr 35px;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.cp-player-center input {
  width: 100%;
  height: 3px;
  accent-color: #ff375f;
}

.cp-player-center time {
  color: var(--cp-tertiary);
  font-size: 8px;
}

.cp-player-center time:last-child {
  text-align: right;
}

.cp-player-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.cp-player-tools input {
  width: 78px;
  accent-color: #ff375f;
}

.cp-player-tools span {
  color: var(--cp-secondary);
  font-size: 10px;
}

.cp-music-queue {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  bottom: 74px;
  width: 310px;
  padding: 16px;
  border-left: 1px solid var(--cp-border);
  background: color-mix(in srgb, var(--cp-bg), transparent 2%);
  box-shadow: -18px 0 45px rgba(0,0,0,.28);
  transform: translateX(105%);
  transition: transform .24s cubic-bezier(.2,.8,.2,1);
}

.cp-music-queue.show {
  transform: translateX(0);
}

.cp-music-queue header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--cp-separator);
}

.cp-music-queue h2 {
  margin: 0;
  font-size: 15px;
}

.cp-music-queue header button {
  border: 0;
  color: var(--cp-secondary);
  background: transparent;
}

.cp-music-queue > div > button {
  display: grid;
  grid-template-columns: 37px 18px 1fr 20px;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 51px;
  border: 0;
  border-bottom: 1px solid var(--cp-separator);
  color: var(--cp-text);
  background: transparent;
  text-align: left;
}

.cp-music-queue > div > button > span {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
}

.cp-music-queue > div i,
.cp-music-queue > div em {
  color: var(--cp-secondary);
  font-style: normal;
  font-size: 9px;
}

.cp-music-queue > div b {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-music-queue > div small {
  display: block;
  margin-top: 2px;
  color: var(--cp-secondary);
  font-size: 8.5px;
  font-weight: 400;
}

.cp-music-queue footer button {
  margin-top: 12px;
  padding: 5px 9px;
  border: 0;
  border-radius: 6px;
  color: #ff375f;
  background: var(--cp-surface);
  font-size: 9.5px;
}

/* Phone */
#win-phone .window-body {
  overflow: hidden;
}

.cp-phone-app {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  color: var(--cp-text);
  background: var(--cp-bg);
}

.cp-phone-sidebar {
  display: flex;
  flex-direction: column;
  padding: 12px 10px;
  border-right: 1px solid var(--cp-separator);
  background: var(--cp-sidebar);
}

.cp-phone-sidebar > label,
.cp-facetime-sidebar > label {
  display: grid;
  grid-template-columns: 19px 1fr;
  align-items: center;
  height: 29px;
  padding: 0 7px;
  border-radius: 7px;
  color: var(--cp-secondary);
  background: var(--cp-surface-strong);
  box-shadow: inset 0 0 0 1px var(--cp-border);
}

.cp-phone-sidebar input,
.cp-facetime-sidebar input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--cp-text);
  background: transparent;
  font-size: 10.5px;
}

.cp-phone-new,
.cp-facetime-sidebar > button {
  margin-top: 10px;
  padding: 6px;
  border: 0;
  border-radius: 7px;
  color: white;
  background: var(--cp-blue);
  font-size: 10.5px;
  font-weight: 600;
}

.cp-phone-sidebar nav {
  display: flex;
  flex-direction: column;
  margin-top: 13px;
}

.cp-phone-sidebar nav button {
  display: grid;
  grid-template-columns: 23px 1fr;
  align-items: center;
  height: 31px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  color: var(--cp-text);
  background: transparent;
  text-align: left;
  font-size: 11px;
}

.cp-phone-sidebar nav button.active {
  color: white;
  background: var(--cp-blue);
}

.cp-phone-sidebar nav span {
  color: var(--cp-green);
}

.cp-phone-sidebar nav button.active span {
  color: white;
}

.cp-phone-sidebar > footer {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 9px 8px 0;
  border-top: 1px solid var(--cp-separator);
  font-size: 9px;
}

.cp-phone-sidebar > footer i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cp-green);
}

.cp-phone-sidebar > footer b {
  color: var(--cp-green);
  font-size: 8.5px;
}

.cp-phone-main {
  overflow: auto;
  padding: 27px 30px 45px;
}

.cp-phone-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cp-phone-heading h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -.04em;
}

.cp-phone-heading button {
  border: 0;
  color: var(--cp-blue);
  background: transparent;
  font-size: 10px;
}

.cp-phone-recents,
.cp-phone-contact-list {
  border-top: 1px solid var(--cp-separator);
}

.cp-phone-recents > button,
.cp-phone-contact {
  display: grid;
  grid-template-columns: 42px 1fr auto 25px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 0 5px;
  border: 0;
  border-bottom: 1px solid var(--cp-separator);
  color: var(--cp-text);
  background: transparent;
  text-align: left;
}

.cp-phone-recents > button:hover,
.cp-phone-contact:hover {
  background: var(--cp-surface);
}

.cp-phone-recents > button > span,
.cp-phone-contact > span {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  color: white;
  background: var(--avatar);
  font-weight: 650;
}

.cp-phone-recents i,
.cp-phone-contact i {
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-style: normal;
}

.cp-phone-recents b,
.cp-phone-contact b {
  font-size: 11px;
}

.cp-phone-recents b.missed {
  color: var(--cp-red);
}

.cp-phone-recents small,
.cp-phone-contact small {
  margin-top: 2px;
  color: var(--cp-secondary);
  font-size: 9px;
}

.cp-phone-recents time {
  color: var(--cp-secondary);
  font-size: 9px;
}

.cp-phone-recents em,
.cp-phone-contact em {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--cp-blue);
  border-radius: 50%;
  color: var(--cp-blue);
  font-family: Georgia, serif;
  font-style: normal;
  font-weight: 700;
}

.cp-phone-favorites article {
  position: relative;
}

.cp-phone-favorites article > .cp-phone-contact {
  grid-template-columns: 42px 1fr 25px;
}

.cp-phone-favorites article > button:last-child {
  position: absolute;
  top: 18px;
  right: 38px;
  border: 0;
  color: #ffcc00;
  background: transparent;
}

.cp-voicemail-list article {
  display: grid;
  grid-template-columns: 30px 1fr 25px;
  gap: 10px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--cp-separator);
}

.cp-voicemail-list button {
  border: 0;
  color: var(--cp-green);
  background: transparent;
}

.cp-voicemail-list span {
  display: flex;
  flex-direction: column;
}

.cp-voicemail-list b {
  font-size: 11px;
}

.cp-voicemail-list small {
  margin-top: 2px;
  color: var(--cp-secondary);
  font-size: 9px;
}

.cp-voicemail-list p {
  margin: 7px 0 0;
  color: var(--cp-secondary);
  font-size: 10px;
  line-height: 1.45;
}

.cp-phone-keypad {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 310px;
  margin: 25px auto;
}

.cp-phone-keypad > input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--cp-text);
  background: transparent;
  text-align: center;
  font-size: 24px;
  letter-spacing: .03em;
}

.cp-phone-keypad > small {
  margin: 4px 0 21px;
  color: var(--cp-secondary);
  font-size: 9px;
}

.cp-phone-keypad > div {
  display: grid;
  grid-template-columns: repeat(3, 70px);
  gap: 10px 14px;
}

.cp-phone-keypad > div button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  color: var(--cp-text);
  background: var(--cp-surface-strong);
}

.cp-phone-keypad > div b {
  font-size: 20px;
  font-weight: 420;
}

.cp-phone-keypad > div small {
  min-height: 8px;
  font-size: 7px;
  letter-spacing: .1em;
}

.cp-phone-keypad footer {
  display: flex;
  gap: 18px;
  margin-top: 19px;
}

.cp-phone-keypad footer button {
  width: 55px;
  height: 55px;
  border: 0;
  border-radius: 50%;
  color: white;
  font-size: 18px;
}

.cp-phone-keypad footer .audio {
  background: var(--cp-green);
}

.cp-phone-keypad footer .video {
  background: var(--cp-blue);
}

.cp-phone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 0;
  color: var(--cp-secondary);
}

.cp-phone-empty span {
  font-size: 38px;
}

.cp-active-call {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: white;
  background:
    radial-gradient(circle at 50% 28%, rgba(94,92,230,.55), transparent 25%),
    linear-gradient(180deg, #1e1e28, #0c0c10);
  text-align: center;
}

.cp-active-call > small {
  color: rgba(255,255,255,.55);
  font-size: 10px;
}

.cp-active-call > span {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 20px 0 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, #7b61ff, #0a84ff);
  box-shadow: 0 14px 30px rgba(0,0,0,.3);
  font-size: 37px;
  font-weight: 650;
}

.cp-active-call h2 {
  margin: 0;
  font-size: 25px;
}

.cp-active-call p {
  margin: 5px 0 30px;
  color: rgba(255,255,255,.62);
  font-size: 11px;
}

.cp-active-call > div {
  display: grid;
  grid-template-columns: repeat(3, 70px);
  gap: 15px;
}

.cp-active-call > div button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 0;
  color: rgba(255,255,255,.74);
  background: transparent;
  font-size: 9px;
}

.cp-active-call > div i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.13);
  font-style: normal;
  font-size: 16px;
}

.cp-active-call > div button.active i {
  color: #171719;
  background: white;
}

.cp-end-call {
  width: 58px;
  height: 58px;
  margin-top: 28px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: #ff3b30;
  font-size: 22px;
  transform: rotate(135deg);
}

/* FaceTime */
#win-facetime .window-body {
  overflow: hidden;
}

.cp-facetime-app {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  color: var(--cp-text);
  background: var(--cp-bg);
}

.cp-facetime-sidebar {
  padding: 12px 10px;
  overflow: auto;
  border-right: 1px solid var(--cp-separator);
  background: var(--cp-sidebar);
}

.cp-facetime-sidebar h3 {
  margin: 15px 7px 5px;
  color: var(--cp-secondary);
  font-size: 9.5px;
}

#cp-facetime-recents > button {
  display: grid;
  grid-template-columns: 38px 1fr 18px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 5px 7px;
  border: 0;
  border-radius: 8px;
  color: var(--cp-text);
  background: transparent;
  text-align: left;
}

#cp-facetime-recents > button:hover {
  background: var(--cp-surface);
}

#cp-facetime-recents > button.active {
  color: white;
  background: var(--cp-blue);
}

#cp-facetime-recents > button > span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: white;
  background: var(--avatar);
  font-weight: 650;
}

#cp-facetime-recents i {
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-style: normal;
}

#cp-facetime-recents b {
  font-size: 10.5px;
}

#cp-facetime-recents small {
  margin-top: 2px;
  color: var(--cp-secondary);
  font-size: 8.5px;
}

#cp-facetime-recents button.active small {
  color: rgba(255,255,255,.72);
}

#cp-facetime-recents small.missed {
  color: var(--cp-red);
}

#cp-facetime-recents em {
  color: var(--cp-secondary);
  font-style: normal;
}

.cp-facetime-main {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.04), transparent 35%),
    var(--cp-bg);
}

.cp-facetime-welcome,
.cp-facetime-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.cp-facetime-welcome > div {
  position: relative;
  width: 130px;
  height: 96px;
}

.cp-facetime-welcome > div span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, #30d158, #0a9f49);
  box-shadow: 0 9px 20px rgba(0,0,0,.25);
}

.cp-facetime-welcome > div span:nth-child(1) { left: 0; top: 5px; }
.cp-facetime-welcome > div span:nth-child(2) { right: 0; top: 0; background: linear-gradient(145deg, #0a84ff, #5856d6); }
.cp-facetime-welcome > div span:nth-child(3) { left: 23px; bottom: 0; background: linear-gradient(145deg, #ff9f0a, #ff375f); }
.cp-facetime-welcome > div span:nth-child(4) { right: 20px; bottom: 2px; background: linear-gradient(145deg, #bf5af2, #5856d6); }

.cp-facetime-welcome h1,
.cp-facetime-contact h1 {
  margin: 14px 0 5px;
  font-size: 24px;
}

.cp-facetime-welcome p,
.cp-facetime-contact p {
  max-width: 320px;
  margin: 0 0 17px;
  color: var(--cp-secondary);
  font-size: 10.5px;
}

.cp-facetime-welcome > button {
  padding: 6px 13px;
  border: 0;
  border-radius: 7px;
  color: white;
  background: var(--cp-green);
  font-size: 10px;
  font-weight: 600;
}

.cp-facetime-contact > span {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  color: white;
  background: var(--avatar);
  box-shadow: 0 15px 30px rgba(0,0,0,.25);
  font-size: 36px;
  font-weight: 650;
}

.cp-facetime-contact > div {
  display: flex;
  gap: 13px;
}

.cp-facetime-contact > div button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 0;
  color: var(--cp-secondary);
  background: transparent;
  font-size: 9px;
}

.cp-facetime-contact > div i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  background: var(--cp-green);
  font-style: normal;
  font-size: 14px;
}

.cp-facetime-new {
  max-width: 500px;
  margin: 95px auto 0;
  padding: 24px;
}

.cp-facetime-new h1 {
  margin: 0 0 20px;
  font-size: 24px;
}

.cp-facetime-new > label {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  min-height: 40px;
  border-top: 1px solid var(--cp-separator);
  border-bottom: 1px solid var(--cp-separator);
}

.cp-facetime-new label span {
  font-size: 11px;
  font-weight: 600;
}

.cp-facetime-new label input {
  border: 0;
  outline: 0;
  color: var(--cp-text);
  background: transparent;
  font-size: 11px;
}

.cp-facetime-suggestions {
  display: flex;
  gap: 9px;
  margin: 18px 0;
}

.cp-facetime-suggestions button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--cp-border);
  border-radius: 999px;
  color: var(--cp-text);
  background: var(--cp-surface);
  font-size: 9px;
}

.cp-facetime-suggestions span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: white;
  background: var(--avatar);
}

.cp-facetime-new footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.cp-facetime-new footer button {
  padding: 6px 12px;
  border: 1px solid var(--cp-border);
  border-radius: 7px;
  color: var(--cp-text);
  background: var(--cp-surface);
  font-size: 10px;
}

.cp-facetime-new footer button.primary {
  border-color: var(--cp-green);
  color: white;
  background: var(--cp-green);
}

.cp-facetime-call {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 50% 38%, #374a5f, #11151c 68%);
}

.cp-facetime-call video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cp-facetime-call.audio video {
  display: none;
}

.cp-facetime-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cp-facetime-fallback > span {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: linear-gradient(145deg, #5856d6, #0a84ff);
  box-shadow: 0 18px 38px rgba(0,0,0,.35);
  font-size: 42px;
  font-weight: 650;
}

.cp-facetime-fallback h2 {
  margin: 14px 0 3px;
  font-size: 25px;
}

.cp-facetime-fallback p {
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: 10px;
}

.cp-facetime-call.has-video .cp-facetime-fallback {
  display: none;
}

.cp-facetime-call > header {
  position: absolute;
  top: 14px;
  right: 16px;
  left: 16px;
  display: flex;
  justify-content: space-between;
  color: white;
  text-shadow: 0 1px 5px rgba(0,0,0,.6);
}

.cp-facetime-call > footer {
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.cp-facetime-call > footer button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(20,20,22,.58);
  backdrop-filter: blur(16px);
  font-size: 14px;
}

.cp-facetime-call > footer button.off {
  color: #111;
  background: white;
}

.cp-facetime-call > footer button.end {
  background: var(--cp-red);
  transform: rotate(135deg);
}

/* QuickTime */
#win-quicktime .window-body {
  overflow: hidden;
}

.cp-quicktime-app {
  width: 100%;
  height: 100%;
  color: var(--cp-text);
  background: #111;
}

.cp-quicktime-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #f5f5f7;
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(90,90,100,.28), transparent 28%),
    linear-gradient(#202024, #101012);
}

.cp-quicktime-welcome img {
  width: 88px;
  height: 88px;
}

.cp-quicktime-welcome h1 {
  margin: 14px 0 5px;
  font-size: 23px;
}

.cp-quicktime-welcome p {
  max-width: 440px;
  margin: 0 0 18px;
  color: rgba(235,235,245,.62);
  font-size: 10.5px;
}

.cp-quicktime-welcome > div {
  display: flex;
  gap: 8px;
}

.cp-quicktime-welcome button {
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 7px;
  color: white;
  background: rgba(255,255,255,.09);
  font-size: 10px;
}

.cp-quicktime-welcome button.primary {
  border-color: #0a84ff;
  background: #0a84ff;
}

.cp-quicktime-welcome > small {
  margin-top: 15px;
  color: rgba(235,235,245,.34);
  font-size: 8.5px;
}

.cp-quicktime-toolbar {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto auto;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 9px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(34,34,37,.94);
}

.cp-quicktime-toolbar button {
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px;
  color: #f5f5f7;
  background: rgba(255,255,255,.07);
  font-size: 9.5px;
}

.cp-quicktime-stage {
  display: grid;
  place-items: center;
  height: calc(100% - 70px);
  overflow: hidden;
  background: #050506;
}

.cp-quicktime-stage video {
  max-width: 100%;
  max-height: 100%;
  transition: transform .2s;
}

.cp-quicktime-stage audio {
  z-index: 1;
  width: min(520px, 70%);
}

.cp-quicktime-audio-art {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: white;
}

.cp-quicktime-audio-art[hidden] {
  display: none;
}

.cp-quicktime-audio-art img {
  width: 110px;
  height: 110px;
}

.cp-quicktime-app > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 10px;
  color: rgba(235,235,245,.6);
  background: rgba(34,34,37,.96);
  font-size: 9px;
}

.cp-quicktime-app > footer button {
  border: 0;
  color: #0a84ff;
  background: transparent;
  font-size: 9px;
}

.cp-quicktime-record-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-content: center;
  height: 100%;
  padding: 60px;
  color: #f5f5f7;
  background: linear-gradient(#202024, #101012);
}

.cp-quicktime-record-menu > button {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 180px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: white;
  background: rgba(255,255,255,.055);
}

.cp-quicktime-record-menu > button:hover {
  background: rgba(255,255,255,.1);
}

.cp-quicktime-record-menu span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 17px;
  border-radius: 14px;
  background: linear-gradient(145deg, #55555b, #28282c);
  font-size: 22px;
}

.cp-quicktime-record-menu b {
  font-size: 12px;
}

.cp-quicktime-record-menu small {
  margin-top: 7px;
  color: rgba(235,235,245,.55);
  text-align: center;
  font-size: 9px;
  line-height: 1.4;
}

.cp-quicktime-record-menu > button.back {
  grid-column: 1 / -1;
  min-height: auto;
  justify-self: center;
  padding: 6px 14px;
}

.cp-quicktime-recording {
  position: relative;
  width: 100%;
  height: 100%;
  background: #050506;
}

.cp-quicktime-recording video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cp-quicktime-recording > div {
  position: absolute;
  bottom: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border-radius: 999px;
  color: white;
  background: rgba(24,24,26,.75);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.cp-quicktime-recording button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: #ff3b30;
}

.cp-quicktime-recording b,
.cp-quicktime-recording time {
  font-size: 9.5px;
}

/* Cohesion for existing apps: preserve their personality while correcting
   web-dashboard spacing and heavy rounded cards. */
.cp-native-window .side-item,
.cp-native-window .xp-sidebar-row,
.cp-native-window .mi-media-sidebar button {
  border-radius: 7px;
}

.cp-native-window .settings-title {
  font-size: 25px;
  letter-spacing: -.035em;
}

.cp-window-messages .messages-app,
.cp-window-mail .mail-app,
.cp-window-photos .photos-app,
.cp-window-calendar .calendar-app,
.cp-window-notes .notes-app {
  color: var(--cp-text);
}

.cp-native-window .tool-button,
.cp-native-window .get {
  border: 1px solid var(--cp-border);
  color: var(--cp-text);
  background: var(--cp-surface);
}

.cp-native-window .field {
  border: 1px solid var(--cp-border);
  color: var(--cp-text);
  background: var(--cp-surface);
}

@media (max-width: 920px) {
  .cp-settings-app { grid-template-columns: 220px minmax(0, 1fr); }
  .cp-settings-detail { padding-right: 23px; padding-left: 23px; }
  .cp-appearance-choices button { width: 74px; }
  .cp-appearance-choices button > i { width: 70px; height: 46px; }
  .cp-store-columns { grid-template-columns: 1fr; }
  .cp-store-hero-strip { grid-auto-columns: 84%; }
  .cp-album-grid { grid-template-columns: repeat(3, 1fr); }
  .cp-music-player { grid-template-columns: 180px 1fr; }
  .cp-player-tools { display: none; }
}

@media (max-width: 720px) {
  .cp-settings-app,
  .cp-store-app,
  .cp-music-app,
  .cp-phone-app,
  .cp-facetime-app {
    grid-template-columns: 1fr;
  }
  .cp-settings-sidebar,
  .cp-store-sidebar,
  .cp-music-sidebar,
  .cp-phone-sidebar,
  .cp-facetime-sidebar {
    display: none;
  }
  .cp-store-main,
  .cp-music-main { grid-column: 1; }
  .cp-store-detail { width: 100%; }
  .cp-store-grid { grid-template-columns: 1fr; }
  .cp-music-player { grid-template-columns: 1fr; }
  .cp-now-playing { display: none; }
  .cp-settings-detail { padding: 24px 18px 50px; }
  .cp-wallpaper-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .cp-store-detail,
  .cp-music-queue,
  .cp-switch i,
  .cp-switch em,
  .cp-album-card > span i {
    transition: none !important;
  }
}
