/* ===========================================================================
   Controls the inner screens share
   =========================================================================== */

.h3 { margin: 0; font-size: 17px; font-weight: var(--weight-strong); letter-spacing: -.02em }

/* Pill switch. Used for every notification preference and Settings switch. */
.switch {
  width: 42px; height: 24px; flex: 0 0 42px;
  border-radius: var(--r-pill); background: var(--line);
  position: relative; cursor: pointer; display: inline-block;
  transition: background-color .18s ease;
}
.switch[aria-checked="true"] { background: var(--teal) }
.switch__knob {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: var(--r-pill); background: #FFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .18s cubic-bezier(.32, .72, 0, 1);
}
.switch[aria-checked="true"] .switch__knob { transform: translateX(18px) }

/* Horizontal bar, for every breakdown on the dashboard. */
.meter { height: 8px; border-radius: var(--r-pill); background: var(--page); overflow: hidden }
.meter__fill {
  height: 100%; border-radius: var(--r-pill); background: var(--teal);
  transition: width .5s cubic-bezier(.4, 0, .2, 1);
}

.slider { flex: 1; accent-color: var(--ink); height: 24px }

/* Sidebar account menu */
.usermenu__wrap { position: relative }
.usermenu {
  position: absolute; bottom: calc(100% + 10px); left: 0; right: 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 8px; z-index: 15;
  box-shadow: var(--shadow-top);
  animation: cdRise .16s ease both;
}
.usermenu__who { padding: 10px 12px 12px }
.usermenu__who b { display: block; font-size: 13px; font-weight: var(--weight-strong); color: var(--text) }
.usermenu__who span { display: block; font-size: 11.5px; color: var(--muted) }
.usermenu__item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: none; border: none; font-family: inherit;
  font-size: 13px; font-weight: 500; color: var(--text); text-align: left;
}
.usermenu__item:hover { background: var(--page) }
/* The inbox's state, on a phone where the sidebar that shows it has gone. */
.usermenu__item--bad { color: var(--bad); font-weight: var(--weight-strong) }
.usermenu__item--todo { color: var(--text); font-weight: var(--weight-strong) }
.usermenu__item--todo .ms { color: var(--coral) }
.usermenu__item .ms { font-size: 18px; color: inherit }
.usermenu__item--danger {
  color: #C0362C; margin-top: 4px;
  border-top: 1px solid var(--hair); border-radius: 0 0 12px 12px;
}
.shell[data-collapsed="1"] .usermenu { left: 0; width: 200px; right: auto }
/* Hung off the header avatar rather than the sidebar row, so it opens downward
   and to the left of its trigger instead of upward and full-width. */
.usermenu--drop {
  top: calc(100% + 12px); bottom: auto; left: auto; right: 0; width: 238px;
}

/* Header search results */
.search { position: relative }
.results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 25;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 6px; max-height: calc(var(--vh) * .6); overflow-y: auto;
  box-shadow: var(--shadow-top);
  animation: cdRise .16s ease both;
}
.results__head {
  font-size: 11px; font-weight: var(--weight-strong); color: var(--muted);
  padding: 10px 12px 6px; text-transform: uppercase; letter-spacing: .04em;
}
.results__row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 12px; cursor: pointer;
}
.results__row:hover { background: var(--page) }
/* The marks match the lists they come from: a business's square (corow__mark),
   a person's circle (corow__face). */
.results__mark {
  width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px;
  background: var(--coral); color: var(--on-coral);
  display: grid; place-items: center; font-size: 11px; font-weight: var(--weight-strong);
}
.results__mark--face { border-radius: 99px; background: var(--teal-soft, #E3F1EE); color: #04635C }
.results__row b { font-size: 13px; display: block }
.results__empty { padding: 16px 12px; font-size: 13px; color: var(--muted) }
