#deskActions {
  display: flex;
  align-items: center;
  gap: 1px;
}
#deskActions button, #dateAction {
  color: inherit;
  display: grid;
  place-items: center;
  border-radius: 6px;
  height: 28px;
  padding: 0 7px;
}
#deskActions button { width: 31px; }
#deskActions svg { width: 16px; height: 16px; }
#deskActions button:hover, #dateAction:hover,
#deskActions button[aria-expanded="true"], #dateAction[aria-expanded="true"] {
  background: rgb(255 255 255 / 18%);
}
@media (min-width: 741px) {
  #dateAction { margin-left: -17px; }
  #dateAction time { font: 500 12px/1 var(--os-font); font-variant-numeric: tabular-nums; }
}

#statusSurfaces {
  position: absolute;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}
.status-popover {
  --status-ink: #20252c;
  --status-muted: #575e67;
  --status-accent: #2963b7;
  position: absolute;
  pointer-events: auto;
  right: 10px;
  top: 40px;
  max-height: calc(100% - 53px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgb(255 255 255 / 79%);
  border-radius: 18px;
  color: var(--status-ink);
  background: rgb(242 243 245 / 94%);
  background-clip: padding-box;
  box-shadow: 0 0 0 1px rgb(29 36 47 / 17%), 0 12px 38px rgb(16 24 37 / 22%), 0 2px 6px rgb(16 24 37 / 12%);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .status-popover {
    background: rgb(245 246 248 / 82%);
    -webkit-backdrop-filter: blur(34px) saturate(145%);
    backdrop-filter: blur(34px) saturate(145%);
  }
}
.status-popover button:focus-visible, .status-popover a:focus-visible {
  outline: 2px solid var(--status-accent);
  outline-offset: -3px;
  box-shadow: none;
}
#spotlightPanel {
  top: clamp(45px, 16vh, 175px);
  left: 50%;
  right: auto;
  translate: -50% 0;
  width: min(555px, calc(100% - 42px));
  border-radius: 19px;
  max-height: calc(100% - clamp(45px, 16vh, 175px) - 16px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.spotlight-field {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 20px;
  min-height: 62px;
  border-bottom: 1px solid rgb(47 55 67 / 12%);
}
.spotlight-field svg { flex: none; width: 24px; height: 24px; color: var(--status-muted); }
#spotlightInput {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--status-ink);
  font: 400 23px/1.26 var(--os-font);
}
#spotlightInput::placeholder { color: var(--status-muted); opacity: .88; }
.spotlight-field kbd {
  padding: 1px 5px 2px;
  border: 1px solid rgb(68 74 85 / 21%);
  border-radius: 4px;
  font: 11px/1.3 var(--os-font);
  color: var(--status-muted);
}
.spotlight-body { display: flex; flex-direction: column; min-height: 0; padding: 0 8px 8px; }
#spotlightHeading {
  margin: 11px 10px 6px;
  font: 650 11px/1.35 var(--os-font);
  color: var(--status-muted);
}
#spotlightResults { overflow: auto; overscroll-behavior: contain; max-height: 330px; }
#spotlightResults [role="option"] {
  display: flex;
  gap: 11px;
  align-items: center;
  min-height: 45px;
  padding: 5px 10px;
  border-radius: 9px;
  cursor: pointer;
}
#spotlightResults [role="option"]:hover { background: rgb(105 124 151 / 12%); }
#spotlightResults [aria-selected="true"] { background: rgb(97 144 211 / 23%); }
#spotlightResults [aria-selected="true"]:hover { background: rgb(97 144 211 / 29%); }
#spotlightResults img {
  width: 39px;
  height: 31px;
  flex: none;
  border-radius: 5px;
  object-fit: cover;
  object-position: top;
  background: #f4f3ef;
  box-shadow: 0 0 0 1px rgb(26 41 65 / 11%);
}
#spotlightResults [role="option"] > span { min-width: 0; flex: 1; }
#spotlightResults strong, #spotlightResults small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#spotlightResults strong { font: 620 13px/1.45 var(--os-font); }
#spotlightResults small { font: 400 11px/1.4 var(--os-font); color: var(--status-muted); }
#spotlightResults svg { width: 15px; height: 15px; color: var(--status-muted); opacity: 0; }
#spotlightResults [aria-selected="true"] svg { opacity: 1; }
#spotlightEmpty { margin: 12px 10px 20px; font-size: 13px; color: var(--status-muted); }

#controlCenter { width: 284px; padding: 12px; }
#controlTitle {
  margin: 2px 6px 10px;
  font: 650 15px/1.4 var(--os-font);
  letter-spacing: -.015em;
}
.status-group {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 78%);
  background: rgb(255 255 255 / 58%);
  border-radius: 11px;
  box-shadow: 0 1px 3px rgb(26 41 65 / 10%);
}
.status-group + .status-group { margin-top: 7px; }
#controlCenter .status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  text-align: start;
  font: 560 13px/1.4 var(--os-font);
}
#controlCenter .status-row + .status-row { border-top: 1px solid rgb(65 75 91 / 10%); }
#controlCenter .status-row:hover { background: rgb(110 132 163 / 10%); }
#controlCenter .status-row:disabled { cursor: default; }
.status-symbol {
  display: grid;
  flex: none;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #dde4ef;
  color: #43536a;
}
.status-symbol svg { width: 18px; height: 18px; }
.status-caption { flex: 1; }
.status-value { font-size: 12px; color: var(--status-muted); }
.status-switch {
  position: relative;
  width: 31px;
  height: 18px;
  flex: none;
  border-radius: 12px;
  background: #9299a3;
}
.status-switch::after {
  position: absolute;
  content: "";
  inset: 2px auto 2px 2px;
  width: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgb(22 29 39 / 27%);
}
[aria-checked="true"] .status-switch { background: var(--status-accent); }
[aria-checked="true"] .status-switch::after { transform: translateX(13px); }
.status-row:disabled .status-switch { opacity: .66; }
#datePanel { width: 298px; padding: 10px; }
#statusCompact:not(:empty) { margin-top: 10px; }

@media (max-width: 740px) {
  #deskActions, #dateAction, #statusSurfaces { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html[data-reduce-motion="off"] .status-popover:not([hidden]) { animation: status-appear .14s ease-out; }
  html[data-reduce-motion="off"] .status-switch::after { transition: transform .14s ease; }
}
@keyframes status-appear {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}
